@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
@@ -171,147 +171,208 @@
171
171
  ]
172
172
  },
173
173
  "common:classification": {
174
- "type": "object",
175
- "properties": {
176
- "common:class": {
177
- "type": "array",
178
- "items": [
179
- {
180
- "type": "object",
181
- "properties": {
182
- "@level": {
183
- "$ref": "tidas_data_types.json#/$defs/LevelType",
184
- "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
+ }
185
206
  },
186
- "@classId": {
187
- "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
+ }
188
231
  },
189
- "#text": {
190
- "type": "string"
191
- }
192
- },
193
- "required": [
194
- "@level",
195
- "@classId",
196
- "#text"
197
- ],
198
- "dependencies": {
199
- "@level": {
200
- "$ref": "./tidas_flows_product_category.json"
201
- }
202
- }
203
- },
204
- {
205
- "type": "object",
206
- "properties": {
207
- "@level": {
208
- "$ref": "tidas_data_types.json#/$defs/LevelType",
209
- "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
+ }
210
256
  },
211
- "@classId": {
212
- "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
+ }
213
281
  },
214
- "#text": {
215
- "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
+ }
216
306
  }
217
- },
218
- "required": [
219
- "@level",
220
- "@classId",
221
- "#text"
222
307
  ],
223
- "dependencies": {
224
- "@level": {
225
- "$ref": "./tidas_flows_product_category.json"
226
- }
227
- }
308
+ "uniqueItems": true,
309
+ "maxItems": 5,
310
+ "additionalItems": false
228
311
  },
229
- {
230
- "type": "object",
231
- "properties": {
232
- "@level": {
233
- "$ref": "tidas_data_types.json#/$defs/LevelType",
234
- "const": "2"
235
- },
236
- "@classId": {
237
- "type": "string"
238
- },
239
- "#text": {
240
- "type": "string"
241
- }
242
- },
243
- "required": [
244
- "@level",
245
- "@classId",
246
- "#text"
247
- ],
248
- "dependencies": {
249
- "@level": {
250
- "$ref": "./tidas_flows_product_category.json"
251
- }
252
- }
312
+ "common:other": {
313
+ "$ref": "tidas_data_types.json#/$defs/CommonOther"
253
314
  },
254
- {
255
- "type": "object",
256
- "properties": {
257
- "@level": {
258
- "$ref": "tidas_data_types.json#/$defs/LevelType",
259
- "const": "3"
260
- },
261
- "@classId": {
262
- "type": "string"
263
- },
264
- "#text": {
265
- "type": "string"
266
- }
267
- },
268
- "required": [
269
- "@level",
270
- "@classId",
271
- "#text"
272
- ],
273
- "dependencies": {
274
- "@level": {
275
- "$ref": "./tidas_flows_product_category.json"
276
- }
277
- }
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."
278
318
  },
279
- {
280
- "type": "object",
281
- "properties": {
282
- "@level": {
283
- "$ref": "tidas_data_types.json#/$defs/LevelType",
284
- "const": "4"
285
- },
286
- "@classId": {
287
- "type": "string"
288
- },
289
- "#text": {
290
- "type": "string"
291
- }
319
+ "@classes": {
320
+ "type": "string",
321
+ "description": "Optional URL or identifier of the classification file/system."
322
+ }
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."
292
338
  },
293
- "required": [
294
- "@level",
295
- "@classId",
296
- "#text"
297
- ],
298
- "dependencies": {
299
- "@level": {
300
- "$ref": "./tidas_flows_product_category.json"
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
+ ]
301
364
  }
365
+ },
366
+ "common:other": {
367
+ "$ref": "tidas_data_types.json#/$defs/CommonOther"
302
368
  }
303
- }
304
- ],
305
- "uniqueItems": true,
306
- "maxItems": 5,
307
- "additionalItems": false
308
- },
309
- "common:other": {
310
- "$ref": "tidas_data_types.json#/$defs/CommonOther"
369
+ },
370
+ "required": [
371
+ "@name",
372
+ "common:class"
373
+ ]
374
+ }
311
375
  }
312
- },
313
- "required": [
314
- "common:class"
315
376
  ]
316
377
  }
317
378
  },
@@ -529,7 +590,11 @@
529
590
  "type": "object",
530
591
  "properties": {
531
592
  "common:dataSetVersion": {
532
- "type": "string",
593
+ "allOf": [
594
+ {
595
+ "$ref": "tidas_data_types.json#/$defs/Version"
596
+ }
597
+ ],
533
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."
534
599
  },
535
600
  "common:referenceToPrecedingDataSetVersion": {
@@ -408,12 +408,8 @@
408
408
  "description": "Short description of possible data set specific deviations from \"LCIA method principle(s)\". Refers especially to explanations on the combination of LCIA methods with different principles in a single LCIA methodology."
409
409
  },
410
410
  "normalisation": {
411
- "type": "string",
412
- "description": "Indication whether or not a normalisation step was included in the resulting impact factors.",
413
- "enum": [
414
- "true",
415
- "false"
416
- ]
411
+ "type": "boolean",
412
+ "description": "Indication whether or not a normalisation step was included in the resulting impact factors."
417
413
  },
418
414
  "referenceToUsableNormalisationDataSets": {
419
415
  "$ref": "tidas_data_types.json#/$defs/GlobalReferenceType",
@@ -428,12 +424,8 @@
428
424
  "description": "\"Normalisation data set(s)\" that was/were used to calculate the normalised impact factors of this data set, if any."
429
425
  },
430
426
  "weighting": {
431
- "type": "string",
432
- "description": "Indication whether or not a weighting-step was included in the resulting impact factors.",
433
- "enum": [
434
- "true",
435
- "false"
436
- ]
427
+ "type": "boolean",
428
+ "description": "Indication whether or not a weighting-step was included in the resulting impact factors."
437
429
  },
438
430
  "referenceToUsableWeightingDataSets": {
439
431
  "$ref": "tidas_data_types.json#/$defs/GlobalReferenceType",
@@ -510,15 +502,17 @@
510
502
  "@name": {
511
503
  "type": "string",
512
504
  "enum": [
513
- "Raw data",
514
- "Unit process(es), single operation",
515
- "Unit process(es), black box",
516
- "LCI results or Partly terminated system",
517
- "LCIA results",
518
- "Documentation",
519
- "Life cycle inventory methods",
520
- "LCIA results calculation",
521
- "Goal and scope definition"
505
+ "Substance properties, physical and chemical",
506
+ "Substance properties, biological",
507
+ "Model for Transport and Fate",
508
+ "Model for Exposure",
509
+ "Model for Effect",
510
+ "Model for Damage",
511
+ "Characterisation factors",
512
+ "Application of model",
513
+ "Normalisation",
514
+ "Weighting",
515
+ "Documentation"
522
516
  ]
523
517
  },
524
518
  "common:method": {
@@ -530,18 +524,11 @@
530
524
  "@name": {
531
525
  "type": "string",
532
526
  "enum": [
533
- "Validation of data sources",
534
- "Sample tests on calculations",
535
- "Energy balance",
536
- "Element balance",
527
+ "Recollection / Validation of data",
528
+ "Recalculation",
537
529
  "Cross-check with other source",
538
- "Cross-check with other data set",
539
- "Expert judgement",
540
- "Mass balance",
541
- "Compliance with legal limits",
542
- "Compliance with ISO 14040 to 14044",
543
- "Documentation",
544
- "Evidence collection by means of plant visits and/or interviews"
530
+ "Cross-check with other LCIA method(ology)",
531
+ "Expert judgement"
545
532
  ]
546
533
  }
547
534
  },
@@ -557,18 +544,11 @@
557
544
  "@name": {
558
545
  "type": "string",
559
546
  "enum": [
560
- "Validation of data sources",
561
- "Sample tests on calculations",
562
- "Energy balance",
563
- "Element balance",
547
+ "Recollection / Validation of data",
548
+ "Recalculation",
564
549
  "Cross-check with other source",
565
- "Cross-check with other data set",
566
- "Expert judgement",
567
- "Mass balance",
568
- "Compliance with legal limits",
569
- "Compliance with ISO 14040 to 14044",
570
- "Documentation",
571
- "Evidence collection by means of plant visits and/or interviews"
550
+ "Cross-check with other LCIA method(ology)",
551
+ "Expert judgement"
572
552
  ]
573
553
  }
574
554
  },
@@ -593,15 +573,17 @@
593
573
  "@name": {
594
574
  "type": "string",
595
575
  "enum": [
596
- "Raw data",
597
- "Unit process(es), single operation",
598
- "Unit process(es), black box",
599
- "LCI results or Partly terminated system",
600
- "LCIA results",
601
- "Documentation",
602
- "Life cycle inventory methods",
603
- "LCIA results calculation",
604
- "Goal and scope definition"
576
+ "Substance properties, physical and chemical",
577
+ "Substance properties, biological",
578
+ "Model for Transport and Fate",
579
+ "Model for Exposure",
580
+ "Model for Effect",
581
+ "Model for Damage",
582
+ "Characterisation factors",
583
+ "Application of model",
584
+ "Normalisation",
585
+ "Weighting",
586
+ "Documentation"
605
587
  ]
606
588
  },
607
589
  "common:method": {
@@ -613,18 +595,11 @@
613
595
  "@name": {
614
596
  "type": "string",
615
597
  "enum": [
616
- "Validation of data sources",
617
- "Sample tests on calculations",
618
- "Energy balance",
619
- "Element balance",
598
+ "Recollection / Validation of data",
599
+ "Recalculation",
620
600
  "Cross-check with other source",
621
- "Cross-check with other data set",
622
- "Expert judgement",
623
- "Mass balance",
624
- "Compliance with legal limits",
625
- "Compliance with ISO 14040 to 14044",
626
- "Documentation",
627
- "Evidence collection by means of plant visits and/or interviews"
601
+ "Cross-check with other LCIA method(ology)",
602
+ "Expert judgement"
628
603
  ]
629
604
  }
630
605
  },
@@ -640,18 +615,11 @@
640
615
  "@name": {
641
616
  "type": "string",
642
617
  "enum": [
643
- "Validation of data sources",
644
- "Sample tests on calculations",
645
- "Energy balance",
646
- "Element balance",
618
+ "Recollection / Validation of data",
619
+ "Recalculation",
647
620
  "Cross-check with other source",
648
- "Cross-check with other data set",
649
- "Expert judgement",
650
- "Mass balance",
651
- "Compliance with legal limits",
652
- "Compliance with ISO 14040 to 14044",
653
- "Documentation",
654
- "Evidence collection by means of plant visits and/or interviews"
621
+ "Cross-check with other LCIA method(ology)",
622
+ "Expert judgement"
655
623
  ]
656
624
  }
657
625
  },
@@ -1014,7 +982,11 @@
1014
982
  "description": "Date when the data set was revised for the last time, typically manually set."
1015
983
  },
1016
984
  "common:dataSetVersion": {
1017
- "type": "string",
985
+ "allOf": [
986
+ {
987
+ "$ref": "tidas_data_types.json#/$defs/Version"
988
+ }
989
+ ],
1018
990
  "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."
1019
991
  },
1020
992
  "common:referenceToPrecedingDataSetVersion": {
@@ -1207,7 +1179,7 @@
1207
1179
  "$ref": "tidas_data_types.json#/$defs/Real",
1208
1180
  "description": "Maximum value of the characterisation factor for the exchange in case uncertainty distribution is uniform or triangular."
1209
1181
  },
1210
- "uncertaintyType": {
1182
+ "uncertaintyDistributionType": {
1211
1183
  "type": "string",
1212
1184
  "description": "Defines the kind of uncertainty distribution that is valid for this particular object or parameter.",
1213
1185
  "enum": [