@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.
- package/esm2020/lib/cart/esolve-cart.service.mjs +7 -4
- package/esm2020/lib/coupons/esolve-coupons.service.mjs +3 -2
- package/esm2020/lib/payment/esolve-payment.service.mjs +7 -6
- package/esm2020/lib/session/esolve-session-metadata.service.mjs +77 -0
- package/esm2020/lib/session/index.mjs +2 -1
- package/esm2020/lib/shared/geocoder/esolve-geocoder.service.mjs +5 -3
- package/esm2020/lib/shared/response/esolve-get-response.interface.mjs +1 -1
- package/esm2020/lib/stock/esolve-stock.service.mjs +3 -2
- package/esm2020/media/lib/classes/esolve-media-article.model.mjs +8 -6
- package/esm2020/survey/esolve-ng-esolve-connect-survey.mjs +5 -0
- package/esm2020/survey/index.mjs +6 -0
- package/esm2020/survey/lib/classes/esolve-survey-answer-result.model.mjs +11 -0
- package/esm2020/survey/lib/classes/esolve-survey-check-question.model.mjs +11 -0
- package/esm2020/survey/lib/classes/esolve-survey-input-question.model.mjs +11 -0
- package/esm2020/survey/lib/classes/esolve-survey-options-question.model.mjs +21 -0
- package/esm2020/survey/lib/classes/esolve-survey-question.model.mjs +10 -0
- package/esm2020/survey/lib/classes/esolve-survey-radio-question.model.mjs +11 -0
- package/esm2020/survey/lib/classes/esolve-survey-rating-question.model.mjs +17 -0
- package/esm2020/survey/lib/classes/esolve-survey-select-question.model.mjs +17 -0
- package/esm2020/survey/lib/classes/esolve-survey-text-question.model.mjs +10 -0
- package/esm2020/survey/lib/classes/esolve-survey-textarea-question.model.mjs +11 -0
- package/esm2020/survey/lib/classes/esolve-survey-values-question.model.mjs +11 -0
- package/esm2020/survey/lib/classes/esolve-survey.model.mjs +60 -0
- package/esm2020/survey/lib/classes/index.mjs +13 -0
- package/esm2020/survey/lib/interfaces/esolve-survey-answer-response.interface.mjs +2 -0
- package/esm2020/survey/lib/interfaces/esolve-survey-option.interface.mjs +2 -0
- package/esm2020/survey/lib/interfaces/esolve-survey-options-question-record.interface.mjs +2 -0
- package/esm2020/survey/lib/interfaces/esolve-survey-options.interface.mjs +2 -0
- package/esm2020/survey/lib/interfaces/esolve-survey-question-record.type.mjs +2 -0
- package/esm2020/survey/lib/interfaces/esolve-survey-record.interface.mjs +2 -0
- package/esm2020/survey/lib/interfaces/esolve-survey-text-question-record.interface.mjs +2 -0
- package/esm2020/survey/lib/interfaces/esolve-survey-values-question-record.interface.mjs +2 -0
- package/esm2020/survey/lib/interfaces/index.mjs +9 -0
- package/esm2020/survey/lib/ng-esolve-connect-survey.module.mjs +15 -0
- package/esm2020/survey/lib/services/esolve-survey.service.mjs +105 -0
- package/esm2020/survey/lib/services/index.mjs +2 -0
- package/esm2020/survey/lib/types/esolve-survey-options-question-type.type.mjs +2 -0
- package/esm2020/survey/lib/types/esolve-survey-question-record-list.type.mjs +2 -0
- package/esm2020/survey/lib/types/esolve-survey-question-type.type.mjs +2 -0
- package/esm2020/survey/lib/types/esolve-survey-text-question-type.type.mjs +2 -0
- package/esm2020/survey/lib/types/esolve-survey-type.type.mjs +2 -0
- package/esm2020/survey/lib/types/esolve-survey-values-question-type.type.mjs +2 -0
- package/esm2020/survey/lib/types/index.mjs +7 -0
- package/fesm2015/esolve-ng-esolve-connect-media.mjs +6 -5
- package/fesm2015/esolve-ng-esolve-connect-media.mjs.map +1 -1
- package/fesm2015/esolve-ng-esolve-connect-survey.mjs +310 -0
- package/fesm2015/esolve-ng-esolve-connect-survey.mjs.map +1 -0
- package/fesm2015/esolve-ng-esolve-connect.mjs +89 -12
- package/fesm2015/esolve-ng-esolve-connect.mjs.map +1 -1
- package/fesm2020/esolve-ng-esolve-connect-media.mjs +6 -5
- package/fesm2020/esolve-ng-esolve-connect-media.mjs.map +1 -1
- package/fesm2020/esolve-ng-esolve-connect-survey.mjs +308 -0
- package/fesm2020/esolve-ng-esolve-connect-survey.mjs.map +1 -0
- package/fesm2020/esolve-ng-esolve-connect.mjs +87 -12
- package/fesm2020/esolve-ng-esolve-connect.mjs.map +1 -1
- package/lib/session/esolve-session-metadata.service.d.ts +19 -0
- package/lib/session/index.d.ts +1 -0
- package/lib/shared/response/esolve-get-response.interface.d.ts +1 -1
- package/media/lib/classes/esolve-media-article.model.d.ts +1 -1
- package/package.json +9 -1
- package/survey/README.md +3 -0
- package/survey/index.d.ts +5 -0
- package/survey/lib/classes/esolve-survey-answer-result.model.d.ts +6 -0
- package/survey/lib/classes/esolve-survey-check-question.model.d.ts +6 -0
- package/survey/lib/classes/esolve-survey-input-question.model.d.ts +6 -0
- package/survey/lib/classes/esolve-survey-options-question.model.d.ts +7 -0
- package/survey/lib/classes/esolve-survey-question.model.d.ts +11 -0
- package/survey/lib/classes/esolve-survey-radio-question.model.d.ts +6 -0
- package/survey/lib/classes/esolve-survey-rating-question.model.d.ts +7 -0
- package/survey/lib/classes/esolve-survey-select-question.model.d.ts +7 -0
- package/survey/lib/classes/esolve-survey-text-question.model.d.ts +7 -0
- package/survey/lib/classes/esolve-survey-textarea-question.model.d.ts +6 -0
- package/survey/lib/classes/esolve-survey-values-question.model.d.ts +6 -0
- package/survey/lib/classes/esolve-survey.model.d.ts +15 -0
- package/survey/lib/classes/index.d.ts +12 -0
- package/survey/lib/interfaces/esolve-survey-answer-response.interface.d.ts +4 -0
- package/survey/lib/interfaces/esolve-survey-option.interface.d.ts +4 -0
- package/survey/lib/interfaces/esolve-survey-options-question-record.interface.d.ts +7 -0
- package/survey/lib/interfaces/esolve-survey-options.interface.d.ts +5 -0
- package/survey/lib/interfaces/esolve-survey-question-record.type.d.ts +9 -0
- package/survey/lib/interfaces/esolve-survey-record.interface.d.ts +9 -0
- package/survey/lib/interfaces/esolve-survey-text-question-record.interface.d.ts +7 -0
- package/survey/lib/interfaces/esolve-survey-values-question-record.interface.d.ts +6 -0
- package/survey/lib/interfaces/index.d.ts +8 -0
- package/survey/lib/ng-esolve-connect-survey.module.d.ts +7 -0
- package/survey/lib/services/esolve-survey.service.d.ts +84 -0
- package/survey/lib/services/index.d.ts +1 -0
- package/survey/lib/types/esolve-survey-options-question-type.type.d.ts +1 -0
- package/survey/lib/types/esolve-survey-question-record-list.type.d.ts +2 -0
- package/survey/lib/types/esolve-survey-question-type.type.d.ts +4 -0
- package/survey/lib/types/esolve-survey-text-question-type.type.d.ts +1 -0
- package/survey/lib/types/esolve-survey-type.type.d.ts +1 -0
- package/survey/lib/types/esolve-survey-values-question-type.type.d.ts +1 -0
- 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
|
+
}
|
package/lib/session/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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.
|
|
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
|
package/survey/README.md
ADDED
|
@@ -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,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,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';
|