Compare commits
14 Commits
Author | SHA1 | Date | |
---|---|---|---|
cc15835c8e | |||
300ac01629 | |||
a9a2f94f7e | |||
5e8473d16b | |||
6366b4f990 | |||
a3e147f946 | |||
1c6fc3666d | |||
891b0f0f10 | |||
96a31cbc71 | |||
450139682f | |||
741b361f4b | |||
cabd160fb2 | |||
12a9e231ae | |||
f9c7f90d73 |
41
changelog.md
41
changelog.md
@ -1,5 +1,46 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 2025-03-07 - 4.4.1 - fix(business)
|
||||||
|
Fix missing letterData property in ILetter interface.
|
||||||
|
|
||||||
|
- Added missing letterData property to the content structure of the ILetter interface.
|
||||||
|
- Ensured consistency and completeness of ILetter interface for proper data handling of letter components.
|
||||||
|
|
||||||
|
## 2025-01-11 - 4.4.0 - feat(website)
|
||||||
|
Add ILinkBlock interface for managing groups of links
|
||||||
|
|
||||||
|
- Introduced a new interface ILinkBlock in ts/website/linkblock.ts for managing grouped links.
|
||||||
|
- Exported ILinkBlock from ts/website/index.ts to make it available for external usage.
|
||||||
|
|
||||||
|
## 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.4.1",
|
||||||
"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.4.1',
|
||||||
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.'
|
||||||
}
|
}
|
||||||
|
@ -20,6 +20,7 @@ export interface ILetter {
|
|||||||
accentColor?: string;
|
accentColor?: string;
|
||||||
needsCoverSheet: boolean;
|
needsCoverSheet: boolean;
|
||||||
content: {
|
content: {
|
||||||
|
letterData: ILetter;
|
||||||
textData: string[];
|
textData: string[];
|
||||||
invoiceData?: finance.IInvoice;
|
invoiceData?: finance.IInvoice;
|
||||||
contractData?: {
|
contractData?: {
|
||||||
|
@ -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,3 @@
|
|||||||
|
export * from './link.js';
|
||||||
export * from './menuitem.js';
|
export * from './menuitem.js';
|
||||||
|
export * from './linkblock.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';
|
||||||
|
}
|
6
ts/website/linkblock.ts
Normal file
6
ts/website/linkblock.ts
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
import type { ILink } from './link.js';
|
||||||
|
|
||||||
|
export interface ILinkBlock {
|
||||||
|
title: string;
|
||||||
|
links: ILink[];
|
||||||
|
}
|
Reference in New Issue
Block a user