@insurance-broker/api-client 5.15.0 → 5.17.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 +93 -2
- package/package.json +1 -1
package/dist/schema.d.ts
CHANGED
|
@@ -769,7 +769,7 @@ export interface paths {
|
|
|
769
769
|
*
|
|
770
770
|
* **Every export is logged before the file is handed over.** A receipt row and an audit entry naming what was exported, by whom, how much and a SHA-256 of the exact bytes are committed in one transaction first; if that commit fails, no data leaves. The receipts are readable at `GET /exports` under a separate key.
|
|
771
771
|
*
|
|
772
|
-
* **Nothing is stored.** The bytes are produced for this response and never written to the object store, so there is no link to fetch later and no file to orphan (ADR-0038 section 7 and section 11). The price is a ceiling: a selection of more than 5000 charges is refused with a `422` naming the count, and the caller narrows by customer, by policy or by view.
|
|
772
|
+
* **Nothing is stored.** The bytes are produced for this response and never written to the object store, so there is no link to fetch later and no file to orphan (ADR-0038 section 7 and section 11). The price is a ceiling: a selection of more than 5000 charges is refused with a `422` naming the count, typed `urn:brokerplatform:problem:export-too-large` (#630), and the caller narrows by customer, by policy or by view.
|
|
773
773
|
*
|
|
774
774
|
* **A PDF stops far sooner — 500 charges.** It is laid out one paragraph per charge and rendered under a lock the whole process shares, so a hundred-page one would be paid for by every other tenant's documents. The `422` names the format and its own ceiling; the same selection as a CSV carries the full amount.
|
|
775
775
|
*
|
|
@@ -3555,6 +3555,26 @@ export interface paths {
|
|
|
3555
3555
|
patch?: never;
|
|
3556
3556
|
trace?: never;
|
|
3557
3557
|
};
|
|
3558
|
+
"/api/v1/members": {
|
|
3559
|
+
parameters: {
|
|
3560
|
+
query?: never;
|
|
3561
|
+
header?: never;
|
|
3562
|
+
path?: never;
|
|
3563
|
+
cookie?: never;
|
|
3564
|
+
};
|
|
3565
|
+
/**
|
|
3566
|
+
* This broker's memberships, with status, roles and placement, oldest first.
|
|
3567
|
+
* @description Paged by an opaque cursor: pass `nextCursor` back as `cursor` until it is null. `limit` is 25 by default and at most 100; zero or less means the default. `status` narrows the list to `Invited`, `Active`, `Suspended` or `Revoked`. A revoked member whose name has been erased comes back as "Former member of staff". Names are personal data.
|
|
3568
|
+
*/
|
|
3569
|
+
get: operations["ListMembers"];
|
|
3570
|
+
put?: never;
|
|
3571
|
+
post?: never;
|
|
3572
|
+
delete?: never;
|
|
3573
|
+
options?: never;
|
|
3574
|
+
head?: never;
|
|
3575
|
+
patch?: never;
|
|
3576
|
+
trace?: never;
|
|
3577
|
+
};
|
|
3558
3578
|
"/api/v1/members/{membershipId}/revocation": {
|
|
3559
3579
|
parameters: {
|
|
3560
3580
|
query?: never;
|
|
@@ -5684,7 +5704,12 @@ export interface paths {
|
|
|
5684
5704
|
};
|
|
5685
5705
|
get?: never;
|
|
5686
5706
|
put?: never;
|
|
5687
|
-
/**
|
|
5707
|
+
/**
|
|
5708
|
+
* Takes exactly one option on exactly one presented version. Terminal.
|
|
5709
|
+
* @description Accepts one option on the version that is presented now. Accepting is terminal: the quote request is settled and no further decision is recorded on it.
|
|
5710
|
+
*
|
|
5711
|
+
* **An option whose premium is above the approval limit the acting member's role carries is a `409` typed `urn:brokerplatform:problem:acceptance-above-approval-limit`** (#197, #630). The limit is the broker's configuration, not the caller's permission, so retrying never helps: a member whose role carries a higher limit accepts it, or the caller accepts a smaller option. The other `409`s — a second acceptance, an option whose price has lapsed, a superseded version, a lost update — say which in their `detail`.
|
|
5712
|
+
*/
|
|
5688
5713
|
post: operations["AcceptCustomerQuote"];
|
|
5689
5714
|
delete?: never;
|
|
5690
5715
|
options?: never;
|
|
@@ -5849,6 +5874,8 @@ export interface paths {
|
|
|
5849
5874
|
/**
|
|
5850
5875
|
* Keep a category for a period of this broker's own
|
|
5851
5876
|
* @description Records a deliberate departure from the platform's default. A category carrying a minimum is configurable upward only: an audit trail a tenant can shorten is a weaker control than one they cannot, and the party most motivated to shorten it is the party under investigation (ADR-0038 section 8).
|
|
5877
|
+
*
|
|
5878
|
+
* **A period beneath the category's minimum is a `422` typed `urn:brokerplatform:problem:retention-below-minimum`** (#630), carrying the category in a `categoryKey` field. It is a refusal of the number supplied: a longer period is accepted, a shorter one never is.
|
|
5852
5879
|
*/
|
|
5853
5880
|
put: operations["SetRetentionOverride"];
|
|
5854
5881
|
post?: never;
|
|
@@ -5898,6 +5925,8 @@ export interface paths {
|
|
|
5898
5925
|
/**
|
|
5899
5926
|
* End a hold, keeping the record of it
|
|
5900
5927
|
* @description The hold row is never deleted: why a record was still here in 2031 must be answerable in 2032. A reason is required, because this is the act that exposes a record to destruction.
|
|
5928
|
+
*
|
|
5929
|
+
* **Releasing a hold that is already released is a `409` typed `urn:brokerplatform:problem:legal-hold-already-released`** (#630): retrying cannot change it, so read the hold back. The other `409` is a lost update (ADR-0023): somebody else wrote the hold first, and a retry can succeed.
|
|
5901
5930
|
*/
|
|
5902
5931
|
post: operations["ReleaseLegalHold"];
|
|
5903
5932
|
delete?: never;
|
|
@@ -8041,6 +8070,28 @@ export interface components {
|
|
|
8041
8070
|
MapPaymentSourceRequest: {
|
|
8042
8071
|
source: string;
|
|
8043
8072
|
};
|
|
8073
|
+
MemberPage: {
|
|
8074
|
+
items: components["schemas"]["MemberResponse"][];
|
|
8075
|
+
nextCursor: null | string;
|
|
8076
|
+
};
|
|
8077
|
+
MemberResponse: {
|
|
8078
|
+
/** Format: uuid */
|
|
8079
|
+
membershipId: string;
|
|
8080
|
+
subjectId: string;
|
|
8081
|
+
displayName: string;
|
|
8082
|
+
status: string;
|
|
8083
|
+
roles: components["schemas"]["MemberRoleResponse"][];
|
|
8084
|
+
/** Format: uuid */
|
|
8085
|
+
branchId: null | string;
|
|
8086
|
+
/** Format: uuid */
|
|
8087
|
+
teamId: null | string;
|
|
8088
|
+
};
|
|
8089
|
+
MemberRoleResponse: {
|
|
8090
|
+
/** Format: uuid */
|
|
8091
|
+
roleId: string;
|
|
8092
|
+
key: string;
|
|
8093
|
+
name: string;
|
|
8094
|
+
};
|
|
8044
8095
|
MissingTemplateValueResponse: {
|
|
8045
8096
|
key: string;
|
|
8046
8097
|
/** @description Which refusal this is, as a stable name from a closed set. Key grouping, counting and translation on this, never on message. A new code is additive; renaming one is a break. */
|
|
@@ -18188,6 +18239,46 @@ export interface operations {
|
|
|
18188
18239
|
};
|
|
18189
18240
|
};
|
|
18190
18241
|
};
|
|
18242
|
+
ListMembers: {
|
|
18243
|
+
parameters: {
|
|
18244
|
+
query?: {
|
|
18245
|
+
status?: string;
|
|
18246
|
+
cursor?: string;
|
|
18247
|
+
limit?: number | string;
|
|
18248
|
+
};
|
|
18249
|
+
header?: never;
|
|
18250
|
+
path?: never;
|
|
18251
|
+
cookie?: never;
|
|
18252
|
+
};
|
|
18253
|
+
requestBody?: never;
|
|
18254
|
+
responses: {
|
|
18255
|
+
/** @description OK */
|
|
18256
|
+
200: {
|
|
18257
|
+
headers: {
|
|
18258
|
+
[name: string]: unknown;
|
|
18259
|
+
};
|
|
18260
|
+
content: {
|
|
18261
|
+
"application/json": components["schemas"]["MemberPage"];
|
|
18262
|
+
};
|
|
18263
|
+
};
|
|
18264
|
+
/** @description Bad Request */
|
|
18265
|
+
400: {
|
|
18266
|
+
headers: {
|
|
18267
|
+
[name: string]: unknown;
|
|
18268
|
+
};
|
|
18269
|
+
content: {
|
|
18270
|
+
"application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
|
|
18271
|
+
};
|
|
18272
|
+
};
|
|
18273
|
+
/** @description Forbidden */
|
|
18274
|
+
403: {
|
|
18275
|
+
headers: {
|
|
18276
|
+
[name: string]: unknown;
|
|
18277
|
+
};
|
|
18278
|
+
content?: never;
|
|
18279
|
+
};
|
|
18280
|
+
};
|
|
18281
|
+
};
|
|
18191
18282
|
RevokeMembership: {
|
|
18192
18283
|
parameters: {
|
|
18193
18284
|
query?: never;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@insurance-broker/api-client",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.17.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,
|