@survicate/survicate-web-package 27.3.1-npm → 27.3.4-npm
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/package.json +1 -1
- package/survicate_widget.d.ts +11 -6
- package/survicate_widget.js +1 -1
package/package.json
CHANGED
package/survicate_widget.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export enum SurveyType {
|
|
|
15
15
|
PageSurvey = 'PageSurvey',
|
|
16
16
|
MobileSurvey = 'MobileSurvey',
|
|
17
17
|
FeedbackButton = 'FeedbackButton',
|
|
18
|
-
IntercomSurvey = 'IntercomSurvey'
|
|
18
|
+
IntercomSurvey = 'IntercomSurvey',
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
export interface ShowSurveyOptions {
|
|
@@ -45,7 +45,7 @@ export interface ConfigModel {
|
|
|
45
45
|
disableSensitiveDataPersistence?: boolean;
|
|
46
46
|
hiddenSurveys?: string[];
|
|
47
47
|
nonce?: string;
|
|
48
|
-
traits?: {[key: string]: any};
|
|
48
|
+
traits?: { [key: string]: any };
|
|
49
49
|
workspaceKey: string;
|
|
50
50
|
}
|
|
51
51
|
|
|
@@ -55,7 +55,7 @@ export enum SurveyQuestionAnswerType {
|
|
|
55
55
|
rating = 'rating',
|
|
56
56
|
ranking = 'ranking',
|
|
57
57
|
numericalScale = 'numerical_scale',
|
|
58
|
-
customerSatisfaction = 'csat'
|
|
58
|
+
customerSatisfaction = 'csat',
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
export enum SurveyNpsAnswerType {
|
|
@@ -64,8 +64,8 @@ export enum SurveyNpsAnswerType {
|
|
|
64
64
|
|
|
65
65
|
export interface SurveyPointInfo {
|
|
66
66
|
pointId: number;
|
|
67
|
-
answerType: SurveyQuestionAnswerType | SurveyNpsAnswerType
|
|
68
|
-
answers?: Array<{id: number}>;
|
|
67
|
+
answerType: SurveyQuestionAnswerType | SurveyNpsAnswerType;
|
|
68
|
+
answers?: Array<{ id: number }>;
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
export interface SurveyApi {
|
|
@@ -94,7 +94,12 @@ declare const Survicate: {
|
|
|
94
94
|
retarget: () => void;
|
|
95
95
|
setVisitorTraits: (attributes: VisitorAttributes) => void;
|
|
96
96
|
showSurvey: (id: string, options: ShowSurveyOptions) => boolean;
|
|
97
|
-
submitAnswer: (params: {
|
|
97
|
+
submitAnswer: (params: {
|
|
98
|
+
surveyId: string;
|
|
99
|
+
pointId: number;
|
|
100
|
+
answerId: number;
|
|
101
|
+
answer: string | number;
|
|
102
|
+
}) => void;
|
|
98
103
|
getSurveyPointsMetadata: (surveyId: string) => SurveyPointInfo[] | null;
|
|
99
104
|
traits?: VisitorAttributes;
|
|
100
105
|
};
|