/** * @file Represents Salesforce QuickAction * @author Shinichi Tomita */ import Connection from './connection'; import { DescribeQuickActionDetailResult, Record, Optional, Schema } from './types'; /** * type definitions */ export type QuickActionDefaultValues = { [name: string]: any; }; export type QuickActionResult = { id: string; feedItemIds: Optional; success: boolean; created: boolean; contextId: string; errors: Object[]; }; /** * A class for quick action */ export declare class QuickAction { _conn: Connection; _path: string; /** * */ constructor(conn: Connection, path: string); /** * Describe the action's information (including layout, etc.) */ describe(): Promise; /** * Retrieve default field values in the action (for given record, if specified) */ defaultValues(contextId?: string): Promise; /** * Execute the action for given context Id and record information */ execute(contextId: string, record: Record): Promise; } export default QuickAction;