Compare commits
96 Commits
Author | SHA1 | Date | |
---|---|---|---|
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 | |||
6f35eed240 | |||
636177b119 | |||
05bd86a0ce | |||
d4cc9f7843 | |||
45e8460474 | |||
15bbb6ee22 | |||
7bf736ec75 | |||
a43113860a | |||
76cff5259b | |||
34b49123e1 | |||
ecf1b945b5 | |||
dd3182536e | |||
5e8ab7012f | |||
12a0a1402d | |||
79c334da3b | |||
5c71e8c97d | |||
48b01b43ed | |||
97d7b3cb61 | |||
82d080a4f7 | |||
0c7875ca0d | |||
e03fe0db7c | |||
aa74f5d2e4 | |||
55d5e89bb8 | |||
5838948117 | |||
e5e3562eef | |||
d081dc4b98 | |||
ee9efae18d | |||
df39fcbe37 | |||
4ad0b3745e | |||
7f53cb2f7f | |||
59ca7e6c93 | |||
ba0237f9a7 | |||
1609a2b65c | |||
09f1496cf4 | |||
5d96d25176 | |||
87a303f7be | |||
34cb1384ea | |||
d672b9973e | |||
d8e1609851 | |||
9302766e91 | |||
318e9a2476 | |||
7434f8a6a4 | |||
0f23c88a45 | |||
9ef38d21d7 | |||
058c8cbfc2 | |||
9f1b5df136 | |||
1862444da9 | |||
c69b595fd1 | |||
c761c7aeae | |||
bd17b4c94f | |||
a71106dcae | |||
32608912b6 | |||
b3fbaff314 | |||
3a334418cc | |||
759a19c731 | |||
0bb5ee7fac | |||
d9327084a0 | |||
14af89dc8b | |||
f1b62ce326 | |||
662909a84b | |||
10c7111cbb | |||
ae8c091f2d | |||
2026a84865 | |||
6f0a8dcfac | |||
7d148166c3 | |||
cd380c9791 | |||
2a3236c2a6 | |||
cb556f71da |
@ -12,40 +12,36 @@ stages:
|
|||||||
- release
|
- release
|
||||||
- metadata
|
- metadata
|
||||||
|
|
||||||
|
before_script:
|
||||||
|
- pnpm install -g pnpm
|
||||||
|
- pnpm install -g @shipzone/npmci
|
||||||
|
- npmci npm prepare
|
||||||
|
|
||||||
|
# ====================
|
||||||
|
# security stage
|
||||||
|
# ====================
|
||||||
# ====================
|
# ====================
|
||||||
# security stage
|
# security stage
|
||||||
# ====================
|
# ====================
|
||||||
mirror:
|
|
||||||
stage: security
|
|
||||||
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
|
||||||
|
|
||||||
auditDevDependencies:
|
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
|
||||||
|
|
||||||
@ -56,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
|
||||||
@ -67,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
|
||||||
@ -96,10 +90,9 @@ codequality:
|
|||||||
only:
|
only:
|
||||||
- tags
|
- tags
|
||||||
script:
|
script:
|
||||||
- npmci command npm install -g tslint typescript
|
- npmci command npm install -g typescript
|
||||||
- npmci npm prepare
|
- npmci npm prepare
|
||||||
- npmci npm install
|
- npmci npm install
|
||||||
- npmci command "tslint -c tslint.json ./ts/**/*.ts"
|
|
||||||
tags:
|
tags:
|
||||||
- lossless
|
- lossless
|
||||||
- docker
|
- docker
|
||||||
@ -119,11 +112,9 @@ trigger:
|
|||||||
pages:
|
pages:
|
||||||
stage: metadata
|
stage: metadata
|
||||||
script:
|
script:
|
||||||
- npmci node install lts
|
- npmci node install stable
|
||||||
- npmci command npm install -g @gitzone/tsdoc
|
|
||||||
- npmci npm prepare
|
|
||||||
- npmci npm install
|
- npmci npm install
|
||||||
- npmci command tsdoc
|
- npmci command npm run buildDocs
|
||||||
tags:
|
tags:
|
||||||
- lossless
|
- lossless
|
||||||
- docker
|
- docker
|
||||||
|
24
.vscode/launch.json
vendored
24
.vscode/launch.json
vendored
@ -2,28 +2,10 @@
|
|||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
"name": "current file",
|
"command": "npm test",
|
||||||
"type": "node",
|
"name": "Run npm test",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"args": [
|
"type": "node-terminal"
|
||||||
"${relativeFile}"
|
|
||||||
],
|
|
||||||
"runtimeArgs": ["-r", "@gitzone/tsrun"],
|
|
||||||
"cwd": "${workspaceRoot}",
|
|
||||||
"protocol": "inspector",
|
|
||||||
"internalConsoleOptions": "openOnSessionStart"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "test.ts",
|
|
||||||
"type": "node",
|
|
||||||
"request": "launch",
|
|
||||||
"args": [
|
|
||||||
"test/test.ts"
|
|
||||||
],
|
|
||||||
"runtimeArgs": ["-r", "@gitzone/tsrun"],
|
|
||||||
"cwd": "${workspaceRoot}",
|
|
||||||
"protocol": "inspector",
|
|
||||||
"internalConsoleOptions": "openOnSessionStart"
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
"githost": "gitlab.com",
|
"githost": "gitlab.com",
|
||||||
"gitscope": "tsclass",
|
"gitscope": "tsclass",
|
||||||
"gitrepo": "tsclass",
|
"gitrepo": "tsclass",
|
||||||
"shortDescription": "common classes for TypeScript",
|
"description": "common classes for TypeScript",
|
||||||
"npmPackagename": "@tsclass/tsclass",
|
"npmPackagename": "@tsclass/tsclass",
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
}
|
}
|
||||||
|
11192
package-lock.json
generated
11192
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
19
package.json
19
package.json
@ -1,13 +1,15 @@
|
|||||||
{
|
{
|
||||||
"name": "@tsclass/tsclass",
|
"name": "@tsclass/tsclass",
|
||||||
"version": "3.0.34",
|
"version": "4.0.33",
|
||||||
"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",
|
||||||
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "tstest test/",
|
"test": "tstest test/",
|
||||||
"build": "(tsbuild --web)"
|
"build": "(tsbuild --web)",
|
||||||
|
"buildDocs": "tsdoc"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
@ -24,15 +26,14 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/tsclass/tsclass#readme",
|
"homepage": "https://github.com/tsclass/tsclass#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@pushrocks/tapbundle": "^3.2.9",
|
"type-fest": "^3.6.1"
|
||||||
"type-fest": "^0.16.0"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@gitzone/tsbuild": "^2.1.25",
|
"@gitzone/tsbuild": "^2.1.65",
|
||||||
"@gitzone/tsrun": "^1.2.12",
|
"@gitzone/tsrun": "^1.2.39",
|
||||||
"@gitzone/tstest": "^1.0.44",
|
"@gitzone/tstest": "^1.0.74",
|
||||||
"tslint": "^6.1.3",
|
"@pushrocks/tapbundle": "^5.0.4",
|
||||||
"tslint-config-prettier": "^1.18.0"
|
"@types/node": "^18.14.6"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"ts/**/*",
|
"ts/**/*",
|
||||||
|
4437
pnpm-lock.yaml
generated
Normal file
4437
pnpm-lock.yaml
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
|||||||
import { tap, expect } from '@pushrocks/tapbundle';
|
import { tap, expect } from '@pushrocks/tapbundle';
|
||||||
|
|
||||||
import * as tsclass from '../ts/index';
|
import * as tsclass from '../ts/index.js';
|
||||||
|
|
||||||
tap.test('should assign a correct type', async () => {
|
tap.test('should assign a correct type', async () => {
|
||||||
let contact: tsclass.business.IContact;
|
let contact: tsclass.business.IContact;
|
||||||
|
8
ts/00_commitinfo_data.ts
Normal file
8
ts/00_commitinfo_data.ts
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* autocreated commitinfo by @pushrocks/commitinfo
|
||||||
|
*/
|
||||||
|
export const commitinfo = {
|
||||||
|
name: '@tsclass/tsclass',
|
||||||
|
version: '4.0.33',
|
||||||
|
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 +1,2 @@
|
|||||||
export * from './claim';
|
export * from './claim.js';
|
||||||
|
export * from './processedclaim.js';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { IClaim } from './claim';
|
import { IClaim } from './claim.js';
|
||||||
|
|
||||||
export interface IProcessedClaim {
|
export interface IProcessedClaim {
|
||||||
originalJWT: string;
|
originalJWT: string;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { business, general } from '..';
|
import { business, general } from '../index.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* describes a company's lifecycle state
|
* describes a company's lifecycle state
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import { business } from '..';
|
import { finance } from '../index.js';
|
||||||
|
import { business } from '../index.js';
|
||||||
|
|
||||||
export type TContactSalutation = 'Mr' | 'Ms' | 'Mrs';
|
export type TContactSalutation = 'Mr' | 'Ms' | 'Mrs';
|
||||||
|
|
||||||
@ -33,5 +34,5 @@ export interface IContact {
|
|||||||
// financial
|
// financial
|
||||||
// =========
|
// =========
|
||||||
vatId?: string;
|
vatId?: string;
|
||||||
bankAccountNumber?: 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[];
|
||||||
|
}
|
@ -1,4 +1,8 @@
|
|||||||
export * from './address';
|
export * from './address.js';
|
||||||
export * from './company';
|
export * from './company.js';
|
||||||
export * from './contact';
|
export * from './contact.js';
|
||||||
export * from './person';
|
export * from './job.js';
|
||||||
|
export * from './letter.js';
|
||||||
|
export * from './pdf.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;
|
||||||
|
}
|
28
ts/business/letter.ts
Normal file
28
ts/business/letter.ts
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
import * as business from './index.js';
|
||||||
|
import * as finance from '../finance/index.js';
|
||||||
|
import * as database from '../database/index.js';
|
||||||
|
export interface ILetter {
|
||||||
|
incidenceId: string;
|
||||||
|
type: 'invoice' | 'notice' | 'warning' | 'verification' | 'contract';
|
||||||
|
date: number;
|
||||||
|
from: business.IContact;
|
||||||
|
to: business.IContact;
|
||||||
|
legalContact: business.IContact;
|
||||||
|
logoUrl: string;
|
||||||
|
subject: string;
|
||||||
|
accentColor?: string;
|
||||||
|
needsCoverSheet: boolean;
|
||||||
|
content: {
|
||||||
|
textData: string[];
|
||||||
|
invoiceData?: finance.IInvoice;
|
||||||
|
contractData?: {
|
||||||
|
id: string;
|
||||||
|
contractDate: number;
|
||||||
|
};
|
||||||
|
timesheetData: string;
|
||||||
|
}
|
||||||
|
pdf?: business.IPdf;
|
||||||
|
pdfAttachments: business.IPdf[];
|
||||||
|
language: string;
|
||||||
|
objectActions: database.IObjectAction[];
|
||||||
|
}
|
8
ts/business/pdf.ts
Normal file
8
ts/business/pdf.ts
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
export interface IPdf {
|
||||||
|
name: string;
|
||||||
|
id: string;
|
||||||
|
metadata: {
|
||||||
|
textExtraction: string;
|
||||||
|
};
|
||||||
|
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[];
|
||||||
|
}
|
5
ts/code/commitinfo.ts
Normal file
5
ts/code/commitinfo.ts
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
export interface ICommitInfo {
|
||||||
|
name: string;
|
||||||
|
version: string;
|
||||||
|
description: string;
|
||||||
|
}
|
1
ts/code/index.ts
Normal file
1
ts/code/index.ts
Normal file
@ -0,0 +1 @@
|
|||||||
|
export * from './commitinfo.js';
|
@ -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,2 +1,2 @@
|
|||||||
export * from './container';
|
export * from './container.js';
|
||||||
export * from './volumemount';
|
export * from './volumemount.js';
|
||||||
|
@ -1,11 +1,17 @@
|
|||||||
import { content } from '..';
|
import { content } from '../index.js';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* a general content article:
|
||||||
|
* * can be news
|
||||||
|
* * can be a productdescription,
|
||||||
|
* * can be anything that has text with a title
|
||||||
|
*/
|
||||||
export interface IArticle<T = any> {
|
export interface IArticle<T = any> {
|
||||||
/**
|
/**
|
||||||
* the main url of an article
|
* the main url of an article
|
||||||
*/
|
*/
|
||||||
url?: string;
|
url?: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* the mainimage of the article
|
* the mainimage of the article
|
||||||
*/
|
*/
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
import { general, content } from '..';
|
import { general, content } from '../index.js';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* answers the question "Who wrote that?"
|
||||||
|
*/
|
||||||
export interface IAuthor {
|
export interface IAuthor {
|
||||||
/**
|
/**
|
||||||
* the first name of an author
|
* the first name of an author
|
||||||
|
10
ts/content/documentationset.ts
Normal file
10
ts/content/documentationset.ts
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
import { IArticle } from './article.js';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* a set of articles that together form a body of documentation
|
||||||
|
*/
|
||||||
|
export interface IDocumentationSet {
|
||||||
|
id: string;
|
||||||
|
creationTimestamp: number;
|
||||||
|
articles: IArticle[];
|
||||||
|
}
|
@ -1,2 +1,3 @@
|
|||||||
export * from './article';
|
export * from './article.js';
|
||||||
export * from './author';
|
export * from './author.js';
|
||||||
|
export * from './documentationset.js';
|
||||||
|
4
ts/database/index.ts
Normal file
4
ts/database/index.ts
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
export * from './mongodescriptor.js';
|
||||||
|
export * from './objectaction.js';
|
||||||
|
export * from './objectstatus.js';
|
||||||
|
export * from './wrappeddata.js';
|
25
ts/database/mongodescriptor.ts
Normal file
25
ts/database/mongodescriptor.ts
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
/**
|
||||||
|
* contains the complete info for how to connect to a mongodb database.
|
||||||
|
*/
|
||||||
|
export interface IMongoDescriptor {
|
||||||
|
/**
|
||||||
|
* the URL to connect to
|
||||||
|
*/
|
||||||
|
mongoDbUrl: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* the db to use for the project
|
||||||
|
*/
|
||||||
|
mongoDbName?: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* a username to use to connect to the database
|
||||||
|
*/
|
||||||
|
|
||||||
|
mongoDbUser?: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* an optional password that will be replace <PASSWORD> in the connection string
|
||||||
|
*/
|
||||||
|
mongoDbPass?: string;
|
||||||
|
}
|
8
ts/database/objectaction.ts
Normal file
8
ts/database/objectaction.ts
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
export interface IObjectAction {
|
||||||
|
timestamp: number;
|
||||||
|
name: string;
|
||||||
|
userId: string;
|
||||||
|
data: any;
|
||||||
|
message: string;
|
||||||
|
privateMessage: string;
|
||||||
|
}
|
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;
|
||||||
|
};
|
||||||
|
}
|
3
ts/database/wrappeddata.ts
Normal file
3
ts/database/wrappeddata.ts
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
export interface IWrappedData<T> {
|
||||||
|
data: T;
|
||||||
|
}
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* a constract event describes any kind of sale
|
* a contract event describes any kind of sale
|
||||||
*/
|
*/
|
||||||
export interface IEvent_Contract {
|
export interface IEvent_Contract {
|
||||||
contractId: string;
|
contractId: string;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
export * from './contractevent';
|
export * from './contractevent.js';
|
||||||
export * from './moneyevent';
|
export * from './moneyevent.js';
|
||||||
export * from './releaseevent';
|
export * from './releaseevent.js';
|
||||||
export * from './requestevent';
|
export * from './requestevent.js';
|
||||||
export * from './sessionevent';
|
export * from './sessionevent.js';
|
||||||
export * from './userevent';
|
export * from './userevent.js';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { finance } from '../';
|
import { finance } from '../index.js';
|
||||||
|
|
||||||
export interface ICheckingAccount {
|
export interface ICheckingAccount {
|
||||||
name: string;
|
name: string;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { business } from '../';
|
import { business } from '../index.js';
|
||||||
|
|
||||||
export interface IExpenseItem {
|
export interface IExpenseItem {
|
||||||
description: string;
|
description: string;
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
export * from './checkingaccount';
|
export * from './checkingaccount.js';
|
||||||
export * from './currency';
|
export * from './currency.js';
|
||||||
export * from './expense';
|
export * from './expense.js';
|
||||||
export * from './invoice';
|
export * from './invoice.js';
|
||||||
export * from './transaction';
|
export * from './payment.js';
|
||||||
|
export * from './transaction.js';
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
import { business } from '..';
|
import { business, finance } from '../index.js';
|
||||||
|
|
||||||
export type TInvoiceStatus = 'draft' | 'invoice' | 'paid' | 'refunded';
|
export type TInvoiceStatus = 'draft' | 'invoice' | 'paid' | 'refunded';
|
||||||
|
|
||||||
export interface IInvoiceItem {
|
export interface IInvoiceItem {
|
||||||
name: string;
|
name: string;
|
||||||
|
articleNumber?: string;
|
||||||
unitType: string;
|
unitType: string;
|
||||||
unitQuantity: number;
|
unitQuantity: number;
|
||||||
unitNetPrice: number;
|
unitNetPrice: number;
|
||||||
@ -12,10 +13,18 @@ export interface IInvoiceItem {
|
|||||||
}
|
}
|
||||||
|
|
||||||
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;
|
||||||
|
dueInDays: number;
|
||||||
|
reverseCharge: boolean;
|
||||||
printResult?: {
|
printResult?: {
|
||||||
pdfBufferString: string;
|
pdfBufferString: string;
|
||||||
totalNet: number;
|
totalNet: number;
|
||||||
@ -23,6 +32,7 @@ export interface IInvoice {
|
|||||||
vatGroups: {
|
vatGroups: {
|
||||||
percentage: number;
|
percentage: number;
|
||||||
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;
|
||||||
|
}
|
@ -1,2 +1,2 @@
|
|||||||
export * from './date';
|
export * from './date.js';
|
||||||
export * from './time';
|
export * from './time.js';
|
||||||
|
25
ts/index.ts
25
ts/index.ts
@ -1,25 +1,34 @@
|
|||||||
// Business
|
// Business
|
||||||
import * as business from './business';
|
import * as business from './business/index.js';
|
||||||
|
|
||||||
|
// Code
|
||||||
|
import * as code from './code/index.js';
|
||||||
|
|
||||||
// Container
|
// Container
|
||||||
import * as container from './container';
|
import * as container from './container/index.js';
|
||||||
|
|
||||||
|
// Database
|
||||||
|
import * as database from './database/index.js';
|
||||||
|
|
||||||
// Finance
|
// Finance
|
||||||
import * as finance from './finance';
|
import * as finance from './finance/index.js';
|
||||||
|
|
||||||
// Content
|
// Content
|
||||||
import * as content from './content';
|
import * as content from './content/index.js';
|
||||||
|
|
||||||
// General
|
// General
|
||||||
import * as general from './general';
|
import * as general from './general/index.js';
|
||||||
|
|
||||||
// Network
|
// Network
|
||||||
import * as network from './network';
|
import * as network from './network/index.js';
|
||||||
|
|
||||||
// SaaS
|
// SaaS
|
||||||
import * as saas from './saas';
|
import * as saas from './saas/index.js';
|
||||||
|
|
||||||
export { business, container, finance, content, general, network, saas };
|
// Website
|
||||||
|
import * as website from './website/index.js';
|
||||||
|
|
||||||
|
export { business, container, code, database, finance, content, general, network, saas, website };
|
||||||
|
|
||||||
import type * as typeFest from 'type-fest';
|
import type * as typeFest from 'type-fest';
|
||||||
|
|
||||||
|
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;
|
||||||
|
}
|
@ -1,6 +1,8 @@
|
|||||||
export * from './cert';
|
export * from './cert.js';
|
||||||
export * from './dns';
|
export * from './cname.js';
|
||||||
export * from './dnschallenge';
|
export * from './device.js';
|
||||||
export * from './networknode';
|
export * from './dns.js';
|
||||||
export * from './request';
|
export * from './dnschallenge.js';
|
||||||
export * from './reverseproxy';
|
export * from './networknode.js';
|
||||||
|
export * from './request.js';
|
||||||
|
export * from './reverseproxy.js';
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
export * from './subscriptionplan';
|
export * from './subscriptionplan.js';
|
||||||
export * from './product';
|
export * from './product.js';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { IProduct } from './product';
|
import { IProduct } from './product.js';
|
||||||
|
|
||||||
export interface ISubscriptionPlan {
|
export interface ISubscriptionPlan {
|
||||||
name: string;
|
name: string;
|
||||||
|
1
ts/website/index.ts
Normal file
1
ts/website/index.ts
Normal file
@ -0,0 +1 @@
|
|||||||
|
export * from './menuitem.js';
|
5
ts/website/menuitem.ts
Normal file
5
ts/website/menuitem.ts
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
export interface IMenuItem {
|
||||||
|
name: string;
|
||||||
|
iconName?: string;
|
||||||
|
action: <T = any>() => void | Promise<T>;
|
||||||
|
}
|
9
tsconfig.json
Normal file
9
tsconfig.json
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"experimentalDecorators": true,
|
||||||
|
"useDefineForClassFields": false,
|
||||||
|
"target": "ES2022",
|
||||||
|
"module": "ES2022",
|
||||||
|
"moduleResolution": "nodenext"
|
||||||
|
}
|
||||||
|
}
|
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