@insurance-broker/api-client 1.26.0 → 1.27.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.
- package/dist/schema.d.ts +411 -0
- package/package.json +1 -1
package/dist/schema.d.ts
CHANGED
|
@@ -1197,6 +1197,128 @@ export interface paths {
|
|
|
1197
1197
|
patch?: never;
|
|
1198
1198
|
trace?: never;
|
|
1199
1199
|
};
|
|
1200
|
+
"/api/v1/claims/{id}/outstanding-items": {
|
|
1201
|
+
parameters: {
|
|
1202
|
+
query?: never;
|
|
1203
|
+
header?: never;
|
|
1204
|
+
path?: never;
|
|
1205
|
+
cookie?: never;
|
|
1206
|
+
};
|
|
1207
|
+
/**
|
|
1208
|
+
* Read what a claim is or was waiting on
|
|
1209
|
+
* @description CLM-005. Everything recorded as outstanding on this claim, newest raised first.
|
|
1210
|
+
*
|
|
1211
|
+
* `outstanding=true` narrows it to what is still being waited on - the operational question, *what is holding this up* - and `outstanding=false` to what has arrived. Absent, the whole history comes back.
|
|
1212
|
+
*
|
|
1213
|
+
* Ordered on when an item was **raised** and never on when it was resolved: the list is a history, and ordering on a column that changes moves the boundaries under a reader.
|
|
1214
|
+
*
|
|
1215
|
+
* **Staff only.** A customer is told what you need from them by being told, on their timeline, in words you chose - not by being handed the working list, which also names everything you owe.
|
|
1216
|
+
*/
|
|
1217
|
+
get: operations["ListClaimOutstandingItems"];
|
|
1218
|
+
put?: never;
|
|
1219
|
+
/**
|
|
1220
|
+
* Record that a claim is waiting on something
|
|
1221
|
+
* @description CLM-005. Records what this claim is waiting on, and which side owes it.
|
|
1222
|
+
*
|
|
1223
|
+
* **This creates a row and never changes the claim's status.** A claim waiting on a customer's photographs is still `Notified`, because the broker is still assisting - which is what that status says (ADR-0041 section 5). A status could not have said *what* is outstanding in any case, which is the other half of why this is a row.
|
|
1224
|
+
*
|
|
1225
|
+
* **What is outstanding is your own words, not a code from a list.** This platform does not name insurance fields, so there is no vocabulary of permitted items and there will not be one; a broker's own list of the things it asks for is that broker's configuration.
|
|
1226
|
+
*
|
|
1227
|
+
* **The side is a closed set of two.** `Customer` means the customer owes it and you are waiting on them. `Broker` means you owe it - including when it is your insurer who is waiting. If you in turn need something from the customer to produce it, that is a second item, because it is a different wait with a different person to chase.
|
|
1228
|
+
*
|
|
1229
|
+
* Refused with 409 once the claim has concluded: nobody is waiting on a claim you have stopped working, and closing starts the disposal clock on everything filed against it.
|
|
1230
|
+
*/
|
|
1231
|
+
post: operations["RaiseClaimOutstandingItem"];
|
|
1232
|
+
delete?: never;
|
|
1233
|
+
options?: never;
|
|
1234
|
+
head?: never;
|
|
1235
|
+
patch?: never;
|
|
1236
|
+
trace?: never;
|
|
1237
|
+
};
|
|
1238
|
+
"/api/v1/claims/{id}/outstanding-items/{itemId}/resolution": {
|
|
1239
|
+
parameters: {
|
|
1240
|
+
query?: never;
|
|
1241
|
+
header?: never;
|
|
1242
|
+
path?: never;
|
|
1243
|
+
cookie?: never;
|
|
1244
|
+
};
|
|
1245
|
+
get?: never;
|
|
1246
|
+
put?: never;
|
|
1247
|
+
/**
|
|
1248
|
+
* Record that what a claim was waiting on has arrived
|
|
1249
|
+
* @description CLM-005. Marks one outstanding item as received, naming you and the instant.
|
|
1250
|
+
*
|
|
1251
|
+
* **This is allowed after the claim has concluded**, which is the one place this surface differs from everything else that hangs off a claim. Filing evidence or recording a dealing with an insurer against a closed claim is refused, because both write a row that would carry no disposal clock. This writes no row - it stamps two columns on one that already has a clock - and a police report that arrives in January against a claim closed in December is a fact the record may not be made to deny.
|
|
1252
|
+
*
|
|
1253
|
+
* A second resolution is refused with 409 naming who dealt with it. Somebody read the item outstanding and decided from it, and overwriting their name would lose the only record of who did the work. Nothing here edits the description or moves the side: correcting a mistake is resolving the wrong item and raising the right one, which is what happened.
|
|
1254
|
+
*/
|
|
1255
|
+
post: operations["ResolveClaimOutstandingItem"];
|
|
1256
|
+
delete?: never;
|
|
1257
|
+
options?: never;
|
|
1258
|
+
head?: never;
|
|
1259
|
+
patch?: never;
|
|
1260
|
+
trace?: never;
|
|
1261
|
+
};
|
|
1262
|
+
"/api/v1/claims/{id}/appointments": {
|
|
1263
|
+
parameters: {
|
|
1264
|
+
query?: never;
|
|
1265
|
+
header?: never;
|
|
1266
|
+
path?: never;
|
|
1267
|
+
cookie?: never;
|
|
1268
|
+
};
|
|
1269
|
+
/**
|
|
1270
|
+
* Read the visits arranged about a claim
|
|
1271
|
+
* @description CLM-005. Every visit recorded against this claim, soonest first, cancelled ones included and marked as such - a diary is read forwards, and a visit that was called off is part of the account of how the claim went.
|
|
1272
|
+
*
|
|
1273
|
+
* **Staff only**, for the same reason the outstanding items are.
|
|
1274
|
+
*/
|
|
1275
|
+
get: operations["ListClaimAppointments"];
|
|
1276
|
+
put?: never;
|
|
1277
|
+
/**
|
|
1278
|
+
* Record a visit arranged about a claim
|
|
1279
|
+
* @description CLM-005. Records that somebody is expected - an assessor, a repairer, a surveyor - and when.
|
|
1280
|
+
*
|
|
1281
|
+
* **There is no appointment type and no provider directory, and that is deliberate.** This platform does not name a trade, a service or a provider on behalf of every broker in every country it serves (ADR-0041 section 6). What the visit is for, and who is coming if you want that written down, is `purpose` - your own words.
|
|
1282
|
+
*
|
|
1283
|
+
* **The time may be in the past**, so last week's visit can be written up on Friday. It is an instant rather than a day, because the time of day is the operative fact about a visit.
|
|
1284
|
+
*
|
|
1285
|
+
* **Nothing here is a status on the claim.** A claim with an assessor booked is still `Notified`.
|
|
1286
|
+
*
|
|
1287
|
+
* **There is no reschedule.** Moving a visit is cancelling one and arranging another, which is what actually happened and what a customer told twice experienced; a date that could be edited would leave nothing saying anybody was ever expected on the first day.
|
|
1288
|
+
*
|
|
1289
|
+
* Refused with 409 once the claim has concluded.
|
|
1290
|
+
*/
|
|
1291
|
+
post: operations["ArrangeClaimAppointment"];
|
|
1292
|
+
delete?: never;
|
|
1293
|
+
options?: never;
|
|
1294
|
+
head?: never;
|
|
1295
|
+
patch?: never;
|
|
1296
|
+
trace?: never;
|
|
1297
|
+
};
|
|
1298
|
+
"/api/v1/claims/{id}/appointments/{appointmentId}/cancellation": {
|
|
1299
|
+
parameters: {
|
|
1300
|
+
query?: never;
|
|
1301
|
+
header?: never;
|
|
1302
|
+
path?: never;
|
|
1303
|
+
cookie?: never;
|
|
1304
|
+
};
|
|
1305
|
+
get?: never;
|
|
1306
|
+
put?: never;
|
|
1307
|
+
/**
|
|
1308
|
+
* Record that a visit was called off
|
|
1309
|
+
* @description CLM-005. Marks one appointment cancelled, naming you and the instant.
|
|
1310
|
+
*
|
|
1311
|
+
* **Allowed after the claim has concluded**, for the same reason resolving an outstanding item is: it writes no row, and an assessor stood down in January for a claim closed in December is a thing that happened.
|
|
1312
|
+
*
|
|
1313
|
+
* A second cancellation is refused with 409. There is no reason field - why a visit was called off is a note, and who did it and when is on the row and in the audit trail.
|
|
1314
|
+
*/
|
|
1315
|
+
post: operations["CancelClaimAppointment"];
|
|
1316
|
+
delete?: never;
|
|
1317
|
+
options?: never;
|
|
1318
|
+
head?: never;
|
|
1319
|
+
patch?: never;
|
|
1320
|
+
trace?: never;
|
|
1321
|
+
};
|
|
1200
1322
|
"/api/v1/customer/claims": {
|
|
1201
1323
|
parameters: {
|
|
1202
1324
|
query?: never;
|
|
@@ -3271,6 +3393,11 @@ export interface components {
|
|
|
3271
3393
|
insurerId: null | string;
|
|
3272
3394
|
channel: null | string;
|
|
3273
3395
|
};
|
|
3396
|
+
ArrangeClaimAppointmentRequest: {
|
|
3397
|
+
/** Format: date-time */
|
|
3398
|
+
scheduledAtUtc: string;
|
|
3399
|
+
purpose: string;
|
|
3400
|
+
};
|
|
3274
3401
|
AskAboutQuoteRequest: {
|
|
3275
3402
|
/** Format: uuid */
|
|
3276
3403
|
presentationVersionId: null | string;
|
|
@@ -3317,6 +3444,22 @@ export interface components {
|
|
|
3317
3444
|
items: components["schemas"]["ProductResponse"][];
|
|
3318
3445
|
nextCursor: null | string;
|
|
3319
3446
|
};
|
|
3447
|
+
ClaimAppointmentResponse: {
|
|
3448
|
+
/** Format: uuid */
|
|
3449
|
+
id: string;
|
|
3450
|
+
/** Format: uuid */
|
|
3451
|
+
claimId: string;
|
|
3452
|
+
/** Format: date-time */
|
|
3453
|
+
scheduledAtUtc: string;
|
|
3454
|
+
purpose: string;
|
|
3455
|
+
arrangedBySubjectId: string;
|
|
3456
|
+
/** Format: date-time */
|
|
3457
|
+
arrangedAtUtc: string;
|
|
3458
|
+
cancelledBySubjectId: null | string;
|
|
3459
|
+
/** Format: date-time */
|
|
3460
|
+
cancelledAtUtc: null | string;
|
|
3461
|
+
isCancelled: boolean;
|
|
3462
|
+
};
|
|
3320
3463
|
ClaimEvidenceResponse: {
|
|
3321
3464
|
/** Format: uuid */
|
|
3322
3465
|
id: string;
|
|
@@ -3351,6 +3494,21 @@ export interface components {
|
|
|
3351
3494
|
/** Format: date-time */
|
|
3352
3495
|
publishedAtUtc: null | string;
|
|
3353
3496
|
};
|
|
3497
|
+
ClaimOutstandingItemResponse: {
|
|
3498
|
+
/** Format: uuid */
|
|
3499
|
+
id: string;
|
|
3500
|
+
/** Format: uuid */
|
|
3501
|
+
claimId: string;
|
|
3502
|
+
awaitedFrom: string;
|
|
3503
|
+
description: string;
|
|
3504
|
+
raisedBySubjectId: string;
|
|
3505
|
+
/** Format: date-time */
|
|
3506
|
+
raisedAtUtc: string;
|
|
3507
|
+
resolvedBySubjectId: null | string;
|
|
3508
|
+
/** Format: date-time */
|
|
3509
|
+
resolvedAtUtc: null | string;
|
|
3510
|
+
isOutstanding: boolean;
|
|
3511
|
+
};
|
|
3354
3512
|
ClaimResponse: {
|
|
3355
3513
|
/** Format: uuid */
|
|
3356
3514
|
id: string;
|
|
@@ -4408,6 +4566,10 @@ export interface components {
|
|
|
4408
4566
|
/** Format: date-time */
|
|
4409
4567
|
declinedAtUtc: null | string;
|
|
4410
4568
|
};
|
|
4569
|
+
RaiseClaimOutstandingItemRequest: {
|
|
4570
|
+
awaitedFrom: string;
|
|
4571
|
+
description: string;
|
|
4572
|
+
};
|
|
4411
4573
|
RaiseOutstandingItemRequest: {
|
|
4412
4574
|
awaitedFrom: null | string;
|
|
4413
4575
|
description: null | string;
|
|
@@ -7930,6 +8092,255 @@ export interface operations {
|
|
|
7930
8092
|
};
|
|
7931
8093
|
};
|
|
7932
8094
|
};
|
|
8095
|
+
ListClaimOutstandingItems: {
|
|
8096
|
+
parameters: {
|
|
8097
|
+
query?: {
|
|
8098
|
+
outstanding?: boolean;
|
|
8099
|
+
};
|
|
8100
|
+
header?: never;
|
|
8101
|
+
path: {
|
|
8102
|
+
id: string;
|
|
8103
|
+
};
|
|
8104
|
+
cookie?: never;
|
|
8105
|
+
};
|
|
8106
|
+
requestBody?: never;
|
|
8107
|
+
responses: {
|
|
8108
|
+
/** @description OK */
|
|
8109
|
+
200: {
|
|
8110
|
+
headers: {
|
|
8111
|
+
[name: string]: unknown;
|
|
8112
|
+
};
|
|
8113
|
+
content: {
|
|
8114
|
+
"application/json": components["schemas"]["ClaimOutstandingItemResponse"][];
|
|
8115
|
+
};
|
|
8116
|
+
};
|
|
8117
|
+
/** @description Bad Request */
|
|
8118
|
+
400: {
|
|
8119
|
+
headers: {
|
|
8120
|
+
[name: string]: unknown;
|
|
8121
|
+
};
|
|
8122
|
+
content: {
|
|
8123
|
+
"application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
|
|
8124
|
+
};
|
|
8125
|
+
};
|
|
8126
|
+
/** @description Not Found */
|
|
8127
|
+
404: {
|
|
8128
|
+
headers: {
|
|
8129
|
+
[name: string]: unknown;
|
|
8130
|
+
};
|
|
8131
|
+
content?: never;
|
|
8132
|
+
};
|
|
8133
|
+
};
|
|
8134
|
+
};
|
|
8135
|
+
RaiseClaimOutstandingItem: {
|
|
8136
|
+
parameters: {
|
|
8137
|
+
query?: never;
|
|
8138
|
+
header?: never;
|
|
8139
|
+
path: {
|
|
8140
|
+
id: string;
|
|
8141
|
+
};
|
|
8142
|
+
cookie?: never;
|
|
8143
|
+
};
|
|
8144
|
+
requestBody: {
|
|
8145
|
+
content: {
|
|
8146
|
+
"application/json": components["schemas"]["RaiseClaimOutstandingItemRequest"];
|
|
8147
|
+
};
|
|
8148
|
+
};
|
|
8149
|
+
responses: {
|
|
8150
|
+
/** @description Created */
|
|
8151
|
+
201: {
|
|
8152
|
+
headers: {
|
|
8153
|
+
[name: string]: unknown;
|
|
8154
|
+
};
|
|
8155
|
+
content: {
|
|
8156
|
+
"application/json": components["schemas"]["ClaimOutstandingItemResponse"];
|
|
8157
|
+
};
|
|
8158
|
+
};
|
|
8159
|
+
/** @description Bad Request */
|
|
8160
|
+
400: {
|
|
8161
|
+
headers: {
|
|
8162
|
+
[name: string]: unknown;
|
|
8163
|
+
};
|
|
8164
|
+
content: {
|
|
8165
|
+
"application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
|
|
8166
|
+
};
|
|
8167
|
+
};
|
|
8168
|
+
/** @description Not Found */
|
|
8169
|
+
404: {
|
|
8170
|
+
headers: {
|
|
8171
|
+
[name: string]: unknown;
|
|
8172
|
+
};
|
|
8173
|
+
content?: never;
|
|
8174
|
+
};
|
|
8175
|
+
/** @description Conflict */
|
|
8176
|
+
409: {
|
|
8177
|
+
headers: {
|
|
8178
|
+
[name: string]: unknown;
|
|
8179
|
+
};
|
|
8180
|
+
content: {
|
|
8181
|
+
"application/problem+json": components["schemas"]["ProblemDetails"];
|
|
8182
|
+
};
|
|
8183
|
+
};
|
|
8184
|
+
};
|
|
8185
|
+
};
|
|
8186
|
+
ResolveClaimOutstandingItem: {
|
|
8187
|
+
parameters: {
|
|
8188
|
+
query?: never;
|
|
8189
|
+
header?: never;
|
|
8190
|
+
path: {
|
|
8191
|
+
id: string;
|
|
8192
|
+
itemId: string;
|
|
8193
|
+
};
|
|
8194
|
+
cookie?: never;
|
|
8195
|
+
};
|
|
8196
|
+
requestBody?: never;
|
|
8197
|
+
responses: {
|
|
8198
|
+
/** @description OK */
|
|
8199
|
+
200: {
|
|
8200
|
+
headers: {
|
|
8201
|
+
[name: string]: unknown;
|
|
8202
|
+
};
|
|
8203
|
+
content: {
|
|
8204
|
+
"application/json": components["schemas"]["ClaimOutstandingItemResponse"];
|
|
8205
|
+
};
|
|
8206
|
+
};
|
|
8207
|
+
/** @description Not Found */
|
|
8208
|
+
404: {
|
|
8209
|
+
headers: {
|
|
8210
|
+
[name: string]: unknown;
|
|
8211
|
+
};
|
|
8212
|
+
content?: never;
|
|
8213
|
+
};
|
|
8214
|
+
/** @description Conflict */
|
|
8215
|
+
409: {
|
|
8216
|
+
headers: {
|
|
8217
|
+
[name: string]: unknown;
|
|
8218
|
+
};
|
|
8219
|
+
content: {
|
|
8220
|
+
"application/problem+json": components["schemas"]["ProblemDetails"];
|
|
8221
|
+
};
|
|
8222
|
+
};
|
|
8223
|
+
};
|
|
8224
|
+
};
|
|
8225
|
+
ListClaimAppointments: {
|
|
8226
|
+
parameters: {
|
|
8227
|
+
query?: never;
|
|
8228
|
+
header?: never;
|
|
8229
|
+
path: {
|
|
8230
|
+
id: string;
|
|
8231
|
+
};
|
|
8232
|
+
cookie?: never;
|
|
8233
|
+
};
|
|
8234
|
+
requestBody?: never;
|
|
8235
|
+
responses: {
|
|
8236
|
+
/** @description OK */
|
|
8237
|
+
200: {
|
|
8238
|
+
headers: {
|
|
8239
|
+
[name: string]: unknown;
|
|
8240
|
+
};
|
|
8241
|
+
content: {
|
|
8242
|
+
"application/json": components["schemas"]["ClaimAppointmentResponse"][];
|
|
8243
|
+
};
|
|
8244
|
+
};
|
|
8245
|
+
/** @description Not Found */
|
|
8246
|
+
404: {
|
|
8247
|
+
headers: {
|
|
8248
|
+
[name: string]: unknown;
|
|
8249
|
+
};
|
|
8250
|
+
content?: never;
|
|
8251
|
+
};
|
|
8252
|
+
};
|
|
8253
|
+
};
|
|
8254
|
+
ArrangeClaimAppointment: {
|
|
8255
|
+
parameters: {
|
|
8256
|
+
query?: never;
|
|
8257
|
+
header?: never;
|
|
8258
|
+
path: {
|
|
8259
|
+
id: string;
|
|
8260
|
+
};
|
|
8261
|
+
cookie?: never;
|
|
8262
|
+
};
|
|
8263
|
+
requestBody: {
|
|
8264
|
+
content: {
|
|
8265
|
+
"application/json": components["schemas"]["ArrangeClaimAppointmentRequest"];
|
|
8266
|
+
};
|
|
8267
|
+
};
|
|
8268
|
+
responses: {
|
|
8269
|
+
/** @description Created */
|
|
8270
|
+
201: {
|
|
8271
|
+
headers: {
|
|
8272
|
+
[name: string]: unknown;
|
|
8273
|
+
};
|
|
8274
|
+
content: {
|
|
8275
|
+
"application/json": components["schemas"]["ClaimAppointmentResponse"];
|
|
8276
|
+
};
|
|
8277
|
+
};
|
|
8278
|
+
/** @description Bad Request */
|
|
8279
|
+
400: {
|
|
8280
|
+
headers: {
|
|
8281
|
+
[name: string]: unknown;
|
|
8282
|
+
};
|
|
8283
|
+
content: {
|
|
8284
|
+
"application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
|
|
8285
|
+
};
|
|
8286
|
+
};
|
|
8287
|
+
/** @description Not Found */
|
|
8288
|
+
404: {
|
|
8289
|
+
headers: {
|
|
8290
|
+
[name: string]: unknown;
|
|
8291
|
+
};
|
|
8292
|
+
content?: never;
|
|
8293
|
+
};
|
|
8294
|
+
/** @description Conflict */
|
|
8295
|
+
409: {
|
|
8296
|
+
headers: {
|
|
8297
|
+
[name: string]: unknown;
|
|
8298
|
+
};
|
|
8299
|
+
content: {
|
|
8300
|
+
"application/problem+json": components["schemas"]["ProblemDetails"];
|
|
8301
|
+
};
|
|
8302
|
+
};
|
|
8303
|
+
};
|
|
8304
|
+
};
|
|
8305
|
+
CancelClaimAppointment: {
|
|
8306
|
+
parameters: {
|
|
8307
|
+
query?: never;
|
|
8308
|
+
header?: never;
|
|
8309
|
+
path: {
|
|
8310
|
+
id: string;
|
|
8311
|
+
appointmentId: string;
|
|
8312
|
+
};
|
|
8313
|
+
cookie?: never;
|
|
8314
|
+
};
|
|
8315
|
+
requestBody?: never;
|
|
8316
|
+
responses: {
|
|
8317
|
+
/** @description OK */
|
|
8318
|
+
200: {
|
|
8319
|
+
headers: {
|
|
8320
|
+
[name: string]: unknown;
|
|
8321
|
+
};
|
|
8322
|
+
content: {
|
|
8323
|
+
"application/json": components["schemas"]["ClaimAppointmentResponse"];
|
|
8324
|
+
};
|
|
8325
|
+
};
|
|
8326
|
+
/** @description Not Found */
|
|
8327
|
+
404: {
|
|
8328
|
+
headers: {
|
|
8329
|
+
[name: string]: unknown;
|
|
8330
|
+
};
|
|
8331
|
+
content?: never;
|
|
8332
|
+
};
|
|
8333
|
+
/** @description Conflict */
|
|
8334
|
+
409: {
|
|
8335
|
+
headers: {
|
|
8336
|
+
[name: string]: unknown;
|
|
8337
|
+
};
|
|
8338
|
+
content: {
|
|
8339
|
+
"application/problem+json": components["schemas"]["ProblemDetails"];
|
|
8340
|
+
};
|
|
8341
|
+
};
|
|
8342
|
+
};
|
|
8343
|
+
};
|
|
7933
8344
|
ReportOwnClaim: {
|
|
7934
8345
|
parameters: {
|
|
7935
8346
|
query?: never;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@insurance-broker/api-client",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.27.0",
|
|
4
4
|
"description": "Generated TypeScript client for the Insurance Broker Platform API. Do not edit by hand: regenerate with scripts/update-api-contract.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"private": false,
|