@insurance-broker/api-client 2.4.0 → 2.6.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 +75 -0
- package/package.json +1 -1
package/dist/schema.d.ts
CHANGED
|
@@ -34,6 +34,16 @@ export interface paths {
|
|
|
34
34
|
* The **payer is not a field** either. An obligation is owed by whoever owns the policy, so a customer identifier here could only ever agree or be wrong (ADR-0042 §3).
|
|
35
35
|
*
|
|
36
36
|
* A **due date in the past is accepted**: a book carried across from another system arrives already in arrears, and refusing that would make a migrated debt unrepresentable.
|
|
37
|
+
*
|
|
38
|
+
* **`idempotencyKey` is optional, and it is the only thing that makes a retry safe.** Without one, a double-tapped button, a client retry after a timeout or two officers recording the same instalment each raise a separate debt — and that is correct, because two identical instalments falling due on one day is legitimate and nothing about `(policy, amount, due date, description)` can be made unique.
|
|
39
|
+
*
|
|
40
|
+
* With one: a repeat carrying a key already used **returns the original charge and the same `201 Created` with the same `Location`**, so an honest retry is indistinguishable from a first call and no second debt exists. A repeat carrying that key with a **different** policy, amount, due date or description is a `409` and raises nothing.
|
|
41
|
+
*
|
|
42
|
+
* **A key is honoured for as long as the charge it raised is kept, and nothing sweeps keys.** It is stored on the obligation rather than in a store of its own. Mint a fresh key per intended charge; do not recycle one (#394).
|
|
43
|
+
*
|
|
44
|
+
* **What a key does not do**: it assumes the retrying client owns it. Two people at two desks recording the same instalment invent two keys, and both charges are raised (ADR-0042 §19).
|
|
45
|
+
*
|
|
46
|
+
* **Two different things answer `409` here.** A key collision is settled — retrying it can only fail again — and carries no `retryable` marker. The group's concurrency conflict is the other one and says it is retryable. Branch on that, not on the status.
|
|
37
47
|
*/
|
|
38
48
|
post: operations["RaiseObligation"];
|
|
39
49
|
delete?: never;
|
|
@@ -2227,6 +2237,32 @@ export interface paths {
|
|
|
2227
2237
|
patch?: never;
|
|
2228
2238
|
trace?: never;
|
|
2229
2239
|
};
|
|
2240
|
+
"/api/v1/customer/emergency-contacts": {
|
|
2241
|
+
parameters: {
|
|
2242
|
+
query?: never;
|
|
2243
|
+
header?: never;
|
|
2244
|
+
path?: never;
|
|
2245
|
+
cookie?: never;
|
|
2246
|
+
};
|
|
2247
|
+
/**
|
|
2248
|
+
* Who to call in an emergency, and what to do first
|
|
2249
|
+
* @description CLM-003, the customer's half. What your broker wants you to do if something happens, in the order they want you to do it.
|
|
2250
|
+
*
|
|
2251
|
+
* **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.
|
|
2252
|
+
*
|
|
2253
|
+
* **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.
|
|
2254
|
+
*
|
|
2255
|
+
* Calling an emergency service is not reporting a claim. When you are safe, report the loss to your broker separately.
|
|
2256
|
+
*/
|
|
2257
|
+
get: operations["ReadOwnBrokersEmergencyContacts"];
|
|
2258
|
+
put?: never;
|
|
2259
|
+
post?: never;
|
|
2260
|
+
delete?: never;
|
|
2261
|
+
options?: never;
|
|
2262
|
+
head?: never;
|
|
2263
|
+
patch?: never;
|
|
2264
|
+
trace?: never;
|
|
2265
|
+
};
|
|
2230
2266
|
"/api/v1/leads": {
|
|
2231
2267
|
parameters: {
|
|
2232
2268
|
query?: never;
|
|
@@ -5624,6 +5660,15 @@ export interface components {
|
|
|
5624
5660
|
state: string;
|
|
5625
5661
|
value: null | string;
|
|
5626
5662
|
};
|
|
5663
|
+
CustomerEmergencyContactResponse: {
|
|
5664
|
+
countryCode: string;
|
|
5665
|
+
contact: string;
|
|
5666
|
+
name: string;
|
|
5667
|
+
description: null | string;
|
|
5668
|
+
providerName: string;
|
|
5669
|
+
contactDetail: string;
|
|
5670
|
+
instruction: string;
|
|
5671
|
+
};
|
|
5627
5672
|
CustomerInsurerOutcomeResponse: {
|
|
5628
5673
|
/** Format: uuid */
|
|
5629
5674
|
id: string;
|
|
@@ -7149,6 +7194,7 @@ export interface components {
|
|
|
7149
7194
|
/** Format: date */
|
|
7150
7195
|
dueOn: string;
|
|
7151
7196
|
description: string;
|
|
7197
|
+
idempotencyKey?: null | string;
|
|
7152
7198
|
};
|
|
7153
7199
|
RaiseOutstandingItemRequest: {
|
|
7154
7200
|
awaitedFrom: null | string;
|
|
@@ -7819,6 +7865,15 @@ export interface operations {
|
|
|
7819
7865
|
"application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
|
|
7820
7866
|
};
|
|
7821
7867
|
};
|
|
7868
|
+
/** @description Conflict */
|
|
7869
|
+
409: {
|
|
7870
|
+
headers: {
|
|
7871
|
+
[name: string]: unknown;
|
|
7872
|
+
};
|
|
7873
|
+
content: {
|
|
7874
|
+
"application/problem+json": components["schemas"]["ProblemDetails"];
|
|
7875
|
+
};
|
|
7876
|
+
};
|
|
7822
7877
|
};
|
|
7823
7878
|
};
|
|
7824
7879
|
GetObligation: {
|
|
@@ -12588,6 +12643,26 @@ export interface operations {
|
|
|
12588
12643
|
};
|
|
12589
12644
|
};
|
|
12590
12645
|
};
|
|
12646
|
+
ReadOwnBrokersEmergencyContacts: {
|
|
12647
|
+
parameters: {
|
|
12648
|
+
query?: never;
|
|
12649
|
+
header?: never;
|
|
12650
|
+
path?: never;
|
|
12651
|
+
cookie?: never;
|
|
12652
|
+
};
|
|
12653
|
+
requestBody?: never;
|
|
12654
|
+
responses: {
|
|
12655
|
+
/** @description OK */
|
|
12656
|
+
200: {
|
|
12657
|
+
headers: {
|
|
12658
|
+
[name: string]: unknown;
|
|
12659
|
+
};
|
|
12660
|
+
content: {
|
|
12661
|
+
"application/json": components["schemas"]["CustomerEmergencyContactResponse"][];
|
|
12662
|
+
};
|
|
12663
|
+
};
|
|
12664
|
+
};
|
|
12665
|
+
};
|
|
12591
12666
|
ListLeads: {
|
|
12592
12667
|
parameters: {
|
|
12593
12668
|
query?: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@insurance-broker/api-client",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.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,
|