@teemill/platform 0.28.0 → 0.29.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/api.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.28.0
8
+ * The version of the OpenAPI document: 0.29.2
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.TermsApi = exports.TermsApiFactory = exports.TermsApiFp = exports.TermsApiAxiosParamCreator = exports.ReviewsApi = exports.ReviewsApiFactory = exports.ReviewsApiFp = exports.ReviewsApiAxiosParamCreator = exports.PlatformApi = exports.PlatformApiFactory = exports.PlatformApiFp = exports.PlatformApiAxiosParamCreator = exports.PaymentApi = exports.PaymentApiFactory = exports.PaymentApiFp = exports.PaymentApiAxiosParamCreator = exports.ListOrdersDateFilterTypeEnum = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.EnquiriesApi = exports.EnquiriesApiFactory = exports.EnquiriesApiFp = exports.EnquiriesApiAxiosParamCreator = exports.ListCustomersGenderEnum = exports.ListCustomersSortByEnum = exports.ExportCustomersSortByEnum = exports.ExportCustomersGenderEnum = exports.CustomersApi = exports.CustomersApiFactory = exports.CustomersApiFp = exports.CustomersApiAxiosParamCreator = exports.PaymentAttemptStatusEnum = exports.PaymentAttemptPaymentProviderEnum = exports.PaymentAccountMethodEnum = exports.OrderStatus = exports.EnquiryStatusEnum = exports.CustomsInformationPreRegistrationTypeEnum = void 0;
25
+ exports.TermsApi = exports.TermsApiFactory = exports.TermsApiFp = exports.TermsApiAxiosParamCreator = exports.ReviewsApi = exports.ReviewsApiFactory = exports.ReviewsApiFp = exports.ReviewsApiAxiosParamCreator = exports.PlatformApi = exports.PlatformApiFactory = exports.PlatformApiFp = exports.PlatformApiAxiosParamCreator = exports.PaymentApi = exports.PaymentApiFactory = exports.PaymentApiFp = exports.PaymentApiAxiosParamCreator = exports.ListOrdersDateFilterTypeEnum = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.EnquiriesApi = exports.EnquiriesApiFactory = exports.EnquiriesApiFp = exports.EnquiriesApiAxiosParamCreator = exports.ListCustomersGenderEnum = exports.ListCustomersSortByEnum = exports.ExportCustomersGenderEnum = exports.ExportCustomersSortByEnum = exports.CustomersApi = exports.CustomersApiFactory = exports.CustomersApiFp = exports.CustomersApiAxiosParamCreator = exports.PaymentAttemptStatusEnum = exports.PaymentAttemptPaymentProviderEnum = exports.PaymentAccountMethodEnum = exports.OrderStatus = exports.EnquiryStatusEnum = exports.CustomsInformationPreRegistrationTypeEnum = void 0;
26
26
  const axios_1 = require("axios");
27
27
  // Some imports not used depending on template conditions
28
28
  // @ts-ignore
@@ -74,18 +74,24 @@ const CustomersApiAxiosParamCreator = function (configuration) {
74
74
  * @summary Export customers
75
75
  * @param {string} project Project unique identifier
76
76
  * @param {string} platformId The platform identifier
77
+ * @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.
77
78
  * @param {Array<string>} [countries] Filter customers by country code
79
+ * @param {Array<string>} [projects] Filter customers by project. In the absence of this field, all projects will be included in the export.
78
80
  * @param {ExportCustomersGenderEnum} [gender] Filter customers by gender equal to the value provided
79
- * @param {number} [totalOrderCount] Filter customers by total order count equal to the value provided
80
- * @param {number} [refundedOrderCount] Filter customers by refunded order count equal to the value provided
81
- * @param {number} [lifetimeValue] Filter customers by lifetime value less than or equal to the value provided
82
- * @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.
81
+ * @param {Array<number>} [productTypes] Filter customers by purchased product types. In the absence of this field, all customers will be included in the export.
82
+ * @param {boolean} [usedDiscount] Filter customers by whether they have used a discount
83
+ * @param {number} [minimumTotalOrderCount] Filter customers by total order count greater than or equal to the value provided
84
+ * @param {number} [maximumTotalOrderCount] Filter customers by total order count less than or equal to the value provided
85
+ * @param {number} [minimumRefundedOrderCount] Filter customers by refunded order count greater than or equal to the value provided
86
+ * @param {number} [maximumRefundedOrderCount] Filter customers by refunded order count less than or equal to the value provided
87
+ * @param {number} [minimumLifetimeValue] Filter customers by lifetime value greater than or equal to the value provided
88
+ * @param {number} [maximumLifetimeValue] Filter customers by lifetime value less than or equal to the value provided
83
89
  * @param {string} [lastPurchasedStart] Start of date range to filter customers by last purchase date
84
90
  * @param {string} [lastPurchasedEnd] End of date range to filter customers by last purchase date
85
91
  * @param {*} [options] Override http request option.
86
92
  * @throws {RequiredError}
87
93
  */
88
- 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 = {}) {
94
+ 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 = {}) {
89
95
  // verify required parameter 'project' is not null or undefined
90
96
  (0, common_1.assertParamExists)('exportCustomers', 'project', project);
91
97
  // verify required parameter 'platformId' is not null or undefined
@@ -109,23 +115,41 @@ const CustomersApiAxiosParamCreator = function (configuration) {
109
115
  if (project !== undefined) {
110
116
  localVarQueryParameter['project'] = project;
111
117
  }
118
+ if (sortBy) {
119
+ localVarQueryParameter['sortBy'] = sortBy;
120
+ }
112
121
  if (countries) {
113
122
  localVarQueryParameter['countries'] = countries;
114
123
  }
124
+ if (projects) {
125
+ localVarQueryParameter['projects'] = projects;
126
+ }
115
127
  if (gender !== undefined) {
116
128
  localVarQueryParameter['gender'] = gender;
117
129
  }
118
- if (totalOrderCount !== undefined) {
119
- localVarQueryParameter['totalOrderCount'] = totalOrderCount;
130
+ if (productTypes) {
131
+ localVarQueryParameter['productTypes'] = productTypes;
120
132
  }
121
- if (refundedOrderCount !== undefined) {
122
- localVarQueryParameter['refundedOrderCount'] = refundedOrderCount;
133
+ if (usedDiscount !== undefined) {
134
+ localVarQueryParameter['usedDiscount'] = usedDiscount;
123
135
  }
124
- if (lifetimeValue !== undefined) {
125
- localVarQueryParameter['lifetimeValue'] = lifetimeValue;
136
+ if (minimumTotalOrderCount !== undefined) {
137
+ localVarQueryParameter['minimumTotalOrderCount'] = minimumTotalOrderCount;
126
138
  }
127
- if (sortBy) {
128
- localVarQueryParameter['sortBy'] = sortBy;
139
+ if (maximumTotalOrderCount !== undefined) {
140
+ localVarQueryParameter['maximumTotalOrderCount'] = maximumTotalOrderCount;
141
+ }
142
+ if (minimumRefundedOrderCount !== undefined) {
143
+ localVarQueryParameter['minimumRefundedOrderCount'] = minimumRefundedOrderCount;
144
+ }
145
+ if (maximumRefundedOrderCount !== undefined) {
146
+ localVarQueryParameter['maximumRefundedOrderCount'] = maximumRefundedOrderCount;
147
+ }
148
+ if (minimumLifetimeValue !== undefined) {
149
+ localVarQueryParameter['minimumLifetimeValue'] = minimumLifetimeValue;
150
+ }
151
+ if (maximumLifetimeValue !== undefined) {
152
+ localVarQueryParameter['maximumLifetimeValue'] = maximumLifetimeValue;
129
153
  }
130
154
  if (lastPurchasedStart !== undefined) {
131
155
  localVarQueryParameter['lastPurchasedStart'] = (lastPurchasedStart instanceof Date) ?
@@ -197,16 +221,22 @@ const CustomersApiAxiosParamCreator = function (configuration) {
197
221
  * @param {string} [search] Search term to filter results
198
222
  * @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.
199
223
  * @param {Array<string>} [countries] Filter customers by country code
224
+ * @param {Array<string>} [projects] Filter customers by project. In the absence of this field, all projects will be included in the export.
200
225
  * @param {ListCustomersGenderEnum} [gender] Filter customers by gender equal to the value provided
201
- * @param {number} [totalOrderCount] Filter customers by total order count equal to the value provided
202
- * @param {number} [refundedOrderCount] Filter customers by refunded order count equal to the value provided
203
- * @param {number} [lifetimeValue] Filter customers by lifetime value less than or equal to the value provided
226
+ * @param {Array<number>} [productTypes] Filter customers by purchased product types. In the absence of this field, all customers will be included in the export.
227
+ * @param {boolean} [usedDiscount] Filter customers by whether they have used a discount
228
+ * @param {number} [minimumTotalOrderCount] Filter customers by total order count greater than or equal to the value provided
229
+ * @param {number} [maximumTotalOrderCount] Filter customers by total order count less than or equal to the value provided
230
+ * @param {number} [minimumRefundedOrderCount] Filter customers by refunded order count greater than or equal to the value provided
231
+ * @param {number} [maximumRefundedOrderCount] Filter customers by refunded order count less than or equal to the value provided
232
+ * @param {number} [minimumLifetimeValue] Filter customers by lifetime value greater than or equal to the value provided
233
+ * @param {number} [maximumLifetimeValue] Filter customers by lifetime value less than or equal to the value provided
204
234
  * @param {string} [lastPurchasedStart] Start of date range to filter customers by last purchase date
205
235
  * @param {string} [lastPurchasedEnd] End of date range to filter customers by last purchase date
206
236
  * @param {*} [options] Override http request option.
207
237
  * @throws {RequiredError}
208
238
  */
209
- 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 = {}) {
239
+ 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 = {}) {
210
240
  // verify required parameter 'project' is not null or undefined
211
241
  (0, common_1.assertParamExists)('listCustomers', 'project', project);
212
242
  // verify required parameter 'platformId' is not null or undefined
@@ -245,17 +275,35 @@ const CustomersApiAxiosParamCreator = function (configuration) {
245
275
  if (countries) {
246
276
  localVarQueryParameter['countries'] = countries;
247
277
  }
278
+ if (projects) {
279
+ localVarQueryParameter['projects'] = projects;
280
+ }
248
281
  if (gender !== undefined) {
249
282
  localVarQueryParameter['gender'] = gender;
250
283
  }
251
- if (totalOrderCount !== undefined) {
252
- localVarQueryParameter['totalOrderCount'] = totalOrderCount;
284
+ if (productTypes) {
285
+ localVarQueryParameter['productTypes'] = productTypes;
286
+ }
287
+ if (usedDiscount !== undefined) {
288
+ localVarQueryParameter['usedDiscount'] = usedDiscount;
289
+ }
290
+ if (minimumTotalOrderCount !== undefined) {
291
+ localVarQueryParameter['minimumTotalOrderCount'] = minimumTotalOrderCount;
292
+ }
293
+ if (maximumTotalOrderCount !== undefined) {
294
+ localVarQueryParameter['maximumTotalOrderCount'] = maximumTotalOrderCount;
295
+ }
296
+ if (minimumRefundedOrderCount !== undefined) {
297
+ localVarQueryParameter['minimumRefundedOrderCount'] = minimumRefundedOrderCount;
253
298
  }
254
- if (refundedOrderCount !== undefined) {
255
- localVarQueryParameter['refundedOrderCount'] = refundedOrderCount;
299
+ if (maximumRefundedOrderCount !== undefined) {
300
+ localVarQueryParameter['maximumRefundedOrderCount'] = maximumRefundedOrderCount;
256
301
  }
257
- if (lifetimeValue !== undefined) {
258
- localVarQueryParameter['lifetimeValue'] = lifetimeValue;
302
+ if (minimumLifetimeValue !== undefined) {
303
+ localVarQueryParameter['minimumLifetimeValue'] = minimumLifetimeValue;
304
+ }
305
+ if (maximumLifetimeValue !== undefined) {
306
+ localVarQueryParameter['maximumLifetimeValue'] = maximumLifetimeValue;
259
307
  }
260
308
  if (lastPurchasedStart !== undefined) {
261
309
  localVarQueryParameter['lastPurchasedStart'] = (lastPurchasedStart instanceof Date) ?
@@ -288,21 +336,27 @@ const CustomersApiFp = function (configuration) {
288
336
  * @summary Export customers
289
337
  * @param {string} project Project unique identifier
290
338
  * @param {string} platformId The platform identifier
339
+ * @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.
291
340
  * @param {Array<string>} [countries] Filter customers by country code
341
+ * @param {Array<string>} [projects] Filter customers by project. In the absence of this field, all projects will be included in the export.
292
342
  * @param {ExportCustomersGenderEnum} [gender] Filter customers by gender equal to the value provided
293
- * @param {number} [totalOrderCount] Filter customers by total order count equal to the value provided
294
- * @param {number} [refundedOrderCount] Filter customers by refunded order count equal to the value provided
295
- * @param {number} [lifetimeValue] Filter customers by lifetime value less than or equal to the value provided
296
- * @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.
343
+ * @param {Array<number>} [productTypes] Filter customers by purchased product types. In the absence of this field, all customers will be included in the export.
344
+ * @param {boolean} [usedDiscount] Filter customers by whether they have used a discount
345
+ * @param {number} [minimumTotalOrderCount] Filter customers by total order count greater than or equal to the value provided
346
+ * @param {number} [maximumTotalOrderCount] Filter customers by total order count less than or equal to the value provided
347
+ * @param {number} [minimumRefundedOrderCount] Filter customers by refunded order count greater than or equal to the value provided
348
+ * @param {number} [maximumRefundedOrderCount] Filter customers by refunded order count less than or equal to the value provided
349
+ * @param {number} [minimumLifetimeValue] Filter customers by lifetime value greater than or equal to the value provided
350
+ * @param {number} [maximumLifetimeValue] Filter customers by lifetime value less than or equal to the value provided
297
351
  * @param {string} [lastPurchasedStart] Start of date range to filter customers by last purchase date
298
352
  * @param {string} [lastPurchasedEnd] End of date range to filter customers by last purchase date
299
353
  * @param {*} [options] Override http request option.
300
354
  * @throws {RequiredError}
301
355
  */
302
- exportCustomers(project, platformId, countries, gender, totalOrderCount, refundedOrderCount, lifetimeValue, sortBy, lastPurchasedStart, lastPurchasedEnd, options) {
356
+ exportCustomers(project, platformId, sortBy, countries, projects, gender, productTypes, usedDiscount, minimumTotalOrderCount, maximumTotalOrderCount, minimumRefundedOrderCount, maximumRefundedOrderCount, minimumLifetimeValue, maximumLifetimeValue, lastPurchasedStart, lastPurchasedEnd, options) {
303
357
  return __awaiter(this, void 0, void 0, function* () {
304
358
  var _a, _b, _c;
305
- const localVarAxiosArgs = yield localVarAxiosParamCreator.exportCustomers(project, platformId, countries, gender, totalOrderCount, refundedOrderCount, lifetimeValue, sortBy, lastPurchasedStart, lastPurchasedEnd, options);
359
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.exportCustomers(project, platformId, sortBy, countries, projects, gender, productTypes, usedDiscount, minimumTotalOrderCount, maximumTotalOrderCount, minimumRefundedOrderCount, maximumRefundedOrderCount, minimumLifetimeValue, maximumLifetimeValue, lastPurchasedStart, lastPurchasedEnd, options);
306
360
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
307
361
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CustomersApi.exportCustomers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
308
362
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -336,19 +390,25 @@ const CustomersApiFp = function (configuration) {
336
390
  * @param {string} [search] Search term to filter results
337
391
  * @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.
338
392
  * @param {Array<string>} [countries] Filter customers by country code
393
+ * @param {Array<string>} [projects] Filter customers by project. In the absence of this field, all projects will be included in the export.
339
394
  * @param {ListCustomersGenderEnum} [gender] Filter customers by gender equal to the value provided
340
- * @param {number} [totalOrderCount] Filter customers by total order count equal to the value provided
341
- * @param {number} [refundedOrderCount] Filter customers by refunded order count equal to the value provided
342
- * @param {number} [lifetimeValue] Filter customers by lifetime value less than or equal to the value provided
395
+ * @param {Array<number>} [productTypes] Filter customers by purchased product types. In the absence of this field, all customers will be included in the export.
396
+ * @param {boolean} [usedDiscount] Filter customers by whether they have used a discount
397
+ * @param {number} [minimumTotalOrderCount] Filter customers by total order count greater than or equal to the value provided
398
+ * @param {number} [maximumTotalOrderCount] Filter customers by total order count less than or equal to the value provided
399
+ * @param {number} [minimumRefundedOrderCount] Filter customers by refunded order count greater than or equal to the value provided
400
+ * @param {number} [maximumRefundedOrderCount] Filter customers by refunded order count less than or equal to the value provided
401
+ * @param {number} [minimumLifetimeValue] Filter customers by lifetime value greater than or equal to the value provided
402
+ * @param {number} [maximumLifetimeValue] Filter customers by lifetime value less than or equal to the value provided
343
403
  * @param {string} [lastPurchasedStart] Start of date range to filter customers by last purchase date
344
404
  * @param {string} [lastPurchasedEnd] End of date range to filter customers by last purchase date
345
405
  * @param {*} [options] Override http request option.
346
406
  * @throws {RequiredError}
347
407
  */
348
- listCustomers(project, platformId, pageToken, pageSize, search, sortBy, countries, gender, totalOrderCount, refundedOrderCount, lifetimeValue, lastPurchasedStart, lastPurchasedEnd, options) {
408
+ listCustomers(project, platformId, pageToken, pageSize, search, sortBy, countries, projects, gender, productTypes, usedDiscount, minimumTotalOrderCount, maximumTotalOrderCount, minimumRefundedOrderCount, maximumRefundedOrderCount, minimumLifetimeValue, maximumLifetimeValue, lastPurchasedStart, lastPurchasedEnd, options) {
349
409
  return __awaiter(this, void 0, void 0, function* () {
350
410
  var _a, _b, _c;
351
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listCustomers(project, platformId, pageToken, pageSize, search, sortBy, countries, gender, totalOrderCount, refundedOrderCount, lifetimeValue, lastPurchasedStart, lastPurchasedEnd, options);
411
+ 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);
352
412
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
353
413
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CustomersApi.listCustomers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
354
414
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -372,7 +432,7 @@ const CustomersApiFactory = function (configuration, basePath, axios) {
372
432
  * @throws {RequiredError}
373
433
  */
374
434
  exportCustomers(requestParameters, options) {
375
- 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));
435
+ 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));
376
436
  },
377
437
  /**
378
438
  * Get a customer for a platform by a given customer ID.
@@ -392,7 +452,7 @@ const CustomersApiFactory = function (configuration, basePath, axios) {
392
452
  * @throws {RequiredError}
393
453
  */
394
454
  listCustomers(requestParameters, options) {
395
- 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));
455
+ 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));
396
456
  },
397
457
  };
398
458
  };
@@ -413,7 +473,7 @@ class CustomersApi extends base_1.BaseAPI {
413
473
  * @memberof CustomersApi
414
474
  */
415
475
  exportCustomers(requestParameters, options) {
416
- return (0, exports.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));
476
+ return (0, exports.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));
417
477
  }
418
478
  /**
419
479
  * Get a customer for a platform by a given customer ID.
@@ -435,17 +495,10 @@ class CustomersApi extends base_1.BaseAPI {
435
495
  * @memberof CustomersApi
436
496
  */
437
497
  listCustomers(requestParameters, options) {
438
- return (0, exports.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));
498
+ return (0, exports.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));
439
499
  }
440
500
  }
441
501
  exports.CustomersApi = CustomersApi;
442
- /**
443
- * @export
444
- */
445
- exports.ExportCustomersGenderEnum = {
446
- Male: 'male',
447
- Female: 'female'
448
- };
449
502
  /**
450
503
  * @export
451
504
  */
@@ -457,7 +510,16 @@ exports.ExportCustomersSortByEnum = {
457
510
  RefundedOrderCount: '+refundedOrderCount',
458
511
  RefundedOrderCount2: '-refundedOrderCount',
459
512
  LastPurchased: '+lastPurchased',
460
- LastPurchased2: '-lastPurchased'
513
+ LastPurchased2: '-lastPurchased',
514
+ UsedDiscount: '+usedDiscount',
515
+ UsedDiscount2: '-usedDiscount'
516
+ };
517
+ /**
518
+ * @export
519
+ */
520
+ exports.ExportCustomersGenderEnum = {
521
+ Male: 'male',
522
+ Female: 'female'
461
523
  };
462
524
  /**
463
525
  * @export
@@ -470,7 +532,9 @@ exports.ListCustomersSortByEnum = {
470
532
  RefundedOrderCount: '+refundedOrderCount',
471
533
  RefundedOrderCount2: '-refundedOrderCount',
472
534
  LastPurchased: '+lastPurchased',
473
- LastPurchased2: '-lastPurchased'
535
+ LastPurchased2: '-lastPurchased',
536
+ UsedDiscount: '+usedDiscount',
537
+ UsedDiscount2: '-usedDiscount'
474
538
  };
475
539
  /**
476
540
  * @export
package/dist/base.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.28.0
5
+ * The version of the OpenAPI document: 0.29.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/base.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.28.0
8
+ * The version of the OpenAPI document: 0.29.2
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.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.28.0
5
+ * The version of the OpenAPI document: 0.29.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.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.28.0
8
+ * The version of the OpenAPI document: 0.29.2
9
9
  *
10
10
  *
11
11
  * 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.28.0
5
+ * The version of the OpenAPI document: 0.29.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Platform API
6
6
  * Manage Your podOS platform
7
7
  *
8
- * The version of the OpenAPI document: 0.28.0
8
+ * The version of the OpenAPI document: 0.29.2
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).