@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/README.md +2 -2
- package/api.ts +230 -64
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +148 -42
- package/dist/api.js +113 -49
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +148 -42
- package/dist/esm/api.js +112 -48
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/CustomersApi.md +59 -23
- package/docs/Statistics.md +2 -0
- package/index.ts +1 -1
- package/package.json +1 -1
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.
|
|
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.
|
|
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 \'-\' for descending order or \'+\' 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} [
|
|
80
|
-
* @param {
|
|
81
|
-
* @param {number} [
|
|
82
|
-
* @param {
|
|
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,
|
|
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 (
|
|
119
|
-
localVarQueryParameter['
|
|
130
|
+
if (productTypes) {
|
|
131
|
+
localVarQueryParameter['productTypes'] = productTypes;
|
|
120
132
|
}
|
|
121
|
-
if (
|
|
122
|
-
localVarQueryParameter['
|
|
133
|
+
if (usedDiscount !== undefined) {
|
|
134
|
+
localVarQueryParameter['usedDiscount'] = usedDiscount;
|
|
123
135
|
}
|
|
124
|
-
if (
|
|
125
|
-
localVarQueryParameter['
|
|
136
|
+
if (minimumTotalOrderCount !== undefined) {
|
|
137
|
+
localVarQueryParameter['minimumTotalOrderCount'] = minimumTotalOrderCount;
|
|
126
138
|
}
|
|
127
|
-
if (
|
|
128
|
-
localVarQueryParameter['
|
|
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 \'-\' for descending order or \'+\' 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} [
|
|
202
|
-
* @param {
|
|
203
|
-
* @param {number} [
|
|
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,
|
|
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 (
|
|
252
|
-
localVarQueryParameter['
|
|
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 (
|
|
255
|
-
localVarQueryParameter['
|
|
299
|
+
if (maximumRefundedOrderCount !== undefined) {
|
|
300
|
+
localVarQueryParameter['maximumRefundedOrderCount'] = maximumRefundedOrderCount;
|
|
256
301
|
}
|
|
257
|
-
if (
|
|
258
|
-
localVarQueryParameter['
|
|
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 \'-\' for descending order or \'+\' 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} [
|
|
294
|
-
* @param {
|
|
295
|
-
* @param {number} [
|
|
296
|
-
* @param {
|
|
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,
|
|
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,
|
|
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 \'-\' for descending order or \'+\' 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} [
|
|
341
|
-
* @param {
|
|
342
|
-
* @param {number} [
|
|
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,
|
|
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,
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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
package/dist/base.js
CHANGED
package/dist/common.d.ts
CHANGED
package/dist/common.js
CHANGED
package/dist/configuration.d.ts
CHANGED
package/dist/configuration.js
CHANGED