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

48 lines (47 loc) 1.66 kB
import { z } from "zod"; export declare const indexSchema: z.ZodObject<{ key: z.ZodString; type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["key", "unique", "fulltext"]>>>; status: z.ZodOptional<z.ZodString>; error: z.ZodOptional<z.ZodString>; attributes: z.ZodArray<z.ZodString, "many">; orders: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { type: "key" | "unique" | "fulltext"; key: string; attributes: string[]; status?: string | undefined; error?: string | undefined; orders?: string[] | undefined; }, { key: string; attributes: string[]; type?: "key" | "unique" | "fulltext" | undefined; status?: string | undefined; error?: string | undefined; orders?: string[] | undefined; }>; export declare const indexesSchema: z.ZodArray<z.ZodObject<{ key: z.ZodString; type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["key", "unique", "fulltext"]>>>; status: z.ZodOptional<z.ZodString>; error: z.ZodOptional<z.ZodString>; attributes: z.ZodArray<z.ZodString, "many">; orders: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { type: "key" | "unique" | "fulltext"; key: string; attributes: string[]; status?: string | undefined; error?: string | undefined; orders?: string[] | undefined; }, { key: string; attributes: string[]; type?: "key" | "unique" | "fulltext" | undefined; status?: string | undefined; error?: string | undefined; orders?: string[] | undefined; }>, "many">; export type Index = z.infer<typeof indexSchema>; export type Indexes = z.infer<typeof indexesSchema>;