@saritasa/renewaire-frontend-sdk 0.223.0 → 0.223.2

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.223.0
1
+ # @@saritasa/renewaire-frontend-sdk@0.223.2
2
2
 
3
3
  ```bash
4
- npm install @saritasa/renewaire-frontend-sdk@0.223.0 --save
4
+ npm install @saritasa/renewaire-frontend-sdk@0.223.2 --save
5
5
  ```
@@ -4344,6 +4344,137 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
4344
4344
  type: Optional
4345
4345
  }] }] });
4346
4346
 
4347
+ /**
4348
+ * RenewAire CORES API
4349
+ *
4350
+ * Contact: renewaire@saritasa.com
4351
+ *
4352
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4353
+ * https://openapi-generator.tech
4354
+ * Do not edit the class manually.
4355
+ */
4356
+ /* tslint:disable:no-unused-variable member-ordering */
4357
+ class ProjectLinesApiService extends BaseService {
4358
+ httpClient;
4359
+ constructor(httpClient, basePath, configuration) {
4360
+ super(basePath, configuration);
4361
+ this.httpClient = httpClient;
4362
+ }
4363
+ projectLinesCreateProjectLine(requestParameters, observe = "body", reportProgress = false, options) {
4364
+ const projectRevisionId = requestParameters?.projectRevisionId;
4365
+ if (projectRevisionId === null || projectRevisionId === undefined) {
4366
+ throw new Error("Required parameter projectRevisionId was null or undefined when calling projectLinesCreateProjectLine.");
4367
+ }
4368
+ const saveLineDto = requestParameters?.saveLineDto;
4369
+ let localVarHeaders = this.defaultHeaders;
4370
+ // authentication (Bearer) required
4371
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
4372
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
4373
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
4374
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
4375
+ }
4376
+ const localVarHttpContext = options?.context ?? new HttpContext();
4377
+ const localVarTransferCache = options?.transferCache ?? true;
4378
+ // to determine the Content-Type header
4379
+ const consumes = [
4380
+ "application/json-patch+json",
4381
+ "application/json",
4382
+ "text/json",
4383
+ "application/*+json",
4384
+ ];
4385
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
4386
+ if (httpContentTypeSelected !== undefined) {
4387
+ localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
4388
+ }
4389
+ let responseType_ = "json";
4390
+ if (localVarHttpHeaderAcceptSelected) {
4391
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
4392
+ responseType_ = "text";
4393
+ }
4394
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
4395
+ responseType_ = "json";
4396
+ }
4397
+ else {
4398
+ responseType_ = "blob";
4399
+ }
4400
+ }
4401
+ let localVarPath = `/api/project-lines/${this.configuration.encodeParam({ name: "projectRevisionId", value: projectRevisionId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}`;
4402
+ const { basePath, withCredentials } = this.configuration;
4403
+ return this.httpClient.request("post", `${basePath}${localVarPath}`, {
4404
+ context: localVarHttpContext,
4405
+ body: saveLineDto,
4406
+ responseType: responseType_,
4407
+ ...(withCredentials ? { withCredentials } : {}),
4408
+ headers: localVarHeaders,
4409
+ observe: observe,
4410
+ transferCache: localVarTransferCache,
4411
+ reportProgress: reportProgress,
4412
+ });
4413
+ }
4414
+ projectLinesUpdateProjectLines(requestParameters, observe = "body", reportProgress = false, options) {
4415
+ const updateLinesDto = requestParameters?.updateLinesDto;
4416
+ let localVarHeaders = this.defaultHeaders;
4417
+ // authentication (Bearer) required
4418
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
4419
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
4420
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
4421
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
4422
+ }
4423
+ const localVarHttpContext = options?.context ?? new HttpContext();
4424
+ const localVarTransferCache = options?.transferCache ?? true;
4425
+ // to determine the Content-Type header
4426
+ const consumes = [
4427
+ "application/json-patch+json",
4428
+ "application/json",
4429
+ "text/json",
4430
+ "application/*+json",
4431
+ ];
4432
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
4433
+ if (httpContentTypeSelected !== undefined) {
4434
+ localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
4435
+ }
4436
+ let responseType_ = "json";
4437
+ if (localVarHttpHeaderAcceptSelected) {
4438
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
4439
+ responseType_ = "text";
4440
+ }
4441
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
4442
+ responseType_ = "json";
4443
+ }
4444
+ else {
4445
+ responseType_ = "blob";
4446
+ }
4447
+ }
4448
+ let localVarPath = `/api/project-lines`;
4449
+ const { basePath, withCredentials } = this.configuration;
4450
+ return this.httpClient.request("post", `${basePath}${localVarPath}`, {
4451
+ context: localVarHttpContext,
4452
+ body: updateLinesDto,
4453
+ responseType: responseType_,
4454
+ ...(withCredentials ? { withCredentials } : {}),
4455
+ headers: localVarHeaders,
4456
+ observe: observe,
4457
+ transferCache: localVarTransferCache,
4458
+ reportProgress: reportProgress,
4459
+ });
4460
+ }
4461
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ProjectLinesApiService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
4462
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ProjectLinesApiService, providedIn: "root" });
4463
+ }
4464
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ProjectLinesApiService, decorators: [{
4465
+ type: Injectable,
4466
+ args: [{
4467
+ providedIn: "root",
4468
+ }]
4469
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
4470
+ type: Optional
4471
+ }, {
4472
+ type: Inject,
4473
+ args: [BASE_PATH]
4474
+ }] }, { type: Configuration, decorators: [{
4475
+ type: Optional
4476
+ }] }] });
4477
+
4347
4478
  /**
4348
4479
  * RenewAire CORES API
4349
4480
  *
@@ -11424,6 +11555,7 @@ const APIS = [
11424
11555
  PermissionsApiService,
11425
11556
  ProjectBidStatusesApiService,
11426
11557
  ProjectDiscountsApiService,
11558
+ ProjectLinesApiService,
11427
11559
  ProjectLinksApiService,
11428
11560
  ProjectNotesApiService,
11429
11561
  ProjectQualifiedSpecificationsApiService,
@@ -12422,6 +12554,25 @@ var ProjectDiscountType;
12422
12554
  ProjectDiscountType["Qs"] = "QS";
12423
12555
  })(ProjectDiscountType || (ProjectDiscountType = {}));
12424
12556
 
12557
+ /**
12558
+ * RenewAire CORES API
12559
+ *
12560
+ * Contact: renewaire@saritasa.com
12561
+ *
12562
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12563
+ * https://openapi-generator.tech
12564
+ * Do not edit the class manually.
12565
+ */
12566
+ /**
12567
+ * Project line status.<br />ProjectLineStatus<br />0 = Incomplete<br />1 = Invalid<br />2 = Valid
12568
+ */
12569
+ var ProjectLineStatus;
12570
+ (function (ProjectLineStatus) {
12571
+ ProjectLineStatus["Incomplete"] = "Incomplete";
12572
+ ProjectLineStatus["Invalid"] = "Invalid";
12573
+ ProjectLineStatus["Valid"] = "Valid";
12574
+ })(ProjectLineStatus || (ProjectLineStatus = {}));
12575
+
12425
12576
  /**
12426
12577
  * RenewAire CORES API
12427
12578
  *
@@ -13124,5 +13275,5 @@ function provideApi(configOrBasePath) {
13124
13275
  * Generated bundle index. Do not edit.
13125
13276
  */
13126
13277
 
13127
- 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, 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 };
13278
+ 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, 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 };
13128
13279
  //# sourceMappingURL=saritasa-renewaire-frontend-sdk.mjs.map