UNPKG

@cognigy/rest-api-client

Version:

Cognigy REST-Client

37 lines 1.11 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MERGE_PROFILE = void 0; /* Custom modules */ const createNodeDescriptor_1 = require("../../createNodeDescriptor"); /** * Node name: 'mergeProfile' * * Purpose: * Attempts to merge a profile with another */ exports.MERGE_PROFILE = (0, createNodeDescriptor_1.createNodeDescriptor)({ type: "mergeProfile", defaultLabel: "Merge Profile", summary: "UI__NODE_EDITOR__MERGE_PROFILE__SUMMARY", appearance: { showIcon: false }, fields: [ { key: "contactId", type: "cognigyText", label: "UI__NODE_EDITOR__MERGE_PROFILE__CONTACT_ID__LABEL", params: { required: true } } ], tags: ["analytics", "profile"], function: async ({ cognigy, config }) => { const { api } = cognigy; const { contactId } = config; await api.mergeProfile(contactId); api.logDebugMessage(`UI__DEBUG_MODE__MERGE_PROFILE__MESSAGE '${contactId}'`); } }); //# sourceMappingURL=mergeProfile.js.map