"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const fields_1 = require("./fields");
const functions_1 = require("./functions");
const action = {
    title: 'Sync to S3',
    description: 'Syncs Segment event data to S3.',
    defaultSubscription: 'type = "identify" or type = "track"',
    fields: fields_1.commonFields,
    perform: async (_, data) => {
        const { payload, settings, signal } = data;
        const rawMapping = data.rawMapping;
        return (0, functions_1.send)([payload], settings, rawMapping, signal);
    },
    performBatch: async (_, data) => {
        const { payload, settings, signal } = data;
        const rawMapping = data.rawMapping;
        return (0, functions_1.send)(payload, settings, rawMapping, signal);
    }
};
exports.default = action;
//# sourceMappingURL=index.js.map