@shapediver/sdk.geometry-api-sdk-v2 3.7.0 → 4.1.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.
- package/README.md +5 -5
- package/dist/UtilsApi.d.ts +19 -29
- package/dist/UtilsApi.d.ts.map +1 -1
- package/dist/UtilsApi.js +140 -135
- package/dist/UtilsApi.js.map +1 -1
- package/dist/base.d.ts +2 -5
- package/dist/base.d.ts.map +1 -1
- package/dist/base.js +30 -36
- package/dist/base.js.map +1 -1
- package/dist/client/apis/AnalyticsApi.d.ts +38 -0
- package/dist/client/apis/AnalyticsApi.d.ts.map +1 -0
- package/dist/client/apis/AnalyticsApi.js +245 -0
- package/dist/client/apis/AnalyticsApi.js.map +1 -0
- package/dist/client/apis/ArSceneApi.d.ts +23 -0
- package/dist/client/apis/ArSceneApi.d.ts.map +1 -0
- package/dist/client/apis/ArSceneApi.js +140 -0
- package/dist/client/apis/ArSceneApi.js.map +1 -0
- package/dist/client/apis/AssetsApi.d.ts +54 -0
- package/dist/client/apis/AssetsApi.d.ts.map +1 -0
- package/dist/client/apis/AssetsApi.js +329 -0
- package/dist/client/apis/AssetsApi.js.map +1 -0
- package/dist/client/apis/AuthApi.d.ts +8 -0
- package/dist/client/apis/AuthApi.d.ts.map +1 -0
- package/dist/client/apis/AuthApi.js +77 -0
- package/dist/client/apis/AuthApi.js.map +1 -0
- package/dist/client/apis/AuthGroupApi.d.ts +12 -0
- package/dist/client/apis/AuthGroupApi.d.ts.map +1 -0
- package/dist/client/apis/AuthGroupApi.js +89 -0
- package/dist/client/apis/AuthGroupApi.js.map +1 -0
- package/dist/client/apis/ExportApi.d.ts +38 -0
- package/dist/client/apis/ExportApi.d.ts.map +1 -0
- package/dist/client/apis/ExportApi.js +230 -0
- package/dist/client/apis/ExportApi.js.map +1 -0
- package/dist/client/apis/FileApi.d.ts +45 -0
- package/dist/client/apis/FileApi.d.ts.map +1 -0
- package/dist/client/apis/FileApi.js +271 -0
- package/dist/client/apis/FileApi.js.map +1 -0
- package/dist/client/apis/GltfApi.d.ts +14 -0
- package/dist/client/apis/GltfApi.d.ts.map +1 -0
- package/dist/client/apis/GltfApi.js +96 -0
- package/dist/client/apis/GltfApi.js.map +1 -0
- package/dist/client/apis/LogApi.d.ts +13 -0
- package/dist/client/apis/LogApi.d.ts.map +1 -0
- package/dist/client/apis/LogApi.js +93 -0
- package/dist/client/apis/LogApi.js.map +1 -0
- package/dist/client/apis/ModelApi.d.ts +129 -0
- package/dist/client/apis/ModelApi.d.ts.map +1 -0
- package/dist/client/apis/ModelApi.js +762 -0
- package/dist/client/apis/ModelApi.js.map +1 -0
- package/dist/client/apis/ModelStateApi.d.ts +57 -0
- package/dist/client/apis/ModelStateApi.d.ts.map +1 -0
- package/dist/client/apis/ModelStateApi.js +328 -0
- package/dist/client/apis/ModelStateApi.js.map +1 -0
- package/dist/client/apis/OutputApi.d.ts +38 -0
- package/dist/client/apis/OutputApi.d.ts.map +1 -0
- package/dist/client/apis/OutputApi.js +230 -0
- package/dist/client/apis/OutputApi.js.map +1 -0
- package/dist/client/apis/ScriptApi.d.ts +17 -0
- package/dist/client/apis/ScriptApi.d.ts.map +1 -0
- package/dist/client/apis/ScriptApi.js +127 -0
- package/dist/client/apis/ScriptApi.js.map +1 -0
- package/dist/client/apis/SdtfApi.d.ts +37 -0
- package/dist/client/apis/SdtfApi.d.ts.map +1 -0
- package/dist/client/apis/SdtfApi.js +227 -0
- package/dist/client/apis/SdtfApi.js.map +1 -0
- package/dist/client/apis/SessionApi.d.ts +51 -0
- package/dist/client/apis/SessionApi.d.ts.map +1 -0
- package/dist/client/apis/SessionApi.js +300 -0
- package/dist/client/apis/SessionApi.js.map +1 -0
- package/dist/client/apis/SystemApi.d.ts +28 -0
- package/dist/client/apis/SystemApi.d.ts.map +1 -0
- package/dist/client/apis/SystemApi.js +235 -0
- package/dist/client/apis/SystemApi.js.map +1 -0
- package/dist/client/apis/TextureApi.d.ts +13 -0
- package/dist/client/apis/TextureApi.d.ts.map +1 -0
- package/dist/client/apis/TextureApi.js +91 -0
- package/dist/client/apis/TextureApi.js.map +1 -0
- package/dist/client/apis/index.d.ts +18 -0
- package/dist/client/apis/index.d.ts.map +1 -0
- package/dist/client/apis/index.js +34 -0
- package/dist/client/apis/index.js.map +1 -0
- package/dist/client/index.d.ts +3 -2
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +3 -2
- package/dist/client/index.js.map +1 -1
- package/dist/client/models/index.d.ts +1671 -0
- package/dist/client/models/index.d.ts.map +1 -0
- package/dist/client/models/index.js +239 -0
- package/dist/client/models/index.js.map +1 -0
- package/dist/client/runtime.d.ts +154 -0
- package/dist/client/runtime.d.ts.map +1 -0
- package/dist/client/runtime.js +323 -0
- package/dist/client/runtime.js.map +1 -0
- package/dist/configuration.d.ts +2 -7
- package/dist/configuration.d.ts.map +1 -1
- package/dist/configuration.js +21 -16
- package/dist/configuration.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/utils.d.ts +2 -3
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +16 -13
- package/dist/utils.js.map +1 -1
- package/package.json +3 -9
- package/src/UtilsApi.ts +265 -318
- package/src/base.ts +48 -46
- package/src/client/apis/AnalyticsApi.ts +347 -0
- package/src/client/apis/ArSceneApi.ts +172 -0
- package/src/client/apis/AssetsApi.ts +474 -0
- package/src/client/apis/AuthApi.ts +63 -0
- package/src/client/apis/AuthGroupApi.ts +89 -0
- package/src/client/apis/ExportApi.ts +332 -0
- package/src/client/apis/FileApi.ts +401 -0
- package/src/client/apis/GltfApi.ts +101 -0
- package/src/client/apis/LogApi.ts +96 -0
- package/src/client/apis/ModelApi.ts +1206 -0
- package/src/client/apis/ModelStateApi.ts +479 -0
- package/src/client/apis/OutputApi.ts +333 -0
- package/src/client/apis/ScriptApi.ts +142 -0
- package/src/client/apis/SdtfApi.ts +327 -0
- package/src/client/apis/SessionApi.ts +435 -0
- package/src/client/apis/SystemApi.ts +301 -0
- package/src/client/apis/TextureApi.ts +91 -0
- package/src/client/apis/index.ts +19 -0
- package/src/client/index.ts +3 -16
- package/src/client/models/index.ts +7367 -0
- package/src/client/runtime.ts +442 -0
- package/src/configuration.ts +31 -38
- package/src/error.ts +2 -2
- package/src/index.ts +2 -1
- package/src/utils.ts +53 -25
- package/dist/client/api.d.ts +0 -2111
- package/dist/client/api.d.ts.map +0 -1
- package/dist/client/api.js +0 -3576
- package/dist/client/api.js.map +0 -1
- package/dist/client/base.d.ts +0 -32
- package/dist/client/base.d.ts.map +0 -1
- package/dist/client/base.js +0 -37
- package/dist/client/base.js.map +0 -1
- package/dist/client/common.d.ts +0 -15
- package/dist/client/common.d.ts.map +0 -1
- package/dist/client/common.js +0 -117
- package/dist/client/common.js.map +0 -1
- package/dist/client/configuration.d.ts +0 -37
- package/dist/client/configuration.d.ts.map +0 -1
- package/dist/client/configuration.js +0 -23
- package/dist/client/configuration.js.map +0 -1
- package/src/client/api.ts +0 -11052
- package/src/client/base.ts +0 -62
- package/src/client/common.ts +0 -127
- package/src/client/configuration.ts +0 -121
|
@@ -0,0 +1,332 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Geometry Backend API v2
|
|
5
|
+
* The ShapeDiver Geometry Backend system is used to: * host Grasshopper models in a secure, reliable, scalable, and performant way, * run computations of Grasshopper models, * and cache and output the results of computations and exports.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2.5.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import * as runtime from '../runtime';
|
|
16
|
+
import { BaseAPI } from '../../base';
|
|
17
|
+
import type {
|
|
18
|
+
QueryComputationStatus,
|
|
19
|
+
ReqExport,
|
|
20
|
+
ReqExportDefinitions,
|
|
21
|
+
ReqExportOrCache,
|
|
22
|
+
ResComputeExports,
|
|
23
|
+
ResError,
|
|
24
|
+
ResGetCachedExports,
|
|
25
|
+
ResListExportVersions,
|
|
26
|
+
ResUpdateExportDefinitions,
|
|
27
|
+
} from '../models/index';
|
|
28
|
+
|
|
29
|
+
export interface ComputeExportsRequest {
|
|
30
|
+
sessionId: string;
|
|
31
|
+
reqExport: ReqExport;
|
|
32
|
+
ignoreUnknownParams?: boolean;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface GetCachedExportsRequest {
|
|
36
|
+
sessionId: string;
|
|
37
|
+
reqExportOrCache: ReqExportOrCache;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export interface ListExportVersionsRequest {
|
|
41
|
+
sessionId: string;
|
|
42
|
+
exportId: string;
|
|
43
|
+
statusComputation?: QueryComputationStatus;
|
|
44
|
+
statusCollect?: QueryComputationStatus;
|
|
45
|
+
offset?: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export interface UpdateExportDefinitionsRequest {
|
|
49
|
+
modelId: string;
|
|
50
|
+
reqExportDefinitions: ReqExportDefinitions;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
*/
|
|
56
|
+
export class ExportApi extends BaseAPI {
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Creates request options for computeExports without sending the request
|
|
60
|
+
*/
|
|
61
|
+
async computeExportsRequestOpts(requestParameters: ComputeExportsRequest): Promise<runtime.RequestOpts> {
|
|
62
|
+
if (requestParameters['sessionId'] == null) {
|
|
63
|
+
throw new runtime.RequiredError(
|
|
64
|
+
'sessionId',
|
|
65
|
+
'Required parameter "sessionId" was null or undefined when calling computeExports().'
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
if (requestParameters['reqExport'] == null) {
|
|
70
|
+
throw new runtime.RequiredError(
|
|
71
|
+
'reqExport',
|
|
72
|
+
'Required parameter "reqExport" was null or undefined when calling computeExports().'
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
const queryParameters: any = {};
|
|
77
|
+
|
|
78
|
+
if (requestParameters['ignoreUnknownParams'] != null) {
|
|
79
|
+
queryParameters['ignoreUnknownParams'] = requestParameters['ignoreUnknownParams'];
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
83
|
+
|
|
84
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
85
|
+
|
|
86
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
87
|
+
const token = this.configuration.accessToken;
|
|
88
|
+
const tokenString = await token("JwtAuth", []);
|
|
89
|
+
|
|
90
|
+
if (tokenString) {
|
|
91
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
let urlPath = `/api/v2/session/{sessionId}/export`;
|
|
96
|
+
urlPath = urlPath.replace('{sessionId}', encodeURIComponent(String(requestParameters['sessionId'])));
|
|
97
|
+
|
|
98
|
+
return {
|
|
99
|
+
path: urlPath,
|
|
100
|
+
method: 'PUT',
|
|
101
|
+
headers: headerParameters,
|
|
102
|
+
query: queryParameters,
|
|
103
|
+
body: requestParameters['reqExport'],
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Permissions: * `compute.export.*` - __required__. * `compute.output.*` - __required__ when _outputs_ are requested.
|
|
109
|
+
* Compute a Grasshopper exports for given parameter values.
|
|
110
|
+
*/
|
|
111
|
+
async computeExportsRaw(requestParameters: ComputeExportsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ResComputeExports>> {
|
|
112
|
+
const requestOptions = await this.computeExportsRequestOpts(requestParameters);
|
|
113
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
114
|
+
|
|
115
|
+
return new runtime.JSONApiResponse(response);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Permissions: * `compute.export.*` - __required__. * `compute.output.*` - __required__ when _outputs_ are requested.
|
|
120
|
+
* Compute a Grasshopper exports for given parameter values.
|
|
121
|
+
*/
|
|
122
|
+
async computeExports(sessionId: string, reqExport: ReqExport, ignoreUnknownParams?: boolean, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ResComputeExports> {
|
|
123
|
+
const response = await this.computeExportsRaw({ sessionId: sessionId, reqExport: reqExport, ignoreUnknownParams: ignoreUnknownParams }, initOverrides);
|
|
124
|
+
return await response.value();
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Creates request options for getCachedExports without sending the request
|
|
129
|
+
*/
|
|
130
|
+
async getCachedExportsRequestOpts(requestParameters: GetCachedExportsRequest): Promise<runtime.RequestOpts> {
|
|
131
|
+
if (requestParameters['sessionId'] == null) {
|
|
132
|
+
throw new runtime.RequiredError(
|
|
133
|
+
'sessionId',
|
|
134
|
+
'Required parameter "sessionId" was null or undefined when calling getCachedExports().'
|
|
135
|
+
);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
if (requestParameters['reqExportOrCache'] == null) {
|
|
139
|
+
throw new runtime.RequiredError(
|
|
140
|
+
'reqExportOrCache',
|
|
141
|
+
'Required parameter "reqExportOrCache" was null or undefined when calling getCachedExports().'
|
|
142
|
+
);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
const queryParameters: any = {};
|
|
146
|
+
|
|
147
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
148
|
+
|
|
149
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
150
|
+
|
|
151
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
152
|
+
const token = this.configuration.accessToken;
|
|
153
|
+
const tokenString = await token("JwtAuth", []);
|
|
154
|
+
|
|
155
|
+
if (tokenString) {
|
|
156
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
let urlPath = `/api/v2/session/{sessionId}/export/cache`;
|
|
161
|
+
urlPath = urlPath.replace('{sessionId}', encodeURIComponent(String(requestParameters['sessionId'])));
|
|
162
|
+
|
|
163
|
+
return {
|
|
164
|
+
path: urlPath,
|
|
165
|
+
method: 'PUT',
|
|
166
|
+
headers: headerParameters,
|
|
167
|
+
query: queryParameters,
|
|
168
|
+
body: requestParameters['reqExportOrCache'],
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* Permissions: * `cache.export.get.*` - __required__. * `cache.output.get.*` - __required__ when _outputs_ are requested.
|
|
174
|
+
* Get Export from cache / check if computation is done.
|
|
175
|
+
*/
|
|
176
|
+
async getCachedExportsRaw(requestParameters: GetCachedExportsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ResGetCachedExports>> {
|
|
177
|
+
const requestOptions = await this.getCachedExportsRequestOpts(requestParameters);
|
|
178
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
179
|
+
|
|
180
|
+
return new runtime.JSONApiResponse(response);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* Permissions: * `cache.export.get.*` - __required__. * `cache.output.get.*` - __required__ when _outputs_ are requested.
|
|
185
|
+
* Get Export from cache / check if computation is done.
|
|
186
|
+
*/
|
|
187
|
+
async getCachedExports(sessionId: string, reqExportOrCache: ReqExportOrCache, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ResGetCachedExports> {
|
|
188
|
+
const response = await this.getCachedExportsRaw({ sessionId: sessionId, reqExportOrCache: reqExportOrCache }, initOverrides);
|
|
189
|
+
return await response.value();
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* Creates request options for listExportVersions without sending the request
|
|
194
|
+
*/
|
|
195
|
+
async listExportVersionsRequestOpts(requestParameters: ListExportVersionsRequest): Promise<runtime.RequestOpts> {
|
|
196
|
+
if (requestParameters['sessionId'] == null) {
|
|
197
|
+
throw new runtime.RequiredError(
|
|
198
|
+
'sessionId',
|
|
199
|
+
'Required parameter "sessionId" was null or undefined when calling listExportVersions().'
|
|
200
|
+
);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
if (requestParameters['exportId'] == null) {
|
|
204
|
+
throw new runtime.RequiredError(
|
|
205
|
+
'exportId',
|
|
206
|
+
'Required parameter "exportId" was null or undefined when calling listExportVersions().'
|
|
207
|
+
);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
const queryParameters: any = {};
|
|
211
|
+
|
|
212
|
+
if (requestParameters['statusComputation'] != null) {
|
|
213
|
+
queryParameters['statusComputation'] = requestParameters['statusComputation'];
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
if (requestParameters['statusCollect'] != null) {
|
|
217
|
+
queryParameters['statusCollect'] = requestParameters['statusCollect'];
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
if (requestParameters['offset'] != null) {
|
|
221
|
+
queryParameters['offset'] = requestParameters['offset'];
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
225
|
+
|
|
226
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
227
|
+
const token = this.configuration.accessToken;
|
|
228
|
+
const tokenString = await token("JwtAuth", []);
|
|
229
|
+
|
|
230
|
+
if (tokenString) {
|
|
231
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
let urlPath = `/api/v2/session/{sessionId}/export/{exportId}/list`;
|
|
236
|
+
urlPath = urlPath.replace('{sessionId}', encodeURIComponent(String(requestParameters['sessionId'])));
|
|
237
|
+
urlPath = urlPath.replace('{exportId}', encodeURIComponent(String(requestParameters['exportId'])));
|
|
238
|
+
|
|
239
|
+
return {
|
|
240
|
+
path: urlPath,
|
|
241
|
+
method: 'GET',
|
|
242
|
+
headers: headerParameters,
|
|
243
|
+
query: queryParameters,
|
|
244
|
+
};
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* Permissions: * `cache.export.list.*` - __required__.
|
|
249
|
+
* List export versions.
|
|
250
|
+
*/
|
|
251
|
+
async listExportVersionsRaw(requestParameters: ListExportVersionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ResListExportVersions>> {
|
|
252
|
+
const requestOptions = await this.listExportVersionsRequestOpts(requestParameters);
|
|
253
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
254
|
+
|
|
255
|
+
return new runtime.JSONApiResponse(response);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* Permissions: * `cache.export.list.*` - __required__.
|
|
260
|
+
* List export versions.
|
|
261
|
+
*/
|
|
262
|
+
async listExportVersions(sessionId: string, exportId: string, statusComputation?: QueryComputationStatus, statusCollect?: QueryComputationStatus, offset?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ResListExportVersions> {
|
|
263
|
+
const response = await this.listExportVersionsRaw({ sessionId: sessionId, exportId: exportId, statusComputation: statusComputation, statusCollect: statusCollect, offset: offset }, initOverrides);
|
|
264
|
+
return await response.value();
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* Creates request options for updateExportDefinitions without sending the request
|
|
269
|
+
*/
|
|
270
|
+
async updateExportDefinitionsRequestOpts(requestParameters: UpdateExportDefinitionsRequest): Promise<runtime.RequestOpts> {
|
|
271
|
+
if (requestParameters['modelId'] == null) {
|
|
272
|
+
throw new runtime.RequiredError(
|
|
273
|
+
'modelId',
|
|
274
|
+
'Required parameter "modelId" was null or undefined when calling updateExportDefinitions().'
|
|
275
|
+
);
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
if (requestParameters['reqExportDefinitions'] == null) {
|
|
279
|
+
throw new runtime.RequiredError(
|
|
280
|
+
'reqExportDefinitions',
|
|
281
|
+
'Required parameter "reqExportDefinitions" was null or undefined when calling updateExportDefinitions().'
|
|
282
|
+
);
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
const queryParameters: any = {};
|
|
286
|
+
|
|
287
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
288
|
+
|
|
289
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
290
|
+
|
|
291
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
292
|
+
const token = this.configuration.accessToken;
|
|
293
|
+
const tokenString = await token("JwtAuth", []);
|
|
294
|
+
|
|
295
|
+
if (tokenString) {
|
|
296
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
let urlPath = `/api/v2/model/{modelId}/export`;
|
|
301
|
+
urlPath = urlPath.replace('{modelId}', encodeURIComponent(String(requestParameters['modelId'])));
|
|
302
|
+
|
|
303
|
+
return {
|
|
304
|
+
path: urlPath,
|
|
305
|
+
method: 'PATCH',
|
|
306
|
+
headers: headerParameters,
|
|
307
|
+
query: queryParameters,
|
|
308
|
+
body: requestParameters['reqExportDefinitions'],
|
|
309
|
+
};
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* Permissions: * `set.export.ui` - __required__.
|
|
314
|
+
* Update definition of exports.
|
|
315
|
+
*/
|
|
316
|
+
async updateExportDefinitionsRaw(requestParameters: UpdateExportDefinitionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ResUpdateExportDefinitions>> {
|
|
317
|
+
const requestOptions = await this.updateExportDefinitionsRequestOpts(requestParameters);
|
|
318
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
319
|
+
|
|
320
|
+
return new runtime.JSONApiResponse(response);
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* Permissions: * `set.export.ui` - __required__.
|
|
325
|
+
* Update definition of exports.
|
|
326
|
+
*/
|
|
327
|
+
async updateExportDefinitions(modelId: string, reqExportDefinitions: ReqExportDefinitions, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ResUpdateExportDefinitions> {
|
|
328
|
+
const response = await this.updateExportDefinitionsRaw({ modelId: modelId, reqExportDefinitions: reqExportDefinitions }, initOverrides);
|
|
329
|
+
return await response.value();
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
}
|