@tiangong-lca/tidas-sdk 0.1.44 → 0.1.46

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 (106) hide show
  1. package/README.md +3 -2
  2. package/dist/core/entities/TidasLifeCycleModel.js +3 -1
  3. package/dist/core/entities/TidasLifeCycleModel.js.map +1 -1
  4. package/dist/core/entities/TidasProcess.js +3 -1
  5. package/dist/core/entities/TidasProcess.js.map +1 -1
  6. package/dist/data/bundled-methodologies.json +3 -3
  7. package/dist/runtime-assets/asset-lock.v1.json +490 -0
  8. package/dist/runtime-assets/eilcd/schemas/ILCD_Common_DataTypes.xsd +3 -3
  9. package/dist/runtime-assets/eilcd/schemas/ILCD_Common_Groups.xsd +2 -2
  10. package/dist/runtime-assets/tidas/methodologies/elementary_flow_taxonomy_extension.v1.json +102 -0
  11. package/dist/runtime-assets/tidas/methodologies/tidas_flows.yaml +2 -2
  12. package/dist/runtime-assets/tidas/schema.lock.json +269 -0
  13. package/dist/runtime-assets/tidas/schemas/tidas_contacts.json +5 -1
  14. package/dist/runtime-assets/tidas/schemas/tidas_data_types.json +245 -30
  15. package/dist/runtime-assets/tidas/schemas/tidas_flowproperties.json +5 -1
  16. package/dist/runtime-assets/tidas/schemas/tidas_flows.json +255 -132
  17. package/dist/runtime-assets/tidas/schemas/tidas_flows_elementary_category.json +71 -1
  18. package/dist/runtime-assets/tidas/schemas/tidas_lciamethods.json +48 -76
  19. package/dist/runtime-assets/tidas/schemas/tidas_lifecyclemodels.json +244 -121
  20. package/dist/runtime-assets/tidas/schemas/tidas_locations_category.json +8 -4
  21. package/dist/runtime-assets/tidas/schemas/tidas_processes.json +200 -116
  22. package/dist/runtime-assets/tidas/schemas/tidas_sources.json +28 -7
  23. package/dist/runtime-assets/tidas/schemas/tidas_unitgroups.json +5 -1
  24. package/dist/runtime-assets/tidas/schemas_zh/tidas_contacts.json +294 -0
  25. package/dist/runtime-assets/tidas/schemas_zh/tidas_contacts_category.json +126 -0
  26. package/dist/runtime-assets/tidas/schemas_zh/tidas_data_types.json +599 -0
  27. package/dist/runtime-assets/tidas/schemas_zh/tidas_flowproperties.json +307 -0
  28. package/dist/runtime-assets/tidas/schemas_zh/tidas_flowproperties_category.json +61 -0
  29. package/dist/runtime-assets/tidas/schemas_zh/tidas_flows.json +845 -0
  30. package/dist/runtime-assets/tidas/schemas_zh/tidas_flows_elementary_category.json +790 -0
  31. package/dist/runtime-assets/tidas/schemas_zh/tidas_flows_product_category.json +59623 -0
  32. package/dist/runtime-assets/tidas/schemas_zh/tidas_lciamethods.json +1266 -0
  33. package/dist/runtime-assets/tidas/schemas_zh/tidas_lciamethods_category.json +685 -0
  34. package/dist/runtime-assets/tidas/schemas_zh/tidas_lifecyclemodels.json +1453 -0
  35. package/dist/runtime-assets/tidas/schemas_zh/tidas_locations_category.json +2597 -0
  36. package/dist/runtime-assets/tidas/schemas_zh/tidas_processes.json +1686 -0
  37. package/dist/runtime-assets/tidas/schemas_zh/tidas_processes_category.json +10795 -0
  38. package/dist/runtime-assets/tidas/schemas_zh/tidas_sources.json +249 -0
  39. package/dist/runtime-assets/tidas/schemas_zh/tidas_sources_category.json +100 -0
  40. package/dist/runtime-assets/tidas/schemas_zh/tidas_unitgroups.json +342 -0
  41. package/dist/runtime-assets/tidas/schemas_zh/tidas_unitgroups_category.json +61 -0
  42. package/dist/schemas/tidas_contacts.schema.d.ts +20 -10
  43. package/dist/schemas/tidas_contacts.schema.d.ts.map +1 -1
  44. package/dist/schemas/tidas_contacts.schema.js +1 -1
  45. package/dist/schemas/tidas_contacts.schema.js.map +1 -1
  46. package/dist/schemas/tidas_data_types.schema.d.ts +10 -6
  47. package/dist/schemas/tidas_data_types.schema.d.ts.map +1 -1
  48. package/dist/schemas/tidas_data_types.schema.js +32 -15
  49. package/dist/schemas/tidas_data_types.schema.js.map +1 -1
  50. package/dist/schemas/tidas_flowproperties.schema.d.ts +28 -14
  51. package/dist/schemas/tidas_flowproperties.schema.d.ts.map +1 -1
  52. package/dist/schemas/tidas_flowproperties.schema.js +1 -1
  53. package/dist/schemas/tidas_flowproperties.schema.js.map +1 -1
  54. package/dist/schemas/tidas_flows.schema.d.ts +40 -22
  55. package/dist/schemas/tidas_flows.schema.d.ts.map +1 -1
  56. package/dist/schemas/tidas_flows.schema.js +29 -3
  57. package/dist/schemas/tidas_flows.schema.js.map +1 -1
  58. package/dist/schemas/tidas_flows_elementary_category.schema.d.ts.map +1 -1
  59. package/dist/schemas/tidas_flows_elementary_category.schema.js +50 -0
  60. package/dist/schemas/tidas_flows_elementary_category.schema.js.map +1 -1
  61. package/dist/schemas/tidas_lciamethods.schema.d.ts +117 -63
  62. package/dist/schemas/tidas_lciamethods.schema.d.ts.map +1 -1
  63. package/dist/schemas/tidas_lciamethods.schema.js +36 -62
  64. package/dist/schemas/tidas_lciamethods.schema.js.map +1 -1
  65. package/dist/schemas/tidas_lifecyclemodels.schema.d.ts +98 -39
  66. package/dist/schemas/tidas_lifecyclemodels.schema.d.ts.map +1 -1
  67. package/dist/schemas/tidas_lifecyclemodels.schema.js +50 -24
  68. package/dist/schemas/tidas_lifecyclemodels.schema.js.map +1 -1
  69. package/dist/schemas/tidas_locations_category.schema.d.ts.map +1 -1
  70. package/dist/schemas/tidas_locations_category.schema.js +4 -3
  71. package/dist/schemas/tidas_locations_category.schema.js.map +1 -1
  72. package/dist/schemas/tidas_processes.schema.d.ts +130 -60
  73. package/dist/schemas/tidas_processes.schema.d.ts.map +1 -1
  74. package/dist/schemas/tidas_processes.schema.js +47 -27
  75. package/dist/schemas/tidas_processes.schema.js.map +1 -1
  76. package/dist/schemas/tidas_sources.schema.d.ts +24 -12
  77. package/dist/schemas/tidas_sources.schema.d.ts.map +1 -1
  78. package/dist/schemas/tidas_sources.schema.js +9 -4
  79. package/dist/schemas/tidas_sources.schema.js.map +1 -1
  80. package/dist/schemas/tidas_unitgroups.schema.d.ts +20 -10
  81. package/dist/schemas/tidas_unitgroups.schema.d.ts.map +1 -1
  82. package/dist/schemas/tidas_unitgroups.schema.js +1 -1
  83. package/dist/schemas/tidas_unitgroups.schema.js.map +1 -1
  84. package/dist/types/tidas_contacts.d.ts +2 -2
  85. package/dist/types/tidas_contacts.d.ts.map +1 -1
  86. package/dist/types/tidas_data_types.d.ts +19 -7
  87. package/dist/types/tidas_data_types.d.ts.map +1 -1
  88. package/dist/types/tidas_flowproperties.d.ts +2 -2
  89. package/dist/types/tidas_flowproperties.d.ts.map +1 -1
  90. package/dist/types/tidas_flows.d.ts +4 -4
  91. package/dist/types/tidas_flows.d.ts.map +1 -1
  92. package/dist/types/tidas_flows_elementary_category.d.ts +40 -0
  93. package/dist/types/tidas_flows_elementary_category.d.ts.map +1 -1
  94. package/dist/types/tidas_lciamethods.d.ts +11 -11
  95. package/dist/types/tidas_lciamethods.d.ts.map +1 -1
  96. package/dist/types/tidas_lifecyclemodels.d.ts +27 -4
  97. package/dist/types/tidas_lifecyclemodels.d.ts.map +1 -1
  98. package/dist/types/tidas_locations_category.d.ts +1 -1
  99. package/dist/types/tidas_locations_category.d.ts.map +1 -1
  100. package/dist/types/tidas_processes.d.ts +18 -4
  101. package/dist/types/tidas_processes.d.ts.map +1 -1
  102. package/dist/types/tidas_sources.d.ts +5 -3
  103. package/dist/types/tidas_sources.d.ts.map +1 -1
  104. package/dist/types/tidas_unitgroups.d.ts +2 -2
  105. package/dist/types/tidas_unitgroups.d.ts.map +1 -1
  106. package/package.json +1 -1
@@ -63,9 +63,7 @@
63
63
  }
64
64
  },
65
65
  "required": [
66
- "baseName",
67
- "treatmentStandardsRoutes",
68
- "mixAndLocationTypes"
66
+ "baseName"
69
67
  ]
70
68
  },
71
69
  "common:synonyms": {
@@ -171,147 +169,208 @@
171
169
  ]
172
170
  },
173
171
  "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"
172
+ "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.",
173
+ "anyOf": [
174
+ {
175
+ "type": "object",
176
+ "properties": {
177
+ "common:class": {
178
+ "type": "array",
179
+ "items": [
180
+ {
181
+ "type": "object",
182
+ "properties": {
183
+ "@level": {
184
+ "$ref": "tidas_data_types.json#/$defs/LevelType",
185
+ "const": "0"
186
+ },
187
+ "@classId": {
188
+ "type": "string"
189
+ },
190
+ "#text": {
191
+ "type": "string"
192
+ }
193
+ },
194
+ "required": [
195
+ "@level",
196
+ "@classId",
197
+ "#text"
198
+ ],
199
+ "dependencies": {
200
+ "@level": {
201
+ "$ref": "./tidas_flows_product_category.json"
202
+ }
203
+ }
185
204
  },
186
- "@classId": {
187
- "type": "string"
205
+ {
206
+ "type": "object",
207
+ "properties": {
208
+ "@level": {
209
+ "$ref": "tidas_data_types.json#/$defs/LevelType",
210
+ "const": "1"
211
+ },
212
+ "@classId": {
213
+ "type": "string"
214
+ },
215
+ "#text": {
216
+ "type": "string"
217
+ }
218
+ },
219
+ "required": [
220
+ "@level",
221
+ "@classId",
222
+ "#text"
223
+ ],
224
+ "dependencies": {
225
+ "@level": {
226
+ "$ref": "./tidas_flows_product_category.json"
227
+ }
228
+ }
188
229
  },
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"
230
+ {
231
+ "type": "object",
232
+ "properties": {
233
+ "@level": {
234
+ "$ref": "tidas_data_types.json#/$defs/LevelType",
235
+ "const": "2"
236
+ },
237
+ "@classId": {
238
+ "type": "string"
239
+ },
240
+ "#text": {
241
+ "type": "string"
242
+ }
243
+ },
244
+ "required": [
245
+ "@level",
246
+ "@classId",
247
+ "#text"
248
+ ],
249
+ "dependencies": {
250
+ "@level": {
251
+ "$ref": "./tidas_flows_product_category.json"
252
+ }
253
+ }
210
254
  },
211
- "@classId": {
212
- "type": "string"
255
+ {
256
+ "type": "object",
257
+ "properties": {
258
+ "@level": {
259
+ "$ref": "tidas_data_types.json#/$defs/LevelType",
260
+ "const": "3"
261
+ },
262
+ "@classId": {
263
+ "type": "string"
264
+ },
265
+ "#text": {
266
+ "type": "string"
267
+ }
268
+ },
269
+ "required": [
270
+ "@level",
271
+ "@classId",
272
+ "#text"
273
+ ],
274
+ "dependencies": {
275
+ "@level": {
276
+ "$ref": "./tidas_flows_product_category.json"
277
+ }
278
+ }
213
279
  },
214
- "#text": {
215
- "type": "string"
280
+ {
281
+ "type": "object",
282
+ "properties": {
283
+ "@level": {
284
+ "$ref": "tidas_data_types.json#/$defs/LevelType",
285
+ "const": "4"
286
+ },
287
+ "@classId": {
288
+ "type": "string"
289
+ },
290
+ "#text": {
291
+ "type": "string"
292
+ }
293
+ },
294
+ "required": [
295
+ "@level",
296
+ "@classId",
297
+ "#text"
298
+ ],
299
+ "dependencies": {
300
+ "@level": {
301
+ "$ref": "./tidas_flows_product_category.json"
302
+ }
303
+ }
216
304
  }
217
- },
218
- "required": [
219
- "@level",
220
- "@classId",
221
- "#text"
222
305
  ],
223
- "dependencies": {
224
- "@level": {
225
- "$ref": "./tidas_flows_product_category.json"
226
- }
227
- }
306
+ "uniqueItems": true,
307
+ "maxItems": 5,
308
+ "additionalItems": false
228
309
  },
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
- }
310
+ "common:other": {
311
+ "$ref": "tidas_data_types.json#/$defs/CommonOther"
253
312
  },
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
- }
313
+ "@name": {
314
+ "type": "string",
315
+ "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
316
  },
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
- }
317
+ "@classes": {
318
+ "type": "string",
319
+ "description": "Optional URL or identifier of the classification file/system."
320
+ }
321
+ },
322
+ "required": [
323
+ "common:class"
324
+ ]
325
+ },
326
+ {
327
+ "type": "array",
328
+ "minItems": 1,
329
+ "items": {
330
+ "type": "object",
331
+ "description": "One named classification system (e.g. CPC or HS). Used in the array form to let multiple systems coexist.",
332
+ "properties": {
333
+ "@name": {
334
+ "type": "string",
335
+ "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
336
  },
293
- "required": [
294
- "@level",
295
- "@classId",
296
- "#text"
297
- ],
298
- "dependencies": {
299
- "@level": {
300
- "$ref": "./tidas_flows_product_category.json"
337
+ "@classes": {
338
+ "type": "string",
339
+ "description": "Optional URL or identifier of the classification file/system."
340
+ },
341
+ "common:class": {
342
+ "type": "array",
343
+ "minItems": 1,
344
+ "items": {
345
+ "type": "object",
346
+ "properties": {
347
+ "@level": {
348
+ "$ref": "tidas_data_types.json#/$defs/LevelType"
349
+ },
350
+ "@classId": {
351
+ "type": "string"
352
+ },
353
+ "#text": {
354
+ "type": "string"
355
+ }
356
+ },
357
+ "required": [
358
+ "@level",
359
+ "@classId",
360
+ "#text"
361
+ ]
301
362
  }
363
+ },
364
+ "common:other": {
365
+ "$ref": "tidas_data_types.json#/$defs/CommonOther"
302
366
  }
303
- }
304
- ],
305
- "uniqueItems": true,
306
- "maxItems": 5,
307
- "additionalItems": false
308
- },
309
- "common:other": {
310
- "$ref": "tidas_data_types.json#/$defs/CommonOther"
367
+ },
368
+ "required": [
369
+ "@name",
370
+ "common:class"
371
+ ]
372
+ }
311
373
  }
312
- },
313
- "required": [
314
- "common:class"
315
374
  ]
316
375
  }
317
376
  },
@@ -529,7 +588,11 @@
529
588
  "type": "object",
530
589
  "properties": {
531
590
  "common:dataSetVersion": {
532
- "type": "string",
591
+ "allOf": [
592
+ {
593
+ "$ref": "tidas_data_types.json#/$defs/Version"
594
+ }
595
+ ],
533
596
  "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
597
  },
535
598
  "common:referenceToPrecedingDataSetVersion": {
@@ -701,6 +764,66 @@
701
764
  "$ref": "tidas_data_types.json#/$defs/CommonOther"
702
765
  }
703
766
  },
767
+ "allOf": [
768
+ {
769
+ "if": {
770
+ "properties": {
771
+ "modellingAndValidation": {
772
+ "properties": {
773
+ "LCIMethod": {
774
+ "properties": {
775
+ "typeOfDataSet": {
776
+ "enum": [
777
+ "Product flow",
778
+ "Waste flow",
779
+ "Other flow"
780
+ ]
781
+ }
782
+ },
783
+ "required": [
784
+ "typeOfDataSet"
785
+ ]
786
+ }
787
+ },
788
+ "required": [
789
+ "LCIMethod"
790
+ ]
791
+ }
792
+ },
793
+ "required": [
794
+ "modellingAndValidation"
795
+ ]
796
+ },
797
+ "then": {
798
+ "properties": {
799
+ "flowInformation": {
800
+ "properties": {
801
+ "dataSetInformation": {
802
+ "properties": {
803
+ "name": {
804
+ "required": [
805
+ "baseName",
806
+ "treatmentStandardsRoutes",
807
+ "mixAndLocationTypes"
808
+ ]
809
+ }
810
+ },
811
+ "required": [
812
+ "name"
813
+ ]
814
+ }
815
+ },
816
+ "required": [
817
+ "dataSetInformation"
818
+ ]
819
+ }
820
+ },
821
+ "required": [
822
+ "flowInformation"
823
+ ]
824
+ }
825
+ }
826
+ ],
704
827
  "required": [
705
828
  "@xmlns",
706
829
  "@xmlns:common",
@@ -715,6 +715,76 @@
715
715
  "const": "Other elementary flows"
716
716
  }
717
717
  }
718
+ },
719
+ {
720
+ "properties": {
721
+ "@level": {"const": "2"},
722
+ "@catId": {"const": "1.3.6"},
723
+ "#text": {"const": "Emissions to air, indoor"}
724
+ }
725
+ },
726
+ {
727
+ "properties": {
728
+ "@level": {"const": "2"},
729
+ "@catId": {"const": "1.3.7"},
730
+ "#text": {"const": "Emissions to urban air low stack"}
731
+ }
732
+ },
733
+ {
734
+ "properties": {
735
+ "@level": {"const": "2"},
736
+ "@catId": {"const": "1.3.8"},
737
+ "#text": {"const": "Emissions to urban air high stack"}
738
+ }
739
+ },
740
+ {
741
+ "properties": {
742
+ "@level": {"const": "2"},
743
+ "@catId": {"const": "1.3.9"},
744
+ "#text": {"const": "Emissions to urban air very high stack"}
745
+ }
746
+ },
747
+ {
748
+ "properties": {
749
+ "@level": {"const": "2"},
750
+ "@catId": {"const": "1.3.10"},
751
+ "#text": {"const": "Emissions to non-urban air close to ground"}
752
+ }
753
+ },
754
+ {
755
+ "properties": {
756
+ "@level": {"const": "2"},
757
+ "@catId": {"const": "1.3.11"},
758
+ "#text": {"const": "Emissions to non-urban air low stack"}
759
+ }
760
+ },
761
+ {
762
+ "properties": {
763
+ "@level": {"const": "2"},
764
+ "@catId": {"const": "1.3.12"},
765
+ "#text": {"const": "Emissions to non-urban air high stack"}
766
+ }
767
+ },
768
+ {
769
+ "properties": {
770
+ "@level": {"const": "2"},
771
+ "@catId": {"const": "1.3.13"},
772
+ "#text": {"const": "Emissions to non-urban air very high stack"}
773
+ }
774
+ },
775
+ {
776
+ "properties": {
777
+ "@level": {"const": "1"},
778
+ "@catId": {"const": "1.4"},
779
+ "#text": {"const": "Emissions to industrial soil"}
780
+ }
781
+ },
782
+ {
783
+ "properties": {
784
+ "@level": {"const": "2"},
785
+ "@catId": {"const": "1.4.1"},
786
+ "#text": {"const": "Other emissions to industrial soil"}
787
+ }
718
788
  }
719
789
  ]
720
- }
790
+ }