Object.defineProperty(exports, "__esModule", { value: true });
var getiyo_1 = require("./getiyo");
module.exports = function (api) {
    api.registerAction('publishScene', 'Publish scene', require('./actions/publishScene'));
    api.registerAction('startTimeline', 'Start timeline', require('./actions/startTimeline'));
    api.registerAction('stopTimeline', 'Stop timeline', require('./actions/stopTimeline'));
    api.registerAction('pauseTimeline', 'Pause timeline', require('./actions/pauseTimeline'));
    api.registerAction('continueTimelineHold', 'Continue timeline hold', require('./actions/continueTimelineHold'));
    api.registerAction('skipTimelineBlock', 'Skip timeline block', require('./actions/skipTimelineBlock'));
    api.registerAction('jumpToTimelineSections', 'Jump to timeline section', require('./actions/jumpToTimelineSections'));
    api.registerConnectionValidator('channel', function (ValidatorAPI) {
        var properties = ValidatorAPI.properties;
        var Channel = new getiyo_1.Getiyo({
            serverProtocol: properties.protocol,
            serverAddress: properties.address,
            serverPort: properties.port,
            channelName: properties.channel,
            channelApiKey: properties.key,
        });
        Channel.checkConnection(function (succeed) {
            if (succeed == true) {
                ValidatorAPI.callback(true);
                ValidatorAPI.setInstance(Channel);
            }
            else
                ValidatorAPI.callback(false, 'Unable to find a Getiyo channel in this location.');
        });
    });
};
//# sourceMappingURL=main.js.map