163 lines
6.5 KiB
TypeScript

import { z } from 'zod';
export declare const createCampaignSchema: z.ZodObject<{
title: z.ZodString;
description: z.ZodOptional<z.ZodString>;
emailSubject: z.ZodString;
emailBody: z.ZodString;
callToAction: z.ZodOptional<z.ZodString>;
status: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<{
DRAFT: "DRAFT";
ACTIVE: "ACTIVE";
PAUSED: "PAUSED";
ARCHIVED: "ARCHIVED";
}>>>;
targetGovernmentLevels: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<{
FEDERAL: "FEDERAL";
PROVINCIAL: "PROVINCIAL";
MUNICIPAL: "MUNICIPAL";
SCHOOL_BOARD: "SCHOOL_BOARD";
}>, "many">>>;
allowSmtpEmail: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
allowMailtoLink: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
collectUserInfo: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
showEmailCount: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
showCallCount: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
allowEmailEditing: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
allowCustomRecipients: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
showResponseWall: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
highlightCampaign: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
coverPhoto: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
status: "ACTIVE" | "DRAFT" | "PAUSED" | "ARCHIVED";
title: string;
emailSubject: string;
emailBody: string;
allowSmtpEmail: boolean;
allowMailtoLink: boolean;
collectUserInfo: boolean;
showEmailCount: boolean;
showCallCount: boolean;
allowEmailEditing: boolean;
allowCustomRecipients: boolean;
showResponseWall: boolean;
highlightCampaign: boolean;
targetGovernmentLevels: ("FEDERAL" | "PROVINCIAL" | "MUNICIPAL" | "SCHOOL_BOARD")[];
description?: string | undefined;
callToAction?: string | undefined;
coverPhoto?: string | undefined;
}, {
title: string;
emailSubject: string;
emailBody: string;
status?: "ACTIVE" | "DRAFT" | "PAUSED" | "ARCHIVED" | undefined;
description?: string | undefined;
callToAction?: string | undefined;
coverPhoto?: string | undefined;
allowSmtpEmail?: boolean | undefined;
allowMailtoLink?: boolean | undefined;
collectUserInfo?: boolean | undefined;
showEmailCount?: boolean | undefined;
showCallCount?: boolean | undefined;
allowEmailEditing?: boolean | undefined;
allowCustomRecipients?: boolean | undefined;
showResponseWall?: boolean | undefined;
highlightCampaign?: boolean | undefined;
targetGovernmentLevels?: ("FEDERAL" | "PROVINCIAL" | "MUNICIPAL" | "SCHOOL_BOARD")[] | undefined;
}>;
export declare const updateCampaignSchema: z.ZodObject<{
title: z.ZodOptional<z.ZodString>;
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
emailSubject: z.ZodOptional<z.ZodString>;
emailBody: z.ZodOptional<z.ZodString>;
callToAction: z.ZodOptional<z.ZodNullable<z.ZodString>>;
status: z.ZodOptional<z.ZodNativeEnum<{
DRAFT: "DRAFT";
ACTIVE: "ACTIVE";
PAUSED: "PAUSED";
ARCHIVED: "ARCHIVED";
}>>;
targetGovernmentLevels: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<{
FEDERAL: "FEDERAL";
PROVINCIAL: "PROVINCIAL";
MUNICIPAL: "MUNICIPAL";
SCHOOL_BOARD: "SCHOOL_BOARD";
}>, "many">>;
allowSmtpEmail: z.ZodOptional<z.ZodBoolean>;
allowMailtoLink: z.ZodOptional<z.ZodBoolean>;
collectUserInfo: z.ZodOptional<z.ZodBoolean>;
showEmailCount: z.ZodOptional<z.ZodBoolean>;
showCallCount: z.ZodOptional<z.ZodBoolean>;
allowEmailEditing: z.ZodOptional<z.ZodBoolean>;
allowCustomRecipients: z.ZodOptional<z.ZodBoolean>;
showResponseWall: z.ZodOptional<z.ZodBoolean>;
highlightCampaign: z.ZodOptional<z.ZodBoolean>;
coverPhoto: z.ZodOptional<z.ZodNullable<z.ZodString>>;
}, "strip", z.ZodTypeAny, {
status?: "ACTIVE" | "DRAFT" | "PAUSED" | "ARCHIVED" | undefined;
title?: string | undefined;
description?: string | null | undefined;
emailSubject?: string | undefined;
emailBody?: string | undefined;
callToAction?: string | null | undefined;
coverPhoto?: string | null | undefined;
allowSmtpEmail?: boolean | undefined;
allowMailtoLink?: boolean | undefined;
collectUserInfo?: boolean | undefined;
showEmailCount?: boolean | undefined;
showCallCount?: boolean | undefined;
allowEmailEditing?: boolean | undefined;
allowCustomRecipients?: boolean | undefined;
showResponseWall?: boolean | undefined;
highlightCampaign?: boolean | undefined;
targetGovernmentLevels?: ("FEDERAL" | "PROVINCIAL" | "MUNICIPAL" | "SCHOOL_BOARD")[] | undefined;
}, {
status?: "ACTIVE" | "DRAFT" | "PAUSED" | "ARCHIVED" | undefined;
title?: string | undefined;
description?: string | null | undefined;
emailSubject?: string | undefined;
emailBody?: string | undefined;
callToAction?: string | null | undefined;
coverPhoto?: string | null | undefined;
allowSmtpEmail?: boolean | undefined;
allowMailtoLink?: boolean | undefined;
collectUserInfo?: boolean | undefined;
showEmailCount?: boolean | undefined;
showCallCount?: boolean | undefined;
allowEmailEditing?: boolean | undefined;
allowCustomRecipients?: boolean | undefined;
showResponseWall?: boolean | undefined;
highlightCampaign?: boolean | undefined;
targetGovernmentLevels?: ("FEDERAL" | "PROVINCIAL" | "MUNICIPAL" | "SCHOOL_BOARD")[] | undefined;
}>;
export declare const listCampaignsSchema: z.ZodObject<{
page: z.ZodDefault<z.ZodNumber>;
limit: z.ZodDefault<z.ZodNumber>;
search: z.ZodOptional<z.ZodString>;
status: z.ZodOptional<z.ZodNativeEnum<{
DRAFT: "DRAFT";
ACTIVE: "ACTIVE";
PAUSED: "PAUSED";
ARCHIVED: "ARCHIVED";
}>>;
}, "strip", z.ZodTypeAny, {
limit: number;
page: number;
status?: "ACTIVE" | "DRAFT" | "PAUSED" | "ARCHIVED" | undefined;
search?: string | undefined;
}, {
status?: "ACTIVE" | "DRAFT" | "PAUSED" | "ARCHIVED" | undefined;
search?: string | undefined;
limit?: number | undefined;
page?: number | undefined;
}>;
export declare const campaignIdSchema: z.ZodObject<{
id: z.ZodString;
}, "strip", z.ZodTypeAny, {
id: string;
}, {
id: string;
}>;
export type CreateCampaignInput = z.infer<typeof createCampaignSchema>;
export type UpdateCampaignInput = z.infer<typeof updateCampaignSchema>;
export type ListCampaignsInput = z.infer<typeof listCampaignsSchema>;
//# sourceMappingURL=campaigns.schemas.d.ts.map