@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
@@ -15,25 +15,191 @@
15
15
  "description": "TIDAS Languages enumeration.",
16
16
  "type": "string",
17
17
  "enum": [
18
- "aa", "ab", "ae", "af", "ak", "am", "an", "ar", "as", "av",
19
- "ay", "az", "ba", "be", "bg", "bh", "bi", "bm", "bn", "bo",
20
- "br", "bs", "ca", "ce", "ch", "co", "cr", "cs", "cu", "cv",
21
- "cy", "da", "de", "dv", "dz", "ee", "el", "en", "eo", "es",
22
- "et", "eu", "fa", "ff", "fi", "fj", "fo", "fr", "fy", "ga",
23
- "gd", "gl", "gn", "gu", "gv", "ha", "he", "hi", "ho", "hr",
24
- "ht", "hu", "hy", "hz", "ia", "id", "ie", "ig", "ii", "ik",
25
- "io", "is", "it", "iu", "ja", "jv", "ka", "kg", "ki", "kj",
26
- "kk", "kl", "km", "kn", "ko", "kr", "ks", "ku", "kv", "kw",
27
- "ky", "la", "lb", "lg", "li", "ln", "lo", "lt", "lu", "lv",
28
- "mg", "mh", "mi", "mk", "ml", "mn", "mo", "mr", "ms", "mt",
29
- "my", "na", "nb", "nd", "ne", "ng", "nl", "nn", "no", "nr",
30
- "nv", "ny", "oc", "oj", "om", "or", "os", "pa", "pi", "pl",
31
- "ps", "pt", "qu", "rm", "rn", "ro", "ru", "rw", "sa", "sc",
32
- "sd", "se", "sg", "si", "sk", "sl", "sm", "sn", "so", "sq",
33
- "sr", "ss", "st", "su", "sv", "sw", "ta", "te", "tg", "th",
34
- "ti", "tk", "tl", "tn", "to", "tr", "ts", "tt", "tw", "ty",
35
- "ug", "uk", "ur", "uz", "ve", "vi", "vo", "wa", "wo", "xh",
36
- "yi", "yo", "za", "zh", "zu"
18
+ "aa",
19
+ "ab",
20
+ "ae",
21
+ "af",
22
+ "ak",
23
+ "am",
24
+ "an",
25
+ "ar",
26
+ "as",
27
+ "av",
28
+ "ay",
29
+ "az",
30
+ "ba",
31
+ "be",
32
+ "bg",
33
+ "bh",
34
+ "bi",
35
+ "bm",
36
+ "bn",
37
+ "bo",
38
+ "br",
39
+ "bs",
40
+ "ca",
41
+ "ce",
42
+ "ch",
43
+ "co",
44
+ "cr",
45
+ "cs",
46
+ "cu",
47
+ "cv",
48
+ "cy",
49
+ "da",
50
+ "de",
51
+ "dv",
52
+ "dz",
53
+ "ee",
54
+ "el",
55
+ "en",
56
+ "eo",
57
+ "es",
58
+ "et",
59
+ "eu",
60
+ "fa",
61
+ "ff",
62
+ "fi",
63
+ "fj",
64
+ "fo",
65
+ "fr",
66
+ "fy",
67
+ "ga",
68
+ "gd",
69
+ "gl",
70
+ "gn",
71
+ "gu",
72
+ "gv",
73
+ "ha",
74
+ "he",
75
+ "hi",
76
+ "ho",
77
+ "hr",
78
+ "ht",
79
+ "hu",
80
+ "hy",
81
+ "hz",
82
+ "ia",
83
+ "id",
84
+ "ie",
85
+ "ig",
86
+ "ii",
87
+ "ik",
88
+ "io",
89
+ "is",
90
+ "it",
91
+ "iu",
92
+ "ja",
93
+ "jv",
94
+ "ka",
95
+ "kg",
96
+ "ki",
97
+ "kj",
98
+ "kk",
99
+ "kl",
100
+ "km",
101
+ "kn",
102
+ "ko",
103
+ "kr",
104
+ "ks",
105
+ "ku",
106
+ "kv",
107
+ "kw",
108
+ "ky",
109
+ "la",
110
+ "lb",
111
+ "lg",
112
+ "li",
113
+ "ln",
114
+ "lo",
115
+ "lt",
116
+ "lu",
117
+ "lv",
118
+ "mg",
119
+ "mh",
120
+ "mi",
121
+ "mk",
122
+ "ml",
123
+ "mn",
124
+ "mo",
125
+ "mr",
126
+ "ms",
127
+ "mt",
128
+ "my",
129
+ "na",
130
+ "nb",
131
+ "nd",
132
+ "ne",
133
+ "ng",
134
+ "nl",
135
+ "nn",
136
+ "no",
137
+ "nr",
138
+ "nv",
139
+ "ny",
140
+ "oc",
141
+ "oj",
142
+ "om",
143
+ "or",
144
+ "os",
145
+ "pa",
146
+ "pi",
147
+ "pl",
148
+ "ps",
149
+ "pt",
150
+ "qu",
151
+ "rm",
152
+ "rn",
153
+ "ro",
154
+ "ru",
155
+ "rw",
156
+ "sa",
157
+ "sc",
158
+ "sd",
159
+ "se",
160
+ "sg",
161
+ "si",
162
+ "sk",
163
+ "sl",
164
+ "sm",
165
+ "sn",
166
+ "so",
167
+ "sq",
168
+ "sr",
169
+ "ss",
170
+ "st",
171
+ "su",
172
+ "sv",
173
+ "sw",
174
+ "ta",
175
+ "te",
176
+ "tg",
177
+ "th",
178
+ "ti",
179
+ "tk",
180
+ "tl",
181
+ "tn",
182
+ "to",
183
+ "tr",
184
+ "ts",
185
+ "tt",
186
+ "tw",
187
+ "ty",
188
+ "ug",
189
+ "uk",
190
+ "ur",
191
+ "uz",
192
+ "ve",
193
+ "vi",
194
+ "vo",
195
+ "wa",
196
+ "wo",
197
+ "xh",
198
+ "yi",
199
+ "yo",
200
+ "za",
201
+ "zh",
202
+ "zu"
37
203
  ]
38
204
  },
39
205
  "LocalizedTextItem": {
@@ -178,7 +344,7 @@
178
344
  "description": "5-digit integer number",
179
345
  "type": "string",
180
346
  "pattern": "^(0|[1-9]\\d{0,4})$"
181
- },
347
+ },
182
348
  "Int6": {
183
349
  "description": "6-digit integer number",
184
350
  "type": "string",
@@ -189,22 +355,22 @@
189
355
  "$ref": "#/$defs/Int1"
190
356
  },
191
357
  "Perc": {
192
- "description": "percentage amount",
358
+ "description": "percentage amount (ILCD Perc: decimal, totalDigits=5, fractionDigits=3)",
193
359
  "type": "string",
194
- "pattern": "^(100(\\.0{1,3})?|([0-9]|[1-9][0-9])(\\.\\d{1,3})?)$"
360
+ "pattern": "^[+-]?(\\d{1,5}|\\d{1,4}\\.\\d|\\d{1,3}\\.\\d{2}|\\d{1,2}\\.\\d{3})$"
195
361
  },
196
362
  "MatR": {
197
363
  "description": "Mathematical rule",
198
364
  "type": "string"
199
365
  },
200
- "MatV": {
366
+ "MatV": {
201
367
  "description": "Mathematical variable or parameter",
202
368
  "type": "string"
203
369
  },
204
370
  "Real": {
205
371
  "description": "38-digit real number",
206
372
  "type": "string",
207
- "pattern": "[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([Ee][+-]?\\d+)?$"
373
+ "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([Ee][+-]?\\d+)?$"
208
374
  },
209
375
  "ST": {
210
376
  "description": "Short text with a maximum length of 1000 characters",
@@ -302,20 +468,35 @@
302
468
  "type": "object",
303
469
  "properties": {
304
470
  "@type": {
305
- "type": "string"
471
+ "$ref": "#/$defs/GlobalReferenceTypeValues"
306
472
  },
307
473
  "@refObjectId": {
308
474
  "type": "string",
309
- "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
475
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
310
476
  },
311
477
  "@version": {
312
- "type": "string"
478
+ "$ref": "#/$defs/Version"
313
479
  },
314
480
  "@uri": {
315
481
  "type": "string"
316
482
  },
317
483
  "common:shortDescription": {
318
484
  "$ref": "#/$defs/STMultiLang"
485
+ },
486
+ "common:subReference": {
487
+ "description": "Optional sub-reference (e.g. section or page) within the referenced source.",
488
+ "anyOf": [
489
+ {
490
+ "$ref": "#/$defs/String"
491
+ },
492
+ {
493
+ "type": "array",
494
+ "minItems": 1,
495
+ "items": {
496
+ "$ref": "#/$defs/String"
497
+ }
498
+ }
499
+ ]
319
500
  }
320
501
  },
321
502
  "required": [
@@ -332,20 +513,35 @@
332
513
  "type": "object",
333
514
  "properties": {
334
515
  "@type": {
335
- "type": "string"
516
+ "$ref": "#/$defs/GlobalReferenceTypeValues"
336
517
  },
337
518
  "@refObjectId": {
338
519
  "type": "string",
339
- "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
520
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
340
521
  },
341
522
  "@version": {
342
- "type": "string"
523
+ "$ref": "#/$defs/Version"
343
524
  },
344
525
  "@uri": {
345
526
  "type": "string"
346
527
  },
347
528
  "common:shortDescription": {
348
529
  "$ref": "#/$defs/STMultiLang"
530
+ },
531
+ "common:subReference": {
532
+ "description": "Optional sub-reference (e.g. section or page) within the referenced source.",
533
+ "anyOf": [
534
+ {
535
+ "$ref": "#/$defs/String"
536
+ },
537
+ {
538
+ "type": "array",
539
+ "minItems": 1,
540
+ "items": {
541
+ "$ref": "#/$defs/String"
542
+ }
543
+ }
544
+ ]
349
545
  }
350
546
  },
351
547
  "required": [
@@ -369,6 +565,25 @@
369
565
  "type": "string",
370
566
  "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
371
567
  },
568
+ "Version": {
569
+ "description": "Data set version number, format NN.NN(.NNN) per ILCD.",
570
+ "type": "string",
571
+ "pattern": "^\\d{2}\\.\\d{2}(\\.\\d{3})?$"
572
+ },
573
+ "GlobalReferenceTypeValues": {
574
+ "description": "Type of the referenced dataset/file (ILCD GlobalReferenceTypeValues).",
575
+ "type": "string",
576
+ "enum": [
577
+ "source data set",
578
+ "process data set",
579
+ "flow data set",
580
+ "flow property data set",
581
+ "unit group data set",
582
+ "contact data set",
583
+ "LCIA method data set",
584
+ "other external file"
585
+ ]
586
+ },
372
587
  "Year": {
373
588
  "description": "4-digit year",
374
589
  "type": "integer",
@@ -248,7 +248,11 @@
248
248
  "description": "Information related to publication and version management of the data set including copyright and access restrictions.",
249
249
  "properties": {
250
250
  "common:dataSetVersion": {
251
- "type": "string",
251
+ "allOf": [
252
+ {
253
+ "$ref": "tidas_data_types.json#/$defs/Version"
254
+ }
255
+ ],
252
256
  "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."
253
257
  },
254
258
  "common:referenceToPrecedingDataSetVersion": {