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