@tiangong-lca/tidas-sdk 0.4.0 → 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 (75) 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/data/bundled-methodologies.json +1167 -6
  9. package/dist/runtime-assets/tidas/methodologies/tidas_processes.yaml +950 -10
  10. package/dist/runtime-assets/tidas/schema.lock.json +61 -61
  11. package/dist/runtime-assets/tidas/schemas/tidas_contacts.json +110 -49
  12. package/dist/runtime-assets/tidas/schemas/tidas_flowproperties.json +78 -20
  13. package/dist/runtime-assets/tidas/schemas/tidas_flows.json +118 -91
  14. package/dist/runtime-assets/tidas/schemas/tidas_lciamethods.json +1388 -283
  15. package/dist/runtime-assets/tidas/schemas/tidas_lifecyclemodels.json +506 -185
  16. package/dist/runtime-assets/tidas/schemas/tidas_processes.json +338 -121
  17. package/dist/runtime-assets/tidas/schemas/tidas_sources.json +80 -22
  18. package/dist/runtime-assets/tidas/schemas/tidas_unitgroups.json +102 -29
  19. package/dist/runtime-assets/tidas/schemas_zh/tidas_contacts.json +110 -49
  20. package/dist/runtime-assets/tidas/schemas_zh/tidas_flowproperties.json +78 -20
  21. package/dist/runtime-assets/tidas/schemas_zh/tidas_flows.json +118 -91
  22. package/dist/runtime-assets/tidas/schemas_zh/tidas_lciamethods.json +1388 -283
  23. package/dist/runtime-assets/tidas/schemas_zh/tidas_lifecyclemodels.json +506 -185
  24. package/dist/runtime-assets/tidas/schemas_zh/tidas_processes.json +338 -121
  25. package/dist/runtime-assets/tidas/schemas_zh/tidas_sources.json +80 -22
  26. package/dist/runtime-assets/tidas/schemas_zh/tidas_unitgroups.json +102 -29
  27. package/dist/schemas/tidas_contacts.schema.d.ts +14 -2
  28. package/dist/schemas/tidas_contacts.schema.d.ts.map +1 -1
  29. package/dist/schemas/tidas_contacts.schema.js +33 -14
  30. package/dist/schemas/tidas_contacts.schema.js.map +1 -1
  31. package/dist/schemas/tidas_flowproperties.schema.d.ts +13 -2
  32. package/dist/schemas/tidas_flowproperties.schema.d.ts.map +1 -1
  33. package/dist/schemas/tidas_flowproperties.schema.js +26 -8
  34. package/dist/schemas/tidas_flowproperties.schema.js.map +1 -1
  35. package/dist/schemas/tidas_flows.schema.d.ts +10 -3
  36. package/dist/schemas/tidas_flows.schema.d.ts.map +1 -1
  37. package/dist/schemas/tidas_flows.schema.js +31 -37
  38. package/dist/schemas/tidas_flows.schema.js.map +1 -1
  39. package/dist/schemas/tidas_lciamethods.schema.d.ts +13698 -8203
  40. package/dist/schemas/tidas_lciamethods.schema.d.ts.map +1 -1
  41. package/dist/schemas/tidas_lciamethods.schema.js +639 -162
  42. package/dist/schemas/tidas_lciamethods.schema.js.map +1 -1
  43. package/dist/schemas/tidas_lifecyclemodels.schema.d.ts +1658 -25
  44. package/dist/schemas/tidas_lifecyclemodels.schema.d.ts.map +1 -1
  45. package/dist/schemas/tidas_lifecyclemodels.schema.js +204 -120
  46. package/dist/schemas/tidas_lifecyclemodels.schema.js.map +1 -1
  47. package/dist/schemas/tidas_processes.schema.d.ts +786 -12
  48. package/dist/schemas/tidas_processes.schema.d.ts.map +1 -1
  49. package/dist/schemas/tidas_processes.schema.js +197 -91
  50. package/dist/schemas/tidas_processes.schema.js.map +1 -1
  51. package/dist/schemas/tidas_sources.schema.d.ts +13 -2
  52. package/dist/schemas/tidas_sources.schema.d.ts.map +1 -1
  53. package/dist/schemas/tidas_sources.schema.js +26 -8
  54. package/dist/schemas/tidas_sources.schema.js.map +1 -1
  55. package/dist/schemas/tidas_unitgroups.schema.d.ts +22 -10
  56. package/dist/schemas/tidas_unitgroups.schema.d.ts.map +1 -1
  57. package/dist/schemas/tidas_unitgroups.schema.js +35 -20
  58. package/dist/schemas/tidas_unitgroups.schema.js.map +1 -1
  59. package/dist/types/tidas_contacts.d.ts +13 -1
  60. package/dist/types/tidas_contacts.d.ts.map +1 -1
  61. package/dist/types/tidas_flowproperties.d.ts +12 -1
  62. package/dist/types/tidas_flowproperties.d.ts.map +1 -1
  63. package/dist/types/tidas_flows.d.ts +26 -2
  64. package/dist/types/tidas_flows.d.ts.map +1 -1
  65. package/dist/types/tidas_lciamethods.d.ts +119 -16
  66. package/dist/types/tidas_lciamethods.d.ts.map +1 -1
  67. package/dist/types/tidas_lifecyclemodels.d.ts +43 -14
  68. package/dist/types/tidas_lifecyclemodels.d.ts.map +1 -1
  69. package/dist/types/tidas_processes.d.ts +26 -8
  70. package/dist/types/tidas_processes.d.ts.map +1 -1
  71. package/dist/types/tidas_sources.d.ts +12 -1
  72. package/dist/types/tidas_sources.d.ts.map +1 -1
  73. package/dist/types/tidas_unitgroups.d.ts +19 -7
  74. package/dist/types/tidas_unitgroups.d.ts.map +1 -1
  75. package/package.json +1 -1
@@ -44,39 +44,97 @@
44
44
  "description": "Hierarchical classification of the Source foreseen to be used to structure the Source content of the database. (Note: This entry is NOT required for the identification of a Source. It should nevertheless be avoided to use identical names for Source in the same class.",
45
45
  "properties": {
46
46
  "common:classification": {
47
- "type": "object",
48
- "properties": {
49
- "common:class": {
47
+ "anyOf": [
48
+ {
50
49
  "type": "object",
51
50
  "properties": {
52
- "@level": {
53
- "$ref": "tidas_data_types.json#/$defs/LevelType",
54
- "const": "0"
51
+ "common:class": {
52
+ "type": "object",
53
+ "properties": {
54
+ "@level": {
55
+ "$ref": "tidas_data_types.json#/$defs/LevelType",
56
+ "const": "0"
57
+ },
58
+ "@classId": {
59
+ "type": "string"
60
+ },
61
+ "#text": {
62
+ "type": "string"
63
+ }
64
+ },
65
+ "required": [
66
+ "@level",
67
+ "@classId",
68
+ "#text"
69
+ ],
70
+ "dependencies": {
71
+ "@level": {
72
+ "$ref": "./tidas_sources_category.json#/$defs/Source"
73
+ }
74
+ }
55
75
  },
56
- "@classId": {
76
+ "common:other": {
77
+ "$ref": "tidas_data_types.json#/$defs/CommonOther"
78
+ },
79
+ "@name": {
57
80
  "type": "string"
58
81
  },
59
- "#text": {
82
+ "@classes": {
60
83
  "type": "string"
61
84
  }
62
85
  },
63
86
  "required": [
64
- "@level",
65
- "@classId",
66
- "#text"
67
- ],
68
- "dependencies": {
69
- "@level": {
70
- "$ref": "./tidas_sources_category.json#/$defs/Source"
71
- }
72
- }
87
+ "common:class"
88
+ ]
73
89
  },
74
- "common:other": {
75
- "$ref": "tidas_data_types.json#/$defs/CommonOther"
90
+ {
91
+ "type": "array",
92
+ "minItems": 1,
93
+ "items": {
94
+ "type": "object",
95
+ "description": "One named classification system (e.g. CPC or HS). Used in the array form to let multiple systems coexist.",
96
+ "properties": {
97
+ "@name": {
98
+ "type": "string",
99
+ "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."
100
+ },
101
+ "@classes": {
102
+ "type": "string",
103
+ "description": "Optional URL or identifier of the classification file/system."
104
+ },
105
+ "common:class": {
106
+ "type": "array",
107
+ "minItems": 1,
108
+ "items": {
109
+ "type": "object",
110
+ "properties": {
111
+ "@level": {
112
+ "$ref": "tidas_data_types.json#/$defs/LevelType"
113
+ },
114
+ "@classId": {
115
+ "type": "string"
116
+ },
117
+ "#text": {
118
+ "type": "string"
119
+ }
120
+ },
121
+ "required": [
122
+ "@level",
123
+ "@classId",
124
+ "#text"
125
+ ]
126
+ }
127
+ },
128
+ "common:other": {
129
+ "$ref": "tidas_data_types.json#/$defs/CommonOther"
130
+ }
131
+ },
132
+ "required": [
133
+ "@name",
134
+ "common:class"
135
+ ]
136
+ }
76
137
  }
77
- },
78
- "required": [
79
- "common:class"
80
138
  ]
81
139
  }
82
140
  },
@@ -44,42 +44,100 @@
44
44
  "description": "Hierachical classification of the Unit groups; foreseen to be used to structure the Unit group content of the database. (Note: This entry is NOT required for the identification of the Unit group data set. It should nevertheless be avoided to use identical names for Unit groups in the same class.",
45
45
  "properties": {
46
46
  "common:classification": {
47
- "type": "object",
48
47
  "description": "Optional statistical or other classification of the data set. Typically also used for structuring LCA databases.",
49
- "properties": {
50
- "common:class": {
48
+ "anyOf": [
49
+ {
51
50
  "type": "object",
52
51
  "properties": {
53
- "@level": {
54
- "$ref": "tidas_data_types.json#/$defs/LevelType",
55
- "const": "0",
56
- "description": "If more than one class is specified in a hierachical classification system, the hierarchy level (1,2,...) could be specified with this attribute of class."
52
+ "common:class": {
53
+ "type": "object",
54
+ "properties": {
55
+ "@level": {
56
+ "$ref": "tidas_data_types.json#/$defs/LevelType",
57
+ "const": "0",
58
+ "description": "If more than one class is specified in a hierachical classification system, the hierarchy level (1,2,...) could be specified with this attribute of class."
59
+ },
60
+ "@classId": {
61
+ "type": "string",
62
+ "description": "Unique identifier for the class. [Notes: If such identifiers are also defined in the referenced category file, they should be identical. Identifiers can be UUID's, but also other forms are allowed.]"
63
+ },
64
+ "#text": {
65
+ "type": "string"
66
+ }
67
+ },
68
+ "required": [
69
+ "@level",
70
+ "@classId",
71
+ "#text"
72
+ ],
73
+ "dependencies": {
74
+ "@level": {
75
+ "$ref": "./tidas_unitgroups_category.json#/$defs/UnitGroup"
76
+ }
77
+ }
78
+ },
79
+ "common:other": {
80
+ "$ref": "tidas_data_types.json#/$defs/CommonOther"
57
81
  },
58
- "@classId": {
59
- "type": "string",
60
- "description": "Unique identifier for the class. [Notes: If such identifiers are also defined in the referenced category file, they should be identical. Identifiers can be UUID's, but also other forms are allowed.]"
82
+ "@name": {
83
+ "type": "string"
61
84
  },
62
- "#text": {
85
+ "@classes": {
63
86
  "type": "string"
64
87
  }
65
88
  },
66
89
  "required": [
67
- "@level",
68
- "@classId",
69
- "#text"
70
- ],
71
- "dependencies": {
72
- "@level": {
73
- "$ref": "./tidas_unitgroups_category.json#/$defs/UnitGroup"
74
- }
75
- }
90
+ "common:class"
91
+ ]
76
92
  },
77
- "common:other": {
78
- "$ref": "tidas_data_types.json#/$defs/CommonOther"
93
+ {
94
+ "type": "array",
95
+ "minItems": 1,
96
+ "items": {
97
+ "type": "object",
98
+ "description": "One named classification system (e.g. CPC or HS). Used in the array form to let multiple systems coexist.",
99
+ "properties": {
100
+ "@name": {
101
+ "type": "string",
102
+ "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."
103
+ },
104
+ "@classes": {
105
+ "type": "string",
106
+ "description": "Optional URL or identifier of the classification file/system."
107
+ },
108
+ "common:class": {
109
+ "type": "array",
110
+ "minItems": 1,
111
+ "items": {
112
+ "type": "object",
113
+ "properties": {
114
+ "@level": {
115
+ "$ref": "tidas_data_types.json#/$defs/LevelType"
116
+ },
117
+ "@classId": {
118
+ "type": "string"
119
+ },
120
+ "#text": {
121
+ "type": "string"
122
+ }
123
+ },
124
+ "required": [
125
+ "@level",
126
+ "@classId",
127
+ "#text"
128
+ ]
129
+ }
130
+ },
131
+ "common:other": {
132
+ "$ref": "tidas_data_types.json#/$defs/CommonOther"
133
+ }
134
+ },
135
+ "required": [
136
+ "@name",
137
+ "common:class"
138
+ ]
139
+ }
79
140
  }
80
- },
81
- "required": [
82
- "common:class"
83
141
  ]
84
142
  }
85
143
  },
@@ -290,7 +348,11 @@
290
348
  "common:other": {
291
349
  "$ref": "tidas_data_types.json#/$defs/CommonOther"
292
350
  }
293
- }
351
+ },
352
+ "required": [
353
+ "name",
354
+ "meanValue"
355
+ ]
294
356
  },
295
357
  {
296
358
  "type": "array",
@@ -309,8 +371,15 @@
309
371
  "generalComment": {
310
372
  "$ref": "tidas_data_types.json#/$defs/StringMultiLang",
311
373
  "description": "General comment on each single unit, typically giving the long name and unit system from which this unit stems, and (if necessary) referring to specifc data sources used, or for workflow purposes about status of \"finalisation\" of an entry etc."
374
+ },
375
+ "common:other": {
376
+ "$ref": "tidas_data_types.json#/$defs/CommonOther"
312
377
  }
313
- }
378
+ },
379
+ "required": [
380
+ "name",
381
+ "meanValue"
382
+ ]
314
383
  }
315
384
  }
316
385
  ]
@@ -318,7 +387,10 @@
318
387
  "common:other": {
319
388
  "$ref": "tidas_data_types.json#/$defs/CommonOther"
320
389
  }
321
- }
390
+ },
391
+ "required": [
392
+ "unit"
393
+ ]
322
394
  },
323
395
  "common:other": {
324
396
  "$ref": "tidas_data_types.json#/$defs/CommonOther"
@@ -332,7 +404,8 @@
332
404
  "@xsi:schemaLocation",
333
405
  "unitGroupInformation",
334
406
  "modellingAndValidation",
335
- "administrativeInformation"
407
+ "administrativeInformation",
408
+ "units"
336
409
  ]
337
410
  }
338
411
  },
@@ -49,14 +49,71 @@
49
49
  "description": "预计用于构建数据库的联系人内容的联系人的层次分类。 (注意:识别联系人数据集不需要此条目。不过,应避免对同一类中的联系人使用相同的名称。",
50
50
  "properties": {
51
51
  "common:classification": {
52
- "type": "object",
53
52
  "description": "数据集的可选统计或其他分类。通常也用于构建 LCA 数据库。",
54
- "properties": {
55
- "common:class": {
56
- "anyOf": [
57
- {
58
- "type": "array",
59
- "items": [
53
+ "anyOf": [
54
+ {
55
+ "type": "object",
56
+ "properties": {
57
+ "common:class": {
58
+ "anyOf": [
59
+ {
60
+ "type": "array",
61
+ "items": [
62
+ {
63
+ "type": "object",
64
+ "properties": {
65
+ "@level": {
66
+ "$ref": "tidas_data_types.json#/$defs/LevelType",
67
+ "const": "0"
68
+ },
69
+ "@classId": {
70
+ "type": "string"
71
+ },
72
+ "#text": {
73
+ "type": "string"
74
+ }
75
+ },
76
+ "required": [
77
+ "@level",
78
+ "@classId",
79
+ "#text"
80
+ ],
81
+ "dependencies": {
82
+ "@level": {
83
+ "$ref": "./tidas_contacts_category.json#/$defs/Contact"
84
+ }
85
+ }
86
+ },
87
+ {
88
+ "type": "object",
89
+ "properties": {
90
+ "@level": {
91
+ "$ref": "tidas_data_types.json#/$defs/LevelType",
92
+ "const": "1"
93
+ },
94
+ "@classId": {
95
+ "type": "string"
96
+ },
97
+ "#text": {
98
+ "type": "string"
99
+ }
100
+ },
101
+ "required": [
102
+ "@level",
103
+ "@classId",
104
+ "#text"
105
+ ],
106
+ "dependencies": {
107
+ "@level": {
108
+ "$ref": "./tidas_contacts_category.json#/$defs/Contact"
109
+ }
110
+ }
111
+ }
112
+ ],
113
+ "uniqueItems": true,
114
+ "maxItems": 2,
115
+ "additionalItems": false
116
+ },
60
117
  {
61
118
  "type": "object",
62
119
  "properties": {
@@ -81,13 +138,46 @@
81
138
  "$ref": "./tidas_contacts_category.json#/$defs/Contact"
82
139
  }
83
140
  }
84
- },
85
- {
141
+ }
142
+ ]
143
+ },
144
+ "@name": {
145
+ "type": "string"
146
+ },
147
+ "@classes": {
148
+ "type": "string"
149
+ },
150
+ "common:other": {
151
+ "$ref": "tidas_data_types.json#/$defs/CommonOther"
152
+ }
153
+ },
154
+ "required": [
155
+ "common:class"
156
+ ]
157
+ },
158
+ {
159
+ "type": "array",
160
+ "minItems": 1,
161
+ "items": {
162
+ "type": "object",
163
+ "description": "One named classification system (e.g. CPC or HS). Used in the array form to let multiple systems coexist.",
164
+ "properties": {
165
+ "@name": {
166
+ "type": "string",
167
+ "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."
168
+ },
169
+ "@classes": {
170
+ "type": "string",
171
+ "description": "Optional URL or identifier of the classification file/system."
172
+ },
173
+ "common:class": {
174
+ "type": "array",
175
+ "minItems": 1,
176
+ "items": {
86
177
  "type": "object",
87
178
  "properties": {
88
179
  "@level": {
89
- "$ref": "tidas_data_types.json#/$defs/LevelType",
90
- "const": "1"
180
+ "$ref": "tidas_data_types.json#/$defs/LevelType"
91
181
  },
92
182
  "@classId": {
93
183
  "type": "string"
@@ -100,48 +190,19 @@
100
190
  "@level",
101
191
  "@classId",
102
192
  "#text"
103
- ],
104
- "dependencies": {
105
- "@level": {
106
- "$ref": "./tidas_contacts_category.json#/$defs/Contact"
107
- }
108
- }
109
- }
110
- ],
111
- "uniqueItems": true,
112
- "maxItems": 2,
113
- "additionalItems": false
114
- },
115
- {
116
- "type": "object",
117
- "properties": {
118
- "@level": {
119
- "$ref": "tidas_data_types.json#/$defs/LevelType",
120
- "const": "0"
121
- },
122
- "@classId": {
123
- "type": "string"
124
- },
125
- "#text": {
126
- "type": "string"
193
+ ]
127
194
  }
128
195
  },
129
- "required": [
130
- "@level",
131
- "@classId",
132
- "#text"
133
- ],
134
- "dependencies": {
135
- "@level": {
136
- "$ref": "./tidas_contacts_category.json#/$defs/Contact"
137
- }
196
+ "common:other": {
197
+ "$ref": "tidas_data_types.json#/$defs/CommonOther"
138
198
  }
139
- }
140
- ]
199
+ },
200
+ "required": [
201
+ "@name",
202
+ "common:class"
203
+ ]
204
+ }
141
205
  }
142
- },
143
- "required": [
144
- "common:class"
145
206
  ]
146
207
  },
147
208
  "common:other": {
@@ -49,38 +49,96 @@
49
49
  "properties": {
50
50
  "common:classification": {
51
51
  "description": "数据集的可选统计或其他分类。通常也用于构建 LCA 数据库。",
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
  },