{"version":3,"file":"CronjobController-method-action-types.mjs","sourceRoot":"","sources":["../../src/cronjob/CronjobController-method-action-types.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/**\n * This file is auto generated.\n * Do not edit manually.\n */\n\nimport type { CronjobController } from './CronjobController';\n\n/**\n * Initialize the CronjobController.\n *\n * This starts the daily timer, clears out expired events\n * and reschedules any remaining events.\n */\nexport type CronjobControllerInitAction = {\n  type: `CronjobController:init`;\n  handler: CronjobController['init'];\n};\n\n/**\n * Schedule a non-recurring background event.\n *\n * @param event - The event to schedule.\n * @returns The ID of the scheduled event.\n */\nexport type CronjobControllerScheduleAction = {\n  type: `CronjobController:schedule`;\n  handler: CronjobController['schedule'];\n};\n\n/**\n * Cancel an event.\n *\n * @param origin - The origin making the cancel call.\n * @param id - The id of the event to cancel.\n * @throws If the event does not exist.\n */\nexport type CronjobControllerCancelAction = {\n  type: `CronjobController:cancel`;\n  handler: CronjobController['cancel'];\n};\n\n/**\n * Get a list of a Snap's background events.\n *\n * @param snapId - The id of the Snap to fetch background events for.\n * @returns An array of background events.\n */\nexport type CronjobControllerGetAction = {\n  type: `CronjobController:get`;\n  handler: CronjobController['get'];\n};\n\n/**\n * Union of all CronjobController action types.\n */\nexport type CronjobControllerMethodActions =\n  | CronjobControllerInitAction\n  | CronjobControllerScheduleAction\n  | CronjobControllerCancelAction\n  | CronjobControllerGetAction;\n"]}