Compare commits
10 Commits
Author | SHA1 | Date | |
---|---|---|---|
d8e1609851 | |||
9302766e91 | |||
318e9a2476 | |||
7434f8a6a4 | |||
0f23c88a45 | |||
9ef38d21d7 | |||
058c8cbfc2 | |||
9f1b5df136 | |||
1862444da9 | |||
c69b595fd1 |
@ -12,6 +12,9 @@ stages:
|
|||||||
- release
|
- release
|
||||||
- metadata
|
- metadata
|
||||||
|
|
||||||
|
before_script:
|
||||||
|
- npm install -g @shipzone/npmci
|
||||||
|
|
||||||
# ====================
|
# ====================
|
||||||
# security stage
|
# security stage
|
||||||
# ====================
|
# ====================
|
||||||
@ -36,6 +39,7 @@ auditProductionDependencies:
|
|||||||
- npmci command npm audit --audit-level=high --only=prod --production
|
- npmci command npm audit --audit-level=high --only=prod --production
|
||||||
tags:
|
tags:
|
||||||
- docker
|
- docker
|
||||||
|
allow_failure: true
|
||||||
|
|
||||||
auditDevDependencies:
|
auditDevDependencies:
|
||||||
image: registry.gitlab.com/hosttoday/ht-docker-node:npmci
|
image: registry.gitlab.com/hosttoday/ht-docker-node:npmci
|
||||||
@ -96,10 +100,9 @@ codequality:
|
|||||||
only:
|
only:
|
||||||
- tags
|
- tags
|
||||||
script:
|
script:
|
||||||
- npmci command npm install -g tslint typescript
|
- npmci command npm install -g typescript
|
||||||
- npmci npm prepare
|
- npmci npm prepare
|
||||||
- npmci npm install
|
- npmci npm install
|
||||||
- npmci command "tslint -c tslint.json ./ts/**/*.ts"
|
|
||||||
tags:
|
tags:
|
||||||
- lossless
|
- lossless
|
||||||
- docker
|
- docker
|
||||||
|
24
.vscode/launch.json
vendored
24
.vscode/launch.json
vendored
@ -2,28 +2,10 @@
|
|||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
"name": "current file",
|
"command": "npm test",
|
||||||
"type": "node",
|
"name": "Run npm test",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"args": [
|
"type": "node-terminal"
|
||||||
"${relativeFile}"
|
|
||||||
],
|
|
||||||
"runtimeArgs": ["-r", "@gitzone/tsrun"],
|
|
||||||
"cwd": "${workspaceRoot}",
|
|
||||||
"protocol": "inspector",
|
|
||||||
"internalConsoleOptions": "openOnSessionStart"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "test.ts",
|
|
||||||
"type": "node",
|
|
||||||
"request": "launch",
|
|
||||||
"args": [
|
|
||||||
"test/test.ts"
|
|
||||||
],
|
|
||||||
"runtimeArgs": ["-r", "@gitzone/tsrun"],
|
|
||||||
"cwd": "${workspaceRoot}",
|
|
||||||
"protocol": "inspector",
|
|
||||||
"internalConsoleOptions": "openOnSessionStart"
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
21
LICENSE
21
LICENSE
@ -1,21 +0,0 @@
|
|||||||
The MIT License (MIT)
|
|
||||||
|
|
||||||
Copyright (c) 2016
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
|
||||||
in the Software without restriction, including without limitation the rights
|
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all
|
|
||||||
copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
||||||
SOFTWARE.
|
|
@ -9,7 +9,7 @@
|
|||||||
"githost": "gitlab.com",
|
"githost": "gitlab.com",
|
||||||
"gitscope": "tsclass",
|
"gitscope": "tsclass",
|
||||||
"gitrepo": "tsclass",
|
"gitrepo": "tsclass",
|
||||||
"shortDescription": "common classes for TypeScript",
|
"description": "common classes for TypeScript",
|
||||||
"npmPackagename": "@tsclass/tsclass",
|
"npmPackagename": "@tsclass/tsclass",
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
}
|
}
|
||||||
|
21745
package-lock.json
generated
21745
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
11
package.json
11
package.json
@ -1,10 +1,11 @@
|
|||||||
{
|
{
|
||||||
"name": "@tsclass/tsclass",
|
"name": "@tsclass/tsclass",
|
||||||
"version": "3.0.44",
|
"version": "4.0.0",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "common classes for TypeScript",
|
"description": "common classes for TypeScript",
|
||||||
"main": "dist_ts/index.js",
|
"main": "dist_ts/index.js",
|
||||||
"typings": "dist_ts/index.d.ts",
|
"typings": "dist_ts/index.d.ts",
|
||||||
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "tstest test/",
|
"test": "tstest test/",
|
||||||
"build": "(tsbuild --web)"
|
"build": "(tsbuild --web)"
|
||||||
@ -24,12 +25,12 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/tsclass/tsclass#readme",
|
"homepage": "https://github.com/tsclass/tsclass#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"type-fest": "^2.8.0"
|
"type-fest": "^2.9.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@gitzone/tsbuild": "^2.1.28",
|
"@gitzone/tsbuild": "^2.1.61",
|
||||||
"@gitzone/tsrun": "^1.2.18",
|
"@gitzone/tsrun": "^1.2.32",
|
||||||
"@gitzone/tstest": "^1.0.60",
|
"@gitzone/tstest": "^1.0.70",
|
||||||
"@pushrocks/tapbundle": "^3.2.15",
|
"@pushrocks/tapbundle": "^3.2.15",
|
||||||
"tslint": "^6.1.3",
|
"tslint": "^6.1.3",
|
||||||
"tslint-config-prettier": "^1.18.0"
|
"tslint-config-prettier": "^1.18.0"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { tap, expect } from '@pushrocks/tapbundle';
|
import { tap, expect } from '@pushrocks/tapbundle';
|
||||||
|
|
||||||
import * as tsclass from '../ts/index';
|
import * as tsclass from '../ts/index.js';
|
||||||
|
|
||||||
tap.test('should assign a correct type', async () => {
|
tap.test('should assign a correct type', async () => {
|
||||||
let contact: tsclass.business.IContact;
|
let contact: tsclass.business.IContact;
|
||||||
|
11
ts/00_commitinfo_data.ts
Normal file
11
ts/00_commitinfo_data.ts
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
/**
|
||||||
|
* autocreated commitinfo by @pushrocks/commitinfo
|
||||||
|
*/
|
||||||
|
export const name: string = '@tsclass/tsclass';
|
||||||
|
export const version: string = '4.0.48';
|
||||||
|
export const description: string = 'common classes for TypeScript'
|
||||||
|
export const commitinfo = {
|
||||||
|
name: '@tsclass/tsclass',
|
||||||
|
version: '4.0.48',
|
||||||
|
description: 'common classes for TypeScript'
|
||||||
|
}
|
@ -1 +1,2 @@
|
|||||||
export * from './claim';
|
export * from './claim.js';
|
||||||
|
export * from './processedclaim.js';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { business, general } from '..';
|
import { business, general } from '../index.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* describes a company's lifecycle state
|
* describes a company's lifecycle state
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { business } from '..';
|
import { business } from '../index.js';
|
||||||
|
|
||||||
export type TContactSalutation = 'Mr' | 'Ms' | 'Mrs';
|
export type TContactSalutation = 'Mr' | 'Ms' | 'Mrs';
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
export * from './address';
|
export * from './address.js';
|
||||||
export * from './company';
|
export * from './company.js';
|
||||||
export * from './contact';
|
export * from './contact.js';
|
||||||
export * from './letter';
|
export * from './letter.js';
|
||||||
export * from './person';
|
export * from './person.js';
|
||||||
|
@ -1,18 +1,21 @@
|
|||||||
import * as business from './';
|
import * as business from './index.js';
|
||||||
import * as finance from '../finance';
|
import * as finance from '../finance/index.js';
|
||||||
export interface ILetter {
|
export interface ILetter {
|
||||||
incidenceId: string;
|
incidenceId: string;
|
||||||
date: number;
|
date: number;
|
||||||
from: business.IAddress;
|
from: business.IContact;
|
||||||
to: business.IAddress;
|
to: business.IContact;
|
||||||
logoUrl: string;
|
logoUrl: string;
|
||||||
accentColor: string;
|
accentColor: string;
|
||||||
subject: string;
|
subject: string;
|
||||||
text: string[];
|
text: string[];
|
||||||
invoice?: finance.IInvoice;
|
invoiceData?: finance.IInvoice;
|
||||||
contractRef: string;
|
contractData?: {
|
||||||
timesheetRef: string;
|
id: string;
|
||||||
|
contractDate: number;
|
||||||
|
};
|
||||||
|
timesheetData: string;
|
||||||
pdfAttachments: Uint8Array[];
|
pdfAttachments: Uint8Array[];
|
||||||
legalContact: business.IContact;
|
legalContact: business.IContact;
|
||||||
language: string;
|
language: string;
|
||||||
}
|
}
|
||||||
|
0
ts/code/commitinfo.ts
Normal file
0
ts/code/commitinfo.ts
Normal file
1
ts/code/index.ts
Normal file
1
ts/code/index.ts
Normal file
@ -0,0 +1 @@
|
|||||||
|
export * from './commitinfo.js';
|
@ -1,2 +1,2 @@
|
|||||||
export * from './container';
|
export * from './container.js';
|
||||||
export * from './volumemount';
|
export * from './volumemount.js';
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
import { content } from '..';
|
import { content } from '../index.js';
|
||||||
|
|
||||||
export interface IArticle<T = any> {
|
export interface IArticle<T = any> {
|
||||||
/**
|
/**
|
||||||
* the main url of an article
|
* the main url of an article
|
||||||
*/
|
*/
|
||||||
url?: string;
|
url?: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* the mainimage of the article
|
* the mainimage of the article
|
||||||
*/
|
*/
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { general, content } from '..';
|
import { general, content } from '../index.js';
|
||||||
|
|
||||||
export interface IAuthor {
|
export interface IAuthor {
|
||||||
/**
|
/**
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
export * from './article';
|
export * from './article.js';
|
||||||
export * from './author';
|
export * from './author.js';
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
export * from './contractevent';
|
export * from './contractevent.js';
|
||||||
export * from './moneyevent';
|
export * from './moneyevent.js';
|
||||||
export * from './releaseevent';
|
export * from './releaseevent.js';
|
||||||
export * from './requestevent';
|
export * from './requestevent.js';
|
||||||
export * from './sessionevent';
|
export * from './sessionevent.js';
|
||||||
export * from './userevent';
|
export * from './userevent.js';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { finance } from '../';
|
import { finance } from '../index.js';
|
||||||
|
|
||||||
export interface ICheckingAccount {
|
export interface ICheckingAccount {
|
||||||
name: string;
|
name: string;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { business } from '../';
|
import { business } from '../index.js';
|
||||||
|
|
||||||
export interface IExpenseItem {
|
export interface IExpenseItem {
|
||||||
description: string;
|
description: string;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
export * from './checkingaccount';
|
export * from './checkingaccount.js';
|
||||||
export * from './currency';
|
export * from './currency.js';
|
||||||
export * from './expense';
|
export * from './expense.js';
|
||||||
export * from './invoice';
|
export * from './invoice.js';
|
||||||
export * from './transaction';
|
export * from './transaction.js';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { business } from '..';
|
import { business } from '../index.js';
|
||||||
|
|
||||||
export type TInvoiceStatus = 'draft' | 'invoice' | 'paid' | 'refunded';
|
export type TInvoiceStatus = 'draft' | 'invoice' | 'paid' | 'refunded';
|
||||||
|
|
||||||
@ -23,6 +23,8 @@ export interface IInvoice {
|
|||||||
to: number;
|
to: number;
|
||||||
};
|
};
|
||||||
deliveryDate?: number;
|
deliveryDate?: number;
|
||||||
|
dueInDays: number;
|
||||||
|
reverseCharge: boolean;
|
||||||
printResult?: {
|
printResult?: {
|
||||||
pdfBufferString: string;
|
pdfBufferString: string;
|
||||||
totalNet: number;
|
totalNet: number;
|
||||||
@ -30,6 +32,6 @@ export interface IInvoice {
|
|||||||
vatGroups: {
|
vatGroups: {
|
||||||
percentage: number;
|
percentage: number;
|
||||||
items: IInvoiceItem[];
|
items: IInvoiceItem[];
|
||||||
}
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
export * from './date';
|
export * from './date.js';
|
||||||
export * from './time';
|
export * from './time.js';
|
||||||
|
19
ts/index.ts
19
ts/index.ts
@ -1,25 +1,28 @@
|
|||||||
// Business
|
// Business
|
||||||
import * as business from './business';
|
import * as business from './business/index.js';
|
||||||
|
|
||||||
// Container
|
// Container
|
||||||
import * as container from './container';
|
import * as container from './container/index.js';
|
||||||
|
|
||||||
// Finance
|
// Finance
|
||||||
import * as finance from './finance';
|
import * as finance from './finance/index.js';
|
||||||
|
|
||||||
|
// Code
|
||||||
|
import * as code from './code/index.js';
|
||||||
|
|
||||||
// Content
|
// Content
|
||||||
import * as content from './content';
|
import * as content from './content/index.js';
|
||||||
|
|
||||||
// General
|
// General
|
||||||
import * as general from './general';
|
import * as general from './general/index.js';
|
||||||
|
|
||||||
// Network
|
// Network
|
||||||
import * as network from './network';
|
import * as network from './network/index.js';
|
||||||
|
|
||||||
// SaaS
|
// SaaS
|
||||||
import * as saas from './saas';
|
import * as saas from './saas/index.js';
|
||||||
|
|
||||||
export { business, container, finance, content, general, network, saas };
|
export { business, container, code, finance, content, general, network, saas };
|
||||||
|
|
||||||
import type * as typeFest from 'type-fest';
|
import type * as typeFest from 'type-fest';
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
export * from './cert';
|
export * from './cert.js';
|
||||||
export * from './dns';
|
export * from './dns.js';
|
||||||
export * from './dnschallenge';
|
export * from './dnschallenge.js';
|
||||||
export * from './networknode';
|
export * from './networknode.js';
|
||||||
export * from './request';
|
export * from './request.js';
|
||||||
export * from './reverseproxy';
|
export * from './reverseproxy.js';
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
export * from './subscriptionplan';
|
export * from './subscriptionplan.js';
|
||||||
export * from './product';
|
export * from './product.js';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { IProduct } from './product';
|
import { IProduct } from './product.js';
|
||||||
|
|
||||||
export interface ISubscriptionPlan {
|
export interface ISubscriptionPlan {
|
||||||
name: string;
|
name: string;
|
||||||
|
9
tsconfig.json
Normal file
9
tsconfig.json
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"experimentalDecorators": true,
|
||||||
|
"useDefineForClassFields": false,
|
||||||
|
"target": "ES2022",
|
||||||
|
"module": "ES2022",
|
||||||
|
"moduleResolution": "nodenext"
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user