import { CuneiformCommand } from '../../../../base/cuneiform-command.js'; import type { IProfileRequest } from '../../../../models/profile-request-types.js'; /** * Command result type for JSON output. */ export type ProfileRequestCancelCommandResult = { /** Whether the operation was successful */ success: boolean; /** Number of requests cancelled */ cancelled: number; /** Number of requests that failed to cancel */ failed: number; /** Total cancellable requests found */ totalCancellable: number; /** Whether this was a dry run */ dryRun: boolean; /** Whether the operation was cancelled by the user */ userCancelled?: boolean; /** Error message if failed */ error?: string; /** Cancelled request details (for JSON output) */ requests?: IProfileRequest[]; /** Failed request details (for JSON output) */ failures?: Array<{ id: string; error: string; }>; }; /** * Cancels profiling requests in a Salesforce org. * * Cancels queued profiling requests. Canceled, completed, and rejected * requests cannot be canceled. */ export default class ProfileRequestCancel 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; 'request-ids': import("@oclif/core/interfaces").OptionFlag; 'dry-run': import("@oclif/core/interfaces").BooleanFlag; 'no-prompt': import("@oclif/core/interfaces").BooleanFlag; }; /** * Maps error codes to i18n message keys. */ private static readonly ERROR_CODE_MAP; /** * Executes the profile request cancel command. */ run(): Promise; /** * Displays cancel results. */ private displayResults; }