@emilgroup/account-sdk 1.0.2 → 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 -1
- package/README.md +11 -11
- package/api/accounts-api.ts +54 -44
- package/api.ts +0 -9
- package/base.ts +124 -65
- package/common.ts +61 -2
- package/configuration.ts +0 -8
- package/dist/api/accounts-api.d.ts +54 -45
- package/dist/api/accounts-api.js +76 -80
- package/dist/api.d.ts +0 -4
- package/dist/api.js +4 -21
- package/dist/base.d.ts +10 -6
- package/dist/base.js +105 -66
- package/dist/common.d.ts +26 -1
- package/dist/common.js +43 -22
- package/dist/configuration.d.ts +0 -7
- package/dist/configuration.js +0 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +8 -19
- package/dist/models/account-class.d.ts +31 -5
- package/dist/models/account-class.js +6 -0
- package/dist/models/create-account-request-dto.d.ts +40 -10
- package/dist/models/create-account-request-dto.js +10 -1
- package/dist/models/index.d.ts +1 -1
- package/dist/models/index.js +6 -24
- package/dist/models/policy-class.d.ts +30 -0
- package/dist/models/update-account-request-dto.d.ts +41 -17
- package/dist/models/update-account-request-dto.js +10 -1
- package/index.ts +1 -1
- package/models/account-class.ts +34 -5
- package/models/create-account-request-dto.ts +42 -10
- package/models/index.ts +1 -1
- package/models/policy-class.ts +36 -0
- package/models/update-account-request-dto.ts +43 -17
- package/package.json +3 -5
- package/dist/models/get-account-request-dto.d.ts +0 -30
- package/models/get-account-request-dto.ts +0 -36
- /package/dist/models/{get-account-request-dto.js → policy-class.js} +0 -0
|
@@ -31,7 +31,7 @@ export declare const AccountsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
31
31
|
* @param {*} [options] Override http request option.
|
|
32
32
|
* @throws {RequiredError}
|
|
33
33
|
*/
|
|
34
|
-
createAccount: (createAccountRequestDto: CreateAccountRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
34
|
+
createAccount: (createAccountRequestDto: CreateAccountRequestDto, authorization?: string, options?: AxiosRequestConfig<any>) => Promise<RequestArgs>;
|
|
35
35
|
/**
|
|
36
36
|
* Permanently deletes the account. Supply the unique code that was returned when you created the account and this will delete it.
|
|
37
37
|
* @summary Delete the account
|
|
@@ -40,7 +40,7 @@ export declare const AccountsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
40
40
|
* @param {*} [options] Override http request option.
|
|
41
41
|
* @throws {RequiredError}
|
|
42
42
|
*/
|
|
43
|
-
deleteAccount: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
43
|
+
deleteAccount: (code: string, authorization?: string, options?: AxiosRequestConfig<any>) => Promise<RequestArgs>;
|
|
44
44
|
/**
|
|
45
45
|
* 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.
|
|
46
46
|
* @summary Retrieve the account
|
|
@@ -50,20 +50,21 @@ export declare const AccountsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
50
50
|
* @param {*} [options] Override http request option.
|
|
51
51
|
* @throws {RequiredError}
|
|
52
52
|
*/
|
|
53
|
-
getAccount: (code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
53
|
+
getAccount: (code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig<any>) => Promise<RequestArgs>;
|
|
54
54
|
/**
|
|
55
|
-
* Returns a list of accounts you have previously created. The accounts are returned in sorted order, with the oldest
|
|
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<any>) => 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
|
|
@@ -73,7 +74,7 @@ export declare const AccountsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
73
74
|
* @param {*} [options] Override http request option.
|
|
74
75
|
* @throws {RequiredError}
|
|
75
76
|
*/
|
|
76
|
-
updateAccount: (code: string, updateAccountRequestDto: UpdateAccountRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
77
|
+
updateAccount: (code: string, updateAccountRequestDto: UpdateAccountRequestDto, authorization?: string, options?: AxiosRequestConfig<any>) => Promise<RequestArgs>;
|
|
77
78
|
};
|
|
78
79
|
/**
|
|
79
80
|
* AccountsApi - functional programming interface
|
|
@@ -88,7 +89,7 @@ export declare const AccountsApiFp: (configuration?: Configuration) => {
|
|
|
88
89
|
* @param {*} [options] Override http request option.
|
|
89
90
|
* @throws {RequiredError}
|
|
90
91
|
*/
|
|
91
|
-
createAccount(createAccountRequestDto: CreateAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateAccountResponseClass>>;
|
|
92
|
+
createAccount(createAccountRequestDto: CreateAccountRequestDto, authorization?: string, options?: AxiosRequestConfig<any>): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateAccountResponseClass>>;
|
|
92
93
|
/**
|
|
93
94
|
* Permanently deletes the account. Supply the unique code that was returned when you created the account and this will delete it.
|
|
94
95
|
* @summary Delete the account
|
|
@@ -97,7 +98,7 @@ export declare const AccountsApiFp: (configuration?: Configuration) => {
|
|
|
97
98
|
* @param {*} [options] Override http request option.
|
|
98
99
|
* @throws {RequiredError}
|
|
99
100
|
*/
|
|
100
|
-
deleteAccount(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
|
|
101
|
+
deleteAccount(code: string, authorization?: string, options?: AxiosRequestConfig<any>): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
|
|
101
102
|
/**
|
|
102
103
|
* 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.
|
|
103
104
|
* @summary Retrieve the account
|
|
@@ -107,20 +108,21 @@ export declare const AccountsApiFp: (configuration?: Configuration) => {
|
|
|
107
108
|
* @param {*} [options] Override http request option.
|
|
108
109
|
* @throws {RequiredError}
|
|
109
110
|
*/
|
|
110
|
-
getAccount(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccountResponseClass>>;
|
|
111
|
+
getAccount(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig<any>): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccountResponseClass>>;
|
|
111
112
|
/**
|
|
112
|
-
* Returns a list of accounts you have previously created. The accounts are returned in sorted order, with the oldest
|
|
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<any>): 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
|
|
@@ -130,7 +132,7 @@ export declare const AccountsApiFp: (configuration?: Configuration) => {
|
|
|
130
132
|
* @param {*} [options] Override http request option.
|
|
131
133
|
* @throws {RequiredError}
|
|
132
134
|
*/
|
|
133
|
-
updateAccount(code: string, updateAccountRequestDto: UpdateAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateAccountResponseClass>>;
|
|
135
|
+
updateAccount(code: string, updateAccountRequestDto: UpdateAccountRequestDto, authorization?: string, options?: AxiosRequestConfig<any>): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateAccountResponseClass>>;
|
|
134
136
|
};
|
|
135
137
|
/**
|
|
136
138
|
* AccountsApi - factory interface
|
|
@@ -166,18 +168,19 @@ export declare const AccountsApiFactory: (configuration?: Configuration, basePat
|
|
|
166
168
|
*/
|
|
167
169
|
getAccount(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetAccountResponseClass>;
|
|
168
170
|
/**
|
|
169
|
-
* Returns a list of accounts you have previously created. The accounts are returned in sorted order, with the oldest
|
|
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.
|
|
@@ -355,7 +364,7 @@ export declare class AccountsApi extends BaseAPI {
|
|
|
355
364
|
*/
|
|
356
365
|
getAccount(requestParameters: AccountsApiGetAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetAccountResponseClass, any>>;
|
|
357
366
|
/**
|
|
358
|
-
* Returns a list of accounts you have previously created. The accounts are returned in sorted order, with the oldest
|
|
367
|
+
* 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.
|
|
359
368
|
* @summary List accounts
|
|
360
369
|
* @param {AccountsApiListAccountsRequest} requestParameters Request parameters.
|
|
361
370
|
* @param {*} [options] Override http request option.
|