@emilgroup/account-sdk-node 1.38.1-beta.5 → 1.39.1-beta.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/accounts-api.ts +115 -0
- package/base.ts +0 -1
- package/dist/api/accounts-api.d.ts +69 -5
- package/dist/api/accounts-api.js +98 -0
- package/dist/api/default-api.d.ts +1 -1
- package/dist/common.d.ts +1 -1
- 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.
|
|
20
|
+
npm install @emilgroup/account-sdk-node@1.39.1-beta.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/account-sdk-node@1.
|
|
24
|
+
yarn add @emilgroup/account-sdk-node@1.39.1-beta.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `AccountsApi`.
|
package/api/accounts-api.ts
CHANGED
|
@@ -175,6 +175,56 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
175
175
|
|
|
176
176
|
|
|
177
177
|
|
|
178
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
179
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
180
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
181
|
+
|
|
182
|
+
return {
|
|
183
|
+
url: toPathString(localVarUrlObj),
|
|
184
|
+
options: localVarRequestOptions,
|
|
185
|
+
};
|
|
186
|
+
},
|
|
187
|
+
/**
|
|
188
|
+
* 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\"
|
|
189
|
+
* @summary Retrieve the account
|
|
190
|
+
* @param {string} email
|
|
191
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
192
|
+
* @param {'policies'} [expand]
|
|
193
|
+
* @param {*} [options] Override http request option.
|
|
194
|
+
* @throws {RequiredError}
|
|
195
|
+
*/
|
|
196
|
+
getAccountByEmail: async (email: string, authorization?: string, expand?: 'policies', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
197
|
+
// verify required parameter 'email' is not null or undefined
|
|
198
|
+
assertParamExists('getAccountByEmail', 'email', email)
|
|
199
|
+
const localVarPath = `/accountservice/v1/accounts/by-email/{email}`
|
|
200
|
+
.replace(`{${"email"}}`, encodeURIComponent(String(email)));
|
|
201
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
202
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
203
|
+
let baseOptions;
|
|
204
|
+
let baseAccessToken;
|
|
205
|
+
if (configuration) {
|
|
206
|
+
baseOptions = configuration.baseOptions;
|
|
207
|
+
baseAccessToken = configuration.accessToken;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
211
|
+
const localVarHeaderParameter = {} as any;
|
|
212
|
+
const localVarQueryParameter = {} as any;
|
|
213
|
+
|
|
214
|
+
// authentication bearer required
|
|
215
|
+
// http bearer authentication required
|
|
216
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
217
|
+
|
|
218
|
+
if (expand !== undefined) {
|
|
219
|
+
localVarQueryParameter['expand'] = expand;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
223
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
|
|
178
228
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
179
229
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
180
230
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -358,6 +408,19 @@ export const AccountsApiFp = function(configuration?: Configuration) {
|
|
|
358
408
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getAccount(code, authorization, expand, options);
|
|
359
409
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
360
410
|
},
|
|
411
|
+
/**
|
|
412
|
+
* 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\"
|
|
413
|
+
* @summary Retrieve the account
|
|
414
|
+
* @param {string} email
|
|
415
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
416
|
+
* @param {'policies'} [expand]
|
|
417
|
+
* @param {*} [options] Override http request option.
|
|
418
|
+
* @throws {RequiredError}
|
|
419
|
+
*/
|
|
420
|
+
async getAccountByEmail(email: string, authorization?: string, expand?: 'policies', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccountResponseClass>> {
|
|
421
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountByEmail(email, authorization, expand, options);
|
|
422
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
423
|
+
},
|
|
361
424
|
/**
|
|
362
425
|
* 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\"
|
|
363
426
|
* @summary List accounts
|
|
@@ -433,6 +496,18 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
|
|
|
433
496
|
getAccount(code: string, authorization?: string, expand?: 'policies', options?: any): AxiosPromise<GetAccountResponseClass> {
|
|
434
497
|
return localVarFp.getAccount(code, authorization, expand, options).then((request) => request(axios, basePath));
|
|
435
498
|
},
|
|
499
|
+
/**
|
|
500
|
+
* 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\"
|
|
501
|
+
* @summary Retrieve the account
|
|
502
|
+
* @param {string} email
|
|
503
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
504
|
+
* @param {'policies'} [expand]
|
|
505
|
+
* @param {*} [options] Override http request option.
|
|
506
|
+
* @throws {RequiredError}
|
|
507
|
+
*/
|
|
508
|
+
getAccountByEmail(email: string, authorization?: string, expand?: 'policies', options?: any): AxiosPromise<GetAccountResponseClass> {
|
|
509
|
+
return localVarFp.getAccountByEmail(email, authorization, expand, options).then((request) => request(axios, basePath));
|
|
510
|
+
},
|
|
436
511
|
/**
|
|
437
512
|
* 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\"
|
|
438
513
|
* @summary List accounts
|
|
@@ -535,6 +610,34 @@ export interface AccountsApiGetAccountRequest {
|
|
|
535
610
|
readonly expand?: 'policies'
|
|
536
611
|
}
|
|
537
612
|
|
|
613
|
+
/**
|
|
614
|
+
* Request parameters for getAccountByEmail operation in AccountsApi.
|
|
615
|
+
* @export
|
|
616
|
+
* @interface AccountsApiGetAccountByEmailRequest
|
|
617
|
+
*/
|
|
618
|
+
export interface AccountsApiGetAccountByEmailRequest {
|
|
619
|
+
/**
|
|
620
|
+
*
|
|
621
|
+
* @type {string}
|
|
622
|
+
* @memberof AccountsApiGetAccountByEmail
|
|
623
|
+
*/
|
|
624
|
+
readonly email: string
|
|
625
|
+
|
|
626
|
+
/**
|
|
627
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
628
|
+
* @type {string}
|
|
629
|
+
* @memberof AccountsApiGetAccountByEmail
|
|
630
|
+
*/
|
|
631
|
+
readonly authorization?: string
|
|
632
|
+
|
|
633
|
+
/**
|
|
634
|
+
*
|
|
635
|
+
* @type {'policies'}
|
|
636
|
+
* @memberof AccountsApiGetAccountByEmail
|
|
637
|
+
*/
|
|
638
|
+
readonly expand?: 'policies'
|
|
639
|
+
}
|
|
640
|
+
|
|
538
641
|
/**
|
|
539
642
|
* Request parameters for listAccounts operation in AccountsApi.
|
|
540
643
|
* @export
|
|
@@ -669,6 +772,18 @@ export class AccountsApi extends BaseAPI {
|
|
|
669
772
|
return AccountsApiFp(this.configuration).getAccount(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
670
773
|
}
|
|
671
774
|
|
|
775
|
+
/**
|
|
776
|
+
* 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\"
|
|
777
|
+
* @summary Retrieve the account
|
|
778
|
+
* @param {AccountsApiGetAccountByEmailRequest} requestParameters Request parameters.
|
|
779
|
+
* @param {*} [options] Override http request option.
|
|
780
|
+
* @throws {RequiredError}
|
|
781
|
+
* @memberof AccountsApi
|
|
782
|
+
*/
|
|
783
|
+
public getAccountByEmail(requestParameters: AccountsApiGetAccountByEmailRequest, options?: AxiosRequestConfig) {
|
|
784
|
+
return AccountsApiFp(this.configuration).getAccountByEmail(requestParameters.email, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
785
|
+
}
|
|
786
|
+
|
|
672
787
|
/**
|
|
673
788
|
* 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\"
|
|
674
789
|
* @summary List accounts
|
package/base.ts
CHANGED
|
@@ -51,6 +51,16 @@ export declare const AccountsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
51
51
|
* @throws {RequiredError}
|
|
52
52
|
*/
|
|
53
53
|
getAccount: (code: string, authorization?: string, expand?: 'policies', options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
54
|
+
/**
|
|
55
|
+
* 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\"
|
|
56
|
+
* @summary Retrieve the account
|
|
57
|
+
* @param {string} email
|
|
58
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
59
|
+
* @param {'policies'} [expand]
|
|
60
|
+
* @param {*} [options] Override http request option.
|
|
61
|
+
* @throws {RequiredError}
|
|
62
|
+
*/
|
|
63
|
+
getAccountByEmail: (email: string, authorization?: string, expand?: 'policies', options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
54
64
|
/**
|
|
55
65
|
* 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\"
|
|
56
66
|
* @summary List accounts
|
|
@@ -110,6 +120,16 @@ export declare const AccountsApiFp: (configuration?: Configuration) => {
|
|
|
110
120
|
* @throws {RequiredError}
|
|
111
121
|
*/
|
|
112
122
|
getAccount(code: string, authorization?: string, expand?: 'policies', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccountResponseClass>>;
|
|
123
|
+
/**
|
|
124
|
+
* 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\"
|
|
125
|
+
* @summary Retrieve the account
|
|
126
|
+
* @param {string} email
|
|
127
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
128
|
+
* @param {'policies'} [expand]
|
|
129
|
+
* @param {*} [options] Override http request option.
|
|
130
|
+
* @throws {RequiredError}
|
|
131
|
+
*/
|
|
132
|
+
getAccountByEmail(email: string, authorization?: string, expand?: 'policies', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccountResponseClass>>;
|
|
113
133
|
/**
|
|
114
134
|
* 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\"
|
|
115
135
|
* @summary List accounts
|
|
@@ -169,6 +189,16 @@ export declare const AccountsApiFactory: (configuration?: Configuration, basePat
|
|
|
169
189
|
* @throws {RequiredError}
|
|
170
190
|
*/
|
|
171
191
|
getAccount(code: string, authorization?: string, expand?: 'policies', options?: any): AxiosPromise<GetAccountResponseClass>;
|
|
192
|
+
/**
|
|
193
|
+
* 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\"
|
|
194
|
+
* @summary Retrieve the account
|
|
195
|
+
* @param {string} email
|
|
196
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
197
|
+
* @param {'policies'} [expand]
|
|
198
|
+
* @param {*} [options] Override http request option.
|
|
199
|
+
* @throws {RequiredError}
|
|
200
|
+
*/
|
|
201
|
+
getAccountByEmail(email: string, authorization?: string, expand?: 'policies', options?: any): AxiosPromise<GetAccountResponseClass>;
|
|
172
202
|
/**
|
|
173
203
|
* 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\"
|
|
174
204
|
* @summary List accounts
|
|
@@ -258,6 +288,31 @@ export interface AccountsApiGetAccountRequest {
|
|
|
258
288
|
*/
|
|
259
289
|
readonly expand?: 'policies';
|
|
260
290
|
}
|
|
291
|
+
/**
|
|
292
|
+
* Request parameters for getAccountByEmail operation in AccountsApi.
|
|
293
|
+
* @export
|
|
294
|
+
* @interface AccountsApiGetAccountByEmailRequest
|
|
295
|
+
*/
|
|
296
|
+
export interface AccountsApiGetAccountByEmailRequest {
|
|
297
|
+
/**
|
|
298
|
+
*
|
|
299
|
+
* @type {string}
|
|
300
|
+
* @memberof AccountsApiGetAccountByEmail
|
|
301
|
+
*/
|
|
302
|
+
readonly email: string;
|
|
303
|
+
/**
|
|
304
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
305
|
+
* @type {string}
|
|
306
|
+
* @memberof AccountsApiGetAccountByEmail
|
|
307
|
+
*/
|
|
308
|
+
readonly authorization?: string;
|
|
309
|
+
/**
|
|
310
|
+
*
|
|
311
|
+
* @type {'policies'}
|
|
312
|
+
* @memberof AccountsApiGetAccountByEmail
|
|
313
|
+
*/
|
|
314
|
+
readonly expand?: 'policies';
|
|
315
|
+
}
|
|
261
316
|
/**
|
|
262
317
|
* Request parameters for listAccounts operation in AccountsApi.
|
|
263
318
|
* @export
|
|
@@ -353,7 +408,7 @@ export declare class AccountsApi extends BaseAPI {
|
|
|
353
408
|
* @throws {RequiredError}
|
|
354
409
|
* @memberof AccountsApi
|
|
355
410
|
*/
|
|
356
|
-
createAccount(requestParameters: AccountsApiCreateAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateAccountResponseClass, any>>;
|
|
411
|
+
createAccount(requestParameters: AccountsApiCreateAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateAccountResponseClass, any, {}>>;
|
|
357
412
|
/**
|
|
358
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\"
|
|
359
414
|
* @summary Delete the account
|
|
@@ -362,7 +417,7 @@ export declare class AccountsApi extends BaseAPI {
|
|
|
362
417
|
* @throws {RequiredError}
|
|
363
418
|
* @memberof AccountsApi
|
|
364
419
|
*/
|
|
365
|
-
deleteAccount(requestParameters: AccountsApiDeleteAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
420
|
+
deleteAccount(requestParameters: AccountsApiDeleteAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
366
421
|
/**
|
|
367
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\"
|
|
368
423
|
* @summary Retrieve the account
|
|
@@ -371,7 +426,16 @@ export declare class AccountsApi extends BaseAPI {
|
|
|
371
426
|
* @throws {RequiredError}
|
|
372
427
|
* @memberof AccountsApi
|
|
373
428
|
*/
|
|
374
|
-
getAccount(requestParameters: AccountsApiGetAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetAccountResponseClass, any>>;
|
|
429
|
+
getAccount(requestParameters: AccountsApiGetAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetAccountResponseClass, any, {}>>;
|
|
430
|
+
/**
|
|
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
|
+
* @summary Retrieve the account
|
|
433
|
+
* @param {AccountsApiGetAccountByEmailRequest} requestParameters Request parameters.
|
|
434
|
+
* @param {*} [options] Override http request option.
|
|
435
|
+
* @throws {RequiredError}
|
|
436
|
+
* @memberof AccountsApi
|
|
437
|
+
*/
|
|
438
|
+
getAccountByEmail(requestParameters: AccountsApiGetAccountByEmailRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetAccountResponseClass, any, {}>>;
|
|
375
439
|
/**
|
|
376
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\"
|
|
377
441
|
* @summary List accounts
|
|
@@ -380,7 +444,7 @@ export declare class AccountsApi extends BaseAPI {
|
|
|
380
444
|
* @throws {RequiredError}
|
|
381
445
|
* @memberof AccountsApi
|
|
382
446
|
*/
|
|
383
|
-
listAccounts(requestParameters?: AccountsApiListAccountsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListAccountsResponseClass, any>>;
|
|
447
|
+
listAccounts(requestParameters?: AccountsApiListAccountsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListAccountsResponseClass, any, {}>>;
|
|
384
448
|
/**
|
|
385
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\"
|
|
386
450
|
* @summary Update the account
|
|
@@ -389,5 +453,5 @@ export declare class AccountsApi extends BaseAPI {
|
|
|
389
453
|
* @throws {RequiredError}
|
|
390
454
|
* @memberof AccountsApi
|
|
391
455
|
*/
|
|
392
|
-
updateAccount(requestParameters: AccountsApiUpdateAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateAccountResponseClass, any>>;
|
|
456
|
+
updateAccount(requestParameters: AccountsApiUpdateAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateAccountResponseClass, any, {}>>;
|
|
393
457
|
}
|
package/dist/api/accounts-api.js
CHANGED
|
@@ -245,6 +245,58 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
245
245
|
});
|
|
246
246
|
});
|
|
247
247
|
},
|
|
248
|
+
/**
|
|
249
|
+
* 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\"
|
|
250
|
+
* @summary Retrieve the account
|
|
251
|
+
* @param {string} email
|
|
252
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
253
|
+
* @param {'policies'} [expand]
|
|
254
|
+
* @param {*} [options] Override http request option.
|
|
255
|
+
* @throws {RequiredError}
|
|
256
|
+
*/
|
|
257
|
+
getAccountByEmail: function (email, authorization, expand, options) {
|
|
258
|
+
if (options === void 0) { options = {}; }
|
|
259
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
260
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
261
|
+
return __generator(this, function (_a) {
|
|
262
|
+
switch (_a.label) {
|
|
263
|
+
case 0:
|
|
264
|
+
// verify required parameter 'email' is not null or undefined
|
|
265
|
+
(0, common_1.assertParamExists)('getAccountByEmail', 'email', email);
|
|
266
|
+
localVarPath = "/accountservice/v1/accounts/by-email/{email}"
|
|
267
|
+
.replace("{".concat("email", "}"), encodeURIComponent(String(email)));
|
|
268
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
269
|
+
if (configuration) {
|
|
270
|
+
baseOptions = configuration.baseOptions;
|
|
271
|
+
baseAccessToken = configuration.accessToken;
|
|
272
|
+
}
|
|
273
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
274
|
+
localVarHeaderParameter = {};
|
|
275
|
+
localVarQueryParameter = {};
|
|
276
|
+
// authentication bearer required
|
|
277
|
+
// http bearer authentication required
|
|
278
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
279
|
+
case 1:
|
|
280
|
+
// authentication bearer required
|
|
281
|
+
// http bearer authentication required
|
|
282
|
+
_a.sent();
|
|
283
|
+
if (expand !== undefined) {
|
|
284
|
+
localVarQueryParameter['expand'] = expand;
|
|
285
|
+
}
|
|
286
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
287
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
288
|
+
}
|
|
289
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
290
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
291
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
292
|
+
return [2 /*return*/, {
|
|
293
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
294
|
+
options: localVarRequestOptions,
|
|
295
|
+
}];
|
|
296
|
+
}
|
|
297
|
+
});
|
|
298
|
+
});
|
|
299
|
+
},
|
|
248
300
|
/**
|
|
249
301
|
* 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\"
|
|
250
302
|
* @summary List accounts
|
|
@@ -444,6 +496,28 @@ var AccountsApiFp = function (configuration) {
|
|
|
444
496
|
});
|
|
445
497
|
});
|
|
446
498
|
},
|
|
499
|
+
/**
|
|
500
|
+
* 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\"
|
|
501
|
+
* @summary Retrieve the account
|
|
502
|
+
* @param {string} email
|
|
503
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
504
|
+
* @param {'policies'} [expand]
|
|
505
|
+
* @param {*} [options] Override http request option.
|
|
506
|
+
* @throws {RequiredError}
|
|
507
|
+
*/
|
|
508
|
+
getAccountByEmail: function (email, authorization, expand, options) {
|
|
509
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
510
|
+
var localVarAxiosArgs;
|
|
511
|
+
return __generator(this, function (_a) {
|
|
512
|
+
switch (_a.label) {
|
|
513
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAccountByEmail(email, authorization, expand, options)];
|
|
514
|
+
case 1:
|
|
515
|
+
localVarAxiosArgs = _a.sent();
|
|
516
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
517
|
+
}
|
|
518
|
+
});
|
|
519
|
+
});
|
|
520
|
+
},
|
|
447
521
|
/**
|
|
448
522
|
* 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\"
|
|
449
523
|
* @summary List accounts
|
|
@@ -537,6 +611,18 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
537
611
|
getAccount: function (code, authorization, expand, options) {
|
|
538
612
|
return localVarFp.getAccount(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
|
|
539
613
|
},
|
|
614
|
+
/**
|
|
615
|
+
* 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\"
|
|
616
|
+
* @summary Retrieve the account
|
|
617
|
+
* @param {string} email
|
|
618
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
619
|
+
* @param {'policies'} [expand]
|
|
620
|
+
* @param {*} [options] Override http request option.
|
|
621
|
+
* @throws {RequiredError}
|
|
622
|
+
*/
|
|
623
|
+
getAccountByEmail: function (email, authorization, expand, options) {
|
|
624
|
+
return localVarFp.getAccountByEmail(email, authorization, expand, options).then(function (request) { return request(axios, basePath); });
|
|
625
|
+
},
|
|
540
626
|
/**
|
|
541
627
|
* 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\"
|
|
542
628
|
* @summary List accounts
|
|
@@ -616,6 +702,18 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
616
702
|
var _this = this;
|
|
617
703
|
return (0, exports.AccountsApiFp)(this.configuration).getAccount(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
618
704
|
};
|
|
705
|
+
/**
|
|
706
|
+
* 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\"
|
|
707
|
+
* @summary Retrieve the account
|
|
708
|
+
* @param {AccountsApiGetAccountByEmailRequest} requestParameters Request parameters.
|
|
709
|
+
* @param {*} [options] Override http request option.
|
|
710
|
+
* @throws {RequiredError}
|
|
711
|
+
* @memberof AccountsApi
|
|
712
|
+
*/
|
|
713
|
+
AccountsApi.prototype.getAccountByEmail = function (requestParameters, options) {
|
|
714
|
+
var _this = this;
|
|
715
|
+
return (0, exports.AccountsApiFp)(this.configuration).getAccountByEmail(requestParameters.email, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
716
|
+
};
|
|
619
717
|
/**
|
|
620
718
|
* 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\"
|
|
621
719
|
* @summary List accounts
|
|
@@ -66,5 +66,5 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
66
66
|
* @throws {RequiredError}
|
|
67
67
|
* @memberof DefaultApi
|
|
68
68
|
*/
|
|
69
|
-
check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any>>;
|
|
69
|
+
check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, 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, {}>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
|
67
67
|
/**
|
|
68
68
|
* EMIL AccountService
|
|
69
69
|
* The EMIL AccountService API description
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emilgroup/account-sdk-node",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.39.1-beta.0",
|
|
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": "^
|
|
21
|
+
"axios": "^1.12.0",
|
|
22
22
|
"form-data": "^4.0.0",
|
|
23
23
|
"url": "^0.11.0"
|
|
24
24
|
},
|