UNPKG

@tmlmobilidade/types

Version:
26 lines (25 loc) 1 kB
import { z } from 'zod'; export declare const DatesPermissionSchema: z.ZodObject<{ action: z.ZodEnum<["create_annotations", "delete_annotations", "read_annotations", "update_annotations", "lock_annotations"]>; resources: z.ZodDefault<z.ZodObject<{ agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { agency_ids: string[]; }, { agency_ids?: string[] | undefined; }>>; scope: z.ZodLiteral<"dates">; }, "strip", z.ZodTypeAny, { scope: "dates"; action: "create_annotations" | "delete_annotations" | "read_annotations" | "update_annotations" | "lock_annotations"; resources: { agency_ids: string[]; }; }, { scope: "dates"; action: "create_annotations" | "delete_annotations" | "read_annotations" | "update_annotations" | "lock_annotations"; resources?: { agency_ids?: string[] | undefined; } | undefined; }>; export type DatesPermission = z.infer<typeof DatesPermissionSchema>;