import { CuneiformCommand } from '../../../base/cuneiform-command.js'; /** * Command result type for JSON output. */ export type SummaryPurgeCommandResult = { /** Whether the operation was successful */ success: boolean; /** Number of summaries deleted */ deleted: number; /** Number of summaries skipped */ skipped: number; /** Number of summaries that failed to delete */ failed: number; /** Total number of summaries processed */ total: number; /** Whether this was a dry run */ dryRun: boolean; /** Whether prune mode was active */ pruneMode: boolean; /** Whether the operation was cancelled by the user */ cancelled?: boolean; /** Error message if failed */ error?: string; }; /** * Purges profiling summaries from a Salesforce org. * * Deletes summaries matching filters or specific IDs. Only summaries with * terminal profiling statuses are eligible for deletion. Cascade delete * automatically removes child Field Results, Value Results, and KPI Results. * * Optional --prune mode preserves the latest summary per definition, * only deleting older summaries. */ export default class SummaryPurge extends CuneiformCommand { static readonly summary: string; static readonly description: string; static readonly examples: string[]; static readonly flags: { 'target-org': import("@oclif/core/interfaces").OptionFlag; 'api-version': import("@oclif/core/interfaces").OptionFlag; all: import("@oclif/core/interfaces").BooleanFlag; ids: import("@oclif/core/interfaces").OptionFlag; objects: import("@oclif/core/interfaces").OptionFlag; category: import("@oclif/core/interfaces").OptionFlag; 'is-active': import("@oclif/core/interfaces").BooleanFlag; limit: import("@oclif/core/interfaces").OptionFlag; prune: import("@oclif/core/interfaces").BooleanFlag; 'dry-run': import("@oclif/core/interfaces").BooleanFlag; 'no-prompt': import("@oclif/core/interfaces").BooleanFlag; format: import("@oclif/core/interfaces").OptionFlag<"table" | "json", import("@oclif/core/interfaces").CustomOptions>; }; /** * Maps error codes to i18n message keys. */ private static readonly ERROR_CODE_MAP; /** * Renders a padded row for the progress table. */ private isTable; private static formatProgressRow; /** * Executes the summary purge command. */ run(): Promise; private displayInitialization; private displayNoEligible; /** * Displays progress events as a dynamically-sized table. */ private displayProgressTable; /** * Displays the paginated preview before user confirmation. */ private displayPreview; /** * Displays purge results. */ private displayResults; }