Compare commits
16 Commits
Author | SHA1 | Date | |
---|---|---|---|
7d148166c3 | |||
cd380c9791 | |||
2a3236c2a6 | |||
cb556f71da | |||
416aa9ee1e | |||
3375f8aa4f | |||
283e53fea3 | |||
ae396892bc | |||
e292ec1de9 | |||
b1107a5945 | |||
45149ff081 | |||
caef1047e4 | |||
1b36f64e4c | |||
3cabc47e51 | |||
2c6a9d9fae | |||
1ee8d36b68 |
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@tsclass/tsclass",
|
||||
"version": "3.0.28",
|
||||
"version": "3.0.36",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@tsclass/tsclass",
|
||||
"version": "3.0.28",
|
||||
"version": "3.0.36",
|
||||
"private": false,
|
||||
"description": "common classes for TypeScript",
|
||||
"main": "dist_ts/index.js",
|
||||
|
@ -1,5 +1,9 @@
|
||||
export interface IContainer {
|
||||
registryUrl: string;
|
||||
tag: string;
|
||||
/**
|
||||
* version is usually derived from labels
|
||||
*/
|
||||
version: string;
|
||||
labels: string[];
|
||||
}
|
||||
|
@ -1,10 +1,17 @@
|
||||
import { content } from '..';
|
||||
|
||||
export interface IArticle {
|
||||
export interface IArticle<T = any> {
|
||||
/**
|
||||
* the main url of an article
|
||||
*/
|
||||
url: string;
|
||||
url?: string;
|
||||
|
||||
/**
|
||||
* the mainimage of the article
|
||||
*/
|
||||
featuredImageUrl?: string;
|
||||
|
||||
referenceObject?: T;
|
||||
|
||||
/**
|
||||
* the title of an article
|
||||
@ -21,11 +28,6 @@ export interface IArticle {
|
||||
*/
|
||||
content: string;
|
||||
|
||||
/**
|
||||
* the mainimage of the article
|
||||
*/
|
||||
featuredImageUrl: string;
|
||||
|
||||
/**
|
||||
* a timestamp for when the article was written
|
||||
*/
|
||||
|
@ -5,8 +5,10 @@ export type TInvoiceStatus = 'draft' | 'invoice' | 'paid' | 'refunded';
|
||||
export interface IInvoiceItem {
|
||||
name: string;
|
||||
unitType: string;
|
||||
quantity: number;
|
||||
unitQuantity: number;
|
||||
unitNetPrice: number;
|
||||
vatPercentage: number;
|
||||
currency: 'EUR';
|
||||
}
|
||||
|
||||
export interface IInvoice {
|
||||
@ -14,4 +16,13 @@ export interface IInvoice {
|
||||
billedTo: business.IContact;
|
||||
status: TInvoiceStatus;
|
||||
items: IInvoiceItem[];
|
||||
printResult?: {
|
||||
pdfBufferString: string;
|
||||
totalNet: number;
|
||||
totalGross: number;
|
||||
vatGroups: {
|
||||
percentage: number;
|
||||
items: IInvoiceItem[];
|
||||
}
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user