@saritasa/renewaire-frontend-sdk 0.20.1 → 0.21.1

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.20.1
1
+ # @@saritasa/renewaire-frontend-sdk@0.21.1
2
2
 
3
3
  ```bash
4
- npm install @saritasa/renewaire-frontend-sdk@0.20.1 --save
4
+ npm install @saritasa/renewaire-frontend-sdk@0.21.1 --save
5
5
  ```
@@ -1,7 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { InjectionToken, Optional, Inject, Injectable, SkipSelf, NgModule, makeEnvironmentProviders } from '@angular/core';
3
3
  import * as i1 from '@angular/common/http';
4
- import { HttpHeaders, HttpContext, HttpParams } from '@angular/common/http';
4
+ import { HttpHeaders, HttpParams, HttpContext } from '@angular/common/http';
5
5
 
6
6
  const BASE_PATH = new InjectionToken("basePath");
7
7
  const COLLECTION_FORMATS = {
@@ -248,6 +248,96 @@ class BaseService {
248
248
  }
249
249
  }
250
250
 
251
+ /**
252
+ * RenewAire CORES API
253
+ *
254
+ * Contact: renewaire@saritasa.com
255
+ *
256
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
257
+ * https://openapi-generator.tech
258
+ * Do not edit the class manually.
259
+ */
260
+ /* tslint:disable:no-unused-variable member-ordering */
261
+ class AuditLogsApiService extends BaseService {
262
+ httpClient;
263
+ constructor(httpClient, basePath, configuration) {
264
+ super(basePath, configuration);
265
+ this.httpClient = httpClient;
266
+ }
267
+ auditLogsSearchAuditLogs(requestParameters, observe = "body", reportProgress = false, options) {
268
+ const auditEntity = requestParameters?.auditEntity;
269
+ if (auditEntity === null || auditEntity === undefined) {
270
+ throw new Error("Required parameter auditEntity was null or undefined when calling auditLogsSearchAuditLogs.");
271
+ }
272
+ const entityId = requestParameters?.entityId;
273
+ if (entityId === null || entityId === undefined) {
274
+ throw new Error("Required parameter entityId was null or undefined when calling auditLogsSearchAuditLogs.");
275
+ }
276
+ const page = requestParameters?.page;
277
+ const pageSize = requestParameters?.pageSize;
278
+ const orderBy = requestParameters?.orderBy;
279
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
280
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, auditEntity, "AuditEntity");
281
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, entityId, "EntityId");
282
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, page, "Page");
283
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, pageSize, "PageSize");
284
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, orderBy, "OrderBy");
285
+ let localVarHeaders = this.defaultHeaders;
286
+ // authentication (Bearer) required
287
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
288
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
289
+ this.configuration.selectHeaderAccept([
290
+ "text/plain",
291
+ "application/json",
292
+ "text/json",
293
+ ]);
294
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
295
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
296
+ }
297
+ const localVarHttpContext = options?.context ?? new HttpContext();
298
+ const localVarTransferCache = options?.transferCache ?? true;
299
+ let responseType_ = "json";
300
+ if (localVarHttpHeaderAcceptSelected) {
301
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
302
+ responseType_ = "text";
303
+ }
304
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
305
+ responseType_ = "json";
306
+ }
307
+ else {
308
+ responseType_ = "blob";
309
+ }
310
+ }
311
+ let localVarPath = `/api/audit-logs`;
312
+ const { basePath, withCredentials } = this.configuration;
313
+ return this.httpClient.request("get", `${basePath}${localVarPath}`, {
314
+ context: localVarHttpContext,
315
+ params: localVarQueryParameters,
316
+ responseType: responseType_,
317
+ ...(withCredentials ? { withCredentials } : {}),
318
+ headers: localVarHeaders,
319
+ observe: observe,
320
+ transferCache: localVarTransferCache,
321
+ reportProgress: reportProgress,
322
+ });
323
+ }
324
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: AuditLogsApiService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
325
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: AuditLogsApiService, providedIn: "root" });
326
+ }
327
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: AuditLogsApiService, decorators: [{
328
+ type: Injectable,
329
+ args: [{
330
+ providedIn: "root",
331
+ }]
332
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
333
+ type: Optional
334
+ }, {
335
+ type: Inject,
336
+ args: [BASE_PATH]
337
+ }] }, { type: Configuration, decorators: [{
338
+ type: Optional
339
+ }] }] });
340
+
251
341
  /**
252
342
  * RenewAire CORES API
253
343
  *
@@ -630,9 +720,9 @@ class GroupsApiService extends BaseService {
630
720
  });
631
721
  }
632
722
  groupsGetGroup(requestParameters, observe = "body", reportProgress = false, options) {
633
- const id = requestParameters?.id;
634
- if (id === null || id === undefined) {
635
- throw new Error("Required parameter id was null or undefined when calling groupsGetGroup.");
723
+ const groupId = requestParameters?.groupId;
724
+ if (groupId === null || groupId === undefined) {
725
+ throw new Error("Required parameter groupId was null or undefined when calling groupsGetGroup.");
636
726
  }
637
727
  let localVarHeaders = this.defaultHeaders;
638
728
  // authentication (Bearer) required
@@ -660,7 +750,7 @@ class GroupsApiService extends BaseService {
660
750
  responseType_ = "blob";
661
751
  }
662
752
  }
663
- let localVarPath = `/api/groups/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
753
+ let localVarPath = `/api/groups/${this.configuration.encodeParam({ name: "groupId", value: groupId, in: "path", style: "simple", explode: false, dataType: "object", dataFormat: "int32" })}`;
664
754
  const { basePath, withCredentials } = this.configuration;
665
755
  return this.httpClient.request("get", `${basePath}${localVarPath}`, {
666
756
  context: localVarHttpContext,
@@ -673,9 +763,9 @@ class GroupsApiService extends BaseService {
673
763
  });
674
764
  }
675
765
  groupsRemoveGroup(requestParameters, observe = "body", reportProgress = false, options) {
676
- const id = requestParameters?.id;
677
- if (id === null || id === undefined) {
678
- throw new Error("Required parameter id was null or undefined when calling groupsRemoveGroup.");
766
+ const groupId = requestParameters?.groupId;
767
+ if (groupId === null || groupId === undefined) {
768
+ throw new Error("Required parameter groupId was null or undefined when calling groupsRemoveGroup.");
679
769
  }
680
770
  let localVarHeaders = this.defaultHeaders;
681
771
  // authentication (Bearer) required
@@ -698,7 +788,7 @@ class GroupsApiService extends BaseService {
698
788
  responseType_ = "blob";
699
789
  }
700
790
  }
701
- let localVarPath = `/api/groups/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
791
+ let localVarPath = `/api/groups/${this.configuration.encodeParam({ name: "groupId", value: groupId, in: "path", style: "simple", explode: false, dataType: "object", dataFormat: "int32" })}`;
702
792
  const { basePath, withCredentials } = this.configuration;
703
793
  return this.httpClient.request("delete", `${basePath}${localVarPath}`, {
704
794
  context: localVarHttpContext,
@@ -777,11 +867,14 @@ class GroupsApiService extends BaseService {
777
867
  });
778
868
  }
779
869
  groupsUpdateGroup(requestParameters, observe = "body", reportProgress = false, options) {
780
- const id = requestParameters?.id;
781
- if (id === null || id === undefined) {
782
- throw new Error("Required parameter id was null or undefined when calling groupsUpdateGroup.");
870
+ const groupId = requestParameters?.groupId;
871
+ if (groupId === null || groupId === undefined) {
872
+ throw new Error("Required parameter groupId was null or undefined when calling groupsUpdateGroup.");
783
873
  }
874
+ const isActive = requestParameters?.isActive;
784
875
  const saveGroupDto = requestParameters?.saveGroupDto;
876
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
877
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, isActive, "isActive");
785
878
  let localVarHeaders = this.defaultHeaders;
786
879
  // authentication (Bearer) required
787
880
  localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
@@ -813,11 +906,12 @@ class GroupsApiService extends BaseService {
813
906
  responseType_ = "blob";
814
907
  }
815
908
  }
816
- let localVarPath = `/api/groups/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
909
+ let localVarPath = `/api/groups/${this.configuration.encodeParam({ name: "groupId", value: groupId, in: "path", style: "simple", explode: false, dataType: "object", dataFormat: "int32" })}`;
817
910
  const { basePath, withCredentials } = this.configuration;
818
911
  return this.httpClient.request("put", `${basePath}${localVarPath}`, {
819
912
  context: localVarHttpContext,
820
913
  body: saveGroupDto,
914
+ params: localVarQueryParameters,
821
915
  responseType: responseType_,
822
916
  ...(withCredentials ? { withCredentials } : {}),
823
917
  headers: localVarHeaders,
@@ -1173,7 +1267,7 @@ class PermissionBundlesApiService extends BaseService {
1173
1267
  responseType_ = "blob";
1174
1268
  }
1175
1269
  }
1176
- let localVarPath = `/api/permission-bundles/${this.configuration.encodeParam({ name: "permissionBundleId", value: permissionBundleId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
1270
+ let localVarPath = `/api/permission-bundles/${this.configuration.encodeParam({ name: "permissionBundleId", value: permissionBundleId, in: "path", style: "simple", explode: false, dataType: "object", dataFormat: "int32" })}`;
1177
1271
  const { basePath, withCredentials } = this.configuration;
1178
1272
  return this.httpClient.request("get", `${basePath}${localVarPath}`, {
1179
1273
  context: localVarHttpContext,
@@ -1211,7 +1305,7 @@ class PermissionBundlesApiService extends BaseService {
1211
1305
  responseType_ = "blob";
1212
1306
  }
1213
1307
  }
1214
- let localVarPath = `/api/permission-bundles/${this.configuration.encodeParam({ name: "permissionBundleId", value: permissionBundleId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
1308
+ let localVarPath = `/api/permission-bundles/${this.configuration.encodeParam({ name: "permissionBundleId", value: permissionBundleId, in: "path", style: "simple", explode: false, dataType: "object", dataFormat: "int32" })}`;
1215
1309
  const { basePath, withCredentials } = this.configuration;
1216
1310
  return this.httpClient.request("delete", `${basePath}${localVarPath}`, {
1217
1311
  context: localVarHttpContext,
@@ -1223,44 +1317,6 @@ class PermissionBundlesApiService extends BaseService {
1223
1317
  reportProgress: reportProgress,
1224
1318
  });
1225
1319
  }
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
1320
  permissionBundlesSearchPermissionBundles(requestParameters, observe = "body", reportProgress = false, options) {
1265
1321
  const name = requestParameters?.name;
1266
1322
  const orderBy = requestParameters?.orderBy;
@@ -1347,7 +1403,7 @@ class PermissionBundlesApiService extends BaseService {
1347
1403
  responseType_ = "blob";
1348
1404
  }
1349
1405
  }
1350
- let localVarPath = `/api/permission-bundles/${this.configuration.encodeParam({ name: "permissionBundleId", value: permissionBundleId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
1406
+ let localVarPath = `/api/permission-bundles/${this.configuration.encodeParam({ name: "permissionBundleId", value: permissionBundleId, in: "path", style: "simple", explode: false, dataType: "object", dataFormat: "int32" })}`;
1351
1407
  const { basePath, withCredentials } = this.configuration;
1352
1408
  return this.httpClient.request("put", `${basePath}${localVarPath}`, {
1353
1409
  context: localVarHttpContext,
@@ -1811,7 +1867,7 @@ class RepTerritoriesApiService extends BaseService {
1811
1867
  responseType_ = "blob";
1812
1868
  }
1813
1869
  }
1814
- let localVarPath = `/api/rep-territories/${this.configuration.encodeParam({ name: "repTerritoryId", value: repTerritoryId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}/locations`;
1870
+ let localVarPath = `/api/rep-territories/${this.configuration.encodeParam({ name: "repTerritoryId", value: repTerritoryId, in: "path", style: "simple", explode: false, dataType: "object", dataFormat: "int32" })}/locations`;
1815
1871
  const { basePath, withCredentials } = this.configuration;
1816
1872
  return this.httpClient.request("post", `${basePath}${localVarPath}`, {
1817
1873
  context: localVarHttpContext,
@@ -1866,7 +1922,7 @@ class RepTerritoriesApiService extends BaseService {
1866
1922
  responseType_ = "blob";
1867
1923
  }
1868
1924
  }
1869
- let localVarPath = `/api/rep-territories/${this.configuration.encodeParam({ name: "repTerritoryId", value: repTerritoryId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}/rep-contacts`;
1925
+ 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
1926
  const { basePath, withCredentials } = this.configuration;
1871
1927
  return this.httpClient.request("post", `${basePath}${localVarPath}`, {
1872
1928
  context: localVarHttpContext,
@@ -1910,7 +1966,7 @@ class RepTerritoriesApiService extends BaseService {
1910
1966
  responseType_ = "blob";
1911
1967
  }
1912
1968
  }
1913
- let localVarPath = `/api/rep-territories/${this.configuration.encodeParam({ name: "repTerritoryId", value: repTerritoryId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
1969
+ let localVarPath = `/api/rep-territories/${this.configuration.encodeParam({ name: "repTerritoryId", value: repTerritoryId, in: "path", style: "simple", explode: false, dataType: "object", dataFormat: "int32" })}`;
1914
1970
  const { basePath, withCredentials } = this.configuration;
1915
1971
  return this.httpClient.request("get", `${basePath}${localVarPath}`, {
1916
1972
  context: localVarHttpContext,
@@ -1948,7 +2004,7 @@ class RepTerritoriesApiService extends BaseService {
1948
2004
  responseType_ = "blob";
1949
2005
  }
1950
2006
  }
1951
- let localVarPath = `/api/rep-territories/${this.configuration.encodeParam({ name: "repTerritoryId", value: repTerritoryId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
2007
+ let localVarPath = `/api/rep-territories/${this.configuration.encodeParam({ name: "repTerritoryId", value: repTerritoryId, in: "path", style: "simple", explode: false, dataType: "object", dataFormat: "int32" })}`;
1952
2008
  const { basePath, withCredentials } = this.configuration;
1953
2009
  return this.httpClient.request("delete", `${basePath}${localVarPath}`, {
1954
2010
  context: localVarHttpContext,
@@ -2027,7 +2083,10 @@ class RepTerritoriesApiService extends BaseService {
2027
2083
  if (repTerritoryId === null || repTerritoryId === undefined) {
2028
2084
  throw new Error("Required parameter repTerritoryId was null or undefined when calling repTerritoriesUpdateRepTerritory.");
2029
2085
  }
2086
+ const isActive = requestParameters?.isActive;
2030
2087
  const saveRepTerritoryDto = requestParameters?.saveRepTerritoryDto;
2088
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
2089
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, isActive, "isActive");
2031
2090
  let localVarHeaders = this.defaultHeaders;
2032
2091
  // authentication (Bearer) required
2033
2092
  localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
@@ -2059,11 +2118,12 @@ class RepTerritoriesApiService extends BaseService {
2059
2118
  responseType_ = "blob";
2060
2119
  }
2061
2120
  }
2062
- let localVarPath = `/api/rep-territories/${this.configuration.encodeParam({ name: "repTerritoryId", value: repTerritoryId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
2121
+ let localVarPath = `/api/rep-territories/${this.configuration.encodeParam({ name: "repTerritoryId", value: repTerritoryId, in: "path", style: "simple", explode: false, dataType: "object", dataFormat: "int32" })}`;
2063
2122
  const { basePath, withCredentials } = this.configuration;
2064
2123
  return this.httpClient.request("put", `${basePath}${localVarPath}`, {
2065
2124
  context: localVarHttpContext,
2066
2125
  body: saveRepTerritoryDto,
2126
+ params: localVarQueryParameters,
2067
2127
  responseType: responseType_,
2068
2128
  ...(withCredentials ? { withCredentials } : {}),
2069
2129
  headers: localVarHeaders,
@@ -2430,7 +2490,7 @@ class RsdRegionsApiService extends BaseService {
2430
2490
  });
2431
2491
  }
2432
2492
  rsdRegionsCreateRsdRegion(requestParameters, observe = "body", reportProgress = false, options) {
2433
- const createRsdRegionDto = requestParameters?.createRsdRegionDto;
2493
+ const saveRsdRegionDto = requestParameters?.saveRsdRegionDto;
2434
2494
  let localVarHeaders = this.defaultHeaders;
2435
2495
  // authentication (Bearer) required
2436
2496
  localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
@@ -2471,7 +2531,7 @@ class RsdRegionsApiService extends BaseService {
2471
2531
  const { basePath, withCredentials } = this.configuration;
2472
2532
  return this.httpClient.request("post", `${basePath}${localVarPath}`, {
2473
2533
  context: localVarHttpContext,
2474
- body: createRsdRegionDto,
2534
+ body: saveRsdRegionDto,
2475
2535
  responseType: responseType_,
2476
2536
  ...(withCredentials ? { withCredentials } : {}),
2477
2537
  headers: localVarHeaders,
@@ -2574,9 +2634,9 @@ class RsdRegionsApiService extends BaseService {
2574
2634
  });
2575
2635
  }
2576
2636
  rsdRegionsRemoveRsdRegion(requestParameters, observe = "body", reportProgress = false, options) {
2577
- const id = requestParameters?.id;
2578
- if (id === null || id === undefined) {
2579
- throw new Error("Required parameter id was null or undefined when calling rsdRegionsRemoveRsdRegion.");
2637
+ const rsdRegionId = requestParameters?.rsdRegionId;
2638
+ if (rsdRegionId === null || rsdRegionId === undefined) {
2639
+ throw new Error("Required parameter rsdRegionId was null or undefined when calling rsdRegionsRemoveRsdRegion.");
2580
2640
  }
2581
2641
  let localVarHeaders = this.defaultHeaders;
2582
2642
  // authentication (Bearer) required
@@ -2599,7 +2659,7 @@ class RsdRegionsApiService extends BaseService {
2599
2659
  responseType_ = "blob";
2600
2660
  }
2601
2661
  }
2602
- let localVarPath = `/api/rsd-regions/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
2662
+ let localVarPath = `/api/rsd-regions/${this.configuration.encodeParam({ name: "rsdRegionId", value: rsdRegionId, in: "path", style: "simple", explode: false, dataType: "object", dataFormat: "int32" })}`;
2603
2663
  const { basePath, withCredentials } = this.configuration;
2604
2664
  return this.httpClient.request("delete", `${basePath}${localVarPath}`, {
2605
2665
  context: localVarHttpContext,
@@ -2779,7 +2839,14 @@ class RsdRegionsApiService extends BaseService {
2779
2839
  });
2780
2840
  }
2781
2841
  rsdRegionsUpdateRsdRegion(requestParameters, observe = "body", reportProgress = false, options) {
2782
- const updateRsdRegionDto = requestParameters?.updateRsdRegionDto;
2842
+ const rsdRegionId = requestParameters?.rsdRegionId;
2843
+ if (rsdRegionId === null || rsdRegionId === undefined) {
2844
+ throw new Error("Required parameter rsdRegionId was null or undefined when calling rsdRegionsUpdateRsdRegion.");
2845
+ }
2846
+ const isActive = requestParameters?.isActive;
2847
+ const saveRsdRegionDto = requestParameters?.saveRsdRegionDto;
2848
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
2849
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, isActive, "isActive");
2783
2850
  let localVarHeaders = this.defaultHeaders;
2784
2851
  // authentication (Bearer) required
2785
2852
  localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
@@ -2811,11 +2878,12 @@ class RsdRegionsApiService extends BaseService {
2811
2878
  responseType_ = "blob";
2812
2879
  }
2813
2880
  }
2814
- let localVarPath = `/api/rsd-regions`;
2881
+ let localVarPath = `/api/rsd-regions/${this.configuration.encodeParam({ name: "rsdRegionId", value: rsdRegionId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
2815
2882
  const { basePath, withCredentials } = this.configuration;
2816
2883
  return this.httpClient.request("put", `${basePath}${localVarPath}`, {
2817
2884
  context: localVarHttpContext,
2818
- body: updateRsdRegionDto,
2885
+ body: saveRsdRegionDto,
2886
+ params: localVarQueryParameters,
2819
2887
  responseType: responseType_,
2820
2888
  ...(withCredentials ? { withCredentials } : {}),
2821
2889
  headers: localVarHeaders,
@@ -3993,47 +4061,39 @@ class UsersApiService extends BaseService {
3993
4061
  reportProgress: reportProgress,
3994
4062
  });
3995
4063
  }
3996
- usersUpdateUserProfileSettings(requestParameters, observe = "body", reportProgress = false, options) {
4064
+ usersUpdateUserDetails(requestParameters, observe = "body", reportProgress = false, options) {
3997
4065
  const userId = requestParameters?.userId;
3998
4066
  if (userId === null || userId === undefined) {
3999
- throw new Error("Required parameter userId was null or undefined when calling usersUpdateUserProfileSettings.");
4067
+ throw new Error("Required parameter userId was null or undefined when calling usersUpdateUserDetails.");
4000
4068
  }
4001
4069
  const contactInformationFirstName = requestParameters?.contactInformationFirstName;
4002
4070
  if (contactInformationFirstName === null ||
4003
4071
  contactInformationFirstName === undefined) {
4004
- throw new Error("Required parameter contactInformationFirstName was null or undefined when calling usersUpdateUserProfileSettings.");
4072
+ throw new Error("Required parameter contactInformationFirstName was null or undefined when calling usersUpdateUserDetails.");
4005
4073
  }
4006
4074
  const contactInformationLastName = requestParameters?.contactInformationLastName;
4007
4075
  if (contactInformationLastName === null ||
4008
4076
  contactInformationLastName === undefined) {
4009
- throw new Error("Required parameter contactInformationLastName was null or undefined when calling usersUpdateUserProfileSettings.");
4077
+ throw new Error("Required parameter contactInformationLastName was null or undefined when calling usersUpdateUserDetails.");
4010
4078
  }
4011
4079
  const contactInformationCompany = requestParameters?.contactInformationCompany;
4012
4080
  if (contactInformationCompany === null ||
4013
4081
  contactInformationCompany === undefined) {
4014
- throw new Error("Required parameter contactInformationCompany was null or undefined when calling usersUpdateUserProfileSettings.");
4082
+ throw new Error("Required parameter contactInformationCompany was null or undefined when calling usersUpdateUserDetails.");
4015
4083
  }
4016
4084
  const contactInformationTitle = requestParameters?.contactInformationTitle;
4017
4085
  if (contactInformationTitle === null ||
4018
4086
  contactInformationTitle === undefined) {
4019
- throw new Error("Required parameter contactInformationTitle was null or undefined when calling usersUpdateUserProfileSettings.");
4087
+ throw new Error("Required parameter contactInformationTitle was null or undefined when calling usersUpdateUserDetails.");
4020
4088
  }
4021
4089
  const contactInformationWorkPhoneNumber = requestParameters?.contactInformationWorkPhoneNumber;
4022
4090
  if (contactInformationWorkPhoneNumber === null ||
4023
4091
  contactInformationWorkPhoneNumber === undefined) {
4024
- throw new Error("Required parameter contactInformationWorkPhoneNumber was null or undefined when calling usersUpdateUserProfileSettings.");
4092
+ throw new Error("Required parameter contactInformationWorkPhoneNumber was null or undefined when calling usersUpdateUserDetails.");
4025
4093
  }
4026
4094
  const addressStreet1 = requestParameters?.addressStreet1;
4027
4095
  if (addressStreet1 === null || addressStreet1 === undefined) {
4028
- throw new Error("Required parameter addressStreet1 was null or undefined when calling usersUpdateUserProfileSettings.");
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.");
4096
+ throw new Error("Required parameter addressStreet1 was null or undefined when calling usersUpdateUserDetails.");
4037
4097
  }
4038
4098
  const contactInformationWorkPhoneNumberExt = requestParameters?.contactInformationWorkPhoneNumberExt;
4039
4099
  const contactInformationMobilePhoneNumber = requestParameters?.contactInformationMobilePhoneNumber;
@@ -4109,9 +4169,71 @@ class UsersApiService extends BaseService {
4109
4169
  localVarFormParams.append("Avatar", avatar) ||
4110
4170
  localVarFormParams;
4111
4171
  }
4112
- if (preferredLanguage !== undefined) {
4172
+ let responseType_ = "json";
4173
+ if (localVarHttpHeaderAcceptSelected) {
4174
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
4175
+ responseType_ = "text";
4176
+ }
4177
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
4178
+ responseType_ = "json";
4179
+ }
4180
+ else {
4181
+ responseType_ = "blob";
4182
+ }
4183
+ }
4184
+ let localVarPath = `/api/users/${this.configuration.encodeParam({ name: "userId", value: userId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}/settings/details`;
4185
+ const { basePath, withCredentials } = this.configuration;
4186
+ return this.httpClient.request("put", `${basePath}${localVarPath}`, {
4187
+ context: localVarHttpContext,
4188
+ body: localVarConvertFormParamsToString
4189
+ ? localVarFormParams.toString()
4190
+ : localVarFormParams,
4191
+ responseType: responseType_,
4192
+ ...(withCredentials ? { withCredentials } : {}),
4193
+ headers: localVarHeaders,
4194
+ observe: observe,
4195
+ transferCache: localVarTransferCache,
4196
+ reportProgress: reportProgress,
4197
+ });
4198
+ }
4199
+ usersUpdateUserProfileSettings(requestParameters, observe = "body", reportProgress = false, options) {
4200
+ const userId = requestParameters?.userId;
4201
+ if (userId === null || userId === undefined) {
4202
+ throw new Error("Required parameter userId was null or undefined when calling usersUpdateUserProfileSettings.");
4203
+ }
4204
+ const preferredUnit = requestParameters?.preferredUnit;
4205
+ if (preferredUnit === null || preferredUnit === undefined) {
4206
+ throw new Error("Required parameter preferredUnit was null or undefined when calling usersUpdateUserProfileSettings.");
4207
+ }
4208
+ const companyLogo = requestParameters?.companyLogo;
4209
+ let localVarHeaders = this.defaultHeaders;
4210
+ // authentication (Bearer) required
4211
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
4212
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
4213
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
4214
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
4215
+ }
4216
+ const localVarHttpContext = options?.context ?? new HttpContext();
4217
+ const localVarTransferCache = options?.transferCache ?? true;
4218
+ // to determine the Content-Type header
4219
+ const consumes = ["multipart/form-data"];
4220
+ const canConsumeForm = this.canConsumeForm(consumes);
4221
+ let localVarFormParams;
4222
+ let localVarUseForm = false;
4223
+ let localVarConvertFormParamsToString = false;
4224
+ // use FormData to transmit files using content-type "multipart/form-data"
4225
+ // see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data
4226
+ localVarUseForm = canConsumeForm;
4227
+ if (localVarUseForm) {
4228
+ localVarFormParams = new FormData();
4229
+ }
4230
+ else {
4231
+ localVarFormParams = new HttpParams({ encoder: this.encoder });
4232
+ }
4233
+ if (companyLogo !== undefined) {
4113
4234
  localVarFormParams =
4114
- localVarFormParams.append("PreferredLanguage", preferredLanguage) || localVarFormParams;
4235
+ localVarFormParams.append("CompanyLogo", companyLogo) ||
4236
+ localVarFormParams;
4115
4237
  }
4116
4238
  if (preferredUnit !== undefined) {
4117
4239
  localVarFormParams =
@@ -4256,6 +4378,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImpor
4256
4378
  }] }] });
4257
4379
 
4258
4380
  const APIS = [
4381
+ AuditLogsApiService,
4259
4382
  AuthApiService,
4260
4383
  FeedbacksApiService,
4261
4384
  GroupsApiService,
@@ -4318,6 +4441,18 @@ var AddressDtoCountryEnum;
4318
4441
  * https://openapi-generator.tech
4319
4442
  * Do not edit the class manually.
4320
4443
  */
4444
+ /**
4445
+ * AshraeVersion<br />0 = V2007<br />1 = V2010<br />2 = V2013<br />3 = V2016<br />4 = V2019<br />5 = V2022
4446
+ */
4447
+ var AshraeVersion;
4448
+ (function (AshraeVersion) {
4449
+ AshraeVersion["V2007"] = "V2007";
4450
+ AshraeVersion["V2010"] = "V2010";
4451
+ AshraeVersion["V2013"] = "V2013";
4452
+ AshraeVersion["V2016"] = "V2016";
4453
+ AshraeVersion["V2019"] = "V2019";
4454
+ AshraeVersion["V2022"] = "V2022";
4455
+ })(AshraeVersion || (AshraeVersion = {}));
4321
4456
 
4322
4457
  /**
4323
4458
  * RenewAire CORES API
@@ -4328,6 +4463,18 @@ var AddressDtoCountryEnum;
4328
4463
  * https://openapi-generator.tech
4329
4464
  * Do not edit the class manually.
4330
4465
  */
4466
+ /**
4467
+ * AuditEntity<br />0 = User<br />1 = PermissionBundle<br />2 = RsdRegion<br />3 = RepTerritory<br />4 = UserGroup<br />5 = KnownContact
4468
+ */
4469
+ var AuditEntity;
4470
+ (function (AuditEntity) {
4471
+ AuditEntity["User"] = "User";
4472
+ AuditEntity["PermissionBundle"] = "PermissionBundle";
4473
+ AuditEntity["RsdRegion"] = "RsdRegion";
4474
+ AuditEntity["RepTerritory"] = "RepTerritory";
4475
+ AuditEntity["UserGroup"] = "UserGroup";
4476
+ AuditEntity["KnownContact"] = "KnownContact";
4477
+ })(AuditEntity || (AuditEntity = {}));
4331
4478
 
4332
4479
  /**
4333
4480
  * RenewAire CORES API
@@ -4348,14 +4495,26 @@ var AddressDtoCountryEnum;
4348
4495
  * https://openapi-generator.tech
4349
4496
  * Do not edit the class manually.
4350
4497
  */
4498
+
4351
4499
  /**
4352
- * CoolingDesignBasis<br />0 = Cooling<br />1 = Dehumidification
4500
+ * RenewAire CORES API
4501
+ *
4502
+ * Contact: renewaire@saritasa.com
4503
+ *
4504
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4505
+ * https://openapi-generator.tech
4506
+ * Do not edit the class manually.
4507
+ */
4508
+
4509
+ /**
4510
+ * RenewAire CORES API
4511
+ *
4512
+ * Contact: renewaire@saritasa.com
4513
+ *
4514
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4515
+ * https://openapi-generator.tech
4516
+ * Do not edit the class manually.
4353
4517
  */
4354
- var CoolingDesignBasis;
4355
- (function (CoolingDesignBasis) {
4356
- CoolingDesignBasis["Cooling"] = "Cooling";
4357
- CoolingDesignBasis["Dehumidification"] = "Dehumidification";
4358
- })(CoolingDesignBasis || (CoolingDesignBasis = {}));
4359
4518
 
4360
4519
  /**
4361
4520
  * RenewAire CORES API
@@ -4366,6 +4525,14 @@ var CoolingDesignBasis;
4366
4525
  * https://openapi-generator.tech
4367
4526
  * Do not edit the class manually.
4368
4527
  */
4528
+ /**
4529
+ * CoolingDesignBasis<br />0 = Cooling<br />1 = Dehumidification
4530
+ */
4531
+ var CoolingDesignBasis;
4532
+ (function (CoolingDesignBasis) {
4533
+ CoolingDesignBasis["Cooling"] = "Cooling";
4534
+ CoolingDesignBasis["Dehumidification"] = "Dehumidification";
4535
+ })(CoolingDesignBasis || (CoolingDesignBasis = {}));
4369
4536
 
4370
4537
  /**
4371
4538
  * RenewAire CORES API
@@ -4770,6 +4937,16 @@ var SaveGroupDtoTypeEnum;
4770
4937
  SaveGroupDtoTypeEnum["System"] = "System";
4771
4938
  })(SaveGroupDtoTypeEnum || (SaveGroupDtoTypeEnum = {}));
4772
4939
 
4940
+ /**
4941
+ * RenewAire CORES API
4942
+ *
4943
+ * Contact: renewaire@saritasa.com
4944
+ *
4945
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4946
+ * https://openapi-generator.tech
4947
+ * Do not edit the class manually.
4948
+ */
4949
+
4773
4950
  /**
4774
4951
  * RenewAire CORES API
4775
4952
  *
@@ -4926,16 +5103,6 @@ var UnitSystem;
4926
5103
  UnitSystem["Metric"] = "Metric";
4927
5104
  })(UnitSystem || (UnitSystem = {}));
4928
5105
 
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
5106
  /**
4940
5107
  * RenewAire CORES API
4941
5108
  *
@@ -5105,5 +5272,5 @@ function provideApi(configOrBasePath) {
5105
5272
  * Generated bundle index. Do not edit.
5106
5273
  */
5107
5274
 
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 };
5275
+ export { APIS, AddressCountry, AddressDtoCountryEnum, ApiModule, AshraeVersion, AuditEntity, AuditLogsApiService, 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
5276
  //# sourceMappingURL=saritasa-renewaire-frontend-sdk.mjs.map