Compare commits

...

6 Commits

Author SHA1 Message Date
498934237d 1.0.15 2017-11-09 02:17:00 +01:00
ac73badd76 update ci 2017-11-09 02:16:56 +01:00
90698230ae 1.0.14 2017-11-09 02:06:12 +01:00
04f37d5665 update ci 2017-11-09 02:06:08 +01:00
0f26791ee2 1.0.13 2017-11-09 01:46:49 +01:00
34e65462e2 start invoice interface 2017-11-09 01:46:45 +01:00
12 changed files with 77 additions and 17 deletions

View File

@ -7,15 +7,25 @@ cache:
key: "$CI_BUILD_STAGE" key: "$CI_BUILD_STAGE"
stages: stages:
- mirror
- test - test
- release - release
- trigger - trigger
- pages - pages
mirror:
stage: mirror
script:
- npmci git mirror
tags:
- docker
testLEGACY: testLEGACY:
stage: test stage: test
script: script:
- npmci test legacy - npmci node install legacy
- npmci npm install
- npmci npm test
coverage: /\d+.?\d+?\%\s*coverage/ coverage: /\d+.?\d+?\%\s*coverage/
tags: tags:
- docker - docker
@ -24,7 +34,9 @@ testLEGACY:
testLTS: testLTS:
stage: test stage: test
script: script:
- npmci test lts - npmci node install lts
- npmci npm install
- npmci npm test
coverage: /\d+.?\d+?\%\s*coverage/ coverage: /\d+.?\d+?\%\s*coverage/
tags: tags:
- docker - docker
@ -32,7 +44,9 @@ testLTS:
testSTABLE: testSTABLE:
stage: test stage: test
script: script:
- npmci test stable - npmci node install stable
- npmci npm install
- npmci npm test
coverage: /\d+.?\d+?\%\s*coverage/ coverage: /\d+.?\d+?\%\s*coverage/
tags: tags:
- docker - docker
@ -40,7 +54,8 @@ testSTABLE:
release: release:
stage: release stage: release
script: script:
- npmci publish - npmci npm prepare
- npmci npm publish
only: only:
- tags - tags
tags: tags:

3
dist/business/contact.d.ts vendored Normal file
View File

@ -0,0 +1,3 @@
export interface IContact {
name: string;
}

3
dist/business/contact.js vendored Normal file
View File

@ -0,0 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udGFjdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3RzL2J1c2luZXNzL2NvbnRhY3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiJ9

View File

@ -1,2 +1,10 @@
export interface IInvoice { export declare type TInvoiceStatus = 'draft' | 'invoice' | 'paid' | 'refunded';
export interface IInvoiceItem {
name: string;
unitType: string;
quantity: number;
vatPercentage: number;
}
export interface IInvoice {
status: TInvoiceStatus;
} }

1
dist/index.d.ts vendored
View File

@ -1,4 +1,5 @@
export * from './business/company'; export * from './business/company';
export * from './business/contact';
export * from './business/invoice'; export * from './business/invoice';
export * from './cloud/dns'; export * from './cloud/dns';
export * from './content/article'; export * from './content/article';

View File

@ -1,6 +1,6 @@
{ {
"npmci": { "npmci": {
"globalNpmTools": [ "npmGlobalTools": [
"npmts" "npmts"
] ]
} }

View File

@ -1,6 +1,6 @@
{ {
"name": "tsclass", "name": "tsclass",
"version": "1.0.12", "version": "1.0.15",
"description": "common classes for TypeScript", "description": "common classes for TypeScript",
"main": "dist/index.js", "main": "dist/index.js",
"typings": "dist/index.d.ts", "typings": "dist/index.d.ts",

View File

@ -1,3 +1,4 @@
import { IContact } from '../index'
import { IDate } from '../index' import { IDate } from '../index'
/** /**

17
ts/business/contact.ts Normal file
View File

@ -0,0 +1,17 @@
export type TContactSalutation = 'Mr' | 'Ms' | 'Mrs'
export type TContactType = 'person' | 'company'
export type TContactTitle = 'Doctor' | 'Professor'
export interface IContact {
salutation?: TContactSalutation
type: TContactType
title: TContactTitle
name: string
streetName: string
houseNumber: string
postalCode: string
city: string
country: string
}

View File

@ -1,3 +1,14 @@
export interface IInvoice { import { IContact } from '../index'
export type TInvoiceStatus = 'draft' | 'invoice' | 'paid' | 'refunded'
export interface IInvoiceItem {
name: string
unitType: string
quantity: number
vatPercentage: number
}
export interface IInvoice {
status: TInvoiceStatus
} }

View File

@ -1,5 +1,6 @@
// Business // Business
export * from './business/company' export * from './business/company'
export * from './business/contact'
export * from './business/invoice' export * from './business/invoice'
// Cloud // Cloud