UNPKG

@tmlmobilidade/types

Version:
26 lines (25 loc) 851 B
import { z } from 'zod'; export declare const TypologiesPermissionSchema: z.ZodObject<{ action: z.ZodEnum<["create", "delete", "lock", "nav", "update"]>; 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<"typologies">; }, "strip", z.ZodTypeAny, { scope: "typologies"; action: "create" | "delete" | "lock" | "update" | "nav"; resources: { agency_ids: string[]; }; }, { scope: "typologies"; action: "create" | "delete" | "lock" | "update" | "nav"; resources?: { agency_ids?: string[] | undefined; } | undefined; }>; export type TypologiesPermission = z.infer<typeof TypologiesPermissionSchema>;