basyx-typescript-sdk 0.2.1 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (155) hide show
  1. package/README.md +5 -3
  2. package/bundle/index.js +17522 -841
  3. package/bundle/index.js.map +1 -1
  4. package/dist/clients/AasDiscoveryClient.d.ts +67 -0
  5. package/dist/clients/AasDiscoveryClient.js +115 -0
  6. package/dist/clients/AasRegistryClient.d.ts +163 -0
  7. package/dist/clients/AasRegistryClient.js +287 -0
  8. package/dist/clients/AasRepositoryClient.d.ts +790 -103
  9. package/dist/clients/AasRepositoryClient.js +1323 -211
  10. package/dist/clients/AasxFileClient.d.ts +81 -0
  11. package/dist/clients/AasxFileClient.js +148 -0
  12. package/dist/clients/ConceptDescriptionRepositoryClient.d.ts +83 -0
  13. package/dist/clients/ConceptDescriptionRepositoryClient.js +143 -0
  14. package/dist/clients/SubmodelRegistryClient.d.ts +77 -0
  15. package/dist/clients/SubmodelRegistryClient.js +138 -0
  16. package/dist/clients/SubmodelRepositoryClient.d.ts +354 -0
  17. package/dist/clients/SubmodelRepositoryClient.js +585 -0
  18. package/dist/clients/index.d.ts +6 -0
  19. package/dist/clients/index.js +6 -0
  20. package/dist/generated/AasDiscoveryService/apis/AssetAdministrationShellBasicDiscoveryAPIApi.d.ts +80 -0
  21. package/dist/generated/AasDiscoveryService/apis/AssetAdministrationShellBasicDiscoveryAPIApi.js +156 -0
  22. package/dist/generated/AasDiscoveryService/apis/DescriptionAPIApi.d.ts +26 -0
  23. package/dist/generated/AasDiscoveryService/apis/DescriptionAPIApi.js +40 -0
  24. package/dist/generated/AasDiscoveryService/apis/index.d.ts +2 -0
  25. package/dist/generated/AasDiscoveryService/apis/index.js +4 -0
  26. package/dist/generated/AasDiscoveryService/index.d.ts +3 -0
  27. package/dist/generated/AasDiscoveryService/index.js +5 -0
  28. package/dist/generated/AasDiscoveryService/models/index.d.ts +297 -0
  29. package/dist/generated/AasDiscoveryService/models/index.js +48 -0
  30. package/dist/generated/AasDiscoveryService/runtime.d.ts +181 -0
  31. package/dist/generated/AasDiscoveryService/runtime.js +326 -0
  32. package/dist/generated/AasRegistryService/apis/AssetAdministrationShellRegistryAPIApi.d.ts +139 -0
  33. package/dist/generated/AasRegistryService/apis/AssetAdministrationShellRegistryAPIApi.js +312 -0
  34. package/dist/generated/AasRegistryService/apis/DescriptionAPIApi.d.ts +26 -0
  35. package/dist/generated/AasRegistryService/apis/DescriptionAPIApi.js +40 -0
  36. package/dist/generated/AasRegistryService/apis/index.d.ts +2 -0
  37. package/dist/generated/AasRegistryService/apis/index.js +4 -0
  38. package/dist/generated/AasRegistryService/index.d.ts +3 -0
  39. package/dist/generated/AasRegistryService/index.js +5 -0
  40. package/dist/generated/AasRegistryService/models/index.d.ts +1070 -0
  41. package/dist/generated/AasRegistryService/models/index.js +151 -0
  42. package/dist/generated/AasRegistryService/runtime.d.ts +181 -0
  43. package/dist/generated/AasRegistryService/runtime.js +326 -0
  44. package/dist/generated/AasRepositoryService/apis/AssetAdministrationShellRepositoryAPIApi.d.ts +870 -0
  45. package/dist/generated/AasRepositoryService/apis/AssetAdministrationShellRepositoryAPIApi.js +1842 -0
  46. package/dist/generated/AasRepositoryService/apis/DescriptionAPIApi.d.ts +26 -0
  47. package/dist/generated/AasRepositoryService/apis/DescriptionAPIApi.js +40 -0
  48. package/dist/generated/AasRepositoryService/apis/SerializationAPIApi.d.ts +30 -0
  49. package/dist/generated/AasRepositoryService/apis/SerializationAPIApi.js +49 -0
  50. package/dist/generated/AasRepositoryService/apis/index.d.ts +3 -0
  51. package/dist/generated/AasRepositoryService/apis/index.js +5 -0
  52. package/dist/generated/AasRepositoryService/index.d.ts +3 -0
  53. package/dist/generated/AasRepositoryService/index.js +5 -0
  54. package/dist/generated/AasRepositoryService/models/index.d.ts +4585 -0
  55. package/dist/generated/AasRepositoryService/models/index.js +221 -0
  56. package/dist/generated/AasRepositoryService/runtime.d.ts +181 -0
  57. package/dist/generated/AasRepositoryService/runtime.js +326 -0
  58. package/dist/generated/AasxFileService/apis/AASXFileServerAPIApi.d.ts +78 -0
  59. package/dist/generated/AasxFileService/apis/AASXFileServerAPIApi.js +184 -0
  60. package/dist/generated/AasxFileService/apis/index.d.ts +1 -0
  61. package/dist/generated/AasxFileService/apis/index.js +3 -0
  62. package/dist/generated/AasxFileService/index.d.ts +3 -0
  63. package/dist/generated/AasxFileService/index.js +5 -0
  64. package/dist/generated/AasxFileService/models/index.d.ts +80 -0
  65. package/dist/generated/AasxFileService/models/index.js +10 -0
  66. package/dist/generated/AasxFileService/runtime.d.ts +181 -0
  67. package/dist/generated/AasxFileService/runtime.js +326 -0
  68. package/dist/generated/ConceptDescriptionRepositoryService/apis/ConceptDescriptionRepositoryAPIApi.d.ts +78 -0
  69. package/dist/generated/ConceptDescriptionRepositoryService/apis/ConceptDescriptionRepositoryAPIApi.js +164 -0
  70. package/dist/generated/ConceptDescriptionRepositoryService/apis/DescriptionAPIApi.d.ts +26 -0
  71. package/dist/generated/ConceptDescriptionRepositoryService/apis/DescriptionAPIApi.js +40 -0
  72. package/dist/generated/ConceptDescriptionRepositoryService/apis/SerializationAPIApi.d.ts +30 -0
  73. package/dist/generated/ConceptDescriptionRepositoryService/apis/SerializationAPIApi.js +49 -0
  74. package/dist/generated/ConceptDescriptionRepositoryService/apis/index.d.ts +3 -0
  75. package/dist/generated/ConceptDescriptionRepositoryService/apis/index.js +5 -0
  76. package/dist/generated/ConceptDescriptionRepositoryService/index.d.ts +3 -0
  77. package/dist/generated/ConceptDescriptionRepositoryService/index.js +5 -0
  78. package/dist/generated/ConceptDescriptionRepositoryService/models/index.d.ts +2869 -0
  79. package/dist/generated/ConceptDescriptionRepositoryService/models/index.js +209 -0
  80. package/dist/generated/ConceptDescriptionRepositoryService/runtime.d.ts +181 -0
  81. package/dist/generated/ConceptDescriptionRepositoryService/runtime.js +326 -0
  82. package/dist/generated/SubmodelRegistryService/apis/DescriptionAPIApi.d.ts +26 -0
  83. package/dist/generated/SubmodelRegistryService/apis/DescriptionAPIApi.js +40 -0
  84. package/dist/generated/SubmodelRegistryService/apis/SubmodelRegistryAPIApi.d.ts +75 -0
  85. package/dist/generated/SubmodelRegistryService/apis/SubmodelRegistryAPIApi.js +155 -0
  86. package/dist/generated/SubmodelRegistryService/apis/index.d.ts +2 -0
  87. package/dist/generated/SubmodelRegistryService/apis/index.js +4 -0
  88. package/dist/generated/SubmodelRegistryService/index.d.ts +3 -0
  89. package/dist/generated/SubmodelRegistryService/index.js +5 -0
  90. package/dist/generated/SubmodelRegistryService/models/index.d.ts +924 -0
  91. package/dist/generated/SubmodelRegistryService/models/index.js +141 -0
  92. package/dist/generated/SubmodelRegistryService/runtime.d.ts +181 -0
  93. package/dist/generated/SubmodelRegistryService/runtime.js +326 -0
  94. package/dist/generated/SubmodelRepositoryService/apis/DescriptionAPIApi.d.ts +26 -0
  95. package/dist/generated/SubmodelRepositoryService/apis/DescriptionAPIApi.js +40 -0
  96. package/dist/generated/SubmodelRepositoryService/apis/SerializationAPIApi.d.ts +30 -0
  97. package/dist/generated/SubmodelRepositoryService/apis/SerializationAPIApi.js +49 -0
  98. package/dist/generated/SubmodelRepositoryService/apis/SubmodelRepositoryAPIApi.d.ts +802 -0
  99. package/dist/generated/SubmodelRepositoryService/apis/SubmodelRepositoryAPIApi.js +1572 -0
  100. package/dist/generated/SubmodelRepositoryService/apis/index.d.ts +3 -0
  101. package/dist/generated/SubmodelRepositoryService/apis/index.js +5 -0
  102. package/dist/generated/SubmodelRepositoryService/index.d.ts +3 -0
  103. package/dist/generated/SubmodelRepositoryService/index.js +5 -0
  104. package/dist/generated/SubmodelRepositoryService/models/index.d.ts +4623 -0
  105. package/dist/generated/SubmodelRepositoryService/models/index.js +221 -0
  106. package/dist/generated/SubmodelRepositoryService/runtime.d.ts +181 -0
  107. package/dist/generated/SubmodelRepositoryService/runtime.js +326 -0
  108. package/dist/generated/index.d.ts +8 -2
  109. package/dist/generated/index.js +8 -3
  110. package/dist/index.d.ts +1 -1
  111. package/dist/index.js +1 -1
  112. package/dist/lib/apiConfig.d.ts +2 -0
  113. package/dist/lib/apiConfig.js +41 -0
  114. package/dist/lib/base64Url.js +4 -0
  115. package/dist/lib/convertAasDescriptorTypes.d.ts +34 -0
  116. package/dist/lib/convertAasDescriptorTypes.js +76 -0
  117. package/dist/lib/convertAasDiscoveryTypes.d.ts +18 -0
  118. package/dist/lib/convertAasDiscoveryTypes.js +39 -0
  119. package/dist/lib/convertAasTypes.d.ts +7 -7
  120. package/dist/lib/convertAasTypes.js +5 -0
  121. package/dist/lib/convertConceptDescriptionTypes.d.ts +18 -0
  122. package/dist/lib/convertConceptDescriptionTypes.js +39 -0
  123. package/dist/lib/convertSubmodelTypes.d.ts +34 -0
  124. package/dist/lib/convertSubmodelTypes.js +69 -0
  125. package/dist/lib/descriptorJsonization.d.ts +12 -0
  126. package/dist/lib/descriptorJsonization.js +172 -0
  127. package/dist/lib/errorHandler.d.ts +9 -0
  128. package/dist/lib/errorHandler.js +113 -0
  129. package/dist/models/Descriptors.d.ts +51 -0
  130. package/dist/models/Descriptors.js +56 -0
  131. package/dist/models/index.d.ts +0 -1
  132. package/dist/models/index.js +0 -1
  133. package/dist/utils/DescriptorUtils.d.ts +9 -0
  134. package/dist/utils/DescriptorUtils.js +37 -0
  135. package/dist/utils/KeyTypesUtil.d.ts +24 -0
  136. package/dist/utils/KeyTypesUtil.js +55 -0
  137. package/dist/utils/MultiLanguagePropertyUtils.d.ts +24 -0
  138. package/dist/utils/MultiLanguagePropertyUtils.js +46 -0
  139. package/dist/utils/ReferableUtils.d.ts +69 -0
  140. package/dist/utils/ReferableUtils.js +220 -0
  141. package/dist/utils/ReferenceUtil.d.ts +9 -0
  142. package/dist/utils/ReferenceUtil.js +22 -0
  143. package/dist/utils/SemanticIdUtils.d.ts +119 -0
  144. package/dist/utils/SemanticIdUtils.js +363 -0
  145. package/package.json +14 -11
  146. package/dist/generated/schemas.gen.d.ts +0 -2357
  147. package/dist/generated/schemas.gen.js +0 -2789
  148. package/dist/generated/sdk.gen.d.ts +0 -822
  149. package/dist/generated/sdk.gen.js +0 -2225
  150. package/dist/generated/types.gen.d.ts +0 -10829
  151. package/dist/generated/types.gen.js +0 -2
  152. package/dist/lib/createAasRepoClient.d.ts +0 -9
  153. package/dist/lib/createAasRepoClient.js +0 -15
  154. package/dist/models/aas-repository.d.ts +0 -65
  155. package/dist/models/aas-repository.js +0 -1
@@ -1,2225 +0,0 @@
1
- // This file is auto-generated by @hey-api/openapi-ts
2
- import { createClient, createConfig, formDataBodySerializer } from '@hey-api/client-fetch';
3
- export const client = createClient(createConfig());
4
- /**
5
- * Returns a specific Asset Administration Shell
6
- */
7
- export const getAssetAdministrationShell = (options) => {
8
- return (options?.client ?? client).get({
9
- url: '/aas',
10
- ...options,
11
- });
12
- };
13
- /**
14
- * Updates an existing Asset Administration Shell
15
- */
16
- export const putAssetAdministrationShell = (options) => {
17
- return (options?.client ?? client).put({
18
- url: '/aas',
19
- ...options,
20
- headers: {
21
- 'Content-Type': 'application/json',
22
- ...options?.headers,
23
- },
24
- });
25
- };
26
- /**
27
- * Returns a specific Asset Administration Shell as a Reference
28
- */
29
- export const getAssetAdministrationShellReference = (options) => {
30
- return (options?.client ?? client).get({
31
- url: '/aas/$reference',
32
- ...options,
33
- });
34
- };
35
- /**
36
- * Returns the Asset Information
37
- */
38
- export const getAssetInformation = (options) => {
39
- return (options?.client ?? client).get({
40
- url: '/aas/asset-information',
41
- ...options,
42
- });
43
- };
44
- /**
45
- * Updates the Asset Information
46
- */
47
- export const putAssetInformation = (options) => {
48
- return (options?.client ?? client).put({
49
- url: '/aas/asset-information',
50
- ...options,
51
- headers: {
52
- 'Content-Type': 'application/json',
53
- ...options?.headers,
54
- },
55
- });
56
- };
57
- export const deleteThumbnail = (options) => {
58
- return (options?.client ?? client).delete({
59
- url: '/aas/asset-information/thumbnail',
60
- ...options,
61
- });
62
- };
63
- export const getThumbnail = (options) => {
64
- return (options?.client ?? client).get({
65
- url: '/aas/asset-information/thumbnail',
66
- ...options,
67
- });
68
- };
69
- export const putThumbnail = (options) => {
70
- return (options?.client ?? client).put({
71
- ...formDataBodySerializer,
72
- url: '/aas/asset-information/thumbnail',
73
- ...options,
74
- headers: {
75
- 'Content-Type': null,
76
- ...options?.headers,
77
- },
78
- });
79
- };
80
- /**
81
- * Returns all submodel references
82
- */
83
- export const getAllSubmodelReferences = (options) => {
84
- return (options?.client ?? client).get({
85
- url: '/aas/submodel-refs',
86
- ...options,
87
- });
88
- };
89
- /**
90
- * Creates a submodel reference at the Asset Administration Shell
91
- */
92
- export const postSubmodelReference = (options) => {
93
- return (options?.client ?? client).post({
94
- url: '/aas/submodel-refs',
95
- ...options,
96
- headers: {
97
- 'Content-Type': 'application/json',
98
- ...options?.headers,
99
- },
100
- });
101
- };
102
- /**
103
- * Deletes the submodel reference from the Asset Administration Shell. Does not delete the submodel itself!
104
- */
105
- export const deleteSubmodelReferenceById = (options) => {
106
- return (options?.client ?? client).delete({
107
- url: '/aas/submodel-refs/{submodelIdentifier}',
108
- ...options,
109
- });
110
- };
111
- /**
112
- * Deletes the submodel from the Asset Administration Shell.
113
- */
114
- export const deleteSubmodelByIdAas = (options) => {
115
- return (options?.client ?? client).delete({
116
- url: '/aas/submodels/{submodelIdentifier}',
117
- ...options,
118
- });
119
- };
120
- /**
121
- * Returns the Submodel
122
- */
123
- export const getSubmodelAas = (options) => {
124
- return (options?.client ?? client).get({
125
- url: '/aas/submodels/{submodelIdentifier}',
126
- ...options,
127
- });
128
- };
129
- /**
130
- * Updates the Submodel
131
- */
132
- export const patchSubmodelAas = (options) => {
133
- return (options?.client ?? client).patch({
134
- url: '/aas/submodels/{submodelIdentifier}',
135
- ...options,
136
- headers: {
137
- 'Content-Type': 'application/json',
138
- ...options?.headers,
139
- },
140
- });
141
- };
142
- /**
143
- * Updates the Submodel
144
- */
145
- export const putSubmodelAas = (options) => {
146
- return (options?.client ?? client).put({
147
- url: '/aas/submodels/{submodelIdentifier}',
148
- ...options,
149
- headers: {
150
- 'Content-Type': 'application/json',
151
- ...options?.headers,
152
- },
153
- });
154
- };
155
- /**
156
- * Returns the Submodel's metadata elements
157
- */
158
- export const getSubmodelMetadataAas = (options) => {
159
- return (options?.client ?? client).get({
160
- url: '/aas/submodels/{submodelIdentifier}/$metadata',
161
- ...options,
162
- });
163
- };
164
- /**
165
- * Updates the metadata attributes of the Submodel
166
- */
167
- export const patchSubmodelMetadataAas = (options) => {
168
- return (options?.client ?? client).patch({
169
- url: '/aas/submodels/{submodelIdentifier}/$metadata',
170
- ...options,
171
- headers: {
172
- 'Content-Type': 'application/json',
173
- ...options?.headers,
174
- },
175
- });
176
- };
177
- /**
178
- * Returns the Submodel's ValueOnly representation
179
- */
180
- export const getSubmodelValueOnlyAas = (options) => {
181
- return (options?.client ?? client).get({
182
- url: '/aas/submodels/{submodelIdentifier}/$value',
183
- ...options,
184
- });
185
- };
186
- /**
187
- * Updates the values of the Submodel
188
- */
189
- export const patchSubmodelValueOnlyAas = (options) => {
190
- return (options?.client ?? client).patch({
191
- url: '/aas/submodels/{submodelIdentifier}/$value',
192
- ...options,
193
- headers: {
194
- 'Content-Type': 'application/json',
195
- ...options?.headers,
196
- },
197
- });
198
- };
199
- /**
200
- * Returns the Submodel as a Reference
201
- */
202
- export const getSubmodelMetadataReferenceAas = (options) => {
203
- return (options?.client ?? client).get({
204
- url: '/aas/submodels/{submodelIdentifier}/$reference',
205
- ...options,
206
- });
207
- };
208
- /**
209
- * Returns the Submodel's metadata elements
210
- */
211
- export const getSubmodelPathAas = (options) => {
212
- return (options?.client ?? client).get({
213
- url: '/aas/submodels/{submodelIdentifier}/$path',
214
- ...options,
215
- });
216
- };
217
- /**
218
- * Returns all submodel elements including their hierarchy
219
- */
220
- export const getAllSubmodelElementsAas = (options) => {
221
- return (options?.client ?? client).get({
222
- url: '/aas/submodels/{submodelIdentifier}/submodel-elements',
223
- ...options,
224
- });
225
- };
226
- /**
227
- * Creates a new submodel element
228
- */
229
- export const postSubmodelElementAas = (options) => {
230
- return (options?.client ?? client).post({
231
- url: '/aas/submodels/{submodelIdentifier}/submodel-elements',
232
- ...options,
233
- headers: {
234
- 'Content-Type': 'application/json',
235
- ...options?.headers,
236
- },
237
- });
238
- };
239
- /**
240
- * Returns all submodel elements including their hierarchy
241
- */
242
- export const getAllSubmodelElementsMetadataAas = (options) => {
243
- return (options?.client ?? client).get({
244
- url: '/aas/submodels/{submodelIdentifier}/submodel-elements/$metadata',
245
- ...options,
246
- });
247
- };
248
- /**
249
- * Returns all submodel elements including their hierarchy in the ValueOnly representation
250
- */
251
- export const getAllSubmodelElementsValueOnlyAas = (options) => {
252
- return (options?.client ?? client).get({
253
- url: '/aas/submodels/{submodelIdentifier}/submodel-elements/$value',
254
- ...options,
255
- });
256
- };
257
- /**
258
- * Returns all submodel elements as a list of References
259
- */
260
- export const getAllSubmodelElementsReferenceAas = (options) => {
261
- return (options?.client ?? client).get({
262
- url: '/aas/submodels/{submodelIdentifier}/submodel-elements/$reference',
263
- ...options,
264
- });
265
- };
266
- /**
267
- * Returns all submodel elements including their hierarchy
268
- */
269
- export const getAllSubmodelElementsPathAas = (options) => {
270
- return (options?.client ?? client).get({
271
- url: '/aas/submodels/{submodelIdentifier}/submodel-elements/$path',
272
- ...options,
273
- });
274
- };
275
- /**
276
- * Deletes a submodel element at a specified path within the submodel elements hierarchy
277
- */
278
- export const deleteSubmodelElementByPathAas = (options) => {
279
- return (options?.client ?? client).delete({
280
- url: '/aas/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}',
281
- ...options,
282
- });
283
- };
284
- /**
285
- * Returns a specific submodel element from the Submodel at a specified path
286
- */
287
- export const getSubmodelElementByPathAas = (options) => {
288
- return (options?.client ?? client).get({
289
- url: '/aas/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}',
290
- ...options,
291
- });
292
- };
293
- /**
294
- * Updates an existing submodel element value at a specified path within submodel elements hierarchy
295
- */
296
- export const patchSubmodelElementValueByPathAas = (options) => {
297
- return (options?.client ?? client).patch({
298
- url: '/aas/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}',
299
- ...options,
300
- headers: {
301
- 'Content-Type': 'application/json',
302
- ...options?.headers,
303
- },
304
- });
305
- };
306
- /**
307
- * Creates a new submodel element at a specified path within submodel elements hierarchy
308
- */
309
- export const postSubmodelElementByPathAas = (options) => {
310
- return (options?.client ?? client).post({
311
- url: '/aas/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}',
312
- ...options,
313
- headers: {
314
- 'Content-Type': 'application/json',
315
- ...options?.headers,
316
- },
317
- });
318
- };
319
- /**
320
- * Updates an existing submodel element at a specified path within submodel elements hierarchy
321
- */
322
- export const putSubmodelElementByPathAas = (options) => {
323
- return (options?.client ?? client).put({
324
- url: '/aas/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}',
325
- ...options,
326
- headers: {
327
- 'Content-Type': 'application/json',
328
- ...options?.headers,
329
- },
330
- });
331
- };
332
- /**
333
- * Returns the metadata attributes if a specific submodel element from the Submodel at a specified path
334
- */
335
- export const getSubmodelElementByPathMetadataAas = (options) => {
336
- return (options?.client ?? client).get({
337
- url: '/aas/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/$metadata',
338
- ...options,
339
- });
340
- };
341
- /**
342
- * Updates the metadata attributes of an existing submodel element value at a specified path within submodel elements hierarchy
343
- */
344
- export const patchSubmodelElementValueByPathMetadataAas = (options) => {
345
- return (options?.client ?? client).patch({
346
- url: '/aas/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/$metadata',
347
- ...options,
348
- headers: {
349
- 'Content-Type': 'application/json',
350
- ...options?.headers,
351
- },
352
- });
353
- };
354
- /**
355
- * Returns a specific submodel element from the Submodel at a specified path in the ValueOnly representation
356
- */
357
- export const getSubmodelElementByPathValueOnlyAas = (options) => {
358
- return (options?.client ?? client).get({
359
- url: '/aas/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/$value',
360
- ...options,
361
- });
362
- };
363
- /**
364
- * Updates the value of an existing submodel element value at a specified path within submodel elements hierarchy
365
- */
366
- // export const patchSubmodelElementValueByPathValueOnlyAas = <ThrowOnError extends boolean = false>(
367
- // options: Options<PatchSubmodelElementValueByPathValueOnlyAasData, ThrowOnError>
368
- // ) => {
369
- // return (options?.client ?? client).patch<
370
- // PatchSubmodelElementValueByPathValueOnlyAasResponse,
371
- // PatchSubmodelElementValueByPathValueOnlyAasError,
372
- // ThrowOnError
373
- // >({
374
- // url: '/aas/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/$value',
375
- // ...options,
376
- // headers: {
377
- // 'Content-Type': 'application/json',
378
- // ...options?.headers,
379
- // },
380
- // });
381
- // };
382
- /**
383
- * Returns the Reference of a specific submodel element from the Submodel at a specified path in the ValueOnly representation
384
- */
385
- export const getSubmodelElementByPathReferenceAas = (options) => {
386
- return (options?.client ?? client).get({
387
- url: '/aas/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/$reference',
388
- ...options,
389
- });
390
- };
391
- /**
392
- * Returns a specific submodel element from the Submodel at a specified path in the Path notation
393
- */
394
- export const getSubmodelElementByPathPathAas = (options) => {
395
- return (options?.client ?? client).get({
396
- url: '/aas/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/$path',
397
- ...options,
398
- });
399
- };
400
- /**
401
- * Deletes file content of an existing submodel element at a specified path within submodel elements hierarchy
402
- */
403
- export const deleteFileByPathAas = (options) => {
404
- return (options?.client ?? client).delete({
405
- url: '/aas/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/attachment',
406
- ...options,
407
- });
408
- };
409
- /**
410
- * Downloads file content from a specific submodel element from the Submodel at a specified path
411
- */
412
- export const getFileByPathAas = (options) => {
413
- return (options?.client ?? client).get({
414
- url: '/aas/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/attachment',
415
- ...options,
416
- });
417
- };
418
- /**
419
- * Uploads file content to an existing submodel element at a specified path within submodel elements hierarchy
420
- */
421
- export const putFileByPathAas = (options) => {
422
- return (options?.client ?? client).put({
423
- ...formDataBodySerializer,
424
- url: '/aas/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/attachment',
425
- ...options,
426
- headers: {
427
- 'Content-Type': null,
428
- ...options?.headers,
429
- },
430
- });
431
- };
432
- /**
433
- * Synchronously invokes an Operation at a specified path
434
- */
435
- export const invokeOperationSyncAas = (options) => {
436
- return (options?.client ?? client).post({
437
- url: '/aas/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/invoke',
438
- ...options,
439
- headers: {
440
- 'Content-Type': 'application/json',
441
- ...options?.headers,
442
- },
443
- });
444
- };
445
- /**
446
- * Synchronously invokes an Operation at a specified path
447
- */
448
- export const invokeOperationSyncValueOnlyAas = (options) => {
449
- return (options?.client ?? client).post({
450
- url: '/aas/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/invoke/$value',
451
- ...options,
452
- headers: {
453
- 'Content-Type': 'application/json',
454
- ...options?.headers,
455
- },
456
- });
457
- };
458
- /**
459
- * Synchronously invokes an Operation at a specified path
460
- */
461
- export const invokeOperationAsyncAas = (options) => {
462
- return (options?.client ?? client).post({
463
- url: '/aas/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/invoke-async',
464
- ...options,
465
- headers: {
466
- 'Content-Type': 'application/json',
467
- ...options?.headers,
468
- },
469
- });
470
- };
471
- /**
472
- * Asynchronously invokes an Operation at a specified path
473
- */
474
- export const invokeOperationAsyncValueOnlyAas = (options) => {
475
- return (options?.client ?? client).post({
476
- url: '/aas/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/invoke-asnyc/$value',
477
- ...options,
478
- headers: {
479
- 'Content-Type': 'application/json',
480
- ...options?.headers,
481
- },
482
- });
483
- };
484
- /**
485
- * Returns the Operation status of an asynchronous invoked Operation
486
- */
487
- export const getOperationAsyncStatusAas = (options) => {
488
- return (options?.client ?? client).get({
489
- url: '/aas/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/operation-status/{handleId}',
490
- ...options,
491
- });
492
- };
493
- /**
494
- * Returns the Operation result of an asynchronous invoked Operation
495
- */
496
- export const getOperationAsyncResultAas = (options) => {
497
- return (options?.client ?? client).get({
498
- url: '/aas/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/operation-results/{handleId}',
499
- ...options,
500
- });
501
- };
502
- /**
503
- * Returns the value of the Operation result of an asynchronous invoked Operation
504
- */
505
- export const getOperationAsyncResultValueOnlyAas = (options) => {
506
- return (options?.client ?? client).get({
507
- url: '/aas/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/operation-results/{handleId}/$value',
508
- ...options,
509
- });
510
- };
511
- /**
512
- * Returns the Submodel
513
- */
514
- export const getSubmodel = (options) => {
515
- return (options?.client ?? client).get({
516
- url: '/submodel',
517
- ...options,
518
- });
519
- };
520
- /**
521
- * Updates the Submodel
522
- */
523
- export const patchSubmodel = (options) => {
524
- return (options?.client ?? client).patch({
525
- url: '/submodel',
526
- ...options,
527
- headers: {
528
- 'Content-Type': 'application/json',
529
- ...options?.headers,
530
- },
531
- });
532
- };
533
- /**
534
- * Updates the Submodel
535
- */
536
- export const putSubmodel = (options) => {
537
- return (options?.client ?? client).put({
538
- url: '/submodel',
539
- ...options,
540
- headers: {
541
- 'Content-Type': 'application/json',
542
- ...options?.headers,
543
- },
544
- });
545
- };
546
- /**
547
- * Returns the metadata attributes of a specific Submodel
548
- */
549
- export const getSubmodelMetadata = (options) => {
550
- return (options?.client ?? client).get({
551
- url: '/submodel/$metadata',
552
- ...options,
553
- });
554
- };
555
- /**
556
- * Updates the metadata attributes of the Submodel
557
- */
558
- export const patchSubmodelMetadata = (options) => {
559
- return (options?.client ?? client).patch({
560
- url: '/submodel/$metadata',
561
- ...options,
562
- headers: {
563
- 'Content-Type': 'application/json',
564
- ...options?.headers,
565
- },
566
- });
567
- };
568
- /**
569
- * Returns the Submodel in the ValueOnly representation
570
- */
571
- export const getSubmodelValueOnly = (options) => {
572
- return (options?.client ?? client).get({
573
- url: '/submodel/$value',
574
- ...options,
575
- });
576
- };
577
- /**
578
- * Updates the values of the Submodel
579
- */
580
- export const patchSubmodelValueOnly = (options) => {
581
- return (options?.client ?? client).patch({
582
- url: '/submodel/$value',
583
- ...options,
584
- headers: {
585
- 'Content-Type': 'application/json',
586
- ...options?.headers,
587
- },
588
- });
589
- };
590
- /**
591
- * Returns the Reference of the Submodel
592
- */
593
- export const getSubmodelReference = (options) => {
594
- return (options?.client ?? client).get({
595
- url: '/submodel/$reference',
596
- ...options,
597
- });
598
- };
599
- /**
600
- * Returns the Submodel in the Path notation
601
- */
602
- export const getSubmodelPath = (options) => {
603
- return (options?.client ?? client).get({
604
- url: '/submodel/$path',
605
- ...options,
606
- });
607
- };
608
- /**
609
- * Returns all submodel elements including their hierarchy
610
- */
611
- export const getAllSubmodelElements = (options) => {
612
- return (options?.client ?? client).get({
613
- url: '/submodel/submodel-elements',
614
- ...options,
615
- });
616
- };
617
- /**
618
- * Creates a new submodel element
619
- */
620
- export const postSubmodelElement = (options) => {
621
- return (options?.client ?? client).post({
622
- url: '/submodel/submodel-elements',
623
- ...options,
624
- headers: {
625
- 'Content-Type': 'application/json',
626
- ...options?.headers,
627
- },
628
- });
629
- };
630
- /**
631
- * Returns the metadata attributes of all submodel elements including their hierarchy
632
- */
633
- export const getAllSubmodelElementsMetadata = (options) => {
634
- return (options?.client ?? client).get({
635
- url: '/submodel/submodel-elements/$metadata',
636
- ...options,
637
- });
638
- };
639
- /**
640
- * Returns all submodel elements including their hierarchy in the ValueOnly representation
641
- */
642
- export const getAllSubmodelElementsValueOnly = (options) => {
643
- return (options?.client ?? client).get({
644
- url: '/submodel/submodel-elements/$value',
645
- ...options,
646
- });
647
- };
648
- /**
649
- * Returns the References of all submodel elements
650
- */
651
- export const getAllSubmodelElementsReference = (options) => {
652
- return (options?.client ?? client).get({
653
- url: '/submodel/submodel-elements/$reference',
654
- ...options,
655
- });
656
- };
657
- /**
658
- * Returns all submodel elements including their hierarchy in the Path notation
659
- */
660
- export const getAllSubmodelElementsPath = (options) => {
661
- return (options?.client ?? client).get({
662
- url: '/submodel/submodel-elements/$path',
663
- ...options,
664
- });
665
- };
666
- /**
667
- * Deletes a submodel element at a specified path within the submodel elements hierarchy
668
- */
669
- export const deleteSubmodelElementByPath = (options) => {
670
- return (options?.client ?? client).delete({
671
- url: '/submodel/submodel-elements/{idShortPath}',
672
- ...options,
673
- });
674
- };
675
- /**
676
- * Returns a specific submodel element from the Submodel at a specified path
677
- */
678
- export const getSubmodelElementByPath = (options) => {
679
- return (options?.client ?? client).get({
680
- url: '/submodel/submodel-elements/{idShortPath}',
681
- ...options,
682
- });
683
- };
684
- /**
685
- * Updates an existing SubmodelElement
686
- */
687
- export const patchSubmodelElementByPath = (options) => {
688
- return (options?.client ?? client).patch({
689
- url: '/submodel/submodel-elements/{idShortPath}',
690
- ...options,
691
- headers: {
692
- 'Content-Type': 'application/json',
693
- ...options?.headers,
694
- },
695
- });
696
- };
697
- /**
698
- * Creates a new submodel element at a specified path within submodel elements hierarchy
699
- */
700
- export const postSubmodelElementByPath = (options) => {
701
- return (options?.client ?? client).post({
702
- url: '/submodel/submodel-elements/{idShortPath}',
703
- ...options,
704
- headers: {
705
- 'Content-Type': 'application/json',
706
- ...options?.headers,
707
- },
708
- });
709
- };
710
- /**
711
- * Updates an existing submodel element at a specified path within submodel elements hierarchy
712
- */
713
- export const putSubmodelElementByPath = (options) => {
714
- return (options?.client ?? client).put({
715
- url: '/submodel/submodel-elements/{idShortPath}',
716
- ...options,
717
- headers: {
718
- 'Content-Type': 'application/json',
719
- ...options?.headers,
720
- },
721
- });
722
- };
723
- /**
724
- * Returns the matadata attributes of a specific submodel element from the Submodel at a specified path
725
- */
726
- export const getSubmodelElementByPathMetadata = (options) => {
727
- return (options?.client ?? client).get({
728
- url: '/submodel/submodel-elements/{idShortPath}/$metadata',
729
- ...options,
730
- });
731
- };
732
- /**
733
- * Updates the metadata attributes an existing SubmodelElement
734
- */
735
- export const patchSubmodelElementByPathMetadata = (options) => {
736
- return (options?.client ?? client).patch({
737
- url: '/submodel/submodel-elements/{idShortPath}/$metadata',
738
- ...options,
739
- headers: {
740
- 'Content-Type': 'application/json',
741
- ...options?.headers,
742
- },
743
- });
744
- };
745
- /**
746
- * Returns a specific submodel element from the Submodel at a specified path in the ValueOnly representation
747
- */
748
- export const getSubmodelElementByPathValueOnly = (options) => {
749
- return (options?.client ?? client).get({
750
- url: '/submodel/submodel-elements/{idShortPath}/$value',
751
- ...options,
752
- });
753
- };
754
- /**
755
- * Updates the value of an existing SubmodelElement
756
- */
757
- export const patchSubmodelElementByPathValueOnly = (options) => {
758
- return (options?.client ?? client).patch({
759
- url: '/submodel/submodel-elements/{idShortPath}/$value',
760
- ...options,
761
- headers: {
762
- 'Content-Type': 'application/json',
763
- ...options?.headers,
764
- },
765
- });
766
- };
767
- /**
768
- * Returns the Referene of a specific submodel element from the Submodel at a specified path
769
- */
770
- export const getSubmodelElementByPathReference = (options) => {
771
- return (options?.client ?? client).get({
772
- url: '/submodel/submodel-elements/{idShortPath}/$reference',
773
- ...options,
774
- });
775
- };
776
- /**
777
- * Returns a specific submodel element from the Submodel at a specified path in the Path notation
778
- */
779
- export const getSubmodelElementByPathPath = (options) => {
780
- return (options?.client ?? client).get({
781
- url: '/submodel/submodel-elements/{idShortPath}/$path',
782
- ...options,
783
- });
784
- };
785
- /**
786
- * Deletes file content of an existing submodel element at a specified path within submodel elements hierarchy
787
- */
788
- export const deleteFileByPath = (options) => {
789
- return (options?.client ?? client).delete({
790
- url: '/submodel/submodel-elements/{idShortPath}/attachment',
791
- ...options,
792
- });
793
- };
794
- /**
795
- * Downloads file content from a specific submodel element from the Submodel at a specified path
796
- */
797
- export const getFileByPath = (options) => {
798
- return (options?.client ?? client).get({
799
- url: '/submodel/submodel-elements/{idShortPath}/attachment',
800
- ...options,
801
- });
802
- };
803
- /**
804
- * Uploads file content to an existing submodel element at a specified path within submodel elements hierarchy
805
- */
806
- export const putFileByPath = (options) => {
807
- return (options?.client ?? client).put({
808
- ...formDataBodySerializer,
809
- url: '/submodel/submodel-elements/{idShortPath}/attachment',
810
- ...options,
811
- headers: {
812
- 'Content-Type': null,
813
- ...options?.headers,
814
- },
815
- });
816
- };
817
- /**
818
- * Synchronously invokes an Operation at a specified path
819
- */
820
- export const invokeOperation = (options) => {
821
- return (options?.client ?? client).post({
822
- url: '/submodel/submodel-elements/{idShortPath}/invoke',
823
- ...options,
824
- headers: {
825
- 'Content-Type': 'application/json',
826
- ...options?.headers,
827
- },
828
- });
829
- };
830
- /**
831
- * Asynchronously invokes an Operation at a specified path
832
- */
833
- export const invokeOperationAsync = (options) => {
834
- return (options?.client ?? client).post({
835
- url: '/submodel/submodel-elements/{idShortPath}/invoke-async',
836
- ...options,
837
- headers: {
838
- 'Content-Type': 'application/json',
839
- ...options?.headers,
840
- },
841
- });
842
- };
843
- /**
844
- * Synchronously invokes an Operation at a specified path
845
- */
846
- export const invokeOperationSyncValueOnly = (options) => {
847
- return (options?.client ?? client).post({
848
- url: '/submodel/submodel-elements/{idShortPath}/invoke/$value',
849
- ...options,
850
- headers: {
851
- 'Content-Type': 'application/json',
852
- ...options?.headers,
853
- },
854
- });
855
- };
856
- /**
857
- * Asynchronously invokes an Operation at a specified path
858
- */
859
- export const invokeOperationAsyncValueOnly = (options) => {
860
- return (options?.client ?? client).post({
861
- url: '/submodel/submodel-elements/{idShortPath}/invoke-async/$value',
862
- ...options,
863
- headers: {
864
- 'Content-Type': 'application/json',
865
- ...options?.headers,
866
- },
867
- });
868
- };
869
- /**
870
- * Returns the Operation status of an asynchronous invoked Operation
871
- */
872
- export const getOperationAsyncStatus = (options) => {
873
- return (options?.client ?? client).get({
874
- url: '/submodel/submodel-elements/{idShortPath}/operation-status/{handleId}',
875
- ...options,
876
- });
877
- };
878
- /**
879
- * Returns the Operation result of an asynchronous invoked Operation
880
- */
881
- export const getOperationAsyncResult = (options) => {
882
- return (options?.client ?? client).get({
883
- url: '/submodel/submodel-elements/{idShortPath}/operation-results/{handleId}',
884
- ...options,
885
- });
886
- };
887
- /**
888
- * Returns the value of the Operation result of an asynchronous invoked Operation
889
- */
890
- export const getOperationAsyncResultValueOnly = (options) => {
891
- return (options?.client ?? client).get({
892
- url: '/submodel/submodel-elements/{idShortPath}/operation-results/{handleId}/$value',
893
- ...options,
894
- });
895
- };
896
- /**
897
- * Returns all Asset Administration Shells
898
- */
899
- export const getAllAssetAdministrationShells = (options) => {
900
- return (options?.client ?? client).get({
901
- url: '/shells',
902
- ...options,
903
- });
904
- };
905
- /**
906
- * Creates a new Asset Administration Shell
907
- */
908
- export const postAssetAdministrationShell = (options) => {
909
- return (options?.client ?? client).post({
910
- url: '/shells',
911
- ...options,
912
- headers: {
913
- 'Content-Type': 'application/json',
914
- ...options?.headers,
915
- },
916
- });
917
- };
918
- /**
919
- * Returns References to all Asset Administration Shells
920
- */
921
- export const getAllAssetAdministrationShellsReference = (options) => {
922
- return (options?.client ?? client).get({
923
- url: '/shells/$reference',
924
- ...options,
925
- });
926
- };
927
- /**
928
- * Deletes an Asset Administration Shell
929
- */
930
- export const deleteAssetAdministrationShellById = (options) => {
931
- return (options?.client ?? client).delete({
932
- url: '/shells/{aasIdentifier}',
933
- ...options,
934
- });
935
- };
936
- /**
937
- * Returns a specific Asset Administration Shell
938
- */
939
- export const getAssetAdministrationShellById = (options) => {
940
- return (options?.client ?? client).get({
941
- url: '/shells/{aasIdentifier}',
942
- ...options,
943
- });
944
- };
945
- /**
946
- * Updates an existing Asset Administration Shell
947
- */
948
- export const putAssetAdministrationShellById = (options) => {
949
- return (options?.client ?? client).put({
950
- url: '/shells/{aasIdentifier}',
951
- ...options,
952
- headers: {
953
- 'Content-Type': 'application/json',
954
- ...options?.headers,
955
- },
956
- });
957
- };
958
- /**
959
- * Returns a specific Asset Administration Shell as a Reference
960
- */
961
- export const getAssetAdministrationShellByIdReferenceAasRepository = (options) => {
962
- return (options?.client ?? client).get({
963
- url: '/shells/{aasIdentifier}/$reference',
964
- ...options,
965
- });
966
- };
967
- /**
968
- * Returns the Asset Information
969
- */
970
- export const getAssetInformationAasRepository = (options) => {
971
- return (options?.client ?? client).get({
972
- url: '/shells/{aasIdentifier}/asset-information',
973
- ...options,
974
- });
975
- };
976
- /**
977
- * Updates the Asset Information
978
- */
979
- export const putAssetInformationAasRepository = (options) => {
980
- return (options?.client ?? client).put({
981
- url: '/shells/{aasIdentifier}/asset-information',
982
- ...options,
983
- headers: {
984
- 'Content-Type': 'application/json',
985
- ...options?.headers,
986
- },
987
- });
988
- };
989
- export const deleteThumbnailAasRepository = (options) => {
990
- return (options?.client ?? client).delete({
991
- url: '/shells/{aasIdentifier}/asset-information/thumbnail',
992
- ...options,
993
- });
994
- };
995
- export const getThumbnailAasRepository = (options) => {
996
- return (options?.client ?? client).get({
997
- url: '/shells/{aasIdentifier}/asset-information/thumbnail',
998
- ...options,
999
- });
1000
- };
1001
- export const putThumbnailAasRepository = (options) => {
1002
- return (options?.client ?? client).put({
1003
- ...formDataBodySerializer,
1004
- url: '/shells/{aasIdentifier}/asset-information/thumbnail',
1005
- ...options,
1006
- headers: {
1007
- 'Content-Type': null,
1008
- ...options?.headers,
1009
- },
1010
- });
1011
- };
1012
- /**
1013
- * Returns all submodel references
1014
- */
1015
- export const getAllSubmodelReferencesAasRepository = (options) => {
1016
- return (options?.client ?? client).get({
1017
- url: '/shells/{aasIdentifier}/submodel-refs',
1018
- ...options,
1019
- });
1020
- };
1021
- /**
1022
- * Creates a submodel reference at the Asset Administration Shell
1023
- */
1024
- export const postSubmodelReferenceAasRepository = (options) => {
1025
- return (options?.client ?? client).post({
1026
- url: '/shells/{aasIdentifier}/submodel-refs',
1027
- ...options,
1028
- headers: {
1029
- 'Content-Type': 'application/json',
1030
- ...options?.headers,
1031
- },
1032
- });
1033
- };
1034
- /**
1035
- * Deletes the submodel reference from the Asset Administration Shell. Does not delete the submodel itself!
1036
- */
1037
- export const deleteSubmodelReferenceByIdAasRepository = (options) => {
1038
- return (options?.client ?? client).delete({
1039
- url: '/shells/{aasIdentifier}/submodel-refs/{submodelIdentifier}',
1040
- ...options,
1041
- });
1042
- };
1043
- /**
1044
- * Deletes the submodel from the Asset Administration Shell and the Repository.
1045
- */
1046
- export const deleteSubmodelByIdAasRepository = (options) => {
1047
- return (options?.client ?? client).delete({
1048
- url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}',
1049
- ...options,
1050
- });
1051
- };
1052
- /**
1053
- * Returns the Submodel
1054
- */
1055
- export const getSubmodelByIdAasRepository = (options) => {
1056
- return (options?.client ?? client).get({
1057
- url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}',
1058
- ...options,
1059
- });
1060
- };
1061
- /**
1062
- * Updates the Submodel
1063
- */
1064
- export const patchSubmodelAasRepository = (options) => {
1065
- return (options?.client ?? client).patch({
1066
- url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}',
1067
- ...options,
1068
- headers: {
1069
- 'Content-Type': 'application/json',
1070
- ...options?.headers,
1071
- },
1072
- });
1073
- };
1074
- /**
1075
- * Updates the Submodel
1076
- */
1077
- export const putSubmodelByIdAasRepository = (options) => {
1078
- return (options?.client ?? client).put({
1079
- url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}',
1080
- ...options,
1081
- headers: {
1082
- 'Content-Type': 'application/json',
1083
- ...options?.headers,
1084
- },
1085
- });
1086
- };
1087
- /**
1088
- * Returns the Submodel's metadata elements
1089
- */
1090
- export const getSubmodelByIdMetadataAasRepository = (options) => {
1091
- return (options?.client ?? client).get({
1092
- url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/$metadata',
1093
- ...options,
1094
- });
1095
- };
1096
- /**
1097
- * Updates the metadata attributes of the Submodel
1098
- */
1099
- export const patchSubmodelByIdMetadataAasRepository = (options) => {
1100
- return (options?.client ?? client).patch({
1101
- url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/$metadata',
1102
- ...options,
1103
- headers: {
1104
- 'Content-Type': 'application/json',
1105
- ...options?.headers,
1106
- },
1107
- });
1108
- };
1109
- /**
1110
- * Returns the Submodel's ValueOnly representation
1111
- */
1112
- export const getSubmodelByIdValueOnlyAasRepository = (options) => {
1113
- return (options?.client ?? client).get({
1114
- url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/$value',
1115
- ...options,
1116
- });
1117
- };
1118
- /**
1119
- * Updates the values of the Submodel
1120
- */
1121
- export const patchSubmodelByIdValueOnlyAasRepository = (options) => {
1122
- return (options?.client ?? client).patch({
1123
- url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/$value',
1124
- ...options,
1125
- headers: {
1126
- 'Content-Type': 'application/json',
1127
- ...options?.headers,
1128
- },
1129
- });
1130
- };
1131
- /**
1132
- * Returns the Submodel as a Reference
1133
- */
1134
- export const getSubmodelByIdReferenceAasRepository = (options) => {
1135
- return (options?.client ?? client).get({
1136
- url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/$reference',
1137
- ...options,
1138
- });
1139
- };
1140
- /**
1141
- * Returns the Submodel's metadata elements
1142
- */
1143
- export const getSubmodelByIdPathAasRepository = (options) => {
1144
- return (options?.client ?? client).get({
1145
- url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/$path',
1146
- ...options,
1147
- });
1148
- };
1149
- /**
1150
- * Returns all submodel elements including their hierarchy
1151
- */
1152
- export const getAllSubmodelElementsAasRepository = (options) => {
1153
- return (options?.client ?? client).get({
1154
- url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements',
1155
- ...options,
1156
- });
1157
- };
1158
- /**
1159
- * Creates a new submodel element
1160
- */
1161
- export const postSubmodelElementAasRepository = (options) => {
1162
- return (options?.client ?? client).post({
1163
- url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements',
1164
- ...options,
1165
- headers: {
1166
- 'Content-Type': 'application/json',
1167
- ...options?.headers,
1168
- },
1169
- });
1170
- };
1171
- /**
1172
- * Returns all submodel elements including their hierarchy
1173
- */
1174
- export const getAllSubmodelElementsMetadataAasRepository = (options) => {
1175
- return (options?.client ?? client).get({
1176
- url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/$metadata',
1177
- ...options,
1178
- });
1179
- };
1180
- /**
1181
- * Returns all submodel elements including their hierarchy in the ValueOnly representation
1182
- */
1183
- export const getAllSubmodelElementsValueOnlyAasRepository = (options) => {
1184
- return (options?.client ?? client).get({
1185
- url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/$value',
1186
- ...options,
1187
- });
1188
- };
1189
- /**
1190
- * Returns all submodel elements as a list of References
1191
- */
1192
- export const getAllSubmodelElementsReferenceAasRepository = (options) => {
1193
- return (options?.client ?? client).get({
1194
- url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/$reference',
1195
- ...options,
1196
- });
1197
- };
1198
- /**
1199
- * Returns all submodel elements including their hierarchy
1200
- */
1201
- export const getAllSubmodelElementsPathAasRepository = (options) => {
1202
- return (options?.client ?? client).get({
1203
- url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/$path',
1204
- ...options,
1205
- });
1206
- };
1207
- /**
1208
- * Deletes a submodel element at a specified path within the submodel elements hierarchy
1209
- */
1210
- export const deleteSubmodelElementByPathAasRepository = (options) => {
1211
- return (options?.client ?? client).delete({
1212
- url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}',
1213
- ...options,
1214
- });
1215
- };
1216
- /**
1217
- * Returns a specific submodel element from the Submodel at a specified path
1218
- */
1219
- export const getSubmodelElementByPathAasRepository = (options) => {
1220
- return (options?.client ?? client).get({
1221
- url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}',
1222
- ...options,
1223
- });
1224
- };
1225
- /**
1226
- * Updates an existing submodel element value at a specified path within submodel elements hierarchy
1227
- */
1228
- export const patchSubmodelElementValueByPathAasRepository = (options) => {
1229
- return (options?.client ?? client).patch({
1230
- url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}',
1231
- ...options,
1232
- headers: {
1233
- 'Content-Type': 'application/json',
1234
- ...options?.headers,
1235
- },
1236
- });
1237
- };
1238
- /**
1239
- * Creates a new submodel element at a specified path within submodel elements hierarchy
1240
- */
1241
- export const postSubmodelElementByPathAasRepository = (options) => {
1242
- return (options?.client ?? client).post({
1243
- url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}',
1244
- ...options,
1245
- headers: {
1246
- 'Content-Type': 'application/json',
1247
- ...options?.headers,
1248
- },
1249
- });
1250
- };
1251
- /**
1252
- * Updates an existing submodel element at a specified path within submodel elements hierarchy
1253
- */
1254
- export const putSubmodelElementByPathAasRepository = (options) => {
1255
- return (options?.client ?? client).put({
1256
- url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}',
1257
- ...options,
1258
- headers: {
1259
- 'Content-Type': 'application/json',
1260
- ...options?.headers,
1261
- },
1262
- });
1263
- };
1264
- /**
1265
- * Returns the metadata attributes if a specific submodel element from the Submodel at a specified path
1266
- */
1267
- export const getSubmodelElementByPathMetadataAasRepository = (options) => {
1268
- return (options?.client ?? client).get({
1269
- url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/$metadata',
1270
- ...options,
1271
- });
1272
- };
1273
- /**
1274
- * Updates the metadata attributes of an existing submodel element value at a specified path within submodel elements hierarchy
1275
- */
1276
- export const patchSubmodelElementValueByPathMetadata = (options) => {
1277
- return (options?.client ?? client).patch({
1278
- url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/$metadata',
1279
- ...options,
1280
- headers: {
1281
- 'Content-Type': 'application/json',
1282
- ...options?.headers,
1283
- },
1284
- });
1285
- };
1286
- /**
1287
- * Returns a specific submodel element from the Submodel at a specified path in the ValueOnly representation
1288
- */
1289
- export const getSubmodelElementByPathValueOnlyAasRepository = (options) => {
1290
- return (options?.client ?? client).get({
1291
- url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/$value',
1292
- ...options,
1293
- });
1294
- };
1295
- /**
1296
- * Updates the value of an existing submodel element value at a specified path within submodel elements hierarchy
1297
- */
1298
- // export const patchSubmodelElementValueByPathValueOnly = <ThrowOnError extends boolean = false>(
1299
- // options: Options<PatchSubmodelElementValueByPathValueOnlyData, ThrowOnError>
1300
- // ) => {
1301
- // return (options?.client ?? client).patch<
1302
- // PatchSubmodelElementValueByPathValueOnlyResponse,
1303
- // PatchSubmodelElementValueByPathValueOnlyError,
1304
- // ThrowOnError
1305
- // >({
1306
- // url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/$value',
1307
- // ...options,
1308
- // headers: {
1309
- // 'Content-Type': 'application/json',
1310
- // ...options?.headers,
1311
- // },
1312
- // });
1313
- // };
1314
- /**
1315
- * Returns the Reference of a specific submodel element from the Submodel at a specified path
1316
- */
1317
- export const getSubmodelElementByPathReferenceAasRepository = (options) => {
1318
- return (options?.client ?? client).get({
1319
- url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/$reference',
1320
- ...options,
1321
- });
1322
- };
1323
- /**
1324
- * Returns a specific submodel element from the Submodel at a specified path in the Path notation
1325
- */
1326
- export const getSubmodelElementByPathPathAasRepository = (options) => {
1327
- return (options?.client ?? client).get({
1328
- url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/$path',
1329
- ...options,
1330
- });
1331
- };
1332
- /**
1333
- * Deletes file content of an existing submodel element at a specified path within submodel elements hierarchy
1334
- */
1335
- export const deleteFileByPathAasRepository = (options) => {
1336
- return (options?.client ?? client).delete({
1337
- url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/attachment',
1338
- ...options,
1339
- });
1340
- };
1341
- /**
1342
- * Downloads file content from a specific submodel element from the Submodel at a specified path
1343
- */
1344
- export const getFileByPathAasRepository = (options) => {
1345
- return (options?.client ?? client).get({
1346
- url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/attachment',
1347
- ...options,
1348
- });
1349
- };
1350
- /**
1351
- * Uploads file content to an existing submodel element at a specified path within submodel elements hierarchy
1352
- */
1353
- export const putFileByPathAasRepository = (options) => {
1354
- return (options?.client ?? client).put({
1355
- ...formDataBodySerializer,
1356
- url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/attachment',
1357
- ...options,
1358
- headers: {
1359
- 'Content-Type': null,
1360
- ...options?.headers,
1361
- },
1362
- });
1363
- };
1364
- /**
1365
- * Synchronously invokes an Operation at a specified path
1366
- */
1367
- export const invokeOperationAasRepository = (options) => {
1368
- return (options?.client ?? client).post({
1369
- url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/invoke',
1370
- ...options,
1371
- headers: {
1372
- 'Content-Type': 'application/json',
1373
- ...options?.headers,
1374
- },
1375
- });
1376
- };
1377
- /**
1378
- * Synchronously invokes an Operation at a specified path
1379
- */
1380
- export const invokeOperationValueOnlyAasRepository = (options) => {
1381
- return (options?.client ?? client).post({
1382
- url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/invoke/$value',
1383
- ...options,
1384
- headers: {
1385
- 'Content-Type': 'application/json',
1386
- ...options?.headers,
1387
- },
1388
- });
1389
- };
1390
- /**
1391
- * Asynchronously invokes an Operation at a specified path
1392
- */
1393
- export const invokeOperationAsyncAasRepository = (options) => {
1394
- return (options?.client ?? client).post({
1395
- url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/invoke-async',
1396
- ...options,
1397
- headers: {
1398
- 'Content-Type': 'application/json',
1399
- ...options?.headers,
1400
- },
1401
- });
1402
- };
1403
- /**
1404
- * Asynchronously invokes an Operation at a specified path
1405
- */
1406
- export const invokeOperationAsyncValueOnlyAasRepository = (options) => {
1407
- return (options?.client ?? client).post({
1408
- url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/invoke-async/$value',
1409
- ...options,
1410
- headers: {
1411
- 'Content-Type': 'application/json',
1412
- ...options?.headers,
1413
- },
1414
- });
1415
- };
1416
- /**
1417
- * Returns the Operation status of an asynchronous invoked Operation
1418
- */
1419
- export const getOperationAsyncStatusAasRepository = (options) => {
1420
- return (options?.client ?? client).get({
1421
- url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/operation-status/{handleId}',
1422
- ...options,
1423
- });
1424
- };
1425
- /**
1426
- * Returns the Operation result of an asynchronous invoked Operation
1427
- */
1428
- export const getOperationAsyncResultAasRepository = (options) => {
1429
- return (options?.client ?? client).get({
1430
- url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/operation-results/{handleId}',
1431
- ...options,
1432
- });
1433
- };
1434
- /**
1435
- * Returns the ValueOnly notation of the Operation result of an asynchronous invoked Operation
1436
- */
1437
- export const getOperationAsyncResultValueOnlyAasRepository = (options) => {
1438
- return (options?.client ?? client).get({
1439
- url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/operation-results/{handleId}/$value',
1440
- ...options,
1441
- });
1442
- };
1443
- /**
1444
- * Returns all Submodels
1445
- */
1446
- export const getAllSubmodels = (options) => {
1447
- return (options?.client ?? client).get({
1448
- url: '/submodels',
1449
- ...options,
1450
- });
1451
- };
1452
- /**
1453
- * Creates a new Submodel
1454
- */
1455
- export const postSubmodel = (options) => {
1456
- return (options?.client ?? client).post({
1457
- url: '/submodels',
1458
- ...options,
1459
- headers: {
1460
- 'Content-Type': 'application/json',
1461
- ...options?.headers,
1462
- },
1463
- });
1464
- };
1465
- /**
1466
- * Returns the metadata attributes of all Submodels
1467
- */
1468
- export const getAllSubmodelsMetadata = (options) => {
1469
- return (options?.client ?? client).get({
1470
- url: '/submodels/$metadata',
1471
- ...options,
1472
- });
1473
- };
1474
- /**
1475
- * Returns all Submodels in their ValueOnly representation
1476
- */
1477
- export const getAllSubmodelsValueOnly = (options) => {
1478
- return (options?.client ?? client).get({
1479
- url: '/submodels/$value',
1480
- ...options,
1481
- });
1482
- };
1483
- /**
1484
- * Returns the References for all Submodels
1485
- */
1486
- export const getAllSubmodelsReference = (options) => {
1487
- return (options?.client ?? client).get({
1488
- url: '/submodels/$reference',
1489
- ...options,
1490
- });
1491
- };
1492
- /**
1493
- * Returns all Submodels in the Path notation
1494
- */
1495
- export const getAllSubmodelsPath = (options) => {
1496
- return (options?.client ?? client).get({
1497
- url: '/submodels/$path',
1498
- ...options,
1499
- });
1500
- };
1501
- /**
1502
- * Deletes a Submodel
1503
- */
1504
- export const deleteSubmodelById = (options) => {
1505
- return (options?.client ?? client).delete({
1506
- url: '/submodels/{submodelIdentifier}',
1507
- ...options,
1508
- });
1509
- };
1510
- /**
1511
- * Returns a specific Submodel
1512
- */
1513
- export const getSubmodelById = (options) => {
1514
- return (options?.client ?? client).get({
1515
- url: '/submodels/{submodelIdentifier}',
1516
- ...options,
1517
- });
1518
- };
1519
- /**
1520
- * Updates an existing Submodel
1521
- */
1522
- export const patchSubmodelById = (options) => {
1523
- return (options?.client ?? client).patch({
1524
- url: '/submodels/{submodelIdentifier}',
1525
- ...options,
1526
- headers: {
1527
- 'Content-Type': 'application/json',
1528
- ...options?.headers,
1529
- },
1530
- });
1531
- };
1532
- /**
1533
- * Updates an existing Submodel
1534
- */
1535
- export const putSubmodelById = (options) => {
1536
- return (options?.client ?? client).put({
1537
- url: '/submodels/{submodelIdentifier}',
1538
- ...options,
1539
- headers: {
1540
- 'Content-Type': 'application/json',
1541
- ...options?.headers,
1542
- },
1543
- });
1544
- };
1545
- /**
1546
- * Returns the metadata attributes of a specific Submodel
1547
- */
1548
- export const getSubmodelByIdMetadata = (options) => {
1549
- return (options?.client ?? client).get({
1550
- url: '/submodels/{submodelIdentifier}/$metadata',
1551
- ...options,
1552
- });
1553
- };
1554
- /**
1555
- * Updates the metadata attributes of an existing Submodel
1556
- */
1557
- export const patchSubmodelByIdMetadata = (options) => {
1558
- return (options?.client ?? client).patch({
1559
- url: '/submodels/{submodelIdentifier}/$metadata',
1560
- ...options,
1561
- headers: {
1562
- 'Content-Type': 'application/json',
1563
- ...options?.headers,
1564
- },
1565
- });
1566
- };
1567
- /**
1568
- * Returns a specific Submodel in the ValueOnly representation
1569
- */
1570
- export const getSubmodelByIdValueOnly = (options) => {
1571
- return (options?.client ?? client).get({
1572
- url: '/submodels/{submodelIdentifier}/$value',
1573
- ...options,
1574
- });
1575
- };
1576
- /**
1577
- * Updates the values of an existing Submodel
1578
- */
1579
- export const patchSubmodelByIdValueOnly = (options) => {
1580
- return (options?.client ?? client).patch({
1581
- url: '/submodels/{submodelIdentifier}/$value',
1582
- ...options,
1583
- headers: {
1584
- 'Content-Type': 'application/json',
1585
- ...options?.headers,
1586
- },
1587
- });
1588
- };
1589
- /**
1590
- * Returns the Reference of a specific Submodel
1591
- */
1592
- export const getSubmodelByIdReference = (options) => {
1593
- return (options?.client ?? client).get({
1594
- url: '/submodels/{submodelIdentifier}/$reference',
1595
- ...options,
1596
- });
1597
- };
1598
- /**
1599
- * Returns a specific Submodel in the Path notation
1600
- */
1601
- export const getSubmodelByIdPath = (options) => {
1602
- return (options?.client ?? client).get({
1603
- url: '/submodels/{submodelIdentifier}/$path',
1604
- ...options,
1605
- });
1606
- };
1607
- /**
1608
- * Returns all submodel elements including their hierarchy
1609
- */
1610
- export const getAllSubmodelElementsSubmodelRepository = (options) => {
1611
- return (options?.client ?? client).get({
1612
- url: '/submodels/{submodelIdentifier}/submodel-elements',
1613
- ...options,
1614
- });
1615
- };
1616
- /**
1617
- * Creates a new submodel element
1618
- */
1619
- export const postSubmodelElementSubmodelRepository = (options) => {
1620
- return (options?.client ?? client).post({
1621
- url: '/submodels/{submodelIdentifier}/submodel-elements',
1622
- ...options,
1623
- headers: {
1624
- 'Content-Type': 'application/json',
1625
- ...options?.headers,
1626
- },
1627
- });
1628
- };
1629
- /**
1630
- * Returns the metadata attributes of all submodel elements including their hierarchy
1631
- */
1632
- export const getAllSubmodelElementsMetadataSubmodelRepository = (options) => {
1633
- return (options?.client ?? client).get({
1634
- url: '/submodels/{submodelIdentifier}/submodel-elements/$metadata',
1635
- ...options,
1636
- });
1637
- };
1638
- /**
1639
- * Returns all submodel elements including their hierarchy in the ValueOnly representation
1640
- */
1641
- export const getAllSubmodelElementsValueOnlySubmodelRepo = (options) => {
1642
- return (options?.client ?? client).get({
1643
- url: '/submodels/{submodelIdentifier}/submodel-elements/$value',
1644
- ...options,
1645
- });
1646
- };
1647
- /**
1648
- * Returns the References of all submodel elements
1649
- */
1650
- export const getAllSubmodelElementsReferenceSubmodelRepo = (options) => {
1651
- return (options?.client ?? client).get({
1652
- url: '/submodels/{submodelIdentifier}/submodel-elements/$reference',
1653
- ...options,
1654
- });
1655
- };
1656
- /**
1657
- * Returns all submodel elements including their hierarchy in the Path notation
1658
- */
1659
- export const getAllSubmodelElementsPathSubmodelRepo = (options) => {
1660
- return (options?.client ?? client).get({
1661
- url: '/submodels/{submodelIdentifier}/submodel-elements/$path',
1662
- ...options,
1663
- });
1664
- };
1665
- /**
1666
- * Deletes a submodel element at a specified path within the submodel elements hierarchy
1667
- */
1668
- export const deleteSubmodelElementByPathSubmodelRepo = (options) => {
1669
- return (options?.client ?? client).delete({
1670
- url: '/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}',
1671
- ...options,
1672
- });
1673
- };
1674
- /**
1675
- * Returns a specific submodel element from the Submodel at a specified path
1676
- */
1677
- export const getSubmodelElementByPathSubmodelRepo = (options) => {
1678
- return (options?.client ?? client).get({
1679
- url: '/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}',
1680
- ...options,
1681
- });
1682
- };
1683
- /**
1684
- * Updates an existing SubmodelElement
1685
- */
1686
- export const patchSubmodelElementByPathSubmodelRepo = (options) => {
1687
- return (options?.client ?? client).patch({
1688
- url: '/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}',
1689
- ...options,
1690
- headers: {
1691
- 'Content-Type': 'application/json',
1692
- ...options?.headers,
1693
- },
1694
- });
1695
- };
1696
- /**
1697
- * Creates a new submodel element at a specified path within submodel elements hierarchy
1698
- */
1699
- export const postSubmodelElementByPathSubmodelRepo = (options) => {
1700
- return (options?.client ?? client).post({
1701
- url: '/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}',
1702
- ...options,
1703
- headers: {
1704
- 'Content-Type': 'application/json',
1705
- ...options?.headers,
1706
- },
1707
- });
1708
- };
1709
- /**
1710
- * Updates an existing submodel element at a specified path within submodel elements hierarchy
1711
- */
1712
- export const putSubmodelElementByPathSubmodelRepo = (options) => {
1713
- return (options?.client ?? client).put({
1714
- url: '/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}',
1715
- ...options,
1716
- headers: {
1717
- 'Content-Type': 'application/json',
1718
- ...options?.headers,
1719
- },
1720
- });
1721
- };
1722
- /**
1723
- * Returns the matadata attributes of a specific submodel element from the Submodel at a specified path
1724
- */
1725
- export const getSubmodelElementByPathMetadataSubmodelRepo = (options) => {
1726
- return (options?.client ?? client).get({
1727
- url: '/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/$metadata',
1728
- ...options,
1729
- });
1730
- };
1731
- /**
1732
- * Updates the metadata attributes an existing SubmodelElement
1733
- */
1734
- export const patchSubmodelElementByPathMetadataSubmodelRepo = (options) => {
1735
- return (options?.client ?? client).patch({
1736
- url: '/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/$metadata',
1737
- ...options,
1738
- headers: {
1739
- 'Content-Type': 'application/json',
1740
- ...options?.headers,
1741
- },
1742
- });
1743
- };
1744
- /**
1745
- * Returns a specific submodel element from the Submodel at a specified path in the ValueOnly representation
1746
- */
1747
- export const getSubmodelElementByPathValueOnlySubmodelRepo = (options) => {
1748
- return (options?.client ?? client).get({
1749
- url: '/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/$value',
1750
- ...options,
1751
- });
1752
- };
1753
- /**
1754
- * Updates the value of an existing SubmodelElement
1755
- */
1756
- // export const patchSubmodelElementByPathValueOnlySubmodelRepo = <ThrowOnError extends boolean = false>(
1757
- // options: Options<PatchSubmodelElementByPathValueOnlySubmodelRepoData, ThrowOnError>
1758
- // ) => {
1759
- // return (options?.client ?? client).patch<
1760
- // PatchSubmodelElementByPathValueOnlySubmodelRepoResponse,
1761
- // PatchSubmodelElementByPathValueOnlySubmodelRepoError,
1762
- // ThrowOnError
1763
- // >({
1764
- // url: '/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/$value',
1765
- // ...options,
1766
- // headers: {
1767
- // 'Content-Type': 'application/json',
1768
- // ...options?.headers,
1769
- // },
1770
- // });
1771
- // };
1772
- /**
1773
- * Returns the Referene of a specific submodel element from the Submodel at a specified path
1774
- */
1775
- export const getSubmodelElementByPathReferenceSubmodelRepo = (options) => {
1776
- return (options?.client ?? client).get({
1777
- url: '/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/$reference',
1778
- ...options,
1779
- });
1780
- };
1781
- /**
1782
- * Returns a specific submodel element from the Submodel at a specified path in the Path notation
1783
- */
1784
- export const getSubmodelElementByPathPathSubmodelRepo = (options) => {
1785
- return (options?.client ?? client).get({
1786
- url: '/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/$path',
1787
- ...options,
1788
- });
1789
- };
1790
- /**
1791
- * Deletes file content of an existing submodel element at a specified path within submodel elements hierarchy
1792
- */
1793
- export const deleteFileByPathSubmodelRepo = (options) => {
1794
- return (options?.client ?? client).delete({
1795
- url: '/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/attachment',
1796
- ...options,
1797
- });
1798
- };
1799
- /**
1800
- * Downloads file content from a specific submodel element from the Submodel at a specified path
1801
- */
1802
- export const getFileByPathSubmodelRepo = (options) => {
1803
- return (options?.client ?? client).get({
1804
- url: '/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/attachment',
1805
- ...options,
1806
- });
1807
- };
1808
- /**
1809
- * Uploads file content to an existing submodel element at a specified path within submodel elements hierarchy
1810
- */
1811
- export const putFileByPathSubmodelRepo = (options) => {
1812
- return (options?.client ?? client).put({
1813
- ...formDataBodySerializer,
1814
- url: '/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/attachment',
1815
- ...options,
1816
- headers: {
1817
- 'Content-Type': null,
1818
- ...options?.headers,
1819
- },
1820
- });
1821
- };
1822
- /**
1823
- * Synchronously invokes an Operation at a specified path
1824
- */
1825
- export const invokeOperationSubmodelRepo = (options) => {
1826
- return (options?.client ?? client).post({
1827
- url: '/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/invoke',
1828
- ...options,
1829
- headers: {
1830
- 'Content-Type': 'application/json',
1831
- ...options?.headers,
1832
- },
1833
- });
1834
- };
1835
- /**
1836
- * Synchronously invokes an Operation at a specified path
1837
- */
1838
- export const invokeOperationValueOnlySubmodelRepo = (options) => {
1839
- return (options?.client ?? client).post({
1840
- url: '/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/invoke/$value',
1841
- ...options,
1842
- headers: {
1843
- 'Content-Type': 'application/json',
1844
- ...options?.headers,
1845
- },
1846
- });
1847
- };
1848
- /**
1849
- * Asynchronously invokes an Operation at a specified path
1850
- */
1851
- export const invokeOperationAsyncSubmodelRepo = (options) => {
1852
- return (options?.client ?? client).post({
1853
- url: '/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/invoke-async',
1854
- ...options,
1855
- headers: {
1856
- 'Content-Type': 'application/json',
1857
- ...options?.headers,
1858
- },
1859
- });
1860
- };
1861
- /**
1862
- * Asynchronously invokes an Operation at a specified path
1863
- */
1864
- export const invokeOperationAsyncValueOnlySubmodelRepo = (options) => {
1865
- return (options?.client ?? client).post({
1866
- url: '/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/invoke-async/$value',
1867
- ...options,
1868
- headers: {
1869
- 'Content-Type': 'application/json',
1870
- ...options?.headers,
1871
- },
1872
- });
1873
- };
1874
- /**
1875
- * Returns the Operation status of an asynchronous invoked Operation
1876
- */
1877
- export const getOperationAsyncStatusSubmodelRepo = (options) => {
1878
- return (options?.client ?? client).get({
1879
- url: '/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/operation-status/{handleId}',
1880
- ...options,
1881
- });
1882
- };
1883
- /**
1884
- * Returns the Operation result of an asynchronous invoked Operation
1885
- */
1886
- export const getOperationAsyncResultSubmodelRepo = (options) => {
1887
- return (options?.client ?? client).get({
1888
- url: '/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/operation-results/{handleId}',
1889
- ...options,
1890
- });
1891
- };
1892
- /**
1893
- * Returns the Operation result of an asynchronous invoked Operation
1894
- */
1895
- export const getOperationAsyncResultValueOnlySubmodelRepo = (options) => {
1896
- return (options?.client ?? client).get({
1897
- url: '/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/operation-results/{handleId}/$value',
1898
- ...options,
1899
- });
1900
- };
1901
- /**
1902
- * Returns all Concept Descriptions
1903
- */
1904
- export const getAllConceptDescriptions = (options) => {
1905
- return (options?.client ?? client).get({
1906
- url: '/concept-descriptions',
1907
- ...options,
1908
- });
1909
- };
1910
- /**
1911
- * Creates a new Concept Description
1912
- */
1913
- export const postConceptDescription = (options) => {
1914
- return (options?.client ?? client).post({
1915
- url: '/concept-descriptions',
1916
- ...options,
1917
- headers: {
1918
- 'Content-Type': 'application/json',
1919
- ...options?.headers,
1920
- },
1921
- });
1922
- };
1923
- /**
1924
- * Deletes a Concept Description
1925
- */
1926
- export const deleteConceptDescriptionById = (options) => {
1927
- return (options?.client ?? client).delete({
1928
- url: '/concept-descriptions/{cdIdentifier}',
1929
- ...options,
1930
- });
1931
- };
1932
- /**
1933
- * Returns a specific Concept Description
1934
- */
1935
- export const getConceptDescriptionById = (options) => {
1936
- return (options?.client ?? client).get({
1937
- url: '/concept-descriptions/{cdIdentifier}',
1938
- ...options,
1939
- });
1940
- };
1941
- /**
1942
- * Updates an existing Concept Description
1943
- */
1944
- export const putConceptDescriptionById = (options) => {
1945
- return (options?.client ?? client).put({
1946
- url: '/concept-descriptions/{cdIdentifier}',
1947
- ...options,
1948
- headers: {
1949
- 'Content-Type': 'application/json',
1950
- ...options?.headers,
1951
- },
1952
- });
1953
- };
1954
- /**
1955
- * Returns all Asset Administration Shell Descriptors
1956
- */
1957
- export const getAllAssetAdministrationShellDescriptors = (options) => {
1958
- return (options?.client ?? client).get({
1959
- url: '/shell-descriptors',
1960
- ...options,
1961
- });
1962
- };
1963
- /**
1964
- * Creates a new Asset Administration Shell Descriptor, i.e. registers an AAS
1965
- */
1966
- export const postAssetAdministrationShellDescriptor = (options) => {
1967
- return (options?.client ?? client).post({
1968
- url: '/shell-descriptors',
1969
- ...options,
1970
- headers: {
1971
- 'Content-Type': 'application/json',
1972
- ...options?.headers,
1973
- },
1974
- });
1975
- };
1976
- /**
1977
- * Deletes an Asset Administration Shell Descriptor, i.e. de-registers an AAS
1978
- */
1979
- export const deleteAssetAdministrationShellDescriptorById = (options) => {
1980
- return (options?.client ?? client).delete({
1981
- url: '/shell-descriptors/{aasIdentifier}',
1982
- ...options,
1983
- });
1984
- };
1985
- /**
1986
- * Returns a specific Asset Administration Shell Descriptor
1987
- */
1988
- export const getAssetAdministrationShellDescriptorById = (options) => {
1989
- return (options?.client ?? client).get({
1990
- url: '/shell-descriptors/{aasIdentifier}',
1991
- ...options,
1992
- });
1993
- };
1994
- /**
1995
- * Updates an existing Asset Administration Shell Descriptor
1996
- */
1997
- export const putAssetAdministrationShellDescriptorById = (options) => {
1998
- return (options?.client ?? client).put({
1999
- url: '/shell-descriptors/{aasIdentifier}',
2000
- ...options,
2001
- headers: {
2002
- 'Content-Type': 'application/json',
2003
- ...options?.headers,
2004
- },
2005
- });
2006
- };
2007
- /**
2008
- * Returns all Submodel Descriptors
2009
- */
2010
- export const getAllSubmodelDescriptorsThroughSuperpath = (options) => {
2011
- return (options?.client ?? client).get({
2012
- url: '/shell-descriptors/{aasIdentifier}/submodel-descriptors',
2013
- ...options,
2014
- });
2015
- };
2016
- /**
2017
- * Creates a new Submodel Descriptor, i.e. registers a submodel
2018
- */
2019
- export const postSubmodelDescriptorThroughSuperpath = (options) => {
2020
- return (options?.client ?? client).post({
2021
- url: '/shell-descriptors/{aasIdentifier}/submodel-descriptors',
2022
- ...options,
2023
- headers: {
2024
- 'Content-Type': 'application/json',
2025
- ...options?.headers,
2026
- },
2027
- });
2028
- };
2029
- /**
2030
- * Deletes a Submodel Descriptor, i.e. de-registers a submodel
2031
- */
2032
- export const deleteSubmodelDescriptorByIdThroughSuperpath = (options) => {
2033
- return (options?.client ?? client).delete({
2034
- url: '/shell-descriptors/{aasIdentifier}/submodel-descriptors/{submodelIdentifier}',
2035
- ...options,
2036
- });
2037
- };
2038
- /**
2039
- * Returns a specific Submodel Descriptor
2040
- */
2041
- export const getSubmodelDescriptorByIdThroughSuperpath = (options) => {
2042
- return (options?.client ?? client).get({
2043
- url: '/shell-descriptors/{aasIdentifier}/submodel-descriptors/{submodelIdentifier}',
2044
- ...options,
2045
- });
2046
- };
2047
- /**
2048
- * Updates an existing Submodel Descriptor
2049
- */
2050
- export const putSubmodelDescriptorByIdThroughSuperpath = (options) => {
2051
- return (options?.client ?? client).put({
2052
- url: '/shell-descriptors/{aasIdentifier}/submodel-descriptors/{submodelIdentifier}',
2053
- ...options,
2054
- headers: {
2055
- 'Content-Type': 'application/json',
2056
- ...options?.headers,
2057
- },
2058
- });
2059
- };
2060
- /**
2061
- * Returns all Submodel Descriptors
2062
- */
2063
- export const getAllSubmodelDescriptors = (options) => {
2064
- return (options?.client ?? client).get({
2065
- url: '/submodel-descriptors',
2066
- ...options,
2067
- });
2068
- };
2069
- /**
2070
- * Creates a new Submodel Descriptor, i.e. registers a submodel
2071
- */
2072
- export const postSubmodelDescriptor = (options) => {
2073
- return (options?.client ?? client).post({
2074
- url: '/submodel-descriptors',
2075
- ...options,
2076
- headers: {
2077
- 'Content-Type': 'application/json',
2078
- ...options?.headers,
2079
- },
2080
- });
2081
- };
2082
- /**
2083
- * Deletes a Submodel Descriptor, i.e. de-registers a submodel
2084
- */
2085
- export const deleteSubmodelDescriptorById = (options) => {
2086
- return (options?.client ?? client).delete({
2087
- url: '/submodel-descriptors/{submodelIdentifier}',
2088
- ...options,
2089
- });
2090
- };
2091
- /**
2092
- * Returns a specific Submodel Descriptor
2093
- */
2094
- export const getSubmodelDescriptorById = (options) => {
2095
- return (options?.client ?? client).get({
2096
- url: '/submodel-descriptors/{submodelIdentifier}',
2097
- ...options,
2098
- });
2099
- };
2100
- /**
2101
- * Updates an existing Submodel Descriptor
2102
- */
2103
- export const putSubmodelDescriptorById = (options) => {
2104
- return (options?.client ?? client).put({
2105
- url: '/submodel-descriptors/{submodelIdentifier}',
2106
- ...options,
2107
- headers: {
2108
- 'Content-Type': 'application/json',
2109
- ...options?.headers,
2110
- },
2111
- });
2112
- };
2113
- /**
2114
- * Returns a list of Asset Administration Shell ids linked to specific Asset identifiers
2115
- */
2116
- export const getAllAssetAdministrationShellIdsByAssetLink = (options) => {
2117
- return (options?.client ?? client).get({
2118
- url: '/lookup/shells',
2119
- ...options,
2120
- });
2121
- };
2122
- /**
2123
- * Deletes all specific Asset identifiers linked to an Asset Administration Shell to edit discoverable content
2124
- */
2125
- export const deleteAllAssetLinksById = (options) => {
2126
- return (options?.client ?? client).delete({
2127
- url: '/lookup/shells/{aasIdentifier}',
2128
- ...options,
2129
- });
2130
- };
2131
- /**
2132
- * Returns a list of specific Asset identifiers based on an Asset Administration Shell id to edit discoverable content
2133
- */
2134
- export const getAllAssetLinksById = (options) => {
2135
- return (options?.client ?? client).get({
2136
- url: '/lookup/shells/{aasIdentifier}',
2137
- ...options,
2138
- });
2139
- };
2140
- /**
2141
- * Creates specific Asset identifiers linked to an Asset Administration Shell to edit discoverable content
2142
- */
2143
- export const postAllAssetLinksById = (options) => {
2144
- return (options?.client ?? client).post({
2145
- url: '/lookup/shells/{aasIdentifier}',
2146
- ...options,
2147
- headers: {
2148
- 'Content-Type': 'application/json',
2149
- ...options?.headers,
2150
- },
2151
- });
2152
- };
2153
- /**
2154
- * Returns a list of available AASX packages at the server
2155
- */
2156
- export const getAllAasxPackageIds = (options) => {
2157
- return (options?.client ?? client).get({
2158
- url: '/packages',
2159
- ...options,
2160
- });
2161
- };
2162
- /**
2163
- * Stores the AASX package at the server
2164
- */
2165
- export const postAasxPackage = (options) => {
2166
- return (options?.client ?? client).post({
2167
- ...formDataBodySerializer,
2168
- url: '/packages',
2169
- ...options,
2170
- headers: {
2171
- 'Content-Type': null,
2172
- ...options?.headers,
2173
- },
2174
- });
2175
- };
2176
- /**
2177
- * Deletes a specific AASX package from the server
2178
- */
2179
- export const deleteAasxByPackageId = (options) => {
2180
- return (options?.client ?? client).delete({
2181
- url: '/packages/{packageId}',
2182
- ...options,
2183
- });
2184
- };
2185
- /**
2186
- * Returns a specific AASX package from the server
2187
- */
2188
- export const getAasxByPackageId = (options) => {
2189
- return (options?.client ?? client).get({
2190
- url: '/packages/{packageId}',
2191
- ...options,
2192
- });
2193
- };
2194
- /**
2195
- * Updates the AASX package at the server
2196
- */
2197
- export const putAasxByPackageId = (options) => {
2198
- return (options?.client ?? client).put({
2199
- ...formDataBodySerializer,
2200
- url: '/packages/{packageId}',
2201
- ...options,
2202
- headers: {
2203
- 'Content-Type': null,
2204
- ...options?.headers,
2205
- },
2206
- });
2207
- };
2208
- /**
2209
- * Returns an appropriate serialization based on the specified format (see SerializationFormat)
2210
- */
2211
- export const generateSerializationByIds = (options) => {
2212
- return (options?.client ?? client).get({
2213
- url: '/serialization',
2214
- ...options,
2215
- });
2216
- };
2217
- /**
2218
- * Returns the self-describing information of a network resource (ServiceDescription)
2219
- */
2220
- export const getDescription = (options) => {
2221
- return (options?.client ?? client).get({
2222
- url: '/description',
2223
- ...options,
2224
- });
2225
- };