Compare commits

...

8 Commits

7 changed files with 99 additions and 35 deletions

View File

@ -1,6 +1,34 @@
# Changelog
## 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
- Updated 'dependencies > type-fest' to version ^4.20.1
- Updated 'devDependencies > @git.zone/tsbuild' to version ^2.1.82
- Updated 'devDependencies > @git.zone/tsrun' to version ^1.2.49
- Updated 'devDependencies > @git.zone/tstest' to version ^1.0.90
- Updated 'devDependencies > @push.rocks/tapbundle' to version ^5.0.23
- Updated 'devDependencies > @types/node' to version ^20.14.8
## 2024-06-24 - 4.0.61 - fix(dependencies)
Update dependencies to latest versions
- Updated 'dependencies > type-fest' to version ^4.20.1
@ -11,131 +39,157 @@ Update dependencies to latest versions
- Updated 'devDependencies > @types/node' to version ^20.14.8
## 2024-06-19 - 4.0.59 - core
Fixes and updates to core functionalities.
- Multiple updates and fixes applied to the core codebase
## 2024-06-17 - 4.0.59 to 4.0.56 - core
Routine updates and fixes to the core.
- Multiple core updates and fixes
## 2024-06-08 - 4.0.54 - core
Core fixes applied.
- Various fixes in the core functionality
## 2024-04-17 - 4.0.53 - core
Core functionality updated with fixes.
- Updates and fixes to core features
## 2024-04-16 - 4.0.52 - documentation
Documentation update.
- Documentation improved and updated
## 2024-02-17 - 4.0.51 - core
Fixes for core applied.
- Multiple core fixes implemented
## 2024-02-10 - 4.0.48 - core
Routine core updates and fixes.
- Several updates and fixes for core functionality
## 2023-10-15 - 4.0.46 - core
Core updates.
- Core functionalities updated and fixes applied
## 2023-10-13 - 4.0.44 - core
Routine fixes for core functionalities.
- Various updates to core functionalities
## 2023-09-13 - 4.0.43 - core
Core updates and fixes.
- Several core updates and fixes
## 2023-05-08 - 4.0.41 - core
Core updates.
- Core functionalities updated
## 2023-05-06 - 4.0.39 - core
Core updates and fixes.
- Multiple core updates and fixes
## 2023-04-19 - 4.0.37 - core
Routine core updates.
- Core fixes and updates applied
## 2023-04-05 - 4.0.35 - core
Core functionalities updated.
- Core functionalities updated and fixes applied
## 2023-03-14 - 4.0.33 - core
Routine core fixes and updates.
- Core functionalities updated
## 2023-03-09 - 4.0.32 - core
Routine maintenance for core.
- Core updates and fixes
## 2023-02-15 - 4.0.31 - core
Core updates applied.
- Fixes and updates to core functionalities
## 2023-02-06 - 4.0.30 - core
Routine fixes.
- Multiple core updates and fixes
## 2023-01-12 - 4.0.29 - core
Core updates applied.
- Fixes and updates to core functionalities
## 2022-11-20 - 4.0.27 - core
Routine core fixes.
- Core functionalities updated and fixed
## 2022-10-31 - 4.0.26 - core
Routine maintenance and fixes.
- Core functionalities updated
## 2022-10-24 - 4.0.24 - business.IContract
Added business logic for contracts.
- Added IContract logic to business module
## 2022-09-14 - 4.0.21 - core
Routine core updates and fixes.
- Core functionalities updated and fixed
## 2022-08-17 - 4.0.18 - core
Routine maintenance for core.
- Core functionalities updated and fixes applied
## 2022-06-16 - 4.0.17 - core
Routine fixes.
- Core functionalities updated
## 2022-04-28 - 4.0.0 - core
Major update with significant core changes.
- Switch to ESM format

View File

@ -1,6 +1,6 @@
{
"name": "@tsclass/tsclass",
"version": "4.0.61",
"version": "4.0.65",
"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
View File

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

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@tsclass/tsclass',
version: '4.0.61',
version: '4.0.65',
description: 'Provides TypeScript definitions for various business, financial, networking, content, and other common classes.'
}

View File

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

View File

@ -16,6 +16,7 @@ export interface IInvoice {
id: string;
billedBy: business.IContact;
billedTo: business.IContact;
type: 'creditnote' | 'debitnote';
status: TInvoiceStatus;
items: IInvoiceItem[];
periodOfPerformance?: {

View File

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