@saritasa/renewaire-frontend-sdk 0.183.0 → 0.184.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
|
@@ -1251,6 +1251,57 @@ class BombSchematicsApiService extends BaseService {
|
|
|
1251
1251
|
reportProgress: reportProgress,
|
|
1252
1252
|
});
|
|
1253
1253
|
}
|
|
1254
|
+
schematicsUpdateSchematicLayer(requestParameters, observe = "body", reportProgress = false, options) {
|
|
1255
|
+
const schematicLayerId = requestParameters?.schematicLayerId;
|
|
1256
|
+
if (schematicLayerId === null || schematicLayerId === undefined) {
|
|
1257
|
+
throw new Error("Required parameter schematicLayerId was null or undefined when calling schematicsUpdateSchematicLayer.");
|
|
1258
|
+
}
|
|
1259
|
+
const saveSchematicLayerDto = requestParameters?.saveSchematicLayerDto;
|
|
1260
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1261
|
+
// authentication (Bearer) required
|
|
1262
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
1263
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
1264
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1265
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
1266
|
+
}
|
|
1267
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1268
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1269
|
+
// to determine the Content-Type header
|
|
1270
|
+
const consumes = [
|
|
1271
|
+
"application/json-patch+json",
|
|
1272
|
+
"application/json",
|
|
1273
|
+
"text/json",
|
|
1274
|
+
"application/*+json",
|
|
1275
|
+
];
|
|
1276
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
1277
|
+
if (httpContentTypeSelected !== undefined) {
|
|
1278
|
+
localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
|
|
1279
|
+
}
|
|
1280
|
+
let responseType_ = "json";
|
|
1281
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1282
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
1283
|
+
responseType_ = "text";
|
|
1284
|
+
}
|
|
1285
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1286
|
+
responseType_ = "json";
|
|
1287
|
+
}
|
|
1288
|
+
else {
|
|
1289
|
+
responseType_ = "blob";
|
|
1290
|
+
}
|
|
1291
|
+
}
|
|
1292
|
+
let localVarPath = `/api/bomb/schematics/${this.configuration.encodeParam({ name: "schematicLayerId", value: schematicLayerId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}`;
|
|
1293
|
+
const { basePath, withCredentials } = this.configuration;
|
|
1294
|
+
return this.httpClient.request("put", `${basePath}${localVarPath}`, {
|
|
1295
|
+
context: localVarHttpContext,
|
|
1296
|
+
body: saveSchematicLayerDto,
|
|
1297
|
+
responseType: responseType_,
|
|
1298
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
1299
|
+
headers: localVarHeaders,
|
|
1300
|
+
observe: observe,
|
|
1301
|
+
transferCache: localVarTransferCache,
|
|
1302
|
+
reportProgress: reportProgress,
|
|
1303
|
+
});
|
|
1304
|
+
}
|
|
1254
1305
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: BombSchematicsApiService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1255
1306
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: BombSchematicsApiService, providedIn: "root" });
|
|
1256
1307
|
}
|
|
@@ -10382,7 +10433,7 @@ var FeedbackType;
|
|
|
10382
10433
|
* Do not edit the class manually.
|
|
10383
10434
|
*/
|
|
10384
10435
|
/**
|
|
10385
|
-
* File type.<br />FileType<br />0 = RsdRegionDocument<br />1 = ControllerProgram<br />2 = RepSalesReport<br />3 = ProjectNoteAttachment<br />4 = BidStatusAttachment
|
|
10436
|
+
* File type.<br />FileType<br />0 = RsdRegionDocument<br />1 = ControllerProgram<br />2 = RepSalesReport<br />3 = ProjectNoteAttachment<br />4 = BidStatusAttachment<br />5 = SchematicLayerFile
|
|
10386
10437
|
*/
|
|
10387
10438
|
var FileType;
|
|
10388
10439
|
(function (FileType) {
|
|
@@ -10391,6 +10442,7 @@ var FileType;
|
|
|
10391
10442
|
FileType["RepSalesReport"] = "RepSalesReport";
|
|
10392
10443
|
FileType["ProjectNoteAttachment"] = "ProjectNoteAttachment";
|
|
10393
10444
|
FileType["BidStatusAttachment"] = "BidStatusAttachment";
|
|
10445
|
+
FileType["SchematicLayerFile"] = "SchematicLayerFile";
|
|
10394
10446
|
})(FileType || (FileType = {}));
|
|
10395
10447
|
|
|
10396
10448
|
/**
|