@insurance-broker/api-client 1.14.0 → 1.15.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 +118 -0
- package/package.json +1 -1
package/dist/schema.d.ts
CHANGED
|
@@ -925,6 +925,56 @@ export interface paths {
|
|
|
925
925
|
patch?: never;
|
|
926
926
|
trace?: never;
|
|
927
927
|
};
|
|
928
|
+
"/api/v1/customer/claims": {
|
|
929
|
+
parameters: {
|
|
930
|
+
query?: never;
|
|
931
|
+
header?: never;
|
|
932
|
+
path?: never;
|
|
933
|
+
cookie?: never;
|
|
934
|
+
};
|
|
935
|
+
get?: never;
|
|
936
|
+
put?: never;
|
|
937
|
+
/**
|
|
938
|
+
* Report a loss on one of your own policies
|
|
939
|
+
* @description CLM-001, the customer's half. Opens a claim-assistance case against a policy you own: the broker is helping, and nothing here decides anything about cover.
|
|
940
|
+
*
|
|
941
|
+
* **You are not named in the request.** The claim is opened for whoever is signed in, resolved from the session; there is no customer field, and a policy belonging to somebody else is answered exactly as one that does not exist.
|
|
942
|
+
*
|
|
943
|
+
* **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).
|
|
944
|
+
*
|
|
945
|
+
* To retract a claim, tell your broker. Concluding a case starts its retention clock, so it is recorded by the person who was told.
|
|
946
|
+
*/
|
|
947
|
+
post: operations["ReportOwnClaim"];
|
|
948
|
+
delete?: never;
|
|
949
|
+
options?: never;
|
|
950
|
+
head?: never;
|
|
951
|
+
patch?: never;
|
|
952
|
+
trace?: never;
|
|
953
|
+
};
|
|
954
|
+
"/api/v1/customer/claims/{id}": {
|
|
955
|
+
parameters: {
|
|
956
|
+
query?: never;
|
|
957
|
+
header?: never;
|
|
958
|
+
path?: never;
|
|
959
|
+
cookie?: never;
|
|
960
|
+
};
|
|
961
|
+
/**
|
|
962
|
+
* Follow one of your own claims
|
|
963
|
+
* @description CLM-006. The claim's identifiers, the day of the incident, when your broker was told, and what your broker is doing about it.
|
|
964
|
+
*
|
|
965
|
+
* Another person's claim and a claim that does not exist are one 404, because a claim belonging to somebody else is not visible to this route at all rather than hidden from it by a filter somebody remembered to write.
|
|
966
|
+
*
|
|
967
|
+
* **This is not the timeline.** CLM-006's customer-visible timeline is step 8.8, and it is a separate append-only record a broker writes to deliberately — nothing a member of staff notes internally reaches it, or this response.
|
|
968
|
+
*/
|
|
969
|
+
get: operations["GetOwnClaim"];
|
|
970
|
+
put?: never;
|
|
971
|
+
post?: never;
|
|
972
|
+
delete?: never;
|
|
973
|
+
options?: never;
|
|
974
|
+
head?: never;
|
|
975
|
+
patch?: never;
|
|
976
|
+
trace?: never;
|
|
977
|
+
};
|
|
928
978
|
"/api/v1/leads": {
|
|
929
979
|
parameters: {
|
|
930
980
|
query?: never;
|
|
@@ -4045,6 +4095,12 @@ export interface components {
|
|
|
4045
4095
|
carriedAnswerKeys: string[];
|
|
4046
4096
|
droppedAnswerKeys: string[];
|
|
4047
4097
|
};
|
|
4098
|
+
ReportClaimRequest: {
|
|
4099
|
+
/** Format: uuid */
|
|
4100
|
+
policyId: string;
|
|
4101
|
+
/** Format: date */
|
|
4102
|
+
incidentOn: string;
|
|
4103
|
+
};
|
|
4048
4104
|
RetentionPeriodResponse: {
|
|
4049
4105
|
/** Format: int32 */
|
|
4050
4106
|
amount: number | string;
|
|
@@ -6736,6 +6792,68 @@ export interface operations {
|
|
|
6736
6792
|
};
|
|
6737
6793
|
};
|
|
6738
6794
|
};
|
|
6795
|
+
ReportOwnClaim: {
|
|
6796
|
+
parameters: {
|
|
6797
|
+
query?: never;
|
|
6798
|
+
header?: never;
|
|
6799
|
+
path?: never;
|
|
6800
|
+
cookie?: never;
|
|
6801
|
+
};
|
|
6802
|
+
requestBody: {
|
|
6803
|
+
content: {
|
|
6804
|
+
"application/json": components["schemas"]["ReportClaimRequest"];
|
|
6805
|
+
};
|
|
6806
|
+
};
|
|
6807
|
+
responses: {
|
|
6808
|
+
/** @description Created */
|
|
6809
|
+
201: {
|
|
6810
|
+
headers: {
|
|
6811
|
+
[name: string]: unknown;
|
|
6812
|
+
};
|
|
6813
|
+
content: {
|
|
6814
|
+
"application/json": components["schemas"]["ClaimResponse"];
|
|
6815
|
+
};
|
|
6816
|
+
};
|
|
6817
|
+
/** @description Bad Request */
|
|
6818
|
+
400: {
|
|
6819
|
+
headers: {
|
|
6820
|
+
[name: string]: unknown;
|
|
6821
|
+
};
|
|
6822
|
+
content: {
|
|
6823
|
+
"application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
|
|
6824
|
+
};
|
|
6825
|
+
};
|
|
6826
|
+
};
|
|
6827
|
+
};
|
|
6828
|
+
GetOwnClaim: {
|
|
6829
|
+
parameters: {
|
|
6830
|
+
query?: never;
|
|
6831
|
+
header?: never;
|
|
6832
|
+
path: {
|
|
6833
|
+
id: string;
|
|
6834
|
+
};
|
|
6835
|
+
cookie?: never;
|
|
6836
|
+
};
|
|
6837
|
+
requestBody?: never;
|
|
6838
|
+
responses: {
|
|
6839
|
+
/** @description OK */
|
|
6840
|
+
200: {
|
|
6841
|
+
headers: {
|
|
6842
|
+
[name: string]: unknown;
|
|
6843
|
+
};
|
|
6844
|
+
content: {
|
|
6845
|
+
"application/json": components["schemas"]["ClaimResponse"];
|
|
6846
|
+
};
|
|
6847
|
+
};
|
|
6848
|
+
/** @description Not Found */
|
|
6849
|
+
404: {
|
|
6850
|
+
headers: {
|
|
6851
|
+
[name: string]: unknown;
|
|
6852
|
+
};
|
|
6853
|
+
content?: never;
|
|
6854
|
+
};
|
|
6855
|
+
};
|
|
6856
|
+
};
|
|
6739
6857
|
ListLeads: {
|
|
6740
6858
|
parameters: {
|
|
6741
6859
|
query?: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@insurance-broker/api-client",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.15.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,
|