"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const sfmc_properties_1 = require("../sfmc-properties");
const action = {
    title: 'Create Contact',
    description: 'Create contacts in Salesforce Marketing Cloud.',
    defaultSubscription: 'type = "identify"',
    fields: {
        contactKey: { ...sfmc_properties_1.contactKey, required: true }
    },
    perform: (request, { settings, payload }) => {
        return request(`https://${settings.subdomain}.rest.marketingcloudapis.com/contacts/v1/contacts`, {
            method: 'POST',
            json: {
                contactKey: payload.contactKey,
                attributeSets: []
            }
        });
    }
};
exports.default = action;
//# sourceMappingURL=index.js.map