@insurance-broker/api-client 4.21.0 → 5.0.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.
Files changed (2) hide show
  1. package/dist/schema.d.ts +64 -8
  2. package/package.json +1 -1
package/dist/schema.d.ts CHANGED
@@ -8321,6 +8321,22 @@ export interface components {
8321
8321
  /** @description Why, in a sentence a person can act on. Prose: it will be reworded, so never parse it or key on it. */
8322
8322
  message: string;
8323
8323
  };
8324
+ /** @description RFC 9457 problem answered when a write that requires a precondition arrived without one: no If-Match, or If-Match: * (issue #517). Nothing was read or written. Read the record and send its concurrencyToken as If-Match. Branch on type, not on title or detail, which are human-readable and not fixed. */
8325
+ PreconditionRequiredProblem: {
8326
+ /**
8327
+ * @description Identifies the problem kind. A stable URN; it is not promised to resolve.
8328
+ * @constant
8329
+ */
8330
+ type: "urn:brokerplatform:problem:precondition-required";
8331
+ title: string;
8332
+ /**
8333
+ * Format: int32
8334
+ * @enum {integer}
8335
+ */
8336
+ status: 428;
8337
+ detail?: string;
8338
+ instance?: null | string;
8339
+ };
8324
8340
  PresentationBodyResponse: {
8325
8341
  version: components["schemas"]["PresentationVersionResponse"];
8326
8342
  body: string;
@@ -11705,8 +11721,9 @@ export interface operations {
11705
11721
  UpdateProduct: {
11706
11722
  parameters: {
11707
11723
  query?: never;
11708
- header?: {
11709
- "If-Match"?: string;
11724
+ header: {
11725
+ /** @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). */
11726
+ "If-Match": string;
11710
11727
  };
11711
11728
  path: {
11712
11729
  id: string;
@@ -11753,13 +11770,23 @@ export interface operations {
11753
11770
  "application/problem+json": components["schemas"]["ConcurrencyConflictProblem"] | components["schemas"]["ProblemDetails"];
11754
11771
  };
11755
11772
  };
11773
+ /** @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. */
11774
+ 428: {
11775
+ headers: {
11776
+ [name: string]: unknown;
11777
+ };
11778
+ content: {
11779
+ "application/problem+json": components["schemas"]["PreconditionRequiredProblem"];
11780
+ };
11781
+ };
11756
11782
  };
11757
11783
  };
11758
11784
  ReclassifyProduct: {
11759
11785
  parameters: {
11760
11786
  query?: never;
11761
- header?: {
11762
- "If-Match"?: string;
11787
+ header: {
11788
+ /** @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). */
11789
+ "If-Match": string;
11763
11790
  };
11764
11791
  path: {
11765
11792
  id: string;
@@ -11806,13 +11833,23 @@ export interface operations {
11806
11833
  "application/problem+json": components["schemas"]["ConcurrencyConflictProblem"] | components["schemas"]["ProblemDetails"];
11807
11834
  };
11808
11835
  };
11836
+ /** @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. */
11837
+ 428: {
11838
+ headers: {
11839
+ [name: string]: unknown;
11840
+ };
11841
+ content: {
11842
+ "application/problem+json": components["schemas"]["PreconditionRequiredProblem"];
11843
+ };
11844
+ };
11809
11845
  };
11810
11846
  };
11811
11847
  ActivateProduct: {
11812
11848
  parameters: {
11813
11849
  query?: never;
11814
- header?: {
11815
- "If-Match"?: string;
11850
+ header: {
11851
+ /** @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). */
11852
+ "If-Match": string;
11816
11853
  };
11817
11854
  path: {
11818
11855
  id: string;
@@ -11846,13 +11883,23 @@ export interface operations {
11846
11883
  "application/problem+json": components["schemas"]["ConcurrencyConflictProblem"] | components["schemas"]["ProblemDetails"];
11847
11884
  };
11848
11885
  };
11886
+ /** @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. */
11887
+ 428: {
11888
+ headers: {
11889
+ [name: string]: unknown;
11890
+ };
11891
+ content: {
11892
+ "application/problem+json": components["schemas"]["PreconditionRequiredProblem"];
11893
+ };
11894
+ };
11849
11895
  };
11850
11896
  };
11851
11897
  WithdrawProduct: {
11852
11898
  parameters: {
11853
11899
  query?: never;
11854
- header?: {
11855
- "If-Match"?: string;
11900
+ header: {
11901
+ /** @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). */
11902
+ "If-Match": string;
11856
11903
  };
11857
11904
  path: {
11858
11905
  id: string;
@@ -11886,6 +11933,15 @@ export interface operations {
11886
11933
  "application/problem+json": components["schemas"]["ConcurrencyConflictProblem"] | components["schemas"]["ProblemDetails"];
11887
11934
  };
11888
11935
  };
11936
+ /** @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. */
11937
+ 428: {
11938
+ headers: {
11939
+ [name: string]: unknown;
11940
+ };
11941
+ content: {
11942
+ "application/problem+json": components["schemas"]["PreconditionRequiredProblem"];
11943
+ };
11944
+ };
11889
11945
  };
11890
11946
  };
11891
11947
  AttachProductInsurer: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@insurance-broker/api-client",
3
- "version": "4.21.0",
3
+ "version": "5.0.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,