Compare commits
34 Commits
Author | SHA1 | Date | |
---|---|---|---|
318e9a2476 | |||
7434f8a6a4 | |||
0f23c88a45 | |||
9ef38d21d7 | |||
058c8cbfc2 | |||
9f1b5df136 | |||
1862444da9 | |||
c69b595fd1 | |||
c761c7aeae | |||
bd17b4c94f | |||
a71106dcae | |||
32608912b6 | |||
b3fbaff314 | |||
3a334418cc | |||
759a19c731 | |||
0bb5ee7fac | |||
d9327084a0 | |||
14af89dc8b | |||
f1b62ce326 | |||
662909a84b | |||
10c7111cbb | |||
ae8c091f2d | |||
2026a84865 | |||
6f0a8dcfac | |||
7d148166c3 | |||
cd380c9791 | |||
2a3236c2a6 | |||
cb556f71da | |||
416aa9ee1e | |||
3375f8aa4f | |||
283e53fea3 | |||
ae396892bc | |||
e292ec1de9 | |||
b1107a5945 |
23335
package-lock.json
generated
23335
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
12
package.json
12
package.json
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@tsclass/tsclass",
|
"name": "@tsclass/tsclass",
|
||||||
"version": "3.0.31",
|
"version": "3.0.48",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "common classes for TypeScript",
|
"description": "common classes for TypeScript",
|
||||||
"main": "dist_ts/index.js",
|
"main": "dist_ts/index.js",
|
||||||
@ -24,13 +24,13 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/tsclass/tsclass#readme",
|
"homepage": "https://github.com/tsclass/tsclass#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@pushrocks/tapbundle": "^3.2.9",
|
"type-fest": "^2.8.0"
|
||||||
"type-fest": "^0.16.0"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@gitzone/tsbuild": "^2.1.25",
|
"@gitzone/tsbuild": "^2.1.28",
|
||||||
"@gitzone/tsrun": "^1.2.12",
|
"@gitzone/tsrun": "^1.2.18",
|
||||||
"@gitzone/tstest": "^1.0.44",
|
"@gitzone/tstest": "^1.0.60",
|
||||||
|
"@pushrocks/tapbundle": "^3.2.15",
|
||||||
"tslint": "^6.1.3",
|
"tslint": "^6.1.3",
|
||||||
"tslint-config-prettier": "^1.18.0"
|
"tslint-config-prettier": "^1.18.0"
|
||||||
},
|
},
|
||||||
|
@ -33,5 +33,8 @@ export interface IContact {
|
|||||||
// financial
|
// financial
|
||||||
// =========
|
// =========
|
||||||
vatId?: string;
|
vatId?: string;
|
||||||
bankAccountNumber?: string;
|
sepaConnection?: {
|
||||||
|
iban: string;
|
||||||
|
bic: string;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
export * from './address';
|
export * from './address';
|
||||||
export * from './company';
|
export * from './company';
|
||||||
export * from './contact';
|
export * from './contact';
|
||||||
|
export * from './letter';
|
||||||
export * from './person';
|
export * from './person';
|
||||||
|
21
ts/business/letter.ts
Normal file
21
ts/business/letter.ts
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
import * as business from './';
|
||||||
|
import * as finance from '../finance';
|
||||||
|
export interface ILetter {
|
||||||
|
incidenceId: string;
|
||||||
|
date: number;
|
||||||
|
from: business.IContact;
|
||||||
|
to: business.IContact;
|
||||||
|
logoUrl: string;
|
||||||
|
accentColor: string;
|
||||||
|
subject: string;
|
||||||
|
text: string[];
|
||||||
|
invoiceData?: finance.IInvoice;
|
||||||
|
contractData?: {
|
||||||
|
id: string;
|
||||||
|
contractDate: number;
|
||||||
|
};
|
||||||
|
timesheetData: string;
|
||||||
|
pdfAttachments: Uint8Array[];
|
||||||
|
legalContact: business.IContact;
|
||||||
|
language: string;
|
||||||
|
}
|
@ -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[];
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
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
|
||||||
*/
|
*/
|
||||||
@ -11,6 +11,8 @@ export interface IArticle {
|
|||||||
*/
|
*/
|
||||||
featuredImageUrl?: string;
|
featuredImageUrl?: string;
|
||||||
|
|
||||||
|
referenceObject?: T;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* the title of an article
|
* the title of an article
|
||||||
*/
|
*/
|
||||||
|
@ -4,16 +4,34 @@ export type TInvoiceStatus = 'draft' | 'invoice' | 'paid' | 'refunded';
|
|||||||
|
|
||||||
export interface IInvoiceItem {
|
export interface IInvoiceItem {
|
||||||
name: string;
|
name: string;
|
||||||
|
articleNumber?: string;
|
||||||
unitType: string;
|
unitType: string;
|
||||||
quantity: number;
|
unitQuantity: number;
|
||||||
|
unitNetPrice: number;
|
||||||
vatPercentage: number;
|
vatPercentage: number;
|
||||||
netUnitPrice: number;
|
|
||||||
currency: 'EUR';
|
currency: 'EUR';
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface IInvoice {
|
export interface IInvoice {
|
||||||
|
id: string;
|
||||||
billedBy: business.IContact;
|
billedBy: business.IContact;
|
||||||
billedTo: business.IContact;
|
billedTo: business.IContact;
|
||||||
status: TInvoiceStatus;
|
status: TInvoiceStatus;
|
||||||
items: IInvoiceItem[];
|
items: IInvoiceItem[];
|
||||||
|
periodOfPerformance?: {
|
||||||
|
from: number;
|
||||||
|
to: number;
|
||||||
|
};
|
||||||
|
deliveryDate?: number;
|
||||||
|
dueInDays: number;
|
||||||
|
reverseCharge: boolean;
|
||||||
|
printResult?: {
|
||||||
|
pdfBufferString: string;
|
||||||
|
totalNet: number;
|
||||||
|
totalGross: number;
|
||||||
|
vatGroups: {
|
||||||
|
percentage: number;
|
||||||
|
items: IInvoiceItem[];
|
||||||
|
}
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user