"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const actions_core_1 = require("@segment/actions-core");
const forwardEvent_1 = __importDefault(require("./forwardEvent"));
const destination = {
    name: 'StackAdapt Events & Conversions',
    slug: 'actions-stackadapt-cloud',
    mode: 'cloud',
    description: 'Forward Segment events to StackAdapt for tracking ad conversions, and generating lookalike and retargeting Audiences',
    authentication: {
        scheme: 'custom',
        fields: {
            pixelId: {
                label: 'Universal Pixel ID',
                description: 'Your StackAdapt Universal Pixel ID',
                type: 'string',
                required: true
            }
        }
    },
    presets: [
        {
            name: 'Forward Event',
            subscribe: 'type = "identify" or type = "page" or type = "screen" or type = "track"',
            partnerAction: 'forwardEvent',
            mapping: (0, actions_core_1.defaultValues)(forwardEvent_1.default.fields),
            type: 'automatic'
        }
    ],
    actions: {
        forwardEvent: forwardEvent_1.default
    }
};
exports.default = destination;
//# sourceMappingURL=index.js.map