Compare commits

...

14 Commits

Author SHA1 Message Date
c48c6a2d79 4.0.25 2022-10-24 10:10:53 +02:00
25d2bb077e fix(business.IContract): added contract logic 2022-10-24 10:10:52 +02:00
fee1e3cb58 4.0.24 2022-10-15 11:00:11 +02:00
66732c5f81 fix(core): update 2022-10-15 11:00:10 +02:00
62f78f0866 4.0.23 2022-10-15 10:51:42 +02:00
6bb30e4e5b fix(core): update 2022-10-15 10:51:42 +02:00
b0de29a26a 4.0.22 2022-10-15 10:51:25 +02:00
3363a12082 fix(core): update 2022-10-15 10:51:24 +02:00
b63ca0fd23 4.0.21 2022-09-14 09:40:03 +02:00
c95fd41f59 fix(core): update 2022-09-14 09:40:03 +02:00
38e5bd39d9 4.0.20 2022-09-14 08:43:55 +02:00
f978af4b4f fix(core): update 2022-09-14 08:43:54 +02:00
6f35eed240 4.0.19 2022-08-17 17:28:04 +02:00
636177b119 fix(core): update 2022-08-17 17:28:03 +02:00
20 changed files with 4402 additions and 14733 deletions

View File

@ -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

File diff suppressed because it is too large Load Diff

View File

@ -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

File diff suppressed because it is too large Load Diff

View File

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

View File

@ -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
View 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[];
}

View File

@ -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;

View File

@ -2,7 +2,7 @@ export interface IPdf {
name: string;
id: string;
metadata: {
textExtraction: string;
textExtraction: string;
};
buffer: ArrayBufferLike;
}
}

View File

@ -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;
}
}

View File

@ -1,3 +1,3 @@
export * from './mongodescriptor.js';
export * from './objectaction.js';
export * from './wrappeddata.js'
export * from './wrappeddata.js';

View File

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

View File

@ -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';

View File

@ -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
View 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;
}

View File

@ -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
View File

@ -0,0 +1,10 @@
export interface IDevice {
id: string;
resolutionWidth?: number;
resolutionHeight?: number;
dpi?: number;
manufacturer?: string;
name?: string;
ipv4?: string;
ipv6?: string;
}

View File

@ -1,4 +1,5 @@
export * from './cert.js';
export * from './device.js';
export * from './dns.js';
export * from './dnschallenge.js';
export * from './networknode.js';

View File

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

View File

@ -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"
}