myt/exporters/event.js

32 lines
659 B
JavaScript
Raw Permalink Normal View History

2022-02-02 04:05:31 +00:00
module.exports = {
schemaCol: 'EVENT_SCHEMA',
nameCol: 'EVENT_NAME',
escapeCols: [
'starts',
'ends',
2022-02-07 14:43:12 +00:00
'executeAt',
'comment'
],
defaults: {
type: 'RECURRING',
intervalValue: 1,
intervalField: 'DAY',
onCompletion: 'PRESERVE'
},
2022-02-07 14:43:12 +00:00
formatter(params) {
let status;
switch(params.status){
case 'DISABLED':
status = 'DISABLE';
break;
case 'SLAVESIDE_DISABLED':
status = 'DISABLE ON SLAVE';
break;
default:
status = 'ENABLE'
}
params.status = status;
}
2022-02-02 04:05:31 +00:00
};