Compare commits
48 Commits
Author | SHA1 | Date | |
---|---|---|---|
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 | |||
45149ff081 | |||
caef1047e4 | |||
1b36f64e4c | |||
3cabc47e51 | |||
2c6a9d9fae | |||
1ee8d36b68 | |||
d6351421b3 | |||
d8ae73007a | |||
9a63a9197b | |||
07d5665deb | |||
9a14f7e356 | |||
600ca80d33 | |||
c6a9893ce1 | |||
ea60921761 | |||
fef1ddcd93 | |||
c54db0d9a8 | |||
5120d9b9bd | |||
2e40bc20df | |||
f64721addc | |||
17cc1c646a | |||
2a92733329 | |||
6d0993d381 |
@ -19,23 +19,35 @@ mirror:
|
|||||||
stage: security
|
stage: security
|
||||||
script:
|
script:
|
||||||
- npmci git mirror
|
- npmci git mirror
|
||||||
|
only:
|
||||||
|
- tags
|
||||||
tags:
|
tags:
|
||||||
- lossless
|
- lossless
|
||||||
- docker
|
- docker
|
||||||
- notpriv
|
- notpriv
|
||||||
|
|
||||||
audit:
|
auditProductionDependencies:
|
||||||
|
image: registry.gitlab.com/hosttoday/ht-docker-node:npmci
|
||||||
|
stage: security
|
||||||
|
script:
|
||||||
|
- npmci npm prepare
|
||||||
|
- npmci command npm install --production --ignore-scripts
|
||||||
|
- npmci command npm config set registry https://registry.npmjs.org
|
||||||
|
- npmci command npm audit --audit-level=high --only=prod --production
|
||||||
|
tags:
|
||||||
|
- docker
|
||||||
|
|
||||||
|
auditDevDependencies:
|
||||||
image: registry.gitlab.com/hosttoday/ht-docker-node:npmci
|
image: registry.gitlab.com/hosttoday/ht-docker-node:npmci
|
||||||
stage: security
|
stage: security
|
||||||
script:
|
script:
|
||||||
- npmci npm prepare
|
- npmci npm prepare
|
||||||
- npmci command npm install --ignore-scripts
|
- npmci command npm install --ignore-scripts
|
||||||
- npmci command npm config set registry https://registry.npmjs.org
|
- npmci command npm config set registry https://registry.npmjs.org
|
||||||
- npmci command npm audit --audit-level=high
|
- npmci command npm audit --audit-level=high --only=dev
|
||||||
tags:
|
tags:
|
||||||
- lossless
|
|
||||||
- docker
|
- docker
|
||||||
- notpriv
|
allow_failure: true
|
||||||
|
|
||||||
# ====================
|
# ====================
|
||||||
# test stage
|
# test stage
|
||||||
@ -50,9 +62,7 @@ testStable:
|
|||||||
- npmci npm test
|
- npmci npm test
|
||||||
coverage: /\d+.?\d+?\%\s*coverage/
|
coverage: /\d+.?\d+?\%\s*coverage/
|
||||||
tags:
|
tags:
|
||||||
- lossless
|
|
||||||
- docker
|
- docker
|
||||||
- priv
|
|
||||||
|
|
||||||
testBuild:
|
testBuild:
|
||||||
stage: test
|
stage: test
|
||||||
@ -63,9 +73,7 @@ testBuild:
|
|||||||
- npmci command npm run build
|
- npmci command npm run build
|
||||||
coverage: /\d+.?\d+?\%\s*coverage/
|
coverage: /\d+.?\d+?\%\s*coverage/
|
||||||
tags:
|
tags:
|
||||||
- lossless
|
|
||||||
- docker
|
- docker
|
||||||
- notpriv
|
|
||||||
|
|
||||||
release:
|
release:
|
||||||
stage: release
|
stage: release
|
||||||
@ -85,6 +93,8 @@ release:
|
|||||||
codequality:
|
codequality:
|
||||||
stage: metadata
|
stage: metadata
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
|
only:
|
||||||
|
- tags
|
||||||
script:
|
script:
|
||||||
- npmci command npm install -g tslint typescript
|
- npmci command npm install -g tslint typescript
|
||||||
- npmci npm prepare
|
- npmci npm prepare
|
||||||
|
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
@ -15,7 +15,7 @@
|
|||||||
"properties": {
|
"properties": {
|
||||||
"projectType": {
|
"projectType": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": ["website", "element", "service", "npm"]
|
"enum": ["website", "element", "service", "npm", "wcc"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
25980
package-lock.json
generated
25980
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
18
package.json
18
package.json
@ -1,13 +1,13 @@
|
|||||||
{
|
{
|
||||||
"name": "@tsclass/tsclass",
|
"name": "@tsclass/tsclass",
|
||||||
"version": "3.0.20",
|
"version": "3.0.44",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "common classes for TypeScript",
|
"description": "common classes for TypeScript",
|
||||||
"main": "dist_ts/index.js",
|
"main": "dist_ts/index.js",
|
||||||
"typings": "dist_ts/index.d.ts",
|
"typings": "dist_ts/index.d.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "tstest test/",
|
"test": "tstest test/",
|
||||||
"build": "tsbuild --web"
|
"build": "(tsbuild --web)"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
@ -24,13 +24,14 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/tsclass/tsclass#readme",
|
"homepage": "https://github.com/tsclass/tsclass#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@pushrocks/tapbundle": "^3.2.1"
|
"type-fest": "^2.8.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@gitzone/tsbuild": "^2.1.24",
|
"@gitzone/tsbuild": "^2.1.28",
|
||||||
"@gitzone/tsrun": "^1.2.12",
|
"@gitzone/tsrun": "^1.2.18",
|
||||||
"@gitzone/tstest": "^1.0.33",
|
"@gitzone/tstest": "^1.0.60",
|
||||||
"tslint": "^6.1.2",
|
"@pushrocks/tapbundle": "^3.2.15",
|
||||||
|
"tslint": "^6.1.3",
|
||||||
"tslint-config-prettier": "^1.18.0"
|
"tslint-config-prettier": "^1.18.0"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
@ -44,5 +45,8 @@
|
|||||||
"cli.js",
|
"cli.js",
|
||||||
"npmextra.json",
|
"npmextra.json",
|
||||||
"readme.md"
|
"readme.md"
|
||||||
|
],
|
||||||
|
"browserslist": [
|
||||||
|
"last 1 chrome versions"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -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';
|
||||||
|
18
ts/business/letter.ts
Normal file
18
ts/business/letter.ts
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
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[];
|
||||||
|
invoice?: finance.IInvoice;
|
||||||
|
contractRef: string;
|
||||||
|
timesheetRef: 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,18 @@
|
|||||||
import { content } from '..';
|
import { content } from '..';
|
||||||
|
|
||||||
export interface IArticle {
|
export interface IArticle<T = any> {
|
||||||
|
/**
|
||||||
|
* the main url of an article
|
||||||
|
*/
|
||||||
|
url?: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* the mainimage of the article
|
||||||
|
*/
|
||||||
|
featuredImageUrl?: string;
|
||||||
|
|
||||||
|
referenceObject?: T;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* the title of an article
|
* the title of an article
|
||||||
*/
|
*/
|
||||||
@ -16,6 +28,11 @@ export interface IArticle {
|
|||||||
*/
|
*/
|
||||||
content: string;
|
content: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* a timestamp for when the article was written
|
||||||
|
*/
|
||||||
|
timestamp: number;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* the tags of an article
|
* the tags of an article
|
||||||
*/
|
*/
|
||||||
|
@ -3,5 +3,5 @@ import { finance } from '../';
|
|||||||
export interface ICheckingAccount {
|
export interface ICheckingAccount {
|
||||||
name: string;
|
name: string;
|
||||||
currency: finance.TCurrency;
|
currency: finance.TCurrency;
|
||||||
transactions: finance.ITransaction[];
|
transactions?: finance.ITransaction[];
|
||||||
}
|
}
|
||||||
|
@ -4,14 +4,32 @@ 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;
|
||||||
|
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;
|
||||||
|
printResult?: {
|
||||||
|
pdfBufferString: string;
|
||||||
|
totalNet: number;
|
||||||
|
totalGross: number;
|
||||||
|
vatGroups: {
|
||||||
|
percentage: number;
|
||||||
|
items: IInvoiceItem[];
|
||||||
|
}
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
@ -20,3 +20,7 @@ import * as network from './network';
|
|||||||
import * as saas from './saas';
|
import * as saas from './saas';
|
||||||
|
|
||||||
export { business, container, finance, content, general, network, saas };
|
export { business, container, finance, content, general, network, saas };
|
||||||
|
|
||||||
|
import type * as typeFest from 'type-fest';
|
||||||
|
|
||||||
|
export { typeFest };
|
||||||
|
@ -16,7 +16,7 @@ export interface ISimpleRequest {
|
|||||||
toString: () => string;
|
toString: () => string;
|
||||||
toJSON: () => string;
|
toJSON: () => string;
|
||||||
};
|
};
|
||||||
body?: string | object | Buffer;
|
body?: string | object | Buffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ISimpleResponse {
|
export interface ISimpleResponse {
|
||||||
|
Reference in New Issue
Block a user