@constructor-io/constructorio-node 5.1.0 → 5.1.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@constructor-io/constructorio-node",
3
- "version": "5.1.0",
3
+ "version": "5.1.2",
4
4
  "description": "Constructor.io Node.js client",
5
5
  "main": "src/constructorio.js",
6
6
  "types": "src/types/constructorio.d.ts",
@@ -49,7 +49,7 @@
49
49
  "jsdoc": "^4.0.2",
50
50
  "license-checker": "^25.0.1",
51
51
  "lodash.clonedeep": "^4.5.0",
52
- "mocha": "^9.1.3",
52
+ "mocha": "^11.1.0",
53
53
  "nyc": "^15.1.0",
54
54
  "sinon": "^7.5.0",
55
55
  "sinon-chai": "^3.7.0",
@@ -108,7 +108,7 @@ class Quizzes {
108
108
  * @description Retrieve quiz question from Constructor.io API
109
109
  * @param {string} quizId - The identifier of the quiz
110
110
  * @param {string} parameters - Additional parameters to refine result set
111
- * @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 empty string ("") if skipped
111
+ * @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 empty string ("") if the question is skippable: i.e., configured as `is_skippable:true`.
112
112
  * @param {string} [parameters.section] - Product catalog section
113
113
  * @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 [here]{@link https://docs.constructor.com/reference/configuration-quizzes}
114
114
  * @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 [here]{@link https://docs.constructor.com/reference/configuration-quizzes}
@@ -186,7 +186,7 @@ class Quizzes {
186
186
  * @description Retrieve quiz recommendation and filter expression from Constructor.io API
187
187
  * @param {string} quizId - The identifier of the quiz
188
188
  * @param {string} parameters - Additional parameters to refine result set
189
- * @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 empty string ("") if skipped
189
+ * @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 empty string ("") if the question is skippable: i.e., configured as `is_skippable:true`.
190
190
  * @param {string} [parameters.section] - Product catalog section
191
191
  * @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 [here]{@link https://docs.constructor.com/reference/configuration-quizzes}
192
192
  * @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 [here]{@link https://docs.constructor.com/reference/configuration-quizzes}