@emilgroup/customer-sdk-node 1.36.1-beta.0 → 1.37.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/.openapi-generator/FILES +6 -0
- package/README.md +2 -2
- package/api/customers-api.ts +310 -4
- package/api/leads-api.ts +38 -38
- package/base.ts +5 -5
- package/dist/api/customers-api.d.ts +174 -4
- package/dist/api/customers-api.js +253 -4
- package/dist/api/leads-api.d.ts +24 -24
- package/dist/api/leads-api.js +34 -34
- package/dist/base.d.ts +2 -2
- package/dist/base.js +1 -2
- package/dist/models/change-customer-email-request-dto.d.ts +30 -0
- package/dist/models/change-customer-email-request-dto.js +15 -0
- package/dist/models/grpc-update-lead-request-dto.d.ts +50 -0
- package/dist/models/grpc-update-lead-request-dto.js +15 -0
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/dist/models/lead-class.d.ts +1 -1
- package/dist/models/request-change-email-by-customer-request-dto.d.ts +24 -0
- package/dist/models/request-change-email-by-customer-request-dto.js +15 -0
- package/dist/models/request-change-email-by-customer-response-class.d.ts +24 -0
- package/dist/models/request-change-email-by-customer-response-class.js +15 -0
- package/dist/models/update-account-request-dto.d.ts +0 -6
- package/dist/models/update-lead-request-dto.d.ts +0 -6
- package/dist/models/verify-change-email-token-request-dto.d.ts +24 -0
- package/dist/models/verify-change-email-token-request-dto.js +15 -0
- package/dist/models/verify-change-email-token-response-class.d.ts +36 -0
- package/dist/models/verify-change-email-token-response-class.js +15 -0
- package/models/change-customer-email-request-dto.ts +36 -0
- package/models/grpc-update-lead-request-dto.ts +56 -0
- package/models/index.ts +6 -0
- package/models/lead-class.ts +1 -1
- package/models/request-change-email-by-customer-request-dto.ts +30 -0
- package/models/request-change-email-by-customer-response-class.ts +30 -0
- package/models/update-account-request-dto.ts +0 -6
- package/models/update-lead-request-dto.ts +0 -6
- package/models/verify-change-email-token-request-dto.ts +30 -0
- package/models/verify-change-email-token-response-class.ts +42 -0
- package/package.json +1 -1
package/api/leads-api.ts
CHANGED
|
@@ -94,22 +94,22 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
94
94
|
};
|
|
95
95
|
},
|
|
96
96
|
/**
|
|
97
|
-
* Retrieves the details of the lead that was previously created. Supply the unique lead code
|
|
97
|
+
* Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
|
|
98
98
|
* @summary Retrieve the lead
|
|
99
|
-
* @param {string}
|
|
99
|
+
* @param {string} code Unique identifier for the object.
|
|
100
100
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
101
101
|
* @param {string} [authorization] Bearer Token
|
|
102
102
|
* @param {string} [expand]
|
|
103
103
|
* @param {*} [options] Override http request option.
|
|
104
104
|
* @throws {RequiredError}
|
|
105
105
|
*/
|
|
106
|
-
getLead: async (
|
|
107
|
-
// verify required parameter '
|
|
108
|
-
assertParamExists('getLead', '
|
|
106
|
+
getLead: async (code: string, customerCode: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
107
|
+
// verify required parameter 'code' is not null or undefined
|
|
108
|
+
assertParamExists('getLead', 'code', code)
|
|
109
109
|
// verify required parameter 'customerCode' is not null or undefined
|
|
110
110
|
assertParamExists('getLead', 'customerCode', customerCode)
|
|
111
|
-
const localVarPath = `/v1/customers/{customerCode}/leads/{
|
|
112
|
-
.replace(`{${"
|
|
111
|
+
const localVarPath = `/v1/customers/{customerCode}/leads/{code}`
|
|
112
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)))
|
|
113
113
|
.replace(`{${"customerCode"}}`, encodeURIComponent(String(customerCode)));
|
|
114
114
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
115
115
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -148,7 +148,7 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
148
148
|
};
|
|
149
149
|
},
|
|
150
150
|
/**
|
|
151
|
-
* Returns a list of leads you have previously created.
|
|
151
|
+
* Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
152
152
|
* @summary List leads
|
|
153
153
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
154
154
|
* @param {string} [authorization] Bearer Token
|
|
@@ -230,22 +230,22 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
230
230
|
/**
|
|
231
231
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
232
232
|
* @summary Update the lead
|
|
233
|
-
* @param {string}
|
|
233
|
+
* @param {string} code Unique identifier for the object.
|
|
234
234
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
235
235
|
* @param {UpdateLeadRequestDto} updateLeadRequestDto
|
|
236
236
|
* @param {string} [authorization] Bearer Token
|
|
237
237
|
* @param {*} [options] Override http request option.
|
|
238
238
|
* @throws {RequiredError}
|
|
239
239
|
*/
|
|
240
|
-
updateLead: async (
|
|
241
|
-
// verify required parameter '
|
|
242
|
-
assertParamExists('updateLead', '
|
|
240
|
+
updateLead: async (code: string, customerCode: string, updateLeadRequestDto: UpdateLeadRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
241
|
+
// verify required parameter 'code' is not null or undefined
|
|
242
|
+
assertParamExists('updateLead', 'code', code)
|
|
243
243
|
// verify required parameter 'customerCode' is not null or undefined
|
|
244
244
|
assertParamExists('updateLead', 'customerCode', customerCode)
|
|
245
245
|
// verify required parameter 'updateLeadRequestDto' is not null or undefined
|
|
246
246
|
assertParamExists('updateLead', 'updateLeadRequestDto', updateLeadRequestDto)
|
|
247
|
-
const localVarPath = `/v1/customers/{customerCode}/leads/{
|
|
248
|
-
.replace(`{${"
|
|
247
|
+
const localVarPath = `/v1/customers/{customerCode}/leads/{code}`
|
|
248
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)))
|
|
249
249
|
.replace(`{${"customerCode"}}`, encodeURIComponent(String(customerCode)));
|
|
250
250
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
251
251
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -306,21 +306,21 @@ export const LeadsApiFp = function(configuration?: Configuration) {
|
|
|
306
306
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
307
307
|
},
|
|
308
308
|
/**
|
|
309
|
-
* Retrieves the details of the lead that was previously created. Supply the unique lead code
|
|
309
|
+
* Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
|
|
310
310
|
* @summary Retrieve the lead
|
|
311
|
-
* @param {string}
|
|
311
|
+
* @param {string} code Unique identifier for the object.
|
|
312
312
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
313
313
|
* @param {string} [authorization] Bearer Token
|
|
314
314
|
* @param {string} [expand]
|
|
315
315
|
* @param {*} [options] Override http request option.
|
|
316
316
|
* @throws {RequiredError}
|
|
317
317
|
*/
|
|
318
|
-
async getLead(
|
|
319
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getLead(
|
|
318
|
+
async getLead(code: string, customerCode: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetLeadResponseClass>> {
|
|
319
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getLead(code, customerCode, authorization, expand, options);
|
|
320
320
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
321
321
|
},
|
|
322
322
|
/**
|
|
323
|
-
* Returns a list of leads you have previously created.
|
|
323
|
+
* Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
324
324
|
* @summary List leads
|
|
325
325
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
326
326
|
* @param {string} [authorization] Bearer Token
|
|
@@ -341,15 +341,15 @@ export const LeadsApiFp = function(configuration?: Configuration) {
|
|
|
341
341
|
/**
|
|
342
342
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
343
343
|
* @summary Update the lead
|
|
344
|
-
* @param {string}
|
|
344
|
+
* @param {string} code Unique identifier for the object.
|
|
345
345
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
346
346
|
* @param {UpdateLeadRequestDto} updateLeadRequestDto
|
|
347
347
|
* @param {string} [authorization] Bearer Token
|
|
348
348
|
* @param {*} [options] Override http request option.
|
|
349
349
|
* @throws {RequiredError}
|
|
350
350
|
*/
|
|
351
|
-
async updateLead(
|
|
352
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateLead(
|
|
351
|
+
async updateLead(code: string, customerCode: string, updateLeadRequestDto: UpdateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateLeadResponseClass>> {
|
|
352
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateLead(code, customerCode, updateLeadRequestDto, authorization, options);
|
|
353
353
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
354
354
|
},
|
|
355
355
|
}
|
|
@@ -375,20 +375,20 @@ export const LeadsApiFactory = function (configuration?: Configuration, basePath
|
|
|
375
375
|
return localVarFp.createLead(customerCode, createLeadRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
376
376
|
},
|
|
377
377
|
/**
|
|
378
|
-
* Retrieves the details of the lead that was previously created. Supply the unique lead code
|
|
378
|
+
* Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
|
|
379
379
|
* @summary Retrieve the lead
|
|
380
|
-
* @param {string}
|
|
380
|
+
* @param {string} code Unique identifier for the object.
|
|
381
381
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
382
382
|
* @param {string} [authorization] Bearer Token
|
|
383
383
|
* @param {string} [expand]
|
|
384
384
|
* @param {*} [options] Override http request option.
|
|
385
385
|
* @throws {RequiredError}
|
|
386
386
|
*/
|
|
387
|
-
getLead(
|
|
388
|
-
return localVarFp.getLead(
|
|
387
|
+
getLead(code: string, customerCode: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetLeadResponseClass> {
|
|
388
|
+
return localVarFp.getLead(code, customerCode, authorization, expand, options).then((request) => request(axios, basePath));
|
|
389
389
|
},
|
|
390
390
|
/**
|
|
391
|
-
* Returns a list of leads you have previously created.
|
|
391
|
+
* Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
392
392
|
* @summary List leads
|
|
393
393
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
394
394
|
* @param {string} [authorization] Bearer Token
|
|
@@ -408,15 +408,15 @@ export const LeadsApiFactory = function (configuration?: Configuration, basePath
|
|
|
408
408
|
/**
|
|
409
409
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
410
410
|
* @summary Update the lead
|
|
411
|
-
* @param {string}
|
|
411
|
+
* @param {string} code Unique identifier for the object.
|
|
412
412
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
413
413
|
* @param {UpdateLeadRequestDto} updateLeadRequestDto
|
|
414
414
|
* @param {string} [authorization] Bearer Token
|
|
415
415
|
* @param {*} [options] Override http request option.
|
|
416
416
|
* @throws {RequiredError}
|
|
417
417
|
*/
|
|
418
|
-
updateLead(
|
|
419
|
-
return localVarFp.updateLead(
|
|
418
|
+
updateLead(code: string, customerCode: string, updateLeadRequestDto: UpdateLeadRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateLeadResponseClass> {
|
|
419
|
+
return localVarFp.updateLead(code, customerCode, updateLeadRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
420
420
|
},
|
|
421
421
|
};
|
|
422
422
|
};
|
|
@@ -456,11 +456,11 @@ export interface LeadsApiCreateLeadRequest {
|
|
|
456
456
|
*/
|
|
457
457
|
export interface LeadsApiGetLeadRequest {
|
|
458
458
|
/**
|
|
459
|
-
*
|
|
459
|
+
* Unique identifier for the object.
|
|
460
460
|
* @type {string}
|
|
461
461
|
* @memberof LeadsApiGetLead
|
|
462
462
|
*/
|
|
463
|
-
readonly
|
|
463
|
+
readonly code: string
|
|
464
464
|
|
|
465
465
|
/**
|
|
466
466
|
* The customer code or \"me\" for the currently logged in customer.
|
|
@@ -561,11 +561,11 @@ export interface LeadsApiListLeadsRequest {
|
|
|
561
561
|
*/
|
|
562
562
|
export interface LeadsApiUpdateLeadRequest {
|
|
563
563
|
/**
|
|
564
|
-
*
|
|
564
|
+
* Unique identifier for the object.
|
|
565
565
|
* @type {string}
|
|
566
566
|
* @memberof LeadsApiUpdateLead
|
|
567
567
|
*/
|
|
568
|
-
readonly
|
|
568
|
+
readonly code: string
|
|
569
569
|
|
|
570
570
|
/**
|
|
571
571
|
* The customer code or \"me\" for the currently logged in customer.
|
|
@@ -609,7 +609,7 @@ export class LeadsApi extends BaseAPI {
|
|
|
609
609
|
}
|
|
610
610
|
|
|
611
611
|
/**
|
|
612
|
-
* Retrieves the details of the lead that was previously created. Supply the unique lead code
|
|
612
|
+
* Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
|
|
613
613
|
* @summary Retrieve the lead
|
|
614
614
|
* @param {LeadsApiGetLeadRequest} requestParameters Request parameters.
|
|
615
615
|
* @param {*} [options] Override http request option.
|
|
@@ -617,11 +617,11 @@ export class LeadsApi extends BaseAPI {
|
|
|
617
617
|
* @memberof LeadsApi
|
|
618
618
|
*/
|
|
619
619
|
public getLead(requestParameters: LeadsApiGetLeadRequest, options?: AxiosRequestConfig) {
|
|
620
|
-
return LeadsApiFp(this.configuration).getLead(requestParameters.
|
|
620
|
+
return LeadsApiFp(this.configuration).getLead(requestParameters.code, requestParameters.customerCode, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
621
621
|
}
|
|
622
622
|
|
|
623
623
|
/**
|
|
624
|
-
* Returns a list of leads you have previously created.
|
|
624
|
+
* Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
625
625
|
* @summary List leads
|
|
626
626
|
* @param {LeadsApiListLeadsRequest} requestParameters Request parameters.
|
|
627
627
|
* @param {*} [options] Override http request option.
|
|
@@ -641,6 +641,6 @@ export class LeadsApi extends BaseAPI {
|
|
|
641
641
|
* @memberof LeadsApi
|
|
642
642
|
*/
|
|
643
643
|
public updateLead(requestParameters: LeadsApiUpdateLeadRequest, options?: AxiosRequestConfig) {
|
|
644
|
-
return LeadsApiFp(this.configuration).updateLead(requestParameters.
|
|
644
|
+
return LeadsApiFp(this.configuration).updateLead(requestParameters.code, requestParameters.customerCode, requestParameters.updateLeadRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
645
645
|
}
|
|
646
646
|
}
|
package/base.ts
CHANGED
|
@@ -42,7 +42,7 @@ export const COLLECTION_FORMATS = {
|
|
|
42
42
|
|
|
43
43
|
export interface LoginClass {
|
|
44
44
|
accessToken: string;
|
|
45
|
-
permissions:
|
|
45
|
+
permissions: string;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
export enum Environment {
|
|
@@ -81,7 +81,7 @@ export class BaseAPI {
|
|
|
81
81
|
private username?: string;
|
|
82
82
|
private password?: string;
|
|
83
83
|
private isCustomerToken = false;
|
|
84
|
-
private permissions
|
|
84
|
+
private permissions?: string;
|
|
85
85
|
|
|
86
86
|
constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {
|
|
87
87
|
if (configuration) {
|
|
@@ -153,7 +153,7 @@ export class BaseAPI {
|
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
getPermissions(): Array<string> {
|
|
156
|
-
return this.permissions;
|
|
156
|
+
return this.permissions.split(',');
|
|
157
157
|
}
|
|
158
158
|
|
|
159
159
|
async authorize(username: string, password: string): Promise<void> {
|
|
@@ -310,7 +310,7 @@ export class BaseAPI {
|
|
|
310
310
|
originalConfig._retry = true;
|
|
311
311
|
try {
|
|
312
312
|
let tokenString: string;
|
|
313
|
-
let permissions:
|
|
313
|
+
let permissions: string;
|
|
314
314
|
if (this.isCustomerToken) {
|
|
315
315
|
({ accessToken: tokenString, permissions } = await this.refreshTokenCustomer());
|
|
316
316
|
} else {
|
|
@@ -344,7 +344,7 @@ export class BaseAPI {
|
|
|
344
344
|
_retry_count++;
|
|
345
345
|
try {
|
|
346
346
|
let tokenString: string;
|
|
347
|
-
let permissions:
|
|
347
|
+
let permissions: string;
|
|
348
348
|
if (this.isCustomerToken) {
|
|
349
349
|
({ accessToken: tokenString, permissions } = await this.refreshTokenCustomer());
|
|
350
350
|
} else {
|
|
@@ -12,14 +12,27 @@
|
|
|
12
12
|
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
13
|
import { Configuration } from '../configuration';
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import { ChangeCustomerEmailRequestDto } from '../models';
|
|
15
16
|
import { GetCustomerResponseClass } from '../models';
|
|
17
|
+
import { RequestChangeEmailByCustomerRequestDto } from '../models';
|
|
18
|
+
import { RequestChangeEmailByCustomerResponseClass } from '../models';
|
|
16
19
|
import { UpdateCustomerRequestDto } from '../models';
|
|
17
20
|
import { UpdateCustomerResponseClass } from '../models';
|
|
21
|
+
import { VerifyChangeEmailTokenRequestDto } from '../models';
|
|
22
|
+
import { VerifyChangeEmailTokenResponseClass } from '../models';
|
|
18
23
|
/**
|
|
19
24
|
* CustomersApi - axios parameter creator
|
|
20
25
|
* @export
|
|
21
26
|
*/
|
|
22
27
|
export declare const CustomersApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
28
|
+
/**
|
|
29
|
+
* Change customer\'s email using the token provided by the request email change endpoint.
|
|
30
|
+
* @summary Change customer email
|
|
31
|
+
* @param {ChangeCustomerEmailRequestDto} changeCustomerEmailRequestDto
|
|
32
|
+
* @param {*} [options] Override http request option.
|
|
33
|
+
* @throws {RequiredError}
|
|
34
|
+
*/
|
|
35
|
+
changeCustomerEmail: (changeCustomerEmailRequestDto: ChangeCustomerEmailRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
23
36
|
/**
|
|
24
37
|
* Get customer details.
|
|
25
38
|
* @summary Get customer details
|
|
@@ -46,7 +59,17 @@ export declare const CustomersApiAxiosParamCreator: (configuration?: Configurati
|
|
|
46
59
|
*/
|
|
47
60
|
listCustomers: (pageSize?: any, pageToken?: any, filter?: any, filters?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
48
61
|
/**
|
|
49
|
-
*
|
|
62
|
+
* Request a token to change the email address for the customer.
|
|
63
|
+
* @summary Request customer email change
|
|
64
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
65
|
+
* @param {RequestChangeEmailByCustomerRequestDto} requestChangeEmailByCustomerRequestDto
|
|
66
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
67
|
+
* @param {*} [options] Override http request option.
|
|
68
|
+
* @throws {RequiredError}
|
|
69
|
+
*/
|
|
70
|
+
requestChangeEmailByCustomer: (customerCode: string, requestChangeEmailByCustomerRequestDto: RequestChangeEmailByCustomerRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
71
|
+
/**
|
|
72
|
+
* Update customer details like phone, names, addresses etc. To change email, please use Request customer email change endpoint instead.
|
|
50
73
|
* @summary Update customer details
|
|
51
74
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
52
75
|
* @param {UpdateCustomerRequestDto} updateCustomerRequestDto
|
|
@@ -55,12 +78,29 @@ export declare const CustomersApiAxiosParamCreator: (configuration?: Configurati
|
|
|
55
78
|
* @throws {RequiredError}
|
|
56
79
|
*/
|
|
57
80
|
updateCustomer: (customerCode: string, updateCustomerRequestDto: UpdateCustomerRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
81
|
+
/**
|
|
82
|
+
* Verify the change email token that is sent by calling the request change email endpoint.
|
|
83
|
+
* @summary Verify the change email token
|
|
84
|
+
* @param {VerifyChangeEmailTokenRequestDto} verifyChangeEmailTokenRequestDto
|
|
85
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
86
|
+
* @param {*} [options] Override http request option.
|
|
87
|
+
* @throws {RequiredError}
|
|
88
|
+
*/
|
|
89
|
+
verifyChangeEmailToken: (verifyChangeEmailTokenRequestDto: VerifyChangeEmailTokenRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
58
90
|
};
|
|
59
91
|
/**
|
|
60
92
|
* CustomersApi - functional programming interface
|
|
61
93
|
* @export
|
|
62
94
|
*/
|
|
63
95
|
export declare const CustomersApiFp: (configuration?: Configuration) => {
|
|
96
|
+
/**
|
|
97
|
+
* Change customer\'s email using the token provided by the request email change endpoint.
|
|
98
|
+
* @summary Change customer email
|
|
99
|
+
* @param {ChangeCustomerEmailRequestDto} changeCustomerEmailRequestDto
|
|
100
|
+
* @param {*} [options] Override http request option.
|
|
101
|
+
* @throws {RequiredError}
|
|
102
|
+
*/
|
|
103
|
+
changeCustomerEmail(changeCustomerEmailRequestDto: ChangeCustomerEmailRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCustomerResponseClass>>;
|
|
64
104
|
/**
|
|
65
105
|
* Get customer details.
|
|
66
106
|
* @summary Get customer details
|
|
@@ -87,7 +127,17 @@ export declare const CustomersApiFp: (configuration?: Configuration) => {
|
|
|
87
127
|
*/
|
|
88
128
|
listCustomers(pageSize?: any, pageToken?: any, filter?: any, filters?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
|
|
89
129
|
/**
|
|
90
|
-
*
|
|
130
|
+
* Request a token to change the email address for the customer.
|
|
131
|
+
* @summary Request customer email change
|
|
132
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
133
|
+
* @param {RequestChangeEmailByCustomerRequestDto} requestChangeEmailByCustomerRequestDto
|
|
134
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
135
|
+
* @param {*} [options] Override http request option.
|
|
136
|
+
* @throws {RequiredError}
|
|
137
|
+
*/
|
|
138
|
+
requestChangeEmailByCustomer(customerCode: string, requestChangeEmailByCustomerRequestDto: RequestChangeEmailByCustomerRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RequestChangeEmailByCustomerResponseClass>>;
|
|
139
|
+
/**
|
|
140
|
+
* Update customer details like phone, names, addresses etc. To change email, please use Request customer email change endpoint instead.
|
|
91
141
|
* @summary Update customer details
|
|
92
142
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
93
143
|
* @param {UpdateCustomerRequestDto} updateCustomerRequestDto
|
|
@@ -96,12 +146,29 @@ export declare const CustomersApiFp: (configuration?: Configuration) => {
|
|
|
96
146
|
* @throws {RequiredError}
|
|
97
147
|
*/
|
|
98
148
|
updateCustomer(customerCode: string, updateCustomerRequestDto: UpdateCustomerRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCustomerResponseClass>>;
|
|
149
|
+
/**
|
|
150
|
+
* Verify the change email token that is sent by calling the request change email endpoint.
|
|
151
|
+
* @summary Verify the change email token
|
|
152
|
+
* @param {VerifyChangeEmailTokenRequestDto} verifyChangeEmailTokenRequestDto
|
|
153
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
154
|
+
* @param {*} [options] Override http request option.
|
|
155
|
+
* @throws {RequiredError}
|
|
156
|
+
*/
|
|
157
|
+
verifyChangeEmailToken(verifyChangeEmailTokenRequestDto: VerifyChangeEmailTokenRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VerifyChangeEmailTokenResponseClass>>;
|
|
99
158
|
};
|
|
100
159
|
/**
|
|
101
160
|
* CustomersApi - factory interface
|
|
102
161
|
* @export
|
|
103
162
|
*/
|
|
104
163
|
export declare const CustomersApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
164
|
+
/**
|
|
165
|
+
* Change customer\'s email using the token provided by the request email change endpoint.
|
|
166
|
+
* @summary Change customer email
|
|
167
|
+
* @param {ChangeCustomerEmailRequestDto} changeCustomerEmailRequestDto
|
|
168
|
+
* @param {*} [options] Override http request option.
|
|
169
|
+
* @throws {RequiredError}
|
|
170
|
+
*/
|
|
171
|
+
changeCustomerEmail(changeCustomerEmailRequestDto: ChangeCustomerEmailRequestDto, options?: any): AxiosPromise<UpdateCustomerResponseClass>;
|
|
105
172
|
/**
|
|
106
173
|
* Get customer details.
|
|
107
174
|
* @summary Get customer details
|
|
@@ -128,7 +195,17 @@ export declare const CustomersApiFactory: (configuration?: Configuration, basePa
|
|
|
128
195
|
*/
|
|
129
196
|
listCustomers(pageSize?: any, pageToken?: any, filter?: any, filters?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: any): AxiosPromise<object>;
|
|
130
197
|
/**
|
|
131
|
-
*
|
|
198
|
+
* Request a token to change the email address for the customer.
|
|
199
|
+
* @summary Request customer email change
|
|
200
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
201
|
+
* @param {RequestChangeEmailByCustomerRequestDto} requestChangeEmailByCustomerRequestDto
|
|
202
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
203
|
+
* @param {*} [options] Override http request option.
|
|
204
|
+
* @throws {RequiredError}
|
|
205
|
+
*/
|
|
206
|
+
requestChangeEmailByCustomer(customerCode: string, requestChangeEmailByCustomerRequestDto: RequestChangeEmailByCustomerRequestDto, authorization?: string, options?: any): AxiosPromise<RequestChangeEmailByCustomerResponseClass>;
|
|
207
|
+
/**
|
|
208
|
+
* Update customer details like phone, names, addresses etc. To change email, please use Request customer email change endpoint instead.
|
|
132
209
|
* @summary Update customer details
|
|
133
210
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
134
211
|
* @param {UpdateCustomerRequestDto} updateCustomerRequestDto
|
|
@@ -137,7 +214,29 @@ export declare const CustomersApiFactory: (configuration?: Configuration, basePa
|
|
|
137
214
|
* @throws {RequiredError}
|
|
138
215
|
*/
|
|
139
216
|
updateCustomer(customerCode: string, updateCustomerRequestDto: UpdateCustomerRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCustomerResponseClass>;
|
|
217
|
+
/**
|
|
218
|
+
* Verify the change email token that is sent by calling the request change email endpoint.
|
|
219
|
+
* @summary Verify the change email token
|
|
220
|
+
* @param {VerifyChangeEmailTokenRequestDto} verifyChangeEmailTokenRequestDto
|
|
221
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
222
|
+
* @param {*} [options] Override http request option.
|
|
223
|
+
* @throws {RequiredError}
|
|
224
|
+
*/
|
|
225
|
+
verifyChangeEmailToken(verifyChangeEmailTokenRequestDto: VerifyChangeEmailTokenRequestDto, authorization?: string, options?: any): AxiosPromise<VerifyChangeEmailTokenResponseClass>;
|
|
140
226
|
};
|
|
227
|
+
/**
|
|
228
|
+
* Request parameters for changeCustomerEmail operation in CustomersApi.
|
|
229
|
+
* @export
|
|
230
|
+
* @interface CustomersApiChangeCustomerEmailRequest
|
|
231
|
+
*/
|
|
232
|
+
export interface CustomersApiChangeCustomerEmailRequest {
|
|
233
|
+
/**
|
|
234
|
+
*
|
|
235
|
+
* @type {ChangeCustomerEmailRequestDto}
|
|
236
|
+
* @memberof CustomersApiChangeCustomerEmail
|
|
237
|
+
*/
|
|
238
|
+
readonly changeCustomerEmailRequestDto: ChangeCustomerEmailRequestDto;
|
|
239
|
+
}
|
|
141
240
|
/**
|
|
142
241
|
* Request parameters for getCustomer operation in CustomersApi.
|
|
143
242
|
* @export
|
|
@@ -218,6 +317,31 @@ export interface CustomersApiListCustomersRequest {
|
|
|
218
317
|
*/
|
|
219
318
|
readonly authorization?: string;
|
|
220
319
|
}
|
|
320
|
+
/**
|
|
321
|
+
* Request parameters for requestChangeEmailByCustomer operation in CustomersApi.
|
|
322
|
+
* @export
|
|
323
|
+
* @interface CustomersApiRequestChangeEmailByCustomerRequest
|
|
324
|
+
*/
|
|
325
|
+
export interface CustomersApiRequestChangeEmailByCustomerRequest {
|
|
326
|
+
/**
|
|
327
|
+
* The customer code or \"me\" for the currently logged in customer.
|
|
328
|
+
* @type {string}
|
|
329
|
+
* @memberof CustomersApiRequestChangeEmailByCustomer
|
|
330
|
+
*/
|
|
331
|
+
readonly customerCode: string;
|
|
332
|
+
/**
|
|
333
|
+
*
|
|
334
|
+
* @type {RequestChangeEmailByCustomerRequestDto}
|
|
335
|
+
* @memberof CustomersApiRequestChangeEmailByCustomer
|
|
336
|
+
*/
|
|
337
|
+
readonly requestChangeEmailByCustomerRequestDto: RequestChangeEmailByCustomerRequestDto;
|
|
338
|
+
/**
|
|
339
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
340
|
+
* @type {string}
|
|
341
|
+
* @memberof CustomersApiRequestChangeEmailByCustomer
|
|
342
|
+
*/
|
|
343
|
+
readonly authorization?: string;
|
|
344
|
+
}
|
|
221
345
|
/**
|
|
222
346
|
* Request parameters for updateCustomer operation in CustomersApi.
|
|
223
347
|
* @export
|
|
@@ -243,6 +367,25 @@ export interface CustomersApiUpdateCustomerRequest {
|
|
|
243
367
|
*/
|
|
244
368
|
readonly authorization?: string;
|
|
245
369
|
}
|
|
370
|
+
/**
|
|
371
|
+
* Request parameters for verifyChangeEmailToken operation in CustomersApi.
|
|
372
|
+
* @export
|
|
373
|
+
* @interface CustomersApiVerifyChangeEmailTokenRequest
|
|
374
|
+
*/
|
|
375
|
+
export interface CustomersApiVerifyChangeEmailTokenRequest {
|
|
376
|
+
/**
|
|
377
|
+
*
|
|
378
|
+
* @type {VerifyChangeEmailTokenRequestDto}
|
|
379
|
+
* @memberof CustomersApiVerifyChangeEmailToken
|
|
380
|
+
*/
|
|
381
|
+
readonly verifyChangeEmailTokenRequestDto: VerifyChangeEmailTokenRequestDto;
|
|
382
|
+
/**
|
|
383
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
384
|
+
* @type {string}
|
|
385
|
+
* @memberof CustomersApiVerifyChangeEmailToken
|
|
386
|
+
*/
|
|
387
|
+
readonly authorization?: string;
|
|
388
|
+
}
|
|
246
389
|
/**
|
|
247
390
|
* CustomersApi - object-oriented interface
|
|
248
391
|
* @export
|
|
@@ -250,6 +393,15 @@ export interface CustomersApiUpdateCustomerRequest {
|
|
|
250
393
|
* @extends {BaseAPI}
|
|
251
394
|
*/
|
|
252
395
|
export declare class CustomersApi extends BaseAPI {
|
|
396
|
+
/**
|
|
397
|
+
* Change customer\'s email using the token provided by the request email change endpoint.
|
|
398
|
+
* @summary Change customer email
|
|
399
|
+
* @param {CustomersApiChangeCustomerEmailRequest} requestParameters Request parameters.
|
|
400
|
+
* @param {*} [options] Override http request option.
|
|
401
|
+
* @throws {RequiredError}
|
|
402
|
+
* @memberof CustomersApi
|
|
403
|
+
*/
|
|
404
|
+
changeCustomerEmail(requestParameters: CustomersApiChangeCustomerEmailRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateCustomerResponseClass, any>>;
|
|
253
405
|
/**
|
|
254
406
|
* Get customer details.
|
|
255
407
|
* @summary Get customer details
|
|
@@ -269,7 +421,16 @@ export declare class CustomersApi extends BaseAPI {
|
|
|
269
421
|
*/
|
|
270
422
|
listCustomers(requestParameters?: CustomersApiListCustomersRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
|
|
271
423
|
/**
|
|
272
|
-
*
|
|
424
|
+
* Request a token to change the email address for the customer.
|
|
425
|
+
* @summary Request customer email change
|
|
426
|
+
* @param {CustomersApiRequestChangeEmailByCustomerRequest} requestParameters Request parameters.
|
|
427
|
+
* @param {*} [options] Override http request option.
|
|
428
|
+
* @throws {RequiredError}
|
|
429
|
+
* @memberof CustomersApi
|
|
430
|
+
*/
|
|
431
|
+
requestChangeEmailByCustomer(requestParameters: CustomersApiRequestChangeEmailByCustomerRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<RequestChangeEmailByCustomerResponseClass, any>>;
|
|
432
|
+
/**
|
|
433
|
+
* Update customer details like phone, names, addresses etc. To change email, please use Request customer email change endpoint instead.
|
|
273
434
|
* @summary Update customer details
|
|
274
435
|
* @param {CustomersApiUpdateCustomerRequest} requestParameters Request parameters.
|
|
275
436
|
* @param {*} [options] Override http request option.
|
|
@@ -277,4 +438,13 @@ export declare class CustomersApi extends BaseAPI {
|
|
|
277
438
|
* @memberof CustomersApi
|
|
278
439
|
*/
|
|
279
440
|
updateCustomer(requestParameters: CustomersApiUpdateCustomerRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateCustomerResponseClass, any>>;
|
|
441
|
+
/**
|
|
442
|
+
* Verify the change email token that is sent by calling the request change email endpoint.
|
|
443
|
+
* @summary Verify the change email token
|
|
444
|
+
* @param {CustomersApiVerifyChangeEmailTokenRequest} requestParameters Request parameters.
|
|
445
|
+
* @param {*} [options] Override http request option.
|
|
446
|
+
* @throws {RequiredError}
|
|
447
|
+
* @memberof CustomersApi
|
|
448
|
+
*/
|
|
449
|
+
verifyChangeEmailToken(requestParameters: CustomersApiVerifyChangeEmailTokenRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<VerifyChangeEmailTokenResponseClass, any>>;
|
|
280
450
|
}
|