Compare commits

...

26 Commits

Author SHA1 Message Date
6f35eed240 4.0.19 2022-08-17 17:28:04 +02:00
636177b119 fix(core): update 2022-08-17 17:28:03 +02:00
05bd86a0ce 4.0.18 2022-08-17 15:46:43 +02:00
d4cc9f7843 fix(core): update 2022-08-17 15:46:42 +02:00
45e8460474 4.0.17 2022-06-16 12:25:27 +02:00
15bbb6ee22 fix(core): update 2022-06-16 12:25:26 +02:00
7bf736ec75 4.0.16 2022-06-15 22:37:40 +02:00
a43113860a fix(core): update 2022-06-15 22:37:40 +02:00
76cff5259b 4.0.15 2022-06-15 21:55:57 +02:00
34b49123e1 fix(core): update 2022-06-15 21:55:57 +02:00
ecf1b945b5 4.0.14 2022-06-15 21:29:39 +02:00
dd3182536e fix(core): update 2022-06-15 21:29:39 +02:00
5e8ab7012f 4.0.13 2022-06-15 01:17:47 +02:00
12a0a1402d fix(core): update 2022-06-15 01:17:47 +02:00
79c334da3b 4.0.12 2022-06-15 01:13:52 +02:00
5c71e8c97d fix(core): update 2022-06-15 01:13:51 +02:00
48b01b43ed 4.0.11 2022-06-15 01:11:42 +02:00
97d7b3cb61 fix(core): update 2022-06-15 01:11:41 +02:00
82d080a4f7 4.0.10 2022-06-15 00:44:08 +02:00
0c7875ca0d fix(core): update 2022-06-15 00:44:08 +02:00
e03fe0db7c 4.0.9 2022-06-14 23:09:58 +02:00
aa74f5d2e4 fix(core): update 2022-06-14 23:09:57 +02:00
55d5e89bb8 4.0.8 2022-06-12 19:29:28 +02:00
5838948117 fix(core): update 2022-06-12 19:29:27 +02:00
e5e3562eef 4.0.7 2022-06-11 12:56:39 +02:00
d081dc4b98 fix(core): update 2022-06-11 12:56:39 +02:00
14 changed files with 6234 additions and 1823 deletions

7947
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{ {
"name": "@tsclass/tsclass", "name": "@tsclass/tsclass",
"version": "4.0.6", "version": "4.0.19",
"private": false, "private": false,
"description": "common classes for TypeScript", "description": "common classes for TypeScript",
"main": "dist_ts/index.js", "main": "dist_ts/index.js",
@ -26,13 +26,13 @@
}, },
"homepage": "https://github.com/tsclass/tsclass#readme", "homepage": "https://github.com/tsclass/tsclass#readme",
"dependencies": { "dependencies": {
"type-fest": "^2.13.0" "type-fest": "^2.18.0"
}, },
"devDependencies": { "devDependencies": {
"@gitzone/tsbuild": "^2.1.63", "@gitzone/tsbuild": "^2.1.65",
"@gitzone/tsrun": "^1.2.35", "@gitzone/tsrun": "^1.2.37",
"@gitzone/tstest": "^1.0.71", "@gitzone/tstest": "^1.0.73",
"@pushrocks/tapbundle": "^5.0.3", "@pushrocks/tapbundle": "^5.0.4",
"tslint": "^6.1.3", "tslint": "^6.1.3",
"tslint-config-prettier": "^1.18.0" "tslint-config-prettier": "^1.18.0"
}, },

View File

@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@tsclass/tsclass', name: '@tsclass/tsclass',
version: '4.0.6', version: '4.0.19',
description: 'common classes for TypeScript' description: 'common classes for TypeScript'
} }

View File

@ -2,4 +2,5 @@ export * from './address.js';
export * from './company.js'; export * from './company.js';
export * from './contact.js'; export * from './contact.js';
export * from './letter.js'; export * from './letter.js';
export * from './pdf.js';
export * from './person.js'; export * from './person.js';

View File

@ -1,21 +1,26 @@
import * as business from './index.js'; import * as business from './index.js';
import * as finance from '../finance/index.js'; import * as finance from '../finance/index.js';
import * as database from '../database/index.js';
import type { TypedArray } from 'type-fest';
export interface ILetter { export interface ILetter {
incidenceId: string; incidenceId: string;
date: number; date: number;
from: business.IContact; from: business.IContact;
to: business.IContact; to: business.IContact;
legalContact: business.IContact;
logoUrl: string; logoUrl: string;
accentColor: string;
subject: string; subject: string;
text: string[]; text: string[];
accentColor?: string;
needsCoverSheet: boolean;
invoiceData?: finance.IInvoice; invoiceData?: finance.IInvoice;
contractData?: { contractData?: {
id: string; id: string;
contractDate: number; contractDate: number;
}; };
timesheetData: string; timesheetData: string;
pdfAttachments: Uint8Array[]; pdf?: business.IPdf;
legalContact: business.IContact; pdfAttachments: business.IPdf[];
language: string; language: string;
objectActions: database.IObjectAction[];
} }

8
ts/business/pdf.ts Normal file
View File

@ -0,0 +1,8 @@
export interface IPdf {
name: string;
id: string;
metadata: {
textExtraction: string;
};
buffer: ArrayBufferLike;
}

View File

@ -1,25 +1,3 @@
/** export * from './mongodescriptor.js';
* contains the complete info for how to connect to a mongodb database. export * from './objectaction.js';
*/ export * from './wrappeddata.js'
export interface IMongoDescriptor {
/**
* the URL to connect to
*/
mongoDbUrl: string;
/**
* the db to use for the project
*/
mongoDbName?: string;
/**
* a username to use to connect to the database
*/
mongoDbUser?: string;
/**
* an optional password that will be replace <PASSWORD> in the connection string
*/
mongoDbPass?: string;
}

View File

@ -0,0 +1,25 @@
/**
* contains the complete info for how to connect to a mongodb database.
*/
export interface IMongoDescriptor {
/**
* the URL to connect to
*/
mongoDbUrl: string;
/**
* the db to use for the project
*/
mongoDbName?: string;
/**
* a username to use to connect to the database
*/
mongoDbUser?: string;
/**
* an optional password that will be replace <PASSWORD> in the connection string
*/
mongoDbPass?: string;
}

View File

@ -0,0 +1,8 @@
export interface IObjectAction {
timestamp: number;
name: string;
userId: string;
data: any;
message: string;
privateMessage: string;
}

View File

@ -0,0 +1,3 @@
export interface IWrappedData<T> {
data: T;
}

View File

@ -1,5 +1,5 @@
/** /**
* a constract event describes any kind of sale * a contract event describes any kind of sale
*/ */
export interface IEvent_Contract { export interface IEvent_Contract {
contractId: string; contractId: string;

View File

@ -25,7 +25,10 @@ import * as network from './network/index.js';
// SaaS // SaaS
import * as saas from './saas/index.js'; import * as saas from './saas/index.js';
export { business, container, code, database, finance, content, general, network, saas }; // Website
import * as website from './website/index.js';
export { business, container, code, database, finance, content, general, network, saas, website };
import type * as typeFest from 'type-fest'; import type * as typeFest from 'type-fest';

1
ts/website/index.ts Normal file
View File

@ -0,0 +1 @@
export * from './menuitem.js';

4
ts/website/menuitem.ts Normal file
View File

@ -0,0 +1,4 @@
export interface IMenuItem {
name: string;
action: <T = any>() => void | Promise<T>;
}