@joshfarrant/shortcuts-js
Version:
An iOS 12 Shortcuts creator
30 lines (29 loc) • 948 B
TypeScript
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;