@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/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.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).
@@ -22,13 +22,16 @@ 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 = 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
29
29
  const common_1 = require("./common");
30
30
  // @ts-ignore
31
31
  const base_1 = require("./base");
32
+ exports.CustomsInformationPreRegistrationTypeEnum = {
33
+ Ioss: 'IOSS'
34
+ };
32
35
  exports.EnquiryStatusEnum = {
33
36
  New: 'New',
34
37
  Archived: 'Archived',
@@ -71,18 +74,24 @@ const CustomersApiAxiosParamCreator = function (configuration) {
71
74
  * @summary Export customers
72
75
  * @param {string} project Project unique identifier
73
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.
74
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.
75
80
  * @param {ExportCustomersGenderEnum} [gender] Filter customers by gender equal to the value provided
76
- * @param {number} [totalOrderCount] Filter customers by total order count equal to the value provided
77
- * @param {number} [refundedOrderCount] Filter customers by refunded order count equal to the value provided
78
- * @param {number} [lifetimeValue] Filter customers by lifetime value less than or equal to the value provided
79
- * @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<string>} [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
80
89
  * @param {string} [lastPurchasedStart] Start of date range to filter customers by last purchase date
81
90
  * @param {string} [lastPurchasedEnd] End of date range to filter customers by last purchase date
82
91
  * @param {*} [options] Override http request option.
83
92
  * @throws {RequiredError}
84
93
  */
85
- 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 = {}) {
86
95
  // verify required parameter 'project' is not null or undefined
87
96
  (0, common_1.assertParamExists)('exportCustomers', 'project', project);
88
97
  // verify required parameter 'platformId' is not null or undefined
@@ -106,23 +115,41 @@ const CustomersApiAxiosParamCreator = function (configuration) {
106
115
  if (project !== undefined) {
107
116
  localVarQueryParameter['project'] = project;
108
117
  }
118
+ if (sortBy) {
119
+ localVarQueryParameter['sortBy'] = sortBy;
120
+ }
109
121
  if (countries) {
110
122
  localVarQueryParameter['countries'] = countries;
111
123
  }
124
+ if (projects) {
125
+ localVarQueryParameter['projects'] = projects;
126
+ }
112
127
  if (gender !== undefined) {
113
128
  localVarQueryParameter['gender'] = gender;
114
129
  }
115
- if (totalOrderCount !== undefined) {
116
- localVarQueryParameter['totalOrderCount'] = totalOrderCount;
130
+ if (productTypes) {
131
+ localVarQueryParameter['productTypes'] = productTypes;
117
132
  }
118
- if (refundedOrderCount !== undefined) {
119
- localVarQueryParameter['refundedOrderCount'] = refundedOrderCount;
133
+ if (usedDiscount !== undefined) {
134
+ localVarQueryParameter['usedDiscount'] = usedDiscount;
120
135
  }
121
- if (lifetimeValue !== undefined) {
122
- localVarQueryParameter['lifetimeValue'] = lifetimeValue;
136
+ if (minimumTotalOrderCount !== undefined) {
137
+ localVarQueryParameter['minimumTotalOrderCount'] = minimumTotalOrderCount;
123
138
  }
124
- if (sortBy) {
125
- 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;
126
153
  }
127
154
  if (lastPurchasedStart !== undefined) {
128
155
  localVarQueryParameter['lastPurchasedStart'] = (lastPurchasedStart instanceof Date) ?
@@ -194,16 +221,22 @@ const CustomersApiAxiosParamCreator = function (configuration) {
194
221
  * @param {string} [search] Search term to filter results
195
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.
196
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.
197
225
  * @param {ListCustomersGenderEnum} [gender] Filter customers by gender equal to the value provided
198
- * @param {number} [totalOrderCount] Filter customers by total order count equal to the value provided
199
- * @param {number} [refundedOrderCount] Filter customers by refunded order count equal to the value provided
200
- * @param {number} [lifetimeValue] Filter customers by lifetime value less than or equal to the value provided
226
+ * @param {Array<string>} [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
201
234
  * @param {string} [lastPurchasedStart] Start of date range to filter customers by last purchase date
202
235
  * @param {string} [lastPurchasedEnd] End of date range to filter customers by last purchase date
203
236
  * @param {*} [options] Override http request option.
204
237
  * @throws {RequiredError}
205
238
  */
206
- 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 = {}) {
207
240
  // verify required parameter 'project' is not null or undefined
208
241
  (0, common_1.assertParamExists)('listCustomers', 'project', project);
209
242
  // verify required parameter 'platformId' is not null or undefined
@@ -242,17 +275,35 @@ const CustomersApiAxiosParamCreator = function (configuration) {
242
275
  if (countries) {
243
276
  localVarQueryParameter['countries'] = countries;
244
277
  }
278
+ if (projects) {
279
+ localVarQueryParameter['projects'] = projects;
280
+ }
245
281
  if (gender !== undefined) {
246
282
  localVarQueryParameter['gender'] = gender;
247
283
  }
248
- if (totalOrderCount !== undefined) {
249
- 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;
250
292
  }
251
- if (refundedOrderCount !== undefined) {
252
- localVarQueryParameter['refundedOrderCount'] = refundedOrderCount;
293
+ if (maximumTotalOrderCount !== undefined) {
294
+ localVarQueryParameter['maximumTotalOrderCount'] = maximumTotalOrderCount;
253
295
  }
254
- if (lifetimeValue !== undefined) {
255
- localVarQueryParameter['lifetimeValue'] = lifetimeValue;
296
+ if (minimumRefundedOrderCount !== undefined) {
297
+ localVarQueryParameter['minimumRefundedOrderCount'] = minimumRefundedOrderCount;
298
+ }
299
+ if (maximumRefundedOrderCount !== undefined) {
300
+ localVarQueryParameter['maximumRefundedOrderCount'] = maximumRefundedOrderCount;
301
+ }
302
+ if (minimumLifetimeValue !== undefined) {
303
+ localVarQueryParameter['minimumLifetimeValue'] = minimumLifetimeValue;
304
+ }
305
+ if (maximumLifetimeValue !== undefined) {
306
+ localVarQueryParameter['maximumLifetimeValue'] = maximumLifetimeValue;
256
307
  }
257
308
  if (lastPurchasedStart !== undefined) {
258
309
  localVarQueryParameter['lastPurchasedStart'] = (lastPurchasedStart instanceof Date) ?
@@ -285,21 +336,27 @@ const CustomersApiFp = function (configuration) {
285
336
  * @summary Export customers
286
337
  * @param {string} project Project unique identifier
287
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.
288
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.
289
342
  * @param {ExportCustomersGenderEnum} [gender] Filter customers by gender equal to the value provided
290
- * @param {number} [totalOrderCount] Filter customers by total order count equal to the value provided
291
- * @param {number} [refundedOrderCount] Filter customers by refunded order count equal to the value provided
292
- * @param {number} [lifetimeValue] Filter customers by lifetime value less than or equal to the value provided
293
- * @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<string>} [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
294
351
  * @param {string} [lastPurchasedStart] Start of date range to filter customers by last purchase date
295
352
  * @param {string} [lastPurchasedEnd] End of date range to filter customers by last purchase date
296
353
  * @param {*} [options] Override http request option.
297
354
  * @throws {RequiredError}
298
355
  */
299
- 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) {
300
357
  return __awaiter(this, void 0, void 0, function* () {
301
358
  var _a, _b, _c;
302
- 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);
303
360
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
304
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;
305
362
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -333,19 +390,25 @@ const CustomersApiFp = function (configuration) {
333
390
  * @param {string} [search] Search term to filter results
334
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.
335
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.
336
394
  * @param {ListCustomersGenderEnum} [gender] Filter customers by gender equal to the value provided
337
- * @param {number} [totalOrderCount] Filter customers by total order count equal to the value provided
338
- * @param {number} [refundedOrderCount] Filter customers by refunded order count equal to the value provided
339
- * @param {number} [lifetimeValue] Filter customers by lifetime value less than or equal to the value provided
395
+ * @param {Array<string>} [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
340
403
  * @param {string} [lastPurchasedStart] Start of date range to filter customers by last purchase date
341
404
  * @param {string} [lastPurchasedEnd] End of date range to filter customers by last purchase date
342
405
  * @param {*} [options] Override http request option.
343
406
  * @throws {RequiredError}
344
407
  */
345
- 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) {
346
409
  return __awaiter(this, void 0, void 0, function* () {
347
410
  var _a, _b, _c;
348
- 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);
349
412
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
350
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;
351
414
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -369,7 +432,7 @@ const CustomersApiFactory = function (configuration, basePath, axios) {
369
432
  * @throws {RequiredError}
370
433
  */
371
434
  exportCustomers(requestParameters, options) {
372
- 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));
373
436
  },
374
437
  /**
375
438
  * Get a customer for a platform by a given customer ID.
@@ -389,7 +452,7 @@ const CustomersApiFactory = function (configuration, basePath, axios) {
389
452
  * @throws {RequiredError}
390
453
  */
391
454
  listCustomers(requestParameters, options) {
392
- 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));
393
456
  },
394
457
  };
395
458
  };
@@ -410,7 +473,7 @@ class CustomersApi extends base_1.BaseAPI {
410
473
  * @memberof CustomersApi
411
474
  */
412
475
  exportCustomers(requestParameters, options) {
413
- 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));
414
477
  }
415
478
  /**
416
479
  * Get a customer for a platform by a given customer ID.
@@ -432,17 +495,10 @@ class CustomersApi extends base_1.BaseAPI {
432
495
  * @memberof CustomersApi
433
496
  */
434
497
  listCustomers(requestParameters, options) {
435
- 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));
436
499
  }
437
500
  }
438
501
  exports.CustomersApi = CustomersApi;
439
- /**
440
- * @export
441
- */
442
- exports.ExportCustomersGenderEnum = {
443
- Male: 'male',
444
- Female: 'female'
445
- };
446
502
  /**
447
503
  * @export
448
504
  */
@@ -454,7 +510,16 @@ exports.ExportCustomersSortByEnum = {
454
510
  RefundedOrderCount: '+refundedOrderCount',
455
511
  RefundedOrderCount2: '-refundedOrderCount',
456
512
  LastPurchased: '+lastPurchased',
457
- 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'
458
523
  };
459
524
  /**
460
525
  * @export
@@ -467,7 +532,9 @@ exports.ListCustomersSortByEnum = {
467
532
  RefundedOrderCount: '+refundedOrderCount',
468
533
  RefundedOrderCount2: '-refundedOrderCount',
469
534
  LastPurchased: '+lastPurchased',
470
- LastPurchased2: '-lastPurchased'
535
+ LastPurchased2: '-lastPurchased',
536
+ UsedDiscount: '+usedDiscount',
537
+ UsedDiscount2: '-usedDiscount'
471
538
  };
472
539
  /**
473
540
  * @export
@@ -965,6 +1032,100 @@ exports.EnquiriesApi = EnquiriesApi;
965
1032
  */
966
1033
  const OrdersApiAxiosParamCreator = function (configuration) {
967
1034
  return {
1035
+ /**
1036
+ *
1037
+ * @summary Confirm order
1038
+ * @param {string} project Project unique identifier
1039
+ * @param {string} platformId The platform identifier
1040
+ * @param {string} orderId The order identifier
1041
+ * @param {ConfirmOrderRequest} confirmOrderRequest ConfirmFulfillment schema
1042
+ * @param {*} [options] Override http request option.
1043
+ * @throws {RequiredError}
1044
+ */
1045
+ 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 = {}) {
1046
+ // verify required parameter 'project' is not null or undefined
1047
+ (0, common_1.assertParamExists)('confirmOrder', 'project', project);
1048
+ // verify required parameter 'platformId' is not null or undefined
1049
+ (0, common_1.assertParamExists)('confirmOrder', 'platformId', platformId);
1050
+ // verify required parameter 'orderId' is not null or undefined
1051
+ (0, common_1.assertParamExists)('confirmOrder', 'orderId', orderId);
1052
+ // verify required parameter 'confirmOrderRequest' is not null or undefined
1053
+ (0, common_1.assertParamExists)('confirmOrder', 'confirmOrderRequest', confirmOrderRequest);
1054
+ const localVarPath = `/v1/platform/{platformId}/orders/{orderId}/confirm`
1055
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
1056
+ .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
1057
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1058
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1059
+ let baseOptions;
1060
+ if (configuration) {
1061
+ baseOptions = configuration.baseOptions;
1062
+ }
1063
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1064
+ const localVarHeaderParameter = {};
1065
+ const localVarQueryParameter = {};
1066
+ // authentication session-oauth required
1067
+ // oauth required
1068
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
1069
+ // authentication api-key required
1070
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1071
+ if (project !== undefined) {
1072
+ localVarQueryParameter['project'] = project;
1073
+ }
1074
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1075
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1076
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1077
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1078
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(confirmOrderRequest, localVarRequestOptions, configuration);
1079
+ return {
1080
+ url: (0, common_1.toPathString)(localVarUrlObj),
1081
+ options: localVarRequestOptions,
1082
+ };
1083
+ }),
1084
+ /**
1085
+ *
1086
+ * @summary Create order
1087
+ * @param {string} project Project unique identifier
1088
+ * @param {string} platformId The platform identifier
1089
+ * @param {CreateOrder} createOrder Create Order schema
1090
+ * @param {*} [options] Override http request option.
1091
+ * @throws {RequiredError}
1092
+ */
1093
+ 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 = {}) {
1094
+ // verify required parameter 'project' is not null or undefined
1095
+ (0, common_1.assertParamExists)('createOrder', 'project', project);
1096
+ // verify required parameter 'platformId' is not null or undefined
1097
+ (0, common_1.assertParamExists)('createOrder', 'platformId', platformId);
1098
+ // verify required parameter 'createOrder' is not null or undefined
1099
+ (0, common_1.assertParamExists)('createOrder', 'createOrder', createOrder);
1100
+ const localVarPath = `/v1/platform/{platformId}/orders`
1101
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
1102
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1103
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1104
+ let baseOptions;
1105
+ if (configuration) {
1106
+ baseOptions = configuration.baseOptions;
1107
+ }
1108
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1109
+ const localVarHeaderParameter = {};
1110
+ const localVarQueryParameter = {};
1111
+ // authentication session-oauth required
1112
+ // oauth required
1113
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
1114
+ // authentication api-key required
1115
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1116
+ if (project !== undefined) {
1117
+ localVarQueryParameter['project'] = project;
1118
+ }
1119
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1120
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1121
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1122
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1123
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createOrder, localVarRequestOptions, configuration);
1124
+ return {
1125
+ url: (0, common_1.toPathString)(localVarUrlObj),
1126
+ options: localVarRequestOptions,
1127
+ };
1128
+ }),
968
1129
  /**
969
1130
  * Export orders as a CSV file
970
1131
  * @summary Export orders
@@ -1422,6 +1583,43 @@ exports.OrdersApiAxiosParamCreator = OrdersApiAxiosParamCreator;
1422
1583
  const OrdersApiFp = function (configuration) {
1423
1584
  const localVarAxiosParamCreator = (0, exports.OrdersApiAxiosParamCreator)(configuration);
1424
1585
  return {
1586
+ /**
1587
+ *
1588
+ * @summary Confirm order
1589
+ * @param {string} project Project unique identifier
1590
+ * @param {string} platformId The platform identifier
1591
+ * @param {string} orderId The order identifier
1592
+ * @param {ConfirmOrderRequest} confirmOrderRequest ConfirmFulfillment schema
1593
+ * @param {*} [options] Override http request option.
1594
+ * @throws {RequiredError}
1595
+ */
1596
+ confirmOrder(project, platformId, orderId, confirmOrderRequest, options) {
1597
+ return __awaiter(this, void 0, void 0, function* () {
1598
+ var _a, _b, _c;
1599
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.confirmOrder(project, platformId, orderId, confirmOrderRequest, options);
1600
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1601
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.confirmOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1602
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1603
+ });
1604
+ },
1605
+ /**
1606
+ *
1607
+ * @summary Create order
1608
+ * @param {string} project Project unique identifier
1609
+ * @param {string} platformId The platform identifier
1610
+ * @param {CreateOrder} createOrder Create Order schema
1611
+ * @param {*} [options] Override http request option.
1612
+ * @throws {RequiredError}
1613
+ */
1614
+ createOrder(project, platformId, createOrder, options) {
1615
+ return __awaiter(this, void 0, void 0, function* () {
1616
+ var _a, _b, _c;
1617
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createOrder(project, platformId, createOrder, options);
1618
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1619
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.createOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1620
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1621
+ });
1622
+ },
1425
1623
  /**
1426
1624
  * Export orders as a CSV file
1427
1625
  * @summary Export orders
@@ -1604,6 +1802,26 @@ exports.OrdersApiFp = OrdersApiFp;
1604
1802
  const OrdersApiFactory = function (configuration, basePath, axios) {
1605
1803
  const localVarFp = (0, exports.OrdersApiFp)(configuration);
1606
1804
  return {
1805
+ /**
1806
+ *
1807
+ * @summary Confirm order
1808
+ * @param {OrdersApiConfirmOrderRequest} requestParameters Request parameters.
1809
+ * @param {*} [options] Override http request option.
1810
+ * @throws {RequiredError}
1811
+ */
1812
+ confirmOrder(requestParameters, options) {
1813
+ return localVarFp.confirmOrder(requestParameters.project, requestParameters.platformId, requestParameters.orderId, requestParameters.confirmOrderRequest, options).then((request) => request(axios, basePath));
1814
+ },
1815
+ /**
1816
+ *
1817
+ * @summary Create order
1818
+ * @param {OrdersApiCreateOrderRequest} requestParameters Request parameters.
1819
+ * @param {*} [options] Override http request option.
1820
+ * @throws {RequiredError}
1821
+ */
1822
+ createOrder(requestParameters, options) {
1823
+ return localVarFp.createOrder(requestParameters.project, requestParameters.platformId, requestParameters.createOrder, options).then((request) => request(axios, basePath));
1824
+ },
1607
1825
  /**
1608
1826
  * Export orders as a CSV file
1609
1827
  * @summary Export orders
@@ -1704,6 +1922,28 @@ exports.OrdersApiFactory = OrdersApiFactory;
1704
1922
  * @extends {BaseAPI}
1705
1923
  */
1706
1924
  class OrdersApi extends base_1.BaseAPI {
1925
+ /**
1926
+ *
1927
+ * @summary Confirm order
1928
+ * @param {OrdersApiConfirmOrderRequest} requestParameters Request parameters.
1929
+ * @param {*} [options] Override http request option.
1930
+ * @throws {RequiredError}
1931
+ * @memberof OrdersApi
1932
+ */
1933
+ confirmOrder(requestParameters, options) {
1934
+ return (0, exports.OrdersApiFp)(this.configuration).confirmOrder(requestParameters.project, requestParameters.platformId, requestParameters.orderId, requestParameters.confirmOrderRequest, options).then((request) => request(this.axios, this.basePath));
1935
+ }
1936
+ /**
1937
+ *
1938
+ * @summary Create order
1939
+ * @param {OrdersApiCreateOrderRequest} requestParameters Request parameters.
1940
+ * @param {*} [options] Override http request option.
1941
+ * @throws {RequiredError}
1942
+ * @memberof OrdersApi
1943
+ */
1944
+ createOrder(requestParameters, options) {
1945
+ return (0, exports.OrdersApiFp)(this.configuration).createOrder(requestParameters.project, requestParameters.platformId, requestParameters.createOrder, options).then((request) => request(this.axios, this.basePath));
1946
+ }
1707
1947
  /**
1708
1948
  * Export orders as a CSV file
1709
1949
  * @summary Export orders
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.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/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.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).
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.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/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.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).
@@ -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).
@@ -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).