@emilgroup/customer-sdk 1.50.1-beta.6 → 1.52.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 -1
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@1.
|
|
20
|
+
npm install @emilgroup/customer-sdk@1.52.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/customer-sdk@1.
|
|
24
|
+
yarn add @emilgroup/customer-sdk@1.52.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `CustomersApi`.
|
package/api/customers-api.ts
CHANGED
|
@@ -47,10 +47,11 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
|
|
|
47
47
|
* Change customer\'s email using the token provided by the request email change endpoint.
|
|
48
48
|
* @summary Change customer email
|
|
49
49
|
* @param {ChangeCustomerEmailRequestDto} changeCustomerEmailRequestDto
|
|
50
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
50
51
|
* @param {*} [options] Override http request option.
|
|
51
52
|
* @throws {RequiredError}
|
|
52
53
|
*/
|
|
53
|
-
changeCustomerEmail: async (changeCustomerEmailRequestDto: ChangeCustomerEmailRequestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
54
|
+
changeCustomerEmail: async (changeCustomerEmailRequestDto: ChangeCustomerEmailRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
54
55
|
// verify required parameter 'changeCustomerEmailRequestDto' is not null or undefined
|
|
55
56
|
assertParamExists('changeCustomerEmail', 'changeCustomerEmailRequestDto', changeCustomerEmailRequestDto)
|
|
56
57
|
const localVarPath = `/v1/customers/change-email`;
|
|
@@ -67,6 +68,10 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
|
|
|
67
68
|
const localVarHeaderParameter = {} as any;
|
|
68
69
|
const localVarQueryParameter = {} as any;
|
|
69
70
|
|
|
71
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
72
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
73
|
+
}
|
|
74
|
+
|
|
70
75
|
|
|
71
76
|
|
|
72
77
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -350,11 +355,12 @@ export const CustomersApiFp = function(configuration?: Configuration) {
|
|
|
350
355
|
* Change customer\'s email using the token provided by the request email change endpoint.
|
|
351
356
|
* @summary Change customer email
|
|
352
357
|
* @param {ChangeCustomerEmailRequestDto} changeCustomerEmailRequestDto
|
|
358
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
353
359
|
* @param {*} [options] Override http request option.
|
|
354
360
|
* @throws {RequiredError}
|
|
355
361
|
*/
|
|
356
|
-
async changeCustomerEmail(changeCustomerEmailRequestDto: ChangeCustomerEmailRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCustomerResponseClass>> {
|
|
357
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.changeCustomerEmail(changeCustomerEmailRequestDto, options);
|
|
362
|
+
async changeCustomerEmail(changeCustomerEmailRequestDto: ChangeCustomerEmailRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCustomerResponseClass>> {
|
|
363
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.changeCustomerEmail(changeCustomerEmailRequestDto, authorization, options);
|
|
358
364
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
359
365
|
},
|
|
360
366
|
/**
|
|
@@ -440,11 +446,12 @@ export const CustomersApiFactory = function (configuration?: Configuration, base
|
|
|
440
446
|
* Change customer\'s email using the token provided by the request email change endpoint.
|
|
441
447
|
* @summary Change customer email
|
|
442
448
|
* @param {ChangeCustomerEmailRequestDto} changeCustomerEmailRequestDto
|
|
449
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
443
450
|
* @param {*} [options] Override http request option.
|
|
444
451
|
* @throws {RequiredError}
|
|
445
452
|
*/
|
|
446
|
-
changeCustomerEmail(changeCustomerEmailRequestDto: ChangeCustomerEmailRequestDto, options?: any): AxiosPromise<UpdateCustomerResponseClass> {
|
|
447
|
-
return localVarFp.changeCustomerEmail(changeCustomerEmailRequestDto, options).then((request) => request(axios, basePath));
|
|
453
|
+
changeCustomerEmail(changeCustomerEmailRequestDto: ChangeCustomerEmailRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCustomerResponseClass> {
|
|
454
|
+
return localVarFp.changeCustomerEmail(changeCustomerEmailRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
448
455
|
},
|
|
449
456
|
/**
|
|
450
457
|
* Get customer details.
|
|
@@ -525,6 +532,13 @@ export interface CustomersApiChangeCustomerEmailRequest {
|
|
|
525
532
|
* @memberof CustomersApiChangeCustomerEmail
|
|
526
533
|
*/
|
|
527
534
|
readonly changeCustomerEmailRequestDto: ChangeCustomerEmailRequestDto
|
|
535
|
+
|
|
536
|
+
/**
|
|
537
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
538
|
+
* @type {string}
|
|
539
|
+
* @memberof CustomersApiChangeCustomerEmail
|
|
540
|
+
*/
|
|
541
|
+
readonly authorization?: string
|
|
528
542
|
}
|
|
529
543
|
|
|
530
544
|
/**
|
|
@@ -711,7 +725,7 @@ export class CustomersApi extends BaseAPI {
|
|
|
711
725
|
* @memberof CustomersApi
|
|
712
726
|
*/
|
|
713
727
|
public changeCustomerEmail(requestParameters: CustomersApiChangeCustomerEmailRequest, options?: AxiosRequestConfig) {
|
|
714
|
-
return CustomersApiFp(this.configuration).changeCustomerEmail(requestParameters.changeCustomerEmailRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
728
|
+
return CustomersApiFp(this.configuration).changeCustomerEmail(requestParameters.changeCustomerEmailRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
715
729
|
}
|
|
716
730
|
|
|
717
731
|
/**
|
|
@@ -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.
|
|
@@ -97,10 +97,11 @@ var CustomersApiAxiosParamCreator = function (configuration) {
|
|
|
97
97
|
* Change customer\'s email using the token provided by the request email change endpoint.
|
|
98
98
|
* @summary Change customer email
|
|
99
99
|
* @param {ChangeCustomerEmailRequestDto} changeCustomerEmailRequestDto
|
|
100
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
100
101
|
* @param {*} [options] Override http request option.
|
|
101
102
|
* @throws {RequiredError}
|
|
102
103
|
*/
|
|
103
|
-
changeCustomerEmail: function (changeCustomerEmailRequestDto, options) {
|
|
104
|
+
changeCustomerEmail: function (changeCustomerEmailRequestDto, authorization, options) {
|
|
104
105
|
if (options === void 0) { options = {}; }
|
|
105
106
|
return __awaiter(_this, void 0, void 0, function () {
|
|
106
107
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -116,6 +117,9 @@ var CustomersApiAxiosParamCreator = function (configuration) {
|
|
|
116
117
|
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
117
118
|
localVarHeaderParameter = {};
|
|
118
119
|
localVarQueryParameter = {};
|
|
120
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
121
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
122
|
+
}
|
|
119
123
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
120
124
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
121
125
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -371,15 +375,16 @@ var CustomersApiFp = function (configuration) {
|
|
|
371
375
|
* Change customer\'s email using the token provided by the request email change endpoint.
|
|
372
376
|
* @summary Change customer email
|
|
373
377
|
* @param {ChangeCustomerEmailRequestDto} changeCustomerEmailRequestDto
|
|
378
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
374
379
|
* @param {*} [options] Override http request option.
|
|
375
380
|
* @throws {RequiredError}
|
|
376
381
|
*/
|
|
377
|
-
changeCustomerEmail: function (changeCustomerEmailRequestDto, options) {
|
|
382
|
+
changeCustomerEmail: function (changeCustomerEmailRequestDto, authorization, options) {
|
|
378
383
|
return __awaiter(this, void 0, void 0, function () {
|
|
379
384
|
var localVarAxiosArgs;
|
|
380
385
|
return __generator(this, function (_a) {
|
|
381
386
|
switch (_a.label) {
|
|
382
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.changeCustomerEmail(changeCustomerEmailRequestDto, options)];
|
|
387
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.changeCustomerEmail(changeCustomerEmailRequestDto, authorization, options)];
|
|
383
388
|
case 1:
|
|
384
389
|
localVarAxiosArgs = _a.sent();
|
|
385
390
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -515,11 +520,12 @@ var CustomersApiFactory = function (configuration, basePath, axios) {
|
|
|
515
520
|
* Change customer\'s email using the token provided by the request email change endpoint.
|
|
516
521
|
* @summary Change customer email
|
|
517
522
|
* @param {ChangeCustomerEmailRequestDto} changeCustomerEmailRequestDto
|
|
523
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
518
524
|
* @param {*} [options] Override http request option.
|
|
519
525
|
* @throws {RequiredError}
|
|
520
526
|
*/
|
|
521
|
-
changeCustomerEmail: function (changeCustomerEmailRequestDto, options) {
|
|
522
|
-
return localVarFp.changeCustomerEmail(changeCustomerEmailRequestDto, options).then(function (request) { return request(axios, basePath); });
|
|
527
|
+
changeCustomerEmail: function (changeCustomerEmailRequestDto, authorization, options) {
|
|
528
|
+
return localVarFp.changeCustomerEmail(changeCustomerEmailRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
523
529
|
},
|
|
524
530
|
/**
|
|
525
531
|
* Get customer details.
|
|
@@ -609,7 +615,7 @@ var CustomersApi = /** @class */ (function (_super) {
|
|
|
609
615
|
*/
|
|
610
616
|
CustomersApi.prototype.changeCustomerEmail = function (requestParameters, options) {
|
|
611
617
|
var _this = this;
|
|
612
|
-
return (0, exports.CustomersApiFp)(this.configuration).changeCustomerEmail(requestParameters.changeCustomerEmailRequestDto, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
618
|
+
return (0, exports.CustomersApiFp)(this.configuration).changeCustomerEmail(requestParameters.changeCustomerEmailRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
613
619
|
};
|
|
614
620
|
/**
|
|
615
621
|
* Get customer details.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emilgroup/customer-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.52.0",
|
|
4
4
|
"description": "OpenAPI client for @emilgroup/customer-sdk",
|
|
5
5
|
"author": "OpenAPI-Generator Contributors",
|
|
6
6
|
"keywords": [
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
"axios": "^1.12.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
+
|
|
24
25
|
"typescript": "^4.0"
|
|
25
26
|
}
|
|
26
27
|
}
|