@insurance-broker/api-client 1.19.0 → 1.20.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 +335 -0
- package/package.json +1 -1
package/dist/schema.d.ts
CHANGED
|
@@ -925,6 +925,80 @@ export interface paths {
|
|
|
925
925
|
patch?: never;
|
|
926
926
|
trace?: never;
|
|
927
927
|
};
|
|
928
|
+
"/api/v1/claims/{id}/notes": {
|
|
929
|
+
parameters: {
|
|
930
|
+
query?: never;
|
|
931
|
+
header?: never;
|
|
932
|
+
path?: never;
|
|
933
|
+
cookie?: never;
|
|
934
|
+
};
|
|
935
|
+
/**
|
|
936
|
+
* Read a claim's internal notes
|
|
937
|
+
* @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.
|
|
938
|
+
*/
|
|
939
|
+
get: operations["ListClaimNotes"];
|
|
940
|
+
put?: never;
|
|
941
|
+
/**
|
|
942
|
+
* Write an internal note on a claim
|
|
943
|
+
* @description CLM-005. A note your own staff can see. **The customer never sees it.**
|
|
944
|
+
*
|
|
945
|
+
* 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.
|
|
946
|
+
*/
|
|
947
|
+
post: operations["WriteClaimNote"];
|
|
948
|
+
delete?: never;
|
|
949
|
+
options?: never;
|
|
950
|
+
head?: never;
|
|
951
|
+
patch?: never;
|
|
952
|
+
trace?: never;
|
|
953
|
+
};
|
|
954
|
+
"/api/v1/claims/{id}/notes/{noteId}/publication": {
|
|
955
|
+
parameters: {
|
|
956
|
+
query?: never;
|
|
957
|
+
header?: never;
|
|
958
|
+
path?: never;
|
|
959
|
+
cookie?: never;
|
|
960
|
+
};
|
|
961
|
+
get?: never;
|
|
962
|
+
put?: never;
|
|
963
|
+
/**
|
|
964
|
+
* Tell the customer what an internal note says
|
|
965
|
+
* @description CLM-006. Copies the note's words onto the customer's timeline as a new entry, recording who decided to and when.
|
|
966
|
+
*
|
|
967
|
+
* **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.
|
|
968
|
+
*/
|
|
969
|
+
post: operations["PublishClaimNote"];
|
|
970
|
+
delete?: never;
|
|
971
|
+
options?: never;
|
|
972
|
+
head?: never;
|
|
973
|
+
patch?: never;
|
|
974
|
+
trace?: never;
|
|
975
|
+
};
|
|
976
|
+
"/api/v1/claims/{id}/timeline": {
|
|
977
|
+
parameters: {
|
|
978
|
+
query?: never;
|
|
979
|
+
header?: never;
|
|
980
|
+
path?: never;
|
|
981
|
+
cookie?: never;
|
|
982
|
+
};
|
|
983
|
+
/**
|
|
984
|
+
* Read what the customer has been told
|
|
985
|
+
* @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.
|
|
986
|
+
*/
|
|
987
|
+
get: operations["ListClaimTimeline"];
|
|
988
|
+
put?: never;
|
|
989
|
+
/**
|
|
990
|
+
* Tell the customer something about their claim
|
|
991
|
+
* @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.
|
|
992
|
+
*
|
|
993
|
+
* 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.
|
|
994
|
+
*/
|
|
995
|
+
post: operations["RecordClaimTimelineEntry"];
|
|
996
|
+
delete?: never;
|
|
997
|
+
options?: never;
|
|
998
|
+
head?: never;
|
|
999
|
+
patch?: never;
|
|
1000
|
+
trace?: never;
|
|
1001
|
+
};
|
|
928
1002
|
"/api/v1/customer/claims": {
|
|
929
1003
|
parameters: {
|
|
930
1004
|
query?: never;
|
|
@@ -951,6 +1025,30 @@ export interface paths {
|
|
|
951
1025
|
patch?: never;
|
|
952
1026
|
trace?: never;
|
|
953
1027
|
};
|
|
1028
|
+
"/api/v1/customer/claims/{id}/timeline": {
|
|
1029
|
+
parameters: {
|
|
1030
|
+
query?: never;
|
|
1031
|
+
header?: never;
|
|
1032
|
+
path?: never;
|
|
1033
|
+
cookie?: never;
|
|
1034
|
+
};
|
|
1035
|
+
/**
|
|
1036
|
+
* Read what your broker has told you about your claim
|
|
1037
|
+
* @description CLM-006. What your broker has chosen to tell you, oldest first.
|
|
1038
|
+
*
|
|
1039
|
+
* **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.
|
|
1040
|
+
*
|
|
1041
|
+
* Each entry says what you were told and when. It does not say which member of staff decided to tell you.
|
|
1042
|
+
*/
|
|
1043
|
+
get: operations["GetOwnClaimTimeline"];
|
|
1044
|
+
put?: never;
|
|
1045
|
+
post?: never;
|
|
1046
|
+
delete?: never;
|
|
1047
|
+
options?: never;
|
|
1048
|
+
head?: never;
|
|
1049
|
+
patch?: never;
|
|
1050
|
+
trace?: never;
|
|
1051
|
+
};
|
|
954
1052
|
"/api/v1/customer/claims/{id}": {
|
|
955
1053
|
parameters: {
|
|
956
1054
|
query?: never;
|
|
@@ -2943,6 +3041,18 @@ export interface components {
|
|
|
2943
3041
|
items: components["schemas"]["ProductResponse"][];
|
|
2944
3042
|
nextCursor: null | string;
|
|
2945
3043
|
};
|
|
3044
|
+
ClaimNoteResponse: {
|
|
3045
|
+
/** Format: uuid */
|
|
3046
|
+
id: string;
|
|
3047
|
+
/** Format: uuid */
|
|
3048
|
+
claimId: string;
|
|
3049
|
+
body: string;
|
|
3050
|
+
/** Format: date-time */
|
|
3051
|
+
writtenAtUtc: string;
|
|
3052
|
+
writtenBySubjectId: string;
|
|
3053
|
+
/** Format: date-time */
|
|
3054
|
+
publishedAtUtc: null | string;
|
|
3055
|
+
};
|
|
2946
3056
|
ClaimResponse: {
|
|
2947
3057
|
/** Format: uuid */
|
|
2948
3058
|
id: string;
|
|
@@ -2958,6 +3068,15 @@ export interface components {
|
|
|
2958
3068
|
/** Format: date-time */
|
|
2959
3069
|
retentionAnchorAtUtc: null | string;
|
|
2960
3070
|
};
|
|
3071
|
+
ClaimTimelineEntryResponse: {
|
|
3072
|
+
/** Format: uuid */
|
|
3073
|
+
id: string;
|
|
3074
|
+
/** Format: uuid */
|
|
3075
|
+
claimId: string;
|
|
3076
|
+
body: string;
|
|
3077
|
+
/** Format: date-time */
|
|
3078
|
+
occurredAtUtc: string;
|
|
3079
|
+
};
|
|
2961
3080
|
ComparedAttributeResponse: {
|
|
2962
3081
|
key: string;
|
|
2963
3082
|
label: string;
|
|
@@ -3953,6 +4072,9 @@ export interface components {
|
|
|
3953
4072
|
/** Format: uuid */
|
|
3954
4073
|
quoteRequestId: null | string;
|
|
3955
4074
|
};
|
|
4075
|
+
RecordTimelineEntryRequest: {
|
|
4076
|
+
body: string;
|
|
4077
|
+
};
|
|
3956
4078
|
RedeemedCustomerAccountResponse: {
|
|
3957
4079
|
/** Format: uuid */
|
|
3958
4080
|
customerId: string;
|
|
@@ -4292,6 +4414,9 @@ export interface components {
|
|
|
4292
4414
|
WithdrawPlatformAdministratorRequest: {
|
|
4293
4415
|
reason: null | string;
|
|
4294
4416
|
};
|
|
4417
|
+
WriteClaimNoteRequest: {
|
|
4418
|
+
body: string;
|
|
4419
|
+
};
|
|
4295
4420
|
};
|
|
4296
4421
|
responses: never;
|
|
4297
4422
|
parameters: never;
|
|
@@ -6800,6 +6925,187 @@ export interface operations {
|
|
|
6800
6925
|
};
|
|
6801
6926
|
};
|
|
6802
6927
|
};
|
|
6928
|
+
ListClaimNotes: {
|
|
6929
|
+
parameters: {
|
|
6930
|
+
query?: never;
|
|
6931
|
+
header?: never;
|
|
6932
|
+
path: {
|
|
6933
|
+
id: string;
|
|
6934
|
+
};
|
|
6935
|
+
cookie?: never;
|
|
6936
|
+
};
|
|
6937
|
+
requestBody?: never;
|
|
6938
|
+
responses: {
|
|
6939
|
+
/** @description OK */
|
|
6940
|
+
200: {
|
|
6941
|
+
headers: {
|
|
6942
|
+
[name: string]: unknown;
|
|
6943
|
+
};
|
|
6944
|
+
content: {
|
|
6945
|
+
"application/json": components["schemas"]["ClaimNoteResponse"][];
|
|
6946
|
+
};
|
|
6947
|
+
};
|
|
6948
|
+
/** @description Not Found */
|
|
6949
|
+
404: {
|
|
6950
|
+
headers: {
|
|
6951
|
+
[name: string]: unknown;
|
|
6952
|
+
};
|
|
6953
|
+
content?: never;
|
|
6954
|
+
};
|
|
6955
|
+
};
|
|
6956
|
+
};
|
|
6957
|
+
WriteClaimNote: {
|
|
6958
|
+
parameters: {
|
|
6959
|
+
query?: never;
|
|
6960
|
+
header?: never;
|
|
6961
|
+
path: {
|
|
6962
|
+
id: string;
|
|
6963
|
+
};
|
|
6964
|
+
cookie?: never;
|
|
6965
|
+
};
|
|
6966
|
+
requestBody: {
|
|
6967
|
+
content: {
|
|
6968
|
+
"application/json": components["schemas"]["WriteClaimNoteRequest"];
|
|
6969
|
+
};
|
|
6970
|
+
};
|
|
6971
|
+
responses: {
|
|
6972
|
+
/** @description Created */
|
|
6973
|
+
201: {
|
|
6974
|
+
headers: {
|
|
6975
|
+
[name: string]: unknown;
|
|
6976
|
+
};
|
|
6977
|
+
content: {
|
|
6978
|
+
"application/json": components["schemas"]["ClaimNoteResponse"];
|
|
6979
|
+
};
|
|
6980
|
+
};
|
|
6981
|
+
/** @description Bad Request */
|
|
6982
|
+
400: {
|
|
6983
|
+
headers: {
|
|
6984
|
+
[name: string]: unknown;
|
|
6985
|
+
};
|
|
6986
|
+
content: {
|
|
6987
|
+
"application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
|
|
6988
|
+
};
|
|
6989
|
+
};
|
|
6990
|
+
/** @description Not Found */
|
|
6991
|
+
404: {
|
|
6992
|
+
headers: {
|
|
6993
|
+
[name: string]: unknown;
|
|
6994
|
+
};
|
|
6995
|
+
content?: never;
|
|
6996
|
+
};
|
|
6997
|
+
};
|
|
6998
|
+
};
|
|
6999
|
+
PublishClaimNote: {
|
|
7000
|
+
parameters: {
|
|
7001
|
+
query?: never;
|
|
7002
|
+
header?: never;
|
|
7003
|
+
path: {
|
|
7004
|
+
id: string;
|
|
7005
|
+
noteId: string;
|
|
7006
|
+
};
|
|
7007
|
+
cookie?: never;
|
|
7008
|
+
};
|
|
7009
|
+
requestBody?: never;
|
|
7010
|
+
responses: {
|
|
7011
|
+
/** @description Created */
|
|
7012
|
+
201: {
|
|
7013
|
+
headers: {
|
|
7014
|
+
[name: string]: unknown;
|
|
7015
|
+
};
|
|
7016
|
+
content: {
|
|
7017
|
+
"application/json": components["schemas"]["ClaimTimelineEntryResponse"];
|
|
7018
|
+
};
|
|
7019
|
+
};
|
|
7020
|
+
/** @description Not Found */
|
|
7021
|
+
404: {
|
|
7022
|
+
headers: {
|
|
7023
|
+
[name: string]: unknown;
|
|
7024
|
+
};
|
|
7025
|
+
content?: never;
|
|
7026
|
+
};
|
|
7027
|
+
/** @description Conflict */
|
|
7028
|
+
409: {
|
|
7029
|
+
headers: {
|
|
7030
|
+
[name: string]: unknown;
|
|
7031
|
+
};
|
|
7032
|
+
content: {
|
|
7033
|
+
"application/problem+json": components["schemas"]["ProblemDetails"];
|
|
7034
|
+
};
|
|
7035
|
+
};
|
|
7036
|
+
};
|
|
7037
|
+
};
|
|
7038
|
+
ListClaimTimeline: {
|
|
7039
|
+
parameters: {
|
|
7040
|
+
query?: never;
|
|
7041
|
+
header?: never;
|
|
7042
|
+
path: {
|
|
7043
|
+
id: string;
|
|
7044
|
+
};
|
|
7045
|
+
cookie?: never;
|
|
7046
|
+
};
|
|
7047
|
+
requestBody?: never;
|
|
7048
|
+
responses: {
|
|
7049
|
+
/** @description OK */
|
|
7050
|
+
200: {
|
|
7051
|
+
headers: {
|
|
7052
|
+
[name: string]: unknown;
|
|
7053
|
+
};
|
|
7054
|
+
content: {
|
|
7055
|
+
"application/json": components["schemas"]["ClaimTimelineEntryResponse"][];
|
|
7056
|
+
};
|
|
7057
|
+
};
|
|
7058
|
+
/** @description Not Found */
|
|
7059
|
+
404: {
|
|
7060
|
+
headers: {
|
|
7061
|
+
[name: string]: unknown;
|
|
7062
|
+
};
|
|
7063
|
+
content?: never;
|
|
7064
|
+
};
|
|
7065
|
+
};
|
|
7066
|
+
};
|
|
7067
|
+
RecordClaimTimelineEntry: {
|
|
7068
|
+
parameters: {
|
|
7069
|
+
query?: never;
|
|
7070
|
+
header?: never;
|
|
7071
|
+
path: {
|
|
7072
|
+
id: string;
|
|
7073
|
+
};
|
|
7074
|
+
cookie?: never;
|
|
7075
|
+
};
|
|
7076
|
+
requestBody: {
|
|
7077
|
+
content: {
|
|
7078
|
+
"application/json": components["schemas"]["RecordTimelineEntryRequest"];
|
|
7079
|
+
};
|
|
7080
|
+
};
|
|
7081
|
+
responses: {
|
|
7082
|
+
/** @description Created */
|
|
7083
|
+
201: {
|
|
7084
|
+
headers: {
|
|
7085
|
+
[name: string]: unknown;
|
|
7086
|
+
};
|
|
7087
|
+
content: {
|
|
7088
|
+
"application/json": components["schemas"]["ClaimTimelineEntryResponse"];
|
|
7089
|
+
};
|
|
7090
|
+
};
|
|
7091
|
+
/** @description Bad Request */
|
|
7092
|
+
400: {
|
|
7093
|
+
headers: {
|
|
7094
|
+
[name: string]: unknown;
|
|
7095
|
+
};
|
|
7096
|
+
content: {
|
|
7097
|
+
"application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
|
|
7098
|
+
};
|
|
7099
|
+
};
|
|
7100
|
+
/** @description Not Found */
|
|
7101
|
+
404: {
|
|
7102
|
+
headers: {
|
|
7103
|
+
[name: string]: unknown;
|
|
7104
|
+
};
|
|
7105
|
+
content?: never;
|
|
7106
|
+
};
|
|
7107
|
+
};
|
|
7108
|
+
};
|
|
6803
7109
|
ReportOwnClaim: {
|
|
6804
7110
|
parameters: {
|
|
6805
7111
|
query?: never;
|
|
@@ -6833,6 +7139,35 @@ export interface operations {
|
|
|
6833
7139
|
};
|
|
6834
7140
|
};
|
|
6835
7141
|
};
|
|
7142
|
+
GetOwnClaimTimeline: {
|
|
7143
|
+
parameters: {
|
|
7144
|
+
query?: never;
|
|
7145
|
+
header?: never;
|
|
7146
|
+
path: {
|
|
7147
|
+
id: string;
|
|
7148
|
+
};
|
|
7149
|
+
cookie?: never;
|
|
7150
|
+
};
|
|
7151
|
+
requestBody?: never;
|
|
7152
|
+
responses: {
|
|
7153
|
+
/** @description OK */
|
|
7154
|
+
200: {
|
|
7155
|
+
headers: {
|
|
7156
|
+
[name: string]: unknown;
|
|
7157
|
+
};
|
|
7158
|
+
content: {
|
|
7159
|
+
"application/json": components["schemas"]["ClaimTimelineEntryResponse"][];
|
|
7160
|
+
};
|
|
7161
|
+
};
|
|
7162
|
+
/** @description Not Found */
|
|
7163
|
+
404: {
|
|
7164
|
+
headers: {
|
|
7165
|
+
[name: string]: unknown;
|
|
7166
|
+
};
|
|
7167
|
+
content?: never;
|
|
7168
|
+
};
|
|
7169
|
+
};
|
|
7170
|
+
};
|
|
6836
7171
|
GetOwnClaim: {
|
|
6837
7172
|
parameters: {
|
|
6838
7173
|
query?: never;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@insurance-broker/api-client",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.20.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,
|