@insurance-broker/api-client 1.8.0 → 1.9.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 +156 -0
  2. package/package.json +1 -1
package/dist/schema.d.ts CHANGED
@@ -1907,6 +1907,54 @@ export interface paths {
1907
1907
  patch?: never;
1908
1908
  trace?: never;
1909
1909
  };
1910
+ "/api/v1/renewals/{id}/completion": {
1911
+ parameters: {
1912
+ query?: never;
1913
+ header?: never;
1914
+ path?: never;
1915
+ cookie?: never;
1916
+ };
1917
+ get?: never;
1918
+ put?: never;
1919
+ /**
1920
+ * Complete a renewal: open the successor policy and supersede the previous cover
1921
+ * @description REN-007. The phase's exit criterion. Opens a policy from the acceptance this renewal's quote request already carries, links it to the case, and moves the previous policy to renewed with the instant its successor took over - all in one transaction, so the case's status, the link, the new policy and the previous policy's stamp commit together or not at all. Takes no body: the quote request is the one on the case, so this cannot be pointed at a different acceptance.
1922
+ *
1923
+ * The successor is created proposed and nothing here binds cover (BR-005). It becomes active only when an insurer's confirmation is recorded against it, through the policy routes - so the renewal's insurer-confirmation condition is still outstanding after this, and so is approval where a broker requires it. REN-005's customer-facing renewal surface is untouched.
1924
+ *
1925
+ * Refused if the customer has not accepted, if the renewal never went to market, if nothing has been accepted on the quote request it names, or if the previous policy never went into force - cover that was never in force cannot be renewed, and such a renewal is concluded as lost instead. Completing twice reads back the first result rather than making a second policy.
1926
+ */
1927
+ post: operations["CompleteRenewal"];
1928
+ delete?: never;
1929
+ options?: never;
1930
+ head?: never;
1931
+ patch?: never;
1932
+ trace?: never;
1933
+ };
1934
+ "/api/v1/renewals/{id}/loss": {
1935
+ parameters: {
1936
+ query?: never;
1937
+ header?: never;
1938
+ path?: never;
1939
+ cookie?: never;
1940
+ };
1941
+ get?: never;
1942
+ put?: never;
1943
+ /**
1944
+ * Conclude a renewal that produced no replacement cover
1945
+ * @description REN-008. Records that this renewal ended without a successor - the customer went elsewhere, the insurer declined, or nobody acted before the cover ended - and expires the previous policy where its cover was in force. This is the door ADR-0035 names for the expired status: a renewal process concluding without replacement. Nothing sweeps a policy there.
1946
+ *
1947
+ * A previous policy that never went into force is left exactly where it stands, which is the correct outcome and not an error: cover that was never in force did not expire. The response says which of the two happened.
1948
+ *
1949
+ * It creates no policy, satisfies no outstanding condition and withdraws none - a condition still outstanding when the renewal was given up stays outstanding, because that is what happened. Concluding twice reads back the first result. Refused only if the case has already concluded some other way.
1950
+ */
1951
+ post: operations["LoseRenewal"];
1952
+ delete?: never;
1953
+ options?: never;
1954
+ head?: never;
1955
+ patch?: never;
1956
+ trace?: never;
1957
+ };
1910
1958
  "/api/v1/customer/policy-documents": {
1911
1959
  parameters: {
1912
1960
  query?: never;
@@ -3731,6 +3779,21 @@ export interface components {
3731
3779
  RenameFormDefinitionRequest: {
3732
3780
  name: null | string;
3733
3781
  };
3782
+ RenewalCompletionResponse: {
3783
+ /** Format: uuid */
3784
+ renewalCaseId: string;
3785
+ status: string;
3786
+ /** Format: uuid */
3787
+ quoteRequestId: string;
3788
+ /** Format: uuid */
3789
+ newPolicyId: string;
3790
+ newPolicyStatus: string;
3791
+ /** Format: uuid */
3792
+ previousPolicyId: string;
3793
+ previousPolicyStatus: string;
3794
+ /** Format: date-time */
3795
+ previousPolicyRenewedAtUtc: null | string;
3796
+ };
3734
3797
  RenewalCustomerInformationResponse: {
3735
3798
  /** Format: uuid */
3736
3799
  renewalCaseId: string;
@@ -3766,6 +3829,14 @@ export interface components {
3766
3829
  changedAtUtc: null | string;
3767
3830
  changedBySubjectId: null | string;
3768
3831
  };
3832
+ RenewalLossResponse: {
3833
+ /** Format: uuid */
3834
+ renewalCaseId: string;
3835
+ status: string;
3836
+ /** Format: uuid */
3837
+ previousPolicyId: string;
3838
+ previousPolicyStatus: string;
3839
+ };
3769
3840
  RenewalTermsResponse: {
3770
3841
  /** Format: uuid */
3771
3842
  renewalCaseId: string;
@@ -9064,6 +9135,91 @@ export interface operations {
9064
9135
  };
9065
9136
  };
9066
9137
  };
9138
+ CompleteRenewal: {
9139
+ parameters: {
9140
+ query?: never;
9141
+ header?: never;
9142
+ path: {
9143
+ id: string;
9144
+ };
9145
+ cookie?: never;
9146
+ };
9147
+ requestBody?: never;
9148
+ responses: {
9149
+ /** @description OK */
9150
+ 200: {
9151
+ headers: {
9152
+ [name: string]: unknown;
9153
+ };
9154
+ content: {
9155
+ "application/json": components["schemas"]["RenewalCompletionResponse"];
9156
+ };
9157
+ };
9158
+ /** @description Not Found */
9159
+ 404: {
9160
+ headers: {
9161
+ [name: string]: unknown;
9162
+ };
9163
+ content?: never;
9164
+ };
9165
+ /** @description Conflict */
9166
+ 409: {
9167
+ headers: {
9168
+ [name: string]: unknown;
9169
+ };
9170
+ content: {
9171
+ "application/problem+json": components["schemas"]["ProblemDetails"];
9172
+ };
9173
+ };
9174
+ /** @description Unprocessable Entity */
9175
+ 422: {
9176
+ headers: {
9177
+ [name: string]: unknown;
9178
+ };
9179
+ content: {
9180
+ "application/problem+json": components["schemas"]["ProblemDetails"];
9181
+ };
9182
+ };
9183
+ };
9184
+ };
9185
+ LoseRenewal: {
9186
+ parameters: {
9187
+ query?: never;
9188
+ header?: never;
9189
+ path: {
9190
+ id: string;
9191
+ };
9192
+ cookie?: never;
9193
+ };
9194
+ requestBody?: never;
9195
+ responses: {
9196
+ /** @description OK */
9197
+ 200: {
9198
+ headers: {
9199
+ [name: string]: unknown;
9200
+ };
9201
+ content: {
9202
+ "application/json": components["schemas"]["RenewalLossResponse"];
9203
+ };
9204
+ };
9205
+ /** @description Not Found */
9206
+ 404: {
9207
+ headers: {
9208
+ [name: string]: unknown;
9209
+ };
9210
+ content?: never;
9211
+ };
9212
+ /** @description Conflict */
9213
+ 409: {
9214
+ headers: {
9215
+ [name: string]: unknown;
9216
+ };
9217
+ content: {
9218
+ "application/problem+json": components["schemas"]["ProblemDetails"];
9219
+ };
9220
+ };
9221
+ };
9222
+ };
9067
9223
  ListCustomerPolicyDocuments: {
9068
9224
  parameters: {
9069
9225
  query?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@insurance-broker/api-client",
3
- "version": "1.8.0",
3
+ "version": "1.9.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,