@tiangong-lca/tidas-sdk 0.4.1 → 0.5.0

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 (73) hide show
  1. package/dist/contracts/public-rules-assets/public-rules.source.v1.json +1 -1
  2. package/dist/core/entities/TidasFlow.js +1 -1
  3. package/dist/core/entities/TidasFlow.js.map +1 -1
  4. package/dist/core/validation/json-schema.d.ts +2 -0
  5. package/dist/core/validation/json-schema.d.ts.map +1 -1
  6. package/dist/core/validation/json-schema.js +10 -0
  7. package/dist/core/validation/json-schema.js.map +1 -1
  8. package/dist/runtime-assets/tidas/schema.lock.json +61 -61
  9. package/dist/runtime-assets/tidas/schemas/tidas_contacts.json +110 -49
  10. package/dist/runtime-assets/tidas/schemas/tidas_flowproperties.json +78 -20
  11. package/dist/runtime-assets/tidas/schemas/tidas_flows.json +118 -91
  12. package/dist/runtime-assets/tidas/schemas/tidas_lciamethods.json +1388 -283
  13. package/dist/runtime-assets/tidas/schemas/tidas_lifecyclemodels.json +506 -185
  14. package/dist/runtime-assets/tidas/schemas/tidas_processes.json +296 -115
  15. package/dist/runtime-assets/tidas/schemas/tidas_sources.json +80 -22
  16. package/dist/runtime-assets/tidas/schemas/tidas_unitgroups.json +102 -29
  17. package/dist/runtime-assets/tidas/schemas_zh/tidas_contacts.json +110 -49
  18. package/dist/runtime-assets/tidas/schemas_zh/tidas_flowproperties.json +78 -20
  19. package/dist/runtime-assets/tidas/schemas_zh/tidas_flows.json +118 -91
  20. package/dist/runtime-assets/tidas/schemas_zh/tidas_lciamethods.json +1388 -283
  21. package/dist/runtime-assets/tidas/schemas_zh/tidas_lifecyclemodels.json +506 -185
  22. package/dist/runtime-assets/tidas/schemas_zh/tidas_processes.json +296 -115
  23. package/dist/runtime-assets/tidas/schemas_zh/tidas_sources.json +80 -22
  24. package/dist/runtime-assets/tidas/schemas_zh/tidas_unitgroups.json +102 -29
  25. package/dist/schemas/tidas_contacts.schema.d.ts +14 -2
  26. package/dist/schemas/tidas_contacts.schema.d.ts.map +1 -1
  27. package/dist/schemas/tidas_contacts.schema.js +33 -14
  28. package/dist/schemas/tidas_contacts.schema.js.map +1 -1
  29. package/dist/schemas/tidas_flowproperties.schema.d.ts +13 -2
  30. package/dist/schemas/tidas_flowproperties.schema.d.ts.map +1 -1
  31. package/dist/schemas/tidas_flowproperties.schema.js +26 -8
  32. package/dist/schemas/tidas_flowproperties.schema.js.map +1 -1
  33. package/dist/schemas/tidas_flows.schema.d.ts +10 -3
  34. package/dist/schemas/tidas_flows.schema.d.ts.map +1 -1
  35. package/dist/schemas/tidas_flows.schema.js +31 -37
  36. package/dist/schemas/tidas_flows.schema.js.map +1 -1
  37. package/dist/schemas/tidas_lciamethods.schema.d.ts +13698 -8203
  38. package/dist/schemas/tidas_lciamethods.schema.d.ts.map +1 -1
  39. package/dist/schemas/tidas_lciamethods.schema.js +639 -162
  40. package/dist/schemas/tidas_lciamethods.schema.js.map +1 -1
  41. package/dist/schemas/tidas_lifecyclemodels.schema.d.ts +1658 -25
  42. package/dist/schemas/tidas_lifecyclemodels.schema.d.ts.map +1 -1
  43. package/dist/schemas/tidas_lifecyclemodels.schema.js +204 -120
  44. package/dist/schemas/tidas_lifecyclemodels.schema.js.map +1 -1
  45. package/dist/schemas/tidas_processes.schema.d.ts +785 -11
  46. package/dist/schemas/tidas_processes.schema.d.ts.map +1 -1
  47. package/dist/schemas/tidas_processes.schema.js +185 -87
  48. package/dist/schemas/tidas_processes.schema.js.map +1 -1
  49. package/dist/schemas/tidas_sources.schema.d.ts +13 -2
  50. package/dist/schemas/tidas_sources.schema.d.ts.map +1 -1
  51. package/dist/schemas/tidas_sources.schema.js +26 -8
  52. package/dist/schemas/tidas_sources.schema.js.map +1 -1
  53. package/dist/schemas/tidas_unitgroups.schema.d.ts +22 -10
  54. package/dist/schemas/tidas_unitgroups.schema.d.ts.map +1 -1
  55. package/dist/schemas/tidas_unitgroups.schema.js +35 -20
  56. package/dist/schemas/tidas_unitgroups.schema.js.map +1 -1
  57. package/dist/types/tidas_contacts.d.ts +13 -1
  58. package/dist/types/tidas_contacts.d.ts.map +1 -1
  59. package/dist/types/tidas_flowproperties.d.ts +12 -1
  60. package/dist/types/tidas_flowproperties.d.ts.map +1 -1
  61. package/dist/types/tidas_flows.d.ts +26 -2
  62. package/dist/types/tidas_flows.d.ts.map +1 -1
  63. package/dist/types/tidas_lciamethods.d.ts +119 -16
  64. package/dist/types/tidas_lciamethods.d.ts.map +1 -1
  65. package/dist/types/tidas_lifecyclemodels.d.ts +43 -14
  66. package/dist/types/tidas_lifecyclemodels.d.ts.map +1 -1
  67. package/dist/types/tidas_processes.d.ts +25 -7
  68. package/dist/types/tidas_processes.d.ts.map +1 -1
  69. package/dist/types/tidas_sources.d.ts +12 -1
  70. package/dist/types/tidas_sources.d.ts.map +1 -1
  71. package/dist/types/tidas_unitgroups.d.ts +19 -7
  72. package/dist/types/tidas_unitgroups.d.ts.map +1 -1
  73. package/package.json +1 -1
@@ -49,38 +49,96 @@
49
49
  "properties": {
50
50
  "common:classification": {
51
51
  "description": "Optional statistical or other classification of the data set. Typically also used for structuring LCA databases.",
52
- "type": "object",
53
- "properties": {
54
- "common:class": {
52
+ "anyOf": [
53
+ {
55
54
  "type": "object",
56
55
  "properties": {
57
- "@level": {
58
- "$ref": "tidas_data_types.json#/$defs/LevelType"
56
+ "common:class": {
57
+ "type": "object",
58
+ "properties": {
59
+ "@level": {
60
+ "$ref": "tidas_data_types.json#/$defs/LevelType"
61
+ },
62
+ "@classId": {
63
+ "type": "string"
64
+ },
65
+ "#text": {
66
+ "type": "string"
67
+ }
68
+ },
69
+ "dependencies": {
70
+ "@level": {
71
+ "$ref": "./tidas_flowproperties_category.json#/$defs/FlowProperty"
72
+ }
73
+ },
74
+ "required": [
75
+ "@level",
76
+ "@classId",
77
+ "#text"
78
+ ]
79
+ },
80
+ "common:other": {
81
+ "$ref": "tidas_data_types.json#/$defs/CommonOther"
59
82
  },
60
- "@classId": {
83
+ "@name": {
61
84
  "type": "string"
62
85
  },
63
- "#text": {
86
+ "@classes": {
64
87
  "type": "string"
65
88
  }
66
89
  },
67
- "dependencies": {
68
- "@level": {
69
- "$ref": "./tidas_flowproperties_category.json#/$defs/FlowProperty"
70
- }
71
- },
72
90
  "required": [
73
- "@level",
74
- "@classId",
75
- "#text"
91
+ "common:class"
76
92
  ]
77
93
  },
78
- "common:other": {
79
- "$ref": "tidas_data_types.json#/$defs/CommonOther"
94
+ {
95
+ "type": "array",
96
+ "minItems": 1,
97
+ "items": {
98
+ "type": "object",
99
+ "description": "One named classification system (e.g. CPC or HS). Used in the array form to let multiple systems coexist.",
100
+ "properties": {
101
+ "@name": {
102
+ "type": "string",
103
+ "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."
104
+ },
105
+ "@classes": {
106
+ "type": "string",
107
+ "description": "Optional URL or identifier of the classification file/system."
108
+ },
109
+ "common:class": {
110
+ "type": "array",
111
+ "minItems": 1,
112
+ "items": {
113
+ "type": "object",
114
+ "properties": {
115
+ "@level": {
116
+ "$ref": "tidas_data_types.json#/$defs/LevelType"
117
+ },
118
+ "@classId": {
119
+ "type": "string"
120
+ },
121
+ "#text": {
122
+ "type": "string"
123
+ }
124
+ },
125
+ "required": [
126
+ "@level",
127
+ "@classId",
128
+ "#text"
129
+ ]
130
+ }
131
+ },
132
+ "common:other": {
133
+ "$ref": "tidas_data_types.json#/$defs/CommonOther"
134
+ }
135
+ },
136
+ "required": [
137
+ "@name",
138
+ "common:class"
139
+ ]
140
+ }
80
141
  }
81
- },
82
- "required": [
83
- "common:class"
84
142
  ]
85
143
  }
86
144
  },
@@ -75,97 +75,17 @@
75
75
  "description": "Hierachical classification of the Flow property foreseen to be used to structure the Flow property content of the database. (Note: This entry is NOT required for the identification of the Flow property data set. It should nevertheless be avoided to use identical names for Flow properties in the same class.",
76
76
  "properties": {
77
77
  "common:elementaryFlowCategorization": {
78
- "type": "object",
79
- "properties": {
80
- "common:category": {
81
- "type": "array",
82
- "items": [
83
- {
84
- "type": "object",
85
- "properties": {
86
- "@level": {
87
- "$ref": "tidas_data_types.json#/$defs/LevelType",
88
- "const": "0"
89
- },
90
- "@catId": {
91
- "type": "string"
92
- },
93
- "#text": {
94
- "type": "string"
95
- }
96
- },
97
- "required": [
98
- "@level",
99
- "@catId",
100
- "#text"
101
- ],
102
- "dependencies": {
103
- "@level": {
104
- "$ref": "./tidas_flows_elementary_category.json"
105
- }
106
- }
107
- },
108
- {
109
- "type": "object",
110
- "properties": {
111
- "@level": {
112
- "$ref": "tidas_data_types.json#/$defs/LevelType",
113
- "const": "1"
114
- },
115
- "@catId": {
116
- "type": "string"
117
- },
118
- "#text": {
119
- "type": "string"
120
- }
121
- },
122
- "required": [
123
- "@level",
124
- "@catId",
125
- "#text"
126
- ],
127
- "dependencies": {
128
- "@level": {
129
- "$ref": "./tidas_flows_elementary_category.json"
130
- }
131
- }
132
- },
133
- {
134
- "type": "object",
135
- "properties": {
136
- "@level": {
137
- "$ref": "tidas_data_types.json#/$defs/LevelType",
138
- "const": "2"
139
- },
140
- "@catId": {
141
- "type": "string"
142
- },
143
- "#text": {
144
- "type": "string"
145
- }
146
- },
147
- "required": [
148
- "@level",
149
- "@catId",
150
- "#text"
151
- ],
152
- "dependencies": {
153
- "@level": {
154
- "$ref": "./tidas_flows_elementary_category.json"
155
- }
156
- }
157
- }
158
- ],
159
- "uniqueItems": true,
160
- "maxItems": 3,
161
- "additionalItems": false
78
+ "anyOf": [
79
+ {
80
+ "$ref": "#/$defs/ElementaryFlowCategorization"
162
81
  },
163
- "common:other": {
164
- "$ref": "tidas_data_types.json#/$defs/CommonOther"
82
+ {
83
+ "type": "array",
84
+ "minItems": 1,
85
+ "items": {
86
+ "$ref": "#/$defs/ElementaryFlowCategorization"
87
+ }
165
88
  }
166
- },
167
- "required": [
168
- "common:category"
169
89
  ]
170
90
  },
171
91
  "common:classification": {
@@ -427,7 +347,18 @@
427
347
  "type": "object",
428
348
  "properties": {
429
349
  "locationOfSupply": {
430
- "$ref": "tidas_locations_category.json"
350
+ "anyOf": [
351
+ {
352
+ "$ref": "tidas_locations_category.json"
353
+ },
354
+ {
355
+ "type": "array",
356
+ "minItems": 1,
357
+ "items": {
358
+ "$ref": "tidas_locations_category.json"
359
+ }
360
+ }
361
+ ]
431
362
  },
432
363
  "common:other": {
433
364
  "$ref": "tidas_data_types.json#/$defs/CommonOther"
@@ -841,5 +772,101 @@
841
772
  },
842
773
  "required": [
843
774
  "flowDataSet"
844
- ]
775
+ ],
776
+ "$defs": {
777
+ "ElementaryFlowCategorization": {
778
+ "type": "object",
779
+ "properties": {
780
+ "common:category": {
781
+ "type": "array",
782
+ "items": [
783
+ {
784
+ "type": "object",
785
+ "properties": {
786
+ "@level": {
787
+ "$ref": "tidas_data_types.json#/$defs/LevelType",
788
+ "const": "0"
789
+ },
790
+ "@catId": {
791
+ "type": "string"
792
+ },
793
+ "#text": {
794
+ "type": "string"
795
+ }
796
+ },
797
+ "required": [
798
+ "@level",
799
+ "@catId",
800
+ "#text"
801
+ ],
802
+ "dependencies": {
803
+ "@level": {
804
+ "$ref": "./tidas_flows_elementary_category.json"
805
+ }
806
+ }
807
+ },
808
+ {
809
+ "type": "object",
810
+ "properties": {
811
+ "@level": {
812
+ "$ref": "tidas_data_types.json#/$defs/LevelType",
813
+ "const": "1"
814
+ },
815
+ "@catId": {
816
+ "type": "string"
817
+ },
818
+ "#text": {
819
+ "type": "string"
820
+ }
821
+ },
822
+ "required": [
823
+ "@level",
824
+ "@catId",
825
+ "#text"
826
+ ],
827
+ "dependencies": {
828
+ "@level": {
829
+ "$ref": "./tidas_flows_elementary_category.json"
830
+ }
831
+ }
832
+ },
833
+ {
834
+ "type": "object",
835
+ "properties": {
836
+ "@level": {
837
+ "$ref": "tidas_data_types.json#/$defs/LevelType",
838
+ "const": "2"
839
+ },
840
+ "@catId": {
841
+ "type": "string"
842
+ },
843
+ "#text": {
844
+ "type": "string"
845
+ }
846
+ },
847
+ "required": [
848
+ "@level",
849
+ "@catId",
850
+ "#text"
851
+ ],
852
+ "dependencies": {
853
+ "@level": {
854
+ "$ref": "./tidas_flows_elementary_category.json"
855
+ }
856
+ }
857
+ }
858
+ ],
859
+ "uniqueItems": true,
860
+ "maxItems": 3,
861
+ "additionalItems": false
862
+ },
863
+ "common:other": {
864
+ "$ref": "tidas_data_types.json#/$defs/CommonOther"
865
+ }
866
+ },
867
+ "required": [
868
+ "common:category"
869
+ ]
870
+ }
871
+ }
845
872
  }