@tiangong-lca/tidas-sdk 0.1.20 → 0.1.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +174 -451
- package/dist/core/base/TidasEntity.d.ts +190 -0
- package/dist/core/base/TidasEntity.d.ts.map +1 -0
- package/dist/core/base/TidasEntity.js +433 -0
- package/dist/core/base/TidasEntity.js.map +1 -0
- package/dist/core/config/GlobalConfig.d.ts +60 -0
- package/dist/core/config/GlobalConfig.d.ts.map +1 -0
- package/dist/core/config/GlobalConfig.js +110 -0
- package/dist/core/config/GlobalConfig.js.map +1 -0
- package/dist/core/config/ValidationConfig.d.ts +70 -0
- package/dist/core/config/ValidationConfig.d.ts.map +1 -0
- package/dist/core/config/ValidationConfig.js +157 -0
- package/dist/core/config/ValidationConfig.js.map +1 -0
- package/dist/core/copilot/ai.d.ts +150 -0
- package/dist/core/copilot/ai.d.ts.map +1 -0
- package/dist/core/copilot/ai.js +581 -0
- package/dist/core/copilot/ai.js.map +1 -0
- package/dist/core/copilot/base.d.ts +83 -0
- package/dist/core/copilot/base.d.ts.map +1 -0
- package/dist/core/copilot/base.js +193 -0
- package/dist/core/copilot/base.js.map +1 -0
- package/dist/core/copilot/index.d.ts +1 -0
- package/dist/core/copilot/index.d.ts.map +1 -0
- package/dist/core/copilot/index.js +2 -0
- package/dist/core/copilot/index.js.map +1 -0
- package/dist/core/entities/TidasContact.d.ts +14 -0
- package/dist/core/entities/TidasContact.d.ts.map +1 -0
- package/dist/core/entities/TidasContact.js +124 -0
- package/dist/core/entities/TidasContact.js.map +1 -0
- package/dist/core/entities/TidasFlow.d.ts +14 -0
- package/dist/core/entities/TidasFlow.d.ts.map +1 -0
- package/dist/core/entities/TidasFlow.js +143 -0
- package/dist/core/entities/TidasFlow.js.map +1 -0
- package/dist/core/entities/TidasFlowProperty.d.ts +14 -0
- package/dist/core/entities/TidasFlowProperty.d.ts.map +1 -0
- package/dist/core/entities/TidasFlowProperty.js +156 -0
- package/dist/core/entities/TidasFlowProperty.js.map +1 -0
- package/dist/core/entities/TidasLCIAMethod.d.ts +14 -0
- package/dist/core/entities/TidasLCIAMethod.d.ts.map +1 -0
- package/dist/core/entities/TidasLCIAMethod.js +177 -0
- package/dist/core/entities/TidasLCIAMethod.js.map +1 -0
- package/dist/core/entities/TidasLifeCycleModel.d.ts +14 -0
- package/dist/core/entities/TidasLifeCycleModel.d.ts.map +1 -0
- package/dist/core/entities/TidasLifeCycleModel.js +169 -0
- package/dist/core/entities/TidasLifeCycleModel.js.map +1 -0
- package/dist/core/entities/TidasProcess.d.ts +14 -0
- package/dist/core/entities/TidasProcess.d.ts.map +1 -0
- package/dist/core/entities/TidasProcess.js +191 -0
- package/dist/core/entities/TidasProcess.js.map +1 -0
- package/dist/core/entities/TidasSource.d.ts +14 -0
- package/dist/core/entities/TidasSource.d.ts.map +1 -0
- package/dist/core/entities/TidasSource.js +146 -0
- package/dist/core/entities/TidasSource.js.map +1 -0
- package/dist/core/entities/TidasUnitGroup.d.ts +14 -0
- package/dist/core/entities/TidasUnitGroup.d.ts.map +1 -0
- package/dist/core/entities/TidasUnitGroup.js +177 -0
- package/dist/core/entities/TidasUnitGroup.js.map +1 -0
- package/dist/core/factories/index.d.ts +46 -0
- package/dist/core/factories/index.d.ts.map +1 -0
- package/dist/core/factories/index.js +223 -0
- package/dist/core/factories/index.js.map +1 -0
- package/dist/core/index.d.ts +9 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/index.js +56 -0
- package/dist/core/index.js.map +1 -0
- package/dist/core/zod-factories.d.ts +71 -0
- package/dist/core/zod-factories.d.ts.map +1 -0
- package/dist/core/zod-factories.js +169 -0
- package/dist/core/zod-factories.js.map +1 -0
- package/dist/core/zod-proxy.d.ts +108 -0
- package/dist/core/zod-proxy.d.ts.map +1 -0
- package/dist/core/zod-proxy.js +382 -0
- package/dist/core/zod-proxy.js.map +1 -0
- package/dist/data/bundled-methodologies.json +1259 -0
- package/dist/index.d.ts +33 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +73 -0
- package/dist/index.js.map +1 -0
- package/dist/schemas/index.d.ts +48 -0
- package/dist/schemas/index.d.ts.map +1 -0
- package/dist/schemas/index.js +112 -0
- package/dist/schemas/index.js.map +1 -0
- package/dist/schemas/tidas_contacts.schema.d.ts +124 -0
- package/dist/schemas/tidas_contacts.schema.d.ts.map +1 -0
- package/dist/schemas/tidas_contacts.schema.js +75 -0
- package/dist/schemas/tidas_contacts.schema.js.map +1 -0
- package/dist/schemas/tidas_contacts_category.schema.d.ts +3 -0
- package/dist/schemas/tidas_contacts_category.schema.d.ts.map +1 -0
- package/dist/schemas/tidas_contacts_category.schema.js +53 -0
- package/dist/schemas/tidas_contacts_category.schema.js.map +1 -0
- package/dist/schemas/tidas_data_types.schema.d.ts +34 -0
- package/dist/schemas/tidas_data_types.schema.d.ts.map +1 -0
- package/dist/schemas/tidas_data_types.schema.js +60 -0
- package/dist/schemas/tidas_data_types.schema.js.map +1 -0
- package/dist/schemas/tidas_flowproperties.schema.d.ts +152 -0
- package/dist/schemas/tidas_flowproperties.schema.d.ts.map +1 -0
- package/dist/schemas/tidas_flowproperties.schema.js +88 -0
- package/dist/schemas/tidas_flowproperties.schema.js.map +1 -0
- package/dist/schemas/tidas_flowproperties_category.schema.d.ts +3 -0
- package/dist/schemas/tidas_flowproperties_category.schema.d.ts.map +1 -0
- package/dist/schemas/tidas_flowproperties_category.schema.js +28 -0
- package/dist/schemas/tidas_flowproperties_category.schema.js.map +1 -0
- package/dist/schemas/tidas_flows.schema.d.ts +215 -0
- package/dist/schemas/tidas_flows.schema.d.ts.map +1 -0
- package/dist/schemas/tidas_flows.schema.js +165 -0
- package/dist/schemas/tidas_flows.schema.js.map +1 -0
- package/dist/schemas/tidas_flows_elementary_category.schema.d.ts +3 -0
- package/dist/schemas/tidas_flows_elementary_category.schema.d.ts.map +1 -0
- package/dist/schemas/tidas_flows_elementary_category.schema.js +309 -0
- package/dist/schemas/tidas_flows_elementary_category.schema.js.map +1 -0
- package/dist/schemas/tidas_flows_product_category.schema.d.ts +3 -0
- package/dist/schemas/tidas_flows_product_category.schema.d.ts.map +1 -0
- package/dist/schemas/tidas_flows_product_category.schema.js +28508 -0
- package/dist/schemas/tidas_flows_product_category.schema.js.map +1 -0
- package/dist/schemas/tidas_lciamethods.schema.d.ts +546 -0
- package/dist/schemas/tidas_lciamethods.schema.d.ts.map +1 -0
- package/dist/schemas/tidas_lciamethods.schema.js +513 -0
- package/dist/schemas/tidas_lciamethods.schema.js.map +1 -0
- package/dist/schemas/tidas_lciamethods_category.schema.d.ts +3 -0
- package/dist/schemas/tidas_lciamethods_category.schema.d.ts.map +1 -0
- package/dist/schemas/tidas_lciamethods_category.schema.js +278 -0
- package/dist/schemas/tidas_lciamethods_category.schema.js.map +1 -0
- package/dist/schemas/tidas_lifecyclemodels.schema.d.ts +465 -0
- package/dist/schemas/tidas_lifecyclemodels.schema.d.ts.map +1 -0
- package/dist/schemas/tidas_lifecyclemodels.schema.js +420 -0
- package/dist/schemas/tidas_lifecyclemodels.schema.js.map +1 -0
- package/dist/schemas/tidas_locations_category.schema.d.ts +3 -0
- package/dist/schemas/tidas_locations_category.schema.d.ts.map +1 -0
- package/dist/schemas/tidas_locations_category.schema.js +655 -0
- package/dist/schemas/tidas_locations_category.schema.js.map +1 -0
- package/dist/schemas/tidas_processes.schema.d.ts +626 -0
- package/dist/schemas/tidas_processes.schema.d.ts.map +1 -0
- package/dist/schemas/tidas_processes.schema.js +659 -0
- package/dist/schemas/tidas_processes.schema.js.map +1 -0
- package/dist/schemas/tidas_processes_category.schema.d.ts +3 -0
- package/dist/schemas/tidas_processes_category.schema.d.ts.map +1 -0
- package/dist/schemas/tidas_processes_category.schema.js +4904 -0
- package/dist/schemas/tidas_processes_category.schema.js.map +1 -0
- package/dist/schemas/tidas_sources.schema.d.ts +113 -0
- package/dist/schemas/tidas_sources.schema.d.ts.map +1 -0
- package/dist/schemas/tidas_sources.schema.js +73 -0
- package/dist/schemas/tidas_sources.schema.js.map +1 -0
- package/dist/schemas/tidas_sources_category.schema.d.ts +3 -0
- package/dist/schemas/tidas_sources_category.schema.d.ts.map +1 -0
- package/dist/schemas/tidas_sources_category.schema.js +43 -0
- package/dist/schemas/tidas_sources_category.schema.js.map +1 -0
- package/dist/schemas/tidas_unitgroups.schema.d.ts +140 -0
- package/dist/schemas/tidas_unitgroups.schema.d.ts.map +1 -0
- package/dist/schemas/tidas_unitgroups.schema.js +103 -0
- package/dist/schemas/tidas_unitgroups.schema.js.map +1 -0
- package/dist/schemas/tidas_unitgroups_category.schema.d.ts +3 -0
- package/dist/schemas/tidas_unitgroups_category.schema.d.ts.map +1 -0
- package/dist/schemas/tidas_unitgroups_category.schema.js +28 -0
- package/dist/schemas/tidas_unitgroups_category.schema.js.map +1 -0
- package/dist/services/copilot-service.d.ts +147 -0
- package/dist/services/copilot-service.d.ts.map +1 -0
- package/dist/services/copilot-service.js +259 -0
- package/dist/services/copilot-service.js.map +1 -0
- package/dist/services/index.d.ts +9 -0
- package/dist/services/index.d.ts.map +1 -0
- package/dist/services/index.js +24 -0
- package/dist/services/index.js.map +1 -0
- package/dist/types/index.d.ts +22 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +21 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/multi-lang-types.d.ts +23 -0
- package/dist/types/multi-lang-types.d.ts.map +1 -0
- package/dist/types/multi-lang-types.js +40 -0
- package/dist/types/multi-lang-types.js.map +1 -0
- package/dist/types/tidas_contacts.d.ts +72 -0
- package/dist/types/tidas_contacts.d.ts.map +1 -0
- package/dist/types/tidas_contacts.js +8 -0
- package/dist/types/tidas_contacts.js.map +1 -0
- package/dist/types/tidas_contacts_category.d.ts +43 -0
- package/dist/types/tidas_contacts_category.d.ts.map +1 -0
- package/dist/types/tidas_contacts_category.js +8 -0
- package/dist/types/tidas_contacts_category.js.map +1 -0
- package/dist/types/tidas_data_types.d.ts +116 -0
- package/dist/types/tidas_data_types.d.ts.map +1 -0
- package/dist/types/tidas_data_types.js +8 -0
- package/dist/types/tidas_data_types.js.map +1 -0
- package/dist/types/tidas_flowproperties.d.ts +73 -0
- package/dist/types/tidas_flowproperties.d.ts.map +1 -0
- package/dist/types/tidas_flowproperties.js +8 -0
- package/dist/types/tidas_flowproperties.js.map +1 -0
- package/dist/types/tidas_flowproperties_category.d.ts +23 -0
- package/dist/types/tidas_flowproperties_category.d.ts.map +1 -0
- package/dist/types/tidas_flowproperties_category.js +8 -0
- package/dist/types/tidas_flowproperties_category.js.map +1 -0
- package/dist/types/tidas_flows.d.ts +113 -0
- package/dist/types/tidas_flows.d.ts.map +1 -0
- package/dist/types/tidas_flows.js +8 -0
- package/dist/types/tidas_flows.js.map +1 -0
- package/dist/types/tidas_flows_elementary_category.d.ts +227 -0
- package/dist/types/tidas_flows_elementary_category.d.ts.map +1 -0
- package/dist/types/tidas_flows_elementary_category.js +8 -0
- package/dist/types/tidas_flows_elementary_category.js.map +1 -0
- package/dist/types/tidas_flows_product_category.d.ts +18391 -0
- package/dist/types/tidas_flows_product_category.d.ts.map +1 -0
- package/dist/types/tidas_flows_product_category.js +8 -0
- package/dist/types/tidas_flows_product_category.js.map +1 -0
- package/dist/types/tidas_lciamethods.d.ts +231 -0
- package/dist/types/tidas_lciamethods.d.ts.map +1 -0
- package/dist/types/tidas_lciamethods.js +8 -0
- package/dist/types/tidas_lciamethods.js.map +1 -0
- package/dist/types/tidas_lciamethods_category.d.ts +215 -0
- package/dist/types/tidas_lciamethods_category.d.ts.map +1 -0
- package/dist/types/tidas_lciamethods_category.js +8 -0
- package/dist/types/tidas_lciamethods_category.js.map +1 -0
- package/dist/types/tidas_lifecyclemodels.d.ts +259 -0
- package/dist/types/tidas_lifecyclemodels.d.ts.map +1 -0
- package/dist/types/tidas_lifecyclemodels.js +8 -0
- package/dist/types/tidas_lifecyclemodels.js.map +1 -0
- package/dist/types/tidas_locations_category.d.ts +7 -0
- package/dist/types/tidas_locations_category.d.ts.map +1 -0
- package/dist/types/tidas_locations_category.js +8 -0
- package/dist/types/tidas_locations_category.js.map +1 -0
- package/dist/types/tidas_processes.d.ts +301 -0
- package/dist/types/tidas_processes.d.ts.map +1 -0
- package/dist/types/tidas_processes.js +8 -0
- package/dist/types/tidas_processes.js.map +1 -0
- package/dist/types/tidas_processes_category.d.ts +3327 -0
- package/dist/types/tidas_processes_category.d.ts.map +1 -0
- package/dist/types/tidas_processes_category.js +8 -0
- package/dist/types/tidas_processes_category.js.map +1 -0
- package/dist/types/tidas_sources.d.ts +58 -0
- package/dist/types/tidas_sources.d.ts.map +1 -0
- package/dist/types/tidas_sources.js +8 -0
- package/dist/types/tidas_sources.js.map +1 -0
- package/dist/types/tidas_sources_category.d.ts +35 -0
- package/dist/types/tidas_sources_category.d.ts.map +1 -0
- package/dist/types/tidas_sources_category.js +8 -0
- package/dist/types/tidas_sources_category.js.map +1 -0
- package/dist/types/tidas_unitgroups.d.ts +85 -0
- package/dist/types/tidas_unitgroups.d.ts.map +1 -0
- package/dist/types/tidas_unitgroups.js +8 -0
- package/dist/types/tidas_unitgroups.js.map +1 -0
- package/dist/types/tidas_unitgroups_category.d.ts +23 -0
- package/dist/types/tidas_unitgroups_category.d.ts.map +1 -0
- package/dist/types/tidas_unitgroups_category.js +8 -0
- package/dist/types/tidas_unitgroups_category.js.map +1 -0
- package/dist/utils/diff.d.ts +47 -0
- package/dist/utils/diff.d.ts.map +1 -0
- package/dist/utils/diff.js +263 -0
- package/dist/utils/diff.js.map +1 -0
- package/dist/utils/index.d.ts +7 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +31 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/object-utils.d.ts +47 -0
- package/dist/utils/object-utils.d.ts.map +1 -0
- package/dist/utils/object-utils.js +332 -0
- package/dist/utils/object-utils.js.map +1 -0
- package/package.json +4 -4
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TidasFlowProperty = void 0;
|
|
4
|
+
const TidasEntity_1 = require("../base/TidasEntity");
|
|
5
|
+
const schemas_1 = require("../../schemas");
|
|
6
|
+
const multi_lang_types_1 = require("../../types/multi-lang-types");
|
|
7
|
+
/**
|
|
8
|
+
* TIDAS FlowProperty entity - pure data container
|
|
9
|
+
* Represents flow characteristics (mass, energy, etc.) in LCA with schema validation
|
|
10
|
+
*/
|
|
11
|
+
class TidasFlowProperty extends TidasEntity_1.TidasEntity {
|
|
12
|
+
constructor(initialData, validationConfig) {
|
|
13
|
+
super(schemas_1.FlowPropertySchema, initialData, validationConfig);
|
|
14
|
+
}
|
|
15
|
+
// TypeScript accessor for flowPropertyDataSet - enables intellisense and type checking
|
|
16
|
+
get flowPropertyDataSet() {
|
|
17
|
+
return this._data.flowPropertyDataSet;
|
|
18
|
+
}
|
|
19
|
+
set flowPropertyDataSet(value) {
|
|
20
|
+
this._data.flowPropertyDataSet = value;
|
|
21
|
+
}
|
|
22
|
+
initializeDefaults() {
|
|
23
|
+
// Set required namespace attributes for TIDAS schema compliance
|
|
24
|
+
this.setNestedValue('flowPropertyDataSet.@xmlns', 'http://lca.jrc.it/ILCD/FlowProperty');
|
|
25
|
+
this.setNestedValue('flowPropertyDataSet.@xmlns:common', 'http://lca.jrc.it/ILCD/Common');
|
|
26
|
+
this.setNestedValue('flowPropertyDataSet.@xmlns:xsi', 'http://www.w3.org/2001/XMLSchema-instance');
|
|
27
|
+
this.setNestedValue('flowPropertyDataSet.@version', '1.1');
|
|
28
|
+
this.setNestedValue('flowPropertyDataSet.@xsi:schemaLocation', 'http://lca.jrc.it/ILCD/FlowProperty ../../schemas/ILCD_FlowPropertyDataSet.xsd');
|
|
29
|
+
// Ensure required nested structure exists
|
|
30
|
+
this.ensureNestedStructure([
|
|
31
|
+
'flowPropertyDataSet',
|
|
32
|
+
'flowPropertyDataSet.flowPropertiesInformation',
|
|
33
|
+
'flowPropertyDataSet.flowPropertiesInformation.dataSetInformation',
|
|
34
|
+
'flowPropertyDataSet.flowPropertiesInformation.dataSetInformation.classificationInformation',
|
|
35
|
+
'flowPropertyDataSet.flowPropertiesInformation.quantitativeReference',
|
|
36
|
+
'flowPropertyDataSet.modellingAndValidation',
|
|
37
|
+
'flowPropertyDataSet.modellingAndValidation.complianceDeclarations',
|
|
38
|
+
'flowPropertyDataSet.administrativeInformation',
|
|
39
|
+
'flowPropertyDataSet.administrativeInformation.dataEntryBy',
|
|
40
|
+
'flowPropertyDataSet.administrativeInformation.publicationAndOwnership',
|
|
41
|
+
]);
|
|
42
|
+
// Set required fields with default values if they don't exist
|
|
43
|
+
if (!this.getNestedValue('flowPropertyDataSet.flowPropertiesInformation.dataSetInformation.common:UUID')) {
|
|
44
|
+
this.setNestedValue('flowPropertyDataSet.flowPropertiesInformation.dataSetInformation.common:UUID', crypto.randomUUID());
|
|
45
|
+
}
|
|
46
|
+
if (!this.getNestedValue('flowPropertyDataSet.administrativeInformation.dataEntryBy.common:timeStamp')) {
|
|
47
|
+
this.setNestedValue('flowPropertyDataSet.administrativeInformation.dataEntryBy.common:timeStamp', new Date().toISOString());
|
|
48
|
+
}
|
|
49
|
+
// if (
|
|
50
|
+
// !this.getNestedValue(
|
|
51
|
+
// 'flowPropertyDataSet.administrativeInformation.publicationAndOwnership.common:dataSetVersion'
|
|
52
|
+
// )
|
|
53
|
+
// ) {
|
|
54
|
+
// this.setNestedValue(
|
|
55
|
+
// 'flowPropertyDataSet.administrativeInformation.publicationAndOwnership.common:dataSetVersion',
|
|
56
|
+
// '1.0.0'
|
|
57
|
+
// );
|
|
58
|
+
// }
|
|
59
|
+
// Set required reference fields with default values
|
|
60
|
+
// if (
|
|
61
|
+
// !this.getNestedValue(
|
|
62
|
+
// 'flowPropertyDataSet.administrativeInformation.dataEntryBy.common:referenceToDataSetFormat'
|
|
63
|
+
// )
|
|
64
|
+
// ) {
|
|
65
|
+
// this.setNestedValue(
|
|
66
|
+
// 'flowPropertyDataSet.administrativeInformation.dataEntryBy.common:referenceToDataSetFormat',
|
|
67
|
+
// {
|
|
68
|
+
// '@type': 'source data set',
|
|
69
|
+
// '@refObjectId': '00000000-0000-0000-0000-000000000000',
|
|
70
|
+
// '@version': '00.00.000',
|
|
71
|
+
// '@uri': '',
|
|
72
|
+
// 'common:shortDescription': new MultiLangArray(),
|
|
73
|
+
// }
|
|
74
|
+
// );
|
|
75
|
+
// }
|
|
76
|
+
// if (
|
|
77
|
+
// !this.getNestedValue(
|
|
78
|
+
// 'flowPropertyDataSet.administrativeInformation.publicationAndOwnership.common:referenceToOwnershipOfDataSet'
|
|
79
|
+
// )
|
|
80
|
+
// ) {
|
|
81
|
+
// this.setNestedValue(
|
|
82
|
+
// 'flowPropertyDataSet.administrativeInformation.publicationAndOwnership.common:referenceToOwnershipOfDataSet',
|
|
83
|
+
// {
|
|
84
|
+
// '@type': 'contact data set',
|
|
85
|
+
// '@refObjectId': this.getNestedValue(
|
|
86
|
+
// 'flowPropertyDataSet.flowPropertiesInformation.dataSetInformation.common:UUID'
|
|
87
|
+
// ),
|
|
88
|
+
// '@version': '00.00.000',
|
|
89
|
+
// '@uri': '',
|
|
90
|
+
// 'common:shortDescription': new MultiLangArray(),
|
|
91
|
+
// }
|
|
92
|
+
// );
|
|
93
|
+
// }
|
|
94
|
+
// Initialize empty arrays for multi-language text fields
|
|
95
|
+
if (!this.getNestedValue('flowPropertyDataSet.flowPropertiesInformation.dataSetInformation.common:name')) {
|
|
96
|
+
this.setNestedValue('flowPropertyDataSet.flowPropertiesInformation.dataSetInformation.common:name', new multi_lang_types_1.MultiLangArray());
|
|
97
|
+
}
|
|
98
|
+
if (!this.getNestedValue('flowPropertyDataSet.flowPropertiesInformation.dataSetInformation.common:synonyms')) {
|
|
99
|
+
this.setNestedValue('flowPropertyDataSet.flowPropertiesInformation.dataSetInformation.common:synonyms', new multi_lang_types_1.MultiLangArray());
|
|
100
|
+
}
|
|
101
|
+
if (!this.getNestedValue('flowPropertyDataSet.flowPropertiesInformation.dataSetInformation.common:generalComment')) {
|
|
102
|
+
this.setNestedValue('flowPropertyDataSet.flowPropertiesInformation.dataSetInformation.common:generalComment', new multi_lang_types_1.MultiLangArray());
|
|
103
|
+
}
|
|
104
|
+
// Initialize required classification structure
|
|
105
|
+
// if (
|
|
106
|
+
// !this.getNestedValue(
|
|
107
|
+
// 'flowPropertyDataSet.flowPropertiesInformation.dataSetInformation.classificationInformation.common:classification'
|
|
108
|
+
// )
|
|
109
|
+
// ) {
|
|
110
|
+
// this.setNestedValue(
|
|
111
|
+
// 'flowPropertyDataSet.flowPropertiesInformation.dataSetInformation.classificationInformation.common:classification',
|
|
112
|
+
// {
|
|
113
|
+
// 'common:class': {
|
|
114
|
+
// '@level': '0',
|
|
115
|
+
// '@classId': '00000000-0000-0000-0000-000000000000',
|
|
116
|
+
// '#text': 'General flow property',
|
|
117
|
+
// },
|
|
118
|
+
// }
|
|
119
|
+
// );
|
|
120
|
+
// }
|
|
121
|
+
// Set required quantitative reference to unit group
|
|
122
|
+
// if (
|
|
123
|
+
// !this.getNestedValue(
|
|
124
|
+
// 'flowPropertyDataSet.flowPropertiesInformation.quantitativeReference.referenceToReferenceUnitGroup'
|
|
125
|
+
// )
|
|
126
|
+
// ) {
|
|
127
|
+
// this.setNestedValue(
|
|
128
|
+
// 'flowPropertyDataSet.flowPropertiesInformation.quantitativeReference.referenceToReferenceUnitGroup',
|
|
129
|
+
// {
|
|
130
|
+
// '@type': 'unit group data set',
|
|
131
|
+
// '@refObjectId': '00000000-0000-0000-0000-000000000000',
|
|
132
|
+
// '@version': '00.00.000',
|
|
133
|
+
// '@uri': '',
|
|
134
|
+
// 'common:shortDescription': new MultiLangArray(),
|
|
135
|
+
// }
|
|
136
|
+
// );
|
|
137
|
+
// }
|
|
138
|
+
// Set default copyright protection
|
|
139
|
+
// if (
|
|
140
|
+
// !this.getNestedValue(
|
|
141
|
+
// 'flowPropertyDataSet.administrativeInformation.publicationAndOwnership.common:copyright'
|
|
142
|
+
// )
|
|
143
|
+
// ) {
|
|
144
|
+
// this.setNestedValue(
|
|
145
|
+
// 'flowPropertyDataSet.administrativeInformation.publicationAndOwnership.common:copyright',
|
|
146
|
+
// false
|
|
147
|
+
// );
|
|
148
|
+
// }
|
|
149
|
+
// Set default access restrictions
|
|
150
|
+
if (!this.getNestedValue('flowPropertyDataSet.administrativeInformation.publicationAndOwnership.common:accessRestrictions')) {
|
|
151
|
+
this.setNestedValue('flowPropertyDataSet.administrativeInformation.publicationAndOwnership.common:accessRestrictions', []);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
exports.TidasFlowProperty = TidasFlowProperty;
|
|
156
|
+
//# sourceMappingURL=TidasFlowProperty.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TidasFlowProperty.js","sourceRoot":"","sources":["../../../src/core/entities/TidasFlowProperty.ts"],"names":[],"mappings":";;;AAAA,qDAAkD;AAClD,2CAAmD;AAGnD,mEAA8D;AAE9D;;;GAGG;AACH,MAAa,iBAAkB,SAAQ,yBAAyB;IAC9D,YACE,WAAmC,EACnC,gBAA4C;QAE5C,KAAK,CAAC,4BAAyB,EAAE,WAAW,EAAE,gBAAgB,CAAC,CAAC;IAClE,CAAC;IAED,uFAAuF;IACvF,IAAI,mBAAmB;QACrB,OAAQ,IAAI,CAAC,KAAsB,CAAC,mBAAmB,CAAC;IAC1D,CAAC;IAED,IAAI,mBAAmB,CAAC,KAA0C;QAC/D,IAAI,CAAC,KAAsB,CAAC,mBAAmB,GAAG,KAAK,CAAC;IAC3D,CAAC;IAES,kBAAkB;QAC1B,gEAAgE;QAChE,IAAI,CAAC,cAAc,CACjB,4BAA4B,EAC5B,qCAAqC,CACtC,CAAC;QACF,IAAI,CAAC,cAAc,CACjB,mCAAmC,EACnC,+BAA+B,CAChC,CAAC;QACF,IAAI,CAAC,cAAc,CACjB,gCAAgC,EAChC,2CAA2C,CAC5C,CA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,iGAAiG,EACjG,EAAE,CACH,CAAC;QACJ,CAAC;IACH,CAAC;CACF;AAxND,8CAwNC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { TidasEntity } from '../base/TidasEntity';
|
|
2
|
+
import { LCIAMethod } from '../../types';
|
|
3
|
+
import { ValidationConfig } from '../config/ValidationConfig';
|
|
4
|
+
/**
|
|
5
|
+
* TIDAS LCIAMethod entity - pure data container
|
|
6
|
+
* Represents impact assessment methods in LCA with schema validation
|
|
7
|
+
*/
|
|
8
|
+
export declare class TidasLCIAMethod extends TidasEntity<LCIAMethod> {
|
|
9
|
+
constructor(initialData?: Partial<LCIAMethod>, validationConfig?: Partial<ValidationConfig>);
|
|
10
|
+
get LCIAMethodDataSet(): LCIAMethod['LCIAMethodDataSet'];
|
|
11
|
+
set LCIAMethodDataSet(value: LCIAMethod['LCIAMethodDataSet']);
|
|
12
|
+
protected initializeDefaults(): void;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=TidasLCIAMethod.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TidasLCIAMethod.d.ts","sourceRoot":"","sources":["../../../src/core/entities/TidasLCIAMethod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAElD,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAG9D;;;GAGG;AACH,qBAAa,eAAgB,SAAQ,WAAW,CAAC,UAAU,CAAC;gBAExD,WAAW,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,EACjC,gBAAgB,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC;IAM9C,IAAI,iBAAiB,IAAI,UAAU,CAAC,mBAAmB,CAAC,CAEvD;IAED,IAAI,iBAAiB,CAAC,KAAK,EAAE,UAAU,CAAC,mBAAmB,CAAC,EAE3D;IAED,SAAS,CAAC,kBAAkB,IAAI,IAAI;CAsPrC"}
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TidasLCIAMethod = void 0;
|
|
4
|
+
const TidasEntity_1 = require("../base/TidasEntity");
|
|
5
|
+
const schemas_1 = require("../../schemas");
|
|
6
|
+
const multi_lang_types_1 = require("../../types/multi-lang-types");
|
|
7
|
+
/**
|
|
8
|
+
* TIDAS LCIAMethod entity - pure data container
|
|
9
|
+
* Represents impact assessment methods in LCA with schema validation
|
|
10
|
+
*/
|
|
11
|
+
class TidasLCIAMethod extends TidasEntity_1.TidasEntity {
|
|
12
|
+
constructor(initialData, validationConfig) {
|
|
13
|
+
super(schemas_1.LCIAMethodSchema, initialData, validationConfig);
|
|
14
|
+
}
|
|
15
|
+
// TypeScript accessor for LCIAMethodDataSet - enables intellisense and type checking
|
|
16
|
+
get LCIAMethodDataSet() {
|
|
17
|
+
return this._data.LCIAMethodDataSet;
|
|
18
|
+
}
|
|
19
|
+
set LCIAMethodDataSet(value) {
|
|
20
|
+
this._data.LCIAMethodDataSet = value;
|
|
21
|
+
}
|
|
22
|
+
initializeDefaults() {
|
|
23
|
+
// Set required namespace attributes for TIDAS schema compliance
|
|
24
|
+
this.setNestedValue('LCIAMethodDataSet.@xmlns', 'http://lca.jrc.it/ILCD/LCIAMethod');
|
|
25
|
+
this.setNestedValue('LCIAMethodDataSet.@xmlns:common', 'http://lca.jrc.it/ILCD/Common');
|
|
26
|
+
this.setNestedValue('LCIAMethodDataSet.@xmlns:xsi', 'http://www.w3.org/2001/XMLSchema-instance');
|
|
27
|
+
this.setNestedValue('LCIAMethodDataSet.@version', '1.1');
|
|
28
|
+
this.setNestedValue('LCIAMethodDataSet.@xsi:schemaLocation', 'http://lca.jrc.it/ILCD/LCIAMethod ../../schemas/ILCD_LCIAMethodDataSet.xsd');
|
|
29
|
+
// Ensure required nested structure exists
|
|
30
|
+
this.ensureNestedStructure([
|
|
31
|
+
'LCIAMethodDataSet',
|
|
32
|
+
'LCIAMethodDataSet.LCIAMethodInformation',
|
|
33
|
+
'LCIAMethodDataSet.LCIAMethodInformation.dataSetInformation',
|
|
34
|
+
'LCIAMethodDataSet.LCIAMethodInformation.dataSetInformation.classificationInformation',
|
|
35
|
+
'LCIAMethodDataSet.LCIAMethodInformation.quantitativeReference',
|
|
36
|
+
'LCIAMethodDataSet.modellingAndValidation',
|
|
37
|
+
'LCIAMethodDataSet.modellingAndValidation.complianceDeclarations',
|
|
38
|
+
'LCIAMethodDataSet.administrativeInformation',
|
|
39
|
+
'LCIAMethodDataSet.administrativeInformation.dataEntryBy',
|
|
40
|
+
'LCIAMethodDataSet.administrativeInformation.publicationAndOwnership',
|
|
41
|
+
'LCIAMethodDataSet.characterisationFactors',
|
|
42
|
+
]);
|
|
43
|
+
// Set required fields with default values if they don't exist
|
|
44
|
+
if (!this.getNestedValue('LCIAMethodDataSet.LCIAMethodInformation.dataSetInformation.common:UUID')) {
|
|
45
|
+
this.setNestedValue('LCIAMethodDataSet.LCIAMethodInformation.dataSetInformation.common:UUID', crypto.randomUUID());
|
|
46
|
+
}
|
|
47
|
+
if (!this.getNestedValue('LCIAMethodDataSet.administrativeInformation.dataEntryBy.common:timeStamp')) {
|
|
48
|
+
this.setNestedValue('LCIAMethodDataSet.administrativeInformation.dataEntryBy.common:timeStamp', new Date().toISOString());
|
|
49
|
+
}
|
|
50
|
+
// if (
|
|
51
|
+
// !this.getNestedValue(
|
|
52
|
+
// 'LCIAMethodDataSet.administrativeInformation.publicationAndOwnership.common:dataSetVersion'
|
|
53
|
+
// )
|
|
54
|
+
// ) {
|
|
55
|
+
// this.setNestedValue(
|
|
56
|
+
// 'LCIAMethodDataSet.administrativeInformation.publicationAndOwnership.common:dataSetVersion',
|
|
57
|
+
// '1.0.0'
|
|
58
|
+
// );
|
|
59
|
+
// }
|
|
60
|
+
// Set required reference fields with default values
|
|
61
|
+
// if (
|
|
62
|
+
// !this.getNestedValue(
|
|
63
|
+
// 'LCIAMethodDataSet.administrativeInformation.dataEntryBy.common:referenceToDataSetFormat'
|
|
64
|
+
// )
|
|
65
|
+
// ) {
|
|
66
|
+
// this.setNestedValue(
|
|
67
|
+
// 'LCIAMethodDataSet.administrativeInformation.dataEntryBy.common:referenceToDataSetFormat',
|
|
68
|
+
// {
|
|
69
|
+
// '@type': 'source data set',
|
|
70
|
+
// '@refObjectId': '00000000-0000-0000-0000-000000000000',
|
|
71
|
+
// '@version': '00.00.000',
|
|
72
|
+
// '@uri': '',
|
|
73
|
+
// 'common:shortDescription': new MultiLangArray(),
|
|
74
|
+
// }
|
|
75
|
+
// );
|
|
76
|
+
// }
|
|
77
|
+
// if (
|
|
78
|
+
// !this.getNestedValue(
|
|
79
|
+
// 'LCIAMethodDataSet.administrativeInformation.publicationAndOwnership.common:referenceToOwnershipOfDataSet'
|
|
80
|
+
// )
|
|
81
|
+
// ) {
|
|
82
|
+
// this.setNestedValue(
|
|
83
|
+
// 'LCIAMethodDataSet.administrativeInformation.publicationAndOwnership.common:referenceToOwnershipOfDataSet',
|
|
84
|
+
// {
|
|
85
|
+
// '@type': 'contact data set',
|
|
86
|
+
// '@refObjectId': this.getNestedValue(
|
|
87
|
+
// 'LCIAMethodDataSet.LCIAMethodInformation.dataSetInformation.common:UUID'
|
|
88
|
+
// ),
|
|
89
|
+
// '@version': '00.00.000',
|
|
90
|
+
// '@uri': '',
|
|
91
|
+
// 'common:shortDescription': new MultiLangArray(),
|
|
92
|
+
// }
|
|
93
|
+
// );
|
|
94
|
+
// }
|
|
95
|
+
// Initialize empty arrays for multi-language text fields
|
|
96
|
+
if (!this.getNestedValue('LCIAMethodDataSet.LCIAMethodInformation.dataSetInformation.common:name')) {
|
|
97
|
+
this.setNestedValue('LCIAMethodDataSet.LCIAMethodInformation.dataSetInformation.common:name', new multi_lang_types_1.MultiLangArray());
|
|
98
|
+
}
|
|
99
|
+
if (!this.getNestedValue('LCIAMethodDataSet.LCIAMethodInformation.dataSetInformation.common:shortName')) {
|
|
100
|
+
this.setNestedValue('LCIAMethodDataSet.LCIAMethodInformation.dataSetInformation.common:shortName', new multi_lang_types_1.MultiLangArray());
|
|
101
|
+
}
|
|
102
|
+
if (!this.getNestedValue('LCIAMethodDataSet.LCIAMethodInformation.dataSetInformation.common:synonyms')) {
|
|
103
|
+
this.setNestedValue('LCIAMethodDataSet.LCIAMethodInformation.dataSetInformation.common:synonyms', new multi_lang_types_1.MultiLangArray());
|
|
104
|
+
}
|
|
105
|
+
if (!this.getNestedValue('LCIAMethodDataSet.LCIAMethodInformation.dataSetInformation.common:generalComment')) {
|
|
106
|
+
this.setNestedValue('LCIAMethodDataSet.LCIAMethodInformation.dataSetInformation.common:generalComment', new multi_lang_types_1.MultiLangArray());
|
|
107
|
+
}
|
|
108
|
+
// Initialize required classification structure
|
|
109
|
+
// if (
|
|
110
|
+
// !this.getNestedValue(
|
|
111
|
+
// 'LCIAMethodDataSet.LCIAMethodInformation.dataSetInformation.classificationInformation.common:classification'
|
|
112
|
+
// )
|
|
113
|
+
// ) {
|
|
114
|
+
// this.setNestedValue(
|
|
115
|
+
// 'LCIAMethodDataSet.LCIAMethodInformation.dataSetInformation.classificationInformation.common:classification',
|
|
116
|
+
// {
|
|
117
|
+
// 'common:class': {
|
|
118
|
+
// '@level': '0',
|
|
119
|
+
// '@classId': '00000000-0000-0000-0000-000000000000',
|
|
120
|
+
// '#text': 'General LCIA method',
|
|
121
|
+
// },
|
|
122
|
+
// }
|
|
123
|
+
// );
|
|
124
|
+
// }
|
|
125
|
+
// Initialize characterisation factors array
|
|
126
|
+
if (!this.getNestedValue('LCIAMethodDataSet.characterisationFactors')) {
|
|
127
|
+
this.setNestedValue('LCIAMethodDataSet.characterisationFactors', []);
|
|
128
|
+
}
|
|
129
|
+
// Set default method type
|
|
130
|
+
// if (
|
|
131
|
+
// !this.getNestedValue(
|
|
132
|
+
// 'LCIAMethodDataSet.LCIAMethodInformation.dataSetInformation.typeOfDataSet'
|
|
133
|
+
// )
|
|
134
|
+
// ) {
|
|
135
|
+
// this.setNestedValue(
|
|
136
|
+
// 'LCIAMethodDataSet.LCIAMethodInformation.dataSetInformation.typeOfDataSet',
|
|
137
|
+
// 'Mid-point indicator'
|
|
138
|
+
// );
|
|
139
|
+
// }
|
|
140
|
+
// Set default impact category
|
|
141
|
+
if (!this.getNestedValue('LCIAMethodDataSet.LCIAMethodInformation.dataSetInformation.impactCategory')) {
|
|
142
|
+
this.setNestedValue('LCIAMethodDataSet.LCIAMethodInformation.dataSetInformation.impactCategory', new multi_lang_types_1.MultiLangArray());
|
|
143
|
+
}
|
|
144
|
+
// Set default area of protection
|
|
145
|
+
if (!this.getNestedValue('LCIAMethodDataSet.LCIAMethodInformation.dataSetInformation.areaOfProtection')) {
|
|
146
|
+
this.setNestedValue('LCIAMethodDataSet.LCIAMethodInformation.dataSetInformation.areaOfProtection', new multi_lang_types_1.MultiLangArray());
|
|
147
|
+
}
|
|
148
|
+
// Set reference quantity
|
|
149
|
+
// if (
|
|
150
|
+
// !this.getNestedValue(
|
|
151
|
+
// 'LCIAMethodDataSet.LCIAMethodInformation.quantitativeReference.referenceQuantity'
|
|
152
|
+
// )
|
|
153
|
+
// ) {
|
|
154
|
+
// this.setNestedValue(
|
|
155
|
+
// 'LCIAMethodDataSet.LCIAMethodInformation.quantitativeReference.referenceQuantity',
|
|
156
|
+
// '0'
|
|
157
|
+
// );
|
|
158
|
+
// }
|
|
159
|
+
// Set default copyright protection
|
|
160
|
+
// if (
|
|
161
|
+
// !this.getNestedValue(
|
|
162
|
+
// 'LCIAMethodDataSet.administrativeInformation.publicationAndOwnership.common:copyright'
|
|
163
|
+
// )
|
|
164
|
+
// ) {
|
|
165
|
+
// this.setNestedValue(
|
|
166
|
+
// 'LCIAMethodDataSet.administrativeInformation.publicationAndOwnership.common:copyright',
|
|
167
|
+
// false
|
|
168
|
+
// );
|
|
169
|
+
// }
|
|
170
|
+
// Set default access restrictions
|
|
171
|
+
if (!this.getNestedValue('LCIAMethodDataSet.administrativeInformation.publicationAndOwnership.common:accessRestrictions')) {
|
|
172
|
+
this.setNestedValue('LCIAMethodDataSet.administrativeInformation.publicationAndOwnership.common:accessRestrictions', []);
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
exports.TidasLCIAMethod = TidasLCIAMethod;
|
|
177
|
+
//# sourceMappingURL=TidasLCIAMethod.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TidasLCIAMethod.js","sourceRoot":"","sources":["../../../src/core/entities/TidasLCIAMethod.ts"],"names":[],"mappings":";;;AAAA,qDAAkD;AAClD,2CAAiD;AAGjD,mEAA8D;AAE9D;;;GAGG;AACH,MAAa,eAAgB,SAAQ,yBAAuB;IAC1D,YACE,WAAiC,EACjC,gBAA4C;QAE5C,KAAK,CAAC,0BAAuB,EAAE,WAAW,EAAE,gBAAgB,CAAC,CAAC;IAChE,CAAC;IAED,qFAAqF;IACrF,IAAI,iBAAiB;QACnB,OAAQ,IAAI,CAAC,KAAoB,CAAC,iBAAiB,CAAC;IACtD,CAAC;IAED,IAAI,iBAAiB,CAAC,KAAsC;QACzD,IAAI,CAAC,KAAoB,CAAC,iBAAiB,GAAG,KAAK,CAAC;IACvD,CAAC;IAES,kBAAkB;QAC1B,gEAAgE;QAChE,IAAI,CAAC,cAAc,CACjB,0BAA0B,EAC1B,mCAAmC,CACpC,CAAC;QACF,IAAI,CAAC,cAAc,CACjB,iCAAiC,EACjC,+BAA+B,CAChC,CAAC;QACF,IAAI,CAAC,cAAc,CACjB,8BAA8B,EAC9B,2CAA2C,CAC5C,CAAC;QACF,IAAI,CAAC,cAAc,CAAC,4BAA4B,EAAE,KAAK,CAAC,CAAC;QACzD,IAAI,CAAC,cAAc,CACjB,uCAAuC,EACvC,4EAA4E,CAC7E,CAAC;QAEF,0CAA0C;QAC1C,IAAI,CAAC,qBAAqB,CAAC;YACzB,mBAAmB;YACnB,yC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cAAc,CAClB,6EAA6E,CAC9E,EACD,CAAC;YACD,IAAI,CAAC,cAAc,CACjB,6EAA6E,EAC7E,IAAI,iCAAc,EAAE,CACrB,CAAC;QACJ,CAAC;QAED,yBAAyB;QACzB,OAAO;QACP,0BAA0B;QAC1B,wFAAwF;QACxF,MAAM;QACN,MAAM;QACN,yBAAyB;QACzB,yFAAyF;QACzF,UAAU;QACV,OAAO;QACP,IAAI;QAEJ,mCAAmC;QACnC,OAAO;QACP,0BAA0B;QAC1B,6FAA6F;QAC7F,MAAM;QACN,MAAM;QACN,yBAAyB;QACzB,8FAA8F;QAC9F,YAAY;QACZ,OAAO;QACP,IAAI;QAEJ,kCAAkC;QAClC,IACE,CAAC,IAAI,CAAC,cAAc,CAClB,+FAA+F,CAChG,EACD,CAAC;YACD,IAAI,CAAC,cAAc,CACjB,+FAA+F,EAC/F,EAAE,CACH,CAAC;QACJ,CAAC;IACH,CAAC;CACF;AAvQD,0CAuQC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { TidasEntity } from '../base/TidasEntity';
|
|
2
|
+
import { LifeCycleModel } from '../../types';
|
|
3
|
+
import { ValidationConfig } from '../config/ValidationConfig';
|
|
4
|
+
/**
|
|
5
|
+
* TIDAS LifeCycleModel entity - pure data container
|
|
6
|
+
* Represents system models in LCA with schema validation
|
|
7
|
+
*/
|
|
8
|
+
export declare class TidasLifeCycleModel extends TidasEntity<LifeCycleModel> {
|
|
9
|
+
constructor(initialData?: Partial<LifeCycleModel>, validationConfig?: Partial<ValidationConfig>);
|
|
10
|
+
get lifeCycleModelDataSet(): LifeCycleModel['lifeCycleModelDataSet'];
|
|
11
|
+
set lifeCycleModelDataSet(value: LifeCycleModel['lifeCycleModelDataSet']);
|
|
12
|
+
protected initializeDefaults(): void;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=TidasLifeCycleModel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TidasLifeCycleModel.d.ts","sourceRoot":"","sources":["../../../src/core/entities/TidasLifeCycleModel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAElD,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAG9D;;;GAGG;AACH,qBAAa,mBAAoB,SAAQ,WAAW,CAAC,cAAc,CAAC;gBAEhE,WAAW,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,EACrC,gBAAgB,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC;IAM9C,IAAI,qBAAqB,IAAI,cAAc,CAAC,uBAAuB,CAAC,CAEnE;IAED,IAAI,qBAAqB,CAAC,KAAK,EAAE,cAAc,CAAC,uBAAuB,CAAC,EAEvE;IAED,SAAS,CAAC,kBAAkB,IAAI,IAAI;CA8NrC"}
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TidasLifeCycleModel = void 0;
|
|
4
|
+
const TidasEntity_1 = require("../base/TidasEntity");
|
|
5
|
+
const schemas_1 = require("../../schemas");
|
|
6
|
+
const multi_lang_types_1 = require("../../types/multi-lang-types");
|
|
7
|
+
/**
|
|
8
|
+
* TIDAS LifeCycleModel entity - pure data container
|
|
9
|
+
* Represents system models in LCA with schema validation
|
|
10
|
+
*/
|
|
11
|
+
class TidasLifeCycleModel extends TidasEntity_1.TidasEntity {
|
|
12
|
+
constructor(initialData, validationConfig) {
|
|
13
|
+
super(schemas_1.LifeCycleModelSchema, initialData, validationConfig);
|
|
14
|
+
}
|
|
15
|
+
// TypeScript accessor for lifeCycleModelDataSet - enables intellisense and type checking
|
|
16
|
+
get lifeCycleModelDataSet() {
|
|
17
|
+
return this._data.lifeCycleModelDataSet;
|
|
18
|
+
}
|
|
19
|
+
set lifeCycleModelDataSet(value) {
|
|
20
|
+
this._data.lifeCycleModelDataSet = value;
|
|
21
|
+
}
|
|
22
|
+
initializeDefaults() {
|
|
23
|
+
// Set required namespace attributes for TIDAS schema compliance
|
|
24
|
+
this.setNestedValue('lifeCycleModelDataSet.@xmlns', 'http://lca.jrc.it/ILCD/LifeCycleModel');
|
|
25
|
+
this.setNestedValue('lifeCycleModelDataSet.@xmlns:common', 'http://lca.jrc.it/ILCD/Common');
|
|
26
|
+
this.setNestedValue('lifeCycleModelDataSet.@xmlns:xsi', 'http://www.w3.org/2001/XMLSchema-instance');
|
|
27
|
+
this.setNestedValue('lifeCycleModelDataSet.@version', '1.1');
|
|
28
|
+
this.setNestedValue('lifeCycleModelDataSet.@xsi:schemaLocation', 'http://lca.jrc.it/ILCD/LifeCycleModel ../../schemas/ILCD_LifeCycleModelDataSet.xsd');
|
|
29
|
+
// Ensure required nested structure exists
|
|
30
|
+
this.ensureNestedStructure([
|
|
31
|
+
'lifeCycleModelDataSet',
|
|
32
|
+
'lifeCycleModelDataSet.lifeCycleModelInformation',
|
|
33
|
+
'lifeCycleModelDataSet.lifeCycleModelInformation.dataSetInformation',
|
|
34
|
+
'lifeCycleModelDataSet.lifeCycleModelInformation.dataSetInformation.classificationInformation',
|
|
35
|
+
'lifeCycleModelDataSet.lifeCycleModelInformation.quantitativeReference',
|
|
36
|
+
'lifeCycleModelDataSet.modellingAndValidation',
|
|
37
|
+
'lifeCycleModelDataSet.modellingAndValidation.complianceDeclarations',
|
|
38
|
+
'lifeCycleModelDataSet.administrativeInformation',
|
|
39
|
+
'lifeCycleModelDataSet.administrativeInformation.dataEntryBy',
|
|
40
|
+
'lifeCycleModelDataSet.administrativeInformation.publicationAndOwnership',
|
|
41
|
+
'lifeCycleModelDataSet.technology',
|
|
42
|
+
]);
|
|
43
|
+
// Set required fields with default values if they don't exist
|
|
44
|
+
if (!this.getNestedValue('lifeCycleModelDataSet.lifeCycleModelInformation.dataSetInformation.common:UUID')) {
|
|
45
|
+
this.setNestedValue('lifeCycleModelDataSet.lifeCycleModelInformation.dataSetInformation.common:UUID', crypto.randomUUID());
|
|
46
|
+
}
|
|
47
|
+
if (!this.getNestedValue('lifeCycleModelDataSet.administrativeInformation.dataEntryBy.common:timeStamp')) {
|
|
48
|
+
this.setNestedValue('lifeCycleModelDataSet.administrativeInformation.dataEntryBy.common:timeStamp', new Date().toISOString());
|
|
49
|
+
}
|
|
50
|
+
// if (
|
|
51
|
+
// !this.getNestedValue(
|
|
52
|
+
// 'lifeCycleModelDataSet.administrativeInformation.publicationAndOwnership.common:dataSetVersion'
|
|
53
|
+
// )
|
|
54
|
+
// ) {
|
|
55
|
+
// this.setNestedValue(
|
|
56
|
+
// 'lifeCycleModelDataSet.administrativeInformation.publicationAndOwnership.common:dataSetVersion',
|
|
57
|
+
// '1.0.0'
|
|
58
|
+
// );
|
|
59
|
+
// }
|
|
60
|
+
// Set required reference fields with default values
|
|
61
|
+
// if (
|
|
62
|
+
// !this.getNestedValue(
|
|
63
|
+
// 'lifeCycleModelDataSet.administrativeInformation.dataEntryBy.common:referenceToDataSetFormat'
|
|
64
|
+
// )
|
|
65
|
+
// ) {
|
|
66
|
+
// this.setNestedValue(
|
|
67
|
+
// 'lifeCycleModelDataSet.administrativeInformation.dataEntryBy.common:referenceToDataSetFormat',
|
|
68
|
+
// {
|
|
69
|
+
// '@type': 'source data set',
|
|
70
|
+
// '@refObjectId': '00000000-0000-0000-0000-000000000000',
|
|
71
|
+
// '@version': '00.00.000',
|
|
72
|
+
// '@uri': '',
|
|
73
|
+
// 'common:shortDescription': new MultiLangArray(),
|
|
74
|
+
// }
|
|
75
|
+
// );
|
|
76
|
+
// }
|
|
77
|
+
// if (
|
|
78
|
+
// !this.getNestedValue(
|
|
79
|
+
// 'lifeCycleModelDataSet.administrativeInformation.publicationAndOwnership.common:referenceToOwnershipOfDataSet'
|
|
80
|
+
// )
|
|
81
|
+
// ) {
|
|
82
|
+
// this.setNestedValue(
|
|
83
|
+
// 'lifeCycleModelDataSet.administrativeInformation.publicationAndOwnership.common:referenceToOwnershipOfDataSet',
|
|
84
|
+
// {
|
|
85
|
+
// '@type': 'contact data set',
|
|
86
|
+
// '@refObjectId': this.getNestedValue(
|
|
87
|
+
// 'lifeCycleModelDataSet.lifeCycleModelInformation.dataSetInformation.common:UUID'
|
|
88
|
+
// ),
|
|
89
|
+
// '@version': '00.00.000',
|
|
90
|
+
// '@uri': '',
|
|
91
|
+
// 'common:shortDescription': new MultiLangArray(),
|
|
92
|
+
// }
|
|
93
|
+
// );
|
|
94
|
+
// }
|
|
95
|
+
// Initialize empty arrays for multi-language text fields
|
|
96
|
+
if (!this.getNestedValue('lifeCycleModelDataSet.lifeCycleModelInformation.dataSetInformation.common:name')) {
|
|
97
|
+
this.setNestedValue('lifeCycleModelDataSet.lifeCycleModelInformation.dataSetInformation.common:name', new multi_lang_types_1.MultiLangArray());
|
|
98
|
+
}
|
|
99
|
+
if (!this.getNestedValue('lifeCycleModelDataSet.lifeCycleModelInformation.dataSetInformation.common:shortName')) {
|
|
100
|
+
this.setNestedValue('lifeCycleModelDataSet.lifeCycleModelInformation.dataSetInformation.common:shortName', new multi_lang_types_1.MultiLangArray());
|
|
101
|
+
}
|
|
102
|
+
if (!this.getNestedValue('lifeCycleModelDataSet.lifeCycleModelInformation.dataSetInformation.common:synonyms')) {
|
|
103
|
+
this.setNestedValue('lifeCycleModelDataSet.lifeCycleModelInformation.dataSetInformation.common:synonyms', new multi_lang_types_1.MultiLangArray());
|
|
104
|
+
}
|
|
105
|
+
if (!this.getNestedValue('lifeCycleModelDataSet.lifeCycleModelInformation.dataSetInformation.common:generalComment')) {
|
|
106
|
+
this.setNestedValue('lifeCycleModelDataSet.lifeCycleModelInformation.dataSetInformation.common:generalComment', new multi_lang_types_1.MultiLangArray());
|
|
107
|
+
}
|
|
108
|
+
// Initialize required classification structure
|
|
109
|
+
// if (
|
|
110
|
+
// !this.getNestedValue(
|
|
111
|
+
// 'lifeCycleModelDataSet.lifeCycleModelInformation.dataSetInformation.classificationInformation.common:classification'
|
|
112
|
+
// )
|
|
113
|
+
// ) {
|
|
114
|
+
// this.setNestedValue(
|
|
115
|
+
// 'lifeCycleModelDataSet.lifeCycleModelInformation.dataSetInformation.classificationInformation.common:classification',
|
|
116
|
+
// {
|
|
117
|
+
// 'common:class': {
|
|
118
|
+
// '@level': '0',
|
|
119
|
+
// '@classId': '00000000-0000-0000-0000-000000000000',
|
|
120
|
+
// '#text': 'General life cycle model',
|
|
121
|
+
// },
|
|
122
|
+
// }
|
|
123
|
+
// );
|
|
124
|
+
// }
|
|
125
|
+
// Initialize technology array
|
|
126
|
+
if (!this.getNestedValue('lifeCycleModelDataSet.technology')) {
|
|
127
|
+
this.setNestedValue('lifeCycleModelDataSet.technology', []);
|
|
128
|
+
}
|
|
129
|
+
// Set default model type
|
|
130
|
+
// if (
|
|
131
|
+
// !this.getNestedValue(
|
|
132
|
+
// 'lifeCycleModelDataSet.lifeCycleModelInformation.dataSetInformation.typeOfModel'
|
|
133
|
+
// )
|
|
134
|
+
// ) {
|
|
135
|
+
// this.setNestedValue(
|
|
136
|
+
// 'lifeCycleModelDataSet.lifeCycleModelInformation.dataSetInformation.typeOfModel',
|
|
137
|
+
// 'Product system model'
|
|
138
|
+
// );
|
|
139
|
+
// }
|
|
140
|
+
// Set default functional unit or other reference
|
|
141
|
+
if (!this.getNestedValue('lifeCycleModelDataSet.lifeCycleModelInformation.quantitativeReference.functionalUnitOrOther')) {
|
|
142
|
+
this.setNestedValue('lifeCycleModelDataSet.lifeCycleModelInformation.quantitativeReference.functionalUnitOrOther', new multi_lang_types_1.MultiLangArray());
|
|
143
|
+
}
|
|
144
|
+
// Set default copyright protection
|
|
145
|
+
// if (
|
|
146
|
+
// !this.getNestedValue(
|
|
147
|
+
// 'lifeCycleModelDataSet.administrativeInformation.publicationAndOwnership.common:copyright'
|
|
148
|
+
// )
|
|
149
|
+
// ) {
|
|
150
|
+
// this.setNestedValue(
|
|
151
|
+
// 'lifeCycleModelDataSet.administrativeInformation.publicationAndOwnership.common:copyright',
|
|
152
|
+
// false
|
|
153
|
+
// );
|
|
154
|
+
// }
|
|
155
|
+
// Set default access restrictions
|
|
156
|
+
// if (
|
|
157
|
+
// !this.getNestedValue(
|
|
158
|
+
// 'lifeCycleModelDataSet.administrativeInformation.publicationAndOwnership.common:accessRestrictions'
|
|
159
|
+
// )
|
|
160
|
+
// ) {
|
|
161
|
+
// this.setNestedValue(
|
|
162
|
+
// 'lifeCycleModelDataSet.administrativeInformation.publicationAndOwnership.common:accessRestrictions',
|
|
163
|
+
// []
|
|
164
|
+
// );
|
|
165
|
+
// }
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
exports.TidasLifeCycleModel = TidasLifeCycleModel;
|
|
169
|
+
//# sourceMappingURL=TidasLifeCycleModel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TidasLifeCycleModel.js","sourceRoot":"","sources":["../../../src/core/entities/TidasLifeCycleModel.ts"],"names":[],"mappings":";;;AAAA,qDAAkD;AAClD,2CAAqD;AAGrD,mEAA8D;AAE9D;;;GAGG;AACH,MAAa,mBAAoB,SAAQ,yBAA2B;IAClE,YACE,WAAqC,EACrC,gBAA4C;QAE5C,KAAK,CAAC,8BAA2B,EAAE,WAAW,EAAE,gBAAgB,CAAC,CAAC;IACpE,CAAC;IAED,yFAAyF;IACzF,IAAI,qBAAqB;QACvB,OAAQ,IAAI,CAAC,KAAwB,CAAC,qBAAqB,CAAC;IAC9D,CAAC;IAED,IAAI,qBAAqB,CAAC,KAA8C;QACrE,IAAI,CAAC,KAAwB,CAAC,qBAAqB,GAAG,KAAK,CAAC;IAC/D,CAAC;IAES,kBAAkB;QAC1B,gEAAgE;QAChE,IAAI,CAAC,cAAc,CACjB,8BAA8B,EAC9B,uCAAuC,CACxC,CAAC;QACF,IAAI,CAAC,cAAc,CACjB,qCAAqC,EACrC,+BAA+B,CAChC,CAAC;QACF,IAAI,CAAC,cAAc,CACjB,kCAAkC,EAClC,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,IAAI;QAEJ,iDAAiD;QACjD,IACE,CAAC,IAAI,CAAC,cAAc,CAClB,6FAA6F,CAC9F,EACD,CAAC;YACD,IAAI,CAAC,cAAc,CACjB,6FAA6F,EAC7F,IAAI,iCAAc,EAAE,CACrB,CAAC;QACJ,CAAC;QAED,mCAAmC;QACnC,OAAO;QACP,0BAA0B;QAC1B,iGAAiG;QACjG,MAAM;QACN,MAAM;QACN,yBAAyB;QACzB,kGAAkG;QAClG,YAAY;QACZ,OAAO;QACP,IAAI;QAEJ,kCAAkC;QAClC,OAAO;QACP,0BAA0B;QAC1B,0GAA0G;QAC1G,MAAM;QACN,MAAM;QACN,yBAAyB;QACzB,2GAA2G;QAC3G,SAAS;QACT,OAAO;QACP,IAAI;IACN,CAAC;CACF;AA/OD,kDA+OC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { TidasEntity } from '../base/TidasEntity';
|
|
2
|
+
import { Process } from '../../types';
|
|
3
|
+
import { ValidationConfig } from '../config/ValidationConfig';
|
|
4
|
+
/**
|
|
5
|
+
* TIDAS Process entity - pure data container
|
|
6
|
+
* Represents unit processes/activities in LCA with schema validation
|
|
7
|
+
*/
|
|
8
|
+
export declare class TidasProcess extends TidasEntity<Process> {
|
|
9
|
+
constructor(initialData?: Partial<Process>, validationConfig?: Partial<ValidationConfig>);
|
|
10
|
+
get processDataSet(): Process['processDataSet'];
|
|
11
|
+
set processDataSet(value: Process['processDataSet']);
|
|
12
|
+
protected initializeDefaults(): void;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=TidasProcess.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TidasProcess.d.ts","sourceRoot":"","sources":["../../../src/core/entities/TidasProcess.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAElD,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAG9D;;;GAGG;AACH,qBAAa,YAAa,SAAQ,WAAW,CAAC,OAAO,CAAC;gBAElD,WAAW,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC,EAC9B,gBAAgB,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC;IAM9C,IAAI,cAAc,IAAI,OAAO,CAAC,gBAAgB,CAAC,CAE9C;IAED,IAAI,cAAc,CAAC,KAAK,EAAE,OAAO,CAAC,gBAAgB,CAAC,EAElD;IAED,SAAS,CAAC,kBAAkB,IAAI,IAAI;CAsPrC"}
|