@insurance-broker/api-client 1.12.0 → 1.14.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 +198 -1
- package/package.json +1 -1
package/dist/schema.d.ts
CHANGED
|
@@ -851,6 +851,80 @@ export interface paths {
|
|
|
851
851
|
patch?: never;
|
|
852
852
|
trace?: never;
|
|
853
853
|
};
|
|
854
|
+
"/api/v1/claims": {
|
|
855
|
+
parameters: {
|
|
856
|
+
query?: never;
|
|
857
|
+
header?: never;
|
|
858
|
+
path?: never;
|
|
859
|
+
cookie?: never;
|
|
860
|
+
};
|
|
861
|
+
get?: never;
|
|
862
|
+
put?: never;
|
|
863
|
+
/**
|
|
864
|
+
* Record a first notice of loss against a policy
|
|
865
|
+
* @description CLM-001. Opens a claim-assistance case: the broker is helping, and nothing here decides anything about cover.
|
|
866
|
+
*
|
|
867
|
+
* **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). `status` says what the broker is doing.
|
|
868
|
+
*
|
|
869
|
+
* **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.
|
|
870
|
+
*
|
|
871
|
+
* 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.
|
|
872
|
+
*/
|
|
873
|
+
post: operations["NotifyClaim"];
|
|
874
|
+
delete?: never;
|
|
875
|
+
options?: never;
|
|
876
|
+
head?: never;
|
|
877
|
+
patch?: never;
|
|
878
|
+
trace?: never;
|
|
879
|
+
};
|
|
880
|
+
"/api/v1/claims/{id}": {
|
|
881
|
+
parameters: {
|
|
882
|
+
query?: never;
|
|
883
|
+
header?: never;
|
|
884
|
+
path?: never;
|
|
885
|
+
cookie?: never;
|
|
886
|
+
};
|
|
887
|
+
/**
|
|
888
|
+
* Read one claim
|
|
889
|
+
* @description CLM-001. The claim's identifiers, the day of the incident, when the broker was told, and what the broker is doing about it.
|
|
890
|
+
*
|
|
891
|
+
* Another broker's claim, another customer's claim and a claim that does not exist are one 404, so the route cannot be used to discover which claims exist.
|
|
892
|
+
*
|
|
893
|
+
* `retentionAnchorAtUtc` is null while the claim is open. A claim open for two years has not started its disposal clock (ADR-0041 section 8).
|
|
894
|
+
*/
|
|
895
|
+
get: operations["GetClaim"];
|
|
896
|
+
put?: never;
|
|
897
|
+
post?: never;
|
|
898
|
+
delete?: never;
|
|
899
|
+
options?: never;
|
|
900
|
+
head?: never;
|
|
901
|
+
patch?: never;
|
|
902
|
+
trace?: never;
|
|
903
|
+
};
|
|
904
|
+
"/api/v1/claims/{id}/withdrawal": {
|
|
905
|
+
parameters: {
|
|
906
|
+
query?: never;
|
|
907
|
+
header?: never;
|
|
908
|
+
path?: never;
|
|
909
|
+
cookie?: never;
|
|
910
|
+
};
|
|
911
|
+
get?: never;
|
|
912
|
+
put?: never;
|
|
913
|
+
/**
|
|
914
|
+
* Retract a claim
|
|
915
|
+
* @description CLM-001. Retracts a notice: the customer decided not to claim, or the notice was raised against the wrong policy.
|
|
916
|
+
*
|
|
917
|
+
* **This is not a decision about cover.** Nothing here says an insurer refused anything, and nothing says the incident did not happen. It records that the broker stopped.
|
|
918
|
+
*
|
|
919
|
+
* Withdrawing concludes the claim, which is what starts its retention clock. A claim that has already concluded is refused with 409 rather than re-stamped, because re-stamping would move the anchor of a record that concluded earlier.
|
|
920
|
+
*/
|
|
921
|
+
post: operations["WithdrawClaim"];
|
|
922
|
+
delete?: never;
|
|
923
|
+
options?: never;
|
|
924
|
+
head?: never;
|
|
925
|
+
patch?: never;
|
|
926
|
+
trace?: never;
|
|
927
|
+
};
|
|
854
928
|
"/api/v1/leads": {
|
|
855
929
|
parameters: {
|
|
856
930
|
query?: never;
|
|
@@ -1862,7 +1936,7 @@ export interface paths {
|
|
|
1862
1936
|
*
|
|
1863
1937
|
* **One walk is measured against one day.** `asOf` is read from the clock on the first page and carried inside the cursor, so a walk that crosses UTC midnight stays internally consistent instead of losing part of a tie group as rows leave `upcoming`. The consequence is that a walk resumed the next day still reports - and still uses - the day it started on: compare `asOf` with your own clock and start a new walk without a cursor to get today's split.
|
|
1864
1938
|
*
|
|
1865
|
-
* Carries identifiers and no names. A product's name lives in the catalogue, a person's in identity and access, and a customer's in CRM, so a client joins those surfaces itself.
|
|
1939
|
+
* Carries identifiers and no names. A product's name lives in the catalogue, a person's in identity and access, and a customer's in CRM, so a client joins those surfaces itself. `cancelled` is a fifth view beyond REN-008's four, so a renewal a broker stopped working is findable rather than reachable only by identifier (issue #220).
|
|
1866
1940
|
*/
|
|
1867
1941
|
get: operations["ListRenewals"];
|
|
1868
1942
|
put?: never;
|
|
@@ -2819,6 +2893,21 @@ export interface components {
|
|
|
2819
2893
|
items: components["schemas"]["ProductResponse"][];
|
|
2820
2894
|
nextCursor: null | string;
|
|
2821
2895
|
};
|
|
2896
|
+
ClaimResponse: {
|
|
2897
|
+
/** Format: uuid */
|
|
2898
|
+
id: string;
|
|
2899
|
+
/** Format: uuid */
|
|
2900
|
+
policyId: string;
|
|
2901
|
+
/** Format: uuid */
|
|
2902
|
+
customerId: string;
|
|
2903
|
+
/** Format: date */
|
|
2904
|
+
incidentOn: string;
|
|
2905
|
+
/** Format: date-time */
|
|
2906
|
+
notifiedAtUtc: string;
|
|
2907
|
+
status: string;
|
|
2908
|
+
/** Format: date-time */
|
|
2909
|
+
retentionAnchorAtUtc: null | string;
|
|
2910
|
+
};
|
|
2822
2911
|
ComparedAttributeResponse: {
|
|
2823
2912
|
key: string;
|
|
2824
2913
|
label: string;
|
|
@@ -3350,6 +3439,14 @@ export interface components {
|
|
|
3350
3439
|
releaseReason: null | string;
|
|
3351
3440
|
isOpen: boolean;
|
|
3352
3441
|
};
|
|
3442
|
+
NotifyClaimRequest: {
|
|
3443
|
+
/** Format: uuid */
|
|
3444
|
+
policyId: string;
|
|
3445
|
+
/** Format: uuid */
|
|
3446
|
+
customerId: string;
|
|
3447
|
+
/** Format: date */
|
|
3448
|
+
incidentOn: string;
|
|
3449
|
+
};
|
|
3353
3450
|
OfferedFormResponse: {
|
|
3354
3451
|
/** Format: uuid */
|
|
3355
3452
|
id: string;
|
|
@@ -6539,6 +6636,106 @@ export interface operations {
|
|
|
6539
6636
|
};
|
|
6540
6637
|
};
|
|
6541
6638
|
};
|
|
6639
|
+
NotifyClaim: {
|
|
6640
|
+
parameters: {
|
|
6641
|
+
query?: never;
|
|
6642
|
+
header?: never;
|
|
6643
|
+
path?: never;
|
|
6644
|
+
cookie?: never;
|
|
6645
|
+
};
|
|
6646
|
+
requestBody: {
|
|
6647
|
+
content: {
|
|
6648
|
+
"application/json": components["schemas"]["NotifyClaimRequest"];
|
|
6649
|
+
};
|
|
6650
|
+
};
|
|
6651
|
+
responses: {
|
|
6652
|
+
/** @description Created */
|
|
6653
|
+
201: {
|
|
6654
|
+
headers: {
|
|
6655
|
+
[name: string]: unknown;
|
|
6656
|
+
};
|
|
6657
|
+
content: {
|
|
6658
|
+
"application/json": components["schemas"]["ClaimResponse"];
|
|
6659
|
+
};
|
|
6660
|
+
};
|
|
6661
|
+
/** @description Bad Request */
|
|
6662
|
+
400: {
|
|
6663
|
+
headers: {
|
|
6664
|
+
[name: string]: unknown;
|
|
6665
|
+
};
|
|
6666
|
+
content: {
|
|
6667
|
+
"application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
|
|
6668
|
+
};
|
|
6669
|
+
};
|
|
6670
|
+
};
|
|
6671
|
+
};
|
|
6672
|
+
GetClaim: {
|
|
6673
|
+
parameters: {
|
|
6674
|
+
query?: never;
|
|
6675
|
+
header?: never;
|
|
6676
|
+
path: {
|
|
6677
|
+
id: string;
|
|
6678
|
+
};
|
|
6679
|
+
cookie?: never;
|
|
6680
|
+
};
|
|
6681
|
+
requestBody?: never;
|
|
6682
|
+
responses: {
|
|
6683
|
+
/** @description OK */
|
|
6684
|
+
200: {
|
|
6685
|
+
headers: {
|
|
6686
|
+
[name: string]: unknown;
|
|
6687
|
+
};
|
|
6688
|
+
content: {
|
|
6689
|
+
"application/json": components["schemas"]["ClaimResponse"];
|
|
6690
|
+
};
|
|
6691
|
+
};
|
|
6692
|
+
/** @description Not Found */
|
|
6693
|
+
404: {
|
|
6694
|
+
headers: {
|
|
6695
|
+
[name: string]: unknown;
|
|
6696
|
+
};
|
|
6697
|
+
content?: never;
|
|
6698
|
+
};
|
|
6699
|
+
};
|
|
6700
|
+
};
|
|
6701
|
+
WithdrawClaim: {
|
|
6702
|
+
parameters: {
|
|
6703
|
+
query?: never;
|
|
6704
|
+
header?: never;
|
|
6705
|
+
path: {
|
|
6706
|
+
id: string;
|
|
6707
|
+
};
|
|
6708
|
+
cookie?: never;
|
|
6709
|
+
};
|
|
6710
|
+
requestBody?: never;
|
|
6711
|
+
responses: {
|
|
6712
|
+
/** @description OK */
|
|
6713
|
+
200: {
|
|
6714
|
+
headers: {
|
|
6715
|
+
[name: string]: unknown;
|
|
6716
|
+
};
|
|
6717
|
+
content: {
|
|
6718
|
+
"application/json": components["schemas"]["ClaimResponse"];
|
|
6719
|
+
};
|
|
6720
|
+
};
|
|
6721
|
+
/** @description Not Found */
|
|
6722
|
+
404: {
|
|
6723
|
+
headers: {
|
|
6724
|
+
[name: string]: unknown;
|
|
6725
|
+
};
|
|
6726
|
+
content?: never;
|
|
6727
|
+
};
|
|
6728
|
+
/** @description Conflict */
|
|
6729
|
+
409: {
|
|
6730
|
+
headers: {
|
|
6731
|
+
[name: string]: unknown;
|
|
6732
|
+
};
|
|
6733
|
+
content: {
|
|
6734
|
+
"application/problem+json": components["schemas"]["ProblemDetails"];
|
|
6735
|
+
};
|
|
6736
|
+
};
|
|
6737
|
+
};
|
|
6738
|
+
};
|
|
6542
6739
|
ListLeads: {
|
|
6543
6740
|
parameters: {
|
|
6544
6741
|
query?: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@insurance-broker/api-client",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.14.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,
|