"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const cordial_client_1 = __importDefault(require("../cordial-client"));
const identities_fields_1 = __importDefault(require("../identities-fields"));
const action = {
    title: 'Remove Contact from List',
    description: 'Remove Contact from Cordial List',
    fields: {
        ...identities_fields_1.default,
        groupId: {
            label: 'Group ID',
            description: 'Segment group id. Required.',
            type: 'string',
            required: true,
            default: {
                '@path': '$.groupId'
            }
        }
    },
    perform: async (request, { settings, payload }) => {
        const client = new cordial_client_1.default(settings, request);
        return client.removeContactFromList(payload);
    }
};
exports.default = action;
//# sourceMappingURL=index.js.map