2020-05-23 15:53:06 -07:00
|
|
|
export const MAX_DISPLAY_DATA_SIZE = 204800;
|
|
|
|
export const MAX_DISPLAY_ITEMS_AUTO_ALL = 250;
|
2019-06-23 03:35:23 -07:00
|
|
|
export const NODE_NAME_PREFIX = 'node-';
|
2021-05-29 11:31:21 -07:00
|
|
|
|
2021-08-21 05:11:32 -07:00
|
|
|
export const PLACEHOLDER_FILLED_AT_EXECUTION_TIME = '[filled at execution time]';
|
|
|
|
|
2021-05-29 11:31:21 -07:00
|
|
|
// workflows
|
2019-06-23 03:35:23 -07:00
|
|
|
export const PLACEHOLDER_EMPTY_WORKFLOW_ID = '__EMPTY__';
|
2021-09-21 10:38:24 -07:00
|
|
|
export const DEFAULT_NODETYPE_VERSION = 1;
|
2021-05-29 11:31:21 -07:00
|
|
|
export const DEFAULT_NEW_WORKFLOW_NAME = 'My workflow';
|
|
|
|
export const MIN_WORKFLOW_NAME_LENGTH = 1;
|
|
|
|
export const MAX_WORKFLOW_NAME_LENGTH = 128;
|
|
|
|
export const DUPLICATE_POSTFFIX = ' copy';
|
2021-12-03 09:53:55 -08:00
|
|
|
export const NODE_OUTPUT_DEFAULT_KEY = '_NODE_OUTPUT_DEFAULT_KEY_';
|
2021-05-29 11:31:21 -07:00
|
|
|
|
|
|
|
// tags
|
|
|
|
export const MAX_TAG_NAME_LENGTH = 24;
|
2021-09-11 01:15:36 -07:00
|
|
|
|
|
|
|
// modals
|
2021-05-29 11:31:21 -07:00
|
|
|
export const DUPLICATE_MODAL_KEY = 'duplicate';
|
|
|
|
export const TAGS_MANAGER_MODAL_KEY = 'tagsManager';
|
2021-10-18 20:57:49 -07:00
|
|
|
export const WORKFLOW_OPEN_MODAL_KEY = 'workflowOpen';
|
2021-07-22 01:22:17 -07:00
|
|
|
export const VERSIONS_MODAL_KEY = 'versions';
|
2021-09-22 00:23:37 -07:00
|
|
|
export const WORKFLOW_SETTINGS_MODAL_KEY = 'settings';
|
2021-09-11 01:15:36 -07:00
|
|
|
export const CREDENTIAL_EDIT_MODAL_KEY = 'editCredential';
|
|
|
|
export const CREDENTIAL_SELECT_MODAL_KEY = 'selectCredential';
|
2021-10-18 20:57:49 -07:00
|
|
|
export const CREDENTIAL_LIST_MODAL_KEY = 'credentialsList';
|
|
|
|
export const PERSONALIZATION_MODAL_KEY = 'personalization';
|
:zap: Add Value Survey (#2499)
* N8N-2619 Value Survey Front-end
* N8N-2619 Added Contact Prompt Modal and logic
* N8N-2619 Added Link to Toast Message on Successful submitting ValueSurvey
* N8N-2619 Updated TypeForm URL in ValueSurvey Success Toast
* N8N-2619 Fixed Typo placeholder for ValueSurvey and ContactPrompt Modal
* N8N-2619 Fixed Toast not close automatically in ValueSurvey, Make part of the title bold, Changed Font-sizes on Value Survey
* N8N-2619 Fixed Close Button on ValueSurvey, Vertical Allignment for Questions in ValueSurvey Drawer
* N8N-2619 Make Value Survey with static height
* N8N-2619 Fixed Telemetry Events on closing ValueSurvey
* N8N-2619 Updated N8NPrompt Interface, Added Dynamic Title and Description on ContactPrompt Modal
* N8N-2619 Reversed Answers in ValueSurveyModal
* N8N-2619 Added Telemetry Event on user close ValueSurvey on second Question
* N8N-2619 Re-work, Optimized, Simplify the code after technical review
* N8N-2619 Fixed If else statement in openUserPromptsIfPossible
* N8N-2619 Change Text under Email Box - ValueSurvey, ContactPrompt, Added new Telemetary Event on ValueSurvey Open, Fixed Toast to close aftet 15s
* N8N-2619 Change ContactPrompt Modal to use Atoms like N8N-Heading and N8N-Text
* N8N-2619 Change Design & Logic on ValueSurvey - When to open
* N8N-2619 Updated Value Survey with new Telemetry Events (Refactor), Simplified functions, Added Atoms in ValueSurvey + ContactPrompt
* N8N-2619 Refactor in Interfaces, Updated/Refactor Getters and Vuex store props
* N8N-2619 Defined IN8nValueSurveyData interface
* N8N-2619 Disabled Keyboard shortcuts to be activated on typing in ValueSurvey Input field, Fire an event on Saving WF from Menu and with shorcut, Make Drawer keep-alive
* N8N-2619 Added Atoms in Value Survey Modal (buttons), Rework css
* N8N-2619 Added Responses on ValueSurvey Submit
* N8N-2619 Added Response for SubmittingContactInfo
* N8N-2619 Added loading state for buttons / ValueSurvey
* N8N-2619 Changed ValueSurvey and ContactPrompt to support enter key on submit, Simplifed closeDialog Function, Changed css for button in ValueSurvey, Prevent showing the Modals if Saving WF fails, Add Debouncing on showing prompt
* N8N-2619 Added IsTelemetryEnabled Getter in Vuex.store
* N8N-2619 Created/Added N8N-SquareButton to Design-system
* N8N-2619 Change Promise in MainSideBar with Async/Await function, Nitpick simpliefied
* N8N-2619 Update the text under the input fields
* N8N-2619 Update the text in ContactPrompt Modal
* N8N-2619 Allign Send button on ValueSurvey Modal
* N8N-2619 Fixed Input in ValueSurvey Modal
* N8N-2619 Check if the workflow is saving
* N8N-2619 Check if WF is saving to allowed performs fetchPromptsData
* N8N-2619 Hotfix
* N8N-2619 Fixed ValueSurvey, Updated onSaveButtonClick function, Created onSaveKeyboardShortcut function in NodeView
* N8N-2619 Rework css module classes for ValueSurvey, Simplified
* N8N-2619 Simplified N8N-SquareButton Component, removed dead code
* N8N-2619 Added Breakpoints for Mobile/Tablet View
* N8N-2619 Formatting fix
* N8N-2619 Update css for mobile/tablet, change promises to asyn/await functions in ContactPrompt and ValueSurvey, Added isActive prop to ValueSurvey
* N8N-2619 Update TEMPLATE_BASE_URL to production
2021-12-11 08:38:16 -08:00
|
|
|
export const CONTACT_PROMPT_MODAL_KEY = 'contactPrompt';
|
|
|
|
export const VALUE_SURVEY_MODAL_KEY = 'valueSurvey';
|
2021-05-29 11:31:21 -07:00
|
|
|
|
2021-06-17 22:58:26 -07:00
|
|
|
// breakpoints
|
2021-05-29 11:31:21 -07:00
|
|
|
export const BREAKPOINT_SM = 768;
|
|
|
|
export const BREAKPOINT_MD = 992;
|
|
|
|
export const BREAKPOINT_LG = 1200;
|
|
|
|
export const BREAKPOINT_XL = 1920;
|
|
|
|
|
2021-06-22 10:33:07 -07:00
|
|
|
|
|
|
|
// templates
|
|
|
|
export const TEMPLATES_BASE_URL = `https://api.n8n.io/`;
|
2021-10-18 20:57:49 -07:00
|
|
|
|
|
|
|
// node types
|
|
|
|
export const CALENDLY_TRIGGER_NODE_TYPE = 'n8n-nodes-base.calendlyTrigger';
|
|
|
|
export const CRON_NODE_TYPE = 'n8n-nodes-base.cron';
|
|
|
|
export const CLEARBIT_NODE_TYPE = 'n8n-nodes-base.clearbit';
|
|
|
|
export const FUNCTION_NODE_TYPE = 'n8n-nodes-base.function';
|
|
|
|
export const GITHUB_TRIGGER_NODE_TYPE = 'n8n-nodes-base.githubTrigger';
|
|
|
|
export const ERROR_TRIGGER_NODE_TYPE = 'n8n-nodes-base.errorTrigger';
|
|
|
|
export const ELASTIC_SECURITY_NODE_TYPE = 'n8n-nodes-base.elasticSecurity';
|
|
|
|
export const EMAIL_SEND_NODE_TYPE = 'n8n-nodes-base.emailSend';
|
|
|
|
export const EXECUTE_COMMAND_NODE_TYPE = 'n8n-nodes-base.executeCommand';
|
|
|
|
export const HTTP_REQUEST_NODE_TYPE = 'n8n-nodes-base.httpRequest';
|
|
|
|
export const IF_NODE_TYPE = 'n8n-nodes-base.if';
|
|
|
|
export const ITEM_LISTS_NODE_TYPE = 'n8n-nodes-base.itemLists';
|
|
|
|
export const JIRA_TRIGGER_NODE_TYPE = 'n8n-nodes-base.jiraTrigger';
|
|
|
|
export const MICROSOFT_EXCEL_NODE_TYPE = 'n8n-nodes-base.microsoftExcel';
|
|
|
|
export const MICROSOFT_TEAMS_NODE_TYPE = 'n8n-nodes-base.microsoftTeams';
|
|
|
|
export const NO_OP_NODE_TYPE = 'n8n-nodes-base.noOp';
|
|
|
|
export const PAGERDUTY_NODE_TYPE = 'n8n-nodes-base.pagerDuty';
|
|
|
|
export const SALESFORCE_NODE_TYPE = 'n8n-nodes-base.salesforce';
|
|
|
|
export const SEGMENT_NODE_TYPE = 'n8n-nodes-base.segment';
|
|
|
|
export const SET_NODE_TYPE = 'n8n-nodes-base.set';
|
|
|
|
export const SLACK_NODE_TYPE = 'n8n-nodes-base.slack';
|
|
|
|
export const SPREADSHEET_FILE_NODE_TYPE = 'n8n-nodes-base.spreadsheetFile';
|
2021-06-22 10:33:07 -07:00
|
|
|
export const START_NODE_TYPE = 'n8n-nodes-base.start';
|
2021-10-18 20:57:49 -07:00
|
|
|
export const SWITCH_NODE_TYPE = 'n8n-nodes-base.switch';
|
|
|
|
export const QUICKBOOKS_NODE_TYPE = 'n8n-nodes-base.quickbooks';
|
|
|
|
export const WEBHOOK_NODE_TYPE = 'n8n-nodes-base.webhook';
|
|
|
|
export const XERO_NODE_TYPE = 'n8n-nodes-base.xero';
|
2021-06-22 10:33:07 -07:00
|
|
|
|
2021-06-17 22:58:26 -07:00
|
|
|
// Node creator
|
|
|
|
export const CORE_NODES_CATEGORY = 'Core Nodes';
|
|
|
|
export const CUSTOM_NODES_CATEGORY = 'Custom Nodes';
|
|
|
|
export const SUBCATEGORY_DESCRIPTIONS: {
|
|
|
|
[category: string]: { [subcategory: string]: string };
|
|
|
|
} = {
|
2021-11-18 02:32:13 -08:00
|
|
|
'Core Nodes': { // this - all subkeys are set from codex
|
2021-06-17 22:58:26 -07:00
|
|
|
Flow: 'Branches, core triggers, merge data',
|
|
|
|
Files: 'Work with CSV, XML, text, images etc.',
|
|
|
|
'Data Transformation': 'Manipulate data fields, run code',
|
|
|
|
Helpers: 'HTTP Requests (API calls), date and time, scrape HTML',
|
|
|
|
},
|
|
|
|
};
|
|
|
|
export const REGULAR_NODE_FILTER = 'Regular';
|
|
|
|
export const TRIGGER_NODE_FILTER = 'Trigger';
|
|
|
|
export const ALL_NODE_FILTER = 'All';
|
|
|
|
export const UNCATEGORIZED_CATEGORY = 'Miscellaneous';
|
|
|
|
export const UNCATEGORIZED_SUBCATEGORY = 'Helpers';
|
2021-10-18 20:57:49 -07:00
|
|
|
export const PERSONALIZED_CATEGORY = 'Suggested Nodes ✨';
|
|
|
|
export const HIDDEN_NODES = [START_NODE_TYPE];
|
|
|
|
|
2021-06-17 22:58:26 -07:00
|
|
|
export const REQUEST_NODE_FORM_URL = 'https://n8n-community.typeform.com/to/K1fBVTZ3';
|
2021-07-22 01:22:17 -07:00
|
|
|
|
|
|
|
// General
|
2021-08-21 05:11:32 -07:00
|
|
|
export const INSTANCE_ID_HEADER = 'n8n-instance-id';
|
|
|
|
export const WAIT_TIME_UNLIMITED = '3000-01-01T00:00:00.000Z';
|
2021-10-18 20:57:49 -07:00
|
|
|
|
|
|
|
export const WORK_AREA_KEY = 'workArea';
|
|
|
|
export const FINANCE_WORK_AREA = 'finance';
|
|
|
|
export const HR_WORK_AREA = 'HR';
|
|
|
|
export const IT_ENGINEERING_WORK_AREA = 'IT-Engineering';
|
|
|
|
export const LEGAL_WORK_AREA = 'legal';
|
|
|
|
export const MARKETING_WORK_AREA = 'marketing-growth';
|
|
|
|
export const PRODUCT_WORK_AREA = 'product';
|
|
|
|
export const SALES_BUSINESSDEV_WORK_AREA = 'sales-businessDevelopment';
|
|
|
|
export const SECURITY_WORK_AREA = 'security';
|
|
|
|
export const SUPPORT_WORK_AREA = 'support';
|
|
|
|
export const OPS_WORK_AREA = 'ops';
|
2021-12-03 04:19:23 -08:00
|
|
|
export const EXECUTIVE_WORK_AREA = 'executive';
|
2021-10-18 20:57:49 -07:00
|
|
|
export const OTHER_WORK_AREA_OPTION = 'other';
|
2021-12-03 04:19:23 -08:00
|
|
|
export const NOT_APPLICABLE_WORK_AREA = 'n/a';
|
|
|
|
|
|
|
|
export const COMPANY_INDUSTRY_KEY = 'companyIndustry';
|
|
|
|
export const E_COMMERCE_INDUSTRY = 'e-commerce';
|
|
|
|
export const AUTOMATION_CONSULTING_INDUSTRY = 'automation-consulting';
|
|
|
|
export const SYSTEM_INTEGRATION_INDUSTRY = 'systems-integration';
|
|
|
|
export const GOVERNMENT_INDUSTRY = 'government';
|
|
|
|
export const LEGAL_INDUSTRY = 'legal-industry';
|
|
|
|
export const HEALTHCARE_INDUSTRY= 'healthcare';
|
|
|
|
export const FINANCE_INDUSTRY = 'finance-industry';
|
|
|
|
export const SECURITY_INDUSTRY = 'security-industry';
|
|
|
|
export const SAAS_INDUSTRY = 'saas';
|
|
|
|
export const OTHER_INDUSTRY_OPTION= 'other';
|
2021-10-18 20:57:49 -07:00
|
|
|
|
|
|
|
export const COMPANY_SIZE_KEY = 'companySize';
|
|
|
|
export const COMPANY_SIZE_20_OR_LESS = '<20';
|
|
|
|
export const COMPANY_SIZE_20_99 = '20-99';
|
|
|
|
export const COMPANY_SIZE_100_499 = '100-499';
|
|
|
|
export const COMPANY_SIZE_500_999 = '500-999';
|
|
|
|
export const COMPANY_SIZE_1000_OR_MORE = '1000+';
|
|
|
|
export const COMPANY_SIZE_PERSONAL_USE = 'personalUser';
|
|
|
|
|
|
|
|
export const CODING_SKILL_KEY = 'codingSkill';
|
|
|
|
export const OTHER_WORK_AREA_KEY = 'otherWorkArea';
|
2021-12-03 04:19:23 -08:00
|
|
|
export const OTHER_COMPANY_INDUSTRY_KEY = 'otherCompanyIndustry';
|
2021-11-19 01:17:13 -08:00
|
|
|
|
:zap: Add Value Survey (#2499)
* N8N-2619 Value Survey Front-end
* N8N-2619 Added Contact Prompt Modal and logic
* N8N-2619 Added Link to Toast Message on Successful submitting ValueSurvey
* N8N-2619 Updated TypeForm URL in ValueSurvey Success Toast
* N8N-2619 Fixed Typo placeholder for ValueSurvey and ContactPrompt Modal
* N8N-2619 Fixed Toast not close automatically in ValueSurvey, Make part of the title bold, Changed Font-sizes on Value Survey
* N8N-2619 Fixed Close Button on ValueSurvey, Vertical Allignment for Questions in ValueSurvey Drawer
* N8N-2619 Make Value Survey with static height
* N8N-2619 Fixed Telemetry Events on closing ValueSurvey
* N8N-2619 Updated N8NPrompt Interface, Added Dynamic Title and Description on ContactPrompt Modal
* N8N-2619 Reversed Answers in ValueSurveyModal
* N8N-2619 Added Telemetry Event on user close ValueSurvey on second Question
* N8N-2619 Re-work, Optimized, Simplify the code after technical review
* N8N-2619 Fixed If else statement in openUserPromptsIfPossible
* N8N-2619 Change Text under Email Box - ValueSurvey, ContactPrompt, Added new Telemetary Event on ValueSurvey Open, Fixed Toast to close aftet 15s
* N8N-2619 Change ContactPrompt Modal to use Atoms like N8N-Heading and N8N-Text
* N8N-2619 Change Design & Logic on ValueSurvey - When to open
* N8N-2619 Updated Value Survey with new Telemetry Events (Refactor), Simplified functions, Added Atoms in ValueSurvey + ContactPrompt
* N8N-2619 Refactor in Interfaces, Updated/Refactor Getters and Vuex store props
* N8N-2619 Defined IN8nValueSurveyData interface
* N8N-2619 Disabled Keyboard shortcuts to be activated on typing in ValueSurvey Input field, Fire an event on Saving WF from Menu and with shorcut, Make Drawer keep-alive
* N8N-2619 Added Atoms in Value Survey Modal (buttons), Rework css
* N8N-2619 Added Responses on ValueSurvey Submit
* N8N-2619 Added Response for SubmittingContactInfo
* N8N-2619 Added loading state for buttons / ValueSurvey
* N8N-2619 Changed ValueSurvey and ContactPrompt to support enter key on submit, Simplifed closeDialog Function, Changed css for button in ValueSurvey, Prevent showing the Modals if Saving WF fails, Add Debouncing on showing prompt
* N8N-2619 Added IsTelemetryEnabled Getter in Vuex.store
* N8N-2619 Created/Added N8N-SquareButton to Design-system
* N8N-2619 Change Promise in MainSideBar with Async/Await function, Nitpick simpliefied
* N8N-2619 Update the text under the input fields
* N8N-2619 Update the text in ContactPrompt Modal
* N8N-2619 Allign Send button on ValueSurvey Modal
* N8N-2619 Fixed Input in ValueSurvey Modal
* N8N-2619 Check if the workflow is saving
* N8N-2619 Check if WF is saving to allowed performs fetchPromptsData
* N8N-2619 Hotfix
* N8N-2619 Fixed ValueSurvey, Updated onSaveButtonClick function, Created onSaveKeyboardShortcut function in NodeView
* N8N-2619 Rework css module classes for ValueSurvey, Simplified
* N8N-2619 Simplified N8N-SquareButton Component, removed dead code
* N8N-2619 Added Breakpoints for Mobile/Tablet View
* N8N-2619 Formatting fix
* N8N-2619 Update css for mobile/tablet, change promises to asyn/await functions in ContactPrompt and ValueSurvey, Added isActive prop to ValueSurvey
* N8N-2619 Update TEMPLATE_BASE_URL to production
2021-12-11 08:38:16 -08:00
|
|
|
export const VALID_EMAIL_REGEX = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
|
|
|
|
|