Compare commits
36 Commits
Author | SHA1 | Date | |
---|---|---|---|
5c60875d46 | |||
0a5443c646 | |||
f38274e325 | |||
800123586e | |||
bf37575140 | |||
c7420aba79 | |||
3770b7dada | |||
5b00b5d7e9 | |||
e7d2eb5cab | |||
b38a59f91a | |||
f92abdfb4e | |||
8bc0506b60 | |||
8a690e5065 | |||
50b401db9b | |||
96e86993bf | |||
485ed3630d | |||
9a6ffcbc03 | |||
d39d9c2a86 | |||
3c67658a0e | |||
e9d4a1641f | |||
2cec65f8a0 | |||
d20073a2b0 | |||
4563ba2404 | |||
62eeeecfef | |||
c48c6a2d79 | |||
25d2bb077e | |||
fee1e3cb58 | |||
66732c5f81 | |||
62f78f0866 | |||
6bb30e4e5b | |||
b0de29a26a | |||
3363a12082 | |||
b63ca0fd23 | |||
c95fd41f59 | |||
38e5bd39d9 | |||
f978af4b4f |
@ -13,31 +13,24 @@ stages:
|
|||||||
- metadata
|
- metadata
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- npm install -g @shipzone/npmci
|
- pnpm install -g pnpm
|
||||||
|
- pnpm install -g @shipzone/npmci
|
||||||
|
- npmci npm prepare
|
||||||
|
|
||||||
# ====================
|
# ====================
|
||||||
# security stage
|
# security stage
|
||||||
# ====================
|
# ====================
|
||||||
mirror:
|
# ====================
|
||||||
stage: security
|
# security stage
|
||||||
script:
|
# ====================
|
||||||
- npmci git mirror
|
|
||||||
only:
|
|
||||||
- tags
|
|
||||||
tags:
|
|
||||||
- lossless
|
|
||||||
- docker
|
|
||||||
- notpriv
|
|
||||||
|
|
||||||
auditProductionDependencies:
|
auditProductionDependencies:
|
||||||
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 command npm config set registry https://registry.npmjs.org
|
||||||
- npmci command npm install --production --ignore-scripts
|
- npmci command pnpm audit --audit-level=high --prod
|
||||||
- npmci command npm config set registry https://registry.npmjs.org
|
|
||||||
- npmci command npm audit --audit-level=high --only=prod --production
|
|
||||||
tags:
|
tags:
|
||||||
|
- lossless
|
||||||
- docker
|
- docker
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
|
|
||||||
@ -45,11 +38,10 @@ 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 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 --only=dev
|
- npmci command pnpm audit --audit-level=high --dev
|
||||||
tags:
|
tags:
|
||||||
|
- lossless
|
||||||
- docker
|
- docker
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
|
|
||||||
@ -60,7 +52,6 @@ auditDevDependencies:
|
|||||||
testStable:
|
testStable:
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- npmci npm prepare
|
|
||||||
- npmci node install stable
|
- npmci node install stable
|
||||||
- npmci npm install
|
- npmci npm install
|
||||||
- npmci npm test
|
- npmci npm test
|
||||||
@ -71,7 +62,6 @@ testStable:
|
|||||||
testBuild:
|
testBuild:
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- npmci npm prepare
|
|
||||||
- npmci node install stable
|
- npmci node install stable
|
||||||
- npmci npm install
|
- npmci npm install
|
||||||
- npmci command npm run build
|
- npmci command npm run build
|
||||||
@ -122,8 +112,7 @@ trigger:
|
|||||||
pages:
|
pages:
|
||||||
stage: metadata
|
stage: metadata
|
||||||
script:
|
script:
|
||||||
- npmci node install stable
|
- npmci node install stable
|
||||||
- npmci npm prepare
|
|
||||||
- npmci npm install
|
- npmci npm install
|
||||||
- npmci command npm run buildDocs
|
- npmci command npm run buildDocs
|
||||||
tags:
|
tags:
|
||||||
|
14675
package-lock.json
generated
14675
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
11
package.json
11
package.json
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@tsclass/tsclass",
|
"name": "@tsclass/tsclass",
|
||||||
"version": "4.0.19",
|
"version": "4.0.37",
|
||||||
"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,15 +26,14 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/tsclass/tsclass#readme",
|
"homepage": "https://github.com/tsclass/tsclass#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"type-fest": "^2.18.0"
|
"type-fest": "^3.7.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@gitzone/tsbuild": "^2.1.65",
|
"@gitzone/tsbuild": "^2.1.65",
|
||||||
"@gitzone/tsrun": "^1.2.37",
|
"@gitzone/tsrun": "^1.2.39",
|
||||||
"@gitzone/tstest": "^1.0.73",
|
"@gitzone/tstest": "^1.0.74",
|
||||||
"@pushrocks/tapbundle": "^5.0.4",
|
"@pushrocks/tapbundle": "^5.0.4",
|
||||||
"tslint": "^6.1.3",
|
"@types/node": "^18.15.11"
|
||||||
"tslint-config-prettier": "^1.18.0"
|
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"ts/**/*",
|
"ts/**/*",
|
||||||
|
4466
pnpm-lock.yaml
generated
Normal file
4466
pnpm-lock.yaml
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@tsclass/tsclass',
|
name: '@tsclass/tsclass',
|
||||||
version: '4.0.19',
|
version: '4.0.37',
|
||||||
description: 'common classes for TypeScript'
|
description: 'common classes for TypeScript'
|
||||||
}
|
}
|
||||||
|
5
ts/00helperfunctions.ts/finance.ts
Normal file
5
ts/00helperfunctions.ts/finance.ts
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
import { IInvoice } from "../finance/invoice.js";
|
||||||
|
|
||||||
|
export function createLetterFromInvoice(invoiceArg: IInvoice) {
|
||||||
|
|
||||||
|
}
|
1
ts/00helperfunctions.ts/index.ts
Normal file
1
ts/00helperfunctions.ts/index.ts
Normal file
@ -0,0 +1 @@
|
|||||||
|
export * from './finance.js';
|
@ -1,3 +1,4 @@
|
|||||||
|
import { finance } from '../index.js';
|
||||||
import { business } from '../index.js';
|
import { business } from '../index.js';
|
||||||
|
|
||||||
export type TContactSalutation = 'Mr' | 'Ms' | 'Mrs';
|
export type TContactSalutation = 'Mr' | 'Ms' | 'Mrs';
|
||||||
@ -33,8 +34,5 @@ export interface IContact {
|
|||||||
// financial
|
// financial
|
||||||
// =========
|
// =========
|
||||||
vatId?: string;
|
vatId?: string;
|
||||||
sepaConnection?: {
|
sepaConnection?: finance.ISepaConnection;
|
||||||
iban: string;
|
|
||||||
bic: string;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
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[];
|
||||||
|
}
|
@ -1,6 +1,8 @@
|
|||||||
export * from './address.js';
|
export * from './address.js';
|
||||||
export * from './company.js';
|
export * from './company.js';
|
||||||
export * from './contact.js';
|
export * from './contact.js';
|
||||||
|
export * from './job.js';
|
||||||
export * from './letter.js';
|
export * from './letter.js';
|
||||||
export * from './pdf.js';
|
export * from './pdf.js';
|
||||||
export * from './person.js';
|
export * from './person.js';
|
||||||
|
export * from './project.js';
|
||||||
|
12
ts/business/job.ts
Normal file
12
ts/business/job.ts
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
import * as finance from '../finance/index.js';
|
||||||
|
import { ICompany } from './company.js';
|
||||||
|
import { IContact } from './contact.js';
|
||||||
|
export class IJob {
|
||||||
|
type: 'contract' | 'employment';
|
||||||
|
name: string;
|
||||||
|
description: string;
|
||||||
|
monthlyTotal: number;
|
||||||
|
currency: finance.TCurrency;
|
||||||
|
from: ICompany;
|
||||||
|
contact: IContact;
|
||||||
|
}
|
@ -1,24 +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 * as database from '../database/index.js';
|
||||||
import type { TypedArray } from 'type-fest';
|
|
||||||
export interface ILetter {
|
export interface ILetter {
|
||||||
incidenceId: string;
|
incidenceId: string;
|
||||||
|
type: 'invoice' | 'notice' | 'warning' | 'verification' | 'contract';
|
||||||
date: number;
|
date: number;
|
||||||
from: business.IContact;
|
from: business.IContact;
|
||||||
to: business.IContact;
|
to: business.IContact;
|
||||||
legalContact: business.IContact;
|
legalContact: business.IContact;
|
||||||
logoUrl: string;
|
logoUrl: string;
|
||||||
subject: string;
|
subject: string;
|
||||||
text: string[];
|
|
||||||
accentColor?: string;
|
accentColor?: string;
|
||||||
needsCoverSheet: boolean;
|
needsCoverSheet: boolean;
|
||||||
invoiceData?: finance.IInvoice;
|
content: {
|
||||||
contractData?: {
|
textData: string[];
|
||||||
id: string;
|
invoiceData?: finance.IInvoice;
|
||||||
contractDate: number;
|
contractData?: {
|
||||||
};
|
id: string;
|
||||||
timesheetData: string;
|
contractDate: number;
|
||||||
|
};
|
||||||
|
timesheetData: string;
|
||||||
|
}
|
||||||
pdf?: business.IPdf;
|
pdf?: business.IPdf;
|
||||||
pdfAttachments: business.IPdf[];
|
pdfAttachments: business.IPdf[];
|
||||||
language: string;
|
language: string;
|
||||||
|
@ -2,7 +2,7 @@ export interface IPdf {
|
|||||||
name: string;
|
name: string;
|
||||||
id: string;
|
id: string;
|
||||||
metadata: {
|
metadata: {
|
||||||
textExtraction: string;
|
textExtraction: string;
|
||||||
};
|
};
|
||||||
buffer: ArrayBufferLike;
|
buffer: ArrayBufferLike;
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,12 @@
|
|||||||
|
import { IContact } from './contact.js';
|
||||||
|
|
||||||
export interface IPerson {
|
export interface IPerson {
|
||||||
title: string;
|
title: string;
|
||||||
name: string;
|
name: string;
|
||||||
surname: string;
|
surname: string;
|
||||||
sex: 'male' | 'female' | 'queer';
|
sex: 'male' | 'female' | 'queer';
|
||||||
|
legalProxyFor?: {
|
||||||
|
type: 'self' | 'other';
|
||||||
|
contact?: IContact;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
18
ts/business/project.ts
Normal file
18
ts/business/project.ts
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
export interface IProject {
|
||||||
|
active: boolean;
|
||||||
|
category: 'SaaS' | 'IaaS' | 'Media' | 'Blockchain' | 'Open Source' | 'Consulting' | 'internal' | 'partner';
|
||||||
|
branch?: null;
|
||||||
|
branchId? : string;
|
||||||
|
domain: string;
|
||||||
|
redirectDomains: string[];
|
||||||
|
gitlab: string;
|
||||||
|
name: string;
|
||||||
|
social: {
|
||||||
|
facebook?: string;
|
||||||
|
gitlab?: string;
|
||||||
|
github?: string;
|
||||||
|
twitter?: string;
|
||||||
|
};
|
||||||
|
tagLine: string;
|
||||||
|
tags: string[];
|
||||||
|
}
|
@ -1 +1,2 @@
|
|||||||
export * from './commitinfo.js';
|
export * from './commitinfo.js';
|
||||||
|
export * from './statusobject.js';
|
13
ts/code/statusobject.ts
Normal file
13
ts/code/statusobject.ts
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
export type TStatus = 'ok' | 'partly_ok' | 'not_ok';
|
||||||
|
export interface IStatusObject {
|
||||||
|
id?: string;
|
||||||
|
name: string;
|
||||||
|
combinedStatus?: TStatus;
|
||||||
|
combinedStatusText: string;
|
||||||
|
details: Array<{
|
||||||
|
name: string;
|
||||||
|
value: string;
|
||||||
|
status: TStatus;
|
||||||
|
statusText: string;
|
||||||
|
}>
|
||||||
|
}
|
@ -1,3 +1,4 @@
|
|||||||
export * from './mongodescriptor.js';
|
export * from './mongodescriptor.js';
|
||||||
export * from './objectaction.js';
|
export * from './objectaction.js';
|
||||||
export * from './wrappeddata.js'
|
export * from './objectstatus.js';
|
||||||
|
export * from './wrappeddata.js';
|
||||||
|
7
ts/database/objectstatus.ts
Normal file
7
ts/database/objectstatus.ts
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
export interface IObjectStatus {
|
||||||
|
current: 'active' | 'inactive' | 'hidden' | 'markedForDeletion';
|
||||||
|
scheduledDeletion: number;
|
||||||
|
justForLooks: {
|
||||||
|
scheduledDeletionIso: string;
|
||||||
|
};
|
||||||
|
}
|
@ -1,3 +1,3 @@
|
|||||||
export interface IWrappedData<T> {
|
export interface IWrappedData<T> {
|
||||||
data: T;
|
data: T;
|
||||||
}
|
}
|
||||||
|
@ -2,4 +2,5 @@ export * from './checkingaccount.js';
|
|||||||
export * from './currency.js';
|
export * from './currency.js';
|
||||||
export * from './expense.js';
|
export * from './expense.js';
|
||||||
export * from './invoice.js';
|
export * from './invoice.js';
|
||||||
|
export * from './payment.js';
|
||||||
export * from './transaction.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';
|
export type TInvoiceStatus = 'draft' | 'invoice' | 'paid' | 'refunded';
|
||||||
|
|
||||||
@ -34,4 +34,5 @@ export interface IInvoice {
|
|||||||
items: IInvoiceItem[];
|
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;
|
||||||
|
}
|
29
ts/network/cname.ts
Normal file
29
ts/network/cname.ts
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
import { ICert } from "./cert.js";
|
||||||
|
|
||||||
|
export class ICnameDescriptor {
|
||||||
|
/**
|
||||||
|
* the original domain that is being cnamed
|
||||||
|
*/
|
||||||
|
cnamedDomain: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* the cname proxy domain
|
||||||
|
* the domain that is used for the cname dns entry
|
||||||
|
*/
|
||||||
|
cnameProxyDomain: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* the internal target url
|
||||||
|
*/
|
||||||
|
targetUrl: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* a description
|
||||||
|
*/
|
||||||
|
description: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* the ssl certificate
|
||||||
|
*/
|
||||||
|
sslCertificate?: ICert;
|
||||||
|
};
|
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;
|
||||||
|
}
|
22
ts/network/domainidentifier.ts
Normal file
22
ts/network/domainidentifier.ts
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
export interface IDomainIdentifier {
|
||||||
|
/**
|
||||||
|
* only if it applis: the origininating url
|
||||||
|
*/
|
||||||
|
fullUrl: string;
|
||||||
|
/**
|
||||||
|
* the full domain name
|
||||||
|
*/
|
||||||
|
fullDomain: string;
|
||||||
|
/**
|
||||||
|
* the domain, meaning whats usually considered a domain like google.com
|
||||||
|
*/
|
||||||
|
domain: string;
|
||||||
|
/**
|
||||||
|
* the public suffix, meaning whats usually considered a public suffix like .com
|
||||||
|
*/
|
||||||
|
publicSuffix: string;
|
||||||
|
/**
|
||||||
|
* the subdomain, meaning whats usually considered a subdomain like www
|
||||||
|
*/
|
||||||
|
subdomain: string;
|
||||||
|
}
|
@ -1,6 +1,9 @@
|
|||||||
export * from './cert.js';
|
export * from './cert.js';
|
||||||
|
export * from './cname.js';
|
||||||
|
export * from './device.js';
|
||||||
export * from './dns.js';
|
export * from './dns.js';
|
||||||
export * from './dnschallenge.js';
|
export * from './dnschallenge.js';
|
||||||
|
export * from './domainidentifier.js';
|
||||||
export * from './networknode.js';
|
export * from './networknode.js';
|
||||||
export * from './request.js';
|
export * from './request.js';
|
||||||
export * from './reverseproxy.js';
|
export * from './reverseproxy.js';
|
||||||
|
@ -1 +1 @@
|
|||||||
export * from './menuitem.js';
|
export * from './menuitem.js';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
export interface IMenuItem {
|
export interface IMenuItem {
|
||||||
name: string;
|
name: string;
|
||||||
|
iconName?: string;
|
||||||
action: <T = any>() => void | Promise<T>;
|
action: <T = any>() => void | Promise<T>;
|
||||||
}
|
}
|
||||||
|
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