Compare commits
36 Commits
Author | SHA1 | Date | |
---|---|---|---|
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
|
||||
script:
|
||||
- npmci git mirror
|
||||
only:
|
||||
- tags
|
||||
tags:
|
||||
- lossless
|
||||
- docker
|
||||
- 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
|
||||
stage: security
|
||||
script:
|
||||
- npmci npm prepare
|
||||
- npmci command npm install --ignore-scripts
|
||||
- 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:
|
||||
- lossless
|
||||
- docker
|
||||
- notpriv
|
||||
allow_failure: true
|
||||
|
||||
# ====================
|
||||
# test stage
|
||||
@ -50,9 +62,7 @@ testStable:
|
||||
- npmci npm test
|
||||
coverage: /\d+.?\d+?\%\s*coverage/
|
||||
tags:
|
||||
- lossless
|
||||
- docker
|
||||
- priv
|
||||
|
||||
testBuild:
|
||||
stage: test
|
||||
@ -63,9 +73,7 @@ testBuild:
|
||||
- npmci command npm run build
|
||||
coverage: /\d+.?\d+?\%\s*coverage/
|
||||
tags:
|
||||
- lossless
|
||||
- docker
|
||||
- notpriv
|
||||
|
||||
release:
|
||||
stage: release
|
||||
@ -85,6 +93,8 @@ release:
|
||||
codequality:
|
||||
stage: metadata
|
||||
allow_failure: true
|
||||
only:
|
||||
- tags
|
||||
script:
|
||||
- npmci command npm install -g tslint typescript
|
||||
- npmci npm prepare
|
||||
|
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
@ -15,7 +15,7 @@
|
||||
"properties": {
|
||||
"projectType": {
|
||||
"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",
|
||||
"version": "3.0.20",
|
||||
"version": "3.0.38",
|
||||
"private": false,
|
||||
"description": "common classes for TypeScript",
|
||||
"main": "dist_ts/index.js",
|
||||
"typings": "dist_ts/index.d.ts",
|
||||
"scripts": {
|
||||
"test": "tstest test/",
|
||||
"build": "tsbuild --web"
|
||||
"build": "(tsbuild --web)"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@ -24,13 +24,14 @@
|
||||
},
|
||||
"homepage": "https://github.com/tsclass/tsclass#readme",
|
||||
"dependencies": {
|
||||
"@pushrocks/tapbundle": "^3.2.1"
|
||||
"type-fest": "^2.8.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@gitzone/tsbuild": "^2.1.24",
|
||||
"@gitzone/tsrun": "^1.2.12",
|
||||
"@gitzone/tstest": "^1.0.33",
|
||||
"tslint": "^6.1.2",
|
||||
"@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"
|
||||
},
|
||||
"files": [
|
||||
@ -44,5 +45,8 @@
|
||||
"cli.js",
|
||||
"npmextra.json",
|
||||
"readme.md"
|
||||
],
|
||||
"browserslist": [
|
||||
"last 1 chrome versions"
|
||||
]
|
||||
}
|
||||
|
@ -1,4 +1,5 @@
|
||||
export * from './address';
|
||||
export * from './company';
|
||||
export * from './contact';
|
||||
export * from './letter';
|
||||
export * from './person';
|
||||
|
11
ts/business/letter.ts
Normal file
11
ts/business/letter.ts
Normal file
@ -0,0 +1,11 @@
|
||||
import * as business from './';
|
||||
import * as finance from '../finance';
|
||||
export interface ILetter {
|
||||
incidenceId: string;
|
||||
from: business.IAddress;
|
||||
to: business.IAddress;
|
||||
subject: string;
|
||||
text: string[];
|
||||
invoice?: finance.IInvoice;
|
||||
legalContact: business.IContact;
|
||||
}
|
@ -1,5 +1,9 @@
|
||||
export interface IContainer {
|
||||
registryUrl: string;
|
||||
tag: string;
|
||||
/**
|
||||
* version is usually derived from labels
|
||||
*/
|
||||
version: string;
|
||||
labels: string[];
|
||||
}
|
||||
|
@ -1,6 +1,18 @@
|
||||
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
|
||||
*/
|
||||
@ -16,6 +28,11 @@ export interface IArticle {
|
||||
*/
|
||||
content: string;
|
||||
|
||||
/**
|
||||
* a timestamp for when the article was written
|
||||
*/
|
||||
timestamp: number;
|
||||
|
||||
/**
|
||||
* the tags of an article
|
||||
*/
|
||||
|
@ -3,5 +3,5 @@ import { finance } from '../';
|
||||
export interface ICheckingAccount {
|
||||
name: string;
|
||||
currency: finance.TCurrency;
|
||||
transactions: finance.ITransaction[];
|
||||
transactions?: finance.ITransaction[];
|
||||
}
|
||||
|
@ -5,8 +5,10 @@ export type TInvoiceStatus = 'draft' | 'invoice' | 'paid' | 'refunded';
|
||||
export interface IInvoiceItem {
|
||||
name: string;
|
||||
unitType: string;
|
||||
quantity: number;
|
||||
unitQuantity: number;
|
||||
unitNetPrice: number;
|
||||
vatPercentage: number;
|
||||
currency: 'EUR';
|
||||
}
|
||||
|
||||
export interface IInvoice {
|
||||
@ -14,4 +16,13 @@ export interface IInvoice {
|
||||
billedTo: business.IContact;
|
||||
status: TInvoiceStatus;
|
||||
items: IInvoiceItem[];
|
||||
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';
|
||||
|
||||
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;
|
||||
toJSON: () => string;
|
||||
};
|
||||
body?: string | object | Buffer;
|
||||
body?: string | object | Buffer;
|
||||
}
|
||||
|
||||
export interface ISimpleResponse {
|
||||
|
Reference in New Issue
Block a user