"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const purchase_1 = __importDefault(require("./purchase"));
const initiateCheckout_1 = __importDefault(require("./initiateCheckout"));
const addToCart_1 = __importDefault(require("./addToCart"));
const viewContent_1 = __importDefault(require("./viewContent"));
const search_1 = __importDefault(require("./search"));
const pageView_1 = __importDefault(require("./pageView"));
const custom_1 = __importDefault(require("./custom"));
const addToCart2_1 = __importDefault(require("./addToCart2"));
const pageView2_1 = __importDefault(require("./pageView2"));
const purchase2_1 = __importDefault(require("./purchase2"));
const custom2_1 = __importDefault(require("./custom2"));
const viewContent2_1 = __importDefault(require("./viewContent2"));
const initiateCheckout2_1 = __importDefault(require("./initiateCheckout2"));
const search2_1 = __importDefault(require("./search2"));
const destination = {
    name: 'Facebook Conversions API (Actions)',
    slug: 'actions-facebook-conversions-api',
    mode: 'cloud',
    authentication: {
        scheme: 'custom',
        fields: {
            pixelId: {
                label: 'Pixel ID',
                description: 'Your Facebook Pixel ID. Note: You may also use a dataset ID here if you have configured a dataset in your Facebook Events Manager.',
                type: 'string',
                required: true
            },
            testEventCode: {
                label: 'Test Event Code',
                type: 'string',
                description: 'Use this field to specify that events should be test events rather than actual traffic. You can find your Test Event Code in your Facebook Events Manager under the "Test events" tab. This can be overridden by the Test Event Code defined in the mapping. You\'ll want to remove your Test Event Code when sending real traffic through this integration.',
                required: false
            }
        }
    },
    extendRequest: () => {
        return {
            headers: { authorization: `Bearer ${process.env.ACTIONS_FB_CAPI_SYSTEM_USER_TOKEN}` }
        };
    },
    actions: {
        purchase: purchase_1.default,
        initiateCheckout: initiateCheckout_1.default,
        addToCart: addToCart_1.default,
        viewContent: viewContent_1.default,
        search: search_1.default,
        pageView: pageView_1.default,
        custom: custom_1.default,
        search2: search2_1.default,
        viewContent2: viewContent2_1.default,
        initiateCheckout2: initiateCheckout2_1.default,
        addToCart2: addToCart2_1.default,
        pageView2: pageView2_1.default,
        purchase2: purchase2_1.default,
        custom2: custom2_1.default
    }
};
exports.default = destination;
//# sourceMappingURL=index.js.map