@saritasa/renewaire-frontend-sdk 0.197.0 → 0.199.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
@@ -1,5 +1,5 @@
1
- # @@saritasa/renewaire-frontend-sdk@0.197.0
1
+ # @@saritasa/renewaire-frontend-sdk@0.199.0
2
2
 
3
3
  ```bash
4
- npm install @saritasa/renewaire-frontend-sdk@0.197.0 --save
4
+ npm install @saritasa/renewaire-frontend-sdk@0.199.0 --save
5
5
  ```
@@ -860,7 +860,7 @@ class BombMaterialsApiService extends BaseService {
860
860
  if (materialLayerId === null || materialLayerId === undefined) {
861
861
  throw new Error("Required parameter materialLayerId was null or undefined when calling materialsMoveMaterialLayer.");
862
862
  }
863
- const moveMaterialLayerDto = requestParameters?.moveMaterialLayerDto;
863
+ const materialLayerIdMoveLayerDto = requestParameters?.materialLayerIdMoveLayerDto;
864
864
  let localVarHeaders = this.defaultHeaders;
865
865
  // authentication (Bearer) required
866
866
  localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
@@ -897,7 +897,7 @@ class BombMaterialsApiService extends BaseService {
897
897
  const { basePath, withCredentials } = this.configuration;
898
898
  return this.httpClient.request("post", `${basePath}${localVarPath}`, {
899
899
  context: localVarHttpContext,
900
- body: moveMaterialLayerDto,
900
+ body: materialLayerIdMoveLayerDto,
901
901
  responseType: responseType_,
902
902
  ...(withCredentials ? { withCredentials } : {}),
903
903
  headers: localVarHeaders,
@@ -1166,6 +1166,44 @@ class BombRoutingsApiService extends BaseService {
1166
1166
  reportProgress: reportProgress,
1167
1167
  });
1168
1168
  }
1169
+ routingsRemoveRoutingLayer(requestParameters, observe = "body", reportProgress = false, options) {
1170
+ const routingLayerId = requestParameters?.routingLayerId;
1171
+ if (routingLayerId === null || routingLayerId === undefined) {
1172
+ throw new Error("Required parameter routingLayerId was null or undefined when calling routingsRemoveRoutingLayer.");
1173
+ }
1174
+ let localVarHeaders = this.defaultHeaders;
1175
+ // authentication (Bearer) required
1176
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
1177
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
1178
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1179
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
1180
+ }
1181
+ const localVarHttpContext = options?.context ?? new HttpContext();
1182
+ const localVarTransferCache = options?.transferCache ?? true;
1183
+ let responseType_ = "json";
1184
+ if (localVarHttpHeaderAcceptSelected) {
1185
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
1186
+ responseType_ = "text";
1187
+ }
1188
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1189
+ responseType_ = "json";
1190
+ }
1191
+ else {
1192
+ responseType_ = "blob";
1193
+ }
1194
+ }
1195
+ let localVarPath = `/api/bomb/routings/${this.configuration.encodeParam({ name: "routingLayerId", value: routingLayerId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}`;
1196
+ const { basePath, withCredentials } = this.configuration;
1197
+ return this.httpClient.request("delete", `${basePath}${localVarPath}`, {
1198
+ context: localVarHttpContext,
1199
+ responseType: responseType_,
1200
+ ...(withCredentials ? { withCredentials } : {}),
1201
+ headers: localVarHeaders,
1202
+ observe: observe,
1203
+ transferCache: localVarTransferCache,
1204
+ reportProgress: reportProgress,
1205
+ });
1206
+ }
1169
1207
  routingsSearchRoutingLayers(requestParameters, observe = "body", reportProgress = false, options) {
1170
1208
  const parentRoutingLayerId = requestParameters?.parentRoutingLayerId;
1171
1209
  let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
@@ -1173,12 +1211,7 @@ class BombRoutingsApiService extends BaseService {
1173
1211
  let localVarHeaders = this.defaultHeaders;
1174
1212
  // authentication (Bearer) required
1175
1213
  localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
1176
- const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
1177
- this.configuration.selectHeaderAccept([
1178
- "text/plain",
1179
- "application/json",
1180
- "text/json",
1181
- ]);
1214
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
1182
1215
  if (localVarHttpHeaderAcceptSelected !== undefined) {
1183
1216
  localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
1184
1217
  }
@@ -1426,6 +1459,57 @@ class BombSchematicsApiService extends BaseService {
1426
1459
  reportProgress: reportProgress,
1427
1460
  });
1428
1461
  }
1462
+ schematicsMoveMaterialLayer(requestParameters, observe = "body", reportProgress = false, options) {
1463
+ const schematicLayerId = requestParameters?.schematicLayerId;
1464
+ if (schematicLayerId === null || schematicLayerId === undefined) {
1465
+ throw new Error("Required parameter schematicLayerId was null or undefined when calling schematicsMoveMaterialLayer.");
1466
+ }
1467
+ const schematicLayerIdMoveLayerDto = requestParameters?.schematicLayerIdMoveLayerDto;
1468
+ let localVarHeaders = this.defaultHeaders;
1469
+ // authentication (Bearer) required
1470
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
1471
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
1472
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1473
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
1474
+ }
1475
+ const localVarHttpContext = options?.context ?? new HttpContext();
1476
+ const localVarTransferCache = options?.transferCache ?? true;
1477
+ // to determine the Content-Type header
1478
+ const consumes = [
1479
+ "application/json-patch+json",
1480
+ "application/json",
1481
+ "text/json",
1482
+ "application/*+json",
1483
+ ];
1484
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
1485
+ if (httpContentTypeSelected !== undefined) {
1486
+ localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
1487
+ }
1488
+ let responseType_ = "json";
1489
+ if (localVarHttpHeaderAcceptSelected) {
1490
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
1491
+ responseType_ = "text";
1492
+ }
1493
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1494
+ responseType_ = "json";
1495
+ }
1496
+ else {
1497
+ responseType_ = "blob";
1498
+ }
1499
+ }
1500
+ let localVarPath = `/api/bomb/schematics/${this.configuration.encodeParam({ name: "schematicLayerId", value: schematicLayerId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}/move`;
1501
+ const { basePath, withCredentials } = this.configuration;
1502
+ return this.httpClient.request("post", `${basePath}${localVarPath}`, {
1503
+ context: localVarHttpContext,
1504
+ body: schematicLayerIdMoveLayerDto,
1505
+ responseType: responseType_,
1506
+ ...(withCredentials ? { withCredentials } : {}),
1507
+ headers: localVarHeaders,
1508
+ observe: observe,
1509
+ transferCache: localVarTransferCache,
1510
+ reportProgress: reportProgress,
1511
+ });
1512
+ }
1429
1513
  schematicsRemoveSchematicLayer(requestParameters, observe = "body", reportProgress = false, options) {
1430
1514
  const schematicLayerId = requestParameters?.schematicLayerId;
1431
1515
  if (schematicLayerId === null || schematicLayerId === undefined) {
@@ -10450,7 +10534,7 @@ var AshraeVersion;
10450
10534
  * Do not edit the class manually.
10451
10535
  */
10452
10536
  /**
10453
- * Type of entity that has an ability to track its audit change log. (When adding new options in this enum, need to add a new database migration.)<br />AuditEntity<br />0 = User<br />1 = PermissionBundle<br />2 = RsdRegion<br />3 = RepTerritory<br />4 = UserGroup<br />5 = KnownContact<br />6 = ControllerProgram<br />7 = RepTerritoryRepContact<br />8 = RepTerritoryLocation<br />9 = ProjectRevision<br />10 = Project<br />11 = MaterialLayer<br />12 = SchematicLayer
10537
+ * Type of entity that has an ability to track its audit change log. (When adding new options in this enum, need to add a new database migration.)<br />AuditEntity<br />0 = User<br />1 = PermissionBundle<br />2 = RsdRegion<br />3 = RepTerritory<br />4 = UserGroup<br />5 = KnownContact<br />6 = ControllerProgram<br />7 = RepTerritoryRepContact<br />8 = RepTerritoryLocation<br />9 = ProjectRevision<br />10 = Project<br />11 = MaterialLayer<br />12 = SchematicLayer<br />13 = RoutingLayer<br />14 = ValidationLayer
10454
10538
  */
10455
10539
  var AuditEntity;
10456
10540
  (function (AuditEntity) {
@@ -10467,6 +10551,8 @@ var AuditEntity;
10467
10551
  AuditEntity["Project"] = "Project";
10468
10552
  AuditEntity["MaterialLayer"] = "MaterialLayer";
10469
10553
  AuditEntity["SchematicLayer"] = "SchematicLayer";
10554
+ AuditEntity["RoutingLayer"] = "RoutingLayer";
10555
+ AuditEntity["ValidationLayer"] = "ValidationLayer";
10470
10556
  })(AuditEntity || (AuditEntity = {}));
10471
10557
 
10472
10558
  /**