@saritasa/renewaire-frontend-sdk 0.61.0 → 0.62.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
|
@@ -541,6 +541,237 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImpor
|
|
|
541
541
|
type: Optional
|
|
542
542
|
}] }] });
|
|
543
543
|
|
|
544
|
+
/**
|
|
545
|
+
* RenewAire CORES API
|
|
546
|
+
*
|
|
547
|
+
* Contact: renewaire@saritasa.com
|
|
548
|
+
*
|
|
549
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
550
|
+
* https://openapi-generator.tech
|
|
551
|
+
* Do not edit the class manually.
|
|
552
|
+
*/
|
|
553
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
554
|
+
class ControllerProgramsApiService extends BaseService {
|
|
555
|
+
httpClient;
|
|
556
|
+
constructor(httpClient, basePath, configuration) {
|
|
557
|
+
super(basePath, configuration);
|
|
558
|
+
this.httpClient = httpClient;
|
|
559
|
+
}
|
|
560
|
+
controllerProgramsCreateControllerProgram(requestParameters, observe = "body", reportProgress = false, options) {
|
|
561
|
+
const programType = requestParameters?.programType;
|
|
562
|
+
if (programType === null || programType === undefined) {
|
|
563
|
+
throw new Error("Required parameter programType was null or undefined when calling controllerProgramsCreateControllerProgram.");
|
|
564
|
+
}
|
|
565
|
+
const saveControllerProgramDto = requestParameters?.saveControllerProgramDto;
|
|
566
|
+
let localVarHeaders = this.defaultHeaders;
|
|
567
|
+
// authentication (Bearer) required
|
|
568
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
569
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
|
|
570
|
+
this.configuration.selectHeaderAccept([
|
|
571
|
+
"text/plain",
|
|
572
|
+
"application/json",
|
|
573
|
+
"text/json",
|
|
574
|
+
]);
|
|
575
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
576
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
577
|
+
}
|
|
578
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
579
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
580
|
+
// to determine the Content-Type header
|
|
581
|
+
const consumes = [
|
|
582
|
+
"application/json",
|
|
583
|
+
"text/json",
|
|
584
|
+
"application/*+json",
|
|
585
|
+
];
|
|
586
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
587
|
+
if (httpContentTypeSelected !== undefined) {
|
|
588
|
+
localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
|
|
589
|
+
}
|
|
590
|
+
let responseType_ = "json";
|
|
591
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
592
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
593
|
+
responseType_ = "text";
|
|
594
|
+
}
|
|
595
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
596
|
+
responseType_ = "json";
|
|
597
|
+
}
|
|
598
|
+
else {
|
|
599
|
+
responseType_ = "blob";
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
let localVarPath = `/api/controller-programs/${this.configuration.encodeParam({ name: "programType", value: programType, in: "path", style: "simple", explode: false, dataType: "'ERV' | 'DN' | 'Refrigeration' | 'Misc'", dataFormat: undefined })}`;
|
|
603
|
+
const { basePath, withCredentials } = this.configuration;
|
|
604
|
+
return this.httpClient.request("post", `${basePath}${localVarPath}`, {
|
|
605
|
+
context: localVarHttpContext,
|
|
606
|
+
body: saveControllerProgramDto,
|
|
607
|
+
responseType: responseType_,
|
|
608
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
609
|
+
headers: localVarHeaders,
|
|
610
|
+
observe: observe,
|
|
611
|
+
transferCache: localVarTransferCache,
|
|
612
|
+
reportProgress: reportProgress,
|
|
613
|
+
});
|
|
614
|
+
}
|
|
615
|
+
controllerProgramsCreateFileDownloadUrl(requestParameters, observe = "body", reportProgress = false, options) {
|
|
616
|
+
const controllerProgramId = requestParameters?.controllerProgramId;
|
|
617
|
+
if (controllerProgramId === null || controllerProgramId === undefined) {
|
|
618
|
+
throw new Error("Required parameter controllerProgramId was null or undefined when calling controllerProgramsCreateFileDownloadUrl.");
|
|
619
|
+
}
|
|
620
|
+
let localVarHeaders = this.defaultHeaders;
|
|
621
|
+
// authentication (Bearer) required
|
|
622
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
623
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
624
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
625
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
626
|
+
}
|
|
627
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
628
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
629
|
+
let responseType_ = "json";
|
|
630
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
631
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
632
|
+
responseType_ = "text";
|
|
633
|
+
}
|
|
634
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
635
|
+
responseType_ = "json";
|
|
636
|
+
}
|
|
637
|
+
else {
|
|
638
|
+
responseType_ = "blob";
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
let localVarPath = `/api/controller-programs/${this.configuration.encodeParam({ name: "controllerProgramId", value: controllerProgramId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}/file-download-url`;
|
|
642
|
+
const { basePath, withCredentials } = this.configuration;
|
|
643
|
+
return this.httpClient.request("get", `${basePath}${localVarPath}`, {
|
|
644
|
+
context: localVarHttpContext,
|
|
645
|
+
responseType: responseType_,
|
|
646
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
647
|
+
headers: localVarHeaders,
|
|
648
|
+
observe: observe,
|
|
649
|
+
transferCache: localVarTransferCache,
|
|
650
|
+
reportProgress: reportProgress,
|
|
651
|
+
});
|
|
652
|
+
}
|
|
653
|
+
controllerProgramsCreateFileUploadUrl(requestParameters, observe = "body", reportProgress = false, options) {
|
|
654
|
+
const createUploadUrlCommand = requestParameters?.createUploadUrlCommand;
|
|
655
|
+
let localVarHeaders = this.defaultHeaders;
|
|
656
|
+
// authentication (Bearer) required
|
|
657
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
658
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
|
|
659
|
+
this.configuration.selectHeaderAccept([
|
|
660
|
+
"text/plain",
|
|
661
|
+
"application/json",
|
|
662
|
+
"text/json",
|
|
663
|
+
]);
|
|
664
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
665
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
666
|
+
}
|
|
667
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
668
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
669
|
+
// to determine the Content-Type header
|
|
670
|
+
const consumes = [
|
|
671
|
+
"application/json",
|
|
672
|
+
"text/json",
|
|
673
|
+
"application/*+json",
|
|
674
|
+
];
|
|
675
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
676
|
+
if (httpContentTypeSelected !== undefined) {
|
|
677
|
+
localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
|
|
678
|
+
}
|
|
679
|
+
let responseType_ = "json";
|
|
680
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
681
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
682
|
+
responseType_ = "text";
|
|
683
|
+
}
|
|
684
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
685
|
+
responseType_ = "json";
|
|
686
|
+
}
|
|
687
|
+
else {
|
|
688
|
+
responseType_ = "blob";
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
let localVarPath = `/api/controller-programs/files/upload-url`;
|
|
692
|
+
const { basePath, withCredentials } = this.configuration;
|
|
693
|
+
return this.httpClient.request("post", `${basePath}${localVarPath}`, {
|
|
694
|
+
context: localVarHttpContext,
|
|
695
|
+
body: createUploadUrlCommand,
|
|
696
|
+
responseType: responseType_,
|
|
697
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
698
|
+
headers: localVarHeaders,
|
|
699
|
+
observe: observe,
|
|
700
|
+
transferCache: localVarTransferCache,
|
|
701
|
+
reportProgress: reportProgress,
|
|
702
|
+
});
|
|
703
|
+
}
|
|
704
|
+
controllerProgramsUpdateControllerProgram(requestParameters, observe = "body", reportProgress = false, options) {
|
|
705
|
+
const controllerProgramId = requestParameters?.controllerProgramId;
|
|
706
|
+
if (controllerProgramId === null || controllerProgramId === undefined) {
|
|
707
|
+
throw new Error("Required parameter controllerProgramId was null or undefined when calling controllerProgramsUpdateControllerProgram.");
|
|
708
|
+
}
|
|
709
|
+
const isActive = requestParameters?.isActive;
|
|
710
|
+
const saveControllerProgramDto = requestParameters?.saveControllerProgramDto;
|
|
711
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
712
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, isActive, "isActive");
|
|
713
|
+
let localVarHeaders = this.defaultHeaders;
|
|
714
|
+
// authentication (Bearer) required
|
|
715
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
716
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
717
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
718
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
719
|
+
}
|
|
720
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
721
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
722
|
+
// to determine the Content-Type header
|
|
723
|
+
const consumes = [
|
|
724
|
+
"application/json",
|
|
725
|
+
"text/json",
|
|
726
|
+
"application/*+json",
|
|
727
|
+
];
|
|
728
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
729
|
+
if (httpContentTypeSelected !== undefined) {
|
|
730
|
+
localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
|
|
731
|
+
}
|
|
732
|
+
let responseType_ = "json";
|
|
733
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
734
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
735
|
+
responseType_ = "text";
|
|
736
|
+
}
|
|
737
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
738
|
+
responseType_ = "json";
|
|
739
|
+
}
|
|
740
|
+
else {
|
|
741
|
+
responseType_ = "blob";
|
|
742
|
+
}
|
|
743
|
+
}
|
|
744
|
+
let localVarPath = `/api/controller-programs/${this.configuration.encodeParam({ name: "controllerProgramId", value: controllerProgramId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
|
|
745
|
+
const { basePath, withCredentials } = this.configuration;
|
|
746
|
+
return this.httpClient.request("put", `${basePath}${localVarPath}`, {
|
|
747
|
+
context: localVarHttpContext,
|
|
748
|
+
body: saveControllerProgramDto,
|
|
749
|
+
params: localVarQueryParameters,
|
|
750
|
+
responseType: responseType_,
|
|
751
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
752
|
+
headers: localVarHeaders,
|
|
753
|
+
observe: observe,
|
|
754
|
+
transferCache: localVarTransferCache,
|
|
755
|
+
reportProgress: reportProgress,
|
|
756
|
+
});
|
|
757
|
+
}
|
|
758
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: ControllerProgramsApiService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
759
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: ControllerProgramsApiService, providedIn: "root" });
|
|
760
|
+
}
|
|
761
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: ControllerProgramsApiService, decorators: [{
|
|
762
|
+
type: Injectable,
|
|
763
|
+
args: [{
|
|
764
|
+
providedIn: "root",
|
|
765
|
+
}]
|
|
766
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
767
|
+
type: Optional
|
|
768
|
+
}, {
|
|
769
|
+
type: Inject,
|
|
770
|
+
args: [BASE_PATH]
|
|
771
|
+
}] }, { type: Configuration, decorators: [{
|
|
772
|
+
type: Optional
|
|
773
|
+
}] }] });
|
|
774
|
+
|
|
544
775
|
/**
|
|
545
776
|
* RenewAire CORES API
|
|
546
777
|
*
|
|
@@ -6045,6 +6276,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImpor
|
|
|
6045
6276
|
const APIS = [
|
|
6046
6277
|
AuditLogsApiService,
|
|
6047
6278
|
AuthApiService,
|
|
6279
|
+
ControllerProgramsApiService,
|
|
6048
6280
|
FeedbacksApiService,
|
|
6049
6281
|
GroupsApiService,
|
|
6050
6282
|
KnownContactsApiService,
|
|
@@ -6204,6 +6436,44 @@ var AuditEntity;
|
|
|
6204
6436
|
* Do not edit the class manually.
|
|
6205
6437
|
*/
|
|
6206
6438
|
|
|
6439
|
+
/**
|
|
6440
|
+
* RenewAire CORES API
|
|
6441
|
+
*
|
|
6442
|
+
* Contact: renewaire@saritasa.com
|
|
6443
|
+
*
|
|
6444
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
6445
|
+
* https://openapi-generator.tech
|
|
6446
|
+
* Do not edit the class manually.
|
|
6447
|
+
*/
|
|
6448
|
+
/**
|
|
6449
|
+
* ControllerProgramReleaseType<br />0 = Custom<br />1 = Factory
|
|
6450
|
+
*/
|
|
6451
|
+
var ControllerProgramReleaseType;
|
|
6452
|
+
(function (ControllerProgramReleaseType) {
|
|
6453
|
+
ControllerProgramReleaseType["Custom"] = "Custom";
|
|
6454
|
+
ControllerProgramReleaseType["Factory"] = "Factory";
|
|
6455
|
+
})(ControllerProgramReleaseType || (ControllerProgramReleaseType = {}));
|
|
6456
|
+
|
|
6457
|
+
/**
|
|
6458
|
+
* RenewAire CORES API
|
|
6459
|
+
*
|
|
6460
|
+
* Contact: renewaire@saritasa.com
|
|
6461
|
+
*
|
|
6462
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
6463
|
+
* https://openapi-generator.tech
|
|
6464
|
+
* Do not edit the class manually.
|
|
6465
|
+
*/
|
|
6466
|
+
/**
|
|
6467
|
+
* ControllerProgramType<br />0 = ERV<br />1 = DN<br />2 = Refrigeration<br />3 = Misc
|
|
6468
|
+
*/
|
|
6469
|
+
var ControllerProgramType;
|
|
6470
|
+
(function (ControllerProgramType) {
|
|
6471
|
+
ControllerProgramType["Erv"] = "ERV";
|
|
6472
|
+
ControllerProgramType["Dn"] = "DN";
|
|
6473
|
+
ControllerProgramType["Refrigeration"] = "Refrigeration";
|
|
6474
|
+
ControllerProgramType["Misc"] = "Misc";
|
|
6475
|
+
})(ControllerProgramType || (ControllerProgramType = {}));
|
|
6476
|
+
|
|
6207
6477
|
/**
|
|
6208
6478
|
* RenewAire CORES API
|
|
6209
6479
|
*
|
|
@@ -6720,6 +6990,12 @@ var RegistrationStatus;
|
|
|
6720
6990
|
* Do not edit the class manually.
|
|
6721
6991
|
*/
|
|
6722
6992
|
|
|
6993
|
+
var SaveControllerProgramDtoReleaseTypeEnum;
|
|
6994
|
+
(function (SaveControllerProgramDtoReleaseTypeEnum) {
|
|
6995
|
+
SaveControllerProgramDtoReleaseTypeEnum["Custom"] = "Custom";
|
|
6996
|
+
SaveControllerProgramDtoReleaseTypeEnum["Factory"] = "Factory";
|
|
6997
|
+
})(SaveControllerProgramDtoReleaseTypeEnum || (SaveControllerProgramDtoReleaseTypeEnum = {}));
|
|
6998
|
+
|
|
6723
6999
|
var SaveGroupDtoTypeEnum;
|
|
6724
7000
|
(function (SaveGroupDtoTypeEnum) {
|
|
6725
7001
|
SaveGroupDtoTypeEnum["None"] = "None";
|
|
@@ -7154,5 +7430,5 @@ function provideApi(configOrBasePath) {
|
|
|
7154
7430
|
* Generated bundle index. Do not edit.
|
|
7155
7431
|
*/
|
|
7156
7432
|
|
|
7157
|
-
export { APIS, AddressCountry, AddressDtoCountryEnum, ApiModule, AshraeVersion, AuditEntity, AuditLogsApiService, AuthApiService, BASE_PATH, COLLECTION_FORMATS, Configuration, CoolingDesignBasis, CurrentUserDtoPreferredUnitEnum, CurrentUserDtoRegistrationStatusEnum, DesignWeatherMode, FeedbackType, FeedbacksApiService, GroupCustomerType, GroupDtoCustomerTypeEnum, GroupDtoTypeEnum, GroupType, GroupsApiService, KnownContactsApiService, Language, Permission, PermissionBundlesApiService, PermissionsApiService, ProjectsApiService, RegionLevel, RegionsApiService, RegistrationStatus, RepContactsApiService, RepTerritoriesApiService, RepTerritoryLocationsApiService, RsdRegionsApiService, SaveGroupDtoTypeEnum, SaveUserDesignConditionsDtoCoolingDesignBasisEnum, SearchRegionDtoLevelEnum, SetPreferredLanguageCommandPreferredLanguageEnum, StaticFilesApiService, UnitSystem, UserDesignConditionsApiService, UserDesignConditionsDtoCoolingDesignBasisEnum, UserDesignWeatherConditionDtoDesignWeatherModeEnum, UserPermissionDtoPermissionEnum, UserPreferencesDtoPreferredLanguageEnum, UserPreferencesDtoPreferredUnitEnum, UserProfileSettingsDtoRegistrationStatusEnum, UserStatus, UserTablesApiService, UsersApiService, UsersManagementApiService, provideApi };
|
|
7433
|
+
export { APIS, AddressCountry, AddressDtoCountryEnum, ApiModule, AshraeVersion, AuditEntity, AuditLogsApiService, AuthApiService, BASE_PATH, COLLECTION_FORMATS, Configuration, ControllerProgramReleaseType, ControllerProgramType, ControllerProgramsApiService, CoolingDesignBasis, CurrentUserDtoPreferredUnitEnum, CurrentUserDtoRegistrationStatusEnum, DesignWeatherMode, FeedbackType, FeedbacksApiService, GroupCustomerType, GroupDtoCustomerTypeEnum, GroupDtoTypeEnum, GroupType, GroupsApiService, KnownContactsApiService, Language, Permission, PermissionBundlesApiService, PermissionsApiService, ProjectsApiService, RegionLevel, RegionsApiService, RegistrationStatus, RepContactsApiService, RepTerritoriesApiService, RepTerritoryLocationsApiService, RsdRegionsApiService, SaveControllerProgramDtoReleaseTypeEnum, SaveGroupDtoTypeEnum, SaveUserDesignConditionsDtoCoolingDesignBasisEnum, SearchRegionDtoLevelEnum, SetPreferredLanguageCommandPreferredLanguageEnum, StaticFilesApiService, UnitSystem, UserDesignConditionsApiService, UserDesignConditionsDtoCoolingDesignBasisEnum, UserDesignWeatherConditionDtoDesignWeatherModeEnum, UserPermissionDtoPermissionEnum, UserPreferencesDtoPreferredLanguageEnum, UserPreferencesDtoPreferredUnitEnum, UserProfileSettingsDtoRegistrationStatusEnum, UserStatus, UserTablesApiService, UsersApiService, UsersManagementApiService, provideApi };
|
|
7158
7434
|
//# sourceMappingURL=saritasa-renewaire-frontend-sdk.mjs.map
|