@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
@@ -25,57 +25,110 @@ exports.LciamethodsSchema = zod_1.z.object({
25
25
  dataSetInformation: zod_1.z.object({
26
26
  'common:UUID': tidas_data_types_schema_1.UUIDSchema,
27
27
  'common:name': tidas_data_types_schema_1.RequiredStringMultiLangSchema,
28
- methodology: zod_1.z.string().optional(),
28
+ methodology: zod_1.z
29
+ .union([zod_1.z.string(), zod_1.z.array(zod_1.z.string()).min(1)])
30
+ .optional(),
29
31
  classificationInformation: zod_1.z.object({
30
- 'common:classification': zod_1.z.object({
31
- 'common:class': (0, json_schema_1.jsonSchemaTuple)([
32
- (0, json_schema_1.withJsonSchemaDependencies)(zod_1.z.object({
33
- '@level': zod_1.z.intersection(zod_1.z.literal('0'), tidas_data_types_schema_1.LevelTypeSchema),
34
- '@classId': zod_1.z.string(),
35
- '#text': zod_1.z.string(),
36
- }), [{ property: '@level', schema: tidas_lciamethods_category_schema_1.LCIAMethodSchema }]),
37
- (0, json_schema_1.withJsonSchemaDependencies)(zod_1.z.object({
38
- '@level': zod_1.z.intersection(zod_1.z.literal('1'), tidas_data_types_schema_1.LevelTypeSchema),
39
- '@classId': zod_1.z.string(),
40
- '#text': zod_1.z.string(),
41
- }), [{ property: '@level', schema: tidas_lciamethods_category_schema_1.LCIAMethodSchema }]),
42
- (0, json_schema_1.withJsonSchemaDependencies)(zod_1.z.object({
43
- '@level': zod_1.z.intersection(zod_1.z.literal('2'), tidas_data_types_schema_1.LevelTypeSchema),
32
+ 'common:classification': zod_1.z.union([
33
+ zod_1.z.object({
34
+ 'common:class': (0, json_schema_1.jsonSchemaTuple)([
35
+ (0, json_schema_1.withJsonSchemaDependencies)(zod_1.z.object({
36
+ '@level': zod_1.z.intersection(zod_1.z.literal('0'), tidas_data_types_schema_1.LevelTypeSchema),
37
+ '@classId': zod_1.z.string(),
38
+ '#text': zod_1.z.string(),
39
+ }), [{ property: '@level', schema: tidas_lciamethods_category_schema_1.LCIAMethodSchema }]),
40
+ (0, json_schema_1.withJsonSchemaDependencies)(zod_1.z.object({
41
+ '@level': zod_1.z.intersection(zod_1.z.literal('1'), tidas_data_types_schema_1.LevelTypeSchema),
42
+ '@classId': zod_1.z.string(),
43
+ '#text': zod_1.z.string(),
44
+ }), [{ property: '@level', schema: tidas_lciamethods_category_schema_1.LCIAMethodSchema }]),
45
+ (0, json_schema_1.withJsonSchemaDependencies)(zod_1.z.object({
46
+ '@level': zod_1.z.intersection(zod_1.z.literal('2'), tidas_data_types_schema_1.LevelTypeSchema),
47
+ '@classId': zod_1.z.string(),
48
+ '#text': zod_1.z.string(),
49
+ }), [{ property: '@level', schema: tidas_lciamethods_category_schema_1.LCIAMethodSchema }]),
50
+ ], { additionalItems: false, maxItems: 3, uniqueItems: true }),
51
+ 'common:other': tidas_data_types_schema_1.CommonOtherSchema.optional(),
52
+ '@name': zod_1.z.string().optional(),
53
+ '@classes': zod_1.z.string().optional(),
54
+ }),
55
+ zod_1.z
56
+ .array(zod_1.z.object({
57
+ '@name': zod_1.z.string(),
58
+ '@classes': zod_1.z.string().optional(),
59
+ 'common:class': zod_1.z
60
+ .array(zod_1.z.object({
61
+ '@level': tidas_data_types_schema_1.LevelTypeSchema,
44
62
  '@classId': zod_1.z.string(),
45
63
  '#text': zod_1.z.string(),
46
- }), [{ property: '@level', schema: tidas_lciamethods_category_schema_1.LCIAMethodSchema }]),
47
- ], { additionalItems: false, maxItems: 3, uniqueItems: true }),
48
- 'common:other': tidas_data_types_schema_1.CommonOtherSchema.optional(),
49
- }),
64
+ }))
65
+ .min(1),
66
+ 'common:other': tidas_data_types_schema_1.CommonOtherSchema.optional(),
67
+ }))
68
+ .min(1),
69
+ ]),
50
70
  }),
51
71
  impactCategory: zod_1.z
52
- .intersection(zod_1.z.union([
53
- zod_1.z.literal('Climate change'),
54
- zod_1.z.literal('Ozone depletion'),
55
- zod_1.z.literal('Terrestrial Eutrophication'),
56
- zod_1.z.literal('Aquatic Eutrophication'),
57
- zod_1.z.literal('Acidification'),
58
- zod_1.z.literal('Photochemical ozone creation'),
59
- zod_1.z.literal('Land use'),
60
- zod_1.z.literal('Abiotic resource depletion'),
61
- zod_1.z.literal('Biotic resource depletion'),
62
- zod_1.z.literal('Ionizing radiation'),
63
- zod_1.z.literal('Cancer human health effects'),
64
- zod_1.z.literal('Non-cancer human health effects'),
65
- zod_1.z.literal('Respiratory inorganics'),
66
- zod_1.z.literal('Aquatic eco-toxicity'),
67
- zod_1.z.literal('Terrestrial eco-toxicity'),
68
- zod_1.z.literal('other'),
69
- ]), zod_1.z.string())
72
+ .union([
73
+ zod_1.z.intersection(zod_1.z.union([
74
+ zod_1.z.literal('Climate change'),
75
+ zod_1.z.literal('Ozone depletion'),
76
+ zod_1.z.literal('Terrestrial Eutrophication'),
77
+ zod_1.z.literal('Aquatic Eutrophication'),
78
+ zod_1.z.literal('Acidification'),
79
+ zod_1.z.literal('Photochemical ozone creation'),
80
+ zod_1.z.literal('Land use'),
81
+ zod_1.z.literal('Abiotic resource depletion'),
82
+ zod_1.z.literal('Biotic resource depletion'),
83
+ zod_1.z.literal('Ionizing radiation'),
84
+ zod_1.z.literal('Cancer human health effects'),
85
+ zod_1.z.literal('Non-cancer human health effects'),
86
+ zod_1.z.literal('Respiratory inorganics'),
87
+ zod_1.z.literal('Aquatic eco-toxicity'),
88
+ zod_1.z.literal('Terrestrial eco-toxicity'),
89
+ zod_1.z.literal('other'),
90
+ ]), zod_1.z.string()),
91
+ zod_1.z
92
+ .array(zod_1.z.intersection(zod_1.z.union([
93
+ zod_1.z.literal('Climate change'),
94
+ zod_1.z.literal('Ozone depletion'),
95
+ zod_1.z.literal('Terrestrial Eutrophication'),
96
+ zod_1.z.literal('Aquatic Eutrophication'),
97
+ zod_1.z.literal('Acidification'),
98
+ zod_1.z.literal('Photochemical ozone creation'),
99
+ zod_1.z.literal('Land use'),
100
+ zod_1.z.literal('Abiotic resource depletion'),
101
+ zod_1.z.literal('Biotic resource depletion'),
102
+ zod_1.z.literal('Ionizing radiation'),
103
+ zod_1.z.literal('Cancer human health effects'),
104
+ zod_1.z.literal('Non-cancer human health effects'),
105
+ zod_1.z.literal('Respiratory inorganics'),
106
+ zod_1.z.literal('Aquatic eco-toxicity'),
107
+ zod_1.z.literal('Terrestrial eco-toxicity'),
108
+ zod_1.z.literal('other'),
109
+ ]), zod_1.z.string()))
110
+ .min(1),
111
+ ])
70
112
  .optional(),
71
113
  areaOfProtection: zod_1.z
72
- .intersection(zod_1.z.union([
73
- zod_1.z.literal('Natural resources'),
74
- zod_1.z.literal('Natural environment'),
75
- zod_1.z.literal('Human health'),
76
- zod_1.z.literal('Man-made environment'),
77
- zod_1.z.literal('Other'),
78
- ]), zod_1.z.string())
114
+ .union([
115
+ zod_1.z.intersection(zod_1.z.union([
116
+ zod_1.z.literal('Natural resources'),
117
+ zod_1.z.literal('Natural environment'),
118
+ zod_1.z.literal('Human health'),
119
+ zod_1.z.literal('Man-made environment'),
120
+ zod_1.z.literal('Other'),
121
+ ]), zod_1.z.string()),
122
+ zod_1.z
123
+ .array(zod_1.z.intersection(zod_1.z.union([
124
+ zod_1.z.literal('Natural resources'),
125
+ zod_1.z.literal('Natural environment'),
126
+ zod_1.z.literal('Human health'),
127
+ zod_1.z.literal('Man-made environment'),
128
+ zod_1.z.literal('Other'),
129
+ ]), zod_1.z.string()))
130
+ .min(1),
131
+ ])
79
132
  .optional(),
80
133
  impactIndicator: tidas_data_types_schema_1.StringSchema.optional(),
81
134
  'common:generalComment': tidas_data_types_schema_1.FTMultiLangSchema.optional(),
@@ -93,26 +146,48 @@ exports.LciamethodsSchema = zod_1.z.object({
93
146
  'common:other': tidas_data_types_schema_1.CommonOtherSchema.optional(),
94
147
  }),
95
148
  geography: zod_1.z
96
- .object({
149
+ .intersection(zod_1.z.object({
97
150
  interventionLocation: zod_1.z
98
151
  .union([
99
152
  zod_1.z.object({
100
- '#text': zod_1.z.string().optional(),
153
+ '#text': zod_1.z.string(),
101
154
  '@latitudeAndLongitude': tidas_data_types_schema_1.GISSchema.optional(),
102
155
  }),
103
156
  zod_1.z.string(),
104
157
  ])
105
158
  .optional(),
106
- intervensionSubLocation: zod_1.z
159
+ impactLocation: zod_1.z
107
160
  .union([
108
161
  zod_1.z.object({
109
- '#text': zod_1.z.string().optional(),
162
+ '#text': zod_1.z.string(),
110
163
  '@latitudeAndLongitude': tidas_data_types_schema_1.GISSchema.optional(),
111
164
  }),
112
165
  zod_1.z.string(),
113
166
  ])
114
167
  .optional(),
115
- impactLocation: zod_1.z
168
+ geographicalRepresentativenessDescription: tidas_data_types_schema_1.FTMultiLangSchema.optional(),
169
+ 'common:other': tidas_data_types_schema_1.CommonOtherSchema.optional(),
170
+ interventionSubLocation: zod_1.z
171
+ .union([
172
+ zod_1.z.union([
173
+ zod_1.z.object({
174
+ '#text': zod_1.z.string(),
175
+ '@latitudeAndLongitude': tidas_data_types_schema_1.GISSchema.optional(),
176
+ }),
177
+ zod_1.z.string(),
178
+ ]),
179
+ zod_1.z
180
+ .array(zod_1.z.union([
181
+ zod_1.z.object({
182
+ '#text': zod_1.z.string(),
183
+ '@latitudeAndLongitude': tidas_data_types_schema_1.GISSchema.optional(),
184
+ }),
185
+ zod_1.z.string(),
186
+ ]))
187
+ .min(1),
188
+ ])
189
+ .optional(),
190
+ intervensionSubLocation: zod_1.z
116
191
  .union([
117
192
  zod_1.z.object({
118
193
  '#text': zod_1.z.string().optional(),
@@ -121,9 +196,10 @@ exports.LciamethodsSchema = zod_1.z.object({
121
196
  zod_1.z.string(),
122
197
  ])
123
198
  .optional(),
124
- geographicalRepresentativenessDescription: tidas_data_types_schema_1.FTMultiLangSchema.optional(),
125
- 'common:other': tidas_data_types_schema_1.CommonOtherSchema.optional(),
126
- })
199
+ }), (0, json_schema_1.jsonSchemaNotRequired)([
200
+ 'interventionSubLocation',
201
+ 'intervensionSubLocation',
202
+ ]))
127
203
  .optional(),
128
204
  impactModel: zod_1.z.object({
129
205
  modelName: tidas_data_types_schema_1.STSchema,
@@ -147,15 +223,28 @@ exports.LciamethodsSchema = zod_1.z.object({
147
223
  zod_1.z.literal('Combined single-point indicator'),
148
224
  zod_1.z.literal('LCIA methodology documentation'),
149
225
  ]), zod_1.z.string()),
150
- LCIAMethodPrinciple: zod_1.z.intersection(zod_1.z.union([
151
- zod_1.z.literal('Distance-to-target'),
152
- zod_1.z.literal('Critical surface-time'),
153
- zod_1.z.literal('Effective volumes'),
154
- zod_1.z.literal('AoP-Damage model'),
155
- zod_1.z.literal('Carrying capacity'),
156
- zod_1.z.literal('Resource dissipation'),
157
- zod_1.z.literal('other'),
158
- ]), zod_1.z.string()),
226
+ LCIAMethodPrinciple: zod_1.z.union([
227
+ zod_1.z.intersection(zod_1.z.union([
228
+ zod_1.z.literal('Distance-to-target'),
229
+ zod_1.z.literal('Critical surface-time'),
230
+ zod_1.z.literal('Effective volumes'),
231
+ zod_1.z.literal('AoP-Damage model'),
232
+ zod_1.z.literal('Carrying capacity'),
233
+ zod_1.z.literal('Resource dissipation'),
234
+ zod_1.z.literal('other'),
235
+ ]), zod_1.z.string()),
236
+ zod_1.z
237
+ .array(zod_1.z.intersection(zod_1.z.union([
238
+ zod_1.z.literal('Distance-to-target'),
239
+ zod_1.z.literal('Critical surface-time'),
240
+ zod_1.z.literal('Effective volumes'),
241
+ zod_1.z.literal('AoP-Damage model'),
242
+ zod_1.z.literal('Carrying capacity'),
243
+ zod_1.z.literal('Resource dissipation'),
244
+ zod_1.z.literal('other'),
245
+ ]), zod_1.z.string()))
246
+ .min(1),
247
+ ]),
159
248
  deviationsFromLCIAMethodPrinciple: tidas_data_types_schema_1.FTMultiLangSchema.optional(),
160
249
  normalisation: zod_1.z.boolean().optional(),
161
250
  referenceToUsableNormalisationDataSets: tidas_data_types_schema_1.GlobalReferenceTypeSchema.optional(),
@@ -177,99 +266,456 @@ exports.LciamethodsSchema = zod_1.z.object({
177
266
  })
178
267
  .optional(),
179
268
  validation: zod_1.z.object({
180
- review: (0, json_schema_1.withJsonSchemaConditional)(zod_1.z.object({
181
- '@type': zod_1.z.intersection(zod_1.z.union([
182
- zod_1.z.literal('Dependent internal review'),
183
- zod_1.z.literal('Independent internal review'),
184
- zod_1.z.literal('Independent external review'),
185
- zod_1.z.literal('Accredited third party review'),
186
- zod_1.z.literal('Independent review panel'),
187
- zod_1.z.literal('Not reviewed'),
188
- ]), zod_1.z.string()),
189
- 'common:scope': zod_1.z
190
- .union([
191
- zod_1.z.object({
192
- '@name': zod_1.z.intersection(zod_1.z.union([
193
- zod_1.z.literal('Substance properties, physical and chemical'),
194
- zod_1.z.literal('Substance properties, biological'),
195
- zod_1.z.literal('Model for Transport and Fate'),
196
- zod_1.z.literal('Model for Exposure'),
197
- zod_1.z.literal('Model for Effect'),
198
- zod_1.z.literal('Model for Damage'),
199
- zod_1.z.literal('Characterisation factors'),
200
- zod_1.z.literal('Application of model'),
201
- zod_1.z.literal('Normalisation'),
202
- zod_1.z.literal('Weighting'),
203
- zod_1.z.literal('Documentation'),
204
- ]), zod_1.z.string()),
205
- 'common:method': zod_1.z.union([
206
- zod_1.z.object({
207
- '@name': zod_1.z.intersection(zod_1.z.union([
208
- zod_1.z.literal('Recollection / Validation of data'),
209
- zod_1.z.literal('Recalculation'),
210
- zod_1.z.literal('Cross-check with other source'),
211
- zod_1.z.literal('Cross-check with other LCIA method(ology)'),
212
- zod_1.z.literal('Expert judgement'),
213
- ]), zod_1.z.string()),
214
- }),
215
- zod_1.z.array(zod_1.z.object({
216
- '@name': zod_1.z.intersection(zod_1.z.union([
217
- zod_1.z.literal('Recollection / Validation of data'),
218
- zod_1.z.literal('Recalculation'),
219
- zod_1.z.literal('Cross-check with other source'),
220
- zod_1.z.literal('Cross-check with other LCIA method(ology)'),
221
- zod_1.z.literal('Expert judgement'),
222
- ]), zod_1.z.string()),
223
- })),
224
- ]),
225
- }),
226
- zod_1.z.array(zod_1.z.object({
227
- '@name': zod_1.z.intersection(zod_1.z.union([
228
- zod_1.z.literal('Substance properties, physical and chemical'),
229
- zod_1.z.literal('Substance properties, biological'),
230
- zod_1.z.literal('Model for Transport and Fate'),
231
- zod_1.z.literal('Model for Exposure'),
232
- zod_1.z.literal('Model for Effect'),
233
- zod_1.z.literal('Model for Damage'),
234
- zod_1.z.literal('Characterisation factors'),
235
- zod_1.z.literal('Application of model'),
236
- zod_1.z.literal('Normalisation'),
237
- zod_1.z.literal('Weighting'),
238
- zod_1.z.literal('Documentation'),
239
- ]), zod_1.z.string()),
240
- 'common:method': zod_1.z.union([
241
- zod_1.z.object({
242
- '@name': zod_1.z.intersection(zod_1.z.union([
243
- zod_1.z.literal('Recollection / Validation of data'),
244
- zod_1.z.literal('Recalculation'),
245
- zod_1.z.literal('Cross-check with other source'),
246
- zod_1.z.literal('Cross-check with other LCIA method(ology)'),
247
- zod_1.z.literal('Expert judgement'),
248
- ]), zod_1.z.string()),
249
- }),
250
- zod_1.z.array(zod_1.z.object({
251
- '@name': zod_1.z.intersection(zod_1.z.union([
252
- zod_1.z.literal('Recollection / Validation of data'),
253
- zod_1.z.literal('Recalculation'),
254
- zod_1.z.literal('Cross-check with other source'),
255
- zod_1.z.literal('Cross-check with other LCIA method(ology)'),
256
- zod_1.z.literal('Expert judgement'),
257
- ]), zod_1.z.string()),
258
- })),
259
- ]),
260
- })),
261
- ])
262
- .optional(),
263
- 'common:reviewDetails': tidas_data_types_schema_1.FTMultiLangSchema.optional(),
264
- 'common:referenceToNameOfReviewerAndInstitution': tidas_data_types_schema_1.GlobalReferenceTypeSchema.optional(),
265
- 'common:otherReviewDetails': tidas_data_types_schema_1.FTMultiLangSchema.optional(),
266
- 'common:referenceToCompleteReviewReport': tidas_data_types_schema_1.GlobalReferenceTypeSchema.optional(),
267
- 'common:other': tidas_data_types_schema_1.CommonOtherSchema.optional(),
268
- }), zod_1.z.object({ '@type': zod_1.z.literal('Not reviewed').optional() }), zod_1.z.unknown(), zod_1.z.object({
269
- 'common:scope': zod_1.z.unknown(),
270
- 'common:reviewDetails': zod_1.z.unknown(),
271
- 'common:referenceToNameOfReviewerAndInstitution': zod_1.z.unknown(),
272
- })),
269
+ review: zod_1.z.union([
270
+ (0, json_schema_1.withJsonSchemaConditional)(zod_1.z.intersection(zod_1.z.object({
271
+ '@type': zod_1.z.intersection(zod_1.z.union([
272
+ zod_1.z.literal('Dependent internal review'),
273
+ zod_1.z.literal('Independent internal review'),
274
+ zod_1.z.literal('Independent external review'),
275
+ zod_1.z.literal('Accredited third party review'),
276
+ zod_1.z.literal('Independent review panel'),
277
+ zod_1.z.literal('Not reviewed'),
278
+ ]), zod_1.z.string()),
279
+ 'common:reviewDetails': tidas_data_types_schema_1.FTMultiLangSchema.optional(),
280
+ 'common:referenceToNameOfReviewerAndInstitution': tidas_data_types_schema_1.GlobalReferenceTypeSchema.optional(),
281
+ 'common:otherReviewDetails': tidas_data_types_schema_1.FTMultiLangSchema.optional(),
282
+ 'common:referenceToCompleteReviewReport': tidas_data_types_schema_1.GlobalReferenceTypeSchema.optional(),
283
+ 'common:other': tidas_data_types_schema_1.CommonOtherSchema.optional(),
284
+ scope: zod_1.z
285
+ .union([
286
+ zod_1.z.intersection(zod_1.z.intersection(zod_1.z.object({
287
+ '@name': zod_1.z.intersection(zod_1.z.union([
288
+ zod_1.z.literal('Substance properties, physical and chemical'),
289
+ zod_1.z.literal('Substance properties, biological'),
290
+ zod_1.z.literal('Model for Transport and Fate'),
291
+ zod_1.z.literal('Model for Exposure'),
292
+ zod_1.z.literal('Model for Effect'),
293
+ zod_1.z.literal('Model for Damage'),
294
+ zod_1.z.literal('Characterisation factors'),
295
+ zod_1.z.literal('Application of model'),
296
+ zod_1.z.literal('Normalisation'),
297
+ zod_1.z.literal('Weighting'),
298
+ zod_1.z.literal('Documentation'),
299
+ ]), zod_1.z.string()),
300
+ method: zod_1.z
301
+ .union([
302
+ zod_1.z.object({
303
+ '@name': zod_1.z.intersection(zod_1.z.union([
304
+ zod_1.z.literal('Recollection / Validation of data'),
305
+ zod_1.z.literal('Recalculation'),
306
+ zod_1.z.literal('Cross-check with other source'),
307
+ zod_1.z.literal('Cross-check with other LCIA method(ology)'),
308
+ zod_1.z.literal('Expert judgement'),
309
+ ]), zod_1.z.string()),
310
+ }),
311
+ zod_1.z.array(zod_1.z.object({
312
+ '@name': zod_1.z.intersection(zod_1.z.union([
313
+ zod_1.z.literal('Recollection / Validation of data'),
314
+ zod_1.z.literal('Recalculation'),
315
+ zod_1.z.literal('Cross-check with other source'),
316
+ zod_1.z.literal('Cross-check with other LCIA method(ology)'),
317
+ zod_1.z.literal('Expert judgement'),
318
+ ]), zod_1.z.string()),
319
+ })),
320
+ ])
321
+ .optional(),
322
+ 'common:method': zod_1.z
323
+ .union([
324
+ zod_1.z.object({
325
+ '@name': zod_1.z.intersection(zod_1.z.union([
326
+ zod_1.z.literal('Recollection / Validation of data'),
327
+ zod_1.z.literal('Recalculation'),
328
+ zod_1.z.literal('Cross-check with other source'),
329
+ zod_1.z.literal('Cross-check with other LCIA method(ology)'),
330
+ zod_1.z.literal('Expert judgement'),
331
+ ]), zod_1.z.string()),
332
+ }),
333
+ zod_1.z.array(zod_1.z.object({
334
+ '@name': zod_1.z.intersection(zod_1.z.union([
335
+ zod_1.z.literal('Recollection / Validation of data'),
336
+ zod_1.z.literal('Recalculation'),
337
+ zod_1.z.literal('Cross-check with other source'),
338
+ zod_1.z.literal('Cross-check with other LCIA method(ology)'),
339
+ zod_1.z.literal('Expert judgement'),
340
+ ]), zod_1.z.string()),
341
+ })),
342
+ ])
343
+ .optional(),
344
+ }), zod_1.z.union([
345
+ zod_1.z.object({ method: zod_1.z.unknown() }),
346
+ zod_1.z.object({ 'common:method': zod_1.z.unknown() }),
347
+ ])), (0, json_schema_1.jsonSchemaNotRequired)(['method', 'common:method'])),
348
+ zod_1.z.array(zod_1.z.intersection(zod_1.z.intersection(zod_1.z.object({
349
+ '@name': zod_1.z.intersection(zod_1.z.union([
350
+ zod_1.z.literal('Substance properties, physical and chemical'),
351
+ zod_1.z.literal('Substance properties, biological'),
352
+ zod_1.z.literal('Model for Transport and Fate'),
353
+ zod_1.z.literal('Model for Exposure'),
354
+ zod_1.z.literal('Model for Effect'),
355
+ zod_1.z.literal('Model for Damage'),
356
+ zod_1.z.literal('Characterisation factors'),
357
+ zod_1.z.literal('Application of model'),
358
+ zod_1.z.literal('Normalisation'),
359
+ zod_1.z.literal('Weighting'),
360
+ zod_1.z.literal('Documentation'),
361
+ ]), zod_1.z.string()),
362
+ method: zod_1.z
363
+ .union([
364
+ zod_1.z.object({
365
+ '@name': zod_1.z.intersection(zod_1.z.union([
366
+ zod_1.z.literal('Recollection / Validation of data'),
367
+ zod_1.z.literal('Recalculation'),
368
+ zod_1.z.literal('Cross-check with other source'),
369
+ zod_1.z.literal('Cross-check with other LCIA method(ology)'),
370
+ zod_1.z.literal('Expert judgement'),
371
+ ]), zod_1.z.string()),
372
+ }),
373
+ zod_1.z.array(zod_1.z.object({
374
+ '@name': zod_1.z.intersection(zod_1.z.union([
375
+ zod_1.z.literal('Recollection / Validation of data'),
376
+ zod_1.z.literal('Recalculation'),
377
+ zod_1.z.literal('Cross-check with other source'),
378
+ zod_1.z.literal('Cross-check with other LCIA method(ology)'),
379
+ zod_1.z.literal('Expert judgement'),
380
+ ]), zod_1.z.string()),
381
+ })),
382
+ ])
383
+ .optional(),
384
+ 'common:method': zod_1.z
385
+ .union([
386
+ zod_1.z.object({
387
+ '@name': zod_1.z.intersection(zod_1.z.union([
388
+ zod_1.z.literal('Recollection / Validation of data'),
389
+ zod_1.z.literal('Recalculation'),
390
+ zod_1.z.literal('Cross-check with other source'),
391
+ zod_1.z.literal('Cross-check with other LCIA method(ology)'),
392
+ zod_1.z.literal('Expert judgement'),
393
+ ]), zod_1.z.string()),
394
+ }),
395
+ zod_1.z.array(zod_1.z.object({
396
+ '@name': zod_1.z.intersection(zod_1.z.union([
397
+ zod_1.z.literal('Recollection / Validation of data'),
398
+ zod_1.z.literal('Recalculation'),
399
+ zod_1.z.literal('Cross-check with other source'),
400
+ zod_1.z.literal('Cross-check with other LCIA method(ology)'),
401
+ zod_1.z.literal('Expert judgement'),
402
+ ]), zod_1.z.string()),
403
+ })),
404
+ ])
405
+ .optional(),
406
+ }), zod_1.z.union([
407
+ zod_1.z.object({ method: zod_1.z.unknown() }),
408
+ zod_1.z.object({ 'common:method': zod_1.z.unknown() }),
409
+ ])), (0, json_schema_1.jsonSchemaNotRequired)(['method', 'common:method']))),
410
+ ])
411
+ .optional(),
412
+ 'common:scope': zod_1.z
413
+ .union([
414
+ zod_1.z.object({
415
+ '@name': zod_1.z.intersection(zod_1.z.union([
416
+ zod_1.z.literal('Substance properties, physical and chemical'),
417
+ zod_1.z.literal('Substance properties, biological'),
418
+ zod_1.z.literal('Model for Transport and Fate'),
419
+ zod_1.z.literal('Model for Exposure'),
420
+ zod_1.z.literal('Model for Effect'),
421
+ zod_1.z.literal('Model for Damage'),
422
+ zod_1.z.literal('Characterisation factors'),
423
+ zod_1.z.literal('Application of model'),
424
+ zod_1.z.literal('Normalisation'),
425
+ zod_1.z.literal('Weighting'),
426
+ zod_1.z.literal('Documentation'),
427
+ ]), zod_1.z.string()),
428
+ 'common:method': zod_1.z.union([
429
+ zod_1.z.object({
430
+ '@name': zod_1.z.intersection(zod_1.z.union([
431
+ zod_1.z.literal('Recollection / Validation of data'),
432
+ zod_1.z.literal('Recalculation'),
433
+ zod_1.z.literal('Cross-check with other source'),
434
+ zod_1.z.literal('Cross-check with other LCIA method(ology)'),
435
+ zod_1.z.literal('Expert judgement'),
436
+ ]), zod_1.z.string()),
437
+ }),
438
+ zod_1.z.array(zod_1.z.object({
439
+ '@name': zod_1.z.intersection(zod_1.z.union([
440
+ zod_1.z.literal('Recollection / Validation of data'),
441
+ zod_1.z.literal('Recalculation'),
442
+ zod_1.z.literal('Cross-check with other source'),
443
+ zod_1.z.literal('Cross-check with other LCIA method(ology)'),
444
+ zod_1.z.literal('Expert judgement'),
445
+ ]), zod_1.z.string()),
446
+ })),
447
+ ]),
448
+ }),
449
+ zod_1.z.array(zod_1.z.object({
450
+ '@name': zod_1.z.intersection(zod_1.z.union([
451
+ zod_1.z.literal('Substance properties, physical and chemical'),
452
+ zod_1.z.literal('Substance properties, biological'),
453
+ zod_1.z.literal('Model for Transport and Fate'),
454
+ zod_1.z.literal('Model for Exposure'),
455
+ zod_1.z.literal('Model for Effect'),
456
+ zod_1.z.literal('Model for Damage'),
457
+ zod_1.z.literal('Characterisation factors'),
458
+ zod_1.z.literal('Application of model'),
459
+ zod_1.z.literal('Normalisation'),
460
+ zod_1.z.literal('Weighting'),
461
+ zod_1.z.literal('Documentation'),
462
+ ]), zod_1.z.string()),
463
+ 'common:method': zod_1.z.union([
464
+ zod_1.z.object({
465
+ '@name': zod_1.z.intersection(zod_1.z.union([
466
+ zod_1.z.literal('Recollection / Validation of data'),
467
+ zod_1.z.literal('Recalculation'),
468
+ zod_1.z.literal('Cross-check with other source'),
469
+ zod_1.z.literal('Cross-check with other LCIA method(ology)'),
470
+ zod_1.z.literal('Expert judgement'),
471
+ ]), zod_1.z.string()),
472
+ }),
473
+ zod_1.z.array(zod_1.z.object({
474
+ '@name': zod_1.z.intersection(zod_1.z.union([
475
+ zod_1.z.literal('Recollection / Validation of data'),
476
+ zod_1.z.literal('Recalculation'),
477
+ zod_1.z.literal('Cross-check with other source'),
478
+ zod_1.z.literal('Cross-check with other LCIA method(ology)'),
479
+ zod_1.z.literal('Expert judgement'),
480
+ ]), zod_1.z.string()),
481
+ })),
482
+ ]),
483
+ })),
484
+ ])
485
+ .optional(),
486
+ }), (0, json_schema_1.jsonSchemaNotRequired)(['scope', 'common:scope'])), zod_1.z.object({ '@type': zod_1.z.literal('Not reviewed').optional() }), zod_1.z.unknown(), zod_1.z.intersection(zod_1.z.object({
487
+ 'common:reviewDetails': zod_1.z.unknown(),
488
+ 'common:referenceToNameOfReviewerAndInstitution': zod_1.z.unknown(),
489
+ }), zod_1.z.union([
490
+ zod_1.z.object({ scope: zod_1.z.unknown() }),
491
+ zod_1.z.object({ 'common:scope': zod_1.z.unknown() }),
492
+ ]))),
493
+ zod_1.z
494
+ .array((0, json_schema_1.withJsonSchemaConditional)(zod_1.z.intersection(zod_1.z.object({
495
+ '@type': zod_1.z.intersection(zod_1.z.union([
496
+ zod_1.z.literal('Dependent internal review'),
497
+ zod_1.z.literal('Independent internal review'),
498
+ zod_1.z.literal('Independent external review'),
499
+ zod_1.z.literal('Accredited third party review'),
500
+ zod_1.z.literal('Independent review panel'),
501
+ zod_1.z.literal('Not reviewed'),
502
+ ]), zod_1.z.string()),
503
+ 'common:reviewDetails': tidas_data_types_schema_1.FTMultiLangSchema.optional(),
504
+ 'common:referenceToNameOfReviewerAndInstitution': tidas_data_types_schema_1.GlobalReferenceTypeSchema.optional(),
505
+ 'common:otherReviewDetails': tidas_data_types_schema_1.FTMultiLangSchema.optional(),
506
+ 'common:referenceToCompleteReviewReport': tidas_data_types_schema_1.GlobalReferenceTypeSchema.optional(),
507
+ 'common:other': tidas_data_types_schema_1.CommonOtherSchema.optional(),
508
+ scope: zod_1.z
509
+ .union([
510
+ zod_1.z.intersection(zod_1.z.intersection(zod_1.z.object({
511
+ '@name': zod_1.z.intersection(zod_1.z.union([
512
+ zod_1.z.literal('Substance properties, physical and chemical'),
513
+ zod_1.z.literal('Substance properties, biological'),
514
+ zod_1.z.literal('Model for Transport and Fate'),
515
+ zod_1.z.literal('Model for Exposure'),
516
+ zod_1.z.literal('Model for Effect'),
517
+ zod_1.z.literal('Model for Damage'),
518
+ zod_1.z.literal('Characterisation factors'),
519
+ zod_1.z.literal('Application of model'),
520
+ zod_1.z.literal('Normalisation'),
521
+ zod_1.z.literal('Weighting'),
522
+ zod_1.z.literal('Documentation'),
523
+ ]), zod_1.z.string()),
524
+ method: zod_1.z
525
+ .union([
526
+ zod_1.z.object({
527
+ '@name': zod_1.z.intersection(zod_1.z.union([
528
+ zod_1.z.literal('Recollection / Validation of data'),
529
+ zod_1.z.literal('Recalculation'),
530
+ zod_1.z.literal('Cross-check with other source'),
531
+ zod_1.z.literal('Cross-check with other LCIA method(ology)'),
532
+ zod_1.z.literal('Expert judgement'),
533
+ ]), zod_1.z.string()),
534
+ }),
535
+ zod_1.z.array(zod_1.z.object({
536
+ '@name': zod_1.z.intersection(zod_1.z.union([
537
+ zod_1.z.literal('Recollection / Validation of data'),
538
+ zod_1.z.literal('Recalculation'),
539
+ zod_1.z.literal('Cross-check with other source'),
540
+ zod_1.z.literal('Cross-check with other LCIA method(ology)'),
541
+ zod_1.z.literal('Expert judgement'),
542
+ ]), zod_1.z.string()),
543
+ })),
544
+ ])
545
+ .optional(),
546
+ 'common:method': zod_1.z
547
+ .union([
548
+ zod_1.z.object({
549
+ '@name': zod_1.z.intersection(zod_1.z.union([
550
+ zod_1.z.literal('Recollection / Validation of data'),
551
+ zod_1.z.literal('Recalculation'),
552
+ zod_1.z.literal('Cross-check with other source'),
553
+ zod_1.z.literal('Cross-check with other LCIA method(ology)'),
554
+ zod_1.z.literal('Expert judgement'),
555
+ ]), zod_1.z.string()),
556
+ }),
557
+ zod_1.z.array(zod_1.z.object({
558
+ '@name': zod_1.z.intersection(zod_1.z.union([
559
+ zod_1.z.literal('Recollection / Validation of data'),
560
+ zod_1.z.literal('Recalculation'),
561
+ zod_1.z.literal('Cross-check with other source'),
562
+ zod_1.z.literal('Cross-check with other LCIA method(ology)'),
563
+ zod_1.z.literal('Expert judgement'),
564
+ ]), zod_1.z.string()),
565
+ })),
566
+ ])
567
+ .optional(),
568
+ }), zod_1.z.union([
569
+ zod_1.z.object({ method: zod_1.z.unknown() }),
570
+ zod_1.z.object({ 'common:method': zod_1.z.unknown() }),
571
+ ])), (0, json_schema_1.jsonSchemaNotRequired)(['method', 'common:method'])),
572
+ zod_1.z.array(zod_1.z.intersection(zod_1.z.intersection(zod_1.z.object({
573
+ '@name': zod_1.z.intersection(zod_1.z.union([
574
+ zod_1.z.literal('Substance properties, physical and chemical'),
575
+ zod_1.z.literal('Substance properties, biological'),
576
+ zod_1.z.literal('Model for Transport and Fate'),
577
+ zod_1.z.literal('Model for Exposure'),
578
+ zod_1.z.literal('Model for Effect'),
579
+ zod_1.z.literal('Model for Damage'),
580
+ zod_1.z.literal('Characterisation factors'),
581
+ zod_1.z.literal('Application of model'),
582
+ zod_1.z.literal('Normalisation'),
583
+ zod_1.z.literal('Weighting'),
584
+ zod_1.z.literal('Documentation'),
585
+ ]), zod_1.z.string()),
586
+ method: zod_1.z
587
+ .union([
588
+ zod_1.z.object({
589
+ '@name': zod_1.z.intersection(zod_1.z.union([
590
+ zod_1.z.literal('Recollection / Validation of data'),
591
+ zod_1.z.literal('Recalculation'),
592
+ zod_1.z.literal('Cross-check with other source'),
593
+ zod_1.z.literal('Cross-check with other LCIA method(ology)'),
594
+ zod_1.z.literal('Expert judgement'),
595
+ ]), zod_1.z.string()),
596
+ }),
597
+ zod_1.z.array(zod_1.z.object({
598
+ '@name': zod_1.z.intersection(zod_1.z.union([
599
+ zod_1.z.literal('Recollection / Validation of data'),
600
+ zod_1.z.literal('Recalculation'),
601
+ zod_1.z.literal('Cross-check with other source'),
602
+ zod_1.z.literal('Cross-check with other LCIA method(ology)'),
603
+ zod_1.z.literal('Expert judgement'),
604
+ ]), zod_1.z.string()),
605
+ })),
606
+ ])
607
+ .optional(),
608
+ 'common:method': zod_1.z
609
+ .union([
610
+ zod_1.z.object({
611
+ '@name': zod_1.z.intersection(zod_1.z.union([
612
+ zod_1.z.literal('Recollection / Validation of data'),
613
+ zod_1.z.literal('Recalculation'),
614
+ zod_1.z.literal('Cross-check with other source'),
615
+ zod_1.z.literal('Cross-check with other LCIA method(ology)'),
616
+ zod_1.z.literal('Expert judgement'),
617
+ ]), zod_1.z.string()),
618
+ }),
619
+ zod_1.z.array(zod_1.z.object({
620
+ '@name': zod_1.z.intersection(zod_1.z.union([
621
+ zod_1.z.literal('Recollection / Validation of data'),
622
+ zod_1.z.literal('Recalculation'),
623
+ zod_1.z.literal('Cross-check with other source'),
624
+ zod_1.z.literal('Cross-check with other LCIA method(ology)'),
625
+ zod_1.z.literal('Expert judgement'),
626
+ ]), zod_1.z.string()),
627
+ })),
628
+ ])
629
+ .optional(),
630
+ }), zod_1.z.union([
631
+ zod_1.z.object({ method: zod_1.z.unknown() }),
632
+ zod_1.z.object({ 'common:method': zod_1.z.unknown() }),
633
+ ])), (0, json_schema_1.jsonSchemaNotRequired)(['method', 'common:method']))),
634
+ ])
635
+ .optional(),
636
+ 'common:scope': zod_1.z
637
+ .union([
638
+ zod_1.z.object({
639
+ '@name': zod_1.z.intersection(zod_1.z.union([
640
+ zod_1.z.literal('Substance properties, physical and chemical'),
641
+ zod_1.z.literal('Substance properties, biological'),
642
+ zod_1.z.literal('Model for Transport and Fate'),
643
+ zod_1.z.literal('Model for Exposure'),
644
+ zod_1.z.literal('Model for Effect'),
645
+ zod_1.z.literal('Model for Damage'),
646
+ zod_1.z.literal('Characterisation factors'),
647
+ zod_1.z.literal('Application of model'),
648
+ zod_1.z.literal('Normalisation'),
649
+ zod_1.z.literal('Weighting'),
650
+ zod_1.z.literal('Documentation'),
651
+ ]), zod_1.z.string()),
652
+ 'common:method': zod_1.z.union([
653
+ zod_1.z.object({
654
+ '@name': zod_1.z.intersection(zod_1.z.union([
655
+ zod_1.z.literal('Recollection / Validation of data'),
656
+ zod_1.z.literal('Recalculation'),
657
+ zod_1.z.literal('Cross-check with other source'),
658
+ zod_1.z.literal('Cross-check with other LCIA method(ology)'),
659
+ zod_1.z.literal('Expert judgement'),
660
+ ]), zod_1.z.string()),
661
+ }),
662
+ zod_1.z.array(zod_1.z.object({
663
+ '@name': zod_1.z.intersection(zod_1.z.union([
664
+ zod_1.z.literal('Recollection / Validation of data'),
665
+ zod_1.z.literal('Recalculation'),
666
+ zod_1.z.literal('Cross-check with other source'),
667
+ zod_1.z.literal('Cross-check with other LCIA method(ology)'),
668
+ zod_1.z.literal('Expert judgement'),
669
+ ]), zod_1.z.string()),
670
+ })),
671
+ ]),
672
+ }),
673
+ zod_1.z.array(zod_1.z.object({
674
+ '@name': zod_1.z.intersection(zod_1.z.union([
675
+ zod_1.z.literal('Substance properties, physical and chemical'),
676
+ zod_1.z.literal('Substance properties, biological'),
677
+ zod_1.z.literal('Model for Transport and Fate'),
678
+ zod_1.z.literal('Model for Exposure'),
679
+ zod_1.z.literal('Model for Effect'),
680
+ zod_1.z.literal('Model for Damage'),
681
+ zod_1.z.literal('Characterisation factors'),
682
+ zod_1.z.literal('Application of model'),
683
+ zod_1.z.literal('Normalisation'),
684
+ zod_1.z.literal('Weighting'),
685
+ zod_1.z.literal('Documentation'),
686
+ ]), zod_1.z.string()),
687
+ 'common:method': zod_1.z.union([
688
+ zod_1.z.object({
689
+ '@name': zod_1.z.intersection(zod_1.z.union([
690
+ zod_1.z.literal('Recollection / Validation of data'),
691
+ zod_1.z.literal('Recalculation'),
692
+ zod_1.z.literal('Cross-check with other source'),
693
+ zod_1.z.literal('Cross-check with other LCIA method(ology)'),
694
+ zod_1.z.literal('Expert judgement'),
695
+ ]), zod_1.z.string()),
696
+ }),
697
+ zod_1.z.array(zod_1.z.object({
698
+ '@name': zod_1.z.intersection(zod_1.z.union([
699
+ zod_1.z.literal('Recollection / Validation of data'),
700
+ zod_1.z.literal('Recalculation'),
701
+ zod_1.z.literal('Cross-check with other source'),
702
+ zod_1.z.literal('Cross-check with other LCIA method(ology)'),
703
+ zod_1.z.literal('Expert judgement'),
704
+ ]), zod_1.z.string()),
705
+ })),
706
+ ]),
707
+ })),
708
+ ])
709
+ .optional(),
710
+ }), (0, json_schema_1.jsonSchemaNotRequired)(['scope', 'common:scope'])), zod_1.z.object({ '@type': zod_1.z.literal('Not reviewed').optional() }), zod_1.z.unknown(), zod_1.z.intersection(zod_1.z.object({
711
+ 'common:reviewDetails': zod_1.z.unknown(),
712
+ 'common:referenceToNameOfReviewerAndInstitution': zod_1.z.unknown(),
713
+ }), zod_1.z.union([
714
+ zod_1.z.object({ scope: zod_1.z.unknown() }),
715
+ zod_1.z.object({ 'common:scope': zod_1.z.unknown() }),
716
+ ]))))
717
+ .min(1),
718
+ ]),
273
719
  'common:other': tidas_data_types_schema_1.CommonOtherSchema.optional(),
274
720
  }),
275
721
  complianceDeclarations: zod_1.z.object({
@@ -409,7 +855,7 @@ exports.LciamethodsSchema = zod_1.z.object({
409
855
  }),
410
856
  characterisationFactors: zod_1.z.object({
411
857
  factor: zod_1.z.union([
412
- zod_1.z.object({
858
+ zod_1.z.intersection(zod_1.z.object({
413
859
  referenceToFlowDataSet: tidas_data_types_schema_1.GlobalReferenceTypeSchema,
414
860
  location: zod_1.z.string().optional(),
415
861
  exchangeDirection: zod_1.z.intersection(zod_1.z.union([zod_1.z.literal('Input'), zod_1.z.literal('Output')]), zod_1.z.string()),
@@ -443,11 +889,28 @@ exports.LciamethodsSchema = zod_1.z.object({
443
889
  zod_1.z.literal('Interim'),
444
890
  zod_1.z.literal('Not recommended'),
445
891
  ]), zod_1.z.string()),
446
- referenceToDataSource: tidas_data_types_schema_1.GlobalReferenceTypeSchema.optional(),
447
892
  generalComment: tidas_data_types_schema_1.StringMultiLangSchema.optional(),
448
893
  'common:other': tidas_data_types_schema_1.CommonOtherSchema.optional(),
449
- }),
450
- zod_1.z.array(zod_1.z.object({
894
+ referencesToDataSource: zod_1.z
895
+ .object({
896
+ referenceToDataSource: tidas_data_types_schema_1.GlobalReferenceTypeSchema,
897
+ 'common:other': tidas_data_types_schema_1.CommonOtherSchema.optional(),
898
+ })
899
+ .optional(),
900
+ referenceToDataSource: zod_1.z
901
+ .union([
902
+ tidas_data_types_schema_1.GlobalReferenceTypeSchema,
903
+ zod_1.z.object({
904
+ referenceToDataSource: tidas_data_types_schema_1.GlobalReferenceTypeSchema,
905
+ 'common:other': tidas_data_types_schema_1.CommonOtherSchema.optional(),
906
+ }),
907
+ ])
908
+ .optional(),
909
+ }), (0, json_schema_1.jsonSchemaNotRequired)([
910
+ 'referenceToDataSource',
911
+ 'referencesToDataSource',
912
+ ])),
913
+ zod_1.z.array(zod_1.z.intersection(zod_1.z.object({
451
914
  referenceToFlowDataSet: tidas_data_types_schema_1.GlobalReferenceTypeSchema,
452
915
  location: zod_1.z.string().optional(),
453
916
  exchangeDirection: zod_1.z.intersection(zod_1.z.union([zod_1.z.literal('Input'), zod_1.z.literal('Output')]), zod_1.z.string()),
@@ -481,13 +944,27 @@ exports.LciamethodsSchema = zod_1.z.object({
481
944
  zod_1.z.literal('Interim'),
482
945
  zod_1.z.literal('Not recommended'),
483
946
  ]), zod_1.z.string()),
484
- referenceToDataSource: zod_1.z
947
+ generalComment: tidas_data_types_schema_1.StringMultiLangSchema.optional(),
948
+ referencesToDataSource: zod_1.z
485
949
  .object({
486
- referenceToDataSource: tidas_data_types_schema_1.GlobalReferenceTypeSchema.optional(),
950
+ referenceToDataSource: tidas_data_types_schema_1.GlobalReferenceTypeSchema,
951
+ 'common:other': tidas_data_types_schema_1.CommonOtherSchema.optional(),
487
952
  })
488
953
  .optional(),
489
- generalComment: tidas_data_types_schema_1.StringMultiLangSchema.optional(),
490
- })),
954
+ referenceToDataSource: zod_1.z
955
+ .union([
956
+ tidas_data_types_schema_1.GlobalReferenceTypeSchema,
957
+ zod_1.z.object({
958
+ referenceToDataSource: tidas_data_types_schema_1.GlobalReferenceTypeSchema,
959
+ 'common:other': tidas_data_types_schema_1.CommonOtherSchema.optional(),
960
+ }),
961
+ ])
962
+ .optional(),
963
+ 'common:other': tidas_data_types_schema_1.CommonOtherSchema.optional(),
964
+ }), (0, json_schema_1.jsonSchemaNotRequired)([
965
+ 'referenceToDataSource',
966
+ 'referencesToDataSource',
967
+ ]))),
491
968
  ]),
492
969
  'common:other': tidas_data_types_schema_1.CommonOtherSchema.optional(),
493
970
  }),