@trycourier/courier-ui-inbox
Version:
Inbox components for the Courier web UI
29 lines (28 loc) • 1.13 kB
TypeScript
import { InboxMessage, InboxAction } from '@trycourier/courier-js';
import { InboxDataSet } from '../types/inbox-data-set';
/**
* Copy a message
* @param message - The message to copy
* @returns A copy of the message
*/
export declare function copyMessage(message: InboxMessage): InboxMessage;
/**
* Copy an inbox action
* @param action - The inbox action to copy
* @returns A copy of the inbox action
*/
export declare function copyInboxAction(action: InboxAction): InboxAction;
/**
* Copy an inbox data set
* @param dataSet - The inbox data set to copy
* @returns A copy of the inbox data set
*/
export declare function copyInboxDataSet(dataSet?: InboxDataSet): InboxDataSet | undefined;
/**
* Compare the mutable fields of two InboxMessages.
* @param message1 - The first inbox message to compare
* @param message2 - The second inbox message to compare
* @returns True if the mutable fields are equal, false otherwise
*/
export declare function mutableInboxMessageFieldsEqual(message1: InboxMessage, message2: InboxMessage): boolean;
export declare function getMessageTime(message: InboxMessage): string;