/** * Per-item result from a bulk summary operation (stop or reprofile). */ export type SummaryItemResult = { /** The profiling summary record ID */ id: string; /** Whether this item was successfully processed */ success: boolean; /** Error code when not successful */ errorCode?: string; /** Human-readable message when not successful */ message?: string; /** Request ID assigned by the ISV backend (reprofile only) */ requestId?: string; }; /** * Result of a bulk summary operation (stop or reprofile). */ export type BulkSummaryResult = { /** Per-item results preserving input order */ results: SummaryItemResult[]; /** Aggregate summary */ summary: { /** Total unique IDs processed */ total: number; /** Number of successfully processed items */ succeeded: number; /** Number of failed items */ failed: number; }; }; /** * Response shape from the Cuneiform profiling REST API for bulk summary operations. * Used by both stop and reprofile endpoints. */ export type BulkSummaryApiResponse = { success: boolean; results: Array<{ id: string; success: boolean; errorCode?: string; message?: string; requestId?: string; }> | null; errors: string[] | null; }; /** * In-progress profiling statuses eligible for stopping. * * Agg_OverallStatus__c is populated from Custom Labels with exactly 3 values: * IN PROGRESS, COMPLETED, FAILED. PREPARING/STAGED/NOT STARTED are PFx_Status__c * values, not overall status values. */ export declare const IN_PROGRESS_SUMMARY_STATUSES: readonly ["IN PROGRESS"]; /** * Terminal failure statuses eligible for re-profiling. * * When a summary is stopped, Agg_OverallStatus__c becomes FAILED (not CANCELED). * CANCELED is a PFx_Status__c value, not an overall status value. */ export declare const REPROFILABLE_SUMMARY_STATUSES: readonly ["FAILED"];