@saritasa/renewaire-frontend-sdk 0.20.1 → 0.21.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 +2 -2
- package/fesm2022/saritasa-renewaire-frontend-sdk.mjs +148 -104
- package/fesm2022/saritasa-renewaire-frontend-sdk.mjs.map +1 -1
- package/index.d.ts +113 -134
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -630,9 +630,9 @@ class GroupsApiService extends BaseService {
|
|
|
630
630
|
});
|
|
631
631
|
}
|
|
632
632
|
groupsGetGroup(requestParameters, observe = "body", reportProgress = false, options) {
|
|
633
|
-
const
|
|
634
|
-
if (
|
|
635
|
-
throw new Error("Required parameter
|
|
633
|
+
const groupId = requestParameters?.groupId;
|
|
634
|
+
if (groupId === null || groupId === undefined) {
|
|
635
|
+
throw new Error("Required parameter groupId was null or undefined when calling groupsGetGroup.");
|
|
636
636
|
}
|
|
637
637
|
let localVarHeaders = this.defaultHeaders;
|
|
638
638
|
// authentication (Bearer) required
|
|
@@ -660,7 +660,7 @@ class GroupsApiService extends BaseService {
|
|
|
660
660
|
responseType_ = "blob";
|
|
661
661
|
}
|
|
662
662
|
}
|
|
663
|
-
let localVarPath = `/api/groups/${this.configuration.encodeParam({ name: "
|
|
663
|
+
let localVarPath = `/api/groups/${this.configuration.encodeParam({ name: "groupId", value: groupId, in: "path", style: "simple", explode: false, dataType: "object", dataFormat: "int32" })}`;
|
|
664
664
|
const { basePath, withCredentials } = this.configuration;
|
|
665
665
|
return this.httpClient.request("get", `${basePath}${localVarPath}`, {
|
|
666
666
|
context: localVarHttpContext,
|
|
@@ -673,9 +673,9 @@ class GroupsApiService extends BaseService {
|
|
|
673
673
|
});
|
|
674
674
|
}
|
|
675
675
|
groupsRemoveGroup(requestParameters, observe = "body", reportProgress = false, options) {
|
|
676
|
-
const
|
|
677
|
-
if (
|
|
678
|
-
throw new Error("Required parameter
|
|
676
|
+
const groupId = requestParameters?.groupId;
|
|
677
|
+
if (groupId === null || groupId === undefined) {
|
|
678
|
+
throw new Error("Required parameter groupId was null or undefined when calling groupsRemoveGroup.");
|
|
679
679
|
}
|
|
680
680
|
let localVarHeaders = this.defaultHeaders;
|
|
681
681
|
// authentication (Bearer) required
|
|
@@ -698,7 +698,7 @@ class GroupsApiService extends BaseService {
|
|
|
698
698
|
responseType_ = "blob";
|
|
699
699
|
}
|
|
700
700
|
}
|
|
701
|
-
let localVarPath = `/api/groups/${this.configuration.encodeParam({ name: "
|
|
701
|
+
let localVarPath = `/api/groups/${this.configuration.encodeParam({ name: "groupId", value: groupId, in: "path", style: "simple", explode: false, dataType: "object", dataFormat: "int32" })}`;
|
|
702
702
|
const { basePath, withCredentials } = this.configuration;
|
|
703
703
|
return this.httpClient.request("delete", `${basePath}${localVarPath}`, {
|
|
704
704
|
context: localVarHttpContext,
|
|
@@ -777,11 +777,14 @@ class GroupsApiService extends BaseService {
|
|
|
777
777
|
});
|
|
778
778
|
}
|
|
779
779
|
groupsUpdateGroup(requestParameters, observe = "body", reportProgress = false, options) {
|
|
780
|
-
const
|
|
781
|
-
if (
|
|
782
|
-
throw new Error("Required parameter
|
|
780
|
+
const groupId = requestParameters?.groupId;
|
|
781
|
+
if (groupId === null || groupId === undefined) {
|
|
782
|
+
throw new Error("Required parameter groupId was null or undefined when calling groupsUpdateGroup.");
|
|
783
783
|
}
|
|
784
|
+
const isActive = requestParameters?.isActive;
|
|
784
785
|
const saveGroupDto = requestParameters?.saveGroupDto;
|
|
786
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
787
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, isActive, "isActive");
|
|
785
788
|
let localVarHeaders = this.defaultHeaders;
|
|
786
789
|
// authentication (Bearer) required
|
|
787
790
|
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
@@ -813,11 +816,12 @@ class GroupsApiService extends BaseService {
|
|
|
813
816
|
responseType_ = "blob";
|
|
814
817
|
}
|
|
815
818
|
}
|
|
816
|
-
let localVarPath = `/api/groups/${this.configuration.encodeParam({ name: "
|
|
819
|
+
let localVarPath = `/api/groups/${this.configuration.encodeParam({ name: "groupId", value: groupId, in: "path", style: "simple", explode: false, dataType: "object", dataFormat: "int32" })}`;
|
|
817
820
|
const { basePath, withCredentials } = this.configuration;
|
|
818
821
|
return this.httpClient.request("put", `${basePath}${localVarPath}`, {
|
|
819
822
|
context: localVarHttpContext,
|
|
820
823
|
body: saveGroupDto,
|
|
824
|
+
params: localVarQueryParameters,
|
|
821
825
|
responseType: responseType_,
|
|
822
826
|
...(withCredentials ? { withCredentials } : {}),
|
|
823
827
|
headers: localVarHeaders,
|
|
@@ -1173,7 +1177,7 @@ class PermissionBundlesApiService extends BaseService {
|
|
|
1173
1177
|
responseType_ = "blob";
|
|
1174
1178
|
}
|
|
1175
1179
|
}
|
|
1176
|
-
let localVarPath = `/api/permission-bundles/${this.configuration.encodeParam({ name: "permissionBundleId", value: permissionBundleId, in: "path", style: "simple", explode: false, dataType: "
|
|
1180
|
+
let localVarPath = `/api/permission-bundles/${this.configuration.encodeParam({ name: "permissionBundleId", value: permissionBundleId, in: "path", style: "simple", explode: false, dataType: "object", dataFormat: "int32" })}`;
|
|
1177
1181
|
const { basePath, withCredentials } = this.configuration;
|
|
1178
1182
|
return this.httpClient.request("get", `${basePath}${localVarPath}`, {
|
|
1179
1183
|
context: localVarHttpContext,
|
|
@@ -1211,7 +1215,7 @@ class PermissionBundlesApiService extends BaseService {
|
|
|
1211
1215
|
responseType_ = "blob";
|
|
1212
1216
|
}
|
|
1213
1217
|
}
|
|
1214
|
-
let localVarPath = `/api/permission-bundles/${this.configuration.encodeParam({ name: "permissionBundleId", value: permissionBundleId, in: "path", style: "simple", explode: false, dataType: "
|
|
1218
|
+
let localVarPath = `/api/permission-bundles/${this.configuration.encodeParam({ name: "permissionBundleId", value: permissionBundleId, in: "path", style: "simple", explode: false, dataType: "object", dataFormat: "int32" })}`;
|
|
1215
1219
|
const { basePath, withCredentials } = this.configuration;
|
|
1216
1220
|
return this.httpClient.request("delete", `${basePath}${localVarPath}`, {
|
|
1217
1221
|
context: localVarHttpContext,
|
|
@@ -1223,44 +1227,6 @@ class PermissionBundlesApiService extends BaseService {
|
|
|
1223
1227
|
reportProgress: reportProgress,
|
|
1224
1228
|
});
|
|
1225
1229
|
}
|
|
1226
|
-
permissionBundlesRestorePermissionBundle(requestParameters, observe = "body", reportProgress = false, options) {
|
|
1227
|
-
const permissionBundleId = requestParameters?.permissionBundleId;
|
|
1228
|
-
if (permissionBundleId === null || permissionBundleId === undefined) {
|
|
1229
|
-
throw new Error("Required parameter permissionBundleId was null or undefined when calling permissionBundlesRestorePermissionBundle.");
|
|
1230
|
-
}
|
|
1231
|
-
let localVarHeaders = this.defaultHeaders;
|
|
1232
|
-
// authentication (Bearer) required
|
|
1233
|
-
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
1234
|
-
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
1235
|
-
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1236
|
-
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
1237
|
-
}
|
|
1238
|
-
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1239
|
-
const localVarTransferCache = options?.transferCache ?? true;
|
|
1240
|
-
let responseType_ = "json";
|
|
1241
|
-
if (localVarHttpHeaderAcceptSelected) {
|
|
1242
|
-
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
1243
|
-
responseType_ = "text";
|
|
1244
|
-
}
|
|
1245
|
-
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1246
|
-
responseType_ = "json";
|
|
1247
|
-
}
|
|
1248
|
-
else {
|
|
1249
|
-
responseType_ = "blob";
|
|
1250
|
-
}
|
|
1251
|
-
}
|
|
1252
|
-
let localVarPath = `/api/permission-bundles/${this.configuration.encodeParam({ name: "permissionBundleId", value: permissionBundleId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}/restore`;
|
|
1253
|
-
const { basePath, withCredentials } = this.configuration;
|
|
1254
|
-
return this.httpClient.request("post", `${basePath}${localVarPath}`, {
|
|
1255
|
-
context: localVarHttpContext,
|
|
1256
|
-
responseType: responseType_,
|
|
1257
|
-
...(withCredentials ? { withCredentials } : {}),
|
|
1258
|
-
headers: localVarHeaders,
|
|
1259
|
-
observe: observe,
|
|
1260
|
-
transferCache: localVarTransferCache,
|
|
1261
|
-
reportProgress: reportProgress,
|
|
1262
|
-
});
|
|
1263
|
-
}
|
|
1264
1230
|
permissionBundlesSearchPermissionBundles(requestParameters, observe = "body", reportProgress = false, options) {
|
|
1265
1231
|
const name = requestParameters?.name;
|
|
1266
1232
|
const orderBy = requestParameters?.orderBy;
|
|
@@ -1347,7 +1313,7 @@ class PermissionBundlesApiService extends BaseService {
|
|
|
1347
1313
|
responseType_ = "blob";
|
|
1348
1314
|
}
|
|
1349
1315
|
}
|
|
1350
|
-
let localVarPath = `/api/permission-bundles/${this.configuration.encodeParam({ name: "permissionBundleId", value: permissionBundleId, in: "path", style: "simple", explode: false, dataType: "
|
|
1316
|
+
let localVarPath = `/api/permission-bundles/${this.configuration.encodeParam({ name: "permissionBundleId", value: permissionBundleId, in: "path", style: "simple", explode: false, dataType: "object", dataFormat: "int32" })}`;
|
|
1351
1317
|
const { basePath, withCredentials } = this.configuration;
|
|
1352
1318
|
return this.httpClient.request("put", `${basePath}${localVarPath}`, {
|
|
1353
1319
|
context: localVarHttpContext,
|
|
@@ -1811,7 +1777,7 @@ class RepTerritoriesApiService extends BaseService {
|
|
|
1811
1777
|
responseType_ = "blob";
|
|
1812
1778
|
}
|
|
1813
1779
|
}
|
|
1814
|
-
let localVarPath = `/api/rep-territories/${this.configuration.encodeParam({ name: "repTerritoryId", value: repTerritoryId, in: "path", style: "simple", explode: false, dataType: "
|
|
1780
|
+
let localVarPath = `/api/rep-territories/${this.configuration.encodeParam({ name: "repTerritoryId", value: repTerritoryId, in: "path", style: "simple", explode: false, dataType: "object", dataFormat: "int32" })}/locations`;
|
|
1815
1781
|
const { basePath, withCredentials } = this.configuration;
|
|
1816
1782
|
return this.httpClient.request("post", `${basePath}${localVarPath}`, {
|
|
1817
1783
|
context: localVarHttpContext,
|
|
@@ -1866,7 +1832,7 @@ class RepTerritoriesApiService extends BaseService {
|
|
|
1866
1832
|
responseType_ = "blob";
|
|
1867
1833
|
}
|
|
1868
1834
|
}
|
|
1869
|
-
let localVarPath = `/api/rep-territories/${this.configuration.encodeParam({ name: "repTerritoryId", value: repTerritoryId, in: "path", style: "simple", explode: false, dataType: "
|
|
1835
|
+
let localVarPath = `/api/rep-territories/${this.configuration.encodeParam({ name: "repTerritoryId", value: repTerritoryId, in: "path", style: "simple", explode: false, dataType: "object", dataFormat: "int32" })}/rep-contacts`;
|
|
1870
1836
|
const { basePath, withCredentials } = this.configuration;
|
|
1871
1837
|
return this.httpClient.request("post", `${basePath}${localVarPath}`, {
|
|
1872
1838
|
context: localVarHttpContext,
|
|
@@ -1910,7 +1876,7 @@ class RepTerritoriesApiService extends BaseService {
|
|
|
1910
1876
|
responseType_ = "blob";
|
|
1911
1877
|
}
|
|
1912
1878
|
}
|
|
1913
|
-
let localVarPath = `/api/rep-territories/${this.configuration.encodeParam({ name: "repTerritoryId", value: repTerritoryId, in: "path", style: "simple", explode: false, dataType: "
|
|
1879
|
+
let localVarPath = `/api/rep-territories/${this.configuration.encodeParam({ name: "repTerritoryId", value: repTerritoryId, in: "path", style: "simple", explode: false, dataType: "object", dataFormat: "int32" })}`;
|
|
1914
1880
|
const { basePath, withCredentials } = this.configuration;
|
|
1915
1881
|
return this.httpClient.request("get", `${basePath}${localVarPath}`, {
|
|
1916
1882
|
context: localVarHttpContext,
|
|
@@ -1948,7 +1914,7 @@ class RepTerritoriesApiService extends BaseService {
|
|
|
1948
1914
|
responseType_ = "blob";
|
|
1949
1915
|
}
|
|
1950
1916
|
}
|
|
1951
|
-
let localVarPath = `/api/rep-territories/${this.configuration.encodeParam({ name: "repTerritoryId", value: repTerritoryId, in: "path", style: "simple", explode: false, dataType: "
|
|
1917
|
+
let localVarPath = `/api/rep-territories/${this.configuration.encodeParam({ name: "repTerritoryId", value: repTerritoryId, in: "path", style: "simple", explode: false, dataType: "object", dataFormat: "int32" })}`;
|
|
1952
1918
|
const { basePath, withCredentials } = this.configuration;
|
|
1953
1919
|
return this.httpClient.request("delete", `${basePath}${localVarPath}`, {
|
|
1954
1920
|
context: localVarHttpContext,
|
|
@@ -2027,7 +1993,10 @@ class RepTerritoriesApiService extends BaseService {
|
|
|
2027
1993
|
if (repTerritoryId === null || repTerritoryId === undefined) {
|
|
2028
1994
|
throw new Error("Required parameter repTerritoryId was null or undefined when calling repTerritoriesUpdateRepTerritory.");
|
|
2029
1995
|
}
|
|
1996
|
+
const isActive = requestParameters?.isActive;
|
|
2030
1997
|
const saveRepTerritoryDto = requestParameters?.saveRepTerritoryDto;
|
|
1998
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
1999
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, isActive, "isActive");
|
|
2031
2000
|
let localVarHeaders = this.defaultHeaders;
|
|
2032
2001
|
// authentication (Bearer) required
|
|
2033
2002
|
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
@@ -2059,11 +2028,12 @@ class RepTerritoriesApiService extends BaseService {
|
|
|
2059
2028
|
responseType_ = "blob";
|
|
2060
2029
|
}
|
|
2061
2030
|
}
|
|
2062
|
-
let localVarPath = `/api/rep-territories/${this.configuration.encodeParam({ name: "repTerritoryId", value: repTerritoryId, in: "path", style: "simple", explode: false, dataType: "
|
|
2031
|
+
let localVarPath = `/api/rep-territories/${this.configuration.encodeParam({ name: "repTerritoryId", value: repTerritoryId, in: "path", style: "simple", explode: false, dataType: "object", dataFormat: "int32" })}`;
|
|
2063
2032
|
const { basePath, withCredentials } = this.configuration;
|
|
2064
2033
|
return this.httpClient.request("put", `${basePath}${localVarPath}`, {
|
|
2065
2034
|
context: localVarHttpContext,
|
|
2066
2035
|
body: saveRepTerritoryDto,
|
|
2036
|
+
params: localVarQueryParameters,
|
|
2067
2037
|
responseType: responseType_,
|
|
2068
2038
|
...(withCredentials ? { withCredentials } : {}),
|
|
2069
2039
|
headers: localVarHeaders,
|
|
@@ -2430,7 +2400,7 @@ class RsdRegionsApiService extends BaseService {
|
|
|
2430
2400
|
});
|
|
2431
2401
|
}
|
|
2432
2402
|
rsdRegionsCreateRsdRegion(requestParameters, observe = "body", reportProgress = false, options) {
|
|
2433
|
-
const
|
|
2403
|
+
const saveRsdRegionDto = requestParameters?.saveRsdRegionDto;
|
|
2434
2404
|
let localVarHeaders = this.defaultHeaders;
|
|
2435
2405
|
// authentication (Bearer) required
|
|
2436
2406
|
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
@@ -2471,7 +2441,7 @@ class RsdRegionsApiService extends BaseService {
|
|
|
2471
2441
|
const { basePath, withCredentials } = this.configuration;
|
|
2472
2442
|
return this.httpClient.request("post", `${basePath}${localVarPath}`, {
|
|
2473
2443
|
context: localVarHttpContext,
|
|
2474
|
-
body:
|
|
2444
|
+
body: saveRsdRegionDto,
|
|
2475
2445
|
responseType: responseType_,
|
|
2476
2446
|
...(withCredentials ? { withCredentials } : {}),
|
|
2477
2447
|
headers: localVarHeaders,
|
|
@@ -2574,9 +2544,9 @@ class RsdRegionsApiService extends BaseService {
|
|
|
2574
2544
|
});
|
|
2575
2545
|
}
|
|
2576
2546
|
rsdRegionsRemoveRsdRegion(requestParameters, observe = "body", reportProgress = false, options) {
|
|
2577
|
-
const
|
|
2578
|
-
if (
|
|
2579
|
-
throw new Error("Required parameter
|
|
2547
|
+
const rsdRegionId = requestParameters?.rsdRegionId;
|
|
2548
|
+
if (rsdRegionId === null || rsdRegionId === undefined) {
|
|
2549
|
+
throw new Error("Required parameter rsdRegionId was null or undefined when calling rsdRegionsRemoveRsdRegion.");
|
|
2580
2550
|
}
|
|
2581
2551
|
let localVarHeaders = this.defaultHeaders;
|
|
2582
2552
|
// authentication (Bearer) required
|
|
@@ -2599,7 +2569,7 @@ class RsdRegionsApiService extends BaseService {
|
|
|
2599
2569
|
responseType_ = "blob";
|
|
2600
2570
|
}
|
|
2601
2571
|
}
|
|
2602
|
-
let localVarPath = `/api/rsd-regions/${this.configuration.encodeParam({ name: "
|
|
2572
|
+
let localVarPath = `/api/rsd-regions/${this.configuration.encodeParam({ name: "rsdRegionId", value: rsdRegionId, in: "path", style: "simple", explode: false, dataType: "object", dataFormat: "int32" })}`;
|
|
2603
2573
|
const { basePath, withCredentials } = this.configuration;
|
|
2604
2574
|
return this.httpClient.request("delete", `${basePath}${localVarPath}`, {
|
|
2605
2575
|
context: localVarHttpContext,
|
|
@@ -2779,7 +2749,14 @@ class RsdRegionsApiService extends BaseService {
|
|
|
2779
2749
|
});
|
|
2780
2750
|
}
|
|
2781
2751
|
rsdRegionsUpdateRsdRegion(requestParameters, observe = "body", reportProgress = false, options) {
|
|
2782
|
-
const
|
|
2752
|
+
const rsdRegionId = requestParameters?.rsdRegionId;
|
|
2753
|
+
if (rsdRegionId === null || rsdRegionId === undefined) {
|
|
2754
|
+
throw new Error("Required parameter rsdRegionId was null or undefined when calling rsdRegionsUpdateRsdRegion.");
|
|
2755
|
+
}
|
|
2756
|
+
const isActive = requestParameters?.isActive;
|
|
2757
|
+
const saveRsdRegionDto = requestParameters?.saveRsdRegionDto;
|
|
2758
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
2759
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, isActive, "isActive");
|
|
2783
2760
|
let localVarHeaders = this.defaultHeaders;
|
|
2784
2761
|
// authentication (Bearer) required
|
|
2785
2762
|
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
@@ -2811,11 +2788,12 @@ class RsdRegionsApiService extends BaseService {
|
|
|
2811
2788
|
responseType_ = "blob";
|
|
2812
2789
|
}
|
|
2813
2790
|
}
|
|
2814
|
-
let localVarPath = `/api/rsd-regions`;
|
|
2791
|
+
let localVarPath = `/api/rsd-regions/${this.configuration.encodeParam({ name: "rsdRegionId", value: rsdRegionId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
|
|
2815
2792
|
const { basePath, withCredentials } = this.configuration;
|
|
2816
2793
|
return this.httpClient.request("put", `${basePath}${localVarPath}`, {
|
|
2817
2794
|
context: localVarHttpContext,
|
|
2818
|
-
body:
|
|
2795
|
+
body: saveRsdRegionDto,
|
|
2796
|
+
params: localVarQueryParameters,
|
|
2819
2797
|
responseType: responseType_,
|
|
2820
2798
|
...(withCredentials ? { withCredentials } : {}),
|
|
2821
2799
|
headers: localVarHeaders,
|
|
@@ -3993,47 +3971,39 @@ class UsersApiService extends BaseService {
|
|
|
3993
3971
|
reportProgress: reportProgress,
|
|
3994
3972
|
});
|
|
3995
3973
|
}
|
|
3996
|
-
|
|
3974
|
+
usersUpdateUserDetails(requestParameters, observe = "body", reportProgress = false, options) {
|
|
3997
3975
|
const userId = requestParameters?.userId;
|
|
3998
3976
|
if (userId === null || userId === undefined) {
|
|
3999
|
-
throw new Error("Required parameter userId was null or undefined when calling
|
|
3977
|
+
throw new Error("Required parameter userId was null or undefined when calling usersUpdateUserDetails.");
|
|
4000
3978
|
}
|
|
4001
3979
|
const contactInformationFirstName = requestParameters?.contactInformationFirstName;
|
|
4002
3980
|
if (contactInformationFirstName === null ||
|
|
4003
3981
|
contactInformationFirstName === undefined) {
|
|
4004
|
-
throw new Error("Required parameter contactInformationFirstName was null or undefined when calling
|
|
3982
|
+
throw new Error("Required parameter contactInformationFirstName was null or undefined when calling usersUpdateUserDetails.");
|
|
4005
3983
|
}
|
|
4006
3984
|
const contactInformationLastName = requestParameters?.contactInformationLastName;
|
|
4007
3985
|
if (contactInformationLastName === null ||
|
|
4008
3986
|
contactInformationLastName === undefined) {
|
|
4009
|
-
throw new Error("Required parameter contactInformationLastName was null or undefined when calling
|
|
3987
|
+
throw new Error("Required parameter contactInformationLastName was null or undefined when calling usersUpdateUserDetails.");
|
|
4010
3988
|
}
|
|
4011
3989
|
const contactInformationCompany = requestParameters?.contactInformationCompany;
|
|
4012
3990
|
if (contactInformationCompany === null ||
|
|
4013
3991
|
contactInformationCompany === undefined) {
|
|
4014
|
-
throw new Error("Required parameter contactInformationCompany was null or undefined when calling
|
|
3992
|
+
throw new Error("Required parameter contactInformationCompany was null or undefined when calling usersUpdateUserDetails.");
|
|
4015
3993
|
}
|
|
4016
3994
|
const contactInformationTitle = requestParameters?.contactInformationTitle;
|
|
4017
3995
|
if (contactInformationTitle === null ||
|
|
4018
3996
|
contactInformationTitle === undefined) {
|
|
4019
|
-
throw new Error("Required parameter contactInformationTitle was null or undefined when calling
|
|
3997
|
+
throw new Error("Required parameter contactInformationTitle was null or undefined when calling usersUpdateUserDetails.");
|
|
4020
3998
|
}
|
|
4021
3999
|
const contactInformationWorkPhoneNumber = requestParameters?.contactInformationWorkPhoneNumber;
|
|
4022
4000
|
if (contactInformationWorkPhoneNumber === null ||
|
|
4023
4001
|
contactInformationWorkPhoneNumber === undefined) {
|
|
4024
|
-
throw new Error("Required parameter contactInformationWorkPhoneNumber was null or undefined when calling
|
|
4002
|
+
throw new Error("Required parameter contactInformationWorkPhoneNumber was null or undefined when calling usersUpdateUserDetails.");
|
|
4025
4003
|
}
|
|
4026
4004
|
const addressStreet1 = requestParameters?.addressStreet1;
|
|
4027
4005
|
if (addressStreet1 === null || addressStreet1 === undefined) {
|
|
4028
|
-
throw new Error("Required parameter addressStreet1 was null or undefined when calling
|
|
4029
|
-
}
|
|
4030
|
-
const preferredLanguage = requestParameters?.preferredLanguage;
|
|
4031
|
-
if (preferredLanguage === null || preferredLanguage === undefined) {
|
|
4032
|
-
throw new Error("Required parameter preferredLanguage was null or undefined when calling usersUpdateUserProfileSettings.");
|
|
4033
|
-
}
|
|
4034
|
-
const preferredUnit = requestParameters?.preferredUnit;
|
|
4035
|
-
if (preferredUnit === null || preferredUnit === undefined) {
|
|
4036
|
-
throw new Error("Required parameter preferredUnit was null or undefined when calling usersUpdateUserProfileSettings.");
|
|
4006
|
+
throw new Error("Required parameter addressStreet1 was null or undefined when calling usersUpdateUserDetails.");
|
|
4037
4007
|
}
|
|
4038
4008
|
const contactInformationWorkPhoneNumberExt = requestParameters?.contactInformationWorkPhoneNumberExt;
|
|
4039
4009
|
const contactInformationMobilePhoneNumber = requestParameters?.contactInformationMobilePhoneNumber;
|
|
@@ -4109,9 +4079,71 @@ class UsersApiService extends BaseService {
|
|
|
4109
4079
|
localVarFormParams.append("Avatar", avatar) ||
|
|
4110
4080
|
localVarFormParams;
|
|
4111
4081
|
}
|
|
4112
|
-
|
|
4082
|
+
let responseType_ = "json";
|
|
4083
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
4084
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
4085
|
+
responseType_ = "text";
|
|
4086
|
+
}
|
|
4087
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
4088
|
+
responseType_ = "json";
|
|
4089
|
+
}
|
|
4090
|
+
else {
|
|
4091
|
+
responseType_ = "blob";
|
|
4092
|
+
}
|
|
4093
|
+
}
|
|
4094
|
+
let localVarPath = `/api/users/${this.configuration.encodeParam({ name: "userId", value: userId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}/settings/details`;
|
|
4095
|
+
const { basePath, withCredentials } = this.configuration;
|
|
4096
|
+
return this.httpClient.request("put", `${basePath}${localVarPath}`, {
|
|
4097
|
+
context: localVarHttpContext,
|
|
4098
|
+
body: localVarConvertFormParamsToString
|
|
4099
|
+
? localVarFormParams.toString()
|
|
4100
|
+
: localVarFormParams,
|
|
4101
|
+
responseType: responseType_,
|
|
4102
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
4103
|
+
headers: localVarHeaders,
|
|
4104
|
+
observe: observe,
|
|
4105
|
+
transferCache: localVarTransferCache,
|
|
4106
|
+
reportProgress: reportProgress,
|
|
4107
|
+
});
|
|
4108
|
+
}
|
|
4109
|
+
usersUpdateUserProfileSettings(requestParameters, observe = "body", reportProgress = false, options) {
|
|
4110
|
+
const userId = requestParameters?.userId;
|
|
4111
|
+
if (userId === null || userId === undefined) {
|
|
4112
|
+
throw new Error("Required parameter userId was null or undefined when calling usersUpdateUserProfileSettings.");
|
|
4113
|
+
}
|
|
4114
|
+
const preferredUnit = requestParameters?.preferredUnit;
|
|
4115
|
+
if (preferredUnit === null || preferredUnit === undefined) {
|
|
4116
|
+
throw new Error("Required parameter preferredUnit was null or undefined when calling usersUpdateUserProfileSettings.");
|
|
4117
|
+
}
|
|
4118
|
+
const companyLogo = requestParameters?.companyLogo;
|
|
4119
|
+
let localVarHeaders = this.defaultHeaders;
|
|
4120
|
+
// authentication (Bearer) required
|
|
4121
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
4122
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
4123
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
4124
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
4125
|
+
}
|
|
4126
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
4127
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
4128
|
+
// to determine the Content-Type header
|
|
4129
|
+
const consumes = ["multipart/form-data"];
|
|
4130
|
+
const canConsumeForm = this.canConsumeForm(consumes);
|
|
4131
|
+
let localVarFormParams;
|
|
4132
|
+
let localVarUseForm = false;
|
|
4133
|
+
let localVarConvertFormParamsToString = false;
|
|
4134
|
+
// use FormData to transmit files using content-type "multipart/form-data"
|
|
4135
|
+
// see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data
|
|
4136
|
+
localVarUseForm = canConsumeForm;
|
|
4137
|
+
if (localVarUseForm) {
|
|
4138
|
+
localVarFormParams = new FormData();
|
|
4139
|
+
}
|
|
4140
|
+
else {
|
|
4141
|
+
localVarFormParams = new HttpParams({ encoder: this.encoder });
|
|
4142
|
+
}
|
|
4143
|
+
if (companyLogo !== undefined) {
|
|
4113
4144
|
localVarFormParams =
|
|
4114
|
-
localVarFormParams.append("
|
|
4145
|
+
localVarFormParams.append("CompanyLogo", companyLogo) ||
|
|
4146
|
+
localVarFormParams;
|
|
4115
4147
|
}
|
|
4116
4148
|
if (preferredUnit !== undefined) {
|
|
4117
4149
|
localVarFormParams =
|
|
@@ -4318,6 +4350,18 @@ var AddressDtoCountryEnum;
|
|
|
4318
4350
|
* https://openapi-generator.tech
|
|
4319
4351
|
* Do not edit the class manually.
|
|
4320
4352
|
*/
|
|
4353
|
+
/**
|
|
4354
|
+
* AshraeVersion<br />0 = V2007<br />1 = V2010<br />2 = V2013<br />3 = V2016<br />4 = V2019<br />5 = V2022
|
|
4355
|
+
*/
|
|
4356
|
+
var AshraeVersion;
|
|
4357
|
+
(function (AshraeVersion) {
|
|
4358
|
+
AshraeVersion["V2007"] = "V2007";
|
|
4359
|
+
AshraeVersion["V2010"] = "V2010";
|
|
4360
|
+
AshraeVersion["V2013"] = "V2013";
|
|
4361
|
+
AshraeVersion["V2016"] = "V2016";
|
|
4362
|
+
AshraeVersion["V2019"] = "V2019";
|
|
4363
|
+
AshraeVersion["V2022"] = "V2022";
|
|
4364
|
+
})(AshraeVersion || (AshraeVersion = {}));
|
|
4321
4365
|
|
|
4322
4366
|
/**
|
|
4323
4367
|
* RenewAire CORES API
|
|
@@ -4348,14 +4392,6 @@ var AddressDtoCountryEnum;
|
|
|
4348
4392
|
* https://openapi-generator.tech
|
|
4349
4393
|
* Do not edit the class manually.
|
|
4350
4394
|
*/
|
|
4351
|
-
/**
|
|
4352
|
-
* CoolingDesignBasis<br />0 = Cooling<br />1 = Dehumidification
|
|
4353
|
-
*/
|
|
4354
|
-
var CoolingDesignBasis;
|
|
4355
|
-
(function (CoolingDesignBasis) {
|
|
4356
|
-
CoolingDesignBasis["Cooling"] = "Cooling";
|
|
4357
|
-
CoolingDesignBasis["Dehumidification"] = "Dehumidification";
|
|
4358
|
-
})(CoolingDesignBasis || (CoolingDesignBasis = {}));
|
|
4359
4395
|
|
|
4360
4396
|
/**
|
|
4361
4397
|
* RenewAire CORES API
|
|
@@ -4366,6 +4402,14 @@ var CoolingDesignBasis;
|
|
|
4366
4402
|
* https://openapi-generator.tech
|
|
4367
4403
|
* Do not edit the class manually.
|
|
4368
4404
|
*/
|
|
4405
|
+
/**
|
|
4406
|
+
* CoolingDesignBasis<br />0 = Cooling<br />1 = Dehumidification
|
|
4407
|
+
*/
|
|
4408
|
+
var CoolingDesignBasis;
|
|
4409
|
+
(function (CoolingDesignBasis) {
|
|
4410
|
+
CoolingDesignBasis["Cooling"] = "Cooling";
|
|
4411
|
+
CoolingDesignBasis["Dehumidification"] = "Dehumidification";
|
|
4412
|
+
})(CoolingDesignBasis || (CoolingDesignBasis = {}));
|
|
4369
4413
|
|
|
4370
4414
|
/**
|
|
4371
4415
|
* RenewAire CORES API
|
|
@@ -4770,6 +4814,16 @@ var SaveGroupDtoTypeEnum;
|
|
|
4770
4814
|
SaveGroupDtoTypeEnum["System"] = "System";
|
|
4771
4815
|
})(SaveGroupDtoTypeEnum || (SaveGroupDtoTypeEnum = {}));
|
|
4772
4816
|
|
|
4817
|
+
/**
|
|
4818
|
+
* RenewAire CORES API
|
|
4819
|
+
*
|
|
4820
|
+
* Contact: renewaire@saritasa.com
|
|
4821
|
+
*
|
|
4822
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
4823
|
+
* https://openapi-generator.tech
|
|
4824
|
+
* Do not edit the class manually.
|
|
4825
|
+
*/
|
|
4826
|
+
|
|
4773
4827
|
/**
|
|
4774
4828
|
* RenewAire CORES API
|
|
4775
4829
|
*
|
|
@@ -4926,16 +4980,6 @@ var UnitSystem;
|
|
|
4926
4980
|
UnitSystem["Metric"] = "Metric";
|
|
4927
4981
|
})(UnitSystem || (UnitSystem = {}));
|
|
4928
4982
|
|
|
4929
|
-
/**
|
|
4930
|
-
* RenewAire CORES API
|
|
4931
|
-
*
|
|
4932
|
-
* Contact: renewaire@saritasa.com
|
|
4933
|
-
*
|
|
4934
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
4935
|
-
* https://openapi-generator.tech
|
|
4936
|
-
* Do not edit the class manually.
|
|
4937
|
-
*/
|
|
4938
|
-
|
|
4939
4983
|
/**
|
|
4940
4984
|
* RenewAire CORES API
|
|
4941
4985
|
*
|
|
@@ -5105,5 +5149,5 @@ function provideApi(configOrBasePath) {
|
|
|
5105
5149
|
* Generated bundle index. Do not edit.
|
|
5106
5150
|
*/
|
|
5107
5151
|
|
|
5108
|
-
export { APIS, AddressCountry, AddressDtoCountryEnum, ApiModule, AuthApiService, BASE_PATH, COLLECTION_FORMATS, Configuration, CoolingDesignBasis, CurrentUserDtoRegistrationStatusEnum, DesignWeatherMode, FeedbackType, FeedbacksApiService, GroupCustomerType, GroupDtoCustomerTypeEnum, GroupDtoTypeEnum, GroupType, GroupsApiService, KnownContactsApiService, Language, Permission, PermissionBundlesApiService, PermissionsApiService, RegionDtoLevelEnum, RegionLevel, RegionsApiService, RegistrationStatus, RepContactsApiService, RepTerritoriesApiService, RepTerritoryLocationsApiService, RsdRegionsApiService, SaveGroupDtoTypeEnum, SaveUserDesignConditionsDtoCoolingDesignBasisEnum, SearchRegionDtoLevelEnum, SetPreferredLanguageCommandPreferredLanguageEnum, UnitSystem, UserDesignConditionsApiService, UserDesignConditionsDtoCoolingDesignBasisEnum, UserDesignWeatherConditionDtoDesignWeatherModeEnum, UserPermissionDtoPermissionEnum, UserPreferencesDtoPreferredLanguageEnum, UserPreferencesDtoPreferredUnitEnum, UserProfileSettingsDtoRegistrationStatusEnum, UserStatus, UserTablesApiService, UsersApiService, provideApi };
|
|
5152
|
+
export { APIS, AddressCountry, AddressDtoCountryEnum, ApiModule, AshraeVersion, AuthApiService, BASE_PATH, COLLECTION_FORMATS, Configuration, CoolingDesignBasis, CurrentUserDtoRegistrationStatusEnum, DesignWeatherMode, FeedbackType, FeedbacksApiService, GroupCustomerType, GroupDtoCustomerTypeEnum, GroupDtoTypeEnum, GroupType, GroupsApiService, KnownContactsApiService, Language, Permission, PermissionBundlesApiService, PermissionsApiService, RegionDtoLevelEnum, RegionLevel, RegionsApiService, RegistrationStatus, RepContactsApiService, RepTerritoriesApiService, RepTerritoryLocationsApiService, RsdRegionsApiService, SaveGroupDtoTypeEnum, SaveUserDesignConditionsDtoCoolingDesignBasisEnum, SearchRegionDtoLevelEnum, SetPreferredLanguageCommandPreferredLanguageEnum, UnitSystem, UserDesignConditionsApiService, UserDesignConditionsDtoCoolingDesignBasisEnum, UserDesignWeatherConditionDtoDesignWeatherModeEnum, UserPermissionDtoPermissionEnum, UserPreferencesDtoPreferredLanguageEnum, UserPreferencesDtoPreferredUnitEnum, UserProfileSettingsDtoRegistrationStatusEnum, UserStatus, UserTablesApiService, UsersApiService, provideApi };
|
|
5109
5153
|
//# sourceMappingURL=saritasa-renewaire-frontend-sdk.mjs.map
|