@insurance-broker/api-client 4.15.0 → 4.16.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 +164 -3
  2. package/package.json +1 -1
package/dist/schema.d.ts CHANGED
@@ -7022,6 +7022,163 @@ export interface components {
7022
7022
  producedAtUtc: string;
7023
7023
  producedBySubjectId: string;
7024
7024
  };
7025
+ /** @description A published form version's body, in body language version 1 (ADR-0026 section 4). Only a Published or Retired version's body is promised to match; a draft's body is any JSON object. Referenced by no operation: opt into it after reading the version's status. */
7026
+ FormBodyV1: {
7027
+ /** @description The questions, in the order they are asked. May be empty only when the body asks for at least one document. */
7028
+ questions: components["schemas"]["FormBodyV1Question"][];
7029
+ /** @description The documents the form asks for, in order. Omitted when there are none. */
7030
+ evidence?: components["schemas"]["FormBodyV1Evidence"][];
7031
+ };
7032
+ /** @description A predicate tree: exactly one of all, any, not, or a leaf. Nests at most 10 levels and holds at most 200 nodes. */
7033
+ FormBodyV1Condition: {
7034
+ all: components["schemas"]["FormBodyV1Condition"][];
7035
+ } | {
7036
+ any: components["schemas"]["FormBodyV1Condition"][];
7037
+ } | {
7038
+ not: components["schemas"]["FormBodyV1Condition"];
7039
+ } | components["schemas"]["FormBodyV1ConditionLeaf"];
7040
+ /** @description Compares one question's answer with a literal, or asks whether it has one. The question is a key declared in the same body; nothing else can be named. */
7041
+ FormBodyV1ConditionLeaf: {
7042
+ /** @description The question whose answer is compared. */
7043
+ question: string;
7044
+ /** @enum {string} */
7045
+ op: "isAnswered" | "isBlank";
7046
+ } | {
7047
+ /** @description The question whose answer is compared. */
7048
+ question: string;
7049
+ /** @enum {string} */
7050
+ op: "eq" | "ne" | "gt" | "gte" | "lt" | "lte";
7051
+ value: components["schemas"]["FormBodyV1Literal"];
7052
+ } | {
7053
+ /** @description The question whose answer is compared. */
7054
+ question: string;
7055
+ /** @enum {string} */
7056
+ op: "in" | "notIn";
7057
+ /** @description The literals, all of one kind. */
7058
+ value: components["schemas"]["FormBodyV1Literal"][];
7059
+ };
7060
+ /**
7061
+ * @description A condition leaf's comparison: the closed operator set of ADR-0026 section 4.
7062
+ * @enum {string}
7063
+ */
7064
+ FormBodyV1ConditionOperator: "eq" | "ne" | "in" | "notIn" | "gt" | "gte" | "lt" | "lte" | "isAnswered" | "isBlank";
7065
+ /** @description One document the form asks for. */
7066
+ FormBodyV1Evidence: {
7067
+ /** @description The document's key. Unique in the body, across questions and documents. */
7068
+ key: string;
7069
+ /** @description What the customer is asked for. */
7070
+ label: string;
7071
+ /** @description Guidance shown with the request. */
7072
+ help?: string;
7073
+ /** @description When the document is required. Absent means always; a condition that cannot be decided requires it. */
7074
+ requiredWhen?: components["schemas"]["FormBodyV1Condition"];
7075
+ };
7076
+ /** @description Text, a number, or true or false, of the kind the question it is compared with holds. A date is text written yyyy-MM-dd; a choice is an option value. */
7077
+ FormBodyV1Literal: boolean | number | string;
7078
+ /** @description One permitted answer of a choice question. */
7079
+ FormBodyV1Option: {
7080
+ /** @description What is stored when this option is chosen. */
7081
+ value: string;
7082
+ /** @description What the customer sees. */
7083
+ label: string;
7084
+ };
7085
+ /** @description One question. options is present exactly when the type is singleChoice or multiChoice. */
7086
+ FormBodyV1Question: {
7087
+ /** @description The property the answer is stored under. Unique in the body, across questions and documents. */
7088
+ key: string;
7089
+ type: components["schemas"]["FormBodyV1QuestionType"];
7090
+ /** @description What the customer is asked. */
7091
+ label: string;
7092
+ /** @description Guidance shown with the question. */
7093
+ help?: string;
7094
+ /** @description The display grouping. A heading only: it carries no visibility of its own. */
7095
+ section?: string;
7096
+ /** @description The permitted answers of a choice question, in display order. Values are unique. */
7097
+ options?: components["schemas"]["FormBodyV1Option"][];
7098
+ /** @description When the question is shown. Absent means always. */
7099
+ visibleWhen?: components["schemas"]["FormBodyV1Condition"];
7100
+ /** @description The rules an answer must satisfy. Each rule at most once. */
7101
+ validators?: components["schemas"]["FormBodyV1Validator"][];
7102
+ };
7103
+ /**
7104
+ * @description What a question asks for: the closed set of ADR-0026 section 4. text takes validators required, minLength, maxLength, pattern, oneOf and is compared with eq, ne, in, notIn, isAnswered, isBlank. longText takes validators required, minLength, maxLength, pattern, oneOf and is compared with eq, ne, in, notIn, isAnswered, isBlank. number takes validators required, min, max, oneOf, decimalPlaces and is compared with eq, ne, in, notIn, gt, gte, lt, lte, isAnswered, isBlank. yesNo takes validators required and is compared with eq, ne, isAnswered, isBlank. date takes validators required, minDate, maxDate, minAge, maxAge, minDaysAhead, maxDaysAhead and is compared with eq, ne, in, notIn, gt, gte, lt, lte, isAnswered, isBlank. singleChoice takes validators required and is compared with eq, ne, in, notIn, isAnswered, isBlank. multiChoice takes validators required and is compared with in, notIn, isAnswered, isBlank.
7105
+ * @enum {string}
7106
+ */
7107
+ FormBodyV1QuestionType: "text" | "longText" | "number" | "yesNo" | "date" | "singleChoice" | "multiChoice";
7108
+ /**
7109
+ * @description A validator's rule: the closed catalogue of ADR-0026 section 4.
7110
+ * @enum {string}
7111
+ */
7112
+ FormBodyV1ValidationRule: "required" | "minLength" | "maxLength" | "pattern" | "min" | "max" | "minDate" | "maxDate" | "minAge" | "maxAge" | "oneOf" | "decimalPlaces" | "minDaysAhead" | "maxDaysAhead";
7113
+ /** @description One rule on a question: one variant per rule, each with the parameter it takes. */
7114
+ FormBodyV1Validator: {
7115
+ /** @constant */
7116
+ rule: "required";
7117
+ } | {
7118
+ /** @constant */
7119
+ rule: "minLength";
7120
+ value: number;
7121
+ } | {
7122
+ /** @constant */
7123
+ rule: "maxLength";
7124
+ value: number;
7125
+ } | {
7126
+ /** @constant */
7127
+ rule: "pattern";
7128
+ /** @description A regular expression, matched non-backtracking with a timeout. */
7129
+ value: string;
7130
+ } | {
7131
+ /** @constant */
7132
+ rule: "min";
7133
+ value: number;
7134
+ } | {
7135
+ /** @constant */
7136
+ rule: "max";
7137
+ value: number;
7138
+ } | {
7139
+ /** @constant */
7140
+ rule: "minDate";
7141
+ /**
7142
+ * Format: date
7143
+ * @description A calendar date written yyyy-MM-dd.
7144
+ */
7145
+ value: string;
7146
+ } | {
7147
+ /** @constant */
7148
+ rule: "maxDate";
7149
+ /**
7150
+ * Format: date
7151
+ * @description A calendar date written yyyy-MM-dd.
7152
+ */
7153
+ value: string;
7154
+ } | {
7155
+ /** @constant */
7156
+ rule: "minAge";
7157
+ value: number;
7158
+ } | {
7159
+ /** @constant */
7160
+ rule: "maxAge";
7161
+ value: number;
7162
+ } | {
7163
+ /** @constant */
7164
+ rule: "oneOf";
7165
+ /** @description The permitted answers, all of the question's own kind. */
7166
+ value: components["schemas"]["FormBodyV1Literal"][];
7167
+ } | {
7168
+ /** @constant */
7169
+ rule: "decimalPlaces";
7170
+ value: number;
7171
+ } | {
7172
+ /** @constant */
7173
+ rule: "minDaysAhead";
7174
+ /** @description Whole days ahead of the date the submission is assessed on; negative for behind it. */
7175
+ value: number;
7176
+ } | {
7177
+ /** @constant */
7178
+ rule: "maxDaysAhead";
7179
+ /** @description Whole days ahead of the date the submission is assessed on; negative for behind it. */
7180
+ value: number;
7181
+ };
7025
7182
  FormBodyViolationResponse: {
7026
7183
  path: string;
7027
7184
  /** @description Which refusal this is, as a stable name from a closed set. Key grouping, counting and translation on this, never on message. A new code is additive; renaming one is a break. */
@@ -7036,7 +7193,7 @@ export interface components {
7036
7193
  productId: string;
7037
7194
  productKey: string;
7038
7195
  productName: string;
7039
- kind: string;
7196
+ kind: components["schemas"]["FormKind"];
7040
7197
  key: string;
7041
7198
  name: string;
7042
7199
  /** Format: date-time */
@@ -7048,6 +7205,8 @@ export interface components {
7048
7205
  /** Format: int32 */
7049
7206
  versionCount: number | string;
7050
7207
  };
7208
+ /** @enum {string} */
7209
+ FormKind: "Quote" | "Claim";
7051
7210
  FormQuestionOptionResponse: {
7052
7211
  value: string;
7053
7212
  label: string;
@@ -7101,7 +7260,7 @@ export interface components {
7101
7260
  id: string;
7102
7261
  /** Format: int32 */
7103
7262
  versionNumber: number | string;
7104
- status: string;
7263
+ status: components["schemas"]["FormVersionStatus"];
7105
7264
  /** Format: int32 */
7106
7265
  bodySchemaVersion: number | string;
7107
7266
  contentHash: null | string;
@@ -7115,6 +7274,8 @@ export interface components {
7115
7274
  retiredAtUtc: null | string;
7116
7275
  retiredBySubjectId: null | string;
7117
7276
  };
7277
+ /** @enum {string} */
7278
+ FormVersionStatus: "Draft" | "Published" | "Retired";
7118
7279
  GenerateDocumentRequest: {
7119
7280
  format: null | string;
7120
7281
  };
@@ -7569,7 +7730,7 @@ export interface components {
7569
7730
  id: string;
7570
7731
  key: string;
7571
7732
  name: string;
7572
- kind: string;
7733
+ kind: components["schemas"]["FormKind"];
7573
7734
  /** Format: int32 */
7574
7735
  publishedVersionNumber: number | string;
7575
7736
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@insurance-broker/api-client",
3
- "version": "4.15.0",
3
+ "version": "4.16.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,