@venizia/ignis-filter 0.4.7-0 → 0.4.7-1
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,7 +1,9 @@
|
|
|
1
1
|
export * from './builder.js';
|
|
2
2
|
export * from './common/index.js';
|
|
3
|
-
/**
|
|
4
|
-
export declare const FieldsSchema: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodBoolean>, import("zod").ZodArray<import("zod").ZodString>]
|
|
3
|
+
/** Field selection: an array of names to include, or an object of `name: boolean`. Optional. */
|
|
4
|
+
export declare const FieldsSchema: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodBoolean>, import("zod").ZodArray<import("zod").ZodString>]>>;
|
|
5
|
+
/** The whole filter: `where`, `fields`, `include`, `order`, `limit`, `offset` and `skip`. Accepts an object or a JSON string; a malformed string becomes a validation issue. */
|
|
6
|
+
export declare const FilterSchema: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
5
7
|
where: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodType<any, unknown, import("zod/v4/core").$ZodTypeInternals<any, unknown>>, import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<any, string>>, import("zod").ZodType<any, unknown, import("zod/v4/core").$ZodTypeInternals<any, unknown>>>]>>;
|
|
6
8
|
fields: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodBoolean>, import("zod").ZodArray<import("zod").ZodString>]>>;
|
|
7
9
|
include: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
@@ -23,8 +25,20 @@ export declare const FieldsSchema: import("zod").ZodOptional<import("zod").ZodUn
|
|
|
23
25
|
limit: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
24
26
|
offset: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
25
27
|
skip: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
26
|
-
}, import("zod/v4/core").$strip>>]
|
|
28
|
+
}, import("zod/v4/core").$strip>>]>>;
|
|
29
|
+
/** The `include` array: each entry names a `relation` and may carry a nested `scope` filter. Optional. */
|
|
30
|
+
export declare const InclusionSchema: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
27
31
|
relation: import("zod").ZodString;
|
|
28
32
|
scope: import("zod").ZodOptional<import("zod").ZodLazy<import("zod").ZodType<any, unknown, import("zod/v4/core").$ZodTypeInternals<any, unknown>>>>;
|
|
29
|
-
}, import("zod/v4/core").$strip
|
|
33
|
+
}, import("zod/v4/core").$strip>>>;
|
|
34
|
+
/** Maximum number of rows; a non-negative integer, optional. */
|
|
35
|
+
export declare const LimitSchema: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
36
|
+
/** Number of rows to offset for pagination; a non-negative integer, optional. */
|
|
37
|
+
export declare const OffsetSchema: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
38
|
+
/** Sort order as strings such as `createdAt DESC`; JSON paths like `metadata.priority DESC` are allowed. Optional. */
|
|
39
|
+
export declare const OrderBySchema: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
40
|
+
/** Number of rows to skip for pagination; a non-negative integer, optional. */
|
|
41
|
+
export declare const SkipSchema: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
42
|
+
/** Query conditions with nested `and` / `or`. Accepts an object or a JSON string; a malformed string becomes a validation issue. */
|
|
43
|
+
export declare const WhereSchema: import("zod").ZodUnion<readonly [import("zod").ZodType<any, unknown, import("zod/v4/core").$ZodTypeInternals<any, unknown>>, import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<any, string>>, import("zod").ZodType<any, unknown, import("zod/v4/core").$ZodTypeInternals<any, unknown>>>]>;
|
|
30
44
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -2,5 +2,21 @@ import { QuerySchemaFactory } from './builder.js';
|
|
|
2
2
|
export * from './builder.js';
|
|
3
3
|
export * from './common/index.js';
|
|
4
4
|
/** Ready-to-use schemas with no documentation metadata attached - the browser case, and the reason most consumers never touch `QuerySchemaFactory.build` directly. */
|
|
5
|
-
|
|
5
|
+
const schemas = QuerySchemaFactory.build();
|
|
6
|
+
/** Field selection: an array of names to include, or an object of `name: boolean`. Optional. */
|
|
7
|
+
export const FieldsSchema = schemas.FieldsSchema;
|
|
8
|
+
/** The whole filter: `where`, `fields`, `include`, `order`, `limit`, `offset` and `skip`. Accepts an object or a JSON string; a malformed string becomes a validation issue. */
|
|
9
|
+
export const FilterSchema = schemas.FilterSchema;
|
|
10
|
+
/** The `include` array: each entry names a `relation` and may carry a nested `scope` filter. Optional. */
|
|
11
|
+
export const InclusionSchema = schemas.InclusionSchema;
|
|
12
|
+
/** Maximum number of rows; a non-negative integer, optional. */
|
|
13
|
+
export const LimitSchema = schemas.LimitSchema;
|
|
14
|
+
/** Number of rows to offset for pagination; a non-negative integer, optional. */
|
|
15
|
+
export const OffsetSchema = schemas.OffsetSchema;
|
|
16
|
+
/** Sort order as strings such as `createdAt DESC`; JSON paths like `metadata.priority DESC` are allowed. Optional. */
|
|
17
|
+
export const OrderBySchema = schemas.OrderBySchema;
|
|
18
|
+
/** Number of rows to skip for pagination; a non-negative integer, optional. */
|
|
19
|
+
export const SkipSchema = schemas.SkipSchema;
|
|
20
|
+
/** Query conditions with nested `and` / `or`. Accepts an object or a JSON string; a malformed string becomes a validation issue. */
|
|
21
|
+
export const WhereSchema = schemas.WhereSchema;
|
|
6
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAE/C,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AAEzB,sKAAsK;AACtK,MAAM,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAE/C,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AAEzB,sKAAsK;AACtK,MAAM,OAAO,GAAG,kBAAkB,CAAC,KAAK,EAAE,CAAC;AAE3C,gGAAgG;AAChG,MAAM,CAAC,MAAM,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;AAEjD,gLAAgL;AAChL,MAAM,CAAC,MAAM,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;AAEjD,0GAA0G;AAC1G,MAAM,CAAC,MAAM,eAAe,GAAG,OAAO,CAAC,eAAe,CAAC;AAEvD,gEAAgE;AAChE,MAAM,CAAC,MAAM,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;AAE/C,iFAAiF;AACjF,MAAM,CAAC,MAAM,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;AAEjD,sHAAsH;AACtH,MAAM,CAAC,MAAM,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC;AAEnD,+EAA+E;AAC/E,MAAM,CAAC,MAAM,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC;AAE7C,oIAAoI;AACpI,MAAM,CAAC,MAAM,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC","sourcesContent":["import { QuerySchemaFactory } from './builder';\n\nexport * from './builder';\nexport * from './common';\n\n/** Ready-to-use schemas with no documentation metadata attached - the browser case, and the reason most consumers never touch `QuerySchemaFactory.build` directly. */\nconst schemas = QuerySchemaFactory.build();\n\n/** Field selection: an array of names to include, or an object of `name: boolean`. Optional. */\nexport const FieldsSchema = schemas.FieldsSchema;\n\n/** The whole filter: `where`, `fields`, `include`, `order`, `limit`, `offset` and `skip`. Accepts an object or a JSON string; a malformed string becomes a validation issue. */\nexport const FilterSchema = schemas.FilterSchema;\n\n/** The `include` array: each entry names a `relation` and may carry a nested `scope` filter. Optional. */\nexport const InclusionSchema = schemas.InclusionSchema;\n\n/** Maximum number of rows; a non-negative integer, optional. */\nexport const LimitSchema = schemas.LimitSchema;\n\n/** Number of rows to offset for pagination; a non-negative integer, optional. */\nexport const OffsetSchema = schemas.OffsetSchema;\n\n/** Sort order as strings such as `createdAt DESC`; JSON paths like `metadata.priority DESC` are allowed. Optional. */\nexport const OrderBySchema = schemas.OrderBySchema;\n\n/** Number of rows to skip for pagination; a non-negative integer, optional. */\nexport const SkipSchema = schemas.SkipSchema;\n\n/** Query conditions with nested `and` / `or`. Accepts an object or a JSON string; a malformed string becomes a validation issue. */\nexport const WhereSchema = schemas.WhereSchema;\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@venizia/ignis-filter",
|
|
3
|
-
"version": "0.4.7-
|
|
3
|
+
"version": "0.4.7-1",
|
|
4
4
|
"description": "Engine-neutral query filter vocabulary for TypeScript: the `{ where, order, limit, offset, skip, fields, include }` shape, comparison/pattern/null/array/logical operators, and sort direction constants. Isomorphic by construction - no node builtins and no server-only peer, so the same filter language serves a server repository and a browser data layer.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"browser",
|
|
@@ -61,12 +61,12 @@
|
|
|
61
61
|
"force-update": "sh ../../scripts/build/force-update.sh"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@venizia/ignis-inversion": "0.4.7-
|
|
64
|
+
"@venizia/ignis-inversion": "0.4.7-1",
|
|
65
65
|
"zod": "^4.6.7"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@types/bun": "^1.4.3",
|
|
69
|
-
"@venizia/dev-configs": "0.4.8-
|
|
69
|
+
"@venizia/dev-configs": "0.4.8-1",
|
|
70
70
|
"eslint": "^10.13.0",
|
|
71
71
|
"oxlint": "1.89.0",
|
|
72
72
|
"oxlint-tsgolint": "7.0.2004",
|