Compare commits

..

18 Commits

Author SHA1 Message Date
0f23c88a45 3.0.47 2022-01-14 05:59:06 +01:00
9ef38d21d7 fix(core): update 2022-01-14 05:59:05 +01:00
058c8cbfc2 3.0.46 2022-01-14 05:17:56 +01:00
9f1b5df136 fix(core): update 2022-01-14 05:17:55 +01:00
1862444da9 3.0.45 2022-01-14 04:54:35 +01:00
c69b595fd1 fix(core): update 2022-01-14 04:54:35 +01:00
c761c7aeae 3.0.44 2022-01-14 04:50:26 +01:00
bd17b4c94f fix(core): update 2022-01-14 04:50:25 +01:00
a71106dcae 3.0.43 2022-01-14 04:45:56 +01:00
32608912b6 fix(core): update 2022-01-14 04:45:56 +01:00
b3fbaff314 3.0.42 2022-01-14 04:32:03 +01:00
3a334418cc fix(core): update 2022-01-14 04:32:02 +01:00
759a19c731 3.0.41 2022-01-08 04:56:56 +01:00
0bb5ee7fac fix(core): update 2022-01-08 04:56:55 +01:00
d9327084a0 3.0.40 2022-01-08 04:20:36 +01:00
14af89dc8b fix(core): update 2022-01-08 04:20:35 +01:00
f1b62ce326 3.0.39 2022-01-08 04:19:18 +01:00
662909a84b fix(core): update 2022-01-08 04:19:18 +01:00
5 changed files with 27 additions and 5 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "@tsclass/tsclass", "name": "@tsclass/tsclass",
"version": "3.0.38", "version": "3.0.47",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@tsclass/tsclass", "name": "@tsclass/tsclass",
"version": "3.0.38", "version": "3.0.47",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"type-fest": "^2.8.0" "type-fest": "^2.8.0"

View File

@ -1,6 +1,6 @@
{ {
"name": "@tsclass/tsclass", "name": "@tsclass/tsclass",
"version": "3.0.38", "version": "3.0.47",
"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

@ -33,5 +33,8 @@ export interface IContact {
// financial // financial
// ========= // =========
vatId?: string; vatId?: string;
bankAccountNumber?: string; sepaConnection?: {
iban: string;
bic: string;
};
} }

View File

@ -2,10 +2,20 @@ import * as business from './';
import * as finance from '../finance'; import * as finance from '../finance';
export interface ILetter { export interface ILetter {
incidenceId: string; incidenceId: string;
date: number;
from: business.IAddress; from: business.IAddress;
to: business.IAddress; to: business.IAddress;
logoUrl: string;
accentColor: string;
subject: string; subject: string;
text: string[]; text: string[];
invoice?: finance.IInvoice; invoiceData?: finance.IInvoice;
contractData?: {
id: string;
contractDate: number;
};
timesheetData: string;
pdfAttachments: Uint8Array[];
legalContact: business.IContact; legalContact: business.IContact;
language: string;
} }

View File

@ -4,6 +4,7 @@ export type TInvoiceStatus = 'draft' | 'invoice' | 'paid' | 'refunded';
export interface IInvoiceItem { export interface IInvoiceItem {
name: string; name: string;
articleNumber?: string;
unitType: string; unitType: string;
unitQuantity: number; unitQuantity: number;
unitNetPrice: number; unitNetPrice: number;
@ -12,10 +13,18 @@ export interface IInvoiceItem {
} }
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?: { printResult?: {
pdfBufferString: string; pdfBufferString: string;
totalNet: number; totalNet: number;