@tiangong-lca/tidas-sdk 0.1.44 → 0.1.45

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.
Files changed (93) hide show
  1. package/dist/core/entities/TidasLifeCycleModel.js +3 -1
  2. package/dist/core/entities/TidasLifeCycleModel.js.map +1 -1
  3. package/dist/core/entities/TidasProcess.js +3 -1
  4. package/dist/core/entities/TidasProcess.js.map +1 -1
  5. package/dist/runtime-assets/tidas/schema.lock.json +269 -0
  6. package/dist/runtime-assets/tidas/schemas/tidas_contacts.json +5 -1
  7. package/dist/runtime-assets/tidas/schemas/tidas_data_types.json +245 -30
  8. package/dist/runtime-assets/tidas/schemas/tidas_flowproperties.json +5 -1
  9. package/dist/runtime-assets/tidas/schemas/tidas_flows.json +194 -129
  10. package/dist/runtime-assets/tidas/schemas/tidas_lciamethods.json +48 -76
  11. package/dist/runtime-assets/tidas/schemas/tidas_lifecyclemodels.json +244 -121
  12. package/dist/runtime-assets/tidas/schemas/tidas_locations_category.json +8 -4
  13. package/dist/runtime-assets/tidas/schemas/tidas_processes.json +200 -116
  14. package/dist/runtime-assets/tidas/schemas/tidas_sources.json +28 -7
  15. package/dist/runtime-assets/tidas/schemas/tidas_unitgroups.json +5 -1
  16. package/dist/runtime-assets/tidas/schemas_zh/tidas_contacts.json +294 -0
  17. package/dist/runtime-assets/tidas/schemas_zh/tidas_contacts_category.json +126 -0
  18. package/dist/runtime-assets/tidas/schemas_zh/tidas_data_types.json +599 -0
  19. package/dist/runtime-assets/tidas/schemas_zh/tidas_flowproperties.json +307 -0
  20. package/dist/runtime-assets/tidas/schemas_zh/tidas_flowproperties_category.json +61 -0
  21. package/dist/runtime-assets/tidas/schemas_zh/tidas_flows.json +787 -0
  22. package/dist/runtime-assets/tidas/schemas_zh/tidas_flows_elementary_category.json +720 -0
  23. package/dist/runtime-assets/tidas/schemas_zh/tidas_flows_product_category.json +59623 -0
  24. package/dist/runtime-assets/tidas/schemas_zh/tidas_lciamethods.json +1266 -0
  25. package/dist/runtime-assets/tidas/schemas_zh/tidas_lciamethods_category.json +685 -0
  26. package/dist/runtime-assets/tidas/schemas_zh/tidas_lifecyclemodels.json +1453 -0
  27. package/dist/runtime-assets/tidas/schemas_zh/tidas_locations_category.json +2597 -0
  28. package/dist/runtime-assets/tidas/schemas_zh/tidas_processes.json +1686 -0
  29. package/dist/runtime-assets/tidas/schemas_zh/tidas_processes_category.json +10795 -0
  30. package/dist/runtime-assets/tidas/schemas_zh/tidas_sources.json +249 -0
  31. package/dist/runtime-assets/tidas/schemas_zh/tidas_sources_category.json +100 -0
  32. package/dist/runtime-assets/tidas/schemas_zh/tidas_unitgroups.json +342 -0
  33. package/dist/runtime-assets/tidas/schemas_zh/tidas_unitgroups_category.json +61 -0
  34. package/dist/schemas/tidas_contacts.schema.d.ts +20 -10
  35. package/dist/schemas/tidas_contacts.schema.d.ts.map +1 -1
  36. package/dist/schemas/tidas_contacts.schema.js +1 -1
  37. package/dist/schemas/tidas_contacts.schema.js.map +1 -1
  38. package/dist/schemas/tidas_data_types.schema.d.ts +10 -6
  39. package/dist/schemas/tidas_data_types.schema.d.ts.map +1 -1
  40. package/dist/schemas/tidas_data_types.schema.js +32 -15
  41. package/dist/schemas/tidas_data_types.schema.js.map +1 -1
  42. package/dist/schemas/tidas_flowproperties.schema.d.ts +28 -14
  43. package/dist/schemas/tidas_flowproperties.schema.d.ts.map +1 -1
  44. package/dist/schemas/tidas_flowproperties.schema.js +1 -1
  45. package/dist/schemas/tidas_flowproperties.schema.js.map +1 -1
  46. package/dist/schemas/tidas_flows.schema.d.ts +36 -18
  47. package/dist/schemas/tidas_flows.schema.d.ts.map +1 -1
  48. package/dist/schemas/tidas_flows.schema.js +1 -1
  49. package/dist/schemas/tidas_flows.schema.js.map +1 -1
  50. package/dist/schemas/tidas_lciamethods.schema.d.ts +117 -63
  51. package/dist/schemas/tidas_lciamethods.schema.d.ts.map +1 -1
  52. package/dist/schemas/tidas_lciamethods.schema.js +36 -62
  53. package/dist/schemas/tidas_lciamethods.schema.js.map +1 -1
  54. package/dist/schemas/tidas_lifecyclemodels.schema.d.ts +98 -39
  55. package/dist/schemas/tidas_lifecyclemodels.schema.d.ts.map +1 -1
  56. package/dist/schemas/tidas_lifecyclemodels.schema.js +50 -24
  57. package/dist/schemas/tidas_lifecyclemodels.schema.js.map +1 -1
  58. package/dist/schemas/tidas_locations_category.schema.d.ts.map +1 -1
  59. package/dist/schemas/tidas_locations_category.schema.js +4 -3
  60. package/dist/schemas/tidas_locations_category.schema.js.map +1 -1
  61. package/dist/schemas/tidas_processes.schema.d.ts +130 -60
  62. package/dist/schemas/tidas_processes.schema.d.ts.map +1 -1
  63. package/dist/schemas/tidas_processes.schema.js +47 -27
  64. package/dist/schemas/tidas_processes.schema.js.map +1 -1
  65. package/dist/schemas/tidas_sources.schema.d.ts +24 -12
  66. package/dist/schemas/tidas_sources.schema.d.ts.map +1 -1
  67. package/dist/schemas/tidas_sources.schema.js +9 -4
  68. package/dist/schemas/tidas_sources.schema.js.map +1 -1
  69. package/dist/schemas/tidas_unitgroups.schema.d.ts +20 -10
  70. package/dist/schemas/tidas_unitgroups.schema.d.ts.map +1 -1
  71. package/dist/schemas/tidas_unitgroups.schema.js +1 -1
  72. package/dist/schemas/tidas_unitgroups.schema.js.map +1 -1
  73. package/dist/types/tidas_contacts.d.ts +2 -2
  74. package/dist/types/tidas_contacts.d.ts.map +1 -1
  75. package/dist/types/tidas_data_types.d.ts +19 -7
  76. package/dist/types/tidas_data_types.d.ts.map +1 -1
  77. package/dist/types/tidas_flowproperties.d.ts +2 -2
  78. package/dist/types/tidas_flowproperties.d.ts.map +1 -1
  79. package/dist/types/tidas_flows.d.ts +2 -2
  80. package/dist/types/tidas_flows.d.ts.map +1 -1
  81. package/dist/types/tidas_lciamethods.d.ts +11 -11
  82. package/dist/types/tidas_lciamethods.d.ts.map +1 -1
  83. package/dist/types/tidas_lifecyclemodels.d.ts +27 -4
  84. package/dist/types/tidas_lifecyclemodels.d.ts.map +1 -1
  85. package/dist/types/tidas_locations_category.d.ts +1 -1
  86. package/dist/types/tidas_locations_category.d.ts.map +1 -1
  87. package/dist/types/tidas_processes.d.ts +18 -4
  88. package/dist/types/tidas_processes.d.ts.map +1 -1
  89. package/dist/types/tidas_sources.d.ts +5 -3
  90. package/dist/types/tidas_sources.d.ts.map +1 -1
  91. package/dist/types/tidas_unitgroups.d.ts +2 -2
  92. package/dist/types/tidas_unitgroups.d.ts.map +1 -1
  93. package/package.json +1 -1
@@ -89,122 +89,182 @@
89
89
  "properties": {
90
90
  "common:classification": {
91
91
  "description": "Optional statistical or other classification of the data set. Typically also used for structuring LCA databases.",
92
- "type": "object",
93
- "properties": {
94
- "common:class": {
95
- "type": "array",
96
- "items": [
97
- {
98
- "type": "object",
99
- "properties": {
100
- "@level": {
101
- "$ref": "tidas_data_types.json#/$defs/LevelType",
102
- "const": "0"
103
- },
104
- "@classId": {
105
- "type": "string"
92
+ "anyOf": [
93
+ {
94
+ "type": "object",
95
+ "properties": {
96
+ "common:class": {
97
+ "type": "array",
98
+ "items": [
99
+ {
100
+ "type": "object",
101
+ "properties": {
102
+ "@level": {
103
+ "$ref": "tidas_data_types.json#/$defs/LevelType",
104
+ "const": "0"
105
+ },
106
+ "@classId": {
107
+ "type": "string"
108
+ },
109
+ "#text": {
110
+ "type": "string"
111
+ }
112
+ },
113
+ "dependencies": {
114
+ "@level": {
115
+ "$ref": "./tidas_processes_category.json"
116
+ }
117
+ },
118
+ "required": [
119
+ "@level",
120
+ "@classId",
121
+ "#text"
122
+ ]
106
123
  },
107
- "#text": {
108
- "type": "string"
109
- }
110
- },
111
- "dependencies": {
112
- "@level": {
113
- "$ref": "./tidas_processes_category.json"
114
- }
115
- },
116
- "required": [
117
- "@level",
118
- "@classId",
119
- "#text"
120
- ]
121
- },
122
- {
123
- "type": "object",
124
- "properties": {
125
- "@level": {
126
- "$ref": "tidas_data_types.json#/$defs/LevelType",
127
- "const": "1"
124
+ {
125
+ "type": "object",
126
+ "properties": {
127
+ "@level": {
128
+ "$ref": "tidas_data_types.json#/$defs/LevelType",
129
+ "const": "1"
130
+ },
131
+ "@classId": {
132
+ "type": "string"
133
+ },
134
+ "#text": {
135
+ "type": "string"
136
+ }
137
+ },
138
+ "dependencies": {
139
+ "@level": {
140
+ "$ref": "./tidas_processes_category.json"
141
+ }
142
+ },
143
+ "required": [
144
+ "@level",
145
+ "@classId",
146
+ "#text"
147
+ ]
128
148
  },
129
- "@classId": {
130
- "type": "string"
149
+ {
150
+ "type": "object",
151
+ "properties": {
152
+ "@level": {
153
+ "$ref": "tidas_data_types.json#/$defs/LevelType",
154
+ "const": "2"
155
+ },
156
+ "@classId": {
157
+ "type": "string"
158
+ },
159
+ "#text": {
160
+ "type": "string"
161
+ }
162
+ },
163
+ "dependencies": {
164
+ "@level": {
165
+ "$ref": "./tidas_processes_category.json"
166
+ }
167
+ },
168
+ "required": [
169
+ "@level",
170
+ "@classId",
171
+ "#text"
172
+ ]
131
173
  },
132
- "#text": {
133
- "type": "string"
134
- }
135
- },
136
- "dependencies": {
137
- "@level": {
138
- "$ref": "./tidas_processes_category.json"
174
+ {
175
+ "type": "object",
176
+ "properties": {
177
+ "@level": {
178
+ "$ref": "tidas_data_types.json#/$defs/LevelType",
179
+ "const": "3"
180
+ },
181
+ "@classId": {
182
+ "type": "string"
183
+ },
184
+ "#text": {
185
+ "type": "string"
186
+ }
187
+ },
188
+ "dependencies": {
189
+ "@level": {
190
+ "$ref": "./tidas_processes_category.json"
191
+ }
192
+ },
193
+ "required": [
194
+ "@level",
195
+ "@classId",
196
+ "#text"
197
+ ]
139
198
  }
140
- },
141
- "required": [
142
- "@level",
143
- "@classId",
144
- "#text"
145
- ]
199
+ ],
200
+ "uniqueItems": true,
201
+ "maxItems": 4,
202
+ "additionalItems": false
146
203
  },
147
- {
148
- "type": "object",
149
- "properties": {
150
- "@level": {
151
- "$ref": "tidas_data_types.json#/$defs/LevelType",
152
- "const": "2"
153
- },
154
- "@classId": {
155
- "type": "string"
156
- },
157
- "#text": {
158
- "type": "string"
159
- }
160
- },
161
- "dependencies": {
162
- "@level": {
163
- "$ref": "./tidas_processes_category.json"
164
- }
165
- },
166
- "required": [
167
- "@level",
168
- "@classId",
169
- "#text"
170
- ]
204
+ "common:other": {
205
+ "$ref": "tidas_data_types.json#/$defs/CommonOther"
171
206
  },
172
- {
173
- "type": "object",
174
- "properties": {
175
- "@level": {
176
- "$ref": "tidas_data_types.json#/$defs/LevelType",
177
- "const": "3"
178
- },
179
- "@classId": {
180
- "type": "string"
181
- },
182
- "#text": {
183
- "type": "string"
184
- }
207
+ "@name": {
208
+ "type": "string",
209
+ "description": "Name of the classification system (e.g. CPC, ISIC, HS). Per ILCD this defaults to 'ILCD' when absent; set it explicitly for non-ILCD systems."
210
+ },
211
+ "@classes": {
212
+ "type": "string",
213
+ "description": "Optional URL or identifier of the classification file/system."
214
+ }
215
+ },
216
+ "required": [
217
+ "common:class"
218
+ ]
219
+ },
220
+ {
221
+ "type": "array",
222
+ "minItems": 1,
223
+ "items": {
224
+ "type": "object",
225
+ "description": "One named classification system (e.g. CPC or HS). Used in the array form to let multiple systems coexist.",
226
+ "properties": {
227
+ "@name": {
228
+ "type": "string",
229
+ "description": "Name of the classification system (e.g. CPC, ISIC, HS). Per ILCD this defaults to 'ILCD' when absent; set it explicitly for non-ILCD systems."
185
230
  },
186
- "dependencies": {
187
- "@level": {
188
- "$ref": "./tidas_processes_category.json"
231
+ "@classes": {
232
+ "type": "string",
233
+ "description": "Optional URL or identifier of the classification file/system."
234
+ },
235
+ "common:class": {
236
+ "type": "array",
237
+ "minItems": 1,
238
+ "items": {
239
+ "type": "object",
240
+ "properties": {
241
+ "@level": {
242
+ "$ref": "tidas_data_types.json#/$defs/LevelType"
243
+ },
244
+ "@classId": {
245
+ "type": "string"
246
+ },
247
+ "#text": {
248
+ "type": "string"
249
+ }
250
+ },
251
+ "required": [
252
+ "@level",
253
+ "@classId",
254
+ "#text"
255
+ ]
189
256
  }
190
257
  },
191
- "required": [
192
- "@level",
193
- "@classId",
194
- "#text"
195
- ]
196
- }
197
- ],
198
- "uniqueItems": true,
199
- "maxItems": 4,
200
- "additionalItems": false
201
- },
202
- "common:other": {
203
- "$ref": "tidas_data_types.json#/$defs/CommonOther"
258
+ "common:other": {
259
+ "$ref": "tidas_data_types.json#/$defs/CommonOther"
260
+ }
261
+ },
262
+ "required": [
263
+ "@name",
264
+ "common:class"
265
+ ]
266
+ }
204
267
  }
205
- },
206
- "required": [
207
- "common:class"
208
268
  ]
209
269
  }
210
270
  },
@@ -1243,7 +1303,11 @@
1243
1303
  "description": "Date when the data set was revised for the last time, typically manually set."
1244
1304
  },
1245
1305
  "common:dataSetVersion": {
1246
- "type": "string",
1306
+ "allOf": [
1307
+ {
1308
+ "$ref": "tidas_data_types.json#/$defs/Version"
1309
+ }
1310
+ ],
1247
1311
  "description": "Version number of data set. First two digits refer to major updates, the second two digits to minor revisions and error corrections etc. The third three digits are intended for automatic and internal counting of versions during data set development. Together with the data set's UUID, the \"Data set version\" uniquely identifies each data set."
1248
1312
  },
1249
1313
  "common:referenceToPrecedingDataSetVersion": {
@@ -1414,18 +1478,38 @@
1414
1478
  "description": "container tag for the specification of allocations if process has more than one reference product. Use only for multifunctional processes.",
1415
1479
  "properties": {
1416
1480
  "allocation": {
1417
- "type": "object",
1418
1481
  "description": "specifies one allocation of this exchange (see the attributes of this tag below)",
1419
- "properties": {
1420
- "@internalReferenceToCoProduct": {
1421
- "$ref": "tidas_data_types.json#/$defs/Int6",
1422
- "description": "Reference to one of the co-products. The applied allocation approach(es), details and and explanations are documented in the fields \"LCI method approaches\" and \"Deviations from LCI method approaches / explanations\". [Notes: Applicable only to multifunctional processes. The documented allocated fractions are only applicable when using the data set for attributional modelling and are to be ignored for consequential modeling.]"
1482
+ "anyOf": [
1483
+ {
1484
+ "type": "object",
1485
+ "properties": {
1486
+ "@internalReferenceToCoProduct": {
1487
+ "$ref": "tidas_data_types.json#/$defs/Int6",
1488
+ "description": "Reference to one of the co-products. The applied allocation approach(es), details and and explanations are documented in the fields \"LCI method approaches\" and \"Deviations from LCI method approaches / explanations\". [Notes: Applicable only to multifunctional processes. The documented allocated fractions are only applicable when using the data set for attributional modelling and are to be ignored for consequential modeling.]"
1489
+ },
1490
+ "@allocatedFraction": {
1491
+ "$ref": "tidas_data_types.json#/$defs/Perc",
1492
+ "description": "Fraction (expressed in %) of this Input or Output flow that is foreseen to be allocated to this co-product (recommended allocation). The numbers across the co-products should sum up to 100%."
1493
+ }
1494
+ }
1423
1495
  },
1424
- "@allocatedFraction": {
1425
- "$ref": "tidas_data_types.json#/$defs/Perc",
1426
- "description": "Fraction (expressed in %) of this Input or Output flow that is foreseen to be allocated to this co-product (recommended allocation). The numbers across the co-products should sum up to 100%."
1496
+ {
1497
+ "type": "array",
1498
+ "items": {
1499
+ "type": "object",
1500
+ "properties": {
1501
+ "@internalReferenceToCoProduct": {
1502
+ "$ref": "tidas_data_types.json#/$defs/Int6",
1503
+ "description": "Reference to one of the co-products. The applied allocation approach(es), details and and explanations are documented in the fields \"LCI method approaches\" and \"Deviations from LCI method approaches / explanations\". [Notes: Applicable only to multifunctional processes. The documented allocated fractions are only applicable when using the data set for attributional modelling and are to be ignored for consequential modeling.]"
1504
+ },
1505
+ "@allocatedFraction": {
1506
+ "$ref": "tidas_data_types.json#/$defs/Perc",
1507
+ "description": "Fraction (expressed in %) of this Input or Output flow that is foreseen to be allocated to this co-product (recommended allocation). The numbers across the co-products should sum up to 100%."
1508
+ }
1509
+ }
1510
+ }
1427
1511
  }
1428
- }
1512
+ ]
1429
1513
  }
1430
1514
  }
1431
1515
  },
@@ -109,14 +109,31 @@
109
109
  "description": "Free text for additional description of the source. In case of use of published data it may contain a brief summary of the publication and the kind of medium used (e.g. CD-ROM, hard copy)."
110
110
  },
111
111
  "referenceToDigitalFile": {
112
- "type": "object",
113
112
  "description": "Link to a digital file of the source (www-address or intranet-path; relative or absolue path). (Info: Allows direct access to e.g. complete reports of further documentation, which may also be digitally attached to this data set and exchanged jointly with the XML file.)",
114
- "properties": {
115
- "@uri": {
116
- "type": "string",
117
- "format": "uri"
113
+ "anyOf": [
114
+ {
115
+ "type": "object",
116
+ "properties": {
117
+ "@uri": {
118
+ "type": "string",
119
+ "format": "uri"
120
+ }
121
+ }
122
+ },
123
+ {
124
+ "type": "array",
125
+ "minItems": 1,
126
+ "items": {
127
+ "type": "object",
128
+ "properties": {
129
+ "@uri": {
130
+ "type": "string",
131
+ "format": "uri"
132
+ }
133
+ }
134
+ }
118
135
  }
119
- }
136
+ ]
120
137
  },
121
138
  "referenceToContact": {
122
139
  "$ref": "tidas_data_types.json#/$defs/GlobalReferenceType",
@@ -173,7 +190,11 @@
173
190
  "description": "Information related to publication and version management of the data set including copyright and access restrictions.",
174
191
  "properties": {
175
192
  "common:dataSetVersion": {
176
- "type": "string",
193
+ "allOf": [
194
+ {
195
+ "$ref": "tidas_data_types.json#/$defs/Version"
196
+ }
197
+ ],
177
198
  "description": "Version number of data set. First two digits refer to major updates, the second two digits to minor revisions and error corrections etc. The third three digits are intended for automatic and internal counting of versions during data set development. Together with the data set's UUID, the \"Data set version\" uniquely identifies each data set."
178
199
  },
179
200
  "common:referenceToPrecedingDataSetVersion": {
@@ -228,7 +228,11 @@
228
228
  "type": "object",
229
229
  "properties": {
230
230
  "common:dataSetVersion": {
231
- "type": "string",
231
+ "allOf": [
232
+ {
233
+ "$ref": "tidas_data_types.json#/$defs/Version"
234
+ }
235
+ ],
232
236
  "description": "Version number of data set. First two digits refer to major updates, the second two digits to minor revisions and error corrections etc. The third three digits are intended for automatic and internal counting of versions during data set development. Together with the data set's UUID, the \"Data set version\" uniquely identifies each data set."
233
237
  },
234
238
  "common:referenceToPrecedingDataSetVersion": {