@saritasa/renewaire-frontend-sdk 0.162.0 → 0.164.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.162.0
1
+ # @@saritasa/renewaire-frontend-sdk@0.164.0
2
2
 
3
3
  ```bash
4
- npm install @saritasa/renewaire-frontend-sdk@0.162.0 --save
4
+ npm install @saritasa/renewaire-frontend-sdk@0.164.0 --save
5
5
  ```
@@ -2041,6 +2041,57 @@ class MaterialsApiService extends BaseService {
2041
2041
  reportProgress: reportProgress,
2042
2042
  });
2043
2043
  }
2044
+ materialsUpdateMaterialLayer(requestParameters, observe = "body", reportProgress = false, options) {
2045
+ const materialLayerId = requestParameters?.materialLayerId;
2046
+ if (materialLayerId === null || materialLayerId === undefined) {
2047
+ throw new Error("Required parameter materialLayerId was null or undefined when calling materialsUpdateMaterialLayer.");
2048
+ }
2049
+ const saveMaterialLayerDto = requestParameters?.saveMaterialLayerDto;
2050
+ let localVarHeaders = this.defaultHeaders;
2051
+ // authentication (Bearer) required
2052
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
2053
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
2054
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
2055
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
2056
+ }
2057
+ const localVarHttpContext = options?.context ?? new HttpContext();
2058
+ const localVarTransferCache = options?.transferCache ?? true;
2059
+ // to determine the Content-Type header
2060
+ const consumes = [
2061
+ "application/json-patch+json",
2062
+ "application/json",
2063
+ "text/json",
2064
+ "application/*+json",
2065
+ ];
2066
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
2067
+ if (httpContentTypeSelected !== undefined) {
2068
+ localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
2069
+ }
2070
+ let responseType_ = "json";
2071
+ if (localVarHttpHeaderAcceptSelected) {
2072
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
2073
+ responseType_ = "text";
2074
+ }
2075
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
2076
+ responseType_ = "json";
2077
+ }
2078
+ else {
2079
+ responseType_ = "blob";
2080
+ }
2081
+ }
2082
+ let localVarPath = `/api/materials/${this.configuration.encodeParam({ name: "materialLayerId", value: materialLayerId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}`;
2083
+ const { basePath, withCredentials } = this.configuration;
2084
+ return this.httpClient.request("put", `${basePath}${localVarPath}`, {
2085
+ context: localVarHttpContext,
2086
+ body: saveMaterialLayerDto,
2087
+ responseType: responseType_,
2088
+ ...(withCredentials ? { withCredentials } : {}),
2089
+ headers: localVarHeaders,
2090
+ observe: observe,
2091
+ transferCache: localVarTransferCache,
2092
+ reportProgress: reportProgress,
2093
+ });
2094
+ }
2044
2095
  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 });
2045
2096
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: MaterialsApiService, providedIn: "root" });
2046
2097
  }
@@ -5544,6 +5595,7 @@ class RepTerritoriesApiService extends BaseService {
5544
5595
  const addressCounty = requestParameters?.addressCounty;
5545
5596
  const addressApartmentNumber = requestParameters?.addressApartmentNumber;
5546
5597
  const managerGroupId = requestParameters?.managerGroupId;
5598
+ const csiSalesman = requestParameters?.csiSalesman;
5547
5599
  let localVarHeaders = this.defaultHeaders;
5548
5600
  // authentication (Bearer) required
5549
5601
  localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
@@ -5661,6 +5713,11 @@ class RepTerritoriesApiService extends BaseService {
5661
5713
  localVarFormParams;
5662
5714
  });
5663
5715
  }
5716
+ if (csiSalesman !== undefined) {
5717
+ localVarFormParams =
5718
+ localVarFormParams.append("CsiSalesman", csiSalesman) ||
5719
+ localVarFormParams;
5720
+ }
5664
5721
  let responseType_ = "json";
5665
5722
  if (localVarHttpHeaderAcceptSelected) {
5666
5723
  if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
@@ -6097,6 +6154,7 @@ class RepTerritoriesApiService extends BaseService {
6097
6154
  const saveDtoAddressCounty = requestParameters?.saveDtoAddressCounty;
6098
6155
  const saveDtoAddressApartmentNumber = requestParameters?.saveDtoAddressApartmentNumber;
6099
6156
  const saveDtoManagerGroupId = requestParameters?.saveDtoManagerGroupId;
6157
+ const saveDtoCsiSalesman = requestParameters?.saveDtoCsiSalesman;
6100
6158
  const shouldRemovePicture = requestParameters?.shouldRemovePicture;
6101
6159
  const repContacts = requestParameters?.repContacts;
6102
6160
  let localVarHeaders = this.defaultHeaders;
@@ -6203,6 +6261,10 @@ class RepTerritoriesApiService extends BaseService {
6203
6261
  localVarFormParams.append("SaveDto.SalesContactIds", element) || localVarFormParams;
6204
6262
  });
6205
6263
  }
6264
+ if (saveDtoCsiSalesman !== undefined) {
6265
+ localVarFormParams =
6266
+ localVarFormParams.append("SaveDto.CsiSalesman", saveDtoCsiSalesman) || localVarFormParams;
6267
+ }
6206
6268
  if (isActive !== undefined) {
6207
6269
  localVarFormParams =
6208
6270
  localVarFormParams.append("IsActive", isActive) ||
@@ -10663,6 +10725,26 @@ var RegistrationStatus;
10663
10725
  * Do not edit the class manually.
10664
10726
  */
10665
10727
 
10728
+ /**
10729
+ * RenewAire CORES API
10730
+ *
10731
+ * Contact: renewaire@saritasa.com
10732
+ *
10733
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
10734
+ * https://openapi-generator.tech
10735
+ * Do not edit the class manually.
10736
+ */
10737
+
10738
+ /**
10739
+ * RenewAire CORES API
10740
+ *
10741
+ * Contact: renewaire@saritasa.com
10742
+ *
10743
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
10744
+ * https://openapi-generator.tech
10745
+ * Do not edit the class manually.
10746
+ */
10747
+
10666
10748
  /**
10667
10749
  * RenewAire CORES API
10668
10750
  *