feat(demodata): Add demo data feature for contracts

This commit is contained in:
Philipp Kunz 2024-12-19 18:26:24 +01:00
parent 2f97b407a2
commit e5ca606e3c
9 changed files with 74 additions and 2 deletions

View File

@ -1,5 +1,12 @@
# Changelog # Changelog
## 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) ## 2024-12-19 - 1.0.11 - fix(interfaces)
Fixed import path in ts_interfaces/index.ts Fixed import path in ts_interfaces/index.ts

View File

@ -5,7 +5,8 @@
"description": "A TypeScript package providing utilities for managing digital contracts with modular interfaces and business context integration.", "description": "A TypeScript package providing utilities for managing digital contracts with modular interfaces and business context integration.",
"exports": { "exports": {
".": "./ts/index.js", ".": "./ts/index.js",
"./interfaces": "./dist_ts_interfaces/index.js" "./interfaces": "./dist_ts_interfaces/index.js",
"./demodata": "./dist_ts_demodata/index.js"
}, },
"type": "module", "type": "module",
"author": "Task Venture Capital GmbH", "author": "Task Venture Capital GmbH",

View File

@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@signature.digital/tools', name: '@signature.digital/tools',
version: '1.0.11', version: '1.1.0',
description: 'A TypeScript package providing utilities for managing digital contracts with modular interfaces and business context integration.' description: 'A TypeScript package providing utilities for managing digital contracts with modular interfaces and business context integration.'
} }

3
ts/tspublish.json Normal file
View File

@ -0,0 +1,3 @@
{
"order": 2
}

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 '../dist_ts_interfaces/index.js';
export {
interfaces,
}

View File

@ -0,0 +1,3 @@
{
"order": 3
}

View File

@ -0,0 +1,3 @@
{
"order": 1
}