@tmlmobilidade/types
Version:
31 lines (30 loc) • 1.2 kB
TypeScript
import { z } from 'zod';
export declare const StopsPermissionSchema: z.ZodObject<{
action: z.ZodEnum<["create", "delete", "read", "lock", "update", "export", "edit_coordinates", "edit_name"]>;
resources: z.ZodDefault<z.ZodObject<{
agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
municipality_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
municipality_ids: string[];
agency_ids: string[];
}, {
municipality_ids?: string[] | undefined;
agency_ids?: string[] | undefined;
}>>;
scope: z.ZodLiteral<"stops">;
}, "strip", z.ZodTypeAny, {
scope: "stops";
action: "create" | "delete" | "read" | "lock" | "update" | "export" | "edit_coordinates" | "edit_name";
resources: {
municipality_ids: string[];
agency_ids: string[];
};
}, {
scope: "stops";
action: "create" | "delete" | "read" | "lock" | "update" | "export" | "edit_coordinates" | "edit_name";
resources?: {
municipality_ids?: string[] | undefined;
agency_ids?: string[] | undefined;
} | undefined;
}>;
export type StopsPermission = z.infer<typeof StopsPermissionSchema>;