@emilgroup/account-sdk 1.0.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.
Files changed (58) hide show
  1. package/.openapi-generator/FILES +24 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +52 -0
  5. package/api/accounts-api.ts +527 -0
  6. package/api.ts +32 -0
  7. package/base.ts +182 -0
  8. package/common.ts +138 -0
  9. package/configuration.ts +109 -0
  10. package/dist/api/accounts-api.d.ts +255 -0
  11. package/dist/api/accounts-api.js +637 -0
  12. package/dist/api.d.ts +16 -0
  13. package/dist/api.js +36 -0
  14. package/dist/base.d.ts +68 -0
  15. package/dist/base.js +243 -0
  16. package/dist/common.d.ts +65 -0
  17. package/dist/common.js +243 -0
  18. package/dist/configuration.d.ts +90 -0
  19. package/dist/configuration.js +44 -0
  20. package/dist/index.d.ts +15 -0
  21. package/dist/index.js +35 -0
  22. package/dist/models/account-class.d.ts +132 -0
  23. package/dist/models/account-class.js +15 -0
  24. package/dist/models/create-account-request-dto.d.ts +102 -0
  25. package/dist/models/create-account-request-dto.js +21 -0
  26. package/dist/models/create-account-response-class.d.ts +25 -0
  27. package/dist/models/create-account-response-class.js +15 -0
  28. package/dist/models/delete-request-dto.d.ts +24 -0
  29. package/dist/models/delete-request-dto.js +15 -0
  30. package/dist/models/get-account-request-dto.d.ts +30 -0
  31. package/dist/models/get-account-request-dto.js +15 -0
  32. package/dist/models/get-account-response-class.d.ts +25 -0
  33. package/dist/models/get-account-response-class.js +15 -0
  34. package/dist/models/index.d.ts +10 -0
  35. package/dist/models/index.js +26 -0
  36. package/dist/models/list-accounts-response-class.d.ts +31 -0
  37. package/dist/models/list-accounts-response-class.js +15 -0
  38. package/dist/models/register-policy-request-dto.d.ts +36 -0
  39. package/dist/models/register-policy-request-dto.js +15 -0
  40. package/dist/models/update-account-request-dto.d.ts +108 -0
  41. package/dist/models/update-account-request-dto.js +21 -0
  42. package/dist/models/update-account-response-class.d.ts +25 -0
  43. package/dist/models/update-account-response-class.js +15 -0
  44. package/git_push.sh +57 -0
  45. package/index.ts +19 -0
  46. package/models/account-class.ts +138 -0
  47. package/models/create-account-request-dto.ts +111 -0
  48. package/models/create-account-response-class.ts +31 -0
  49. package/models/delete-request-dto.ts +30 -0
  50. package/models/get-account-request-dto.ts +36 -0
  51. package/models/get-account-response-class.ts +31 -0
  52. package/models/index.ts +10 -0
  53. package/models/list-accounts-response-class.ts +37 -0
  54. package/models/register-policy-request-dto.ts +42 -0
  55. package/models/update-account-request-dto.ts +117 -0
  56. package/models/update-account-response-class.ts +31 -0
  57. package/package.json +27 -0
  58. package/tsconfig.json +21 -0
@@ -0,0 +1,255 @@
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
+ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
+ import { Configuration } from '../configuration';
14
+ import { RequestArgs, BaseAPI } from '../base';
15
+ import { CreateAccountRequestDto } from '../models';
16
+ import { CreateAccountResponseClass } from '../models';
17
+ import { GetAccountResponseClass } from '../models';
18
+ import { ListAccountsResponseClass } from '../models';
19
+ import { UpdateAccountRequestDto } from '../models';
20
+ import { UpdateAccountResponseClass } from '../models';
21
+ /**
22
+ * AccountsApi - axios parameter creator
23
+ * @export
24
+ */
25
+ export declare const AccountsApiAxiosParamCreator: (configuration?: Configuration) => {
26
+ /**
27
+ * This will create an account in the database. Account creation is usually part of a complex workflow that starts with lead creation. Creating directly an account without prior knowledge might result in an unusable account. Look into lead creation for more information.
28
+ * @summary Create the account
29
+ * @param {CreateAccountRequestDto} createAccountRequestDto
30
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
31
+ * @param {*} [options] Override http request option.
32
+ * @throws {RequiredError}
33
+ */
34
+ createAccount: (createAccountRequestDto: CreateAccountRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
35
+ /**
36
+ * Permanently deletes the account. Supply the unique code that was returned when you created the account and this will delete it.
37
+ * @summary Delete the account
38
+ * @param {string} code Unique identifier for the object.
39
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
40
+ * @param {*} [options] Override http request option.
41
+ * @throws {RequiredError}
42
+ */
43
+ deleteAccount: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
44
+ /**
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
+ * @summary Retrieve the account
47
+ * @param {string} code Unique identifier for the object.
48
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
49
+ * @param {string} [expand] Use the expand query parameter when you need additional information. The expand query parameter increases the set of fields that appear in the response in addition to the default fields. Expanding resources reduces the number of API calls required to accomplish a task.
50
+ * @param {*} [options] Override http request option.
51
+ * @throws {RequiredError}
52
+ */
53
+ getAccount: (code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
54
+ /**
55
+ * Returns a list of accounts you have previously created. The accounts are returned in sorted order, with the oldest account appearing first. For more information about pagination, read the Pagination documentation.
56
+ * @summary List accounts
57
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
58
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
59
+ * @param {string} [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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
60
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time. Parameters: **code**, **firstName**, **lastName**, **accountNumber**, **email**, **zipCode**, **birthDate**
61
+ * @param {string} [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. Parameters: **firstName**, **lastName**, **accountNumber**, **email**.
62
+ * @param {string} [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. Parameters: **policy**.
63
+ * @param {*} [options] Override http request option.
64
+ * @throws {RequiredError}
65
+ */
66
+ listAccounts: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, order?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
67
+ /**
68
+ * Updates the specified account by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
69
+ * @summary Update the account
70
+ * @param {string} code Unique identifier for the object.
71
+ * @param {UpdateAccountRequestDto} updateAccountRequestDto
72
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
73
+ * @param {*} [options] Override http request option.
74
+ * @throws {RequiredError}
75
+ */
76
+ updateAccount: (code: string, updateAccountRequestDto: UpdateAccountRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
77
+ };
78
+ /**
79
+ * AccountsApi - functional programming interface
80
+ * @export
81
+ */
82
+ export declare const AccountsApiFp: (configuration?: Configuration) => {
83
+ /**
84
+ * This will create an account in the database. Account creation is usually part of a complex workflow that starts with lead creation. Creating directly an account without prior knowledge might result in an unusable account. Look into lead creation for more information.
85
+ * @summary Create the account
86
+ * @param {CreateAccountRequestDto} createAccountRequestDto
87
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
88
+ * @param {*} [options] Override http request option.
89
+ * @throws {RequiredError}
90
+ */
91
+ createAccount(createAccountRequestDto: CreateAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateAccountResponseClass>>;
92
+ /**
93
+ * Permanently deletes the account. Supply the unique code that was returned when you created the account and this will delete it.
94
+ * @summary Delete the account
95
+ * @param {string} code Unique identifier for the object.
96
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
97
+ * @param {*} [options] Override http request option.
98
+ * @throws {RequiredError}
99
+ */
100
+ deleteAccount(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
101
+ /**
102
+ * 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
+ * @summary Retrieve the account
104
+ * @param {string} code Unique identifier for the object.
105
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
106
+ * @param {string} [expand] Use the expand query parameter when you need additional information. The expand query parameter increases the set of fields that appear in the response in addition to the default fields. Expanding resources reduces the number of API calls required to accomplish a task.
107
+ * @param {*} [options] Override http request option.
108
+ * @throws {RequiredError}
109
+ */
110
+ getAccount(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccountResponseClass>>;
111
+ /**
112
+ * Returns a list of accounts you have previously created. The accounts are returned in sorted order, with the oldest account appearing first. For more information about pagination, read the Pagination documentation.
113
+ * @summary List accounts
114
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
115
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
116
+ * @param {string} [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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
117
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time. Parameters: **code**, **firstName**, **lastName**, **accountNumber**, **email**, **zipCode**, **birthDate**
118
+ * @param {string} [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. Parameters: **firstName**, **lastName**, **accountNumber**, **email**.
119
+ * @param {string} [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. Parameters: **policy**.
120
+ * @param {*} [options] Override http request option.
121
+ * @throws {RequiredError}
122
+ */
123
+ listAccounts(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListAccountsResponseClass>>;
124
+ /**
125
+ * Updates the specified account by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
126
+ * @summary Update the account
127
+ * @param {string} code Unique identifier for the object.
128
+ * @param {UpdateAccountRequestDto} updateAccountRequestDto
129
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
130
+ * @param {*} [options] Override http request option.
131
+ * @throws {RequiredError}
132
+ */
133
+ updateAccount(code: string, updateAccountRequestDto: UpdateAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateAccountResponseClass>>;
134
+ };
135
+ /**
136
+ * AccountsApi - factory interface
137
+ * @export
138
+ */
139
+ export declare const AccountsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
140
+ /**
141
+ * This will create an account in the database. Account creation is usually part of a complex workflow that starts with lead creation. Creating directly an account without prior knowledge might result in an unusable account. Look into lead creation for more information.
142
+ * @summary Create the account
143
+ * @param {CreateAccountRequestDto} createAccountRequestDto
144
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
145
+ * @param {*} [options] Override http request option.
146
+ * @throws {RequiredError}
147
+ */
148
+ createAccount(createAccountRequestDto: CreateAccountRequestDto, authorization?: string, options?: any): AxiosPromise<CreateAccountResponseClass>;
149
+ /**
150
+ * Permanently deletes the account. Supply the unique code that was returned when you created the account and this will delete it.
151
+ * @summary Delete the account
152
+ * @param {string} code Unique identifier for the object.
153
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
154
+ * @param {*} [options] Override http request option.
155
+ * @throws {RequiredError}
156
+ */
157
+ deleteAccount(code: string, authorization?: string, options?: any): AxiosPromise<object>;
158
+ /**
159
+ * 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.
160
+ * @summary Retrieve the account
161
+ * @param {string} code Unique identifier for the object.
162
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
163
+ * @param {string} [expand] Use the expand query parameter when you need additional information. The expand query parameter increases the set of fields that appear in the response in addition to the default fields. Expanding resources reduces the number of API calls required to accomplish a task.
164
+ * @param {*} [options] Override http request option.
165
+ * @throws {RequiredError}
166
+ */
167
+ getAccount(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetAccountResponseClass>;
168
+ /**
169
+ * Returns a list of accounts you have previously created. The accounts are returned in sorted order, with the oldest account appearing first. For more information about pagination, read the Pagination documentation.
170
+ * @summary List accounts
171
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
172
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
173
+ * @param {string} [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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
174
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time. Parameters: **code**, **firstName**, **lastName**, **accountNumber**, **email**, **zipCode**, **birthDate**
175
+ * @param {string} [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. Parameters: **firstName**, **lastName**, **accountNumber**, **email**.
176
+ * @param {string} [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. Parameters: **policy**.
177
+ * @param {*} [options] Override http request option.
178
+ * @throws {RequiredError}
179
+ */
180
+ listAccounts(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListAccountsResponseClass>;
181
+ /**
182
+ * Updates the specified account by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
183
+ * @summary Update the account
184
+ * @param {string} code Unique identifier for the object.
185
+ * @param {UpdateAccountRequestDto} updateAccountRequestDto
186
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
187
+ * @param {*} [options] Override http request option.
188
+ * @throws {RequiredError}
189
+ */
190
+ updateAccount(code: string, updateAccountRequestDto: UpdateAccountRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateAccountResponseClass>;
191
+ };
192
+ /**
193
+ * AccountsApi - object-oriented interface
194
+ * @export
195
+ * @class AccountsApi
196
+ * @extends {BaseAPI}
197
+ */
198
+ export declare class AccountsApi extends BaseAPI {
199
+ /**
200
+ * This will create an account in the database. Account creation is usually part of a complex workflow that starts with lead creation. Creating directly an account without prior knowledge might result in an unusable account. Look into lead creation for more information.
201
+ * @summary Create the account
202
+ * @param {CreateAccountRequestDto} createAccountRequestDto
203
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
204
+ * @param {*} [options] Override http request option.
205
+ * @throws {RequiredError}
206
+ * @memberof AccountsApi
207
+ */
208
+ createAccount(createAccountRequestDto: CreateAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateAccountResponseClass, any>>;
209
+ /**
210
+ * Permanently deletes the account. Supply the unique code that was returned when you created the account and this will delete it.
211
+ * @summary Delete the account
212
+ * @param {string} code Unique identifier for the object.
213
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
214
+ * @param {*} [options] Override http request option.
215
+ * @throws {RequiredError}
216
+ * @memberof AccountsApi
217
+ */
218
+ deleteAccount(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
219
+ /**
220
+ * 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.
221
+ * @summary Retrieve the account
222
+ * @param {string} code Unique identifier for the object.
223
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
224
+ * @param {string} [expand] Use the expand query parameter when you need additional information. The expand query parameter increases the set of fields that appear in the response in addition to the default fields. Expanding resources reduces the number of API calls required to accomplish a task.
225
+ * @param {*} [options] Override http request option.
226
+ * @throws {RequiredError}
227
+ * @memberof AccountsApi
228
+ */
229
+ getAccount(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetAccountResponseClass, any>>;
230
+ /**
231
+ * Returns a list of accounts you have previously created. The accounts are returned in sorted order, with the oldest account appearing first. For more information about pagination, read the Pagination documentation.
232
+ * @summary List accounts
233
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
234
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
235
+ * @param {string} [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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
236
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time. Parameters: **code**, **firstName**, **lastName**, **accountNumber**, **email**, **zipCode**, **birthDate**
237
+ * @param {string} [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. Parameters: **firstName**, **lastName**, **accountNumber**, **email**.
238
+ * @param {string} [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. Parameters: **policy**.
239
+ * @param {*} [options] Override http request option.
240
+ * @throws {RequiredError}
241
+ * @memberof AccountsApi
242
+ */
243
+ listAccounts(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListAccountsResponseClass, any>>;
244
+ /**
245
+ * Updates the specified account by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
246
+ * @summary Update the account
247
+ * @param {string} code Unique identifier for the object.
248
+ * @param {UpdateAccountRequestDto} updateAccountRequestDto
249
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
250
+ * @param {*} [options] Override http request option.
251
+ * @throws {RequiredError}
252
+ * @memberof AccountsApi
253
+ */
254
+ updateAccount(code: string, updateAccountRequestDto: UpdateAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateAccountResponseClass, any>>;
255
+ }