Compare commits
20 Commits
Author | SHA1 | Date | |
---|---|---|---|
5724d96f23 | |||
70fc60d865 | |||
e21d6dabe1 | |||
335717a025 | |||
69afa1dfcb | |||
b2e11c9841 | |||
69cb421ad1 | |||
c7f210a526 | |||
7c3976d169 | |||
6f92823f56 | |||
dac8ca4be5 | |||
a227973238 | |||
2307e01c81 | |||
852626457f | |||
ce8708266f | |||
4027eedf64 | |||
14314ee394 | |||
44b849bf86 | |||
b985bf1d30 | |||
7f29739ca0 |
4
.gitignore
vendored
4
.gitignore
vendored
@ -15,8 +15,6 @@ node_modules/
|
|||||||
|
|
||||||
# builds
|
# builds
|
||||||
dist/
|
dist/
|
||||||
dist_web/
|
dist_*/
|
||||||
dist_serve/
|
|
||||||
dist_ts_web/
|
|
||||||
|
|
||||||
# custom
|
# custom
|
@ -24,13 +24,14 @@ mirror:
|
|||||||
- docker
|
- docker
|
||||||
- notpriv
|
- notpriv
|
||||||
|
|
||||||
snyk:
|
audit:
|
||||||
image: registry.gitlab.com/hosttoday/ht-docker-node:snyk
|
image: registry.gitlab.com/hosttoday/ht-docker-node:npmci
|
||||||
stage: security
|
stage: security
|
||||||
script:
|
script:
|
||||||
- npmci npm prepare
|
- npmci npm prepare
|
||||||
- npmci command npm install --ignore-scripts
|
- npmci command npm install --ignore-scripts
|
||||||
- npmci command snyk test
|
- npmci command npm config set registry https://registry.npmjs.org
|
||||||
|
- npmci command npm audit --audit-level=high
|
||||||
tags:
|
tags:
|
||||||
- lossless
|
- lossless
|
||||||
- docker
|
- docker
|
||||||
|
4445
package-lock.json
generated
4445
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
21
package.json
21
package.json
@ -1,13 +1,13 @@
|
|||||||
{
|
{
|
||||||
"name": "@tsclass/tsclass",
|
"name": "@tsclass/tsclass",
|
||||||
"version": "3.0.10",
|
"version": "3.0.20",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "common classes for TypeScript",
|
"description": "common classes for TypeScript",
|
||||||
"main": "dist/index.js",
|
"main": "dist_ts/index.js",
|
||||||
"typings": "dist/index.d.ts",
|
"typings": "dist_ts/index.d.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "tstest test/",
|
"test": "tstest test/",
|
||||||
"build": "tsbuild"
|
"build": "tsbuild --web"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
@ -24,20 +24,21 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/tsclass/tsclass#readme",
|
"homepage": "https://github.com/tsclass/tsclass#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@pushrocks/tapbundle": "^3.0.13"
|
"@pushrocks/tapbundle": "^3.2.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@gitzone/tsbuild": "^2.1.17",
|
"@gitzone/tsbuild": "^2.1.24",
|
||||||
"@gitzone/tsrun": "^1.2.8",
|
"@gitzone/tsrun": "^1.2.12",
|
||||||
"@gitzone/tstest": "^1.0.27",
|
"@gitzone/tstest": "^1.0.33",
|
||||||
"tslint": "^5.20.0",
|
"tslint": "^6.1.2",
|
||||||
"tslint-config-prettier": "^1.18.0"
|
"tslint-config-prettier": "^1.18.0"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"ts/**/*",
|
"ts/**/*",
|
||||||
"ts_web/**/*",
|
"ts_web/**/*",
|
||||||
"dist/**/*",
|
"dist/**/*",
|
||||||
"dist_web/**/*",
|
"dist_*/**/*",
|
||||||
|
"dist_ts/**/*",
|
||||||
"dist_ts_web/**/*",
|
"dist_ts_web/**/*",
|
||||||
"assets/**/*",
|
"assets/**/*",
|
||||||
"cli.js",
|
"cli.js",
|
||||||
|
21
readme.md
21
readme.md
@ -8,13 +8,20 @@ common classes for TypeScript
|
|||||||
* [docs (typedoc)](https://tsclass.gitlab.io/tsclass/)
|
* [docs (typedoc)](https://tsclass.gitlab.io/tsclass/)
|
||||||
|
|
||||||
## Status for master
|
## Status for master
|
||||||
[](https://gitlab.com/tsclass/tsclass/commits/master)
|
|
||||||
[](https://gitlab.com/tsclass/tsclass/commits/master)
|
Status Category | Status Badge
|
||||||
[](https://www.npmjs.com/package/@tsclass/tsclass)
|
-- | --
|
||||||
[](https://snyk.io/test/npm/@tsclass/tsclass)
|
GitLab Pipelines | [](https://lossless.cloud)
|
||||||
[](https://nodejs.org/dist/latest-v10.x/docs/api/)
|
GitLab Pipline Test Coverage | [](https://lossless.cloud)
|
||||||
[](https://nodejs.org/dist/latest-v10.x/docs/api/)
|
npm | [](https://lossless.cloud)
|
||||||
[](https://prettier.io/)
|
Snyk | [](https://lossless.cloud)
|
||||||
|
TypeScript Support | [](https://lossless.cloud)
|
||||||
|
node Support | [](https://nodejs.org/dist/latest-v10.x/docs/api/)
|
||||||
|
Code Style | [](https://lossless.cloud)
|
||||||
|
PackagePhobia (total standalone install weight) | [](https://lossless.cloud)
|
||||||
|
PackagePhobia (package size on registry) | [](https://lossless.cloud)
|
||||||
|
BundlePhobia (total size when bundled) | [](https://lossless.cloud)
|
||||||
|
Platform support | [](https://lossless.cloud) [](https://lossless.cloud)
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
|
6
ts/authentication/claim.ts
Normal file
6
ts/authentication/claim.ts
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
export interface IClaim {
|
||||||
|
userName: string;
|
||||||
|
userId: string;
|
||||||
|
validUntil: number;
|
||||||
|
roles: string[];
|
||||||
|
}
|
1
ts/authentication/index.ts
Normal file
1
ts/authentication/index.ts
Normal file
@ -0,0 +1 @@
|
|||||||
|
export * from './claim';
|
7
ts/authentication/processedclaim.ts
Normal file
7
ts/authentication/processedclaim.ts
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
import { IClaim } from './claim';
|
||||||
|
|
||||||
|
export interface IProcessedClaim {
|
||||||
|
originalJWT: string;
|
||||||
|
claim: IClaim;
|
||||||
|
signed: boolean;
|
||||||
|
}
|
@ -19,8 +19,13 @@ export interface IContact {
|
|||||||
address: business.IAddress;
|
address: business.IAddress;
|
||||||
description: string;
|
description: string;
|
||||||
customerNumber?: string;
|
customerNumber?: string;
|
||||||
|
|
||||||
email?: string;
|
email?: string;
|
||||||
|
|
||||||
|
logoUrl?: string;
|
||||||
|
website?: string;
|
||||||
|
facebookUrl?: string;
|
||||||
|
twitterUrl?: string;
|
||||||
|
|
||||||
phone?: string;
|
phone?: string;
|
||||||
fax?: string;
|
fax?: string;
|
||||||
|
|
||||||
|
@ -1 +1,2 @@
|
|||||||
export * from './container';
|
export * from './container';
|
||||||
|
export * from './volumemount';
|
||||||
|
4
ts/container/volumemount.ts
Normal file
4
ts/container/volumemount.ts
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
export interface IVolumeMount {
|
||||||
|
hostFsPath: string;
|
||||||
|
containerFsPath: string;
|
||||||
|
}
|
@ -16,4 +16,7 @@ import * as general from './general';
|
|||||||
// Network
|
// Network
|
||||||
import * as network from './network';
|
import * as network from './network';
|
||||||
|
|
||||||
export { business, container, finance, content, general, network };
|
// SaaS
|
||||||
|
import * as saas from './saas';
|
||||||
|
|
||||||
|
export { business, container, finance, content, general, network, saas };
|
||||||
|
@ -2,4 +2,5 @@ export * from './cert';
|
|||||||
export * from './dns';
|
export * from './dns';
|
||||||
export * from './dnschallenge';
|
export * from './dnschallenge';
|
||||||
export * from './networknode';
|
export * from './networknode';
|
||||||
|
export * from './request';
|
||||||
export * from './reverseproxy';
|
export * from './reverseproxy';
|
||||||
|
26
ts/network/request.ts
Normal file
26
ts/network/request.ts
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
export interface ISimpleRequest {
|
||||||
|
headers: {};
|
||||||
|
parsedUrl: {
|
||||||
|
hash: string;
|
||||||
|
host: string;
|
||||||
|
hostname: string;
|
||||||
|
href: string;
|
||||||
|
readonly origin: string;
|
||||||
|
password: string;
|
||||||
|
pathname: string;
|
||||||
|
port: string;
|
||||||
|
protocol: string;
|
||||||
|
search: string;
|
||||||
|
readonly searchParams: any;
|
||||||
|
username: string;
|
||||||
|
toString: () => string;
|
||||||
|
toJSON: () => string;
|
||||||
|
};
|
||||||
|
body?: string | object | Buffer;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface ISimpleResponse {
|
||||||
|
headers: { [key: string]: string };
|
||||||
|
body: string;
|
||||||
|
}
|
||||||
|
export type IRenderFunction = (req: ISimpleRequest) => Promise<ISimpleResponse>;
|
2
ts/saas/index.ts
Normal file
2
ts/saas/index.ts
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
export * from './subscriptionplan';
|
||||||
|
export * from './product';
|
1
ts/saas/product.ts
Normal file
1
ts/saas/product.ts
Normal file
@ -0,0 +1 @@
|
|||||||
|
export interface IProduct {}
|
14
ts/saas/subscriptionplan.ts
Normal file
14
ts/saas/subscriptionplan.ts
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
import { IProduct } from './product';
|
||||||
|
|
||||||
|
export interface ISubscriptionPlan {
|
||||||
|
name: string;
|
||||||
|
unit: 'device' | 'user';
|
||||||
|
quantity: boolean;
|
||||||
|
availableTerms: {
|
||||||
|
period: 'daily' | 'weekly' | 'monthly' | 'yearly';
|
||||||
|
price: number;
|
||||||
|
currency: 'EUR' | 'USD';
|
||||||
|
}[];
|
||||||
|
containedProducts: IProduct[];
|
||||||
|
limits: any;
|
||||||
|
}
|
Reference in New Issue
Block a user