Compare commits
10 Commits
Author | SHA1 | Date | |
---|---|---|---|
6366b4f990 | |||
a3e147f946 | |||
1c6fc3666d | |||
891b0f0f10 | |||
96a31cbc71 | |||
450139682f | |||
741b361f4b | |||
cabd160fb2 | |||
12a9e231ae | |||
f9c7f90d73 |
29
changelog.md
29
changelog.md
@ -1,5 +1,34 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 2025-01-10 - 4.3.0 - feat(website)
|
||||||
|
Added new ILink interface to the website module.
|
||||||
|
|
||||||
|
- Introduced ILink interface with properties like url, text, description, icon, and target.
|
||||||
|
- Updated ts/website/index.ts to export the new link interface.
|
||||||
|
|
||||||
|
## 2024-12-11 - 4.2.0 - feat(dependencies)
|
||||||
|
Update dependencies and enhance code documentation
|
||||||
|
|
||||||
|
- Updated 'type-fest' dependency from ^4.20.1 to ^4.30.0 for improved type definitions.
|
||||||
|
- Updated development dependencies for better development experience.
|
||||||
|
- Enhanced code documentation for the ICommitInfo interface with detailed JSDoc comments.
|
||||||
|
|
||||||
|
## 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)
|
## 2024-07-24 - 4.0.65 - fix(finance)
|
||||||
Added 'type' property to IInvoice interface
|
Added 'type' property to IInvoice interface
|
||||||
|
|
||||||
|
12
package.json
12
package.json
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@tsclass/tsclass",
|
"name": "@tsclass/tsclass",
|
||||||
"version": "4.0.65",
|
"version": "4.3.0",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "Provides TypeScript definitions for various business, financial, networking, content, and other common classes.",
|
"description": "Provides TypeScript definitions for various business, financial, networking, content, and other common classes.",
|
||||||
"main": "dist_ts/index.js",
|
"main": "dist_ts/index.js",
|
||||||
@ -37,14 +37,14 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/tsclass/tsclass#readme",
|
"homepage": "https://github.com/tsclass/tsclass#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"type-fest": "^4.20.1"
|
"type-fest": "^4.30.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@git.zone/tsbuild": "^2.1.82",
|
"@git.zone/tsbuild": "^2.2.0",
|
||||||
"@git.zone/tsrun": "^1.2.49",
|
"@git.zone/tsrun": "^1.3.3",
|
||||||
"@git.zone/tstest": "^1.0.90",
|
"@git.zone/tstest": "^1.0.90",
|
||||||
"@push.rocks/tapbundle": "^5.0.23",
|
"@push.rocks/tapbundle": "^5.5.3",
|
||||||
"@types/node": "^20.14.9"
|
"@types/node": "^22.10.2"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"ts/**/*",
|
"ts/**/*",
|
||||||
|
3965
pnpm-lock.yaml
generated
3965
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@tsclass/tsclass',
|
name: '@tsclass/tsclass',
|
||||||
version: '4.0.65',
|
version: '4.3.0',
|
||||||
description: 'Provides TypeScript definitions for various business, financial, networking, content, and other common classes.'
|
description: 'Provides TypeScript definitions for various business, financial, networking, content, and other common classes.'
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,20 @@
|
|||||||
export interface ICommitInfo {
|
export interface ICommitInfo {
|
||||||
|
/**
|
||||||
|
* the name of the project
|
||||||
|
*/
|
||||||
name: string;
|
name: string;
|
||||||
|
/**
|
||||||
|
* the current version of the project
|
||||||
|
*/
|
||||||
version: string;
|
version: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* the description of the project
|
||||||
|
*/
|
||||||
description: string;
|
description: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* the changelog of the project
|
||||||
|
*/
|
||||||
|
changelog?: string[];
|
||||||
}
|
}
|
||||||
|
@ -1,15 +1,16 @@
|
|||||||
import { business, finance } from '../index.js';
|
import { business, finance } from '../index.js';
|
||||||
|
import type { TCurrency } from './currency.js';
|
||||||
|
|
||||||
export type TInvoiceStatus = 'draft' | 'invoice' | 'paid' | 'refunded';
|
export type TInvoiceStatus = 'draft' | 'invoice' | 'paid' | 'refunded';
|
||||||
|
|
||||||
export interface IInvoiceItem {
|
export interface IInvoiceItem {
|
||||||
|
position: number;
|
||||||
name: string;
|
name: string;
|
||||||
articleNumber?: string;
|
articleNumber?: string;
|
||||||
unitType: string;
|
unitType: string;
|
||||||
unitQuantity: number;
|
unitQuantity: number;
|
||||||
unitNetPrice: number;
|
unitNetPrice: number;
|
||||||
vatPercentage: number;
|
vatPercentage: number;
|
||||||
currency: 'EUR';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface IInvoice {
|
export interface IInvoice {
|
||||||
@ -35,5 +36,7 @@ export interface IInvoice {
|
|||||||
items: IInvoiceItem[];
|
items: IInvoiceItem[];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
notes: string[];
|
||||||
paymentOptions?: finance.IPaymentOptionInfo;
|
paymentOptions?: finance.IPaymentOptionInfo;
|
||||||
|
currency: TCurrency;
|
||||||
}
|
}
|
||||||
|
@ -1 +1,2 @@
|
|||||||
|
export * from './link.js';
|
||||||
export * from './menuitem.js';
|
export * from './menuitem.js';
|
||||||
|
7
ts/website/link.ts
Normal file
7
ts/website/link.ts
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
export interface ILink {
|
||||||
|
url: string;
|
||||||
|
text?: string;
|
||||||
|
description?: string;
|
||||||
|
icon?: string;
|
||||||
|
target?: '_blank' | '_self' | '_parent' | '_top';
|
||||||
|
}
|
Reference in New Issue
Block a user