@constructor-io/constructorio-client-javascript 2.68.0 → 2.68.1
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/lib/types/quizzes.d.ts +10 -3
- package/lib/version.js +1 -1
- package/package.json +1 -1
package/lib/types/quizzes.d.ts
CHANGED
|
@@ -137,7 +137,7 @@ export interface BaseQuestion extends Record<string, any> {
|
|
|
137
137
|
export interface FilterValueQuestion extends BaseQuestion {
|
|
138
138
|
type: 'single_filter_value' |'multiple_filter_values';
|
|
139
139
|
filter_name: string;
|
|
140
|
-
options:
|
|
140
|
+
options: FilterQuestionOption[];
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
export interface SelectQuestion extends BaseQuestion {
|
|
@@ -159,8 +159,7 @@ export interface QuizResult extends Record<string, any> {
|
|
|
159
159
|
results_url: string;
|
|
160
160
|
}
|
|
161
161
|
|
|
162
|
-
export interface
|
|
163
|
-
id: number;
|
|
162
|
+
export interface BaseQuestionOption extends Record<string, any> {
|
|
164
163
|
value: string;
|
|
165
164
|
attribute: Nullable<{
|
|
166
165
|
name: string;
|
|
@@ -169,6 +168,14 @@ export interface QuestionOption extends Record<string, any> {
|
|
|
169
168
|
images?: Nullable<QuestionImages>;
|
|
170
169
|
}
|
|
171
170
|
|
|
171
|
+
export interface QuestionOption extends BaseQuestionOption {
|
|
172
|
+
id: number;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
export interface FilterQuestionOption extends BaseQuestionOption {
|
|
176
|
+
id: string;
|
|
177
|
+
}
|
|
178
|
+
|
|
172
179
|
export interface QuestionImages extends Record<string, any> {
|
|
173
180
|
primary_url?: Nullable<string>;
|
|
174
181
|
primary_alt?: Nullable<string>;
|
package/lib/version.js
CHANGED