UNPKG

strapi-plugin-navigation

Version:
77 lines (76 loc) 3.04 kB
import * as z from 'zod'; export declare const idSchema: z.ZodString; export declare const readAllQuerySchema: z.ZodObject<{ locale: z.ZodOptional<z.ZodString>; orderBy: z.ZodOptional<z.ZodString>; orderDirection: z.ZodOptional<z.ZodEnum<["DESC", "ASC"]>>; }, "strip", z.ZodTypeAny, { locale?: string | undefined; orderBy?: string | undefined; orderDirection?: "DESC" | "ASC" | undefined; }, { locale?: string | undefined; orderBy?: string | undefined; orderDirection?: "DESC" | "ASC" | undefined; }>; export declare const renderTypeSchema: z.ZodEnum<["FLAT", "TREE", "RFR"]>; export declare const statusSchema: z.ZodPipeline<z.ZodEffects<z.ZodString, "published" | "draft", string>, z.ZodEnum<["draft", "published"]>>; type PopulatePrimitive = boolean | string | string[] | undefined; export interface PopulateObject { [key: string]: Populate; } type Populate = PopulatePrimitive | PopulateObject; export declare const populateSchema: z.ZodType<Populate, z.ZodTypeDef, unknown>; export type PopulateQueryParam = z.infer<typeof populateSchema>; export declare const renderQuerySchema: z.ZodObject<{ type: z.ZodOptional<z.ZodEnum<["FLAT", "TREE", "RFR"]>>; menu: z.ZodOptional<z.ZodEnum<["true", "false"]>>; path: z.ZodOptional<z.ZodString>; locale: z.ZodOptional<z.ZodString>; populate: z.ZodOptional<z.ZodType<Populate, z.ZodTypeDef, unknown>>; status: z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, "published" | "draft", string>, z.ZodEnum<["draft", "published"]>>>; }, "strip", z.ZodTypeAny, { status?: "published" | "draft" | undefined; path?: string | undefined; type?: "FLAT" | "TREE" | "RFR" | undefined; locale?: string | undefined; populate?: Populate; menu?: "true" | "false" | undefined; }, { status?: string | undefined; path?: string | undefined; type?: "FLAT" | "TREE" | "RFR" | undefined; locale?: string | undefined; populate?: unknown; menu?: "true" | "false" | undefined; }>; export declare const renderChildQueryParams: z.ZodObject<{ type: z.ZodOptional<z.ZodEnum<["FLAT", "TREE", "RFR"]>>; menu: z.ZodOptional<z.ZodEnum<["true", "false"]>>; locale: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, "published" | "draft", string>, z.ZodEnum<["draft", "published"]>>>; }, "strip", z.ZodTypeAny, { status?: "published" | "draft" | undefined; type?: "FLAT" | "TREE" | "RFR" | undefined; locale?: string | undefined; menu?: "true" | "false" | undefined; }, { status?: string | undefined; type?: "FLAT" | "TREE" | "RFR" | undefined; locale?: string | undefined; menu?: "true" | "false" | undefined; }>; export declare const fillFromOtherLocaleParams: z.ZodObject<{ source: z.ZodString; target: z.ZodString; documentId: z.ZodString; }, "strip", z.ZodTypeAny, { documentId: string; target: string; source: string; }, { documentId: string; target: string; source: string; }>; export {};