appwrite-utils
Version:
`appwrite-utils` is a comprehensive TypeScript library designed to streamline the development process for Appwrite projects. Version 1.0.0 aligns with the YAML-first architecture of `appwrite-utils-cli`, providing enhanced integration capabilities and rob
32 lines (31 loc) • 1.09 kB
TypeScript
import { z } from "zod";
export declare const relationshipAttributeSchema: z.ZodObject<{
key: z.ZodString;
type: z.ZodDefault<z.ZodLiteral<"relationship">>;
error: z.ZodOptional<z.ZodDefault<z.ZodString>>;
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
array: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
relatedCollection: z.ZodString;
relationType: z.ZodEnum<{
oneToMany: "oneToMany";
manyToOne: "manyToOne";
oneToOne: "oneToOne";
manyToMany: "manyToMany";
}>;
twoWay: z.ZodBoolean;
twoWayKey: z.ZodOptional<z.ZodString>;
onDelete: z.ZodDefault<z.ZodEnum<{
setNull: "setNull";
cascade: "cascade";
restrict: "restrict";
}>>;
side: z.ZodOptional<z.ZodEnum<{
parent: "parent";
child: "child";
}>>;
importMapping: z.ZodOptional<z.ZodObject<{
originalIdField: z.ZodString;
targetField: z.ZodOptional<z.ZodString>;
}, z.core.$strip>>;
}, z.core.$strip>;
export type RelationshipAttribute = z.infer<typeof relationshipAttributeSchema>;