116 lines
4.0 KiB
TypeScript
116 lines
4.0 KiB
TypeScript
import { z } from 'zod';
|
|
export declare const sendCampaignEmailSchema: z.ZodObject<{
|
|
userEmail: z.ZodString;
|
|
userName: z.ZodString;
|
|
postalCode: z.ZodString;
|
|
recipientEmail: z.ZodString;
|
|
recipientName: z.ZodOptional<z.ZodString>;
|
|
recipientTitle: z.ZodOptional<z.ZodString>;
|
|
recipientLevel: z.ZodOptional<z.ZodNativeEnum<{
|
|
FEDERAL: "FEDERAL";
|
|
PROVINCIAL: "PROVINCIAL";
|
|
MUNICIPAL: "MUNICIPAL";
|
|
SCHOOL_BOARD: "SCHOOL_BOARD";
|
|
}>>;
|
|
emailMethod: z.ZodNativeEnum<{
|
|
SMTP: "SMTP";
|
|
MAILTO: "MAILTO";
|
|
}>;
|
|
customEmailSubject: z.ZodOptional<z.ZodString>;
|
|
customEmailBody: z.ZodOptional<z.ZodString>;
|
|
}, "strip", z.ZodTypeAny, {
|
|
userEmail: string;
|
|
userName: string;
|
|
recipientEmail: string;
|
|
emailMethod: "SMTP" | "MAILTO";
|
|
postalCode: string;
|
|
recipientName?: string | undefined;
|
|
recipientTitle?: string | undefined;
|
|
recipientLevel?: "FEDERAL" | "PROVINCIAL" | "MUNICIPAL" | "SCHOOL_BOARD" | undefined;
|
|
customEmailSubject?: string | undefined;
|
|
customEmailBody?: string | undefined;
|
|
}, {
|
|
userEmail: string;
|
|
userName: string;
|
|
recipientEmail: string;
|
|
emailMethod: "SMTP" | "MAILTO";
|
|
postalCode: string;
|
|
recipientName?: string | undefined;
|
|
recipientTitle?: string | undefined;
|
|
recipientLevel?: "FEDERAL" | "PROVINCIAL" | "MUNICIPAL" | "SCHOOL_BOARD" | undefined;
|
|
customEmailSubject?: string | undefined;
|
|
customEmailBody?: string | undefined;
|
|
}>;
|
|
export declare const trackMailtoSchema: z.ZodObject<{
|
|
recipientEmail: z.ZodString;
|
|
recipientName: z.ZodOptional<z.ZodString>;
|
|
recipientTitle: z.ZodOptional<z.ZodString>;
|
|
recipientLevel: z.ZodOptional<z.ZodNativeEnum<{
|
|
FEDERAL: "FEDERAL";
|
|
PROVINCIAL: "PROVINCIAL";
|
|
MUNICIPAL: "MUNICIPAL";
|
|
SCHOOL_BOARD: "SCHOOL_BOARD";
|
|
}>>;
|
|
userEmail: z.ZodOptional<z.ZodString>;
|
|
userName: z.ZodOptional<z.ZodString>;
|
|
postalCode: z.ZodOptional<z.ZodString>;
|
|
}, "strip", z.ZodTypeAny, {
|
|
recipientEmail: string;
|
|
userEmail?: string | undefined;
|
|
userName?: string | undefined;
|
|
recipientName?: string | undefined;
|
|
recipientTitle?: string | undefined;
|
|
recipientLevel?: "FEDERAL" | "PROVINCIAL" | "MUNICIPAL" | "SCHOOL_BOARD" | undefined;
|
|
postalCode?: string | undefined;
|
|
}, {
|
|
recipientEmail: string;
|
|
userEmail?: string | undefined;
|
|
userName?: string | undefined;
|
|
recipientName?: string | undefined;
|
|
recipientTitle?: string | undefined;
|
|
recipientLevel?: "FEDERAL" | "PROVINCIAL" | "MUNICIPAL" | "SCHOOL_BOARD" | undefined;
|
|
postalCode?: string | undefined;
|
|
}>;
|
|
export declare const listCampaignEmailsSchema: z.ZodObject<{
|
|
page: z.ZodDefault<z.ZodNumber>;
|
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
status: z.ZodOptional<z.ZodNativeEnum<{
|
|
QUEUED: "QUEUED";
|
|
SENT: "SENT";
|
|
FAILED: "FAILED";
|
|
CLICKED: "CLICKED";
|
|
USER_INFO_CAPTURED: "USER_INFO_CAPTURED";
|
|
}>>;
|
|
emailMethod: z.ZodOptional<z.ZodNativeEnum<{
|
|
SMTP: "SMTP";
|
|
MAILTO: "MAILTO";
|
|
}>>;
|
|
}, "strip", z.ZodTypeAny, {
|
|
limit: number;
|
|
page: number;
|
|
status?: "QUEUED" | "SENT" | "FAILED" | "CLICKED" | "USER_INFO_CAPTURED" | undefined;
|
|
emailMethod?: "SMTP" | "MAILTO" | undefined;
|
|
}, {
|
|
status?: "QUEUED" | "SENT" | "FAILED" | "CLICKED" | "USER_INFO_CAPTURED" | undefined;
|
|
limit?: number | undefined;
|
|
page?: number | undefined;
|
|
emailMethod?: "SMTP" | "MAILTO" | undefined;
|
|
}>;
|
|
export declare const campaignSlugParamSchema: z.ZodObject<{
|
|
slug: z.ZodString;
|
|
}, "strip", z.ZodTypeAny, {
|
|
slug: string;
|
|
}, {
|
|
slug: string;
|
|
}>;
|
|
export declare const campaignIdParamSchema: z.ZodObject<{
|
|
id: z.ZodString;
|
|
}, "strip", z.ZodTypeAny, {
|
|
id: string;
|
|
}, {
|
|
id: string;
|
|
}>;
|
|
export type SendCampaignEmailInput = z.infer<typeof sendCampaignEmailSchema>;
|
|
export type TrackMailtoInput = z.infer<typeof trackMailtoSchema>;
|
|
export type ListCampaignEmailsInput = z.infer<typeof listCampaignEmailsSchema>;
|
|
//# sourceMappingURL=campaign-emails.schemas.d.ts.map
|