@insurance-broker/api-client 3.0.1 → 3.2.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 +167 -11
- package/package.json +1 -1
package/dist/schema.d.ts
CHANGED
|
@@ -1655,15 +1655,15 @@ export interface paths {
|
|
|
1655
1655
|
};
|
|
1656
1656
|
/**
|
|
1657
1657
|
* List this broker's claims in one of three views
|
|
1658
|
-
* @description CLM-005. The broker's claims, newest notification first, in one of three views named by `view`: `open` is every claim still being worked, and `withdrawn` and `closed` are the two concluded outcomes. Optionally narrowed by product, insurer, customer or
|
|
1658
|
+
* @description CLM-005. The broker's claims, newest notification first, in one of three views named by `view`: `open` is every claim still being worked, and `withdrawn` and `closed` are the two concluded outcomes. Optionally narrowed by product, insurer, customer, policy or the member of staff working the claim. Paged by cursor.
|
|
1659
1659
|
*
|
|
1660
|
-
* **Carries identifiers and no names.** A product's name and an insurer's live in the catalogue and a
|
|
1660
|
+
* **Carries identifiers and no names.** A product's name and an insurer's live in the catalogue, a customer's in CRM and a member of staff's in identity and access, so a client joins those surfaces itself (ADR-0002).
|
|
1661
1661
|
*
|
|
1662
|
-
*
|
|
1662
|
+
* **`assignedToSubjectId` is what is on one person's desk, and `unassigned=true` is the work nobody has taken.** The two cannot be combined. An assignee is kept when a claim concludes, so `view=closed` with `assignedToSubjectId` is what that person finished (ADR-0041 section 1).
|
|
1663
1663
|
*
|
|
1664
1664
|
* **`status` is what the broker is doing, never what an insurer decided** (ADR-0041 section 2). What an insurer said is a separate recorded fact with its own route and its own provenance.
|
|
1665
1665
|
*
|
|
1666
|
-
* Another broker's claims are not in any view. The tenant is never a parameter here: it comes from the caller's own session, and
|
|
1666
|
+
* Another broker's claims are not in any view. The tenant is never a parameter here: it comes from the caller's own session, and every filter this route accepts narrows within it.
|
|
1667
1667
|
*/
|
|
1668
1668
|
get: operations["ListClaims"];
|
|
1669
1669
|
put?: never;
|
|
@@ -1782,6 +1782,36 @@ export interface paths {
|
|
|
1782
1782
|
patch?: never;
|
|
1783
1783
|
trace?: never;
|
|
1784
1784
|
};
|
|
1785
|
+
"/api/v1/claims/{id}/assignment": {
|
|
1786
|
+
parameters: {
|
|
1787
|
+
query?: never;
|
|
1788
|
+
header?: never;
|
|
1789
|
+
path?: never;
|
|
1790
|
+
cookie?: never;
|
|
1791
|
+
};
|
|
1792
|
+
get?: never;
|
|
1793
|
+
put?: never;
|
|
1794
|
+
/**
|
|
1795
|
+
* Give a claim to a member of staff, or move it to a different one
|
|
1796
|
+
* @description Records who is working a claim, so a broker can ask what is on one person's desk (ADR-0041 section 1).
|
|
1797
|
+
*
|
|
1798
|
+
* The assignee must be an active member of this broker who holds `claims.cases.manage` - somebody who can work the claim they are given. A subject that is not, or that belongs to another broker, is refused with the same `400`, so the route cannot be used to learn who works where.
|
|
1799
|
+
*
|
|
1800
|
+
* Giving a claim to the person who already has it changes nothing and answers `200`. A claim that has concluded is refused with `409`: its assignee is kept as the record of who had it, and is not moved afterwards.
|
|
1801
|
+
*
|
|
1802
|
+
* **Never shown to the customer.** The customer's view of their claim carries no member of staff (ADR-0033 section 8).
|
|
1803
|
+
*/
|
|
1804
|
+
post: operations["AssignClaim"];
|
|
1805
|
+
/**
|
|
1806
|
+
* Take a claim off whoever has it
|
|
1807
|
+
* @description Returns a claim to unassigned work, where `unassigned=true` on the list finds it. A claim nobody has changes nothing and answers `200`. A claim that has concluded is refused with `409`, for the reason assigning one is.
|
|
1808
|
+
*/
|
|
1809
|
+
delete: operations["UnassignClaim"];
|
|
1810
|
+
options?: never;
|
|
1811
|
+
head?: never;
|
|
1812
|
+
patch?: never;
|
|
1813
|
+
trace?: never;
|
|
1814
|
+
};
|
|
1785
1815
|
"/api/v1/claims/{id}/notes": {
|
|
1786
1816
|
parameters: {
|
|
1787
1817
|
query?: never;
|
|
@@ -3885,9 +3915,9 @@ export interface paths {
|
|
|
3885
3915
|
*
|
|
3886
3916
|
* **A payment posting does not do this** (ADR-0042 section 7). If it did, the platform would be asserting that cover began. A person looks at a payment and records that the requirement is discharged: the payment is the evidence, the person is the actor, and the platform is neither. There is no consumer, no sweep and no side effect that reaches this route.
|
|
3887
3917
|
*
|
|
3888
|
-
* **Only a policy in `pendingPayment` can be released, and only once.** Recording it against a policy no gate ever held would write an evidence trail for a requirement that never existed
|
|
3918
|
+
* **Only a policy in `pendingPayment` can be released, and only once.** Recording it against a policy no gate ever held would write an evidence trail for a requirement that never existed; that is a `409`.
|
|
3889
3919
|
*
|
|
3890
|
-
* **The `paymentId`
|
|
3920
|
+
* **The `paymentId` must name an approved payment against a charge for this policy** (PAY-003, ADR-0042 section 7). A payment posts and settles its charge the moment it is recorded, but it releases cover only once a second person has approved it. Anything else is a `422` of type `urn:brokerplatform:problem:unusable-payment-evidence`, with one entry under `violations` whose `code` is `payment-not-this-policys` (no such payment in this broker's books, or one against another policy - deliberately the same answer), `payment-reversed`, or `payment-not-approved`.
|
|
3891
3921
|
*/
|
|
3892
3922
|
post: operations["RecordPaymentRequirementMet"];
|
|
3893
3923
|
delete?: never;
|
|
@@ -5882,6 +5912,9 @@ export interface components {
|
|
|
5882
5912
|
name: string;
|
|
5883
5913
|
description: null | string;
|
|
5884
5914
|
};
|
|
5915
|
+
AssignClaimRequest: {
|
|
5916
|
+
assigneeSubjectId: null | string;
|
|
5917
|
+
};
|
|
5885
5918
|
AssignLeadRequest: {
|
|
5886
5919
|
advisorSubjectId: null | string;
|
|
5887
5920
|
};
|
|
@@ -5986,6 +6019,26 @@ export interface components {
|
|
|
5986
6019
|
cancelledAtUtc: null | string;
|
|
5987
6020
|
isCancelled: boolean;
|
|
5988
6021
|
};
|
|
6022
|
+
ClaimDetailResponse: {
|
|
6023
|
+
/** Format: uuid */
|
|
6024
|
+
id: string;
|
|
6025
|
+
/** Format: uuid */
|
|
6026
|
+
policyId: string;
|
|
6027
|
+
/** Format: uuid */
|
|
6028
|
+
customerId: string;
|
|
6029
|
+
/** Format: date */
|
|
6030
|
+
incidentOn: string;
|
|
6031
|
+
/** Format: date-time */
|
|
6032
|
+
notifiedAtUtc: string;
|
|
6033
|
+
status: string;
|
|
6034
|
+
/** Format: date-time */
|
|
6035
|
+
retentionAnchorAtUtc: null | string;
|
|
6036
|
+
/** Format: uuid */
|
|
6037
|
+
claimFormSubmissionId: null | string;
|
|
6038
|
+
assignedToSubjectId: null | string;
|
|
6039
|
+
/** Format: date-time */
|
|
6040
|
+
assignedAtUtc: null | string;
|
|
6041
|
+
};
|
|
5989
6042
|
ClaimEvidenceResponse: {
|
|
5990
6043
|
/** Format: uuid */
|
|
5991
6044
|
id: string;
|
|
@@ -6076,6 +6129,9 @@ export interface components {
|
|
|
6076
6129
|
retentionAnchorAtUtc: null | string;
|
|
6077
6130
|
/** Format: uuid */
|
|
6078
6131
|
claimFormSubmissionId: null | string;
|
|
6132
|
+
assignedToSubjectId: null | string;
|
|
6133
|
+
/** Format: date-time */
|
|
6134
|
+
assignedAtUtc: null | string;
|
|
6079
6135
|
};
|
|
6080
6136
|
ClaimTimelineEntryResponse: {
|
|
6081
6137
|
/** Format: uuid */
|
|
@@ -12407,6 +12463,8 @@ export interface operations {
|
|
|
12407
12463
|
insurerId?: string;
|
|
12408
12464
|
customerId?: string;
|
|
12409
12465
|
policyId?: string;
|
|
12466
|
+
assignedToSubjectId?: string;
|
|
12467
|
+
unassigned?: boolean;
|
|
12410
12468
|
cursor?: string;
|
|
12411
12469
|
limit?: number | string;
|
|
12412
12470
|
};
|
|
@@ -12455,7 +12513,7 @@ export interface operations {
|
|
|
12455
12513
|
[name: string]: unknown;
|
|
12456
12514
|
};
|
|
12457
12515
|
content: {
|
|
12458
|
-
"application/json": components["schemas"]["
|
|
12516
|
+
"application/json": components["schemas"]["ClaimDetailResponse"];
|
|
12459
12517
|
};
|
|
12460
12518
|
};
|
|
12461
12519
|
/** @description Bad Request */
|
|
@@ -12486,7 +12544,7 @@ export interface operations {
|
|
|
12486
12544
|
[name: string]: unknown;
|
|
12487
12545
|
};
|
|
12488
12546
|
content: {
|
|
12489
|
-
"application/json": components["schemas"]["
|
|
12547
|
+
"application/json": components["schemas"]["ClaimDetailResponse"];
|
|
12490
12548
|
};
|
|
12491
12549
|
};
|
|
12492
12550
|
/** @description Not Found */
|
|
@@ -12519,7 +12577,7 @@ export interface operations {
|
|
|
12519
12577
|
[name: string]: unknown;
|
|
12520
12578
|
};
|
|
12521
12579
|
content: {
|
|
12522
|
-
"application/json": components["schemas"]["
|
|
12580
|
+
"application/json": components["schemas"]["ClaimDetailResponse"];
|
|
12523
12581
|
};
|
|
12524
12582
|
};
|
|
12525
12583
|
/** @description Bad Request */
|
|
@@ -12570,7 +12628,7 @@ export interface operations {
|
|
|
12570
12628
|
[name: string]: unknown;
|
|
12571
12629
|
};
|
|
12572
12630
|
content: {
|
|
12573
|
-
"application/json": components["schemas"]["
|
|
12631
|
+
"application/json": components["schemas"]["ClaimDetailResponse"];
|
|
12574
12632
|
};
|
|
12575
12633
|
};
|
|
12576
12634
|
/** @description Bad Request */
|
|
@@ -12617,7 +12675,96 @@ export interface operations {
|
|
|
12617
12675
|
[name: string]: unknown;
|
|
12618
12676
|
};
|
|
12619
12677
|
content: {
|
|
12620
|
-
"application/json": components["schemas"]["
|
|
12678
|
+
"application/json": components["schemas"]["ClaimDetailResponse"];
|
|
12679
|
+
};
|
|
12680
|
+
};
|
|
12681
|
+
/** @description Not Found */
|
|
12682
|
+
404: {
|
|
12683
|
+
headers: {
|
|
12684
|
+
[name: string]: unknown;
|
|
12685
|
+
};
|
|
12686
|
+
content?: never;
|
|
12687
|
+
};
|
|
12688
|
+
/** @description Conflict */
|
|
12689
|
+
409: {
|
|
12690
|
+
headers: {
|
|
12691
|
+
[name: string]: unknown;
|
|
12692
|
+
};
|
|
12693
|
+
content: {
|
|
12694
|
+
"application/problem+json": components["schemas"]["ProblemDetails"];
|
|
12695
|
+
};
|
|
12696
|
+
};
|
|
12697
|
+
};
|
|
12698
|
+
};
|
|
12699
|
+
AssignClaim: {
|
|
12700
|
+
parameters: {
|
|
12701
|
+
query?: never;
|
|
12702
|
+
header?: never;
|
|
12703
|
+
path: {
|
|
12704
|
+
id: string;
|
|
12705
|
+
};
|
|
12706
|
+
cookie?: never;
|
|
12707
|
+
};
|
|
12708
|
+
requestBody: {
|
|
12709
|
+
content: {
|
|
12710
|
+
"application/json": components["schemas"]["AssignClaimRequest"];
|
|
12711
|
+
};
|
|
12712
|
+
};
|
|
12713
|
+
responses: {
|
|
12714
|
+
/** @description OK */
|
|
12715
|
+
200: {
|
|
12716
|
+
headers: {
|
|
12717
|
+
[name: string]: unknown;
|
|
12718
|
+
};
|
|
12719
|
+
content: {
|
|
12720
|
+
"application/json": components["schemas"]["ClaimDetailResponse"];
|
|
12721
|
+
};
|
|
12722
|
+
};
|
|
12723
|
+
/** @description Bad Request */
|
|
12724
|
+
400: {
|
|
12725
|
+
headers: {
|
|
12726
|
+
[name: string]: unknown;
|
|
12727
|
+
};
|
|
12728
|
+
content: {
|
|
12729
|
+
"application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
|
|
12730
|
+
};
|
|
12731
|
+
};
|
|
12732
|
+
/** @description Not Found */
|
|
12733
|
+
404: {
|
|
12734
|
+
headers: {
|
|
12735
|
+
[name: string]: unknown;
|
|
12736
|
+
};
|
|
12737
|
+
content?: never;
|
|
12738
|
+
};
|
|
12739
|
+
/** @description Conflict */
|
|
12740
|
+
409: {
|
|
12741
|
+
headers: {
|
|
12742
|
+
[name: string]: unknown;
|
|
12743
|
+
};
|
|
12744
|
+
content: {
|
|
12745
|
+
"application/problem+json": components["schemas"]["ProblemDetails"];
|
|
12746
|
+
};
|
|
12747
|
+
};
|
|
12748
|
+
};
|
|
12749
|
+
};
|
|
12750
|
+
UnassignClaim: {
|
|
12751
|
+
parameters: {
|
|
12752
|
+
query?: never;
|
|
12753
|
+
header?: never;
|
|
12754
|
+
path: {
|
|
12755
|
+
id: string;
|
|
12756
|
+
};
|
|
12757
|
+
cookie?: never;
|
|
12758
|
+
};
|
|
12759
|
+
requestBody?: never;
|
|
12760
|
+
responses: {
|
|
12761
|
+
/** @description OK */
|
|
12762
|
+
200: {
|
|
12763
|
+
headers: {
|
|
12764
|
+
[name: string]: unknown;
|
|
12765
|
+
};
|
|
12766
|
+
content: {
|
|
12767
|
+
"application/json": components["schemas"]["ClaimDetailResponse"];
|
|
12621
12768
|
};
|
|
12622
12769
|
};
|
|
12623
12770
|
/** @description Not Found */
|
|
@@ -17937,6 +18084,15 @@ export interface operations {
|
|
|
17937
18084
|
"application/problem+json": components["schemas"]["ProblemDetails"];
|
|
17938
18085
|
};
|
|
17939
18086
|
};
|
|
18087
|
+
/** @description Unprocessable Entity */
|
|
18088
|
+
422: {
|
|
18089
|
+
headers: {
|
|
18090
|
+
[name: string]: unknown;
|
|
18091
|
+
};
|
|
18092
|
+
content: {
|
|
18093
|
+
"application/problem+json": components["schemas"]["ProblemDetails"];
|
|
18094
|
+
};
|
|
18095
|
+
};
|
|
17940
18096
|
};
|
|
17941
18097
|
};
|
|
17942
18098
|
GetPolicy: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@insurance-broker/api-client",
|
|
3
|
-
"version": "3.0
|
|
3
|
+
"version": "3.2.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,
|