"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const utils_1 = require("./utils");
const fields_1 = require("./fields");
const action = {
    title: 'Sync Event',
    description: 'Sync ecommerce events to Taguchi.',
    fields: {
        target: fields_1.target,
        eventType: fields_1.eventType,
        eventData: fields_1.eventData,
        products: fields_1.products
    },
    perform: async (request, { payload, settings }) => {
        await (0, utils_1.send)(request, [payload], settings, false);
    },
    performBatch: async (request, { payload, settings }) => {
        await (0, utils_1.send)(request, payload, settings, true);
    }
};
exports.default = action;
//# sourceMappingURL=index.js.map