@teemill/platform 0.53.0 → 0.55.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 +7 -2
- package/api.ts +361 -2
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +193 -2
- package/dist/api.js +254 -1
- 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 +193 -2
- package/dist/esm/api.js +254 -1
- 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/Customer.md +2 -0
- package/docs/CustomersApi.md +190 -0
- package/docs/DataDeletionRequest.md +27 -0
- package/docs/Order.md +1 -1
- package/docs/UpdateCustomerRequest.md +26 -0
- package/docs/UpdateOrderRequest.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.55.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -139,6 +139,51 @@ const CustomersApiAxiosParamCreator = function (configuration) {
|
|
|
139
139
|
options: localVarRequestOptions,
|
|
140
140
|
};
|
|
141
141
|
}),
|
|
142
|
+
/**
|
|
143
|
+
* Create a data deletion request for a customer
|
|
144
|
+
* @summary Create data deletion request
|
|
145
|
+
* @param {string} project Project unique identifier
|
|
146
|
+
* @param {string} platformId The platform identifier
|
|
147
|
+
* @param {string} customerId The customer identifier
|
|
148
|
+
* @param {*} [options] Override http request option.
|
|
149
|
+
* @throws {RequiredError}
|
|
150
|
+
*/
|
|
151
|
+
createCustomerDataDeletionRequest: (project_1, platformId_1, customerId_1, ...args_1) => __awaiter(this, [project_1, platformId_1, customerId_1, ...args_1], void 0, function* (project, platformId, customerId, options = {}) {
|
|
152
|
+
// verify required parameter 'project' is not null or undefined
|
|
153
|
+
(0, common_1.assertParamExists)('createCustomerDataDeletionRequest', 'project', project);
|
|
154
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
155
|
+
(0, common_1.assertParamExists)('createCustomerDataDeletionRequest', 'platformId', platformId);
|
|
156
|
+
// verify required parameter 'customerId' is not null or undefined
|
|
157
|
+
(0, common_1.assertParamExists)('createCustomerDataDeletionRequest', 'customerId', customerId);
|
|
158
|
+
const localVarPath = `/v1/platform/{platformId}/customers/{customerId}/data-deletion-request`
|
|
159
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
|
|
160
|
+
.replace(`{${"customerId"}}`, encodeURIComponent(String(customerId)));
|
|
161
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
162
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
163
|
+
let baseOptions;
|
|
164
|
+
if (configuration) {
|
|
165
|
+
baseOptions = configuration.baseOptions;
|
|
166
|
+
}
|
|
167
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
168
|
+
const localVarHeaderParameter = {};
|
|
169
|
+
const localVarQueryParameter = {};
|
|
170
|
+
// authentication session-oauth required
|
|
171
|
+
// oauth required
|
|
172
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
173
|
+
// authentication api-key required
|
|
174
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
175
|
+
if (project !== undefined) {
|
|
176
|
+
localVarQueryParameter['project'] = project;
|
|
177
|
+
}
|
|
178
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
179
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
180
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
181
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
182
|
+
return {
|
|
183
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
184
|
+
options: localVarRequestOptions,
|
|
185
|
+
};
|
|
186
|
+
}),
|
|
142
187
|
/**
|
|
143
188
|
* Export customers as a CSV file
|
|
144
189
|
* @summary Export customers
|
|
@@ -291,6 +336,51 @@ const CustomersApiAxiosParamCreator = function (configuration) {
|
|
|
291
336
|
options: localVarRequestOptions,
|
|
292
337
|
};
|
|
293
338
|
}),
|
|
339
|
+
/**
|
|
340
|
+
* Get a data deletion request for a customer
|
|
341
|
+
* @summary Get data deletion request
|
|
342
|
+
* @param {string} project Project unique identifier
|
|
343
|
+
* @param {string} platformId The platform identifier
|
|
344
|
+
* @param {string} customerId The customer identifier
|
|
345
|
+
* @param {*} [options] Override http request option.
|
|
346
|
+
* @throws {RequiredError}
|
|
347
|
+
*/
|
|
348
|
+
getCustomerDataDeletionRequest: (project_1, platformId_1, customerId_1, ...args_1) => __awaiter(this, [project_1, platformId_1, customerId_1, ...args_1], void 0, function* (project, platformId, customerId, options = {}) {
|
|
349
|
+
// verify required parameter 'project' is not null or undefined
|
|
350
|
+
(0, common_1.assertParamExists)('getCustomerDataDeletionRequest', 'project', project);
|
|
351
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
352
|
+
(0, common_1.assertParamExists)('getCustomerDataDeletionRequest', 'platformId', platformId);
|
|
353
|
+
// verify required parameter 'customerId' is not null or undefined
|
|
354
|
+
(0, common_1.assertParamExists)('getCustomerDataDeletionRequest', 'customerId', customerId);
|
|
355
|
+
const localVarPath = `/v1/platform/{platformId}/customers/{customerId}/data-deletion-request`
|
|
356
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
|
|
357
|
+
.replace(`{${"customerId"}}`, encodeURIComponent(String(customerId)));
|
|
358
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
359
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
360
|
+
let baseOptions;
|
|
361
|
+
if (configuration) {
|
|
362
|
+
baseOptions = configuration.baseOptions;
|
|
363
|
+
}
|
|
364
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
365
|
+
const localVarHeaderParameter = {};
|
|
366
|
+
const localVarQueryParameter = {};
|
|
367
|
+
// authentication session-oauth required
|
|
368
|
+
// oauth required
|
|
369
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
370
|
+
// authentication api-key required
|
|
371
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
372
|
+
if (project !== undefined) {
|
|
373
|
+
localVarQueryParameter['project'] = project;
|
|
374
|
+
}
|
|
375
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
376
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
377
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
378
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
379
|
+
return {
|
|
380
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
381
|
+
options: localVarRequestOptions,
|
|
382
|
+
};
|
|
383
|
+
}),
|
|
294
384
|
/**
|
|
295
385
|
* List customer tags
|
|
296
386
|
* @summary List customer tags
|
|
@@ -463,6 +553,54 @@ const CustomersApiAxiosParamCreator = function (configuration) {
|
|
|
463
553
|
options: localVarRequestOptions,
|
|
464
554
|
};
|
|
465
555
|
}),
|
|
556
|
+
/**
|
|
557
|
+
*
|
|
558
|
+
* @summary Update the customer with the given customer ID
|
|
559
|
+
* @param {string} project Project unique identifier
|
|
560
|
+
* @param {string} platformId The platform identifier
|
|
561
|
+
* @param {string} customerId The customer identifier
|
|
562
|
+
* @param {UpdateCustomerRequest} [updateCustomerRequest]
|
|
563
|
+
* @param {*} [options] Override http request option.
|
|
564
|
+
* @throws {RequiredError}
|
|
565
|
+
*/
|
|
566
|
+
updateCustomer: (project_1, platformId_1, customerId_1, updateCustomerRequest_1, ...args_1) => __awaiter(this, [project_1, platformId_1, customerId_1, updateCustomerRequest_1, ...args_1], void 0, function* (project, platformId, customerId, updateCustomerRequest, options = {}) {
|
|
567
|
+
// verify required parameter 'project' is not null or undefined
|
|
568
|
+
(0, common_1.assertParamExists)('updateCustomer', 'project', project);
|
|
569
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
570
|
+
(0, common_1.assertParamExists)('updateCustomer', 'platformId', platformId);
|
|
571
|
+
// verify required parameter 'customerId' is not null or undefined
|
|
572
|
+
(0, common_1.assertParamExists)('updateCustomer', 'customerId', customerId);
|
|
573
|
+
const localVarPath = `/v1/platform/{platformId}/customers/{customerId}`
|
|
574
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
|
|
575
|
+
.replace(`{${"customerId"}}`, encodeURIComponent(String(customerId)));
|
|
576
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
577
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
578
|
+
let baseOptions;
|
|
579
|
+
if (configuration) {
|
|
580
|
+
baseOptions = configuration.baseOptions;
|
|
581
|
+
}
|
|
582
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
583
|
+
const localVarHeaderParameter = {};
|
|
584
|
+
const localVarQueryParameter = {};
|
|
585
|
+
// authentication session-oauth required
|
|
586
|
+
// oauth required
|
|
587
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
588
|
+
// authentication api-key required
|
|
589
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
590
|
+
if (project !== undefined) {
|
|
591
|
+
localVarQueryParameter['project'] = project;
|
|
592
|
+
}
|
|
593
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
594
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
595
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
596
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
597
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
598
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateCustomerRequest, localVarRequestOptions, configuration);
|
|
599
|
+
return {
|
|
600
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
601
|
+
options: localVarRequestOptions,
|
|
602
|
+
};
|
|
603
|
+
}),
|
|
466
604
|
};
|
|
467
605
|
};
|
|
468
606
|
exports.CustomersApiAxiosParamCreator = CustomersApiAxiosParamCreator;
|
|
@@ -490,6 +628,24 @@ const CustomersApiFp = function (configuration) {
|
|
|
490
628
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
491
629
|
});
|
|
492
630
|
},
|
|
631
|
+
/**
|
|
632
|
+
* Create a data deletion request for a customer
|
|
633
|
+
* @summary Create data deletion request
|
|
634
|
+
* @param {string} project Project unique identifier
|
|
635
|
+
* @param {string} platformId The platform identifier
|
|
636
|
+
* @param {string} customerId The customer identifier
|
|
637
|
+
* @param {*} [options] Override http request option.
|
|
638
|
+
* @throws {RequiredError}
|
|
639
|
+
*/
|
|
640
|
+
createCustomerDataDeletionRequest(project, platformId, customerId, options) {
|
|
641
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
642
|
+
var _a, _b, _c;
|
|
643
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createCustomerDataDeletionRequest(project, platformId, customerId, options);
|
|
644
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
645
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CustomersApi.createCustomerDataDeletionRequest']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
646
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
647
|
+
});
|
|
648
|
+
},
|
|
493
649
|
/**
|
|
494
650
|
* Export customers as a CSV file
|
|
495
651
|
* @summary Export customers
|
|
@@ -541,6 +697,24 @@ const CustomersApiFp = function (configuration) {
|
|
|
541
697
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
542
698
|
});
|
|
543
699
|
},
|
|
700
|
+
/**
|
|
701
|
+
* Get a data deletion request for a customer
|
|
702
|
+
* @summary Get data deletion request
|
|
703
|
+
* @param {string} project Project unique identifier
|
|
704
|
+
* @param {string} platformId The platform identifier
|
|
705
|
+
* @param {string} customerId The customer identifier
|
|
706
|
+
* @param {*} [options] Override http request option.
|
|
707
|
+
* @throws {RequiredError}
|
|
708
|
+
*/
|
|
709
|
+
getCustomerDataDeletionRequest(project, platformId, customerId, options) {
|
|
710
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
711
|
+
var _a, _b, _c;
|
|
712
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCustomerDataDeletionRequest(project, platformId, customerId, options);
|
|
713
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
714
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CustomersApi.getCustomerDataDeletionRequest']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
715
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
716
|
+
});
|
|
717
|
+
},
|
|
544
718
|
/**
|
|
545
719
|
* List customer tags
|
|
546
720
|
* @summary List customer tags
|
|
@@ -597,6 +771,25 @@ const CustomersApiFp = function (configuration) {
|
|
|
597
771
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
598
772
|
});
|
|
599
773
|
},
|
|
774
|
+
/**
|
|
775
|
+
*
|
|
776
|
+
* @summary Update the customer with the given customer ID
|
|
777
|
+
* @param {string} project Project unique identifier
|
|
778
|
+
* @param {string} platformId The platform identifier
|
|
779
|
+
* @param {string} customerId The customer identifier
|
|
780
|
+
* @param {UpdateCustomerRequest} [updateCustomerRequest]
|
|
781
|
+
* @param {*} [options] Override http request option.
|
|
782
|
+
* @throws {RequiredError}
|
|
783
|
+
*/
|
|
784
|
+
updateCustomer(project, platformId, customerId, updateCustomerRequest, options) {
|
|
785
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
786
|
+
var _a, _b, _c;
|
|
787
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateCustomer(project, platformId, customerId, updateCustomerRequest, options);
|
|
788
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
789
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CustomersApi.updateCustomer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
790
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
791
|
+
});
|
|
792
|
+
},
|
|
600
793
|
};
|
|
601
794
|
};
|
|
602
795
|
exports.CustomersApiFp = CustomersApiFp;
|
|
@@ -616,6 +809,16 @@ const CustomersApiFactory = function (configuration, basePath, axios) {
|
|
|
616
809
|
createCustomerChatChannel(requestParameters, options) {
|
|
617
810
|
return localVarFp.createCustomerChatChannel(requestParameters.project, requestParameters.platformId, requestParameters.customerId, options).then((request) => request(axios, basePath));
|
|
618
811
|
},
|
|
812
|
+
/**
|
|
813
|
+
* Create a data deletion request for a customer
|
|
814
|
+
* @summary Create data deletion request
|
|
815
|
+
* @param {CustomersApiCreateCustomerDataDeletionRequestRequest} requestParameters Request parameters.
|
|
816
|
+
* @param {*} [options] Override http request option.
|
|
817
|
+
* @throws {RequiredError}
|
|
818
|
+
*/
|
|
819
|
+
createCustomerDataDeletionRequest(requestParameters, options) {
|
|
820
|
+
return localVarFp.createCustomerDataDeletionRequest(requestParameters.project, requestParameters.platformId, requestParameters.customerId, options).then((request) => request(axios, basePath));
|
|
821
|
+
},
|
|
619
822
|
/**
|
|
620
823
|
* Export customers as a CSV file
|
|
621
824
|
* @summary Export customers
|
|
@@ -636,6 +839,16 @@ const CustomersApiFactory = function (configuration, basePath, axios) {
|
|
|
636
839
|
getCustomer(requestParameters, options) {
|
|
637
840
|
return localVarFp.getCustomer(requestParameters.project, requestParameters.platformId, requestParameters.customerId, options).then((request) => request(axios, basePath));
|
|
638
841
|
},
|
|
842
|
+
/**
|
|
843
|
+
* Get a data deletion request for a customer
|
|
844
|
+
* @summary Get data deletion request
|
|
845
|
+
* @param {CustomersApiGetCustomerDataDeletionRequestRequest} requestParameters Request parameters.
|
|
846
|
+
* @param {*} [options] Override http request option.
|
|
847
|
+
* @throws {RequiredError}
|
|
848
|
+
*/
|
|
849
|
+
getCustomerDataDeletionRequest(requestParameters, options) {
|
|
850
|
+
return localVarFp.getCustomerDataDeletionRequest(requestParameters.project, requestParameters.platformId, requestParameters.customerId, options).then((request) => request(axios, basePath));
|
|
851
|
+
},
|
|
639
852
|
/**
|
|
640
853
|
* List customer tags
|
|
641
854
|
* @summary List customer tags
|
|
@@ -656,6 +869,16 @@ const CustomersApiFactory = function (configuration, basePath, axios) {
|
|
|
656
869
|
listCustomers(requestParameters, options) {
|
|
657
870
|
return localVarFp.listCustomers(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.sortBy, requestParameters.countries, requestParameters.projects, requestParameters.gender, requestParameters.productTypes, requestParameters.demographics, requestParameters.tags, requestParameters.usedDiscount, requestParameters.minimumTotalOrderCount, requestParameters.maximumTotalOrderCount, requestParameters.minimumRefundedOrderCount, requestParameters.maximumRefundedOrderCount, requestParameters.minimumLifetimeValue, requestParameters.maximumLifetimeValue, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(axios, basePath));
|
|
658
871
|
},
|
|
872
|
+
/**
|
|
873
|
+
*
|
|
874
|
+
* @summary Update the customer with the given customer ID
|
|
875
|
+
* @param {CustomersApiUpdateCustomerRequest} requestParameters Request parameters.
|
|
876
|
+
* @param {*} [options] Override http request option.
|
|
877
|
+
* @throws {RequiredError}
|
|
878
|
+
*/
|
|
879
|
+
updateCustomer(requestParameters, options) {
|
|
880
|
+
return localVarFp.updateCustomer(requestParameters.project, requestParameters.platformId, requestParameters.customerId, requestParameters.updateCustomerRequest, options).then((request) => request(axios, basePath));
|
|
881
|
+
},
|
|
659
882
|
};
|
|
660
883
|
};
|
|
661
884
|
exports.CustomersApiFactory = CustomersApiFactory;
|
|
@@ -673,6 +896,16 @@ class CustomersApi extends base_1.BaseAPI {
|
|
|
673
896
|
createCustomerChatChannel(requestParameters, options) {
|
|
674
897
|
return (0, exports.CustomersApiFp)(this.configuration).createCustomerChatChannel(requestParameters.project, requestParameters.platformId, requestParameters.customerId, options).then((request) => request(this.axios, this.basePath));
|
|
675
898
|
}
|
|
899
|
+
/**
|
|
900
|
+
* Create a data deletion request for a customer
|
|
901
|
+
* @summary Create data deletion request
|
|
902
|
+
* @param {CustomersApiCreateCustomerDataDeletionRequestRequest} requestParameters Request parameters.
|
|
903
|
+
* @param {*} [options] Override http request option.
|
|
904
|
+
* @throws {RequiredError}
|
|
905
|
+
*/
|
|
906
|
+
createCustomerDataDeletionRequest(requestParameters, options) {
|
|
907
|
+
return (0, exports.CustomersApiFp)(this.configuration).createCustomerDataDeletionRequest(requestParameters.project, requestParameters.platformId, requestParameters.customerId, options).then((request) => request(this.axios, this.basePath));
|
|
908
|
+
}
|
|
676
909
|
/**
|
|
677
910
|
* Export customers as a CSV file
|
|
678
911
|
* @summary Export customers
|
|
@@ -693,6 +926,16 @@ class CustomersApi extends base_1.BaseAPI {
|
|
|
693
926
|
getCustomer(requestParameters, options) {
|
|
694
927
|
return (0, exports.CustomersApiFp)(this.configuration).getCustomer(requestParameters.project, requestParameters.platformId, requestParameters.customerId, options).then((request) => request(this.axios, this.basePath));
|
|
695
928
|
}
|
|
929
|
+
/**
|
|
930
|
+
* Get a data deletion request for a customer
|
|
931
|
+
* @summary Get data deletion request
|
|
932
|
+
* @param {CustomersApiGetCustomerDataDeletionRequestRequest} requestParameters Request parameters.
|
|
933
|
+
* @param {*} [options] Override http request option.
|
|
934
|
+
* @throws {RequiredError}
|
|
935
|
+
*/
|
|
936
|
+
getCustomerDataDeletionRequest(requestParameters, options) {
|
|
937
|
+
return (0, exports.CustomersApiFp)(this.configuration).getCustomerDataDeletionRequest(requestParameters.project, requestParameters.platformId, requestParameters.customerId, options).then((request) => request(this.axios, this.basePath));
|
|
938
|
+
}
|
|
696
939
|
/**
|
|
697
940
|
* List customer tags
|
|
698
941
|
* @summary List customer tags
|
|
@@ -713,6 +956,16 @@ class CustomersApi extends base_1.BaseAPI {
|
|
|
713
956
|
listCustomers(requestParameters, options) {
|
|
714
957
|
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.demographics, requestParameters.tags, 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));
|
|
715
958
|
}
|
|
959
|
+
/**
|
|
960
|
+
*
|
|
961
|
+
* @summary Update the customer with the given customer ID
|
|
962
|
+
* @param {CustomersApiUpdateCustomerRequest} requestParameters Request parameters.
|
|
963
|
+
* @param {*} [options] Override http request option.
|
|
964
|
+
* @throws {RequiredError}
|
|
965
|
+
*/
|
|
966
|
+
updateCustomer(requestParameters, options) {
|
|
967
|
+
return (0, exports.CustomersApiFp)(this.configuration).updateCustomer(requestParameters.project, requestParameters.platformId, requestParameters.customerId, requestParameters.updateCustomerRequest, options).then((request) => request(this.axios, this.basePath));
|
|
968
|
+
}
|
|
716
969
|
}
|
|
717
970
|
exports.CustomersApi = CustomersApi;
|
|
718
971
|
exports.ExportCustomersSortByEnum = {
|
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