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
11 lines (10 loc) • 364 B
JavaScript
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);