@insurance-broker/api-client 2.8.0 → 2.10.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 +164 -1
- package/package.json +1 -1
package/dist/schema.d.ts
CHANGED
|
@@ -39,7 +39,9 @@ export interface paths {
|
|
|
39
39
|
*
|
|
40
40
|
* With one: a repeat carrying a key already used **returns the original charge and the same `201 Created` with the same `Location`**, so an honest retry is indistinguishable from a first call and no second debt exists. A repeat carrying that key with a **different** policy, amount, due date or description is a `409` and raises nothing.
|
|
41
41
|
*
|
|
42
|
-
* **A key is honoured for
|
|
42
|
+
* **A key is honoured for 30 days from the moment the charge was raised, and then stops being honoured.** After that the same key is one this platform has never seen, and the request carrying it raises a fresh charge. Mint a fresh key per intended charge; do not recycle one (#394).
|
|
43
|
+
*
|
|
44
|
+
* **Expiry restores no other protection, and that is not an oversight.** Nothing else prevents a duplicate charge: no natural key on `(policy, amount, due date, description)` exists or can, for the reason above. A repeat of a month-old request therefore raises a second debt.
|
|
43
45
|
*
|
|
44
46
|
* **What a key does not do**: it assumes the retrying client owns it. Two people at two desks recording the same instalment invent two keys, and both charges are raised (ADR-0042 §19).
|
|
45
47
|
*
|
|
@@ -4979,6 +4981,50 @@ export interface paths {
|
|
|
4979
4981
|
patch?: never;
|
|
4980
4982
|
trace?: never;
|
|
4981
4983
|
};
|
|
4984
|
+
"/api/v1/acceptance-approval-limits": {
|
|
4985
|
+
parameters: {
|
|
4986
|
+
query?: never;
|
|
4987
|
+
header?: never;
|
|
4988
|
+
path?: never;
|
|
4989
|
+
cookie?: never;
|
|
4990
|
+
};
|
|
4991
|
+
/**
|
|
4992
|
+
* How much a member of a customer organisation may commit on their own
|
|
4993
|
+
* @description Every ceiling this broker has configured, by membership role and currency. A role and currency with no row here is unlimited, which is where every broker starts: an empty list means nothing is refused.
|
|
4994
|
+
*/
|
|
4995
|
+
get: operations["ReadAcceptanceApprovalLimits"];
|
|
4996
|
+
put?: never;
|
|
4997
|
+
post?: never;
|
|
4998
|
+
delete?: never;
|
|
4999
|
+
options?: never;
|
|
5000
|
+
head?: never;
|
|
5001
|
+
patch?: never;
|
|
5002
|
+
trace?: never;
|
|
5003
|
+
};
|
|
5004
|
+
"/api/v1/acceptance-approval-limits/{role}/{currency}": {
|
|
5005
|
+
parameters: {
|
|
5006
|
+
query?: never;
|
|
5007
|
+
header?: never;
|
|
5008
|
+
path?: never;
|
|
5009
|
+
cookie?: never;
|
|
5010
|
+
};
|
|
5011
|
+
get?: never;
|
|
5012
|
+
/**
|
|
5013
|
+
* Set what a membership role may commit in one currency
|
|
5014
|
+
* @description Records a ceiling. A person acting for one of this broker's customer organisations with the role named here may accept a quote whose premium is at or below this amount, in this currency, and is refused above it. Nothing about a customer acting personally is affected, and a premium quoted in a currency with no ceiling is not measured against anything.
|
|
5015
|
+
*/
|
|
5016
|
+
put: operations["SetAcceptanceApprovalLimit"];
|
|
5017
|
+
post?: never;
|
|
5018
|
+
/**
|
|
5019
|
+
* Let a membership role commit any amount in one currency again
|
|
5020
|
+
* @description Deletes the ceiling. Unlimited applies again by absence, which is what an empty set means. Clearing a ceiling this broker does not have answers 404.
|
|
5021
|
+
*/
|
|
5022
|
+
delete: operations["ClearAcceptanceApprovalLimit"];
|
|
5023
|
+
options?: never;
|
|
5024
|
+
head?: never;
|
|
5025
|
+
patch?: never;
|
|
5026
|
+
trace?: never;
|
|
5027
|
+
};
|
|
4982
5028
|
"/api/v1/retention/schedule": {
|
|
4983
5029
|
parameters: {
|
|
4984
5030
|
query?: never;
|
|
@@ -5311,6 +5357,17 @@ export interface paths {
|
|
|
5311
5357
|
export type webhooks = Record<string, never>;
|
|
5312
5358
|
export interface components {
|
|
5313
5359
|
schemas: {
|
|
5360
|
+
AcceptanceApprovalLimitResponse: {
|
|
5361
|
+
membershipRole: string;
|
|
5362
|
+
currency: string;
|
|
5363
|
+
/** Format: double */
|
|
5364
|
+
maximumAmount: number | string;
|
|
5365
|
+
/** Format: date-time */
|
|
5366
|
+
setAtUtc: string;
|
|
5367
|
+
/** Format: date-time */
|
|
5368
|
+
updatedAtUtc: string;
|
|
5369
|
+
setBySubjectId: string;
|
|
5370
|
+
};
|
|
5314
5371
|
AcceptQuoteRequest: {
|
|
5315
5372
|
/** Format: uuid */
|
|
5316
5373
|
presentationVersionId: null | string;
|
|
@@ -7640,6 +7697,10 @@ export interface components {
|
|
|
7640
7697
|
email: null | string;
|
|
7641
7698
|
phone: null | string;
|
|
7642
7699
|
};
|
|
7700
|
+
SetAcceptanceApprovalLimitRequest: {
|
|
7701
|
+
/** Format: double */
|
|
7702
|
+
maximumAmount: null | number | string;
|
|
7703
|
+
};
|
|
7643
7704
|
SetEmergencyContactRequest: {
|
|
7644
7705
|
providerName: null | string;
|
|
7645
7706
|
contactDetail: null | string;
|
|
@@ -19866,6 +19927,108 @@ export interface operations {
|
|
|
19866
19927
|
};
|
|
19867
19928
|
};
|
|
19868
19929
|
};
|
|
19930
|
+
ReadAcceptanceApprovalLimits: {
|
|
19931
|
+
parameters: {
|
|
19932
|
+
query?: never;
|
|
19933
|
+
header?: never;
|
|
19934
|
+
path?: never;
|
|
19935
|
+
cookie?: never;
|
|
19936
|
+
};
|
|
19937
|
+
requestBody?: never;
|
|
19938
|
+
responses: {
|
|
19939
|
+
/** @description OK */
|
|
19940
|
+
200: {
|
|
19941
|
+
headers: {
|
|
19942
|
+
[name: string]: unknown;
|
|
19943
|
+
};
|
|
19944
|
+
content: {
|
|
19945
|
+
"application/json": components["schemas"]["AcceptanceApprovalLimitResponse"][];
|
|
19946
|
+
};
|
|
19947
|
+
};
|
|
19948
|
+
};
|
|
19949
|
+
};
|
|
19950
|
+
SetAcceptanceApprovalLimit: {
|
|
19951
|
+
parameters: {
|
|
19952
|
+
query?: never;
|
|
19953
|
+
header?: never;
|
|
19954
|
+
path: {
|
|
19955
|
+
role: string;
|
|
19956
|
+
currency: string;
|
|
19957
|
+
};
|
|
19958
|
+
cookie?: never;
|
|
19959
|
+
};
|
|
19960
|
+
requestBody: {
|
|
19961
|
+
content: {
|
|
19962
|
+
"application/json": components["schemas"]["SetAcceptanceApprovalLimitRequest"];
|
|
19963
|
+
};
|
|
19964
|
+
};
|
|
19965
|
+
responses: {
|
|
19966
|
+
/** @description OK */
|
|
19967
|
+
200: {
|
|
19968
|
+
headers: {
|
|
19969
|
+
[name: string]: unknown;
|
|
19970
|
+
};
|
|
19971
|
+
content: {
|
|
19972
|
+
"application/json": components["schemas"]["AcceptanceApprovalLimitResponse"];
|
|
19973
|
+
};
|
|
19974
|
+
};
|
|
19975
|
+
/** @description Bad Request */
|
|
19976
|
+
400: {
|
|
19977
|
+
headers: {
|
|
19978
|
+
[name: string]: unknown;
|
|
19979
|
+
};
|
|
19980
|
+
content: {
|
|
19981
|
+
"application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
|
|
19982
|
+
};
|
|
19983
|
+
};
|
|
19984
|
+
/** @description Conflict */
|
|
19985
|
+
409: {
|
|
19986
|
+
headers: {
|
|
19987
|
+
[name: string]: unknown;
|
|
19988
|
+
};
|
|
19989
|
+
content: {
|
|
19990
|
+
"application/problem+json": components["schemas"]["ProblemDetails"];
|
|
19991
|
+
};
|
|
19992
|
+
};
|
|
19993
|
+
};
|
|
19994
|
+
};
|
|
19995
|
+
ClearAcceptanceApprovalLimit: {
|
|
19996
|
+
parameters: {
|
|
19997
|
+
query?: never;
|
|
19998
|
+
header?: never;
|
|
19999
|
+
path: {
|
|
20000
|
+
role: string;
|
|
20001
|
+
currency: string;
|
|
20002
|
+
};
|
|
20003
|
+
cookie?: never;
|
|
20004
|
+
};
|
|
20005
|
+
requestBody?: never;
|
|
20006
|
+
responses: {
|
|
20007
|
+
/** @description No Content */
|
|
20008
|
+
204: {
|
|
20009
|
+
headers: {
|
|
20010
|
+
[name: string]: unknown;
|
|
20011
|
+
};
|
|
20012
|
+
content?: never;
|
|
20013
|
+
};
|
|
20014
|
+
/** @description Bad Request */
|
|
20015
|
+
400: {
|
|
20016
|
+
headers: {
|
|
20017
|
+
[name: string]: unknown;
|
|
20018
|
+
};
|
|
20019
|
+
content: {
|
|
20020
|
+
"application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
|
|
20021
|
+
};
|
|
20022
|
+
};
|
|
20023
|
+
/** @description Not Found */
|
|
20024
|
+
404: {
|
|
20025
|
+
headers: {
|
|
20026
|
+
[name: string]: unknown;
|
|
20027
|
+
};
|
|
20028
|
+
content?: never;
|
|
20029
|
+
};
|
|
20030
|
+
};
|
|
20031
|
+
};
|
|
19869
20032
|
ReadRetentionSchedule: {
|
|
19870
20033
|
parameters: {
|
|
19871
20034
|
query?: never;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@insurance-broker/api-client",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.10.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,
|