"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const properties_1 = require("../properties");
const functions_1 = require("../functions");
const action = {
    title: 'Remove From List',
    description: 'Remove users from a list in Marketo.',
    defaultSubscription: 'event = "Audience Exited"',
    fields: {
        external_id: { ...properties_1.external_id },
        lookup_field: { ...properties_1.lookup_field },
        field_value: { ...properties_1.field_value },
        enable_batching: { ...properties_1.enable_batching },
        batch_size: { ...properties_1.batch_size, default: 300, maximum: 300 },
        event_name: { ...properties_1.event_name }
    },
    perform: async (request, { settings, payload, statsContext }) => {
        statsContext?.statsClient?.incr('removeFromAudience', 1, statsContext?.tags);
        return (0, functions_1.removeFromList)(request, settings, payload, statsContext);
    },
    performBatch: async (request, { settings, payload, statsContext }) => {
        statsContext?.statsClient?.incr('removeFromAudience.batch', 1, statsContext?.tags);
        return (0, functions_1.removeFromListBatch)(request, settings, payload, statsContext);
    }
};
exports.default = action;
//# sourceMappingURL=index.js.map