@insurance-broker/api-client 1.7.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 +318 -0
  2. package/package.json +1 -1
package/dist/schema.d.ts CHANGED
@@ -1867,6 +1867,94 @@ export interface paths {
1867
1867
  patch?: never;
1868
1868
  trace?: never;
1869
1869
  };
1870
+ "/api/v1/renewals/{id}/quote-request": {
1871
+ parameters: {
1872
+ query?: never;
1873
+ header?: never;
1874
+ path?: never;
1875
+ cookie?: never;
1876
+ };
1877
+ get?: never;
1878
+ /**
1879
+ * Name the quote request this renewal went to market on
1880
+ * @description REN-004. A renewal that goes to market raises an ordinary quote request through the quote routes; this records which one. It records no terms and satisfies no condition - going to market is not a promise about anything. Refused if the quote request has already been accepted by someone else or for another product, if its acceptance predates the renewal - which means it is the quote that placed the policy being renewed - or if another renewal already names it.
1881
+ */
1882
+ put: operations["RecordRenewalQuoteRequest"];
1883
+ post?: never;
1884
+ delete?: never;
1885
+ options?: never;
1886
+ head?: never;
1887
+ patch?: never;
1888
+ trace?: never;
1889
+ };
1890
+ "/api/v1/renewals/{id}/terms": {
1891
+ parameters: {
1892
+ query?: never;
1893
+ header?: never;
1894
+ path?: never;
1895
+ cookie?: never;
1896
+ };
1897
+ get?: never;
1898
+ /**
1899
+ * Record that the customer accepted this renewal's quote
1900
+ * @description REN-004. Reads the acceptance for the quote request this renewal already names and satisfies both terms conditions from it, because a quote cannot be accepted unless it was presented. Takes no body: the request is the one on the case, so this cannot be pointed at a different quote. The customer accepts on the quote itself - this platform has no route for a broker to accept on their behalf - so this is refused until they have, naming the conditions still outstanding. It creates no policy and moves no policy's status: two of the five conditions remain.
1901
+ */
1902
+ put: operations["RecordRenewalTerms"];
1903
+ post?: never;
1904
+ delete?: never;
1905
+ options?: never;
1906
+ head?: never;
1907
+ patch?: never;
1908
+ trace?: never;
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
+ };
1870
1958
  "/api/v1/customer/policy-documents": {
1871
1959
  parameters: {
1872
1960
  query?: never;
@@ -3658,6 +3746,10 @@ export interface components {
3658
3746
  /** Format: uuid */
3659
3747
  formSubmissionId: null | string;
3660
3748
  };
3749
+ RecordRenewalQuoteRequestRequest: {
3750
+ /** Format: uuid */
3751
+ quoteRequestId: null | string;
3752
+ };
3661
3753
  RedeemedCustomerAccountResponse: {
3662
3754
  /** Format: uuid */
3663
3755
  customerId: string;
@@ -3687,6 +3779,21 @@ export interface components {
3687
3779
  RenameFormDefinitionRequest: {
3688
3780
  name: null | string;
3689
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
+ };
3690
3797
  RenewalCustomerInformationResponse: {
3691
3798
  /** Format: uuid */
3692
3799
  renewalCaseId: string;
@@ -3722,6 +3829,25 @@ export interface components {
3722
3829
  changedAtUtc: null | string;
3723
3830
  changedBySubjectId: null | string;
3724
3831
  };
3832
+ RenewalLossResponse: {
3833
+ /** Format: uuid */
3834
+ renewalCaseId: string;
3835
+ status: string;
3836
+ /** Format: uuid */
3837
+ previousPolicyId: string;
3838
+ previousPolicyStatus: string;
3839
+ };
3840
+ RenewalTermsResponse: {
3841
+ /** Format: uuid */
3842
+ renewalCaseId: string;
3843
+ /** Format: uuid */
3844
+ quoteRequestId: string;
3845
+ status: string;
3846
+ /** Format: date-time */
3847
+ insurerTermsSatisfiedAtUtc: null | string;
3848
+ /** Format: date-time */
3849
+ customerAcceptanceSatisfiedAtUtc: null | string;
3850
+ };
3725
3851
  RepinnedSubmissionResponse: {
3726
3852
  submission: components["schemas"]["FormSubmissionResponse"];
3727
3853
  carriedAnswerKeys: string[];
@@ -8902,6 +9028,198 @@ export interface operations {
8902
9028
  };
8903
9029
  };
8904
9030
  };
9031
+ RecordRenewalQuoteRequest: {
9032
+ parameters: {
9033
+ query?: never;
9034
+ header?: never;
9035
+ path: {
9036
+ id: string;
9037
+ };
9038
+ cookie?: never;
9039
+ };
9040
+ requestBody: {
9041
+ content: {
9042
+ "application/json": components["schemas"]["RecordRenewalQuoteRequestRequest"];
9043
+ };
9044
+ };
9045
+ responses: {
9046
+ /** @description OK */
9047
+ 200: {
9048
+ headers: {
9049
+ [name: string]: unknown;
9050
+ };
9051
+ content: {
9052
+ "application/json": components["schemas"]["RenewalTermsResponse"];
9053
+ };
9054
+ };
9055
+ /** @description Bad Request */
9056
+ 400: {
9057
+ headers: {
9058
+ [name: string]: unknown;
9059
+ };
9060
+ content: {
9061
+ "application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
9062
+ };
9063
+ };
9064
+ /** @description Not Found */
9065
+ 404: {
9066
+ headers: {
9067
+ [name: string]: unknown;
9068
+ };
9069
+ content?: never;
9070
+ };
9071
+ /** @description Conflict */
9072
+ 409: {
9073
+ headers: {
9074
+ [name: string]: unknown;
9075
+ };
9076
+ content: {
9077
+ "application/problem+json": components["schemas"]["ProblemDetails"];
9078
+ };
9079
+ };
9080
+ /** @description Unprocessable Entity */
9081
+ 422: {
9082
+ headers: {
9083
+ [name: string]: unknown;
9084
+ };
9085
+ content: {
9086
+ "application/problem+json": components["schemas"]["ProblemDetails"];
9087
+ };
9088
+ };
9089
+ };
9090
+ };
9091
+ RecordRenewalTerms: {
9092
+ parameters: {
9093
+ query?: never;
9094
+ header?: never;
9095
+ path: {
9096
+ id: string;
9097
+ };
9098
+ cookie?: never;
9099
+ };
9100
+ requestBody?: never;
9101
+ responses: {
9102
+ /** @description OK */
9103
+ 200: {
9104
+ headers: {
9105
+ [name: string]: unknown;
9106
+ };
9107
+ content: {
9108
+ "application/json": components["schemas"]["RenewalTermsResponse"];
9109
+ };
9110
+ };
9111
+ /** @description Not Found */
9112
+ 404: {
9113
+ headers: {
9114
+ [name: string]: unknown;
9115
+ };
9116
+ content?: never;
9117
+ };
9118
+ /** @description Conflict */
9119
+ 409: {
9120
+ headers: {
9121
+ [name: string]: unknown;
9122
+ };
9123
+ content: {
9124
+ "application/problem+json": components["schemas"]["ProblemDetails"];
9125
+ };
9126
+ };
9127
+ /** @description Unprocessable Entity */
9128
+ 422: {
9129
+ headers: {
9130
+ [name: string]: unknown;
9131
+ };
9132
+ content: {
9133
+ "application/problem+json": components["schemas"]["ProblemDetails"];
9134
+ };
9135
+ };
9136
+ };
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
+ };
8905
9223
  ListCustomerPolicyDocuments: {
8906
9224
  parameters: {
8907
9225
  query?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@insurance-broker/api-client",
3
- "version": "1.7.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,