@emilgroup/claim-sdk-node 1.3.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.
@@ -0,0 +1,316 @@
1
+ /**
2
+ * EMIL ClaimService
3
+ * The EMIL ClaimService 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 { CreateClaimRequestDto } from '../models';
16
+ import { UpdateClaimRequestDto } from '../models';
17
+ /**
18
+ * ClaimsApi - axios parameter creator
19
+ * @export
20
+ */
21
+ export declare const ClaimsApiAxiosParamCreator: (configuration?: Configuration) => {
22
+ /**
23
+ * This will create a claim in the database
24
+ * @summary Create the claim
25
+ * @param {CreateClaimRequestDto} createClaimRequestDto
26
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
27
+ * @param {*} [options] Override http request option.
28
+ * @throws {RequiredError}
29
+ */
30
+ createClaim: (createClaimRequestDto: CreateClaimRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
31
+ /**
32
+ * This will fetch the identified claim from the database by code
33
+ * @summary Retrieve the claim
34
+ * @param {string} code
35
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
36
+ * @param {*} [options] Override http request option.
37
+ * @throws {RequiredError}
38
+ */
39
+ getClaim: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
40
+ /**
41
+ * This will fetch list of claims from the database
42
+ * @summary Retrieve the claim
43
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
44
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
45
+ * @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.
46
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
47
+ * @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.
48
+ * @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.
49
+ * @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.
50
+ * @param {*} [options] Override http request option.
51
+ * @throws {RequiredError}
52
+ */
53
+ listClaims: (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
54
+ /**
55
+ * This will update the identified claim in the database
56
+ * @summary Update the claim
57
+ * @param {string} code
58
+ * @param {UpdateClaimRequestDto} updateClaimRequestDto
59
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
60
+ * @param {*} [options] Override http request option.
61
+ * @throws {RequiredError}
62
+ */
63
+ updateClaim: (code: string, updateClaimRequestDto: UpdateClaimRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
64
+ };
65
+ /**
66
+ * ClaimsApi - functional programming interface
67
+ * @export
68
+ */
69
+ export declare const ClaimsApiFp: (configuration?: Configuration) => {
70
+ /**
71
+ * This will create a claim in the database
72
+ * @summary Create the claim
73
+ * @param {CreateClaimRequestDto} createClaimRequestDto
74
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
75
+ * @param {*} [options] Override http request option.
76
+ * @throws {RequiredError}
77
+ */
78
+ createClaim(createClaimRequestDto: CreateClaimRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
79
+ /**
80
+ * This will fetch the identified claim from the database by code
81
+ * @summary Retrieve the claim
82
+ * @param {string} code
83
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
84
+ * @param {*} [options] Override http request option.
85
+ * @throws {RequiredError}
86
+ */
87
+ getClaim(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
88
+ /**
89
+ * This will fetch list of claims from the database
90
+ * @summary Retrieve the claim
91
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
92
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
93
+ * @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.
94
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
95
+ * @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.
96
+ * @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.
97
+ * @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.
98
+ * @param {*} [options] Override http request option.
99
+ * @throws {RequiredError}
100
+ */
101
+ listClaims(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
102
+ /**
103
+ * This will update the identified claim in the database
104
+ * @summary Update the claim
105
+ * @param {string} code
106
+ * @param {UpdateClaimRequestDto} updateClaimRequestDto
107
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
108
+ * @param {*} [options] Override http request option.
109
+ * @throws {RequiredError}
110
+ */
111
+ updateClaim(code: string, updateClaimRequestDto: UpdateClaimRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
112
+ };
113
+ /**
114
+ * ClaimsApi - factory interface
115
+ * @export
116
+ */
117
+ export declare const ClaimsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
118
+ /**
119
+ * This will create a claim in the database
120
+ * @summary Create the claim
121
+ * @param {CreateClaimRequestDto} createClaimRequestDto
122
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
123
+ * @param {*} [options] Override http request option.
124
+ * @throws {RequiredError}
125
+ */
126
+ createClaim(createClaimRequestDto: CreateClaimRequestDto, authorization?: string, options?: any): AxiosPromise<object>;
127
+ /**
128
+ * This will fetch the identified claim from the database by code
129
+ * @summary Retrieve the claim
130
+ * @param {string} code
131
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
132
+ * @param {*} [options] Override http request option.
133
+ * @throws {RequiredError}
134
+ */
135
+ getClaim(code: string, authorization?: string, options?: any): AxiosPromise<object>;
136
+ /**
137
+ * This will fetch list of claims from the database
138
+ * @summary Retrieve the claim
139
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
140
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
141
+ * @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.
142
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
143
+ * @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.
144
+ * @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.
145
+ * @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.
146
+ * @param {*} [options] Override http request option.
147
+ * @throws {RequiredError}
148
+ */
149
+ listClaims(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<object>;
150
+ /**
151
+ * This will update the identified claim in the database
152
+ * @summary Update the claim
153
+ * @param {string} code
154
+ * @param {UpdateClaimRequestDto} updateClaimRequestDto
155
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
156
+ * @param {*} [options] Override http request option.
157
+ * @throws {RequiredError}
158
+ */
159
+ updateClaim(code: string, updateClaimRequestDto: UpdateClaimRequestDto, authorization?: string, options?: any): AxiosPromise<object>;
160
+ };
161
+ /**
162
+ * Request parameters for createClaim operation in ClaimsApi.
163
+ * @export
164
+ * @interface ClaimsApiCreateClaimRequest
165
+ */
166
+ export interface ClaimsApiCreateClaimRequest {
167
+ /**
168
+ *
169
+ * @type {CreateClaimRequestDto}
170
+ * @memberof ClaimsApiCreateClaim
171
+ */
172
+ readonly createClaimRequestDto: CreateClaimRequestDto;
173
+ /**
174
+ * Bearer Token: provided by the login endpoint under the name accessToken.
175
+ * @type {string}
176
+ * @memberof ClaimsApiCreateClaim
177
+ */
178
+ readonly authorization?: string;
179
+ }
180
+ /**
181
+ * Request parameters for getClaim operation in ClaimsApi.
182
+ * @export
183
+ * @interface ClaimsApiGetClaimRequest
184
+ */
185
+ export interface ClaimsApiGetClaimRequest {
186
+ /**
187
+ *
188
+ * @type {string}
189
+ * @memberof ClaimsApiGetClaim
190
+ */
191
+ readonly code: string;
192
+ /**
193
+ * Bearer Token: provided by the login endpoint under the name accessToken.
194
+ * @type {string}
195
+ * @memberof ClaimsApiGetClaim
196
+ */
197
+ readonly authorization?: string;
198
+ }
199
+ /**
200
+ * Request parameters for listClaims operation in ClaimsApi.
201
+ * @export
202
+ * @interface ClaimsApiListClaimsRequest
203
+ */
204
+ export interface ClaimsApiListClaimsRequest {
205
+ /**
206
+ * Bearer Token: provided by the login endpoint under the name accessToken.
207
+ * @type {string}
208
+ * @memberof ClaimsApiListClaims
209
+ */
210
+ readonly authorization?: string;
211
+ /**
212
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
213
+ * @type {any}
214
+ * @memberof ClaimsApiListClaims
215
+ */
216
+ readonly pageSize?: any;
217
+ /**
218
+ * 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.
219
+ * @type {any}
220
+ * @memberof ClaimsApiListClaims
221
+ */
222
+ readonly pageToken?: any;
223
+ /**
224
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
225
+ * @type {any}
226
+ * @memberof ClaimsApiListClaims
227
+ */
228
+ readonly filter?: any;
229
+ /**
230
+ * 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.
231
+ * @type {any}
232
+ * @memberof ClaimsApiListClaims
233
+ */
234
+ readonly search?: any;
235
+ /**
236
+ * 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.
237
+ * @type {any}
238
+ * @memberof ClaimsApiListClaims
239
+ */
240
+ readonly order?: any;
241
+ /**
242
+ * 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.
243
+ * @type {any}
244
+ * @memberof ClaimsApiListClaims
245
+ */
246
+ readonly expand?: any;
247
+ }
248
+ /**
249
+ * Request parameters for updateClaim operation in ClaimsApi.
250
+ * @export
251
+ * @interface ClaimsApiUpdateClaimRequest
252
+ */
253
+ export interface ClaimsApiUpdateClaimRequest {
254
+ /**
255
+ *
256
+ * @type {string}
257
+ * @memberof ClaimsApiUpdateClaim
258
+ */
259
+ readonly code: string;
260
+ /**
261
+ *
262
+ * @type {UpdateClaimRequestDto}
263
+ * @memberof ClaimsApiUpdateClaim
264
+ */
265
+ readonly updateClaimRequestDto: UpdateClaimRequestDto;
266
+ /**
267
+ * Bearer Token: provided by the login endpoint under the name accessToken.
268
+ * @type {string}
269
+ * @memberof ClaimsApiUpdateClaim
270
+ */
271
+ readonly authorization?: string;
272
+ }
273
+ /**
274
+ * ClaimsApi - object-oriented interface
275
+ * @export
276
+ * @class ClaimsApi
277
+ * @extends {BaseAPI}
278
+ */
279
+ export declare class ClaimsApi extends BaseAPI {
280
+ /**
281
+ * This will create a claim in the database
282
+ * @summary Create the claim
283
+ * @param {ClaimsApiCreateClaimRequest} requestParameters Request parameters.
284
+ * @param {*} [options] Override http request option.
285
+ * @throws {RequiredError}
286
+ * @memberof ClaimsApi
287
+ */
288
+ createClaim(requestParameters: ClaimsApiCreateClaimRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
289
+ /**
290
+ * This will fetch the identified claim from the database by code
291
+ * @summary Retrieve the claim
292
+ * @param {ClaimsApiGetClaimRequest} requestParameters Request parameters.
293
+ * @param {*} [options] Override http request option.
294
+ * @throws {RequiredError}
295
+ * @memberof ClaimsApi
296
+ */
297
+ getClaim(requestParameters: ClaimsApiGetClaimRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
298
+ /**
299
+ * This will fetch list of claims from the database
300
+ * @summary Retrieve the claim
301
+ * @param {ClaimsApiListClaimsRequest} requestParameters Request parameters.
302
+ * @param {*} [options] Override http request option.
303
+ * @throws {RequiredError}
304
+ * @memberof ClaimsApi
305
+ */
306
+ listClaims(requestParameters?: ClaimsApiListClaimsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
307
+ /**
308
+ * This will update the identified claim in the database
309
+ * @summary Update the claim
310
+ * @param {ClaimsApiUpdateClaimRequest} requestParameters Request parameters.
311
+ * @param {*} [options] Override http request option.
312
+ * @throws {RequiredError}
313
+ * @memberof ClaimsApi
314
+ */
315
+ updateClaim(requestParameters: ClaimsApiUpdateClaimRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
316
+ }