@saritasa/renewaire-frontend-sdk 0.126.0 → 0.128.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.126.0
1
+ # @@saritasa/renewaire-frontend-sdk@0.128.0
2
2
 
3
3
  ```bash
4
- npm install @saritasa/renewaire-frontend-sdk@0.126.0 --save
4
+ npm install @saritasa/renewaire-frontend-sdk@0.128.0 --save
5
5
  ```
@@ -2729,6 +2729,86 @@ 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 ProjectSharingApiService extends BaseService {
2743
+ httpClient;
2744
+ constructor(httpClient, basePath, configuration) {
2745
+ super(basePath, configuration);
2746
+ this.httpClient = httpClient;
2747
+ }
2748
+ projectSharingShareProject(requestParameters, observe = "body", reportProgress = false, options) {
2749
+ const shareProjectCommand = requestParameters?.shareProjectCommand;
2750
+ let localVarHeaders = this.defaultHeaders;
2751
+ // authentication (Bearer) required
2752
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
2753
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
2754
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
2755
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
2756
+ }
2757
+ const localVarHttpContext = options?.context ?? new HttpContext();
2758
+ const localVarTransferCache = options?.transferCache ?? true;
2759
+ // to determine the Content-Type header
2760
+ const consumes = [
2761
+ "application/json-patch+json",
2762
+ "application/json",
2763
+ "text/json",
2764
+ "application/*+json",
2765
+ ];
2766
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
2767
+ if (httpContentTypeSelected !== undefined) {
2768
+ localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
2769
+ }
2770
+ let responseType_ = "json";
2771
+ if (localVarHttpHeaderAcceptSelected) {
2772
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
2773
+ responseType_ = "text";
2774
+ }
2775
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
2776
+ responseType_ = "json";
2777
+ }
2778
+ else {
2779
+ responseType_ = "blob";
2780
+ }
2781
+ }
2782
+ let localVarPath = `/api/project-sharing`;
2783
+ const { basePath, withCredentials } = this.configuration;
2784
+ return this.httpClient.request("post", `${basePath}${localVarPath}`, {
2785
+ context: localVarHttpContext,
2786
+ body: shareProjectCommand,
2787
+ responseType: responseType_,
2788
+ ...(withCredentials ? { withCredentials } : {}),
2789
+ headers: localVarHeaders,
2790
+ observe: observe,
2791
+ transferCache: localVarTransferCache,
2792
+ reportProgress: reportProgress,
2793
+ });
2794
+ }
2795
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: ProjectSharingApiService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
2796
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: ProjectSharingApiService, providedIn: "root" });
2797
+ }
2798
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: ProjectSharingApiService, decorators: [{
2799
+ type: Injectable,
2800
+ args: [{
2801
+ providedIn: "root",
2802
+ }]
2803
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
2804
+ type: Optional
2805
+ }, {
2806
+ type: Inject,
2807
+ args: [BASE_PATH]
2808
+ }] }, { type: Configuration, decorators: [{
2809
+ type: Optional
2810
+ }] }] });
2811
+
2732
2812
  /**
2733
2813
  * RenewAire CORES API
2734
2814
  *
@@ -8030,6 +8110,7 @@ const APIS = [
8030
8110
  PermissionsApiService,
8031
8111
  ProjectLinksApiService,
8032
8112
  ProjectNotesApiService,
8113
+ ProjectSharingApiService,
8033
8114
  ProjectStatusesApiService,
8034
8115
  ProjectsApiService,
8035
8116
  RegionsApiService,
@@ -8763,6 +8844,24 @@ var ProjectNoteType;
8763
8844
  * Do not edit the class manually.
8764
8845
  */
8765
8846
 
8847
+ /**
8848
+ * RenewAire CORES API
8849
+ *
8850
+ * Contact: renewaire@saritasa.com
8851
+ *
8852
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
8853
+ * https://openapi-generator.tech
8854
+ * Do not edit the class manually.
8855
+ */
8856
+ /**
8857
+ * Project sharing access level.<br />ProjectSharingAccessLevel<br />0 = ReadOnly<br />1 = Edit
8858
+ */
8859
+ var ProjectSharingAccessLevel;
8860
+ (function (ProjectSharingAccessLevel) {
8861
+ ProjectSharingAccessLevel["ReadOnly"] = "ReadOnly";
8862
+ ProjectSharingAccessLevel["Edit"] = "Edit";
8863
+ })(ProjectSharingAccessLevel || (ProjectSharingAccessLevel = {}));
8864
+
8766
8865
  /**
8767
8866
  * RenewAire CORES API
8768
8867
  *
@@ -9248,5 +9347,5 @@ function provideApi(configOrBasePath) {
9248
9347
  * Generated bundle index. Do not edit.
9249
9348
  */
9250
9349
 
9251
- 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, ProjectStatus, ProjectStatusesApiService, ProjectsApiService, QualifiedSpecificationStatus, RegionLevel, RegionsApiService, RegistrationStatus, RepContactsApiService, RepSalesReportsApiService, RepTerritoriesApiService, RepTerritoryLocationsApiService, RsdRegionsApiService, S3ApiService, StaticFilesApiService, UnitSystem, UserStatus, UserTablesApiService, UsersApiService, UsersManagementApiService, provideApi };
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 };
9252
9351
  //# sourceMappingURL=saritasa-renewaire-frontend-sdk.mjs.map