@constructor-io/constructorio-client-javascript 2.35.13 → 2.35.14

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.
@@ -83,6 +83,10 @@ export interface QuizResultsResponse extends Record<string, any> {
83
83
  quiz_version_id: string;
84
84
  quiz_session_id: string;
85
85
  quiz_id: string;
86
+ quiz_selected_options: Array<{
87
+ value: string;
88
+ has_attribute: boolean;
89
+ }>;
86
90
  }
87
91
 
88
92
  export interface QuizResultData extends Record<string, any> {
@@ -97,7 +101,7 @@ export interface QuizResultData extends Record<string, any> {
97
101
  variations: Record<string, any>[];
98
102
  }
99
103
 
100
- export type Question = SelectQuestion | OpenQuestion | CoverQuestion
104
+ export type Question = SelectQuestion | OpenQuestion | CoverQuestion;
101
105
 
102
106
  export interface BaseQuestion extends Record<string, any> {
103
107
  id: number;
@@ -108,17 +112,17 @@ export interface BaseQuestion extends Record<string, any> {
108
112
  }
109
113
 
110
114
  export interface SelectQuestion extends BaseQuestion {
111
- type: 'single' | 'multiple'
115
+ type: 'single' | 'multiple';
112
116
  options: QuestionOption[];
113
117
  }
114
118
 
115
119
  export interface OpenQuestion extends BaseQuestion {
116
- type: 'open'
120
+ type: 'open';
117
121
  input_placeholder?: Nullable<string>;
118
122
  }
119
123
 
120
124
  export interface CoverQuestion extends BaseQuestion {
121
- type: 'cover'
125
+ type: 'cover';
122
126
  }
123
127
 
124
128
  export interface QuizResult extends Record<string, any> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@constructor-io/constructorio-client-javascript",
3
- "version": "2.35.13",
3
+ "version": "2.35.14",
4
4
  "description": "Constructor.io JavaScript client",
5
5
  "main": "lib/constructorio.js",
6
6
  "types": "lib/types/constructorio.d.ts",