Compare commits
16 Commits
Author | SHA1 | Date | |
---|---|---|---|
1db0a7adec | |||
1901c57a1d | |||
5723ddd059 | |||
5b67ad1c1c | |||
0044ab7b7e | |||
e40c6b60d1 | |||
af427347d9 | |||
952103c64e | |||
65ba20253c | |||
73e90165a4 | |||
bc16d5e8ea | |||
7bb964603c | |||
a8ee64eb54 | |||
f75d0f9378 | |||
e9293ec31e | |||
b04155e4f1 |
@ -134,8 +134,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
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@tsclass/tsclass",
|
||||
"version": "1.0.22",
|
||||
"version": "1.0.30",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
@ -1,13 +1,13 @@
|
||||
{
|
||||
"name": "@tsclass/tsclass",
|
||||
"version": "1.0.22",
|
||||
"version": "1.0.30",
|
||||
"private": false,
|
||||
"description": "common classes for TypeScript",
|
||||
"main": "dist/index.js",
|
||||
"typings": "dist/index.d.ts",
|
||||
"scripts": {
|
||||
"test": "tsrun test/test.ts",
|
||||
"build": "npmts"
|
||||
"build": "npmts --notest"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
@ -12,14 +12,20 @@ export interface IContact {
|
||||
// =======
|
||||
salutation?: TContactSalutation;
|
||||
type: TContactType;
|
||||
title: TContactTitle;
|
||||
title?: TContactTitle;
|
||||
name: string;
|
||||
surname: string;
|
||||
surname?: string;
|
||||
legalEntity?: string;
|
||||
address: IAddress;
|
||||
description: string;
|
||||
customerNumber?: string;
|
||||
|
||||
email?: string;
|
||||
phone?: string;
|
||||
|
||||
// =========
|
||||
// financial
|
||||
// =========
|
||||
vatId?: string;
|
||||
accountNumber?: string;
|
||||
bankAccountNumber?: string;
|
||||
}
|
||||
|
6
ts/finance/expense.ts
Normal file
6
ts/finance/expense.ts
Normal file
@ -0,0 +1,6 @@
|
||||
import { IInvoice } from './invoice';
|
||||
|
||||
export interface IExpense {
|
||||
invoice: IInvoice;
|
||||
account: string;
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
import { IContact } from '../index';
|
||||
import { IContact } from '..';
|
||||
|
||||
export type TInvoiceStatus = 'draft' | 'invoice' | 'paid' | 'refunded';
|
||||
|
||||
@ -10,6 +10,7 @@ export interface IInvoiceItem {
|
||||
}
|
||||
|
||||
export interface IInvoice {
|
||||
pdfFile?: any;
|
||||
billedBy: IContact;
|
||||
billedTo: IContact;
|
||||
status: TInvoiceStatus;
|
@ -2,7 +2,8 @@
|
||||
export * from './business/address';
|
||||
export * from './business/company';
|
||||
export * from './business/contact';
|
||||
export * from './business/invoice';
|
||||
export * from './finance/invoice';
|
||||
export * from './finance/expense';
|
||||
|
||||
// Cloud
|
||||
export * from './cloud/dns';
|
||||
|
Reference in New Issue
Block a user