@emilgroup/account-sdk-node 1.45.1-beta.18 → 1.45.1-beta.19
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/accounts-api.ts +24 -12
- package/common.ts +3 -2
- package/dist/api/accounts-api.d.ts +6 -6
- package/dist/api/accounts-api.js +33 -21
- package/dist/api/health-api.d.ts +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -0
- 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/account-sdk-node@1.45.1-beta.
|
|
20
|
+
npm install @emilgroup/account-sdk-node@1.45.1-beta.19 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/account-sdk-node@1.45.1-beta.
|
|
24
|
+
yarn add @emilgroup/account-sdk-node@1.45.1-beta.19
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `AccountsApi`.
|
package/api/accounts-api.ts
CHANGED
|
@@ -71,8 +71,10 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
71
71
|
// http bearer authentication required
|
|
72
72
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
73
73
|
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
75
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
76
|
+
if (authorizationValue) {
|
|
77
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
76
78
|
}
|
|
77
79
|
|
|
78
80
|
|
|
@@ -119,8 +121,10 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
119
121
|
// http bearer authentication required
|
|
120
122
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
121
123
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
125
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
126
|
+
if (authorizationValue) {
|
|
127
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
124
128
|
}
|
|
125
129
|
|
|
126
130
|
|
|
@@ -169,8 +173,10 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
169
173
|
localVarQueryParameter['expand'] = expand;
|
|
170
174
|
}
|
|
171
175
|
|
|
172
|
-
|
|
173
|
-
|
|
176
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
177
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
178
|
+
if (authorizationValue) {
|
|
179
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
174
180
|
}
|
|
175
181
|
|
|
176
182
|
|
|
@@ -219,8 +225,10 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
219
225
|
localVarQueryParameter['expand'] = expand;
|
|
220
226
|
}
|
|
221
227
|
|
|
222
|
-
|
|
223
|
-
|
|
228
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
229
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
230
|
+
if (authorizationValue) {
|
|
231
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
224
232
|
}
|
|
225
233
|
|
|
226
234
|
|
|
@@ -295,8 +303,10 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
295
303
|
localVarQueryParameter['filters'] = filters;
|
|
296
304
|
}
|
|
297
305
|
|
|
298
|
-
|
|
299
|
-
|
|
306
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
307
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
308
|
+
if (authorizationValue) {
|
|
309
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
300
310
|
}
|
|
301
311
|
|
|
302
312
|
|
|
@@ -343,8 +353,10 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
343
353
|
// http bearer authentication required
|
|
344
354
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
345
355
|
|
|
346
|
-
|
|
347
|
-
|
|
356
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
357
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
358
|
+
if (authorizationValue) {
|
|
359
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
348
360
|
}
|
|
349
361
|
|
|
350
362
|
|
package/common.ts
CHANGED
|
@@ -131,9 +131,10 @@ export const toPathString = function (url: URL) {
|
|
|
131
131
|
* @export
|
|
132
132
|
*/
|
|
133
133
|
export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {
|
|
134
|
-
|
|
134
|
+
// Typed by hand: since axios 1.20, request() returns an internal axios type that SDK declarations cannot name.
|
|
135
|
+
return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH): Promise<R> => {
|
|
135
136
|
const axiosRequestArgs = {...axiosArgs.options, url: (configuration?.basePath || basePath) + axiosArgs.url};
|
|
136
|
-
return axios.request<T, R>(axiosRequestArgs)
|
|
137
|
+
return axios.request<T, R>(axiosRequestArgs) as Promise<R>;
|
|
137
138
|
};
|
|
138
139
|
}
|
|
139
140
|
|
|
@@ -408,7 +408,7 @@ export declare class AccountsApi extends BaseAPI {
|
|
|
408
408
|
* @throws {RequiredError}
|
|
409
409
|
* @memberof AccountsApi
|
|
410
410
|
*/
|
|
411
|
-
createAccount(requestParameters: AccountsApiCreateAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateAccountResponseClass, any, {}>>;
|
|
411
|
+
createAccount(requestParameters: AccountsApiCreateAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateAccountResponseClass, any, {}, any>>;
|
|
412
412
|
/**
|
|
413
413
|
* Permanently deletes the account. Supply the unique code that was returned when you created the account and this will delete it. **Required Permissions** \"partner-management.partners.delete\"
|
|
414
414
|
* @summary Delete the account
|
|
@@ -417,7 +417,7 @@ export declare class AccountsApi extends BaseAPI {
|
|
|
417
417
|
* @throws {RequiredError}
|
|
418
418
|
* @memberof AccountsApi
|
|
419
419
|
*/
|
|
420
|
-
deleteAccount(requestParameters: AccountsApiDeleteAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
420
|
+
deleteAccount(requestParameters: AccountsApiDeleteAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
|
|
421
421
|
/**
|
|
422
422
|
* Retrieves the details of the account that was previously created. Supply the unique account code that was returned when you created it and Emil Api will return the corresponding account information. **Required Permissions** \"partner-management.partners.view\"
|
|
423
423
|
* @summary Retrieve the account
|
|
@@ -426,7 +426,7 @@ export declare class AccountsApi extends BaseAPI {
|
|
|
426
426
|
* @throws {RequiredError}
|
|
427
427
|
* @memberof AccountsApi
|
|
428
428
|
*/
|
|
429
|
-
getAccount(requestParameters: AccountsApiGetAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetAccountResponseClass, any, {}>>;
|
|
429
|
+
getAccount(requestParameters: AccountsApiGetAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetAccountResponseClass, any, {}, any>>;
|
|
430
430
|
/**
|
|
431
431
|
* Retrieves the details of the account that was previously created. Supply the email that was returned when you created it and Emil Api will return the corresponding account information. Email matching is case-insensitive. **Required Permissions** \"partner-management.partners.view\"
|
|
432
432
|
* @summary Retrieve the account
|
|
@@ -435,7 +435,7 @@ export declare class AccountsApi extends BaseAPI {
|
|
|
435
435
|
* @throws {RequiredError}
|
|
436
436
|
* @memberof AccountsApi
|
|
437
437
|
*/
|
|
438
|
-
getAccountByEmail(requestParameters: AccountsApiGetAccountByEmailRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetAccountResponseClass, any, {}>>;
|
|
438
|
+
getAccountByEmail(requestParameters: AccountsApiGetAccountByEmailRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetAccountResponseClass, any, {}, any>>;
|
|
439
439
|
/**
|
|
440
440
|
* Returns a list of accounts you have previously created. The accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"partner-management.partners.view\"
|
|
441
441
|
* @summary List accounts
|
|
@@ -444,7 +444,7 @@ export declare class AccountsApi extends BaseAPI {
|
|
|
444
444
|
* @throws {RequiredError}
|
|
445
445
|
* @memberof AccountsApi
|
|
446
446
|
*/
|
|
447
|
-
listAccounts(requestParameters?: AccountsApiListAccountsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListAccountsResponseClass, any, {}>>;
|
|
447
|
+
listAccounts(requestParameters?: AccountsApiListAccountsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListAccountsResponseClass, any, {}, any>>;
|
|
448
448
|
/**
|
|
449
449
|
* Updates the specified account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"partner-management.partners.update\"
|
|
450
450
|
* @summary Update the account
|
|
@@ -453,5 +453,5 @@ export declare class AccountsApi extends BaseAPI {
|
|
|
453
453
|
* @throws {RequiredError}
|
|
454
454
|
* @memberof AccountsApi
|
|
455
455
|
*/
|
|
456
|
-
updateAccount(requestParameters: AccountsApiUpdateAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateAccountResponseClass, any, {}>>;
|
|
456
|
+
updateAccount(requestParameters: AccountsApiUpdateAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateAccountResponseClass, any, {}, any>>;
|
|
457
457
|
}
|
package/dist/api/accounts-api.js
CHANGED
|
@@ -107,7 +107,7 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
107
107
|
createAccount: function (createAccountRequestDto, authorization, options) {
|
|
108
108
|
if (options === void 0) { options = {}; }
|
|
109
109
|
return __awaiter(_this, void 0, void 0, function () {
|
|
110
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
110
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
111
111
|
return __generator(this, function (_a) {
|
|
112
112
|
switch (_a.label) {
|
|
113
113
|
case 0:
|
|
@@ -124,13 +124,16 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
124
124
|
localVarQueryParameter = {};
|
|
125
125
|
// authentication bearer required
|
|
126
126
|
// http bearer authentication required
|
|
127
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
127
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
128
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
129
|
+
];
|
|
128
130
|
case 1:
|
|
129
131
|
// authentication bearer required
|
|
130
132
|
// http bearer authentication required
|
|
131
133
|
_a.sent();
|
|
132
|
-
|
|
133
|
-
|
|
134
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
135
|
+
if (authorizationValue) {
|
|
136
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
134
137
|
}
|
|
135
138
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
136
139
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -156,7 +159,7 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
156
159
|
deleteAccount: function (code, authorization, options) {
|
|
157
160
|
if (options === void 0) { options = {}; }
|
|
158
161
|
return __awaiter(_this, void 0, void 0, function () {
|
|
159
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
162
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
160
163
|
return __generator(this, function (_a) {
|
|
161
164
|
switch (_a.label) {
|
|
162
165
|
case 0:
|
|
@@ -174,13 +177,16 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
174
177
|
localVarQueryParameter = {};
|
|
175
178
|
// authentication bearer required
|
|
176
179
|
// http bearer authentication required
|
|
177
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
180
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
181
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
182
|
+
];
|
|
178
183
|
case 1:
|
|
179
184
|
// authentication bearer required
|
|
180
185
|
// http bearer authentication required
|
|
181
186
|
_a.sent();
|
|
182
|
-
|
|
183
|
-
|
|
187
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
188
|
+
if (authorizationValue) {
|
|
189
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
184
190
|
}
|
|
185
191
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
186
192
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -205,7 +211,7 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
205
211
|
getAccount: function (code, authorization, expand, options) {
|
|
206
212
|
if (options === void 0) { options = {}; }
|
|
207
213
|
return __awaiter(_this, void 0, void 0, function () {
|
|
208
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
214
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
209
215
|
return __generator(this, function (_a) {
|
|
210
216
|
switch (_a.label) {
|
|
211
217
|
case 0:
|
|
@@ -231,8 +237,9 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
231
237
|
if (expand !== undefined) {
|
|
232
238
|
localVarQueryParameter['expand'] = expand;
|
|
233
239
|
}
|
|
234
|
-
|
|
235
|
-
|
|
240
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
241
|
+
if (authorizationValue) {
|
|
242
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
236
243
|
}
|
|
237
244
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
238
245
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -257,7 +264,7 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
257
264
|
getAccountByEmail: function (email, authorization, expand, options) {
|
|
258
265
|
if (options === void 0) { options = {}; }
|
|
259
266
|
return __awaiter(_this, void 0, void 0, function () {
|
|
260
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
267
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
261
268
|
return __generator(this, function (_a) {
|
|
262
269
|
switch (_a.label) {
|
|
263
270
|
case 0:
|
|
@@ -283,8 +290,9 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
283
290
|
if (expand !== undefined) {
|
|
284
291
|
localVarQueryParameter['expand'] = expand;
|
|
285
292
|
}
|
|
286
|
-
|
|
287
|
-
|
|
293
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
294
|
+
if (authorizationValue) {
|
|
295
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
288
296
|
}
|
|
289
297
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
290
298
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -314,7 +322,7 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
314
322
|
listAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
315
323
|
if (options === void 0) { options = {}; }
|
|
316
324
|
return __awaiter(_this, void 0, void 0, function () {
|
|
317
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
325
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
318
326
|
return __generator(this, function (_a) {
|
|
319
327
|
switch (_a.label) {
|
|
320
328
|
case 0:
|
|
@@ -355,8 +363,9 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
355
363
|
if (filters !== undefined) {
|
|
356
364
|
localVarQueryParameter['filters'] = filters;
|
|
357
365
|
}
|
|
358
|
-
|
|
359
|
-
|
|
366
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
367
|
+
if (authorizationValue) {
|
|
368
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
360
369
|
}
|
|
361
370
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
362
371
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -381,7 +390,7 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
381
390
|
updateAccount: function (code, updateAccountRequestDto, authorization, options) {
|
|
382
391
|
if (options === void 0) { options = {}; }
|
|
383
392
|
return __awaiter(_this, void 0, void 0, function () {
|
|
384
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
393
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
385
394
|
return __generator(this, function (_a) {
|
|
386
395
|
switch (_a.label) {
|
|
387
396
|
case 0:
|
|
@@ -401,13 +410,16 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
401
410
|
localVarQueryParameter = {};
|
|
402
411
|
// authentication bearer required
|
|
403
412
|
// http bearer authentication required
|
|
404
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
413
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
414
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
415
|
+
];
|
|
405
416
|
case 1:
|
|
406
417
|
// authentication bearer required
|
|
407
418
|
// http bearer authentication required
|
|
408
419
|
_a.sent();
|
|
409
|
-
|
|
410
|
-
|
|
420
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
421
|
+
if (authorizationValue) {
|
|
422
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
411
423
|
}
|
|
412
424
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
413
425
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
package/dist/api/health-api.d.ts
CHANGED
|
@@ -66,5 +66,5 @@ export declare class HealthApi extends BaseAPI {
|
|
|
66
66
|
* @throws {RequiredError}
|
|
67
67
|
* @memberof HealthApi
|
|
68
68
|
*/
|
|
69
|
-
check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any, {}>>;
|
|
69
|
+
check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any, {}, any>>;
|
|
70
70
|
}
|
package/dist/common.d.ts
CHANGED
|
@@ -63,7 +63,7 @@ export declare const toPathString: (url: URL) => string;
|
|
|
63
63
|
*
|
|
64
64
|
* @export
|
|
65
65
|
*/
|
|
66
|
-
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any, {}>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
|
66
|
+
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any, {}, any>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
|
67
67
|
/**
|
|
68
68
|
* EMIL AccountService
|
|
69
69
|
* The EMIL AccountService API description
|
package/dist/common.js
CHANGED
|
@@ -234,6 +234,7 @@ exports.toPathString = toPathString;
|
|
|
234
234
|
* @export
|
|
235
235
|
*/
|
|
236
236
|
var createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
237
|
+
// Typed by hand: since axios 1.20, request() returns an internal axios type that SDK declarations cannot name.
|
|
237
238
|
return function (axios, basePath) {
|
|
238
239
|
if (axios === void 0) { axios = globalAxios; }
|
|
239
240
|
if (basePath === void 0) { basePath = BASE_PATH; }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emilgroup/account-sdk-node",
|
|
3
|
-
"version": "1.45.1-beta.
|
|
3
|
+
"version": "1.45.1-beta.19",
|
|
4
4
|
"description": "OpenAPI client for @emilgroup/account-sdk-node",
|
|
5
5
|
"author": "OpenAPI-Generator Contributors",
|
|
6
6
|
"keywords": [
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"prepare": "npm run build"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"axios": "1.
|
|
21
|
+
"axios": "1.20.0",
|
|
22
22
|
"form-data": "^4.0.0",
|
|
23
23
|
"url": "^0.11.0"
|
|
24
24
|
},
|