Compare commits
12 Commits
Author | SHA1 | Date | |
---|---|---|---|
96a31cbc71 | |||
450139682f | |||
741b361f4b | |||
cabd160fb2 | |||
12a9e231ae | |||
f9c7f90d73 | |||
6095e0ea5c | |||
63b2bd59a2 | |||
c4d13e6f8a | |||
f6bda9a20c | |||
4f1947d38a | |||
c59ad68771 |
33
changelog.md
33
changelog.md
@ -1,5 +1,38 @@
|
||||
# Changelog
|
||||
|
||||
## 2024-07-26 - 4.1.2 - fix(finance)
|
||||
Updated IInvoice interface to support various currencies.
|
||||
|
||||
- Changed the 'currency' field in the IInvoice interface from fixed 'EUR' to type TCurrency.
|
||||
|
||||
## 2024-07-26 - 4.1.1 - fix(finance)
|
||||
Fix IInvoice interface to correctly include the currency field
|
||||
|
||||
- Corrected the IInvoice interface definition in `ts/finance/invoice.ts`
|
||||
- Moved `position` field to the top of the IInvoiceItem interface
|
||||
|
||||
## 2024-07-26 - 4.1.0 - feat(finance)
|
||||
Added notes field to IInvoice interface
|
||||
|
||||
- Expanded IInvoice interface to include notes field allowing additional notes for invoices.
|
||||
|
||||
## 2024-07-24 - 4.0.65 - fix(finance)
|
||||
Added 'type' property to IInvoice interface
|
||||
|
||||
- Added 'type' property to the IInvoice interface in the finance domain.
|
||||
- This property indicates whether the invoice is a 'creditnote' or 'debitnote'.
|
||||
|
||||
## 2024-07-18 - 4.0.64 - fix(business)
|
||||
Add relationship field to contact interface
|
||||
|
||||
- Added 'relationship' field to the IContact interface in ts/business/contact.ts
|
||||
|
||||
## 2024-06-28 - 4.0.63 - fix(saas)
|
||||
Refactor IProduct to separate IProductFeature interface
|
||||
|
||||
- Updated @types/node from 20.14.8 to 20.14.9
|
||||
- Refactored IProduct's features property to a standalone IProductFeature interface in saas/product.ts
|
||||
|
||||
## 2024-06-24 - 4.0.62 - fix(dependencies)
|
||||
Updated dependencies to latest versions
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@tsclass/tsclass",
|
||||
"version": "4.0.62",
|
||||
"version": "4.1.2",
|
||||
"private": false,
|
||||
"description": "Provides TypeScript definitions for various business, financial, networking, content, and other common classes.",
|
||||
"main": "dist_ts/index.js",
|
||||
@ -44,7 +44,7 @@
|
||||
"@git.zone/tsrun": "^1.2.49",
|
||||
"@git.zone/tstest": "^1.0.90",
|
||||
"@push.rocks/tapbundle": "^5.0.23",
|
||||
"@types/node": "^20.14.8"
|
||||
"@types/node": "^20.14.9"
|
||||
},
|
||||
"files": [
|
||||
"ts/**/*",
|
||||
|
64
pnpm-lock.yaml
generated
64
pnpm-lock.yaml
generated
@ -17,16 +17,16 @@ importers:
|
||||
version: 2.1.82
|
||||
'@git.zone/tsrun':
|
||||
specifier: ^1.2.49
|
||||
version: 1.2.49(@types/node@20.14.8)
|
||||
version: 1.2.49(@types/node@20.14.9)
|
||||
'@git.zone/tstest':
|
||||
specifier: ^1.0.90
|
||||
version: 1.0.90(@types/node@20.14.8)
|
||||
version: 1.0.90(@types/node@20.14.9)
|
||||
'@push.rocks/tapbundle':
|
||||
specifier: ^5.0.23
|
||||
version: 5.0.23
|
||||
'@types/node':
|
||||
specifier: ^20.14.8
|
||||
version: 20.14.8
|
||||
specifier: ^20.14.9
|
||||
version: 20.14.9
|
||||
|
||||
packages:
|
||||
|
||||
@ -727,8 +727,8 @@ packages:
|
||||
'@types/ms@0.7.34':
|
||||
resolution: {integrity: sha512-nG96G3Wp6acyAgJqGasjODb+acrI7KltPiRxzHPXnP3NgI28bpQDRv53olbqGXbfcgF5aiiHmO3xpwEpS5Ld9g==}
|
||||
|
||||
'@types/node@20.14.8':
|
||||
resolution: {integrity: sha512-DO+2/jZinXfROG7j7WKFn/3C6nFwxy2lLpgLjEXJz+0XKphZlTLJ14mo8Vfg8X5BWN6XjyESXq+LcYdT7tR3bA==}
|
||||
'@types/node@20.14.9':
|
||||
resolution: {integrity: sha512-06OCtnTXtWOZBJlRApleWndH4JsRVs1pDCc8dLSQp+7PpUpX3ePdHyeNSFTeSe7FtKyQkrlPvHwJOW3SLd8Oyg==}
|
||||
|
||||
'@types/parse5@6.0.3':
|
||||
resolution: {integrity: sha512-SuT16Q1K51EAVPz1K29DJ/sXjhSQ0zjvsypYJ6tlwVsRV9jwW5Adq2ch8Dq8kDBCkYnELS7N7VNCSB5nC56t/g==}
|
||||
@ -3192,22 +3192,22 @@ snapshots:
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
|
||||
'@git.zone/tsrun@1.2.49(@types/node@20.14.8)':
|
||||
'@git.zone/tsrun@1.2.49(@types/node@20.14.9)':
|
||||
dependencies:
|
||||
'@push.rocks/smartfile': 11.0.21
|
||||
'@push.rocks/smartshell': 3.0.5
|
||||
ts-node: 10.9.2(@types/node@20.14.8)(typescript@5.5.2)
|
||||
ts-node: 10.9.2(@types/node@20.14.9)(typescript@5.5.2)
|
||||
typescript: 5.5.2
|
||||
transitivePeerDependencies:
|
||||
- '@swc/core'
|
||||
- '@swc/wasm'
|
||||
- '@types/node'
|
||||
|
||||
'@git.zone/tstest@1.0.90(@types/node@20.14.8)':
|
||||
'@git.zone/tstest@1.0.90(@types/node@20.14.9)':
|
||||
dependencies:
|
||||
'@api.global/typedserver': 3.0.50
|
||||
'@git.zone/tsbundle': 2.0.15
|
||||
'@git.zone/tsrun': 1.2.49(@types/node@20.14.8)
|
||||
'@git.zone/tsrun': 1.2.49(@types/node@20.14.9)
|
||||
'@push.rocks/consolecolor': 2.0.2
|
||||
'@push.rocks/smartbrowser': 2.0.6
|
||||
'@push.rocks/smartdelay': 3.0.5
|
||||
@ -3921,14 +3921,14 @@ snapshots:
|
||||
|
||||
'@types/accepts@1.3.7':
|
||||
dependencies:
|
||||
'@types/node': 20.14.8
|
||||
'@types/node': 20.14.9
|
||||
|
||||
'@types/babel__code-frame@7.0.6': {}
|
||||
|
||||
'@types/body-parser@1.19.5':
|
||||
dependencies:
|
||||
'@types/connect': 3.4.38
|
||||
'@types/node': 20.14.8
|
||||
'@types/node': 20.14.9
|
||||
|
||||
'@types/buffer-json@2.0.3': {}
|
||||
|
||||
@ -3940,17 +3940,17 @@ snapshots:
|
||||
|
||||
'@types/clean-css@4.2.11':
|
||||
dependencies:
|
||||
'@types/node': 20.14.8
|
||||
'@types/node': 20.14.9
|
||||
source-map: 0.6.1
|
||||
|
||||
'@types/co-body@6.1.3':
|
||||
dependencies:
|
||||
'@types/node': 20.14.8
|
||||
'@types/node': 20.14.9
|
||||
'@types/qs': 6.9.15
|
||||
|
||||
'@types/connect@3.4.38':
|
||||
dependencies:
|
||||
'@types/node': 20.14.8
|
||||
'@types/node': 20.14.9
|
||||
|
||||
'@types/content-disposition@0.5.8': {}
|
||||
|
||||
@ -3963,11 +3963,11 @@ snapshots:
|
||||
'@types/connect': 3.4.38
|
||||
'@types/express': 4.17.21
|
||||
'@types/keygrip': 1.0.6
|
||||
'@types/node': 20.14.8
|
||||
'@types/node': 20.14.9
|
||||
|
||||
'@types/cors@2.8.17':
|
||||
dependencies:
|
||||
'@types/node': 20.14.8
|
||||
'@types/node': 20.14.9
|
||||
|
||||
'@types/debounce@1.2.4': {}
|
||||
|
||||
@ -3979,7 +3979,7 @@ snapshots:
|
||||
|
||||
'@types/express-serve-static-core@4.19.5':
|
||||
dependencies:
|
||||
'@types/node': 20.14.8
|
||||
'@types/node': 20.14.9
|
||||
'@types/qs': 6.9.15
|
||||
'@types/range-parser': 1.2.7
|
||||
'@types/send': 0.17.4
|
||||
@ -3994,12 +3994,12 @@ snapshots:
|
||||
'@types/fs-extra@11.0.4':
|
||||
dependencies:
|
||||
'@types/jsonfile': 6.1.4
|
||||
'@types/node': 20.14.8
|
||||
'@types/node': 20.14.9
|
||||
|
||||
'@types/glob@8.1.0':
|
||||
dependencies:
|
||||
'@types/minimatch': 5.1.2
|
||||
'@types/node': 20.14.8
|
||||
'@types/node': 20.14.9
|
||||
|
||||
'@types/hast@3.0.4':
|
||||
dependencies:
|
||||
@ -4033,7 +4033,7 @@ snapshots:
|
||||
|
||||
'@types/jsonfile@6.1.4':
|
||||
dependencies:
|
||||
'@types/node': 20.14.8
|
||||
'@types/node': 20.14.9
|
||||
|
||||
'@types/keygrip@1.0.6': {}
|
||||
|
||||
@ -4050,7 +4050,7 @@ snapshots:
|
||||
'@types/http-errors': 2.0.4
|
||||
'@types/keygrip': 1.0.6
|
||||
'@types/koa-compose': 3.2.8
|
||||
'@types/node': 20.14.8
|
||||
'@types/node': 20.14.9
|
||||
|
||||
'@types/mdast@4.0.4':
|
||||
dependencies:
|
||||
@ -4066,7 +4066,7 @@ snapshots:
|
||||
|
||||
'@types/ms@0.7.34': {}
|
||||
|
||||
'@types/node@20.14.8':
|
||||
'@types/node@20.14.9':
|
||||
dependencies:
|
||||
undici-types: 5.26.5
|
||||
|
||||
@ -4085,12 +4085,12 @@ snapshots:
|
||||
'@types/send@0.17.4':
|
||||
dependencies:
|
||||
'@types/mime': 1.3.5
|
||||
'@types/node': 20.14.8
|
||||
'@types/node': 20.14.9
|
||||
|
||||
'@types/serve-static@1.15.7':
|
||||
dependencies:
|
||||
'@types/http-errors': 2.0.4
|
||||
'@types/node': 20.14.8
|
||||
'@types/node': 20.14.9
|
||||
'@types/send': 0.17.4
|
||||
|
||||
'@types/sinon-chai@3.2.12':
|
||||
@ -4108,7 +4108,7 @@ snapshots:
|
||||
|
||||
'@types/through2@2.0.41':
|
||||
dependencies:
|
||||
'@types/node': 20.14.8
|
||||
'@types/node': 20.14.9
|
||||
|
||||
'@types/trusted-types@2.0.7': {}
|
||||
|
||||
@ -4128,15 +4128,15 @@ snapshots:
|
||||
|
||||
'@types/ws@7.4.7':
|
||||
dependencies:
|
||||
'@types/node': 20.14.8
|
||||
'@types/node': 20.14.9
|
||||
|
||||
'@types/ws@8.5.10':
|
||||
dependencies:
|
||||
'@types/node': 20.14.8
|
||||
'@types/node': 20.14.9
|
||||
|
||||
'@types/yauzl@2.10.3':
|
||||
dependencies:
|
||||
'@types/node': 20.14.8
|
||||
'@types/node': 20.14.9
|
||||
optional: true
|
||||
|
||||
'@ungap/structured-clone@1.2.0': {}
|
||||
@ -4644,7 +4644,7 @@ snapshots:
|
||||
dependencies:
|
||||
'@types/cookie': 0.4.1
|
||||
'@types/cors': 2.8.17
|
||||
'@types/node': 20.14.8
|
||||
'@types/node': 20.14.9
|
||||
accepts: 1.3.8
|
||||
base64id: 2.0.0
|
||||
cookie: 0.4.2
|
||||
@ -6388,14 +6388,14 @@ snapshots:
|
||||
|
||||
trough@2.2.0: {}
|
||||
|
||||
ts-node@10.9.2(@types/node@20.14.8)(typescript@5.5.2):
|
||||
ts-node@10.9.2(@types/node@20.14.9)(typescript@5.5.2):
|
||||
dependencies:
|
||||
'@cspotcode/source-map-support': 0.8.1
|
||||
'@tsconfig/node10': 1.0.11
|
||||
'@tsconfig/node12': 1.0.11
|
||||
'@tsconfig/node14': 1.0.3
|
||||
'@tsconfig/node16': 1.0.4
|
||||
'@types/node': 20.14.8
|
||||
'@types/node': 20.14.9
|
||||
acorn: 8.12.0
|
||||
acorn-walk: 8.3.3
|
||||
arg: 4.1.3
|
||||
|
@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@tsclass/tsclass',
|
||||
version: '4.0.62',
|
||||
version: '4.1.2',
|
||||
description: 'Provides TypeScript definitions for various business, financial, networking, content, and other common classes.'
|
||||
}
|
||||
|
@ -14,6 +14,7 @@ export interface IContact {
|
||||
salutation?: TContactSalutation;
|
||||
type: TContactType;
|
||||
title?: TContactTitle;
|
||||
relationship?: 'customer' | 'supplier' | 'partner' | 'employee' | 'other';
|
||||
name: string;
|
||||
surname?: string;
|
||||
legalEntity?: string;
|
||||
|
@ -1,21 +1,23 @@
|
||||
import { business, finance } from '../index.js';
|
||||
import type { TCurrency } from './currency.js';
|
||||
|
||||
export type TInvoiceStatus = 'draft' | 'invoice' | 'paid' | 'refunded';
|
||||
|
||||
export interface IInvoiceItem {
|
||||
position: number;
|
||||
name: string;
|
||||
articleNumber?: string;
|
||||
unitType: string;
|
||||
unitQuantity: number;
|
||||
unitNetPrice: number;
|
||||
vatPercentage: number;
|
||||
currency: 'EUR';
|
||||
}
|
||||
|
||||
export interface IInvoice {
|
||||
id: string;
|
||||
billedBy: business.IContact;
|
||||
billedTo: business.IContact;
|
||||
type: 'creditnote' | 'debitnote';
|
||||
status: TInvoiceStatus;
|
||||
items: IInvoiceItem[];
|
||||
periodOfPerformance?: {
|
||||
@ -34,5 +36,7 @@ export interface IInvoice {
|
||||
items: IInvoiceItem[];
|
||||
};
|
||||
};
|
||||
notes: string[];
|
||||
paymentOptions?: finance.IPaymentOptionInfo;
|
||||
currency: TCurrency;
|
||||
}
|
||||
|
@ -7,8 +7,16 @@ export interface IProduct {
|
||||
os: 'web-based',
|
||||
category: 'Business Application',
|
||||
offers: any[];
|
||||
features: IProductFeature[];
|
||||
landingPage: string;
|
||||
appLink: string;
|
||||
logoLink: string;
|
||||
publisher?: ICompany;
|
||||
}
|
||||
|
||||
export interface IProductFeature {
|
||||
heading: string;
|
||||
description: string;
|
||||
linkText: string;
|
||||
linkUrl: string;
|
||||
}
|
Reference in New Issue
Block a user