@insurance-broker/api-client 4.16.0 → 4.17.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 +76 -0
  2. package/package.json +1 -1
package/dist/schema.d.ts CHANGED
@@ -1207,6 +1207,30 @@ export interface paths {
1207
1207
  patch?: never;
1208
1208
  trace?: never;
1209
1209
  };
1210
+ "/api/v1/form-submissions/for-customer": {
1211
+ parameters: {
1212
+ query?: never;
1213
+ header?: never;
1214
+ path?: never;
1215
+ cookie?: never;
1216
+ };
1217
+ get?: never;
1218
+ put?: never;
1219
+ /**
1220
+ * Starts answering a form for a named customer, pinning the version that is live now.
1221
+ * @description Starts a submission of the named form that belongs to the named customer — the broker taking a quotation by telephone. Answer and submit it through the ordinary staff routes. It is marked `enteredBy: Staff`, the customer sees it in their own list, and a quote request may be raised against it once it is submitted. It reconfirms a renewal only if the customer enters every answer and submits it themselves (REN-003).
1222
+ *
1223
+ * **A `400` on `customerId` is one answer** for a customer this broker does not have, whether the identifier belongs to another broker or to nobody.
1224
+ *
1225
+ * **A `409` here is a settled fact, and `type` says which.** `urn:brokerplatform:problem:draft-already-open` means this customer already has a draft of this form open, named in `submissionId`; continue that one. `urn:brokerplatform:problem:product-not-open-to-new-business` means the product is not open to new business, or no longer exists. `urn:brokerplatform:problem:form-has-no-live-version` means no version of this form is published.
1226
+ */
1227
+ post: operations["StartFormSubmissionForCustomer"];
1228
+ delete?: never;
1229
+ options?: never;
1230
+ head?: never;
1231
+ patch?: never;
1232
+ trace?: never;
1233
+ };
1210
1234
  "/api/v1/form-submissions/{id}": {
1211
1235
  parameters: {
1212
1236
  query?: never;
@@ -6488,6 +6512,7 @@ export interface components {
6488
6512
  answers: components["schemas"]["CustomerSubmittedAnswerResponse"][];
6489
6513
  evidence: components["schemas"]["SubmittedEvidenceResponse"][];
6490
6514
  isSatisfied: boolean;
6515
+ enteredBy: string;
6491
6516
  };
6492
6517
  CustomerInsurerOutcomeResponse: {
6493
6518
  /** Format: uuid */
@@ -7244,6 +7269,9 @@ export interface components {
7244
7269
  answers: components["schemas"]["SubmittedAnswerResponse"][];
7245
7270
  evidence: components["schemas"]["SubmittedEvidenceResponse"][];
7246
7271
  isSatisfied: boolean;
7272
+ /** Format: uuid */
7273
+ customerId: null | string;
7274
+ enteredBy: string;
7247
7275
  };
7248
7276
  FormTeamRequest: {
7249
7277
  code: string;
@@ -8894,6 +8922,12 @@ export interface components {
8894
8922
  /** Format: uuid */
8895
8923
  copyFromVersionId: null | string;
8896
8924
  };
8925
+ StartFormSubmissionForCustomerRequest: {
8926
+ /** Format: uuid */
8927
+ formDefinitionId: null | string;
8928
+ /** Format: uuid */
8929
+ customerId: null | string;
8930
+ };
8897
8931
  StartFormSubmissionRequest: {
8898
8932
  /** Format: uuid */
8899
8933
  formDefinitionId: null | string;
@@ -12092,6 +12126,48 @@ export interface operations {
12092
12126
  };
12093
12127
  };
12094
12128
  };
12129
+ StartFormSubmissionForCustomer: {
12130
+ parameters: {
12131
+ query?: never;
12132
+ header?: never;
12133
+ path?: never;
12134
+ cookie?: never;
12135
+ };
12136
+ requestBody: {
12137
+ content: {
12138
+ "application/json": components["schemas"]["StartFormSubmissionForCustomerRequest"];
12139
+ };
12140
+ };
12141
+ responses: {
12142
+ /** @description Created */
12143
+ 201: {
12144
+ headers: {
12145
+ [name: string]: unknown;
12146
+ };
12147
+ content: {
12148
+ "application/json": components["schemas"]["FormSubmissionResponse"];
12149
+ };
12150
+ };
12151
+ /** @description Bad Request */
12152
+ 400: {
12153
+ headers: {
12154
+ [name: string]: unknown;
12155
+ };
12156
+ content: {
12157
+ "application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
12158
+ };
12159
+ };
12160
+ /** @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. */
12161
+ 409: {
12162
+ headers: {
12163
+ [name: string]: unknown;
12164
+ };
12165
+ content: {
12166
+ "application/problem+json": components["schemas"]["ConcurrencyConflictProblem"] | components["schemas"]["ProblemDetails"];
12167
+ };
12168
+ };
12169
+ };
12170
+ };
12095
12171
  GetFormSubmission: {
12096
12172
  parameters: {
12097
12173
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@insurance-broker/api-client",
3
- "version": "4.16.0",
3
+ "version": "4.17.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,