@emilgroup/claim-sdk 1.19.0 → 1.19.1-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -61,6 +61,7 @@ models/update-claim-partner-role-response-class.ts
61
61
  models/update-claim-request-dto.ts
62
62
  models/update-claim-response-class.ts
63
63
  models/update-payout-details-dto.ts
64
+ models/update-regress-details-dto.ts
64
65
  models/update-regulation-item-request-dto-rest.ts
65
66
  models/update-reserve-details-dto.ts
66
67
  models/update-settlement-request-dto.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.19.0 --save
20
+ npm install @emilgroup/claim-sdk@1.19.1-beta.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/claim-sdk@1.19.0
24
+ yarn add @emilgroup/claim-sdk@1.19.1-beta.0
25
25
  ```
26
26
 
27
27
  And then you can import `ClaimsApi`.
package/base.ts CHANGED
@@ -77,6 +77,7 @@ const TOKEN_DATA = 'APP_TOKEN';
77
77
  export class BaseAPI {
78
78
  protected configuration: Configuration | undefined;
79
79
  private tokenData?: TokenData;
80
+ private permissions: Array<string> = [];
80
81
 
81
82
  constructor(configuration?: Configuration,
82
83
  protected basePath: string = BASE_PATH,
@@ -109,6 +110,10 @@ export class BaseAPI {
109
110
  this.configuration.basePath = path;
110
111
  }
111
112
 
113
+ getPermissions(): Array<string> {
114
+ return this.permissions;
115
+ }
116
+
112
117
  async authorize(username: string, password: string): Promise<void> {
113
118
  const options: AxiosRequestConfig = {
114
119
  method: 'POST',
@@ -123,23 +128,24 @@ export class BaseAPI {
123
128
 
124
129
  const response = await globalAxios.request<LoginClass>(options);
125
130
 
126
- const { data: { accessToken } } = response;
131
+ const { data: { accessToken, permissions } } = response;
127
132
 
128
133
  this.configuration.username = username;
129
134
  this.configuration.accessToken = `Bearer ${accessToken}`;
130
135
  this.tokenData.username = username;
131
136
  this.tokenData.accessToken = accessToken;
137
+ this.permissions = permissions;
132
138
 
133
139
  this.storeTokenData({
134
140
  ...this.tokenData
135
141
  });
136
142
  }
137
143
 
138
- async refreshTokenInternal(): Promise<string> {
144
+ async refreshTokenInternal(): Promise<LoginClass> {
139
145
  const { username } = this.configuration;
140
146
 
141
147
  if (!username) {
142
- return '';
148
+ throw new Error('Failed to refresh token.');
143
149
  }
144
150
 
145
151
  const options: AxiosRequestConfig = {
@@ -152,9 +158,9 @@ export class BaseAPI {
152
158
  withCredentials: true,
153
159
  };
154
160
 
155
- const { data: { accessToken } } = await globalAxios.request<LoginClass>(options);
161
+ const response = await globalAxios.request<LoginClass>(options);
156
162
 
157
- return accessToken;
163
+ return response.data;
158
164
  }
159
165
 
160
166
  private storeTokenData(tokenData?: TokenData) {
@@ -188,8 +194,9 @@ export class BaseAPI {
188
194
  && !originalConfig._retry) {
189
195
  originalConfig._retry = true;
190
196
  try {
191
- let tokenString = await this.refreshTokenInternal();
197
+ const { accessToken: tokenString, permissions } = await this.refreshTokenInternal();
192
198
  const accessToken = `Bearer ${tokenString}`;
199
+ this.permissions = permissions;
193
200
 
194
201
  delete originalConfig.headers['Authorization']
195
202
 
@@ -214,8 +221,9 @@ export class BaseAPI {
214
221
  ) {
215
222
  _retry_count++;
216
223
  try {
217
- let tokenString = await this.refreshTokenInternal();
224
+ const { accessToken: tokenString, permissions } = await this.refreshTokenInternal();
218
225
  const accessToken = `Bearer ${tokenString}`;
226
+ this.permissions = permissions;
219
227
 
220
228
  _retry = true;
221
229
  originalConfig.headers['Authorization'] = accessToken;
package/dist/base.d.ts CHANGED
@@ -52,11 +52,13 @@ export declare class BaseAPI {
52
52
  protected axios: AxiosInstance;
53
53
  protected configuration: Configuration | undefined;
54
54
  private tokenData?;
55
+ private permissions;
55
56
  constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
56
57
  selectEnvironment(env: Environment): void;
57
58
  selectBasePath(path: string): void;
59
+ getPermissions(): Array<string>;
58
60
  authorize(username: string, password: string): Promise<void>;
59
- refreshTokenInternal(): Promise<string>;
61
+ refreshTokenInternal(): Promise<LoginClass>;
60
62
  private storeTokenData;
61
63
  loadTokenData(): void;
62
64
  cleanTokenData(): void;
package/dist/base.js CHANGED
@@ -121,6 +121,7 @@ var BaseAPI = /** @class */ (function () {
121
121
  if (axios === void 0) { axios = axios_1.default; }
122
122
  this.basePath = basePath;
123
123
  this.axios = axios;
124
+ this.permissions = [];
124
125
  this.loadTokenData();
125
126
  if (configuration) {
126
127
  this.configuration = configuration;
@@ -143,11 +144,14 @@ var BaseAPI = /** @class */ (function () {
143
144
  BaseAPI.prototype.selectBasePath = function (path) {
144
145
  this.configuration.basePath = path;
145
146
  };
147
+ BaseAPI.prototype.getPermissions = function () {
148
+ return this.permissions;
149
+ };
146
150
  BaseAPI.prototype.authorize = function (username, password) {
147
151
  return __awaiter(this, void 0, void 0, function () {
148
- var options, response, accessToken;
149
- return __generator(this, function (_a) {
150
- switch (_a.label) {
152
+ var options, response, _a, accessToken, permissions;
153
+ return __generator(this, function (_b) {
154
+ switch (_b.label) {
151
155
  case 0:
152
156
  options = {
153
157
  method: 'POST',
@@ -161,12 +165,13 @@ var BaseAPI = /** @class */ (function () {
161
165
  };
162
166
  return [4 /*yield*/, axios_1.default.request(options)];
163
167
  case 1:
164
- response = _a.sent();
165
- accessToken = response.data.accessToken;
168
+ response = _b.sent();
169
+ _a = response.data, accessToken = _a.accessToken, permissions = _a.permissions;
166
170
  this.configuration.username = username;
167
171
  this.configuration.accessToken = "Bearer ".concat(accessToken);
168
172
  this.tokenData.username = username;
169
173
  this.tokenData.accessToken = accessToken;
174
+ this.permissions = permissions;
170
175
  this.storeTokenData(__assign({}, this.tokenData));
171
176
  return [2 /*return*/];
172
177
  }
@@ -175,13 +180,13 @@ var BaseAPI = /** @class */ (function () {
175
180
  };
176
181
  BaseAPI.prototype.refreshTokenInternal = function () {
177
182
  return __awaiter(this, void 0, void 0, function () {
178
- var username, options, accessToken;
183
+ var username, options, response;
179
184
  return __generator(this, function (_a) {
180
185
  switch (_a.label) {
181
186
  case 0:
182
187
  username = this.configuration.username;
183
188
  if (!username) {
184
- return [2 /*return*/, ''];
189
+ throw new Error('Failed to refresh token.');
185
190
  }
186
191
  options = {
187
192
  method: 'POST',
@@ -194,8 +199,8 @@ var BaseAPI = /** @class */ (function () {
194
199
  };
195
200
  return [4 /*yield*/, axios_1.default.request(options)];
196
201
  case 1:
197
- accessToken = (_a.sent()).data.accessToken;
198
- return [2 /*return*/, accessToken];
202
+ response = _a.sent();
203
+ return [2 /*return*/, response.data];
199
204
  }
200
205
  });
201
206
  });
@@ -221,22 +226,23 @@ var BaseAPI = /** @class */ (function () {
221
226
  axios.interceptors.response.use(function (res) {
222
227
  return res;
223
228
  }, function (err) { return __awaiter(_this, void 0, void 0, function () {
224
- var originalConfig, tokenString, accessToken, _error_1, tokenString, accessToken, _error_2;
225
- return __generator(this, function (_a) {
226
- switch (_a.label) {
229
+ var originalConfig, _a, tokenString, permissions, accessToken, _error_1, _b, tokenString, permissions, accessToken, _error_2;
230
+ return __generator(this, function (_c) {
231
+ switch (_c.label) {
227
232
  case 0:
228
233
  originalConfig = err.config;
229
234
  if (!(err.response && !(err.response instanceof XMLHttpRequest))) return [3 /*break*/, 5];
230
235
  if (!((err.response.status === 401 || err.response.status === 403)
231
236
  && !originalConfig._retry)) return [3 /*break*/, 4];
232
237
  originalConfig._retry = true;
233
- _a.label = 1;
238
+ _c.label = 1;
234
239
  case 1:
235
- _a.trys.push([1, 3, , 4]);
240
+ _c.trys.push([1, 3, , 4]);
236
241
  return [4 /*yield*/, this.refreshTokenInternal()];
237
242
  case 2:
238
- tokenString = _a.sent();
243
+ _a = _c.sent(), tokenString = _a.accessToken, permissions = _a.permissions;
239
244
  accessToken = "Bearer ".concat(tokenString);
245
+ this.permissions = permissions;
240
246
  delete originalConfig.headers['Authorization'];
241
247
  originalConfig.headers['Authorization'] = accessToken;
242
248
  this.configuration.accessToken = accessToken;
@@ -244,7 +250,7 @@ var BaseAPI = /** @class */ (function () {
244
250
  this.storeTokenData(this.tokenData);
245
251
  return [2 /*return*/, axios(originalConfig)];
246
252
  case 3:
247
- _error_1 = _a.sent();
253
+ _error_1 = _c.sent();
248
254
  if (_error_1.response && _error_1.response.data) {
249
255
  return [2 /*return*/, Promise.reject(_error_1.response.data)];
250
256
  }
@@ -255,13 +261,14 @@ var BaseAPI = /** @class */ (function () {
255
261
  && originalConfig.headers.hasOwnProperty('Authorization')
256
262
  && _retry_count < 4)) return [3 /*break*/, 9];
257
263
  _retry_count++;
258
- _a.label = 6;
264
+ _c.label = 6;
259
265
  case 6:
260
- _a.trys.push([6, 8, , 9]);
266
+ _c.trys.push([6, 8, , 9]);
261
267
  return [4 /*yield*/, this.refreshTokenInternal()];
262
268
  case 7:
263
- tokenString = _a.sent();
269
+ _b = _c.sent(), tokenString = _b.accessToken, permissions = _b.permissions;
264
270
  accessToken = "Bearer ".concat(tokenString);
271
+ this.permissions = permissions;
265
272
  _retry = true;
266
273
  originalConfig.headers['Authorization'] = accessToken;
267
274
  this.configuration.accessToken = accessToken;
@@ -269,7 +276,7 @@ var BaseAPI = /** @class */ (function () {
269
276
  this.storeTokenData(this.tokenData);
270
277
  return [2 /*return*/, axios.request(__assign({}, originalConfig))];
271
278
  case 8:
272
- _error_2 = _a.sent();
279
+ _error_2 = _c.sent();
273
280
  if (_error_2.response && _error_2.response.data) {
274
281
  return [2 /*return*/, Promise.reject(_error_2.response.data)];
275
282
  }
@@ -48,6 +48,12 @@ export interface CreateRegulationItemRequestDto {
48
48
  * @memberof CreateRegulationItemRequestDto
49
49
  */
50
50
  'claimCode': string;
51
+ /**
52
+ * Optional metadata for the regulation item, can be used to store additional information that does not map to the other fields directly.
53
+ * @type {object}
54
+ * @memberof CreateRegulationItemRequestDto
55
+ */
56
+ 'metadata'?: object;
51
57
  /**
52
58
  * Details of the payout. Required if the regulation item type is payout.
53
59
  * @type {PayoutDetailsDto}
@@ -43,6 +43,7 @@ export * from './update-claim-partner-role-response-class';
43
43
  export * from './update-claim-request-dto';
44
44
  export * from './update-claim-response-class';
45
45
  export * from './update-payout-details-dto';
46
+ export * from './update-regress-details-dto';
46
47
  export * from './update-regulation-item-request-dto-rest';
47
48
  export * from './update-reserve-details-dto';
48
49
  export * from './update-settlement-request-dto';
@@ -59,6 +59,7 @@ __exportStar(require("./update-claim-partner-role-response-class"), exports);
59
59
  __exportStar(require("./update-claim-request-dto"), exports);
60
60
  __exportStar(require("./update-claim-response-class"), exports);
61
61
  __exportStar(require("./update-payout-details-dto"), exports);
62
+ __exportStar(require("./update-regress-details-dto"), exports);
62
63
  __exportStar(require("./update-regulation-item-request-dto-rest"), exports);
63
64
  __exportStar(require("./update-reserve-details-dto"), exports);
64
65
  __exportStar(require("./update-settlement-request-dto"), exports);
@@ -45,6 +45,12 @@ export interface PayoutDetailsDto {
45
45
  * @memberof PayoutDetailsDto
46
46
  */
47
47
  'payoutPurpose'?: string;
48
+ /**
49
+ * Date on which the payout took place or scheduled to take place.
50
+ * @type {string}
51
+ * @memberof PayoutDetailsDto
52
+ */
53
+ 'payoutDate'?: string;
48
54
  /**
49
55
  * Product or tenant specific custom fields for the payout detials. Depends on the schema defined for payout-details entity using tenantservice api.
50
56
  * @type {object}
@@ -61,6 +61,12 @@ export interface RegulationItemClass {
61
61
  * @memberof RegulationItemClass
62
62
  */
63
63
  'claim': ClaimClass;
64
+ /**
65
+ * Optional metadata for the regulation item, can be used to store additional information that does not map to the other fields directly.
66
+ * @type {object}
67
+ * @memberof RegulationItemClass
68
+ */
69
+ 'metadata'?: object;
64
70
  /**
65
71
  * The PayoutDetailsClass response.
66
72
  * @type {PayoutDetailsClass}
@@ -45,6 +45,12 @@ export interface UpdatePayoutDetailsDto {
45
45
  * @memberof UpdatePayoutDetailsDto
46
46
  */
47
47
  'payoutPurpose'?: string;
48
+ /**
49
+ * Date on which the payout took place or scheduled to take place.
50
+ * @type {string}
51
+ * @memberof UpdatePayoutDetailsDto
52
+ */
53
+ 'payoutDate'?: string;
48
54
  /**
49
55
  * Product or tenant specific custom fields for the payout detials. Depends on the schema defined for payout-details entity using tenantservice api.
50
56
  * @type {object}
@@ -0,0 +1,51 @@
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 UpdateRegressDetailsDto
16
+ */
17
+ export interface UpdateRegressDetailsDto {
18
+ /**
19
+ * The type of recovery.
20
+ * @type {string}
21
+ * @memberof UpdateRegressDetailsDto
22
+ */
23
+ 'recoveryType'?: UpdateRegressDetailsDtoRecoveryTypeEnum;
24
+ /**
25
+ * The status of recovery.
26
+ * @type {string}
27
+ * @memberof UpdateRegressDetailsDto
28
+ */
29
+ 'recoveryStatus'?: UpdateRegressDetailsDtoRecoveryStatusEnum;
30
+ /**
31
+ * Optional helpful and relevant information provided by the third party can be stored in this field.
32
+ * @type {string}
33
+ * @memberof UpdateRegressDetailsDto
34
+ */
35
+ 'thirdPartyInformation'?: string;
36
+ }
37
+ export declare const UpdateRegressDetailsDtoRecoveryTypeEnum: {
38
+ readonly SubrogationInitiated: "SUBROGATION_INITIATED";
39
+ readonly PartialRecovery: "PARTIAL_RECOVERY";
40
+ readonly FullRecovery: "FULL_RECOVERY";
41
+ readonly Adjustment: "ADJUSTMENT";
42
+ };
43
+ export type UpdateRegressDetailsDtoRecoveryTypeEnum = typeof UpdateRegressDetailsDtoRecoveryTypeEnum[keyof typeof UpdateRegressDetailsDtoRecoveryTypeEnum];
44
+ export declare const UpdateRegressDetailsDtoRecoveryStatusEnum: {
45
+ readonly Pending: "PENDING";
46
+ readonly InProgress: "IN_PROGRESS";
47
+ readonly PartiallyRecovered: "PARTIALLY_RECOVERED";
48
+ readonly FullyRecovered: "FULLY_RECOVERED";
49
+ readonly Closed: "CLOSED";
50
+ };
51
+ export type UpdateRegressDetailsDtoRecoveryStatusEnum = typeof UpdateRegressDetailsDtoRecoveryStatusEnum[keyof typeof UpdateRegressDetailsDtoRecoveryStatusEnum];
@@ -0,0 +1,29 @@
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 });
16
+ exports.UpdateRegressDetailsDtoRecoveryStatusEnum = exports.UpdateRegressDetailsDtoRecoveryTypeEnum = void 0;
17
+ exports.UpdateRegressDetailsDtoRecoveryTypeEnum = {
18
+ SubrogationInitiated: 'SUBROGATION_INITIATED',
19
+ PartialRecovery: 'PARTIAL_RECOVERY',
20
+ FullRecovery: 'FULL_RECOVERY',
21
+ Adjustment: 'ADJUSTMENT'
22
+ };
23
+ exports.UpdateRegressDetailsDtoRecoveryStatusEnum = {
24
+ Pending: 'PENDING',
25
+ InProgress: 'IN_PROGRESS',
26
+ PartiallyRecovered: 'PARTIALLY_RECOVERED',
27
+ FullyRecovered: 'FULLY_RECOVERED',
28
+ Closed: 'CLOSED'
29
+ };
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { UpdatePayoutDetailsDto } from './update-payout-details-dto';
13
+ import { UpdateRegressDetailsDto } from './update-regress-details-dto';
13
14
  import { UpdateReserveDetailsDto } from './update-reserve-details-dto';
14
15
  /**
15
16
  *
@@ -35,6 +36,12 @@ export interface UpdateRegulationItemRequestDtoRest {
35
36
  * @memberof UpdateRegulationItemRequestDtoRest
36
37
  */
37
38
  'currency'?: string;
39
+ /**
40
+ * Optional metadata for the regulation item, can be used to store additional information that does not map to the other fields directly.
41
+ * @type {object}
42
+ * @memberof UpdateRegulationItemRequestDtoRest
43
+ */
44
+ 'metadata'?: object;
38
45
  /**
39
46
  * The booking date for the regulation item. Must be a valid ISO 8601 date. If not provided, the booking date will not be updated.
40
47
  * @type {string}
@@ -55,10 +62,10 @@ export interface UpdateRegulationItemRequestDtoRest {
55
62
  'reserveDetails'?: UpdateReserveDetailsDto;
56
63
  /**
57
64
  * The regress details for the regulation item. Must be a valid regress details object.At least an empty object is required when updating a regress item. But if the regulation item type is not regress, this field is not required.
58
- * @type {object}
65
+ * @type {UpdateRegressDetailsDto}
59
66
  * @memberof UpdateRegulationItemRequestDtoRest
60
67
  */
61
- 'regressDetails'?: object;
68
+ 'regressDetails'?: UpdateRegressDetailsDto;
62
69
  }
63
70
  export declare const UpdateRegulationItemRequestDtoRestRegulationItemTypeEnum: {
64
71
  readonly Payout: "PAYOUT";
@@ -53,6 +53,12 @@ export interface CreateRegulationItemRequestDto {
53
53
  * @memberof CreateRegulationItemRequestDto
54
54
  */
55
55
  'claimCode': string;
56
+ /**
57
+ * Optional metadata for the regulation item, can be used to store additional information that does not map to the other fields directly.
58
+ * @type {object}
59
+ * @memberof CreateRegulationItemRequestDto
60
+ */
61
+ 'metadata'?: object;
56
62
  /**
57
63
  * Details of the payout. Required if the regulation item type is payout.
58
64
  * @type {PayoutDetailsDto}
package/models/index.ts CHANGED
@@ -43,6 +43,7 @@ export * from './update-claim-partner-role-response-class';
43
43
  export * from './update-claim-request-dto';
44
44
  export * from './update-claim-response-class';
45
45
  export * from './update-payout-details-dto';
46
+ export * from './update-regress-details-dto';
46
47
  export * from './update-regulation-item-request-dto-rest';
47
48
  export * from './update-reserve-details-dto';
48
49
  export * from './update-settlement-request-dto';
@@ -50,6 +50,12 @@ export interface PayoutDetailsDto {
50
50
  * @memberof PayoutDetailsDto
51
51
  */
52
52
  'payoutPurpose'?: string;
53
+ /**
54
+ * Date on which the payout took place or scheduled to take place.
55
+ * @type {string}
56
+ * @memberof PayoutDetailsDto
57
+ */
58
+ 'payoutDate'?: string;
53
59
  /**
54
60
  * Product or tenant specific custom fields for the payout detials. Depends on the schema defined for payout-details entity using tenantservice api.
55
61
  * @type {object}
@@ -66,6 +66,12 @@ export interface RegulationItemClass {
66
66
  * @memberof RegulationItemClass
67
67
  */
68
68
  'claim': ClaimClass;
69
+ /**
70
+ * Optional metadata for the regulation item, can be used to store additional information that does not map to the other fields directly.
71
+ * @type {object}
72
+ * @memberof RegulationItemClass
73
+ */
74
+ 'metadata'?: object;
69
75
  /**
70
76
  * The PayoutDetailsClass response.
71
77
  * @type {PayoutDetailsClass}
@@ -50,6 +50,12 @@ export interface UpdatePayoutDetailsDto {
50
50
  * @memberof UpdatePayoutDetailsDto
51
51
  */
52
52
  'payoutPurpose'?: string;
53
+ /**
54
+ * Date on which the payout took place or scheduled to take place.
55
+ * @type {string}
56
+ * @memberof UpdatePayoutDetailsDto
57
+ */
58
+ 'payoutDate'?: string;
53
59
  /**
54
60
  * Product or tenant specific custom fields for the payout detials. Depends on the schema defined for payout-details entity using tenantservice api.
55
61
  * @type {object}
@@ -0,0 +1,61 @@
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 UpdateRegressDetailsDto
21
+ */
22
+ export interface UpdateRegressDetailsDto {
23
+ /**
24
+ * The type of recovery.
25
+ * @type {string}
26
+ * @memberof UpdateRegressDetailsDto
27
+ */
28
+ 'recoveryType'?: UpdateRegressDetailsDtoRecoveryTypeEnum;
29
+ /**
30
+ * The status of recovery.
31
+ * @type {string}
32
+ * @memberof UpdateRegressDetailsDto
33
+ */
34
+ 'recoveryStatus'?: UpdateRegressDetailsDtoRecoveryStatusEnum;
35
+ /**
36
+ * Optional helpful and relevant information provided by the third party can be stored in this field.
37
+ * @type {string}
38
+ * @memberof UpdateRegressDetailsDto
39
+ */
40
+ 'thirdPartyInformation'?: string;
41
+ }
42
+
43
+ export const UpdateRegressDetailsDtoRecoveryTypeEnum = {
44
+ SubrogationInitiated: 'SUBROGATION_INITIATED',
45
+ PartialRecovery: 'PARTIAL_RECOVERY',
46
+ FullRecovery: 'FULL_RECOVERY',
47
+ Adjustment: 'ADJUSTMENT'
48
+ } as const;
49
+
50
+ export type UpdateRegressDetailsDtoRecoveryTypeEnum = typeof UpdateRegressDetailsDtoRecoveryTypeEnum[keyof typeof UpdateRegressDetailsDtoRecoveryTypeEnum];
51
+ export const UpdateRegressDetailsDtoRecoveryStatusEnum = {
52
+ Pending: 'PENDING',
53
+ InProgress: 'IN_PROGRESS',
54
+ PartiallyRecovered: 'PARTIALLY_RECOVERED',
55
+ FullyRecovered: 'FULLY_RECOVERED',
56
+ Closed: 'CLOSED'
57
+ } as const;
58
+
59
+ export type UpdateRegressDetailsDtoRecoveryStatusEnum = typeof UpdateRegressDetailsDtoRecoveryStatusEnum[keyof typeof UpdateRegressDetailsDtoRecoveryStatusEnum];
60
+
61
+
@@ -14,6 +14,7 @@
14
14
 
15
15
 
16
16
  import { UpdatePayoutDetailsDto } from './update-payout-details-dto';
17
+ import { UpdateRegressDetailsDto } from './update-regress-details-dto';
17
18
  import { UpdateReserveDetailsDto } from './update-reserve-details-dto';
18
19
 
19
20
  /**
@@ -40,6 +41,12 @@ export interface UpdateRegulationItemRequestDtoRest {
40
41
  * @memberof UpdateRegulationItemRequestDtoRest
41
42
  */
42
43
  'currency'?: string;
44
+ /**
45
+ * Optional metadata for the regulation item, can be used to store additional information that does not map to the other fields directly.
46
+ * @type {object}
47
+ * @memberof UpdateRegulationItemRequestDtoRest
48
+ */
49
+ 'metadata'?: object;
43
50
  /**
44
51
  * The booking date for the regulation item. Must be a valid ISO 8601 date. If not provided, the booking date will not be updated.
45
52
  * @type {string}
@@ -60,10 +67,10 @@ export interface UpdateRegulationItemRequestDtoRest {
60
67
  'reserveDetails'?: UpdateReserveDetailsDto;
61
68
  /**
62
69
  * The regress details for the regulation item. Must be a valid regress details object.At least an empty object is required when updating a regress item. But if the regulation item type is not regress, this field is not required.
63
- * @type {object}
70
+ * @type {UpdateRegressDetailsDto}
64
71
  * @memberof UpdateRegulationItemRequestDtoRest
65
72
  */
66
- 'regressDetails'?: object;
73
+ 'regressDetails'?: UpdateRegressDetailsDto;
67
74
  }
68
75
 
69
76
  export const UpdateRegulationItemRequestDtoRestRegulationItemTypeEnum = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/claim-sdk",
3
- "version": "1.19.0",
3
+ "version": "1.19.1-beta.0",
4
4
  "description": "OpenAPI client for @emilgroup/claim-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [