pocketbase-zod-schema 0.1.2 → 0.1.3
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 +8 -0
- package/README.md +329 -99
- package/dist/cli/index.cjs +176 -55
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.js +176 -55
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/migrate.cjs +196 -58
- package/dist/cli/migrate.cjs.map +1 -1
- package/dist/cli/migrate.js +194 -57
- package/dist/cli/migrate.js.map +1 -1
- package/dist/cli/utils/index.cjs +1 -1
- package/dist/cli/utils/index.cjs.map +1 -1
- package/dist/cli/utils/index.js +1 -1
- package/dist/cli/utils/index.js.map +1 -1
- package/dist/index.cjs +197 -96
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +197 -95
- package/dist/index.js.map +1 -1
- package/dist/migration/analyzer.cjs +101 -28
- package/dist/migration/analyzer.cjs.map +1 -1
- package/dist/migration/analyzer.js +101 -28
- package/dist/migration/analyzer.js.map +1 -1
- package/dist/migration/generator.cjs +60 -25
- package/dist/migration/generator.cjs.map +1 -1
- package/dist/migration/generator.d.cts +9 -5
- package/dist/migration/generator.d.ts +9 -5
- package/dist/migration/generator.js +60 -25
- package/dist/migration/generator.js.map +1 -1
- package/dist/migration/index.cjs +162 -53
- package/dist/migration/index.cjs.map +1 -1
- package/dist/migration/index.js +162 -53
- package/dist/migration/index.js.map +1 -1
- package/dist/migration/snapshot.cjs +1 -0
- package/dist/migration/snapshot.cjs.map +1 -1
- package/dist/migration/snapshot.js +1 -0
- package/dist/migration/snapshot.js.map +1 -1
- package/dist/migration/utils/index.cjs +19 -17
- package/dist/migration/utils/index.cjs.map +1 -1
- package/dist/migration/utils/index.d.cts +3 -1
- package/dist/migration/utils/index.d.ts +3 -1
- package/dist/migration/utils/index.js +19 -17
- package/dist/migration/utils/index.js.map +1 -1
- package/dist/mutator.cjs +9 -11
- package/dist/mutator.cjs.map +1 -1
- package/dist/mutator.d.cts +5 -9
- package/dist/mutator.d.ts +5 -9
- package/dist/mutator.js +9 -11
- package/dist/mutator.js.map +1 -1
- package/dist/schema.cjs +50 -53
- package/dist/schema.cjs.map +1 -1
- package/dist/schema.d.cts +94 -12
- package/dist/schema.d.ts +94 -12
- package/dist/schema.js +50 -52
- package/dist/schema.js.map +1 -1
- package/dist/types.d.cts +2 -5
- package/dist/types.d.ts +2 -5
- package/dist/user-C39DQ40N.d.cts +53 -0
- package/dist/user-C39DQ40N.d.ts +53 -0
- package/package.json +2 -3
- package/dist/user-jS1aYoeD.d.cts +0 -123
- package/dist/user-jS1aYoeD.d.ts +0 -123
package/dist/user-jS1aYoeD.d.ts
DELETED
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
declare const ProjectInputSchema: z.ZodObject<{
|
|
4
|
-
title: z.ZodString;
|
|
5
|
-
content: z.ZodString;
|
|
6
|
-
status: z.ZodEnum<["draft", "active", "complete", "fail"]>;
|
|
7
|
-
summary: z.ZodOptional<z.ZodString>;
|
|
8
|
-
User: z.ZodString;
|
|
9
|
-
SubscriberUsers: z.ZodArray<z.ZodString, "many">;
|
|
10
|
-
} & {
|
|
11
|
-
imageFiles: z.ZodArray<z.ZodType<File, z.ZodTypeDef, File>, "many">;
|
|
12
|
-
}, "strip", z.ZodTypeAny, {
|
|
13
|
-
status: "draft" | "active" | "complete" | "fail";
|
|
14
|
-
User: string;
|
|
15
|
-
title: string;
|
|
16
|
-
content: string;
|
|
17
|
-
SubscriberUsers: string[];
|
|
18
|
-
imageFiles: File[];
|
|
19
|
-
summary?: string | undefined;
|
|
20
|
-
}, {
|
|
21
|
-
status: "draft" | "active" | "complete" | "fail";
|
|
22
|
-
User: string;
|
|
23
|
-
title: string;
|
|
24
|
-
content: string;
|
|
25
|
-
SubscriberUsers: string[];
|
|
26
|
-
imageFiles: File[];
|
|
27
|
-
summary?: string | undefined;
|
|
28
|
-
}>;
|
|
29
|
-
declare const ProjectSchema: z.ZodObject<Omit<{
|
|
30
|
-
title: z.ZodString;
|
|
31
|
-
content: z.ZodString;
|
|
32
|
-
status: z.ZodEnum<["draft", "active", "complete", "fail"]>;
|
|
33
|
-
summary: z.ZodOptional<z.ZodString>;
|
|
34
|
-
User: z.ZodString;
|
|
35
|
-
SubscriberUsers: z.ZodArray<z.ZodString, "many">;
|
|
36
|
-
} & {
|
|
37
|
-
imageFiles: z.ZodArray<z.ZodType<File, z.ZodTypeDef, File>, "many">;
|
|
38
|
-
}, "imageFiles"> & {
|
|
39
|
-
thumbnailURL: z.ZodOptional<z.ZodString>;
|
|
40
|
-
imageFiles: z.ZodArray<z.ZodString, "many">;
|
|
41
|
-
id: z.ZodString;
|
|
42
|
-
collectionId: z.ZodString;
|
|
43
|
-
collectionName: z.ZodString;
|
|
44
|
-
expand: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
45
|
-
}, "strip", z.ZodTypeAny, {
|
|
46
|
-
status: "draft" | "active" | "complete" | "fail";
|
|
47
|
-
User: string;
|
|
48
|
-
title: string;
|
|
49
|
-
content: string;
|
|
50
|
-
SubscriberUsers: string[];
|
|
51
|
-
imageFiles: string[];
|
|
52
|
-
id: string;
|
|
53
|
-
collectionId: string;
|
|
54
|
-
collectionName: string;
|
|
55
|
-
expand: Record<string, any>;
|
|
56
|
-
summary?: string | undefined;
|
|
57
|
-
thumbnailURL?: string | undefined;
|
|
58
|
-
}, {
|
|
59
|
-
status: "draft" | "active" | "complete" | "fail";
|
|
60
|
-
User: string;
|
|
61
|
-
title: string;
|
|
62
|
-
content: string;
|
|
63
|
-
SubscriberUsers: string[];
|
|
64
|
-
imageFiles: string[];
|
|
65
|
-
id: string;
|
|
66
|
-
collectionId: string;
|
|
67
|
-
collectionName: string;
|
|
68
|
-
expand: Record<string, any>;
|
|
69
|
-
summary?: string | undefined;
|
|
70
|
-
thumbnailURL?: string | undefined;
|
|
71
|
-
}>;
|
|
72
|
-
|
|
73
|
-
/** -- User Collections -- */
|
|
74
|
-
declare const UserInputSchema: z.ZodObject<{
|
|
75
|
-
name: z.ZodOptional<z.ZodString>;
|
|
76
|
-
email: z.ZodString;
|
|
77
|
-
password: z.ZodString;
|
|
78
|
-
passwordConfirm: z.ZodString;
|
|
79
|
-
avatar: z.ZodOptional<z.ZodType<File, z.ZodTypeDef, File>>;
|
|
80
|
-
}, "strip", z.ZodTypeAny, {
|
|
81
|
-
email: string;
|
|
82
|
-
password: string;
|
|
83
|
-
passwordConfirm: string;
|
|
84
|
-
name?: string | undefined;
|
|
85
|
-
avatar?: File | undefined;
|
|
86
|
-
}, {
|
|
87
|
-
email: string;
|
|
88
|
-
password: string;
|
|
89
|
-
passwordConfirm: string;
|
|
90
|
-
name?: string | undefined;
|
|
91
|
-
avatar?: File | undefined;
|
|
92
|
-
}>;
|
|
93
|
-
declare const UserSchema: z.ZodObject<{
|
|
94
|
-
name: z.ZodOptional<z.ZodString>;
|
|
95
|
-
email: z.ZodString;
|
|
96
|
-
password: z.ZodString;
|
|
97
|
-
avatar: z.ZodOptional<z.ZodType<File, z.ZodTypeDef, File>>;
|
|
98
|
-
} & {
|
|
99
|
-
id: z.ZodString;
|
|
100
|
-
collectionId: z.ZodString;
|
|
101
|
-
collectionName: z.ZodString;
|
|
102
|
-
expand: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
103
|
-
}, "strip", z.ZodTypeAny, {
|
|
104
|
-
id: string;
|
|
105
|
-
collectionId: string;
|
|
106
|
-
collectionName: string;
|
|
107
|
-
expand: Record<string, any>;
|
|
108
|
-
email: string;
|
|
109
|
-
password: string;
|
|
110
|
-
name?: string | undefined;
|
|
111
|
-
avatar?: File | undefined;
|
|
112
|
-
}, {
|
|
113
|
-
id: string;
|
|
114
|
-
collectionId: string;
|
|
115
|
-
collectionName: string;
|
|
116
|
-
expand: Record<string, any>;
|
|
117
|
-
email: string;
|
|
118
|
-
password: string;
|
|
119
|
-
name?: string | undefined;
|
|
120
|
-
avatar?: File | undefined;
|
|
121
|
-
}>;
|
|
122
|
-
|
|
123
|
-
export { ProjectInputSchema as P, UserInputSchema as U, ProjectSchema as a, UserSchema as b };
|