"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const fields_1 = require("../fields");
const functions_1 = require("../functions");
const action = {
    title: 'Sync RETL Model',
    description: 'Sync Reverse ETL model data to SFTP. Can also be used to sync Segment events with no predefined mappings.',
    defaultSubscription: 'type = "identify" or type = "track" or type = "page" or type = "screen" or type = "group"',
    fields: fields_1.baseFields,
    perform: async (_, data) => {
        const { payload, settings, signal, logger } = data;
        const rawMapping = data.rawMapping;
        return (0, functions_1.send)([payload], settings, rawMapping, logger, signal);
    },
    performBatch: async (_, data) => {
        const { payload, settings, signal, logger } = data;
        const rawMapping = data.rawMapping;
        return (0, functions_1.send)(payload, settings, rawMapping, logger, signal);
    }
};
exports.default = action;
//# sourceMappingURL=index.js.map