@teemill/product-catalog 1.83.2 → 1.85.0

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/dist/esm/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Product Catalog API
5
5
  * Manage your Product Catalog. A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
6
6
  *
7
- * The version of the OpenAPI document: 1.83.2
7
+ * The version of the OpenAPI document: 1.85.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -694,7 +694,7 @@ export const ApplicationSetsApiAxiosParamCreator = function (configuration) {
694
694
  * @summary List application sets
695
695
  * @param {string} project What project it is
696
696
  * @param {number} [pageToken] Page reference token
697
- * @param {string} [search] Search query string to filter results. Supports field-specific filters like \'enabled:true\', \'uuid:<id>\', \'name:\"product name\"\', \'tag:\"tag name\"\', and \'type:product,template,bundle\'. Multiple filters can be combined with spaces and commas.
697
+ * @param {string} [search] Search query string to filter results. Supports field-specific filters like: \'enabled:true\', \'gfn_product_ids:<id>\', \'tag:\"tag name\"\', \'internal_tag:\"internal tag name\"\', \'includeArchived:false\', \'hasSearchPhrase:false\', \'inDataFeeds:true\', \'aiOptimised:true\', \'productType:<id>\', \'genderGroup:\"male,female,unisex\"\', \'hasBarcode:true\', \'onSale:true\', \'type:product,template,bundle\', \'collection:<id>\'. Multiple filters can be combined with spaces and commas.
698
698
  * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
699
699
  * @param {*} [options] Override http request option.
700
700
  * @throws {RequiredError}
@@ -846,7 +846,7 @@ export const ApplicationSetsApiFp = function (configuration) {
846
846
  * @summary List application sets
847
847
  * @param {string} project What project it is
848
848
  * @param {number} [pageToken] Page reference token
849
- * @param {string} [search] Search query string to filter results. Supports field-specific filters like \'enabled:true\', \'uuid:<id>\', \'name:\"product name\"\', \'tag:\"tag name\"\', and \'type:product,template,bundle\'. Multiple filters can be combined with spaces and commas.
849
+ * @param {string} [search] Search query string to filter results. Supports field-specific filters like: \'enabled:true\', \'gfn_product_ids:<id>\', \'tag:\"tag name\"\', \'internal_tag:\"internal tag name\"\', \'includeArchived:false\', \'hasSearchPhrase:false\', \'inDataFeeds:true\', \'aiOptimised:true\', \'productType:<id>\', \'genderGroup:\"male,female,unisex\"\', \'hasBarcode:true\', \'onSale:true\', \'type:product,template,bundle\', \'collection:<id>\'. Multiple filters can be combined with spaces and commas.
850
850
  * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
851
851
  * @param {*} [options] Override http request option.
852
852
  * @throws {RequiredError}
@@ -1099,18 +1099,117 @@ export class ApplicationTechnologiesApi extends BaseAPI {
1099
1099
  */
1100
1100
  export const ProductAnalyticsApiAxiosParamCreator = function (configuration) {
1101
1101
  return {
1102
+ /**
1103
+ * Exports all products with analytics data in a CSV file.
1104
+ * @summary Export product analytics
1105
+ * @param {string} project What project it is
1106
+ * @param {Array<string>} [sortBy] An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending.
1107
+ * @param {string} [search] Search query string to filter results. Supports field-specific filters like: \&#39;enabled:true\&#39;, \&#39;gfn_product_ids:&lt;id&gt;\&#39;, \&#39;tag:\&quot;tag name\&quot;\&#39;, \&#39;internal_tag:\&quot;internal tag name\&quot;\&#39;, \&#39;includeArchived:false\&#39;, \&#39;hasSearchPhrase:false\&#39;, \&#39;inDataFeeds:true\&#39;, \&#39;aiOptimised:true\&#39;, \&#39;productType:&lt;id&gt;\&#39;, \&#39;genderGroup:\&quot;male,female,unisex\&quot;\&#39;, \&#39;hasBarcode:true\&#39;, \&#39;onSale:true\&#39;, \&#39;type:product,template,bundle\&#39;, \&#39;collection:&lt;id&gt;\&#39;. Multiple filters can be combined with spaces and commas.
1108
+ * @param {string} [dateRangeStartDate] Start date for the date range filter (ISO 8601 format)
1109
+ * @param {string} [dateRangeEndDate] End date for the date range filter (ISO 8601 format)
1110
+ * @param {number} [minimumRevenue] Filter to only include products with total revenue greater than or equal to this amount
1111
+ * @param {number} [maximumRevenue] Filter to only include products with total revenue less than or equal to this amount
1112
+ * @param {number} [minimumSales] Filter to only include products with total sales greater than or equal to this number
1113
+ * @param {number} [maximumSales] Filter to only include products with total sales less than or equal to this number
1114
+ * @param {number} [minimumBasketPercent] Filter to only include products where the average basket percentage is greater than or equal to this value
1115
+ * @param {number} [maximumBasketPercent] Filter to only include products where the average basket percentage is less than or equal to this value
1116
+ * @param {number} [minimumTraffic] Filter to only include products with total traffic greater than or equal to this number
1117
+ * @param {number} [maximumTraffic] Filter to only include products with total traffic less than or equal to this number
1118
+ * @param {*} [options] Override http request option.
1119
+ * @throws {RequiredError}
1120
+ */
1121
+ exportProductAnalytics: (project_1, sortBy_1, search_1, dateRangeStartDate_1, dateRangeEndDate_1, minimumRevenue_1, maximumRevenue_1, minimumSales_1, maximumSales_1, minimumBasketPercent_1, maximumBasketPercent_1, minimumTraffic_1, maximumTraffic_1, ...args_1) => __awaiter(this, [project_1, sortBy_1, search_1, dateRangeStartDate_1, dateRangeEndDate_1, minimumRevenue_1, maximumRevenue_1, minimumSales_1, maximumSales_1, minimumBasketPercent_1, maximumBasketPercent_1, minimumTraffic_1, maximumTraffic_1, ...args_1], void 0, function* (project, sortBy, search, dateRangeStartDate, dateRangeEndDate, minimumRevenue, maximumRevenue, minimumSales, maximumSales, minimumBasketPercent, maximumBasketPercent, minimumTraffic, maximumTraffic, options = {}) {
1122
+ // verify required parameter 'project' is not null or undefined
1123
+ assertParamExists('exportProductAnalytics', 'project', project);
1124
+ const localVarPath = `/v1/catalog/analytics/export`;
1125
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1126
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1127
+ let baseOptions;
1128
+ if (configuration) {
1129
+ baseOptions = configuration.baseOptions;
1130
+ }
1131
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1132
+ const localVarHeaderParameter = {};
1133
+ const localVarQueryParameter = {};
1134
+ // authentication session-oauth required
1135
+ // oauth required
1136
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
1137
+ // authentication api-key required
1138
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
1139
+ if (project !== undefined) {
1140
+ localVarQueryParameter['project'] = project;
1141
+ }
1142
+ if (sortBy) {
1143
+ localVarQueryParameter['sortBy'] = sortBy;
1144
+ }
1145
+ if (search !== undefined) {
1146
+ localVarQueryParameter['search'] = search;
1147
+ }
1148
+ if (dateRangeStartDate !== undefined) {
1149
+ localVarQueryParameter['dateRangeStartDate'] = (dateRangeStartDate instanceof Date) ?
1150
+ dateRangeStartDate.toISOString() :
1151
+ dateRangeStartDate;
1152
+ }
1153
+ if (dateRangeEndDate !== undefined) {
1154
+ localVarQueryParameter['dateRangeEndDate'] = (dateRangeEndDate instanceof Date) ?
1155
+ dateRangeEndDate.toISOString() :
1156
+ dateRangeEndDate;
1157
+ }
1158
+ if (minimumRevenue !== undefined) {
1159
+ localVarQueryParameter['minimumRevenue'] = minimumRevenue;
1160
+ }
1161
+ if (maximumRevenue !== undefined) {
1162
+ localVarQueryParameter['maximumRevenue'] = maximumRevenue;
1163
+ }
1164
+ if (minimumSales !== undefined) {
1165
+ localVarQueryParameter['minimumSales'] = minimumSales;
1166
+ }
1167
+ if (maximumSales !== undefined) {
1168
+ localVarQueryParameter['maximumSales'] = maximumSales;
1169
+ }
1170
+ if (minimumBasketPercent !== undefined) {
1171
+ localVarQueryParameter['minimumBasketPercent'] = minimumBasketPercent;
1172
+ }
1173
+ if (maximumBasketPercent !== undefined) {
1174
+ localVarQueryParameter['maximumBasketPercent'] = maximumBasketPercent;
1175
+ }
1176
+ if (minimumTraffic !== undefined) {
1177
+ localVarQueryParameter['minimumTraffic'] = minimumTraffic;
1178
+ }
1179
+ if (maximumTraffic !== undefined) {
1180
+ localVarQueryParameter['maximumTraffic'] = maximumTraffic;
1181
+ }
1182
+ localVarHeaderParameter['Accept'] = 'text/csv; charset=utf-8,application/json';
1183
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1184
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1185
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1186
+ return {
1187
+ url: toPathString(localVarUrlObj),
1188
+ options: localVarRequestOptions,
1189
+ };
1190
+ }),
1102
1191
  /**
1103
1192
  * Lists all product analytics items.
1104
1193
  * @summary List product analytics
1105
1194
  * @param {string} project What project it is
1106
1195
  * @param {number} [pageToken] Page reference token
1107
- * @param {string} [search] Search query string to filter results. Supports field-specific filters like \&#39;enabled:true\&#39;, \&#39;uuid:&lt;id&gt;\&#39;, \&#39;name:\&quot;product name\&quot;\&#39;, \&#39;tag:\&quot;tag name\&quot;\&#39;, and \&#39;type:product,template,bundle\&#39;. Multiple filters can be combined with spaces and commas.
1108
- * @param {Array<string>} [sortBy] An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending.
1109
1196
  * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
1197
+ * @param {string} [search] Search query string to filter results. Supports field-specific filters like: \&#39;enabled:true\&#39;, \&#39;gfn_product_ids:&lt;id&gt;\&#39;, \&#39;tag:\&quot;tag name\&quot;\&#39;, \&#39;internal_tag:\&quot;internal tag name\&quot;\&#39;, \&#39;includeArchived:false\&#39;, \&#39;hasSearchPhrase:false\&#39;, \&#39;inDataFeeds:true\&#39;, \&#39;aiOptimised:true\&#39;, \&#39;productType:&lt;id&gt;\&#39;, \&#39;genderGroup:\&quot;male,female,unisex\&quot;\&#39;, \&#39;hasBarcode:true\&#39;, \&#39;onSale:true\&#39;, \&#39;type:product,template,bundle\&#39;, \&#39;collection:&lt;id&gt;\&#39;. Multiple filters can be combined with spaces and commas.
1198
+ * @param {Array<string>} [sortBy] An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending.
1199
+ * @param {string} [dateRangeStartDate] Start date for the date range filter (ISO 8601 format)
1200
+ * @param {string} [dateRangeEndDate] End date for the date range filter (ISO 8601 format)
1201
+ * @param {number} [minimumRevenue] Filter to only include products with total revenue greater than or equal to this amount
1202
+ * @param {number} [maximumRevenue] Filter to only include products with total revenue less than or equal to this amount
1203
+ * @param {number} [minimumSales] Filter to only include products with total sales greater than or equal to this number
1204
+ * @param {number} [maximumSales] Filter to only include products with total sales less than or equal to this number
1205
+ * @param {number} [minimumBasketPercent] Filter to only include products where the average basket percentage is greater than or equal to this value
1206
+ * @param {number} [maximumBasketPercent] Filter to only include products where the average basket percentage is less than or equal to this value
1207
+ * @param {number} [minimumTraffic] Filter to only include products with total traffic greater than or equal to this number
1208
+ * @param {number} [maximumTraffic] Filter to only include products with total traffic less than or equal to this number
1110
1209
  * @param {*} [options] Override http request option.
1111
1210
  * @throws {RequiredError}
1112
1211
  */
1113
- listProductAnalytics: (project_1, pageToken_1, search_1, sortBy_1, pageSize_1, ...args_1) => __awaiter(this, [project_1, pageToken_1, search_1, sortBy_1, pageSize_1, ...args_1], void 0, function* (project, pageToken, search, sortBy, pageSize, options = {}) {
1212
+ listProductAnalytics: (project_1, pageToken_1, pageSize_1, search_1, sortBy_1, dateRangeStartDate_1, dateRangeEndDate_1, minimumRevenue_1, maximumRevenue_1, minimumSales_1, maximumSales_1, minimumBasketPercent_1, maximumBasketPercent_1, minimumTraffic_1, maximumTraffic_1, ...args_1) => __awaiter(this, [project_1, pageToken_1, pageSize_1, search_1, sortBy_1, dateRangeStartDate_1, dateRangeEndDate_1, minimumRevenue_1, maximumRevenue_1, minimumSales_1, maximumSales_1, minimumBasketPercent_1, maximumBasketPercent_1, minimumTraffic_1, maximumTraffic_1, ...args_1], void 0, function* (project, pageToken, pageSize, search, sortBy, dateRangeStartDate, dateRangeEndDate, minimumRevenue, maximumRevenue, minimumSales, maximumSales, minimumBasketPercent, maximumBasketPercent, minimumTraffic, maximumTraffic, options = {}) {
1114
1213
  // verify required parameter 'project' is not null or undefined
1115
1214
  assertParamExists('listProductAnalytics', 'project', project);
1116
1215
  const localVarPath = `/v1/catalog/analytics`;
@@ -1134,14 +1233,48 @@ export const ProductAnalyticsApiAxiosParamCreator = function (configuration) {
1134
1233
  if (pageToken !== undefined) {
1135
1234
  localVarQueryParameter['pageToken'] = pageToken;
1136
1235
  }
1236
+ if (pageSize !== undefined) {
1237
+ localVarQueryParameter['pageSize'] = pageSize;
1238
+ }
1137
1239
  if (search !== undefined) {
1138
1240
  localVarQueryParameter['search'] = search;
1139
1241
  }
1140
1242
  if (sortBy) {
1141
1243
  localVarQueryParameter['sortBy'] = sortBy;
1142
1244
  }
1143
- if (pageSize !== undefined) {
1144
- localVarQueryParameter['pageSize'] = pageSize;
1245
+ if (dateRangeStartDate !== undefined) {
1246
+ localVarQueryParameter['dateRangeStartDate'] = (dateRangeStartDate instanceof Date) ?
1247
+ dateRangeStartDate.toISOString() :
1248
+ dateRangeStartDate;
1249
+ }
1250
+ if (dateRangeEndDate !== undefined) {
1251
+ localVarQueryParameter['dateRangeEndDate'] = (dateRangeEndDate instanceof Date) ?
1252
+ dateRangeEndDate.toISOString() :
1253
+ dateRangeEndDate;
1254
+ }
1255
+ if (minimumRevenue !== undefined) {
1256
+ localVarQueryParameter['minimumRevenue'] = minimumRevenue;
1257
+ }
1258
+ if (maximumRevenue !== undefined) {
1259
+ localVarQueryParameter['maximumRevenue'] = maximumRevenue;
1260
+ }
1261
+ if (minimumSales !== undefined) {
1262
+ localVarQueryParameter['minimumSales'] = minimumSales;
1263
+ }
1264
+ if (maximumSales !== undefined) {
1265
+ localVarQueryParameter['maximumSales'] = maximumSales;
1266
+ }
1267
+ if (minimumBasketPercent !== undefined) {
1268
+ localVarQueryParameter['minimumBasketPercent'] = minimumBasketPercent;
1269
+ }
1270
+ if (maximumBasketPercent !== undefined) {
1271
+ localVarQueryParameter['maximumBasketPercent'] = maximumBasketPercent;
1272
+ }
1273
+ if (minimumTraffic !== undefined) {
1274
+ localVarQueryParameter['minimumTraffic'] = minimumTraffic;
1275
+ }
1276
+ if (maximumTraffic !== undefined) {
1277
+ localVarQueryParameter['maximumTraffic'] = maximumTraffic;
1145
1278
  }
1146
1279
  localVarHeaderParameter['Accept'] = 'application/json';
1147
1280
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -1160,21 +1293,59 @@ export const ProductAnalyticsApiAxiosParamCreator = function (configuration) {
1160
1293
  export const ProductAnalyticsApiFp = function (configuration) {
1161
1294
  const localVarAxiosParamCreator = ProductAnalyticsApiAxiosParamCreator(configuration);
1162
1295
  return {
1296
+ /**
1297
+ * Exports all products with analytics data in a CSV file.
1298
+ * @summary Export product analytics
1299
+ * @param {string} project What project it is
1300
+ * @param {Array<string>} [sortBy] An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending.
1301
+ * @param {string} [search] Search query string to filter results. Supports field-specific filters like: \&#39;enabled:true\&#39;, \&#39;gfn_product_ids:&lt;id&gt;\&#39;, \&#39;tag:\&quot;tag name\&quot;\&#39;, \&#39;internal_tag:\&quot;internal tag name\&quot;\&#39;, \&#39;includeArchived:false\&#39;, \&#39;hasSearchPhrase:false\&#39;, \&#39;inDataFeeds:true\&#39;, \&#39;aiOptimised:true\&#39;, \&#39;productType:&lt;id&gt;\&#39;, \&#39;genderGroup:\&quot;male,female,unisex\&quot;\&#39;, \&#39;hasBarcode:true\&#39;, \&#39;onSale:true\&#39;, \&#39;type:product,template,bundle\&#39;, \&#39;collection:&lt;id&gt;\&#39;. Multiple filters can be combined with spaces and commas.
1302
+ * @param {string} [dateRangeStartDate] Start date for the date range filter (ISO 8601 format)
1303
+ * @param {string} [dateRangeEndDate] End date for the date range filter (ISO 8601 format)
1304
+ * @param {number} [minimumRevenue] Filter to only include products with total revenue greater than or equal to this amount
1305
+ * @param {number} [maximumRevenue] Filter to only include products with total revenue less than or equal to this amount
1306
+ * @param {number} [minimumSales] Filter to only include products with total sales greater than or equal to this number
1307
+ * @param {number} [maximumSales] Filter to only include products with total sales less than or equal to this number
1308
+ * @param {number} [minimumBasketPercent] Filter to only include products where the average basket percentage is greater than or equal to this value
1309
+ * @param {number} [maximumBasketPercent] Filter to only include products where the average basket percentage is less than or equal to this value
1310
+ * @param {number} [minimumTraffic] Filter to only include products with total traffic greater than or equal to this number
1311
+ * @param {number} [maximumTraffic] Filter to only include products with total traffic less than or equal to this number
1312
+ * @param {*} [options] Override http request option.
1313
+ * @throws {RequiredError}
1314
+ */
1315
+ exportProductAnalytics(project, sortBy, search, dateRangeStartDate, dateRangeEndDate, minimumRevenue, maximumRevenue, minimumSales, maximumSales, minimumBasketPercent, maximumBasketPercent, minimumTraffic, maximumTraffic, options) {
1316
+ return __awaiter(this, void 0, void 0, function* () {
1317
+ var _a, _b, _c;
1318
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.exportProductAnalytics(project, sortBy, search, dateRangeStartDate, dateRangeEndDate, minimumRevenue, maximumRevenue, minimumSales, maximumSales, minimumBasketPercent, maximumBasketPercent, minimumTraffic, maximumTraffic, options);
1319
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1320
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ProductAnalyticsApi.exportProductAnalytics']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1321
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1322
+ });
1323
+ },
1163
1324
  /**
1164
1325
  * Lists all product analytics items.
1165
1326
  * @summary List product analytics
1166
1327
  * @param {string} project What project it is
1167
1328
  * @param {number} [pageToken] Page reference token
1168
- * @param {string} [search] Search query string to filter results. Supports field-specific filters like \&#39;enabled:true\&#39;, \&#39;uuid:&lt;id&gt;\&#39;, \&#39;name:\&quot;product name\&quot;\&#39;, \&#39;tag:\&quot;tag name\&quot;\&#39;, and \&#39;type:product,template,bundle\&#39;. Multiple filters can be combined with spaces and commas.
1169
- * @param {Array<string>} [sortBy] An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending.
1170
1329
  * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
1330
+ * @param {string} [search] Search query string to filter results. Supports field-specific filters like: \&#39;enabled:true\&#39;, \&#39;gfn_product_ids:&lt;id&gt;\&#39;, \&#39;tag:\&quot;tag name\&quot;\&#39;, \&#39;internal_tag:\&quot;internal tag name\&quot;\&#39;, \&#39;includeArchived:false\&#39;, \&#39;hasSearchPhrase:false\&#39;, \&#39;inDataFeeds:true\&#39;, \&#39;aiOptimised:true\&#39;, \&#39;productType:&lt;id&gt;\&#39;, \&#39;genderGroup:\&quot;male,female,unisex\&quot;\&#39;, \&#39;hasBarcode:true\&#39;, \&#39;onSale:true\&#39;, \&#39;type:product,template,bundle\&#39;, \&#39;collection:&lt;id&gt;\&#39;. Multiple filters can be combined with spaces and commas.
1331
+ * @param {Array<string>} [sortBy] An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending.
1332
+ * @param {string} [dateRangeStartDate] Start date for the date range filter (ISO 8601 format)
1333
+ * @param {string} [dateRangeEndDate] End date for the date range filter (ISO 8601 format)
1334
+ * @param {number} [minimumRevenue] Filter to only include products with total revenue greater than or equal to this amount
1335
+ * @param {number} [maximumRevenue] Filter to only include products with total revenue less than or equal to this amount
1336
+ * @param {number} [minimumSales] Filter to only include products with total sales greater than or equal to this number
1337
+ * @param {number} [maximumSales] Filter to only include products with total sales less than or equal to this number
1338
+ * @param {number} [minimumBasketPercent] Filter to only include products where the average basket percentage is greater than or equal to this value
1339
+ * @param {number} [maximumBasketPercent] Filter to only include products where the average basket percentage is less than or equal to this value
1340
+ * @param {number} [minimumTraffic] Filter to only include products with total traffic greater than or equal to this number
1341
+ * @param {number} [maximumTraffic] Filter to only include products with total traffic less than or equal to this number
1171
1342
  * @param {*} [options] Override http request option.
1172
1343
  * @throws {RequiredError}
1173
1344
  */
1174
- listProductAnalytics(project, pageToken, search, sortBy, pageSize, options) {
1345
+ listProductAnalytics(project, pageToken, pageSize, search, sortBy, dateRangeStartDate, dateRangeEndDate, minimumRevenue, maximumRevenue, minimumSales, maximumSales, minimumBasketPercent, maximumBasketPercent, minimumTraffic, maximumTraffic, options) {
1175
1346
  return __awaiter(this, void 0, void 0, function* () {
1176
1347
  var _a, _b, _c;
1177
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listProductAnalytics(project, pageToken, search, sortBy, pageSize, options);
1348
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listProductAnalytics(project, pageToken, pageSize, search, sortBy, dateRangeStartDate, dateRangeEndDate, minimumRevenue, maximumRevenue, minimumSales, maximumSales, minimumBasketPercent, maximumBasketPercent, minimumTraffic, maximumTraffic, options);
1178
1349
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1179
1350
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ProductAnalyticsApi.listProductAnalytics']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1180
1351
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1188,6 +1359,16 @@ export const ProductAnalyticsApiFp = function (configuration) {
1188
1359
  export const ProductAnalyticsApiFactory = function (configuration, basePath, axios) {
1189
1360
  const localVarFp = ProductAnalyticsApiFp(configuration);
1190
1361
  return {
1362
+ /**
1363
+ * Exports all products with analytics data in a CSV file.
1364
+ * @summary Export product analytics
1365
+ * @param {ProductAnalyticsApiExportProductAnalyticsRequest} requestParameters Request parameters.
1366
+ * @param {*} [options] Override http request option.
1367
+ * @throws {RequiredError}
1368
+ */
1369
+ exportProductAnalytics(requestParameters, options) {
1370
+ return localVarFp.exportProductAnalytics(requestParameters.project, requestParameters.sortBy, requestParameters.search, requestParameters.dateRangeStartDate, requestParameters.dateRangeEndDate, requestParameters.minimumRevenue, requestParameters.maximumRevenue, requestParameters.minimumSales, requestParameters.maximumSales, requestParameters.minimumBasketPercent, requestParameters.maximumBasketPercent, requestParameters.minimumTraffic, requestParameters.maximumTraffic, options).then((request) => request(axios, basePath));
1371
+ },
1191
1372
  /**
1192
1373
  * Lists all product analytics items.
1193
1374
  * @summary List product analytics
@@ -1196,7 +1377,7 @@ export const ProductAnalyticsApiFactory = function (configuration, basePath, axi
1196
1377
  * @throws {RequiredError}
1197
1378
  */
1198
1379
  listProductAnalytics(requestParameters, options) {
1199
- return localVarFp.listProductAnalytics(requestParameters.project, requestParameters.pageToken, requestParameters.search, requestParameters.sortBy, requestParameters.pageSize, options).then((request) => request(axios, basePath));
1380
+ return localVarFp.listProductAnalytics(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.sortBy, requestParameters.dateRangeStartDate, requestParameters.dateRangeEndDate, requestParameters.minimumRevenue, requestParameters.maximumRevenue, requestParameters.minimumSales, requestParameters.maximumSales, requestParameters.minimumBasketPercent, requestParameters.maximumBasketPercent, requestParameters.minimumTraffic, requestParameters.maximumTraffic, options).then((request) => request(axios, basePath));
1200
1381
  },
1201
1382
  };
1202
1383
  };
@@ -1204,6 +1385,16 @@ export const ProductAnalyticsApiFactory = function (configuration, basePath, axi
1204
1385
  * ProductAnalyticsApi - object-oriented interface
1205
1386
  */
1206
1387
  export class ProductAnalyticsApi extends BaseAPI {
1388
+ /**
1389
+ * Exports all products with analytics data in a CSV file.
1390
+ * @summary Export product analytics
1391
+ * @param {ProductAnalyticsApiExportProductAnalyticsRequest} requestParameters Request parameters.
1392
+ * @param {*} [options] Override http request option.
1393
+ * @throws {RequiredError}
1394
+ */
1395
+ exportProductAnalytics(requestParameters, options) {
1396
+ return ProductAnalyticsApiFp(this.configuration).exportProductAnalytics(requestParameters.project, requestParameters.sortBy, requestParameters.search, requestParameters.dateRangeStartDate, requestParameters.dateRangeEndDate, requestParameters.minimumRevenue, requestParameters.maximumRevenue, requestParameters.minimumSales, requestParameters.maximumSales, requestParameters.minimumBasketPercent, requestParameters.maximumBasketPercent, requestParameters.minimumTraffic, requestParameters.maximumTraffic, options).then((request) => request(this.axios, this.basePath));
1397
+ }
1207
1398
  /**
1208
1399
  * Lists all product analytics items.
1209
1400
  * @summary List product analytics
@@ -1212,7 +1403,118 @@ export class ProductAnalyticsApi extends BaseAPI {
1212
1403
  * @throws {RequiredError}
1213
1404
  */
1214
1405
  listProductAnalytics(requestParameters, options) {
1215
- return ProductAnalyticsApiFp(this.configuration).listProductAnalytics(requestParameters.project, requestParameters.pageToken, requestParameters.search, requestParameters.sortBy, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
1406
+ return ProductAnalyticsApiFp(this.configuration).listProductAnalytics(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.sortBy, requestParameters.dateRangeStartDate, requestParameters.dateRangeEndDate, requestParameters.minimumRevenue, requestParameters.maximumRevenue, requestParameters.minimumSales, requestParameters.maximumSales, requestParameters.minimumBasketPercent, requestParameters.maximumBasketPercent, requestParameters.minimumTraffic, requestParameters.maximumTraffic, options).then((request) => request(this.axios, this.basePath));
1407
+ }
1408
+ }
1409
+ /**
1410
+ * ProductTypesApi - axios parameter creator
1411
+ */
1412
+ export const ProductTypesApiAxiosParamCreator = function (configuration) {
1413
+ return {
1414
+ /**
1415
+ * Lists the product types used by the given project\'s catalog.
1416
+ * @summary List product types
1417
+ * @param {string} project What project it is
1418
+ * @param {number} [pageToken] Page reference token
1419
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
1420
+ * @param {*} [options] Override http request option.
1421
+ * @throws {RequiredError}
1422
+ */
1423
+ listProductTypes: (project_1, pageToken_1, pageSize_1, ...args_1) => __awaiter(this, [project_1, pageToken_1, pageSize_1, ...args_1], void 0, function* (project, pageToken, pageSize, options = {}) {
1424
+ // verify required parameter 'project' is not null or undefined
1425
+ assertParamExists('listProductTypes', 'project', project);
1426
+ const localVarPath = `/v1/catalog/product-types`;
1427
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1428
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1429
+ let baseOptions;
1430
+ if (configuration) {
1431
+ baseOptions = configuration.baseOptions;
1432
+ }
1433
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1434
+ const localVarHeaderParameter = {};
1435
+ const localVarQueryParameter = {};
1436
+ // authentication session-oauth required
1437
+ // oauth required
1438
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
1439
+ // authentication api-key required
1440
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
1441
+ if (project !== undefined) {
1442
+ localVarQueryParameter['project'] = project;
1443
+ }
1444
+ if (pageToken !== undefined) {
1445
+ localVarQueryParameter['pageToken'] = pageToken;
1446
+ }
1447
+ if (pageSize !== undefined) {
1448
+ localVarQueryParameter['pageSize'] = pageSize;
1449
+ }
1450
+ localVarHeaderParameter['Accept'] = 'application/json';
1451
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1452
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1453
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1454
+ return {
1455
+ url: toPathString(localVarUrlObj),
1456
+ options: localVarRequestOptions,
1457
+ };
1458
+ }),
1459
+ };
1460
+ };
1461
+ /**
1462
+ * ProductTypesApi - functional programming interface
1463
+ */
1464
+ export const ProductTypesApiFp = function (configuration) {
1465
+ const localVarAxiosParamCreator = ProductTypesApiAxiosParamCreator(configuration);
1466
+ return {
1467
+ /**
1468
+ * Lists the product types used by the given project\'s catalog.
1469
+ * @summary List product types
1470
+ * @param {string} project What project it is
1471
+ * @param {number} [pageToken] Page reference token
1472
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
1473
+ * @param {*} [options] Override http request option.
1474
+ * @throws {RequiredError}
1475
+ */
1476
+ listProductTypes(project, pageToken, pageSize, options) {
1477
+ return __awaiter(this, void 0, void 0, function* () {
1478
+ var _a, _b, _c;
1479
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listProductTypes(project, pageToken, pageSize, options);
1480
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1481
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ProductTypesApi.listProductTypes']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1482
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1483
+ });
1484
+ },
1485
+ };
1486
+ };
1487
+ /**
1488
+ * ProductTypesApi - factory interface
1489
+ */
1490
+ export const ProductTypesApiFactory = function (configuration, basePath, axios) {
1491
+ const localVarFp = ProductTypesApiFp(configuration);
1492
+ return {
1493
+ /**
1494
+ * Lists the product types used by the given project\'s catalog.
1495
+ * @summary List product types
1496
+ * @param {ProductTypesApiListProductTypesRequest} requestParameters Request parameters.
1497
+ * @param {*} [options] Override http request option.
1498
+ * @throws {RequiredError}
1499
+ */
1500
+ listProductTypes(requestParameters, options) {
1501
+ return localVarFp.listProductTypes(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, options).then((request) => request(axios, basePath));
1502
+ },
1503
+ };
1504
+ };
1505
+ /**
1506
+ * ProductTypesApi - object-oriented interface
1507
+ */
1508
+ export class ProductTypesApi extends BaseAPI {
1509
+ /**
1510
+ * Lists the product types used by the given project\'s catalog.
1511
+ * @summary List product types
1512
+ * @param {ProductTypesApiListProductTypesRequest} requestParameters Request parameters.
1513
+ * @param {*} [options] Override http request option.
1514
+ * @throws {RequiredError}
1515
+ */
1516
+ listProductTypes(requestParameters, options) {
1517
+ return ProductTypesApiFp(this.configuration).listProductTypes(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
1216
1518
  }
1217
1519
  }
1218
1520
  /**
@@ -1387,10 +1689,16 @@ export const ProductsApiAxiosParamCreator = function (configuration) {
1387
1689
  * Export the project\'s products and variants as a CSV file.
1388
1690
  * @summary Export products
1389
1691
  * @param {string} project What project it is
1692
+ * @param {string} [search] Search query string to filter results. Supports field-specific filters like: \&#39;enabled:true\&#39;, \&#39;gfn_product_ids:&lt;id&gt;\&#39;, \&#39;tag:\&quot;tag name\&quot;\&#39;, \&#39;internal_tag:\&quot;internal tag name\&quot;\&#39;, \&#39;includeArchived:false\&#39;, \&#39;hasSearchPhrase:false\&#39;, \&#39;inDataFeeds:true\&#39;, \&#39;aiOptimised:true\&#39;, \&#39;productType:&lt;id&gt;\&#39;, \&#39;genderGroup:\&quot;male,female,unisex\&quot;\&#39;, \&#39;hasBarcode:true\&#39;, \&#39;onSale:true\&#39;, \&#39;type:product,template,bundle\&#39;, \&#39;collection:&lt;id&gt;\&#39;. Multiple filters can be combined with spaces and commas.
1693
+ * @param {string} [start] Start of date range to filter
1694
+ * @param {string} [end] End of date range to filter
1695
+ * @param {ExportProductsDateFilterTypeEnum} [dateFilterType] Specifies the type of date range filter to apply. Determines which date field the &#x60;start&#x60; and &#x60;end&#x60; fields should query.
1696
+ * @param {number} [maxRetailPrice] Specify the maximum retail price to filter by. Products will be included so long as either at least one variant or the product itself (in the case of bundles) has a retail price less than or equal to the specified value.
1697
+ * @param {number} [minRetailPrice] Specify the minimum retail price to filter by. Products will be included so long as either at least one variant or the product itself (in the case of bundles) has a retail price greater than or equal to the specified value.
1390
1698
  * @param {*} [options] Override http request option.
1391
1699
  * @throws {RequiredError}
1392
1700
  */
1393
- exportProducts: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
1701
+ exportProducts: (project_1, search_1, start_1, end_1, dateFilterType_1, maxRetailPrice_1, minRetailPrice_1, ...args_1) => __awaiter(this, [project_1, search_1, start_1, end_1, dateFilterType_1, maxRetailPrice_1, minRetailPrice_1, ...args_1], void 0, function* (project, search, start, end, dateFilterType, maxRetailPrice, minRetailPrice, options = {}) {
1394
1702
  // verify required parameter 'project' is not null or undefined
1395
1703
  assertParamExists('exportProducts', 'project', project);
1396
1704
  const localVarPath = `/v1/catalog/products/export`;
@@ -1411,6 +1719,28 @@ export const ProductsApiAxiosParamCreator = function (configuration) {
1411
1719
  if (project !== undefined) {
1412
1720
  localVarQueryParameter['project'] = project;
1413
1721
  }
1722
+ if (search !== undefined) {
1723
+ localVarQueryParameter['search'] = search;
1724
+ }
1725
+ if (start !== undefined) {
1726
+ localVarQueryParameter['start'] = (start instanceof Date) ?
1727
+ start.toISOString() :
1728
+ start;
1729
+ }
1730
+ if (end !== undefined) {
1731
+ localVarQueryParameter['end'] = (end instanceof Date) ?
1732
+ end.toISOString() :
1733
+ end;
1734
+ }
1735
+ if (dateFilterType !== undefined) {
1736
+ localVarQueryParameter['dateFilterType'] = dateFilterType;
1737
+ }
1738
+ if (maxRetailPrice !== undefined) {
1739
+ localVarQueryParameter['maxRetailPrice'] = maxRetailPrice;
1740
+ }
1741
+ if (minRetailPrice !== undefined) {
1742
+ localVarQueryParameter['minRetailPrice'] = minRetailPrice;
1743
+ }
1414
1744
  localVarHeaderParameter['Accept'] = 'text/csv; charset=utf-8,application/json';
1415
1745
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1416
1746
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -1510,17 +1840,19 @@ export const ProductsApiAxiosParamCreator = function (configuration) {
1510
1840
  * @summary List products
1511
1841
  * @param {string} project What project it is
1512
1842
  * @param {number} [pageToken] Page reference token
1513
- * @param {string} [search] Search query string to filter results. Supports field-specific filters like \&#39;enabled:true\&#39;, \&#39;uuid:&lt;id&gt;\&#39;, \&#39;name:\&quot;product name\&quot;\&#39;, \&#39;tag:\&quot;tag name\&quot;\&#39;, and \&#39;type:product,template,bundle\&#39;. Multiple filters can be combined with spaces and commas.
1843
+ * @param {string} [search] Search query string to filter results. Supports field-specific filters like: \&#39;enabled:true\&#39;, \&#39;gfn_product_ids:&lt;id&gt;\&#39;, \&#39;tag:\&quot;tag name\&quot;\&#39;, \&#39;internal_tag:\&quot;internal tag name\&quot;\&#39;, \&#39;includeArchived:false\&#39;, \&#39;hasSearchPhrase:false\&#39;, \&#39;inDataFeeds:true\&#39;, \&#39;aiOptimised:true\&#39;, \&#39;productType:&lt;id&gt;\&#39;, \&#39;genderGroup:\&quot;male,female,unisex\&quot;\&#39;, \&#39;hasBarcode:true\&#39;, \&#39;onSale:true\&#39;, \&#39;type:product,template,bundle\&#39;, \&#39;collection:&lt;id&gt;\&#39;. Multiple filters can be combined with spaces and commas.
1514
1844
  * @param {Array<string>} [sortBy] An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending.
1515
1845
  * @param {string} [start] Start of date range to filter
1516
1846
  * @param {string} [end] End of date range to filter
1517
1847
  * @param {ListProductsDateFilterTypeEnum} [dateFilterType] Specifies the type of date range filter to apply. Determines which date field the &#x60;start&#x60; and &#x60;end&#x60; fields should query.
1848
+ * @param {number} [maxRetailPrice] Specify the maximum retail price to filter by. Products will be included so long as either at least one variant or the product itself (in the case of bundles) has a retail price less than or equal to the specified value.
1849
+ * @param {number} [minRetailPrice] Specify the minimum retail price to filter by. Products will be included so long as either at least one variant or the product itself (in the case of bundles) has a retail price greater than or equal to the specified value.
1518
1850
  * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
1519
1851
  * @param {string} [fields] Filter response fields to only include a subset of the resource.
1520
1852
  * @param {*} [options] Override http request option.
1521
1853
  * @throws {RequiredError}
1522
1854
  */
1523
- listProducts: (project_1, pageToken_1, search_1, sortBy_1, start_1, end_1, dateFilterType_1, pageSize_1, fields_1, ...args_1) => __awaiter(this, [project_1, pageToken_1, search_1, sortBy_1, start_1, end_1, dateFilterType_1, pageSize_1, fields_1, ...args_1], void 0, function* (project, pageToken, search, sortBy, start, end, dateFilterType, pageSize, fields, options = {}) {
1855
+ listProducts: (project_1, pageToken_1, search_1, sortBy_1, start_1, end_1, dateFilterType_1, maxRetailPrice_1, minRetailPrice_1, pageSize_1, fields_1, ...args_1) => __awaiter(this, [project_1, pageToken_1, search_1, sortBy_1, start_1, end_1, dateFilterType_1, maxRetailPrice_1, minRetailPrice_1, pageSize_1, fields_1, ...args_1], void 0, function* (project, pageToken, search, sortBy, start, end, dateFilterType, maxRetailPrice, minRetailPrice, pageSize, fields, options = {}) {
1524
1856
  // verify required parameter 'project' is not null or undefined
1525
1857
  assertParamExists('listProducts', 'project', project);
1526
1858
  const localVarPath = `/v1/catalog/products`;
@@ -1563,6 +1895,12 @@ export const ProductsApiAxiosParamCreator = function (configuration) {
1563
1895
  if (dateFilterType !== undefined) {
1564
1896
  localVarQueryParameter['dateFilterType'] = dateFilterType;
1565
1897
  }
1898
+ if (maxRetailPrice !== undefined) {
1899
+ localVarQueryParameter['maxRetailPrice'] = maxRetailPrice;
1900
+ }
1901
+ if (minRetailPrice !== undefined) {
1902
+ localVarQueryParameter['minRetailPrice'] = minRetailPrice;
1903
+ }
1566
1904
  if (pageSize !== undefined) {
1567
1905
  localVarQueryParameter['pageSize'] = pageSize;
1568
1906
  }
@@ -1784,13 +2122,19 @@ export const ProductsApiFp = function (configuration) {
1784
2122
  * Export the project\'s products and variants as a CSV file.
1785
2123
  * @summary Export products
1786
2124
  * @param {string} project What project it is
2125
+ * @param {string} [search] Search query string to filter results. Supports field-specific filters like: \&#39;enabled:true\&#39;, \&#39;gfn_product_ids:&lt;id&gt;\&#39;, \&#39;tag:\&quot;tag name\&quot;\&#39;, \&#39;internal_tag:\&quot;internal tag name\&quot;\&#39;, \&#39;includeArchived:false\&#39;, \&#39;hasSearchPhrase:false\&#39;, \&#39;inDataFeeds:true\&#39;, \&#39;aiOptimised:true\&#39;, \&#39;productType:&lt;id&gt;\&#39;, \&#39;genderGroup:\&quot;male,female,unisex\&quot;\&#39;, \&#39;hasBarcode:true\&#39;, \&#39;onSale:true\&#39;, \&#39;type:product,template,bundle\&#39;, \&#39;collection:&lt;id&gt;\&#39;. Multiple filters can be combined with spaces and commas.
2126
+ * @param {string} [start] Start of date range to filter
2127
+ * @param {string} [end] End of date range to filter
2128
+ * @param {ExportProductsDateFilterTypeEnum} [dateFilterType] Specifies the type of date range filter to apply. Determines which date field the &#x60;start&#x60; and &#x60;end&#x60; fields should query.
2129
+ * @param {number} [maxRetailPrice] Specify the maximum retail price to filter by. Products will be included so long as either at least one variant or the product itself (in the case of bundles) has a retail price less than or equal to the specified value.
2130
+ * @param {number} [minRetailPrice] Specify the minimum retail price to filter by. Products will be included so long as either at least one variant or the product itself (in the case of bundles) has a retail price greater than or equal to the specified value.
1787
2131
  * @param {*} [options] Override http request option.
1788
2132
  * @throws {RequiredError}
1789
2133
  */
1790
- exportProducts(project, options) {
2134
+ exportProducts(project, search, start, end, dateFilterType, maxRetailPrice, minRetailPrice, options) {
1791
2135
  return __awaiter(this, void 0, void 0, function* () {
1792
2136
  var _a, _b, _c;
1793
- const localVarAxiosArgs = yield localVarAxiosParamCreator.exportProducts(project, options);
2137
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.exportProducts(project, search, start, end, dateFilterType, maxRetailPrice, minRetailPrice, options);
1794
2138
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1795
2139
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ProductsApi.exportProducts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1796
2140
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1836,20 +2180,22 @@ export const ProductsApiFp = function (configuration) {
1836
2180
  * @summary List products
1837
2181
  * @param {string} project What project it is
1838
2182
  * @param {number} [pageToken] Page reference token
1839
- * @param {string} [search] Search query string to filter results. Supports field-specific filters like \&#39;enabled:true\&#39;, \&#39;uuid:&lt;id&gt;\&#39;, \&#39;name:\&quot;product name\&quot;\&#39;, \&#39;tag:\&quot;tag name\&quot;\&#39;, and \&#39;type:product,template,bundle\&#39;. Multiple filters can be combined with spaces and commas.
2183
+ * @param {string} [search] Search query string to filter results. Supports field-specific filters like: \&#39;enabled:true\&#39;, \&#39;gfn_product_ids:&lt;id&gt;\&#39;, \&#39;tag:\&quot;tag name\&quot;\&#39;, \&#39;internal_tag:\&quot;internal tag name\&quot;\&#39;, \&#39;includeArchived:false\&#39;, \&#39;hasSearchPhrase:false\&#39;, \&#39;inDataFeeds:true\&#39;, \&#39;aiOptimised:true\&#39;, \&#39;productType:&lt;id&gt;\&#39;, \&#39;genderGroup:\&quot;male,female,unisex\&quot;\&#39;, \&#39;hasBarcode:true\&#39;, \&#39;onSale:true\&#39;, \&#39;type:product,template,bundle\&#39;, \&#39;collection:&lt;id&gt;\&#39;. Multiple filters can be combined with spaces and commas.
1840
2184
  * @param {Array<string>} [sortBy] An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending.
1841
2185
  * @param {string} [start] Start of date range to filter
1842
2186
  * @param {string} [end] End of date range to filter
1843
2187
  * @param {ListProductsDateFilterTypeEnum} [dateFilterType] Specifies the type of date range filter to apply. Determines which date field the &#x60;start&#x60; and &#x60;end&#x60; fields should query.
2188
+ * @param {number} [maxRetailPrice] Specify the maximum retail price to filter by. Products will be included so long as either at least one variant or the product itself (in the case of bundles) has a retail price less than or equal to the specified value.
2189
+ * @param {number} [minRetailPrice] Specify the minimum retail price to filter by. Products will be included so long as either at least one variant or the product itself (in the case of bundles) has a retail price greater than or equal to the specified value.
1844
2190
  * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
1845
2191
  * @param {string} [fields] Filter response fields to only include a subset of the resource.
1846
2192
  * @param {*} [options] Override http request option.
1847
2193
  * @throws {RequiredError}
1848
2194
  */
1849
- listProducts(project, pageToken, search, sortBy, start, end, dateFilterType, pageSize, fields, options) {
2195
+ listProducts(project, pageToken, search, sortBy, start, end, dateFilterType, maxRetailPrice, minRetailPrice, pageSize, fields, options) {
1850
2196
  return __awaiter(this, void 0, void 0, function* () {
1851
2197
  var _a, _b, _c;
1852
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listProducts(project, pageToken, search, sortBy, start, end, dateFilterType, pageSize, fields, options);
2198
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listProducts(project, pageToken, search, sortBy, start, end, dateFilterType, maxRetailPrice, minRetailPrice, pageSize, fields, options);
1853
2199
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1854
2200
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ProductsApi.listProducts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1855
2201
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1963,7 +2309,7 @@ export const ProductsApiFactory = function (configuration, basePath, axios) {
1963
2309
  * @throws {RequiredError}
1964
2310
  */
1965
2311
  exportProducts(requestParameters, options) {
1966
- return localVarFp.exportProducts(requestParameters.project, options).then((request) => request(axios, basePath));
2312
+ return localVarFp.exportProducts(requestParameters.project, requestParameters.search, requestParameters.start, requestParameters.end, requestParameters.dateFilterType, requestParameters.maxRetailPrice, requestParameters.minRetailPrice, options).then((request) => request(axios, basePath));
1967
2313
  },
1968
2314
  /**
1969
2315
  * Gets a product by a given ID.
@@ -1993,7 +2339,7 @@ export const ProductsApiFactory = function (configuration, basePath, axios) {
1993
2339
  * @throws {RequiredError}
1994
2340
  */
1995
2341
  listProducts(requestParameters, options) {
1996
- return localVarFp.listProducts(requestParameters.project, requestParameters.pageToken, requestParameters.search, requestParameters.sortBy, requestParameters.start, requestParameters.end, requestParameters.dateFilterType, requestParameters.pageSize, requestParameters.fields, options).then((request) => request(axios, basePath));
2342
+ return localVarFp.listProducts(requestParameters.project, requestParameters.pageToken, requestParameters.search, requestParameters.sortBy, requestParameters.start, requestParameters.end, requestParameters.dateFilterType, requestParameters.maxRetailPrice, requestParameters.minRetailPrice, requestParameters.pageSize, requestParameters.fields, options).then((request) => request(axios, basePath));
1997
2343
  },
1998
2344
  /**
1999
2345
  * AI SEO optimises products by a set of given IDs.
@@ -2079,7 +2425,7 @@ export class ProductsApi extends BaseAPI {
2079
2425
  * @throws {RequiredError}
2080
2426
  */
2081
2427
  exportProducts(requestParameters, options) {
2082
- return ProductsApiFp(this.configuration).exportProducts(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
2428
+ return ProductsApiFp(this.configuration).exportProducts(requestParameters.project, requestParameters.search, requestParameters.start, requestParameters.end, requestParameters.dateFilterType, requestParameters.maxRetailPrice, requestParameters.minRetailPrice, options).then((request) => request(this.axios, this.basePath));
2083
2429
  }
2084
2430
  /**
2085
2431
  * Gets a product by a given ID.
@@ -2109,7 +2455,7 @@ export class ProductsApi extends BaseAPI {
2109
2455
  * @throws {RequiredError}
2110
2456
  */
2111
2457
  listProducts(requestParameters, options) {
2112
- return ProductsApiFp(this.configuration).listProducts(requestParameters.project, requestParameters.pageToken, requestParameters.search, requestParameters.sortBy, requestParameters.start, requestParameters.end, requestParameters.dateFilterType, requestParameters.pageSize, requestParameters.fields, options).then((request) => request(this.axios, this.basePath));
2458
+ return ProductsApiFp(this.configuration).listProducts(requestParameters.project, requestParameters.pageToken, requestParameters.search, requestParameters.sortBy, requestParameters.start, requestParameters.end, requestParameters.dateFilterType, requestParameters.maxRetailPrice, requestParameters.minRetailPrice, requestParameters.pageSize, requestParameters.fields, options).then((request) => request(this.axios, this.basePath));
2113
2459
  }
2114
2460
  /**
2115
2461
  * AI SEO optimises products by a set of given IDs.
@@ -2142,6 +2488,10 @@ export class ProductsApi extends BaseAPI {
2142
2488
  return ProductsApiFp(this.configuration).updateProducts(requestParameters.project, requestParameters.updateProductsRequest, options).then((request) => request(this.axios, this.basePath));
2143
2489
  }
2144
2490
  }
2491
+ export const ExportProductsDateFilterTypeEnum = {
2492
+ CreatedAt: 'createdAt',
2493
+ UpdatedAt: 'updatedAt'
2494
+ };
2145
2495
  export const ListProductsDateFilterTypeEnum = {
2146
2496
  CreatedAt: 'createdAt',
2147
2497
  UpdatedAt: 'updatedAt'
@@ -2200,7 +2550,7 @@ export const VariantsApiAxiosParamCreator = function (configuration) {
2200
2550
  * Lists all variants that belong to enabled products attached to the given project.
2201
2551
  * @summary List variants
2202
2552
  * @param {string} project What project it is
2203
- * @param {string} [search] Search query string to filter results. Supports field-specific filters like \&#39;enabled:true\&#39;, \&#39;uuid:&lt;id&gt;\&#39;, \&#39;name:\&quot;product name\&quot;\&#39;, \&#39;tag:\&quot;tag name\&quot;\&#39;, and \&#39;type:product,template,bundle\&#39;. Multiple filters can be combined with spaces and commas.
2553
+ * @param {string} [search] Search query string to filter results. Supports field-specific filters like: \&#39;enabled:true\&#39;, \&#39;gfn_product_ids:&lt;id&gt;\&#39;, \&#39;tag:\&quot;tag name\&quot;\&#39;, \&#39;internal_tag:\&quot;internal tag name\&quot;\&#39;, \&#39;includeArchived:false\&#39;, \&#39;hasSearchPhrase:false\&#39;, \&#39;inDataFeeds:true\&#39;, \&#39;aiOptimised:true\&#39;, \&#39;productType:&lt;id&gt;\&#39;, \&#39;genderGroup:\&quot;male,female,unisex\&quot;\&#39;, \&#39;hasBarcode:true\&#39;, \&#39;onSale:true\&#39;, \&#39;type:product,template,bundle\&#39;, \&#39;collection:&lt;id&gt;\&#39;. Multiple filters can be combined with spaces and commas.
2204
2554
  * @param {number} [pageToken] Page reference token
2205
2555
  * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
2206
2556
  * @param {string} [fields] Filter response fields to only include a subset of the resource.
@@ -2279,7 +2629,7 @@ export const VariantsApiFp = function (configuration) {
2279
2629
  * Lists all variants that belong to enabled products attached to the given project.
2280
2630
  * @summary List variants
2281
2631
  * @param {string} project What project it is
2282
- * @param {string} [search] Search query string to filter results. Supports field-specific filters like \&#39;enabled:true\&#39;, \&#39;uuid:&lt;id&gt;\&#39;, \&#39;name:\&quot;product name\&quot;\&#39;, \&#39;tag:\&quot;tag name\&quot;\&#39;, and \&#39;type:product,template,bundle\&#39;. Multiple filters can be combined with spaces and commas.
2632
+ * @param {string} [search] Search query string to filter results. Supports field-specific filters like: \&#39;enabled:true\&#39;, \&#39;gfn_product_ids:&lt;id&gt;\&#39;, \&#39;tag:\&quot;tag name\&quot;\&#39;, \&#39;internal_tag:\&quot;internal tag name\&quot;\&#39;, \&#39;includeArchived:false\&#39;, \&#39;hasSearchPhrase:false\&#39;, \&#39;inDataFeeds:true\&#39;, \&#39;aiOptimised:true\&#39;, \&#39;productType:&lt;id&gt;\&#39;, \&#39;genderGroup:\&quot;male,female,unisex\&quot;\&#39;, \&#39;hasBarcode:true\&#39;, \&#39;onSale:true\&#39;, \&#39;type:product,template,bundle\&#39;, \&#39;collection:&lt;id&gt;\&#39;. Multiple filters can be combined with spaces and commas.
2283
2633
  * @param {number} [pageToken] Page reference token
2284
2634
  * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
2285
2635
  * @param {string} [fields] Filter response fields to only include a subset of the resource.