pocketbase-zod-schema 0.1.3 → 0.2.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.
- package/CHANGELOG.md +14 -0
- package/README.md +233 -98
- package/dist/cli/index.cjs +449 -108
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.js +447 -106
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/migrate.cjs +452 -111
- package/dist/cli/migrate.cjs.map +1 -1
- package/dist/cli/migrate.js +447 -106
- package/dist/cli/migrate.js.map +1 -1
- package/dist/index.cjs +593 -175
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +583 -172
- package/dist/index.js.map +1 -1
- package/dist/migration/analyzer.cjs +44 -6
- package/dist/migration/analyzer.cjs.map +1 -1
- package/dist/migration/analyzer.d.cts +11 -1
- package/dist/migration/analyzer.d.ts +11 -1
- package/dist/migration/analyzer.js +44 -7
- package/dist/migration/analyzer.js.map +1 -1
- package/dist/migration/diff.cjs +21 -3
- package/dist/migration/diff.cjs.map +1 -1
- package/dist/migration/diff.js +21 -3
- package/dist/migration/diff.js.map +1 -1
- package/dist/migration/index.cjs +500 -129
- package/dist/migration/index.cjs.map +1 -1
- package/dist/migration/index.d.cts +1 -1
- package/dist/migration/index.d.ts +1 -1
- package/dist/migration/index.js +499 -129
- package/dist/migration/index.js.map +1 -1
- package/dist/migration/snapshot.cjs +432 -118
- package/dist/migration/snapshot.cjs.map +1 -1
- package/dist/migration/snapshot.d.cts +34 -12
- package/dist/migration/snapshot.d.ts +34 -12
- package/dist/migration/snapshot.js +430 -117
- package/dist/migration/snapshot.js.map +1 -1
- package/dist/mutator.cjs +20 -21
- package/dist/mutator.cjs.map +1 -1
- package/dist/mutator.d.cts +4 -4
- package/dist/mutator.d.ts +4 -4
- package/dist/mutator.js +20 -21
- package/dist/mutator.js.map +1 -1
- package/dist/schema.cjs +69 -10
- package/dist/schema.cjs.map +1 -1
- package/dist/schema.d.cts +98 -8
- package/dist/schema.d.ts +98 -8
- package/dist/schema.js +62 -9
- package/dist/schema.js.map +1 -1
- package/dist/types.d.cts +5 -2
- package/dist/types.d.ts +5 -2
- package/dist/user-DTJQIj4K.d.cts +149 -0
- package/dist/user-DTJQIj4K.d.ts +149 -0
- package/package.json +3 -3
- package/dist/user-C39DQ40N.d.cts +0 -53
- package/dist/user-C39DQ40N.d.ts +0 -53
package/dist/user-C39DQ40N.d.ts
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
/** -- User Collections -- */
|
|
4
|
-
declare const UserInputSchema: z.ZodObject<{
|
|
5
|
-
name: z.ZodOptional<z.ZodString>;
|
|
6
|
-
email: z.ZodString;
|
|
7
|
-
password: z.ZodString;
|
|
8
|
-
passwordConfirm: z.ZodString;
|
|
9
|
-
avatar: z.ZodOptional<z.ZodType<File, z.ZodTypeDef, File>>;
|
|
10
|
-
}, "strip", z.ZodTypeAny, {
|
|
11
|
-
email: string;
|
|
12
|
-
password: string;
|
|
13
|
-
passwordConfirm: string;
|
|
14
|
-
name?: string | undefined;
|
|
15
|
-
avatar?: File | undefined;
|
|
16
|
-
}, {
|
|
17
|
-
email: string;
|
|
18
|
-
password: string;
|
|
19
|
-
passwordConfirm: string;
|
|
20
|
-
name?: string | undefined;
|
|
21
|
-
avatar?: File | undefined;
|
|
22
|
-
}>;
|
|
23
|
-
declare const UserSchema: z.ZodObject<{
|
|
24
|
-
name: z.ZodOptional<z.ZodString>;
|
|
25
|
-
email: z.ZodString;
|
|
26
|
-
password: z.ZodString;
|
|
27
|
-
avatar: z.ZodOptional<z.ZodType<File, z.ZodTypeDef, File>>;
|
|
28
|
-
} & {
|
|
29
|
-
id: z.ZodString;
|
|
30
|
-
collectionId: z.ZodString;
|
|
31
|
-
collectionName: z.ZodString;
|
|
32
|
-
expand: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
33
|
-
}, "strip", z.ZodTypeAny, {
|
|
34
|
-
email: string;
|
|
35
|
-
password: string;
|
|
36
|
-
id: string;
|
|
37
|
-
collectionId: string;
|
|
38
|
-
collectionName: string;
|
|
39
|
-
expand: Record<string, any>;
|
|
40
|
-
name?: string | undefined;
|
|
41
|
-
avatar?: File | undefined;
|
|
42
|
-
}, {
|
|
43
|
-
email: string;
|
|
44
|
-
password: string;
|
|
45
|
-
id: string;
|
|
46
|
-
collectionId: string;
|
|
47
|
-
collectionName: string;
|
|
48
|
-
expand: Record<string, any>;
|
|
49
|
-
name?: string | undefined;
|
|
50
|
-
avatar?: File | undefined;
|
|
51
|
-
}>;
|
|
52
|
-
|
|
53
|
-
export { UserInputSchema as U, UserSchema as a };
|