@emilgroup/customer-sdk-node 1.49.1-beta.6 → 1.50.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 +2 -2
- package/api/customers-api.ts +20 -6
- package/dist/api/customers-api.d.ts +12 -3
- package/dist/api/customers-api.js +12 -6
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/customer-sdk-node@1.
|
|
20
|
+
npm install @emilgroup/customer-sdk-node@1.50.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/customer-sdk-node@1.
|
|
24
|
+
yarn add @emilgroup/customer-sdk-node@1.50.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `CustomersApi`.
|
package/api/customers-api.ts
CHANGED
|
@@ -50,10 +50,11 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
|
|
|
50
50
|
* Change customer\'s email using the token provided by the request email change endpoint.
|
|
51
51
|
* @summary Change customer email
|
|
52
52
|
* @param {ChangeCustomerEmailRequestDto} changeCustomerEmailRequestDto
|
|
53
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
53
54
|
* @param {*} [options] Override http request option.
|
|
54
55
|
* @throws {RequiredError}
|
|
55
56
|
*/
|
|
56
|
-
changeCustomerEmail: async (changeCustomerEmailRequestDto: ChangeCustomerEmailRequestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
57
|
+
changeCustomerEmail: async (changeCustomerEmailRequestDto: ChangeCustomerEmailRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
57
58
|
// verify required parameter 'changeCustomerEmailRequestDto' is not null or undefined
|
|
58
59
|
assertParamExists('changeCustomerEmail', 'changeCustomerEmailRequestDto', changeCustomerEmailRequestDto)
|
|
59
60
|
const localVarPath = `/v1/customers/change-email`;
|
|
@@ -70,6 +71,10 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
|
|
|
70
71
|
const localVarHeaderParameter = {} as any;
|
|
71
72
|
const localVarQueryParameter = {} as any;
|
|
72
73
|
|
|
74
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
75
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
76
|
+
}
|
|
77
|
+
|
|
73
78
|
|
|
74
79
|
|
|
75
80
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -353,11 +358,12 @@ export const CustomersApiFp = function(configuration?: Configuration) {
|
|
|
353
358
|
* Change customer\'s email using the token provided by the request email change endpoint.
|
|
354
359
|
* @summary Change customer email
|
|
355
360
|
* @param {ChangeCustomerEmailRequestDto} changeCustomerEmailRequestDto
|
|
361
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
356
362
|
* @param {*} [options] Override http request option.
|
|
357
363
|
* @throws {RequiredError}
|
|
358
364
|
*/
|
|
359
|
-
async changeCustomerEmail(changeCustomerEmailRequestDto: ChangeCustomerEmailRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCustomerResponseClass>> {
|
|
360
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.changeCustomerEmail(changeCustomerEmailRequestDto, options);
|
|
365
|
+
async changeCustomerEmail(changeCustomerEmailRequestDto: ChangeCustomerEmailRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCustomerResponseClass>> {
|
|
366
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.changeCustomerEmail(changeCustomerEmailRequestDto, authorization, options);
|
|
361
367
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
362
368
|
},
|
|
363
369
|
/**
|
|
@@ -443,11 +449,12 @@ export const CustomersApiFactory = function (configuration?: Configuration, base
|
|
|
443
449
|
* Change customer\'s email using the token provided by the request email change endpoint.
|
|
444
450
|
* @summary Change customer email
|
|
445
451
|
* @param {ChangeCustomerEmailRequestDto} changeCustomerEmailRequestDto
|
|
452
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
446
453
|
* @param {*} [options] Override http request option.
|
|
447
454
|
* @throws {RequiredError}
|
|
448
455
|
*/
|
|
449
|
-
changeCustomerEmail(changeCustomerEmailRequestDto: ChangeCustomerEmailRequestDto, options?: any): AxiosPromise<UpdateCustomerResponseClass> {
|
|
450
|
-
return localVarFp.changeCustomerEmail(changeCustomerEmailRequestDto, options).then((request) => request(axios, basePath));
|
|
456
|
+
changeCustomerEmail(changeCustomerEmailRequestDto: ChangeCustomerEmailRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCustomerResponseClass> {
|
|
457
|
+
return localVarFp.changeCustomerEmail(changeCustomerEmailRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
451
458
|
},
|
|
452
459
|
/**
|
|
453
460
|
* Get customer details.
|
|
@@ -528,6 +535,13 @@ export interface CustomersApiChangeCustomerEmailRequest {
|
|
|
528
535
|
* @memberof CustomersApiChangeCustomerEmail
|
|
529
536
|
*/
|
|
530
537
|
readonly changeCustomerEmailRequestDto: ChangeCustomerEmailRequestDto
|
|
538
|
+
|
|
539
|
+
/**
|
|
540
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
541
|
+
* @type {string}
|
|
542
|
+
* @memberof CustomersApiChangeCustomerEmail
|
|
543
|
+
*/
|
|
544
|
+
readonly authorization?: string
|
|
531
545
|
}
|
|
532
546
|
|
|
533
547
|
/**
|
|
@@ -714,7 +728,7 @@ export class CustomersApi extends BaseAPI {
|
|
|
714
728
|
* @memberof CustomersApi
|
|
715
729
|
*/
|
|
716
730
|
public changeCustomerEmail(requestParameters: CustomersApiChangeCustomerEmailRequest, options?: AxiosRequestConfig) {
|
|
717
|
-
return CustomersApiFp(this.configuration).changeCustomerEmail(requestParameters.changeCustomerEmailRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
731
|
+
return CustomersApiFp(this.configuration).changeCustomerEmail(requestParameters.changeCustomerEmailRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
718
732
|
}
|
|
719
733
|
|
|
720
734
|
/**
|
|
@@ -29,10 +29,11 @@ export declare const CustomersApiAxiosParamCreator: (configuration?: Configurati
|
|
|
29
29
|
* Change customer\'s email using the token provided by the request email change endpoint.
|
|
30
30
|
* @summary Change customer email
|
|
31
31
|
* @param {ChangeCustomerEmailRequestDto} changeCustomerEmailRequestDto
|
|
32
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
32
33
|
* @param {*} [options] Override http request option.
|
|
33
34
|
* @throws {RequiredError}
|
|
34
35
|
*/
|
|
35
|
-
changeCustomerEmail: (changeCustomerEmailRequestDto: ChangeCustomerEmailRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
36
|
+
changeCustomerEmail: (changeCustomerEmailRequestDto: ChangeCustomerEmailRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
36
37
|
/**
|
|
37
38
|
* Get customer details.
|
|
38
39
|
* @summary Get customer details
|
|
@@ -97,10 +98,11 @@ export declare const CustomersApiFp: (configuration?: Configuration) => {
|
|
|
97
98
|
* Change customer\'s email using the token provided by the request email change endpoint.
|
|
98
99
|
* @summary Change customer email
|
|
99
100
|
* @param {ChangeCustomerEmailRequestDto} changeCustomerEmailRequestDto
|
|
101
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
100
102
|
* @param {*} [options] Override http request option.
|
|
101
103
|
* @throws {RequiredError}
|
|
102
104
|
*/
|
|
103
|
-
changeCustomerEmail(changeCustomerEmailRequestDto: ChangeCustomerEmailRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCustomerResponseClass>>;
|
|
105
|
+
changeCustomerEmail(changeCustomerEmailRequestDto: ChangeCustomerEmailRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCustomerResponseClass>>;
|
|
104
106
|
/**
|
|
105
107
|
* Get customer details.
|
|
106
108
|
* @summary Get customer details
|
|
@@ -165,10 +167,11 @@ export declare const CustomersApiFactory: (configuration?: Configuration, basePa
|
|
|
165
167
|
* Change customer\'s email using the token provided by the request email change endpoint.
|
|
166
168
|
* @summary Change customer email
|
|
167
169
|
* @param {ChangeCustomerEmailRequestDto} changeCustomerEmailRequestDto
|
|
170
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
168
171
|
* @param {*} [options] Override http request option.
|
|
169
172
|
* @throws {RequiredError}
|
|
170
173
|
*/
|
|
171
|
-
changeCustomerEmail(changeCustomerEmailRequestDto: ChangeCustomerEmailRequestDto, options?: any): AxiosPromise<UpdateCustomerResponseClass>;
|
|
174
|
+
changeCustomerEmail(changeCustomerEmailRequestDto: ChangeCustomerEmailRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCustomerResponseClass>;
|
|
172
175
|
/**
|
|
173
176
|
* Get customer details.
|
|
174
177
|
* @summary Get customer details
|
|
@@ -236,6 +239,12 @@ export interface CustomersApiChangeCustomerEmailRequest {
|
|
|
236
239
|
* @memberof CustomersApiChangeCustomerEmail
|
|
237
240
|
*/
|
|
238
241
|
readonly changeCustomerEmailRequestDto: ChangeCustomerEmailRequestDto;
|
|
242
|
+
/**
|
|
243
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
244
|
+
* @type {string}
|
|
245
|
+
* @memberof CustomersApiChangeCustomerEmail
|
|
246
|
+
*/
|
|
247
|
+
readonly authorization?: string;
|
|
239
248
|
}
|
|
240
249
|
/**
|
|
241
250
|
* Request parameters for getCustomer operation in CustomersApi.
|
|
@@ -100,10 +100,11 @@ var CustomersApiAxiosParamCreator = function (configuration) {
|
|
|
100
100
|
* Change customer\'s email using the token provided by the request email change endpoint.
|
|
101
101
|
* @summary Change customer email
|
|
102
102
|
* @param {ChangeCustomerEmailRequestDto} changeCustomerEmailRequestDto
|
|
103
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
103
104
|
* @param {*} [options] Override http request option.
|
|
104
105
|
* @throws {RequiredError}
|
|
105
106
|
*/
|
|
106
|
-
changeCustomerEmail: function (changeCustomerEmailRequestDto, options) {
|
|
107
|
+
changeCustomerEmail: function (changeCustomerEmailRequestDto, authorization, options) {
|
|
107
108
|
if (options === void 0) { options = {}; }
|
|
108
109
|
return __awaiter(_this, void 0, void 0, function () {
|
|
109
110
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -119,6 +120,9 @@ var CustomersApiAxiosParamCreator = function (configuration) {
|
|
|
119
120
|
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
120
121
|
localVarHeaderParameter = {};
|
|
121
122
|
localVarQueryParameter = {};
|
|
123
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
124
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
125
|
+
}
|
|
122
126
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
123
127
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
124
128
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -374,15 +378,16 @@ var CustomersApiFp = function (configuration) {
|
|
|
374
378
|
* Change customer\'s email using the token provided by the request email change endpoint.
|
|
375
379
|
* @summary Change customer email
|
|
376
380
|
* @param {ChangeCustomerEmailRequestDto} changeCustomerEmailRequestDto
|
|
381
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
377
382
|
* @param {*} [options] Override http request option.
|
|
378
383
|
* @throws {RequiredError}
|
|
379
384
|
*/
|
|
380
|
-
changeCustomerEmail: function (changeCustomerEmailRequestDto, options) {
|
|
385
|
+
changeCustomerEmail: function (changeCustomerEmailRequestDto, authorization, options) {
|
|
381
386
|
return __awaiter(this, void 0, void 0, function () {
|
|
382
387
|
var localVarAxiosArgs;
|
|
383
388
|
return __generator(this, function (_a) {
|
|
384
389
|
switch (_a.label) {
|
|
385
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.changeCustomerEmail(changeCustomerEmailRequestDto, options)];
|
|
390
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.changeCustomerEmail(changeCustomerEmailRequestDto, authorization, options)];
|
|
386
391
|
case 1:
|
|
387
392
|
localVarAxiosArgs = _a.sent();
|
|
388
393
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -518,11 +523,12 @@ var CustomersApiFactory = function (configuration, basePath, axios) {
|
|
|
518
523
|
* Change customer\'s email using the token provided by the request email change endpoint.
|
|
519
524
|
* @summary Change customer email
|
|
520
525
|
* @param {ChangeCustomerEmailRequestDto} changeCustomerEmailRequestDto
|
|
526
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
521
527
|
* @param {*} [options] Override http request option.
|
|
522
528
|
* @throws {RequiredError}
|
|
523
529
|
*/
|
|
524
|
-
changeCustomerEmail: function (changeCustomerEmailRequestDto, options) {
|
|
525
|
-
return localVarFp.changeCustomerEmail(changeCustomerEmailRequestDto, options).then(function (request) { return request(axios, basePath); });
|
|
530
|
+
changeCustomerEmail: function (changeCustomerEmailRequestDto, authorization, options) {
|
|
531
|
+
return localVarFp.changeCustomerEmail(changeCustomerEmailRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
526
532
|
},
|
|
527
533
|
/**
|
|
528
534
|
* Get customer details.
|
|
@@ -612,7 +618,7 @@ var CustomersApi = /** @class */ (function (_super) {
|
|
|
612
618
|
*/
|
|
613
619
|
CustomersApi.prototype.changeCustomerEmail = function (requestParameters, options) {
|
|
614
620
|
var _this = this;
|
|
615
|
-
return (0, exports.CustomersApiFp)(this.configuration).changeCustomerEmail(requestParameters.changeCustomerEmailRequestDto, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
621
|
+
return (0, exports.CustomersApiFp)(this.configuration).changeCustomerEmail(requestParameters.changeCustomerEmailRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
616
622
|
};
|
|
617
623
|
/**
|
|
618
624
|
* Get customer details.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emilgroup/customer-sdk-node",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.50.0",
|
|
4
4
|
"description": "OpenAPI client for @emilgroup/customer-sdk-node",
|
|
5
5
|
"author": "OpenAPI-Generator Contributors",
|
|
6
6
|
"keywords": [
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"url": "^0.11.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
|
|
26
|
+
"@types/node": "^12.11.5",
|
|
27
27
|
"typescript": "^4.0"
|
|
28
28
|
}
|
|
29
29
|
}
|