@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,762 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
36
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
37
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
38
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
39
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
40
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
41
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
42
|
+
});
|
|
43
|
+
};
|
|
44
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45
|
+
exports.ModelApi = void 0;
|
|
46
|
+
const runtime = __importStar(require("../runtime"));
|
|
47
|
+
const base_1 = require("../../base");
|
|
48
|
+
class ModelApi extends base_1.BaseAPI {
|
|
49
|
+
cleanupExportsRequestOpts(requestParameters) {
|
|
50
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
51
|
+
if (requestParameters['modelId'] == null) {
|
|
52
|
+
throw new runtime.RequiredError('modelId', 'Required parameter "modelId" was null or undefined when calling cleanupExports().');
|
|
53
|
+
}
|
|
54
|
+
if (requestParameters['untilLastSeen'] == null) {
|
|
55
|
+
throw new runtime.RequiredError('untilLastSeen', 'Required parameter "untilLastSeen" was null or undefined when calling cleanupExports().');
|
|
56
|
+
}
|
|
57
|
+
const queryParameters = {};
|
|
58
|
+
if (requestParameters['untilLastSeen'] != null) {
|
|
59
|
+
queryParameters['untilLastSeen'] = requestParameters['untilLastSeen'];
|
|
60
|
+
}
|
|
61
|
+
const headerParameters = {};
|
|
62
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
63
|
+
const token = this.configuration.accessToken;
|
|
64
|
+
const tokenString = yield token("JwtAuth", []);
|
|
65
|
+
if (tokenString) {
|
|
66
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
let urlPath = `/api/v2/model/{modelId}/cleanup/export`;
|
|
70
|
+
urlPath = urlPath.replace('{modelId}', encodeURIComponent(String(requestParameters['modelId'])));
|
|
71
|
+
return {
|
|
72
|
+
path: urlPath,
|
|
73
|
+
method: 'POST',
|
|
74
|
+
headers: headerParameters,
|
|
75
|
+
query: queryParameters,
|
|
76
|
+
};
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
cleanupExportsRaw(requestParameters, initOverrides) {
|
|
80
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
81
|
+
const requestOptions = yield this.cleanupExportsRequestOpts(requestParameters);
|
|
82
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
83
|
+
return new runtime.JSONApiResponse(response);
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
cleanupExports(modelId, untilLastSeen, initOverrides) {
|
|
87
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
88
|
+
const response = yield this.cleanupExportsRaw({ modelId: modelId, untilLastSeen: untilLastSeen }, initOverrides);
|
|
89
|
+
return yield response.value();
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
cleanupOutputsRequestOpts(requestParameters) {
|
|
93
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
94
|
+
if (requestParameters['modelId'] == null) {
|
|
95
|
+
throw new runtime.RequiredError('modelId', 'Required parameter "modelId" was null or undefined when calling cleanupOutputs().');
|
|
96
|
+
}
|
|
97
|
+
if (requestParameters['untilLastSeen'] == null) {
|
|
98
|
+
throw new runtime.RequiredError('untilLastSeen', 'Required parameter "untilLastSeen" was null or undefined when calling cleanupOutputs().');
|
|
99
|
+
}
|
|
100
|
+
const queryParameters = {};
|
|
101
|
+
if (requestParameters['untilLastSeen'] != null) {
|
|
102
|
+
queryParameters['untilLastSeen'] = requestParameters['untilLastSeen'];
|
|
103
|
+
}
|
|
104
|
+
const headerParameters = {};
|
|
105
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
106
|
+
const token = this.configuration.accessToken;
|
|
107
|
+
const tokenString = yield token("JwtAuth", []);
|
|
108
|
+
if (tokenString) {
|
|
109
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
let urlPath = `/api/v2/model/{modelId}/cleanup/output`;
|
|
113
|
+
urlPath = urlPath.replace('{modelId}', encodeURIComponent(String(requestParameters['modelId'])));
|
|
114
|
+
return {
|
|
115
|
+
path: urlPath,
|
|
116
|
+
method: 'POST',
|
|
117
|
+
headers: headerParameters,
|
|
118
|
+
query: queryParameters,
|
|
119
|
+
};
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
cleanupOutputsRaw(requestParameters, initOverrides) {
|
|
123
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
124
|
+
const requestOptions = yield this.cleanupOutputsRequestOpts(requestParameters);
|
|
125
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
126
|
+
return new runtime.JSONApiResponse(response);
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
cleanupOutputs(modelId, untilLastSeen, initOverrides) {
|
|
130
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
131
|
+
const response = yield this.cleanupOutputsRaw({ modelId: modelId, untilLastSeen: untilLastSeen }, initOverrides);
|
|
132
|
+
return yield response.value();
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
cleanupTexturesRequestOpts(requestParameters) {
|
|
136
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
137
|
+
if (requestParameters['modelId'] == null) {
|
|
138
|
+
throw new runtime.RequiredError('modelId', 'Required parameter "modelId" was null or undefined when calling cleanupTextures().');
|
|
139
|
+
}
|
|
140
|
+
if (requestParameters['untilLastSeen'] == null) {
|
|
141
|
+
throw new runtime.RequiredError('untilLastSeen', 'Required parameter "untilLastSeen" was null or undefined when calling cleanupTextures().');
|
|
142
|
+
}
|
|
143
|
+
const queryParameters = {};
|
|
144
|
+
if (requestParameters['untilLastSeen'] != null) {
|
|
145
|
+
queryParameters['untilLastSeen'] = requestParameters['untilLastSeen'];
|
|
146
|
+
}
|
|
147
|
+
const headerParameters = {};
|
|
148
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
149
|
+
const token = this.configuration.accessToken;
|
|
150
|
+
const tokenString = yield token("JwtAuth", []);
|
|
151
|
+
if (tokenString) {
|
|
152
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
let urlPath = `/api/v2/model/{modelId}/cleanup/texture`;
|
|
156
|
+
urlPath = urlPath.replace('{modelId}', encodeURIComponent(String(requestParameters['modelId'])));
|
|
157
|
+
return {
|
|
158
|
+
path: urlPath,
|
|
159
|
+
method: 'POST',
|
|
160
|
+
headers: headerParameters,
|
|
161
|
+
query: queryParameters,
|
|
162
|
+
};
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
cleanupTexturesRaw(requestParameters, initOverrides) {
|
|
166
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
167
|
+
const requestOptions = yield this.cleanupTexturesRequestOpts(requestParameters);
|
|
168
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
169
|
+
return new runtime.JSONApiResponse(response);
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
cleanupTextures(modelId, untilLastSeen, initOverrides) {
|
|
173
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
174
|
+
const response = yield this.cleanupTexturesRaw({ modelId: modelId, untilLastSeen: untilLastSeen }, initOverrides);
|
|
175
|
+
return yield response.value();
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
createModelRequestOpts(requestParameters) {
|
|
179
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
180
|
+
if (requestParameters['reqModel'] == null) {
|
|
181
|
+
throw new runtime.RequiredError('reqModel', 'Required parameter "reqModel" was null or undefined when calling createModel().');
|
|
182
|
+
}
|
|
183
|
+
const queryParameters = {};
|
|
184
|
+
const headerParameters = {};
|
|
185
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
186
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
187
|
+
const token = this.configuration.accessToken;
|
|
188
|
+
const tokenString = yield token("JwtAuth", []);
|
|
189
|
+
if (tokenString) {
|
|
190
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
let urlPath = `/api/v2/model`;
|
|
194
|
+
return {
|
|
195
|
+
path: urlPath,
|
|
196
|
+
method: 'POST',
|
|
197
|
+
headers: headerParameters,
|
|
198
|
+
query: queryParameters,
|
|
199
|
+
body: requestParameters['reqModel'],
|
|
200
|
+
};
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
createModelRaw(requestParameters, initOverrides) {
|
|
204
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
205
|
+
const requestOptions = yield this.createModelRequestOpts(requestParameters);
|
|
206
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
207
|
+
return new runtime.JSONApiResponse(response);
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
createModel(reqModel, initOverrides) {
|
|
211
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
212
|
+
const response = yield this.createModelRaw({ reqModel: reqModel }, initOverrides);
|
|
213
|
+
return yield response.value();
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
createModelConfigRequestOpts(requestParameters) {
|
|
217
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
218
|
+
if (requestParameters['modelId'] == null) {
|
|
219
|
+
throw new runtime.RequiredError('modelId', 'Required parameter "modelId" was null or undefined when calling createModelConfig().');
|
|
220
|
+
}
|
|
221
|
+
if (requestParameters['reqConfigure'] == null) {
|
|
222
|
+
throw new runtime.RequiredError('reqConfigure', 'Required parameter "reqConfigure" was null or undefined when calling createModelConfig().');
|
|
223
|
+
}
|
|
224
|
+
const queryParameters = {};
|
|
225
|
+
const headerParameters = {};
|
|
226
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
227
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
228
|
+
const token = this.configuration.accessToken;
|
|
229
|
+
const tokenString = yield token("JwtAuth", []);
|
|
230
|
+
if (tokenString) {
|
|
231
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
let urlPath = `/api/v2/model/{modelId}/config`;
|
|
235
|
+
urlPath = urlPath.replace('{modelId}', encodeURIComponent(String(requestParameters['modelId'])));
|
|
236
|
+
return {
|
|
237
|
+
path: urlPath,
|
|
238
|
+
method: 'POST',
|
|
239
|
+
headers: headerParameters,
|
|
240
|
+
query: queryParameters,
|
|
241
|
+
body: requestParameters['reqConfigure'],
|
|
242
|
+
};
|
|
243
|
+
});
|
|
244
|
+
}
|
|
245
|
+
createModelConfigRaw(requestParameters, initOverrides) {
|
|
246
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
247
|
+
const requestOptions = yield this.createModelConfigRequestOpts(requestParameters);
|
|
248
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
249
|
+
return new runtime.JSONApiResponse(response);
|
|
250
|
+
});
|
|
251
|
+
}
|
|
252
|
+
createModelConfig(modelId, reqConfigure, initOverrides) {
|
|
253
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
254
|
+
const response = yield this.createModelConfigRaw({ modelId: modelId, reqConfigure: reqConfigure }, initOverrides);
|
|
255
|
+
return yield response.value();
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
deleteModelRequestOpts(requestParameters) {
|
|
259
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
260
|
+
if (requestParameters['modelId'] == null) {
|
|
261
|
+
throw new runtime.RequiredError('modelId', 'Required parameter "modelId" was null or undefined when calling deleteModel().');
|
|
262
|
+
}
|
|
263
|
+
const queryParameters = {};
|
|
264
|
+
const headerParameters = {};
|
|
265
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
266
|
+
const token = this.configuration.accessToken;
|
|
267
|
+
const tokenString = yield token("JwtAuth", []);
|
|
268
|
+
if (tokenString) {
|
|
269
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
let urlPath = `/api/v2/model/{modelId}`;
|
|
273
|
+
urlPath = urlPath.replace('{modelId}', encodeURIComponent(String(requestParameters['modelId'])));
|
|
274
|
+
return {
|
|
275
|
+
path: urlPath,
|
|
276
|
+
method: 'DELETE',
|
|
277
|
+
headers: headerParameters,
|
|
278
|
+
query: queryParameters,
|
|
279
|
+
};
|
|
280
|
+
});
|
|
281
|
+
}
|
|
282
|
+
deleteModelRaw(requestParameters, initOverrides) {
|
|
283
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
284
|
+
const requestOptions = yield this.deleteModelRequestOpts(requestParameters);
|
|
285
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
286
|
+
return new runtime.JSONApiResponse(response);
|
|
287
|
+
});
|
|
288
|
+
}
|
|
289
|
+
deleteModel(modelId, initOverrides) {
|
|
290
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
291
|
+
const response = yield this.deleteModelRaw({ modelId: modelId }, initOverrides);
|
|
292
|
+
return yield response.value();
|
|
293
|
+
});
|
|
294
|
+
}
|
|
295
|
+
downloadModelFileRequestOpts(requestParameters) {
|
|
296
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
297
|
+
if (requestParameters['modelId'] == null) {
|
|
298
|
+
throw new runtime.RequiredError('modelId', 'Required parameter "modelId" was null or undefined when calling downloadModelFile().');
|
|
299
|
+
}
|
|
300
|
+
const queryParameters = {};
|
|
301
|
+
const headerParameters = {};
|
|
302
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
303
|
+
const token = this.configuration.accessToken;
|
|
304
|
+
const tokenString = yield token("JwtAuth", []);
|
|
305
|
+
if (tokenString) {
|
|
306
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
let urlPath = `/api/v2/model/{modelId}/file/download`;
|
|
310
|
+
urlPath = urlPath.replace('{modelId}', encodeURIComponent(String(requestParameters['modelId'])));
|
|
311
|
+
return {
|
|
312
|
+
path: urlPath,
|
|
313
|
+
method: 'GET',
|
|
314
|
+
headers: headerParameters,
|
|
315
|
+
query: queryParameters,
|
|
316
|
+
};
|
|
317
|
+
});
|
|
318
|
+
}
|
|
319
|
+
downloadModelFileRaw(requestParameters, initOverrides) {
|
|
320
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
321
|
+
const requestOptions = yield this.downloadModelFileRequestOpts(requestParameters);
|
|
322
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
323
|
+
return new runtime.BlobApiResponse(response);
|
|
324
|
+
});
|
|
325
|
+
}
|
|
326
|
+
downloadModelFile(modelId, initOverrides) {
|
|
327
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
328
|
+
const response = yield this.downloadModelFileRaw({ modelId: modelId }, initOverrides);
|
|
329
|
+
return yield response.value();
|
|
330
|
+
});
|
|
331
|
+
}
|
|
332
|
+
getCleanupStatusRequestOpts(requestParameters) {
|
|
333
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
334
|
+
if (requestParameters['modelId'] == null) {
|
|
335
|
+
throw new runtime.RequiredError('modelId', 'Required parameter "modelId" was null or undefined when calling getCleanupStatus().');
|
|
336
|
+
}
|
|
337
|
+
const queryParameters = {};
|
|
338
|
+
const headerParameters = {};
|
|
339
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
340
|
+
const token = this.configuration.accessToken;
|
|
341
|
+
const tokenString = yield token("JwtAuth", []);
|
|
342
|
+
if (tokenString) {
|
|
343
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
let urlPath = `/api/v2/model/{modelId}/cleanup/status`;
|
|
347
|
+
urlPath = urlPath.replace('{modelId}', encodeURIComponent(String(requestParameters['modelId'])));
|
|
348
|
+
return {
|
|
349
|
+
path: urlPath,
|
|
350
|
+
method: 'GET',
|
|
351
|
+
headers: headerParameters,
|
|
352
|
+
query: queryParameters,
|
|
353
|
+
};
|
|
354
|
+
});
|
|
355
|
+
}
|
|
356
|
+
getCleanupStatusRaw(requestParameters, initOverrides) {
|
|
357
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
358
|
+
const requestOptions = yield this.getCleanupStatusRequestOpts(requestParameters);
|
|
359
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
360
|
+
return new runtime.JSONApiResponse(response);
|
|
361
|
+
});
|
|
362
|
+
}
|
|
363
|
+
getCleanupStatus(modelId, initOverrides) {
|
|
364
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
365
|
+
const response = yield this.getCleanupStatusRaw({ modelId: modelId }, initOverrides);
|
|
366
|
+
return yield response.value();
|
|
367
|
+
});
|
|
368
|
+
}
|
|
369
|
+
getModelRequestOpts(requestParameters) {
|
|
370
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
371
|
+
if (requestParameters['modelId'] == null) {
|
|
372
|
+
throw new runtime.RequiredError('modelId', 'Required parameter "modelId" was null or undefined when calling getModel().');
|
|
373
|
+
}
|
|
374
|
+
const queryParameters = {};
|
|
375
|
+
const headerParameters = {};
|
|
376
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
377
|
+
const token = this.configuration.accessToken;
|
|
378
|
+
const tokenString = yield token("JwtAuth", []);
|
|
379
|
+
if (tokenString) {
|
|
380
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
let urlPath = `/api/v2/model/{modelId}`;
|
|
384
|
+
urlPath = urlPath.replace('{modelId}', encodeURIComponent(String(requestParameters['modelId'])));
|
|
385
|
+
return {
|
|
386
|
+
path: urlPath,
|
|
387
|
+
method: 'GET',
|
|
388
|
+
headers: headerParameters,
|
|
389
|
+
query: queryParameters,
|
|
390
|
+
};
|
|
391
|
+
});
|
|
392
|
+
}
|
|
393
|
+
getModelRaw(requestParameters, initOverrides) {
|
|
394
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
395
|
+
const requestOptions = yield this.getModelRequestOpts(requestParameters);
|
|
396
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
397
|
+
return new runtime.JSONApiResponse(response);
|
|
398
|
+
});
|
|
399
|
+
}
|
|
400
|
+
getModel(modelId, initOverrides) {
|
|
401
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
402
|
+
const response = yield this.getModelRaw({ modelId: modelId }, initOverrides);
|
|
403
|
+
return yield response.value();
|
|
404
|
+
});
|
|
405
|
+
}
|
|
406
|
+
getModelComputationsRequestOpts(requestParameters) {
|
|
407
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
408
|
+
if (requestParameters['modelId'] == null) {
|
|
409
|
+
throw new runtime.RequiredError('modelId', 'Required parameter "modelId" was null or undefined when calling getModelComputations().');
|
|
410
|
+
}
|
|
411
|
+
const queryParameters = {};
|
|
412
|
+
if (requestParameters['order'] != null) {
|
|
413
|
+
queryParameters['order'] = requestParameters['order'];
|
|
414
|
+
}
|
|
415
|
+
if (requestParameters['timestampFrom'] != null) {
|
|
416
|
+
queryParameters['timestamp_from'] = requestParameters['timestampFrom'];
|
|
417
|
+
}
|
|
418
|
+
if (requestParameters['timestampTo'] != null) {
|
|
419
|
+
queryParameters['timestamp_to'] = requestParameters['timestampTo'];
|
|
420
|
+
}
|
|
421
|
+
if (requestParameters['status'] != null) {
|
|
422
|
+
queryParameters['status'] = requestParameters['status'];
|
|
423
|
+
}
|
|
424
|
+
if (requestParameters['type'] != null) {
|
|
425
|
+
queryParameters['type'] = requestParameters['type'];
|
|
426
|
+
}
|
|
427
|
+
if (requestParameters['limit'] != null) {
|
|
428
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
429
|
+
}
|
|
430
|
+
if (requestParameters['strictLimit'] != null) {
|
|
431
|
+
queryParameters['strict_limit'] = requestParameters['strictLimit'];
|
|
432
|
+
}
|
|
433
|
+
if (requestParameters['offset'] != null) {
|
|
434
|
+
queryParameters['offset'] = requestParameters['offset'];
|
|
435
|
+
}
|
|
436
|
+
const headerParameters = {};
|
|
437
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
438
|
+
const token = this.configuration.accessToken;
|
|
439
|
+
const tokenString = yield token("JwtAuth", []);
|
|
440
|
+
if (tokenString) {
|
|
441
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
let urlPath = `/api/v2/model/{modelId}/computations`;
|
|
445
|
+
urlPath = urlPath.replace('{modelId}', encodeURIComponent(String(requestParameters['modelId'])));
|
|
446
|
+
return {
|
|
447
|
+
path: urlPath,
|
|
448
|
+
method: 'GET',
|
|
449
|
+
headers: headerParameters,
|
|
450
|
+
query: queryParameters,
|
|
451
|
+
};
|
|
452
|
+
});
|
|
453
|
+
}
|
|
454
|
+
getModelComputationsRaw(requestParameters, initOverrides) {
|
|
455
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
456
|
+
const requestOptions = yield this.getModelComputationsRequestOpts(requestParameters);
|
|
457
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
458
|
+
return new runtime.JSONApiResponse(response);
|
|
459
|
+
});
|
|
460
|
+
}
|
|
461
|
+
getModelComputations(modelId, order, timestampFrom, timestampTo, status, type, limit, strictLimit, offset, initOverrides) {
|
|
462
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
463
|
+
const response = yield this.getModelComputationsRaw({ modelId: modelId, order: order, timestampFrom: timestampFrom, timestampTo: timestampTo, status: status, type: type, limit: limit, strictLimit: strictLimit, offset: offset }, initOverrides);
|
|
464
|
+
return yield response.value();
|
|
465
|
+
});
|
|
466
|
+
}
|
|
467
|
+
getModelConfigRequestOpts(requestParameters) {
|
|
468
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
469
|
+
if (requestParameters['modelId'] == null) {
|
|
470
|
+
throw new runtime.RequiredError('modelId', 'Required parameter "modelId" was null or undefined when calling getModelConfig().');
|
|
471
|
+
}
|
|
472
|
+
const queryParameters = {};
|
|
473
|
+
const headerParameters = {};
|
|
474
|
+
if (requestParameters['xShapediverNoconvert'] != null) {
|
|
475
|
+
headerParameters['x-shapediver-noconvert'] = String(requestParameters['xShapediverNoconvert']);
|
|
476
|
+
}
|
|
477
|
+
if (requestParameters['xShapediverUseconfigversion'] != null) {
|
|
478
|
+
headerParameters['x-shapediver-useconfigversion'] = String(requestParameters['xShapediverUseconfigversion']);
|
|
479
|
+
}
|
|
480
|
+
if (requestParameters['xShapediverBuildversion'] != null) {
|
|
481
|
+
headerParameters['x-shapediver-buildversion'] = String(requestParameters['xShapediverBuildversion']);
|
|
482
|
+
}
|
|
483
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
484
|
+
const token = this.configuration.accessToken;
|
|
485
|
+
const tokenString = yield token("JwtAuth", []);
|
|
486
|
+
if (tokenString) {
|
|
487
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
let urlPath = `/api/v2/model/{modelId}/config`;
|
|
491
|
+
urlPath = urlPath.replace('{modelId}', encodeURIComponent(String(requestParameters['modelId'])));
|
|
492
|
+
return {
|
|
493
|
+
path: urlPath,
|
|
494
|
+
method: 'GET',
|
|
495
|
+
headers: headerParameters,
|
|
496
|
+
query: queryParameters,
|
|
497
|
+
};
|
|
498
|
+
});
|
|
499
|
+
}
|
|
500
|
+
getModelConfigRaw(requestParameters, initOverrides) {
|
|
501
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
502
|
+
const requestOptions = yield this.getModelConfigRequestOpts(requestParameters);
|
|
503
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
504
|
+
return new runtime.JSONApiResponse(response);
|
|
505
|
+
});
|
|
506
|
+
}
|
|
507
|
+
getModelConfig(modelId, xShapediverNoconvert, xShapediverUseconfigversion, xShapediverBuildversion, initOverrides) {
|
|
508
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
509
|
+
const response = yield this.getModelConfigRaw({ modelId: modelId, xShapediverNoconvert: xShapediverNoconvert, xShapediverUseconfigversion: xShapediverUseconfigversion, xShapediverBuildversion: xShapediverBuildversion }, initOverrides);
|
|
510
|
+
return yield response.value();
|
|
511
|
+
});
|
|
512
|
+
}
|
|
513
|
+
listModelsRequestOpts(requestParameters) {
|
|
514
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
515
|
+
const queryParameters = {};
|
|
516
|
+
if (requestParameters['modelStatus'] != null) {
|
|
517
|
+
queryParameters['modelStatus'] = requestParameters['modelStatus'];
|
|
518
|
+
}
|
|
519
|
+
if (requestParameters['offset'] != null) {
|
|
520
|
+
queryParameters['offset'] = requestParameters['offset'];
|
|
521
|
+
}
|
|
522
|
+
const headerParameters = {};
|
|
523
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
524
|
+
const token = this.configuration.accessToken;
|
|
525
|
+
const tokenString = yield token("JwtAuth", []);
|
|
526
|
+
if (tokenString) {
|
|
527
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
let urlPath = `/api/v2/model/list`;
|
|
531
|
+
return {
|
|
532
|
+
path: urlPath,
|
|
533
|
+
method: 'GET',
|
|
534
|
+
headers: headerParameters,
|
|
535
|
+
query: queryParameters,
|
|
536
|
+
};
|
|
537
|
+
});
|
|
538
|
+
}
|
|
539
|
+
listModelsRaw(requestParameters, initOverrides) {
|
|
540
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
541
|
+
const requestOptions = yield this.listModelsRequestOpts(requestParameters);
|
|
542
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
543
|
+
return new runtime.JSONApiResponse(response);
|
|
544
|
+
});
|
|
545
|
+
}
|
|
546
|
+
listModels(modelStatus, offset, initOverrides) {
|
|
547
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
548
|
+
const response = yield this.listModelsRaw({ modelStatus: modelStatus, offset: offset }, initOverrides);
|
|
549
|
+
return yield response.value();
|
|
550
|
+
});
|
|
551
|
+
}
|
|
552
|
+
restoreModelRequestOpts(requestParameters) {
|
|
553
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
554
|
+
if (requestParameters['modelId'] == null) {
|
|
555
|
+
throw new runtime.RequiredError('modelId', 'Required parameter "modelId" was null or undefined when calling restoreModel().');
|
|
556
|
+
}
|
|
557
|
+
const queryParameters = {};
|
|
558
|
+
const headerParameters = {};
|
|
559
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
560
|
+
const token = this.configuration.accessToken;
|
|
561
|
+
const tokenString = yield token("JwtAuth", []);
|
|
562
|
+
if (tokenString) {
|
|
563
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
let urlPath = `/api/v2/model/{modelId}/restore`;
|
|
567
|
+
urlPath = urlPath.replace('{modelId}', encodeURIComponent(String(requestParameters['modelId'])));
|
|
568
|
+
return {
|
|
569
|
+
path: urlPath,
|
|
570
|
+
method: 'PUT',
|
|
571
|
+
headers: headerParameters,
|
|
572
|
+
query: queryParameters,
|
|
573
|
+
};
|
|
574
|
+
});
|
|
575
|
+
}
|
|
576
|
+
restoreModelRaw(requestParameters, initOverrides) {
|
|
577
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
578
|
+
const requestOptions = yield this.restoreModelRequestOpts(requestParameters);
|
|
579
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
580
|
+
return new runtime.JSONApiResponse(response);
|
|
581
|
+
});
|
|
582
|
+
}
|
|
583
|
+
restoreModel(modelId, initOverrides) {
|
|
584
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
585
|
+
const response = yield this.restoreModelRaw({ modelId: modelId }, initOverrides);
|
|
586
|
+
return yield response.value();
|
|
587
|
+
});
|
|
588
|
+
}
|
|
589
|
+
updateModelRequestOpts(requestParameters) {
|
|
590
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
591
|
+
if (requestParameters['modelId'] == null) {
|
|
592
|
+
throw new runtime.RequiredError('modelId', 'Required parameter "modelId" was null or undefined when calling updateModel().');
|
|
593
|
+
}
|
|
594
|
+
if (requestParameters['reqModel'] == null) {
|
|
595
|
+
throw new runtime.RequiredError('reqModel', 'Required parameter "reqModel" was null or undefined when calling updateModel().');
|
|
596
|
+
}
|
|
597
|
+
const queryParameters = {};
|
|
598
|
+
const headerParameters = {};
|
|
599
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
600
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
601
|
+
const token = this.configuration.accessToken;
|
|
602
|
+
const tokenString = yield token("JwtAuth", []);
|
|
603
|
+
if (tokenString) {
|
|
604
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
let urlPath = `/api/v2/model/{modelId}`;
|
|
608
|
+
urlPath = urlPath.replace('{modelId}', encodeURIComponent(String(requestParameters['modelId'])));
|
|
609
|
+
return {
|
|
610
|
+
path: urlPath,
|
|
611
|
+
method: 'PUT',
|
|
612
|
+
headers: headerParameters,
|
|
613
|
+
query: queryParameters,
|
|
614
|
+
body: requestParameters['reqModel'],
|
|
615
|
+
};
|
|
616
|
+
});
|
|
617
|
+
}
|
|
618
|
+
updateModelRaw(requestParameters, initOverrides) {
|
|
619
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
620
|
+
const requestOptions = yield this.updateModelRequestOpts(requestParameters);
|
|
621
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
622
|
+
return new runtime.JSONApiResponse(response);
|
|
623
|
+
});
|
|
624
|
+
}
|
|
625
|
+
updateModel(modelId, reqModel, initOverrides) {
|
|
626
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
627
|
+
const response = yield this.updateModelRaw({ modelId: modelId, reqModel: reqModel }, initOverrides);
|
|
628
|
+
return yield response.value();
|
|
629
|
+
});
|
|
630
|
+
}
|
|
631
|
+
updateModelConfigRequestOpts(requestParameters) {
|
|
632
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
633
|
+
if (requestParameters['modelId'] == null) {
|
|
634
|
+
throw new runtime.RequiredError('modelId', 'Required parameter "modelId" was null or undefined when calling updateModelConfig().');
|
|
635
|
+
}
|
|
636
|
+
if (requestParameters['reqConfigure'] == null) {
|
|
637
|
+
throw new runtime.RequiredError('reqConfigure', 'Required parameter "reqConfigure" was null or undefined when calling updateModelConfig().');
|
|
638
|
+
}
|
|
639
|
+
const queryParameters = {};
|
|
640
|
+
const headerParameters = {};
|
|
641
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
642
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
643
|
+
const token = this.configuration.accessToken;
|
|
644
|
+
const tokenString = yield token("JwtAuth", []);
|
|
645
|
+
if (tokenString) {
|
|
646
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
let urlPath = `/api/v2/model/{modelId}/config`;
|
|
650
|
+
urlPath = urlPath.replace('{modelId}', encodeURIComponent(String(requestParameters['modelId'])));
|
|
651
|
+
return {
|
|
652
|
+
path: urlPath,
|
|
653
|
+
method: 'PATCH',
|
|
654
|
+
headers: headerParameters,
|
|
655
|
+
query: queryParameters,
|
|
656
|
+
body: requestParameters['reqConfigure'],
|
|
657
|
+
};
|
|
658
|
+
});
|
|
659
|
+
}
|
|
660
|
+
updateModelConfigRaw(requestParameters, initOverrides) {
|
|
661
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
662
|
+
const requestOptions = yield this.updateModelConfigRequestOpts(requestParameters);
|
|
663
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
664
|
+
return new runtime.JSONApiResponse(response);
|
|
665
|
+
});
|
|
666
|
+
}
|
|
667
|
+
updateModelConfig(modelId, reqConfigure, initOverrides) {
|
|
668
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
669
|
+
const response = yield this.updateModelConfigRaw({ modelId: modelId, reqConfigure: reqConfigure }, initOverrides);
|
|
670
|
+
return yield response.value();
|
|
671
|
+
});
|
|
672
|
+
}
|
|
673
|
+
updateParameterDefaultValuesRequestOpts(requestParameters) {
|
|
674
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
675
|
+
if (requestParameters['modelId'] == null) {
|
|
676
|
+
throw new runtime.RequiredError('modelId', 'Required parameter "modelId" was null or undefined when calling updateParameterDefaultValues().');
|
|
677
|
+
}
|
|
678
|
+
if (requestParameters['reqCustomization'] == null) {
|
|
679
|
+
throw new runtime.RequiredError('reqCustomization', 'Required parameter "reqCustomization" was null or undefined when calling updateParameterDefaultValues().');
|
|
680
|
+
}
|
|
681
|
+
const queryParameters = {};
|
|
682
|
+
if (requestParameters['ignoreUnknownParams'] != null) {
|
|
683
|
+
queryParameters['ignoreUnknownParams'] = requestParameters['ignoreUnknownParams'];
|
|
684
|
+
}
|
|
685
|
+
const headerParameters = {};
|
|
686
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
687
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
688
|
+
const token = this.configuration.accessToken;
|
|
689
|
+
const tokenString = yield token("JwtAuth", []);
|
|
690
|
+
if (tokenString) {
|
|
691
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
692
|
+
}
|
|
693
|
+
}
|
|
694
|
+
let urlPath = `/api/v2/model/{modelId}/parameter/defval`;
|
|
695
|
+
urlPath = urlPath.replace('{modelId}', encodeURIComponent(String(requestParameters['modelId'])));
|
|
696
|
+
return {
|
|
697
|
+
path: urlPath,
|
|
698
|
+
method: 'PATCH',
|
|
699
|
+
headers: headerParameters,
|
|
700
|
+
query: queryParameters,
|
|
701
|
+
body: requestParameters['reqCustomization'],
|
|
702
|
+
};
|
|
703
|
+
});
|
|
704
|
+
}
|
|
705
|
+
updateParameterDefaultValuesRaw(requestParameters, initOverrides) {
|
|
706
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
707
|
+
const requestOptions = yield this.updateParameterDefaultValuesRequestOpts(requestParameters);
|
|
708
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
709
|
+
return new runtime.JSONApiResponse(response);
|
|
710
|
+
});
|
|
711
|
+
}
|
|
712
|
+
updateParameterDefaultValues(modelId, reqCustomization, ignoreUnknownParams, initOverrides) {
|
|
713
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
714
|
+
const response = yield this.updateParameterDefaultValuesRaw({ modelId: modelId, reqCustomization: reqCustomization, ignoreUnknownParams: ignoreUnknownParams }, initOverrides);
|
|
715
|
+
return yield response.value();
|
|
716
|
+
});
|
|
717
|
+
}
|
|
718
|
+
updateParameterDefinitionsRequestOpts(requestParameters) {
|
|
719
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
720
|
+
if (requestParameters['modelId'] == null) {
|
|
721
|
+
throw new runtime.RequiredError('modelId', 'Required parameter "modelId" was null or undefined when calling updateParameterDefinitions().');
|
|
722
|
+
}
|
|
723
|
+
if (requestParameters['reqParameterDefinitions'] == null) {
|
|
724
|
+
throw new runtime.RequiredError('reqParameterDefinitions', 'Required parameter "reqParameterDefinitions" was null or undefined when calling updateParameterDefinitions().');
|
|
725
|
+
}
|
|
726
|
+
const queryParameters = {};
|
|
727
|
+
const headerParameters = {};
|
|
728
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
729
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
730
|
+
const token = this.configuration.accessToken;
|
|
731
|
+
const tokenString = yield token("JwtAuth", []);
|
|
732
|
+
if (tokenString) {
|
|
733
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
let urlPath = `/api/v2/model/{modelId}/parameter`;
|
|
737
|
+
urlPath = urlPath.replace('{modelId}', encodeURIComponent(String(requestParameters['modelId'])));
|
|
738
|
+
return {
|
|
739
|
+
path: urlPath,
|
|
740
|
+
method: 'PATCH',
|
|
741
|
+
headers: headerParameters,
|
|
742
|
+
query: queryParameters,
|
|
743
|
+
body: requestParameters['reqParameterDefinitions'],
|
|
744
|
+
};
|
|
745
|
+
});
|
|
746
|
+
}
|
|
747
|
+
updateParameterDefinitionsRaw(requestParameters, initOverrides) {
|
|
748
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
749
|
+
const requestOptions = yield this.updateParameterDefinitionsRequestOpts(requestParameters);
|
|
750
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
751
|
+
return new runtime.JSONApiResponse(response);
|
|
752
|
+
});
|
|
753
|
+
}
|
|
754
|
+
updateParameterDefinitions(modelId, reqParameterDefinitions, initOverrides) {
|
|
755
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
756
|
+
const response = yield this.updateParameterDefinitionsRaw({ modelId: modelId, reqParameterDefinitions: reqParameterDefinitions }, initOverrides);
|
|
757
|
+
return yield response.value();
|
|
758
|
+
});
|
|
759
|
+
}
|
|
760
|
+
}
|
|
761
|
+
exports.ModelApi = ModelApi;
|
|
762
|
+
//# sourceMappingURL=ModelApi.js.map
|