Compare commits
24 Commits
Author | SHA1 | Date | |
---|---|---|---|
058c8cbfc2 | |||
9f1b5df136 | |||
1862444da9 | |||
c69b595fd1 | |||
c761c7aeae | |||
bd17b4c94f | |||
a71106dcae | |||
32608912b6 | |||
b3fbaff314 | |||
3a334418cc | |||
759a19c731 | |||
0bb5ee7fac | |||
d9327084a0 | |||
14af89dc8b | |||
f1b62ce326 | |||
662909a84b | |||
10c7111cbb | |||
ae8c091f2d | |||
2026a84865 | |||
6f0a8dcfac | |||
7d148166c3 | |||
cd380c9791 | |||
2a3236c2a6 | |||
cb556f71da |
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",
|
||||
"version": "3.0.34",
|
||||
"version": "3.0.46",
|
||||
"private": false,
|
||||
"description": "common classes for TypeScript",
|
||||
"main": "dist_ts/index.js",
|
||||
@ -24,13 +24,13 @@
|
||||
},
|
||||
"homepage": "https://github.com/tsclass/tsclass#readme",
|
||||
"dependencies": {
|
||||
"@pushrocks/tapbundle": "^3.2.9",
|
||||
"type-fest": "^0.16.0"
|
||||
"type-fest": "^2.8.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@gitzone/tsbuild": "^2.1.25",
|
||||
"@gitzone/tsrun": "^1.2.12",
|
||||
"@gitzone/tstest": "^1.0.44",
|
||||
"@gitzone/tsbuild": "^2.1.28",
|
||||
"@gitzone/tsrun": "^1.2.18",
|
||||
"@gitzone/tstest": "^1.0.60",
|
||||
"@pushrocks/tapbundle": "^3.2.15",
|
||||
"tslint": "^6.1.3",
|
||||
"tslint-config-prettier": "^1.18.0"
|
||||
},
|
||||
|
@ -33,5 +33,8 @@ export interface IContact {
|
||||
// financial
|
||||
// =========
|
||||
vatId?: string;
|
||||
bankAccountNumber?: string;
|
||||
sepaConnection?: {
|
||||
iban: string;
|
||||
bic: string;
|
||||
};
|
||||
}
|
||||
|
@ -1,4 +1,5 @@
|
||||
export * from './address';
|
||||
export * from './company';
|
||||
export * from './contact';
|
||||
export * from './letter';
|
||||
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.IAddress;
|
||||
to: business.IAddress;
|
||||
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 {
|
||||
registryUrl: string;
|
||||
tag: string;
|
||||
/**
|
||||
* version is usually derived from labels
|
||||
*/
|
||||
version: string;
|
||||
labels: string[];
|
||||
}
|
||||
|
@ -4,6 +4,7 @@ export type TInvoiceStatus = 'draft' | 'invoice' | 'paid' | 'refunded';
|
||||
|
||||
export interface IInvoiceItem {
|
||||
name: string;
|
||||
articleNumber?: string;
|
||||
unitType: string;
|
||||
unitQuantity: number;
|
||||
unitNetPrice: number;
|
||||
@ -12,10 +13,17 @@ export interface IInvoiceItem {
|
||||
}
|
||||
|
||||
export interface IInvoice {
|
||||
id: string;
|
||||
billedBy: business.IContact;
|
||||
billedTo: business.IContact;
|
||||
status: TInvoiceStatus;
|
||||
items: IInvoiceItem[];
|
||||
periodOfPerformance?: {
|
||||
from: number;
|
||||
to: number;
|
||||
};
|
||||
deliveryDate?: number;
|
||||
dueInDays: number;
|
||||
printResult?: {
|
||||
pdfBufferString: string;
|
||||
totalNet: number;
|
||||
|
Reference in New Issue
Block a user