@saritasa/renewaire-frontend-sdk 0.234.0 → 0.237.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.234.0
1
+ # @@saritasa/renewaire-frontend-sdk@0.237.0
2
2
 
3
3
  ```bash
4
- npm install @saritasa/renewaire-frontend-sdk@0.234.0 --save
4
+ npm install @saritasa/renewaire-frontend-sdk@0.237.0 --save
5
5
  ```
@@ -4314,6 +4314,141 @@ class ProjectDiscountsApiService extends BaseService {
4314
4314
  reportProgress: reportProgress,
4315
4315
  });
4316
4316
  }
4317
+ projectDiscountsGetDiscountAttachmentDownloadUrl(requestParameters, observe = "body", reportProgress = false, options) {
4318
+ const projectDiscountId = requestParameters?.projectDiscountId;
4319
+ if (projectDiscountId === null || projectDiscountId === undefined) {
4320
+ throw new Error("Required parameter projectDiscountId was null or undefined when calling projectDiscountsGetDiscountAttachmentDownloadUrl.");
4321
+ }
4322
+ const attachmentId = requestParameters?.attachmentId;
4323
+ if (attachmentId === null || attachmentId === undefined) {
4324
+ throw new Error("Required parameter attachmentId was null or undefined when calling projectDiscountsGetDiscountAttachmentDownloadUrl.");
4325
+ }
4326
+ let localVarHeaders = this.defaultHeaders;
4327
+ // authentication (Bearer) required
4328
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
4329
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
4330
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
4331
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
4332
+ }
4333
+ const localVarHttpContext = options?.context ?? new HttpContext();
4334
+ const localVarTransferCache = options?.transferCache ?? true;
4335
+ let responseType_ = "json";
4336
+ if (localVarHttpHeaderAcceptSelected) {
4337
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
4338
+ responseType_ = "text";
4339
+ }
4340
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
4341
+ responseType_ = "json";
4342
+ }
4343
+ else {
4344
+ responseType_ = "blob";
4345
+ }
4346
+ }
4347
+ let localVarPath = `/api/project-discounts/${this.configuration.encodeParam({ name: "projectDiscountId", value: projectDiscountId, 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" })}`;
4348
+ const { basePath, withCredentials } = this.configuration;
4349
+ return this.httpClient.request("get", `${basePath}${localVarPath}`, {
4350
+ context: localVarHttpContext,
4351
+ responseType: responseType_,
4352
+ ...(withCredentials ? { withCredentials } : {}),
4353
+ headers: localVarHeaders,
4354
+ observe: observe,
4355
+ transferCache: localVarTransferCache,
4356
+ reportProgress: reportProgress,
4357
+ });
4358
+ }
4359
+ projectDiscountsGetDiscountAttachmentPreviewUrl(requestParameters, observe = "body", reportProgress = false, options) {
4360
+ const projectDiscountId = requestParameters?.projectDiscountId;
4361
+ if (projectDiscountId === null || projectDiscountId === undefined) {
4362
+ throw new Error("Required parameter projectDiscountId was null or undefined when calling projectDiscountsGetDiscountAttachmentPreviewUrl.");
4363
+ }
4364
+ const attachmentId = requestParameters?.attachmentId;
4365
+ if (attachmentId === null || attachmentId === undefined) {
4366
+ throw new Error("Required parameter attachmentId was null or undefined when calling projectDiscountsGetDiscountAttachmentPreviewUrl.");
4367
+ }
4368
+ let localVarHeaders = this.defaultHeaders;
4369
+ // authentication (Bearer) required
4370
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
4371
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
4372
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
4373
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
4374
+ }
4375
+ const localVarHttpContext = options?.context ?? new HttpContext();
4376
+ const localVarTransferCache = options?.transferCache ?? true;
4377
+ let responseType_ = "json";
4378
+ if (localVarHttpHeaderAcceptSelected) {
4379
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
4380
+ responseType_ = "text";
4381
+ }
4382
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
4383
+ responseType_ = "json";
4384
+ }
4385
+ else {
4386
+ responseType_ = "blob";
4387
+ }
4388
+ }
4389
+ let localVarPath = `/api/project-discounts/${this.configuration.encodeParam({ name: "projectDiscountId", value: projectDiscountId, 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`;
4390
+ const { basePath, withCredentials } = this.configuration;
4391
+ return this.httpClient.request("get", `${basePath}${localVarPath}`, {
4392
+ context: localVarHttpContext,
4393
+ responseType: responseType_,
4394
+ ...(withCredentials ? { withCredentials } : {}),
4395
+ headers: localVarHeaders,
4396
+ observe: observe,
4397
+ transferCache: localVarTransferCache,
4398
+ reportProgress: reportProgress,
4399
+ });
4400
+ }
4401
+ projectDiscountsReviewProjectDiscount(requestParameters, observe = "body", reportProgress = false, options) {
4402
+ const projectDiscountId = requestParameters?.projectDiscountId;
4403
+ if (projectDiscountId === null || projectDiscountId === undefined) {
4404
+ throw new Error("Required parameter projectDiscountId was null or undefined when calling projectDiscountsReviewProjectDiscount.");
4405
+ }
4406
+ const reviewProjectDiscountDto = requestParameters?.reviewProjectDiscountDto;
4407
+ let localVarHeaders = this.defaultHeaders;
4408
+ // authentication (Bearer) required
4409
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
4410
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
4411
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
4412
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
4413
+ }
4414
+ const localVarHttpContext = options?.context ?? new HttpContext();
4415
+ const localVarTransferCache = options?.transferCache ?? true;
4416
+ // to determine the Content-Type header
4417
+ const consumes = [
4418
+ "application/json-patch+json",
4419
+ "application/json",
4420
+ "text/json",
4421
+ "application/*+json",
4422
+ ];
4423
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
4424
+ if (httpContentTypeSelected !== undefined) {
4425
+ localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
4426
+ }
4427
+ let responseType_ = "json";
4428
+ if (localVarHttpHeaderAcceptSelected) {
4429
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
4430
+ responseType_ = "text";
4431
+ }
4432
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
4433
+ responseType_ = "json";
4434
+ }
4435
+ else {
4436
+ responseType_ = "blob";
4437
+ }
4438
+ }
4439
+ let localVarPath = `/api/project-discounts/${this.configuration.encodeParam({ name: "projectDiscountId", value: projectDiscountId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}/review`;
4440
+ const { basePath, withCredentials } = this.configuration;
4441
+ return this.httpClient.request("post", `${basePath}${localVarPath}`, {
4442
+ context: localVarHttpContext,
4443
+ body: reviewProjectDiscountDto,
4444
+ responseType: responseType_,
4445
+ ...(withCredentials ? { withCredentials } : {}),
4446
+ headers: localVarHeaders,
4447
+ observe: observe,
4448
+ transferCache: localVarTransferCache,
4449
+ reportProgress: reportProgress,
4450
+ });
4451
+ }
4317
4452
  projectDiscountsUpdateProjectDiscount(requestParameters, observe = "body", reportProgress = false, options) {
4318
4453
  const projectDiscountId = requestParameters?.projectDiscountId;
4319
4454
  if (projectDiscountId === null || projectDiscountId === undefined) {
@@ -4407,7 +4542,12 @@ class ProjectLinesApiService extends BaseService {
4407
4542
  let localVarHeaders = this.defaultHeaders;
4408
4543
  // authentication (Bearer) required
4409
4544
  localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
4410
- const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
4545
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
4546
+ this.configuration.selectHeaderAccept([
4547
+ "text/plain",
4548
+ "application/json",
4549
+ "text/json",
4550
+ ]);
4411
4551
  if (localVarHttpHeaderAcceptSelected !== undefined) {
4412
4552
  localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
4413
4553
  }
@@ -4449,6 +4589,57 @@ class ProjectLinesApiService extends BaseService {
4449
4589
  reportProgress: reportProgress,
4450
4590
  });
4451
4591
  }
4592
+ projectLinesSetLineShippingLocations(requestParameters, observe = "body", reportProgress = false, options) {
4593
+ const projectRevisionId = requestParameters?.projectRevisionId;
4594
+ if (projectRevisionId === null || projectRevisionId === undefined) {
4595
+ throw new Error("Required parameter projectRevisionId was null or undefined when calling projectLinesSetLineShippingLocations.");
4596
+ }
4597
+ const setLineShippingLocationDto = requestParameters?.setLineShippingLocationDto;
4598
+ let localVarHeaders = this.defaultHeaders;
4599
+ // authentication (Bearer) required
4600
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
4601
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
4602
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
4603
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
4604
+ }
4605
+ const localVarHttpContext = options?.context ?? new HttpContext();
4606
+ const localVarTransferCache = options?.transferCache ?? true;
4607
+ // to determine the Content-Type header
4608
+ const consumes = [
4609
+ "application/json-patch+json",
4610
+ "application/json",
4611
+ "text/json",
4612
+ "application/*+json",
4613
+ ];
4614
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
4615
+ if (httpContentTypeSelected !== undefined) {
4616
+ localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
4617
+ }
4618
+ let responseType_ = "json";
4619
+ if (localVarHttpHeaderAcceptSelected) {
4620
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
4621
+ responseType_ = "text";
4622
+ }
4623
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
4624
+ responseType_ = "json";
4625
+ }
4626
+ else {
4627
+ responseType_ = "blob";
4628
+ }
4629
+ }
4630
+ let localVarPath = `/api/project-lines/${this.configuration.encodeParam({ name: "projectRevisionId", value: projectRevisionId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}/locations`;
4631
+ const { basePath, withCredentials } = this.configuration;
4632
+ return this.httpClient.request("post", `${basePath}${localVarPath}`, {
4633
+ context: localVarHttpContext,
4634
+ body: setLineShippingLocationDto,
4635
+ responseType: responseType_,
4636
+ ...(withCredentials ? { withCredentials } : {}),
4637
+ headers: localVarHeaders,
4638
+ observe: observe,
4639
+ transferCache: localVarTransferCache,
4640
+ reportProgress: reportProgress,
4641
+ });
4642
+ }
4452
4643
  projectLinesUpdateProjectLines(requestParameters, observe = "body", reportProgress = false, options) {
4453
4644
  const updateLinesDto = requestParameters?.updateLinesDto;
4454
4645
  let localVarHeaders = this.defaultHeaders;
@@ -12613,6 +12804,25 @@ var ProjectBidStatusType;
12613
12804
  * Do not edit the class manually.
12614
12805
  */
12615
12806
 
12807
+ /**
12808
+ * RenewAire CORES API
12809
+ *
12810
+ * Contact: renewaire@saritasa.com
12811
+ *
12812
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12813
+ * https://openapi-generator.tech
12814
+ * Do not edit the class manually.
12815
+ */
12816
+ /**
12817
+ * Discount status.<br />ProjectDiscountStatus<br />0 = Pending<br />1 = Approved<br />2 = Rejected
12818
+ */
12819
+ var ProjectDiscountStatus;
12820
+ (function (ProjectDiscountStatus) {
12821
+ ProjectDiscountStatus["Pending"] = "Pending";
12822
+ ProjectDiscountStatus["Approved"] = "Approved";
12823
+ ProjectDiscountStatus["Rejected"] = "Rejected";
12824
+ })(ProjectDiscountStatus || (ProjectDiscountStatus = {}));
12825
+
12616
12826
  /**
12617
12827
  * RenewAire CORES API
12618
12828
  *
@@ -12632,6 +12842,16 @@ var ProjectDiscountType;
12632
12842
  ProjectDiscountType["Qs"] = "QS";
12633
12843
  })(ProjectDiscountType || (ProjectDiscountType = {}));
12634
12844
 
12845
+ /**
12846
+ * RenewAire CORES API
12847
+ *
12848
+ * Contact: renewaire@saritasa.com
12849
+ *
12850
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12851
+ * https://openapi-generator.tech
12852
+ * Do not edit the class manually.
12853
+ */
12854
+
12635
12855
  /**
12636
12856
  * RenewAire CORES API
12637
12857
  *
@@ -13143,6 +13363,16 @@ var RegistrationStatus;
13143
13363
  * Do not edit the class manually.
13144
13364
  */
13145
13365
 
13366
+ /**
13367
+ * RenewAire CORES API
13368
+ *
13369
+ * Contact: renewaire@saritasa.com
13370
+ *
13371
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
13372
+ * https://openapi-generator.tech
13373
+ * Do not edit the class manually.
13374
+ */
13375
+
13146
13376
  /**
13147
13377
  * RenewAire CORES API
13148
13378
  *
@@ -13342,5 +13572,5 @@ function provideApi(configOrBasePath) {
13342
13572
  * Generated bundle index. Do not edit.
13343
13573
  */
13344
13574
 
13345
- 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, ProjectDiscountType, ProjectDiscountsApiService, ProjectLineStatus, ProjectLineType, ProjectLinesApiService, 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 };
13575
+ 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, ProjectDiscountStatus, ProjectDiscountType, ProjectDiscountsApiService, ProjectLineStatus, ProjectLineType, ProjectLinesApiService, 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 };
13346
13576
  //# sourceMappingURL=saritasa-renewaire-frontend-sdk.mjs.map