"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const types_1 = require("../types");
const action = {
    title: 'Track Event',
    description: 'Track events',
    platform: 'web',
    defaultSubscription: 'type = "track"',
    fields: {
        name: {
            description: 'The name of the event.',
            label: 'Name',
            required: true,
            type: 'string',
            default: {
                '@path': '$.event'
            }
        }
    },
    perform: (Iterate, event) => {
        Iterate(types_1.Command.Event, event.payload.name);
    }
};
exports.default = action;
//# sourceMappingURL=index.js.map