export interface ISFStringValue { stringValue: string; } export interface ISFBooleanValue { booleanValue: boolean; } export interface ISFDoubleValue { doubleValue: number; } export interface ISFDateTimeValue { dateTimeValue: string; } export type SFValue = ISFStringValue | ISFBooleanValue | ISFDoubleValue | ISFDateTimeValue | null; export interface ICaseHistoryNode { Id: string; RedHatSupportField: { value: string; displayValue: string | null; label: string | null; }; OldValue: SFValue; NewValue: SFValue; CreatedBy: { Name: { value: string; }; UserType: { value: string; } | null; SmallPhotoUrl: { value: string | null; } | null; }; CreatedDate: { value: string; }; } export interface ICaseHistoryEdge { node: ICaseHistoryNode; } export interface IGetCaseHistoryData { redhat_support_uiapi: { query: { RedHatSupportCaseHistory: { edges: ICaseHistoryEdge[]; }; }; }; } export type CaseHistorySortOrder = 'ASC' | 'DESC'; export interface IGetCaseHistoryVars { caseId: string; first?: number; orderBy?: { CreatedDate: { order: CaseHistorySortOrder; }; }; } /** * Normalized representation of a single Salesforce case history entry. * * Discriminated on `type`: * - `'Action'` — lifecycle events (created, closed, owner transfer) where no field * value changed. `outputText` contains the human-readable sentence. * - `'Change'` — field-value mutations. `outputText` is empty; the Timeline layer * formats display text via `applyReplacements` / `handleFieldChange`. */ export interface ICaseHistoryItem { id: string; /** Raw Salesforce API field name (e.g. `Status`, `Case_Language__c`, `created`). */ fieldName: string; /** Resolved human-readable label for the field (from FIELD_NAME_DISPLAY_MAP, SF label, or displayValue). */ displayName: string; label: string | null; oldValue: string | null; newValue: string | null; createdDate: string; createdByUserName: string; createdByCustomer: boolean; photoUrl: string | null; type: 'Action' | 'Change'; /** Pre-built sentence for Action items (e.g. "created the case"); empty for Change items. */ outputText: string; } //# sourceMappingURL=caseHistory.d.ts.map