Compare commits
26 Commits
Author | SHA1 | Date | |
---|---|---|---|
6f35eed240 | |||
636177b119 | |||
05bd86a0ce | |||
d4cc9f7843 | |||
45e8460474 | |||
15bbb6ee22 | |||
7bf736ec75 | |||
a43113860a | |||
76cff5259b | |||
34b49123e1 | |||
ecf1b945b5 | |||
dd3182536e | |||
5e8ab7012f | |||
12a0a1402d | |||
79c334da3b | |||
5c71e8c97d | |||
48b01b43ed | |||
97d7b3cb61 | |||
82d080a4f7 | |||
0c7875ca0d | |||
e03fe0db7c | |||
aa74f5d2e4 | |||
55d5e89bb8 | |||
5838948117 | |||
e5e3562eef | |||
d081dc4b98 |
7947
package-lock.json
generated
7947
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": "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"
|
||||||
},
|
},
|
||||||
|
@ -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'
|
||||||
}
|
}
|
||||||
|
@ -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';
|
||||||
|
@ -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
8
ts/business/pdf.ts
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
export interface IPdf {
|
||||||
|
name: string;
|
||||||
|
id: string;
|
||||||
|
metadata: {
|
||||||
|
textExtraction: string;
|
||||||
|
};
|
||||||
|
buffer: ArrayBufferLike;
|
||||||
|
}
|
@ -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;
|
|
||||||
}
|
|
25
ts/database/mongodescriptor.ts
Normal file
25
ts/database/mongodescriptor.ts
Normal 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;
|
||||||
|
}
|
8
ts/database/objectaction.ts
Normal file
8
ts/database/objectaction.ts
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
export interface IObjectAction {
|
||||||
|
timestamp: number;
|
||||||
|
name: string;
|
||||||
|
userId: string;
|
||||||
|
data: any;
|
||||||
|
message: string;
|
||||||
|
privateMessage: string;
|
||||||
|
}
|
3
ts/database/wrappeddata.ts
Normal file
3
ts/database/wrappeddata.ts
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
export interface IWrappedData<T> {
|
||||||
|
data: T;
|
||||||
|
}
|
@ -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;
|
||||||
|
@ -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
1
ts/website/index.ts
Normal file
@ -0,0 +1 @@
|
|||||||
|
export * from './menuitem.js';
|
4
ts/website/menuitem.ts
Normal file
4
ts/website/menuitem.ts
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
export interface IMenuItem {
|
||||||
|
name: string;
|
||||||
|
action: <T = any>() => void | Promise<T>;
|
||||||
|
}
|
Reference in New Issue
Block a user