@joshfarrant/shortcuts-js
Version:
An iOS 12 Shortcuts creator
29 lines • 735 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
/**
* @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: '',
* });
* ```
*/
const setDoNotDisturb = ({ value = true, until = 'Turned Off', time = '08:00', event = '', }) => ({
WFWorkflowActionIdentifier: 'is.workflow.actions.dnd.set',
WFWorkflowActionParameters: {
Enabled: value,
AssertionType: until,
Time: time,
Event: event,
},
});
exports.default = setDoNotDisturb;
//# sourceMappingURL=setDoNotDisturb.js.map