@saritasa/renewaire-frontend-sdk 0.12.0 → 0.13.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.12.0
1
+ # @@saritasa/renewaire-frontend-sdk@0.13.0
2
2
 
3
3
  ```bash
4
- npm install @saritasa/renewaire-frontend-sdk@0.12.0 --save
4
+ npm install @saritasa/renewaire-frontend-sdk@0.13.0 --save
5
5
  ```
@@ -562,6 +562,278 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImpor
562
562
  type: Optional
563
563
  }] }] });
564
564
 
565
+ /**
566
+ * RenewAire CORES API
567
+ *
568
+ * Contact: renewaire@saritasa.com
569
+ *
570
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
571
+ * https://openapi-generator.tech
572
+ * Do not edit the class manually.
573
+ */
574
+ /* tslint:disable:no-unused-variable member-ordering */
575
+ class GroupsApiService extends BaseService {
576
+ httpClient;
577
+ constructor(httpClient, basePath, configuration) {
578
+ super(basePath, configuration);
579
+ this.httpClient = httpClient;
580
+ }
581
+ groupsCreateGroup(requestParameters, observe = "body", reportProgress = false, options) {
582
+ const saveGroupDto = requestParameters?.saveGroupDto;
583
+ let localVarHeaders = this.defaultHeaders;
584
+ // authentication (Bearer) required
585
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
586
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
587
+ this.configuration.selectHeaderAccept([
588
+ "text/plain",
589
+ "application/json",
590
+ "text/json",
591
+ ]);
592
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
593
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
594
+ }
595
+ const localVarHttpContext = options?.context ?? new HttpContext();
596
+ const localVarTransferCache = options?.transferCache ?? true;
597
+ // to determine the Content-Type header
598
+ const consumes = [
599
+ "application/json",
600
+ "text/json",
601
+ "application/*+json",
602
+ ];
603
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
604
+ if (httpContentTypeSelected !== undefined) {
605
+ localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
606
+ }
607
+ let responseType_ = "json";
608
+ if (localVarHttpHeaderAcceptSelected) {
609
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
610
+ responseType_ = "text";
611
+ }
612
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
613
+ responseType_ = "json";
614
+ }
615
+ else {
616
+ responseType_ = "blob";
617
+ }
618
+ }
619
+ let localVarPath = `/api/groups`;
620
+ const { basePath, withCredentials } = this.configuration;
621
+ return this.httpClient.request("post", `${basePath}${localVarPath}`, {
622
+ context: localVarHttpContext,
623
+ body: saveGroupDto,
624
+ responseType: responseType_,
625
+ ...(withCredentials ? { withCredentials } : {}),
626
+ headers: localVarHeaders,
627
+ observe: observe,
628
+ transferCache: localVarTransferCache,
629
+ reportProgress: reportProgress,
630
+ });
631
+ }
632
+ 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.");
636
+ }
637
+ let localVarHeaders = this.defaultHeaders;
638
+ // authentication (Bearer) required
639
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
640
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
641
+ this.configuration.selectHeaderAccept([
642
+ "text/plain",
643
+ "application/json",
644
+ "text/json",
645
+ ]);
646
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
647
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
648
+ }
649
+ const localVarHttpContext = options?.context ?? new HttpContext();
650
+ const localVarTransferCache = options?.transferCache ?? true;
651
+ let responseType_ = "json";
652
+ if (localVarHttpHeaderAcceptSelected) {
653
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
654
+ responseType_ = "text";
655
+ }
656
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
657
+ responseType_ = "json";
658
+ }
659
+ else {
660
+ responseType_ = "blob";
661
+ }
662
+ }
663
+ let localVarPath = `/api/groups/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
664
+ const { basePath, withCredentials } = this.configuration;
665
+ return this.httpClient.request("get", `${basePath}${localVarPath}`, {
666
+ context: localVarHttpContext,
667
+ responseType: responseType_,
668
+ ...(withCredentials ? { withCredentials } : {}),
669
+ headers: localVarHeaders,
670
+ observe: observe,
671
+ transferCache: localVarTransferCache,
672
+ reportProgress: reportProgress,
673
+ });
674
+ }
675
+ 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.");
679
+ }
680
+ let localVarHeaders = this.defaultHeaders;
681
+ // authentication (Bearer) required
682
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
683
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
684
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
685
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
686
+ }
687
+ const localVarHttpContext = options?.context ?? new HttpContext();
688
+ const localVarTransferCache = options?.transferCache ?? true;
689
+ let responseType_ = "json";
690
+ if (localVarHttpHeaderAcceptSelected) {
691
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
692
+ responseType_ = "text";
693
+ }
694
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
695
+ responseType_ = "json";
696
+ }
697
+ else {
698
+ responseType_ = "blob";
699
+ }
700
+ }
701
+ let localVarPath = `/api/groups/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
702
+ const { basePath, withCredentials } = this.configuration;
703
+ return this.httpClient.request("delete", `${basePath}${localVarPath}`, {
704
+ context: localVarHttpContext,
705
+ responseType: responseType_,
706
+ ...(withCredentials ? { withCredentials } : {}),
707
+ headers: localVarHeaders,
708
+ observe: observe,
709
+ transferCache: localVarTransferCache,
710
+ reportProgress: reportProgress,
711
+ });
712
+ }
713
+ groupsSearchGroups(requestParameters, observe = "body", reportProgress = false, options) {
714
+ const name = requestParameters?.name;
715
+ const type = requestParameters?.type;
716
+ const isActive = requestParameters?.isActive;
717
+ const erpCustomerName = requestParameters?.erpCustomerName;
718
+ const customerType = requestParameters?.customerType;
719
+ const orderBy = requestParameters?.orderBy;
720
+ const page = requestParameters?.page;
721
+ const pageSize = requestParameters?.pageSize;
722
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
723
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, name, "Name");
724
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, type, "Type");
725
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, isActive, "IsActive");
726
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, erpCustomerName, "ErpCustomerName");
727
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, customerType, "CustomerType");
728
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, orderBy, "OrderBy");
729
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, page, "Page");
730
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, pageSize, "PageSize");
731
+ let localVarHeaders = this.defaultHeaders;
732
+ // authentication (Bearer) required
733
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
734
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
735
+ this.configuration.selectHeaderAccept([
736
+ "text/plain",
737
+ "application/json",
738
+ "text/json",
739
+ ]);
740
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
741
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
742
+ }
743
+ const localVarHttpContext = options?.context ?? new HttpContext();
744
+ const localVarTransferCache = options?.transferCache ?? true;
745
+ let responseType_ = "json";
746
+ if (localVarHttpHeaderAcceptSelected) {
747
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
748
+ responseType_ = "text";
749
+ }
750
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
751
+ responseType_ = "json";
752
+ }
753
+ else {
754
+ responseType_ = "blob";
755
+ }
756
+ }
757
+ let localVarPath = `/api/groups`;
758
+ const { basePath, withCredentials } = this.configuration;
759
+ return this.httpClient.request("get", `${basePath}${localVarPath}`, {
760
+ context: localVarHttpContext,
761
+ params: localVarQueryParameters,
762
+ responseType: responseType_,
763
+ ...(withCredentials ? { withCredentials } : {}),
764
+ headers: localVarHeaders,
765
+ observe: observe,
766
+ transferCache: localVarTransferCache,
767
+ reportProgress: reportProgress,
768
+ });
769
+ }
770
+ groupsUpdateGroup(requestParameters, observe = "body", reportProgress = false, options) {
771
+ const id = requestParameters?.id;
772
+ if (id === null || id === undefined) {
773
+ throw new Error("Required parameter id was null or undefined when calling groupsUpdateGroup.");
774
+ }
775
+ const saveGroupDto = requestParameters?.saveGroupDto;
776
+ let localVarHeaders = this.defaultHeaders;
777
+ // authentication (Bearer) required
778
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
779
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
780
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
781
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
782
+ }
783
+ const localVarHttpContext = options?.context ?? new HttpContext();
784
+ const localVarTransferCache = options?.transferCache ?? true;
785
+ // to determine the Content-Type header
786
+ const consumes = [
787
+ "application/json",
788
+ "text/json",
789
+ "application/*+json",
790
+ ];
791
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
792
+ if (httpContentTypeSelected !== undefined) {
793
+ localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
794
+ }
795
+ let responseType_ = "json";
796
+ if (localVarHttpHeaderAcceptSelected) {
797
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
798
+ responseType_ = "text";
799
+ }
800
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
801
+ responseType_ = "json";
802
+ }
803
+ else {
804
+ responseType_ = "blob";
805
+ }
806
+ }
807
+ let localVarPath = `/api/groups/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
808
+ const { basePath, withCredentials } = this.configuration;
809
+ return this.httpClient.request("put", `${basePath}${localVarPath}`, {
810
+ context: localVarHttpContext,
811
+ body: saveGroupDto,
812
+ responseType: responseType_,
813
+ ...(withCredentials ? { withCredentials } : {}),
814
+ headers: localVarHeaders,
815
+ observe: observe,
816
+ transferCache: localVarTransferCache,
817
+ reportProgress: reportProgress,
818
+ });
819
+ }
820
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: GroupsApiService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
821
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: GroupsApiService, providedIn: "root" });
822
+ }
823
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: GroupsApiService, decorators: [{
824
+ type: Injectable,
825
+ args: [{
826
+ providedIn: "root",
827
+ }]
828
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
829
+ type: Optional
830
+ }, {
831
+ type: Inject,
832
+ args: [BASE_PATH]
833
+ }] }, { type: Configuration, decorators: [{
834
+ type: Optional
835
+ }] }] });
836
+
565
837
  /**
566
838
  * RenewAire CORES API
567
839
  *
@@ -3765,6 +4037,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImpor
3765
4037
  const APIS = [
3766
4038
  AuthApiService,
3767
4039
  FeedbacksApiService,
4040
+ GroupsApiService,
3768
4041
  KnownContactsApiService,
3769
4042
  PermissionBundlesApiService,
3770
4043
  PermissionsApiService,
@@ -3834,6 +4107,16 @@ var AddressDtoCountryEnum;
3834
4107
  * Do not edit the class manually.
3835
4108
  */
3836
4109
 
4110
+ /**
4111
+ * RenewAire CORES API
4112
+ *
4113
+ * Contact: renewaire@saritasa.com
4114
+ *
4115
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4116
+ * https://openapi-generator.tech
4117
+ * Do not edit the class manually.
4118
+ */
4119
+
3837
4120
  /**
3838
4121
  * RenewAire CORES API
3839
4122
  *
@@ -3972,6 +4255,59 @@ var FeedbackType;
3972
4255
  * Do not edit the class manually.
3973
4256
  */
3974
4257
 
4258
+ /**
4259
+ * RenewAire CORES API
4260
+ *
4261
+ * Contact: renewaire@saritasa.com
4262
+ *
4263
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4264
+ * https://openapi-generator.tech
4265
+ * Do not edit the class manually.
4266
+ */
4267
+ /**
4268
+ * GroupCustomerType<br />0 = Ess<br />1 = Distributor<br />2 = Oem<br />3 = Other
4269
+ */
4270
+ var GroupCustomerType;
4271
+ (function (GroupCustomerType) {
4272
+ GroupCustomerType["Ess"] = "Ess";
4273
+ GroupCustomerType["Distributor"] = "Distributor";
4274
+ GroupCustomerType["Oem"] = "Oem";
4275
+ GroupCustomerType["Other"] = "Other";
4276
+ })(GroupCustomerType || (GroupCustomerType = {}));
4277
+
4278
+ var GroupDtoTypeEnum;
4279
+ (function (GroupDtoTypeEnum) {
4280
+ GroupDtoTypeEnum["None"] = "None";
4281
+ GroupDtoTypeEnum["Customer"] = "Customer";
4282
+ GroupDtoTypeEnum["System"] = "System";
4283
+ })(GroupDtoTypeEnum || (GroupDtoTypeEnum = {}));
4284
+ var GroupDtoCustomerTypeEnum;
4285
+ (function (GroupDtoCustomerTypeEnum) {
4286
+ GroupDtoCustomerTypeEnum["Ess"] = "Ess";
4287
+ GroupDtoCustomerTypeEnum["Distributor"] = "Distributor";
4288
+ GroupDtoCustomerTypeEnum["Oem"] = "Oem";
4289
+ GroupDtoCustomerTypeEnum["Other"] = "Other";
4290
+ })(GroupDtoCustomerTypeEnum || (GroupDtoCustomerTypeEnum = {}));
4291
+
4292
+ /**
4293
+ * RenewAire CORES API
4294
+ *
4295
+ * Contact: renewaire@saritasa.com
4296
+ *
4297
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4298
+ * https://openapi-generator.tech
4299
+ * Do not edit the class manually.
4300
+ */
4301
+ /**
4302
+ * GroupType<br />0 = None<br />1 = Customer<br />2 = System
4303
+ */
4304
+ var GroupType;
4305
+ (function (GroupType) {
4306
+ GroupType["None"] = "None";
4307
+ GroupType["Customer"] = "Customer";
4308
+ GroupType["System"] = "System";
4309
+ })(GroupType || (GroupType = {}));
4310
+
3975
4311
  /**
3976
4312
  * RenewAire CORES API
3977
4313
  *
@@ -4186,6 +4522,22 @@ var RegistrationStatus;
4186
4522
  * Do not edit the class manually.
4187
4523
  */
4188
4524
 
4525
+ /**
4526
+ * RenewAire CORES API
4527
+ *
4528
+ * Contact: renewaire@saritasa.com
4529
+ *
4530
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4531
+ * https://openapi-generator.tech
4532
+ * Do not edit the class manually.
4533
+ */
4534
+ var SaveGroupDtoTypeEnum;
4535
+ (function (SaveGroupDtoTypeEnum) {
4536
+ SaveGroupDtoTypeEnum["None"] = "None";
4537
+ SaveGroupDtoTypeEnum["Customer"] = "Customer";
4538
+ SaveGroupDtoTypeEnum["System"] = "System";
4539
+ })(SaveGroupDtoTypeEnum || (SaveGroupDtoTypeEnum = {}));
4540
+
4189
4541
  /**
4190
4542
  * RenewAire CORES API
4191
4543
  *
@@ -4233,6 +4585,16 @@ var SaveUserPreferencesDtoUnitSystemEnum;
4233
4585
  * Do not edit the class manually.
4234
4586
  */
4235
4587
 
4588
+ /**
4589
+ * RenewAire CORES API
4590
+ *
4591
+ * Contact: renewaire@saritasa.com
4592
+ *
4593
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4594
+ * https://openapi-generator.tech
4595
+ * Do not edit the class manually.
4596
+ */
4597
+
4236
4598
  /**
4237
4599
  * RenewAire CORES API
4238
4600
  *
@@ -4531,5 +4893,5 @@ function provideApi(configOrBasePath) {
4531
4893
  * Generated bundle index. Do not edit.
4532
4894
  */
4533
4895
 
4534
- export { APIS, AddressCountry, AddressDtoCountryEnum, ApiModule, AuthApiService, BASE_PATH, COLLECTION_FORMATS, Configuration, CoolingDesignBasis, CurrentUserDtoRegistrationStatusEnum, DesignWeatherMode, FeedbackType, FeedbacksApiService, KnownContactsApiService, Language, Permission, PermissionBundlesApiService, PermissionsApiService, RegionDtoLevelEnum, RegionLevel, RegionsApiService, RegistrationStatus, RepContactsApiService, RepTerritoriesApiService, RepTerritoryLocationsApiService, RsdRegionsApiService, SaveUserDesignConditionsDtoCoolingDesignBasisEnum, SaveUserPreferencesDtoLanguageEnum, SaveUserPreferencesDtoUnitSystemEnum, SearchRegionDtoLevelEnum, SetPreferredLanguageCommandPreferredLanguageEnum, UnitSystem, UserAddressDtoCountryEnum, UserDesignConditionsApiService, UserDesignConditionsDtoCoolingDesignBasisEnum, UserDesignWeatherConditionDtoDesignWeatherModeEnum, UserPermissionDtoPermissionEnum, UserPreferencesDtoLanguageEnum, UserPreferencesDtoUnitSystemEnum, UserProfileSettingsDtoRegistrationStatusEnum, UsersApiService, provideApi };
4896
+ 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, UsersApiService, provideApi };
4535
4897
  //# sourceMappingURL=saritasa-renewaire-frontend-sdk.mjs.map