@insurance-broker/api-client 2.20.0 → 2.23.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 +80 -9
  2. package/package.json +1 -1
package/dist/schema.d.ts CHANGED
@@ -1167,7 +1167,7 @@ export interface paths {
1167
1167
  * Starts answering a form, pinning the version that is live now.
1168
1168
  * @description Starts a submission of the named form on a customer's behalf, against the version of it that is live now.
1169
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.
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. A form whose product no longer exists answers `urn:brokerplatform:problem:product-not-open-to-new-business` too (#470): there is nothing to offer either way.
1171
1171
  */
1172
1172
  post: operations["StartFormSubmission"];
1173
1173
  delete?: never;
@@ -1201,7 +1201,12 @@ export interface paths {
1201
1201
  cookie?: never;
1202
1202
  };
1203
1203
  get?: never;
1204
- /** Records what has been answered so far. */
1204
+ /**
1205
+ * Records what has been answered so far.
1206
+ * @description Records what has been answered so far, replacing the answers recorded before. Nothing is validated until the submission is made.
1207
+ *
1208
+ * **A `409` here is one of four things, and `type` is what tells them apart** (#470). `urn:brokerplatform:problem:submission-already-submitted` means the submission has been made, so read it rather than editing it. `urn:brokerplatform:problem:pinned-version-changed` means the version this draft is pinned to no longer hashes to what it started against, so nothing more can be recorded on it; read it again to show what it now asks. `urn:brokerplatform:problem:form-version-unreadable` means the version is in a schema this engine cannot read, and nothing sent here will change that. `urn:brokerplatform:problem:concurrency-conflict` means somebody wrote first; read again and retry.
1209
+ */
1205
1210
  put: operations["RecordFormSubmissionAnswers"];
1206
1211
  post?: never;
1207
1212
  delete?: never;
@@ -1219,7 +1224,14 @@ export interface paths {
1219
1224
  };
1220
1225
  get?: never;
1221
1226
  put?: never;
1222
- /** Makes the submission, if the answers satisfy the version. */
1227
+ /**
1228
+ * Makes the submission, if the answers satisfy the version.
1229
+ * @description Makes the submission from the answers recorded so far, if they satisfy the version it is pinned to. Sent again with the same `idempotencyKey`, it answers the submission rather than refusing it.
1230
+ *
1231
+ * **A `409` here is a settled fact, and `type` says which** (#470). `urn:brokerplatform:problem:submission-already-submitted` means it was already made, with a different key or none. `urn:brokerplatform:problem:pinned-version-changed` means the version it is pinned to no longer hashes to what it started against, so it cannot be made. `urn:brokerplatform:problem:form-version-unreadable` means the version is in a schema this engine cannot read. `urn:brokerplatform:problem:recorded-answers-unreadable` means the answers recorded so far cannot be read; recording them again replaces them. `urn:brokerplatform:problem:concurrency-conflict` means answers were recorded in the same instant; read again and retry.
1232
+ *
1233
+ * **A `422` is `urn:brokerplatform:problem:unsatisfied-answers`**, and its `violations` name each answer to correct.
1234
+ */
1223
1235
  post: operations["SubmitFormSubmission"];
1224
1236
  delete?: never;
1225
1237
  options?: never;
@@ -1240,7 +1252,7 @@ export interface paths {
1240
1252
  * Moves a draft onto the version of its form that is live now.
1241
1253
  * @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
1254
  *
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.
1255
+ * **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 open to new business, or no longer exists, 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. `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 submission has been made 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 recorded so far cannot be read, so nothing could be carried; recording them again replaces them. `urn:brokerplatform:problem:concurrency-conflict` means somebody wrote first; read again and retry.
1244
1256
  */
1245
1257
  post: operations["RepinFormSubmission"];
1246
1258
  delete?: never;
@@ -1263,7 +1275,7 @@ export interface paths {
1263
1275
  * Starts answering a form, pinning the version that is live now.
1264
1276
  * @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
1277
  *
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.
1278
+ * **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, or no longer exists, so there is nothing to open and nothing to retry (#470). `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
1279
  */
1268
1280
  post: operations["StartCustomerFormSubmission"];
1269
1281
  delete?: never;
@@ -1297,7 +1309,12 @@ export interface paths {
1297
1309
  cookie?: never;
1298
1310
  };
1299
1311
  get?: never;
1300
- /** Saves what they have answered so far. No validation until submit. */
1312
+ /**
1313
+ * Saves what they have answered so far. No validation until submit.
1314
+ * @description Saves what the customer has answered so far, replacing the answers saved before. Nothing is checked until they submit.
1315
+ *
1316
+ * **A `409` here is one of four things, and `type` is what tells them apart** (#470). `urn:brokerplatform:problem:submission-already-submitted` means the form has been submitted, so show it rather than editing it. `urn:brokerplatform:problem:pinned-version-changed` means the version this draft is pinned to no longer hashes to what it started against, so nothing more can be recorded on it; read it again to show what it now asks. `urn:brokerplatform:problem:form-version-unreadable` means the version is in a schema this engine cannot read, and nothing sent here will change that. `urn:brokerplatform:problem:concurrency-conflict` means another of their devices saved first; read again and retry.
1317
+ */
1301
1318
  put: operations["RecordCustomerFormSubmissionAnswers"];
1302
1319
  post?: never;
1303
1320
  delete?: never;
@@ -1315,7 +1332,14 @@ export interface paths {
1315
1332
  };
1316
1333
  get?: never;
1317
1334
  put?: never;
1318
- /** Submits their form, if the answers satisfy the version. */
1335
+ /**
1336
+ * Submits their form, if the answers satisfy the version.
1337
+ * @description Submits the customer's form from the answers saved so far, if they satisfy the version it is pinned to. Sent again with the same `idempotencyKey`, it answers the submission rather than refusing it.
1338
+ *
1339
+ * **A `409` here is a settled fact, and `type` says which** (#470). `urn:brokerplatform:problem:submission-already-submitted` means it was already submitted, with a different key or none. `urn:brokerplatform:problem:pinned-version-changed` means the version it is pinned to no longer hashes to what it started against, so it cannot be submitted. `urn:brokerplatform:problem:form-version-unreadable` means the version is in a schema this engine cannot read. `urn:brokerplatform:problem:recorded-answers-unreadable` means the answers saved so far cannot be read; saving them again replaces them. `urn:brokerplatform:problem:concurrency-conflict` means answers were saved in the same instant; read again and retry.
1340
+ *
1341
+ * **A `422` is `urn:brokerplatform:problem:unsatisfied-answers`**, and its `violations` name each answer to correct.
1342
+ */
1319
1343
  post: operations["SubmitCustomerFormSubmission"];
1320
1344
  delete?: never;
1321
1345
  options?: never;
@@ -1332,7 +1356,12 @@ export interface paths {
1332
1356
  };
1333
1357
  get?: never;
1334
1358
  put?: never;
1335
- /** Attaches a file to one of the evidence requirements the form asks for. */
1359
+ /**
1360
+ * Attaches a file to one of the evidence requirements the form asks for.
1361
+ * @description Attaches one file to the evidence requirement named by `evidenceKey`, on a submission that has not been made yet.
1362
+ *
1363
+ * **A `409` here is a settled fact.** Three of them carry their own `type` (#470): `urn:brokerplatform:problem:submission-already-submitted` means the submission has been made, and evidence added now would change what was submitted. `urn:brokerplatform:problem:pinned-version-changed` means the version it is pinned to no longer hashes to what it started against, so what the form asks for cannot be proved. `urn:brokerplatform:problem:form-version-unreadable` means the version is in a schema this engine cannot read. A `409` with the default `type` is the requirement already holding a file; remove that one first.
1364
+ */
1336
1365
  post: operations["UploadSubmissionAttachment"];
1337
1366
  delete?: never;
1338
1367
  options?: never;
@@ -1417,7 +1446,12 @@ export interface paths {
1417
1446
  };
1418
1447
  get?: never;
1419
1448
  put?: never;
1420
- /** Attaches a file to one of the evidence requirements the form asks for. */
1449
+ /**
1450
+ * Attaches a file to one of the evidence requirements the form asks for.
1451
+ * @description Attaches one file to the evidence requirement named by `evidenceKey`, on a submission that has not been made yet.
1452
+ *
1453
+ * **A `409` here is a settled fact.** Three of them carry their own `type` (#470): `urn:brokerplatform:problem:submission-already-submitted` means the submission has been made, and evidence added now would change what was submitted. `urn:brokerplatform:problem:pinned-version-changed` means the version it is pinned to no longer hashes to what it started against, so what the form asks for cannot be proved. `urn:brokerplatform:problem:form-version-unreadable` means the version is in a schema this engine cannot read. A `409` with the default `type` is the requirement already holding a file; remove that one first.
1454
+ */
1421
1455
  post: operations["UploadCustomerSubmissionAttachment"];
1422
1456
  delete?: never;
1423
1457
  options?: never;
@@ -3209,6 +3243,23 @@ export interface paths {
3209
3243
  patch?: never;
3210
3244
  trace?: never;
3211
3245
  };
3246
+ "/api/v1/tenant/branding/mark": {
3247
+ parameters: {
3248
+ query?: never;
3249
+ header?: never;
3250
+ path?: never;
3251
+ cookie?: never;
3252
+ };
3253
+ /** The broker's name, logo and two colours, for its staff: exactly what its public branding publishes, and nothing more. */
3254
+ get: operations["GetTenantBrandingMark"];
3255
+ put?: never;
3256
+ post?: never;
3257
+ delete?: never;
3258
+ options?: never;
3259
+ head?: never;
3260
+ patch?: never;
3261
+ trace?: never;
3262
+ };
3212
3263
  "/api/v1/tenant/profile": {
3213
3264
  parameters: {
3214
3265
  query?: never;
@@ -15877,6 +15928,26 @@ export interface operations {
15877
15928
  };
15878
15929
  };
15879
15930
  };
15931
+ GetTenantBrandingMark: {
15932
+ parameters: {
15933
+ query?: never;
15934
+ header?: never;
15935
+ path?: never;
15936
+ cookie?: never;
15937
+ };
15938
+ requestBody?: never;
15939
+ responses: {
15940
+ /** @description OK */
15941
+ 200: {
15942
+ headers: {
15943
+ [name: string]: unknown;
15944
+ };
15945
+ content: {
15946
+ "application/json": components["schemas"]["PublicBrandingResponse"];
15947
+ };
15948
+ };
15949
+ };
15950
+ };
15880
15951
  GetTenantProfile: {
15881
15952
  parameters: {
15882
15953
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@insurance-broker/api-client",
3
- "version": "2.20.0",
3
+ "version": "2.23.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,