@insurance-broker/api-client 5.23.0 → 5.24.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 -0
- package/package.json +1 -1
package/dist/schema.d.ts
CHANGED
|
@@ -3252,6 +3252,50 @@ export interface paths {
|
|
|
3252
3252
|
patch?: never;
|
|
3253
3253
|
trace?: never;
|
|
3254
3254
|
};
|
|
3255
|
+
"/api/v1/customers/imports/{id}/commitment": {
|
|
3256
|
+
parameters: {
|
|
3257
|
+
query?: never;
|
|
3258
|
+
header?: never;
|
|
3259
|
+
path?: never;
|
|
3260
|
+
cookie?: never;
|
|
3261
|
+
};
|
|
3262
|
+
get?: never;
|
|
3263
|
+
put?: never;
|
|
3264
|
+
/**
|
|
3265
|
+
* Asks for a validated customer import to be committed, every row or none
|
|
3266
|
+
* @description Accepted only from `Validated`. Moves the run to `Committing` and answers `202` with it; the commit then runs in the background and ends `Committed` (one `Invited` customer per row, with its legacy source and reference and no invitation), `CommitRefused` (nothing written; `commitRefusalReason` says why, and a row that failed the commit's re-check is `Refused` with its reasons), or `CommitFailed` (nothing written, after the commit stalled). Read the run to follow it.
|
|
3267
|
+
*
|
|
3268
|
+
* **Requires `If-Match`** with the run's `concurrencyToken`. Without it, or with `*`, `428`; a token that is no longer current is `409` with problem type `urn:brokerplatform:problem:concurrency-conflict` — read the run again. `409` with problem type `urn:brokerplatform:problem:import-run-state-conflict` when the run is not `Validated`; its `runStatus` says what it is. `404` when the run is not this broker's.
|
|
3269
|
+
*/
|
|
3270
|
+
post: operations["CommitCustomerImport"];
|
|
3271
|
+
delete?: never;
|
|
3272
|
+
options?: never;
|
|
3273
|
+
head?: never;
|
|
3274
|
+
patch?: never;
|
|
3275
|
+
trace?: never;
|
|
3276
|
+
};
|
|
3277
|
+
"/api/v1/customers/imports/{id}/abandonment": {
|
|
3278
|
+
parameters: {
|
|
3279
|
+
query?: never;
|
|
3280
|
+
header?: never;
|
|
3281
|
+
path?: never;
|
|
3282
|
+
cookie?: never;
|
|
3283
|
+
};
|
|
3284
|
+
get?: never;
|
|
3285
|
+
put?: never;
|
|
3286
|
+
/**
|
|
3287
|
+
* Abandons a customer import that has not been committed
|
|
3288
|
+
* @description Accepted only from `Staged` or `Validated`. Ends the run `Abandoned`, removes every value the file held, and frees this broker's import slot; the report (line numbers, outcomes and reasons) stays readable. Answers `200` with the run.
|
|
3289
|
+
*
|
|
3290
|
+
* **Requires `If-Match`** with the run's `concurrencyToken`. Without it, or with `*`, `428`; a token that is no longer current is `409` with problem type `urn:brokerplatform:problem:concurrency-conflict`. `409` with problem type `urn:brokerplatform:problem:import-run-state-conflict` when the run has already ended — including `Refused`, which is already ended and purged — or is committing; its `runStatus` says what it is. `404` when the run is not this broker's.
|
|
3291
|
+
*/
|
|
3292
|
+
post: operations["AbandonCustomerImport"];
|
|
3293
|
+
delete?: never;
|
|
3294
|
+
options?: never;
|
|
3295
|
+
head?: never;
|
|
3296
|
+
patch?: never;
|
|
3297
|
+
trace?: never;
|
|
3298
|
+
};
|
|
3255
3299
|
"/api/v1/organisations": {
|
|
3256
3300
|
parameters: {
|
|
3257
3301
|
query?: never;
|
|
@@ -7186,6 +7230,8 @@ export interface components {
|
|
|
7186
7230
|
commitRequestedAtUtc: null | string;
|
|
7187
7231
|
/** Format: date-time */
|
|
7188
7232
|
concludedAtUtc: null | string;
|
|
7233
|
+
commitRefusalReason: null | string;
|
|
7234
|
+
concurrencyToken: string;
|
|
7189
7235
|
};
|
|
7190
7236
|
CustomerImportUpload: {
|
|
7191
7237
|
file: components["schemas"]["IFormFile"];
|
|
@@ -17454,6 +17500,124 @@ export interface operations {
|
|
|
17454
17500
|
};
|
|
17455
17501
|
};
|
|
17456
17502
|
};
|
|
17503
|
+
CommitCustomerImport: {
|
|
17504
|
+
parameters: {
|
|
17505
|
+
query?: never;
|
|
17506
|
+
header: {
|
|
17507
|
+
/** @description Required. The concurrencyToken of the record as it was read, sent back unchanged. A write without it, or with *, is refused with 428; a token that is no longer current is refused with 409 (issue #517, client 5.0.0). */
|
|
17508
|
+
"If-Match": string;
|
|
17509
|
+
};
|
|
17510
|
+
path: {
|
|
17511
|
+
id: string;
|
|
17512
|
+
};
|
|
17513
|
+
cookie?: never;
|
|
17514
|
+
};
|
|
17515
|
+
requestBody?: never;
|
|
17516
|
+
responses: {
|
|
17517
|
+
/** @description Accepted */
|
|
17518
|
+
202: {
|
|
17519
|
+
headers: {
|
|
17520
|
+
[name: string]: unknown;
|
|
17521
|
+
};
|
|
17522
|
+
content: {
|
|
17523
|
+
"application/json": components["schemas"]["CustomerImportRunResponse"];
|
|
17524
|
+
};
|
|
17525
|
+
};
|
|
17526
|
+
/** @description Bad Request */
|
|
17527
|
+
400: {
|
|
17528
|
+
headers: {
|
|
17529
|
+
[name: string]: unknown;
|
|
17530
|
+
};
|
|
17531
|
+
content: {
|
|
17532
|
+
"application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
|
|
17533
|
+
};
|
|
17534
|
+
};
|
|
17535
|
+
/** @description Not Found */
|
|
17536
|
+
404: {
|
|
17537
|
+
headers: {
|
|
17538
|
+
[name: string]: unknown;
|
|
17539
|
+
};
|
|
17540
|
+
content?: never;
|
|
17541
|
+
};
|
|
17542
|
+
/** @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. */
|
|
17543
|
+
409: {
|
|
17544
|
+
headers: {
|
|
17545
|
+
[name: string]: unknown;
|
|
17546
|
+
};
|
|
17547
|
+
content: {
|
|
17548
|
+
"application/problem+json": components["schemas"]["ConcurrencyConflictProblem"] | components["schemas"]["ProblemDetails"];
|
|
17549
|
+
};
|
|
17550
|
+
};
|
|
17551
|
+
/** @description Precondition Required (RFC 6585). The request carried no If-Match, or carried If-Match: *, which protects nothing. Nothing was read or written. Read the record, then send its concurrencyToken as If-Match. */
|
|
17552
|
+
428: {
|
|
17553
|
+
headers: {
|
|
17554
|
+
[name: string]: unknown;
|
|
17555
|
+
};
|
|
17556
|
+
content: {
|
|
17557
|
+
"application/problem+json": components["schemas"]["PreconditionRequiredProblem"];
|
|
17558
|
+
};
|
|
17559
|
+
};
|
|
17560
|
+
};
|
|
17561
|
+
};
|
|
17562
|
+
AbandonCustomerImport: {
|
|
17563
|
+
parameters: {
|
|
17564
|
+
query?: never;
|
|
17565
|
+
header: {
|
|
17566
|
+
/** @description Required. The concurrencyToken of the record as it was read, sent back unchanged. A write without it, or with *, is refused with 428; a token that is no longer current is refused with 409 (issue #517, client 5.0.0). */
|
|
17567
|
+
"If-Match": string;
|
|
17568
|
+
};
|
|
17569
|
+
path: {
|
|
17570
|
+
id: string;
|
|
17571
|
+
};
|
|
17572
|
+
cookie?: never;
|
|
17573
|
+
};
|
|
17574
|
+
requestBody?: never;
|
|
17575
|
+
responses: {
|
|
17576
|
+
/** @description OK */
|
|
17577
|
+
200: {
|
|
17578
|
+
headers: {
|
|
17579
|
+
[name: string]: unknown;
|
|
17580
|
+
};
|
|
17581
|
+
content: {
|
|
17582
|
+
"application/json": components["schemas"]["CustomerImportRunResponse"];
|
|
17583
|
+
};
|
|
17584
|
+
};
|
|
17585
|
+
/** @description Bad Request */
|
|
17586
|
+
400: {
|
|
17587
|
+
headers: {
|
|
17588
|
+
[name: string]: unknown;
|
|
17589
|
+
};
|
|
17590
|
+
content: {
|
|
17591
|
+
"application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
|
|
17592
|
+
};
|
|
17593
|
+
};
|
|
17594
|
+
/** @description Not Found */
|
|
17595
|
+
404: {
|
|
17596
|
+
headers: {
|
|
17597
|
+
[name: string]: unknown;
|
|
17598
|
+
};
|
|
17599
|
+
content?: never;
|
|
17600
|
+
};
|
|
17601
|
+
/** @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. */
|
|
17602
|
+
409: {
|
|
17603
|
+
headers: {
|
|
17604
|
+
[name: string]: unknown;
|
|
17605
|
+
};
|
|
17606
|
+
content: {
|
|
17607
|
+
"application/problem+json": components["schemas"]["ConcurrencyConflictProblem"] | components["schemas"]["ProblemDetails"];
|
|
17608
|
+
};
|
|
17609
|
+
};
|
|
17610
|
+
/** @description Precondition Required (RFC 6585). The request carried no If-Match, or carried If-Match: *, which protects nothing. Nothing was read or written. Read the record, then send its concurrencyToken as If-Match. */
|
|
17611
|
+
428: {
|
|
17612
|
+
headers: {
|
|
17613
|
+
[name: string]: unknown;
|
|
17614
|
+
};
|
|
17615
|
+
content: {
|
|
17616
|
+
"application/problem+json": components["schemas"]["PreconditionRequiredProblem"];
|
|
17617
|
+
};
|
|
17618
|
+
};
|
|
17619
|
+
};
|
|
17620
|
+
};
|
|
17457
17621
|
ListOrganisations: {
|
|
17458
17622
|
parameters: {
|
|
17459
17623
|
query?: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@insurance-broker/api-client",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.24.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,
|