Compare commits

...

22 Commits

Author SHA1 Message Date
594c2cfe40 1.0.39 2018-07-22 23:14:11 +02:00
ac94cb1630 fix( ITransaction): import structure 2018-07-22 23:14:11 +02:00
ddea031bbe 1.0.38 2018-07-22 23:01:56 +02:00
6132076aed fix(core): update 2018-07-22 23:01:56 +02:00
a5bd50850e 1.0.37 2018-07-22 23:01:40 +02:00
8df838935c fix(core): update 2018-07-22 23:01:40 +02:00
504dbdea1f 1.0.36 2018-07-22 19:50:47 +02:00
c8d2095942 fix(ICheckingAccount): update 2018-07-22 19:50:47 +02:00
96f525ef0b 1.0.35 2018-07-22 19:28:11 +02:00
7eb2ce7fe3 fix(core): import structure 2018-07-22 19:28:11 +02:00
d67dc9ab44 1.0.34 2018-07-22 18:20:23 +02:00
c193fd4c59 fix(ci): add better docs 2018-07-22 18:20:22 +02:00
65d87fdefb 1.0.33 2018-07-22 18:19:47 +02:00
4a54935521 fix(core): add ICheckingAccount, IPayment, TCurrency 2018-07-22 18:19:47 +02:00
e10a45a4d0 1.0.32 2018-07-12 01:04:25 +02:00
074f6bfd1e fix(IExpense): update 2018-07-12 01:04:25 +02:00
6a1fafeab7 1.0.31 2018-07-11 21:42:05 +02:00
b019cf48b5 fix(fix IExpense): update 2018-07-11 21:42:04 +02:00
1db0a7adec 1.0.30 2018-07-11 21:27:13 +02:00
1901c57a1d fix(core): update structure 2018-07-11 21:27:13 +02:00
5723ddd059 1.0.29 2018-07-10 23:59:07 +02:00
5b67ad1c1c fix(finance): add IExpense 2018-07-10 23:59:07 +02:00
13 changed files with 47 additions and 14 deletions

View File

@ -117,8 +117,9 @@ pages:
image: hosttoday/ht-docker-node:npmci
stage: metadata
script:
- npmci command npm install -g npmpage
- npmci command npmpage
- npmci command npm install -g typedoc typescript
- npmci npm install
- npmci command typedoc --module "commonjs" --target "ES2016" --out public/ ts/
tags:
- docker
- notpriv
@ -134,8 +135,7 @@ windowsCompatibility:
image: stefanscherer/node-windows:10-build-tools
stage: metadata
script:
- npmci npm install
- npmci npm test
- npm install & npm test
coverage: /\d+.?\d+?\%\s*coverage/
tags:
- windows

2
package-lock.json generated
View File

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

View File

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

View File

@ -1,5 +1,5 @@
import { IContact } from '../index';
import { IDate } from '../index';
import { IContact } from '..';
import { IDate } from '..';
/**
* describes a company's lifecycle state

View File

@ -1,4 +1,4 @@
import { IAddress } from '../index';
import { IAddress } from '..';
export type TContactSalutation = 'Mr' | 'Ms' | 'Mrs';

View File

@ -1,4 +1,4 @@
import { IAuthor } from '../index';
import { IAuthor } from '..';
export interface IArticle {
/**

View File

@ -1,5 +1,5 @@
import { IDate } from '../index';
import { IArticle } from '../index';
import { IDate } from '..';
import { IArticle } from '..';
export interface IAuthor {
/**

View File

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

1
ts/finance/currency.ts Normal file
View File

@ -0,0 +1 @@
export type TCurrency = 'eur' | 'usd' | 'sek';

14
ts/finance/expense.ts Normal file
View File

@ -0,0 +1,14 @@
import { IInvoice } from './invoice';
import { IContact } from '../business/contact';
export interface IExpenseItem {
amount: number;
taxPercentage: number;
}
export interface IExpense {
voucherFile?: any;
expenseItems: IExpenseItem[];
contactRef: string;
accountRef: string;
}

View File

@ -1,4 +1,4 @@
import { IContact } from '../index';
import { IContact } from '..';
export type TInvoiceStatus = 'draft' | 'invoice' | 'paid' | 'refunded';

View File

@ -0,0 +1,4 @@
export interface ITransaction {
amount: number;
date: Date;
}

View File

@ -2,7 +2,13 @@
export * from './business/address';
export * from './business/company';
export * from './business/contact';
export * from './business/invoice';
// Finance
export * from './finance/checkingaccount';
export * from './finance/currency';
export * from './finance/expense';
export * from './finance/invoice';
export * from './finance/transaction';
// Cloud
export * from './cloud/dns';