@saritasa/renewaire-frontend-sdk 0.128.0 → 0.129.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,77 @@ 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
|
+
projectRevisionsSetRevisionAsMain(requestParameters, observe = "body", reportProgress = false, options) {
|
|
2749
|
+
const projectRevisionId = requestParameters?.projectRevisionId;
|
|
2750
|
+
if (projectRevisionId === null || projectRevisionId === undefined) {
|
|
2751
|
+
throw new Error("Required parameter projectRevisionId was null or undefined when calling projectRevisionsSetRevisionAsMain.");
|
|
2752
|
+
}
|
|
2753
|
+
let localVarHeaders = this.defaultHeaders;
|
|
2754
|
+
// authentication (Bearer) required
|
|
2755
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
2756
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
2757
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2758
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
2759
|
+
}
|
|
2760
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
2761
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
2762
|
+
let responseType_ = "json";
|
|
2763
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2764
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
2765
|
+
responseType_ = "text";
|
|
2766
|
+
}
|
|
2767
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2768
|
+
responseType_ = "json";
|
|
2769
|
+
}
|
|
2770
|
+
else {
|
|
2771
|
+
responseType_ = "blob";
|
|
2772
|
+
}
|
|
2773
|
+
}
|
|
2774
|
+
let localVarPath = `/api/project-revisions/${this.configuration.encodeParam({ name: "projectRevisionId", value: projectRevisionId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}/set-main`;
|
|
2775
|
+
const { basePath, withCredentials } = this.configuration;
|
|
2776
|
+
return this.httpClient.request("post", `${basePath}${localVarPath}`, {
|
|
2777
|
+
context: localVarHttpContext,
|
|
2778
|
+
responseType: responseType_,
|
|
2779
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
2780
|
+
headers: localVarHeaders,
|
|
2781
|
+
observe: observe,
|
|
2782
|
+
transferCache: localVarTransferCache,
|
|
2783
|
+
reportProgress: reportProgress,
|
|
2784
|
+
});
|
|
2785
|
+
}
|
|
2786
|
+
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 });
|
|
2787
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: ProjectRevisionsApiService, providedIn: "root" });
|
|
2788
|
+
}
|
|
2789
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: ProjectRevisionsApiService, decorators: [{
|
|
2790
|
+
type: Injectable,
|
|
2791
|
+
args: [{
|
|
2792
|
+
providedIn: "root",
|
|
2793
|
+
}]
|
|
2794
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
2795
|
+
type: Optional
|
|
2796
|
+
}, {
|
|
2797
|
+
type: Inject,
|
|
2798
|
+
args: [BASE_PATH]
|
|
2799
|
+
}] }, { type: Configuration, decorators: [{
|
|
2800
|
+
type: Optional
|
|
2801
|
+
}] }] });
|
|
2802
|
+
|
|
2732
2803
|
/**
|
|
2733
2804
|
* RenewAire CORES API
|
|
2734
2805
|
*
|
|
@@ -8110,6 +8181,7 @@ const APIS = [
|
|
|
8110
8181
|
PermissionsApiService,
|
|
8111
8182
|
ProjectLinksApiService,
|
|
8112
8183
|
ProjectNotesApiService,
|
|
8184
|
+
ProjectRevisionsApiService,
|
|
8113
8185
|
ProjectSharingApiService,
|
|
8114
8186
|
ProjectStatusesApiService,
|
|
8115
8187
|
ProjectsApiService,
|
|
@@ -9347,5 +9419,5 @@ function provideApi(configOrBasePath) {
|
|
|
9347
9419
|
* Generated bundle index. Do not edit.
|
|
9348
9420
|
*/
|
|
9349
9421
|
|
|
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 };
|
|
9422
|
+
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
9423
|
//# sourceMappingURL=saritasa-renewaire-frontend-sdk.mjs.map
|