UNPKG

@joshfarrant/shortcuts-js

Version:
29 lines 735 B
"use strict"; 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