@tiangong-lca/tidas-sdk 0.1.42 → 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 +7 -25
  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 +195 -218
  10. package/dist/runtime-assets/tidas/schemas/tidas_lciamethods.json +50 -111
  11. package/dist/runtime-assets/tidas/schemas/tidas_lifecyclemodels.json +242 -163
  12. package/dist/runtime-assets/tidas/schemas/tidas_locations_category.json +8 -4
  13. package/dist/runtime-assets/tidas/schemas/tidas_processes.json +198 -158
  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
@@ -159,41 +159,8 @@
159
159
  }
160
160
  ],
161
161
  "uniqueItems": true,
162
- "allOf": [
163
- {
164
- "maxContains": 1,
165
- "minContains": 0,
166
- "contains": {
167
- "properties": {
168
- "@level": {
169
- "const": "0"
170
- }
171
- }
172
- }
173
- },
174
- {
175
- "maxContains": 1,
176
- "minContains": 0,
177
- "contains": {
178
- "properties": {
179
- "@level": {
180
- "const": "1"
181
- }
182
- }
183
- }
184
- },
185
- {
186
- "maxContains": 1,
187
- "minContains": 0,
188
- "contains": {
189
- "properties": {
190
- "@level": {
191
- "const": "2"
192
- }
193
- }
194
- }
195
- }
196
- ]
162
+ "maxItems": 3,
163
+ "additionalItems": false
197
164
  },
198
165
  "common:other": {
199
166
  "$ref": "tidas_data_types.json#/$defs/CommonOther"
@@ -204,202 +171,208 @@
204
171
  ]
205
172
  },
206
173
  "common:classification": {
207
- "type": "object",
208
- "properties": {
209
- "common:class": {
210
- "type": "array",
211
- "items": [
212
- {
213
- "type": "object",
214
- "properties": {
215
- "@level": {
216
- "$ref": "tidas_data_types.json#/$defs/LevelType",
217
- "const": "0"
174
+ "description": "Classification of the data set. Either a single system (CPC/ISIC by default) or an array of named systems (e.g. CPC + HS) that coexist.",
175
+ "anyOf": [
176
+ {
177
+ "type": "object",
178
+ "properties": {
179
+ "common:class": {
180
+ "type": "array",
181
+ "items": [
182
+ {
183
+ "type": "object",
184
+ "properties": {
185
+ "@level": {
186
+ "$ref": "tidas_data_types.json#/$defs/LevelType",
187
+ "const": "0"
188
+ },
189
+ "@classId": {
190
+ "type": "string"
191
+ },
192
+ "#text": {
193
+ "type": "string"
194
+ }
195
+ },
196
+ "required": [
197
+ "@level",
198
+ "@classId",
199
+ "#text"
200
+ ],
201
+ "dependencies": {
202
+ "@level": {
203
+ "$ref": "./tidas_flows_product_category.json"
204
+ }
205
+ }
218
206
  },
219
- "@classId": {
220
- "type": "string"
207
+ {
208
+ "type": "object",
209
+ "properties": {
210
+ "@level": {
211
+ "$ref": "tidas_data_types.json#/$defs/LevelType",
212
+ "const": "1"
213
+ },
214
+ "@classId": {
215
+ "type": "string"
216
+ },
217
+ "#text": {
218
+ "type": "string"
219
+ }
220
+ },
221
+ "required": [
222
+ "@level",
223
+ "@classId",
224
+ "#text"
225
+ ],
226
+ "dependencies": {
227
+ "@level": {
228
+ "$ref": "./tidas_flows_product_category.json"
229
+ }
230
+ }
221
231
  },
222
- "#text": {
223
- "type": "string"
224
- }
225
- },
226
- "required": [
227
- "@level",
228
- "@classId",
229
- "#text"
230
- ],
231
- "dependencies": {
232
- "@level": {
233
- "$ref": "./tidas_flows_product_category.json"
234
- }
235
- }
236
- },
237
- {
238
- "type": "object",
239
- "properties": {
240
- "@level": {
241
- "$ref": "tidas_data_types.json#/$defs/LevelType",
242
- "const": "1"
232
+ {
233
+ "type": "object",
234
+ "properties": {
235
+ "@level": {
236
+ "$ref": "tidas_data_types.json#/$defs/LevelType",
237
+ "const": "2"
238
+ },
239
+ "@classId": {
240
+ "type": "string"
241
+ },
242
+ "#text": {
243
+ "type": "string"
244
+ }
245
+ },
246
+ "required": [
247
+ "@level",
248
+ "@classId",
249
+ "#text"
250
+ ],
251
+ "dependencies": {
252
+ "@level": {
253
+ "$ref": "./tidas_flows_product_category.json"
254
+ }
255
+ }
243
256
  },
244
- "@classId": {
245
- "type": "string"
257
+ {
258
+ "type": "object",
259
+ "properties": {
260
+ "@level": {
261
+ "$ref": "tidas_data_types.json#/$defs/LevelType",
262
+ "const": "3"
263
+ },
264
+ "@classId": {
265
+ "type": "string"
266
+ },
267
+ "#text": {
268
+ "type": "string"
269
+ }
270
+ },
271
+ "required": [
272
+ "@level",
273
+ "@classId",
274
+ "#text"
275
+ ],
276
+ "dependencies": {
277
+ "@level": {
278
+ "$ref": "./tidas_flows_product_category.json"
279
+ }
280
+ }
246
281
  },
247
- "#text": {
248
- "type": "string"
282
+ {
283
+ "type": "object",
284
+ "properties": {
285
+ "@level": {
286
+ "$ref": "tidas_data_types.json#/$defs/LevelType",
287
+ "const": "4"
288
+ },
289
+ "@classId": {
290
+ "type": "string"
291
+ },
292
+ "#text": {
293
+ "type": "string"
294
+ }
295
+ },
296
+ "required": [
297
+ "@level",
298
+ "@classId",
299
+ "#text"
300
+ ],
301
+ "dependencies": {
302
+ "@level": {
303
+ "$ref": "./tidas_flows_product_category.json"
304
+ }
305
+ }
249
306
  }
250
- },
251
- "required": [
252
- "@level",
253
- "@classId",
254
- "#text"
255
307
  ],
256
- "dependencies": {
257
- "@level": {
258
- "$ref": "./tidas_flows_product_category.json"
259
- }
260
- }
308
+ "uniqueItems": true,
309
+ "maxItems": 5,
310
+ "additionalItems": false
261
311
  },
262
- {
263
- "type": "object",
264
- "properties": {
265
- "@level": {
266
- "$ref": "tidas_data_types.json#/$defs/LevelType",
267
- "const": "2"
268
- },
269
- "@classId": {
270
- "type": "string"
271
- },
272
- "#text": {
273
- "type": "string"
274
- }
275
- },
276
- "required": [
277
- "@level",
278
- "@classId",
279
- "#text"
280
- ],
281
- "dependencies": {
282
- "@level": {
283
- "$ref": "./tidas_flows_product_category.json"
284
- }
285
- }
312
+ "common:other": {
313
+ "$ref": "tidas_data_types.json#/$defs/CommonOther"
286
314
  },
287
- {
288
- "type": "object",
289
- "properties": {
290
- "@level": {
291
- "$ref": "tidas_data_types.json#/$defs/LevelType",
292
- "const": "3"
293
- },
294
- "@classId": {
295
- "type": "string"
296
- },
297
- "#text": {
298
- "type": "string"
299
- }
300
- },
301
- "required": [
302
- "@level",
303
- "@classId",
304
- "#text"
305
- ],
306
- "dependencies": {
307
- "@level": {
308
- "$ref": "./tidas_flows_product_category.json"
309
- }
310
- }
315
+ "@name": {
316
+ "type": "string",
317
+ "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."
311
318
  },
312
- {
313
- "type": "object",
314
- "properties": {
315
- "@level": {
316
- "$ref": "tidas_data_types.json#/$defs/LevelType",
317
- "const": "4"
318
- },
319
- "@classId": {
320
- "type": "string"
321
- },
322
- "#text": {
323
- "type": "string"
324
- }
325
- },
326
- "required": [
327
- "@level",
328
- "@classId",
329
- "#text"
330
- ],
331
- "dependencies": {
332
- "@level": {
333
- "$ref": "./tidas_flows_product_category.json"
334
- }
335
- }
319
+ "@classes": {
320
+ "type": "string",
321
+ "description": "Optional URL or identifier of the classification file/system."
336
322
  }
337
- ],
338
- "uniqueItems": true,
339
- "allOf": [
340
- {
341
- "maxContains": 1,
342
- "minContains": 0,
343
- "contains": {
344
- "properties": {
345
- "@level": {
346
- "const": "0"
347
- }
348
- }
349
- }
350
- },
351
- {
352
- "maxContains": 1,
353
- "minContains": 0,
354
- "contains": {
355
- "properties": {
356
- "@level": {
357
- "const": "1"
358
- }
359
- }
360
- }
361
- },
362
- {
363
- "maxContains": 1,
364
- "minContains": 0,
365
- "contains": {
366
- "properties": {
367
- "@level": {
368
- "const": "2"
369
- }
370
- }
371
- }
372
- },
373
- {
374
- "maxContains": 1,
375
- "minContains": 0,
376
- "contains": {
377
- "properties": {
378
- "@level": {
379
- "const": "3"
380
- }
323
+ },
324
+ "required": [
325
+ "common:class"
326
+ ]
327
+ },
328
+ {
329
+ "type": "array",
330
+ "minItems": 1,
331
+ "items": {
332
+ "type": "object",
333
+ "description": "One named classification system (e.g. CPC or HS). Used in the array form to let multiple systems coexist.",
334
+ "properties": {
335
+ "@name": {
336
+ "type": "string",
337
+ "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."
338
+ },
339
+ "@classes": {
340
+ "type": "string",
341
+ "description": "Optional URL or identifier of the classification file/system."
342
+ },
343
+ "common:class": {
344
+ "type": "array",
345
+ "minItems": 1,
346
+ "items": {
347
+ "type": "object",
348
+ "properties": {
349
+ "@level": {
350
+ "$ref": "tidas_data_types.json#/$defs/LevelType"
351
+ },
352
+ "@classId": {
353
+ "type": "string"
354
+ },
355
+ "#text": {
356
+ "type": "string"
357
+ }
358
+ },
359
+ "required": [
360
+ "@level",
361
+ "@classId",
362
+ "#text"
363
+ ]
381
364
  }
365
+ },
366
+ "common:other": {
367
+ "$ref": "tidas_data_types.json#/$defs/CommonOther"
382
368
  }
383
369
  },
384
- {
385
- "maxContains": 1,
386
- "minContains": 0,
387
- "contains": {
388
- "properties": {
389
- "@level": {
390
- "const": "4"
391
- }
392
- }
393
- }
394
- }
395
- ]
396
- },
397
- "common:other": {
398
- "$ref": "tidas_data_types.json#/$defs/CommonOther"
370
+ "required": [
371
+ "@name",
372
+ "common:class"
373
+ ]
374
+ }
399
375
  }
400
- },
401
- "required": [
402
- "common:class"
403
376
  ]
404
377
  }
405
378
  },
@@ -617,7 +590,11 @@
617
590
  "type": "object",
618
591
  "properties": {
619
592
  "common:dataSetVersion": {
620
- "type": "string",
593
+ "allOf": [
594
+ {
595
+ "$ref": "tidas_data_types.json#/$defs/Version"
596
+ }
597
+ ],
621
598
  "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."
622
599
  },
623
600
  "common:referenceToPrecedingDataSetVersion": {