@esolve/ng-esolve-connect 0.30.2 → 0.31.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.
Files changed (94) hide show
  1. package/esm2020/lib/cart/esolve-cart.service.mjs +7 -4
  2. package/esm2020/lib/coupons/esolve-coupons.service.mjs +3 -2
  3. package/esm2020/lib/payment/esolve-payment.service.mjs +7 -6
  4. package/esm2020/lib/session/esolve-session-metadata.service.mjs +77 -0
  5. package/esm2020/lib/session/index.mjs +2 -1
  6. package/esm2020/lib/shared/geocoder/esolve-geocoder.service.mjs +5 -3
  7. package/esm2020/lib/shared/response/esolve-get-response.interface.mjs +1 -1
  8. package/esm2020/lib/stock/esolve-stock.service.mjs +3 -2
  9. package/esm2020/media/lib/classes/esolve-media-article.model.mjs +8 -6
  10. package/esm2020/survey/esolve-ng-esolve-connect-survey.mjs +5 -0
  11. package/esm2020/survey/index.mjs +6 -0
  12. package/esm2020/survey/lib/classes/esolve-survey-answer-result.model.mjs +11 -0
  13. package/esm2020/survey/lib/classes/esolve-survey-check-question.model.mjs +11 -0
  14. package/esm2020/survey/lib/classes/esolve-survey-input-question.model.mjs +11 -0
  15. package/esm2020/survey/lib/classes/esolve-survey-options-question.model.mjs +21 -0
  16. package/esm2020/survey/lib/classes/esolve-survey-question.model.mjs +10 -0
  17. package/esm2020/survey/lib/classes/esolve-survey-radio-question.model.mjs +11 -0
  18. package/esm2020/survey/lib/classes/esolve-survey-rating-question.model.mjs +17 -0
  19. package/esm2020/survey/lib/classes/esolve-survey-select-question.model.mjs +17 -0
  20. package/esm2020/survey/lib/classes/esolve-survey-text-question.model.mjs +10 -0
  21. package/esm2020/survey/lib/classes/esolve-survey-textarea-question.model.mjs +11 -0
  22. package/esm2020/survey/lib/classes/esolve-survey-values-question.model.mjs +11 -0
  23. package/esm2020/survey/lib/classes/esolve-survey.model.mjs +60 -0
  24. package/esm2020/survey/lib/classes/index.mjs +13 -0
  25. package/esm2020/survey/lib/interfaces/esolve-survey-answer-response.interface.mjs +2 -0
  26. package/esm2020/survey/lib/interfaces/esolve-survey-option.interface.mjs +2 -0
  27. package/esm2020/survey/lib/interfaces/esolve-survey-options-question-record.interface.mjs +2 -0
  28. package/esm2020/survey/lib/interfaces/esolve-survey-options.interface.mjs +2 -0
  29. package/esm2020/survey/lib/interfaces/esolve-survey-question-record.type.mjs +2 -0
  30. package/esm2020/survey/lib/interfaces/esolve-survey-record.interface.mjs +2 -0
  31. package/esm2020/survey/lib/interfaces/esolve-survey-text-question-record.interface.mjs +2 -0
  32. package/esm2020/survey/lib/interfaces/esolve-survey-values-question-record.interface.mjs +2 -0
  33. package/esm2020/survey/lib/interfaces/index.mjs +9 -0
  34. package/esm2020/survey/lib/ng-esolve-connect-survey.module.mjs +15 -0
  35. package/esm2020/survey/lib/services/esolve-survey.service.mjs +105 -0
  36. package/esm2020/survey/lib/services/index.mjs +2 -0
  37. package/esm2020/survey/lib/types/esolve-survey-options-question-type.type.mjs +2 -0
  38. package/esm2020/survey/lib/types/esolve-survey-question-record-list.type.mjs +2 -0
  39. package/esm2020/survey/lib/types/esolve-survey-question-type.type.mjs +2 -0
  40. package/esm2020/survey/lib/types/esolve-survey-text-question-type.type.mjs +2 -0
  41. package/esm2020/survey/lib/types/esolve-survey-type.type.mjs +2 -0
  42. package/esm2020/survey/lib/types/esolve-survey-values-question-type.type.mjs +2 -0
  43. package/esm2020/survey/lib/types/index.mjs +7 -0
  44. package/fesm2015/esolve-ng-esolve-connect-media.mjs +6 -5
  45. package/fesm2015/esolve-ng-esolve-connect-media.mjs.map +1 -1
  46. package/fesm2015/esolve-ng-esolve-connect-survey.mjs +310 -0
  47. package/fesm2015/esolve-ng-esolve-connect-survey.mjs.map +1 -0
  48. package/fesm2015/esolve-ng-esolve-connect.mjs +89 -12
  49. package/fesm2015/esolve-ng-esolve-connect.mjs.map +1 -1
  50. package/fesm2020/esolve-ng-esolve-connect-media.mjs +6 -5
  51. package/fesm2020/esolve-ng-esolve-connect-media.mjs.map +1 -1
  52. package/fesm2020/esolve-ng-esolve-connect-survey.mjs +308 -0
  53. package/fesm2020/esolve-ng-esolve-connect-survey.mjs.map +1 -0
  54. package/fesm2020/esolve-ng-esolve-connect.mjs +87 -12
  55. package/fesm2020/esolve-ng-esolve-connect.mjs.map +1 -1
  56. package/lib/session/esolve-session-metadata.service.d.ts +19 -0
  57. package/lib/session/index.d.ts +1 -0
  58. package/lib/shared/response/esolve-get-response.interface.d.ts +1 -1
  59. package/media/lib/classes/esolve-media-article.model.d.ts +1 -1
  60. package/package.json +9 -1
  61. package/survey/README.md +3 -0
  62. package/survey/index.d.ts +5 -0
  63. package/survey/lib/classes/esolve-survey-answer-result.model.d.ts +6 -0
  64. package/survey/lib/classes/esolve-survey-check-question.model.d.ts +6 -0
  65. package/survey/lib/classes/esolve-survey-input-question.model.d.ts +6 -0
  66. package/survey/lib/classes/esolve-survey-options-question.model.d.ts +7 -0
  67. package/survey/lib/classes/esolve-survey-question.model.d.ts +11 -0
  68. package/survey/lib/classes/esolve-survey-radio-question.model.d.ts +6 -0
  69. package/survey/lib/classes/esolve-survey-rating-question.model.d.ts +7 -0
  70. package/survey/lib/classes/esolve-survey-select-question.model.d.ts +7 -0
  71. package/survey/lib/classes/esolve-survey-text-question.model.d.ts +7 -0
  72. package/survey/lib/classes/esolve-survey-textarea-question.model.d.ts +6 -0
  73. package/survey/lib/classes/esolve-survey-values-question.model.d.ts +6 -0
  74. package/survey/lib/classes/esolve-survey.model.d.ts +15 -0
  75. package/survey/lib/classes/index.d.ts +12 -0
  76. package/survey/lib/interfaces/esolve-survey-answer-response.interface.d.ts +4 -0
  77. package/survey/lib/interfaces/esolve-survey-option.interface.d.ts +4 -0
  78. package/survey/lib/interfaces/esolve-survey-options-question-record.interface.d.ts +7 -0
  79. package/survey/lib/interfaces/esolve-survey-options.interface.d.ts +5 -0
  80. package/survey/lib/interfaces/esolve-survey-question-record.type.d.ts +9 -0
  81. package/survey/lib/interfaces/esolve-survey-record.interface.d.ts +9 -0
  82. package/survey/lib/interfaces/esolve-survey-text-question-record.interface.d.ts +7 -0
  83. package/survey/lib/interfaces/esolve-survey-values-question-record.interface.d.ts +6 -0
  84. package/survey/lib/interfaces/index.d.ts +8 -0
  85. package/survey/lib/ng-esolve-connect-survey.module.d.ts +7 -0
  86. package/survey/lib/services/esolve-survey.service.d.ts +84 -0
  87. package/survey/lib/services/index.d.ts +1 -0
  88. package/survey/lib/types/esolve-survey-options-question-type.type.d.ts +1 -0
  89. package/survey/lib/types/esolve-survey-question-record-list.type.d.ts +2 -0
  90. package/survey/lib/types/esolve-survey-question-type.type.d.ts +4 -0
  91. package/survey/lib/types/esolve-survey-text-question-type.type.d.ts +1 -0
  92. package/survey/lib/types/esolve-survey-type.type.d.ts +1 -0
  93. package/survey/lib/types/esolve-survey-values-question-type.type.d.ts +1 -0
  94. package/survey/lib/types/index.d.ts +6 -0
@@ -0,0 +1,19 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { Observable } from 'rxjs';
3
+ import { EsolveResponseHandlerService, EsolveResponseResult } from '../shared/response';
4
+ import { EsolveErrorHandlerService } from '../shared/errors';
5
+ import { EsolveResult } from '../shared/esolve-result.model';
6
+ import { EsolveConnectConfig } from '../esolve-connect.config';
7
+ import * as i0 from "@angular/core";
8
+ export declare class EsolveSessionMetadataService {
9
+ private config;
10
+ private http;
11
+ private errorHandler;
12
+ private responseHandler;
13
+ constructor(config: EsolveConnectConfig, http: HttpClient, errorHandler: EsolveErrorHandlerService, responseHandler: EsolveResponseHandlerService);
14
+ set(type: string, metadata: any): Observable<EsolveResponseResult>;
15
+ get<T>(type: string): Observable<T>;
16
+ delete(type: string): Observable<EsolveResult>;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<EsolveSessionMetadataService, never>;
18
+ static ɵprov: i0.ɵɵInjectableDeclaration<EsolveSessionMetadataService>;
19
+ }
@@ -2,3 +2,4 @@ export * from './esolve-session.model';
2
2
  export * from './esolve-session-data.interface';
3
3
  export * from './esolve-stored-session.interface';
4
4
  export * from './esolve-session.service';
5
+ export * from './esolve-session-metadata.service';
@@ -1,4 +1,4 @@
1
1
  import { EsolveResponse } from './esolve-response.interface';
2
2
  export interface EsolveGetResponse<T = any> extends EsolveResponse {
3
- records?: T;
3
+ records?: T | never[];
4
4
  }
@@ -1,4 +1,4 @@
1
- import { EsolveCustomFields, EsolveManufacturer, EsolveRange, EsolveSeoDetails, EsolveSeoInfo, EsolveTag, EsolveTopic } from '@esolve/ng-esolve-connect';
1
+ import { EsolveSeoDetails, EsolveTag, EsolveTopic, EsolveSeoInfo, EsolveManufacturer, EsolveRange, EsolveCustomFields } from '@esolve/ng-esolve-connect';
2
2
  import { EsolveMediaRecord } from '../interfaces';
3
3
  import { EsolveMediaGroup } from './esolve-media-group.model';
4
4
  import { EsolveMediaLayoutSection } from './esolve-media-layout-section.model';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esolve/ng-esolve-connect",
3
- "version": "0.30.2",
3
+ "version": "0.31.0",
4
4
  "description": "An Angular library that speaks to an eSolve instance's API",
5
5
  "ng-add": {
6
6
  "save": "true"
@@ -47,6 +47,14 @@
47
47
  "es2015": "./fesm2015/esolve-ng-esolve-connect-media.mjs",
48
48
  "node": "./fesm2015/esolve-ng-esolve-connect-media.mjs",
49
49
  "default": "./fesm2020/esolve-ng-esolve-connect-media.mjs"
50
+ },
51
+ "./survey": {
52
+ "types": "./survey/index.d.ts",
53
+ "esm2020": "./esm2020/survey/esolve-ng-esolve-connect-survey.mjs",
54
+ "es2020": "./fesm2020/esolve-ng-esolve-connect-survey.mjs",
55
+ "es2015": "./fesm2015/esolve-ng-esolve-connect-survey.mjs",
56
+ "node": "./fesm2015/esolve-ng-esolve-connect-survey.mjs",
57
+ "default": "./fesm2020/esolve-ng-esolve-connect-survey.mjs"
50
58
  }
51
59
  },
52
60
  "sideEffects": false
@@ -0,0 +1,3 @@
1
+ # @esolve/ng-esolve-connect/survey
2
+
3
+ Secondary entry point of `@esolve/ng-esolve-connect`. It can be used by importing from `@esolve/ng-esolve-connect/survey`.
@@ -0,0 +1,5 @@
1
+ export * from './lib/ng-esolve-connect-survey.module';
2
+ export * from './lib/classes';
3
+ export * from './lib/interfaces';
4
+ export * from './lib/types';
5
+ export * from './lib/services';
@@ -0,0 +1,6 @@
1
+ import { EsolveResponseResult } from '@esolve/ng-esolve-connect';
2
+ import { EsolveSurveyAnswerResponse } from '../interfaces';
3
+ export declare class EsolveSurveyAnswerResult extends EsolveResponseResult {
4
+ invalid_question_ids?: number[];
5
+ constructor(response: EsolveSurveyAnswerResponse);
6
+ }
@@ -0,0 +1,6 @@
1
+ import { EsolveSurveyValuesQuestionRecord } from '../interfaces';
2
+ import { EsolveSurveyValuesQuestion } from './esolve-survey-values-question.model';
3
+ export declare class EsolveSurveyCheckQuestion extends EsolveSurveyValuesQuestion {
4
+ readonly type = "check_boxes";
5
+ constructor(record: EsolveSurveyValuesQuestionRecord);
6
+ }
@@ -0,0 +1,6 @@
1
+ import { EsolveSurveyTextQuestionRecord } from '../interfaces';
2
+ import { EsolveSurveyTextQuestion } from './esolve-survey-text-question.model';
3
+ export declare class EsolveSurveyInputQuestion extends EsolveSurveyTextQuestion {
4
+ readonly type = "input";
5
+ constructor(record: EsolveSurveyTextQuestionRecord);
6
+ }
@@ -0,0 +1,7 @@
1
+ import { EsolveSurveyOption, EsolveSurveyOptionsQuestionRecord } from '../interfaces';
2
+ import { EsolveSurveyQuestion } from './esolve-survey-question.model';
3
+ export declare abstract class EsolveSurveyOptionsQuestion<T extends number | string> extends EsolveSurveyQuestion {
4
+ options: EsolveSurveyOption<T>[];
5
+ constructor(record: EsolveSurveyOptionsQuestionRecord);
6
+ protected abstract processValue(option: number | string): T;
7
+ }
@@ -0,0 +1,11 @@
1
+ import { EsolveSurveyQuestionRecord } from '../interfaces';
2
+ import { EsolveSurveyQuestionType } from '../types';
3
+ export declare abstract class EsolveSurveyQuestion {
4
+ abstract type: EsolveSurveyQuestionType;
5
+ id: number;
6
+ identifier: string;
7
+ question: string;
8
+ title: string;
9
+ description: string;
10
+ constructor(record: EsolveSurveyQuestionRecord);
11
+ }
@@ -0,0 +1,6 @@
1
+ import { EsolveSurveyValuesQuestionRecord } from '../interfaces';
2
+ import { EsolveSurveyValuesQuestion } from './esolve-survey-values-question.model';
3
+ export declare class EsolveSurveyRadioQuestion extends EsolveSurveyValuesQuestion {
4
+ readonly type = "radio_boxes";
5
+ constructor(record: EsolveSurveyValuesQuestionRecord);
6
+ }
@@ -0,0 +1,7 @@
1
+ import { EsolveSurveyOptionsQuestionRecord } from '../interfaces';
2
+ import { EsolveSurveyOptionsQuestion } from './esolve-survey-options-question.model';
3
+ export declare class EsolveSurveyRatingQuestion extends EsolveSurveyOptionsQuestion<number> {
4
+ readonly type = "rating";
5
+ constructor(record: EsolveSurveyOptionsQuestionRecord);
6
+ protected processValue(value: string | number): number;
7
+ }
@@ -0,0 +1,7 @@
1
+ import { EsolveSurveyOptionsQuestionRecord } from '../interfaces';
2
+ import { EsolveSurveyOptionsQuestion } from './esolve-survey-options-question.model';
3
+ export declare class EsolveSurveySelectQuestion extends EsolveSurveyOptionsQuestion<string> {
4
+ readonly type = "select";
5
+ constructor(record: EsolveSurveyOptionsQuestionRecord);
6
+ protected processValue(value: string | number): string;
7
+ }
@@ -0,0 +1,7 @@
1
+ import { EsolveSurveyTextQuestionRecord } from '../interfaces';
2
+ import { EsolveSurveyQuestion } from './esolve-survey-question.model';
3
+ export declare abstract class EsolveSurveyTextQuestion extends EsolveSurveyQuestion {
4
+ length: number;
5
+ placeholder: string;
6
+ constructor(record: EsolveSurveyTextQuestionRecord);
7
+ }
@@ -0,0 +1,6 @@
1
+ import { EsolveSurveyTextQuestionRecord } from '../interfaces';
2
+ import { EsolveSurveyTextQuestion } from './esolve-survey-text-question.model';
3
+ export declare class EsolveSurveyTextareaQuestion extends EsolveSurveyTextQuestion {
4
+ readonly type = "textarea";
5
+ constructor(record: EsolveSurveyTextQuestionRecord);
6
+ }
@@ -0,0 +1,6 @@
1
+ import { EsolveSurveyValuesQuestionRecord } from '../interfaces';
2
+ import { EsolveSurveyQuestion } from './esolve-survey-question.model';
3
+ export declare abstract class EsolveSurveyValuesQuestion extends EsolveSurveyQuestion {
4
+ values: string[];
5
+ constructor(record: EsolveSurveyValuesQuestionRecord);
6
+ }
@@ -0,0 +1,15 @@
1
+ import { EsolveSeoDetails, EsolveSeoInfo } from '@esolve/ng-esolve-connect';
2
+ import { EsolveSurveyRecord } from '../interfaces';
3
+ import { EsolveSurveyType } from '../types';
4
+ import { EsolveSurveyQuestion } from './esolve-survey-question.model';
5
+ export declare class EsolveSurvey implements EsolveSeoDetails {
6
+ id: number;
7
+ type: EsolveSurveyType;
8
+ identifier: string;
9
+ title: string;
10
+ description: string;
11
+ questions: EsolveSurveyQuestion[];
12
+ seo_details: EsolveSeoInfo;
13
+ constructor(record: EsolveSurveyRecord);
14
+ private processQuestions;
15
+ }
@@ -0,0 +1,12 @@
1
+ export * from './esolve-survey.model';
2
+ export * from './esolve-survey-question.model';
3
+ export * from './esolve-survey-text-question.model';
4
+ export * from './esolve-survey-values-question.model';
5
+ export * from './esolve-survey-options-question.model';
6
+ export * from './esolve-survey-input-question.model';
7
+ export * from './esolve-survey-textarea-question.model';
8
+ export * from './esolve-survey-check-question.model';
9
+ export * from './esolve-survey-radio-question.model';
10
+ export * from './esolve-survey-rating-question.model';
11
+ export * from './esolve-survey-select-question.model';
12
+ export * from './esolve-survey-answer-result.model';
@@ -0,0 +1,4 @@
1
+ import { EsolvePostResponseItem } from '@esolve/ng-esolve-connect';
2
+ export interface EsolveSurveyAnswerResponse extends EsolvePostResponseItem {
3
+ invalid_question_ids?: number[];
4
+ }
@@ -0,0 +1,4 @@
1
+ export interface EsolveSurveyOption<T extends number | string> {
2
+ label: string;
3
+ value: T;
4
+ }
@@ -0,0 +1,7 @@
1
+ import { EsolveSurveyOptionsQuestionType } from '../types';
2
+ import { EsolveSurveyOption } from './esolve-survey-option.interface';
3
+ import { EsolveSurveyQuestionRecord } from './esolve-survey-question-record.type';
4
+ export interface EsolveSurveyOptionsQuestionRecord extends EsolveSurveyQuestionRecord {
5
+ type: EsolveSurveyOptionsQuestionType;
6
+ options: EsolveSurveyOption<number | string>[];
7
+ }
@@ -0,0 +1,5 @@
1
+ export interface EsolveSurveyOptions {
2
+ id?: number;
3
+ identifier?: string;
4
+ transaction_id?: number;
5
+ }
@@ -0,0 +1,9 @@
1
+ import { EsolveSurveyQuestionType } from '../types';
2
+ export interface EsolveSurveyQuestionRecord {
3
+ type: EsolveSurveyQuestionType;
4
+ id: number;
5
+ identifier: string;
6
+ question: string;
7
+ title: string;
8
+ description: string;
9
+ }
@@ -0,0 +1,9 @@
1
+ import { EsolveSurveyQuestionRecordList, EsolveSurveyType } from '../types';
2
+ export interface EsolveSurveyRecord {
3
+ id: number;
4
+ type: EsolveSurveyType;
5
+ identifier: string;
6
+ title: string;
7
+ description: string;
8
+ questions: EsolveSurveyQuestionRecordList;
9
+ }
@@ -0,0 +1,7 @@
1
+ import { EsolveSurveyTextQuestionType } from '../types';
2
+ import { EsolveSurveyQuestionRecord } from './esolve-survey-question-record.type';
3
+ export interface EsolveSurveyTextQuestionRecord extends EsolveSurveyQuestionRecord {
4
+ type: EsolveSurveyTextQuestionType;
5
+ length: number;
6
+ placeholder: string;
7
+ }
@@ -0,0 +1,6 @@
1
+ import { EsolveSurveyValuesQuestionType } from '../types';
2
+ import { EsolveSurveyQuestionRecord } from './esolve-survey-question-record.type';
3
+ export interface EsolveSurveyValuesQuestionRecord extends EsolveSurveyQuestionRecord {
4
+ type: EsolveSurveyValuesQuestionType;
5
+ values: string[];
6
+ }
@@ -0,0 +1,8 @@
1
+ export * from './esolve-survey-record.interface';
2
+ export * from './esolve-survey-options-question-record.interface';
3
+ export * from './esolve-survey-question-record.type';
4
+ export * from './esolve-survey-option.interface';
5
+ export * from './esolve-survey-text-question-record.interface';
6
+ export * from './esolve-survey-values-question-record.interface';
7
+ export * from './esolve-survey-options.interface';
8
+ export * from './esolve-survey-answer-response.interface';
@@ -0,0 +1,7 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "@angular/common";
3
+ export declare class NgEsolveConnectSurveyModule {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgEsolveConnectSurveyModule, never>;
5
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NgEsolveConnectSurveyModule, never, [typeof i1.CommonModule], never>;
6
+ static ɵinj: i0.ɵɵInjectorDeclaration<NgEsolveConnectSurveyModule>;
7
+ }
@@ -0,0 +1,84 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { Observable } from 'rxjs';
3
+ import { EsolveConnectConfig, EsolveErrorHandlerService, EsolveResponseHandlerService } from '@esolve/ng-esolve-connect';
4
+ import { EsolveSurvey, EsolveSurveyAnswerResult } from '../classes';
5
+ import * as i0 from "@angular/core";
6
+ export declare class EsolveSurveyService {
7
+ private config;
8
+ private http;
9
+ private errorHandler;
10
+ private responseHandler;
11
+ constructor(config: EsolveConnectConfig, http: HttpClient, errorHandler: EsolveErrorHandlerService, responseHandler: EsolveResponseHandlerService);
12
+ /**
13
+ * Get survey from eSolve API
14
+ *
15
+ * @param options
16
+ *
17
+ * @returns An `Observable` with requested survey
18
+ */
19
+ getSurvey(options: {
20
+ id: number;
21
+ transaction_id?: number;
22
+ }): Observable<EsolveSurvey>;
23
+ getSurvey(options: {
24
+ identifier: string;
25
+ transaction_id?: number;
26
+ }): Observable<EsolveSurvey>;
27
+ /**
28
+ * Get survey from eSolve API
29
+ *
30
+ * @param id
31
+ * @param transaction_id
32
+ *
33
+ * @returns An `Observable` with requested survey
34
+ */
35
+ getSurvey(id: number, transaction_id?: number): Observable<EsolveSurvey>;
36
+ /**
37
+ * Get survey from eSolve API
38
+ *
39
+ * @param identifier
40
+ * @param transaction_id
41
+ *
42
+ * @returns An `Observable` with requested survey
43
+ */
44
+ getSurvey(identifier: string, transaction_id?: number): Observable<EsolveSurvey>;
45
+ /**
46
+ * Set the survey answer
47
+ *
48
+ * @param data
49
+ * @param options
50
+ *
51
+ * @returns An `Observable` with the result
52
+ */
53
+ setSurveyAnswer(data: FormData, options: {
54
+ id: number;
55
+ transaction_id?: number;
56
+ }): Observable<EsolveSurveyAnswerResult>;
57
+ setSurveyAnswer(data: FormData, options: {
58
+ identifier: string;
59
+ transaction_id?: number;
60
+ }): Observable<EsolveSurveyAnswerResult>;
61
+ /**
62
+ * Set the survey answer
63
+ *
64
+ * @param data
65
+ * @param id
66
+ * @param transaction_id
67
+ *
68
+ * @returns An `Observable` with the result
69
+ */
70
+ setSurveyAnswer(data: FormData, id: number, transaction_id?: number): Observable<EsolveSurveyAnswerResult>;
71
+ /**
72
+ * Set the survey answer
73
+ *
74
+ * @param data
75
+ * @param identifier
76
+ * @param transaction_id
77
+ *
78
+ * @returns An `Observable` with the result
79
+ */
80
+ setSurveyAnswer(data: FormData, identifier: string, transaction_id?: number): Observable<EsolveSurveyAnswerResult>;
81
+ private setParams;
82
+ static ɵfac: i0.ɵɵFactoryDeclaration<EsolveSurveyService, never>;
83
+ static ɵprov: i0.ɵɵInjectableDeclaration<EsolveSurveyService>;
84
+ }
@@ -0,0 +1 @@
1
+ export * from './esolve-survey.service';
@@ -0,0 +1 @@
1
+ export declare type EsolveSurveyOptionsQuestionType = 'rating' | 'select';
@@ -0,0 +1,2 @@
1
+ import { EsolveSurveyOptionsQuestionRecord, EsolveSurveyTextQuestionRecord, EsolveSurveyValuesQuestionRecord } from '../interfaces';
2
+ export declare type EsolveSurveyQuestionRecordList = (EsolveSurveyTextQuestionRecord | EsolveSurveyOptionsQuestionRecord | EsolveSurveyValuesQuestionRecord)[];
@@ -0,0 +1,4 @@
1
+ import { EsolveSurveyOptionsQuestionType } from './esolve-survey-options-question-type.type';
2
+ import { EsolveSurveyTextQuestionType } from './esolve-survey-text-question-type.type';
3
+ import { EsolveSurveyValuesQuestionType } from './esolve-survey-values-question-type.type';
4
+ export declare type EsolveSurveyQuestionType = EsolveSurveyTextQuestionType | EsolveSurveyOptionsQuestionType | EsolveSurveyValuesQuestionType;
@@ -0,0 +1 @@
1
+ export declare type EsolveSurveyTextQuestionType = 'input' | 'textarea';
@@ -0,0 +1 @@
1
+ export declare type EsolveSurveyType = 'general' | 'anonymous' | 'transaction';
@@ -0,0 +1 @@
1
+ export declare type EsolveSurveyValuesQuestionType = 'check_boxes' | 'radio_boxes';
@@ -0,0 +1,6 @@
1
+ export * from './esolve-survey-type.type';
2
+ export * from './esolve-survey-options-question-type.type';
3
+ export * from './esolve-survey-question-type.type';
4
+ export * from './esolve-survey-text-question-type.type';
5
+ export * from './esolve-survey-values-question-type.type';
6
+ export * from './esolve-survey-question-record-list.type';