@emilgroup/claim-sdk 1.41.1-beta.1 → 1.41.1-beta.11

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 (29) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/README.md +2 -2
  3. package/api/claim-positions-api.ts +240 -0
  4. package/dist/api/claim-positions-api.d.ts +134 -0
  5. package/dist/api/claim-positions-api.js +202 -0
  6. package/dist/models/batch-upsert-claim-position-input-dto.d.ts +66 -0
  7. package/dist/models/batch-upsert-claim-position-input-dto.js +15 -0
  8. package/dist/models/batch-upsert-claim-positions-request-dto.d.ts +31 -0
  9. package/dist/models/batch-upsert-claim-positions-request-dto.js +15 -0
  10. package/dist/models/batch-upsert-claim-positions-response-class.d.ts +32 -0
  11. package/dist/models/batch-upsert-claim-positions-response-class.js +15 -0
  12. package/dist/models/calculation-totals-class.d.ts +30 -0
  13. package/dist/models/calculation-totals-class.js +15 -0
  14. package/dist/models/create-claim-position-response-class.d.ts +1 -1
  15. package/dist/models/get-claim-position-response-class.d.ts +1 -1
  16. package/dist/models/index.d.ts +4 -0
  17. package/dist/models/index.js +4 -0
  18. package/dist/models/list-claim-positions-response-class.d.ts +1 -1
  19. package/dist/models/update-claim-position-response-class.d.ts +1 -1
  20. package/models/batch-upsert-claim-position-input-dto.ts +72 -0
  21. package/models/batch-upsert-claim-positions-request-dto.ts +37 -0
  22. package/models/batch-upsert-claim-positions-response-class.ts +38 -0
  23. package/models/calculation-totals-class.ts +36 -0
  24. package/models/create-claim-position-response-class.ts +1 -1
  25. package/models/get-claim-position-response-class.ts +1 -1
  26. package/models/index.ts +4 -0
  27. package/models/list-claim-positions-response-class.ts +1 -1
  28. package/models/update-claim-position-response-class.ts +1 -1
  29. package/package.json +1 -1
@@ -17,7 +17,11 @@ common.ts
17
17
  configuration.ts
18
18
  git_push.sh
19
19
  index.ts
20
+ models/batch-upsert-claim-position-input-dto.ts
21
+ models/batch-upsert-claim-positions-request-dto.ts
22
+ models/batch-upsert-claim-positions-response-class.ts
20
23
  models/calculation-step-result-class.ts
24
+ models/calculation-totals-class.ts
21
25
  models/claim-applied-deductible-class.ts
22
26
  models/claim-class.ts
23
27
  models/claim-limit-usage-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.41.1-beta.1 --save
20
+ npm install @emilgroup/claim-sdk@1.41.1-beta.11 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/claim-sdk@1.41.1-beta.1
24
+ yarn add @emilgroup/claim-sdk@1.41.1-beta.11
25
25
  ```
26
26
 
27
27
  And then you can import `ClaimsApi`.
@@ -21,6 +21,10 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
21
21
  // @ts-ignore
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
23
  // @ts-ignore
24
+ import { BatchUpsertClaimPositionsRequestDto } from '../models';
25
+ // @ts-ignore
26
+ import { BatchUpsertClaimPositionsResponseClass } from '../models';
27
+ // @ts-ignore
24
28
  import { CreateClaimPositionRequestDto } from '../models';
25
29
  // @ts-ignore
26
30
  import { CreateClaimPositionResponseClass } from '../models';
@@ -38,6 +42,109 @@ import { UpdateClaimPositionResponseClass } from '../models';
38
42
  */
39
43
  export const ClaimPositionsApiAxiosParamCreator = function (configuration?: Configuration) {
40
44
  return {
45
+ /**
46
+ * Batch upsert claim positions for a claim. Creates new positions, updates existing ones by code, and deletes positions by code in a single request. **Required Permissions** \"claim-management.claims.update\"
47
+ * @summary Batch upsert claim positions
48
+ * @param {string} claimCode Unique identifier for the object.
49
+ * @param {BatchUpsertClaimPositionsRequestDto} batchUpsertClaimPositionsRequestDto
50
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
51
+ * @param {*} [options] Override http request option.
52
+ * @throws {RequiredError}
53
+ */
54
+ batchUpsertClaimPositions: async (claimCode: string, batchUpsertClaimPositionsRequestDto: BatchUpsertClaimPositionsRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
55
+ // verify required parameter 'claimCode' is not null or undefined
56
+ assertParamExists('batchUpsertClaimPositions', 'claimCode', claimCode)
57
+ // verify required parameter 'batchUpsertClaimPositionsRequestDto' is not null or undefined
58
+ assertParamExists('batchUpsertClaimPositions', 'batchUpsertClaimPositionsRequestDto', batchUpsertClaimPositionsRequestDto)
59
+ const localVarPath = `/claimservice/v1/claim-positions/batch/{claimCode}`
60
+ .replace(`{${"claimCode"}}`, encodeURIComponent(String(claimCode)));
61
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
62
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
63
+ let baseOptions;
64
+ let baseAccessToken;
65
+ if (configuration) {
66
+ baseOptions = configuration.baseOptions;
67
+ baseAccessToken = configuration.accessToken;
68
+ }
69
+
70
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
71
+ const localVarHeaderParameter = {} as any;
72
+ const localVarQueryParameter = {} as any;
73
+
74
+ // authentication bearer required
75
+ // http bearer authentication required
76
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
77
+
78
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
79
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
80
+ }
81
+
82
+
83
+
84
+ localVarHeaderParameter['Content-Type'] = 'application/json';
85
+
86
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
87
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
88
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
89
+ localVarRequestOptions.data = serializeDataIfNeeded(batchUpsertClaimPositionsRequestDto, localVarRequestOptions, configuration)
90
+
91
+ return {
92
+ url: toPathString(localVarUrlObj),
93
+ options: localVarRequestOptions,
94
+ };
95
+ },
96
+ /**
97
+ * Batch upsert claim positions for a claim. Creates new positions, updates existing ones by code, and deletes positions by code in a single request. **Required Permissions** \"claim-management.claims.update\" **Deprecated.** Legacy path. Prefer the claimservice/v1 path for new integrations. This path may be removed in a future release.
98
+ * @summary Batch upsert claim positions
99
+ * @param {string} claimCode Unique identifier for the object.
100
+ * @param {BatchUpsertClaimPositionsRequestDto} batchUpsertClaimPositionsRequestDto
101
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
102
+ * @param {*} [options] Override http request option.
103
+ * @deprecated
104
+ * @throws {RequiredError}
105
+ */
106
+ batchUpsertClaimPositions1: async (claimCode: string, batchUpsertClaimPositionsRequestDto: BatchUpsertClaimPositionsRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
107
+ // verify required parameter 'claimCode' is not null or undefined
108
+ assertParamExists('batchUpsertClaimPositions1', 'claimCode', claimCode)
109
+ // verify required parameter 'batchUpsertClaimPositionsRequestDto' is not null or undefined
110
+ assertParamExists('batchUpsertClaimPositions1', 'batchUpsertClaimPositionsRequestDto', batchUpsertClaimPositionsRequestDto)
111
+ const localVarPath = `/v1/claim-positions/batch/{claimCode}`
112
+ .replace(`{${"claimCode"}}`, encodeURIComponent(String(claimCode)));
113
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
114
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
115
+ let baseOptions;
116
+ let baseAccessToken;
117
+ if (configuration) {
118
+ baseOptions = configuration.baseOptions;
119
+ baseAccessToken = configuration.accessToken;
120
+ }
121
+
122
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
123
+ const localVarHeaderParameter = {} as any;
124
+ const localVarQueryParameter = {} as any;
125
+
126
+ // authentication bearer required
127
+ // http bearer authentication required
128
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
129
+
130
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
131
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
132
+ }
133
+
134
+
135
+
136
+ localVarHeaderParameter['Content-Type'] = 'application/json';
137
+
138
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
139
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
140
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
141
+ localVarRequestOptions.data = serializeDataIfNeeded(batchUpsertClaimPositionsRequestDto, localVarRequestOptions, configuration)
142
+
143
+ return {
144
+ url: toPathString(localVarUrlObj),
145
+ options: localVarRequestOptions,
146
+ };
147
+ },
41
148
  /**
42
149
  * This will create claim position. **Required Permissions** \"claim-management.claims.create\"
43
150
  * @summary Create the claim position
@@ -595,6 +702,33 @@ export const ClaimPositionsApiAxiosParamCreator = function (configuration?: Conf
595
702
  export const ClaimPositionsApiFp = function(configuration?: Configuration) {
596
703
  const localVarAxiosParamCreator = ClaimPositionsApiAxiosParamCreator(configuration)
597
704
  return {
705
+ /**
706
+ * Batch upsert claim positions for a claim. Creates new positions, updates existing ones by code, and deletes positions by code in a single request. **Required Permissions** \"claim-management.claims.update\"
707
+ * @summary Batch upsert claim positions
708
+ * @param {string} claimCode Unique identifier for the object.
709
+ * @param {BatchUpsertClaimPositionsRequestDto} batchUpsertClaimPositionsRequestDto
710
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
711
+ * @param {*} [options] Override http request option.
712
+ * @throws {RequiredError}
713
+ */
714
+ async batchUpsertClaimPositions(claimCode: string, batchUpsertClaimPositionsRequestDto: BatchUpsertClaimPositionsRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BatchUpsertClaimPositionsResponseClass>> {
715
+ const localVarAxiosArgs = await localVarAxiosParamCreator.batchUpsertClaimPositions(claimCode, batchUpsertClaimPositionsRequestDto, authorization, options);
716
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
717
+ },
718
+ /**
719
+ * Batch upsert claim positions for a claim. Creates new positions, updates existing ones by code, and deletes positions by code in a single request. **Required Permissions** \"claim-management.claims.update\" **Deprecated.** Legacy path. Prefer the claimservice/v1 path for new integrations. This path may be removed in a future release.
720
+ * @summary Batch upsert claim positions
721
+ * @param {string} claimCode Unique identifier for the object.
722
+ * @param {BatchUpsertClaimPositionsRequestDto} batchUpsertClaimPositionsRequestDto
723
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
724
+ * @param {*} [options] Override http request option.
725
+ * @deprecated
726
+ * @throws {RequiredError}
727
+ */
728
+ async batchUpsertClaimPositions1(claimCode: string, batchUpsertClaimPositionsRequestDto: BatchUpsertClaimPositionsRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BatchUpsertClaimPositionsResponseClass>> {
729
+ const localVarAxiosArgs = await localVarAxiosParamCreator.batchUpsertClaimPositions1(claimCode, batchUpsertClaimPositionsRequestDto, authorization, options);
730
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
731
+ },
598
732
  /**
599
733
  * This will create claim position. **Required Permissions** \"claim-management.claims.create\"
600
734
  * @summary Create the claim position
@@ -746,6 +880,31 @@ export const ClaimPositionsApiFp = function(configuration?: Configuration) {
746
880
  export const ClaimPositionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
747
881
  const localVarFp = ClaimPositionsApiFp(configuration)
748
882
  return {
883
+ /**
884
+ * Batch upsert claim positions for a claim. Creates new positions, updates existing ones by code, and deletes positions by code in a single request. **Required Permissions** \"claim-management.claims.update\"
885
+ * @summary Batch upsert claim positions
886
+ * @param {string} claimCode Unique identifier for the object.
887
+ * @param {BatchUpsertClaimPositionsRequestDto} batchUpsertClaimPositionsRequestDto
888
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
889
+ * @param {*} [options] Override http request option.
890
+ * @throws {RequiredError}
891
+ */
892
+ batchUpsertClaimPositions(claimCode: string, batchUpsertClaimPositionsRequestDto: BatchUpsertClaimPositionsRequestDto, authorization?: string, options?: any): AxiosPromise<BatchUpsertClaimPositionsResponseClass> {
893
+ return localVarFp.batchUpsertClaimPositions(claimCode, batchUpsertClaimPositionsRequestDto, authorization, options).then((request) => request(axios, basePath));
894
+ },
895
+ /**
896
+ * Batch upsert claim positions for a claim. Creates new positions, updates existing ones by code, and deletes positions by code in a single request. **Required Permissions** \"claim-management.claims.update\" **Deprecated.** Legacy path. Prefer the claimservice/v1 path for new integrations. This path may be removed in a future release.
897
+ * @summary Batch upsert claim positions
898
+ * @param {string} claimCode Unique identifier for the object.
899
+ * @param {BatchUpsertClaimPositionsRequestDto} batchUpsertClaimPositionsRequestDto
900
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
901
+ * @param {*} [options] Override http request option.
902
+ * @deprecated
903
+ * @throws {RequiredError}
904
+ */
905
+ batchUpsertClaimPositions1(claimCode: string, batchUpsertClaimPositionsRequestDto: BatchUpsertClaimPositionsRequestDto, authorization?: string, options?: any): AxiosPromise<BatchUpsertClaimPositionsResponseClass> {
906
+ return localVarFp.batchUpsertClaimPositions1(claimCode, batchUpsertClaimPositionsRequestDto, authorization, options).then((request) => request(axios, basePath));
907
+ },
749
908
  /**
750
909
  * This will create claim position. **Required Permissions** \"claim-management.claims.create\"
751
910
  * @summary Create the claim position
@@ -880,6 +1039,62 @@ export const ClaimPositionsApiFactory = function (configuration?: Configuration,
880
1039
  };
881
1040
  };
882
1041
 
1042
+ /**
1043
+ * Request parameters for batchUpsertClaimPositions operation in ClaimPositionsApi.
1044
+ * @export
1045
+ * @interface ClaimPositionsApiBatchUpsertClaimPositionsRequest
1046
+ */
1047
+ export interface ClaimPositionsApiBatchUpsertClaimPositionsRequest {
1048
+ /**
1049
+ * Unique identifier for the object.
1050
+ * @type {string}
1051
+ * @memberof ClaimPositionsApiBatchUpsertClaimPositions
1052
+ */
1053
+ readonly claimCode: string
1054
+
1055
+ /**
1056
+ *
1057
+ * @type {BatchUpsertClaimPositionsRequestDto}
1058
+ * @memberof ClaimPositionsApiBatchUpsertClaimPositions
1059
+ */
1060
+ readonly batchUpsertClaimPositionsRequestDto: BatchUpsertClaimPositionsRequestDto
1061
+
1062
+ /**
1063
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1064
+ * @type {string}
1065
+ * @memberof ClaimPositionsApiBatchUpsertClaimPositions
1066
+ */
1067
+ readonly authorization?: string
1068
+ }
1069
+
1070
+ /**
1071
+ * Request parameters for batchUpsertClaimPositions1 operation in ClaimPositionsApi.
1072
+ * @export
1073
+ * @interface ClaimPositionsApiBatchUpsertClaimPositions1Request
1074
+ */
1075
+ export interface ClaimPositionsApiBatchUpsertClaimPositions1Request {
1076
+ /**
1077
+ * Unique identifier for the object.
1078
+ * @type {string}
1079
+ * @memberof ClaimPositionsApiBatchUpsertClaimPositions1
1080
+ */
1081
+ readonly claimCode: string
1082
+
1083
+ /**
1084
+ *
1085
+ * @type {BatchUpsertClaimPositionsRequestDto}
1086
+ * @memberof ClaimPositionsApiBatchUpsertClaimPositions1
1087
+ */
1088
+ readonly batchUpsertClaimPositionsRequestDto: BatchUpsertClaimPositionsRequestDto
1089
+
1090
+ /**
1091
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1092
+ * @type {string}
1093
+ * @memberof ClaimPositionsApiBatchUpsertClaimPositions1
1094
+ */
1095
+ readonly authorization?: string
1096
+ }
1097
+
883
1098
  /**
884
1099
  * Request parameters for createClaimPosition operation in ClaimPositionsApi.
885
1100
  * @export
@@ -1209,6 +1424,31 @@ export interface ClaimPositionsApiUpdateClaimPosition1Request {
1209
1424
  * @extends {BaseAPI}
1210
1425
  */
1211
1426
  export class ClaimPositionsApi extends BaseAPI {
1427
+ /**
1428
+ * Batch upsert claim positions for a claim. Creates new positions, updates existing ones by code, and deletes positions by code in a single request. **Required Permissions** \"claim-management.claims.update\"
1429
+ * @summary Batch upsert claim positions
1430
+ * @param {ClaimPositionsApiBatchUpsertClaimPositionsRequest} requestParameters Request parameters.
1431
+ * @param {*} [options] Override http request option.
1432
+ * @throws {RequiredError}
1433
+ * @memberof ClaimPositionsApi
1434
+ */
1435
+ public batchUpsertClaimPositions(requestParameters: ClaimPositionsApiBatchUpsertClaimPositionsRequest, options?: AxiosRequestConfig) {
1436
+ return ClaimPositionsApiFp(this.configuration).batchUpsertClaimPositions(requestParameters.claimCode, requestParameters.batchUpsertClaimPositionsRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1437
+ }
1438
+
1439
+ /**
1440
+ * Batch upsert claim positions for a claim. Creates new positions, updates existing ones by code, and deletes positions by code in a single request. **Required Permissions** \"claim-management.claims.update\" **Deprecated.** Legacy path. Prefer the claimservice/v1 path for new integrations. This path may be removed in a future release.
1441
+ * @summary Batch upsert claim positions
1442
+ * @param {ClaimPositionsApiBatchUpsertClaimPositions1Request} requestParameters Request parameters.
1443
+ * @param {*} [options] Override http request option.
1444
+ * @deprecated
1445
+ * @throws {RequiredError}
1446
+ * @memberof ClaimPositionsApi
1447
+ */
1448
+ public batchUpsertClaimPositions1(requestParameters: ClaimPositionsApiBatchUpsertClaimPositions1Request, options?: AxiosRequestConfig) {
1449
+ return ClaimPositionsApiFp(this.configuration).batchUpsertClaimPositions1(requestParameters.claimCode, requestParameters.batchUpsertClaimPositionsRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1450
+ }
1451
+
1212
1452
  /**
1213
1453
  * This will create claim position. **Required Permissions** \"claim-management.claims.create\"
1214
1454
  * @summary Create the claim position
@@ -12,6 +12,8 @@
12
12
  import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
13
  import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
+ import { BatchUpsertClaimPositionsRequestDto } from '../models';
16
+ import { BatchUpsertClaimPositionsResponseClass } from '../models';
15
17
  import { CreateClaimPositionRequestDto } from '../models';
16
18
  import { CreateClaimPositionResponseClass } from '../models';
17
19
  import { GetClaimPositionResponseClass } from '../models';
@@ -23,6 +25,27 @@ import { UpdateClaimPositionResponseClass } from '../models';
23
25
  * @export
24
26
  */
25
27
  export declare const ClaimPositionsApiAxiosParamCreator: (configuration?: Configuration) => {
28
+ /**
29
+ * Batch upsert claim positions for a claim. Creates new positions, updates existing ones by code, and deletes positions by code in a single request. **Required Permissions** \"claim-management.claims.update\"
30
+ * @summary Batch upsert claim positions
31
+ * @param {string} claimCode Unique identifier for the object.
32
+ * @param {BatchUpsertClaimPositionsRequestDto} batchUpsertClaimPositionsRequestDto
33
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
34
+ * @param {*} [options] Override http request option.
35
+ * @throws {RequiredError}
36
+ */
37
+ batchUpsertClaimPositions: (claimCode: string, batchUpsertClaimPositionsRequestDto: BatchUpsertClaimPositionsRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
38
+ /**
39
+ * Batch upsert claim positions for a claim. Creates new positions, updates existing ones by code, and deletes positions by code in a single request. **Required Permissions** \"claim-management.claims.update\" **Deprecated.** Legacy path. Prefer the claimservice/v1 path for new integrations. This path may be removed in a future release.
40
+ * @summary Batch upsert claim positions
41
+ * @param {string} claimCode Unique identifier for the object.
42
+ * @param {BatchUpsertClaimPositionsRequestDto} batchUpsertClaimPositionsRequestDto
43
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
44
+ * @param {*} [options] Override http request option.
45
+ * @deprecated
46
+ * @throws {RequiredError}
47
+ */
48
+ batchUpsertClaimPositions1: (claimCode: string, batchUpsertClaimPositionsRequestDto: BatchUpsertClaimPositionsRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
26
49
  /**
27
50
  * This will create claim position. **Required Permissions** \"claim-management.claims.create\"
28
51
  * @summary Create the claim position
@@ -140,6 +163,27 @@ export declare const ClaimPositionsApiAxiosParamCreator: (configuration?: Config
140
163
  * @export
141
164
  */
142
165
  export declare const ClaimPositionsApiFp: (configuration?: Configuration) => {
166
+ /**
167
+ * Batch upsert claim positions for a claim. Creates new positions, updates existing ones by code, and deletes positions by code in a single request. **Required Permissions** \"claim-management.claims.update\"
168
+ * @summary Batch upsert claim positions
169
+ * @param {string} claimCode Unique identifier for the object.
170
+ * @param {BatchUpsertClaimPositionsRequestDto} batchUpsertClaimPositionsRequestDto
171
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
172
+ * @param {*} [options] Override http request option.
173
+ * @throws {RequiredError}
174
+ */
175
+ batchUpsertClaimPositions(claimCode: string, batchUpsertClaimPositionsRequestDto: BatchUpsertClaimPositionsRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BatchUpsertClaimPositionsResponseClass>>;
176
+ /**
177
+ * Batch upsert claim positions for a claim. Creates new positions, updates existing ones by code, and deletes positions by code in a single request. **Required Permissions** \"claim-management.claims.update\" **Deprecated.** Legacy path. Prefer the claimservice/v1 path for new integrations. This path may be removed in a future release.
178
+ * @summary Batch upsert claim positions
179
+ * @param {string} claimCode Unique identifier for the object.
180
+ * @param {BatchUpsertClaimPositionsRequestDto} batchUpsertClaimPositionsRequestDto
181
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
182
+ * @param {*} [options] Override http request option.
183
+ * @deprecated
184
+ * @throws {RequiredError}
185
+ */
186
+ batchUpsertClaimPositions1(claimCode: string, batchUpsertClaimPositionsRequestDto: BatchUpsertClaimPositionsRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BatchUpsertClaimPositionsResponseClass>>;
143
187
  /**
144
188
  * This will create claim position. **Required Permissions** \"claim-management.claims.create\"
145
189
  * @summary Create the claim position
@@ -257,6 +301,27 @@ export declare const ClaimPositionsApiFp: (configuration?: Configuration) => {
257
301
  * @export
258
302
  */
259
303
  export declare const ClaimPositionsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
304
+ /**
305
+ * Batch upsert claim positions for a claim. Creates new positions, updates existing ones by code, and deletes positions by code in a single request. **Required Permissions** \"claim-management.claims.update\"
306
+ * @summary Batch upsert claim positions
307
+ * @param {string} claimCode Unique identifier for the object.
308
+ * @param {BatchUpsertClaimPositionsRequestDto} batchUpsertClaimPositionsRequestDto
309
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
310
+ * @param {*} [options] Override http request option.
311
+ * @throws {RequiredError}
312
+ */
313
+ batchUpsertClaimPositions(claimCode: string, batchUpsertClaimPositionsRequestDto: BatchUpsertClaimPositionsRequestDto, authorization?: string, options?: any): AxiosPromise<BatchUpsertClaimPositionsResponseClass>;
314
+ /**
315
+ * Batch upsert claim positions for a claim. Creates new positions, updates existing ones by code, and deletes positions by code in a single request. **Required Permissions** \"claim-management.claims.update\" **Deprecated.** Legacy path. Prefer the claimservice/v1 path for new integrations. This path may be removed in a future release.
316
+ * @summary Batch upsert claim positions
317
+ * @param {string} claimCode Unique identifier for the object.
318
+ * @param {BatchUpsertClaimPositionsRequestDto} batchUpsertClaimPositionsRequestDto
319
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
320
+ * @param {*} [options] Override http request option.
321
+ * @deprecated
322
+ * @throws {RequiredError}
323
+ */
324
+ batchUpsertClaimPositions1(claimCode: string, batchUpsertClaimPositionsRequestDto: BatchUpsertClaimPositionsRequestDto, authorization?: string, options?: any): AxiosPromise<BatchUpsertClaimPositionsResponseClass>;
260
325
  /**
261
326
  * This will create claim position. **Required Permissions** \"claim-management.claims.create\"
262
327
  * @summary Create the claim position
@@ -369,6 +434,56 @@ export declare const ClaimPositionsApiFactory: (configuration?: Configuration, b
369
434
  */
370
435
  updateClaimPosition1(code: string, updateClaimPositionRequestDto: UpdateClaimPositionRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateClaimPositionResponseClass>;
371
436
  };
437
+ /**
438
+ * Request parameters for batchUpsertClaimPositions operation in ClaimPositionsApi.
439
+ * @export
440
+ * @interface ClaimPositionsApiBatchUpsertClaimPositionsRequest
441
+ */
442
+ export interface ClaimPositionsApiBatchUpsertClaimPositionsRequest {
443
+ /**
444
+ * Unique identifier for the object.
445
+ * @type {string}
446
+ * @memberof ClaimPositionsApiBatchUpsertClaimPositions
447
+ */
448
+ readonly claimCode: string;
449
+ /**
450
+ *
451
+ * @type {BatchUpsertClaimPositionsRequestDto}
452
+ * @memberof ClaimPositionsApiBatchUpsertClaimPositions
453
+ */
454
+ readonly batchUpsertClaimPositionsRequestDto: BatchUpsertClaimPositionsRequestDto;
455
+ /**
456
+ * Bearer Token: provided by the login endpoint under the name accessToken.
457
+ * @type {string}
458
+ * @memberof ClaimPositionsApiBatchUpsertClaimPositions
459
+ */
460
+ readonly authorization?: string;
461
+ }
462
+ /**
463
+ * Request parameters for batchUpsertClaimPositions1 operation in ClaimPositionsApi.
464
+ * @export
465
+ * @interface ClaimPositionsApiBatchUpsertClaimPositions1Request
466
+ */
467
+ export interface ClaimPositionsApiBatchUpsertClaimPositions1Request {
468
+ /**
469
+ * Unique identifier for the object.
470
+ * @type {string}
471
+ * @memberof ClaimPositionsApiBatchUpsertClaimPositions1
472
+ */
473
+ readonly claimCode: string;
474
+ /**
475
+ *
476
+ * @type {BatchUpsertClaimPositionsRequestDto}
477
+ * @memberof ClaimPositionsApiBatchUpsertClaimPositions1
478
+ */
479
+ readonly batchUpsertClaimPositionsRequestDto: BatchUpsertClaimPositionsRequestDto;
480
+ /**
481
+ * Bearer Token: provided by the login endpoint under the name accessToken.
482
+ * @type {string}
483
+ * @memberof ClaimPositionsApiBatchUpsertClaimPositions1
484
+ */
485
+ readonly authorization?: string;
486
+ }
372
487
  /**
373
488
  * Request parameters for createClaimPosition operation in ClaimPositionsApi.
374
489
  * @export
@@ -662,6 +777,25 @@ export interface ClaimPositionsApiUpdateClaimPosition1Request {
662
777
  * @extends {BaseAPI}
663
778
  */
664
779
  export declare class ClaimPositionsApi extends BaseAPI {
780
+ /**
781
+ * Batch upsert claim positions for a claim. Creates new positions, updates existing ones by code, and deletes positions by code in a single request. **Required Permissions** \"claim-management.claims.update\"
782
+ * @summary Batch upsert claim positions
783
+ * @param {ClaimPositionsApiBatchUpsertClaimPositionsRequest} requestParameters Request parameters.
784
+ * @param {*} [options] Override http request option.
785
+ * @throws {RequiredError}
786
+ * @memberof ClaimPositionsApi
787
+ */
788
+ batchUpsertClaimPositions(requestParameters: ClaimPositionsApiBatchUpsertClaimPositionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<BatchUpsertClaimPositionsResponseClass, any, {}>>;
789
+ /**
790
+ * Batch upsert claim positions for a claim. Creates new positions, updates existing ones by code, and deletes positions by code in a single request. **Required Permissions** \"claim-management.claims.update\" **Deprecated.** Legacy path. Prefer the claimservice/v1 path for new integrations. This path may be removed in a future release.
791
+ * @summary Batch upsert claim positions
792
+ * @param {ClaimPositionsApiBatchUpsertClaimPositions1Request} requestParameters Request parameters.
793
+ * @param {*} [options] Override http request option.
794
+ * @deprecated
795
+ * @throws {RequiredError}
796
+ * @memberof ClaimPositionsApi
797
+ */
798
+ batchUpsertClaimPositions1(requestParameters: ClaimPositionsApiBatchUpsertClaimPositions1Request, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<BatchUpsertClaimPositionsResponseClass, any, {}>>;
665
799
  /**
666
800
  * This will create claim position. **Required Permissions** \"claim-management.claims.create\"
667
801
  * @summary Create the claim position
@@ -92,6 +92,113 @@ var base_1 = require("../base");
92
92
  var ClaimPositionsApiAxiosParamCreator = function (configuration) {
93
93
  var _this = this;
94
94
  return {
95
+ /**
96
+ * Batch upsert claim positions for a claim. Creates new positions, updates existing ones by code, and deletes positions by code in a single request. **Required Permissions** \"claim-management.claims.update\"
97
+ * @summary Batch upsert claim positions
98
+ * @param {string} claimCode Unique identifier for the object.
99
+ * @param {BatchUpsertClaimPositionsRequestDto} batchUpsertClaimPositionsRequestDto
100
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
101
+ * @param {*} [options] Override http request option.
102
+ * @throws {RequiredError}
103
+ */
104
+ batchUpsertClaimPositions: function (claimCode, batchUpsertClaimPositionsRequestDto, authorization, options) {
105
+ if (options === void 0) { options = {}; }
106
+ return __awaiter(_this, void 0, void 0, function () {
107
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
108
+ return __generator(this, function (_a) {
109
+ switch (_a.label) {
110
+ case 0:
111
+ // verify required parameter 'claimCode' is not null or undefined
112
+ (0, common_1.assertParamExists)('batchUpsertClaimPositions', 'claimCode', claimCode);
113
+ // verify required parameter 'batchUpsertClaimPositionsRequestDto' is not null or undefined
114
+ (0, common_1.assertParamExists)('batchUpsertClaimPositions', 'batchUpsertClaimPositionsRequestDto', batchUpsertClaimPositionsRequestDto);
115
+ localVarPath = "/claimservice/v1/claim-positions/batch/{claimCode}"
116
+ .replace("{".concat("claimCode", "}"), encodeURIComponent(String(claimCode)));
117
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
118
+ if (configuration) {
119
+ baseOptions = configuration.baseOptions;
120
+ baseAccessToken = configuration.accessToken;
121
+ }
122
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
123
+ localVarHeaderParameter = {};
124
+ localVarQueryParameter = {};
125
+ // authentication bearer required
126
+ // http bearer authentication required
127
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
128
+ case 1:
129
+ // authentication bearer required
130
+ // http bearer authentication required
131
+ _a.sent();
132
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
133
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
134
+ }
135
+ localVarHeaderParameter['Content-Type'] = 'application/json';
136
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
137
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
138
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
139
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(batchUpsertClaimPositionsRequestDto, localVarRequestOptions, configuration);
140
+ return [2 /*return*/, {
141
+ url: (0, common_1.toPathString)(localVarUrlObj),
142
+ options: localVarRequestOptions,
143
+ }];
144
+ }
145
+ });
146
+ });
147
+ },
148
+ /**
149
+ * Batch upsert claim positions for a claim. Creates new positions, updates existing ones by code, and deletes positions by code in a single request. **Required Permissions** \"claim-management.claims.update\" **Deprecated.** Legacy path. Prefer the claimservice/v1 path for new integrations. This path may be removed in a future release.
150
+ * @summary Batch upsert claim positions
151
+ * @param {string} claimCode Unique identifier for the object.
152
+ * @param {BatchUpsertClaimPositionsRequestDto} batchUpsertClaimPositionsRequestDto
153
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
154
+ * @param {*} [options] Override http request option.
155
+ * @deprecated
156
+ * @throws {RequiredError}
157
+ */
158
+ batchUpsertClaimPositions1: function (claimCode, batchUpsertClaimPositionsRequestDto, authorization, options) {
159
+ if (options === void 0) { options = {}; }
160
+ return __awaiter(_this, void 0, void 0, function () {
161
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
162
+ return __generator(this, function (_a) {
163
+ switch (_a.label) {
164
+ case 0:
165
+ // verify required parameter 'claimCode' is not null or undefined
166
+ (0, common_1.assertParamExists)('batchUpsertClaimPositions1', 'claimCode', claimCode);
167
+ // verify required parameter 'batchUpsertClaimPositionsRequestDto' is not null or undefined
168
+ (0, common_1.assertParamExists)('batchUpsertClaimPositions1', 'batchUpsertClaimPositionsRequestDto', batchUpsertClaimPositionsRequestDto);
169
+ localVarPath = "/v1/claim-positions/batch/{claimCode}"
170
+ .replace("{".concat("claimCode", "}"), encodeURIComponent(String(claimCode)));
171
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
172
+ if (configuration) {
173
+ baseOptions = configuration.baseOptions;
174
+ baseAccessToken = configuration.accessToken;
175
+ }
176
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
177
+ localVarHeaderParameter = {};
178
+ localVarQueryParameter = {};
179
+ // authentication bearer required
180
+ // http bearer authentication required
181
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
182
+ case 1:
183
+ // authentication bearer required
184
+ // http bearer authentication required
185
+ _a.sent();
186
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
187
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
188
+ }
189
+ localVarHeaderParameter['Content-Type'] = 'application/json';
190
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
191
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
192
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
193
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(batchUpsertClaimPositionsRequestDto, localVarRequestOptions, configuration);
194
+ return [2 /*return*/, {
195
+ url: (0, common_1.toPathString)(localVarUrlObj),
196
+ options: localVarRequestOptions,
197
+ }];
198
+ }
199
+ });
200
+ });
201
+ },
95
202
  /**
96
203
  * This will create claim position. **Required Permissions** \"claim-management.claims.create\"
97
204
  * @summary Create the claim position
@@ -659,6 +766,51 @@ exports.ClaimPositionsApiAxiosParamCreator = ClaimPositionsApiAxiosParamCreator;
659
766
  var ClaimPositionsApiFp = function (configuration) {
660
767
  var localVarAxiosParamCreator = (0, exports.ClaimPositionsApiAxiosParamCreator)(configuration);
661
768
  return {
769
+ /**
770
+ * Batch upsert claim positions for a claim. Creates new positions, updates existing ones by code, and deletes positions by code in a single request. **Required Permissions** \"claim-management.claims.update\"
771
+ * @summary Batch upsert claim positions
772
+ * @param {string} claimCode Unique identifier for the object.
773
+ * @param {BatchUpsertClaimPositionsRequestDto} batchUpsertClaimPositionsRequestDto
774
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
775
+ * @param {*} [options] Override http request option.
776
+ * @throws {RequiredError}
777
+ */
778
+ batchUpsertClaimPositions: function (claimCode, batchUpsertClaimPositionsRequestDto, authorization, options) {
779
+ return __awaiter(this, void 0, void 0, function () {
780
+ var localVarAxiosArgs;
781
+ return __generator(this, function (_a) {
782
+ switch (_a.label) {
783
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.batchUpsertClaimPositions(claimCode, batchUpsertClaimPositionsRequestDto, authorization, options)];
784
+ case 1:
785
+ localVarAxiosArgs = _a.sent();
786
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
787
+ }
788
+ });
789
+ });
790
+ },
791
+ /**
792
+ * Batch upsert claim positions for a claim. Creates new positions, updates existing ones by code, and deletes positions by code in a single request. **Required Permissions** \"claim-management.claims.update\" **Deprecated.** Legacy path. Prefer the claimservice/v1 path for new integrations. This path may be removed in a future release.
793
+ * @summary Batch upsert claim positions
794
+ * @param {string} claimCode Unique identifier for the object.
795
+ * @param {BatchUpsertClaimPositionsRequestDto} batchUpsertClaimPositionsRequestDto
796
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
797
+ * @param {*} [options] Override http request option.
798
+ * @deprecated
799
+ * @throws {RequiredError}
800
+ */
801
+ batchUpsertClaimPositions1: function (claimCode, batchUpsertClaimPositionsRequestDto, authorization, options) {
802
+ return __awaiter(this, void 0, void 0, function () {
803
+ var localVarAxiosArgs;
804
+ return __generator(this, function (_a) {
805
+ switch (_a.label) {
806
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.batchUpsertClaimPositions1(claimCode, batchUpsertClaimPositionsRequestDto, authorization, options)];
807
+ case 1:
808
+ localVarAxiosArgs = _a.sent();
809
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
810
+ }
811
+ });
812
+ });
813
+ },
662
814
  /**
663
815
  * This will create claim position. **Required Permissions** \"claim-management.claims.create\"
664
816
  * @summary Create the claim position
@@ -900,6 +1052,31 @@ exports.ClaimPositionsApiFp = ClaimPositionsApiFp;
900
1052
  var ClaimPositionsApiFactory = function (configuration, basePath, axios) {
901
1053
  var localVarFp = (0, exports.ClaimPositionsApiFp)(configuration);
902
1054
  return {
1055
+ /**
1056
+ * Batch upsert claim positions for a claim. Creates new positions, updates existing ones by code, and deletes positions by code in a single request. **Required Permissions** \"claim-management.claims.update\"
1057
+ * @summary Batch upsert claim positions
1058
+ * @param {string} claimCode Unique identifier for the object.
1059
+ * @param {BatchUpsertClaimPositionsRequestDto} batchUpsertClaimPositionsRequestDto
1060
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1061
+ * @param {*} [options] Override http request option.
1062
+ * @throws {RequiredError}
1063
+ */
1064
+ batchUpsertClaimPositions: function (claimCode, batchUpsertClaimPositionsRequestDto, authorization, options) {
1065
+ return localVarFp.batchUpsertClaimPositions(claimCode, batchUpsertClaimPositionsRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1066
+ },
1067
+ /**
1068
+ * Batch upsert claim positions for a claim. Creates new positions, updates existing ones by code, and deletes positions by code in a single request. **Required Permissions** \"claim-management.claims.update\" **Deprecated.** Legacy path. Prefer the claimservice/v1 path for new integrations. This path may be removed in a future release.
1069
+ * @summary Batch upsert claim positions
1070
+ * @param {string} claimCode Unique identifier for the object.
1071
+ * @param {BatchUpsertClaimPositionsRequestDto} batchUpsertClaimPositionsRequestDto
1072
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1073
+ * @param {*} [options] Override http request option.
1074
+ * @deprecated
1075
+ * @throws {RequiredError}
1076
+ */
1077
+ batchUpsertClaimPositions1: function (claimCode, batchUpsertClaimPositionsRequestDto, authorization, options) {
1078
+ return localVarFp.batchUpsertClaimPositions1(claimCode, batchUpsertClaimPositionsRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1079
+ },
903
1080
  /**
904
1081
  * This will create claim position. **Required Permissions** \"claim-management.claims.create\"
905
1082
  * @summary Create the claim position
@@ -1045,6 +1222,31 @@ var ClaimPositionsApi = /** @class */ (function (_super) {
1045
1222
  function ClaimPositionsApi() {
1046
1223
  return _super !== null && _super.apply(this, arguments) || this;
1047
1224
  }
1225
+ /**
1226
+ * Batch upsert claim positions for a claim. Creates new positions, updates existing ones by code, and deletes positions by code in a single request. **Required Permissions** \"claim-management.claims.update\"
1227
+ * @summary Batch upsert claim positions
1228
+ * @param {ClaimPositionsApiBatchUpsertClaimPositionsRequest} requestParameters Request parameters.
1229
+ * @param {*} [options] Override http request option.
1230
+ * @throws {RequiredError}
1231
+ * @memberof ClaimPositionsApi
1232
+ */
1233
+ ClaimPositionsApi.prototype.batchUpsertClaimPositions = function (requestParameters, options) {
1234
+ var _this = this;
1235
+ return (0, exports.ClaimPositionsApiFp)(this.configuration).batchUpsertClaimPositions(requestParameters.claimCode, requestParameters.batchUpsertClaimPositionsRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1236
+ };
1237
+ /**
1238
+ * Batch upsert claim positions for a claim. Creates new positions, updates existing ones by code, and deletes positions by code in a single request. **Required Permissions** \"claim-management.claims.update\" **Deprecated.** Legacy path. Prefer the claimservice/v1 path for new integrations. This path may be removed in a future release.
1239
+ * @summary Batch upsert claim positions
1240
+ * @param {ClaimPositionsApiBatchUpsertClaimPositions1Request} requestParameters Request parameters.
1241
+ * @param {*} [options] Override http request option.
1242
+ * @deprecated
1243
+ * @throws {RequiredError}
1244
+ * @memberof ClaimPositionsApi
1245
+ */
1246
+ ClaimPositionsApi.prototype.batchUpsertClaimPositions1 = function (requestParameters, options) {
1247
+ var _this = this;
1248
+ return (0, exports.ClaimPositionsApiFp)(this.configuration).batchUpsertClaimPositions1(requestParameters.claimCode, requestParameters.batchUpsertClaimPositionsRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1249
+ };
1048
1250
  /**
1049
1251
  * This will create claim position. **Required Permissions** \"claim-management.claims.create\"
1050
1252
  * @summary Create the claim position
@@ -0,0 +1,66 @@
1
+ /**
2
+ * EMIL ClaimService
3
+ * The EMIL ClaimService 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
+ /**
13
+ *
14
+ * @export
15
+ * @interface BatchUpsertClaimPositionInputDto
16
+ */
17
+ export interface BatchUpsertClaimPositionInputDto {
18
+ /**
19
+ * Required to update an existing position. If not provided, a new position will be created.
20
+ * @type {string}
21
+ * @memberof BatchUpsertClaimPositionInputDto
22
+ */
23
+ 'code'?: string;
24
+ /**
25
+ * Category of the claim position (e.g. property_damage).
26
+ * @type {string}
27
+ * @memberof BatchUpsertClaimPositionInputDto
28
+ */
29
+ 'category': string;
30
+ /**
31
+ * Cost of the claim position.
32
+ * @type {number}
33
+ * @memberof BatchUpsertClaimPositionInputDto
34
+ */
35
+ 'cost': number;
36
+ /**
37
+ * Order of the claim position.
38
+ * @type {number}
39
+ * @memberof BatchUpsertClaimPositionInputDto
40
+ */
41
+ 'order': number;
42
+ /**
43
+ * Date on which the procedure was performed.
44
+ * @type {string}
45
+ * @memberof BatchUpsertClaimPositionInputDto
46
+ */
47
+ 'procedureDate'?: string;
48
+ /**
49
+ * Description of the claim position.
50
+ * @type {string}
51
+ * @memberof BatchUpsertClaimPositionInputDto
52
+ */
53
+ 'description'?: string;
54
+ /**
55
+ * Manual adjustment amount of the claim position.
56
+ * @type {number}
57
+ * @memberof BatchUpsertClaimPositionInputDto
58
+ */
59
+ 'manualAdjustmentAmount'?: number;
60
+ /**
61
+ * Custom fields of the claim position.
62
+ * @type {object}
63
+ * @memberof BatchUpsertClaimPositionInputDto
64
+ */
65
+ 'customFields'?: object;
66
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL ClaimService
6
+ * The EMIL ClaimService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,31 @@
1
+ /**
2
+ * EMIL ClaimService
3
+ * The EMIL ClaimService 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 { BatchUpsertClaimPositionInputDto } from './batch-upsert-claim-position-input-dto';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface BatchUpsertClaimPositionsRequestDto
17
+ */
18
+ export interface BatchUpsertClaimPositionsRequestDto {
19
+ /**
20
+ * Claim positions to create or update.
21
+ * @type {Array<BatchUpsertClaimPositionInputDto>}
22
+ * @memberof BatchUpsertClaimPositionsRequestDto
23
+ */
24
+ 'positions': Array<BatchUpsertClaimPositionInputDto>;
25
+ /**
26
+ * Codes of existing claim positions to delete.
27
+ * @type {Array<string>}
28
+ * @memberof BatchUpsertClaimPositionsRequestDto
29
+ */
30
+ 'deletedCodes'?: Array<string>;
31
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL ClaimService
6
+ * The EMIL ClaimService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,32 @@
1
+ /**
2
+ * EMIL ClaimService
3
+ * The EMIL ClaimService 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 { CalculationTotalsClass } from './calculation-totals-class';
13
+ import { ClaimPositionClass } from './claim-position-class';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface BatchUpsertClaimPositionsResponseClass
18
+ */
19
+ export interface BatchUpsertClaimPositionsResponseClass {
20
+ /**
21
+ * The claim positions.
22
+ * @type {Array<ClaimPositionClass>}
23
+ * @memberof BatchUpsertClaimPositionsResponseClass
24
+ */
25
+ 'claimPositions': Array<ClaimPositionClass>;
26
+ /**
27
+ * The totals of the claim positions.
28
+ * @type {CalculationTotalsClass}
29
+ * @memberof BatchUpsertClaimPositionsResponseClass
30
+ */
31
+ 'totals': CalculationTotalsClass;
32
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL ClaimService
6
+ * The EMIL ClaimService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,30 @@
1
+ /**
2
+ * EMIL ClaimService
3
+ * The EMIL ClaimService 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
+ /**
13
+ *
14
+ * @export
15
+ * @interface CalculationTotalsClass
16
+ */
17
+ export interface CalculationTotalsClass {
18
+ /**
19
+ * The total cost of the claim positions.
20
+ * @type {number}
21
+ * @memberof CalculationTotalsClass
22
+ */
23
+ 'totalCost': number;
24
+ /**
25
+ * The total reimbursement of the claim positions.
26
+ * @type {number}
27
+ * @memberof CalculationTotalsClass
28
+ */
29
+ 'totalReimbursement': number;
30
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL ClaimService
6
+ * The EMIL ClaimService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -17,7 +17,7 @@ import { ClaimPositionClass } from './claim-position-class';
17
17
  */
18
18
  export interface CreateClaimPositionResponseClass {
19
19
  /**
20
- * Claim position created successfully.
20
+ * The claim position.
21
21
  * @type {ClaimPositionClass}
22
22
  * @memberof CreateClaimPositionResponseClass
23
23
  */
@@ -17,7 +17,7 @@ import { ClaimPositionClass } from './claim-position-class';
17
17
  */
18
18
  export interface GetClaimPositionResponseClass {
19
19
  /**
20
- * Claim position details.
20
+ * The claim position.
21
21
  * @type {ClaimPositionClass}
22
22
  * @memberof GetClaimPositionResponseClass
23
23
  */
@@ -1,4 +1,8 @@
1
+ export * from './batch-upsert-claim-position-input-dto';
2
+ export * from './batch-upsert-claim-positions-request-dto';
3
+ export * from './batch-upsert-claim-positions-response-class';
1
4
  export * from './calculation-step-result-class';
5
+ export * from './calculation-totals-class';
2
6
  export * from './claim-applied-deductible-class';
3
7
  export * from './claim-class';
4
8
  export * from './claim-limit-usage-class';
@@ -14,7 +14,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./batch-upsert-claim-position-input-dto"), exports);
18
+ __exportStar(require("./batch-upsert-claim-positions-request-dto"), exports);
19
+ __exportStar(require("./batch-upsert-claim-positions-response-class"), exports);
17
20
  __exportStar(require("./calculation-step-result-class"), exports);
21
+ __exportStar(require("./calculation-totals-class"), exports);
18
22
  __exportStar(require("./claim-applied-deductible-class"), exports);
19
23
  __exportStar(require("./claim-class"), exports);
20
24
  __exportStar(require("./claim-limit-usage-class"), exports);
@@ -17,7 +17,7 @@ import { ClaimPositionClass } from './claim-position-class';
17
17
  */
18
18
  export interface ListClaimPositionsResponseClass {
19
19
  /**
20
- * List of claim positions
20
+ * The claim positions.
21
21
  * @type {Array<ClaimPositionClass>}
22
22
  * @memberof ListClaimPositionsResponseClass
23
23
  */
@@ -17,7 +17,7 @@ import { ClaimPositionClass } from './claim-position-class';
17
17
  */
18
18
  export interface UpdateClaimPositionResponseClass {
19
19
  /**
20
- * Claim position
20
+ * The claim position.
21
21
  * @type {ClaimPositionClass}
22
22
  * @memberof UpdateClaimPositionResponseClass
23
23
  */
@@ -0,0 +1,72 @@
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
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface BatchUpsertClaimPositionInputDto
21
+ */
22
+ export interface BatchUpsertClaimPositionInputDto {
23
+ /**
24
+ * Required to update an existing position. If not provided, a new position will be created.
25
+ * @type {string}
26
+ * @memberof BatchUpsertClaimPositionInputDto
27
+ */
28
+ 'code'?: string;
29
+ /**
30
+ * Category of the claim position (e.g. property_damage).
31
+ * @type {string}
32
+ * @memberof BatchUpsertClaimPositionInputDto
33
+ */
34
+ 'category': string;
35
+ /**
36
+ * Cost of the claim position.
37
+ * @type {number}
38
+ * @memberof BatchUpsertClaimPositionInputDto
39
+ */
40
+ 'cost': number;
41
+ /**
42
+ * Order of the claim position.
43
+ * @type {number}
44
+ * @memberof BatchUpsertClaimPositionInputDto
45
+ */
46
+ 'order': number;
47
+ /**
48
+ * Date on which the procedure was performed.
49
+ * @type {string}
50
+ * @memberof BatchUpsertClaimPositionInputDto
51
+ */
52
+ 'procedureDate'?: string;
53
+ /**
54
+ * Description of the claim position.
55
+ * @type {string}
56
+ * @memberof BatchUpsertClaimPositionInputDto
57
+ */
58
+ 'description'?: string;
59
+ /**
60
+ * Manual adjustment amount of the claim position.
61
+ * @type {number}
62
+ * @memberof BatchUpsertClaimPositionInputDto
63
+ */
64
+ 'manualAdjustmentAmount'?: number;
65
+ /**
66
+ * Custom fields of the claim position.
67
+ * @type {object}
68
+ * @memberof BatchUpsertClaimPositionInputDto
69
+ */
70
+ 'customFields'?: object;
71
+ }
72
+
@@ -0,0 +1,37 @@
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 { BatchUpsertClaimPositionInputDto } from './batch-upsert-claim-position-input-dto';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface BatchUpsertClaimPositionsRequestDto
22
+ */
23
+ export interface BatchUpsertClaimPositionsRequestDto {
24
+ /**
25
+ * Claim positions to create or update.
26
+ * @type {Array<BatchUpsertClaimPositionInputDto>}
27
+ * @memberof BatchUpsertClaimPositionsRequestDto
28
+ */
29
+ 'positions': Array<BatchUpsertClaimPositionInputDto>;
30
+ /**
31
+ * Codes of existing claim positions to delete.
32
+ * @type {Array<string>}
33
+ * @memberof BatchUpsertClaimPositionsRequestDto
34
+ */
35
+ 'deletedCodes'?: Array<string>;
36
+ }
37
+
@@ -0,0 +1,38 @@
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 { CalculationTotalsClass } from './calculation-totals-class';
17
+ import { ClaimPositionClass } from './claim-position-class';
18
+
19
+ /**
20
+ *
21
+ * @export
22
+ * @interface BatchUpsertClaimPositionsResponseClass
23
+ */
24
+ export interface BatchUpsertClaimPositionsResponseClass {
25
+ /**
26
+ * The claim positions.
27
+ * @type {Array<ClaimPositionClass>}
28
+ * @memberof BatchUpsertClaimPositionsResponseClass
29
+ */
30
+ 'claimPositions': Array<ClaimPositionClass>;
31
+ /**
32
+ * The totals of the claim positions.
33
+ * @type {CalculationTotalsClass}
34
+ * @memberof BatchUpsertClaimPositionsResponseClass
35
+ */
36
+ 'totals': CalculationTotalsClass;
37
+ }
38
+
@@ -0,0 +1,36 @@
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
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface CalculationTotalsClass
21
+ */
22
+ export interface CalculationTotalsClass {
23
+ /**
24
+ * The total cost of the claim positions.
25
+ * @type {number}
26
+ * @memberof CalculationTotalsClass
27
+ */
28
+ 'totalCost': number;
29
+ /**
30
+ * The total reimbursement of the claim positions.
31
+ * @type {number}
32
+ * @memberof CalculationTotalsClass
33
+ */
34
+ 'totalReimbursement': number;
35
+ }
36
+
@@ -22,7 +22,7 @@ import { ClaimPositionClass } from './claim-position-class';
22
22
  */
23
23
  export interface CreateClaimPositionResponseClass {
24
24
  /**
25
- * Claim position created successfully.
25
+ * The claim position.
26
26
  * @type {ClaimPositionClass}
27
27
  * @memberof CreateClaimPositionResponseClass
28
28
  */
@@ -22,7 +22,7 @@ import { ClaimPositionClass } from './claim-position-class';
22
22
  */
23
23
  export interface GetClaimPositionResponseClass {
24
24
  /**
25
- * Claim position details.
25
+ * The claim position.
26
26
  * @type {ClaimPositionClass}
27
27
  * @memberof GetClaimPositionResponseClass
28
28
  */
package/models/index.ts CHANGED
@@ -1,4 +1,8 @@
1
+ export * from './batch-upsert-claim-position-input-dto';
2
+ export * from './batch-upsert-claim-positions-request-dto';
3
+ export * from './batch-upsert-claim-positions-response-class';
1
4
  export * from './calculation-step-result-class';
5
+ export * from './calculation-totals-class';
2
6
  export * from './claim-applied-deductible-class';
3
7
  export * from './claim-class';
4
8
  export * from './claim-limit-usage-class';
@@ -22,7 +22,7 @@ import { ClaimPositionClass } from './claim-position-class';
22
22
  */
23
23
  export interface ListClaimPositionsResponseClass {
24
24
  /**
25
- * List of claim positions
25
+ * The claim positions.
26
26
  * @type {Array<ClaimPositionClass>}
27
27
  * @memberof ListClaimPositionsResponseClass
28
28
  */
@@ -22,7 +22,7 @@ import { ClaimPositionClass } from './claim-position-class';
22
22
  */
23
23
  export interface UpdateClaimPositionResponseClass {
24
24
  /**
25
- * Claim position
25
+ * The claim position.
26
26
  * @type {ClaimPositionClass}
27
27
  * @memberof UpdateClaimPositionResponseClass
28
28
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/claim-sdk",
3
- "version": "1.41.1-beta.1",
3
+ "version": "1.41.1-beta.11",
4
4
  "description": "OpenAPI client for @emilgroup/claim-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [