UNPKG

appwrite-utils

Version:

`appwrite-utils` is a comprehensive TypeScript library designed to streamline the development process for Appwrite projects. It provides a suite of utilities and helper functions that facilitate data manipulation, schema management, and seamless integrati

16 lines (12 loc) 472 B
import { z } from "zod"; export const indexSchema = z.object({ key: z.string(), type: z.enum(["key", "unique", "fulltext"]).optional().default("key"), status: z.string().optional(), error: z.string().optional(), attributes: z.array(z.string()), orders: z.array(z.string()).optional(), }); export const indexesSchema = z.array(indexSchema); export type Index = z.infer<typeof indexSchema>; export type Indexes = z.infer<typeof indexesSchema>;