@insurance-broker/api-client 2.11.0 → 2.12.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 +349 -0
- package/package.json +1 -1
package/dist/schema.d.ts
CHANGED
|
@@ -5474,6 +5474,120 @@ export interface paths {
|
|
|
5474
5474
|
patch?: never;
|
|
5475
5475
|
trace?: never;
|
|
5476
5476
|
};
|
|
5477
|
+
"/api/v1/customer/notifications": {
|
|
5478
|
+
parameters: {
|
|
5479
|
+
query?: never;
|
|
5480
|
+
header?: never;
|
|
5481
|
+
path?: never;
|
|
5482
|
+
cookie?: never;
|
|
5483
|
+
};
|
|
5484
|
+
/**
|
|
5485
|
+
* What your broker has told you
|
|
5486
|
+
* @description Your own notifications, newest first, paged by an opaque cursor with no total count.
|
|
5487
|
+
*
|
|
5488
|
+
* **Including the ones that did not reach you.** A notification whose delivery had nowhere to go is recorded as `Undeliverable` rather than discarded, and it is shown here, because the person it was for is the one party with a reason to know it was raised.
|
|
5489
|
+
*
|
|
5490
|
+
* You are not named in the request. The list is your own and there is no way to ask for anybody else's.
|
|
5491
|
+
*
|
|
5492
|
+
* **This one follows who you are acting as.** Acting for an organisation lists the organisation's notifications, because what a message is about is the organisation's business. The preference and device routes beneath this path deliberately do not: where you are told, and how, is yours.
|
|
5493
|
+
*/
|
|
5494
|
+
get: operations["ListOwnNotifications"];
|
|
5495
|
+
put?: never;
|
|
5496
|
+
post?: never;
|
|
5497
|
+
delete?: never;
|
|
5498
|
+
options?: never;
|
|
5499
|
+
head?: never;
|
|
5500
|
+
patch?: never;
|
|
5501
|
+
trace?: never;
|
|
5502
|
+
};
|
|
5503
|
+
"/api/v1/customer/notifications/preferences": {
|
|
5504
|
+
parameters: {
|
|
5505
|
+
query?: never;
|
|
5506
|
+
header?: never;
|
|
5507
|
+
path?: never;
|
|
5508
|
+
cookie?: never;
|
|
5509
|
+
};
|
|
5510
|
+
/**
|
|
5511
|
+
* How you have asked to be told
|
|
5512
|
+
* @description COM-002. Which channels your broker may use to tell you about your own cover.
|
|
5513
|
+
*
|
|
5514
|
+
* **This is not marketing consent.** Marketing consent, the necessity of a service notification and the lawful basis for processing your data are recorded separately (BR-007), and nothing on this resource expresses any of them.
|
|
5515
|
+
*
|
|
5516
|
+
* If you have never chosen, you are answered with the defaults and `updatedAtUtc` is null.
|
|
5517
|
+
*
|
|
5518
|
+
* **This is yours and never an organisation's.** If you are acting for an organisation the request is refused: drop `X-Broker-Acting-For` to read your own.
|
|
5519
|
+
*/
|
|
5520
|
+
get: operations["ReadOwnNotificationPreferences"];
|
|
5521
|
+
/**
|
|
5522
|
+
* Choose how you are told
|
|
5523
|
+
* @description COM-002. Replaces the whole choice, so all three channels have to be stated.
|
|
5524
|
+
*
|
|
5525
|
+
* **At least one has to stay on.** Messages about your own cover — a renewal falling due, a payment owed, something happening on a claim — are not marketing and there is no opt-out from them; what you choose is which way they reach you. A request that turns everything off is refused.
|
|
5526
|
+
*
|
|
5527
|
+
* **Nothing here records a marketing preference** (BR-007).
|
|
5528
|
+
*
|
|
5529
|
+
* **This is yours and never an organisation's.** If you are acting for an organisation the request is refused: drop `X-Broker-Acting-For` to set your own.
|
|
5530
|
+
*/
|
|
5531
|
+
put: operations["SetOwnNotificationPreferences"];
|
|
5532
|
+
post?: never;
|
|
5533
|
+
delete?: never;
|
|
5534
|
+
options?: never;
|
|
5535
|
+
head?: never;
|
|
5536
|
+
patch?: never;
|
|
5537
|
+
trace?: never;
|
|
5538
|
+
};
|
|
5539
|
+
"/api/v1/customer/notifications/devices": {
|
|
5540
|
+
parameters: {
|
|
5541
|
+
query?: never;
|
|
5542
|
+
header?: never;
|
|
5543
|
+
path?: never;
|
|
5544
|
+
cookie?: never;
|
|
5545
|
+
};
|
|
5546
|
+
get?: never;
|
|
5547
|
+
put?: never;
|
|
5548
|
+
/**
|
|
5549
|
+
* Register this device to be told on
|
|
5550
|
+
* @description Records the push token this installation currently holds, against you.
|
|
5551
|
+
*
|
|
5552
|
+
* **Safe to call again, and meant to be.** Send it at every sign-in and whenever the operating system rotates the token: the installation identifier is what ties the new token to the same device, so a rotation replaces the address rather than adding a second one. The first call answers 201 and later calls answer 200.
|
|
5553
|
+
*
|
|
5554
|
+
* **The token is never returned and never logged.** Keep the `id` from the response; it is what you revoke at sign-out.
|
|
5555
|
+
*
|
|
5556
|
+
* **Registering does not mean anything will be sent.** This platform has no push provider (#371); the registration exists so that the one eventually chosen has an address.
|
|
5557
|
+
*
|
|
5558
|
+
* **A handset is yours and never an organisation's.** If you are acting for an organisation the request is refused: drop `X-Broker-Acting-For`. A phone registered to an organisation would outlive your membership of it.
|
|
5559
|
+
*/
|
|
5560
|
+
post: operations["RegisterOwnDevice"];
|
|
5561
|
+
delete?: never;
|
|
5562
|
+
options?: never;
|
|
5563
|
+
head?: never;
|
|
5564
|
+
patch?: never;
|
|
5565
|
+
trace?: never;
|
|
5566
|
+
};
|
|
5567
|
+
"/api/v1/customer/notifications/devices/{id}": {
|
|
5568
|
+
parameters: {
|
|
5569
|
+
query?: never;
|
|
5570
|
+
header?: never;
|
|
5571
|
+
path?: never;
|
|
5572
|
+
cookie?: never;
|
|
5573
|
+
};
|
|
5574
|
+
get?: never;
|
|
5575
|
+
put?: never;
|
|
5576
|
+
post?: never;
|
|
5577
|
+
/**
|
|
5578
|
+
* Stop this device being told on
|
|
5579
|
+
* @description Call this as part of signing out. The stored token is discarded, not merely flagged, so nothing can be delivered to the handset after the person using it has left.
|
|
5580
|
+
*
|
|
5581
|
+
* Repeating it is harmless. A device that is not yours answers 404.
|
|
5582
|
+
*
|
|
5583
|
+
* **Your handsets are yours and never an organisation's.** If you are acting for an organisation the request is refused: drop `X-Broker-Acting-For` to revoke your own.
|
|
5584
|
+
*/
|
|
5585
|
+
delete: operations["RevokeOwnDevice"];
|
|
5586
|
+
options?: never;
|
|
5587
|
+
head?: never;
|
|
5588
|
+
patch?: never;
|
|
5589
|
+
trace?: never;
|
|
5590
|
+
};
|
|
5477
5591
|
}
|
|
5478
5592
|
export type webhooks = Record<string, never>;
|
|
5479
5593
|
export interface components {
|
|
@@ -5927,6 +6041,16 @@ export interface components {
|
|
|
5927
6041
|
state: string;
|
|
5928
6042
|
value: null | string;
|
|
5929
6043
|
};
|
|
6044
|
+
CustomerDeviceResponse: {
|
|
6045
|
+
/** Format: uuid */
|
|
6046
|
+
id: string;
|
|
6047
|
+
platform: string;
|
|
6048
|
+
appVersion: string;
|
|
6049
|
+
/** Format: date-time */
|
|
6050
|
+
registeredAtUtc: string;
|
|
6051
|
+
/** Format: date-time */
|
|
6052
|
+
lastRegisteredAtUtc: string;
|
|
6053
|
+
};
|
|
5930
6054
|
CustomerEmergencyContactResponse: {
|
|
5931
6055
|
countryCode: string;
|
|
5932
6056
|
contact: string;
|
|
@@ -5965,6 +6089,23 @@ export interface components {
|
|
|
5965
6089
|
/** Format: date-time */
|
|
5966
6090
|
revokedAtUtc: null | string;
|
|
5967
6091
|
};
|
|
6092
|
+
CustomerNotificationPage: {
|
|
6093
|
+
items: components["schemas"]["CustomerNotificationResponse"][];
|
|
6094
|
+
nextCursor: null | string;
|
|
6095
|
+
};
|
|
6096
|
+
CustomerNotificationResponse: {
|
|
6097
|
+
/** Format: uuid */
|
|
6098
|
+
id: string;
|
|
6099
|
+
kind: string;
|
|
6100
|
+
reference: null | string;
|
|
6101
|
+
subject: string;
|
|
6102
|
+
body: string;
|
|
6103
|
+
delivery: string;
|
|
6104
|
+
/** Format: date-time */
|
|
6105
|
+
createdAtUtc: string;
|
|
6106
|
+
/** Format: date-time */
|
|
6107
|
+
sentAtUtc: null | string;
|
|
6108
|
+
};
|
|
5968
6109
|
CustomerPaymentPageResponse: {
|
|
5969
6110
|
items: components["schemas"]["CustomerPaymentResponse"][];
|
|
5970
6111
|
nextCursor: null | string;
|
|
@@ -6761,6 +6902,13 @@ export interface components {
|
|
|
6761
6902
|
items: components["schemas"]["NotificationResponse"][];
|
|
6762
6903
|
nextCursor: null | string;
|
|
6763
6904
|
};
|
|
6905
|
+
NotificationPreferenceResponse: {
|
|
6906
|
+
sms: boolean;
|
|
6907
|
+
email: boolean;
|
|
6908
|
+
push: boolean;
|
|
6909
|
+
/** Format: date-time */
|
|
6910
|
+
updatedAtUtc: null | string;
|
|
6911
|
+
};
|
|
6764
6912
|
NotificationResponse: {
|
|
6765
6913
|
/** Format: uuid */
|
|
6766
6914
|
id: string;
|
|
@@ -7622,6 +7770,12 @@ export interface components {
|
|
|
7622
7770
|
email: null | string;
|
|
7623
7771
|
phone: null | string;
|
|
7624
7772
|
};
|
|
7773
|
+
RegisterDeviceRequest: {
|
|
7774
|
+
installationId: null | string;
|
|
7775
|
+
platform: null | string;
|
|
7776
|
+
token: null | string;
|
|
7777
|
+
appVersion: null | string;
|
|
7778
|
+
};
|
|
7625
7779
|
RegisterOrganisationRequest: {
|
|
7626
7780
|
name: null | string;
|
|
7627
7781
|
registrationNumber: null | string;
|
|
@@ -7900,6 +8054,11 @@ export interface components {
|
|
|
7900
8054
|
contactDetail: null | string;
|
|
7901
8055
|
instruction: null | string;
|
|
7902
8056
|
};
|
|
8057
|
+
SetNotificationPreferenceRequest: {
|
|
8058
|
+
sms: null | boolean;
|
|
8059
|
+
email: null | boolean;
|
|
8060
|
+
push: null | boolean;
|
|
8061
|
+
};
|
|
7903
8062
|
SetRenewalLeadTimeRequest: {
|
|
7904
8063
|
/** Format: int32 */
|
|
7905
8064
|
leadDays: null | number | string;
|
|
@@ -21243,4 +21402,194 @@ export interface operations {
|
|
|
21243
21402
|
};
|
|
21244
21403
|
};
|
|
21245
21404
|
};
|
|
21405
|
+
ListOwnNotifications: {
|
|
21406
|
+
parameters: {
|
|
21407
|
+
query?: {
|
|
21408
|
+
cursor?: string;
|
|
21409
|
+
limit?: number | string;
|
|
21410
|
+
};
|
|
21411
|
+
header?: never;
|
|
21412
|
+
path?: never;
|
|
21413
|
+
cookie?: never;
|
|
21414
|
+
};
|
|
21415
|
+
requestBody?: never;
|
|
21416
|
+
responses: {
|
|
21417
|
+
/** @description OK */
|
|
21418
|
+
200: {
|
|
21419
|
+
headers: {
|
|
21420
|
+
[name: string]: unknown;
|
|
21421
|
+
};
|
|
21422
|
+
content: {
|
|
21423
|
+
"application/json": components["schemas"]["CustomerNotificationPage"];
|
|
21424
|
+
};
|
|
21425
|
+
};
|
|
21426
|
+
/** @description Bad Request */
|
|
21427
|
+
400: {
|
|
21428
|
+
headers: {
|
|
21429
|
+
[name: string]: unknown;
|
|
21430
|
+
};
|
|
21431
|
+
content: {
|
|
21432
|
+
"application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
|
|
21433
|
+
};
|
|
21434
|
+
};
|
|
21435
|
+
};
|
|
21436
|
+
};
|
|
21437
|
+
ReadOwnNotificationPreferences: {
|
|
21438
|
+
parameters: {
|
|
21439
|
+
query?: never;
|
|
21440
|
+
header?: never;
|
|
21441
|
+
path?: never;
|
|
21442
|
+
cookie?: never;
|
|
21443
|
+
};
|
|
21444
|
+
requestBody?: never;
|
|
21445
|
+
responses: {
|
|
21446
|
+
/** @description OK */
|
|
21447
|
+
200: {
|
|
21448
|
+
headers: {
|
|
21449
|
+
[name: string]: unknown;
|
|
21450
|
+
};
|
|
21451
|
+
content: {
|
|
21452
|
+
"application/json": components["schemas"]["NotificationPreferenceResponse"];
|
|
21453
|
+
};
|
|
21454
|
+
};
|
|
21455
|
+
/** @description Forbidden */
|
|
21456
|
+
403: {
|
|
21457
|
+
headers: {
|
|
21458
|
+
[name: string]: unknown;
|
|
21459
|
+
};
|
|
21460
|
+
content: {
|
|
21461
|
+
"application/problem+json": components["schemas"]["ProblemDetails"];
|
|
21462
|
+
};
|
|
21463
|
+
};
|
|
21464
|
+
};
|
|
21465
|
+
};
|
|
21466
|
+
SetOwnNotificationPreferences: {
|
|
21467
|
+
parameters: {
|
|
21468
|
+
query?: never;
|
|
21469
|
+
header?: never;
|
|
21470
|
+
path?: never;
|
|
21471
|
+
cookie?: never;
|
|
21472
|
+
};
|
|
21473
|
+
requestBody: {
|
|
21474
|
+
content: {
|
|
21475
|
+
"application/json": components["schemas"]["SetNotificationPreferenceRequest"];
|
|
21476
|
+
};
|
|
21477
|
+
};
|
|
21478
|
+
responses: {
|
|
21479
|
+
/** @description OK */
|
|
21480
|
+
200: {
|
|
21481
|
+
headers: {
|
|
21482
|
+
[name: string]: unknown;
|
|
21483
|
+
};
|
|
21484
|
+
content: {
|
|
21485
|
+
"application/json": components["schemas"]["NotificationPreferenceResponse"];
|
|
21486
|
+
};
|
|
21487
|
+
};
|
|
21488
|
+
/** @description Bad Request */
|
|
21489
|
+
400: {
|
|
21490
|
+
headers: {
|
|
21491
|
+
[name: string]: unknown;
|
|
21492
|
+
};
|
|
21493
|
+
content: {
|
|
21494
|
+
"application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
|
|
21495
|
+
};
|
|
21496
|
+
};
|
|
21497
|
+
/** @description Forbidden */
|
|
21498
|
+
403: {
|
|
21499
|
+
headers: {
|
|
21500
|
+
[name: string]: unknown;
|
|
21501
|
+
};
|
|
21502
|
+
content: {
|
|
21503
|
+
"application/problem+json": components["schemas"]["ProblemDetails"];
|
|
21504
|
+
};
|
|
21505
|
+
};
|
|
21506
|
+
};
|
|
21507
|
+
};
|
|
21508
|
+
RegisterOwnDevice: {
|
|
21509
|
+
parameters: {
|
|
21510
|
+
query?: never;
|
|
21511
|
+
header?: never;
|
|
21512
|
+
path?: never;
|
|
21513
|
+
cookie?: never;
|
|
21514
|
+
};
|
|
21515
|
+
requestBody: {
|
|
21516
|
+
content: {
|
|
21517
|
+
"application/json": components["schemas"]["RegisterDeviceRequest"];
|
|
21518
|
+
};
|
|
21519
|
+
};
|
|
21520
|
+
responses: {
|
|
21521
|
+
/** @description OK */
|
|
21522
|
+
200: {
|
|
21523
|
+
headers: {
|
|
21524
|
+
[name: string]: unknown;
|
|
21525
|
+
};
|
|
21526
|
+
content: {
|
|
21527
|
+
"application/json": components["schemas"]["CustomerDeviceResponse"];
|
|
21528
|
+
};
|
|
21529
|
+
};
|
|
21530
|
+
/** @description Created */
|
|
21531
|
+
201: {
|
|
21532
|
+
headers: {
|
|
21533
|
+
[name: string]: unknown;
|
|
21534
|
+
};
|
|
21535
|
+
content: {
|
|
21536
|
+
"application/json": components["schemas"]["CustomerDeviceResponse"];
|
|
21537
|
+
};
|
|
21538
|
+
};
|
|
21539
|
+
/** @description Bad Request */
|
|
21540
|
+
400: {
|
|
21541
|
+
headers: {
|
|
21542
|
+
[name: string]: unknown;
|
|
21543
|
+
};
|
|
21544
|
+
content: {
|
|
21545
|
+
"application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
|
|
21546
|
+
};
|
|
21547
|
+
};
|
|
21548
|
+
/** @description Forbidden */
|
|
21549
|
+
403: {
|
|
21550
|
+
headers: {
|
|
21551
|
+
[name: string]: unknown;
|
|
21552
|
+
};
|
|
21553
|
+
content: {
|
|
21554
|
+
"application/problem+json": components["schemas"]["ProblemDetails"];
|
|
21555
|
+
};
|
|
21556
|
+
};
|
|
21557
|
+
};
|
|
21558
|
+
};
|
|
21559
|
+
RevokeOwnDevice: {
|
|
21560
|
+
parameters: {
|
|
21561
|
+
query?: never;
|
|
21562
|
+
header?: never;
|
|
21563
|
+
path: {
|
|
21564
|
+
id: string;
|
|
21565
|
+
};
|
|
21566
|
+
cookie?: never;
|
|
21567
|
+
};
|
|
21568
|
+
requestBody?: never;
|
|
21569
|
+
responses: {
|
|
21570
|
+
/** @description No Content */
|
|
21571
|
+
204: {
|
|
21572
|
+
headers: {
|
|
21573
|
+
[name: string]: unknown;
|
|
21574
|
+
};
|
|
21575
|
+
content?: never;
|
|
21576
|
+
};
|
|
21577
|
+
/** @description Forbidden */
|
|
21578
|
+
403: {
|
|
21579
|
+
headers: {
|
|
21580
|
+
[name: string]: unknown;
|
|
21581
|
+
};
|
|
21582
|
+
content: {
|
|
21583
|
+
"application/problem+json": components["schemas"]["ProblemDetails"];
|
|
21584
|
+
};
|
|
21585
|
+
};
|
|
21586
|
+
/** @description Not Found */
|
|
21587
|
+
404: {
|
|
21588
|
+
headers: {
|
|
21589
|
+
[name: string]: unknown;
|
|
21590
|
+
};
|
|
21591
|
+
content?: never;
|
|
21592
|
+
};
|
|
21593
|
+
};
|
|
21594
|
+
};
|
|
21246
21595
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@insurance-broker/api-client",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.12.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,
|