261 lines
10 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>;
coverVideoId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
}, "strip", z.ZodTypeAny, {
status: "ACTIVE" | "ARCHIVED" | "DRAFT" | "PAUSED";
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;
coverPhoto?: string | undefined;
coverVideoId?: number | null | undefined;
callToAction?: string | undefined;
}, {
title: string;
emailSubject: string;
emailBody: string;
status?: "ACTIVE" | "ARCHIVED" | "DRAFT" | "PAUSED" | undefined;
description?: string | undefined;
coverPhoto?: string | undefined;
coverVideoId?: number | null | undefined;
callToAction?: 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>>;
coverVideoId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
}, "strip", z.ZodTypeAny, {
status?: "ACTIVE" | "ARCHIVED" | "DRAFT" | "PAUSED" | undefined;
title?: string | undefined;
description?: string | null | undefined;
coverPhoto?: string | null | undefined;
coverVideoId?: number | null | undefined;
emailSubject?: string | undefined;
emailBody?: string | undefined;
callToAction?: 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" | "ARCHIVED" | "DRAFT" | "PAUSED" | undefined;
title?: string | undefined;
description?: string | null | undefined;
coverPhoto?: string | null | undefined;
coverVideoId?: number | null | undefined;
emailSubject?: string | undefined;
emailBody?: string | undefined;
callToAction?: 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" | "ARCHIVED" | "DRAFT" | "PAUSED" | undefined;
search?: string | undefined;
}, {
status?: "ACTIVE" | "ARCHIVED" | "DRAFT" | "PAUSED" | 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 declare const createUserCampaignSchema: z.ZodObject<{
title: z.ZodString;
description: z.ZodOptional<z.ZodString>;
emailSubject: z.ZodString;
emailBody: z.ZodString;
callToAction: z.ZodOptional<z.ZodString>;
targetGovernmentLevels: z.ZodArray<z.ZodNativeEnum<{
FEDERAL: "FEDERAL";
PROVINCIAL: "PROVINCIAL";
MUNICIPAL: "MUNICIPAL";
SCHOOL_BOARD: "SCHOOL_BOARD";
}>, "many">;
}, "strip", z.ZodTypeAny, {
title: string;
emailSubject: string;
emailBody: string;
targetGovernmentLevels: ("FEDERAL" | "PROVINCIAL" | "MUNICIPAL" | "SCHOOL_BOARD")[];
description?: string | undefined;
callToAction?: string | undefined;
}, {
title: string;
emailSubject: string;
emailBody: string;
targetGovernmentLevels: ("FEDERAL" | "PROVINCIAL" | "MUNICIPAL" | "SCHOOL_BOARD")[];
description?: string | undefined;
callToAction?: string | undefined;
}>;
export declare const updateUserCampaignSchema: z.ZodObject<{
title: z.ZodOptional<z.ZodString>;
description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
emailSubject: z.ZodOptional<z.ZodString>;
emailBody: z.ZodOptional<z.ZodString>;
callToAction: z.ZodOptional<z.ZodOptional<z.ZodString>>;
targetGovernmentLevels: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<{
FEDERAL: "FEDERAL";
PROVINCIAL: "PROVINCIAL";
MUNICIPAL: "MUNICIPAL";
SCHOOL_BOARD: "SCHOOL_BOARD";
}>, "many">>;
}, "strip", z.ZodTypeAny, {
title?: string | undefined;
description?: string | undefined;
emailSubject?: string | undefined;
emailBody?: string | undefined;
callToAction?: string | undefined;
targetGovernmentLevels?: ("FEDERAL" | "PROVINCIAL" | "MUNICIPAL" | "SCHOOL_BOARD")[] | undefined;
}, {
title?: string | undefined;
description?: string | undefined;
emailSubject?: string | undefined;
emailBody?: string | undefined;
callToAction?: string | undefined;
targetGovernmentLevels?: ("FEDERAL" | "PROVINCIAL" | "MUNICIPAL" | "SCHOOL_BOARD")[] | undefined;
}>;
export declare const moderateCampaignSchema: z.ZodObject<{
action: z.ZodEnum<["approve", "reject", "request_changes"]>;
reason: z.ZodOptional<z.ZodString>;
notes: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
action: "approve" | "reject" | "request_changes";
reason?: string | undefined;
notes?: string | undefined;
}, {
action: "approve" | "reject" | "request_changes";
reason?: string | undefined;
notes?: string | undefined;
}>;
export declare const listModerationQueueSchema: z.ZodObject<{
page: z.ZodDefault<z.ZodNumber>;
limit: z.ZodDefault<z.ZodNumber>;
search: z.ZodOptional<z.ZodString>;
moderationStatus: z.ZodOptional<z.ZodNativeEnum<{
PENDING_REVIEW: "PENDING_REVIEW";
APPROVED: "APPROVED";
REJECTED: "REJECTED";
CHANGES_REQUESTED: "CHANGES_REQUESTED";
}>>;
}, "strip", z.ZodTypeAny, {
limit: number;
page: number;
search?: string | undefined;
moderationStatus?: "APPROVED" | "PENDING_REVIEW" | "REJECTED" | "CHANGES_REQUESTED" | undefined;
}, {
search?: string | undefined;
limit?: number | undefined;
page?: number | undefined;
moderationStatus?: "APPROVED" | "PENDING_REVIEW" | "REJECTED" | "CHANGES_REQUESTED" | undefined;
}>;
export type CreateCampaignInput = z.infer<typeof createCampaignSchema>;
export type UpdateCampaignInput = z.infer<typeof updateCampaignSchema>;
export type ListCampaignsInput = z.infer<typeof listCampaignsSchema>;
export type CreateUserCampaignInput = z.infer<typeof createUserCampaignSchema>;
export type UpdateUserCampaignInput = z.infer<typeof updateUserCampaignSchema>;
export type ModerateCampaignInput = z.infer<typeof moderateCampaignSchema>;
export type ListModerationQueueInput = z.infer<typeof listModerationQueueSchema>;
//# sourceMappingURL=campaigns.schemas.d.ts.map