Compare commits
52 Commits
Author | SHA1 | Date | |
---|---|---|---|
e13236e10f | |||
18d52a9018 | |||
582b269d63 | |||
6293db82fd | |||
eda528b6d9 | |||
4e52240ae7 | |||
61b6835b31 | |||
48c65d726b | |||
8b61ec02a2 | |||
90c3a9b3b4 | |||
f25fb72924 | |||
995f7772ef | |||
60a528aad4 | |||
310d60a84e | |||
5fd5fc501f | |||
bf79856f67 | |||
b1025faa62 | |||
f22ec7d654 | |||
585e9fd4b3 | |||
537c54b5f3 | |||
2f95b5d2ef | |||
c1f22e0cb1 | |||
5c430fddfc | |||
f9478aa3c2 | |||
055b85c7c4 | |||
5730d87b0c | |||
610fda5f36 | |||
e206405d70 | |||
fdc63b0f4f | |||
4307bb68a7 | |||
5c60875d46 | |||
0a5443c646 | |||
f38274e325 | |||
800123586e | |||
bf37575140 | |||
c7420aba79 | |||
3770b7dada | |||
5b00b5d7e9 | |||
e7d2eb5cab | |||
b38a59f91a | |||
f92abdfb4e | |||
8bc0506b60 | |||
8a690e5065 | |||
50b401db9b | |||
96e86993bf | |||
485ed3630d | |||
9a6ffcbc03 | |||
d39d9c2a86 | |||
3c67658a0e | |||
e9d4a1641f | |||
2cec65f8a0 | |||
d20073a2b0 |
14
package.json
14
package.json
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@tsclass/tsclass",
|
"name": "@tsclass/tsclass",
|
||||||
"version": "4.0.26",
|
"version": "4.0.52",
|
||||||
"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,14 +26,14 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/tsclass/tsclass#readme",
|
"homepage": "https://github.com/tsclass/tsclass#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"type-fest": "^3.1.0"
|
"type-fest": "^4.10.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@gitzone/tsbuild": "^2.1.65",
|
"@git.zone/tsbuild": "^2.1.72",
|
||||||
"@gitzone/tsrun": "^1.2.37",
|
"@git.zone/tsrun": "^1.2.46",
|
||||||
"@gitzone/tstest": "^1.0.73",
|
"@git.zone/tstest": "^1.0.86",
|
||||||
"@pushrocks/tapbundle": "^5.0.4",
|
"@push.rocks/tapbundle": "^5.0.15",
|
||||||
"@types/node": "^18.11.0"
|
"@types/node": "^20.11.17"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"ts/**/*",
|
"ts/**/*",
|
||||||
|
4802
pnpm-lock.yaml
generated
4802
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@ -1,4 +1,4 @@
|
|||||||
import { tap, expect } from '@pushrocks/tapbundle';
|
import { tap, expect } from '@push.rocks/tapbundle';
|
||||||
|
|
||||||
import * as tsclass from '../ts/index.js';
|
import * as tsclass from '../ts/index.js';
|
||||||
|
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@tsclass/tsclass',
|
name: '@tsclass/tsclass',
|
||||||
version: '4.0.26',
|
version: '4.0.52',
|
||||||
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 { type 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,4 +1,4 @@
|
|||||||
import { IClaim } from './claim.js';
|
import { type IClaim } from './claim.js';
|
||||||
|
|
||||||
export interface IProcessedClaim {
|
export interface IProcessedClaim {
|
||||||
originalJWT: string;
|
originalJWT: string;
|
||||||
|
@ -10,6 +10,9 @@ export type TCompanyStatus = 'planed' | 'founding' | 'active' | 'liquidation' |
|
|||||||
*/
|
*/
|
||||||
export interface ICompany {
|
export interface ICompany {
|
||||||
name: string;
|
name: string;
|
||||||
|
slogan?: string;
|
||||||
|
description?: string;
|
||||||
|
logoLink?: string;
|
||||||
foundedDate: general.IDate;
|
foundedDate: general.IDate;
|
||||||
closedDate: general.IDate;
|
closedDate: general.IDate;
|
||||||
status: business.TCompanyStatus;
|
status: business.TCompanyStatus;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import * as database from '../database/index.js';
|
import * as database from '../database/index.js';
|
||||||
import { IPerson } from "./person.js";
|
import { type IPerson } from './person.js';
|
||||||
|
|
||||||
export interface IContract {
|
export interface IContract {
|
||||||
parties: {
|
parties: {
|
||||||
@ -13,8 +13,8 @@ export interface IContract {
|
|||||||
location?: string;
|
location?: string;
|
||||||
ip?: string;
|
ip?: string;
|
||||||
verifications?: [];
|
verifications?: [];
|
||||||
}
|
};
|
||||||
}[],
|
}[];
|
||||||
contractTextMarkdown: string;
|
contractTextMarkdown: string;
|
||||||
actions: database.IObjectAction[];
|
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';
|
||||||
|
18
ts/business/job.ts
Normal file
18
ts/business/job.ts
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
import * as finance from '../finance/index.js';
|
||||||
|
import { type ICompany } from './company.js';
|
||||||
|
import { type IContact } from './contact.js';
|
||||||
|
export class IJob {
|
||||||
|
type: 'contract' | 'employment';
|
||||||
|
techTags?: string[];
|
||||||
|
qualificationTags?: string[];
|
||||||
|
languages?: {
|
||||||
|
name: string;
|
||||||
|
level: 'basic' | 'intermediate' | 'advanced' | 'native';
|
||||||
|
}[];
|
||||||
|
name: string;
|
||||||
|
description: string;
|
||||||
|
monthlyTotal: number;
|
||||||
|
currency: finance.TCurrency;
|
||||||
|
from: ICompany;
|
||||||
|
contact: IContact;
|
||||||
|
}
|
@ -1,8 +1,14 @@
|
|||||||
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 {
|
||||||
|
versionInfo: {
|
||||||
|
type: 'draft' | 'final';
|
||||||
|
/**
|
||||||
|
* should follow semVer
|
||||||
|
*/
|
||||||
|
version: string;
|
||||||
|
};
|
||||||
incidenceId: string;
|
incidenceId: string;
|
||||||
type: 'invoice' | 'notice' | 'warning' | 'verification' | 'contract';
|
type: 'invoice' | 'notice' | 'warning' | 'verification' | 'contract';
|
||||||
date: number;
|
date: number;
|
||||||
@ -11,15 +17,17 @@ export interface ILetter {
|
|||||||
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;
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
import { IContact } from "./contact.js";
|
import { type 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?: {
|
legalProxyFor?: {
|
||||||
type: 'self' | 'other';
|
type: 'self' | 'other';
|
||||||
contact?: IContact;
|
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,4 +1,4 @@
|
|||||||
import { IArticle } from './article.js';
|
import { type IArticle } from './article.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* a set of articles that together form a body of documentation
|
* a set of articles that together form a body of documentation
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
export * from './mongodescriptor.js';
|
export * from './mongodescriptor.js';
|
||||||
export * from './objectaction.js';
|
export * from './objectaction.js';
|
||||||
|
export * from './objectstatus.js';
|
||||||
export * from './wrappeddata.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;
|
||||||
|
};
|
||||||
|
}
|
@ -25,11 +25,15 @@ import * as network from './network/index.js';
|
|||||||
// SaaS
|
// SaaS
|
||||||
import * as saas from './saas/index.js';
|
import * as saas from './saas/index.js';
|
||||||
|
|
||||||
|
// Storage
|
||||||
|
import * as storage from './storage/index.js';
|
||||||
|
|
||||||
// Website
|
// Website
|
||||||
import * as website from './website/index.js';
|
import * as website from './website/index.js';
|
||||||
|
|
||||||
export { business, container, code, database, finance, content, general, network, saas, website };
|
export { business, container, code, database, finance, content, general, network, saas, storage, website };
|
||||||
|
|
||||||
import type * as typeFest from 'type-fest';
|
import type * as typeFest from 'type-fest';
|
||||||
|
import * as typeFestOwn from './typefest.own.js';
|
||||||
|
|
||||||
export { typeFest };
|
export { type typeFest, type typeFestOwn };
|
||||||
|
29
ts/network/cname.ts
Normal file
29
ts/network/cname.ts
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
import { type 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;
|
||||||
|
};
|
31
ts/network/domaindelegation.ts
Normal file
31
ts/network/domaindelegation.ts
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
export interface IDomainDelegation {
|
||||||
|
/**
|
||||||
|
* 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 domain without the public suffix
|
||||||
|
*/
|
||||||
|
domainWithoutSuffix: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* the subdomain, meaning whats usually considered a subdomain like www
|
||||||
|
*/
|
||||||
|
subdomain: string;
|
||||||
|
|
||||||
|
isIcann?: boolean;
|
||||||
|
dnsSecEnabled?: boolean;
|
||||||
|
}
|
@ -1,7 +1,11 @@
|
|||||||
export * from './cert.js';
|
export * from './cert.js';
|
||||||
|
export * from './cname.js';
|
||||||
export * from './device.js';
|
export * from './device.js';
|
||||||
export * from './dns.js';
|
export * from './dns.js';
|
||||||
export * from './dnschallenge.js';
|
export * from './dnschallenge.js';
|
||||||
|
export * from './domaindelegation.js';
|
||||||
|
export * from './jwt.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';
|
||||||
|
export * from './ssh.js';
|
||||||
|
4
ts/network/jwt.ts
Normal file
4
ts/network/jwt.ts
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
export interface IJwtKeypair {
|
||||||
|
privatePem: string;
|
||||||
|
publicPem: string;
|
||||||
|
}
|
5
ts/network/ssh.ts
Normal file
5
ts/network/ssh.ts
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
export interface ISshKey {
|
||||||
|
keyName: string;
|
||||||
|
public: string;
|
||||||
|
private?: string;
|
||||||
|
}
|
@ -1 +1,14 @@
|
|||||||
export interface IProduct {}
|
import { type ICompany } from "../business/company.js";
|
||||||
|
|
||||||
|
export interface IProduct {
|
||||||
|
name: string;
|
||||||
|
slogan: string;
|
||||||
|
description: string;
|
||||||
|
os: 'web-based',
|
||||||
|
category: 'Business Application',
|
||||||
|
offers: any[];
|
||||||
|
landingPage: string;
|
||||||
|
appLink: string;
|
||||||
|
logoLink: string;
|
||||||
|
publisher?: ICompany;
|
||||||
|
}
|
@ -1,4 +1,4 @@
|
|||||||
import { IProduct } from './product.js';
|
import { type IProduct } from './product.js';
|
||||||
|
|
||||||
export interface ISubscriptionPlan {
|
export interface ISubscriptionPlan {
|
||||||
name: string;
|
name: string;
|
||||||
|
7
ts/storage/index.ts
Normal file
7
ts/storage/index.ts
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
export interface IS3Descriptor {
|
||||||
|
endpoint: string;
|
||||||
|
port?: number;
|
||||||
|
useSsl?: boolean;
|
||||||
|
accessKey: string;
|
||||||
|
accessSecret: string;
|
||||||
|
}
|
8
ts/typefest.own.ts
Normal file
8
ts/typefest.own.ts
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
type SecondArgument<T> = T extends (arg1: any, arg2: infer P, ...args: any[]) => any ? P : never;
|
||||||
|
|
||||||
|
type ValueType<T> = T extends { [key: string]: infer U } ? U : never;
|
||||||
|
|
||||||
|
export type {
|
||||||
|
SecondArgument,
|
||||||
|
ValueType
|
||||||
|
}
|
@ -1,4 +1,5 @@
|
|||||||
export interface IMenuItem {
|
export interface IMenuItem<T = any, U = any> {
|
||||||
name: string;
|
name: string;
|
||||||
action: <T = any>() => void | Promise<T>;
|
iconName?: string;
|
||||||
|
action: (optionsArg?: T) => Promise<U>;
|
||||||
}
|
}
|
||||||
|
@ -4,6 +4,11 @@
|
|||||||
"useDefineForClassFields": false,
|
"useDefineForClassFields": false,
|
||||||
"target": "ES2022",
|
"target": "ES2022",
|
||||||
"module": "ES2022",
|
"module": "ES2022",
|
||||||
"moduleResolution": "nodenext"
|
"moduleResolution": "nodenext",
|
||||||
}
|
"esModuleInterop": true,
|
||||||
|
"verbatimModuleSyntax": true
|
||||||
|
},
|
||||||
|
"exclude": [
|
||||||
|
"dist_*/**/*.d.ts"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user