@saritasa/renewaire-frontend-sdk 0.221.0 → 0.222.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.221.0
1
+ # @@saritasa/renewaire-frontend-sdk@0.222.0
2
2
 
3
3
  ```bash
4
- npm install @saritasa/renewaire-frontend-sdk@0.221.0 --save
4
+ npm install @saritasa/renewaire-frontend-sdk@0.222.0 --save
5
5
  ```
@@ -1334,7 +1334,12 @@ class BombRoutingsApiService extends BaseService {
1334
1334
  let localVarHeaders = this.defaultHeaders;
1335
1335
  // authentication (Bearer) required
1336
1336
  localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
1337
- const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
1337
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
1338
+ this.configuration.selectHeaderAccept([
1339
+ "text/plain",
1340
+ "application/json",
1341
+ "text/json",
1342
+ ]);
1338
1343
  if (localVarHttpHeaderAcceptSelected !== undefined) {
1339
1344
  localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
1340
1345
  }
@@ -1515,7 +1520,12 @@ class BombRoutingsApiService extends BaseService {
1515
1520
  let localVarHeaders = this.defaultHeaders;
1516
1521
  // authentication (Bearer) required
1517
1522
  localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
1518
- const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
1523
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
1524
+ this.configuration.selectHeaderAccept([
1525
+ "text/plain",
1526
+ "application/json",
1527
+ "text/json",
1528
+ ]);
1519
1529
  if (localVarHttpHeaderAcceptSelected !== undefined) {
1520
1530
  localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
1521
1531
  }
@@ -1691,7 +1701,12 @@ class BombSchematicsApiService extends BaseService {
1691
1701
  let localVarHeaders = this.defaultHeaders;
1692
1702
  // authentication (Bearer) required
1693
1703
  localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
1694
- const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
1704
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
1705
+ this.configuration.selectHeaderAccept([
1706
+ "text/plain",
1707
+ "application/json",
1708
+ "text/json",
1709
+ ]);
1695
1710
  if (localVarHttpHeaderAcceptSelected !== undefined) {
1696
1711
  localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
1697
1712
  }
@@ -2091,7 +2106,12 @@ class BombValidationsApiService extends BaseService {
2091
2106
  let localVarHeaders = this.defaultHeaders;
2092
2107
  // authentication (Bearer) required
2093
2108
  localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
2094
- const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
2109
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
2110
+ this.configuration.selectHeaderAccept([
2111
+ "text/plain",
2112
+ "application/json",
2113
+ "text/json",
2114
+ ]);
2095
2115
  if (localVarHttpHeaderAcceptSelected !== undefined) {
2096
2116
  localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
2097
2117
  }
@@ -2141,7 +2161,12 @@ class BombValidationsApiService extends BaseService {
2141
2161
  let localVarHeaders = this.defaultHeaders;
2142
2162
  // authentication (Bearer) required
2143
2163
  localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
2144
- const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
2164
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
2165
+ this.configuration.selectHeaderAccept([
2166
+ "text/plain",
2167
+ "application/json",
2168
+ "text/json",
2169
+ ]);
2145
2170
  if (localVarHttpHeaderAcceptSelected !== undefined) {
2146
2171
  localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
2147
2172
  }
@@ -4183,6 +4208,142 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
4183
4208
  type: Optional
4184
4209
  }] }] });
4185
4210
 
4211
+ /**
4212
+ * RenewAire CORES API
4213
+ *
4214
+ * Contact: renewaire@saritasa.com
4215
+ *
4216
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4217
+ * https://openapi-generator.tech
4218
+ * Do not edit the class manually.
4219
+ */
4220
+ /* tslint:disable:no-unused-variable member-ordering */
4221
+ class ProjectDiscountsApiService extends BaseService {
4222
+ httpClient;
4223
+ constructor(httpClient, basePath, configuration) {
4224
+ super(basePath, configuration);
4225
+ this.httpClient = httpClient;
4226
+ }
4227
+ projectDiscountsCreateProjectDiscount(requestParameters, observe = "body", reportProgress = false, options) {
4228
+ const saveProjectDiscountDto = requestParameters?.saveProjectDiscountDto;
4229
+ let localVarHeaders = this.defaultHeaders;
4230
+ // authentication (Bearer) required
4231
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
4232
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
4233
+ this.configuration.selectHeaderAccept([
4234
+ "text/plain",
4235
+ "application/json",
4236
+ "text/json",
4237
+ ]);
4238
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
4239
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
4240
+ }
4241
+ const localVarHttpContext = options?.context ?? new HttpContext();
4242
+ const localVarTransferCache = options?.transferCache ?? true;
4243
+ // to determine the Content-Type header
4244
+ const consumes = [
4245
+ "application/json-patch+json",
4246
+ "application/json",
4247
+ "text/json",
4248
+ "application/*+json",
4249
+ ];
4250
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
4251
+ if (httpContentTypeSelected !== undefined) {
4252
+ localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
4253
+ }
4254
+ let responseType_ = "json";
4255
+ if (localVarHttpHeaderAcceptSelected) {
4256
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
4257
+ responseType_ = "text";
4258
+ }
4259
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
4260
+ responseType_ = "json";
4261
+ }
4262
+ else {
4263
+ responseType_ = "blob";
4264
+ }
4265
+ }
4266
+ let localVarPath = `/api/project-discounts`;
4267
+ const { basePath, withCredentials } = this.configuration;
4268
+ return this.httpClient.request("post", `${basePath}${localVarPath}`, {
4269
+ context: localVarHttpContext,
4270
+ body: saveProjectDiscountDto,
4271
+ responseType: responseType_,
4272
+ ...(withCredentials ? { withCredentials } : {}),
4273
+ headers: localVarHeaders,
4274
+ observe: observe,
4275
+ transferCache: localVarTransferCache,
4276
+ reportProgress: reportProgress,
4277
+ });
4278
+ }
4279
+ projectDiscountsUpdateProjectDiscount(requestParameters, observe = "body", reportProgress = false, options) {
4280
+ const projectDiscountId = requestParameters?.projectDiscountId;
4281
+ if (projectDiscountId === null || projectDiscountId === undefined) {
4282
+ throw new Error("Required parameter projectDiscountId was null or undefined when calling projectDiscountsUpdateProjectDiscount.");
4283
+ }
4284
+ const updateProjectDiscountDto = requestParameters?.updateProjectDiscountDto;
4285
+ let localVarHeaders = this.defaultHeaders;
4286
+ // authentication (Bearer) required
4287
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
4288
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
4289
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
4290
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
4291
+ }
4292
+ const localVarHttpContext = options?.context ?? new HttpContext();
4293
+ const localVarTransferCache = options?.transferCache ?? true;
4294
+ // to determine the Content-Type header
4295
+ const consumes = [
4296
+ "application/json-patch+json",
4297
+ "application/json",
4298
+ "text/json",
4299
+ "application/*+json",
4300
+ ];
4301
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
4302
+ if (httpContentTypeSelected !== undefined) {
4303
+ localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
4304
+ }
4305
+ let responseType_ = "json";
4306
+ if (localVarHttpHeaderAcceptSelected) {
4307
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
4308
+ responseType_ = "text";
4309
+ }
4310
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
4311
+ responseType_ = "json";
4312
+ }
4313
+ else {
4314
+ responseType_ = "blob";
4315
+ }
4316
+ }
4317
+ let localVarPath = `/api/project-discounts/${this.configuration.encodeParam({ name: "projectDiscountId", value: projectDiscountId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}`;
4318
+ const { basePath, withCredentials } = this.configuration;
4319
+ return this.httpClient.request("put", `${basePath}${localVarPath}`, {
4320
+ context: localVarHttpContext,
4321
+ body: updateProjectDiscountDto,
4322
+ responseType: responseType_,
4323
+ ...(withCredentials ? { withCredentials } : {}),
4324
+ headers: localVarHeaders,
4325
+ observe: observe,
4326
+ transferCache: localVarTransferCache,
4327
+ reportProgress: reportProgress,
4328
+ });
4329
+ }
4330
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ProjectDiscountsApiService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
4331
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ProjectDiscountsApiService, providedIn: "root" });
4332
+ }
4333
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ProjectDiscountsApiService, decorators: [{
4334
+ type: Injectable,
4335
+ args: [{
4336
+ providedIn: "root",
4337
+ }]
4338
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
4339
+ type: Optional
4340
+ }, {
4341
+ type: Inject,
4342
+ args: [BASE_PATH]
4343
+ }] }, { type: Configuration, decorators: [{
4344
+ type: Optional
4345
+ }] }] });
4346
+
4186
4347
  /**
4187
4348
  * RenewAire CORES API
4188
4349
  *
@@ -11262,6 +11423,7 @@ const APIS = [
11262
11423
  PermissionBundlesApiService,
11263
11424
  PermissionsApiService,
11264
11425
  ProjectBidStatusesApiService,
11426
+ ProjectDiscountsApiService,
11265
11427
  ProjectLinksApiService,
11266
11428
  ProjectNotesApiService,
11267
11429
  ProjectQualifiedSpecificationsApiService,
@@ -11725,7 +11887,7 @@ var FeedbackType;
11725
11887
  * Do not edit the class manually.
11726
11888
  */
11727
11889
  /**
11728
- * 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
11890
+ * 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<br />7 = ProjectDiscountAttachment
11729
11891
  */
11730
11892
  var FileType;
11731
11893
  (function (FileType) {
@@ -11736,6 +11898,7 @@ var FileType;
11736
11898
  FileType["BidStatusAttachment"] = "BidStatusAttachment";
11737
11899
  FileType["SchematicLayerFile"] = "SchematicLayerFile";
11738
11900
  FileType["QualifiedSpecification"] = "QualifiedSpecification";
11901
+ FileType["ProjectDiscountAttachment"] = "ProjectDiscountAttachment";
11739
11902
  })(FileType || (FileType = {}));
11740
11903
 
11741
11904
  /**
@@ -12230,6 +12393,35 @@ var ProjectBidStatusType;
12230
12393
  ProjectBidStatusType["Lost"] = "Lost";
12231
12394
  })(ProjectBidStatusType || (ProjectBidStatusType = {}));
12232
12395
 
12396
+ /**
12397
+ * RenewAire CORES API
12398
+ *
12399
+ * Contact: renewaire@saritasa.com
12400
+ *
12401
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12402
+ * https://openapi-generator.tech
12403
+ * Do not edit the class manually.
12404
+ */
12405
+
12406
+ /**
12407
+ * RenewAire CORES API
12408
+ *
12409
+ * Contact: renewaire@saritasa.com
12410
+ *
12411
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12412
+ * https://openapi-generator.tech
12413
+ * Do not edit the class manually.
12414
+ */
12415
+ /**
12416
+ * Discount type.<br />ProjectDiscountType<br />0 = FactoryDiscount<br />1 = RepDiscount<br />2 = QS
12417
+ */
12418
+ var ProjectDiscountType;
12419
+ (function (ProjectDiscountType) {
12420
+ ProjectDiscountType["FactoryDiscount"] = "FactoryDiscount";
12421
+ ProjectDiscountType["RepDiscount"] = "RepDiscount";
12422
+ ProjectDiscountType["Qs"] = "QS";
12423
+ })(ProjectDiscountType || (ProjectDiscountType = {}));
12424
+
12233
12425
  /**
12234
12426
  * RenewAire CORES API
12235
12427
  *
@@ -12713,6 +12905,16 @@ var RegistrationStatus;
12713
12905
  * Do not edit the class manually.
12714
12906
  */
12715
12907
 
12908
+ /**
12909
+ * RenewAire CORES API
12910
+ *
12911
+ * Contact: renewaire@saritasa.com
12912
+ *
12913
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12914
+ * https://openapi-generator.tech
12915
+ * Do not edit the class manually.
12916
+ */
12917
+
12716
12918
  /**
12717
12919
  * RenewAire CORES API
12718
12920
  *
@@ -12860,6 +13062,16 @@ var UserStatus;
12860
13062
  * Do not edit the class manually.
12861
13063
  */
12862
13064
 
13065
+ /**
13066
+ * RenewAire CORES API
13067
+ *
13068
+ * Contact: renewaire@saritasa.com
13069
+ *
13070
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
13071
+ * https://openapi-generator.tech
13072
+ * Do not edit the class manually.
13073
+ */
13074
+
12863
13075
  class ApiModule {
12864
13076
  static forRoot(configurationFactory) {
12865
13077
  return {
@@ -12912,5 +13124,5 @@ function provideApi(configOrBasePath) {
12912
13124
  * Generated bundle index. Do not edit.
12913
13125
  */
12914
13126
 
12915
- 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 };
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 };
12916
13128
  //# sourceMappingURL=saritasa-renewaire-frontend-sdk.mjs.map