@insurance-broker/api-client 2.18.0 → 2.20.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.
Files changed (2) hide show
  1. package/dist/schema.d.ts +188 -1
  2. 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;
@@ -2271,7 +2321,7 @@ export interface paths {
2271
2321
  *
2272
2322
  * **This is the answer and not the configuration.** Each entry is the contact that applies to you. It does not say whether your broker chose it or the platform did, because that is not a question anybody needs answered at the scene of an incident.
2273
2323
  *
2274
- * **You are not named in the request, and neither is your broker.** There is no country field and no product field: the list is your own broker's, for the country they operate in, resolved from the session you are signed in with.
2324
+ * **You are not named in the request, and neither is your broker.** There is no country field and no product field: the list is your own broker's, for the country they operate in, resolved from the session you are signed in with. This is your broker's answer across every product; for the answer on one of your policies, read `/customer/policies/{policyId}/emergency-contacts`.
2275
2325
  *
2276
2326
  * Calling an emergency service is not reporting a claim. When you are safe, report the loss to your broker separately.
2277
2327
  */
@@ -2284,6 +2334,32 @@ export interface paths {
2284
2334
  patch?: never;
2285
2335
  trace?: never;
2286
2336
  };
2337
+ "/api/v1/customer/policies/{policyId}/emergency-contacts": {
2338
+ parameters: {
2339
+ query?: never;
2340
+ header?: never;
2341
+ path?: never;
2342
+ cookie?: never;
2343
+ };
2344
+ /**
2345
+ * Who to call in an emergency on one of your policies, and what to do first
2346
+ * @description CLM-003, for one of your own policies. The same answer as `/customer/emergency-contacts`, resolved for the product that policy is on: where your broker has configured a different contact for that product, this is where you see it.
2347
+ *
2348
+ * **You name a policy, never a product.** The product is read from the policy, and the policy has to be yours. A policy belonging to somebody else and a policy that does not exist are one 404, because a policy that is not yours is not visible to this route at all.
2349
+ *
2350
+ * **This is the answer and not the configuration.** It does not say whether the contact came from your broker's product setting, their default, or the platform.
2351
+ *
2352
+ * Calling an emergency service is not reporting a claim. When you are safe, report the loss to your broker separately.
2353
+ */
2354
+ get: operations["ReadOwnBrokersEmergencyContactsForPolicy"];
2355
+ put?: never;
2356
+ post?: never;
2357
+ delete?: never;
2358
+ options?: never;
2359
+ head?: never;
2360
+ patch?: never;
2361
+ trace?: never;
2362
+ };
2287
2363
  "/api/v1/leads": {
2288
2364
  parameters: {
2289
2365
  query?: never;
@@ -5938,6 +6014,10 @@ export interface components {
5938
6014
  body: string;
5939
6015
  /** Format: date-time */
5940
6016
  occurredAtUtc: string;
6017
+ kind: string;
6018
+ awaitedFrom: null | string;
6019
+ /** Format: date-time */
6020
+ scheduledAtUtc: null | string;
5941
6021
  };
5942
6022
  CloseClaimRequest: {
5943
6023
  reason: string;
@@ -12905,6 +12985,45 @@ export interface operations {
12905
12985
  };
12906
12986
  };
12907
12987
  };
12988
+ PublishClaimOutstandingItem: {
12989
+ parameters: {
12990
+ query?: never;
12991
+ header?: never;
12992
+ path: {
12993
+ id: string;
12994
+ itemId: string;
12995
+ };
12996
+ cookie?: never;
12997
+ };
12998
+ requestBody?: never;
12999
+ responses: {
13000
+ /** @description Created */
13001
+ 201: {
13002
+ headers: {
13003
+ [name: string]: unknown;
13004
+ };
13005
+ content: {
13006
+ "application/json": components["schemas"]["ClaimTimelineEntryResponse"];
13007
+ };
13008
+ };
13009
+ /** @description Not Found */
13010
+ 404: {
13011
+ headers: {
13012
+ [name: string]: unknown;
13013
+ };
13014
+ content?: never;
13015
+ };
13016
+ /** @description Conflict */
13017
+ 409: {
13018
+ headers: {
13019
+ [name: string]: unknown;
13020
+ };
13021
+ content: {
13022
+ "application/problem+json": components["schemas"]["ProblemDetails"];
13023
+ };
13024
+ };
13025
+ };
13026
+ };
12908
13027
  ListClaimAppointments: {
12909
13028
  parameters: {
12910
13029
  query?: never;
@@ -13024,6 +13143,45 @@ export interface operations {
13024
13143
  };
13025
13144
  };
13026
13145
  };
13146
+ PublishClaimAppointment: {
13147
+ parameters: {
13148
+ query?: never;
13149
+ header?: never;
13150
+ path: {
13151
+ id: string;
13152
+ appointmentId: string;
13153
+ };
13154
+ cookie?: never;
13155
+ };
13156
+ requestBody?: never;
13157
+ responses: {
13158
+ /** @description Created */
13159
+ 201: {
13160
+ headers: {
13161
+ [name: string]: unknown;
13162
+ };
13163
+ content: {
13164
+ "application/json": components["schemas"]["ClaimTimelineEntryResponse"];
13165
+ };
13166
+ };
13167
+ /** @description Not Found */
13168
+ 404: {
13169
+ headers: {
13170
+ [name: string]: unknown;
13171
+ };
13172
+ content?: never;
13173
+ };
13174
+ /** @description Conflict */
13175
+ 409: {
13176
+ headers: {
13177
+ [name: string]: unknown;
13178
+ };
13179
+ content: {
13180
+ "application/problem+json": components["schemas"]["ProblemDetails"];
13181
+ };
13182
+ };
13183
+ };
13184
+ };
13027
13185
  ListOwnClaims: {
13028
13186
  parameters: {
13029
13187
  query?: {
@@ -13320,6 +13478,35 @@ export interface operations {
13320
13478
  };
13321
13479
  };
13322
13480
  };
13481
+ ReadOwnBrokersEmergencyContactsForPolicy: {
13482
+ parameters: {
13483
+ query?: never;
13484
+ header?: never;
13485
+ path: {
13486
+ policyId: string;
13487
+ };
13488
+ cookie?: never;
13489
+ };
13490
+ requestBody?: never;
13491
+ responses: {
13492
+ /** @description OK */
13493
+ 200: {
13494
+ headers: {
13495
+ [name: string]: unknown;
13496
+ };
13497
+ content: {
13498
+ "application/json": components["schemas"]["CustomerEmergencyContactResponse"][];
13499
+ };
13500
+ };
13501
+ /** @description Not Found */
13502
+ 404: {
13503
+ headers: {
13504
+ [name: string]: unknown;
13505
+ };
13506
+ content?: never;
13507
+ };
13508
+ };
13509
+ };
13323
13510
  ListLeads: {
13324
13511
  parameters: {
13325
13512
  query?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@insurance-broker/api-client",
3
- "version": "2.18.0",
3
+ "version": "2.20.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,