changemaker.lite/api/dist/modules/map/canvass/canvass.schemas.d.ts

278 lines
11 KiB
TypeScript

import { z } from 'zod';
export declare const recordVisitSchema: z.ZodObject<{
addressId: z.ZodString;
outcome: z.ZodNativeEnum<{
NOT_HOME: "NOT_HOME";
REFUSED: "REFUSED";
MOVED: "MOVED";
ALREADY_VOTED: "ALREADY_VOTED";
SPOKE_WITH: "SPOKE_WITH";
LEFT_LITERATURE: "LEFT_LITERATURE";
COME_BACK_LATER: "COME_BACK_LATER";
}>;
supportLevel: z.ZodOptional<z.ZodNativeEnum<{
LEVEL_1: "LEVEL_1";
LEVEL_2: "LEVEL_2";
LEVEL_3: "LEVEL_3";
LEVEL_4: "LEVEL_4";
}>>;
signRequested: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
signSize: z.ZodOptional<z.ZodString>;
notes: z.ZodOptional<z.ZodString>;
durationSeconds: z.ZodOptional<z.ZodNumber>;
sessionId: z.ZodOptional<z.ZodString>;
shiftId: z.ZodOptional<z.ZodString>;
updateLocation: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
}, "strip", z.ZodTypeAny, {
outcome: "NOT_HOME" | "REFUSED" | "MOVED" | "ALREADY_VOTED" | "SPOKE_WITH" | "LEFT_LITERATURE" | "COME_BACK_LATER";
signRequested: boolean;
addressId: string;
updateLocation: boolean;
durationSeconds?: number | undefined;
sessionId?: string | undefined;
notes?: string | undefined;
shiftId?: string | undefined;
supportLevel?: "LEVEL_1" | "LEVEL_2" | "LEVEL_3" | "LEVEL_4" | undefined;
signSize?: string | undefined;
}, {
outcome: "NOT_HOME" | "REFUSED" | "MOVED" | "ALREADY_VOTED" | "SPOKE_WITH" | "LEFT_LITERATURE" | "COME_BACK_LATER";
addressId: string;
durationSeconds?: number | undefined;
sessionId?: string | undefined;
notes?: string | undefined;
shiftId?: string | undefined;
supportLevel?: "LEVEL_1" | "LEVEL_2" | "LEVEL_3" | "LEVEL_4" | undefined;
signRequested?: boolean | undefined;
signSize?: string | undefined;
updateLocation?: boolean | undefined;
}>;
export declare const bulkRecordVisitSchema: z.ZodObject<{
locationId: z.ZodString;
outcome: z.ZodEnum<["NOT_HOME", "REFUSED", "MOVED"]>;
notes: z.ZodOptional<z.ZodString>;
sessionId: z.ZodOptional<z.ZodString>;
shiftId: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
outcome: "NOT_HOME" | "REFUSED" | "MOVED";
locationId: string;
sessionId?: string | undefined;
notes?: string | undefined;
shiftId?: string | undefined;
}, {
outcome: "NOT_HOME" | "REFUSED" | "MOVED";
locationId: string;
sessionId?: string | undefined;
notes?: string | undefined;
shiftId?: string | undefined;
}>;
export declare const startSessionSchema: z.ZodObject<{
cutId: z.ZodString;
shiftId: z.ZodOptional<z.ZodString>;
startLatitude: z.ZodOptional<z.ZodNumber>;
startLongitude: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
cutId: string;
shiftId?: string | undefined;
startLatitude?: number | undefined;
startLongitude?: number | undefined;
}, {
cutId: string;
shiftId?: string | undefined;
startLatitude?: number | undefined;
startLongitude?: number | undefined;
}>;
export declare const endSessionSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
export declare const walkingRouteSchema: z.ZodObject<{
excludeVisited: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
startLatitude: z.ZodOptional<z.ZodNumber>;
startLongitude: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
excludeVisited: boolean;
startLatitude?: number | undefined;
startLongitude?: number | undefined;
}, {
startLatitude?: number | undefined;
startLongitude?: number | undefined;
excludeVisited?: boolean | undefined;
}>;
export declare const listMyVisitsSchema: z.ZodObject<{
page: z.ZodDefault<z.ZodNumber>;
limit: z.ZodDefault<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
limit: number;
page: number;
}, {
limit?: number | undefined;
page?: number | undefined;
}>;
export declare const adminActivitySchema: z.ZodObject<{
page: z.ZodDefault<z.ZodNumber>;
limit: z.ZodDefault<z.ZodNumber>;
cutId: z.ZodOptional<z.ZodString>;
userId: z.ZodOptional<z.ZodString>;
outcome: z.ZodOptional<z.ZodNativeEnum<{
NOT_HOME: "NOT_HOME";
REFUSED: "REFUSED";
MOVED: "MOVED";
ALREADY_VOTED: "ALREADY_VOTED";
SPOKE_WITH: "SPOKE_WITH";
LEFT_LITERATURE: "LEFT_LITERATURE";
COME_BACK_LATER: "COME_BACK_LATER";
}>>;
}, "strip", z.ZodTypeAny, {
limit: number;
page: number;
userId?: string | undefined;
outcome?: "NOT_HOME" | "REFUSED" | "MOVED" | "ALREADY_VOTED" | "SPOKE_WITH" | "LEFT_LITERATURE" | "COME_BACK_LATER" | undefined;
cutId?: string | undefined;
}, {
limit?: number | undefined;
userId?: string | undefined;
page?: number | undefined;
outcome?: "NOT_HOME" | "REFUSED" | "MOVED" | "ALREADY_VOTED" | "SPOKE_WITH" | "LEFT_LITERATURE" | "COME_BACK_LATER" | undefined;
cutId?: string | undefined;
}>;
export declare const adminVisitsSchema: z.ZodObject<{
page: z.ZodDefault<z.ZodNumber>;
limit: z.ZodDefault<z.ZodNumber>;
cutId: z.ZodOptional<z.ZodString>;
userId: z.ZodOptional<z.ZodString>;
shiftId: z.ZodOptional<z.ZodString>;
outcome: z.ZodOptional<z.ZodNativeEnum<{
NOT_HOME: "NOT_HOME";
REFUSED: "REFUSED";
MOVED: "MOVED";
ALREADY_VOTED: "ALREADY_VOTED";
SPOKE_WITH: "SPOKE_WITH";
LEFT_LITERATURE: "LEFT_LITERATURE";
COME_BACK_LATER: "COME_BACK_LATER";
}>>;
sortBy: z.ZodDefault<z.ZodOptional<z.ZodEnum<["visitedAt", "outcome"]>>>;
sortOrder: z.ZodDefault<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>;
}, "strip", z.ZodTypeAny, {
limit: number;
page: number;
sortBy: "outcome" | "visitedAt";
sortOrder: "asc" | "desc";
userId?: string | undefined;
outcome?: "NOT_HOME" | "REFUSED" | "MOVED" | "ALREADY_VOTED" | "SPOKE_WITH" | "LEFT_LITERATURE" | "COME_BACK_LATER" | undefined;
cutId?: string | undefined;
shiftId?: string | undefined;
}, {
limit?: number | undefined;
userId?: string | undefined;
page?: number | undefined;
sortBy?: "outcome" | "visitedAt" | undefined;
sortOrder?: "asc" | "desc" | undefined;
outcome?: "NOT_HOME" | "REFUSED" | "MOVED" | "ALREADY_VOTED" | "SPOKE_WITH" | "LEFT_LITERATURE" | "COME_BACK_LATER" | undefined;
cutId?: string | undefined;
shiftId?: string | undefined;
}>;
export declare const volunteerUpdateLocationSchema: z.ZodObject<{
supportLevel: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<{
LEVEL_1: "LEVEL_1";
LEVEL_2: "LEVEL_2";
LEVEL_3: "LEVEL_3";
LEVEL_4: "LEVEL_4";
}>>>;
sign: z.ZodOptional<z.ZodBoolean>;
signSize: z.ZodOptional<z.ZodNullable<z.ZodString>>;
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
unitNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
email: z.ZodUnion<[z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodLiteral<"">]>;
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
}, "strip", z.ZodTypeAny, {
email?: string | null | undefined;
phone?: string | null | undefined;
notes?: string | null | undefined;
firstName?: string | null | undefined;
lastName?: string | null | undefined;
supportLevel?: "LEVEL_1" | "LEVEL_2" | "LEVEL_3" | "LEVEL_4" | null | undefined;
address?: string | null | undefined;
unitNumber?: string | null | undefined;
sign?: boolean | undefined;
signSize?: string | null | undefined;
}, {
email?: string | null | undefined;
phone?: string | null | undefined;
notes?: string | null | undefined;
firstName?: string | null | undefined;
lastName?: string | null | undefined;
supportLevel?: "LEVEL_1" | "LEVEL_2" | "LEVEL_3" | "LEVEL_4" | null | undefined;
address?: string | null | undefined;
unitNumber?: string | null | undefined;
sign?: boolean | undefined;
signSize?: string | null | undefined;
}>;
export declare const volunteerCreateLocationSchema: z.ZodObject<{
address: z.ZodString;
latitude: z.ZodNumber;
longitude: z.ZodNumber;
unitNumber: z.ZodOptional<z.ZodString>;
supportLevel: z.ZodOptional<z.ZodNativeEnum<{
LEVEL_1: "LEVEL_1";
LEVEL_2: "LEVEL_2";
LEVEL_3: "LEVEL_3";
LEVEL_4: "LEVEL_4";
}>>;
sign: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
signSize: z.ZodOptional<z.ZodString>;
notes: z.ZodOptional<z.ZodString>;
firstName: z.ZodOptional<z.ZodString>;
lastName: z.ZodOptional<z.ZodString>;
email: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
phone: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
latitude: number;
longitude: number;
address: string;
sign: boolean;
email?: string | undefined;
phone?: string | undefined;
notes?: string | undefined;
firstName?: string | undefined;
lastName?: string | undefined;
supportLevel?: "LEVEL_1" | "LEVEL_2" | "LEVEL_3" | "LEVEL_4" | undefined;
unitNumber?: string | undefined;
signSize?: string | undefined;
}, {
latitude: number;
longitude: number;
address: string;
email?: string | undefined;
phone?: string | undefined;
notes?: string | undefined;
firstName?: string | undefined;
lastName?: string | undefined;
supportLevel?: "LEVEL_1" | "LEVEL_2" | "LEVEL_3" | "LEVEL_4" | undefined;
unitNumber?: string | undefined;
sign?: boolean | undefined;
signSize?: string | undefined;
}>;
export type RecordVisitInput = z.infer<typeof recordVisitSchema>;
export type BulkRecordVisitInput = z.infer<typeof bulkRecordVisitSchema>;
export type StartSessionInput = z.infer<typeof startSessionSchema>;
export type WalkingRouteInput = z.infer<typeof walkingRouteSchema>;
export type ListMyVisitsInput = z.infer<typeof listMyVisitsSchema>;
export type AdminActivityInput = z.infer<typeof adminActivitySchema>;
export type AdminVisitsInput = z.infer<typeof adminVisitsSchema>;
export declare const outcomeTrendsQuerySchema: z.ZodObject<{
granularity: z.ZodDefault<z.ZodEnum<["day", "week"]>>;
dateFrom: z.ZodOptional<z.ZodString>;
dateTo: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
granularity: "week" | "day";
dateFrom?: string | undefined;
dateTo?: string | undefined;
}, {
dateFrom?: string | undefined;
dateTo?: string | undefined;
granularity?: "week" | "day" | undefined;
}>;
export type VolunteerUpdateLocationInput = z.infer<typeof volunteerUpdateLocationSchema>;
export type VolunteerCreateLocationInput = z.infer<typeof volunteerCreateLocationSchema>;
export type OutcomeTrendsQueryInput = z.infer<typeof outcomeTrendsQuerySchema>;
//# sourceMappingURL=canvass.schemas.d.ts.map