UNPKG

strapi-plugin-navigation

Version:
454 lines (453 loc) 14.7 kB
import { z } from 'zod'; export type NavigationItemCustomFieldBase = z.infer<typeof navigationCustomFieldBase>; declare const navigationCustomFieldBase: z.ZodObject<{ name: z.ZodEffects<z.ZodString, string, string>; label: z.ZodString; required: z.ZodOptional<z.ZodBoolean>; enabled: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { name: string; label: string; required?: boolean | undefined; enabled?: boolean | undefined; }, { name: string; label: string; required?: boolean | undefined; enabled?: boolean | undefined; }>; export type NavigationItemCustomFieldSelect = z.infer<typeof navigationItemCustomFieldSelect>; declare const navigationItemCustomFieldSelect: z.ZodObject<z.objectUtil.extendShape<{ name: z.ZodEffects<z.ZodString, string, string>; label: z.ZodString; required: z.ZodOptional<z.ZodBoolean>; enabled: z.ZodOptional<z.ZodBoolean>; }, { type: z.ZodLiteral<"select">; multi: z.ZodBoolean; options: z.ZodArray<z.ZodString, "many">; }>, "strip", z.ZodTypeAny, { name: string; type: "select"; label: string; options: string[]; multi: boolean; required?: boolean | undefined; enabled?: boolean | undefined; }, { name: string; type: "select"; label: string; options: string[]; multi: boolean; required?: boolean | undefined; enabled?: boolean | undefined; }>; export type NavigationItemCustomFieldPrimitive = z.infer<typeof navigationItemCustomFieldPrimitive>; declare const navigationItemCustomFieldPrimitive: z.ZodObject<z.objectUtil.extendShape<{ name: z.ZodEffects<z.ZodString, string, string>; label: z.ZodString; required: z.ZodOptional<z.ZodBoolean>; enabled: z.ZodOptional<z.ZodBoolean>; }, { type: z.ZodEnum<["boolean", "string"]>; multi: z.ZodOptional<z.ZodLiteral<false>>; options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }>, "strip", z.ZodTypeAny, { name: string; type: "string" | "boolean"; label: string; required?: boolean | undefined; options?: string[] | undefined; enabled?: boolean | undefined; multi?: false | undefined; }, { name: string; type: "string" | "boolean"; label: string; required?: boolean | undefined; options?: string[] | undefined; enabled?: boolean | undefined; multi?: false | undefined; }>; export type NavigationItemCustomFieldMedia = z.infer<typeof navigationItemCustomFieldMedia>; declare const navigationItemCustomFieldMedia: z.ZodObject<z.objectUtil.extendShape<{ name: z.ZodEffects<z.ZodString, string, string>; label: z.ZodString; required: z.ZodOptional<z.ZodBoolean>; enabled: z.ZodOptional<z.ZodBoolean>; }, { type: z.ZodLiteral<"media">; multi: z.ZodOptional<z.ZodLiteral<false>>; options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }>, "strip", z.ZodTypeAny, { name: string; type: "media"; label: string; required?: boolean | undefined; options?: string[] | undefined; enabled?: boolean | undefined; multi?: false | undefined; }, { name: string; type: "media"; label: string; required?: boolean | undefined; options?: string[] | undefined; enabled?: boolean | undefined; multi?: false | undefined; }>; export type NavigationItemCustomField = z.infer<typeof navigationItemCustomField>; export declare const navigationItemCustomField: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{ name: z.ZodEffects<z.ZodString, string, string>; label: z.ZodString; required: z.ZodOptional<z.ZodBoolean>; enabled: z.ZodOptional<z.ZodBoolean>; }, { type: z.ZodEnum<["boolean", "string"]>; multi: z.ZodOptional<z.ZodLiteral<false>>; options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }>, "strip", z.ZodTypeAny, { name: string; type: "string" | "boolean"; label: string; required?: boolean | undefined; options?: string[] | undefined; enabled?: boolean | undefined; multi?: false | undefined; }, { name: string; type: "string" | "boolean"; label: string; required?: boolean | undefined; options?: string[] | undefined; enabled?: boolean | undefined; multi?: false | undefined; }>, z.ZodObject<z.objectUtil.extendShape<{ name: z.ZodEffects<z.ZodString, string, string>; label: z.ZodString; required: z.ZodOptional<z.ZodBoolean>; enabled: z.ZodOptional<z.ZodBoolean>; }, { type: z.ZodLiteral<"media">; multi: z.ZodOptional<z.ZodLiteral<false>>; options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }>, "strip", z.ZodTypeAny, { name: string; type: "media"; label: string; required?: boolean | undefined; options?: string[] | undefined; enabled?: boolean | undefined; multi?: false | undefined; }, { name: string; type: "media"; label: string; required?: boolean | undefined; options?: string[] | undefined; enabled?: boolean | undefined; multi?: false | undefined; }>, z.ZodObject<z.objectUtil.extendShape<{ name: z.ZodEffects<z.ZodString, string, string>; label: z.ZodString; required: z.ZodOptional<z.ZodBoolean>; enabled: z.ZodOptional<z.ZodBoolean>; }, { type: z.ZodLiteral<"select">; multi: z.ZodBoolean; options: z.ZodArray<z.ZodString, "many">; }>, "strip", z.ZodTypeAny, { name: string; type: "select"; label: string; options: string[]; multi: boolean; required?: boolean | undefined; enabled?: boolean | undefined; }, { name: string; type: "select"; label: string; options: string[]; multi: boolean; required?: boolean | undefined; enabled?: boolean | undefined; }>]>; export type NavigationItemAdditionalField = z.infer<typeof navigationItemAdditionalField>; export declare const navigationItemAdditionalField: z.ZodUnion<[z.ZodLiteral<"audience">, z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{ name: z.ZodEffects<z.ZodString, string, string>; label: z.ZodString; required: z.ZodOptional<z.ZodBoolean>; enabled: z.ZodOptional<z.ZodBoolean>; }, { type: z.ZodEnum<["boolean", "string"]>; multi: z.ZodOptional<z.ZodLiteral<false>>; options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }>, "strip", z.ZodTypeAny, { name: string; type: "string" | "boolean"; label: string; required?: boolean | undefined; options?: string[] | undefined; enabled?: boolean | undefined; multi?: false | undefined; }, { name: string; type: "string" | "boolean"; label: string; required?: boolean | undefined; options?: string[] | undefined; enabled?: boolean | undefined; multi?: false | undefined; }>, z.ZodObject<z.objectUtil.extendShape<{ name: z.ZodEffects<z.ZodString, string, string>; label: z.ZodString; required: z.ZodOptional<z.ZodBoolean>; enabled: z.ZodOptional<z.ZodBoolean>; }, { type: z.ZodLiteral<"media">; multi: z.ZodOptional<z.ZodLiteral<false>>; options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }>, "strip", z.ZodTypeAny, { name: string; type: "media"; label: string; required?: boolean | undefined; options?: string[] | undefined; enabled?: boolean | undefined; multi?: false | undefined; }, { name: string; type: "media"; label: string; required?: boolean | undefined; options?: string[] | undefined; enabled?: boolean | undefined; multi?: false | undefined; }>, z.ZodObject<z.objectUtil.extendShape<{ name: z.ZodEffects<z.ZodString, string, string>; label: z.ZodString; required: z.ZodOptional<z.ZodBoolean>; enabled: z.ZodOptional<z.ZodBoolean>; }, { type: z.ZodLiteral<"select">; multi: z.ZodBoolean; options: z.ZodArray<z.ZodString, "many">; }>, "strip", z.ZodTypeAny, { name: string; type: "select"; label: string; options: string[]; multi: boolean; required?: boolean | undefined; enabled?: boolean | undefined; }, { name: string; type: "select"; label: string; options: string[]; multi: boolean; required?: boolean | undefined; enabled?: boolean | undefined; }>]>]>; export type ConfigSchema = z.infer<typeof configSchema>; export declare const configSchema: z.ZodObject<{ additionalFields: z.ZodArray<z.ZodUnion<[z.ZodLiteral<"audience">, z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{ name: z.ZodEffects<z.ZodString, string, string>; label: z.ZodString; required: z.ZodOptional<z.ZodBoolean>; enabled: z.ZodOptional<z.ZodBoolean>; }, { type: z.ZodEnum<["boolean", "string"]>; multi: z.ZodOptional<z.ZodLiteral<false>>; options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }>, "strip", z.ZodTypeAny, { name: string; type: "string" | "boolean"; label: string; required?: boolean | undefined; options?: string[] | undefined; enabled?: boolean | undefined; multi?: false | undefined; }, { name: string; type: "string" | "boolean"; label: string; required?: boolean | undefined; options?: string[] | undefined; enabled?: boolean | undefined; multi?: false | undefined; }>, z.ZodObject<z.objectUtil.extendShape<{ name: z.ZodEffects<z.ZodString, string, string>; label: z.ZodString; required: z.ZodOptional<z.ZodBoolean>; enabled: z.ZodOptional<z.ZodBoolean>; }, { type: z.ZodLiteral<"media">; multi: z.ZodOptional<z.ZodLiteral<false>>; options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }>, "strip", z.ZodTypeAny, { name: string; type: "media"; label: string; required?: boolean | undefined; options?: string[] | undefined; enabled?: boolean | undefined; multi?: false | undefined; }, { name: string; type: "media"; label: string; required?: boolean | undefined; options?: string[] | undefined; enabled?: boolean | undefined; multi?: false | undefined; }>, z.ZodObject<z.objectUtil.extendShape<{ name: z.ZodEffects<z.ZodString, string, string>; label: z.ZodString; required: z.ZodOptional<z.ZodBoolean>; enabled: z.ZodOptional<z.ZodBoolean>; }, { type: z.ZodLiteral<"select">; multi: z.ZodBoolean; options: z.ZodArray<z.ZodString, "many">; }>, "strip", z.ZodTypeAny, { name: string; type: "select"; label: string; options: string[]; multi: boolean; required?: boolean | undefined; enabled?: boolean | undefined; }, { name: string; type: "select"; label: string; options: string[]; multi: boolean; required?: boolean | undefined; enabled?: boolean | undefined; }>]>]>, "many">; allowedLevels: z.ZodNumber; availableAudience: z.ZodArray<z.ZodObject<{ id: z.ZodNumber; documentId: z.ZodString; name: z.ZodString; key: z.ZodString; }, "strip", z.ZodTypeAny, { id: number; name: string; key: string; documentId: string; }, { id: number; name: string; key: string; documentId: string; }>, "many">; contentTypes: z.ZodArray<z.ZodString, "many">; contentTypesNameFields: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>; contentTypesPopulate: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>; gql: z.ZodObject<{ navigationItemRelated: z.ZodArray<z.ZodString, "many">; }, "strip", z.ZodTypeAny, { navigationItemRelated: string[]; }, { navigationItemRelated: string[]; }>; pathDefaultFields: z.ZodRecord<z.ZodString, z.ZodAny>; cascadeMenuAttached: z.ZodBoolean; preferCustomContentTypes: z.ZodBoolean; isCacheEnabled: z.ZodOptional<z.ZodBoolean>; isCachePluginEnabled: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { additionalFields: ("audience" | { name: string; type: "select"; label: string; options: string[]; multi: boolean; required?: boolean | undefined; enabled?: boolean | undefined; } | { name: string; type: "string" | "boolean"; label: string; required?: boolean | undefined; options?: string[] | undefined; enabled?: boolean | undefined; multi?: false | undefined; } | { name: string; type: "media"; label: string; required?: boolean | undefined; options?: string[] | undefined; enabled?: boolean | undefined; multi?: false | undefined; })[]; allowedLevels: number; availableAudience: { id: number; name: string; key: string; documentId: string; }[]; contentTypes: string[]; contentTypesNameFields: Record<string, string[]>; contentTypesPopulate: Record<string, string[]>; gql: { navigationItemRelated: string[]; }; pathDefaultFields: Record<string, any>; cascadeMenuAttached: boolean; preferCustomContentTypes: boolean; isCacheEnabled?: boolean | undefined; isCachePluginEnabled?: boolean | undefined; }, { additionalFields: ("audience" | { name: string; type: "select"; label: string; options: string[]; multi: boolean; required?: boolean | undefined; enabled?: boolean | undefined; } | { name: string; type: "string" | "boolean"; label: string; required?: boolean | undefined; options?: string[] | undefined; enabled?: boolean | undefined; multi?: false | undefined; } | { name: string; type: "media"; label: string; required?: boolean | undefined; options?: string[] | undefined; enabled?: boolean | undefined; multi?: false | undefined; })[]; allowedLevels: number; availableAudience: { id: number; name: string; key: string; documentId: string; }[]; contentTypes: string[]; contentTypesNameFields: Record<string, string[]>; contentTypesPopulate: Record<string, string[]>; gql: { navigationItemRelated: string[]; }; pathDefaultFields: Record<string, any>; cascadeMenuAttached: boolean; preferCustomContentTypes: boolean; isCacheEnabled?: boolean | undefined; isCachePluginEnabled?: boolean | undefined; }>; export {};