@insurance-broker/api-client 1.9.0 → 1.10.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 +86 -0
  2. package/package.json +1 -1
package/dist/schema.d.ts CHANGED
@@ -1847,6 +1847,30 @@ 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
+ };
1850
1874
  "/api/v1/renewals/{id}/customer-information": {
1851
1875
  parameters: {
1852
1876
  query?: never;
@@ -3779,6 +3803,32 @@ export interface components {
3779
3803
  RenameFormDefinitionRequest: {
3780
3804
  name: null | string;
3781
3805
  };
3806
+ RenewalCasePage: {
3807
+ items: components["schemas"]["RenewalCaseSummaryResponse"][];
3808
+ nextCursor: null | string;
3809
+ /** Format: date */
3810
+ asOf: string;
3811
+ };
3812
+ RenewalCaseSummaryResponse: {
3813
+ /** Format: uuid */
3814
+ id: string;
3815
+ status: string;
3816
+ /** Format: uuid */
3817
+ customerId: null | string;
3818
+ /** Format: uuid */
3819
+ previousPolicyId: string;
3820
+ /** Format: uuid */
3821
+ newPolicyId: null | string;
3822
+ /** Format: uuid */
3823
+ productId: string;
3824
+ /** Format: uuid */
3825
+ insurerId: string;
3826
+ assignedToSubjectId: null | string;
3827
+ /** Format: date */
3828
+ previousCoverEnd: string;
3829
+ /** Format: date-time */
3830
+ openedAtUtc: string;
3831
+ };
3782
3832
  RenewalCompletionResponse: {
3783
3833
  /** Format: uuid */
3784
3834
  renewalCaseId: string;
@@ -8968,6 +9018,42 @@ export interface operations {
8968
9018
  };
8969
9019
  };
8970
9020
  };
9021
+ ListRenewals: {
9022
+ parameters: {
9023
+ query?: {
9024
+ view?: string;
9025
+ productId?: string;
9026
+ insurerId?: string;
9027
+ assignedToSubjectId?: string;
9028
+ cursor?: string;
9029
+ limit?: number | string;
9030
+ };
9031
+ header?: never;
9032
+ path?: never;
9033
+ cookie?: never;
9034
+ };
9035
+ requestBody?: never;
9036
+ responses: {
9037
+ /** @description OK */
9038
+ 200: {
9039
+ headers: {
9040
+ [name: string]: unknown;
9041
+ };
9042
+ content: {
9043
+ "application/json": components["schemas"]["RenewalCasePage"];
9044
+ };
9045
+ };
9046
+ /** @description Bad Request */
9047
+ 400: {
9048
+ headers: {
9049
+ [name: string]: unknown;
9050
+ };
9051
+ content: {
9052
+ "application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
9053
+ };
9054
+ };
9055
+ };
9056
+ };
8971
9057
  RecordRenewalCustomerInformation: {
8972
9058
  parameters: {
8973
9059
  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.10.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,