strapi-plugin-generic-custom-fields
Version:
This plugin allows you to easily add custom fields to Strapi.
572 lines (571 loc) • 35.5 kB
TypeScript
import { z } from 'zod';
export declare const itemResponseSchema: z.ZodObject<{
value: z.ZodString;
label: z.ZodString;
icon: z.ZodOptional<z.ZodObject<{
src: z.ZodString;
colorMask: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
src: string;
colorMask?: boolean | undefined;
}, {
src: string;
colorMask?: boolean | undefined;
}>>;
}, "strip", z.ZodTypeAny, {
value: string;
label: string;
icon?: {
src: string;
colorMask?: boolean | undefined;
} | undefined;
}, {
value: string;
label: string;
icon?: {
src: string;
colorMask?: boolean | undefined;
} | undefined;
}>;
export declare const itemsResponseSchema: z.ZodObject<{
items: z.ZodArray<z.ZodObject<{
value: z.ZodString;
label: z.ZodString;
icon: z.ZodOptional<z.ZodObject<{
src: z.ZodString;
colorMask: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
src: string;
colorMask?: boolean | undefined;
}, {
src: string;
colorMask?: boolean | undefined;
}>>;
}, "strip", z.ZodTypeAny, {
value: string;
label: string;
icon?: {
src: string;
colorMask?: boolean | undefined;
} | undefined;
}, {
value: string;
label: string;
icon?: {
src: string;
colorMask?: boolean | undefined;
} | undefined;
}>, "many">;
}, "strip", z.ZodTypeAny, {
items: {
value: string;
label: string;
icon?: {
src: string;
colorMask?: boolean | undefined;
} | undefined;
}[];
}, {
items: {
value: string;
label: string;
icon?: {
src: string;
colorMask?: boolean | undefined;
} | undefined;
}[];
}>;
declare const configSchema: z.ZodObject<{
customFields: z.ZodEffects<z.ZodArray<z.ZodObject<{
name: z.ZodString;
description: z.ZodOptional<z.ZodString>;
icon: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"Alien">, z.ZodLiteral<"Archive">, z.ZodLiteral<"ArrowClockwise">, z.ZodLiteral<"ArrowDown">, z.ZodLiteral<"ArrowLeft">, z.ZodLiteral<"ArrowLineLeft">, z.ZodLiteral<"ArrowLineRight">, z.ZodLiteral<"ArrowRight">, z.ZodLiteral<"ArrowUp">, z.ZodLiteral<"ArrowsCounterClockwise">, z.ZodLiteral<"ArrowsOut">, z.ZodLiteral<"Bell">, z.ZodLiteral<"Bold">, z.ZodLiteral<"Book">, z.ZodLiteral<"Briefcase">, z.ZodLiteral<"BulletList">, z.ZodLiteral<"Calendar">, z.ZodLiteral<"Car">, z.ZodLiteral<"CaretDown">, z.ZodLiteral<"CaretUp">, z.ZodLiteral<"Cast">, z.ZodLiteral<"CastleTurret">, z.ZodLiteral<"ChartBubble">, z.ZodLiteral<"ChartCircle">, z.ZodLiteral<"ChartPie">, z.ZodLiteral<"Check">, z.ZodLiteral<"CheckCircle">, z.ZodLiteral<"CheckCircleEmpty">, z.ZodLiteral<"ChevronDown">, z.ZodLiteral<"ChevronLeft">, z.ZodLiteral<"ChevronRight">, z.ZodLiteral<"ChevronUp">, z.ZodLiteral<"Clock">, z.ZodLiteral<"ClockCounterClockwise">, z.ZodLiteral<"Cloud">, z.ZodLiteral<"CloudUpload">, z.ZodLiteral<"Code">, z.ZodLiteral<"CodeBlock">, z.ZodLiteral<"Coffee">, z.ZodLiteral<"Cog">, z.ZodLiteral<"Collapse">, z.ZodLiteral<"Command">, z.ZodLiteral<"Crop">, z.ZodLiteral<"Cross">, z.ZodLiteral<"CrossCircle">, z.ZodLiteral<"Crown">, z.ZodLiteral<"Cursor">, z.ZodLiteral<"Database">, z.ZodLiteral<"Discuss">, z.ZodLiteral<"Download">, z.ZodLiteral<"Drag">, z.ZodLiteral<"Duplicate">, z.ZodLiteral<"Earth">, z.ZodLiteral<"EarthStriked">, z.ZodLiteral<"EmotionHappy">, z.ZodLiteral<"EmotionUnhappy">, z.ZodLiteral<"Expand">, z.ZodLiteral<"ExternalLink">, z.ZodLiteral<"Eye">, z.ZodLiteral<"EyeStriked">, z.ZodLiteral<"Faders">, z.ZodLiteral<"Feather">, z.ZodLiteral<"File">, z.ZodLiteral<"FileCsv">, z.ZodLiteral<"FileError">, z.ZodLiteral<"FilePdf">, z.ZodLiteral<"FileXls">, z.ZodLiteral<"FileZip">, z.ZodLiteral<"Filter">, z.ZodLiteral<"Folder">, z.ZodLiteral<"Gift">, z.ZodLiteral<"Globe">, z.ZodLiteral<"GraphQl">, z.ZodLiteral<"GridFour">, z.ZodLiteral<"GridNine">, z.ZodLiteral<"HandHeart">, z.ZodLiteral<"Hashtag">, z.ZodLiteral<"HeadingFive">, z.ZodLiteral<"HeadingFour">, z.ZodLiteral<"HeadingOne">, z.ZodLiteral<"HeadingSix">, z.ZodLiteral<"HeadingThree">, z.ZodLiteral<"HeadingTwo">, z.ZodLiteral<"Headphones">, z.ZodLiteral<"Heart">, z.ZodLiteral<"House">, z.ZodLiteral<"Image">, z.ZodLiteral<"Images">, z.ZodLiteral<"IndentDecrease">, z.ZodLiteral<"IndentIncrease">, z.ZodLiteral<"Information">, z.ZodLiteral<"Italic">, z.ZodLiteral<"Key">, z.ZodLiteral<"Layout">, z.ZodLiteral<"Lightbulb">, z.ZodLiteral<"Lightning">, z.ZodLiteral<"Link">, z.ZodLiteral<"List">, z.ZodLiteral<"ListPlus">, z.ZodLiteral<"ListSearch">, z.ZodLiteral<"Loader">, z.ZodLiteral<"Lock">, z.ZodLiteral<"Magic">, z.ZodLiteral<"Mail">, z.ZodLiteral<"ManyToMany">, z.ZodLiteral<"ManyToOne">, z.ZodLiteral<"ManyWays">, z.ZodLiteral<"Message">, z.ZodLiteral<"Microphone">, z.ZodLiteral<"Minus">, z.ZodLiteral<"MinusCircle">, z.ZodLiteral<"Monitor">, z.ZodLiteral<"Moon">, z.ZodLiteral<"More">, z.ZodLiteral<"Move">, z.ZodLiteral<"MusicNotes">, z.ZodLiteral<"NumberList">, z.ZodLiteral<"OneToMany">, z.ZodLiteral<"OneToOne">, z.ZodLiteral<"OneWay">, z.ZodLiteral<"PaintBrush">, z.ZodLiteral<"PaintRoller">, z.ZodLiteral<"Palette">, z.ZodLiteral<"PaperPlane">, z.ZodLiteral<"Paperclip">, z.ZodLiteral<"Paragraph">, z.ZodLiteral<"Pencil">, z.ZodLiteral<"Phone">, z.ZodLiteral<"Pin">, z.ZodLiteral<"PinMap">, z.ZodLiteral<"Plane">, z.ZodLiteral<"Plant">, z.ZodLiteral<"Play">, z.ZodLiteral<"Plus">, z.ZodLiteral<"PlusCircle">, z.ZodLiteral<"PresentationChart">, z.ZodLiteral<"PriceTag">, z.ZodLiteral<"PuzzlePiece">, z.ZodLiteral<"Question">, z.ZodLiteral<"Quotes">, z.ZodLiteral<"Restaurant">, z.ZodLiteral<"Rocket">, z.ZodLiteral<"Scissors">, z.ZodLiteral<"SealCheck">, z.ZodLiteral<"Search">, z.ZodLiteral<"Server">, z.ZodLiteral<"Shield">, z.ZodLiteral<"Shirt">, z.ZodLiteral<"ShoppingCart">, z.ZodLiteral<"SignOut">, z.ZodLiteral<"SlidersHorizontal">, z.ZodLiteral<"Sparkle">, z.ZodLiteral<"SquaresFour">, z.ZodLiteral<"Stack">, z.ZodLiteral<"Star">, z.ZodLiteral<"Stethoscope">, z.ZodLiteral<"Stop">, z.ZodLiteral<"Store">, z.ZodLiteral<"StrikeThrough">, z.ZodLiteral<"Sun">, z.ZodLiteral<"Television">, z.ZodLiteral<"ThumbDown">, z.ZodLiteral<"ThumbUp">, z.ZodLiteral<"Train">, z.ZodLiteral<"Trash">, z.ZodLiteral<"Typhoon">, z.ZodLiteral<"Underline">, z.ZodLiteral<"Upload">, z.ZodLiteral<"User">, z.ZodLiteral<"VolumeMute">, z.ZodLiteral<"VolumeUp">, z.ZodLiteral<"Walk">, z.ZodLiteral<"WarningCircle">, z.ZodLiteral<"Wheelchair">]>>;
inputSize: z.ZodOptional<z.ZodObject<{
default: z.ZodUnion<[z.ZodLiteral<4>, z.ZodLiteral<6>, z.ZodLiteral<8>, z.ZodLiteral<12>]>;
isResizable: z.ZodBoolean;
}, "strip", z.ZodTypeAny, {
default: 4 | 6 | 8 | 12;
isResizable: boolean;
}, {
default: 4 | 6 | 8 | 12;
isResizable: boolean;
}>>;
searchable: z.ZodOptional<z.ZodBoolean>;
fetchItems: z.ZodFunction<z.ZodTuple<[z.ZodObject<{
query: z.ZodOptional<z.ZodString>;
locale: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
query?: string | undefined;
locale?: string | undefined;
}, {
query?: string | undefined;
locale?: string | undefined;
}>], z.ZodUnknown>, z.ZodUnion<[z.ZodObject<{
items: z.ZodArray<z.ZodObject<{
value: z.ZodString;
label: z.ZodString;
icon: z.ZodOptional<z.ZodObject<{
src: z.ZodString;
colorMask: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
src: string;
colorMask?: boolean | undefined;
}, {
src: string;
colorMask?: boolean | undefined;
}>>;
}, "strip", z.ZodTypeAny, {
value: string;
label: string;
icon?: {
src: string;
colorMask?: boolean | undefined;
} | undefined;
}, {
value: string;
label: string;
icon?: {
src: string;
colorMask?: boolean | undefined;
} | undefined;
}>, "many">;
}, "strip", z.ZodTypeAny, {
items: {
value: string;
label: string;
icon?: {
src: string;
colorMask?: boolean | undefined;
} | undefined;
}[];
}, {
items: {
value: string;
label: string;
icon?: {
src: string;
colorMask?: boolean | undefined;
} | undefined;
}[];
}>, z.ZodPromise<z.ZodObject<{
items: z.ZodArray<z.ZodObject<{
value: z.ZodString;
label: z.ZodString;
icon: z.ZodOptional<z.ZodObject<{
src: z.ZodString;
colorMask: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
src: string;
colorMask?: boolean | undefined;
}, {
src: string;
colorMask?: boolean | undefined;
}>>;
}, "strip", z.ZodTypeAny, {
value: string;
label: string;
icon?: {
src: string;
colorMask?: boolean | undefined;
} | undefined;
}, {
value: string;
label: string;
icon?: {
src: string;
colorMask?: boolean | undefined;
} | undefined;
}>, "many">;
}, "strip", z.ZodTypeAny, {
items: {
value: string;
label: string;
icon?: {
src: string;
colorMask?: boolean | undefined;
} | undefined;
}[];
}, {
items: {
value: string;
label: string;
icon?: {
src: string;
colorMask?: boolean | undefined;
} | undefined;
}[];
}>>]>>;
fetchItem: z.ZodFunction<z.ZodTuple<[z.ZodObject<{
value: z.ZodString;
locale: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
value: string;
locale?: string | undefined;
}, {
value: string;
locale?: string | undefined;
}>], z.ZodUnknown>, z.ZodUnion<[z.ZodObject<{
value: z.ZodString;
label: z.ZodString;
icon: z.ZodOptional<z.ZodObject<{
src: z.ZodString;
colorMask: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
src: string;
colorMask?: boolean | undefined;
}, {
src: string;
colorMask?: boolean | undefined;
}>>;
}, "strip", z.ZodTypeAny, {
value: string;
label: string;
icon?: {
src: string;
colorMask?: boolean | undefined;
} | undefined;
}, {
value: string;
label: string;
icon?: {
src: string;
colorMask?: boolean | undefined;
} | undefined;
}>, z.ZodPromise<z.ZodObject<{
value: z.ZodString;
label: z.ZodString;
icon: z.ZodOptional<z.ZodObject<{
src: z.ZodString;
colorMask: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
src: string;
colorMask?: boolean | undefined;
}, {
src: string;
colorMask?: boolean | undefined;
}>>;
}, "strip", z.ZodTypeAny, {
value: string;
label: string;
icon?: {
src: string;
colorMask?: boolean | undefined;
} | undefined;
}, {
value: string;
label: string;
icon?: {
src: string;
colorMask?: boolean | undefined;
} | undefined;
}>>]>>;
}, "strip", z.ZodTypeAny, {
name: string;
fetchItems: (args_0: {
query?: string | undefined;
locale?: string | undefined;
}, ...args: unknown[]) => {
items: {
value: string;
label: string;
icon?: {
src: string;
colorMask?: boolean | undefined;
} | undefined;
}[];
} | Promise<{
items: {
value: string;
label: string;
icon?: {
src: string;
colorMask?: boolean | undefined;
} | undefined;
}[];
}>;
fetchItem: (args_0: {
value: string;
locale?: string | undefined;
}, ...args: unknown[]) => {
value: string;
label: string;
icon?: {
src: string;
colorMask?: boolean | undefined;
} | undefined;
} | Promise<{
value: string;
label: string;
icon?: {
src: string;
colorMask?: boolean | undefined;
} | undefined;
}>;
icon?: "Alien" | "Archive" | "ArrowClockwise" | "ArrowDown" | "ArrowLeft" | "ArrowLineLeft" | "ArrowLineRight" | "ArrowRight" | "ArrowUp" | "ArrowsCounterClockwise" | "ArrowsOut" | "Bell" | "Bold" | "Book" | "Briefcase" | "BulletList" | "Calendar" | "Car" | "CaretDown" | "CaretUp" | "Cast" | "CastleTurret" | "ChartBubble" | "ChartCircle" | "ChartPie" | "Check" | "CheckCircle" | "CheckCircleEmpty" | "ChevronDown" | "ChevronLeft" | "ChevronRight" | "ChevronUp" | "Clock" | "ClockCounterClockwise" | "Cloud" | "CloudUpload" | "Code" | "CodeBlock" | "Coffee" | "Cog" | "Collapse" | "Command" | "Crop" | "Cross" | "CrossCircle" | "Crown" | "Cursor" | "Database" | "Discuss" | "Download" | "Drag" | "Duplicate" | "Earth" | "EarthStriked" | "EmotionHappy" | "EmotionUnhappy" | "Expand" | "ExternalLink" | "Eye" | "EyeStriked" | "Faders" | "Feather" | "File" | "FileCsv" | "FileError" | "FilePdf" | "FileXls" | "FileZip" | "Filter" | "Folder" | "Gift" | "Globe" | "GraphQl" | "GridFour" | "GridNine" | "HandHeart" | "Hashtag" | "HeadingFive" | "HeadingFour" | "HeadingOne" | "HeadingSix" | "HeadingThree" | "HeadingTwo" | "Headphones" | "Heart" | "House" | "Image" | "Images" | "IndentDecrease" | "IndentIncrease" | "Information" | "Italic" | "Key" | "Layout" | "Lightbulb" | "Lightning" | "Link" | "List" | "ListPlus" | "ListSearch" | "Loader" | "Lock" | "Magic" | "Mail" | "ManyToMany" | "ManyToOne" | "ManyWays" | "Message" | "Microphone" | "Minus" | "MinusCircle" | "Monitor" | "Moon" | "More" | "Move" | "MusicNotes" | "NumberList" | "OneToMany" | "OneToOne" | "OneWay" | "PaintBrush" | "PaintRoller" | "Palette" | "PaperPlane" | "Paperclip" | "Paragraph" | "Pencil" | "Phone" | "Pin" | "PinMap" | "Plane" | "Plant" | "Play" | "Plus" | "PlusCircle" | "PresentationChart" | "PriceTag" | "PuzzlePiece" | "Question" | "Quotes" | "Restaurant" | "Rocket" | "Scissors" | "SealCheck" | "Search" | "Server" | "Shield" | "Shirt" | "ShoppingCart" | "SignOut" | "SlidersHorizontal" | "Sparkle" | "SquaresFour" | "Stack" | "Star" | "Stethoscope" | "Stop" | "Store" | "StrikeThrough" | "Sun" | "Television" | "ThumbDown" | "ThumbUp" | "Train" | "Trash" | "Typhoon" | "Underline" | "Upload" | "User" | "VolumeMute" | "VolumeUp" | "Walk" | "WarningCircle" | "Wheelchair" | undefined;
description?: string | undefined;
inputSize?: {
default: 4 | 6 | 8 | 12;
isResizable: boolean;
} | undefined;
searchable?: boolean | undefined;
}, {
name: string;
fetchItems: (args_0: {
query?: string | undefined;
locale?: string | undefined;
}, ...args: unknown[]) => {
items: {
value: string;
label: string;
icon?: {
src: string;
colorMask?: boolean | undefined;
} | undefined;
}[];
} | Promise<{
items: {
value: string;
label: string;
icon?: {
src: string;
colorMask?: boolean | undefined;
} | undefined;
}[];
}>;
fetchItem: (args_0: {
value: string;
locale?: string | undefined;
}, ...args: unknown[]) => {
value: string;
label: string;
icon?: {
src: string;
colorMask?: boolean | undefined;
} | undefined;
} | Promise<{
value: string;
label: string;
icon?: {
src: string;
colorMask?: boolean | undefined;
} | undefined;
}>;
icon?: "Alien" | "Archive" | "ArrowClockwise" | "ArrowDown" | "ArrowLeft" | "ArrowLineLeft" | "ArrowLineRight" | "ArrowRight" | "ArrowUp" | "ArrowsCounterClockwise" | "ArrowsOut" | "Bell" | "Bold" | "Book" | "Briefcase" | "BulletList" | "Calendar" | "Car" | "CaretDown" | "CaretUp" | "Cast" | "CastleTurret" | "ChartBubble" | "ChartCircle" | "ChartPie" | "Check" | "CheckCircle" | "CheckCircleEmpty" | "ChevronDown" | "ChevronLeft" | "ChevronRight" | "ChevronUp" | "Clock" | "ClockCounterClockwise" | "Cloud" | "CloudUpload" | "Code" | "CodeBlock" | "Coffee" | "Cog" | "Collapse" | "Command" | "Crop" | "Cross" | "CrossCircle" | "Crown" | "Cursor" | "Database" | "Discuss" | "Download" | "Drag" | "Duplicate" | "Earth" | "EarthStriked" | "EmotionHappy" | "EmotionUnhappy" | "Expand" | "ExternalLink" | "Eye" | "EyeStriked" | "Faders" | "Feather" | "File" | "FileCsv" | "FileError" | "FilePdf" | "FileXls" | "FileZip" | "Filter" | "Folder" | "Gift" | "Globe" | "GraphQl" | "GridFour" | "GridNine" | "HandHeart" | "Hashtag" | "HeadingFive" | "HeadingFour" | "HeadingOne" | "HeadingSix" | "HeadingThree" | "HeadingTwo" | "Headphones" | "Heart" | "House" | "Image" | "Images" | "IndentDecrease" | "IndentIncrease" | "Information" | "Italic" | "Key" | "Layout" | "Lightbulb" | "Lightning" | "Link" | "List" | "ListPlus" | "ListSearch" | "Loader" | "Lock" | "Magic" | "Mail" | "ManyToMany" | "ManyToOne" | "ManyWays" | "Message" | "Microphone" | "Minus" | "MinusCircle" | "Monitor" | "Moon" | "More" | "Move" | "MusicNotes" | "NumberList" | "OneToMany" | "OneToOne" | "OneWay" | "PaintBrush" | "PaintRoller" | "Palette" | "PaperPlane" | "Paperclip" | "Paragraph" | "Pencil" | "Phone" | "Pin" | "PinMap" | "Plane" | "Plant" | "Play" | "Plus" | "PlusCircle" | "PresentationChart" | "PriceTag" | "PuzzlePiece" | "Question" | "Quotes" | "Restaurant" | "Rocket" | "Scissors" | "SealCheck" | "Search" | "Server" | "Shield" | "Shirt" | "ShoppingCart" | "SignOut" | "SlidersHorizontal" | "Sparkle" | "SquaresFour" | "Stack" | "Star" | "Stethoscope" | "Stop" | "Store" | "StrikeThrough" | "Sun" | "Television" | "ThumbDown" | "ThumbUp" | "Train" | "Trash" | "Typhoon" | "Underline" | "Upload" | "User" | "VolumeMute" | "VolumeUp" | "Walk" | "WarningCircle" | "Wheelchair" | undefined;
description?: string | undefined;
inputSize?: {
default: 4 | 6 | 8 | 12;
isResizable: boolean;
} | undefined;
searchable?: boolean | undefined;
}>, "many">, {
name: string;
fetchItems: (args_0: {
query?: string | undefined;
locale?: string | undefined;
}, ...args: unknown[]) => {
items: {
value: string;
label: string;
icon?: {
src: string;
colorMask?: boolean | undefined;
} | undefined;
}[];
} | Promise<{
items: {
value: string;
label: string;
icon?: {
src: string;
colorMask?: boolean | undefined;
} | undefined;
}[];
}>;
fetchItem: (args_0: {
value: string;
locale?: string | undefined;
}, ...args: unknown[]) => {
value: string;
label: string;
icon?: {
src: string;
colorMask?: boolean | undefined;
} | undefined;
} | Promise<{
value: string;
label: string;
icon?: {
src: string;
colorMask?: boolean | undefined;
} | undefined;
}>;
icon?: "Alien" | "Archive" | "ArrowClockwise" | "ArrowDown" | "ArrowLeft" | "ArrowLineLeft" | "ArrowLineRight" | "ArrowRight" | "ArrowUp" | "ArrowsCounterClockwise" | "ArrowsOut" | "Bell" | "Bold" | "Book" | "Briefcase" | "BulletList" | "Calendar" | "Car" | "CaretDown" | "CaretUp" | "Cast" | "CastleTurret" | "ChartBubble" | "ChartCircle" | "ChartPie" | "Check" | "CheckCircle" | "CheckCircleEmpty" | "ChevronDown" | "ChevronLeft" | "ChevronRight" | "ChevronUp" | "Clock" | "ClockCounterClockwise" | "Cloud" | "CloudUpload" | "Code" | "CodeBlock" | "Coffee" | "Cog" | "Collapse" | "Command" | "Crop" | "Cross" | "CrossCircle" | "Crown" | "Cursor" | "Database" | "Discuss" | "Download" | "Drag" | "Duplicate" | "Earth" | "EarthStriked" | "EmotionHappy" | "EmotionUnhappy" | "Expand" | "ExternalLink" | "Eye" | "EyeStriked" | "Faders" | "Feather" | "File" | "FileCsv" | "FileError" | "FilePdf" | "FileXls" | "FileZip" | "Filter" | "Folder" | "Gift" | "Globe" | "GraphQl" | "GridFour" | "GridNine" | "HandHeart" | "Hashtag" | "HeadingFive" | "HeadingFour" | "HeadingOne" | "HeadingSix" | "HeadingThree" | "HeadingTwo" | "Headphones" | "Heart" | "House" | "Image" | "Images" | "IndentDecrease" | "IndentIncrease" | "Information" | "Italic" | "Key" | "Layout" | "Lightbulb" | "Lightning" | "Link" | "List" | "ListPlus" | "ListSearch" | "Loader" | "Lock" | "Magic" | "Mail" | "ManyToMany" | "ManyToOne" | "ManyWays" | "Message" | "Microphone" | "Minus" | "MinusCircle" | "Monitor" | "Moon" | "More" | "Move" | "MusicNotes" | "NumberList" | "OneToMany" | "OneToOne" | "OneWay" | "PaintBrush" | "PaintRoller" | "Palette" | "PaperPlane" | "Paperclip" | "Paragraph" | "Pencil" | "Phone" | "Pin" | "PinMap" | "Plane" | "Plant" | "Play" | "Plus" | "PlusCircle" | "PresentationChart" | "PriceTag" | "PuzzlePiece" | "Question" | "Quotes" | "Restaurant" | "Rocket" | "Scissors" | "SealCheck" | "Search" | "Server" | "Shield" | "Shirt" | "ShoppingCart" | "SignOut" | "SlidersHorizontal" | "Sparkle" | "SquaresFour" | "Stack" | "Star" | "Stethoscope" | "Stop" | "Store" | "StrikeThrough" | "Sun" | "Television" | "ThumbDown" | "ThumbUp" | "Train" | "Trash" | "Typhoon" | "Underline" | "Upload" | "User" | "VolumeMute" | "VolumeUp" | "Walk" | "WarningCircle" | "Wheelchair" | undefined;
description?: string | undefined;
inputSize?: {
default: 4 | 6 | 8 | 12;
isResizable: boolean;
} | undefined;
searchable?: boolean | undefined;
}[], {
name: string;
fetchItems: (args_0: {
query?: string | undefined;
locale?: string | undefined;
}, ...args: unknown[]) => {
items: {
value: string;
label: string;
icon?: {
src: string;
colorMask?: boolean | undefined;
} | undefined;
}[];
} | Promise<{
items: {
value: string;
label: string;
icon?: {
src: string;
colorMask?: boolean | undefined;
} | undefined;
}[];
}>;
fetchItem: (args_0: {
value: string;
locale?: string | undefined;
}, ...args: unknown[]) => {
value: string;
label: string;
icon?: {
src: string;
colorMask?: boolean | undefined;
} | undefined;
} | Promise<{
value: string;
label: string;
icon?: {
src: string;
colorMask?: boolean | undefined;
} | undefined;
}>;
icon?: "Alien" | "Archive" | "ArrowClockwise" | "ArrowDown" | "ArrowLeft" | "ArrowLineLeft" | "ArrowLineRight" | "ArrowRight" | "ArrowUp" | "ArrowsCounterClockwise" | "ArrowsOut" | "Bell" | "Bold" | "Book" | "Briefcase" | "BulletList" | "Calendar" | "Car" | "CaretDown" | "CaretUp" | "Cast" | "CastleTurret" | "ChartBubble" | "ChartCircle" | "ChartPie" | "Check" | "CheckCircle" | "CheckCircleEmpty" | "ChevronDown" | "ChevronLeft" | "ChevronRight" | "ChevronUp" | "Clock" | "ClockCounterClockwise" | "Cloud" | "CloudUpload" | "Code" | "CodeBlock" | "Coffee" | "Cog" | "Collapse" | "Command" | "Crop" | "Cross" | "CrossCircle" | "Crown" | "Cursor" | "Database" | "Discuss" | "Download" | "Drag" | "Duplicate" | "Earth" | "EarthStriked" | "EmotionHappy" | "EmotionUnhappy" | "Expand" | "ExternalLink" | "Eye" | "EyeStriked" | "Faders" | "Feather" | "File" | "FileCsv" | "FileError" | "FilePdf" | "FileXls" | "FileZip" | "Filter" | "Folder" | "Gift" | "Globe" | "GraphQl" | "GridFour" | "GridNine" | "HandHeart" | "Hashtag" | "HeadingFive" | "HeadingFour" | "HeadingOne" | "HeadingSix" | "HeadingThree" | "HeadingTwo" | "Headphones" | "Heart" | "House" | "Image" | "Images" | "IndentDecrease" | "IndentIncrease" | "Information" | "Italic" | "Key" | "Layout" | "Lightbulb" | "Lightning" | "Link" | "List" | "ListPlus" | "ListSearch" | "Loader" | "Lock" | "Magic" | "Mail" | "ManyToMany" | "ManyToOne" | "ManyWays" | "Message" | "Microphone" | "Minus" | "MinusCircle" | "Monitor" | "Moon" | "More" | "Move" | "MusicNotes" | "NumberList" | "OneToMany" | "OneToOne" | "OneWay" | "PaintBrush" | "PaintRoller" | "Palette" | "PaperPlane" | "Paperclip" | "Paragraph" | "Pencil" | "Phone" | "Pin" | "PinMap" | "Plane" | "Plant" | "Play" | "Plus" | "PlusCircle" | "PresentationChart" | "PriceTag" | "PuzzlePiece" | "Question" | "Quotes" | "Restaurant" | "Rocket" | "Scissors" | "SealCheck" | "Search" | "Server" | "Shield" | "Shirt" | "ShoppingCart" | "SignOut" | "SlidersHorizontal" | "Sparkle" | "SquaresFour" | "Stack" | "Star" | "Stethoscope" | "Stop" | "Store" | "StrikeThrough" | "Sun" | "Television" | "ThumbDown" | "ThumbUp" | "Train" | "Trash" | "Typhoon" | "Underline" | "Upload" | "User" | "VolumeMute" | "VolumeUp" | "Walk" | "WarningCircle" | "Wheelchair" | undefined;
description?: string | undefined;
inputSize?: {
default: 4 | 6 | 8 | 12;
isResizable: boolean;
} | undefined;
searchable?: boolean | undefined;
}[]>;
}, "strip", z.ZodTypeAny, {
customFields: {
name: string;
fetchItems: (args_0: {
query?: string | undefined;
locale?: string | undefined;
}, ...args: unknown[]) => {
items: {
value: string;
label: string;
icon?: {
src: string;
colorMask?: boolean | undefined;
} | undefined;
}[];
} | Promise<{
items: {
value: string;
label: string;
icon?: {
src: string;
colorMask?: boolean | undefined;
} | undefined;
}[];
}>;
fetchItem: (args_0: {
value: string;
locale?: string | undefined;
}, ...args: unknown[]) => {
value: string;
label: string;
icon?: {
src: string;
colorMask?: boolean | undefined;
} | undefined;
} | Promise<{
value: string;
label: string;
icon?: {
src: string;
colorMask?: boolean | undefined;
} | undefined;
}>;
icon?: "Alien" | "Archive" | "ArrowClockwise" | "ArrowDown" | "ArrowLeft" | "ArrowLineLeft" | "ArrowLineRight" | "ArrowRight" | "ArrowUp" | "ArrowsCounterClockwise" | "ArrowsOut" | "Bell" | "Bold" | "Book" | "Briefcase" | "BulletList" | "Calendar" | "Car" | "CaretDown" | "CaretUp" | "Cast" | "CastleTurret" | "ChartBubble" | "ChartCircle" | "ChartPie" | "Check" | "CheckCircle" | "CheckCircleEmpty" | "ChevronDown" | "ChevronLeft" | "ChevronRight" | "ChevronUp" | "Clock" | "ClockCounterClockwise" | "Cloud" | "CloudUpload" | "Code" | "CodeBlock" | "Coffee" | "Cog" | "Collapse" | "Command" | "Crop" | "Cross" | "CrossCircle" | "Crown" | "Cursor" | "Database" | "Discuss" | "Download" | "Drag" | "Duplicate" | "Earth" | "EarthStriked" | "EmotionHappy" | "EmotionUnhappy" | "Expand" | "ExternalLink" | "Eye" | "EyeStriked" | "Faders" | "Feather" | "File" | "FileCsv" | "FileError" | "FilePdf" | "FileXls" | "FileZip" | "Filter" | "Folder" | "Gift" | "Globe" | "GraphQl" | "GridFour" | "GridNine" | "HandHeart" | "Hashtag" | "HeadingFive" | "HeadingFour" | "HeadingOne" | "HeadingSix" | "HeadingThree" | "HeadingTwo" | "Headphones" | "Heart" | "House" | "Image" | "Images" | "IndentDecrease" | "IndentIncrease" | "Information" | "Italic" | "Key" | "Layout" | "Lightbulb" | "Lightning" | "Link" | "List" | "ListPlus" | "ListSearch" | "Loader" | "Lock" | "Magic" | "Mail" | "ManyToMany" | "ManyToOne" | "ManyWays" | "Message" | "Microphone" | "Minus" | "MinusCircle" | "Monitor" | "Moon" | "More" | "Move" | "MusicNotes" | "NumberList" | "OneToMany" | "OneToOne" | "OneWay" | "PaintBrush" | "PaintRoller" | "Palette" | "PaperPlane" | "Paperclip" | "Paragraph" | "Pencil" | "Phone" | "Pin" | "PinMap" | "Plane" | "Plant" | "Play" | "Plus" | "PlusCircle" | "PresentationChart" | "PriceTag" | "PuzzlePiece" | "Question" | "Quotes" | "Restaurant" | "Rocket" | "Scissors" | "SealCheck" | "Search" | "Server" | "Shield" | "Shirt" | "ShoppingCart" | "SignOut" | "SlidersHorizontal" | "Sparkle" | "SquaresFour" | "Stack" | "Star" | "Stethoscope" | "Stop" | "Store" | "StrikeThrough" | "Sun" | "Television" | "ThumbDown" | "ThumbUp" | "Train" | "Trash" | "Typhoon" | "Underline" | "Upload" | "User" | "VolumeMute" | "VolumeUp" | "Walk" | "WarningCircle" | "Wheelchair" | undefined;
description?: string | undefined;
inputSize?: {
default: 4 | 6 | 8 | 12;
isResizable: boolean;
} | undefined;
searchable?: boolean | undefined;
}[];
}, {
customFields: {
name: string;
fetchItems: (args_0: {
query?: string | undefined;
locale?: string | undefined;
}, ...args: unknown[]) => {
items: {
value: string;
label: string;
icon?: {
src: string;
colorMask?: boolean | undefined;
} | undefined;
}[];
} | Promise<{
items: {
value: string;
label: string;
icon?: {
src: string;
colorMask?: boolean | undefined;
} | undefined;
}[];
}>;
fetchItem: (args_0: {
value: string;
locale?: string | undefined;
}, ...args: unknown[]) => {
value: string;
label: string;
icon?: {
src: string;
colorMask?: boolean | undefined;
} | undefined;
} | Promise<{
value: string;
label: string;
icon?: {
src: string;
colorMask?: boolean | undefined;
} | undefined;
}>;
icon?: "Alien" | "Archive" | "ArrowClockwise" | "ArrowDown" | "ArrowLeft" | "ArrowLineLeft" | "ArrowLineRight" | "ArrowRight" | "ArrowUp" | "ArrowsCounterClockwise" | "ArrowsOut" | "Bell" | "Bold" | "Book" | "Briefcase" | "BulletList" | "Calendar" | "Car" | "CaretDown" | "CaretUp" | "Cast" | "CastleTurret" | "ChartBubble" | "ChartCircle" | "ChartPie" | "Check" | "CheckCircle" | "CheckCircleEmpty" | "ChevronDown" | "ChevronLeft" | "ChevronRight" | "ChevronUp" | "Clock" | "ClockCounterClockwise" | "Cloud" | "CloudUpload" | "Code" | "CodeBlock" | "Coffee" | "Cog" | "Collapse" | "Command" | "Crop" | "Cross" | "CrossCircle" | "Crown" | "Cursor" | "Database" | "Discuss" | "Download" | "Drag" | "Duplicate" | "Earth" | "EarthStriked" | "EmotionHappy" | "EmotionUnhappy" | "Expand" | "ExternalLink" | "Eye" | "EyeStriked" | "Faders" | "Feather" | "File" | "FileCsv" | "FileError" | "FilePdf" | "FileXls" | "FileZip" | "Filter" | "Folder" | "Gift" | "Globe" | "GraphQl" | "GridFour" | "GridNine" | "HandHeart" | "Hashtag" | "HeadingFive" | "HeadingFour" | "HeadingOne" | "HeadingSix" | "HeadingThree" | "HeadingTwo" | "Headphones" | "Heart" | "House" | "Image" | "Images" | "IndentDecrease" | "IndentIncrease" | "Information" | "Italic" | "Key" | "Layout" | "Lightbulb" | "Lightning" | "Link" | "List" | "ListPlus" | "ListSearch" | "Loader" | "Lock" | "Magic" | "Mail" | "ManyToMany" | "ManyToOne" | "ManyWays" | "Message" | "Microphone" | "Minus" | "MinusCircle" | "Monitor" | "Moon" | "More" | "Move" | "MusicNotes" | "NumberList" | "OneToMany" | "OneToOne" | "OneWay" | "PaintBrush" | "PaintRoller" | "Palette" | "PaperPlane" | "Paperclip" | "Paragraph" | "Pencil" | "Phone" | "Pin" | "PinMap" | "Plane" | "Plant" | "Play" | "Plus" | "PlusCircle" | "PresentationChart" | "PriceTag" | "PuzzlePiece" | "Question" | "Quotes" | "Restaurant" | "Rocket" | "Scissors" | "SealCheck" | "Search" | "Server" | "Shield" | "Shirt" | "ShoppingCart" | "SignOut" | "SlidersHorizontal" | "Sparkle" | "SquaresFour" | "Stack" | "Star" | "Stethoscope" | "Stop" | "Store" | "StrikeThrough" | "Sun" | "Television" | "ThumbDown" | "ThumbUp" | "Train" | "Trash" | "Typhoon" | "Underline" | "Upload" | "User" | "VolumeMute" | "VolumeUp" | "Walk" | "WarningCircle" | "Wheelchair" | undefined;
description?: string | undefined;
inputSize?: {
default: 4 | 6 | 8 | 12;
isResizable: boolean;
} | undefined;
searchable?: boolean | undefined;
}[];
}>;
export type Config = z.infer<typeof configSchema>;
export type ItemsResponse = z.infer<typeof itemsResponseSchema>;
export type ItemResponse = z.infer<typeof itemResponseSchema>;
declare const _default: {
default: {
customFields: never[];
};
validator(config: unknown): void;
};
export default _default;