@insurance-broker/api-client 2.18.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 +132 -0
- package/package.json +1 -1
package/dist/schema.d.ts
CHANGED
|
@@ -2032,6 +2032,30 @@ export interface paths {
|
|
|
2032
2032
|
patch?: never;
|
|
2033
2033
|
trace?: never;
|
|
2034
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
|
+
};
|
|
2035
2059
|
"/api/v1/claims/{id}/appointments": {
|
|
2036
2060
|
parameters: {
|
|
2037
2061
|
query?: never;
|
|
@@ -2092,6 +2116,30 @@ export interface paths {
|
|
|
2092
2116
|
patch?: never;
|
|
2093
2117
|
trace?: never;
|
|
2094
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
|
+
};
|
|
2095
2143
|
"/api/v1/customer/claims": {
|
|
2096
2144
|
parameters: {
|
|
2097
2145
|
query?: never;
|
|
@@ -2146,6 +2194,8 @@ export interface paths {
|
|
|
2146
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.
|
|
2147
2195
|
*
|
|
2148
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.
|
|
2149
2199
|
*/
|
|
2150
2200
|
get: operations["GetOwnClaimTimeline"];
|
|
2151
2201
|
put?: never;
|
|
@@ -5938,6 +5988,10 @@ export interface components {
|
|
|
5938
5988
|
body: string;
|
|
5939
5989
|
/** Format: date-time */
|
|
5940
5990
|
occurredAtUtc: string;
|
|
5991
|
+
kind: string;
|
|
5992
|
+
awaitedFrom: null | string;
|
|
5993
|
+
/** Format: date-time */
|
|
5994
|
+
scheduledAtUtc: null | string;
|
|
5941
5995
|
};
|
|
5942
5996
|
CloseClaimRequest: {
|
|
5943
5997
|
reason: string;
|
|
@@ -12905,6 +12959,45 @@ export interface operations {
|
|
|
12905
12959
|
};
|
|
12906
12960
|
};
|
|
12907
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
|
+
};
|
|
12908
13001
|
ListClaimAppointments: {
|
|
12909
13002
|
parameters: {
|
|
12910
13003
|
query?: never;
|
|
@@ -13024,6 +13117,45 @@ export interface operations {
|
|
|
13024
13117
|
};
|
|
13025
13118
|
};
|
|
13026
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
|
+
};
|
|
13027
13159
|
ListOwnClaims: {
|
|
13028
13160
|
parameters: {
|
|
13029
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,
|