@teemill/platform 0.24.0 → 0.27.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/README.md +4 -2
- package/api.ts +298 -18
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +188 -9
- package/dist/api.js +164 -17
- 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 +188 -9
- package/dist/esm/api.js +163 -16
- 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 +22 -4
- package/docs/EnquiriesApi.md +67 -0
- package/docs/Enquiry.md +2 -0
- package/docs/OrdersApi.md +7 -1
- package/docs/Statistics.md +2 -0
- package/docs/UpdateCustomerEnquiryRequest.md +20 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/esm/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Platform API
|
|
5
5
|
* Manage Your podOS platform
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.
|
|
7
|
+
* The version of the OpenAPI document: 0.27.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -68,7 +68,10 @@ export const CustomersApiAxiosParamCreator = function (configuration) {
|
|
|
68
68
|
* @summary Export customers
|
|
69
69
|
* @param {string} project Project unique identifier
|
|
70
70
|
* @param {string} platformId The platform identifier
|
|
71
|
+
* @param {Array<string>} [countries] Filter customers by country code
|
|
72
|
+
* @param {ExportCustomersGenderEnum} [gender] Filter customers by gender equal to the value provided
|
|
71
73
|
* @param {number} [totalOrderCount] Filter customers by total order count equal to the value provided
|
|
74
|
+
* @param {number} [refundedOrderCount] Filter customers by refunded order count equal to the value provided
|
|
72
75
|
* @param {number} [lifetimeValue] Filter customers by lifetime value less than or equal to the value provided
|
|
73
76
|
* @param {Array<ExportCustomersSortByEnum>} [sortBy] An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending.
|
|
74
77
|
* @param {string} [lastPurchasedStart] Start of date range to filter customers by last purchase date
|
|
@@ -76,7 +79,7 @@ export const CustomersApiAxiosParamCreator = function (configuration) {
|
|
|
76
79
|
* @param {*} [options] Override http request option.
|
|
77
80
|
* @throws {RequiredError}
|
|
78
81
|
*/
|
|
79
|
-
exportCustomers: (project_1, platformId_1, totalOrderCount_1, lifetimeValue_1, sortBy_1, lastPurchasedStart_1, lastPurchasedEnd_1, ...args_1) => __awaiter(this, [project_1, platformId_1, totalOrderCount_1, lifetimeValue_1, sortBy_1, lastPurchasedStart_1, lastPurchasedEnd_1, ...args_1], void 0, function* (project, platformId, totalOrderCount, lifetimeValue, sortBy, lastPurchasedStart, lastPurchasedEnd, options = {}) {
|
|
82
|
+
exportCustomers: (project_1, platformId_1, countries_1, gender_1, totalOrderCount_1, refundedOrderCount_1, lifetimeValue_1, sortBy_1, lastPurchasedStart_1, lastPurchasedEnd_1, ...args_1) => __awaiter(this, [project_1, platformId_1, countries_1, gender_1, totalOrderCount_1, refundedOrderCount_1, lifetimeValue_1, sortBy_1, lastPurchasedStart_1, lastPurchasedEnd_1, ...args_1], void 0, function* (project, platformId, countries, gender, totalOrderCount, refundedOrderCount, lifetimeValue, sortBy, lastPurchasedStart, lastPurchasedEnd, options = {}) {
|
|
80
83
|
// verify required parameter 'project' is not null or undefined
|
|
81
84
|
assertParamExists('exportCustomers', 'project', project);
|
|
82
85
|
// verify required parameter 'platformId' is not null or undefined
|
|
@@ -100,9 +103,18 @@ export const CustomersApiAxiosParamCreator = function (configuration) {
|
|
|
100
103
|
if (project !== undefined) {
|
|
101
104
|
localVarQueryParameter['project'] = project;
|
|
102
105
|
}
|
|
106
|
+
if (countries) {
|
|
107
|
+
localVarQueryParameter['countries'] = countries;
|
|
108
|
+
}
|
|
109
|
+
if (gender !== undefined) {
|
|
110
|
+
localVarQueryParameter['gender'] = gender;
|
|
111
|
+
}
|
|
103
112
|
if (totalOrderCount !== undefined) {
|
|
104
113
|
localVarQueryParameter['totalOrderCount'] = totalOrderCount;
|
|
105
114
|
}
|
|
115
|
+
if (refundedOrderCount !== undefined) {
|
|
116
|
+
localVarQueryParameter['refundedOrderCount'] = refundedOrderCount;
|
|
117
|
+
}
|
|
106
118
|
if (lifetimeValue !== undefined) {
|
|
107
119
|
localVarQueryParameter['lifetimeValue'] = lifetimeValue;
|
|
108
120
|
}
|
|
@@ -178,14 +190,17 @@ export const CustomersApiAxiosParamCreator = function (configuration) {
|
|
|
178
190
|
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
179
191
|
* @param {string} [search] Search term to filter results
|
|
180
192
|
* @param {Array<ListCustomersSortByEnum>} [sortBy] An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending.
|
|
193
|
+
* @param {Array<string>} [countries] Filter customers by country code
|
|
194
|
+
* @param {ListCustomersGenderEnum} [gender] Filter customers by gender equal to the value provided
|
|
181
195
|
* @param {number} [totalOrderCount] Filter customers by total order count equal to the value provided
|
|
196
|
+
* @param {number} [refundedOrderCount] Filter customers by refunded order count equal to the value provided
|
|
182
197
|
* @param {number} [lifetimeValue] Filter customers by lifetime value less than or equal to the value provided
|
|
183
198
|
* @param {string} [lastPurchasedStart] Start of date range to filter customers by last purchase date
|
|
184
199
|
* @param {string} [lastPurchasedEnd] End of date range to filter customers by last purchase date
|
|
185
200
|
* @param {*} [options] Override http request option.
|
|
186
201
|
* @throws {RequiredError}
|
|
187
202
|
*/
|
|
188
|
-
listCustomers: (project_1, platformId_1, pageToken_1, pageSize_1, search_1, sortBy_1, totalOrderCount_1, lifetimeValue_1, lastPurchasedStart_1, lastPurchasedEnd_1, ...args_1) => __awaiter(this, [project_1, platformId_1, pageToken_1, pageSize_1, search_1, sortBy_1, totalOrderCount_1, lifetimeValue_1, lastPurchasedStart_1, lastPurchasedEnd_1, ...args_1], void 0, function* (project, platformId, pageToken, pageSize, search, sortBy, totalOrderCount, lifetimeValue, lastPurchasedStart, lastPurchasedEnd, options = {}) {
|
|
203
|
+
listCustomers: (project_1, platformId_1, pageToken_1, pageSize_1, search_1, sortBy_1, countries_1, gender_1, totalOrderCount_1, refundedOrderCount_1, lifetimeValue_1, lastPurchasedStart_1, lastPurchasedEnd_1, ...args_1) => __awaiter(this, [project_1, platformId_1, pageToken_1, pageSize_1, search_1, sortBy_1, countries_1, gender_1, totalOrderCount_1, refundedOrderCount_1, lifetimeValue_1, lastPurchasedStart_1, lastPurchasedEnd_1, ...args_1], void 0, function* (project, platformId, pageToken, pageSize, search, sortBy, countries, gender, totalOrderCount, refundedOrderCount, lifetimeValue, lastPurchasedStart, lastPurchasedEnd, options = {}) {
|
|
189
204
|
// verify required parameter 'project' is not null or undefined
|
|
190
205
|
assertParamExists('listCustomers', 'project', project);
|
|
191
206
|
// verify required parameter 'platformId' is not null or undefined
|
|
@@ -221,9 +236,18 @@ export const CustomersApiAxiosParamCreator = function (configuration) {
|
|
|
221
236
|
if (sortBy) {
|
|
222
237
|
localVarQueryParameter['sortBy'] = sortBy;
|
|
223
238
|
}
|
|
239
|
+
if (countries) {
|
|
240
|
+
localVarQueryParameter['countries'] = countries;
|
|
241
|
+
}
|
|
242
|
+
if (gender !== undefined) {
|
|
243
|
+
localVarQueryParameter['gender'] = gender;
|
|
244
|
+
}
|
|
224
245
|
if (totalOrderCount !== undefined) {
|
|
225
246
|
localVarQueryParameter['totalOrderCount'] = totalOrderCount;
|
|
226
247
|
}
|
|
248
|
+
if (refundedOrderCount !== undefined) {
|
|
249
|
+
localVarQueryParameter['refundedOrderCount'] = refundedOrderCount;
|
|
250
|
+
}
|
|
227
251
|
if (lifetimeValue !== undefined) {
|
|
228
252
|
localVarQueryParameter['lifetimeValue'] = lifetimeValue;
|
|
229
253
|
}
|
|
@@ -257,7 +281,10 @@ export const CustomersApiFp = function (configuration) {
|
|
|
257
281
|
* @summary Export customers
|
|
258
282
|
* @param {string} project Project unique identifier
|
|
259
283
|
* @param {string} platformId The platform identifier
|
|
284
|
+
* @param {Array<string>} [countries] Filter customers by country code
|
|
285
|
+
* @param {ExportCustomersGenderEnum} [gender] Filter customers by gender equal to the value provided
|
|
260
286
|
* @param {number} [totalOrderCount] Filter customers by total order count equal to the value provided
|
|
287
|
+
* @param {number} [refundedOrderCount] Filter customers by refunded order count equal to the value provided
|
|
261
288
|
* @param {number} [lifetimeValue] Filter customers by lifetime value less than or equal to the value provided
|
|
262
289
|
* @param {Array<ExportCustomersSortByEnum>} [sortBy] An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending.
|
|
263
290
|
* @param {string} [lastPurchasedStart] Start of date range to filter customers by last purchase date
|
|
@@ -265,10 +292,10 @@ export const CustomersApiFp = function (configuration) {
|
|
|
265
292
|
* @param {*} [options] Override http request option.
|
|
266
293
|
* @throws {RequiredError}
|
|
267
294
|
*/
|
|
268
|
-
exportCustomers(project, platformId, totalOrderCount, lifetimeValue, sortBy, lastPurchasedStart, lastPurchasedEnd, options) {
|
|
295
|
+
exportCustomers(project, platformId, countries, gender, totalOrderCount, refundedOrderCount, lifetimeValue, sortBy, lastPurchasedStart, lastPurchasedEnd, options) {
|
|
269
296
|
return __awaiter(this, void 0, void 0, function* () {
|
|
270
297
|
var _a, _b, _c;
|
|
271
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.exportCustomers(project, platformId, totalOrderCount, lifetimeValue, sortBy, lastPurchasedStart, lastPurchasedEnd, options);
|
|
298
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.exportCustomers(project, platformId, countries, gender, totalOrderCount, refundedOrderCount, lifetimeValue, sortBy, lastPurchasedStart, lastPurchasedEnd, options);
|
|
272
299
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
273
300
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CustomersApi.exportCustomers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
274
301
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -301,17 +328,20 @@ export const CustomersApiFp = function (configuration) {
|
|
|
301
328
|
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
302
329
|
* @param {string} [search] Search term to filter results
|
|
303
330
|
* @param {Array<ListCustomersSortByEnum>} [sortBy] An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending.
|
|
331
|
+
* @param {Array<string>} [countries] Filter customers by country code
|
|
332
|
+
* @param {ListCustomersGenderEnum} [gender] Filter customers by gender equal to the value provided
|
|
304
333
|
* @param {number} [totalOrderCount] Filter customers by total order count equal to the value provided
|
|
334
|
+
* @param {number} [refundedOrderCount] Filter customers by refunded order count equal to the value provided
|
|
305
335
|
* @param {number} [lifetimeValue] Filter customers by lifetime value less than or equal to the value provided
|
|
306
336
|
* @param {string} [lastPurchasedStart] Start of date range to filter customers by last purchase date
|
|
307
337
|
* @param {string} [lastPurchasedEnd] End of date range to filter customers by last purchase date
|
|
308
338
|
* @param {*} [options] Override http request option.
|
|
309
339
|
* @throws {RequiredError}
|
|
310
340
|
*/
|
|
311
|
-
listCustomers(project, platformId, pageToken, pageSize, search, sortBy, totalOrderCount, lifetimeValue, lastPurchasedStart, lastPurchasedEnd, options) {
|
|
341
|
+
listCustomers(project, platformId, pageToken, pageSize, search, sortBy, countries, gender, totalOrderCount, refundedOrderCount, lifetimeValue, lastPurchasedStart, lastPurchasedEnd, options) {
|
|
312
342
|
return __awaiter(this, void 0, void 0, function* () {
|
|
313
343
|
var _a, _b, _c;
|
|
314
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listCustomers(project, platformId, pageToken, pageSize, search, sortBy, totalOrderCount, lifetimeValue, lastPurchasedStart, lastPurchasedEnd, options);
|
|
344
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listCustomers(project, platformId, pageToken, pageSize, search, sortBy, countries, gender, totalOrderCount, refundedOrderCount, lifetimeValue, lastPurchasedStart, lastPurchasedEnd, options);
|
|
315
345
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
316
346
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CustomersApi.listCustomers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
317
347
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -334,7 +364,7 @@ export const CustomersApiFactory = function (configuration, basePath, axios) {
|
|
|
334
364
|
* @throws {RequiredError}
|
|
335
365
|
*/
|
|
336
366
|
exportCustomers(requestParameters, options) {
|
|
337
|
-
return localVarFp.exportCustomers(requestParameters.project, requestParameters.platformId, requestParameters.totalOrderCount, requestParameters.lifetimeValue, requestParameters.sortBy, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(axios, basePath));
|
|
367
|
+
return localVarFp.exportCustomers(requestParameters.project, requestParameters.platformId, requestParameters.countries, requestParameters.gender, requestParameters.totalOrderCount, requestParameters.refundedOrderCount, requestParameters.lifetimeValue, requestParameters.sortBy, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(axios, basePath));
|
|
338
368
|
},
|
|
339
369
|
/**
|
|
340
370
|
* Get a customer for a platform by a given customer ID.
|
|
@@ -354,7 +384,7 @@ export const CustomersApiFactory = function (configuration, basePath, axios) {
|
|
|
354
384
|
* @throws {RequiredError}
|
|
355
385
|
*/
|
|
356
386
|
listCustomers(requestParameters, options) {
|
|
357
|
-
return localVarFp.listCustomers(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.sortBy, requestParameters.totalOrderCount, requestParameters.lifetimeValue, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(axios, basePath));
|
|
387
|
+
return localVarFp.listCustomers(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.sortBy, requestParameters.countries, requestParameters.gender, requestParameters.totalOrderCount, requestParameters.refundedOrderCount, requestParameters.lifetimeValue, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(axios, basePath));
|
|
358
388
|
},
|
|
359
389
|
};
|
|
360
390
|
};
|
|
@@ -374,7 +404,7 @@ export class CustomersApi extends BaseAPI {
|
|
|
374
404
|
* @memberof CustomersApi
|
|
375
405
|
*/
|
|
376
406
|
exportCustomers(requestParameters, options) {
|
|
377
|
-
return CustomersApiFp(this.configuration).exportCustomers(requestParameters.project, requestParameters.platformId, requestParameters.totalOrderCount, requestParameters.lifetimeValue, requestParameters.sortBy, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(this.axios, this.basePath));
|
|
407
|
+
return CustomersApiFp(this.configuration).exportCustomers(requestParameters.project, requestParameters.platformId, requestParameters.countries, requestParameters.gender, requestParameters.totalOrderCount, requestParameters.refundedOrderCount, requestParameters.lifetimeValue, requestParameters.sortBy, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(this.axios, this.basePath));
|
|
378
408
|
}
|
|
379
409
|
/**
|
|
380
410
|
* Get a customer for a platform by a given customer ID.
|
|
@@ -396,9 +426,16 @@ export class CustomersApi extends BaseAPI {
|
|
|
396
426
|
* @memberof CustomersApi
|
|
397
427
|
*/
|
|
398
428
|
listCustomers(requestParameters, options) {
|
|
399
|
-
return CustomersApiFp(this.configuration).listCustomers(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.sortBy, requestParameters.totalOrderCount, requestParameters.lifetimeValue, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(this.axios, this.basePath));
|
|
429
|
+
return CustomersApiFp(this.configuration).listCustomers(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.sortBy, requestParameters.countries, requestParameters.gender, requestParameters.totalOrderCount, requestParameters.refundedOrderCount, requestParameters.lifetimeValue, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(this.axios, this.basePath));
|
|
400
430
|
}
|
|
401
431
|
}
|
|
432
|
+
/**
|
|
433
|
+
* @export
|
|
434
|
+
*/
|
|
435
|
+
export const ExportCustomersGenderEnum = {
|
|
436
|
+
Male: 'male',
|
|
437
|
+
Female: 'female'
|
|
438
|
+
};
|
|
402
439
|
/**
|
|
403
440
|
* @export
|
|
404
441
|
*/
|
|
@@ -407,6 +444,8 @@ export const ExportCustomersSortByEnum = {
|
|
|
407
444
|
LifetimeValue2: '-lifetimeValue',
|
|
408
445
|
TotalOrderCount: '+totalOrderCount',
|
|
409
446
|
TotalOrderCount2: '-totalOrderCount',
|
|
447
|
+
RefundedOrderCount: '+refundedOrderCount',
|
|
448
|
+
RefundedOrderCount2: '-refundedOrderCount',
|
|
410
449
|
LastPurchased: '+lastPurchased',
|
|
411
450
|
LastPurchased2: '-lastPurchased'
|
|
412
451
|
};
|
|
@@ -418,9 +457,18 @@ export const ListCustomersSortByEnum = {
|
|
|
418
457
|
LifetimeValue2: '-lifetimeValue',
|
|
419
458
|
TotalOrderCount: '+totalOrderCount',
|
|
420
459
|
TotalOrderCount2: '-totalOrderCount',
|
|
460
|
+
RefundedOrderCount: '+refundedOrderCount',
|
|
461
|
+
RefundedOrderCount2: '-refundedOrderCount',
|
|
421
462
|
LastPurchased: '+lastPurchased',
|
|
422
463
|
LastPurchased2: '-lastPurchased'
|
|
423
464
|
};
|
|
465
|
+
/**
|
|
466
|
+
* @export
|
|
467
|
+
*/
|
|
468
|
+
export const ListCustomersGenderEnum = {
|
|
469
|
+
Male: 'male',
|
|
470
|
+
Female: 'female'
|
|
471
|
+
};
|
|
424
472
|
/**
|
|
425
473
|
* EnquiriesApi - axios parameter creator
|
|
426
474
|
* @export
|
|
@@ -623,6 +671,55 @@ export const EnquiriesApiAxiosParamCreator = function (configuration) {
|
|
|
623
671
|
options: localVarRequestOptions,
|
|
624
672
|
};
|
|
625
673
|
}),
|
|
674
|
+
/**
|
|
675
|
+
* Update a customer enquiry
|
|
676
|
+
* @summary Update customer enquiry
|
|
677
|
+
* @param {string} project Project unique identifier
|
|
678
|
+
* @param {string} platformId The platform identifier
|
|
679
|
+
* @param {string} enquiryId The enquiry identifier
|
|
680
|
+
* @param {UpdateCustomerEnquiryRequest} updateCustomerEnquiryRequest Enquiry update
|
|
681
|
+
* @param {*} [options] Override http request option.
|
|
682
|
+
* @throws {RequiredError}
|
|
683
|
+
*/
|
|
684
|
+
updateCustomerEnquiry: (project_1, platformId_1, enquiryId_1, updateCustomerEnquiryRequest_1, ...args_1) => __awaiter(this, [project_1, platformId_1, enquiryId_1, updateCustomerEnquiryRequest_1, ...args_1], void 0, function* (project, platformId, enquiryId, updateCustomerEnquiryRequest, options = {}) {
|
|
685
|
+
// verify required parameter 'project' is not null or undefined
|
|
686
|
+
assertParamExists('updateCustomerEnquiry', 'project', project);
|
|
687
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
688
|
+
assertParamExists('updateCustomerEnquiry', 'platformId', platformId);
|
|
689
|
+
// verify required parameter 'enquiryId' is not null or undefined
|
|
690
|
+
assertParamExists('updateCustomerEnquiry', 'enquiryId', enquiryId);
|
|
691
|
+
// verify required parameter 'updateCustomerEnquiryRequest' is not null or undefined
|
|
692
|
+
assertParamExists('updateCustomerEnquiry', 'updateCustomerEnquiryRequest', updateCustomerEnquiryRequest);
|
|
693
|
+
const localVarPath = `/v1/platform/{platformId}/customers/enquiries/{enquiryId}`
|
|
694
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
|
|
695
|
+
.replace(`{${"enquiryId"}}`, encodeURIComponent(String(enquiryId)));
|
|
696
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
697
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
698
|
+
let baseOptions;
|
|
699
|
+
if (configuration) {
|
|
700
|
+
baseOptions = configuration.baseOptions;
|
|
701
|
+
}
|
|
702
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
703
|
+
const localVarHeaderParameter = {};
|
|
704
|
+
const localVarQueryParameter = {};
|
|
705
|
+
// authentication session-oauth required
|
|
706
|
+
// oauth required
|
|
707
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
708
|
+
// authentication api-key required
|
|
709
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
710
|
+
if (project !== undefined) {
|
|
711
|
+
localVarQueryParameter['project'] = project;
|
|
712
|
+
}
|
|
713
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
714
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
715
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
716
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
717
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateCustomerEnquiryRequest, localVarRequestOptions, configuration);
|
|
718
|
+
return {
|
|
719
|
+
url: toPathString(localVarUrlObj),
|
|
720
|
+
options: localVarRequestOptions,
|
|
721
|
+
};
|
|
722
|
+
}),
|
|
626
723
|
};
|
|
627
724
|
};
|
|
628
725
|
/**
|
|
@@ -708,6 +805,25 @@ export const EnquiriesApiFp = function (configuration) {
|
|
|
708
805
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
709
806
|
});
|
|
710
807
|
},
|
|
808
|
+
/**
|
|
809
|
+
* Update a customer enquiry
|
|
810
|
+
* @summary Update customer enquiry
|
|
811
|
+
* @param {string} project Project unique identifier
|
|
812
|
+
* @param {string} platformId The platform identifier
|
|
813
|
+
* @param {string} enquiryId The enquiry identifier
|
|
814
|
+
* @param {UpdateCustomerEnquiryRequest} updateCustomerEnquiryRequest Enquiry update
|
|
815
|
+
* @param {*} [options] Override http request option.
|
|
816
|
+
* @throws {RequiredError}
|
|
817
|
+
*/
|
|
818
|
+
updateCustomerEnquiry(project, platformId, enquiryId, updateCustomerEnquiryRequest, options) {
|
|
819
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
820
|
+
var _a, _b, _c;
|
|
821
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateCustomerEnquiry(project, platformId, enquiryId, updateCustomerEnquiryRequest, options);
|
|
822
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
823
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EnquiriesApi.updateCustomerEnquiry']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
824
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
825
|
+
});
|
|
826
|
+
},
|
|
711
827
|
};
|
|
712
828
|
};
|
|
713
829
|
/**
|
|
@@ -757,6 +873,16 @@ export const EnquiriesApiFactory = function (configuration, basePath, axios) {
|
|
|
757
873
|
listCustomerEnquiryLogs(requestParameters, options) {
|
|
758
874
|
return localVarFp.listCustomerEnquiryLogs(requestParameters.project, requestParameters.platformId, requestParameters.enquiryId, options).then((request) => request(axios, basePath));
|
|
759
875
|
},
|
|
876
|
+
/**
|
|
877
|
+
* Update a customer enquiry
|
|
878
|
+
* @summary Update customer enquiry
|
|
879
|
+
* @param {EnquiriesApiUpdateCustomerEnquiryRequest} requestParameters Request parameters.
|
|
880
|
+
* @param {*} [options] Override http request option.
|
|
881
|
+
* @throws {RequiredError}
|
|
882
|
+
*/
|
|
883
|
+
updateCustomerEnquiry(requestParameters, options) {
|
|
884
|
+
return localVarFp.updateCustomerEnquiry(requestParameters.project, requestParameters.platformId, requestParameters.enquiryId, requestParameters.updateCustomerEnquiryRequest, options).then((request) => request(axios, basePath));
|
|
885
|
+
},
|
|
760
886
|
};
|
|
761
887
|
};
|
|
762
888
|
/**
|
|
@@ -810,6 +936,17 @@ export class EnquiriesApi extends BaseAPI {
|
|
|
810
936
|
listCustomerEnquiryLogs(requestParameters, options) {
|
|
811
937
|
return EnquiriesApiFp(this.configuration).listCustomerEnquiryLogs(requestParameters.project, requestParameters.platformId, requestParameters.enquiryId, options).then((request) => request(this.axios, this.basePath));
|
|
812
938
|
}
|
|
939
|
+
/**
|
|
940
|
+
* Update a customer enquiry
|
|
941
|
+
* @summary Update customer enquiry
|
|
942
|
+
* @param {EnquiriesApiUpdateCustomerEnquiryRequest} requestParameters Request parameters.
|
|
943
|
+
* @param {*} [options] Override http request option.
|
|
944
|
+
* @throws {RequiredError}
|
|
945
|
+
* @memberof EnquiriesApi
|
|
946
|
+
*/
|
|
947
|
+
updateCustomerEnquiry(requestParameters, options) {
|
|
948
|
+
return EnquiriesApiFp(this.configuration).updateCustomerEnquiry(requestParameters.project, requestParameters.platformId, requestParameters.enquiryId, requestParameters.updateCustomerEnquiryRequest, options).then((request) => request(this.axios, this.basePath));
|
|
949
|
+
}
|
|
813
950
|
}
|
|
814
951
|
/**
|
|
815
952
|
* OrdersApi - axios parameter creator
|
|
@@ -1062,10 +1199,12 @@ export const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
1062
1199
|
* @param {string} [start] Start of date range to filter when orders were placed
|
|
1063
1200
|
* @param {string} [end] End of date range to filter when orders were placed
|
|
1064
1201
|
* @param {ListOrdersDateFilterTypeEnum} [dateFilterType] Specifies the type of date range filter to apply. Determines which date field the `start` and `end` fields should query.
|
|
1202
|
+
* @param {number} [maxOrderTotal] The maximum value of the order
|
|
1203
|
+
* @param {number} [minOrderTotal] The minimum value of the order
|
|
1065
1204
|
* @param {*} [options] Override http request option.
|
|
1066
1205
|
* @throws {RequiredError}
|
|
1067
1206
|
*/
|
|
1068
|
-
listOrders: (project_1, platformId_1, pageToken_1, pageSize_1, search_1, start_1, end_1, dateFilterType_1, ...args_1) => __awaiter(this, [project_1, platformId_1, pageToken_1, pageSize_1, search_1, start_1, end_1, dateFilterType_1, ...args_1], void 0, function* (project, platformId, pageToken, pageSize, search, start, end, dateFilterType, options = {}) {
|
|
1207
|
+
listOrders: (project_1, platformId_1, pageToken_1, pageSize_1, search_1, start_1, end_1, dateFilterType_1, maxOrderTotal_1, minOrderTotal_1, ...args_1) => __awaiter(this, [project_1, platformId_1, pageToken_1, pageSize_1, search_1, start_1, end_1, dateFilterType_1, maxOrderTotal_1, minOrderTotal_1, ...args_1], void 0, function* (project, platformId, pageToken, pageSize, search, start, end, dateFilterType, maxOrderTotal, minOrderTotal, options = {}) {
|
|
1069
1208
|
// verify required parameter 'project' is not null or undefined
|
|
1070
1209
|
assertParamExists('listOrders', 'project', project);
|
|
1071
1210
|
// verify required parameter 'platformId' is not null or undefined
|
|
@@ -1111,6 +1250,12 @@ export const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
1111
1250
|
if (dateFilterType !== undefined) {
|
|
1112
1251
|
localVarQueryParameter['dateFilterType'] = dateFilterType;
|
|
1113
1252
|
}
|
|
1253
|
+
if (maxOrderTotal !== undefined) {
|
|
1254
|
+
localVarQueryParameter['maxOrderTotal'] = maxOrderTotal;
|
|
1255
|
+
}
|
|
1256
|
+
if (minOrderTotal !== undefined) {
|
|
1257
|
+
localVarQueryParameter['minOrderTotal'] = minOrderTotal;
|
|
1258
|
+
}
|
|
1114
1259
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1115
1260
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1116
1261
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1368,13 +1513,15 @@ export const OrdersApiFp = function (configuration) {
|
|
|
1368
1513
|
* @param {string} [start] Start of date range to filter when orders were placed
|
|
1369
1514
|
* @param {string} [end] End of date range to filter when orders were placed
|
|
1370
1515
|
* @param {ListOrdersDateFilterTypeEnum} [dateFilterType] Specifies the type of date range filter to apply. Determines which date field the `start` and `end` fields should query.
|
|
1516
|
+
* @param {number} [maxOrderTotal] The maximum value of the order
|
|
1517
|
+
* @param {number} [minOrderTotal] The minimum value of the order
|
|
1371
1518
|
* @param {*} [options] Override http request option.
|
|
1372
1519
|
* @throws {RequiredError}
|
|
1373
1520
|
*/
|
|
1374
|
-
listOrders(project, platformId, pageToken, pageSize, search, start, end, dateFilterType, options) {
|
|
1521
|
+
listOrders(project, platformId, pageToken, pageSize, search, start, end, dateFilterType, maxOrderTotal, minOrderTotal, options) {
|
|
1375
1522
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1376
1523
|
var _a, _b, _c;
|
|
1377
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listOrders(project, platformId, pageToken, pageSize, search, start, end, dateFilterType, options);
|
|
1524
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listOrders(project, platformId, pageToken, pageSize, search, start, end, dateFilterType, maxOrderTotal, minOrderTotal, options);
|
|
1378
1525
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1379
1526
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OrdersApi.listOrders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1380
1527
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1502,7 +1649,7 @@ export const OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
1502
1649
|
* @throws {RequiredError}
|
|
1503
1650
|
*/
|
|
1504
1651
|
listOrders(requestParameters, options) {
|
|
1505
|
-
return localVarFp.listOrders(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.start, requestParameters.end, requestParameters.dateFilterType, options).then((request) => request(axios, basePath));
|
|
1652
|
+
return localVarFp.listOrders(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.start, requestParameters.end, requestParameters.dateFilterType, requestParameters.maxOrderTotal, requestParameters.minOrderTotal, options).then((request) => request(axios, basePath));
|
|
1506
1653
|
},
|
|
1507
1654
|
/**
|
|
1508
1655
|
* Retries failed platform payment, so fulfillment can proceed.
|
|
@@ -1607,7 +1754,7 @@ export class OrdersApi extends BaseAPI {
|
|
|
1607
1754
|
* @memberof OrdersApi
|
|
1608
1755
|
*/
|
|
1609
1756
|
listOrders(requestParameters, options) {
|
|
1610
|
-
return OrdersApiFp(this.configuration).listOrders(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.start, requestParameters.end, requestParameters.dateFilterType, options).then((request) => request(this.axios, this.basePath));
|
|
1757
|
+
return OrdersApiFp(this.configuration).listOrders(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.start, requestParameters.end, requestParameters.dateFilterType, requestParameters.maxOrderTotal, requestParameters.minOrderTotal, options).then((request) => request(this.axios, this.basePath));
|
|
1611
1758
|
}
|
|
1612
1759
|
/**
|
|
1613
1760
|
* Retries failed platform payment, so fulfillment can proceed.
|
package/dist/esm/base.d.ts
CHANGED
package/dist/esm/base.js
CHANGED
package/dist/esm/common.d.ts
CHANGED
package/dist/esm/common.js
CHANGED
package/dist/esm/index.d.ts
CHANGED
package/dist/esm/index.js
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/docs/CustomersApi.md
CHANGED
|
@@ -26,16 +26,22 @@ const apiInstance = new CustomersApi(configuration);
|
|
|
26
26
|
|
|
27
27
|
let project: string; //Project unique identifier (default to undefined)
|
|
28
28
|
let platformId: string; //The platform identifier (default to undefined)
|
|
29
|
+
let countries: Array<string>; //Filter customers by country code (optional) (default to undefined)
|
|
30
|
+
let gender: 'male' | 'female'; //Filter customers by gender equal to the value provided (optional) (default to undefined)
|
|
29
31
|
let totalOrderCount: number; //Filter customers by total order count equal to the value provided (optional) (default to undefined)
|
|
32
|
+
let refundedOrderCount: number; //Filter customers by refunded order count equal to the value provided (optional) (default to undefined)
|
|
30
33
|
let lifetimeValue: number; //Filter customers by lifetime value less than or equal to the value provided (optional) (default to undefined)
|
|
31
|
-
let sortBy: Array<'+lifetimeValue' | '-lifetimeValue' | '+totalOrderCount' | '-totalOrderCount' | '+lastPurchased' | '-lastPurchased'>; //An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending. (optional) (default to undefined)
|
|
34
|
+
let sortBy: Array<'+lifetimeValue' | '-lifetimeValue' | '+totalOrderCount' | '-totalOrderCount' | '+refundedOrderCount' | '-refundedOrderCount' | '+lastPurchased' | '-lastPurchased'>; //An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending. (optional) (default to undefined)
|
|
32
35
|
let lastPurchasedStart: string; //Start of date range to filter customers by last purchase date (optional) (default to undefined)
|
|
33
36
|
let lastPurchasedEnd: string; //End of date range to filter customers by last purchase date (optional) (default to undefined)
|
|
34
37
|
|
|
35
38
|
const { status, data } = await apiInstance.exportCustomers(
|
|
36
39
|
project,
|
|
37
40
|
platformId,
|
|
41
|
+
countries,
|
|
42
|
+
gender,
|
|
38
43
|
totalOrderCount,
|
|
44
|
+
refundedOrderCount,
|
|
39
45
|
lifetimeValue,
|
|
40
46
|
sortBy,
|
|
41
47
|
lastPurchasedStart,
|
|
@@ -49,9 +55,12 @@ const { status, data } = await apiInstance.exportCustomers(
|
|
|
49
55
|
|------------- | ------------- | ------------- | -------------|
|
|
50
56
|
| **project** | [**string**] | Project unique identifier | defaults to undefined|
|
|
51
57
|
| **platformId** | [**string**] | The platform identifier | defaults to undefined|
|
|
58
|
+
| **countries** | **Array<string>** | Filter customers by country code | (optional) defaults to undefined|
|
|
59
|
+
| **gender** | [**'male' | 'female'**]**Array<'male' | 'female'>** | Filter customers by gender equal to the value provided | (optional) defaults to undefined|
|
|
52
60
|
| **totalOrderCount** | [**number**] | Filter customers by total order count equal to the value provided | (optional) defaults to undefined|
|
|
61
|
+
| **refundedOrderCount** | [**number**] | Filter customers by refunded order count equal to the value provided | (optional) defaults to undefined|
|
|
53
62
|
| **lifetimeValue** | [**number**] | Filter customers by lifetime value less than or equal to the value provided | (optional) defaults to undefined|
|
|
54
|
-
| **sortBy** | **Array<'+lifetimeValue' | '-lifetimeValue' | '+totalOrderCount' | '-totalOrderCount' | '+lastPurchased' | '-lastPurchased'>** | An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending. | (optional) defaults to undefined|
|
|
63
|
+
| **sortBy** | **Array<'+lifetimeValue' | '-lifetimeValue' | '+totalOrderCount' | '-totalOrderCount' | '+refundedOrderCount' | '-refundedOrderCount' | '+lastPurchased' | '-lastPurchased'>** | An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending. | (optional) defaults to undefined|
|
|
55
64
|
| **lastPurchasedStart** | [**string**] | Start of date range to filter customers by last purchase date | (optional) defaults to undefined|
|
|
56
65
|
| **lastPurchasedEnd** | [**string**] | End of date range to filter customers by last purchase date | (optional) defaults to undefined|
|
|
57
66
|
|
|
@@ -165,8 +174,11 @@ let platformId: string; //The platform identifier (default to undefined)
|
|
|
165
174
|
let pageToken: number; //Page reference token (optional) (default to 1)
|
|
166
175
|
let pageSize: number; //Max page size. This is the maximum page size that will be returned, but it might be smaller. (optional) (default to 100)
|
|
167
176
|
let search: string; //Search term to filter results (optional) (default to undefined)
|
|
168
|
-
let sortBy: Array<'+lifetimeValue' | '-lifetimeValue' | '+totalOrderCount' | '-totalOrderCount' | '+lastPurchased' | '-lastPurchased'>; //An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending. (optional) (default to undefined)
|
|
177
|
+
let sortBy: Array<'+lifetimeValue' | '-lifetimeValue' | '+totalOrderCount' | '-totalOrderCount' | '+refundedOrderCount' | '-refundedOrderCount' | '+lastPurchased' | '-lastPurchased'>; //An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending. (optional) (default to undefined)
|
|
178
|
+
let countries: Array<string>; //Filter customers by country code (optional) (default to undefined)
|
|
179
|
+
let gender: 'male' | 'female'; //Filter customers by gender equal to the value provided (optional) (default to undefined)
|
|
169
180
|
let totalOrderCount: number; //Filter customers by total order count equal to the value provided (optional) (default to undefined)
|
|
181
|
+
let refundedOrderCount: number; //Filter customers by refunded order count equal to the value provided (optional) (default to undefined)
|
|
170
182
|
let lifetimeValue: number; //Filter customers by lifetime value less than or equal to the value provided (optional) (default to undefined)
|
|
171
183
|
let lastPurchasedStart: string; //Start of date range to filter customers by last purchase date (optional) (default to undefined)
|
|
172
184
|
let lastPurchasedEnd: string; //End of date range to filter customers by last purchase date (optional) (default to undefined)
|
|
@@ -178,7 +190,10 @@ const { status, data } = await apiInstance.listCustomers(
|
|
|
178
190
|
pageSize,
|
|
179
191
|
search,
|
|
180
192
|
sortBy,
|
|
193
|
+
countries,
|
|
194
|
+
gender,
|
|
181
195
|
totalOrderCount,
|
|
196
|
+
refundedOrderCount,
|
|
182
197
|
lifetimeValue,
|
|
183
198
|
lastPurchasedStart,
|
|
184
199
|
lastPurchasedEnd
|
|
@@ -194,8 +209,11 @@ const { status, data } = await apiInstance.listCustomers(
|
|
|
194
209
|
| **pageToken** | [**number**] | Page reference token | (optional) defaults to 1|
|
|
195
210
|
| **pageSize** | [**number**] | Max page size. This is the maximum page size that will be returned, but it might be smaller. | (optional) defaults to 100|
|
|
196
211
|
| **search** | [**string**] | Search term to filter results | (optional) defaults to undefined|
|
|
197
|
-
| **sortBy** | **Array<'+lifetimeValue' | '-lifetimeValue' | '+totalOrderCount' | '-totalOrderCount' | '+lastPurchased' | '-lastPurchased'>** | An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending. | (optional) defaults to undefined|
|
|
212
|
+
| **sortBy** | **Array<'+lifetimeValue' | '-lifetimeValue' | '+totalOrderCount' | '-totalOrderCount' | '+refundedOrderCount' | '-refundedOrderCount' | '+lastPurchased' | '-lastPurchased'>** | An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending. | (optional) defaults to undefined|
|
|
213
|
+
| **countries** | **Array<string>** | Filter customers by country code | (optional) defaults to undefined|
|
|
214
|
+
| **gender** | [**'male' | 'female'**]**Array<'male' | 'female'>** | Filter customers by gender equal to the value provided | (optional) defaults to undefined|
|
|
198
215
|
| **totalOrderCount** | [**number**] | Filter customers by total order count equal to the value provided | (optional) defaults to undefined|
|
|
216
|
+
| **refundedOrderCount** | [**number**] | Filter customers by refunded order count equal to the value provided | (optional) defaults to undefined|
|
|
199
217
|
| **lifetimeValue** | [**number**] | Filter customers by lifetime value less than or equal to the value provided | (optional) defaults to undefined|
|
|
200
218
|
| **lastPurchasedStart** | [**string**] | Start of date range to filter customers by last purchase date | (optional) defaults to undefined|
|
|
201
219
|
| **lastPurchasedEnd** | [**string**] | End of date range to filter customers by last purchase date | (optional) defaults to undefined|
|