@saritasa/renewaire-frontend-sdk 0.159.0 → 0.160.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.159.0
1
+ # @@saritasa/renewaire-frontend-sdk@0.160.0
2
2
 
3
3
  ```bash
4
- npm install @saritasa/renewaire-frontend-sdk@0.159.0 --save
4
+ npm install @saritasa/renewaire-frontend-sdk@0.160.0 --save
5
5
  ```
@@ -2003,6 +2003,44 @@ class MaterialsApiService extends BaseService {
2003
2003
  reportProgress: reportProgress,
2004
2004
  });
2005
2005
  }
2006
+ materialsRemoveGroup(requestParameters, observe = "body", reportProgress = false, options) {
2007
+ const materialLayerId = requestParameters?.materialLayerId;
2008
+ if (materialLayerId === null || materialLayerId === undefined) {
2009
+ throw new Error("Required parameter materialLayerId was null or undefined when calling materialsRemoveGroup.");
2010
+ }
2011
+ let localVarHeaders = this.defaultHeaders;
2012
+ // authentication (Bearer) required
2013
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
2014
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
2015
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
2016
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
2017
+ }
2018
+ const localVarHttpContext = options?.context ?? new HttpContext();
2019
+ const localVarTransferCache = options?.transferCache ?? true;
2020
+ let responseType_ = "json";
2021
+ if (localVarHttpHeaderAcceptSelected) {
2022
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
2023
+ responseType_ = "text";
2024
+ }
2025
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
2026
+ responseType_ = "json";
2027
+ }
2028
+ else {
2029
+ responseType_ = "blob";
2030
+ }
2031
+ }
2032
+ let localVarPath = `/api/materials/${this.configuration.encodeParam({ name: "materialLayerId", value: materialLayerId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}`;
2033
+ const { basePath, withCredentials } = this.configuration;
2034
+ return this.httpClient.request("delete", `${basePath}${localVarPath}`, {
2035
+ context: localVarHttpContext,
2036
+ responseType: responseType_,
2037
+ ...(withCredentials ? { withCredentials } : {}),
2038
+ headers: localVarHeaders,
2039
+ observe: observe,
2040
+ transferCache: localVarTransferCache,
2041
+ reportProgress: reportProgress,
2042
+ });
2043
+ }
2006
2044
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: MaterialsApiService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
2007
2045
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: MaterialsApiService, providedIn: "root" });
2008
2046
  }
@@ -9433,7 +9471,7 @@ var AshraeVersion;
9433
9471
  * Do not edit the class manually.
9434
9472
  */
9435
9473
  /**
9436
- * 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
9474
+ * 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
9437
9475
  */
9438
9476
  var AuditEntity;
9439
9477
  (function (AuditEntity) {
@@ -9448,6 +9486,7 @@ var AuditEntity;
9448
9486
  AuditEntity["RepTerritoryLocation"] = "RepTerritoryLocation";
9449
9487
  AuditEntity["ProjectRevision"] = "ProjectRevision";
9450
9488
  AuditEntity["Project"] = "Project";
9489
+ AuditEntity["MaterialLayer"] = "MaterialLayer";
9451
9490
  })(AuditEntity || (AuditEntity = {}));
9452
9491
 
9453
9492
  /**