@emilgroup/customer-sdk-node
Advanced tools
+20
-6
@@ -53,6 +53,7 @@ /* tslint:disable */ | ||
| * @param {ChangeCustomerEmailRequestDto} changeCustomerEmailRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| changeCustomerEmail: async (changeCustomerEmailRequestDto: ChangeCustomerEmailRequestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => { | ||
| changeCustomerEmail: async (changeCustomerEmailRequestDto: ChangeCustomerEmailRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => { | ||
| // verify required parameter 'changeCustomerEmailRequestDto' is not null or undefined | ||
@@ -74,3 +75,7 @@ assertParamExists('changeCustomerEmail', 'changeCustomerEmailRequestDto', changeCustomerEmailRequestDto) | ||
| if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) { | ||
| localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken); | ||
| } | ||
@@ -358,7 +363,8 @@ localVarHeaderParameter['Content-Type'] = 'application/json'; | ||
| * @param {ChangeCustomerEmailRequestDto} changeCustomerEmailRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| async changeCustomerEmail(changeCustomerEmailRequestDto: ChangeCustomerEmailRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCustomerResponseClass>> { | ||
| const localVarAxiosArgs = await localVarAxiosParamCreator.changeCustomerEmail(changeCustomerEmailRequestDto, options); | ||
| async changeCustomerEmail(changeCustomerEmailRequestDto: ChangeCustomerEmailRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCustomerResponseClass>> { | ||
| const localVarAxiosArgs = await localVarAxiosParamCreator.changeCustomerEmail(changeCustomerEmailRequestDto, authorization, options); | ||
| return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); | ||
@@ -449,7 +455,8 @@ }, | ||
| * @param {ChangeCustomerEmailRequestDto} changeCustomerEmailRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| changeCustomerEmail(changeCustomerEmailRequestDto: ChangeCustomerEmailRequestDto, options?: any): AxiosPromise<UpdateCustomerResponseClass> { | ||
| return localVarFp.changeCustomerEmail(changeCustomerEmailRequestDto, options).then((request) => request(axios, basePath)); | ||
| changeCustomerEmail(changeCustomerEmailRequestDto: ChangeCustomerEmailRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCustomerResponseClass> { | ||
| return localVarFp.changeCustomerEmail(changeCustomerEmailRequestDto, authorization, options).then((request) => request(axios, basePath)); | ||
| }, | ||
@@ -535,2 +542,9 @@ /** | ||
| readonly changeCustomerEmailRequestDto: ChangeCustomerEmailRequestDto | ||
| /** | ||
| * Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @type {string} | ||
| * @memberof CustomersApiChangeCustomerEmail | ||
| */ | ||
| readonly authorization?: string | ||
| } | ||
@@ -722,3 +736,3 @@ | ||
| public changeCustomerEmail(requestParameters: CustomersApiChangeCustomerEmailRequest, options?: AxiosRequestConfig) { | ||
| return CustomersApiFp(this.configuration).changeCustomerEmail(requestParameters.changeCustomerEmailRequestDto, options).then((request) => request(this.axios, this.basePath)); | ||
| return CustomersApiFp(this.configuration).changeCustomerEmail(requestParameters.changeCustomerEmailRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath)); | ||
| } | ||
@@ -725,0 +739,0 @@ |
@@ -32,6 +32,7 @@ /** | ||
| * @param {ChangeCustomerEmailRequestDto} changeCustomerEmailRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| changeCustomerEmail: (changeCustomerEmailRequestDto: ChangeCustomerEmailRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
| changeCustomerEmail: (changeCustomerEmailRequestDto: ChangeCustomerEmailRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
| /** | ||
@@ -101,6 +102,7 @@ * Get customer details. | ||
| * @param {ChangeCustomerEmailRequestDto} changeCustomerEmailRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| changeCustomerEmail(changeCustomerEmailRequestDto: ChangeCustomerEmailRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCustomerResponseClass>>; | ||
| changeCustomerEmail(changeCustomerEmailRequestDto: ChangeCustomerEmailRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCustomerResponseClass>>; | ||
| /** | ||
@@ -170,6 +172,7 @@ * Get customer details. | ||
| * @param {ChangeCustomerEmailRequestDto} changeCustomerEmailRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| changeCustomerEmail(changeCustomerEmailRequestDto: ChangeCustomerEmailRequestDto, options?: any): AxiosPromise<UpdateCustomerResponseClass>; | ||
| changeCustomerEmail(changeCustomerEmailRequestDto: ChangeCustomerEmailRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCustomerResponseClass>; | ||
| /** | ||
@@ -242,2 +245,8 @@ * Get customer details. | ||
| readonly changeCustomerEmailRequestDto: ChangeCustomerEmailRequestDto; | ||
| /** | ||
| * Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @type {string} | ||
| * @memberof CustomersApiChangeCustomerEmail | ||
| */ | ||
| readonly authorization?: string; | ||
| } | ||
@@ -244,0 +253,0 @@ /** |
@@ -103,6 +103,7 @@ "use strict"; | ||
| * @param {ChangeCustomerEmailRequestDto} changeCustomerEmailRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| changeCustomerEmail: function (changeCustomerEmailRequestDto, options) { | ||
| changeCustomerEmail: function (changeCustomerEmailRequestDto, authorization, options) { | ||
| if (options === void 0) { options = {}; } | ||
@@ -123,2 +124,5 @@ return __awaiter(_this, void 0, void 0, function () { | ||
| localVarQueryParameter = {}; | ||
| if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) { | ||
| localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken); | ||
| } | ||
| localVarHeaderParameter['Content-Type'] = 'application/json'; | ||
@@ -379,6 +383,7 @@ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); | ||
| * @param {ChangeCustomerEmailRequestDto} changeCustomerEmailRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| changeCustomerEmail: function (changeCustomerEmailRequestDto, options) { | ||
| changeCustomerEmail: function (changeCustomerEmailRequestDto, authorization, options) { | ||
| return __awaiter(this, void 0, void 0, function () { | ||
@@ -388,3 +393,3 @@ var localVarAxiosArgs; | ||
| switch (_a.label) { | ||
| case 0: return [4 /*yield*/, localVarAxiosParamCreator.changeCustomerEmail(changeCustomerEmailRequestDto, options)]; | ||
| case 0: return [4 /*yield*/, localVarAxiosParamCreator.changeCustomerEmail(changeCustomerEmailRequestDto, authorization, options)]; | ||
| case 1: | ||
@@ -525,7 +530,8 @@ localVarAxiosArgs = _a.sent(); | ||
| * @param {ChangeCustomerEmailRequestDto} changeCustomerEmailRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| changeCustomerEmail: function (changeCustomerEmailRequestDto, options) { | ||
| return localVarFp.changeCustomerEmail(changeCustomerEmailRequestDto, options).then(function (request) { return request(axios, basePath); }); | ||
| changeCustomerEmail: function (changeCustomerEmailRequestDto, authorization, options) { | ||
| return localVarFp.changeCustomerEmail(changeCustomerEmailRequestDto, authorization, options).then(function (request) { return request(axios, basePath); }); | ||
| }, | ||
@@ -620,3 +626,3 @@ /** | ||
| var _this = this; | ||
| return (0, exports.CustomersApiFp)(this.configuration).changeCustomerEmail(requestParameters.changeCustomerEmailRequestDto, options).then(function (request) { return request(_this.axios, _this.basePath); }); | ||
| return (0, exports.CustomersApiFp)(this.configuration).changeCustomerEmail(requestParameters.changeCustomerEmailRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); }); | ||
| }; | ||
@@ -623,0 +629,0 @@ /** |
+1
-1
| { | ||
| "name": "@emilgroup/customer-sdk-node", | ||
| "version": "1.49.1-beta.6", | ||
| "version": "1.49.1-beta.7", | ||
| "description": "OpenAPI client for @emilgroup/customer-sdk-node", | ||
@@ -5,0 +5,0 @@ "author": "OpenAPI-Generator Contributors", |
+2
-2
@@ -20,7 +20,7 @@ # Emil Customer SDK for Nodejs | ||
| ``` | ||
| npm install @emilgroup/customer-sdk-node@1.49.1-beta.6 --save | ||
| npm install @emilgroup/customer-sdk-node@1.49.1-beta.7 --save | ||
| ``` | ||
| or | ||
| ``` | ||
| yarn add @emilgroup/customer-sdk-node@1.49.1-beta.6 | ||
| yarn add @emilgroup/customer-sdk-node@1.49.1-beta.7 | ||
| ``` | ||
@@ -27,0 +27,0 @@ |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
1346653
0.17%30119
0.09%