pocketbase-zod-schema 0.2.3 → 0.2.4

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,161 +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
- OwnerUser: 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
- title: string;
15
- content: string;
16
- OwnerUser: string;
17
- SubscriberUsers: string[];
18
- imageFiles: File[];
19
- summary?: string | undefined;
20
- }, {
21
- status: "draft" | "active" | "complete" | "fail";
22
- title: string;
23
- content: string;
24
- OwnerUser: 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
- OwnerUser: 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
- created: z.ZodString;
46
- updated: z.ZodString;
47
- }, "strip", z.ZodTypeAny, {
48
- status: "draft" | "active" | "complete" | "fail";
49
- collectionName: string;
50
- title: string;
51
- content: string;
52
- OwnerUser: string;
53
- SubscriberUsers: string[];
54
- imageFiles: string[];
55
- id: string;
56
- collectionId: string;
57
- expand: Record<string, any>;
58
- created: string;
59
- updated: string;
60
- summary?: string | undefined;
61
- thumbnailURL?: string | undefined;
62
- }, {
63
- status: "draft" | "active" | "complete" | "fail";
64
- collectionName: string;
65
- title: string;
66
- content: string;
67
- OwnerUser: string;
68
- SubscriberUsers: string[];
69
- imageFiles: string[];
70
- id: string;
71
- collectionId: string;
72
- expand: Record<string, any>;
73
- created: string;
74
- updated: string;
75
- summary?: string | undefined;
76
- thumbnailURL?: string | undefined;
77
- }>;
78
- declare const ProjectCollection: z.ZodObject<any, z.UnknownKeysParam, z.ZodTypeAny, {
79
- [x: string]: any;
80
- }, {
81
- [x: string]: any;
82
- }>;
83
-
84
- /** -- User Collections -- */
85
- declare const UserInputSchema: z.ZodObject<{
86
- name: z.ZodOptional<z.ZodString>;
87
- email: z.ZodString;
88
- password: z.ZodString;
89
- passwordConfirm: z.ZodString;
90
- avatar: z.ZodOptional<z.ZodType<File, z.ZodTypeDef, File>>;
91
- }, "strip", z.ZodTypeAny, {
92
- email: string;
93
- password: string;
94
- passwordConfirm: string;
95
- name?: string | undefined;
96
- avatar?: File | undefined;
97
- }, {
98
- email: string;
99
- password: string;
100
- passwordConfirm: string;
101
- name?: string | undefined;
102
- avatar?: File | undefined;
103
- }>;
104
- declare const UserCollectionSchema: z.ZodObject<{
105
- name: z.ZodOptional<z.ZodString>;
106
- email: z.ZodString;
107
- password: z.ZodString;
108
- avatar: z.ZodOptional<z.ZodType<File, z.ZodTypeDef, File>>;
109
- }, "strip", z.ZodTypeAny, {
110
- email: string;
111
- password: string;
112
- name?: string | undefined;
113
- avatar?: File | undefined;
114
- }, {
115
- email: string;
116
- password: string;
117
- name?: string | undefined;
118
- avatar?: File | undefined;
119
- }>;
120
- declare const UserSchema: z.ZodObject<{
121
- name: z.ZodOptional<z.ZodString>;
122
- email: z.ZodString;
123
- password: z.ZodString;
124
- avatar: z.ZodOptional<z.ZodType<File, z.ZodTypeDef, File>>;
125
- } & {
126
- id: z.ZodString;
127
- collectionId: z.ZodString;
128
- collectionName: z.ZodString;
129
- expand: z.ZodRecord<z.ZodString, z.ZodAny>;
130
- created: z.ZodString;
131
- updated: z.ZodString;
132
- }, "strip", z.ZodTypeAny, {
133
- collectionName: string;
134
- id: string;
135
- collectionId: string;
136
- expand: Record<string, any>;
137
- created: string;
138
- updated: string;
139
- email: string;
140
- password: string;
141
- name?: string | undefined;
142
- avatar?: File | undefined;
143
- }, {
144
- collectionName: string;
145
- id: string;
146
- collectionId: string;
147
- expand: Record<string, any>;
148
- created: string;
149
- updated: string;
150
- email: string;
151
- password: string;
152
- name?: string | undefined;
153
- avatar?: File | undefined;
154
- }>;
155
- declare const UserCollection: z.ZodObject<any, z.UnknownKeysParam, z.ZodTypeAny, {
156
- [x: string]: any;
157
- }, {
158
- [x: string]: any;
159
- }>;
160
-
161
- export { ProjectCollection as P, UserCollection as U, ProjectInputSchema as a, ProjectSchema as b, UserInputSchema as c, UserCollectionSchema as d, UserSchema as e };
@@ -1,161 +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
- OwnerUser: 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
- title: string;
15
- content: string;
16
- OwnerUser: string;
17
- SubscriberUsers: string[];
18
- imageFiles: File[];
19
- summary?: string | undefined;
20
- }, {
21
- status: "draft" | "active" | "complete" | "fail";
22
- title: string;
23
- content: string;
24
- OwnerUser: 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
- OwnerUser: 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
- created: z.ZodString;
46
- updated: z.ZodString;
47
- }, "strip", z.ZodTypeAny, {
48
- status: "draft" | "active" | "complete" | "fail";
49
- collectionName: string;
50
- title: string;
51
- content: string;
52
- OwnerUser: string;
53
- SubscriberUsers: string[];
54
- imageFiles: string[];
55
- id: string;
56
- collectionId: string;
57
- expand: Record<string, any>;
58
- created: string;
59
- updated: string;
60
- summary?: string | undefined;
61
- thumbnailURL?: string | undefined;
62
- }, {
63
- status: "draft" | "active" | "complete" | "fail";
64
- collectionName: string;
65
- title: string;
66
- content: string;
67
- OwnerUser: string;
68
- SubscriberUsers: string[];
69
- imageFiles: string[];
70
- id: string;
71
- collectionId: string;
72
- expand: Record<string, any>;
73
- created: string;
74
- updated: string;
75
- summary?: string | undefined;
76
- thumbnailURL?: string | undefined;
77
- }>;
78
- declare const ProjectCollection: z.ZodObject<any, z.UnknownKeysParam, z.ZodTypeAny, {
79
- [x: string]: any;
80
- }, {
81
- [x: string]: any;
82
- }>;
83
-
84
- /** -- User Collections -- */
85
- declare const UserInputSchema: z.ZodObject<{
86
- name: z.ZodOptional<z.ZodString>;
87
- email: z.ZodString;
88
- password: z.ZodString;
89
- passwordConfirm: z.ZodString;
90
- avatar: z.ZodOptional<z.ZodType<File, z.ZodTypeDef, File>>;
91
- }, "strip", z.ZodTypeAny, {
92
- email: string;
93
- password: string;
94
- passwordConfirm: string;
95
- name?: string | undefined;
96
- avatar?: File | undefined;
97
- }, {
98
- email: string;
99
- password: string;
100
- passwordConfirm: string;
101
- name?: string | undefined;
102
- avatar?: File | undefined;
103
- }>;
104
- declare const UserCollectionSchema: z.ZodObject<{
105
- name: z.ZodOptional<z.ZodString>;
106
- email: z.ZodString;
107
- password: z.ZodString;
108
- avatar: z.ZodOptional<z.ZodType<File, z.ZodTypeDef, File>>;
109
- }, "strip", z.ZodTypeAny, {
110
- email: string;
111
- password: string;
112
- name?: string | undefined;
113
- avatar?: File | undefined;
114
- }, {
115
- email: string;
116
- password: string;
117
- name?: string | undefined;
118
- avatar?: File | undefined;
119
- }>;
120
- declare const UserSchema: z.ZodObject<{
121
- name: z.ZodOptional<z.ZodString>;
122
- email: z.ZodString;
123
- password: z.ZodString;
124
- avatar: z.ZodOptional<z.ZodType<File, z.ZodTypeDef, File>>;
125
- } & {
126
- id: z.ZodString;
127
- collectionId: z.ZodString;
128
- collectionName: z.ZodString;
129
- expand: z.ZodRecord<z.ZodString, z.ZodAny>;
130
- created: z.ZodString;
131
- updated: z.ZodString;
132
- }, "strip", z.ZodTypeAny, {
133
- collectionName: string;
134
- id: string;
135
- collectionId: string;
136
- expand: Record<string, any>;
137
- created: string;
138
- updated: string;
139
- email: string;
140
- password: string;
141
- name?: string | undefined;
142
- avatar?: File | undefined;
143
- }, {
144
- collectionName: string;
145
- id: string;
146
- collectionId: string;
147
- expand: Record<string, any>;
148
- created: string;
149
- updated: string;
150
- email: string;
151
- password: string;
152
- name?: string | undefined;
153
- avatar?: File | undefined;
154
- }>;
155
- declare const UserCollection: z.ZodObject<any, z.UnknownKeysParam, z.ZodTypeAny, {
156
- [x: string]: any;
157
- }, {
158
- [x: string]: any;
159
- }>;
160
-
161
- export { ProjectCollection as P, UserCollection as U, ProjectInputSchema as a, ProjectSchema as b, UserInputSchema as c, UserCollectionSchema as d, UserSchema as e };