@insurance-broker/api-client 1.0.0 → 1.2.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 +243 -1
  2. package/package.json +1 -1
package/dist/schema.d.ts CHANGED
@@ -1233,6 +1233,41 @@ export interface paths {
1233
1233
  patch?: never;
1234
1234
  trace?: never;
1235
1235
  };
1236
+ "/api/v1/insurer-requests/{id}/outstanding-items": {
1237
+ parameters: {
1238
+ query?: never;
1239
+ header?: never;
1240
+ path?: never;
1241
+ cookie?: never;
1242
+ };
1243
+ /** What one insurer request is or was waiting on, newest first, one page at a time. */
1244
+ get: operations["ListInsurerRequestOutstandingItems"];
1245
+ put?: never;
1246
+ /** Records that an insurer request is waiting on something. */
1247
+ post: operations["RaiseInsurerRequestOutstandingItem"];
1248
+ delete?: never;
1249
+ options?: never;
1250
+ head?: never;
1251
+ patch?: never;
1252
+ trace?: never;
1253
+ };
1254
+ "/api/v1/insurer-requests/{id}/outstanding-items/{itemId}/resolution": {
1255
+ parameters: {
1256
+ query?: never;
1257
+ header?: never;
1258
+ path?: never;
1259
+ cookie?: never;
1260
+ };
1261
+ get?: never;
1262
+ put?: never;
1263
+ /** Records that what an insurer request was waiting on has arrived. */
1264
+ post: operations["ResolveInsurerRequestOutstandingItem"];
1265
+ delete?: never;
1266
+ options?: never;
1267
+ head?: never;
1268
+ patch?: never;
1269
+ trace?: never;
1270
+ };
1236
1271
  "/api/v1/comparison-schemas": {
1237
1272
  parameters: {
1238
1273
  query?: never;
@@ -1521,7 +1556,8 @@ export interface paths {
1521
1556
  /** Lists the caller's own quote requests, newest first. */
1522
1557
  get: operations["ListCustomerQuotes"];
1523
1558
  put?: never;
1524
- post?: never;
1559
+ /** Asks the broker for a quote against one of the caller's submitted forms. */
1560
+ post: operations["RaiseCustomerQuote"];
1525
1561
  delete?: never;
1526
1562
  options?: never;
1527
1563
  head?: never;
@@ -2034,6 +2070,20 @@ export interface components {
2034
2070
  /** Format: date-time */
2035
2071
  recordedAtUtc: string;
2036
2072
  };
2073
+ InsurerRequestOutstandingItemResponse: {
2074
+ /** Format: uuid */
2075
+ id: string;
2076
+ /** Format: uuid */
2077
+ insurerRequestId: string;
2078
+ awaitedFrom: string;
2079
+ description: string;
2080
+ raisedBySubjectId: string;
2081
+ /** Format: date-time */
2082
+ raisedAtUtc: string;
2083
+ resolvedBySubjectId: null | string;
2084
+ /** Format: date-time */
2085
+ resolvedAtUtc: null | string;
2086
+ };
2037
2087
  InsurerResponse: {
2038
2088
  /** Format: uuid */
2039
2089
  id: string;
@@ -2277,6 +2327,10 @@ export interface components {
2277
2327
  items: components["schemas"]["InsurerRequestFollowUpResponse"][];
2278
2328
  nextCursor: null | string;
2279
2329
  };
2330
+ QuotationPageOfInsurerRequestOutstandingItemResponse: {
2331
+ items: components["schemas"]["InsurerRequestOutstandingItemResponse"][];
2332
+ nextCursor: null | string;
2333
+ };
2280
2334
  QuotationPageOfPresentationDecisionResponse: {
2281
2335
  items: components["schemas"]["PresentationDecisionResponse"][];
2282
2336
  nextCursor: null | string;
@@ -2384,6 +2438,10 @@ export interface components {
2384
2438
  /** Format: date-time */
2385
2439
  declinedAtUtc: null | string;
2386
2440
  };
2441
+ RaiseOutstandingItemRequest: {
2442
+ awaitedFrom: null | string;
2443
+ description: null | string;
2444
+ };
2387
2445
  RaiseQuoteRequestRequest: {
2388
2446
  /** Format: uuid */
2389
2447
  formSubmissionId: null | string;
@@ -5785,6 +5843,7 @@ export interface operations {
5785
5843
  ListInsurerRequests: {
5786
5844
  parameters: {
5787
5845
  query?: {
5846
+ outstandingFrom?: string;
5788
5847
  cursor?: string;
5789
5848
  limit?: number | string;
5790
5849
  };
@@ -6109,6 +6168,138 @@ export interface operations {
6109
6168
  };
6110
6169
  };
6111
6170
  };
6171
+ ListInsurerRequestOutstandingItems: {
6172
+ parameters: {
6173
+ query?: {
6174
+ outstanding?: boolean;
6175
+ cursor?: string;
6176
+ limit?: number | string;
6177
+ };
6178
+ header?: never;
6179
+ path: {
6180
+ id: string;
6181
+ };
6182
+ cookie?: never;
6183
+ };
6184
+ requestBody?: never;
6185
+ responses: {
6186
+ /** @description OK */
6187
+ 200: {
6188
+ headers: {
6189
+ [name: string]: unknown;
6190
+ };
6191
+ content: {
6192
+ "application/json": components["schemas"]["QuotationPageOfInsurerRequestOutstandingItemResponse"];
6193
+ };
6194
+ };
6195
+ /** @description Bad Request */
6196
+ 400: {
6197
+ headers: {
6198
+ [name: string]: unknown;
6199
+ };
6200
+ content: {
6201
+ "application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
6202
+ };
6203
+ };
6204
+ /** @description Not Found */
6205
+ 404: {
6206
+ headers: {
6207
+ [name: string]: unknown;
6208
+ };
6209
+ content?: never;
6210
+ };
6211
+ };
6212
+ };
6213
+ RaiseInsurerRequestOutstandingItem: {
6214
+ parameters: {
6215
+ query?: never;
6216
+ header?: never;
6217
+ path: {
6218
+ id: string;
6219
+ };
6220
+ cookie?: never;
6221
+ };
6222
+ requestBody: {
6223
+ content: {
6224
+ "application/json": components["schemas"]["RaiseOutstandingItemRequest"];
6225
+ };
6226
+ };
6227
+ responses: {
6228
+ /** @description Created */
6229
+ 201: {
6230
+ headers: {
6231
+ [name: string]: unknown;
6232
+ };
6233
+ content: {
6234
+ "application/json": components["schemas"]["InsurerRequestOutstandingItemResponse"];
6235
+ };
6236
+ };
6237
+ /** @description Bad Request */
6238
+ 400: {
6239
+ headers: {
6240
+ [name: string]: unknown;
6241
+ };
6242
+ content: {
6243
+ "application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
6244
+ };
6245
+ };
6246
+ /** @description Not Found */
6247
+ 404: {
6248
+ headers: {
6249
+ [name: string]: unknown;
6250
+ };
6251
+ content?: never;
6252
+ };
6253
+ /** @description Conflict */
6254
+ 409: {
6255
+ headers: {
6256
+ [name: string]: unknown;
6257
+ };
6258
+ content: {
6259
+ "application/problem+json": components["schemas"]["ProblemDetails"];
6260
+ };
6261
+ };
6262
+ };
6263
+ };
6264
+ ResolveInsurerRequestOutstandingItem: {
6265
+ parameters: {
6266
+ query?: never;
6267
+ header?: never;
6268
+ path: {
6269
+ id: string;
6270
+ itemId: string;
6271
+ };
6272
+ cookie?: never;
6273
+ };
6274
+ requestBody?: never;
6275
+ responses: {
6276
+ /** @description OK */
6277
+ 200: {
6278
+ headers: {
6279
+ [name: string]: unknown;
6280
+ };
6281
+ content: {
6282
+ "application/json": components["schemas"]["InsurerRequestOutstandingItemResponse"];
6283
+ };
6284
+ };
6285
+ /** @description Not Found */
6286
+ 404: {
6287
+ headers: {
6288
+ [name: string]: unknown;
6289
+ };
6290
+ content?: never;
6291
+ };
6292
+ /** @description Conflict */
6293
+ 409: {
6294
+ headers: {
6295
+ [name: string]: unknown;
6296
+ };
6297
+ content: {
6298
+ "application/problem+json": components["schemas"]["ProblemDetails"];
6299
+ };
6300
+ };
6301
+ };
6302
+ };
6112
6303
  ListComparisonSchemaVersions: {
6113
6304
  parameters: {
6114
6305
  query?: {
@@ -7100,6 +7291,57 @@ export interface operations {
7100
7291
  };
7101
7292
  };
7102
7293
  };
7294
+ RaiseCustomerQuote: {
7295
+ parameters: {
7296
+ query?: never;
7297
+ header?: never;
7298
+ path?: never;
7299
+ cookie?: never;
7300
+ };
7301
+ requestBody: {
7302
+ content: {
7303
+ "application/json": components["schemas"]["RaiseQuoteRequestRequest"];
7304
+ };
7305
+ };
7306
+ responses: {
7307
+ /** @description Created */
7308
+ 201: {
7309
+ headers: {
7310
+ [name: string]: unknown;
7311
+ };
7312
+ content: {
7313
+ "application/json": components["schemas"]["CustomerQuoteResponse"];
7314
+ };
7315
+ };
7316
+ /** @description Bad Request */
7317
+ 400: {
7318
+ headers: {
7319
+ [name: string]: unknown;
7320
+ };
7321
+ content: {
7322
+ "application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
7323
+ };
7324
+ };
7325
+ /** @description Conflict */
7326
+ 409: {
7327
+ headers: {
7328
+ [name: string]: unknown;
7329
+ };
7330
+ content: {
7331
+ "application/problem+json": components["schemas"]["ProblemDetails"];
7332
+ };
7333
+ };
7334
+ /** @description Unprocessable Entity */
7335
+ 422: {
7336
+ headers: {
7337
+ [name: string]: unknown;
7338
+ };
7339
+ content: {
7340
+ "application/problem+json": components["schemas"]["ProblemDetails"];
7341
+ };
7342
+ };
7343
+ };
7344
+ };
7103
7345
  GetCustomerQuote: {
7104
7346
  parameters: {
7105
7347
  query?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@insurance-broker/api-client",
3
- "version": "1.0.0",
3
+ "version": "1.2.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,