@saritasa/renewaire-frontend-sdk 0.11.0 → 0.12.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.11.0
1
+ # @@saritasa/renewaire-frontend-sdk@0.12.0
2
2
 
3
3
  ```bash
4
- npm install @saritasa/renewaire-frontend-sdk@0.11.0 --save
4
+ npm install @saritasa/renewaire-frontend-sdk@0.12.0 --save
5
5
  ```
@@ -434,6 +434,134 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImpor
434
434
  type: Optional
435
435
  }] }] });
436
436
 
437
+ /**
438
+ * RenewAire CORES API
439
+ *
440
+ * Contact: renewaire@saritasa.com
441
+ *
442
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
443
+ * https://openapi-generator.tech
444
+ * Do not edit the class manually.
445
+ */
446
+ /* tslint:disable:no-unused-variable member-ordering */
447
+ class FeedbacksApiService extends BaseService {
448
+ httpClient;
449
+ constructor(httpClient, basePath, configuration) {
450
+ super(basePath, configuration);
451
+ this.httpClient = httpClient;
452
+ }
453
+ feedbacksCreateFeedback(requestParameters, observe = "body", reportProgress = false, options) {
454
+ const feedbackType = requestParameters?.feedbackType;
455
+ if (feedbackType === null || feedbackType === undefined) {
456
+ throw new Error("Required parameter feedbackType was null or undefined when calling feedbacksCreateFeedback.");
457
+ }
458
+ const message = requestParameters?.message;
459
+ if (message === null || message === undefined) {
460
+ throw new Error("Required parameter message was null or undefined when calling feedbacksCreateFeedback.");
461
+ }
462
+ const frontendUrl = requestParameters?.frontendUrl;
463
+ if (frontendUrl === null || frontendUrl === undefined) {
464
+ throw new Error("Required parameter frontendUrl was null or undefined when calling feedbacksCreateFeedback.");
465
+ }
466
+ const attachments = requestParameters?.attachments;
467
+ if (attachments === null || attachments === undefined) {
468
+ throw new Error("Required parameter attachments was null or undefined when calling feedbacksCreateFeedback.");
469
+ }
470
+ let localVarHeaders = this.defaultHeaders;
471
+ // authentication (Bearer) required
472
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
473
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
474
+ this.configuration.selectHeaderAccept([
475
+ "text/plain",
476
+ "application/json",
477
+ "text/json",
478
+ ]);
479
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
480
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
481
+ }
482
+ const localVarHttpContext = options?.context ?? new HttpContext();
483
+ const localVarTransferCache = options?.transferCache ?? true;
484
+ // to determine the Content-Type header
485
+ const consumes = ["multipart/form-data"];
486
+ const canConsumeForm = this.canConsumeForm(consumes);
487
+ let localVarFormParams;
488
+ let localVarUseForm = false;
489
+ let localVarConvertFormParamsToString = false;
490
+ // use FormData to transmit files using content-type "multipart/form-data"
491
+ // see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data
492
+ localVarUseForm = canConsumeForm;
493
+ if (localVarUseForm) {
494
+ localVarFormParams = new FormData();
495
+ }
496
+ else {
497
+ localVarFormParams = new HttpParams({ encoder: this.encoder });
498
+ }
499
+ if (feedbackType !== undefined) {
500
+ localVarFormParams =
501
+ localVarFormParams.append("FeedbackType", feedbackType) ||
502
+ localVarFormParams;
503
+ }
504
+ if (message !== undefined) {
505
+ localVarFormParams =
506
+ localVarFormParams.append("Message", message) ||
507
+ localVarFormParams;
508
+ }
509
+ if (frontendUrl !== undefined) {
510
+ localVarFormParams =
511
+ localVarFormParams.append("FrontendUrl", frontendUrl) ||
512
+ localVarFormParams;
513
+ }
514
+ if (attachments) {
515
+ attachments.forEach((element) => {
516
+ localVarFormParams =
517
+ localVarFormParams.append("Attachments", element) ||
518
+ localVarFormParams;
519
+ });
520
+ }
521
+ let responseType_ = "json";
522
+ if (localVarHttpHeaderAcceptSelected) {
523
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
524
+ responseType_ = "text";
525
+ }
526
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
527
+ responseType_ = "json";
528
+ }
529
+ else {
530
+ responseType_ = "blob";
531
+ }
532
+ }
533
+ let localVarPath = `/api/feedbacks`;
534
+ const { basePath, withCredentials } = this.configuration;
535
+ return this.httpClient.request("post", `${basePath}${localVarPath}`, {
536
+ context: localVarHttpContext,
537
+ body: localVarConvertFormParamsToString
538
+ ? localVarFormParams.toString()
539
+ : localVarFormParams,
540
+ responseType: responseType_,
541
+ ...(withCredentials ? { withCredentials } : {}),
542
+ headers: localVarHeaders,
543
+ observe: observe,
544
+ transferCache: localVarTransferCache,
545
+ reportProgress: reportProgress,
546
+ });
547
+ }
548
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: FeedbacksApiService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
549
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: FeedbacksApiService, providedIn: "root" });
550
+ }
551
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: FeedbacksApiService, decorators: [{
552
+ type: Injectable,
553
+ args: [{
554
+ providedIn: "root",
555
+ }]
556
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
557
+ type: Optional
558
+ }, {
559
+ type: Inject,
560
+ args: [BASE_PATH]
561
+ }] }, { type: Configuration, decorators: [{
562
+ type: Optional
563
+ }] }] });
564
+
437
565
  /**
438
566
  * RenewAire CORES API
439
567
  *
@@ -3636,6 +3764,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImpor
3636
3764
 
3637
3765
  const APIS = [
3638
3766
  AuthApiService,
3767
+ FeedbacksApiService,
3639
3768
  KnownContactsApiService,
3640
3769
  PermissionBundlesApiService,
3641
3770
  PermissionsApiService,
@@ -3800,6 +3929,29 @@ var DesignWeatherMode;
3800
3929
  * Do not edit the class manually.
3801
3930
  */
3802
3931
 
3932
+ /**
3933
+ * RenewAire CORES API
3934
+ *
3935
+ * Contact: renewaire@saritasa.com
3936
+ *
3937
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3938
+ * https://openapi-generator.tech
3939
+ * Do not edit the class manually.
3940
+ */
3941
+ /**
3942
+ * FeedbackType<br />0 = Request<br />1 = Enhancement<br />2 = Problem<br />3 = Comment<br />4 = Question<br />5 = Praise<br />6 = Other
3943
+ */
3944
+ var FeedbackType;
3945
+ (function (FeedbackType) {
3946
+ FeedbackType["Request"] = "Request";
3947
+ FeedbackType["Enhancement"] = "Enhancement";
3948
+ FeedbackType["Problem"] = "Problem";
3949
+ FeedbackType["Comment"] = "Comment";
3950
+ FeedbackType["Question"] = "Question";
3951
+ FeedbackType["Praise"] = "Praise";
3952
+ FeedbackType["Other"] = "Other";
3953
+ })(FeedbackType || (FeedbackType = {}));
3954
+
3803
3955
  /**
3804
3956
  * RenewAire CORES API
3805
3957
  *
@@ -4379,5 +4531,5 @@ function provideApi(configOrBasePath) {
4379
4531
  * Generated bundle index. Do not edit.
4380
4532
  */
4381
4533
 
4382
- export { APIS, AddressCountry, AddressDtoCountryEnum, ApiModule, AuthApiService, BASE_PATH, COLLECTION_FORMATS, Configuration, CoolingDesignBasis, CurrentUserDtoRegistrationStatusEnum, DesignWeatherMode, KnownContactsApiService, Language, Permission, PermissionBundlesApiService, PermissionsApiService, RegionDtoLevelEnum, RegionLevel, RegionsApiService, RegistrationStatus, RepContactsApiService, RepTerritoriesApiService, RepTerritoryLocationsApiService, RsdRegionsApiService, SaveUserDesignConditionsDtoCoolingDesignBasisEnum, SaveUserPreferencesDtoLanguageEnum, SaveUserPreferencesDtoUnitSystemEnum, SearchRegionDtoLevelEnum, SetPreferredLanguageCommandPreferredLanguageEnum, UnitSystem, UserAddressDtoCountryEnum, UserDesignConditionsApiService, UserDesignConditionsDtoCoolingDesignBasisEnum, UserDesignWeatherConditionDtoDesignWeatherModeEnum, UserPermissionDtoPermissionEnum, UserPreferencesDtoLanguageEnum, UserPreferencesDtoUnitSystemEnum, UserProfileSettingsDtoRegistrationStatusEnum, UsersApiService, provideApi };
4534
+ export { APIS, AddressCountry, AddressDtoCountryEnum, ApiModule, AuthApiService, BASE_PATH, COLLECTION_FORMATS, Configuration, CoolingDesignBasis, CurrentUserDtoRegistrationStatusEnum, DesignWeatherMode, FeedbackType, FeedbacksApiService, KnownContactsApiService, Language, Permission, PermissionBundlesApiService, PermissionsApiService, RegionDtoLevelEnum, RegionLevel, RegionsApiService, RegistrationStatus, RepContactsApiService, RepTerritoriesApiService, RepTerritoryLocationsApiService, RsdRegionsApiService, SaveUserDesignConditionsDtoCoolingDesignBasisEnum, SaveUserPreferencesDtoLanguageEnum, SaveUserPreferencesDtoUnitSystemEnum, SearchRegionDtoLevelEnum, SetPreferredLanguageCommandPreferredLanguageEnum, UnitSystem, UserAddressDtoCountryEnum, UserDesignConditionsApiService, UserDesignConditionsDtoCoolingDesignBasisEnum, UserDesignWeatherConditionDtoDesignWeatherModeEnum, UserPermissionDtoPermissionEnum, UserPreferencesDtoLanguageEnum, UserPreferencesDtoUnitSystemEnum, UserProfileSettingsDtoRegistrationStatusEnum, UsersApiService, provideApi };
4383
4535
  //# sourceMappingURL=saritasa-renewaire-frontend-sdk.mjs.map