@insurance-broker/api-client 5.45.0 → 5.47.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 +118 -11
- package/package.json +1 -1
package/dist/schema.d.ts
CHANGED
|
@@ -5012,6 +5012,26 @@ export interface paths {
|
|
|
5012
5012
|
patch?: never;
|
|
5013
5013
|
trace?: never;
|
|
5014
5014
|
};
|
|
5015
|
+
"/api/v1/document-templates/{id}": {
|
|
5016
|
+
parameters: {
|
|
5017
|
+
query?: never;
|
|
5018
|
+
header?: never;
|
|
5019
|
+
path?: never;
|
|
5020
|
+
cookie?: never;
|
|
5021
|
+
};
|
|
5022
|
+
/**
|
|
5023
|
+
* One of the broker's document templates, with its live version and its draft
|
|
5024
|
+
* @description The same shape as an item of the list, read by identifier, so a template stays reachable when the broker has more templates than one list request returns (#799).
|
|
5025
|
+
*/
|
|
5026
|
+
get: operations["GetDocumentTemplate"];
|
|
5027
|
+
put?: never;
|
|
5028
|
+
post?: never;
|
|
5029
|
+
delete?: never;
|
|
5030
|
+
options?: never;
|
|
5031
|
+
head?: never;
|
|
5032
|
+
patch?: never;
|
|
5033
|
+
trace?: never;
|
|
5034
|
+
};
|
|
5015
5035
|
"/api/v1/document-templates/{id}/versions": {
|
|
5016
5036
|
parameters: {
|
|
5017
5037
|
query?: never;
|
|
@@ -5046,6 +5066,8 @@ export interface paths {
|
|
|
5046
5066
|
/**
|
|
5047
5067
|
* Discard a draft that is not going to be published
|
|
5048
5068
|
* @description The way out of an abandoned draft. At most one draft of a template exists at a time, so a draft nobody finishes would otherwise block every future version of that template for good. Only a draft can be discarded: a published or retired version is what generated documents say and is kept (BR-002, DOC-008).
|
|
5069
|
+
*
|
|
5070
|
+
* **`If-Match` is optional and honoured** (ADR-0023's 2026-10-26 amendment, #799). Send the version's `concurrencyToken` to be refused with `409` `urn:brokerplatform:problem:concurrency-conflict` if the version changed since it was read; leave it out and the write behaves as it did before the token was published. A token this API could not have issued is a `400` keyed `If-Match`.
|
|
5049
5071
|
*/
|
|
5050
5072
|
delete: operations["DiscardDocumentTemplateVersion"];
|
|
5051
5073
|
options?: never;
|
|
@@ -5064,6 +5086,8 @@ export interface paths {
|
|
|
5064
5086
|
/**
|
|
5065
5087
|
* Replace a draft's body
|
|
5066
5088
|
* @description Only a draft's body can be replaced, and the body is not validated here beyond being a JSON object within the size cap: an author needs more than one sitting to write a template. Everything else is checked when the version is published.
|
|
5089
|
+
*
|
|
5090
|
+
* **`If-Match` is optional and honoured** (ADR-0023's 2026-10-26 amendment, #799). Send the version's `concurrencyToken` to be refused with `409` `urn:brokerplatform:problem:concurrency-conflict` if the version changed since it was read; leave it out and the write behaves as it did before the token was published. A token this API could not have issued is a `400` keyed `If-Match`.
|
|
5067
5091
|
*/
|
|
5068
5092
|
put: operations["ReviseDocumentTemplateVersionBody"];
|
|
5069
5093
|
post?: never;
|
|
@@ -5085,6 +5109,8 @@ export interface paths {
|
|
|
5085
5109
|
/**
|
|
5086
5110
|
* Make a draft live, retiring whatever version it supersedes
|
|
5087
5111
|
* @description The one place the body language runs as a gate. The canonical serialisation is what gets stored and the hash over it is what a generated document is later proved against (BR-002, DOC-005).
|
|
5112
|
+
*
|
|
5113
|
+
* **`If-Match` is optional and honoured** (ADR-0023's 2026-10-26 amendment, #799). Send the version's `concurrencyToken` to be refused with `409` `urn:brokerplatform:problem:concurrency-conflict` if the version changed since it was read; leave it out and the write behaves as it did before the token was published. A token this API could not have issued is a `400` keyed `If-Match`.
|
|
5088
5114
|
*/
|
|
5089
5115
|
post: operations["PublishDocumentTemplateVersion"];
|
|
5090
5116
|
delete?: never;
|
|
@@ -5105,6 +5131,8 @@ export interface paths {
|
|
|
5105
5131
|
/**
|
|
5106
5132
|
* Take the live version down, leaving the template generating nothing
|
|
5107
5133
|
* @description Publishing the next version is the usual way a version retires; this is the deliberate one, for a broker that has found a mistake in live wording and has nothing ready to replace it. The template then has no live version, so generating from it is refused until one is published. The retired version stays readable: documents generated from it name it (DOC-005, DOC-008).
|
|
5134
|
+
*
|
|
5135
|
+
* **`If-Match` is optional and honoured** (ADR-0023's 2026-10-26 amendment, #799). Send the version's `concurrencyToken` to be refused with `409` `urn:brokerplatform:problem:concurrency-conflict` if the version changed since it was read; leave it out and the write behaves as it did before the token was published. A token this API could not have issued is a `400` keyed `If-Match`.
|
|
5108
5136
|
*/
|
|
5109
5137
|
post: operations["RetireDocumentTemplateVersion"];
|
|
5110
5138
|
delete?: never;
|
|
@@ -7483,6 +7511,8 @@ export interface components {
|
|
|
7483
7511
|
isSatisfied: boolean;
|
|
7484
7512
|
enteredBy: string;
|
|
7485
7513
|
};
|
|
7514
|
+
/** @enum {string} */
|
|
7515
|
+
CustomerImportRowOutcome: "Pending" | "Accepted" | "Refused";
|
|
7486
7516
|
CustomerImportRowPage: {
|
|
7487
7517
|
items: components["schemas"]["CustomerImportRowResponse"][];
|
|
7488
7518
|
nextCursor: null | string;
|
|
@@ -7495,7 +7525,7 @@ export interface components {
|
|
|
7495
7525
|
CustomerImportRowResponse: {
|
|
7496
7526
|
/** Format: int32 */
|
|
7497
7527
|
lineNumber: number;
|
|
7498
|
-
outcome:
|
|
7528
|
+
outcome: components["schemas"]["CustomerImportRowOutcome"];
|
|
7499
7529
|
/** Format: uuid */
|
|
7500
7530
|
customerId: null | string;
|
|
7501
7531
|
reasons: components["schemas"]["CustomerImportRowReason"][];
|
|
@@ -7507,7 +7537,7 @@ export interface components {
|
|
|
7507
7537
|
CustomerImportRunResponse: {
|
|
7508
7538
|
/** Format: uuid */
|
|
7509
7539
|
id: string;
|
|
7510
|
-
status:
|
|
7540
|
+
status: components["schemas"]["CustomerImportRunStatus"];
|
|
7511
7541
|
fileName: string;
|
|
7512
7542
|
/** Format: int32 */
|
|
7513
7543
|
rowCount: number;
|
|
@@ -7530,6 +7560,8 @@ export interface components {
|
|
|
7530
7560
|
commitRefusalReason: null | string;
|
|
7531
7561
|
concurrencyToken: string;
|
|
7532
7562
|
};
|
|
7563
|
+
/** @enum {string} */
|
|
7564
|
+
CustomerImportRunStatus: "Staged" | "Validated" | "Refused" | "ValidationFailed" | "Abandoned" | "Committing" | "Committed" | "CommitRefused" | "CommitFailed" | "Expired";
|
|
7533
7565
|
CustomerImportUpload: {
|
|
7534
7566
|
file: components["schemas"]["IFormFile"];
|
|
7535
7567
|
};
|
|
@@ -7982,7 +8014,7 @@ export interface components {
|
|
|
7982
8014
|
DocumentTemplateResponse: {
|
|
7983
8015
|
/** Format: uuid */
|
|
7984
8016
|
id: string;
|
|
7985
|
-
kind:
|
|
8017
|
+
kind: components["schemas"]["PolicyDocumentKind"];
|
|
7986
8018
|
key: string;
|
|
7987
8019
|
name: string;
|
|
7988
8020
|
/** Format: date-time */
|
|
@@ -8003,7 +8035,7 @@ export interface components {
|
|
|
8003
8035
|
id: string;
|
|
8004
8036
|
/** Format: int32 */
|
|
8005
8037
|
versionNumber: number;
|
|
8006
|
-
status:
|
|
8038
|
+
status: components["schemas"]["TemplateVersionStatus"];
|
|
8007
8039
|
/** Format: int32 */
|
|
8008
8040
|
bodySchemaVersion: number;
|
|
8009
8041
|
contentHash: null | string;
|
|
@@ -8016,6 +8048,7 @@ export interface components {
|
|
|
8016
8048
|
/** Format: date-time */
|
|
8017
8049
|
retiredAtUtc: null | string;
|
|
8018
8050
|
retiredBySubjectId: null | string;
|
|
8051
|
+
concurrencyToken: string;
|
|
8019
8052
|
};
|
|
8020
8053
|
DraftInvoiceRequest: {
|
|
8021
8054
|
/** Format: uuid */
|
|
@@ -8749,10 +8782,12 @@ export interface components {
|
|
|
8749
8782
|
releaseReason: null | string;
|
|
8750
8783
|
isOpen: boolean;
|
|
8751
8784
|
};
|
|
8785
|
+
/** @enum {string} */
|
|
8786
|
+
LegalTextKind: "TermsOfBusiness" | "PrivacyNotice" | "ComplaintsProcedure";
|
|
8752
8787
|
LegalTextResponse: {
|
|
8753
8788
|
/** Format: uuid */
|
|
8754
8789
|
id: string;
|
|
8755
|
-
kind:
|
|
8790
|
+
kind: components["schemas"]["LegalTextKind"];
|
|
8756
8791
|
/** Format: int32 */
|
|
8757
8792
|
version: number;
|
|
8758
8793
|
body: string;
|
|
@@ -9290,6 +9325,8 @@ export interface components {
|
|
|
9290
9325
|
/** Format: date-time */
|
|
9291
9326
|
expiresAtUtc: string;
|
|
9292
9327
|
};
|
|
9328
|
+
/** @enum {string} */
|
|
9329
|
+
PolicyDocumentKind: "Policy" | "Certificate" | "Invoice" | "Receipt" | "Correspondence" | "DebitNote" | "CreditNote";
|
|
9293
9330
|
PolicyDocumentPage: {
|
|
9294
9331
|
items: components["schemas"]["PolicyDocumentResponse"][];
|
|
9295
9332
|
nextCursor: null | string;
|
|
@@ -9318,6 +9355,8 @@ export interface components {
|
|
|
9318
9355
|
PolicyDocumentUpload: {
|
|
9319
9356
|
file: components["schemas"]["IFormFile"];
|
|
9320
9357
|
};
|
|
9358
|
+
/** @enum {string} */
|
|
9359
|
+
PolicyImportRowOutcome: "Pending" | "Accepted" | "Refused";
|
|
9321
9360
|
PolicyImportRowPage: {
|
|
9322
9361
|
items: components["schemas"]["PolicyImportRowResponse"][];
|
|
9323
9362
|
nextCursor: null | string;
|
|
@@ -9330,7 +9369,7 @@ export interface components {
|
|
|
9330
9369
|
PolicyImportRowResponse: {
|
|
9331
9370
|
/** Format: int32 */
|
|
9332
9371
|
lineNumber: number;
|
|
9333
|
-
outcome:
|
|
9372
|
+
outcome: components["schemas"]["PolicyImportRowOutcome"];
|
|
9334
9373
|
/** Format: uuid */
|
|
9335
9374
|
policyId: null | string;
|
|
9336
9375
|
reasons: components["schemas"]["PolicyImportRowReason"][];
|
|
@@ -9342,7 +9381,7 @@ export interface components {
|
|
|
9342
9381
|
PolicyImportRunResponse: {
|
|
9343
9382
|
/** Format: uuid */
|
|
9344
9383
|
id: string;
|
|
9345
|
-
status:
|
|
9384
|
+
status: components["schemas"]["PolicyImportRunStatus"];
|
|
9346
9385
|
fileName: string;
|
|
9347
9386
|
/** Format: int32 */
|
|
9348
9387
|
rowCount: number;
|
|
@@ -9365,6 +9404,8 @@ export interface components {
|
|
|
9365
9404
|
commitRefusalReason: null | string;
|
|
9366
9405
|
concurrencyToken: string;
|
|
9367
9406
|
};
|
|
9407
|
+
/** @enum {string} */
|
|
9408
|
+
PolicyImportRunStatus: "Staged" | "Validated" | "Refused" | "ValidationFailed" | "Abandoned" | "Committing" | "Committed" | "CommitRefused" | "CommitFailed" | "Expired";
|
|
9368
9409
|
PolicyImportUpload: {
|
|
9369
9410
|
file: components["schemas"]["IFormFile"];
|
|
9370
9411
|
};
|
|
@@ -10502,6 +10543,8 @@ export interface components {
|
|
|
10502
10543
|
/** @description Why, in a sentence a person can act on. Prose: it will be reworded, so never parse it or key on it. */
|
|
10503
10544
|
message: string;
|
|
10504
10545
|
};
|
|
10546
|
+
/** @enum {string} */
|
|
10547
|
+
TemplateVersionStatus: "Draft" | "Published" | "Retired";
|
|
10505
10548
|
TenantAdministratorResponse: {
|
|
10506
10549
|
/** Format: uuid */
|
|
10507
10550
|
membershipId: string;
|
|
@@ -22706,6 +22749,35 @@ export interface operations {
|
|
|
22706
22749
|
};
|
|
22707
22750
|
};
|
|
22708
22751
|
};
|
|
22752
|
+
GetDocumentTemplate: {
|
|
22753
|
+
parameters: {
|
|
22754
|
+
query?: never;
|
|
22755
|
+
header?: never;
|
|
22756
|
+
path: {
|
|
22757
|
+
id: string;
|
|
22758
|
+
};
|
|
22759
|
+
cookie?: never;
|
|
22760
|
+
};
|
|
22761
|
+
requestBody?: never;
|
|
22762
|
+
responses: {
|
|
22763
|
+
/** @description OK */
|
|
22764
|
+
200: {
|
|
22765
|
+
headers: {
|
|
22766
|
+
[name: string]: unknown;
|
|
22767
|
+
};
|
|
22768
|
+
content: {
|
|
22769
|
+
"application/json": components["schemas"]["DocumentTemplateResponse"];
|
|
22770
|
+
};
|
|
22771
|
+
};
|
|
22772
|
+
/** @description Not Found */
|
|
22773
|
+
404: {
|
|
22774
|
+
headers: {
|
|
22775
|
+
[name: string]: unknown;
|
|
22776
|
+
};
|
|
22777
|
+
content?: never;
|
|
22778
|
+
};
|
|
22779
|
+
};
|
|
22780
|
+
};
|
|
22709
22781
|
StartDocumentTemplateVersion: {
|
|
22710
22782
|
parameters: {
|
|
22711
22783
|
query?: never;
|
|
@@ -22790,7 +22862,9 @@ export interface operations {
|
|
|
22790
22862
|
DiscardDocumentTemplateVersion: {
|
|
22791
22863
|
parameters: {
|
|
22792
22864
|
query?: never;
|
|
22793
|
-
header?:
|
|
22865
|
+
header?: {
|
|
22866
|
+
"If-Match"?: string;
|
|
22867
|
+
};
|
|
22794
22868
|
path: {
|
|
22795
22869
|
id: string;
|
|
22796
22870
|
versionId: string;
|
|
@@ -22806,6 +22880,15 @@ export interface operations {
|
|
|
22806
22880
|
};
|
|
22807
22881
|
content?: never;
|
|
22808
22882
|
};
|
|
22883
|
+
/** @description Bad Request */
|
|
22884
|
+
400: {
|
|
22885
|
+
headers: {
|
|
22886
|
+
[name: string]: unknown;
|
|
22887
|
+
};
|
|
22888
|
+
content: {
|
|
22889
|
+
"application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
|
|
22890
|
+
};
|
|
22891
|
+
};
|
|
22809
22892
|
/** @description Not Found */
|
|
22810
22893
|
404: {
|
|
22811
22894
|
headers: {
|
|
@@ -22827,7 +22910,9 @@ export interface operations {
|
|
|
22827
22910
|
ReviseDocumentTemplateVersionBody: {
|
|
22828
22911
|
parameters: {
|
|
22829
22912
|
query?: never;
|
|
22830
|
-
header?:
|
|
22913
|
+
header?: {
|
|
22914
|
+
"If-Match"?: string;
|
|
22915
|
+
};
|
|
22831
22916
|
path: {
|
|
22832
22917
|
id: string;
|
|
22833
22918
|
versionId: string;
|
|
@@ -22879,7 +22964,9 @@ export interface operations {
|
|
|
22879
22964
|
PublishDocumentTemplateVersion: {
|
|
22880
22965
|
parameters: {
|
|
22881
22966
|
query?: never;
|
|
22882
|
-
header?:
|
|
22967
|
+
header?: {
|
|
22968
|
+
"If-Match"?: string;
|
|
22969
|
+
};
|
|
22883
22970
|
path: {
|
|
22884
22971
|
id: string;
|
|
22885
22972
|
versionId: string;
|
|
@@ -22897,6 +22984,15 @@ export interface operations {
|
|
|
22897
22984
|
"application/json": components["schemas"]["DocumentTemplateVersionBodyResponse"];
|
|
22898
22985
|
};
|
|
22899
22986
|
};
|
|
22987
|
+
/** @description Bad Request */
|
|
22988
|
+
400: {
|
|
22989
|
+
headers: {
|
|
22990
|
+
[name: string]: unknown;
|
|
22991
|
+
};
|
|
22992
|
+
content: {
|
|
22993
|
+
"application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
|
|
22994
|
+
};
|
|
22995
|
+
};
|
|
22900
22996
|
/** @description Not Found */
|
|
22901
22997
|
404: {
|
|
22902
22998
|
headers: {
|
|
@@ -22927,7 +23023,9 @@ export interface operations {
|
|
|
22927
23023
|
RetireDocumentTemplateVersion: {
|
|
22928
23024
|
parameters: {
|
|
22929
23025
|
query?: never;
|
|
22930
|
-
header?:
|
|
23026
|
+
header?: {
|
|
23027
|
+
"If-Match"?: string;
|
|
23028
|
+
};
|
|
22931
23029
|
path: {
|
|
22932
23030
|
id: string;
|
|
22933
23031
|
versionId: string;
|
|
@@ -22945,6 +23043,15 @@ export interface operations {
|
|
|
22945
23043
|
"application/json": components["schemas"]["DocumentTemplateVersionBodyResponse"];
|
|
22946
23044
|
};
|
|
22947
23045
|
};
|
|
23046
|
+
/** @description Bad Request */
|
|
23047
|
+
400: {
|
|
23048
|
+
headers: {
|
|
23049
|
+
[name: string]: unknown;
|
|
23050
|
+
};
|
|
23051
|
+
content: {
|
|
23052
|
+
"application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
|
|
23053
|
+
};
|
|
23054
|
+
};
|
|
22948
23055
|
/** @description Not Found */
|
|
22949
23056
|
404: {
|
|
22950
23057
|
headers: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@insurance-broker/api-client",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.47.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,
|