# nodes

node_type: n8n-nodes-base.ActionNetwork
name: ActionNetwork
package_name: n8n-nodes-base
display_name: Action Network
description: Consume the Action Network API
code_hash: c0a880f5754b6b532ff787bdb253dc49ffd7f470f28aeddda5be0c73f9f9935f
source_location: node_modules/n8n-nodes-base/dist/nodes/ActionNetwork/ActionNetwork.node.js
extracted_at: 2025-06-07 19:36:28
updated_at: 2025-06-07 19:36:28
source_code:
  "use strict";
  Object.defineProperty(exports, "__esModule", { value: true });
  exports.ActionNetwork = void 0;
  const n8n_workflow_1 = require("n8n-workflow");
  const GenericFunctions_1 = require("./GenericFunctions");
  const descriptions_1 = require("./descriptions");
  class ActionNetwork {
      constructor() {
          this.description = {
              displayName: 'Action Network',
              name: 'actionNetwork',
              icon: 'file:actionNetwork.svg',
              group: ['transform'],
              version: 1,
              subtitle: '={{$parameter["resource"] + ": " + $parameter["operation"]}}',
              description: 'Consume the Action Network API',
              defaults: {
                  name: 'Action Network',
              },
              inputs: ['main'],
              outputs: ['main'],
              credentials: [
                  {
                      name: 'actionNetworkApi',
                      required: true,
                  },
              ],
              properties: [
                  {
                      displayName: 'Resource',
                      name: 'resource',
                      type: 'options',
                      noDataExpression: true,
                      options: [
                          {
                              name: 'Attendance',
                              value: 'attendance',
                          },
                          {
                              name: 'Event',
                              value: 'event',
                          },
                          {
                              name: 'Person',
                              value: 'person',
                          },
                          {
                              name: 'Person Tag',
                              value: 'personTag',
                          },
                          {
                              name: 'Petition',
                              value: 'petition',
                          },
                          {
                              name: 'Signature',
                              value: 'signature',
                          },
                          {
                              name: 'Tag',
                              value: 'tag',
                          },
                      ],
                      default: 'attendance',
                  },
                  ...descriptions_1.attendanceOperations,
                  ...descriptions_1.attendanceFields,
                  ...descriptions_1.eventOperations,
                  ...descriptions_1.eventFields,
                  ...descriptions_1.personOperations,
                  ...descriptions_1.personFields,
                  ...descriptions_1.petitionOperations,
                  ...descriptions_1.petitionFields,
                  ...descriptions_1.signatureOperations,
                  ...descriptions_1.signatureFields,
                  ...descriptions_1.tagOperations,
                  ...descriptions_1.tagFields,
                  ...descriptions_1.personTagOperations,
                  ...descriptions_1.personTagFields,
              ],
          };
          this.methods = {
              loadOptions: GenericFunctions_1.resourceLoaders,
          };
      }
      async execute() {
          const items = this.getInputData();
          const returnData = [];
          const resource = this.getNodeParameter('resource', 0);
          const operation = this.getNodeParameter('operation', 0);
          let response;
          for (let i = 0; i < items.length; i++) {
              try {
                  if (resource === 'attendance') {
                      if (operation === 'create') {
                          const personId = this.getNodeParameter('personId', i);
                          const eventId = this.getNodeParameter('eventId', i);
                          const body = (0, GenericFunctions_1.makeOsdiLink)(personId);
                          const endpoint = `/events/${eventId}/attendances`;
                          response = await GenericFunctions_1.actionNetworkApiRequest.call(this, 'POST', endpoint, body);
                      }
                      else if (operation === 'get') {
                          const eventId = this.getNodeParameter('eventId', i);
                          const attendanceId = this.getNodeParameter('attendanceId', i);
                          const endpoint = `/events/${eventId}/attendances/${attendanceId}`;
                          response = await GenericFunctions_1.actionNetworkApiRequest.call(this, 'GET', endpoint);
                      }
                      else if (operation === 'getAll') {
                          const eventId = this.getNodeParameter('eventId', i);
                          const endpoint = `/events/${eventId}/attendances`;
                          response = await GenericFunctions_1.handleListing.call(this, 'GET', endpoint);
                      }
                  }
                  else if (resource === 'event') {
                      if (operation === 'create') {
                          const body = {
                              origin_system: this.getNodeParameter('originSystem', i),
                              title: this.getNodeParameter('title', i),
                          };
                          const additionalFields = this.getNodeParameter('additionalFields', i);
                          if (Object.keys(additionalFields).length) {
                              Object.assign(body, (0, GenericFunctions_1.adjustEventPayload)(additionalFields));
                          }
                          response = await GenericFunctions_1.actionNetworkApiRequest.call(this, 'POST', '/events', body);
                      }
                      else if (operation === 'get') {
                          const eventId = this.getNodeParameter('eventId', i);
                          response = await GenericFunctions_1.actionNetworkApiRequest.call(this, 'GET', `/events/${eventId}`);
                      }
                      else if (operation === 'getAll') {
                          response = await GenericFunctions_1.handleListing.call(this, 'GET', '/events');
                      }
                  }
                  else if (resource === 'person') {
                      if (operation === 'create') {
                          const emailAddresses = this.getNodeParameter('email_addresses', i);
                          const body = {
                              person: {
                                  email_addresses: [emailAddresses.email_addresses_fields],
                              },
                          };
                          const additionalFields = this.getNodeParameter('additionalFields', i);
                          if (Object.keys(additionalFields).length && body.person) {
                              Object.assign(body.person, (0, GenericFunctions_1.adjustPersonPayload)(additionalFields));
                          }
                          response = await GenericFunctions_1.actionNetworkApiRequest.call(this, 'POST', '/people', body);
                      }
                      else if (operation === 'get') {
                          const personId = this.getNodeParameter('personId', i);
                          response = (await GenericFunctions_1.actionNetworkApiRequest.call(this, 'GET', `/people/${personId}`));
                      }
                      else if (operation === 'getAll') {
                          response = (await GenericFunctions_1.handleListing.call(this, 'GET', '/people'));
                      }
                      else if (operation === 'update') {
                          const personId = this.getNodeParameter('personId', i);
                          const body = {};
                          const updateFields = this.getNodeParameter('updateFields', i);
                          if (Object.keys(updateFields).length) {
                              Object.assign(body, (0, GenericFunctions_1.adjustPersonPayload)(updateFields));
                          }
                          else {
                              throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Please enter at least one field to update for the ${resource}.`, { itemIndex: i });
                          }
                          response = await GenericFunctions_1.actionNetworkApiRequest.call(this, 'PUT', `/people/${personId}`, body);
                      }
                  }
                  else if (resource === 'petition') {
                      if (operation === 'create') {
                          const body = {
                              origin_system: this.getNodeParameter('originSystem', i),
                              title: this.getNodeParameter('title', i),
                          };
                          const additionalFields = this.getNodeParameter('additionalFields', i);
                          if (Object.keys(additionalFields).length) {
                              Object.assign(body, (0, GenericFunctions_1.adjustPetitionPayload)(additionalFields));
                          }
                          response = await GenericFunctions_1.actionNetworkApiRequest.call(this, 'POST', '/petitions', body);
                      }
                      else if (operation === 'get') {
                          const petitionId = this.getNodeParameter('petitionId', i);
                          const endpoint = `/petitions/${petitionId}`;
                          response = await GenericFunctions_1.actionNetworkApiRequest.call(this, 'GET', endpoint);
                      }
                      else if (operation === 'getAll') {
                          response = await GenericFunctions_1.handleListing.call(this, 'GET', '/petitions');
                      }
                      else if (operation === 'update') {
                          const petitionId = this.getNodeParameter('petitionId', i);
                          const body = {};
                          const updateFields = this.getNodeParameter('updateFields', i);
                          if (Object.keys(updateFields).length) {
                              Object.assign(body, (0, GenericFunctions_1.adjustPetitionPayload)(updateFields));
                          }
                          else {
                              throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Please enter at least one field to update for the ${resource}.`, { itemIndex: i });
                          }
                          response = await GenericFunctions_1.actionNetworkApiRequest.call(this, 'PUT', `/petitions/${petitionId}`, body);
                      }
                  }
                  else if (resource === 'signature') {
                      if (operation === 'create') {
                          const personId = this.getNodeParameter('personId', i);
                          const petitionId = this.getNodeParameter('petitionId', i);
                          const body = (0, GenericFunctions_1.makeOsdiLink)(personId);
                          const additionalFields = this.getNodeParameter('additionalFields', i);
                          if (Object.keys(additionalFields).length) {
                              Object.assign(body, additionalFields);
                          }
                          const endpoint = `/petitions/${petitionId}/signatures`;
                          response = await GenericFunctions_1.actionNetworkApiRequest.call(this, 'POST', endpoint, body);
                      }
                      else if (operation === 'get') {
                          const petitionId = this.getNodeParameter('petitionId', i);
                          const signatureId = this.getNodeParameter('signatureId', i);
                          const endpoint = `/petitions/${petitionId}/signatures/${signatureId}`;
                          response = await GenericFunctions_1.actionNetworkApiRequest.call(this, 'GET', endpoint);
                      }
                      else if (operation === 'getAll') {
                          const petitionId = this.getNodeParameter('petitionId', i);
                          const endpoint = `/petitions/${petitionId}/signatures`;
                          response = await GenericFunctions_1.handleListing.call(this, 'GET', endpoint);
                      }
                      else if (operation === 'update') {
                          const petitionId = this.getNodeParameter('petitionId', i);
                          const signatureId = this.getNodeParameter('signatureId', i);
                          const body = {};
                          const updateFields = this.getNodeParameter('updateFields', i);
                          if (Object.keys(updateFields).length) {
                              Object.assign(body, updateFields);
                          }
                          else {
                              throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Please enter at least one field to update for the ${resource}.`, { itemIndex: i });
                          }
                          const endpoint = `/petitions/${petitionId}/signatures/${signatureId}`;
                          response = await GenericFunctions_1.actionNetworkApiRequest.call(this, 'PUT', endpoint, body);
                      }
                  }
                  else if (resource === 'tag') {
                      if (operation === 'create') {
                          const body = {
                              name: this.getNodeParameter('name', i),
                          };
                          response = await GenericFunctions_1.actionNetworkApiRequest.call(this, 'POST', '/tags', body);
                      }
                      else if (operation === 'get') {
                          const tagId = this.getNodeParameter('tagId', i);
                          response = await GenericFunctions_1.actionNetworkApiRequest.call(this, 'GET', `/tags/${tagId}`);
                      }
                      else if (operation === 'getAll') {
                          response = await GenericFunctions_1.handleListing.call(this, 'GET', '/tags');
                      }
                  }
                  else if (resource === 'personTag') {
                      if (operation === 'add') {
                          const personId = this.getNodeParameter('personId', i);
                          const tagId = this.getNodeParameter('tagId', i);
                          const body = (0, GenericFunctions_1.makeOsdiLink)(personId);
                          const endpoint = `/tags/${tagId}/taggings`;
                          response = await GenericFunctions_1.actionNetworkApiRequest.call(this, 'POST', endpoint, body);
                      }
                      else if (operation === 'remove') {
                          const tagId = this.getNodeParameter('tagId', i);
                          const taggingId = this.getNodeParameter('taggingId', i);
                          const endpoint = `/tags/${tagId}/taggings/${taggingId}`;
                          response = await GenericFunctions_1.actionNetworkApiRequest.call(this, 'DELETE', endpoint);
                      }
                  }
                  const simplify = this.getNodeParameter('simple', i, false);
                  if (simplify) {
                      response =
                          operation === 'getAll'
                              ? response.map((entry) => (0, GenericFunctions_1.simplifyResponse)(entry, resource))
                              : (0, GenericFunctions_1.simplifyResponse)(response, resource);
                  }
                  Array.isArray(response)
                      ? returnData.push(...response)
                      : returnData.push(response);
              }
              catch (error) {
                  if (this.continueOnFail()) {
                      returnData.push({ error: error.message });
                      continue;
                  }
                  throw error;
              }
          }
          return [this.helpers.returnJsonArray(returnData)];
      }
  }
  exports.ActionNetwork = ActionNetwork;
  //# sourceMappingURL=ActionNetwork.node.js.map

package_info:
  {"name":"n8n-nodes-base","version":"1.14.1","description":"Base nodes of n8n","license":"SEE LICENSE IN LICENSE.md","homepage":"https://n8n.io","author":{"name":"Jan Oberhauser","email":"jan@n8n.io"},"main":"index.js","repository":{"type":"git","url":"git+https://github.com/n8n-io/n8n.git"},"files":["dist"],"n8n":{"credentials":["dist/credentials/ActionNetworkApi.credentials.js","dist/credentials/ActiveCampaignApi.credentials.js","dist/credentials/AcuitySchedulingApi.credentials.js","dist/credentials/AcuitySchedulingOAuth2Api.credentials.js","dist/credentials/AdaloApi.credentials.js","dist/credentials/AffinityApi.credentials.js","dist/credentials/AgileCrmApi.credentials.js","dist/credentials/AirtableApi.credentials.js","dist/credentials/AirtableOAuth2Api.credentials.js","dist/credentials/AirtableTokenApi.credentials.js","dist/credentials/AlienVaultApi.credentials.js","dist/credentials/Amqp.credentials.js","dist/credentials/ApiTemplateIoApi.credentials.js","dist/credentials/AsanaApi.credentials.js","dist/credentials/AsanaOAuth2Api.credentials.js","dist/credentials/Auth0ManagementApi.credentials.js","dist/credentials/AutomizyApi.credentials.js","dist/credentials/AutopilotApi.credentials.js","dist/credentials/Aws.credentials.js","dist/credentials/BambooHrApi.credentials.js","dist/credentials/BannerbearApi.credentials.js","dist/credentials/BaserowApi.credentials.js","dist/credentials/BeeminderApi.credentials.js","dist/credentials/BitbucketApi.credentials.js","dist/credentials/BitlyApi.credentials.js","dist/credentials/BitlyOAuth2Api.credentials.js","dist/credentials/BitwardenApi.credentials.js","dist/credentials/BoxOAuth2Api.credentials.js","dist/credentials/BrandfetchApi.credentials.js","dist/credentials/BubbleApi.credentials.js","dist/credentials/CalApi.credentials.js","dist/credentials/CalendlyApi.credentials.js","dist/credentials/CarbonBlackApi.credentials.js","dist/credentials/ChargebeeApi.credentials.js","dist/credentials/CircleCiApi.credentials.js","dist/credentials/CiscoMerakiApi.credentials.js","dist/credentials/CiscoSecureEndpointApi.credentials.js","dist/credentials/CiscoWebexOAuth2Api.credentials.js","dist/credentials/CiscoUmbrellaApi.credentials.js","dist/credentials/CitrixAdcApi.credentials.js","dist/credentials/CloudflareApi.credentials.js","dist/credentials/ClearbitApi.credentials.js","dist/credentials/ClickUpApi.credentials.js","dist/credentials/ClickUpOAuth2Api.credentials.js","dist/credentials/ClockifyApi.credentials.js","dist/credentials/CockpitApi.credentials.js","dist/credentials/CodaApi.credentials.js","dist/credentials/ContentfulApi.credentials.js","dist/credentials/ConvertKitApi.credentials.js","dist/credentials/CopperApi.credentials.js","dist/credentials/CortexApi.credentials.js","dist/credentials/CrateDb.credentials.js","dist/credentials/CrowdStrikeOAuth2Api.credentials.js","dist/credentials/CrowdDevApi.credentials.js","dist/credentials/CustomerIoApi.credentials.js","dist/credentials/DeepLApi.credentials.js","dist/credentials/DemioApi.credentials.js","dist/credentials/DhlApi.credentials.js","dist/credentials/DiscourseApi.credentials.js","dist/credentials/DisqusApi.credentials.js","dist/credentials/DriftApi.credentials.js","dist/credentials/DriftOAuth2Api.credentials.js","dist/credentials/DropboxApi.credentials.js","dist/credentials/DropboxOAuth2Api.credentials.js","dist/credentials/DropcontactApi.credentials.js","dist/credentials/EgoiApi.credentials.js","dist/credentials/ElasticsearchApi.credentials.js","dist/credentials/ElasticSecurityApi.credentials.js","dist/credentials/EmeliaApi.credentials.js","dist/credentials/ERPNextApi.credentials.js","dist/credentials/EventbriteApi.credentials.js","dist/credentials/EventbriteOAuth2Api.credentials.js","dist/credentials/F5BigIpApi.credentials.js","dist/credentials/FacebookGraphApi.credentials.js","dist/credentials/FacebookGraphAppApi.credentials.js","dist/credentials/FacebookLeadAdsOAuth2Api.credentials.js","dist/credentials/FigmaApi.credentials.js","dist/credentials/FileMaker.credentials.js","dist/credentials/FlowApi.credentials.js","dist/credentials/FormIoApi.credentials.js","dist/credentials/FormstackApi.credentials.js","dist/credentials/FormstackOAuth2Api.credentials.js","dist/credentials/FortiGateApi.credentials.js","dist/credentials/FreshdeskApi.credentials.js","dist/credentials/FreshserviceApi.credentials.js","dist/credentials/FreshworksCrmApi.credentials.js","dist/credentials/Ftp.credentials.js","dist/credentials/GetResponseApi.credentials.js","dist/credentials/GetResponseOAuth2Api.credentials.js","dist/credentials/GhostAdminApi.credentials.js","dist/credentials/GhostContentApi.credentials.js","dist/credentials/GithubApi.credentials.js","dist/credentials/GithubOAuth2Api.credentials.js","dist/credentials/GitlabApi.credentials.js","dist/credentials/GitlabOAuth2Api.credentials.js","dist/credentials/GitPassword.credentials.js","dist/credentials/GmailOAuth2Api.credentials.js","dist/credentials/GoogleAdsOAuth2Api.credentials.js","dist/credentials/GoogleAnalyticsOAuth2Api.credentials.js","dist/credentials/GoogleApi.credentials.js","dist/credentials/GoogleBigQueryOAuth2Api.credentials.js","dist/credentials/GoogleBooksOAuth2Api.credentials.js","dist/credentials/GoogleCalendarOAuth2Api.credentials.js","dist/credentials/GoogleCloudNaturalLanguageOAuth2Api.credentials.js","dist/credentials/GoogleCloudStorageOAuth2Api.credentials.js","dist/credentials/GoogleContactsOAuth2Api.credentials.js","dist/credentials/GoogleDocsOAuth2Api.credentials.js","dist/credentials/GoogleDriveOAuth2Api.credentials.js","dist/credentials/GoogleFirebaseCloudFirestoreOAuth2Api.credentials.js","dist/credentials/GoogleFirebaseRealtimeDatabaseOAuth2Api.credentials.js","dist/credentials/GoogleOAuth2Api.credentials.js","dist/credentials/GooglePerspectiveOAuth2Api.credentials.js","dist/credentials/GoogleSheetsOAuth2Api.credentials.js","dist/credentials/GoogleSheetsTriggerOAuth2Api.credentials.js","dist/credentials/GoogleSlidesOAuth2Api.credentials.js","dist/credentials/GoogleTasksOAuth2Api.credentials.js","dist/credentials/GoogleTranslateOAuth2Api.credentials.js","dist/credentials/GotifyApi.credentials.js","dist/credentials/GoToWebinarOAuth2Api.credentials.js","dist/credentials/GristApi.credentials.js","dist/credentials/GrafanaApi.credentials.js","dist/credentials/GSuiteAdminOAuth2Api.credentials.js","dist/credentials/GumroadApi.credentials.js","dist/credentials/HaloPSAApi.credentials.js","dist/credentials/HarvestApi.credentials.js","dist/credentials/HarvestOAuth2Api.credentials.js","dist/credentials/HelpScoutOAuth2Api.credentials.js","dist/credentials/HighLevelApi.credentials.js","dist/credentials/HomeAssistantApi.credentials.js","dist/credentials/HttpBasicAuth.credentials.js","dist/credentials/HttpDigestAuth.credentials.js","dist/credentials/HttpHeaderAuth.credentials.js","dist/credentials/HttpCustomAuth.credentials.js","dist/credentials/HttpQueryAuth.credentials.js","dist/credentials/HubspotApi.credentials.js","dist/credentials/HubspotAppToken.credentials.js","dist/credentials/HubspotDeveloperApi.credentials.js","dist/credentials/HubspotOAuth2Api.credentials.js","dist/credentials/HumanticAiApi.credentials.js","dist/credentials/HunterApi.credentials.js","dist/credentials/HybridAnalysisApi.credentials.js","dist/credentials/Imap.credentials.js","dist/credentials/ImpervaWafApi.credentials.js","dist/credentials/IntercomApi.credentials.js","dist/credentials/InvoiceNinjaApi.credentials.js","dist/credentials/IterableApi.credentials.js","dist/credentials/JenkinsApi.credentials.js","dist/credentials/JiraSoftwareCloudApi.credentials.js","dist/credentials/JiraSoftwareServerApi.credentials.js","dist/credentials/JotFormApi.credentials.js","dist/credentials/Kafka.credentials.js","dist/credentials/KeapOAuth2Api.credentials.js","dist/credentials/KibanaApi.credentials.js","dist/credentials/KitemakerApi.credentials.js","dist/credentials/KoBoToolboxApi.credentials.js","dist/credentials/Ldap.credentials.js","dist/credentials/LemlistApi.credentials.js","dist/credentials/LinearApi.credentials.js","dist/credentials/LinearOAuth2Api.credentials.js","dist/credentials/LineNotifyOAuth2Api.credentials.js","dist/credentials/LingvaNexApi.credentials.js","dist/credentials/LinkedInOAuth2Api.credentials.js","dist/credentials/LoneScaleApi.credentials.js","dist/credentials/Magento2Api.credentials.js","dist/credentials/MailcheckApi.credentials.js","dist/credentials/MailchimpApi.credentials.js","dist/credentials/MailchimpOAuth2Api.credentials.js","dist/credentials/MailerLiteApi.credentials.js","dist/credentials/MailgunApi.credentials.js","dist/credentials/MailjetEmailApi.credentials.js","dist/credentials/MailjetSmsApi.credentials.js","dist/credentials/MandrillApi.credentials.js","dist/credentials/MarketstackApi.credentials.js","dist/credentials/MatrixApi.credentials.js","dist/credentials/MattermostApi.credentials.js","dist/credentials/MauticApi.credentials.js","dist/credentials/MauticOAuth2Api.credentials.js","dist/credentials/MediumApi.credentials.js","dist/credentials/MediumOAuth2Api.credentials.js","dist/credentials/MetabaseApi.credentials.js","dist/credentials/MessageBirdApi.credentials.js","dist/credentials/MetabaseApi.credentials.js","dist/credentials/MicrosoftDynamicsOAuth2Api.credentials.js","dist/credentials/MicrosoftEntraOAuth2Api.credentials.js","dist/credentials/MicrosoftExcelOAuth2Api.credentials.js","dist/credentials/MicrosoftGraphSecurityOAuth2Api.credentials.js","dist/credentials/MicrosoftOAuth2Api.credentials.js","dist/credentials/MicrosoftOneDriveOAuth2Api.credentials.js","dist/credentials/MicrosoftOutlookOAuth2Api.credentials.js","dist/credentials/MicrosoftSql.credentials.js","dist/credentials/MicrosoftTeamsOAuth2Api.credentials.js","dist/credentials/MicrosoftToDoOAuth2Api.credentials.js","dist/credentials/MindeeInvoiceApi.credentials.js","dist/credentials/MindeeReceiptApi.credentials.js","dist/credentials/MispApi.credentials.js","dist/credentials/MistApi.credentials.js","dist/credentials/MoceanApi.credentials.js","dist/credentials/MondayComApi.credentials.js","dist/credentials/MondayComOAuth2Api.credentials.js","dist/credentials/MongoDb.credentials.js","dist/credentials/MonicaCrmApi.credentials.js","dist/credentials/Mqtt.credentials.js","dist/credentials/Msg91Api.credentials.js","dist/credentials/MySql.credentials.js","dist/credentials/N8nApi.credentials.js","dist/credentials/NasaApi.credentials.js","dist/credentials/NetlifyApi.credentials.js","dist/credentials/NextCloudApi.credentials.js","dist/credentials/NextCloudOAuth2Api.credentials.js","dist/credentials/NocoDb.credentials.js","dist/credentials/NocoDbApiToken.credentials.js","dist/credentials/NotionApi.credentials.js","dist/credentials/NotionOAuth2Api.credentials.js","dist/credentials/NpmApi.credentials.js","dist/credentials/OAuth1Api.credentials.js","dist/credentials/OAuth2Api.credentials.js","dist/credentials/OdooApi.credentials.js","dist/credentials/OktaApi.credentials.js","dist/credentials/OneSimpleApi.credentials.js","dist/credentials/OnfleetApi.credentials.js","dist/credentials/OpenAiApi.credentials.js","dist/credentials/OpenCTIApi.credentials.js","dist/credentials/OpenWeatherMapApi.credentials.js","dist/credentials/OrbitApi.credentials.js","dist/credentials/OuraApi.credentials.js","dist/credentials/PaddleApi.credentials.js","dist/credentials/PagerDutyApi.credentials.js","dist/credentials/PagerDutyOAuth2Api.credentials.js","dist/credentials/PayPalApi.credentials.js","dist/credentials/PeekalinkApi.credentials.js","dist/credentials/PhantombusterApi.credentials.js","dist/credentials/PhilipsHueOAuth2Api.credentials.js","dist/credentials/PipedriveApi.credentials.js","dist/credentials/PipedriveOAuth2Api.credentials.js","dist/credentials/PlivoApi.credentials.js","dist/credentials/Postgres.credentials.js","dist/credentials/PostHogApi.credentials.js","dist/credentials/PostmarkApi.credentials.js","dist/credentials/ProfitWellApi.credentials.js","dist/credentials/PushbulletOAuth2Api.credentials.js","dist/credentials/PushcutApi.credentials.js","dist/credentials/PushoverApi.credentials.js","dist/credentials/QRadarApi.credentials.js","dist/credentials/QualysApi.credentials.js","dist/credentials/QuestDb.credentials.js","dist/credentials/QuickBaseApi.credentials.js","dist/credentials/QuickBooksOAuth2Api.credentials.js","dist/credentials/RabbitMQ.credentials.js","dist/credentials/RaindropOAuth2Api.credentials.js","dist/credentials/RecordedFutureApi.credentials.js","dist/credentials/RedditOAuth2Api.credentials.js","dist/credentials/Redis.credentials.js","dist/credentials/RocketchatApi.credentials.js","dist/credentials/RundeckApi.credentials.js","dist/credentials/S3.credentials.js","dist/credentials/SalesforceJwtApi.credentials.js","dist/credentials/SalesforceOAuth2Api.credentials.js","dist/credentials/SalesmateApi.credentials.js","dist/credentials/SeaTableApi.credentials.js","dist/credentials/SecurityScorecardApi.credentials.js","dist/credentials/SegmentApi.credentials.js","dist/credentials/SekoiaApi.credentials.js","dist/credentials/SendGridApi.credentials.js","dist/credentials/BrevoApi.credentials.js","dist/credentials/SendyApi.credentials.js","dist/credentials/SentryIoApi.credentials.js","dist/credentials/SentryIoOAuth2Api.credentials.js","dist/credentials/SentryIoServerApi.credentials.js","dist/credentials/ServiceNowOAuth2Api.credentials.js","dist/credentials/ServiceNowBasicApi.credentials.js","dist/credentials/Sftp.credentials.js","dist/credentials/ShopifyApi.credentials.js","dist/credentials/ShopifyAccessTokenApi.credentials.js","dist/credentials/ShopifyOAuth2Api.credentials.js","dist/credentials/Signl4Api.credentials.js","dist/credentials/SlackApi.credentials.js","dist/credentials/SlackOAuth2Api.credentials.js","dist/credentials/Sms77Api.credentials.js","dist/credentials/Smtp.credentials.js","dist/credentials/Snowflake.credentials.js","dist/credentials/SplunkApi.credentials.js","dist/credentials/SpontitApi.credentials.js","dist/credentials/SpotifyOAuth2Api.credentials.js","dist/credentials/ShufflerApi.credentials.js","dist/credentials/SshPassword.credentials.js","dist/credentials/SshPrivateKey.credentials.js","dist/credentials/StackbyApi.credentials.js","dist/credentials/StoryblokContentApi.credentials.js","dist/credentials/StoryblokManagementApi.credentials.js","dist/credentials/StrapiApi.credentials.js","dist/credentials/StrapiTokenApi.credentials.js","dist/credentials/StravaOAuth2Api.credentials.js","dist/credentials/StripeApi.credentials.js","dist/credentials/SupabaseApi.credentials.js","dist/credentials/SurveyMonkeyApi.credentials.js","dist/credentials/SurveyMonkeyOAuth2Api.credentials.js","dist/credentials/SyncroMspApi.credentials.js","dist/credentials/TaigaApi.credentials.js","dist/credentials/TapfiliateApi.credentials.js","dist/credentials/TelegramApi.credentials.js","dist/credentials/TheHiveProjectApi.credentials.js","dist/credentials/TheHiveApi.credentials.js","dist/credentials/TimescaleDb.credentials.js","dist/credentials/TodoistApi.credentials.js","dist/credentials/TodoistOAuth2Api.credentials.js","dist/credentials/TogglApi.credentials.js","dist/credentials/TotpApi.credentials.js","dist/credentials/TravisCiApi.credentials.js","dist/credentials/TrellixEpoApi.credentials.js","dist/credentials/TrelloApi.credentials.js","dist/credentials/TwakeCloudApi.credentials.js","dist/credentials/TwakeServerApi.credentials.js","dist/credentials/TwilioApi.credentials.js","dist/credentials/TwistOAuth2Api.credentials.js","dist/credentials/TwitterOAuth1Api.credentials.js","dist/credentials/TwitterOAuth2Api.credentials.js","dist/credentials/TypeformApi.credentials.js","dist/credentials/TypeformOAuth2Api.credentials.js","dist/credentials/UnleashedSoftwareApi.credentials.js","dist/credentials/UpleadApi.credentials.js","dist/credentials/UProcApi.credentials.js","dist/credentials/UptimeRobotApi.credentials.js","dist/credentials/UrlScanIoApi.credentials.js","dist/credentials/VeroApi.credentials.js","dist/credentials/VirusTotalApi.credentials.js","dist/credentials/VonageApi.credentials.js","dist/credentials/VenafiTlsProtectCloudApi.credentials.js","dist/credentials/VenafiTlsProtectDatacenterApi.credentials.js","dist/credentials/WebflowApi.credentials.js","dist/credentials/WebflowOAuth2Api.credentials.js","dist/credentials/WekanApi.credentials.js","dist/credentials/WhatsAppApi.credentials.js","dist/credentials/WiseApi.credentials.js","dist/credentials/WooCommerceApi.credentials.js","dist/credentials/WordpressApi.credentials.js","dist/credentials/WorkableApi.credentials.js","dist/credentials/WufooApi.credentials.js","dist/credentials/XeroOAuth2Api.credentials.js","dist/credentials/YourlsApi.credentials.js","dist/credentials/YouTubeOAuth2Api.credentials.js","dist/credentials/ZammadBasicAuthApi.credentials.js","dist/credentials/ZammadTokenAuthApi.credentials.js","dist/credentials/ZendeskApi.credentials.js","dist/credentials/ZendeskOAuth2Api.credentials.js","dist/credentials/ZohoOAuth2Api.credentials.js","dist/credentials/ZoomApi.credentials.js","dist/credentials/ZoomOAuth2Api.credentials.js","dist/credentials/ZscalerZiaApi.credentials.js","dist/credentials/ZulipApi.credentials.js"],"nodes":["dist/nodes/ActionNetwork/ActionNetwork.node.js","dist/nodes/ActiveCampaign/ActiveCampaign.node.js","dist/nodes/ActiveCampaign/ActiveCampaignTrigger.node.js","dist/nodes/AcuityScheduling/AcuitySchedulingTrigger.node.js","dist/nodes/Adalo/Adalo.node.js","dist/nodes/Affinity/Affinity.node.js","dist/nodes/Affinity/AffinityTrigger.node.js","dist/nodes/AgileCrm/AgileCrm.node.js","dist/nodes/Airtable/Airtable.node.js","dist/nodes/Airtable/AirtableTrigger.node.js","dist/nodes/Amqp/Amqp.node.js","dist/nodes/Amqp/AmqpTrigger.node.js","dist/nodes/ApiTemplateIo/ApiTemplateIo.node.js","dist/nodes/Asana/Asana.node.js","dist/nodes/Asana/AsanaTrigger.node.js","dist/nodes/Automizy/Automizy.node.js","dist/nodes/Autopilot/Autopilot.node.js","dist/nodes/Autopilot/AutopilotTrigger.node.js","dist/nodes/Aws/AwsLambda.node.js","dist/nodes/Aws/AwsSns.node.js","dist/nodes/Aws/AwsSnsTrigger.node.js","dist/nodes/Aws/CertificateManager/AwsCertificateManager.node.js","dist/nodes/Aws/Comprehend/AwsComprehend.node.js","dist/nodes/Aws/DynamoDB/AwsDynamoDB.node.js","dist/nodes/Aws/ELB/AwsElb.node.js","dist/nodes/Aws/Rekognition/AwsRekognition.node.js","dist/nodes/Aws/S3/AwsS3.node.js","dist/nodes/Aws/SES/AwsSes.node.js","dist/nodes/Aws/SQS/AwsSqs.node.js","dist/nodes/Aws/Textract/AwsTextract.node.js","dist/nodes/Aws/Transcribe/AwsTranscribe.node.js","dist/nodes/BambooHr/BambooHr.node.js","dist/nodes/Bannerbear/Bannerbear.node.js","dist/nodes/Baserow/Baserow.node.js","dist/nodes/Beeminder/Beeminder.node.js","dist/nodes/Bitbucket/BitbucketTrigger.node.js","dist/nodes/Bitly/Bitly.node.js","dist/nodes/Bitwarden/Bitwarden.node.js","dist/nodes/Box/Box.node.js","dist/nodes/Box/BoxTrigger.node.js","dist/nodes/Brandfetch/Brandfetch.node.js","dist/nodes/Bubble/Bubble.node.js","dist/nodes/Cal/CalTrigger.node.js","dist/nodes/Calendly/CalendlyTrigger.node.js","dist/nodes/Chargebee/Chargebee.node.js","dist/nodes/Chargebee/ChargebeeTrigger.node.js","dist/nodes/CircleCi/CircleCi.node.js","dist/nodes/Cisco/Webex/CiscoWebex.node.js","dist/nodes/Citrix/ADC/CitrixAdc.node.js","dist/nodes/Cisco/Webex/CiscoWebexTrigger.node.js","dist/nodes/Cloudflare/Cloudflare.node.js","dist/nodes/Clearbit/Clearbit.node.js","dist/nodes/ClickUp/ClickUp.node.js","dist/nodes/ClickUp/ClickUpTrigger.node.js","dist/nodes/Clockify/Clockify.node.js","dist/nodes/Clockify/ClockifyTrigger.node.js","dist/nodes/Cockpit/Cockpit.node.js","dist/nodes/Coda/Coda.node.js","dist/nodes/Code/Code.node.js","dist/nodes/CoinGecko/CoinGecko.node.js","dist/nodes/CompareDatasets/CompareDatasets.node.js","dist/nodes/Compression/Compression.node.js","dist/nodes/Contentful/Contentful.node.js","dist/nodes/ConvertKit/ConvertKit.node.js","dist/nodes/ConvertKit/ConvertKitTrigger.node.js","dist/nodes/Copper/Copper.node.js","dist/nodes/Copper/CopperTrigger.node.js","dist/nodes/Cortex/Cortex.node.js","dist/nodes/CrateDb/CrateDb.node.js","dist/nodes/Cron/Cron.node.js","dist/nodes/CrowdDev/CrowdDev.node.js","dist/nodes/CrowdDev/CrowdDevTrigger.node.js","dist/nodes/Crypto/Crypto.node.js","dist/nodes/CustomerIo/CustomerIo.node.js","dist/nodes/CustomerIo/CustomerIoTrigger.node.js","dist/nodes/DateTime/DateTime.node.js","dist/nodes/DebugHelper/DebugHelper.node.js","dist/nodes/DeepL/DeepL.node.js","dist/nodes/Demio/Demio.node.js","dist/nodes/Dhl/Dhl.node.js","dist/nodes/Discord/Discord.node.js","dist/nodes/Discourse/Discourse.node.js","dist/nodes/Disqus/Disqus.node.js","dist/nodes/Drift/Drift.node.js","dist/nodes/Dropbox/Dropbox.node.js","dist/nodes/Dropcontact/Dropcontact.node.js","dist/nodes/EditImage/EditImage.node.js","dist/nodes/E2eTest/E2eTest.node.js","dist/nodes/Egoi/Egoi.node.js","dist/nodes/Elastic/Elasticsearch/Elasticsearch.node.js","dist/nodes/Elastic/ElasticSecurity/ElasticSecurity.node.js","dist/nodes/EmailReadImap/EmailReadImap.node.js","dist/nodes/EmailSend/EmailSend.node.js","dist/nodes/Emelia/Emelia.node.js","dist/nodes/Emelia/EmeliaTrigger.node.js","dist/nodes/ERPNext/ERPNext.node.js","dist/nodes/ErrorTrigger/ErrorTrigger.node.js","dist/nodes/Eventbrite/EventbriteTrigger.node.js","dist/nodes/ExecuteCommand/ExecuteCommand.node.js","dist/nodes/ExecuteWorkflow/ExecuteWorkflow.node.js","dist/nodes/ExecuteWorkflowTrigger/ExecuteWorkflowTrigger.node.js","dist/nodes/ExecutionData/ExecutionData.node.js","dist/nodes/Facebook/FacebookGraphApi.node.js","dist/nodes/Facebook/FacebookTrigger.node.js","dist/nodes/FacebookLeadAds/FacebookLeadAdsTrigger.node.js","dist/nodes/Figma/FigmaTrigger.node.js","dist/nodes/FileMaker/FileMaker.node.js","dist/nodes/Filter/Filter.node.js","dist/nodes/Flow/Flow.node.js","dist/nodes/Flow/FlowTrigger.node.js","dist/nodes/Form/FormTrigger.node.js","dist/nodes/FormIo/FormIoTrigger.node.js","dist/nodes/Formstack/FormstackTrigger.node.js","dist/nodes/Freshdesk/Freshdesk.node.js","dist/nodes/Freshservice/Freshservice.node.js","dist/nodes/FreshworksCrm/FreshworksCrm.node.js","dist/nodes/Ftp/Ftp.node.js","dist/nodes/Function/Function.node.js","dist/nodes/FunctionItem/FunctionItem.node.js","dist/nodes/GetResponse/GetResponse.node.js","dist/nodes/GetResponse/GetResponseTrigger.node.js","dist/nodes/Ghost/Ghost.node.js","dist/nodes/Git/Git.node.js","dist/nodes/Github/Github.node.js","dist/nodes/Github/GithubTrigger.node.js","dist/nodes/Gitlab/Gitlab.node.js","dist/nodes/Gitlab/GitlabTrigger.node.js","dist/nodes/Google/Ads/GoogleAds.node.js","dist/nodes/Google/Analytics/GoogleAnalytics.node.js","dist/nodes/Google/BigQuery/GoogleBigQuery.node.js","dist/nodes/Google/Books/GoogleBooks.node.js","dist/nodes/Google/Calendar/GoogleCalendar.node.js","dist/nodes/Google/Calendar/GoogleCalendarTrigger.node.js","dist/nodes/Google/Chat/GoogleChat.node.js","dist/nodes/Google/CloudNaturalLanguage/GoogleCloudNaturalLanguage.node.js","dist/nodes/Google/CloudStorage/GoogleCloudStorage.node.js","dist/nodes/Google/Contacts/GoogleContacts.node.js","dist/nodes/Google/Docs/GoogleDocs.node.js","dist/nodes/Google/Drive/GoogleDrive.node.js","dist/nodes/Google/Drive/GoogleDriveTrigger.node.js","dist/nodes/Google/Firebase/CloudFirestore/GoogleFirebaseCloudFirestore.node.js","dist/nodes/Google/Firebase/RealtimeDatabase/GoogleFirebaseRealtimeDatabase.node.js","dist/nodes/Google/Gmail/Gmail.node.js","dist/nodes/Google/Gmail/GmailTrigger.node.js","dist/nodes/Google/GSuiteAdmin/GSuiteAdmin.node.js","dist/nodes/Google/Perspective/GooglePerspective.node.js","dist/nodes/Google/Sheet/GoogleSheets.node.js","dist/nodes/Google/Sheet/GoogleSheetsTrigger.node.js","dist/nodes/Google/Slides/GoogleSlides.node.js","dist/nodes/Google/Task/GoogleTasks.node.js","dist/nodes/Google/Translate/GoogleTranslate.node.js","dist/nodes/Google/YouTube/YouTube.node.js","dist/nodes/Gotify/Gotify.node.js","dist/nodes/GoToWebinar/GoToWebinar.node.js","dist/nodes/Grafana/Grafana.node.js","dist/nodes/GraphQL/GraphQL.node.js","dist/nodes/Grist/Grist.node.js","dist/nodes/Gumroad/GumroadTrigger.node.js","dist/nodes/HackerNews/HackerNews.node.js","dist/nodes/HaloPSA/HaloPSA.node.js","dist/nodes/Harvest/Harvest.node.js","dist/nodes/HelpScout/HelpScout.node.js","dist/nodes/HelpScout/HelpScoutTrigger.node.js","dist/nodes/HighLevel/HighLevel.node.js","dist/nodes/HomeAssistant/HomeAssistant.node.js","dist/nodes/HtmlExtract/HtmlExtract.node.js","dist/nodes/Html/Html.node.js","dist/nodes/HttpRequest/HttpRequest.node.js","dist/nodes/Hubspot/Hubspot.node.js","dist/nodes/Hubspot/HubspotTrigger.node.js","dist/nodes/HumanticAI/HumanticAi.node.js","dist/nodes/Hunter/Hunter.node.js","dist/nodes/ICalendar/ICalendar.node.js","dist/nodes/If/If.node.js","dist/nodes/Intercom/Intercom.node.js","dist/nodes/Interval/Interval.node.js","dist/nodes/InvoiceNinja/InvoiceNinja.node.js","dist/nodes/InvoiceNinja/InvoiceNinjaTrigger.node.js","dist/nodes/ItemLists/ItemLists.node.js","dist/nodes/Iterable/Iterable.node.js","dist/nodes/Jenkins/Jenkins.node.js","dist/nodes/Jira/Jira.node.js","dist/nodes/Jira/JiraTrigger.node.js","dist/nodes/JotForm/JotFormTrigger.node.js","dist/nodes/Kafka/Kafka.node.js","dist/nodes/Kafka/KafkaTrigger.node.js","dist/nodes/Keap/Keap.node.js","dist/nodes/Keap/KeapTrigger.node.js","dist/nodes/Kitemaker/Kitemaker.node.js","dist/nodes/KoBoToolbox/KoBoToolbox.node.js","dist/nodes/KoBoToolbox/KoBoToolboxTrigger.node.js","dist/nodes/Ldap/Ldap.node.js","dist/nodes/Lemlist/Lemlist.node.js","dist/nodes/Lemlist/LemlistTrigger.node.js","dist/nodes/Line/Line.node.js","dist/nodes/Linear/Linear.node.js","dist/nodes/Linear/LinearTrigger.node.js","dist/nodes/LingvaNex/LingvaNex.node.js","dist/nodes/LinkedIn/LinkedIn.node.js","dist/nodes/LocalFileTrigger/LocalFileTrigger.node.js","dist/nodes/LoneScale/LoneScaleTrigger.node.js","dist/nodes/LoneScale/LoneScale.node.js","dist/nodes/Magento/Magento2.node.js","dist/nodes/Mailcheck/Mailcheck.node.js","dist/nodes/Mailchimp/Mailchimp.node.js","dist/nodes/Mailchimp/MailchimpTrigger.node.js","dist/nodes/MailerLite/MailerLite.node.js","dist/nodes/MailerLite/MailerLiteTrigger.node.js","dist/nodes/Mailgun/Mailgun.node.js","dist/nodes/Mailjet/Mailjet.node.js","dist/nodes/Mailjet/MailjetTrigger.node.js","dist/nodes/Mandrill/Mandrill.node.js","dist/nodes/ManualTrigger/ManualTrigger.node.js","dist/nodes/Markdown/Markdown.node.js","dist/nodes/Marketstack/Marketstack.node.js","dist/nodes/Matrix/Matrix.node.js","dist/nodes/Mattermost/Mattermost.node.js","dist/nodes/Mautic/Mautic.node.js","dist/nodes/Mautic/MauticTrigger.node.js","dist/nodes/Medium/Medium.node.js","dist/nodes/Merge/Merge.node.js","dist/nodes/MessageBird/MessageBird.node.js","dist/nodes/Metabase/Metabase.node.js","dist/nodes/Microsoft/Dynamics/MicrosoftDynamicsCrm.node.js","dist/nodes/Microsoft/Excel/MicrosoftExcel.node.js","dist/nodes/Microsoft/GraphSecurity/MicrosoftGraphSecurity.node.js","dist/nodes/Microsoft/OneDrive/MicrosoftOneDrive.node.js","dist/nodes/Microsoft/Outlook/MicrosoftOutlook.node.js","dist/nodes/Microsoft/Sql/MicrosoftSql.node.js","dist/nodes/Microsoft/Teams/MicrosoftTeams.node.js","dist/nodes/Microsoft/ToDo/MicrosoftToDo.node.js","dist/nodes/Mindee/Mindee.node.js","dist/nodes/Misp/Misp.node.js","dist/nodes/Mocean/Mocean.node.js","dist/nodes/MondayCom/MondayCom.node.js","dist/nodes/MongoDb/MongoDb.node.js","dist/nodes/MonicaCrm/MonicaCrm.node.js","dist/nodes/MoveBinaryData/MoveBinaryData.node.js","dist/nodes/MQTT/Mqtt.node.js","dist/nodes/MQTT/MqttTrigger.node.js","dist/nodes/Msg91/Msg91.node.js","dist/nodes/MySql/MySql.node.js","dist/nodes/N8n/N8n.node.js","dist/nodes/N8nTrainingCustomerDatastore/N8nTrainingCustomerDatastore.node.js","dist/nodes/N8nTrainingCustomerMessenger/N8nTrainingCustomerMessenger.node.js","dist/nodes/N8nTrigger/N8nTrigger.node.js","dist/nodes/Nasa/Nasa.node.js","dist/nodes/Netlify/Netlify.node.js","dist/nodes/Netlify/NetlifyTrigger.node.js","dist/nodes/NextCloud/NextCloud.node.js","dist/nodes/NocoDB/NocoDB.node.js","dist/nodes/Brevo/Brevo.node.js","dist/nodes/Brevo/BrevoTrigger.node.js","dist/nodes/StickyNote/StickyNote.node.js","dist/nodes/NoOp/NoOp.node.js","dist/nodes/Onfleet/Onfleet.node.js","dist/nodes/Onfleet/OnfleetTrigger.node.js","dist/nodes/Notion/Notion.node.js","dist/nodes/Notion/NotionTrigger.node.js","dist/nodes/Npm/Npm.node.js","dist/nodes/Odoo/Odoo.node.js","dist/nodes/OneSimpleApi/OneSimpleApi.node.js","dist/nodes/OpenAi/OpenAi.node.js","dist/nodes/OpenThesaurus/OpenThesaurus.node.js","dist/nodes/OpenWeatherMap/OpenWeatherMap.node.js","dist/nodes/Orbit/Orbit.node.js","dist/nodes/Oura/Oura.node.js","dist/nodes/Paddle/Paddle.node.js","dist/nodes/PagerDuty/PagerDuty.node.js","dist/nodes/PayPal/PayPal.node.js","dist/nodes/PayPal/PayPalTrigger.node.js","dist/nodes/Peekalink/Peekalink.node.js","dist/nodes/Phantombuster/Phantombuster.node.js","dist/nodes/PhilipsHue/PhilipsHue.node.js","dist/nodes/Pipedrive/Pipedrive.node.js","dist/nodes/Pipedrive/PipedriveTrigger.node.js","dist/nodes/Plivo/Plivo.node.js","dist/nodes/PostBin/PostBin.node.js","dist/nodes/Postgres/Postgres.node.js","dist/nodes/Postgres/PostgresTrigger.node.js","dist/nodes/PostHog/PostHog.node.js","dist/nodes/Postmark/PostmarkTrigger.node.js","dist/nodes/ProfitWell/ProfitWell.node.js","dist/nodes/Pushbullet/Pushbullet.node.js","dist/nodes/Pushcut/Pushcut.node.js","dist/nodes/Pushcut/PushcutTrigger.node.js","dist/nodes/Pushover/Pushover.node.js","dist/nodes/QuestDb/QuestDb.node.js","dist/nodes/QuickBase/QuickBase.node.js","dist/nodes/QuickBooks/QuickBooks.node.js","dist/nodes/QuickChart/QuickChart.node.js","dist/nodes/RabbitMQ/RabbitMQ.node.js","dist/nodes/RabbitMQ/RabbitMQTrigger.node.js","dist/nodes/Raindrop/Raindrop.node.js","dist/nodes/ReadBinaryFile/ReadBinaryFile.node.js","dist/nodes/ReadBinaryFiles/ReadBinaryFiles.node.js","dist/nodes/ReadPdf/ReadPDF.node.js","dist/nodes/Reddit/Reddit.node.js","dist/nodes/Redis/Redis.node.js","dist/nodes/Redis/RedisTrigger.node.js","dist/nodes/RenameKeys/RenameKeys.node.js","dist/nodes/RespondToWebhook/RespondToWebhook.node.js","dist/nodes/Rocketchat/Rocketchat.node.js","dist/nodes/RssFeedRead/RssFeedRead.node.js","dist/nodes/RssFeedRead/RssFeedReadTrigger.node.js","dist/nodes/Rundeck/Rundeck.node.js","dist/nodes/S3/S3.node.js","dist/nodes/Salesforce/Salesforce.node.js","dist/nodes/Salesmate/Salesmate.node.js","dist/nodes/Schedule/ScheduleTrigger.node.js","dist/nodes/SeaTable/SeaTable.node.js","dist/nodes/SeaTable/SeaTableTrigger.node.js","dist/nodes/SecurityScorecard/SecurityScorecard.node.js","dist/nodes/Segment/Segment.node.js","dist/nodes/SendGrid/SendGrid.node.js","dist/nodes/Sendy/Sendy.node.js","dist/nodes/SentryIo/SentryIo.node.js","dist/nodes/ServiceNow/ServiceNow.node.js","dist/nodes/Set/Set.node.js","dist/nodes/Shopify/Shopify.node.js","dist/nodes/Shopify/ShopifyTrigger.node.js","dist/nodes/Signl4/Signl4.node.js","dist/nodes/Slack/Slack.node.js","dist/nodes/Sms77/Sms77.node.js","dist/nodes/Snowflake/Snowflake.node.js","dist/nodes/SplitInBatches/SplitInBatches.node.js","dist/nodes/Splunk/Splunk.node.js","dist/nodes/Spontit/Spontit.node.js","dist/nodes/Spotify/Spotify.node.js","dist/nodes/SpreadsheetFile/SpreadsheetFile.node.js","dist/nodes/SseTrigger/SseTrigger.node.js","dist/nodes/Ssh/Ssh.node.js","dist/nodes/Stackby/Stackby.node.js","dist/nodes/Start/Start.node.js","dist/nodes/StopAndError/StopAndError.node.js","dist/nodes/Storyblok/Storyblok.node.js","dist/nodes/Strapi/Strapi.node.js","dist/nodes/Strava/Strava.node.js","dist/nodes/Strava/StravaTrigger.node.js","dist/nodes/Stripe/Stripe.node.js","dist/nodes/Stripe/StripeTrigger.node.js","dist/nodes/Supabase/Supabase.node.js","dist/nodes/SurveyMonkey/SurveyMonkeyTrigger.node.js","dist/nodes/Switch/Switch.node.js","dist/nodes/SyncroMSP/SyncroMsp.node.js","dist/nodes/Taiga/Taiga.node.js","dist/nodes/Taiga/TaigaTrigger.node.js","dist/nodes/Tapfiliate/Tapfiliate.node.js","dist/nodes/Telegram/Telegram.node.js","dist/nodes/Telegram/TelegramTrigger.node.js","dist/nodes/TheHiveProject/TheHiveProject.node.js","dist/nodes/TheHiveProject/TheHiveProjectTrigger.node.js","dist/nodes/TheHive/TheHive.node.js","dist/nodes/TheHive/TheHiveTrigger.node.js","dist/nodes/TimescaleDb/TimescaleDb.node.js","dist/nodes/Todoist/Todoist.node.js","dist/nodes/Toggl/TogglTrigger.node.js","dist/nodes/Totp/Totp.node.js","dist/nodes/TravisCi/TravisCi.node.js","dist/nodes/Trello/Trello.node.js","dist/nodes/Trello/TrelloTrigger.node.js","dist/nodes/Twake/Twake.node.js","dist/nodes/Twilio/Twilio.node.js","dist/nodes/Twist/Twist.node.js","dist/nodes/Twitter/Twitter.node.js","dist/nodes/Typeform/TypeformTrigger.node.js","dist/nodes/UnleashedSoftware/UnleashedSoftware.node.js","dist/nodes/Uplead/Uplead.node.js","dist/nodes/UProc/UProc.node.js","dist/nodes/UptimeRobot/UptimeRobot.node.js","dist/nodes/UrlScanIo/UrlScanIo.node.js","dist/nodes/Vero/Vero.node.js","dist/nodes/Venafi/ProtectCloud/VenafiTlsProtectCloud.node.js","dist/nodes/Venafi/ProtectCloud/VenafiTlsProtectCloudTrigger.node.js","dist/nodes/Venafi/Datacenter/VenafiTlsProtectDatacenter.node.js","dist/nodes/Vonage/Vonage.node.js","dist/nodes/Wait/Wait.node.js","dist/nodes/Webflow/Webflow.node.js","dist/nodes/Webflow/WebflowTrigger.node.js","dist/nodes/Webhook/Webhook.node.js","dist/nodes/Wekan/Wekan.node.js","dist/nodes/WhatsApp/WhatsApp.node.js","dist/nodes/Wise/Wise.node.js","dist/nodes/Wise/WiseTrigger.node.js","dist/nodes/WooCommerce/WooCommerce.node.js","dist/nodes/WooCommerce/WooCommerceTrigger.node.js","dist/nodes/Wordpress/Wordpress.node.js","dist/nodes/Workable/WorkableTrigger.node.js","dist/nodes/WorkflowTrigger/WorkflowTrigger.node.js","dist/nodes/WriteBinaryFile/WriteBinaryFile.node.js","dist/nodes/Wufoo/WufooTrigger.node.js","dist/nodes/Xero/Xero.node.js","dist/nodes/Xml/Xml.node.js","dist/nodes/Yourls/Yourls.node.js","dist/nodes/Zammad/Zammad.node.js","dist/nodes/Zendesk/Zendesk.node.js","dist/nodes/Zendesk/ZendeskTrigger.node.js","dist/nodes/Zoho/ZohoCrm.node.js","dist/nodes/Zoom/Zoom.node.js","dist/nodes/Zulip/Zulip.node.js"]},"devDependencies":{"@types/amqplib":"^0.10.1","@types/aws4":"^1.5.1","@types/basic-auth":"^1.1.3","@types/cheerio":"^0.22.15","@types/cron":"~1.7.1","@types/eventsource":"^1.1.2","@types/express":"^4.17.6","@types/gm":"^1.25.0","@types/imap-simple":"^4.2.0","@types/js-nacl":"^1.3.0","@types/jsonwebtoken":"^9.0.1","@types/lodash":"^4.14.195","@types/lossless-json":"^1.0.0","@types/mailparser":"^2.7.3","@types/mime-types":"^2.1.0","@types/mssql":"^6.0.2","@types/node-ssh":"^7.0.1","@types/nodemailer":"^6.4.0","@types/promise-ftp":"^1.3.4","@types/redis":"^2.8.11","@types/request-promise-native":"~1.0.15","@types/rfc2047":"^2.0.1","@types/showdown":"^1.9.4","@types/snowflake-sdk":"^1.6.12","@types/ssh2-sftp-client":"^5.1.0","@types/tmp":"^0.2.0","@types/uuid":"^8.3.2","@types/xml2js":"^0.4.11","eslint-plugin-n8n-nodes-base":"^1.16.0","gulp":"^4.0.0","n8n-core":"1.14.1"},"dependencies":{"@kafkajs/confluent-schema-registry":"1.0.6","@n8n/vm2":"^3.9.20","amqplib":"^0.10.3","aws4":"^1.8.0","basic-auth":"^2.0.1","change-case":"^4.1.1","cheerio":"1.0.0-rc.6","chokidar":"3.5.2","cron":"~1.7.2","csv-parse":"^5.5.0","currency-codes":"^2.1.0","eventsource":"^2.0.2","fast-glob":"^3.2.5","fflate":"^0.7.0","get-system-fonts":"^2.0.2","gm":"^1.25.0","iconv-lite":"^0.6.2","ics":"^2.27.0","imap-simple":"^4.3.0","isbot":"^3.6.13","iso-639-1":"^2.1.3","js-nacl":"^1.4.0","jsonwebtoken":"^9.0.0","kafkajs":"^1.14.0","ldapts":"^4.2.6","lodash":"^4.17.21","lossless-json":"^1.0.4","luxon":"^3.3.0","mailparser":"^3.2.0","minifaker":"^1.34.1","moment":"~2.29.2","moment-timezone":"^0.5.28","mongodb":"^4.17.1","mqtt":"^5.0.2","mssql":"^8.1.2","mysql2":"~2.3.0","nanoid":"^3.3.6","node-html-markdown":"^1.1.3","node-ssh":"^12.0.0","nodemailer":"^6.7.1","otpauth":"^9.1.1","pdfjs-dist":"^2.16.105","pg":"^8.3.0","pg-promise":"^10.5.8","pretty-bytes":"^5.6.0","promise-ftp":"^1.3.5","pyodide":"^0.23.4","redis":"^3.1.1","rfc2047":"^4.0.1","rhea":"^1.0.11","rss-parser":"^3.7.0","semver":"^7.5.4","showdown":"^2.0.3","simple-git":"^3.17.0","snowflake-sdk":"^1.8.0","ssh2-sftp-client":"^7.0.0","tmp-promise":"^3.0.2","typedi":"^0.10.0","uuid":"^8.3.2","xlsx":"https://cdn.sheetjs.com/xlsx-0.19.3/xlsx-0.19.3.tgz","xml2js":"^0.5.0","n8n-workflow":"1.14.1"},"scripts":{"clean":"rimraf dist .turbo","dev":"pnpm watch","typecheck":"tsc","build":"tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json && gulp build:icons && gulp build:translations && pnpm build:metadata","build:translations":"gulp build:translations","build:metadata":"pnpm n8n-generate-known && pnpm n8n-generate-ui-types","format":"prettier --write . --ignore-path ../../.prettierignore","lint":"eslint . --quiet && node ./scripts/validate-load-options-methods.js","lintfix":"eslint . --fix","watch":"tsc-watch -p tsconfig.build.json --onCompilationComplete \"tsc-alias -p tsconfig.build.json\" --onSuccess \"pnpm n8n-generate-ui-types\"","test":"jest"}}


node_type: n8n-nodes-base.ActiveCampaign
name: ActiveCampaign
package_name: n8n-nodes-base
display_name: ActiveCampaign
description: Create and edit data in ActiveCampaign
code_hash: 5ea90671718d20eecb6cddae2e21c91470fdb778e8be97106ee2539303422ad2
source_location: node_modules/n8n-nodes-base/dist/nodes/ActiveCampaign/ActiveCampaign.node.js
extracted_at: 2025-06-07 19:36:28
updated_at: 2025-06-07 19:36:28
source_code:
  "use strict";
  Object.defineProperty(exports, "__esModule", { value: true });
  exports.ActiveCampaign = void 0;
  const n8n_workflow_1 = require("n8n-workflow");
  const GenericFunctions_1 = require("./GenericFunctions");
  const ContactDescription_1 = require("./ContactDescription");
  const DealDescription_1 = require("./DealDescription");
  const EcomOrderDescription_1 = require("./EcomOrderDescription");
  const EcomCustomerDescription_1 = require("./EcomCustomerDescription");
  const EcomOrderProductsDescription_1 = require("./EcomOrderProductsDescription");
  const ConnectionDescription_1 = require("./ConnectionDescription");
  const AccountDescription_1 = require("./AccountDescription");
  const TagDescription_1 = require("./TagDescription");
  const AccountContactDescription_1 = require("./AccountContactDescription");
  const ContactListDescription_1 = require("./ContactListDescription");
  const ContactTagDescription_1 = require("./ContactTagDescription");
  const ListDescription_1 = require("./ListDescription");
  function addAdditionalFields(body, additionalFields) {
      for (const key of Object.keys(additionalFields)) {
          if (key === 'customProperties' &&
              additionalFields.customProperties.property !== undefined) {
              for (const customProperty of additionalFields.customProperties
                  .property) {
                  body[customProperty.name] = customProperty.value;
              }
          }
          else if (key === 'fieldValues' &&
              additionalFields.fieldValues.property !== undefined) {
              body.fieldValues = additionalFields.fieldValues.property;
          }
          else if (key === 'fields' &&
              additionalFields.fields.property !== undefined) {
              body.fields = additionalFields.fields.property;
          }
          else {
              body[key] = additionalFields[key];
          }
      }
  }
  class ActiveCampaign {
      constructor() {
          this.description = {
              displayName: 'ActiveCampaign',
              name: 'activeCampaign',
              icon: 'file:activeCampaign.png',
              group: ['transform'],
              version: 1,
              subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
              description: 'Create and edit data in ActiveCampaign',
              defaults: {
                  name: 'ActiveCampaign',
              },
              inputs: ['main'],
              outputs: ['main'],
              credentials: [
                  {
                      name: 'activeCampaignApi',
                      required: true,
                  },
              ],
              properties: [
                  {
                      displayName: 'Resource',
                      name: 'resource',
                      type: 'options',
                      noDataExpression: true,
                      options: [
                          {
                              name: 'Account',
                              value: 'account',
                          },
                          {
                              name: 'Account Contact',
                              value: 'accountContact',
                          },
                          {
                              name: 'Connection',
                              value: 'connection',
                          },
                          {
                              name: 'Contact',
                              value: 'contact',
                          },
                          {
                              name: 'Contact List',
                              value: 'contactList',
                          },
                          {
                              name: 'Contact Tag',
                              value: 'contactTag',
                          },
                          {
                              name: 'Deal',
                              value: 'deal',
                          },
                          {
                              name: 'E-Commerce Customer',
                              value: 'ecommerceCustomer',
                          },
                          {
                              name: 'E-Commerce Order',
                              value: 'ecommerceOrder',
                          },
                          {
                              name: 'E-Commerce Order Product',
                              value: 'ecommerceOrderProducts',
                          },
                          {
                              name: 'List',
                              value: 'list',
                          },
                          {
                              name: 'Tag',
                              value: 'tag',
                          },
                      ],
                      default: 'contact',
                  },
                  ...AccountDescription_1.accountOperations,
                  ...ContactDescription_1.contactOperations,
                  ...AccountContactDescription_1.accountContactOperations,
                  ...ContactListDescription_1.contactListOperations,
                  ...ContactTagDescription_1.contactTagOperations,
                  ...ListDescription_1.listOperations,
                  ...TagDescription_1.tagOperations,
                  ...DealDescription_1.dealOperations,
                  ...ConnectionDescription_1.connectionOperations,
                  ...EcomOrderDescription_1.ecomOrderOperations,
                  ...EcomCustomerDescription_1.ecomCustomerOperations,
                  ...EcomOrderProductsDescription_1.ecomOrderProductsOperations,
                  ...TagDescription_1.tagFields,
                  ...ListDescription_1.listFields,
                  ...ContactTagDescription_1.contactTagFields,
                  ...ContactListDescription_1.contactListFields,
                  ...AccountDescription_1.accountFields,
                  ...AccountContactDescription_1.accountContactFields,
                  ...ContactDescription_1.contactFields,
                  ...DealDescription_1.dealFields,
                  ...ConnectionDescription_1.connectionFields,
                  ...EcomOrderDescription_1.ecomOrderFields,
                  ...EcomCustomerDescription_1.ecomCustomerFields,
                  ...EcomOrderProductsDescription_1.ecomOrderProductsFields,
              ],
          };
          this.methods = {
              loadOptions: {
                  async getContactCustomFields() {
                      const returnData = [];
                      const { fields } = await GenericFunctions_1.activeCampaignApiRequest.call(this, 'GET', '/api/3/fields', {}, { limit: 100 });
                      for (const field of fields) {
                          const fieldName = field.title;
                          const fieldId = field.id;
                          returnData.push({
                              name: fieldName,
                              value: fieldId,
                          });
                      }
                      return returnData;
                  },
                  async getAccountCustomFields() {
                      const returnData = [];
                      const { accountCustomFieldMeta: fields } = await GenericFunctions_1.activeCampaignApiRequest.call(this, 'GET', '/api/3/accountCustomFieldMeta', {}, { limit: 100 });
                      for (const field of fields) {
                          const fieldName = field.fieldLabel;
                          const fieldId = field.id;
                          returnData.push({
                              name: fieldName,
                              value: fieldId,
                          });
                      }
                      return returnData;
                  },
                  async getTags() {
                      const returnData = [];
                      const { tags } = await GenericFunctions_1.activeCampaignApiRequest.call(this, 'GET', '/api/3/tags', {}, { limit: 100 });
                      for (const tag of tags) {
                          returnData.push({
                              name: tag.tag,
                              value: tag.id,
                          });
                      }
                      return returnData;
                  },
              },
          };
      }
      async execute() {
          const items = this.getInputData();
          const returnData = [];
          let resource;
          let operation;
          let body;
          let qs;
          let requestMethod;
          let endpoint;
          let returnAll = false;
          let dataKey;
          for (let i = 0; i < items.length; i++) {
              try {
                  dataKey = undefined;
                  resource = this.getNodeParameter('resource', 0);
                  operation = this.getNodeParameter('operation', 0);
                  requestMethod = 'GET';
                  endpoint = '';
                  body = {};
                  qs = {};
                  if (resource === 'contact') {
                      if (operation === 'create') {
                          requestMethod = 'POST';
                          const updateIfExists = this.getNodeParameter('updateIfExists', i);
                          if (updateIfExists) {
                              endpoint = '/api/3/contact/sync';
                          }
                          else {
                              endpoint = '/api/3/contacts';
                          }
                          dataKey = 'contact';
                          body.contact = {
                              email: this.getNodeParameter('email', i),
                          };
                          const additionalFields = this.getNodeParameter('additionalFields', i);
                          addAdditionalFields(body.contact, additionalFields);
                      }
                      else if (operation === 'delete') {
                          requestMethod = 'DELETE';
                          const contactId = this.getNodeParameter('contactId', i);
                          endpoint = `/api/3/contacts/${contactId}`;
                      }
                      else if (operation === 'get') {
                          requestMethod = 'GET';
                          const contactId = this.getNodeParameter('contactId', i);
                          endpoint = `/api/3/contacts/${contactId}`;
                      }
                      else if (operation === 'getAll') {
                          requestMethod = 'GET';
                          returnAll = this.getNodeParameter('returnAll', i);
                          const simple = this.getNodeParameter('simple', i, true);
                          const additionalFields = this.getNodeParameter('additionalFields', i);
                          if (!returnAll) {
                              qs.limit = this.getNodeParameter('limit', i);
                          }
                          Object.assign(qs, additionalFields);
                          if (qs.orderBy) {
                              qs[qs.orderBy] = true;
                              delete qs.orderBy;
                          }
                          if (simple) {
                              dataKey = 'contacts';
                          }
                          endpoint = '/api/3/contacts';
                      }
                      else if (operation === 'update') {
                          requestMethod = 'PUT';
                          const contactId = this.getNodeParameter('contactId', i);
                          endpoint = `/api/3/contacts/${contactId}`;
                          dataKey = 'contact';
                          body.contact = {};
                          const updateFields = this.getNodeParameter('updateFields', i);
                          addAdditionalFields(body.contact, updateFields);
                      }
                      else {
                          throw new n8n_workflow_1.NodeOperationError(this.getNode(), `The operation "${operation}" is not known`, { itemIndex: i });
                      }
                  }
                  else if (resource === 'account') {
                      if (operation === 'create') {
                          requestMethod = 'POST';
                          endpoint = '/api/3/accounts';
                          dataKey = 'account';
                          body.account = {
                              name: this.getNodeParameter('name', i),
                          };
                          const additionalFields = this.getNodeParameter('additionalFields', i);
                          addAdditionalFields(body.account, additionalFields);
                      }
                      else if (operation === 'delete') {
                          requestMethod = 'DELETE';
                          const accountId = this.getNodeParameter('accountId', i);
                          endpoint = `/api/3/accounts/${accountId}`;
                      }
                      else if (operation === 'get') {
                          requestMethod = 'GET';
                          const accountId = this.getNodeParameter('accountId', i);
                          endpoint = `/api/3/accounts/${accountId}`;
                      }
                      else if (operation === 'getAll') {
                          requestMethod = 'GET';
                          const simple = this.getNodeParameter('simple', i, true);
                          returnAll = this.getNodeParameter('returnAll', i);
                          if (!returnAll) {
                              qs.limit = this.getNodeParameter('limit', i);
                          }
                          if (simple) {
                              dataKey = 'accounts';
                          }
                          endpoint = '/api/3/accounts';
                          const filters = this.getNodeParameter('filters', i);
                          Object.assign(qs, filters);
                      }
                      else if (operation === 'update') {
                          requestMethod = 'PUT';
                          const accountId = this.getNodeParameter('accountId', i);
                          endpoint = `/api/3/accounts/${accountId}`;
                          dataKey = 'account';
                          body.account = {};
                          const updateFields = this.getNodeParameter('updateFields', i);
                          addAdditionalFields(body.account, updateFields);
                      }
                      else {
                          throw new n8n_workflow_1.NodeOperationError(this.getNode(), `The operation "${operation}" is not known`, { itemIndex: i });
                      }
                  }
                  else if (resource === 'accountContact') {
                      if (operation === 'create') {
                          requestMethod = 'POST';
                          endpoint = '/api/3/accountContacts';
                          dataKey = 'accountContact';
                          body.accountContact = {
                              contact: this.getNodeParameter('contact', i),
                              account: this.getNodeParameter('account', i),
                          };
                          const additionalFields = this.getNodeParameter('additionalFields', i);
                          addAdditionalFields(body.accountContact, additionalFields);
                      }
                      else if (operation === 'update') {
                          requestMethod = 'PUT';
                          const accountContactId = this.getNodeParameter('accountContactId', i);
                          endpoint = `/api/3/accountContacts/${accountContactId}`;
                          dataKey = 'accountContact';
                          body.accountContact = {};
                          const updateFields = this.getNodeParameter('updateFields', i);
                          addAdditionalFields(body.accountContact, updateFields);
                      }
                      else if (operation === 'delete') {
                          requestMethod = 'DELETE';
                          const accountContactId = this.getNodeParameter('accountContactId', i);
                          endpoint = `/api/3/accountContacts/${accountContactId}`;
                      }
                      else {
                          throw new n8n_workflow_1.NodeOperationError(this.getNode(), `The operation "${operation}" is not known`, { itemIndex: i });
                      }
                  }
                  else if (resource === 'contactTag') {
                      if (operation === 'add') {
                          requestMethod = 'POST';
                          endpoint = '/api/3/contactTags';
                          dataKey = 'contactTag';
                          body.contactTag = {
                              contact: this.getNodeParameter('contactId', i),
                              tag: this.getNodeParameter('tagId', i),
                          };
                      }
                      else if (operation === 'remove') {
                          requestMethod = 'DELETE';
                          const contactTagId = this.getNodeParameter('contactTagId', i);
                          endpoint = `/api/3/contactTags/${contactTagId}`;
                      }
                      else {
                          throw new n8n_workflow_1.NodeOperationError(this.getNode(), `The operation "${operation}" is not known`, { itemIndex: i });
                      }
                  }
                  else if (resource === 'contactList') {
                      if (operation === 'add') {
                          requestMethod = 'POST';
                          endpoint = '/api/3/contactLists';
                          dataKey = 'contactTag';
                          body.contactList = {
                              list: this.getNodeParameter('listId', i),
                              contact: this.getNodeParameter('contactId', i),
                              status: 1,
                          };
                      }
                      else if (operation === 'remove') {
                          requestMethod = 'POST';
                          endpoint = '/api/3/contactLists';
                          body.contactList = {
                              list: this.getNodeParameter('listId', i),
                              contact: this.getNodeParameter('contactId', i),
                              status: 2,
                          };
                          dataKey = 'contacts';
                      }
                      else {
                          throw new n8n_workflow_1.NodeOperationError(this.getNode(), `The operation "${operation}" is not known`, { itemIndex: i });
                      }
                  }
                  else if (resource === 'list') {
                      if (operation === 'getAll') {
                          requestMethod = 'GET';
                          returnAll = this.getNodeParameter('returnAll', i);
                          const simple = this.getNodeParameter('simple', i, true);
                          if (!returnAll) {
                              qs.limit = this.getNodeParameter('limit', i);
                          }
                          if (simple) {
                              dataKey = 'lists';
                          }
                          endpoint = '/api/3/lists';
                      }
                  }
                  else if (resource === 'tag') {
                      if (operation === 'create') {
                          requestMethod = 'POST';
                          endpoint = '/api/3/tags';
                          dataKey = 'tag';
                          body.tag = {
                              tag: this.getNodeParameter('name', i),
                              tagType: this.getNodeParameter('tagType', i),
                          };
                          const additionalFields = this.getNodeParameter('additionalFields', i);
                          addAdditionalFields(body.tag, additionalFields);
                      }
                      else if (operation === 'delete') {
                          requestMethod = 'DELETE';
                          const tagId = this.getNodeParameter('tagId', i);
                          endpoint = `/api/3/tags/${tagId}`;
                      }
                      else if (operation === 'get') {
                          requestMethod = 'GET';
                          const tagId = this.getNodeParameter('tagId', i);
                          endpoint = `/api/3/tags/${tagId}`;
                      }
                      else if (operation === 'getAll') {
                          requestMethod = 'GET';
                          const simple = this.getNodeParameter('simple', i, true);
                          returnAll = this.getNodeParameter('returnAll', i);
                          if (!returnAll) {
                              qs.limit = this.getNodeParameter('limit', i);
                          }
                          if (simple) {
                              dataKey = 'tags';
                          }
                          endpoint = '/api/3/tags';
                      }
                      else if (operation === 'update') {
                          requestMethod = 'PUT';
                          const tagId = this.getNodeParameter('tagId', i);
                          endpoint = `/api/3/tags/${tagId}`;
                          dataKey = 'tag';
                          body.tag = {};
                          const updateFields = this.getNodeParameter('updateFields', i);
                          addAdditionalFields(body.tag, updateFields);
                      }
                      else {
                          throw new n8n_workflow_1.NodeOperationError(this.getNode(), `The operation "${operation}" is not known`, { itemIndex: i });
                      }
                  }
                  else if (resource === 'deal') {
                      if (operation === 'create') {
                          requestMethod = 'POST';
                          endpoint = '/api/3/deals';
                          body.deal = {
                              title: this.getNodeParameter('title', i),
                              contact: this.getNodeParameter('contact', i),
                              value: this.getNodeParameter('value', i),
                              currency: this.getNodeParameter('currency', i),
                          };
                          const group = this.getNodeParameter('group', i);
                          if (group !== '') {
                              addAdditionalFields(body.deal, { group });
                          }
                          const owner = this.getNodeParameter('owner', i);
                          if (owner !== '') {
                              addAdditionalFields(body.deal, { owner });
                          }
                          const stage = this.getNodeParameter('stage', i);
                          if (stage !== '') {
                              addAdditionalFields(body.deal, { stage });
                          }
                          const additionalFields = this.getNodeParameter('additionalFields', i);
                          addAdditionalFields(body.deal, additionalFields);
                      }
                      else if (operation === 'update') {
                          requestMethod = 'PUT';
                          const dealId = this.getNodeParameter('dealId', i);
                          endpoint = `/api/3/deals/${dealId}`;
                          body.deal = {};
                          const updateFields = this.getNodeParameter('updateFields', i);
                          addAdditionalFields(body.deal, updateFields);
                      }
                      else if (operation === 'delete') {
                          requestMethod = 'DELETE';
                          const dealId = this.getNodeParameter('dealId', i);
                          endpoint = `/api/3/deals/${dealId}`;
                      }
                      else if (operation === 'get') {
                          requestMethod = 'GET';
                          const dealId = this.getNodeParameter('dealId', i);
                          endpoint = `/api/3/deals/${dealId}`;
                      }
                      else if (operation === 'getAll') {
                          requestMethod = 'GET';
                          const simple = this.getNodeParameter('simple', i, true);
                          returnAll = this.getNodeParameter('returnAll', i);
                          if (!returnAll) {
                              qs.limit = this.getNodeParameter('limit', i);
                          }
                          if (simple) {
                              dataKey = 'deals';
                          }
                          endpoint = '/api/3/deals';
                      }
                      else if (operation === 'createNote') {
                          requestMethod = 'POST';
                          body.note = {
                              note: this.getNodeParameter('dealNote', i),
                          };
                          const dealId = this.getNodeParameter('dealId', i);
                          endpoint = `/api/3/deals/${dealId}/notes`;
                      }
                      else if (operation === 'updateNote') {
                          requestMethod = 'PUT';
                          body.note = {
                              note: this.getNodeParameter('dealNote', i),
                          };
                          const dealId = this.getNodeParameter('dealId', i);
                          const dealNoteId = this.getNodeParameter('dealNoteId', i);
                          endpoint = `/api/3/deals/${dealId}/notes/${dealNoteId}`;
                      }
                      else {
                          throw new n8n_workflow_1.NodeOperationError(this.getNode(), `The operation "${operation}" is not known`, { itemIndex: i });
                      }
                  }
                  else if (resource === 'connection') {
                      if (operation === 'create') {
                          requestMethod = 'POST';
                          endpoint = '/api/3/connections';
                          body.connection = {
                              service: this.getNodeParameter('service', i),
                              externalid: this.getNodeParameter('externalid', i),
                              name: this.getNodeParameter('name', i),
                              logoUrl: this.getNodeParameter('logoUrl', i),
                              linkUrl: this.getNodeParameter('linkUrl', i),
                          };
                      }
                      else if (operation === 'update') {
                          requestMethod = 'PUT';
                          const connectionId = this.getNodeParameter('connectionId', i);
                          endpoint = `/api/3/connections/${connectionId}`;
                          body.connection = {};
                          const updateFields = this.getNodeParameter('updateFields', i);
                          addAdditionalFields(body.connection, updateFields);
                      }
                      else if (operation === 'delete') {
                          requestMethod = 'DELETE';
                          const connectionId = this.getNodeParameter('connectionId', i);
                          endpoint = `/api/3/connections/${connectionId}`;
                      }
                      else if (operation === 'get') {
                          requestMethod = 'GET';
                          const connectionId = this.getNodeParameter('connectionId', i);
                          endpoint = `/api/3/connections/${connectionId}`;
                      }
                      else if (operation === 'getAll') {
                          requestMethod = 'GET';
                          const simple = this.getNodeParameter('simple', i, true);
                          returnAll = this.getNodeParameter('returnAll', i);
                          if (!returnAll) {
                              qs.limit = this.getNodeParameter('limit', i);
                          }
                          if (simple) {
                              dataKey = 'connections';
                          }
                          endpoint = '/api/3/connections';
                      }
                      else {
                          throw new n8n_workflow_1.NodeOperationError(this.getNode(), `The operation "${operation}" is not known`, { itemIndex: i });
                      }
                  }
                  else if (resource === 'ecommerceOrder') {
                      if (operation === 'create') {
                          requestMethod = 'POST';
                          endpoint = '/api/3/ecomOrders';
                          body.ecomOrder = {
                              source: this.getNodeParameter('source', i),
                              email: this.getNodeParameter('email', i),
                              totalPrice: this.getNodeParameter('totalPrice', i),
                              currency: this.getNodeParameter('currency', i).toString().toUpperCase(),
                              externalCreatedDate: this.getNodeParameter('externalCreatedDate', i),
                              connectionid: this.getNodeParameter('connectionid', i),
                              customerid: this.getNodeParameter('customerid', i),
                          };
                          const externalid = this.getNodeParameter('externalid', i);
                          if (externalid !== '') {
                              addAdditionalFields(body.ecomOrder, { externalid });
                          }
                          const externalcheckoutid = this.getNodeParameter('externalcheckoutid', i);
                          if (externalcheckoutid !== '') {
                              addAdditionalFields(body.ecomOrder, { externalcheckoutid });
                          }
                          const abandonedDate = this.getNodeParameter('abandonedDate', i);
                          if (abandonedDate !== '') {
                              addAdditionalFields(body.ecomOrder, { abandonedDate });
                          }
                          const orderProducts = this.getNodeParameter('orderProducts', i);
                          addAdditionalFields(body.ecomOrder, { orderProducts });
                          const additionalFields = this.getNodeParameter('additionalFields', i);
                          addAdditionalFields(body.ecomOrder, additionalFields);
                      }
                      else if (operation === 'update') {
                          requestMethod = 'PUT';
                          const orderId = this.getNodeParameter('orderId', i);
                          endpoint = `/api/3/ecomOrders/${orderId}`;
                          body.ecomOrder = {};
                          const updateFields = this.getNodeParameter('updateFields', i);
                          addAdditionalFields(body.ecomOrder, updateFields);
                      }
                      else if (operation === 'delete') {
                          requestMethod = 'DELETE';
                          const orderId = this.getNodeParameter('orderId', i);
                          endpoint = `/api/3/ecomOrders/${orderId}`;
                      }
                      else if (operation === 'get') {
                          requestMethod = 'GET';
                          const orderId = this.getNodeParameter('orderId', i);
                          endpoint = `/api/3/ecomOrders/${orderId}`;
                      }
                      else if (operation === 'getAll') {
                          requestMethod = 'GET';
                          const simple = this.getNodeParameter('simple', i, true);
                          returnAll = this.getNodeParameter('returnAll', i);
                          if (!returnAll) {
                              qs.limit = this.getNodeParameter('limit', i);
                          }
                          if (simple) {
                              dataKey = 'ecomOrders';
                          }
                          endpoint = '/api/3/ecomOrders';
                      }
                      else {
                          throw new n8n_workflow_1.NodeOperationError(this.getNode(), `The operation "${operation}" is not known`, { itemIndex: i });
                      }
                  }
                  else if (resource === 'ecommerceCustomer') {
                      if (operation === 'create') {
                          requestMethod = 'POST';
                          endpoint = '/api/3/ecomCustomers';
                          body.ecomCustomer = {
                              connectionid: this.getNodeParameter('connectionid', i),
                              externalid: this.getNodeParameter('externalid', i),
                              email: this.getNodeParameter('email', i),
                          };
                          const additionalFields = this.getNodeParameter('additionalFields', i);
                          if (additionalFields.acceptsMarketing !== undefined) {
                              if (additionalFields.acceptsMarketing === true) {
                                  additionalFields.acceptsMarketing = '1';
                              }
                              else {
                                  additionalFields.acceptsMarketing = '0';
                              }
                          }
                          addAdditionalFields(body.ecomCustomer, additionalFields);
                      }
                      else if (operation === 'update') {
                          requestMethod = 'PUT';
                          const ecommerceCustomerId = this.getNodeParameter('ecommerceCustomerId', i);
                          endpoint = `/api/3/ecomCustomers/${ecommerceCustomerId}`;
                          body.ecomCustomer = {};
                          const updateFields = this.getNodeParameter('updateFields', i);
                          if (updateFields.acceptsMarketing !== undefined) {
                              if (updateFields.acceptsMarketing === true) {
                                  updateFields.acceptsMarketing = '1';
                              }
                              else {
                                  updateFields.acceptsMarketing = '0';
                              }
                          }
                          addAdditionalFields(body.ecomCustomer, updateFields);
                      }
                      else if (operation === 'delete') {
                          requestMethod = 'DELETE';
                          const ecommerceCustomerId = this.getNodeParameter('ecommerceCustomerId', i);
                          endpoint = `/api/3/ecomCustomers/${ecommerceCustomerId}`;
                      }
                      else if (operation === 'get') {
                          requestMethod = 'GET';
                          const ecommerceCustomerId = this.getNodeParameter('ecommerceCustomerId', i);
                          endpoint = `/api/3/ecomCustomers/${ecommerceCustomerId}`;
                      }
                      else if (operation === 'getAll') {
                          requestMethod = 'GET';
                          const simple = this.getNodeParameter('simple', i, true);
                          returnAll = this.getNodeParameter('returnAll', i);
                          if (!returnAll) {
                              qs.limit = this.getNodeParameter('limit', i);
                          }
                          if (simple) {
                              dataKey = 'ecomCustomers';
                          }
                          endpoint = '/api/3/ecomCustomers';
                      }
                      else {
                          throw new n8n_workflow_1.NodeOperationError(this.getNode(), `The operation "${operation}" is not known`, { itemIndex: i });
                      }
                  }
                  else if (resource === 'ecommerceOrderProducts') {
                      if (operation === 'getByProductId') {
                          requestMethod = 'GET';
                          const procuctId = this.getNodeParameter('procuctId', i);
                          endpoint = `/api/3/ecomOrderProducts/${procuctId}`;
                      }
                      else if (operation === 'getByOrderId') {
                          requestMethod = 'GET';
                          const orderId = this.getNodeParameter('orderId', i);
                          endpoint = `/api/3/ecomOrders/${orderId}/orderProducts`;
                      }
                      else if (operation === 'getAll') {
                          requestMethod = 'GET';
                          const simple = this.getNodeParameter('simple', i, true);
                          returnAll = this.getNodeParameter('returnAll', i);
                          if (!returnAll) {
                              qs.limit = this.getNodeParameter('limit', i);
                          }
                          if (simple) {
                              dataKey = 'ecomOrderProducts';
                          }
                          endpoint = '/api/3/ecomOrderProducts';
                      }
                      else {
                          throw new n8n_workflow_1.NodeOperationError(this.getNode(), `The operation "${operation}" is not known`, { itemIndex: i });
                      }
                  }
                  else {
                      throw new n8n_workflow_1.NodeOperationError(this.getNode(), `The resource "${resource}" is not known!`, {
                          itemIndex: i,
                      });
                  }
                  let responseData;
                  if (returnAll) {
                      responseData = await GenericFunctions_1.activeCampaignApiRequestAllItems.call(this, requestMethod, endpoint, body, qs, dataKey);
                  }
                  else {
                      responseData = await GenericFunctions_1.activeCampaignApiRequest.call(this, requestMethod, endpoint, body, qs, dataKey);
                  }
                  if (resource === 'contactList' && operation === 'add' && responseData === undefined) {
                      responseData = { success: true };
                  }
                  const executionData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(responseData), { itemData: { item: i } });
                  returnData.push(...executionData);
              }
              catch (error) {
                  if (this.continueOnFail()) {
                      const executionErrorData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray({ error: error.message }), { itemData: { item: i } });
                      returnData.push(...executionErrorData);
                      continue;
                  }
                  throw error;
              }
          }
          return [returnData];
      }
  }
  exports.ActiveCampaign = ActiveCampaign;
  //# sourceMappingURL=ActiveCampaign.node.js.map

package_info:
  {"name":"n8n-nodes-base","version":"1.14.1","description":"Base nodes of n8n","license":"SEE LICENSE IN LICENSE.md","homepage":"https://n8n.io","author":{"name":"Jan Oberhauser","email":"jan@n8n.io"},"main":"index.js","repository":{"type":"git","url":"git+https://github.com/n8n-io/n8n.git"},"files":["dist"],"n8n":{"credentials":["dist/credentials/ActionNetworkApi.credentials.js","dist/credentials/ActiveCampaignApi.credentials.js","dist/credentials/AcuitySchedulingApi.credentials.js","dist/credentials/AcuitySchedulingOAuth2Api.credentials.js","dist/credentials/AdaloApi.credentials.js","dist/credentials/AffinityApi.credentials.js","dist/credentials/AgileCrmApi.credentials.js","dist/credentials/AirtableApi.credentials.js","dist/credentials/AirtableOAuth2Api.credentials.js","dist/credentials/AirtableTokenApi.credentials.js","dist/credentials/AlienVaultApi.credentials.js","dist/credentials/Amqp.credentials.js","dist/credentials/ApiTemplateIoApi.credentials.js","dist/credentials/AsanaApi.credentials.js","dist/credentials/AsanaOAuth2Api.credentials.js","dist/credentials/Auth0ManagementApi.credentials.js","dist/credentials/AutomizyApi.credentials.js","dist/credentials/AutopilotApi.credentials.js","dist/credentials/Aws.credentials.js","dist/credentials/BambooHrApi.credentials.js","dist/credentials/BannerbearApi.credentials.js","dist/credentials/BaserowApi.credentials.js","dist/credentials/BeeminderApi.credentials.js","dist/credentials/BitbucketApi.credentials.js","dist/credentials/BitlyApi.credentials.js","dist/credentials/BitlyOAuth2Api.credentials.js","dist/credentials/BitwardenApi.credentials.js","dist/credentials/BoxOAuth2Api.credentials.js","dist/credentials/BrandfetchApi.credentials.js","dist/credentials/BubbleApi.credentials.js","dist/credentials/CalApi.credentials.js","dist/credentials/CalendlyApi.credentials.js","dist/credentials/CarbonBlackApi.credentials.js","dist/credentials/ChargebeeApi.credentials.js","dist/credentials/CircleCiApi.credentials.js","dist/credentials/CiscoMerakiApi.credentials.js","dist/credentials/CiscoSecureEndpointApi.credentials.js","dist/credentials/CiscoWebexOAuth2Api.credentials.js","dist/credentials/CiscoUmbrellaApi.credentials.js","dist/credentials/CitrixAdcApi.credentials.js","dist/credentials/CloudflareApi.credentials.js","dist/credentials/ClearbitApi.credentials.js","dist/credentials/ClickUpApi.credentials.js","dist/credentials/ClickUpOAuth2Api.credentials.js","dist/credentials/ClockifyApi.credentials.js","dist/credentials/CockpitApi.credentials.js","dist/credentials/CodaApi.credentials.js","dist/credentials/ContentfulApi.credentials.js","dist/credentials/ConvertKitApi.credentials.js","dist/credentials/CopperApi.credentials.js","dist/credentials/CortexApi.credentials.js","dist/credentials/CrateDb.credentials.js","dist/credentials/CrowdStrikeOAuth2Api.credentials.js","dist/credentials/CrowdDevApi.credentials.js","dist/credentials/CustomerIoApi.credentials.js","dist/credentials/DeepLApi.credentials.js","dist/credentials/DemioApi.credentials.js","dist/credentials/DhlApi.credentials.js","dist/credentials/DiscourseApi.credentials.js","dist/credentials/DisqusApi.credentials.js","dist/credentials/DriftApi.credentials.js","dist/credentials/DriftOAuth2Api.credentials.js","dist/credentials/DropboxApi.credentials.js","dist/credentials/DropboxOAuth2Api.credentials.js","dist/credentials/DropcontactApi.credentials.js","dist/credentials/EgoiApi.credentials.js","dist/credentials/ElasticsearchApi.credentials.js","dist/credentials/ElasticSecurityApi.credentials.js","dist/credentials/EmeliaApi.credentials.js","dist/credentials/ERPNextApi.credentials.js","dist/credentials/EventbriteApi.credentials.js","dist/credentials/EventbriteOAuth2Api.credentials.js","dist/credentials/F5BigIpApi.credentials.js","dist/credentials/FacebookGraphApi.credentials.js","dist/credentials/FacebookGraphAppApi.credentials.js","dist/credentials/FacebookLeadAdsOAuth2Api.credentials.js","dist/credentials/FigmaApi.credentials.js","dist/credentials/FileMaker.credentials.js","dist/credentials/FlowApi.credentials.js","dist/credentials/FormIoApi.credentials.js","dist/credentials/FormstackApi.credentials.js","dist/credentials/FormstackOAuth2Api.credentials.js","dist/credentials/FortiGateApi.credentials.js","dist/credentials/FreshdeskApi.credentials.js","dist/credentials/FreshserviceApi.credentials.js","dist/credentials/FreshworksCrmApi.credentials.js","dist/credentials/Ftp.credentials.js","dist/credentials/GetResponseApi.credentials.js","dist/credentials/GetResponseOAuth2Api.credentials.js","dist/credentials/GhostAdminApi.credentials.js","dist/credentials/GhostContentApi.credentials.js","dist/credentials/GithubApi.credentials.js","dist/credentials/GithubOAuth2Api.credentials.js","dist/credentials/GitlabApi.credentials.js","dist/credentials/GitlabOAuth2Api.credentials.js","dist/credentials/GitPassword.credentials.js","dist/credentials/GmailOAuth2Api.credentials.js","dist/credentials/GoogleAdsOAuth2Api.credentials.js","dist/credentials/GoogleAnalyticsOAuth2Api.credentials.js","dist/credentials/GoogleApi.credentials.js","dist/credentials/GoogleBigQueryOAuth2Api.credentials.js","dist/credentials/GoogleBooksOAuth2Api.credentials.js","dist/credentials/GoogleCalendarOAuth2Api.credentials.js","dist/credentials/GoogleCloudNaturalLanguageOAuth2Api.credentials.js","dist/credentials/GoogleCloudStorageOAuth2Api.credentials.js","dist/credentials/GoogleContactsOAuth2Api.credentials.js","dist/credentials/GoogleDocsOAuth2Api.credentials.js","dist/credentials/GoogleDriveOAuth2Api.credentials.js","dist/credentials/GoogleFirebaseCloudFirestoreOAuth2Api.credentials.js","dist/credentials/GoogleFirebaseRealtimeDatabaseOAuth2Api.credentials.js","dist/credentials/GoogleOAuth2Api.credentials.js","dist/credentials/GooglePerspectiveOAuth2Api.credentials.js","dist/credentials/GoogleSheetsOAuth2Api.credentials.js","dist/credentials/GoogleSheetsTriggerOAuth2Api.credentials.js","dist/credentials/GoogleSlidesOAuth2Api.credentials.js","dist/credentials/GoogleTasksOAuth2Api.credentials.js","dist/credentials/GoogleTranslateOAuth2Api.credentials.js","dist/credentials/GotifyApi.credentials.js","dist/credentials/GoToWebinarOAuth2Api.credentials.js","dist/credentials/GristApi.credentials.js","dist/credentials/GrafanaApi.credentials.js","dist/credentials/GSuiteAdminOAuth2Api.credentials.js","dist/credentials/GumroadApi.credentials.js","dist/credentials/HaloPSAApi.credentials.js","dist/credentials/HarvestApi.credentials.js","dist/credentials/HarvestOAuth2Api.credentials.js","dist/credentials/HelpScoutOAuth2Api.credentials.js","dist/credentials/HighLevelApi.credentials.js","dist/credentials/HomeAssistantApi.credentials.js","dist/credentials/HttpBasicAuth.credentials.js","dist/credentials/HttpDigestAuth.credentials.js","dist/credentials/HttpHeaderAuth.credentials.js","dist/credentials/HttpCustomAuth.credentials.js","dist/credentials/HttpQueryAuth.credentials.js","dist/credentials/HubspotApi.credentials.js","dist/credentials/HubspotAppToken.credentials.js","dist/credentials/HubspotDeveloperApi.credentials.js","dist/credentials/HubspotOAuth2Api.credentials.js","dist/credentials/HumanticAiApi.credentials.js","dist/credentials/HunterApi.credentials.js","dist/credentials/HybridAnalysisApi.credentials.js","dist/credentials/Imap.credentials.js","dist/credentials/ImpervaWafApi.credentials.js","dist/credentials/IntercomApi.credentials.js","dist/credentials/InvoiceNinjaApi.credentials.js","dist/credentials/IterableApi.credentials.js","dist/credentials/JenkinsApi.credentials.js","dist/credentials/JiraSoftwareCloudApi.credentials.js","dist/credentials/JiraSoftwareServerApi.credentials.js","dist/credentials/JotFormApi.credentials.js","dist/credentials/Kafka.credentials.js","dist/credentials/KeapOAuth2Api.credentials.js","dist/credentials/KibanaApi.credentials.js","dist/credentials/KitemakerApi.credentials.js","dist/credentials/KoBoToolboxApi.credentials.js","dist/credentials/Ldap.credentials.js","dist/credentials/LemlistApi.credentials.js","dist/credentials/LinearApi.credentials.js","dist/credentials/LinearOAuth2Api.credentials.js","dist/credentials/LineNotifyOAuth2Api.credentials.js","dist/credentials/LingvaNexApi.credentials.js","dist/credentials/LinkedInOAuth2Api.credentials.js","dist/credentials/LoneScaleApi.credentials.js","dist/credentials/Magento2Api.credentials.js","dist/credentials/MailcheckApi.credentials.js","dist/credentials/MailchimpApi.credentials.js","dist/credentials/MailchimpOAuth2Api.credentials.js","dist/credentials/MailerLiteApi.credentials.js","dist/credentials/MailgunApi.credentials.js","dist/credentials/MailjetEmailApi.credentials.js","dist/credentials/MailjetSmsApi.credentials.js","dist/credentials/MandrillApi.credentials.js","dist/credentials/MarketstackApi.credentials.js","dist/credentials/MatrixApi.credentials.js","dist/credentials/MattermostApi.credentials.js","dist/credentials/MauticApi.credentials.js","dist/credentials/MauticOAuth2Api.credentials.js","dist/credentials/MediumApi.credentials.js","dist/credentials/MediumOAuth2Api.credentials.js","dist/credentials/MetabaseApi.credentials.js","dist/credentials/MessageBirdApi.credentials.js","dist/credentials/MetabaseApi.credentials.js","dist/credentials/MicrosoftDynamicsOAuth2Api.credentials.js","dist/credentials/MicrosoftEntraOAuth2Api.credentials.js","dist/credentials/MicrosoftExcelOAuth2Api.credentials.js","dist/credentials/MicrosoftGraphSecurityOAuth2Api.credentials.js","dist/credentials/MicrosoftOAuth2Api.credentials.js","dist/credentials/MicrosoftOneDriveOAuth2Api.credentials.js","dist/credentials/MicrosoftOutlookOAuth2Api.credentials.js","dist/credentials/MicrosoftSql.credentials.js","dist/credentials/MicrosoftTeamsOAuth2Api.credentials.js","dist/credentials/MicrosoftToDoOAuth2Api.credentials.js","dist/credentials/MindeeInvoiceApi.credentials.js","dist/credentials/MindeeReceiptApi.credentials.js","dist/credentials/MispApi.credentials.js","dist/credentials/MistApi.credentials.js","dist/credentials/MoceanApi.credentials.js","dist/credentials/MondayComApi.credentials.js","dist/credentials/MondayComOAuth2Api.credentials.js","dist/credentials/MongoDb.credentials.js","dist/credentials/MonicaCrmApi.credentials.js","dist/credentials/Mqtt.credentials.js","dist/credentials/Msg91Api.credentials.js","dist/credentials/MySql.credentials.js","dist/credentials/N8nApi.credentials.js","dist/credentials/NasaApi.credentials.js","dist/credentials/NetlifyApi.credentials.js","dist/credentials/NextCloudApi.credentials.js","dist/credentials/NextCloudOAuth2Api.credentials.js","dist/credentials/NocoDb.credentials.js","dist/credentials/NocoDbApiToken.credentials.js","dist/credentials/NotionApi.credentials.js","dist/credentials/NotionOAuth2Api.credentials.js","dist/credentials/NpmApi.credentials.js","dist/credentials/OAuth1Api.credentials.js","dist/credentials/OAuth2Api.credentials.js","dist/credentials/OdooApi.credentials.js","dist/credentials/OktaApi.credentials.js","dist/credentials/OneSimpleApi.credentials.js","dist/credentials/OnfleetApi.credentials.js","dist/credentials/OpenAiApi.credentials.js","dist/credentials/OpenCTIApi.credentials.js","dist/credentials/OpenWeatherMapApi.credentials.js","dist/credentials/OrbitApi.credentials.js","dist/credentials/OuraApi.credentials.js","dist/credentials/PaddleApi.credentials.js","dist/credentials/PagerDutyApi.credentials.js","dist/credentials/PagerDutyOAuth2Api.credentials.js","dist/credentials/PayPalApi.credentials.js","dist/credentials/PeekalinkApi.credentials.js","dist/credentials/PhantombusterApi.credentials.js","dist/credentials/PhilipsHueOAuth2Api.credentials.js","dist/credentials/PipedriveApi.credentials.js","dist/credentials/PipedriveOAuth2Api.credentials.js","dist/credentials/PlivoApi.credentials.js","dist/credentials/Postgres.credentials.js","dist/credentials/PostHogApi.credentials.js","dist/credentials/PostmarkApi.credentials.js","dist/credentials/ProfitWellApi.credentials.js","dist/credentials/PushbulletOAuth2Api.credentials.js","dist/credentials/PushcutApi.credentials.js","dist/credentials/PushoverApi.credentials.js","dist/credentials/QRadarApi.credentials.js","dist/credentials/QualysApi.credentials.js","dist/credentials/QuestDb.credentials.js","dist/credentials/QuickBaseApi.credentials.js","dist/credentials/QuickBooksOAuth2Api.credentials.js","dist/credentials/RabbitMQ.credentials.js","dist/credentials/RaindropOAuth2Api.credentials.js","dist/credentials/RecordedFutureApi.credentials.js","dist/credentials/RedditOAuth2Api.credentials.js","dist/credentials/Redis.credentials.js","dist/credentials/RocketchatApi.credentials.js","dist/credentials/RundeckApi.credentials.js","dist/credentials/S3.credentials.js","dist/credentials/SalesforceJwtApi.credentials.js","dist/credentials/SalesforceOAuth2Api.credentials.js","dist/credentials/SalesmateApi.credentials.js","dist/credentials/SeaTableApi.credentials.js","dist/credentials/SecurityScorecardApi.credentials.js","dist/credentials/SegmentApi.credentials.js","dist/credentials/SekoiaApi.credentials.js","dist/credentials/SendGridApi.credentials.js","dist/credentials/BrevoApi.credentials.js","dist/credentials/SendyApi.credentials.js","dist/credentials/SentryIoApi.credentials.js","dist/credentials/SentryIoOAuth2Api.credentials.js","dist/credentials/SentryIoServerApi.credentials.js","dist/credentials/ServiceNowOAuth2Api.credentials.js","dist/credentials/ServiceNowBasicApi.credentials.js","dist/credentials/Sftp.credentials.js","dist/credentials/ShopifyApi.credentials.js","dist/credentials/ShopifyAccessTokenApi.credentials.js","dist/credentials/ShopifyOAuth2Api.credentials.js","dist/credentials/Signl4Api.credentials.js","dist/credentials/SlackApi.credentials.js","dist/credentials/SlackOAuth2Api.credentials.js","dist/credentials/Sms77Api.credentials.js","dist/credentials/Smtp.credentials.js","dist/credentials/Snowflake.credentials.js","dist/credentials/SplunkApi.credentials.js","dist/credentials/SpontitApi.credentials.js","dist/credentials/SpotifyOAuth2Api.credentials.js","dist/credentials/ShufflerApi.credentials.js","dist/credentials/SshPassword.credentials.js","dist/credentials/SshPrivateKey.credentials.js","dist/credentials/StackbyApi.credentials.js","dist/credentials/StoryblokContentApi.credentials.js","dist/credentials/StoryblokManagementApi.credentials.js","dist/credentials/StrapiApi.credentials.js","dist/credentials/StrapiTokenApi.credentials.js","dist/credentials/StravaOAuth2Api.credentials.js","dist/credentials/StripeApi.credentials.js","dist/credentials/SupabaseApi.credentials.js","dist/credentials/SurveyMonkeyApi.credentials.js","dist/credentials/SurveyMonkeyOAuth2Api.credentials.js","dist/credentials/SyncroMspApi.credentials.js","dist/credentials/TaigaApi.credentials.js","dist/credentials/TapfiliateApi.credentials.js","dist/credentials/TelegramApi.credentials.js","dist/credentials/TheHiveProjectApi.credentials.js","dist/credentials/TheHiveApi.credentials.js","dist/credentials/TimescaleDb.credentials.js","dist/credentials/TodoistApi.credentials.js","dist/credentials/TodoistOAuth2Api.credentials.js","dist/credentials/TogglApi.credentials.js","dist/credentials/TotpApi.credentials.js","dist/credentials/TravisCiApi.credentials.js","dist/credentials/TrellixEpoApi.credentials.js","dist/credentials/TrelloApi.credentials.js","dist/credentials/TwakeCloudApi.credentials.js","dist/credentials/TwakeServerApi.credentials.js","dist/credentials/TwilioApi.credentials.js","dist/credentials/TwistOAuth2Api.credentials.js","dist/credentials/TwitterOAuth1Api.credentials.js","dist/credentials/TwitterOAuth2Api.credentials.js","dist/credentials/TypeformApi.credentials.js","dist/credentials/TypeformOAuth2Api.credentials.js","dist/credentials/UnleashedSoftwareApi.credentials.js","dist/credentials/UpleadApi.credentials.js","dist/credentials/UProcApi.credentials.js","dist/credentials/UptimeRobotApi.credentials.js","dist/credentials/UrlScanIoApi.credentials.js","dist/credentials/VeroApi.credentials.js","dist/credentials/VirusTotalApi.credentials.js","dist/credentials/VonageApi.credentials.js","dist/credentials/VenafiTlsProtectCloudApi.credentials.js","dist/credentials/VenafiTlsProtectDatacenterApi.credentials.js","dist/credentials/WebflowApi.credentials.js","dist/credentials/WebflowOAuth2Api.credentials.js","dist/credentials/WekanApi.credentials.js","dist/credentials/WhatsAppApi.credentials.js","dist/credentials/WiseApi.credentials.js","dist/credentials/WooCommerceApi.credentials.js","dist/credentials/WordpressApi.credentials.js","dist/credentials/WorkableApi.credentials.js","dist/credentials/WufooApi.credentials.js","dist/credentials/XeroOAuth2Api.credentials.js","dist/credentials/YourlsApi.credentials.js","dist/credentials/YouTubeOAuth2Api.credentials.js","dist/credentials/ZammadBasicAuthApi.credentials.js","dist/credentials/ZammadTokenAuthApi.credentials.js","dist/credentials/ZendeskApi.credentials.js","dist/credentials/ZendeskOAuth2Api.credentials.js","dist/credentials/ZohoOAuth2Api.credentials.js","dist/credentials/ZoomApi.credentials.js","dist/credentials/ZoomOAuth2Api.credentials.js","dist/credentials/ZscalerZiaApi.credentials.js","dist/credentials/ZulipApi.credentials.js"],"nodes":["dist/nodes/ActionNetwork/ActionNetwork.node.js","dist/nodes/ActiveCampaign/ActiveCampaign.node.js","dist/nodes/ActiveCampaign/ActiveCampaignTrigger.node.js","dist/nodes/AcuityScheduling/AcuitySchedulingTrigger.node.js","dist/nodes/Adalo/Adalo.node.js","dist/nodes/Affinity/Affinity.node.js","dist/nodes/Affinity/AffinityTrigger.node.js","dist/nodes/AgileCrm/AgileCrm.node.js","dist/nodes/Airtable/Airtable.node.js","dist/nodes/Airtable/AirtableTrigger.node.js","dist/nodes/Amqp/Amqp.node.js","dist/nodes/Amqp/AmqpTrigger.node.js","dist/nodes/ApiTemplateIo/ApiTemplateIo.node.js","dist/nodes/Asana/Asana.node.js","dist/nodes/Asana/AsanaTrigger.node.js","dist/nodes/Automizy/Automizy.node.js","dist/nodes/Autopilot/Autopilot.node.js","dist/nodes/Autopilot/AutopilotTrigger.node.js","dist/nodes/Aws/AwsLambda.node.js","dist/nodes/Aws/AwsSns.node.js","dist/nodes/Aws/AwsSnsTrigger.node.js","dist/nodes/Aws/CertificateManager/AwsCertificateManager.node.js","dist/nodes/Aws/Comprehend/AwsComprehend.node.js","dist/nodes/Aws/DynamoDB/AwsDynamoDB.node.js","dist/nodes/Aws/ELB/AwsElb.node.js","dist/nodes/Aws/Rekognition/AwsRekognition.node.js","dist/nodes/Aws/S3/AwsS3.node.js","dist/nodes/Aws/SES/AwsSes.node.js","dist/nodes/Aws/SQS/AwsSqs.node.js","dist/nodes/Aws/Textract/AwsTextract.node.js","dist/nodes/Aws/Transcribe/AwsTranscribe.node.js","dist/nodes/BambooHr/BambooHr.node.js","dist/nodes/Bannerbear/Bannerbear.node.js","dist/nodes/Baserow/Baserow.node.js","dist/nodes/Beeminder/Beeminder.node.js","dist/nodes/Bitbucket/BitbucketTrigger.node.js","dist/nodes/Bitly/Bitly.node.js","dist/nodes/Bitwarden/Bitwarden.node.js","dist/nodes/Box/Box.node.js","dist/nodes/Box/BoxTrigger.node.js","dist/nodes/Brandfetch/Brandfetch.node.js","dist/nodes/Bubble/Bubble.node.js","dist/nodes/Cal/CalTrigger.node.js","dist/nodes/Calendly/CalendlyTrigger.node.js","dist/nodes/Chargebee/Chargebee.node.js","dist/nodes/Chargebee/ChargebeeTrigger.node.js","dist/nodes/CircleCi/CircleCi.node.js","dist/nodes/Cisco/Webex/CiscoWebex.node.js","dist/nodes/Citrix/ADC/CitrixAdc.node.js","dist/nodes/Cisco/Webex/CiscoWebexTrigger.node.js","dist/nodes/Cloudflare/Cloudflare.node.js","dist/nodes/Clearbit/Clearbit.node.js","dist/nodes/ClickUp/ClickUp.node.js","dist/nodes/ClickUp/ClickUpTrigger.node.js","dist/nodes/Clockify/Clockify.node.js","dist/nodes/Clockify/ClockifyTrigger.node.js","dist/nodes/Cockpit/Cockpit.node.js","dist/nodes/Coda/Coda.node.js","dist/nodes/Code/Code.node.js","dist/nodes/CoinGecko/CoinGecko.node.js","dist/nodes/CompareDatasets/CompareDatasets.node.js","dist/nodes/Compression/Compression.node.js","dist/nodes/Contentful/Contentful.node.js","dist/nodes/ConvertKit/ConvertKit.node.js","dist/nodes/ConvertKit/ConvertKitTrigger.node.js","dist/nodes/Copper/Copper.node.js","dist/nodes/Copper/CopperTrigger.node.js","dist/nodes/Cortex/Cortex.node.js","dist/nodes/CrateDb/CrateDb.node.js","dist/nodes/Cron/Cron.node.js","dist/nodes/CrowdDev/CrowdDev.node.js","dist/nodes/CrowdDev/CrowdDevTrigger.node.js","dist/nodes/Crypto/Crypto.node.js","dist/nodes/CustomerIo/CustomerIo.node.js","dist/nodes/CustomerIo/CustomerIoTrigger.node.js","dist/nodes/DateTime/DateTime.node.js","dist/nodes/DebugHelper/DebugHelper.node.js","dist/nodes/DeepL/DeepL.node.js","dist/nodes/Demio/Demio.node.js","dist/nodes/Dhl/Dhl.node.js","dist/nodes/Discord/Discord.node.js","dist/nodes/Discourse/Discourse.node.js","dist/nodes/Disqus/Disqus.node.js","dist/nodes/Drift/Drift.node.js","dist/nodes/Dropbox/Dropbox.node.js","dist/nodes/Dropcontact/Dropcontact.node.js","dist/nodes/EditImage/EditImage.node.js","dist/nodes/E2eTest/E2eTest.node.js","dist/nodes/Egoi/Egoi.node.js","dist/nodes/Elastic/Elasticsearch/Elasticsearch.node.js","dist/nodes/Elastic/ElasticSecurity/ElasticSecurity.node.js","dist/nodes/EmailReadImap/EmailReadImap.node.js","dist/nodes/EmailSend/EmailSend.node.js","dist/nodes/Emelia/Emelia.node.js","dist/nodes/Emelia/EmeliaTrigger.node.js","dist/nodes/ERPNext/ERPNext.node.js","dist/nodes/ErrorTrigger/ErrorTrigger.node.js","dist/nodes/Eventbrite/EventbriteTrigger.node.js","dist/nodes/ExecuteCommand/ExecuteCommand.node.js","dist/nodes/ExecuteWorkflow/ExecuteWorkflow.node.js","dist/nodes/ExecuteWorkflowTrigger/ExecuteWorkflowTrigger.node.js","dist/nodes/ExecutionData/ExecutionData.node.js","dist/nodes/Facebook/FacebookGraphApi.node.js","dist/nodes/Facebook/FacebookTrigger.node.js","dist/nodes/FacebookLeadAds/FacebookLeadAdsTrigger.node.js","dist/nodes/Figma/FigmaTrigger.node.js","dist/nodes/FileMaker/FileMaker.node.js","dist/nodes/Filter/Filter.node.js","dist/nodes/Flow/Flow.node.js","dist/nodes/Flow/FlowTrigger.node.js","dist/nodes/Form/FormTrigger.node.js","dist/nodes/FormIo/FormIoTrigger.node.js","dist/nodes/Formstack/FormstackTrigger.node.js","dist/nodes/Freshdesk/Freshdesk.node.js","dist/nodes/Freshservice/Freshservice.node.js","dist/nodes/FreshworksCrm/FreshworksCrm.node.js","dist/nodes/Ftp/Ftp.node.js","dist/nodes/Function/Function.node.js","dist/nodes/FunctionItem/FunctionItem.node.js","dist/nodes/GetResponse/GetResponse.node.js","dist/nodes/GetResponse/GetResponseTrigger.node.js","dist/nodes/Ghost/Ghost.node.js","dist/nodes/Git/Git.node.js","dist/nodes/Github/Github.node.js","dist/nodes/Github/GithubTrigger.node.js","dist/nodes/Gitlab/Gitlab.node.js","dist/nodes/Gitlab/GitlabTrigger.node.js","dist/nodes/Google/Ads/GoogleAds.node.js","dist/nodes/Google/Analytics/GoogleAnalytics.node.js","dist/nodes/Google/BigQuery/GoogleBigQuery.node.js","dist/nodes/Google/Books/GoogleBooks.node.js","dist/nodes/Google/Calendar/GoogleCalendar.node.js","dist/nodes/Google/Calendar/GoogleCalendarTrigger.node.js","dist/nodes/Google/Chat/GoogleChat.node.js","dist/nodes/Google/CloudNaturalLanguage/GoogleCloudNaturalLanguage.node.js","dist/nodes/Google/CloudStorage/GoogleCloudStorage.node.js","dist/nodes/Google/Contacts/GoogleContacts.node.js","dist/nodes/Google/Docs/GoogleDocs.node.js","dist/nodes/Google/Drive/GoogleDrive.node.js","dist/nodes/Google/Drive/GoogleDriveTrigger.node.js","dist/nodes/Google/Firebase/CloudFirestore/GoogleFirebaseCloudFirestore.node.js","dist/nodes/Google/Firebase/RealtimeDatabase/GoogleFirebaseRealtimeDatabase.node.js","dist/nodes/Google/Gmail/Gmail.node.js","dist/nodes/Google/Gmail/GmailTrigger.node.js","dist/nodes/Google/GSuiteAdmin/GSuiteAdmin.node.js","dist/nodes/Google/Perspective/GooglePerspective.node.js","dist/nodes/Google/Sheet/GoogleSheets.node.js","dist/nodes/Google/Sheet/GoogleSheetsTrigger.node.js","dist/nodes/Google/Slides/GoogleSlides.node.js","dist/nodes/Google/Task/GoogleTasks.node.js","dist/nodes/Google/Translate/GoogleTranslate.node.js","dist/nodes/Google/YouTube/YouTube.node.js","dist/nodes/Gotify/Gotify.node.js","dist/nodes/GoToWebinar/GoToWebinar.node.js","dist/nodes/Grafana/Grafana.node.js","dist/nodes/GraphQL/GraphQL.node.js","dist/nodes/Grist/Grist.node.js","dist/nodes/Gumroad/GumroadTrigger.node.js","dist/nodes/HackerNews/HackerNews.node.js","dist/nodes/HaloPSA/HaloPSA.node.js","dist/nodes/Harvest/Harvest.node.js","dist/nodes/HelpScout/HelpScout.node.js","dist/nodes/HelpScout/HelpScoutTrigger.node.js","dist/nodes/HighLevel/HighLevel.node.js","dist/nodes/HomeAssistant/HomeAssistant.node.js","dist/nodes/HtmlExtract/HtmlExtract.node.js","dist/nodes/Html/Html.node.js","dist/nodes/HttpRequest/HttpRequest.node.js","dist/nodes/Hubspot/Hubspot.node.js","dist/nodes/Hubspot/HubspotTrigger.node.js","dist/nodes/HumanticAI/HumanticAi.node.js","dist/nodes/Hunter/Hunter.node.js","dist/nodes/ICalendar/ICalendar.node.js","dist/nodes/If/If.node.js","dist/nodes/Intercom/Intercom.node.js","dist/nodes/Interval/Interval.node.js","dist/nodes/InvoiceNinja/InvoiceNinja.node.js","dist/nodes/InvoiceNinja/InvoiceNinjaTrigger.node.js","dist/nodes/ItemLists/ItemLists.node.js","dist/nodes/Iterable/Iterable.node.js","dist/nodes/Jenkins/Jenkins.node.js","dist/nodes/Jira/Jira.node.js","dist/nodes/Jira/JiraTrigger.node.js","dist/nodes/JotForm/JotFormTrigger.node.js","dist/nodes/Kafka/Kafka.node.js","dist/nodes/Kafka/KafkaTrigger.node.js","dist/nodes/Keap/Keap.node.js","dist/nodes/Keap/KeapTrigger.node.js","dist/nodes/Kitemaker/Kitemaker.node.js","dist/nodes/KoBoToolbox/KoBoToolbox.node.js","dist/nodes/KoBoToolbox/KoBoToolboxTrigger.node.js","dist/nodes/Ldap/Ldap.node.js","dist/nodes/Lemlist/Lemlist.node.js","dist/nodes/Lemlist/LemlistTrigger.node.js","dist/nodes/Line/Line.node.js","dist/nodes/Linear/Linear.node.js","dist/nodes/Linear/LinearTrigger.node.js","dist/nodes/LingvaNex/LingvaNex.node.js","dist/nodes/LinkedIn/LinkedIn.node.js","dist/nodes/LocalFileTrigger/LocalFileTrigger.node.js","dist/nodes/LoneScale/LoneScaleTrigger.node.js","dist/nodes/LoneScale/LoneScale.node.js","dist/nodes/Magento/Magento2.node.js","dist/nodes/Mailcheck/Mailcheck.node.js","dist/nodes/Mailchimp/Mailchimp.node.js","dist/nodes/Mailchimp/MailchimpTrigger.node.js","dist/nodes/MailerLite/MailerLite.node.js","dist/nodes/MailerLite/MailerLiteTrigger.node.js","dist/nodes/Mailgun/Mailgun.node.js","dist/nodes/Mailjet/Mailjet.node.js","dist/nodes/Mailjet/MailjetTrigger.node.js","dist/nodes/Mandrill/Mandrill.node.js","dist/nodes/ManualTrigger/ManualTrigger.node.js","dist/nodes/Markdown/Markdown.node.js","dist/nodes/Marketstack/Marketstack.node.js","dist/nodes/Matrix/Matrix.node.js","dist/nodes/Mattermost/Mattermost.node.js","dist/nodes/Mautic/Mautic.node.js","dist/nodes/Mautic/MauticTrigger.node.js","dist/nodes/Medium/Medium.node.js","dist/nodes/Merge/Merge.node.js","dist/nodes/MessageBird/MessageBird.node.js","dist/nodes/Metabase/Metabase.node.js","dist/nodes/Microsoft/Dynamics/MicrosoftDynamicsCrm.node.js","dist/nodes/Microsoft/Excel/MicrosoftExcel.node.js","dist/nodes/Microsoft/GraphSecurity/MicrosoftGraphSecurity.node.js","dist/nodes/Microsoft/OneDrive/MicrosoftOneDrive.node.js","dist/nodes/Microsoft/Outlook/MicrosoftOutlook.node.js","dist/nodes/Microsoft/Sql/MicrosoftSql.node.js","dist/nodes/Microsoft/Teams/MicrosoftTeams.node.js","dist/nodes/Microsoft/ToDo/MicrosoftToDo.node.js","dist/nodes/Mindee/Mindee.node.js","dist/nodes/Misp/Misp.node.js","dist/nodes/Mocean/Mocean.node.js","dist/nodes/MondayCom/MondayCom.node.js","dist/nodes/MongoDb/MongoDb.node.js","dist/nodes/MonicaCrm/MonicaCrm.node.js","dist/nodes/MoveBinaryData/MoveBinaryData.node.js","dist/nodes/MQTT/Mqtt.node.js","dist/nodes/MQTT/MqttTrigger.node.js","dist/nodes/Msg91/Msg91.node.js","dist/nodes/MySql/MySql.node.js","dist/nodes/N8n/N8n.node.js","dist/nodes/N8nTrainingCustomerDatastore/N8nTrainingCustomerDatastore.node.js","dist/nodes/N8nTrainingCustomerMessenger/N8nTrainingCustomerMessenger.node.js","dist/nodes/N8nTrigger/N8nTrigger.node.js","dist/nodes/Nasa/Nasa.node.js","dist/nodes/Netlify/Netlify.node.js","dist/nodes/Netlify/NetlifyTrigger.node.js","dist/nodes/NextCloud/NextCloud.node.js","dist/nodes/NocoDB/NocoDB.node.js","dist/nodes/Brevo/Brevo.node.js","dist/nodes/Brevo/BrevoTrigger.node.js","dist/nodes/StickyNote/StickyNote.node.js","dist/nodes/NoOp/NoOp.node.js","dist/nodes/Onfleet/Onfleet.node.js","dist/nodes/Onfleet/OnfleetTrigger.node.js","dist/nodes/Notion/Notion.node.js","dist/nodes/Notion/NotionTrigger.node.js","dist/nodes/Npm/Npm.node.js","dist/nodes/Odoo/Odoo.node.js","dist/nodes/OneSimpleApi/OneSimpleApi.node.js","dist/nodes/OpenAi/OpenAi.node.js","dist/nodes/OpenThesaurus/OpenThesaurus.node.js","dist/nodes/OpenWeatherMap/OpenWeatherMap.node.js","dist/nodes/Orbit/Orbit.node.js","dist/nodes/Oura/Oura.node.js","dist/nodes/Paddle/Paddle.node.js","dist/nodes/PagerDuty/PagerDuty.node.js","dist/nodes/PayPal/PayPal.node.js","dist/nodes/PayPal/PayPalTrigger.node.js","dist/nodes/Peekalink/Peekalink.node.js","dist/nodes/Phantombuster/Phantombuster.node.js","dist/nodes/PhilipsHue/PhilipsHue.node.js","dist/nodes/Pipedrive/Pipedrive.node.js","dist/nodes/Pipedrive/PipedriveTrigger.node.js","dist/nodes/Plivo/Plivo.node.js","dist/nodes/PostBin/PostBin.node.js","dist/nodes/Postgres/Postgres.node.js","dist/nodes/Postgres/PostgresTrigger.node.js","dist/nodes/PostHog/PostHog.node.js","dist/nodes/Postmark/PostmarkTrigger.node.js","dist/nodes/ProfitWell/ProfitWell.node.js","dist/nodes/Pushbullet/Pushbullet.node.js","dist/nodes/Pushcut/Pushcut.node.js","dist/nodes/Pushcut/PushcutTrigger.node.js","dist/nodes/Pushover/Pushover.node.js","dist/nodes/QuestDb/QuestDb.node.js","dist/nodes/QuickBase/QuickBase.node.js","dist/nodes/QuickBooks/QuickBooks.node.js","dist/nodes/QuickChart/QuickChart.node.js","dist/nodes/RabbitMQ/RabbitMQ.node.js","dist/nodes/RabbitMQ/RabbitMQTrigger.node.js","dist/nodes/Raindrop/Raindrop.node.js","dist/nodes/ReadBinaryFile/ReadBinaryFile.node.js","dist/nodes/ReadBinaryFiles/ReadBinaryFiles.node.js","dist/nodes/ReadPdf/ReadPDF.node.js","dist/nodes/Reddit/Reddit.node.js","dist/nodes/Redis/Redis.node.js","dist/nodes/Redis/RedisTrigger.node.js","dist/nodes/RenameKeys/RenameKeys.node.js","dist/nodes/RespondToWebhook/RespondToWebhook.node.js","dist/nodes/Rocketchat/Rocketchat.node.js","dist/nodes/RssFeedRead/RssFeedRead.node.js","dist/nodes/RssFeedRead/RssFeedReadTrigger.node.js","dist/nodes/Rundeck/Rundeck.node.js","dist/nodes/S3/S3.node.js","dist/nodes/Salesforce/Salesforce.node.js","dist/nodes/Salesmate/Salesmate.node.js","dist/nodes/Schedule/ScheduleTrigger.node.js","dist/nodes/SeaTable/SeaTable.node.js","dist/nodes/SeaTable/SeaTableTrigger.node.js","dist/nodes/SecurityScorecard/SecurityScorecard.node.js","dist/nodes/Segment/Segment.node.js","dist/nodes/SendGrid/SendGrid.node.js","dist/nodes/Sendy/Sendy.node.js","dist/nodes/SentryIo/SentryIo.node.js","dist/nodes/ServiceNow/ServiceNow.node.js","dist/nodes/Set/Set.node.js","dist/nodes/Shopify/Shopify.node.js","dist/nodes/Shopify/ShopifyTrigger.node.js","dist/nodes/Signl4/Signl4.node.js","dist/nodes/Slack/Slack.node.js","dist/nodes/Sms77/Sms77.node.js","dist/nodes/Snowflake/Snowflake.node.js","dist/nodes/SplitInBatches/SplitInBatches.node.js","dist/nodes/Splunk/Splunk.node.js","dist/nodes/Spontit/Spontit.node.js","dist/nodes/Spotify/Spotify.node.js","dist/nodes/SpreadsheetFile/SpreadsheetFile.node.js","dist/nodes/SseTrigger/SseTrigger.node.js","dist/nodes/Ssh/Ssh.node.js","dist/nodes/Stackby/Stackby.node.js","dist/nodes/Start/Start.node.js","dist/nodes/StopAndError/StopAndError.node.js","dist/nodes/Storyblok/Storyblok.node.js","dist/nodes/Strapi/Strapi.node.js","dist/nodes/Strava/Strava.node.js","dist/nodes/Strava/StravaTrigger.node.js","dist/nodes/Stripe/Stripe.node.js","dist/nodes/Stripe/StripeTrigger.node.js","dist/nodes/Supabase/Supabase.node.js","dist/nodes/SurveyMonkey/SurveyMonkeyTrigger.node.js","dist/nodes/Switch/Switch.node.js","dist/nodes/SyncroMSP/SyncroMsp.node.js","dist/nodes/Taiga/Taiga.node.js","dist/nodes/Taiga/TaigaTrigger.node.js","dist/nodes/Tapfiliate/Tapfiliate.node.js","dist/nodes/Telegram/Telegram.node.js","dist/nodes/Telegram/TelegramTrigger.node.js","dist/nodes/TheHiveProject/TheHiveProject.node.js","dist/nodes/TheHiveProject/TheHiveProjectTrigger.node.js","dist/nodes/TheHive/TheHive.node.js","dist/nodes/TheHive/TheHiveTrigger.node.js","dist/nodes/TimescaleDb/TimescaleDb.node.js","dist/nodes/Todoist/Todoist.node.js","dist/nodes/Toggl/TogglTrigger.node.js","dist/nodes/Totp/Totp.node.js","dist/nodes/TravisCi/TravisCi.node.js","dist/nodes/Trello/Trello.node.js","dist/nodes/Trello/TrelloTrigger.node.js","dist/nodes/Twake/Twake.node.js","dist/nodes/Twilio/Twilio.node.js","dist/nodes/Twist/Twist.node.js","dist/nodes/Twitter/Twitter.node.js","dist/nodes/Typeform/TypeformTrigger.node.js","dist/nodes/UnleashedSoftware/UnleashedSoftware.node.js","dist/nodes/Uplead/Uplead.node.js","dist/nodes/UProc/UProc.node.js","dist/nodes/UptimeRobot/UptimeRobot.node.js","dist/nodes/UrlScanIo/UrlScanIo.node.js","dist/nodes/Vero/Vero.node.js","dist/nodes/Venafi/ProtectCloud/VenafiTlsProtectCloud.node.js","dist/nodes/Venafi/ProtectCloud/VenafiTlsProtectCloudTrigger.node.js","dist/nodes/Venafi/Datacenter/VenafiTlsProtectDatacenter.node.js","dist/nodes/Vonage/Vonage.node.js","dist/nodes/Wait/Wait.node.js","dist/nodes/Webflow/Webflow.node.js","dist/nodes/Webflow/WebflowTrigger.node.js","dist/nodes/Webhook/Webhook.node.js","dist/nodes/Wekan/Wekan.node.js","dist/nodes/WhatsApp/WhatsApp.node.js","dist/nodes/Wise/Wise.node.js","dist/nodes/Wise/WiseTrigger.node.js","dist/nodes/WooCommerce/WooCommerce.node.js","dist/nodes/WooCommerce/WooCommerceTrigger.node.js","dist/nodes/Wordpress/Wordpress.node.js","dist/nodes/Workable/WorkableTrigger.node.js","dist/nodes/WorkflowTrigger/WorkflowTrigger.node.js","dist/nodes/WriteBinaryFile/WriteBinaryFile.node.js","dist/nodes/Wufoo/WufooTrigger.node.js","dist/nodes/Xero/Xero.node.js","dist/nodes/Xml/Xml.node.js","dist/nodes/Yourls/Yourls.node.js","dist/nodes/Zammad/Zammad.node.js","dist/nodes/Zendesk/Zendesk.node.js","dist/nodes/Zendesk/ZendeskTrigger.node.js","dist/nodes/Zoho/ZohoCrm.node.js","dist/nodes/Zoom/Zoom.node.js","dist/nodes/Zulip/Zulip.node.js"]},"devDependencies":{"@types/amqplib":"^0.10.1","@types/aws4":"^1.5.1","@types/basic-auth":"^1.1.3","@types/cheerio":"^0.22.15","@types/cron":"~1.7.1","@types/eventsource":"^1.1.2","@types/express":"^4.17.6","@types/gm":"^1.25.0","@types/imap-simple":"^4.2.0","@types/js-nacl":"^1.3.0","@types/jsonwebtoken":"^9.0.1","@types/lodash":"^4.14.195","@types/lossless-json":"^1.0.0","@types/mailparser":"^2.7.3","@types/mime-types":"^2.1.0","@types/mssql":"^6.0.2","@types/node-ssh":"^7.0.1","@types/nodemailer":"^6.4.0","@types/promise-ftp":"^1.3.4","@types/redis":"^2.8.11","@types/request-promise-native":"~1.0.15","@types/rfc2047":"^2.0.1","@types/showdown":"^1.9.4","@types/snowflake-sdk":"^1.6.12","@types/ssh2-sftp-client":"^5.1.0","@types/tmp":"^0.2.0","@types/uuid":"^8.3.2","@types/xml2js":"^0.4.11","eslint-plugin-n8n-nodes-base":"^1.16.0","gulp":"^4.0.0","n8n-core":"1.14.1"},"dependencies":{"@kafkajs/confluent-schema-registry":"1.0.6","@n8n/vm2":"^3.9.20","amqplib":"^0.10.3","aws4":"^1.8.0","basic-auth":"^2.0.1","change-case":"^4.1.1","cheerio":"1.0.0-rc.6","chokidar":"3.5.2","cron":"~1.7.2","csv-parse":"^5.5.0","currency-codes":"^2.1.0","eventsource":"^2.0.2","fast-glob":"^3.2.5","fflate":"^0.7.0","get-system-fonts":"^2.0.2","gm":"^1.25.0","iconv-lite":"^0.6.2","ics":"^2.27.0","imap-simple":"^4.3.0","isbot":"^3.6.13","iso-639-1":"^2.1.3","js-nacl":"^1.4.0","jsonwebtoken":"^9.0.0","kafkajs":"^1.14.0","ldapts":"^4.2.6","lodash":"^4.17.21","lossless-json":"^1.0.4","luxon":"^3.3.0","mailparser":"^3.2.0","minifaker":"^1.34.1","moment":"~2.29.2","moment-timezone":"^0.5.28","mongodb":"^4.17.1","mqtt":"^5.0.2","mssql":"^8.1.2","mysql2":"~2.3.0","nanoid":"^3.3.6","node-html-markdown":"^1.1.3","node-ssh":"^12.0.0","nodemailer":"^6.7.1","otpauth":"^9.1.1","pdfjs-dist":"^2.16.105","pg":"^8.3.0","pg-promise":"^10.5.8","pretty-bytes":"^5.6.0","promise-ftp":"^1.3.5","pyodide":"^0.23.4","redis":"^3.1.1","rfc2047":"^4.0.1","rhea":"^1.0.11","rss-parser":"^3.7.0","semver":"^7.5.4","showdown":"^2.0.3","simple-git":"^3.17.0","snowflake-sdk":"^1.8.0","ssh2-sftp-client":"^7.0.0","tmp-promise":"^3.0.2","typedi":"^0.10.0","uuid":"^8.3.2","xlsx":"https://cdn.sheetjs.com/xlsx-0.19.3/xlsx-0.19.3.tgz","xml2js":"^0.5.0","n8n-workflow":"1.14.1"},"scripts":{"clean":"rimraf dist .turbo","dev":"pnpm watch","typecheck":"tsc","build":"tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json && gulp build:icons && gulp build:translations && pnpm build:metadata","build:translations":"gulp build:translations","build:metadata":"pnpm n8n-generate-known && pnpm n8n-generate-ui-types","format":"prettier --write . --ignore-path ../../.prettierignore","lint":"eslint . --quiet && node ./scripts/validate-load-options-methods.js","lintfix":"eslint . --fix","watch":"tsc-watch -p tsconfig.build.json --onCompilationComplete \"tsc-alias -p tsconfig.build.json\" --onSuccess \"pnpm n8n-generate-ui-types\"","test":"jest"}}


node_type: n8n-nodes-base.Adalo
name: Adalo
package_name: n8n-nodes-base
display_name: Adalo
description: Consume Adalo API
code_hash: 0fbcb0b60141307fdc3394154af1b2c3133fa6181aac336249c6c211fd24846f
source_location: node_modules/n8n-nodes-base/dist/nodes/Adalo/Adalo.node.js
extracted_at: 2025-06-07 19:36:28
updated_at: 2025-06-07 19:36:28
source_code:
  "use strict";
  Object.defineProperty(exports, "__esModule", { value: true });
  exports.Adalo = void 0;
  const CollectionDescription_1 = require("./CollectionDescription");
  class Adalo {
      constructor() {
          this.description = {
              displayName: 'Adalo',
              name: 'adalo',
              icon: 'file:adalo.svg',
              group: ['transform'],
              version: 1,
              subtitle: '={{$parameter["operation"] + ": " + $parameter["collectionId"]}}',
              description: 'Consume Adalo API',
              defaults: {
                  name: 'Adalo',
              },
              inputs: ['main'],
              outputs: ['main'],
              credentials: [
                  {
                      name: 'adaloApi',
                      required: true,
                  },
              ],
              requestDefaults: {
                  baseURL: '=https://api.adalo.com/v0/apps/{{$credentials.appId}}',
              },
              requestOperations: {
                  pagination: {
                      type: 'offset',
                      properties: {
                          limitParameter: 'limit',
                          offsetParameter: 'offset',
                          pageSize: 100,
                          type: 'query',
                      },
                  },
              },
              properties: [
                  {
                      displayName: 'Resource',
                      name: 'resource',
                      type: 'options',
                      noDataExpression: true,
                      default: 'collection',
                      options: [
                          {
                              name: 'Collection',
                              value: 'collection',
                          },
                      ],
                  },
                  {
                      displayName: 'Operation',
                      name: 'operation',
                      type: 'options',
                      noDataExpression: true,
                      options: [
                          {
                              name: 'Create',
                              value: 'create',
                              description: 'Create a row',
                              routing: {
                                  send: {
                                      preSend: [this.presendCreateUpdate],
                                  },
                                  request: {
                                      method: 'POST',
                                      url: '=/collections/{{$parameter["collectionId"]}}',
                                  },
                              },
                              action: 'Create a row',
                          },
                          {
                              name: 'Delete',
                              value: 'delete',
                              description: 'Delete a row',
                              routing: {
                                  request: {
                                      method: 'DELETE',
                                      url: '=/collections/{{$parameter["collectionId"]}}/{{$parameter["rowId"]}}',
                                  },
                                  output: {
                                      postReceive: [
                                          {
                                              type: 'set',
                                              properties: {
                                                  value: '={{ { "success": true } }}',
                                              },
                                          },
                                      ],
                                  },
                              },
                              action: 'Delete a row',
                          },
                          {
                              name: 'Get',
                              value: 'get',
                              description: 'Retrieve a row',
                              routing: {
                                  request: {
                                      method: 'GET',
                                      url: '=/collections/{{$parameter["collectionId"]}}/{{$parameter["rowId"]}}',
                                  },
                              },
                              action: 'Retrieve a row',
                          },
                          {
                              name: 'Get Many',
                              value: 'getAll',
                              description: 'Retrieve many rows',
                              routing: {
                                  request: {
                                      method: 'GET',
                                      url: '=/collections/{{$parameter["collectionId"]}}',
                                      qs: {
                                          limit: '={{$parameter["limit"]}}',
                                      },
                                  },
                                  send: {
                                      paginate: '={{$parameter["returnAll"]}}',
                                  },
                                  output: {
                                      postReceive: [
                                          {
                                              type: 'rootProperty',
                                              properties: {
                                                  property: 'records',
                                              },
                                          },
                                      ],
                                  },
                              },
                              action: 'Retrieve all rows',
                          },
                          {
                              name: 'Update',
                              value: 'update',
                              description: 'Update a row',
                              routing: {
                                  send: {
                                      preSend: [this.presendCreateUpdate],
                                  },
                                  request: {
                                      method: 'PUT',
                                      url: '=/collections/{{$parameter["collectionId"]}}/{{$parameter["rowId"]}}',
                                  },
                              },
                              action: 'Update a row',
                          },
                      ],
                      default: 'getAll',
                  },
                  {
                      displayName: 'Collection ID',
                      name: 'collectionId',
                      type: 'string',
                      required: true,
                      default: '',
                      description: 'Open your Adalo application and click on the three buttons beside the collection name, then select API Documentation',
                      hint: "You can find information about app's collections on https://app.adalo.com/apps/<strong>your-app-id</strong>/api-docs",
                      displayOptions: {
                          show: {
                              resource: ['collection'],
                          },
                      },
                  },
                  ...CollectionDescription_1.collectionFields,
              ],
          };
      }
      async presendCreateUpdate(requestOptions) {
          const dataToSend = this.getNodeParameter('dataToSend', 0);
          requestOptions.body = {};
          if (dataToSend === 'autoMapInputData') {
              const inputData = this.getInputData();
              const rawInputsToIgnore = this.getNodeParameter('inputsToIgnore');
              const inputKeysToIgnore = rawInputsToIgnore.split(',').map((c) => c.trim());
              const inputKeys = Object.keys(inputData.json).filter((key) => !inputKeysToIgnore.includes(key));
              for (const key of inputKeys) {
                  requestOptions.body[key] = inputData.json[key];
              }
          }
          else {
              const fields = this.getNodeParameter('fieldsUi.fieldValues');
              for (const field of fields) {
                  requestOptions.body[field.fieldId] = field.fieldValue;
              }
          }
          return requestOptions;
      }
  }
  exports.Adalo = Adalo;
  //# sourceMappingURL=Adalo.node.js.map

package_info:
  {"name":"n8n-nodes-base","version":"1.14.1","description":"Base nodes of n8n","license":"SEE LICENSE IN LICENSE.md","homepage":"https://n8n.io","author":{"name":"Jan Oberhauser","email":"jan@n8n.io"},"main":"index.js","repository":{"type":"git","url":"git+https://github.com/n8n-io/n8n.git"},"files":["dist"],"n8n":{"credentials":["dist/credentials/ActionNetworkApi.credentials.js","dist/credentials/ActiveCampaignApi.credentials.js","dist/credentials/AcuitySchedulingApi.credentials.js","dist/credentials/AcuitySchedulingOAuth2Api.credentials.js","dist/credentials/AdaloApi.credentials.js","dist/credentials/AffinityApi.credentials.js","dist/credentials/AgileCrmApi.credentials.js","dist/credentials/AirtableApi.credentials.js","dist/credentials/AirtableOAuth2Api.credentials.js","dist/credentials/AirtableTokenApi.credentials.js","dist/credentials/AlienVaultApi.credentials.js","dist/credentials/Amqp.credentials.js","dist/credentials/ApiTemplateIoApi.credentials.js","dist/credentials/AsanaApi.credentials.js","dist/credentials/AsanaOAuth2Api.credentials.js","dist/credentials/Auth0ManagementApi.credentials.js","dist/credentials/AutomizyApi.credentials.js","dist/credentials/AutopilotApi.credentials.js","dist/credentials/Aws.credentials.js","dist/credentials/BambooHrApi.credentials.js","dist/credentials/BannerbearApi.credentials.js","dist/credentials/BaserowApi.credentials.js","dist/credentials/BeeminderApi.credentials.js","dist/credentials/BitbucketApi.credentials.js","dist/credentials/BitlyApi.credentials.js","dist/credentials/BitlyOAuth2Api.credentials.js","dist/credentials/BitwardenApi.credentials.js","dist/credentials/BoxOAuth2Api.credentials.js","dist/credentials/BrandfetchApi.credentials.js","dist/credentials/BubbleApi.credentials.js","dist/credentials/CalApi.credentials.js","dist/credentials/CalendlyApi.credentials.js","dist/credentials/CarbonBlackApi.credentials.js","dist/credentials/ChargebeeApi.credentials.js","dist/credentials/CircleCiApi.credentials.js","dist/credentials/CiscoMerakiApi.credentials.js","dist/credentials/CiscoSecureEndpointApi.credentials.js","dist/credentials/CiscoWebexOAuth2Api.credentials.js","dist/credentials/CiscoUmbrellaApi.credentials.js","dist/credentials/CitrixAdcApi.credentials.js","dist/credentials/CloudflareApi.credentials.js","dist/credentials/ClearbitApi.credentials.js","dist/credentials/ClickUpApi.credentials.js","dist/credentials/ClickUpOAuth2Api.credentials.js","dist/credentials/ClockifyApi.credentials.js","dist/credentials/CockpitApi.credentials.js","dist/credentials/CodaApi.credentials.js","dist/credentials/ContentfulApi.credentials.js","dist/credentials/ConvertKitApi.credentials.js","dist/credentials/CopperApi.credentials.js","dist/credentials/CortexApi.credentials.js","dist/credentials/CrateDb.credentials.js","dist/credentials/CrowdStrikeOAuth2Api.credentials.js","dist/credentials/CrowdDevApi.credentials.js","dist/credentials/CustomerIoApi.credentials.js","dist/credentials/DeepLApi.credentials.js","dist/credentials/DemioApi.credentials.js","dist/credentials/DhlApi.credentials.js","dist/credentials/DiscourseApi.credentials.js","dist/credentials/DisqusApi.credentials.js","dist/credentials/DriftApi.credentials.js","dist/credentials/DriftOAuth2Api.credentials.js","dist/credentials/DropboxApi.credentials.js","dist/credentials/DropboxOAuth2Api.credentials.js","dist/credentials/DropcontactApi.credentials.js","dist/credentials/EgoiApi.credentials.js","dist/credentials/ElasticsearchApi.credentials.js","dist/credentials/ElasticSecurityApi.credentials.js","dist/credentials/EmeliaApi.credentials.js","dist/credentials/ERPNextApi.credentials.js","dist/credentials/EventbriteApi.credentials.js","dist/credentials/EventbriteOAuth2Api.credentials.js","dist/credentials/F5BigIpApi.credentials.js","dist/credentials/FacebookGraphApi.credentials.js","dist/credentials/FacebookGraphAppApi.credentials.js","dist/credentials/FacebookLeadAdsOAuth2Api.credentials.js","dist/credentials/FigmaApi.credentials.js","dist/credentials/FileMaker.credentials.js","dist/credentials/FlowApi.credentials.js","dist/credentials/FormIoApi.credentials.js","dist/credentials/FormstackApi.credentials.js","dist/credentials/FormstackOAuth2Api.credentials.js","dist/credentials/FortiGateApi.credentials.js","dist/credentials/FreshdeskApi.credentials.js","dist/credentials/FreshserviceApi.credentials.js","dist/credentials/FreshworksCrmApi.credentials.js","dist/credentials/Ftp.credentials.js","dist/credentials/GetResponseApi.credentials.js","dist/credentials/GetResponseOAuth2Api.credentials.js","dist/credentials/GhostAdminApi.credentials.js","dist/credentials/GhostContentApi.credentials.js","dist/credentials/GithubApi.credentials.js","dist/credentials/GithubOAuth2Api.credentials.js","dist/credentials/GitlabApi.credentials.js","dist/credentials/GitlabOAuth2Api.credentials.js","dist/credentials/GitPassword.credentials.js","dist/credentials/GmailOAuth2Api.credentials.js","dist/credentials/GoogleAdsOAuth2Api.credentials.js","dist/credentials/GoogleAnalyticsOAuth2Api.credentials.js","dist/credentials/GoogleApi.credentials.js","dist/credentials/GoogleBigQueryOAuth2Api.credentials.js","dist/credentials/GoogleBooksOAuth2Api.credentials.js","dist/credentials/GoogleCalendarOAuth2Api.credentials.js","dist/credentials/GoogleCloudNaturalLanguageOAuth2Api.credentials.js","dist/credentials/GoogleCloudStorageOAuth2Api.credentials.js","dist/credentials/GoogleContactsOAuth2Api.credentials.js","dist/credentials/GoogleDocsOAuth2Api.credentials.js","dist/credentials/GoogleDriveOAuth2Api.credentials.js","dist/credentials/GoogleFirebaseCloudFirestoreOAuth2Api.credentials.js","dist/credentials/GoogleFirebaseRealtimeDatabaseOAuth2Api.credentials.js","dist/credentials/GoogleOAuth2Api.credentials.js","dist/credentials/GooglePerspectiveOAuth2Api.credentials.js","dist/credentials/GoogleSheetsOAuth2Api.credentials.js","dist/credentials/GoogleSheetsTriggerOAuth2Api.credentials.js","dist/credentials/GoogleSlidesOAuth2Api.credentials.js","dist/credentials/GoogleTasksOAuth2Api.credentials.js","dist/credentials/GoogleTranslateOAuth2Api.credentials.js","dist/credentials/GotifyApi.credentials.js","dist/credentials/GoToWebinarOAuth2Api.credentials.js","dist/credentials/GristApi.credentials.js","dist/credentials/GrafanaApi.credentials.js","dist/credentials/GSuiteAdminOAuth2Api.credentials.js","dist/credentials/GumroadApi.credentials.js","dist/credentials/HaloPSAApi.credentials.js","dist/credentials/HarvestApi.credentials.js","dist/credentials/HarvestOAuth2Api.credentials.js","dist/credentials/HelpScoutOAuth2Api.credentials.js","dist/credentials/HighLevelApi.credentials.js","dist/credentials/HomeAssistantApi.credentials.js","dist/credentials/HttpBasicAuth.credentials.js","dist/credentials/HttpDigestAuth.credentials.js","dist/credentials/HttpHeaderAuth.credentials.js","dist/credentials/HttpCustomAuth.credentials.js","dist/credentials/HttpQueryAuth.credentials.js","dist/credentials/HubspotApi.credentials.js","dist/credentials/HubspotAppToken.credentials.js","dist/credentials/HubspotDeveloperApi.credentials.js","dist/credentials/HubspotOAuth2Api.credentials.js","dist/credentials/HumanticAiApi.credentials.js","dist/credentials/HunterApi.credentials.js","dist/credentials/HybridAnalysisApi.credentials.js","dist/credentials/Imap.credentials.js","dist/credentials/ImpervaWafApi.credentials.js","dist/credentials/IntercomApi.credentials.js","dist/credentials/InvoiceNinjaApi.credentials.js","dist/credentials/IterableApi.credentials.js","dist/credentials/JenkinsApi.credentials.js","dist/credentials/JiraSoftwareCloudApi.credentials.js","dist/credentials/JiraSoftwareServerApi.credentials.js","dist/credentials/JotFormApi.credentials.js","dist/credentials/Kafka.credentials.js","dist/credentials/KeapOAuth2Api.credentials.js","dist/credentials/KibanaApi.credentials.js","dist/credentials/KitemakerApi.credentials.js","dist/credentials/KoBoToolboxApi.credentials.js","dist/credentials/Ldap.credentials.js","dist/credentials/LemlistApi.credentials.js","dist/credentials/LinearApi.credentials.js","dist/credentials/LinearOAuth2Api.credentials.js","dist/credentials/LineNotifyOAuth2Api.credentials.js","dist/credentials/LingvaNexApi.credentials.js","dist/credentials/LinkedInOAuth2Api.credentials.js","dist/credentials/LoneScaleApi.credentials.js","dist/credentials/Magento2Api.credentials.js","dist/credentials/MailcheckApi.credentials.js","dist/credentials/MailchimpApi.credentials.js","dist/credentials/MailchimpOAuth2Api.credentials.js","dist/credentials/MailerLiteApi.credentials.js","dist/credentials/MailgunApi.credentials.js","dist/credentials/MailjetEmailApi.credentials.js","dist/credentials/MailjetSmsApi.credentials.js","dist/credentials/MandrillApi.credentials.js","dist/credentials/MarketstackApi.credentials.js","dist/credentials/MatrixApi.credentials.js","dist/credentials/MattermostApi.credentials.js","dist/credentials/MauticApi.credentials.js","dist/credentials/MauticOAuth2Api.credentials.js","dist/credentials/MediumApi.credentials.js","dist/credentials/MediumOAuth2Api.credentials.js","dist/credentials/MetabaseApi.credentials.js","dist/credentials/MessageBirdApi.credentials.js","dist/credentials/MetabaseApi.credentials.js","dist/credentials/MicrosoftDynamicsOAuth2Api.credentials.js","dist/credentials/MicrosoftEntraOAuth2Api.credentials.js","dist/credentials/MicrosoftExcelOAuth2Api.credentials.js","dist/credentials/MicrosoftGraphSecurityOAuth2Api.credentials.js","dist/credentials/MicrosoftOAuth2Api.credentials.js","dist/credentials/MicrosoftOneDriveOAuth2Api.credentials.js","dist/credentials/MicrosoftOutlookOAuth2Api.credentials.js","dist/credentials/MicrosoftSql.credentials.js","dist/credentials/MicrosoftTeamsOAuth2Api.credentials.js","dist/credentials/MicrosoftToDoOAuth2Api.credentials.js","dist/credentials/MindeeInvoiceApi.credentials.js","dist/credentials/MindeeReceiptApi.credentials.js","dist/credentials/MispApi.credentials.js","dist/credentials/MistApi.credentials.js","dist/credentials/MoceanApi.credentials.js","dist/credentials/MondayComApi.credentials.js","dist/credentials/MondayComOAuth2Api.credentials.js","dist/credentials/MongoDb.credentials.js","dist/credentials/MonicaCrmApi.credentials.js","dist/credentials/Mqtt.credentials.js","dist/credentials/Msg91Api.credentials.js","dist/credentials/MySql.credentials.js","dist/credentials/N8nApi.credentials.js","dist/credentials/NasaApi.credentials.js","dist/credentials/NetlifyApi.credentials.js","dist/credentials/NextCloudApi.credentials.js","dist/credentials/NextCloudOAuth2Api.credentials.js","dist/credentials/NocoDb.credentials.js","dist/credentials/NocoDbApiToken.credentials.js","dist/credentials/NotionApi.credentials.js","dist/credentials/NotionOAuth2Api.credentials.js","dist/credentials/NpmApi.credentials.js","dist/credentials/OAuth1Api.credentials.js","dist/credentials/OAuth2Api.credentials.js","dist/credentials/OdooApi.credentials.js","dist/credentials/OktaApi.credentials.js","dist/credentials/OneSimpleApi.credentials.js","dist/credentials/OnfleetApi.credentials.js","dist/credentials/OpenAiApi.credentials.js","dist/credentials/OpenCTIApi.credentials.js","dist/credentials/OpenWeatherMapApi.credentials.js","dist/credentials/OrbitApi.credentials.js","dist/credentials/OuraApi.credentials.js","dist/credentials/PaddleApi.credentials.js","dist/credentials/PagerDutyApi.credentials.js","dist/credentials/PagerDutyOAuth2Api.credentials.js","dist/credentials/PayPalApi.credentials.js","dist/credentials/PeekalinkApi.credentials.js","dist/credentials/PhantombusterApi.credentials.js","dist/credentials/PhilipsHueOAuth2Api.credentials.js","dist/credentials/PipedriveApi.credentials.js","dist/credentials/PipedriveOAuth2Api.credentials.js","dist/credentials/PlivoApi.credentials.js","dist/credentials/Postgres.credentials.js","dist/credentials/PostHogApi.credentials.js","dist/credentials/PostmarkApi.credentials.js","dist/credentials/ProfitWellApi.credentials.js","dist/credentials/PushbulletOAuth2Api.credentials.js","dist/credentials/PushcutApi.credentials.js","dist/credentials/PushoverApi.credentials.js","dist/credentials/QRadarApi.credentials.js","dist/credentials/QualysApi.credentials.js","dist/credentials/QuestDb.credentials.js","dist/credentials/QuickBaseApi.credentials.js","dist/credentials/QuickBooksOAuth2Api.credentials.js","dist/credentials/RabbitMQ.credentials.js","dist/credentials/RaindropOAuth2Api.credentials.js","dist/credentials/RecordedFutureApi.credentials.js","dist/credentials/RedditOAuth2Api.credentials.js","dist/credentials/Redis.credentials.js","dist/credentials/RocketchatApi.credentials.js","dist/credentials/RundeckApi.credentials.js","dist/credentials/S3.credentials.js","dist/credentials/SalesforceJwtApi.credentials.js","dist/credentials/SalesforceOAuth2Api.credentials.js","dist/credentials/SalesmateApi.credentials.js","dist/credentials/SeaTableApi.credentials.js","dist/credentials/SecurityScorecardApi.credentials.js","dist/credentials/SegmentApi.credentials.js","dist/credentials/SekoiaApi.credentials.js","dist/credentials/SendGridApi.credentials.js","dist/credentials/BrevoApi.credentials.js","dist/credentials/SendyApi.credentials.js","dist/credentials/SentryIoApi.credentials.js","dist/credentials/SentryIoOAuth2Api.credentials.js","dist/credentials/SentryIoServerApi.credentials.js","dist/credentials/ServiceNowOAuth2Api.credentials.js","dist/credentials/ServiceNowBasicApi.credentials.js","dist/credentials/Sftp.credentials.js","dist/credentials/ShopifyApi.credentials.js","dist/credentials/ShopifyAccessTokenApi.credentials.js","dist/credentials/ShopifyOAuth2Api.credentials.js","dist/credentials/Signl4Api.credentials.js","dist/credentials/SlackApi.credentials.js","dist/credentials/SlackOAuth2Api.credentials.js","dist/credentials/Sms77Api.credentials.js","dist/credentials/Smtp.credentials.js","dist/credentials/Snowflake.credentials.js","dist/credentials/SplunkApi.credentials.js","dist/credentials/SpontitApi.credentials.js","dist/credentials/SpotifyOAuth2Api.credentials.js","dist/credentials/ShufflerApi.credentials.js","dist/credentials/SshPassword.credentials.js","dist/credentials/SshPrivateKey.credentials.js","dist/credentials/StackbyApi.credentials.js","dist/credentials/StoryblokContentApi.credentials.js","dist/credentials/StoryblokManagementApi.credentials.js","dist/credentials/StrapiApi.credentials.js","dist/credentials/StrapiTokenApi.credentials.js","dist/credentials/StravaOAuth2Api.credentials.js","dist/credentials/StripeApi.credentials.js","dist/credentials/SupabaseApi.credentials.js","dist/credentials/SurveyMonkeyApi.credentials.js","dist/credentials/SurveyMonkeyOAuth2Api.credentials.js","dist/credentials/SyncroMspApi.credentials.js","dist/credentials/TaigaApi.credentials.js","dist/credentials/TapfiliateApi.credentials.js","dist/credentials/TelegramApi.credentials.js","dist/credentials/TheHiveProjectApi.credentials.js","dist/credentials/TheHiveApi.credentials.js","dist/credentials/TimescaleDb.credentials.js","dist/credentials/TodoistApi.credentials.js","dist/credentials/TodoistOAuth2Api.credentials.js","dist/credentials/TogglApi.credentials.js","dist/credentials/TotpApi.credentials.js","dist/credentials/TravisCiApi.credentials.js","dist/credentials/TrellixEpoApi.credentials.js","dist/credentials/TrelloApi.credentials.js","dist/credentials/TwakeCloudApi.credentials.js","dist/credentials/TwakeServerApi.credentials.js","dist/credentials/TwilioApi.credentials.js","dist/credentials/TwistOAuth2Api.credentials.js","dist/credentials/TwitterOAuth1Api.credentials.js","dist/credentials/TwitterOAuth2Api.credentials.js","dist/credentials/TypeformApi.credentials.js","dist/credentials/TypeformOAuth2Api.credentials.js","dist/credentials/UnleashedSoftwareApi.credentials.js","dist/credentials/UpleadApi.credentials.js","dist/credentials/UProcApi.credentials.js","dist/credentials/UptimeRobotApi.credentials.js","dist/credentials/UrlScanIoApi.credentials.js","dist/credentials/VeroApi.credentials.js","dist/credentials/VirusTotalApi.credentials.js","dist/credentials/VonageApi.credentials.js","dist/credentials/VenafiTlsProtectCloudApi.credentials.js","dist/credentials/VenafiTlsProtectDatacenterApi.credentials.js","dist/credentials/WebflowApi.credentials.js","dist/credentials/WebflowOAuth2Api.credentials.js","dist/credentials/WekanApi.credentials.js","dist/credentials/WhatsAppApi.credentials.js","dist/credentials/WiseApi.credentials.js","dist/credentials/WooCommerceApi.credentials.js","dist/credentials/WordpressApi.credentials.js","dist/credentials/WorkableApi.credentials.js","dist/credentials/WufooApi.credentials.js","dist/credentials/XeroOAuth2Api.credentials.js","dist/credentials/YourlsApi.credentials.js","dist/credentials/YouTubeOAuth2Api.credentials.js","dist/credentials/ZammadBasicAuthApi.credentials.js","dist/credentials/ZammadTokenAuthApi.credentials.js","dist/credentials/ZendeskApi.credentials.js","dist/credentials/ZendeskOAuth2Api.credentials.js","dist/credentials/ZohoOAuth2Api.credentials.js","dist/credentials/ZoomApi.credentials.js","dist/credentials/ZoomOAuth2Api.credentials.js","dist/credentials/ZscalerZiaApi.credentials.js","dist/credentials/ZulipApi.credentials.js"],"nodes":["dist/nodes/ActionNetwork/ActionNetwork.node.js","dist/nodes/ActiveCampaign/ActiveCampaign.node.js","dist/nodes/ActiveCampaign/ActiveCampaignTrigger.node.js","dist/nodes/AcuityScheduling/AcuitySchedulingTrigger.node.js","dist/nodes/Adalo/Adalo.node.js","dist/nodes/Affinity/Affinity.node.js","dist/nodes/Affinity/AffinityTrigger.node.js","dist/nodes/AgileCrm/AgileCrm.node.js","dist/nodes/Airtable/Airtable.node.js","dist/nodes/Airtable/AirtableTrigger.node.js","dist/nodes/Amqp/Amqp.node.js","dist/nodes/Amqp/AmqpTrigger.node.js","dist/nodes/ApiTemplateIo/ApiTemplateIo.node.js","dist/nodes/Asana/Asana.node.js","dist/nodes/Asana/AsanaTrigger.node.js","dist/nodes/Automizy/Automizy.node.js","dist/nodes/Autopilot/Autopilot.node.js","dist/nodes/Autopilot/AutopilotTrigger.node.js","dist/nodes/Aws/AwsLambda.node.js","dist/nodes/Aws/AwsSns.node.js","dist/nodes/Aws/AwsSnsTrigger.node.js","dist/nodes/Aws/CertificateManager/AwsCertificateManager.node.js","dist/nodes/Aws/Comprehend/AwsComprehend.node.js","dist/nodes/Aws/DynamoDB/AwsDynamoDB.node.js","dist/nodes/Aws/ELB/AwsElb.node.js","dist/nodes/Aws/Rekognition/AwsRekognition.node.js","dist/nodes/Aws/S3/AwsS3.node.js","dist/nodes/Aws/SES/AwsSes.node.js","dist/nodes/Aws/SQS/AwsSqs.node.js","dist/nodes/Aws/Textract/AwsTextract.node.js","dist/nodes/Aws/Transcribe/AwsTranscribe.node.js","dist/nodes/BambooHr/BambooHr.node.js","dist/nodes/Bannerbear/Bannerbear.node.js","dist/nodes/Baserow/Baserow.node.js","dist/nodes/Beeminder/Beeminder.node.js","dist/nodes/Bitbucket/BitbucketTrigger.node.js","dist/nodes/Bitly/Bitly.node.js","dist/nodes/Bitwarden/Bitwarden.node.js","dist/nodes/Box/Box.node.js","dist/nodes/Box/BoxTrigger.node.js","dist/nodes/Brandfetch/Brandfetch.node.js","dist/nodes/Bubble/Bubble.node.js","dist/nodes/Cal/CalTrigger.node.js","dist/nodes/Calendly/CalendlyTrigger.node.js","dist/nodes/Chargebee/Chargebee.node.js","dist/nodes/Chargebee/ChargebeeTrigger.node.js","dist/nodes/CircleCi/CircleCi.node.js","dist/nodes/Cisco/Webex/CiscoWebex.node.js","dist/nodes/Citrix/ADC/CitrixAdc.node.js","dist/nodes/Cisco/Webex/CiscoWebexTrigger.node.js","dist/nodes/Cloudflare/Cloudflare.node.js","dist/nodes/Clearbit/Clearbit.node.js","dist/nodes/ClickUp/ClickUp.node.js","dist/nodes/ClickUp/ClickUpTrigger.node.js","dist/nodes/Clockify/Clockify.node.js","dist/nodes/Clockify/ClockifyTrigger.node.js","dist/nodes/Cockpit/Cockpit.node.js","dist/nodes/Coda/Coda.node.js","dist/nodes/Code/Code.node.js","dist/nodes/CoinGecko/CoinGecko.node.js","dist/nodes/CompareDatasets/CompareDatasets.node.js","dist/nodes/Compression/Compression.node.js","dist/nodes/Contentful/Contentful.node.js","dist/nodes/ConvertKit/ConvertKit.node.js","dist/nodes/ConvertKit/ConvertKitTrigger.node.js","dist/nodes/Copper/Copper.node.js","dist/nodes/Copper/CopperTrigger.node.js","dist/nodes/Cortex/Cortex.node.js","dist/nodes/CrateDb/CrateDb.node.js","dist/nodes/Cron/Cron.node.js","dist/nodes/CrowdDev/CrowdDev.node.js","dist/nodes/CrowdDev/CrowdDevTrigger.node.js","dist/nodes/Crypto/Crypto.node.js","dist/nodes/CustomerIo/CustomerIo.node.js","dist/nodes/CustomerIo/CustomerIoTrigger.node.js","dist/nodes/DateTime/DateTime.node.js","dist/nodes/DebugHelper/DebugHelper.node.js","dist/nodes/DeepL/DeepL.node.js","dist/nodes/Demio/Demio.node.js","dist/nodes/Dhl/Dhl.node.js","dist/nodes/Discord/Discord.node.js","dist/nodes/Discourse/Discourse.node.js","dist/nodes/Disqus/Disqus.node.js","dist/nodes/Drift/Drift.node.js","dist/nodes/Dropbox/Dropbox.node.js","dist/nodes/Dropcontact/Dropcontact.node.js","dist/nodes/EditImage/EditImage.node.js","dist/nodes/E2eTest/E2eTest.node.js","dist/nodes/Egoi/Egoi.node.js","dist/nodes/Elastic/Elasticsearch/Elasticsearch.node.js","dist/nodes/Elastic/ElasticSecurity/ElasticSecurity.node.js","dist/nodes/EmailReadImap/EmailReadImap.node.js","dist/nodes/EmailSend/EmailSend.node.js","dist/nodes/Emelia/Emelia.node.js","dist/nodes/Emelia/EmeliaTrigger.node.js","dist/nodes/ERPNext/ERPNext.node.js","dist/nodes/ErrorTrigger/ErrorTrigger.node.js","dist/nodes/Eventbrite/EventbriteTrigger.node.js","dist/nodes/ExecuteCommand/ExecuteCommand.node.js","dist/nodes/ExecuteWorkflow/ExecuteWorkflow.node.js","dist/nodes/ExecuteWorkflowTrigger/ExecuteWorkflowTrigger.node.js","dist/nodes/ExecutionData/ExecutionData.node.js","dist/nodes/Facebook/FacebookGraphApi.node.js","dist/nodes/Facebook/FacebookTrigger.node.js","dist/nodes/FacebookLeadAds/FacebookLeadAdsTrigger.node.js","dist/nodes/Figma/FigmaTrigger.node.js","dist/nodes/FileMaker/FileMaker.node.js","dist/nodes/Filter/Filter.node.js","dist/nodes/Flow/Flow.node.js","dist/nodes/Flow/FlowTrigger.node.js","dist/nodes/Form/FormTrigger.node.js","dist/nodes/FormIo/FormIoTrigger.node.js","dist/nodes/Formstack/FormstackTrigger.node.js","dist/nodes/Freshdesk/Freshdesk.node.js","dist/nodes/Freshservice/Freshservice.node.js","dist/nodes/FreshworksCrm/FreshworksCrm.node.js","dist/nodes/Ftp/Ftp.node.js","dist/nodes/Function/Function.node.js","dist/nodes/FunctionItem/FunctionItem.node.js","dist/nodes/GetResponse/GetResponse.node.js","dist/nodes/GetResponse/GetResponseTrigger.node.js","dist/nodes/Ghost/Ghost.node.js","dist/nodes/Git/Git.node.js","dist/nodes/Github/Github.node.js","dist/nodes/Github/GithubTrigger.node.js","dist/nodes/Gitlab/Gitlab.node.js","dist/nodes/Gitlab/GitlabTrigger.node.js","dist/nodes/Google/Ads/GoogleAds.node.js","dist/nodes/Google/Analytics/GoogleAnalytics.node.js","dist/nodes/Google/BigQuery/GoogleBigQuery.node.js","dist/nodes/Google/Books/GoogleBooks.node.js","dist/nodes/Google/Calendar/GoogleCalendar.node.js","dist/nodes/Google/Calendar/GoogleCalendarTrigger.node.js","dist/nodes/Google/Chat/GoogleChat.node.js","dist/nodes/Google/CloudNaturalLanguage/GoogleCloudNaturalLanguage.node.js","dist/nodes/Google/CloudStorage/GoogleCloudStorage.node.js","dist/nodes/Google/Contacts/GoogleContacts.node.js","dist/nodes/Google/Docs/GoogleDocs.node.js","dist/nodes/Google/Drive/GoogleDrive.node.js","dist/nodes/Google/Drive/GoogleDriveTrigger.node.js","dist/nodes/Google/Firebase/CloudFirestore/GoogleFirebaseCloudFirestore.node.js","dist/nodes/Google/Firebase/RealtimeDatabase/GoogleFirebaseRealtimeDatabase.node.js","dist/nodes/Google/Gmail/Gmail.node.js","dist/nodes/Google/Gmail/GmailTrigger.node.js","dist/nodes/Google/GSuiteAdmin/GSuiteAdmin.node.js","dist/nodes/Google/Perspective/GooglePerspective.node.js","dist/nodes/Google/Sheet/GoogleSheets.node.js","dist/nodes/Google/Sheet/GoogleSheetsTrigger.node.js","dist/nodes/Google/Slides/GoogleSlides.node.js","dist/nodes/Google/Task/GoogleTasks.node.js","dist/nodes/Google/Translate/GoogleTranslate.node.js","dist/nodes/Google/YouTube/YouTube.node.js","dist/nodes/Gotify/Gotify.node.js","dist/nodes/GoToWebinar/GoToWebinar.node.js","dist/nodes/Grafana/Grafana.node.js","dist/nodes/GraphQL/GraphQL.node.js","dist/nodes/Grist/Grist.node.js","dist/nodes/Gumroad/GumroadTrigger.node.js","dist/nodes/HackerNews/HackerNews.node.js","dist/nodes/HaloPSA/HaloPSA.node.js","dist/nodes/Harvest/Harvest.node.js","dist/nodes/HelpScout/HelpScout.node.js","dist/nodes/HelpScout/HelpScoutTrigger.node.js","dist/nodes/HighLevel/HighLevel.node.js","dist/nodes/HomeAssistant/HomeAssistant.node.js","dist/nodes/HtmlExtract/HtmlExtract.node.js","dist/nodes/Html/Html.node.js","dist/nodes/HttpRequest/HttpRequest.node.js","dist/nodes/Hubspot/Hubspot.node.js","dist/nodes/Hubspot/HubspotTrigger.node.js","dist/nodes/HumanticAI/HumanticAi.node.js","dist/nodes/Hunter/Hunter.node.js","dist/nodes/ICalendar/ICalendar.node.js","dist/nodes/If/If.node.js","dist/nodes/Intercom/Intercom.node.js","dist/nodes/Interval/Interval.node.js","dist/nodes/InvoiceNinja/InvoiceNinja.node.js","dist/nodes/InvoiceNinja/InvoiceNinjaTrigger.node.js","dist/nodes/ItemLists/ItemLists.node.js","dist/nodes/Iterable/Iterable.node.js","dist/nodes/Jenkins/Jenkins.node.js","dist/nodes/Jira/Jira.node.js","dist/nodes/Jira/JiraTrigger.node.js","dist/nodes/JotForm/JotFormTrigger.node.js","dist/nodes/Kafka/Kafka.node.js","dist/nodes/Kafka/KafkaTrigger.node.js","dist/nodes/Keap/Keap.node.js","dist/nodes/Keap/KeapTrigger.node.js","dist/nodes/Kitemaker/Kitemaker.node.js","dist/nodes/KoBoToolbox/KoBoToolbox.node.js","dist/nodes/KoBoToolbox/KoBoToolboxTrigger.node.js","dist/nodes/Ldap/Ldap.node.js","dist/nodes/Lemlist/Lemlist.node.js","dist/nodes/Lemlist/LemlistTrigger.node.js","dist/nodes/Line/Line.node.js","dist/nodes/Linear/Linear.node.js","dist/nodes/Linear/LinearTrigger.node.js","dist/nodes/LingvaNex/LingvaNex.node.js","dist/nodes/LinkedIn/LinkedIn.node.js","dist/nodes/LocalFileTrigger/LocalFileTrigger.node.js","dist/nodes/LoneScale/LoneScaleTrigger.node.js","dist/nodes/LoneScale/LoneScale.node.js","dist/nodes/Magento/Magento2.node.js","dist/nodes/Mailcheck/Mailcheck.node.js","dist/nodes/Mailchimp/Mailchimp.node.js","dist/nodes/Mailchimp/MailchimpTrigger.node.js","dist/nodes/MailerLite/MailerLite.node.js","dist/nodes/MailerLite/MailerLiteTrigger.node.js","dist/nodes/Mailgun/Mailgun.node.js","dist/nodes/Mailjet/Mailjet.node.js","dist/nodes/Mailjet/MailjetTrigger.node.js","dist/nodes/Mandrill/Mandrill.node.js","dist/nodes/ManualTrigger/ManualTrigger.node.js","dist/nodes/Markdown/Markdown.node.js","dist/nodes/Marketstack/Marketstack.node.js","dist/nodes/Matrix/Matrix.node.js","dist/nodes/Mattermost/Mattermost.node.js","dist/nodes/Mautic/Mautic.node.js","dist/nodes/Mautic/MauticTrigger.node.js","dist/nodes/Medium/Medium.node.js","dist/nodes/Merge/Merge.node.js","dist/nodes/MessageBird/MessageBird.node.js","dist/nodes/Metabase/Metabase.node.js","dist/nodes/Microsoft/Dynamics/MicrosoftDynamicsCrm.node.js","dist/nodes/Microsoft/Excel/MicrosoftExcel.node.js","dist/nodes/Microsoft/GraphSecurity/MicrosoftGraphSecurity.node.js","dist/nodes/Microsoft/OneDrive/MicrosoftOneDrive.node.js","dist/nodes/Microsoft/Outlook/MicrosoftOutlook.node.js","dist/nodes/Microsoft/Sql/MicrosoftSql.node.js","dist/nodes/Microsoft/Teams/MicrosoftTeams.node.js","dist/nodes/Microsoft/ToDo/MicrosoftToDo.node.js","dist/nodes/Mindee/Mindee.node.js","dist/nodes/Misp/Misp.node.js","dist/nodes/Mocean/Mocean.node.js","dist/nodes/MondayCom/MondayCom.node.js","dist/nodes/MongoDb/MongoDb.node.js","dist/nodes/MonicaCrm/MonicaCrm.node.js","dist/nodes/MoveBinaryData/MoveBinaryData.node.js","dist/nodes/MQTT/Mqtt.node.js","dist/nodes/MQTT/MqttTrigger.node.js","dist/nodes/Msg91/Msg91.node.js","dist/nodes/MySql/MySql.node.js","dist/nodes/N8n/N8n.node.js","dist/nodes/N8nTrainingCustomerDatastore/N8nTrainingCustomerDatastore.node.js","dist/nodes/N8nTrainingCustomerMessenger/N8nTrainingCustomerMessenger.node.js","dist/nodes/N8nTrigger/N8nTrigger.node.js","dist/nodes/Nasa/Nasa.node.js","dist/nodes/Netlify/Netlify.node.js","dist/nodes/Netlify/NetlifyTrigger.node.js","dist/nodes/NextCloud/NextCloud.node.js","dist/nodes/NocoDB/NocoDB.node.js","dist/nodes/Brevo/Brevo.node.js","dist/nodes/Brevo/BrevoTrigger.node.js","dist/nodes/StickyNote/StickyNote.node.js","dist/nodes/NoOp/NoOp.node.js","dist/nodes/Onfleet/Onfleet.node.js","dist/nodes/Onfleet/OnfleetTrigger.node.js","dist/nodes/Notion/Notion.node.js","dist/nodes/Notion/NotionTrigger.node.js","dist/nodes/Npm/Npm.node.js","dist/nodes/Odoo/Odoo.node.js","dist/nodes/OneSimpleApi/OneSimpleApi.node.js","dist/nodes/OpenAi/OpenAi.node.js","dist/nodes/OpenThesaurus/OpenThesaurus.node.js","dist/nodes/OpenWeatherMap/OpenWeatherMap.node.js","dist/nodes/Orbit/Orbit.node.js","dist/nodes/Oura/Oura.node.js","dist/nodes/Paddle/Paddle.node.js","dist/nodes/PagerDuty/PagerDuty.node.js","dist/nodes/PayPal/PayPal.node.js","dist/nodes/PayPal/PayPalTrigger.node.js","dist/nodes/Peekalink/Peekalink.node.js","dist/nodes/Phantombuster/Phantombuster.node.js","dist/nodes/PhilipsHue/PhilipsHue.node.js","dist/nodes/Pipedrive/Pipedrive.node.js","dist/nodes/Pipedrive/PipedriveTrigger.node.js","dist/nodes/Plivo/Plivo.node.js","dist/nodes/PostBin/PostBin.node.js","dist/nodes/Postgres/Postgres.node.js","dist/nodes/Postgres/PostgresTrigger.node.js","dist/nodes/PostHog/PostHog.node.js","dist/nodes/Postmark/PostmarkTrigger.node.js","dist/nodes/ProfitWell/ProfitWell.node.js","dist/nodes/Pushbullet/Pushbullet.node.js","dist/nodes/Pushcut/Pushcut.node.js","dist/nodes/Pushcut/PushcutTrigger.node.js","dist/nodes/Pushover/Pushover.node.js","dist/nodes/QuestDb/QuestDb.node.js","dist/nodes/QuickBase/QuickBase.node.js","dist/nodes/QuickBooks/QuickBooks.node.js","dist/nodes/QuickChart/QuickChart.node.js","dist/nodes/RabbitMQ/RabbitMQ.node.js","dist/nodes/RabbitMQ/RabbitMQTrigger.node.js","dist/nodes/Raindrop/Raindrop.node.js","dist/nodes/ReadBinaryFile/ReadBinaryFile.node.js","dist/nodes/ReadBinaryFiles/ReadBinaryFiles.node.js","dist/nodes/ReadPdf/ReadPDF.node.js","dist/nodes/Reddit/Reddit.node.js","dist/nodes/Redis/Redis.node.js","dist/nodes/Redis/RedisTrigger.node.js","dist/nodes/RenameKeys/RenameKeys.node.js","dist/nodes/RespondToWebhook/RespondToWebhook.node.js","dist/nodes/Rocketchat/Rocketchat.node.js","dist/nodes/RssFeedRead/RssFeedRead.node.js","dist/nodes/RssFeedRead/RssFeedReadTrigger.node.js","dist/nodes/Rundeck/Rundeck.node.js","dist/nodes/S3/S3.node.js","dist/nodes/Salesforce/Salesforce.node.js","dist/nodes/Salesmate/Salesmate.node.js","dist/nodes/Schedule/ScheduleTrigger.node.js","dist/nodes/SeaTable/SeaTable.node.js","dist/nodes/SeaTable/SeaTableTrigger.node.js","dist/nodes/SecurityScorecard/SecurityScorecard.node.js","dist/nodes/Segment/Segment.node.js","dist/nodes/SendGrid/SendGrid.node.js","dist/nodes/Sendy/Sendy.node.js","dist/nodes/SentryIo/SentryIo.node.js","dist/nodes/ServiceNow/ServiceNow.node.js","dist/nodes/Set/Set.node.js","dist/nodes/Shopify/Shopify.node.js","dist/nodes/Shopify/ShopifyTrigger.node.js","dist/nodes/Signl4/Signl4.node.js","dist/nodes/Slack/Slack.node.js","dist/nodes/Sms77/Sms77.node.js","dist/nodes/Snowflake/Snowflake.node.js","dist/nodes/SplitInBatches/SplitInBatches.node.js","dist/nodes/Splunk/Splunk.node.js","dist/nodes/Spontit/Spontit.node.js","dist/nodes/Spotify/Spotify.node.js","dist/nodes/SpreadsheetFile/SpreadsheetFile.node.js","dist/nodes/SseTrigger/SseTrigger.node.js","dist/nodes/Ssh/Ssh.node.js","dist/nodes/Stackby/Stackby.node.js","dist/nodes/Start/Start.node.js","dist/nodes/StopAndError/StopAndError.node.js","dist/nodes/Storyblok/Storyblok.node.js","dist/nodes/Strapi/Strapi.node.js","dist/nodes/Strava/Strava.node.js","dist/nodes/Strava/StravaTrigger.node.js","dist/nodes/Stripe/Stripe.node.js","dist/nodes/Stripe/StripeTrigger.node.js","dist/nodes/Supabase/Supabase.node.js","dist/nodes/SurveyMonkey/SurveyMonkeyTrigger.node.js","dist/nodes/Switch/Switch.node.js","dist/nodes/SyncroMSP/SyncroMsp.node.js","dist/nodes/Taiga/Taiga.node.js","dist/nodes/Taiga/TaigaTrigger.node.js","dist/nodes/Tapfiliate/Tapfiliate.node.js","dist/nodes/Telegram/Telegram.node.js","dist/nodes/Telegram/TelegramTrigger.node.js","dist/nodes/TheHiveProject/TheHiveProject.node.js","dist/nodes/TheHiveProject/TheHiveProjectTrigger.node.js","dist/nodes/TheHive/TheHive.node.js","dist/nodes/TheHive/TheHiveTrigger.node.js","dist/nodes/TimescaleDb/TimescaleDb.node.js","dist/nodes/Todoist/Todoist.node.js","dist/nodes/Toggl/TogglTrigger.node.js","dist/nodes/Totp/Totp.node.js","dist/nodes/TravisCi/TravisCi.node.js","dist/nodes/Trello/Trello.node.js","dist/nodes/Trello/TrelloTrigger.node.js","dist/nodes/Twake/Twake.node.js","dist/nodes/Twilio/Twilio.node.js","dist/nodes/Twist/Twist.node.js","dist/nodes/Twitter/Twitter.node.js","dist/nodes/Typeform/TypeformTrigger.node.js","dist/nodes/UnleashedSoftware/UnleashedSoftware.node.js","dist/nodes/Uplead/Uplead.node.js","dist/nodes/UProc/UProc.node.js","dist/nodes/UptimeRobot/UptimeRobot.node.js","dist/nodes/UrlScanIo/UrlScanIo.node.js","dist/nodes/Vero/Vero.node.js","dist/nodes/Venafi/ProtectCloud/VenafiTlsProtectCloud.node.js","dist/nodes/Venafi/ProtectCloud/VenafiTlsProtectCloudTrigger.node.js","dist/nodes/Venafi/Datacenter/VenafiTlsProtectDatacenter.node.js","dist/nodes/Vonage/Vonage.node.js","dist/nodes/Wait/Wait.node.js","dist/nodes/Webflow/Webflow.node.js","dist/nodes/Webflow/WebflowTrigger.node.js","dist/nodes/Webhook/Webhook.node.js","dist/nodes/Wekan/Wekan.node.js","dist/nodes/WhatsApp/WhatsApp.node.js","dist/nodes/Wise/Wise.node.js","dist/nodes/Wise/WiseTrigger.node.js","dist/nodes/WooCommerce/WooCommerce.node.js","dist/nodes/WooCommerce/WooCommerceTrigger.node.js","dist/nodes/Wordpress/Wordpress.node.js","dist/nodes/Workable/WorkableTrigger.node.js","dist/nodes/WorkflowTrigger/WorkflowTrigger.node.js","dist/nodes/WriteBinaryFile/WriteBinaryFile.node.js","dist/nodes/Wufoo/WufooTrigger.node.js","dist/nodes/Xero/Xero.node.js","dist/nodes/Xml/Xml.node.js","dist/nodes/Yourls/Yourls.node.js","dist/nodes/Zammad/Zammad.node.js","dist/nodes/Zendesk/Zendesk.node.js","dist/nodes/Zendesk/ZendeskTrigger.node.js","dist/nodes/Zoho/ZohoCrm.node.js","dist/nodes/Zoom/Zoom.node.js","dist/nodes/Zulip/Zulip.node.js"]},"devDependencies":{"@types/amqplib":"^0.10.1","@types/aws4":"^1.5.1","@types/basic-auth":"^1.1.3","@types/cheerio":"^0.22.15","@types/cron":"~1.7.1","@types/eventsource":"^1.1.2","@types/express":"^4.17.6","@types/gm":"^1.25.0","@types/imap-simple":"^4.2.0","@types/js-nacl":"^1.3.0","@types/jsonwebtoken":"^9.0.1","@types/lodash":"^4.14.195","@types/lossless-json":"^1.0.0","@types/mailparser":"^2.7.3","@types/mime-types":"^2.1.0","@types/mssql":"^6.0.2","@types/node-ssh":"^7.0.1","@types/nodemailer":"^6.4.0","@types/promise-ftp":"^1.3.4","@types/redis":"^2.8.11","@types/request-promise-native":"~1.0.15","@types/rfc2047":"^2.0.1","@types/showdown":"^1.9.4","@types/snowflake-sdk":"^1.6.12","@types/ssh2-sftp-client":"^5.1.0","@types/tmp":"^0.2.0","@types/uuid":"^8.3.2","@types/xml2js":"^0.4.11","eslint-plugin-n8n-nodes-base":"^1.16.0","gulp":"^4.0.0","n8n-core":"1.14.1"},"dependencies":{"@kafkajs/confluent-schema-registry":"1.0.6","@n8n/vm2":"^3.9.20","amqplib":"^0.10.3","aws4":"^1.8.0","basic-auth":"^2.0.1","change-case":"^4.1.1","cheerio":"1.0.0-rc.6","chokidar":"3.5.2","cron":"~1.7.2","csv-parse":"^5.5.0","currency-codes":"^2.1.0","eventsource":"^2.0.2","fast-glob":"^3.2.5","fflate":"^0.7.0","get-system-fonts":"^2.0.2","gm":"^1.25.0","iconv-lite":"^0.6.2","ics":"^2.27.0","imap-simple":"^4.3.0","isbot":"^3.6.13","iso-639-1":"^2.1.3","js-nacl":"^1.4.0","jsonwebtoken":"^9.0.0","kafkajs":"^1.14.0","ldapts":"^4.2.6","lodash":"^4.17.21","lossless-json":"^1.0.4","luxon":"^3.3.0","mailparser":"^3.2.0","minifaker":"^1.34.1","moment":"~2.29.2","moment-timezone":"^0.5.28","mongodb":"^4.17.1","mqtt":"^5.0.2","mssql":"^8.1.2","mysql2":"~2.3.0","nanoid":"^3.3.6","node-html-markdown":"^1.1.3","node-ssh":"^12.0.0","nodemailer":"^6.7.1","otpauth":"^9.1.1","pdfjs-dist":"^2.16.105","pg":"^8.3.0","pg-promise":"^10.5.8","pretty-bytes":"^5.6.0","promise-ftp":"^1.3.5","pyodide":"^0.23.4","redis":"^3.1.1","rfc2047":"^4.0.1","rhea":"^1.0.11","rss-parser":"^3.7.0","semver":"^7.5.4","showdown":"^2.0.3","simple-git":"^3.17.0","snowflake-sdk":"^1.8.0","ssh2-sftp-client":"^7.0.0","tmp-promise":"^3.0.2","typedi":"^0.10.0","uuid":"^8.3.2","xlsx":"https://cdn.sheetjs.com/xlsx-0.19.3/xlsx-0.19.3.tgz","xml2js":"^0.5.0","n8n-workflow":"1.14.1"},"scripts":{"clean":"rimraf dist .turbo","dev":"pnpm watch","typecheck":"tsc","build":"tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json && gulp build:icons && gulp build:translations && pnpm build:metadata","build:translations":"gulp build:translations","build:metadata":"pnpm n8n-generate-known && pnpm n8n-generate-ui-types","format":"prettier --write . --ignore-path ../../.prettierignore","lint":"eslint . --quiet && node ./scripts/validate-load-options-methods.js","lintfix":"eslint . --fix","watch":"tsc-watch -p tsconfig.build.json --onCompilationComplete \"tsc-alias -p tsconfig.build.json\" --onSuccess \"pnpm n8n-generate-ui-types\"","test":"jest"}}


node_type: n8n-nodes-base.Affinity
name: Affinity
package_name: n8n-nodes-base
display_name: Affinity
description: Consume Affinity API
code_hash: e605ea187767403dfa55cd374690f7df563a0baa7ca6991d86d522dc101a2846
source_location: node_modules/n8n-nodes-base/dist/nodes/Affinity/Affinity.node.js
extracted_at: 2025-06-07 19:36:28
updated_at: 2025-06-07 19:36:28
source_code:
  "use strict";
  Object.defineProperty(exports, "__esModule", { value: true });
  exports.Affinity = void 0;
  const GenericFunctions_1 = require("./GenericFunctions");
  const OrganizationDescription_1 = require("./OrganizationDescription");
  const PersonDescription_1 = require("./PersonDescription");
  const ListDescription_1 = require("./ListDescription");
  const ListEntryDescription_1 = require("./ListEntryDescription");
  class Affinity {
      constructor() {
          this.description = {
              displayName: 'Affinity',
              name: 'affinity',
              icon: 'file:affinity.png',
              group: ['output'],
              version: 1,
              subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
              description: 'Consume Affinity API',
              defaults: {
                  name: 'Affinity',
              },
              inputs: ['main'],
              outputs: ['main'],
              credentials: [
                  {
                      name: 'affinityApi',
                      required: true,
                  },
              ],
              properties: [
                  {
                      displayName: 'Resource',
                      name: 'resource',
                      type: 'options',
                      noDataExpression: true,
                      options: [
                          {
                              name: 'List',
                              value: 'list',
                          },
                          {
                              name: 'List Entry',
                              value: 'listEntry',
                          },
                          {
                              name: 'Organization',
                              value: 'organization',
                          },
                          {
                              name: 'Person',
                              value: 'person',
                          },
                      ],
                      default: 'organization',
                  },
                  ...ListDescription_1.listOperations,
                  ...ListDescription_1.listFields,
                  ...ListEntryDescription_1.listEntryOperations,
                  ...ListEntryDescription_1.listEntryFields,
                  ...OrganizationDescription_1.organizationOperations,
                  ...OrganizationDescription_1.organizationFields,
                  ...PersonDescription_1.personOperations,
                  ...PersonDescription_1.personFields,
              ],
          };
          this.methods = {
              loadOptions: {
                  async getOrganizations() {
                      const returnData = [];
                      const organizations = await GenericFunctions_1.affinityApiRequestAllItems.call(this, 'organizations', 'GET', '/organizations', {});
                      for (const organization of organizations) {
                          const organizationName = organization.name;
                          const organizationId = organization.id;
                          returnData.push({
                              name: organizationName,
                              value: organizationId,
                          });
                      }
                      return returnData;
                  },
                  async getPersons() {
                      const returnData = [];
                      const persons = await GenericFunctions_1.affinityApiRequestAllItems.call(this, 'persons', 'GET', '/persons', {});
                      for (const person of persons) {
                          let personName = `${person.first_name} ${person.last_name}`;
                          if (person.primary_email !== null) {
                              personName += ` (${person.primary_email})`;
                          }
                          const personId = person.id;
                          returnData.push({
                              name: personName,
                              value: personId,
                          });
                      }
                      return returnData;
                  },
                  async getLists() {
                      const returnData = [];
                      const lists = await GenericFunctions_1.affinityApiRequest.call(this, 'GET', '/lists');
                      for (const list of lists) {
                          returnData.push({
                              name: list.name,
                              value: list.id,
                          });
                      }
                      return returnData;
                  },
              },
          };
      }
      async execute() {
          const items = this.getInputData();
          const returnData = [];
          const length = items.length;
          let responseData;
          const qs = {};
          const resource = this.getNodeParameter('resource', 0);
          const operation = this.getNodeParameter('operation', 0);
          for (let i = 0; i < length; i++) {
              try {
                  if (resource === 'list') {
                      if (operation === 'get') {
                          const listId = this.getNodeParameter('listId', i);
                          responseData = await GenericFunctions_1.affinityApiRequest.call(this, 'GET', `/lists/${listId}`, {}, qs);
                      }
                      if (operation === 'getAll') {
                          const returnAll = this.getNodeParameter('returnAll', i);
                          responseData = await GenericFunctions_1.affinityApiRequest.call(this, 'GET', '/lists', {}, qs);
                          if (!returnAll) {
                              const limit = this.getNodeParameter('limit', i);
                              responseData = responseData.splice(0, limit);
                          }
                      }
                  }
                  if (resource === 'listEntry') {
                      if (operation === 'create') {
                          const listId = this.getNodeParameter('listId', i);
                          const entityId = this.getNodeParameter('entityId', i);
                          const additionalFields = this.getNodeParameter('additionalFields', i);
                          const body = {
                              entity_id: parseInt(entityId, 10),
                          };
                          Object.assign(body, additionalFields);
                          responseData = await GenericFunctions_1.affinityApiRequest.call(this, 'POST', `/lists/${listId}/list-entries`, body);
                      }
                      if (operation === 'get') {
                          const listId = this.getNodeParameter('listId', i);
                          const listEntryId = this.getNodeParameter('listEntryId', i);
                          responseData = await GenericFunctions_1.affinityApiRequest.call(this, 'GET', `/lists/${listId}/list-entries/${listEntryId}`, {}, qs);
                      }
                      if (operation === 'getAll') {
                          const returnAll = this.getNodeParameter('returnAll', i);
                          const listId = this.getNodeParameter('listId', i);
                          if (returnAll) {
                              responseData = await GenericFunctions_1.affinityApiRequestAllItems.call(this, 'list_entries', 'GET', `/lists/${listId}/list-entries`, {}, qs);
                          }
                          else {
                              qs.page_size = this.getNodeParameter('limit', i);
                              responseData = await GenericFunctions_1.affinityApiRequest.call(this, 'GET', `/lists/${listId}/list-entries`, {}, qs);
                              responseData = responseData.list_entries;
                          }
                      }
                      if (operation === 'delete') {
                          const listId = this.getNodeParameter('listId', i);
                          const listEntryId = this.getNodeParameter('listEntryId', i);
                          responseData = await GenericFunctions_1.affinityApiRequest.call(this, 'DELETE', `/lists/${listId}/list-entries/${listEntryId}`, {}, qs);
                      }
                  }
                  if (resource === 'person') {
                      if (operation === 'create') {
                          const firstName = this.getNodeParameter('firstName', i);
                          const lastName = this.getNodeParameter('lastName', i);
                          const emails = this.getNodeParameter('emails', i);
                          const additionalFields = this.getNodeParameter('additionalFields', i);
                          const body = {
                              first_name: firstName,
                              last_name: lastName,
                              emails,
                          };
                          if (additionalFields.organizations) {
                              body.organization_ids = additionalFields.organizations;
                          }
                          responseData = await GenericFunctions_1.affinityApiRequest.call(this, 'POST', '/persons', body);
                      }
                      if (operation === 'update') {
                          const personId = this.getNodeParameter('personId', i);
                          const updateFields = this.getNodeParameter('updateFields', i);
                          const emails = this.getNodeParameter('emails', i);
                          const body = {
                              emails,
                          };
                          if (updateFields.firstName) {
                              body.first_name = updateFields.firstName;
                          }
                          if (updateFields.lastName) {
                              body.last_name = updateFields.lastName;
                          }
                          if (updateFields.organizations) {
                              body.organization_ids = updateFields.organizations;
                          }
                          responseData = await GenericFunctions_1.affinityApiRequest.call(this, 'PUT', `/persons/${personId}`, body);
                      }
                      if (operation === 'get') {
                          const personId = this.getNodeParameter('personId', i);
                          const options = this.getNodeParameter('options', i);
                          if (options.withInteractionDates) {
                              qs.with_interaction_dates = options.withInteractionDates;
                          }
                          responseData = await GenericFunctions_1.affinityApiRequest.call(this, 'GET', `/persons/${personId}`, {}, qs);
                      }
                      if (operation === 'getAll') {
                          const returnAll = this.getNodeParameter('returnAll', i);
                          const options = this.getNodeParameter('options', i);
                          if (options.term) {
                              qs.term = options.term;
                          }
                          if (options.withInteractionDates) {
                              qs.with_interaction_dates = options.withInteractionDates;
                          }
                          if (returnAll) {
                              responseData = await GenericFunctions_1.affinityApiRequestAllItems.call(this, 'persons', 'GET', '/persons', {}, qs);
                          }
                          else {
                              qs.page_size = this.getNodeParameter('limit', i);
                              responseData = await GenericFunctions_1.affinityApiRequest.call(this, 'GET', '/persons', {}, qs);
                              responseData = responseData.persons;
                          }
                      }
                      if (operation === 'delete') {
                          const personId = this.getNodeParameter('personId', i);
                          responseData = await GenericFunctions_1.affinityApiRequest.call(this, 'DELETE', `/persons/${personId}`, {}, qs);
                      }
                  }
                  if (resource === 'organization') {
                      if (operation === 'create') {
                          const name = this.getNodeParameter('name', i);
                          const domain = this.getNodeParameter('domain', i);
                          const additionalFields = this.getNodeParameter('additionalFields', i);
                          const body = {
                              name,
                              domain,
                          };
                          if (additionalFields.persons) {
                              body.person_ids = additionalFields.persons;
                          }
                          responseData = await GenericFunctions_1.affinityApiRequest.call(this, 'POST', '/organizations', body);
                      }
                      if (operation === 'update') {
                          const organizationId = this.getNodeParameter('organizationId', i);
                          const updateFields = this.getNodeParameter('updateFields', i);
                          const body = {};
                          if (updateFields.name) {
                              body.name = updateFields.name;
                          }
                          if (updateFields.domain) {
                              body.domain = updateFields.domain;
                          }
                          if (updateFields.persons) {
                              body.person_ids = updateFields.persons;
                          }
                          responseData = await GenericFunctions_1.affinityApiRequest.call(this, 'PUT', `/organizations/${organizationId}`, body);
                      }
                      if (operation === 'get') {
                          const organizationId = this.getNodeParameter('organizationId', i);
                          const options = this.getNodeParameter('options', i);
                          if (options.withInteractionDates) {
                              qs.with_interaction_dates = options.withInteractionDates;
                          }
                          responseData = await GenericFunctions_1.affinityApiRequest.call(this, 'GET', `/organizations/${organizationId}`, {}, qs);
                      }
                      if (operation === 'getAll') {
                          const returnAll = this.getNodeParameter('returnAll', i);
                          const options = this.getNodeParameter('options', i);
                          if (options.term) {
                              qs.term = options.term;
                          }
                          if (options.withInteractionDates) {
                              qs.with_interaction_dates = options.withInteractionDates;
                          }
                          if (returnAll) {
                              responseData = await GenericFunctions_1.affinityApiRequestAllItems.call(this, 'organizations', 'GET', '/organizations', {}, qs);
                          }
                          else {
                              qs.page_size = this.getNodeParameter('limit', i);
                              responseData = await GenericFunctions_1.affinityApiRequest.call(this, 'GET', '/organizations', {}, qs);
                              responseData = responseData.organizations;
                          }
                      }
                      if (operation === 'delete') {
                          const organizationId = this.getNodeParameter('organizationId', i);
                          responseData = await GenericFunctions_1.affinityApiRequest.call(this, 'DELETE', `/organizations/${organizationId}`, {}, qs);
                      }
                  }
                  const executionData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(responseData), { itemData: { item: i } });
                  returnData.push(...executionData);
              }
              catch (error) {
                  if (this.continueOnFail()) {
                      const executionErrorData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray({ error: error.message }), { itemData: { item: i } });
                      returnData.push(...executionErrorData);
                      continue;
                  }
                  throw error;
              }
          }
          return [returnData];
      }
  }
  exports.Affinity = Affinity;
  //# sourceMappingURL=Affinity.node.js.map

package_info:
[cell repeats an earlier one in this file: 36903 characters]


node_type: n8n-nodes-base.AgileCrm
name: AgileCrm
package_name: n8n-nodes-base
display_name: Agile CRM
description: Consume Agile CRM API
code_hash: ce71c3b5dec23a48d24c5775e9bb79006ce395bed62b306c56340b5c772379c2
source_location: node_modules/n8n-nodes-base/dist/nodes/AgileCrm/AgileCrm.node.js
extracted_at: 2025-06-07 19:36:28
updated_at: 2025-06-07 19:36:28
source_code:
  "use strict";
  Object.defineProperty(exports, "__esModule", { value: true });
  exports.AgileCrm = void 0;
  const n8n_workflow_1 = require("n8n-workflow");
  const ContactDescription_1 = require("./ContactDescription");
  const CompanyDescription_1 = require("./CompanyDescription");
  const DealDescription_1 = require("./DealDescription");
  const GenericFunctions_1 = require("./GenericFunctions");
  class AgileCrm {
      constructor() {
          this.description = {
              displayName: 'Agile CRM',
              name: 'agileCrm',
              icon: 'file:agilecrm.png',
              subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
              group: ['transform'],
              version: 1,
              description: 'Consume Agile CRM API',
              defaults: {
                  name: 'Agile CRM',
              },
              inputs: ['main'],
              outputs: ['main'],
              credentials: [
                  {
                      name: 'agileCrmApi',
                      required: true,
                  },
              ],
              properties: [
                  {
                      displayName: 'Resource',
                      name: 'resource',
                      type: 'options',
                      noDataExpression: true,
                      options: [
                          {
                              name: 'Company',
                              value: 'company',
                          },
                          {
                              name: 'Contact',
                              value: 'contact',
                          },
                          {
                              name: 'Deal',
                              value: 'deal',
                          },
                      ],
                      default: 'contact',
                  },
                  ...ContactDescription_1.contactOperations,
                  ...ContactDescription_1.contactFields,
                  ...CompanyDescription_1.companyOperations,
                  ...CompanyDescription_1.companyFields,
                  ...DealDescription_1.dealOperations,
                  ...DealDescription_1.dealFields,
              ],
          };
      }
      async execute() {
          const items = this.getInputData();
          const returnData = [];
          let responseData;
          const resource = this.getNodeParameter('resource', 0);
          const operation = this.getNodeParameter('operation', 0);
          for (let i = 0; i < items.length; i++) {
              if (resource === 'contact' || resource === 'company') {
                  const idGetter = resource === 'contact' ? 'contactId' : 'companyId';
                  if (operation === 'get') {
                      const contactId = this.getNodeParameter(idGetter, i);
                      const endpoint = `api/contacts/${contactId}`;
                      responseData = await GenericFunctions_1.agileCrmApiRequest.call(this, 'GET', endpoint, {});
                  }
                  else if (operation === 'delete') {
                      const contactId = this.getNodeParameter(idGetter, i);
                      const endpoint = `api/contacts/${contactId}`;
                      responseData = await GenericFunctions_1.agileCrmApiRequest.call(this, 'DELETE', endpoint, {});
                  }
                  else if (operation === 'getAll') {
                      const simple = this.getNodeParameter('simple', 0);
                      const returnAll = this.getNodeParameter('returnAll', 0);
                      const filterType = this.getNodeParameter('filterType', i);
                      const sort = this.getNodeParameter('options.sort.sort', i, {});
                      const body = {};
                      const filterJson = {};
                      let contactType = '';
                      if (resource === 'contact') {
                          contactType = 'PERSON';
                      }
                      else {
                          contactType = 'COMPANY';
                      }
                      filterJson.contact_type = contactType;
                      if (filterType === 'manual') {
                          const conditions = this.getNodeParameter('filters.conditions', i, []);
                          const matchType = this.getNodeParameter('matchType', i);
                          let rules;
                          if (conditions.length !== 0) {
                              rules = (0, GenericFunctions_1.getFilterRules)(conditions, matchType);
                              Object.assign(filterJson, rules);
                          }
                          else {
                              throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'At least one condition must be added.', { itemIndex: i });
                          }
                      }
                      else if (filterType === 'json') {
                          const filterJsonRules = this.getNodeParameter('filterJson', i);
                          if ((0, GenericFunctions_1.validateJSON)(filterJsonRules) !== undefined) {
                              Object.assign(filterJson, (0, n8n_workflow_1.jsonParse)(filterJsonRules));
                          }
                          else {
                              throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Filter (JSON) must be a valid json', {
                                  itemIndex: i,
                              });
                          }
                      }
                      body.filterJson = JSON.stringify(filterJson);
                      if (sort) {
                          if (sort.direction === 'ASC') {
                              body.global_sort_key = sort.field;
                          }
                          else if (sort.direction === 'DESC') {
                              body.global_sort_key = `-${sort.field}`;
                          }
                      }
                      if (returnAll) {
                          body.page_size = 100;
                          responseData = await GenericFunctions_1.agileCrmApiRequestAllItems.call(this, 'POST', 'api/filters/filter/dynamic-filter', body, undefined, undefined, true);
                      }
                      else {
                          body.page_size = this.getNodeParameter('limit', 0);
                          responseData = await GenericFunctions_1.agileCrmApiRequest.call(this, 'POST', 'api/filters/filter/dynamic-filter', body, undefined, undefined, true);
                      }
                      if (simple) {
                          responseData = (0, GenericFunctions_1.simplifyResponse)(responseData);
                      }
                  }
                  else if (operation === 'create') {
                      const jsonParameters = this.getNodeParameter('jsonParameters', i);
                      const body = {};
                      const properties = [];
                      if (jsonParameters) {
                          const additionalFieldsJson = this.getNodeParameter('additionalFieldsJson', i);
                          if (additionalFieldsJson !== '') {
                              if ((0, GenericFunctions_1.validateJSON)(additionalFieldsJson) !== undefined) {
                                  Object.assign(body, (0, n8n_workflow_1.jsonParse)(additionalFieldsJson));
                              }
                              else {
                                  throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Additional fields must be a valid JSON', { itemIndex: i });
                              }
                          }
                      }
                      else {
                          const additionalFields = this.getNodeParameter('additionalFields', i);
                          if (resource === 'company') {
                              body.type = 'COMPANY';
                          }
                          if (additionalFields.starValue) {
                              body.star_value = additionalFields.starValue;
                          }
                          if (additionalFields.tags) {
                              body.tags = additionalFields.tags;
                          }
                          if (resource === 'contact') {
                              if (additionalFields.firstName) {
                                  properties.push({
                                      type: 'SYSTEM',
                                      name: 'first_name',
                                      value: additionalFields.firstName,
                                  });
                              }
                              if (additionalFields.lastName) {
                                  properties.push({
                                      type: 'SYSTEM',
                                      name: 'last_name',
                                      value: additionalFields.lastName,
                                  });
                              }
                              if (additionalFields.company) {
                                  properties.push({
                                      type: 'SYSTEM',
                                      name: 'company',
                                      value: additionalFields.company,
                                  });
                              }
                              if (additionalFields.title) {
                                  properties.push({
                                      type: 'SYSTEM',
                                      name: 'title',
                                      value: additionalFields.title,
                                  });
                              }
                              if (additionalFields.emailOptions) {
                                  additionalFields.emailOptions.emailProperties.map((property) => {
                                      properties.push({
                                          type: 'SYSTEM',
                                          subtype: property.subtype,
                                          name: 'email',
                                          value: property.email,
                                      });
                                  });
                              }
                              if (additionalFields.addressOptions) {
                                  additionalFields.addressOptions.addressProperties.map((property) => {
                                      properties.push({
                                          type: 'SYSTEM',
                                          subtype: property.subtype,
                                          name: 'address',
                                          value: property.address,
                                      });
                                  });
                              }
                              if (additionalFields.phoneOptions) {
                                  additionalFields.phoneOptions.phoneProperties.map((property) => {
                                      properties.push({
                                          type: 'SYSTEM',
                                          subtype: property.subtype,
                                          name: 'phone',
                                          value: property.number,
                                      });
                                  });
                              }
                          }
                          else if (resource === 'company') {
                              if (additionalFields.email) {
                                  properties.push({
                                      type: 'SYSTEM',
                                      name: 'email',
                                      value: additionalFields.email,
                                  });
                              }
                              if (additionalFields.addressOptions) {
                                  additionalFields.addressOptions.addressProperties.map((property) => {
                                      properties.push({
                                          type: 'SYSTEM',
                                          subtype: property.subtype,
                                          name: 'address',
                                          value: property.address,
                                      });
                                  });
                              }
                              if (additionalFields.phone) {
                                  properties.push({
                                      type: 'SYSTEM',
                                      name: 'phone',
                                      value: additionalFields.phone,
                                  });
                              }
                              if (additionalFields.name) {
                                  properties.push({
                                      type: 'SYSTEM',
                                      name: 'name',
                                      value: additionalFields.name,
                                  });
                              }
                          }
                          if (additionalFields.websiteOptions) {
                              additionalFields.websiteOptions.websiteProperties.map((property) => {
                                  properties.push({
                                      type: 'SYSTEM',
                                      subtype: property.subtype,
                                      name: 'website',
                                      value: property.url,
                                  });
                              });
                          }
                          if (additionalFields.customProperties) {
                              additionalFields.customProperties.customProperty.map((property) => {
                                  properties.push({
                                      type: 'CUSTOM',
                                      subtype: property.subtype,
                                      name: property.name,
                                      value: property.value,
                                  });
                              });
                          }
                          body.properties = properties;
                      }
                      const endpoint = 'api/contacts';
                      responseData = await GenericFunctions_1.agileCrmApiRequest.call(this, 'POST', endpoint, body);
                  }
                  else if (operation === 'update') {
                      const contactId = this.getNodeParameter(idGetter, i);
                      const contactUpdatePayload = { id: contactId };
                      const jsonParameters = this.getNodeParameter('jsonParameters', i);
                      const body = {};
                      const properties = [];
                      if (jsonParameters) {
                          const additionalFieldsJson = this.getNodeParameter('additionalFieldsJson', i);
                          if (additionalFieldsJson !== '') {
                              if ((0, GenericFunctions_1.validateJSON)(additionalFieldsJson) !== undefined) {
                                  Object.assign(body, (0, n8n_workflow_1.jsonParse)(additionalFieldsJson));
                              }
                              else {
                                  throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Additional fields must be a valid JSON', { itemIndex: i });
                              }
                          }
                      }
                      else {
                          const additionalFields = this.getNodeParameter('additionalFields', i);
                          if (additionalFields.starValue) {
                              body.star_value = additionalFields.starValue;
                          }
                          if (additionalFields.tags) {
                              body.tags = additionalFields.tags;
                          }
                          if (resource === 'contact') {
                              if (additionalFields.leadScore) {
                                  body.lead_score = additionalFields.leadScore;
                              }
                              if (additionalFields.firstName) {
                                  properties.push({
                                      type: 'SYSTEM',
                                      name: 'first_name',
                                      value: additionalFields.firstName,
                                  });
                              }
                              if (additionalFields.lastName) {
                                  properties.push({
                                      type: 'SYSTEM',
                                      name: 'last_name',
                                      value: additionalFields.lastName,
                                  });
                              }
                              if (additionalFields.company) {
                                  properties.push({
                                      type: 'SYSTEM',
                                      name: 'company',
                                      value: additionalFields.company,
                                  });
                              }
                              if (additionalFields.title) {
                                  properties.push({
                                      type: 'SYSTEM',
                                      name: 'title',
                                      value: additionalFields.title,
                                  });
                              }
                              if (additionalFields.emailOptions) {
                                  additionalFields.emailOptions.emailProperties.map((property) => {
                                      properties.push({
                                          type: 'SYSTEM',
                                          subtype: property.subtype,
                                          name: 'email',
                                          value: property.email,
                                      });
                                  });
                              }
                              if (additionalFields.addressOptions) {
                                  additionalFields.addressOptions.addressProperties.map((property) => {
                                      properties.push({
                                          type: 'SYSTEM',
                                          subtype: property.subtype,
                                          name: 'address',
                                          value: property.address,
                                      });
                                  });
                              }
                              if (additionalFields.phoneOptions) {
                                  additionalFields.phoneOptions.phoneProperties.map((property) => {
                                      properties.push({
                                          type: 'SYSTEM',
                                          subtype: property.subtype,
                                          name: 'phone',
                                          value: property.number,
                                      });
                                  });
                              }
                          }
                          else if (resource === 'company') {
                              if (additionalFields.email) {
                                  properties.push({
                                      type: 'SYSTEM',
                                      name: 'email',
                                      value: additionalFields.email,
                                  });
                              }
                              if (additionalFields.addressOptions) {
                                  additionalFields.addressOptions.addressProperties.map((property) => {
                                      properties.push({
                                          type: 'SYSTEM',
                                          subtype: property.subtype,
                                          name: 'address',
                                          value: property.address,
                                      });
                                  });
                              }
                              if (additionalFields.phone) {
                                  properties.push({
                                      type: 'SYSTEM',
                                      name: 'phone',
                                      value: additionalFields.phone,
                                  });
                              }
                          }
                          if (additionalFields.websiteOptions) {
                              additionalFields.websiteOptions.websiteProperties.map((property) => {
                                  properties.push({
                                      type: 'SYSTEM',
                                      subtype: property.subtype,
                                      name: 'website',
                                      value: property.url,
                                  });
                              });
                          }
                          if (additionalFields.name) {
                              properties.push({
                                  type: 'SYSTEM',
                                  name: 'name',
                                  value: additionalFields.name,
                              });
                          }
                          if (additionalFields.customProperties) {
                              additionalFields.customProperties.customProperty.map((property) => {
                                  properties.push({
                                      type: 'CUSTOM',
                                      subtype: property.subtype,
                                      name: property.name,
                                      value: property.value,
                                  });
                              });
                          }
                          body.properties = properties;
                      }
                      Object.assign(contactUpdatePayload, body);
                      responseData = await GenericFunctions_1.agileCrmApiRequestUpdate.call(this, 'PUT', '', contactUpdatePayload);
                  }
              }
              else if (resource === 'deal') {
                  if (operation === 'get') {
                      const dealId = this.getNodeParameter('dealId', i);
                      const endpoint = `api/opportunity/${dealId}`;
                      responseData = await GenericFunctions_1.agileCrmApiRequest.call(this, 'GET', endpoint, {});
                  }
                  else if (operation === 'delete') {
                      const contactId = this.getNodeParameter('dealId', i);
                      const endpoint = `api/opportunity/${contactId}`;
                      responseData = await GenericFunctions_1.agileCrmApiRequest.call(this, 'DELETE', endpoint, {});
                  }
                  else if (operation === 'getAll') {
                      const returnAll = this.getNodeParameter('returnAll', 0);
                      const endpoint = 'api/opportunity';
                      if (returnAll) {
                          const limit = 100;
                          responseData = await GenericFunctions_1.agileCrmApiRequestAllItems.call(this, 'GET', endpoint, undefined, {
                              page_size: limit,
                          });
                      }
                      else {
                          const limit = this.getNodeParameter('limit', 0);
                          responseData = await GenericFunctions_1.agileCrmApiRequest.call(this, 'GET', endpoint, undefined, {
                              page_size: limit,
                          });
                      }
                  }
                  else if (operation === 'create') {
                      const jsonParameters = this.getNodeParameter('jsonParameters', i);
                      const body = {};
                      if (jsonParameters) {
                          const additionalFieldsJson = this.getNodeParameter('additionalFieldsJson', i);
                          if (additionalFieldsJson !== '') {
                              if ((0, GenericFunctions_1.validateJSON)(additionalFieldsJson) !== undefined) {
                                  Object.assign(body, (0, n8n_workflow_1.jsonParse)(additionalFieldsJson));
                              }
                              else {
                                  throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Additional fields must be a valid JSON', { itemIndex: i });
                              }
                          }
                      }
                      else {
                          const additionalFields = this.getNodeParameter('additionalFields', i);
                          body.close_date = new Date(this.getNodeParameter('closeDate', i)).getTime();
                          body.expected_value = this.getNodeParameter('expectedValue', i);
                          body.milestone = this.getNodeParameter('milestone', i);
                          body.probability = this.getNodeParameter('probability', i);
                          body.name = this.getNodeParameter('name', i);
                          if (additionalFields.contactIds) {
                              body.contactIds = additionalFields.contactIds;
                          }
                          if (additionalFields.customData) {
                              body.customData = additionalFields.customData.customProperty;
                          }
                      }
                      const endpoint = 'api/opportunity';
                      responseData = await GenericFunctions_1.agileCrmApiRequest.call(this, 'POST', endpoint, body);
                  }
                  else if (operation === 'update') {
                      const jsonParameters = this.getNodeParameter('jsonParameters', i);
                      const body = {};
                      if (jsonParameters) {
                          const additionalFieldsJson = this.getNodeParameter('additionalFieldsJson', i);
                          if (additionalFieldsJson !== '') {
                              if ((0, GenericFunctions_1.validateJSON)(additionalFieldsJson) !== undefined) {
                                  Object.assign(body, (0, n8n_workflow_1.jsonParse)(additionalFieldsJson));
                              }
                              else {
                                  throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Additional fields must be valid JSON', { itemIndex: i });
                              }
                          }
                      }
                      else {
                          const additionalFields = this.getNodeParameter('additionalFields', i);
                          body.id = this.getNodeParameter('dealId', i);
                          if (additionalFields.expectedValue) {
                              body.expected_value = additionalFields.expectedValue;
                          }
                          if (additionalFields.name) {
                              body.name = additionalFields.name;
                          }
                          if (additionalFields.probability) {
                              body.probability = additionalFields.probability;
                          }
                          if (additionalFields.contactIds) {
                              body.contactIds = additionalFields.contactIds;
                          }
                          if (additionalFields.customData) {
                              body.customData = additionalFields.customData.customProperty;
                          }
                      }
                      const endpoint = 'api/opportunity/partial-update';
                      responseData = await GenericFunctions_1.agileCrmApiRequest.call(this, 'PUT', endpoint, body);
                  }
              }
              if (Array.isArray(responseData)) {
                  returnData.push.apply(returnData, responseData);
              }
              else {
                  returnData.push(responseData);
              }
          }
          return [this.helpers.returnJsonArray(returnData)];
      }
  }
  exports.AgileCrm = AgileCrm;
  //# sourceMappingURL=AgileCrm.node.js.map

package_info:
[cell repeats an earlier one in this file: 36903 characters]


node_type: n8n-nodes-base.Airtable
name: Airtable
package_name: n8n-nodes-base
display_name: Airtable
description: Read, update, write and delete data from Airtable
code_hash: 2d67e72931697178946f5127b43e954649c4c5e7ad9e29764796404ae96e7db5
source_location: node_modules/n8n-nodes-base/dist/nodes/Airtable/Airtable.node.js
extracted_at: 2025-06-07 19:36:28
updated_at: 2025-06-07 19:36:28
source_code:
  "use strict";
  Object.defineProperty(exports, "__esModule", { value: true });
  exports.Airtable = void 0;
  const n8n_workflow_1 = require("n8n-workflow");
  const AirtableV1_node_1 = require("./v1/AirtableV1.node");
  const AirtableV2_node_1 = require("./v2/AirtableV2.node");
  class Airtable extends n8n_workflow_1.VersionedNodeType {
      constructor() {
          const baseDescription = {
              displayName: 'Airtable',
              name: 'airtable',
              icon: 'file:airtable.svg',
              group: ['input'],
              description: 'Read, update, write and delete data from Airtable',
              defaultVersion: 2,
          };
          const nodeVersions = {
              1: new AirtableV1_node_1.AirtableV1(baseDescription),
              2: new AirtableV2_node_1.AirtableV2(baseDescription),
          };
          super(nodeVersions, baseDescription);
      }
  }
  exports.Airtable = Airtable;
  //# sourceMappingURL=Airtable.node.js.map

package_info:
[cell repeats an earlier one in this file: 36903 characters]


node_type: n8n-nodes-base.Amqp
name: Amqp
package_name: n8n-nodes-base
display_name: AMQP Sender
description: Sends a raw-message via AMQP 1.0, executed once per item
code_hash: 5956b506c6a83fd759bfa78fcfde966ff2241da9d3677bd8139794ce6a9407fd
source_location: node_modules/n8n-nodes-base/dist/nodes/Amqp/Amqp.node.js
extracted_at: 2025-06-07 19:36:28
updated_at: 2025-06-07 19:36:28
source_code:
  "use strict";
  Object.defineProperty(exports, "__esModule", { value: true });
  exports.Amqp = void 0;
  const rhea_1 = require("rhea");
  const n8n_workflow_1 = require("n8n-workflow");
  class Amqp {
      constructor() {
          this.description = {
              displayName: 'AMQP Sender',
              name: 'amqp',
              icon: 'file:amqp.png',
              group: ['transform'],
              version: 1,
              description: 'Sends a raw-message via AMQP 1.0, executed once per item',
              defaults: {
                  name: 'AMQP Sender',
              },
              inputs: ['main'],
              outputs: ['main'],
              credentials: [
                  {
                      name: 'amqp',
                      required: true,
                      testedBy: 'amqpConnectionTest',
                  },
              ],
              properties: [
                  {
                      displayName: 'Queue / Topic',
                      name: 'sink',
                      type: 'string',
                      default: '',
                      placeholder: 'topic://sourcename.something',
                      description: 'Name of the queue of topic to publish to',
                  },
                  {
                      displayName: 'Headers',
                      name: 'headerParametersJson',
                      type: 'json',
                      default: '',
                      description: 'Header parameters as JSON (flat object). Sent as application_properties in amqp-message meta info.',
                  },
                  {
                      displayName: 'Options',
                      name: 'options',
                      type: 'collection',
                      placeholder: 'Add Option',
                      default: {},
                      options: [
                          {
                              displayName: 'Container ID',
                              name: 'containerId',
                              type: 'string',
                              default: '',
                              description: 'Will be used to pass to the RHEA Backend as container_id',
                          },
                          {
                              displayName: 'Data as Object',
                              name: 'dataAsObject',
                              type: 'boolean',
                              default: false,
                              description: 'Whether to send the data as an object',
                          },
                          {
                              displayName: 'Reconnect',
                              name: 'reconnect',
                              type: 'boolean',
                              default: true,
                              description: 'Whether to automatically reconnect if disconnected',
                          },
                          {
                              displayName: 'Reconnect Limit',
                              name: 'reconnectLimit',
                              type: 'number',
                              default: 50,
                              description: 'Maximum number of reconnect attempts',
                          },
                          {
                              displayName: 'Send Property',
                              name: 'sendOnlyProperty',
                              type: 'string',
                              default: '',
                              description: 'The only property to send. If empty the whole item will be sent.',
                          },
                      ],
                  },
              ],
          };
          this.methods = {
              credentialTest: {
                  async amqpConnectionTest(credential) {
                      const credentials = credential.data;
                      const connectOptions = {
                          reconnect: false,
                          host: credentials.hostname,
                          hostname: credentials.hostname,
                          port: credentials.port,
                          username: credentials.username ? credentials.username : undefined,
                          password: credentials.password ? credentials.password : undefined,
                          transport: credentials.transportType ? credentials.transportType : undefined,
                      };
                      let conn = undefined;
                      try {
                          const container = (0, rhea_1.create_container)();
                          await new Promise((resolve, reject) => {
                              container.on('connection_open', function (_contex) {
                                  resolve();
                              });
                              container.on('disconnected', function (context) {
                                  var _a;
                                  reject((_a = context.error) !== null && _a !== void 0 ? _a : new Error('unknown error'));
                              });
                              conn = container.connect(connectOptions);
                          });
                      }
                      catch (error) {
                          return {
                              status: 'Error',
                              message: error.message,
                          };
                      }
                      finally {
                          if (conn)
                              conn.close();
                      }
                      return {
                          status: 'OK',
                          message: 'Connection successful!',
                      };
                  },
              },
          };
      }
      async execute() {
          try {
              const credentials = await this.getCredentials('amqp');
              const sink = this.getNodeParameter('sink', 0, '');
              const applicationProperties = this.getNodeParameter('headerParametersJson', 0, {});
              const options = this.getNodeParameter('options', 0, {});
              const containerId = options.containerId;
              const containerReconnect = options.reconnect || true;
              const containerReconnectLimit = options.reconnectLimit || 50;
              let headerProperties;
              if (typeof applicationProperties === 'string' && applicationProperties !== '') {
                  headerProperties = JSON.parse(applicationProperties);
              }
              else {
                  headerProperties = applicationProperties;
              }
              if (sink === '') {
                  throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Queue or Topic required!');
              }
              const container = (0, rhea_1.create_container)();
              const connectOptions = {
                  host: credentials.hostname,
                  hostname: credentials.hostname,
                  port: credentials.port,
                  reconnect: containerReconnect,
                  reconnect_limit: containerReconnectLimit,
                  username: credentials.username ? credentials.username : undefined,
                  password: credentials.password ? credentials.password : undefined,
                  transport: credentials.transportType ? credentials.transportType : undefined,
                  container_id: containerId ? containerId : undefined,
                  id: containerId ? containerId : undefined,
              };
              const conn = container.connect(connectOptions);
              const sender = conn.open_sender(sink);
              const responseData = await new Promise((resolve) => {
                  container.once('sendable', (context) => {
                      var _a;
                      const returnData = [];
                      const items = this.getInputData();
                      for (let i = 0; i < items.length; i++) {
                          const item = items[i];
                          let body = item.json;
                          const sendOnlyProperty = options.sendOnlyProperty;
                          if (sendOnlyProperty) {
                              body = body[sendOnlyProperty];
                          }
                          if (options.dataAsObject !== true) {
                              body = JSON.stringify(body);
                          }
                          const result = (_a = context.sender) === null || _a === void 0 ? void 0 : _a.send({
                              application_properties: headerProperties,
                              body,
                          });
                          returnData.push({ id: result === null || result === void 0 ? void 0 : result.id });
                      }
                      resolve(returnData);
                  });
              });
              sender.close();
              conn.close();
              return [this.helpers.returnJsonArray(responseData)];
          }
          catch (error) {
              if (this.continueOnFail()) {
                  return [this.helpers.returnJsonArray({ error: error.message })];
              }
              else {
                  throw error;
              }
          }
      }
  }
  exports.Amqp = Amqp;
  //# sourceMappingURL=Amqp.node.js.map

package_info:
[cell repeats an earlier one in this file: 36903 characters]


node_type: n8n-nodes-base.ApiTemplateIo
name: ApiTemplateIo
package_name: n8n-nodes-base
display_name: APITemplate.io
description: Consume the APITemplate.io API
code_hash: 63ec2b9a1c3a1c0abb162b49e24c4a5e88cacf61107c0d9698d7c2de2206c8b1
source_location: node_modules/n8n-nodes-base/dist/nodes/ApiTemplateIo/ApiTemplateIo.node.js
extracted_at: 2025-06-07 19:36:28
updated_at: 2025-06-07 19:36:28
source_code:
  "use strict";
  Object.defineProperty(exports, "__esModule", { value: true });
  exports.ApiTemplateIo = void 0;
  const n8n_workflow_1 = require("n8n-workflow");
  const GenericFunctions_1 = require("./GenericFunctions");
  class ApiTemplateIo {
      constructor() {
          this.description = {
              displayName: 'APITemplate.io',
              name: 'apiTemplateIo',
              icon: 'file:apiTemplateIo.svg',
              group: ['transform'],
              version: 1,
              description: 'Consume the APITemplate.io API',
              subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
              defaults: {
                  name: 'APITemplate.io',
              },
              inputs: ['main'],
              outputs: ['main'],
              credentials: [
                  {
                      name: 'apiTemplateIoApi',
                      required: true,
                  },
              ],
              properties: [
                  {
                      displayName: 'Resource',
                      name: 'resource',
                      type: 'options',
                      noDataExpression: true,
                      options: [
                          {
                              name: 'Account',
                              value: 'account',
                          },
                          {
                              name: 'Image',
                              value: 'image',
                          },
                          {
                              name: 'PDF',
                              value: 'pdf',
                          },
                      ],
                      default: 'image',
                  },
                  {
                      displayName: 'Operation',
                      name: 'operation',
                      type: 'options',
                      noDataExpression: true,
                      default: 'create',
                      required: true,
                      options: [
                          {
                              name: 'Create',
                              value: 'create',
                              action: 'Create an image',
                          },
                      ],
                      displayOptions: {
                          show: {
                              resource: ['image'],
                          },
                      },
                  },
                  {
                      displayName: 'Operation',
                      name: 'operation',
                      type: 'options',
                      noDataExpression: true,
                      default: 'create',
                      required: true,
                      options: [
                          {
                              name: 'Create',
                              value: 'create',
                              action: 'Create a pdf',
                          },
                      ],
                      displayOptions: {
                          show: {
                              resource: ['pdf'],
                          },
                      },
                  },
                  {
                      displayName: 'Operation',
                      name: 'operation',
                      type: 'options',
                      noDataExpression: true,
                      default: 'get',
                      required: true,
                      options: [
                          {
                              name: 'Get',
                              value: 'get',
                              action: 'Get an account',
                          },
                      ],
                      displayOptions: {
                          show: {
                              resource: ['account'],
                          },
                      },
                  },
                  {
                      displayName: 'Template Name or ID',
                      name: 'imageTemplateId',
                      type: 'options',
                      required: true,
                      default: '',
                      description: 'ID of the image template to use. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
                      typeOptions: {
                          loadOptionsMethod: 'getImageTemplates',
                      },
                      displayOptions: {
                          show: {
                              resource: ['image'],
                              operation: ['create'],
                          },
                      },
                  },
                  {
                      displayName: 'Template Name or ID',
                      name: 'pdfTemplateId',
                      type: 'options',
                      required: true,
                      default: '',
                      description: 'ID of the PDF template to use. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
                      typeOptions: {
                          loadOptionsMethod: 'getPdfTemplates',
                      },
                      displayOptions: {
                          show: {
                              resource: ['pdf'],
                              operation: ['create'],
                          },
                      },
                  },
                  {
                      displayName: 'JSON Parameters',
                      name: 'jsonParameters',
                      type: 'boolean',
                      default: false,
                      displayOptions: {
                          show: {
                              resource: ['pdf', 'image'],
                              operation: ['create'],
                          },
                      },
                  },
                  {
                      displayName: 'Download',
                      name: 'download',
                      type: 'boolean',
                      default: false,
                      displayOptions: {
                          show: {
                              resource: ['pdf', 'image'],
                              operation: ['create'],
                          },
                      },
                      description: 'Name of the binary property to which to write the data of the read file',
                  },
                  {
                      displayName: 'Binary Property',
                      name: 'binaryProperty',
                      type: 'string',
                      required: true,
                      default: 'data',
                      description: 'Name of the binary property to which to write to',
                      displayOptions: {
                          show: {
                              resource: ['pdf', 'image'],
                              operation: ['create'],
                              download: [true],
                          },
                      },
                  },
                  {
                      displayName: 'Overrides (JSON)',
                      name: 'overridesJson',
                      type: 'json',
                      default: '',
                      displayOptions: {
                          show: {
                              resource: ['image'],
                              operation: ['create'],
                              jsonParameters: [true],
                          },
                      },
                      placeholder: '[ {"name": "text_1", "text": "hello world", "textBackgroundColor": "rgba(246, 243, 243, 0)" } ]',
                  },
                  {
                      displayName: 'Properties (JSON)',
                      name: 'propertiesJson',
                      type: 'json',
                      default: '',
                      displayOptions: {
                          show: {
                              resource: ['pdf'],
                              operation: ['create'],
                              jsonParameters: [true],
                          },
                      },
                      placeholder: '{ "name": "text_1" }',
                  },
                  {
                      displayName: 'Overrides',
                      name: 'overridesUi',
                      placeholder: 'Add Override',
                      type: 'fixedCollection',
                      typeOptions: {
                          multipleValues: true,
                      },
                      displayOptions: {
                          show: {
                              resource: ['image'],
                              operation: ['create'],
                              jsonParameters: [false],
                          },
                      },
                      default: {},
                      options: [
                          {
                              name: 'overrideValues',
                              displayName: 'Override',
                              values: [
                                  {
                                      displayName: 'Properties',
                                      name: 'propertiesUi',
                                      placeholder: 'Add Property',
                                      type: 'fixedCollection',
                                      typeOptions: {
                                          multipleValues: true,
                                      },
                                      default: {},
                                      options: [
                                          {
                                              name: 'propertyValues',
                                              displayName: 'Property',
                                              values: [
                                                  {
                                                      displayName: 'Key',
                                                      name: 'key',
                                                      type: 'string',
                                                      default: '',
                                                      description: 'Name of the property',
                                                  },
                                                  {
                                                      displayName: 'Value',
                                                      name: 'value',
                                                      type: 'string',
                                                      default: '',
                                                      description: 'Value to the property',
                                                  },
                                              ],
                                          },
                                      ],
                                  },
                              ],
                          },
                      ],
                  },
                  {
                      displayName: 'Properties',
                      name: 'propertiesUi',
                      placeholder: 'Add Property',
                      type: 'fixedCollection',
                      typeOptions: {
                          multipleValues: true,
                      },
                      default: {},
                      displayOptions: {
                          show: {
                              resource: ['pdf'],
                              operation: ['create'],
                              jsonParameters: [false],
                          },
                      },
                      options: [
                          {
                              name: 'propertyValues',
                              displayName: 'Property',
                              values: [
                                  {
                                      displayName: 'Key',
                                      name: 'key',
                                      type: 'string',
                                      default: '',
                                      description: 'Name of the property',
                                  },
                                  {
                                      displayName: 'Value',
                                      name: 'value',
                                      type: 'string',
                                      default: '',
                                      description: 'Value to the property',
                                  },
                              ],
                          },
                      ],
                  },
                  {
                      displayName: 'Options',
                      name: 'options',
                      type: 'collection',
                      placeholder: 'Add Field',
                      displayOptions: {
                          show: {
                              operation: ['create'],
                              resource: ['pdf', 'image'],
                              download: [true],
                          },
                      },
                      default: {},
                      options: [
                          {
                              displayName: 'File Name',
                              name: 'fileName',
                              type: 'string',
                              default: '',
                              description: 'The name of the downloaded image/pdf. It has to include the extension. For example: report.pdf',
                          },
                      ],
                  },
              ],
          };
          this.methods = {
              loadOptions: {
                  async getImageTemplates() {
                      return GenericFunctions_1.loadResource.call(this, 'image');
                  },
                  async getPdfTemplates() {
                      return GenericFunctions_1.loadResource.call(this, 'pdf');
                  },
              },
          };
      }
      async execute() {
          var _a, _b, _c;
          const items = this.getInputData();
          const returnData = [];
          const length = items.length;
          let responseData;
          const resource = this.getNodeParameter('resource', 0);
          const operation = this.getNodeParameter('operation', 0);
          if (resource === 'account') {
              if (operation === 'get') {
                  for (let i = 0; i < length; i++) {
                      try {
                          responseData = await GenericFunctions_1.apiTemplateIoApiRequest.call(this, 'GET', '/account-information');
                          returnData.push(responseData);
                      }
                      catch (error) {
                          if (this.continueOnFail()) {
                              returnData.push({ json: { error: error.message } });
                              continue;
                          }
                          throw error;
                      }
                  }
              }
          }
          else if (resource === 'image') {
              if (operation === 'create') {
                  const download = this.getNodeParameter('download', 0);
                  for (let i = 0; i < length; i++) {
                      try {
                          const jsonParameters = this.getNodeParameter('jsonParameters', i);
                          let options = {};
                          if (download) {
                              options = this.getNodeParameter('options', i);
                          }
                          const qs = {
                              template_id: this.getNodeParameter('imageTemplateId', i),
                          };
                          const body = { overrides: [] };
                          if (!jsonParameters) {
                              const overrides = ((_a = this.getNodeParameter('overridesUi', i)) === null || _a === void 0 ? void 0 : _a.overrideValues) || [];
                              if (overrides.length !== 0) {
                                  const data = [];
                                  for (const override of overrides) {
                                      const properties = ((_b = override.propertiesUi) === null || _b === void 0 ? void 0 : _b.propertyValues) || [];
                                      data.push(properties.reduce((obj, value) => Object.assign(obj, { [`${value.key}`]: value.value }), {}));
                                  }
                                  body.overrides = data;
                              }
                          }
                          else {
                              const overrideJson = this.getNodeParameter('overridesJson', i);
                              if (overrideJson !== '') {
                                  const data = (0, GenericFunctions_1.validateJSON)(overrideJson);
                                  if (data === undefined) {
                                      throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'A valid JSON must be provided.', {
                                          itemIndex: i,
                                      });
                                  }
                                  body.overrides = data;
                              }
                          }
                          responseData = await GenericFunctions_1.apiTemplateIoApiRequest.call(this, 'POST', '/create', qs, body);
                          if (download) {
                              const binaryProperty = this.getNodeParameter('binaryProperty', i);
                              const data = await GenericFunctions_1.downloadImage.call(this, responseData.download_url);
                              const fileName = responseData.download_url.split('/').pop();
                              const binaryData = await this.helpers.prepareBinaryData(data, options.fileName || fileName);
                              responseData = {
                                  json: responseData,
                                  binary: {
                                      [binaryProperty]: binaryData,
                                  },
                              };
                          }
                          returnData.push(responseData);
                      }
                      catch (error) {
                          if (this.continueOnFail()) {
                              returnData.push({ json: { error: error.message } });
                              continue;
                          }
                          throw error;
                      }
                  }
                  if (download) {
                      return [returnData];
                  }
              }
          }
          else if (resource === 'pdf') {
              if (operation === 'create') {
                  const download = this.getNodeParameter('download', 0);
                  for (let i = 0; i < length; i++) {
                      try {
                          const jsonParameters = this.getNodeParameter('jsonParameters', i);
                          let options = {};
                          if (download) {
                              options = this.getNodeParameter('options', i);
                          }
                          const qs = {
                              template_id: this.getNodeParameter('pdfTemplateId', i),
                          };
                          let data;
                          if (!jsonParameters) {
                              const properties = ((_c = this.getNodeParameter('propertiesUi', i)) === null || _c === void 0 ? void 0 : _c.propertyValues) || [];
                              if (properties.length === 0) {
                                  throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'The parameter properties cannot be empty', { itemIndex: i });
                              }
                              data = properties.reduce((obj, value) => Object.assign(obj, { [`${value.key}`]: value.value }), {});
                          }
                          else {
                              const propertiesJson = this.getNodeParameter('propertiesJson', i);
                              data = (0, GenericFunctions_1.validateJSON)(propertiesJson);
                              if (data === undefined) {
                                  throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'A valid JSON must be provided.', {
                                      itemIndex: i,
                                  });
                              }
                          }
                          responseData = await GenericFunctions_1.apiTemplateIoApiRequest.call(this, 'POST', '/create', qs, data);
                          if (download) {
                              const binaryProperty = this.getNodeParameter('binaryProperty', i);
                              const imageData = await GenericFunctions_1.downloadImage.call(this, responseData.download_url);
                              const fileName = responseData.download_url.split('/').pop();
                              const binaryData = await this.helpers.prepareBinaryData(imageData, (options.fileName || fileName));
                              responseData = {
                                  json: responseData,
                                  binary: {
                                      [binaryProperty]: binaryData,
                                  },
                              };
                          }
                          returnData.push(responseData);
                      }
                      catch (error) {
                          if (this.continueOnFail()) {
                              returnData.push({ json: { error: error.message } });
                              continue;
                          }
                          throw error;
                      }
                  }
                  if (download) {
                      return [returnData];
                  }
              }
          }
          return [this.helpers.returnJsonArray(returnData)];
      }
  }
  exports.ApiTemplateIo = ApiTemplateIo;
  //# sourceMappingURL=ApiTemplateIo.node.js.map

package_info:
[cell repeats an earlier one in this file: 36903 characters]


node_type: n8n-nodes-base.Asana
name: Asana
package_name: n8n-nodes-base
display_name: Asana
description: Consume Asana REST API
code_hash: 2b50b513204936aa1c32519a8bf8214321aac2a9ca6b36175033ad0bc18c671c
source_location: node_modules/n8n-nodes-base/dist/nodes/Asana/Asana.node.js
extracted_at: 2025-06-07 19:36:28
updated_at: 2025-06-07 19:36:28
source_code:
  "use strict";
  var __importDefault = (this && this.__importDefault) || function (mod) {
      return (mod && mod.__esModule) ? mod : { "default": mod };
  };
  Object.defineProperty(exports, "__esModule", { value: true });
  exports.Asana = void 0;
  const n8n_workflow_1 = require("n8n-workflow");
  const GenericFunctions_1 = require("./GenericFunctions");
  const moment_timezone_1 = __importDefault(require("moment-timezone"));
  const change_case_1 = require("change-case");
  class Asana {
      constructor() {
          this.description = {
              displayName: 'Asana',
              name: 'asana',
              icon: 'file:asana.svg',
              group: ['input'],
              version: 1,
              subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
              description: 'Consume Asana REST API',
              defaults: {
                  name: 'Asana',
              },
              inputs: ['main'],
              outputs: ['main'],
              credentials: [
                  {
                      name: 'asanaApi',
                      required: true,
                      displayOptions: {
                          show: {
                              authentication: ['accessToken'],
                          },
                      },
                      testedBy: {
                          request: {
                              method: 'GET',
                              url: '/users/me',
                          },
                      },
                  },
                  {
                      name: 'asanaOAuth2Api',
                      required: true,
                      displayOptions: {
                          show: {
                              authentication: ['oAuth2'],
                          },
                      },
                  },
              ],
              requestDefaults: {
                  baseURL: 'https://app.asana.com/api/1.0',
                  url: '',
              },
              properties: [
                  {
                      displayName: 'Authentication',
                      name: 'authentication',
                      type: 'options',
                      options: [
                          {
                              name: 'Access Token',
                              value: 'accessToken',
                          },
                          {
                              name: 'OAuth2',
                              value: 'oAuth2',
                          },
                      ],
                      default: 'accessToken',
                  },
                  {
                      displayName: 'Resource',
                      name: 'resource',
                      type: 'options',
                      noDataExpression: true,
                      options: [
                          {
                              name: 'Project',
                              value: 'project',
                          },
                          {
                              name: 'Subtask',
                              value: 'subtask',
                          },
                          {
                              name: 'Task',
                              value: 'task',
                          },
                          {
                              name: 'Task Comment',
                              value: 'taskComment',
                          },
                          {
                              name: 'Task Project',
                              value: 'taskProject',
                          },
                          {
                              name: 'Task Tag',
                              value: 'taskTag',
                          },
                          {
                              name: 'User',
                              value: 'user',
                          },
                      ],
                      default: 'task',
                  },
                  {
                      displayName: 'Operation',
                      name: 'operation',
                      type: 'options',
                      noDataExpression: true,
                      displayOptions: {
                          show: {
                              resource: ['subtask'],
                          },
                      },
                      options: [
                          {
                              name: 'Create',
                              value: 'create',
                              description: 'Create a subtask',
                              action: 'Create a subtask',
                          },
                          {
                              name: 'Get Many',
                              value: 'getAll',
                              description: 'Get many substasks',
                              action: 'Get many subtasks',
                          },
                      ],
                      default: 'create',
                  },
                  {
                      displayName: 'Parent Task ID',
                      name: 'taskId',
                      type: 'string',
                      default: '',
                      required: true,
                      displayOptions: {
                          show: {
                              operation: ['create'],
                              resource: ['subtask'],
                          },
                      },
                      description: 'The task to operate on',
                  },
                  {
                      displayName: 'Name',
                      name: 'name',
                      type: 'string',
                      default: '',
                      required: true,
                      displayOptions: {
                          show: {
                              operation: ['create'],
                              resource: ['subtask'],
                          },
                      },
                      description: 'The name of the subtask to create',
                  },
                  {
                      displayName: 'Additional Fields',
                      name: 'otherProperties',
                      type: 'collection',
                      displayOptions: {
                          show: {
                              resource: ['subtask'],
                              operation: ['create'],
                          },
                      },
                      default: {},
                      placeholder: 'Add Field',
                      options: [
                          {
                              displayName: 'Assignee Name or ID',
                              name: 'assignee',
                              type: 'options',
                              typeOptions: {
                                  loadOptionsMethod: 'getUsers',
                              },
                              default: '',
                              description: 'Set Assignee on the subtask. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
                          },
                          {
                              displayName: 'Assignee Status',
                              name: 'assignee_status',
                              type: 'options',
                              options: [
                                  {
                                      name: 'Inbox',
                                      value: 'inbox',
                                  },
                                  {
                                      name: 'Today',
                                      value: 'today',
                                  },
                                  {
                                      name: 'Upcoming',
                                      value: 'upcoming',
                                  },
                                  {
                                      name: 'Later',
                                      value: 'later',
                                  },
                              ],
                              default: 'inbox',
                              description: 'Set Assignee status on the subtask (requires Assignee)',
                          },
                          {
                              displayName: 'Completed',
                              name: 'completed',
                              type: 'boolean',
                              default: false,
                              description: 'Whether the subtask should be marked completed',
                          },
                          {
                              displayName: 'Due On',
                              name: 'due_on',
                              type: 'dateTime',
                              default: '',
                              description: 'Date on which the time is due',
                          },
                          {
                              displayName: 'Liked',
                              name: 'liked',
                              type: 'boolean',
                              default: false,
                              description: 'Whether the task is liked by the authorized user',
                          },
                          {
                              displayName: 'Notes',
                              name: 'notes',
                              type: 'string',
                              typeOptions: {
                                  rows: 5,
                              },
                              default: '',
                              description: 'The task notes',
                          },
                          {
                              displayName: 'Workspace Name or ID',
                              name: 'workspace',
                              type: 'options',
                              typeOptions: {
                                  loadOptionsMethod: 'getWorkspaces',
                              },
                              default: '',
                              description: 'The workspace to create the subtask in. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
                          },
                      ],
                  },
                  {
                      displayName: 'Parent Task ID',
                      name: 'taskId',
                      type: 'string',
                      default: '',
                      required: true,
                      displayOptions: {
                          show: {
                              operation: ['getAll'],
                              resource: ['subtask'],
                          },
                      },
                      description: 'The task to operate on',
                  },
                  {
                      displayName: 'Return All',
                      name: 'returnAll',
                      type: 'boolean',
                      displayOptions: {
                          show: {
                              operation: ['getAll'],
                              resource: ['subtask'],
                          },
                      },
                      default: false,
                      description: 'Whether to return all results or only up to a given limit',
                  },
                  {
                      displayName: 'Limit',
                      name: 'limit',
                      type: 'number',
                      displayOptions: {
                          show: {
                              operation: ['getAll'],
                              resource: ['subtask'],
                              returnAll: [false],
                          },
                      },
                      typeOptions: {
                          minValue: 1,
                          maxValue: 500,
                      },
                      default: 100,
                      description: 'Max number of results to return',
                  },
                  {
                      displayName: 'Options',
                      name: 'options',
                      type: 'collection',
                      displayOptions: {
                          show: {
                              operation: ['getAll'],
                              resource: ['subtask'],
                          },
                      },
                      default: {},
                      placeholder: 'Add Field',
                      options: [
                          {
                              displayName: 'Field Names or IDs',
                              name: 'opt_fields',
                              type: 'multiOptions',
                              typeOptions: {
                                  loadOptionsMethod: 'getTaskFields',
                              },
                              default: ['gid', 'name', 'resource_type'],
                              description: 'Defines fields to return. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
                          },
                          {
                              displayName: 'Pretty',
                              name: 'opt_pretty',
                              type: 'boolean',
                              default: false,
                              description: 'Whether to provide “pretty” output',
                          },
                      ],
                  },
                  {
                      displayName: 'Operation',
                      name: 'operation',
                      type: 'options',
                      noDataExpression: true,
                      displayOptions: {
                          show: {
                              resource: ['task'],
                          },
                      },
                      options: [
                          {
                              name: 'Create',
                              value: 'create',
                              description: 'Create a task',
                              action: 'Create a task',
                          },
                          {
                              name: 'Delete',
                              value: 'delete',
                              description: 'Delete a task',
                              action: 'Delete a task',
                          },
                          {
                              name: 'Get',
                              value: 'get',
                              description: 'Get a task',
                              action: 'Get a task',
                          },
                          {
                              name: 'Get Many',
                              value: 'getAll',
                              description: 'Get many tasks',
                              action: 'Get many tasks',
                          },
                          {
                              name: 'Move',
                              value: 'move',
                              description: 'Move a task',
                              action: 'Move a task',
                          },
                          {
                              name: 'Search',
                              value: 'search',
                              description: 'Search for tasks',
                              action: 'Search a task',
                          },
                          {
                              name: 'Update',
                              value: 'update',
                              description: 'Update a task',
                              action: 'Update a task',
                          },
                      ],
                      default: 'create',
                  },
                  {
                      displayName: 'Workspace Name or ID',
                      name: 'workspace',
                      type: 'options',
                      typeOptions: {
                          loadOptionsMethod: 'getWorkspaces',
                      },
                      options: [],
                      default: '',
                      required: true,
                      displayOptions: {
                          show: {
                              operation: ['create'],
                              resource: ['task'],
                          },
                      },
                      description: 'The workspace to create the task in. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
                  },
                  {
                      displayName: 'Name',
                      name: 'name',
                      type: 'string',
                      default: '',
                      required: true,
                      displayOptions: {
                          show: {
                              operation: ['create'],
                              resource: ['task'],
                          },
                      },
                      description: 'The name of the task to create',
                  },
                  {
                      displayName: 'Task ID',
                      name: 'id',
                      type: 'string',
                      default: '',
                      required: true,
                      displayOptions: {
                          show: {
                              operation: ['delete'],
                              resource: ['task'],
                          },
                      },
                      description: 'The ID of the task to delete',
                  },
                  {
                      displayName: 'Task ID',
                      name: 'id',
                      type: 'string',
                      default: '',
                      required: true,
                      displayOptions: {
                          show: {
                              operation: ['get'],
                              resource: ['task'],
                          },
                      },
                      description: 'The ID of the task to get the data of',
                  },
                  {
                      displayName: 'Return All',
                      name: 'returnAll',
                      type: 'boolean',
                      displayOptions: {
                          show: {
                              operation: ['getAll'],
                              resource: ['task'],
                          },
                      },
                      default: false,
                      description: 'Whether to return all results or only up to a given limit',
                  },
                  {
                      displayName: 'Limit',
                      name: 'limit',
                      type: 'number',
                      displayOptions: {
                          show: {
                              operation: ['getAll'],
                              resource: ['task'],
                              returnAll: [false],
                          },
                      },
                      typeOptions: {
                          minValue: 1,
                          maxValue: 500,
                      },
                      default: 100,
                      description: 'Max number of results to return',
                  },
                  {
                      displayName: 'Filters',
                      name: 'filters',
                      type: 'collection',
                      displayOptions: {
                          show: {
                              operation: ['getAll'],
                              resource: ['task'],
                          },
                      },
                      default: {},
                      description: 'Properties to search for',
                      placeholder: 'Add Filter',
                      options: [
                          {
                              displayName: 'Assignee Name or ID',
                              name: 'assignee',
                              type: 'options',
                              typeOptions: {
                                  loadOptionsMethod: 'getUsers',
                              },
                              default: '',
                              description: 'The assignee to filter tasks on. Note: If you specify assignee, you must also specify the workspace to filter on. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
                          },
                          {
                              displayName: 'Field Names or IDs',
                              name: 'opt_fields',
                              type: 'multiOptions',
                              typeOptions: {
                                  loadOptionsMethod: 'getTaskFields',
                              },
                              default: ['gid', 'name', 'resource_type'],
                              description: 'Defines fields to return. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
                          },
                          {
                              displayName: 'Pretty',
                              name: 'opt_pretty',
                              type: 'boolean',
                              default: false,
                              description: 'Whether to provide “pretty” output',
                          },
                          {
                              displayName: 'Project Name or ID',
                              name: 'project',
                              type: 'options',
                              typeOptions: {
                                  loadOptionsMethod: 'getProjects',
                              },
                              default: '',
                              description: 'The project to filter tasks on. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
                          },
                          {
                              displayName: 'Section Name or ID',
                              name: 'section',
                              type: 'options',
                              typeOptions: {
                                  loadOptionsMethod: 'getSections',
                              },
                              default: '',
                              description: 'The section to filter tasks on. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
                          },
                          {
                              displayName: 'Workspace Name or ID',
                              name: 'workspace',
                              type: 'options',
                              typeOptions: {
                                  loadOptionsMethod: 'getWorkspaces',
                              },
                              default: '',
                              description: 'The workspace to filter tasks on. Note: If you specify workspace, you must also specify the assignee to filter on. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
                          },
                          {
                              displayName: 'Completed Since',
                              name: 'completed_since',
                              type: 'dateTime',
                              default: '',
                              description: 'Only return tasks that are either incomplete or that have been completed since this time',
                          },
                          {
                              displayName: 'Modified Since',
                              name: 'modified_since',
                              type: 'dateTime',
                              default: '',
                              description: 'Only return tasks that have been modified since the given time',
                          },
                      ],
                  },
                  {
                      displayName: 'Task ID',
                      name: 'id',
                      type: 'string',
                      default: '',
                      required: true,
                      displayOptions: {
                          show: {
                              operation: ['move'],
                              resource: ['task'],
                          },
                      },
                      description: 'The ID of the task to be moved',
                  },
                  {
                      displayName: 'Project Name or ID',
                      name: 'projectId',
                      type: 'options',
                      typeOptions: {
                          loadOptionsMethod: 'getProjects',
                      },
                      options: [],
                      default: '',
                      required: true,
                      displayOptions: {
                          show: {
                              operation: ['move'],
                              resource: ['task'],
                          },
                      },
                      description: 'Project to show the sections of. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
                  },
                  {
                      displayName: 'Section Name or ID',
                      name: 'section',
                      type: 'options',
                      typeOptions: {
                          loadOptionsDependsOn: ['projectId'],
                          loadOptionsMethod: 'getSections',
                      },
                      options: [],
                      default: '',
                      required: true,
                      displayOptions: {
                          show: {
                              operation: ['move'],
                              resource: ['task'],
                          },
                      },
                      description: 'The Section to move the task to. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
                  },
                  {
                      displayName: 'Task ID',
                      name: 'id',
                      type: 'string',
                      default: '',
                      required: true,
                      displayOptions: {
                          show: {
                              operation: ['update'],
                              resource: ['task'],
                          },
                      },
                      description: 'The ID of the task to update the data of',
                  },
                  {
                      displayName: 'Workspace Name or ID',
                      name: 'workspace',
                      type: 'options',
                      typeOptions: {
                          loadOptionsMethod: 'getWorkspaces',
                      },
                      options: [],
                      default: '',
                      required: true,
                      displayOptions: {
                          show: {
                              operation: ['search'],
                              resource: ['task'],
                          },
                      },
                      description: 'The workspace in which the task is searched. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
                  },
                  {
                      displayName: 'Filters',
                      name: 'searchTaskProperties',
                      type: 'collection',
                      displayOptions: {
                          show: {
                              operation: ['search'],
                              resource: ['task'],
                          },
                      },
                      default: {},
                      description: 'Properties to search for',
                      placeholder: 'Add Filter',
                      options: [
                          {
                              displayName: 'Completed',
                              name: 'completed',
                              type: 'boolean',
                              default: false,
                              description: 'Whether the task is marked completed',
                          },
                          {
                              displayName: 'Text',
                              name: 'text',
                              type: 'string',
                              typeOptions: {
                                  rows: 5,
                              },
                              default: '',
                              description: 'Text to search for in name or notes',
                          },
                      ],
                  },
                  {
                      displayName: 'Additional Fields',
                      name: 'otherProperties',
                      type: 'collection',
                      displayOptions: {
                          show: {
                              resource: ['task'],
                              operation: ['create', 'update'],
                          },
                      },
                      default: {},
                      placeholder: 'Add Field',
                      options: [
                          {
                              displayName: 'Assignee Name or ID',
                              name: 'assignee',
                              type: 'options',
                              typeOptions: {
                                  loadOptionsMethod: 'getUsers',
                              },
                              default: '',
                              description: 'Set Assignee on the task. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
                          },
                          {
                              displayName: 'Assignee Status',
                              name: 'assignee_status',
                              type: 'options',
                              options: [
                                  {
                                      name: 'Inbox',
                                      value: 'inbox',
                                  },
                                  {
                                      name: 'Today',
                                      value: 'today',
                                  },
                                  {
                                      name: 'Upcoming',
                                      value: 'upcoming',
                                  },
                                  {
                                      name: 'Later',
                                      value: 'later',
                                  },
                              ],
                              default: 'inbox',
                              description: 'Set Assignee status on the task (requires Assignee)',
                          },
                          {
                              displayName: 'Completed',
                              name: 'completed',
                              type: 'boolean',
                              default: false,
                              description: 'Whether the task should be marked completed',
                          },
                          {
                              displayName: 'Due On',
                              name: 'due_on',
                              type: 'dateTime',
                              default: '',
                              description: 'Date on which the time is due',
                          },
                          {
                              displayName: 'Name',
                              name: 'name',
                              type: 'string',
                              default: '',
                              displayOptions: {
                                  show: {
                                      '/operation': ['update'],
                                  },
                              },
                              description: 'The new name of the task',
                          },
                          {
                              displayName: 'Liked',
                              name: 'liked',
                              type: 'boolean',
                              default: false,
                              description: 'Whether the task is liked by the authorized user',
                          },
                          {
                              displayName: 'Notes',
                              name: 'notes',
                              type: 'string',
                              typeOptions: {
                                  rows: 5,
                              },
                              default: '',
                              description: 'The task notes',
                          },
                          {
                              displayName: 'Project Names or IDs',
                              name: 'projects',
                              type: 'multiOptions',
                              typeOptions: {
                                  loadOptionsMethod: 'getProjects',
                              },
                              default: [],
                              description: 'The project to filter tasks on. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
                          },
                      ],
                  },
                  {
                      displayName: 'Operation',
                      name: 'operation',
                      type: 'options',
                      noDataExpression: true,
                      displayOptions: {
                          show: {
                              resource: ['taskComment'],
                          },
                      },
                      options: [
                          {
                              name: 'Add',
                              value: 'add',
                              description: 'Add a comment to a task',
                              action: 'Add a task comment',
                          },
                          {
                              name: 'Remove',
                              value: 'remove',
                              description: 'Remove a comment from a task',
                              action: 'Remove a task comment',
                          },
                      ],
                      default: 'add',
                  },
                  {
                      displayName: 'Task ID',
                      name: 'id',
                      type: 'string',
                      default: '',
                      required: true,
                      displayOptions: {
                          show: {
                              operation: ['add'],
                              resource: ['taskComment'],
                          },
                      },
                      description: 'The ID of the task to add the comment to',
                  },
                  {
                      displayName: 'Is Text HTML',
                      name: 'isTextHtml',
                      type: 'boolean',
                      displayOptions: {
                          show: {
                              operation: ['add'],
                              resource: ['taskComment'],
                          },
                      },
                      default: false,
                      description: 'Whether body is HTML or simple text',
                  },
                  {
                      displayName: 'Text',
                      name: 'text',
                      type: 'string',
                      default: '',
                      required: true,
                      displayOptions: {
                          show: {
                              operation: ['add'],
                              resource: ['taskComment'],
                              isTextHtml: [false],
                          },
                      },
                      description: 'The plain text of the comment to add',
                  },
                  {
                      displayName: 'HTML Text',
                      name: 'text',
                      type: 'string',
                      default: '',
                      required: true,
                      displayOptions: {
                          show: {
                              operation: ['add'],
                              resource: ['taskComment'],
                              isTextHtml: [true],
                          },
                      },
                      description: 'Comment as HTML string. Do not use together with plain text.',
                  },
                  {
                      displayName: 'Additional Fields',
                      name: 'additionalFields',
                      type: 'collection',
                      displayOptions: {
                          show: {
                              operation: ['add'],
                              resource: ['taskComment'],
                          },
                      },
                      default: {},
                      description: 'Properties of the task comment',
                      placeholder: 'Add Field',
                      options: [
                          {
                              displayName: 'Pinned',
                              name: 'is_pinned',
                              type: 'boolean',
                              default: false,
                              description: 'Whether to pin the comment',
                          },
                      ],
                  },
                  {
                      displayName: 'Comment ID',
                      name: 'id',
                      type: 'string',
                      default: '',
                      required: true,
                      displayOptions: {
                          show: {
                              operation: ['remove'],
                              resource: ['taskComment'],
                          },
                      },
                      description: 'The ID of the comment to be removed',
                  },
                  {
                      displayName: 'Operation',
                      name: 'operation',
                      type: 'options',
                      noDataExpression: true,
                      displayOptions: {
                          show: {
                              resource: ['taskProject'],
                          },
                      },
                      options: [
                          {
                              name: 'Add',
                              value: 'add',
                              description: 'Add a task to a project',
                              action: 'Add a task project',
                          },
                          {
                              name: 'Remove',
                              value: 'remove',
                              description: 'Remove a task from a project',
                              action: 'Remove a task project',
                          },
                      ],
                      default: 'add',
                  },
                  {
                      displayName: 'Task ID',
                      name: 'id',
                      type: 'string',
                      default: '',
                      required: true,
                      displayOptions: {
                          show: {
                              operation: ['add'],
                              resource: ['taskProject'],
                          },
                      },
                      description: 'The ID of the task to add the project to',
                  },
                  {
                      displayName: 'Project Name or ID',
                      name: 'project',
                      type: 'options',
                      typeOptions: {
                          loadOptionsMethod: 'getProjects',
                      },
                      default: '',
                      required: true,
                      displayOptions: {
                          show: {
                              operation: ['add'],
                              resource: ['taskProject'],
                          },
                      },
                      description: 'The project where the task will be added. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
                  },
                  {
                      displayName: 'Additional Fields',
                      name: 'additionalFields',
                      type: 'collection',
                      displayOptions: {
                          show: {
                              resource: ['taskProject'],
                              operation: ['add'],
                          },
                      },
                      default: {},
                      description: 'Other properties to set',
                      placeholder: 'Add Field',
                      options: [
                          {
                              displayName: 'Insert After',
                              name: 'insert_after',
                              type: 'string',
                              default: '',
                              description: 'A task in the project to insert the task after, or null to insert at the beginning of the list',
                          },
                          {
                              displayName: 'Insert Before',
                              name: 'insert_before',
                              type: 'string',
                              default: '',
                              description: 'A task in the project to insert the task before, or null to insert at the end of the list',
                          },
                          {
                              displayName: 'Section',
                              name: 'section',
                              type: 'string',
                              default: '',
                              description: 'A section in the project to insert the task into. The task will be inserted at the bottom of the section.',
                          },
                      ],
                  },
                  {
                      displayName: 'Task ID',
                      name: 'id',
                      type: 'string',
                      default: '',
                      required: true,
                      displayOptions: {
                          show: {
                              operation: ['remove'],
                              resource: ['taskProject'],
                          },
                      },
                      description: 'The ID of the task to add the project to',
                  },
                  {
                      displayName: 'Project Name or ID',
                      name: 'project',
                      type: 'options',
                      typeOptions: {
                          loadOptionsMethod: 'getProjects',
                      },
                      default: '',
                      required: true,
                      displayOptions: {
                          show: {
                              operation: ['remove'],
                              resource: ['taskProject'],
                          },
                      },
                      description: 'The project where the task will be removed from. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
                  },
                  {
                      displayName: 'Operation',
                      name: 'operation',
                      type: 'options',
                      noDataExpression: true,
                      displayOptions: {
                          show: {
                              resource: ['taskTag'],
                          },
                      },
                      options: [
                          {
                              name: 'Add',
                              value: 'add',
                              description: 'Add a tag to a task',
                              action: 'Add a task tag',
                          },
                          {
                              name: 'Remove',
                              value: 'remove',
                              description: 'Remove a tag from a task',
                              action: 'Remove a task tag',
                          },
                      ],
                      default: 'add',
                  },
                  {
                      displayName: 'Task ID',
                      name: 'id',
                      type: 'string',
                      default: '',
                      required: true,
                      displayOptions: {
                          show: {
                              operation: ['add'],
                              resource: ['taskTag'],
                          },
                      },
                      description: 'The ID of the task to add the tag to',
                  },
                  {
                      displayName: 'Tags Name or ID',
                      name: 'tag',
                      type: 'options',
                      typeOptions: {
                          loadOptionsDependsOn: ['id'],
                          loadOptionsMethod: 'getTags',
                      },
                      default: '',
                      required: true,
                      displayOptions: {
                          show: {
                              operation: ['add'],
                              resource: ['taskTag'],
                          },
                      },
                      description: 'The tag that should be added. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
                  },
                  {
                      displayName: 'Task ID',
                      name: 'id',
                      type: 'string',
                      default: '',
                      required: true,
                      displayOptions: {
                          show: {
                              operation: ['remove'],
                              resource: ['taskTag'],
                          },
                      },
                      description: 'The ID of the task to add the tag to',
                  },
                  {
                      displayName: 'Tags Name or ID',
                      name: 'tag',
                      type: 'options',
                      typeOptions: {
                          loadOptionsDependsOn: ['id'],
                          loadOptionsMethod: 'getTags',
                      },
                      default: '',
                      required: true,
                      displayOptions: {
                          show: {
                              operation: ['remove'],
                              resource: ['taskTag'],
                          },
                      },
                      description: 'The tag that should be added. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
                  },
                  {
                      displayName: 'Operation',
                      name: 'operation',
                      type: 'options',
                      noDataExpression: true,
                      displayOptions: {
                          show: {
                              resource: ['user'],
                          },
                      },
                      options: [
                          {
                              name: 'Get',
                              value: 'get',
                              description: 'Get a user',
                              action: 'Get a user',
                          },
                          {
                              name: 'Get Many',
                              value: 'getAll',
                              description: 'Get many users',
                              action: 'Get many users',
                          },
                      ],
                      default: 'get',
                  },
                  {
                      displayName: 'User ID',
                      name: 'userId',
                      type: 'string',
                      default: '',
                      required: true,
                      displayOptions: {
                          show: {
                              operation: ['get'],
                              resource: ['user'],
                          },
                      },
                      description: 'An identifier for the user to get data of. Can be one of an email address,the globally unique identifier for the user, or the keyword me to indicate the current user making the request.',
                  },
                  {
                      displayName: 'Workspace Name or ID',
                      name: 'workspace',
                      type: 'options',
                      typeOptions: {
                          loadOptionsMethod: 'getWorkspaces',
                      },
                      options: [],
                      default: '',
                      required: true,
                      displayOptions: {
                          show: {
                              operation: ['getAll'],
                              resource: ['user'],
                          },
                      },
                      description: 'The workspace in which to get users. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
                  },
                  {
                      displayName: 'Operation',
                      name: 'operation',
                      type: 'options',
                      noDataExpression: true,
                      displayOptions: {
                          show: {
                              resource: ['project'],
                          },
                      },
                      options: [
                          {
                              name: 'Create',
                              value: 'create',
                              description: 'Create a new project',
                              action: 'Create a project',
                          },
                          {
                              name: 'Delete',
                              value: 'delete',
                              description: 'Delete a project',
                              action: 'Delete a project',
                          },
                          {
                              name: 'Get',
                              value: 'get',
                              description: 'Get a project',
                              action: 'Get a project',
                          },
                          {
                              name: 'Get Many',
                              value: 'getAll',
                              description: 'Get many projects',
                              action: 'Get many projects',
                          },
                          {
                              name: 'Update',
                              value: 'update',
                              description: 'Update a project',
                              action: 'Update a project',
                          },
                      ],
                      default: 'get',
                  },
                  {
                      displayName: 'Name',
                      name: 'name',
                      type: 'string',
                      default: '',
                      required: true,
                      displayOptions: {
                          show: {
                              operation: ['create'],
                              resource: ['project'],
                          },
                      },
                      description: 'The name of the project to create',
                  },
                  {
                      displayName: 'Workspace Name or ID',
                      name: 'workspace',
                      type: 'options',
                      typeOptions: {
                          loadOptionsMethod: 'getWorkspaces',
                      },
                      default: '',
                      required: true,
                      displayOptions: {
                          show: {
                              operation: ['create'],
                              resource: ['project'],
                          },
                      },
                      description: 'The workspace to create the project in. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
                  },
                  {
                      displayName: 'Team Name or ID',
                      name: 'team',
                      type: 'options',
                      typeOptions: {
                          loadOptionsDependsOn: ['workspace'],
                          loadOptionsMethod: 'getTeams',
                      },
                      displayOptions: {
                          show: {
                              operation: ['create'],
                              resource: ['project'],
                          },
                      },
                      default: '',
                      description: 'The team this project will be assigned to. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
                  },
                  {
                      displayName: 'Additional Fields',
                      name: 'additionalFields',
                      type: 'collection',
                      displayOptions: {
                          show: {
                              resource: ['project'],
                              operation: ['create'],
                          },
                      },
                      default: {},
                      description: 'Other properties to set',
                      placeholder: 'Add Property',
                      options: [
                          {
                              displayName: 'Color',
                              name: 'color',
                              type: 'options',
                              options: (0, GenericFunctions_1.getColorOptions)(),
                              default: 'none',
                              description: 'Color of the project',
                          },
                          {
                              displayName: 'Due On',
                              name: 'due_on',
                              type: 'dateTime',
                              default: '',
                              description: 'The day on which this project is due. This takes a date with format YYYY-MM-DD.',
                          },
                          {
                              displayName: 'Notes',
                              name: 'notes',
                              type: 'string',
                              default: '',
                              description: 'Basic description or notes for the project',
                          },
                      ],
                  },
                  {
                      displayName: 'Project ID',
                      name: 'id',
                      type: 'string',
                      default: '',
                      required: true,
                      displayOptions: {
                          show: {
                              operation: ['delete'],
                              resource: ['project'],
                          },
                      },
                  },
                  {
                      displayName: 'Project ID',
                      name: 'id',
                      type: 'string',
                      default: '',
                      required: true,
                      displayOptions: {
                          show: {
                              operation: ['get'],
                              resource: ['project'],
                          },
                      },
                  },
                  {
                      displayName: 'Workspace Name or ID',
                      name: 'workspace',
                      type: 'options',
                      typeOptions: {
                          loadOptionsMethod: 'getWorkspaces',
                      },
                      options: [],
                      default: '',
                      required: true,
                      displayOptions: {
                          show: {
                              operation: ['getAll'],
                              resource: ['project'],
                          },
                      },
                      description: 'The workspace in which to get users. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
                  },
                  {
                      displayName: 'Return All',
                      name: 'returnAll',
                      type: 'boolean',
                      displayOptions: {
                          show: {
                              operation: ['getAll'],
                              resource: ['project'],
                          },
                      },
                      default: false,
                      description: 'Whether to return all results or only up to a given limit',
                  },
                  {
                      displayName: 'Limit',
                      name: 'limit',
                      type: 'number',
                      displayOptions: {
                          show: {
                              operation: ['getAll'],
                              resource: ['project'],
                              returnAll: [false],
                          },
                      },
                      typeOptions: {
                          minValue: 1,
                          maxValue: 500,
                      },
                      default: 100,
                      description: 'Max number of results to return',
                  },
                  {
                      displayName: 'Additional Fields',
                      name: 'additionalFields',
                      type: 'collection',
                      displayOptions: {
                          show: {
                              resource: ['project'],
                              operation: ['getAll'],
                          },
                      },
                      default: {},
                      description: 'Other properties to set',
                      placeholder: 'Add Property',
                      options: [
                          {
                              displayName: 'Archived',
                              name: 'archived',
                              type: 'boolean',
                              default: false,
                              description: 'Whether to only return projects whose archived field takes on the value of this parameter',
                          },
                          {
                              displayName: 'Teams Name or ID',
                              name: 'team',
                              type: 'options',
                              typeOptions: {
                                  loadOptionsDependsOn: ['workspace'],
                                  loadOptionsMethod: 'getTeams',
                              },
                              default: '',
                              description: 'The new name of the task. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
                          },
                      ],
                  },
                  {
                      displayName: 'Workspace Name or ID',
                      name: 'workspace',
                      type: 'options',
                      typeOptions: {
                          loadOptionsMethod: 'getWorkspaces',
                      },
                      options: [],
                      default: '',
                      required: true,
                      displayOptions: {
                          show: {
                              operation: ['update'],
                              resource: ['project'],
                          },
                      },
                      description: 'The workspace in which to get users. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
                  },
                  {
                      displayName: 'Project ID',
                      name: 'id',
                      type: 'string',
                      default: '',
                      required: true,
                      displayOptions: {
                          show: {
                              operation: ['update'],
                              resource: ['project'],
                          },
                      },
                      description: 'The ID of the project to update the data of',
                  },
                  {
                      displayName: 'Update Fields',
                      name: 'updateFields',
                      type: 'collection',
                      displayOptions: {
                          show: {
                              resource: ['project'],
                              operation: ['update'],
                          },
                      },
                      default: {},
                      description: 'Other properties to set',
                      placeholder: 'Add Property',
                      options: [
                          {
                              displayName: 'Color',
                              name: 'color',
                              type: 'options',
                              options: (0, GenericFunctions_1.getColorOptions)(),
                              default: 'none',
                              description: 'Color of the project',
                          },
                          {
                              displayName: 'Due On',
                              name: 'due_on',
                              type: 'dateTime',
                              default: '',
                              description: 'The day on which this project is due. This takes a date with format YYYY-MM-DD.',
                          },
                          {
                              displayName: 'Name',
                              name: 'name',
                              type: 'string',
                              default: '',
                              description: 'The name of the project',
                          },
                          {
                              displayName: 'Notes',
                              name: 'notes',
                              type: 'string',
                              default: '',
                              description: 'Basic description or notes for the project',
                          },
                          {
                              displayName: 'Owner',
                              name: 'owner',
                              type: 'string',
                              default: '',
                              description: 'The new assignee/cardinal for this project',
                          },
                          {
                              displayName: 'Team Name or ID',
                              name: 'team',
                              type: 'options',
                              typeOptions: {
                                  loadOptionsDependsOn: ['workspace'],
                                  loadOptionsMethod: 'getTeams',
                              },
                              default: '',
                              description: 'The team this project will be assigned to. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
                          },
                      ],
                  },
              ],
          };
          this.methods = {
              loadOptions: {
                  getWorkspaces: GenericFunctions_1.getWorkspaces,
                  async getProjects() {
                      const endpoint = '/projects';
                      const responseData = await GenericFunctions_1.asanaApiRequest.call(this, 'GET', endpoint, {});
                      if (responseData.data === undefined) {
                          throw new n8n_workflow_1.NodeApiError(this.getNode(), responseData, {
                              message: 'No data got returned',
                          });
                      }
                      const returnData = [];
                      for (const projectData of responseData.data) {
                          if (projectData.resource_type !== 'project') {
                              continue;
                          }
                          const projectName = projectData.name;
                          const projectId = projectData.gid;
                          returnData.push({
                              name: projectName,
                              value: projectId,
                          });
                      }
                      returnData.sort((a, b) => {
                          if (a.name < b.name) {
                              return -1;
                          }
                          if (a.name > b.name) {
                              return 1;
                          }
                          return 0;
                      });
                      return returnData;
                  },
                  async getSections() {
                      const projectId = this.getNodeParameter('projectId');
                      const endpoint = `/projects/${projectId}/sections`;
                      const responseData = await GenericFunctions_1.asanaApiRequest.call(this, 'GET', endpoint, {});
                      if (responseData.data === undefined) {
                          throw new n8n_workflow_1.NodeApiError(this.getNode(), responseData, {
                              message: 'No data got returned',
                          });
                      }
                      const returnData = [];
                      for (const sectionData of responseData.data) {
                          if (sectionData.resource_type !== 'section') {
                              continue;
                          }
                          returnData.push({
                              name: sectionData.name,
                              value: sectionData.gid,
                          });
                      }
                      returnData.sort((a, b) => {
                          if (a.name < b.name) {
                              return -1;
                          }
                          if (a.name > b.name) {
                              return 1;
                          }
                          return 0;
                      });
                      return returnData;
                  },
                  async getTeams() {
                      const workspaceId = this.getCurrentNodeParameter('workspace');
                      const workspace = await GenericFunctions_1.asanaApiRequest.call(this, 'GET', `/workspaces/${workspaceId}`, {});
                      if (workspace.is_organization === false) {
                          throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'To filter by team, the workspace selected has to be an organization');
                      }
                      const endpoint = `/organizations/${workspaceId}/teams`;
                      const responseData = await GenericFunctions_1.asanaApiRequestAllItems.call(this, 'GET', endpoint, {});
                      const returnData = [];
                      for (const teamData of responseData) {
                          if (teamData.resource_type !== 'team') {
                              continue;
                          }
                          returnData.push({
                              name: teamData.name,
                              value: teamData.gid,
                          });
                      }
                      returnData.sort((a, b) => {
                          if (a.name < b.name) {
                              return -1;
                          }
                          if (a.name > b.name) {
                              return 1;
                          }
                          return 0;
                      });
                      return returnData;
                  },
                  async getTags() {
                      const endpoint = '/tags';
                      const taskId = this.getNodeParameter('id');
                      let taskData;
                      try {
                          taskData = await GenericFunctions_1.asanaApiRequest.call(this, 'GET', `/tasks/${taskId}`, {});
                      }
                      catch (error) {
                          throw new n8n_workflow_1.NodeApiError(this.getNode(), error, {
                              message: `Could not find task with id "${taskId}" so tags could not be loaded.`,
                          });
                      }
                      const workspace = taskData.data.workspace.gid;
                      const responseData = await GenericFunctions_1.asanaApiRequest.call(this, 'GET', endpoint, {}, { workspace });
                      if (responseData.data === undefined) {
                          throw new n8n_workflow_1.NodeApiError(this.getNode(), responseData, {
                              message: 'No data got returned',
                          });
                      }
                      const returnData = [];
                      for (const tagData of responseData.data) {
                          if (tagData.resource_type !== 'tag') {
                              continue;
                          }
                          returnData.push({
                              name: tagData.name,
                              value: tagData.gid,
                          });
                      }
                      returnData.sort((a, b) => {
                          if (a.name < b.name) {
                              return -1;
                          }
                          if (a.name > b.name) {
                              return 1;
                          }
                          return 0;
                      });
                      return returnData;
                  },
                  async getUsers() {
                      const endpoint = '/users';
                      const responseData = await GenericFunctions_1.asanaApiRequest.call(this, 'GET', endpoint, {});
                      if (responseData.data === undefined) {
                          throw new n8n_workflow_1.NodeApiError(this.getNode(), responseData, {
                              message: 'No data got returned',
                          });
                      }
                      const returnData = [];
                      for (const userData of responseData.data) {
                          if (userData.resource_type !== 'user') {
                              continue;
                          }
                          returnData.push({
                              name: userData.name,
                              value: userData.gid,
                          });
                      }
                      return returnData;
                  },
                  async getTaskFields() {
                      const returnData = [];
                      for (const field of (0, GenericFunctions_1.getTaskFields)()) {
                          const value = (0, change_case_1.snakeCase)(field);
                          returnData.push({
                              name: field,
                              value: value === '' ? '*' : value,
                          });
                      }
                      return returnData;
                  },
              },
          };
      }
      async execute() {
          const items = this.getInputData();
          const returnData = [];
          const timezone = this.getTimezone();
          const resource = this.getNodeParameter('resource', 0);
          const operation = this.getNodeParameter('operation', 0);
          let endpoint = '';
          let requestMethod = 'GET';
          let body;
          let qs;
          let responseData;
          for (let i = 0; i < items.length; i++) {
              try {
                  body = {};
                  qs = {};
                  if (resource === 'subtask') {
                      if (operation === 'create') {
                          const taskId = this.getNodeParameter('taskId', i);
                          requestMethod = 'POST';
                          endpoint = `/tasks/${taskId}/subtasks`;
                          body.name = this.getNodeParameter('name', i);
                          const otherProperties = this.getNodeParameter('otherProperties', i);
                          Object.assign(body, otherProperties);
                          responseData = await GenericFunctions_1.asanaApiRequest.call(this, requestMethod, endpoint, body, qs);
                          responseData = responseData.data;
                      }
                      if (operation === 'getAll') {
                          const taskId = this.getNodeParameter('taskId', i);
                          const returnAll = this.getNodeParameter('returnAll', i);
                          const options = this.getNodeParameter('options', i);
                          requestMethod = 'GET';
                          endpoint = `/tasks/${taskId}/subtasks`;
                          Object.assign(qs, options);
                          if (qs.opt_fields) {
                              const fields = qs.opt_fields;
                              if (fields.includes('*')) {
                                  qs.opt_fields = (0, GenericFunctions_1.getTaskFields)()
                                      .map((e) => (0, change_case_1.snakeCase)(e))
                                      .join(',');
                              }
                              else {
                                  qs.opt_fields = qs.opt_fields.join(',');
                              }
                          }
                          responseData = await GenericFunctions_1.asanaApiRequest.call(this, requestMethod, endpoint, body, qs);
                          responseData = responseData.data;
                          if (!returnAll) {
                              const limit = this.getNodeParameter('limit', i);
                              responseData = responseData.splice(0, limit);
                          }
                      }
                  }
                  if (resource === 'task') {
                      if (operation === 'create') {
                          requestMethod = 'POST';
                          endpoint = '/tasks';
                          body.name = this.getNodeParameter('name', i);
                          body.workspace = this.getNodeParameter('workspace', i);
                          const otherProperties = this.getNodeParameter('otherProperties', i);
                          Object.assign(body, otherProperties);
                          responseData = await GenericFunctions_1.asanaApiRequest.call(this, requestMethod, endpoint, body, qs);
                          responseData = responseData.data;
                      }
                      else if (operation === 'delete') {
                          requestMethod = 'DELETE';
                          endpoint = '/tasks/' + this.getNodeParameter('id', i);
                          responseData = await GenericFunctions_1.asanaApiRequest.call(this, requestMethod, endpoint, body, qs);
                          responseData = responseData.data;
                      }
                      else if (operation === 'get') {
                          requestMethod = 'GET';
                          endpoint = '/tasks/' + this.getNodeParameter('id', i);
                          responseData = await GenericFunctions_1.asanaApiRequest.call(this, requestMethod, endpoint, body, qs);
                          responseData = responseData.data;
                      }
                      else if (operation === 'getAll') {
                          const filters = this.getNodeParameter('filters', i);
                          const returnAll = this.getNodeParameter('returnAll', i);
                          requestMethod = 'GET';
                          endpoint = '/tasks';
                          Object.assign(qs, filters);
                          if (qs.opt_fields) {
                              const fields = qs.opt_fields;
                              if (fields.includes('*')) {
                                  qs.opt_fields = (0, GenericFunctions_1.getTaskFields)()
                                      .map((e) => (0, change_case_1.snakeCase)(e))
                                      .join(',');
                              }
                              else {
                                  qs.opt_fields = qs.opt_fields.join(',');
                              }
                          }
                          if (qs.modified_since) {
                              qs.modified_since = moment_timezone_1.default.tz(qs.modified_since, timezone).format();
                          }
                          if (qs.completed_since) {
                              qs.completed_since = moment_timezone_1.default.tz(qs.completed_since, timezone).format();
                          }
                          if (returnAll) {
                              responseData = await GenericFunctions_1.asanaApiRequestAllItems.call(this, requestMethod, endpoint, body, qs);
                          }
                          else {
                              qs.limit = this.getNodeParameter('limit', i);
                              responseData = await GenericFunctions_1.asanaApiRequest.call(this, requestMethod, endpoint, body, qs);
                              responseData = responseData.data;
                          }
                      }
                      else if (operation === 'move') {
                          const sectionId = this.getNodeParameter('section', i);
                          requestMethod = 'POST';
                          endpoint = `/sections/${sectionId}/addTask`;
                          body.task = this.getNodeParameter('id', i);
                          Object.assign(body);
                          responseData = await GenericFunctions_1.asanaApiRequest.call(this, requestMethod, endpoint, body, qs);
                          responseData = { success: true };
                      }
                      else if (operation === 'update') {
                          requestMethod = 'PUT';
                          endpoint = '/tasks/' + this.getNodeParameter('id', i);
                          const otherProperties = this.getNodeParameter('otherProperties', i);
                          Object.assign(body, otherProperties);
                          responseData = await GenericFunctions_1.asanaApiRequest.call(this, requestMethod, endpoint, body, qs);
                          responseData = responseData.data;
                      }
                      else if (operation === 'search') {
                          const workspaceId = this.getNodeParameter('workspace', i);
                          requestMethod = 'GET';
                          endpoint = `/workspaces/${workspaceId}/tasks/search`;
                          const searchTaskProperties = this.getNodeParameter('searchTaskProperties', i);
                          Object.assign(qs, searchTaskProperties);
                          responseData = await GenericFunctions_1.asanaApiRequest.call(this, requestMethod, endpoint, body, qs);
                          responseData = responseData.data;
                      }
                  }
                  if (resource === 'taskComment') {
                      if (operation === 'add') {
                          const taskId = this.getNodeParameter('id', i);
                          const isTextHtml = this.getNodeParameter('isTextHtml', i);
                          if (!isTextHtml) {
                              body.text = this.getNodeParameter('text', i);
                          }
                          else {
                              body.html_text = this.getNodeParameter('text', i);
                          }
                          requestMethod = 'POST';
                          endpoint = `/tasks/${taskId}/stories`;
                          const additionalFields = this.getNodeParameter('additionalFields', i);
                          Object.assign(body, additionalFields);
                          responseData = await GenericFunctions_1.asanaApiRequest.call(this, requestMethod, endpoint, body, qs);
                          responseData = responseData.data;
                      }
                      if (operation === 'remove') {
                          const commentId = this.getNodeParameter('id', i);
                          requestMethod = 'DELETE';
                          endpoint = `/stories/${commentId}`;
                          responseData = await GenericFunctions_1.asanaApiRequest.call(this, requestMethod, endpoint, body, qs);
                          responseData = { success: true };
                      }
                  }
                  if (resource === 'taskTag') {
                      if (operation === 'add') {
                          const taskId = this.getNodeParameter('id', i);
                          requestMethod = 'POST';
                          endpoint = `/tasks/${taskId}/addTag`;
                          body.tag = this.getNodeParameter('tag', i);
                          responseData = await GenericFunctions_1.asanaApiRequest.call(this, requestMethod, endpoint, body, qs);
                          responseData = { success: true };
                      }
                      if (operation === 'remove') {
                          const taskId = this.getNodeParameter('id', i);
                          requestMethod = 'POST';
                          endpoint = `/tasks/${taskId}/removeTag`;
                          body.tag = this.getNodeParameter('tag', i);
                          responseData = await GenericFunctions_1.asanaApiRequest.call(this, requestMethod, endpoint, body, qs);
                          responseData = { success: true };
                      }
                  }
                  if (resource === 'taskProject') {
                      if (operation === 'add') {
                          const taskId = this.getNodeParameter('id', i);
                          const additionalFields = this.getNodeParameter('additionalFields', i);
                          requestMethod = 'POST';
                          endpoint = `/tasks/${taskId}/addProject`;
                          body.project = this.getNodeParameter('project', i);
                          Object.assign(body, additionalFields);
                          responseData = await GenericFunctions_1.asanaApiRequest.call(this, requestMethod, endpoint, body, qs);
                          responseData = { success: true };
                      }
                      if (operation === 'remove') {
                          const taskId = this.getNodeParameter('id', i);
                          requestMethod = 'POST';
                          endpoint = `/tasks/${taskId}/removeProject`;
                          body.project = this.getNodeParameter('project', i);
                          responseData = await GenericFunctions_1.asanaApiRequest.call(this, requestMethod, endpoint, body, qs);
                          responseData = { success: true };
                      }
                  }
                  if (resource === 'user') {
                      if (operation === 'get') {
                          const userId = this.getNodeParameter('userId', i);
                          requestMethod = 'GET';
                          endpoint = `/users/${userId}`;
                          responseData = await GenericFunctions_1.asanaApiRequest.call(this, requestMethod, endpoint, body, qs);
                          responseData = responseData.data;
                      }
                      else if (operation === 'getAll') {
                          const workspaceId = this.getNodeParameter('workspace', i);
                          requestMethod = 'GET';
                          endpoint = `/workspaces/${workspaceId}/users`;
                          responseData = await GenericFunctions_1.asanaApiRequest.call(this, requestMethod, endpoint, body, qs);
                          responseData = responseData.data;
                      }
                  }
                  if (resource === 'project') {
                      if (operation === 'create') {
                          const additionalFields = this.getNodeParameter('additionalFields', i);
                          const teamId = this.getNodeParameter('team', i);
                          requestMethod = 'POST';
                          endpoint = `/teams/${teamId}/projects`;
                          body.name = this.getNodeParameter('name', i);
                          body.workspace = this.getNodeParameter('workspace', i);
                          if (additionalFields.color) {
                              qs.color = additionalFields.color;
                          }
                          if (additionalFields.due_on) {
                              qs.due_on = additionalFields.due_on;
                          }
                          if (additionalFields.notes) {
                              qs.notes = additionalFields.notes;
                          }
                          responseData = await GenericFunctions_1.asanaApiRequest.call(this, requestMethod, endpoint, body, qs);
                          responseData = responseData.data;
                      }
                      if (operation === 'delete') {
                          const projectId = this.getNodeParameter('id', i);
                          requestMethod = 'DELETE';
                          endpoint = `/projects/${projectId}`;
                          await GenericFunctions_1.asanaApiRequest.call(this, requestMethod, endpoint, body, qs);
                          responseData = { success: true };
                      }
                      if (operation === 'get') {
                          const projectId = this.getNodeParameter('id', i);
                          requestMethod = 'GET';
                          endpoint = `/projects/${projectId}`;
                          responseData = await GenericFunctions_1.asanaApiRequest.call(this, requestMethod, endpoint, body, qs);
                          responseData = responseData.data;
                      }
                      if (operation === 'getAll') {
                          const workspaceId = this.getNodeParameter('workspace', i);
                          const additionalFields = this.getNodeParameter('additionalFields', i);
                          const returnAll = this.getNodeParameter('returnAll', i);
                          requestMethod = 'GET';
                          endpoint = '/projects';
                          if (additionalFields.team) {
                              qs.team = additionalFields.team;
                          }
                          else {
                              qs.workspace = workspaceId;
                          }
                          if (additionalFields.archived) {
                              qs.archived = additionalFields.archived;
                          }
                          if (returnAll) {
                              responseData = await GenericFunctions_1.asanaApiRequestAllItems.call(this, requestMethod, endpoint, body, qs);
                          }
                          else {
                              qs.limit = this.getNodeParameter('limit', i);
                              responseData = await GenericFunctions_1.asanaApiRequest.call(this, requestMethod, endpoint, body, qs);
                              responseData = responseData.data;
                          }
                      }
                      if (operation === 'update') {
                          const projectId = this.getNodeParameter('id', i);
                          const updateFields = this.getNodeParameter('updateFields', i);
                          requestMethod = 'PUT';
                          endpoint = `/projects/${projectId}`;
                          if (updateFields.color) {
                              qs.color = updateFields.color;
                          }
                          if (updateFields.due_on) {
                              qs.due_on = updateFields.due_on;
                          }
                          if (updateFields.name) {
                              body.name = updateFields.name;
                          }
                          if (updateFields.notes) {
                              qs.notes = updateFields.notes;
                          }
                          if (updateFields.owner) {
                              body.owner = updateFields.owner;
                          }
                          if (updateFields.team) {
                              body.team = updateFields.team;
                          }
                          responseData = await GenericFunctions_1.asanaApiRequest.call(this, requestMethod, endpoint, body, qs);
                          responseData = responseData.data;
                      }
                  }
                  returnData.push(...this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(responseData), {
                      itemData: { item: i },
                  }));
              }
              catch (error) {
                  if (this.continueOnFail()) {
                      returnData.push({ error: error.message });
                      continue;
                  }
                  throw error;
              }
          }
          return [returnData];
      }
  }
  exports.Asana = Asana;
  //# sourceMappingURL=Asana.node.js.map

package_info:
[cell repeats an earlier one in this file: 36903 characters]


node_type: n8n-nodes-base.Automizy
name: Automizy
package_name: n8n-nodes-base
display_name: Automizy
description: Consume Automizy API
code_hash: 5bf2d35f75ea1b5f2d4feba181e3fc6af2637832aecf85d5124e984118bbc4e4
source_location: node_modules/n8n-nodes-base/dist/nodes/Automizy/Automizy.node.js
extracted_at: 2025-06-07 19:36:28
updated_at: 2025-06-07 19:36:28
source_code:
  "use strict";
  Object.defineProperty(exports, "__esModule", { value: true });
  exports.Automizy = void 0;
  const GenericFunctions_1 = require("./GenericFunctions");
  const ContactDescription_1 = require("./ContactDescription");
  const ListDescription_1 = require("./ListDescription");
  class Automizy {
      constructor() {
          this.description = {
              displayName: 'Automizy',
              name: 'automizy',
              icon: 'file:automizy.png',
              group: ['input'],
              version: 1,
              subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
              description: 'Consume Automizy API',
              defaults: {
                  name: 'Automizy',
              },
              inputs: ['main'],
              outputs: ['main'],
              credentials: [
                  {
                      name: 'automizyApi',
                      required: true,
                  },
              ],
              properties: [
                  {
                      displayName: 'Resource',
                      name: 'resource',
                      type: 'options',
                      noDataExpression: true,
                      options: [
                          {
                              name: 'Contact',
                              value: 'contact',
                          },
                          {
                              name: 'List',
                              value: 'list',
                          },
                      ],
                      default: 'contact',
                  },
                  ...ContactDescription_1.contactOperations,
                  ...ContactDescription_1.contactFields,
                  ...ListDescription_1.listOperations,
                  ...ListDescription_1.listFields,
              ],
          };
          this.methods = {
              loadOptions: {
                  async getLists() {
                      const returnData = [];
                      const lists = await GenericFunctions_1.automizyApiRequestAllItems.call(this, 'smartLists', 'GET', '/smart-lists');
                      for (const list of lists) {
                          returnData.push({
                              name: list.name,
                              value: list.id,
                          });
                      }
                      return returnData;
                  },
                  async getTags() {
                      const returnData = [];
                      const tags = await GenericFunctions_1.automizyApiRequestAllItems.call(this, 'contactTags', 'GET', '/contacts/tag-manager');
                      for (const tag of tags) {
                          returnData.push({
                              name: tag.name,
                              value: tag.name,
                          });
                      }
                      return returnData;
                  },
                  async getCustomFields() {
                      const returnData = [];
                      const customFields = await GenericFunctions_1.automizyApiRequestAllItems.call(this, 'customFields', 'GET', '/custom-fields');
                      for (const customField of customFields) {
                          returnData.push({
                              name: customField.name,
                              value: customField.id,
                          });
                      }
                      return returnData;
                  },
              },
          };
      }
      async execute() {
          const items = this.getInputData();
          const returnData = [];
          const length = items.length;
          const qs = {};
          let responseData;
          const resource = this.getNodeParameter('resource', 0);
          const operation = this.getNodeParameter('operation', 0);
          for (let i = 0; i < length; i++) {
              if (resource === 'contact') {
                  if (operation === 'create') {
                      const listId = this.getNodeParameter('listId', i);
                      const email = this.getNodeParameter('email', i);
                      const additionalFields = this.getNodeParameter('additionalFields', i);
                      const body = {
                          email,
                      };
                      Object.assign(body, additionalFields);
                      if (body.customFieldsUi) {
                          const customFieldsValues = body.customFieldsUi
                              .customFieldsValues;
                          body.customFields = {};
                          for (const customField of customFieldsValues) {
                              body.customFields[customField.key] = customField.value;
                          }
                          delete body.customFieldsUi;
                      }
                      responseData = await GenericFunctions_1.automizyApiRequest.call(this, 'POST', `/smart-lists/${listId}/contacts`, body);
                      responseData = responseData.contacts;
                      responseData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(responseData), { itemData: { item: i } });
                  }
                  if (operation === 'delete') {
                      const contactId = this.getNodeParameter('contactId', i);
                      responseData = await GenericFunctions_1.automizyApiRequest.call(this, 'DELETE', `/contacts/${contactId}`);
                      responseData = { success: true };
                      responseData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(responseData), { itemData: { item: i } });
                  }
                  if (operation === 'get') {
                      const contactId = this.getNodeParameter('contactId', i);
                      responseData = await GenericFunctions_1.automizyApiRequest.call(this, 'GET', `/contacts/${contactId}`);
                      responseData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(responseData), { itemData: { item: i } });
                  }
                  if (operation === 'getAll') {
                      const returnAll = this.getNodeParameter('returnAll', i);
                      const listId = this.getNodeParameter('listId', i);
                      const additionalFields = this.getNodeParameter('additionalFields', i);
                      if (additionalFields.direction && additionalFields.sortBy) {
                          qs.order = `${additionalFields.sortBy}:${additionalFields.direction}`;
                      }
                      if (additionalFields.fields) {
                          qs.fields = additionalFields.fields;
                      }
                      if (returnAll) {
                          responseData = await GenericFunctions_1.automizyApiRequestAllItems.call(this, 'contacts', 'GET', `/smart-lists/${listId}/contacts`, {}, qs);
                      }
                      else {
                          qs.limit = this.getNodeParameter('limit', i);
                          responseData = await GenericFunctions_1.automizyApiRequest.call(this, 'GET', `/smart-lists/${listId}/contacts`, {}, qs);
                      }
                      responseData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(responseData), { itemData: { item: i } });
                  }
                  if (operation === 'update') {
                      const email = this.getNodeParameter('email', i);
                      const updateFields = this.getNodeParameter('updateFields', i);
                      const body = {};
                      Object.assign(body, updateFields);
                      if (body.customFieldsUi) {
                          const customFieldsValues = body.customFieldsUi
                              .customFieldsValues;
                          body.customFields = {};
                          for (const customField of customFieldsValues) {
                              body.customFields[customField.key] = customField.value;
                          }
                          delete body.customFieldsUi;
                      }
                      responseData = await GenericFunctions_1.automizyApiRequest.call(this, 'PATCH', `/contacts/${email}`, body);
                      responseData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(responseData), { itemData: { item: i } });
                  }
              }
              if (resource === 'list') {
                  if (operation === 'create') {
                      const name = this.getNodeParameter('name', i);
                      const body = {
                          name,
                      };
                      responseData = await GenericFunctions_1.automizyApiRequest.call(this, 'POST', '/smart-lists', body);
                      responseData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(responseData), { itemData: { item: i } });
                  }
                  if (operation === 'delete') {
                      const listId = this.getNodeParameter('listId', i);
                      responseData = await GenericFunctions_1.automizyApiRequest.call(this, 'DELETE', `/smart-lists/${listId}`);
                      responseData = { success: true };
                      responseData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(responseData), { itemData: { item: i } });
                  }
                  if (operation === 'get') {
                      const listId = this.getNodeParameter('listId', i);
                      responseData = await GenericFunctions_1.automizyApiRequest.call(this, 'GET', `/smart-lists/${listId}`);
                      responseData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(responseData), { itemData: { item: i } });
                  }
                  if (operation === 'getAll') {
                      const returnAll = this.getNodeParameter('returnAll', i);
                      const additionalFields = this.getNodeParameter('additionalFields', i);
                      if (additionalFields.direction && additionalFields.sortBy) {
                          qs.order = `${additionalFields.sortBy}:${additionalFields.direction}`;
                      }
                      if (additionalFields.fields) {
                          qs.fields = additionalFields.fields;
                      }
                      if (returnAll) {
                          responseData = await GenericFunctions_1.automizyApiRequestAllItems.call(this, 'smartLists', 'GET', '/smart-lists', {}, qs);
                      }
                      else {
                          qs.limit = this.getNodeParameter('limit', i);
                          responseData = await GenericFunctions_1.automizyApiRequest.call(this, 'GET', '/smart-lists', {}, qs);
                          responseData = responseData.smartLists;
                      }
                      responseData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(responseData), { itemData: { item: i } });
                  }
                  if (operation === 'update') {
                      const listId = this.getNodeParameter('listId', i);
                      const name = this.getNodeParameter('name', i);
                      const body = {
                          name,
                      };
                      responseData = await GenericFunctions_1.automizyApiRequest.call(this, 'PATCH', `/smart-lists/${listId}`, body);
                      responseData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(responseData), { itemData: { item: i } });
                  }
              }
          }
          returnData.push(...responseData);
          return [returnData];
      }
  }
  exports.Automizy = Automizy;
  //# sourceMappingURL=Automizy.node.js.map

package_info:
[cell repeats an earlier one in this file: 36903 characters]


node_type: n8n-nodes-base.Autopilot
name: Autopilot
package_name: n8n-nodes-base
display_name: Autopilot
description: Consume Autopilot API
code_hash: d198d9e6125eb94e376aac9ae8927fc206d613461b0848f5b3024cb262c5e86f
source_location: node_modules/n8n-nodes-base/dist/nodes/Autopilot/Autopilot.node.js
extracted_at: 2025-06-07 19:36:28
updated_at: 2025-06-07 19:36:28
source_code:
  "use strict";
  Object.defineProperty(exports, "__esModule", { value: true });
  exports.Autopilot = void 0;
  const GenericFunctions_1 = require("./GenericFunctions");
  const ContactDescription_1 = require("./ContactDescription");
  const ContactJourneyDescription_1 = require("./ContactJourneyDescription");
  const ContactListDescription_1 = require("./ContactListDescription");
  const ListDescription_1 = require("./ListDescription");
  class Autopilot {
      constructor() {
          this.description = {
              displayName: 'Autopilot',
              name: 'autopilot',
              icon: 'file:autopilot.svg',
              group: ['input'],
              version: 1,
              subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
              description: 'Consume Autopilot API',
              defaults: {
                  name: 'Autopilot',
              },
              inputs: ['main'],
              outputs: ['main'],
              credentials: [
                  {
                      name: 'autopilotApi',
                      required: true,
                  },
              ],
              properties: [
                  {
                      displayName: 'Resource',
                      name: 'resource',
                      type: 'options',
                      noDataExpression: true,
                      options: [
                          {
                              name: 'Contact',
                              value: 'contact',
                          },
                          {
                              name: 'Contact Journey',
                              value: 'contactJourney',
                          },
                          {
                              name: 'Contact List',
                              value: 'contactList',
                          },
                          {
                              name: 'List',
                              value: 'list',
                          },
                      ],
                      default: 'contact',
                  },
                  ...ContactDescription_1.contactOperations,
                  ...ContactDescription_1.contactFields,
                  ...ContactJourneyDescription_1.contactJourneyOperations,
                  ...ContactJourneyDescription_1.contactJourneyFields,
                  ...ContactListDescription_1.contactListOperations,
                  ...ContactListDescription_1.contactListFields,
                  ...ListDescription_1.listOperations,
                  ...ListDescription_1.listFields,
              ],
          };
          this.methods = {
              loadOptions: {
                  async getCustomFields() {
                      const returnData = [];
                      const customFields = await GenericFunctions_1.autopilotApiRequest.call(this, 'GET', '/contacts/custom_fields');
                      for (const customField of customFields) {
                          returnData.push({
                              name: customField.name,
                              value: `${customField.name}-${customField.fieldType}`,
                          });
                      }
                      return returnData;
                  },
                  async getLists() {
                      const returnData = [];
                      const { lists } = await GenericFunctions_1.autopilotApiRequest.call(this, 'GET', '/lists');
                      for (const list of lists) {
                          returnData.push({
                              name: list.title,
                              value: list.list_id,
                          });
                      }
                      return returnData;
                  },
                  async getTriggers() {
                      const returnData = [];
                      const { triggers } = await GenericFunctions_1.autopilotApiRequest.call(this, 'GET', '/triggers');
                      for (const trigger of triggers) {
                          returnData.push({
                              name: trigger.journey,
                              value: trigger.trigger_id,
                          });
                      }
                      return returnData;
                  },
              },
          };
      }
      async execute() {
          const items = this.getInputData();
          const returnData = [];
          const length = items.length;
          const qs = {};
          let responseData;
          const resource = this.getNodeParameter('resource', 0);
          const operation = this.getNodeParameter('operation', 0);
          for (let i = 0; i < length; i++) {
              try {
                  if (resource === 'contact') {
                      if (operation === 'upsert') {
                          const email = this.getNodeParameter('email', i);
                          const additionalFields = this.getNodeParameter('additionalFields', i);
                          const body = {
                              Email: email,
                          };
                          Object.assign(body, additionalFields);
                          if (body.customFieldsUi) {
                              const customFieldsValues = body.customFieldsUi
                                  .customFieldsValues;
                              body.custom = {};
                              for (const customField of customFieldsValues) {
                                  const [name, fieldType] = customField.key.split('-');
                                  const fieldName = name.replace(/\s/g, '--');
                                  body.custom[`${fieldType}--${fieldName}`] = customField.value;
                              }
                              delete body.customFieldsUi;
                          }
                          if (body.autopilotList) {
                              body._autopilot_list = body.autopilotList;
                              delete body.autopilotList;
                          }
                          if (body.autopilotSessionId) {
                              body._autopilot_session_id = body.autopilotSessionId;
                              delete body.autopilotSessionId;
                          }
                          if (body.newEmail) {
                              body._NewEmail = body.newEmail;
                              delete body.newEmail;
                          }
                          responseData = await GenericFunctions_1.autopilotApiRequest.call(this, 'POST', '/contact', {
                              contact: body,
                          });
                      }
                      if (operation === 'delete') {
                          const contactId = this.getNodeParameter('contactId', i);
                          responseData = await GenericFunctions_1.autopilotApiRequest.call(this, 'DELETE', `/contact/${contactId}`);
                          responseData = { success: true };
                      }
                      if (operation === 'get') {
                          const contactId = this.getNodeParameter('contactId', i);
                          responseData = await GenericFunctions_1.autopilotApiRequest.call(this, 'GET', `/contact/${contactId}`);
                      }
                      if (operation === 'getAll') {
                          const returnAll = this.getNodeParameter('returnAll', i);
                          if (!returnAll) {
                              qs.limit = this.getNodeParameter('limit', i);
                          }
                          responseData = await GenericFunctions_1.autopilotApiRequestAllItems.call(this, 'contacts', 'GET', '/contacts', {}, qs);
                          if (!returnAll) {
                              responseData = responseData.splice(0, qs.limit);
                          }
                      }
                  }
                  if (resource === 'contactJourney') {
                      if (operation === 'add') {
                          const triggerId = this.getNodeParameter('triggerId', i);
                          const contactId = this.getNodeParameter('contactId', i);
                          responseData = await GenericFunctions_1.autopilotApiRequest.call(this, 'POST', `/trigger/${triggerId}/contact/${contactId}`);
                          responseData = { success: true };
                      }
                  }
                  if (resource === 'contactList') {
                      if (['add', 'remove', 'exist'].includes(operation)) {
                          const listId = this.getNodeParameter('listId', i);
                          const contactId = this.getNodeParameter('contactId', i);
                          const method = {
                              add: 'POST',
                              remove: 'DELETE',
                              exist: 'GET',
                          };
                          const endpoint = `/list/${listId}/contact/${contactId}`;
                          if (operation === 'exist') {
                              try {
                                  await GenericFunctions_1.autopilotApiRequest.call(this, method[operation], endpoint);
                                  responseData = { exist: true };
                              }
                              catch (error) {
                                  responseData = { exist: false };
                              }
                          }
                          else if (operation === 'add' || operation === 'remove') {
                              responseData = await GenericFunctions_1.autopilotApiRequest.call(this, method[operation], endpoint);
                              responseData.success = true;
                          }
                      }
                      if (operation === 'getAll') {
                          const returnAll = this.getNodeParameter('returnAll', i);
                          const listId = this.getNodeParameter('listId', i);
                          if (!returnAll) {
                              qs.limit = this.getNodeParameter('limit', i);
                          }
                          responseData = await GenericFunctions_1.autopilotApiRequestAllItems.call(this, 'contacts', 'GET', `/list/${listId}/contacts`, {}, qs);
                          if (!returnAll) {
                              responseData = responseData.splice(0, qs.limit);
                          }
                      }
                  }
                  if (resource === 'list') {
                      if (operation === 'create') {
                          const name = this.getNodeParameter('name', i);
                          const body = {
                              name,
                          };
                          responseData = await GenericFunctions_1.autopilotApiRequest.call(this, 'POST', '/list', body);
                      }
                      if (operation === 'getAll') {
                          const returnAll = this.getNodeParameter('returnAll', i);
                          if (!returnAll) {
                              qs.limit = this.getNodeParameter('limit', i);
                          }
                          responseData = await GenericFunctions_1.autopilotApiRequest.call(this, 'GET', '/lists');
                          responseData = responseData.lists;
                          if (!returnAll) {
                              responseData = responseData.splice(0, qs.limit);
                          }
                      }
                  }
                  const executionData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(responseData), { itemData: { item: i } });
                  returnData.push(...executionData);
              }
              catch (error) {
                  if (this.continueOnFail()) {
                      const exectionErrorWithMetaData = this.helpers.constructExecutionMetaData([{ json: { error: error.message } }], { itemData: { item: i } });
                      responseData.push(...exectionErrorWithMetaData);
                      continue;
                  }
                  throw error;
              }
          }
          return [returnData];
      }
  }
  exports.Autopilot = Autopilot;
  //# sourceMappingURL=Autopilot.node.js.map

package_info:
[cell repeats an earlier one in this file: 36903 characters]


node_type: n8n-nodes-base.Bannerbear
name: Bannerbear
package_name: n8n-nodes-base
display_name: Bannerbear
description: Consume Bannerbear API
code_hash: 285a9cea793b026b5d569fa900e48a5cb72787561f0321668a1e0796c15e52d9
source_location: node_modules/n8n-nodes-base/dist/nodes/Bannerbear/Bannerbear.node.js
extracted_at: 2025-06-07 19:36:28
updated_at: 2025-06-07 19:36:28
source_code:
  "use strict";
  Object.defineProperty(exports, "__esModule", { value: true });
  exports.Bannerbear = void 0;
  const GenericFunctions_1 = require("./GenericFunctions");
  const ImageDescription_1 = require("./ImageDescription");
  const TemplateDescription_1 = require("./TemplateDescription");
  class Bannerbear {
      constructor() {
          this.description = {
              displayName: 'Bannerbear',
              name: 'bannerbear',
              icon: 'file:bannerbear.png',
              group: ['output'],
              version: 1,
              subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
              description: 'Consume Bannerbear API',
              defaults: {
                  name: 'Bannerbear',
              },
              inputs: ['main'],
              outputs: ['main'],
              credentials: [
                  {
                      name: 'bannerbearApi',
                      required: true,
                  },
              ],
              properties: [
                  {
                      displayName: 'Resource',
                      name: 'resource',
                      type: 'options',
                      noDataExpression: true,
                      options: [
                          {
                              name: 'Image',
                              value: 'image',
                          },
                          {
                              name: 'Template',
                              value: 'template',
                          },
                      ],
                      default: 'image',
                  },
                  ...ImageDescription_1.imageOperations,
                  ...ImageDescription_1.imageFields,
                  ...TemplateDescription_1.templateOperations,
                  ...TemplateDescription_1.templateFields,
              ],
          };
          this.methods = {
              loadOptions: {
                  async getTemplates() {
                      const returnData = [];
                      const templates = await GenericFunctions_1.bannerbearApiRequest.call(this, 'GET', '/templates');
                      for (const template of templates) {
                          const templateName = template.name;
                          const templateId = template.uid;
                          returnData.push({
                              name: templateName,
                              value: templateId,
                          });
                      }
                      return returnData;
                  },
                  async getModificationNames() {
                      const templateId = this.getCurrentNodeParameter('templateId');
                      const returnData = [];
                      const { available_modifications } = await GenericFunctions_1.bannerbearApiRequest.call(this, 'GET', `/templates/${templateId}`);
                      for (const modification of available_modifications) {
                          const modificationName = modification.name;
                          const modificationId = modification.name;
                          returnData.push({
                              name: modificationName,
                              value: modificationId,
                          });
                      }
                      return returnData;
                  },
              },
          };
      }
      async execute() {
          const items = this.getInputData();
          const returnData = [];
          const length = items.length;
          let responseData;
          const resource = this.getNodeParameter('resource', 0);
          const operation = this.getNodeParameter('operation', 0);
          for (let i = 0; i < length; i++) {
              if (resource === 'image') {
                  if (operation === 'create') {
                      const templateId = this.getNodeParameter('templateId', i);
                      const additionalFields = this.getNodeParameter('additionalFields', i);
                      const modifications = this.getNodeParameter('modificationsUi', i)
                          .modificationsValues;
                      const body = {
                          template: templateId,
                      };
                      if (additionalFields.webhookUrl) {
                          body.webhook_url = additionalFields.webhookUrl;
                      }
                      if (additionalFields.metadata) {
                          body.metadata = additionalFields.metadata;
                      }
                      if (modifications) {
                          body.modifications = (0, GenericFunctions_1.keysToSnakeCase)(modifications);
                          for (const modification of body.modifications) {
                              for (const key of Object.keys(modification)) {
                                  if (modification[key] === '') {
                                      delete modification[key];
                                  }
                              }
                          }
                      }
                      responseData = await GenericFunctions_1.bannerbearApiRequest.call(this, 'POST', '/images', body);
                      if (additionalFields.waitForImage && responseData.status !== 'completed') {
                          let maxTries = additionalFields.waitForImageMaxTries || 3;
                          const promise = async (uid) => {
                              let data = {};
                              return new Promise((resolve, reject) => {
                                  const timeout = setInterval(async () => {
                                      data = await GenericFunctions_1.bannerbearApiRequest.call(this, 'GET', `/images/${uid}`);
                                      if (data.status === 'completed') {
                                          clearInterval(timeout);
                                          resolve(data);
                                      }
                                      if (--maxTries === 0) {
                                          clearInterval(timeout);
                                          reject(new Error('Image did not finish processing after multiple tries.'));
                                      }
                                  }, 2000);
                              });
                          };
                          responseData = await promise(responseData.uid);
                      }
                  }
                  if (operation === 'get') {
                      const imageId = this.getNodeParameter('imageId', i);
                      responseData = await GenericFunctions_1.bannerbearApiRequest.call(this, 'GET', `/images/${imageId}`);
                  }
              }
              if (resource === 'template') {
                  if (operation === 'get') {
                      const templateId = this.getNodeParameter('templateId', i);
                      responseData = await GenericFunctions_1.bannerbearApiRequest.call(this, 'GET', `/templates/${templateId}`);
                  }
                  if (operation === 'getAll') {
                      responseData = await GenericFunctions_1.bannerbearApiRequest.call(this, 'GET', '/templates');
                  }
              }
              if (Array.isArray(responseData)) {
                  returnData.push.apply(returnData, responseData);
              }
              else {
                  returnData.push(responseData);
              }
          }
          return [this.helpers.returnJsonArray(returnData)];
      }
  }
  exports.Bannerbear = Bannerbear;
  //# sourceMappingURL=Bannerbear.node.js.map

package_info:
[cell repeats an earlier one in this file: 36903 characters]


node_type: n8n-nodes-base.Baserow
name: Baserow
package_name: n8n-nodes-base
display_name: Baserow
description: Consume the Baserow API
code_hash: 35dcc1ad8d7ae19a0beea857f0a72f62a5584b739a0724669647f1bf02de6964
source_location: node_modules/n8n-nodes-base/dist/nodes/Baserow/Baserow.node.js
extracted_at: 2025-06-07 19:36:28
updated_at: 2025-06-07 19:36:28
source_code:
  "use strict";
  Object.defineProperty(exports, "__esModule", { value: true });
  exports.Baserow = void 0;
  const GenericFunctions_1 = require("./GenericFunctions");
  const OperationDescription_1 = require("./OperationDescription");
  class Baserow {
      constructor() {
          this.description = {
              displayName: 'Baserow',
              name: 'baserow',
              icon: 'file:baserow.svg',
              group: ['output'],
              version: 1,
              description: 'Consume the Baserow API',
              subtitle: '={{$parameter["operation"] + ":" + $parameter["resource"]}}',
              defaults: {
                  name: 'Baserow',
              },
              inputs: ['main'],
              outputs: ['main'],
              credentials: [
                  {
                      name: 'baserowApi',
                      required: true,
                  },
              ],
              properties: [
                  {
                      displayName: 'Resource',
                      name: 'resource',
                      type: 'options',
                      noDataExpression: true,
                      options: [
                          {
                              name: 'Row',
                              value: 'row',
                          },
                      ],
                      default: 'row',
                  },
                  {
                      displayName: 'Operation',
                      name: 'operation',
                      type: 'options',
                      noDataExpression: true,
                      displayOptions: {
                          show: {
                              resource: ['row'],
                          },
                      },
                      options: [
                          {
                              name: 'Create',
                              value: 'create',
                              description: 'Create a row',
                              action: 'Create a row',
                          },
                          {
                              name: 'Delete',
                              value: 'delete',
                              description: 'Delete a row',
                              action: 'Delete a row',
                          },
                          {
                              name: 'Get',
                              value: 'get',
                              description: 'Retrieve a row',
                              action: 'Get a row',
                          },
                          {
                              name: 'Get Many',
                              value: 'getAll',
                              description: 'Retrieve many rows',
                              action: 'Get many rows',
                          },
                          {
                              name: 'Update',
                              value: 'update',
                              description: 'Update a row',
                              action: 'Update a row',
                          },
                      ],
                      default: 'getAll',
                  },
                  ...OperationDescription_1.operationFields,
              ],
          };
          this.methods = {
              loadOptions: {
                  async getDatabaseIds() {
                      const credentials = (await this.getCredentials('baserowApi'));
                      const jwtToken = await GenericFunctions_1.getJwtToken.call(this, credentials);
                      const endpoint = '/api/applications/';
                      const databases = (await GenericFunctions_1.baserowApiRequest.call(this, 'GET', endpoint, jwtToken));
                      return (0, GenericFunctions_1.toOptions)(databases);
                  },
                  async getTableIds() {
                      const credentials = (await this.getCredentials('baserowApi'));
                      const jwtToken = await GenericFunctions_1.getJwtToken.call(this, credentials);
                      const databaseId = this.getNodeParameter('databaseId', 0);
                      const endpoint = `/api/database/tables/database/${databaseId}/`;
                      const tables = (await GenericFunctions_1.baserowApiRequest.call(this, 'GET', endpoint, jwtToken));
                      return (0, GenericFunctions_1.toOptions)(tables);
                  },
                  async getTableFields() {
                      const credentials = (await this.getCredentials('baserowApi'));
                      const jwtToken = await GenericFunctions_1.getJwtToken.call(this, credentials);
                      const tableId = this.getNodeParameter('tableId', 0);
                      const endpoint = `/api/database/fields/table/${tableId}/`;
                      const fields = (await GenericFunctions_1.baserowApiRequest.call(this, 'GET', endpoint, jwtToken));
                      return (0, GenericFunctions_1.toOptions)(fields);
                  },
              },
          };
      }
      async execute() {
          const items = this.getInputData();
          const mapper = new GenericFunctions_1.TableFieldMapper();
          const returnData = [];
          const operation = this.getNodeParameter('operation', 0);
          const tableId = this.getNodeParameter('tableId', 0);
          const credentials = (await this.getCredentials('baserowApi'));
          const jwtToken = await GenericFunctions_1.getJwtToken.call(this, credentials);
          const fields = await mapper.getTableFields.call(this, tableId, jwtToken);
          mapper.createMappings(fields);
          for (let i = 0; i < items.length; i++) {
              try {
                  if (operation === 'getAll') {
                      const { order, filters, filterType, search } = this.getNodeParameter('additionalOptions', i);
                      const qs = {};
                      if (order === null || order === void 0 ? void 0 : order.fields) {
                          qs.order_by = order.fields
                              .map(({ field, direction }) => `${direction}${mapper.setField(field)}`)
                              .join(',');
                      }
                      if (filters === null || filters === void 0 ? void 0 : filters.fields) {
                          filters.fields.forEach(({ field, operator, value }) => {
                              qs[`filter__field_${mapper.setField(field)}__${operator}`] = value;
                          });
                      }
                      if (filterType) {
                          qs.filter_type = filterType;
                      }
                      if (search) {
                          qs.search = search;
                      }
                      const endpoint = `/api/database/rows/table/${tableId}/`;
                      const rows = (await GenericFunctions_1.baserowApiRequestAllItems.call(this, 'GET', endpoint, jwtToken, {}, qs));
                      rows.forEach((row) => mapper.idsToNames(row));
                      const executionData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(rows), { itemData: { item: i } });
                      returnData.push(...executionData);
                  }
                  else if (operation === 'get') {
                      const rowId = this.getNodeParameter('rowId', i);
                      const endpoint = `/api/database/rows/table/${tableId}/${rowId}/`;
                      const row = await GenericFunctions_1.baserowApiRequest.call(this, 'GET', endpoint, jwtToken);
                      mapper.idsToNames(row);
                      const executionData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(row), { itemData: { item: i } });
                      returnData.push(...executionData);
                  }
                  else if (operation === 'create') {
                      const body = {};
                      const dataToSend = this.getNodeParameter('dataToSend', 0);
                      if (dataToSend === 'autoMapInputData') {
                          const incomingKeys = Object.keys(items[i].json);
                          const rawInputsToIgnore = this.getNodeParameter('inputsToIgnore', i);
                          const inputDataToIgnore = rawInputsToIgnore.split(',').map((c) => c.trim());
                          for (const key of incomingKeys) {
                              if (inputDataToIgnore.includes(key))
                                  continue;
                              body[key] = items[i].json[key];
                              mapper.namesToIds(body);
                          }
                      }
                      else {
                          const fieldsUi = this.getNodeParameter('fieldsUi.fieldValues', i, []);
                          for (const field of fieldsUi) {
                              body[`field_${field.fieldId}`] = field.fieldValue;
                          }
                      }
                      const endpoint = `/api/database/rows/table/${tableId}/`;
                      const createdRow = await GenericFunctions_1.baserowApiRequest.call(this, 'POST', endpoint, jwtToken, body);
                      mapper.idsToNames(createdRow);
                      const executionData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(createdRow), { itemData: { item: i } });
                      returnData.push(...executionData);
                  }
                  else if (operation === 'update') {
                      const rowId = this.getNodeParameter('rowId', i);
                      const body = {};
                      const dataToSend = this.getNodeParameter('dataToSend', 0);
                      if (dataToSend === 'autoMapInputData') {
                          const incomingKeys = Object.keys(items[i].json);
                          const rawInputsToIgnore = this.getNodeParameter('inputsToIgnore', i);
                          const inputsToIgnore = rawInputsToIgnore.split(',').map((c) => c.trim());
                          for (const key of incomingKeys) {
                              if (inputsToIgnore.includes(key))
                                  continue;
                              body[key] = items[i].json[key];
                              mapper.namesToIds(body);
                          }
                      }
                      else {
                          const fieldsUi = this.getNodeParameter('fieldsUi.fieldValues', i, []);
                          for (const field of fieldsUi) {
                              body[`field_${field.fieldId}`] = field.fieldValue;
                          }
                      }
                      const endpoint = `/api/database/rows/table/${tableId}/${rowId}/`;
                      const updatedRow = await GenericFunctions_1.baserowApiRequest.call(this, 'PATCH', endpoint, jwtToken, body);
                      mapper.idsToNames(updatedRow);
                      const executionData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(updatedRow), { itemData: { item: i } });
                      returnData.push(...executionData);
                  }
                  else if (operation === 'delete') {
                      const rowId = this.getNodeParameter('rowId', i);
                      const endpoint = `/api/database/rows/table/${tableId}/${rowId}/`;
                      await GenericFunctions_1.baserowApiRequest.call(this, 'DELETE', endpoint, jwtToken);
                      const executionData = this.helpers.constructExecutionMetaData([{ json: { success: true } }], { itemData: { item: i } });
                      returnData.push(...executionData);
                  }
              }
              catch (error) {
                  if (this.continueOnFail()) {
                      returnData.push({ error: error.message, json: {}, itemIndex: i });
                      continue;
                  }
                  throw error;
              }
          }
          return [returnData];
      }
  }
  exports.Baserow = Baserow;
  //# sourceMappingURL=Baserow.node.js.map

package_info:
[cell repeats an earlier one in this file: 36903 characters]


node_type: n8n-nodes-base.Beeminder
name: Beeminder
package_name: n8n-nodes-base
display_name: Beeminder
description: Consume Beeminder API
code_hash: e13877e1492b155a2b03300e00a395f0ab8a115420e15e3d0c26be5570a6df23
source_location: node_modules/n8n-nodes-base/dist/nodes/Beeminder/Beeminder.node.js
extracted_at: 2025-06-07 19:36:28
updated_at: 2025-06-07 19:36:28
source_code:
  "use strict";
  var __importDefault = (this && this.__importDefault) || function (mod) {
      return (mod && mod.__esModule) ? mod : { "default": mod };
  };
  Object.defineProperty(exports, "__esModule", { value: true });
  exports.Beeminder = void 0;
  const Beeminder_node_functions_1 = require("./Beeminder.node.functions");
  const GenericFunctions_1 = require("./GenericFunctions");
  const moment_timezone_1 = __importDefault(require("moment-timezone"));
  class Beeminder {
      constructor() {
          this.description = {
              displayName: 'Beeminder',
              name: 'beeminder',
              group: ['output'],
              version: 1,
              description: 'Consume Beeminder API',
              subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
              defaults: {
                  name: 'Beeminder',
              },
              icon: 'file:beeminder.png',
              inputs: ['main'],
              outputs: ['main'],
              credentials: [
                  {
                      name: 'beeminderApi',
                      required: true,
                  },
              ],
              properties: [
                  {
                      displayName: 'Resource',
                      name: 'resource',
                      type: 'options',
                      noDataExpression: true,
                      required: true,
                      options: [
                          {
                              name: 'Datapoint',
                              value: 'datapoint',
                          },
                      ],
                      default: 'datapoint',
                  },
                  {
                      displayName: 'Operation',
                      name: 'operation',
                      type: 'options',
                      noDataExpression: true,
                      options: [
                          {
                              name: 'Create',
                              value: 'create',
                              description: 'Create datapoint for goal',
                              action: 'Create datapoint for goal',
                          },
                          {
                              name: 'Delete',
                              value: 'delete',
                              description: 'Delete a datapoint',
                              action: 'Delete a datapoint',
                          },
                          {
                              name: 'Get Many',
                              value: 'getAll',
                              description: 'Get many datapoints for a goal',
                              action: 'Get many datapoints for a goal',
                          },
                          {
                              name: 'Update',
                              value: 'update',
                              description: 'Update a datapoint',
                              action: 'Update a datapoint',
                          },
                      ],
                      default: 'create',
                      required: true,
                  },
                  {
                      displayName: 'Goal Name or ID',
                      name: 'goalName',
                      type: 'options',
                      typeOptions: {
                          loadOptionsMethod: 'getGoals',
                      },
                      displayOptions: {
                          show: {
                              resource: ['datapoint'],
                          },
                      },
                      default: '',
                      description: 'The name of the goal. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
                      required: true,
                  },
                  {
                      displayName: 'Return All',
                      name: 'returnAll',
                      type: 'boolean',
                      displayOptions: {
                          show: {
                              operation: ['getAll'],
                              resource: ['datapoint'],
                          },
                      },
                      default: false,
                      description: 'Whether to return all results or only up to a given limit',
                  },
                  {
                      displayName: 'Limit',
                      name: 'limit',
                      type: 'number',
                      displayOptions: {
                          show: {
                              operation: ['getAll'],
                              resource: ['datapoint'],
                              returnAll: [false],
                          },
                      },
                      typeOptions: {
                          minValue: 1,
                          maxValue: 300,
                      },
                      default: 30,
                      description: 'Max number of results to return',
                  },
                  {
                      displayName: 'Value',
                      name: 'value',
                      type: 'number',
                      default: 1,
                      placeholder: '',
                      description: 'Datapoint value to send',
                      displayOptions: {
                          show: {
                              resource: ['datapoint'],
                              operation: ['create'],
                          },
                      },
                      required: true,
                  },
                  {
                      displayName: 'Datapoint ID',
                      name: 'datapointId',
                      type: 'string',
                      default: '',
                      displayOptions: {
                          show: {
                              operation: ['update', 'delete'],
                          },
                      },
                      required: true,
                  },
                  {
                      displayName: 'Additional Fields',
                      name: 'additionalFields',
                      type: 'collection',
                      placeholder: 'Add Field',
                      default: {},
                      displayOptions: {
                          show: {
                              resource: ['datapoint'],
                              operation: ['create'],
                          },
                      },
                      options: [
                          {
                              displayName: 'Comment',
                              name: 'comment',
                              type: 'string',
                              default: '',
                          },
                          {
                              displayName: 'Timestamp',
                              name: 'timestamp',
                              type: 'dateTime',
                              default: '',
                              placeholder: '',
                              description: 'Defaults to "now" if none is passed in, or the existing timestamp if the datapoint is being updated rather than created',
                          },
                          {
                              displayName: 'Request ID',
                              name: 'requestid',
                              type: 'string',
                              default: '',
                              placeholder: '',
                              description: 'String to uniquely identify a datapoint',
                          },
                      ],
                  },
                  {
                      displayName: 'Options',
                      name: 'options',
                      type: 'collection',
                      placeholder: 'Add field',
                      default: {},
                      displayOptions: {
                          show: {
                              resource: ['datapoint'],
                              operation: ['getAll'],
                          },
                      },
                      options: [
                          {
                              displayName: 'Sort',
                              name: 'sort',
                              type: 'string',
                              default: 'id',
                              placeholder: '',
                              description: 'Attribute to sort on',
                          },
                      ],
                  },
                  {
                      displayName: 'Update Fields',
                      name: 'updateFields',
                      type: 'collection',
                      placeholder: 'Add Field',
                      default: {},
                      displayOptions: {
                          show: {
                              resource: ['datapoint'],
                              operation: ['update'],
                          },
                      },
                      options: [
                          {
                              displayName: 'Value',
                              name: 'value',
                              type: 'number',
                              default: 1,
                              placeholder: '',
                              description: 'Datapoint value to send',
                          },
                          {
                              displayName: 'Comment',
                              name: 'comment',
                              type: 'string',
                              default: '',
                          },
                          {
                              displayName: 'Timestamp',
                              name: 'timestamp',
                              type: 'dateTime',
                              default: '',
                              placeholder: '',
                              description: 'Defaults to "now" if none is passed in, or the existing timestamp if the datapoint is being updated rather than created',
                          },
                      ],
                  },
              ],
          };
          this.methods = {
              loadOptions: {
                  async getGoals() {
                      const credentials = await this.getCredentials('beeminderApi');
                      const endpoint = `/users/${credentials.user}/goals.json`;
                      const returnData = [];
                      const goals = await GenericFunctions_1.beeminderApiRequest.call(this, 'GET', endpoint);
                      for (const goal of goals) {
                          returnData.push({
                              name: goal.slug,
                              value: goal.slug,
                          });
                      }
                      return returnData;
                  },
              },
          };
      }
      async execute() {
          const items = this.getInputData();
          const returnData = [];
          const length = items.length;
          const timezone = this.getTimezone();
          const resource = this.getNodeParameter('resource', 0);
          const operation = this.getNodeParameter('operation', 0);
          let results;
          for (let i = 0; i < length; i++) {
              try {
                  if (resource === 'datapoint') {
                      const goalName = this.getNodeParameter('goalName', i);
                      if (operation === 'create') {
                          const value = this.getNodeParameter('value', i);
                          const options = this.getNodeParameter('additionalFields', i);
                          const data = {
                              value,
                              goalName,
                          };
                          Object.assign(data, options);
                          if (data.timestamp) {
                              data.timestamp = moment_timezone_1.default.tz(data.timestamp, timezone).unix();
                          }
                          results = await Beeminder_node_functions_1.createDatapoint.call(this, data);
                          const executionData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(results), { itemData: { item: i } });
                          returnData.push(...executionData);
                      }
                      else if (operation === 'getAll') {
                          const returnAll = this.getNodeParameter('returnAll', i);
                          const options = this.getNodeParameter('options', i);
                          const data = {
                              goalName,
                          };
                          Object.assign(data, options);
                          if (!returnAll) {
                              data.count = this.getNodeParameter('limit', 0);
                          }
                          results = await Beeminder_node_functions_1.getAllDatapoints.call(this, data);
                          const executionData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(results), { itemData: { item: i } });
                          returnData.push(...executionData);
                      }
                      else if (operation === 'update') {
                          const datapointId = this.getNodeParameter('datapointId', i);
                          const options = this.getNodeParameter('updateFields', i);
                          const data = {
                              goalName,
                              datapointId,
                          };
                          Object.assign(data, options);
                          if (data.timestamp) {
                              data.timestamp = moment_timezone_1.default.tz(data.timestamp, timezone).unix();
                          }
                          results = await Beeminder_node_functions_1.updateDatapoint.call(this, data);
                          const executionData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(results), { itemData: { item: i } });
                          returnData.push(...executionData);
                      }
                      else if (operation === 'delete') {
                          const datapointId = this.getNodeParameter('datapointId', i);
                          const data = {
                              goalName,
                              datapointId,
                          };
                          results = await Beeminder_node_functions_1.deleteDatapoint.call(this, data);
                          const executionData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(results), { itemData: { item: i } });
                          returnData.push(...executionData);
                      }
                  }
              }
              catch (error) {
                  if (this.continueOnFail()) {
                      returnData.push({ error: error.message, json: {}, itemIndex: i });
                      continue;
                  }
                  throw error;
              }
          }
          return [returnData];
      }
  }
  exports.Beeminder = Beeminder;
  //# sourceMappingURL=Beeminder.node.js.map

package_info:
[cell repeats an earlier one in this file: 36903 characters]


