@insurance-broker/api-client 5.53.0 → 5.56.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 +346 -53
  2. package/package.json +1 -1
package/dist/schema.d.ts CHANGED
@@ -3091,6 +3091,8 @@ export interface paths {
3091
3091
  * Read what has happened on a customer's relationship with the broker
3092
3092
  * @description CRM-008. Policies, claims, payments, quotes and form submissions as their modules report them, with the notes, logged calls and emails, shares and next actions staff recorded here. Newest first. Each row says what kind of thing happened and when. It never carries a note's words: read those through the notes route, which needs `crm.customer-notes.read`.
3093
3093
  *
3094
+ * A row about another module's record carries `recordKind` and `recordId`, a pointer to the record it describes: `Policy` (`/policies/{id}`), `Claim` (`/claims/{id}`), `Payment` (`/payments/{id}`), `QuoteRequest` (`/quote-requests/{id}`), `FormSubmission` (`/form-submissions/{id}`) or `Renewal` (`/renewals/{id}`). New kinds may be added: show a row whose kind you do not know without a link. Opening the record needs that route's own permission. Both are null on CRM's own rows, on rows recorded before this pointer existed, and where the activity had no single record.
3095
+ *
3094
3096
  * The timeline begins when this release was deployed; earlier activity is not on it.
3095
3097
  *
3096
3098
  * Paged by cursor (ADR-0031): pass `nextCursor` back as `cursor` until it is null. A cursor this list did not issue is a `400`.
@@ -5070,6 +5072,109 @@ export interface paths {
5070
5072
  patch?: never;
5071
5073
  trace?: never;
5072
5074
  };
5075
+ "/api/v1/policies/outstanding-items/overdue": {
5076
+ parameters: {
5077
+ query?: never;
5078
+ header?: never;
5079
+ path?: never;
5080
+ cookie?: never;
5081
+ };
5082
+ /**
5083
+ * Read what is overdue across this broker's policies
5084
+ * @description POL-007. Every outstanding item, on any of this broker's policies, that has not been satisfied and was due before today. **Most overdue first**: due date ascending, ties broken by identifier.
5085
+ *
5086
+ * `awaitedFrom` narrows it to `Insurer` or `Customer`, so the insurer chasing and the customer chasing can be worked separately.
5087
+ *
5088
+ * **Overdue is computed, never stored.** Today is UTC's day, read on each request and reported as `asOf` on every page. A walk that crosses midnight loses nothing: the items that become overdue at midnight are due on the latest day in the list, so they join the end of the walk.
5089
+ *
5090
+ * Paged by cursor (ADR-0031): pass `nextCursor` back as `cursor` until it is null. `limit` is 25 by default and at most 100. A cursor this list did not issue is a `400`.
5091
+ */
5092
+ get: operations["ListOverduePolicyOutstandingItems"];
5093
+ put?: never;
5094
+ post?: never;
5095
+ delete?: never;
5096
+ options?: never;
5097
+ head?: never;
5098
+ patch?: never;
5099
+ trace?: never;
5100
+ };
5101
+ "/api/v1/policy-documents/download-links/{token}": {
5102
+ parameters: {
5103
+ query?: never;
5104
+ header?: never;
5105
+ path?: never;
5106
+ cookie?: never;
5107
+ };
5108
+ /** Redeems a short-lived download link and streams the policy document it names. */
5109
+ get: operations["RedeemPolicyDocumentDownloadLink"];
5110
+ put?: never;
5111
+ post?: never;
5112
+ delete?: never;
5113
+ options?: never;
5114
+ head?: never;
5115
+ patch?: never;
5116
+ trace?: never;
5117
+ };
5118
+ "/api/v1/policies/{id}/outstanding-items": {
5119
+ parameters: {
5120
+ query?: never;
5121
+ header?: never;
5122
+ path?: never;
5123
+ cookie?: never;
5124
+ };
5125
+ /**
5126
+ * Read what a policy is or was waiting on
5127
+ * @description POL-007. Everything recorded as outstanding on this policy, newest raised first.
5128
+ *
5129
+ * `outstanding=true` narrows it to what is still being waited on and `outstanding=false` to what has been satisfied. Absent, the whole history comes back. Not paged: the set is bounded by how many things one policy waited on.
5130
+ *
5131
+ * **Staff only.** Nothing here is shown to the customer.
5132
+ */
5133
+ get: operations["ListPolicyOutstandingItems"];
5134
+ put?: never;
5135
+ /**
5136
+ * Record that a policy is waiting on the insurer or the customer
5137
+ * @description POL-007. Records what this policy is waiting on, which side owes it, and the day it is due.
5138
+ *
5139
+ * **This creates a row and never changes the policy's status.** A policy waiting on a certificate is still `Active`.
5140
+ *
5141
+ * **What is outstanding is your own words**, not a code from a list. The side is `Insurer` or `Customer`. `dueOn` is required and may be in the past.
5142
+ *
5143
+ * **Nothing about an item can be edited afterwards.** A wrong item is satisfied and the right one raised; a moved deadline is a new item, because the old one was missed.
5144
+ *
5145
+ * Refused with 409 when the policy has been renewed: its successor is where the work is.
5146
+ */
5147
+ post: operations["RaisePolicyOutstandingItem"];
5148
+ delete?: never;
5149
+ options?: never;
5150
+ head?: never;
5151
+ patch?: never;
5152
+ trace?: never;
5153
+ };
5154
+ "/api/v1/policies/{id}/outstanding-items/{itemId}/satisfaction": {
5155
+ parameters: {
5156
+ query?: never;
5157
+ header?: never;
5158
+ path?: never;
5159
+ cookie?: never;
5160
+ };
5161
+ get?: never;
5162
+ put?: never;
5163
+ /**
5164
+ * Record that what a policy was waiting on has arrived
5165
+ * @description POL-007. Marks one outstanding item satisfied, naming you and the instant.
5166
+ *
5167
+ * **Allowed after the policy has been renewed**: something can arrive late, and the record may not be made to deny it.
5168
+ *
5169
+ * A second satisfaction is refused with 409 naming who dealt with it, and so is the second of two racing each other.
5170
+ */
5171
+ post: operations["SatisfyPolicyOutstandingItem"];
5172
+ delete?: never;
5173
+ options?: never;
5174
+ head?: never;
5175
+ patch?: never;
5176
+ trace?: never;
5177
+ };
5073
5178
  "/api/v1/policies/{id}/documents/{kind}": {
5074
5179
  parameters: {
5075
5180
  query?: never;
@@ -5866,23 +5971,6 @@ export interface paths {
5866
5971
  patch?: never;
5867
5972
  trace?: never;
5868
5973
  };
5869
- "/api/v1/policy-documents/download-links/{token}": {
5870
- parameters: {
5871
- query?: never;
5872
- header?: never;
5873
- path?: never;
5874
- cookie?: never;
5875
- };
5876
- /** Redeems a short-lived download link and streams the policy document it names. */
5877
- get: operations["RedeemPolicyDocumentDownloadLink"];
5878
- put?: never;
5879
- post?: never;
5880
- delete?: never;
5881
- options?: never;
5882
- head?: never;
5883
- patch?: never;
5884
- trace?: never;
5885
- };
5886
5974
  "/api/v1/quote-requests": {
5887
5975
  parameters: {
5888
5976
  query?: never;
@@ -8145,6 +8233,9 @@ export interface components {
8145
8233
  referenceId: null | string;
8146
8234
  /** Format: date-time */
8147
8235
  occurredAtUtc: string;
8236
+ recordKind: null | string;
8237
+ /** Format: uuid */
8238
+ recordId: null | string;
8148
8239
  };
8149
8240
  CustomerTimelinePage: {
8150
8241
  items: components["schemas"]["CustomerTimelineEntryResponse"][];
@@ -9279,6 +9370,29 @@ export interface components {
9279
9370
  /** Format: int32 */
9280
9371
  attempts: number;
9281
9372
  };
9373
+ OverduePolicyOutstandingItemPage: {
9374
+ items: components["schemas"]["OverduePolicyOutstandingItemResponse"][];
9375
+ nextCursor: null | string;
9376
+ /** Format: date */
9377
+ asOf: string;
9378
+ };
9379
+ OverduePolicyOutstandingItemResponse: {
9380
+ /** Format: uuid */
9381
+ id: string;
9382
+ /** Format: uuid */
9383
+ policyId: string;
9384
+ /** Format: uuid */
9385
+ customerId: string;
9386
+ awaitedFrom: string;
9387
+ description: string;
9388
+ /** Format: date */
9389
+ dueOn: string;
9390
+ raisedBySubjectId: string;
9391
+ /** Format: date-time */
9392
+ raisedAtUtc: string;
9393
+ productName: null | string;
9394
+ insurerReference: null | string;
9395
+ };
9282
9396
  OverrideEntitlementRequest: {
9283
9397
  featureKey: null | string;
9284
9398
  value: null | string;
@@ -9659,6 +9773,25 @@ export interface components {
9659
9773
  PolicyImportUpload: {
9660
9774
  file: components["schemas"]["IFormFile"];
9661
9775
  };
9776
+ PolicyOutstandingItemResponse: {
9777
+ /** Format: uuid */
9778
+ id: string;
9779
+ /** Format: uuid */
9780
+ policyId: string;
9781
+ /** Format: uuid */
9782
+ customerId: string;
9783
+ awaitedFrom: string;
9784
+ description: string;
9785
+ /** Format: date */
9786
+ dueOn: string;
9787
+ raisedBySubjectId: string;
9788
+ /** Format: date-time */
9789
+ raisedAtUtc: string;
9790
+ satisfiedBySubjectId: null | string;
9791
+ /** Format: date-time */
9792
+ satisfiedAtUtc: null | string;
9793
+ isOutstanding: boolean;
9794
+ };
9662
9795
  PolicyPage: {
9663
9796
  items: components["schemas"]["PolicyResponse"][];
9664
9797
  nextCursor: null | string;
@@ -10058,6 +10191,12 @@ export interface components {
10058
10191
  awaitedFrom: null | string;
10059
10192
  description: null | string;
10060
10193
  };
10194
+ RaisePolicyOutstandingItemRequest: {
10195
+ awaitedFrom: string;
10196
+ description: string;
10197
+ /** Format: date */
10198
+ dueOn: null | string;
10199
+ };
10061
10200
  RaiseQuoteRequestRequest: {
10062
10201
  /** Format: uuid */
10063
10202
  formSubmissionId: null | string;
@@ -23153,6 +23292,196 @@ export interface operations {
23153
23292
  };
23154
23293
  };
23155
23294
  };
23295
+ ListOverduePolicyOutstandingItems: {
23296
+ parameters: {
23297
+ query?: {
23298
+ awaitedFrom?: string;
23299
+ cursor?: string;
23300
+ limit?: number | string;
23301
+ };
23302
+ header?: never;
23303
+ path?: never;
23304
+ cookie?: never;
23305
+ };
23306
+ requestBody?: never;
23307
+ responses: {
23308
+ /** @description OK */
23309
+ 200: {
23310
+ headers: {
23311
+ [name: string]: unknown;
23312
+ };
23313
+ content: {
23314
+ "application/json": components["schemas"]["OverduePolicyOutstandingItemPage"];
23315
+ };
23316
+ };
23317
+ /** @description Bad Request */
23318
+ 400: {
23319
+ headers: {
23320
+ [name: string]: unknown;
23321
+ };
23322
+ content: {
23323
+ "application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
23324
+ };
23325
+ };
23326
+ };
23327
+ };
23328
+ RedeemPolicyDocumentDownloadLink: {
23329
+ parameters: {
23330
+ query?: never;
23331
+ header?: never;
23332
+ path: {
23333
+ token: string;
23334
+ };
23335
+ cookie?: never;
23336
+ };
23337
+ requestBody?: never;
23338
+ responses: {
23339
+ /** @description OK */
23340
+ 200: {
23341
+ headers: {
23342
+ [name: string]: unknown;
23343
+ };
23344
+ content?: never;
23345
+ };
23346
+ /** @description Not Found */
23347
+ 404: {
23348
+ headers: {
23349
+ [name: string]: unknown;
23350
+ };
23351
+ content?: never;
23352
+ };
23353
+ /** @description Conflict */
23354
+ 409: {
23355
+ headers: {
23356
+ [name: string]: unknown;
23357
+ };
23358
+ content: {
23359
+ "application/problem+json": components["schemas"]["ProblemDetails"];
23360
+ };
23361
+ };
23362
+ };
23363
+ };
23364
+ ListPolicyOutstandingItems: {
23365
+ parameters: {
23366
+ query?: {
23367
+ outstanding?: boolean;
23368
+ };
23369
+ header?: never;
23370
+ path: {
23371
+ id: string;
23372
+ };
23373
+ cookie?: never;
23374
+ };
23375
+ requestBody?: never;
23376
+ responses: {
23377
+ /** @description OK */
23378
+ 200: {
23379
+ headers: {
23380
+ [name: string]: unknown;
23381
+ };
23382
+ content: {
23383
+ "application/json": components["schemas"]["PolicyOutstandingItemResponse"][];
23384
+ };
23385
+ };
23386
+ /** @description Not Found */
23387
+ 404: {
23388
+ headers: {
23389
+ [name: string]: unknown;
23390
+ };
23391
+ content?: never;
23392
+ };
23393
+ };
23394
+ };
23395
+ RaisePolicyOutstandingItem: {
23396
+ parameters: {
23397
+ query?: never;
23398
+ header?: never;
23399
+ path: {
23400
+ id: string;
23401
+ };
23402
+ cookie?: never;
23403
+ };
23404
+ requestBody: {
23405
+ content: {
23406
+ "application/json": components["schemas"]["RaisePolicyOutstandingItemRequest"];
23407
+ };
23408
+ };
23409
+ responses: {
23410
+ /** @description Created */
23411
+ 201: {
23412
+ headers: {
23413
+ [name: string]: unknown;
23414
+ };
23415
+ content: {
23416
+ "application/json": components["schemas"]["PolicyOutstandingItemResponse"];
23417
+ };
23418
+ };
23419
+ /** @description Bad Request */
23420
+ 400: {
23421
+ headers: {
23422
+ [name: string]: unknown;
23423
+ };
23424
+ content: {
23425
+ "application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
23426
+ };
23427
+ };
23428
+ /** @description Not Found */
23429
+ 404: {
23430
+ headers: {
23431
+ [name: string]: unknown;
23432
+ };
23433
+ content?: never;
23434
+ };
23435
+ /** @description Conflict. A type of urn:brokerplatform:problem:concurrency-conflict means someone else changed the record first and nothing was written: read it again and decide again. Any other type is a conflict this operation decided itself, and retrying it unchanged will not help. */
23436
+ 409: {
23437
+ headers: {
23438
+ [name: string]: unknown;
23439
+ };
23440
+ content: {
23441
+ "application/problem+json": components["schemas"]["ConcurrencyConflictProblem"] | components["schemas"]["ProblemDetails"];
23442
+ };
23443
+ };
23444
+ };
23445
+ };
23446
+ SatisfyPolicyOutstandingItem: {
23447
+ parameters: {
23448
+ query?: never;
23449
+ header?: never;
23450
+ path: {
23451
+ id: string;
23452
+ itemId: string;
23453
+ };
23454
+ cookie?: never;
23455
+ };
23456
+ requestBody?: never;
23457
+ responses: {
23458
+ /** @description OK */
23459
+ 200: {
23460
+ headers: {
23461
+ [name: string]: unknown;
23462
+ };
23463
+ content: {
23464
+ "application/json": components["schemas"]["PolicyOutstandingItemResponse"];
23465
+ };
23466
+ };
23467
+ /** @description Not Found */
23468
+ 404: {
23469
+ headers: {
23470
+ [name: string]: unknown;
23471
+ };
23472
+ content?: never;
23473
+ };
23474
+ /** @description Conflict. A type of urn:brokerplatform:problem:concurrency-conflict means someone else changed the record first and nothing was written: read it again and decide again. Any other type is a conflict this operation decided itself, and retrying it unchanged will not help. */
23475
+ 409: {
23476
+ headers: {
23477
+ [name: string]: unknown;
23478
+ };
23479
+ content: {
23480
+ "application/problem+json": components["schemas"]["ConcurrencyConflictProblem"] | components["schemas"]["ProblemDetails"];
23481
+ };
23482
+ };
23483
+ };
23484
+ };
23156
23485
  UploadPolicyDocument: {
23157
23486
  parameters: {
23158
23487
  query?: never;
@@ -24872,42 +25201,6 @@ export interface operations {
24872
25201
  };
24873
25202
  };
24874
25203
  };
24875
- RedeemPolicyDocumentDownloadLink: {
24876
- parameters: {
24877
- query?: never;
24878
- header?: never;
24879
- path: {
24880
- token: string;
24881
- };
24882
- cookie?: never;
24883
- };
24884
- requestBody?: never;
24885
- responses: {
24886
- /** @description OK */
24887
- 200: {
24888
- headers: {
24889
- [name: string]: unknown;
24890
- };
24891
- content?: never;
24892
- };
24893
- /** @description Not Found */
24894
- 404: {
24895
- headers: {
24896
- [name: string]: unknown;
24897
- };
24898
- content?: never;
24899
- };
24900
- /** @description Conflict */
24901
- 409: {
24902
- headers: {
24903
- [name: string]: unknown;
24904
- };
24905
- content: {
24906
- "application/problem+json": components["schemas"]["ProblemDetails"];
24907
- };
24908
- };
24909
- };
24910
- };
24911
25204
  ListQuoteRequests: {
24912
25205
  parameters: {
24913
25206
  query?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@insurance-broker/api-client",
3
- "version": "5.53.0",
3
+ "version": "5.56.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,