feat(demodata): Add demo data feature for contracts

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

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
}