@saritasa/renewaire-frontend-sdk 0.189.0 → 0.191.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
CHANGED
|
@@ -1302,6 +1302,87 @@ class BombSchematicsApiService extends BaseService {
|
|
|
1302
1302
|
reportProgress: reportProgress,
|
|
1303
1303
|
});
|
|
1304
1304
|
}
|
|
1305
|
+
schematicsGetSchematicFileDownloadUrl(requestParameters, observe = "body", reportProgress = false, options) {
|
|
1306
|
+
const schematicLayerId = requestParameters?.schematicLayerId;
|
|
1307
|
+
if (schematicLayerId === null || schematicLayerId === undefined) {
|
|
1308
|
+
throw new Error("Required parameter schematicLayerId was null or undefined when calling schematicsGetSchematicFileDownloadUrl.");
|
|
1309
|
+
}
|
|
1310
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1311
|
+
// authentication (Bearer) required
|
|
1312
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
1313
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
1314
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1315
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
1316
|
+
}
|
|
1317
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1318
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1319
|
+
let responseType_ = "json";
|
|
1320
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1321
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
1322
|
+
responseType_ = "text";
|
|
1323
|
+
}
|
|
1324
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1325
|
+
responseType_ = "json";
|
|
1326
|
+
}
|
|
1327
|
+
else {
|
|
1328
|
+
responseType_ = "blob";
|
|
1329
|
+
}
|
|
1330
|
+
}
|
|
1331
|
+
let localVarPath = `/api/bomb/schematics/${this.configuration.encodeParam({ name: "schematicLayerId", value: schematicLayerId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}/download-url`;
|
|
1332
|
+
const { basePath, withCredentials } = this.configuration;
|
|
1333
|
+
return this.httpClient.request("get", `${basePath}${localVarPath}`, {
|
|
1334
|
+
context: localVarHttpContext,
|
|
1335
|
+
responseType: responseType_,
|
|
1336
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
1337
|
+
headers: localVarHeaders,
|
|
1338
|
+
observe: observe,
|
|
1339
|
+
transferCache: localVarTransferCache,
|
|
1340
|
+
reportProgress: reportProgress,
|
|
1341
|
+
});
|
|
1342
|
+
}
|
|
1343
|
+
schematicsGetSchematicLayer(requestParameters, observe = "body", reportProgress = false, options) {
|
|
1344
|
+
const schematicLayerId = requestParameters?.schematicLayerId;
|
|
1345
|
+
if (schematicLayerId === null || schematicLayerId === undefined) {
|
|
1346
|
+
throw new Error("Required parameter schematicLayerId was null or undefined when calling schematicsGetSchematicLayer.");
|
|
1347
|
+
}
|
|
1348
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1349
|
+
// authentication (Bearer) required
|
|
1350
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
1351
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
|
|
1352
|
+
this.configuration.selectHeaderAccept([
|
|
1353
|
+
"text/plain",
|
|
1354
|
+
"application/json",
|
|
1355
|
+
"text/json",
|
|
1356
|
+
]);
|
|
1357
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1358
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
1359
|
+
}
|
|
1360
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1361
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1362
|
+
let responseType_ = "json";
|
|
1363
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1364
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
1365
|
+
responseType_ = "text";
|
|
1366
|
+
}
|
|
1367
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1368
|
+
responseType_ = "json";
|
|
1369
|
+
}
|
|
1370
|
+
else {
|
|
1371
|
+
responseType_ = "blob";
|
|
1372
|
+
}
|
|
1373
|
+
}
|
|
1374
|
+
let localVarPath = `/api/bomb/schematics/${this.configuration.encodeParam({ name: "schematicLayerId", value: schematicLayerId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}`;
|
|
1375
|
+
const { basePath, withCredentials } = this.configuration;
|
|
1376
|
+
return this.httpClient.request("get", `${basePath}${localVarPath}`, {
|
|
1377
|
+
context: localVarHttpContext,
|
|
1378
|
+
responseType: responseType_,
|
|
1379
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
1380
|
+
headers: localVarHeaders,
|
|
1381
|
+
observe: observe,
|
|
1382
|
+
transferCache: localVarTransferCache,
|
|
1383
|
+
reportProgress: reportProgress,
|
|
1384
|
+
});
|
|
1385
|
+
}
|
|
1305
1386
|
schematicsRemoveSchematicLayer(requestParameters, observe = "body", reportProgress = false, options) {
|
|
1306
1387
|
const schematicLayerId = requestParameters?.schematicLayerId;
|
|
1307
1388
|
if (schematicLayerId === null || schematicLayerId === undefined) {
|