UNPKG

@joshfarrant/shortcuts-js

Version:
30 lines (29 loc) 948 B
import WFSerialization from '../interfaces/WF/WFSerialization'; import WFWorkflowAction from '../interfaces/WF/WFWorkflowAction'; /** * @action Set Do Not Disturb * @section Actions > Scripting > Device * @icon DoNotDisturb * * Sets the device’s Do Not Disturb to on or off * * ```js * setDoNotDisturb({ * value: true, * until: 'Time', * time: '08:00', * event: '', * }); * ``` */ declare const setDoNotDisturb: ({ value, until, time, event, }: { /** Enable or disable Do Not Disturb */ value?: boolean | undefined; /** Define when Do Not Disturb should be enabled until */ until?: "Turned Off" | "Time" | "I Leave" | "Event Ends" | undefined; /** Define the time to be used by the "Time" assertion */ time?: string | undefined; /** Define the event to be used by the "Event" assertion */ event?: string | WFSerialization | undefined; }) => WFWorkflowAction; export default setDoNotDisturb;