UNPKG

@joshfarrant/shortcuts-js

Version:
27 lines 656 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * @action Create Alarm * @section Content Types > Calendar > Clock * @icon Clock * * Creates an alarm in the Clock app. * * ```js * createAlarm({ * label: 'Alarm', * time: '8 AM', * repeat: ['Sunday', 'Saturday'], * }); * ``` */ const createAlarm = ({ label = '', time = '', repeat = [], }) => ({ WFWorkflowActionIdentifier: 'is.workflow.actions.alarm.create', WFWorkflowActionParameters: { WFLabel: label, WFTime: time, WFFrequency: repeat, }, }); exports.default = createAlarm; //# sourceMappingURL=createAlarm.js.map