Skip to content

[Freeze Card] Update Card.ts #81637

@MariaHCD

Description

@MariaHCD

Add the FrozenCardData type:

type FrozenCardData = {
    /** Account ID of the user who froze the card */
    byAccountID: number;
    
    /** UTC datetime when card was frozen (ISO format: YYYY-MM-DD HH:MM:SS) */
    date: string;
};

In type Card, we’ll add the frozen NVP:

type Card = OnyxCommon.OnyxValueWithOfflineFeedback<{
    // ... existing properties ...
    
    /** Additional card data */
    nameValuePairs?: OnyxCommon.OnyxValueWithOfflineFeedback<{
        // ... existing properties ...
        
        /** 
         * Metadata about when and by whom the card was frozen.
         * null/undefined if card is not frozen
         */
        frozen?: FrozenCardData | null;
    }>;
}>;

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions