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.
31 lines (30 loc) • 1.09 kB
TypeScript
/**
* Generates JSON Schema for YAML import configurations.
* Provides IntelliSense support for YAML files in IDEs.
*/
export declare function generateImportConfigSchema(): any;
/**
* Generates JSON Schema for collection definitions (legacy Databases API)
*/
export declare function generateCollectionSchema(): any;
/**
* Generates JSON Schema for table definitions (new TablesDB API)
*/
export declare function generateTableSchema(): any;
/**
* Generates JSON Schema for main Appwrite configuration (YAML format)
* Matches the structure of YamlConfigSchema from yamlConfig.ts
*/
export declare function generateAppwriteConfigSchema(): any;
/**
* Creates all necessary schema files for YAML configurations.
*
* @param appwriteFolderPath - Path to the .appwrite directory
*/
export declare function createImportSchemas(appwriteFolderPath: string): Promise<void>;
/**
* Generates example YAML import configurations.
*
* @param appwriteFolderPath - Path to the .appwrite directory
*/
export declare function createImportExamples(appwriteFolderPath: string): Promise<void>;