UNPKG

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.

15 lines (14 loc) 549 B
import type { AppwriteConfig, Attribute } from "appwrite-utils"; export declare class SchemaGenerator { private relationshipMap; private config; private appwriteFolderPath; constructor(config: AppwriteConfig, appwriteFolderPath: string); updateTsSchemas(): void; updateConfig(config: AppwriteConfig): void; private extractRelationships; private addRelationship; generateSchemas(): void; createSchemaString: (name: string, attributes: Attribute[]) => string; typeToZod: (attribute: Attribute) => string; }