Compare commits
24 Commits
Author | SHA1 | Date | |
---|---|---|---|
fdc63b0f4f | |||
4307bb68a7 | |||
5c60875d46 | |||
0a5443c646 | |||
f38274e325 | |||
800123586e | |||
bf37575140 | |||
c7420aba79 | |||
3770b7dada | |||
5b00b5d7e9 | |||
e7d2eb5cab | |||
b38a59f91a | |||
f92abdfb4e | |||
8bc0506b60 | |||
8a690e5065 | |||
50b401db9b | |||
96e86993bf | |||
485ed3630d | |||
9a6ffcbc03 | |||
d39d9c2a86 | |||
3c67658a0e | |||
e9d4a1641f | |||
2cec65f8a0 | |||
d20073a2b0 |
10
package.json
10
package.json
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@tsclass/tsclass",
|
"name": "@tsclass/tsclass",
|
||||||
"version": "4.0.26",
|
"version": "4.0.38",
|
||||||
"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": "^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",
|
||||||
"@types/node": "^18.11.0"
|
"@types/node": "^18.15.11"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"ts/**/*",
|
"ts/**/*",
|
||||||
|
2181
pnpm-lock.yaml
generated
2181
pnpm-lock.yaml
generated
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.26',
|
version: '4.0.38',
|
||||||
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,5 +1,5 @@
|
|||||||
import * as database from '../database/index.js';
|
import * as database from '../database/index.js';
|
||||||
import { IPerson } from "./person.js";
|
import { 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';
|
||||||
|
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,7 +1,6 @@
|
|||||||
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';
|
type: 'invoice' | 'notice' | 'warning' | 'verification' | 'contract';
|
||||||
@ -11,15 +10,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;
|
||||||
|
content: {
|
||||||
|
textData: string[];
|
||||||
invoiceData?: finance.IInvoice;
|
invoiceData?: finance.IInvoice;
|
||||||
contractData?: {
|
contractData?: {
|
||||||
id: string;
|
id: string;
|
||||||
contractDate: number;
|
contractDate: number;
|
||||||
};
|
};
|
||||||
timesheetData: string;
|
timesheetData: string;
|
||||||
|
}
|
||||||
pdf?: business.IPdf;
|
pdf?: business.IPdf;
|
||||||
pdfAttachments: business.IPdf[];
|
pdfAttachments: business.IPdf[];
|
||||||
language: string;
|
language: string;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { IContact } from "./contact.js";
|
import { IContact } from './contact.js';
|
||||||
|
|
||||||
export interface IPerson {
|
export interface IPerson {
|
||||||
title: string;
|
title: string;
|
||||||
@ -8,5 +8,5 @@ export interface IPerson {
|
|||||||
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,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;
|
||||||
|
};
|
||||||
|
}
|
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;
|
||||||
|
};
|
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,9 @@
|
|||||||
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 './networknode.js';
|
export * from './networknode.js';
|
||||||
export * from './request.js';
|
export * from './request.js';
|
||||||
export * from './reverseproxy.js';
|
export * from './reverseproxy.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>;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user