@insurance-broker/api-client 1.10.0 → 1.12.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 +77 -1
  2. package/package.json +1 -1
package/dist/schema.d.ts CHANGED
@@ -1858,7 +1858,9 @@ export interface paths {
1858
1858
  * List this broker's renewals in one of REN-008's four views
1859
1859
  * @description REN-008. One of four views, named by `view`: `upcoming` and `overdue` are the live cases split by whether the previous cover end has passed the day the page was measured against, and `lost` and `completed` are the two terminal outcomes. Optionally narrowed by product, insurer or assigned staff member, which is REN-008's grouping. Paged by cursor, oldest previous-cover-end first.
1860
1860
  *
1861
- * **"Overdue" is not a status.** No row stores it: it is computed per request from the case's previous cover end against today, and the day used is returned as `asOf` so a page saying twelve are overdue also says what overdue was measured from.
1861
+ * **"Overdue" is not a status.** No row stores it: it is computed from the case's previous cover end against a day, and the day used is returned as `asOf` so a page saying twelve are overdue also says what overdue was measured from.
1862
+ *
1863
+ * **One walk is measured against one day.** `asOf` is read from the clock on the first page and carried inside the cursor, so a walk that crosses UTC midnight stays internally consistent instead of losing part of a tie group as rows leave `upcoming`. The consequence is that a walk resumed the next day still reports - and still uses - the day it started on: compare `asOf` with your own clock and start a new walk without a cursor to get today's split.
1862
1864
  *
1863
1865
  * Carries identifiers and no names. A product's name lives in the catalogue, a person's in identity and access, and a customer's in CRM, so a client joins those surfaces itself. A cancelled renewal appears in none of the four views - REN-008 names four and cancelled is not one of them (issue #220).
1864
1866
  */
@@ -1871,6 +1873,32 @@ export interface paths {
1871
1873
  patch?: never;
1872
1874
  trace?: never;
1873
1875
  };
1876
+ "/api/v1/renewals/{id}": {
1877
+ parameters: {
1878
+ query?: never;
1879
+ header?: never;
1880
+ path?: never;
1881
+ cookie?: never;
1882
+ };
1883
+ /**
1884
+ * Read one renewal and its checklist
1885
+ * @description REN-002 and REN-006. The case's identifiers and stored status, the identifiers of what satisfied its reconfirmation and its terms, and its checklist: one row per condition with which side owes it, what enforces it, whether this case requires it, and when it was satisfied.
1886
+ *
1887
+ * **`enforcedBy` is the field to read before trusting `satisfiedAtUtc`.** A condition nothing on this platform enforces reports `NotBuilt`, so a satisfied payment condition means a payment rule that does not exist is vacuously satisfied - not that a payment was taken (ADR-0040 section 4).
1888
+ *
1889
+ * Every condition is resolved onto every case, so `approval` is present with `isRequired` false rather than absent. Read `isRequired` instead of assuming: a broker's configuration moves the flag, not the row (ADR-0040 section 4).
1890
+ *
1891
+ * Carries identifiers and no names, and not the previous policy's pinned snapshot. Another broker's case, another customer's case and a case that does not exist are one 404, so the route cannot be used to discover which renewals exist.
1892
+ */
1893
+ get: operations["GetRenewal"];
1894
+ put?: never;
1895
+ post?: never;
1896
+ delete?: never;
1897
+ options?: never;
1898
+ head?: never;
1899
+ patch?: never;
1900
+ trace?: never;
1901
+ };
1874
1902
  "/api/v1/renewals/{id}/customer-information": {
1875
1903
  parameters: {
1876
1904
  query?: never;
@@ -3803,6 +3831,15 @@ export interface components {
3803
3831
  RenameFormDefinitionRequest: {
3804
3832
  name: null | string;
3805
3833
  };
3834
+ RenewalCaseDetailResponse: {
3835
+ case: components["schemas"]["RenewalCaseSummaryResponse"];
3836
+ /** Format: uuid */
3837
+ customerInformationSubmissionId: null | string;
3838
+ customerInformationDefinitionContentHash: null | string;
3839
+ /** Format: uuid */
3840
+ quoteRequestId: null | string;
3841
+ checklist: components["schemas"]["RenewalChecklistItemResponse"][];
3842
+ };
3806
3843
  RenewalCasePage: {
3807
3844
  items: components["schemas"]["RenewalCaseSummaryResponse"][];
3808
3845
  nextCursor: null | string;
@@ -3829,6 +3866,14 @@ export interface components {
3829
3866
  /** Format: date-time */
3830
3867
  openedAtUtc: string;
3831
3868
  };
3869
+ RenewalChecklistItemResponse: {
3870
+ condition: string;
3871
+ owedBy: string;
3872
+ enforcedBy: string;
3873
+ isRequired: boolean;
3874
+ /** Format: date-time */
3875
+ satisfiedAtUtc: null | string;
3876
+ };
3832
3877
  RenewalCompletionResponse: {
3833
3878
  /** Format: uuid */
3834
3879
  renewalCaseId: string;
@@ -9054,6 +9099,37 @@ export interface operations {
9054
9099
  };
9055
9100
  };
9056
9101
  };
9102
+ GetRenewal: {
9103
+ parameters: {
9104
+ query?: never;
9105
+ header?: never;
9106
+ path: {
9107
+ id: string;
9108
+ };
9109
+ cookie?: never;
9110
+ };
9111
+ requestBody?: never;
9112
+ responses: {
9113
+ /** @description OK */
9114
+ 200: {
9115
+ headers: {
9116
+ [name: string]: unknown;
9117
+ };
9118
+ content: {
9119
+ "application/json": components["schemas"]["RenewalCaseDetailResponse"];
9120
+ };
9121
+ };
9122
+ /** @description Not Found */
9123
+ 404: {
9124
+ headers: {
9125
+ [name: string]: unknown;
9126
+ };
9127
+ content: {
9128
+ "application/problem+json": components["schemas"]["ProblemDetails"];
9129
+ };
9130
+ };
9131
+ };
9132
+ };
9057
9133
  RecordRenewalCustomerInformation: {
9058
9134
  parameters: {
9059
9135
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@insurance-broker/api-client",
3
- "version": "1.10.0",
3
+ "version": "1.12.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,