freemium-survey-components 1.0.63 → 1.0.65

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.
@@ -1,6 +1,4 @@
1
1
  import { SurveyType } from './types';
2
- export declare const surveyCSAT: SurveyType;
3
- export declare const surveyYesNo: SurveyType;
4
2
  export declare const newSurvey: SurveyType;
5
3
  export declare const mockPlaceholders: {
6
4
  '{{contact.user_created_date}}': string;
@@ -1,6 +1,20 @@
1
1
  export declare type SurveyTypes = 'NPS' | 'CES' | 'CSAT';
2
2
  export declare type SurveyStateTypes = 'DRAFT' | 'ACTIVE' | 'PAUSE';
3
- export declare type QuestionType = 'TEXT' | 'NUMBER' | 'PARAGRAPH' | 'BOOLEAN' | 'DATE' | 'RANGE' | 'DROPDOWN' | 'CHECKBOX' | 'RADIO' | 'THANK_YOU' | 'MULTI_SELECT' | 'MULTI_SELECT_LOOKUP' | 'MULTI_CHOICE';
3
+ export declare type PromptChoiceType = {
4
+ id?: string | null;
5
+ value?: string | null;
6
+ };
7
+ export declare type PromptSettingsTypeVariants = 'THUMBS' | 'TICK';
8
+ export declare type PromptSettingsType = {
9
+ text?: string | null;
10
+ choices?: PromptChoiceType[] | null;
11
+ is_enabled?: boolean | null;
12
+ is_declined?: boolean | null;
13
+ declined_message?: string | null;
14
+ type_variant?: PromptSettingsTypeVariants | null;
15
+ reverse_order?: boolean | null;
16
+ };
17
+ export declare type QuestionType = 'TEXT' | 'NUMBER' | 'PARAGRAPH' | 'BOOLEAN' | 'DATE' | 'RANGE' | 'DROPDOWN' | 'CHECKBOX' | 'RADIO' | 'THANK_YOU' | 'MULTI_SELECT' | 'MULTI_SELECT_LOOKUP';
4
18
  export declare type QuestionThemeType = SurveyTypes;
5
19
  export declare type QuestionTypeVariantType = 'EMOJI' | 'STAR' | 'TEXT' | 'NUMBER' | 'THUMBS' | 'TICK';
6
20
  export declare type ScalePropertiesOrderType = 'ascending' | 'descending';
@@ -17,12 +31,11 @@ export declare type ScalePropertiesButtonStyleType = {
17
31
  shape?: ButtonStyleShapeTypes | null;
18
32
  type?: ButtonStyleTypes | null;
19
33
  };
20
- export declare type PointScaleRatingType = 3 | 4 | 5 | 7 | 10;
34
+ export declare type PointScaleRatingType = 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
21
35
  export declare type PropertiesLabelsPreferenceType = 'all' | 'edges' | 'none';
22
36
  export declare type ScalePropertiesLabelsType = {
23
37
  preference?: PropertiesLabelsPreferenceType | null;
24
38
  values?: string[] | null;
25
- icons?: string[] | null;
26
39
  };
27
40
  export declare type QuestionScalePropertiesType = {
28
41
  order?: ScalePropertiesOrderType | null;
@@ -40,11 +53,12 @@ export declare type QuestionTypeInfoMetaType = {
40
53
  autoProceed?: boolean | null;
41
54
  autoProceedDelay?: number | null;
42
55
  proceedBtnText?: string | null;
56
+ deleted_on?: string | null;
43
57
  };
44
58
  export declare type SurveyQuestionTypeInfo = {
45
59
  comment?: boolean | null;
46
60
  driver?: boolean | null;
47
- question_type: QuestionType | null;
61
+ question_type?: QuestionType | null;
48
62
  question_theme?: QuestionThemeType | null;
49
63
  type_variant?: QuestionTypeVariantType | null;
50
64
  scale_properties?: QuestionScalePropertiesType | null;
@@ -58,11 +72,15 @@ export declare type DependentBlockType = {
58
72
  values?: string[] | null;
59
73
  next_block?: string | null;
60
74
  };
75
+ export declare type QuestionChoiceMetaType = {
76
+ is_deleted?: boolean | null;
77
+ };
61
78
  export declare type QuestionChoiceType = {
62
79
  _id?: string | null;
63
80
  id?: string | null;
64
81
  position?: number | string | null;
65
82
  value?: string | null;
83
+ meta?: QuestionChoiceMetaType | null;
66
84
  };
67
85
  export declare type SurveyQuestionType = {
68
86
  id?: string | null;
@@ -72,7 +90,6 @@ export declare type SurveyQuestionType = {
72
90
  type_info?: SurveyQuestionTypeInfo | null;
73
91
  dependent_blocks?: DependentBlockType[] | null;
74
92
  choices?: QuestionChoiceType[] | null;
75
- deleted?: boolean;
76
93
  };
77
94
  export declare type SurveyQuestionDetailsType = {
78
95
  questions?: SurveyQuestionType[] | null;
@@ -107,9 +124,24 @@ export declare type SurveyBlockCategoryType = {
107
124
  question_name?: string | null;
108
125
  };
109
126
  export declare type SurveyBlockNavType = 'NEXT' | 'END' | 'SPECIFIC' | 'BASED_ON_ANSWER';
127
+ export declare type DisplayLogicOperators = 'IS' | 'IS_NOT' | 'EMPTY' | 'NOT_EMPTY' | 'LESSER_THAN' | 'GREATER_THAN' | 'LESSER_THAN_OR_EQUALS' | 'GREATER_THAN_OR_EQUALS' | 'CONTAINS' | 'NOT_CONTAINS' | 'INCLUDES' | 'NOT_INCLUDES' | 'BETWEEN' | 'STARTS_WITH' | 'ENDS_WITH' | 'AFTER' | 'BEFORE';
128
+ export declare type DlDisplayTypes = 'SHOW' | 'HIDE';
129
+ export declare type DisplayLogicSubTypeOptions = 'RATING' | 'RATING_GROUP';
130
+ export declare type DlLogicTypes = 'BASED_ON_ANSWER' | 'BASED_ON_RATING_GROUP' | 'BASED_ON_CONTACT_FIELD';
131
+ export declare type DisplayLogicType = {
132
+ order?: number | null;
133
+ operator?: DisplayLogicOperators | null;
134
+ expected_value?: string[] | null;
135
+ display_type?: DlDisplayTypes | null;
136
+ subType?: DisplayLogicSubTypeOptions | null;
137
+ logic_type?: DlLogicTypes | null;
138
+ based_on_question_name?: string | null;
139
+ based_on_question_type?: string | null;
140
+ based_on_contact_field_name?: string | null;
141
+ };
110
142
  export declare type SurveyBlockType = {
111
143
  is_deleted?: boolean | null;
112
- name: string;
144
+ name?: string | null;
113
145
  title?: string | null;
114
146
  order?: number | null;
115
147
  required?: boolean | null;
@@ -117,20 +149,9 @@ export declare type SurveyBlockType = {
117
149
  parent_question_name?: string | null;
118
150
  category?: SurveyBlockCategoryType[] | null;
119
151
  nav_option?: SurveyBlockNavType | null;
120
- };
121
- export declare type PromptChoiceType = {
122
- id?: string | null;
123
- value?: string | null;
124
- };
125
- export declare type PromptSettingsTypeVariants = 'THUMBS' | 'TICK';
126
- export declare type PromptSettingsType = {
127
- text?: string | null;
128
- choices?: PromptChoiceType[] | null;
129
- is_enabled?: boolean | null;
130
- is_declined?: boolean | null;
131
- declined_message?: string | null;
132
- type_variant?: PromptSettingsTypeVariants | null;
133
- reverse_order?: boolean | null;
152
+ question_type?: QuestionType | null;
153
+ deleted_on?: string | null;
154
+ display_logic?: DisplayLogicType[] | null;
134
155
  };
135
156
  export declare type SurveyType = {
136
157
  id?: string | null;
@@ -153,6 +174,9 @@ export declare type SurveyType = {
153
174
  template?: boolean | null;
154
175
  header_message?: string | null;
155
176
  contact_info?: any | null;
177
+ schedule_info?: null;
178
+ throttle_info?: null;
179
+ channel_info?: null;
156
180
  product_client_id?: string | null;
157
181
  blocks?: SurveyBlockType[] | null;
158
182
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "freemium-survey-components",
3
- "version": "1.0.63",
3
+ "version": "1.0.65",
4
4
  "description": "React Survey Ui Components",
5
5
  "main": "lib/index.cjs.js",
6
6
  "module": "lib/index.esm.js",