@saritasa/renewaire-frontend-sdk 0.147.0 → 0.148.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.147.0
1
+ # @@saritasa/renewaire-frontend-sdk@0.148.0
2
2
 
3
3
  ```bash
4
- npm install @saritasa/renewaire-frontend-sdk@0.147.0 --save
4
+ npm install @saritasa/renewaire-frontend-sdk@0.148.0 --save
5
5
  ```
@@ -3562,6 +3562,95 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImpo
3562
3562
  type: Optional
3563
3563
  }] }] });
3564
3564
 
3565
+ /**
3566
+ * RenewAire CORES API
3567
+ *
3568
+ * Contact: renewaire@saritasa.com
3569
+ *
3570
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3571
+ * https://openapi-generator.tech
3572
+ * Do not edit the class manually.
3573
+ */
3574
+ /* tslint:disable:no-unused-variable member-ordering */
3575
+ class ProjectShippingApiService extends BaseService {
3576
+ httpClient;
3577
+ constructor(httpClient, basePath, configuration) {
3578
+ super(basePath, configuration);
3579
+ this.httpClient = httpClient;
3580
+ }
3581
+ projectShippingCreateLocation(requestParameters, observe = "body", reportProgress = false, options) {
3582
+ const projectRevisionId = requestParameters?.projectRevisionId;
3583
+ if (projectRevisionId === null || projectRevisionId === undefined) {
3584
+ throw new Error("Required parameter projectRevisionId was null or undefined when calling projectShippingCreateLocation.");
3585
+ }
3586
+ const shippingLocationDto = requestParameters?.shippingLocationDto;
3587
+ let localVarHeaders = this.defaultHeaders;
3588
+ // authentication (Bearer) required
3589
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
3590
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
3591
+ this.configuration.selectHeaderAccept([
3592
+ "text/plain",
3593
+ "application/json",
3594
+ "text/json",
3595
+ ]);
3596
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
3597
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
3598
+ }
3599
+ const localVarHttpContext = options?.context ?? new HttpContext();
3600
+ const localVarTransferCache = options?.transferCache ?? true;
3601
+ // to determine the Content-Type header
3602
+ const consumes = [
3603
+ "application/json-patch+json",
3604
+ "application/json",
3605
+ "text/json",
3606
+ "application/*+json",
3607
+ ];
3608
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
3609
+ if (httpContentTypeSelected !== undefined) {
3610
+ localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
3611
+ }
3612
+ let responseType_ = "json";
3613
+ if (localVarHttpHeaderAcceptSelected) {
3614
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
3615
+ responseType_ = "text";
3616
+ }
3617
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
3618
+ responseType_ = "json";
3619
+ }
3620
+ else {
3621
+ responseType_ = "blob";
3622
+ }
3623
+ }
3624
+ let localVarPath = `/api/project-shipping/${this.configuration.encodeParam({ name: "projectRevisionId", value: projectRevisionId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}/locations`;
3625
+ const { basePath, withCredentials } = this.configuration;
3626
+ return this.httpClient.request("post", `${basePath}${localVarPath}`, {
3627
+ context: localVarHttpContext,
3628
+ body: shippingLocationDto,
3629
+ responseType: responseType_,
3630
+ ...(withCredentials ? { withCredentials } : {}),
3631
+ headers: localVarHeaders,
3632
+ observe: observe,
3633
+ transferCache: localVarTransferCache,
3634
+ reportProgress: reportProgress,
3635
+ });
3636
+ }
3637
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: ProjectShippingApiService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
3638
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: ProjectShippingApiService, providedIn: "root" });
3639
+ }
3640
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: ProjectShippingApiService, decorators: [{
3641
+ type: Injectable,
3642
+ args: [{
3643
+ providedIn: "root",
3644
+ }]
3645
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
3646
+ type: Optional
3647
+ }, {
3648
+ type: Inject,
3649
+ args: [BASE_PATH]
3650
+ }] }, { type: Configuration, decorators: [{
3651
+ type: Optional
3652
+ }] }] });
3653
+
3565
3654
  /**
3566
3655
  * RenewAire CORES API
3567
3656
  *
@@ -8928,6 +9017,7 @@ const APIS = [
8928
9017
  ProjectNotesApiService,
8929
9018
  ProjectRevisionsApiService,
8930
9019
  ProjectSharingApiService,
9020
+ ProjectShippingApiService,
8931
9021
  ProjectStatusesApiService,
8932
9022
  ProjectsApiService,
8933
9023
  RegionsApiService,
@@ -10075,6 +10165,16 @@ var RegistrationStatus;
10075
10165
  * Do not edit the class manually.
10076
10166
  */
10077
10167
 
10168
+ /**
10169
+ * RenewAire CORES API
10170
+ *
10171
+ * Contact: renewaire@saritasa.com
10172
+ *
10173
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
10174
+ * https://openapi-generator.tech
10175
+ * Do not edit the class manually.
10176
+ */
10177
+
10078
10178
  /**
10079
10179
  * RenewAire CORES API
10080
10180
  *
@@ -10234,5 +10334,5 @@ function provideApi(configOrBasePath) {
10234
10334
  * Generated bundle index. Do not edit.
10235
10335
  */
10236
10336
 
10237
- export { APIS, AddressCountry, ApiModule, AshraeVersion, AuditEntity, AuditLogsApiService, AuthApiService, BASE_PATH, BuildingCategory, BuildingType, COLLECTION_FORMATS, Configuration, ConstructionOrderType, ControllerProgramReleaseType, ControllerProgramType, ControllerProgramsApiService, CoolingDesignBasis, DesignWeatherMode, FeedbackType, FeedbacksApiService, FileType, GroupCustomerType, GroupType, GroupsApiService, KnownContactsApiService, Language, LeadTimeType, LeadTimesApiService, MaintenanceApiService, OperationType, Permission, PermissionBundlesApiService, PermissionsApiService, ProjectBidStatusType, ProjectBidStatusesApiService, ProjectLinksApiService, ProjectLogType, ProjectNoteType, ProjectNotesApiService, ProjectRevisionsApiService, ProjectSharingAccessLevel, ProjectSharingApiService, ProjectStatus, ProjectStatusesApiService, ProjectsApiService, QualifiedSpecificationStatus, RegionLevel, RegionsApiService, RegistrationStatus, RepContactsApiService, RepSalesReportsApiService, RepTerritoriesApiService, RepTerritoryLocationsApiService, RsdRegionsApiService, S3ApiService, StaticFilesApiService, UnitSystem, UserStatus, UserTablesApiService, UsersApiService, UsersManagementApiService, provideApi };
10337
+ export { APIS, AddressCountry, ApiModule, AshraeVersion, AuditEntity, AuditLogsApiService, AuthApiService, BASE_PATH, BuildingCategory, BuildingType, COLLECTION_FORMATS, Configuration, ConstructionOrderType, ControllerProgramReleaseType, ControllerProgramType, ControllerProgramsApiService, CoolingDesignBasis, DesignWeatherMode, FeedbackType, FeedbacksApiService, FileType, GroupCustomerType, GroupType, GroupsApiService, KnownContactsApiService, Language, LeadTimeType, LeadTimesApiService, MaintenanceApiService, OperationType, Permission, PermissionBundlesApiService, PermissionsApiService, ProjectBidStatusType, ProjectBidStatusesApiService, ProjectLinksApiService, ProjectLogType, ProjectNoteType, ProjectNotesApiService, ProjectRevisionsApiService, ProjectSharingAccessLevel, ProjectSharingApiService, ProjectShippingApiService, ProjectStatus, ProjectStatusesApiService, ProjectsApiService, QualifiedSpecificationStatus, RegionLevel, RegionsApiService, RegistrationStatus, RepContactsApiService, RepSalesReportsApiService, RepTerritoriesApiService, RepTerritoryLocationsApiService, RsdRegionsApiService, S3ApiService, StaticFilesApiService, UnitSystem, UserStatus, UserTablesApiService, UsersApiService, UsersManagementApiService, provideApi };
10238
10338
  //# sourceMappingURL=saritasa-renewaire-frontend-sdk.mjs.map