@insurance-broker/api-client 1.47.0 → 2.0.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 +622 -3
- package/package.json +1 -1
package/dist/schema.d.ts
CHANGED
|
@@ -628,6 +628,66 @@ export interface paths {
|
|
|
628
628
|
patch?: never;
|
|
629
629
|
trace?: never;
|
|
630
630
|
};
|
|
631
|
+
"/api/v1/customer/charges": {
|
|
632
|
+
parameters: {
|
|
633
|
+
query?: never;
|
|
634
|
+
header?: never;
|
|
635
|
+
path?: never;
|
|
636
|
+
cookie?: never;
|
|
637
|
+
};
|
|
638
|
+
/**
|
|
639
|
+
* See what you owe, and what you have already covered
|
|
640
|
+
* @description PAY-002, PAY-005. Every charge your broker has raised against your policies, oldest due date first, paged by cursor.
|
|
641
|
+
*
|
|
642
|
+
* **You are not named in the request.** There is no customer field and no broker field: the list is whoever is signed in, resolved from the session. Another person's charges are not in it - not filtered out of it, but absent.
|
|
643
|
+
*
|
|
644
|
+
* **This is a live position, not a statement.** Nothing here was produced for you in advance: the figures and the state on each row are worked out as this answer is written, so it can change between one request and the next. A statement is the other thing - a document your broker produced deliberately, for a period, fixed at the moment they produced it - and it is on `/api/v1/customer/statements`.
|
|
645
|
+
*
|
|
646
|
+
* **`state` is one of `due`, `overdue`, `paid` and `closed`**, and nothing stores it. A charge is `overdue` when its due date is before the day this page was measured against and something is still owed on it; that day is returned as `asOf`, so you can bucket the page against your own clock without asking again. `closed` means the charge has finished and nothing further is owed on it.
|
|
647
|
+
*
|
|
648
|
+
* **One walk is measured against one day.** `asOf` is read from the clock on the first page and carried inside the cursor, so a walk crossing UTC midnight stays consistent. A walk resumed the next morning therefore serves the previous day's buckets: compare `asOf` with your own clock and start a new walk without a cursor.
|
|
649
|
+
*
|
|
650
|
+
* **`balance` is not always `amount` less `paid`.** A charge your broker cancelled is owed nothing, so anything you paid against it counts in your favour; a charge your broker wrote off is owed only what had already arrived, because the rest was forgiven. The same rule your statement uses, so the two cannot disagree.
|
|
651
|
+
*
|
|
652
|
+
* **There is no total.** What you owe overall is a sum across a whole book and across currencies, which is what a statement is for.
|
|
653
|
+
*/
|
|
654
|
+
get: operations["ListOwnCharges"];
|
|
655
|
+
put?: never;
|
|
656
|
+
post?: never;
|
|
657
|
+
delete?: never;
|
|
658
|
+
options?: never;
|
|
659
|
+
head?: never;
|
|
660
|
+
patch?: never;
|
|
661
|
+
trace?: never;
|
|
662
|
+
};
|
|
663
|
+
"/api/v1/customer/payments": {
|
|
664
|
+
parameters: {
|
|
665
|
+
query?: never;
|
|
666
|
+
header?: never;
|
|
667
|
+
path?: never;
|
|
668
|
+
cookie?: never;
|
|
669
|
+
};
|
|
670
|
+
/**
|
|
671
|
+
* See the payments your broker has recorded from you
|
|
672
|
+
* @description PAY-005. Every payment recorded against your charges, most recently recorded first, paged by cursor.
|
|
673
|
+
*
|
|
674
|
+
* **Recorded, not taken.** This platform does not collect money: a payment here is your broker writing down that money reached them somewhere else - a bank, a mobile-money service, a counter - with the reference it arrived under. **There is no route here that pays anything**, deliberately.
|
|
675
|
+
*
|
|
676
|
+
* **`state` is `received` or `returned`.** `received` means your broker has recorded the money and it counts against what you owe. `returned` means a reversal was recorded afterwards - the money did not arrive after all, or went back - so it no longer counts. A returned payment stays on this list rather than disappearing from it, because it happened.
|
|
677
|
+
*
|
|
678
|
+
* **No `asOf`**, unlike the charges list: a payment was recorded at an instant this row holds, and nothing about this list moves at midnight.
|
|
679
|
+
*
|
|
680
|
+
* **Each payment names the one charge it was recorded against**, and the policy that charge is owed under.
|
|
681
|
+
*/
|
|
682
|
+
get: operations["ListOwnPayments"];
|
|
683
|
+
put?: never;
|
|
684
|
+
post?: never;
|
|
685
|
+
delete?: never;
|
|
686
|
+
options?: never;
|
|
687
|
+
head?: never;
|
|
688
|
+
patch?: never;
|
|
689
|
+
trace?: never;
|
|
690
|
+
};
|
|
631
691
|
"/api/v1/exports/obligations": {
|
|
632
692
|
parameters: {
|
|
633
693
|
query?: never;
|
|
@@ -3620,6 +3680,32 @@ export interface paths {
|
|
|
3620
3680
|
patch?: never;
|
|
3621
3681
|
trace?: never;
|
|
3622
3682
|
};
|
|
3683
|
+
"/api/v1/policies/{id}/documents/{documentId}/download-links": {
|
|
3684
|
+
parameters: {
|
|
3685
|
+
query?: never;
|
|
3686
|
+
header?: never;
|
|
3687
|
+
path?: never;
|
|
3688
|
+
cookie?: never;
|
|
3689
|
+
};
|
|
3690
|
+
get?: never;
|
|
3691
|
+
put?: never;
|
|
3692
|
+
/**
|
|
3693
|
+
* Mints a short-lived, single-use URL for a client that cannot send a header
|
|
3694
|
+
* @description DOC-003, ADR-0034 section 7. Answers `{ url, expiresAtUtc }` for one document of one policy.
|
|
3695
|
+
*
|
|
3696
|
+
* **This is for the clients that cannot send an `Authorization` header** - a native viewer, an image tag, an operating system downloader. Anything that can send a header should fetch `/content` instead.
|
|
3697
|
+
*
|
|
3698
|
+
* **The URL is single-use and expires in minutes.** Treat it as spent the moment it is handed to anything. `expiresAtUtc` is this deployment's configured lifetime, so read it rather than assuming five minutes.
|
|
3699
|
+
*
|
|
3700
|
+
* A document whose scan verdict is not `Clean` is refused here as well as at download, and the refusal names the verdict.
|
|
3701
|
+
*/
|
|
3702
|
+
post: operations["MintPolicyDocumentDownloadLink"];
|
|
3703
|
+
delete?: never;
|
|
3704
|
+
options?: never;
|
|
3705
|
+
head?: never;
|
|
3706
|
+
patch?: never;
|
|
3707
|
+
trace?: never;
|
|
3708
|
+
};
|
|
3623
3709
|
"/api/v1/document-templates": {
|
|
3624
3710
|
parameters: {
|
|
3625
3711
|
query?: never;
|
|
@@ -3975,7 +4061,13 @@ export interface paths {
|
|
|
3975
4061
|
};
|
|
3976
4062
|
/**
|
|
3977
4063
|
* Everything filed against this customer's policies, newest first
|
|
3978
|
-
* @description Lists the documents on every policy this customer holds
|
|
4064
|
+
* @description Lists the documents on every policy this customer holds - policy documents, certificates, invoices, receipts and correspondence - paged by cursor.
|
|
4065
|
+
*
|
|
4066
|
+
* A document is quarantined the moment it is stored and only a malware scan moves it, so a row whose `scanVerdict` is not `Clean` is listed here and cannot be downloaded. The refusal names which verdict it was.
|
|
4067
|
+
*
|
|
4068
|
+
* **Paged, and the shape changed in step 11.8** (issue #177). This answers `{ items, nextCursor }` where it used to answer a bare array capped at a hundred rows, past which the oldest documents were unreachable. Pass `nextCursor` back as `cursor`; a null one means this is the last page.
|
|
4069
|
+
*
|
|
4070
|
+
* For the documents of one policy rather than of all of them, use `/customer/policies/{id}/documents`.
|
|
3979
4071
|
*/
|
|
3980
4072
|
get: operations["ListCustomerPolicyDocuments"];
|
|
3981
4073
|
put?: never;
|
|
@@ -4026,6 +4118,149 @@ export interface paths {
|
|
|
4026
4118
|
patch?: never;
|
|
4027
4119
|
trace?: never;
|
|
4028
4120
|
};
|
|
4121
|
+
"/api/v1/customer/policy-documents/{documentId}/download-links": {
|
|
4122
|
+
parameters: {
|
|
4123
|
+
query?: never;
|
|
4124
|
+
header?: never;
|
|
4125
|
+
path?: never;
|
|
4126
|
+
cookie?: never;
|
|
4127
|
+
};
|
|
4128
|
+
get?: never;
|
|
4129
|
+
put?: never;
|
|
4130
|
+
/**
|
|
4131
|
+
* Mints a short-lived, single-use URL for a viewer that cannot send a header
|
|
4132
|
+
* @description DOC-003, ADR-0034 section 7. Answers `{ url, expiresAtUtc }` for one of your own documents.
|
|
4133
|
+
*
|
|
4134
|
+
* **This is for the clients that cannot send an `Authorization` header** - your device's own PDF viewer, an image tag, an operating system downloader. Anything that can send a header should fetch `/content` instead.
|
|
4135
|
+
*
|
|
4136
|
+
* **The URL is single-use and expires in minutes.** Treat it as spent the moment you hand it to anything: a viewer that probes it before fetching will consume it. Mint one per view rather than caching one. `expiresAtUtc` is this deployment's configured lifetime, so read it rather than assuming five minutes.
|
|
4137
|
+
*
|
|
4138
|
+
* A document whose scan verdict is not `Clean` is refused here as well as at download, and the refusal names the verdict. A document belonging to another customer answers exactly as one that does not exist.
|
|
4139
|
+
*/
|
|
4140
|
+
post: operations["MintCustomerPolicyDocumentDownloadLink"];
|
|
4141
|
+
delete?: never;
|
|
4142
|
+
options?: never;
|
|
4143
|
+
head?: never;
|
|
4144
|
+
patch?: never;
|
|
4145
|
+
trace?: never;
|
|
4146
|
+
};
|
|
4147
|
+
"/api/v1/customer/policies": {
|
|
4148
|
+
parameters: {
|
|
4149
|
+
query?: never;
|
|
4150
|
+
header?: never;
|
|
4151
|
+
path?: never;
|
|
4152
|
+
cookie?: never;
|
|
4153
|
+
};
|
|
4154
|
+
/**
|
|
4155
|
+
* The policies your broker has placed for you, most recent first
|
|
4156
|
+
* @description POL-006. Every policy of yours, paged by cursor.
|
|
4157
|
+
*
|
|
4158
|
+
* **You are not named in the request.** There is no customer field and no broker field: the list is whoever is signed in, resolved from the session. Another person's policies are not in it - not filtered out of it, but absent, because a policy that is not yours is not visible to this route at all.
|
|
4159
|
+
*
|
|
4160
|
+
* **`status` is not the answer to "am I covered today".** That question is the status and the cover dates together: a policy reading `Active` whose cover period has ended is an ordinary row, and so is one reading `Expired` that a renewal later reinstates (ADR-0035 section 4). Both dates are on every row.
|
|
4161
|
+
*
|
|
4162
|
+
* **`insurerId` and `productId` are identifiers, not names.** The insurer and the product are records your broker's catalogue owns; read their names from their own routes.
|
|
4163
|
+
*
|
|
4164
|
+
* Your broker's migration working notes are not here. A policy carried across from an older system says so in `source`, and what the old system recorded verbatim is a separate record with a permission of its own.
|
|
4165
|
+
*/
|
|
4166
|
+
get: operations["ListCustomerPolicies"];
|
|
4167
|
+
put?: never;
|
|
4168
|
+
post?: never;
|
|
4169
|
+
delete?: never;
|
|
4170
|
+
options?: never;
|
|
4171
|
+
head?: never;
|
|
4172
|
+
patch?: never;
|
|
4173
|
+
trace?: never;
|
|
4174
|
+
};
|
|
4175
|
+
"/api/v1/customer/policies/{id}": {
|
|
4176
|
+
parameters: {
|
|
4177
|
+
query?: never;
|
|
4178
|
+
header?: never;
|
|
4179
|
+
path?: never;
|
|
4180
|
+
cookie?: never;
|
|
4181
|
+
};
|
|
4182
|
+
/**
|
|
4183
|
+
* One of your own policies
|
|
4184
|
+
* @description POL-006. When the cover runs from and to, who it is placed with, what it costs and where it is in its life.
|
|
4185
|
+
*
|
|
4186
|
+
* Another person's policy and a policy that does not exist are one 404, because a policy belonging to somebody else is not visible to this route at all rather than hidden from it by a filter somebody remembered to write.
|
|
4187
|
+
*/
|
|
4188
|
+
get: operations["GetCustomerPolicy"];
|
|
4189
|
+
put?: never;
|
|
4190
|
+
post?: never;
|
|
4191
|
+
delete?: never;
|
|
4192
|
+
options?: never;
|
|
4193
|
+
head?: never;
|
|
4194
|
+
patch?: never;
|
|
4195
|
+
trace?: never;
|
|
4196
|
+
};
|
|
4197
|
+
"/api/v1/customer/policies/{id}/documents": {
|
|
4198
|
+
parameters: {
|
|
4199
|
+
query?: never;
|
|
4200
|
+
header?: never;
|
|
4201
|
+
path?: never;
|
|
4202
|
+
cookie?: never;
|
|
4203
|
+
};
|
|
4204
|
+
/**
|
|
4205
|
+
* The documents filed against one of your policies, newest first
|
|
4206
|
+
* @description POL-006 and DOC-003. What your broker has filed against this policy - the policy document itself, certificates, invoices, receipts and correspondence - paged by cursor.
|
|
4207
|
+
*
|
|
4208
|
+
* A document is quarantined the moment it is stored and only a malware scan moves it, so a row whose `scanVerdict` is not `Clean` is listed here and cannot be downloaded. The refusal names which verdict it was.
|
|
4209
|
+
*
|
|
4210
|
+
* A policy belonging to somebody else answers exactly as one that does not exist.
|
|
4211
|
+
*/
|
|
4212
|
+
get: operations["ListCustomerPolicyDocumentsForPolicy"];
|
|
4213
|
+
put?: never;
|
|
4214
|
+
post?: never;
|
|
4215
|
+
delete?: never;
|
|
4216
|
+
options?: never;
|
|
4217
|
+
head?: never;
|
|
4218
|
+
patch?: never;
|
|
4219
|
+
trace?: never;
|
|
4220
|
+
};
|
|
4221
|
+
"/api/v1/customer/policies/{id}/documents/{documentId}/download-links": {
|
|
4222
|
+
parameters: {
|
|
4223
|
+
query?: never;
|
|
4224
|
+
header?: never;
|
|
4225
|
+
path?: never;
|
|
4226
|
+
cookie?: never;
|
|
4227
|
+
};
|
|
4228
|
+
get?: never;
|
|
4229
|
+
put?: never;
|
|
4230
|
+
/**
|
|
4231
|
+
* Mints a short-lived, single-use URL for a viewer that cannot send a header
|
|
4232
|
+
* @description DOC-003, ADR-0034 section 7. Answers `{ url, expiresAtUtc }` for one document of one of your policies.
|
|
4233
|
+
*
|
|
4234
|
+
* **This is for the clients that cannot send an `Authorization` header** - your device's own PDF viewer, an image tag, an operating system downloader. Anything that can send a header should fetch `/content` instead.
|
|
4235
|
+
*
|
|
4236
|
+
* **The URL is single-use and expires in minutes.** Treat it as spent the moment you hand it to anything: a viewer that probes it before fetching will consume it. Mint one per view rather than caching one. `expiresAtUtc` is this deployment's configured lifetime, so read it rather than assuming five minutes.
|
|
4237
|
+
*
|
|
4238
|
+
* A document whose scan verdict is not `Clean` is refused here as well as at download, and the refusal names the verdict.
|
|
4239
|
+
*/
|
|
4240
|
+
post: operations["MintCustomerPolicyDocumentDownloadLinkForPolicy"];
|
|
4241
|
+
delete?: never;
|
|
4242
|
+
options?: never;
|
|
4243
|
+
head?: never;
|
|
4244
|
+
patch?: never;
|
|
4245
|
+
trace?: never;
|
|
4246
|
+
};
|
|
4247
|
+
"/api/v1/policy-documents/download-links/{token}": {
|
|
4248
|
+
parameters: {
|
|
4249
|
+
query?: never;
|
|
4250
|
+
header?: never;
|
|
4251
|
+
path?: never;
|
|
4252
|
+
cookie?: never;
|
|
4253
|
+
};
|
|
4254
|
+
/** Redeems a short-lived download link and streams the policy document it names. */
|
|
4255
|
+
get: operations["RedeemPolicyDocumentDownloadLink"];
|
|
4256
|
+
put?: never;
|
|
4257
|
+
post?: never;
|
|
4258
|
+
delete?: never;
|
|
4259
|
+
options?: never;
|
|
4260
|
+
head?: never;
|
|
4261
|
+
patch?: never;
|
|
4262
|
+
trace?: never;
|
|
4263
|
+
};
|
|
4029
4264
|
"/api/v1/quote-requests": {
|
|
4030
4265
|
parameters: {
|
|
4031
4266
|
query?: never;
|
|
@@ -5307,6 +5542,29 @@ export interface components {
|
|
|
5307
5542
|
issuedBySubjectId: string;
|
|
5308
5543
|
lines: components["schemas"]["CreditNoteLineResponse"][];
|
|
5309
5544
|
};
|
|
5545
|
+
CustomerChargePageResponse: {
|
|
5546
|
+
items: components["schemas"]["CustomerChargeResponse"][];
|
|
5547
|
+
nextCursor: null | string;
|
|
5548
|
+
/** Format: date */
|
|
5549
|
+
asOf: string;
|
|
5550
|
+
};
|
|
5551
|
+
CustomerChargeResponse: {
|
|
5552
|
+
/** Format: uuid */
|
|
5553
|
+
id: string;
|
|
5554
|
+
/** Format: uuid */
|
|
5555
|
+
policyId: string;
|
|
5556
|
+
/** Format: double */
|
|
5557
|
+
amount: number | string;
|
|
5558
|
+
/** Format: double */
|
|
5559
|
+
paid: number | string;
|
|
5560
|
+
/** Format: double */
|
|
5561
|
+
balance: number | string;
|
|
5562
|
+
currency: string;
|
|
5563
|
+
/** Format: date */
|
|
5564
|
+
dueOn: string;
|
|
5565
|
+
description: string;
|
|
5566
|
+
state: string;
|
|
5567
|
+
};
|
|
5310
5568
|
CustomerClaimPage: {
|
|
5311
5569
|
items: components["schemas"]["ClaimResponse"][];
|
|
5312
5570
|
nextCursor: null | string;
|
|
@@ -5340,6 +5598,30 @@ export interface components {
|
|
|
5340
5598
|
/** Format: date-time */
|
|
5341
5599
|
revokedAtUtc: null | string;
|
|
5342
5600
|
};
|
|
5601
|
+
CustomerPaymentPageResponse: {
|
|
5602
|
+
items: components["schemas"]["CustomerPaymentResponse"][];
|
|
5603
|
+
nextCursor: null | string;
|
|
5604
|
+
};
|
|
5605
|
+
CustomerPaymentResponse: {
|
|
5606
|
+
/** Format: uuid */
|
|
5607
|
+
id: string;
|
|
5608
|
+
/** Format: uuid */
|
|
5609
|
+
chargeId: string;
|
|
5610
|
+
/** Format: uuid */
|
|
5611
|
+
policyId: string;
|
|
5612
|
+
/** Format: double */
|
|
5613
|
+
amount: number | string;
|
|
5614
|
+
currency: string;
|
|
5615
|
+
source: string;
|
|
5616
|
+
externalReference: string;
|
|
5617
|
+
/** Format: date-time */
|
|
5618
|
+
recordedAtUtc: string;
|
|
5619
|
+
state: string;
|
|
5620
|
+
};
|
|
5621
|
+
CustomerPolicyPage: {
|
|
5622
|
+
items: components["schemas"]["PolicyResponse"][];
|
|
5623
|
+
nextCursor: null | string;
|
|
5624
|
+
};
|
|
5343
5625
|
CustomerPresentedQuoteResponse: {
|
|
5344
5626
|
/** Format: uuid */
|
|
5345
5627
|
presentationVersionId: string;
|
|
@@ -6441,6 +6723,15 @@ export interface components {
|
|
|
6441
6723
|
sortOrder: number | string;
|
|
6442
6724
|
features: components["schemas"]["PlatformPlanFeatureResponse"][];
|
|
6443
6725
|
};
|
|
6726
|
+
PolicyDocumentDownloadLinkResponse: {
|
|
6727
|
+
url: string;
|
|
6728
|
+
/** Format: date-time */
|
|
6729
|
+
expiresAtUtc: string;
|
|
6730
|
+
};
|
|
6731
|
+
PolicyDocumentPage: {
|
|
6732
|
+
items: components["schemas"]["PolicyDocumentResponse"][];
|
|
6733
|
+
nextCursor: null | string;
|
|
6734
|
+
};
|
|
6444
6735
|
PolicyDocumentResponse: {
|
|
6445
6736
|
/** Format: uuid */
|
|
6446
6737
|
id: string;
|
|
@@ -8407,7 +8698,71 @@ export interface operations {
|
|
|
8407
8698
|
headers: {
|
|
8408
8699
|
[name: string]: unknown;
|
|
8409
8700
|
};
|
|
8410
|
-
content?: never;
|
|
8701
|
+
content?: never;
|
|
8702
|
+
};
|
|
8703
|
+
};
|
|
8704
|
+
};
|
|
8705
|
+
ListOwnCharges: {
|
|
8706
|
+
parameters: {
|
|
8707
|
+
query?: {
|
|
8708
|
+
cursor?: string;
|
|
8709
|
+
limit?: number | string;
|
|
8710
|
+
};
|
|
8711
|
+
header?: never;
|
|
8712
|
+
path?: never;
|
|
8713
|
+
cookie?: never;
|
|
8714
|
+
};
|
|
8715
|
+
requestBody?: never;
|
|
8716
|
+
responses: {
|
|
8717
|
+
/** @description OK */
|
|
8718
|
+
200: {
|
|
8719
|
+
headers: {
|
|
8720
|
+
[name: string]: unknown;
|
|
8721
|
+
};
|
|
8722
|
+
content: {
|
|
8723
|
+
"application/json": components["schemas"]["CustomerChargePageResponse"];
|
|
8724
|
+
};
|
|
8725
|
+
};
|
|
8726
|
+
/** @description Bad Request */
|
|
8727
|
+
400: {
|
|
8728
|
+
headers: {
|
|
8729
|
+
[name: string]: unknown;
|
|
8730
|
+
};
|
|
8731
|
+
content: {
|
|
8732
|
+
"application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
|
|
8733
|
+
};
|
|
8734
|
+
};
|
|
8735
|
+
};
|
|
8736
|
+
};
|
|
8737
|
+
ListOwnPayments: {
|
|
8738
|
+
parameters: {
|
|
8739
|
+
query?: {
|
|
8740
|
+
cursor?: string;
|
|
8741
|
+
limit?: number | string;
|
|
8742
|
+
};
|
|
8743
|
+
header?: never;
|
|
8744
|
+
path?: never;
|
|
8745
|
+
cookie?: never;
|
|
8746
|
+
};
|
|
8747
|
+
requestBody?: never;
|
|
8748
|
+
responses: {
|
|
8749
|
+
/** @description OK */
|
|
8750
|
+
200: {
|
|
8751
|
+
headers: {
|
|
8752
|
+
[name: string]: unknown;
|
|
8753
|
+
};
|
|
8754
|
+
content: {
|
|
8755
|
+
"application/json": components["schemas"]["CustomerPaymentPageResponse"];
|
|
8756
|
+
};
|
|
8757
|
+
};
|
|
8758
|
+
/** @description Bad Request */
|
|
8759
|
+
400: {
|
|
8760
|
+
headers: {
|
|
8761
|
+
[name: string]: unknown;
|
|
8762
|
+
};
|
|
8763
|
+
content: {
|
|
8764
|
+
"application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
|
|
8765
|
+
};
|
|
8411
8766
|
};
|
|
8412
8767
|
};
|
|
8413
8768
|
};
|
|
@@ -15940,6 +16295,45 @@ export interface operations {
|
|
|
15940
16295
|
};
|
|
15941
16296
|
};
|
|
15942
16297
|
};
|
|
16298
|
+
MintPolicyDocumentDownloadLink: {
|
|
16299
|
+
parameters: {
|
|
16300
|
+
query?: never;
|
|
16301
|
+
header?: never;
|
|
16302
|
+
path: {
|
|
16303
|
+
id: string;
|
|
16304
|
+
documentId: string;
|
|
16305
|
+
};
|
|
16306
|
+
cookie?: never;
|
|
16307
|
+
};
|
|
16308
|
+
requestBody?: never;
|
|
16309
|
+
responses: {
|
|
16310
|
+
/** @description Created */
|
|
16311
|
+
201: {
|
|
16312
|
+
headers: {
|
|
16313
|
+
[name: string]: unknown;
|
|
16314
|
+
};
|
|
16315
|
+
content: {
|
|
16316
|
+
"application/json": components["schemas"]["PolicyDocumentDownloadLinkResponse"];
|
|
16317
|
+
};
|
|
16318
|
+
};
|
|
16319
|
+
/** @description Not Found */
|
|
16320
|
+
404: {
|
|
16321
|
+
headers: {
|
|
16322
|
+
[name: string]: unknown;
|
|
16323
|
+
};
|
|
16324
|
+
content?: never;
|
|
16325
|
+
};
|
|
16326
|
+
/** @description Conflict */
|
|
16327
|
+
409: {
|
|
16328
|
+
headers: {
|
|
16329
|
+
[name: string]: unknown;
|
|
16330
|
+
};
|
|
16331
|
+
content: {
|
|
16332
|
+
"application/problem+json": components["schemas"]["ProblemDetails"];
|
|
16333
|
+
};
|
|
16334
|
+
};
|
|
16335
|
+
};
|
|
16336
|
+
};
|
|
15943
16337
|
ListDocumentTemplates: {
|
|
15944
16338
|
parameters: {
|
|
15945
16339
|
query?: {
|
|
@@ -16787,6 +17181,7 @@ export interface operations {
|
|
|
16787
17181
|
ListCustomerPolicyDocuments: {
|
|
16788
17182
|
parameters: {
|
|
16789
17183
|
query?: {
|
|
17184
|
+
cursor?: string;
|
|
16790
17185
|
limit?: number | string;
|
|
16791
17186
|
};
|
|
16792
17187
|
header?: never;
|
|
@@ -16801,7 +17196,16 @@ export interface operations {
|
|
|
16801
17196
|
[name: string]: unknown;
|
|
16802
17197
|
};
|
|
16803
17198
|
content: {
|
|
16804
|
-
"application/json": components["schemas"]["
|
|
17199
|
+
"application/json": components["schemas"]["PolicyDocumentPage"];
|
|
17200
|
+
};
|
|
17201
|
+
};
|
|
17202
|
+
/** @description Bad Request */
|
|
17203
|
+
400: {
|
|
17204
|
+
headers: {
|
|
17205
|
+
[name: string]: unknown;
|
|
17206
|
+
};
|
|
17207
|
+
content: {
|
|
17208
|
+
"application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
|
|
16805
17209
|
};
|
|
16806
17210
|
};
|
|
16807
17211
|
};
|
|
@@ -16871,6 +17275,221 @@ export interface operations {
|
|
|
16871
17275
|
};
|
|
16872
17276
|
};
|
|
16873
17277
|
};
|
|
17278
|
+
MintCustomerPolicyDocumentDownloadLink: {
|
|
17279
|
+
parameters: {
|
|
17280
|
+
query?: never;
|
|
17281
|
+
header?: never;
|
|
17282
|
+
path: {
|
|
17283
|
+
documentId: string;
|
|
17284
|
+
};
|
|
17285
|
+
cookie?: never;
|
|
17286
|
+
};
|
|
17287
|
+
requestBody?: never;
|
|
17288
|
+
responses: {
|
|
17289
|
+
/** @description Created */
|
|
17290
|
+
201: {
|
|
17291
|
+
headers: {
|
|
17292
|
+
[name: string]: unknown;
|
|
17293
|
+
};
|
|
17294
|
+
content: {
|
|
17295
|
+
"application/json": components["schemas"]["PolicyDocumentDownloadLinkResponse"];
|
|
17296
|
+
};
|
|
17297
|
+
};
|
|
17298
|
+
/** @description Not Found */
|
|
17299
|
+
404: {
|
|
17300
|
+
headers: {
|
|
17301
|
+
[name: string]: unknown;
|
|
17302
|
+
};
|
|
17303
|
+
content?: never;
|
|
17304
|
+
};
|
|
17305
|
+
/** @description Conflict */
|
|
17306
|
+
409: {
|
|
17307
|
+
headers: {
|
|
17308
|
+
[name: string]: unknown;
|
|
17309
|
+
};
|
|
17310
|
+
content: {
|
|
17311
|
+
"application/problem+json": components["schemas"]["ProblemDetails"];
|
|
17312
|
+
};
|
|
17313
|
+
};
|
|
17314
|
+
};
|
|
17315
|
+
};
|
|
17316
|
+
ListCustomerPolicies: {
|
|
17317
|
+
parameters: {
|
|
17318
|
+
query?: {
|
|
17319
|
+
cursor?: string;
|
|
17320
|
+
limit?: number | string;
|
|
17321
|
+
};
|
|
17322
|
+
header?: never;
|
|
17323
|
+
path?: never;
|
|
17324
|
+
cookie?: never;
|
|
17325
|
+
};
|
|
17326
|
+
requestBody?: never;
|
|
17327
|
+
responses: {
|
|
17328
|
+
/** @description OK */
|
|
17329
|
+
200: {
|
|
17330
|
+
headers: {
|
|
17331
|
+
[name: string]: unknown;
|
|
17332
|
+
};
|
|
17333
|
+
content: {
|
|
17334
|
+
"application/json": components["schemas"]["CustomerPolicyPage"];
|
|
17335
|
+
};
|
|
17336
|
+
};
|
|
17337
|
+
/** @description Bad Request */
|
|
17338
|
+
400: {
|
|
17339
|
+
headers: {
|
|
17340
|
+
[name: string]: unknown;
|
|
17341
|
+
};
|
|
17342
|
+
content: {
|
|
17343
|
+
"application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
|
|
17344
|
+
};
|
|
17345
|
+
};
|
|
17346
|
+
};
|
|
17347
|
+
};
|
|
17348
|
+
GetCustomerPolicy: {
|
|
17349
|
+
parameters: {
|
|
17350
|
+
query?: never;
|
|
17351
|
+
header?: never;
|
|
17352
|
+
path: {
|
|
17353
|
+
id: string;
|
|
17354
|
+
};
|
|
17355
|
+
cookie?: never;
|
|
17356
|
+
};
|
|
17357
|
+
requestBody?: never;
|
|
17358
|
+
responses: {
|
|
17359
|
+
/** @description OK */
|
|
17360
|
+
200: {
|
|
17361
|
+
headers: {
|
|
17362
|
+
[name: string]: unknown;
|
|
17363
|
+
};
|
|
17364
|
+
content: {
|
|
17365
|
+
"application/json": components["schemas"]["PolicyResponse"];
|
|
17366
|
+
};
|
|
17367
|
+
};
|
|
17368
|
+
/** @description Not Found */
|
|
17369
|
+
404: {
|
|
17370
|
+
headers: {
|
|
17371
|
+
[name: string]: unknown;
|
|
17372
|
+
};
|
|
17373
|
+
content?: never;
|
|
17374
|
+
};
|
|
17375
|
+
};
|
|
17376
|
+
};
|
|
17377
|
+
ListCustomerPolicyDocumentsForPolicy: {
|
|
17378
|
+
parameters: {
|
|
17379
|
+
query?: {
|
|
17380
|
+
cursor?: string;
|
|
17381
|
+
limit?: number | string;
|
|
17382
|
+
};
|
|
17383
|
+
header?: never;
|
|
17384
|
+
path: {
|
|
17385
|
+
id: string;
|
|
17386
|
+
};
|
|
17387
|
+
cookie?: never;
|
|
17388
|
+
};
|
|
17389
|
+
requestBody?: never;
|
|
17390
|
+
responses: {
|
|
17391
|
+
/** @description OK */
|
|
17392
|
+
200: {
|
|
17393
|
+
headers: {
|
|
17394
|
+
[name: string]: unknown;
|
|
17395
|
+
};
|
|
17396
|
+
content: {
|
|
17397
|
+
"application/json": components["schemas"]["PolicyDocumentPage"];
|
|
17398
|
+
};
|
|
17399
|
+
};
|
|
17400
|
+
/** @description Bad Request */
|
|
17401
|
+
400: {
|
|
17402
|
+
headers: {
|
|
17403
|
+
[name: string]: unknown;
|
|
17404
|
+
};
|
|
17405
|
+
content: {
|
|
17406
|
+
"application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
|
|
17407
|
+
};
|
|
17408
|
+
};
|
|
17409
|
+
/** @description Not Found */
|
|
17410
|
+
404: {
|
|
17411
|
+
headers: {
|
|
17412
|
+
[name: string]: unknown;
|
|
17413
|
+
};
|
|
17414
|
+
content?: never;
|
|
17415
|
+
};
|
|
17416
|
+
};
|
|
17417
|
+
};
|
|
17418
|
+
MintCustomerPolicyDocumentDownloadLinkForPolicy: {
|
|
17419
|
+
parameters: {
|
|
17420
|
+
query?: never;
|
|
17421
|
+
header?: never;
|
|
17422
|
+
path: {
|
|
17423
|
+
id: string;
|
|
17424
|
+
documentId: string;
|
|
17425
|
+
};
|
|
17426
|
+
cookie?: never;
|
|
17427
|
+
};
|
|
17428
|
+
requestBody?: never;
|
|
17429
|
+
responses: {
|
|
17430
|
+
/** @description Created */
|
|
17431
|
+
201: {
|
|
17432
|
+
headers: {
|
|
17433
|
+
[name: string]: unknown;
|
|
17434
|
+
};
|
|
17435
|
+
content: {
|
|
17436
|
+
"application/json": components["schemas"]["PolicyDocumentDownloadLinkResponse"];
|
|
17437
|
+
};
|
|
17438
|
+
};
|
|
17439
|
+
/** @description Not Found */
|
|
17440
|
+
404: {
|
|
17441
|
+
headers: {
|
|
17442
|
+
[name: string]: unknown;
|
|
17443
|
+
};
|
|
17444
|
+
content?: never;
|
|
17445
|
+
};
|
|
17446
|
+
/** @description Conflict */
|
|
17447
|
+
409: {
|
|
17448
|
+
headers: {
|
|
17449
|
+
[name: string]: unknown;
|
|
17450
|
+
};
|
|
17451
|
+
content: {
|
|
17452
|
+
"application/problem+json": components["schemas"]["ProblemDetails"];
|
|
17453
|
+
};
|
|
17454
|
+
};
|
|
17455
|
+
};
|
|
17456
|
+
};
|
|
17457
|
+
RedeemPolicyDocumentDownloadLink: {
|
|
17458
|
+
parameters: {
|
|
17459
|
+
query?: never;
|
|
17460
|
+
header?: never;
|
|
17461
|
+
path: {
|
|
17462
|
+
token: string;
|
|
17463
|
+
};
|
|
17464
|
+
cookie?: never;
|
|
17465
|
+
};
|
|
17466
|
+
requestBody?: never;
|
|
17467
|
+
responses: {
|
|
17468
|
+
/** @description OK */
|
|
17469
|
+
200: {
|
|
17470
|
+
headers: {
|
|
17471
|
+
[name: string]: unknown;
|
|
17472
|
+
};
|
|
17473
|
+
content?: never;
|
|
17474
|
+
};
|
|
17475
|
+
/** @description Not Found */
|
|
17476
|
+
404: {
|
|
17477
|
+
headers: {
|
|
17478
|
+
[name: string]: unknown;
|
|
17479
|
+
};
|
|
17480
|
+
content?: never;
|
|
17481
|
+
};
|
|
17482
|
+
/** @description Conflict */
|
|
17483
|
+
409: {
|
|
17484
|
+
headers: {
|
|
17485
|
+
[name: string]: unknown;
|
|
17486
|
+
};
|
|
17487
|
+
content: {
|
|
17488
|
+
"application/problem+json": components["schemas"]["ProblemDetails"];
|
|
17489
|
+
};
|
|
17490
|
+
};
|
|
17491
|
+
};
|
|
17492
|
+
};
|
|
16874
17493
|
ListQuoteRequests: {
|
|
16875
17494
|
parameters: {
|
|
16876
17495
|
query?: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@insurance-broker/api-client",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.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,
|