@insurance-broker/api-client 1.23.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 +197 -0
  2. package/package.json +1 -1
package/dist/schema.d.ts CHANGED
@@ -1123,6 +1123,60 @@ export interface paths {
1123
1123
  patch?: never;
1124
1124
  trace?: never;
1125
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
+ };
1126
1180
  "/api/v1/leads": {
1127
1181
  parameters: {
1128
1182
  query?: never;
@@ -3363,6 +3417,29 @@ export interface components {
3363
3417
  retiredAtUtc: null | string;
3364
3418
  retiredBySubjectId: null | string;
3365
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
+ };
3366
3443
  EntitlementResponse: {
3367
3444
  featureKey: string;
3368
3445
  name: null | string;
@@ -4343,6 +4420,11 @@ export interface components {
4343
4420
  email: null | string;
4344
4421
  phone: null | string;
4345
4422
  };
4423
+ SetEmergencyContactRequest: {
4424
+ providerName: null | string;
4425
+ contactDetail: null | string;
4426
+ instruction: null | string;
4427
+ };
4346
4428
  SetRenewalLeadTimeRequest: {
4347
4429
  /** Format: int32 */
4348
4430
  leadDays: null | number | string;
@@ -7358,6 +7440,121 @@ export interface operations {
7358
7440
  };
7359
7441
  };
7360
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
+ };
7361
7558
  ListLeads: {
7362
7559
  parameters: {
7363
7560
  query?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@insurance-broker/api-client",
3
- "version": "1.23.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,