@ai0x0/utils 0.0.45 → 0.0.47
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/.agents/skills/ai0x0-utils/backend/SKILL.md +3 -1
- package/SKILL.md +3 -1
- package/es/backend/route-operation/delete-operation.d.ts +12 -6
- package/es/backend/route-operation/delete-operation.js +52 -46
- package/es/backend/route-operation/get-list-operation.d.ts +5 -1
- package/es/backend/route-operation/get-list-operation.js +30 -23
- package/es/backend/route-operation/get-operation.d.ts +5 -1
- package/es/backend/route-operation/get-operation.js +30 -23
- package/es/backend/route-operation/post-operation.d.ts +5 -1
- package/es/backend/route-operation/put-operation.d.ts +5 -1
- package/es/backend/sqlite/route-operation/delete-operation.d.ts +12 -6
- package/es/backend/sqlite/route-operation/delete-operation.js +52 -46
- package/es/backend/sqlite/route-operation/get-list-operation.d.ts +5 -1
- package/es/backend/sqlite/route-operation/get-list-operation.js +30 -23
- package/es/backend/sqlite/route-operation/get-operation.d.ts +5 -1
- package/es/backend/sqlite/route-operation/get-operation.js +30 -23
- package/es/backend/sqlite/route-operation/post-operation.d.ts +5 -1
- package/es/backend/sqlite/route-operation/put-operation.d.ts +5 -1
- package/es/backend/sqlite/schemas/index.d.ts +69 -5
- package/es/backend/sqlite/schemas/index.js +0 -1
- package/lib/backend/route-operation/delete-operation.d.ts +12 -6
- package/lib/backend/route-operation/delete-operation.js +10 -5
- package/lib/backend/route-operation/get-list-operation.d.ts +5 -1
- package/lib/backend/route-operation/get-list-operation.js +10 -6
- package/lib/backend/route-operation/get-operation.d.ts +5 -1
- package/lib/backend/route-operation/get-operation.js +10 -6
- package/lib/backend/route-operation/post-operation.d.ts +5 -1
- package/lib/backend/route-operation/put-operation.d.ts +5 -1
- package/lib/backend/sqlite/route-operation/delete-operation.d.ts +12 -6
- package/lib/backend/sqlite/route-operation/delete-operation.js +10 -5
- package/lib/backend/sqlite/route-operation/get-list-operation.d.ts +5 -1
- package/lib/backend/sqlite/route-operation/get-list-operation.js +10 -6
- package/lib/backend/sqlite/route-operation/get-operation.d.ts +5 -1
- package/lib/backend/sqlite/route-operation/get-operation.js +10 -6
- package/lib/backend/sqlite/route-operation/post-operation.d.ts +5 -1
- package/lib/backend/sqlite/route-operation/put-operation.d.ts +5 -1
- package/lib/backend/sqlite/schemas/index.d.ts +69 -5
- package/package.json +1 -1
|
@@ -42,12 +42,76 @@ export declare const BASIC_UPDATE_OMIT: {
|
|
|
42
42
|
readonly createdAt: true;
|
|
43
43
|
readonly updatedAt: true;
|
|
44
44
|
};
|
|
45
|
-
export declare const queryListSchema: (schema:
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
45
|
+
export declare const queryListSchema: <Incoming extends z.ZodObject<z.core.$ZodLooseShape, z.core.$strip>>(schema: Incoming) => z.ZodObject<(("creatorId" | "orderBy" | "orderDir" | "pageSize" | "current" | "createdAtFrom" | "createdAtTo") & keyof Incoming["shape"] extends never ? {
|
|
46
|
+
current: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
47
|
+
pageSize: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
48
|
+
createdAtFrom: z.ZodOptional<z.ZodString>;
|
|
49
|
+
createdAtTo: z.ZodOptional<z.ZodString>;
|
|
50
|
+
orderBy: z.ZodOptional<z.ZodString>;
|
|
51
|
+
creatorId: z.ZodOptional<z.ZodString>;
|
|
52
|
+
orderDir: z.ZodOptional<z.ZodEnum<{
|
|
53
|
+
asc: "asc";
|
|
54
|
+
desc: "desc";
|
|
55
|
+
}>>;
|
|
56
|
+
} & Incoming["shape"] : ({
|
|
57
|
+
current: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
58
|
+
pageSize: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
59
|
+
createdAtFrom: z.ZodOptional<z.ZodString>;
|
|
60
|
+
createdAtTo: z.ZodOptional<z.ZodString>;
|
|
61
|
+
orderBy: z.ZodOptional<z.ZodString>;
|
|
62
|
+
creatorId: z.ZodOptional<z.ZodString>;
|
|
63
|
+
orderDir: z.ZodOptional<z.ZodEnum<{
|
|
64
|
+
asc: "asc";
|
|
65
|
+
desc: "desc";
|
|
66
|
+
}>>;
|
|
67
|
+
} extends infer T_1 extends z.core.util.SomeObject ? { [K in keyof T_1 as K extends keyof Incoming["shape"] ? never : K]: {
|
|
68
|
+
current: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
69
|
+
pageSize: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
70
|
+
createdAtFrom: z.ZodOptional<z.ZodString>;
|
|
71
|
+
createdAtTo: z.ZodOptional<z.ZodString>;
|
|
72
|
+
orderBy: z.ZodOptional<z.ZodString>;
|
|
73
|
+
creatorId: z.ZodOptional<z.ZodString>;
|
|
74
|
+
orderDir: z.ZodOptional<z.ZodEnum<{
|
|
75
|
+
asc: "asc";
|
|
76
|
+
desc: "desc";
|
|
77
|
+
}>>;
|
|
78
|
+
}[K]; } : never) & (Incoming["shape"] extends infer T_2 extends z.core.util.SomeObject ? { [K_1 in keyof T_2]: Incoming["shape"][K_1]; } : never)) extends infer T ? { [k in keyof T]: (("creatorId" | "orderBy" | "orderDir" | "pageSize" | "current" | "createdAtFrom" | "createdAtTo") & keyof Incoming["shape"] extends never ? {
|
|
79
|
+
current: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
80
|
+
pageSize: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
81
|
+
createdAtFrom: z.ZodOptional<z.ZodString>;
|
|
82
|
+
createdAtTo: z.ZodOptional<z.ZodString>;
|
|
83
|
+
orderBy: z.ZodOptional<z.ZodString>;
|
|
84
|
+
creatorId: z.ZodOptional<z.ZodString>;
|
|
85
|
+
orderDir: z.ZodOptional<z.ZodEnum<{
|
|
86
|
+
asc: "asc";
|
|
87
|
+
desc: "desc";
|
|
88
|
+
}>>;
|
|
89
|
+
} & Incoming["shape"] : ({
|
|
90
|
+
current: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
91
|
+
pageSize: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
92
|
+
createdAtFrom: z.ZodOptional<z.ZodString>;
|
|
93
|
+
createdAtTo: z.ZodOptional<z.ZodString>;
|
|
94
|
+
orderBy: z.ZodOptional<z.ZodString>;
|
|
95
|
+
creatorId: z.ZodOptional<z.ZodString>;
|
|
96
|
+
orderDir: z.ZodOptional<z.ZodEnum<{
|
|
97
|
+
asc: "asc";
|
|
98
|
+
desc: "desc";
|
|
99
|
+
}>>;
|
|
100
|
+
} extends infer T_1 extends z.core.util.SomeObject ? { [K in keyof T_1 as K extends keyof Incoming["shape"] ? never : K]: {
|
|
101
|
+
current: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
102
|
+
pageSize: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
103
|
+
createdAtFrom: z.ZodOptional<z.ZodString>;
|
|
104
|
+
createdAtTo: z.ZodOptional<z.ZodString>;
|
|
105
|
+
orderBy: z.ZodOptional<z.ZodString>;
|
|
106
|
+
creatorId: z.ZodOptional<z.ZodString>;
|
|
107
|
+
orderDir: z.ZodOptional<z.ZodEnum<{
|
|
108
|
+
asc: "asc";
|
|
109
|
+
desc: "desc";
|
|
110
|
+
}>>;
|
|
111
|
+
}[K]; } : never) & (Incoming["shape"] extends infer T_2 extends z.core.util.SomeObject ? { [K_1 in keyof T_2]: Incoming["shape"][K_1]; } : never))[k]; } : never, Incoming["_zod"]["config"]>;
|
|
112
|
+
export declare const listBodySchema: <T extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>(schema: T) => z.ZodObject<{
|
|
49
113
|
total: z.ZodNumber;
|
|
50
|
-
data: z.ZodArray<
|
|
114
|
+
data: z.ZodArray<T>;
|
|
51
115
|
}, z.core.$strip>;
|
|
52
116
|
/**
|
|
53
117
|
* 基于 drizzle + drizzle-zod 快速生成带基础字段(id / 创建时间等)的
|