UNPKG

@tmlmobilidade/types

Version:
214 lines (213 loc) • 6.68 kB
import { z } from 'zod'; export declare const HomeLinkSchema: z.ZodObject<{ href: z.ZodString; icon: z.ZodString; order: z.ZodNumber; title: z.ZodString; }, "strip", z.ZodTypeAny, { title: string; href: string; icon: string; order: number; }, { title: string; href: string; icon: string; order: number; }>; export type HomeLink = z.infer<typeof HomeLinkSchema>; export declare const OrganizationSchema: z.ZodObject<{ _id: z.ZodString; created_at: z.ZodEffects<z.ZodNumber, import("./index.js").UnixTimestamp, number>; created_by: z.ZodOptional<z.ZodString>; is_locked: z.ZodDefault<z.ZodBoolean>; updated_at: z.ZodEffects<z.ZodNumber, import("./index.js").UnixTimestamp, number>; updated_by: z.ZodOptional<z.ZodString>; } & { home_links: z.ZodDefault<z.ZodArray<z.ZodObject<{ href: z.ZodString; icon: z.ZodString; order: z.ZodNumber; title: z.ZodString; }, "strip", z.ZodTypeAny, { title: string; href: string; icon: string; order: number; }, { title: string; href: string; icon: string; order: number; }>, "many">>; home_wikis: z.ZodDefault<z.ZodArray<z.ZodString, "many">>; logo_dark: z.ZodDefault<z.ZodNullable<z.ZodString>>; logo_light: z.ZodDefault<z.ZodNullable<z.ZodString>>; long_name: z.ZodString; short_name: z.ZodString; theme: z.ZodDefault<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { _id: string; created_at: number & { __brand: "UnixTimestamp"; }; is_locked: boolean; updated_at: number & { __brand: "UnixTimestamp"; }; short_name: string; home_links: { title: string; href: string; icon: string; order: number; }[]; home_wikis: string[]; logo_dark: string | null; logo_light: string | null; long_name: string; theme: string | null; created_by?: string | undefined; updated_by?: string | undefined; }, { _id: string; created_at: number; updated_at: number; short_name: string; long_name: string; created_by?: string | undefined; is_locked?: boolean | undefined; updated_by?: string | undefined; home_links?: { title: string; href: string; icon: string; order: number; }[] | undefined; home_wikis?: string[] | undefined; logo_dark?: string | null | undefined; logo_light?: string | null | undefined; theme?: string | null | undefined; }>; export declare const CreateOrganizationSchema: z.ZodObject<Omit<{ _id: z.ZodString; created_at: z.ZodEffects<z.ZodNumber, import("./index.js").UnixTimestamp, number>; created_by: z.ZodOptional<z.ZodString>; is_locked: z.ZodDefault<z.ZodBoolean>; updated_at: z.ZodEffects<z.ZodNumber, import("./index.js").UnixTimestamp, number>; updated_by: z.ZodOptional<z.ZodString>; } & { home_links: z.ZodDefault<z.ZodArray<z.ZodObject<{ href: z.ZodString; icon: z.ZodString; order: z.ZodNumber; title: z.ZodString; }, "strip", z.ZodTypeAny, { title: string; href: string; icon: string; order: number; }, { title: string; href: string; icon: string; order: number; }>, "many">>; home_wikis: z.ZodDefault<z.ZodArray<z.ZodString, "many">>; logo_dark: z.ZodDefault<z.ZodNullable<z.ZodString>>; logo_light: z.ZodDefault<z.ZodNullable<z.ZodString>>; long_name: z.ZodString; short_name: z.ZodString; theme: z.ZodDefault<z.ZodNullable<z.ZodString>>; }, "_id" | "created_at" | "updated_at">, "strip", z.ZodTypeAny, { is_locked: boolean; short_name: string; home_links: { title: string; href: string; icon: string; order: number; }[]; home_wikis: string[]; logo_dark: string | null; logo_light: string | null; long_name: string; theme: string | null; created_by?: string | undefined; updated_by?: string | undefined; }, { short_name: string; long_name: string; created_by?: string | undefined; is_locked?: boolean | undefined; updated_by?: string | undefined; home_links?: { title: string; href: string; icon: string; order: number; }[] | undefined; home_wikis?: string[] | undefined; logo_dark?: string | null | undefined; logo_light?: string | null | undefined; theme?: string | null | undefined; }>; export declare const UpdateOrganizationSchema: z.ZodObject<{ is_locked: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>; updated_by: z.ZodOptional<z.ZodOptional<z.ZodString>>; short_name: z.ZodOptional<z.ZodString>; home_links: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{ href: z.ZodString; icon: z.ZodString; order: z.ZodNumber; title: z.ZodString; }, "strip", z.ZodTypeAny, { title: string; href: string; icon: string; order: number; }, { title: string; href: string; icon: string; order: number; }>, "many">>>; home_wikis: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>; logo_dark: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>; logo_light: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>; long_name: z.ZodOptional<z.ZodString>; theme: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>; }, "strip", z.ZodTypeAny, { is_locked?: boolean | undefined; updated_by?: string | undefined; short_name?: string | undefined; home_links?: { title: string; href: string; icon: string; order: number; }[] | undefined; home_wikis?: string[] | undefined; logo_dark?: string | null | undefined; logo_light?: string | null | undefined; long_name?: string | undefined; theme?: string | null | undefined; }, { is_locked?: boolean | undefined; updated_by?: string | undefined; short_name?: string | undefined; home_links?: { title: string; href: string; icon: string; order: number; }[] | undefined; home_wikis?: string[] | undefined; logo_dark?: string | null | undefined; logo_light?: string | null | undefined; long_name?: string | undefined; theme?: string | null | undefined; }>; export type Organization = z.infer<typeof OrganizationSchema>; export type CreateOrganizationDto = z.infer<typeof CreateOrganizationSchema>; export type UpdateOrganizationDto = z.infer<typeof UpdateOrganizationSchema>;