@tmlmobilidade/types
Version:
26 lines (25 loc) • 1.4 kB
TypeScript
import { z } from 'zod';
export declare const PlansPermissionSchema: z.ZodObject<{
action: z.ZodEnum<["create", "delete", "read", "read_controller", "read_pcgi_legacy", "lock", "update", "update_controller", "update_feed_info_dates", "update_gtfs_plan", "update_pcgi_legacy", "read_apex_file", "update_apex_file", "delete_apex_file"]>;
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<"plans">;
}, "strip", z.ZodTypeAny, {
scope: "plans";
action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file";
resources: {
agency_ids: string[];
};
}, {
scope: "plans";
action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file";
resources?: {
agency_ids?: string[] | undefined;
} | undefined;
}>;
export type PlansPermission = z.infer<typeof PlansPermissionSchema>;