@emilgroup/claim-sdk 1.17.2-beta.1 → 1.17.2-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +10 -0
- package/README.md +2 -2
- package/api/claim-partner-roles-api.ts +9 -9
- package/api/claim-regulations-api.ts +364 -0
- package/api/claim-statuses-api.ts +9 -9
- package/api.ts +2 -0
- package/base.ts +5 -1
- package/dist/api/claim-partner-roles-api.d.ts +9 -9
- package/dist/api/claim-partner-roles-api.js +3 -3
- package/dist/api/claim-regulations-api.d.ts +215 -0
- package/dist/api/claim-regulations-api.js +358 -0
- package/dist/api/claim-statuses-api.d.ts +9 -9
- package/dist/api/claim-statuses-api.js +3 -3
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/base.d.ts +1 -0
- package/dist/base.js +4 -1
- package/dist/models/create-regulation-item-request-dto.d.ts +75 -0
- package/dist/models/create-regulation-item-request-dto.js +21 -0
- package/dist/models/index.d.ts +9 -0
- package/dist/models/index.js +9 -0
- package/dist/models/payout-details-class.d.ts +90 -0
- package/dist/models/payout-details-class.js +26 -0
- package/dist/models/payout-details-dto.d.ts +60 -0
- package/dist/models/payout-details-dto.js +26 -0
- package/dist/models/regress-details-class.d.ts +81 -0
- package/dist/models/regress-details-class.js +29 -0
- package/dist/models/regress-details-dto.d.ts +51 -0
- package/dist/models/regress-details-dto.js +29 -0
- package/dist/models/regulation-item-class.d.ts +125 -0
- package/dist/models/regulation-item-class.js +34 -0
- package/dist/models/regulation-item-response-class.d.ts +25 -0
- package/dist/models/regulation-item-response-class.js +15 -0
- package/dist/models/reserve-details-class.d.ts +59 -0
- package/dist/models/reserve-details-class.js +20 -0
- package/dist/models/reserve-details-dto.d.ts +29 -0
- package/dist/models/reserve-details-dto.js +20 -0
- package/models/create-regulation-item-request-dto.ts +84 -0
- package/models/index.ts +9 -0
- package/models/payout-details-class.ts +100 -0
- package/models/payout-details-dto.ts +70 -0
- package/models/regress-details-class.ts +91 -0
- package/models/regress-details-dto.ts +61 -0
- package/models/regulation-item-class.ts +135 -0
- package/models/regulation-item-response-class.ts +31 -0
- package/models/reserve-details-class.ts +68 -0
- package/models/reserve-details-dto.ts +38 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -5,6 +5,7 @@ README.md
|
|
|
5
5
|
api.ts
|
|
6
6
|
api/claim-partner-roles-api.ts
|
|
7
7
|
api/claim-partners-api.ts
|
|
8
|
+
api/claim-regulations-api.ts
|
|
8
9
|
api/claim-statuses-api.ts
|
|
9
10
|
api/claims-api.ts
|
|
10
11
|
api/default-api.ts
|
|
@@ -26,6 +27,7 @@ models/create-claim-request-dto.ts
|
|
|
26
27
|
models/create-claim-response-class.ts
|
|
27
28
|
models/create-claim-status-request-dto.ts
|
|
28
29
|
models/create-claim-status-response-class.ts
|
|
30
|
+
models/create-regulation-item-request-dto.ts
|
|
29
31
|
models/create-settlement-request-dto.ts
|
|
30
32
|
models/create-settlement-response-class.ts
|
|
31
33
|
models/get-claim-partner-response-class.ts
|
|
@@ -43,6 +45,14 @@ models/list-claims-response-class.ts
|
|
|
43
45
|
models/list-settlements-response-class.ts
|
|
44
46
|
models/patch-claim-request-dto.ts
|
|
45
47
|
models/patch-claim-response-class.ts
|
|
48
|
+
models/payout-details-class.ts
|
|
49
|
+
models/payout-details-dto.ts
|
|
50
|
+
models/regress-details-class.ts
|
|
51
|
+
models/regress-details-dto.ts
|
|
52
|
+
models/regulation-item-class.ts
|
|
53
|
+
models/regulation-item-response-class.ts
|
|
54
|
+
models/reserve-details-class.ts
|
|
55
|
+
models/reserve-details-dto.ts
|
|
46
56
|
models/settlement-class.ts
|
|
47
57
|
models/update-claim-partner-role-request-dto.ts
|
|
48
58
|
models/update-claim-partner-role-response-class.ts
|
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/claim-sdk@1.17.2-beta.
|
|
20
|
+
npm install @emilgroup/claim-sdk@1.17.2-beta.2 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/claim-sdk@1.17.2-beta.
|
|
24
|
+
yarn add @emilgroup/claim-sdk@1.17.2-beta.2
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `ClaimsApi`.
|
|
@@ -184,12 +184,12 @@ export const ClaimPartnerRolesApiAxiosParamCreator = function (configuration?: C
|
|
|
184
184
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: name, productSlug</i>
|
|
185
185
|
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: name, productSlug</i>
|
|
186
186
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, name, productSlug, createdAt, updatedAt</i>
|
|
187
|
-
* @param {
|
|
187
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: .<i>
|
|
188
188
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: name, productSlug</i>
|
|
189
189
|
* @param {*} [options] Override http request option.
|
|
190
190
|
* @throws {RequiredError}
|
|
191
191
|
*/
|
|
192
|
-
listClaimPartnerRole: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: string, order?: string, expand?:
|
|
192
|
+
listClaimPartnerRole: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
193
193
|
const localVarPath = `/v1/claim-partner-roles`;
|
|
194
194
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
195
195
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -357,12 +357,12 @@ export const ClaimPartnerRolesApiFp = function(configuration?: Configuration) {
|
|
|
357
357
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: name, productSlug</i>
|
|
358
358
|
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: name, productSlug</i>
|
|
359
359
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, name, productSlug, createdAt, updatedAt</i>
|
|
360
|
-
* @param {
|
|
360
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: .<i>
|
|
361
361
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: name, productSlug</i>
|
|
362
362
|
* @param {*} [options] Override http request option.
|
|
363
363
|
* @throws {RequiredError}
|
|
364
364
|
*/
|
|
365
|
-
async listClaimPartnerRole(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: string, order?: string, expand?:
|
|
365
|
+
async listClaimPartnerRole(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListClaimPartnerRolesResponseClass>> {
|
|
366
366
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listClaimPartnerRole(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
367
367
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
368
368
|
},
|
|
@@ -431,12 +431,12 @@ export const ClaimPartnerRolesApiFactory = function (configuration?: Configurati
|
|
|
431
431
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: name, productSlug</i>
|
|
432
432
|
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: name, productSlug</i>
|
|
433
433
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, name, productSlug, createdAt, updatedAt</i>
|
|
434
|
-
* @param {
|
|
434
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: .<i>
|
|
435
435
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: name, productSlug</i>
|
|
436
436
|
* @param {*} [options] Override http request option.
|
|
437
437
|
* @throws {RequiredError}
|
|
438
438
|
*/
|
|
439
|
-
listClaimPartnerRole(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: string, order?: string, expand?:
|
|
439
|
+
listClaimPartnerRole(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListClaimPartnerRolesResponseClass> {
|
|
440
440
|
return localVarFp.listClaimPartnerRole(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
441
441
|
},
|
|
442
442
|
/**
|
|
@@ -566,11 +566,11 @@ export interface ClaimPartnerRolesApiListClaimPartnerRoleRequest {
|
|
|
566
566
|
readonly order?: string
|
|
567
567
|
|
|
568
568
|
/**
|
|
569
|
-
*
|
|
570
|
-
* @type {
|
|
569
|
+
* Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: .<i>
|
|
570
|
+
* @type {string}
|
|
571
571
|
* @memberof ClaimPartnerRolesApiListClaimPartnerRole
|
|
572
572
|
*/
|
|
573
|
-
readonly expand?:
|
|
573
|
+
readonly expand?: string
|
|
574
574
|
|
|
575
575
|
/**
|
|
576
576
|
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: name, productSlug</i>
|
|
@@ -0,0 +1,364 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL ClaimService
|
|
5
|
+
* The EMIL ClaimService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
17
|
+
import { Configuration } from '../configuration';
|
|
18
|
+
// Some imports not used depending on template conditions
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { CreateRegulationItemRequestDto } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { RegulationItemResponseClass } from '../models';
|
|
27
|
+
/**
|
|
28
|
+
* ClaimRegulationsApi - axios parameter creator
|
|
29
|
+
* @export
|
|
30
|
+
*/
|
|
31
|
+
export const ClaimRegulationsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
32
|
+
return {
|
|
33
|
+
/**
|
|
34
|
+
* This endpoint will create a new regulation item for a claim
|
|
35
|
+
* @summary Create the claim regulation item
|
|
36
|
+
* @param {CreateRegulationItemRequestDto} createRegulationItemRequestDto
|
|
37
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
38
|
+
* @param {*} [options] Override http request option.
|
|
39
|
+
* @throws {RequiredError}
|
|
40
|
+
*/
|
|
41
|
+
createClaimRegulation: async (createRegulationItemRequestDto: CreateRegulationItemRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
42
|
+
// verify required parameter 'createRegulationItemRequestDto' is not null or undefined
|
|
43
|
+
assertParamExists('createClaimRegulation', 'createRegulationItemRequestDto', createRegulationItemRequestDto)
|
|
44
|
+
const localVarPath = `/v1/claims/regulations`;
|
|
45
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
46
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
47
|
+
let baseOptions;
|
|
48
|
+
let baseAccessToken;
|
|
49
|
+
if (configuration) {
|
|
50
|
+
baseOptions = configuration.baseOptions;
|
|
51
|
+
baseAccessToken = configuration.accessToken;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
55
|
+
const localVarHeaderParameter = {} as any;
|
|
56
|
+
const localVarQueryParameter = {} as any;
|
|
57
|
+
|
|
58
|
+
// authentication bearer required
|
|
59
|
+
// http bearer authentication required
|
|
60
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
61
|
+
|
|
62
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
63
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
69
|
+
|
|
70
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
71
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
72
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
73
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createRegulationItemRequestDto, localVarRequestOptions, configuration)
|
|
74
|
+
|
|
75
|
+
return {
|
|
76
|
+
url: toPathString(localVarUrlObj),
|
|
77
|
+
options: localVarRequestOptions,
|
|
78
|
+
};
|
|
79
|
+
},
|
|
80
|
+
/**
|
|
81
|
+
* Retrieves the details of the claim regulation item that was previously created. Supply the unique claim regulation item code that was returned when you created it and Emil Api will return the corresponding claim regulation item information.
|
|
82
|
+
* @summary Retrieve the claim regulation item
|
|
83
|
+
* @param {string} code
|
|
84
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
85
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
86
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
87
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
88
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
89
|
+
* @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.
|
|
90
|
+
* @param {'partners'} [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.
|
|
91
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
92
|
+
* @param {*} [options] Override http request option.
|
|
93
|
+
* @throws {RequiredError}
|
|
94
|
+
*/
|
|
95
|
+
getClaimRegulation: async (code: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: 'partners', filters?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
96
|
+
// verify required parameter 'code' is not null or undefined
|
|
97
|
+
assertParamExists('getClaimRegulation', 'code', code)
|
|
98
|
+
const localVarPath = `/v1/claims/regulations/{code}`
|
|
99
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
100
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
101
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
102
|
+
let baseOptions;
|
|
103
|
+
let baseAccessToken;
|
|
104
|
+
if (configuration) {
|
|
105
|
+
baseOptions = configuration.baseOptions;
|
|
106
|
+
baseAccessToken = configuration.accessToken;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
110
|
+
const localVarHeaderParameter = {} as any;
|
|
111
|
+
const localVarQueryParameter = {} as any;
|
|
112
|
+
|
|
113
|
+
// authentication bearer required
|
|
114
|
+
// http bearer authentication required
|
|
115
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
116
|
+
|
|
117
|
+
if (pageSize !== undefined) {
|
|
118
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
if (pageToken !== undefined) {
|
|
122
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
if (filter !== undefined) {
|
|
126
|
+
localVarQueryParameter['filter'] = filter;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
if (search !== undefined) {
|
|
130
|
+
localVarQueryParameter['search'] = search;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
if (order !== undefined) {
|
|
134
|
+
localVarQueryParameter['order'] = order;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
if (expand !== undefined) {
|
|
138
|
+
localVarQueryParameter['expand'] = expand;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
if (filters !== undefined) {
|
|
142
|
+
localVarQueryParameter['filters'] = filters;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
146
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
152
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
153
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
154
|
+
|
|
155
|
+
return {
|
|
156
|
+
url: toPathString(localVarUrlObj),
|
|
157
|
+
options: localVarRequestOptions,
|
|
158
|
+
};
|
|
159
|
+
},
|
|
160
|
+
}
|
|
161
|
+
};
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* ClaimRegulationsApi - functional programming interface
|
|
165
|
+
* @export
|
|
166
|
+
*/
|
|
167
|
+
export const ClaimRegulationsApiFp = function(configuration?: Configuration) {
|
|
168
|
+
const localVarAxiosParamCreator = ClaimRegulationsApiAxiosParamCreator(configuration)
|
|
169
|
+
return {
|
|
170
|
+
/**
|
|
171
|
+
* This endpoint will create a new regulation item for a claim
|
|
172
|
+
* @summary Create the claim regulation item
|
|
173
|
+
* @param {CreateRegulationItemRequestDto} createRegulationItemRequestDto
|
|
174
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
175
|
+
* @param {*} [options] Override http request option.
|
|
176
|
+
* @throws {RequiredError}
|
|
177
|
+
*/
|
|
178
|
+
async createClaimRegulation(createRegulationItemRequestDto: CreateRegulationItemRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RegulationItemResponseClass>> {
|
|
179
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createClaimRegulation(createRegulationItemRequestDto, authorization, options);
|
|
180
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
181
|
+
},
|
|
182
|
+
/**
|
|
183
|
+
* Retrieves the details of the claim regulation item that was previously created. Supply the unique claim regulation item code that was returned when you created it and Emil Api will return the corresponding claim regulation item information.
|
|
184
|
+
* @summary Retrieve the claim regulation item
|
|
185
|
+
* @param {string} code
|
|
186
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
187
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
188
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
189
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
190
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
191
|
+
* @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.
|
|
192
|
+
* @param {'partners'} [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.
|
|
193
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
194
|
+
* @param {*} [options] Override http request option.
|
|
195
|
+
* @throws {RequiredError}
|
|
196
|
+
*/
|
|
197
|
+
async getClaimRegulation(code: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: 'partners', filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RegulationItemResponseClass>> {
|
|
198
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getClaimRegulation(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
199
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
200
|
+
},
|
|
201
|
+
}
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* ClaimRegulationsApi - factory interface
|
|
206
|
+
* @export
|
|
207
|
+
*/
|
|
208
|
+
export const ClaimRegulationsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
209
|
+
const localVarFp = ClaimRegulationsApiFp(configuration)
|
|
210
|
+
return {
|
|
211
|
+
/**
|
|
212
|
+
* This endpoint will create a new regulation item for a claim
|
|
213
|
+
* @summary Create the claim regulation item
|
|
214
|
+
* @param {CreateRegulationItemRequestDto} createRegulationItemRequestDto
|
|
215
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
216
|
+
* @param {*} [options] Override http request option.
|
|
217
|
+
* @throws {RequiredError}
|
|
218
|
+
*/
|
|
219
|
+
createClaimRegulation(createRegulationItemRequestDto: CreateRegulationItemRequestDto, authorization?: string, options?: any): AxiosPromise<RegulationItemResponseClass> {
|
|
220
|
+
return localVarFp.createClaimRegulation(createRegulationItemRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
221
|
+
},
|
|
222
|
+
/**
|
|
223
|
+
* Retrieves the details of the claim regulation item that was previously created. Supply the unique claim regulation item code that was returned when you created it and Emil Api will return the corresponding claim regulation item information.
|
|
224
|
+
* @summary Retrieve the claim regulation item
|
|
225
|
+
* @param {string} code
|
|
226
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
227
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
228
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
229
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
230
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
231
|
+
* @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.
|
|
232
|
+
* @param {'partners'} [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.
|
|
233
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
234
|
+
* @param {*} [options] Override http request option.
|
|
235
|
+
* @throws {RequiredError}
|
|
236
|
+
*/
|
|
237
|
+
getClaimRegulation(code: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: 'partners', filters?: any, options?: any): AxiosPromise<RegulationItemResponseClass> {
|
|
238
|
+
return localVarFp.getClaimRegulation(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
239
|
+
},
|
|
240
|
+
};
|
|
241
|
+
};
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* Request parameters for createClaimRegulation operation in ClaimRegulationsApi.
|
|
245
|
+
* @export
|
|
246
|
+
* @interface ClaimRegulationsApiCreateClaimRegulationRequest
|
|
247
|
+
*/
|
|
248
|
+
export interface ClaimRegulationsApiCreateClaimRegulationRequest {
|
|
249
|
+
/**
|
|
250
|
+
*
|
|
251
|
+
* @type {CreateRegulationItemRequestDto}
|
|
252
|
+
* @memberof ClaimRegulationsApiCreateClaimRegulation
|
|
253
|
+
*/
|
|
254
|
+
readonly createRegulationItemRequestDto: CreateRegulationItemRequestDto
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
258
|
+
* @type {string}
|
|
259
|
+
* @memberof ClaimRegulationsApiCreateClaimRegulation
|
|
260
|
+
*/
|
|
261
|
+
readonly authorization?: string
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* Request parameters for getClaimRegulation operation in ClaimRegulationsApi.
|
|
266
|
+
* @export
|
|
267
|
+
* @interface ClaimRegulationsApiGetClaimRegulationRequest
|
|
268
|
+
*/
|
|
269
|
+
export interface ClaimRegulationsApiGetClaimRegulationRequest {
|
|
270
|
+
/**
|
|
271
|
+
*
|
|
272
|
+
* @type {string}
|
|
273
|
+
* @memberof ClaimRegulationsApiGetClaimRegulation
|
|
274
|
+
*/
|
|
275
|
+
readonly code: string
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
279
|
+
* @type {string}
|
|
280
|
+
* @memberof ClaimRegulationsApiGetClaimRegulation
|
|
281
|
+
*/
|
|
282
|
+
readonly authorization?: string
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
286
|
+
* @type {any}
|
|
287
|
+
* @memberof ClaimRegulationsApiGetClaimRegulation
|
|
288
|
+
*/
|
|
289
|
+
readonly pageSize?: any
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
293
|
+
* @type {any}
|
|
294
|
+
* @memberof ClaimRegulationsApiGetClaimRegulation
|
|
295
|
+
*/
|
|
296
|
+
readonly pageToken?: any
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
300
|
+
* @type {any}
|
|
301
|
+
* @memberof ClaimRegulationsApiGetClaimRegulation
|
|
302
|
+
*/
|
|
303
|
+
readonly filter?: any
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* To search the list by any field, pass search=xxx to fetch the result.
|
|
307
|
+
* @type {any}
|
|
308
|
+
* @memberof ClaimRegulationsApiGetClaimRegulation
|
|
309
|
+
*/
|
|
310
|
+
readonly search?: any
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* 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.
|
|
314
|
+
* @type {any}
|
|
315
|
+
* @memberof ClaimRegulationsApiGetClaimRegulation
|
|
316
|
+
*/
|
|
317
|
+
readonly order?: any
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* 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.
|
|
321
|
+
* @type {'partners'}
|
|
322
|
+
* @memberof ClaimRegulationsApiGetClaimRegulation
|
|
323
|
+
*/
|
|
324
|
+
readonly expand?: 'partners'
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
328
|
+
* @type {any}
|
|
329
|
+
* @memberof ClaimRegulationsApiGetClaimRegulation
|
|
330
|
+
*/
|
|
331
|
+
readonly filters?: any
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* ClaimRegulationsApi - object-oriented interface
|
|
336
|
+
* @export
|
|
337
|
+
* @class ClaimRegulationsApi
|
|
338
|
+
* @extends {BaseAPI}
|
|
339
|
+
*/
|
|
340
|
+
export class ClaimRegulationsApi extends BaseAPI {
|
|
341
|
+
/**
|
|
342
|
+
* This endpoint will create a new regulation item for a claim
|
|
343
|
+
* @summary Create the claim regulation item
|
|
344
|
+
* @param {ClaimRegulationsApiCreateClaimRegulationRequest} requestParameters Request parameters.
|
|
345
|
+
* @param {*} [options] Override http request option.
|
|
346
|
+
* @throws {RequiredError}
|
|
347
|
+
* @memberof ClaimRegulationsApi
|
|
348
|
+
*/
|
|
349
|
+
public createClaimRegulation(requestParameters: ClaimRegulationsApiCreateClaimRegulationRequest, options?: AxiosRequestConfig) {
|
|
350
|
+
return ClaimRegulationsApiFp(this.configuration).createClaimRegulation(requestParameters.createRegulationItemRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* Retrieves the details of the claim regulation item that was previously created. Supply the unique claim regulation item code that was returned when you created it and Emil Api will return the corresponding claim regulation item information.
|
|
355
|
+
* @summary Retrieve the claim regulation item
|
|
356
|
+
* @param {ClaimRegulationsApiGetClaimRegulationRequest} requestParameters Request parameters.
|
|
357
|
+
* @param {*} [options] Override http request option.
|
|
358
|
+
* @throws {RequiredError}
|
|
359
|
+
* @memberof ClaimRegulationsApi
|
|
360
|
+
*/
|
|
361
|
+
public getClaimRegulation(requestParameters: ClaimRegulationsApiGetClaimRegulationRequest, options?: AxiosRequestConfig) {
|
|
362
|
+
return ClaimRegulationsApiFp(this.configuration).getClaimRegulation(requestParameters.code, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
363
|
+
}
|
|
364
|
+
}
|
|
@@ -180,12 +180,12 @@ export const ClaimStatusesApiAxiosParamCreator = function (configuration?: Confi
|
|
|
180
180
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, name, productSlug</i>
|
|
181
181
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
182
182
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id</i>
|
|
183
|
-
* @param {
|
|
183
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: .<i>
|
|
184
184
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, name, productSlug</i>
|
|
185
185
|
* @param {*} [options] Override http request option.
|
|
186
186
|
* @throws {RequiredError}
|
|
187
187
|
*/
|
|
188
|
-
listClaimStatuses: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?:
|
|
188
|
+
listClaimStatuses: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
189
189
|
const localVarPath = `/v1/claim-statuses`;
|
|
190
190
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
191
191
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -302,12 +302,12 @@ export const ClaimStatusesApiFp = function(configuration?: Configuration) {
|
|
|
302
302
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, name, productSlug</i>
|
|
303
303
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
304
304
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id</i>
|
|
305
|
-
* @param {
|
|
305
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: .<i>
|
|
306
306
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, name, productSlug</i>
|
|
307
307
|
* @param {*} [options] Override http request option.
|
|
308
308
|
* @throws {RequiredError}
|
|
309
309
|
*/
|
|
310
|
-
async listClaimStatuses(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?:
|
|
310
|
+
async listClaimStatuses(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListClaimStatusesResponseClass>> {
|
|
311
311
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listClaimStatuses(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
312
312
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
313
313
|
},
|
|
@@ -363,12 +363,12 @@ export const ClaimStatusesApiFactory = function (configuration?: Configuration,
|
|
|
363
363
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, name, productSlug</i>
|
|
364
364
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
365
365
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id</i>
|
|
366
|
-
* @param {
|
|
366
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: .<i>
|
|
367
367
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, name, productSlug</i>
|
|
368
368
|
* @param {*} [options] Override http request option.
|
|
369
369
|
* @throws {RequiredError}
|
|
370
370
|
*/
|
|
371
|
-
listClaimStatuses(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?:
|
|
371
|
+
listClaimStatuses(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListClaimStatusesResponseClass> {
|
|
372
372
|
return localVarFp.listClaimStatuses(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
373
373
|
},
|
|
374
374
|
};
|
|
@@ -486,11 +486,11 @@ export interface ClaimStatusesApiListClaimStatusesRequest {
|
|
|
486
486
|
readonly order?: string
|
|
487
487
|
|
|
488
488
|
/**
|
|
489
|
-
*
|
|
490
|
-
* @type {
|
|
489
|
+
* Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: .<i>
|
|
490
|
+
* @type {string}
|
|
491
491
|
* @memberof ClaimStatusesApiListClaimStatuses
|
|
492
492
|
*/
|
|
493
|
-
readonly expand?:
|
|
493
|
+
readonly expand?: string
|
|
494
494
|
|
|
495
495
|
/**
|
|
496
496
|
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, name, productSlug</i>
|
package/api.ts
CHANGED
|
@@ -22,6 +22,7 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
|
|
23
23
|
import { ClaimPartnerRolesApi } from './api';
|
|
24
24
|
import { ClaimPartnersApi } from './api';
|
|
25
|
+
import { ClaimRegulationsApi } from './api';
|
|
25
26
|
import { ClaimStatusesApi } from './api';
|
|
26
27
|
import { ClaimsApi } from './api';
|
|
27
28
|
import { DefaultApi } from './api';
|
|
@@ -30,6 +31,7 @@ import { SettlementsApi } from './api';
|
|
|
30
31
|
|
|
31
32
|
export * from './api/claim-partner-roles-api';
|
|
32
33
|
export * from './api/claim-partners-api';
|
|
34
|
+
export * from './api/claim-regulations-api';
|
|
33
35
|
export * from './api/claim-statuses-api';
|
|
34
36
|
export * from './api/claims-api';
|
|
35
37
|
export * from './api/default-api';
|
package/base.ts
CHANGED
|
@@ -102,7 +102,11 @@ export class BaseAPI {
|
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
selectEnvironment(env: Environment) {
|
|
105
|
-
this.
|
|
105
|
+
this.selectBasePath(env);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
selectBasePath(path: string) {
|
|
109
|
+
this.configuration.basePath = path;
|
|
106
110
|
}
|
|
107
111
|
|
|
108
112
|
async authorize(username: string, password: string): Promise<void> {
|