Compare commits

...

6 Commits

Author SHA1 Message Date
ba42658ee9 3.0.3 2020-01-19 10:20:40 +00:00
68687c2bca fix(core): update 2020-01-19 10:20:39 +00:00
2b76f54408 3.0.2 2020-01-19 10:20:19 +00:00
64561ab878 fix(core): update 2020-01-19 10:20:19 +00:00
8bb8574da7 3.0.1 2020-01-19 10:19:39 +00:00
6a5ecfcb19 fix(core): update 2020-01-19 10:19:38 +00:00
15 changed files with 80 additions and 68 deletions

View File

@ -4,13 +4,13 @@ image: registry.gitlab.com/hosttoday/ht-docker-node:npmci
cache: cache:
paths: paths:
- .npmci_cache/ - .npmci_cache/
key: "$CI_BUILD_STAGE" key: '$CI_BUILD_STAGE'
stages: stages:
- security - security
- test - test
- release - release
- metadata - metadata
# ==================== # ====================
# security stage # security stage
@ -20,17 +20,19 @@ mirror:
script: script:
- npmci git mirror - npmci git mirror
tags: tags:
- lossless
- docker - docker
- notpriv - notpriv
snyk: snyk:
image: registry.gitlab.com/hosttoday/ht-docker-node:snyk
stage: security stage: security
script: script:
- npmci npm prepare - npmci npm prepare
- npmci command npm install -g snyk
- npmci command npm install --ignore-scripts - npmci command npm install --ignore-scripts
- npmci command snyk test - npmci command snyk test
tags: tags:
- lossless
- docker - docker
- notpriv - notpriv
@ -47,6 +49,7 @@ testStable:
- npmci npm test - npmci npm test
coverage: /\d+.?\d+?\%\s*coverage/ coverage: /\d+.?\d+?\%\s*coverage/
tags: tags:
- lossless
- docker - docker
- priv - priv
@ -59,6 +62,7 @@ testBuild:
- npmci command npm run build - npmci command npm run build
coverage: /\d+.?\d+?\%\s*coverage/ coverage: /\d+.?\d+?\%\s*coverage/
tags: tags:
- lossless
- docker - docker
- notpriv - notpriv
@ -70,6 +74,7 @@ release:
only: only:
- tags - tags
tags: tags:
- lossless
- docker - docker
- notpriv - notpriv
@ -85,6 +90,7 @@ codequality:
- npmci npm install - npmci npm install
- npmci command "tslint -c tslint.json ./ts/**/*.ts" - npmci command "tslint -c tslint.json ./ts/**/*.ts"
tags: tags:
- lossless
- docker - docker
- priv - priv
@ -95,6 +101,7 @@ trigger:
only: only:
- tags - tags
tags: tags:
- lossless
- docker - docker
- notpriv - notpriv
@ -107,6 +114,7 @@ pages:
- npmci npm install - npmci npm install
- npmci command tsdoc - npmci command tsdoc
tags: tags:
- lossless
- docker - docker
- notpriv - notpriv
only: only:

View File

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{ {
"name": "@tsclass/tsclass", "name": "@tsclass/tsclass",
"version": "3.0.0", "version": "3.0.3",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View File

@ -1,6 +1,6 @@
{ {
"name": "@tsclass/tsclass", "name": "@tsclass/tsclass",
"version": "3.0.0", "version": "3.0.3",
"private": false, "private": false,
"description": "common classes for TypeScript", "description": "common classes for TypeScript",
"main": "dist/index.js", "main": "dist/index.js",

View File

@ -49,6 +49,11 @@ class myOwnInvoice implements IInvoice {
> The modules in bold letters exist as own modules and can be used seperately > The modules in bold letters exist as own modules and can be used seperately
## Contribution
We are always happy for code contributions. If you are not the code contributing type that is ok. Still, maintaining Open Source repositories takes considerable time and thought. If you like the quality of what we do and our modules are useful to you we would appreciate a little monthly contribution: You can [contribute one time](https://lossless.link/contribute-onetime) or [contribute monthly](https://lossless.link/contribute). :)
For further information read the linked docs at the top of this readme. For further information read the linked docs at the top of this readme.
> MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh) > MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh)

View File

@ -3,7 +3,7 @@ import { tap, expect } from '@pushrocks/tapbundle';
import * as tsclass from '../ts/index'; import * as tsclass from '../ts/index';
tap.test('should assign a correct type', async () => { tap.test('should assign a correct type', async () => {
let contact: tsclass.IContact; let contact: tsclass.business.IContact;
}); });
tap.start(); tap.start();

View File

@ -1,5 +1,4 @@
import { IContact } from '..'; import { business, general } from '..';
import { IDate } from '..';
/** /**
* describes a company's lifecycle state * describes a company's lifecycle state
@ -11,8 +10,8 @@ export type TCompanyStatus = 'planed' | 'founding' | 'active' | 'liquidation' |
*/ */
export interface ICompany { export interface ICompany {
name: string; name: string;
foundedDate: IDate; foundedDate: general.IDate;
closedDate: IDate; closedDate: general.IDate;
status: TCompanyStatus; status: business.TCompanyStatus;
contact: IContact; contact: business.IContact;
} }

View File

@ -1,4 +1,4 @@
import { IAddress } from '..'; import { business } from '..';
export type TContactSalutation = 'Mr' | 'Ms' | 'Mrs'; export type TContactSalutation = 'Mr' | 'Ms' | 'Mrs';
@ -16,7 +16,7 @@ export interface IContact {
name: string; name: string;
surname?: string; surname?: string;
legalEntity?: string; legalEntity?: string;
address: IAddress; address: business.IAddress;
description: string; description: string;
customerNumber?: string; customerNumber?: string;

View File

@ -1,4 +1,4 @@
import { IAuthor } from '..'; import { content } from '..';
export interface IArticle { export interface IArticle {
/** /**
@ -9,7 +9,7 @@ export interface IArticle {
/** /**
* the Author of an article * the Author of an article
*/ */
author: IAuthor; author: content.IAuthor;
/** /**
* the content of an article * the content of an article

View File

@ -1,5 +1,4 @@
import { IDate } from '..'; import { general, content } from '..';
import { IArticle } from '..';
export interface IAuthor { export interface IAuthor {
/** /**
@ -15,10 +14,10 @@ export interface IAuthor {
/** /**
* the birthday of an author * the birthday of an author
*/ */
birthday: IDate; birthday: general.IDate;
/** /**
* articles of an author * articles of an author
*/ */
articles: IArticle[]; articles: content.IArticle[];
} }

View File

@ -1,8 +1,7 @@
import { TCurrency } from './currency'; import { finance } from '../';
import { ITransaction } from './transaction';
export interface ICheckingAccount { export interface ICheckingAccount {
name: string; name: string;
currency: TCurrency; currency: finance.TCurrency;
transactions: ITransaction[]; transactions: finance.ITransaction[];
} }

View File

@ -1,5 +1,4 @@
import { IInvoice } from './invoice'; import { business } from '../';
import { IContact } from '../business/contact';
export interface IExpenseItem { export interface IExpenseItem {
description: string; description: string;
@ -14,5 +13,5 @@ export interface IVoucher {
date: Date; date: Date;
description: string; description: string;
expenseItems: IExpenseItem[]; expenseItems: IExpenseItem[];
contactRef: IContact; contactRef: business.IContact;
} }

View File

@ -1,4 +1,4 @@
import { IContact } from '..'; import { business } from '..';
export type TInvoiceStatus = 'draft' | 'invoice' | 'paid' | 'refunded'; export type TInvoiceStatus = 'draft' | 'invoice' | 'paid' | 'refunded';
@ -10,8 +10,8 @@ export interface IInvoiceItem {
} }
export interface IInvoice { export interface IInvoice {
billedBy: IContact; billedBy: business.IContact;
billedTo: IContact; billedTo: business.IContact;
status: TInvoiceStatus; status: TInvoiceStatus;
items: IInvoiceItem[]; items: IInvoiceItem[];
} }

View File

@ -1,21 +1,16 @@
// Business // Business
import * as business from './business'; import * as business from './business';
export * from './business';
// Finance // Finance
import * as finance from './finance'; import * as finance from './finance';
export * from './finance';
// Content // Content
import * as content from './content'; import * as content from './content';
export * from './content';
// General // General
import * as general from './general'; import * as general from './general';
export * from './general';
// Network // Network
import * as network from './network'; import * as network from './network';
export * from './network';
export { business, finance, content, general, network }; export { business, finance, content, general, network };

View File

@ -0,0 +1,8 @@
export interface ICert {
id: string;
domainName: string;
created: number;
privateKey: string;
publicKey: string;
csr: string;
}