"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const syncAudience_1 = __importDefault(require("./syncAudience"));
const syncTraits_1 = __importDefault(require("./syncTraits"));
const destination = {
    name: 'Kevel UserDB (Actions)',
    slug: 'actions-kevel',
    description: 'Send Segment user profiles and Audiences to Kevel UserDB for campaign targeting. Only users with a Segment userId will be synced.',
    mode: 'cloud',
    authentication: {
        scheme: 'custom',
        fields: {
            networkId: {
                label: 'Kevel Network ID',
                description: 'Your Kevel Network ID',
                type: 'string',
                required: true
            },
            apiKey: {
                label: 'Kevel API Key',
                description: 'Your Kevel API Key',
                type: 'password',
                required: true
            }
        }
    },
    extendRequest({ settings }) {
        return {
            headers: {
                'X-Adzerk-ApiKey': settings.apiKey,
                'Content-Type': 'application/json',
                'X-Adzerk-Sdk-Version': 'adzerk-segment-integration:v1.0'
            }
        };
    },
    actions: {
        syncAudience: syncAudience_1.default,
        syncTraits: syncTraits_1.default
    }
};
exports.default = destination;
//# sourceMappingURL=index.js.map