@insurance-broker/api-client 4.14.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 +173 -4
  2. package/package.json +1 -1
package/dist/schema.d.ts CHANGED
@@ -2080,6 +2080,8 @@ export interface paths {
2080
2080
  *
2081
2081
  * Ordered on when an item was **raised** and never on when it was resolved: the list is a history, and ordering on a column that changes moves the boundaries under a reader.
2082
2082
  *
2083
+ * `publishedAtUtc` is when an item was copied onto the customer's timeline, or null if it never was - so a client can leave an already-published item out of the publication control rather than offering one that is refused with 409.
2084
+ *
2083
2085
  * **Staff only.** A customer is told what you need from them by being told, on their timeline, in words you chose - not by being handed the working list, which also names everything you owe.
2084
2086
  */
2085
2087
  get: operations["ListClaimOutstandingItems"];
@@ -2162,6 +2164,8 @@ export interface paths {
2162
2164
  * Read the visits arranged about a claim
2163
2165
  * @description CLM-005. Every visit recorded against this claim, soonest first, cancelled ones included and marked as such - a diary is read forwards, and a visit that was called off is part of the account of how the claim went.
2164
2166
  *
2167
+ * `publishedAtUtc` is when a visit was copied onto the customer's timeline, or null if it never was, as on an outstanding item.
2168
+ *
2165
2169
  * **Staff only**, for the same reason the outstanding items are.
2166
2170
  */
2167
2171
  get: operations["ListClaimAppointments"];
@@ -2336,7 +2340,7 @@ export interface paths {
2336
2340
  * Read what your insurer has said about your claim
2337
2341
  * @description CLM-006, CLM-008. What the insurer has decided about your claim, oldest decision first.
2338
2342
  *
2339
- * **These are the insurer's decisions and not your broker's.** Acceptance and settlement are decided by the insurer; your broker records what they were told. So each entry says the day the insurer decided it, how their answer reached your broker, and the day your broker wrote it down - and your claim's own status says what your broker is doing about it, never what the insurer concluded.
2343
+ * **These are the insurer's decisions and not your broker's.** Acceptance and settlement are decided by the insurer; your broker records what they were told. So each entry says which insurer decided it, what they decided, the day they decided it, and the day your broker wrote it down - and your claim's own status says what your broker is doing about it, never what the insurer concluded.
2340
2344
  *
2341
2345
  * It does not say which member of staff wrote it down, for the same reason your timeline does not.
2342
2346
  */
@@ -6099,6 +6103,8 @@ export interface components {
6099
6103
  /** Format: date-time */
6100
6104
  cancelledAtUtc: null | string;
6101
6105
  isCancelled: boolean;
6106
+ /** Format: date-time */
6107
+ publishedAtUtc: null | string;
6102
6108
  };
6103
6109
  ClaimDetailResponse: {
6104
6110
  /** Format: uuid */
@@ -6168,6 +6174,8 @@ export interface components {
6168
6174
  /** Format: date-time */
6169
6175
  resolvedAtUtc: null | string;
6170
6176
  isOutstanding: boolean;
6177
+ /** Format: date-time */
6178
+ publishedAtUtc: null | string;
6171
6179
  };
6172
6180
  ClaimPage: {
6173
6181
  items: components["schemas"]["ClaimSummaryResponse"][];
@@ -7014,6 +7022,163 @@ export interface components {
7014
7022
  producedAtUtc: string;
7015
7023
  producedBySubjectId: string;
7016
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
+ };
7017
7182
  FormBodyViolationResponse: {
7018
7183
  path: string;
7019
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. */
@@ -7028,7 +7193,7 @@ export interface components {
7028
7193
  productId: string;
7029
7194
  productKey: string;
7030
7195
  productName: string;
7031
- kind: string;
7196
+ kind: components["schemas"]["FormKind"];
7032
7197
  key: string;
7033
7198
  name: string;
7034
7199
  /** Format: date-time */
@@ -7040,6 +7205,8 @@ export interface components {
7040
7205
  /** Format: int32 */
7041
7206
  versionCount: number | string;
7042
7207
  };
7208
+ /** @enum {string} */
7209
+ FormKind: "Quote" | "Claim";
7043
7210
  FormQuestionOptionResponse: {
7044
7211
  value: string;
7045
7212
  label: string;
@@ -7093,7 +7260,7 @@ export interface components {
7093
7260
  id: string;
7094
7261
  /** Format: int32 */
7095
7262
  versionNumber: number | string;
7096
- status: string;
7263
+ status: components["schemas"]["FormVersionStatus"];
7097
7264
  /** Format: int32 */
7098
7265
  bodySchemaVersion: number | string;
7099
7266
  contentHash: null | string;
@@ -7107,6 +7274,8 @@ export interface components {
7107
7274
  retiredAtUtc: null | string;
7108
7275
  retiredBySubjectId: null | string;
7109
7276
  };
7277
+ /** @enum {string} */
7278
+ FormVersionStatus: "Draft" | "Published" | "Retired";
7110
7279
  GenerateDocumentRequest: {
7111
7280
  format: null | string;
7112
7281
  };
@@ -7561,7 +7730,7 @@ export interface components {
7561
7730
  id: string;
7562
7731
  key: string;
7563
7732
  name: string;
7564
- kind: string;
7733
+ kind: components["schemas"]["FormKind"];
7565
7734
  /** Format: int32 */
7566
7735
  publishedVersionNumber: number | string;
7567
7736
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@insurance-broker/api-client",
3
- "version": "4.14.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,