import { Client } from '../client'; import type { Models } from '../models'; export declare class Migrations { client: Client; constructor(client: Client); /** * List Migrations * * * @param {string[]} queries * @param {string} search * @throws {AppwriteException} * @returns {Promise} */ list(queries?: string[], search?: string): Promise; /** * Migrate Appwrite Data * * * @param {string[]} resources * @param {string} endpoint * @param {string} projectId * @param {string} apiKey * @throws {AppwriteException} * @returns {Promise} */ createAppwriteMigration(resources: string[], endpoint: string, projectId: string, apiKey: string): Promise; /** * Generate a report on Appwrite Data * * * @param {string[]} resources * @param {string} endpoint * @param {string} projectID * @param {string} key * @throws {AppwriteException} * @returns {Promise} */ getAppwriteReport(resources: string[], endpoint: string, projectID: string, key: string): Promise; /** * Migrate Firebase Data (Service Account) * * * @param {string[]} resources * @param {string} serviceAccount * @throws {AppwriteException} * @returns {Promise} */ createFirebaseMigration(resources: string[], serviceAccount: string): Promise; /** * Revoke Appwrite's authorization to access Firebase Projects * * * @throws {AppwriteException} * @returns {Promise<{}>} */ deleteFirebaseAuth(): Promise<{}>; /** * Migrate Firebase Data (OAuth) * * * @param {string[]} resources * @param {string} projectId * @throws {AppwriteException} * @returns {Promise} */ createFirebaseOAuthMigration(resources: string[], projectId: string): Promise; /** * List Firebase Projects * * * @throws {AppwriteException} * @returns {Promise} */ listFirebaseProjects(): Promise; /** * Generate a report on Firebase Data * * * @param {string[]} resources * @param {string} serviceAccount * @throws {AppwriteException} * @returns {Promise} */ getFirebaseReport(resources: string[], serviceAccount: string): Promise; /** * Generate a report on Firebase Data using OAuth * * * @param {string[]} resources * @param {string} projectId * @throws {AppwriteException} * @returns {Promise} */ getFirebaseReportOAuth(resources: string[], projectId: string): Promise; /** * Migrate NHost Data * * * @param {string[]} resources * @param {string} subdomain * @param {string} region * @param {string} adminSecret * @param {string} database * @param {string} username * @param {string} password * @param {number} port * @throws {AppwriteException} * @returns {Promise} */ createNHostMigration(resources: string[], subdomain: string, region: string, adminSecret: string, database: string, username: string, password: string, port?: number): Promise; /** * Generate a report on NHost Data * * * @param {string[]} resources * @param {string} subdomain * @param {string} region * @param {string} adminSecret * @param {string} database * @param {string} username * @param {string} password * @param {number} port * @throws {AppwriteException} * @returns {Promise} */ getNHostReport(resources: string[], subdomain: string, region: string, adminSecret: string, database: string, username: string, password: string, port?: number): Promise; /** * Migrate Supabase Data * * * @param {string[]} resources * @param {string} endpoint * @param {string} apiKey * @param {string} databaseHost * @param {string} username * @param {string} password * @param {number} port * @throws {AppwriteException} * @returns {Promise} */ createSupabaseMigration(resources: string[], endpoint: string, apiKey: string, databaseHost: string, username: string, password: string, port?: number): Promise; /** * Generate a report on Supabase Data * * * @param {string[]} resources * @param {string} endpoint * @param {string} apiKey * @param {string} databaseHost * @param {string} username * @param {string} password * @param {number} port * @throws {AppwriteException} * @returns {Promise} */ getSupabaseReport(resources: string[], endpoint: string, apiKey: string, databaseHost: string, username: string, password: string, port?: number): Promise; /** * Get Migration * * * @param {string} migrationId * @throws {AppwriteException} * @returns {Promise} */ get(migrationId: string): Promise; /** * Retry Migration * * * @param {string} migrationId * @throws {AppwriteException} * @returns {Promise} */ retry(migrationId: string): Promise; /** * Delete Migration * * * @param {string} migrationId * @throws {AppwriteException} * @returns {Promise<{}>} */ delete(migrationId: string): Promise<{}>; }