@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
@@ -81,122 +81,182 @@
81
81
  "properties": {
82
82
  "common:classification": {
83
83
  "description": "Optional statistical or other classification of the data set. Typically also used for structuring LCA databases.",
84
- "type": "object",
85
- "properties": {
86
- "common:class": {
87
- "type": "array",
88
- "items": [
89
- {
90
- "type": "object",
91
- "properties": {
92
- "@level": {
93
- "$ref": "tidas_data_types.json#/$defs/LevelType",
94
- "const": "0"
95
- },
96
- "@classId": {
97
- "type": "string"
84
+ "anyOf": [
85
+ {
86
+ "type": "object",
87
+ "properties": {
88
+ "common:class": {
89
+ "type": "array",
90
+ "items": [
91
+ {
92
+ "type": "object",
93
+ "properties": {
94
+ "@level": {
95
+ "$ref": "tidas_data_types.json#/$defs/LevelType",
96
+ "const": "0"
97
+ },
98
+ "@classId": {
99
+ "type": "string"
100
+ },
101
+ "#text": {
102
+ "type": "string"
103
+ }
104
+ },
105
+ "dependencies": {
106
+ "@level": {
107
+ "$ref": "./tidas_processes_category.json"
108
+ }
109
+ },
110
+ "required": [
111
+ "@level",
112
+ "@classId",
113
+ "#text"
114
+ ]
98
115
  },
99
- "#text": {
100
- "type": "string"
101
- }
102
- },
103
- "dependencies": {
104
- "@level": {
105
- "$ref": "./tidas_processes_category.json"
106
- }
107
- },
108
- "required": [
109
- "@level",
110
- "@classId",
111
- "#text"
112
- ]
113
- },
114
- {
115
- "type": "object",
116
- "properties": {
117
- "@level": {
118
- "$ref": "tidas_data_types.json#/$defs/LevelType",
119
- "const": "1"
116
+ {
117
+ "type": "object",
118
+ "properties": {
119
+ "@level": {
120
+ "$ref": "tidas_data_types.json#/$defs/LevelType",
121
+ "const": "1"
122
+ },
123
+ "@classId": {
124
+ "type": "string"
125
+ },
126
+ "#text": {
127
+ "type": "string"
128
+ }
129
+ },
130
+ "dependencies": {
131
+ "@level": {
132
+ "$ref": "./tidas_processes_category.json"
133
+ }
134
+ },
135
+ "required": [
136
+ "@level",
137
+ "@classId",
138
+ "#text"
139
+ ]
120
140
  },
121
- "@classId": {
122
- "type": "string"
141
+ {
142
+ "type": "object",
143
+ "properties": {
144
+ "@level": {
145
+ "$ref": "tidas_data_types.json#/$defs/LevelType",
146
+ "const": "2"
147
+ },
148
+ "@classId": {
149
+ "type": "string"
150
+ },
151
+ "#text": {
152
+ "type": "string"
153
+ }
154
+ },
155
+ "dependencies": {
156
+ "@level": {
157
+ "$ref": "./tidas_processes_category.json"
158
+ }
159
+ },
160
+ "required": [
161
+ "@level",
162
+ "@classId",
163
+ "#text"
164
+ ]
123
165
  },
124
- "#text": {
125
- "type": "string"
126
- }
127
- },
128
- "dependencies": {
129
- "@level": {
130
- "$ref": "./tidas_processes_category.json"
166
+ {
167
+ "type": "object",
168
+ "properties": {
169
+ "@level": {
170
+ "$ref": "tidas_data_types.json#/$defs/LevelType",
171
+ "const": "3"
172
+ },
173
+ "@classId": {
174
+ "type": "string"
175
+ },
176
+ "#text": {
177
+ "type": "string"
178
+ }
179
+ },
180
+ "dependencies": {
181
+ "@level": {
182
+ "$ref": "./tidas_processes_category.json"
183
+ }
184
+ },
185
+ "required": [
186
+ "@level",
187
+ "@classId",
188
+ "#text"
189
+ ]
131
190
  }
132
- },
133
- "required": [
134
- "@level",
135
- "@classId",
136
- "#text"
137
- ]
191
+ ],
192
+ "uniqueItems": true,
193
+ "maxItems": 4,
194
+ "additionalItems": false
138
195
  },
139
- {
140
- "type": "object",
141
- "properties": {
142
- "@level": {
143
- "$ref": "tidas_data_types.json#/$defs/LevelType",
144
- "const": "2"
145
- },
146
- "@classId": {
147
- "type": "string"
148
- },
149
- "#text": {
150
- "type": "string"
151
- }
152
- },
153
- "dependencies": {
154
- "@level": {
155
- "$ref": "./tidas_processes_category.json"
156
- }
157
- },
158
- "required": [
159
- "@level",
160
- "@classId",
161
- "#text"
162
- ]
196
+ "common:other": {
197
+ "$ref": "tidas_data_types.json#/$defs/CommonOther"
163
198
  },
164
- {
165
- "type": "object",
166
- "properties": {
167
- "@level": {
168
- "$ref": "tidas_data_types.json#/$defs/LevelType",
169
- "const": "3"
170
- },
171
- "@classId": {
172
- "type": "string"
173
- },
174
- "#text": {
175
- "type": "string"
176
- }
199
+ "@name": {
200
+ "type": "string",
201
+ "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."
202
+ },
203
+ "@classes": {
204
+ "type": "string",
205
+ "description": "Optional URL or identifier of the classification file/system."
206
+ }
207
+ },
208
+ "required": [
209
+ "common:class"
210
+ ]
211
+ },
212
+ {
213
+ "type": "array",
214
+ "minItems": 1,
215
+ "items": {
216
+ "type": "object",
217
+ "description": "One named classification system (e.g. CPC or HS). Used in the array form to let multiple systems coexist.",
218
+ "properties": {
219
+ "@name": {
220
+ "type": "string",
221
+ "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."
222
+ },
223
+ "@classes": {
224
+ "type": "string",
225
+ "description": "Optional URL or identifier of the classification file/system."
177
226
  },
178
- "dependencies": {
179
- "@level": {
180
- "$ref": "./tidas_processes_category.json"
227
+ "common:class": {
228
+ "type": "array",
229
+ "minItems": 1,
230
+ "items": {
231
+ "type": "object",
232
+ "properties": {
233
+ "@level": {
234
+ "$ref": "tidas_data_types.json#/$defs/LevelType"
235
+ },
236
+ "@classId": {
237
+ "type": "string"
238
+ },
239
+ "#text": {
240
+ "type": "string"
241
+ }
242
+ },
243
+ "required": [
244
+ "@level",
245
+ "@classId",
246
+ "#text"
247
+ ]
181
248
  }
182
249
  },
183
- "required": [
184
- "@level",
185
- "@classId",
186
- "#text"
187
- ]
188
- }
189
- ],
190
- "uniqueItems": true,
191
- "maxItems": 4,
192
- "additionalItems": false
193
- },
194
- "common:other": {
195
- "$ref": "tidas_data_types.json#/$defs/CommonOther"
250
+ "common:other": {
251
+ "$ref": "tidas_data_types.json#/$defs/CommonOther"
252
+ }
253
+ },
254
+ "required": [
255
+ "@name",
256
+ "common:class"
257
+ ]
258
+ }
196
259
  }
197
- },
198
- "required": [
199
- "common:class"
200
260
  ]
201
261
  }
202
262
  },
@@ -232,8 +292,7 @@
232
292
  "properties": {
233
293
  "referenceToReferenceProcess": {
234
294
  "description": "Process instance that scales the life cycle model and thereby all directly and indirectly connected process instances of the model; it is often a process instance at the \"end\" of the life cycle model chain, or the process that provides the delivered good, service or function of the model.",
235
- "type": "string",
236
- "pattern": "^-?\\d+$"
295
+ "type": "integer"
237
296
  },
238
297
  "common:other": {
239
298
  "$ref": "tidas_data_types.json#/$defs/CommonOther"
@@ -428,11 +487,16 @@
428
487
  "true",
429
488
  "false"
430
489
  ]
490
+ },
491
+ "@version": {
492
+ "$ref": "tidas_data_types.json#/$defs/Version",
493
+ "description": "Version number of the referenced data set."
431
494
  }
432
495
  },
433
496
  "required": [
434
497
  "@id",
435
- "@flowUUID"
498
+ "@flowUUID",
499
+ "@version"
436
500
  ]
437
501
  },
438
502
  {
@@ -460,20 +524,30 @@
460
524
  "true",
461
525
  "false"
462
526
  ]
527
+ },
528
+ "@version": {
529
+ "$ref": "tidas_data_types.json#/$defs/Version",
530
+ "description": "Version number of the referenced data set."
463
531
  }
464
532
  },
465
533
  "required": [
466
534
  "@id",
467
- "@flowUUID"
535
+ "@flowUUID",
536
+ "@version"
468
537
  ]
469
538
  }
470
539
  }
471
540
  ]
541
+ },
542
+ "@version": {
543
+ "$ref": "tidas_data_types.json#/$defs/Version",
544
+ "description": "Version number of the referenced data set."
472
545
  }
473
546
  },
474
547
  "required": [
475
548
  "@flowUUID",
476
- "downstreamProcess"
549
+ "downstreamProcess",
550
+ "@version"
477
551
  ]
478
552
  },
479
553
  {
@@ -519,11 +593,16 @@
519
593
  "true",
520
594
  "false"
521
595
  ]
596
+ },
597
+ "@version": {
598
+ "$ref": "tidas_data_types.json#/$defs/Version",
599
+ "description": "Version number of the referenced data set."
522
600
  }
523
601
  },
524
602
  "required": [
525
603
  "@id",
526
- "@flowUUID"
604
+ "@flowUUID",
605
+ "@version"
527
606
  ]
528
607
  },
529
608
  {
@@ -551,20 +630,30 @@
551
630
  "true",
552
631
  "false"
553
632
  ]
633
+ },
634
+ "@version": {
635
+ "$ref": "tidas_data_types.json#/$defs/Version",
636
+ "description": "Version number of the referenced data set."
554
637
  }
555
638
  },
556
639
  "required": [
557
640
  "@id",
558
- "@flowUUID"
641
+ "@flowUUID",
642
+ "@version"
559
643
  ]
560
644
  }
561
645
  }
562
646
  ]
647
+ },
648
+ "@version": {
649
+ "$ref": "tidas_data_types.json#/$defs/Version",
650
+ "description": "Version number of the referenced data set."
563
651
  }
564
652
  },
565
653
  "required": [
566
654
  "@flowUUID",
567
- "downstreamProcess"
655
+ "downstreamProcess",
656
+ "@version"
568
657
  ]
569
658
  }
570
659
  }
@@ -725,11 +814,16 @@
725
814
  "true",
726
815
  "false"
727
816
  ]
817
+ },
818
+ "@version": {
819
+ "$ref": "tidas_data_types.json#/$defs/Version",
820
+ "description": "Version number of the referenced data set."
728
821
  }
729
822
  },
730
823
  "required": [
731
824
  "@id",
732
- "@flowUUID"
825
+ "@flowUUID",
826
+ "@version"
733
827
  ]
734
828
  },
735
829
  {
@@ -757,20 +851,30 @@
757
851
  "true",
758
852
  "false"
759
853
  ]
854
+ },
855
+ "@version": {
856
+ "$ref": "tidas_data_types.json#/$defs/Version",
857
+ "description": "Version number of the referenced data set."
760
858
  }
761
859
  },
762
860
  "required": [
763
861
  "@id",
764
- "@flowUUID"
862
+ "@flowUUID",
863
+ "@version"
765
864
  ]
766
865
  }
767
866
  }
768
867
  ]
868
+ },
869
+ "@version": {
870
+ "$ref": "tidas_data_types.json#/$defs/Version",
871
+ "description": "Version number of the referenced data set."
769
872
  }
770
873
  },
771
874
  "required": [
772
875
  "@flowUUID",
773
- "downstreamProcess"
876
+ "downstreamProcess",
877
+ "@version"
774
878
  ]
775
879
  },
776
880
  {
@@ -816,11 +920,16 @@
816
920
  "true",
817
921
  "false"
818
922
  ]
923
+ },
924
+ "@version": {
925
+ "$ref": "tidas_data_types.json#/$defs/Version",
926
+ "description": "Version number of the referenced data set."
819
927
  }
820
928
  },
821
929
  "required": [
822
930
  "@id",
823
- "@flowUUID"
931
+ "@flowUUID",
932
+ "@version"
824
933
  ]
825
934
  },
826
935
  {
@@ -848,20 +957,30 @@
848
957
  "true",
849
958
  "false"
850
959
  ]
960
+ },
961
+ "@version": {
962
+ "$ref": "tidas_data_types.json#/$defs/Version",
963
+ "description": "Version number of the referenced data set."
851
964
  }
852
965
  },
853
966
  "required": [
854
967
  "@id",
855
- "@flowUUID"
968
+ "@flowUUID",
969
+ "@version"
856
970
  ]
857
971
  }
858
972
  }
859
973
  ]
974
+ },
975
+ "@version": {
976
+ "$ref": "tidas_data_types.json#/$defs/Version",
977
+ "description": "Version number of the referenced data set."
860
978
  }
861
979
  },
862
980
  "required": [
863
981
  "@flowUUID",
864
- "downstreamProcess"
982
+ "downstreamProcess",
983
+ "@version"
865
984
  ]
866
985
  }
867
986
  }
@@ -1241,7 +1360,11 @@
1241
1360
  "type": "object",
1242
1361
  "properties": {
1243
1362
  "common:dataSetVersion": {
1244
- "type": "string",
1363
+ "allOf": [
1364
+ {
1365
+ "$ref": "tidas_data_types.json#/$defs/Version"
1366
+ }
1367
+ ],
1245
1368
  "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."
1246
1369
  },
1247
1370
  "common:referenceToPrecedingDataSetVersion": {
@@ -9,6 +9,10 @@
9
9
  "const": "GLO",
10
10
  "description": "Global"
11
11
  },
12
+ {
13
+ "const": "RoW",
14
+ "description": "Rest of World (residual region: global minus the regions explicitly modelled elsewhere; not equivalent to GLO)"
15
+ },
12
16
  {
13
17
  "const": "RAF",
14
18
  "description": "Africa"
@@ -2578,16 +2582,16 @@
2578
2582
  "description": "Altay Diqu,Xinjiang Uygur Autonomous Region,China"
2579
2583
  },
2580
2584
  {
2581
- "const": "CN-TW",
2585
+ "const": "TW",
2582
2586
  "description": "Taiwan Province,China"
2583
2587
  },
2584
2588
  {
2585
- "const": "CN-HK",
2589
+ "const": "HK",
2586
2590
  "description": "Hong Kong Special Administrative Region of the People's Republic of China"
2587
2591
  },
2588
2592
  {
2589
- "const": "CN-MO",
2593
+ "const": "MO",
2590
2594
  "description": "Macao Special Administrative Region of the People's Republic of China"
2591
2595
  }
2592
2596
  ]
2593
- }
2597
+ }