UNPKG

@tuanltntu/n8n-nodes-bitrix24

Version:

Comprehensive n8n community node for Bitrix24 API integration with CRM, Tasks, Chat, Telephony, and more

138 lines 3.8 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.testConnectionOptions = exports.testConnectionFields = exports.testConnectionOperations = void 0; // Operations exports.testConnectionOperations = [ { displayName: "Operation", name: "operation", type: "options", noDataExpression: true, displayOptions: { show: { resource: ["testConnection"], }, }, options: [ { name: "Test OAuth2 Connection", value: "testOAuth2", description: "Test OAuth2 connection to Bitrix24", action: "Test OAuth2 connection", }, { name: "Test Webhook Connection", value: "testWebhook", description: "Test webhook connection to Bitrix24", action: "Test webhook connection", }, ], default: "testOAuth2", }, ]; // Fields exports.testConnectionFields = [ // Test OAuth2 connection { displayName: "Authentication", name: "authentication", type: "options", options: [ { name: "OAuth2", value: "oAuth2", }, ], default: "oAuth2", required: true, displayOptions: { show: { resource: ["testConnection"], operation: ["testOAuth2"], }, }, description: "The authentication method to use", }, { displayName: "Test Type", name: "testType", type: "options", options: [ { name: "Basic (User Profile)", value: "basic", description: "Test basic API connection by getting current user profile", }, { name: "Token Information", value: "tokenInfo", description: "Get token information", }, ], default: "basic", displayOptions: { show: { resource: ["testConnection"], operation: ["testOAuth2"], }, }, description: "The type of OAuth2 test to perform", }, // Test webhook connection { displayName: "Authentication", name: "authentication", type: "options", options: [ { name: "Webhook", value: "webhook", }, ], default: "webhook", required: true, displayOptions: { show: { resource: ["testConnection"], operation: ["testWebhook"], }, }, }, { displayName: "Debug Mode", name: "debugMode", type: "boolean", default: true, displayOptions: { show: { resource: ["testConnection"], }, }, description: "Show detailed logs and connection information", }, ]; // Export test connection options exports.testConnectionOptions = [ { displayName: "Options", name: "options", type: "collection", placeholder: "Add Option", default: {}, displayOptions: { show: { resource: ["testConnection"], }, }, options: [ { displayName: "Detailed Debug", name: "detailedDebug", type: "boolean", default: false, description: "Return even more detailed debug information", }, ], }, ]; //# sourceMappingURL=TestConnectionDescription.js.map