@insurance-broker/api-client 5.41.0 → 5.43.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 +301 -1
- package/package.json +1 -1
package/dist/schema.d.ts
CHANGED
|
@@ -3846,7 +3846,11 @@ export interface paths {
|
|
|
3846
3846
|
*/
|
|
3847
3847
|
get: operations["ListMembers"];
|
|
3848
3848
|
put?: never;
|
|
3849
|
-
|
|
3849
|
+
/**
|
|
3850
|
+
* Gives a person with a staff account access to this broker, holding the named roles.
|
|
3851
|
+
* @description The subject must name an account that already exists in the staff realm; this platform does not create staff accounts. The membership is active at once, as the platform's own grant is: there is no acceptance step. At least one role is required, and each must hold only permissions the caller holds. A person who already has a live membership of this broker is refused 409.
|
|
3852
|
+
*/
|
|
3853
|
+
post: operations["InviteMember"];
|
|
3850
3854
|
delete?: never;
|
|
3851
3855
|
options?: never;
|
|
3852
3856
|
head?: never;
|
|
@@ -3873,6 +3877,30 @@ export interface paths {
|
|
|
3873
3877
|
patch?: never;
|
|
3874
3878
|
trace?: never;
|
|
3875
3879
|
};
|
|
3880
|
+
"/api/v1/members/{membershipId}/roles/{roleId}": {
|
|
3881
|
+
parameters: {
|
|
3882
|
+
query?: never;
|
|
3883
|
+
header?: never;
|
|
3884
|
+
path?: never;
|
|
3885
|
+
cookie?: never;
|
|
3886
|
+
};
|
|
3887
|
+
get?: never;
|
|
3888
|
+
/**
|
|
3889
|
+
* Gives a member of staff one of this broker's roles. Idempotent.
|
|
3890
|
+
* @description The member can do what the role grants from their next request onward. The role must hold only permissions the caller holds. A caller may not change their own roles, and a revoked membership's roles are not changed. Assigning a role the member already holds answers the member as they stand and writes nothing.
|
|
3891
|
+
*/
|
|
3892
|
+
put: operations["AssignMemberRole"];
|
|
3893
|
+
post?: never;
|
|
3894
|
+
/**
|
|
3895
|
+
* Takes one of this broker's roles away from a member of staff. Idempotent.
|
|
3896
|
+
* @description The member can no longer do what only that role granted from their next request onward. The role must hold only permissions the caller holds: a caller may not take away what they could not have given. A caller may not change their own roles, and a revoked membership's roles are not changed. Removing a role the member does not hold answers the member as they stand and writes nothing.
|
|
3897
|
+
*/
|
|
3898
|
+
delete: operations["RemoveMemberRole"];
|
|
3899
|
+
options?: never;
|
|
3900
|
+
head?: never;
|
|
3901
|
+
patch?: never;
|
|
3902
|
+
trace?: never;
|
|
3903
|
+
};
|
|
3876
3904
|
"/api/v1/staff": {
|
|
3877
3905
|
parameters: {
|
|
3878
3906
|
query?: never;
|
|
@@ -5317,6 +5345,36 @@ export interface paths {
|
|
|
5317
5345
|
patch?: never;
|
|
5318
5346
|
trace?: never;
|
|
5319
5347
|
};
|
|
5348
|
+
"/api/v1/renewals/{id}/assignment": {
|
|
5349
|
+
parameters: {
|
|
5350
|
+
query?: never;
|
|
5351
|
+
header?: never;
|
|
5352
|
+
path?: never;
|
|
5353
|
+
cookie?: never;
|
|
5354
|
+
};
|
|
5355
|
+
get?: never;
|
|
5356
|
+
put?: never;
|
|
5357
|
+
/**
|
|
5358
|
+
* Give a renewal to a member of staff, or move it to a different one
|
|
5359
|
+
* @description REN-002 and REN-008. Records who is working a renewal, which is what the list's `assignedToSubjectId` filter groups by. The sweep opens every renewal unassigned (ADR-0040 section 2).
|
|
5360
|
+
*
|
|
5361
|
+
* The assignee must be an active member of this broker who holds `policies.renewals.manage` - somebody who can work the renewal they are given. A subject that is not, or that belongs to another broker, is refused with the same `400`, so the route cannot be used to learn who works where.
|
|
5362
|
+
*
|
|
5363
|
+
* Giving a renewal to the person who already has it changes nothing and answers `200`. A renewal that has concluded is refused with `409` and type `urn:brokerplatform:problem:renewal-concluded`: its assignee is kept as the record of who had it.
|
|
5364
|
+
*
|
|
5365
|
+
* **Never shown to the customer.** The customer's view of their renewal carries no member of staff.
|
|
5366
|
+
*/
|
|
5367
|
+
post: operations["AssignRenewal"];
|
|
5368
|
+
/**
|
|
5369
|
+
* Take a renewal off whoever has it
|
|
5370
|
+
* @description Returns a renewal to unassigned work. A renewal nobody has changes nothing and answers `200`. A renewal that has concluded is refused with `409`, for the reason assigning one is.
|
|
5371
|
+
*/
|
|
5372
|
+
delete: operations["UnassignRenewal"];
|
|
5373
|
+
options?: never;
|
|
5374
|
+
head?: never;
|
|
5375
|
+
patch?: never;
|
|
5376
|
+
trace?: never;
|
|
5377
|
+
};
|
|
5320
5378
|
"/api/v1/customer/policy-documents": {
|
|
5321
5379
|
parameters: {
|
|
5322
5380
|
query?: never;
|
|
@@ -6891,6 +6949,9 @@ export interface components {
|
|
|
6891
6949
|
AssignQuoteRequestRequest: {
|
|
6892
6950
|
advisorSubjectId: null | string;
|
|
6893
6951
|
};
|
|
6952
|
+
AssignRenewalRequest: {
|
|
6953
|
+
assigneeSubjectId: null | string;
|
|
6954
|
+
};
|
|
6894
6955
|
AttachProductInsurerRequest: {
|
|
6895
6956
|
/** Format: uuid */
|
|
6896
6957
|
insurerId: null | string;
|
|
@@ -8477,6 +8538,11 @@ export interface components {
|
|
|
8477
8538
|
/** Format: date-time */
|
|
8478
8539
|
revokedAtUtc: null | string;
|
|
8479
8540
|
};
|
|
8541
|
+
InviteMemberRequest: {
|
|
8542
|
+
subjectId: null | string;
|
|
8543
|
+
displayName: null | string;
|
|
8544
|
+
roleIds: null | string[];
|
|
8545
|
+
};
|
|
8480
8546
|
InviteOrganisationMemberRequest: {
|
|
8481
8547
|
email: null | string;
|
|
8482
8548
|
role: null | string;
|
|
@@ -19701,6 +19767,55 @@ export interface operations {
|
|
|
19701
19767
|
};
|
|
19702
19768
|
};
|
|
19703
19769
|
};
|
|
19770
|
+
InviteMember: {
|
|
19771
|
+
parameters: {
|
|
19772
|
+
query?: never;
|
|
19773
|
+
header?: never;
|
|
19774
|
+
path?: never;
|
|
19775
|
+
cookie?: never;
|
|
19776
|
+
};
|
|
19777
|
+
requestBody: {
|
|
19778
|
+
content: {
|
|
19779
|
+
"application/json": components["schemas"]["InviteMemberRequest"];
|
|
19780
|
+
};
|
|
19781
|
+
};
|
|
19782
|
+
responses: {
|
|
19783
|
+
/** @description Created */
|
|
19784
|
+
201: {
|
|
19785
|
+
headers: {
|
|
19786
|
+
[name: string]: unknown;
|
|
19787
|
+
};
|
|
19788
|
+
content: {
|
|
19789
|
+
"application/json": components["schemas"]["MemberResponse"];
|
|
19790
|
+
};
|
|
19791
|
+
};
|
|
19792
|
+
/** @description Bad Request */
|
|
19793
|
+
400: {
|
|
19794
|
+
headers: {
|
|
19795
|
+
[name: string]: unknown;
|
|
19796
|
+
};
|
|
19797
|
+
content: {
|
|
19798
|
+
"application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
|
|
19799
|
+
};
|
|
19800
|
+
};
|
|
19801
|
+
/** @description Forbidden */
|
|
19802
|
+
403: {
|
|
19803
|
+
headers: {
|
|
19804
|
+
[name: string]: unknown;
|
|
19805
|
+
};
|
|
19806
|
+
content?: never;
|
|
19807
|
+
};
|
|
19808
|
+
/** @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. */
|
|
19809
|
+
409: {
|
|
19810
|
+
headers: {
|
|
19811
|
+
[name: string]: unknown;
|
|
19812
|
+
};
|
|
19813
|
+
content: {
|
|
19814
|
+
"application/problem+json": components["schemas"]["ConcurrencyConflictProblem"] | components["schemas"]["ProblemDetails"];
|
|
19815
|
+
};
|
|
19816
|
+
};
|
|
19817
|
+
};
|
|
19818
|
+
};
|
|
19704
19819
|
RevokeMembership: {
|
|
19705
19820
|
parameters: {
|
|
19706
19821
|
query?: never;
|
|
@@ -19759,6 +19874,102 @@ export interface operations {
|
|
|
19759
19874
|
};
|
|
19760
19875
|
};
|
|
19761
19876
|
};
|
|
19877
|
+
AssignMemberRole: {
|
|
19878
|
+
parameters: {
|
|
19879
|
+
query?: never;
|
|
19880
|
+
header?: never;
|
|
19881
|
+
path: {
|
|
19882
|
+
membershipId: string;
|
|
19883
|
+
roleId: string;
|
|
19884
|
+
};
|
|
19885
|
+
cookie?: never;
|
|
19886
|
+
};
|
|
19887
|
+
requestBody?: never;
|
|
19888
|
+
responses: {
|
|
19889
|
+
/** @description OK */
|
|
19890
|
+
200: {
|
|
19891
|
+
headers: {
|
|
19892
|
+
[name: string]: unknown;
|
|
19893
|
+
};
|
|
19894
|
+
content: {
|
|
19895
|
+
"application/json": components["schemas"]["MemberResponse"];
|
|
19896
|
+
};
|
|
19897
|
+
};
|
|
19898
|
+
/** @description Forbidden */
|
|
19899
|
+
403: {
|
|
19900
|
+
headers: {
|
|
19901
|
+
[name: string]: unknown;
|
|
19902
|
+
};
|
|
19903
|
+
content?: never;
|
|
19904
|
+
};
|
|
19905
|
+
/** @description Not Found */
|
|
19906
|
+
404: {
|
|
19907
|
+
headers: {
|
|
19908
|
+
[name: string]: unknown;
|
|
19909
|
+
};
|
|
19910
|
+
content: {
|
|
19911
|
+
"application/problem+json": components["schemas"]["ProblemDetails"];
|
|
19912
|
+
};
|
|
19913
|
+
};
|
|
19914
|
+
/** @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. */
|
|
19915
|
+
409: {
|
|
19916
|
+
headers: {
|
|
19917
|
+
[name: string]: unknown;
|
|
19918
|
+
};
|
|
19919
|
+
content: {
|
|
19920
|
+
"application/problem+json": components["schemas"]["ConcurrencyConflictProblem"] | components["schemas"]["ProblemDetails"];
|
|
19921
|
+
};
|
|
19922
|
+
};
|
|
19923
|
+
};
|
|
19924
|
+
};
|
|
19925
|
+
RemoveMemberRole: {
|
|
19926
|
+
parameters: {
|
|
19927
|
+
query?: never;
|
|
19928
|
+
header?: never;
|
|
19929
|
+
path: {
|
|
19930
|
+
membershipId: string;
|
|
19931
|
+
roleId: string;
|
|
19932
|
+
};
|
|
19933
|
+
cookie?: never;
|
|
19934
|
+
};
|
|
19935
|
+
requestBody?: never;
|
|
19936
|
+
responses: {
|
|
19937
|
+
/** @description OK */
|
|
19938
|
+
200: {
|
|
19939
|
+
headers: {
|
|
19940
|
+
[name: string]: unknown;
|
|
19941
|
+
};
|
|
19942
|
+
content: {
|
|
19943
|
+
"application/json": components["schemas"]["MemberResponse"];
|
|
19944
|
+
};
|
|
19945
|
+
};
|
|
19946
|
+
/** @description Forbidden */
|
|
19947
|
+
403: {
|
|
19948
|
+
headers: {
|
|
19949
|
+
[name: string]: unknown;
|
|
19950
|
+
};
|
|
19951
|
+
content?: never;
|
|
19952
|
+
};
|
|
19953
|
+
/** @description Not Found */
|
|
19954
|
+
404: {
|
|
19955
|
+
headers: {
|
|
19956
|
+
[name: string]: unknown;
|
|
19957
|
+
};
|
|
19958
|
+
content: {
|
|
19959
|
+
"application/problem+json": components["schemas"]["ProblemDetails"];
|
|
19960
|
+
};
|
|
19961
|
+
};
|
|
19962
|
+
/** @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. */
|
|
19963
|
+
409: {
|
|
19964
|
+
headers: {
|
|
19965
|
+
[name: string]: unknown;
|
|
19966
|
+
};
|
|
19967
|
+
content: {
|
|
19968
|
+
"application/problem+json": components["schemas"]["ConcurrencyConflictProblem"] | components["schemas"]["ProblemDetails"];
|
|
19969
|
+
};
|
|
19970
|
+
};
|
|
19971
|
+
};
|
|
19972
|
+
};
|
|
19762
19973
|
ResolveStaffNames: {
|
|
19763
19974
|
parameters: {
|
|
19764
19975
|
query?: {
|
|
@@ -23244,6 +23455,95 @@ export interface operations {
|
|
|
23244
23455
|
};
|
|
23245
23456
|
};
|
|
23246
23457
|
};
|
|
23458
|
+
AssignRenewal: {
|
|
23459
|
+
parameters: {
|
|
23460
|
+
query?: never;
|
|
23461
|
+
header?: never;
|
|
23462
|
+
path: {
|
|
23463
|
+
id: string;
|
|
23464
|
+
};
|
|
23465
|
+
cookie?: never;
|
|
23466
|
+
};
|
|
23467
|
+
requestBody: {
|
|
23468
|
+
content: {
|
|
23469
|
+
"application/json": components["schemas"]["AssignRenewalRequest"];
|
|
23470
|
+
};
|
|
23471
|
+
};
|
|
23472
|
+
responses: {
|
|
23473
|
+
/** @description OK */
|
|
23474
|
+
200: {
|
|
23475
|
+
headers: {
|
|
23476
|
+
[name: string]: unknown;
|
|
23477
|
+
};
|
|
23478
|
+
content: {
|
|
23479
|
+
"application/json": components["schemas"]["RenewalCaseSummaryResponse"];
|
|
23480
|
+
};
|
|
23481
|
+
};
|
|
23482
|
+
/** @description Bad Request */
|
|
23483
|
+
400: {
|
|
23484
|
+
headers: {
|
|
23485
|
+
[name: string]: unknown;
|
|
23486
|
+
};
|
|
23487
|
+
content: {
|
|
23488
|
+
"application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
|
|
23489
|
+
};
|
|
23490
|
+
};
|
|
23491
|
+
/** @description Not Found */
|
|
23492
|
+
404: {
|
|
23493
|
+
headers: {
|
|
23494
|
+
[name: string]: unknown;
|
|
23495
|
+
};
|
|
23496
|
+
content?: never;
|
|
23497
|
+
};
|
|
23498
|
+
/** @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. */
|
|
23499
|
+
409: {
|
|
23500
|
+
headers: {
|
|
23501
|
+
[name: string]: unknown;
|
|
23502
|
+
};
|
|
23503
|
+
content: {
|
|
23504
|
+
"application/problem+json": components["schemas"]["ConcurrencyConflictProblem"] | components["schemas"]["ProblemDetails"];
|
|
23505
|
+
};
|
|
23506
|
+
};
|
|
23507
|
+
};
|
|
23508
|
+
};
|
|
23509
|
+
UnassignRenewal: {
|
|
23510
|
+
parameters: {
|
|
23511
|
+
query?: never;
|
|
23512
|
+
header?: never;
|
|
23513
|
+
path: {
|
|
23514
|
+
id: string;
|
|
23515
|
+
};
|
|
23516
|
+
cookie?: never;
|
|
23517
|
+
};
|
|
23518
|
+
requestBody?: never;
|
|
23519
|
+
responses: {
|
|
23520
|
+
/** @description OK */
|
|
23521
|
+
200: {
|
|
23522
|
+
headers: {
|
|
23523
|
+
[name: string]: unknown;
|
|
23524
|
+
};
|
|
23525
|
+
content: {
|
|
23526
|
+
"application/json": components["schemas"]["RenewalCaseSummaryResponse"];
|
|
23527
|
+
};
|
|
23528
|
+
};
|
|
23529
|
+
/** @description Not Found */
|
|
23530
|
+
404: {
|
|
23531
|
+
headers: {
|
|
23532
|
+
[name: string]: unknown;
|
|
23533
|
+
};
|
|
23534
|
+
content?: never;
|
|
23535
|
+
};
|
|
23536
|
+
/** @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. */
|
|
23537
|
+
409: {
|
|
23538
|
+
headers: {
|
|
23539
|
+
[name: string]: unknown;
|
|
23540
|
+
};
|
|
23541
|
+
content: {
|
|
23542
|
+
"application/problem+json": components["schemas"]["ConcurrencyConflictProblem"] | components["schemas"]["ProblemDetails"];
|
|
23543
|
+
};
|
|
23544
|
+
};
|
|
23545
|
+
};
|
|
23546
|
+
};
|
|
23247
23547
|
ListCustomerPolicyDocuments: {
|
|
23248
23548
|
parameters: {
|
|
23249
23549
|
query?: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@insurance-broker/api-client",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.43.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,
|