"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const utils_1 = require("../utils");
const schema_1 = require("../schema");
const action = {
    title: 'Add to Cart',
    description: 'This event tracks any time an object is added to the cart.',
    defaultSubscription: 'type = "track" and event = "Product Added"',
    fields: {
        quantity: {
            label: 'Quantity',
            description: 'The number of items added to the cart',
            type: 'number',
            default: { '@path': '$.properties.quantity' },
            required: true
        },
        ...schema_1.productFields,
        ...schema_1.clientFields
    },
    perform: (0, utils_1.buildPerformer)('add_to_cart')
};
exports.default = action;
//# sourceMappingURL=index.js.map