Compare commits
16 Commits
Author | SHA1 | Date | |
---|---|---|---|
339c41c259 | |||
bf6b323df5 | |||
41e4dad65c | |||
572454e54f | |||
82b0325d7c | |||
12cddd99e0 | |||
1f798fc578 | |||
29f27d1a0c | |||
edb7690eb8 | |||
1a54bf5979 | |||
5dd087c16a | |||
4a79416d02 | |||
5bb38bc983 | |||
d2149daca9 | |||
5520ff6390 | |||
1c44e6a8f8 |
66
.gitea/workflows/default_nottags.yaml
Normal file
66
.gitea/workflows/default_nottags.yaml
Normal file
@ -0,0 +1,66 @@
|
||||
name: Default (not tags)
|
||||
|
||||
on:
|
||||
push:
|
||||
tags-ignore:
|
||||
- '**'
|
||||
|
||||
env:
|
||||
IMAGE: code.foss.global/host.today/ht-docker-node:npmci
|
||||
NPMCI_COMPUTED_REPOURL: https://${{gitea.repository_owner}}:${{secrets.GITEA_TOKEN}}@/${{gitea.repository}}.git
|
||||
NPMCI_TOKEN_NPM: ${{secrets.NPMCI_TOKEN_NPM}}
|
||||
NPMCI_TOKEN_NPM2: ${{secrets.NPMCI_TOKEN_NPM2}}
|
||||
NPMCI_GIT_GITHUBTOKEN: ${{secrets.NPMCI_GIT_GITHUBTOKEN}}
|
||||
NPMCI_URL_CLOUDLY: ${{secrets.NPMCI_URL_CLOUDLY}}
|
||||
|
||||
jobs:
|
||||
security:
|
||||
runs-on: ubuntu-latest
|
||||
continue-on-error: true
|
||||
container:
|
||||
image: ${{ env.IMAGE }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Install pnpm and npmci
|
||||
run: |
|
||||
pnpm install -g pnpm
|
||||
pnpm install -g @ship.zone/npmci
|
||||
|
||||
- name: Run npm prepare
|
||||
run: npmci npm prepare
|
||||
|
||||
- name: Audit production dependencies
|
||||
run: |
|
||||
npmci command npm config set registry https://registry.npmjs.org
|
||||
npmci command pnpm audit --audit-level=high --prod
|
||||
continue-on-error: true
|
||||
|
||||
- name: Audit development dependencies
|
||||
run: |
|
||||
npmci command npm config set registry https://registry.npmjs.org
|
||||
npmci command pnpm audit --audit-level=high --dev
|
||||
continue-on-error: true
|
||||
|
||||
test:
|
||||
if: ${{ always() }}
|
||||
needs: security
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: ${{ env.IMAGE }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Test stable
|
||||
run: |
|
||||
npmci node install stable
|
||||
npmci npm install
|
||||
npmci npm test
|
||||
|
||||
- name: Test build
|
||||
run: |
|
||||
npmci node install stable
|
||||
npmci npm install
|
||||
npmci npm build
|
124
.gitea/workflows/default_tags.yaml
Normal file
124
.gitea/workflows/default_tags.yaml
Normal file
@ -0,0 +1,124 @@
|
||||
name: Default (tags)
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- '*'
|
||||
|
||||
env:
|
||||
IMAGE: code.foss.global/host.today/ht-docker-node:npmci
|
||||
NPMCI_COMPUTED_REPOURL: https://${{gitea.repository_owner}}:${{secrets.GITEA_TOKEN}}@/${{gitea.repository}}.git
|
||||
NPMCI_TOKEN_NPM: ${{secrets.NPMCI_TOKEN_NPM}}
|
||||
NPMCI_TOKEN_NPM2: ${{secrets.NPMCI_TOKEN_NPM2}}
|
||||
NPMCI_GIT_GITHUBTOKEN: ${{secrets.NPMCI_GIT_GITHUBTOKEN}}
|
||||
NPMCI_URL_CLOUDLY: ${{secrets.NPMCI_URL_CLOUDLY}}
|
||||
|
||||
jobs:
|
||||
security:
|
||||
runs-on: ubuntu-latest
|
||||
continue-on-error: true
|
||||
container:
|
||||
image: ${{ env.IMAGE }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Prepare
|
||||
run: |
|
||||
pnpm install -g pnpm
|
||||
pnpm install -g @ship.zone/npmci
|
||||
npmci npm prepare
|
||||
|
||||
- name: Audit production dependencies
|
||||
run: |
|
||||
npmci command npm config set registry https://registry.npmjs.org
|
||||
npmci command pnpm audit --audit-level=high --prod
|
||||
continue-on-error: true
|
||||
|
||||
- name: Audit development dependencies
|
||||
run: |
|
||||
npmci command npm config set registry https://registry.npmjs.org
|
||||
npmci command pnpm audit --audit-level=high --dev
|
||||
continue-on-error: true
|
||||
|
||||
test:
|
||||
if: ${{ always() }}
|
||||
needs: security
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: ${{ env.IMAGE }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Prepare
|
||||
run: |
|
||||
pnpm install -g pnpm
|
||||
pnpm install -g @ship.zone/npmci
|
||||
npmci npm prepare
|
||||
|
||||
- name: Test stable
|
||||
run: |
|
||||
npmci node install stable
|
||||
npmci npm install
|
||||
npmci npm test
|
||||
|
||||
- name: Test build
|
||||
run: |
|
||||
npmci node install stable
|
||||
npmci npm install
|
||||
npmci npm build
|
||||
|
||||
release:
|
||||
needs: test
|
||||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: ${{ env.IMAGE }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Prepare
|
||||
run: |
|
||||
pnpm install -g pnpm
|
||||
pnpm install -g @ship.zone/npmci
|
||||
npmci npm prepare
|
||||
|
||||
- name: Release
|
||||
run: |
|
||||
npmci node install stable
|
||||
npmci npm publish
|
||||
|
||||
metadata:
|
||||
needs: test
|
||||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: ${{ env.IMAGE }}
|
||||
continue-on-error: true
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Prepare
|
||||
run: |
|
||||
pnpm install -g pnpm
|
||||
pnpm install -g @ship.zone/npmci
|
||||
npmci npm prepare
|
||||
|
||||
- name: Code quality
|
||||
run: |
|
||||
npmci command npm install -g typescript
|
||||
npmci npm install
|
||||
|
||||
- name: Trigger
|
||||
run: npmci trigger
|
||||
|
||||
- name: Build docs and upload artifacts
|
||||
run: |
|
||||
npmci node install stable
|
||||
npmci npm install
|
||||
pnpm install -g @git.zone/tsdoc
|
||||
npmci command tsdoc
|
||||
continue-on-error: true
|
3
.gitignore
vendored
3
.gitignore
vendored
@ -3,7 +3,6 @@
|
||||
# artifacts
|
||||
coverage/
|
||||
public/
|
||||
pages/
|
||||
|
||||
# installs
|
||||
node_modules/
|
||||
@ -17,4 +16,4 @@ node_modules/
|
||||
dist/
|
||||
dist_*/
|
||||
|
||||
# custom
|
||||
#------# custom
|
38
changelog.md
38
changelog.md
@ -1,5 +1,43 @@
|
||||
# Changelog
|
||||
|
||||
## 2025-04-04 - 8.2.0 - feat(finance/payment)
|
||||
Add optional 'description' field to payment option info.
|
||||
|
||||
- Enhanced the IPaymentOptionInfo interface in ts/finance/payment.ts by adding an optional 'description' property for improved context.
|
||||
|
||||
## 2025-03-26 - 8.1.1 - fix(business/letter)
|
||||
Remove extraneous inline comment from TLetter type union in business/letter.ts
|
||||
|
||||
- Clean up redundant comment to improve code clarity
|
||||
- Maintain consistency in type definitions
|
||||
|
||||
## 2025-03-26 - 8.1.0 - feat(business/letter)
|
||||
Extend TLetter to include invoice support and update dependency versions
|
||||
|
||||
- Bump type-fest to ^4.38.0 and @types/node to ^22.13.13 in package.json
|
||||
- Modify TLetter type in ts/business/letter.ts to support finance.TInvoice alongside simple letters
|
||||
|
||||
## 2025-03-25 - 8.0.4 - fix(license/business-letter)
|
||||
Remove legacy commented-out code from letter module and update copyright header
|
||||
|
||||
- Removed unused commented block in ts/business/letter.ts
|
||||
- Updated copyright header in license file
|
||||
|
||||
## 2025-03-24 - 8.0.3 - fix(ci)
|
||||
Add Gitea workflow files for CI/CD, update repository URLs, and standardize formatting
|
||||
|
||||
- Added .gitea/workflows/default_nottags.yaml and default_tags.yaml to manage CI for tagged and non-tagged pushes
|
||||
- Updated package.json repository, homepage, and bugs URLs to reflect the new code.foss.global location
|
||||
- Modified .gitignore custom section comment for clarity
|
||||
- Standardized code formatting and string quoting across various source files
|
||||
- Enhanced tsconfig.json by adding baseUrl and paths settings
|
||||
|
||||
## 2025-03-24 - 8.0.2 - fix(commitinfo)
|
||||
Refresh autogenerated commit info and internal metadata for version consistency
|
||||
|
||||
- No functional changes were made
|
||||
- Updated internal commit metadata to reflect the current project state
|
||||
|
||||
## 2025-03-24 - 8.0.1 - fix(documentation)
|
||||
Improve documentation clarity and update package metadata
|
||||
|
||||
|
2
license
2
license
@ -1,6 +1,6 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2016
|
||||
Copyright (c) 2016 Task Venture Capital GmbH
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
17
package.json
17
package.json
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@tsclass/tsclass",
|
||||
"version": "8.0.1",
|
||||
"version": "8.2.0",
|
||||
"private": false,
|
||||
"description": "Provides TypeScript definitions for various business, financial, networking, content, and other common classes.",
|
||||
"main": "dist_ts/index.js",
|
||||
@ -13,7 +13,7 @@
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/tsclass/tsclass.git"
|
||||
"url": "https://code.foss.global/tsclass/tsclass.git"
|
||||
},
|
||||
"keywords": [
|
||||
"TypeScript",
|
||||
@ -33,18 +33,18 @@
|
||||
"author": "Task Venture Capital GmbH",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/tsclass/tsclass/issues"
|
||||
"url": "https://code.foss.global/tsclass/tsclass/issues"
|
||||
},
|
||||
"homepage": "https://github.com/tsclass/tsclass#readme",
|
||||
"homepage": "https://code.foss.global/tsclass/tsclass#readme",
|
||||
"dependencies": {
|
||||
"type-fest": "^4.37.0"
|
||||
"type-fest": "^4.38.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@git.zone/tsbuild": "^2.3.2",
|
||||
"@git.zone/tsrun": "^1.3.3",
|
||||
"@git.zone/tstest": "^1.0.96",
|
||||
"@push.rocks/tapbundle": "^5.6.0",
|
||||
"@types/node": "^22.13.11"
|
||||
"@types/node": "^22.13.13"
|
||||
},
|
||||
"files": [
|
||||
"ts/**/*",
|
||||
@ -60,5 +60,8 @@
|
||||
],
|
||||
"browserslist": [
|
||||
"last 1 chrome versions"
|
||||
]
|
||||
],
|
||||
"pnpm": {
|
||||
"overrides": {}
|
||||
}
|
||||
}
|
||||
|
84
pnpm-lock.yaml
generated
84
pnpm-lock.yaml
generated
@ -9,8 +9,8 @@ importers:
|
||||
.:
|
||||
dependencies:
|
||||
type-fest:
|
||||
specifier: ^4.37.0
|
||||
version: 4.37.0
|
||||
specifier: ^4.38.0
|
||||
version: 4.38.0
|
||||
devDependencies:
|
||||
'@git.zone/tsbuild':
|
||||
specifier: ^2.3.2
|
||||
@ -25,8 +25,8 @@ importers:
|
||||
specifier: ^5.6.0
|
||||
version: 5.6.0(@aws-sdk/credential-providers@3.772.0)(socks@2.8.4)
|
||||
'@types/node':
|
||||
specifier: ^22.13.11
|
||||
version: 22.13.11
|
||||
specifier: ^22.13.13
|
||||
version: 22.13.13
|
||||
|
||||
packages:
|
||||
|
||||
@ -1430,8 +1430,8 @@ packages:
|
||||
'@types/node-forge@1.3.11':
|
||||
resolution: {integrity: sha512-FQx220y22OKNTqaByeBGqHWYz4cl94tpcxeFdvBo3wjG6XPBuZ0BNgNZRV5J5TFmmcsJ4IzsLkmGRiQbnYsBEQ==}
|
||||
|
||||
'@types/node@22.13.11':
|
||||
resolution: {integrity: sha512-iEUCUJoU0i3VnrCmgoWCXttklWcvoCIx4jzcP22fioIVSdTmjgoEvmAO/QPw6TcS9k5FrNgn4w7q5lGOd1CT5g==}
|
||||
'@types/node@22.13.13':
|
||||
resolution: {integrity: sha512-ClsL5nMwKaBRwPcCvH8E7+nU4GxHVx1axNvMZTFHMEfNI7oahimt26P5zjVCRrjiIWj6YFXfE1v3dEp94wLcGQ==}
|
||||
|
||||
'@types/parse5@6.0.3':
|
||||
resolution: {integrity: sha512-SuT16Q1K51EAVPz1K29DJ/sXjhSQ0zjvsypYJ6tlwVsRV9jwW5Adq2ch8Dq8kDBCkYnELS7N7VNCSB5nC56t/g==}
|
||||
@ -4119,8 +4119,8 @@ packages:
|
||||
resolution: {integrity: sha512-RAH822pAdBgcNMAfWnCBU3CFZcfZ/i1eZjwFU/dsLKumyuuP3niueg2UAukXYF0E2AAoc82ZSSf9J0WQBinzHA==}
|
||||
engines: {node: '>=12.20'}
|
||||
|
||||
type-fest@4.37.0:
|
||||
resolution: {integrity: sha512-S/5/0kFftkq27FPNye0XM1e2NsnoD/3FS+pBmbjmmtLT6I+i344KoOf7pvXreaFsDamWeaJX55nczA1m5PsBDg==}
|
||||
type-fest@4.38.0:
|
||||
resolution: {integrity: sha512-2dBz5D5ycHIoliLYLi0Q2V7KRaDlH0uWIvmk7TYlAg5slqwiPv1ezJdZm1QEM0xgk29oYWMCbIG7E6gHpvChlg==}
|
||||
engines: {node: '>=16'}
|
||||
|
||||
type-is@1.6.18:
|
||||
@ -5315,7 +5315,7 @@ snapshots:
|
||||
'@jest/schemas': 29.6.3
|
||||
'@types/istanbul-lib-coverage': 2.0.6
|
||||
'@types/istanbul-reports': 3.0.4
|
||||
'@types/node': 22.13.11
|
||||
'@types/node': 22.13.13
|
||||
'@types/yargs': 17.0.33
|
||||
chalk: 4.1.2
|
||||
|
||||
@ -6673,22 +6673,22 @@ snapshots:
|
||||
|
||||
'@tsclass/tsclass@4.4.0':
|
||||
dependencies:
|
||||
type-fest: 4.37.0
|
||||
type-fest: 4.38.0
|
||||
|
||||
'@tsclass/tsclass@4.4.4':
|
||||
dependencies:
|
||||
type-fest: 4.37.0
|
||||
type-fest: 4.38.0
|
||||
|
||||
'@types/accepts@1.3.7':
|
||||
dependencies:
|
||||
'@types/node': 22.13.11
|
||||
'@types/node': 22.13.13
|
||||
|
||||
'@types/babel__code-frame@7.0.6': {}
|
||||
|
||||
'@types/body-parser@1.19.5':
|
||||
dependencies:
|
||||
'@types/connect': 3.4.38
|
||||
'@types/node': 22.13.11
|
||||
'@types/node': 22.13.13
|
||||
|
||||
'@types/buffer-json@2.0.3': {}
|
||||
|
||||
@ -6704,17 +6704,17 @@ snapshots:
|
||||
|
||||
'@types/clean-css@4.2.11':
|
||||
dependencies:
|
||||
'@types/node': 22.13.11
|
||||
'@types/node': 22.13.13
|
||||
source-map: 0.6.1
|
||||
|
||||
'@types/co-body@6.1.3':
|
||||
dependencies:
|
||||
'@types/node': 22.13.11
|
||||
'@types/node': 22.13.13
|
||||
'@types/qs': 6.9.18
|
||||
|
||||
'@types/connect@3.4.38':
|
||||
dependencies:
|
||||
'@types/node': 22.13.11
|
||||
'@types/node': 22.13.13
|
||||
|
||||
'@types/content-disposition@0.5.8': {}
|
||||
|
||||
@ -6727,11 +6727,11 @@ snapshots:
|
||||
'@types/connect': 3.4.38
|
||||
'@types/express': 5.0.1
|
||||
'@types/keygrip': 1.0.6
|
||||
'@types/node': 22.13.11
|
||||
'@types/node': 22.13.13
|
||||
|
||||
'@types/cors@2.8.17':
|
||||
dependencies:
|
||||
'@types/node': 22.13.11
|
||||
'@types/node': 22.13.13
|
||||
|
||||
'@types/debounce@1.2.4': {}
|
||||
|
||||
@ -6745,14 +6745,14 @@ snapshots:
|
||||
|
||||
'@types/express-serve-static-core@4.19.6':
|
||||
dependencies:
|
||||
'@types/node': 22.13.11
|
||||
'@types/node': 22.13.13
|
||||
'@types/qs': 6.9.18
|
||||
'@types/range-parser': 1.2.7
|
||||
'@types/send': 0.17.4
|
||||
|
||||
'@types/express-serve-static-core@5.0.6':
|
||||
dependencies:
|
||||
'@types/node': 22.13.11
|
||||
'@types/node': 22.13.13
|
||||
'@types/qs': 6.9.18
|
||||
'@types/range-parser': 1.2.7
|
||||
'@types/send': 0.17.4
|
||||
@ -6783,30 +6783,30 @@ snapshots:
|
||||
|
||||
'@types/from2@2.3.5':
|
||||
dependencies:
|
||||
'@types/node': 22.13.11
|
||||
'@types/node': 22.13.13
|
||||
|
||||
'@types/fs-extra@11.0.4':
|
||||
dependencies:
|
||||
'@types/jsonfile': 6.1.4
|
||||
'@types/node': 22.13.11
|
||||
'@types/node': 22.13.13
|
||||
|
||||
'@types/fs-extra@9.0.13':
|
||||
dependencies:
|
||||
'@types/node': 22.13.11
|
||||
'@types/node': 22.13.13
|
||||
|
||||
'@types/glob@7.2.0':
|
||||
dependencies:
|
||||
'@types/minimatch': 5.1.2
|
||||
'@types/node': 22.13.11
|
||||
'@types/node': 22.13.13
|
||||
|
||||
'@types/glob@8.1.0':
|
||||
dependencies:
|
||||
'@types/minimatch': 5.1.2
|
||||
'@types/node': 22.13.11
|
||||
'@types/node': 22.13.13
|
||||
|
||||
'@types/gunzip-maybe@1.4.2':
|
||||
dependencies:
|
||||
'@types/node': 22.13.11
|
||||
'@types/node': 22.13.13
|
||||
|
||||
'@types/hast@3.0.4':
|
||||
dependencies:
|
||||
@ -6840,7 +6840,7 @@ snapshots:
|
||||
|
||||
'@types/jsonfile@6.1.4':
|
||||
dependencies:
|
||||
'@types/node': 22.13.11
|
||||
'@types/node': 22.13.13
|
||||
|
||||
'@types/keygrip@1.0.6': {}
|
||||
|
||||
@ -6857,7 +6857,7 @@ snapshots:
|
||||
'@types/http-errors': 2.0.4
|
||||
'@types/keygrip': 1.0.6
|
||||
'@types/koa-compose': 3.2.8
|
||||
'@types/node': 22.13.11
|
||||
'@types/node': 22.13.13
|
||||
|
||||
'@types/mdast@4.0.4':
|
||||
dependencies:
|
||||
@ -6875,9 +6875,9 @@ snapshots:
|
||||
|
||||
'@types/node-forge@1.3.11':
|
||||
dependencies:
|
||||
'@types/node': 22.13.11
|
||||
'@types/node': 22.13.13
|
||||
|
||||
'@types/node@22.13.11':
|
||||
'@types/node@22.13.13':
|
||||
dependencies:
|
||||
undici-types: 6.20.0
|
||||
|
||||
@ -6895,19 +6895,19 @@ snapshots:
|
||||
|
||||
'@types/s3rver@3.7.4':
|
||||
dependencies:
|
||||
'@types/node': 22.13.11
|
||||
'@types/node': 22.13.13
|
||||
|
||||
'@types/semver@7.5.8': {}
|
||||
|
||||
'@types/send@0.17.4':
|
||||
dependencies:
|
||||
'@types/mime': 1.3.5
|
||||
'@types/node': 22.13.11
|
||||
'@types/node': 22.13.13
|
||||
|
||||
'@types/serve-static@1.15.7':
|
||||
dependencies:
|
||||
'@types/http-errors': 2.0.4
|
||||
'@types/node': 22.13.11
|
||||
'@types/node': 22.13.13
|
||||
'@types/send': 0.17.4
|
||||
|
||||
'@types/sinon-chai@3.2.12':
|
||||
@ -6927,11 +6927,11 @@ snapshots:
|
||||
|
||||
'@types/tar-stream@2.2.3':
|
||||
dependencies:
|
||||
'@types/node': 22.13.11
|
||||
'@types/node': 22.13.13
|
||||
|
||||
'@types/through2@2.0.41':
|
||||
dependencies:
|
||||
'@types/node': 22.13.11
|
||||
'@types/node': 22.13.13
|
||||
|
||||
'@types/triple-beam@1.3.5': {}
|
||||
|
||||
@ -6955,18 +6955,18 @@ snapshots:
|
||||
|
||||
'@types/whatwg-url@8.2.2':
|
||||
dependencies:
|
||||
'@types/node': 22.13.11
|
||||
'@types/node': 22.13.13
|
||||
'@types/webidl-conversions': 7.0.3
|
||||
|
||||
'@types/which@3.0.4': {}
|
||||
|
||||
'@types/ws@7.4.7':
|
||||
dependencies:
|
||||
'@types/node': 22.13.11
|
||||
'@types/node': 22.13.13
|
||||
|
||||
'@types/ws@8.18.0':
|
||||
dependencies:
|
||||
'@types/node': 22.13.11
|
||||
'@types/node': 22.13.13
|
||||
|
||||
'@types/yargs-parser@21.0.3': {}
|
||||
|
||||
@ -6976,7 +6976,7 @@ snapshots:
|
||||
|
||||
'@types/yauzl@2.10.3':
|
||||
dependencies:
|
||||
'@types/node': 22.13.11
|
||||
'@types/node': 22.13.13
|
||||
optional: true
|
||||
|
||||
'@ungap/structured-clone@1.3.0': {}
|
||||
@ -7616,7 +7616,7 @@ snapshots:
|
||||
dependencies:
|
||||
'@types/cookie': 0.4.1
|
||||
'@types/cors': 2.8.17
|
||||
'@types/node': 22.13.11
|
||||
'@types/node': 22.13.13
|
||||
accepts: 1.3.8
|
||||
base64id: 2.0.0
|
||||
cookie: 0.4.2
|
||||
@ -8445,7 +8445,7 @@ snapshots:
|
||||
jest-util@29.7.0:
|
||||
dependencies:
|
||||
'@jest/types': 29.6.3
|
||||
'@types/node': 22.13.11
|
||||
'@types/node': 22.13.13
|
||||
chalk: 4.1.2
|
||||
ci-info: 3.9.0
|
||||
graceful-fs: 4.2.11
|
||||
@ -10034,7 +10034,7 @@ snapshots:
|
||||
|
||||
type-fest@2.19.0: {}
|
||||
|
||||
type-fest@4.37.0: {}
|
||||
type-fest@4.38.0: {}
|
||||
|
||||
type-is@1.6.18:
|
||||
dependencies:
|
||||
|
@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@tsclass/tsclass',
|
||||
version: '8.0.1',
|
||||
version: '8.2.0',
|
||||
description: 'Provides TypeScript definitions for various business, financial, networking, content, and other common classes.'
|
||||
}
|
||||
|
@ -47,14 +47,38 @@ export type TPerson = TContactEnvelope<
|
||||
};
|
||||
}
|
||||
>;
|
||||
|
||||
type TCompanyInCreation = {
|
||||
status: "planned" | "founding";
|
||||
};
|
||||
|
||||
type TCompanyActive = {
|
||||
status: "active";
|
||||
foundedDate: general.IDate;
|
||||
};
|
||||
|
||||
type TCompanyInLiquidation = {
|
||||
status: "liquidation";
|
||||
foundedDate: general.IDate;
|
||||
liquidationDate: general.IDate;
|
||||
};
|
||||
|
||||
type TCompanyClosed = {
|
||||
status: "closed";
|
||||
foundedDate: general.IDate;
|
||||
liquidationDate: general.IDate;
|
||||
closedDate: general.IDate;
|
||||
};
|
||||
|
||||
type TCompanyStatus =
|
||||
| TCompanyInCreation
|
||||
| TCompanyActive
|
||||
| TCompanyInLiquidation
|
||||
| TCompanyClosed;
|
||||
|
||||
export type TCompany = TContactEnvelope<
|
||||
"company",
|
||||
{
|
||||
registrationDetails: TRegistrationDetails;
|
||||
foundedDate: general.IDate;
|
||||
closedDate: general.IDate;
|
||||
status: "planned" | "founding" | "active" | "liquidation" | "closed";
|
||||
}
|
||||
{ registrationDetails: TRegistrationDetails } & TCompanyStatus
|
||||
>;
|
||||
|
||||
export type TContact = TPerson | TCompany;
|
||||
|
@ -51,15 +51,4 @@ export type TLetterEnvelope<TYPE extends string, FIELDS> = business.TDocumentEnv
|
||||
export type TLetterSimple = TLetterEnvelope<"simple", {}>;
|
||||
|
||||
|
||||
export type TLetter = TLetterSimple;
|
||||
|
||||
// type: "invoice" | "notice" | "warning" | "verification" | "contract";
|
||||
/* content: {
|
||||
textData: string[];
|
||||
invoiceData?: finance.IInvoice;
|
||||
contractData?: {
|
||||
id: string;
|
||||
contractDate: number;
|
||||
};
|
||||
timesheetData: string;
|
||||
}; */
|
||||
export type TLetter = TLetterSimple | finance.TInvoice
|
||||
|
@ -11,14 +11,17 @@ export type TInvoiceItem = {
|
||||
unitQuantity: number;
|
||||
unitNetPrice: number;
|
||||
vatPercentage: number;
|
||||
}
|
||||
};
|
||||
|
||||
export type TInvoiceEnvelope<TYPE extends 'creditnote' | 'debitnote', FIELDS> = business.TLetterEnvelope<
|
||||
export type TInvoiceEnvelope<
|
||||
TYPE extends 'creditnote' | 'debitnote',
|
||||
FIELDS,
|
||||
> = business.TLetterEnvelope<
|
||||
'invoice',
|
||||
{
|
||||
invoiceId: string;
|
||||
invoiceType: TYPE;
|
||||
status: TInvoiceStatus;
|
||||
type: TYPE;
|
||||
items: TInvoiceItem[];
|
||||
periodOfPerformance?: {
|
||||
from: number;
|
||||
|
@ -9,6 +9,7 @@ export interface IPayPalConnection {
|
||||
}
|
||||
|
||||
export interface IPaymentOptionInfo {
|
||||
description?: string;
|
||||
sepaConnection: ISepaConnection;
|
||||
payPal: IPayPalConnection;
|
||||
}
|
||||
|
14
ts/index.ts
14
ts/index.ts
@ -31,7 +31,19 @@ import * as storage from './storage/index.js';
|
||||
// Website
|
||||
import * as website from './website/index.js';
|
||||
|
||||
export { business, container, code, database, finance, content, general, network, saas, storage, website };
|
||||
export {
|
||||
business,
|
||||
container,
|
||||
code,
|
||||
database,
|
||||
finance,
|
||||
content,
|
||||
general,
|
||||
network,
|
||||
saas,
|
||||
storage,
|
||||
website,
|
||||
};
|
||||
|
||||
import type * as typeFest from 'type-fest';
|
||||
import * as typeFestOwn from './typefest.own.js';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { type ICert } from "./cert.js";
|
||||
import { type ICert } from './cert.js';
|
||||
|
||||
export class ICnameDescriptor {
|
||||
/**
|
||||
@ -26,4 +26,4 @@ export class ICnameDescriptor {
|
||||
* the ssl certificate
|
||||
*/
|
||||
sslCertificate?: ICert;
|
||||
};
|
||||
}
|
||||
|
@ -1,24 +1,24 @@
|
||||
export type TDnsRecordType =
|
||||
| "A"
|
||||
| "AAAA"
|
||||
| "CNAME"
|
||||
| "LOC"
|
||||
| "PTR"
|
||||
| "MX"
|
||||
| "NAPTR"
|
||||
| "NS"
|
||||
| "SRV"
|
||||
| "TXT"
|
||||
| "CAA"
|
||||
| "CERT"
|
||||
| "DNSKEY"
|
||||
| "DS"
|
||||
| "HTTPS"
|
||||
| "SMIMEA"
|
||||
| "SSHFP"
|
||||
| "SVCB"
|
||||
| "TLSA"
|
||||
| "URI";
|
||||
| 'A'
|
||||
| 'AAAA'
|
||||
| 'CNAME'
|
||||
| 'LOC'
|
||||
| 'PTR'
|
||||
| 'MX'
|
||||
| 'NAPTR'
|
||||
| 'NS'
|
||||
| 'SRV'
|
||||
| 'TXT'
|
||||
| 'CAA'
|
||||
| 'CERT'
|
||||
| 'DNSKEY'
|
||||
| 'DS'
|
||||
| 'HTTPS'
|
||||
| 'SMIMEA'
|
||||
| 'SSHFP'
|
||||
| 'SVCB'
|
||||
| 'TLSA'
|
||||
| 'URI';
|
||||
|
||||
export interface IDnsRecord {
|
||||
name: string;
|
||||
|
@ -1,4 +1,4 @@
|
||||
export interface IJwtKeypair {
|
||||
privatePem: string;
|
||||
publicPem: string;
|
||||
}
|
||||
}
|
||||
|
@ -2,4 +2,4 @@ export interface ISshKey {
|
||||
keyName: string;
|
||||
public: string;
|
||||
private?: string;
|
||||
}
|
||||
}
|
||||
|
@ -1,11 +1,11 @@
|
||||
import type { TCompany } from "../business/contact.js";
|
||||
import type { TCompany } from '../business/contact.js';
|
||||
|
||||
export interface IProduct {
|
||||
name: string;
|
||||
slogan: string;
|
||||
description: string;
|
||||
os: "web-based";
|
||||
category: "Business Application";
|
||||
os: 'web-based';
|
||||
category: 'Business Application';
|
||||
offers: any[];
|
||||
features: IProductFeature[];
|
||||
landingPage: string;
|
||||
|
@ -2,7 +2,4 @@ type SecondArgument<T> = T extends (arg1: any, arg2: infer P, ...args: any[]) =>
|
||||
|
||||
type ValueType<T> = T extends { [key: string]: infer U } ? U : never;
|
||||
|
||||
export type {
|
||||
SecondArgument,
|
||||
ValueType
|
||||
}
|
||||
export type { SecondArgument, ValueType };
|
||||
|
@ -4,4 +4,4 @@ export interface ILink {
|
||||
description?: string;
|
||||
icon?: string;
|
||||
target?: '_blank' | '_self' | '_parent' | '_top';
|
||||
}
|
||||
}
|
||||
|
@ -6,9 +6,11 @@
|
||||
"module": "NodeNext",
|
||||
"moduleResolution": "NodeNext",
|
||||
"esModuleInterop": true,
|
||||
"verbatimModuleSyntax": true
|
||||
"verbatimModuleSyntax": true,
|
||||
"baseUrl": ".",
|
||||
"paths": {}
|
||||
},
|
||||
"exclude": [
|
||||
"dist_*/**/*.d.ts"
|
||||
]
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user