@insurance-broker/api-client 1.21.0 → 1.24.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 +275 -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;
@@ -1099,6 +1123,60 @@ export interface paths {
1099
1123
  patch?: never;
1100
1124
  trace?: never;
1101
1125
  };
1126
+ "/api/v1/claims/emergency-contacts": {
1127
+ parameters: {
1128
+ query?: never;
1129
+ header?: never;
1130
+ path?: never;
1131
+ cookie?: never;
1132
+ };
1133
+ /**
1134
+ * The emergency contacts this broker gives its customers
1135
+ * @description CLM-003. Every emergency contact the platform declares for this broker's country, with the platform's own provider, number and instruction, this broker's override where it has one, the resolved answer, and which of the three levels that answer came from.
1136
+ *
1137
+ * Pass productId to see the contacts for one product rather than this broker's default across every product.
1138
+ *
1139
+ * The country is this broker's own and is not a parameter. A broker with no overrides gets the platform's contacts, because an absent row means the platform's default rather than a gap.
1140
+ */
1141
+ get: operations["ReadEmergencyContacts"];
1142
+ put?: never;
1143
+ post?: never;
1144
+ delete?: never;
1145
+ options?: never;
1146
+ head?: never;
1147
+ patch?: never;
1148
+ trace?: never;
1149
+ };
1150
+ "/api/v1/claims/emergency-contacts/{contact}": {
1151
+ parameters: {
1152
+ query?: never;
1153
+ header?: never;
1154
+ path?: never;
1155
+ cookie?: never;
1156
+ };
1157
+ get?: never;
1158
+ /**
1159
+ * Give this broker's own answer for one emergency contact
1160
+ * @description CLM-003. Records a deliberate departure from the platform's contact, for every product or for one.
1161
+ *
1162
+ * **All three fields together.** An override replaces the whole contact rather than part of one: this broker's provider name beside the platform's number reads as one coherent instruction and is not one (ADR-0041 section 6).
1163
+ *
1164
+ * A contact the platform does not declare for this broker's country is answered 404 — a broker configures the contacts that exist where it operates, and the set for a country is the platform's.
1165
+ */
1166
+ put: operations["SetEmergencyContact"];
1167
+ post?: never;
1168
+ /**
1169
+ * Go back to the platform's contact
1170
+ * @description CLM-003. Deletes this broker's override. The platform's contact applies again by absence, which is what an empty override table means (ADR-0041 section 6).
1171
+ *
1172
+ * Clearing a product override does not clear this broker's default for every product, and clearing the default does not clear a product override: they are separate rows at separate scopes, and the response says which level answers now.
1173
+ */
1174
+ delete: operations["ClearEmergencyContact"];
1175
+ options?: never;
1176
+ head?: never;
1177
+ patch?: never;
1178
+ trace?: never;
1179
+ };
1102
1180
  "/api/v1/leads": {
1103
1181
  parameters: {
1104
1182
  query?: never;
@@ -3105,6 +3183,9 @@ export interface components {
3105
3183
  /** Format: date-time */
3106
3184
  occurredAtUtc: string;
3107
3185
  };
3186
+ CloseClaimRequest: {
3187
+ reason: string;
3188
+ };
3108
3189
  ComparedAttributeResponse: {
3109
3190
  key: string;
3110
3191
  label: string;
@@ -3336,6 +3417,29 @@ export interface components {
3336
3417
  retiredAtUtc: null | string;
3337
3418
  retiredBySubjectId: null | string;
3338
3419
  };
3420
+ EmergencyContactDetailsResponse: {
3421
+ providerName: string;
3422
+ contactDetail: string;
3423
+ instruction: string;
3424
+ };
3425
+ EmergencyContactResponse: {
3426
+ countryCode: string;
3427
+ contact: string;
3428
+ name: string;
3429
+ description: null | string;
3430
+ /** Format: int32 */
3431
+ sortOrder: number | string;
3432
+ /** Format: uuid */
3433
+ productId: null | string;
3434
+ platform: components["schemas"]["EmergencyContactDetailsResponse"];
3435
+ tenantDefault: null | components["schemas"]["EmergencyContactDetailsResponse"];
3436
+ productOverride: null | components["schemas"]["EmergencyContactDetailsResponse"];
3437
+ resolved: components["schemas"]["EmergencyContactDetailsResponse"];
3438
+ source: string;
3439
+ /** Format: date-time */
3440
+ changedAtUtc: null | string;
3441
+ changedBySubjectId: null | string;
3442
+ };
3339
3443
  EntitlementResponse: {
3340
3444
  featureKey: string;
3341
3445
  name: null | string;
@@ -4316,6 +4420,11 @@ export interface components {
4316
4420
  email: null | string;
4317
4421
  phone: null | string;
4318
4422
  };
4423
+ SetEmergencyContactRequest: {
4424
+ providerName: null | string;
4425
+ contactDetail: null | string;
4426
+ instruction: null | string;
4427
+ };
4319
4428
  SetRenewalLeadTimeRequest: {
4320
4429
  /** Format: int32 */
4321
4430
  leadDays: null | number | string;
@@ -6970,6 +7079,57 @@ export interface operations {
6970
7079
  };
6971
7080
  };
6972
7081
  };
7082
+ CloseClaim: {
7083
+ parameters: {
7084
+ query?: never;
7085
+ header?: never;
7086
+ path: {
7087
+ id: string;
7088
+ };
7089
+ cookie?: never;
7090
+ };
7091
+ requestBody: {
7092
+ content: {
7093
+ "application/json": components["schemas"]["CloseClaimRequest"];
7094
+ };
7095
+ };
7096
+ responses: {
7097
+ /** @description OK */
7098
+ 200: {
7099
+ headers: {
7100
+ [name: string]: unknown;
7101
+ };
7102
+ content: {
7103
+ "application/json": components["schemas"]["ClaimResponse"];
7104
+ };
7105
+ };
7106
+ /** @description Bad Request */
7107
+ 400: {
7108
+ headers: {
7109
+ [name: string]: unknown;
7110
+ };
7111
+ content: {
7112
+ "application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
7113
+ };
7114
+ };
7115
+ /** @description Not Found */
7116
+ 404: {
7117
+ headers: {
7118
+ [name: string]: unknown;
7119
+ };
7120
+ content?: never;
7121
+ };
7122
+ /** @description Conflict */
7123
+ 409: {
7124
+ headers: {
7125
+ [name: string]: unknown;
7126
+ };
7127
+ content: {
7128
+ "application/problem+json": components["schemas"]["ProblemDetails"];
7129
+ };
7130
+ };
7131
+ };
7132
+ };
6973
7133
  WithdrawClaim: {
6974
7134
  parameters: {
6975
7135
  query?: never;
@@ -7280,6 +7440,121 @@ export interface operations {
7280
7440
  };
7281
7441
  };
7282
7442
  };
7443
+ ReadEmergencyContacts: {
7444
+ parameters: {
7445
+ query?: {
7446
+ productId?: string;
7447
+ };
7448
+ header?: never;
7449
+ path?: never;
7450
+ cookie?: never;
7451
+ };
7452
+ requestBody?: never;
7453
+ responses: {
7454
+ /** @description OK */
7455
+ 200: {
7456
+ headers: {
7457
+ [name: string]: unknown;
7458
+ };
7459
+ content: {
7460
+ "application/json": components["schemas"]["EmergencyContactResponse"][];
7461
+ };
7462
+ };
7463
+ };
7464
+ };
7465
+ SetEmergencyContact: {
7466
+ parameters: {
7467
+ query?: {
7468
+ productId?: string;
7469
+ };
7470
+ header?: never;
7471
+ path: {
7472
+ contact: string;
7473
+ };
7474
+ cookie?: never;
7475
+ };
7476
+ requestBody: {
7477
+ content: {
7478
+ "application/json": components["schemas"]["SetEmergencyContactRequest"];
7479
+ };
7480
+ };
7481
+ responses: {
7482
+ /** @description OK */
7483
+ 200: {
7484
+ headers: {
7485
+ [name: string]: unknown;
7486
+ };
7487
+ content: {
7488
+ "application/json": components["schemas"]["EmergencyContactResponse"];
7489
+ };
7490
+ };
7491
+ /** @description Bad Request */
7492
+ 400: {
7493
+ headers: {
7494
+ [name: string]: unknown;
7495
+ };
7496
+ content: {
7497
+ "application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
7498
+ };
7499
+ };
7500
+ /** @description Not Found */
7501
+ 404: {
7502
+ headers: {
7503
+ [name: string]: unknown;
7504
+ };
7505
+ content?: never;
7506
+ };
7507
+ /** @description Conflict */
7508
+ 409: {
7509
+ headers: {
7510
+ [name: string]: unknown;
7511
+ };
7512
+ content: {
7513
+ "application/problem+json": components["schemas"]["ProblemDetails"];
7514
+ };
7515
+ };
7516
+ };
7517
+ };
7518
+ ClearEmergencyContact: {
7519
+ parameters: {
7520
+ query?: {
7521
+ productId?: string;
7522
+ };
7523
+ header?: never;
7524
+ path: {
7525
+ contact: string;
7526
+ };
7527
+ cookie?: never;
7528
+ };
7529
+ requestBody?: never;
7530
+ responses: {
7531
+ /** @description OK */
7532
+ 200: {
7533
+ headers: {
7534
+ [name: string]: unknown;
7535
+ };
7536
+ content: {
7537
+ "application/json": components["schemas"]["EmergencyContactResponse"];
7538
+ };
7539
+ };
7540
+ /** @description Not Found */
7541
+ 404: {
7542
+ headers: {
7543
+ [name: string]: unknown;
7544
+ };
7545
+ content?: never;
7546
+ };
7547
+ /** @description Conflict */
7548
+ 409: {
7549
+ headers: {
7550
+ [name: string]: unknown;
7551
+ };
7552
+ content: {
7553
+ "application/problem+json": components["schemas"]["ProblemDetails"];
7554
+ };
7555
+ };
7556
+ };
7557
+ };
7283
7558
  ListLeads: {
7284
7559
  parameters: {
7285
7560
  query?: {
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.24.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,