@teemill/platform 0.27.0 → 0.29.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
  * Platform API
5
5
  * Manage Your podOS platform
6
6
  *
7
- * The version of the OpenAPI document: 0.27.0
7
+ * The version of the OpenAPI document: 0.29.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -26,6 +26,9 @@ import globalAxios from 'axios';
26
26
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
27
27
  // @ts-ignore
28
28
  import { BASE_PATH, BaseAPI, operationServerMap } from './base';
29
+ export const CustomsInformationPreRegistrationTypeEnum = {
30
+ Ioss: 'IOSS'
31
+ };
29
32
  export const EnquiryStatusEnum = {
30
33
  New: 'New',
31
34
  Archived: 'Archived',
@@ -68,18 +71,24 @@ export const CustomersApiAxiosParamCreator = function (configuration) {
68
71
  * @summary Export customers
69
72
  * @param {string} project Project unique identifier
70
73
  * @param {string} platformId The platform identifier
74
+ * @param {Array<ExportCustomersSortByEnum>} [sortBy] An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending.
71
75
  * @param {Array<string>} [countries] Filter customers by country code
76
+ * @param {Array<string>} [projects] Filter customers by project. In the absence of this field, all projects will be included in the export.
72
77
  * @param {ExportCustomersGenderEnum} [gender] Filter customers by gender equal to the value provided
73
- * @param {number} [totalOrderCount] Filter customers by total order count equal to the value provided
74
- * @param {number} [refundedOrderCount] Filter customers by refunded order count equal to the value provided
75
- * @param {number} [lifetimeValue] Filter customers by lifetime value less than or equal to the value provided
76
- * @param {Array<ExportCustomersSortByEnum>} [sortBy] An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending.
78
+ * @param {Array<string>} [productTypes] Filter customers by purchased product types. In the absence of this field, all customers will be included in the export.
79
+ * @param {boolean} [usedDiscount] Filter customers by whether they have used a discount
80
+ * @param {number} [minimumTotalOrderCount] Filter customers by total order count greater than or equal to the value provided
81
+ * @param {number} [maximumTotalOrderCount] Filter customers by total order count less than or equal to the value provided
82
+ * @param {number} [minimumRefundedOrderCount] Filter customers by refunded order count greater than or equal to the value provided
83
+ * @param {number} [maximumRefundedOrderCount] Filter customers by refunded order count less than or equal to the value provided
84
+ * @param {number} [minimumLifetimeValue] Filter customers by lifetime value greater than or equal to the value provided
85
+ * @param {number} [maximumLifetimeValue] Filter customers by lifetime value less than or equal to the value provided
77
86
  * @param {string} [lastPurchasedStart] Start of date range to filter customers by last purchase date
78
87
  * @param {string} [lastPurchasedEnd] End of date range to filter customers by last purchase date
79
88
  * @param {*} [options] Override http request option.
80
89
  * @throws {RequiredError}
81
90
  */
82
- exportCustomers: (project_1, platformId_1, countries_1, gender_1, totalOrderCount_1, refundedOrderCount_1, lifetimeValue_1, sortBy_1, lastPurchasedStart_1, lastPurchasedEnd_1, ...args_1) => __awaiter(this, [project_1, platformId_1, countries_1, gender_1, totalOrderCount_1, refundedOrderCount_1, lifetimeValue_1, sortBy_1, lastPurchasedStart_1, lastPurchasedEnd_1, ...args_1], void 0, function* (project, platformId, countries, gender, totalOrderCount, refundedOrderCount, lifetimeValue, sortBy, lastPurchasedStart, lastPurchasedEnd, options = {}) {
91
+ exportCustomers: (project_1, platformId_1, sortBy_1, countries_1, projects_1, gender_1, productTypes_1, usedDiscount_1, minimumTotalOrderCount_1, maximumTotalOrderCount_1, minimumRefundedOrderCount_1, maximumRefundedOrderCount_1, minimumLifetimeValue_1, maximumLifetimeValue_1, lastPurchasedStart_1, lastPurchasedEnd_1, ...args_1) => __awaiter(this, [project_1, platformId_1, sortBy_1, countries_1, projects_1, gender_1, productTypes_1, usedDiscount_1, minimumTotalOrderCount_1, maximumTotalOrderCount_1, minimumRefundedOrderCount_1, maximumRefundedOrderCount_1, minimumLifetimeValue_1, maximumLifetimeValue_1, lastPurchasedStart_1, lastPurchasedEnd_1, ...args_1], void 0, function* (project, platformId, sortBy, countries, projects, gender, productTypes, usedDiscount, minimumTotalOrderCount, maximumTotalOrderCount, minimumRefundedOrderCount, maximumRefundedOrderCount, minimumLifetimeValue, maximumLifetimeValue, lastPurchasedStart, lastPurchasedEnd, options = {}) {
83
92
  // verify required parameter 'project' is not null or undefined
84
93
  assertParamExists('exportCustomers', 'project', project);
85
94
  // verify required parameter 'platformId' is not null or undefined
@@ -103,23 +112,41 @@ export const CustomersApiAxiosParamCreator = function (configuration) {
103
112
  if (project !== undefined) {
104
113
  localVarQueryParameter['project'] = project;
105
114
  }
115
+ if (sortBy) {
116
+ localVarQueryParameter['sortBy'] = sortBy;
117
+ }
106
118
  if (countries) {
107
119
  localVarQueryParameter['countries'] = countries;
108
120
  }
121
+ if (projects) {
122
+ localVarQueryParameter['projects'] = projects;
123
+ }
109
124
  if (gender !== undefined) {
110
125
  localVarQueryParameter['gender'] = gender;
111
126
  }
112
- if (totalOrderCount !== undefined) {
113
- localVarQueryParameter['totalOrderCount'] = totalOrderCount;
127
+ if (productTypes) {
128
+ localVarQueryParameter['productTypes'] = productTypes;
114
129
  }
115
- if (refundedOrderCount !== undefined) {
116
- localVarQueryParameter['refundedOrderCount'] = refundedOrderCount;
130
+ if (usedDiscount !== undefined) {
131
+ localVarQueryParameter['usedDiscount'] = usedDiscount;
117
132
  }
118
- if (lifetimeValue !== undefined) {
119
- localVarQueryParameter['lifetimeValue'] = lifetimeValue;
133
+ if (minimumTotalOrderCount !== undefined) {
134
+ localVarQueryParameter['minimumTotalOrderCount'] = minimumTotalOrderCount;
120
135
  }
121
- if (sortBy) {
122
- localVarQueryParameter['sortBy'] = sortBy;
136
+ if (maximumTotalOrderCount !== undefined) {
137
+ localVarQueryParameter['maximumTotalOrderCount'] = maximumTotalOrderCount;
138
+ }
139
+ if (minimumRefundedOrderCount !== undefined) {
140
+ localVarQueryParameter['minimumRefundedOrderCount'] = minimumRefundedOrderCount;
141
+ }
142
+ if (maximumRefundedOrderCount !== undefined) {
143
+ localVarQueryParameter['maximumRefundedOrderCount'] = maximumRefundedOrderCount;
144
+ }
145
+ if (minimumLifetimeValue !== undefined) {
146
+ localVarQueryParameter['minimumLifetimeValue'] = minimumLifetimeValue;
147
+ }
148
+ if (maximumLifetimeValue !== undefined) {
149
+ localVarQueryParameter['maximumLifetimeValue'] = maximumLifetimeValue;
123
150
  }
124
151
  if (lastPurchasedStart !== undefined) {
125
152
  localVarQueryParameter['lastPurchasedStart'] = (lastPurchasedStart instanceof Date) ?
@@ -191,16 +218,22 @@ export const CustomersApiAxiosParamCreator = function (configuration) {
191
218
  * @param {string} [search] Search term to filter results
192
219
  * @param {Array<ListCustomersSortByEnum>} [sortBy] An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending.
193
220
  * @param {Array<string>} [countries] Filter customers by country code
221
+ * @param {Array<string>} [projects] Filter customers by project. In the absence of this field, all projects will be included in the export.
194
222
  * @param {ListCustomersGenderEnum} [gender] Filter customers by gender equal to the value provided
195
- * @param {number} [totalOrderCount] Filter customers by total order count equal to the value provided
196
- * @param {number} [refundedOrderCount] Filter customers by refunded order count equal to the value provided
197
- * @param {number} [lifetimeValue] Filter customers by lifetime value less than or equal to the value provided
223
+ * @param {Array<string>} [productTypes] Filter customers by purchased product types. In the absence of this field, all customers will be included in the export.
224
+ * @param {boolean} [usedDiscount] Filter customers by whether they have used a discount
225
+ * @param {number} [minimumTotalOrderCount] Filter customers by total order count greater than or equal to the value provided
226
+ * @param {number} [maximumTotalOrderCount] Filter customers by total order count less than or equal to the value provided
227
+ * @param {number} [minimumRefundedOrderCount] Filter customers by refunded order count greater than or equal to the value provided
228
+ * @param {number} [maximumRefundedOrderCount] Filter customers by refunded order count less than or equal to the value provided
229
+ * @param {number} [minimumLifetimeValue] Filter customers by lifetime value greater than or equal to the value provided
230
+ * @param {number} [maximumLifetimeValue] Filter customers by lifetime value less than or equal to the value provided
198
231
  * @param {string} [lastPurchasedStart] Start of date range to filter customers by last purchase date
199
232
  * @param {string} [lastPurchasedEnd] End of date range to filter customers by last purchase date
200
233
  * @param {*} [options] Override http request option.
201
234
  * @throws {RequiredError}
202
235
  */
203
- listCustomers: (project_1, platformId_1, pageToken_1, pageSize_1, search_1, sortBy_1, countries_1, gender_1, totalOrderCount_1, refundedOrderCount_1, lifetimeValue_1, lastPurchasedStart_1, lastPurchasedEnd_1, ...args_1) => __awaiter(this, [project_1, platformId_1, pageToken_1, pageSize_1, search_1, sortBy_1, countries_1, gender_1, totalOrderCount_1, refundedOrderCount_1, lifetimeValue_1, lastPurchasedStart_1, lastPurchasedEnd_1, ...args_1], void 0, function* (project, platformId, pageToken, pageSize, search, sortBy, countries, gender, totalOrderCount, refundedOrderCount, lifetimeValue, lastPurchasedStart, lastPurchasedEnd, options = {}) {
236
+ listCustomers: (project_1, platformId_1, pageToken_1, pageSize_1, search_1, sortBy_1, countries_1, projects_1, gender_1, productTypes_1, usedDiscount_1, minimumTotalOrderCount_1, maximumTotalOrderCount_1, minimumRefundedOrderCount_1, maximumRefundedOrderCount_1, minimumLifetimeValue_1, maximumLifetimeValue_1, lastPurchasedStart_1, lastPurchasedEnd_1, ...args_1) => __awaiter(this, [project_1, platformId_1, pageToken_1, pageSize_1, search_1, sortBy_1, countries_1, projects_1, gender_1, productTypes_1, usedDiscount_1, minimumTotalOrderCount_1, maximumTotalOrderCount_1, minimumRefundedOrderCount_1, maximumRefundedOrderCount_1, minimumLifetimeValue_1, maximumLifetimeValue_1, lastPurchasedStart_1, lastPurchasedEnd_1, ...args_1], void 0, function* (project, platformId, pageToken, pageSize, search, sortBy, countries, projects, gender, productTypes, usedDiscount, minimumTotalOrderCount, maximumTotalOrderCount, minimumRefundedOrderCount, maximumRefundedOrderCount, minimumLifetimeValue, maximumLifetimeValue, lastPurchasedStart, lastPurchasedEnd, options = {}) {
204
237
  // verify required parameter 'project' is not null or undefined
205
238
  assertParamExists('listCustomers', 'project', project);
206
239
  // verify required parameter 'platformId' is not null or undefined
@@ -239,17 +272,35 @@ export const CustomersApiAxiosParamCreator = function (configuration) {
239
272
  if (countries) {
240
273
  localVarQueryParameter['countries'] = countries;
241
274
  }
275
+ if (projects) {
276
+ localVarQueryParameter['projects'] = projects;
277
+ }
242
278
  if (gender !== undefined) {
243
279
  localVarQueryParameter['gender'] = gender;
244
280
  }
245
- if (totalOrderCount !== undefined) {
246
- localVarQueryParameter['totalOrderCount'] = totalOrderCount;
281
+ if (productTypes) {
282
+ localVarQueryParameter['productTypes'] = productTypes;
283
+ }
284
+ if (usedDiscount !== undefined) {
285
+ localVarQueryParameter['usedDiscount'] = usedDiscount;
286
+ }
287
+ if (minimumTotalOrderCount !== undefined) {
288
+ localVarQueryParameter['minimumTotalOrderCount'] = minimumTotalOrderCount;
247
289
  }
248
- if (refundedOrderCount !== undefined) {
249
- localVarQueryParameter['refundedOrderCount'] = refundedOrderCount;
290
+ if (maximumTotalOrderCount !== undefined) {
291
+ localVarQueryParameter['maximumTotalOrderCount'] = maximumTotalOrderCount;
250
292
  }
251
- if (lifetimeValue !== undefined) {
252
- localVarQueryParameter['lifetimeValue'] = lifetimeValue;
293
+ if (minimumRefundedOrderCount !== undefined) {
294
+ localVarQueryParameter['minimumRefundedOrderCount'] = minimumRefundedOrderCount;
295
+ }
296
+ if (maximumRefundedOrderCount !== undefined) {
297
+ localVarQueryParameter['maximumRefundedOrderCount'] = maximumRefundedOrderCount;
298
+ }
299
+ if (minimumLifetimeValue !== undefined) {
300
+ localVarQueryParameter['minimumLifetimeValue'] = minimumLifetimeValue;
301
+ }
302
+ if (maximumLifetimeValue !== undefined) {
303
+ localVarQueryParameter['maximumLifetimeValue'] = maximumLifetimeValue;
253
304
  }
254
305
  if (lastPurchasedStart !== undefined) {
255
306
  localVarQueryParameter['lastPurchasedStart'] = (lastPurchasedStart instanceof Date) ?
@@ -281,21 +332,27 @@ export const CustomersApiFp = function (configuration) {
281
332
  * @summary Export customers
282
333
  * @param {string} project Project unique identifier
283
334
  * @param {string} platformId The platform identifier
335
+ * @param {Array<ExportCustomersSortByEnum>} [sortBy] An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending.
284
336
  * @param {Array<string>} [countries] Filter customers by country code
337
+ * @param {Array<string>} [projects] Filter customers by project. In the absence of this field, all projects will be included in the export.
285
338
  * @param {ExportCustomersGenderEnum} [gender] Filter customers by gender equal to the value provided
286
- * @param {number} [totalOrderCount] Filter customers by total order count equal to the value provided
287
- * @param {number} [refundedOrderCount] Filter customers by refunded order count equal to the value provided
288
- * @param {number} [lifetimeValue] Filter customers by lifetime value less than or equal to the value provided
289
- * @param {Array<ExportCustomersSortByEnum>} [sortBy] An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending.
339
+ * @param {Array<string>} [productTypes] Filter customers by purchased product types. In the absence of this field, all customers will be included in the export.
340
+ * @param {boolean} [usedDiscount] Filter customers by whether they have used a discount
341
+ * @param {number} [minimumTotalOrderCount] Filter customers by total order count greater than or equal to the value provided
342
+ * @param {number} [maximumTotalOrderCount] Filter customers by total order count less than or equal to the value provided
343
+ * @param {number} [minimumRefundedOrderCount] Filter customers by refunded order count greater than or equal to the value provided
344
+ * @param {number} [maximumRefundedOrderCount] Filter customers by refunded order count less than or equal to the value provided
345
+ * @param {number} [minimumLifetimeValue] Filter customers by lifetime value greater than or equal to the value provided
346
+ * @param {number} [maximumLifetimeValue] Filter customers by lifetime value less than or equal to the value provided
290
347
  * @param {string} [lastPurchasedStart] Start of date range to filter customers by last purchase date
291
348
  * @param {string} [lastPurchasedEnd] End of date range to filter customers by last purchase date
292
349
  * @param {*} [options] Override http request option.
293
350
  * @throws {RequiredError}
294
351
  */
295
- exportCustomers(project, platformId, countries, gender, totalOrderCount, refundedOrderCount, lifetimeValue, sortBy, lastPurchasedStart, lastPurchasedEnd, options) {
352
+ exportCustomers(project, platformId, sortBy, countries, projects, gender, productTypes, usedDiscount, minimumTotalOrderCount, maximumTotalOrderCount, minimumRefundedOrderCount, maximumRefundedOrderCount, minimumLifetimeValue, maximumLifetimeValue, lastPurchasedStart, lastPurchasedEnd, options) {
296
353
  return __awaiter(this, void 0, void 0, function* () {
297
354
  var _a, _b, _c;
298
- const localVarAxiosArgs = yield localVarAxiosParamCreator.exportCustomers(project, platformId, countries, gender, totalOrderCount, refundedOrderCount, lifetimeValue, sortBy, lastPurchasedStart, lastPurchasedEnd, options);
355
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.exportCustomers(project, platformId, sortBy, countries, projects, gender, productTypes, usedDiscount, minimumTotalOrderCount, maximumTotalOrderCount, minimumRefundedOrderCount, maximumRefundedOrderCount, minimumLifetimeValue, maximumLifetimeValue, lastPurchasedStart, lastPurchasedEnd, options);
299
356
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
300
357
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CustomersApi.exportCustomers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
301
358
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -329,19 +386,25 @@ export const CustomersApiFp = function (configuration) {
329
386
  * @param {string} [search] Search term to filter results
330
387
  * @param {Array<ListCustomersSortByEnum>} [sortBy] An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending.
331
388
  * @param {Array<string>} [countries] Filter customers by country code
389
+ * @param {Array<string>} [projects] Filter customers by project. In the absence of this field, all projects will be included in the export.
332
390
  * @param {ListCustomersGenderEnum} [gender] Filter customers by gender equal to the value provided
333
- * @param {number} [totalOrderCount] Filter customers by total order count equal to the value provided
334
- * @param {number} [refundedOrderCount] Filter customers by refunded order count equal to the value provided
335
- * @param {number} [lifetimeValue] Filter customers by lifetime value less than or equal to the value provided
391
+ * @param {Array<string>} [productTypes] Filter customers by purchased product types. In the absence of this field, all customers will be included in the export.
392
+ * @param {boolean} [usedDiscount] Filter customers by whether they have used a discount
393
+ * @param {number} [minimumTotalOrderCount] Filter customers by total order count greater than or equal to the value provided
394
+ * @param {number} [maximumTotalOrderCount] Filter customers by total order count less than or equal to the value provided
395
+ * @param {number} [minimumRefundedOrderCount] Filter customers by refunded order count greater than or equal to the value provided
396
+ * @param {number} [maximumRefundedOrderCount] Filter customers by refunded order count less than or equal to the value provided
397
+ * @param {number} [minimumLifetimeValue] Filter customers by lifetime value greater than or equal to the value provided
398
+ * @param {number} [maximumLifetimeValue] Filter customers by lifetime value less than or equal to the value provided
336
399
  * @param {string} [lastPurchasedStart] Start of date range to filter customers by last purchase date
337
400
  * @param {string} [lastPurchasedEnd] End of date range to filter customers by last purchase date
338
401
  * @param {*} [options] Override http request option.
339
402
  * @throws {RequiredError}
340
403
  */
341
- listCustomers(project, platformId, pageToken, pageSize, search, sortBy, countries, gender, totalOrderCount, refundedOrderCount, lifetimeValue, lastPurchasedStart, lastPurchasedEnd, options) {
404
+ listCustomers(project, platformId, pageToken, pageSize, search, sortBy, countries, projects, gender, productTypes, usedDiscount, minimumTotalOrderCount, maximumTotalOrderCount, minimumRefundedOrderCount, maximumRefundedOrderCount, minimumLifetimeValue, maximumLifetimeValue, lastPurchasedStart, lastPurchasedEnd, options) {
342
405
  return __awaiter(this, void 0, void 0, function* () {
343
406
  var _a, _b, _c;
344
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listCustomers(project, platformId, pageToken, pageSize, search, sortBy, countries, gender, totalOrderCount, refundedOrderCount, lifetimeValue, lastPurchasedStart, lastPurchasedEnd, options);
407
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listCustomers(project, platformId, pageToken, pageSize, search, sortBy, countries, projects, gender, productTypes, usedDiscount, minimumTotalOrderCount, maximumTotalOrderCount, minimumRefundedOrderCount, maximumRefundedOrderCount, minimumLifetimeValue, maximumLifetimeValue, lastPurchasedStart, lastPurchasedEnd, options);
345
408
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
346
409
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CustomersApi.listCustomers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
347
410
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -364,7 +427,7 @@ export const CustomersApiFactory = function (configuration, basePath, axios) {
364
427
  * @throws {RequiredError}
365
428
  */
366
429
  exportCustomers(requestParameters, options) {
367
- return localVarFp.exportCustomers(requestParameters.project, requestParameters.platformId, requestParameters.countries, requestParameters.gender, requestParameters.totalOrderCount, requestParameters.refundedOrderCount, requestParameters.lifetimeValue, requestParameters.sortBy, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(axios, basePath));
430
+ return localVarFp.exportCustomers(requestParameters.project, requestParameters.platformId, requestParameters.sortBy, requestParameters.countries, requestParameters.projects, requestParameters.gender, requestParameters.productTypes, requestParameters.usedDiscount, requestParameters.minimumTotalOrderCount, requestParameters.maximumTotalOrderCount, requestParameters.minimumRefundedOrderCount, requestParameters.maximumRefundedOrderCount, requestParameters.minimumLifetimeValue, requestParameters.maximumLifetimeValue, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(axios, basePath));
368
431
  },
369
432
  /**
370
433
  * Get a customer for a platform by a given customer ID.
@@ -384,7 +447,7 @@ export const CustomersApiFactory = function (configuration, basePath, axios) {
384
447
  * @throws {RequiredError}
385
448
  */
386
449
  listCustomers(requestParameters, options) {
387
- return localVarFp.listCustomers(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.sortBy, requestParameters.countries, requestParameters.gender, requestParameters.totalOrderCount, requestParameters.refundedOrderCount, requestParameters.lifetimeValue, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(axios, basePath));
450
+ return localVarFp.listCustomers(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.sortBy, requestParameters.countries, requestParameters.projects, requestParameters.gender, requestParameters.productTypes, requestParameters.usedDiscount, requestParameters.minimumTotalOrderCount, requestParameters.maximumTotalOrderCount, requestParameters.minimumRefundedOrderCount, requestParameters.maximumRefundedOrderCount, requestParameters.minimumLifetimeValue, requestParameters.maximumLifetimeValue, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(axios, basePath));
388
451
  },
389
452
  };
390
453
  };
@@ -404,7 +467,7 @@ export class CustomersApi extends BaseAPI {
404
467
  * @memberof CustomersApi
405
468
  */
406
469
  exportCustomers(requestParameters, options) {
407
- return CustomersApiFp(this.configuration).exportCustomers(requestParameters.project, requestParameters.platformId, requestParameters.countries, requestParameters.gender, requestParameters.totalOrderCount, requestParameters.refundedOrderCount, requestParameters.lifetimeValue, requestParameters.sortBy, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(this.axios, this.basePath));
470
+ return CustomersApiFp(this.configuration).exportCustomers(requestParameters.project, requestParameters.platformId, requestParameters.sortBy, requestParameters.countries, requestParameters.projects, requestParameters.gender, requestParameters.productTypes, requestParameters.usedDiscount, requestParameters.minimumTotalOrderCount, requestParameters.maximumTotalOrderCount, requestParameters.minimumRefundedOrderCount, requestParameters.maximumRefundedOrderCount, requestParameters.minimumLifetimeValue, requestParameters.maximumLifetimeValue, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(this.axios, this.basePath));
408
471
  }
409
472
  /**
410
473
  * Get a customer for a platform by a given customer ID.
@@ -426,16 +489,9 @@ export class CustomersApi extends BaseAPI {
426
489
  * @memberof CustomersApi
427
490
  */
428
491
  listCustomers(requestParameters, options) {
429
- return CustomersApiFp(this.configuration).listCustomers(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.sortBy, requestParameters.countries, requestParameters.gender, requestParameters.totalOrderCount, requestParameters.refundedOrderCount, requestParameters.lifetimeValue, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(this.axios, this.basePath));
492
+ return CustomersApiFp(this.configuration).listCustomers(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.sortBy, requestParameters.countries, requestParameters.projects, requestParameters.gender, requestParameters.productTypes, requestParameters.usedDiscount, requestParameters.minimumTotalOrderCount, requestParameters.maximumTotalOrderCount, requestParameters.minimumRefundedOrderCount, requestParameters.maximumRefundedOrderCount, requestParameters.minimumLifetimeValue, requestParameters.maximumLifetimeValue, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(this.axios, this.basePath));
430
493
  }
431
494
  }
432
- /**
433
- * @export
434
- */
435
- export const ExportCustomersGenderEnum = {
436
- Male: 'male',
437
- Female: 'female'
438
- };
439
495
  /**
440
496
  * @export
441
497
  */
@@ -447,7 +503,16 @@ export const ExportCustomersSortByEnum = {
447
503
  RefundedOrderCount: '+refundedOrderCount',
448
504
  RefundedOrderCount2: '-refundedOrderCount',
449
505
  LastPurchased: '+lastPurchased',
450
- LastPurchased2: '-lastPurchased'
506
+ LastPurchased2: '-lastPurchased',
507
+ UsedDiscount: '+usedDiscount',
508
+ UsedDiscount2: '-usedDiscount'
509
+ };
510
+ /**
511
+ * @export
512
+ */
513
+ export const ExportCustomersGenderEnum = {
514
+ Male: 'male',
515
+ Female: 'female'
451
516
  };
452
517
  /**
453
518
  * @export
@@ -460,7 +525,9 @@ export const ListCustomersSortByEnum = {
460
525
  RefundedOrderCount: '+refundedOrderCount',
461
526
  RefundedOrderCount2: '-refundedOrderCount',
462
527
  LastPurchased: '+lastPurchased',
463
- LastPurchased2: '-lastPurchased'
528
+ LastPurchased2: '-lastPurchased',
529
+ UsedDiscount: '+usedDiscount',
530
+ UsedDiscount2: '-usedDiscount'
464
531
  };
465
532
  /**
466
533
  * @export
@@ -954,6 +1021,100 @@ export class EnquiriesApi extends BaseAPI {
954
1021
  */
955
1022
  export const OrdersApiAxiosParamCreator = function (configuration) {
956
1023
  return {
1024
+ /**
1025
+ *
1026
+ * @summary Confirm order
1027
+ * @param {string} project Project unique identifier
1028
+ * @param {string} platformId The platform identifier
1029
+ * @param {string} orderId The order identifier
1030
+ * @param {ConfirmOrderRequest} confirmOrderRequest ConfirmFulfillment schema
1031
+ * @param {*} [options] Override http request option.
1032
+ * @throws {RequiredError}
1033
+ */
1034
+ confirmOrder: (project_1, platformId_1, orderId_1, confirmOrderRequest_1, ...args_1) => __awaiter(this, [project_1, platformId_1, orderId_1, confirmOrderRequest_1, ...args_1], void 0, function* (project, platformId, orderId, confirmOrderRequest, options = {}) {
1035
+ // verify required parameter 'project' is not null or undefined
1036
+ assertParamExists('confirmOrder', 'project', project);
1037
+ // verify required parameter 'platformId' is not null or undefined
1038
+ assertParamExists('confirmOrder', 'platformId', platformId);
1039
+ // verify required parameter 'orderId' is not null or undefined
1040
+ assertParamExists('confirmOrder', 'orderId', orderId);
1041
+ // verify required parameter 'confirmOrderRequest' is not null or undefined
1042
+ assertParamExists('confirmOrder', 'confirmOrderRequest', confirmOrderRequest);
1043
+ const localVarPath = `/v1/platform/{platformId}/orders/{orderId}/confirm`
1044
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
1045
+ .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
1046
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1047
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1048
+ let baseOptions;
1049
+ if (configuration) {
1050
+ baseOptions = configuration.baseOptions;
1051
+ }
1052
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1053
+ const localVarHeaderParameter = {};
1054
+ const localVarQueryParameter = {};
1055
+ // authentication session-oauth required
1056
+ // oauth required
1057
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
1058
+ // authentication api-key required
1059
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
1060
+ if (project !== undefined) {
1061
+ localVarQueryParameter['project'] = project;
1062
+ }
1063
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1064
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1065
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1066
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1067
+ localVarRequestOptions.data = serializeDataIfNeeded(confirmOrderRequest, localVarRequestOptions, configuration);
1068
+ return {
1069
+ url: toPathString(localVarUrlObj),
1070
+ options: localVarRequestOptions,
1071
+ };
1072
+ }),
1073
+ /**
1074
+ *
1075
+ * @summary Create order
1076
+ * @param {string} project Project unique identifier
1077
+ * @param {string} platformId The platform identifier
1078
+ * @param {CreateOrder} createOrder Create Order schema
1079
+ * @param {*} [options] Override http request option.
1080
+ * @throws {RequiredError}
1081
+ */
1082
+ createOrder: (project_1, platformId_1, createOrder_1, ...args_1) => __awaiter(this, [project_1, platformId_1, createOrder_1, ...args_1], void 0, function* (project, platformId, createOrder, options = {}) {
1083
+ // verify required parameter 'project' is not null or undefined
1084
+ assertParamExists('createOrder', 'project', project);
1085
+ // verify required parameter 'platformId' is not null or undefined
1086
+ assertParamExists('createOrder', 'platformId', platformId);
1087
+ // verify required parameter 'createOrder' is not null or undefined
1088
+ assertParamExists('createOrder', 'createOrder', createOrder);
1089
+ const localVarPath = `/v1/platform/{platformId}/orders`
1090
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
1091
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1092
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1093
+ let baseOptions;
1094
+ if (configuration) {
1095
+ baseOptions = configuration.baseOptions;
1096
+ }
1097
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1098
+ const localVarHeaderParameter = {};
1099
+ const localVarQueryParameter = {};
1100
+ // authentication session-oauth required
1101
+ // oauth required
1102
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
1103
+ // authentication api-key required
1104
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
1105
+ if (project !== undefined) {
1106
+ localVarQueryParameter['project'] = project;
1107
+ }
1108
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1109
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1110
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1111
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1112
+ localVarRequestOptions.data = serializeDataIfNeeded(createOrder, localVarRequestOptions, configuration);
1113
+ return {
1114
+ url: toPathString(localVarUrlObj),
1115
+ options: localVarRequestOptions,
1116
+ };
1117
+ }),
957
1118
  /**
958
1119
  * Export orders as a CSV file
959
1120
  * @summary Export orders
@@ -1410,6 +1571,43 @@ export const OrdersApiAxiosParamCreator = function (configuration) {
1410
1571
  export const OrdersApiFp = function (configuration) {
1411
1572
  const localVarAxiosParamCreator = OrdersApiAxiosParamCreator(configuration);
1412
1573
  return {
1574
+ /**
1575
+ *
1576
+ * @summary Confirm order
1577
+ * @param {string} project Project unique identifier
1578
+ * @param {string} platformId The platform identifier
1579
+ * @param {string} orderId The order identifier
1580
+ * @param {ConfirmOrderRequest} confirmOrderRequest ConfirmFulfillment schema
1581
+ * @param {*} [options] Override http request option.
1582
+ * @throws {RequiredError}
1583
+ */
1584
+ confirmOrder(project, platformId, orderId, confirmOrderRequest, options) {
1585
+ return __awaiter(this, void 0, void 0, function* () {
1586
+ var _a, _b, _c;
1587
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.confirmOrder(project, platformId, orderId, confirmOrderRequest, options);
1588
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1589
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OrdersApi.confirmOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1590
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1591
+ });
1592
+ },
1593
+ /**
1594
+ *
1595
+ * @summary Create order
1596
+ * @param {string} project Project unique identifier
1597
+ * @param {string} platformId The platform identifier
1598
+ * @param {CreateOrder} createOrder Create Order schema
1599
+ * @param {*} [options] Override http request option.
1600
+ * @throws {RequiredError}
1601
+ */
1602
+ createOrder(project, platformId, createOrder, options) {
1603
+ return __awaiter(this, void 0, void 0, function* () {
1604
+ var _a, _b, _c;
1605
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createOrder(project, platformId, createOrder, options);
1606
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1607
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OrdersApi.createOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1608
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1609
+ });
1610
+ },
1413
1611
  /**
1414
1612
  * Export orders as a CSV file
1415
1613
  * @summary Export orders
@@ -1591,6 +1789,26 @@ export const OrdersApiFp = function (configuration) {
1591
1789
  export const OrdersApiFactory = function (configuration, basePath, axios) {
1592
1790
  const localVarFp = OrdersApiFp(configuration);
1593
1791
  return {
1792
+ /**
1793
+ *
1794
+ * @summary Confirm order
1795
+ * @param {OrdersApiConfirmOrderRequest} requestParameters Request parameters.
1796
+ * @param {*} [options] Override http request option.
1797
+ * @throws {RequiredError}
1798
+ */
1799
+ confirmOrder(requestParameters, options) {
1800
+ return localVarFp.confirmOrder(requestParameters.project, requestParameters.platformId, requestParameters.orderId, requestParameters.confirmOrderRequest, options).then((request) => request(axios, basePath));
1801
+ },
1802
+ /**
1803
+ *
1804
+ * @summary Create order
1805
+ * @param {OrdersApiCreateOrderRequest} requestParameters Request parameters.
1806
+ * @param {*} [options] Override http request option.
1807
+ * @throws {RequiredError}
1808
+ */
1809
+ createOrder(requestParameters, options) {
1810
+ return localVarFp.createOrder(requestParameters.project, requestParameters.platformId, requestParameters.createOrder, options).then((request) => request(axios, basePath));
1811
+ },
1594
1812
  /**
1595
1813
  * Export orders as a CSV file
1596
1814
  * @summary Export orders
@@ -1690,6 +1908,28 @@ export const OrdersApiFactory = function (configuration, basePath, axios) {
1690
1908
  * @extends {BaseAPI}
1691
1909
  */
1692
1910
  export class OrdersApi extends BaseAPI {
1911
+ /**
1912
+ *
1913
+ * @summary Confirm order
1914
+ * @param {OrdersApiConfirmOrderRequest} requestParameters Request parameters.
1915
+ * @param {*} [options] Override http request option.
1916
+ * @throws {RequiredError}
1917
+ * @memberof OrdersApi
1918
+ */
1919
+ confirmOrder(requestParameters, options) {
1920
+ return OrdersApiFp(this.configuration).confirmOrder(requestParameters.project, requestParameters.platformId, requestParameters.orderId, requestParameters.confirmOrderRequest, options).then((request) => request(this.axios, this.basePath));
1921
+ }
1922
+ /**
1923
+ *
1924
+ * @summary Create order
1925
+ * @param {OrdersApiCreateOrderRequest} requestParameters Request parameters.
1926
+ * @param {*} [options] Override http request option.
1927
+ * @throws {RequiredError}
1928
+ * @memberof OrdersApi
1929
+ */
1930
+ createOrder(requestParameters, options) {
1931
+ return OrdersApiFp(this.configuration).createOrder(requestParameters.project, requestParameters.platformId, requestParameters.createOrder, options).then((request) => request(this.axios, this.basePath));
1932
+ }
1693
1933
  /**
1694
1934
  * Export orders as a CSV file
1695
1935
  * @summary Export orders
@@ -2,7 +2,7 @@
2
2
  * Platform API
3
3
  * Manage Your podOS platform
4
4
  *
5
- * The version of the OpenAPI document: 0.27.0
5
+ * The version of the OpenAPI document: 0.29.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/base.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Platform API
5
5
  * Manage Your podOS platform
6
6
  *
7
- * The version of the OpenAPI document: 0.27.0
7
+ * The version of the OpenAPI document: 0.29.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Platform API
3
3
  * Manage Your podOS platform
4
4
  *
5
- * The version of the OpenAPI document: 0.27.0
5
+ * The version of the OpenAPI document: 0.29.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Platform API
5
5
  * Manage Your podOS platform
6
6
  *
7
- * The version of the OpenAPI document: 0.27.0
7
+ * The version of the OpenAPI document: 0.29.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Platform API
3
3
  * Manage Your podOS platform
4
4
  *
5
- * The version of the OpenAPI document: 0.27.0
5
+ * The version of the OpenAPI document: 0.29.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Platform API
5
5
  * Manage Your podOS platform
6
6
  *
7
- * The version of the OpenAPI document: 0.27.0
7
+ * The version of the OpenAPI document: 0.29.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Platform API
3
3
  * Manage Your podOS platform
4
4
  *
5
- * The version of the OpenAPI document: 0.27.0
5
+ * The version of the OpenAPI document: 0.29.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/index.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Platform API
5
5
  * Manage Your podOS platform
6
6
  *
7
- * The version of the OpenAPI document: 0.27.0
7
+ * The version of the OpenAPI document: 0.29.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Platform API
3
3
  * Manage Your podOS platform
4
4
  *
5
- * The version of the OpenAPI document: 0.27.0
5
+ * The version of the OpenAPI document: 0.29.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Platform API
6
6
  * Manage Your podOS platform
7
7
  *
8
- * The version of the OpenAPI document: 0.27.0
8
+ * The version of the OpenAPI document: 0.29.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).