@insurance-broker/api-client 5.18.0 → 5.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.
- package/dist/schema.d.ts +92 -0
- package/package.json +1 -1
package/dist/schema.d.ts
CHANGED
|
@@ -4753,6 +4753,8 @@ export interface paths {
|
|
|
4753
4753
|
*
|
|
4754
4754
|
* Every condition is resolved onto every case, so `approval` is present with `isRequired` false rather than absent. Read `isRequired` instead of assuming: a broker's configuration moves the flag, not the row (ADR-0040 section 4).
|
|
4755
4755
|
*
|
|
4756
|
+
* **One row is the exception, and it is never the customer's.** `BrokerRecordedInformation` appears only where you recorded what the customer told you (#228). It is owed by the broker, enforced by `ExternalRecord`, and its `recordedFrom` says how you heard; `brokerRecordedInformationBySubjectId` says who recorded it. It satisfies nothing else: the customer's `CustomerInformation` row reads exactly as it would without it.
|
|
4757
|
+
*
|
|
4756
4758
|
* `customerAnswers` is what the customer said through their own app (REN-005): confirm, decline or request changes, oldest first, with the short note they may attach to the last two. It is empty on a renewal the customer has not answered, and empty for ever on one only you ever touched - a reconfirmation you recorded on their behalf satisfies the condition and is not one of their answers.
|
|
4757
4759
|
*
|
|
4758
4760
|
* **A decline does not conclude anything.** It satisfies no condition and moves no status, so the checklist still reads outstanding and owed by the customer; what changed is that you can now see they answered. Concluding the renewal is still yours, on the loss route.
|
|
@@ -4788,6 +4790,32 @@ export interface paths {
|
|
|
4788
4790
|
patch?: never;
|
|
4789
4791
|
trace?: never;
|
|
4790
4792
|
};
|
|
4793
|
+
"/api/v1/renewals/{id}/broker-recorded-information": {
|
|
4794
|
+
parameters: {
|
|
4795
|
+
query?: never;
|
|
4796
|
+
header?: never;
|
|
4797
|
+
path?: never;
|
|
4798
|
+
cookie?: never;
|
|
4799
|
+
};
|
|
4800
|
+
get?: never;
|
|
4801
|
+
/**
|
|
4802
|
+
* Record that the customer told you their details still stand
|
|
4803
|
+
* @description #228. Records that the customer told you, by telephone, in person, by email or by letter, that the details the renewal rests on still stand. It adds a separate checklist row, `BrokerRecordedInformation`, owed by the broker, enforced by `ExternalRecord`, and carrying `recordedFrom`. That row reads "recorded by the broker from a telephone call" rather than plain "satisfied".
|
|
4804
|
+
*
|
|
4805
|
+
* **It does not satisfy the customer's own `CustomerInformation` condition, and it never will.** REN-003 asks the customer to confirm their own details. That row stays outstanding and owed by the customer, so the checklist keeps showing that the customer never confirmed anything here. If the customer answers for themselves later, through `customer-information` or their own app, their row is satisfied as usual and both facts stay on the renewal.
|
|
4806
|
+
*
|
|
4807
|
+
* **A `409` here is a settled fact, and `type` says which.** `urn:brokerplatform:problem:customer-already-confirmed` means the customer confirmed for themselves, so there is nothing for a broker's record to stand in for. `urn:brokerplatform:problem:renewal-concluded` means the renewal has concluded. `urn:brokerplatform:problem:broker-record-already-made` means a broker already recorded it with a different channel; it is recorded once. `urn:brokerplatform:problem:concurrency-conflict` means somebody wrote first; read again and retry.
|
|
4808
|
+
*
|
|
4809
|
+
* Recording the same channel again reads back what is stored. Records no free text: what the customer said belongs in their CRM record, where it can be corrected.
|
|
4810
|
+
*/
|
|
4811
|
+
put: operations["RecordRenewalBrokerRecordedInformation"];
|
|
4812
|
+
post?: never;
|
|
4813
|
+
delete?: never;
|
|
4814
|
+
options?: never;
|
|
4815
|
+
head?: never;
|
|
4816
|
+
patch?: never;
|
|
4817
|
+
trace?: never;
|
|
4818
|
+
};
|
|
4791
4819
|
"/api/v1/renewals/{id}/quote-request": {
|
|
4792
4820
|
parameters: {
|
|
4793
4821
|
query?: never;
|
|
@@ -9082,6 +9110,9 @@ export interface components {
|
|
|
9082
9110
|
answers: null | components["schemas"]["JsonElement"];
|
|
9083
9111
|
source: null | string;
|
|
9084
9112
|
};
|
|
9113
|
+
RecordBrokerRecordedInformationRequest: {
|
|
9114
|
+
channel: null | string;
|
|
9115
|
+
};
|
|
9085
9116
|
RecordClaimFormRequest: {
|
|
9086
9117
|
/** Format: uuid */
|
|
9087
9118
|
submissionId: string;
|
|
@@ -9200,6 +9231,14 @@ export interface components {
|
|
|
9200
9231
|
name: string;
|
|
9201
9232
|
legalName: null | string;
|
|
9202
9233
|
};
|
|
9234
|
+
RenewalBrokerRecordedInformationResponse: {
|
|
9235
|
+
/** Format: uuid */
|
|
9236
|
+
renewalCaseId: string;
|
|
9237
|
+
channel: string;
|
|
9238
|
+
recordedBySubjectId: string;
|
|
9239
|
+
/** Format: date-time */
|
|
9240
|
+
recordedAtUtc: string;
|
|
9241
|
+
};
|
|
9203
9242
|
RenewalCaseDetailResponse: {
|
|
9204
9243
|
case: components["schemas"]["RenewalCaseSummaryResponse"];
|
|
9205
9244
|
/** Format: uuid */
|
|
@@ -9209,6 +9248,7 @@ export interface components {
|
|
|
9209
9248
|
quoteRequestId: null | string;
|
|
9210
9249
|
checklist: components["schemas"]["RenewalChecklistItemResponse"][];
|
|
9211
9250
|
customerAnswers: components["schemas"]["CustomerRenewalAnswerResponse"][];
|
|
9251
|
+
brokerRecordedInformationBySubjectId: null | string;
|
|
9212
9252
|
};
|
|
9213
9253
|
RenewalCasePage: {
|
|
9214
9254
|
items: components["schemas"]["RenewalCaseSummaryResponse"][];
|
|
@@ -9244,6 +9284,7 @@ export interface components {
|
|
|
9244
9284
|
isRequired: boolean;
|
|
9245
9285
|
/** Format: date-time */
|
|
9246
9286
|
satisfiedAtUtc: null | string;
|
|
9287
|
+
recordedFrom: null | string;
|
|
9247
9288
|
};
|
|
9248
9289
|
RenewalClockViolationResponse: {
|
|
9249
9290
|
milestone: string;
|
|
@@ -21246,6 +21287,57 @@ export interface operations {
|
|
|
21246
21287
|
};
|
|
21247
21288
|
};
|
|
21248
21289
|
};
|
|
21290
|
+
RecordRenewalBrokerRecordedInformation: {
|
|
21291
|
+
parameters: {
|
|
21292
|
+
query?: never;
|
|
21293
|
+
header?: never;
|
|
21294
|
+
path: {
|
|
21295
|
+
id: string;
|
|
21296
|
+
};
|
|
21297
|
+
cookie?: never;
|
|
21298
|
+
};
|
|
21299
|
+
requestBody: {
|
|
21300
|
+
content: {
|
|
21301
|
+
"application/json": components["schemas"]["RecordBrokerRecordedInformationRequest"];
|
|
21302
|
+
};
|
|
21303
|
+
};
|
|
21304
|
+
responses: {
|
|
21305
|
+
/** @description OK */
|
|
21306
|
+
200: {
|
|
21307
|
+
headers: {
|
|
21308
|
+
[name: string]: unknown;
|
|
21309
|
+
};
|
|
21310
|
+
content: {
|
|
21311
|
+
"application/json": components["schemas"]["RenewalBrokerRecordedInformationResponse"];
|
|
21312
|
+
};
|
|
21313
|
+
};
|
|
21314
|
+
/** @description Bad Request */
|
|
21315
|
+
400: {
|
|
21316
|
+
headers: {
|
|
21317
|
+
[name: string]: unknown;
|
|
21318
|
+
};
|
|
21319
|
+
content: {
|
|
21320
|
+
"application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
|
|
21321
|
+
};
|
|
21322
|
+
};
|
|
21323
|
+
/** @description Not Found */
|
|
21324
|
+
404: {
|
|
21325
|
+
headers: {
|
|
21326
|
+
[name: string]: unknown;
|
|
21327
|
+
};
|
|
21328
|
+
content?: never;
|
|
21329
|
+
};
|
|
21330
|
+
/** @description Conflict. A type of urn:brokerplatform:problem:concurrency-conflict means someone else changed the record first and nothing was written: read it again and decide again. Any other type is a conflict this operation decided itself, and retrying it unchanged will not help. */
|
|
21331
|
+
409: {
|
|
21332
|
+
headers: {
|
|
21333
|
+
[name: string]: unknown;
|
|
21334
|
+
};
|
|
21335
|
+
content: {
|
|
21336
|
+
"application/problem+json": components["schemas"]["ConcurrencyConflictProblem"] | components["schemas"]["ProblemDetails"];
|
|
21337
|
+
};
|
|
21338
|
+
};
|
|
21339
|
+
};
|
|
21340
|
+
};
|
|
21249
21341
|
RecordRenewalQuoteRequest: {
|
|
21250
21342
|
parameters: {
|
|
21251
21343
|
query?: never;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@insurance-broker/api-client",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.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,
|