@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
@@ -0,0 +1,294 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "contactDataSet": {
6
+ "type": "object",
7
+ "properties": {
8
+ "@xmlns": {
9
+ "type": "string",
10
+ "const": "http://lca.jrc.it/ILCD/Contact"
11
+ },
12
+ "@xmlns:common": {
13
+ "type": "string",
14
+ "const": "http://lca.jrc.it/ILCD/Common"
15
+ },
16
+ "@xmlns:xsi": {
17
+ "type": "string",
18
+ "const": "http://www.w3.org/2001/XMLSchema-instance"
19
+ },
20
+ "@version": {
21
+ "type": "string",
22
+ "const": "1.1",
23
+ "description": "指示使用哪个版本的 ILCD 格式"
24
+ },
25
+ "@xsi:schemaLocation": {
26
+ "type": "string",
27
+ "const": "http://lca.jrc.it/ILCD/Contact ../../schemas/ILCD_ContactDataSet.xsd"
28
+ },
29
+ "contactInformation": {
30
+ "type": "object",
31
+ "properties": {
32
+ "dataSetInformation": {
33
+ "type": "object",
34
+ "properties": {
35
+ "common:UUID": {
36
+ "$ref": "tidas_data_types.json#/$defs/UUID",
37
+ "description": "自动生成该数据集的通用唯一标识符。UUID 与“数据集版本”一起唯一标识每个数据集。"
38
+ },
39
+ "common:shortName": {
40
+ "$ref": "tidas_data_types.json#/$defs/StringMultiLang",
41
+ "description": "联系人的简称,用于显示,例如指向该数据集的链接(特别是在联系人的全名相当长的情况下,例如“FAO”代表“粮食及农业组织”)。"
42
+ },
43
+ "common:name": {
44
+ "$ref": "tidas_data_types.json#/$defs/StringMultiLang",
45
+ "description": "此联系人数据集表示的人员、工作组、组织或数据库网络的名称。"
46
+ },
47
+ "classificationInformation": {
48
+ "type": "object",
49
+ "description": "预计用于构建数据库的联系人内容的联系人的层次分类。 (注意:识别联系人数据集不需要此条目。不过,应避免对同一类中的联系人使用相同的名称。",
50
+ "properties": {
51
+ "common:classification": {
52
+ "type": "object",
53
+ "description": "数据集的可选统计或其他分类。通常也用于构建 LCA 数据库。",
54
+ "properties": {
55
+ "common:class": {
56
+ "anyOf": [
57
+ {
58
+ "type": "array",
59
+ "items": [
60
+ {
61
+ "type": "object",
62
+ "properties": {
63
+ "@level": {
64
+ "$ref": "tidas_data_types.json#/$defs/LevelType",
65
+ "const": "0"
66
+ },
67
+ "@classId": {
68
+ "type": "string"
69
+ },
70
+ "#text": {
71
+ "type": "string"
72
+ }
73
+ },
74
+ "required": [
75
+ "@level",
76
+ "@classId",
77
+ "#text"
78
+ ],
79
+ "dependencies": {
80
+ "@level": {
81
+ "$ref": "./tidas_contacts_category.json#/$defs/Contact"
82
+ }
83
+ }
84
+ },
85
+ {
86
+ "type": "object",
87
+ "properties": {
88
+ "@level": {
89
+ "$ref": "tidas_data_types.json#/$defs/LevelType",
90
+ "const": "1"
91
+ },
92
+ "@classId": {
93
+ "type": "string"
94
+ },
95
+ "#text": {
96
+ "type": "string"
97
+ }
98
+ },
99
+ "required": [
100
+ "@level",
101
+ "@classId",
102
+ "#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"
127
+ }
128
+ },
129
+ "required": [
130
+ "@level",
131
+ "@classId",
132
+ "#text"
133
+ ],
134
+ "dependencies": {
135
+ "@level": {
136
+ "$ref": "./tidas_contacts_category.json#/$defs/Contact"
137
+ }
138
+ }
139
+ }
140
+ ]
141
+ }
142
+ },
143
+ "required": [
144
+ "common:class"
145
+ ]
146
+ },
147
+ "common:other": {
148
+ "$ref": "tidas_data_types.json#/$defs/CommonOther"
149
+ }
150
+ },
151
+ "required": [
152
+ "common:classification"
153
+ ]
154
+ },
155
+ "contactAddress": {
156
+ "$ref": "tidas_data_types.json#/$defs/STMultiLang",
157
+ "description": "联系人的邮件地址;特定于个人、工作组或部门。 [注:“一般联络点”中应提供该组织的一般联络点。]"
158
+ },
159
+ "email": {
160
+ "$ref": "tidas_data_types.json#/$defs/String",
161
+ "format": "email"
162
+ },
163
+ "telephone": {
164
+ "$ref": "tidas_data_types.json#/$defs/String"
165
+ },
166
+ "telefax": {
167
+ "$ref": "tidas_data_types.json#/$defs/String"
168
+ },
169
+ "WWWAddress": {
170
+ "$ref": "tidas_data_types.json#/$defs/ST",
171
+ "description": "个人、工作组、组织或数据库网络的网址。"
172
+ },
173
+ "centralContactPoint": {
174
+ "$ref": "tidas_data_types.json#/$defs/STMultiLang",
175
+ "description": "联系人的备用地址/联系方式。提供联系信息,例如该联系人所代表的个人或团体已离开组织或更换了办公室/电话。因此,该替代联系点还可以包含该组织的中央电话号码、电子邮件、www 地址等。"
176
+ },
177
+ "contactDescriptionOrComment": {
178
+ "$ref": "tidas_data_types.json#/$defs/STMultiLang",
179
+ "description": "用于对联系人的组织或个人进行附加描述的自由文本,例如组织简介、个人职责等。"
180
+ },
181
+ "referenceToContact": {
182
+ "$ref": "tidas_data_types.json#/$defs/GlobalReferenceType",
183
+ "description": "此人或实体或此数据库、数据集格式或合规系统所属的工作组、组织或数据库网络的“联系数据集”。 [注:这并不一定意味着具有法律约束力的关系,也可能是自愿的成员资格。]"
184
+ },
185
+ "referenceToLogo": {
186
+ "$ref": "tidas_data_types.json#/$defs/GlobalReferenceType",
187
+ "description": "报告等中使用的组织或来源的徽标的“源数据集”。"
188
+ },
189
+ "common:other": {
190
+ "$ref": "tidas_data_types.json#/$defs/CommonOther"
191
+ }
192
+ },
193
+ "required": [
194
+ "common:UUID",
195
+ "common:shortName",
196
+ "common:name",
197
+ "classificationInformation"
198
+ ]
199
+ },
200
+ "common:other": {
201
+ "$ref": "tidas_data_types.json#/$defs/CommonOther"
202
+ }
203
+ },
204
+ "required": [
205
+ "dataSetInformation"
206
+ ]
207
+ },
208
+ "administrativeInformation": {
209
+ "type": "object",
210
+ "properties": {
211
+ "dataEntryBy": {
212
+ "type": "object",
213
+ "properties": {
214
+ "common:timeStamp": {
215
+ "$ref": "tidas_data_types.json#/$defs/dateTime",
216
+ "description": "数据集生成的日期和时间戳,通常是自动输入(“上次保存”)。"
217
+ },
218
+ "common:referenceToDataSetFormat": {
219
+ "$ref": "tidas_data_types.json#/$defs/GlobalReferenceType",
220
+ "description": "ILCD 格式所用版本的“源数据集”。如果使用“命名空间”选项将附加数据格式字段集成到数据集文件中,则将给出所使用的格式命名空间。如果数据集携带由其他特定 LCA 格式指定的附加信息,例如,则属于这种情况。其他数据库网络或 LCA 软件。"
221
+ },
222
+ "common:other": {
223
+ "$ref": "tidas_data_types.json#/$defs/CommonOther"
224
+ }
225
+ },
226
+ "required": [
227
+ "common:timeStamp",
228
+ "common:referenceToDataSetFormat"
229
+ ]
230
+ },
231
+ "publicationAndOwnership": {
232
+ "type": "object",
233
+ "properties": {
234
+ "common:dataSetVersion": {
235
+ "allOf": [
236
+ {
237
+ "$ref": "tidas_data_types.json#/$defs/Version"
238
+ }
239
+ ],
240
+ "description": "数据集的版本号。前两位数字表示主要更新,后两位数字表示较小的修订和错误更正等。第三个三位数字用于在数据集开发过程中自动和内部计数版本。 “数据集版本”与数据集的UUID 一起唯一标识每个数据集。"
241
+ },
242
+ "common:referenceToPrecedingDataSetVersion": {
243
+ "$ref": "tidas_data_types.json#/$defs/GlobalReferenceType",
244
+ "description": "最后一个先前的数据集,已被此版本替换。在TIDAS中,该引用包括前面的数据集URI、UUID和版本号。"
245
+ },
246
+ "common:permanentDataSetURI": {
247
+ "type": "string",
248
+ "format": "uri",
249
+ "description": "该数据集原始的 URI(即互联网地址)。 [注意:这个同样全球唯一的标识符支持用户和软件工具通过互联网识别和检索数据集的原始版本或检查可用的更新。 URI 不得代表现有的 WWW 地址,但它应该是唯一的并指向数据访问点,例如通过将数据所有者的 www 路径与数据集的UUID 相结合,例如http://www.mycompany.com/lca/processes/50f12420-8855-12db-b606-0900210c9a66。]"
250
+ },
251
+ "common:referenceToOwnershipOfDataSet": {
252
+ "$ref": "tidas_data_types.json#/$defs/GlobalReferenceType",
253
+ "description": "拥有该数据集的个人或实体的“联系人数据集”。 (注意:这不一定是数据集的发布者。)"
254
+ },
255
+ "common:other": {
256
+ "$ref": "tidas_data_types.json#/$defs/CommonOther"
257
+ }
258
+ },
259
+ "required": [
260
+ "common:dataSetVersion",
261
+ "common:referenceToOwnershipOfDataSet"
262
+ ]
263
+ },
264
+ "common:other": {
265
+ "$ref": "tidas_data_types.json#/$defs/CommonOther"
266
+ }
267
+ },
268
+ "required": [
269
+ "dataEntryBy",
270
+ "publicationAndOwnership"
271
+ ]
272
+ },
273
+ "common:other": {
274
+ "$ref": "tidas_data_types.json#/$defs/CommonOther"
275
+ }
276
+ },
277
+ "required": [
278
+ "@xmlns:common",
279
+ "@xmlns",
280
+ "@xmlns:xsi",
281
+ "@version",
282
+ "@xsi:schemaLocation",
283
+ "contactInformation",
284
+ "administrativeInformation"
285
+ ]
286
+ },
287
+ "common:other": {
288
+ "$ref": "tidas_data_types.json#/$defs/CommonOther"
289
+ }
290
+ },
291
+ "required": [
292
+ "contactDataSet"
293
+ ]
294
+ }
@@ -0,0 +1,126 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$defs": {
4
+ "Contact": {
5
+ "oneOf": [
6
+ {
7
+ "properties": {
8
+ "@level": {
9
+ "const": "0"
10
+ },
11
+ "@classId": {
12
+ "const": "1"
13
+ },
14
+ "#text": {
15
+ "const": "Group of organisations, project"
16
+ }
17
+ }
18
+ },
19
+ {
20
+ "properties": {
21
+ "@level": {
22
+ "const": "0"
23
+ },
24
+ "@classId": {
25
+ "const": "2"
26
+ },
27
+ "#text": {
28
+ "const": "Organisations"
29
+ }
30
+ }
31
+ },
32
+ {
33
+ "properties": {
34
+ "@level": {
35
+ "const": "1"
36
+ },
37
+ "@classId": {
38
+ "const": "2.1"
39
+ },
40
+ "#text": {
41
+ "const": "Private companies"
42
+ }
43
+ }
44
+ },
45
+ {
46
+ "properties": {
47
+ "@level": {
48
+ "const": "1"
49
+ },
50
+ "@classId": {
51
+ "const": "2.2"
52
+ },
53
+ "#text": {
54
+ "const": "Governmental organisations"
55
+ }
56
+ }
57
+ },
58
+ {
59
+ "properties": {
60
+ "@level": {
61
+ "const": "1"
62
+ },
63
+ "@classId": {
64
+ "const": "2.3"
65
+ },
66
+ "#text": {
67
+ "const": "Non-governmental organisations"
68
+ }
69
+ }
70
+ },
71
+ {
72
+ "properties": {
73
+ "@level": {
74
+ "const": "1"
75
+ },
76
+ "@classId": {
77
+ "const": "2.4"
78
+ },
79
+ "#text": {
80
+ "const": "Other organisations"
81
+ }
82
+ }
83
+ },
84
+ {
85
+ "properties": {
86
+ "@level": {
87
+ "const": "0"
88
+ },
89
+ "@classId": {
90
+ "const": "3"
91
+ },
92
+ "#text": {
93
+ "const": "Working groups within organisation"
94
+ }
95
+ }
96
+ },
97
+ {
98
+ "properties": {
99
+ "@level": {
100
+ "const": "0"
101
+ },
102
+ "@classId": {
103
+ "const": "4"
104
+ },
105
+ "#text": {
106
+ "const": "Persons"
107
+ }
108
+ }
109
+ },
110
+ {
111
+ "properties": {
112
+ "@level": {
113
+ "const": "0"
114
+ },
115
+ "@classId": {
116
+ "const": "5"
117
+ },
118
+ "#text": {
119
+ "const": "Other"
120
+ }
121
+ }
122
+ }
123
+ ]
124
+ }
125
+ }
126
+ }