@saritasa/renewaire-frontend-sdk 0.158.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.158.0
1
+ # @@saritasa/renewaire-frontend-sdk@0.160.0
2
2
 
3
3
  ```bash
4
- npm install @saritasa/renewaire-frontend-sdk@0.158.0 --save
4
+ npm install @saritasa/renewaire-frontend-sdk@0.160.0 --save
5
5
  ```
@@ -1960,6 +1960,87 @@ class MaterialsApiService extends BaseService {
1960
1960
  reportProgress: reportProgress,
1961
1961
  });
1962
1962
  }
1963
+ materialsGetMaterialLayer(requestParameters, observe = "body", reportProgress = false, options) {
1964
+ const materialLayerId = requestParameters?.materialLayerId;
1965
+ if (materialLayerId === null || materialLayerId === undefined) {
1966
+ throw new Error("Required parameter materialLayerId was null or undefined when calling materialsGetMaterialLayer.");
1967
+ }
1968
+ let localVarHeaders = this.defaultHeaders;
1969
+ // authentication (Bearer) required
1970
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
1971
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
1972
+ this.configuration.selectHeaderAccept([
1973
+ "text/plain",
1974
+ "application/json",
1975
+ "text/json",
1976
+ ]);
1977
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1978
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
1979
+ }
1980
+ const localVarHttpContext = options?.context ?? new HttpContext();
1981
+ const localVarTransferCache = options?.transferCache ?? true;
1982
+ let responseType_ = "json";
1983
+ if (localVarHttpHeaderAcceptSelected) {
1984
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
1985
+ responseType_ = "text";
1986
+ }
1987
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1988
+ responseType_ = "json";
1989
+ }
1990
+ else {
1991
+ responseType_ = "blob";
1992
+ }
1993
+ }
1994
+ let localVarPath = `/api/materials/${this.configuration.encodeParam({ name: "materialLayerId", value: materialLayerId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}`;
1995
+ const { basePath, withCredentials } = this.configuration;
1996
+ return this.httpClient.request("get", `${basePath}${localVarPath}`, {
1997
+ context: localVarHttpContext,
1998
+ responseType: responseType_,
1999
+ ...(withCredentials ? { withCredentials } : {}),
2000
+ headers: localVarHeaders,
2001
+ observe: observe,
2002
+ transferCache: localVarTransferCache,
2003
+ reportProgress: reportProgress,
2004
+ });
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
+ }
1963
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 });
1964
2045
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: MaterialsApiService, providedIn: "root" });
1965
2046
  }
@@ -9390,7 +9471,7 @@ var AshraeVersion;
9390
9471
  * Do not edit the class manually.
9391
9472
  */
9392
9473
  /**
9393
- * 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
9394
9475
  */
9395
9476
  var AuditEntity;
9396
9477
  (function (AuditEntity) {
@@ -9405,6 +9486,7 @@ var AuditEntity;
9405
9486
  AuditEntity["RepTerritoryLocation"] = "RepTerritoryLocation";
9406
9487
  AuditEntity["ProjectRevision"] = "ProjectRevision";
9407
9488
  AuditEntity["Project"] = "Project";
9489
+ AuditEntity["MaterialLayer"] = "MaterialLayer";
9408
9490
  })(AuditEntity || (AuditEntity = {}));
9409
9491
 
9410
9492
  /**
@@ -9892,6 +9974,26 @@ var LeadTimeType;
9892
9974
  * Do not edit the class manually.
9893
9975
  */
9894
9976
 
9977
+ /**
9978
+ * RenewAire CORES API
9979
+ *
9980
+ * Contact: renewaire@saritasa.com
9981
+ *
9982
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9983
+ * https://openapi-generator.tech
9984
+ * Do not edit the class manually.
9985
+ */
9986
+
9987
+ /**
9988
+ * RenewAire CORES API
9989
+ *
9990
+ * Contact: renewaire@saritasa.com
9991
+ *
9992
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9993
+ * https://openapi-generator.tech
9994
+ * Do not edit the class manually.
9995
+ */
9996
+
9895
9997
  /**
9896
9998
  * RenewAire CORES API
9897
9999
  *