@saritasa/renewaire-frontend-sdk 0.128.1 → 0.130.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
|
@@ -2729,6 +2729,126 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.7", ngImpor
|
|
|
2729
2729
|
type: Optional
|
|
2730
2730
|
}] }] });
|
|
2731
2731
|
|
|
2732
|
+
/**
|
|
2733
|
+
* RenewAire CORES API
|
|
2734
|
+
*
|
|
2735
|
+
* Contact: renewaire@saritasa.com
|
|
2736
|
+
*
|
|
2737
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2738
|
+
* https://openapi-generator.tech
|
|
2739
|
+
* Do not edit the class manually.
|
|
2740
|
+
*/
|
|
2741
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
2742
|
+
class ProjectRevisionsApiService extends BaseService {
|
|
2743
|
+
httpClient;
|
|
2744
|
+
constructor(httpClient, basePath, configuration) {
|
|
2745
|
+
super(basePath, configuration);
|
|
2746
|
+
this.httpClient = httpClient;
|
|
2747
|
+
}
|
|
2748
|
+
projectRevisionsSearchProjectRevisions(requestParameters, observe = "body", reportProgress = false, options) {
|
|
2749
|
+
const projectId = requestParameters?.projectId;
|
|
2750
|
+
const orderBy = requestParameters?.orderBy;
|
|
2751
|
+
const page = requestParameters?.page;
|
|
2752
|
+
const pageSize = requestParameters?.pageSize;
|
|
2753
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
2754
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, projectId, "ProjectId");
|
|
2755
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, orderBy, "OrderBy");
|
|
2756
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, page, "Page");
|
|
2757
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, pageSize, "PageSize");
|
|
2758
|
+
let localVarHeaders = this.defaultHeaders;
|
|
2759
|
+
// authentication (Bearer) required
|
|
2760
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
2761
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
|
|
2762
|
+
this.configuration.selectHeaderAccept([
|
|
2763
|
+
"text/plain",
|
|
2764
|
+
"application/json",
|
|
2765
|
+
"text/json",
|
|
2766
|
+
]);
|
|
2767
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2768
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
2769
|
+
}
|
|
2770
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
2771
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
2772
|
+
let responseType_ = "json";
|
|
2773
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2774
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
2775
|
+
responseType_ = "text";
|
|
2776
|
+
}
|
|
2777
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2778
|
+
responseType_ = "json";
|
|
2779
|
+
}
|
|
2780
|
+
else {
|
|
2781
|
+
responseType_ = "blob";
|
|
2782
|
+
}
|
|
2783
|
+
}
|
|
2784
|
+
let localVarPath = `/api/project-revisions`;
|
|
2785
|
+
const { basePath, withCredentials } = this.configuration;
|
|
2786
|
+
return this.httpClient.request("get", `${basePath}${localVarPath}`, {
|
|
2787
|
+
context: localVarHttpContext,
|
|
2788
|
+
params: localVarQueryParameters,
|
|
2789
|
+
responseType: responseType_,
|
|
2790
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
2791
|
+
headers: localVarHeaders,
|
|
2792
|
+
observe: observe,
|
|
2793
|
+
transferCache: localVarTransferCache,
|
|
2794
|
+
reportProgress: reportProgress,
|
|
2795
|
+
});
|
|
2796
|
+
}
|
|
2797
|
+
projectRevisionsSetRevisionAsMain(requestParameters, observe = "body", reportProgress = false, options) {
|
|
2798
|
+
const projectRevisionId = requestParameters?.projectRevisionId;
|
|
2799
|
+
if (projectRevisionId === null || projectRevisionId === undefined) {
|
|
2800
|
+
throw new Error("Required parameter projectRevisionId was null or undefined when calling projectRevisionsSetRevisionAsMain.");
|
|
2801
|
+
}
|
|
2802
|
+
let localVarHeaders = this.defaultHeaders;
|
|
2803
|
+
// authentication (Bearer) required
|
|
2804
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
2805
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
2806
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2807
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
2808
|
+
}
|
|
2809
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
2810
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
2811
|
+
let responseType_ = "json";
|
|
2812
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2813
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
2814
|
+
responseType_ = "text";
|
|
2815
|
+
}
|
|
2816
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2817
|
+
responseType_ = "json";
|
|
2818
|
+
}
|
|
2819
|
+
else {
|
|
2820
|
+
responseType_ = "blob";
|
|
2821
|
+
}
|
|
2822
|
+
}
|
|
2823
|
+
let localVarPath = `/api/project-revisions/${this.configuration.encodeParam({ name: "projectRevisionId", value: projectRevisionId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}/set-main`;
|
|
2824
|
+
const { basePath, withCredentials } = this.configuration;
|
|
2825
|
+
return this.httpClient.request("post", `${basePath}${localVarPath}`, {
|
|
2826
|
+
context: localVarHttpContext,
|
|
2827
|
+
responseType: responseType_,
|
|
2828
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
2829
|
+
headers: localVarHeaders,
|
|
2830
|
+
observe: observe,
|
|
2831
|
+
transferCache: localVarTransferCache,
|
|
2832
|
+
reportProgress: reportProgress,
|
|
2833
|
+
});
|
|
2834
|
+
}
|
|
2835
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: ProjectRevisionsApiService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2836
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: ProjectRevisionsApiService, providedIn: "root" });
|
|
2837
|
+
}
|
|
2838
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: ProjectRevisionsApiService, decorators: [{
|
|
2839
|
+
type: Injectable,
|
|
2840
|
+
args: [{
|
|
2841
|
+
providedIn: "root",
|
|
2842
|
+
}]
|
|
2843
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
2844
|
+
type: Optional
|
|
2845
|
+
}, {
|
|
2846
|
+
type: Inject,
|
|
2847
|
+
args: [BASE_PATH]
|
|
2848
|
+
}] }, { type: Configuration, decorators: [{
|
|
2849
|
+
type: Optional
|
|
2850
|
+
}] }] });
|
|
2851
|
+
|
|
2732
2852
|
/**
|
|
2733
2853
|
* RenewAire CORES API
|
|
2734
2854
|
*
|
|
@@ -8110,6 +8230,7 @@ const APIS = [
|
|
|
8110
8230
|
PermissionsApiService,
|
|
8111
8231
|
ProjectLinksApiService,
|
|
8112
8232
|
ProjectNotesApiService,
|
|
8233
|
+
ProjectRevisionsApiService,
|
|
8113
8234
|
ProjectSharingApiService,
|
|
8114
8235
|
ProjectStatusesApiService,
|
|
8115
8236
|
ProjectsApiService,
|
|
@@ -9347,5 +9468,5 @@ function provideApi(configOrBasePath) {
|
|
|
9347
9468
|
* Generated bundle index. Do not edit.
|
|
9348
9469
|
*/
|
|
9349
9470
|
|
|
9350
|
-
export { APIS, AddressCountry, ApiModule, AshraeVersion, AuditEntity, AuditLogsApiService, AuthApiService, BASE_PATH, BuildingCategory, BuildingType, COLLECTION_FORMATS, Configuration, ConstructionOrderType, ControllerProgramReleaseType, ControllerProgramType, ControllerProgramsApiService, CoolingDesignBasis, DesignWeatherMode, FeedbackType, FeedbacksApiService, FileType, GroupCustomerType, GroupType, GroupsApiService, KnownContactsApiService, Language, LeadTimeType, LeadTimesApiService, MaintenanceApiService, OperationType, Permission, PermissionBundlesApiService, PermissionsApiService, ProjectLinksApiService, ProjectNoteType, ProjectNotesApiService, ProjectSharingAccessLevel, ProjectSharingApiService, ProjectStatus, ProjectStatusesApiService, ProjectsApiService, QualifiedSpecificationStatus, RegionLevel, RegionsApiService, RegistrationStatus, RepContactsApiService, RepSalesReportsApiService, RepTerritoriesApiService, RepTerritoryLocationsApiService, RsdRegionsApiService, S3ApiService, StaticFilesApiService, UnitSystem, UserStatus, UserTablesApiService, UsersApiService, UsersManagementApiService, provideApi };
|
|
9471
|
+
export { APIS, AddressCountry, ApiModule, AshraeVersion, AuditEntity, AuditLogsApiService, AuthApiService, BASE_PATH, BuildingCategory, BuildingType, COLLECTION_FORMATS, Configuration, ConstructionOrderType, ControllerProgramReleaseType, ControllerProgramType, ControllerProgramsApiService, CoolingDesignBasis, DesignWeatherMode, FeedbackType, FeedbacksApiService, FileType, GroupCustomerType, GroupType, GroupsApiService, KnownContactsApiService, Language, LeadTimeType, LeadTimesApiService, MaintenanceApiService, OperationType, Permission, PermissionBundlesApiService, PermissionsApiService, ProjectLinksApiService, ProjectNoteType, ProjectNotesApiService, ProjectRevisionsApiService, ProjectSharingAccessLevel, ProjectSharingApiService, ProjectStatus, ProjectStatusesApiService, ProjectsApiService, QualifiedSpecificationStatus, RegionLevel, RegionsApiService, RegistrationStatus, RepContactsApiService, RepSalesReportsApiService, RepTerritoriesApiService, RepTerritoryLocationsApiService, RsdRegionsApiService, S3ApiService, StaticFilesApiService, UnitSystem, UserStatus, UserTablesApiService, UsersApiService, UsersManagementApiService, provideApi };
|
|
9351
9472
|
//# sourceMappingURL=saritasa-renewaire-frontend-sdk.mjs.map
|