@constructor-io/constructorio-client-javascript 2.59.0 → 2.59.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.
@@ -133,7 +133,7 @@ var Quizzes = /*#__PURE__*/function () {
133
133
  * @param {string} quizId - The identifier of the quiz
134
134
  * @param {string} [parameters] - Additional parameters to refine result set
135
135
  * @param {string} [parameters.section] - Product catalog section
136
- * @param {array} [parameters.answers] - An array of answers in the format [[1,2],[1]]
136
+ * @param {array} [parameters.answers] - An array of answers in the format [[1,2], [1], ["true"], ["seen"], [""]]. Based on the question type, answers should either be an integer, "true"/"false", "seen" or an empty string ("") if skipped
137
137
  * @param {string} [parameters.quizVersionId] - Version identifier for the quiz. Version ID will be returned with the first request and it should be passed with subsequent requests. More information can be found: https://docs.constructor.com/reference/configuration-quizzes
138
138
  * @param {string} [parameters.quizSessionId] - Session identifier for the quiz. Session ID will be returned with the first request and it should be passed with subsequent requests. More information can be found: https://docs.constructor.com/reference/configuration-quizzes
139
139
  * @param {object} [networkParameters] - Parameters relevant to the network request
@@ -183,7 +183,7 @@ var Quizzes = /*#__PURE__*/function () {
183
183
  * @description Retrieve quiz recommendation and filter expression from Constructor.io API
184
184
  * @param {string} quizId - The identifier of the quiz
185
185
  * @param {string} parameters - Additional parameters to refine result set
186
- * @param {array} parameters.answers - An array of answers in the format [[1,2],[1]]
186
+ * @param {array} parameters.answers - An array of answers in the format [[1,2], [1], ["true"], ["seen"], [""]]. Based on the question type, answers should either be an integer, "true"/"false", "seen" or an empty string ("") if skipped
187
187
  * @param {string} [parameters.section] - Product catalog section
188
188
  * @param {string} [parameters.quizVersionId] - Version identifier for the quiz. Version ID will be returned with the first request and it should be passed with subsequent requests. More information can be found: https://docs.constructor.com/reference/configuration-quizzes
189
189
  * @param {string} [parameters.quizSessionId] - Session identifier for the quiz. Session ID will be returned with the first request and it should be passed with subsequent requests. More information can be found: https://docs.constructor.com/reference/configuration-quizzes
@@ -11,6 +11,7 @@ export interface RecommendationsParameters {
11
11
  filters?: Record<string, any>;
12
12
  variationsMap?: VariationsMap;
13
13
  hiddenFields?: string[];
14
+ preFilterExpression?: FilterExpression;
14
15
  }
15
16
 
16
17
  declare class Recommendations {
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.59.0';
7
+ var _default = '2.59.1';
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.59.0",
3
+ "version": "2.59.1",
4
4
  "description": "Constructor.io JavaScript client",
5
5
  "main": "lib/constructorio.js",
6
6
  "types": "lib/types/index.d.ts",