20 Commits

Author SHA1 Message Date
f46d8a54cd v1.2.0
Some checks failed
Default (tags) / security (push) Failing after 0s
Default (tags) / test (push) Failing after 0s
Default (tags) / release (push) Has been skipped
Default (tags) / metadata (push) Has been skipped
2025-12-18 14:18:05 +00:00
4f08d09552 feat(tools): add demodata feature, update package metadata, tsconfig paths, CI/workflows, and bump deps 2025-12-18 14:18:05 +00:00
4bd61aed70 1.1.0
Some checks failed
Default (tags) / security (push) Failing after 16s
Default (tags) / test (push) Failing after 14s
Default (tags) / release (push) Has been skipped
Default (tags) / metadata (push) Has been skipped
2024-12-19 18:26:24 +01:00
e5ca606e3c feat(demodata): Add demo data feature for contracts 2024-12-19 18:26:24 +01:00
2f97b407a2 1.0.11
Some checks failed
Default (tags) / security (push) Failing after 17s
Default (tags) / test (push) Failing after 13s
Default (tags) / release (push) Has been skipped
Default (tags) / metadata (push) Has been skipped
2024-12-19 18:20:51 +01:00
6f60cb216d fix(interfaces): Fixed import path in ts_interfaces/index.ts 2024-12-19 18:20:51 +01:00
e68524bc19 1.0.10
Some checks failed
Default (tags) / security (push) Failing after 12s
Default (tags) / test (push) Failing after 13s
Default (tags) / release (push) Has been skipped
Default (tags) / metadata (push) Has been skipped
2024-12-18 21:55:34 +01:00
daad17354d fix(test): Add initial test for portablecontract 2024-12-18 21:55:34 +01:00
c01c1904cf 1.0.9
Some checks failed
Default (tags) / security (push) Failing after 16s
Default (tags) / test (push) Failing after 14s
Default (tags) / release (push) Has been skipped
Default (tags) / metadata (push) Has been skipped
2024-12-18 21:54:35 +01:00
7bb1b22ea6 fix(ts_interfaces): Resolved missing exports in plugins.ts 2024-12-18 21:54:35 +01:00
5d275dd9d5 1.0.8
Some checks failed
Default (tags) / security (push) Failing after 15s
Default (tags) / test (push) Failing after 12s
Default (tags) / release (push) Has been skipped
Default (tags) / metadata (push) Has been skipped
2024-12-18 20:39:44 +01:00
871ed4fc91 fix(core): Fixed export paths in package configuration 2024-12-18 20:39:44 +01:00
d53bc96947 1.0.7
Some checks failed
Default (tags) / security (push) Failing after 12s
Default (tags) / test (push) Failing after 12s
Default (tags) / release (push) Has been skipped
Default (tags) / metadata (push) Has been skipped
2024-12-18 20:31:19 +01:00
2078c6c7c8 fix(project): Corrected misalignment in file structure and package metadata. 2024-12-18 20:31:19 +01:00
12eba17c7c 1.0.6
Some checks failed
Default (tags) / security (push) Failing after 15s
Default (tags) / test (push) Failing after 14s
Default (tags) / release (push) Has been skipped
Default (tags) / metadata (push) Has been skipped
2024-12-18 20:29:09 +01:00
033024951d fix(core): No code changes detected. 2024-12-18 20:29:09 +01:00
213c52fccc 1.0.5
Some checks failed
Default (tags) / security (push) Failing after 15s
Default (tags) / test (push) Failing after 13s
Default (tags) / release (push) Has been skipped
Default (tags) / metadata (push) Has been skipped
2024-12-18 20:28:10 +01:00
d9989c903c fix(core): Corrected package and npm extra configuration to ensure consistent naming. 2024-12-18 20:28:10 +01:00
aa7b37f797 1.0.4
Some checks failed
Default (tags) / security (push) Failing after 15s
Default (tags) / test (push) Failing after 14s
Default (tags) / release (push) Has been skipped
Default (tags) / metadata (push) Has been skipped
2023-11-28 13:36:28 +01:00
f7f4ce99ed fix(core): update 2023-11-28 13:36:28 +01:00
22 changed files with 7795 additions and 4561 deletions

View File

@@ -6,19 +6,19 @@ on:
- '**'
env:
IMAGE: registry.gitlab.com/hosttoday/ht-docker-node:npmci
NPMCI_COMPUTED_REPOURL: https://${{gitea.repository_owner}}:${{secrets.GITEA_TOKEN}}@gitea.lossless.digital/${{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}}
IMAGE: code.foss.global/host.today/ht-docker-node:npmci
NPMCI_COMPUTED_REPOURL: https://${-{gitea.repository_owner}-}:${-{secrets.GITEA_TOKEN}-}@{{module.githost}}/${-{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 }}
image: ${-{ env.IMAGE }-}
steps:
- uses: actions/checkout@v3
@@ -26,7 +26,7 @@ jobs:
- name: Install pnpm and npmci
run: |
pnpm install -g pnpm
pnpm install -g @shipzone/npmci
pnpm install -g @ship.zone/npmci
- name: Run npm prepare
run: npmci npm prepare
@@ -44,11 +44,11 @@ jobs:
continue-on-error: true
test:
if: ${{ always() }}
if: ${-{ always() }-}
needs: security
runs-on: ubuntu-latest
container:
image: ${{ env.IMAGE }}
image: ${-{ env.IMAGE }-}
steps:
- uses: actions/checkout@v3

View File

@@ -6,19 +6,19 @@ on:
- '*'
env:
IMAGE: registry.gitlab.com/hosttoday/ht-docker-node:npmci
NPMCI_COMPUTED_REPOURL: https://${{gitea.repository_owner}}:${{secrets.GITEA_TOKEN}}@gitea.lossless.digital/${{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}}
IMAGE: code.foss.global/host.today/ht-docker-node:npmci
NPMCI_COMPUTED_REPOURL: https://${-{gitea.repository_owner}-}:${-{secrets.GITEA_TOKEN}-}@{{module.githost}}/${-{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 }}
image: ${-{ env.IMAGE }-}
steps:
- uses: actions/checkout@v3
@@ -26,7 +26,7 @@ jobs:
- name: Prepare
run: |
pnpm install -g pnpm
pnpm install -g @shipzone/npmci
pnpm install -g @ship.zone/npmci
npmci npm prepare
- name: Audit production dependencies
@@ -42,11 +42,11 @@ jobs:
continue-on-error: true
test:
if: ${{ always() }}
if: ${-{ always() }-}
needs: security
runs-on: ubuntu-latest
container:
image: ${{ env.IMAGE }}
image: ${-{ env.IMAGE }-}
steps:
- uses: actions/checkout@v3
@@ -54,7 +54,7 @@ jobs:
- name: Prepare
run: |
pnpm install -g pnpm
pnpm install -g @shipzone/npmci
pnpm install -g @ship.zone/npmci
npmci npm prepare
- name: Test stable
@@ -74,7 +74,7 @@ jobs:
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
container:
image: ${{ env.IMAGE }}
image: ${-{ env.IMAGE }-}
steps:
- uses: actions/checkout@v3
@@ -82,7 +82,7 @@ jobs:
- name: Prepare
run: |
pnpm install -g pnpm
pnpm install -g @shipzone/npmci
pnpm install -g @ship.zone/npmci
npmci npm prepare
- name: Release
@@ -95,7 +95,7 @@ jobs:
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
container:
image: ${{ env.IMAGE }}
image: ${-{ env.IMAGE }-}
continue-on-error: true
steps:
@@ -104,7 +104,7 @@ jobs:
- name: Prepare
run: |
pnpm install -g pnpm
pnpm install -g @shipzone/npmci
pnpm install -g @ship.zone/npmci
npmci npm prepare
- name: Code quality

7
.gitignore vendored
View File

@@ -3,7 +3,6 @@
# artifacts
coverage/
public/
pages/
# installs
node_modules/
@@ -17,4 +16,8 @@ node_modules/
dist/
dist_*/
# custom
# AI
.claude/
.serena/
#------# custom

75
changelog.md Normal file
View File

@@ -0,0 +1,75 @@
# Changelog
## 2025-12-18 - 1.2.0 - feat(tools)
add demodata feature, update package metadata, tsconfig paths, CI/workflows, and bump deps
- Add demodata subpackage (@signature.digital/demodata) and export entry
- Introduce tsconfig path aliases for @signature.digital/tools, @signature.digital/demodata, and @signature.digital/interfaces
- Update package.json metadata (repository, bugs, homepage), add pnpm overrides, and bump dev/deps (@git.zone/tsbuild, @git.zone/tstest, @tsclass/tsclass)
- Rename and configure tspublish.json files to include package names and registries for publishing
- Fix interfaces: change IInvolvedParty.contact type to plugins.tsclass.business.TContact
- Update tests to use @git.zone/tstest/tapbundle and export tap.start()
- Revise CI workflow files to use code.foss.global image, new secret placeholder formatting, and @ship.zone/npmci package name
- Rework npmextra.json structure and add release registries and szci config
- Update README and changelog content and add minor .gitignore entries for AI tools
## 2024-12-19 - 1.1.0 - feat(demodata)
Add demo data feature for contracts
- Introduced demo contract data for Minijob Employment Contract outlining details for employer and employee roles.
- Enhanced package.json with new export entry for demodata.
- Implemented new ts_demodata directory with sample contract representation.
## 2024-12-19 - 1.0.11 - fix(interfaces)
Fixed import path in ts_interfaces/index.ts
- Corrected import path for plugins in ts_interfaces/index.ts to prevent module resolution issues.
## 2024-12-18 - 1.0.10 - fix(test)
Add initial test for portablecontract
## 2024-12-18 - 1.0.9 - fix(ts_interfaces)
Resolved missing exports in plugins.ts
- Added export statements in ts_interfaces/plugins.ts to resolve module issues.
## 2024-12-18 - 1.0.8 - fix(core)
Fixed export paths in package configuration
- Updated exports paths in package.json for proper module resolution.
- Fixed export statement in ts/index.ts to reference the correct path for interface exports.
## 2024-12-18 - 1.0.7 - fix(project)
Corrected misalignment in file structure and package metadata.
- Updated the file export path in ts/index.ts to correct interface export location.
- Transferred the interfaces from ts/interfaces/index.ts to ts_interfaces/index.ts maintaining consistency in folder structure.
- Synchronized package description and keywords between package.json and npmextra.json.
- Ensured proper build script path in package.json.
## 2024-12-18 - 1.0.6 - fix(core)
No code changes detected.
## 2024-12-18 - 1.0.5 - fix(core)
Corrected package and npm extra configuration to ensure consistent naming.
- Updated 'name' field in package.json from '@signature.digital/portablecontract' to '@signature.digital/tools'.
- Updated 'gitrepo' in npmextra.json from 'portablecontract' to 'tools'.
- Updated 'npmPackagename' in npmextra.json from '@signature.digital/portablecontract' to '@signature.digital/tools'.
## 2023-11-22 to 2023-11-28 - 1.0.1 to 1.0.4 - core updates
Fixes and updates in the core component.
- Updated core module to enhance performance and fix minor bugs in version 1.0.1
- Subsequent updates to core module for improved stability in version 1.0.2
- Applied additional fixes and improvements in version 1.0.3
- Finalized core updates in version 1.0.4

View File

@@ -1,18 +1,42 @@
{
"gitzone": {
"@git.zone/cli": {
"projectType": "npm",
"module": {
"githost": "gitlab.com",
"gitscope": "signature.digital",
"gitrepo": "portablecontract",
"description": "a package that defines standard tools for working with contracts.",
"npmPackagename": "@signature.digital/portablecontract",
"gitrepo": "tools",
"description": "A TypeScript package providing utilities for managing digital contracts with modular interfaces and business context integration.",
"npmPackagename": "@signature.digital/tools",
"license": "MIT",
"projectDomain": "signature.digital"
"projectDomain": "signature.digital",
"keywords": [
"TypeScript",
"digital contracts",
"contract management",
"modular design",
"business integration",
"interfaces",
"typescript utilities",
"contract structures",
"interfaces-driven architecture",
"contract modeling",
"business relationships",
"data handling",
"asynchronous loading",
"dynamic role assignment",
"contract validation",
"unit testing"
]
},
"release": {
"registries": ["https://verdaccio.lossless.digital"],
"accessLevel": "public"
}
},
"npmci": {
"npmGlobalTools": [],
"npmAccessLevel": "public"
"@git.zone/tsdoc": {
"legal": "\n## License and Legal Information\n\nThis repository contains open-source code that is licensed under the MIT License. A copy of the MIT License can be found in the [license](license) file within this repository. \n\n**Please note:** The MIT License does not grant permission to use the trade names, trademarks, service marks, or product names of the project, except as required for reasonable and customary use in describing the origin of the work and reproducing the content of the NOTICE file.\n\n### Trademarks\n\nThis project is owned and maintained by Task Venture Capital GmbH. The names and logos associated with Task Venture Capital GmbH and any related products or services are trademarks of Task Venture Capital GmbH and are not included within the scope of the MIT license granted herein. Use of these trademarks must comply with Task Venture Capital GmbH's Trademark Guidelines, and any usage must be approved in writing by Task Venture Capital GmbH.\n\n### Company Information\n\nTask Venture Capital GmbH \nRegistered at District court Bremen HRB 35230 HB, Germany\n\nFor any legal inquiries or if you require further information, please contact us via email at hello@task.vc.\n\nBy using this repository, you acknowledge that you have read this section, agree to comply with its terms, and understand that the licensing of the code does not imply endorsement by Task Venture Capital GmbH of any derivative works.\n"
},
"@ship.zone/szci": {
"npmGlobalTools": []
}
}

View File

@@ -1,37 +1,39 @@
{
"name": "@signature.digital/portablecontract",
"version": "1.0.3",
"name": "@signature.digital/tools",
"version": "1.2.0",
"private": false,
"description": "a package that defines standard tools for working with contracts.",
"main": "dist_ts/index.js",
"typings": "dist_ts/index.d.ts",
"description": "A TypeScript package providing utilities for managing digital contracts with modular interfaces and business context integration.",
"exports": {
".": "./ts/index.js",
"./interfaces": "./dist_ts_interfaces/index.js",
"./demodata": "./dist_ts_demodata/index.js"
},
"type": "module",
"author": "Task Venture Capital GmbH",
"license": "MIT",
"scripts": {
"test": "(tstest test/ --web)",
"build": "(tsbuild --web --allowimplicitany)",
"build": "(tsbuild tsfolders --web --allowimplicitany)",
"buildDocs": "(tsdoc)"
},
"devDependencies": {
"@git.zone/tsbuild": "^2.1.25",
"@git.zone/tsbundle": "^2.0.5",
"@git.zone/tsrun": "^1.2.46",
"@git.zone/tstest": "^1.0.44",
"@push.rocks/tapbundle": "^5.0.15",
"@types/node": "^20.8.7"
"@git.zone/tsbuild": "^2.6.1",
"@git.zone/tsbundle": "^2.1.0",
"@git.zone/tsrun": "^1.3.3",
"@git.zone/tstest": "^1.0.96",
"@types/node": "^22.10.2"
},
"dependencies": {
"@tsclass/tsclass": "^4.0.46"
"@tsclass/tsclass": "^9.3.0"
},
"repository": {
"type": "git",
"url": "git+https://gitlab.com/signature.digital/portablecontract.git"
"url": "https://gitlab.com/signature.digital/tools.git"
},
"bugs": {
"url": "https://gitlab.com/signature.digital/portablecontract/issues"
"url": "https://gitlab.com/signature.digital/tools/issues"
},
"homepage": "https://gitlab.com/signature.digital/portablecontract#readme",
"homepage": "https://gitlab.com/signature.digital/tools#readme",
"browserslist": [
"last 1 chrome versions"
],
@@ -46,5 +48,26 @@
"cli.js",
"npmextra.json",
"readme.md"
]
],
"keywords": [
"TypeScript",
"digital contracts",
"contract management",
"modular design",
"business integration",
"interfaces",
"typescript utilities",
"contract structures",
"interfaces-driven architecture",
"contract modeling",
"business relationships",
"data handling",
"asynchronous loading",
"dynamic role assignment",
"contract validation",
"unit testing"
],
"pnpm": {
"overrides": {}
}
}

11808
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

0
readme.hints.md Normal file
View File

203
readme.md
View File

@@ -1,31 +1,184 @@
# @signature.digital/portablecontract
a package that defines standard tools for working with contracts.
# @signature.digital/tools
## Availabililty and Links
* [npmjs.org (npm package)](https://www.npmjs.com/package/@signature.digital/portablecontract)
* [gitlab.com (source)](https://gitlab.com/signature.digital/portablecontract)
* [github.com (source mirror)](https://github.com/signature.digital/portablecontract)
* [docs (typedoc)](https://signature.digital.gitlab.io/portablecontract/)
A TypeScript package providing utility interfaces and classes for efficient digital contract management and business context integration with a modular design. 📝
## Status for master
## Issue Reporting and Security
Status Category | Status Badge
-- | --
GitLab Pipelines | [![pipeline status](https://gitlab.com/signature.digital/portablecontract/badges/master/pipeline.svg)](https://lossless.cloud)
GitLab Pipline Test Coverage | [![coverage report](https://gitlab.com/signature.digital/portablecontract/badges/master/coverage.svg)](https://lossless.cloud)
npm | [![npm downloads per month](https://badgen.net/npm/dy/@signature.digital/portablecontract)](https://lossless.cloud)
Snyk | [![Known Vulnerabilities](https://badgen.net/snyk/signature.digital/portablecontract)](https://lossless.cloud)
TypeScript Support | [![TypeScript](https://badgen.net/badge/TypeScript/>=%203.x/blue?icon=typescript)](https://lossless.cloud)
node Support | [![node](https://img.shields.io/badge/node->=%2010.x.x-blue.svg)](https://nodejs.org/dist/latest-v10.x/docs/api/)
Code Style | [![Code Style](https://badgen.net/badge/style/prettier/purple)](https://lossless.cloud)
PackagePhobia (total standalone install weight) | [![PackagePhobia](https://badgen.net/packagephobia/install/@signature.digital/portablecontract)](https://lossless.cloud)
PackagePhobia (package size on registry) | [![PackagePhobia](https://badgen.net/packagephobia/publish/@signature.digital/portablecontract)](https://lossless.cloud)
BundlePhobia (total size when bundled) | [![BundlePhobia](https://badgen.net/bundlephobia/minzip/@signature.digital/portablecontract)](https://lossless.cloud)
For reporting bugs, issues, or security vulnerabilities, please visit [community.foss.global/](https://community.foss.global/). This is the central community hub for all issue reporting. Developers who sign and comply with our contribution agreement and go through identification can also get a [code.foss.global/](https://code.foss.global/) account to submit Pull Requests directly.
## Install
Install using your preferred package manager:
```bash
# Using pnpm (recommended)
pnpm add @signature.digital/tools
# Using npm
npm install @signature.digital/tools
```
## Usage
Use TypeScript for best in class intellisense
For further information read the linked docs at the top of this readme.
## Legal
> MIT licensed | **©** [Task Venture Capital GmbH](https://task.vc)
| By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy)
This package provides TypeScript interfaces for modeling digital contracts with support for roles, paragraphs, and involved parties.
### Core Interfaces
The package exports these key interfaces:
```typescript
import type {
IPortableContract,
IRole,
IInvolvedParty,
IParagraph,
} from '@signature.digital/tools';
```
### Interface Overview
#### `IPortableContract`
The main contract interface containing:
- `title` - Contract title
- `context` - Description of the contract context
- `availableRoles` - Array of available roles
- `involvedParties` - Parties involved with their contacts
- `priorContracts` - Reference to preceding contracts
- `paragraphs` - Contract content sections
#### `IRole`
Defines a role within the contract:
```typescript
interface IRole {
id: string;
name: string;
description: string;
}
```
#### `IParagraph`
Represents a contract section:
```typescript
interface IParagraph {
uniqueId: string;
parent: IParagraph | null;
title: string;
content: string;
}
```
#### `IInvolvedParty`
Links a role to a contact:
```typescript
interface IInvolvedParty {
role: string;
contact: TContact; // from @tsclass/tsclass
}
```
### Example: Creating a Contract
```typescript
import type {
IPortableContract,
IRole,
IParagraph,
} from '@signature.digital/tools';
const roles: IRole[] = [
{
id: 'employer',
name: 'Employer',
description: 'The party offering the position.',
},
{
id: 'employee',
name: 'Employee',
description: 'The party accepting the position.',
},
];
const paragraphs: IParagraph[] = [
{
uniqueId: '1',
parent: null,
title: 'Introduction',
content: 'This contract outlines the terms of employment.',
},
{
uniqueId: '2',
parent: null,
title: 'Scope of Work',
content: 'The employee will perform the following duties...',
},
];
const contract: IPortableContract = {
title: 'Employment Contract',
context: 'Standard employment agreement',
availableRoles: roles,
involvedParties: [
{ role: 'employer', contact: null },
{ role: 'employee', contact: null },
],
priorContracts: [],
paragraphs,
};
```
### Using Demo Data
The package includes demo data for testing and development:
```typescript
import { demoContract } from '@signature.digital/tools/demodata';
console.log(demoContract.title); // "Minijob Employment Contract"
```
### Separate Interface Import
You can import just the interfaces without the full package:
```typescript
import type { IPortableContract } from '@signature.digital/tools/interfaces';
```
## Module Exports
The package provides three entry points:
| Entry Point | Description |
| ------------------------------------- | ------------------------------- |
| `@signature.digital/tools` | Main export with all interfaces |
| `@signature.digital/tools/interfaces` | Interface definitions only |
| `@signature.digital/tools/demodata` | Demo contract data |
## License and Legal Information
This repository contains open-source code licensed under the MIT License. A copy of the license can be found in the [LICENSE](./LICENSE) file.
**Please note:** The MIT License does not grant permission to use the trade names, trademarks, service marks, or product names of the project, except as required for reasonable and customary use in describing the origin of the work and reproducing the content of the NOTICE file.
### Trademarks
This project is owned and maintained by Task Venture Capital GmbH. The names and logos associated with Task Venture Capital GmbH and any related products or services are trademarks of Task Venture Capital GmbH or third parties, and are not included within the scope of the MIT license granted herein.
Use of these trademarks must comply with Task Venture Capital GmbH's Trademark Guidelines or the guidelines of the respective third-party owners, and any usage must be approved in writing. Third-party trademarks used herein are the property of their respective owners and used only in a descriptive manner, e.g. for an implementation of an API or similar.
### Company Information
Task Venture Capital GmbH
Registered at District Court Bremen HRB 35230 HB, Germany
For any legal inquiries or further information, please contact us via email at hello@task.vc.
By using this repository, you acknowledge that you have read this section, agree to comply with its terms, and understand that the licensing of the code does not imply endorsement by Task Venture Capital GmbH of any derivative works.

View File

@@ -1,8 +1,8 @@
import { expect, expectAsync, tap } from '@push.rocks/tapbundle';
import { expect, tap } from '@git.zone/tstest/tapbundle';
import * as portablecontract from '../ts/index.js'
tap.test('first test', async () => {
console.log(portablecontract)
})
tap.start()
export default tap.start();

View File

@@ -1,8 +1,8 @@
/**
* autocreated commitinfo by @pushrocks/commitinfo
* autocreated commitinfo by @push.rocks/commitinfo
*/
export const commitinfo = {
name: '@signature.digital/portablecontract',
version: '1.0.3',
description: 'a package that defines standard tools for working with contracts.'
name: '@signature.digital/tools',
version: '1.2.0',
description: 'A TypeScript package providing utilities for managing digital contracts with modular interfaces and business context integration.'
}

View File

@@ -1,3 +1 @@
import * as plugins from './portablecontract.plugins.js';
export let demoExport = 'Hi there! :) This is an exported string';
export * from '../dist_ts_interfaces/index.js';

View File

@@ -1,3 +1,7 @@
// project scope
import * as interfaces from '@signature.digital/interfaces';
// @tsclass scope
import * as tsclass from '@tsclass/tsclass';
export {

5
ts/tspublish.json Normal file
View File

@@ -0,0 +1,5 @@
{
"name": "@signature.digital/tools",
"order": 2,
"registries": ["useBase"]
}

View File

@@ -0,0 +1,49 @@
import * as plugins from './plugins.js';
export const demoContract: plugins.interfaces.IPortableContract = {
"title": "Minijob Employment Contract",
"context": "This contract is for a Minijob position under German law.",
"availableRoles": [
{
"id": "employer",
"name": "Employer",
"description": "The party offering the Minijob position."
},
{
"id": "employee",
"name": "Employee",
"description": "The party accepting the Minijob position."
}
],
"involvedParties": [
{
"role": "employer",
"contact": null
},
{
"role": "employee",
"contact": null
}
],
"priorContracts": [],
"paragraphs": [
{
"uniqueId": "1",
"parent": null,
"title": "Introduction",
"content": "This contract outlines the terms of employment for a Minijob position between [Employer Name] and [Employee Name]."
},
{
"uniqueId": "2",
"parent": null,
"title": "Scope of Work",
"content": "The employee will perform the following duties: [List of Duties]."
},
{
"uniqueId": "3",
"parent": null,
"title": "Compensation",
"content": "The employee will be compensated with a monthly salary of [Salary Amount], in accordance with Minijob regulations."
}
]
};

1
ts_demodata/index.ts Normal file
View File

@@ -0,0 +1 @@
export * from './democontract.js';

5
ts_demodata/plugins.ts Normal file
View File

@@ -0,0 +1,5 @@
import * as interfaces from '@signature.digital/interfaces';
export {
interfaces,
}

View File

@@ -0,0 +1,5 @@
{
"name": "@signature.digital/demodata",
"order": 3,
"registries": ["useBase"]
}

View File

@@ -1,5 +1,4 @@
import * as plugins from '../portablecontract.plugins.js';
import * as plugins from './plugins.js';
export interface IParagraph {
uniqueId: string;
parent: IParagraph | null;
@@ -15,7 +14,7 @@ export interface IRole {
export interface IInvolvedParty {
role: string;
contact: plugins.tsclass.business.IContact;
contact: plugins.tsclass.business.TContact;
}
export interface IPortableContract {

5
ts_interfaces/plugins.ts Normal file
View File

@@ -0,0 +1,5 @@
import * as tsclass from '@tsclass/tsclass';
export {
tsclass
}

View File

@@ -0,0 +1,5 @@
{
"name": "@signature.digital/interfaces",
"order": 1,
"registries": ["useBase"]
}

View File

@@ -1,14 +1,16 @@
{
"compilerOptions": {
"experimentalDecorators": true,
"useDefineForClassFields": false,
"target": "ES2022",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"esModuleInterop": true,
"verbatimModuleSyntax": true
"verbatimModuleSyntax": true,
"baseUrl": ".",
"paths": {
"@signature.digital/tools": ["./ts/index.js"],
"@signature.digital/demodata": ["./ts_demodata/index.js"],
"@signature.digital/interfaces": ["./ts_interfaces/index.js"]
}
},
"exclude": [
"dist_*/**/*.d.ts"
]
"exclude": ["dist_*/**/*.d.ts"]
}