feat(demodata): Add demo data feature for contracts
This commit is contained in:
parent
2f97b407a2
commit
e5ca606e3c
@ -1,5 +1,12 @@
|
||||
# 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)
|
||||
Fixed import path in ts_interfaces/index.ts
|
||||
|
||||
|
@ -5,7 +5,8 @@
|
||||
"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"
|
||||
"./interfaces": "./dist_ts_interfaces/index.js",
|
||||
"./demodata": "./dist_ts_demodata/index.js"
|
||||
},
|
||||
"type": "module",
|
||||
"author": "Task Venture Capital GmbH",
|
||||
|
@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
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.'
|
||||
}
|
||||
|
3
ts/tspublish.json
Normal file
3
ts/tspublish.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"order": 2
|
||||
}
|
49
ts_demodata/democontract.ts
Normal file
49
ts_demodata/democontract.ts
Normal 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
1
ts_demodata/index.ts
Normal file
@ -0,0 +1 @@
|
||||
export * from './democontract.js';
|
5
ts_demodata/plugins.ts
Normal file
5
ts_demodata/plugins.ts
Normal file
@ -0,0 +1,5 @@
|
||||
import * as interfaces from '../dist_ts_interfaces/index.js';
|
||||
|
||||
export {
|
||||
interfaces,
|
||||
}
|
3
ts_demodata/tspublish.json
Normal file
3
ts_demodata/tspublish.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"order": 3
|
||||
}
|
3
ts_interfaces/tspublish.json
Normal file
3
ts_interfaces/tspublish.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"order": 1
|
||||
}
|
Loading…
Reference in New Issue
Block a user