Compare commits

...

16 Commits

Author SHA1 Message Date
7d148166c3 3.0.36 2021-11-07 03:17:52 +01:00
cd380c9791 fix(core): update 2021-11-07 03:17:51 +01:00
2a3236c2a6 3.0.35 2021-11-07 03:16:41 +01:00
cb556f71da fix(core): update 2021-11-07 03:16:41 +01:00
416aa9ee1e 3.0.34 2021-10-05 14:56:38 +02:00
3375f8aa4f fix(core): update 2021-10-05 14:56:37 +02:00
283e53fea3 3.0.33 2021-02-18 19:46:55 +00:00
ae396892bc fix(core): update 2021-02-18 19:46:55 +00:00
e292ec1de9 3.0.32 2021-02-15 21:36:27 +00:00
b1107a5945 fix(core): update 2021-02-15 21:36:26 +00:00
45149ff081 3.0.31 2021-02-15 21:31:01 +00:00
caef1047e4 fix(core): update 2021-02-15 21:31:01 +00:00
1b36f64e4c 3.0.30 2021-02-15 15:29:59 +00:00
3cabc47e51 fix(core): update 2021-02-15 15:29:58 +00:00
2c6a9d9fae 3.0.29 2020-10-31 10:53:14 +00:00
1ee8d36b68 fix(core): update 2020-10-31 10:53:14 +00:00
5 changed files with 27 additions and 10 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{ {
"name": "@tsclass/tsclass", "name": "@tsclass/tsclass",
"version": "3.0.28", "version": "3.0.36",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View File

@ -1,6 +1,6 @@
{ {
"name": "@tsclass/tsclass", "name": "@tsclass/tsclass",
"version": "3.0.28", "version": "3.0.36",
"private": false, "private": false,
"description": "common classes for TypeScript", "description": "common classes for TypeScript",
"main": "dist_ts/index.js", "main": "dist_ts/index.js",

View File

@ -1,5 +1,9 @@
export interface IContainer { export interface IContainer {
registryUrl: string; registryUrl: string;
tag: string; tag: string;
/**
* version is usually derived from labels
*/
version: string; version: string;
labels: string[];
} }

View File

@ -1,10 +1,17 @@
import { content } from '..'; import { content } from '..';
export interface IArticle { export interface IArticle<T = any> {
/** /**
* the main url of an article * the main url of an article
*/ */
url: string; url?: string;
/**
* the mainimage of the article
*/
featuredImageUrl?: string;
referenceObject?: T;
/** /**
* the title of an article * the title of an article
@ -21,11 +28,6 @@ export interface IArticle {
*/ */
content: string; content: string;
/**
* the mainimage of the article
*/
featuredImageUrl: string;
/** /**
* a timestamp for when the article was written * a timestamp for when the article was written
*/ */

View File

@ -5,8 +5,10 @@ export type TInvoiceStatus = 'draft' | 'invoice' | 'paid' | 'refunded';
export interface IInvoiceItem { export interface IInvoiceItem {
name: string; name: string;
unitType: string; unitType: string;
quantity: number; unitQuantity: number;
unitNetPrice: number;
vatPercentage: number; vatPercentage: number;
currency: 'EUR';
} }
export interface IInvoice { export interface IInvoice {
@ -14,4 +16,13 @@ export interface IInvoice {
billedTo: business.IContact; billedTo: business.IContact;
status: TInvoiceStatus; status: TInvoiceStatus;
items: IInvoiceItem[]; items: IInvoiceItem[];
printResult?: {
pdfBufferString: string;
totalNet: number;
totalGross: number;
vatGroups: {
percentage: number;
items: IInvoiceItem[];
}
};
} }