basyx-typescript-sdk 0.1.0 → 0.1.1
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/README.md +7 -0
- package/dist/clients/AasRepositoryClient.d.ts +2 -2
- package/dist/clients/AasRepositoryClient.js +5 -5
- package/package.json +2 -3
- package/src/clients/AasRepositoryClient.ts +0 -501
- package/src/clients/index.ts +0 -1
- package/src/generated/aas-repository/index.ts +0 -3
- package/src/generated/aas-repository/sdk.gen.ts +0 -620
- package/src/generated/aas-repository/types.gen.ts +0 -3786
- package/src/index.ts +0 -1
- package/src/lib/convertAasTypes.ts +0 -123
- package/src/lib/createAasRepoClient.ts +0 -16
- package/src/models/aas-repository.ts +0 -12
- package/src/tests/clients/AasRepositoryClient.test.ts +0 -270
- package/src/tests/lib/convertAasTypes.test.ts +0 -201
- package/src/tests/lib/createAasRepoClient.test.ts +0 -55
- package/src/tests/models/.gitkeep +0 -0
- package/src/tests/utils/.gitkeep +0 -0
- package/src/utils/.gitkeep +0 -0
|
@@ -1,620 +0,0 @@
|
|
|
1
|
-
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
-
|
|
3
|
-
import { createClient, createConfig, type Options, formDataBodySerializer } from '@hey-api/client-fetch';
|
|
4
|
-
import type { GetAllAssetAdministrationShellsData, GetAllAssetAdministrationShellsResponse, GetAllAssetAdministrationShellsError, PostAssetAdministrationShellData, PostAssetAdministrationShellResponse, PostAssetAdministrationShellError, GetAllAssetAdministrationShellsReferenceData, GetAllAssetAdministrationShellsReferenceResponse, GetAllAssetAdministrationShellsReferenceError, DeleteAssetAdministrationShellByIdData, DeleteAssetAdministrationShellByIdResponse, DeleteAssetAdministrationShellByIdError, GetAssetAdministrationShellByIdData, GetAssetAdministrationShellByIdResponse, GetAssetAdministrationShellByIdError, PutAssetAdministrationShellByIdData, PutAssetAdministrationShellByIdResponse, PutAssetAdministrationShellByIdError, GetAssetAdministrationShellByIdReferenceAasRepositoryData, GetAssetAdministrationShellByIdReferenceAasRepositoryResponse, GetAssetAdministrationShellByIdReferenceAasRepositoryError, GetAssetInformationAasRepositoryData, GetAssetInformationAasRepositoryResponse, GetAssetInformationAasRepositoryError, PutAssetInformationAasRepositoryData, PutAssetInformationAasRepositoryResponse, PutAssetInformationAasRepositoryError, DeleteThumbnailAasRepositoryData, DeleteThumbnailAasRepositoryError, GetThumbnailAasRepositoryData, GetThumbnailAasRepositoryResponse, GetThumbnailAasRepositoryError, PutThumbnailAasRepositoryData, PutThumbnailAasRepositoryResponse, PutThumbnailAasRepositoryError, GetAllSubmodelReferencesAasRepositoryData, GetAllSubmodelReferencesAasRepositoryResponse, GetAllSubmodelReferencesAasRepositoryError, PostSubmodelReferenceAasRepositoryData, PostSubmodelReferenceAasRepositoryResponse, PostSubmodelReferenceAasRepositoryError, DeleteSubmodelReferenceByIdAasRepositoryData, DeleteSubmodelReferenceByIdAasRepositoryResponse, DeleteSubmodelReferenceByIdAasRepositoryError, DeleteSubmodelByIdAasRepositoryData, DeleteSubmodelByIdAasRepositoryResponse, DeleteSubmodelByIdAasRepositoryError, GetSubmodelByIdAasRepositoryData, GetSubmodelByIdAasRepositoryResponse, GetSubmodelByIdAasRepositoryError, PatchSubmodelAasRepositoryData, PatchSubmodelAasRepositoryResponse, PatchSubmodelAasRepositoryError, PutSubmodelByIdAasRepositoryData, PutSubmodelByIdAasRepositoryResponse, PutSubmodelByIdAasRepositoryError, GetSubmodelByIdMetadataAasRepositoryData, GetSubmodelByIdMetadataAasRepositoryResponse, GetSubmodelByIdMetadataAasRepositoryError, PatchSubmodelByIdMetadataAasRepositoryData, PatchSubmodelByIdMetadataAasRepositoryResponse, PatchSubmodelByIdMetadataAasRepositoryError, GetSubmodelByIdValueOnlyAasRepositoryData, GetSubmodelByIdValueOnlyAasRepositoryResponse, GetSubmodelByIdValueOnlyAasRepositoryError, PatchSubmodelByIdValueOnlyAasRepositoryData, PatchSubmodelByIdValueOnlyAasRepositoryResponse, PatchSubmodelByIdValueOnlyAasRepositoryError, GetSubmodelByIdReferenceAasRepositoryData, GetSubmodelByIdReferenceAasRepositoryResponse, GetSubmodelByIdReferenceAasRepositoryError, GetSubmodelByIdPathAasRepositoryData, GetSubmodelByIdPathAasRepositoryResponse, GetSubmodelByIdPathAasRepositoryError, GetAllSubmodelElementsAasRepositoryData, GetAllSubmodelElementsAasRepositoryResponse, GetAllSubmodelElementsAasRepositoryError, PostSubmodelElementAasRepositoryData, PostSubmodelElementAasRepositoryResponse, PostSubmodelElementAasRepositoryError, GetAllSubmodelElementsMetadataAasRepositoryData, GetAllSubmodelElementsMetadataAasRepositoryResponse, GetAllSubmodelElementsMetadataAasRepositoryError, GetAllSubmodelElementsValueOnlyAasRepositoryData, GetAllSubmodelElementsValueOnlyAasRepositoryResponse, GetAllSubmodelElementsValueOnlyAasRepositoryError, GetAllSubmodelElementsReferenceAasRepositoryData, GetAllSubmodelElementsReferenceAasRepositoryResponse, GetAllSubmodelElementsReferenceAasRepositoryError, GetAllSubmodelElementsPathAasRepositoryData, GetAllSubmodelElementsPathAasRepositoryResponse, GetAllSubmodelElementsPathAasRepositoryError, DeleteSubmodelElementByPathAasRepositoryData, DeleteSubmodelElementByPathAasRepositoryResponse, DeleteSubmodelElementByPathAasRepositoryError, GetSubmodelElementByPathAasRepositoryData, GetSubmodelElementByPathAasRepositoryResponse, GetSubmodelElementByPathAasRepositoryError, PatchSubmodelElementValueByPathAasRepositoryData, PatchSubmodelElementValueByPathAasRepositoryResponse, PatchSubmodelElementValueByPathAasRepositoryError, PostSubmodelElementByPathAasRepositoryData, PostSubmodelElementByPathAasRepositoryResponse, PostSubmodelElementByPathAasRepositoryError, PutSubmodelElementByPathAasRepositoryData, PutSubmodelElementByPathAasRepositoryResponse, PutSubmodelElementByPathAasRepositoryError, GetSubmodelElementByPathMetadataAasRepositoryData, GetSubmodelElementByPathMetadataAasRepositoryResponse, GetSubmodelElementByPathMetadataAasRepositoryError, PatchSubmodelElementValueByPathMetadataData, PatchSubmodelElementValueByPathMetadataResponse, PatchSubmodelElementValueByPathMetadataError, GetSubmodelElementByPathValueOnlyAasRepositoryData, GetSubmodelElementByPathValueOnlyAasRepositoryResponse, GetSubmodelElementByPathValueOnlyAasRepositoryError, PatchSubmodelElementValueByPathValueOnlyData, PatchSubmodelElementValueByPathValueOnlyResponse, PatchSubmodelElementValueByPathValueOnlyError, GetSubmodelElementByPathReferenceAasRepositoryData, GetSubmodelElementByPathReferenceAasRepositoryResponse, GetSubmodelElementByPathReferenceAasRepositoryError, GetSubmodelElementByPathPathAasRepositoryData, GetSubmodelElementByPathPathAasRepositoryResponse, GetSubmodelElementByPathPathAasRepositoryError, DeleteFileByPathAasRepositoryData, DeleteFileByPathAasRepositoryError, GetFileByPathAasRepositoryData, GetFileByPathAasRepositoryResponse, GetFileByPathAasRepositoryError, PutFileByPathAasRepositoryData, PutFileByPathAasRepositoryResponse, PutFileByPathAasRepositoryError, InvokeOperationAasRepositoryData, InvokeOperationAasRepositoryResponse, InvokeOperationAasRepositoryError, InvokeOperationValueOnlyAasRepositoryData, InvokeOperationValueOnlyAasRepositoryResponse, InvokeOperationValueOnlyAasRepositoryError, InvokeOperationAsyncAasRepositoryData, InvokeOperationAsyncAasRepositoryError, InvokeOperationAsyncValueOnlyAasRepositoryData, InvokeOperationAsyncValueOnlyAasRepositoryError, GetOperationAsyncStatusAasRepositoryData, GetOperationAsyncStatusAasRepositoryResponse, GetOperationAsyncStatusAasRepositoryError, GetOperationAsyncResultAasRepositoryData, GetOperationAsyncResultAasRepositoryResponse, GetOperationAsyncResultAasRepositoryError, GetOperationAsyncResultValueOnlyAasRepositoryData, GetOperationAsyncResultValueOnlyAasRepositoryResponse, GetOperationAsyncResultValueOnlyAasRepositoryError, GenerateSerializationByIdsData, GenerateSerializationByIdsResponse, GenerateSerializationByIdsError, GetDescriptionData, GetDescriptionResponse, GetDescriptionError } from './types.gen';
|
|
5
|
-
|
|
6
|
-
export const client = createClient(createConfig());
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Returns all Asset Administration Shells
|
|
10
|
-
*/
|
|
11
|
-
export const getAllAssetAdministrationShells = <ThrowOnError extends boolean = false>(options?: Options<GetAllAssetAdministrationShellsData, ThrowOnError>) => {
|
|
12
|
-
return (options?.client ?? client).get<GetAllAssetAdministrationShellsResponse, GetAllAssetAdministrationShellsError, ThrowOnError>({
|
|
13
|
-
url: '/shells',
|
|
14
|
-
...options
|
|
15
|
-
});
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Creates a new Asset Administration Shell
|
|
20
|
-
*/
|
|
21
|
-
export const postAssetAdministrationShell = <ThrowOnError extends boolean = false>(options: Options<PostAssetAdministrationShellData, ThrowOnError>) => {
|
|
22
|
-
return (options?.client ?? client).post<PostAssetAdministrationShellResponse, PostAssetAdministrationShellError, ThrowOnError>({
|
|
23
|
-
url: '/shells',
|
|
24
|
-
...options,
|
|
25
|
-
headers: {
|
|
26
|
-
'Content-Type': 'application/json',
|
|
27
|
-
...options?.headers
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Returns References to all Asset Administration Shells
|
|
34
|
-
*/
|
|
35
|
-
export const getAllAssetAdministrationShellsReference = <ThrowOnError extends boolean = false>(options?: Options<GetAllAssetAdministrationShellsReferenceData, ThrowOnError>) => {
|
|
36
|
-
return (options?.client ?? client).get<GetAllAssetAdministrationShellsReferenceResponse, GetAllAssetAdministrationShellsReferenceError, ThrowOnError>({
|
|
37
|
-
url: '/shells/$reference',
|
|
38
|
-
...options
|
|
39
|
-
});
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Deletes an Asset Administration Shell
|
|
44
|
-
*/
|
|
45
|
-
export const deleteAssetAdministrationShellById = <ThrowOnError extends boolean = false>(options: Options<DeleteAssetAdministrationShellByIdData, ThrowOnError>) => {
|
|
46
|
-
return (options?.client ?? client).delete<DeleteAssetAdministrationShellByIdResponse, DeleteAssetAdministrationShellByIdError, ThrowOnError>({
|
|
47
|
-
url: '/shells/{aasIdentifier}',
|
|
48
|
-
...options
|
|
49
|
-
});
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* Returns a specific Asset Administration Shell
|
|
54
|
-
*/
|
|
55
|
-
export const getAssetAdministrationShellById = <ThrowOnError extends boolean = false>(options: Options<GetAssetAdministrationShellByIdData, ThrowOnError>) => {
|
|
56
|
-
return (options?.client ?? client).get<GetAssetAdministrationShellByIdResponse, GetAssetAdministrationShellByIdError, ThrowOnError>({
|
|
57
|
-
url: '/shells/{aasIdentifier}',
|
|
58
|
-
...options
|
|
59
|
-
});
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* Updates an existing Asset Administration Shell
|
|
64
|
-
*/
|
|
65
|
-
export const putAssetAdministrationShellById = <ThrowOnError extends boolean = false>(options: Options<PutAssetAdministrationShellByIdData, ThrowOnError>) => {
|
|
66
|
-
return (options?.client ?? client).put<PutAssetAdministrationShellByIdResponse, PutAssetAdministrationShellByIdError, ThrowOnError>({
|
|
67
|
-
url: '/shells/{aasIdentifier}',
|
|
68
|
-
...options,
|
|
69
|
-
headers: {
|
|
70
|
-
'Content-Type': 'application/json',
|
|
71
|
-
...options?.headers
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* Returns a specific Asset Administration Shell as a Reference
|
|
78
|
-
*/
|
|
79
|
-
export const getAssetAdministrationShellByIdReferenceAasRepository = <ThrowOnError extends boolean = false>(options: Options<GetAssetAdministrationShellByIdReferenceAasRepositoryData, ThrowOnError>) => {
|
|
80
|
-
return (options?.client ?? client).get<GetAssetAdministrationShellByIdReferenceAasRepositoryResponse, GetAssetAdministrationShellByIdReferenceAasRepositoryError, ThrowOnError>({
|
|
81
|
-
url: '/shells/{aasIdentifier}/$reference',
|
|
82
|
-
...options
|
|
83
|
-
});
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* Returns the Asset Information
|
|
88
|
-
*/
|
|
89
|
-
export const getAssetInformationAasRepository = <ThrowOnError extends boolean = false>(options: Options<GetAssetInformationAasRepositoryData, ThrowOnError>) => {
|
|
90
|
-
return (options?.client ?? client).get<GetAssetInformationAasRepositoryResponse, GetAssetInformationAasRepositoryError, ThrowOnError>({
|
|
91
|
-
url: '/shells/{aasIdentifier}/asset-information',
|
|
92
|
-
...options
|
|
93
|
-
});
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* Updates the Asset Information
|
|
98
|
-
*/
|
|
99
|
-
export const putAssetInformationAasRepository = <ThrowOnError extends boolean = false>(options: Options<PutAssetInformationAasRepositoryData, ThrowOnError>) => {
|
|
100
|
-
return (options?.client ?? client).put<PutAssetInformationAasRepositoryResponse, PutAssetInformationAasRepositoryError, ThrowOnError>({
|
|
101
|
-
url: '/shells/{aasIdentifier}/asset-information',
|
|
102
|
-
...options,
|
|
103
|
-
headers: {
|
|
104
|
-
'Content-Type': 'application/json',
|
|
105
|
-
...options?.headers
|
|
106
|
-
}
|
|
107
|
-
});
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
export const deleteThumbnailAasRepository = <ThrowOnError extends boolean = false>(options: Options<DeleteThumbnailAasRepositoryData, ThrowOnError>) => {
|
|
111
|
-
return (options?.client ?? client).delete<unknown, DeleteThumbnailAasRepositoryError, ThrowOnError>({
|
|
112
|
-
url: '/shells/{aasIdentifier}/asset-information/thumbnail',
|
|
113
|
-
...options
|
|
114
|
-
});
|
|
115
|
-
};
|
|
116
|
-
|
|
117
|
-
export const getThumbnailAasRepository = <ThrowOnError extends boolean = false>(options: Options<GetThumbnailAasRepositoryData, ThrowOnError>) => {
|
|
118
|
-
return (options?.client ?? client).get<GetThumbnailAasRepositoryResponse, GetThumbnailAasRepositoryError, ThrowOnError>({
|
|
119
|
-
url: '/shells/{aasIdentifier}/asset-information/thumbnail',
|
|
120
|
-
...options
|
|
121
|
-
});
|
|
122
|
-
};
|
|
123
|
-
|
|
124
|
-
export const putThumbnailAasRepository = <ThrowOnError extends boolean = false>(options: Options<PutThumbnailAasRepositoryData, ThrowOnError>) => {
|
|
125
|
-
return (options?.client ?? client).put<PutThumbnailAasRepositoryResponse, PutThumbnailAasRepositoryError, ThrowOnError>({
|
|
126
|
-
...formDataBodySerializer,
|
|
127
|
-
url: '/shells/{aasIdentifier}/asset-information/thumbnail',
|
|
128
|
-
...options,
|
|
129
|
-
headers: {
|
|
130
|
-
'Content-Type': null,
|
|
131
|
-
...options?.headers
|
|
132
|
-
}
|
|
133
|
-
});
|
|
134
|
-
};
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* Returns all submodel references
|
|
138
|
-
*/
|
|
139
|
-
export const getAllSubmodelReferencesAasRepository = <ThrowOnError extends boolean = false>(options: Options<GetAllSubmodelReferencesAasRepositoryData, ThrowOnError>) => {
|
|
140
|
-
return (options?.client ?? client).get<GetAllSubmodelReferencesAasRepositoryResponse, GetAllSubmodelReferencesAasRepositoryError, ThrowOnError>({
|
|
141
|
-
url: '/shells/{aasIdentifier}/submodel-refs',
|
|
142
|
-
...options
|
|
143
|
-
});
|
|
144
|
-
};
|
|
145
|
-
|
|
146
|
-
/**
|
|
147
|
-
* Creates a submodel reference at the Asset Administration Shell
|
|
148
|
-
*/
|
|
149
|
-
export const postSubmodelReferenceAasRepository = <ThrowOnError extends boolean = false>(options: Options<PostSubmodelReferenceAasRepositoryData, ThrowOnError>) => {
|
|
150
|
-
return (options?.client ?? client).post<PostSubmodelReferenceAasRepositoryResponse, PostSubmodelReferenceAasRepositoryError, ThrowOnError>({
|
|
151
|
-
url: '/shells/{aasIdentifier}/submodel-refs',
|
|
152
|
-
...options,
|
|
153
|
-
headers: {
|
|
154
|
-
'Content-Type': 'application/json',
|
|
155
|
-
...options?.headers
|
|
156
|
-
}
|
|
157
|
-
});
|
|
158
|
-
};
|
|
159
|
-
|
|
160
|
-
/**
|
|
161
|
-
* Deletes the submodel reference from the Asset Administration Shell. Does not delete the submodel itself!
|
|
162
|
-
*/
|
|
163
|
-
export const deleteSubmodelReferenceByIdAasRepository = <ThrowOnError extends boolean = false>(options: Options<DeleteSubmodelReferenceByIdAasRepositoryData, ThrowOnError>) => {
|
|
164
|
-
return (options?.client ?? client).delete<DeleteSubmodelReferenceByIdAasRepositoryResponse, DeleteSubmodelReferenceByIdAasRepositoryError, ThrowOnError>({
|
|
165
|
-
url: '/shells/{aasIdentifier}/submodel-refs/{submodelIdentifier}',
|
|
166
|
-
...options
|
|
167
|
-
});
|
|
168
|
-
};
|
|
169
|
-
|
|
170
|
-
/**
|
|
171
|
-
* Deletes the submodel from the Asset Administration Shell and the Repository.
|
|
172
|
-
*/
|
|
173
|
-
export const deleteSubmodelByIdAasRepository = <ThrowOnError extends boolean = false>(options: Options<DeleteSubmodelByIdAasRepositoryData, ThrowOnError>) => {
|
|
174
|
-
return (options?.client ?? client).delete<DeleteSubmodelByIdAasRepositoryResponse, DeleteSubmodelByIdAasRepositoryError, ThrowOnError>({
|
|
175
|
-
url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}',
|
|
176
|
-
...options
|
|
177
|
-
});
|
|
178
|
-
};
|
|
179
|
-
|
|
180
|
-
/**
|
|
181
|
-
* Returns the Submodel
|
|
182
|
-
*/
|
|
183
|
-
export const getSubmodelByIdAasRepository = <ThrowOnError extends boolean = false>(options: Options<GetSubmodelByIdAasRepositoryData, ThrowOnError>) => {
|
|
184
|
-
return (options?.client ?? client).get<GetSubmodelByIdAasRepositoryResponse, GetSubmodelByIdAasRepositoryError, ThrowOnError>({
|
|
185
|
-
url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}',
|
|
186
|
-
...options
|
|
187
|
-
});
|
|
188
|
-
};
|
|
189
|
-
|
|
190
|
-
/**
|
|
191
|
-
* Updates the Submodel
|
|
192
|
-
*/
|
|
193
|
-
export const patchSubmodelAasRepository = <ThrowOnError extends boolean = false>(options: Options<PatchSubmodelAasRepositoryData, ThrowOnError>) => {
|
|
194
|
-
return (options?.client ?? client).patch<PatchSubmodelAasRepositoryResponse, PatchSubmodelAasRepositoryError, ThrowOnError>({
|
|
195
|
-
url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}',
|
|
196
|
-
...options,
|
|
197
|
-
headers: {
|
|
198
|
-
'Content-Type': 'application/json',
|
|
199
|
-
...options?.headers
|
|
200
|
-
}
|
|
201
|
-
});
|
|
202
|
-
};
|
|
203
|
-
|
|
204
|
-
/**
|
|
205
|
-
* Updates the Submodel
|
|
206
|
-
*/
|
|
207
|
-
export const putSubmodelByIdAasRepository = <ThrowOnError extends boolean = false>(options: Options<PutSubmodelByIdAasRepositoryData, ThrowOnError>) => {
|
|
208
|
-
return (options?.client ?? client).put<PutSubmodelByIdAasRepositoryResponse, PutSubmodelByIdAasRepositoryError, ThrowOnError>({
|
|
209
|
-
url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}',
|
|
210
|
-
...options,
|
|
211
|
-
headers: {
|
|
212
|
-
'Content-Type': 'application/json',
|
|
213
|
-
...options?.headers
|
|
214
|
-
}
|
|
215
|
-
});
|
|
216
|
-
};
|
|
217
|
-
|
|
218
|
-
/**
|
|
219
|
-
* Returns the Submodel's metadata elements
|
|
220
|
-
*/
|
|
221
|
-
export const getSubmodelByIdMetadataAasRepository = <ThrowOnError extends boolean = false>(options: Options<GetSubmodelByIdMetadataAasRepositoryData, ThrowOnError>) => {
|
|
222
|
-
return (options?.client ?? client).get<GetSubmodelByIdMetadataAasRepositoryResponse, GetSubmodelByIdMetadataAasRepositoryError, ThrowOnError>({
|
|
223
|
-
url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/$metadata',
|
|
224
|
-
...options
|
|
225
|
-
});
|
|
226
|
-
};
|
|
227
|
-
|
|
228
|
-
/**
|
|
229
|
-
* Updates the metadata attributes of the Submodel
|
|
230
|
-
*/
|
|
231
|
-
export const patchSubmodelByIdMetadataAasRepository = <ThrowOnError extends boolean = false>(options: Options<PatchSubmodelByIdMetadataAasRepositoryData, ThrowOnError>) => {
|
|
232
|
-
return (options?.client ?? client).patch<PatchSubmodelByIdMetadataAasRepositoryResponse, PatchSubmodelByIdMetadataAasRepositoryError, ThrowOnError>({
|
|
233
|
-
url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/$metadata',
|
|
234
|
-
...options,
|
|
235
|
-
headers: {
|
|
236
|
-
'Content-Type': 'application/json',
|
|
237
|
-
...options?.headers
|
|
238
|
-
}
|
|
239
|
-
});
|
|
240
|
-
};
|
|
241
|
-
|
|
242
|
-
/**
|
|
243
|
-
* Returns the Submodel's ValueOnly representation
|
|
244
|
-
*/
|
|
245
|
-
export const getSubmodelByIdValueOnlyAasRepository = <ThrowOnError extends boolean = false>(options: Options<GetSubmodelByIdValueOnlyAasRepositoryData, ThrowOnError>) => {
|
|
246
|
-
return (options?.client ?? client).get<GetSubmodelByIdValueOnlyAasRepositoryResponse, GetSubmodelByIdValueOnlyAasRepositoryError, ThrowOnError>({
|
|
247
|
-
url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/$value',
|
|
248
|
-
...options
|
|
249
|
-
});
|
|
250
|
-
};
|
|
251
|
-
|
|
252
|
-
/**
|
|
253
|
-
* Updates the values of the Submodel
|
|
254
|
-
*/
|
|
255
|
-
export const patchSubmodelByIdValueOnlyAasRepository = <ThrowOnError extends boolean = false>(options: Options<PatchSubmodelByIdValueOnlyAasRepositoryData, ThrowOnError>) => {
|
|
256
|
-
return (options?.client ?? client).patch<PatchSubmodelByIdValueOnlyAasRepositoryResponse, PatchSubmodelByIdValueOnlyAasRepositoryError, ThrowOnError>({
|
|
257
|
-
url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/$value',
|
|
258
|
-
...options,
|
|
259
|
-
headers: {
|
|
260
|
-
'Content-Type': 'application/json',
|
|
261
|
-
...options?.headers
|
|
262
|
-
}
|
|
263
|
-
});
|
|
264
|
-
};
|
|
265
|
-
|
|
266
|
-
/**
|
|
267
|
-
* Returns the Submodel as a Reference
|
|
268
|
-
*/
|
|
269
|
-
export const getSubmodelByIdReferenceAasRepository = <ThrowOnError extends boolean = false>(options: Options<GetSubmodelByIdReferenceAasRepositoryData, ThrowOnError>) => {
|
|
270
|
-
return (options?.client ?? client).get<GetSubmodelByIdReferenceAasRepositoryResponse, GetSubmodelByIdReferenceAasRepositoryError, ThrowOnError>({
|
|
271
|
-
url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/$reference',
|
|
272
|
-
...options
|
|
273
|
-
});
|
|
274
|
-
};
|
|
275
|
-
|
|
276
|
-
/**
|
|
277
|
-
* Returns the Submodel's metadata elements
|
|
278
|
-
*/
|
|
279
|
-
export const getSubmodelByIdPathAasRepository = <ThrowOnError extends boolean = false>(options: Options<GetSubmodelByIdPathAasRepositoryData, ThrowOnError>) => {
|
|
280
|
-
return (options?.client ?? client).get<GetSubmodelByIdPathAasRepositoryResponse, GetSubmodelByIdPathAasRepositoryError, ThrowOnError>({
|
|
281
|
-
url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/$path',
|
|
282
|
-
...options
|
|
283
|
-
});
|
|
284
|
-
};
|
|
285
|
-
|
|
286
|
-
/**
|
|
287
|
-
* Returns all submodel elements including their hierarchy
|
|
288
|
-
*/
|
|
289
|
-
export const getAllSubmodelElementsAasRepository = <ThrowOnError extends boolean = false>(options: Options<GetAllSubmodelElementsAasRepositoryData, ThrowOnError>) => {
|
|
290
|
-
return (options?.client ?? client).get<GetAllSubmodelElementsAasRepositoryResponse, GetAllSubmodelElementsAasRepositoryError, ThrowOnError>({
|
|
291
|
-
url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements',
|
|
292
|
-
...options
|
|
293
|
-
});
|
|
294
|
-
};
|
|
295
|
-
|
|
296
|
-
/**
|
|
297
|
-
* Creates a new submodel element
|
|
298
|
-
*/
|
|
299
|
-
export const postSubmodelElementAasRepository = <ThrowOnError extends boolean = false>(options: Options<PostSubmodelElementAasRepositoryData, ThrowOnError>) => {
|
|
300
|
-
return (options?.client ?? client).post<PostSubmodelElementAasRepositoryResponse, PostSubmodelElementAasRepositoryError, ThrowOnError>({
|
|
301
|
-
url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements',
|
|
302
|
-
...options,
|
|
303
|
-
headers: {
|
|
304
|
-
'Content-Type': 'application/json',
|
|
305
|
-
...options?.headers
|
|
306
|
-
}
|
|
307
|
-
});
|
|
308
|
-
};
|
|
309
|
-
|
|
310
|
-
/**
|
|
311
|
-
* Returns all submodel elements including their hierarchy
|
|
312
|
-
*/
|
|
313
|
-
export const getAllSubmodelElementsMetadataAasRepository = <ThrowOnError extends boolean = false>(options: Options<GetAllSubmodelElementsMetadataAasRepositoryData, ThrowOnError>) => {
|
|
314
|
-
return (options?.client ?? client).get<GetAllSubmodelElementsMetadataAasRepositoryResponse, GetAllSubmodelElementsMetadataAasRepositoryError, ThrowOnError>({
|
|
315
|
-
url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/$metadata',
|
|
316
|
-
...options
|
|
317
|
-
});
|
|
318
|
-
};
|
|
319
|
-
|
|
320
|
-
/**
|
|
321
|
-
* Returns all submodel elements including their hierarchy in the ValueOnly representation
|
|
322
|
-
*/
|
|
323
|
-
export const getAllSubmodelElementsValueOnlyAasRepository = <ThrowOnError extends boolean = false>(options: Options<GetAllSubmodelElementsValueOnlyAasRepositoryData, ThrowOnError>) => {
|
|
324
|
-
return (options?.client ?? client).get<GetAllSubmodelElementsValueOnlyAasRepositoryResponse, GetAllSubmodelElementsValueOnlyAasRepositoryError, ThrowOnError>({
|
|
325
|
-
url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/$value',
|
|
326
|
-
...options
|
|
327
|
-
});
|
|
328
|
-
};
|
|
329
|
-
|
|
330
|
-
/**
|
|
331
|
-
* Returns all submodel elements as a list of References
|
|
332
|
-
*/
|
|
333
|
-
export const getAllSubmodelElementsReferenceAasRepository = <ThrowOnError extends boolean = false>(options: Options<GetAllSubmodelElementsReferenceAasRepositoryData, ThrowOnError>) => {
|
|
334
|
-
return (options?.client ?? client).get<GetAllSubmodelElementsReferenceAasRepositoryResponse, GetAllSubmodelElementsReferenceAasRepositoryError, ThrowOnError>({
|
|
335
|
-
url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/$reference',
|
|
336
|
-
...options
|
|
337
|
-
});
|
|
338
|
-
};
|
|
339
|
-
|
|
340
|
-
/**
|
|
341
|
-
* Returns all submodel elements including their hierarchy
|
|
342
|
-
*/
|
|
343
|
-
export const getAllSubmodelElementsPathAasRepository = <ThrowOnError extends boolean = false>(options: Options<GetAllSubmodelElementsPathAasRepositoryData, ThrowOnError>) => {
|
|
344
|
-
return (options?.client ?? client).get<GetAllSubmodelElementsPathAasRepositoryResponse, GetAllSubmodelElementsPathAasRepositoryError, ThrowOnError>({
|
|
345
|
-
url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/$path',
|
|
346
|
-
...options
|
|
347
|
-
});
|
|
348
|
-
};
|
|
349
|
-
|
|
350
|
-
/**
|
|
351
|
-
* Deletes a submodel element at a specified path within the submodel elements hierarchy
|
|
352
|
-
*/
|
|
353
|
-
export const deleteSubmodelElementByPathAasRepository = <ThrowOnError extends boolean = false>(options: Options<DeleteSubmodelElementByPathAasRepositoryData, ThrowOnError>) => {
|
|
354
|
-
return (options?.client ?? client).delete<DeleteSubmodelElementByPathAasRepositoryResponse, DeleteSubmodelElementByPathAasRepositoryError, ThrowOnError>({
|
|
355
|
-
url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}',
|
|
356
|
-
...options
|
|
357
|
-
});
|
|
358
|
-
};
|
|
359
|
-
|
|
360
|
-
/**
|
|
361
|
-
* Returns a specific submodel element from the Submodel at a specified path
|
|
362
|
-
*/
|
|
363
|
-
export const getSubmodelElementByPathAasRepository = <ThrowOnError extends boolean = false>(options: Options<GetSubmodelElementByPathAasRepositoryData, ThrowOnError>) => {
|
|
364
|
-
return (options?.client ?? client).get<GetSubmodelElementByPathAasRepositoryResponse, GetSubmodelElementByPathAasRepositoryError, ThrowOnError>({
|
|
365
|
-
url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}',
|
|
366
|
-
...options
|
|
367
|
-
});
|
|
368
|
-
};
|
|
369
|
-
|
|
370
|
-
/**
|
|
371
|
-
* Updates an existing submodel element value at a specified path within submodel elements hierarchy
|
|
372
|
-
*/
|
|
373
|
-
export const patchSubmodelElementValueByPathAasRepository = <ThrowOnError extends boolean = false>(options: Options<PatchSubmodelElementValueByPathAasRepositoryData, ThrowOnError>) => {
|
|
374
|
-
return (options?.client ?? client).patch<PatchSubmodelElementValueByPathAasRepositoryResponse, PatchSubmodelElementValueByPathAasRepositoryError, ThrowOnError>({
|
|
375
|
-
url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}',
|
|
376
|
-
...options,
|
|
377
|
-
headers: {
|
|
378
|
-
'Content-Type': 'application/json',
|
|
379
|
-
...options?.headers
|
|
380
|
-
}
|
|
381
|
-
});
|
|
382
|
-
};
|
|
383
|
-
|
|
384
|
-
/**
|
|
385
|
-
* Creates a new submodel element at a specified path within submodel elements hierarchy
|
|
386
|
-
*/
|
|
387
|
-
export const postSubmodelElementByPathAasRepository = <ThrowOnError extends boolean = false>(options: Options<PostSubmodelElementByPathAasRepositoryData, ThrowOnError>) => {
|
|
388
|
-
return (options?.client ?? client).post<PostSubmodelElementByPathAasRepositoryResponse, PostSubmodelElementByPathAasRepositoryError, ThrowOnError>({
|
|
389
|
-
url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}',
|
|
390
|
-
...options,
|
|
391
|
-
headers: {
|
|
392
|
-
'Content-Type': 'application/json',
|
|
393
|
-
...options?.headers
|
|
394
|
-
}
|
|
395
|
-
});
|
|
396
|
-
};
|
|
397
|
-
|
|
398
|
-
/**
|
|
399
|
-
* Updates an existing submodel element at a specified path within submodel elements hierarchy
|
|
400
|
-
*/
|
|
401
|
-
export const putSubmodelElementByPathAasRepository = <ThrowOnError extends boolean = false>(options: Options<PutSubmodelElementByPathAasRepositoryData, ThrowOnError>) => {
|
|
402
|
-
return (options?.client ?? client).put<PutSubmodelElementByPathAasRepositoryResponse, PutSubmodelElementByPathAasRepositoryError, ThrowOnError>({
|
|
403
|
-
url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}',
|
|
404
|
-
...options,
|
|
405
|
-
headers: {
|
|
406
|
-
'Content-Type': 'application/json',
|
|
407
|
-
...options?.headers
|
|
408
|
-
}
|
|
409
|
-
});
|
|
410
|
-
};
|
|
411
|
-
|
|
412
|
-
/**
|
|
413
|
-
* Returns the metadata attributes if a specific submodel element from the Submodel at a specified path
|
|
414
|
-
*/
|
|
415
|
-
export const getSubmodelElementByPathMetadataAasRepository = <ThrowOnError extends boolean = false>(options: Options<GetSubmodelElementByPathMetadataAasRepositoryData, ThrowOnError>) => {
|
|
416
|
-
return (options?.client ?? client).get<GetSubmodelElementByPathMetadataAasRepositoryResponse, GetSubmodelElementByPathMetadataAasRepositoryError, ThrowOnError>({
|
|
417
|
-
url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/$metadata',
|
|
418
|
-
...options
|
|
419
|
-
});
|
|
420
|
-
};
|
|
421
|
-
|
|
422
|
-
/**
|
|
423
|
-
* Updates the metadata attributes of an existing submodel element value at a specified path within submodel elements hierarchy
|
|
424
|
-
*/
|
|
425
|
-
export const patchSubmodelElementValueByPathMetadata = <ThrowOnError extends boolean = false>(options: Options<PatchSubmodelElementValueByPathMetadataData, ThrowOnError>) => {
|
|
426
|
-
return (options?.client ?? client).patch<PatchSubmodelElementValueByPathMetadataResponse, PatchSubmodelElementValueByPathMetadataError, ThrowOnError>({
|
|
427
|
-
url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/$metadata',
|
|
428
|
-
...options,
|
|
429
|
-
headers: {
|
|
430
|
-
'Content-Type': 'application/json',
|
|
431
|
-
...options?.headers
|
|
432
|
-
}
|
|
433
|
-
});
|
|
434
|
-
};
|
|
435
|
-
|
|
436
|
-
/**
|
|
437
|
-
* Returns a specific submodel element from the Submodel at a specified path in the ValueOnly representation
|
|
438
|
-
*/
|
|
439
|
-
export const getSubmodelElementByPathValueOnlyAasRepository = <ThrowOnError extends boolean = false>(options: Options<GetSubmodelElementByPathValueOnlyAasRepositoryData, ThrowOnError>) => {
|
|
440
|
-
return (options?.client ?? client).get<GetSubmodelElementByPathValueOnlyAasRepositoryResponse, GetSubmodelElementByPathValueOnlyAasRepositoryError, ThrowOnError>({
|
|
441
|
-
url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/$value',
|
|
442
|
-
...options
|
|
443
|
-
});
|
|
444
|
-
};
|
|
445
|
-
|
|
446
|
-
/**
|
|
447
|
-
* Updates the value of an existing submodel element value at a specified path within submodel elements hierarchy
|
|
448
|
-
*/
|
|
449
|
-
export const patchSubmodelElementValueByPathValueOnly = <ThrowOnError extends boolean = false>(options: Options<PatchSubmodelElementValueByPathValueOnlyData, ThrowOnError>) => {
|
|
450
|
-
return (options?.client ?? client).patch<PatchSubmodelElementValueByPathValueOnlyResponse, PatchSubmodelElementValueByPathValueOnlyError, ThrowOnError>({
|
|
451
|
-
url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/$value',
|
|
452
|
-
...options,
|
|
453
|
-
headers: {
|
|
454
|
-
'Content-Type': 'application/json',
|
|
455
|
-
...options?.headers
|
|
456
|
-
},
|
|
457
|
-
body: options?.body as number | Record<string, unknown> | BodyInit | Record<string, unknown>[] | unknown[] | null | undefined
|
|
458
|
-
});
|
|
459
|
-
};
|
|
460
|
-
|
|
461
|
-
/**
|
|
462
|
-
* Returns the Reference of a specific submodel element from the Submodel at a specified path
|
|
463
|
-
*/
|
|
464
|
-
export const getSubmodelElementByPathReferenceAasRepository = <ThrowOnError extends boolean = false>(options: Options<GetSubmodelElementByPathReferenceAasRepositoryData, ThrowOnError>) => {
|
|
465
|
-
return (options?.client ?? client).get<GetSubmodelElementByPathReferenceAasRepositoryResponse, GetSubmodelElementByPathReferenceAasRepositoryError, ThrowOnError>({
|
|
466
|
-
url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/$reference',
|
|
467
|
-
...options
|
|
468
|
-
});
|
|
469
|
-
};
|
|
470
|
-
|
|
471
|
-
/**
|
|
472
|
-
* Returns a specific submodel element from the Submodel at a specified path in the Path notation
|
|
473
|
-
*/
|
|
474
|
-
export const getSubmodelElementByPathPathAasRepository = <ThrowOnError extends boolean = false>(options: Options<GetSubmodelElementByPathPathAasRepositoryData, ThrowOnError>) => {
|
|
475
|
-
return (options?.client ?? client).get<GetSubmodelElementByPathPathAasRepositoryResponse, GetSubmodelElementByPathPathAasRepositoryError, ThrowOnError>({
|
|
476
|
-
url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/$path',
|
|
477
|
-
...options
|
|
478
|
-
});
|
|
479
|
-
};
|
|
480
|
-
|
|
481
|
-
/**
|
|
482
|
-
* Deletes file content of an existing submodel element at a specified path within submodel elements hierarchy
|
|
483
|
-
*/
|
|
484
|
-
export const deleteFileByPathAasRepository = <ThrowOnError extends boolean = false>(options: Options<DeleteFileByPathAasRepositoryData, ThrowOnError>) => {
|
|
485
|
-
return (options?.client ?? client).delete<unknown, DeleteFileByPathAasRepositoryError, ThrowOnError>({
|
|
486
|
-
url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/attachment',
|
|
487
|
-
...options
|
|
488
|
-
});
|
|
489
|
-
};
|
|
490
|
-
|
|
491
|
-
/**
|
|
492
|
-
* Downloads file content from a specific submodel element from the Submodel at a specified path
|
|
493
|
-
*/
|
|
494
|
-
export const getFileByPathAasRepository = <ThrowOnError extends boolean = false>(options: Options<GetFileByPathAasRepositoryData, ThrowOnError>) => {
|
|
495
|
-
return (options?.client ?? client).get<GetFileByPathAasRepositoryResponse, GetFileByPathAasRepositoryError, ThrowOnError>({
|
|
496
|
-
url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/attachment',
|
|
497
|
-
...options
|
|
498
|
-
});
|
|
499
|
-
};
|
|
500
|
-
|
|
501
|
-
/**
|
|
502
|
-
* Uploads file content to an existing submodel element at a specified path within submodel elements hierarchy
|
|
503
|
-
*/
|
|
504
|
-
export const putFileByPathAasRepository = <ThrowOnError extends boolean = false>(options: Options<PutFileByPathAasRepositoryData, ThrowOnError>) => {
|
|
505
|
-
return (options?.client ?? client).put<PutFileByPathAasRepositoryResponse, PutFileByPathAasRepositoryError, ThrowOnError>({
|
|
506
|
-
...formDataBodySerializer,
|
|
507
|
-
url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/attachment',
|
|
508
|
-
...options,
|
|
509
|
-
headers: {
|
|
510
|
-
'Content-Type': null,
|
|
511
|
-
...options?.headers
|
|
512
|
-
}
|
|
513
|
-
});
|
|
514
|
-
};
|
|
515
|
-
|
|
516
|
-
/**
|
|
517
|
-
* Synchronously invokes an Operation at a specified path
|
|
518
|
-
*/
|
|
519
|
-
export const invokeOperationAasRepository = <ThrowOnError extends boolean = false>(options: Options<InvokeOperationAasRepositoryData, ThrowOnError>) => {
|
|
520
|
-
return (options?.client ?? client).post<InvokeOperationAasRepositoryResponse, InvokeOperationAasRepositoryError, ThrowOnError>({
|
|
521
|
-
url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/invoke',
|
|
522
|
-
...options,
|
|
523
|
-
headers: {
|
|
524
|
-
'Content-Type': 'application/json',
|
|
525
|
-
...options?.headers
|
|
526
|
-
}
|
|
527
|
-
});
|
|
528
|
-
};
|
|
529
|
-
|
|
530
|
-
/**
|
|
531
|
-
* Synchronously invokes an Operation at a specified path
|
|
532
|
-
*/
|
|
533
|
-
export const invokeOperationValueOnlyAasRepository = <ThrowOnError extends boolean = false>(options: Options<InvokeOperationValueOnlyAasRepositoryData, ThrowOnError>) => {
|
|
534
|
-
return (options?.client ?? client).post<InvokeOperationValueOnlyAasRepositoryResponse, InvokeOperationValueOnlyAasRepositoryError, ThrowOnError>({
|
|
535
|
-
url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/invoke/$value',
|
|
536
|
-
...options,
|
|
537
|
-
headers: {
|
|
538
|
-
'Content-Type': 'application/json',
|
|
539
|
-
...options?.headers
|
|
540
|
-
}
|
|
541
|
-
});
|
|
542
|
-
};
|
|
543
|
-
|
|
544
|
-
/**
|
|
545
|
-
* Asynchronously invokes an Operation at a specified path
|
|
546
|
-
*/
|
|
547
|
-
export const invokeOperationAsyncAasRepository = <ThrowOnError extends boolean = false>(options: Options<InvokeOperationAsyncAasRepositoryData, ThrowOnError>) => {
|
|
548
|
-
return (options?.client ?? client).post<unknown, InvokeOperationAsyncAasRepositoryError, ThrowOnError>({
|
|
549
|
-
url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/invoke-async',
|
|
550
|
-
...options,
|
|
551
|
-
headers: {
|
|
552
|
-
'Content-Type': 'application/json',
|
|
553
|
-
...options?.headers
|
|
554
|
-
}
|
|
555
|
-
});
|
|
556
|
-
};
|
|
557
|
-
|
|
558
|
-
/**
|
|
559
|
-
* Asynchronously invokes an Operation at a specified path
|
|
560
|
-
*/
|
|
561
|
-
export const invokeOperationAsyncValueOnlyAasRepository = <ThrowOnError extends boolean = false>(options: Options<InvokeOperationAsyncValueOnlyAasRepositoryData, ThrowOnError>) => {
|
|
562
|
-
return (options?.client ?? client).post<unknown, InvokeOperationAsyncValueOnlyAasRepositoryError, ThrowOnError>({
|
|
563
|
-
url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/invoke-async/$value',
|
|
564
|
-
...options,
|
|
565
|
-
headers: {
|
|
566
|
-
'Content-Type': 'application/json',
|
|
567
|
-
...options?.headers
|
|
568
|
-
}
|
|
569
|
-
});
|
|
570
|
-
};
|
|
571
|
-
|
|
572
|
-
/**
|
|
573
|
-
* Returns the Operation status of an asynchronous invoked Operation
|
|
574
|
-
*/
|
|
575
|
-
export const getOperationAsyncStatusAasRepository = <ThrowOnError extends boolean = false>(options: Options<GetOperationAsyncStatusAasRepositoryData, ThrowOnError>) => {
|
|
576
|
-
return (options?.client ?? client).get<GetOperationAsyncStatusAasRepositoryResponse, GetOperationAsyncStatusAasRepositoryError, ThrowOnError>({
|
|
577
|
-
url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/operation-status/{handleId}',
|
|
578
|
-
...options
|
|
579
|
-
});
|
|
580
|
-
};
|
|
581
|
-
|
|
582
|
-
/**
|
|
583
|
-
* Returns the Operation result of an asynchronous invoked Operation
|
|
584
|
-
*/
|
|
585
|
-
export const getOperationAsyncResultAasRepository = <ThrowOnError extends boolean = false>(options: Options<GetOperationAsyncResultAasRepositoryData, ThrowOnError>) => {
|
|
586
|
-
return (options?.client ?? client).get<GetOperationAsyncResultAasRepositoryResponse, GetOperationAsyncResultAasRepositoryError, ThrowOnError>({
|
|
587
|
-
url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/operation-results/{handleId}',
|
|
588
|
-
...options
|
|
589
|
-
});
|
|
590
|
-
};
|
|
591
|
-
|
|
592
|
-
/**
|
|
593
|
-
* Returns the ValueOnly notation of the Operation result of an asynchronous invoked Operation
|
|
594
|
-
*/
|
|
595
|
-
export const getOperationAsyncResultValueOnlyAasRepository = <ThrowOnError extends boolean = false>(options: Options<GetOperationAsyncResultValueOnlyAasRepositoryData, ThrowOnError>) => {
|
|
596
|
-
return (options?.client ?? client).get<GetOperationAsyncResultValueOnlyAasRepositoryResponse, GetOperationAsyncResultValueOnlyAasRepositoryError, ThrowOnError>({
|
|
597
|
-
url: '/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/operation-results/{handleId}/$value',
|
|
598
|
-
...options
|
|
599
|
-
});
|
|
600
|
-
};
|
|
601
|
-
|
|
602
|
-
/**
|
|
603
|
-
* Returns an appropriate serialization based on the specified format (see SerializationFormat)
|
|
604
|
-
*/
|
|
605
|
-
export const generateSerializationByIds = <ThrowOnError extends boolean = false>(options?: Options<GenerateSerializationByIdsData, ThrowOnError>) => {
|
|
606
|
-
return (options?.client ?? client).get<GenerateSerializationByIdsResponse, GenerateSerializationByIdsError, ThrowOnError>({
|
|
607
|
-
url: '/serialization',
|
|
608
|
-
...options
|
|
609
|
-
});
|
|
610
|
-
};
|
|
611
|
-
|
|
612
|
-
/**
|
|
613
|
-
* Returns the self-describing information of a network resource (ServiceDescription)
|
|
614
|
-
*/
|
|
615
|
-
export const getDescription = <ThrowOnError extends boolean = false>(options?: Options<GetDescriptionData, ThrowOnError>) => {
|
|
616
|
-
return (options?.client ?? client).get<GetDescriptionResponse, GetDescriptionError, ThrowOnError>({
|
|
617
|
-
url: '/description',
|
|
618
|
-
...options
|
|
619
|
-
});
|
|
620
|
-
};
|