@insurance-broker/api-client 1.14.0 → 1.19.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 +126 -0
  2. 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;
@@ -3167,6 +3217,10 @@ export interface components {
3167
3217
  /** Format: int32 */
3168
3218
  versionCount: number | string;
3169
3219
  };
3220
+ FormQuestionOptionResponse: {
3221
+ value: string;
3222
+ label: string;
3223
+ };
3170
3224
  FormSubmissionResponse: {
3171
3225
  /** Format: uuid */
3172
3226
  id: string;
@@ -4045,6 +4099,12 @@ export interface components {
4045
4099
  carriedAnswerKeys: string[];
4046
4100
  droppedAnswerKeys: string[];
4047
4101
  };
4102
+ ReportClaimRequest: {
4103
+ /** Format: uuid */
4104
+ policyId: string;
4105
+ /** Format: date */
4106
+ incidentOn: string;
4107
+ };
4048
4108
  RetentionPeriodResponse: {
4049
4109
  /** Format: int32 */
4050
4110
  amount: number | string;
@@ -4173,6 +4233,10 @@ export interface components {
4173
4233
  atUtc: null | string;
4174
4234
  visibility: string;
4175
4235
  failures: string[];
4236
+ options: components["schemas"]["FormQuestionOptionResponse"][];
4237
+ isRequired: boolean;
4238
+ help: null | string;
4239
+ section: null | string;
4176
4240
  };
4177
4241
  SubmittedEvidenceResponse: {
4178
4242
  key: string;
@@ -6736,6 +6800,68 @@ export interface operations {
6736
6800
  };
6737
6801
  };
6738
6802
  };
6803
+ ReportOwnClaim: {
6804
+ parameters: {
6805
+ query?: never;
6806
+ header?: never;
6807
+ path?: never;
6808
+ cookie?: never;
6809
+ };
6810
+ requestBody: {
6811
+ content: {
6812
+ "application/json": components["schemas"]["ReportClaimRequest"];
6813
+ };
6814
+ };
6815
+ responses: {
6816
+ /** @description Created */
6817
+ 201: {
6818
+ headers: {
6819
+ [name: string]: unknown;
6820
+ };
6821
+ content: {
6822
+ "application/json": components["schemas"]["ClaimResponse"];
6823
+ };
6824
+ };
6825
+ /** @description Bad Request */
6826
+ 400: {
6827
+ headers: {
6828
+ [name: string]: unknown;
6829
+ };
6830
+ content: {
6831
+ "application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
6832
+ };
6833
+ };
6834
+ };
6835
+ };
6836
+ GetOwnClaim: {
6837
+ parameters: {
6838
+ query?: never;
6839
+ header?: never;
6840
+ path: {
6841
+ id: string;
6842
+ };
6843
+ cookie?: never;
6844
+ };
6845
+ requestBody?: never;
6846
+ responses: {
6847
+ /** @description OK */
6848
+ 200: {
6849
+ headers: {
6850
+ [name: string]: unknown;
6851
+ };
6852
+ content: {
6853
+ "application/json": components["schemas"]["ClaimResponse"];
6854
+ };
6855
+ };
6856
+ /** @description Not Found */
6857
+ 404: {
6858
+ headers: {
6859
+ [name: string]: unknown;
6860
+ };
6861
+ content?: never;
6862
+ };
6863
+ };
6864
+ };
6739
6865
  ListLeads: {
6740
6866
  parameters: {
6741
6867
  query?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@insurance-broker/api-client",
3
- "version": "1.14.0",
3
+ "version": "1.19.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,