@joshfarrant/shortcuts-js
Version:
An iOS 12 Shortcuts creator
27 lines • 656 B
JavaScript
;
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