@insurance-broker/api-client 5.2.0 → 5.3.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 +14 -0
- package/package.json +1 -1
package/dist/schema.d.ts
CHANGED
|
@@ -1877,6 +1877,10 @@ export interface paths {
|
|
|
1877
1877
|
* **One refusal covers four facts.** A policy that does not exist, one belonging to another broker, one belonging to another customer, and one not in force on the incident date are all answered the same way, so the route cannot be used to discover which policies a broker holds.
|
|
1878
1878
|
*
|
|
1879
1879
|
* The customer is named in the request and is not believed: it is checked against the policy, and the claim records the owner the policy gave.
|
|
1880
|
+
*
|
|
1881
|
+
* **`idempotencyKey` is optional, and it is the only thing that makes a retry safe.** Without one, sending the notification twice opens two claims. With one: a repeat carrying a key 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, customer or incident day is a `409` and opens nothing.
|
|
1882
|
+
*
|
|
1883
|
+
* **A key is honoured for 30 days from the moment the claim was notified, and then stops being honoured.** After that the same key is one this platform has never seen. Mint a fresh key per form and reuse it only to retry that notification (#565). A key is shared by everybody at this broker — a colleague sending the same string meets the same claim — and is never shared with another broker, or with the key a customer sends when reporting a claim themselves.
|
|
1880
1884
|
*/
|
|
1881
1885
|
post: operations["NotifyClaim"];
|
|
1882
1886
|
delete?: never;
|
|
@@ -7890,6 +7894,7 @@ export interface components {
|
|
|
7890
7894
|
customerId: string;
|
|
7891
7895
|
/** Format: date */
|
|
7892
7896
|
incidentOn: string;
|
|
7897
|
+
idempotencyKey?: null | string;
|
|
7893
7898
|
};
|
|
7894
7899
|
ObligationPage: {
|
|
7895
7900
|
items: components["schemas"]["ObligationSummaryResponse"][];
|
|
@@ -13956,6 +13961,15 @@ export interface operations {
|
|
|
13956
13961
|
"application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
|
|
13957
13962
|
};
|
|
13958
13963
|
};
|
|
13964
|
+
/** @description Conflict. A type of urn:brokerplatform:problem:concurrency-conflict means someone else changed the record first and nothing was written: read it again and decide again. Any other type is a conflict this operation decided itself, and retrying it unchanged will not help. */
|
|
13965
|
+
409: {
|
|
13966
|
+
headers: {
|
|
13967
|
+
[name: string]: unknown;
|
|
13968
|
+
};
|
|
13969
|
+
content: {
|
|
13970
|
+
"application/problem+json": components["schemas"]["ConcurrencyConflictProblem"] | components["schemas"]["ProblemDetails"];
|
|
13971
|
+
};
|
|
13972
|
+
};
|
|
13959
13973
|
};
|
|
13960
13974
|
};
|
|
13961
13975
|
GetClaim: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@insurance-broker/api-client",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.3.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,
|