@saritasa/renewaire-frontend-sdk 0.45.0 → 0.47.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.45.0
1
+ # @@saritasa/renewaire-frontend-sdk@0.47.0
2
2
 
3
3
  ```bash
4
- npm install @saritasa/renewaire-frontend-sdk@0.45.0 --save
4
+ npm install @saritasa/renewaire-frontend-sdk@0.47.0 --save
5
5
  ```
@@ -767,7 +767,7 @@ class GroupsApiService extends BaseService {
767
767
  responseType_ = "blob";
768
768
  }
769
769
  }
770
- let localVarPath = `/api/groups/${this.configuration.encodeParam({ name: "groupId", value: groupId, in: "path", style: "simple", explode: false, dataType: "object", dataFormat: "int32" })}`;
770
+ let localVarPath = `/api/groups/${this.configuration.encodeParam({ name: "groupId", value: groupId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
771
771
  const { basePath, withCredentials } = this.configuration;
772
772
  return this.httpClient.request("get", `${basePath}${localVarPath}`, {
773
773
  context: localVarHttpContext,
@@ -805,7 +805,7 @@ class GroupsApiService extends BaseService {
805
805
  responseType_ = "blob";
806
806
  }
807
807
  }
808
- let localVarPath = `/api/groups/${this.configuration.encodeParam({ name: "groupId", value: groupId, in: "path", style: "simple", explode: false, dataType: "object", dataFormat: "int32" })}`;
808
+ let localVarPath = `/api/groups/${this.configuration.encodeParam({ name: "groupId", value: groupId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
809
809
  const { basePath, withCredentials } = this.configuration;
810
810
  return this.httpClient.request("delete", `${basePath}${localVarPath}`, {
811
811
  context: localVarHttpContext,
@@ -925,7 +925,7 @@ class GroupsApiService extends BaseService {
925
925
  responseType_ = "blob";
926
926
  }
927
927
  }
928
- let localVarPath = `/api/groups/${this.configuration.encodeParam({ name: "groupId", value: groupId, in: "path", style: "simple", explode: false, dataType: "object", dataFormat: "int32" })}`;
928
+ let localVarPath = `/api/groups/${this.configuration.encodeParam({ name: "groupId", value: groupId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
929
929
  const { basePath, withCredentials } = this.configuration;
930
930
  return this.httpClient.request("put", `${basePath}${localVarPath}`, {
931
931
  context: localVarHttpContext,
@@ -1288,7 +1288,7 @@ class PermissionBundlesApiService extends BaseService {
1288
1288
  responseType_ = "blob";
1289
1289
  }
1290
1290
  }
1291
- let localVarPath = `/api/permission-bundles/${this.configuration.encodeParam({ name: "permissionBundleId", value: permissionBundleId, in: "path", style: "simple", explode: false, dataType: "object", dataFormat: "int32" })}`;
1291
+ let localVarPath = `/api/permission-bundles/${this.configuration.encodeParam({ name: "permissionBundleId", value: permissionBundleId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
1292
1292
  const { basePath, withCredentials } = this.configuration;
1293
1293
  return this.httpClient.request("get", `${basePath}${localVarPath}`, {
1294
1294
  context: localVarHttpContext,
@@ -1326,7 +1326,7 @@ class PermissionBundlesApiService extends BaseService {
1326
1326
  responseType_ = "blob";
1327
1327
  }
1328
1328
  }
1329
- let localVarPath = `/api/permission-bundles/${this.configuration.encodeParam({ name: "permissionBundleId", value: permissionBundleId, in: "path", style: "simple", explode: false, dataType: "object", dataFormat: "int32" })}`;
1329
+ let localVarPath = `/api/permission-bundles/${this.configuration.encodeParam({ name: "permissionBundleId", value: permissionBundleId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
1330
1330
  const { basePath, withCredentials } = this.configuration;
1331
1331
  return this.httpClient.request("delete", `${basePath}${localVarPath}`, {
1332
1332
  context: localVarHttpContext,
@@ -1434,7 +1434,7 @@ class PermissionBundlesApiService extends BaseService {
1434
1434
  responseType_ = "blob";
1435
1435
  }
1436
1436
  }
1437
- let localVarPath = `/api/permission-bundles/${this.configuration.encodeParam({ name: "permissionBundleId", value: permissionBundleId, in: "path", style: "simple", explode: false, dataType: "object", dataFormat: "int32" })}`;
1437
+ let localVarPath = `/api/permission-bundles/${this.configuration.encodeParam({ name: "permissionBundleId", value: permissionBundleId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
1438
1438
  const { basePath, withCredentials } = this.configuration;
1439
1439
  return this.httpClient.request("put", `${basePath}${localVarPath}`, {
1440
1440
  context: localVarHttpContext,
@@ -1594,7 +1594,7 @@ class ProjectsApiService extends BaseService {
1594
1594
  responseType_ = "blob";
1595
1595
  }
1596
1596
  }
1597
- let localVarPath = `/api/projects/${this.configuration.encodeParam({ name: "projectId", value: projectId, in: "path", style: "simple", explode: false, dataType: "object", dataFormat: "int64" })}/cancel-quote-request`;
1597
+ let localVarPath = `/api/projects/${this.configuration.encodeParam({ name: "projectId", value: projectId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}/cancel-quote-request`;
1598
1598
  const { basePath, withCredentials } = this.configuration;
1599
1599
  return this.httpClient.request("put", `${basePath}${localVarPath}`, {
1600
1600
  context: localVarHttpContext,
@@ -1700,7 +1700,7 @@ class ProjectsApiService extends BaseService {
1700
1700
  responseType_ = "blob";
1701
1701
  }
1702
1702
  }
1703
- let localVarPath = `/api/projects/${this.configuration.encodeParam({ name: "projectId", value: projectId, in: "path", style: "simple", explode: false, dataType: "object", dataFormat: "int64" })}/request-order`;
1703
+ let localVarPath = `/api/projects/${this.configuration.encodeParam({ name: "projectId", value: projectId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}/request-order`;
1704
1704
  const { basePath, withCredentials } = this.configuration;
1705
1705
  return this.httpClient.request("put", `${basePath}${localVarPath}`, {
1706
1706
  context: localVarHttpContext,
@@ -1755,7 +1755,7 @@ class ProjectsApiService extends BaseService {
1755
1755
  responseType_ = "blob";
1756
1756
  }
1757
1757
  }
1758
- let localVarPath = `/api/projects/${this.configuration.encodeParam({ name: "projectId", value: projectId, in: "path", style: "simple", explode: false, dataType: "object", dataFormat: "int64" })}/request-quote`;
1758
+ let localVarPath = `/api/projects/${this.configuration.encodeParam({ name: "projectId", value: projectId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}/request-quote`;
1759
1759
  const { basePath, withCredentials } = this.configuration;
1760
1760
  return this.httpClient.request("put", `${basePath}${localVarPath}`, {
1761
1761
  context: localVarHttpContext,
@@ -1810,7 +1810,7 @@ class ProjectsApiService extends BaseService {
1810
1810
  responseType_ = "blob";
1811
1811
  }
1812
1812
  }
1813
- let localVarPath = `/api/projects/${this.configuration.encodeParam({ name: "projectId", value: projectId, in: "path", style: "simple", explode: false, dataType: "object", dataFormat: "int64" })}/reject-quote`;
1813
+ let localVarPath = `/api/projects/${this.configuration.encodeParam({ name: "projectId", value: projectId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}/reject-quote`;
1814
1814
  const { basePath, withCredentials } = this.configuration;
1815
1815
  return this.httpClient.request("put", `${basePath}${localVarPath}`, {
1816
1816
  context: localVarHttpContext,
@@ -1865,7 +1865,7 @@ class ProjectsApiService extends BaseService {
1865
1865
  responseType_ = "blob";
1866
1866
  }
1867
1867
  }
1868
- let localVarPath = `/api/projects/${this.configuration.encodeParam({ name: "projectId", value: projectId, in: "path", style: "simple", explode: false, dataType: "object", dataFormat: "int64" })}/submit-quote`;
1868
+ let localVarPath = `/api/projects/${this.configuration.encodeParam({ name: "projectId", value: projectId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}/submit-quote`;
1869
1869
  const { basePath, withCredentials } = this.configuration;
1870
1870
  return this.httpClient.request("put", `${basePath}${localVarPath}`, {
1871
1871
  context: localVarHttpContext,
@@ -1920,7 +1920,7 @@ class ProjectsApiService extends BaseService {
1920
1920
  responseType_ = "blob";
1921
1921
  }
1922
1922
  }
1923
- let localVarPath = `/api/projects/${this.configuration.encodeParam({ name: "projectId", value: projectId, in: "path", style: "simple", explode: false, dataType: "object", dataFormat: "int64" })}/submit-to-renewaire`;
1923
+ let localVarPath = `/api/projects/${this.configuration.encodeParam({ name: "projectId", value: projectId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}/submit-to-renewaire`;
1924
1924
  const { basePath, withCredentials } = this.configuration;
1925
1925
  return this.httpClient.request("put", `${basePath}${localVarPath}`, {
1926
1926
  context: localVarHttpContext,
@@ -2531,7 +2531,7 @@ class RepTerritoriesApiService extends BaseService {
2531
2531
  responseType_ = "blob";
2532
2532
  }
2533
2533
  }
2534
- let localVarPath = `/api/rep-territories/${this.configuration.encodeParam({ name: "repTerritoryId", value: repTerritoryId, in: "path", style: "simple", explode: false, dataType: "object", dataFormat: "int32" })}/locations`;
2534
+ let localVarPath = `/api/rep-territories/${this.configuration.encodeParam({ name: "repTerritoryId", value: repTerritoryId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}/locations`;
2535
2535
  const { basePath, withCredentials } = this.configuration;
2536
2536
  return this.httpClient.request("post", `${basePath}${localVarPath}`, {
2537
2537
  context: localVarHttpContext,
@@ -2586,7 +2586,7 @@ class RepTerritoriesApiService extends BaseService {
2586
2586
  responseType_ = "blob";
2587
2587
  }
2588
2588
  }
2589
- let localVarPath = `/api/rep-territories/${this.configuration.encodeParam({ name: "repTerritoryId", value: repTerritoryId, in: "path", style: "simple", explode: false, dataType: "object", dataFormat: "int32" })}/rep-contacts`;
2589
+ let localVarPath = `/api/rep-territories/${this.configuration.encodeParam({ name: "repTerritoryId", value: repTerritoryId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}/rep-contacts`;
2590
2590
  const { basePath, withCredentials } = this.configuration;
2591
2591
  return this.httpClient.request("post", `${basePath}${localVarPath}`, {
2592
2592
  context: localVarHttpContext,
@@ -2630,7 +2630,7 @@ class RepTerritoriesApiService extends BaseService {
2630
2630
  responseType_ = "blob";
2631
2631
  }
2632
2632
  }
2633
- let localVarPath = `/api/rep-territories/${this.configuration.encodeParam({ name: "repTerritoryId", value: repTerritoryId, in: "path", style: "simple", explode: false, dataType: "object", dataFormat: "int32" })}`;
2633
+ let localVarPath = `/api/rep-territories/${this.configuration.encodeParam({ name: "repTerritoryId", value: repTerritoryId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
2634
2634
  const { basePath, withCredentials } = this.configuration;
2635
2635
  return this.httpClient.request("get", `${basePath}${localVarPath}`, {
2636
2636
  context: localVarHttpContext,
@@ -2668,7 +2668,7 @@ class RepTerritoriesApiService extends BaseService {
2668
2668
  responseType_ = "blob";
2669
2669
  }
2670
2670
  }
2671
- let localVarPath = `/api/rep-territories/${this.configuration.encodeParam({ name: "repTerritoryId", value: repTerritoryId, in: "path", style: "simple", explode: false, dataType: "object", dataFormat: "int32" })}`;
2671
+ let localVarPath = `/api/rep-territories/${this.configuration.encodeParam({ name: "repTerritoryId", value: repTerritoryId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
2672
2672
  const { basePath, withCredentials } = this.configuration;
2673
2673
  return this.httpClient.request("delete", `${basePath}${localVarPath}`, {
2674
2674
  context: localVarHttpContext,
@@ -2828,10 +2828,6 @@ class RepTerritoriesApiService extends BaseService {
2828
2828
  if (isActive === null || isActive === undefined) {
2829
2829
  throw new Error("Required parameter isActive was null or undefined when calling repTerritoriesUpdateRepTerritory.");
2830
2830
  }
2831
- const repContacts = requestParameters?.repContacts;
2832
- if (repContacts === null || repContacts === undefined) {
2833
- throw new Error("Required parameter repContacts was null or undefined when calling repTerritoriesUpdateRepTerritory.");
2834
- }
2835
2831
  const saveDtoPicture = requestParameters?.saveDtoPicture;
2836
2832
  const saveDtoAddressAddress2 = requestParameters?.saveDtoAddressAddress2;
2837
2833
  const saveDtoAddressCity = requestParameters?.saveDtoAddressCity;
@@ -2839,6 +2835,7 @@ class RepTerritoriesApiService extends BaseService {
2839
2835
  const saveDtoAddressApartmentNumber = requestParameters?.saveDtoAddressApartmentNumber;
2840
2836
  const saveDtoManagerGroupId = requestParameters?.saveDtoManagerGroupId;
2841
2837
  const saveDtoSalesContactIds = requestParameters?.saveDtoSalesContactIds;
2838
+ const repContacts = requestParameters?.repContacts;
2842
2839
  let localVarHeaders = this.defaultHeaders;
2843
2840
  // authentication (Bearer) required
2844
2841
  localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
@@ -2967,7 +2964,7 @@ class RepTerritoriesApiService extends BaseService {
2967
2964
  responseType_ = "blob";
2968
2965
  }
2969
2966
  }
2970
- let localVarPath = `/api/rep-territories/${this.configuration.encodeParam({ name: "repTerritoryId", value: repTerritoryId, in: "path", style: "simple", explode: false, dataType: "object", dataFormat: "int32" })}`;
2967
+ let localVarPath = `/api/rep-territories/${this.configuration.encodeParam({ name: "repTerritoryId", value: repTerritoryId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
2971
2968
  const { basePath, withCredentials } = this.configuration;
2972
2969
  return this.httpClient.request("put", `${basePath}${localVarPath}`, {
2973
2970
  context: localVarHttpContext,
@@ -3286,7 +3283,7 @@ class RsdRegionsApiService extends BaseService {
3286
3283
  responseType_ = "blob";
3287
3284
  }
3288
3285
  }
3289
- let localVarPath = `/api/rsd-regions/${this.configuration.encodeParam({ name: "rsdRegionId", value: rsdRegionId, in: "path", style: "simple", explode: false, dataType: "object", dataFormat: "int32" })}/documents/${this.configuration.encodeParam({ name: "documentId", value: documentId, in: "path", style: "simple", explode: false, dataType: "object", dataFormat: "int32" })}/download-url`;
3286
+ let localVarPath = `/api/rsd-regions/${this.configuration.encodeParam({ name: "rsdRegionId", value: rsdRegionId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}/documents/${this.configuration.encodeParam({ name: "documentId", value: documentId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}/download-url`;
3290
3287
  const { basePath, withCredentials } = this.configuration;
3291
3288
  return this.httpClient.request("get", `${basePath}${localVarPath}`, {
3292
3289
  context: localVarHttpContext,
@@ -3487,7 +3484,7 @@ class RsdRegionsApiService extends BaseService {
3487
3484
  responseType_ = "blob";
3488
3485
  }
3489
3486
  }
3490
- let localVarPath = `/api/rsd-regions/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "object", dataFormat: "int32" })}/documents`;
3487
+ let localVarPath = `/api/rsd-regions/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}/documents`;
3491
3488
  const { basePath, withCredentials } = this.configuration;
3492
3489
  return this.httpClient.request("post", `${basePath}${localVarPath}`, {
3493
3490
  context: localVarHttpContext,
@@ -3531,7 +3528,7 @@ class RsdRegionsApiService extends BaseService {
3531
3528
  responseType_ = "blob";
3532
3529
  }
3533
3530
  }
3534
- let localVarPath = `/api/rsd-regions/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "object", dataFormat: "int32" })}`;
3531
+ let localVarPath = `/api/rsd-regions/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
3535
3532
  const { basePath, withCredentials } = this.configuration;
3536
3533
  return this.httpClient.request("get", `${basePath}${localVarPath}`, {
3537
3534
  context: localVarHttpContext,
@@ -3569,7 +3566,7 @@ class RsdRegionsApiService extends BaseService {
3569
3566
  responseType_ = "blob";
3570
3567
  }
3571
3568
  }
3572
- let localVarPath = `/api/rsd-regions/${this.configuration.encodeParam({ name: "rsdRegionId", value: rsdRegionId, in: "path", style: "simple", explode: false, dataType: "object", dataFormat: "int32" })}`;
3569
+ let localVarPath = `/api/rsd-regions/${this.configuration.encodeParam({ name: "rsdRegionId", value: rsdRegionId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
3573
3570
  const { basePath, withCredentials } = this.configuration;
3574
3571
  return this.httpClient.request("delete", `${basePath}${localVarPath}`, {
3575
3572
  context: localVarHttpContext,
@@ -3840,7 +3837,7 @@ class RsdRegionsApiService extends BaseService {
3840
3837
  responseType_ = "blob";
3841
3838
  }
3842
3839
  }
3843
- let localVarPath = `/api/rsd-regions/${this.configuration.encodeParam({ name: "rsdRegionId", value: rsdRegionId, in: "path", style: "simple", explode: false, dataType: "object", dataFormat: "int32" })}`;
3840
+ let localVarPath = `/api/rsd-regions/${this.configuration.encodeParam({ name: "rsdRegionId", value: rsdRegionId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
3844
3841
  const { basePath, withCredentials } = this.configuration;
3845
3842
  return this.httpClient.request("put", `${basePath}${localVarPath}`, {
3846
3843
  context: localVarHttpContext,