Compare commits
14 Commits
Author | SHA1 | Date | |
---|---|---|---|
c48c6a2d79 | |||
25d2bb077e | |||
fee1e3cb58 | |||
66732c5f81 | |||
62f78f0866 | |||
6bb30e4e5b | |||
b0de29a26a | |||
3363a12082 | |||
b63ca0fd23 | |||
c95fd41f59 | |||
38e5bd39d9 | |||
f978af4b4f | |||
6f35eed240 | |||
636177b119 |
@ -13,31 +13,24 @@ stages:
|
||||
- metadata
|
||||
|
||||
before_script:
|
||||
- npm install -g @shipzone/npmci
|
||||
- pnpm install -g pnpm
|
||||
- pnpm install -g @shipzone/npmci
|
||||
- npmci npm prepare
|
||||
|
||||
# ====================
|
||||
# security stage
|
||||
# ====================
|
||||
mirror:
|
||||
stage: security
|
||||
script:
|
||||
- npmci git mirror
|
||||
only:
|
||||
- tags
|
||||
tags:
|
||||
- lossless
|
||||
- docker
|
||||
- notpriv
|
||||
|
||||
# ====================
|
||||
# security stage
|
||||
# ====================
|
||||
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
|
||||
- npmci command npm config set registry https://registry.npmjs.org
|
||||
- npmci command pnpm audit --audit-level=high --prod
|
||||
tags:
|
||||
- lossless
|
||||
- docker
|
||||
allow_failure: true
|
||||
|
||||
@ -45,11 +38,10 @@ 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 --only=dev
|
||||
- npmci command pnpm audit --audit-level=high --dev
|
||||
tags:
|
||||
- lossless
|
||||
- docker
|
||||
allow_failure: true
|
||||
|
||||
@ -60,7 +52,6 @@ auditDevDependencies:
|
||||
testStable:
|
||||
stage: test
|
||||
script:
|
||||
- npmci npm prepare
|
||||
- npmci node install stable
|
||||
- npmci npm install
|
||||
- npmci npm test
|
||||
@ -71,7 +62,6 @@ testStable:
|
||||
testBuild:
|
||||
stage: test
|
||||
script:
|
||||
- npmci npm prepare
|
||||
- npmci node install stable
|
||||
- npmci npm install
|
||||
- npmci command npm run build
|
||||
@ -122,8 +112,7 @@ trigger:
|
||||
pages:
|
||||
stage: metadata
|
||||
script:
|
||||
- npmci node install stable
|
||||
- npmci npm prepare
|
||||
- npmci node install stable
|
||||
- npmci npm install
|
||||
- npmci command npm run buildDocs
|
||||
tags:
|
||||
|
14675
package-lock.json
generated
14675
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@tsclass/tsclass",
|
||||
"version": "4.0.18",
|
||||
"version": "4.0.25",
|
||||
"private": false,
|
||||
"description": "common classes for TypeScript",
|
||||
"main": "dist_ts/index.js",
|
||||
@ -26,15 +26,14 @@
|
||||
},
|
||||
"homepage": "https://github.com/tsclass/tsclass#readme",
|
||||
"dependencies": {
|
||||
"type-fest": "^2.18.0"
|
||||
"type-fest": "^3.1.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@gitzone/tsbuild": "^2.1.65",
|
||||
"@gitzone/tsrun": "^1.2.37",
|
||||
"@gitzone/tstest": "^1.0.73",
|
||||
"@pushrocks/tapbundle": "^5.0.4",
|
||||
"tslint": "^6.1.3",
|
||||
"tslint-config-prettier": "^1.18.0"
|
||||
"@types/node": "^18.11.0"
|
||||
},
|
||||
"files": [
|
||||
"ts/**/*",
|
||||
|
4321
pnpm-lock.yaml
generated
Normal file
4321
pnpm-lock.yaml
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@tsclass/tsclass',
|
||||
version: '4.0.18',
|
||||
version: '4.0.25',
|
||||
description: 'common classes for TypeScript'
|
||||
}
|
||||
|
@ -1,3 +1,4 @@
|
||||
import { finance } from '../index.js';
|
||||
import { business } from '../index.js';
|
||||
|
||||
export type TContactSalutation = 'Mr' | 'Ms' | 'Mrs';
|
||||
@ -33,8 +34,5 @@ export interface IContact {
|
||||
// financial
|
||||
// =========
|
||||
vatId?: string;
|
||||
sepaConnection?: {
|
||||
iban: string;
|
||||
bic: string;
|
||||
};
|
||||
sepaConnection?: finance.ISepaConnection;
|
||||
}
|
||||
|
20
ts/business/contract.ts
Normal file
20
ts/business/contract.ts
Normal file
@ -0,0 +1,20 @@
|
||||
import * as database from '../database/index.js';
|
||||
import { IPerson } from "./person.js";
|
||||
|
||||
export interface IContract {
|
||||
parties: {
|
||||
signingOrder: number;
|
||||
referencedAs: string;
|
||||
person: IPerson;
|
||||
role: 'signer' | 'cc';
|
||||
signature: {
|
||||
given: boolean;
|
||||
timestamp?: number;
|
||||
location?: string;
|
||||
ip?: string;
|
||||
verifications?: [];
|
||||
}
|
||||
}[],
|
||||
contractTextMarkdown: string;
|
||||
actions: database.IObjectAction[];
|
||||
}
|
@ -4,6 +4,7 @@ import * as database from '../database/index.js';
|
||||
import type { TypedArray } from 'type-fest';
|
||||
export interface ILetter {
|
||||
incidenceId: string;
|
||||
type: 'invoice' | 'notice' | 'warning' | 'verification' | 'contract';
|
||||
date: number;
|
||||
from: business.IContact;
|
||||
to: business.IContact;
|
||||
|
@ -2,7 +2,7 @@ export interface IPdf {
|
||||
name: string;
|
||||
id: string;
|
||||
metadata: {
|
||||
textExtraction: string;
|
||||
textExtraction: string;
|
||||
};
|
||||
buffer: ArrayBufferLike;
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,12 @@
|
||||
import { IContact } from "./contact.js";
|
||||
|
||||
export interface IPerson {
|
||||
title: string;
|
||||
name: string;
|
||||
surname: string;
|
||||
sex: 'male' | 'female' | 'queer';
|
||||
sex: 'male' | 'female' | 'queer';
|
||||
legalProxyFor?: {
|
||||
type: 'self' | 'other';
|
||||
contact: IContact;
|
||||
}
|
||||
}
|
||||
|
@ -1,3 +1,3 @@
|
||||
export * from './mongodescriptor.js';
|
||||
export * from './objectaction.js';
|
||||
export * from './wrappeddata.js'
|
||||
export * from './wrappeddata.js';
|
||||
|
@ -1,3 +1,3 @@
|
||||
export interface IWrappedData<T> {
|
||||
data: T;
|
||||
}
|
||||
}
|
||||
|
@ -2,4 +2,5 @@ export * from './checkingaccount.js';
|
||||
export * from './currency.js';
|
||||
export * from './expense.js';
|
||||
export * from './invoice.js';
|
||||
export * from './payment.js';
|
||||
export * from './transaction.js';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { business } from '../index.js';
|
||||
import { business, finance } from '../index.js';
|
||||
|
||||
export type TInvoiceStatus = 'draft' | 'invoice' | 'paid' | 'refunded';
|
||||
|
||||
@ -34,4 +34,5 @@ export interface IInvoice {
|
||||
items: IInvoiceItem[];
|
||||
};
|
||||
};
|
||||
paymentOptions?: finance.IPaymentOptionInfo;
|
||||
}
|
||||
|
14
ts/finance/payment.ts
Normal file
14
ts/finance/payment.ts
Normal file
@ -0,0 +1,14 @@
|
||||
export interface ISepaConnection {
|
||||
institution?: string;
|
||||
iban: string;
|
||||
bic: string;
|
||||
}
|
||||
|
||||
export interface IPayPalConnection {
|
||||
email: string;
|
||||
}
|
||||
|
||||
export interface IPaymentOptionInfo {
|
||||
sepaConnection: ISepaConnection;
|
||||
payPal: IPayPalConnection;
|
||||
}
|
@ -26,9 +26,9 @@ import * as network from './network/index.js';
|
||||
import * as saas from './saas/index.js';
|
||||
|
||||
// Website
|
||||
export * from './website/index.js';
|
||||
import * as website from './website/index.js';
|
||||
|
||||
export { business, container, code, database, finance, content, general, network, saas };
|
||||
export { business, container, code, database, finance, content, general, network, saas, website };
|
||||
|
||||
import type * as typeFest from 'type-fest';
|
||||
|
||||
|
10
ts/network/device.ts
Normal file
10
ts/network/device.ts
Normal file
@ -0,0 +1,10 @@
|
||||
export interface IDevice {
|
||||
id: string;
|
||||
resolutionWidth?: number;
|
||||
resolutionHeight?: number;
|
||||
dpi?: number;
|
||||
manufacturer?: string;
|
||||
name?: string;
|
||||
ipv4?: string;
|
||||
ipv6?: string;
|
||||
}
|
@ -1,4 +1,5 @@
|
||||
export * from './cert.js';
|
||||
export * from './device.js';
|
||||
export * from './dns.js';
|
||||
export * from './dnschallenge.js';
|
||||
export * from './networknode.js';
|
||||
|
@ -1 +1 @@
|
||||
export * from './menuitem.js';
|
||||
export * from './menuitem.js';
|
||||
|
17
tslint.json
17
tslint.json
@ -1,17 +0,0 @@
|
||||
{
|
||||
"extends": ["tslint:latest", "tslint-config-prettier"],
|
||||
"rules": {
|
||||
"semicolon": [true, "always"],
|
||||
"no-console": false,
|
||||
"ordered-imports": false,
|
||||
"object-literal-sort-keys": false,
|
||||
"member-ordering": {
|
||||
"options":{
|
||||
"order": [
|
||||
"static-method"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"defaultSeverity": "warning"
|
||||
}
|
Reference in New Issue
Block a user