9
packages/validation/src/icons.ts
Normal file
9
packages/validation/src/icons.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { z } from "zod";
|
||||
|
||||
const findIconsSchema = z.object({
|
||||
searchText: z.string().optional(),
|
||||
});
|
||||
|
||||
export const iconsSchemas = {
|
||||
findIcons: findIconsSchema,
|
||||
};
|
||||
@@ -1,6 +1,7 @@
|
||||
import { appSchemas } from "./app";
|
||||
import { boardSchemas } from "./board";
|
||||
import { groupSchemas } from "./group";
|
||||
import { iconsSchemas } from "./icons";
|
||||
import { integrationSchemas } from "./integration";
|
||||
import { locationSchemas } from "./location";
|
||||
import { userSchemas } from "./user";
|
||||
@@ -14,6 +15,7 @@ export const validation = {
|
||||
app: appSchemas,
|
||||
widget: widgetSchemas,
|
||||
location: locationSchemas,
|
||||
icons: iconsSchemas,
|
||||
};
|
||||
|
||||
export { createSectionSchema, sharedItemSchema } from "./shared";
|
||||
|
||||
Reference in New Issue
Block a user