"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const utils_1 = require("../utils");
const schema_1 = require("../schema");
const action = {
    title: 'Lead',
    description: 'Track lead generation, like signups, subscriptions, and notification requests.',
    defaultSubscription: 'type = "track" and event = "Signed Up"',
    fields: {
        ...(0, schema_1.priceFields)(),
        id: {
            label: 'Lead ID',
            description: 'The unique ID for this generated lead',
            type: 'string',
            required: false
        },
        productId: {
            label: 'Product ID',
            description: 'The product ID associated with this lead',
            type: 'string',
            default: { '@path': '$.properties.product_id' },
            required: false
        },
        quantity: {
            label: 'Quantity',
            description: 'The number of items represented by this lead',
            type: 'number',
            default: { '@path': '$.properties.quantity' },
            required: false
        },
        type: {
            label: 'Lead type',
            description: 'The type of lead',
            type: 'string',
            default: { '@path': '$.properties.type' },
            required: false
        },
        category: {
            label: 'Lead category',
            description: 'The category of lead',
            type: 'string',
            default: { '@path': '$.properties.category' },
            required: false
        },
        ...schema_1.clientFields
    },
    perform: (0, utils_1.buildPerformer)('lead')
};
exports.default = action;
//# sourceMappingURL=index.js.map