@emilgroup/account-sdk-node 1.3.4 → 1.4.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/.openapi-generator/FILES +1 -0
- package/README.md +2 -2
- package/api/accounts-api.ts +50 -36
- package/base.ts +3 -3
- package/dist/api/accounts-api.d.ts +42 -33
- package/dist/api/accounts-api.js +27 -21
- package/dist/base.d.ts +1 -1
- package/dist/base.js +3 -3
- package/dist/models/account-class.d.ts +6 -5
- package/dist/models/create-account-request-dto.d.ts +1 -1
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/models/policy-class.d.ts +30 -0
- package/dist/models/policy-class.js +15 -0
- package/dist/models/update-account-request-dto.d.ts +16 -16
- package/models/account-class.ts +6 -5
- package/models/create-account-request-dto.ts +1 -1
- package/models/index.ts +1 -0
- package/models/policy-class.ts +36 -0
- package/models/update-account-request-dto.ts +16 -16
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -16,6 +16,7 @@ models/delete-request-dto.ts
|
|
|
16
16
|
models/get-account-response-class.ts
|
|
17
17
|
models/index.ts
|
|
18
18
|
models/list-accounts-response-class.ts
|
|
19
|
+
models/policy-class.ts
|
|
19
20
|
models/register-policy-request-dto.ts
|
|
20
21
|
models/update-account-request-dto.ts
|
|
21
22
|
models/update-account-response-class.ts
|
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.4.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.4.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `AccountsApi`.
|
package/api/accounts-api.ts
CHANGED
|
@@ -188,15 +188,16 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
188
188
|
* 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.
|
|
189
189
|
* @summary List accounts
|
|
190
190
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
191
|
-
* @param {
|
|
192
|
-
* @param {
|
|
193
|
-
* @param {
|
|
194
|
-
* @param {
|
|
195
|
-
* @param {
|
|
191
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
192
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
193
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
194
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
195
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
196
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
196
197
|
* @param {*} [options] Override http request option.
|
|
197
198
|
* @throws {RequiredError}
|
|
198
199
|
*/
|
|
199
|
-
listAccounts: async (authorization?: string, pageSize?:
|
|
200
|
+
listAccounts: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
200
201
|
const localVarPath = `/accountservice/v1/accounts`;
|
|
201
202
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
202
203
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -227,6 +228,10 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
227
228
|
localVarQueryParameter['filter'] = filter;
|
|
228
229
|
}
|
|
229
230
|
|
|
231
|
+
if (search !== undefined) {
|
|
232
|
+
localVarQueryParameter['search'] = search;
|
|
233
|
+
}
|
|
234
|
+
|
|
230
235
|
if (order !== undefined) {
|
|
231
236
|
localVarQueryParameter['order'] = order;
|
|
232
237
|
}
|
|
@@ -352,16 +357,17 @@ export const AccountsApiFp = function(configuration?: Configuration) {
|
|
|
352
357
|
* 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.
|
|
353
358
|
* @summary List accounts
|
|
354
359
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
355
|
-
* @param {
|
|
356
|
-
* @param {
|
|
357
|
-
* @param {
|
|
358
|
-
* @param {
|
|
359
|
-
* @param {
|
|
360
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
361
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
362
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
363
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
364
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
365
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
360
366
|
* @param {*} [options] Override http request option.
|
|
361
367
|
* @throws {RequiredError}
|
|
362
368
|
*/
|
|
363
|
-
async listAccounts(authorization?: string, pageSize?:
|
|
364
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listAccounts(authorization, pageSize, pageToken, filter, order, expand, options);
|
|
369
|
+
async listAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListAccountsResponseClass>> {
|
|
370
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listAccounts(authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
365
371
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
366
372
|
},
|
|
367
373
|
/**
|
|
@@ -425,16 +431,17 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
|
|
|
425
431
|
* 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.
|
|
426
432
|
* @summary List accounts
|
|
427
433
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
428
|
-
* @param {
|
|
429
|
-
* @param {
|
|
430
|
-
* @param {
|
|
431
|
-
* @param {
|
|
432
|
-
* @param {
|
|
434
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
435
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
436
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
437
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
438
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
439
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
433
440
|
* @param {*} [options] Override http request option.
|
|
434
441
|
* @throws {RequiredError}
|
|
435
442
|
*/
|
|
436
|
-
listAccounts(authorization?: string, pageSize?:
|
|
437
|
-
return localVarFp.listAccounts(authorization, pageSize, pageToken, filter, order, expand, options).then((request) => request(axios, basePath));
|
|
443
|
+
listAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListAccountsResponseClass> {
|
|
444
|
+
return localVarFp.listAccounts(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
438
445
|
},
|
|
439
446
|
/**
|
|
440
447
|
* Updates the specified account by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
@@ -535,39 +542,46 @@ export interface AccountsApiListAccountsRequest {
|
|
|
535
542
|
readonly authorization?: string
|
|
536
543
|
|
|
537
544
|
/**
|
|
538
|
-
* A limit on the number of objects to be returned.
|
|
539
|
-
* @type {
|
|
545
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
546
|
+
* @type {any}
|
|
540
547
|
* @memberof AccountsApiListAccounts
|
|
541
548
|
*/
|
|
542
|
-
readonly pageSize?:
|
|
549
|
+
readonly pageSize?: any
|
|
543
550
|
|
|
544
551
|
/**
|
|
545
|
-
* A cursor for use in pagination.
|
|
546
|
-
* @type {
|
|
552
|
+
* A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
553
|
+
* @type {any}
|
|
547
554
|
* @memberof AccountsApiListAccounts
|
|
548
555
|
*/
|
|
549
|
-
readonly pageToken?:
|
|
556
|
+
readonly pageToken?: any
|
|
550
557
|
|
|
551
558
|
/**
|
|
552
|
-
* Filter the response by one or multiple fields.
|
|
553
|
-
* @type {
|
|
559
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
560
|
+
* @type {any}
|
|
554
561
|
* @memberof AccountsApiListAccounts
|
|
555
562
|
*/
|
|
556
|
-
readonly filter?:
|
|
563
|
+
readonly filter?: any
|
|
557
564
|
|
|
558
565
|
/**
|
|
559
|
-
*
|
|
560
|
-
* @type {
|
|
566
|
+
* Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
567
|
+
* @type {any}
|
|
561
568
|
* @memberof AccountsApiListAccounts
|
|
562
569
|
*/
|
|
563
|
-
readonly
|
|
570
|
+
readonly search?: any
|
|
564
571
|
|
|
565
572
|
/**
|
|
566
|
-
*
|
|
567
|
-
* @type {
|
|
573
|
+
* The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
574
|
+
* @type {any}
|
|
568
575
|
* @memberof AccountsApiListAccounts
|
|
569
576
|
*/
|
|
570
|
-
readonly
|
|
577
|
+
readonly order?: any
|
|
578
|
+
|
|
579
|
+
/**
|
|
580
|
+
* Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
581
|
+
* @type {any}
|
|
582
|
+
* @memberof AccountsApiListAccounts
|
|
583
|
+
*/
|
|
584
|
+
readonly expand?: any
|
|
571
585
|
}
|
|
572
586
|
|
|
573
587
|
/**
|
|
@@ -650,7 +664,7 @@ export class AccountsApi extends BaseAPI {
|
|
|
650
664
|
* @memberof AccountsApi
|
|
651
665
|
*/
|
|
652
666
|
public listAccounts(requestParameters: AccountsApiListAccountsRequest = {}, options?: AxiosRequestConfig) {
|
|
653
|
-
return AccountsApiFp(this.configuration).listAccounts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
667
|
+
return AccountsApiFp(this.configuration).listAccounts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
654
668
|
}
|
|
655
669
|
|
|
656
670
|
/**
|
package/base.ts
CHANGED
|
@@ -170,7 +170,7 @@ export class BaseAPI {
|
|
|
170
170
|
this.configuration.refreshToken = refreshToken;
|
|
171
171
|
}
|
|
172
172
|
|
|
173
|
-
async
|
|
173
|
+
async refreshTokenInternal(): Promise<string> {
|
|
174
174
|
const { username, refreshToken } = this.configuration;
|
|
175
175
|
|
|
176
176
|
|
|
@@ -220,7 +220,7 @@ export class BaseAPI {
|
|
|
220
220
|
if (err.response.status === 401 && !originalConfig._retry) {
|
|
221
221
|
originalConfig._retry = true;
|
|
222
222
|
try {
|
|
223
|
-
const tokenString = await this.
|
|
223
|
+
const tokenString = await this.refreshTokenInternal();
|
|
224
224
|
const accessToken = `Bearer ${tokenString}`;
|
|
225
225
|
|
|
226
226
|
originalConfig.headers['Authorization'] = `Bearer ${accessToken}`
|
|
@@ -245,7 +245,7 @@ export class BaseAPI {
|
|
|
245
245
|
){
|
|
246
246
|
_retry_count++;
|
|
247
247
|
try {
|
|
248
|
-
const tokenString = await this.
|
|
248
|
+
const tokenString = await this.refreshTokenInternal();
|
|
249
249
|
const accessToken = `Bearer ${tokenString}`;
|
|
250
250
|
|
|
251
251
|
_retry = true;
|
|
@@ -55,15 +55,16 @@ export declare const AccountsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
55
55
|
* 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.
|
|
56
56
|
* @summary List accounts
|
|
57
57
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
58
|
-
* @param {
|
|
59
|
-
* @param {
|
|
60
|
-
* @param {
|
|
61
|
-
* @param {
|
|
62
|
-
* @param {
|
|
58
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
59
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
60
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
61
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
62
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
63
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
63
64
|
* @param {*} [options] Override http request option.
|
|
64
65
|
* @throws {RequiredError}
|
|
65
66
|
*/
|
|
66
|
-
listAccounts: (authorization?: string, pageSize?:
|
|
67
|
+
listAccounts: (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
67
68
|
/**
|
|
68
69
|
* Updates the specified account by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
69
70
|
* @summary Update the account
|
|
@@ -112,15 +113,16 @@ export declare const AccountsApiFp: (configuration?: Configuration) => {
|
|
|
112
113
|
* 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.
|
|
113
114
|
* @summary List accounts
|
|
114
115
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
115
|
-
* @param {
|
|
116
|
-
* @param {
|
|
117
|
-
* @param {
|
|
118
|
-
* @param {
|
|
119
|
-
* @param {
|
|
116
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
117
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
118
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
119
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
120
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
121
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
120
122
|
* @param {*} [options] Override http request option.
|
|
121
123
|
* @throws {RequiredError}
|
|
122
124
|
*/
|
|
123
|
-
listAccounts(authorization?: string, pageSize?:
|
|
125
|
+
listAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListAccountsResponseClass>>;
|
|
124
126
|
/**
|
|
125
127
|
* Updates the specified account by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
126
128
|
* @summary Update the account
|
|
@@ -169,15 +171,16 @@ export declare const AccountsApiFactory: (configuration?: Configuration, basePat
|
|
|
169
171
|
* 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.
|
|
170
172
|
* @summary List accounts
|
|
171
173
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
172
|
-
* @param {
|
|
173
|
-
* @param {
|
|
174
|
-
* @param {
|
|
175
|
-
* @param {
|
|
176
|
-
* @param {
|
|
174
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
175
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
176
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
177
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
178
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
179
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
177
180
|
* @param {*} [options] Override http request option.
|
|
178
181
|
* @throws {RequiredError}
|
|
179
182
|
*/
|
|
180
|
-
listAccounts(authorization?: string, pageSize?:
|
|
183
|
+
listAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListAccountsResponseClass>;
|
|
181
184
|
/**
|
|
182
185
|
* Updates the specified account by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
183
186
|
* @summary Update the account
|
|
@@ -265,35 +268,41 @@ export interface AccountsApiListAccountsRequest {
|
|
|
265
268
|
*/
|
|
266
269
|
readonly authorization?: string;
|
|
267
270
|
/**
|
|
268
|
-
* A limit on the number of objects to be returned.
|
|
269
|
-
* @type {
|
|
271
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
272
|
+
* @type {any}
|
|
270
273
|
* @memberof AccountsApiListAccounts
|
|
271
274
|
*/
|
|
272
|
-
readonly pageSize?:
|
|
275
|
+
readonly pageSize?: any;
|
|
273
276
|
/**
|
|
274
|
-
* A cursor for use in pagination.
|
|
275
|
-
* @type {
|
|
277
|
+
* A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
278
|
+
* @type {any}
|
|
276
279
|
* @memberof AccountsApiListAccounts
|
|
277
280
|
*/
|
|
278
|
-
readonly pageToken?:
|
|
281
|
+
readonly pageToken?: any;
|
|
279
282
|
/**
|
|
280
|
-
* Filter the response by one or multiple fields.
|
|
281
|
-
* @type {
|
|
283
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
284
|
+
* @type {any}
|
|
282
285
|
* @memberof AccountsApiListAccounts
|
|
283
286
|
*/
|
|
284
|
-
readonly filter?:
|
|
287
|
+
readonly filter?: any;
|
|
285
288
|
/**
|
|
286
|
-
*
|
|
287
|
-
* @type {
|
|
289
|
+
* Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
290
|
+
* @type {any}
|
|
288
291
|
* @memberof AccountsApiListAccounts
|
|
289
292
|
*/
|
|
290
|
-
readonly
|
|
293
|
+
readonly search?: any;
|
|
291
294
|
/**
|
|
292
|
-
*
|
|
293
|
-
* @type {
|
|
295
|
+
* The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
296
|
+
* @type {any}
|
|
294
297
|
* @memberof AccountsApiListAccounts
|
|
295
298
|
*/
|
|
296
|
-
readonly
|
|
299
|
+
readonly order?: any;
|
|
300
|
+
/**
|
|
301
|
+
* Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
302
|
+
* @type {any}
|
|
303
|
+
* @memberof AccountsApiListAccounts
|
|
304
|
+
*/
|
|
305
|
+
readonly expand?: any;
|
|
297
306
|
}
|
|
298
307
|
/**
|
|
299
308
|
* Request parameters for updateAccount operation in AccountsApi.
|
package/dist/api/accounts-api.js
CHANGED
|
@@ -249,15 +249,16 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
249
249
|
* 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.
|
|
250
250
|
* @summary List accounts
|
|
251
251
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
252
|
-
* @param {
|
|
253
|
-
* @param {
|
|
254
|
-
* @param {
|
|
255
|
-
* @param {
|
|
256
|
-
* @param {
|
|
252
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
253
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
254
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
255
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
256
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
257
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
257
258
|
* @param {*} [options] Override http request option.
|
|
258
259
|
* @throws {RequiredError}
|
|
259
260
|
*/
|
|
260
|
-
listAccounts: function (authorization, pageSize, pageToken, filter, order, expand, options) {
|
|
261
|
+
listAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
261
262
|
if (options === void 0) { options = {}; }
|
|
262
263
|
return __awaiter(_this, void 0, void 0, function () {
|
|
263
264
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -289,6 +290,9 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
289
290
|
if (filter !== undefined) {
|
|
290
291
|
localVarQueryParameter['filter'] = filter;
|
|
291
292
|
}
|
|
293
|
+
if (search !== undefined) {
|
|
294
|
+
localVarQueryParameter['search'] = search;
|
|
295
|
+
}
|
|
292
296
|
if (order !== undefined) {
|
|
293
297
|
localVarQueryParameter['order'] = order;
|
|
294
298
|
}
|
|
@@ -440,20 +444,21 @@ var AccountsApiFp = function (configuration) {
|
|
|
440
444
|
* 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.
|
|
441
445
|
* @summary List accounts
|
|
442
446
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
443
|
-
* @param {
|
|
444
|
-
* @param {
|
|
445
|
-
* @param {
|
|
446
|
-
* @param {
|
|
447
|
-
* @param {
|
|
447
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
448
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
449
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
450
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
451
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
452
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
448
453
|
* @param {*} [options] Override http request option.
|
|
449
454
|
* @throws {RequiredError}
|
|
450
455
|
*/
|
|
451
|
-
listAccounts: function (authorization, pageSize, pageToken, filter, order, expand, options) {
|
|
456
|
+
listAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
452
457
|
return __awaiter(this, void 0, void 0, function () {
|
|
453
458
|
var localVarAxiosArgs;
|
|
454
459
|
return __generator(this, function (_a) {
|
|
455
460
|
switch (_a.label) {
|
|
456
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listAccounts(authorization, pageSize, pageToken, filter, order, expand, options)];
|
|
461
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listAccounts(authorization, pageSize, pageToken, filter, search, order, expand, options)];
|
|
457
462
|
case 1:
|
|
458
463
|
localVarAxiosArgs = _a.sent();
|
|
459
464
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -531,16 +536,17 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
531
536
|
* 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.
|
|
532
537
|
* @summary List accounts
|
|
533
538
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
534
|
-
* @param {
|
|
535
|
-
* @param {
|
|
536
|
-
* @param {
|
|
537
|
-
* @param {
|
|
538
|
-
* @param {
|
|
539
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
540
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
541
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
542
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
543
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
544
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
539
545
|
* @param {*} [options] Override http request option.
|
|
540
546
|
* @throws {RequiredError}
|
|
541
547
|
*/
|
|
542
|
-
listAccounts: function (authorization, pageSize, pageToken, filter, order, expand, options) {
|
|
543
|
-
return localVarFp.listAccounts(authorization, pageSize, pageToken, filter, order, expand, options).then(function (request) { return request(axios, basePath); });
|
|
548
|
+
listAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
549
|
+
return localVarFp.listAccounts(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
|
|
544
550
|
},
|
|
545
551
|
/**
|
|
546
552
|
* Updates the specified account by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
@@ -615,7 +621,7 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
615
621
|
AccountsApi.prototype.listAccounts = function (requestParameters, options) {
|
|
616
622
|
var _this = this;
|
|
617
623
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
618
|
-
return (0, exports.AccountsApiFp)(this.configuration).listAccounts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
624
|
+
return (0, exports.AccountsApiFp)(this.configuration).listAccounts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
619
625
|
};
|
|
620
626
|
/**
|
|
621
627
|
* Updates the specified account by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
package/dist/base.d.ts
CHANGED
|
@@ -59,7 +59,7 @@ export declare class BaseAPI {
|
|
|
59
59
|
private readEnvVariables;
|
|
60
60
|
selectEnvironment(env: Environment): void;
|
|
61
61
|
authorize(username: string, password: string): Promise<void>;
|
|
62
|
-
|
|
62
|
+
refreshTokenInternal(): Promise<string>;
|
|
63
63
|
private extractRefreshToken;
|
|
64
64
|
getConfiguration(): Configuration;
|
|
65
65
|
private attachInterceptor;
|
package/dist/base.js
CHANGED
|
@@ -270,7 +270,7 @@ var BaseAPI = /** @class */ (function () {
|
|
|
270
270
|
});
|
|
271
271
|
});
|
|
272
272
|
};
|
|
273
|
-
BaseAPI.prototype.
|
|
273
|
+
BaseAPI.prototype.refreshTokenInternal = function () {
|
|
274
274
|
return __awaiter(this, void 0, void 0, function () {
|
|
275
275
|
var _a, username, refreshToken, options, accessToken;
|
|
276
276
|
return __generator(this, function (_b) {
|
|
@@ -324,7 +324,7 @@ var BaseAPI = /** @class */ (function () {
|
|
|
324
324
|
_a.label = 1;
|
|
325
325
|
case 1:
|
|
326
326
|
_a.trys.push([1, 3, , 4]);
|
|
327
|
-
return [4 /*yield*/, this.
|
|
327
|
+
return [4 /*yield*/, this.refreshTokenInternal()];
|
|
328
328
|
case 2:
|
|
329
329
|
tokenString = _a.sent();
|
|
330
330
|
accessToken = "Bearer ".concat(tokenString);
|
|
@@ -351,7 +351,7 @@ var BaseAPI = /** @class */ (function () {
|
|
|
351
351
|
_a.label = 6;
|
|
352
352
|
case 6:
|
|
353
353
|
_a.trys.push([6, 8, , 9]);
|
|
354
|
-
return [4 /*yield*/, this.
|
|
354
|
+
return [4 /*yield*/, this.refreshTokenInternal()];
|
|
355
355
|
case 7:
|
|
356
356
|
tokenString = _a.sent();
|
|
357
357
|
accessToken = "Bearer ".concat(tokenString);
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { PolicyClass } from './policy-class';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -38,7 +39,7 @@ export interface AccountClass {
|
|
|
38
39
|
* @type {string}
|
|
39
40
|
* @memberof AccountClass
|
|
40
41
|
*/
|
|
41
|
-
'title'
|
|
42
|
+
'title'?: AccountClassTitleEnum;
|
|
42
43
|
/**
|
|
43
44
|
* The account\'s first name.
|
|
44
45
|
* @type {string}
|
|
@@ -131,22 +132,22 @@ export interface AccountClass {
|
|
|
131
132
|
'updatedAt': string;
|
|
132
133
|
/**
|
|
133
134
|
* Policies linked to the account.
|
|
134
|
-
* @type {Array<
|
|
135
|
+
* @type {Array<PolicyClass>}
|
|
135
136
|
* @memberof AccountClass
|
|
136
137
|
*/
|
|
137
|
-
'policies': Array<
|
|
138
|
+
'policies': Array<PolicyClass>;
|
|
138
139
|
/**
|
|
139
140
|
* Optional field contain extra information
|
|
140
141
|
* @type {object}
|
|
141
142
|
* @memberof AccountClass
|
|
142
143
|
*/
|
|
143
|
-
'metadata'
|
|
144
|
+
'metadata'?: object;
|
|
144
145
|
/**
|
|
145
146
|
* Optional field contain custom fields
|
|
146
147
|
* @type {object}
|
|
147
148
|
* @memberof AccountClass
|
|
148
149
|
*/
|
|
149
|
-
'customFields'
|
|
150
|
+
'customFields'?: object;
|
|
150
151
|
}
|
|
151
152
|
export declare const AccountClassTitleEnum: {
|
|
152
153
|
readonly Empty: "";
|
|
@@ -34,7 +34,7 @@ export interface CreateAccountRequestDto {
|
|
|
34
34
|
*/
|
|
35
35
|
'lastName': string;
|
|
36
36
|
/**
|
|
37
|
-
* The account\'s holder email address. It is displayed alongside the account in your dashboard
|
|
37
|
+
* The account\'s holder email address. It is displayed alongside the account in your dashboard and can be useful for searching and tracking.
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof CreateAccountRequestDto
|
|
40
40
|
*/
|
package/dist/models/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export * from './create-account-response-class';
|
|
|
4
4
|
export * from './delete-request-dto';
|
|
5
5
|
export * from './get-account-response-class';
|
|
6
6
|
export * from './list-accounts-response-class';
|
|
7
|
+
export * from './policy-class';
|
|
7
8
|
export * from './register-policy-request-dto';
|
|
8
9
|
export * from './update-account-request-dto';
|
|
9
10
|
export * from './update-account-response-class';
|
package/dist/models/index.js
CHANGED
|
@@ -20,6 +20,7 @@ __exportStar(require("./create-account-response-class"), exports);
|
|
|
20
20
|
__exportStar(require("./delete-request-dto"), exports);
|
|
21
21
|
__exportStar(require("./get-account-response-class"), exports);
|
|
22
22
|
__exportStar(require("./list-accounts-response-class"), exports);
|
|
23
|
+
__exportStar(require("./policy-class"), exports);
|
|
23
24
|
__exportStar(require("./register-policy-request-dto"), exports);
|
|
24
25
|
__exportStar(require("./update-account-request-dto"), exports);
|
|
25
26
|
__exportStar(require("./update-account-response-class"), exports);
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL AccountService
|
|
3
|
+
* The EMIL AccountService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PolicyClass
|
|
16
|
+
*/
|
|
17
|
+
export interface PolicyClass {
|
|
18
|
+
/**
|
|
19
|
+
* Unique identifier for a policy.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PolicyClass
|
|
22
|
+
*/
|
|
23
|
+
'policyCode': string;
|
|
24
|
+
/**
|
|
25
|
+
* Number used on official documents.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PolicyClass
|
|
28
|
+
*/
|
|
29
|
+
'policyNumber': string;
|
|
30
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL AccountService
|
|
6
|
+
* The EMIL AccountService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -22,49 +22,49 @@ export interface UpdateAccountRequestDto {
|
|
|
22
22
|
*/
|
|
23
23
|
'title'?: UpdateAccountRequestDtoTitleEnum;
|
|
24
24
|
/**
|
|
25
|
-
* The account\'s
|
|
25
|
+
* The account holder\'s first name.
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof UpdateAccountRequestDto
|
|
28
28
|
*/
|
|
29
29
|
'firstName': string;
|
|
30
30
|
/**
|
|
31
|
-
* The account\'s
|
|
31
|
+
* The account holder\'s last name.
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof UpdateAccountRequestDto
|
|
34
34
|
*/
|
|
35
35
|
'lastName': string;
|
|
36
36
|
/**
|
|
37
|
-
* The account\'s
|
|
37
|
+
* The account holder\'s email address. It is displayed alongside the account in your dashboard and can be useful for searching and tracking.
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof UpdateAccountRequestDto
|
|
40
40
|
*/
|
|
41
41
|
'email': string;
|
|
42
42
|
/**
|
|
43
|
-
* The account\'s
|
|
43
|
+
* The account holder\'s gender.
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof UpdateAccountRequestDto
|
|
46
46
|
*/
|
|
47
47
|
'gender': UpdateAccountRequestDtoGenderEnum;
|
|
48
48
|
/**
|
|
49
|
-
* The account\'s
|
|
49
|
+
* The account holder\'s street name.
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof UpdateAccountRequestDto
|
|
52
52
|
*/
|
|
53
53
|
'street': string;
|
|
54
54
|
/**
|
|
55
|
-
* The account\'s
|
|
55
|
+
* The account holder\'s ZIP or postal code.
|
|
56
56
|
* @type {string}
|
|
57
57
|
* @memberof UpdateAccountRequestDto
|
|
58
58
|
*/
|
|
59
59
|
'zipCode': string;
|
|
60
60
|
/**
|
|
61
|
-
* The account\'s
|
|
61
|
+
* The account holder\'s city, district, suburb, town, or village.
|
|
62
62
|
* @type {string}
|
|
63
63
|
* @memberof UpdateAccountRequestDto
|
|
64
64
|
*/
|
|
65
65
|
'city': string;
|
|
66
66
|
/**
|
|
67
|
-
* The account\'s
|
|
67
|
+
* The account holder\'s house number.
|
|
68
68
|
* @type {string}
|
|
69
69
|
* @memberof UpdateAccountRequestDto
|
|
70
70
|
*/
|
|
@@ -76,19 +76,13 @@ export interface UpdateAccountRequestDto {
|
|
|
76
76
|
*/
|
|
77
77
|
'type'?: UpdateAccountRequestDtoTypeEnum;
|
|
78
78
|
/**
|
|
79
|
-
* The account\'s
|
|
80
|
-
* @type {string}
|
|
81
|
-
* @memberof UpdateAccountRequestDto
|
|
82
|
-
*/
|
|
83
|
-
'birthDate': string;
|
|
84
|
-
/**
|
|
85
|
-
* The account\'s holder company name (Required for account of type org).
|
|
79
|
+
* The account holder\'s company name (Required for account of type org).
|
|
86
80
|
* @type {string}
|
|
87
81
|
* @memberof UpdateAccountRequestDto
|
|
88
82
|
*/
|
|
89
83
|
'companyName'?: string;
|
|
90
84
|
/**
|
|
91
|
-
* The account\'s
|
|
85
|
+
* The account holder\'s phone number.
|
|
92
86
|
* @type {string}
|
|
93
87
|
* @memberof UpdateAccountRequestDto
|
|
94
88
|
*/
|
|
@@ -99,6 +93,12 @@ export interface UpdateAccountRequestDto {
|
|
|
99
93
|
* @memberof UpdateAccountRequestDto
|
|
100
94
|
*/
|
|
101
95
|
'accountNumber'?: string;
|
|
96
|
+
/**
|
|
97
|
+
* The account holder\'s date of birth (Required for account of type person).
|
|
98
|
+
* @type {string}
|
|
99
|
+
* @memberof UpdateAccountRequestDto
|
|
100
|
+
*/
|
|
101
|
+
'birthDate': string;
|
|
102
102
|
/**
|
|
103
103
|
* Optional field to enter extra information.
|
|
104
104
|
* @type {object}
|
package/models/account-class.ts
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
+
import { PolicyClass } from './policy-class';
|
|
16
17
|
|
|
17
18
|
/**
|
|
18
19
|
*
|
|
@@ -43,7 +44,7 @@ export interface AccountClass {
|
|
|
43
44
|
* @type {string}
|
|
44
45
|
* @memberof AccountClass
|
|
45
46
|
*/
|
|
46
|
-
'title'
|
|
47
|
+
'title'?: AccountClassTitleEnum;
|
|
47
48
|
/**
|
|
48
49
|
* The account\'s first name.
|
|
49
50
|
* @type {string}
|
|
@@ -136,22 +137,22 @@ export interface AccountClass {
|
|
|
136
137
|
'updatedAt': string;
|
|
137
138
|
/**
|
|
138
139
|
* Policies linked to the account.
|
|
139
|
-
* @type {Array<
|
|
140
|
+
* @type {Array<PolicyClass>}
|
|
140
141
|
* @memberof AccountClass
|
|
141
142
|
*/
|
|
142
|
-
'policies': Array<
|
|
143
|
+
'policies': Array<PolicyClass>;
|
|
143
144
|
/**
|
|
144
145
|
* Optional field contain extra information
|
|
145
146
|
* @type {object}
|
|
146
147
|
* @memberof AccountClass
|
|
147
148
|
*/
|
|
148
|
-
'metadata'
|
|
149
|
+
'metadata'?: object;
|
|
149
150
|
/**
|
|
150
151
|
* Optional field contain custom fields
|
|
151
152
|
* @type {object}
|
|
152
153
|
* @memberof AccountClass
|
|
153
154
|
*/
|
|
154
|
-
'customFields'
|
|
155
|
+
'customFields'?: object;
|
|
155
156
|
}
|
|
156
157
|
|
|
157
158
|
export const AccountClassTitleEnum = {
|
|
@@ -39,7 +39,7 @@ export interface CreateAccountRequestDto {
|
|
|
39
39
|
*/
|
|
40
40
|
'lastName': string;
|
|
41
41
|
/**
|
|
42
|
-
* The account\'s holder email address. It is displayed alongside the account in your dashboard
|
|
42
|
+
* The account\'s holder email address. It is displayed alongside the account in your dashboard and can be useful for searching and tracking.
|
|
43
43
|
* @type {string}
|
|
44
44
|
* @memberof CreateAccountRequestDto
|
|
45
45
|
*/
|
package/models/index.ts
CHANGED
|
@@ -4,6 +4,7 @@ export * from './create-account-response-class';
|
|
|
4
4
|
export * from './delete-request-dto';
|
|
5
5
|
export * from './get-account-response-class';
|
|
6
6
|
export * from './list-accounts-response-class';
|
|
7
|
+
export * from './policy-class';
|
|
7
8
|
export * from './register-policy-request-dto';
|
|
8
9
|
export * from './update-account-request-dto';
|
|
9
10
|
export * from './update-account-response-class';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL AccountService
|
|
5
|
+
* The EMIL AccountService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface PolicyClass
|
|
21
|
+
*/
|
|
22
|
+
export interface PolicyClass {
|
|
23
|
+
/**
|
|
24
|
+
* Unique identifier for a policy.
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof PolicyClass
|
|
27
|
+
*/
|
|
28
|
+
'policyCode': string;
|
|
29
|
+
/**
|
|
30
|
+
* Number used on official documents.
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof PolicyClass
|
|
33
|
+
*/
|
|
34
|
+
'policyNumber': string;
|
|
35
|
+
}
|
|
36
|
+
|
|
@@ -27,49 +27,49 @@ export interface UpdateAccountRequestDto {
|
|
|
27
27
|
*/
|
|
28
28
|
'title'?: UpdateAccountRequestDtoTitleEnum;
|
|
29
29
|
/**
|
|
30
|
-
* The account\'s
|
|
30
|
+
* The account holder\'s first name.
|
|
31
31
|
* @type {string}
|
|
32
32
|
* @memberof UpdateAccountRequestDto
|
|
33
33
|
*/
|
|
34
34
|
'firstName': string;
|
|
35
35
|
/**
|
|
36
|
-
* The account\'s
|
|
36
|
+
* The account holder\'s last name.
|
|
37
37
|
* @type {string}
|
|
38
38
|
* @memberof UpdateAccountRequestDto
|
|
39
39
|
*/
|
|
40
40
|
'lastName': string;
|
|
41
41
|
/**
|
|
42
|
-
* The account\'s
|
|
42
|
+
* The account holder\'s email address. It is displayed alongside the account in your dashboard and can be useful for searching and tracking.
|
|
43
43
|
* @type {string}
|
|
44
44
|
* @memberof UpdateAccountRequestDto
|
|
45
45
|
*/
|
|
46
46
|
'email': string;
|
|
47
47
|
/**
|
|
48
|
-
* The account\'s
|
|
48
|
+
* The account holder\'s gender.
|
|
49
49
|
* @type {string}
|
|
50
50
|
* @memberof UpdateAccountRequestDto
|
|
51
51
|
*/
|
|
52
52
|
'gender': UpdateAccountRequestDtoGenderEnum;
|
|
53
53
|
/**
|
|
54
|
-
* The account\'s
|
|
54
|
+
* The account holder\'s street name.
|
|
55
55
|
* @type {string}
|
|
56
56
|
* @memberof UpdateAccountRequestDto
|
|
57
57
|
*/
|
|
58
58
|
'street': string;
|
|
59
59
|
/**
|
|
60
|
-
* The account\'s
|
|
60
|
+
* The account holder\'s ZIP or postal code.
|
|
61
61
|
* @type {string}
|
|
62
62
|
* @memberof UpdateAccountRequestDto
|
|
63
63
|
*/
|
|
64
64
|
'zipCode': string;
|
|
65
65
|
/**
|
|
66
|
-
* The account\'s
|
|
66
|
+
* The account holder\'s city, district, suburb, town, or village.
|
|
67
67
|
* @type {string}
|
|
68
68
|
* @memberof UpdateAccountRequestDto
|
|
69
69
|
*/
|
|
70
70
|
'city': string;
|
|
71
71
|
/**
|
|
72
|
-
* The account\'s
|
|
72
|
+
* The account holder\'s house number.
|
|
73
73
|
* @type {string}
|
|
74
74
|
* @memberof UpdateAccountRequestDto
|
|
75
75
|
*/
|
|
@@ -81,19 +81,13 @@ export interface UpdateAccountRequestDto {
|
|
|
81
81
|
*/
|
|
82
82
|
'type'?: UpdateAccountRequestDtoTypeEnum;
|
|
83
83
|
/**
|
|
84
|
-
* The account\'s
|
|
85
|
-
* @type {string}
|
|
86
|
-
* @memberof UpdateAccountRequestDto
|
|
87
|
-
*/
|
|
88
|
-
'birthDate': string;
|
|
89
|
-
/**
|
|
90
|
-
* The account\'s holder company name (Required for account of type org).
|
|
84
|
+
* The account holder\'s company name (Required for account of type org).
|
|
91
85
|
* @type {string}
|
|
92
86
|
* @memberof UpdateAccountRequestDto
|
|
93
87
|
*/
|
|
94
88
|
'companyName'?: string;
|
|
95
89
|
/**
|
|
96
|
-
* The account\'s
|
|
90
|
+
* The account holder\'s phone number.
|
|
97
91
|
* @type {string}
|
|
98
92
|
* @memberof UpdateAccountRequestDto
|
|
99
93
|
*/
|
|
@@ -104,6 +98,12 @@ export interface UpdateAccountRequestDto {
|
|
|
104
98
|
* @memberof UpdateAccountRequestDto
|
|
105
99
|
*/
|
|
106
100
|
'accountNumber'?: string;
|
|
101
|
+
/**
|
|
102
|
+
* The account holder\'s date of birth (Required for account of type person).
|
|
103
|
+
* @type {string}
|
|
104
|
+
* @memberof UpdateAccountRequestDto
|
|
105
|
+
*/
|
|
106
|
+
'birthDate': string;
|
|
107
107
|
/**
|
|
108
108
|
* Optional field to enter extra information.
|
|
109
109
|
* @type {object}
|