@saritasa/renewaire-frontend-sdk 0.125.0 → 0.127.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.125.0
1
+ # @@saritasa/renewaire-frontend-sdk@0.127.0
2
2
 
3
3
  ```bash
4
- npm install @saritasa/renewaire-frontend-sdk@0.125.0 --save
4
+ npm install @saritasa/renewaire-frontend-sdk@0.127.0 --save
5
5
  ```
@@ -2292,6 +2292,58 @@ class ProjectLinksApiService extends BaseService {
2292
2292
  reportProgress: reportProgress,
2293
2293
  });
2294
2294
  }
2295
+ projectLinksSearchProjectLinks(requestParameters, observe = "body", reportProgress = false, options) {
2296
+ const projectId = requestParameters?.projectId;
2297
+ if (projectId === null || projectId === undefined) {
2298
+ throw new Error("Required parameter projectId was null or undefined when calling projectLinksSearchProjectLinks.");
2299
+ }
2300
+ const orderBy = requestParameters?.orderBy;
2301
+ const page = requestParameters?.page;
2302
+ const pageSize = requestParameters?.pageSize;
2303
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
2304
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, projectId, "ProjectId");
2305
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, orderBy, "OrderBy");
2306
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, page, "Page");
2307
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, pageSize, "PageSize");
2308
+ let localVarHeaders = this.defaultHeaders;
2309
+ // authentication (Bearer) required
2310
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
2311
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
2312
+ this.configuration.selectHeaderAccept([
2313
+ "text/plain",
2314
+ "application/json",
2315
+ "text/json",
2316
+ ]);
2317
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
2318
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
2319
+ }
2320
+ const localVarHttpContext = options?.context ?? new HttpContext();
2321
+ const localVarTransferCache = options?.transferCache ?? true;
2322
+ let responseType_ = "json";
2323
+ if (localVarHttpHeaderAcceptSelected) {
2324
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
2325
+ responseType_ = "text";
2326
+ }
2327
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
2328
+ responseType_ = "json";
2329
+ }
2330
+ else {
2331
+ responseType_ = "blob";
2332
+ }
2333
+ }
2334
+ let localVarPath = `/api/project-links`;
2335
+ const { basePath, withCredentials } = this.configuration;
2336
+ return this.httpClient.request("get", `${basePath}${localVarPath}`, {
2337
+ context: localVarHttpContext,
2338
+ params: localVarQueryParameters,
2339
+ responseType: responseType_,
2340
+ ...(withCredentials ? { withCredentials } : {}),
2341
+ headers: localVarHeaders,
2342
+ observe: observe,
2343
+ transferCache: localVarTransferCache,
2344
+ reportProgress: reportProgress,
2345
+ });
2346
+ }
2295
2347
  projectLinksUpdateProjectLink(requestParameters, observe = "body", reportProgress = false, options) {
2296
2348
  const projectLinkId = requestParameters?.projectLinkId;
2297
2349
  if (projectLinkId === null || projectLinkId === undefined) {
@@ -2677,6 +2729,86 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.7", ngImpor
2677
2729
  type: Optional
2678
2730
  }] }] });
2679
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
+
2680
2812
  /**
2681
2813
  * RenewAire CORES API
2682
2814
  *
@@ -7978,6 +8110,7 @@ const APIS = [
7978
8110
  PermissionsApiService,
7979
8111
  ProjectLinksApiService,
7980
8112
  ProjectNotesApiService,
8113
+ ProjectSharingApiService,
7981
8114
  ProjectStatusesApiService,
7982
8115
  ProjectsApiService,
7983
8116
  RegionsApiService,
@@ -8711,6 +8844,24 @@ var ProjectNoteType;
8711
8844
  * Do not edit the class manually.
8712
8845
  */
8713
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
+
8714
8865
  /**
8715
8866
  * RenewAire CORES API
8716
8867
  *
@@ -8745,6 +8896,27 @@ var ProjectStatus;
8745
8896
  ProjectStatus["Archived"] = "Archived";
8746
8897
  })(ProjectStatus || (ProjectStatus = {}));
8747
8898
 
8899
+ /**
8900
+ * RenewAire CORES API
8901
+ *
8902
+ * Contact: renewaire@saritasa.com
8903
+ *
8904
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
8905
+ * https://openapi-generator.tech
8906
+ * Do not edit the class manually.
8907
+ */
8908
+ /**
8909
+ * QS status.<br />QualifiedSpecificationStatus<br />0 = Approved<br />1 = ApprovedNoDiscount<br />2 = MoreInfoNeeded<br />3 = Rejected<br />4 = Cancelled
8910
+ */
8911
+ var QualifiedSpecificationStatus;
8912
+ (function (QualifiedSpecificationStatus) {
8913
+ QualifiedSpecificationStatus["Approved"] = "Approved";
8914
+ QualifiedSpecificationStatus["ApprovedNoDiscount"] = "ApprovedNoDiscount";
8915
+ QualifiedSpecificationStatus["MoreInfoNeeded"] = "MoreInfoNeeded";
8916
+ QualifiedSpecificationStatus["Rejected"] = "Rejected";
8917
+ QualifiedSpecificationStatus["Cancelled"] = "Cancelled";
8918
+ })(QualifiedSpecificationStatus || (QualifiedSpecificationStatus = {}));
8919
+
8748
8920
  /**
8749
8921
  * RenewAire CORES API
8750
8922
  *
@@ -9175,5 +9347,5 @@ function provideApi(configOrBasePath) {
9175
9347
  * Generated bundle index. Do not edit.
9176
9348
  */
9177
9349
 
9178
- 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, 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 };
9179
9351
  //# sourceMappingURL=saritasa-renewaire-frontend-sdk.mjs.map