@insurance-broker/api-client 1.21.0 → 1.23.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 +78 -0
  2. package/package.json +1 -1
package/dist/schema.d.ts CHANGED
@@ -927,6 +927,30 @@ export interface paths {
927
927
  patch?: never;
928
928
  trace?: never;
929
929
  };
930
+ "/api/v1/claims/{id}/closure": {
931
+ parameters: {
932
+ query?: never;
933
+ header?: never;
934
+ path?: never;
935
+ cookie?: never;
936
+ };
937
+ get?: never;
938
+ put?: never;
939
+ /**
940
+ * Finish a claim, recording why
941
+ * @description CLM-005. Records that the broker has stopped helping, and why.
942
+ *
943
+ * **The reason is your own words, not a code from a list.** A list of closure reasons would have to name settlements and declinatures, and those are the insurer's decisions rather than this platform's (ADR-0041 section 2). What the insurer decided is recorded separately, attributed to whoever wrote it down.
944
+ *
945
+ * **Closing starts the retention clock** on the claim and on everything filed against it. There is no route that reopens a claim: a disposal clock that can be wound back is not one. A claim that must be worked again is reported again.
946
+ */
947
+ post: operations["CloseClaim"];
948
+ delete?: never;
949
+ options?: never;
950
+ head?: never;
951
+ patch?: never;
952
+ trace?: never;
953
+ };
930
954
  "/api/v1/claims/{id}/withdrawal": {
931
955
  parameters: {
932
956
  query?: never;
@@ -3105,6 +3129,9 @@ export interface components {
3105
3129
  /** Format: date-time */
3106
3130
  occurredAtUtc: string;
3107
3131
  };
3132
+ CloseClaimRequest: {
3133
+ reason: string;
3134
+ };
3108
3135
  ComparedAttributeResponse: {
3109
3136
  key: string;
3110
3137
  label: string;
@@ -6970,6 +6997,57 @@ export interface operations {
6970
6997
  };
6971
6998
  };
6972
6999
  };
7000
+ CloseClaim: {
7001
+ parameters: {
7002
+ query?: never;
7003
+ header?: never;
7004
+ path: {
7005
+ id: string;
7006
+ };
7007
+ cookie?: never;
7008
+ };
7009
+ requestBody: {
7010
+ content: {
7011
+ "application/json": components["schemas"]["CloseClaimRequest"];
7012
+ };
7013
+ };
7014
+ responses: {
7015
+ /** @description OK */
7016
+ 200: {
7017
+ headers: {
7018
+ [name: string]: unknown;
7019
+ };
7020
+ content: {
7021
+ "application/json": components["schemas"]["ClaimResponse"];
7022
+ };
7023
+ };
7024
+ /** @description Bad Request */
7025
+ 400: {
7026
+ headers: {
7027
+ [name: string]: unknown;
7028
+ };
7029
+ content: {
7030
+ "application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
7031
+ };
7032
+ };
7033
+ /** @description Not Found */
7034
+ 404: {
7035
+ headers: {
7036
+ [name: string]: unknown;
7037
+ };
7038
+ content?: never;
7039
+ };
7040
+ /** @description Conflict */
7041
+ 409: {
7042
+ headers: {
7043
+ [name: string]: unknown;
7044
+ };
7045
+ content: {
7046
+ "application/problem+json": components["schemas"]["ProblemDetails"];
7047
+ };
7048
+ };
7049
+ };
7050
+ };
6973
7051
  WithdrawClaim: {
6974
7052
  parameters: {
6975
7053
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@insurance-broker/api-client",
3
- "version": "1.21.0",
3
+ "version": "1.23.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,