@jackhayes/util-types 0.0.40 → 0.0.41
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.
|
@@ -2,17 +2,19 @@ import { z } from 'zod';
|
|
|
2
2
|
declare const updateType: z.ZodEnum<{
|
|
3
3
|
release: "release";
|
|
4
4
|
trailer: "trailer";
|
|
5
|
+
teaser: "teaser";
|
|
5
6
|
}>;
|
|
6
7
|
export declare const update: z.ZodObject<{
|
|
7
8
|
id: z.ZodUUID;
|
|
8
9
|
type: z.ZodEnum<{
|
|
9
10
|
release: "release";
|
|
10
11
|
trailer: "trailer";
|
|
12
|
+
teaser: "teaser";
|
|
11
13
|
}>;
|
|
12
14
|
title: z.ZodString;
|
|
13
15
|
links: z.ZodArray<z.ZodString>;
|
|
14
16
|
projectId: z.ZodUUID;
|
|
15
|
-
publishedAt: z.ZodString
|
|
17
|
+
publishedAt: z.ZodOptional<z.ZodString>;
|
|
16
18
|
createdAt: z.ZodString;
|
|
17
19
|
}, z.core.$strip>;
|
|
18
20
|
export type Update = z.infer<typeof update>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
const updateType = z.enum(['release', 'trailer']);
|
|
2
|
+
const updateType = z.enum(['release', 'trailer', 'teaser']);
|
|
3
3
|
export const update = z.object({
|
|
4
4
|
id: z.uuid(),
|
|
5
5
|
type: updateType,
|
|
6
6
|
title: z.string(),
|
|
7
7
|
links: z.array(z.string()),
|
|
8
8
|
projectId: z.uuid(),
|
|
9
|
-
publishedAt: z.string(),
|
|
9
|
+
publishedAt: z.string().optional(),
|
|
10
10
|
createdAt: z.string(),
|
|
11
11
|
});
|