"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 trackEvent_1 = __importDefault(require("./trackEvent"));
const identifyUser_1 = __importDefault(require("./identifyUser"));
const presets = [
    {
        name: 'Track Event',
        subscribe: 'type = "track" or type = "page" or type = "screen"',
        partnerAction: 'trackEvent',
        mapping: (0, actions_core_1.defaultValues)(trackEvent_1.default.fields),
        type: 'automatic'
    },
    {
        name: 'Identify User',
        subscribe: 'type = "identify" or type = "group" or type = "alias"',
        partnerAction: 'identifyUser',
        mapping: (0, actions_core_1.defaultValues)(identifyUser_1.default.fields),
        type: 'automatic'
    }
];
const destination = {
    name: 'PlayerZero Cloud',
    slug: 'actions-playerzero-cloud',
    mode: 'cloud',
    authentication: {
        scheme: 'custom',
        fields: {
            projectToken: {
                label: 'PlayerZero Project Token',
                description: 'The Project Token for the PlayerZero project you want to send data to. You can find this Token on the [Segment (Cloud) Connector](https://go.playerzero.app/connector/segment-cloud) page.',
                type: 'password',
                required: true
            }
        }
    },
    presets,
    actions: {
        trackEvent: trackEvent_1.default,
        identifyUser: identifyUser_1.default
    }
};
exports.default = destination;
//# sourceMappingURL=index.js.map