@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
|
@@ -96,6 +96,41 @@ var FormData = require('form-data');
|
|
|
96
96
|
var CustomersApiAxiosParamCreator = function (configuration) {
|
|
97
97
|
var _this = this;
|
|
98
98
|
return {
|
|
99
|
+
/**
|
|
100
|
+
* Change customer\'s email using the token provided by the request email change endpoint.
|
|
101
|
+
* @summary Change customer email
|
|
102
|
+
* @param {ChangeCustomerEmailRequestDto} changeCustomerEmailRequestDto
|
|
103
|
+
* @param {*} [options] Override http request option.
|
|
104
|
+
* @throws {RequiredError}
|
|
105
|
+
*/
|
|
106
|
+
changeCustomerEmail: function (changeCustomerEmailRequestDto, options) {
|
|
107
|
+
if (options === void 0) { options = {}; }
|
|
108
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
109
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
110
|
+
return __generator(this, function (_a) {
|
|
111
|
+
// verify required parameter 'changeCustomerEmailRequestDto' is not null or undefined
|
|
112
|
+
(0, common_1.assertParamExists)('changeCustomerEmail', 'changeCustomerEmailRequestDto', changeCustomerEmailRequestDto);
|
|
113
|
+
localVarPath = "/v1/customers/change-email";
|
|
114
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
115
|
+
if (configuration) {
|
|
116
|
+
baseOptions = configuration.baseOptions;
|
|
117
|
+
baseAccessToken = configuration.accessToken;
|
|
118
|
+
}
|
|
119
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
120
|
+
localVarHeaderParameter = {};
|
|
121
|
+
localVarQueryParameter = {};
|
|
122
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
123
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
124
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
125
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
126
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(changeCustomerEmailRequestDto, localVarRequestOptions, configuration);
|
|
127
|
+
return [2 /*return*/, {
|
|
128
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
129
|
+
options: localVarRequestOptions,
|
|
130
|
+
}];
|
|
131
|
+
});
|
|
132
|
+
});
|
|
133
|
+
},
|
|
99
134
|
/**
|
|
100
135
|
* Get customer details.
|
|
101
136
|
* @summary Get customer details
|
|
@@ -201,7 +236,50 @@ var CustomersApiAxiosParamCreator = function (configuration) {
|
|
|
201
236
|
});
|
|
202
237
|
},
|
|
203
238
|
/**
|
|
204
|
-
*
|
|
239
|
+
* Request a token to change the email address for the customer.
|
|
240
|
+
* @summary Request customer email change
|
|
241
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
242
|
+
* @param {RequestChangeEmailByCustomerRequestDto} requestChangeEmailByCustomerRequestDto
|
|
243
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
244
|
+
* @param {*} [options] Override http request option.
|
|
245
|
+
* @throws {RequiredError}
|
|
246
|
+
*/
|
|
247
|
+
requestChangeEmailByCustomer: function (customerCode, requestChangeEmailByCustomerRequestDto, authorization, options) {
|
|
248
|
+
if (options === void 0) { options = {}; }
|
|
249
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
250
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
251
|
+
return __generator(this, function (_a) {
|
|
252
|
+
// verify required parameter 'customerCode' is not null or undefined
|
|
253
|
+
(0, common_1.assertParamExists)('requestChangeEmailByCustomer', 'customerCode', customerCode);
|
|
254
|
+
// verify required parameter 'requestChangeEmailByCustomerRequestDto' is not null or undefined
|
|
255
|
+
(0, common_1.assertParamExists)('requestChangeEmailByCustomer', 'requestChangeEmailByCustomerRequestDto', requestChangeEmailByCustomerRequestDto);
|
|
256
|
+
localVarPath = "/v1/customers/{customerCode}/request-email-change"
|
|
257
|
+
.replace("{".concat("customerCode", "}"), encodeURIComponent(String(customerCode)));
|
|
258
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
259
|
+
if (configuration) {
|
|
260
|
+
baseOptions = configuration.baseOptions;
|
|
261
|
+
baseAccessToken = configuration.accessToken;
|
|
262
|
+
}
|
|
263
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
264
|
+
localVarHeaderParameter = {};
|
|
265
|
+
localVarQueryParameter = {};
|
|
266
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
267
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
268
|
+
}
|
|
269
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
270
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
271
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
272
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
273
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(requestChangeEmailByCustomerRequestDto, localVarRequestOptions, configuration);
|
|
274
|
+
return [2 /*return*/, {
|
|
275
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
276
|
+
options: localVarRequestOptions,
|
|
277
|
+
}];
|
|
278
|
+
});
|
|
279
|
+
});
|
|
280
|
+
},
|
|
281
|
+
/**
|
|
282
|
+
* Update customer details like phone, names, addresses etc. To change email, please use Request customer email change endpoint instead.
|
|
205
283
|
* @summary Update customer details
|
|
206
284
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
207
285
|
* @param {UpdateCustomerRequestDto} updateCustomerRequestDto
|
|
@@ -243,6 +321,45 @@ var CustomersApiAxiosParamCreator = function (configuration) {
|
|
|
243
321
|
});
|
|
244
322
|
});
|
|
245
323
|
},
|
|
324
|
+
/**
|
|
325
|
+
* Verify the change email token that is sent by calling the request change email endpoint.
|
|
326
|
+
* @summary Verify the change email token
|
|
327
|
+
* @param {VerifyChangeEmailTokenRequestDto} verifyChangeEmailTokenRequestDto
|
|
328
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
329
|
+
* @param {*} [options] Override http request option.
|
|
330
|
+
* @throws {RequiredError}
|
|
331
|
+
*/
|
|
332
|
+
verifyChangeEmailToken: function (verifyChangeEmailTokenRequestDto, authorization, options) {
|
|
333
|
+
if (options === void 0) { options = {}; }
|
|
334
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
335
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
336
|
+
return __generator(this, function (_a) {
|
|
337
|
+
// verify required parameter 'verifyChangeEmailTokenRequestDto' is not null or undefined
|
|
338
|
+
(0, common_1.assertParamExists)('verifyChangeEmailToken', 'verifyChangeEmailTokenRequestDto', verifyChangeEmailTokenRequestDto);
|
|
339
|
+
localVarPath = "/v1/customers/verify-change-email";
|
|
340
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
341
|
+
if (configuration) {
|
|
342
|
+
baseOptions = configuration.baseOptions;
|
|
343
|
+
baseAccessToken = configuration.accessToken;
|
|
344
|
+
}
|
|
345
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
346
|
+
localVarHeaderParameter = {};
|
|
347
|
+
localVarQueryParameter = {};
|
|
348
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
349
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
350
|
+
}
|
|
351
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
352
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
353
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
354
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
355
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(verifyChangeEmailTokenRequestDto, localVarRequestOptions, configuration);
|
|
356
|
+
return [2 /*return*/, {
|
|
357
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
358
|
+
options: localVarRequestOptions,
|
|
359
|
+
}];
|
|
360
|
+
});
|
|
361
|
+
});
|
|
362
|
+
},
|
|
246
363
|
};
|
|
247
364
|
};
|
|
248
365
|
exports.CustomersApiAxiosParamCreator = CustomersApiAxiosParamCreator;
|
|
@@ -253,6 +370,26 @@ exports.CustomersApiAxiosParamCreator = CustomersApiAxiosParamCreator;
|
|
|
253
370
|
var CustomersApiFp = function (configuration) {
|
|
254
371
|
var localVarAxiosParamCreator = (0, exports.CustomersApiAxiosParamCreator)(configuration);
|
|
255
372
|
return {
|
|
373
|
+
/**
|
|
374
|
+
* Change customer\'s email using the token provided by the request email change endpoint.
|
|
375
|
+
* @summary Change customer email
|
|
376
|
+
* @param {ChangeCustomerEmailRequestDto} changeCustomerEmailRequestDto
|
|
377
|
+
* @param {*} [options] Override http request option.
|
|
378
|
+
* @throws {RequiredError}
|
|
379
|
+
*/
|
|
380
|
+
changeCustomerEmail: function (changeCustomerEmailRequestDto, options) {
|
|
381
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
382
|
+
var localVarAxiosArgs;
|
|
383
|
+
return __generator(this, function (_a) {
|
|
384
|
+
switch (_a.label) {
|
|
385
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.changeCustomerEmail(changeCustomerEmailRequestDto, options)];
|
|
386
|
+
case 1:
|
|
387
|
+
localVarAxiosArgs = _a.sent();
|
|
388
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
389
|
+
}
|
|
390
|
+
});
|
|
391
|
+
});
|
|
392
|
+
},
|
|
256
393
|
/**
|
|
257
394
|
* Get customer details.
|
|
258
395
|
* @summary Get customer details
|
|
@@ -303,7 +440,29 @@ var CustomersApiFp = function (configuration) {
|
|
|
303
440
|
});
|
|
304
441
|
},
|
|
305
442
|
/**
|
|
306
|
-
*
|
|
443
|
+
* Request a token to change the email address for the customer.
|
|
444
|
+
* @summary Request customer email change
|
|
445
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
446
|
+
* @param {RequestChangeEmailByCustomerRequestDto} requestChangeEmailByCustomerRequestDto
|
|
447
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
448
|
+
* @param {*} [options] Override http request option.
|
|
449
|
+
* @throws {RequiredError}
|
|
450
|
+
*/
|
|
451
|
+
requestChangeEmailByCustomer: function (customerCode, requestChangeEmailByCustomerRequestDto, authorization, options) {
|
|
452
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
453
|
+
var localVarAxiosArgs;
|
|
454
|
+
return __generator(this, function (_a) {
|
|
455
|
+
switch (_a.label) {
|
|
456
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.requestChangeEmailByCustomer(customerCode, requestChangeEmailByCustomerRequestDto, authorization, options)];
|
|
457
|
+
case 1:
|
|
458
|
+
localVarAxiosArgs = _a.sent();
|
|
459
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
460
|
+
}
|
|
461
|
+
});
|
|
462
|
+
});
|
|
463
|
+
},
|
|
464
|
+
/**
|
|
465
|
+
* Update customer details like phone, names, addresses etc. To change email, please use Request customer email change endpoint instead.
|
|
307
466
|
* @summary Update customer details
|
|
308
467
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
309
468
|
* @param {UpdateCustomerRequestDto} updateCustomerRequestDto
|
|
@@ -324,6 +483,27 @@ var CustomersApiFp = function (configuration) {
|
|
|
324
483
|
});
|
|
325
484
|
});
|
|
326
485
|
},
|
|
486
|
+
/**
|
|
487
|
+
* Verify the change email token that is sent by calling the request change email endpoint.
|
|
488
|
+
* @summary Verify the change email token
|
|
489
|
+
* @param {VerifyChangeEmailTokenRequestDto} verifyChangeEmailTokenRequestDto
|
|
490
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
491
|
+
* @param {*} [options] Override http request option.
|
|
492
|
+
* @throws {RequiredError}
|
|
493
|
+
*/
|
|
494
|
+
verifyChangeEmailToken: function (verifyChangeEmailTokenRequestDto, authorization, options) {
|
|
495
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
496
|
+
var localVarAxiosArgs;
|
|
497
|
+
return __generator(this, function (_a) {
|
|
498
|
+
switch (_a.label) {
|
|
499
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.verifyChangeEmailToken(verifyChangeEmailTokenRequestDto, authorization, options)];
|
|
500
|
+
case 1:
|
|
501
|
+
localVarAxiosArgs = _a.sent();
|
|
502
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
503
|
+
}
|
|
504
|
+
});
|
|
505
|
+
});
|
|
506
|
+
},
|
|
327
507
|
};
|
|
328
508
|
};
|
|
329
509
|
exports.CustomersApiFp = CustomersApiFp;
|
|
@@ -334,6 +514,16 @@ exports.CustomersApiFp = CustomersApiFp;
|
|
|
334
514
|
var CustomersApiFactory = function (configuration, basePath, axios) {
|
|
335
515
|
var localVarFp = (0, exports.CustomersApiFp)(configuration);
|
|
336
516
|
return {
|
|
517
|
+
/**
|
|
518
|
+
* Change customer\'s email using the token provided by the request email change endpoint.
|
|
519
|
+
* @summary Change customer email
|
|
520
|
+
* @param {ChangeCustomerEmailRequestDto} changeCustomerEmailRequestDto
|
|
521
|
+
* @param {*} [options] Override http request option.
|
|
522
|
+
* @throws {RequiredError}
|
|
523
|
+
*/
|
|
524
|
+
changeCustomerEmail: function (changeCustomerEmailRequestDto, options) {
|
|
525
|
+
return localVarFp.changeCustomerEmail(changeCustomerEmailRequestDto, options).then(function (request) { return request(axios, basePath); });
|
|
526
|
+
},
|
|
337
527
|
/**
|
|
338
528
|
* Get customer details.
|
|
339
529
|
* @summary Get customer details
|
|
@@ -364,7 +554,19 @@ var CustomersApiFactory = function (configuration, basePath, axios) {
|
|
|
364
554
|
return localVarFp.listCustomers(pageSize, pageToken, filter, filters, search, order, expand, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
365
555
|
},
|
|
366
556
|
/**
|
|
367
|
-
*
|
|
557
|
+
* Request a token to change the email address for the customer.
|
|
558
|
+
* @summary Request customer email change
|
|
559
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
560
|
+
* @param {RequestChangeEmailByCustomerRequestDto} requestChangeEmailByCustomerRequestDto
|
|
561
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
562
|
+
* @param {*} [options] Override http request option.
|
|
563
|
+
* @throws {RequiredError}
|
|
564
|
+
*/
|
|
565
|
+
requestChangeEmailByCustomer: function (customerCode, requestChangeEmailByCustomerRequestDto, authorization, options) {
|
|
566
|
+
return localVarFp.requestChangeEmailByCustomer(customerCode, requestChangeEmailByCustomerRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
567
|
+
},
|
|
568
|
+
/**
|
|
569
|
+
* Update customer details like phone, names, addresses etc. To change email, please use Request customer email change endpoint instead.
|
|
368
570
|
* @summary Update customer details
|
|
369
571
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
370
572
|
* @param {UpdateCustomerRequestDto} updateCustomerRequestDto
|
|
@@ -375,6 +577,17 @@ var CustomersApiFactory = function (configuration, basePath, axios) {
|
|
|
375
577
|
updateCustomer: function (customerCode, updateCustomerRequestDto, authorization, options) {
|
|
376
578
|
return localVarFp.updateCustomer(customerCode, updateCustomerRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
377
579
|
},
|
|
580
|
+
/**
|
|
581
|
+
* Verify the change email token that is sent by calling the request change email endpoint.
|
|
582
|
+
* @summary Verify the change email token
|
|
583
|
+
* @param {VerifyChangeEmailTokenRequestDto} verifyChangeEmailTokenRequestDto
|
|
584
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
585
|
+
* @param {*} [options] Override http request option.
|
|
586
|
+
* @throws {RequiredError}
|
|
587
|
+
*/
|
|
588
|
+
verifyChangeEmailToken: function (verifyChangeEmailTokenRequestDto, authorization, options) {
|
|
589
|
+
return localVarFp.verifyChangeEmailToken(verifyChangeEmailTokenRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
590
|
+
},
|
|
378
591
|
};
|
|
379
592
|
};
|
|
380
593
|
exports.CustomersApiFactory = CustomersApiFactory;
|
|
@@ -389,6 +602,18 @@ var CustomersApi = /** @class */ (function (_super) {
|
|
|
389
602
|
function CustomersApi() {
|
|
390
603
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
391
604
|
}
|
|
605
|
+
/**
|
|
606
|
+
* Change customer\'s email using the token provided by the request email change endpoint.
|
|
607
|
+
* @summary Change customer email
|
|
608
|
+
* @param {CustomersApiChangeCustomerEmailRequest} requestParameters Request parameters.
|
|
609
|
+
* @param {*} [options] Override http request option.
|
|
610
|
+
* @throws {RequiredError}
|
|
611
|
+
* @memberof CustomersApi
|
|
612
|
+
*/
|
|
613
|
+
CustomersApi.prototype.changeCustomerEmail = function (requestParameters, options) {
|
|
614
|
+
var _this = this;
|
|
615
|
+
return (0, exports.CustomersApiFp)(this.configuration).changeCustomerEmail(requestParameters.changeCustomerEmailRequestDto, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
616
|
+
};
|
|
392
617
|
/**
|
|
393
618
|
* Get customer details.
|
|
394
619
|
* @summary Get customer details
|
|
@@ -415,7 +640,19 @@ var CustomersApi = /** @class */ (function (_super) {
|
|
|
415
640
|
return (0, exports.CustomersApiFp)(this.configuration).listCustomers(requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.filters, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
416
641
|
};
|
|
417
642
|
/**
|
|
418
|
-
*
|
|
643
|
+
* Request a token to change the email address for the customer.
|
|
644
|
+
* @summary Request customer email change
|
|
645
|
+
* @param {CustomersApiRequestChangeEmailByCustomerRequest} requestParameters Request parameters.
|
|
646
|
+
* @param {*} [options] Override http request option.
|
|
647
|
+
* @throws {RequiredError}
|
|
648
|
+
* @memberof CustomersApi
|
|
649
|
+
*/
|
|
650
|
+
CustomersApi.prototype.requestChangeEmailByCustomer = function (requestParameters, options) {
|
|
651
|
+
var _this = this;
|
|
652
|
+
return (0, exports.CustomersApiFp)(this.configuration).requestChangeEmailByCustomer(requestParameters.customerCode, requestParameters.requestChangeEmailByCustomerRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
653
|
+
};
|
|
654
|
+
/**
|
|
655
|
+
* Update customer details like phone, names, addresses etc. To change email, please use Request customer email change endpoint instead.
|
|
419
656
|
* @summary Update customer details
|
|
420
657
|
* @param {CustomersApiUpdateCustomerRequest} requestParameters Request parameters.
|
|
421
658
|
* @param {*} [options] Override http request option.
|
|
@@ -426,6 +663,18 @@ var CustomersApi = /** @class */ (function (_super) {
|
|
|
426
663
|
var _this = this;
|
|
427
664
|
return (0, exports.CustomersApiFp)(this.configuration).updateCustomer(requestParameters.customerCode, requestParameters.updateCustomerRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
428
665
|
};
|
|
666
|
+
/**
|
|
667
|
+
* Verify the change email token that is sent by calling the request change email endpoint.
|
|
668
|
+
* @summary Verify the change email token
|
|
669
|
+
* @param {CustomersApiVerifyChangeEmailTokenRequest} requestParameters Request parameters.
|
|
670
|
+
* @param {*} [options] Override http request option.
|
|
671
|
+
* @throws {RequiredError}
|
|
672
|
+
* @memberof CustomersApi
|
|
673
|
+
*/
|
|
674
|
+
CustomersApi.prototype.verifyChangeEmailToken = function (requestParameters, options) {
|
|
675
|
+
var _this = this;
|
|
676
|
+
return (0, exports.CustomersApiFp)(this.configuration).verifyChangeEmailToken(requestParameters.verifyChangeEmailTokenRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
677
|
+
};
|
|
429
678
|
return CustomersApi;
|
|
430
679
|
}(base_1.BaseAPI));
|
|
431
680
|
exports.CustomersApi = CustomersApi;
|
package/dist/api/leads-api.d.ts
CHANGED
|
@@ -34,18 +34,18 @@ export declare const LeadsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
34
34
|
*/
|
|
35
35
|
createLead: (customerCode: string, createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
36
36
|
/**
|
|
37
|
-
* Retrieves the details of the lead that was previously created. Supply the unique lead code
|
|
37
|
+
* 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.
|
|
38
38
|
* @summary Retrieve the lead
|
|
39
|
-
* @param {string}
|
|
39
|
+
* @param {string} code Unique identifier for the object.
|
|
40
40
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
41
41
|
* @param {string} [authorization] Bearer Token
|
|
42
42
|
* @param {string} [expand]
|
|
43
43
|
* @param {*} [options] Override http request option.
|
|
44
44
|
* @throws {RequiredError}
|
|
45
45
|
*/
|
|
46
|
-
getLead: (
|
|
46
|
+
getLead: (code: string, customerCode: string, authorization?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
47
47
|
/**
|
|
48
|
-
* Returns a list of leads you have previously created.
|
|
48
|
+
* 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.
|
|
49
49
|
* @summary List leads
|
|
50
50
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
51
51
|
* @param {string} [authorization] Bearer Token
|
|
@@ -63,14 +63,14 @@ export declare const LeadsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
63
63
|
/**
|
|
64
64
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
65
65
|
* @summary Update the lead
|
|
66
|
-
* @param {string}
|
|
66
|
+
* @param {string} code Unique identifier for the object.
|
|
67
67
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
68
68
|
* @param {UpdateLeadRequestDto} updateLeadRequestDto
|
|
69
69
|
* @param {string} [authorization] Bearer Token
|
|
70
70
|
* @param {*} [options] Override http request option.
|
|
71
71
|
* @throws {RequiredError}
|
|
72
72
|
*/
|
|
73
|
-
updateLead: (
|
|
73
|
+
updateLead: (code: string, customerCode: string, updateLeadRequestDto: UpdateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
74
74
|
};
|
|
75
75
|
/**
|
|
76
76
|
* LeadsApi - functional programming interface
|
|
@@ -88,18 +88,18 @@ export declare const LeadsApiFp: (configuration?: Configuration) => {
|
|
|
88
88
|
*/
|
|
89
89
|
createLead(customerCode: string, createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateLeadResponseClass>>;
|
|
90
90
|
/**
|
|
91
|
-
* Retrieves the details of the lead that was previously created. Supply the unique lead code
|
|
91
|
+
* 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.
|
|
92
92
|
* @summary Retrieve the lead
|
|
93
|
-
* @param {string}
|
|
93
|
+
* @param {string} code Unique identifier for the object.
|
|
94
94
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
95
95
|
* @param {string} [authorization] Bearer Token
|
|
96
96
|
* @param {string} [expand]
|
|
97
97
|
* @param {*} [options] Override http request option.
|
|
98
98
|
* @throws {RequiredError}
|
|
99
99
|
*/
|
|
100
|
-
getLead(
|
|
100
|
+
getLead(code: string, customerCode: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetLeadResponseClass>>;
|
|
101
101
|
/**
|
|
102
|
-
* Returns a list of leads you have previously created.
|
|
102
|
+
* 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.
|
|
103
103
|
* @summary List leads
|
|
104
104
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
105
105
|
* @param {string} [authorization] Bearer Token
|
|
@@ -117,14 +117,14 @@ export declare const LeadsApiFp: (configuration?: Configuration) => {
|
|
|
117
117
|
/**
|
|
118
118
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
119
119
|
* @summary Update the lead
|
|
120
|
-
* @param {string}
|
|
120
|
+
* @param {string} code Unique identifier for the object.
|
|
121
121
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
122
122
|
* @param {UpdateLeadRequestDto} updateLeadRequestDto
|
|
123
123
|
* @param {string} [authorization] Bearer Token
|
|
124
124
|
* @param {*} [options] Override http request option.
|
|
125
125
|
* @throws {RequiredError}
|
|
126
126
|
*/
|
|
127
|
-
updateLead(
|
|
127
|
+
updateLead(code: string, customerCode: string, updateLeadRequestDto: UpdateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateLeadResponseClass>>;
|
|
128
128
|
};
|
|
129
129
|
/**
|
|
130
130
|
* LeadsApi - factory interface
|
|
@@ -142,18 +142,18 @@ export declare const LeadsApiFactory: (configuration?: Configuration, basePath?:
|
|
|
142
142
|
*/
|
|
143
143
|
createLead(customerCode: string, createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: any): AxiosPromise<CreateLeadResponseClass>;
|
|
144
144
|
/**
|
|
145
|
-
* Retrieves the details of the lead that was previously created. Supply the unique lead code
|
|
145
|
+
* 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.
|
|
146
146
|
* @summary Retrieve the lead
|
|
147
|
-
* @param {string}
|
|
147
|
+
* @param {string} code Unique identifier for the object.
|
|
148
148
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
149
149
|
* @param {string} [authorization] Bearer Token
|
|
150
150
|
* @param {string} [expand]
|
|
151
151
|
* @param {*} [options] Override http request option.
|
|
152
152
|
* @throws {RequiredError}
|
|
153
153
|
*/
|
|
154
|
-
getLead(
|
|
154
|
+
getLead(code: string, customerCode: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetLeadResponseClass>;
|
|
155
155
|
/**
|
|
156
|
-
* Returns a list of leads you have previously created.
|
|
156
|
+
* 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.
|
|
157
157
|
* @summary List leads
|
|
158
158
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
159
159
|
* @param {string} [authorization] Bearer Token
|
|
@@ -171,14 +171,14 @@ export declare const LeadsApiFactory: (configuration?: Configuration, basePath?:
|
|
|
171
171
|
/**
|
|
172
172
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
173
173
|
* @summary Update the lead
|
|
174
|
-
* @param {string}
|
|
174
|
+
* @param {string} code Unique identifier for the object.
|
|
175
175
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
176
176
|
* @param {UpdateLeadRequestDto} updateLeadRequestDto
|
|
177
177
|
* @param {string} [authorization] Bearer Token
|
|
178
178
|
* @param {*} [options] Override http request option.
|
|
179
179
|
* @throws {RequiredError}
|
|
180
180
|
*/
|
|
181
|
-
updateLead(
|
|
181
|
+
updateLead(code: string, customerCode: string, updateLeadRequestDto: UpdateLeadRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateLeadResponseClass>;
|
|
182
182
|
};
|
|
183
183
|
/**
|
|
184
184
|
* Request parameters for createLead operation in LeadsApi.
|
|
@@ -212,11 +212,11 @@ export interface LeadsApiCreateLeadRequest {
|
|
|
212
212
|
*/
|
|
213
213
|
export interface LeadsApiGetLeadRequest {
|
|
214
214
|
/**
|
|
215
|
-
*
|
|
215
|
+
* Unique identifier for the object.
|
|
216
216
|
* @type {string}
|
|
217
217
|
* @memberof LeadsApiGetLead
|
|
218
218
|
*/
|
|
219
|
-
readonly
|
|
219
|
+
readonly code: string;
|
|
220
220
|
/**
|
|
221
221
|
* The customer code or \"me\" for the currently logged in customer.
|
|
222
222
|
* @type {string}
|
|
@@ -304,11 +304,11 @@ export interface LeadsApiListLeadsRequest {
|
|
|
304
304
|
*/
|
|
305
305
|
export interface LeadsApiUpdateLeadRequest {
|
|
306
306
|
/**
|
|
307
|
-
*
|
|
307
|
+
* Unique identifier for the object.
|
|
308
308
|
* @type {string}
|
|
309
309
|
* @memberof LeadsApiUpdateLead
|
|
310
310
|
*/
|
|
311
|
-
readonly
|
|
311
|
+
readonly code: string;
|
|
312
312
|
/**
|
|
313
313
|
* The customer code or \"me\" for the currently logged in customer.
|
|
314
314
|
* @type {string}
|
|
@@ -345,7 +345,7 @@ export declare class LeadsApi extends BaseAPI {
|
|
|
345
345
|
*/
|
|
346
346
|
createLead(requestParameters: LeadsApiCreateLeadRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateLeadResponseClass, any>>;
|
|
347
347
|
/**
|
|
348
|
-
* Retrieves the details of the lead that was previously created. Supply the unique lead code
|
|
348
|
+
* 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.
|
|
349
349
|
* @summary Retrieve the lead
|
|
350
350
|
* @param {LeadsApiGetLeadRequest} requestParameters Request parameters.
|
|
351
351
|
* @param {*} [options] Override http request option.
|
|
@@ -354,7 +354,7 @@ export declare class LeadsApi extends BaseAPI {
|
|
|
354
354
|
*/
|
|
355
355
|
getLead(requestParameters: LeadsApiGetLeadRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetLeadResponseClass, any>>;
|
|
356
356
|
/**
|
|
357
|
-
* Returns a list of leads you have previously created.
|
|
357
|
+
* 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.
|
|
358
358
|
* @summary List leads
|
|
359
359
|
* @param {LeadsApiListLeadsRequest} requestParameters Request parameters.
|
|
360
360
|
* @param {*} [options] Override http request option.
|