@insurance-broker/api-client 2.17.0 → 2.19.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 +150 -3
- package/package.json +1 -1
package/dist/schema.d.ts
CHANGED
|
@@ -1163,7 +1163,12 @@ export interface paths {
|
|
|
1163
1163
|
/** The broker's submissions, newest first. */
|
|
1164
1164
|
get: operations["ListFormSubmissions"];
|
|
1165
1165
|
put?: never;
|
|
1166
|
-
/**
|
|
1166
|
+
/**
|
|
1167
|
+
* Starts answering a form, pinning the version that is live now.
|
|
1168
|
+
* @description Starts a submission of the named form on a customer's behalf, against the version of it that is live now.
|
|
1169
|
+
*
|
|
1170
|
+
* **A `409` here is a settled fact, and `type` says which** (#459). `urn:brokerplatform:problem:product-not-open-to-new-business` means the product is not open to new business — still a draft, or withdrawn — so there is nothing to answer against and nothing to retry. `urn:brokerplatform:problem:form-has-no-live-version` means no version of this form is published, so there is nothing to answer until one is.
|
|
1171
|
+
*/
|
|
1167
1172
|
post: operations["StartFormSubmission"];
|
|
1168
1173
|
delete?: never;
|
|
1169
1174
|
options?: never;
|
|
@@ -1231,7 +1236,12 @@ export interface paths {
|
|
|
1231
1236
|
};
|
|
1232
1237
|
get?: never;
|
|
1233
1238
|
put?: never;
|
|
1234
|
-
/**
|
|
1239
|
+
/**
|
|
1240
|
+
* Moves a draft onto the version of its form that is live now.
|
|
1241
|
+
* @description Moves a draft onto the version of its form that is live now, carrying every answer whose question survived and naming the ones that did not.
|
|
1242
|
+
*
|
|
1243
|
+
* **A `409` here is a settled fact.** Two of them carry their own `type` (#459): `urn:brokerplatform:problem:product-not-open-to-new-business` means the product is no longer open to new business, so the draft stays on the version it has; `urn:brokerplatform:problem:form-has-no-live-version` means the form's live version was taken down and there is nothing to move onto. A `409` with the default `type` is the draft already being on the live version, or the submission already having been made.
|
|
1244
|
+
*/
|
|
1235
1245
|
post: operations["RepinFormSubmission"];
|
|
1236
1246
|
delete?: never;
|
|
1237
1247
|
options?: never;
|
|
@@ -1249,7 +1259,12 @@ export interface paths {
|
|
|
1249
1259
|
/** This customer's own submissions, newest first. */
|
|
1250
1260
|
get: operations["ListCustomerFormSubmissions"];
|
|
1251
1261
|
put?: never;
|
|
1252
|
-
/**
|
|
1262
|
+
/**
|
|
1263
|
+
* Starts answering a form, pinning the version that is live now.
|
|
1264
|
+
* @description Starts a submission of the named form for the calling customer, against the version of it that is live now. The owner is never in the request.
|
|
1265
|
+
*
|
|
1266
|
+
* **A `409` here is one of three things, and `type` is what tells them apart** (#459). `urn:brokerplatform:problem:draft-already-open` means you already have a draft of this form open and it is named in `submissionId`, so resume that one rather than showing the sentence in `detail`. `urn:brokerplatform:problem:product-not-open-to-new-business` means the product is no longer offered, so there is nothing to open and nothing to retry. `urn:brokerplatform:problem:form-has-no-live-version` means the broker has not published a version of this form to answer; retrying will not change that until they do.
|
|
1267
|
+
*/
|
|
1253
1268
|
post: operations["StartCustomerFormSubmission"];
|
|
1254
1269
|
delete?: never;
|
|
1255
1270
|
options?: never;
|
|
@@ -2017,6 +2032,30 @@ export interface paths {
|
|
|
2017
2032
|
patch?: never;
|
|
2018
2033
|
trace?: never;
|
|
2019
2034
|
};
|
|
2035
|
+
"/api/v1/claims/{id}/outstanding-items/{itemId}/publication": {
|
|
2036
|
+
parameters: {
|
|
2037
|
+
query?: never;
|
|
2038
|
+
header?: never;
|
|
2039
|
+
path?: never;
|
|
2040
|
+
cookie?: never;
|
|
2041
|
+
};
|
|
2042
|
+
get?: never;
|
|
2043
|
+
put?: never;
|
|
2044
|
+
/**
|
|
2045
|
+
* Tell the customer what their claim is waiting on
|
|
2046
|
+
* @description CLM-005, CLM-006. Copies one outstanding item onto the customer's timeline as an entry of kind `OutstandingItem`, carrying the description **as you wrote it** and which side owes it, and recording who decided to and when.
|
|
2047
|
+
*
|
|
2048
|
+
* **Publishing is the judgment that the words are fit for the customer.** An item is written for your own desk, and some of those words are not addressed to the customer even when the customer owes the thing - so nothing is published by default, and there is no second field to say it differently in. If the description is not something you would say to them, tell them on the timeline in words you would, and leave the item unpublished.
|
|
2049
|
+
*
|
|
2050
|
+
* **A copy, not a flag.** The item is unchanged, and resolving it afterwards does not reach back into the timeline: tell the customer it arrived as a further entry. Publishing the same item twice is refused with 409, as a note is. Refused with 409 once the item has been resolved - the entry would say you are waiting on something you already have - and once the claim has concluded.
|
|
2051
|
+
*/
|
|
2052
|
+
post: operations["PublishClaimOutstandingItem"];
|
|
2053
|
+
delete?: never;
|
|
2054
|
+
options?: never;
|
|
2055
|
+
head?: never;
|
|
2056
|
+
patch?: never;
|
|
2057
|
+
trace?: never;
|
|
2058
|
+
};
|
|
2020
2059
|
"/api/v1/claims/{id}/appointments": {
|
|
2021
2060
|
parameters: {
|
|
2022
2061
|
query?: never;
|
|
@@ -2077,6 +2116,30 @@ export interface paths {
|
|
|
2077
2116
|
patch?: never;
|
|
2078
2117
|
trace?: never;
|
|
2079
2118
|
};
|
|
2119
|
+
"/api/v1/claims/{id}/appointments/{appointmentId}/publication": {
|
|
2120
|
+
parameters: {
|
|
2121
|
+
query?: never;
|
|
2122
|
+
header?: never;
|
|
2123
|
+
path?: never;
|
|
2124
|
+
cookie?: never;
|
|
2125
|
+
};
|
|
2126
|
+
get?: never;
|
|
2127
|
+
put?: never;
|
|
2128
|
+
/**
|
|
2129
|
+
* Tell the customer a visit has been arranged
|
|
2130
|
+
* @description CLM-005, CLM-006. Copies one appointment onto the customer's timeline as an entry of kind `Appointment`, carrying the purpose **as you wrote it** and when the visit is expected, and recording who decided to and when.
|
|
2131
|
+
*
|
|
2132
|
+
* **Whether the customer learns who is coming is whatever you wrote.** This platform names no assessor, adjuster or provider on your behalf; the purpose is your sentence, and publishing it is your judgment that it reads well to the person who has to be there.
|
|
2133
|
+
*
|
|
2134
|
+
* **A copy, not a flag.** The appointment is unchanged, and cancelling it afterwards does not reach back into the timeline: tell the customer it was called off as a further entry. Publishing the same visit twice is refused with 409, as a note is. Refused with 409 once the visit has been cancelled - the entry would say somebody is coming who is not - and once the claim has concluded.
|
|
2135
|
+
*/
|
|
2136
|
+
post: operations["PublishClaimAppointment"];
|
|
2137
|
+
delete?: never;
|
|
2138
|
+
options?: never;
|
|
2139
|
+
head?: never;
|
|
2140
|
+
patch?: never;
|
|
2141
|
+
trace?: never;
|
|
2142
|
+
};
|
|
2080
2143
|
"/api/v1/customer/claims": {
|
|
2081
2144
|
parameters: {
|
|
2082
2145
|
query?: never;
|
|
@@ -2131,6 +2194,8 @@ export interface paths {
|
|
|
2131
2194
|
* **This is everything there is to see.** It is not a filtered view of your broker's own notes with the private parts removed - your broker's working papers are a different record entirely, which nothing here can reach (ADR-0041 section 3). When your broker wants you to know what one of their notes says, they publish it, and it appears here as an entry with the time they told you.
|
|
2132
2195
|
*
|
|
2133
2196
|
* Each entry says what you were told and when. It does not say which member of staff decided to tell you.
|
|
2197
|
+
*
|
|
2198
|
+
* **`kind` says what shape of thing you were told.** `Message` is something your broker wrote to you. `OutstandingItem` is something your claim is waiting on, published so you know what is needed and from whom - `awaitedFrom` says whether it is you or your broker who owes it. `Appointment` is a visit arranged about your claim - `scheduledAtUtc` says when. In every case `body` is your broker's own words. An entry is a copy made at the moment you were told: if what your claim is waiting on has since arrived, or a visit has since been called off, your broker tells you that as a further entry.
|
|
2134
2199
|
*/
|
|
2135
2200
|
get: operations["GetOwnClaimTimeline"];
|
|
2136
2201
|
put?: never;
|
|
@@ -5923,6 +5988,10 @@ export interface components {
|
|
|
5923
5988
|
body: string;
|
|
5924
5989
|
/** Format: date-time */
|
|
5925
5990
|
occurredAtUtc: string;
|
|
5991
|
+
kind: string;
|
|
5992
|
+
awaitedFrom: null | string;
|
|
5993
|
+
/** Format: date-time */
|
|
5994
|
+
scheduledAtUtc: null | string;
|
|
5926
5995
|
};
|
|
5927
5996
|
CloseClaimRequest: {
|
|
5928
5997
|
reason: string;
|
|
@@ -12890,6 +12959,45 @@ export interface operations {
|
|
|
12890
12959
|
};
|
|
12891
12960
|
};
|
|
12892
12961
|
};
|
|
12962
|
+
PublishClaimOutstandingItem: {
|
|
12963
|
+
parameters: {
|
|
12964
|
+
query?: never;
|
|
12965
|
+
header?: never;
|
|
12966
|
+
path: {
|
|
12967
|
+
id: string;
|
|
12968
|
+
itemId: string;
|
|
12969
|
+
};
|
|
12970
|
+
cookie?: never;
|
|
12971
|
+
};
|
|
12972
|
+
requestBody?: never;
|
|
12973
|
+
responses: {
|
|
12974
|
+
/** @description Created */
|
|
12975
|
+
201: {
|
|
12976
|
+
headers: {
|
|
12977
|
+
[name: string]: unknown;
|
|
12978
|
+
};
|
|
12979
|
+
content: {
|
|
12980
|
+
"application/json": components["schemas"]["ClaimTimelineEntryResponse"];
|
|
12981
|
+
};
|
|
12982
|
+
};
|
|
12983
|
+
/** @description Not Found */
|
|
12984
|
+
404: {
|
|
12985
|
+
headers: {
|
|
12986
|
+
[name: string]: unknown;
|
|
12987
|
+
};
|
|
12988
|
+
content?: never;
|
|
12989
|
+
};
|
|
12990
|
+
/** @description Conflict */
|
|
12991
|
+
409: {
|
|
12992
|
+
headers: {
|
|
12993
|
+
[name: string]: unknown;
|
|
12994
|
+
};
|
|
12995
|
+
content: {
|
|
12996
|
+
"application/problem+json": components["schemas"]["ProblemDetails"];
|
|
12997
|
+
};
|
|
12998
|
+
};
|
|
12999
|
+
};
|
|
13000
|
+
};
|
|
12893
13001
|
ListClaimAppointments: {
|
|
12894
13002
|
parameters: {
|
|
12895
13003
|
query?: never;
|
|
@@ -13009,6 +13117,45 @@ export interface operations {
|
|
|
13009
13117
|
};
|
|
13010
13118
|
};
|
|
13011
13119
|
};
|
|
13120
|
+
PublishClaimAppointment: {
|
|
13121
|
+
parameters: {
|
|
13122
|
+
query?: never;
|
|
13123
|
+
header?: never;
|
|
13124
|
+
path: {
|
|
13125
|
+
id: string;
|
|
13126
|
+
appointmentId: string;
|
|
13127
|
+
};
|
|
13128
|
+
cookie?: never;
|
|
13129
|
+
};
|
|
13130
|
+
requestBody?: never;
|
|
13131
|
+
responses: {
|
|
13132
|
+
/** @description Created */
|
|
13133
|
+
201: {
|
|
13134
|
+
headers: {
|
|
13135
|
+
[name: string]: unknown;
|
|
13136
|
+
};
|
|
13137
|
+
content: {
|
|
13138
|
+
"application/json": components["schemas"]["ClaimTimelineEntryResponse"];
|
|
13139
|
+
};
|
|
13140
|
+
};
|
|
13141
|
+
/** @description Not Found */
|
|
13142
|
+
404: {
|
|
13143
|
+
headers: {
|
|
13144
|
+
[name: string]: unknown;
|
|
13145
|
+
};
|
|
13146
|
+
content?: never;
|
|
13147
|
+
};
|
|
13148
|
+
/** @description Conflict */
|
|
13149
|
+
409: {
|
|
13150
|
+
headers: {
|
|
13151
|
+
[name: string]: unknown;
|
|
13152
|
+
};
|
|
13153
|
+
content: {
|
|
13154
|
+
"application/problem+json": components["schemas"]["ProblemDetails"];
|
|
13155
|
+
};
|
|
13156
|
+
};
|
|
13157
|
+
};
|
|
13158
|
+
};
|
|
13012
13159
|
ListOwnClaims: {
|
|
13013
13160
|
parameters: {
|
|
13014
13161
|
query?: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@insurance-broker/api-client",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.19.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,
|