"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const constants_1 = require("./constants");
const sendUserdata_1 = __importDefault(require("./sendUserdata"));
const destination = {
    name: 'Jimo Cloud (actions)',
    slug: 'actions-jimo-cloud',
    mode: 'cloud',
    authentication: {
        scheme: 'custom',
        fields: {
            apiKey: {
                label: 'API Key',
                description: 'Your Jimo API key.',
                type: 'password',
                required: true
            }
        },
        testAuthentication: (request) => {
            return request((0, constants_1.buildJimoUrl)(constants_1.JIMO_TEST_PATH), {
                method: 'get'
            });
        }
    },
    extendRequest: ({ settings }) => {
        return {
            headers: { Authorization: `Bearer ${settings.apiKey}` }
        };
    },
    actions: {
        sendUserdata: sendUserdata_1.default
    }
};
exports.default = destination;
//# sourceMappingURL=index.js.map