@penlight/common-app 1.1.0 → 3.0.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/dist/index.d.ts +6 -0
- package/dist/index.js +4 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
@@ -28,24 +28,30 @@ export declare const createPostInput: z.ZodObject<{
|
|
28
28
|
title: z.ZodString;
|
29
29
|
content: z.ZodString;
|
30
30
|
authorId: z.ZodString;
|
31
|
+
published: z.ZodDefault<z.ZodBoolean>;
|
31
32
|
}, "strip", z.ZodTypeAny, {
|
32
33
|
title: string;
|
33
34
|
content: string;
|
34
35
|
authorId: string;
|
36
|
+
published: boolean;
|
35
37
|
}, {
|
36
38
|
title: string;
|
37
39
|
content: string;
|
38
40
|
authorId: string;
|
41
|
+
published?: boolean | undefined;
|
39
42
|
}>;
|
40
43
|
export type CreatePostInput = z.infer<typeof createPostInput>;
|
41
44
|
export declare const updatePostInput: z.ZodObject<{
|
42
45
|
title: z.ZodOptional<z.ZodString>;
|
43
46
|
content: z.ZodOptional<z.ZodString>;
|
47
|
+
published: z.ZodDefault<z.ZodBoolean>;
|
44
48
|
}, "strip", z.ZodTypeAny, {
|
49
|
+
published: boolean;
|
45
50
|
title?: string | undefined;
|
46
51
|
content?: string | undefined;
|
47
52
|
}, {
|
48
53
|
title?: string | undefined;
|
49
54
|
content?: string | undefined;
|
55
|
+
published?: boolean | undefined;
|
50
56
|
}>;
|
51
57
|
export type UpdatePostInput = z.infer<typeof updatePostInput>;
|
package/dist/index.js
CHANGED
@@ -14,9 +14,11 @@ exports.signinInput = zod_1.z.object({
|
|
14
14
|
exports.createPostInput = zod_1.z.object({
|
15
15
|
title: zod_1.z.string(),
|
16
16
|
content: zod_1.z.string(),
|
17
|
-
authorId: zod_1.z.string()
|
17
|
+
authorId: zod_1.z.string(),
|
18
|
+
published: zod_1.z.boolean().default(false)
|
18
19
|
});
|
19
20
|
exports.updatePostInput = zod_1.z.object({
|
20
21
|
title: zod_1.z.string().optional(),
|
21
|
-
content: zod_1.z.string().optional()
|
22
|
+
content: zod_1.z.string().optional(),
|
23
|
+
published: zod_1.z.boolean().default(false)
|
22
24
|
});
|