@xemahq/search-api-client 0.2.9 → 0.2.10

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.
@@ -1,11 +1,9 @@
1
- export * from './errorDetailsDto';
2
- export * from './errorDetailsDtoDetails';
3
- export * from './errorPayloadDto';
4
- export * from './errorResponseDto';
5
1
  export * from './facetBucket';
6
2
  export * from './facetBucketSubFacets';
7
3
  export * from './facetResponse';
8
4
  export * from './facetResponseDataEnvelope';
5
+ export * from './problemDetailsDto';
6
+ export * from './problemFieldIssueDto';
9
7
  export * from './resolvedRouteDto';
10
8
  export * from './resolvedRouteDtoDataEnvelope';
11
9
  export * from './resourceVisibilityPattern';
@@ -15,14 +15,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  // Auto-generated by tooling/codegen/regenerate-models-barrel.js — do not edit manually.
18
- __exportStar(require("./errorDetailsDto"), exports);
19
- __exportStar(require("./errorDetailsDtoDetails"), exports);
20
- __exportStar(require("./errorPayloadDto"), exports);
21
- __exportStar(require("./errorResponseDto"), exports);
22
18
  __exportStar(require("./facetBucket"), exports);
23
19
  __exportStar(require("./facetBucketSubFacets"), exports);
24
20
  __exportStar(require("./facetResponse"), exports);
25
21
  __exportStar(require("./facetResponseDataEnvelope"), exports);
22
+ __exportStar(require("./problemDetailsDto"), exports);
23
+ __exportStar(require("./problemFieldIssueDto"), exports);
26
24
  __exportStar(require("./resolvedRouteDto"), exports);
27
25
  __exportStar(require("./resolvedRouteDtoDataEnvelope"), exports);
28
26
  __exportStar(require("./resourceVisibilityPattern"), exports);
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Generated by @xemahq/api-client-generator — do not edit manually.
3
+ * Search API
4
+ * OpenAPI spec version: 0.1.0
5
+ */
6
+ import type { ProblemFieldIssueDto } from './problemFieldIssueDto.js';
7
+ export interface ProblemDetailsDto {
8
+ /** Absolute URI identifying the refusal TYPE. Derived one-to-one from `code`, so a caller may branch on either and can never be told two different things. Never `about:blank`. */
9
+ type: string;
10
+ /** Short, human-readable, and STABLE for a given `type`. Never per-occurrence — that is `detail`. */
11
+ title: string;
12
+ /** The HTTP status code, repeated in the body so a logged document is self-contained. */
13
+ status: number;
14
+ /** SCREAMING_SNAKE_CASE. The machine-branchable refusal, and the value a policy rule, a retry predicate and a UI branch all name. */
15
+ code: string;
16
+ /** Human-readable and specific to THIS occurrence. */
17
+ detail?: string;
18
+ /** URI reference identifying the occurrence — a request path, a run, a row. */
19
+ instance?: string;
20
+ /** W3C trace-context trace-id, present when the caller sent a `traceparent`. Omitted rather than invented when it did not. */
21
+ traceId?: string;
22
+ /** Field-level issues, when the refusal is about the request body. */
23
+ errors?: ProblemFieldIssueDto[];
24
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Generated by @xemahq/api-client-generator — do not edit manually.
3
+ * Search API
4
+ * OpenAPI spec version: 0.1.0
5
+ */
6
+ export interface ProblemFieldIssueDto {
7
+ /** RFC 6901 JSON Pointer into the request body. Root is "/". */
8
+ pointer: string;
9
+ detail: string;
10
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xemahq/search-api-client",
3
- "version": "0.2.9",
3
+ "version": "0.2.10",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/xema-dev/xema-cultivars.git",
@@ -25,9 +25,33 @@
25
25
  "service": "search-api",
26
26
  "biome": "search",
27
27
  "target": "server",
28
- "generator": "@xemahq/api-client-generator@0.17.1",
28
+ "generator": "@xemahq/api-client-generator@0.19.0",
29
29
  "source": "openapi.public.json"
30
30
  },
31
+ "exports": {
32
+ ".": {
33
+ "types": "./dist/index.d.ts",
34
+ "default": "./dist/index.js"
35
+ },
36
+ "./models": {
37
+ "types": "./dist/models/index.d.ts",
38
+ "default": "./dist/models/index.js"
39
+ },
40
+ "./models/*": {
41
+ "types": "./dist/models/*.d.ts",
42
+ "default": "./dist/models/*.js"
43
+ },
44
+ "./endpoints/*": {
45
+ "types": "./dist/endpoints/*.d.ts",
46
+ "default": "./dist/endpoints/*.js"
47
+ },
48
+ "./custom-fetch": {
49
+ "types": "./dist/custom-fetch.d.ts",
50
+ "default": "./dist/custom-fetch.js"
51
+ },
52
+ "./package.json": "./package.json"
53
+ },
54
+ "sideEffects": false,
31
55
  "scripts": {
32
56
  "build": "tsc -p tsconfig.json"
33
57
  }
@@ -1,10 +0,0 @@
1
- /**
2
- * Generated by @xemahq/api-client-generator — do not edit manually.
3
- * Search API
4
- * OpenAPI spec version: 0.1.0
5
- */
6
- import type { ErrorDetailsDtoDetails } from './errorDetailsDtoDetails.js';
7
- export interface ErrorDetailsDto {
8
- /** @nullable */
9
- details: ErrorDetailsDtoDetails;
10
- }
@@ -1,11 +0,0 @@
1
- /**
2
- * Generated by @xemahq/api-client-generator — do not edit manually.
3
- * Search API
4
- * OpenAPI spec version: 0.1.0
5
- */
6
- /**
7
- * @nullable
8
- */
9
- export type ErrorDetailsDtoDetails = {
10
- [key: string]: unknown;
11
- } | null;
@@ -1,11 +0,0 @@
1
- /**
2
- * Generated by @xemahq/api-client-generator — do not edit manually.
3
- * Search API
4
- * OpenAPI spec version: 0.1.0
5
- */
6
- import type { ErrorDetailsDto } from './errorDetailsDto.js';
7
- export interface ErrorPayloadDto {
8
- code: string;
9
- message: string;
10
- details: ErrorDetailsDto | null;
11
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,9 +0,0 @@
1
- /**
2
- * Generated by @xemahq/api-client-generator — do not edit manually.
3
- * Search API
4
- * OpenAPI spec version: 0.1.0
5
- */
6
- import type { ErrorPayloadDto } from './errorPayloadDto.js';
7
- export interface ErrorResponseDto {
8
- error: ErrorPayloadDto;
9
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });