/** * Schema for operation tracking table (_appwrite_operations) * * This table is created dynamically in each database to track long-running operations * like imports, exports, transfers, and backups. */ import { z } from "zod"; export interface OperationRecord { $id: string; $createdAt: string; $updatedAt: string; operationType: string; targetTable?: string; status: OperationStatus; progress: number; total: number; data?: any; error?: string; } export type OperationStatus = 'pending' | 'in_progress' | 'completed' | 'failed' | 'cancelled'; export declare const OPERATION_STATUSES: readonly ["pending", "in_progress", "completed", "failed", "cancelled"]; export declare const OperationStatusSchema: z.ZodEnum<{ pending: "pending"; in_progress: "in_progress"; completed: "completed"; cancelled: "cancelled"; failed: "failed"; }>; export declare const OperationRecordSchema: z.ZodObject<{ $id: z.ZodString; $createdAt: z.ZodString; $updatedAt: z.ZodString; operationType: z.ZodString; targetTable: z.ZodOptional; status: z.ZodEnum<{ pending: "pending"; in_progress: "in_progress"; completed: "completed"; cancelled: "cancelled"; failed: "failed"; }>; progress: z.ZodNumber; total: z.ZodNumber; data: z.ZodOptional; error: z.ZodOptional; }, z.core.$strip>; export declare const OPERATIONS_TABLE_ID = "appwrite_operations"; export declare const OPERATIONS_TABLE_NAME = "Operations Tracking";