"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const utils_1 = require("../utils");
const schema_1 = require("../schema");
const action = {
    title: 'View',
    description: 'Tracks a page view. We recommend including this on every page.',
    defaultSubscription: 'type = "page"',
    fields: {
        url: {
            label: 'URL',
            description: 'The address of the page viewed',
            type: 'string',
            default: { '@path': '$.context.page.url' },
            format: 'uri',
            required: true
        },
        ...schema_1.clientFields
    },
    perform: (0, utils_1.buildPerformer)('view')
};
exports.default = action;
//# sourceMappingURL=index.js.map