basyx-typescript-sdk 0.1.6 → 0.1.7

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.
package/bundle/index.js CHANGED
@@ -1,9 +1,5 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var require$$0 = require('@hey-api/client-fetch');
6
- var require$$0$1 = require('@aas-core-works/aas-core3.0-typescript');
1
+ import require$$0 from '@hey-api/client-fetch';
2
+ import require$$0$1 from '@aas-core-works/aas-core3.0-typescript';
7
3
 
8
4
  function getDefaultExportFromCjs (x) {
9
5
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
@@ -50,271 +46,394 @@ function requireSdk_gen () {
50
46
  * Returns a specific Asset Administration Shell
51
47
  */
52
48
  const getAssetAdministrationShell = (options) => {
53
- var _a;
54
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/aas' }, options));
49
+ return (options?.client ?? exports.client).get({
50
+ url: '/aas',
51
+ ...options,
52
+ });
55
53
  };
56
54
  exports.getAssetAdministrationShell = getAssetAdministrationShell;
57
55
  /**
58
56
  * Updates an existing Asset Administration Shell
59
57
  */
60
58
  const putAssetAdministrationShell = (options) => {
61
- var _a;
62
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).put(Object.assign(Object.assign({ url: '/aas' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
59
+ return (options?.client ?? exports.client).put({
60
+ url: '/aas',
61
+ ...options,
62
+ headers: {
63
+ 'Content-Type': 'application/json',
64
+ ...options?.headers,
65
+ },
66
+ });
63
67
  };
64
68
  exports.putAssetAdministrationShell = putAssetAdministrationShell;
65
69
  /**
66
70
  * Returns a specific Asset Administration Shell as a Reference
67
71
  */
68
72
  const getAssetAdministrationShellReference = (options) => {
69
- var _a;
70
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/aas/$reference' }, options));
73
+ return (options?.client ?? exports.client).get({
74
+ url: '/aas/$reference',
75
+ ...options,
76
+ });
71
77
  };
72
78
  exports.getAssetAdministrationShellReference = getAssetAdministrationShellReference;
73
79
  /**
74
80
  * Returns the Asset Information
75
81
  */
76
82
  const getAssetInformation = (options) => {
77
- var _a;
78
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/aas/asset-information' }, options));
83
+ return (options?.client ?? exports.client).get({
84
+ url: '/aas/asset-information',
85
+ ...options,
86
+ });
79
87
  };
80
88
  exports.getAssetInformation = getAssetInformation;
81
89
  /**
82
90
  * Updates the Asset Information
83
91
  */
84
92
  const putAssetInformation = (options) => {
85
- var _a;
86
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).put(Object.assign(Object.assign({ url: '/aas/asset-information' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
93
+ return (options?.client ?? exports.client).put({
94
+ url: '/aas/asset-information',
95
+ ...options,
96
+ headers: {
97
+ 'Content-Type': 'application/json',
98
+ ...options?.headers,
99
+ },
100
+ });
87
101
  };
88
102
  exports.putAssetInformation = putAssetInformation;
89
103
  const deleteThumbnail = (options) => {
90
- var _a;
91
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).delete(Object.assign({ url: '/aas/asset-information/thumbnail' }, options));
104
+ return (options?.client ?? exports.client).delete({
105
+ url: '/aas/asset-information/thumbnail',
106
+ ...options,
107
+ });
92
108
  };
93
109
  exports.deleteThumbnail = deleteThumbnail;
94
110
  const getThumbnail = (options) => {
95
- var _a;
96
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/aas/asset-information/thumbnail' }, options));
111
+ return (options?.client ?? exports.client).get({
112
+ url: '/aas/asset-information/thumbnail',
113
+ ...options,
114
+ });
97
115
  };
98
116
  exports.getThumbnail = getThumbnail;
99
117
  const putThumbnail = (options) => {
100
- var _a;
101
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).put(Object.assign(Object.assign(Object.assign(Object.assign({}, client_fetch_1.formDataBodySerializer), { url: '/aas/asset-information/thumbnail' }), options), { headers: Object.assign({ 'Content-Type': null }, options === null || options === void 0 ? void 0 : options.headers) }));
118
+ return (options?.client ?? exports.client).put({
119
+ ...client_fetch_1.formDataBodySerializer,
120
+ url: '/aas/asset-information/thumbnail',
121
+ ...options,
122
+ headers: {
123
+ 'Content-Type': null,
124
+ ...options?.headers,
125
+ },
126
+ });
102
127
  };
103
128
  exports.putThumbnail = putThumbnail;
104
129
  /**
105
130
  * Returns all submodel references
106
131
  */
107
132
  const getAllSubmodelReferences = (options) => {
108
- var _a;
109
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/aas/submodel-refs' }, options));
133
+ return (options?.client ?? exports.client).get({
134
+ url: '/aas/submodel-refs',
135
+ ...options,
136
+ });
110
137
  };
111
138
  exports.getAllSubmodelReferences = getAllSubmodelReferences;
112
139
  /**
113
140
  * Creates a submodel reference at the Asset Administration Shell
114
141
  */
115
142
  const postSubmodelReference = (options) => {
116
- var _a;
117
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).post(Object.assign(Object.assign({ url: '/aas/submodel-refs' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
143
+ return (options?.client ?? exports.client).post({
144
+ url: '/aas/submodel-refs',
145
+ ...options,
146
+ headers: {
147
+ 'Content-Type': 'application/json',
148
+ ...options?.headers,
149
+ },
150
+ });
118
151
  };
119
152
  exports.postSubmodelReference = postSubmodelReference;
120
153
  /**
121
154
  * Deletes the submodel reference from the Asset Administration Shell. Does not delete the submodel itself!
122
155
  */
123
156
  const deleteSubmodelReferenceById = (options) => {
124
- var _a;
125
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).delete(Object.assign({ url: '/aas/submodel-refs/{submodelIdentifier}' }, options));
157
+ return (options?.client ?? exports.client).delete({
158
+ url: '/aas/submodel-refs/{submodelIdentifier}',
159
+ ...options,
160
+ });
126
161
  };
127
162
  exports.deleteSubmodelReferenceById = deleteSubmodelReferenceById;
128
163
  /**
129
164
  * Deletes the submodel from the Asset Administration Shell.
130
165
  */
131
166
  const deleteSubmodelByIdAas = (options) => {
132
- var _a;
133
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).delete(Object.assign({ url: '/aas/submodels/{submodelIdentifier}' }, options));
167
+ return (options?.client ?? exports.client).delete({
168
+ url: '/aas/submodels/{submodelIdentifier}',
169
+ ...options,
170
+ });
134
171
  };
135
172
  exports.deleteSubmodelByIdAas = deleteSubmodelByIdAas;
136
173
  /**
137
174
  * Returns the Submodel
138
175
  */
139
176
  const getSubmodelAas = (options) => {
140
- var _a;
141
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/aas/submodels/{submodelIdentifier}' }, options));
177
+ return (options?.client ?? exports.client).get({
178
+ url: '/aas/submodels/{submodelIdentifier}',
179
+ ...options,
180
+ });
142
181
  };
143
182
  exports.getSubmodelAas = getSubmodelAas;
144
183
  /**
145
184
  * Updates the Submodel
146
185
  */
147
186
  const patchSubmodelAas = (options) => {
148
- var _a;
149
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).patch(Object.assign(Object.assign({ url: '/aas/submodels/{submodelIdentifier}' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
187
+ return (options?.client ?? exports.client).patch({
188
+ url: '/aas/submodels/{submodelIdentifier}',
189
+ ...options,
190
+ headers: {
191
+ 'Content-Type': 'application/json',
192
+ ...options?.headers,
193
+ },
194
+ });
150
195
  };
151
196
  exports.patchSubmodelAas = patchSubmodelAas;
152
197
  /**
153
198
  * Updates the Submodel
154
199
  */
155
200
  const putSubmodelAas = (options) => {
156
- var _a;
157
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).put(Object.assign(Object.assign({ url: '/aas/submodels/{submodelIdentifier}' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
201
+ return (options?.client ?? exports.client).put({
202
+ url: '/aas/submodels/{submodelIdentifier}',
203
+ ...options,
204
+ headers: {
205
+ 'Content-Type': 'application/json',
206
+ ...options?.headers,
207
+ },
208
+ });
158
209
  };
159
210
  exports.putSubmodelAas = putSubmodelAas;
160
211
  /**
161
212
  * Returns the Submodel's metadata elements
162
213
  */
163
214
  const getSubmodelMetadataAas = (options) => {
164
- var _a;
165
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/aas/submodels/{submodelIdentifier}/$metadata' }, options));
215
+ return (options?.client ?? exports.client).get({
216
+ url: '/aas/submodels/{submodelIdentifier}/$metadata',
217
+ ...options,
218
+ });
166
219
  };
167
220
  exports.getSubmodelMetadataAas = getSubmodelMetadataAas;
168
221
  /**
169
222
  * Updates the metadata attributes of the Submodel
170
223
  */
171
224
  const patchSubmodelMetadataAas = (options) => {
172
- var _a;
173
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).patch(Object.assign(Object.assign({ url: '/aas/submodels/{submodelIdentifier}/$metadata' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
225
+ return (options?.client ?? exports.client).patch({
226
+ url: '/aas/submodels/{submodelIdentifier}/$metadata',
227
+ ...options,
228
+ headers: {
229
+ 'Content-Type': 'application/json',
230
+ ...options?.headers,
231
+ },
232
+ });
174
233
  };
175
234
  exports.patchSubmodelMetadataAas = patchSubmodelMetadataAas;
176
235
  /**
177
236
  * Returns the Submodel's ValueOnly representation
178
237
  */
179
238
  const getSubmodelValueOnlyAas = (options) => {
180
- var _a;
181
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/aas/submodels/{submodelIdentifier}/$value' }, options));
239
+ return (options?.client ?? exports.client).get({
240
+ url: '/aas/submodels/{submodelIdentifier}/$value',
241
+ ...options,
242
+ });
182
243
  };
183
244
  exports.getSubmodelValueOnlyAas = getSubmodelValueOnlyAas;
184
245
  /**
185
246
  * Updates the values of the Submodel
186
247
  */
187
248
  const patchSubmodelValueOnlyAas = (options) => {
188
- var _a;
189
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).patch(Object.assign(Object.assign({ url: '/aas/submodels/{submodelIdentifier}/$value' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
249
+ return (options?.client ?? exports.client).patch({
250
+ url: '/aas/submodels/{submodelIdentifier}/$value',
251
+ ...options,
252
+ headers: {
253
+ 'Content-Type': 'application/json',
254
+ ...options?.headers,
255
+ },
256
+ });
190
257
  };
191
258
  exports.patchSubmodelValueOnlyAas = patchSubmodelValueOnlyAas;
192
259
  /**
193
260
  * Returns the Submodel as a Reference
194
261
  */
195
262
  const getSubmodelMetadataReferenceAas = (options) => {
196
- var _a;
197
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/aas/submodels/{submodelIdentifier}/$reference' }, options));
263
+ return (options?.client ?? exports.client).get({
264
+ url: '/aas/submodels/{submodelIdentifier}/$reference',
265
+ ...options,
266
+ });
198
267
  };
199
268
  exports.getSubmodelMetadataReferenceAas = getSubmodelMetadataReferenceAas;
200
269
  /**
201
270
  * Returns the Submodel's metadata elements
202
271
  */
203
272
  const getSubmodelPathAas = (options) => {
204
- var _a;
205
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/aas/submodels/{submodelIdentifier}/$path' }, options));
273
+ return (options?.client ?? exports.client).get({
274
+ url: '/aas/submodels/{submodelIdentifier}/$path',
275
+ ...options,
276
+ });
206
277
  };
207
278
  exports.getSubmodelPathAas = getSubmodelPathAas;
208
279
  /**
209
280
  * Returns all submodel elements including their hierarchy
210
281
  */
211
282
  const getAllSubmodelElementsAas = (options) => {
212
- var _a;
213
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/aas/submodels/{submodelIdentifier}/submodel-elements' }, options));
283
+ return (options?.client ?? exports.client).get({
284
+ url: '/aas/submodels/{submodelIdentifier}/submodel-elements',
285
+ ...options,
286
+ });
214
287
  };
215
288
  exports.getAllSubmodelElementsAas = getAllSubmodelElementsAas;
216
289
  /**
217
290
  * Creates a new submodel element
218
291
  */
219
292
  const postSubmodelElementAas = (options) => {
220
- var _a;
221
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).post(Object.assign(Object.assign({ url: '/aas/submodels/{submodelIdentifier}/submodel-elements' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
293
+ return (options?.client ?? exports.client).post({
294
+ url: '/aas/submodels/{submodelIdentifier}/submodel-elements',
295
+ ...options,
296
+ headers: {
297
+ 'Content-Type': 'application/json',
298
+ ...options?.headers,
299
+ },
300
+ });
222
301
  };
223
302
  exports.postSubmodelElementAas = postSubmodelElementAas;
224
303
  /**
225
304
  * Returns all submodel elements including their hierarchy
226
305
  */
227
306
  const getAllSubmodelElementsMetadataAas = (options) => {
228
- var _a;
229
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/aas/submodels/{submodelIdentifier}/submodel-elements/$metadata' }, options));
307
+ return (options?.client ?? exports.client).get({
308
+ url: '/aas/submodels/{submodelIdentifier}/submodel-elements/$metadata',
309
+ ...options,
310
+ });
230
311
  };
231
312
  exports.getAllSubmodelElementsMetadataAas = getAllSubmodelElementsMetadataAas;
232
313
  /**
233
314
  * Returns all submodel elements including their hierarchy in the ValueOnly representation
234
315
  */
235
316
  const getAllSubmodelElementsValueOnlyAas = (options) => {
236
- var _a;
237
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/aas/submodels/{submodelIdentifier}/submodel-elements/$value' }, options));
317
+ return (options?.client ?? exports.client).get({
318
+ url: '/aas/submodels/{submodelIdentifier}/submodel-elements/$value',
319
+ ...options,
320
+ });
238
321
  };
239
322
  exports.getAllSubmodelElementsValueOnlyAas = getAllSubmodelElementsValueOnlyAas;
240
323
  /**
241
324
  * Returns all submodel elements as a list of References
242
325
  */
243
326
  const getAllSubmodelElementsReferenceAas = (options) => {
244
- var _a;
245
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/aas/submodels/{submodelIdentifier}/submodel-elements/$reference' }, options));
327
+ return (options?.client ?? exports.client).get({
328
+ url: '/aas/submodels/{submodelIdentifier}/submodel-elements/$reference',
329
+ ...options,
330
+ });
246
331
  };
247
332
  exports.getAllSubmodelElementsReferenceAas = getAllSubmodelElementsReferenceAas;
248
333
  /**
249
334
  * Returns all submodel elements including their hierarchy
250
335
  */
251
336
  const getAllSubmodelElementsPathAas = (options) => {
252
- var _a;
253
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/aas/submodels/{submodelIdentifier}/submodel-elements/$path' }, options));
337
+ return (options?.client ?? exports.client).get({
338
+ url: '/aas/submodels/{submodelIdentifier}/submodel-elements/$path',
339
+ ...options,
340
+ });
254
341
  };
255
342
  exports.getAllSubmodelElementsPathAas = getAllSubmodelElementsPathAas;
256
343
  /**
257
344
  * Deletes a submodel element at a specified path within the submodel elements hierarchy
258
345
  */
259
346
  const deleteSubmodelElementByPathAas = (options) => {
260
- var _a;
261
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).delete(Object.assign({ url: '/aas/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}' }, options));
347
+ return (options?.client ?? exports.client).delete({
348
+ url: '/aas/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}',
349
+ ...options,
350
+ });
262
351
  };
263
352
  exports.deleteSubmodelElementByPathAas = deleteSubmodelElementByPathAas;
264
353
  /**
265
354
  * Returns a specific submodel element from the Submodel at a specified path
266
355
  */
267
356
  const getSubmodelElementByPathAas = (options) => {
268
- var _a;
269
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/aas/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}' }, options));
357
+ return (options?.client ?? exports.client).get({
358
+ url: '/aas/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}',
359
+ ...options,
360
+ });
270
361
  };
271
362
  exports.getSubmodelElementByPathAas = getSubmodelElementByPathAas;
272
363
  /**
273
364
  * Updates an existing submodel element value at a specified path within submodel elements hierarchy
274
365
  */
275
366
  const patchSubmodelElementValueByPathAas = (options) => {
276
- var _a;
277
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).patch(Object.assign(Object.assign({ url: '/aas/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
367
+ return (options?.client ?? exports.client).patch({
368
+ url: '/aas/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}',
369
+ ...options,
370
+ headers: {
371
+ 'Content-Type': 'application/json',
372
+ ...options?.headers,
373
+ },
374
+ });
278
375
  };
279
376
  exports.patchSubmodelElementValueByPathAas = patchSubmodelElementValueByPathAas;
280
377
  /**
281
378
  * Creates a new submodel element at a specified path within submodel elements hierarchy
282
379
  */
283
380
  const postSubmodelElementByPathAas = (options) => {
284
- var _a;
285
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).post(Object.assign(Object.assign({ url: '/aas/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
381
+ return (options?.client ?? exports.client).post({
382
+ url: '/aas/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}',
383
+ ...options,
384
+ headers: {
385
+ 'Content-Type': 'application/json',
386
+ ...options?.headers,
387
+ },
388
+ });
286
389
  };
287
390
  exports.postSubmodelElementByPathAas = postSubmodelElementByPathAas;
288
391
  /**
289
392
  * Updates an existing submodel element at a specified path within submodel elements hierarchy
290
393
  */
291
394
  const putSubmodelElementByPathAas = (options) => {
292
- var _a;
293
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).put(Object.assign(Object.assign({ url: '/aas/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
395
+ return (options?.client ?? exports.client).put({
396
+ url: '/aas/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}',
397
+ ...options,
398
+ headers: {
399
+ 'Content-Type': 'application/json',
400
+ ...options?.headers,
401
+ },
402
+ });
294
403
  };
295
404
  exports.putSubmodelElementByPathAas = putSubmodelElementByPathAas;
296
405
  /**
297
406
  * Returns the metadata attributes if a specific submodel element from the Submodel at a specified path
298
407
  */
299
408
  const getSubmodelElementByPathMetadataAas = (options) => {
300
- var _a;
301
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/aas/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/$metadata' }, options));
409
+ return (options?.client ?? exports.client).get({
410
+ url: '/aas/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/$metadata',
411
+ ...options,
412
+ });
302
413
  };
303
414
  exports.getSubmodelElementByPathMetadataAas = getSubmodelElementByPathMetadataAas;
304
415
  /**
305
416
  * Updates the metadata attributes of an existing submodel element value at a specified path within submodel elements hierarchy
306
417
  */
307
418
  const patchSubmodelElementValueByPathMetadataAas = (options) => {
308
- var _a;
309
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).patch(Object.assign(Object.assign({ url: '/aas/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/$metadata' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
419
+ return (options?.client ?? exports.client).patch({
420
+ url: '/aas/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/$metadata',
421
+ ...options,
422
+ headers: {
423
+ 'Content-Type': 'application/json',
424
+ ...options?.headers,
425
+ },
426
+ });
310
427
  };
311
428
  exports.patchSubmodelElementValueByPathMetadataAas = patchSubmodelElementValueByPathMetadataAas;
312
429
  /**
313
430
  * Returns a specific submodel element from the Submodel at a specified path in the ValueOnly representation
314
431
  */
315
432
  const getSubmodelElementByPathValueOnlyAas = (options) => {
316
- var _a;
317
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/aas/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/$value' }, options));
433
+ return (options?.client ?? exports.client).get({
434
+ url: '/aas/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/$value',
435
+ ...options,
436
+ });
318
437
  };
319
438
  exports.getSubmodelElementByPathValueOnlyAas = getSubmodelElementByPathValueOnlyAas;
320
439
  /**
@@ -340,687 +459,1000 @@ function requireSdk_gen () {
340
459
  * Returns the Reference of a specific submodel element from the Submodel at a specified path in the ValueOnly representation
341
460
  */
342
461
  const getSubmodelElementByPathReferenceAas = (options) => {
343
- var _a;
344
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/aas/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/$reference' }, options));
462
+ return (options?.client ?? exports.client).get({
463
+ url: '/aas/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/$reference',
464
+ ...options,
465
+ });
345
466
  };
346
467
  exports.getSubmodelElementByPathReferenceAas = getSubmodelElementByPathReferenceAas;
347
468
  /**
348
469
  * Returns a specific submodel element from the Submodel at a specified path in the Path notation
349
470
  */
350
471
  const getSubmodelElementByPathPathAas = (options) => {
351
- var _a;
352
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/aas/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/$path' }, options));
472
+ return (options?.client ?? exports.client).get({
473
+ url: '/aas/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/$path',
474
+ ...options,
475
+ });
353
476
  };
354
477
  exports.getSubmodelElementByPathPathAas = getSubmodelElementByPathPathAas;
355
478
  /**
356
479
  * Deletes file content of an existing submodel element at a specified path within submodel elements hierarchy
357
480
  */
358
481
  const deleteFileByPathAas = (options) => {
359
- var _a;
360
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).delete(Object.assign({ url: '/aas/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/attachment' }, options));
482
+ return (options?.client ?? exports.client).delete({
483
+ url: '/aas/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/attachment',
484
+ ...options,
485
+ });
361
486
  };
362
487
  exports.deleteFileByPathAas = deleteFileByPathAas;
363
488
  /**
364
489
  * Downloads file content from a specific submodel element from the Submodel at a specified path
365
490
  */
366
491
  const getFileByPathAas = (options) => {
367
- var _a;
368
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/aas/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/attachment' }, options));
492
+ return (options?.client ?? exports.client).get({
493
+ url: '/aas/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/attachment',
494
+ ...options,
495
+ });
369
496
  };
370
497
  exports.getFileByPathAas = getFileByPathAas;
371
498
  /**
372
499
  * Uploads file content to an existing submodel element at a specified path within submodel elements hierarchy
373
500
  */
374
501
  const putFileByPathAas = (options) => {
375
- var _a;
376
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).put(Object.assign(Object.assign(Object.assign(Object.assign({}, client_fetch_1.formDataBodySerializer), { url: '/aas/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/attachment' }), options), { headers: Object.assign({ 'Content-Type': null }, options === null || options === void 0 ? void 0 : options.headers) }));
502
+ return (options?.client ?? exports.client).put({
503
+ ...client_fetch_1.formDataBodySerializer,
504
+ url: '/aas/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/attachment',
505
+ ...options,
506
+ headers: {
507
+ 'Content-Type': null,
508
+ ...options?.headers,
509
+ },
510
+ });
377
511
  };
378
512
  exports.putFileByPathAas = putFileByPathAas;
379
513
  /**
380
514
  * Synchronously invokes an Operation at a specified path
381
515
  */
382
516
  const invokeOperationSyncAas = (options) => {
383
- var _a;
384
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).post(Object.assign(Object.assign({ url: '/aas/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/invoke' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
517
+ return (options?.client ?? exports.client).post({
518
+ url: '/aas/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/invoke',
519
+ ...options,
520
+ headers: {
521
+ 'Content-Type': 'application/json',
522
+ ...options?.headers,
523
+ },
524
+ });
385
525
  };
386
526
  exports.invokeOperationSyncAas = invokeOperationSyncAas;
387
527
  /**
388
528
  * Synchronously invokes an Operation at a specified path
389
529
  */
390
530
  const invokeOperationSyncValueOnlyAas = (options) => {
391
- var _a;
392
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).post(Object.assign(Object.assign({ url: '/aas/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/invoke/$value' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
531
+ return (options?.client ?? exports.client).post({
532
+ url: '/aas/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/invoke/$value',
533
+ ...options,
534
+ headers: {
535
+ 'Content-Type': 'application/json',
536
+ ...options?.headers,
537
+ },
538
+ });
393
539
  };
394
540
  exports.invokeOperationSyncValueOnlyAas = invokeOperationSyncValueOnlyAas;
395
541
  /**
396
542
  * Synchronously invokes an Operation at a specified path
397
543
  */
398
544
  const invokeOperationAsyncAas = (options) => {
399
- var _a;
400
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).post(Object.assign(Object.assign({ url: '/aas/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/invoke-async' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
545
+ return (options?.client ?? exports.client).post({
546
+ url: '/aas/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/invoke-async',
547
+ ...options,
548
+ headers: {
549
+ 'Content-Type': 'application/json',
550
+ ...options?.headers,
551
+ },
552
+ });
401
553
  };
402
554
  exports.invokeOperationAsyncAas = invokeOperationAsyncAas;
403
555
  /**
404
556
  * Asynchronously invokes an Operation at a specified path
405
557
  */
406
558
  const invokeOperationAsyncValueOnlyAas = (options) => {
407
- var _a;
408
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).post(Object.assign(Object.assign({ url: '/aas/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/invoke-asnyc/$value' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
559
+ return (options?.client ?? exports.client).post({
560
+ url: '/aas/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/invoke-asnyc/$value',
561
+ ...options,
562
+ headers: {
563
+ 'Content-Type': 'application/json',
564
+ ...options?.headers,
565
+ },
566
+ });
409
567
  };
410
568
  exports.invokeOperationAsyncValueOnlyAas = invokeOperationAsyncValueOnlyAas;
411
569
  /**
412
570
  * Returns the Operation status of an asynchronous invoked Operation
413
571
  */
414
572
  const getOperationAsyncStatusAas = (options) => {
415
- var _a;
416
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/aas/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/operation-status/{handleId}' }, options));
573
+ return (options?.client ?? exports.client).get({
574
+ url: '/aas/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/operation-status/{handleId}',
575
+ ...options,
576
+ });
417
577
  };
418
578
  exports.getOperationAsyncStatusAas = getOperationAsyncStatusAas;
419
579
  /**
420
580
  * Returns the Operation result of an asynchronous invoked Operation
421
581
  */
422
582
  const getOperationAsyncResultAas = (options) => {
423
- var _a;
424
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/aas/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/operation-results/{handleId}' }, options));
583
+ return (options?.client ?? exports.client).get({
584
+ url: '/aas/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/operation-results/{handleId}',
585
+ ...options,
586
+ });
425
587
  };
426
588
  exports.getOperationAsyncResultAas = getOperationAsyncResultAas;
427
589
  /**
428
590
  * Returns the value of the Operation result of an asynchronous invoked Operation
429
591
  */
430
592
  const getOperationAsyncResultValueOnlyAas = (options) => {
431
- var _a;
432
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/aas/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/operation-results/{handleId}/$value' }, options));
593
+ return (options?.client ?? exports.client).get({
594
+ url: '/aas/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/operation-results/{handleId}/$value',
595
+ ...options,
596
+ });
433
597
  };
434
598
  exports.getOperationAsyncResultValueOnlyAas = getOperationAsyncResultValueOnlyAas;
435
599
  /**
436
600
  * Returns the Submodel
437
601
  */
438
602
  const getSubmodel = (options) => {
439
- var _a;
440
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/submodel' }, options));
603
+ return (options?.client ?? exports.client).get({
604
+ url: '/submodel',
605
+ ...options,
606
+ });
441
607
  };
442
608
  exports.getSubmodel = getSubmodel;
443
609
  /**
444
610
  * Updates the Submodel
445
611
  */
446
612
  const patchSubmodel = (options) => {
447
- var _a;
448
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).patch(Object.assign(Object.assign({ url: '/submodel' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
613
+ return (options?.client ?? exports.client).patch({
614
+ url: '/submodel',
615
+ ...options,
616
+ headers: {
617
+ 'Content-Type': 'application/json',
618
+ ...options?.headers,
619
+ },
620
+ });
449
621
  };
450
622
  exports.patchSubmodel = patchSubmodel;
451
623
  /**
452
624
  * Updates the Submodel
453
625
  */
454
626
  const putSubmodel = (options) => {
455
- var _a;
456
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).put(Object.assign(Object.assign({ url: '/submodel' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
627
+ return (options?.client ?? exports.client).put({
628
+ url: '/submodel',
629
+ ...options,
630
+ headers: {
631
+ 'Content-Type': 'application/json',
632
+ ...options?.headers,
633
+ },
634
+ });
457
635
  };
458
636
  exports.putSubmodel = putSubmodel;
459
637
  /**
460
638
  * Returns the metadata attributes of a specific Submodel
461
639
  */
462
640
  const getSubmodelMetadata = (options) => {
463
- var _a;
464
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/submodel/$metadata' }, options));
641
+ return (options?.client ?? exports.client).get({
642
+ url: '/submodel/$metadata',
643
+ ...options,
644
+ });
465
645
  };
466
646
  exports.getSubmodelMetadata = getSubmodelMetadata;
467
647
  /**
468
648
  * Updates the metadata attributes of the Submodel
469
649
  */
470
650
  const patchSubmodelMetadata = (options) => {
471
- var _a;
472
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).patch(Object.assign(Object.assign({ url: '/submodel/$metadata' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
651
+ return (options?.client ?? exports.client).patch({
652
+ url: '/submodel/$metadata',
653
+ ...options,
654
+ headers: {
655
+ 'Content-Type': 'application/json',
656
+ ...options?.headers,
657
+ },
658
+ });
473
659
  };
474
660
  exports.patchSubmodelMetadata = patchSubmodelMetadata;
475
661
  /**
476
662
  * Returns the Submodel in the ValueOnly representation
477
663
  */
478
664
  const getSubmodelValueOnly = (options) => {
479
- var _a;
480
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/submodel/$value' }, options));
665
+ return (options?.client ?? exports.client).get({
666
+ url: '/submodel/$value',
667
+ ...options,
668
+ });
481
669
  };
482
670
  exports.getSubmodelValueOnly = getSubmodelValueOnly;
483
671
  /**
484
672
  * Updates the values of the Submodel
485
673
  */
486
674
  const patchSubmodelValueOnly = (options) => {
487
- var _a;
488
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).patch(Object.assign(Object.assign({ url: '/submodel/$value' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
675
+ return (options?.client ?? exports.client).patch({
676
+ url: '/submodel/$value',
677
+ ...options,
678
+ headers: {
679
+ 'Content-Type': 'application/json',
680
+ ...options?.headers,
681
+ },
682
+ });
489
683
  };
490
684
  exports.patchSubmodelValueOnly = patchSubmodelValueOnly;
491
685
  /**
492
686
  * Returns the Reference of the Submodel
493
687
  */
494
688
  const getSubmodelReference = (options) => {
495
- var _a;
496
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/submodel/$reference' }, options));
689
+ return (options?.client ?? exports.client).get({
690
+ url: '/submodel/$reference',
691
+ ...options,
692
+ });
497
693
  };
498
694
  exports.getSubmodelReference = getSubmodelReference;
499
695
  /**
500
696
  * Returns the Submodel in the Path notation
501
697
  */
502
698
  const getSubmodelPath = (options) => {
503
- var _a;
504
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/submodel/$path' }, options));
699
+ return (options?.client ?? exports.client).get({
700
+ url: '/submodel/$path',
701
+ ...options,
702
+ });
505
703
  };
506
704
  exports.getSubmodelPath = getSubmodelPath;
507
705
  /**
508
706
  * Returns all submodel elements including their hierarchy
509
707
  */
510
708
  const getAllSubmodelElements = (options) => {
511
- var _a;
512
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/submodel/submodel-elements' }, options));
709
+ return (options?.client ?? exports.client).get({
710
+ url: '/submodel/submodel-elements',
711
+ ...options,
712
+ });
513
713
  };
514
714
  exports.getAllSubmodelElements = getAllSubmodelElements;
515
715
  /**
516
716
  * Creates a new submodel element
517
717
  */
518
718
  const postSubmodelElement = (options) => {
519
- var _a;
520
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).post(Object.assign(Object.assign({ url: '/submodel/submodel-elements' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
719
+ return (options?.client ?? exports.client).post({
720
+ url: '/submodel/submodel-elements',
721
+ ...options,
722
+ headers: {
723
+ 'Content-Type': 'application/json',
724
+ ...options?.headers,
725
+ },
726
+ });
521
727
  };
522
728
  exports.postSubmodelElement = postSubmodelElement;
523
729
  /**
524
730
  * Returns the metadata attributes of all submodel elements including their hierarchy
525
731
  */
526
732
  const getAllSubmodelElementsMetadata = (options) => {
527
- var _a;
528
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/submodel/submodel-elements/$metadata' }, options));
733
+ return (options?.client ?? exports.client).get({
734
+ url: '/submodel/submodel-elements/$metadata',
735
+ ...options,
736
+ });
529
737
  };
530
738
  exports.getAllSubmodelElementsMetadata = getAllSubmodelElementsMetadata;
531
739
  /**
532
740
  * Returns all submodel elements including their hierarchy in the ValueOnly representation
533
741
  */
534
742
  const getAllSubmodelElementsValueOnly = (options) => {
535
- var _a;
536
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/submodel/submodel-elements/$value' }, options));
743
+ return (options?.client ?? exports.client).get({
744
+ url: '/submodel/submodel-elements/$value',
745
+ ...options,
746
+ });
537
747
  };
538
748
  exports.getAllSubmodelElementsValueOnly = getAllSubmodelElementsValueOnly;
539
749
  /**
540
750
  * Returns the References of all submodel elements
541
751
  */
542
752
  const getAllSubmodelElementsReference = (options) => {
543
- var _a;
544
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/submodel/submodel-elements/$reference' }, options));
753
+ return (options?.client ?? exports.client).get({
754
+ url: '/submodel/submodel-elements/$reference',
755
+ ...options,
756
+ });
545
757
  };
546
758
  exports.getAllSubmodelElementsReference = getAllSubmodelElementsReference;
547
759
  /**
548
760
  * Returns all submodel elements including their hierarchy in the Path notation
549
761
  */
550
762
  const getAllSubmodelElementsPath = (options) => {
551
- var _a;
552
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/submodel/submodel-elements/$path' }, options));
763
+ return (options?.client ?? exports.client).get({
764
+ url: '/submodel/submodel-elements/$path',
765
+ ...options,
766
+ });
553
767
  };
554
768
  exports.getAllSubmodelElementsPath = getAllSubmodelElementsPath;
555
769
  /**
556
770
  * Deletes a submodel element at a specified path within the submodel elements hierarchy
557
771
  */
558
772
  const deleteSubmodelElementByPath = (options) => {
559
- var _a;
560
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).delete(Object.assign({ url: '/submodel/submodel-elements/{idShortPath}' }, options));
773
+ return (options?.client ?? exports.client).delete({
774
+ url: '/submodel/submodel-elements/{idShortPath}',
775
+ ...options,
776
+ });
561
777
  };
562
778
  exports.deleteSubmodelElementByPath = deleteSubmodelElementByPath;
563
779
  /**
564
780
  * Returns a specific submodel element from the Submodel at a specified path
565
781
  */
566
782
  const getSubmodelElementByPath = (options) => {
567
- var _a;
568
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/submodel/submodel-elements/{idShortPath}' }, options));
783
+ return (options?.client ?? exports.client).get({
784
+ url: '/submodel/submodel-elements/{idShortPath}',
785
+ ...options,
786
+ });
569
787
  };
570
788
  exports.getSubmodelElementByPath = getSubmodelElementByPath;
571
789
  /**
572
790
  * Updates an existing SubmodelElement
573
791
  */
574
792
  const patchSubmodelElementByPath = (options) => {
575
- var _a;
576
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).patch(Object.assign(Object.assign({ url: '/submodel/submodel-elements/{idShortPath}' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
793
+ return (options?.client ?? exports.client).patch({
794
+ url: '/submodel/submodel-elements/{idShortPath}',
795
+ ...options,
796
+ headers: {
797
+ 'Content-Type': 'application/json',
798
+ ...options?.headers,
799
+ },
800
+ });
577
801
  };
578
802
  exports.patchSubmodelElementByPath = patchSubmodelElementByPath;
579
803
  /**
580
804
  * Creates a new submodel element at a specified path within submodel elements hierarchy
581
805
  */
582
806
  const postSubmodelElementByPath = (options) => {
583
- var _a;
584
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).post(Object.assign(Object.assign({ url: '/submodel/submodel-elements/{idShortPath}' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
807
+ return (options?.client ?? exports.client).post({
808
+ url: '/submodel/submodel-elements/{idShortPath}',
809
+ ...options,
810
+ headers: {
811
+ 'Content-Type': 'application/json',
812
+ ...options?.headers,
813
+ },
814
+ });
585
815
  };
586
816
  exports.postSubmodelElementByPath = postSubmodelElementByPath;
587
817
  /**
588
818
  * Updates an existing submodel element at a specified path within submodel elements hierarchy
589
819
  */
590
820
  const putSubmodelElementByPath = (options) => {
591
- var _a;
592
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).put(Object.assign(Object.assign({ url: '/submodel/submodel-elements/{idShortPath}' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
821
+ return (options?.client ?? exports.client).put({
822
+ url: '/submodel/submodel-elements/{idShortPath}',
823
+ ...options,
824
+ headers: {
825
+ 'Content-Type': 'application/json',
826
+ ...options?.headers,
827
+ },
828
+ });
593
829
  };
594
830
  exports.putSubmodelElementByPath = putSubmodelElementByPath;
595
831
  /**
596
832
  * Returns the matadata attributes of a specific submodel element from the Submodel at a specified path
597
833
  */
598
834
  const getSubmodelElementByPathMetadata = (options) => {
599
- var _a;
600
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/submodel/submodel-elements/{idShortPath}/$metadata' }, options));
835
+ return (options?.client ?? exports.client).get({
836
+ url: '/submodel/submodel-elements/{idShortPath}/$metadata',
837
+ ...options,
838
+ });
601
839
  };
602
840
  exports.getSubmodelElementByPathMetadata = getSubmodelElementByPathMetadata;
603
841
  /**
604
842
  * Updates the metadata attributes an existing SubmodelElement
605
843
  */
606
844
  const patchSubmodelElementByPathMetadata = (options) => {
607
- var _a;
608
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).patch(Object.assign(Object.assign({ url: '/submodel/submodel-elements/{idShortPath}/$metadata' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
845
+ return (options?.client ?? exports.client).patch({
846
+ url: '/submodel/submodel-elements/{idShortPath}/$metadata',
847
+ ...options,
848
+ headers: {
849
+ 'Content-Type': 'application/json',
850
+ ...options?.headers,
851
+ },
852
+ });
609
853
  };
610
854
  exports.patchSubmodelElementByPathMetadata = patchSubmodelElementByPathMetadata;
611
855
  /**
612
856
  * Returns a specific submodel element from the Submodel at a specified path in the ValueOnly representation
613
857
  */
614
858
  const getSubmodelElementByPathValueOnly = (options) => {
615
- var _a;
616
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/submodel/submodel-elements/{idShortPath}/$value' }, options));
859
+ return (options?.client ?? exports.client).get({
860
+ url: '/submodel/submodel-elements/{idShortPath}/$value',
861
+ ...options,
862
+ });
617
863
  };
618
864
  exports.getSubmodelElementByPathValueOnly = getSubmodelElementByPathValueOnly;
619
865
  /**
620
866
  * Updates the value of an existing SubmodelElement
621
867
  */
622
868
  const patchSubmodelElementByPathValueOnly = (options) => {
623
- var _a;
624
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).patch(Object.assign(Object.assign({ url: '/submodel/submodel-elements/{idShortPath}/$value' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
869
+ return (options?.client ?? exports.client).patch({
870
+ url: '/submodel/submodel-elements/{idShortPath}/$value',
871
+ ...options,
872
+ headers: {
873
+ 'Content-Type': 'application/json',
874
+ ...options?.headers,
875
+ },
876
+ });
625
877
  };
626
878
  exports.patchSubmodelElementByPathValueOnly = patchSubmodelElementByPathValueOnly;
627
879
  /**
628
880
  * Returns the Referene of a specific submodel element from the Submodel at a specified path
629
881
  */
630
882
  const getSubmodelElementByPathReference = (options) => {
631
- var _a;
632
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/submodel/submodel-elements/{idShortPath}/$reference' }, options));
883
+ return (options?.client ?? exports.client).get({
884
+ url: '/submodel/submodel-elements/{idShortPath}/$reference',
885
+ ...options,
886
+ });
633
887
  };
634
888
  exports.getSubmodelElementByPathReference = getSubmodelElementByPathReference;
635
889
  /**
636
890
  * Returns a specific submodel element from the Submodel at a specified path in the Path notation
637
891
  */
638
892
  const getSubmodelElementByPathPath = (options) => {
639
- var _a;
640
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/submodel/submodel-elements/{idShortPath}/$path' }, options));
893
+ return (options?.client ?? exports.client).get({
894
+ url: '/submodel/submodel-elements/{idShortPath}/$path',
895
+ ...options,
896
+ });
641
897
  };
642
898
  exports.getSubmodelElementByPathPath = getSubmodelElementByPathPath;
643
899
  /**
644
900
  * Deletes file content of an existing submodel element at a specified path within submodel elements hierarchy
645
901
  */
646
902
  const deleteFileByPath = (options) => {
647
- var _a;
648
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).delete(Object.assign({ url: '/submodel/submodel-elements/{idShortPath}/attachment' }, options));
903
+ return (options?.client ?? exports.client).delete({
904
+ url: '/submodel/submodel-elements/{idShortPath}/attachment',
905
+ ...options,
906
+ });
649
907
  };
650
908
  exports.deleteFileByPath = deleteFileByPath;
651
909
  /**
652
910
  * Downloads file content from a specific submodel element from the Submodel at a specified path
653
911
  */
654
912
  const getFileByPath = (options) => {
655
- var _a;
656
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/submodel/submodel-elements/{idShortPath}/attachment' }, options));
913
+ return (options?.client ?? exports.client).get({
914
+ url: '/submodel/submodel-elements/{idShortPath}/attachment',
915
+ ...options,
916
+ });
657
917
  };
658
918
  exports.getFileByPath = getFileByPath;
659
919
  /**
660
920
  * Uploads file content to an existing submodel element at a specified path within submodel elements hierarchy
661
921
  */
662
922
  const putFileByPath = (options) => {
663
- var _a;
664
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).put(Object.assign(Object.assign(Object.assign(Object.assign({}, client_fetch_1.formDataBodySerializer), { url: '/submodel/submodel-elements/{idShortPath}/attachment' }), options), { headers: Object.assign({ 'Content-Type': null }, options === null || options === void 0 ? void 0 : options.headers) }));
923
+ return (options?.client ?? exports.client).put({
924
+ ...client_fetch_1.formDataBodySerializer,
925
+ url: '/submodel/submodel-elements/{idShortPath}/attachment',
926
+ ...options,
927
+ headers: {
928
+ 'Content-Type': null,
929
+ ...options?.headers,
930
+ },
931
+ });
665
932
  };
666
933
  exports.putFileByPath = putFileByPath;
667
934
  /**
668
935
  * Synchronously invokes an Operation at a specified path
669
936
  */
670
937
  const invokeOperation = (options) => {
671
- var _a;
672
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).post(Object.assign(Object.assign({ url: '/submodel/submodel-elements/{idShortPath}/invoke' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
938
+ return (options?.client ?? exports.client).post({
939
+ url: '/submodel/submodel-elements/{idShortPath}/invoke',
940
+ ...options,
941
+ headers: {
942
+ 'Content-Type': 'application/json',
943
+ ...options?.headers,
944
+ },
945
+ });
673
946
  };
674
947
  exports.invokeOperation = invokeOperation;
675
948
  /**
676
949
  * Asynchronously invokes an Operation at a specified path
677
950
  */
678
951
  const invokeOperationAsync = (options) => {
679
- var _a;
680
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).post(Object.assign(Object.assign({ url: '/submodel/submodel-elements/{idShortPath}/invoke-async' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
952
+ return (options?.client ?? exports.client).post({
953
+ url: '/submodel/submodel-elements/{idShortPath}/invoke-async',
954
+ ...options,
955
+ headers: {
956
+ 'Content-Type': 'application/json',
957
+ ...options?.headers,
958
+ },
959
+ });
681
960
  };
682
961
  exports.invokeOperationAsync = invokeOperationAsync;
683
962
  /**
684
963
  * Synchronously invokes an Operation at a specified path
685
964
  */
686
965
  const invokeOperationSyncValueOnly = (options) => {
687
- var _a;
688
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).post(Object.assign(Object.assign({ url: '/submodel/submodel-elements/{idShortPath}/invoke/$value' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
966
+ return (options?.client ?? exports.client).post({
967
+ url: '/submodel/submodel-elements/{idShortPath}/invoke/$value',
968
+ ...options,
969
+ headers: {
970
+ 'Content-Type': 'application/json',
971
+ ...options?.headers,
972
+ },
973
+ });
689
974
  };
690
975
  exports.invokeOperationSyncValueOnly = invokeOperationSyncValueOnly;
691
976
  /**
692
977
  * Asynchronously invokes an Operation at a specified path
693
978
  */
694
979
  const invokeOperationAsyncValueOnly = (options) => {
695
- var _a;
696
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).post(Object.assign(Object.assign({ url: '/submodel/submodel-elements/{idShortPath}/invoke-async/$value' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
980
+ return (options?.client ?? exports.client).post({
981
+ url: '/submodel/submodel-elements/{idShortPath}/invoke-async/$value',
982
+ ...options,
983
+ headers: {
984
+ 'Content-Type': 'application/json',
985
+ ...options?.headers,
986
+ },
987
+ });
697
988
  };
698
989
  exports.invokeOperationAsyncValueOnly = invokeOperationAsyncValueOnly;
699
990
  /**
700
991
  * Returns the Operation status of an asynchronous invoked Operation
701
992
  */
702
993
  const getOperationAsyncStatus = (options) => {
703
- var _a;
704
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/submodel/submodel-elements/{idShortPath}/operation-status/{handleId}' }, options));
994
+ return (options?.client ?? exports.client).get({
995
+ url: '/submodel/submodel-elements/{idShortPath}/operation-status/{handleId}',
996
+ ...options,
997
+ });
705
998
  };
706
999
  exports.getOperationAsyncStatus = getOperationAsyncStatus;
707
1000
  /**
708
1001
  * Returns the Operation result of an asynchronous invoked Operation
709
1002
  */
710
1003
  const getOperationAsyncResult = (options) => {
711
- var _a;
712
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/submodel/submodel-elements/{idShortPath}/operation-results/{handleId}' }, options));
1004
+ return (options?.client ?? exports.client).get({
1005
+ url: '/submodel/submodel-elements/{idShortPath}/operation-results/{handleId}',
1006
+ ...options,
1007
+ });
713
1008
  };
714
1009
  exports.getOperationAsyncResult = getOperationAsyncResult;
715
1010
  /**
716
1011
  * Returns the value of the Operation result of an asynchronous invoked Operation
717
1012
  */
718
1013
  const getOperationAsyncResultValueOnly = (options) => {
719
- var _a;
720
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/submodel/submodel-elements/{idShortPath}/operation-results/{handleId}/$value' }, options));
1014
+ return (options?.client ?? exports.client).get({
1015
+ url: '/submodel/submodel-elements/{idShortPath}/operation-results/{handleId}/$value',
1016
+ ...options,
1017
+ });
721
1018
  };
722
1019
  exports.getOperationAsyncResultValueOnly = getOperationAsyncResultValueOnly;
723
1020
  /**
724
1021
  * Returns all Asset Administration Shells
725
1022
  */
726
1023
  const getAllAssetAdministrationShells = (options) => {
727
- var _a;
728
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/shells' }, options));
1024
+ return (options?.client ?? exports.client).get({
1025
+ url: '/shells',
1026
+ ...options,
1027
+ });
729
1028
  };
730
1029
  exports.getAllAssetAdministrationShells = getAllAssetAdministrationShells;
731
1030
  /**
732
1031
  * Creates a new Asset Administration Shell
733
1032
  */
734
1033
  const postAssetAdministrationShell = (options) => {
735
- var _a;
736
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).post(Object.assign(Object.assign({ url: '/shells' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
1034
+ return (options?.client ?? exports.client).post({
1035
+ url: '/shells',
1036
+ ...options,
1037
+ headers: {
1038
+ 'Content-Type': 'application/json',
1039
+ ...options?.headers,
1040
+ },
1041
+ });
737
1042
  };
738
1043
  exports.postAssetAdministrationShell = postAssetAdministrationShell;
739
1044
  /**
740
1045
  * Returns References to all Asset Administration Shells
741
1046
  */
742
1047
  const getAllAssetAdministrationShellsReference = (options) => {
743
- var _a;
744
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/shells/$reference' }, options));
1048
+ return (options?.client ?? exports.client).get({
1049
+ url: '/shells/$reference',
1050
+ ...options,
1051
+ });
745
1052
  };
746
1053
  exports.getAllAssetAdministrationShellsReference = getAllAssetAdministrationShellsReference;
747
1054
  /**
748
1055
  * Deletes an Asset Administration Shell
749
1056
  */
750
1057
  const deleteAssetAdministrationShellById = (options) => {
751
- var _a;
752
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).delete(Object.assign({ url: '/shells/{aasIdentifier}' }, options));
1058
+ return (options?.client ?? exports.client).delete({
1059
+ url: '/shells/{aasIdentifier}',
1060
+ ...options,
1061
+ });
753
1062
  };
754
1063
  exports.deleteAssetAdministrationShellById = deleteAssetAdministrationShellById;
755
1064
  /**
756
1065
  * Returns a specific Asset Administration Shell
757
1066
  */
758
1067
  const getAssetAdministrationShellById = (options) => {
759
- var _a;
760
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/shells/{aasIdentifier}' }, options));
1068
+ return (options?.client ?? exports.client).get({
1069
+ url: '/shells/{aasIdentifier}',
1070
+ ...options,
1071
+ });
761
1072
  };
762
1073
  exports.getAssetAdministrationShellById = getAssetAdministrationShellById;
763
1074
  /**
764
1075
  * Updates an existing Asset Administration Shell
765
1076
  */
766
1077
  const putAssetAdministrationShellById = (options) => {
767
- var _a;
768
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).put(Object.assign(Object.assign({ url: '/shells/{aasIdentifier}' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
1078
+ return (options?.client ?? exports.client).put({
1079
+ url: '/shells/{aasIdentifier}',
1080
+ ...options,
1081
+ headers: {
1082
+ 'Content-Type': 'application/json',
1083
+ ...options?.headers,
1084
+ },
1085
+ });
769
1086
  };
770
1087
  exports.putAssetAdministrationShellById = putAssetAdministrationShellById;
771
1088
  /**
772
1089
  * Returns a specific Asset Administration Shell as a Reference
773
1090
  */
774
1091
  const getAssetAdministrationShellByIdReferenceAasRepository = (options) => {
775
- var _a;
776
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/shells/{aasIdentifier}/$reference' }, options));
1092
+ return (options?.client ?? exports.client).get({
1093
+ url: '/shells/{aasIdentifier}/$reference',
1094
+ ...options,
1095
+ });
777
1096
  };
778
1097
  exports.getAssetAdministrationShellByIdReferenceAasRepository = getAssetAdministrationShellByIdReferenceAasRepository;
779
1098
  /**
780
1099
  * Returns the Asset Information
781
1100
  */
782
1101
  const getAssetInformationAasRepository = (options) => {
783
- var _a;
784
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/shells/{aasIdentifier}/asset-information' }, options));
1102
+ return (options?.client ?? exports.client).get({
1103
+ url: '/shells/{aasIdentifier}/asset-information',
1104
+ ...options,
1105
+ });
785
1106
  };
786
1107
  exports.getAssetInformationAasRepository = getAssetInformationAasRepository;
787
1108
  /**
788
1109
  * Updates the Asset Information
789
1110
  */
790
1111
  const putAssetInformationAasRepository = (options) => {
791
- var _a;
792
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).put(Object.assign(Object.assign({ url: '/shells/{aasIdentifier}/asset-information' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
1112
+ return (options?.client ?? exports.client).put({
1113
+ url: '/shells/{aasIdentifier}/asset-information',
1114
+ ...options,
1115
+ headers: {
1116
+ 'Content-Type': 'application/json',
1117
+ ...options?.headers,
1118
+ },
1119
+ });
793
1120
  };
794
1121
  exports.putAssetInformationAasRepository = putAssetInformationAasRepository;
795
1122
  const deleteThumbnailAasRepository = (options) => {
796
- var _a;
797
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).delete(Object.assign({ url: '/shells/{aasIdentifier}/asset-information/thumbnail' }, options));
1123
+ return (options?.client ?? exports.client).delete({
1124
+ url: '/shells/{aasIdentifier}/asset-information/thumbnail',
1125
+ ...options,
1126
+ });
798
1127
  };
799
1128
  exports.deleteThumbnailAasRepository = deleteThumbnailAasRepository;
800
1129
  const getThumbnailAasRepository = (options) => {
801
- var _a;
802
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/shells/{aasIdentifier}/asset-information/thumbnail' }, options));
1130
+ return (options?.client ?? exports.client).get({
1131
+ url: '/shells/{aasIdentifier}/asset-information/thumbnail',
1132
+ ...options,
1133
+ });
803
1134
  };
804
1135
  exports.getThumbnailAasRepository = getThumbnailAasRepository;
805
1136
  const putThumbnailAasRepository = (options) => {
806
- var _a;
807
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).put(Object.assign(Object.assign(Object.assign(Object.assign({}, client_fetch_1.formDataBodySerializer), { url: '/shells/{aasIdentifier}/asset-information/thumbnail' }), options), { headers: Object.assign({ 'Content-Type': null }, options === null || options === void 0 ? void 0 : options.headers) }));
1137
+ return (options?.client ?? exports.client).put({
1138
+ ...client_fetch_1.formDataBodySerializer,
1139
+ url: '/shells/{aasIdentifier}/asset-information/thumbnail',
1140
+ ...options,
1141
+ headers: {
1142
+ 'Content-Type': null,
1143
+ ...options?.headers,
1144
+ },
1145
+ });
808
1146
  };
809
1147
  exports.putThumbnailAasRepository = putThumbnailAasRepository;
810
1148
  /**
811
1149
  * Returns all submodel references
812
1150
  */
813
1151
  const getAllSubmodelReferencesAasRepository = (options) => {
814
- var _a;
815
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/shells/{aasIdentifier}/submodel-refs' }, options));
1152
+ return (options?.client ?? exports.client).get({
1153
+ url: '/shells/{aasIdentifier}/submodel-refs',
1154
+ ...options,
1155
+ });
816
1156
  };
817
1157
  exports.getAllSubmodelReferencesAasRepository = getAllSubmodelReferencesAasRepository;
818
1158
  /**
819
1159
  * Creates a submodel reference at the Asset Administration Shell
820
1160
  */
821
1161
  const postSubmodelReferenceAasRepository = (options) => {
822
- var _a;
823
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).post(Object.assign(Object.assign({ url: '/shells/{aasIdentifier}/submodel-refs' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
1162
+ return (options?.client ?? exports.client).post({
1163
+ url: '/shells/{aasIdentifier}/submodel-refs',
1164
+ ...options,
1165
+ headers: {
1166
+ 'Content-Type': 'application/json',
1167
+ ...options?.headers,
1168
+ },
1169
+ });
824
1170
  };
825
1171
  exports.postSubmodelReferenceAasRepository = postSubmodelReferenceAasRepository;
826
1172
  /**
827
1173
  * Deletes the submodel reference from the Asset Administration Shell. Does not delete the submodel itself!
828
1174
  */
829
1175
  const deleteSubmodelReferenceByIdAasRepository = (options) => {
830
- var _a;
831
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).delete(Object.assign({ url: '/shells/{aasIdentifier}/submodel-refs/{submodelIdentifier}' }, options));
1176
+ return (options?.client ?? exports.client).delete({
1177
+ url: '/shells/{aasIdentifier}/submodel-refs/{submodelIdentifier}',
1178
+ ...options,
1179
+ });
832
1180
  };
833
1181
  exports.deleteSubmodelReferenceByIdAasRepository = deleteSubmodelReferenceByIdAasRepository;
834
1182
  /**
835
1183
  * Deletes the submodel from the Asset Administration Shell and the Repository.
836
1184
  */
837
1185
  const deleteSubmodelByIdAasRepository = (options) => {
838
- var _a;
839
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).delete(Object.assign({ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}' }, options));
1186
+ return (options?.client ?? exports.client).delete({
1187
+ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}',
1188
+ ...options,
1189
+ });
840
1190
  };
841
1191
  exports.deleteSubmodelByIdAasRepository = deleteSubmodelByIdAasRepository;
842
1192
  /**
843
1193
  * Returns the Submodel
844
1194
  */
845
1195
  const getSubmodelByIdAasRepository = (options) => {
846
- var _a;
847
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}' }, options));
1196
+ return (options?.client ?? exports.client).get({
1197
+ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}',
1198
+ ...options,
1199
+ });
848
1200
  };
849
1201
  exports.getSubmodelByIdAasRepository = getSubmodelByIdAasRepository;
850
1202
  /**
851
1203
  * Updates the Submodel
852
1204
  */
853
1205
  const patchSubmodelAasRepository = (options) => {
854
- var _a;
855
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).patch(Object.assign(Object.assign({ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
1206
+ return (options?.client ?? exports.client).patch({
1207
+ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}',
1208
+ ...options,
1209
+ headers: {
1210
+ 'Content-Type': 'application/json',
1211
+ ...options?.headers,
1212
+ },
1213
+ });
856
1214
  };
857
1215
  exports.patchSubmodelAasRepository = patchSubmodelAasRepository;
858
1216
  /**
859
1217
  * Updates the Submodel
860
1218
  */
861
1219
  const putSubmodelByIdAasRepository = (options) => {
862
- var _a;
863
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).put(Object.assign(Object.assign({ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
1220
+ return (options?.client ?? exports.client).put({
1221
+ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}',
1222
+ ...options,
1223
+ headers: {
1224
+ 'Content-Type': 'application/json',
1225
+ ...options?.headers,
1226
+ },
1227
+ });
864
1228
  };
865
1229
  exports.putSubmodelByIdAasRepository = putSubmodelByIdAasRepository;
866
1230
  /**
867
1231
  * Returns the Submodel's metadata elements
868
1232
  */
869
1233
  const getSubmodelByIdMetadataAasRepository = (options) => {
870
- var _a;
871
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/$metadata' }, options));
1234
+ return (options?.client ?? exports.client).get({
1235
+ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/$metadata',
1236
+ ...options,
1237
+ });
872
1238
  };
873
1239
  exports.getSubmodelByIdMetadataAasRepository = getSubmodelByIdMetadataAasRepository;
874
1240
  /**
875
1241
  * Updates the metadata attributes of the Submodel
876
1242
  */
877
1243
  const patchSubmodelByIdMetadataAasRepository = (options) => {
878
- var _a;
879
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).patch(Object.assign(Object.assign({ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/$metadata' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
1244
+ return (options?.client ?? exports.client).patch({
1245
+ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/$metadata',
1246
+ ...options,
1247
+ headers: {
1248
+ 'Content-Type': 'application/json',
1249
+ ...options?.headers,
1250
+ },
1251
+ });
880
1252
  };
881
1253
  exports.patchSubmodelByIdMetadataAasRepository = patchSubmodelByIdMetadataAasRepository;
882
1254
  /**
883
1255
  * Returns the Submodel's ValueOnly representation
884
1256
  */
885
1257
  const getSubmodelByIdValueOnlyAasRepository = (options) => {
886
- var _a;
887
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/$value' }, options));
1258
+ return (options?.client ?? exports.client).get({
1259
+ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/$value',
1260
+ ...options,
1261
+ });
888
1262
  };
889
1263
  exports.getSubmodelByIdValueOnlyAasRepository = getSubmodelByIdValueOnlyAasRepository;
890
1264
  /**
891
1265
  * Updates the values of the Submodel
892
1266
  */
893
1267
  const patchSubmodelByIdValueOnlyAasRepository = (options) => {
894
- var _a;
895
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).patch(Object.assign(Object.assign({ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/$value' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
1268
+ return (options?.client ?? exports.client).patch({
1269
+ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/$value',
1270
+ ...options,
1271
+ headers: {
1272
+ 'Content-Type': 'application/json',
1273
+ ...options?.headers,
1274
+ },
1275
+ });
896
1276
  };
897
1277
  exports.patchSubmodelByIdValueOnlyAasRepository = patchSubmodelByIdValueOnlyAasRepository;
898
1278
  /**
899
1279
  * Returns the Submodel as a Reference
900
1280
  */
901
1281
  const getSubmodelByIdReferenceAasRepository = (options) => {
902
- var _a;
903
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/$reference' }, options));
1282
+ return (options?.client ?? exports.client).get({
1283
+ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/$reference',
1284
+ ...options,
1285
+ });
904
1286
  };
905
1287
  exports.getSubmodelByIdReferenceAasRepository = getSubmodelByIdReferenceAasRepository;
906
1288
  /**
907
1289
  * Returns the Submodel's metadata elements
908
1290
  */
909
1291
  const getSubmodelByIdPathAasRepository = (options) => {
910
- var _a;
911
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/$path' }, options));
1292
+ return (options?.client ?? exports.client).get({
1293
+ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/$path',
1294
+ ...options,
1295
+ });
912
1296
  };
913
1297
  exports.getSubmodelByIdPathAasRepository = getSubmodelByIdPathAasRepository;
914
1298
  /**
915
1299
  * Returns all submodel elements including their hierarchy
916
1300
  */
917
1301
  const getAllSubmodelElementsAasRepository = (options) => {
918
- var _a;
919
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements' }, options));
1302
+ return (options?.client ?? exports.client).get({
1303
+ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements',
1304
+ ...options,
1305
+ });
920
1306
  };
921
1307
  exports.getAllSubmodelElementsAasRepository = getAllSubmodelElementsAasRepository;
922
1308
  /**
923
1309
  * Creates a new submodel element
924
1310
  */
925
1311
  const postSubmodelElementAasRepository = (options) => {
926
- var _a;
927
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).post(Object.assign(Object.assign({ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
1312
+ return (options?.client ?? exports.client).post({
1313
+ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements',
1314
+ ...options,
1315
+ headers: {
1316
+ 'Content-Type': 'application/json',
1317
+ ...options?.headers,
1318
+ },
1319
+ });
928
1320
  };
929
1321
  exports.postSubmodelElementAasRepository = postSubmodelElementAasRepository;
930
1322
  /**
931
1323
  * Returns all submodel elements including their hierarchy
932
1324
  */
933
1325
  const getAllSubmodelElementsMetadataAasRepository = (options) => {
934
- var _a;
935
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/$metadata' }, options));
1326
+ return (options?.client ?? exports.client).get({
1327
+ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/$metadata',
1328
+ ...options,
1329
+ });
936
1330
  };
937
1331
  exports.getAllSubmodelElementsMetadataAasRepository = getAllSubmodelElementsMetadataAasRepository;
938
1332
  /**
939
1333
  * Returns all submodel elements including their hierarchy in the ValueOnly representation
940
1334
  */
941
1335
  const getAllSubmodelElementsValueOnlyAasRepository = (options) => {
942
- var _a;
943
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/$value' }, options));
1336
+ return (options?.client ?? exports.client).get({
1337
+ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/$value',
1338
+ ...options,
1339
+ });
944
1340
  };
945
1341
  exports.getAllSubmodelElementsValueOnlyAasRepository = getAllSubmodelElementsValueOnlyAasRepository;
946
1342
  /**
947
1343
  * Returns all submodel elements as a list of References
948
1344
  */
949
1345
  const getAllSubmodelElementsReferenceAasRepository = (options) => {
950
- var _a;
951
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/$reference' }, options));
1346
+ return (options?.client ?? exports.client).get({
1347
+ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/$reference',
1348
+ ...options,
1349
+ });
952
1350
  };
953
1351
  exports.getAllSubmodelElementsReferenceAasRepository = getAllSubmodelElementsReferenceAasRepository;
954
1352
  /**
955
1353
  * Returns all submodel elements including their hierarchy
956
1354
  */
957
1355
  const getAllSubmodelElementsPathAasRepository = (options) => {
958
- var _a;
959
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/$path' }, options));
1356
+ return (options?.client ?? exports.client).get({
1357
+ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/$path',
1358
+ ...options,
1359
+ });
960
1360
  };
961
1361
  exports.getAllSubmodelElementsPathAasRepository = getAllSubmodelElementsPathAasRepository;
962
1362
  /**
963
1363
  * Deletes a submodel element at a specified path within the submodel elements hierarchy
964
1364
  */
965
1365
  const deleteSubmodelElementByPathAasRepository = (options) => {
966
- var _a;
967
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).delete(Object.assign({ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}' }, options));
1366
+ return (options?.client ?? exports.client).delete({
1367
+ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}',
1368
+ ...options,
1369
+ });
968
1370
  };
969
1371
  exports.deleteSubmodelElementByPathAasRepository = deleteSubmodelElementByPathAasRepository;
970
1372
  /**
971
1373
  * Returns a specific submodel element from the Submodel at a specified path
972
1374
  */
973
1375
  const getSubmodelElementByPathAasRepository = (options) => {
974
- var _a;
975
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}' }, options));
1376
+ return (options?.client ?? exports.client).get({
1377
+ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}',
1378
+ ...options,
1379
+ });
976
1380
  };
977
1381
  exports.getSubmodelElementByPathAasRepository = getSubmodelElementByPathAasRepository;
978
1382
  /**
979
1383
  * Updates an existing submodel element value at a specified path within submodel elements hierarchy
980
1384
  */
981
1385
  const patchSubmodelElementValueByPathAasRepository = (options) => {
982
- var _a;
983
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).patch(Object.assign(Object.assign({ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
1386
+ return (options?.client ?? exports.client).patch({
1387
+ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}',
1388
+ ...options,
1389
+ headers: {
1390
+ 'Content-Type': 'application/json',
1391
+ ...options?.headers,
1392
+ },
1393
+ });
984
1394
  };
985
1395
  exports.patchSubmodelElementValueByPathAasRepository = patchSubmodelElementValueByPathAasRepository;
986
1396
  /**
987
1397
  * Creates a new submodel element at a specified path within submodel elements hierarchy
988
1398
  */
989
1399
  const postSubmodelElementByPathAasRepository = (options) => {
990
- var _a;
991
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).post(Object.assign(Object.assign({ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
1400
+ return (options?.client ?? exports.client).post({
1401
+ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}',
1402
+ ...options,
1403
+ headers: {
1404
+ 'Content-Type': 'application/json',
1405
+ ...options?.headers,
1406
+ },
1407
+ });
992
1408
  };
993
1409
  exports.postSubmodelElementByPathAasRepository = postSubmodelElementByPathAasRepository;
994
1410
  /**
995
1411
  * Updates an existing submodel element at a specified path within submodel elements hierarchy
996
1412
  */
997
1413
  const putSubmodelElementByPathAasRepository = (options) => {
998
- var _a;
999
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).put(Object.assign(Object.assign({ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
1414
+ return (options?.client ?? exports.client).put({
1415
+ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}',
1416
+ ...options,
1417
+ headers: {
1418
+ 'Content-Type': 'application/json',
1419
+ ...options?.headers,
1420
+ },
1421
+ });
1000
1422
  };
1001
1423
  exports.putSubmodelElementByPathAasRepository = putSubmodelElementByPathAasRepository;
1002
1424
  /**
1003
1425
  * Returns the metadata attributes if a specific submodel element from the Submodel at a specified path
1004
1426
  */
1005
1427
  const getSubmodelElementByPathMetadataAasRepository = (options) => {
1006
- var _a;
1007
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/$metadata' }, options));
1428
+ return (options?.client ?? exports.client).get({
1429
+ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/$metadata',
1430
+ ...options,
1431
+ });
1008
1432
  };
1009
1433
  exports.getSubmodelElementByPathMetadataAasRepository = getSubmodelElementByPathMetadataAasRepository;
1010
1434
  /**
1011
1435
  * Updates the metadata attributes of an existing submodel element value at a specified path within submodel elements hierarchy
1012
1436
  */
1013
1437
  const patchSubmodelElementValueByPathMetadata = (options) => {
1014
- var _a;
1015
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).patch(Object.assign(Object.assign({ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/$metadata' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
1438
+ return (options?.client ?? exports.client).patch({
1439
+ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/$metadata',
1440
+ ...options,
1441
+ headers: {
1442
+ 'Content-Type': 'application/json',
1443
+ ...options?.headers,
1444
+ },
1445
+ });
1016
1446
  };
1017
1447
  exports.patchSubmodelElementValueByPathMetadata = patchSubmodelElementValueByPathMetadata;
1018
1448
  /**
1019
1449
  * Returns a specific submodel element from the Submodel at a specified path in the ValueOnly representation
1020
1450
  */
1021
1451
  const getSubmodelElementByPathValueOnlyAasRepository = (options) => {
1022
- var _a;
1023
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/$value' }, options));
1452
+ return (options?.client ?? exports.client).get({
1453
+ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/$value',
1454
+ ...options,
1455
+ });
1024
1456
  };
1025
1457
  exports.getSubmodelElementByPathValueOnlyAasRepository = getSubmodelElementByPathValueOnlyAasRepository;
1026
1458
  /**
@@ -1046,336 +1478,481 @@ function requireSdk_gen () {
1046
1478
  * Returns the Reference of a specific submodel element from the Submodel at a specified path
1047
1479
  */
1048
1480
  const getSubmodelElementByPathReferenceAasRepository = (options) => {
1049
- var _a;
1050
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/$reference' }, options));
1481
+ return (options?.client ?? exports.client).get({
1482
+ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/$reference',
1483
+ ...options,
1484
+ });
1051
1485
  };
1052
1486
  exports.getSubmodelElementByPathReferenceAasRepository = getSubmodelElementByPathReferenceAasRepository;
1053
1487
  /**
1054
1488
  * Returns a specific submodel element from the Submodel at a specified path in the Path notation
1055
1489
  */
1056
1490
  const getSubmodelElementByPathPathAasRepository = (options) => {
1057
- var _a;
1058
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/$path' }, options));
1491
+ return (options?.client ?? exports.client).get({
1492
+ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/$path',
1493
+ ...options,
1494
+ });
1059
1495
  };
1060
1496
  exports.getSubmodelElementByPathPathAasRepository = getSubmodelElementByPathPathAasRepository;
1061
1497
  /**
1062
1498
  * Deletes file content of an existing submodel element at a specified path within submodel elements hierarchy
1063
1499
  */
1064
1500
  const deleteFileByPathAasRepository = (options) => {
1065
- var _a;
1066
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).delete(Object.assign({ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/attachment' }, options));
1501
+ return (options?.client ?? exports.client).delete({
1502
+ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/attachment',
1503
+ ...options,
1504
+ });
1067
1505
  };
1068
1506
  exports.deleteFileByPathAasRepository = deleteFileByPathAasRepository;
1069
1507
  /**
1070
1508
  * Downloads file content from a specific submodel element from the Submodel at a specified path
1071
1509
  */
1072
1510
  const getFileByPathAasRepository = (options) => {
1073
- var _a;
1074
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/attachment' }, options));
1511
+ return (options?.client ?? exports.client).get({
1512
+ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/attachment',
1513
+ ...options,
1514
+ });
1075
1515
  };
1076
1516
  exports.getFileByPathAasRepository = getFileByPathAasRepository;
1077
1517
  /**
1078
1518
  * Uploads file content to an existing submodel element at a specified path within submodel elements hierarchy
1079
1519
  */
1080
1520
  const putFileByPathAasRepository = (options) => {
1081
- var _a;
1082
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).put(Object.assign(Object.assign(Object.assign(Object.assign({}, client_fetch_1.formDataBodySerializer), { url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/attachment' }), options), { headers: Object.assign({ 'Content-Type': null }, options === null || options === void 0 ? void 0 : options.headers) }));
1521
+ return (options?.client ?? exports.client).put({
1522
+ ...client_fetch_1.formDataBodySerializer,
1523
+ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/attachment',
1524
+ ...options,
1525
+ headers: {
1526
+ 'Content-Type': null,
1527
+ ...options?.headers,
1528
+ },
1529
+ });
1083
1530
  };
1084
1531
  exports.putFileByPathAasRepository = putFileByPathAasRepository;
1085
1532
  /**
1086
1533
  * Synchronously invokes an Operation at a specified path
1087
1534
  */
1088
1535
  const invokeOperationAasRepository = (options) => {
1089
- var _a;
1090
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).post(Object.assign(Object.assign({ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/invoke' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
1536
+ return (options?.client ?? exports.client).post({
1537
+ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/invoke',
1538
+ ...options,
1539
+ headers: {
1540
+ 'Content-Type': 'application/json',
1541
+ ...options?.headers,
1542
+ },
1543
+ });
1091
1544
  };
1092
1545
  exports.invokeOperationAasRepository = invokeOperationAasRepository;
1093
1546
  /**
1094
1547
  * Synchronously invokes an Operation at a specified path
1095
1548
  */
1096
1549
  const invokeOperationValueOnlyAasRepository = (options) => {
1097
- var _a;
1098
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).post(Object.assign(Object.assign({ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/invoke/$value' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
1550
+ return (options?.client ?? exports.client).post({
1551
+ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/invoke/$value',
1552
+ ...options,
1553
+ headers: {
1554
+ 'Content-Type': 'application/json',
1555
+ ...options?.headers,
1556
+ },
1557
+ });
1099
1558
  };
1100
1559
  exports.invokeOperationValueOnlyAasRepository = invokeOperationValueOnlyAasRepository;
1101
1560
  /**
1102
1561
  * Asynchronously invokes an Operation at a specified path
1103
1562
  */
1104
1563
  const invokeOperationAsyncAasRepository = (options) => {
1105
- var _a;
1106
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).post(Object.assign(Object.assign({ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/invoke-async' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
1564
+ return (options?.client ?? exports.client).post({
1565
+ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/invoke-async',
1566
+ ...options,
1567
+ headers: {
1568
+ 'Content-Type': 'application/json',
1569
+ ...options?.headers,
1570
+ },
1571
+ });
1107
1572
  };
1108
1573
  exports.invokeOperationAsyncAasRepository = invokeOperationAsyncAasRepository;
1109
1574
  /**
1110
1575
  * Asynchronously invokes an Operation at a specified path
1111
1576
  */
1112
1577
  const invokeOperationAsyncValueOnlyAasRepository = (options) => {
1113
- var _a;
1114
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).post(Object.assign(Object.assign({ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/invoke-async/$value' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
1578
+ return (options?.client ?? exports.client).post({
1579
+ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/invoke-async/$value',
1580
+ ...options,
1581
+ headers: {
1582
+ 'Content-Type': 'application/json',
1583
+ ...options?.headers,
1584
+ },
1585
+ });
1115
1586
  };
1116
1587
  exports.invokeOperationAsyncValueOnlyAasRepository = invokeOperationAsyncValueOnlyAasRepository;
1117
1588
  /**
1118
1589
  * Returns the Operation status of an asynchronous invoked Operation
1119
1590
  */
1120
1591
  const getOperationAsyncStatusAasRepository = (options) => {
1121
- var _a;
1122
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/operation-status/{handleId}' }, options));
1592
+ return (options?.client ?? exports.client).get({
1593
+ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/operation-status/{handleId}',
1594
+ ...options,
1595
+ });
1123
1596
  };
1124
1597
  exports.getOperationAsyncStatusAasRepository = getOperationAsyncStatusAasRepository;
1125
1598
  /**
1126
1599
  * Returns the Operation result of an asynchronous invoked Operation
1127
1600
  */
1128
1601
  const getOperationAsyncResultAasRepository = (options) => {
1129
- var _a;
1130
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/operation-results/{handleId}' }, options));
1602
+ return (options?.client ?? exports.client).get({
1603
+ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/operation-results/{handleId}',
1604
+ ...options,
1605
+ });
1131
1606
  };
1132
1607
  exports.getOperationAsyncResultAasRepository = getOperationAsyncResultAasRepository;
1133
1608
  /**
1134
1609
  * Returns the ValueOnly notation of the Operation result of an asynchronous invoked Operation
1135
1610
  */
1136
1611
  const getOperationAsyncResultValueOnlyAasRepository = (options) => {
1137
- var _a;
1138
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/operation-results/{handleId}/$value' }, options));
1612
+ return (options?.client ?? exports.client).get({
1613
+ url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/operation-results/{handleId}/$value',
1614
+ ...options,
1615
+ });
1139
1616
  };
1140
1617
  exports.getOperationAsyncResultValueOnlyAasRepository = getOperationAsyncResultValueOnlyAasRepository;
1141
1618
  /**
1142
1619
  * Returns all Submodels
1143
1620
  */
1144
1621
  const getAllSubmodels = (options) => {
1145
- var _a;
1146
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/submodels' }, options));
1622
+ return (options?.client ?? exports.client).get({
1623
+ url: '/submodels',
1624
+ ...options,
1625
+ });
1147
1626
  };
1148
1627
  exports.getAllSubmodels = getAllSubmodels;
1149
1628
  /**
1150
1629
  * Creates a new Submodel
1151
1630
  */
1152
1631
  const postSubmodel = (options) => {
1153
- var _a;
1154
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).post(Object.assign(Object.assign({ url: '/submodels' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
1632
+ return (options?.client ?? exports.client).post({
1633
+ url: '/submodels',
1634
+ ...options,
1635
+ headers: {
1636
+ 'Content-Type': 'application/json',
1637
+ ...options?.headers,
1638
+ },
1639
+ });
1155
1640
  };
1156
1641
  exports.postSubmodel = postSubmodel;
1157
1642
  /**
1158
1643
  * Returns the metadata attributes of all Submodels
1159
1644
  */
1160
1645
  const getAllSubmodelsMetadata = (options) => {
1161
- var _a;
1162
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/submodels/$metadata' }, options));
1646
+ return (options?.client ?? exports.client).get({
1647
+ url: '/submodels/$metadata',
1648
+ ...options,
1649
+ });
1163
1650
  };
1164
1651
  exports.getAllSubmodelsMetadata = getAllSubmodelsMetadata;
1165
1652
  /**
1166
1653
  * Returns all Submodels in their ValueOnly representation
1167
1654
  */
1168
1655
  const getAllSubmodelsValueOnly = (options) => {
1169
- var _a;
1170
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/submodels/$value' }, options));
1656
+ return (options?.client ?? exports.client).get({
1657
+ url: '/submodels/$value',
1658
+ ...options,
1659
+ });
1171
1660
  };
1172
1661
  exports.getAllSubmodelsValueOnly = getAllSubmodelsValueOnly;
1173
1662
  /**
1174
1663
  * Returns the References for all Submodels
1175
1664
  */
1176
1665
  const getAllSubmodelsReference = (options) => {
1177
- var _a;
1178
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/submodels/$reference' }, options));
1666
+ return (options?.client ?? exports.client).get({
1667
+ url: '/submodels/$reference',
1668
+ ...options,
1669
+ });
1179
1670
  };
1180
1671
  exports.getAllSubmodelsReference = getAllSubmodelsReference;
1181
1672
  /**
1182
1673
  * Returns all Submodels in the Path notation
1183
1674
  */
1184
1675
  const getAllSubmodelsPath = (options) => {
1185
- var _a;
1186
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/submodels/$path' }, options));
1676
+ return (options?.client ?? exports.client).get({
1677
+ url: '/submodels/$path',
1678
+ ...options,
1679
+ });
1187
1680
  };
1188
1681
  exports.getAllSubmodelsPath = getAllSubmodelsPath;
1189
1682
  /**
1190
1683
  * Deletes a Submodel
1191
1684
  */
1192
1685
  const deleteSubmodelById = (options) => {
1193
- var _a;
1194
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).delete(Object.assign({ url: '/submodels/{submodelIdentifier}' }, options));
1686
+ return (options?.client ?? exports.client).delete({
1687
+ url: '/submodels/{submodelIdentifier}',
1688
+ ...options,
1689
+ });
1195
1690
  };
1196
1691
  exports.deleteSubmodelById = deleteSubmodelById;
1197
1692
  /**
1198
1693
  * Returns a specific Submodel
1199
1694
  */
1200
1695
  const getSubmodelById = (options) => {
1201
- var _a;
1202
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/submodels/{submodelIdentifier}' }, options));
1696
+ return (options?.client ?? exports.client).get({
1697
+ url: '/submodels/{submodelIdentifier}',
1698
+ ...options,
1699
+ });
1203
1700
  };
1204
1701
  exports.getSubmodelById = getSubmodelById;
1205
1702
  /**
1206
1703
  * Updates an existing Submodel
1207
1704
  */
1208
1705
  const patchSubmodelById = (options) => {
1209
- var _a;
1210
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).patch(Object.assign(Object.assign({ url: '/submodels/{submodelIdentifier}' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
1706
+ return (options?.client ?? exports.client).patch({
1707
+ url: '/submodels/{submodelIdentifier}',
1708
+ ...options,
1709
+ headers: {
1710
+ 'Content-Type': 'application/json',
1711
+ ...options?.headers,
1712
+ },
1713
+ });
1211
1714
  };
1212
1715
  exports.patchSubmodelById = patchSubmodelById;
1213
1716
  /**
1214
1717
  * Updates an existing Submodel
1215
1718
  */
1216
1719
  const putSubmodelById = (options) => {
1217
- var _a;
1218
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).put(Object.assign(Object.assign({ url: '/submodels/{submodelIdentifier}' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
1720
+ return (options?.client ?? exports.client).put({
1721
+ url: '/submodels/{submodelIdentifier}',
1722
+ ...options,
1723
+ headers: {
1724
+ 'Content-Type': 'application/json',
1725
+ ...options?.headers,
1726
+ },
1727
+ });
1219
1728
  };
1220
1729
  exports.putSubmodelById = putSubmodelById;
1221
1730
  /**
1222
1731
  * Returns the metadata attributes of a specific Submodel
1223
1732
  */
1224
1733
  const getSubmodelByIdMetadata = (options) => {
1225
- var _a;
1226
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/submodels/{submodelIdentifier}/$metadata' }, options));
1734
+ return (options?.client ?? exports.client).get({
1735
+ url: '/submodels/{submodelIdentifier}/$metadata',
1736
+ ...options,
1737
+ });
1227
1738
  };
1228
1739
  exports.getSubmodelByIdMetadata = getSubmodelByIdMetadata;
1229
1740
  /**
1230
1741
  * Updates the metadata attributes of an existing Submodel
1231
1742
  */
1232
1743
  const patchSubmodelByIdMetadata = (options) => {
1233
- var _a;
1234
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).patch(Object.assign(Object.assign({ url: '/submodels/{submodelIdentifier}/$metadata' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
1744
+ return (options?.client ?? exports.client).patch({
1745
+ url: '/submodels/{submodelIdentifier}/$metadata',
1746
+ ...options,
1747
+ headers: {
1748
+ 'Content-Type': 'application/json',
1749
+ ...options?.headers,
1750
+ },
1751
+ });
1235
1752
  };
1236
1753
  exports.patchSubmodelByIdMetadata = patchSubmodelByIdMetadata;
1237
1754
  /**
1238
1755
  * Returns a specific Submodel in the ValueOnly representation
1239
1756
  */
1240
1757
  const getSubmodelByIdValueOnly = (options) => {
1241
- var _a;
1242
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/submodels/{submodelIdentifier}/$value' }, options));
1758
+ return (options?.client ?? exports.client).get({
1759
+ url: '/submodels/{submodelIdentifier}/$value',
1760
+ ...options,
1761
+ });
1243
1762
  };
1244
1763
  exports.getSubmodelByIdValueOnly = getSubmodelByIdValueOnly;
1245
1764
  /**
1246
1765
  * Updates the values of an existing Submodel
1247
1766
  */
1248
1767
  const patchSubmodelByIdValueOnly = (options) => {
1249
- var _a;
1250
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).patch(Object.assign(Object.assign({ url: '/submodels/{submodelIdentifier}/$value' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
1768
+ return (options?.client ?? exports.client).patch({
1769
+ url: '/submodels/{submodelIdentifier}/$value',
1770
+ ...options,
1771
+ headers: {
1772
+ 'Content-Type': 'application/json',
1773
+ ...options?.headers,
1774
+ },
1775
+ });
1251
1776
  };
1252
1777
  exports.patchSubmodelByIdValueOnly = patchSubmodelByIdValueOnly;
1253
1778
  /**
1254
1779
  * Returns the Reference of a specific Submodel
1255
1780
  */
1256
1781
  const getSubmodelByIdReference = (options) => {
1257
- var _a;
1258
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/submodels/{submodelIdentifier}/$reference' }, options));
1782
+ return (options?.client ?? exports.client).get({
1783
+ url: '/submodels/{submodelIdentifier}/$reference',
1784
+ ...options,
1785
+ });
1259
1786
  };
1260
1787
  exports.getSubmodelByIdReference = getSubmodelByIdReference;
1261
1788
  /**
1262
1789
  * Returns a specific Submodel in the Path notation
1263
1790
  */
1264
1791
  const getSubmodelByIdPath = (options) => {
1265
- var _a;
1266
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/submodels/{submodelIdentifier}/$path' }, options));
1792
+ return (options?.client ?? exports.client).get({
1793
+ url: '/submodels/{submodelIdentifier}/$path',
1794
+ ...options,
1795
+ });
1267
1796
  };
1268
1797
  exports.getSubmodelByIdPath = getSubmodelByIdPath;
1269
1798
  /**
1270
1799
  * Returns all submodel elements including their hierarchy
1271
1800
  */
1272
1801
  const getAllSubmodelElementsSubmodelRepository = (options) => {
1273
- var _a;
1274
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/submodels/{submodelIdentifier}/submodel-elements' }, options));
1802
+ return (options?.client ?? exports.client).get({
1803
+ url: '/submodels/{submodelIdentifier}/submodel-elements',
1804
+ ...options,
1805
+ });
1275
1806
  };
1276
1807
  exports.getAllSubmodelElementsSubmodelRepository = getAllSubmodelElementsSubmodelRepository;
1277
1808
  /**
1278
1809
  * Creates a new submodel element
1279
1810
  */
1280
1811
  const postSubmodelElementSubmodelRepository = (options) => {
1281
- var _a;
1282
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).post(Object.assign(Object.assign({ url: '/submodels/{submodelIdentifier}/submodel-elements' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
1812
+ return (options?.client ?? exports.client).post({
1813
+ url: '/submodels/{submodelIdentifier}/submodel-elements',
1814
+ ...options,
1815
+ headers: {
1816
+ 'Content-Type': 'application/json',
1817
+ ...options?.headers,
1818
+ },
1819
+ });
1283
1820
  };
1284
1821
  exports.postSubmodelElementSubmodelRepository = postSubmodelElementSubmodelRepository;
1285
1822
  /**
1286
1823
  * Returns the metadata attributes of all submodel elements including their hierarchy
1287
1824
  */
1288
1825
  const getAllSubmodelElementsMetadataSubmodelRepository = (options) => {
1289
- var _a;
1290
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/submodels/{submodelIdentifier}/submodel-elements/$metadata' }, options));
1826
+ return (options?.client ?? exports.client).get({
1827
+ url: '/submodels/{submodelIdentifier}/submodel-elements/$metadata',
1828
+ ...options,
1829
+ });
1291
1830
  };
1292
1831
  exports.getAllSubmodelElementsMetadataSubmodelRepository = getAllSubmodelElementsMetadataSubmodelRepository;
1293
1832
  /**
1294
1833
  * Returns all submodel elements including their hierarchy in the ValueOnly representation
1295
1834
  */
1296
1835
  const getAllSubmodelElementsValueOnlySubmodelRepo = (options) => {
1297
- var _a;
1298
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/submodels/{submodelIdentifier}/submodel-elements/$value' }, options));
1836
+ return (options?.client ?? exports.client).get({
1837
+ url: '/submodels/{submodelIdentifier}/submodel-elements/$value',
1838
+ ...options,
1839
+ });
1299
1840
  };
1300
1841
  exports.getAllSubmodelElementsValueOnlySubmodelRepo = getAllSubmodelElementsValueOnlySubmodelRepo;
1301
1842
  /**
1302
1843
  * Returns the References of all submodel elements
1303
1844
  */
1304
1845
  const getAllSubmodelElementsReferenceSubmodelRepo = (options) => {
1305
- var _a;
1306
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/submodels/{submodelIdentifier}/submodel-elements/$reference' }, options));
1846
+ return (options?.client ?? exports.client).get({
1847
+ url: '/submodels/{submodelIdentifier}/submodel-elements/$reference',
1848
+ ...options,
1849
+ });
1307
1850
  };
1308
1851
  exports.getAllSubmodelElementsReferenceSubmodelRepo = getAllSubmodelElementsReferenceSubmodelRepo;
1309
1852
  /**
1310
1853
  * Returns all submodel elements including their hierarchy in the Path notation
1311
1854
  */
1312
1855
  const getAllSubmodelElementsPathSubmodelRepo = (options) => {
1313
- var _a;
1314
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/submodels/{submodelIdentifier}/submodel-elements/$path' }, options));
1856
+ return (options?.client ?? exports.client).get({
1857
+ url: '/submodels/{submodelIdentifier}/submodel-elements/$path',
1858
+ ...options,
1859
+ });
1315
1860
  };
1316
1861
  exports.getAllSubmodelElementsPathSubmodelRepo = getAllSubmodelElementsPathSubmodelRepo;
1317
1862
  /**
1318
1863
  * Deletes a submodel element at a specified path within the submodel elements hierarchy
1319
1864
  */
1320
1865
  const deleteSubmodelElementByPathSubmodelRepo = (options) => {
1321
- var _a;
1322
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).delete(Object.assign({ url: '/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}' }, options));
1866
+ return (options?.client ?? exports.client).delete({
1867
+ url: '/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}',
1868
+ ...options,
1869
+ });
1323
1870
  };
1324
1871
  exports.deleteSubmodelElementByPathSubmodelRepo = deleteSubmodelElementByPathSubmodelRepo;
1325
1872
  /**
1326
1873
  * Returns a specific submodel element from the Submodel at a specified path
1327
1874
  */
1328
1875
  const getSubmodelElementByPathSubmodelRepo = (options) => {
1329
- var _a;
1330
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}' }, options));
1876
+ return (options?.client ?? exports.client).get({
1877
+ url: '/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}',
1878
+ ...options,
1879
+ });
1331
1880
  };
1332
1881
  exports.getSubmodelElementByPathSubmodelRepo = getSubmodelElementByPathSubmodelRepo;
1333
1882
  /**
1334
1883
  * Updates an existing SubmodelElement
1335
1884
  */
1336
1885
  const patchSubmodelElementByPathSubmodelRepo = (options) => {
1337
- var _a;
1338
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).patch(Object.assign(Object.assign({ url: '/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
1886
+ return (options?.client ?? exports.client).patch({
1887
+ url: '/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}',
1888
+ ...options,
1889
+ headers: {
1890
+ 'Content-Type': 'application/json',
1891
+ ...options?.headers,
1892
+ },
1893
+ });
1339
1894
  };
1340
1895
  exports.patchSubmodelElementByPathSubmodelRepo = patchSubmodelElementByPathSubmodelRepo;
1341
1896
  /**
1342
1897
  * Creates a new submodel element at a specified path within submodel elements hierarchy
1343
1898
  */
1344
1899
  const postSubmodelElementByPathSubmodelRepo = (options) => {
1345
- var _a;
1346
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).post(Object.assign(Object.assign({ url: '/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
1900
+ return (options?.client ?? exports.client).post({
1901
+ url: '/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}',
1902
+ ...options,
1903
+ headers: {
1904
+ 'Content-Type': 'application/json',
1905
+ ...options?.headers,
1906
+ },
1907
+ });
1347
1908
  };
1348
1909
  exports.postSubmodelElementByPathSubmodelRepo = postSubmodelElementByPathSubmodelRepo;
1349
1910
  /**
1350
1911
  * Updates an existing submodel element at a specified path within submodel elements hierarchy
1351
1912
  */
1352
1913
  const putSubmodelElementByPathSubmodelRepo = (options) => {
1353
- var _a;
1354
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).put(Object.assign(Object.assign({ url: '/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
1914
+ return (options?.client ?? exports.client).put({
1915
+ url: '/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}',
1916
+ ...options,
1917
+ headers: {
1918
+ 'Content-Type': 'application/json',
1919
+ ...options?.headers,
1920
+ },
1921
+ });
1355
1922
  };
1356
1923
  exports.putSubmodelElementByPathSubmodelRepo = putSubmodelElementByPathSubmodelRepo;
1357
1924
  /**
1358
1925
  * Returns the matadata attributes of a specific submodel element from the Submodel at a specified path
1359
1926
  */
1360
1927
  const getSubmodelElementByPathMetadataSubmodelRepo = (options) => {
1361
- var _a;
1362
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/$metadata' }, options));
1928
+ return (options?.client ?? exports.client).get({
1929
+ url: '/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/$metadata',
1930
+ ...options,
1931
+ });
1363
1932
  };
1364
1933
  exports.getSubmodelElementByPathMetadataSubmodelRepo = getSubmodelElementByPathMetadataSubmodelRepo;
1365
1934
  /**
1366
1935
  * Updates the metadata attributes an existing SubmodelElement
1367
1936
  */
1368
1937
  const patchSubmodelElementByPathMetadataSubmodelRepo = (options) => {
1369
- var _a;
1370
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).patch(Object.assign(Object.assign({ url: '/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/$metadata' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
1938
+ return (options?.client ?? exports.client).patch({
1939
+ url: '/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/$metadata',
1940
+ ...options,
1941
+ headers: {
1942
+ 'Content-Type': 'application/json',
1943
+ ...options?.headers,
1944
+ },
1945
+ });
1371
1946
  };
1372
1947
  exports.patchSubmodelElementByPathMetadataSubmodelRepo = patchSubmodelElementByPathMetadataSubmodelRepo;
1373
1948
  /**
1374
1949
  * Returns a specific submodel element from the Submodel at a specified path in the ValueOnly representation
1375
1950
  */
1376
1951
  const getSubmodelElementByPathValueOnlySubmodelRepo = (options) => {
1377
- var _a;
1378
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/$value' }, options));
1952
+ return (options?.client ?? exports.client).get({
1953
+ url: '/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/$value',
1954
+ ...options,
1955
+ });
1379
1956
  };
1380
1957
  exports.getSubmodelElementByPathValueOnlySubmodelRepo = getSubmodelElementByPathValueOnlySubmodelRepo;
1381
1958
  /**
@@ -1401,344 +1978,497 @@ function requireSdk_gen () {
1401
1978
  * Returns the Referene of a specific submodel element from the Submodel at a specified path
1402
1979
  */
1403
1980
  const getSubmodelElementByPathReferenceSubmodelRepo = (options) => {
1404
- var _a;
1405
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/$reference' }, options));
1981
+ return (options?.client ?? exports.client).get({
1982
+ url: '/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/$reference',
1983
+ ...options,
1984
+ });
1406
1985
  };
1407
1986
  exports.getSubmodelElementByPathReferenceSubmodelRepo = getSubmodelElementByPathReferenceSubmodelRepo;
1408
1987
  /**
1409
1988
  * Returns a specific submodel element from the Submodel at a specified path in the Path notation
1410
1989
  */
1411
1990
  const getSubmodelElementByPathPathSubmodelRepo = (options) => {
1412
- var _a;
1413
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/$path' }, options));
1991
+ return (options?.client ?? exports.client).get({
1992
+ url: '/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/$path',
1993
+ ...options,
1994
+ });
1414
1995
  };
1415
1996
  exports.getSubmodelElementByPathPathSubmodelRepo = getSubmodelElementByPathPathSubmodelRepo;
1416
1997
  /**
1417
1998
  * Deletes file content of an existing submodel element at a specified path within submodel elements hierarchy
1418
1999
  */
1419
2000
  const deleteFileByPathSubmodelRepo = (options) => {
1420
- var _a;
1421
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).delete(Object.assign({ url: '/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/attachment' }, options));
2001
+ return (options?.client ?? exports.client).delete({
2002
+ url: '/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/attachment',
2003
+ ...options,
2004
+ });
1422
2005
  };
1423
2006
  exports.deleteFileByPathSubmodelRepo = deleteFileByPathSubmodelRepo;
1424
2007
  /**
1425
2008
  * Downloads file content from a specific submodel element from the Submodel at a specified path
1426
2009
  */
1427
2010
  const getFileByPathSubmodelRepo = (options) => {
1428
- var _a;
1429
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/attachment' }, options));
2011
+ return (options?.client ?? exports.client).get({
2012
+ url: '/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/attachment',
2013
+ ...options,
2014
+ });
1430
2015
  };
1431
2016
  exports.getFileByPathSubmodelRepo = getFileByPathSubmodelRepo;
1432
2017
  /**
1433
2018
  * Uploads file content to an existing submodel element at a specified path within submodel elements hierarchy
1434
2019
  */
1435
2020
  const putFileByPathSubmodelRepo = (options) => {
1436
- var _a;
1437
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).put(Object.assign(Object.assign(Object.assign(Object.assign({}, client_fetch_1.formDataBodySerializer), { url: '/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/attachment' }), options), { headers: Object.assign({ 'Content-Type': null }, options === null || options === void 0 ? void 0 : options.headers) }));
2021
+ return (options?.client ?? exports.client).put({
2022
+ ...client_fetch_1.formDataBodySerializer,
2023
+ url: '/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/attachment',
2024
+ ...options,
2025
+ headers: {
2026
+ 'Content-Type': null,
2027
+ ...options?.headers,
2028
+ },
2029
+ });
1438
2030
  };
1439
2031
  exports.putFileByPathSubmodelRepo = putFileByPathSubmodelRepo;
1440
2032
  /**
1441
2033
  * Synchronously invokes an Operation at a specified path
1442
2034
  */
1443
2035
  const invokeOperationSubmodelRepo = (options) => {
1444
- var _a;
1445
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).post(Object.assign(Object.assign({ url: '/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/invoke' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
2036
+ return (options?.client ?? exports.client).post({
2037
+ url: '/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/invoke',
2038
+ ...options,
2039
+ headers: {
2040
+ 'Content-Type': 'application/json',
2041
+ ...options?.headers,
2042
+ },
2043
+ });
1446
2044
  };
1447
2045
  exports.invokeOperationSubmodelRepo = invokeOperationSubmodelRepo;
1448
2046
  /**
1449
2047
  * Synchronously invokes an Operation at a specified path
1450
2048
  */
1451
2049
  const invokeOperationValueOnlySubmodelRepo = (options) => {
1452
- var _a;
1453
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).post(Object.assign(Object.assign({ url: '/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/invoke/$value' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
2050
+ return (options?.client ?? exports.client).post({
2051
+ url: '/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/invoke/$value',
2052
+ ...options,
2053
+ headers: {
2054
+ 'Content-Type': 'application/json',
2055
+ ...options?.headers,
2056
+ },
2057
+ });
1454
2058
  };
1455
2059
  exports.invokeOperationValueOnlySubmodelRepo = invokeOperationValueOnlySubmodelRepo;
1456
2060
  /**
1457
2061
  * Asynchronously invokes an Operation at a specified path
1458
2062
  */
1459
2063
  const invokeOperationAsyncSubmodelRepo = (options) => {
1460
- var _a;
1461
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).post(Object.assign(Object.assign({ url: '/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/invoke-async' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
2064
+ return (options?.client ?? exports.client).post({
2065
+ url: '/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/invoke-async',
2066
+ ...options,
2067
+ headers: {
2068
+ 'Content-Type': 'application/json',
2069
+ ...options?.headers,
2070
+ },
2071
+ });
1462
2072
  };
1463
2073
  exports.invokeOperationAsyncSubmodelRepo = invokeOperationAsyncSubmodelRepo;
1464
2074
  /**
1465
2075
  * Asynchronously invokes an Operation at a specified path
1466
2076
  */
1467
2077
  const invokeOperationAsyncValueOnlySubmodelRepo = (options) => {
1468
- var _a;
1469
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).post(Object.assign(Object.assign({ url: '/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/invoke-async/$value' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
2078
+ return (options?.client ?? exports.client).post({
2079
+ url: '/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/invoke-async/$value',
2080
+ ...options,
2081
+ headers: {
2082
+ 'Content-Type': 'application/json',
2083
+ ...options?.headers,
2084
+ },
2085
+ });
1470
2086
  };
1471
2087
  exports.invokeOperationAsyncValueOnlySubmodelRepo = invokeOperationAsyncValueOnlySubmodelRepo;
1472
2088
  /**
1473
2089
  * Returns the Operation status of an asynchronous invoked Operation
1474
2090
  */
1475
2091
  const getOperationAsyncStatusSubmodelRepo = (options) => {
1476
- var _a;
1477
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/operation-status/{handleId}' }, options));
2092
+ return (options?.client ?? exports.client).get({
2093
+ url: '/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/operation-status/{handleId}',
2094
+ ...options,
2095
+ });
1478
2096
  };
1479
2097
  exports.getOperationAsyncStatusSubmodelRepo = getOperationAsyncStatusSubmodelRepo;
1480
2098
  /**
1481
2099
  * Returns the Operation result of an asynchronous invoked Operation
1482
2100
  */
1483
2101
  const getOperationAsyncResultSubmodelRepo = (options) => {
1484
- var _a;
1485
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/operation-results/{handleId}' }, options));
2102
+ return (options?.client ?? exports.client).get({
2103
+ url: '/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/operation-results/{handleId}',
2104
+ ...options,
2105
+ });
1486
2106
  };
1487
2107
  exports.getOperationAsyncResultSubmodelRepo = getOperationAsyncResultSubmodelRepo;
1488
2108
  /**
1489
2109
  * Returns the Operation result of an asynchronous invoked Operation
1490
2110
  */
1491
2111
  const getOperationAsyncResultValueOnlySubmodelRepo = (options) => {
1492
- var _a;
1493
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/operation-results/{handleId}/$value' }, options));
2112
+ return (options?.client ?? exports.client).get({
2113
+ url: '/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/operation-results/{handleId}/$value',
2114
+ ...options,
2115
+ });
1494
2116
  };
1495
2117
  exports.getOperationAsyncResultValueOnlySubmodelRepo = getOperationAsyncResultValueOnlySubmodelRepo;
1496
2118
  /**
1497
2119
  * Returns all Concept Descriptions
1498
2120
  */
1499
2121
  const getAllConceptDescriptions = (options) => {
1500
- var _a;
1501
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/concept-descriptions' }, options));
2122
+ return (options?.client ?? exports.client).get({
2123
+ url: '/concept-descriptions',
2124
+ ...options,
2125
+ });
1502
2126
  };
1503
2127
  exports.getAllConceptDescriptions = getAllConceptDescriptions;
1504
2128
  /**
1505
2129
  * Creates a new Concept Description
1506
2130
  */
1507
2131
  const postConceptDescription = (options) => {
1508
- var _a;
1509
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).post(Object.assign(Object.assign({ url: '/concept-descriptions' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
2132
+ return (options?.client ?? exports.client).post({
2133
+ url: '/concept-descriptions',
2134
+ ...options,
2135
+ headers: {
2136
+ 'Content-Type': 'application/json',
2137
+ ...options?.headers,
2138
+ },
2139
+ });
1510
2140
  };
1511
2141
  exports.postConceptDescription = postConceptDescription;
1512
2142
  /**
1513
2143
  * Deletes a Concept Description
1514
2144
  */
1515
2145
  const deleteConceptDescriptionById = (options) => {
1516
- var _a;
1517
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).delete(Object.assign({ url: '/concept-descriptions/{cdIdentifier}' }, options));
2146
+ return (options?.client ?? exports.client).delete({
2147
+ url: '/concept-descriptions/{cdIdentifier}',
2148
+ ...options,
2149
+ });
1518
2150
  };
1519
2151
  exports.deleteConceptDescriptionById = deleteConceptDescriptionById;
1520
2152
  /**
1521
2153
  * Returns a specific Concept Description
1522
2154
  */
1523
2155
  const getConceptDescriptionById = (options) => {
1524
- var _a;
1525
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/concept-descriptions/{cdIdentifier}' }, options));
2156
+ return (options?.client ?? exports.client).get({
2157
+ url: '/concept-descriptions/{cdIdentifier}',
2158
+ ...options,
2159
+ });
1526
2160
  };
1527
2161
  exports.getConceptDescriptionById = getConceptDescriptionById;
1528
2162
  /**
1529
2163
  * Updates an existing Concept Description
1530
2164
  */
1531
2165
  const putConceptDescriptionById = (options) => {
1532
- var _a;
1533
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).put(Object.assign(Object.assign({ url: '/concept-descriptions/{cdIdentifier}' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
2166
+ return (options?.client ?? exports.client).put({
2167
+ url: '/concept-descriptions/{cdIdentifier}',
2168
+ ...options,
2169
+ headers: {
2170
+ 'Content-Type': 'application/json',
2171
+ ...options?.headers,
2172
+ },
2173
+ });
1534
2174
  };
1535
2175
  exports.putConceptDescriptionById = putConceptDescriptionById;
1536
2176
  /**
1537
2177
  * Returns all Asset Administration Shell Descriptors
1538
2178
  */
1539
2179
  const getAllAssetAdministrationShellDescriptors = (options) => {
1540
- var _a;
1541
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/shell-descriptors' }, options));
2180
+ return (options?.client ?? exports.client).get({
2181
+ url: '/shell-descriptors',
2182
+ ...options,
2183
+ });
1542
2184
  };
1543
2185
  exports.getAllAssetAdministrationShellDescriptors = getAllAssetAdministrationShellDescriptors;
1544
2186
  /**
1545
2187
  * Creates a new Asset Administration Shell Descriptor, i.e. registers an AAS
1546
2188
  */
1547
2189
  const postAssetAdministrationShellDescriptor = (options) => {
1548
- var _a;
1549
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).post(Object.assign(Object.assign({ url: '/shell-descriptors' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
2190
+ return (options?.client ?? exports.client).post({
2191
+ url: '/shell-descriptors',
2192
+ ...options,
2193
+ headers: {
2194
+ 'Content-Type': 'application/json',
2195
+ ...options?.headers,
2196
+ },
2197
+ });
1550
2198
  };
1551
2199
  exports.postAssetAdministrationShellDescriptor = postAssetAdministrationShellDescriptor;
1552
2200
  /**
1553
2201
  * Deletes an Asset Administration Shell Descriptor, i.e. de-registers an AAS
1554
2202
  */
1555
2203
  const deleteAssetAdministrationShellDescriptorById = (options) => {
1556
- var _a;
1557
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).delete(Object.assign({ url: '/shell-descriptors/{aasIdentifier}' }, options));
2204
+ return (options?.client ?? exports.client).delete({
2205
+ url: '/shell-descriptors/{aasIdentifier}',
2206
+ ...options,
2207
+ });
1558
2208
  };
1559
2209
  exports.deleteAssetAdministrationShellDescriptorById = deleteAssetAdministrationShellDescriptorById;
1560
2210
  /**
1561
2211
  * Returns a specific Asset Administration Shell Descriptor
1562
2212
  */
1563
2213
  const getAssetAdministrationShellDescriptorById = (options) => {
1564
- var _a;
1565
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/shell-descriptors/{aasIdentifier}' }, options));
2214
+ return (options?.client ?? exports.client).get({
2215
+ url: '/shell-descriptors/{aasIdentifier}',
2216
+ ...options,
2217
+ });
1566
2218
  };
1567
2219
  exports.getAssetAdministrationShellDescriptorById = getAssetAdministrationShellDescriptorById;
1568
2220
  /**
1569
2221
  * Updates an existing Asset Administration Shell Descriptor
1570
2222
  */
1571
2223
  const putAssetAdministrationShellDescriptorById = (options) => {
1572
- var _a;
1573
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).put(Object.assign(Object.assign({ url: '/shell-descriptors/{aasIdentifier}' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
2224
+ return (options?.client ?? exports.client).put({
2225
+ url: '/shell-descriptors/{aasIdentifier}',
2226
+ ...options,
2227
+ headers: {
2228
+ 'Content-Type': 'application/json',
2229
+ ...options?.headers,
2230
+ },
2231
+ });
1574
2232
  };
1575
2233
  exports.putAssetAdministrationShellDescriptorById = putAssetAdministrationShellDescriptorById;
1576
2234
  /**
1577
2235
  * Returns all Submodel Descriptors
1578
2236
  */
1579
2237
  const getAllSubmodelDescriptorsThroughSuperpath = (options) => {
1580
- var _a;
1581
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/shell-descriptors/{aasIdentifier}/submodel-descriptors' }, options));
2238
+ return (options?.client ?? exports.client).get({
2239
+ url: '/shell-descriptors/{aasIdentifier}/submodel-descriptors',
2240
+ ...options,
2241
+ });
1582
2242
  };
1583
2243
  exports.getAllSubmodelDescriptorsThroughSuperpath = getAllSubmodelDescriptorsThroughSuperpath;
1584
2244
  /**
1585
2245
  * Creates a new Submodel Descriptor, i.e. registers a submodel
1586
2246
  */
1587
2247
  const postSubmodelDescriptorThroughSuperpath = (options) => {
1588
- var _a;
1589
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).post(Object.assign(Object.assign({ url: '/shell-descriptors/{aasIdentifier}/submodel-descriptors' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
2248
+ return (options?.client ?? exports.client).post({
2249
+ url: '/shell-descriptors/{aasIdentifier}/submodel-descriptors',
2250
+ ...options,
2251
+ headers: {
2252
+ 'Content-Type': 'application/json',
2253
+ ...options?.headers,
2254
+ },
2255
+ });
1590
2256
  };
1591
2257
  exports.postSubmodelDescriptorThroughSuperpath = postSubmodelDescriptorThroughSuperpath;
1592
2258
  /**
1593
2259
  * Deletes a Submodel Descriptor, i.e. de-registers a submodel
1594
2260
  */
1595
2261
  const deleteSubmodelDescriptorByIdThroughSuperpath = (options) => {
1596
- var _a;
1597
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).delete(Object.assign({ url: '/shell-descriptors/{aasIdentifier}/submodel-descriptors/{submodelIdentifier}' }, options));
2262
+ return (options?.client ?? exports.client).delete({
2263
+ url: '/shell-descriptors/{aasIdentifier}/submodel-descriptors/{submodelIdentifier}',
2264
+ ...options,
2265
+ });
1598
2266
  };
1599
2267
  exports.deleteSubmodelDescriptorByIdThroughSuperpath = deleteSubmodelDescriptorByIdThroughSuperpath;
1600
2268
  /**
1601
2269
  * Returns a specific Submodel Descriptor
1602
2270
  */
1603
2271
  const getSubmodelDescriptorByIdThroughSuperpath = (options) => {
1604
- var _a;
1605
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/shell-descriptors/{aasIdentifier}/submodel-descriptors/{submodelIdentifier}' }, options));
2272
+ return (options?.client ?? exports.client).get({
2273
+ url: '/shell-descriptors/{aasIdentifier}/submodel-descriptors/{submodelIdentifier}',
2274
+ ...options,
2275
+ });
1606
2276
  };
1607
2277
  exports.getSubmodelDescriptorByIdThroughSuperpath = getSubmodelDescriptorByIdThroughSuperpath;
1608
2278
  /**
1609
2279
  * Updates an existing Submodel Descriptor
1610
2280
  */
1611
2281
  const putSubmodelDescriptorByIdThroughSuperpath = (options) => {
1612
- var _a;
1613
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).put(Object.assign(Object.assign({ url: '/shell-descriptors/{aasIdentifier}/submodel-descriptors/{submodelIdentifier}' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
2282
+ return (options?.client ?? exports.client).put({
2283
+ url: '/shell-descriptors/{aasIdentifier}/submodel-descriptors/{submodelIdentifier}',
2284
+ ...options,
2285
+ headers: {
2286
+ 'Content-Type': 'application/json',
2287
+ ...options?.headers,
2288
+ },
2289
+ });
1614
2290
  };
1615
2291
  exports.putSubmodelDescriptorByIdThroughSuperpath = putSubmodelDescriptorByIdThroughSuperpath;
1616
2292
  /**
1617
2293
  * Returns all Submodel Descriptors
1618
2294
  */
1619
2295
  const getAllSubmodelDescriptors = (options) => {
1620
- var _a;
1621
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/submodel-descriptors' }, options));
2296
+ return (options?.client ?? exports.client).get({
2297
+ url: '/submodel-descriptors',
2298
+ ...options,
2299
+ });
1622
2300
  };
1623
2301
  exports.getAllSubmodelDescriptors = getAllSubmodelDescriptors;
1624
2302
  /**
1625
2303
  * Creates a new Submodel Descriptor, i.e. registers a submodel
1626
2304
  */
1627
2305
  const postSubmodelDescriptor = (options) => {
1628
- var _a;
1629
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).post(Object.assign(Object.assign({ url: '/submodel-descriptors' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
2306
+ return (options?.client ?? exports.client).post({
2307
+ url: '/submodel-descriptors',
2308
+ ...options,
2309
+ headers: {
2310
+ 'Content-Type': 'application/json',
2311
+ ...options?.headers,
2312
+ },
2313
+ });
1630
2314
  };
1631
2315
  exports.postSubmodelDescriptor = postSubmodelDescriptor;
1632
2316
  /**
1633
2317
  * Deletes a Submodel Descriptor, i.e. de-registers a submodel
1634
2318
  */
1635
2319
  const deleteSubmodelDescriptorById = (options) => {
1636
- var _a;
1637
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).delete(Object.assign({ url: '/submodel-descriptors/{submodelIdentifier}' }, options));
2320
+ return (options?.client ?? exports.client).delete({
2321
+ url: '/submodel-descriptors/{submodelIdentifier}',
2322
+ ...options,
2323
+ });
1638
2324
  };
1639
2325
  exports.deleteSubmodelDescriptorById = deleteSubmodelDescriptorById;
1640
2326
  /**
1641
2327
  * Returns a specific Submodel Descriptor
1642
2328
  */
1643
2329
  const getSubmodelDescriptorById = (options) => {
1644
- var _a;
1645
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/submodel-descriptors/{submodelIdentifier}' }, options));
2330
+ return (options?.client ?? exports.client).get({
2331
+ url: '/submodel-descriptors/{submodelIdentifier}',
2332
+ ...options,
2333
+ });
1646
2334
  };
1647
2335
  exports.getSubmodelDescriptorById = getSubmodelDescriptorById;
1648
2336
  /**
1649
2337
  * Updates an existing Submodel Descriptor
1650
2338
  */
1651
2339
  const putSubmodelDescriptorById = (options) => {
1652
- var _a;
1653
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).put(Object.assign(Object.assign({ url: '/submodel-descriptors/{submodelIdentifier}' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
2340
+ return (options?.client ?? exports.client).put({
2341
+ url: '/submodel-descriptors/{submodelIdentifier}',
2342
+ ...options,
2343
+ headers: {
2344
+ 'Content-Type': 'application/json',
2345
+ ...options?.headers,
2346
+ },
2347
+ });
1654
2348
  };
1655
2349
  exports.putSubmodelDescriptorById = putSubmodelDescriptorById;
1656
2350
  /**
1657
2351
  * Returns a list of Asset Administration Shell ids linked to specific Asset identifiers
1658
2352
  */
1659
2353
  const getAllAssetAdministrationShellIdsByAssetLink = (options) => {
1660
- var _a;
1661
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/lookup/shells' }, options));
2354
+ return (options?.client ?? exports.client).get({
2355
+ url: '/lookup/shells',
2356
+ ...options,
2357
+ });
1662
2358
  };
1663
2359
  exports.getAllAssetAdministrationShellIdsByAssetLink = getAllAssetAdministrationShellIdsByAssetLink;
1664
2360
  /**
1665
2361
  * Deletes all specific Asset identifiers linked to an Asset Administration Shell to edit discoverable content
1666
2362
  */
1667
2363
  const deleteAllAssetLinksById = (options) => {
1668
- var _a;
1669
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).delete(Object.assign({ url: '/lookup/shells/{aasIdentifier}' }, options));
2364
+ return (options?.client ?? exports.client).delete({
2365
+ url: '/lookup/shells/{aasIdentifier}',
2366
+ ...options,
2367
+ });
1670
2368
  };
1671
2369
  exports.deleteAllAssetLinksById = deleteAllAssetLinksById;
1672
2370
  /**
1673
2371
  * Returns a list of specific Asset identifiers based on an Asset Administration Shell id to edit discoverable content
1674
2372
  */
1675
2373
  const getAllAssetLinksById = (options) => {
1676
- var _a;
1677
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/lookup/shells/{aasIdentifier}' }, options));
2374
+ return (options?.client ?? exports.client).get({
2375
+ url: '/lookup/shells/{aasIdentifier}',
2376
+ ...options,
2377
+ });
1678
2378
  };
1679
2379
  exports.getAllAssetLinksById = getAllAssetLinksById;
1680
2380
  /**
1681
2381
  * Creates specific Asset identifiers linked to an Asset Administration Shell to edit discoverable content
1682
2382
  */
1683
2383
  const postAllAssetLinksById = (options) => {
1684
- var _a;
1685
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).post(Object.assign(Object.assign({ url: '/lookup/shells/{aasIdentifier}' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
2384
+ return (options?.client ?? exports.client).post({
2385
+ url: '/lookup/shells/{aasIdentifier}',
2386
+ ...options,
2387
+ headers: {
2388
+ 'Content-Type': 'application/json',
2389
+ ...options?.headers,
2390
+ },
2391
+ });
1686
2392
  };
1687
2393
  exports.postAllAssetLinksById = postAllAssetLinksById;
1688
2394
  /**
1689
2395
  * Returns a list of available AASX packages at the server
1690
2396
  */
1691
2397
  const getAllAasxPackageIds = (options) => {
1692
- var _a;
1693
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/packages' }, options));
2398
+ return (options?.client ?? exports.client).get({
2399
+ url: '/packages',
2400
+ ...options,
2401
+ });
1694
2402
  };
1695
2403
  exports.getAllAasxPackageIds = getAllAasxPackageIds;
1696
2404
  /**
1697
2405
  * Stores the AASX package at the server
1698
2406
  */
1699
2407
  const postAasxPackage = (options) => {
1700
- var _a;
1701
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).post(Object.assign(Object.assign(Object.assign(Object.assign({}, client_fetch_1.formDataBodySerializer), { url: '/packages' }), options), { headers: Object.assign({ 'Content-Type': null }, options === null || options === void 0 ? void 0 : options.headers) }));
2408
+ return (options?.client ?? exports.client).post({
2409
+ ...client_fetch_1.formDataBodySerializer,
2410
+ url: '/packages',
2411
+ ...options,
2412
+ headers: {
2413
+ 'Content-Type': null,
2414
+ ...options?.headers,
2415
+ },
2416
+ });
1702
2417
  };
1703
2418
  exports.postAasxPackage = postAasxPackage;
1704
2419
  /**
1705
2420
  * Deletes a specific AASX package from the server
1706
2421
  */
1707
2422
  const deleteAasxByPackageId = (options) => {
1708
- var _a;
1709
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).delete(Object.assign({ url: '/packages/{packageId}' }, options));
2423
+ return (options?.client ?? exports.client).delete({
2424
+ url: '/packages/{packageId}',
2425
+ ...options,
2426
+ });
1710
2427
  };
1711
2428
  exports.deleteAasxByPackageId = deleteAasxByPackageId;
1712
2429
  /**
1713
2430
  * Returns a specific AASX package from the server
1714
2431
  */
1715
2432
  const getAasxByPackageId = (options) => {
1716
- var _a;
1717
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/packages/{packageId}' }, options));
2433
+ return (options?.client ?? exports.client).get({
2434
+ url: '/packages/{packageId}',
2435
+ ...options,
2436
+ });
1718
2437
  };
1719
2438
  exports.getAasxByPackageId = getAasxByPackageId;
1720
2439
  /**
1721
2440
  * Updates the AASX package at the server
1722
2441
  */
1723
2442
  const putAasxByPackageId = (options) => {
1724
- var _a;
1725
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).put(Object.assign(Object.assign(Object.assign(Object.assign({}, client_fetch_1.formDataBodySerializer), { url: '/packages/{packageId}' }), options), { headers: Object.assign({ 'Content-Type': null }, options === null || options === void 0 ? void 0 : options.headers) }));
2443
+ return (options?.client ?? exports.client).put({
2444
+ ...client_fetch_1.formDataBodySerializer,
2445
+ url: '/packages/{packageId}',
2446
+ ...options,
2447
+ headers: {
2448
+ 'Content-Type': null,
2449
+ ...options?.headers,
2450
+ },
2451
+ });
1726
2452
  };
1727
2453
  exports.putAasxByPackageId = putAasxByPackageId;
1728
2454
  /**
1729
2455
  * Returns an appropriate serialization based on the specified format (see SerializationFormat)
1730
2456
  */
1731
2457
  const generateSerializationByIds = (options) => {
1732
- var _a;
1733
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/serialization' }, options));
2458
+ return (options?.client ?? exports.client).get({
2459
+ url: '/serialization',
2460
+ ...options,
2461
+ });
1734
2462
  };
1735
2463
  exports.generateSerializationByIds = generateSerializationByIds;
1736
2464
  /**
1737
2465
  * Returns the self-describing information of a network resource (ServiceDescription)
1738
2466
  */
1739
2467
  const getDescription = (options) => {
1740
- var _a;
1741
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(Object.assign({ url: '/description' }, options));
2468
+ return (options?.client ?? exports.client).get({
2469
+ url: '/description',
2470
+ ...options,
2471
+ });
1742
2472
  };
1743
2473
  exports.getDescription = getDescription;
1744
2474
  } (sdk_gen));
@@ -6067,15 +6797,6 @@ function requireAasRepositoryClient () {
6067
6797
  return result;
6068
6798
  };
6069
6799
  })();
6070
- var __awaiter = (AasRepositoryClient && AasRepositoryClient.__awaiter) || function (thisArg, _arguments, P, generator) {
6071
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
6072
- return new (P || (P = Promise))(function (resolve, reject) {
6073
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6074
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6075
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
6076
- step((generator = generator.apply(thisArg, _arguments || [])).next());
6077
- });
6078
- };
6079
6800
  Object.defineProperty(AasRepositoryClient, "__esModule", { value: true });
6080
6801
  AasRepositoryClient.AasRepositoryClient = void 0;
6081
6802
  const AasRepository = __importStar(requireGenerated());
@@ -6095,35 +6816,32 @@ function requireAasRepositoryClient () {
6095
6816
  * @param cursor A server-generated identifier retrieved from pagingMetadata that specifies from which position the result listing should continue
6096
6817
  * @returns {Promise<GetAllAssetAdministrationShellsResponse>} Requested Asset Administration Shells
6097
6818
  */
6098
- getAllAssetAdministrationShells(baseURL, headers, assetIds, idShort, limit, cursor) {
6099
- return __awaiter(this, void 0, void 0, function* () {
6100
- var _a;
6101
- try {
6102
- const client = (0, createAasRepoClient_1.createCustomClient)(baseURL, headers);
6103
- const { data, error } = yield AasRepository.getAllAssetAdministrationShells({
6104
- client,
6105
- query: {
6106
- assetIds,
6107
- idShort,
6108
- limit,
6109
- cursor,
6110
- },
6111
- });
6112
- if (error) {
6113
- console.error('Error from server:', error);
6114
- throw new Error(JSON.stringify(error.messages));
6115
- }
6116
- const shells = ((_a = data.result) !== null && _a !== void 0 ? _a : []).map(convertAasTypes_1.convertApiAasToCoreAas);
6117
- return {
6118
- pagedResult: data.paging_metadata,
6119
- result: shells,
6120
- };
6121
- }
6122
- catch (error) {
6123
- console.error('Error fetching Asset Administration Shells:', error);
6124
- throw error;
6819
+ async getAllAssetAdministrationShells(baseURL, headers, assetIds, idShort, limit, cursor) {
6820
+ try {
6821
+ const client = (0, createAasRepoClient_1.createCustomClient)(baseURL, headers);
6822
+ const { data, error } = await AasRepository.getAllAssetAdministrationShells({
6823
+ client,
6824
+ query: {
6825
+ assetIds,
6826
+ idShort,
6827
+ limit,
6828
+ cursor,
6829
+ },
6830
+ });
6831
+ if (error) {
6832
+ console.error('Error from server:', error);
6833
+ throw new Error(JSON.stringify(error.messages));
6125
6834
  }
6126
- });
6835
+ const shells = (data.result ?? []).map(convertAasTypes_1.convertApiAasToCoreAas);
6836
+ return {
6837
+ pagedResult: data.paging_metadata,
6838
+ result: shells,
6839
+ };
6840
+ }
6841
+ catch (error) {
6842
+ console.error('Error fetching Asset Administration Shells:', error);
6843
+ throw error;
6844
+ }
6127
6845
  }
6128
6846
  /**
6129
6847
  * Creates a new Asset Administration Shell
@@ -6135,25 +6853,23 @@ function requireAasRepositoryClient () {
6135
6853
  * @param headers Request headers
6136
6854
  * @returns {Promise<AssetAdministrationShell>} Asset Administration Shell created successfully
6137
6855
  */
6138
- postAssetAdministrationShell(baseURL, assetAdministrationShell, headers) {
6139
- return __awaiter(this, void 0, void 0, function* () {
6140
- try {
6141
- const client = (0, createAasRepoClient_1.createCustomClient)(baseURL, headers);
6142
- const { data, error } = yield AasRepository.postAssetAdministrationShell({
6143
- client,
6144
- body: (0, convertAasTypes_1.convertCoreAasToApiAas)(assetAdministrationShell),
6145
- });
6146
- if (error) {
6147
- console.error('Error from server:', error);
6148
- throw new Error(JSON.stringify(error.messages));
6149
- }
6150
- return (0, convertAasTypes_1.convertApiAasToCoreAas)(data);
6856
+ async postAssetAdministrationShell(baseURL, assetAdministrationShell, headers) {
6857
+ try {
6858
+ const client = (0, createAasRepoClient_1.createCustomClient)(baseURL, headers);
6859
+ const { data, error } = await AasRepository.postAssetAdministrationShell({
6860
+ client,
6861
+ body: (0, convertAasTypes_1.convertCoreAasToApiAas)(assetAdministrationShell),
6862
+ });
6863
+ if (error) {
6864
+ console.error('Error from server:', error);
6865
+ throw new Error(JSON.stringify(error.messages));
6151
6866
  }
6152
- catch (error) {
6153
- console.error('Error creating Asset Administration Shell:', error);
6154
- throw error;
6155
- }
6156
- });
6867
+ return (0, convertAasTypes_1.convertApiAasToCoreAas)(data);
6868
+ }
6869
+ catch (error) {
6870
+ console.error('Error creating Asset Administration Shell:', error);
6871
+ throw error;
6872
+ }
6157
6873
  }
6158
6874
  /**
6159
6875
  * Deletes an Asset Administration Shell
@@ -6165,25 +6881,23 @@ function requireAasRepositoryClient () {
6165
6881
  * @param headers Request headers
6166
6882
  * @returns {Promise<void>} Asset Administration Shell deleted successfully
6167
6883
  */
6168
- deleteAssetAdministrationShellById(baseURL, aasIdentifier, headers) {
6169
- return __awaiter(this, void 0, void 0, function* () {
6170
- try {
6171
- const client = (0, createAasRepoClient_1.createCustomClient)(baseURL, headers);
6172
- const { error } = yield AasRepository.deleteAssetAdministrationShellById({
6173
- client,
6174
- path: { aasIdentifier },
6175
- });
6176
- if (error) {
6177
- console.error('Error from server:', error);
6178
- throw new Error(JSON.stringify(error.messages));
6179
- }
6180
- return;
6181
- }
6182
- catch (error) {
6183
- console.error('Error deleting Asset Administration Shell:', error);
6184
- throw error;
6884
+ async deleteAssetAdministrationShellById(baseURL, aasIdentifier, headers) {
6885
+ try {
6886
+ const client = (0, createAasRepoClient_1.createCustomClient)(baseURL, headers);
6887
+ const { error } = await AasRepository.deleteAssetAdministrationShellById({
6888
+ client,
6889
+ path: { aasIdentifier },
6890
+ });
6891
+ if (error) {
6892
+ console.error('Error from server:', error);
6893
+ throw new Error(JSON.stringify(error.messages));
6185
6894
  }
6186
- });
6895
+ return;
6896
+ }
6897
+ catch (error) {
6898
+ console.error('Error deleting Asset Administration Shell:', error);
6899
+ throw error;
6900
+ }
6187
6901
  }
6188
6902
  /**
6189
6903
  * Returns a specific Asset Administration Shell
@@ -6195,25 +6909,23 @@ function requireAasRepositoryClient () {
6195
6909
  * @param headers Request headers
6196
6910
  * @returns {Promise<AssetAdministrationShell>} Requested Asset Administration Shell
6197
6911
  */
6198
- getAssetAdministrationShellById(baseURL, aasIdentifier, headers) {
6199
- return __awaiter(this, void 0, void 0, function* () {
6200
- try {
6201
- const client = (0, createAasRepoClient_1.createCustomClient)(baseURL, headers);
6202
- const { data, error } = yield AasRepository.getAssetAdministrationShellById({
6203
- client,
6204
- path: { aasIdentifier },
6205
- });
6206
- if (error) {
6207
- console.error('Error from server:', error);
6208
- throw new Error(JSON.stringify(error.messages));
6209
- }
6210
- return (0, convertAasTypes_1.convertApiAasToCoreAas)(data);
6912
+ async getAssetAdministrationShellById(baseURL, aasIdentifier, headers) {
6913
+ try {
6914
+ const client = (0, createAasRepoClient_1.createCustomClient)(baseURL, headers);
6915
+ const { data, error } = await AasRepository.getAssetAdministrationShellById({
6916
+ client,
6917
+ path: { aasIdentifier },
6918
+ });
6919
+ if (error) {
6920
+ console.error('Error from server:', error);
6921
+ throw new Error(JSON.stringify(error.messages));
6211
6922
  }
6212
- catch (error) {
6213
- console.error('Error fetching Asset Administration Shell:', error);
6214
- throw error;
6215
- }
6216
- });
6923
+ return (0, convertAasTypes_1.convertApiAasToCoreAas)(data);
6924
+ }
6925
+ catch (error) {
6926
+ console.error('Error fetching Asset Administration Shell:', error);
6927
+ throw error;
6928
+ }
6217
6929
  }
6218
6930
  /**
6219
6931
  * Updates an existing Asset Administration Shell
@@ -6226,26 +6938,24 @@ function requireAasRepositoryClient () {
6226
6938
  * @param headers Request headers
6227
6939
  * @returns {Promise<void>} Asset Administration Shell updated successfully
6228
6940
  */
6229
- putAssetAdministrationShellById(baseURL, aasIdentifier, assetAdministrationShell, headers) {
6230
- return __awaiter(this, void 0, void 0, function* () {
6231
- try {
6232
- const client = (0, createAasRepoClient_1.createCustomClient)(baseURL, headers);
6233
- const { error } = yield AasRepository.putAssetAdministrationShellById({
6234
- client,
6235
- path: { aasIdentifier },
6236
- body: (0, convertAasTypes_1.convertCoreAasToApiAas)(assetAdministrationShell),
6237
- });
6238
- if (error) {
6239
- console.error('Error from server:', error);
6240
- throw new Error(JSON.stringify(error.messages));
6241
- }
6242
- return;
6243
- }
6244
- catch (error) {
6245
- console.error('Error updating Asset Administration Shell:', error);
6246
- throw error;
6941
+ async putAssetAdministrationShellById(baseURL, aasIdentifier, assetAdministrationShell, headers) {
6942
+ try {
6943
+ const client = (0, createAasRepoClient_1.createCustomClient)(baseURL, headers);
6944
+ const { error } = await AasRepository.putAssetAdministrationShellById({
6945
+ client,
6946
+ path: { aasIdentifier },
6947
+ body: (0, convertAasTypes_1.convertCoreAasToApiAas)(assetAdministrationShell),
6948
+ });
6949
+ if (error) {
6950
+ console.error('Error from server:', error);
6951
+ throw new Error(JSON.stringify(error.messages));
6247
6952
  }
6248
- });
6953
+ return;
6954
+ }
6955
+ catch (error) {
6956
+ console.error('Error updating Asset Administration Shell:', error);
6957
+ throw error;
6958
+ }
6249
6959
  }
6250
6960
  /**
6251
6961
  * Returns the Asset Information
@@ -6257,25 +6967,23 @@ function requireAasRepositoryClient () {
6257
6967
  * @param headers Request headers
6258
6968
  * @returns {Promise<AssetInformation>} Requested Asset Information
6259
6969
  */
6260
- getAssetInformation(baseURL, aasIdentifier, headers) {
6261
- return __awaiter(this, void 0, void 0, function* () {
6262
- try {
6263
- const client = (0, createAasRepoClient_1.createCustomClient)(baseURL, headers);
6264
- const { data, error } = yield AasRepository.getAssetInformationAasRepository({
6265
- client,
6266
- path: { aasIdentifier },
6267
- });
6268
- if (error) {
6269
- console.error('Error from server:', error);
6270
- throw new Error(JSON.stringify(error.messages));
6271
- }
6272
- return (0, convertAasTypes_1.convertApiAssetInformationToCoreAssetInformation)(data);
6970
+ async getAssetInformation(baseURL, aasIdentifier, headers) {
6971
+ try {
6972
+ const client = (0, createAasRepoClient_1.createCustomClient)(baseURL, headers);
6973
+ const { data, error } = await AasRepository.getAssetInformationAasRepository({
6974
+ client,
6975
+ path: { aasIdentifier },
6976
+ });
6977
+ if (error) {
6978
+ console.error('Error from server:', error);
6979
+ throw new Error(JSON.stringify(error.messages));
6273
6980
  }
6274
- catch (error) {
6275
- console.error('Error fetching Asset Information:', error);
6276
- throw error;
6277
- }
6278
- });
6981
+ return (0, convertAasTypes_1.convertApiAssetInformationToCoreAssetInformation)(data);
6982
+ }
6983
+ catch (error) {
6984
+ console.error('Error fetching Asset Information:', error);
6985
+ throw error;
6986
+ }
6279
6987
  }
6280
6988
  /**
6281
6989
  * Updates the Asset Information
@@ -6288,26 +6996,24 @@ function requireAasRepositoryClient () {
6288
6996
  * @param headers Request headers
6289
6997
  * @returns {Promise<void>} Asset Information updated successfully
6290
6998
  */
6291
- putAssetInformation(baseURL, aasIdentifier, assetInformation, headers) {
6292
- return __awaiter(this, void 0, void 0, function* () {
6293
- try {
6294
- const client = (0, createAasRepoClient_1.createCustomClient)(baseURL, headers);
6295
- const { error } = yield AasRepository.putAssetInformationAasRepository({
6296
- client,
6297
- path: { aasIdentifier },
6298
- body: (0, convertAasTypes_1.convertCoreAssetInformationToApiAssetInformation)(assetInformation),
6299
- });
6300
- if (error) {
6301
- console.error('Error from server:', error);
6302
- throw new Error(JSON.stringify(error.messages));
6303
- }
6304
- return;
6305
- }
6306
- catch (error) {
6307
- console.error('Error updating Asset Information:', error);
6308
- throw error;
6999
+ async putAssetInformation(baseURL, aasIdentifier, assetInformation, headers) {
7000
+ try {
7001
+ const client = (0, createAasRepoClient_1.createCustomClient)(baseURL, headers);
7002
+ const { error } = await AasRepository.putAssetInformationAasRepository({
7003
+ client,
7004
+ path: { aasIdentifier },
7005
+ body: (0, convertAasTypes_1.convertCoreAssetInformationToApiAssetInformation)(assetInformation),
7006
+ });
7007
+ if (error) {
7008
+ console.error('Error from server:', error);
7009
+ throw new Error(JSON.stringify(error.messages));
6309
7010
  }
6310
- });
7011
+ return;
7012
+ }
7013
+ catch (error) {
7014
+ console.error('Error updating Asset Information:', error);
7015
+ throw error;
7016
+ }
6311
7017
  }
6312
7018
  /**
6313
7019
  * Deletes the Thumbnail
@@ -6319,25 +7025,23 @@ function requireAasRepositoryClient () {
6319
7025
  * @param headers Request headers
6320
7026
  * @returns {Promise<void>} Thumbnail deletion successful
6321
7027
  */
6322
- deleteThumbnail(baseURL, aasIdentifier, headers) {
6323
- return __awaiter(this, void 0, void 0, function* () {
6324
- try {
6325
- const client = (0, createAasRepoClient_1.createCustomClient)(baseURL, headers);
6326
- const { error } = yield AasRepository.deleteThumbnailAasRepository({
6327
- client,
6328
- path: { aasIdentifier },
6329
- });
6330
- if (error) {
6331
- console.error('Error from server:', error);
6332
- throw new Error(JSON.stringify(error.messages));
6333
- }
6334
- return;
7028
+ async deleteThumbnail(baseURL, aasIdentifier, headers) {
7029
+ try {
7030
+ const client = (0, createAasRepoClient_1.createCustomClient)(baseURL, headers);
7031
+ const { error } = await AasRepository.deleteThumbnailAasRepository({
7032
+ client,
7033
+ path: { aasIdentifier },
7034
+ });
7035
+ if (error) {
7036
+ console.error('Error from server:', error);
7037
+ throw new Error(JSON.stringify(error.messages));
6335
7038
  }
6336
- catch (error) {
6337
- console.error('Error deleting Thumbnail:', error);
6338
- throw error;
6339
- }
6340
- });
7039
+ return;
7040
+ }
7041
+ catch (error) {
7042
+ console.error('Error deleting Thumbnail:', error);
7043
+ throw error;
7044
+ }
6341
7045
  }
6342
7046
  /**
6343
7047
  * Returns the Thumbnail
@@ -6349,25 +7053,23 @@ function requireAasRepositoryClient () {
6349
7053
  * @param headers Request headers
6350
7054
  * @returns {Promise<Blob | File>} The thumbnail of the Asset Information.
6351
7055
  */
6352
- getThumbnail(baseURL, aasIdentifier, headers) {
6353
- return __awaiter(this, void 0, void 0, function* () {
6354
- try {
6355
- const client = (0, createAasRepoClient_1.createCustomClient)(baseURL, headers);
6356
- const { data, error } = yield AasRepository.getThumbnailAasRepository({
6357
- client,
6358
- path: { aasIdentifier },
6359
- });
6360
- if (error) {
6361
- console.error('Error from server:', error);
6362
- throw new Error(JSON.stringify(error.messages));
6363
- }
6364
- return data;
6365
- }
6366
- catch (error) {
6367
- console.error('Error fetching Thumbnail:', error);
6368
- throw error;
7056
+ async getThumbnail(baseURL, aasIdentifier, headers) {
7057
+ try {
7058
+ const client = (0, createAasRepoClient_1.createCustomClient)(baseURL, headers);
7059
+ const { data, error } = await AasRepository.getThumbnailAasRepository({
7060
+ client,
7061
+ path: { aasIdentifier },
7062
+ });
7063
+ if (error) {
7064
+ console.error('Error from server:', error);
7065
+ throw new Error(JSON.stringify(error.messages));
6369
7066
  }
6370
- });
7067
+ return data;
7068
+ }
7069
+ catch (error) {
7070
+ console.error('Error fetching Thumbnail:', error);
7071
+ throw error;
7072
+ }
6371
7073
  }
6372
7074
  /**
6373
7075
  * Updates the Thumbnail
@@ -6380,26 +7082,24 @@ function requireAasRepositoryClient () {
6380
7082
  * @param headers Request headers
6381
7083
  * @returns {Promise<void>} Thumbnail updated successfully
6382
7084
  */
6383
- putThumbnail(baseURL, aasIdentifier, thumbnail, headers) {
6384
- return __awaiter(this, void 0, void 0, function* () {
6385
- try {
6386
- const client = (0, createAasRepoClient_1.createCustomClient)(baseURL, headers);
6387
- const { error } = yield AasRepository.putThumbnailAasRepository({
6388
- client,
6389
- path: { aasIdentifier },
6390
- body: thumbnail,
6391
- });
6392
- if (error) {
6393
- console.error('Error from server:', error);
6394
- throw new Error(JSON.stringify(error.messages));
6395
- }
6396
- return;
7085
+ async putThumbnail(baseURL, aasIdentifier, thumbnail, headers) {
7086
+ try {
7087
+ const client = (0, createAasRepoClient_1.createCustomClient)(baseURL, headers);
7088
+ const { error } = await AasRepository.putThumbnailAasRepository({
7089
+ client,
7090
+ path: { aasIdentifier },
7091
+ body: thumbnail,
7092
+ });
7093
+ if (error) {
7094
+ console.error('Error from server:', error);
7095
+ throw new Error(JSON.stringify(error.messages));
6397
7096
  }
6398
- catch (error) {
6399
- console.error('Error updating Thumbnail:', error);
6400
- throw error;
6401
- }
6402
- });
7097
+ return;
7098
+ }
7099
+ catch (error) {
7100
+ console.error('Error updating Thumbnail:', error);
7101
+ throw error;
7102
+ }
6403
7103
  }
6404
7104
  /**
6405
7105
  * Returns all submodel references
@@ -6413,34 +7113,31 @@ function requireAasRepositoryClient () {
6413
7113
  * @param cursor A server-generated identifier retrieved from pagingMetadata that specifies from which position the result listing should continue
6414
7114
  * @returns {Promise<getAllSubmodelReferencesResponse>} Requested submodel references
6415
7115
  */
6416
- getAllSubmodelReferences(baseURL, aasIdentifier, headers, limit, cursor) {
6417
- return __awaiter(this, void 0, void 0, function* () {
6418
- var _a;
6419
- try {
6420
- const client = (0, createAasRepoClient_1.createCustomClient)(baseURL, headers);
6421
- const { data, error } = yield AasRepository.getAllSubmodelReferencesAasRepository({
6422
- client,
6423
- path: { aasIdentifier },
6424
- query: {
6425
- limit,
6426
- cursor,
6427
- },
6428
- });
6429
- if (error) {
6430
- console.error('Error from server:', error);
6431
- throw new Error(JSON.stringify(error.messages));
6432
- }
6433
- const submodelReferences = ((_a = data.result) !== null && _a !== void 0 ? _a : []).map(convertAasTypes_1.convertApiReferenceToCoreReference);
6434
- return {
6435
- pagedResult: data.paging_metadata,
6436
- result: submodelReferences,
6437
- };
6438
- }
6439
- catch (error) {
6440
- console.error('Error fetching Submodel References:', error);
6441
- throw error;
7116
+ async getAllSubmodelReferences(baseURL, aasIdentifier, headers, limit, cursor) {
7117
+ try {
7118
+ const client = (0, createAasRepoClient_1.createCustomClient)(baseURL, headers);
7119
+ const { data, error } = await AasRepository.getAllSubmodelReferencesAasRepository({
7120
+ client,
7121
+ path: { aasIdentifier },
7122
+ query: {
7123
+ limit,
7124
+ cursor,
7125
+ },
7126
+ });
7127
+ if (error) {
7128
+ console.error('Error from server:', error);
7129
+ throw new Error(JSON.stringify(error.messages));
6442
7130
  }
6443
- });
7131
+ const submodelReferences = (data.result ?? []).map(convertAasTypes_1.convertApiReferenceToCoreReference);
7132
+ return {
7133
+ pagedResult: data.paging_metadata,
7134
+ result: submodelReferences,
7135
+ };
7136
+ }
7137
+ catch (error) {
7138
+ console.error('Error fetching Submodel References:', error);
7139
+ throw error;
7140
+ }
6444
7141
  }
6445
7142
  /**
6446
7143
  * Creates a submodel reference at the Asset Administration Shell
@@ -6453,26 +7150,24 @@ function requireAasRepositoryClient () {
6453
7150
  * @param headers Request headers
6454
7151
  * @returns {promise<Reference>} Submodel reference created successfully
6455
7152
  */
6456
- postSubmodelReference(baseURL, aasIdentifier, submodelReference, headers) {
6457
- return __awaiter(this, void 0, void 0, function* () {
6458
- try {
6459
- const client = (0, createAasRepoClient_1.createCustomClient)(baseURL, headers);
6460
- const { data, error } = yield AasRepository.postSubmodelReferenceAasRepository({
6461
- client,
6462
- path: { aasIdentifier },
6463
- body: (0, convertAasTypes_1.convertCoreReferenceToApiReference)(submodelReference),
6464
- });
6465
- if (error) {
6466
- console.error('Error from server:', error);
6467
- throw new Error(JSON.stringify(error.messages));
6468
- }
6469
- return (0, convertAasTypes_1.convertApiReferenceToCoreReference)(data);
7153
+ async postSubmodelReference(baseURL, aasIdentifier, submodelReference, headers) {
7154
+ try {
7155
+ const client = (0, createAasRepoClient_1.createCustomClient)(baseURL, headers);
7156
+ const { data, error } = await AasRepository.postSubmodelReferenceAasRepository({
7157
+ client,
7158
+ path: { aasIdentifier },
7159
+ body: (0, convertAasTypes_1.convertCoreReferenceToApiReference)(submodelReference),
7160
+ });
7161
+ if (error) {
7162
+ console.error('Error from server:', error);
7163
+ throw new Error(JSON.stringify(error.messages));
6470
7164
  }
6471
- catch (error) {
6472
- console.error('Error creating Submodel Reference:', error);
6473
- throw error;
6474
- }
6475
- });
7165
+ return (0, convertAasTypes_1.convertApiReferenceToCoreReference)(data);
7166
+ }
7167
+ catch (error) {
7168
+ console.error('Error creating Submodel Reference:', error);
7169
+ throw error;
7170
+ }
6476
7171
  }
6477
7172
  /**
6478
7173
  * Deletes the submodel reference from the Asset Administration Shell. Does not delete the submodel itself!
@@ -6485,25 +7180,23 @@ function requireAasRepositoryClient () {
6485
7180
  * @param headers Request headers
6486
7181
  * @returns {Promise<void>} Submodel reference deleted successfully
6487
7182
  */
6488
- deleteSubmodelReferenceById(baseURL, aasIdentifier, submodelIdentifier, headers) {
6489
- return __awaiter(this, void 0, void 0, function* () {
6490
- try {
6491
- const client = (0, createAasRepoClient_1.createCustomClient)(baseURL, headers);
6492
- const { error } = yield AasRepository.deleteSubmodelReferenceByIdAasRepository({
6493
- client,
6494
- path: { aasIdentifier, submodelIdentifier },
6495
- });
6496
- if (error) {
6497
- console.error('Error from server:', error);
6498
- throw new Error(JSON.stringify(error.messages));
6499
- }
6500
- return;
6501
- }
6502
- catch (error) {
6503
- console.error('Error deleting Submodel Reference:', error);
6504
- throw error;
7183
+ async deleteSubmodelReferenceById(baseURL, aasIdentifier, submodelIdentifier, headers) {
7184
+ try {
7185
+ const client = (0, createAasRepoClient_1.createCustomClient)(baseURL, headers);
7186
+ const { error } = await AasRepository.deleteSubmodelReferenceByIdAasRepository({
7187
+ client,
7188
+ path: { aasIdentifier, submodelIdentifier },
7189
+ });
7190
+ if (error) {
7191
+ console.error('Error from server:', error);
7192
+ throw new Error(JSON.stringify(error.messages));
6505
7193
  }
6506
- });
7194
+ return;
7195
+ }
7196
+ catch (error) {
7197
+ console.error('Error deleting Submodel Reference:', error);
7198
+ throw error;
7199
+ }
6507
7200
  }
6508
7201
  };
6509
7202
  AasRepositoryClient.AasRepositoryClient = AasRepositoryClient$1;
@@ -6553,5 +7246,5 @@ function requireDist () {
6553
7246
  var distExports = requireDist();
6554
7247
  var index = /*@__PURE__*/getDefaultExportFromCjs(distExports);
6555
7248
 
6556
- exports.default = index;
7249
+ export { index as default };
6557
7250
  //# sourceMappingURL=index.js.map