@insurance-broker/api-client 1.19.0 → 1.21.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 +418 -0
  2. package/package.json +1 -1
package/dist/schema.d.ts CHANGED
@@ -901,6 +901,32 @@ export interface paths {
901
901
  patch?: never;
902
902
  trace?: never;
903
903
  };
904
+ "/api/v1/claims/{id}/form": {
905
+ parameters: {
906
+ query?: never;
907
+ header?: never;
908
+ path?: never;
909
+ cookie?: never;
910
+ };
911
+ get?: never;
912
+ /**
913
+ * Record the claim form the customer answered
914
+ * @description CLM-002. The customer answers the product's published claim form through the form routes; this records which submission it was.
915
+ *
916
+ * **Nothing here captures or validates an answer.** A claim form is an ordinary form definition of kind `Claim` against the same product, read by the same engine that serves quotes (ADR-0041 section 4).
917
+ *
918
+ * Refused if the submission is not a submitted claim form for this claim's product, or if it was submitted before the claim was reported - a submission that predates the claim cannot be an account of it. A submission already recorded against another claim is refused too.
919
+ *
920
+ * **A submission with no owner is accepted.** A claim already knows whose it is, from the policy it was checked against, so it asks nothing of the submission's ownership - which is what lets a broker take a first notice of loss over the telephone and answer the form with the customer on the line.
921
+ */
922
+ put: operations["RecordClaimForm"];
923
+ post?: never;
924
+ delete?: never;
925
+ options?: never;
926
+ head?: never;
927
+ patch?: never;
928
+ trace?: never;
929
+ };
904
930
  "/api/v1/claims/{id}/withdrawal": {
905
931
  parameters: {
906
932
  query?: never;
@@ -925,6 +951,80 @@ export interface paths {
925
951
  patch?: never;
926
952
  trace?: never;
927
953
  };
954
+ "/api/v1/claims/{id}/notes": {
955
+ parameters: {
956
+ query?: never;
957
+ header?: never;
958
+ path?: never;
959
+ cookie?: never;
960
+ };
961
+ /**
962
+ * Read a claim's internal notes
963
+ * @description CLM-005. Your own staff's notes, oldest first, each saying who wrote it and whether it has been published to the customer's timeline.
964
+ */
965
+ get: operations["ListClaimNotes"];
966
+ put?: never;
967
+ /**
968
+ * Write an internal note on a claim
969
+ * @description CLM-005. A note your own staff can see. **The customer never sees it.**
970
+ *
971
+ * 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.
972
+ */
973
+ post: operations["WriteClaimNote"];
974
+ delete?: never;
975
+ options?: never;
976
+ head?: never;
977
+ patch?: never;
978
+ trace?: never;
979
+ };
980
+ "/api/v1/claims/{id}/notes/{noteId}/publication": {
981
+ parameters: {
982
+ query?: never;
983
+ header?: never;
984
+ path?: never;
985
+ cookie?: never;
986
+ };
987
+ get?: never;
988
+ put?: never;
989
+ /**
990
+ * Tell the customer what an internal note says
991
+ * @description CLM-006. Copies the note's words onto the customer's timeline as a new entry, recording who decided to and when.
992
+ *
993
+ * **A copy, not a flag.** The note is unchanged, so editing it afterwards cannot rewrite what the customer was shown, and an entry cannot be un-published. Publishing the same note twice is refused with 409 rather than showing the customer the same words at two instants as though they were two disclosures.
994
+ */
995
+ post: operations["PublishClaimNote"];
996
+ delete?: never;
997
+ options?: never;
998
+ head?: never;
999
+ patch?: never;
1000
+ trace?: never;
1001
+ };
1002
+ "/api/v1/claims/{id}/timeline": {
1003
+ parameters: {
1004
+ query?: never;
1005
+ header?: never;
1006
+ path?: never;
1007
+ cookie?: never;
1008
+ };
1009
+ /**
1010
+ * Read what the customer has been told
1011
+ * @description CLM-006, from the broker's side: the same entries the customer sees, oldest first, so staff can see what has been disclosed before adding to it.
1012
+ */
1013
+ get: operations["ListClaimTimeline"];
1014
+ put?: never;
1015
+ /**
1016
+ * Tell the customer something about their claim
1017
+ * @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.
1018
+ *
1019
+ * 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.
1020
+ */
1021
+ post: operations["RecordClaimTimelineEntry"];
1022
+ delete?: never;
1023
+ options?: never;
1024
+ head?: never;
1025
+ patch?: never;
1026
+ trace?: never;
1027
+ };
928
1028
  "/api/v1/customer/claims": {
929
1029
  parameters: {
930
1030
  query?: never;
@@ -951,6 +1051,30 @@ export interface paths {
951
1051
  patch?: never;
952
1052
  trace?: never;
953
1053
  };
1054
+ "/api/v1/customer/claims/{id}/timeline": {
1055
+ parameters: {
1056
+ query?: never;
1057
+ header?: never;
1058
+ path?: never;
1059
+ cookie?: never;
1060
+ };
1061
+ /**
1062
+ * Read what your broker has told you about your claim
1063
+ * @description CLM-006. What your broker has chosen to tell you, oldest first.
1064
+ *
1065
+ * **This is everything there is to see.** It is not a filtered view of your broker's own notes with the private parts removed - your broker's working papers are a different record entirely, which nothing here can reach (ADR-0041 section 3). When your broker wants you to know what one of their notes says, they publish it, and it appears here as an entry with the time they told you.
1066
+ *
1067
+ * Each entry says what you were told and when. It does not say which member of staff decided to tell you.
1068
+ */
1069
+ get: operations["GetOwnClaimTimeline"];
1070
+ put?: never;
1071
+ post?: never;
1072
+ delete?: never;
1073
+ options?: never;
1074
+ head?: never;
1075
+ patch?: never;
1076
+ trace?: never;
1077
+ };
954
1078
  "/api/v1/customer/claims/{id}": {
955
1079
  parameters: {
956
1080
  query?: never;
@@ -2943,6 +3067,18 @@ export interface components {
2943
3067
  items: components["schemas"]["ProductResponse"][];
2944
3068
  nextCursor: null | string;
2945
3069
  };
3070
+ ClaimNoteResponse: {
3071
+ /** Format: uuid */
3072
+ id: string;
3073
+ /** Format: uuid */
3074
+ claimId: string;
3075
+ body: string;
3076
+ /** Format: date-time */
3077
+ writtenAtUtc: string;
3078
+ writtenBySubjectId: string;
3079
+ /** Format: date-time */
3080
+ publishedAtUtc: null | string;
3081
+ };
2946
3082
  ClaimResponse: {
2947
3083
  /** Format: uuid */
2948
3084
  id: string;
@@ -2957,6 +3093,17 @@ export interface components {
2957
3093
  status: string;
2958
3094
  /** Format: date-time */
2959
3095
  retentionAnchorAtUtc: null | string;
3096
+ /** Format: uuid */
3097
+ claimFormSubmissionId: null | string;
3098
+ };
3099
+ ClaimTimelineEntryResponse: {
3100
+ /** Format: uuid */
3101
+ id: string;
3102
+ /** Format: uuid */
3103
+ claimId: string;
3104
+ body: string;
3105
+ /** Format: date-time */
3106
+ occurredAtUtc: string;
2960
3107
  };
2961
3108
  ComparedAttributeResponse: {
2962
3109
  key: string;
@@ -3935,6 +4082,10 @@ export interface components {
3935
4082
  answers: null | components["schemas"]["JsonElement"];
3936
4083
  source: null | string;
3937
4084
  };
4085
+ RecordClaimFormRequest: {
4086
+ /** Format: uuid */
4087
+ submissionId: string;
4088
+ };
3938
4089
  RecordFollowUpRequest: {
3939
4090
  /** Format: date */
3940
4091
  dueOn: null | string;
@@ -3953,6 +4104,9 @@ export interface components {
3953
4104
  /** Format: uuid */
3954
4105
  quoteRequestId: null | string;
3955
4106
  };
4107
+ RecordTimelineEntryRequest: {
4108
+ body: string;
4109
+ };
3956
4110
  RedeemedCustomerAccountResponse: {
3957
4111
  /** Format: uuid */
3958
4112
  customerId: string;
@@ -4292,6 +4446,9 @@ export interface components {
4292
4446
  WithdrawPlatformAdministratorRequest: {
4293
4447
  reason: null | string;
4294
4448
  };
4449
+ WriteClaimNoteRequest: {
4450
+ body: string;
4451
+ };
4295
4452
  };
4296
4453
  responses: never;
4297
4454
  parameters: never;
@@ -6762,6 +6919,57 @@ export interface operations {
6762
6919
  };
6763
6920
  };
6764
6921
  };
6922
+ RecordClaimForm: {
6923
+ parameters: {
6924
+ query?: never;
6925
+ header?: never;
6926
+ path: {
6927
+ id: string;
6928
+ };
6929
+ cookie?: never;
6930
+ };
6931
+ requestBody: {
6932
+ content: {
6933
+ "application/json": components["schemas"]["RecordClaimFormRequest"];
6934
+ };
6935
+ };
6936
+ responses: {
6937
+ /** @description OK */
6938
+ 200: {
6939
+ headers: {
6940
+ [name: string]: unknown;
6941
+ };
6942
+ content: {
6943
+ "application/json": components["schemas"]["ClaimResponse"];
6944
+ };
6945
+ };
6946
+ /** @description Bad Request */
6947
+ 400: {
6948
+ headers: {
6949
+ [name: string]: unknown;
6950
+ };
6951
+ content: {
6952
+ "application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
6953
+ };
6954
+ };
6955
+ /** @description Not Found */
6956
+ 404: {
6957
+ headers: {
6958
+ [name: string]: unknown;
6959
+ };
6960
+ content?: never;
6961
+ };
6962
+ /** @description Conflict */
6963
+ 409: {
6964
+ headers: {
6965
+ [name: string]: unknown;
6966
+ };
6967
+ content: {
6968
+ "application/problem+json": components["schemas"]["ProblemDetails"];
6969
+ };
6970
+ };
6971
+ };
6972
+ };
6765
6973
  WithdrawClaim: {
6766
6974
  parameters: {
6767
6975
  query?: never;
@@ -6800,6 +7008,187 @@ export interface operations {
6800
7008
  };
6801
7009
  };
6802
7010
  };
7011
+ ListClaimNotes: {
7012
+ parameters: {
7013
+ query?: never;
7014
+ header?: never;
7015
+ path: {
7016
+ id: string;
7017
+ };
7018
+ cookie?: never;
7019
+ };
7020
+ requestBody?: never;
7021
+ responses: {
7022
+ /** @description OK */
7023
+ 200: {
7024
+ headers: {
7025
+ [name: string]: unknown;
7026
+ };
7027
+ content: {
7028
+ "application/json": components["schemas"]["ClaimNoteResponse"][];
7029
+ };
7030
+ };
7031
+ /** @description Not Found */
7032
+ 404: {
7033
+ headers: {
7034
+ [name: string]: unknown;
7035
+ };
7036
+ content?: never;
7037
+ };
7038
+ };
7039
+ };
7040
+ WriteClaimNote: {
7041
+ parameters: {
7042
+ query?: never;
7043
+ header?: never;
7044
+ path: {
7045
+ id: string;
7046
+ };
7047
+ cookie?: never;
7048
+ };
7049
+ requestBody: {
7050
+ content: {
7051
+ "application/json": components["schemas"]["WriteClaimNoteRequest"];
7052
+ };
7053
+ };
7054
+ responses: {
7055
+ /** @description Created */
7056
+ 201: {
7057
+ headers: {
7058
+ [name: string]: unknown;
7059
+ };
7060
+ content: {
7061
+ "application/json": components["schemas"]["ClaimNoteResponse"];
7062
+ };
7063
+ };
7064
+ /** @description Bad Request */
7065
+ 400: {
7066
+ headers: {
7067
+ [name: string]: unknown;
7068
+ };
7069
+ content: {
7070
+ "application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
7071
+ };
7072
+ };
7073
+ /** @description Not Found */
7074
+ 404: {
7075
+ headers: {
7076
+ [name: string]: unknown;
7077
+ };
7078
+ content?: never;
7079
+ };
7080
+ };
7081
+ };
7082
+ PublishClaimNote: {
7083
+ parameters: {
7084
+ query?: never;
7085
+ header?: never;
7086
+ path: {
7087
+ id: string;
7088
+ noteId: string;
7089
+ };
7090
+ cookie?: never;
7091
+ };
7092
+ requestBody?: never;
7093
+ responses: {
7094
+ /** @description Created */
7095
+ 201: {
7096
+ headers: {
7097
+ [name: string]: unknown;
7098
+ };
7099
+ content: {
7100
+ "application/json": components["schemas"]["ClaimTimelineEntryResponse"];
7101
+ };
7102
+ };
7103
+ /** @description Not Found */
7104
+ 404: {
7105
+ headers: {
7106
+ [name: string]: unknown;
7107
+ };
7108
+ content?: never;
7109
+ };
7110
+ /** @description Conflict */
7111
+ 409: {
7112
+ headers: {
7113
+ [name: string]: unknown;
7114
+ };
7115
+ content: {
7116
+ "application/problem+json": components["schemas"]["ProblemDetails"];
7117
+ };
7118
+ };
7119
+ };
7120
+ };
7121
+ ListClaimTimeline: {
7122
+ parameters: {
7123
+ query?: never;
7124
+ header?: never;
7125
+ path: {
7126
+ id: string;
7127
+ };
7128
+ cookie?: never;
7129
+ };
7130
+ requestBody?: never;
7131
+ responses: {
7132
+ /** @description OK */
7133
+ 200: {
7134
+ headers: {
7135
+ [name: string]: unknown;
7136
+ };
7137
+ content: {
7138
+ "application/json": components["schemas"]["ClaimTimelineEntryResponse"][];
7139
+ };
7140
+ };
7141
+ /** @description Not Found */
7142
+ 404: {
7143
+ headers: {
7144
+ [name: string]: unknown;
7145
+ };
7146
+ content?: never;
7147
+ };
7148
+ };
7149
+ };
7150
+ RecordClaimTimelineEntry: {
7151
+ parameters: {
7152
+ query?: never;
7153
+ header?: never;
7154
+ path: {
7155
+ id: string;
7156
+ };
7157
+ cookie?: never;
7158
+ };
7159
+ requestBody: {
7160
+ content: {
7161
+ "application/json": components["schemas"]["RecordTimelineEntryRequest"];
7162
+ };
7163
+ };
7164
+ responses: {
7165
+ /** @description Created */
7166
+ 201: {
7167
+ headers: {
7168
+ [name: string]: unknown;
7169
+ };
7170
+ content: {
7171
+ "application/json": components["schemas"]["ClaimTimelineEntryResponse"];
7172
+ };
7173
+ };
7174
+ /** @description Bad Request */
7175
+ 400: {
7176
+ headers: {
7177
+ [name: string]: unknown;
7178
+ };
7179
+ content: {
7180
+ "application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
7181
+ };
7182
+ };
7183
+ /** @description Not Found */
7184
+ 404: {
7185
+ headers: {
7186
+ [name: string]: unknown;
7187
+ };
7188
+ content?: never;
7189
+ };
7190
+ };
7191
+ };
6803
7192
  ReportOwnClaim: {
6804
7193
  parameters: {
6805
7194
  query?: never;
@@ -6833,6 +7222,35 @@ export interface operations {
6833
7222
  };
6834
7223
  };
6835
7224
  };
7225
+ GetOwnClaimTimeline: {
7226
+ parameters: {
7227
+ query?: never;
7228
+ header?: never;
7229
+ path: {
7230
+ id: string;
7231
+ };
7232
+ cookie?: never;
7233
+ };
7234
+ requestBody?: never;
7235
+ responses: {
7236
+ /** @description OK */
7237
+ 200: {
7238
+ headers: {
7239
+ [name: string]: unknown;
7240
+ };
7241
+ content: {
7242
+ "application/json": components["schemas"]["ClaimTimelineEntryResponse"][];
7243
+ };
7244
+ };
7245
+ /** @description Not Found */
7246
+ 404: {
7247
+ headers: {
7248
+ [name: string]: unknown;
7249
+ };
7250
+ content?: never;
7251
+ };
7252
+ };
7253
+ };
6836
7254
  GetOwnClaim: {
6837
7255
  parameters: {
6838
7256
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@insurance-broker/api-client",
3
- "version": "1.19.0",
3
+ "version": "1.21.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,