Compare commits

..

14 Commits

Author SHA1 Message Date
e13236e10f 4.0.52 2024-02-17 20:54:54 +01:00
18d52a9018 fix(core): update 2024-02-17 20:54:53 +01:00
582b269d63 4.0.51 2024-02-13 01:08:22 +01:00
6293db82fd fix(core): update 2024-02-13 01:08:21 +01:00
eda528b6d9 4.0.50 2024-02-10 04:34:23 +01:00
4e52240ae7 fix(core): update 2024-02-10 04:34:22 +01:00
61b6835b31 4.0.49 2024-02-10 04:22:55 +01:00
48c65d726b fix(core): update 2024-02-10 04:22:54 +01:00
8b61ec02a2 4.0.48 2024-02-09 16:39:37 +01:00
90c3a9b3b4 fix(core): update 2024-02-09 16:39:37 +01:00
f25fb72924 4.0.47 2023-10-15 12:26:47 +02:00
995f7772ef fix(core): update 2023-10-15 12:26:46 +02:00
60a528aad4 4.0.46 2023-10-15 12:26:02 +02:00
310d60a84e fix(core): update 2023-10-15 12:26:01 +02:00
10 changed files with 763 additions and 371 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@tsclass/tsclass", "name": "@tsclass/tsclass",
"version": "4.0.45", "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": "^4.3.1" "type-fest": "^4.10.2"
}, },
"devDependencies": { "devDependencies": {
"@git.zone/tsbuild": "^2.1.70", "@git.zone/tsbuild": "^2.1.72",
"@git.zone/tsrun": "^1.2.46", "@git.zone/tsrun": "^1.2.46",
"@git.zone/tstest": "^1.0.81", "@git.zone/tstest": "^1.0.86",
"@push.rocks/tapbundle": "^5.0.15", "@push.rocks/tapbundle": "^5.0.15",
"@types/node": "^20.6.0" "@types/node": "^20.11.17"
}, },
"files": [ "files": [
"ts/**/*", "ts/**/*",

1089
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

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

View File

@ -2,6 +2,13 @@ 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';
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;

View File

@ -25,10 +25,13 @@ 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'; import * as typeFestOwn from './typefest.own.js';

View File

@ -4,6 +4,8 @@ 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 './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
View File

@ -0,0 +1,4 @@
export interface IJwtKeypair {
privatePem: string;
publicPem: string;
}

5
ts/network/ssh.ts Normal file
View File

@ -0,0 +1,5 @@
export interface ISshKey {
keyName: string;
public: string;
private?: string;
}

7
ts/storage/index.ts Normal file
View File

@ -0,0 +1,7 @@
export interface IS3Descriptor {
endpoint: string;
port?: number;
useSsl?: boolean;
accessKey: string;
accessSecret: string;
}

View File

@ -1,5 +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; type ValueType<T> = T extends { [key: string]: infer U } ? U : never;
export type { export type {
SecondArgument,
ValueType ValueType
} }