@emilgroup/customer-sdk-node 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 (91) hide show
  1. package/.openapi-generator/FILES +35 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +51 -0
  5. package/api/customers-api.ts +1284 -0
  6. package/api.ts +36 -0
  7. package/base.ts +187 -0
  8. package/common.ts +139 -0
  9. package/configuration.ts +118 -0
  10. package/dist/api/customers-api.d.ts +730 -0
  11. package/dist/api/customers-api.js +1095 -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 +251 -0
  16. package/dist/common.d.ts +66 -0
  17. package/dist/common.js +244 -0
  18. package/dist/configuration.d.ts +98 -0
  19. package/dist/configuration.js +45 -0
  20. package/dist/index.d.ts +15 -0
  21. package/dist/index.js +35 -0
  22. package/dist/models/create-account-request-dto.d.ts +102 -0
  23. package/dist/models/create-account-request-dto.js +21 -0
  24. package/dist/models/create-customer-request-dto.d.ts +43 -0
  25. package/dist/models/create-customer-request-dto.js +15 -0
  26. package/dist/models/create-customer-response-class.d.ts +24 -0
  27. package/dist/models/create-customer-response-class.js +15 -0
  28. package/dist/models/forgot-password-request-dto.d.ts +30 -0
  29. package/dist/models/forgot-password-request-dto.js +15 -0
  30. package/dist/models/get-policy-response-class.d.ts +25 -0
  31. package/dist/models/get-policy-response-class.js +15 -0
  32. package/dist/models/index.d.ts +21 -0
  33. package/dist/models/index.js +37 -0
  34. package/dist/models/invite-class.d.ts +54 -0
  35. package/dist/models/invite-class.js +15 -0
  36. package/dist/models/invite-customer-request-dto.d.ts +30 -0
  37. package/dist/models/invite-customer-request-dto.js +15 -0
  38. package/dist/models/invite-customer-response-class.d.ts +25 -0
  39. package/dist/models/invite-customer-response-class.js +15 -0
  40. package/dist/models/list-invoices-response-class.d.ts +30 -0
  41. package/dist/models/list-invoices-response-class.js +15 -0
  42. package/dist/models/list-policies-response-class.d.ts +31 -0
  43. package/dist/models/list-policies-response-class.js +15 -0
  44. package/dist/models/login-request-dto.d.ts +36 -0
  45. package/dist/models/login-request-dto.js +15 -0
  46. package/dist/models/login-response-class.d.ts +30 -0
  47. package/dist/models/login-response-class.js +15 -0
  48. package/dist/models/policy-class.d.ts +55 -0
  49. package/dist/models/policy-class.js +15 -0
  50. package/dist/models/policy-object-class.d.ts +30 -0
  51. package/dist/models/policy-object-class.js +15 -0
  52. package/dist/models/policy-premium-class.d.ts +43 -0
  53. package/dist/models/policy-premium-class.js +15 -0
  54. package/dist/models/policy-premium-item-class.d.ts +36 -0
  55. package/dist/models/policy-premium-item-class.js +15 -0
  56. package/dist/models/policy-version-class.d.ts +49 -0
  57. package/dist/models/policy-version-class.js +15 -0
  58. package/dist/models/refresh-token-dto.d.ts +30 -0
  59. package/dist/models/refresh-token-dto.js +15 -0
  60. package/dist/models/reset-password-by-customer-request-dto.d.ts +36 -0
  61. package/dist/models/reset-password-by-customer-request-dto.js +15 -0
  62. package/dist/models/timeslice-class.d.ts +56 -0
  63. package/dist/models/timeslice-class.js +15 -0
  64. package/dist/models/verify-customer-invite-response-class.d.ts +36 -0
  65. package/dist/models/verify-customer-invite-response-class.js +15 -0
  66. package/git_push.sh +57 -0
  67. package/index.ts +19 -0
  68. package/models/create-account-request-dto.ts +111 -0
  69. package/models/create-customer-request-dto.ts +49 -0
  70. package/models/create-customer-response-class.ts +30 -0
  71. package/models/forgot-password-request-dto.ts +36 -0
  72. package/models/get-policy-response-class.ts +31 -0
  73. package/models/index.ts +21 -0
  74. package/models/invite-class.ts +60 -0
  75. package/models/invite-customer-request-dto.ts +36 -0
  76. package/models/invite-customer-response-class.ts +31 -0
  77. package/models/list-invoices-response-class.ts +36 -0
  78. package/models/list-policies-response-class.ts +37 -0
  79. package/models/login-request-dto.ts +42 -0
  80. package/models/login-response-class.ts +36 -0
  81. package/models/policy-class.ts +61 -0
  82. package/models/policy-object-class.ts +36 -0
  83. package/models/policy-premium-class.ts +49 -0
  84. package/models/policy-premium-item-class.ts +42 -0
  85. package/models/policy-version-class.ts +55 -0
  86. package/models/refresh-token-dto.ts +36 -0
  87. package/models/reset-password-by-customer-request-dto.ts +42 -0
  88. package/models/timeslice-class.ts +62 -0
  89. package/models/verify-customer-invite-response-class.ts +42 -0
  90. package/package.json +29 -0
  91. package/tsconfig.json +22 -0
@@ -0,0 +1,730 @@
1
+ /**
2
+ * EMIL CustomerService
3
+ * The EMIL CustomerService 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 { CreateCustomerRequestDto } from '../models';
16
+ import { CreateCustomerResponseClass } from '../models';
17
+ import { ForgotPasswordRequestDto } from '../models';
18
+ import { GetPolicyResponseClass } from '../models';
19
+ import { InviteCustomerRequestDto } from '../models';
20
+ import { InviteCustomerResponseClass } from '../models';
21
+ import { ListInvoicesResponseClass } from '../models';
22
+ import { ListPoliciesResponseClass } from '../models';
23
+ import { LoginRequestDto } from '../models';
24
+ import { LoginResponseClass } from '../models';
25
+ import { RefreshTokenDto } from '../models';
26
+ import { ResetPasswordByCustomerRequestDto } from '../models';
27
+ import { VerifyCustomerInviteResponseClass } from '../models';
28
+ /**
29
+ * CustomersApi - axios parameter creator
30
+ * @export
31
+ */
32
+ export declare const CustomersApiAxiosParamCreator: (configuration?: Configuration) => {
33
+ /**
34
+ * Register a customer using the invite token sent to customer\'s email address. Customer can set a new password for his account created during booking a policy.
35
+ * @summary Register a customer after invite
36
+ * @param {CreateCustomerRequestDto} createCustomerRequestDto
37
+ * @param {*} [options] Override http request option.
38
+ * @throws {RequiredError}
39
+ */
40
+ createCustomer: (createCustomerRequestDto: CreateCustomerRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
41
+ /**
42
+ * Send a customer a reset-password token via email.
43
+ * @summary Forgot password by customer
44
+ * @param {ForgotPasswordRequestDto} forgotPasswordRequestDto
45
+ * @param {*} [options] Override http request option.
46
+ * @throws {RequiredError}
47
+ */
48
+ forgotPassword: (forgotPasswordRequestDto: ForgotPasswordRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
49
+ /**
50
+ * Get detailed policy that belongs to a customer. The details can be expanded using expand query parameter.
51
+ * @summary Get policy details
52
+ * @param {string} policyCode The policy code
53
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
54
+ * @param {string} [expand] Fields to expand response by - [versions, premiumItems]
55
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
56
+ * @param {*} [options] Override http request option.
57
+ * @throws {RequiredError}
58
+ */
59
+ getPolicy: (policyCode: string, customerCode: string, expand?: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
60
+ /**
61
+ * Send a customer an invite via email to register. An account should have been created before inviting the customer. To invite users without accounts and policies is not yet supported.
62
+ * @summary Invite a customer to register
63
+ * @param {InviteCustomerRequestDto} inviteCustomerRequestDto
64
+ * @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\&#39;s Auth login endpoint under the name accessToken
65
+ * @param {*} [options] Override http request option.
66
+ * @throws {RequiredError}
67
+ */
68
+ inviteCustomer: (inviteCustomerRequestDto: InviteCustomerRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
69
+ /**
70
+ * List all the invoices of a customer
71
+ * @summary List invoices of a customer
72
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
73
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
74
+ * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
75
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
76
+ * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
77
+ * @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.
78
+ * @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.
79
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
80
+ * @param {*} [options] Override http request option.
81
+ * @throws {RequiredError}
82
+ */
83
+ listInvoices: (customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
84
+ /**
85
+ * List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
86
+ * @summary List policies of a customer
87
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
88
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
89
+ * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
90
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
91
+ * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
92
+ * @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.
93
+ * @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.
94
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
95
+ * @param {*} [options] Override http request option.
96
+ * @throws {RequiredError}
97
+ */
98
+ listPolicies: (customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
99
+ /**
100
+ * Get new access token, refresh token after successful login.
101
+ * @summary Login by customer
102
+ * @param {LoginRequestDto} loginRequestDto
103
+ * @param {*} [options] Override http request option.
104
+ * @throws {RequiredError}
105
+ */
106
+ login: (loginRequestDto: LoginRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
107
+ /**
108
+ * Get new access token, new refresh token.
109
+ * @summary Refresh token by customer
110
+ * @param {RefreshTokenDto} refreshTokenDto
111
+ * @param {string} [cookie] HTTP only cookie that was sent during login.
112
+ * @param {*} [options] Override http request option.
113
+ * @throws {RequiredError}
114
+ */
115
+ refreshToken: (refreshTokenDto: RefreshTokenDto, cookie?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
116
+ /**
117
+ * Change customer\'s password using the token provided by the reset password endpoint.
118
+ * @summary Change password by customer
119
+ * @param {ResetPasswordByCustomerRequestDto} resetPasswordByCustomerRequestDto
120
+ * @param {*} [options] Override http request option.
121
+ * @throws {RequiredError}
122
+ */
123
+ resetPassword: (resetPasswordByCustomerRequestDto: ResetPasswordByCustomerRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
124
+ /**
125
+ * Verify the invite sent to the customer via email.
126
+ * @summary Verify customer\'s invite token
127
+ * @param {string} inviteToken Invite token sent to the customer
128
+ * @param {*} [options] Override http request option.
129
+ * @throws {RequiredError}
130
+ */
131
+ verifyInvite: (inviteToken: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
132
+ /**
133
+ * Verify the reset password token that is sent by calling the \'forgot password\' endpoint.
134
+ * @summary Verify a reset password token
135
+ * @param {string} resetToken reset password token
136
+ * @param {*} [options] Override http request option.
137
+ * @throws {RequiredError}
138
+ */
139
+ verifyResetPasswordToken: (resetToken: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
140
+ };
141
+ /**
142
+ * CustomersApi - functional programming interface
143
+ * @export
144
+ */
145
+ export declare const CustomersApiFp: (configuration?: Configuration) => {
146
+ /**
147
+ * Register a customer using the invite token sent to customer\'s email address. Customer can set a new password for his account created during booking a policy.
148
+ * @summary Register a customer after invite
149
+ * @param {CreateCustomerRequestDto} createCustomerRequestDto
150
+ * @param {*} [options] Override http request option.
151
+ * @throws {RequiredError}
152
+ */
153
+ createCustomer(createCustomerRequestDto: CreateCustomerRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateCustomerResponseClass>>;
154
+ /**
155
+ * Send a customer a reset-password token via email.
156
+ * @summary Forgot password by customer
157
+ * @param {ForgotPasswordRequestDto} forgotPasswordRequestDto
158
+ * @param {*} [options] Override http request option.
159
+ * @throws {RequiredError}
160
+ */
161
+ forgotPassword(forgotPasswordRequestDto: ForgotPasswordRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
162
+ /**
163
+ * Get detailed policy that belongs to a customer. The details can be expanded using expand query parameter.
164
+ * @summary Get policy details
165
+ * @param {string} policyCode The policy code
166
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
167
+ * @param {string} [expand] Fields to expand response by - [versions, premiumItems]
168
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
169
+ * @param {*} [options] Override http request option.
170
+ * @throws {RequiredError}
171
+ */
172
+ getPolicy(policyCode: string, customerCode: string, expand?: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPolicyResponseClass>>;
173
+ /**
174
+ * Send a customer an invite via email to register. An account should have been created before inviting the customer. To invite users without accounts and policies is not yet supported.
175
+ * @summary Invite a customer to register
176
+ * @param {InviteCustomerRequestDto} inviteCustomerRequestDto
177
+ * @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\&#39;s Auth login endpoint under the name accessToken
178
+ * @param {*} [options] Override http request option.
179
+ * @throws {RequiredError}
180
+ */
181
+ inviteCustomer(inviteCustomerRequestDto: InviteCustomerRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteCustomerResponseClass>>;
182
+ /**
183
+ * List all the invoices of a customer
184
+ * @summary List invoices of a customer
185
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
186
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
187
+ * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
188
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
189
+ * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
190
+ * @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.
191
+ * @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.
192
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
193
+ * @param {*} [options] Override http request option.
194
+ * @throws {RequiredError}
195
+ */
196
+ listInvoices(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListInvoicesResponseClass>>;
197
+ /**
198
+ * List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
199
+ * @summary List policies of a customer
200
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
201
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
202
+ * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
203
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
204
+ * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
205
+ * @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.
206
+ * @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.
207
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
208
+ * @param {*} [options] Override http request option.
209
+ * @throws {RequiredError}
210
+ */
211
+ listPolicies(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPoliciesResponseClass>>;
212
+ /**
213
+ * Get new access token, refresh token after successful login.
214
+ * @summary Login by customer
215
+ * @param {LoginRequestDto} loginRequestDto
216
+ * @param {*} [options] Override http request option.
217
+ * @throws {RequiredError}
218
+ */
219
+ login(loginRequestDto: LoginRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponseClass>>;
220
+ /**
221
+ * Get new access token, new refresh token.
222
+ * @summary Refresh token by customer
223
+ * @param {RefreshTokenDto} refreshTokenDto
224
+ * @param {string} [cookie] HTTP only cookie that was sent during login.
225
+ * @param {*} [options] Override http request option.
226
+ * @throws {RequiredError}
227
+ */
228
+ refreshToken(refreshTokenDto: RefreshTokenDto, cookie?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponseClass>>;
229
+ /**
230
+ * Change customer\'s password using the token provided by the reset password endpoint.
231
+ * @summary Change password by customer
232
+ * @param {ResetPasswordByCustomerRequestDto} resetPasswordByCustomerRequestDto
233
+ * @param {*} [options] Override http request option.
234
+ * @throws {RequiredError}
235
+ */
236
+ resetPassword(resetPasswordByCustomerRequestDto: ResetPasswordByCustomerRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
237
+ /**
238
+ * Verify the invite sent to the customer via email.
239
+ * @summary Verify customer\'s invite token
240
+ * @param {string} inviteToken Invite token sent to the customer
241
+ * @param {*} [options] Override http request option.
242
+ * @throws {RequiredError}
243
+ */
244
+ verifyInvite(inviteToken: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VerifyCustomerInviteResponseClass>>;
245
+ /**
246
+ * Verify the reset password token that is sent by calling the \'forgot password\' endpoint.
247
+ * @summary Verify a reset password token
248
+ * @param {string} resetToken reset password token
249
+ * @param {*} [options] Override http request option.
250
+ * @throws {RequiredError}
251
+ */
252
+ verifyResetPasswordToken(resetToken: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
253
+ };
254
+ /**
255
+ * CustomersApi - factory interface
256
+ * @export
257
+ */
258
+ export declare const CustomersApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
259
+ /**
260
+ * Register a customer using the invite token sent to customer\'s email address. Customer can set a new password for his account created during booking a policy.
261
+ * @summary Register a customer after invite
262
+ * @param {CreateCustomerRequestDto} createCustomerRequestDto
263
+ * @param {*} [options] Override http request option.
264
+ * @throws {RequiredError}
265
+ */
266
+ createCustomer(createCustomerRequestDto: CreateCustomerRequestDto, options?: any): AxiosPromise<CreateCustomerResponseClass>;
267
+ /**
268
+ * Send a customer a reset-password token via email.
269
+ * @summary Forgot password by customer
270
+ * @param {ForgotPasswordRequestDto} forgotPasswordRequestDto
271
+ * @param {*} [options] Override http request option.
272
+ * @throws {RequiredError}
273
+ */
274
+ forgotPassword(forgotPasswordRequestDto: ForgotPasswordRequestDto, options?: any): AxiosPromise<void>;
275
+ /**
276
+ * Get detailed policy that belongs to a customer. The details can be expanded using expand query parameter.
277
+ * @summary Get policy details
278
+ * @param {string} policyCode The policy code
279
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
280
+ * @param {string} [expand] Fields to expand response by - [versions, premiumItems]
281
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
282
+ * @param {*} [options] Override http request option.
283
+ * @throws {RequiredError}
284
+ */
285
+ getPolicy(policyCode: string, customerCode: string, expand?: string, authorization?: string, options?: any): AxiosPromise<GetPolicyResponseClass>;
286
+ /**
287
+ * Send a customer an invite via email to register. An account should have been created before inviting the customer. To invite users without accounts and policies is not yet supported.
288
+ * @summary Invite a customer to register
289
+ * @param {InviteCustomerRequestDto} inviteCustomerRequestDto
290
+ * @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\&#39;s Auth login endpoint under the name accessToken
291
+ * @param {*} [options] Override http request option.
292
+ * @throws {RequiredError}
293
+ */
294
+ inviteCustomer(inviteCustomerRequestDto: InviteCustomerRequestDto, authorization?: string, options?: any): AxiosPromise<InviteCustomerResponseClass>;
295
+ /**
296
+ * List all the invoices of a customer
297
+ * @summary List invoices of a customer
298
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
299
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
300
+ * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
301
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
302
+ * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
303
+ * @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.
304
+ * @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.
305
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
306
+ * @param {*} [options] Override http request option.
307
+ * @throws {RequiredError}
308
+ */
309
+ listInvoices(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: any): AxiosPromise<ListInvoicesResponseClass>;
310
+ /**
311
+ * List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
312
+ * @summary List policies of a customer
313
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
314
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
315
+ * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
316
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
317
+ * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
318
+ * @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.
319
+ * @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.
320
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
321
+ * @param {*} [options] Override http request option.
322
+ * @throws {RequiredError}
323
+ */
324
+ listPolicies(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: any): AxiosPromise<ListPoliciesResponseClass>;
325
+ /**
326
+ * Get new access token, refresh token after successful login.
327
+ * @summary Login by customer
328
+ * @param {LoginRequestDto} loginRequestDto
329
+ * @param {*} [options] Override http request option.
330
+ * @throws {RequiredError}
331
+ */
332
+ login(loginRequestDto: LoginRequestDto, options?: any): AxiosPromise<LoginResponseClass>;
333
+ /**
334
+ * Get new access token, new refresh token.
335
+ * @summary Refresh token by customer
336
+ * @param {RefreshTokenDto} refreshTokenDto
337
+ * @param {string} [cookie] HTTP only cookie that was sent during login.
338
+ * @param {*} [options] Override http request option.
339
+ * @throws {RequiredError}
340
+ */
341
+ refreshToken(refreshTokenDto: RefreshTokenDto, cookie?: string, options?: any): AxiosPromise<LoginResponseClass>;
342
+ /**
343
+ * Change customer\'s password using the token provided by the reset password endpoint.
344
+ * @summary Change password by customer
345
+ * @param {ResetPasswordByCustomerRequestDto} resetPasswordByCustomerRequestDto
346
+ * @param {*} [options] Override http request option.
347
+ * @throws {RequiredError}
348
+ */
349
+ resetPassword(resetPasswordByCustomerRequestDto: ResetPasswordByCustomerRequestDto, options?: any): AxiosPromise<void>;
350
+ /**
351
+ * Verify the invite sent to the customer via email.
352
+ * @summary Verify customer\'s invite token
353
+ * @param {string} inviteToken Invite token sent to the customer
354
+ * @param {*} [options] Override http request option.
355
+ * @throws {RequiredError}
356
+ */
357
+ verifyInvite(inviteToken: string, options?: any): AxiosPromise<VerifyCustomerInviteResponseClass>;
358
+ /**
359
+ * Verify the reset password token that is sent by calling the \'forgot password\' endpoint.
360
+ * @summary Verify a reset password token
361
+ * @param {string} resetToken reset password token
362
+ * @param {*} [options] Override http request option.
363
+ * @throws {RequiredError}
364
+ */
365
+ verifyResetPasswordToken(resetToken: string, options?: any): AxiosPromise<void>;
366
+ };
367
+ /**
368
+ * Request parameters for createCustomer operation in CustomersApi.
369
+ * @export
370
+ * @interface CustomersApiCreateCustomerRequest
371
+ */
372
+ export interface CustomersApiCreateCustomerRequest {
373
+ /**
374
+ *
375
+ * @type {CreateCustomerRequestDto}
376
+ * @memberof CustomersApiCreateCustomer
377
+ */
378
+ readonly createCustomerRequestDto: CreateCustomerRequestDto;
379
+ }
380
+ /**
381
+ * Request parameters for forgotPassword operation in CustomersApi.
382
+ * @export
383
+ * @interface CustomersApiForgotPasswordRequest
384
+ */
385
+ export interface CustomersApiForgotPasswordRequest {
386
+ /**
387
+ *
388
+ * @type {ForgotPasswordRequestDto}
389
+ * @memberof CustomersApiForgotPassword
390
+ */
391
+ readonly forgotPasswordRequestDto: ForgotPasswordRequestDto;
392
+ }
393
+ /**
394
+ * Request parameters for getPolicy operation in CustomersApi.
395
+ * @export
396
+ * @interface CustomersApiGetPolicyRequest
397
+ */
398
+ export interface CustomersApiGetPolicyRequest {
399
+ /**
400
+ * The policy code
401
+ * @type {string}
402
+ * @memberof CustomersApiGetPolicy
403
+ */
404
+ readonly policyCode: string;
405
+ /**
406
+ * The customer code or \&quot;me\&quot; for the currently logged in customer
407
+ * @type {string}
408
+ * @memberof CustomersApiGetPolicy
409
+ */
410
+ readonly customerCode: string;
411
+ /**
412
+ * Fields to expand response by - [versions, premiumItems]
413
+ * @type {string}
414
+ * @memberof CustomersApiGetPolicy
415
+ */
416
+ readonly expand?: string;
417
+ /**
418
+ * Bearer Token: provided by the login endpoint under the name accessToken.
419
+ * @type {string}
420
+ * @memberof CustomersApiGetPolicy
421
+ */
422
+ readonly authorization?: string;
423
+ }
424
+ /**
425
+ * Request parameters for inviteCustomer operation in CustomersApi.
426
+ * @export
427
+ * @interface CustomersApiInviteCustomerRequest
428
+ */
429
+ export interface CustomersApiInviteCustomerRequest {
430
+ /**
431
+ *
432
+ * @type {InviteCustomerRequestDto}
433
+ * @memberof CustomersApiInviteCustomer
434
+ */
435
+ readonly inviteCustomerRequestDto: InviteCustomerRequestDto;
436
+ /**
437
+ * Bearer Token: provided by the Emil Insurance Suite\&#39;s Auth login endpoint under the name accessToken
438
+ * @type {string}
439
+ * @memberof CustomersApiInviteCustomer
440
+ */
441
+ readonly authorization?: string;
442
+ }
443
+ /**
444
+ * Request parameters for listInvoices operation in CustomersApi.
445
+ * @export
446
+ * @interface CustomersApiListInvoicesRequest
447
+ */
448
+ export interface CustomersApiListInvoicesRequest {
449
+ /**
450
+ * The customer code or \&quot;me\&quot; for the currently logged in customer
451
+ * @type {string}
452
+ * @memberof CustomersApiListInvoices
453
+ */
454
+ readonly customerCode: string;
455
+ /**
456
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
457
+ * @type {any}
458
+ * @memberof CustomersApiListInvoices
459
+ */
460
+ readonly pageSize?: any;
461
+ /**
462
+ * 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.
463
+ * @type {any}
464
+ * @memberof CustomersApiListInvoices
465
+ */
466
+ readonly pageToken?: any;
467
+ /**
468
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
469
+ * @type {any}
470
+ * @memberof CustomersApiListInvoices
471
+ */
472
+ readonly filter?: any;
473
+ /**
474
+ * Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
475
+ * @type {any}
476
+ * @memberof CustomersApiListInvoices
477
+ */
478
+ readonly search?: any;
479
+ /**
480
+ * 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.
481
+ * @type {any}
482
+ * @memberof CustomersApiListInvoices
483
+ */
484
+ readonly order?: any;
485
+ /**
486
+ * 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.
487
+ * @type {any}
488
+ * @memberof CustomersApiListInvoices
489
+ */
490
+ readonly expand?: any;
491
+ /**
492
+ * Bearer Token: provided by the login endpoint under the name accessToken.
493
+ * @type {string}
494
+ * @memberof CustomersApiListInvoices
495
+ */
496
+ readonly authorization?: string;
497
+ }
498
+ /**
499
+ * Request parameters for listPolicies operation in CustomersApi.
500
+ * @export
501
+ * @interface CustomersApiListPoliciesRequest
502
+ */
503
+ export interface CustomersApiListPoliciesRequest {
504
+ /**
505
+ * The customer code or \&quot;me\&quot; for the currently logged in customer
506
+ * @type {string}
507
+ * @memberof CustomersApiListPolicies
508
+ */
509
+ readonly customerCode: string;
510
+ /**
511
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
512
+ * @type {any}
513
+ * @memberof CustomersApiListPolicies
514
+ */
515
+ readonly pageSize?: any;
516
+ /**
517
+ * 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.
518
+ * @type {any}
519
+ * @memberof CustomersApiListPolicies
520
+ */
521
+ readonly pageToken?: any;
522
+ /**
523
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
524
+ * @type {any}
525
+ * @memberof CustomersApiListPolicies
526
+ */
527
+ readonly filter?: any;
528
+ /**
529
+ * Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
530
+ * @type {any}
531
+ * @memberof CustomersApiListPolicies
532
+ */
533
+ readonly search?: any;
534
+ /**
535
+ * 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.
536
+ * @type {any}
537
+ * @memberof CustomersApiListPolicies
538
+ */
539
+ readonly order?: any;
540
+ /**
541
+ * 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.
542
+ * @type {any}
543
+ * @memberof CustomersApiListPolicies
544
+ */
545
+ readonly expand?: any;
546
+ /**
547
+ * Bearer Token: provided by the login endpoint under the name accessToken.
548
+ * @type {string}
549
+ * @memberof CustomersApiListPolicies
550
+ */
551
+ readonly authorization?: string;
552
+ }
553
+ /**
554
+ * Request parameters for login operation in CustomersApi.
555
+ * @export
556
+ * @interface CustomersApiLoginRequest
557
+ */
558
+ export interface CustomersApiLoginRequest {
559
+ /**
560
+ *
561
+ * @type {LoginRequestDto}
562
+ * @memberof CustomersApiLogin
563
+ */
564
+ readonly loginRequestDto: LoginRequestDto;
565
+ }
566
+ /**
567
+ * Request parameters for refreshToken operation in CustomersApi.
568
+ * @export
569
+ * @interface CustomersApiRefreshTokenRequest
570
+ */
571
+ export interface CustomersApiRefreshTokenRequest {
572
+ /**
573
+ *
574
+ * @type {RefreshTokenDto}
575
+ * @memberof CustomersApiRefreshToken
576
+ */
577
+ readonly refreshTokenDto: RefreshTokenDto;
578
+ /**
579
+ * HTTP only cookie that was sent during login.
580
+ * @type {string}
581
+ * @memberof CustomersApiRefreshToken
582
+ */
583
+ readonly cookie?: string;
584
+ }
585
+ /**
586
+ * Request parameters for resetPassword operation in CustomersApi.
587
+ * @export
588
+ * @interface CustomersApiResetPasswordRequest
589
+ */
590
+ export interface CustomersApiResetPasswordRequest {
591
+ /**
592
+ *
593
+ * @type {ResetPasswordByCustomerRequestDto}
594
+ * @memberof CustomersApiResetPassword
595
+ */
596
+ readonly resetPasswordByCustomerRequestDto: ResetPasswordByCustomerRequestDto;
597
+ }
598
+ /**
599
+ * Request parameters for verifyInvite operation in CustomersApi.
600
+ * @export
601
+ * @interface CustomersApiVerifyInviteRequest
602
+ */
603
+ export interface CustomersApiVerifyInviteRequest {
604
+ /**
605
+ * Invite token sent to the customer
606
+ * @type {string}
607
+ * @memberof CustomersApiVerifyInvite
608
+ */
609
+ readonly inviteToken: string;
610
+ }
611
+ /**
612
+ * Request parameters for verifyResetPasswordToken operation in CustomersApi.
613
+ * @export
614
+ * @interface CustomersApiVerifyResetPasswordTokenRequest
615
+ */
616
+ export interface CustomersApiVerifyResetPasswordTokenRequest {
617
+ /**
618
+ * reset password token
619
+ * @type {string}
620
+ * @memberof CustomersApiVerifyResetPasswordToken
621
+ */
622
+ readonly resetToken: string;
623
+ }
624
+ /**
625
+ * CustomersApi - object-oriented interface
626
+ * @export
627
+ * @class CustomersApi
628
+ * @extends {BaseAPI}
629
+ */
630
+ export declare class CustomersApi extends BaseAPI {
631
+ /**
632
+ * Register a customer using the invite token sent to customer\'s email address. Customer can set a new password for his account created during booking a policy.
633
+ * @summary Register a customer after invite
634
+ * @param {CustomersApiCreateCustomerRequest} requestParameters Request parameters.
635
+ * @param {*} [options] Override http request option.
636
+ * @throws {RequiredError}
637
+ * @memberof CustomersApi
638
+ */
639
+ createCustomer(requestParameters: CustomersApiCreateCustomerRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateCustomerResponseClass, any>>;
640
+ /**
641
+ * Send a customer a reset-password token via email.
642
+ * @summary Forgot password by customer
643
+ * @param {CustomersApiForgotPasswordRequest} requestParameters Request parameters.
644
+ * @param {*} [options] Override http request option.
645
+ * @throws {RequiredError}
646
+ * @memberof CustomersApi
647
+ */
648
+ forgotPassword(requestParameters: CustomersApiForgotPasswordRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
649
+ /**
650
+ * Get detailed policy that belongs to a customer. The details can be expanded using expand query parameter.
651
+ * @summary Get policy details
652
+ * @param {CustomersApiGetPolicyRequest} requestParameters Request parameters.
653
+ * @param {*} [options] Override http request option.
654
+ * @throws {RequiredError}
655
+ * @memberof CustomersApi
656
+ */
657
+ getPolicy(requestParameters: CustomersApiGetPolicyRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPolicyResponseClass, any>>;
658
+ /**
659
+ * Send a customer an invite via email to register. An account should have been created before inviting the customer. To invite users without accounts and policies is not yet supported.
660
+ * @summary Invite a customer to register
661
+ * @param {CustomersApiInviteCustomerRequest} requestParameters Request parameters.
662
+ * @param {*} [options] Override http request option.
663
+ * @throws {RequiredError}
664
+ * @memberof CustomersApi
665
+ */
666
+ inviteCustomer(requestParameters: CustomersApiInviteCustomerRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InviteCustomerResponseClass, any>>;
667
+ /**
668
+ * List all the invoices of a customer
669
+ * @summary List invoices of a customer
670
+ * @param {CustomersApiListInvoicesRequest} requestParameters Request parameters.
671
+ * @param {*} [options] Override http request option.
672
+ * @throws {RequiredError}
673
+ * @memberof CustomersApi
674
+ */
675
+ listInvoices(requestParameters: CustomersApiListInvoicesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListInvoicesResponseClass, any>>;
676
+ /**
677
+ * List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
678
+ * @summary List policies of a customer
679
+ * @param {CustomersApiListPoliciesRequest} requestParameters Request parameters.
680
+ * @param {*} [options] Override http request option.
681
+ * @throws {RequiredError}
682
+ * @memberof CustomersApi
683
+ */
684
+ listPolicies(requestParameters: CustomersApiListPoliciesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPoliciesResponseClass, any>>;
685
+ /**
686
+ * Get new access token, refresh token after successful login.
687
+ * @summary Login by customer
688
+ * @param {CustomersApiLoginRequest} requestParameters Request parameters.
689
+ * @param {*} [options] Override http request option.
690
+ * @throws {RequiredError}
691
+ * @memberof CustomersApi
692
+ */
693
+ login(requestParameters: CustomersApiLoginRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<LoginResponseClass, any>>;
694
+ /**
695
+ * Get new access token, new refresh token.
696
+ * @summary Refresh token by customer
697
+ * @param {CustomersApiRefreshTokenRequest} requestParameters Request parameters.
698
+ * @param {*} [options] Override http request option.
699
+ * @throws {RequiredError}
700
+ * @memberof CustomersApi
701
+ */
702
+ refreshToken(requestParameters: CustomersApiRefreshTokenRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<LoginResponseClass, any>>;
703
+ /**
704
+ * Change customer\'s password using the token provided by the reset password endpoint.
705
+ * @summary Change password by customer
706
+ * @param {CustomersApiResetPasswordRequest} requestParameters Request parameters.
707
+ * @param {*} [options] Override http request option.
708
+ * @throws {RequiredError}
709
+ * @memberof CustomersApi
710
+ */
711
+ resetPassword(requestParameters: CustomersApiResetPasswordRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
712
+ /**
713
+ * Verify the invite sent to the customer via email.
714
+ * @summary Verify customer\'s invite token
715
+ * @param {CustomersApiVerifyInviteRequest} requestParameters Request parameters.
716
+ * @param {*} [options] Override http request option.
717
+ * @throws {RequiredError}
718
+ * @memberof CustomersApi
719
+ */
720
+ verifyInvite(requestParameters: CustomersApiVerifyInviteRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<VerifyCustomerInviteResponseClass, any>>;
721
+ /**
722
+ * Verify the reset password token that is sent by calling the \'forgot password\' endpoint.
723
+ * @summary Verify a reset password token
724
+ * @param {CustomersApiVerifyResetPasswordTokenRequest} requestParameters Request parameters.
725
+ * @param {*} [options] Override http request option.
726
+ * @throws {RequiredError}
727
+ * @memberof CustomersApi
728
+ */
729
+ verifyResetPasswordToken(requestParameters: CustomersApiVerifyResetPasswordTokenRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
730
+ }