Compare commits

...

6 Commits

Author SHA1 Message Date
0f26791ee2 1.0.13 2017-11-09 01:46:49 +01:00
34e65462e2 start invoice interface 2017-11-09 01:46:45 +01:00
f55ac65e20 1.0.12 2017-06-11 20:57:32 +02:00
474ce92b88 update structure 2017-06-11 20:57:30 +02:00
de95e03699 1.0.11 2017-06-11 20:54:17 +02:00
1e4adeede6 structure + dns record type 2017-06-11 20:54:06 +02:00
13 changed files with 52 additions and 7 deletions

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/cloud/dns.d.ts vendored
View File

@ -0,0 +1 @@
export declare type TDnsRecord = 'A' | 'AAAA' | 'CNAME' | 'TXT' | 'SRV' | 'LOC' | 'MX' | 'NS' | 'SPF';

2
dist/cloud/dns.js vendored
View File

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

6
dist/index.d.ts vendored
View File

@ -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';

0
docs/index.md Normal file
View File

View File

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

View File

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

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

@ -0,0 +1,4 @@
export interface IContact {
name: 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

@ -0,0 +1 @@
export type TDnsRecord = 'A' | 'AAAA' | 'CNAME' | 'TXT' | 'SRV' | 'LOC' | 'MX' | 'NS' | 'SPF'

View File

@ -1,6 +1,15 @@
// Business
export * from './business/company'
export * from './business/contact'
export * from './business/invoice'
// Cloud
export * from './cloud/dns'
// Content
export * from './content/article'
export * from './content/author'
export * from './business/company'
// General
export * from './general/date'
export * from './business/invoice'
export * from './general/time'