Compare commits

...

20 Commits

Author SHA1 Message Date
60a528aad4 4.0.46 2023-10-15 12:26:02 +02:00
310d60a84e fix(core): update 2023-10-15 12:26:01 +02:00
5fd5fc501f 4.0.45 2023-10-13 17:37:28 +02:00
bf79856f67 fix(core): update 2023-10-13 17:37:27 +02:00
b1025faa62 4.0.44 2023-10-13 17:31:29 +02:00
f22ec7d654 fix(core): update 2023-10-13 17:31:28 +02:00
585e9fd4b3 4.0.43 2023-09-13 13:31:30 +02:00
537c54b5f3 fix(core): update 2023-09-13 13:31:30 +02:00
2f95b5d2ef 4.0.42 2023-05-08 16:46:00 +02:00
c1f22e0cb1 fix(core): update 2023-05-08 16:45:59 +02:00
5c430fddfc 4.0.41 2023-05-08 15:05:52 +02:00
f9478aa3c2 fix(core): update 2023-05-08 15:05:52 +02:00
055b85c7c4 4.0.40 2023-05-06 21:21:02 +02:00
5730d87b0c fix(core): update 2023-05-06 21:21:01 +02:00
610fda5f36 4.0.39 2023-05-06 17:23:46 +02:00
e206405d70 fix(core): update 2023-05-06 17:23:46 +02:00
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
21 changed files with 2300 additions and 1070 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@tsclass/tsclass",
"version": "4.0.36",
"version": "4.0.46",
"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.7.2"
"type-fest": "^4.3.1"
},
"devDependencies": {
"@gitzone/tsbuild": "^2.1.65",
"@gitzone/tsrun": "^1.2.39",
"@gitzone/tstest": "^1.0.74",
"@pushrocks/tapbundle": "^5.0.4",
"@types/node": "^18.15.11"
"@git.zone/tsbuild": "^2.1.70",
"@git.zone/tsrun": "^1.2.46",
"@git.zone/tstest": "^1.0.81",
"@push.rocks/tapbundle": "^5.0.15",
"@types/node": "^20.6.0"
},
"files": [
"ts/**/*",

3250
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +1,4 @@
import { tap, expect } from '@pushrocks/tapbundle';
import { tap, expect } from '@push.rocks/tapbundle';
import * as tsclass from '../ts/index.js';

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@tsclass/tsclass',
version: '4.0.36',
version: '4.0.46',
description: 'common classes for TypeScript'
}

View File

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

View File

@ -1,4 +1,4 @@
import { IClaim } from './claim.js';
import { type IClaim } from './claim.js';
export interface IProcessedClaim {
originalJWT: string;

View File

@ -10,6 +10,9 @@ export type TCompanyStatus = 'planed' | 'founding' | 'active' | 'liquidation' |
*/
export interface ICompany {
name: string;
slogan?: string;
description?: string;
logoLink?: string;
foundedDate: general.IDate;
closedDate: general.IDate;
status: business.TCompanyStatus;

View File

@ -1,5 +1,5 @@
import * as database from '../database/index.js';
import { IPerson } from './person.js';
import { type IPerson } from './person.js';
export interface IContract {
parties: {

View File

@ -1,8 +1,14 @@
import * as finance from '../finance/index.js';
import { ICompany } from './company.js';
import { IContact } from './contact.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;

View File

@ -2,6 +2,13 @@ import * as business from './index.js';
import * as finance from '../finance/index.js';
import * as database from '../database/index.js';
export interface ILetter {
versionInfo: {
type: 'draft' | 'final';
/**
* should follow semVer
*/
version: string;
};
incidenceId: string;
type: 'invoice' | 'notice' | 'warning' | 'verification' | 'contract';
date: number;

View File

@ -1,4 +1,4 @@
import { IContact } from './contact.js';
import { type IContact } from './contact.js';
export interface IPerson {
title: string;

View File

@ -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

View File

@ -31,5 +31,6 @@ 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 * as typeFestOwn from './typefest.own.js';
export { typeFest };
export { type typeFest, type typeFestOwn };

View File

@ -1,4 +1,4 @@
import { ICert } from "./cert.js";
import { type ICert } from "./cert.js";
export class ICnameDescriptor {
/**

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

@ -3,6 +3,7 @@ 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 +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;
}

View File

@ -1,4 +1,4 @@
import { IProduct } from './product.js';
import { type IProduct } from './product.js';
export interface ISubscriptionPlan {
name: string;

5
ts/typefest.own.ts Normal file
View File

@ -0,0 +1,5 @@
type ValueType<T> = T extends { [key: string]: infer U } ? U : never;
export type {
ValueType
}

View File

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

View File

@ -4,6 +4,11 @@
"useDefineForClassFields": false,
"target": "ES2022",
"module": "ES2022",
"moduleResolution": "nodenext"
}
"moduleResolution": "nodenext",
"esModuleInterop": true,
"verbatimModuleSyntax": true
},
"exclude": [
"dist_*/**/*.d.ts"
]
}