@insurance-broker/api-client 5.17.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 +166 -0
- package/package.json +1 -1
package/dist/schema.d.ts
CHANGED
|
@@ -1656,6 +1656,28 @@ export interface paths {
|
|
|
1656
1656
|
patch?: never;
|
|
1657
1657
|
trace?: never;
|
|
1658
1658
|
};
|
|
1659
|
+
"/api/v1/customer/form-submissions/{id}/pinned-version": {
|
|
1660
|
+
parameters: {
|
|
1661
|
+
query?: never;
|
|
1662
|
+
header?: never;
|
|
1663
|
+
path?: never;
|
|
1664
|
+
cookie?: never;
|
|
1665
|
+
};
|
|
1666
|
+
get?: never;
|
|
1667
|
+
put?: never;
|
|
1668
|
+
/**
|
|
1669
|
+
* Moves their draft onto the version of its form that is live now.
|
|
1670
|
+
* @description Moves the customer's own draft onto the version of its form that is live now — the answer to a draft read with `pinnedVersionIsLive: false`. Every answer whose question survived is carried, and the ones the new version no longer asks are named in `droppedAnswerKeys`.
|
|
1671
|
+
*
|
|
1672
|
+
* **A `409` here is a settled fact, and `type` says which** (#459, #470). `urn:brokerplatform:problem:product-not-open-to-new-business` means the product is no longer offered, or no longer exists, so the draft stays on the version it has. `urn:brokerplatform:problem:form-has-no-live-version` means the broker took the form's live version down and there is nothing to move onto. `urn:brokerplatform:problem:draft-already-on-live-version` means there is nothing to move: the draft already answers the live version. `urn:brokerplatform:problem:submission-already-submitted` means the form has been submitted and is never moved. `urn:brokerplatform:problem:form-version-unreadable` means the version it is on, or the one it would move onto, is in a schema this engine cannot read. `urn:brokerplatform:problem:recorded-answers-unreadable` means the answers saved so far cannot be read, so nothing could be carried; saving them again replaces them. `urn:brokerplatform:problem:concurrency-conflict` means another of their devices wrote first; read again and retry.
|
|
1673
|
+
*/
|
|
1674
|
+
post: operations["RepinCustomerFormSubmission"];
|
|
1675
|
+
delete?: never;
|
|
1676
|
+
options?: never;
|
|
1677
|
+
head?: never;
|
|
1678
|
+
patch?: never;
|
|
1679
|
+
trace?: never;
|
|
1680
|
+
};
|
|
1659
1681
|
"/api/v1/form-submissions/{id}/attachments/{evidenceKey}": {
|
|
1660
1682
|
parameters: {
|
|
1661
1683
|
query?: never;
|
|
@@ -4731,6 +4753,8 @@ export interface paths {
|
|
|
4731
4753
|
*
|
|
4732
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).
|
|
4733
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
|
+
*
|
|
4734
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.
|
|
4735
4759
|
*
|
|
4736
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.
|
|
@@ -4766,6 +4790,32 @@ export interface paths {
|
|
|
4766
4790
|
patch?: never;
|
|
4767
4791
|
trace?: never;
|
|
4768
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
|
+
};
|
|
4769
4819
|
"/api/v1/renewals/{id}/quote-request": {
|
|
4770
4820
|
parameters: {
|
|
4771
4821
|
query?: never;
|
|
@@ -7149,6 +7199,11 @@ export interface components {
|
|
|
7149
7199
|
/** Format: date-time */
|
|
7150
7200
|
openedAtUtc: string;
|
|
7151
7201
|
};
|
|
7202
|
+
CustomerRepinnedSubmissionResponse: {
|
|
7203
|
+
submission: components["schemas"]["CustomerFormSubmissionResponse"];
|
|
7204
|
+
carriedAnswerKeys: string[];
|
|
7205
|
+
droppedAnswerKeys: string[];
|
|
7206
|
+
};
|
|
7152
7207
|
CustomerResponse: {
|
|
7153
7208
|
/** Format: uuid */
|
|
7154
7209
|
id: string;
|
|
@@ -9055,6 +9110,9 @@ export interface components {
|
|
|
9055
9110
|
answers: null | components["schemas"]["JsonElement"];
|
|
9056
9111
|
source: null | string;
|
|
9057
9112
|
};
|
|
9113
|
+
RecordBrokerRecordedInformationRequest: {
|
|
9114
|
+
channel: null | string;
|
|
9115
|
+
};
|
|
9058
9116
|
RecordClaimFormRequest: {
|
|
9059
9117
|
/** Format: uuid */
|
|
9060
9118
|
submissionId: string;
|
|
@@ -9173,6 +9231,14 @@ export interface components {
|
|
|
9173
9231
|
name: string;
|
|
9174
9232
|
legalName: null | string;
|
|
9175
9233
|
};
|
|
9234
|
+
RenewalBrokerRecordedInformationResponse: {
|
|
9235
|
+
/** Format: uuid */
|
|
9236
|
+
renewalCaseId: string;
|
|
9237
|
+
channel: string;
|
|
9238
|
+
recordedBySubjectId: string;
|
|
9239
|
+
/** Format: date-time */
|
|
9240
|
+
recordedAtUtc: string;
|
|
9241
|
+
};
|
|
9176
9242
|
RenewalCaseDetailResponse: {
|
|
9177
9243
|
case: components["schemas"]["RenewalCaseSummaryResponse"];
|
|
9178
9244
|
/** Format: uuid */
|
|
@@ -9182,6 +9248,7 @@ export interface components {
|
|
|
9182
9248
|
quoteRequestId: null | string;
|
|
9183
9249
|
checklist: components["schemas"]["RenewalChecklistItemResponse"][];
|
|
9184
9250
|
customerAnswers: components["schemas"]["CustomerRenewalAnswerResponse"][];
|
|
9251
|
+
brokerRecordedInformationBySubjectId: null | string;
|
|
9185
9252
|
};
|
|
9186
9253
|
RenewalCasePage: {
|
|
9187
9254
|
items: components["schemas"]["RenewalCaseSummaryResponse"][];
|
|
@@ -9217,6 +9284,7 @@ export interface components {
|
|
|
9217
9284
|
isRequired: boolean;
|
|
9218
9285
|
/** Format: date-time */
|
|
9219
9286
|
satisfiedAtUtc: null | string;
|
|
9287
|
+
recordedFrom: null | string;
|
|
9220
9288
|
};
|
|
9221
9289
|
RenewalClockViolationResponse: {
|
|
9222
9290
|
milestone: string;
|
|
@@ -13642,6 +13710,53 @@ export interface operations {
|
|
|
13642
13710
|
};
|
|
13643
13711
|
};
|
|
13644
13712
|
};
|
|
13713
|
+
RepinCustomerFormSubmission: {
|
|
13714
|
+
parameters: {
|
|
13715
|
+
query?: never;
|
|
13716
|
+
header?: {
|
|
13717
|
+
/** @description The organisation to act for: one of the identifiers GET /api/v1/customer/contexts lists. Omit it, or send it empty, to act for your own account; there is no mode in which it becomes mandatory. A value you hold no active membership of, or one that is not an organisation identifier, is refused with 403 naming nothing, and never quietly treated as your own account. */
|
|
13718
|
+
"X-Broker-Acting-For"?: components["parameters"]["ActingFor"];
|
|
13719
|
+
};
|
|
13720
|
+
path: {
|
|
13721
|
+
id: string;
|
|
13722
|
+
};
|
|
13723
|
+
cookie?: never;
|
|
13724
|
+
};
|
|
13725
|
+
requestBody?: never;
|
|
13726
|
+
responses: {
|
|
13727
|
+
/** @description OK */
|
|
13728
|
+
200: {
|
|
13729
|
+
headers: {
|
|
13730
|
+
/** @description The party this request actually acted for. Present, carrying the organisation identifier, when it acted for an organisation; absent when it acted for your own account. It mirrors the request header, so it can be sent back unchanged. Compare it with what you meant to send: it is the only way to see that a request you meant for an organisation was made personally. */
|
|
13731
|
+
"X-Broker-Acting-For"?: string;
|
|
13732
|
+
[name: string]: unknown;
|
|
13733
|
+
};
|
|
13734
|
+
content: {
|
|
13735
|
+
"application/json": components["schemas"]["CustomerRepinnedSubmissionResponse"];
|
|
13736
|
+
};
|
|
13737
|
+
};
|
|
13738
|
+
/** @description Not Found */
|
|
13739
|
+
404: {
|
|
13740
|
+
headers: {
|
|
13741
|
+
/** @description The party this request actually acted for. Present, carrying the organisation identifier, when it acted for an organisation; absent when it acted for your own account. It mirrors the request header, so it can be sent back unchanged. Compare it with what you meant to send: it is the only way to see that a request you meant for an organisation was made personally. */
|
|
13742
|
+
"X-Broker-Acting-For"?: string;
|
|
13743
|
+
[name: string]: unknown;
|
|
13744
|
+
};
|
|
13745
|
+
content?: never;
|
|
13746
|
+
};
|
|
13747
|
+
/** @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. */
|
|
13748
|
+
409: {
|
|
13749
|
+
headers: {
|
|
13750
|
+
/** @description The party this request actually acted for. Present, carrying the organisation identifier, when it acted for an organisation; absent when it acted for your own account. It mirrors the request header, so it can be sent back unchanged. Compare it with what you meant to send: it is the only way to see that a request you meant for an organisation was made personally. */
|
|
13751
|
+
"X-Broker-Acting-For"?: string;
|
|
13752
|
+
[name: string]: unknown;
|
|
13753
|
+
};
|
|
13754
|
+
content: {
|
|
13755
|
+
"application/problem+json": components["schemas"]["ConcurrencyConflictProblem"] | components["schemas"]["ProblemDetails"];
|
|
13756
|
+
};
|
|
13757
|
+
};
|
|
13758
|
+
};
|
|
13759
|
+
};
|
|
13645
13760
|
UploadSubmissionAttachment: {
|
|
13646
13761
|
parameters: {
|
|
13647
13762
|
query?: never;
|
|
@@ -21172,6 +21287,57 @@ export interface operations {
|
|
|
21172
21287
|
};
|
|
21173
21288
|
};
|
|
21174
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
|
+
};
|
|
21175
21341
|
RecordRenewalQuoteRequest: {
|
|
21176
21342
|
parameters: {
|
|
21177
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,
|