appwrite-utils-cli
Version:
Appwrite Utility Functions to help with database management, data conversion, data import, migrations, and much more. Meant to be used as a CLI tool, I do not recommend installing this in frontend environments.
14 lines (13 loc) • 501 B
TypeScript
import type { AppwriteConfig, Attribute } from "appwrite-utils";
export declare class SchemaGenerator {
private relationshipMap;
private config;
private appwriteFolderPath;
constructor(config: AppwriteConfig, appwriteFolderPath: string);
updateTsSchemas(): void;
private extractRelationships;
private addRelationship;
generateSchemas(): void;
createSchemaString: (name: string, attributes: Attribute[]) => string;
typeToZod: (attribute: Attribute) => string;
}