@tiangong-lca/tidas-sdk 0.1.2 → 0.1.3

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 (30) hide show
  1. package/dist/core/base/TidasEntity.d.ts.map +1 -1
  2. package/dist/core/base/TidasEntity.js +12 -5
  3. package/dist/core/base/TidasEntity.js.map +1 -1
  4. package/dist/schemas/tidas_contacts.schema.d.ts +15 -105
  5. package/dist/schemas/tidas_contacts.schema.d.ts.map +1 -1
  6. package/dist/schemas/tidas_data_types.schema.d.ts +9 -39
  7. package/dist/schemas/tidas_data_types.schema.d.ts.map +1 -1
  8. package/dist/schemas/tidas_data_types.schema.js +19 -35
  9. package/dist/schemas/tidas_data_types.schema.js.map +1 -1
  10. package/dist/schemas/tidas_flowproperties.schema.d.ts +15 -105
  11. package/dist/schemas/tidas_flowproperties.schema.d.ts.map +1 -1
  12. package/dist/schemas/tidas_flows.schema.d.ts +22 -154
  13. package/dist/schemas/tidas_flows.schema.d.ts.map +1 -1
  14. package/dist/schemas/tidas_lciamethods.schema.d.ts +72 -504
  15. package/dist/schemas/tidas_lciamethods.schema.d.ts.map +1 -1
  16. package/dist/schemas/tidas_lifecyclemodels.schema.d.ts +47 -329
  17. package/dist/schemas/tidas_lifecyclemodels.schema.d.ts.map +1 -1
  18. package/dist/schemas/tidas_processes.schema.d.ts +89 -623
  19. package/dist/schemas/tidas_processes.schema.d.ts.map +1 -1
  20. package/dist/schemas/tidas_sources.schema.d.ts +12 -84
  21. package/dist/schemas/tidas_sources.schema.d.ts.map +1 -1
  22. package/dist/schemas/tidas_unitgroups.schema.d.ts +12 -84
  23. package/dist/schemas/tidas_unitgroups.schema.d.ts.map +1 -1
  24. package/dist/types/multi-lang-types.d.ts +7 -1
  25. package/dist/types/multi-lang-types.d.ts.map +1 -1
  26. package/dist/types/multi-lang-types.js +1 -1
  27. package/dist/types/multi-lang-types.js.map +1 -1
  28. package/dist/types/tidas_data_types.d.ts +4 -4
  29. package/dist/types/tidas_data_types.d.ts.map +1 -1
  30. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"tidas_processes.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/tidas_processes.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAoBxB,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,13 +9,7 @@ export declare const SourcesSchema: z.ZodObject<{
9
9
  sourceInformation: z.ZodObject<{
10
10
  dataSetInformation: z.ZodObject<{
11
11
  'common:UUID': z.ZodString;
12
- 'common:shortName': z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
13
- '@xml:lang': z.ZodString;
14
- '#text': z.ZodString;
15
- }, z.core.$strip>>, z.ZodObject<{
16
- '@xml:lang': z.ZodString;
17
- '#text': z.ZodString;
18
- }, z.core.$strip>]>;
12
+ 'common:shortName': z.ZodUnion<readonly [z.ZodAny, z.ZodAny]>;
19
13
  classificationInformation: z.ZodObject<{
20
14
  'common:classification': z.ZodObject<{
21
15
  'common:class': z.ZodObject<{
@@ -28,13 +22,7 @@ export declare const SourcesSchema: z.ZodObject<{
28
22
  }, z.core.$strip>;
29
23
  sourceCitation: z.ZodOptional<z.ZodString>;
30
24
  publicationType: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"Undefined">, z.ZodLiteral<"Article in periodical">, z.ZodLiteral<"Chapter in anthology">, z.ZodLiteral<"Monograph">, z.ZodLiteral<"Direct measurement">, z.ZodLiteral<"Oral communication">, z.ZodLiteral<"Personal written communication">, z.ZodLiteral<"Questionnaire">, z.ZodLiteral<"Software or database">, z.ZodLiteral<"Other unpublished and grey literature">]>>;
31
- sourceDescriptionOrComment: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
32
- '@xml:lang': z.ZodString;
33
- '#text': z.ZodString;
34
- }, z.core.$strip>>, z.ZodObject<{
35
- '@xml:lang': z.ZodString;
36
- '#text': z.ZodString;
37
- }, z.core.$strip>]>>;
25
+ sourceDescriptionOrComment: z.ZodOptional<z.ZodUnion<readonly [z.ZodAny, z.ZodAny]>>;
38
26
  referenceToDigitalFile: z.ZodOptional<z.ZodObject<{
39
27
  '@uri': z.ZodOptional<z.ZodString>;
40
28
  }, z.core.$strip>>;
@@ -43,50 +31,26 @@ export declare const SourcesSchema: z.ZodObject<{
43
31
  '@refObjectId': z.ZodString;
44
32
  '@version': z.ZodString;
45
33
  '@uri': z.ZodString;
46
- 'common:shortDescription': z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
47
- '@xml:lang': z.ZodString;
48
- '#text': z.ZodString;
49
- }, z.core.$strip>>, z.ZodObject<{
50
- '@xml:lang': z.ZodString;
51
- '#text': z.ZodString;
52
- }, z.core.$strip>]>;
34
+ 'common:shortDescription': z.ZodUnion<readonly [z.ZodAny, z.ZodAny]>;
53
35
  }, z.core.$strip>, z.ZodArray<z.ZodObject<{
54
36
  '@type': z.ZodString;
55
37
  '@refObjectId': z.ZodString;
56
38
  '@version': z.ZodString;
57
39
  '@uri': z.ZodString;
58
- 'common:shortDescription': z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
59
- '@xml:lang': z.ZodString;
60
- '#text': z.ZodString;
61
- }, z.core.$strip>>, z.ZodObject<{
62
- '@xml:lang': z.ZodString;
63
- '#text': z.ZodString;
64
- }, z.core.$strip>]>;
40
+ 'common:shortDescription': z.ZodUnion<readonly [z.ZodAny, z.ZodAny]>;
65
41
  }, z.core.$strip>>]>>;
66
42
  referenceToLogo: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
67
43
  '@type': z.ZodString;
68
44
  '@refObjectId': z.ZodString;
69
45
  '@version': z.ZodString;
70
46
  '@uri': z.ZodString;
71
- 'common:shortDescription': z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
72
- '@xml:lang': z.ZodString;
73
- '#text': z.ZodString;
74
- }, z.core.$strip>>, z.ZodObject<{
75
- '@xml:lang': z.ZodString;
76
- '#text': z.ZodString;
77
- }, z.core.$strip>]>;
47
+ 'common:shortDescription': z.ZodUnion<readonly [z.ZodAny, z.ZodAny]>;
78
48
  }, z.core.$strip>, z.ZodArray<z.ZodObject<{
79
49
  '@type': z.ZodString;
80
50
  '@refObjectId': z.ZodString;
81
51
  '@version': z.ZodString;
82
52
  '@uri': z.ZodString;
83
- 'common:shortDescription': z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
84
- '@xml:lang': z.ZodString;
85
- '#text': z.ZodString;
86
- }, z.core.$strip>>, z.ZodObject<{
87
- '@xml:lang': z.ZodString;
88
- '#text': z.ZodString;
89
- }, z.core.$strip>]>;
53
+ 'common:shortDescription': z.ZodUnion<readonly [z.ZodAny, z.ZodAny]>;
90
54
  }, z.core.$strip>>]>>;
91
55
  'common:other': z.ZodOptional<z.ZodString>;
92
56
  }, z.core.$strip>;
@@ -100,25 +64,13 @@ export declare const SourcesSchema: z.ZodObject<{
100
64
  '@refObjectId': z.ZodString;
101
65
  '@version': z.ZodString;
102
66
  '@uri': z.ZodString;
103
- 'common:shortDescription': z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
104
- '@xml:lang': z.ZodString;
105
- '#text': z.ZodString;
106
- }, z.core.$strip>>, z.ZodObject<{
107
- '@xml:lang': z.ZodString;
108
- '#text': z.ZodString;
109
- }, z.core.$strip>]>;
67
+ 'common:shortDescription': z.ZodUnion<readonly [z.ZodAny, z.ZodAny]>;
110
68
  }, z.core.$strip>, z.ZodArray<z.ZodObject<{
111
69
  '@type': z.ZodString;
112
70
  '@refObjectId': z.ZodString;
113
71
  '@version': z.ZodString;
114
72
  '@uri': z.ZodString;
115
- 'common:shortDescription': z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
116
- '@xml:lang': z.ZodString;
117
- '#text': z.ZodString;
118
- }, z.core.$strip>>, z.ZodObject<{
119
- '@xml:lang': z.ZodString;
120
- '#text': z.ZodString;
121
- }, z.core.$strip>]>;
73
+ 'common:shortDescription': z.ZodUnion<readonly [z.ZodAny, z.ZodAny]>;
122
74
  }, z.core.$strip>>]>;
123
75
  'common:other': z.ZodOptional<z.ZodString>;
124
76
  }, z.core.$strip>;
@@ -129,25 +81,13 @@ export declare const SourcesSchema: z.ZodObject<{
129
81
  '@refObjectId': z.ZodString;
130
82
  '@version': z.ZodString;
131
83
  '@uri': z.ZodString;
132
- 'common:shortDescription': z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
133
- '@xml:lang': z.ZodString;
134
- '#text': z.ZodString;
135
- }, z.core.$strip>>, z.ZodObject<{
136
- '@xml:lang': z.ZodString;
137
- '#text': z.ZodString;
138
- }, z.core.$strip>]>;
84
+ 'common:shortDescription': z.ZodUnion<readonly [z.ZodAny, z.ZodAny]>;
139
85
  }, z.core.$strip>, z.ZodArray<z.ZodObject<{
140
86
  '@type': z.ZodString;
141
87
  '@refObjectId': z.ZodString;
142
88
  '@version': z.ZodString;
143
89
  '@uri': z.ZodString;
144
- 'common:shortDescription': z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
145
- '@xml:lang': z.ZodString;
146
- '#text': z.ZodString;
147
- }, z.core.$strip>>, z.ZodObject<{
148
- '@xml:lang': z.ZodString;
149
- '#text': z.ZodString;
150
- }, z.core.$strip>]>;
90
+ 'common:shortDescription': z.ZodUnion<readonly [z.ZodAny, z.ZodAny]>;
151
91
  }, z.core.$strip>>]>>;
152
92
  permanentDataSetURI: z.ZodOptional<z.ZodString>;
153
93
  'common:referenceToOwnershipOfDataSet': z.ZodUnion<readonly [z.ZodObject<{
@@ -155,25 +95,13 @@ export declare const SourcesSchema: z.ZodObject<{
155
95
  '@refObjectId': z.ZodString;
156
96
  '@version': z.ZodString;
157
97
  '@uri': z.ZodString;
158
- 'common:shortDescription': z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
159
- '@xml:lang': z.ZodString;
160
- '#text': z.ZodString;
161
- }, z.core.$strip>>, z.ZodObject<{
162
- '@xml:lang': z.ZodString;
163
- '#text': z.ZodString;
164
- }, z.core.$strip>]>;
98
+ 'common:shortDescription': z.ZodUnion<readonly [z.ZodAny, z.ZodAny]>;
165
99
  }, z.core.$strip>, z.ZodArray<z.ZodObject<{
166
100
  '@type': z.ZodString;
167
101
  '@refObjectId': z.ZodString;
168
102
  '@version': z.ZodString;
169
103
  '@uri': z.ZodString;
170
- 'common:shortDescription': z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
171
- '@xml:lang': z.ZodString;
172
- '#text': z.ZodString;
173
- }, z.core.$strip>>, z.ZodObject<{
174
- '@xml:lang': z.ZodString;
175
- '#text': z.ZodString;
176
- }, z.core.$strip>]>;
104
+ 'common:shortDescription': z.ZodUnion<readonly [z.ZodAny, z.ZodAny]>;
177
105
  }, z.core.$strip>>]>;
178
106
  'common:other': z.ZodOptional<z.ZodString>;
179
107
  }, z.core.$strip>;
@@ -1 +1 @@
1
- {"version":3,"file":"tidas_sources.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/tidas_sources.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAoExB,CAAC"}
1
+ {"version":3,"file":"tidas_sources.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/tidas_sources.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAoExB,CAAC"}
@@ -9,13 +9,7 @@ export declare const UnitgroupsSchema: z.ZodObject<{
9
9
  unitGroupInformation: z.ZodObject<{
10
10
  dataSetInformation: z.ZodObject<{
11
11
  'common:UUID': z.ZodString;
12
- 'common:name': z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
13
- '@xml:lang': z.ZodString;
14
- '#text': z.ZodString;
15
- }, z.core.$strip>>, z.ZodObject<{
16
- '@xml:lang': z.ZodString;
17
- '#text': z.ZodString;
18
- }, z.core.$strip>]>;
12
+ 'common:name': z.ZodUnion<readonly [z.ZodAny, z.ZodAny]>;
19
13
  classificationInformation: z.ZodObject<{
20
14
  'common:classification': z.ZodObject<{
21
15
  'common:class': z.ZodObject<{
@@ -26,13 +20,7 @@ export declare const UnitgroupsSchema: z.ZodObject<{
26
20
  'common:other': z.ZodOptional<z.ZodString>;
27
21
  }, z.core.$strip>;
28
22
  }, z.core.$strip>;
29
- 'common:generalComment': z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
30
- '@xml:lang': z.ZodString;
31
- '#text': z.ZodString;
32
- }, z.core.$strip>>, z.ZodObject<{
33
- '@xml:lang': z.ZodString;
34
- '#text': z.ZodString;
35
- }, z.core.$strip>]>>;
23
+ 'common:generalComment': z.ZodOptional<z.ZodUnion<readonly [z.ZodAny, z.ZodAny]>>;
36
24
  'common:other': z.ZodOptional<z.ZodString>;
37
25
  }, z.core.$strip>;
38
26
  quantitativeReference: z.ZodObject<{
@@ -49,25 +37,13 @@ export declare const UnitgroupsSchema: z.ZodObject<{
49
37
  '@refObjectId': z.ZodString;
50
38
  '@version': z.ZodString;
51
39
  '@uri': z.ZodString;
52
- 'common:shortDescription': z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
53
- '@xml:lang': z.ZodString;
54
- '#text': z.ZodString;
55
- }, z.core.$strip>>, z.ZodObject<{
56
- '@xml:lang': z.ZodString;
57
- '#text': z.ZodString;
58
- }, z.core.$strip>]>;
40
+ 'common:shortDescription': z.ZodUnion<readonly [z.ZodAny, z.ZodAny]>;
59
41
  }, z.core.$strip>, z.ZodArray<z.ZodObject<{
60
42
  '@type': z.ZodString;
61
43
  '@refObjectId': z.ZodString;
62
44
  '@version': z.ZodString;
63
45
  '@uri': z.ZodString;
64
- 'common:shortDescription': z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
65
- '@xml:lang': z.ZodString;
66
- '#text': z.ZodString;
67
- }, z.core.$strip>>, z.ZodObject<{
68
- '@xml:lang': z.ZodString;
69
- '#text': z.ZodString;
70
- }, z.core.$strip>]>;
46
+ 'common:shortDescription': z.ZodUnion<readonly [z.ZodAny, z.ZodAny]>;
71
47
  }, z.core.$strip>>]>;
72
48
  'common:approvalOfOverallCompliance': z.ZodUnion<readonly [z.ZodLiteral<"Fully compliant">, z.ZodLiteral<"Not compliant">, z.ZodLiteral<"Not defined">]>;
73
49
  'common:other': z.ZodOptional<z.ZodString>;
@@ -84,25 +60,13 @@ export declare const UnitgroupsSchema: z.ZodObject<{
84
60
  '@refObjectId': z.ZodString;
85
61
  '@version': z.ZodString;
86
62
  '@uri': z.ZodString;
87
- 'common:shortDescription': z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
88
- '@xml:lang': z.ZodString;
89
- '#text': z.ZodString;
90
- }, z.core.$strip>>, z.ZodObject<{
91
- '@xml:lang': z.ZodString;
92
- '#text': z.ZodString;
93
- }, z.core.$strip>]>;
63
+ 'common:shortDescription': z.ZodUnion<readonly [z.ZodAny, z.ZodAny]>;
94
64
  }, z.core.$strip>, z.ZodArray<z.ZodObject<{
95
65
  '@type': z.ZodString;
96
66
  '@refObjectId': z.ZodString;
97
67
  '@version': z.ZodString;
98
68
  '@uri': z.ZodString;
99
- 'common:shortDescription': z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
100
- '@xml:lang': z.ZodString;
101
- '#text': z.ZodString;
102
- }, z.core.$strip>>, z.ZodObject<{
103
- '@xml:lang': z.ZodString;
104
- '#text': z.ZodString;
105
- }, z.core.$strip>]>;
69
+ 'common:shortDescription': z.ZodUnion<readonly [z.ZodAny, z.ZodAny]>;
106
70
  }, z.core.$strip>>]>;
107
71
  'common:other': z.ZodOptional<z.ZodString>;
108
72
  }, z.core.$strip>;
@@ -113,25 +77,13 @@ export declare const UnitgroupsSchema: z.ZodObject<{
113
77
  '@refObjectId': z.ZodString;
114
78
  '@version': z.ZodString;
115
79
  '@uri': z.ZodString;
116
- 'common:shortDescription': z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
117
- '@xml:lang': z.ZodString;
118
- '#text': z.ZodString;
119
- }, z.core.$strip>>, z.ZodObject<{
120
- '@xml:lang': z.ZodString;
121
- '#text': z.ZodString;
122
- }, z.core.$strip>]>;
80
+ 'common:shortDescription': z.ZodUnion<readonly [z.ZodAny, z.ZodAny]>;
123
81
  }, z.core.$strip>, z.ZodArray<z.ZodObject<{
124
82
  '@type': z.ZodString;
125
83
  '@refObjectId': z.ZodString;
126
84
  '@version': z.ZodString;
127
85
  '@uri': z.ZodString;
128
- 'common:shortDescription': z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
129
- '@xml:lang': z.ZodString;
130
- '#text': z.ZodString;
131
- }, z.core.$strip>>, z.ZodObject<{
132
- '@xml:lang': z.ZodString;
133
- '#text': z.ZodString;
134
- }, z.core.$strip>]>;
86
+ 'common:shortDescription': z.ZodUnion<readonly [z.ZodAny, z.ZodAny]>;
135
87
  }, z.core.$strip>>]>>;
136
88
  permanentDataSetURI: z.ZodOptional<z.ZodString>;
137
89
  'common:referenceToOwnershipOfDataSet': z.ZodUnion<readonly [z.ZodObject<{
@@ -139,25 +91,13 @@ export declare const UnitgroupsSchema: z.ZodObject<{
139
91
  '@refObjectId': z.ZodString;
140
92
  '@version': z.ZodString;
141
93
  '@uri': z.ZodString;
142
- 'common:shortDescription': z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
143
- '@xml:lang': z.ZodString;
144
- '#text': z.ZodString;
145
- }, z.core.$strip>>, z.ZodObject<{
146
- '@xml:lang': z.ZodString;
147
- '#text': z.ZodString;
148
- }, z.core.$strip>]>;
94
+ 'common:shortDescription': z.ZodUnion<readonly [z.ZodAny, z.ZodAny]>;
149
95
  }, z.core.$strip>, z.ZodArray<z.ZodObject<{
150
96
  '@type': z.ZodString;
151
97
  '@refObjectId': z.ZodString;
152
98
  '@version': z.ZodString;
153
99
  '@uri': z.ZodString;
154
- 'common:shortDescription': z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
155
- '@xml:lang': z.ZodString;
156
- '#text': z.ZodString;
157
- }, z.core.$strip>>, z.ZodObject<{
158
- '@xml:lang': z.ZodString;
159
- '#text': z.ZodString;
160
- }, z.core.$strip>]>;
100
+ 'common:shortDescription': z.ZodUnion<readonly [z.ZodAny, z.ZodAny]>;
161
101
  }, z.core.$strip>>]>;
162
102
  'common:other': z.ZodOptional<z.ZodString>;
163
103
  }, z.core.$strip>;
@@ -168,25 +108,13 @@ export declare const UnitgroupsSchema: z.ZodObject<{
168
108
  '@dataSetInternalID': z.ZodOptional<z.ZodString>;
169
109
  name: z.ZodOptional<z.ZodString>;
170
110
  meanValue: z.ZodOptional<z.ZodString>;
171
- generalComment: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
172
- '@xml:lang': z.ZodString;
173
- '#text': z.ZodString;
174
- }, z.core.$strip>>, z.ZodObject<{
175
- '@xml:lang': z.ZodString;
176
- '#text': z.ZodString;
177
- }, z.core.$strip>]>>;
111
+ generalComment: z.ZodOptional<z.ZodUnion<readonly [z.ZodAny, z.ZodAny]>>;
178
112
  'common:other': z.ZodOptional<z.ZodString>;
179
113
  }, z.core.$strip>, z.ZodArray<z.ZodObject<{
180
114
  '@dataSetInternalID': z.ZodOptional<z.ZodString>;
181
115
  name: z.ZodOptional<z.ZodString>;
182
116
  meanValue: z.ZodOptional<z.ZodString>;
183
- generalComment: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
184
- '@xml:lang': z.ZodString;
185
- '#text': z.ZodString;
186
- }, z.core.$strip>>, z.ZodObject<{
187
- '@xml:lang': z.ZodString;
188
- '#text': z.ZodString;
189
- }, z.core.$strip>]>>;
117
+ generalComment: z.ZodOptional<z.ZodUnion<readonly [z.ZodAny, z.ZodAny]>>;
190
118
  }, z.core.$strip>>]>>;
191
119
  'common:other': z.ZodOptional<z.ZodString>;
192
120
  }, z.core.$strip>>;
@@ -1 +1 @@
1
- {"version":3,"file":"tidas_unitgroups.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/tidas_unitgroups.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAcxB,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAyF3B,CAAC"}
1
+ {"version":3,"file":"tidas_unitgroups.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/tidas_unitgroups.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAcxB,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAyF3B,CAAC"}
@@ -1,7 +1,13 @@
1
- export declare class MultiLangArray extends Array<{
1
+ export interface MultiLangArrayLike extends Array<{
2
2
  '@xml:lang': string;
3
3
  '#text': string;
4
4
  }> {
5
+ setText?(value: string, lang?: string): void;
6
+ }
7
+ export declare class MultiLangArray extends Array<{
8
+ '@xml:lang': string;
9
+ '#text': string;
10
+ }> implements MultiLangArrayLike {
5
11
  setText(value: string, lang?: string): void;
6
12
  }
7
13
  export declare class MultiLangItemClass {
@@ -1 +1 @@
1
- {"version":3,"file":"multi-lang-types.d.ts","sourceRoot":"","sources":["../../src/types/multi-lang-types.ts"],"names":[],"mappings":"AAAA,qBAAa,cAAe,SAAQ,KAAK,CAAC;IACxC,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;IACA,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,GAAE,MAAa;CAQ3C;AAED,qBAAa,kBAAkB;IAC7B,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;gBACJ,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;IAItC,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,GAAE,MAAa;CAI3C;AAED,MAAM,MAAM,aAAa,GAAG,kBAAkB,CAAC"}
1
+ {"version":3,"file":"multi-lang-types.d.ts","sourceRoot":"","sources":["../../src/types/multi-lang-types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAmB,SAAQ,KAAK,CAAC;IAAE,WAAW,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC;IACzF,OAAO,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9C;AAED,qBAAa,cAAe,SAAQ,KAAK,CAAC;IAAE,WAAW,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAE,YAAW,kBAAkB;IAC/G,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,GAAE,MAAa;CAQ3C;AAED,qBAAa,kBAAkB;IAC7B,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;gBACJ,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;IAItC,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,GAAE,MAAa;CAI3C;AAED,MAAM,MAAM,aAAa,GAAG,kBAAkB,CAAC"}
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MultiLangItemClass = exports.MultiLangArray = void 0;
4
4
  class MultiLangArray extends Array {
5
5
  setText(value, lang = 'en') {
6
- const existing = this.find((item) => item['@xml:lang'] === lang);
6
+ const existing = this.find(item => item['@xml:lang'] === lang);
7
7
  if (existing) {
8
8
  existing['#text'] = value;
9
9
  }
@@ -1 +1 @@
1
- {"version":3,"file":"multi-lang-types.js","sourceRoot":"","sources":["../../src/types/multi-lang-types.ts"],"names":[],"mappings":";;;AAAA,MAAa,cAAe,SAAQ,KAGlC;IACA,OAAO,CAAC,KAAa,EAAE,OAAe,IAAI;QACxC,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC,CAAC;QACjE,IAAI,QAAQ,EAAE,CAAC;YACb,QAAQ,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC;QAC5B,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,IAAI,CAAC,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC;QACnD,CAAC;IACH,CAAC;CACF;AAZD,wCAYC;AAED,MAAa,kBAAkB;IAG7B,YAAY,IAAY,EAAE,IAAY;QACpC,IAAI,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC;QACzB,IAAI,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC;IACvB,CAAC;IACD,OAAO,CAAC,KAAa,EAAE,OAAe,IAAI;QACxC,IAAI,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC;QACzB,IAAI,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC;IACxB,CAAC;CACF;AAXD,gDAWC"}
1
+ {"version":3,"file":"multi-lang-types.js","sourceRoot":"","sources":["../../src/types/multi-lang-types.ts"],"names":[],"mappings":";;;AAIA,MAAa,cAAe,SAAQ,KAA+C;IACjF,OAAO,CAAC,KAAa,EAAE,OAAe,IAAI;QACxC,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC,CAAC;QAC/D,IAAI,QAAQ,EAAE,CAAC;YACb,QAAQ,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC;QAC5B,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,IAAI,CAAC,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC;QACnD,CAAC;IACH,CAAC;CACF;AATD,wCASC;AAED,MAAa,kBAAkB;IAG7B,YAAY,IAAY,EAAE,IAAY;QACpC,IAAI,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC;QACzB,IAAI,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC;IACvB,CAAC;IACD,OAAO,CAAC,KAAa,EAAE,OAAe,IAAI;QACxC,IAAI,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC;QACzB,IAAI,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC;IACxB,CAAC;CACF;AAXD,gDAWC"}
@@ -3,7 +3,7 @@
3
3
  * DO NOT MODIFY IT BY HAND. Instead, modify the source JSON Schema file,
4
4
  * and run the generation script to regenerate this file.
5
5
  */
6
- import { MultiLangArray, MultiLangItem } from './multi-lang-types';
6
+ import { MultiLangArrayLike, MultiLangItemClass } from './multi-lang-types';
7
7
  /**
8
8
  * CAS Number, leading zeros are requried.
9
9
  *
@@ -14,7 +14,7 @@ export type CASNumber = string;
14
14
  * Free text with an unlimited length.
15
15
  */
16
16
  export type FT = string;
17
- export type StringMultiLang = MultiLangArray | MultiLangItem;
17
+ export type StringMultiLang = MultiLangArrayLike | MultiLangItemClass;
18
18
  /**
19
19
  * 1-digit integer number
20
20
  *
@@ -73,8 +73,8 @@ export type ST = string;
73
73
  * @maxLength 500
74
74
  */
75
75
  export type String = string;
76
- export type STMultiLang = MultiLangArray | MultiLangItem;
77
- export type FTMultiLang = MultiLangArray | MultiLangItem;
76
+ export type STMultiLang = MultiLangArrayLike | MultiLangItemClass;
77
+ export type FTMultiLang = MultiLangArrayLike | MultiLangItemClass;
78
78
  /**
79
79
  * Represents a reference to another dataset or file. Either refObjectId and version, or uri, or both have to be specified.
80
80
  */
@@ -1 +1 @@
1
- {"version":3,"file":"tidas_data_types.d.ts","sourceRoot":"","sources":["../../src/types/tidas_data_types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnE;;;;GAIG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC;AAC/B;;GAEG;AACH,MAAM,MAAM,EAAE,GAAG,MAAM,CAAC;AACxB,MAAM,MAAM,eAAe,GAAG,cAAc,GAAG,aAAa,CAAC;AAC7D;;;;;GAKG;AACH,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC;AAC1B;;;;;GAKG;AACH,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC;AAC1B;;;;;GAKG;AACH,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC;AAC1B;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,IAAI,CAAC;AAC7B;;;;GAIG;AACH,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC;AAC1B;;GAEG;AACH,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC;AAC1B;;GAEG;AACH,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC;AAC1B;;;;GAIG;AACH,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC;AAC1B;;;;GAIG;AACH,MAAM,MAAM,EAAE,GAAG,MAAM,CAAC;AACxB;;;;;GAKG;AACH,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC;AAC5B,MAAM,MAAM,WAAW,GAAG,cAAc,GAAG,aAAa,CAAC;AACzD,MAAM,MAAM,WAAW,GAAG,cAAc,GAAG,aAAa,CAAC;AACzD;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAC3B;IACE,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;I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AAM,MAAM,IAAI,GAAG,MAAM,CAAC;AAC1B;;;;GAIG;AACH,MAAM,MAAM,EAAE,GAAG,MAAM,CAAC;AACxB;;;;;GAKG;AACH,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC;AAC5B,MAAM,MAAM,WAAW,GAAG,kBAAkB,GAAG,kBAAkB,CAAC;AAClE,MAAM,MAAM,WAAW,GAAG,kBAAkB,GAAG,kBAAkB,CAAC;AAClE;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAC3B;IACE,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,yBAAyB,EAAE,WAAW,CAAC;CACxC,GACD;IACE,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,yBAAyB,EAAE,WAAW,CAAC;CACxC,EAAE,CAAC;AACR;;;;GAIG;AACH,MAAM,MAAM,GAAG,GAAG,MAAM,CAAC;AACzB;;;;GAIG;AACH,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC;AAC1B;;;;;GAKG;AACH,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC;AAC1B;;;;GAIG;AACH,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiangong-lca/tidas-sdk",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "module": "dist/index.js",