@saritasa/renewaire-frontend-sdk 0.216.0 → 0.218.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.216.0
1
+ # @@saritasa/renewaire-frontend-sdk@0.218.0
2
2
 
3
3
  ```bash
4
- npm install @saritasa/renewaire-frontend-sdk@0.216.0 --save
4
+ npm install @saritasa/renewaire-frontend-sdk@0.218.0 --save
5
5
  ```
@@ -4687,6 +4687,174 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
4687
4687
  type: Optional
4688
4688
  }] }] });
4689
4689
 
4690
+ /**
4691
+ * RenewAire CORES API
4692
+ *
4693
+ * Contact: renewaire@saritasa.com
4694
+ *
4695
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4696
+ * https://openapi-generator.tech
4697
+ * Do not edit the class manually.
4698
+ */
4699
+ /* tslint:disable:no-unused-variable member-ordering */
4700
+ class ProjectQualifiedSpecificationsApiService extends BaseService {
4701
+ httpClient;
4702
+ constructor(httpClient, basePath, configuration) {
4703
+ super(basePath, configuration);
4704
+ this.httpClient = httpClient;
4705
+ }
4706
+ projectQualifiedSpecificationGetQualifiedSpecificationAttachmentDownloadUrl(requestParameters, observe = "body", reportProgress = false, options) {
4707
+ const projectRevisionId = requestParameters?.projectRevisionId;
4708
+ if (projectRevisionId === null || projectRevisionId === undefined) {
4709
+ throw new Error("Required parameter projectRevisionId was null or undefined when calling projectQualifiedSpecificationGetQualifiedSpecificationAttachmentDownloadUrl.");
4710
+ }
4711
+ const attachmentId = requestParameters?.attachmentId;
4712
+ if (attachmentId === null || attachmentId === undefined) {
4713
+ throw new Error("Required parameter attachmentId was null or undefined when calling projectQualifiedSpecificationGetQualifiedSpecificationAttachmentDownloadUrl.");
4714
+ }
4715
+ let localVarHeaders = this.defaultHeaders;
4716
+ // authentication (Bearer) required
4717
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
4718
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
4719
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
4720
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
4721
+ }
4722
+ const localVarHttpContext = options?.context ?? new HttpContext();
4723
+ const localVarTransferCache = options?.transferCache ?? true;
4724
+ let responseType_ = "json";
4725
+ if (localVarHttpHeaderAcceptSelected) {
4726
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
4727
+ responseType_ = "text";
4728
+ }
4729
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
4730
+ responseType_ = "json";
4731
+ }
4732
+ else {
4733
+ responseType_ = "blob";
4734
+ }
4735
+ }
4736
+ let localVarPath = `/api/project-qualified-specifications/${this.configuration.encodeParam({ name: "projectRevisionId", value: projectRevisionId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}/attachments/${this.configuration.encodeParam({ name: "attachmentId", value: attachmentId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
4737
+ const { basePath, withCredentials } = this.configuration;
4738
+ return this.httpClient.request("get", `${basePath}${localVarPath}`, {
4739
+ context: localVarHttpContext,
4740
+ responseType: responseType_,
4741
+ ...(withCredentials ? { withCredentials } : {}),
4742
+ headers: localVarHeaders,
4743
+ observe: observe,
4744
+ transferCache: localVarTransferCache,
4745
+ reportProgress: reportProgress,
4746
+ });
4747
+ }
4748
+ projectQualifiedSpecificationGetQualifiedSpecificationAttachmentPreviewUrl(requestParameters, observe = "body", reportProgress = false, options) {
4749
+ const projectRevisionId = requestParameters?.projectRevisionId;
4750
+ if (projectRevisionId === null || projectRevisionId === undefined) {
4751
+ throw new Error("Required parameter projectRevisionId was null or undefined when calling projectQualifiedSpecificationGetQualifiedSpecificationAttachmentPreviewUrl.");
4752
+ }
4753
+ const attachmentId = requestParameters?.attachmentId;
4754
+ if (attachmentId === null || attachmentId === undefined) {
4755
+ throw new Error("Required parameter attachmentId was null or undefined when calling projectQualifiedSpecificationGetQualifiedSpecificationAttachmentPreviewUrl.");
4756
+ }
4757
+ let localVarHeaders = this.defaultHeaders;
4758
+ // authentication (Bearer) required
4759
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
4760
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
4761
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
4762
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
4763
+ }
4764
+ const localVarHttpContext = options?.context ?? new HttpContext();
4765
+ const localVarTransferCache = options?.transferCache ?? true;
4766
+ let responseType_ = "json";
4767
+ if (localVarHttpHeaderAcceptSelected) {
4768
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
4769
+ responseType_ = "text";
4770
+ }
4771
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
4772
+ responseType_ = "json";
4773
+ }
4774
+ else {
4775
+ responseType_ = "blob";
4776
+ }
4777
+ }
4778
+ let localVarPath = `/api/project-qualified-specifications/${this.configuration.encodeParam({ name: "projectRevisionId", value: projectRevisionId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}/attachments/${this.configuration.encodeParam({ name: "attachmentId", value: attachmentId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}/preview`;
4779
+ const { basePath, withCredentials } = this.configuration;
4780
+ return this.httpClient.request("get", `${basePath}${localVarPath}`, {
4781
+ context: localVarHttpContext,
4782
+ responseType: responseType_,
4783
+ ...(withCredentials ? { withCredentials } : {}),
4784
+ headers: localVarHeaders,
4785
+ observe: observe,
4786
+ transferCache: localVarTransferCache,
4787
+ reportProgress: reportProgress,
4788
+ });
4789
+ }
4790
+ projectQualifiedSpecificationSubmitQualifiedSpecification(requestParameters, observe = "body", reportProgress = false, options) {
4791
+ const projectRevisionId = requestParameters?.projectRevisionId;
4792
+ if (projectRevisionId === null || projectRevisionId === undefined) {
4793
+ throw new Error("Required parameter projectRevisionId was null or undefined when calling projectQualifiedSpecificationSubmitQualifiedSpecification.");
4794
+ }
4795
+ const saveQualifiedSpecificationDto = requestParameters?.saveQualifiedSpecificationDto;
4796
+ let localVarHeaders = this.defaultHeaders;
4797
+ // authentication (Bearer) required
4798
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
4799
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
4800
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
4801
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
4802
+ }
4803
+ const localVarHttpContext = options?.context ?? new HttpContext();
4804
+ const localVarTransferCache = options?.transferCache ?? true;
4805
+ // to determine the Content-Type header
4806
+ const consumes = [
4807
+ "application/json-patch+json",
4808
+ "application/json",
4809
+ "text/json",
4810
+ "application/*+json",
4811
+ ];
4812
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
4813
+ if (httpContentTypeSelected !== undefined) {
4814
+ localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
4815
+ }
4816
+ let responseType_ = "json";
4817
+ if (localVarHttpHeaderAcceptSelected) {
4818
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
4819
+ responseType_ = "text";
4820
+ }
4821
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
4822
+ responseType_ = "json";
4823
+ }
4824
+ else {
4825
+ responseType_ = "blob";
4826
+ }
4827
+ }
4828
+ let localVarPath = `/api/project-qualified-specifications/${this.configuration.encodeParam({ name: "projectRevisionId", value: projectRevisionId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}`;
4829
+ const { basePath, withCredentials } = this.configuration;
4830
+ return this.httpClient.request("post", `${basePath}${localVarPath}`, {
4831
+ context: localVarHttpContext,
4832
+ body: saveQualifiedSpecificationDto,
4833
+ responseType: responseType_,
4834
+ ...(withCredentials ? { withCredentials } : {}),
4835
+ headers: localVarHeaders,
4836
+ observe: observe,
4837
+ transferCache: localVarTransferCache,
4838
+ reportProgress: reportProgress,
4839
+ });
4840
+ }
4841
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ProjectQualifiedSpecificationsApiService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
4842
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ProjectQualifiedSpecificationsApiService, providedIn: "root" });
4843
+ }
4844
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ProjectQualifiedSpecificationsApiService, decorators: [{
4845
+ type: Injectable,
4846
+ args: [{
4847
+ providedIn: "root",
4848
+ }]
4849
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
4850
+ type: Optional
4851
+ }, {
4852
+ type: Inject,
4853
+ args: [BASE_PATH]
4854
+ }] }, { type: Configuration, decorators: [{
4855
+ type: Optional
4856
+ }] }] });
4857
+
4690
4858
  /**
4691
4859
  * RenewAire CORES API
4692
4860
  *
@@ -4803,6 +4971,10 @@ class ProjectRevisionsApiService extends BaseService {
4803
4971
  if (projectRevisionId === null || projectRevisionId === undefined) {
4804
4972
  throw new Error("Required parameter projectRevisionId was null or undefined when calling projectRevisionsGetProjectRevisionLogs.");
4805
4973
  }
4974
+ const type = requestParameters?.type;
4975
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
4976
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, projectRevisionId, "ProjectRevisionId");
4977
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, type, "Type");
4806
4978
  let localVarHeaders = this.defaultHeaders;
4807
4979
  // authentication (Bearer) required
4808
4980
  localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
@@ -4829,10 +5001,11 @@ class ProjectRevisionsApiService extends BaseService {
4829
5001
  responseType_ = "blob";
4830
5002
  }
4831
5003
  }
4832
- let localVarPath = `/api/project-revisions/${this.configuration.encodeParam({ name: "projectRevisionId", value: projectRevisionId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}/logs`;
5004
+ let localVarPath = `/api/project-revisions/logs`;
4833
5005
  const { basePath, withCredentials } = this.configuration;
4834
5006
  return this.httpClient.request("get", `${basePath}${localVarPath}`, {
4835
5007
  context: localVarHttpContext,
5008
+ params: localVarQueryParameters,
4836
5009
  responseType: responseType_,
4837
5010
  ...(withCredentials ? { withCredentials } : {}),
4838
5011
  headers: localVarHeaders,
@@ -11001,6 +11174,7 @@ const APIS = [
11001
11174
  ProjectBidStatusesApiService,
11002
11175
  ProjectLinksApiService,
11003
11176
  ProjectNotesApiService,
11177
+ ProjectQualifiedSpecificationsApiService,
11004
11178
  ProjectRevisionsApiService,
11005
11179
  ProjectSharingApiService,
11006
11180
  ProjectShippingApiService,
@@ -11461,7 +11635,7 @@ var FeedbackType;
11461
11635
  * Do not edit the class manually.
11462
11636
  */
11463
11637
  /**
11464
- * File type.<br />FileType<br />0 = RsdRegionDocument<br />1 = ControllerProgram<br />2 = RepSalesReport<br />3 = ProjectNoteAttachment<br />4 = BidStatusAttachment<br />5 = SchematicLayerFile
11638
+ * File type.<br />FileType<br />0 = RsdRegionDocument<br />1 = ControllerProgram<br />2 = RepSalesReport<br />3 = ProjectNoteAttachment<br />4 = BidStatusAttachment<br />5 = SchematicLayerFile<br />6 = QualifiedSpecification
11465
11639
  */
11466
11640
  var FileType;
11467
11641
  (function (FileType) {
@@ -11471,6 +11645,7 @@ var FileType;
11471
11645
  FileType["ProjectNoteAttachment"] = "ProjectNoteAttachment";
11472
11646
  FileType["BidStatusAttachment"] = "BidStatusAttachment";
11473
11647
  FileType["SchematicLayerFile"] = "SchematicLayerFile";
11648
+ FileType["QualifiedSpecification"] = "QualifiedSpecification";
11474
11649
  })(FileType || (FileType = {}));
11475
11650
 
11476
11651
  /**
@@ -11975,12 +12150,13 @@ var ProjectBidStatusType;
11975
12150
  * Do not edit the class manually.
11976
12151
  */
11977
12152
  /**
11978
- * Project log type.<br />ProjectLogType<br />0 = StatusChange<br />1 = Save
12153
+ * Project log type.<br />ProjectLogType<br />0 = StatusChange<br />1 = Save<br />2 = QualifiedSpecification
11979
12154
  */
11980
12155
  var ProjectLogType;
11981
12156
  (function (ProjectLogType) {
11982
12157
  ProjectLogType["StatusChange"] = "StatusChange";
11983
12158
  ProjectLogType["Save"] = "Save";
12159
+ ProjectLogType["QualifiedSpecification"] = "QualifiedSpecification";
11984
12160
  })(ProjectLogType || (ProjectLogType = {}));
11985
12161
 
11986
12162
  /**
@@ -12636,5 +12812,5 @@ function provideApi(configOrBasePath) {
12636
12812
  * Generated bundle index. Do not edit.
12637
12813
  */
12638
12814
 
12639
- export { APIS, AddressCountry, ApiModule, AshraeVersion, AuditEntity, AuditLogsApiService, AuthApiService, BASE_PATH, BombMaterialsApiService, BombParametersApiService, BombRoutingsApiService, BombSchematicsApiService, BombValidationsApiService, BuildingCategory, BuildingType, COLLECTION_FORMATS, Configuration, ConstructionOrderType, ControllerProgramReleaseType, ControllerProgramType, ControllerProgramsApiService, CoolingDesignBasis, DesignWeatherMode, FeedbackType, FeedbacksApiService, FileType, GroupCustomerType, GroupType, GroupsApiService, KnownContactsApiService, Language, LeadTimeType, LeadTimesApiService, MaintenanceApiService, ModelNumberValidationErrorType, OperationType, OperatorType, ParameterKind, ParameterType, Permission, PermissionBundlesApiService, PermissionsApiService, ProjectAccessLevel, ProjectBidStatusType, ProjectBidStatusesApiService, ProjectLinksApiService, ProjectLogType, ProjectNoteType, ProjectNotesApiService, ProjectRevisionsApiService, ProjectSharingAccessLevel, ProjectSharingApiService, ProjectShippingApiService, ProjectSoldToApiService, ProjectStatus, ProjectStatusesApiService, ProjectsApiService, QualifiedSpecificationStatus, RegionLevel, RegionsApiService, RegistrationStatus, RepContactsApiService, RepSalesReportsApiService, RepTerritoriesApiService, RepTerritoryLocationsApiService, RsdRegionsApiService, S3ApiService, StaticFilesApiService, UnitSystem, UserStatus, UserTablesApiService, UsersApiService, UsersManagementApiService, provideApi };
12815
+ export { APIS, AddressCountry, ApiModule, AshraeVersion, AuditEntity, AuditLogsApiService, AuthApiService, BASE_PATH, BombMaterialsApiService, BombParametersApiService, BombRoutingsApiService, BombSchematicsApiService, BombValidationsApiService, BuildingCategory, BuildingType, COLLECTION_FORMATS, Configuration, ConstructionOrderType, ControllerProgramReleaseType, ControllerProgramType, ControllerProgramsApiService, CoolingDesignBasis, DesignWeatherMode, FeedbackType, FeedbacksApiService, FileType, GroupCustomerType, GroupType, GroupsApiService, KnownContactsApiService, Language, LeadTimeType, LeadTimesApiService, MaintenanceApiService, ModelNumberValidationErrorType, OperationType, OperatorType, ParameterKind, ParameterType, Permission, PermissionBundlesApiService, PermissionsApiService, ProjectAccessLevel, ProjectBidStatusType, ProjectBidStatusesApiService, ProjectLinksApiService, ProjectLogType, ProjectNoteType, ProjectNotesApiService, ProjectQualifiedSpecificationsApiService, ProjectRevisionsApiService, ProjectSharingAccessLevel, ProjectSharingApiService, ProjectShippingApiService, ProjectSoldToApiService, ProjectStatus, ProjectStatusesApiService, ProjectsApiService, QualifiedSpecificationStatus, RegionLevel, RegionsApiService, RegistrationStatus, RepContactsApiService, RepSalesReportsApiService, RepTerritoriesApiService, RepTerritoryLocationsApiService, RsdRegionsApiService, S3ApiService, StaticFilesApiService, UnitSystem, UserStatus, UserTablesApiService, UsersApiService, UsersManagementApiService, provideApi };
12640
12816
  //# sourceMappingURL=saritasa-renewaire-frontend-sdk.mjs.map