UNPKG

@tmlmobilidade/types

Version:
31 lines (30 loc) 1.25 kB
import { z } from 'zod'; export declare const AlertsPermissionSchema: z.ZodObject<{ action: z.ZodEnum<["create", "delete", "read", "lock", "update", "update_texts", "update_dates", "update_publish_status"]>; resources: z.ZodDefault<z.ZodObject<{ agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>; reference_types: z.ZodDefault<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { agency_ids: string[]; reference_types: string[]; }, { agency_ids?: string[] | undefined; reference_types?: string[] | undefined; }>>; scope: z.ZodLiteral<"alerts">; }, "strip", z.ZodTypeAny, { scope: "alerts"; action: "create" | "delete" | "read" | "lock" | "update" | "update_texts" | "update_dates" | "update_publish_status"; resources: { agency_ids: string[]; reference_types: string[]; }; }, { scope: "alerts"; action: "create" | "delete" | "read" | "lock" | "update" | "update_texts" | "update_dates" | "update_publish_status"; resources?: { agency_ids?: string[] | undefined; reference_types?: string[] | undefined; } | undefined; }>; export type AlertsPermission = z.infer<typeof AlertsPermissionSchema>;