export type { ServiceResult, ServiceResultMetadata } from './service-result.js'; export { createSuccessResult, createFailureResult } from './service-result.js'; /** * Options for SFDMU execution operations. */ export type ISFDMUOptions = { /** Source org username or alias for export operations */ sourceOrg?: string; /** Target org username or alias for import operations */ targetOrg?: string; /** Path to the export.json configuration file */ configPath: string; /** Whether to use Bulk API for operations (default: true) */ useBulkAPI?: boolean; /** Execution timeout in milliseconds (default: 300000 = 5 minutes) */ timeout?: number; /** Maximum buffer size in bytes for stdout/stderr (default: 10MB) */ maxBuffer?: number; /** Enable simulation mode - validates and previews changes without modifying data */ simulation?: boolean; }; /** * Raw result from SFDMU CLI execution. */ export type ISFDMUResult = { /** Exit code from the SFDMU process (0 = success) */ exitCode: number; /** Standard output from SFDMU */ stdout: string; /** Standard error from SFDMU */ stderr: string; /** Number of records processed (parsed from stdout) */ recordsProcessed?: number; /** Error messages extracted from the output */ errors?: string[]; }; /** * SFDMU-specific error codes (5000 range for system/internal errors). */ export declare const SFDMUErrorCodes: { /** SFDMU plugin is not installed */ readonly NOT_INSTALLED: "SFDMU_NOT_INSTALLED"; /** SFDMU execution timed out */ readonly TIMEOUT: "SFDMU_TIMEOUT"; /** SFDMU execution failed with non-zero exit code */ readonly EXECUTION_FAILED: "SFDMU_EXECUTION_FAILED"; /** Invalid configuration file path */ readonly CONFIG_INVALID: "SFDMU_CONFIG_INVALID"; }; /** * Type alias for SFDMU error code values. */ export type SFDMUErrorCode = (typeof SFDMUErrorCodes)[keyof typeof SFDMUErrorCodes];