122 lines
4.6 KiB
TypeScript
122 lines
4.6 KiB
TypeScript
import { z } from 'zod';
|
|
export declare const createCutSchema: z.ZodObject<{
|
|
name: z.ZodString;
|
|
description: z.ZodOptional<z.ZodString>;
|
|
color: z.ZodDefault<z.ZodString>;
|
|
opacity: z.ZodDefault<z.ZodNumber>;
|
|
category: z.ZodOptional<z.ZodNativeEnum<{
|
|
CUSTOM: "CUSTOM";
|
|
WARD: "WARD";
|
|
NEIGHBORHOOD: "NEIGHBORHOOD";
|
|
DISTRICT: "DISTRICT";
|
|
}>>;
|
|
isPublic: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
isOfficial: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
geojson: z.ZodEffects<z.ZodString, string, string>;
|
|
bounds: z.ZodOptional<z.ZodString>;
|
|
showLocations: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
exportEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
assignedTo: z.ZodOptional<z.ZodString>;
|
|
}, "strip", z.ZodTypeAny, {
|
|
name: string;
|
|
color: string;
|
|
opacity: number;
|
|
isPublic: boolean;
|
|
isOfficial: boolean;
|
|
geojson: string;
|
|
showLocations: boolean;
|
|
exportEnabled: boolean;
|
|
category?: "CUSTOM" | "WARD" | "NEIGHBORHOOD" | "DISTRICT" | undefined;
|
|
description?: string | undefined;
|
|
bounds?: string | undefined;
|
|
assignedTo?: string | undefined;
|
|
}, {
|
|
name: string;
|
|
geojson: string;
|
|
category?: "CUSTOM" | "WARD" | "NEIGHBORHOOD" | "DISTRICT" | undefined;
|
|
description?: string | undefined;
|
|
color?: string | undefined;
|
|
opacity?: number | undefined;
|
|
isPublic?: boolean | undefined;
|
|
isOfficial?: boolean | undefined;
|
|
bounds?: string | undefined;
|
|
showLocations?: boolean | undefined;
|
|
exportEnabled?: boolean | undefined;
|
|
assignedTo?: string | undefined;
|
|
}>;
|
|
export declare const updateCutSchema: z.ZodObject<{
|
|
name: z.ZodOptional<z.ZodString>;
|
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
color: z.ZodOptional<z.ZodString>;
|
|
opacity: z.ZodOptional<z.ZodNumber>;
|
|
category: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<{
|
|
CUSTOM: "CUSTOM";
|
|
WARD: "WARD";
|
|
NEIGHBORHOOD: "NEIGHBORHOOD";
|
|
DISTRICT: "DISTRICT";
|
|
}>>>;
|
|
isPublic: z.ZodOptional<z.ZodBoolean>;
|
|
isOfficial: z.ZodOptional<z.ZodBoolean>;
|
|
geojson: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
bounds: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
showLocations: z.ZodOptional<z.ZodBoolean>;
|
|
exportEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
assignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
lastCanvassed: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
completionPercentage: z.ZodOptional<z.ZodNumber>;
|
|
}, "strip", z.ZodTypeAny, {
|
|
name?: string | undefined;
|
|
category?: "CUSTOM" | "WARD" | "NEIGHBORHOOD" | "DISTRICT" | null | undefined;
|
|
description?: string | null | undefined;
|
|
color?: string | undefined;
|
|
opacity?: number | undefined;
|
|
isPublic?: boolean | undefined;
|
|
isOfficial?: boolean | undefined;
|
|
geojson?: string | undefined;
|
|
bounds?: string | null | undefined;
|
|
showLocations?: boolean | undefined;
|
|
exportEnabled?: boolean | undefined;
|
|
assignedTo?: string | null | undefined;
|
|
lastCanvassed?: string | null | undefined;
|
|
completionPercentage?: number | undefined;
|
|
}, {
|
|
name?: string | undefined;
|
|
category?: "CUSTOM" | "WARD" | "NEIGHBORHOOD" | "DISTRICT" | null | undefined;
|
|
description?: string | null | undefined;
|
|
color?: string | undefined;
|
|
opacity?: number | undefined;
|
|
isPublic?: boolean | undefined;
|
|
isOfficial?: boolean | undefined;
|
|
geojson?: string | undefined;
|
|
bounds?: string | null | undefined;
|
|
showLocations?: boolean | undefined;
|
|
exportEnabled?: boolean | undefined;
|
|
assignedTo?: string | null | undefined;
|
|
lastCanvassed?: string | null | undefined;
|
|
completionPercentage?: number | undefined;
|
|
}>;
|
|
export declare const listCutsSchema: z.ZodObject<{
|
|
page: z.ZodDefault<z.ZodNumber>;
|
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
category: z.ZodOptional<z.ZodNativeEnum<{
|
|
CUSTOM: "CUSTOM";
|
|
WARD: "WARD";
|
|
NEIGHBORHOOD: "NEIGHBORHOOD";
|
|
DISTRICT: "DISTRICT";
|
|
}>>;
|
|
search: z.ZodOptional<z.ZodString>;
|
|
}, "strip", z.ZodTypeAny, {
|
|
limit: number;
|
|
page: number;
|
|
search?: string | undefined;
|
|
category?: "CUSTOM" | "WARD" | "NEIGHBORHOOD" | "DISTRICT" | undefined;
|
|
}, {
|
|
search?: string | undefined;
|
|
limit?: number | undefined;
|
|
category?: "CUSTOM" | "WARD" | "NEIGHBORHOOD" | "DISTRICT" | undefined;
|
|
page?: number | undefined;
|
|
}>;
|
|
export type CreateCutInput = z.infer<typeof createCutSchema>;
|
|
export type UpdateCutInput = z.infer<typeof updateCutSchema>;
|
|
export type ListCutsInput = z.infer<typeof listCutsSchema>;
|
|
//# sourceMappingURL=cuts.schemas.d.ts.map
|