@constructor-io/constructorio-client-javascript 2.67.1 → 2.67.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/lib/.DS_Store +0 -0
- package/lib/modules/browse.js +0 -2
- package/lib/modules/tracker.js +6 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
package/lib/.DS_Store
ADDED
|
Binary file
|
package/lib/modules/browse.js
CHANGED
|
@@ -301,8 +301,6 @@ var Browse = /*#__PURE__*/function () {
|
|
|
301
301
|
* @param {number} [parameters.offset] - The number of results to skip from the beginning (Can't be used together with page)
|
|
302
302
|
* @param {number} [parameters.resultsPerPage] - The number of results per page to return
|
|
303
303
|
* @param {object} [parameters.filters] - Filters used to refine results
|
|
304
|
-
* @param {string} [parameters.sortBy='relevance'] - The sort method for results
|
|
305
|
-
* @param {string} [parameters.sortOrder='descending'] - The sort order for results
|
|
306
304
|
* @param {string} [parameters.section='Products'] - The section name for results
|
|
307
305
|
* @param {object} [parameters.fmtOptions] - The format options used to refine result groups. Please refer to https://docs.constructor.com/reference/browse-browse-results for details
|
|
308
306
|
* @param {string[]} [parameters.hiddenFields] - Hidden metadata fields to return
|
package/lib/modules/tracker.js
CHANGED
|
@@ -568,6 +568,7 @@ var Tracker = /*#__PURE__*/function () {
|
|
|
568
568
|
* @param {string} parameters.originalQuery - The current autocomplete search query
|
|
569
569
|
* @param {string} [parameters.groupId] - Group identifier of the group to search within. Only required if searching within a group, i.e. "Pumpkin in Canned Goods"
|
|
570
570
|
* @param {string} [parameters.displayName] - Display name of group of selected item
|
|
571
|
+
* @param {object} [parameters.analyticsTags] - Pass additional analytics data
|
|
571
572
|
* @param {object} [networkParameters] - Parameters relevant to the network request
|
|
572
573
|
* @param {number} [networkParameters.timeout] - Request timeout (in milliseconds)
|
|
573
574
|
* @returns {(true|Error)}
|
|
@@ -600,7 +601,8 @@ var Tracker = /*#__PURE__*/function () {
|
|
|
600
601
|
groupId = _parameters$groupId4 === void 0 ? group_id : _parameters$groupId4,
|
|
601
602
|
display_name = parameters.display_name,
|
|
602
603
|
_parameters$displayNa2 = parameters.displayName,
|
|
603
|
-
displayName = _parameters$displayNa2 === void 0 ? display_name : _parameters$displayNa2
|
|
604
|
+
displayName = _parameters$displayNa2 === void 0 ? display_name : _parameters$displayNa2,
|
|
605
|
+
analyticsTags = parameters.analyticsTags;
|
|
604
606
|
if (originalQuery) {
|
|
605
607
|
queryParams.original_query = originalQuery;
|
|
606
608
|
}
|
|
@@ -610,6 +612,9 @@ var Tracker = /*#__PURE__*/function () {
|
|
|
610
612
|
display_name: displayName
|
|
611
613
|
};
|
|
612
614
|
}
|
|
615
|
+
if (analyticsTags) {
|
|
616
|
+
queryParams.analytics_tags = analyticsTags;
|
|
617
|
+
}
|
|
613
618
|
this.requests.queue("".concat(url).concat(applyParamsAsString(queryParams, this.options)), undefined, undefined, networkParameters);
|
|
614
619
|
this.requests.send();
|
|
615
620
|
return true;
|
package/lib/version.js
CHANGED