@kadirgun/lucid-bravo 0.1.6 → 0.1.7
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/build/validators/bravo.d.ts +10 -10
- package/build/validators/index.js +2 -2
- package/package.json +1 -1
|
@@ -15,8 +15,8 @@ export declare const bravoSchema: {
|
|
|
15
15
|
limit: import("@vinejs/vine/schema/base/literal").OptionalModifier<import("@vinejs/vine").VineNumber>;
|
|
16
16
|
page: import("@vinejs/vine/schema/base/literal").OptionalModifier<import("@vinejs/vine").VineNumber>;
|
|
17
17
|
include: import("@vinejs/vine").OptionalModifier<import("@vinejs/vine").VineArray<import("@vinejs/vine").VineString>>;
|
|
18
|
-
dimensions: import("@vinejs/vine").
|
|
19
|
-
metrics: import("@vinejs/vine").
|
|
18
|
+
dimensions: import("@vinejs/vine").VineUnion<import("@vinejs/vine").UnionConditional<import("@vinejs/vine").VineString> | import("@vinejs/vine").UnionConditional<import("@vinejs/vine").VineArray<import("@vinejs/vine").VineString>> | import("@vinejs/vine").UnionConditional<import("@vinejs/vine").VineOptional<undefined>>>;
|
|
19
|
+
metrics: import("@vinejs/vine").VineUnion<import("@vinejs/vine").UnionConditional<import("@vinejs/vine").VineString> | import("@vinejs/vine").UnionConditional<import("@vinejs/vine").VineArray<import("@vinejs/vine").VineString>> | import("@vinejs/vine").UnionConditional<import("@vinejs/vine").VineOptional<undefined>>>;
|
|
20
20
|
};
|
|
21
21
|
export declare const bravoValidator: import("@vinejs/vine").VineValidator<import("@vinejs/vine").VineObject<{
|
|
22
22
|
sort: import("@vinejs/vine").OptionalModifier<import("@vinejs/vine").VineObject<{
|
|
@@ -35,8 +35,8 @@ export declare const bravoValidator: import("@vinejs/vine").VineValidator<import
|
|
|
35
35
|
limit: import("@vinejs/vine/schema/base/literal").OptionalModifier<import("@vinejs/vine").VineNumber>;
|
|
36
36
|
page: import("@vinejs/vine/schema/base/literal").OptionalModifier<import("@vinejs/vine").VineNumber>;
|
|
37
37
|
include: import("@vinejs/vine").OptionalModifier<import("@vinejs/vine").VineArray<import("@vinejs/vine").VineString>>;
|
|
38
|
-
dimensions: import("@vinejs/vine").
|
|
39
|
-
metrics: import("@vinejs/vine").
|
|
38
|
+
dimensions: import("@vinejs/vine").VineUnion<import("@vinejs/vine").UnionConditional<import("@vinejs/vine").VineString> | import("@vinejs/vine").UnionConditional<import("@vinejs/vine").VineArray<import("@vinejs/vine").VineString>> | import("@vinejs/vine").UnionConditional<import("@vinejs/vine").VineOptional<undefined>>>;
|
|
39
|
+
metrics: import("@vinejs/vine").VineUnion<import("@vinejs/vine").UnionConditional<import("@vinejs/vine").VineString> | import("@vinejs/vine").UnionConditional<import("@vinejs/vine").VineArray<import("@vinejs/vine").VineString>> | import("@vinejs/vine").UnionConditional<import("@vinejs/vine").VineOptional<undefined>>>;
|
|
40
40
|
}, {
|
|
41
41
|
page?: string | number | null | undefined;
|
|
42
42
|
limit?: string | number | null | undefined;
|
|
@@ -45,8 +45,8 @@ export declare const bravoValidator: import("@vinejs/vine").VineValidator<import
|
|
|
45
45
|
order: "asc" | "desc";
|
|
46
46
|
} | null | undefined;
|
|
47
47
|
include?: string[] | null | undefined;
|
|
48
|
-
dimensions?: string[] | null | undefined;
|
|
49
|
-
metrics?: string[] | null | undefined;
|
|
48
|
+
dimensions?: string | string[] | null | undefined;
|
|
49
|
+
metrics?: string | string[] | null | undefined;
|
|
50
50
|
}, {
|
|
51
51
|
page?: number | undefined;
|
|
52
52
|
limit?: number | undefined;
|
|
@@ -55,8 +55,8 @@ export declare const bravoValidator: import("@vinejs/vine").VineValidator<import
|
|
|
55
55
|
order: "asc" | "desc";
|
|
56
56
|
} | undefined;
|
|
57
57
|
include?: string[] | undefined;
|
|
58
|
-
dimensions?: string[] | undefined;
|
|
59
|
-
metrics?: string[] | undefined;
|
|
58
|
+
dimensions?: string | string[] | undefined;
|
|
59
|
+
metrics?: string | string[] | undefined;
|
|
60
60
|
}, {
|
|
61
61
|
page?: number | undefined;
|
|
62
62
|
limit?: number | undefined;
|
|
@@ -65,6 +65,6 @@ export declare const bravoValidator: import("@vinejs/vine").VineValidator<import
|
|
|
65
65
|
order: "asc" | "desc";
|
|
66
66
|
} | undefined;
|
|
67
67
|
include?: string[] | undefined;
|
|
68
|
-
dimensions?: string[] | undefined;
|
|
69
|
-
metrics?: string[] | undefined;
|
|
68
|
+
dimensions?: string | string[] | undefined;
|
|
69
|
+
metrics?: string | string[] | undefined;
|
|
70
70
|
}>, Record<string, any> | undefined>;
|
|
@@ -6830,8 +6830,8 @@ const bravoSchema = {
|
|
|
6830
6830
|
limit: vine.number().positive().max(100).optional(),
|
|
6831
6831
|
page: vine.number().positive().optional(),
|
|
6832
6832
|
include: vine.array(vine.string()).optional(),
|
|
6833
|
-
dimensions: vine.array(vine.string()).optional(),
|
|
6834
|
-
metrics: vine.array(vine.string()).optional()
|
|
6833
|
+
dimensions: vine.union([vine.union.if((val) => typeof val === "string", vine.string()), vine.union.if((val) => Array.isArray(val), vine.array(vine.string()))]).optional(),
|
|
6834
|
+
metrics: vine.union([vine.union.if((val) => typeof val === "string", vine.string()), vine.union.if((val) => Array.isArray(val), vine.array(vine.string()))]).optional()
|
|
6835
6835
|
};
|
|
6836
6836
|
const bravoValidator = vine.create(bravoSchema);
|
|
6837
6837
|
//#endregion
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@kadirgun/lucid-bravo",
|
|
3
3
|
"description": "A powerful, fluent query builder for AdonisJS Lucid to handle filtering, sorting and pagination in a single flow",
|
|
4
4
|
"homepage": "https://github.com/kadirgun/lucid-bravo",
|
|
5
|
-
"version": "0.1.
|
|
5
|
+
"version": "0.1.7",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": ">=24.0.0"
|
|
8
8
|
},
|