@saritasa/renewaire-frontend-sdk 0.362.0 → 0.364.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.362.0
1
+ # @@saritasa/renewaire-frontend-sdk@0.364.0
2
2
 
3
3
  ```bash
4
- npm install @saritasa/renewaire-frontend-sdk@0.362.0 --save
4
+ npm install @saritasa/renewaire-frontend-sdk@0.364.0 --save
5
5
  ```
@@ -4899,6 +4899,179 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.7", ngImpor
4899
4899
  type: Optional
4900
4900
  }] }] });
4901
4901
 
4902
+ /**
4903
+ * RenewAire CORES API
4904
+ *
4905
+ * Contact: renewaire@saritasa.com
4906
+ *
4907
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4908
+ * https://openapi-generator.tech
4909
+ * Do not edit the class manually.
4910
+ */
4911
+ /* tslint:disable:no-unused-variable member-ordering */
4912
+ class PendingRequestsApiService extends BaseService {
4913
+ httpClient;
4914
+ constructor(httpClient, basePath, configuration) {
4915
+ super(basePath, configuration);
4916
+ this.httpClient = httpClient;
4917
+ }
4918
+ pendingRequestsCompletePendingRequest(requestParameters, observe = "body", reportProgress = false, options) {
4919
+ const pendingRequestId = requestParameters?.pendingRequestId;
4920
+ if (pendingRequestId === null || pendingRequestId === undefined) {
4921
+ throw new Error("Required parameter pendingRequestId was null or undefined when calling pendingRequestsCompletePendingRequest.");
4922
+ }
4923
+ let localVarHeaders = this.defaultHeaders;
4924
+ // authentication (Bearer) required
4925
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
4926
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
4927
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
4928
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
4929
+ }
4930
+ const localVarHttpContext = options?.context ?? new HttpContext();
4931
+ const localVarTransferCache = options?.transferCache ?? true;
4932
+ let responseType_ = "json";
4933
+ if (localVarHttpHeaderAcceptSelected) {
4934
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
4935
+ responseType_ = "text";
4936
+ }
4937
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
4938
+ responseType_ = "json";
4939
+ }
4940
+ else {
4941
+ responseType_ = "blob";
4942
+ }
4943
+ }
4944
+ let localVarPath = `/api/pending-requests/${this.configuration.encodeParam({ name: "pendingRequestId", value: pendingRequestId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}/complete`;
4945
+ const { basePath, withCredentials } = this.configuration;
4946
+ return this.httpClient.request("post", `${basePath}${localVarPath}`, {
4947
+ context: localVarHttpContext,
4948
+ responseType: responseType_,
4949
+ ...(withCredentials ? { withCredentials } : {}),
4950
+ headers: localVarHeaders,
4951
+ observe: observe,
4952
+ transferCache: localVarTransferCache,
4953
+ reportProgress: reportProgress,
4954
+ });
4955
+ }
4956
+ pendingRequestsGetPendingRequest(requestParameters, observe = "body", reportProgress = false, options) {
4957
+ const pendingRequestId = requestParameters?.pendingRequestId;
4958
+ if (pendingRequestId === null || pendingRequestId === undefined) {
4959
+ throw new Error("Required parameter pendingRequestId was null or undefined when calling pendingRequestsGetPendingRequest.");
4960
+ }
4961
+ let localVarHeaders = this.defaultHeaders;
4962
+ // authentication (Bearer) required
4963
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
4964
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
4965
+ this.configuration.selectHeaderAccept([
4966
+ "text/plain",
4967
+ "application/json",
4968
+ "text/json",
4969
+ ]);
4970
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
4971
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
4972
+ }
4973
+ const localVarHttpContext = options?.context ?? new HttpContext();
4974
+ const localVarTransferCache = options?.transferCache ?? true;
4975
+ let responseType_ = "json";
4976
+ if (localVarHttpHeaderAcceptSelected) {
4977
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
4978
+ responseType_ = "text";
4979
+ }
4980
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
4981
+ responseType_ = "json";
4982
+ }
4983
+ else {
4984
+ responseType_ = "blob";
4985
+ }
4986
+ }
4987
+ let localVarPath = `/api/pending-requests/${this.configuration.encodeParam({ name: "pendingRequestId", value: pendingRequestId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
4988
+ const { basePath, withCredentials } = this.configuration;
4989
+ return this.httpClient.request("get", `${basePath}${localVarPath}`, {
4990
+ context: localVarHttpContext,
4991
+ responseType: responseType_,
4992
+ ...(withCredentials ? { withCredentials } : {}),
4993
+ headers: localVarHeaders,
4994
+ observe: observe,
4995
+ transferCache: localVarTransferCache,
4996
+ reportProgress: reportProgress,
4997
+ });
4998
+ }
4999
+ pendingRequestsSearchPendingRequests(requestParameters, observe = "body", reportProgress = false, options) {
5000
+ const name = requestParameters?.name;
5001
+ const email = requestParameters?.email;
5002
+ const group = requestParameters?.group;
5003
+ const requestType = requestParameters?.requestType;
5004
+ const status = requestParameters?.status;
5005
+ const excludeCompleted = requestParameters?.excludeCompleted;
5006
+ const orderBy = requestParameters?.orderBy;
5007
+ const page = requestParameters?.page;
5008
+ const pageSize = requestParameters?.pageSize;
5009
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
5010
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, name, "Name");
5011
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, email, "Email");
5012
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, group, "Group");
5013
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, requestType, "RequestType");
5014
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, status, "Status");
5015
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, excludeCompleted, "ExcludeCompleted");
5016
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, orderBy, "OrderBy");
5017
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, page, "Page");
5018
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, pageSize, "PageSize");
5019
+ let localVarHeaders = this.defaultHeaders;
5020
+ // authentication (Bearer) required
5021
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
5022
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
5023
+ this.configuration.selectHeaderAccept([
5024
+ "text/plain",
5025
+ "application/json",
5026
+ "text/json",
5027
+ ]);
5028
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
5029
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
5030
+ }
5031
+ const localVarHttpContext = options?.context ?? new HttpContext();
5032
+ const localVarTransferCache = options?.transferCache ?? true;
5033
+ let responseType_ = "json";
5034
+ if (localVarHttpHeaderAcceptSelected) {
5035
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
5036
+ responseType_ = "text";
5037
+ }
5038
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
5039
+ responseType_ = "json";
5040
+ }
5041
+ else {
5042
+ responseType_ = "blob";
5043
+ }
5044
+ }
5045
+ let localVarPath = `/api/pending-requests`;
5046
+ const { basePath, withCredentials } = this.configuration;
5047
+ return this.httpClient.request("get", `${basePath}${localVarPath}`, {
5048
+ context: localVarHttpContext,
5049
+ params: localVarQueryParameters,
5050
+ responseType: responseType_,
5051
+ ...(withCredentials ? { withCredentials } : {}),
5052
+ headers: localVarHeaders,
5053
+ observe: observe,
5054
+ transferCache: localVarTransferCache,
5055
+ reportProgress: reportProgress,
5056
+ });
5057
+ }
5058
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.7", ngImport: i0, type: PendingRequestsApiService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
5059
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.7", ngImport: i0, type: PendingRequestsApiService, providedIn: "root" });
5060
+ }
5061
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.7", ngImport: i0, type: PendingRequestsApiService, decorators: [{
5062
+ type: Injectable,
5063
+ args: [{
5064
+ providedIn: "root",
5065
+ }]
5066
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
5067
+ type: Optional
5068
+ }, {
5069
+ type: Inject,
5070
+ args: [BASE_PATH]
5071
+ }] }, { type: Configuration, decorators: [{
5072
+ type: Optional
5073
+ }] }] });
5074
+
4902
5075
  /**
4903
5076
  * RenewAire CORES API
4904
5077
  *
@@ -6027,6 +6200,53 @@ class ProjectDownloadsApiService extends BaseService {
6027
6200
  reportProgress: reportProgress,
6028
6201
  });
6029
6202
  }
6203
+ projectDownloadsGetProjectDownloadHistory(requestParameters, observe = "body", reportProgress = false, options) {
6204
+ const revisionId = requestParameters?.revisionId;
6205
+ if (revisionId === null || revisionId === undefined) {
6206
+ throw new Error("Required parameter revisionId was null or undefined when calling projectDownloadsGetProjectDownloadHistory.");
6207
+ }
6208
+ const orderBy = requestParameters?.orderBy;
6209
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
6210
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, orderBy, "orderBy");
6211
+ let localVarHeaders = this.defaultHeaders;
6212
+ // authentication (Bearer) required
6213
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
6214
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
6215
+ this.configuration.selectHeaderAccept([
6216
+ "text/plain",
6217
+ "application/json",
6218
+ "text/json",
6219
+ ]);
6220
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
6221
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
6222
+ }
6223
+ const localVarHttpContext = options?.context ?? new HttpContext();
6224
+ const localVarTransferCache = options?.transferCache ?? true;
6225
+ let responseType_ = "json";
6226
+ if (localVarHttpHeaderAcceptSelected) {
6227
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
6228
+ responseType_ = "text";
6229
+ }
6230
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
6231
+ responseType_ = "json";
6232
+ }
6233
+ else {
6234
+ responseType_ = "blob";
6235
+ }
6236
+ }
6237
+ let localVarPath = `/api/project-downloads/${this.configuration.encodeParam({ name: "revisionId", value: revisionId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}/history`;
6238
+ const { basePath, withCredentials } = this.configuration;
6239
+ return this.httpClient.request("get", `${basePath}${localVarPath}`, {
6240
+ context: localVarHttpContext,
6241
+ params: localVarQueryParameters,
6242
+ responseType: responseType_,
6243
+ ...(withCredentials ? { withCredentials } : {}),
6244
+ headers: localVarHeaders,
6245
+ observe: observe,
6246
+ transferCache: localVarTransferCache,
6247
+ reportProgress: reportProgress,
6248
+ });
6249
+ }
6030
6250
  projectDownloadsGetProjectDownloadsUrl(requestParameters, observe = "body", reportProgress = false, options) {
6031
6251
  const projectDownloadHistoryItemId = requestParameters?.projectDownloadHistoryItemId;
6032
6252
  if (projectDownloadHistoryItemId === null ||
@@ -14573,6 +14793,7 @@ const APIS = [
14573
14793
  LeadTimesApiService,
14574
14794
  MaintenanceApiService,
14575
14795
  PartsApiService,
14796
+ PendingRequestsApiService,
14576
14797
  PermissionBundlesApiService,
14577
14798
  PermissionsApiService,
14578
14799
  PricingApiService,
@@ -15577,6 +15798,53 @@ var ParameterType;
15577
15798
  * Do not edit the class manually.
15578
15799
  */
15579
15800
 
15801
+ /**
15802
+ * RenewAire CORES API
15803
+ *
15804
+ * Contact: renewaire@saritasa.com
15805
+ *
15806
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
15807
+ * https://openapi-generator.tech
15808
+ * Do not edit the class manually.
15809
+ */
15810
+
15811
+ /**
15812
+ * RenewAire CORES API
15813
+ *
15814
+ * Contact: renewaire@saritasa.com
15815
+ *
15816
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
15817
+ * https://openapi-generator.tech
15818
+ * Do not edit the class manually.
15819
+ */
15820
+ /**
15821
+ * Pending request status.<br />PendingRequestStatus<br />0 = Pending<br />1 = Completed
15822
+ */
15823
+ var PendingRequestStatus;
15824
+ (function (PendingRequestStatus) {
15825
+ PendingRequestStatus["Pending"] = "Pending";
15826
+ PendingRequestStatus["Completed"] = "Completed";
15827
+ })(PendingRequestStatus || (PendingRequestStatus = {}));
15828
+
15829
+ /**
15830
+ * RenewAire CORES API
15831
+ *
15832
+ * Contact: renewaire@saritasa.com
15833
+ *
15834
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
15835
+ * https://openapi-generator.tech
15836
+ * Do not edit the class manually.
15837
+ */
15838
+ /**
15839
+ * Pending request type.<br />PendingRequestType<br />0 = CompanyChange<br />1 = EmailChange<br />2 = RepAssignmentChange
15840
+ */
15841
+ var PendingRequestType;
15842
+ (function (PendingRequestType) {
15843
+ PendingRequestType["CompanyChange"] = "CompanyChange";
15844
+ PendingRequestType["EmailChange"] = "EmailChange";
15845
+ PendingRequestType["RepAssignmentChange"] = "RepAssignmentChange";
15846
+ })(PendingRequestType || (PendingRequestType = {}));
15847
+
15580
15848
  /**
15581
15849
  * RenewAire CORES API
15582
15850
  *
@@ -16830,5 +17098,5 @@ function provideApi(configOrBasePath) {
16830
17098
  * Generated bundle index. Do not edit.
16831
17099
  */
16832
17100
 
16833
- export { APIS, AddressCountry, ApiModule, AshraeVersion, AuditEntity, AuditLogsApiService, AuthApiService, BASE_PATH, BombDownloadsApiService, BombMaterialsApiService, BombParametersApiService, BombProductCodesApiService, BombRoutingsApiService, BombSyncApiService, BombValidationsApiService, BuildingCategory, BuildingType, COLLECTION_FORMATS, Configuration, ConstructionOrderType, ControllerProgramReleaseType, ControllerProgramType, ControllerProgramsApiService, CoolingDesignBasis, CsiApiService, DesignWeatherMode, DownloadType, FeedbackType, FeedbacksApiService, FileType, GroupCustomerType, GroupType, GroupsApiService, KnownContactsApiService, Language, LeadTimeType, LeadTimesApiService, LineDownloadFileType, MaintenanceApiService, ModelNumberValidationErrorType, OemCustomerType, OemType, OperationType, OperatorType, ParameterKind, ParameterType, PartsApiService, Permission, PermissionBundlesApiService, PermissionsApiService, PricingApiService, ProjectAccessLevel, ProjectBidStatusType, ProjectBidStatusesApiService, ProjectDiscountStatus, ProjectDiscountType, ProjectDiscountsApiService, ProjectDownloadFileType, ProjectDownloadsApiService, ProjectLineCustomizationStatus, ProjectLineStatus, ProjectLineType, ProjectLinesApiService, ProjectLinksApiService, ProjectLogType, ProjectNoteType, ProjectNotesApiService, ProjectQualifiedSpecificationsApiService, ProjectQuoteLogAccessoriesView, ProjectQuoteMultiplier, ProjectQuotePricing, ProjectQuotesApiService, ProjectRevisionsApiService, ProjectSharingAccessLevel, ProjectSharingApiService, ProjectShippingApiService, ProjectSoldToApiService, ProjectStatus, ProjectStatusesApiService, ProjectsApiService, QualifiedSpecificationStatus, RegionLevel, RegionsApiService, RegistrationStatus, RepContactsApiService, RepDataSource, RepSalesReportsApiService, RepTerritoriesApiService, RepTerritoryLocationsApiService, RsdRegionsApiService, S3ApiService, StaticFilesApiService, UnitSystem, UserStatus, UserTablesApiService, UsersApiService, UsersManagementApiService, provideApi };
17101
+ export { APIS, AddressCountry, ApiModule, AshraeVersion, AuditEntity, AuditLogsApiService, AuthApiService, BASE_PATH, BombDownloadsApiService, BombMaterialsApiService, BombParametersApiService, BombProductCodesApiService, BombRoutingsApiService, BombSyncApiService, BombValidationsApiService, BuildingCategory, BuildingType, COLLECTION_FORMATS, Configuration, ConstructionOrderType, ControllerProgramReleaseType, ControllerProgramType, ControllerProgramsApiService, CoolingDesignBasis, CsiApiService, DesignWeatherMode, DownloadType, FeedbackType, FeedbacksApiService, FileType, GroupCustomerType, GroupType, GroupsApiService, KnownContactsApiService, Language, LeadTimeType, LeadTimesApiService, LineDownloadFileType, MaintenanceApiService, ModelNumberValidationErrorType, OemCustomerType, OemType, OperationType, OperatorType, ParameterKind, ParameterType, PartsApiService, PendingRequestStatus, PendingRequestType, PendingRequestsApiService, Permission, PermissionBundlesApiService, PermissionsApiService, PricingApiService, ProjectAccessLevel, ProjectBidStatusType, ProjectBidStatusesApiService, ProjectDiscountStatus, ProjectDiscountType, ProjectDiscountsApiService, ProjectDownloadFileType, ProjectDownloadsApiService, ProjectLineCustomizationStatus, ProjectLineStatus, ProjectLineType, ProjectLinesApiService, ProjectLinksApiService, ProjectLogType, ProjectNoteType, ProjectNotesApiService, ProjectQualifiedSpecificationsApiService, ProjectQuoteLogAccessoriesView, ProjectQuoteMultiplier, ProjectQuotePricing, ProjectQuotesApiService, ProjectRevisionsApiService, ProjectSharingAccessLevel, ProjectSharingApiService, ProjectShippingApiService, ProjectSoldToApiService, ProjectStatus, ProjectStatusesApiService, ProjectsApiService, QualifiedSpecificationStatus, RegionLevel, RegionsApiService, RegistrationStatus, RepContactsApiService, RepDataSource, RepSalesReportsApiService, RepTerritoriesApiService, RepTerritoryLocationsApiService, RsdRegionsApiService, S3ApiService, StaticFilesApiService, UnitSystem, UserStatus, UserTablesApiService, UsersApiService, UsersManagementApiService, provideApi };
16834
17102
  //# sourceMappingURL=saritasa-renewaire-frontend-sdk.mjs.map