@constructor-io/constructorio-client-javascript 2.67.4 → 2.67.5

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/README.md CHANGED
@@ -37,10 +37,11 @@ const constructorio = new ConstructorioClient({
37
37
 
38
38
  ## 4. Retrieve Results
39
39
 
40
- After instantiating an instance of the client, four modules will be exposed as properties to help retrieve data from Constructor.io: `search`, `browse`, `autocomplete`, `recommendations` and `tracker`.
40
+ After instantiating an instance of the client, seven modules will be exposed as properties to help retrieve data or send behavioral events: `search`, `browse`, `autocomplete`, `recommendations`, `quizzes`, `agent`, and `tracker`.
41
41
 
42
42
  #### Dispatched events
43
- The `search`, `browse`, `recommendations` and `autocomplete` modules may dispatch custom events on `window` with response data when a request has been completed. The event name follows the following structure: `cio.client.[moduleName].[methodName].completed`. Example consuming code can be found below:
43
+
44
+ Modules may dispatch custom events on the browser `window` with response data when a request has been completed. The event name follows the following structure: `cio.client.[moduleName].[methodName].completed`. Example consuming code can be found below:
44
45
 
45
46
  ```javascript
46
47
  window.addEventListener('cio.client.search.getSearchResults.completed', (event) => {
@@ -123,6 +123,7 @@ export interface BaseQuestion extends Record<string, any> {
123
123
  description: string;
124
124
  cta_text: Nullable<string>;
125
125
  images?: Nullable<QuestionImages>;
126
+ is_skippable: Boolean;
126
127
  }
127
128
 
128
129
  export interface FilterValueQuestion extends BaseQuestion {
@@ -188,6 +189,7 @@ export interface QuizResultsConfig extends Record<string, any> {
188
189
  }
189
190
 
190
191
  export interface QuizResultsConfigResponse extends Record<string, any> {
192
+ metadata: Nullable<object>,
191
193
  results_config: QuizResultsConfig,
192
194
  quiz_version_id: string;
193
195
  quiz_id: string;
package/lib/version.js CHANGED
@@ -4,5 +4,5 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports["default"] = void 0;
7
- var _default = '2.67.4';
7
+ var _default = '2.67.5';
8
8
  exports["default"] = _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@constructor-io/constructorio-client-javascript",
3
- "version": "2.67.4",
3
+ "version": "2.67.5",
4
4
  "description": "Constructor.io JavaScript client",
5
5
  "main": "lib/constructorio.js",
6
6
  "types": "lib/types/index.d.ts",