@emilgroup/insurance-sdk-node 1.8.0 → 1.10.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 (66) hide show
  1. package/.openapi-generator/FILES +6 -0
  2. package/README.md +2 -2
  3. package/api/lead-statuses-api.ts +479 -0
  4. package/api/product-versions-api.ts +34 -6
  5. package/api.ts +2 -0
  6. package/base.ts +3 -3
  7. package/dist/api/lead-statuses-api.d.ts +265 -0
  8. package/dist/api/lead-statuses-api.js +505 -0
  9. package/dist/api/product-versions-api.d.ts +21 -3
  10. package/dist/api/product-versions-api.js +18 -6
  11. package/dist/api.d.ts +1 -0
  12. package/dist/api.js +1 -0
  13. package/dist/base.d.ts +1 -1
  14. package/dist/base.js +3 -3
  15. package/dist/models/create-lead-request-dto.d.ts +2 -9
  16. package/dist/models/create-lead-request-dto.js +0 -7
  17. package/dist/models/create-lead-status-request-dto.d.ts +30 -0
  18. package/dist/models/create-lead-status-request-dto.js +15 -0
  19. package/dist/models/create-lead-status-response-class.d.ts +25 -0
  20. package/dist/models/create-lead-status-response-class.js +15 -0
  21. package/dist/models/create-product-field-request-dto.d.ts +12 -0
  22. package/dist/models/get-lead-status-response-class.d.ts +25 -0
  23. package/dist/models/get-lead-status-response-class.js +15 -0
  24. package/dist/models/get-product-version-request-dto.d.ts +12 -0
  25. package/dist/models/index.d.ts +5 -0
  26. package/dist/models/index.js +5 -0
  27. package/dist/models/lead-class.d.ts +8 -8
  28. package/dist/models/lead-class.js +0 -7
  29. package/dist/models/lead-status-class.d.ts +36 -0
  30. package/dist/models/lead-status-class.js +15 -0
  31. package/dist/models/list-lead-statuses-response-class.d.ts +31 -0
  32. package/dist/models/list-lead-statuses-response-class.js +15 -0
  33. package/dist/models/policy-class.d.ts +12 -0
  34. package/dist/models/policy-object-class.d.ts +12 -0
  35. package/dist/models/policy-premium-class.d.ts +12 -0
  36. package/dist/models/policy-premium-item-class.d.ts +18 -0
  37. package/dist/models/premium-override-dto.d.ts +6 -0
  38. package/dist/models/product-field-class.d.ts +12 -0
  39. package/dist/models/shared-product-field-class.d.ts +12 -0
  40. package/dist/models/store-product-factors-request-dto.d.ts +1 -1
  41. package/dist/models/timeslice-class.d.ts +2 -2
  42. package/dist/models/update-lead-request-dto.d.ts +7 -14
  43. package/dist/models/update-lead-request-dto.js +0 -7
  44. package/dist/models/update-product-field-request-dto.d.ts +12 -0
  45. package/models/create-lead-request-dto.ts +2 -12
  46. package/models/create-lead-status-request-dto.ts +36 -0
  47. package/models/create-lead-status-response-class.ts +31 -0
  48. package/models/create-product-field-request-dto.ts +12 -0
  49. package/models/get-lead-status-response-class.ts +31 -0
  50. package/models/get-product-version-request-dto.ts +12 -0
  51. package/models/index.ts +5 -0
  52. package/models/lead-class.ts +8 -11
  53. package/models/lead-status-class.ts +42 -0
  54. package/models/list-lead-statuses-response-class.ts +37 -0
  55. package/models/policy-class.ts +12 -0
  56. package/models/policy-object-class.ts +12 -0
  57. package/models/policy-premium-class.ts +12 -0
  58. package/models/policy-premium-item-class.ts +18 -0
  59. package/models/premium-override-dto.ts +6 -0
  60. package/models/product-field-class.ts +12 -0
  61. package/models/shared-product-field-class.ts +12 -0
  62. package/models/store-product-factors-request-dto.ts +1 -1
  63. package/models/timeslice-class.ts +2 -2
  64. package/models/update-lead-request-dto.ts +7 -17
  65. package/models/update-product-field-request-dto.ts +12 -0
  66. package/package.json +2 -2
@@ -0,0 +1,265 @@
1
+ /**
2
+ * EMIL InsuranceService
3
+ * The EMIL InsuranceService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
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 { CreateLeadStatusRequestDto } from '../models';
16
+ import { CreateLeadStatusResponseClass } from '../models';
17
+ import { DeleteResponseClass } from '../models';
18
+ import { GetLeadStatusResponseClass } from '../models';
19
+ import { ListLeadStatusesResponseClass } from '../models';
20
+ /**
21
+ * LeadStatusesApi - axios parameter creator
22
+ * @export
23
+ */
24
+ export declare const LeadStatusesApiAxiosParamCreator: (configuration?: Configuration) => {
25
+ /**
26
+ * This will create a lead status. There are 3 predefined lead statuses in our service, but tenants can define their own custom lead statuses as well. Predefined lead statuses are \"created\",\"approved\" and \"declined\".
27
+ * @summary Create the lead status
28
+ * @param {CreateLeadStatusRequestDto} createLeadStatusRequestDto
29
+ * @param {string} [authorization] Bearer Token
30
+ * @param {*} [options] Override http request option.
31
+ * @throws {RequiredError}
32
+ */
33
+ createLeadStatus: (createLeadStatusRequestDto: CreateLeadStatusRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
34
+ /**
35
+ * Permanently deletes the lead status. Supply the unique id that was returned when you created the lead status and this will delete it. Deleting a lead status can have an impact on workflows, and it\'s crucial to ensure that no workflows are using the lead status that is being deleted.
36
+ * @summary Delete the lead status
37
+ * @param {number} id
38
+ * @param {string} [authorization] Bearer Token
39
+ * @param {*} [options] Override http request option.
40
+ * @throws {RequiredError}
41
+ */
42
+ deleteLeadStatus: (id: number, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
43
+ /**
44
+ * Retrieves the details of the lead status that was previously created. Supply the unique lead status code that was returned when you created it and Emil Api will return the corresponding lead status information.
45
+ * @summary Retrieve the lead status
46
+ * @param {number} id
47
+ * @param {string} [authorization] Bearer Token
48
+ * @param {*} [options] Override http request option.
49
+ * @throws {RequiredError}
50
+ */
51
+ getLeadStatus: (id: number, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
52
+ /**
53
+ * Returns a list of lead statuses you have previously created. The lead statuses are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
54
+ * @summary List lead statuses
55
+ * @param {string} [authorization] Bearer Token
56
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time. Parameters: owner, id, name and productSlug.
57
+ * @param {*} [options] Override http request option.
58
+ * @throws {RequiredError}
59
+ */
60
+ listLeadStatuses: (authorization?: string, filter?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
61
+ };
62
+ /**
63
+ * LeadStatusesApi - functional programming interface
64
+ * @export
65
+ */
66
+ export declare const LeadStatusesApiFp: (configuration?: Configuration) => {
67
+ /**
68
+ * This will create a lead status. There are 3 predefined lead statuses in our service, but tenants can define their own custom lead statuses as well. Predefined lead statuses are \"created\",\"approved\" and \"declined\".
69
+ * @summary Create the lead status
70
+ * @param {CreateLeadStatusRequestDto} createLeadStatusRequestDto
71
+ * @param {string} [authorization] Bearer Token
72
+ * @param {*} [options] Override http request option.
73
+ * @throws {RequiredError}
74
+ */
75
+ createLeadStatus(createLeadStatusRequestDto: CreateLeadStatusRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateLeadStatusResponseClass>>;
76
+ /**
77
+ * Permanently deletes the lead status. Supply the unique id that was returned when you created the lead status and this will delete it. Deleting a lead status can have an impact on workflows, and it\'s crucial to ensure that no workflows are using the lead status that is being deleted.
78
+ * @summary Delete the lead status
79
+ * @param {number} id
80
+ * @param {string} [authorization] Bearer Token
81
+ * @param {*} [options] Override http request option.
82
+ * @throws {RequiredError}
83
+ */
84
+ deleteLeadStatus(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>>;
85
+ /**
86
+ * Retrieves the details of the lead status that was previously created. Supply the unique lead status code that was returned when you created it and Emil Api will return the corresponding lead status information.
87
+ * @summary Retrieve the lead status
88
+ * @param {number} id
89
+ * @param {string} [authorization] Bearer Token
90
+ * @param {*} [options] Override http request option.
91
+ * @throws {RequiredError}
92
+ */
93
+ getLeadStatus(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetLeadStatusResponseClass>>;
94
+ /**
95
+ * Returns a list of lead statuses you have previously created. The lead statuses are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
96
+ * @summary List lead statuses
97
+ * @param {string} [authorization] Bearer Token
98
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time. Parameters: owner, id, name and productSlug.
99
+ * @param {*} [options] Override http request option.
100
+ * @throws {RequiredError}
101
+ */
102
+ listLeadStatuses(authorization?: string, filter?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListLeadStatusesResponseClass>>;
103
+ };
104
+ /**
105
+ * LeadStatusesApi - factory interface
106
+ * @export
107
+ */
108
+ export declare const LeadStatusesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
109
+ /**
110
+ * This will create a lead status. There are 3 predefined lead statuses in our service, but tenants can define their own custom lead statuses as well. Predefined lead statuses are \"created\",\"approved\" and \"declined\".
111
+ * @summary Create the lead status
112
+ * @param {CreateLeadStatusRequestDto} createLeadStatusRequestDto
113
+ * @param {string} [authorization] Bearer Token
114
+ * @param {*} [options] Override http request option.
115
+ * @throws {RequiredError}
116
+ */
117
+ createLeadStatus(createLeadStatusRequestDto: CreateLeadStatusRequestDto, authorization?: string, options?: any): AxiosPromise<CreateLeadStatusResponseClass>;
118
+ /**
119
+ * Permanently deletes the lead status. Supply the unique id that was returned when you created the lead status and this will delete it. Deleting a lead status can have an impact on workflows, and it\'s crucial to ensure that no workflows are using the lead status that is being deleted.
120
+ * @summary Delete the lead status
121
+ * @param {number} id
122
+ * @param {string} [authorization] Bearer Token
123
+ * @param {*} [options] Override http request option.
124
+ * @throws {RequiredError}
125
+ */
126
+ deleteLeadStatus(id: number, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass>;
127
+ /**
128
+ * Retrieves the details of the lead status that was previously created. Supply the unique lead status code that was returned when you created it and Emil Api will return the corresponding lead status information.
129
+ * @summary Retrieve the lead status
130
+ * @param {number} id
131
+ * @param {string} [authorization] Bearer Token
132
+ * @param {*} [options] Override http request option.
133
+ * @throws {RequiredError}
134
+ */
135
+ getLeadStatus(id: number, authorization?: string, options?: any): AxiosPromise<GetLeadStatusResponseClass>;
136
+ /**
137
+ * Returns a list of lead statuses you have previously created. The lead statuses are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
138
+ * @summary List lead statuses
139
+ * @param {string} [authorization] Bearer Token
140
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time. Parameters: owner, id, name and productSlug.
141
+ * @param {*} [options] Override http request option.
142
+ * @throws {RequiredError}
143
+ */
144
+ listLeadStatuses(authorization?: string, filter?: string, options?: any): AxiosPromise<ListLeadStatusesResponseClass>;
145
+ };
146
+ /**
147
+ * Request parameters for createLeadStatus operation in LeadStatusesApi.
148
+ * @export
149
+ * @interface LeadStatusesApiCreateLeadStatusRequest
150
+ */
151
+ export interface LeadStatusesApiCreateLeadStatusRequest {
152
+ /**
153
+ *
154
+ * @type {CreateLeadStatusRequestDto}
155
+ * @memberof LeadStatusesApiCreateLeadStatus
156
+ */
157
+ readonly createLeadStatusRequestDto: CreateLeadStatusRequestDto;
158
+ /**
159
+ * Bearer Token
160
+ * @type {string}
161
+ * @memberof LeadStatusesApiCreateLeadStatus
162
+ */
163
+ readonly authorization?: string;
164
+ }
165
+ /**
166
+ * Request parameters for deleteLeadStatus operation in LeadStatusesApi.
167
+ * @export
168
+ * @interface LeadStatusesApiDeleteLeadStatusRequest
169
+ */
170
+ export interface LeadStatusesApiDeleteLeadStatusRequest {
171
+ /**
172
+ *
173
+ * @type {number}
174
+ * @memberof LeadStatusesApiDeleteLeadStatus
175
+ */
176
+ readonly id: number;
177
+ /**
178
+ * Bearer Token
179
+ * @type {string}
180
+ * @memberof LeadStatusesApiDeleteLeadStatus
181
+ */
182
+ readonly authorization?: string;
183
+ }
184
+ /**
185
+ * Request parameters for getLeadStatus operation in LeadStatusesApi.
186
+ * @export
187
+ * @interface LeadStatusesApiGetLeadStatusRequest
188
+ */
189
+ export interface LeadStatusesApiGetLeadStatusRequest {
190
+ /**
191
+ *
192
+ * @type {number}
193
+ * @memberof LeadStatusesApiGetLeadStatus
194
+ */
195
+ readonly id: number;
196
+ /**
197
+ * Bearer Token
198
+ * @type {string}
199
+ * @memberof LeadStatusesApiGetLeadStatus
200
+ */
201
+ readonly authorization?: string;
202
+ }
203
+ /**
204
+ * Request parameters for listLeadStatuses operation in LeadStatusesApi.
205
+ * @export
206
+ * @interface LeadStatusesApiListLeadStatusesRequest
207
+ */
208
+ export interface LeadStatusesApiListLeadStatusesRequest {
209
+ /**
210
+ * Bearer Token
211
+ * @type {string}
212
+ * @memberof LeadStatusesApiListLeadStatuses
213
+ */
214
+ readonly authorization?: string;
215
+ /**
216
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time. Parameters: owner, id, name and productSlug.
217
+ * @type {string}
218
+ * @memberof LeadStatusesApiListLeadStatuses
219
+ */
220
+ readonly filter?: string;
221
+ }
222
+ /**
223
+ * LeadStatusesApi - object-oriented interface
224
+ * @export
225
+ * @class LeadStatusesApi
226
+ * @extends {BaseAPI}
227
+ */
228
+ export declare class LeadStatusesApi extends BaseAPI {
229
+ /**
230
+ * This will create a lead status. There are 3 predefined lead statuses in our service, but tenants can define their own custom lead statuses as well. Predefined lead statuses are \"created\",\"approved\" and \"declined\".
231
+ * @summary Create the lead status
232
+ * @param {LeadStatusesApiCreateLeadStatusRequest} requestParameters Request parameters.
233
+ * @param {*} [options] Override http request option.
234
+ * @throws {RequiredError}
235
+ * @memberof LeadStatusesApi
236
+ */
237
+ createLeadStatus(requestParameters: LeadStatusesApiCreateLeadStatusRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateLeadStatusResponseClass, any>>;
238
+ /**
239
+ * Permanently deletes the lead status. Supply the unique id that was returned when you created the lead status and this will delete it. Deleting a lead status can have an impact on workflows, and it\'s crucial to ensure that no workflows are using the lead status that is being deleted.
240
+ * @summary Delete the lead status
241
+ * @param {LeadStatusesApiDeleteLeadStatusRequest} requestParameters Request parameters.
242
+ * @param {*} [options] Override http request option.
243
+ * @throws {RequiredError}
244
+ * @memberof LeadStatusesApi
245
+ */
246
+ deleteLeadStatus(requestParameters: LeadStatusesApiDeleteLeadStatusRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteResponseClass, any>>;
247
+ /**
248
+ * Retrieves the details of the lead status that was previously created. Supply the unique lead status code that was returned when you created it and Emil Api will return the corresponding lead status information.
249
+ * @summary Retrieve the lead status
250
+ * @param {LeadStatusesApiGetLeadStatusRequest} requestParameters Request parameters.
251
+ * @param {*} [options] Override http request option.
252
+ * @throws {RequiredError}
253
+ * @memberof LeadStatusesApi
254
+ */
255
+ getLeadStatus(requestParameters: LeadStatusesApiGetLeadStatusRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetLeadStatusResponseClass, any>>;
256
+ /**
257
+ * Returns a list of lead statuses you have previously created. The lead statuses are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
258
+ * @summary List lead statuses
259
+ * @param {LeadStatusesApiListLeadStatusesRequest} requestParameters Request parameters.
260
+ * @param {*} [options] Override http request option.
261
+ * @throws {RequiredError}
262
+ * @memberof LeadStatusesApi
263
+ */
264
+ listLeadStatuses(requestParameters?: LeadStatusesApiListLeadStatusesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListLeadStatusesResponseClass, any>>;
265
+ }