@saritasa/renewaire-frontend-sdk 0.15.0 → 0.16.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.15.0
1
+ # @@saritasa/renewaire-frontend-sdk@0.16.0
2
2
 
3
3
  ```bash
4
- npm install @saritasa/renewaire-frontend-sdk@0.15.0 --save
4
+ npm install @saritasa/renewaire-frontend-sdk@0.16.0 --save
5
5
  ```
@@ -4244,6 +4244,290 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImpor
4244
4244
  type: Optional
4245
4245
  }] }] });
4246
4246
 
4247
+ /**
4248
+ * RenewAire CORES API
4249
+ *
4250
+ * Contact: renewaire@saritasa.com
4251
+ *
4252
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4253
+ * https://openapi-generator.tech
4254
+ * Do not edit the class manually.
4255
+ */
4256
+ /* tslint:disable:no-unused-variable member-ordering */
4257
+ class UsersManagementApiService extends BaseService {
4258
+ httpClient;
4259
+ constructor(httpClient, basePath, configuration) {
4260
+ super(basePath, configuration);
4261
+ this.httpClient = httpClient;
4262
+ }
4263
+ usersManagementCreateUser(requestParameters, observe = "body", reportProgress = false, options) {
4264
+ const createUserDto = requestParameters?.createUserDto;
4265
+ let localVarHeaders = this.defaultHeaders;
4266
+ // authentication (Bearer) required
4267
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
4268
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
4269
+ this.configuration.selectHeaderAccept([
4270
+ "text/plain",
4271
+ "application/json",
4272
+ "text/json",
4273
+ ]);
4274
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
4275
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
4276
+ }
4277
+ const localVarHttpContext = options?.context ?? new HttpContext();
4278
+ const localVarTransferCache = options?.transferCache ?? true;
4279
+ // to determine the Content-Type header
4280
+ const consumes = [
4281
+ "application/json",
4282
+ "text/json",
4283
+ "application/*+json",
4284
+ ];
4285
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
4286
+ if (httpContentTypeSelected !== undefined) {
4287
+ localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
4288
+ }
4289
+ let responseType_ = "json";
4290
+ if (localVarHttpHeaderAcceptSelected) {
4291
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
4292
+ responseType_ = "text";
4293
+ }
4294
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
4295
+ responseType_ = "json";
4296
+ }
4297
+ else {
4298
+ responseType_ = "blob";
4299
+ }
4300
+ }
4301
+ let localVarPath = `/api/users/management`;
4302
+ const { basePath, withCredentials } = this.configuration;
4303
+ return this.httpClient.request("post", `${basePath}${localVarPath}`, {
4304
+ context: localVarHttpContext,
4305
+ body: createUserDto,
4306
+ responseType: responseType_,
4307
+ ...(withCredentials ? { withCredentials } : {}),
4308
+ headers: localVarHeaders,
4309
+ observe: observe,
4310
+ transferCache: localVarTransferCache,
4311
+ reportProgress: reportProgress,
4312
+ });
4313
+ }
4314
+ usersManagementGetUser(requestParameters, observe = "body", reportProgress = false, options) {
4315
+ const userId = requestParameters?.userId;
4316
+ if (userId === null || userId === undefined) {
4317
+ throw new Error("Required parameter userId was null or undefined when calling usersManagementGetUser.");
4318
+ }
4319
+ let localVarHeaders = this.defaultHeaders;
4320
+ // authentication (Bearer) required
4321
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
4322
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
4323
+ this.configuration.selectHeaderAccept([
4324
+ "text/plain",
4325
+ "application/json",
4326
+ "text/json",
4327
+ ]);
4328
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
4329
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
4330
+ }
4331
+ const localVarHttpContext = options?.context ?? new HttpContext();
4332
+ const localVarTransferCache = options?.transferCache ?? true;
4333
+ let responseType_ = "json";
4334
+ if (localVarHttpHeaderAcceptSelected) {
4335
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
4336
+ responseType_ = "text";
4337
+ }
4338
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
4339
+ responseType_ = "json";
4340
+ }
4341
+ else {
4342
+ responseType_ = "blob";
4343
+ }
4344
+ }
4345
+ let localVarPath = `/api/users/management/${this.configuration.encodeParam({ name: "userId", value: userId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
4346
+ const { basePath, withCredentials } = this.configuration;
4347
+ return this.httpClient.request("get", `${basePath}${localVarPath}`, {
4348
+ context: localVarHttpContext,
4349
+ responseType: responseType_,
4350
+ ...(withCredentials ? { withCredentials } : {}),
4351
+ headers: localVarHeaders,
4352
+ observe: observe,
4353
+ transferCache: localVarTransferCache,
4354
+ reportProgress: reportProgress,
4355
+ });
4356
+ }
4357
+ usersManagementRemoveUsers(requestParameters, observe = "body", reportProgress = false, options) {
4358
+ const removeUsersDto = requestParameters?.removeUsersDto;
4359
+ let localVarHeaders = this.defaultHeaders;
4360
+ // authentication (Bearer) required
4361
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
4362
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
4363
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
4364
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
4365
+ }
4366
+ const localVarHttpContext = options?.context ?? new HttpContext();
4367
+ const localVarTransferCache = options?.transferCache ?? true;
4368
+ // to determine the Content-Type header
4369
+ const consumes = [
4370
+ "application/json",
4371
+ "text/json",
4372
+ "application/*+json",
4373
+ ];
4374
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
4375
+ if (httpContentTypeSelected !== undefined) {
4376
+ localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
4377
+ }
4378
+ let responseType_ = "json";
4379
+ if (localVarHttpHeaderAcceptSelected) {
4380
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
4381
+ responseType_ = "text";
4382
+ }
4383
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
4384
+ responseType_ = "json";
4385
+ }
4386
+ else {
4387
+ responseType_ = "blob";
4388
+ }
4389
+ }
4390
+ let localVarPath = `/api/users/management`;
4391
+ const { basePath, withCredentials } = this.configuration;
4392
+ return this.httpClient.request("delete", `${basePath}${localVarPath}`, {
4393
+ context: localVarHttpContext,
4394
+ body: removeUsersDto,
4395
+ responseType: responseType_,
4396
+ ...(withCredentials ? { withCredentials } : {}),
4397
+ headers: localVarHeaders,
4398
+ observe: observe,
4399
+ transferCache: localVarTransferCache,
4400
+ reportProgress: reportProgress,
4401
+ });
4402
+ }
4403
+ usersManagementSearchUsers(requestParameters, observe = "body", reportProgress = false, options) {
4404
+ const fields = requestParameters?.fields;
4405
+ if (fields === null || fields === undefined) {
4406
+ throw new Error("Required parameter fields was null or undefined when calling usersManagementSearchUsers.");
4407
+ }
4408
+ const orderBy = requestParameters?.orderBy;
4409
+ const page = requestParameters?.page;
4410
+ const pageSize = requestParameters?.pageSize;
4411
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
4412
+ if (fields) {
4413
+ fields.forEach((element) => {
4414
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, element, "Fields");
4415
+ });
4416
+ }
4417
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, orderBy, "OrderBy");
4418
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, page, "Page");
4419
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, pageSize, "PageSize");
4420
+ let localVarHeaders = this.defaultHeaders;
4421
+ // authentication (Bearer) required
4422
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
4423
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
4424
+ this.configuration.selectHeaderAccept([
4425
+ "text/plain",
4426
+ "application/json",
4427
+ "text/json",
4428
+ ]);
4429
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
4430
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
4431
+ }
4432
+ const localVarHttpContext = options?.context ?? new HttpContext();
4433
+ const localVarTransferCache = options?.transferCache ?? true;
4434
+ let responseType_ = "json";
4435
+ if (localVarHttpHeaderAcceptSelected) {
4436
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
4437
+ responseType_ = "text";
4438
+ }
4439
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
4440
+ responseType_ = "json";
4441
+ }
4442
+ else {
4443
+ responseType_ = "blob";
4444
+ }
4445
+ }
4446
+ let localVarPath = `/api/users/management`;
4447
+ const { basePath, withCredentials } = this.configuration;
4448
+ return this.httpClient.request("get", `${basePath}${localVarPath}`, {
4449
+ context: localVarHttpContext,
4450
+ params: localVarQueryParameters,
4451
+ responseType: responseType_,
4452
+ ...(withCredentials ? { withCredentials } : {}),
4453
+ headers: localVarHeaders,
4454
+ observe: observe,
4455
+ transferCache: localVarTransferCache,
4456
+ reportProgress: reportProgress,
4457
+ });
4458
+ }
4459
+ usersManagementUpdateUser(requestParameters, observe = "body", reportProgress = false, options) {
4460
+ const userId = requestParameters?.userId;
4461
+ if (userId === null || userId === undefined) {
4462
+ throw new Error("Required parameter userId was null or undefined when calling usersManagementUpdateUser.");
4463
+ }
4464
+ const updateUserDto = requestParameters?.updateUserDto;
4465
+ let localVarHeaders = this.defaultHeaders;
4466
+ // authentication (Bearer) required
4467
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
4468
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
4469
+ this.configuration.selectHeaderAccept([
4470
+ "text/plain",
4471
+ "application/json",
4472
+ "text/json",
4473
+ ]);
4474
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
4475
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
4476
+ }
4477
+ const localVarHttpContext = options?.context ?? new HttpContext();
4478
+ const localVarTransferCache = options?.transferCache ?? true;
4479
+ // to determine the Content-Type header
4480
+ const consumes = [
4481
+ "application/json",
4482
+ "text/json",
4483
+ "application/*+json",
4484
+ ];
4485
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
4486
+ if (httpContentTypeSelected !== undefined) {
4487
+ localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
4488
+ }
4489
+ let responseType_ = "json";
4490
+ if (localVarHttpHeaderAcceptSelected) {
4491
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
4492
+ responseType_ = "text";
4493
+ }
4494
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
4495
+ responseType_ = "json";
4496
+ }
4497
+ else {
4498
+ responseType_ = "blob";
4499
+ }
4500
+ }
4501
+ let localVarPath = `/api/users/management/${this.configuration.encodeParam({ name: "userId", value: userId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
4502
+ const { basePath, withCredentials } = this.configuration;
4503
+ return this.httpClient.request("put", `${basePath}${localVarPath}`, {
4504
+ context: localVarHttpContext,
4505
+ body: updateUserDto,
4506
+ responseType: responseType_,
4507
+ ...(withCredentials ? { withCredentials } : {}),
4508
+ headers: localVarHeaders,
4509
+ observe: observe,
4510
+ transferCache: localVarTransferCache,
4511
+ reportProgress: reportProgress,
4512
+ });
4513
+ }
4514
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: UsersManagementApiService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
4515
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: UsersManagementApiService, providedIn: "root" });
4516
+ }
4517
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: UsersManagementApiService, decorators: [{
4518
+ type: Injectable,
4519
+ args: [{
4520
+ providedIn: "root",
4521
+ }]
4522
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
4523
+ type: Optional
4524
+ }, {
4525
+ type: Inject,
4526
+ args: [BASE_PATH]
4527
+ }] }, { type: Configuration, decorators: [{
4528
+ type: Optional
4529
+ }] }] });
4530
+
4247
4531
  const APIS = [
4248
4532
  AuthApiService,
4249
4533
  FeedbacksApiService,
@@ -4259,6 +4543,7 @@ const APIS = [
4259
4543
  UserDesignConditionsApiService,
4260
4544
  UserTablesApiService,
4261
4545
  UsersApiService,
4546
+ UsersManagementApiService,
4262
4547
  ];
4263
4548
 
4264
4549
  /**
@@ -4366,6 +4651,12 @@ var CoolingDesignBasis;
4366
4651
  * Do not edit the class manually.
4367
4652
  */
4368
4653
 
4654
+ var CreateUserDtoStatusEnum;
4655
+ (function (CreateUserDtoStatusEnum) {
4656
+ CreateUserDtoStatusEnum["Inactive"] = "Inactive";
4657
+ CreateUserDtoStatusEnum["Active"] = "Active";
4658
+ })(CreateUserDtoStatusEnum || (CreateUserDtoStatusEnum = {}));
4659
+
4369
4660
  /**
4370
4661
  * RenewAire CORES API
4371
4662
  *
@@ -4510,6 +4801,16 @@ var GroupDtoCustomerTypeEnum;
4510
4801
  GroupDtoCustomerTypeEnum["Other"] = "Other";
4511
4802
  })(GroupDtoCustomerTypeEnum || (GroupDtoCustomerTypeEnum = {}));
4512
4803
 
4804
+ /**
4805
+ * RenewAire CORES API
4806
+ *
4807
+ * Contact: renewaire@saritasa.com
4808
+ *
4809
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4810
+ * https://openapi-generator.tech
4811
+ * Do not edit the class manually.
4812
+ */
4813
+
4513
4814
  /**
4514
4815
  * RenewAire CORES API
4515
4816
  *
@@ -4743,6 +5044,16 @@ var RegistrationStatus;
4743
5044
  * Do not edit the class manually.
4744
5045
  */
4745
5046
 
5047
+ /**
5048
+ * RenewAire CORES API
5049
+ *
5050
+ * Contact: renewaire@saritasa.com
5051
+ *
5052
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
5053
+ * https://openapi-generator.tech
5054
+ * Do not edit the class manually.
5055
+ */
5056
+
4746
5057
  /**
4747
5058
  * RenewAire CORES API
4748
5059
  *
@@ -4956,15 +5267,11 @@ var UnitSystem;
4956
5267
  * Do not edit the class manually.
4957
5268
  */
4958
5269
 
4959
- /**
4960
- * RenewAire CORES API
4961
- *
4962
- * Contact: renewaire@saritasa.com
4963
- *
4964
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4965
- * https://openapi-generator.tech
4966
- * Do not edit the class manually.
4967
- */
5270
+ var UpdateUserDtoStatusEnum;
5271
+ (function (UpdateUserDtoStatusEnum) {
5272
+ UpdateUserDtoStatusEnum["Inactive"] = "Inactive";
5273
+ UpdateUserDtoStatusEnum["Active"] = "Active";
5274
+ })(UpdateUserDtoStatusEnum || (UpdateUserDtoStatusEnum = {}));
4968
5275
 
4969
5276
  /**
4970
5277
  * RenewAire CORES API
@@ -4975,13 +5282,6 @@ var UnitSystem;
4975
5282
  * https://openapi-generator.tech
4976
5283
  * Do not edit the class manually.
4977
5284
  */
4978
- var UserAddressDtoCountryEnum;
4979
- (function (UserAddressDtoCountryEnum) {
4980
- UserAddressDtoCountryEnum["Unknown"] = "Unknown";
4981
- UserAddressDtoCountryEnum["UnitedStates"] = "UnitedStates";
4982
- UserAddressDtoCountryEnum["Canada"] = "Canada";
4983
- UserAddressDtoCountryEnum["Mexico"] = "Mexico";
4984
- })(UserAddressDtoCountryEnum || (UserAddressDtoCountryEnum = {}));
4985
5285
 
4986
5286
  var UserDesignConditionsDtoCoolingDesignBasisEnum;
4987
5287
  (function (UserDesignConditionsDtoCoolingDesignBasisEnum) {
@@ -5062,6 +5362,24 @@ var UserProfileSettingsDtoRegistrationStatusEnum;
5062
5362
  UserProfileSettingsDtoRegistrationStatusEnum["Completed"] = "Completed";
5063
5363
  })(UserProfileSettingsDtoRegistrationStatusEnum || (UserProfileSettingsDtoRegistrationStatusEnum = {}));
5064
5364
 
5365
+ /**
5366
+ * RenewAire CORES API
5367
+ *
5368
+ * Contact: renewaire@saritasa.com
5369
+ *
5370
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
5371
+ * https://openapi-generator.tech
5372
+ * Do not edit the class manually.
5373
+ */
5374
+ /**
5375
+ * UserStatus<br />0 = Inactive<br />1 = Active
5376
+ */
5377
+ var UserStatus;
5378
+ (function (UserStatus) {
5379
+ UserStatus["Inactive"] = "Inactive";
5380
+ UserStatus["Active"] = "Active";
5381
+ })(UserStatus || (UserStatus = {}));
5382
+
5065
5383
  /**
5066
5384
  * RenewAire CORES API
5067
5385
  *
@@ -5124,5 +5442,5 @@ function provideApi(configOrBasePath) {
5124
5442
  * Generated bundle index. Do not edit.
5125
5443
  */
5126
5444
 
5127
- 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, SaveUserPreferencesDtoLanguageEnum, SaveUserPreferencesDtoUnitSystemEnum, SearchRegionDtoLevelEnum, SetPreferredLanguageCommandPreferredLanguageEnum, UnitSystem, UserAddressDtoCountryEnum, UserDesignConditionsApiService, UserDesignConditionsDtoCoolingDesignBasisEnum, UserDesignWeatherConditionDtoDesignWeatherModeEnum, UserPermissionDtoPermissionEnum, UserPreferencesDtoLanguageEnum, UserPreferencesDtoUnitSystemEnum, UserProfileSettingsDtoRegistrationStatusEnum, UserTablesApiService, UsersApiService, provideApi };
5445
+ export { APIS, AddressCountry, AddressDtoCountryEnum, ApiModule, AuthApiService, BASE_PATH, COLLECTION_FORMATS, Configuration, CoolingDesignBasis, CreateUserDtoStatusEnum, CurrentUserDtoRegistrationStatusEnum, DesignWeatherMode, FeedbackType, FeedbacksApiService, GroupCustomerType, GroupDtoCustomerTypeEnum, GroupDtoTypeEnum, GroupType, GroupsApiService, KnownContactsApiService, Language, Permission, PermissionBundlesApiService, PermissionsApiService, RegionDtoLevelEnum, RegionLevel, RegionsApiService, RegistrationStatus, RepContactsApiService, RepTerritoriesApiService, RepTerritoryLocationsApiService, RsdRegionsApiService, SaveGroupDtoTypeEnum, SaveUserDesignConditionsDtoCoolingDesignBasisEnum, SaveUserPreferencesDtoLanguageEnum, SaveUserPreferencesDtoUnitSystemEnum, SearchRegionDtoLevelEnum, SetPreferredLanguageCommandPreferredLanguageEnum, UnitSystem, UpdateUserDtoStatusEnum, UserDesignConditionsApiService, UserDesignConditionsDtoCoolingDesignBasisEnum, UserDesignWeatherConditionDtoDesignWeatherModeEnum, UserPermissionDtoPermissionEnum, UserPreferencesDtoLanguageEnum, UserPreferencesDtoUnitSystemEnum, UserProfileSettingsDtoRegistrationStatusEnum, UserStatus, UserTablesApiService, UsersApiService, UsersManagementApiService, provideApi };
5128
5446
  //# sourceMappingURL=saritasa-renewaire-frontend-sdk.mjs.map