import { CuneiformCommand } from '../../../base/cuneiform-command.js'; /** * Command result type for JSON output. */ export type DefinitionUpdateCommandResult = { /** Whether the update was successful */ success: boolean; /** The Salesforce record ID of the updated definition */ definitionId: string; /** Whether any attributes were updated */ updated: boolean; /** Names of the attributes that were written */ updatedAttributes: string[]; /** Error message if failed */ error?: string; }; /** * Updates metadata attributes on a profiling definition. * * Use this command to change the name, category, time category, segment category, * or description of an existing definition without touching its field selection. * * @example * ```bash * # Rename a definition * sf cuneiform definition update --target-org myOrg --id a00xx --name "Q1 Revenue Analysis" * ``` */ export default class DefinitionUpdate 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; id: import("@oclif/core/interfaces").OptionFlag; name: import("@oclif/core/interfaces").OptionFlag; category: import("@oclif/core/interfaces").OptionFlag; 'time-category': import("@oclif/core/interfaces").OptionFlag; 'segment-category': import("@oclif/core/interfaces").OptionFlag; description: import("@oclif/core/interfaces").OptionFlag; format: import("@oclif/core/interfaces").OptionFlag<"table" | "json", import("@oclif/core/interfaces").CustomOptions>; }; /** * Executes the update command. * * @returns DefinitionUpdateCommandResult with success status and updated attributes */ run(): Promise; private validateAttributeLengths; /** * Displays update results in the requested format. * * @param data - Update result data * @param format - Output format: 'table' for prose, 'json' for structured JSON */ private displayResults; }