Defines Zod schemas for Emelia campaign and contact list.
// Source: https://github.com/corsairdev/corsair | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
import { z } from 'zod';
export const EmeliaCampaign = z.object({
id: z.string(),
name: z.string().optional(),
status: z.string().optional(),
created_at: z.coerce.date().nullable().optional(),
});
export type EmeliaCampaign = z.infer<typeof EmeliaCampaign>;
export const EmeliaContactList = z.object({
id: z.string(),
name: z.string().optional(),
contact_count: z.number().optional(),
fields: z.array(z.string()).optional(),
});
export type EmeliaContactList = z.infer<typeof EmeliaContactList>;
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key