Compare commits

...

24 Commits

Author SHA1 Message Date
fdc63b0f4f 4.0.38 2023-04-19 21:06:51 +02:00
4307bb68a7 fix(core): update 2023-04-19 21:06:50 +02:00
5c60875d46 4.0.37 2023-04-19 21:03:08 +02:00
0a5443c646 fix(core): update 2023-04-19 21:03:08 +02:00
f38274e325 4.0.36 2023-04-05 14:30:31 +02:00
800123586e fix(core): update 2023-04-05 14:30:29 +02:00
bf37575140 4.0.35 2023-04-05 13:28:59 +02:00
c7420aba79 fix(core): update 2023-04-05 13:28:58 +02:00
3770b7dada 4.0.34 2023-03-14 11:55:33 +01:00
5b00b5d7e9 fix(core): update 2023-03-14 11:55:32 +01:00
e7d2eb5cab 4.0.33 2023-03-09 01:22:44 +01:00
b38a59f91a fix(core): update 2023-03-09 01:22:43 +01:00
f92abdfb4e 4.0.32 2023-03-09 01:21:06 +01:00
8bc0506b60 fix(core): update 2023-03-09 01:21:06 +01:00
8a690e5065 4.0.31 2023-02-15 20:19:25 +01:00
50b401db9b fix(core): update 2023-02-15 20:19:24 +01:00
96e86993bf 4.0.30 2023-02-06 16:16:29 +01:00
485ed3630d fix(core): update 2023-02-06 16:16:28 +01:00
9a6ffcbc03 4.0.29 2023-01-12 20:58:34 +01:00
d39d9c2a86 fix(core): update 2023-01-12 20:58:34 +01:00
3c67658a0e 4.0.28 2022-11-20 10:28:14 +01:00
e9d4a1641f fix(core): update 2022-11-20 10:28:14 +01:00
2cec65f8a0 4.0.27 2022-10-31 13:59:04 +01:00
d20073a2b0 fix(core): update 2022-10-31 13:59:03 +01:00
19 changed files with 1308 additions and 1039 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@tsclass/tsclass",
"version": "4.0.26",
"version": "4.0.38",
"private": false,
"description": "common classes for TypeScript",
"main": "dist_ts/index.js",
@ -26,14 +26,14 @@
},
"homepage": "https://github.com/tsclass/tsclass#readme",
"dependencies": {
"type-fest": "^3.1.0"
"type-fest": "^3.7.2"
},
"devDependencies": {
"@gitzone/tsbuild": "^2.1.65",
"@gitzone/tsrun": "^1.2.37",
"@gitzone/tstest": "^1.0.73",
"@gitzone/tsrun": "^1.2.39",
"@gitzone/tstest": "^1.0.74",
"@pushrocks/tapbundle": "^5.0.4",
"@types/node": "^18.11.0"
"@types/node": "^18.15.11"
},
"files": [
"ts/**/*",

2181
pnpm-lock.yaml generated

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.26',
version: '4.0.38',
description: 'common classes for TypeScript'
}

View File

@ -0,0 +1,5 @@
import { IInvoice } from "../finance/invoice.js";
export function createLetterFromInvoice(invoiceArg: IInvoice) {
}

View File

@ -0,0 +1 @@
export * from './finance.js';

View File

@ -1,5 +1,5 @@
import * as database from '../database/index.js';
import { IPerson } from "./person.js";
import { IPerson } from './person.js';
export interface IContract {
parties: {
@ -13,8 +13,8 @@ export interface IContract {
location?: string;
ip?: string;
verifications?: [];
}
}[],
};
}[];
contractTextMarkdown: string;
actions: database.IObjectAction[];
}
}

View File

@ -1,6 +1,8 @@
export * from './address.js';
export * from './company.js';
export * from './contact.js';
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
View 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;
}

View File

@ -1,7 +1,6 @@
import * as business from './index.js';
import * as finance from '../finance/index.js';
import * as database from '../database/index.js';
import type { TypedArray } from 'type-fest';
export interface ILetter {
incidenceId: string;
type: 'invoice' | 'notice' | 'warning' | 'verification' | 'contract';
@ -11,15 +10,17 @@ export interface ILetter {
legalContact: business.IContact;
logoUrl: string;
subject: string;
text: string[];
accentColor?: string;
needsCoverSheet: boolean;
invoiceData?: finance.IInvoice;
contractData?: {
id: string;
contractDate: number;
};
timesheetData: string;
content: {
textData: string[];
invoiceData?: finance.IInvoice;
contractData?: {
id: string;
contractDate: number;
};
timesheetData: string;
}
pdf?: business.IPdf;
pdfAttachments: business.IPdf[];
language: string;

View File

@ -1,12 +1,12 @@
import { IContact } from "./contact.js";
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;
}
};
}

18
ts/business/project.ts Normal file
View 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[];
}

View File

@ -1 +1,2 @@
export * from './commitinfo.js';
export * from './statusobject.js';

13
ts/code/statusobject.ts Normal file
View 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;
}>
}

View File

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

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

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

View File

@ -1,7 +1,9 @@
export * from './cert.js';
export * from './cname.js';
export * from './device.js';
export * from './dns.js';
export * from './dnschallenge.js';
export * from './domaindelegation.js';
export * from './networknode.js';
export * from './request.js';
export * from './reverseproxy.js';

View File

@ -1,4 +1,5 @@
export interface IMenuItem {
name: string;
iconName?: string;
action: <T = any>() => void | Promise<T>;
}