1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
import { z } from "zod";
export const ThingsConfig = z.object({
list: z.string().default("Today"), // Things list to pull (Today, Inbox, …)
});
export type ThingsConfig = z.infer<typeof ThingsConfig>;
export const ThingsPayload = z.object({
list: z.string(),
tasks: z.array(
z.object({
id: z.string(),
title: z.string(),
project: z.string(),
}),
),
});
export type ThingsPayload = z.infer<typeof ThingsPayload>;
|