freemium-survey-components 1.0.63 → 1.0.66

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,3 +1,4 @@
1
1
  export * from './survey';
2
+ export * from './types';
2
3
  export * from './components';
3
4
  export * from './survey/meta-channel-preview';
@@ -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;
@@ -98,8 +115,9 @@ export declare type SurveyUiThemeType = {
98
115
  question_text_color?: string | null;
99
116
  css_url?: string | null;
100
117
  };
118
+ export declare type SurveyLayoutType = 'card' | 'standard';
101
119
  export declare type SurveyMetaType = {
102
- survey_layout?: string | null;
120
+ survey_layout?: SurveyLayoutType | null;
103
121
  created_by?: string | null;
104
122
  };
105
123
  export declare type SurveyBlockCategoryType = {
@@ -107,9 +125,24 @@ export declare type SurveyBlockCategoryType = {
107
125
  question_name?: string | null;
108
126
  };
109
127
  export declare type SurveyBlockNavType = 'NEXT' | 'END' | 'SPECIFIC' | 'BASED_ON_ANSWER';
128
+ 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';
129
+ export declare type DlDisplayTypes = 'SHOW' | 'HIDE';
130
+ export declare type DisplayLogicSubTypeOptions = 'RATING' | 'RATING_GROUP';
131
+ export declare type DlLogicTypes = 'BASED_ON_ANSWER' | 'BASED_ON_RATING_GROUP' | 'BASED_ON_CONTACT_FIELD';
132
+ export declare type DisplayLogicType = {
133
+ order?: number | null;
134
+ operator?: DisplayLogicOperators | null;
135
+ expected_value?: string[] | null;
136
+ display_type?: DlDisplayTypes | null;
137
+ subType?: DisplayLogicSubTypeOptions | null;
138
+ logic_type?: DlLogicTypes | null;
139
+ based_on_question_name?: string | null;
140
+ based_on_question_type?: string | null;
141
+ based_on_contact_field_name?: string | null;
142
+ };
110
143
  export declare type SurveyBlockType = {
111
144
  is_deleted?: boolean | null;
112
- name: string;
145
+ name?: string | null;
113
146
  title?: string | null;
114
147
  order?: number | null;
115
148
  required?: boolean | null;
@@ -117,20 +150,9 @@ export declare type SurveyBlockType = {
117
150
  parent_question_name?: string | null;
118
151
  category?: SurveyBlockCategoryType[] | null;
119
152
  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;
153
+ question_type?: QuestionType | null;
154
+ deleted_on?: string | null;
155
+ display_logic?: DisplayLogicType[] | null;
134
156
  };
135
157
  export declare type SurveyType = {
136
158
  id?: string | null;
@@ -153,6 +175,9 @@ export declare type SurveyType = {
153
175
  template?: boolean | null;
154
176
  header_message?: string | null;
155
177
  contact_info?: any | null;
178
+ schedule_info?: null;
179
+ throttle_info?: null;
180
+ channel_info?: null;
156
181
  product_client_id?: string | null;
157
182
  blocks?: SurveyBlockType[] | null;
158
183
  };
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.66",
4
4
  "description": "React Survey Ui Components",
5
5
  "main": "lib/index.cjs.js",
6
6
  "module": "lib/index.esm.js",