@insurance-broker/api-client 2.13.0 → 2.15.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 +30 -0
  2. package/package.json +1 -1
package/dist/schema.d.ts CHANGED
@@ -2105,6 +2105,10 @@ export interface paths {
2105
2105
  * **The insurer decides, and this platform records.** A claim has no approved, declined or settled state, because those are not states this platform can enter (ADR-0041 section 2).
2106
2106
  *
2107
2107
  * To retract a claim, tell your broker. Concluding a case starts its retention clock, so it is recorded by the person who was told.
2108
+ *
2109
+ * **`idempotencyKey` is optional, and it is the only thing that makes a retry safe.** Without one, sending the report twice opens two claims. With one: a repeat carrying a key you already used **returns the original claim and the same `201 Created` with the same `Location`**, so a retry after a lost response opens nothing new. A repeat carrying that key with a **different** policy or incident day is a `409` and opens nothing.
2110
+ *
2111
+ * **A key is honoured for 30 days from the moment the claim was reported, and then stops being honoured.** After that the same key is one this platform has never seen. Mint a fresh key per intended report and reuse it only to retry that report (#444). A key is yours alone: another customer sending the same string never meets your claim.
2108
2112
  */
2109
2113
  post: operations["ReportOwnClaim"];
2110
2114
  delete?: never;
@@ -6130,6 +6134,21 @@ export interface components {
6130
6134
  items: components["schemas"]["PolicyResponse"][];
6131
6135
  nextCursor: null | string;
6132
6136
  };
6137
+ CustomerPresentedOption: {
6138
+ /** Format: uuid */
6139
+ optionId: string;
6140
+ insurerName: string;
6141
+ /** Format: double */
6142
+ premiumAmount: number | string;
6143
+ premiumCurrency: string;
6144
+ /** Format: date */
6145
+ coverStart: string;
6146
+ /** Format: date */
6147
+ coverEnd: string;
6148
+ /** Format: date */
6149
+ validUntil: string;
6150
+ hasExpired: boolean;
6151
+ };
6133
6152
  CustomerPresentedQuoteResponse: {
6134
6153
  /** Format: uuid */
6135
6154
  presentationVersionId: string;
@@ -6145,6 +6164,7 @@ export interface components {
6145
6164
  /** Format: date */
6146
6165
  asOf: string;
6147
6166
  options: components["schemas"]["CustomerQuoteOptionValidity"][];
6167
+ presentedOptions: components["schemas"]["CustomerPresentedOption"][];
6148
6168
  };
6149
6169
  CustomerQuoteComparisonResponse: {
6150
6170
  /** Format: uuid */
@@ -7918,6 +7938,7 @@ export interface components {
7918
7938
  policyId: string;
7919
7939
  /** Format: date */
7920
7940
  incidentOn: string;
7941
+ idempotencyKey?: null | string;
7921
7942
  };
7922
7943
  RespondToRenewalRequest: {
7923
7944
  answer: null | string;
@@ -12989,6 +13010,15 @@ export interface operations {
12989
13010
  "application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
12990
13011
  };
12991
13012
  };
13013
+ /** @description Conflict */
13014
+ 409: {
13015
+ headers: {
13016
+ [name: string]: unknown;
13017
+ };
13018
+ content: {
13019
+ "application/problem+json": components["schemas"]["ProblemDetails"];
13020
+ };
13021
+ };
12992
13022
  };
12993
13023
  };
12994
13024
  GetOwnClaimTimeline: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@insurance-broker/api-client",
3
- "version": "2.13.0",
3
+ "version": "2.15.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,