Compare commits
8 Commits
Author | SHA1 | Date | |
---|---|---|---|
498934237d | |||
ac73badd76 | |||
90698230ae | |||
04f37d5665 | |||
0f26791ee2 | |||
34e65462e2 | |||
f55ac65e20 | |||
474ce92b88 |
@ -7,53 +7,68 @@ cache:
|
||||
key: "$CI_BUILD_STAGE"
|
||||
|
||||
stages:
|
||||
- mirror
|
||||
- test
|
||||
- release
|
||||
- trigger
|
||||
- pages
|
||||
|
||||
mirror:
|
||||
stage: mirror
|
||||
script:
|
||||
- npmci git mirror
|
||||
tags:
|
||||
- docker
|
||||
|
||||
testLEGACY:
|
||||
stage: test
|
||||
script:
|
||||
- npmci test legacy
|
||||
- npmci node install legacy
|
||||
- npmci npm install
|
||||
- npmci npm test
|
||||
coverage: /\d+.?\d+?\%\s*coverage/
|
||||
tags:
|
||||
- docker
|
||||
- docker
|
||||
allow_failure: true
|
||||
|
||||
testLTS:
|
||||
stage: test
|
||||
script:
|
||||
- npmci test lts
|
||||
- npmci node install lts
|
||||
- npmci npm install
|
||||
- npmci npm test
|
||||
coverage: /\d+.?\d+?\%\s*coverage/
|
||||
tags:
|
||||
- docker
|
||||
- docker
|
||||
|
||||
testSTABLE:
|
||||
stage: test
|
||||
script:
|
||||
- npmci test stable
|
||||
- npmci node install stable
|
||||
- npmci npm install
|
||||
- npmci npm test
|
||||
coverage: /\d+.?\d+?\%\s*coverage/
|
||||
tags:
|
||||
- docker
|
||||
- docker
|
||||
|
||||
release:
|
||||
stage: release
|
||||
script:
|
||||
- npmci publish
|
||||
- npmci npm prepare
|
||||
- npmci npm publish
|
||||
only:
|
||||
- tags
|
||||
- tags
|
||||
tags:
|
||||
- docker
|
||||
- docker
|
||||
|
||||
trigger:
|
||||
stage: trigger
|
||||
script:
|
||||
- npmci trigger
|
||||
- npmci trigger
|
||||
only:
|
||||
- tags
|
||||
- tags
|
||||
tags:
|
||||
- docker
|
||||
- docker
|
||||
|
||||
pages:
|
||||
image: hosttoday/ht-docker-node:npmci
|
||||
|
3
dist/business/contact.d.ts
vendored
Normal file
3
dist/business/contact.d.ts
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
export interface IContact {
|
||||
name: string;
|
||||
}
|
3
dist/business/contact.js
vendored
Normal file
3
dist/business/contact.js
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udGFjdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3RzL2J1c2luZXNzL2NvbnRhY3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiJ9
|
10
dist/business/invoice.d.ts
vendored
10
dist/business/invoice.d.ts
vendored
@ -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/cloud/dns.d.ts
vendored
1
dist/cloud/dns.d.ts
vendored
@ -0,0 +1 @@
|
||||
export declare type TDnsRecord = 'A' | 'AAAA' | 'CNAME' | 'TXT' | 'SRV' | 'LOC' | 'MX' | 'NS' | 'SPF';
|
||||
|
2
dist/cloud/dns.js
vendored
2
dist/cloud/dns.js
vendored
@ -1 +1,3 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZG5zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vdHMvY2xvdWQvZG5zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIifQ==
|
6
dist/index.d.ts
vendored
6
dist/index.d.ts
vendored
@ -1,6 +1,8 @@
|
||||
export * from './business/company';
|
||||
export * from './business/contact';
|
||||
export * from './business/invoice';
|
||||
export * from './cloud/dns';
|
||||
export * from './content/article';
|
||||
export * from './content/author';
|
||||
export * from './business/company';
|
||||
export * from './general/date';
|
||||
export * from './business/invoice';
|
||||
export * from './general/time';
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"npmci": {
|
||||
"globalNpmTools": [
|
||||
"npmGlobalTools": [
|
||||
"npmts"
|
||||
]
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "tsclass",
|
||||
"version": "1.0.11",
|
||||
"version": "1.0.15",
|
||||
"description": "common classes for TypeScript",
|
||||
"main": "dist/index.js",
|
||||
"typings": "dist/index.d.ts",
|
||||
|
@ -1,3 +1,4 @@
|
||||
import { IContact } from '../index'
|
||||
import { IDate } from '../index'
|
||||
|
||||
/**
|
||||
|
17
ts/business/contact.ts
Normal file
17
ts/business/contact.ts
Normal 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
|
||||
}
|
@ -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
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
export type TRecord = 'A' | 'AAAA' | 'CNAME' | 'TXT' | 'SRV' | 'LOC' | 'MX' | 'NS' | 'SPF'
|
||||
export type TDnsRecord = 'A' | 'AAAA' | 'CNAME' | 'TXT' | 'SRV' | 'LOC' | 'MX' | 'NS' | 'SPF'
|
||||
|
@ -1,5 +1,6 @@
|
||||
// Business
|
||||
export * from './business/company'
|
||||
export * from './business/contact'
|
||||
export * from './business/invoice'
|
||||
|
||||
// Cloud
|
||||
|
Reference in New Issue
Block a user