"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const common_fields_1 = require("../common-fields");
const api_1 = require("../api");
const action = {
    title: 'Send Track Event',
    description: 'Adds a track event in Canvas',
    defaultSubscription: 'type = "track"',
    fields: {
        event: {
            description: 'The name of the event.',
            label: 'Event name',
            required: true,
            type: 'string',
            default: {
                '@path': '$.event'
            }
        },
        properties: {
            label: 'Event Properties',
            description: 'A JSON object containing the properties of the event.',
            required: false,
            type: 'object',
            default: {
                '@path': '$.properties'
            }
        },
        ...common_fields_1.commonFields
    },
    perform: (0, api_1.perform)('track'),
    performBatch: (0, api_1.performBatch)('track')
};
exports.default = action;
//# sourceMappingURL=index.js.map