@shivam1121/common 1.0.1 → 1.0.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/package.json +1 -1
- package/shivam1121-common-1.0.0.tgz +0 -0
- package/src/index.ts +0 -31
package/package.json
CHANGED
|
Binary file
|
package/src/index.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import z from "zod";
|
|
2
|
-
|
|
3
|
-
export const signupInput = z.object({
|
|
4
|
-
username: z.email(),
|
|
5
|
-
password: z.string().min(6),
|
|
6
|
-
name: z.string().optional()
|
|
7
|
-
})
|
|
8
|
-
|
|
9
|
-
export type SignupInput = z.infer<typeof signupInput>
|
|
10
|
-
|
|
11
|
-
export const signinInput = z.object({
|
|
12
|
-
username: z.string().email(),
|
|
13
|
-
password: z.string().min(6),
|
|
14
|
-
})
|
|
15
|
-
|
|
16
|
-
export type SigninInput = z.infer<typeof signinInput>
|
|
17
|
-
|
|
18
|
-
export const createBlogInput = z.object({
|
|
19
|
-
title: z.string(),
|
|
20
|
-
content: z.string(),
|
|
21
|
-
})
|
|
22
|
-
export type CreateBlogInput = z.infer<typeof createBlogInput>
|
|
23
|
-
|
|
24
|
-
export const updateBlogInput = z.object({
|
|
25
|
-
title: z.string(),
|
|
26
|
-
content: z.string(),
|
|
27
|
-
id: z.number()
|
|
28
|
-
})
|
|
29
|
-
export type UpdateBlogInput = z.infer<typeof updateBlogInput>
|
|
30
|
-
|
|
31
|
-
|