@insurance-broker/api-client 2.16.1 → 2.18.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 +34 -5
  2. package/package.json +1 -1
package/dist/schema.d.ts CHANGED
@@ -1163,7 +1163,12 @@ export interface paths {
1163
1163
  /** The broker's submissions, newest first. */
1164
1164
  get: operations["ListFormSubmissions"];
1165
1165
  put?: never;
1166
- /** Starts answering a form, pinning the version that is live now. */
1166
+ /**
1167
+ * Starts answering a form, pinning the version that is live now.
1168
+ * @description Starts a submission of the named form on a customer's behalf, against the version of it that is live now.
1169
+ *
1170
+ * **A `409` here is a settled fact, and `type` says which** (#459). `urn:brokerplatform:problem:product-not-open-to-new-business` means the product is not open to new business — still a draft, or withdrawn — so there is nothing to answer against and nothing to retry. `urn:brokerplatform:problem:form-has-no-live-version` means no version of this form is published, so there is nothing to answer until one is.
1171
+ */
1167
1172
  post: operations["StartFormSubmission"];
1168
1173
  delete?: never;
1169
1174
  options?: never;
@@ -1231,7 +1236,12 @@ export interface paths {
1231
1236
  };
1232
1237
  get?: never;
1233
1238
  put?: never;
1234
- /** Moves a draft onto the version of its form that is live now. */
1239
+ /**
1240
+ * Moves a draft onto the version of its form that is live now.
1241
+ * @description Moves a draft onto the version of its form that is live now, carrying every answer whose question survived and naming the ones that did not.
1242
+ *
1243
+ * **A `409` here is a settled fact.** Two of them carry their own `type` (#459): `urn:brokerplatform:problem:product-not-open-to-new-business` means the product is no longer open to new business, so the draft stays on the version it has; `urn:brokerplatform:problem:form-has-no-live-version` means the form's live version was taken down and there is nothing to move onto. A `409` with the default `type` is the draft already being on the live version, or the submission already having been made.
1244
+ */
1235
1245
  post: operations["RepinFormSubmission"];
1236
1246
  delete?: never;
1237
1247
  options?: never;
@@ -1249,7 +1259,12 @@ export interface paths {
1249
1259
  /** This customer's own submissions, newest first. */
1250
1260
  get: operations["ListCustomerFormSubmissions"];
1251
1261
  put?: never;
1252
- /** Starts answering a form, pinning the version that is live now. */
1262
+ /**
1263
+ * Starts answering a form, pinning the version that is live now.
1264
+ * @description Starts a submission of the named form for the calling customer, against the version of it that is live now. The owner is never in the request.
1265
+ *
1266
+ * **A `409` here is one of three things, and `type` is what tells them apart** (#459). `urn:brokerplatform:problem:draft-already-open` means you already have a draft of this form open and it is named in `submissionId`, so resume that one rather than showing the sentence in `detail`. `urn:brokerplatform:problem:product-not-open-to-new-business` means the product is no longer offered, so there is nothing to open and nothing to retry. `urn:brokerplatform:problem:form-has-no-live-version` means the broker has not published a version of this form to answer; retrying will not change that until they do.
1267
+ */
1253
1268
  post: operations["StartCustomerFormSubmission"];
1254
1269
  delete?: never;
1255
1270
  options?: never;
@@ -4562,7 +4577,14 @@ export interface paths {
4562
4577
  /** The broker's quote requests, newest first, one page at a time. */
4563
4578
  get: operations["ListQuoteRequests"];
4564
4579
  put?: never;
4565
- /** Raises a quote request against a submitted form. */
4580
+ /**
4581
+ * Raises a quote request against a submitted form.
4582
+ * @description QTE-001. Raises a quote request from a submitted form on the customer's behalf; the product, the owner and the risk details all come from the form and never from this request.
4583
+ *
4584
+ * **A `409` here is one of three things, and `type` is what tells them apart** (#430). `urn:brokerplatform:problem:quote-already-requested` means an active request already exists against this form and it is named in `quoteRequestId`, so open that one rather than showing the sentence in `detail`. `urn:brokerplatform:problem:product-not-open-to-new-business` means the product is not open to new business, so there is nothing to open and nothing to retry. `urn:brokerplatform:problem:concurrency-conflict` means somebody wrote first; read again and retry.
4585
+ *
4586
+ * **A `422` is `urn:brokerplatform:problem:unquotable-submission`**, and its `violations` say why: `submission-not-submitted` covers a draft, another broker's form and a form that does not exist, deliberately as one; `submission-has-no-customer` is its own code because the fix is different.
4587
+ */
4566
4588
  post: operations["RaiseQuoteRequest"];
4567
4589
  delete?: never;
4568
4590
  options?: never;
@@ -5031,7 +5053,14 @@ export interface paths {
5031
5053
  /** Lists the caller's own quote requests, newest first. */
5032
5054
  get: operations["ListCustomerQuotes"];
5033
5055
  put?: never;
5034
- /** Asks the broker for a quote against one of the caller's submitted forms. */
5056
+ /**
5057
+ * Asks the broker for a quote against one of the caller's submitted forms.
5058
+ * @description QTE-001. Raises a quote request from one of your submitted forms; the product, the owner and the risk details all come from the form and never from this request.
5059
+ *
5060
+ * **A `409` here is one of three things, and `type` is what tells them apart** (#430). `urn:brokerplatform:problem:quote-already-requested` means a request is already open against this form and the one to resume is named in `quoteRequestId`, so open that one rather than showing the sentence in `detail`. `urn:brokerplatform:problem:product-not-open-to-new-business` means the product is no longer offered, so there is nothing to open and nothing to retry. `urn:brokerplatform:problem:concurrency-conflict` means somebody wrote first; read again and retry.
5061
+ *
5062
+ * **A `422` is `urn:brokerplatform:problem:unquotable-submission`**: the form is a draft, is not yours, or does not exist — one refusal for all three, so this route cannot be used to discover which forms exist. Its `violations` name the form.
5063
+ */
5035
5064
  post: operations["RaiseCustomerQuote"];
5036
5065
  delete?: never;
5037
5066
  options?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@insurance-broker/api-client",
3
- "version": "2.16.1",
3
+ "version": "2.18.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,