@insurance-broker/api-client 1.25.0 → 1.26.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 +438 -1
  2. package/package.json +1 -1
package/dist/schema.d.ts CHANGED
@@ -993,6 +993,8 @@ export interface paths {
993
993
  * @description CLM-005. A note your own staff can see. **The customer never sees it.**
994
994
  *
995
995
  * Internal notes and the customer's timeline are two different tables, so a note is not hidden from the customer by a filter - there is no route by which a customer can reach one at all (ADR-0041 section 3). To tell the customer what a note says, publish it: that copies its words onto the timeline as a new, attributed entry.
996
+ *
997
+ * **A claim that has closed or been withdrawn takes no further note.** Closing a claim starts the disposal clock on everything filed against it, so a note written afterwards would have no clock at all (ADR-0041 section 8).
996
998
  */
997
999
  post: operations["WriteClaimNote"];
998
1000
  delete?: never;
@@ -1041,6 +1043,8 @@ export interface paths {
1041
1043
  * @description CLM-006. Adds an entry to the customer's timeline directly, without an internal note behind it - which is the ordinary case, because most of what a broker tells a customer was never a note.
1042
1044
  *
1043
1045
  * The timeline is append-only: there is no route that edits or removes an entry. A broker who told a customer something wrong tells them again, and the record keeps both.
1046
+ *
1047
+ * **A claim that has closed or been withdrawn takes no further entry**, for the reason a note does: its disposal clock has already started (ADR-0041 section 8).
1044
1048
  */
1045
1049
  post: operations["RecordClaimTimelineEntry"];
1046
1050
  delete?: never;
@@ -1056,7 +1060,15 @@ export interface paths {
1056
1060
  path?: never;
1057
1061
  cookie?: never;
1058
1062
  };
1059
- get?: never;
1063
+ /**
1064
+ * What has been filed against a claim
1065
+ * @description CLM-004. Every file filed against the claim, oldest first, with its scan verdict.
1066
+ *
1067
+ * **A row here is not a file that can be served.** The verdict is what decides that, and only `Clean` is downloadable — so a client renders the others as being checked, refused or unreadable rather than offering a link that will answer 409.
1068
+ *
1069
+ * There is no paging. A claim's evidence is a handful of files by nature, and the route that would need one is phase 10's reporting rather than this.
1070
+ */
1071
+ get: operations["ListClaimEvidence"];
1060
1072
  put?: never;
1061
1073
  /**
1062
1074
  * File a file against a claim
@@ -1101,6 +1113,90 @@ export interface paths {
1101
1113
  patch?: never;
1102
1114
  trace?: never;
1103
1115
  };
1116
+ "/api/v1/claims/{id}/insurer-submissions": {
1117
+ parameters: {
1118
+ query?: never;
1119
+ header?: never;
1120
+ path?: never;
1121
+ cookie?: never;
1122
+ };
1123
+ /**
1124
+ * Read what has been sent to the insurer, and what they said
1125
+ * @description CLM-004, CLM-008. Every time this claim was put to its insurer, oldest first, each with the reference that came back and what the insurer has said about it.
1126
+ *
1127
+ * **Each outcome says who recorded it.** This platform does not decide claims - acceptance and settlement are the insurer's (CLM-008) - so an outcome here is a record of what somebody was told, carrying the day the insurer said it, how it arrived, and the person who wrote it down. The claim's own `status` says what the broker is doing and never what the insurer decided.
1128
+ */
1129
+ get: operations["ListClaimInsurerSubmissions"];
1130
+ put?: never;
1131
+ /**
1132
+ * Record that a claim was put to its insurer
1133
+ * @description CLM-004. Records that this claim was sent to the insurer, and when.
1134
+ *
1135
+ * **The insurer is not a field.** It is the insurer the cover was placed with, taken from the policy snapshot written when the claim was opened - so it says what the cover said on the day of the incident, whatever has happened to the policy since.
1136
+ *
1137
+ * **A claim may be submitted more than once.** A first approach declined and a second made after new evidence are two records, each with its own date, its own reference and its own outcomes. Nothing here is a status on the claim: whether a claim has been submitted is answered by these rows existing (ADR-0041 section 5).
1138
+ *
1139
+ * The reference comes back afterwards and is recorded by its own route.
1140
+ */
1141
+ post: operations["RecordClaimInsurerSubmission"];
1142
+ delete?: never;
1143
+ options?: never;
1144
+ head?: never;
1145
+ patch?: never;
1146
+ trace?: never;
1147
+ };
1148
+ "/api/v1/claims/{id}/insurer-submissions/{submissionId}/reference": {
1149
+ parameters: {
1150
+ query?: never;
1151
+ header?: never;
1152
+ path?: never;
1153
+ cookie?: never;
1154
+ };
1155
+ get?: never;
1156
+ /**
1157
+ * Record the reference the insurer gave the claim
1158
+ * @description CLM-004. The insurer's own reference for the claim, exactly as they gave it.
1159
+ *
1160
+ * **This one may be corrected**, which is the exception on a claim rather than the rule. A scan verdict, a claim form and a timeline entry are conclusions somebody drew at an instant, and rewriting one would erase that somebody. A reference is a label an insurer issued and a person transcribed, so a corrected transcription makes the record truer. Who changed it and when is in the audit trail.
1161
+ *
1162
+ * A blank reference is refused rather than treated as clearing one.
1163
+ */
1164
+ put: operations["RecordClaimInsurerReference"];
1165
+ post?: never;
1166
+ delete?: never;
1167
+ options?: never;
1168
+ head?: never;
1169
+ patch?: never;
1170
+ trace?: never;
1171
+ };
1172
+ "/api/v1/claims/{id}/insurer-submissions/{submissionId}/outcomes": {
1173
+ parameters: {
1174
+ query?: never;
1175
+ header?: never;
1176
+ path?: never;
1177
+ cookie?: never;
1178
+ };
1179
+ get?: never;
1180
+ put?: never;
1181
+ /**
1182
+ * Record what the insurer said
1183
+ * @description CLM-004, CLM-008. Writes down what the insurer decided about this submission.
1184
+ *
1185
+ * **This platform does not decide claims and this route does not pretend otherwise.** Acceptance and settlement are the insurer's (CLM-008), so what is stored is a record of what somebody was told: the value, the day the insurer said it, how their answer arrived, and the person who wrote it down. **The claim's status is not touched** - it says what the broker is doing, and a claim never becomes 'declined' (ADR-0041 section 2).
1186
+ *
1187
+ * **Nothing automatic can write one.** There is no consumer, no sweep and no state machine that records an outcome; a person does, and the row names them.
1188
+ *
1189
+ * `Accepted` leaves the insurer still owing a settlement, so a later outcome may follow it. `Declined` and `Settled` conclude the submission, and a second concluding answer is refused with 409 - an insurer that reverses itself has been approached again, which is a second submission. The same outcome recorded twice is refused for the same reason.
1190
+ *
1191
+ * The insurer cannot have decided before the claim was put to them, or on a day that has not happened.
1192
+ */
1193
+ post: operations["RecordClaimInsurerOutcome"];
1194
+ delete?: never;
1195
+ options?: never;
1196
+ head?: never;
1197
+ patch?: never;
1198
+ trace?: never;
1199
+ };
1104
1200
  "/api/v1/customer/claims": {
1105
1201
  parameters: {
1106
1202
  query?: never;
@@ -1175,6 +1271,30 @@ export interface paths {
1175
1271
  patch?: never;
1176
1272
  trace?: never;
1177
1273
  };
1274
+ "/api/v1/customer/claims/{id}/insurer-outcomes": {
1275
+ parameters: {
1276
+ query?: never;
1277
+ header?: never;
1278
+ path?: never;
1279
+ cookie?: never;
1280
+ };
1281
+ /**
1282
+ * Read what your insurer has said about your claim
1283
+ * @description CLM-006, CLM-008. What the insurer has decided about your claim, oldest decision first.
1284
+ *
1285
+ * **These are the insurer's decisions and not your broker's.** Acceptance and settlement are decided by the insurer; your broker records what they were told. So each entry says the day the insurer decided it, how their answer reached your broker, and the day your broker wrote it down - and your claim's own status says what your broker is doing about it, never what the insurer concluded.
1286
+ *
1287
+ * It does not say which member of staff wrote it down, for the same reason your timeline does not.
1288
+ */
1289
+ get: operations["GetOwnClaimInsurerOutcomes"];
1290
+ put?: never;
1291
+ post?: never;
1292
+ delete?: never;
1293
+ options?: never;
1294
+ head?: never;
1295
+ patch?: never;
1296
+ trace?: never;
1297
+ };
1178
1298
  "/api/v1/claims/emergency-contacts": {
1179
1299
  parameters: {
1180
1300
  query?: never;
@@ -3334,6 +3454,19 @@ export interface components {
3334
3454
  name: null | string;
3335
3455
  registrationNumber: null | string;
3336
3456
  };
3457
+ CustomerInsurerOutcomeResponse: {
3458
+ /** Format: uuid */
3459
+ id: string;
3460
+ /** Format: uuid */
3461
+ claimId: string;
3462
+ /** Format: uuid */
3463
+ insurerId: string;
3464
+ outcome: string;
3465
+ /** Format: date */
3466
+ decidedOn: string;
3467
+ /** Format: date-time */
3468
+ recordedAtUtc: string;
3469
+ };
3337
3470
  CustomerInvitationResponse: {
3338
3471
  /** Format: uuid */
3339
3472
  id: string;
@@ -3681,6 +3814,22 @@ export interface components {
3681
3814
  /** Format: date-time */
3682
3815
  updatedAtUtc: string;
3683
3816
  };
3817
+ InsurerOutcomeResponse: {
3818
+ /** Format: uuid */
3819
+ id: string;
3820
+ /** Format: uuid */
3821
+ submissionId: string;
3822
+ /** Format: uuid */
3823
+ claimId: string;
3824
+ outcome: string;
3825
+ /** Format: date */
3826
+ decidedOn: string;
3827
+ receivedVia: string;
3828
+ recordedBySubjectId: string;
3829
+ /** Format: date-time */
3830
+ recordedAtUtc: string;
3831
+ isConcluding: boolean;
3832
+ };
3684
3833
  InsurerQuoteRequestResponse: {
3685
3834
  /** Format: uuid */
3686
3835
  id: string;
@@ -3742,6 +3891,21 @@ export interface components {
3742
3891
  /** Format: date-time */
3743
3892
  updatedAtUtc: string;
3744
3893
  };
3894
+ InsurerSubmissionResponse: {
3895
+ /** Format: uuid */
3896
+ id: string;
3897
+ /** Format: uuid */
3898
+ claimId: string;
3899
+ /** Format: uuid */
3900
+ insurerId: string;
3901
+ /** Format: date */
3902
+ submittedOn: string;
3903
+ reference: null | string;
3904
+ /** Format: date-time */
3905
+ recordedAtUtc: string;
3906
+ submittedBySubjectId: string;
3907
+ outcomes: components["schemas"]["InsurerOutcomeResponse"][];
3908
+ };
3745
3909
  IntegrationCredentialResponse: {
3746
3910
  /** Format: uuid */
3747
3911
  id: string;
@@ -4274,6 +4438,19 @@ export interface components {
4274
4438
  /** Format: date */
4275
4439
  confirmedOn: null | string;
4276
4440
  };
4441
+ RecordInsurerOutcomeRequest: {
4442
+ outcome: string;
4443
+ /** Format: date */
4444
+ decidedOn: string;
4445
+ receivedVia: string;
4446
+ };
4447
+ RecordInsurerReferenceRequest: {
4448
+ reference: string;
4449
+ };
4450
+ RecordInsurerSubmissionRequest: {
4451
+ /** Format: date */
4452
+ submittedOn: string;
4453
+ };
4277
4454
  RecordRenewalCustomerInformationRequest: {
4278
4455
  /** Format: uuid */
4279
4456
  formSubmissionId: null | string;
@@ -7311,6 +7488,15 @@ export interface operations {
7311
7488
  };
7312
7489
  content?: never;
7313
7490
  };
7491
+ /** @description Conflict */
7492
+ 409: {
7493
+ headers: {
7494
+ [name: string]: unknown;
7495
+ };
7496
+ content: {
7497
+ "application/problem+json": components["schemas"]["ProblemDetails"];
7498
+ };
7499
+ };
7314
7500
  };
7315
7501
  };
7316
7502
  PublishClaimNote: {
@@ -7421,6 +7607,44 @@ export interface operations {
7421
7607
  };
7422
7608
  content?: never;
7423
7609
  };
7610
+ /** @description Conflict */
7611
+ 409: {
7612
+ headers: {
7613
+ [name: string]: unknown;
7614
+ };
7615
+ content: {
7616
+ "application/problem+json": components["schemas"]["ProblemDetails"];
7617
+ };
7618
+ };
7619
+ };
7620
+ };
7621
+ ListClaimEvidence: {
7622
+ parameters: {
7623
+ query?: never;
7624
+ header?: never;
7625
+ path: {
7626
+ id: string;
7627
+ };
7628
+ cookie?: never;
7629
+ };
7630
+ requestBody?: never;
7631
+ responses: {
7632
+ /** @description OK */
7633
+ 200: {
7634
+ headers: {
7635
+ [name: string]: unknown;
7636
+ };
7637
+ content: {
7638
+ "application/json": components["schemas"]["ClaimEvidenceResponse"][];
7639
+ };
7640
+ };
7641
+ /** @description Not Found */
7642
+ 404: {
7643
+ headers: {
7644
+ [name: string]: unknown;
7645
+ };
7646
+ content?: never;
7647
+ };
7424
7648
  };
7425
7649
  };
7426
7650
  UploadClaimEvidence: {
@@ -7522,6 +7746,190 @@ export interface operations {
7522
7746
  };
7523
7747
  };
7524
7748
  };
7749
+ ListClaimInsurerSubmissions: {
7750
+ parameters: {
7751
+ query?: never;
7752
+ header?: never;
7753
+ path: {
7754
+ id: string;
7755
+ };
7756
+ cookie?: never;
7757
+ };
7758
+ requestBody?: never;
7759
+ responses: {
7760
+ /** @description OK */
7761
+ 200: {
7762
+ headers: {
7763
+ [name: string]: unknown;
7764
+ };
7765
+ content: {
7766
+ "application/json": components["schemas"]["InsurerSubmissionResponse"][];
7767
+ };
7768
+ };
7769
+ /** @description Not Found */
7770
+ 404: {
7771
+ headers: {
7772
+ [name: string]: unknown;
7773
+ };
7774
+ content?: never;
7775
+ };
7776
+ };
7777
+ };
7778
+ RecordClaimInsurerSubmission: {
7779
+ parameters: {
7780
+ query?: never;
7781
+ header?: never;
7782
+ path: {
7783
+ id: string;
7784
+ };
7785
+ cookie?: never;
7786
+ };
7787
+ requestBody: {
7788
+ content: {
7789
+ "application/json": components["schemas"]["RecordInsurerSubmissionRequest"];
7790
+ };
7791
+ };
7792
+ responses: {
7793
+ /** @description Created */
7794
+ 201: {
7795
+ headers: {
7796
+ [name: string]: unknown;
7797
+ };
7798
+ content: {
7799
+ "application/json": components["schemas"]["InsurerSubmissionResponse"];
7800
+ };
7801
+ };
7802
+ /** @description Bad Request */
7803
+ 400: {
7804
+ headers: {
7805
+ [name: string]: unknown;
7806
+ };
7807
+ content: {
7808
+ "application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
7809
+ };
7810
+ };
7811
+ /** @description Not Found */
7812
+ 404: {
7813
+ headers: {
7814
+ [name: string]: unknown;
7815
+ };
7816
+ content?: never;
7817
+ };
7818
+ /** @description Conflict */
7819
+ 409: {
7820
+ headers: {
7821
+ [name: string]: unknown;
7822
+ };
7823
+ content: {
7824
+ "application/problem+json": components["schemas"]["ProblemDetails"];
7825
+ };
7826
+ };
7827
+ };
7828
+ };
7829
+ RecordClaimInsurerReference: {
7830
+ parameters: {
7831
+ query?: never;
7832
+ header?: never;
7833
+ path: {
7834
+ id: string;
7835
+ submissionId: string;
7836
+ };
7837
+ cookie?: never;
7838
+ };
7839
+ requestBody: {
7840
+ content: {
7841
+ "application/json": components["schemas"]["RecordInsurerReferenceRequest"];
7842
+ };
7843
+ };
7844
+ responses: {
7845
+ /** @description OK */
7846
+ 200: {
7847
+ headers: {
7848
+ [name: string]: unknown;
7849
+ };
7850
+ content: {
7851
+ "application/json": components["schemas"]["InsurerSubmissionResponse"];
7852
+ };
7853
+ };
7854
+ /** @description Bad Request */
7855
+ 400: {
7856
+ headers: {
7857
+ [name: string]: unknown;
7858
+ };
7859
+ content: {
7860
+ "application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
7861
+ };
7862
+ };
7863
+ /** @description Not Found */
7864
+ 404: {
7865
+ headers: {
7866
+ [name: string]: unknown;
7867
+ };
7868
+ content?: never;
7869
+ };
7870
+ /** @description Conflict */
7871
+ 409: {
7872
+ headers: {
7873
+ [name: string]: unknown;
7874
+ };
7875
+ content: {
7876
+ "application/problem+json": components["schemas"]["ProblemDetails"];
7877
+ };
7878
+ };
7879
+ };
7880
+ };
7881
+ RecordClaimInsurerOutcome: {
7882
+ parameters: {
7883
+ query?: never;
7884
+ header?: never;
7885
+ path: {
7886
+ id: string;
7887
+ submissionId: string;
7888
+ };
7889
+ cookie?: never;
7890
+ };
7891
+ requestBody: {
7892
+ content: {
7893
+ "application/json": components["schemas"]["RecordInsurerOutcomeRequest"];
7894
+ };
7895
+ };
7896
+ responses: {
7897
+ /** @description Created */
7898
+ 201: {
7899
+ headers: {
7900
+ [name: string]: unknown;
7901
+ };
7902
+ content: {
7903
+ "application/json": components["schemas"]["InsurerOutcomeResponse"];
7904
+ };
7905
+ };
7906
+ /** @description Bad Request */
7907
+ 400: {
7908
+ headers: {
7909
+ [name: string]: unknown;
7910
+ };
7911
+ content: {
7912
+ "application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
7913
+ };
7914
+ };
7915
+ /** @description Not Found */
7916
+ 404: {
7917
+ headers: {
7918
+ [name: string]: unknown;
7919
+ };
7920
+ content?: never;
7921
+ };
7922
+ /** @description Conflict */
7923
+ 409: {
7924
+ headers: {
7925
+ [name: string]: unknown;
7926
+ };
7927
+ content: {
7928
+ "application/problem+json": components["schemas"]["ProblemDetails"];
7929
+ };
7930
+ };
7931
+ };
7932
+ };
7525
7933
  ReportOwnClaim: {
7526
7934
  parameters: {
7527
7935
  query?: never;
@@ -7613,6 +8021,35 @@ export interface operations {
7613
8021
  };
7614
8022
  };
7615
8023
  };
8024
+ GetOwnClaimInsurerOutcomes: {
8025
+ parameters: {
8026
+ query?: never;
8027
+ header?: never;
8028
+ path: {
8029
+ id: string;
8030
+ };
8031
+ cookie?: never;
8032
+ };
8033
+ requestBody?: never;
8034
+ responses: {
8035
+ /** @description OK */
8036
+ 200: {
8037
+ headers: {
8038
+ [name: string]: unknown;
8039
+ };
8040
+ content: {
8041
+ "application/json": components["schemas"]["CustomerInsurerOutcomeResponse"][];
8042
+ };
8043
+ };
8044
+ /** @description Not Found */
8045
+ 404: {
8046
+ headers: {
8047
+ [name: string]: unknown;
8048
+ };
8049
+ content?: never;
8050
+ };
8051
+ };
8052
+ };
7616
8053
  ReadEmergencyContacts: {
7617
8054
  parameters: {
7618
8055
  query?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@insurance-broker/api-client",
3
- "version": "1.25.0",
3
+ "version": "1.26.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,