@insurance-broker/api-client 5.53.0 → 5.54.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.
- package/dist/schema.d.ts +341 -53
- package/package.json +1 -1
package/dist/schema.d.ts
CHANGED
|
@@ -5070,6 +5070,109 @@ export interface paths {
|
|
|
5070
5070
|
patch?: never;
|
|
5071
5071
|
trace?: never;
|
|
5072
5072
|
};
|
|
5073
|
+
"/api/v1/policies/outstanding-items/overdue": {
|
|
5074
|
+
parameters: {
|
|
5075
|
+
query?: never;
|
|
5076
|
+
header?: never;
|
|
5077
|
+
path?: never;
|
|
5078
|
+
cookie?: never;
|
|
5079
|
+
};
|
|
5080
|
+
/**
|
|
5081
|
+
* Read what is overdue across this broker's policies
|
|
5082
|
+
* @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.
|
|
5083
|
+
*
|
|
5084
|
+
* `awaitedFrom` narrows it to `Insurer` or `Customer`, so the insurer chasing and the customer chasing can be worked separately.
|
|
5085
|
+
*
|
|
5086
|
+
* **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.
|
|
5087
|
+
*
|
|
5088
|
+
* 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`.
|
|
5089
|
+
*/
|
|
5090
|
+
get: operations["ListOverduePolicyOutstandingItems"];
|
|
5091
|
+
put?: never;
|
|
5092
|
+
post?: never;
|
|
5093
|
+
delete?: never;
|
|
5094
|
+
options?: never;
|
|
5095
|
+
head?: never;
|
|
5096
|
+
patch?: never;
|
|
5097
|
+
trace?: never;
|
|
5098
|
+
};
|
|
5099
|
+
"/api/v1/policy-documents/download-links/{token}": {
|
|
5100
|
+
parameters: {
|
|
5101
|
+
query?: never;
|
|
5102
|
+
header?: never;
|
|
5103
|
+
path?: never;
|
|
5104
|
+
cookie?: never;
|
|
5105
|
+
};
|
|
5106
|
+
/** Redeems a short-lived download link and streams the policy document it names. */
|
|
5107
|
+
get: operations["RedeemPolicyDocumentDownloadLink"];
|
|
5108
|
+
put?: never;
|
|
5109
|
+
post?: never;
|
|
5110
|
+
delete?: never;
|
|
5111
|
+
options?: never;
|
|
5112
|
+
head?: never;
|
|
5113
|
+
patch?: never;
|
|
5114
|
+
trace?: never;
|
|
5115
|
+
};
|
|
5116
|
+
"/api/v1/policies/{id}/outstanding-items": {
|
|
5117
|
+
parameters: {
|
|
5118
|
+
query?: never;
|
|
5119
|
+
header?: never;
|
|
5120
|
+
path?: never;
|
|
5121
|
+
cookie?: never;
|
|
5122
|
+
};
|
|
5123
|
+
/**
|
|
5124
|
+
* Read what a policy is or was waiting on
|
|
5125
|
+
* @description POL-007. Everything recorded as outstanding on this policy, newest raised first.
|
|
5126
|
+
*
|
|
5127
|
+
* `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.
|
|
5128
|
+
*
|
|
5129
|
+
* **Staff only.** Nothing here is shown to the customer.
|
|
5130
|
+
*/
|
|
5131
|
+
get: operations["ListPolicyOutstandingItems"];
|
|
5132
|
+
put?: never;
|
|
5133
|
+
/**
|
|
5134
|
+
* Record that a policy is waiting on the insurer or the customer
|
|
5135
|
+
* @description POL-007. Records what this policy is waiting on, which side owes it, and the day it is due.
|
|
5136
|
+
*
|
|
5137
|
+
* **This creates a row and never changes the policy's status.** A policy waiting on a certificate is still `Active`.
|
|
5138
|
+
*
|
|
5139
|
+
* **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.
|
|
5140
|
+
*
|
|
5141
|
+
* **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.
|
|
5142
|
+
*
|
|
5143
|
+
* Refused with 409 when the policy has been renewed: its successor is where the work is.
|
|
5144
|
+
*/
|
|
5145
|
+
post: operations["RaisePolicyOutstandingItem"];
|
|
5146
|
+
delete?: never;
|
|
5147
|
+
options?: never;
|
|
5148
|
+
head?: never;
|
|
5149
|
+
patch?: never;
|
|
5150
|
+
trace?: never;
|
|
5151
|
+
};
|
|
5152
|
+
"/api/v1/policies/{id}/outstanding-items/{itemId}/satisfaction": {
|
|
5153
|
+
parameters: {
|
|
5154
|
+
query?: never;
|
|
5155
|
+
header?: never;
|
|
5156
|
+
path?: never;
|
|
5157
|
+
cookie?: never;
|
|
5158
|
+
};
|
|
5159
|
+
get?: never;
|
|
5160
|
+
put?: never;
|
|
5161
|
+
/**
|
|
5162
|
+
* Record that what a policy was waiting on has arrived
|
|
5163
|
+
* @description POL-007. Marks one outstanding item satisfied, naming you and the instant.
|
|
5164
|
+
*
|
|
5165
|
+
* **Allowed after the policy has been renewed**: something can arrive late, and the record may not be made to deny it.
|
|
5166
|
+
*
|
|
5167
|
+
* A second satisfaction is refused with 409 naming who dealt with it, and so is the second of two racing each other.
|
|
5168
|
+
*/
|
|
5169
|
+
post: operations["SatisfyPolicyOutstandingItem"];
|
|
5170
|
+
delete?: never;
|
|
5171
|
+
options?: never;
|
|
5172
|
+
head?: never;
|
|
5173
|
+
patch?: never;
|
|
5174
|
+
trace?: never;
|
|
5175
|
+
};
|
|
5073
5176
|
"/api/v1/policies/{id}/documents/{kind}": {
|
|
5074
5177
|
parameters: {
|
|
5075
5178
|
query?: never;
|
|
@@ -5866,23 +5969,6 @@ export interface paths {
|
|
|
5866
5969
|
patch?: never;
|
|
5867
5970
|
trace?: never;
|
|
5868
5971
|
};
|
|
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
5972
|
"/api/v1/quote-requests": {
|
|
5887
5973
|
parameters: {
|
|
5888
5974
|
query?: never;
|
|
@@ -9279,6 +9365,29 @@ export interface components {
|
|
|
9279
9365
|
/** Format: int32 */
|
|
9280
9366
|
attempts: number;
|
|
9281
9367
|
};
|
|
9368
|
+
OverduePolicyOutstandingItemPage: {
|
|
9369
|
+
items: components["schemas"]["OverduePolicyOutstandingItemResponse"][];
|
|
9370
|
+
nextCursor: null | string;
|
|
9371
|
+
/** Format: date */
|
|
9372
|
+
asOf: string;
|
|
9373
|
+
};
|
|
9374
|
+
OverduePolicyOutstandingItemResponse: {
|
|
9375
|
+
/** Format: uuid */
|
|
9376
|
+
id: string;
|
|
9377
|
+
/** Format: uuid */
|
|
9378
|
+
policyId: string;
|
|
9379
|
+
/** Format: uuid */
|
|
9380
|
+
customerId: string;
|
|
9381
|
+
awaitedFrom: string;
|
|
9382
|
+
description: string;
|
|
9383
|
+
/** Format: date */
|
|
9384
|
+
dueOn: string;
|
|
9385
|
+
raisedBySubjectId: string;
|
|
9386
|
+
/** Format: date-time */
|
|
9387
|
+
raisedAtUtc: string;
|
|
9388
|
+
productName: null | string;
|
|
9389
|
+
insurerReference: null | string;
|
|
9390
|
+
};
|
|
9282
9391
|
OverrideEntitlementRequest: {
|
|
9283
9392
|
featureKey: null | string;
|
|
9284
9393
|
value: null | string;
|
|
@@ -9659,6 +9768,25 @@ export interface components {
|
|
|
9659
9768
|
PolicyImportUpload: {
|
|
9660
9769
|
file: components["schemas"]["IFormFile"];
|
|
9661
9770
|
};
|
|
9771
|
+
PolicyOutstandingItemResponse: {
|
|
9772
|
+
/** Format: uuid */
|
|
9773
|
+
id: string;
|
|
9774
|
+
/** Format: uuid */
|
|
9775
|
+
policyId: string;
|
|
9776
|
+
/** Format: uuid */
|
|
9777
|
+
customerId: string;
|
|
9778
|
+
awaitedFrom: string;
|
|
9779
|
+
description: string;
|
|
9780
|
+
/** Format: date */
|
|
9781
|
+
dueOn: string;
|
|
9782
|
+
raisedBySubjectId: string;
|
|
9783
|
+
/** Format: date-time */
|
|
9784
|
+
raisedAtUtc: string;
|
|
9785
|
+
satisfiedBySubjectId: null | string;
|
|
9786
|
+
/** Format: date-time */
|
|
9787
|
+
satisfiedAtUtc: null | string;
|
|
9788
|
+
isOutstanding: boolean;
|
|
9789
|
+
};
|
|
9662
9790
|
PolicyPage: {
|
|
9663
9791
|
items: components["schemas"]["PolicyResponse"][];
|
|
9664
9792
|
nextCursor: null | string;
|
|
@@ -10058,6 +10186,12 @@ export interface components {
|
|
|
10058
10186
|
awaitedFrom: null | string;
|
|
10059
10187
|
description: null | string;
|
|
10060
10188
|
};
|
|
10189
|
+
RaisePolicyOutstandingItemRequest: {
|
|
10190
|
+
awaitedFrom: string;
|
|
10191
|
+
description: string;
|
|
10192
|
+
/** Format: date */
|
|
10193
|
+
dueOn: null | string;
|
|
10194
|
+
};
|
|
10061
10195
|
RaiseQuoteRequestRequest: {
|
|
10062
10196
|
/** Format: uuid */
|
|
10063
10197
|
formSubmissionId: null | string;
|
|
@@ -23153,6 +23287,196 @@ export interface operations {
|
|
|
23153
23287
|
};
|
|
23154
23288
|
};
|
|
23155
23289
|
};
|
|
23290
|
+
ListOverduePolicyOutstandingItems: {
|
|
23291
|
+
parameters: {
|
|
23292
|
+
query?: {
|
|
23293
|
+
awaitedFrom?: string;
|
|
23294
|
+
cursor?: string;
|
|
23295
|
+
limit?: number | string;
|
|
23296
|
+
};
|
|
23297
|
+
header?: never;
|
|
23298
|
+
path?: never;
|
|
23299
|
+
cookie?: never;
|
|
23300
|
+
};
|
|
23301
|
+
requestBody?: never;
|
|
23302
|
+
responses: {
|
|
23303
|
+
/** @description OK */
|
|
23304
|
+
200: {
|
|
23305
|
+
headers: {
|
|
23306
|
+
[name: string]: unknown;
|
|
23307
|
+
};
|
|
23308
|
+
content: {
|
|
23309
|
+
"application/json": components["schemas"]["OverduePolicyOutstandingItemPage"];
|
|
23310
|
+
};
|
|
23311
|
+
};
|
|
23312
|
+
/** @description Bad Request */
|
|
23313
|
+
400: {
|
|
23314
|
+
headers: {
|
|
23315
|
+
[name: string]: unknown;
|
|
23316
|
+
};
|
|
23317
|
+
content: {
|
|
23318
|
+
"application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
|
|
23319
|
+
};
|
|
23320
|
+
};
|
|
23321
|
+
};
|
|
23322
|
+
};
|
|
23323
|
+
RedeemPolicyDocumentDownloadLink: {
|
|
23324
|
+
parameters: {
|
|
23325
|
+
query?: never;
|
|
23326
|
+
header?: never;
|
|
23327
|
+
path: {
|
|
23328
|
+
token: string;
|
|
23329
|
+
};
|
|
23330
|
+
cookie?: never;
|
|
23331
|
+
};
|
|
23332
|
+
requestBody?: never;
|
|
23333
|
+
responses: {
|
|
23334
|
+
/** @description OK */
|
|
23335
|
+
200: {
|
|
23336
|
+
headers: {
|
|
23337
|
+
[name: string]: unknown;
|
|
23338
|
+
};
|
|
23339
|
+
content?: never;
|
|
23340
|
+
};
|
|
23341
|
+
/** @description Not Found */
|
|
23342
|
+
404: {
|
|
23343
|
+
headers: {
|
|
23344
|
+
[name: string]: unknown;
|
|
23345
|
+
};
|
|
23346
|
+
content?: never;
|
|
23347
|
+
};
|
|
23348
|
+
/** @description Conflict */
|
|
23349
|
+
409: {
|
|
23350
|
+
headers: {
|
|
23351
|
+
[name: string]: unknown;
|
|
23352
|
+
};
|
|
23353
|
+
content: {
|
|
23354
|
+
"application/problem+json": components["schemas"]["ProblemDetails"];
|
|
23355
|
+
};
|
|
23356
|
+
};
|
|
23357
|
+
};
|
|
23358
|
+
};
|
|
23359
|
+
ListPolicyOutstandingItems: {
|
|
23360
|
+
parameters: {
|
|
23361
|
+
query?: {
|
|
23362
|
+
outstanding?: boolean;
|
|
23363
|
+
};
|
|
23364
|
+
header?: never;
|
|
23365
|
+
path: {
|
|
23366
|
+
id: string;
|
|
23367
|
+
};
|
|
23368
|
+
cookie?: never;
|
|
23369
|
+
};
|
|
23370
|
+
requestBody?: never;
|
|
23371
|
+
responses: {
|
|
23372
|
+
/** @description OK */
|
|
23373
|
+
200: {
|
|
23374
|
+
headers: {
|
|
23375
|
+
[name: string]: unknown;
|
|
23376
|
+
};
|
|
23377
|
+
content: {
|
|
23378
|
+
"application/json": components["schemas"]["PolicyOutstandingItemResponse"][];
|
|
23379
|
+
};
|
|
23380
|
+
};
|
|
23381
|
+
/** @description Not Found */
|
|
23382
|
+
404: {
|
|
23383
|
+
headers: {
|
|
23384
|
+
[name: string]: unknown;
|
|
23385
|
+
};
|
|
23386
|
+
content?: never;
|
|
23387
|
+
};
|
|
23388
|
+
};
|
|
23389
|
+
};
|
|
23390
|
+
RaisePolicyOutstandingItem: {
|
|
23391
|
+
parameters: {
|
|
23392
|
+
query?: never;
|
|
23393
|
+
header?: never;
|
|
23394
|
+
path: {
|
|
23395
|
+
id: string;
|
|
23396
|
+
};
|
|
23397
|
+
cookie?: never;
|
|
23398
|
+
};
|
|
23399
|
+
requestBody: {
|
|
23400
|
+
content: {
|
|
23401
|
+
"application/json": components["schemas"]["RaisePolicyOutstandingItemRequest"];
|
|
23402
|
+
};
|
|
23403
|
+
};
|
|
23404
|
+
responses: {
|
|
23405
|
+
/** @description Created */
|
|
23406
|
+
201: {
|
|
23407
|
+
headers: {
|
|
23408
|
+
[name: string]: unknown;
|
|
23409
|
+
};
|
|
23410
|
+
content: {
|
|
23411
|
+
"application/json": components["schemas"]["PolicyOutstandingItemResponse"];
|
|
23412
|
+
};
|
|
23413
|
+
};
|
|
23414
|
+
/** @description Bad Request */
|
|
23415
|
+
400: {
|
|
23416
|
+
headers: {
|
|
23417
|
+
[name: string]: unknown;
|
|
23418
|
+
};
|
|
23419
|
+
content: {
|
|
23420
|
+
"application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
|
|
23421
|
+
};
|
|
23422
|
+
};
|
|
23423
|
+
/** @description Not Found */
|
|
23424
|
+
404: {
|
|
23425
|
+
headers: {
|
|
23426
|
+
[name: string]: unknown;
|
|
23427
|
+
};
|
|
23428
|
+
content?: never;
|
|
23429
|
+
};
|
|
23430
|
+
/** @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. */
|
|
23431
|
+
409: {
|
|
23432
|
+
headers: {
|
|
23433
|
+
[name: string]: unknown;
|
|
23434
|
+
};
|
|
23435
|
+
content: {
|
|
23436
|
+
"application/problem+json": components["schemas"]["ConcurrencyConflictProblem"] | components["schemas"]["ProblemDetails"];
|
|
23437
|
+
};
|
|
23438
|
+
};
|
|
23439
|
+
};
|
|
23440
|
+
};
|
|
23441
|
+
SatisfyPolicyOutstandingItem: {
|
|
23442
|
+
parameters: {
|
|
23443
|
+
query?: never;
|
|
23444
|
+
header?: never;
|
|
23445
|
+
path: {
|
|
23446
|
+
id: string;
|
|
23447
|
+
itemId: string;
|
|
23448
|
+
};
|
|
23449
|
+
cookie?: never;
|
|
23450
|
+
};
|
|
23451
|
+
requestBody?: never;
|
|
23452
|
+
responses: {
|
|
23453
|
+
/** @description OK */
|
|
23454
|
+
200: {
|
|
23455
|
+
headers: {
|
|
23456
|
+
[name: string]: unknown;
|
|
23457
|
+
};
|
|
23458
|
+
content: {
|
|
23459
|
+
"application/json": components["schemas"]["PolicyOutstandingItemResponse"];
|
|
23460
|
+
};
|
|
23461
|
+
};
|
|
23462
|
+
/** @description Not Found */
|
|
23463
|
+
404: {
|
|
23464
|
+
headers: {
|
|
23465
|
+
[name: string]: unknown;
|
|
23466
|
+
};
|
|
23467
|
+
content?: never;
|
|
23468
|
+
};
|
|
23469
|
+
/** @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. */
|
|
23470
|
+
409: {
|
|
23471
|
+
headers: {
|
|
23472
|
+
[name: string]: unknown;
|
|
23473
|
+
};
|
|
23474
|
+
content: {
|
|
23475
|
+
"application/problem+json": components["schemas"]["ConcurrencyConflictProblem"] | components["schemas"]["ProblemDetails"];
|
|
23476
|
+
};
|
|
23477
|
+
};
|
|
23478
|
+
};
|
|
23479
|
+
};
|
|
23156
23480
|
UploadPolicyDocument: {
|
|
23157
23481
|
parameters: {
|
|
23158
23482
|
query?: never;
|
|
@@ -24872,42 +25196,6 @@ export interface operations {
|
|
|
24872
25196
|
};
|
|
24873
25197
|
};
|
|
24874
25198
|
};
|
|
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
25199
|
ListQuoteRequests: {
|
|
24912
25200
|
parameters: {
|
|
24913
25201
|
query?: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@insurance-broker/api-client",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.54.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,
|