@constructor-io/constructorio-client-javascript 2.35.15 → 2.35.16

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.
@@ -619,13 +619,13 @@ var Tracker = /*#__PURE__*/function () {
619
619
  * @param {string} searchTerm - Search results query term
620
620
  * @param {object} parameters - Additional parameters to be sent with request
621
621
  * @param {string} parameters.url - URL of the search results page
622
+ * @param {object[]} parameters.items - List of product item unique identifiers in search results listing
622
623
  * @param {number} [parameters.resultCount] - Total number of results
623
624
  * @param {number} [parameters.resultPage] - Current page of search results
624
625
  * @param {string} [parameters.resultId] - Browse result identifier (returned in response from Constructor)
625
626
  * @param {object} [parameters.selectedFilters] - Selected filters
626
627
  * @param {string} [parameters.sortOrder] - Sort order ('ascending' or 'descending')
627
628
  * @param {string} [parameters.sortBy] - Sorting method
628
- * @param {object[]} [parameters.items] - List of product item unique identifiers in search results listing
629
629
  * @param {string} [parameters.section] - The section name for the item Ex. "Products"
630
630
  * @param {object} [networkParameters] - Parameters relevant to the network request
631
631
  * @param {number} [networkParameters.timeout] - Request timeout (in milliseconds)
@@ -741,7 +741,7 @@ var Tracker = /*#__PURE__*/function () {
741
741
  * @param {string} term - Search results query term
742
742
  * @param {object} parameters - Additional parameters to be sent with request
743
743
  * @param {number} parameters.numResults - Total number of results
744
- * @param {string[]} [parameters.itemIds] - List of product item unique identifiers in search results listing
744
+ * @param {string[]} parameters.itemIds - List of product item unique identifiers in search results listing
745
745
  * @param {object} [networkParameters] - Parameters relevant to the network request
746
746
  * @param {number} [networkParameters.timeout] - Request timeout (in milliseconds)
747
747
  * @returns {(true|Error)}
@@ -1465,6 +1465,7 @@ var Tracker = /*#__PURE__*/function () {
1465
1465
  * @param {string} parameters.url - Current page URL
1466
1466
  * @param {string} parameters.filterName - Filter name
1467
1467
  * @param {string} parameters.filterValue - Filter value
1468
+ * @param {object[]} parameters.items - List of product item objects
1468
1469
  * @param {string} [parameters.section="Products"] - Index section
1469
1470
  * @param {number} [parameters.resultCount] - Total number of results
1470
1471
  * @param {number} [parameters.resultPage] - Page number of results
@@ -1472,7 +1473,6 @@ var Tracker = /*#__PURE__*/function () {
1472
1473
  * @param {object} [parameters.selectedFilters] - Selected filters
1473
1474
  * @param {string} [parameters.sortOrder] - Sort order ('ascending' or 'descending')
1474
1475
  * @param {string} [parameters.sortBy] - Sorting method
1475
- * @param {object[]} [parameters.items] - List of product item objects
1476
1476
  * @param {object} [networkParameters] - Parameters relevant to the network request
1477
1477
  * @param {number} [networkParameters.timeout] - Request timeout (in milliseconds)
1478
1478
  * @returns {(true|Error)}
@@ -48,11 +48,27 @@ declare class Tracker {
48
48
  networkParameters?: NetworkParameters
49
49
  ): true | Error;
50
50
 
51
+ trackSearchResultsLoadedV2(
52
+ term: string,
53
+ parameters: {
54
+ url: string;
55
+ items: ItemTracked[];
56
+ resultCount?: number;
57
+ resultPage?: number;
58
+ resultId?: string;
59
+ selectedFilters?: Record<string, any>;
60
+ sortOrder?: string;
61
+ sortBy?: string;
62
+ section?: string;
63
+ },
64
+ networkParameters?: NetworkParameters
65
+ ): true | Error;
66
+
51
67
  trackSearchResultsLoaded(
52
68
  term: string,
53
69
  parameters: {
54
70
  numResults: number;
55
- itemIds?: string[];
71
+ itemIds: string[];
56
72
  },
57
73
  networkParameters?: NetworkParameters
58
74
  ): true | Error;
@@ -139,7 +155,7 @@ declare class Tracker {
139
155
  selectedFilters?: object;
140
156
  sortOrder?: string;
141
157
  sortBy?: string;
142
- items?: ItemTracked[];
158
+ items: ItemTracked[];
143
159
  },
144
160
  networkParameters?: NetworkParameters
145
161
  ): true | Error;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@constructor-io/constructorio-client-javascript",
3
- "version": "2.35.15",
3
+ "version": "2.35.16",
4
4
  "description": "Constructor.io JavaScript client",
5
5
  "main": "lib/constructorio.js",
6
6
  "types": "lib/types/constructorio.d.ts",