@insurance-broker/api-client 1.9.0 → 1.11.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 +160 -0
  2. package/package.json +1 -1
package/dist/schema.d.ts CHANGED
@@ -1847,6 +1847,56 @@ export interface paths {
1847
1847
  patch?: never;
1848
1848
  trace?: never;
1849
1849
  };
1850
+ "/api/v1/renewals": {
1851
+ parameters: {
1852
+ query?: never;
1853
+ header?: never;
1854
+ path?: never;
1855
+ cookie?: never;
1856
+ };
1857
+ /**
1858
+ * List this broker's renewals in one of REN-008's four views
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
+ *
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.
1862
+ *
1863
+ * 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
+ */
1865
+ get: operations["ListRenewals"];
1866
+ put?: never;
1867
+ post?: never;
1868
+ delete?: never;
1869
+ options?: never;
1870
+ head?: never;
1871
+ patch?: never;
1872
+ trace?: never;
1873
+ };
1874
+ "/api/v1/renewals/{id}": {
1875
+ parameters: {
1876
+ query?: never;
1877
+ header?: never;
1878
+ path?: never;
1879
+ cookie?: never;
1880
+ };
1881
+ /**
1882
+ * Read one renewal and its checklist
1883
+ * @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.
1884
+ *
1885
+ * **`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).
1886
+ *
1887
+ * 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).
1888
+ *
1889
+ * 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.
1890
+ */
1891
+ get: operations["GetRenewal"];
1892
+ put?: never;
1893
+ post?: never;
1894
+ delete?: never;
1895
+ options?: never;
1896
+ head?: never;
1897
+ patch?: never;
1898
+ trace?: never;
1899
+ };
1850
1900
  "/api/v1/renewals/{id}/customer-information": {
1851
1901
  parameters: {
1852
1902
  query?: never;
@@ -3779,6 +3829,49 @@ export interface components {
3779
3829
  RenameFormDefinitionRequest: {
3780
3830
  name: null | string;
3781
3831
  };
3832
+ RenewalCaseDetailResponse: {
3833
+ case: components["schemas"]["RenewalCaseSummaryResponse"];
3834
+ /** Format: uuid */
3835
+ customerInformationSubmissionId: null | string;
3836
+ customerInformationDefinitionContentHash: null | string;
3837
+ /** Format: uuid */
3838
+ quoteRequestId: null | string;
3839
+ checklist: components["schemas"]["RenewalChecklistItemResponse"][];
3840
+ };
3841
+ RenewalCasePage: {
3842
+ items: components["schemas"]["RenewalCaseSummaryResponse"][];
3843
+ nextCursor: null | string;
3844
+ /** Format: date */
3845
+ asOf: string;
3846
+ };
3847
+ RenewalCaseSummaryResponse: {
3848
+ /** Format: uuid */
3849
+ id: string;
3850
+ status: string;
3851
+ /** Format: uuid */
3852
+ customerId: null | string;
3853
+ /** Format: uuid */
3854
+ previousPolicyId: string;
3855
+ /** Format: uuid */
3856
+ newPolicyId: null | string;
3857
+ /** Format: uuid */
3858
+ productId: string;
3859
+ /** Format: uuid */
3860
+ insurerId: string;
3861
+ assignedToSubjectId: null | string;
3862
+ /** Format: date */
3863
+ previousCoverEnd: string;
3864
+ /** Format: date-time */
3865
+ openedAtUtc: string;
3866
+ };
3867
+ RenewalChecklistItemResponse: {
3868
+ condition: string;
3869
+ owedBy: string;
3870
+ enforcedBy: string;
3871
+ isRequired: boolean;
3872
+ /** Format: date-time */
3873
+ satisfiedAtUtc: null | string;
3874
+ };
3782
3875
  RenewalCompletionResponse: {
3783
3876
  /** Format: uuid */
3784
3877
  renewalCaseId: string;
@@ -8968,6 +9061,73 @@ export interface operations {
8968
9061
  };
8969
9062
  };
8970
9063
  };
9064
+ ListRenewals: {
9065
+ parameters: {
9066
+ query?: {
9067
+ view?: string;
9068
+ productId?: string;
9069
+ insurerId?: string;
9070
+ assignedToSubjectId?: string;
9071
+ cursor?: string;
9072
+ limit?: number | string;
9073
+ };
9074
+ header?: never;
9075
+ path?: never;
9076
+ cookie?: never;
9077
+ };
9078
+ requestBody?: never;
9079
+ responses: {
9080
+ /** @description OK */
9081
+ 200: {
9082
+ headers: {
9083
+ [name: string]: unknown;
9084
+ };
9085
+ content: {
9086
+ "application/json": components["schemas"]["RenewalCasePage"];
9087
+ };
9088
+ };
9089
+ /** @description Bad Request */
9090
+ 400: {
9091
+ headers: {
9092
+ [name: string]: unknown;
9093
+ };
9094
+ content: {
9095
+ "application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
9096
+ };
9097
+ };
9098
+ };
9099
+ };
9100
+ GetRenewal: {
9101
+ parameters: {
9102
+ query?: never;
9103
+ header?: never;
9104
+ path: {
9105
+ id: string;
9106
+ };
9107
+ cookie?: never;
9108
+ };
9109
+ requestBody?: never;
9110
+ responses: {
9111
+ /** @description OK */
9112
+ 200: {
9113
+ headers: {
9114
+ [name: string]: unknown;
9115
+ };
9116
+ content: {
9117
+ "application/json": components["schemas"]["RenewalCaseDetailResponse"];
9118
+ };
9119
+ };
9120
+ /** @description Not Found */
9121
+ 404: {
9122
+ headers: {
9123
+ [name: string]: unknown;
9124
+ };
9125
+ content: {
9126
+ "application/problem+json": components["schemas"]["ProblemDetails"];
9127
+ };
9128
+ };
9129
+ };
9130
+ };
8971
9131
  RecordRenewalCustomerInformation: {
8972
9132
  parameters: {
8973
9133
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@insurance-broker/api-client",
3
- "version": "1.9.0",
3
+ "version": "1.11.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,