import { LimeObjectBulkCommand } from '../../commandbus'; import { Expression } from '../../query'; import { LimeTypeContext } from '../../core'; declare const COMMAND_ID: "limeobject.bulk-create-dialog"; declare module '../../commandbus' { interface CommandRegistry { [COMMAND_ID]: BulkCreateDialogCommand; } } /** * Open a dialog for bulk creating limeobjects * * * ### Flow example * Let's have a look at the general flow by going through the concrete example of adding several persons to a marketing activity: * - Go to the table view of persons. * - Filter everyone who should be included in the marketing activity. * - Select 'Bulk create objects' form the action menu. * - Fill out the form and click 'create'. * - A toast message appears and gives you 5 seconds to undo the action before it creates the corresponding task. * - Another toast message will inform you after the task is completed. * - If the task ended successful you can go to the participant table view and check the result. * * ### Configuration * In order to activate the feature go to a table configuration in lime-admin to the limetype you want to bulk create from * and add the following configuration: * * ```json * "actions": [ * { * "id": "limeobject.bulk-create-dialog", * "params": { * "relation": "" * } * } * ], * ``` * * @id `limeobject.bulk-create-dialog` * @public * @group Lime objects */ export declare class BulkCreateDialogCommand implements LimeObjectBulkCommand { context: LimeTypeContext; /** * A query describing what limeobjects to create new limeobjects from. Each object from the result will result in a * new related limeobject to be created */ filter: Expression | null; /** * The name of the relation on the limetype to create objects of */ relation: string; } export {};