@constructor-io/constructorio-client-javascript 2.35.2 → 2.35.3
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/modules/browse.js
CHANGED
|
@@ -242,7 +242,7 @@ var Browse = /*#__PURE__*/function () {
|
|
|
242
242
|
* @param {string[]} [parameters.hiddenFields] - Hidden metadata fields to return
|
|
243
243
|
* @param {string[]} [parameters.hiddenFacets] - Hidden facets to return
|
|
244
244
|
* @param {object} [parameters.variationsMap] - The variations map object to aggregate variations. Please refer to https://docs.constructor.io/rest_api/variations_mapping for details
|
|
245
|
-
* @param {object} [parameters.
|
|
245
|
+
* @param {object} [parameters.qsParam] - Parameters listed above can be serialized into a JSON object and parsed through this parameter. Please refer to https://docs.constructor.io/rest_api/browse/queries/
|
|
246
246
|
* @param {object} [networkParameters] - Parameters relevant to the network request
|
|
247
247
|
* @param {number} [networkParameters.timeout] - Request timeout (in milliseconds)
|
|
248
248
|
* @returns {Promise}
|
package/lib/modules/quizzes.js
CHANGED
|
@@ -74,7 +74,7 @@ function createQuizUrl(quizId, parameters, options, path) {
|
|
|
74
74
|
} // Pull a (answers) from parameters and transform
|
|
75
75
|
|
|
76
76
|
|
|
77
|
-
if (answers) {
|
|
77
|
+
if (answers && answers.length) {
|
|
78
78
|
answersParamString = "&".concat(helpers.stringify({
|
|
79
79
|
a: answers.map(function (ans) {
|
|
80
80
|
return (0, _toConsumableArray2["default"])(ans).join(',');
|
package/lib/modules/search.js
CHANGED
|
@@ -186,7 +186,7 @@ var Search = /*#__PURE__*/function () {
|
|
|
186
186
|
* @param {string[]} [parameters.hiddenFields] - Hidden metadata fields to return
|
|
187
187
|
* @param {string[]} [parameters.hiddenFacets] - Hidden facets to return
|
|
188
188
|
* @param {object} [parameters.variationsMap] - The variations map object to aggregate variations. Please refer to https://docs.constructor.io/rest_api/variations_mapping for details
|
|
189
|
-
* @param {object} [parameters.
|
|
189
|
+
* @param {object} [parameters.qsParam] - Parameters listed above can be serialized into a JSON object and parsed through this parameter. Please refer to https://docs.constructor.io/rest_api/search/queries/
|
|
190
190
|
* @param {object} [networkParameters] - Parameters relevant to the network request
|
|
191
191
|
* @param {number} [networkParameters.timeout] - Request timeout (in milliseconds)
|
|
192
192
|
* @returns {Promise}
|
|
@@ -274,7 +274,7 @@ var Search = /*#__PURE__*/function () {
|
|
|
274
274
|
* @param {object} [parameters.variationsMap] - The variations map object to aggregate variations. Please refer to https://docs.constructor.io/rest_api/variations_mapping for details
|
|
275
275
|
* @param {string[]} [parameters.hiddenFields] - Hidden metadata fields to return
|
|
276
276
|
* @param {string[]} [parameters.hiddenFacets] - Hidden facets to return
|
|
277
|
-
* @param {object} [parameters.
|
|
277
|
+
* @param {object} [parameters.qsParam] - Parameters listed above can be serialized into a JSON object and parsed through this parameter. Please refer to https://docs.constructor.io/rest_api/search/queries/
|
|
278
278
|
* @param {object} [networkParameters] - Parameters relevant to the network request
|
|
279
279
|
* @param {number} [networkParameters.timeout] - Request timeout (in milliseconds)
|
|
280
280
|
* @returns {Promise}
|
package/lib/types/browse.d.ts
CHANGED
package/lib/types/search.d.ts
CHANGED