From ca761c88c83599a2cd3ca5cf39daf6bf16d4e3b3 Mon Sep 17 00:00:00 2001 From: Ricardo Espinoza Date: Fri, 3 Dec 2021 02:53:20 -0500 Subject: [PATCH 01/22] :zap: Enable image downloading in channel_post event on Telegram (#2513) --- packages/nodes-base/nodes/Telegram/IEvent.ts | 22 +++++++++++-------- .../nodes/Telegram/TelegramTrigger.node.ts | 16 +++++++++----- 2 files changed, 24 insertions(+), 14 deletions(-) diff --git a/packages/nodes-base/nodes/Telegram/IEvent.ts b/packages/nodes-base/nodes/Telegram/IEvent.ts index 63ee2d827b402e..9abfbd0b29bd14 100644 --- a/packages/nodes-base/nodes/Telegram/IEvent.ts +++ b/packages/nodes-base/nodes/Telegram/IEvent.ts @@ -1,13 +1,17 @@ -export interface IEvent { - message?: { - photo?: [ - { - file_id: string, - }, - ], - document?: { - file_id: string; + +interface EventBody { + photo?: [ + { + file_id: string, }, + ]; + document?: { + file_id: string; }; +} + +export interface IEvent { + message?: EventBody; + channel_post?: EventBody; download_link?: string; } diff --git a/packages/nodes-base/nodes/Telegram/TelegramTrigger.node.ts b/packages/nodes-base/nodes/Telegram/TelegramTrigger.node.ts index da679101e50a42..519e61b7ae377c 100644 --- a/packages/nodes-base/nodes/Telegram/TelegramTrigger.node.ts +++ b/packages/nodes-base/nodes/Telegram/TelegramTrigger.node.ts @@ -218,7 +218,13 @@ export class TelegramTrigger implements INodeType { let imageSize = 'large'; - if ((bodyData.message && bodyData.message.photo && Array.isArray(bodyData.message.photo) || bodyData.message?.document)) { + let key: 'message' | 'channel_post' = 'message'; + + if (bodyData.channel_post) { + key = 'channel_post'; + } + + if ((bodyData[key] && bodyData[key]?.photo && Array.isArray(bodyData[key]?.photo) || bodyData[key]?.document)) { if (additionalFields.imageSize) { @@ -227,22 +233,22 @@ export class TelegramTrigger implements INodeType { let fileId; - if (bodyData.message.photo) { + if (bodyData[key]?.photo) { - let image = getImageBySize(bodyData.message.photo as IDataObject[], imageSize) as IDataObject; + let image = getImageBySize(bodyData[key]?.photo as IDataObject[], imageSize) as IDataObject; // When the image is sent from the desktop app telegram does not resize the image // So return the only image avaiable // Basically the Image Size parameter would work just when the images comes from the mobile app if (image === undefined) { - image = bodyData.message.photo[0]; + image = bodyData[key]!.photo![0]; } fileId = image.file_id; } else { - fileId = bodyData.message?.document?.file_id; + fileId = bodyData[key]?.document?.file_id; } const { result: { file_path } } = await apiRequest.call(this, 'GET', `getFile?file_id=${fileId}`, {}); From a783288338af63e405eeef84ffa8db3a56d1cf44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Ovejero?= Date: Fri, 3 Dec 2021 09:44:16 +0100 Subject: [PATCH 02/22] :zap: Enforce type checking in all node params (#2509) --- .../descriptions/AttendanceDescription.ts | 8 +-- .../descriptions/EventDescription.ts | 8 +-- .../descriptions/PersonDescription.ts | 8 +-- .../descriptions/PersonTagDescription.ts | 12 ++-- .../descriptions/PetitionDescription.ts | 8 +-- .../descriptions/SharedFields.ts | 18 +++--- .../descriptions/SignatureDescription.ts | 8 +-- .../descriptions/TagDescription.ts | 8 +-- .../nodes-base/nodes/ActionNetwork/types.d.ts | 1 + .../AccountContactDescription.ts | 8 +-- .../ActiveCampaign/AccountDescription.ts | 8 +-- .../ActiveCampaign/ConnectionDescription.ts | 8 +-- .../ActiveCampaign/ContactDescription.ts | 8 +-- .../ActiveCampaign/ContactListDescription.ts | 8 +-- .../ActiveCampaign/ContactTagDescription.ts | 8 +-- .../nodes/ActiveCampaign/DealDescription.ts | 8 +-- .../ActiveCampaign/EcomCustomerDescription.ts | 8 +-- .../ActiveCampaign/EcomOrderDescription.ts | 8 +-- .../EcomOrderProductsDescription.ts | 8 +-- .../nodes/ActiveCampaign/ListDescription.ts | 8 +-- .../nodes/ActiveCampaign/TagDescription.ts | 8 +-- .../nodes/Affinity/ListDescription.ts | 8 +-- .../nodes/Affinity/ListEntryDescription.ts | 8 +-- .../nodes/Affinity/OrganizationDescription.ts | 8 +-- .../nodes/Affinity/PersonDescription.ts | 8 +-- .../nodes/AgileCrm/CompanyDescription.ts | 12 ++-- .../nodes/AgileCrm/ContactDescription.ts | 18 ++++-- .../nodes/AgileCrm/DealDescription.ts | 10 ++-- .../nodes/Automizy/ContactDescription.ts | 8 +-- .../nodes/Automizy/ListDescription.ts | 8 +-- .../nodes/Autopilot/ContactDescription.ts | 8 +-- .../Autopilot/ContactJourneyDescription.ts | 8 +-- .../nodes/Autopilot/ContactListDescription.ts | 8 +-- .../nodes/Autopilot/ListDescription.ts | 8 +-- .../nodes/Aws/DynamoDB/ItemDescription.ts | 8 +-- .../nodes/Aws/S3/BucketDescription.ts | 8 +-- .../nodes/Aws/S3/FileDescription.ts | 8 +-- .../nodes/Aws/S3/FolderDescription.ts | 8 +-- .../nodes/Bannerbear/ImageDescription.ts | 8 +-- .../nodes/Bannerbear/TemplateDescription.ts | 8 +-- .../nodes/Baserow/OperationDescription.ts | 4 +- .../nodes-base/nodes/Bitly/LinkDescription.ts | 8 +-- .../descriptions/CollectionDescription.ts | 8 +-- .../descriptions/EventDescription.ts | 8 +-- .../descriptions/GroupDescription.ts | 8 +-- .../descriptions/MemberDescription.ts | 8 +-- .../nodes-base/nodes/Box/FileDescription.ts | 8 +-- .../nodes-base/nodes/Box/FolderDescription.ts | 8 +-- .../nodes/Bubble/ObjectDescription.ts | 8 +-- .../nodes/CircleCi/PipelineDescription.ts | 8 +-- .../nodes/Cisco/Webex/GenericFunctions.ts | 6 +- .../Webex/descriptions/MeetingDescription.ts | 8 +-- .../Webex/descriptions/MeetingTranscript.ts | 8 +-- .../Webex/descriptions/MessageDescription.ts | 9 +-- .../nodes/Clearbit/CompanyDescription.ts | 8 +-- .../nodes/Clearbit/PersonDescription.ts | 8 +-- .../nodes/ClickUp/ChecklistDescription.ts | 8 +-- .../nodes/ClickUp/ChecklistItemDescription.ts | 8 +-- .../nodes/ClickUp/CommentDescription.ts | 8 +-- .../nodes/ClickUp/FolderDescription.ts | 8 +-- .../nodes/ClickUp/GoalDescription.ts | 8 +-- .../nodes/ClickUp/GoalKeyResultDescription.ts | 8 +-- .../nodes/ClickUp/GuestDescription.ts | 8 +-- .../nodes/ClickUp/ListDescription.ts | 20 +++---- .../nodes/ClickUp/SpaceTagDescription.ts | 8 +-- .../ClickUp/TaskDependencyDescription.ts | 10 ++-- .../nodes/ClickUp/TaskDescription.ts | 44 +++++++-------- .../nodes/ClickUp/TaskListDescription.ts | 8 +-- .../nodes/ClickUp/TaskTagDescription.ts | 8 +-- .../nodes/ClickUp/TimeEntryDescription.ts | 20 +++---- .../nodes/ClickUp/TimeEntryTagDescription.ts | 8 +-- .../nodes/Clockify/ProjectDescription.ts | 8 +-- .../nodes/Clockify/TagDescription.ts | 8 +-- .../nodes/Clockify/TaskDescription.ts | 8 +-- .../nodes/Clockify/TimeEntryDescription.ts | 8 +-- .../nodes/Cockpit/CollectionDescription.ts | 8 +-- .../nodes/Cockpit/FormDescription.ts | 8 +-- .../nodes/Cockpit/SingletonDescription.ts | 8 +-- .../nodes/Coda/ControlDescription.ts | 8 +-- .../nodes/Coda/FormulaDescription.ts | 8 +-- .../nodes-base/nodes/Coda/TableDescription.ts | 8 +-- .../nodes-base/nodes/Coda/ViewDescription.ts | 8 +-- .../nodes/CoinGecko/CoinDescription.ts | 10 ++-- .../nodes/CoinGecko/EventDescription.ts | 8 +-- .../nodes/Contentful/AssetDescription.ts | 8 +-- .../Contentful/ContentTypeDescription.ts | 8 +-- .../nodes/Contentful/EntryDescription.ts | 8 +-- .../nodes/Contentful/LocaleDescription.ts | 8 +-- .../Contentful/SearchParameterDescription.ts | 4 +- .../nodes/Contentful/SpaceDescription.ts | 6 +- .../ConvertKit/CustomFieldDescription.ts | 8 +-- .../nodes/ConvertKit/FormDescription.ts | 8 +-- .../nodes/ConvertKit/SequenceDescription.ts | 8 +-- .../nodes/ConvertKit/TagDescription.ts | 8 +-- .../ConvertKit/TagSubscriberDescription.ts | 8 +-- .../Copper/descriptions/CompanyDescription.ts | 8 +-- .../descriptions/CustomerSourceDescription.ts | 8 +-- .../Copper/descriptions/LeadDescription.ts | 8 +-- .../descriptions/OpportunityDescription.ts | 8 +-- .../Copper/descriptions/PersonDescription.ts | 8 +-- .../Copper/descriptions/ProjectDescription.ts | 8 +-- .../Copper/descriptions/TaskDescription.ts | 8 +-- .../Copper/descriptions/UserDescription.ts | 8 +-- .../nodes/Copper/utils/sharedFields.ts | 12 ++-- .../nodes/Cortex/AnalyzerDescriptions.ts | 4 +- .../nodes-base/nodes/Cortex/JobDescription.ts | 4 +- .../nodes/Cortex/ResponderDescription.ts | 4 +- .../nodes/CustomerIo/CampaignDescription.ts | 8 +-- .../nodes/CustomerIo/CustomerDescription.ts | 9 +-- .../nodes/CustomerIo/EventDescription.ts | 10 ++-- .../nodes/CustomerIo/SegmentDescription.ts | 8 +-- .../nodes-base/nodes/DeepL/TextDescription.ts | 4 +- .../nodes/Demio/EventDescription.ts | 8 +-- .../nodes/Demio/ReportDescription.ts | 8 +-- .../nodes/Discourse/CategoryDescription.ts | 4 +- .../nodes/Discourse/GroupDescription.ts | 4 +- .../nodes/Discourse/PostDescription.ts | 4 +- .../nodes/Discourse/SearchDescription.ts | 4 +- .../nodes/Discourse/UserDescription.ts | 4 +- .../nodes/Discourse/UserGroupDescription.ts | 4 +- .../nodes/Drift/ContactDescription.ts | 8 +-- .../nodes/ERPNext/DocumentDescription.ts | 9 +-- .../descriptions/DocumentDescription.ts | 8 +-- .../descriptions/IndexDescription.ts | 8 +-- .../nodes/Emelia/CampaignDescription.ts | 8 +-- .../nodes/Emelia/ContactListDescription.ts | 8 +-- .../nodes-base/nodes/Flow/TaskDescription.ts | 13 +++-- .../nodes/Freshdesk/ContactDescription.ts | 8 +-- .../descriptions/AgentDescription.ts | 56 ++++++------------- .../descriptions/AgentGroupDescription.ts | 32 ++++------- .../descriptions/AgentRoleDescription.ts | 8 +-- .../descriptions/AnnouncementDescription.ts | 16 ++---- .../descriptions/AssetDescription.ts | 28 +++------- .../descriptions/AssetTypeDescription.ts | 12 ++-- .../descriptions/ChangeDescription.ts | 40 ++++--------- .../descriptions/DepartmentDescription.ts | 8 +-- .../descriptions/LocationDescription.ts | 8 +-- .../descriptions/ProblemDescription.ts | 40 ++++--------- .../descriptions/ProductDescription.ts | 16 ++---- .../descriptions/ReleaseDescription.ts | 24 +++----- .../descriptions/RequesterDescription.ts | 32 ++++------- .../descriptions/RequesterGroupDescription.ts | 8 +-- .../descriptions/SoftwareDescription.ts | 8 +-- .../descriptions/TicketDescription.ts | 36 ++++-------- .../descriptions/AccountDescription.ts | 8 +-- .../descriptions/AppointmentDescription.ts | 8 +-- .../descriptions/ContactDescription.ts | 8 +-- .../descriptions/DealDescription.ts | 8 +-- .../descriptions/NoteDescription.ts | 8 +-- .../descriptions/SalesActivityDescription.ts | 10 ++-- .../descriptions/TaskDescription.ts | 8 +-- .../nodes/GetResponse/ContactDescription.ts | 8 +-- .../nodes-base/nodes/Ghost/PostDescription.ts | 8 +-- .../Git/descriptions/AddConfigDescription.ts | 4 +- .../nodes/Git/descriptions/AddDescription.ts | 4 +- .../Git/descriptions/CloneDescription.ts | 4 +- .../Git/descriptions/CommitDescription.ts | 4 +- .../nodes/Git/descriptions/LogDescription.ts | 4 +- .../nodes/Git/descriptions/PushDescription.ts | 4 +- .../nodes/Git/descriptions/TagDescription.ts | 4 +- .../descriptions/AttendeeDescription.ts | 8 +-- .../descriptions/CoorganizerDescription.ts | 9 +-- .../descriptions/PanelistDescription.ts | 8 +-- .../descriptions/RegistrantDescription.ts | 8 +-- .../descriptions/SessionDescription.ts | 8 +-- .../descriptions/WebinarDescription.ts | 9 +-- .../Google/Analytics/ReportDescription.ts | 8 +-- .../Analytics/UserActivityDescription.ts | 8 +-- .../Google/BigQuery/RecordDescription.ts | 8 +-- .../Google/Calendar/CalendarDescription.ts | 8 +-- .../nodes/Google/Calendar/EventDescription.ts | 8 +-- .../Google/Contacts/ContactDescription.ts | 8 +-- .../nodes/Google/Docs/DocumentDescription.ts | 8 +-- .../CloudFirestore/CollectionDescription.ts | 8 +-- .../CloudFirestore/DocumentDescription.ts | 8 +-- .../Google/GSuiteAdmin/GroupDescripion.ts | 8 +-- .../Google/GSuiteAdmin/UserDescription.ts | 8 +-- .../nodes/Google/Gmail/DraftDescription.ts | 8 +-- .../nodes/Google/Gmail/LabelDescription.ts | 8 +-- .../nodes/Google/Gmail/MessageDescription.ts | 8 +-- .../Google/Gmail/MessageLabelDescription.ts | 8 +-- .../nodes/Google/Task/TaskDescription.ts | 8 +-- .../Google/YouTube/ChannelDescription.ts | 8 +-- .../Google/YouTube/PlaylistDescription.ts | 8 +-- .../Google/YouTube/PlaylistItemDescription.ts | 8 +-- .../YouTube/VideoCategoryDescription.ts | 8 +-- .../nodes/Google/YouTube/VideoDescription.ts | 8 +-- .../nodes/Harvest/ClientDescription.ts | 8 +-- .../nodes/Harvest/CompanyDescription.ts | 4 +- .../nodes/Harvest/ContactDescription.ts | 8 +-- .../nodes/Harvest/EstimateDescription.ts | 8 +-- .../nodes/Harvest/ExpenseDescription.ts | 8 +-- .../nodes/Harvest/InvoiceDescription.ts | 8 +-- .../nodes/Harvest/ProjectDescription.ts | 8 +-- .../nodes/Harvest/TaskDescription.ts | 8 +-- .../nodes/Harvest/TimeEntryDescription.ts | 8 +-- .../nodes/Harvest/UserDescription.ts | 8 +-- .../HelpScout/ConversationDescription.ts | 8 +-- .../nodes/HelpScout/CustomerDescription.ts | 8 +-- .../nodes/HelpScout/MailboxDescription.ts | 8 +-- .../nodes/HelpScout/ThreadDescription.ts | 8 +-- .../HomeAssistant/CameraProxyDescription.ts | 8 +-- .../nodes/HomeAssistant/ConfigDescription.ts | 4 +- .../nodes/HomeAssistant/EventDescription.ts | 8 +-- .../nodes/HomeAssistant/HistoryDescription.ts | 8 +-- .../nodes/HomeAssistant/LogDescription.ts | 8 +-- .../nodes/HomeAssistant/ServiceDescription.ts | 8 +-- .../nodes/HomeAssistant/StateDescription.ts | 8 +-- .../HomeAssistant/TemplateDescription.ts | 8 +-- .../nodes/Hubspot/CompanyDescription.ts | 8 +-- .../nodes/Hubspot/ContactDescription.ts | 8 +-- .../nodes/Hubspot/ContactListDescription.ts | 8 +-- .../nodes/Hubspot/DealDescription.ts | 8 +-- .../nodes/Hubspot/FormDescription.ts | 8 +-- .../nodes/Hubspot/TicketDescription.ts | 8 +-- .../nodes/HumanticAI/ProfileDescription.ts | 8 +-- .../nodes/Intercom/CompanyDescription.ts | 8 +-- .../nodes/Intercom/LeadDescription.ts | 9 +-- .../nodes/Intercom/UserDescription.ts | 8 +-- .../nodes/InvoiceNinja/ClientDescription.ts | 10 ++-- .../nodes/InvoiceNinja/ExpenseDescription.ts | 10 ++-- .../nodes/InvoiceNinja/InvoiceDescription.ts | 11 ++-- .../nodes/InvoiceNinja/PaymentDescription.ts | 10 ++-- .../nodes/InvoiceNinja/QuoteDescription.ts | 11 ++-- .../nodes/InvoiceNinja/TaskDescription.ts | 10 ++-- .../nodes/Iterable/EventDescription.ts | 8 +-- .../nodes/Iterable/UserDescription.ts | 8 +-- .../nodes/Iterable/UserListDescription.ts | 8 +-- .../nodes/Jira/IssueAttachmentDescription.ts | 8 +-- .../nodes/Jira/IssueCommentDescription.ts | 15 +++-- .../nodes-base/nodes/Jira/IssueDescription.ts | 10 ++-- .../nodes-base/nodes/Jira/UserDescription.ts | 10 ++-- .../nodes/Keap/CompanyDescription.ts | 8 +-- .../nodes/Keap/ContactDescription.ts | 8 +-- .../nodes/Keap/ContactNoteDescription.ts | 8 +-- .../nodes/Keap/ContactTagDescription.ts | 8 +-- .../nodes/Keap/EcommerceOrderDescripion.ts | 8 +-- .../nodes/Keap/EcommerceProductDescription.ts | 8 +-- .../nodes-base/nodes/Keap/EmailDescription.ts | 8 +-- .../nodes-base/nodes/Keap/FileDescription.ts | 8 +-- .../descriptions/OrganizationDescription.ts | 4 +- .../descriptions/SpaceDescription.ts | 8 +-- .../Kitemaker/descriptions/UserDescription.ts | 8 +-- .../descriptions/WorkItemDescription.ts | 8 +-- .../descriptions/ActivityDescription.ts | 8 +-- .../descriptions/CampaignDescription.ts | 8 +-- .../Lemlist/descriptions/LeadDescription.ts | 8 +-- .../Lemlist/descriptions/TeamDescription.ts | 8 +-- .../descriptions/UnsubscribeDescription.ts | 8 +-- .../nodes/Line/NotificationDescription.ts | 8 +-- .../nodes/LingvaNex/ActivityDescription.ts | 8 +-- .../nodes/LinkedIn/PostDescription.ts | 8 +-- .../nodes/Magento/CustomerDescription.ts | 8 +-- .../nodes/Magento/GenericFunctions.ts | 17 +++--- .../nodes/Magento/InvoiceDescription.ts | 8 +-- .../nodes/Magento/OrderDescription.ts | 8 +-- .../nodes/Magento/ProductDescription.ts | 8 +-- .../nodes/MailerLite/SubscriberDescription.ts | 9 +-- .../nodes/Mailjet/EmailDescription.ts | 10 ++-- .../nodes/Mailjet/SmsDescription.ts | 8 +-- .../nodes/Matrix/AccountDescription.ts | 4 +- .../nodes/Matrix/EventDescription.ts | 8 +-- .../nodes/Matrix/MediaDescription.ts | 8 +-- .../nodes/Matrix/MessageDescription.ts | 9 +-- .../nodes/Matrix/RoomDescription.ts | 8 +-- .../nodes/Matrix/RoomMemberDescription.ts | 8 +-- .../Mattermost/v1/actions/channel/index.ts | 4 +- .../Mattermost/v1/actions/message/index.ts | 4 +- .../Mattermost/v1/actions/reaction/index.ts | 4 +- .../nodes/Mattermost/v1/actions/user/index.ts | 4 +- .../Mautic/CampaignContactDescription.ts | 8 +-- .../nodes/Mautic/CompanyContactDescription.ts | 8 +-- .../nodes/Mautic/CompanyDescription.ts | 8 +-- .../nodes/Mautic/ContactDescription.ts | 8 +-- .../nodes/Mautic/ContactSegmentDescription.ts | 8 +-- .../Microsoft/Dynamics/GenericFunctions.ts | 3 +- .../descriptions/AccountDescription.ts | 8 +-- .../nodes/Microsoft/Excel/TableDescription.ts | 8 +-- .../Microsoft/Excel/WorkbookDescription.ts | 8 +-- .../Microsoft/Excel/WorksheetDescription.ts | 8 +-- .../Microsoft/OneDrive/FileDescription.ts | 8 +-- .../Microsoft/OneDrive/FolderDescription.ts | 8 +-- .../Microsoft/Outlook/DraftDescription.ts | 8 +-- .../Outlook/DraftMessageSharedDescription.ts | 4 +- .../Microsoft/Outlook/FolderDescription.ts | 8 +-- .../Outlook/FolderMessageDecription.ts | 8 +-- .../Outlook/MessageAttachmentDescription.ts | 8 +-- .../Microsoft/Outlook/MessageDescription.ts | 8 +-- .../Microsoft/Teams/ChannelDescription.ts | 8 +-- .../Teams/ChannelMessageDescription.ts | 8 +-- .../nodes/Microsoft/Teams/TaskDescription.ts | 8 +-- .../ToDo/LinkedResourceDescription.ts | 8 +-- .../nodes/Microsoft/ToDo/ListDescription.ts | 8 +-- .../nodes/Microsoft/ToDo/TaskDescription.ts | 8 +-- .../nodes/MondayCom/BoardColumnDescription.ts | 8 +-- .../nodes/MondayCom/BoardDescription.ts | 8 +-- .../nodes/MondayCom/BoardGroupDescription.ts | 8 +-- .../nodes/MondayCom/BoardItemDescription.ts | 8 +-- .../descriptions/ActivityDescription.ts | 8 +-- .../MonicaCrm/descriptions/CallDescription.ts | 8 +-- .../descriptions/ContactDescription.ts | 8 +-- .../descriptions/ContactFieldDescription.ts | 8 +-- .../descriptions/ContactTagDescription.ts | 8 +-- .../descriptions/ConversationDescription.ts | 8 +-- .../ConversationMessageDescription.ts | 8 +-- .../descriptions/JournalEntryDescription.ts | 8 +-- .../MonicaCrm/descriptions/NoteDescription.ts | 9 +-- .../descriptions/ReminderDescription.ts | 8 +-- .../MonicaCrm/descriptions/TagDescription.ts | 8 +-- .../MonicaCrm/descriptions/TaskDescription.ts | 8 +-- .../nodes/Netlify/DeployDescription.ts | 12 ++-- .../nodes/Netlify/SiteDescription.ts | 11 ++-- .../nodes/NocoDB/OperationDescription.ts | 4 +- .../nodes/Notion/BlockDescription.ts | 8 +-- packages/nodes-base/nodes/Notion/Blocks.ts | 40 ++++++------- .../nodes/Notion/DatabaseDescription.ts | 8 +-- .../nodes/Notion/DatabasePageDescription.ts | 8 +-- packages/nodes-base/nodes/Notion/Filters.ts | 6 +- .../nodes/Notion/PageDescription.ts | 8 +-- .../nodes/Notion/UserDescription.ts | 8 +-- .../nodes/Orbit/ActivityDescription.ts | 8 +-- .../nodes/Orbit/MemberDescription.ts | 8 +-- .../nodes-base/nodes/Orbit/NoteDescription.ts | 8 +-- .../nodes-base/nodes/Orbit/PostDescription.ts | 8 +-- .../nodes/Oura/ProfileDescription.ts | 4 +- .../nodes/Oura/SummaryDescription.ts | 8 +-- .../nodes/Paddle/CouponDescription.ts | 8 +-- .../nodes/Paddle/OrderDescription.ts | 8 +-- .../nodes/Paddle/PaymentDescription.ts | 8 +-- .../nodes/Paddle/PlanDescription.ts | 8 +-- .../nodes/Paddle/ProductDescription.ts | 8 +-- .../nodes/Paddle/UserDescription.ts | 8 +-- .../nodes/PagerDuty/IncidentDescription.ts | 8 +-- .../PagerDuty/IncidentNoteDescription.ts | 8 +-- .../nodes/PagerDuty/LogEntryDescription.ts | 8 +-- .../nodes/PagerDuty/UserDescription.ts | 8 +-- .../nodes/PayPal/PaymentDescription.ts | 18 +++--- .../nodes/Phantombuster/AgentDescription.ts | 8 +-- .../nodes/PhilipsHue/LightDescription.ts | 8 +-- .../nodes-base/nodes/Plivo/CallDescription.ts | 8 +-- .../nodes-base/nodes/Plivo/MmsDescription.ts | 8 +-- .../nodes-base/nodes/Plivo/SmsDescription.ts | 8 +-- .../nodes/PostHog/AliasDescription.ts | 8 +-- .../nodes/PostHog/EventDescription.ts | 8 +-- .../nodes/PostHog/IdentityDescription.ts | 8 +-- .../nodes/PostHog/TrackDescription.ts | 8 +-- .../nodes/ProfitWell/CompanyDescription.ts | 4 +- .../nodes/ProfitWell/MetricDescription.ts | 8 +-- .../nodes/QuickBase/FieldDescription.ts | 8 +-- .../nodes/QuickBase/FileDescription.ts | 8 +-- .../nodes/QuickBase/RecordDescription.ts | 8 +-- .../nodes/QuickBase/ReportDescription.ts | 8 +-- .../nodes/QuickBooks/GenericFunctions.ts | 5 +- .../Bill/BillAdditionalFieldsOptions.ts | 6 +- .../descriptions/Bill/BillDescription.ts | 8 +-- .../CustomerAdditionalFieldsOptions.ts | 6 +- .../Customer/CustomerDescription.ts | 8 +-- .../EmployeeAdditionalFieldsOptions.ts | 6 +- .../Employee/EmployeeDescription.ts | 8 +-- .../EstimateAdditionalFieldsOptions.ts | 6 +- .../Estimate/EstimateDescription.ts | 8 +-- .../Invoice/InvoiceAdditionalFieldsOptions.ts | 6 +- .../Invoice/InvoiceDescription.ts | 8 +-- .../descriptions/Item/ItemDescription.ts | 8 +-- .../Payment/PaymentAdditionalFieldsOptions.ts | 6 +- .../Payment/PaymentDescription.ts | 8 +-- .../Purchase/PurchaseDescription.ts | 8 +-- .../Transaction/TransactionDescription.ts | 8 +-- .../Vendor/VendorAdditionalFieldsOptions.ts | 6 +- .../descriptions/Vendor/VendorDescription.ts | 8 +-- .../descriptions/BookmarkDescription.ts | 8 +-- .../descriptions/CollectionDescription.ts | 8 +-- .../Raindrop/descriptions/TagDescription.ts | 8 +-- .../Raindrop/descriptions/UserDescription.ts | 8 +-- .../nodes/Reddit/PostCommentDescription.ts | 8 +-- .../nodes/Reddit/PostDescription.ts | 8 +-- .../nodes/Reddit/ProfileDescription.ts | 8 +-- .../nodes/Reddit/SubredditDescription.ts | 8 +-- .../nodes/Reddit/UserDescription.ts | 8 +-- .../nodes/Salesforce/AccountDescription.ts | 14 +++-- .../nodes/Salesforce/AttachmentDescription.ts | 8 +-- .../nodes/Salesforce/CaseDescription.ts | 8 +-- .../nodes/Salesforce/ContactDescription.ts | 8 +-- .../Salesforce/CustomObjectDescription.ts | 8 +-- .../nodes/Salesforce/DocumentDescription.ts | 8 +-- .../nodes/Salesforce/FlowDescription.ts | 8 +-- .../nodes/Salesforce/LeadDescription.ts | 12 ++-- .../Salesforce/OpportunityDescription.ts | 8 +-- .../nodes/Salesforce/SearchDescription.ts | 8 +-- .../nodes/Salesforce/TaskDescription.ts | 8 +-- .../nodes/Salesforce/UserDescription.ts | 8 +-- .../nodes/Salesmate/ActivityDescription.ts | 8 +-- .../nodes/Salesmate/CompanyDescription.ts | 8 +-- .../nodes/Salesmate/DealDescription.ts | 8 +-- .../nodes/SeaTable/RowDescription.ts | 8 +-- .../descriptions/CompanyDescription.ts | 8 +-- .../descriptions/IndustryDescription.ts | 9 +-- .../descriptions/InviteDescription.ts | 8 +-- .../PortfolioCompanyDescription.ts | 8 +-- .../descriptions/PortfolioDescription.ts | 8 +-- .../descriptions/ReportDescription.ts | 9 +-- .../nodes/Segment/GroupDescription.ts | 8 +-- .../nodes/Segment/IdentifyDescription.ts | 8 +-- .../nodes/Segment/TrackDescription.ts | 8 +-- .../nodes/SendGrid/ContactDescription.ts | 9 +-- .../nodes/SendGrid/ListDescription.ts | 8 +-- .../nodes/SendGrid/MailDescription.ts | 8 +-- .../nodes/Sendy/CampaignDescription.ts | 8 +-- .../nodes/Sendy/SubscriberDescription.ts | 8 +-- .../nodes/SentryIo/EventDescription.ts | 10 ++-- .../nodes/SentryIo/IssueDescription.ts | 8 +-- .../nodes/SentryIo/OrganizationDescription.ts | 9 +-- .../nodes/SentryIo/ProjectDescription.ts | 8 +-- .../nodes/SentryIo/ReleaseDescription.ts | 8 +-- .../nodes/SentryIo/TeamDescription.ts | 8 +-- .../ServiceNow/BusinessServiceDescription.ts | 8 +-- .../ConfigurationItemsDescription.ts | 8 +-- .../nodes/ServiceNow/DepartmentDescription.ts | 8 +-- .../nodes/ServiceNow/DictionaryDescription.ts | 8 +-- .../nodes/ServiceNow/IncidentDescription.ts | 8 +-- .../ServiceNow/TableRecordDescription.ts | 8 +-- .../nodes/ServiceNow/UserDescription.ts | 8 +-- .../nodes/ServiceNow/UserGroupDescription.ts | 8 +-- .../nodes/ServiceNow/UserRoleDescription.ts | 8 +-- .../nodes/Shopify/OrderDescription.ts | 8 +-- .../nodes/Shopify/ProductDescription.ts | 8 +-- .../nodes/Slack/ChannelDescription.ts | 8 +-- .../nodes-base/nodes/Slack/FileDescription.ts | 8 +-- .../nodes/Slack/MessageDescription.ts | 8 +-- .../nodes/Slack/ReactionDescription.ts | 8 +-- .../nodes-base/nodes/Slack/StarDescription.ts | 8 +-- .../nodes-base/nodes/Slack/UserDescription.ts | 8 +-- .../nodes/Slack/UserGroupDescription.ts | 8 +-- .../nodes/Slack/UserProfileDescription.ts | 8 +-- .../nodes/Spontit/PushDescription.ts | 8 +-- .../Storyblok/StoryContentDescription.ts | 8 +-- .../Storyblok/StoryManagementDescription.ts | 8 +-- .../nodes/Strapi/EntryDescription.ts | 8 +-- .../nodes/Strava/ActivityDescription.ts | 9 +-- .../Stripe/descriptions/BalanceDescription.ts | 4 +- .../Stripe/descriptions/ChargeDescription.ts | 10 ++-- .../Stripe/descriptions/CouponDescription.ts | 8 +-- .../descriptions/CustomerCardDescription.ts | 8 +-- .../descriptions/CustomerDescription.ts | 10 ++-- .../Stripe/descriptions/SourceDescription.ts | 8 +-- .../Stripe/descriptions/TokenDescription.ts | 8 +-- .../Taiga/descriptions/EpicDescription.ts | 8 +-- .../Taiga/descriptions/IssueDescription.ts | 8 +-- .../Taiga/descriptions/TaskDescription.ts | 8 +-- .../descriptions/UserStoryDescription.ts | 8 +-- .../nodes/Tapfiliate/AffiliateDescription.ts | 10 ++-- .../AffiliateMetadataDescription.ts | 11 ++-- .../Tapfiliate/ProgramAffiliateDescription.ts | 12 ++-- .../TheHive/descriptions/AlertDescription.ts | 8 +-- .../TheHive/descriptions/CaseDescription.ts | 8 +-- .../TheHive/descriptions/LogDescription.ts | 9 +-- .../descriptions/ObservableDescription.ts | 8 +-- .../TheHive/descriptions/TaskDescription.ts | 8 +-- .../nodes/TravisCi/BuildDescription.ts | 8 +-- .../nodes/Trello/AttachmentDescription.ts | 8 +-- .../nodes/Trello/BoardDescription.ts | 8 +-- .../nodes/Trello/CardCommentDescription.ts | 8 +-- .../nodes/Trello/CardDescription.ts | 8 +-- .../nodes/Trello/ChecklistDescription.ts | 8 +-- .../nodes/Trello/LabelDescription.ts | 8 +-- .../nodes/Trello/ListDescription.ts | 8 +-- .../nodes/Twist/ChannelDescription.ts | 8 +-- .../nodes/Twist/CommentDescription.ts | 10 ++-- .../Twist/MessageConversationDescription.ts | 12 ++-- .../nodes/Twist/ThreadDescription.ts | 10 ++-- .../nodes/Twitter/DirectMessageDescription.ts | 8 +-- .../nodes/Twitter/TweetDescription.ts | 8 +-- .../SalesOrderDescription.ts | 8 +-- .../StockOnHandDescription.ts | 8 +-- .../nodes/Uplead/CompanyDesciption.ts | 8 +-- .../nodes/Uplead/PersonDescription.ts | 8 +-- .../UptimeRobot/AlertContactDescription.ts | 8 +-- .../MaintenanceWindowDescription.ts | 8 +-- .../nodes/UptimeRobot/MonitorDescription.ts | 8 +-- .../PublicStatusPageDescription.ts | 8 +-- .../nodes-base/nodes/Vero/EventDescripion.ts | 8 +-- .../nodes-base/nodes/Vero/UserDescription.ts | 8 +-- .../nodes/Webflow/ItemDescription.ts | 8 +-- .../nodes/Wekan/BoardDescription.ts | 8 +-- .../nodes/Wekan/CardCommentDescription.ts | 8 +-- .../nodes-base/nodes/Wekan/CardDescription.ts | 8 +-- .../nodes/Wekan/ChecklistDescription.ts | 8 +-- .../nodes/Wekan/ChecklistItemDescription.ts | 8 +-- .../nodes-base/nodes/Wekan/ListDescription.ts | 8 +-- .../Wise/descriptions/AccountDescription.ts | 8 +-- .../descriptions/ExchangeRateDescription.ts | 8 +-- .../Wise/descriptions/ProfileDescription.ts | 8 +-- .../Wise/descriptions/QuoteDescription.ts | 8 +-- .../Wise/descriptions/RecipientDescription.ts | 8 +-- .../Wise/descriptions/TransferDescription.ts | 8 +-- .../nodes/WooCommerce/OrderDescription.ts | 8 +-- .../nodes/WooCommerce/ProductDescription.ts | 8 +-- .../descriptions/CustomerDescription.ts | 8 +-- .../nodes/WooCommerce/descriptions/shared.ts | 14 +++-- .../nodes/Wordpress/PostDescription.ts | 8 +-- .../nodes/Wordpress/UserDescription.ts | 8 +-- .../nodes/Xero/ContactDescription.ts | 8 +-- .../nodes/Xero/InvoiceDescription.ts | 8 +-- .../nodes-base/nodes/Yourls/UrlDescription.ts | 8 +-- .../nodes/Zendesk/ConditionDescription.ts | 4 +- .../nodes/Zendesk/OrganizationDescription.ts | 8 +-- .../nodes/Zendesk/TicketDescription.ts | 8 +-- .../nodes/Zendesk/TicketFieldDescription.ts | 8 +-- .../nodes/Zendesk/UserDescription.ts | 8 +-- .../Zoho/descriptions/AccountDescription.ts | 8 +-- .../Zoho/descriptions/ContactDescription.ts | 8 +-- .../Zoho/descriptions/DealDescription.ts | 8 +-- .../Zoho/descriptions/InvoiceDescription.ts | 8 +-- .../Zoho/descriptions/LeadDescription.ts | 8 +-- .../Zoho/descriptions/ProductDescription.ts | 8 +-- .../descriptions/PurchaseOrderDescription.ts | 8 +-- .../Zoho/descriptions/QuoteDescription.ts | 8 +-- .../descriptions/SalesOrderDescription.ts | 8 +-- .../nodes/Zoho/descriptions/SharedFields.ts | 19 ++++--- .../Zoho/descriptions/VendorDescription.ts | 8 +-- .../nodes/Zoom/MeetingDescription.ts | 8 +-- .../Zoom/MeetingRegistrantDescription.ts | 8 +-- .../nodes/Zoom/WebinarDescription.ts | 8 +-- .../nodes/Zulip/MessageDescription.ts | 12 ++-- .../nodes/Zulip/StreamDescription.ts | 8 +-- .../nodes-base/nodes/Zulip/UserDescription.ts | 8 +-- packages/workflow/src/Interfaces.ts | 2 +- 527 files changed, 2289 insertions(+), 2259 deletions(-) diff --git a/packages/nodes-base/nodes/ActionNetwork/descriptions/AttendanceDescription.ts b/packages/nodes-base/nodes/ActionNetwork/descriptions/AttendanceDescription.ts index 0eacc615b8eef2..4b76624fc20219 100644 --- a/packages/nodes-base/nodes/ActionNetwork/descriptions/AttendanceDescription.ts +++ b/packages/nodes-base/nodes/ActionNetwork/descriptions/AttendanceDescription.ts @@ -6,7 +6,7 @@ import { makeSimpleField, } from './SharedFields'; -export const attendanceOperations = [ +export const attendanceOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -35,9 +35,9 @@ export const attendanceOperations = [ default: 'create', description: 'Operation to perform', }, -] as INodeProperties[]; +]; -export const attendanceFields = [ +export const attendanceFields: INodeProperties[] = [ // ---------------------------------------- // attendance: create // ---------------------------------------- @@ -182,4 +182,4 @@ export const attendanceFields = [ }, }, makeSimpleField('attendance', 'getAll'), -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/ActionNetwork/descriptions/EventDescription.ts b/packages/nodes-base/nodes/ActionNetwork/descriptions/EventDescription.ts index 1e30d2b10a9f33..31de2616bcf221 100644 --- a/packages/nodes-base/nodes/ActionNetwork/descriptions/EventDescription.ts +++ b/packages/nodes-base/nodes/ActionNetwork/descriptions/EventDescription.ts @@ -7,7 +7,7 @@ import { makeSimpleField, } from './SharedFields'; -export const eventOperations = [ +export const eventOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -36,9 +36,9 @@ export const eventOperations = [ default: 'create', description: 'Operation to perform', }, -] as INodeProperties[]; +]; -export const eventFields = [ +export const eventFields: INodeProperties[] = [ // ---------------------------------------- // event: create // ---------------------------------------- @@ -165,4 +165,4 @@ export const eventFields = [ }, }, makeSimpleField('event', 'getAll'), -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/ActionNetwork/descriptions/PersonDescription.ts b/packages/nodes-base/nodes/ActionNetwork/descriptions/PersonDescription.ts index 0e78c679da831e..f8ce9dd9fe801f 100644 --- a/packages/nodes-base/nodes/ActionNetwork/descriptions/PersonDescription.ts +++ b/packages/nodes-base/nodes/ActionNetwork/descriptions/PersonDescription.ts @@ -7,7 +7,7 @@ import { personAdditionalFieldsOptions, } from './SharedFields'; -export const personOperations = [ +export const personOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -40,9 +40,9 @@ export const personOperations = [ default: 'create', description: 'Operation to perform', }, -] as INodeProperties[]; +]; -export const personFields = [ +export const personFields: INodeProperties[] = [ // ---------------------------------------- // person: create // ---------------------------------------- @@ -247,4 +247,4 @@ export const personFields = [ }, options: personAdditionalFieldsOptions, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/ActionNetwork/descriptions/PersonTagDescription.ts b/packages/nodes-base/nodes/ActionNetwork/descriptions/PersonTagDescription.ts index 82bbd64b2e0eaf..d5715d9feb418a 100644 --- a/packages/nodes-base/nodes/ActionNetwork/descriptions/PersonTagDescription.ts +++ b/packages/nodes-base/nodes/ActionNetwork/descriptions/PersonTagDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const personTagOperations = [ +export const personTagOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -27,9 +27,9 @@ export const personTagOperations = [ default: 'add', description: 'Operation to perform', }, -] as INodeProperties[]; +]; -export const personTagFields = [ +export const personTagFields: INodeProperties[] = [ // ---------------------------------------- // personTag: add // ---------------------------------------- @@ -103,7 +103,9 @@ export const personTagFields = [ description: 'ID of the tagging to remove.', type: 'options', typeOptions: { - loadOptionsDependsOn: 'tagId', + loadOptionsDependsOn: [ + 'tagId', + ], loadOptionsMethod: 'getTaggings', }, required: true, @@ -119,4 +121,4 @@ export const personTagFields = [ }, }, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/ActionNetwork/descriptions/PetitionDescription.ts b/packages/nodes-base/nodes/ActionNetwork/descriptions/PetitionDescription.ts index 717a661dada4f4..c7723cee7cb9e3 100644 --- a/packages/nodes-base/nodes/ActionNetwork/descriptions/PetitionDescription.ts +++ b/packages/nodes-base/nodes/ActionNetwork/descriptions/PetitionDescription.ts @@ -7,7 +7,7 @@ import { petitionAdditionalFieldsOptions, } from './SharedFields'; -export const petitionOperations = [ +export const petitionOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -40,9 +40,9 @@ export const petitionOperations = [ default: 'create', description: 'Operation to perform', }, -] as INodeProperties[]; +]; -export const petitionFields = [ +export const petitionFields: INodeProperties[] = [ // ---------------------------------------- // petition: create // ---------------------------------------- @@ -210,4 +210,4 @@ export const petitionFields = [ }, options: petitionAdditionalFieldsOptions, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/ActionNetwork/descriptions/SharedFields.ts b/packages/nodes-base/nodes/ActionNetwork/descriptions/SharedFields.ts index 321eaa1d9771ab..5ad7166346171c 100644 --- a/packages/nodes-base/nodes/ActionNetwork/descriptions/SharedFields.ts +++ b/packages/nodes-base/nodes/ActionNetwork/descriptions/SharedFields.ts @@ -1,9 +1,13 @@ +import { + INodeProperties, +} from 'n8n-workflow'; + import { Operation, Resource, } from '../types'; -export const languageOptions = [ +export const languageOptions: INodeProperties['options'] = [ { name: 'Danish', value: 'da', @@ -68,9 +72,9 @@ export const languageOptions = [ name: 'Welsh', value: 'cy', }, -] as const; +]; -const postalAddressesFields = [ +const postalAddressesFields: INodeProperties[] = [ { displayName: 'Primary', name: 'primary', @@ -150,7 +154,7 @@ const postalAddressesFields = [ }, ]; -export const eventAdditionalFieldsOptions = [ +export const eventAdditionalFieldsOptions: INodeProperties['options'] = [ { displayName: 'Browser URL', name: 'browser_url', @@ -221,7 +225,7 @@ export const eventAdditionalFieldsOptions = [ }, ]; -export const personAdditionalFieldsOptions = [ +export const personAdditionalFieldsOptions: INodeProperties['options'] = [ { displayName: 'Family Name', name: 'family_name', @@ -319,7 +323,7 @@ export const personAdditionalFieldsOptions = [ }, ]; -export const petitionAdditionalFieldsOptions = [ +export const petitionAdditionalFieldsOptions: INodeProperties[] = [ { displayName: 'Browser URL', name: 'browser_url', @@ -357,7 +361,7 @@ export const petitionAdditionalFieldsOptions = [ }, ]; -export const makeSimpleField = (resource: Resource, operation: Operation) => ({ +export const makeSimpleField = (resource: Resource, operation: Operation): INodeProperties => ({ displayName: 'Simple', name: 'simple', type: 'boolean', diff --git a/packages/nodes-base/nodes/ActionNetwork/descriptions/SignatureDescription.ts b/packages/nodes-base/nodes/ActionNetwork/descriptions/SignatureDescription.ts index 013e4ae2003520..b9ffd6e1ffe8d2 100644 --- a/packages/nodes-base/nodes/ActionNetwork/descriptions/SignatureDescription.ts +++ b/packages/nodes-base/nodes/ActionNetwork/descriptions/SignatureDescription.ts @@ -6,7 +6,7 @@ import { makeSimpleField, } from './SharedFields'; -export const signatureOperations = [ +export const signatureOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -39,9 +39,9 @@ export const signatureOperations = [ default: 'create', description: 'Operation to perform', }, -] as INodeProperties[]; +]; -export const signatureFields = [ +export const signatureFields: INodeProperties[] = [ // ---------------------------------------- // signature: create // ---------------------------------------- @@ -279,4 +279,4 @@ export const signatureFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/ActionNetwork/descriptions/TagDescription.ts b/packages/nodes-base/nodes/ActionNetwork/descriptions/TagDescription.ts index 521c2df08b32fb..75ee25c0c25e9d 100644 --- a/packages/nodes-base/nodes/ActionNetwork/descriptions/TagDescription.ts +++ b/packages/nodes-base/nodes/ActionNetwork/descriptions/TagDescription.ts @@ -6,7 +6,7 @@ import { makeSimpleField, } from './SharedFields'; -export const tagOperations = [ +export const tagOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -35,9 +35,9 @@ export const tagOperations = [ default: 'create', description: 'Operation to perform', }, -] as INodeProperties[]; +]; -export const tagFields = [ +export const tagFields: INodeProperties[] = [ // ---------------------------------------- // tag: create // ---------------------------------------- @@ -128,4 +128,4 @@ export const tagFields = [ }, }, makeSimpleField('tag', 'getAll'), -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/ActionNetwork/types.d.ts b/packages/nodes-base/nodes/ActionNetwork/types.d.ts index b2ce726aa7a7be..3fcb13c05f4582 100644 --- a/packages/nodes-base/nodes/ActionNetwork/types.d.ts +++ b/packages/nodes-base/nodes/ActionNetwork/types.d.ts @@ -4,6 +4,7 @@ export type Resource = 'attendance' | 'event' | 'person' | 'personTag' | 'petiti export type Operation = 'create' | 'delete' | 'get' | 'getAll' | 'update' | 'add' | 'remove'; +// @ts-ignore export type LanguageCodes = typeof languageOptions[number]['value'] diff --git a/packages/nodes-base/nodes/ActiveCampaign/AccountContactDescription.ts b/packages/nodes-base/nodes/ActiveCampaign/AccountContactDescription.ts index 5a88c8a4e92be5..65febe90953734 100644 --- a/packages/nodes-base/nodes/ActiveCampaign/AccountContactDescription.ts +++ b/packages/nodes-base/nodes/ActiveCampaign/AccountContactDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const accountContactOperations = [ +export const accountContactOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -34,9 +34,9 @@ export const accountContactOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const accountContactFields = [ +export const accountContactFields: INodeProperties[] = [ // ---------------------------------- // accountContact:create // ---------------------------------- @@ -172,4 +172,4 @@ export const accountContactFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/ActiveCampaign/AccountDescription.ts b/packages/nodes-base/nodes/ActiveCampaign/AccountDescription.ts index bc91bcef0d9aaa..3fb19f2dffb360 100644 --- a/packages/nodes-base/nodes/ActiveCampaign/AccountDescription.ts +++ b/packages/nodes-base/nodes/ActiveCampaign/AccountDescription.ts @@ -6,7 +6,7 @@ import { activeCampaignDefaultGetAllProperties, } from './GenericFunctions'; -export const accountOperations = [ +export const accountOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -48,9 +48,9 @@ export const accountOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const accountFields = [ +export const accountFields: INodeProperties[] = [ // ---------------------------------- // contact:create // ---------------------------------- @@ -299,4 +299,4 @@ export const accountFields = [ ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/ActiveCampaign/ConnectionDescription.ts b/packages/nodes-base/nodes/ActiveCampaign/ConnectionDescription.ts index 0c9365faa3b333..1f319aa602a8ca 100644 --- a/packages/nodes-base/nodes/ActiveCampaign/ConnectionDescription.ts +++ b/packages/nodes-base/nodes/ActiveCampaign/ConnectionDescription.ts @@ -6,7 +6,7 @@ import { activeCampaignDefaultGetAllProperties, } from './GenericFunctions'; -export const connectionOperations = [ +export const connectionOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -49,9 +49,9 @@ export const connectionOperations = [ description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const connectionFields = [ +export const connectionFields: INodeProperties[] = [ // ---------------------------------- // connection:create // ---------------------------------- @@ -286,4 +286,4 @@ export const connectionFields = [ // ---------------------------------- ...activeCampaignDefaultGetAllProperties('connection', 'getAll'), -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/ActiveCampaign/ContactDescription.ts b/packages/nodes-base/nodes/ActiveCampaign/ContactDescription.ts index e6f31d932bed5c..9972e2828aa17c 100644 --- a/packages/nodes-base/nodes/ActiveCampaign/ContactDescription.ts +++ b/packages/nodes-base/nodes/ActiveCampaign/ContactDescription.ts @@ -6,7 +6,7 @@ import { activeCampaignDefaultGetAllProperties, } from './GenericFunctions'; -export const contactOperations = [ +export const contactOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -48,9 +48,9 @@ export const contactOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const contactFields = [ +export const contactFields: INodeProperties[] = [ // ---------------------------------- // contact:create // ---------------------------------- @@ -510,4 +510,4 @@ export const contactFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/ActiveCampaign/ContactListDescription.ts b/packages/nodes-base/nodes/ActiveCampaign/ContactListDescription.ts index 78d15dd9bd592c..01a748f54b2348 100644 --- a/packages/nodes-base/nodes/ActiveCampaign/ContactListDescription.ts +++ b/packages/nodes-base/nodes/ActiveCampaign/ContactListDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const contactListOperations = [ +export const contactListOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -29,9 +29,9 @@ export const contactListOperations = [ default: 'add', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const contactListFields = [ +export const contactListFields: INodeProperties[] = [ // ---------------------------------- // contactList:add // ---------------------------------- @@ -111,4 +111,4 @@ export const contactListFields = [ }, description: 'Contact ID', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/ActiveCampaign/ContactTagDescription.ts b/packages/nodes-base/nodes/ActiveCampaign/ContactTagDescription.ts index 46dd6426ab36a4..5bbe4990a1d2be 100644 --- a/packages/nodes-base/nodes/ActiveCampaign/ContactTagDescription.ts +++ b/packages/nodes-base/nodes/ActiveCampaign/ContactTagDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const contactTagOperations = [ +export const contactTagOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -29,9 +29,9 @@ export const contactTagOperations = [ default: 'add', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const contactTagFields = [ +export const contactTagFields: INodeProperties[] = [ // ---------------------------------- // contactTag:add // ---------------------------------- @@ -95,4 +95,4 @@ export const contactTagFields = [ required: true, description: 'ID of the contact tag to delete.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/ActiveCampaign/DealDescription.ts b/packages/nodes-base/nodes/ActiveCampaign/DealDescription.ts index d3c0d4189dce01..77075ac9a9ce3c 100644 --- a/packages/nodes-base/nodes/ActiveCampaign/DealDescription.ts +++ b/packages/nodes-base/nodes/ActiveCampaign/DealDescription.ts @@ -10,7 +10,7 @@ import { activeCampaignDefaultGetAllProperties, } from './GenericFunctions'; -export const dealOperations = [ +export const dealOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -63,9 +63,9 @@ export const dealOperations = [ description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const dealFields = [ +export const dealFields: INodeProperties[] = [ // ---------------------------------- // deal:create // ---------------------------------- @@ -494,4 +494,4 @@ export const dealFields = [ description: 'The content of the deal note', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/ActiveCampaign/EcomCustomerDescription.ts b/packages/nodes-base/nodes/ActiveCampaign/EcomCustomerDescription.ts index 0093074413e5d0..9916d467f17be1 100644 --- a/packages/nodes-base/nodes/ActiveCampaign/EcomCustomerDescription.ts +++ b/packages/nodes-base/nodes/ActiveCampaign/EcomCustomerDescription.ts @@ -6,7 +6,7 @@ import { activeCampaignDefaultGetAllProperties, } from './GenericFunctions'; -export const ecomCustomerOperations = [ +export const ecomCustomerOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -48,9 +48,9 @@ export const ecomCustomerOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const ecomCustomerFields = [ +export const ecomCustomerFields: INodeProperties[] = [ // ---------------------------------- // ecommerceCustomer:create // ---------------------------------- @@ -253,4 +253,4 @@ export const ecomCustomerFields = [ // ecommerceCustomer:getAll // ---------------------------------- ...activeCampaignDefaultGetAllProperties('ecommerceCustomer', 'getAll'), -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/ActiveCampaign/EcomOrderDescription.ts b/packages/nodes-base/nodes/ActiveCampaign/EcomOrderDescription.ts index 3a73d35808d2f2..3eeb3f668608cc 100644 --- a/packages/nodes-base/nodes/ActiveCampaign/EcomOrderDescription.ts +++ b/packages/nodes-base/nodes/ActiveCampaign/EcomOrderDescription.ts @@ -10,7 +10,7 @@ import { activeCampaignDefaultGetAllProperties, } from './GenericFunctions'; -export const ecomOrderOperations = [ +export const ecomOrderOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -52,9 +52,9 @@ export const ecomOrderOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const ecomOrderFields = [ +export const ecomOrderFields: INodeProperties[] = [ // ---------------------------------- // ecommerceOrder:create // ---------------------------------- @@ -682,4 +682,4 @@ export const ecomOrderFields = [ // ---------------------------------- ...activeCampaignDefaultGetAllProperties('ecommerceOrder', 'getAll'), -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/ActiveCampaign/EcomOrderProductsDescription.ts b/packages/nodes-base/nodes/ActiveCampaign/EcomOrderProductsDescription.ts index 335fa7a2833cd1..7f875111fe07f2 100644 --- a/packages/nodes-base/nodes/ActiveCampaign/EcomOrderProductsDescription.ts +++ b/packages/nodes-base/nodes/ActiveCampaign/EcomOrderProductsDescription.ts @@ -6,7 +6,7 @@ import { activeCampaignDefaultGetAllProperties, } from './GenericFunctions'; -export const ecomOrderProductsOperations = [ +export const ecomOrderProductsOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -38,9 +38,9 @@ export const ecomOrderProductsOperations = [ default: 'getAll', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const ecomOrderProductsFields = [ +export const ecomOrderProductsFields: INodeProperties[] = [ // ---------------------------------- // ecommerceOrderProducts:getByOrderId // ---------------------------------- @@ -87,4 +87,4 @@ export const ecomOrderProductsFields = [ // ecommerceOrderProducts:getAll // ---------------------------------- ...activeCampaignDefaultGetAllProperties('ecommerceOrderProducts', 'getAll'), -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/ActiveCampaign/ListDescription.ts b/packages/nodes-base/nodes/ActiveCampaign/ListDescription.ts index ced126b341015c..c1e984deaadfda 100644 --- a/packages/nodes-base/nodes/ActiveCampaign/ListDescription.ts +++ b/packages/nodes-base/nodes/ActiveCampaign/ListDescription.ts @@ -6,7 +6,7 @@ import { activeCampaignDefaultGetAllProperties, } from './GenericFunctions'; -export const listOperations = [ +export const listOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -28,11 +28,11 @@ export const listOperations = [ default: 'getAll', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const listFields = [ +export const listFields: INodeProperties[] = [ // ---------------------------------- // list:getAll // ---------------------------------- ...activeCampaignDefaultGetAllProperties('list', 'getAll'), -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/ActiveCampaign/TagDescription.ts b/packages/nodes-base/nodes/ActiveCampaign/TagDescription.ts index c619d1caad1f9d..df206f4944c12f 100644 --- a/packages/nodes-base/nodes/ActiveCampaign/TagDescription.ts +++ b/packages/nodes-base/nodes/ActiveCampaign/TagDescription.ts @@ -6,7 +6,7 @@ import { activeCampaignDefaultGetAllProperties, } from './GenericFunctions'; -export const tagOperations = [ +export const tagOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -48,9 +48,9 @@ export const tagOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const tagFields = [ +export const tagFields: INodeProperties[] = [ // ---------------------------------- // contact:create // ---------------------------------- @@ -229,4 +229,4 @@ export const tagFields = [ // tag:getAll // ---------------------------------- ...activeCampaignDefaultGetAllProperties('tag', 'getAll'), -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Affinity/ListDescription.ts b/packages/nodes-base/nodes/Affinity/ListDescription.ts index f284ffab33dd33..72fbc8708adb20 100644 --- a/packages/nodes-base/nodes/Affinity/ListDescription.ts +++ b/packages/nodes-base/nodes/Affinity/ListDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const listOperations = [ +export const listOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -29,9 +29,9 @@ export const listOperations = [ default: 'get', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const listFields = [ +export const listFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* list:get */ /* -------------------------------------------------------------------------- */ @@ -97,4 +97,4 @@ export const listFields = [ default: 5, description: 'How many results to return.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Affinity/ListEntryDescription.ts b/packages/nodes-base/nodes/Affinity/ListEntryDescription.ts index 37d395274ce3bf..3231771c4caf98 100644 --- a/packages/nodes-base/nodes/Affinity/ListEntryDescription.ts +++ b/packages/nodes-base/nodes/Affinity/ListEntryDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const listEntryOperations = [ +export const listEntryOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -39,9 +39,9 @@ export const listEntryOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const listEntryFields = [ +export const listEntryFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* listEntry:create */ @@ -259,4 +259,4 @@ export const listEntryFields = [ }, description: 'The unique id of the list entry object to be deleted.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Affinity/OrganizationDescription.ts b/packages/nodes-base/nodes/Affinity/OrganizationDescription.ts index dd591c63c54230..da445cc33b4e96 100644 --- a/packages/nodes-base/nodes/Affinity/OrganizationDescription.ts +++ b/packages/nodes-base/nodes/Affinity/OrganizationDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const organizationOperations = [ +export const organizationOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -44,9 +44,9 @@ export const organizationOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const organizationFields = [ +export const organizationFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* organization:create */ @@ -325,4 +325,4 @@ export const organizationFields = [ }, description: 'Unique identifier for the organization.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Affinity/PersonDescription.ts b/packages/nodes-base/nodes/Affinity/PersonDescription.ts index c97634a8a3f1e6..096765b573867a 100644 --- a/packages/nodes-base/nodes/Affinity/PersonDescription.ts +++ b/packages/nodes-base/nodes/Affinity/PersonDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const personOperations = [ +export const personOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -44,9 +44,9 @@ export const personOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const personFields = [ +export const personFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* person:create */ @@ -369,4 +369,4 @@ export const personFields = [ }, description: 'Unique identifier for the person.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/AgileCrm/CompanyDescription.ts b/packages/nodes-base/nodes/AgileCrm/CompanyDescription.ts index 6b888cf4eea38c..7d421ece1746ef 100644 --- a/packages/nodes-base/nodes/AgileCrm/CompanyDescription.ts +++ b/packages/nodes-base/nodes/AgileCrm/CompanyDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const companyOperations = [ +export const companyOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -44,9 +44,9 @@ export const companyOperations = [ default: 'get', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const companyFields = [ +export const companyFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* company:get */ /* -------------------------------------------------------------------------- */ @@ -520,6 +520,7 @@ export const companyFields = [ name: 'websiteOptions', type: 'fixedCollection', description: 'Companies websites.', + default: {}, typeOptions: { multipleValues: true, }, @@ -598,6 +599,7 @@ export const companyFields = [ displayName: 'Custom Properties', name: 'customProperties', type: 'fixedCollection', + default: {}, description: 'Custom Properties', typeOptions: { multipleValues: true, @@ -815,6 +817,7 @@ export const companyFields = [ displayName: 'Website', name: 'websiteOptions', type: 'fixedCollection', + default: {}, description: 'Companys websites.', typeOptions: { multipleValues: true, @@ -894,6 +897,7 @@ export const companyFields = [ displayName: 'Custom Properties', name: 'customProperties', type: 'fixedCollection', + default: {}, description: 'Custom Properties', typeOptions: { multipleValues: true, @@ -932,4 +936,4 @@ export const companyFields = [ ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/AgileCrm/ContactDescription.ts b/packages/nodes-base/nodes/AgileCrm/ContactDescription.ts index 3ccf9b1cb99319..ba839988f2627b 100644 --- a/packages/nodes-base/nodes/AgileCrm/ContactDescription.ts +++ b/packages/nodes-base/nodes/AgileCrm/ContactDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const contactOperations = [ +export const contactOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -44,9 +44,9 @@ export const contactOperations = [ default: 'get', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const contactFields = [ +export const contactFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* contact:get */ /* -------------------------------------------------------------------------- */ @@ -450,6 +450,7 @@ export const contactFields = [ displayName: 'Address', name: 'addressOptions', type: 'fixedCollection', + default: {}, description: 'Contacts address.', typeOptions: { multipleValues: true, @@ -504,6 +505,7 @@ export const contactFields = [ displayName: 'Email', name: 'emailOptions', type: 'fixedCollection', + default: {}, description: 'Contact email.', typeOptions: { multipleValues: true, @@ -604,6 +606,7 @@ export const contactFields = [ displayName: 'Phone', name: 'phoneOptions', type: 'fixedCollection', + default: {}, description: 'Contacts phone.', typeOptions: { multipleValues: true, @@ -685,6 +688,7 @@ export const contactFields = [ displayName: 'Website', name: 'websiteOptions', type: 'fixedCollection', + default: {}, description: 'Contacts websites.', typeOptions: { multipleValues: true, @@ -764,6 +768,7 @@ export const contactFields = [ displayName: 'Custom Properties', name: 'customProperties', type: 'fixedCollection', + default: {}, description: 'Custom Properties', typeOptions: { multipleValues: true, @@ -909,6 +914,7 @@ export const contactFields = [ displayName: 'Address', name: 'addressOptions', type: 'fixedCollection', + default: {}, description: 'Contacts address.', typeOptions: { multipleValues: true, @@ -963,6 +969,7 @@ export const contactFields = [ displayName: 'Email', name: 'emailOptions', type: 'fixedCollection', + default: {}, description: 'Contact email.', typeOptions: { multipleValues: true, @@ -1063,6 +1070,7 @@ export const contactFields = [ displayName: 'Phone', name: 'phoneOptions', type: 'fixedCollection', + default: {}, description: 'Contacts phone.', typeOptions: { multipleValues: true, @@ -1144,6 +1152,7 @@ export const contactFields = [ displayName: 'Website', name: 'websiteOptions', type: 'fixedCollection', + default: {}, description: 'Contacts websites.', typeOptions: { multipleValues: true, @@ -1223,6 +1232,7 @@ export const contactFields = [ displayName: 'Custom Properties', name: 'customProperties', type: 'fixedCollection', + default: {}, description: 'Custom Properties', typeOptions: { multipleValues: true, @@ -1261,4 +1271,4 @@ export const contactFields = [ ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/AgileCrm/DealDescription.ts b/packages/nodes-base/nodes/AgileCrm/DealDescription.ts index 7dd93643e08074..813dec8072d5ba 100644 --- a/packages/nodes-base/nodes/AgileCrm/DealDescription.ts +++ b/packages/nodes-base/nodes/AgileCrm/DealDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const dealOperations = [ +export const dealOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -45,9 +45,9 @@ export const dealOperations = [ default: 'get', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const dealFields = [ +export const dealFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* deal:get */ /* -------------------------------------------------------------------------- */ @@ -301,6 +301,7 @@ export const dealFields = [ displayName: 'Custom Data', name: 'customData', type: 'fixedCollection', + default: {}, description: 'Custom Data', typeOptions: { multipleValues: true, @@ -480,6 +481,7 @@ export const dealFields = [ displayName: 'Custom Data', name: 'customData', type: 'fixedCollection', + default: {}, description: 'Custom Data', typeOptions: { multipleValues: true, @@ -510,4 +512,4 @@ export const dealFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Automizy/ContactDescription.ts b/packages/nodes-base/nodes/Automizy/ContactDescription.ts index 62f04de11cbdbf..5a46d45928e14d 100644 --- a/packages/nodes-base/nodes/Automizy/ContactDescription.ts +++ b/packages/nodes-base/nodes/Automizy/ContactDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const contactOperations = [ +export const contactOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -44,9 +44,9 @@ export const contactOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const contactFields = [ +export const contactFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* contact:create */ @@ -477,4 +477,4 @@ export const contactFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Automizy/ListDescription.ts b/packages/nodes-base/nodes/Automizy/ListDescription.ts index f8f6faa8e588b4..e3bf022be05f46 100644 --- a/packages/nodes-base/nodes/Automizy/ListDescription.ts +++ b/packages/nodes-base/nodes/Automizy/ListDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const listOperations = [ +export const listOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -44,9 +44,9 @@ export const listOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const listFields = [ +export const listFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* list:create */ @@ -238,4 +238,4 @@ export const listFields = [ }, default: '', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Autopilot/ContactDescription.ts b/packages/nodes-base/nodes/Autopilot/ContactDescription.ts index 278cbf8bc39ebf..6617486da259b2 100644 --- a/packages/nodes-base/nodes/Autopilot/ContactDescription.ts +++ b/packages/nodes-base/nodes/Autopilot/ContactDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const contactOperations = [ +export const contactOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -39,9 +39,9 @@ export const contactOperations = [ default: 'upsert', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const contactFields = [ +export const contactFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* contact:upsert */ @@ -366,4 +366,4 @@ export const contactFields = [ default: 100, description: 'How many results to return.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Autopilot/ContactJourneyDescription.ts b/packages/nodes-base/nodes/Autopilot/ContactJourneyDescription.ts index 85c38a251fc7a7..27d5fcdcc8c21b 100644 --- a/packages/nodes-base/nodes/Autopilot/ContactJourneyDescription.ts +++ b/packages/nodes-base/nodes/Autopilot/ContactJourneyDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const contactJourneyOperations = [ +export const contactJourneyOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -24,9 +24,9 @@ export const contactJourneyOperations = [ default: 'add', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const contactJourneyFields = [ +export const contactJourneyFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* contactJourney:add */ @@ -70,4 +70,4 @@ export const contactJourneyFields = [ default: '', description: 'Can be ID or email.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Autopilot/ContactListDescription.ts b/packages/nodes-base/nodes/Autopilot/ContactListDescription.ts index 1e0a9d0ef25517..22ab9e7a49b17d 100644 --- a/packages/nodes-base/nodes/Autopilot/ContactListDescription.ts +++ b/packages/nodes-base/nodes/Autopilot/ContactListDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const contactListOperations = [ +export const contactListOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -39,9 +39,9 @@ export const contactListOperations = [ default: 'add', description: 'Operation to perform.', }, -] as INodeProperties[]; +]; -export const contactListFields = [ +export const contactListFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* contactList:add */ @@ -135,4 +135,4 @@ export const contactListFields = [ default: 100, description: 'How many results to return.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Autopilot/ListDescription.ts b/packages/nodes-base/nodes/Autopilot/ListDescription.ts index 17fcf56e6d36fd..ef7eb1ca95054e 100644 --- a/packages/nodes-base/nodes/Autopilot/ListDescription.ts +++ b/packages/nodes-base/nodes/Autopilot/ListDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const listOperations = [ +export const listOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -29,9 +29,9 @@ export const listOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const listFields = [ +export const listFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* list:create */ @@ -99,4 +99,4 @@ export const listFields = [ default: 100, description: 'How many results to return.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Aws/DynamoDB/ItemDescription.ts b/packages/nodes-base/nodes/Aws/DynamoDB/ItemDescription.ts index 16b893babf98f8..d64d37b506fe51 100644 --- a/packages/nodes-base/nodes/Aws/DynamoDB/ItemDescription.ts +++ b/packages/nodes-base/nodes/Aws/DynamoDB/ItemDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const itemOperations = [ +export const itemOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -38,9 +38,9 @@ export const itemOperations = [ ], default: 'upsert', }, -] as INodeProperties[]; +]; -export const itemFields = [ +export const itemFields: INodeProperties[] = [ // ---------------------------------- // all // ---------------------------------- @@ -959,4 +959,4 @@ export const itemFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Aws/S3/BucketDescription.ts b/packages/nodes-base/nodes/Aws/S3/BucketDescription.ts index eb75893fbf360c..d0f868c1f5c20e 100644 --- a/packages/nodes-base/nodes/Aws/S3/BucketDescription.ts +++ b/packages/nodes-base/nodes/Aws/S3/BucketDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const bucketOperations = [ +export const bucketOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -39,9 +39,9 @@ export const bucketOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const bucketFields = [ +export const bucketFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* bucket:create */ @@ -352,4 +352,4 @@ export const bucketFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Aws/S3/FileDescription.ts b/packages/nodes-base/nodes/Aws/S3/FileDescription.ts index 28904e0d0acc96..11bdfc8e52b5ba 100644 --- a/packages/nodes-base/nodes/Aws/S3/FileDescription.ts +++ b/packages/nodes-base/nodes/Aws/S3/FileDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const fileOperations = [ +export const fileOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -44,9 +44,9 @@ export const fileOperations = [ default: 'download', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const fileFields = [ +export const fileFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* file:copy */ @@ -919,4 +919,4 @@ export const fileFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Aws/S3/FolderDescription.ts b/packages/nodes-base/nodes/Aws/S3/FolderDescription.ts index c36d42b54b1917..45124365c52a20 100644 --- a/packages/nodes-base/nodes/Aws/S3/FolderDescription.ts +++ b/packages/nodes-base/nodes/Aws/S3/FolderDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const folderOperations = [ +export const folderOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -34,9 +34,9 @@ export const folderOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const folderFields = [ +export const folderFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* folder:create */ @@ -275,4 +275,4 @@ export const folderFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Bannerbear/ImageDescription.ts b/packages/nodes-base/nodes/Bannerbear/ImageDescription.ts index 622799349a52cf..d68713b0cbc167 100644 --- a/packages/nodes-base/nodes/Bannerbear/ImageDescription.ts +++ b/packages/nodes-base/nodes/Bannerbear/ImageDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const imageOperations = [ +export const imageOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -29,9 +29,9 @@ export const imageOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const imageFields = [ +export const imageFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* image:create */ @@ -205,4 +205,4 @@ export const imageFields = [ }, description: 'Unique identifier for the image.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Bannerbear/TemplateDescription.ts b/packages/nodes-base/nodes/Bannerbear/TemplateDescription.ts index 034f7872324a04..b3d052d0ae663d 100644 --- a/packages/nodes-base/nodes/Bannerbear/TemplateDescription.ts +++ b/packages/nodes-base/nodes/Bannerbear/TemplateDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const templateOperations = [ +export const templateOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -29,9 +29,9 @@ export const templateOperations = [ default: 'get', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const templateFields = [ +export const templateFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* template:get */ @@ -54,4 +54,4 @@ export const templateFields = [ }, description: 'Unique identifier for the template.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Baserow/OperationDescription.ts b/packages/nodes-base/nodes/Baserow/OperationDescription.ts index 745fad968b54b2..b12c7a3685463e 100644 --- a/packages/nodes-base/nodes/Baserow/OperationDescription.ts +++ b/packages/nodes-base/nodes/Baserow/OperationDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const operationFields = [ +export const operationFields: INodeProperties[] = [ // ---------------------------------- // shared // ---------------------------------- @@ -472,4 +472,4 @@ export const operationFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Bitly/LinkDescription.ts b/packages/nodes-base/nodes/Bitly/LinkDescription.ts index 5fbd0a6be52dd9..2d20bd482f2706 100644 --- a/packages/nodes-base/nodes/Bitly/LinkDescription.ts +++ b/packages/nodes-base/nodes/Bitly/LinkDescription.ts @@ -1,6 +1,6 @@ import { INodeProperties } from 'n8n-workflow'; -export const linkOperations = [ +export const linkOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -32,9 +32,9 @@ export const linkOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const linkFields = [ +export const linkFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* link:create */ @@ -313,4 +313,4 @@ export const linkFields = [ }, }, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Bitwarden/descriptions/CollectionDescription.ts b/packages/nodes-base/nodes/Bitwarden/descriptions/CollectionDescription.ts index aa54701481d16a..0a244df64efb74 100644 --- a/packages/nodes-base/nodes/Bitwarden/descriptions/CollectionDescription.ts +++ b/packages/nodes-base/nodes/Bitwarden/descriptions/CollectionDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const collectionOperations = [ +export const collectionOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -35,9 +35,9 @@ export const collectionOperations = [ }, }, }, -] as INodeProperties[]; +]; -export const collectionFields = [ +export const collectionFields: INodeProperties[] = [ // ---------------------------------- // collection: shared // ---------------------------------- @@ -144,7 +144,7 @@ export const collectionFields = [ }, }, }, -] as INodeProperties[]; +]; export interface CollectionUpdateFields { groups: string[]; diff --git a/packages/nodes-base/nodes/Bitwarden/descriptions/EventDescription.ts b/packages/nodes-base/nodes/Bitwarden/descriptions/EventDescription.ts index 3c4278775cc4e0..9d2e780e4210c1 100644 --- a/packages/nodes-base/nodes/Bitwarden/descriptions/EventDescription.ts +++ b/packages/nodes-base/nodes/Bitwarden/descriptions/EventDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const eventOperations = [ +export const eventOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -23,10 +23,10 @@ export const eventOperations = [ }, }, }, -] as INodeProperties[]; +]; -export const eventFields = [ +export const eventFields: INodeProperties[] = [ // ---------------------------------- // event: getAll // ---------------------------------- @@ -116,4 +116,4 @@ export const eventFields = [ }, }, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Bitwarden/descriptions/GroupDescription.ts b/packages/nodes-base/nodes/Bitwarden/descriptions/GroupDescription.ts index 8bfba1aeb156dd..162389ff0f4be5 100644 --- a/packages/nodes-base/nodes/Bitwarden/descriptions/GroupDescription.ts +++ b/packages/nodes-base/nodes/Bitwarden/descriptions/GroupDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const groupOperations = [ +export const groupOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -47,9 +47,9 @@ export const groupOperations = [ }, }, }, -] as INodeProperties[]; +]; -export const groupFields = [ +export const groupFields: INodeProperties[] = [ // ---------------------------------- // group: shared // ---------------------------------- @@ -267,7 +267,7 @@ export const groupFields = [ }, }, }, -] as INodeProperties[]; +]; type GroupSchema = { name: string; diff --git a/packages/nodes-base/nodes/Bitwarden/descriptions/MemberDescription.ts b/packages/nodes-base/nodes/Bitwarden/descriptions/MemberDescription.ts index 884475af777b22..b3013207fe59a9 100644 --- a/packages/nodes-base/nodes/Bitwarden/descriptions/MemberDescription.ts +++ b/packages/nodes-base/nodes/Bitwarden/descriptions/MemberDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const memberOperations = [ +export const memberOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -47,9 +47,9 @@ export const memberOperations = [ }, }, }, -] as INodeProperties[]; +]; -export const memberFields = [ +export const memberFields: INodeProperties[] = [ // ---------------------------------- // member: shared // ---------------------------------- @@ -312,7 +312,7 @@ export const memberFields = [ }, }, }, -] as INodeProperties[]; +]; type MemberSchema = { email: string; diff --git a/packages/nodes-base/nodes/Box/FileDescription.ts b/packages/nodes-base/nodes/Box/FileDescription.ts index e55302c404bcf3..9be6f6b9fb1b58 100644 --- a/packages/nodes-base/nodes/Box/FileDescription.ts +++ b/packages/nodes-base/nodes/Box/FileDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const fileOperations = [ +export const fileOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -54,9 +54,9 @@ export const fileOperations = [ default: 'upload', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const fileFields = [ +export const fileFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* file:copy */ @@ -832,4 +832,4 @@ export const fileFields = [ default: '', description: 'ID of the parent folder that will contain the file. If not it will be uploaded to the root folder', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Box/FolderDescription.ts b/packages/nodes-base/nodes/Box/FolderDescription.ts index 6687c999b91e11..25ce833b373e2e 100644 --- a/packages/nodes-base/nodes/Box/FolderDescription.ts +++ b/packages/nodes-base/nodes/Box/FolderDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const folderOperations = [ +export const folderOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -49,9 +49,9 @@ export const folderOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const folderFields = [ +export const folderFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* folder:create */ @@ -860,4 +860,4 @@ export const folderFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Bubble/ObjectDescription.ts b/packages/nodes-base/nodes/Bubble/ObjectDescription.ts index 1d71d43d951916..f8444b05576a74 100644 --- a/packages/nodes-base/nodes/Bubble/ObjectDescription.ts +++ b/packages/nodes-base/nodes/Bubble/ObjectDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const objectOperations = [ +export const objectOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -39,9 +39,9 @@ export const objectOperations = [ }, }, }, -] as INodeProperties[]; +]; -export const objectFields = [ +export const objectFields: INodeProperties[] = [ // ---------------------------------- // object: create // ---------------------------------- @@ -513,4 +513,4 @@ export const objectFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/CircleCi/PipelineDescription.ts b/packages/nodes-base/nodes/CircleCi/PipelineDescription.ts index e0200bc1d7f400..ec4db57a0fd0a8 100644 --- a/packages/nodes-base/nodes/CircleCi/PipelineDescription.ts +++ b/packages/nodes-base/nodes/CircleCi/PipelineDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const pipelineOperations = [ +export const pipelineOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -34,9 +34,9 @@ export const pipelineOperations = [ default: 'get', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const pipelineFields = [ +export const pipelineFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* pipeline:shared */ @@ -222,4 +222,4 @@ export const pipelineFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Cisco/Webex/GenericFunctions.ts b/packages/nodes-base/nodes/Cisco/Webex/GenericFunctions.ts index 8bb552c259816a..a410dd161d6c28 100644 --- a/packages/nodes-base/nodes/Cisco/Webex/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Cisco/Webex/GenericFunctions.ts @@ -149,7 +149,7 @@ export function getAttachemnts(attachements: IDataObject[]) { return _attachments; } -export function getActionInheritedProperties() { +export function getActionInheritedProperties(): INodeProperties[] { return [ { displayName: 'Title', @@ -190,7 +190,7 @@ export function getActionInheritedProperties() { ]; } -export function getTextBlockProperties() { +export function getTextBlockProperties(): INodeProperties[] { return [ { displayName: 'Text', @@ -522,7 +522,7 @@ export function getTextBlockProperties() { ]; } -export function getInputTextProperties() { +export function getInputTextProperties(): INodeProperties[] { return [ { displayName: 'ID', diff --git a/packages/nodes-base/nodes/Cisco/Webex/descriptions/MeetingDescription.ts b/packages/nodes-base/nodes/Cisco/Webex/descriptions/MeetingDescription.ts index b24115d2275c0f..22d47ca3c7f75d 100644 --- a/packages/nodes-base/nodes/Cisco/Webex/descriptions/MeetingDescription.ts +++ b/packages/nodes-base/nodes/Cisco/Webex/descriptions/MeetingDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const meetingOperations = [ +export const meetingOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -39,9 +39,9 @@ export const meetingOperations = [ default: 'create', description: 'Operation to perform', }, -] as INodeProperties[]; +]; -export const meetingFields = [ +export const meetingFields: INodeProperties[] = [ // ---------------------------------------- // meeting: create // ---------------------------------------- @@ -965,4 +965,4 @@ export const meetingFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Cisco/Webex/descriptions/MeetingTranscript.ts b/packages/nodes-base/nodes/Cisco/Webex/descriptions/MeetingTranscript.ts index ed87bbc34e89fc..b17fe9bfcc8f0c 100644 --- a/packages/nodes-base/nodes/Cisco/Webex/descriptions/MeetingTranscript.ts +++ b/packages/nodes-base/nodes/Cisco/Webex/descriptions/MeetingTranscript.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const meetingTranscriptOperations = [ +export const meetingTranscriptOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -27,9 +27,9 @@ export const meetingTranscriptOperations = [ default: 'download', description: 'Operation to perform', }, -] as INodeProperties[]; +]; -export const meetingTranscriptFields = [ +export const meetingTranscriptFields: INodeProperties[] = [ // ---------------------------------------- // meetingTranscript: download // ---------------------------------------- @@ -193,4 +193,4 @@ export const meetingTranscriptFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Cisco/Webex/descriptions/MessageDescription.ts b/packages/nodes-base/nodes/Cisco/Webex/descriptions/MessageDescription.ts index 87a3984655b711..e04a9d09b86a45 100644 --- a/packages/nodes-base/nodes/Cisco/Webex/descriptions/MessageDescription.ts +++ b/packages/nodes-base/nodes/Cisco/Webex/descriptions/MessageDescription.ts @@ -6,7 +6,7 @@ import { getActionInheritedProperties, getInputTextProperties, getTextBlockProperties, } from '../GenericFunctions'; -export const messageOperations = [ +export const messageOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -43,9 +43,9 @@ export const messageOperations = [ default: 'create', description: 'Operation to perform', }, -] as INodeProperties[]; +]; -export const messageFields = [ +export const messageFields: INodeProperties[] = [ // ---------------------------------------- // message: create // ---------------------------------------- @@ -210,6 +210,7 @@ export const messageFields = [ displayName: 'Attachments', name: 'attachmentsUi', type: 'fixedCollection', + default: {}, typeOptions: { multipleValues: true, }, @@ -654,4 +655,4 @@ export const messageFields = [ }, }, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Clearbit/CompanyDescription.ts b/packages/nodes-base/nodes/Clearbit/CompanyDescription.ts index 0737208b0f86b8..2ae027814747f5 100644 --- a/packages/nodes-base/nodes/Clearbit/CompanyDescription.ts +++ b/packages/nodes-base/nodes/Clearbit/CompanyDescription.ts @@ -1,6 +1,6 @@ import { INodeProperties } from 'n8n-workflow'; -export const companyOperations = [ +export const companyOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -27,9 +27,9 @@ export const companyOperations = [ default: 'enrich', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const companyFields = [ +export const companyFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* company:enrich */ @@ -121,4 +121,4 @@ export const companyFields = [ }, description: 'Name is the partial name of the company.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Clearbit/PersonDescription.ts b/packages/nodes-base/nodes/Clearbit/PersonDescription.ts index 122e0d76d56cb3..52a8dd04824db7 100644 --- a/packages/nodes-base/nodes/Clearbit/PersonDescription.ts +++ b/packages/nodes-base/nodes/Clearbit/PersonDescription.ts @@ -1,6 +1,6 @@ import { INodeProperties } from 'n8n-workflow'; -export const personOperations = [ +export const personOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -22,9 +22,9 @@ export const personOperations = [ default: 'enrich', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const personFields = [ +export const personFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* person:enrich */ @@ -129,4 +129,4 @@ export const personFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/ClickUp/ChecklistDescription.ts b/packages/nodes-base/nodes/ClickUp/ChecklistDescription.ts index c4c40a4885a0eb..426fc81da3fab6 100644 --- a/packages/nodes-base/nodes/ClickUp/ChecklistDescription.ts +++ b/packages/nodes-base/nodes/ClickUp/ChecklistDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const checklistOperations = [ +export const checklistOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -34,9 +34,9 @@ export const checklistOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const checklistFields = [ +export const checklistFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* checklist:create */ @@ -149,4 +149,4 @@ export const checklistFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/ClickUp/ChecklistItemDescription.ts b/packages/nodes-base/nodes/ClickUp/ChecklistItemDescription.ts index 83704a947a2ecb..322b628587a39d 100644 --- a/packages/nodes-base/nodes/ClickUp/ChecklistItemDescription.ts +++ b/packages/nodes-base/nodes/ClickUp/ChecklistItemDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const checklistItemOperations = [ +export const checklistItemOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -34,9 +34,9 @@ export const checklistItemOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const checklistItemFields = [ +export const checklistItemFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* checklistItem:create */ @@ -220,4 +220,4 @@ export const checklistItemFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/ClickUp/CommentDescription.ts b/packages/nodes-base/nodes/ClickUp/CommentDescription.ts index 715c7da148ea8e..847c848ce5a980 100644 --- a/packages/nodes-base/nodes/ClickUp/CommentDescription.ts +++ b/packages/nodes-base/nodes/ClickUp/CommentDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const commentOperations = [ +export const commentOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -39,9 +39,9 @@ export const commentOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const commentFields = [ +export const commentFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* comment:create */ @@ -292,4 +292,4 @@ export const commentFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/ClickUp/FolderDescription.ts b/packages/nodes-base/nodes/ClickUp/FolderDescription.ts index cd97ac3af617b4..60b7de5ff6a083 100644 --- a/packages/nodes-base/nodes/ClickUp/FolderDescription.ts +++ b/packages/nodes-base/nodes/ClickUp/FolderDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const folderOperations = [ +export const folderOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -44,9 +44,9 @@ export const folderOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const folderFields = [ +export const folderFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* folder:create */ @@ -439,4 +439,4 @@ export const folderFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/ClickUp/GoalDescription.ts b/packages/nodes-base/nodes/ClickUp/GoalDescription.ts index aba11b4654f171..455d6084aaa8b2 100644 --- a/packages/nodes-base/nodes/ClickUp/GoalDescription.ts +++ b/packages/nodes-base/nodes/ClickUp/GoalDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const goalOperations = [ +export const goalOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -44,9 +44,9 @@ export const goalOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const goalFields = [ +export const goalFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* goal:create */ @@ -306,4 +306,4 @@ export const goalFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/ClickUp/GoalKeyResultDescription.ts b/packages/nodes-base/nodes/ClickUp/GoalKeyResultDescription.ts index fd4ff685e39b67..cba914e12423b2 100644 --- a/packages/nodes-base/nodes/ClickUp/GoalKeyResultDescription.ts +++ b/packages/nodes-base/nodes/ClickUp/GoalKeyResultDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const goalKeyResultOperations = [ +export const goalKeyResultOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -34,9 +34,9 @@ export const goalKeyResultOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const goalKeyResultFields = [ +export const goalKeyResultFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* goalKeyResult:create */ @@ -288,4 +288,4 @@ export const goalKeyResultFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/ClickUp/GuestDescription.ts b/packages/nodes-base/nodes/ClickUp/GuestDescription.ts index f25a1b6c30a0a3..07873a2be7ec73 100644 --- a/packages/nodes-base/nodes/ClickUp/GuestDescription.ts +++ b/packages/nodes-base/nodes/ClickUp/GuestDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const guestOperations = [ +export const guestOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -39,9 +39,9 @@ export const guestOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const guestFields = [ +export const guestFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* guest:create */ @@ -285,4 +285,4 @@ export const guestFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/ClickUp/ListDescription.ts b/packages/nodes-base/nodes/ClickUp/ListDescription.ts index f5183478e57806..0a85d04cbaad71 100644 --- a/packages/nodes-base/nodes/ClickUp/ListDescription.ts +++ b/packages/nodes-base/nodes/ClickUp/ListDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const listOperations = [ +export const listOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -54,9 +54,9 @@ export const listOperations = [ default: 'customFields', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const listFields = [ +export const listFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* list:create */ @@ -223,11 +223,11 @@ export const listFields = [ displayName: 'Status', name: 'status', type: 'options', - loadOptionsDependsOn: [ - 'list', - ], typeOptions: { loadOptionsMethod: 'getStatuses', + loadOptionsDependsOn: [ + 'list', + ], }, default: '', }, @@ -915,11 +915,11 @@ export const listFields = [ displayName: 'Assignee', name: 'assignee', type: 'options', - loadOptionsDependsOn: [ - 'list', - ], typeOptions: { loadOptionsMethod: 'getAssignees', + loadOptionsDependsOn: [ + 'list', + ], }, default: '', @@ -970,4 +970,4 @@ export const listFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/ClickUp/SpaceTagDescription.ts b/packages/nodes-base/nodes/ClickUp/SpaceTagDescription.ts index 9d8384775ae6f6..5ea899a407f37e 100644 --- a/packages/nodes-base/nodes/ClickUp/SpaceTagDescription.ts +++ b/packages/nodes-base/nodes/ClickUp/SpaceTagDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const spaceTagOperations = [ +export const spaceTagOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -39,9 +39,9 @@ export const spaceTagOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const spaceTagFields = [ +export const spaceTagFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* spaceTag:create */ /* -------------------------------------------------------------------------- */ @@ -201,4 +201,4 @@ export const spaceTagFields = [ default: 50, description: 'How many results to return.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/ClickUp/TaskDependencyDescription.ts b/packages/nodes-base/nodes/ClickUp/TaskDependencyDescription.ts index c778a437e7f418..85c9b36c6b1e49 100644 --- a/packages/nodes-base/nodes/ClickUp/TaskDependencyDescription.ts +++ b/packages/nodes-base/nodes/ClickUp/TaskDependencyDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const taskDependencyOperations = [ +export const taskDependencyOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -29,9 +29,9 @@ export const taskDependencyOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const taskDependencyFields = [ +export const taskDependencyFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* taskDependency:create */ @@ -57,6 +57,7 @@ export const taskDependencyFields = [ displayName: 'Depends On Task ID', name: 'dependsOnTask', type: 'string', + default: '', displayOptions: { show: { resource: [ @@ -94,6 +95,7 @@ export const taskDependencyFields = [ displayName: 'Depends On Task ID', name: 'dependsOnTask', type: 'string', + default: '', displayOptions: { show: { resource: [ @@ -106,4 +108,4 @@ export const taskDependencyFields = [ }, required: true, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/ClickUp/TaskDescription.ts b/packages/nodes-base/nodes/ClickUp/TaskDescription.ts index 55ee11bcbf8039..4b8b5e4b68c797 100644 --- a/packages/nodes-base/nodes/ClickUp/TaskDescription.ts +++ b/packages/nodes-base/nodes/ClickUp/TaskDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const taskOperations = [ +export const taskOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -54,9 +54,9 @@ export const taskOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const taskFields = [ +export const taskFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* task:create */ @@ -238,11 +238,11 @@ export const taskFields = [ displayName: 'Assignees', name: 'assignees', type: 'multiOptions', - loadOptionsDependsOn: [ - 'list', - ], typeOptions: { loadOptionsMethod: 'getAssignees', + loadOptionsDependsOn: [ + 'list', + ], }, default: [], }, @@ -322,11 +322,11 @@ export const taskFields = [ displayName: 'Status', name: 'status', type: 'options', - loadOptionsDependsOn: [ - 'list', - ], typeOptions: { loadOptionsMethod: 'getStatuses', + loadOptionsDependsOn: [ + 'list', + ], }, default: '', }, @@ -334,11 +334,11 @@ export const taskFields = [ displayName: 'Tags', name: 'tags', type: 'multiOptions', - loadOptionsDependsOn: [ - 'space', - ], typeOptions: { loadOptionsMethod: 'getTags', + loadOptionsDependsOn: [ + 'space', + ], }, default: [], description: 'The array of tags applied to this task', @@ -722,11 +722,11 @@ export const taskFields = [ displayName: 'Assignees', name: 'assignees', type: 'multiOptions', - loadOptionsDependsOn: [ - 'list', - ], typeOptions: { loadOptionsMethod: 'getAssignees', + loadOptionsDependsOn: [ + 'list', + ], }, default: [], @@ -893,11 +893,11 @@ export const taskFields = [ displayName: 'Statuses', name: 'statuses', type: 'multiOptions', - loadOptionsDependsOn: [ - 'list', - ], typeOptions: { loadOptionsMethod: 'getStatuses', + loadOptionsDependsOn: [ + 'list', + ], }, default: [], }, @@ -912,11 +912,11 @@ export const taskFields = [ displayName: 'Tags', name: 'tags', type: 'multiOptions', - loadOptionsDependsOn: [ - 'space', - ], typeOptions: { loadOptionsMethod: 'getTags', + loadOptionsDependsOn: [ + 'space', + ], }, default: [], description: 'The array of tags applied to this task', @@ -1085,4 +1085,4 @@ export const taskFields = [ }, description: 'The value to set on custom field.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/ClickUp/TaskListDescription.ts b/packages/nodes-base/nodes/ClickUp/TaskListDescription.ts index c1e25a0170168c..cc65af4119c54e 100644 --- a/packages/nodes-base/nodes/ClickUp/TaskListDescription.ts +++ b/packages/nodes-base/nodes/ClickUp/TaskListDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const taskListOperations = [ +export const taskListOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -29,9 +29,9 @@ export const taskListOperations = [ default: 'add', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const taskListFields = [ +export const taskListFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* taskList:add */ /* -------------------------------------------------------------------------- */ @@ -71,4 +71,4 @@ export const taskListFields = [ }, required: true, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/ClickUp/TaskTagDescription.ts b/packages/nodes-base/nodes/ClickUp/TaskTagDescription.ts index 70ba1796aa8c26..5587b947422d04 100644 --- a/packages/nodes-base/nodes/ClickUp/TaskTagDescription.ts +++ b/packages/nodes-base/nodes/ClickUp/TaskTagDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const taskTagOperations = [ +export const taskTagOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -29,9 +29,9 @@ export const taskTagOperations = [ default: 'add', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const taskTagFields = [ +export const taskTagFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* taskTag:add */ /* -------------------------------------------------------------------------- */ @@ -108,4 +108,4 @@ export const taskTagFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/ClickUp/TimeEntryDescription.ts b/packages/nodes-base/nodes/ClickUp/TimeEntryDescription.ts index 9cb39f73487d6a..1b52590349f514 100644 --- a/packages/nodes-base/nodes/ClickUp/TimeEntryDescription.ts +++ b/packages/nodes-base/nodes/ClickUp/TimeEntryDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const timeEntryOperations = [ +export const timeEntryOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -54,9 +54,9 @@ export const timeEntryOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const timeEntryFields = [ +export const timeEntryFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* timeEntry:getAll */ @@ -434,11 +434,11 @@ export const timeEntryFields = [ displayName: 'Assignee IDs', name: 'assignee', type: 'options', - loadOptionsDependsOn: [ - 'list', - ], typeOptions: { loadOptionsMethod: 'getAssignees', + loadOptionsDependsOn: [ + 'list', + ], }, default: [], }, @@ -804,11 +804,11 @@ export const timeEntryFields = [ displayName: 'Assignee IDs', name: 'assignee', type: 'options', - loadOptionsDependsOn: [ - 'list', - ], typeOptions: { loadOptionsMethod: 'getAssignees', + loadOptionsDependsOn: [ + 'list', + ], }, default: [], }, @@ -865,4 +865,4 @@ export const timeEntryFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/ClickUp/TimeEntryTagDescription.ts b/packages/nodes-base/nodes/ClickUp/TimeEntryTagDescription.ts index ff6508cc31e326..f6ce20f8c50589 100644 --- a/packages/nodes-base/nodes/ClickUp/TimeEntryTagDescription.ts +++ b/packages/nodes-base/nodes/ClickUp/TimeEntryTagDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const timeEntryTagOperations = [ +export const timeEntryTagOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -34,9 +34,9 @@ export const timeEntryTagOperations = [ default: 'add', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const timeEntryTagFields = [ +export const timeEntryTagFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* timeEntryTag:getAll */ @@ -253,4 +253,4 @@ export const timeEntryTagFields = [ }, required: true, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Clockify/ProjectDescription.ts b/packages/nodes-base/nodes/Clockify/ProjectDescription.ts index e5a40087a7bf76..90b60fb1ebee1c 100644 --- a/packages/nodes-base/nodes/Clockify/ProjectDescription.ts +++ b/packages/nodes-base/nodes/Clockify/ProjectDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const projectOperations = [ +export const projectOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -44,9 +44,9 @@ export const projectOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const projectFields = [ +export const projectFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* project:create */ @@ -525,4 +525,4 @@ export const projectFields = [ ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Clockify/TagDescription.ts b/packages/nodes-base/nodes/Clockify/TagDescription.ts index fa06e832c21ae6..f834f795e0119b 100644 --- a/packages/nodes-base/nodes/Clockify/TagDescription.ts +++ b/packages/nodes-base/nodes/Clockify/TagDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const tagOperations = [ +export const tagOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -39,9 +39,9 @@ export const tagOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const tagFields = [ +export const tagFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* tag:create */ @@ -239,4 +239,4 @@ export const tagFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Clockify/TaskDescription.ts b/packages/nodes-base/nodes/Clockify/TaskDescription.ts index f0f251bfec6f28..6476e6e59c2c6b 100644 --- a/packages/nodes-base/nodes/Clockify/TaskDescription.ts +++ b/packages/nodes-base/nodes/Clockify/TaskDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const taskOperations = [ +export const taskOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -44,9 +44,9 @@ export const taskOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const taskFields = [ +export const taskFields: INodeProperties[] = [ { displayName: 'Project ID', name: 'projectId', @@ -353,4 +353,4 @@ export const taskFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Clockify/TimeEntryDescription.ts b/packages/nodes-base/nodes/Clockify/TimeEntryDescription.ts index 2ce95efa592262..99d1bba4e60531 100644 --- a/packages/nodes-base/nodes/Clockify/TimeEntryDescription.ts +++ b/packages/nodes-base/nodes/Clockify/TimeEntryDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const timeEntryOperations = [ +export const timeEntryOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -39,9 +39,9 @@ export const timeEntryOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const timeEntryFields = [ +export const timeEntryFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* timeEntry:create */ @@ -381,4 +381,4 @@ export const timeEntryFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Cockpit/CollectionDescription.ts b/packages/nodes-base/nodes/Cockpit/CollectionDescription.ts index 9b10469aefeb76..f8621d58a3a7b5 100644 --- a/packages/nodes-base/nodes/Cockpit/CollectionDescription.ts +++ b/packages/nodes-base/nodes/Cockpit/CollectionDescription.ts @@ -1,6 +1,6 @@ import { INodeProperties } from 'n8n-workflow'; -export const collectionOperations = [ +export const collectionOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -32,9 +32,9 @@ export const collectionOperations = [ default: 'getAll', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const collectionFields = [ +export const collectionFields: INodeProperties[] = [ { displayName: 'Collection', name: 'collection', @@ -285,4 +285,4 @@ export const collectionFields = [ ], description: 'Entry data to send.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Cockpit/FormDescription.ts b/packages/nodes-base/nodes/Cockpit/FormDescription.ts index 795a1a211df7d4..fa7c3ae13a1c29 100644 --- a/packages/nodes-base/nodes/Cockpit/FormDescription.ts +++ b/packages/nodes-base/nodes/Cockpit/FormDescription.ts @@ -1,6 +1,6 @@ import { INodeProperties } from 'n8n-workflow'; -export const formOperations = [ +export const formOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -23,9 +23,9 @@ export const formOperations = [ default: 'submit', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const formFields = [ +export const formFields: INodeProperties[] = [ { displayName: 'Form', name: 'form', @@ -128,4 +128,4 @@ export const formFields = [ ], description: 'Form data to send.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Cockpit/SingletonDescription.ts b/packages/nodes-base/nodes/Cockpit/SingletonDescription.ts index 59d391347445ae..19a45d674b9a78 100644 --- a/packages/nodes-base/nodes/Cockpit/SingletonDescription.ts +++ b/packages/nodes-base/nodes/Cockpit/SingletonDescription.ts @@ -1,6 +1,6 @@ import { INodeProperties } from 'n8n-workflow'; -export const singletonOperations = [ +export const singletonOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -22,9 +22,9 @@ export const singletonOperations = [ default: 'get', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const singletonFields = [ +export const singletonFields: INodeProperties[] = [ { displayName: 'Singleton', name: 'singleton', @@ -43,4 +43,4 @@ export const singletonFields = [ required: true, description: 'Name of the singleton to operate on.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Coda/ControlDescription.ts b/packages/nodes-base/nodes/Coda/ControlDescription.ts index 9d10e94db8ef65..09b71468735ca0 100644 --- a/packages/nodes-base/nodes/Coda/ControlDescription.ts +++ b/packages/nodes-base/nodes/Coda/ControlDescription.ts @@ -1,6 +1,6 @@ import { INodeProperties } from 'n8n-workflow'; -export const controlOperations = [ +export const controlOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -27,9 +27,9 @@ export const controlOperations = [ default: 'get', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const controlFields = [ +export const controlFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* control:get */ @@ -138,4 +138,4 @@ export const controlFields = [ default: 50, description: 'How many results to return.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Coda/FormulaDescription.ts b/packages/nodes-base/nodes/Coda/FormulaDescription.ts index 9d1af1059d2235..ea20147beefbdb 100644 --- a/packages/nodes-base/nodes/Coda/FormulaDescription.ts +++ b/packages/nodes-base/nodes/Coda/FormulaDescription.ts @@ -1,6 +1,6 @@ import { INodeProperties } from 'n8n-workflow'; -export const formulaOperations = [ +export const formulaOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -27,9 +27,9 @@ export const formulaOperations = [ default: 'get', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const formulaFields = [ +export const formulaFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* formula:get */ @@ -138,4 +138,4 @@ export const formulaFields = [ default: 50, description: 'How many results to return.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Coda/TableDescription.ts b/packages/nodes-base/nodes/Coda/TableDescription.ts index a14909c3435262..90a5812249517d 100644 --- a/packages/nodes-base/nodes/Coda/TableDescription.ts +++ b/packages/nodes-base/nodes/Coda/TableDescription.ts @@ -1,6 +1,6 @@ import { INodeProperties } from 'n8n-workflow'; -export const tableOperations = [ +export const tableOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -52,9 +52,9 @@ export const tableOperations = [ default: 'createRow', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const tableFields = [ +export const tableFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* table:createRow */ @@ -754,4 +754,4 @@ export const tableFields = [ default: 50, description: 'How many results to return.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Coda/ViewDescription.ts b/packages/nodes-base/nodes/Coda/ViewDescription.ts index bdf9a3e51bfcc9..8ab35b442e2d53 100644 --- a/packages/nodes-base/nodes/Coda/ViewDescription.ts +++ b/packages/nodes-base/nodes/Coda/ViewDescription.ts @@ -1,6 +1,6 @@ import { INodeProperties } from 'n8n-workflow'; -export const viewOperations = [ +export const viewOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -52,9 +52,9 @@ export const viewOperations = [ default: 'get', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const viewFields = [ +export const viewFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* view:get */ @@ -706,4 +706,4 @@ export const viewFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/CoinGecko/CoinDescription.ts b/packages/nodes-base/nodes/CoinGecko/CoinDescription.ts index ddf58a4bc7e9be..d09b2257561a83 100644 --- a/packages/nodes-base/nodes/CoinGecko/CoinDescription.ts +++ b/packages/nodes-base/nodes/CoinGecko/CoinDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const coinOperations = [ +export const coinOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -58,9 +58,9 @@ export const coinOperations = [ ], default: 'getAll', }, -] as INodeProperties[]; +]; -export const coinFields = [ +export const coinFields: INodeProperties[] = [ { displayName: 'Search By', name: 'searchBy', @@ -239,6 +239,7 @@ export const coinFields = [ name: 'contractAddress', required: true, type: 'string', + default: '', displayOptions: { show: { operation: [ @@ -260,6 +261,7 @@ export const coinFields = [ name: 'contractAddresses', required: true, type: 'string', + default: '', displayOptions: { show: { operation: [ @@ -779,4 +781,4 @@ export const coinFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/CoinGecko/EventDescription.ts b/packages/nodes-base/nodes/CoinGecko/EventDescription.ts index 4a6f5dc5999ab1..a448dbcd125e84 100644 --- a/packages/nodes-base/nodes/CoinGecko/EventDescription.ts +++ b/packages/nodes-base/nodes/CoinGecko/EventDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const eventOperations = [ +export const eventOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -23,9 +23,9 @@ export const eventOperations = [ ], default: 'getAll', }, -] as INodeProperties[]; +]; -export const eventFields = [ +export const eventFields: INodeProperties[] = [ { displayName: 'Return All', name: 'returnAll', @@ -127,4 +127,4 @@ export const eventFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Contentful/AssetDescription.ts b/packages/nodes-base/nodes/Contentful/AssetDescription.ts index f10046c3207468..ed672542ab4d4b 100644 --- a/packages/nodes-base/nodes/Contentful/AssetDescription.ts +++ b/packages/nodes-base/nodes/Contentful/AssetDescription.ts @@ -8,7 +8,7 @@ export const resource = { value: 'asset', } as INodePropertyOptions; -export const operations = [ +export const operations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -33,9 +33,9 @@ export const operations = [ default: 'getAll', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const fields = [ +export const fields: INodeProperties[] = [ { displayName: 'Environment ID', name: 'environmentId', @@ -201,4 +201,4 @@ export const fields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Contentful/ContentTypeDescription.ts b/packages/nodes-base/nodes/Contentful/ContentTypeDescription.ts index 0bac8e11df6ec5..8bbd28318dd8ed 100644 --- a/packages/nodes-base/nodes/Contentful/ContentTypeDescription.ts +++ b/packages/nodes-base/nodes/Contentful/ContentTypeDescription.ts @@ -8,7 +8,7 @@ export const resource = { value: 'contentType', } as INodePropertyOptions; -export const operations = [ +export const operations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -29,9 +29,9 @@ export const operations = [ default: 'get', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const fields = [ +export const fields: INodeProperties[] = [ { displayName: 'Environment ID', name: 'environmentId', @@ -92,4 +92,4 @@ export const fields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Contentful/EntryDescription.ts b/packages/nodes-base/nodes/Contentful/EntryDescription.ts index c377ed3f64d1b8..be9b06709be4cc 100644 --- a/packages/nodes-base/nodes/Contentful/EntryDescription.ts +++ b/packages/nodes-base/nodes/Contentful/EntryDescription.ts @@ -8,7 +8,7 @@ export const resource = { value: 'entry', } as INodePropertyOptions; -export const operations = [ +export const operations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -33,9 +33,9 @@ export const operations = [ default: 'get', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const fields = [ +export const fields: INodeProperties[] = [ { displayName: 'Environment ID', name: 'environmentId', @@ -208,4 +208,4 @@ export const fields = [ }, }, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Contentful/LocaleDescription.ts b/packages/nodes-base/nodes/Contentful/LocaleDescription.ts index a48d83cb729771..6f233fbda1a412 100644 --- a/packages/nodes-base/nodes/Contentful/LocaleDescription.ts +++ b/packages/nodes-base/nodes/Contentful/LocaleDescription.ts @@ -8,7 +8,7 @@ export const resource = { value: 'locale', } as INodePropertyOptions; -export const operations = [ +export const operations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -29,9 +29,9 @@ export const operations = [ default: 'getAll', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const fields = [ +export const fields: INodeProperties[] = [ { displayName: 'Environment ID', name: 'environmentId', @@ -91,4 +91,4 @@ export const fields = [ default: 100, description: 'How many results to return.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Contentful/SearchParameterDescription.ts b/packages/nodes-base/nodes/Contentful/SearchParameterDescription.ts index 7a05ebc9edd9bc..28f951be11e372 100644 --- a/packages/nodes-base/nodes/Contentful/SearchParameterDescription.ts +++ b/packages/nodes-base/nodes/Contentful/SearchParameterDescription.ts @@ -1,6 +1,6 @@ import { INodeProperties } from 'n8n-workflow'; -export const fields = [ +export const fields: INodeProperties[] = [ { displayName: 'Search Parameters', name: 'search_parameters', @@ -34,4 +34,4 @@ export const fields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Contentful/SpaceDescription.ts b/packages/nodes-base/nodes/Contentful/SpaceDescription.ts index 41c77ac6dee798..588d02ba407492 100644 --- a/packages/nodes-base/nodes/Contentful/SpaceDescription.ts +++ b/packages/nodes-base/nodes/Contentful/SpaceDescription.ts @@ -7,7 +7,7 @@ export const resource = { value: 'space', }; -export const operations = [ +export const operations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -28,6 +28,6 @@ export const operations = [ default: 'get', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const fields = [] as INodeProperties[]; +export const fields: INodeProperties[] = []; diff --git a/packages/nodes-base/nodes/ConvertKit/CustomFieldDescription.ts b/packages/nodes-base/nodes/ConvertKit/CustomFieldDescription.ts index a8541c64937c17..5e04c95e580132 100644 --- a/packages/nodes-base/nodes/ConvertKit/CustomFieldDescription.ts +++ b/packages/nodes-base/nodes/ConvertKit/CustomFieldDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const customFieldOperations = [ +export const customFieldOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -39,9 +39,9 @@ export const customFieldOperations = [ default: 'update', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const customFieldFields = [ +export const customFieldFields: INodeProperties[] = [ { displayName: 'Field ID', name: 'id', @@ -121,4 +121,4 @@ export const customFieldFields = [ default: 100, description: 'How many results to return.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/ConvertKit/FormDescription.ts b/packages/nodes-base/nodes/ConvertKit/FormDescription.ts index a8496805bc5681..fc02144f7da124 100644 --- a/packages/nodes-base/nodes/ConvertKit/FormDescription.ts +++ b/packages/nodes-base/nodes/ConvertKit/FormDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties } from 'n8n-workflow'; -export const formOperations = [ +export const formOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -34,9 +34,9 @@ export const formOperations = [ default: 'addSubscriber', description: 'The operations to perform.', }, -] as INodeProperties[]; +]; -export const formFields = [ +export const formFields: INodeProperties[] = [ { displayName: 'Form ID', name: 'id', @@ -217,4 +217,4 @@ export const formFields = [ ], description: 'Receive only active subscribers or cancelled subscribers.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/ConvertKit/SequenceDescription.ts b/packages/nodes-base/nodes/ConvertKit/SequenceDescription.ts index 42437cc155c4dd..747fbfb7dd9d7c 100644 --- a/packages/nodes-base/nodes/ConvertKit/SequenceDescription.ts +++ b/packages/nodes-base/nodes/ConvertKit/SequenceDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const sequenceOperations = [ +export const sequenceOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -34,9 +34,9 @@ export const sequenceOperations = [ default: 'addSubscriber', description: 'The operations to perform.', }, -] as INodeProperties[]; +]; -export const sequenceFields = [ +export const sequenceFields: INodeProperties[] = [ { displayName: 'Sequence ID', name: 'id', @@ -227,4 +227,4 @@ export const sequenceFields = [ ], description: 'Receive only active subscribers or cancelled subscribers.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/ConvertKit/TagDescription.ts b/packages/nodes-base/nodes/ConvertKit/TagDescription.ts index b0d18adcfca181..6d759ca3529d1f 100644 --- a/packages/nodes-base/nodes/ConvertKit/TagDescription.ts +++ b/packages/nodes-base/nodes/ConvertKit/TagDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const tagOperations = [ +export const tagOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -29,9 +29,9 @@ export const tagOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const tagFields = [ +export const tagFields: INodeProperties[] = [ { displayName: 'Name', name: 'name', @@ -91,4 +91,4 @@ export const tagFields = [ default: 100, description: 'How many results to return.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/ConvertKit/TagSubscriberDescription.ts b/packages/nodes-base/nodes/ConvertKit/TagSubscriberDescription.ts index f625dfed83cf41..c4217c123b82e8 100644 --- a/packages/nodes-base/nodes/ConvertKit/TagSubscriberDescription.ts +++ b/packages/nodes-base/nodes/ConvertKit/TagSubscriberDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const tagSubscriberOperations = [ +export const tagSubscriberOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -34,9 +34,9 @@ export const tagSubscriberOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const tagSubscriberFields = [ +export const tagSubscriberFields: INodeProperties[] = [ { displayName: 'Tag ID', name: 'tagId', @@ -216,4 +216,4 @@ export const tagSubscriberFields = [ ], description: 'Receive only active subscribers or cancelled subscribers.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Copper/descriptions/CompanyDescription.ts b/packages/nodes-base/nodes/Copper/descriptions/CompanyDescription.ts index 99f1c6df73dc87..366028e9abac05 100644 --- a/packages/nodes-base/nodes/Copper/descriptions/CompanyDescription.ts +++ b/packages/nodes-base/nodes/Copper/descriptions/CompanyDescription.ts @@ -11,7 +11,7 @@ import { phoneNumbersFixedCollection, } from '../utils/sharedFields'; -export const companyOperations = [ +export const companyOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -48,9 +48,9 @@ export const companyOperations = [ default: 'create', description: 'Operation to perform', }, -] as INodeProperties[]; +]; -export const companyFields = [ +export const companyFields: INodeProperties[] = [ // ---------------------------------------- // company: create // ---------------------------------------- @@ -286,4 +286,4 @@ export const companyFields = [ phoneNumbersFixedCollection, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Copper/descriptions/CustomerSourceDescription.ts b/packages/nodes-base/nodes/Copper/descriptions/CustomerSourceDescription.ts index d9d706beba5683..63c7b9dbde528e 100644 --- a/packages/nodes-base/nodes/Copper/descriptions/CustomerSourceDescription.ts +++ b/packages/nodes-base/nodes/Copper/descriptions/CustomerSourceDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const customerSourceOperations = [ +export const customerSourceOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -23,9 +23,9 @@ export const customerSourceOperations = [ default: 'getAll', description: 'Operation to perform', }, -] as INodeProperties[]; +]; -export const customerSourceFields = [ +export const customerSourceFields: INodeProperties[] = [ // ---------------------------------------- // customerSource: getAll // ---------------------------------------- @@ -70,4 +70,4 @@ export const customerSourceFields = [ }, }, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Copper/descriptions/LeadDescription.ts b/packages/nodes-base/nodes/Copper/descriptions/LeadDescription.ts index be2b567d59d5c7..bdab82dec3c270 100644 --- a/packages/nodes-base/nodes/Copper/descriptions/LeadDescription.ts +++ b/packages/nodes-base/nodes/Copper/descriptions/LeadDescription.ts @@ -8,7 +8,7 @@ import { phoneNumbersFixedCollection, } from '../utils/sharedFields'; -export const leadOperations = [ +export const leadOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -45,9 +45,9 @@ export const leadOperations = [ default: 'create', description: 'Operation to perform', }, -] as INodeProperties[]; +]; -export const leadFields = [ +export const leadFields: INodeProperties[] = [ // ---------------------------------------- // lead: create // ---------------------------------------- @@ -271,4 +271,4 @@ export const leadFields = [ phoneNumbersFixedCollection, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Copper/descriptions/OpportunityDescription.ts b/packages/nodes-base/nodes/Copper/descriptions/OpportunityDescription.ts index 0117672e05225f..31496e3b7647c5 100644 --- a/packages/nodes-base/nodes/Copper/descriptions/OpportunityDescription.ts +++ b/packages/nodes-base/nodes/Copper/descriptions/OpportunityDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const opportunityOperations = [ +export const opportunityOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -39,9 +39,9 @@ export const opportunityOperations = [ default: 'create', description: 'Operation to perform', }, -] as INodeProperties[]; +]; -export const opportunityFields = [ +export const opportunityFields: INodeProperties[] = [ // ---------------------------------------- // opportunity: create // ---------------------------------------- @@ -281,4 +281,4 @@ export const opportunityFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Copper/descriptions/PersonDescription.ts b/packages/nodes-base/nodes/Copper/descriptions/PersonDescription.ts index 7ffa3b4da39b55..139da1a1900e35 100644 --- a/packages/nodes-base/nodes/Copper/descriptions/PersonDescription.ts +++ b/packages/nodes-base/nodes/Copper/descriptions/PersonDescription.ts @@ -8,7 +8,7 @@ import { phoneNumbersFixedCollection, } from '../utils/sharedFields'; -export const personOperations = [ +export const personOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -45,9 +45,9 @@ export const personOperations = [ default: 'create', description: 'Operation to perform', }, -] as INodeProperties[]; +]; -export const personFields = [ +export const personFields: INodeProperties[] = [ // ---------------------------------------- // person: create // ---------------------------------------- @@ -283,4 +283,4 @@ export const personFields = [ phoneNumbersFixedCollection, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Copper/descriptions/ProjectDescription.ts b/packages/nodes-base/nodes/Copper/descriptions/ProjectDescription.ts index 0a07010aee64e9..f44f2a500bc8ee 100644 --- a/packages/nodes-base/nodes/Copper/descriptions/ProjectDescription.ts +++ b/packages/nodes-base/nodes/Copper/descriptions/ProjectDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const projectOperations = [ +export const projectOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -39,9 +39,9 @@ export const projectOperations = [ default: 'create', description: 'Operation to perform', }, -] as INodeProperties[]; +]; -export const projectFields = [ +export const projectFields: INodeProperties[] = [ // ---------------------------------------- // project: create // ---------------------------------------- @@ -305,4 +305,4 @@ export const projectFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Copper/descriptions/TaskDescription.ts b/packages/nodes-base/nodes/Copper/descriptions/TaskDescription.ts index 39af835c08ce69..b497779b534e59 100644 --- a/packages/nodes-base/nodes/Copper/descriptions/TaskDescription.ts +++ b/packages/nodes-base/nodes/Copper/descriptions/TaskDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const taskOperations = [ +export const taskOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -39,9 +39,9 @@ export const taskOperations = [ default: 'create', description: 'Operation to perform', }, -] as INodeProperties[]; +]; -export const taskFields = [ +export const taskFields: INodeProperties[] = [ // ---------------------------------------- // task: create // ---------------------------------------- @@ -343,4 +343,4 @@ export const taskFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Copper/descriptions/UserDescription.ts b/packages/nodes-base/nodes/Copper/descriptions/UserDescription.ts index 52c45db9f867ff..0507b64c975143 100644 --- a/packages/nodes-base/nodes/Copper/descriptions/UserDescription.ts +++ b/packages/nodes-base/nodes/Copper/descriptions/UserDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const userOperations = [ +export const userOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -23,9 +23,9 @@ export const userOperations = [ default: 'getAll', description: 'Operation to perform', }, -] as INodeProperties[]; +]; -export const userFields = [ +export const userFields: INodeProperties[] = [ // ---------------------------------------- // user: getAll // ---------------------------------------- @@ -70,4 +70,4 @@ export const userFields = [ }, }, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Copper/utils/sharedFields.ts b/packages/nodes-base/nodes/Copper/utils/sharedFields.ts index 2e76bd24ba7c08..fe8615d2c77808 100644 --- a/packages/nodes-base/nodes/Copper/utils/sharedFields.ts +++ b/packages/nodes-base/nodes/Copper/utils/sharedFields.ts @@ -1,5 +1,9 @@ +import { + INodeProperties +} from 'n8n-workflow'; + // for companies, leads, persons -export const addressFixedCollection = { +export const addressFixedCollection: INodeProperties = { displayName: 'Address', name: 'address', placeholder: 'Add Address Fields', @@ -47,7 +51,7 @@ export const addressFixedCollection = { }; // for companies, leads, persons -export const phoneNumbersFixedCollection = { +export const phoneNumbersFixedCollection: INodeProperties = { displayName: 'Phone Numbers', name: 'phone_numbers', placeholder: 'Add Phone Number', @@ -79,7 +83,7 @@ export const phoneNumbersFixedCollection = { }; // for persons, multiple emails -export const emailsFixedCollection = { +export const emailsFixedCollection: INodeProperties = { displayName: 'Emails', name: 'emails', placeholder: 'Add Email', @@ -111,7 +115,7 @@ export const emailsFixedCollection = { }; // for leads, single email -export const emailFixedCollection = { +export const emailFixedCollection: INodeProperties = { displayName: 'Email', name: 'email', placeholder: 'Add Email', diff --git a/packages/nodes-base/nodes/Cortex/AnalyzerDescriptions.ts b/packages/nodes-base/nodes/Cortex/AnalyzerDescriptions.ts index 1f9834cbd5eb32..524d7c06849488 100644 --- a/packages/nodes-base/nodes/Cortex/AnalyzerDescriptions.ts +++ b/packages/nodes-base/nodes/Cortex/AnalyzerDescriptions.ts @@ -6,7 +6,7 @@ import { TLP, } from './AnalyzerInterface'; -export const analyzersOperations = [ +export const analyzersOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -29,7 +29,7 @@ export const analyzersOperations = [ }, ], }, -] as INodeProperties[]; +]; export const analyzerFields: INodeProperties[] = [ { diff --git a/packages/nodes-base/nodes/Cortex/JobDescription.ts b/packages/nodes-base/nodes/Cortex/JobDescription.ts index 800455b089275c..c22c0b2ba0f8ef 100644 --- a/packages/nodes-base/nodes/Cortex/JobDescription.ts +++ b/packages/nodes-base/nodes/Cortex/JobDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const jobOperations = [ +export const jobOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -30,7 +30,7 @@ export const jobOperations = [ ], default: 'get', }, -] as INodeProperties[]; +]; export const jobFields: INodeProperties[] = [ { diff --git a/packages/nodes-base/nodes/Cortex/ResponderDescription.ts b/packages/nodes-base/nodes/Cortex/ResponderDescription.ts index b53ef599373522..8ece48af49d70d 100644 --- a/packages/nodes-base/nodes/Cortex/ResponderDescription.ts +++ b/packages/nodes-base/nodes/Cortex/ResponderDescription.ts @@ -6,7 +6,7 @@ import { TLP, } from './AnalyzerInterface'; -export const respondersOperations = [ +export const respondersOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -29,7 +29,7 @@ export const respondersOperations = [ ], default: 'execute', }, -] as INodeProperties[]; +]; export const responderFields: INodeProperties[] = [ { diff --git a/packages/nodes-base/nodes/CustomerIo/CampaignDescription.ts b/packages/nodes-base/nodes/CustomerIo/CampaignDescription.ts index 7898a9289a49b0..afebb7fe9e6d43 100644 --- a/packages/nodes-base/nodes/CustomerIo/CampaignDescription.ts +++ b/packages/nodes-base/nodes/CustomerIo/CampaignDescription.ts @@ -1,6 +1,6 @@ import { INodeProperties } from 'n8n-workflow'; -export const campaignOperations = [ +export const campaignOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -29,9 +29,9 @@ export const campaignOperations = [ default: 'get', description: 'The operation to perform', }, -] as INodeProperties[]; +]; -export const campaignFields = [ +export const campaignFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* campaign:get */ /* -------------------------------------------------------------------------- */ @@ -196,4 +196,4 @@ export const campaignFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/CustomerIo/CustomerDescription.ts b/packages/nodes-base/nodes/CustomerIo/CustomerDescription.ts index 7ccf04aeeb6647..58bcd3cfde03ee 100644 --- a/packages/nodes-base/nodes/CustomerIo/CustomerDescription.ts +++ b/packages/nodes-base/nodes/CustomerIo/CustomerDescription.ts @@ -1,6 +1,6 @@ import { INodeProperties } from 'n8n-workflow'; -export const customerOperations = [ +export const customerOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -27,9 +27,9 @@ export const customerOperations = [ default: 'upsert', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const customerFields = [ +export const customerFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* customer:delete */ @@ -138,6 +138,7 @@ export const customerFields = [ displayName: 'Custom Properties', name: 'customProperties', type: 'fixedCollection', + default: {}, description: 'Custom Properties', typeOptions: { multipleValues: true, @@ -186,4 +187,4 @@ export const customerFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/CustomerIo/EventDescription.ts b/packages/nodes-base/nodes/CustomerIo/EventDescription.ts index 8d22a979d77fc3..5c8d302f666010 100644 --- a/packages/nodes-base/nodes/CustomerIo/EventDescription.ts +++ b/packages/nodes-base/nodes/CustomerIo/EventDescription.ts @@ -1,6 +1,6 @@ import { INodeProperties } from 'n8n-workflow'; -export const eventOperations = [ +export const eventOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -27,9 +27,9 @@ export const eventOperations = [ default: 'track', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const eventFields = [ +export const eventFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* event:track */ @@ -133,6 +133,7 @@ export const eventFields = [ displayName: 'Custom Attributes', name: 'customAttributes', type: 'fixedCollection', + default: {}, description: 'Custom Properties', typeOptions: { multipleValues: true, @@ -259,6 +260,7 @@ export const eventFields = [ displayName: 'Custom Attributes', name: 'customAttributes', type: 'fixedCollection', + default: {}, description: 'Custom Properties', typeOptions: { multipleValues: true, @@ -292,4 +294,4 @@ export const eventFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/CustomerIo/SegmentDescription.ts b/packages/nodes-base/nodes/CustomerIo/SegmentDescription.ts index 3f1e691f27fd77..2e104938c9178e 100644 --- a/packages/nodes-base/nodes/CustomerIo/SegmentDescription.ts +++ b/packages/nodes-base/nodes/CustomerIo/SegmentDescription.ts @@ -1,6 +1,6 @@ import { INodeProperties } from 'n8n-workflow'; -export const segmentOperations = [ +export const segmentOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -25,9 +25,9 @@ export const segmentOperations = [ default: 'add', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const segmentFields = [ +export const segmentFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* segment:add */ @@ -70,4 +70,4 @@ export const segmentFields = [ }, description: 'A list of customer ids to add to the segment.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/DeepL/TextDescription.ts b/packages/nodes-base/nodes/DeepL/TextDescription.ts index 7b2d1d5f1f0691..666ff5a7cc83bd 100644 --- a/packages/nodes-base/nodes/DeepL/TextDescription.ts +++ b/packages/nodes-base/nodes/DeepL/TextDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const textOperations = [ +export const textOperations: INodeProperties[] = [ { displayName: 'Text', name: 'text', @@ -122,4 +122,4 @@ export const textOperations = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Demio/EventDescription.ts b/packages/nodes-base/nodes/Demio/EventDescription.ts index 75d95156fddc79..1568300fecb545 100644 --- a/packages/nodes-base/nodes/Demio/EventDescription.ts +++ b/packages/nodes-base/nodes/Demio/EventDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const eventOperations = [ +export const eventOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -34,9 +34,9 @@ export const eventOperations = [ default: 'get', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const eventFields = [ +export const eventFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* event:getAll */ @@ -342,4 +342,4 @@ export const eventFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Demio/ReportDescription.ts b/packages/nodes-base/nodes/Demio/ReportDescription.ts index b83982f2201c59..67f5639de32000 100644 --- a/packages/nodes-base/nodes/Demio/ReportDescription.ts +++ b/packages/nodes-base/nodes/Demio/ReportDescription.ts @@ -1,6 +1,6 @@ import { INodeProperties } from 'n8n-workflow'; -export const reportOperations = [ +export const reportOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -22,9 +22,9 @@ export const reportOperations = [ default: 'get', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const reportFields = [ +export const reportFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* report:get */ @@ -121,4 +121,4 @@ export const reportFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Discourse/CategoryDescription.ts b/packages/nodes-base/nodes/Discourse/CategoryDescription.ts index 71c8de21e67444..84a65002372aa9 100644 --- a/packages/nodes-base/nodes/Discourse/CategoryDescription.ts +++ b/packages/nodes-base/nodes/Discourse/CategoryDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const categoryOperations = [ +export const categoryOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -35,7 +35,7 @@ export const categoryOperations = [ ], default: 'create', }, -] as INodeProperties[]; +]; export const categoryFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ diff --git a/packages/nodes-base/nodes/Discourse/GroupDescription.ts b/packages/nodes-base/nodes/Discourse/GroupDescription.ts index 45448d89c01b4f..ef301969a2bb26 100644 --- a/packages/nodes-base/nodes/Discourse/GroupDescription.ts +++ b/packages/nodes-base/nodes/Discourse/GroupDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const groupOperations = [ +export const groupOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -40,7 +40,7 @@ export const groupOperations = [ ], default: 'create', }, -] as INodeProperties[]; +]; export const groupFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ diff --git a/packages/nodes-base/nodes/Discourse/PostDescription.ts b/packages/nodes-base/nodes/Discourse/PostDescription.ts index 858ce64ac6fdef..09bed8459b08ed 100644 --- a/packages/nodes-base/nodes/Discourse/PostDescription.ts +++ b/packages/nodes-base/nodes/Discourse/PostDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const postOperations = [ +export const postOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -40,7 +40,7 @@ export const postOperations = [ ], default: 'create', }, -] as INodeProperties[]; +]; export const postFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ diff --git a/packages/nodes-base/nodes/Discourse/SearchDescription.ts b/packages/nodes-base/nodes/Discourse/SearchDescription.ts index 91846f3a36edca..634007e8b1db02 100644 --- a/packages/nodes-base/nodes/Discourse/SearchDescription.ts +++ b/packages/nodes-base/nodes/Discourse/SearchDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const searchOperations = [ +export const searchOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -25,7 +25,7 @@ export const searchOperations = [ ], default: 'query', }, -] as INodeProperties[]; +]; export const searchFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ diff --git a/packages/nodes-base/nodes/Discourse/UserDescription.ts b/packages/nodes-base/nodes/Discourse/UserDescription.ts index 3c32eef7a395b6..46b4fafbb55cb2 100644 --- a/packages/nodes-base/nodes/Discourse/UserDescription.ts +++ b/packages/nodes-base/nodes/Discourse/UserDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const userOperations = [ +export const userOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -35,7 +35,7 @@ export const userOperations = [ ], default: 'create', }, -] as INodeProperties[]; +]; export const userFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ diff --git a/packages/nodes-base/nodes/Discourse/UserGroupDescription.ts b/packages/nodes-base/nodes/Discourse/UserGroupDescription.ts index cdd4fd0a77ff7f..c9a4295e5cc269 100644 --- a/packages/nodes-base/nodes/Discourse/UserGroupDescription.ts +++ b/packages/nodes-base/nodes/Discourse/UserGroupDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const userGroupOperations = [ +export const userGroupOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -30,7 +30,7 @@ export const userGroupOperations = [ ], default: 'add', }, -] as INodeProperties[]; +]; export const userGroupFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ diff --git a/packages/nodes-base/nodes/Drift/ContactDescription.ts b/packages/nodes-base/nodes/Drift/ContactDescription.ts index 26d6598bba1d7c..c622b733a05ec6 100644 --- a/packages/nodes-base/nodes/Drift/ContactDescription.ts +++ b/packages/nodes-base/nodes/Drift/ContactDescription.ts @@ -1,6 +1,6 @@ import { INodeProperties } from 'n8n-workflow'; -export const contactOperations = [ +export const contactOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -42,9 +42,9 @@ export const contactOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const contactFields = [ +export const contactFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* contact:create */ @@ -203,4 +203,4 @@ export const contactFields = [ }, description: 'Unique identifier for the contact.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/ERPNext/DocumentDescription.ts b/packages/nodes-base/nodes/ERPNext/DocumentDescription.ts index 775c658cc9ebaf..bab80be8ef8546 100644 --- a/packages/nodes-base/nodes/ERPNext/DocumentDescription.ts +++ b/packages/nodes-base/nodes/ERPNext/DocumentDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const documentOperations = [ +export const documentOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -44,9 +44,9 @@ export const documentOperations = [ default: 'create', description: 'Operation to perform.', }, -] as INodeProperties[]; +]; -export const documentFields = [ +export const documentFields: INodeProperties[] = [ // ---------------------------------- // document: getAll // ---------------------------------- @@ -143,6 +143,7 @@ export const documentFields = [ displayName: 'Filters', name: 'filters', type: 'fixedCollection', + default: {}, placeholder: 'Add Filter', description: 'Custom Properties', typeOptions: { @@ -460,4 +461,4 @@ export const documentFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Elastic/Elasticsearch/descriptions/DocumentDescription.ts b/packages/nodes-base/nodes/Elastic/Elasticsearch/descriptions/DocumentDescription.ts index dcd65720a9ec79..4c08204c822bf6 100644 --- a/packages/nodes-base/nodes/Elastic/Elasticsearch/descriptions/DocumentDescription.ts +++ b/packages/nodes-base/nodes/Elastic/Elasticsearch/descriptions/DocumentDescription.ts @@ -4,7 +4,7 @@ import { import * as placeholders from './placeholders'; -export const documentOperations = [ +export const documentOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -46,9 +46,9 @@ export const documentOperations = [ default: 'get', description: 'Operation to perform', }, -] as INodeProperties[]; +]; -export const documentFields = [ +export const documentFields: INodeProperties[] = [ // ---------------------------------------- // document: delete // ---------------------------------------- @@ -785,4 +785,4 @@ export const documentFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Elastic/Elasticsearch/descriptions/IndexDescription.ts b/packages/nodes-base/nodes/Elastic/Elasticsearch/descriptions/IndexDescription.ts index 5721a37a7a80db..1a983eb6fafe3f 100644 --- a/packages/nodes-base/nodes/Elastic/Elasticsearch/descriptions/IndexDescription.ts +++ b/packages/nodes-base/nodes/Elastic/Elasticsearch/descriptions/IndexDescription.ts @@ -4,7 +4,7 @@ import { import * as placeholders from './placeholders'; -export const indexOperations = [ +export const indexOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -37,9 +37,9 @@ export const indexOperations = [ default: 'create', description: 'Operation to perform', }, -] as INodeProperties[]; +]; -export const indexFields = [ +export const indexFields: INodeProperties[] = [ // ---------------------------------------- // index: create // ---------------------------------------- @@ -319,4 +319,4 @@ export const indexFields = [ }, }, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Emelia/CampaignDescription.ts b/packages/nodes-base/nodes/Emelia/CampaignDescription.ts index 279ed23bcb5f20..2fc0826e12a5bd 100644 --- a/packages/nodes-base/nodes/Emelia/CampaignDescription.ts +++ b/packages/nodes-base/nodes/Emelia/CampaignDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const campaignOperations = [ +export const campaignOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -43,9 +43,9 @@ export const campaignOperations = [ }, }, }, -] as INodeProperties[]; +]; -export const campaignFields = [ +export const campaignFields: INodeProperties[] = [ // ---------------------------------- // campaign: addContact // ---------------------------------- @@ -323,4 +323,4 @@ export const campaignFields = [ }, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Emelia/ContactListDescription.ts b/packages/nodes-base/nodes/Emelia/ContactListDescription.ts index 5512f8734d77d2..a303f39937887b 100644 --- a/packages/nodes-base/nodes/Emelia/ContactListDescription.ts +++ b/packages/nodes-base/nodes/Emelia/ContactListDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const contactListOperations = [ +export const contactListOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -27,9 +27,9 @@ export const contactListOperations = [ }, }, }, -] as INodeProperties[]; +]; -export const contactListFields = [ +export const contactListFields: INodeProperties[] = [ // ---------------------------------- // contactList: add // ---------------------------------- @@ -218,4 +218,4 @@ export const contactListFields = [ }, }, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Flow/TaskDescription.ts b/packages/nodes-base/nodes/Flow/TaskDescription.ts index 076947adee8972..4ebaa7e8efff6d 100644 --- a/packages/nodes-base/nodes/Flow/TaskDescription.ts +++ b/packages/nodes-base/nodes/Flow/TaskDescription.ts @@ -1,6 +1,6 @@ import { INodeProperties } from 'n8n-workflow'; -export const taskOpeations = [ +export const taskOpeations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -37,9 +37,9 @@ export const taskOpeations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const taskFields = [ +export const taskFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* task:create */ @@ -48,6 +48,7 @@ export const taskFields = [ displayName: 'Workspace ID', name: 'workspaceId', type: 'string', + default: '', required: true, displayOptions: { show: { @@ -65,6 +66,7 @@ export const taskFields = [ displayName: 'Name', name: 'name', type: 'string', + default: '', required: true, displayOptions: { show: { @@ -233,6 +235,7 @@ export const taskFields = [ displayName: 'Workspace ID', name: 'workspaceId', type: 'string', + default: '', required: true, displayOptions: { show: { @@ -250,6 +253,7 @@ export const taskFields = [ displayName: 'Task ID', name: 'taskId', type: 'string', + default: '', required: true, displayOptions: { show: { @@ -419,6 +423,7 @@ export const taskFields = [ displayName: 'Task ID', name: 'taskId', type: 'string', + default: '', required: true, displayOptions: { show: { @@ -663,4 +668,4 @@ export const taskFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Freshdesk/ContactDescription.ts b/packages/nodes-base/nodes/Freshdesk/ContactDescription.ts index 6c6291147ebd7e..9e471fc2d5389f 100644 --- a/packages/nodes-base/nodes/Freshdesk/ContactDescription.ts +++ b/packages/nodes-base/nodes/Freshdesk/ContactDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const contactOperations = [ +export const contactOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -45,9 +45,9 @@ export const contactOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const contactFields = [ +export const contactFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* contact:create/update */ @@ -419,4 +419,4 @@ export const contactFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Freshservice/descriptions/AgentDescription.ts b/packages/nodes-base/nodes/Freshservice/descriptions/AgentDescription.ts index 17ea178ffd184d..b4b5016e7b4837 100644 --- a/packages/nodes-base/nodes/Freshservice/descriptions/AgentDescription.ts +++ b/packages/nodes-base/nodes/Freshservice/descriptions/AgentDescription.ts @@ -6,7 +6,7 @@ import { LANGUAGES, } from '../constants'; -export const agentOperations = [ +export const agentOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -47,9 +47,9 @@ export const agentOperations = [ ], default: 'create', }, -] as INodeProperties[]; +]; -export const agentFields = [ +export const agentFields: INodeProperties[] = [ // ---------------------------------------- // agent: create // ---------------------------------------- @@ -119,9 +119,7 @@ export const agentFields = [ description: 'Name of the role to assign to the agent. Choose from the list or specify an ID. You can also specify the ID using an expression.', type: 'options', typeOptions: { - loadOptionsMethod: [ - 'getAgentRoles', - ], + loadOptionsMethod: 'getAgentRoles', }, required: true, default: '', @@ -158,9 +156,7 @@ export const agentFields = [ description: 'Groups in which the permissions granted by the role apply. Required only when Scope is Specified Groups - ignored otherwise. Choose from the list or specify an ID using an expression.', type: 'multiOptions', typeOptions: { - loadOptionsMethod: [ - 'getAgentGroups', - ], + loadOptionsMethod: 'getAgentGroups', }, default: [], }, @@ -204,9 +200,7 @@ export const agentFields = [ default: [], description: 'IDs of the departments to which the agent belongs. Choose from the list or specify an ID using an expression.', typeOptions: { - loadOptionsMethod: [ - 'getDepartments', - ], + loadOptionsMethod: 'getDepartments', }, }, { @@ -235,9 +229,7 @@ export const agentFields = [ default: '', description: 'Choose from the list or specify an ID. You can also specify the ID using an expression.', typeOptions: { - loadOptionsMethod: [ - 'getLocations', - ], + loadOptionsMethod: 'getLocations', }, }, { @@ -247,9 +239,7 @@ export const agentFields = [ default: [], description: 'Comma-separated IDs of the groups that the agent is a member of. Choose from the list or specify an ID using an expression.', typeOptions: { - loadOptionsMethod: [ - 'getAgentGroups', - ], + loadOptionsMethod: 'getAgentGroups', }, }, { @@ -265,9 +255,7 @@ export const agentFields = [ default: [], description: 'Comma-separated IDs of the groups that the agent is an observer of. Choose from the list or specify an ID using an expression.', typeOptions: { - loadOptionsMethod: [ - 'getAgentGroups', - ], + loadOptionsMethod: 'getAgentGroups', }, }, { @@ -439,9 +427,7 @@ export const agentFields = [ default: '', description: 'ID of the department to which the agent belongs. Choose from the list or specify an ID. You can also specify the ID using an expression.', typeOptions: { - loadOptionsMethod: [ - 'getDepartments', - ], + loadOptionsMethod: 'getDepartments', }, }, { @@ -482,9 +468,7 @@ export const agentFields = [ default: '', description: 'Choose from the list or specify an ID. You can also specify the ID using an expression.', typeOptions: { - loadOptionsMethod: [ - 'getLocations', - ], + loadOptionsMethod: 'getLocations', }, }, { @@ -559,9 +543,7 @@ export const agentFields = [ default: [], description: 'IDs of the departments to which the agent belongs. Choose from the list or specify an ID using an expression.', typeOptions: { - loadOptionsMethod: [ - 'getDepartments', - ], + loadOptionsMethod: 'getDepartments', }, }, { @@ -602,9 +584,7 @@ export const agentFields = [ default: '', description: 'Choose from the list or specify an ID. You can also specify the ID using an expression.', typeOptions: { - loadOptionsMethod: [ - 'getLocations', - ], + loadOptionsMethod: 'getLocations', }, }, { @@ -614,9 +594,7 @@ export const agentFields = [ default: [], description: 'Comma-separated IDs of the groups that the agent is a member of. Choose from the list or specify an ID using an expression.', typeOptions: { - loadOptionsMethod: [ - 'getAgentGroups', - ], + loadOptionsMethod: 'getAgentGroups', }, }, { @@ -632,9 +610,7 @@ export const agentFields = [ default: [], description: 'Comma-separated IDs of the groups that the agent is an observer of. Choose from the list or specify an ID using an expression.', typeOptions: { - loadOptionsMethod: [ - 'getAgentGroups', - ], + loadOptionsMethod: 'getAgentGroups', }, }, { @@ -694,4 +670,4 @@ export const agentFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Freshservice/descriptions/AgentGroupDescription.ts b/packages/nodes-base/nodes/Freshservice/descriptions/AgentGroupDescription.ts index fe7616e76ee0a1..18cc1326d8216f 100644 --- a/packages/nodes-base/nodes/Freshservice/descriptions/AgentGroupDescription.ts +++ b/packages/nodes-base/nodes/Freshservice/descriptions/AgentGroupDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const agentGroupOperations = [ +export const agentGroupOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -43,9 +43,9 @@ export const agentGroupOperations = [ ], default: 'create', }, -] as INodeProperties[]; +]; -export const agentGroupFields = [ +export const agentGroupFields: INodeProperties[] = [ // ---------------------------------------- // agentGroup: create // ---------------------------------------- @@ -95,9 +95,7 @@ export const agentGroupFields = [ type: 'options', default: '', typeOptions: { - loadOptionsMethod: [ - 'getAgents', - ], + loadOptionsMethod: 'getAgents', }, description: 'ID of the user to whom an escalation email is sent if a ticket in this group is unassigned. Choose from the list or specify an ID. You can also specify the ID using an expression.', }, @@ -108,9 +106,7 @@ export const agentGroupFields = [ default: [], description: 'Comma-separated IDs of agents who are members of this group. Choose from the list or specify an ID using an expression.', typeOptions: { - loadOptionsMethod: [ - 'getAgents', - ], + loadOptionsMethod: 'getAgents', }, }, { @@ -120,9 +116,7 @@ export const agentGroupFields = [ default: [], description: 'Comma-separated agent IDs who are observers of this group. Choose from the list or specify an ID using an expression.', typeOptions: { - loadOptionsMethod: [ - 'getAgents', - ], + loadOptionsMethod: 'getAgents', }, }, { @@ -308,9 +302,7 @@ export const agentGroupFields = [ default: '', description: 'ID of the agent to whom an escalation email is sent if a ticket in this group is unassigned. Choose from the list or specify an ID. You can also specify the ID using an expression.', typeOptions: { - loadOptionsMethod: [ - 'getAgents', - ], + loadOptionsMethod: 'getAgents', }, }, { @@ -320,9 +312,7 @@ export const agentGroupFields = [ default: [], description: 'Comma-separated IDs of agents who are members of this group. Choose from the list or specify an ID using an expression.', typeOptions: { - loadOptionsMethod: [ - 'getAgents', - ], + loadOptionsMethod: 'getAgents', }, }, { @@ -338,9 +328,7 @@ export const agentGroupFields = [ default: [], description: 'Comma-separated agent user IDs who are observers of this group. Choose from the list or specify an ID using an expression.', typeOptions: { - loadOptionsMethod: [ - 'getAgents', - ], + loadOptionsMethod: 'getAgents', }, }, { @@ -386,4 +374,4 @@ export const agentGroupFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Freshservice/descriptions/AgentRoleDescription.ts b/packages/nodes-base/nodes/Freshservice/descriptions/AgentRoleDescription.ts index 8595fb99260daa..204c40358c1c46 100644 --- a/packages/nodes-base/nodes/Freshservice/descriptions/AgentRoleDescription.ts +++ b/packages/nodes-base/nodes/Freshservice/descriptions/AgentRoleDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const agentRoleOperations = [ +export const agentRoleOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -28,9 +28,9 @@ export const agentRoleOperations = [ ], default: 'get', }, -] as INodeProperties[]; +]; -export const agentRoleFields = [ +export const agentRoleFields: INodeProperties[] = [ // ---------------------------------------- // agentRole: get // ---------------------------------------- @@ -96,4 +96,4 @@ export const agentRoleFields = [ }, }, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Freshservice/descriptions/AnnouncementDescription.ts b/packages/nodes-base/nodes/Freshservice/descriptions/AnnouncementDescription.ts index 73c5e433f1f296..b41fb4af4e500c 100644 --- a/packages/nodes-base/nodes/Freshservice/descriptions/AnnouncementDescription.ts +++ b/packages/nodes-base/nodes/Freshservice/descriptions/AnnouncementDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const announcementOperations = [ +export const announcementOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -43,9 +43,9 @@ export const announcementOperations = [ ], default: 'create', }, -] as INodeProperties[]; +]; -export const announcementFields = [ +export const announcementFields: INodeProperties[] = [ // ---------------------------------------- // announcement: create // ---------------------------------------- @@ -164,9 +164,7 @@ export const announcementFields = [ default: [], description: 'Comma-separated IDs of departments that may view this announcement. Choose from the list or specify an ID using an expression.', typeOptions: { - loadOptionsMethod: [ - 'getDepartments', - ], + loadOptionsMethod: 'getDepartments', }, }, { @@ -333,9 +331,7 @@ export const announcementFields = [ default: [], description: 'Comma-separated IDs of departments that may view this announcement. Choose from the list or specify an ID using an expression.', typeOptions: { - loadOptionsMethod: [ - 'getDepartments', - ], + loadOptionsMethod: 'getDepartments', }, }, { @@ -366,4 +362,4 @@ export const announcementFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Freshservice/descriptions/AssetDescription.ts b/packages/nodes-base/nodes/Freshservice/descriptions/AssetDescription.ts index 9d815a793b7281..b1c0826bb479fc 100644 --- a/packages/nodes-base/nodes/Freshservice/descriptions/AssetDescription.ts +++ b/packages/nodes-base/nodes/Freshservice/descriptions/AssetDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const assetOperations = [ +export const assetOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -43,9 +43,9 @@ export const assetOperations = [ ], default: 'create', }, -] as INodeProperties[]; +]; -export const assetFields = [ +export const assetFields: INodeProperties[] = [ // ---------------------------------------- // asset: create // ---------------------------------------- @@ -74,9 +74,7 @@ export const assetFields = [ required: true, default: '', typeOptions: { - loadOptionsMethod: [ - 'getAssetTypes', - ], + loadOptionsMethod: 'getAssetTypes', }, displayOptions: { show: { @@ -248,9 +246,7 @@ export const assetFields = [ default: '', description: 'ID of the agent by whom the asset is managed. Choose from the list or specify an ID. You can also specify the ID using an expression.', typeOptions: { - loadOptionsMethod: [ - 'getAgents', - ], + loadOptionsMethod: 'getAgents', }, }, { @@ -267,9 +263,7 @@ export const assetFields = [ default: '', description: 'ID of the asset type to filter by. Choose from the list or specify an ID. You can also specify the ID using an expression.', typeOptions: { - loadOptionsMethod: [ - 'getAssetTypes', - ], + loadOptionsMethod: 'getAssetTypes', }, }, { @@ -279,9 +273,7 @@ export const assetFields = [ default: '', description: 'ID of the department to which the asset belongs. Choose from the list or specify an ID. You can also specify the ID using an expression.', typeOptions: { - loadOptionsMethod: [ - 'getDepartments', - ], + loadOptionsMethod: 'getDepartments', }, }, { @@ -291,9 +283,7 @@ export const assetFields = [ default: '', description: 'ID of the location to filter by. Choose from the list or specify an ID. You can also specify the ID using an expression.', typeOptions: { - loadOptionsMethod: [ - 'getLocations', - ], + loadOptionsMethod: 'getLocations', }, }, { @@ -375,4 +365,4 @@ export const assetFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Freshservice/descriptions/AssetTypeDescription.ts b/packages/nodes-base/nodes/Freshservice/descriptions/AssetTypeDescription.ts index 7c4af2bc7a17a2..73b11047eed3ad 100644 --- a/packages/nodes-base/nodes/Freshservice/descriptions/AssetTypeDescription.ts +++ b/packages/nodes-base/nodes/Freshservice/descriptions/AssetTypeDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const assetTypeOperations = [ +export const assetTypeOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -43,9 +43,9 @@ export const assetTypeOperations = [ ], default: 'create', }, -] as INodeProperties[]; +]; -export const assetTypeFields = [ +export const assetTypeFields: INodeProperties[] = [ // ---------------------------------------- // assetType: create // ---------------------------------------- @@ -96,9 +96,7 @@ export const assetTypeFields = [ type: 'options', default: '', typeOptions: { - loadOptionsMethod: [ - 'getAssetTypes', - ], + loadOptionsMethod: 'getAssetTypes', }, }, ], @@ -244,4 +242,4 @@ export const assetTypeFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Freshservice/descriptions/ChangeDescription.ts b/packages/nodes-base/nodes/Freshservice/descriptions/ChangeDescription.ts index c447678b423b87..3168143a01d440 100644 --- a/packages/nodes-base/nodes/Freshservice/descriptions/ChangeDescription.ts +++ b/packages/nodes-base/nodes/Freshservice/descriptions/ChangeDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const changeOperations = [ +export const changeOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -43,9 +43,9 @@ export const changeOperations = [ ], default: 'create', }, -] as INodeProperties[]; +]; -export const changeFields = [ +export const changeFields: INodeProperties[] = [ // ---------------------------------------- // change: create // ---------------------------------------- @@ -57,9 +57,7 @@ export const changeFields = [ required: true, default: '', typeOptions: { - loadOptionsMethod: [ - 'getRequesters', - ], + loadOptionsMethod: 'getRequesters', }, displayOptions: { show: { @@ -147,9 +145,7 @@ export const changeFields = [ default: '', description: 'ID of the agent to whom the change is assigned. Choose from the list or specify an ID. You can also specify the ID using an expression.', typeOptions: { - loadOptionsMethod: [ - 'getAgents', - ], + loadOptionsMethod: 'getAgents', }, }, { @@ -183,9 +179,7 @@ export const changeFields = [ default: '', description: 'ID of the department requesting the change. Choose from the list or specify an ID. You can also specify the ID using an expression.', typeOptions: { - loadOptionsMethod: [ - 'getDepartments', - ], + loadOptionsMethod: 'getDepartments', }, }, { @@ -202,9 +196,7 @@ export const changeFields = [ default: '', description: 'ID of the agent group to which the change is assigned. Choose from the list or specify an ID. You can also specify the ID using an expression.', typeOptions: { - loadOptionsMethod: [ - 'getAgentGroups', - ], + loadOptionsMethod: 'getAgentGroups', }, }, { @@ -518,9 +510,7 @@ export const changeFields = [ default: '', description: 'ID of the agent to whom the change is assigned. Choose from the list or specify an ID. You can also specify the ID using an expression.', typeOptions: { - loadOptionsMethod: [ - 'getAgents', - ], + loadOptionsMethod: 'getAgents', }, }, { @@ -554,9 +544,7 @@ export const changeFields = [ default: '', description: 'ID of the department requesting the change. Choose from the list or specify an ID. You can also specify the ID using an expression.', typeOptions: { - loadOptionsMethod: [ - 'getDepartments', - ], + loadOptionsMethod: 'getDepartments', }, }, { @@ -573,9 +561,7 @@ export const changeFields = [ default: '', description: 'ID of the agent group to which the change is assigned. Choose from the list or specify an ID. You can also specify the ID using an expression.', typeOptions: { - loadOptionsMethod: [ - 'getAgentGroups', - ], + loadOptionsMethod: 'getAgentGroups', }, }, { @@ -630,9 +616,7 @@ export const changeFields = [ default: '', description: 'ID of the requester of the change. Choose from the list or specify an ID. You can also specify the ID using an expression.', typeOptions: { - loadOptionsMethod: [ - 'getRequesters', - ], + loadOptionsMethod: 'getRequesters', }, }, { @@ -699,4 +683,4 @@ export const changeFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Freshservice/descriptions/DepartmentDescription.ts b/packages/nodes-base/nodes/Freshservice/descriptions/DepartmentDescription.ts index 7efcca4eff8b2a..cba79e87315330 100644 --- a/packages/nodes-base/nodes/Freshservice/descriptions/DepartmentDescription.ts +++ b/packages/nodes-base/nodes/Freshservice/descriptions/DepartmentDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const departmentOperations = [ +export const departmentOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -43,9 +43,9 @@ export const departmentOperations = [ ], default: 'create', }, -] as INodeProperties[]; +]; -export const departmentFields = [ +export const departmentFields: INodeProperties[] = [ // ---------------------------------------- // department: create // ---------------------------------------- @@ -272,4 +272,4 @@ export const departmentFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Freshservice/descriptions/LocationDescription.ts b/packages/nodes-base/nodes/Freshservice/descriptions/LocationDescription.ts index 3fdc2d3ac88351..d6aecc60e75628 100644 --- a/packages/nodes-base/nodes/Freshservice/descriptions/LocationDescription.ts +++ b/packages/nodes-base/nodes/Freshservice/descriptions/LocationDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const locationOperations = [ +export const locationOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -43,9 +43,9 @@ export const locationOperations = [ ], default: 'create', }, -] as INodeProperties[]; +]; -export const locationFields = [ +export const locationFields: INodeProperties[] = [ // ---------------------------------------- // location: create // ---------------------------------------- @@ -323,4 +323,4 @@ export const locationFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Freshservice/descriptions/ProblemDescription.ts b/packages/nodes-base/nodes/Freshservice/descriptions/ProblemDescription.ts index 742429a3d52924..ed3926bdac5f1a 100644 --- a/packages/nodes-base/nodes/Freshservice/descriptions/ProblemDescription.ts +++ b/packages/nodes-base/nodes/Freshservice/descriptions/ProblemDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const problemOperations = [ +export const problemOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -43,9 +43,9 @@ export const problemOperations = [ ], default: 'create', }, -] as INodeProperties[]; +]; -export const problemFields = [ +export const problemFields: INodeProperties[] = [ // ---------------------------------------- // problem: create // ---------------------------------------- @@ -74,9 +74,7 @@ export const problemFields = [ required: true, default: '', typeOptions: { - loadOptionsMethod: [ - 'getRequesters', - ], + loadOptionsMethod: 'getRequesters', }, displayOptions: { show: { @@ -130,9 +128,7 @@ export const problemFields = [ default: '', description: 'ID of the agent to whom the problem is assigned. Choose from the list or specify an ID. You can also specify the ID using an expression.', typeOptions: { - loadOptionsMethod: [ - 'getAgents', - ], + loadOptionsMethod: 'getAgents', }, }, { @@ -142,9 +138,7 @@ export const problemFields = [ default: '', description: 'ID of the department initiating the problem. Choose from the list or specify an ID. You can also specify the ID using an expression.', typeOptions: { - loadOptionsMethod: [ - 'getDepartments', - ], + loadOptionsMethod: 'getDepartments', }, }, { @@ -161,9 +155,7 @@ export const problemFields = [ default: '', description: 'ID of the agent group to which the problem is assigned. Choose from the list or specify an ID. You can also specify the ID using an expression.', typeOptions: { - loadOptionsMethod: [ - 'getAgentGroups', - ], + loadOptionsMethod: 'getAgentGroups', }, }, { @@ -366,9 +358,7 @@ export const problemFields = [ default: '', description: 'ID of the agent to whom the problem is assigned. Choose from the list or specify an ID. You can also specify the ID using an expression.', typeOptions: { - loadOptionsMethod: [ - 'getAgents', - ], + loadOptionsMethod: 'getAgents', }, }, { @@ -378,9 +368,7 @@ export const problemFields = [ default: '', description: 'ID of the department initiating the problem. Choose from the list or specify an ID. You can also specify the ID using an expression.', typeOptions: { - loadOptionsMethod: [ - 'getDepartments', - ], + loadOptionsMethod: 'getDepartments', }, }, { @@ -404,9 +392,7 @@ export const problemFields = [ default: '', description: 'ID of the agent group to which the problem is assigned. Choose from the list or specify an ID. You can also specify the ID using an expression.', typeOptions: { - loadOptionsMethod: [ - 'getAgentGroups', - ], + loadOptionsMethod: 'getAgentGroups', }, }, { @@ -460,9 +446,7 @@ export const problemFields = [ default: '', description: 'ID of the initiator of the problem. Choose from the list or specify an ID. You can also specify the ID using an expression.', typeOptions: { - loadOptionsMethod: [ - 'getRequesters', - ], + loadOptionsMethod: 'getRequesters', }, }, { @@ -493,4 +477,4 @@ export const problemFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Freshservice/descriptions/ProductDescription.ts b/packages/nodes-base/nodes/Freshservice/descriptions/ProductDescription.ts index df5473706053bb..db6a2cd38ddc37 100644 --- a/packages/nodes-base/nodes/Freshservice/descriptions/ProductDescription.ts +++ b/packages/nodes-base/nodes/Freshservice/descriptions/ProductDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const productOperations = [ +export const productOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -43,9 +43,9 @@ export const productOperations = [ ], default: 'create', }, -] as INodeProperties[]; +]; -export const productFields = [ +export const productFields: INodeProperties[] = [ // ---------------------------------------- // product: create // ---------------------------------------- @@ -57,9 +57,7 @@ export const productFields = [ required: true, default: '', typeOptions: { - loadOptionsMethod: [ - 'getAssetTypes', - ], + loadOptionsMethod: 'getAssetTypes', }, displayOptions: { show: { @@ -295,9 +293,7 @@ export const productFields = [ description: 'Choose from the list or specify an ID. You can also specify the ID using an expression.', default: '', typeOptions: { - loadOptionsMethod: [ - 'getAssetTypes', - ], + loadOptionsMethod: 'getAssetTypes', }, }, { @@ -361,4 +357,4 @@ export const productFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Freshservice/descriptions/ReleaseDescription.ts b/packages/nodes-base/nodes/Freshservice/descriptions/ReleaseDescription.ts index bc57e0bb485f0c..9753082e4733d6 100644 --- a/packages/nodes-base/nodes/Freshservice/descriptions/ReleaseDescription.ts +++ b/packages/nodes-base/nodes/Freshservice/descriptions/ReleaseDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const releaseOperations = [ +export const releaseOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -43,9 +43,9 @@ export const releaseOperations = [ ], default: 'create', }, -] as INodeProperties[]; +]; -export const releaseFields = [ +export const releaseFields: INodeProperties[] = [ // ---------------------------------------- // release: create // ---------------------------------------- @@ -230,9 +230,7 @@ export const releaseFields = [ default: '', description: 'ID of the department initiating the release. Choose from the list or specify an ID. You can also specify the ID using an expression.', typeOptions: { - loadOptionsMethod: [ - 'getDepartments', - ], + loadOptionsMethod: 'getDepartments', }, }, { @@ -249,9 +247,7 @@ export const releaseFields = [ default: '', description: 'ID of the agent group to which the release is assigned. Choose from the list or specify an ID. You can also specify the ID using an expression.', typeOptions: { - loadOptionsMethod: [ - 'getAgentGroups', - ], + loadOptionsMethod: 'getAgentGroups', }, }, ], @@ -390,9 +386,7 @@ export const releaseFields = [ default: '', description: 'ID of the department initiating the release. Choose from the list or specify an ID. You can also specify the ID using an expression.', typeOptions: { - loadOptionsMethod: [ - 'getDepartments', - ], + loadOptionsMethod: 'getDepartments', }, }, { @@ -409,9 +403,7 @@ export const releaseFields = [ default: '', description: 'ID of the agent group to which the release is assigned. Choose from the list or specify an ID. You can also specify the ID using an expression.', typeOptions: { - loadOptionsMethod: [ - 'getAgentGroups', - ], + loadOptionsMethod: 'getAgentGroups', }, }, { @@ -498,4 +490,4 @@ export const releaseFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Freshservice/descriptions/RequesterDescription.ts b/packages/nodes-base/nodes/Freshservice/descriptions/RequesterDescription.ts index a2a348ec5f59fa..1951f89d3fa484 100644 --- a/packages/nodes-base/nodes/Freshservice/descriptions/RequesterDescription.ts +++ b/packages/nodes-base/nodes/Freshservice/descriptions/RequesterDescription.ts @@ -3,7 +3,7 @@ import { } from 'n8n-workflow'; import { LANGUAGES } from '../constants'; -export const requesterOperations = [ +export const requesterOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -44,9 +44,9 @@ export const requesterOperations = [ ], default: 'create', }, -] as INodeProperties[]; +]; -export const requesterFields = [ +export const requesterFields: INodeProperties[] = [ // ---------------------------------------- // requester: create // ---------------------------------------- @@ -119,9 +119,7 @@ export const requesterFields = [ default: [], description: 'Comma-separated IDs of the departments associated with the requester. Choose from the list or specify an ID using an expression.', typeOptions: { - loadOptionsMethod: [ - 'getDepartments', - ], + loadOptionsMethod: 'getDepartments', }, }, { @@ -150,9 +148,7 @@ export const requesterFields = [ type: 'options', default: '', typeOptions: { - loadOptionsMethod: [ - 'getLocations', - ], + loadOptionsMethod: 'getLocations', }, }, { @@ -304,9 +300,7 @@ export const requesterFields = [ type: 'options', default: '', typeOptions: { - loadOptionsMethod: [ - 'getDepartments', - ], + loadOptionsMethod: 'getDepartments', }, }, { @@ -341,9 +335,7 @@ export const requesterFields = [ description: 'Choose from the list or specify an ID. You can also specify the ID using an expression.', default: '', typeOptions: { - loadOptionsMethod: [ - 'getLocations', - ], + loadOptionsMethod: 'getLocations', }, }, { @@ -424,9 +416,7 @@ export const requesterFields = [ default: [], description: 'Comma-separated IDs of the departments associated with the requester. Choose from the list or specify an ID using an expression.', typeOptions: { - loadOptionsMethod: [ - 'getDepartments', - ], + loadOptionsMethod: 'getDepartments', }, }, { @@ -461,9 +451,7 @@ export const requesterFields = [ default: '', description: 'Choose from the list or specify an ID. You can also specify the ID using an expression.', typeOptions: { - loadOptionsMethod: [ - 'getLocations', - ], + loadOptionsMethod: 'getLocations', }, }, { @@ -509,4 +497,4 @@ export const requesterFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Freshservice/descriptions/RequesterGroupDescription.ts b/packages/nodes-base/nodes/Freshservice/descriptions/RequesterGroupDescription.ts index 1ed51ee6e4c938..9b0abba7f5705d 100644 --- a/packages/nodes-base/nodes/Freshservice/descriptions/RequesterGroupDescription.ts +++ b/packages/nodes-base/nodes/Freshservice/descriptions/RequesterGroupDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const requesterGroupOperations = [ +export const requesterGroupOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -43,9 +43,9 @@ export const requesterGroupOperations = [ ], default: 'create', }, -] as INodeProperties[]; +]; -export const requesterGroupFields = [ +export const requesterGroupFields: INodeProperties[] = [ // ---------------------------------------- // requesterGroup: create // ---------------------------------------- @@ -234,4 +234,4 @@ export const requesterGroupFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Freshservice/descriptions/SoftwareDescription.ts b/packages/nodes-base/nodes/Freshservice/descriptions/SoftwareDescription.ts index d8a7255a5e2071..eb5e505cca74df 100644 --- a/packages/nodes-base/nodes/Freshservice/descriptions/SoftwareDescription.ts +++ b/packages/nodes-base/nodes/Freshservice/descriptions/SoftwareDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const softwareOperations = [ +export const softwareOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -43,9 +43,9 @@ export const softwareOperations = [ ], default: 'create', }, -] as INodeProperties[]; +]; -export const softwareFields = [ +export const softwareFields: INodeProperties[] = [ // ---------------------------------------- // software: create // ---------------------------------------- @@ -344,4 +344,4 @@ export const softwareFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Freshservice/descriptions/TicketDescription.ts b/packages/nodes-base/nodes/Freshservice/descriptions/TicketDescription.ts index 006e355a796c52..61f925055cc746 100644 --- a/packages/nodes-base/nodes/Freshservice/descriptions/TicketDescription.ts +++ b/packages/nodes-base/nodes/Freshservice/descriptions/TicketDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const ticketOperations = [ +export const ticketOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -43,9 +43,9 @@ export const ticketOperations = [ ], default: 'create', }, -] as INodeProperties[]; +]; -export const ticketFields = [ +export const ticketFields: INodeProperties[] = [ // ---------------------------------------- // ticket: create // ---------------------------------------- @@ -199,9 +199,7 @@ export const ticketFields = [ default: '', description: 'ID of the department to which this ticket belongs. Choose from the list or specify an ID. You can also specify the ID using an expression.', typeOptions: { - loadOptionsMethod: [ - 'getDepartments', - ], + loadOptionsMethod: 'getDepartments', }, }, { @@ -211,9 +209,7 @@ export const ticketFields = [ default: '', description: 'ID of the group to which the ticket has been assigned. Choose from the list or specify an ID. You can also specify the ID using an expression.', typeOptions: { - loadOptionsMethod: [ - 'getAgentGroups', - ], + loadOptionsMethod: 'getAgentGroups', }, }, { @@ -250,9 +246,7 @@ export const ticketFields = [ description: 'Choose from the list or specify an ID. You can also specify the ID using an expression.', default: '', typeOptions: { - loadOptionsMethod: [ - 'getRequesters', - ], + loadOptionsMethod: 'getRequesters', }, }, ], @@ -369,9 +363,7 @@ export const ticketFields = [ default: '', description: 'ID of the agent to whom the tickets have been assigned. Choose from the list or specify an ID. You can also specify the ID using an expression.', typeOptions: { - loadOptionsMethod: [ - 'getAgents', - ], + loadOptionsMethod: 'getAgents', }, }, { @@ -381,9 +373,7 @@ export const ticketFields = [ default: '', description: 'ID of the group to which the tickets have been assigned. Choose from the list or specify an ID. You can also specify the ID using an expression.', typeOptions: { - loadOptionsMethod: [ - 'getAgentGroups', - ], + loadOptionsMethod: 'getAgentGroups', }, }, { @@ -516,9 +506,7 @@ export const ticketFields = [ default: '', description: 'ID of the department to which this ticket has been assigned. Choose from the list or specify an ID. You can also specify the ID using an expression.', typeOptions: { - loadOptionsMethod: [ - 'getDepartments', - ], + loadOptionsMethod: 'getDepartments', }, }, { @@ -542,9 +530,7 @@ export const ticketFields = [ default: '', description: 'ID of the group to which the ticket has been assigned. Choose from the list or specify an ID. You can also specify the ID using an expression.', typeOptions: { - loadOptionsMethod: [ - 'getAgentGroups', - ], + loadOptionsMethod: 'getAgentGroups', }, }, { @@ -637,4 +623,4 @@ export const ticketFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/FreshworksCrm/descriptions/AccountDescription.ts b/packages/nodes-base/nodes/FreshworksCrm/descriptions/AccountDescription.ts index 645aae75e2ee95..f368c97e1b4866 100644 --- a/packages/nodes-base/nodes/FreshworksCrm/descriptions/AccountDescription.ts +++ b/packages/nodes-base/nodes/FreshworksCrm/descriptions/AccountDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const accountOperations = [ +export const accountOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -43,9 +43,9 @@ export const accountOperations = [ ], default: 'create', }, -] as INodeProperties[]; +]; -export const accountFields = [ +export const accountFields: INodeProperties[] = [ // ---------------------------------------- // account: create // ---------------------------------------- @@ -504,4 +504,4 @@ export const accountFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/FreshworksCrm/descriptions/AppointmentDescription.ts b/packages/nodes-base/nodes/FreshworksCrm/descriptions/AppointmentDescription.ts index 172d4c993f96cf..fcdb127dd273dd 100644 --- a/packages/nodes-base/nodes/FreshworksCrm/descriptions/AppointmentDescription.ts +++ b/packages/nodes-base/nodes/FreshworksCrm/descriptions/AppointmentDescription.ts @@ -6,7 +6,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const appointmentOperations = [ +export const appointmentOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -47,9 +47,9 @@ export const appointmentOperations = [ ], default: 'create', }, -] as INodeProperties[]; +]; -export const appointmentFields = [ +export const appointmentFields: INodeProperties[] = [ // ---------------------------------------- // appointment: create // ---------------------------------------- @@ -633,4 +633,4 @@ export const appointmentFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/FreshworksCrm/descriptions/ContactDescription.ts b/packages/nodes-base/nodes/FreshworksCrm/descriptions/ContactDescription.ts index 9d531553602202..b6fcbb2e0a0372 100644 --- a/packages/nodes-base/nodes/FreshworksCrm/descriptions/ContactDescription.ts +++ b/packages/nodes-base/nodes/FreshworksCrm/descriptions/ContactDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const contactOperations = [ +export const contactOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -43,9 +43,9 @@ export const contactOperations = [ ], default: 'create', }, -] as INodeProperties[]; +]; -export const contactFields = [ +export const contactFields: INodeProperties[] = [ // ---------------------------------------- // contact: create // ---------------------------------------- @@ -665,4 +665,4 @@ export const contactFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/FreshworksCrm/descriptions/DealDescription.ts b/packages/nodes-base/nodes/FreshworksCrm/descriptions/DealDescription.ts index ad5ca251d6501e..439f1757e99d82 100644 --- a/packages/nodes-base/nodes/FreshworksCrm/descriptions/DealDescription.ts +++ b/packages/nodes-base/nodes/FreshworksCrm/descriptions/DealDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const dealOperations = [ +export const dealOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -43,9 +43,9 @@ export const dealOperations = [ ], default: 'create', }, -] as INodeProperties[]; +]; -export const dealFields = [ +export const dealFields: INodeProperties[] = [ // ---------------------------------------- // deal: create // ---------------------------------------- @@ -542,4 +542,4 @@ export const dealFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/FreshworksCrm/descriptions/NoteDescription.ts b/packages/nodes-base/nodes/FreshworksCrm/descriptions/NoteDescription.ts index d5f48085f145eb..9bb81d77b1a81b 100644 --- a/packages/nodes-base/nodes/FreshworksCrm/descriptions/NoteDescription.ts +++ b/packages/nodes-base/nodes/FreshworksCrm/descriptions/NoteDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const noteOperations = [ +export const noteOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -33,9 +33,9 @@ export const noteOperations = [ ], default: 'create', }, -] as INodeProperties[]; +]; -export const noteFields = [ +export const noteFields: INodeProperties[] = [ // ---------------------------------------- // note: create // ---------------------------------------- @@ -211,4 +211,4 @@ export const noteFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/FreshworksCrm/descriptions/SalesActivityDescription.ts b/packages/nodes-base/nodes/FreshworksCrm/descriptions/SalesActivityDescription.ts index d410df0bbf3480..e7b08082c44dc5 100644 --- a/packages/nodes-base/nodes/FreshworksCrm/descriptions/SalesActivityDescription.ts +++ b/packages/nodes-base/nodes/FreshworksCrm/descriptions/SalesActivityDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const salesActivityOperations = [ +export const salesActivityOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -43,9 +43,9 @@ export const salesActivityOperations = [ ], default: 'get', }, -] as INodeProperties[]; +]; -export const salesActivityFields = [ +export const salesActivityFields: INodeProperties[] = [ // ---------------------------------------- // salesActivity: create // ---------------------------------------- @@ -403,6 +403,7 @@ export const salesActivityFields = [ name: 'end_date', description: 'Timestamp that denotes the start of the sales activity', type: 'dateTime', + default: '', }, { displayName: 'Latitude', @@ -467,6 +468,7 @@ export const salesActivityFields = [ name: 'from_date', description: 'Timestamp that denotes the start of the sales activity', type: 'dateTime', + default: '', }, { displayName: 'Target ID', @@ -505,4 +507,4 @@ export const salesActivityFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/FreshworksCrm/descriptions/TaskDescription.ts b/packages/nodes-base/nodes/FreshworksCrm/descriptions/TaskDescription.ts index 0f8fc6de339898..b3eb19a4207292 100644 --- a/packages/nodes-base/nodes/FreshworksCrm/descriptions/TaskDescription.ts +++ b/packages/nodes-base/nodes/FreshworksCrm/descriptions/TaskDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const taskOperations = [ +export const taskOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -43,9 +43,9 @@ export const taskOperations = [ ], default: 'create', }, -] as INodeProperties[]; +]; -export const taskFields = [ +export const taskFields: INodeProperties[] = [ // ---------------------------------------- // task: create // ---------------------------------------- @@ -477,4 +477,4 @@ export const taskFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/GetResponse/ContactDescription.ts b/packages/nodes-base/nodes/GetResponse/ContactDescription.ts index 05dcc4442e6d89..0cf2736f0b704f 100644 --- a/packages/nodes-base/nodes/GetResponse/ContactDescription.ts +++ b/packages/nodes-base/nodes/GetResponse/ContactDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const contactOperations = [ +export const contactOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -44,9 +44,9 @@ export const contactOperations = [ default: 'get', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const contactFields = [ +export const contactFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* contact:create */ /* -------------------------------------------------------------------------- */ @@ -642,4 +642,4 @@ export const contactFields = [ ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Ghost/PostDescription.ts b/packages/nodes-base/nodes/Ghost/PostDescription.ts index 11f920d1ce79e2..2d3674014d980e 100644 --- a/packages/nodes-base/nodes/Ghost/PostDescription.ts +++ b/packages/nodes-base/nodes/Ghost/PostDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const postOperations = [ +export const postOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -76,9 +76,9 @@ export const postOperations = [ default: 'get', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const postFields = [ +export const postFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* post:create */ /* -------------------------------------------------------------------------- */ @@ -928,4 +928,4 @@ export const postFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Git/descriptions/AddConfigDescription.ts b/packages/nodes-base/nodes/Git/descriptions/AddConfigDescription.ts index db336d5b9e69cb..9b10649978fcdb 100644 --- a/packages/nodes-base/nodes/Git/descriptions/AddConfigDescription.ts +++ b/packages/nodes-base/nodes/Git/descriptions/AddConfigDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const addConfigFields = [ +export const addConfigFields: INodeProperties[] = [ { displayName: 'Key', name: 'key', @@ -68,4 +68,4 @@ export const addConfigFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Git/descriptions/AddDescription.ts b/packages/nodes-base/nodes/Git/descriptions/AddDescription.ts index 478d3f4de68281..42ecd5f05b096c 100644 --- a/packages/nodes-base/nodes/Git/descriptions/AddDescription.ts +++ b/packages/nodes-base/nodes/Git/descriptions/AddDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const addFields = [ +export const addFields: INodeProperties[] = [ { displayName: 'Paths to Add', name: 'pathsToAdd', @@ -19,4 +19,4 @@ export const addFields = [ description: 'Comma separated list of paths (absolute or relative to Repository Path) of files or folders to add.', required: true, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Git/descriptions/CloneDescription.ts b/packages/nodes-base/nodes/Git/descriptions/CloneDescription.ts index 21546e9eb5488d..4d0ac9194ef27c 100644 --- a/packages/nodes-base/nodes/Git/descriptions/CloneDescription.ts +++ b/packages/nodes-base/nodes/Git/descriptions/CloneDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const cloneFields = [ +export const cloneFields: INodeProperties[] = [ { displayName: 'Source Repository', name: 'sourceRepository', @@ -19,4 +19,4 @@ export const cloneFields = [ description: 'The URL or path of the repository to clone.', required: true, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Git/descriptions/CommitDescription.ts b/packages/nodes-base/nodes/Git/descriptions/CommitDescription.ts index e18f46b0030748..307ed5fe64b571 100644 --- a/packages/nodes-base/nodes/Git/descriptions/CommitDescription.ts +++ b/packages/nodes-base/nodes/Git/descriptions/CommitDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const commitFields = [ +export const commitFields: INodeProperties[] = [ { displayName: 'Message', name: 'message', @@ -41,4 +41,4 @@ export const commitFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Git/descriptions/LogDescription.ts b/packages/nodes-base/nodes/Git/descriptions/LogDescription.ts index f17e903e5da124..b774a7bab9391f 100644 --- a/packages/nodes-base/nodes/Git/descriptions/LogDescription.ts +++ b/packages/nodes-base/nodes/Git/descriptions/LogDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const logFields = [ +export const logFields: INodeProperties[] = [ { displayName: 'Return All', name: 'returnAll', @@ -61,4 +61,4 @@ export const logFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Git/descriptions/PushDescription.ts b/packages/nodes-base/nodes/Git/descriptions/PushDescription.ts index 797559b6d5ef92..1175d59fcea136 100644 --- a/packages/nodes-base/nodes/Git/descriptions/PushDescription.ts +++ b/packages/nodes-base/nodes/Git/descriptions/PushDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const pushFields = [ +export const pushFields: INodeProperties[] = [ { displayName: 'Options', name: 'options', @@ -27,4 +27,4 @@ export const pushFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Git/descriptions/TagDescription.ts b/packages/nodes-base/nodes/Git/descriptions/TagDescription.ts index bfd0f39fb089f3..6894ddaeb6b47e 100644 --- a/packages/nodes-base/nodes/Git/descriptions/TagDescription.ts +++ b/packages/nodes-base/nodes/Git/descriptions/TagDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const tagFields = [ +export const tagFields: INodeProperties[] = [ { displayName: 'Name', name: 'name', @@ -18,4 +18,4 @@ export const tagFields = [ description: 'The name of the tag to create.', required: true, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/GoToWebinar/descriptions/AttendeeDescription.ts b/packages/nodes-base/nodes/GoToWebinar/descriptions/AttendeeDescription.ts index 709e9a2c00bbcf..fccd0b2e88ccf0 100644 --- a/packages/nodes-base/nodes/GoToWebinar/descriptions/AttendeeDescription.ts +++ b/packages/nodes-base/nodes/GoToWebinar/descriptions/AttendeeDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const attendeeOperations = [ +export const attendeeOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -31,9 +31,9 @@ export const attendeeOperations = [ }, }, }, -] as INodeProperties[]; +]; -export const attendeeFields = [ +export const attendeeFields: INodeProperties[] = [ // ---------------------------------- // attendee: shared fields // ---------------------------------- @@ -200,4 +200,4 @@ export const attendeeFields = [ }, }, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/GoToWebinar/descriptions/CoorganizerDescription.ts b/packages/nodes-base/nodes/GoToWebinar/descriptions/CoorganizerDescription.ts index 717b63d3b1bf81..f075715f4a9ecc 100644 --- a/packages/nodes-base/nodes/GoToWebinar/descriptions/CoorganizerDescription.ts +++ b/packages/nodes-base/nodes/GoToWebinar/descriptions/CoorganizerDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const coorganizerOperations = [ +export const coorganizerOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -35,9 +35,9 @@ export const coorganizerOperations = [ }, }, }, -] as INodeProperties[]; +]; -export const coorganizerFields = [ +export const coorganizerFields: INodeProperties[] = [ // ---------------------------------- // coorganizer: create // ---------------------------------- @@ -84,6 +84,7 @@ export const coorganizerFields = [ displayName: 'Organizer Key', name: 'organizerKey', type: 'string', + default: '', description: 'The co-organizer\'s organizer key for the webinar.', displayOptions: { show: { @@ -322,4 +323,4 @@ export const coorganizerFields = [ }, }, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/GoToWebinar/descriptions/PanelistDescription.ts b/packages/nodes-base/nodes/GoToWebinar/descriptions/PanelistDescription.ts index d31ef9948faa9b..79e5a2c80c8b39 100644 --- a/packages/nodes-base/nodes/GoToWebinar/descriptions/PanelistDescription.ts +++ b/packages/nodes-base/nodes/GoToWebinar/descriptions/PanelistDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const panelistOperations = [ +export const panelistOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -35,9 +35,9 @@ export const panelistOperations = [ }, }, }, -] as INodeProperties[]; +]; -export const panelistFields = [ +export const panelistFields: INodeProperties[] = [ // ---------------------------------- // panelist: create // ---------------------------------- @@ -250,4 +250,4 @@ export const panelistFields = [ }, }, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/GoToWebinar/descriptions/RegistrantDescription.ts b/packages/nodes-base/nodes/GoToWebinar/descriptions/RegistrantDescription.ts index 078f557bb5d92b..93c2347055ac50 100644 --- a/packages/nodes-base/nodes/GoToWebinar/descriptions/RegistrantDescription.ts +++ b/packages/nodes-base/nodes/GoToWebinar/descriptions/RegistrantDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const registrantOperations = [ +export const registrantOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -35,9 +35,9 @@ export const registrantOperations = [ }, }, }, -] as INodeProperties[]; +]; -export const registrantFields = [ +export const registrantFields: INodeProperties[] = [ // ---------------------------------- // registrant: create // ---------------------------------- @@ -472,4 +472,4 @@ export const registrantFields = [ }, }, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/GoToWebinar/descriptions/SessionDescription.ts b/packages/nodes-base/nodes/GoToWebinar/descriptions/SessionDescription.ts index b9545237e5f0c4..053049c0c0d145 100644 --- a/packages/nodes-base/nodes/GoToWebinar/descriptions/SessionDescription.ts +++ b/packages/nodes-base/nodes/GoToWebinar/descriptions/SessionDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const sessionOperations = [ +export const sessionOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -31,9 +31,9 @@ export const sessionOperations = [ }, }, }, -] as INodeProperties[]; +]; -export const sessionFields = [ +export const sessionFields: INodeProperties[] = [ // ---------------------------------- // session: getAll // ---------------------------------- @@ -223,4 +223,4 @@ export const sessionFields = [ }, }, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/GoToWebinar/descriptions/WebinarDescription.ts b/packages/nodes-base/nodes/GoToWebinar/descriptions/WebinarDescription.ts index c612d2e01227f7..57c47c63cb0c3a 100644 --- a/packages/nodes-base/nodes/GoToWebinar/descriptions/WebinarDescription.ts +++ b/packages/nodes-base/nodes/GoToWebinar/descriptions/WebinarDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const webinarOperations = [ +export const webinarOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -39,9 +39,9 @@ export const webinarOperations = [ }, }, }, -] as INodeProperties[]; +]; -export const webinarFields = [ +export const webinarFields: INodeProperties[] = [ // ---------------------------------- // webinar: create // ---------------------------------- @@ -466,6 +466,7 @@ export const webinarFields = [ displayName: 'Times', name: 'times', type: 'fixedCollection', + default: {}, typeOptions: { multipleValues: true, }, @@ -540,4 +541,4 @@ export const webinarFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Google/Analytics/ReportDescription.ts b/packages/nodes-base/nodes/Google/Analytics/ReportDescription.ts index dc84d3c6504a9d..d70bcfadd45c3f 100644 --- a/packages/nodes-base/nodes/Google/Analytics/ReportDescription.ts +++ b/packages/nodes-base/nodes/Google/Analytics/ReportDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const reportOperations = [ +export const reportOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -24,9 +24,9 @@ export const reportOperations = [ default: 'get', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const reportFields = [ +export const reportFields: INodeProperties[] = [ { displayName: 'View ID', name: 'viewId', @@ -354,4 +354,4 @@ export const reportFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Google/Analytics/UserActivityDescription.ts b/packages/nodes-base/nodes/Google/Analytics/UserActivityDescription.ts index 4201b900cb9199..d3cec1afe9155f 100644 --- a/packages/nodes-base/nodes/Google/Analytics/UserActivityDescription.ts +++ b/packages/nodes-base/nodes/Google/Analytics/UserActivityDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const userActivityOperations = [ +export const userActivityOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -24,9 +24,9 @@ export const userActivityOperations = [ default: 'search', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const userActivityFields = [ +export const userActivityFields: INodeProperties[] = [ { displayName: 'View ID', name: 'viewId', @@ -157,4 +157,4 @@ export const userActivityFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Google/BigQuery/RecordDescription.ts b/packages/nodes-base/nodes/Google/BigQuery/RecordDescription.ts index dcae15e41f6360..e671c65623cd90 100644 --- a/packages/nodes-base/nodes/Google/BigQuery/RecordDescription.ts +++ b/packages/nodes-base/nodes/Google/BigQuery/RecordDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const recordOperations = [ +export const recordOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -29,9 +29,9 @@ export const recordOperations = [ default: 'create', description: 'Operation to perform.', }, -] as INodeProperties[]; +]; -export const recordFields = [ +export const recordFields: INodeProperties[] = [ // ---------------------------------- // record: create // ---------------------------------- @@ -336,4 +336,4 @@ export const recordFields = [ // }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Google/Calendar/CalendarDescription.ts b/packages/nodes-base/nodes/Google/Calendar/CalendarDescription.ts index ab2f70a65be30c..14dc62d3bc48d9 100644 --- a/packages/nodes-base/nodes/Google/Calendar/CalendarDescription.ts +++ b/packages/nodes-base/nodes/Google/Calendar/CalendarDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const calendarOperations = [ +export const calendarOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -24,9 +24,9 @@ export const calendarOperations = [ default: 'availability', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const calendarFields = [ +export const calendarFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* calendar:availability */ /* -------------------------------------------------------------------------- */ @@ -138,4 +138,4 @@ export const calendarFields = [ }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Google/Calendar/EventDescription.ts b/packages/nodes-base/nodes/Google/Calendar/EventDescription.ts index 1b6c284e72df53..616117fd866e95 100644 --- a/packages/nodes-base/nodes/Google/Calendar/EventDescription.ts +++ b/packages/nodes-base/nodes/Google/Calendar/EventDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const eventOperations = [ +export const eventOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -44,9 +44,9 @@ export const eventOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const eventFields = [ +export const eventFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* event:getAll */ /* -------------------------------------------------------------------------- */ @@ -1086,4 +1086,4 @@ export const eventFields = [ ], description: `If the event doesn't use the default reminders, this lists the reminders specific to the event`, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Google/Contacts/ContactDescription.ts b/packages/nodes-base/nodes/Google/Contacts/ContactDescription.ts index bec7058c72dcb8..f11dcbe07c15db 100644 --- a/packages/nodes-base/nodes/Google/Contacts/ContactDescription.ts +++ b/packages/nodes-base/nodes/Google/Contacts/ContactDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const contactOperations = [ +export const contactOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -44,9 +44,9 @@ export const contactOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const contactFields = [ +export const contactFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* contact:create */ /* -------------------------------------------------------------------------- */ @@ -1576,4 +1576,4 @@ export const contactFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Google/Docs/DocumentDescription.ts b/packages/nodes-base/nodes/Google/Docs/DocumentDescription.ts index 519d7c5dacbad5..6bcaa56ea969da 100644 --- a/packages/nodes-base/nodes/Google/Docs/DocumentDescription.ts +++ b/packages/nodes-base/nodes/Google/Docs/DocumentDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const documentOperations = [ +export const documentOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -31,9 +31,9 @@ export const documentOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const documentFields = [ +export const documentFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* document: create */ /* -------------------------------------------------------------------------- */ @@ -1209,4 +1209,4 @@ export const documentFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Google/Firebase/CloudFirestore/CollectionDescription.ts b/packages/nodes-base/nodes/Google/Firebase/CloudFirestore/CollectionDescription.ts index df338c340f5e87..c5db0ae57c972c 100644 --- a/packages/nodes-base/nodes/Google/Firebase/CloudFirestore/CollectionDescription.ts +++ b/packages/nodes-base/nodes/Google/Firebase/CloudFirestore/CollectionDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const collectionOperations = [ +export const collectionOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -24,9 +24,9 @@ export const collectionOperations = [ default: 'getAll', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const collectionFields = [ +export const collectionFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* collection:getAll */ /* -------------------------------------------------------------------------- */ @@ -111,4 +111,4 @@ export const collectionFields = [ default: 100, description: 'How many results to return.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Google/Firebase/CloudFirestore/DocumentDescription.ts b/packages/nodes-base/nodes/Google/Firebase/CloudFirestore/DocumentDescription.ts index fb95476a8aa3be..8487a841d0ba82 100644 --- a/packages/nodes-base/nodes/Google/Firebase/CloudFirestore/DocumentDescription.ts +++ b/packages/nodes-base/nodes/Google/Firebase/CloudFirestore/DocumentDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const documentOperations = [ +export const documentOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -54,9 +54,9 @@ export const documentOperations = [ default: 'get', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const documentFields = [ +export const documentFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* document:create */ /* -------------------------------------------------------------------------- */ @@ -742,4 +742,4 @@ export const documentFields = [ default: true, description: 'Return a simplified version of the response instead of the raw data.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Google/GSuiteAdmin/GroupDescripion.ts b/packages/nodes-base/nodes/Google/GSuiteAdmin/GroupDescripion.ts index 216da42d9283c6..5f94961cd42d4d 100644 --- a/packages/nodes-base/nodes/Google/GSuiteAdmin/GroupDescripion.ts +++ b/packages/nodes-base/nodes/Google/GSuiteAdmin/GroupDescripion.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const groupOperations = [ +export const groupOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -44,9 +44,9 @@ export const groupOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const groupFields = [ +export const groupFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* group:create */ /* -------------------------------------------------------------------------- */ @@ -325,4 +325,4 @@ export const groupFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Google/GSuiteAdmin/UserDescription.ts b/packages/nodes-base/nodes/Google/GSuiteAdmin/UserDescription.ts index 1a47d4021336d0..a881da4531017e 100644 --- a/packages/nodes-base/nodes/Google/GSuiteAdmin/UserDescription.ts +++ b/packages/nodes-base/nodes/Google/GSuiteAdmin/UserDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const userOperations = [ +export const userOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -44,9 +44,9 @@ export const userOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const userFields = [ +export const userFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* user:create */ /* -------------------------------------------------------------------------- */ @@ -936,4 +936,4 @@ export const userFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Google/Gmail/DraftDescription.ts b/packages/nodes-base/nodes/Google/Gmail/DraftDescription.ts index 58310379016463..c7e039fa4f3b0e 100644 --- a/packages/nodes-base/nodes/Google/Gmail/DraftDescription.ts +++ b/packages/nodes-base/nodes/Google/Gmail/DraftDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const draftOperations = [ +export const draftOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -39,9 +39,9 @@ export const draftOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const draftFields = [ +export const draftFields: INodeProperties[] = [ { displayName: 'Draft ID', name: 'messageId', @@ -417,4 +417,4 @@ export const draftFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Google/Gmail/LabelDescription.ts b/packages/nodes-base/nodes/Google/Gmail/LabelDescription.ts index 0b02753f103ec4..b9104a3267581c 100644 --- a/packages/nodes-base/nodes/Google/Gmail/LabelDescription.ts +++ b/packages/nodes-base/nodes/Google/Gmail/LabelDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const labelOperations = [ +export const labelOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -39,9 +39,9 @@ export const labelOperations = [ default: 'create', description: 'The operation to perform', }, -] as INodeProperties[]; +]; -export const labelFields = [ +export const labelFields: INodeProperties[] = [ { displayName: 'Name', name: 'name', @@ -184,4 +184,4 @@ export const labelFields = [ default: 100, description: 'How many results to return.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Google/Gmail/MessageDescription.ts b/packages/nodes-base/nodes/Google/Gmail/MessageDescription.ts index 196c122ace2d85..b1d70ff31d384b 100644 --- a/packages/nodes-base/nodes/Google/Gmail/MessageDescription.ts +++ b/packages/nodes-base/nodes/Google/Gmail/MessageDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const messageOperations = [ +export const messageOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -44,9 +44,9 @@ export const messageOperations = [ default: 'send', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const messageFields = [ +export const messageFields: INodeProperties[] = [ { displayName: 'Message ID', name: 'messageId', @@ -505,4 +505,4 @@ export const messageFields = [ ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Google/Gmail/MessageLabelDescription.ts b/packages/nodes-base/nodes/Google/Gmail/MessageLabelDescription.ts index 1481f76b86c597..fcc297469b873d 100644 --- a/packages/nodes-base/nodes/Google/Gmail/MessageLabelDescription.ts +++ b/packages/nodes-base/nodes/Google/Gmail/MessageLabelDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const messageLabelOperations = [ +export const messageLabelOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -29,9 +29,9 @@ export const messageLabelOperations = [ default: 'add', description: 'The operation to perform', }, -] as INodeProperties[]; +]; -export const messageLabelFields = [ +export const messageLabelFields: INodeProperties[] = [ { displayName: 'Message ID', name: 'messageId', @@ -74,4 +74,4 @@ export const messageLabelFields = [ }, description: 'The ID of the label', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Google/Task/TaskDescription.ts b/packages/nodes-base/nodes/Google/Task/TaskDescription.ts index 90747569d6aa37..c757365df735a0 100644 --- a/packages/nodes-base/nodes/Google/Task/TaskDescription.ts +++ b/packages/nodes-base/nodes/Google/Task/TaskDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const taskOperations = [ +export const taskOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -44,9 +44,9 @@ export const taskOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const taskFields = [ +export const taskFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* task:create */ /* -------------------------------------------------------------------------- */ @@ -497,4 +497,4 @@ export const taskFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Google/YouTube/ChannelDescription.ts b/packages/nodes-base/nodes/Google/YouTube/ChannelDescription.ts index cdd66087267dcc..e41e23e63868b7 100644 --- a/packages/nodes-base/nodes/Google/YouTube/ChannelDescription.ts +++ b/packages/nodes-base/nodes/Google/YouTube/ChannelDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const channelOperations = [ +export const channelOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -39,9 +39,9 @@ export const channelOperations = [ default: 'getAll', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const channelFields = [ +export const channelFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* channel:getAll */ /* -------------------------------------------------------------------------- */ @@ -583,4 +583,4 @@ export const channelFields = [ }, default: 'data', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Google/YouTube/PlaylistDescription.ts b/packages/nodes-base/nodes/Google/YouTube/PlaylistDescription.ts index 631a58fcd2ee8d..987a83ccc24f69 100644 --- a/packages/nodes-base/nodes/Google/YouTube/PlaylistDescription.ts +++ b/packages/nodes-base/nodes/Google/YouTube/PlaylistDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const playlistOperations = [ +export const playlistOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -44,9 +44,9 @@ export const playlistOperations = [ default: 'getAll', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const playlistFields = [ +export const playlistFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* playlist:create */ /* -------------------------------------------------------------------------- */ @@ -561,4 +561,4 @@ export const playlistFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Google/YouTube/PlaylistItemDescription.ts b/packages/nodes-base/nodes/Google/YouTube/PlaylistItemDescription.ts index 63bf1df2962383..a37381f9f39007 100644 --- a/packages/nodes-base/nodes/Google/YouTube/PlaylistItemDescription.ts +++ b/packages/nodes-base/nodes/Google/YouTube/PlaylistItemDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const playlistItemOperations = [ +export const playlistItemOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -39,9 +39,9 @@ export const playlistItemOperations = [ default: 'add', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const playlistItemFields = [ +export const playlistItemFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* playlistItem:add */ /* -------------------------------------------------------------------------- */ @@ -401,4 +401,4 @@ export const playlistItemFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Google/YouTube/VideoCategoryDescription.ts b/packages/nodes-base/nodes/Google/YouTube/VideoCategoryDescription.ts index e4b91b73ad7ba6..42af674ff33031 100644 --- a/packages/nodes-base/nodes/Google/YouTube/VideoCategoryDescription.ts +++ b/packages/nodes-base/nodes/Google/YouTube/VideoCategoryDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const videoCategoryOperations = [ +export const videoCategoryOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -25,9 +25,9 @@ export const videoCategoryOperations = [ default: 'getAll', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const videoCategoryFields = [ +export const videoCategoryFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* videoCategory:getAll */ /* -------------------------------------------------------------------------- */ @@ -92,4 +92,4 @@ export const videoCategoryFields = [ default: 25, description: 'How many results to return.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Google/YouTube/VideoDescription.ts b/packages/nodes-base/nodes/Google/YouTube/VideoDescription.ts index cdef7e90fa2f32..3df9d6dc4e4906 100644 --- a/packages/nodes-base/nodes/Google/YouTube/VideoDescription.ts +++ b/packages/nodes-base/nodes/Google/YouTube/VideoDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const videoOperations = [ +export const videoOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -49,9 +49,9 @@ export const videoOperations = [ default: 'getAll', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const videoFields = [ +export const videoFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* video:upload */ /* -------------------------------------------------------------------------- */ @@ -872,4 +872,4 @@ export const videoFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Harvest/ClientDescription.ts b/packages/nodes-base/nodes/Harvest/ClientDescription.ts index fef5a88f934008..bc12cf48663d3b 100644 --- a/packages/nodes-base/nodes/Harvest/ClientDescription.ts +++ b/packages/nodes-base/nodes/Harvest/ClientDescription.ts @@ -6,7 +6,7 @@ const resource = [ 'client', ]; -export const clientOperations = [ +export const clientOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -48,9 +48,9 @@ export const clientOperations = [ description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const clientFields = [ +export const clientFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* client:getAll */ @@ -288,4 +288,4 @@ export const clientFields = [ ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Harvest/CompanyDescription.ts b/packages/nodes-base/nodes/Harvest/CompanyDescription.ts index 64948b0a15a645..3fa320eee7571d 100644 --- a/packages/nodes-base/nodes/Harvest/CompanyDescription.ts +++ b/packages/nodes-base/nodes/Harvest/CompanyDescription.ts @@ -6,7 +6,7 @@ const resource = [ 'company', ]; -export const companyOperations = [ +export const companyOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -27,4 +27,4 @@ export const companyOperations = [ description: 'The operation to perform.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Harvest/ContactDescription.ts b/packages/nodes-base/nodes/Harvest/ContactDescription.ts index ac386072569d02..e968da1e71ed9e 100644 --- a/packages/nodes-base/nodes/Harvest/ContactDescription.ts +++ b/packages/nodes-base/nodes/Harvest/ContactDescription.ts @@ -6,7 +6,7 @@ const resource = [ 'contact', ]; -export const contactOperations = [ +export const contactOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -47,9 +47,9 @@ export const contactOperations = [ description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const contactFields = [ +export const contactFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* contact:getAll */ @@ -353,4 +353,4 @@ export const contactFields = [ ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Harvest/EstimateDescription.ts b/packages/nodes-base/nodes/Harvest/EstimateDescription.ts index dbf918ba1c7d2a..d4c22e2bcb9cdd 100644 --- a/packages/nodes-base/nodes/Harvest/EstimateDescription.ts +++ b/packages/nodes-base/nodes/Harvest/EstimateDescription.ts @@ -6,7 +6,7 @@ const resource = [ 'estimate', ]; -export const estimateOperations = [ +export const estimateOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -47,9 +47,9 @@ export const estimateOperations = [ description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const estimateFields = [ +export const estimateFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* estimate:getAll */ @@ -402,4 +402,4 @@ export const estimateFields = [ ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Harvest/ExpenseDescription.ts b/packages/nodes-base/nodes/Harvest/ExpenseDescription.ts index 024fa25059fd36..784d9913f6f665 100644 --- a/packages/nodes-base/nodes/Harvest/ExpenseDescription.ts +++ b/packages/nodes-base/nodes/Harvest/ExpenseDescription.ts @@ -6,7 +6,7 @@ const resource = [ 'expense', ]; -export const expenseOperations = [ +export const expenseOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -47,9 +47,9 @@ export const expenseOperations = [ description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const expenseFields = [ +export const expenseFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* expense:getAll */ @@ -406,4 +406,4 @@ export const expenseFields = [ ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Harvest/InvoiceDescription.ts b/packages/nodes-base/nodes/Harvest/InvoiceDescription.ts index 263636b08d1042..9a3ed00c497619 100644 --- a/packages/nodes-base/nodes/Harvest/InvoiceDescription.ts +++ b/packages/nodes-base/nodes/Harvest/InvoiceDescription.ts @@ -6,7 +6,7 @@ const resource = [ 'invoice', ]; -export const invoiceOperations = [ +export const invoiceOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -47,9 +47,9 @@ export const invoiceOperations = [ description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const invoiceFields = [ +export const invoiceFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* invoice:getAll */ @@ -483,4 +483,4 @@ export const invoiceFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Harvest/ProjectDescription.ts b/packages/nodes-base/nodes/Harvest/ProjectDescription.ts index 067d94f1110ca0..d8e2949788b0b7 100644 --- a/packages/nodes-base/nodes/Harvest/ProjectDescription.ts +++ b/packages/nodes-base/nodes/Harvest/ProjectDescription.ts @@ -6,7 +6,7 @@ const resource = [ 'project', ]; -export const projectOperations = [ +export const projectOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -47,9 +47,9 @@ export const projectOperations = [ description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const projectFields = [ +export const projectFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* projects:getAll */ @@ -590,4 +590,4 @@ export const projectFields = [ ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Harvest/TaskDescription.ts b/packages/nodes-base/nodes/Harvest/TaskDescription.ts index c5b89773b1e26a..00d059ef3dbb7d 100644 --- a/packages/nodes-base/nodes/Harvest/TaskDescription.ts +++ b/packages/nodes-base/nodes/Harvest/TaskDescription.ts @@ -6,7 +6,7 @@ const resource = [ 'task', ]; -export const taskOperations = [ +export const taskOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -47,9 +47,9 @@ export const taskOperations = [ description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const taskFields = [ +export const taskFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* task:getAll */ @@ -312,4 +312,4 @@ export const taskFields = [ }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Harvest/TimeEntryDescription.ts b/packages/nodes-base/nodes/Harvest/TimeEntryDescription.ts index 58ed292ace09b7..c93ac5c9f450d4 100644 --- a/packages/nodes-base/nodes/Harvest/TimeEntryDescription.ts +++ b/packages/nodes-base/nodes/Harvest/TimeEntryDescription.ts @@ -6,7 +6,7 @@ export const resource = [ 'timeEntry', ]; -export const timeEntryOperations = [ +export const timeEntryOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -66,9 +66,9 @@ export const timeEntryOperations = [ default: 'getAll', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const timeEntryFields = [ +export const timeEntryFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* timeEntry:getAll */ /* -------------------------------------------------------------------------- */ @@ -551,4 +551,4 @@ export const timeEntryFields = [ -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Harvest/UserDescription.ts b/packages/nodes-base/nodes/Harvest/UserDescription.ts index d3e2640cf514e0..7a54a58d595a74 100644 --- a/packages/nodes-base/nodes/Harvest/UserDescription.ts +++ b/packages/nodes-base/nodes/Harvest/UserDescription.ts @@ -6,7 +6,7 @@ const resource = [ 'user', ]; -export const userOperations = [ +export const userOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -53,9 +53,9 @@ export const userOperations = [ description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const userFields = [ +export const userFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* user:getAll */ @@ -501,4 +501,4 @@ export const userFields = [ ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/HelpScout/ConversationDescription.ts b/packages/nodes-base/nodes/HelpScout/ConversationDescription.ts index 154c2ae0f55ca1..d29d2a85a2066d 100644 --- a/packages/nodes-base/nodes/HelpScout/ConversationDescription.ts +++ b/packages/nodes-base/nodes/HelpScout/ConversationDescription.ts @@ -1,6 +1,6 @@ import { INodeProperties } from 'n8n-workflow'; -export const conversationOperations = [ +export const conversationOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -37,9 +37,9 @@ export const conversationOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const conversationFields = [ +export const conversationFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* conversation:create */ /* -------------------------------------------------------------------------- */ @@ -635,4 +635,4 @@ export const conversationFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/HelpScout/CustomerDescription.ts b/packages/nodes-base/nodes/HelpScout/CustomerDescription.ts index 52f8e6299f70b9..dd2afd369c2288 100644 --- a/packages/nodes-base/nodes/HelpScout/CustomerDescription.ts +++ b/packages/nodes-base/nodes/HelpScout/CustomerDescription.ts @@ -1,6 +1,6 @@ import { INodeProperties } from 'n8n-workflow'; -export const customerOperations = [ +export const customerOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -42,9 +42,9 @@ export const customerOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const customerFields = [ +export const customerFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* customer:create */ /* -------------------------------------------------------------------------- */ @@ -848,4 +848,4 @@ export const customerFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/HelpScout/MailboxDescription.ts b/packages/nodes-base/nodes/HelpScout/MailboxDescription.ts index d9aff611007128..915cb8320b32b3 100644 --- a/packages/nodes-base/nodes/HelpScout/MailboxDescription.ts +++ b/packages/nodes-base/nodes/HelpScout/MailboxDescription.ts @@ -1,6 +1,6 @@ import { INodeProperties } from 'n8n-workflow'; -export const mailboxOperations = [ +export const mailboxOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -27,9 +27,9 @@ export const mailboxOperations = [ default: 'get', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const mailboxFields = [ +export const mailboxFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* mailbox:get */ @@ -94,4 +94,4 @@ export const mailboxFields = [ default: 50, description: 'How many results to return.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/HelpScout/ThreadDescription.ts b/packages/nodes-base/nodes/HelpScout/ThreadDescription.ts index 6a16656980e1f7..95dfedfa55fa30 100644 --- a/packages/nodes-base/nodes/HelpScout/ThreadDescription.ts +++ b/packages/nodes-base/nodes/HelpScout/ThreadDescription.ts @@ -1,6 +1,6 @@ import { INodeProperties } from 'n8n-workflow'; -export const threadOperations = [ +export const threadOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -27,9 +27,9 @@ export const threadOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const threadFields = [ +export const threadFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* thread:create */ /* -------------------------------------------------------------------------- */ @@ -294,4 +294,4 @@ export const threadFields = [ default: 50, description: 'How many results to return.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/HomeAssistant/CameraProxyDescription.ts b/packages/nodes-base/nodes/HomeAssistant/CameraProxyDescription.ts index bd7f2b68529d85..6ff8c3d9660765 100644 --- a/packages/nodes-base/nodes/HomeAssistant/CameraProxyDescription.ts +++ b/packages/nodes-base/nodes/HomeAssistant/CameraProxyDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties } from 'n8n-workflow'; -export const cameraProxyOperations = [ +export const cameraProxyOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -24,9 +24,9 @@ export const cameraProxyOperations = [ default: 'getScreenshot', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const cameraProxyFields = [ +export const cameraProxyFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* cameraProxy:getScreenshot */ /* -------------------------------------------------------------------------- */ @@ -66,4 +66,4 @@ export const cameraProxyFields = [ }, description: 'Name of the binary property to which to write the data of the read file.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/HomeAssistant/ConfigDescription.ts b/packages/nodes-base/nodes/HomeAssistant/ConfigDescription.ts index 1606ab4df56614..0cdda8372092f8 100644 --- a/packages/nodes-base/nodes/HomeAssistant/ConfigDescription.ts +++ b/packages/nodes-base/nodes/HomeAssistant/ConfigDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties } from 'n8n-workflow'; -export const configOperations = [ +export const configOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -29,4 +29,4 @@ export const configOperations = [ default: 'get', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/HomeAssistant/EventDescription.ts b/packages/nodes-base/nodes/HomeAssistant/EventDescription.ts index 6aa1ae1246b533..d143edc125241d 100644 --- a/packages/nodes-base/nodes/HomeAssistant/EventDescription.ts +++ b/packages/nodes-base/nodes/HomeAssistant/EventDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties } from 'n8n-workflow'; -export const eventOperations = [ +export const eventOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -29,9 +29,9 @@ export const eventOperations = [ default: 'getAll', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const eventFields = [ +export const eventFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* event:getAll */ @@ -141,4 +141,4 @@ export const eventFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/HomeAssistant/HistoryDescription.ts b/packages/nodes-base/nodes/HomeAssistant/HistoryDescription.ts index 53b466d6e4ca49..0f58ab40563fa5 100644 --- a/packages/nodes-base/nodes/HomeAssistant/HistoryDescription.ts +++ b/packages/nodes-base/nodes/HomeAssistant/HistoryDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties } from 'n8n-workflow'; -export const historyOperations = [ +export const historyOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -24,9 +24,9 @@ export const historyOperations = [ default: 'getAll', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const historyFields = [ +export const historyFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* history:getLogbookEntries */ /* -------------------------------------------------------------------------- */ @@ -125,4 +125,4 @@ export const historyFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/HomeAssistant/LogDescription.ts b/packages/nodes-base/nodes/HomeAssistant/LogDescription.ts index ba1d5c651f43f2..ca9c31a0f89f45 100644 --- a/packages/nodes-base/nodes/HomeAssistant/LogDescription.ts +++ b/packages/nodes-base/nodes/HomeAssistant/LogDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties } from 'n8n-workflow'; -export const logOperations = [ +export const logOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -29,9 +29,9 @@ export const logOperations = [ default: 'getErroLogs', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const logFields = [ +export const logFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* log:getLogbookEntries */ /* -------------------------------------------------------------------------- */ @@ -75,4 +75,4 @@ export const logFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/HomeAssistant/ServiceDescription.ts b/packages/nodes-base/nodes/HomeAssistant/ServiceDescription.ts index d278d472272181..a6cde1a24d56e3 100644 --- a/packages/nodes-base/nodes/HomeAssistant/ServiceDescription.ts +++ b/packages/nodes-base/nodes/HomeAssistant/ServiceDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties } from 'n8n-workflow'; -export const serviceOperations = [ +export const serviceOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -29,9 +29,9 @@ export const serviceOperations = [ default: 'getAll', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const serviceFields = [ +export const serviceFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* service:getAll */ /* -------------------------------------------------------------------------- */ @@ -156,4 +156,4 @@ export const serviceFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/HomeAssistant/StateDescription.ts b/packages/nodes-base/nodes/HomeAssistant/StateDescription.ts index aa356f1c7a22c3..ba0dd384cca5f7 100644 --- a/packages/nodes-base/nodes/HomeAssistant/StateDescription.ts +++ b/packages/nodes-base/nodes/HomeAssistant/StateDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties } from 'n8n-workflow'; -export const stateOperations = [ +export const stateOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -34,9 +34,9 @@ export const stateOperations = [ default: 'get', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const stateFields = [ +export const stateFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* state:get */ /* -------------------------------------------------------------------------- */ @@ -184,4 +184,4 @@ export const stateFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/HomeAssistant/TemplateDescription.ts b/packages/nodes-base/nodes/HomeAssistant/TemplateDescription.ts index 6a5685e260d5ae..42503defa2c377 100644 --- a/packages/nodes-base/nodes/HomeAssistant/TemplateDescription.ts +++ b/packages/nodes-base/nodes/HomeAssistant/TemplateDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties } from 'n8n-workflow'; -export const templateOperations = [ +export const templateOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -24,9 +24,9 @@ export const templateOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const templateFields = [ +export const templateFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* template:create */ @@ -49,4 +49,4 @@ export const templateFields = [ default: '', description: 'Render a Home Assistant template. See template docs for more information.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Hubspot/CompanyDescription.ts b/packages/nodes-base/nodes/Hubspot/CompanyDescription.ts index 053457f0bc31f1..ae051da8730c4f 100644 --- a/packages/nodes-base/nodes/Hubspot/CompanyDescription.ts +++ b/packages/nodes-base/nodes/Hubspot/CompanyDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const companyOperations = [ +export const companyOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -59,9 +59,9 @@ export const companyOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const companyFields = [ +export const companyFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* company:create */ @@ -1100,4 +1100,4 @@ export const companyFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Hubspot/ContactDescription.ts b/packages/nodes-base/nodes/Hubspot/ContactDescription.ts index e6dc54e7e2fdc2..b0635ca889c210 100644 --- a/packages/nodes-base/nodes/Hubspot/ContactDescription.ts +++ b/packages/nodes-base/nodes/Hubspot/ContactDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const contactOperations = [ +export const contactOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -49,9 +49,9 @@ export const contactOperations = [ default: 'upsert', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const contactFields = [ +export const contactFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* contact:upsert */ @@ -1098,4 +1098,4 @@ export const contactFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Hubspot/ContactListDescription.ts b/packages/nodes-base/nodes/Hubspot/ContactListDescription.ts index f0746e94fcc5e2..5d493009d4763f 100644 --- a/packages/nodes-base/nodes/Hubspot/ContactListDescription.ts +++ b/packages/nodes-base/nodes/Hubspot/ContactListDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const contactListOperations = [ +export const contactListOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -29,9 +29,9 @@ export const contactListOperations = [ default: 'add', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const contactListFields = [ +export const contactListFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* contactList:add */ @@ -158,4 +158,4 @@ export const contactListFields = [ }, default: '', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Hubspot/DealDescription.ts b/packages/nodes-base/nodes/Hubspot/DealDescription.ts index 93ad4c311c97ce..41248ff01c6ffe 100644 --- a/packages/nodes-base/nodes/Hubspot/DealDescription.ts +++ b/packages/nodes-base/nodes/Hubspot/DealDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const dealOperations = [ +export const dealOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -59,9 +59,9 @@ export const dealOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const dealFields = [ +export const dealFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* deal:create */ @@ -797,4 +797,4 @@ export const dealFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Hubspot/FormDescription.ts b/packages/nodes-base/nodes/Hubspot/FormDescription.ts index 1ef8d23717b037..8f5af57407a512 100644 --- a/packages/nodes-base/nodes/Hubspot/FormDescription.ts +++ b/packages/nodes-base/nodes/Hubspot/FormDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const formOperations = [ +export const formOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -29,9 +29,9 @@ export const formOperations = [ default: 'getFields', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const formFields = [ +export const formFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* form:submit */ @@ -323,4 +323,4 @@ export const formFields = [ default: '', description: 'The ID of the form', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Hubspot/TicketDescription.ts b/packages/nodes-base/nodes/Hubspot/TicketDescription.ts index 2fa3dbae4c08b8..b8448f4423ef27 100644 --- a/packages/nodes-base/nodes/Hubspot/TicketDescription.ts +++ b/packages/nodes-base/nodes/Hubspot/TicketDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const ticketOperations = [ +export const ticketOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -44,9 +44,9 @@ export const ticketOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const ticketFields = [ +export const ticketFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* ticket:create */ @@ -545,4 +545,4 @@ export const ticketFields = [ default: '', description: 'Unique identifier for a particular ticket', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/HumanticAI/ProfileDescription.ts b/packages/nodes-base/nodes/HumanticAI/ProfileDescription.ts index bfe42e854b6468..8da1fa129d8b10 100644 --- a/packages/nodes-base/nodes/HumanticAI/ProfileDescription.ts +++ b/packages/nodes-base/nodes/HumanticAI/ProfileDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const profileOperations = [ +export const profileOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -34,9 +34,9 @@ export const profileOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const profileFields = [ +export const profileFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* profile:create */ /* -------------------------------------------------------------------------- */ @@ -234,4 +234,4 @@ export const profileFields = [ }, description: `The resume in PDF or DOCX format.`, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Intercom/CompanyDescription.ts b/packages/nodes-base/nodes/Intercom/CompanyDescription.ts index 2db69e1fcf8066..0a79b6c39b05f3 100644 --- a/packages/nodes-base/nodes/Intercom/CompanyDescription.ts +++ b/packages/nodes-base/nodes/Intercom/CompanyDescription.ts @@ -1,6 +1,6 @@ import { INodeProperties } from 'n8n-workflow'; -export const companyOperations = [ +export const companyOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -42,9 +42,9 @@ export const companyOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const companyFields = [ +export const companyFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* company:users */ @@ -446,4 +446,4 @@ export const companyFields = [ ], description: 'A hash of key/value pairs to represent custom data you want to attribute to a user.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Intercom/LeadDescription.ts b/packages/nodes-base/nodes/Intercom/LeadDescription.ts index 11d1a7bdb4ae96..f80e08fe6de102 100644 --- a/packages/nodes-base/nodes/Intercom/LeadDescription.ts +++ b/packages/nodes-base/nodes/Intercom/LeadDescription.ts @@ -1,6 +1,6 @@ import { INodeProperties } from 'n8n-workflow'; -export const leadOpeations = [ +export const leadOpeations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -42,9 +42,9 @@ export const leadOpeations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const leadFields = [ +export const leadFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* lead:delete */ @@ -82,6 +82,7 @@ export const leadFields = [ displayName: 'Value', name: 'value', type: 'string', + default: '', required: true, displayOptions: { show: { @@ -513,4 +514,4 @@ export const leadFields = [ ], description: 'A hash of key/value pairs to represent custom data you want to attribute to a user.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Intercom/UserDescription.ts b/packages/nodes-base/nodes/Intercom/UserDescription.ts index d6c2fd68a9a4d0..45b3ab5773510e 100644 --- a/packages/nodes-base/nodes/Intercom/UserDescription.ts +++ b/packages/nodes-base/nodes/Intercom/UserDescription.ts @@ -1,6 +1,6 @@ import { INodeProperties } from 'n8n-workflow'; -export const userOpeations = [ +export const userOpeations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -42,9 +42,9 @@ export const userOpeations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const userFields = [ +export const userFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* user:delete */ @@ -566,4 +566,4 @@ export const userFields = [ ], description: 'A hash of key/value pairs to represent custom data you want to attribute to a user.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/InvoiceNinja/ClientDescription.ts b/packages/nodes-base/nodes/InvoiceNinja/ClientDescription.ts index 9041916adca9e5..5d7ca55a04ca40 100644 --- a/packages/nodes-base/nodes/InvoiceNinja/ClientDescription.ts +++ b/packages/nodes-base/nodes/InvoiceNinja/ClientDescription.ts @@ -1,6 +1,6 @@ import { INodeProperties } from 'n8n-workflow'; -export const clientOperations = [ +export const clientOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -37,9 +37,9 @@ export const clientOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const clientFields = [ +export const clientFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* client:create */ /* -------------------------------------------------------------------------- */ @@ -294,6 +294,7 @@ export const clientFields = [ displayName: 'Client ID', name: 'clientId', type: 'string', + default: '', required: true, displayOptions: { show: { @@ -313,6 +314,7 @@ export const clientFields = [ displayName: 'Client ID', name: 'clientId', type: 'string', + default: '', required: true, displayOptions: { show: { @@ -431,4 +433,4 @@ export const clientFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/InvoiceNinja/ExpenseDescription.ts b/packages/nodes-base/nodes/InvoiceNinja/ExpenseDescription.ts index e5e6ca81b8d727..4f9d3248bbe4f5 100644 --- a/packages/nodes-base/nodes/InvoiceNinja/ExpenseDescription.ts +++ b/packages/nodes-base/nodes/InvoiceNinja/ExpenseDescription.ts @@ -1,6 +1,6 @@ import { INodeProperties } from 'n8n-workflow'; -export const expenseOperations = [ +export const expenseOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -37,9 +37,9 @@ export const expenseOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const expenseFields = [ +export const expenseFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* expense:create */ /* -------------------------------------------------------------------------- */ @@ -324,6 +324,7 @@ export const expenseFields = [ displayName: 'Expense ID', name: 'expenseId', type: 'string', + default: '', required: true, displayOptions: { show: { @@ -343,6 +344,7 @@ export const expenseFields = [ displayName: 'Expense ID', name: 'expenseId', type: 'string', + default: '', required: true, displayOptions: { show: { @@ -399,4 +401,4 @@ export const expenseFields = [ default: 50, description: 'How many results to return.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/InvoiceNinja/InvoiceDescription.ts b/packages/nodes-base/nodes/InvoiceNinja/InvoiceDescription.ts index 382b55b2317c8a..27d6e9d44440e4 100644 --- a/packages/nodes-base/nodes/InvoiceNinja/InvoiceDescription.ts +++ b/packages/nodes-base/nodes/InvoiceNinja/InvoiceDescription.ts @@ -1,6 +1,6 @@ import { INodeProperties } from 'n8n-workflow'; -export const invoiceOperations = [ +export const invoiceOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -42,9 +42,9 @@ export const invoiceOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const invoiceFields = [ +export const invoiceFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* invoice:create */ /* -------------------------------------------------------------------------- */ @@ -316,6 +316,7 @@ export const invoiceFields = [ displayName: 'Invoice ID', name: 'invoiceId', type: 'string', + default: '', required: true, displayOptions: { show: { @@ -335,6 +336,7 @@ export const invoiceFields = [ displayName: 'Invoice ID', name: 'invoiceId', type: 'string', + default: '', required: true, displayOptions: { show: { @@ -354,6 +356,7 @@ export const invoiceFields = [ displayName: 'Invoice ID', name: 'invoiceId', type: 'string', + default: '', required: true, displayOptions: { show: { @@ -478,4 +481,4 @@ export const invoiceFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/InvoiceNinja/PaymentDescription.ts b/packages/nodes-base/nodes/InvoiceNinja/PaymentDescription.ts index c0dfb4f7936093..13bad32b5fa0e4 100644 --- a/packages/nodes-base/nodes/InvoiceNinja/PaymentDescription.ts +++ b/packages/nodes-base/nodes/InvoiceNinja/PaymentDescription.ts @@ -1,6 +1,6 @@ import { INodeProperties } from 'n8n-workflow'; -export const paymentOperations = [ +export const paymentOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -37,9 +37,9 @@ export const paymentOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const paymentFields = [ +export const paymentFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* payment:create */ /* -------------------------------------------------------------------------- */ @@ -267,6 +267,7 @@ export const paymentFields = [ displayName: 'Payment ID', name: 'paymentId', type: 'string', + default: '', required: true, displayOptions: { show: { @@ -286,6 +287,7 @@ export const paymentFields = [ displayName: 'Payment ID', name: 'paymentId', type: 'string', + default: '', required: true, displayOptions: { show: { @@ -405,4 +407,4 @@ export const paymentFields = [ ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/InvoiceNinja/QuoteDescription.ts b/packages/nodes-base/nodes/InvoiceNinja/QuoteDescription.ts index c1da036843fb64..82a01bf423b70a 100644 --- a/packages/nodes-base/nodes/InvoiceNinja/QuoteDescription.ts +++ b/packages/nodes-base/nodes/InvoiceNinja/QuoteDescription.ts @@ -1,6 +1,6 @@ import { INodeProperties } from 'n8n-workflow'; -export const quoteOperations = [ +export const quoteOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -42,9 +42,9 @@ export const quoteOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const quoteFields = [ +export const quoteFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* quote:create */ /* -------------------------------------------------------------------------- */ @@ -316,6 +316,7 @@ export const quoteFields = [ displayName: 'Quote ID', name: 'quoteId', type: 'string', + default: '', required: true, displayOptions: { show: { @@ -335,6 +336,7 @@ export const quoteFields = [ displayName: 'Quote ID', name: 'quoteId', type: 'string', + default: '', required: true, displayOptions: { show: { @@ -354,6 +356,7 @@ export const quoteFields = [ displayName: 'Quote ID', name: 'quoteId', type: 'string', + default: '', required: true, displayOptions: { show: { @@ -478,4 +481,4 @@ export const quoteFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/InvoiceNinja/TaskDescription.ts b/packages/nodes-base/nodes/InvoiceNinja/TaskDescription.ts index 82ebd8e8ac6b7b..cb34f7de5367e3 100644 --- a/packages/nodes-base/nodes/InvoiceNinja/TaskDescription.ts +++ b/packages/nodes-base/nodes/InvoiceNinja/TaskDescription.ts @@ -1,6 +1,6 @@ import { INodeProperties } from 'n8n-workflow'; -export const taskOperations = [ +export const taskOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -37,9 +37,9 @@ export const taskOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const taskFields = [ +export const taskFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* task:create */ /* -------------------------------------------------------------------------- */ @@ -157,6 +157,7 @@ export const taskFields = [ displayName: 'Task ID', name: 'taskId', type: 'string', + default: '', required: true, displayOptions: { show: { @@ -176,6 +177,7 @@ export const taskFields = [ displayName: 'Task ID', name: 'taskId', type: 'string', + default: '', required: true, displayOptions: { show: { @@ -295,4 +297,4 @@ export const taskFields = [ ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Iterable/EventDescription.ts b/packages/nodes-base/nodes/Iterable/EventDescription.ts index bb92165495239c..5bc30efc03c3a9 100644 --- a/packages/nodes-base/nodes/Iterable/EventDescription.ts +++ b/packages/nodes-base/nodes/Iterable/EventDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const eventOperations = [ +export const eventOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -24,9 +24,9 @@ export const eventOperations = [ default: 'track', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const eventFields = [ +export const eventFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* event:track */ @@ -142,4 +142,4 @@ export const eventFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Iterable/UserDescription.ts b/packages/nodes-base/nodes/Iterable/UserDescription.ts index 16e82c127a39ed..deb77b22433a8a 100644 --- a/packages/nodes-base/nodes/Iterable/UserDescription.ts +++ b/packages/nodes-base/nodes/Iterable/UserDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const userOperations = [ +export const userOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -34,9 +34,9 @@ export const userOperations = [ default: 'upsert', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const userFields = [ +export const userFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* user:upsert */ @@ -313,4 +313,4 @@ export const userFields = [ default: '', description: 'Email for a particular user', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Iterable/UserListDescription.ts b/packages/nodes-base/nodes/Iterable/UserListDescription.ts index cb8e0f6dfb8e0a..be3068fecd190c 100644 --- a/packages/nodes-base/nodes/Iterable/UserListDescription.ts +++ b/packages/nodes-base/nodes/Iterable/UserListDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const userListOperations = [ +export const userListOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -29,9 +29,9 @@ export const userListOperations = [ default: 'add', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const userListFields = [ +export const userListFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* userList:add */ @@ -205,4 +205,4 @@ export const userListFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Jira/IssueAttachmentDescription.ts b/packages/nodes-base/nodes/Jira/IssueAttachmentDescription.ts index 39ad30a1a40fd2..cee1ba02ffc332 100644 --- a/packages/nodes-base/nodes/Jira/IssueAttachmentDescription.ts +++ b/packages/nodes-base/nodes/Jira/IssueAttachmentDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const issueAttachmentOperations = [ +export const issueAttachmentOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -39,9 +39,9 @@ export const issueAttachmentOperations = [ default: 'add', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const issueAttachmentFields = [ +export const issueAttachmentFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* issueAttachment:add */ @@ -263,4 +263,4 @@ export const issueAttachmentFields = [ default: '', description: 'The ID of the attachment.', }, -] as INodeProperties[]; \ No newline at end of file +]; \ No newline at end of file diff --git a/packages/nodes-base/nodes/Jira/IssueCommentDescription.ts b/packages/nodes-base/nodes/Jira/IssueCommentDescription.ts index bfb66303da1b41..d648bf1c28429e 100644 --- a/packages/nodes-base/nodes/Jira/IssueCommentDescription.ts +++ b/packages/nodes-base/nodes/Jira/IssueCommentDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const issueCommentOperations = [ +export const issueCommentOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -44,9 +44,9 @@ export const issueCommentOperations = [ default: 'add', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const issueCommentFields = [ +export const issueCommentFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* issueComment:add */ @@ -89,6 +89,7 @@ export const issueCommentFields = [ displayName: 'Comment', name: 'comment', type: 'string', + default: '', displayOptions: { show: { resource: [ @@ -108,6 +109,7 @@ export const issueCommentFields = [ displayName: 'Document Format (JSON)', name: 'commentJson', type: 'json', + default: '', displayOptions: { show: { resource: [ @@ -181,6 +183,7 @@ export const issueCommentFields = [ displayName: 'Comment ID', name: 'commentId', type: 'string', + default: '', required: true, displayOptions: { show: { @@ -347,6 +350,7 @@ export const issueCommentFields = [ displayName: 'Comment ID', name: 'commentId', type: 'string', + default: '', required: true, displayOptions: { show: { @@ -386,6 +390,7 @@ export const issueCommentFields = [ displayName: 'Comment ID', name: 'commentId', type: 'string', + default: '', required: true, displayOptions: { show: { @@ -419,6 +424,7 @@ export const issueCommentFields = [ displayName: 'Comment', name: 'comment', type: 'string', + default: '', displayOptions: { show: { resource: [ @@ -438,6 +444,7 @@ export const issueCommentFields = [ displayName: 'Document Format (JSON)', name: 'commentJson', type: 'json', + default: '', displayOptions: { show: { resource: [ @@ -485,4 +492,4 @@ export const issueCommentFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Jira/IssueDescription.ts b/packages/nodes-base/nodes/Jira/IssueDescription.ts index 9d2de0f1c5dc25..ceb925c2d51838 100644 --- a/packages/nodes-base/nodes/Jira/IssueDescription.ts +++ b/packages/nodes-base/nodes/Jira/IssueDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const issueOperations = [ +export const issueOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -59,9 +59,9 @@ export const issueOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const issueFields = [ +export const issueFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* issue:create */ @@ -70,6 +70,7 @@ export const issueFields = [ displayName: 'Project', name: 'project', type: 'options', + default: '', required: true, displayOptions: { show: { @@ -93,6 +94,7 @@ export const issueFields = [ displayName: 'Issue Type', name: 'issueType', type: 'options', + default: '', required: true, displayOptions: { show: { @@ -1121,4 +1123,4 @@ export const issueFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Jira/UserDescription.ts b/packages/nodes-base/nodes/Jira/UserDescription.ts index 11cb886535bbc6..e788e37b5de8a0 100644 --- a/packages/nodes-base/nodes/Jira/UserDescription.ts +++ b/packages/nodes-base/nodes/Jira/UserDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const userOperations = [ +export const userOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -34,9 +34,9 @@ export const userOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const userFields = [ +export const userFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* user:create */ @@ -45,6 +45,7 @@ export const userFields = [ displayName: 'Username', name: 'username', type: 'string', + default: '', required: true, displayOptions: { show: { @@ -61,6 +62,7 @@ export const userFields = [ displayName: 'Email Address', name: 'emailAddress', type: 'string', + default: '', required: true, displayOptions: { show: { @@ -204,4 +206,4 @@ export const userFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Keap/CompanyDescription.ts b/packages/nodes-base/nodes/Keap/CompanyDescription.ts index c4db9d66f24a11..52398290e84201 100644 --- a/packages/nodes-base/nodes/Keap/CompanyDescription.ts +++ b/packages/nodes-base/nodes/Keap/CompanyDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const companyOperations = [ +export const companyOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -29,9 +29,9 @@ export const companyOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const companyFields = [ +export const companyFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* company:create */ @@ -370,4 +370,4 @@ export const companyFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Keap/ContactDescription.ts b/packages/nodes-base/nodes/Keap/ContactDescription.ts index a45eca0d7253a5..4693a942538e50 100644 --- a/packages/nodes-base/nodes/Keap/ContactDescription.ts +++ b/packages/nodes-base/nodes/Keap/ContactDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const contactOperations = [ +export const contactOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -39,9 +39,9 @@ export const contactOperations = [ default: 'upsert', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const contactFields = [ +export const contactFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* contact:upsert */ @@ -755,4 +755,4 @@ export const contactFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Keap/ContactNoteDescription.ts b/packages/nodes-base/nodes/Keap/ContactNoteDescription.ts index 80eb2bf5f2f0e0..8e80f4567186c6 100644 --- a/packages/nodes-base/nodes/Keap/ContactNoteDescription.ts +++ b/packages/nodes-base/nodes/Keap/ContactNoteDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const contactNoteOperations = [ +export const contactNoteOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -44,9 +44,9 @@ export const contactNoteOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const contactNoteFields = [ +export const contactNoteFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* contactNote:create */ @@ -379,4 +379,4 @@ export const contactNoteFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Keap/ContactTagDescription.ts b/packages/nodes-base/nodes/Keap/ContactTagDescription.ts index a212c112ae55d7..c6b6c4d8fa06a6 100644 --- a/packages/nodes-base/nodes/Keap/ContactTagDescription.ts +++ b/packages/nodes-base/nodes/Keap/ContactTagDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const contactTagOperations = [ +export const contactTagOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -34,9 +34,9 @@ export const contactTagOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const contactTagFields = [ +export const contactTagFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* contactTag:create */ @@ -176,4 +176,4 @@ export const contactTagFields = [ default: 100, description: 'How many results to return.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Keap/EcommerceOrderDescripion.ts b/packages/nodes-base/nodes/Keap/EcommerceOrderDescripion.ts index 8bf7b80815ede6..874ce3d7a95ee3 100644 --- a/packages/nodes-base/nodes/Keap/EcommerceOrderDescripion.ts +++ b/packages/nodes-base/nodes/Keap/EcommerceOrderDescripion.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const ecommerceOrderOperations = [ +export const ecommerceOrderOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -39,9 +39,9 @@ export const ecommerceOrderOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const ecommerceOrderFields = [ +export const ecommerceOrderFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* ecommerceOrder:create */ @@ -481,4 +481,4 @@ export const ecommerceOrderFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Keap/EcommerceProductDescription.ts b/packages/nodes-base/nodes/Keap/EcommerceProductDescription.ts index 09ec6ea09ab326..b71fdfe0f082e4 100644 --- a/packages/nodes-base/nodes/Keap/EcommerceProductDescription.ts +++ b/packages/nodes-base/nodes/Keap/EcommerceProductDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const ecommerceProductOperations = [ +export const ecommerceProductOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -39,9 +39,9 @@ export const ecommerceProductOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const ecommerceProductFields = [ +export const ecommerceProductFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* ecommerceProduct:create */ @@ -233,4 +233,4 @@ export const ecommerceProductFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Keap/EmailDescription.ts b/packages/nodes-base/nodes/Keap/EmailDescription.ts index c91793e08cd5da..661ebcefd6b438 100644 --- a/packages/nodes-base/nodes/Keap/EmailDescription.ts +++ b/packages/nodes-base/nodes/Keap/EmailDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const emailOperations = [ +export const emailOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -34,9 +34,9 @@ export const emailOperations = [ default: 'createRecord', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const emailFields = [ +export const emailFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* email:createRecord */ @@ -459,4 +459,4 @@ export const emailFields = [ default: '', description: 'Attachments to be sent with each copy of the email, maximum of 10 with size of 1MB each', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Keap/FileDescription.ts b/packages/nodes-base/nodes/Keap/FileDescription.ts index 7038c998501866..ad3cc19ab67167 100644 --- a/packages/nodes-base/nodes/Keap/FileDescription.ts +++ b/packages/nodes-base/nodes/Keap/FileDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const fileOperations = [ +export const fileOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -34,9 +34,9 @@ export const fileOperations = [ default: 'delete', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const fileFields = [ +export const fileFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* file:upload */ /* -------------------------------------------------------------------------- */ @@ -401,4 +401,4 @@ export const fileFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Kitemaker/descriptions/OrganizationDescription.ts b/packages/nodes-base/nodes/Kitemaker/descriptions/OrganizationDescription.ts index ee478b044ffe1a..37120ee8e5b480 100644 --- a/packages/nodes-base/nodes/Kitemaker/descriptions/OrganizationDescription.ts +++ b/packages/nodes-base/nodes/Kitemaker/descriptions/OrganizationDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const organizationOperations = [ +export const organizationOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -24,4 +24,4 @@ export const organizationOperations = [ }, }, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Kitemaker/descriptions/SpaceDescription.ts b/packages/nodes-base/nodes/Kitemaker/descriptions/SpaceDescription.ts index c6afdae4d42408..a8067d9a9cab22 100644 --- a/packages/nodes-base/nodes/Kitemaker/descriptions/SpaceDescription.ts +++ b/packages/nodes-base/nodes/Kitemaker/descriptions/SpaceDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const spaceOperations = [ +export const spaceOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -24,9 +24,9 @@ export const spaceOperations = [ }, }, }, -] as INodeProperties[]; +]; -export const spaceFields = [ +export const spaceFields: INodeProperties[] = [ { displayName: 'Return All', name: 'returnAll', @@ -68,4 +68,4 @@ export const spaceFields = [ }, }, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Kitemaker/descriptions/UserDescription.ts b/packages/nodes-base/nodes/Kitemaker/descriptions/UserDescription.ts index 5267f3eb8bdf19..a789f11d6c5b3d 100644 --- a/packages/nodes-base/nodes/Kitemaker/descriptions/UserDescription.ts +++ b/packages/nodes-base/nodes/Kitemaker/descriptions/UserDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const userOperations = [ +export const userOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -24,9 +24,9 @@ export const userOperations = [ }, }, }, -] as INodeProperties[]; +]; -export const userFields = [ +export const userFields: INodeProperties[] = [ { displayName: 'Return All', name: 'returnAll', @@ -68,4 +68,4 @@ export const userFields = [ }, }, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Kitemaker/descriptions/WorkItemDescription.ts b/packages/nodes-base/nodes/Kitemaker/descriptions/WorkItemDescription.ts index 637b279fde2895..8b8aecab1ae3ba 100644 --- a/packages/nodes-base/nodes/Kitemaker/descriptions/WorkItemDescription.ts +++ b/packages/nodes-base/nodes/Kitemaker/descriptions/WorkItemDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const workItemOperations = [ +export const workItemOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -35,9 +35,9 @@ export const workItemOperations = [ }, }, }, -] as INodeProperties[]; +]; -export const workItemFields = [ +export const workItemFields: INodeProperties[] = [ // ---------------------------------- // workItem: create // ---------------------------------- @@ -369,4 +369,4 @@ export const workItemFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Lemlist/descriptions/ActivityDescription.ts b/packages/nodes-base/nodes/Lemlist/descriptions/ActivityDescription.ts index c55086c024b3b3..047a4a362ad0e0 100644 --- a/packages/nodes-base/nodes/Lemlist/descriptions/ActivityDescription.ts +++ b/packages/nodes-base/nodes/Lemlist/descriptions/ActivityDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const activityOperations = [ +export const activityOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -23,9 +23,9 @@ export const activityOperations = [ }, }, }, -] as INodeProperties[]; +]; -export const activityFields = [ +export const activityFields: INodeProperties[] = [ // ---------------------------------- // activity: getAll // ---------------------------------- @@ -137,4 +137,4 @@ export const activityFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Lemlist/descriptions/CampaignDescription.ts b/packages/nodes-base/nodes/Lemlist/descriptions/CampaignDescription.ts index f1702efdcc3f21..b686886b228d4e 100644 --- a/packages/nodes-base/nodes/Lemlist/descriptions/CampaignDescription.ts +++ b/packages/nodes-base/nodes/Lemlist/descriptions/CampaignDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const campaignOperations = [ +export const campaignOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -23,9 +23,9 @@ export const campaignOperations = [ }, }, }, -] as INodeProperties[]; +]; -export const campaignFields = [ +export const campaignFields: INodeProperties[] = [ // ---------------------------------- // campaign: getAll // ---------------------------------- @@ -70,4 +70,4 @@ export const campaignFields = [ }, }, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Lemlist/descriptions/LeadDescription.ts b/packages/nodes-base/nodes/Lemlist/descriptions/LeadDescription.ts index d9cb1e5317f6ad..d6d42339406bc0 100644 --- a/packages/nodes-base/nodes/Lemlist/descriptions/LeadDescription.ts +++ b/packages/nodes-base/nodes/Lemlist/descriptions/LeadDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const leadOperations = [ +export const leadOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -35,9 +35,9 @@ export const leadOperations = [ }, }, }, -] as INodeProperties[]; +]; -export const leadFields = [ +export const leadFields: INodeProperties[] = [ // ---------------------------------- // lead: create // ---------------------------------- @@ -259,4 +259,4 @@ export const leadFields = [ }, }, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Lemlist/descriptions/TeamDescription.ts b/packages/nodes-base/nodes/Lemlist/descriptions/TeamDescription.ts index c09f51a58259e8..166c80f8670688 100644 --- a/packages/nodes-base/nodes/Lemlist/descriptions/TeamDescription.ts +++ b/packages/nodes-base/nodes/Lemlist/descriptions/TeamDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const teamOperations = [ +export const teamOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -23,11 +23,11 @@ export const teamOperations = [ }, }, }, -] as INodeProperties[]; +]; -export const teamFields = [ +export const teamFields: INodeProperties[] = [ // ---------------------------------- // team: get // ---------------------------------- -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Lemlist/descriptions/UnsubscribeDescription.ts b/packages/nodes-base/nodes/Lemlist/descriptions/UnsubscribeDescription.ts index d35ab0e9ce6df8..1bb91207d2b72b 100644 --- a/packages/nodes-base/nodes/Lemlist/descriptions/UnsubscribeDescription.ts +++ b/packages/nodes-base/nodes/Lemlist/descriptions/UnsubscribeDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const unsubscribeOperations = [ +export const unsubscribeOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -31,9 +31,9 @@ export const unsubscribeOperations = [ }, }, }, -] as INodeProperties[]; +]; -export const unsubscribeFields = [ +export const unsubscribeFields: INodeProperties[] = [ // ---------------------------------- // unsubscribe: add // ---------------------------------- @@ -120,4 +120,4 @@ export const unsubscribeFields = [ }, }, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Line/NotificationDescription.ts b/packages/nodes-base/nodes/Line/NotificationDescription.ts index ed55b2f3715c9a..1481641153c9db 100644 --- a/packages/nodes-base/nodes/Line/NotificationDescription.ts +++ b/packages/nodes-base/nodes/Line/NotificationDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const notificationOperations = [ +export const notificationOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -24,9 +24,9 @@ export const notificationOperations = [ default: 'send', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const notificationFields = [ +export const notificationFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* notification:send */ @@ -172,4 +172,4 @@ export const notificationFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/LingvaNex/ActivityDescription.ts b/packages/nodes-base/nodes/LingvaNex/ActivityDescription.ts index fad53ff169f3a9..7ef55dd98efc05 100644 --- a/packages/nodes-base/nodes/LingvaNex/ActivityDescription.ts +++ b/packages/nodes-base/nodes/LingvaNex/ActivityDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const activityOperations = [ +export const activityOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -29,9 +29,9 @@ export const activityOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const activityFields = [ +export const activityFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* activity:create */ @@ -245,4 +245,4 @@ export const activityFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/LinkedIn/PostDescription.ts b/packages/nodes-base/nodes/LinkedIn/PostDescription.ts index 287a59f48f1db5..0cd26572dda3e1 100644 --- a/packages/nodes-base/nodes/LinkedIn/PostDescription.ts +++ b/packages/nodes-base/nodes/LinkedIn/PostDescription.ts @@ -1,6 +1,6 @@ import { INodeProperties } from 'n8n-workflow'; -export const postOperations = [ +export const postOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -22,9 +22,9 @@ export const postOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const postFields = [ +export const postFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* post:create */ /* -------------------------------------------------------------------------- */ @@ -248,4 +248,4 @@ export const postFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Magento/CustomerDescription.ts b/packages/nodes-base/nodes/Magento/CustomerDescription.ts index c3a3af60f827ba..5cb59d9ede9b41 100644 --- a/packages/nodes-base/nodes/Magento/CustomerDescription.ts +++ b/packages/nodes-base/nodes/Magento/CustomerDescription.ts @@ -7,7 +7,7 @@ import { getSearchFilters, } from './GenericFunctions'; -export const customerOperations = [ +export const customerOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -49,9 +49,9 @@ export const customerOperations = [ default: 'create', description: 'The operation to perform', }, -] as INodeProperties[]; +]; -export const customerFields = [ +export const customerFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* customer:create */ @@ -310,4 +310,4 @@ export const customerFields = [ 'getSystemAttributes', 'getSystemAttributes', ), -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Magento/GenericFunctions.ts b/packages/nodes-base/nodes/Magento/GenericFunctions.ts index 7a17be3980971f..cf09bba885f726 100644 --- a/packages/nodes-base/nodes/Magento/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Magento/GenericFunctions.ts @@ -11,6 +11,7 @@ import { import { IDataObject, + INodeProperties, INodePropertyOptions, NodeApiError, } from 'n8n-workflow'; @@ -67,7 +68,7 @@ export async function magentoApiRequestAllItems(this: IHookFunctions | ILoadOpti return returnData; } -export function getAddressesUi() { +export function getAddressesUi(): INodeProperties { return { displayName: 'Addresses', name: 'addresses', @@ -175,14 +176,14 @@ export function getAddressesUi() { name: 'default_billing', type: 'boolean', default: false, - descrition: 'Weather this address is default billing address', + description: 'Weather this address is default billing address', }, { displayName: 'Default Shipping', name: 'default_shipping', type: 'boolean', default: false, - descrition: 'Weather this address is default shipping address', + description: 'Weather this address is default shipping address', }, ], }, @@ -205,7 +206,7 @@ export function adjustAddresses(addresses: [{ street: string, [key: string]: str return _addresses; } -export function getSearchFilters(resource: string, filterableAttributeFunction: string, sortableAttributeFunction: string) { +export function getSearchFilters(resource: string, filterableAttributeFunction: string, sortableAttributeFunction: string): INodeProperties[] { return [ { displayName: 'Filter', @@ -417,7 +418,7 @@ export function getSearchFilters(resource: string, filterableAttributeFunction: ]; } -function getConditionTypeFields() { +function getConditionTypeFields(): INodeProperties { return { displayName: 'Condition Type', name: 'condition_type', @@ -479,7 +480,7 @@ function getConditionTypeFields() { }; } -function getConditions(attributeFunction: string) { +function getConditions(attributeFunction: string): INodeProperties[] { return [ { displayName: 'Field', @@ -552,7 +553,7 @@ export function validateJSON(json: string | undefined): any { // tslint:disable- return result; } -export function getCustomerOptionalFields() { +export function getCustomerOptionalFields(): INodeProperties[] { return [ getAddressesUi(), { @@ -717,7 +718,7 @@ export function getCustomerOptionalFields() { ]; } -export function getProductOptionalFields() { +export function getProductOptionalFields(): INodeProperties[] { return [ { displayName: 'Attribute Set Name/ID', diff --git a/packages/nodes-base/nodes/Magento/InvoiceDescription.ts b/packages/nodes-base/nodes/Magento/InvoiceDescription.ts index a0d4fd3e8bf980..2358bfe4dcbde6 100644 --- a/packages/nodes-base/nodes/Magento/InvoiceDescription.ts +++ b/packages/nodes-base/nodes/Magento/InvoiceDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const invoiceOperations = [ +export const invoiceOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -24,9 +24,9 @@ export const invoiceOperations = [ default: 'create', description: 'The operation to perform', }, -] as INodeProperties[]; +]; -export const invoiceFields = [ +export const invoiceFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* invoice:create */ @@ -48,4 +48,4 @@ export const invoiceFields = [ }, }, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Magento/OrderDescription.ts b/packages/nodes-base/nodes/Magento/OrderDescription.ts index 3e79b5fa8f10f5..b1fe08a1686dbb 100644 --- a/packages/nodes-base/nodes/Magento/OrderDescription.ts +++ b/packages/nodes-base/nodes/Magento/OrderDescription.ts @@ -6,7 +6,7 @@ import { getSearchFilters, } from './GenericFunctions'; -export const orderOperations = [ +export const orderOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -43,9 +43,9 @@ export const orderOperations = [ default: 'cancel', description: 'The operation to perform', }, -] as INodeProperties[]; +]; -export const orderFields = [ +export const orderFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* order:cancel */ @@ -120,4 +120,4 @@ export const orderFields = [ 'getOrderAttributes', ), -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Magento/ProductDescription.ts b/packages/nodes-base/nodes/Magento/ProductDescription.ts index ec8fe09ef80cb6..6d392e0f146505 100644 --- a/packages/nodes-base/nodes/Magento/ProductDescription.ts +++ b/packages/nodes-base/nodes/Magento/ProductDescription.ts @@ -7,7 +7,7 @@ import { getSearchFilters, } from './GenericFunctions'; -export const productOperations = [ +export const productOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -49,9 +49,9 @@ export const productOperations = [ default: 'create', description: 'The operation to perform', }, -] as INodeProperties[]; +]; -export const productFields = [ +export const productFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* product:create */ @@ -241,4 +241,4 @@ export const productFields = [ 'getFilterableProductAttributes', 'getSortableProductAttributes'), -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/MailerLite/SubscriberDescription.ts b/packages/nodes-base/nodes/MailerLite/SubscriberDescription.ts index 0405cf7400e780..fb48d97cbe8108 100644 --- a/packages/nodes-base/nodes/MailerLite/SubscriberDescription.ts +++ b/packages/nodes-base/nodes/MailerLite/SubscriberDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const subscriberOperations = [ +export const subscriberOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -39,9 +39,9 @@ export const subscriberOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const subscriberFields = [ +export const subscriberFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* subscriber:create */ @@ -51,6 +51,7 @@ export const subscriberFields = [ name: 'email', type: 'string', required: true, + default: '', displayOptions: { show: { resource: [ @@ -412,4 +413,4 @@ export const subscriberFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Mailjet/EmailDescription.ts b/packages/nodes-base/nodes/Mailjet/EmailDescription.ts index 56f8982dcbfeed..bd378ca0b9ff2a 100644 --- a/packages/nodes-base/nodes/Mailjet/EmailDescription.ts +++ b/packages/nodes-base/nodes/Mailjet/EmailDescription.ts @@ -1,6 +1,6 @@ import { INodeProperties } from 'n8n-workflow'; -export const emailOperations = [ +export const emailOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -27,9 +27,9 @@ export const emailOperations = [ default: 'send', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const emailFields = [ +export const emailFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* email:send */ @@ -57,6 +57,7 @@ export const emailFields = [ displayName: 'To Email', name: 'toEmail', type: 'string', + default: '', required: true, placeholder: 'info@example.com', description: 'Email address of the recipient. Multiple ones can be separated by comma.', @@ -291,6 +292,7 @@ export const emailFields = [ displayName: 'To Email', name: 'toEmail', type: 'string', + default: '', required: true, placeholder: 'info@example.com', description: 'Email address of the recipient. Multiple ones can be separated by comma.', @@ -443,4 +445,4 @@ export const emailFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Mailjet/SmsDescription.ts b/packages/nodes-base/nodes/Mailjet/SmsDescription.ts index f94e3f08f44403..930b65ee41dcd1 100644 --- a/packages/nodes-base/nodes/Mailjet/SmsDescription.ts +++ b/packages/nodes-base/nodes/Mailjet/SmsDescription.ts @@ -1,6 +1,6 @@ import { INodeProperties } from 'n8n-workflow'; -export const smsOperations = [ +export const smsOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -22,9 +22,9 @@ export const smsOperations = [ default: 'send', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const smsFields = [ +export const smsFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* sms:send */ @@ -85,4 +85,4 @@ export const smsFields = [ }, }, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Matrix/AccountDescription.ts b/packages/nodes-base/nodes/Matrix/AccountDescription.ts index c7283eebd48bca..d6591681291cd9 100644 --- a/packages/nodes-base/nodes/Matrix/AccountDescription.ts +++ b/packages/nodes-base/nodes/Matrix/AccountDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const accountOperations = [ +export const accountOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -24,4 +24,4 @@ export const accountOperations = [ default: 'me', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Matrix/EventDescription.ts b/packages/nodes-base/nodes/Matrix/EventDescription.ts index 81324a32bb701a..d2a34e6ff010ca 100644 --- a/packages/nodes-base/nodes/Matrix/EventDescription.ts +++ b/packages/nodes-base/nodes/Matrix/EventDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const eventOperations = [ +export const eventOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -24,10 +24,10 @@ export const eventOperations = [ default: 'get', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const eventFields = [ +export const eventFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* event:get */ @@ -70,4 +70,4 @@ export const eventFields = [ required: true, description: 'The room related to the event', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Matrix/MediaDescription.ts b/packages/nodes-base/nodes/Matrix/MediaDescription.ts index aa236484d611c2..25f9bad7500ebd 100644 --- a/packages/nodes-base/nodes/Matrix/MediaDescription.ts +++ b/packages/nodes-base/nodes/Matrix/MediaDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const mediaOperations = [ +export const mediaOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -24,9 +24,9 @@ export const mediaOperations = [ default: 'upload', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const mediaFields = [ +export const mediaFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* media:upload */ @@ -100,4 +100,4 @@ export const mediaFields = [ placeholder: 'mxc://matrix.org/uploaded-media-uri', required: true, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Matrix/MessageDescription.ts b/packages/nodes-base/nodes/Matrix/MessageDescription.ts index 498f3a878194c1..3b98e822bd546b 100644 --- a/packages/nodes-base/nodes/Matrix/MessageDescription.ts +++ b/packages/nodes-base/nodes/Matrix/MessageDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const messageOperations = [ +export const messageOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -29,9 +29,9 @@ export const messageOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const messageFields = [ +export const messageFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* message:create */ @@ -145,6 +145,7 @@ export const messageFields = [ { displayName: 'Fallback Text', name: 'fallbackText', + default: '', displayOptions: { show: { resource: [ @@ -262,4 +263,4 @@ export const messageFields = [ }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Matrix/RoomDescription.ts b/packages/nodes-base/nodes/Matrix/RoomDescription.ts index 8f07d4ff01919c..a08821e9c0f296 100644 --- a/packages/nodes-base/nodes/Matrix/RoomDescription.ts +++ b/packages/nodes-base/nodes/Matrix/RoomDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const roomOperations = [ +export const roomOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -44,10 +44,10 @@ export const roomOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const roomFields = [ +export const roomFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* room:create */ /* -------------------------------------------------------------------------- */ @@ -274,4 +274,4 @@ export const roomFields = [ description: 'Reason for kick', placeholder: 'Telling unfunny jokes', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Matrix/RoomMemberDescription.ts b/packages/nodes-base/nodes/Matrix/RoomMemberDescription.ts index a72980e485f9b8..5b596dfe74d24e 100644 --- a/packages/nodes-base/nodes/Matrix/RoomMemberDescription.ts +++ b/packages/nodes-base/nodes/Matrix/RoomMemberDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const roomMemberOperations = [ +export const roomMemberOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -24,10 +24,10 @@ export const roomMemberOperations = [ default: 'getAll', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const roomMemberFields = [ +export const roomMemberFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* roomMember:getAll */ /* -------------------------------------------------------------------------- */ @@ -142,4 +142,4 @@ export const roomMemberFields = [ }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Mattermost/v1/actions/channel/index.ts b/packages/nodes-base/nodes/Mattermost/v1/actions/channel/index.ts index fc47a38e720e03..ba51251feaf364 100644 --- a/packages/nodes-base/nodes/Mattermost/v1/actions/channel/index.ts +++ b/packages/nodes-base/nodes/Mattermost/v1/actions/channel/index.ts @@ -16,7 +16,7 @@ export { }; -export const descriptions = [ +export const descriptions: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -69,4 +69,4 @@ export const descriptions = [ ...restore.description, ...addUser.description, ...statistics.description, -] as INodeProperties[]; \ No newline at end of file +]; \ No newline at end of file diff --git a/packages/nodes-base/nodes/Mattermost/v1/actions/message/index.ts b/packages/nodes-base/nodes/Mattermost/v1/actions/message/index.ts index f6e1e7657e4bca..75222e115a3704 100644 --- a/packages/nodes-base/nodes/Mattermost/v1/actions/message/index.ts +++ b/packages/nodes-base/nodes/Mattermost/v1/actions/message/index.ts @@ -10,7 +10,7 @@ export { postEphemeral, }; -export const descriptions = [ +export const descriptions: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -45,4 +45,4 @@ export const descriptions = [ ...del.description, ...post.description, ...postEphemeral.description, -] as INodeProperties[]; \ No newline at end of file +]; \ No newline at end of file diff --git a/packages/nodes-base/nodes/Mattermost/v1/actions/reaction/index.ts b/packages/nodes-base/nodes/Mattermost/v1/actions/reaction/index.ts index 34a7a2bd146e0d..e163c1c5989428 100644 --- a/packages/nodes-base/nodes/Mattermost/v1/actions/reaction/index.ts +++ b/packages/nodes-base/nodes/Mattermost/v1/actions/reaction/index.ts @@ -11,7 +11,7 @@ export { getAll, }; -export const descriptions = [ +export const descriptions: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -46,4 +46,4 @@ export const descriptions = [ ...create.description, ...del.description, ...getAll.description, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Mattermost/v1/actions/user/index.ts b/packages/nodes-base/nodes/Mattermost/v1/actions/user/index.ts index 346fff3ba0414a..59dfd8be5d0917 100644 --- a/packages/nodes-base/nodes/Mattermost/v1/actions/user/index.ts +++ b/packages/nodes-base/nodes/Mattermost/v1/actions/user/index.ts @@ -17,7 +17,7 @@ export { }; -export const descriptions = [ +export const descriptions: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -70,5 +70,5 @@ export const descriptions = [ ...getByEmail.description, ...getById.description, ...invite.description, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Mautic/CampaignContactDescription.ts b/packages/nodes-base/nodes/Mautic/CampaignContactDescription.ts index 55edfdbc7d2312..6ce9fa2d20cbdb 100644 --- a/packages/nodes-base/nodes/Mautic/CampaignContactDescription.ts +++ b/packages/nodes-base/nodes/Mautic/CampaignContactDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const campaignContactOperations = [ +export const campaignContactOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -29,9 +29,9 @@ export const campaignContactOperations = [ default: 'add', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const campaignContactFields = [ +export const campaignContactFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* campaignContact:add */ @@ -79,4 +79,4 @@ export const campaignContactFields = [ description: 'Campaign ID', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Mautic/CompanyContactDescription.ts b/packages/nodes-base/nodes/Mautic/CompanyContactDescription.ts index bb4f3faecefd16..be69fe84c9c26e 100644 --- a/packages/nodes-base/nodes/Mautic/CompanyContactDescription.ts +++ b/packages/nodes-base/nodes/Mautic/CompanyContactDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const companyContactOperations = [ +export const companyContactOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -29,9 +29,9 @@ export const companyContactOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const companyContactFields = [ +export const companyContactFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* companyContact:add */ @@ -72,4 +72,4 @@ export const companyContactFields = [ default: '', description: 'The ID of the company.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Mautic/CompanyDescription.ts b/packages/nodes-base/nodes/Mautic/CompanyDescription.ts index cd6b4476676049..4eae5da1be1b3e 100644 --- a/packages/nodes-base/nodes/Mautic/CompanyDescription.ts +++ b/packages/nodes-base/nodes/Mautic/CompanyDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const companyOperations = [ +export const companyOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -44,9 +44,9 @@ export const companyOperations = [ default: 'create', description: 'The operation to perform', }, -] as INodeProperties[]; +]; -export const companyFields = [ +export const companyFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* company:create */ @@ -667,4 +667,4 @@ export const companyFields = [ default: true, description: 'Return a simplified version of the response instead of the raw data.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Mautic/ContactDescription.ts b/packages/nodes-base/nodes/Mautic/ContactDescription.ts index a1aa9f75d632bd..fa974f325023c0 100644 --- a/packages/nodes-base/nodes/Mautic/ContactDescription.ts +++ b/packages/nodes-base/nodes/Mautic/ContactDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const contactOperations = [ +export const contactOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -44,9 +44,9 @@ export const contactOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const contactFields = [ +export const contactFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* contact:create */ @@ -1239,4 +1239,4 @@ export const contactFields = [ ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Mautic/ContactSegmentDescription.ts b/packages/nodes-base/nodes/Mautic/ContactSegmentDescription.ts index 302002b9dc0bef..9038f8e8712703 100644 --- a/packages/nodes-base/nodes/Mautic/ContactSegmentDescription.ts +++ b/packages/nodes-base/nodes/Mautic/ContactSegmentDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const contactSegmentOperations = [ +export const contactSegmentOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -29,9 +29,9 @@ export const contactSegmentOperations = [ default: 'add', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const contactSegmentFields = [ +export const contactSegmentFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* contactSegment:add */ @@ -79,4 +79,4 @@ export const contactSegmentFields = [ description: 'Segment ID', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Microsoft/Dynamics/GenericFunctions.ts b/packages/nodes-base/nodes/Microsoft/Dynamics/GenericFunctions.ts index 67800133c9b924..370561c025bc52 100644 --- a/packages/nodes-base/nodes/Microsoft/Dynamics/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Microsoft/Dynamics/GenericFunctions.ts @@ -10,6 +10,7 @@ import { import { IDataObject, + INodeProperties, INodePropertyOptions, NodeApiError, } from 'n8n-workflow'; @@ -92,7 +93,7 @@ export function adjustAddresses(addresses: [{ [key: string]: string }]) { return results; } -export function getAccountFields() { +export function getAccountFields(): INodeProperties[] { return [ { displayName: 'Account Category', diff --git a/packages/nodes-base/nodes/Microsoft/Dynamics/descriptions/AccountDescription.ts b/packages/nodes-base/nodes/Microsoft/Dynamics/descriptions/AccountDescription.ts index 40bb6b51cde125..6d323549f80ec6 100644 --- a/packages/nodes-base/nodes/Microsoft/Dynamics/descriptions/AccountDescription.ts +++ b/packages/nodes-base/nodes/Microsoft/Dynamics/descriptions/AccountDescription.ts @@ -6,7 +6,7 @@ import { getAccountFields, } from '../GenericFunctions'; -export const accountOperations = [ +export const accountOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -43,9 +43,9 @@ export const accountOperations = [ default: 'create', description: 'Operation to perform', }, -] as INodeProperties[]; +]; -export const accountFields = [ +export const accountFields: INodeProperties[] = [ // ---------------------------------------- // account:create // ---------------------------------------- @@ -271,4 +271,4 @@ export const accountFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Microsoft/Excel/TableDescription.ts b/packages/nodes-base/nodes/Microsoft/Excel/TableDescription.ts index c62e3d6f7c2046..e8ce9534533fd3 100644 --- a/packages/nodes-base/nodes/Microsoft/Excel/TableDescription.ts +++ b/packages/nodes-base/nodes/Microsoft/Excel/TableDescription.ts @@ -1,6 +1,6 @@ import { INodeProperties } from 'n8n-workflow'; -export const tableOperations = [ +export const tableOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -37,9 +37,9 @@ export const tableOperations = [ default: 'addRow', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const tableFields = [ +export const tableFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* table:addRow */ @@ -621,4 +621,4 @@ export const tableFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Microsoft/Excel/WorkbookDescription.ts b/packages/nodes-base/nodes/Microsoft/Excel/WorkbookDescription.ts index c4ff40d8d392f6..87ac38c8c4a663 100644 --- a/packages/nodes-base/nodes/Microsoft/Excel/WorkbookDescription.ts +++ b/packages/nodes-base/nodes/Microsoft/Excel/WorkbookDescription.ts @@ -1,6 +1,6 @@ import { INodeProperties } from 'n8n-workflow'; -export const workbookOperations = [ +export const workbookOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -27,9 +27,9 @@ export const workbookOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const workbookFields = [ +export const workbookFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* workbook:addWorksheet */ @@ -150,4 +150,4 @@ export const workbookFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Microsoft/Excel/WorksheetDescription.ts b/packages/nodes-base/nodes/Microsoft/Excel/WorksheetDescription.ts index 9ccf6fa84d884b..e88d7aa42b4d5c 100644 --- a/packages/nodes-base/nodes/Microsoft/Excel/WorksheetDescription.ts +++ b/packages/nodes-base/nodes/Microsoft/Excel/WorksheetDescription.ts @@ -1,6 +1,6 @@ import { INodeProperties } from 'n8n-workflow'; -export const worksheetOperations = [ +export const worksheetOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -27,9 +27,9 @@ export const worksheetOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const worksheetFields = [ +export const worksheetFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* worksheet:getAll */ @@ -300,4 +300,4 @@ export const worksheetFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Microsoft/OneDrive/FileDescription.ts b/packages/nodes-base/nodes/Microsoft/OneDrive/FileDescription.ts index b723a55540a536..98b13754b01951 100644 --- a/packages/nodes-base/nodes/Microsoft/OneDrive/FileDescription.ts +++ b/packages/nodes-base/nodes/Microsoft/OneDrive/FileDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const fileOperations = [ +export const fileOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -54,9 +54,9 @@ export const fileOperations = [ default: 'upload', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const fileFields = [ +export const fileFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* file:copy */ @@ -459,4 +459,4 @@ export const fileFields = [ placeholder: '', description: 'Name of the binary property which contains the data for the file.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Microsoft/OneDrive/FolderDescription.ts b/packages/nodes-base/nodes/Microsoft/OneDrive/FolderDescription.ts index 2c6f8b51906be6..5e9ee8a5df91e0 100644 --- a/packages/nodes-base/nodes/Microsoft/OneDrive/FolderDescription.ts +++ b/packages/nodes-base/nodes/Microsoft/OneDrive/FolderDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const folderOperations = [ +export const folderOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -44,9 +44,9 @@ export const folderOperations = [ default: 'getChildren', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const folderFields = [ +export const folderFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* folder:create */ @@ -216,4 +216,4 @@ export const folderFields = [ default: '', description: 'The type of sharing link to create', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Microsoft/Outlook/DraftDescription.ts b/packages/nodes-base/nodes/Microsoft/Outlook/DraftDescription.ts index b6c397530bcad8..202647534b39c0 100644 --- a/packages/nodes-base/nodes/Microsoft/Outlook/DraftDescription.ts +++ b/packages/nodes-base/nodes/Microsoft/Outlook/DraftDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const draftOperations = [ +export const draftOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -44,9 +44,9 @@ export const draftOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const draftFields = [ +export const draftFields: INodeProperties[] = [ { displayName: 'Message ID', name: 'messageId', @@ -301,4 +301,4 @@ export const draftFields = [ -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Microsoft/Outlook/DraftMessageSharedDescription.ts b/packages/nodes-base/nodes/Microsoft/Outlook/DraftMessageSharedDescription.ts index 7d7d597e2c5f21..c8ce7f0f0c5b19 100644 --- a/packages/nodes-base/nodes/Microsoft/Outlook/DraftMessageSharedDescription.ts +++ b/packages/nodes-base/nodes/Microsoft/Outlook/DraftMessageSharedDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const draftMessageSharedFields = [ +export const draftMessageSharedFields: INodeProperties[] = [ // Get & Get All operations { @@ -213,4 +213,4 @@ export const draftMessageSharedFields = [ ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Microsoft/Outlook/FolderDescription.ts b/packages/nodes-base/nodes/Microsoft/Outlook/FolderDescription.ts index da7492536a5979..aa5c92befba88c 100644 --- a/packages/nodes-base/nodes/Microsoft/Outlook/FolderDescription.ts +++ b/packages/nodes-base/nodes/Microsoft/Outlook/FolderDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const folderOperations = [ +export const folderOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -44,9 +44,9 @@ export const folderOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const folderFields = [ +export const folderFields: INodeProperties[] = [ { displayName: 'Folder ID', name: 'folderId', @@ -308,4 +308,4 @@ export const folderFields = [ ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Microsoft/Outlook/FolderMessageDecription.ts b/packages/nodes-base/nodes/Microsoft/Outlook/FolderMessageDecription.ts index 436b3c223bb846..7fe4350e8c9650 100644 --- a/packages/nodes-base/nodes/Microsoft/Outlook/FolderMessageDecription.ts +++ b/packages/nodes-base/nodes/Microsoft/Outlook/FolderMessageDecription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const folderMessageOperations = [ +export const folderMessageOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -24,9 +24,9 @@ export const folderMessageOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const folderMessageFields = [ +export const folderMessageFields: INodeProperties[] = [ { displayName: 'Folder ID', name: 'folderId', @@ -119,4 +119,4 @@ export const folderMessageFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Microsoft/Outlook/MessageAttachmentDescription.ts b/packages/nodes-base/nodes/Microsoft/Outlook/MessageAttachmentDescription.ts index 46e85d52d8e650..4011d81fc16616 100644 --- a/packages/nodes-base/nodes/Microsoft/Outlook/MessageAttachmentDescription.ts +++ b/packages/nodes-base/nodes/Microsoft/Outlook/MessageAttachmentDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const messageAttachmentOperations = [ +export const messageAttachmentOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -39,9 +39,9 @@ export const messageAttachmentOperations = [ default: 'add', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const messageAttachmentFields = [ +export const messageAttachmentFields: INodeProperties[] = [ { displayName: 'Message ID', name: 'messageId', @@ -213,4 +213,4 @@ export const messageAttachmentFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Microsoft/Outlook/MessageDescription.ts b/packages/nodes-base/nodes/Microsoft/Outlook/MessageDescription.ts index 8d8f6b3f0dd67d..4ea67ef482df32 100644 --- a/packages/nodes-base/nodes/Microsoft/Outlook/MessageDescription.ts +++ b/packages/nodes-base/nodes/Microsoft/Outlook/MessageDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const messageOperations = [ +export const messageOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -59,9 +59,9 @@ export const messageOperations = [ default: 'send', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const messageFields = [ +export const messageFields: INodeProperties[] = [ { displayName: 'Message ID', name: 'messageId', @@ -636,4 +636,4 @@ export const messageFields = [ }, }, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Microsoft/Teams/ChannelDescription.ts b/packages/nodes-base/nodes/Microsoft/Teams/ChannelDescription.ts index c771fba3545d2a..c3556a4e620006 100644 --- a/packages/nodes-base/nodes/Microsoft/Teams/ChannelDescription.ts +++ b/packages/nodes-base/nodes/Microsoft/Teams/ChannelDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const channelOperations = [ +export const channelOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -44,9 +44,9 @@ export const channelOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const channelFields = [ +export const channelFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* channel:create */ @@ -382,4 +382,4 @@ export const channelFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Microsoft/Teams/ChannelMessageDescription.ts b/packages/nodes-base/nodes/Microsoft/Teams/ChannelMessageDescription.ts index ede9af39d4ba67..ac48429acb80a4 100644 --- a/packages/nodes-base/nodes/Microsoft/Teams/ChannelMessageDescription.ts +++ b/packages/nodes-base/nodes/Microsoft/Teams/ChannelMessageDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const channelMessageOperations = [ +export const channelMessageOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -29,9 +29,9 @@ export const channelMessageOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const channelMessageFields = [ +export const channelMessageFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* channelMessage:create */ @@ -243,4 +243,4 @@ export const channelMessageFields = [ default: 100, description: 'How many results to return.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Microsoft/Teams/TaskDescription.ts b/packages/nodes-base/nodes/Microsoft/Teams/TaskDescription.ts index 6b555e8b80febd..e3d0ed8eeef7ee 100644 --- a/packages/nodes-base/nodes/Microsoft/Teams/TaskDescription.ts +++ b/packages/nodes-base/nodes/Microsoft/Teams/TaskDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const taskOperations = [ +export const taskOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -44,9 +44,9 @@ export const taskOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const taskFields = [ +export const taskFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* task:create */ @@ -448,4 +448,4 @@ export const taskFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Microsoft/ToDo/LinkedResourceDescription.ts b/packages/nodes-base/nodes/Microsoft/ToDo/LinkedResourceDescription.ts index ddccc8666d9ef4..0ccfb87707c822 100644 --- a/packages/nodes-base/nodes/Microsoft/ToDo/LinkedResourceDescription.ts +++ b/packages/nodes-base/nodes/Microsoft/ToDo/LinkedResourceDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const linkedResourceOperations = [ +export const linkedResourceOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -39,9 +39,9 @@ export const linkedResourceOperations = [ default: 'get', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const linkedResourceFields = [ +export const linkedResourceFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* linkedResource:ALL */ /* -------------------------------------------------------------------------- */ @@ -279,4 +279,4 @@ export const linkedResourceFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Microsoft/ToDo/ListDescription.ts b/packages/nodes-base/nodes/Microsoft/ToDo/ListDescription.ts index 4bc175d92e2671..f43bd00fb4ea45 100644 --- a/packages/nodes-base/nodes/Microsoft/ToDo/ListDescription.ts +++ b/packages/nodes-base/nodes/Microsoft/ToDo/ListDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const listOperations = [ +export const listOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -39,9 +39,9 @@ export const listOperations = [ default: 'get', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const listFields = [ +export const listFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* list:create */ /* -------------------------------------------------------------------------- */ @@ -152,4 +152,4 @@ export const listFields = [ default: '', description: 'List display name.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Microsoft/ToDo/TaskDescription.ts b/packages/nodes-base/nodes/Microsoft/ToDo/TaskDescription.ts index cd6609a3fd4b45..df39f19ae741dd 100644 --- a/packages/nodes-base/nodes/Microsoft/ToDo/TaskDescription.ts +++ b/packages/nodes-base/nodes/Microsoft/ToDo/TaskDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const taskOperations = [ +export const taskOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -39,9 +39,9 @@ export const taskOperations = [ default: 'get', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const taskFields = [ +export const taskFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* task:create */ /* -------------------------------------------------------------------------- */ @@ -351,4 +351,4 @@ export const taskFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/MondayCom/BoardColumnDescription.ts b/packages/nodes-base/nodes/MondayCom/BoardColumnDescription.ts index f1c2fff181667f..8106cfd39edaa1 100644 --- a/packages/nodes-base/nodes/MondayCom/BoardColumnDescription.ts +++ b/packages/nodes-base/nodes/MondayCom/BoardColumnDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties } from 'n8n-workflow'; -export const boardColumnOperations = [ +export const boardColumnOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -29,9 +29,9 @@ export const boardColumnOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const boardColumnFields = [ +export const boardColumnFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* boardColumn:create */ /* -------------------------------------------------------------------------- */ @@ -227,4 +227,4 @@ export const boardColumnFields = [ }, }, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/MondayCom/BoardDescription.ts b/packages/nodes-base/nodes/MondayCom/BoardDescription.ts index a6a549588eba35..c828fe0027d6eb 100644 --- a/packages/nodes-base/nodes/MondayCom/BoardDescription.ts +++ b/packages/nodes-base/nodes/MondayCom/BoardDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const boardOperations = [ +export const boardOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -39,9 +39,9 @@ export const boardOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const boardFields = [ +export const boardFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* board:archive */ @@ -217,4 +217,4 @@ export const boardFields = [ default: 50, description: 'How many results to return.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/MondayCom/BoardGroupDescription.ts b/packages/nodes-base/nodes/MondayCom/BoardGroupDescription.ts index 3650ff8374ad50..e15af81452d6c2 100644 --- a/packages/nodes-base/nodes/MondayCom/BoardGroupDescription.ts +++ b/packages/nodes-base/nodes/MondayCom/BoardGroupDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const boardGroupOperations = [ +export const boardGroupOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -34,9 +34,9 @@ export const boardGroupOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const boardGroupFields = [ +export const boardGroupFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* boardGroup:create */ @@ -148,4 +148,4 @@ export const boardGroupFields = [ }, }, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/MondayCom/BoardItemDescription.ts b/packages/nodes-base/nodes/MondayCom/BoardItemDescription.ts index 6b1d41c4b204fd..7fe33861f894b8 100644 --- a/packages/nodes-base/nodes/MondayCom/BoardItemDescription.ts +++ b/packages/nodes-base/nodes/MondayCom/BoardItemDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const boardItemOperations = [ +export const boardItemOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -64,9 +64,9 @@ export const boardItemOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const boardItemFields = [ +export const boardItemFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* boardItem:addUpdate */ @@ -647,4 +647,4 @@ export const boardItemFields = [ }, }, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/MonicaCrm/descriptions/ActivityDescription.ts b/packages/nodes-base/nodes/MonicaCrm/descriptions/ActivityDescription.ts index fe326632bd0321..42953e0a345e0d 100644 --- a/packages/nodes-base/nodes/MonicaCrm/descriptions/ActivityDescription.ts +++ b/packages/nodes-base/nodes/MonicaCrm/descriptions/ActivityDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const activityOperations = [ +export const activityOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -43,9 +43,9 @@ export const activityOperations = [ ], default: 'create', }, -] as INodeProperties[]; +]; -export const activityFields = [ +export const activityFields: INodeProperties[] = [ // ---------------------------------------- // activity: create // ---------------------------------------- @@ -321,4 +321,4 @@ export const activityFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/MonicaCrm/descriptions/CallDescription.ts b/packages/nodes-base/nodes/MonicaCrm/descriptions/CallDescription.ts index 1336515f7066fb..817c710096d5aa 100644 --- a/packages/nodes-base/nodes/MonicaCrm/descriptions/CallDescription.ts +++ b/packages/nodes-base/nodes/MonicaCrm/descriptions/CallDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const callOperations = [ +export const callOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -43,9 +43,9 @@ export const callOperations = [ ], default: 'create', }, -] as INodeProperties[]; +]; -export const callFields = [ +export const callFields: INodeProperties[] = [ // ---------------------------------------- // call: create // ---------------------------------------- @@ -256,4 +256,4 @@ export const callFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/MonicaCrm/descriptions/ContactDescription.ts b/packages/nodes-base/nodes/MonicaCrm/descriptions/ContactDescription.ts index 63027d6ace9bd9..3bbf6fa4f86fab 100644 --- a/packages/nodes-base/nodes/MonicaCrm/descriptions/ContactDescription.ts +++ b/packages/nodes-base/nodes/MonicaCrm/descriptions/ContactDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const contactOperations = [ +export const contactOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -43,9 +43,9 @@ export const contactOperations = [ ], default: 'create', }, -] as INodeProperties[]; +]; -export const contactFields = [ +export const contactFields: INodeProperties[] = [ // ---------------------------------------- // contact: create // ---------------------------------------- @@ -397,4 +397,4 @@ export const contactFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/MonicaCrm/descriptions/ContactFieldDescription.ts b/packages/nodes-base/nodes/MonicaCrm/descriptions/ContactFieldDescription.ts index cca52a7e635af7..82e6d07e861fca 100644 --- a/packages/nodes-base/nodes/MonicaCrm/descriptions/ContactFieldDescription.ts +++ b/packages/nodes-base/nodes/MonicaCrm/descriptions/ContactFieldDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const contactFieldOperations = [ +export const contactFieldOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -43,9 +43,9 @@ export const contactFieldOperations = [ ], default: 'create', }, -] as INodeProperties[]; +]; -export const contactFieldFields = [ +export const contactFieldFields: INodeProperties[] = [ // ---------------------------------------- // contactField: create // ---------------------------------------- @@ -289,4 +289,4 @@ export const contactFieldFields = [ }, }, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/MonicaCrm/descriptions/ContactTagDescription.ts b/packages/nodes-base/nodes/MonicaCrm/descriptions/ContactTagDescription.ts index d786e832c75b6c..f7de03c72035fe 100644 --- a/packages/nodes-base/nodes/MonicaCrm/descriptions/ContactTagDescription.ts +++ b/packages/nodes-base/nodes/MonicaCrm/descriptions/ContactTagDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const contactTagOperations = [ +export const contactTagOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -26,9 +26,9 @@ export const contactTagOperations = [ ], default: 'add', }, -] as INodeProperties[]; +]; -export const contactTagFields = [ +export const contactTagFields: INodeProperties[] = [ // ---------------------------------------- // tag: add // ---------------------------------------- @@ -114,4 +114,4 @@ export const contactTagFields = [ }, }, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/MonicaCrm/descriptions/ConversationDescription.ts b/packages/nodes-base/nodes/MonicaCrm/descriptions/ConversationDescription.ts index 9c9f97a392e8e3..2c69f4f8e32fd0 100644 --- a/packages/nodes-base/nodes/MonicaCrm/descriptions/ConversationDescription.ts +++ b/packages/nodes-base/nodes/MonicaCrm/descriptions/ConversationDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const conversationOperations = [ +export const conversationOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -38,9 +38,9 @@ export const conversationOperations = [ ], default: 'create', }, -] as INodeProperties[]; +]; -export const conversationFields = [ +export const conversationFields: INodeProperties[] = [ // ---------------------------------------- // conversation: create // ---------------------------------------- @@ -204,4 +204,4 @@ export const conversationFields = [ }, }, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/MonicaCrm/descriptions/ConversationMessageDescription.ts b/packages/nodes-base/nodes/MonicaCrm/descriptions/ConversationMessageDescription.ts index 3fc42640f82812..b9c772d6e8c732 100644 --- a/packages/nodes-base/nodes/MonicaCrm/descriptions/ConversationMessageDescription.ts +++ b/packages/nodes-base/nodes/MonicaCrm/descriptions/ConversationMessageDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const conversationMessageOperations = [ +export const conversationMessageOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -28,9 +28,9 @@ export const conversationMessageOperations = [ ], default: 'add', }, -] as INodeProperties[]; +]; -export const conversationMessageFields = [ +export const conversationMessageFields: INodeProperties[] = [ // ---------------------------------------- // conversationMessage: add // ---------------------------------------- @@ -214,4 +214,4 @@ export const conversationMessageFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/MonicaCrm/descriptions/JournalEntryDescription.ts b/packages/nodes-base/nodes/MonicaCrm/descriptions/JournalEntryDescription.ts index 8610e7c5920dd8..1424799bb4ac26 100644 --- a/packages/nodes-base/nodes/MonicaCrm/descriptions/JournalEntryDescription.ts +++ b/packages/nodes-base/nodes/MonicaCrm/descriptions/JournalEntryDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const journalEntryOperations = [ +export const journalEntryOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -43,9 +43,9 @@ export const journalEntryOperations = [ ], default: 'create', }, -] as INodeProperties[]; +]; -export const journalEntryFields = [ +export const journalEntryFields: INodeProperties[] = [ // ---------------------------------------- // journalEntry: create // ---------------------------------------- @@ -234,4 +234,4 @@ export const journalEntryFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/MonicaCrm/descriptions/NoteDescription.ts b/packages/nodes-base/nodes/MonicaCrm/descriptions/NoteDescription.ts index d4c51cb83ac06c..8b2b2153213e50 100644 --- a/packages/nodes-base/nodes/MonicaCrm/descriptions/NoteDescription.ts +++ b/packages/nodes-base/nodes/MonicaCrm/descriptions/NoteDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const noteOperations = [ +export const noteOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -43,9 +43,9 @@ export const noteOperations = [ ], default: 'create', }, -] as INodeProperties[]; +]; -export const noteFields = [ +export const noteFields: INodeProperties[] = [ // ---------------------------------------- // note: create // ---------------------------------------- @@ -263,7 +263,8 @@ export const noteFields = [ name: 'is_favorited', description: 'Whether the note has been favorited', type: 'boolean', + default: false, }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/MonicaCrm/descriptions/ReminderDescription.ts b/packages/nodes-base/nodes/MonicaCrm/descriptions/ReminderDescription.ts index fe51030d0ade41..63a1dbb5f4b891 100644 --- a/packages/nodes-base/nodes/MonicaCrm/descriptions/ReminderDescription.ts +++ b/packages/nodes-base/nodes/MonicaCrm/descriptions/ReminderDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const reminderOperations = [ +export const reminderOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -43,9 +43,9 @@ export const reminderOperations = [ ], default: 'create', }, -] as INodeProperties[]; +]; -export const reminderFields = [ +export const reminderFields: INodeProperties[] = [ // ---------------------------------------- // reminder: create // ---------------------------------------- @@ -391,4 +391,4 @@ export const reminderFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/MonicaCrm/descriptions/TagDescription.ts b/packages/nodes-base/nodes/MonicaCrm/descriptions/TagDescription.ts index ed293abecf4f35..3afec7f9d74571 100644 --- a/packages/nodes-base/nodes/MonicaCrm/descriptions/TagDescription.ts +++ b/packages/nodes-base/nodes/MonicaCrm/descriptions/TagDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const tagOperations = [ +export const tagOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -43,9 +43,9 @@ export const tagOperations = [ ], default: 'create', }, -] as INodeProperties[]; +]; -export const tagFields = [ +export const tagFields: INodeProperties[] = [ // ---------------------------------------- // tag: create // ---------------------------------------- @@ -195,4 +195,4 @@ export const tagFields = [ }, }, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/MonicaCrm/descriptions/TaskDescription.ts b/packages/nodes-base/nodes/MonicaCrm/descriptions/TaskDescription.ts index dd3a6036829af8..c89fb17ee4590c 100644 --- a/packages/nodes-base/nodes/MonicaCrm/descriptions/TaskDescription.ts +++ b/packages/nodes-base/nodes/MonicaCrm/descriptions/TaskDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const taskOperations = [ +export const taskOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -43,9 +43,9 @@ export const taskOperations = [ ], default: 'create', }, -] as INodeProperties[]; +]; -export const taskFields = [ +export const taskFields: INodeProperties[] = [ // ---------------------------------------- // task: create // ---------------------------------------- @@ -274,4 +274,4 @@ export const taskFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Netlify/DeployDescription.ts b/packages/nodes-base/nodes/Netlify/DeployDescription.ts index 152b8b682602e0..013fb6218d334b 100644 --- a/packages/nodes-base/nodes/Netlify/DeployDescription.ts +++ b/packages/nodes-base/nodes/Netlify/DeployDescription.ts @@ -1,8 +1,8 @@ -import { +import { INodeProperties, } from 'n8n-workflow'; -export const deployOperations = [ +export const deployOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -39,14 +39,15 @@ export const deployOperations = [ default: 'getAll', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const deployFields = [ +export const deployFields: INodeProperties[] = [ { displayName: 'Site ID', name: 'siteId', required: true, type: 'options', + default: '', typeOptions: { loadOptionsMethod: 'getSites', }, @@ -69,6 +70,7 @@ export const deployFields = [ name: 'deployId', required: true, type: 'string', + default: '', displayOptions:{ show: { resource: [ @@ -155,4 +157,4 @@ export const deployFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Netlify/SiteDescription.ts b/packages/nodes-base/nodes/Netlify/SiteDescription.ts index c62fa69a7d7a31..b379b9a0567a90 100644 --- a/packages/nodes-base/nodes/Netlify/SiteDescription.ts +++ b/packages/nodes-base/nodes/Netlify/SiteDescription.ts @@ -1,8 +1,8 @@ -import { +import { INodeProperties, } from 'n8n-workflow'; -export const siteOperations = [ +export const siteOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -34,14 +34,15 @@ export const siteOperations = [ default: 'delete', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const siteFields = [ +export const siteFields: INodeProperties[] = [ { displayName: 'Site ID', name: 'siteId', required: true, type: 'string', + default: '', displayOptions: { show: { resource: [ @@ -95,4 +96,4 @@ export const siteFields = [ default: 50, description: 'How many results to return', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/NocoDB/OperationDescription.ts b/packages/nodes-base/nodes/NocoDB/OperationDescription.ts index c679e4c051389f..dbb2331cdd83c3 100644 --- a/packages/nodes-base/nodes/NocoDB/OperationDescription.ts +++ b/packages/nodes-base/nodes/NocoDB/OperationDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const operationFields = [ +export const operationFields: INodeProperties[] = [ // ---------------------------------- // Shared // ---------------------------------- @@ -380,4 +380,4 @@ export const operationFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Notion/BlockDescription.ts b/packages/nodes-base/nodes/Notion/BlockDescription.ts index a9d2b773ca59b5..75c04ad3ec9c9e 100644 --- a/packages/nodes-base/nodes/Notion/BlockDescription.ts +++ b/packages/nodes-base/nodes/Notion/BlockDescription.ts @@ -6,7 +6,7 @@ import { blocks, } from './Blocks'; -export const blockOperations = [ +export const blockOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -33,9 +33,9 @@ export const blockOperations = [ default: 'append', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const blockFields = [ +export const blockFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* block:append */ @@ -120,4 +120,4 @@ export const blockFields = [ default: 50, description: 'How many results to return.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Notion/Blocks.ts b/packages/nodes-base/nodes/Notion/Blocks.ts index 9c95ff2007d1ff..759a4a62613eef 100644 --- a/packages/nodes-base/nodes/Notion/Blocks.ts +++ b/packages/nodes-base/nodes/Notion/Blocks.ts @@ -82,7 +82,7 @@ const colors = [ }, ]; -const annotation = [ +const annotation: INodeProperties[] = [ { displayName: 'Annotations', name: 'annotationUi', @@ -136,9 +136,9 @@ const annotation = [ ], description: 'All annotations that apply to this rich text.', }, -] as INodeProperties[]; +]; -const typeMention = [ +const typeMention: INodeProperties[] = [ { displayName: 'Type', name: 'mentionType', @@ -284,9 +284,9 @@ const typeMention = [ default: '', description: `An ISO 8601 formatted date, with optional time. Represents the end of a date range.`, }, -] as INodeProperties[]; +]; -const typeEquation = [ +const typeEquation: INodeProperties[] = [ { displayName: 'Expression', name: 'expression', @@ -301,9 +301,9 @@ const typeEquation = [ default: '', description: '', }, -] as INodeProperties[]; +]; -const typeText = [ +const typeText: INodeProperties[] = [ { displayName: 'Text', name: 'text', @@ -348,9 +348,9 @@ const typeText = [ default: '', description: 'The URL that this link points to.', }, -] as INodeProperties[]; +]; -export const text = (displayOptions: IDisplayOptions) => [ +export const text = (displayOptions: IDisplayOptions): INodeProperties[] => [ { displayName: 'Text', name: 'text', @@ -396,10 +396,10 @@ export const text = (displayOptions: IDisplayOptions) => [ }, ], description: 'Rich text in the block.', - }] as INodeProperties[]; + }]; -const todo = (type: string) => [{ +const todo = (type: string): INodeProperties[] => [{ displayName: 'Checked', name: 'checked', type: 'boolean', @@ -412,9 +412,9 @@ const todo = (type: string) => [{ }, }, description: 'Whether the to_do is checked or not.', -}] as INodeProperties[]; +}]; -const title = (type: string) => [{ +const title = (type: string): INodeProperties[] => [{ displayName: 'Title', name: 'title', type: 'string', @@ -427,9 +427,9 @@ const title = (type: string) => [{ }, }, description: 'Plain text of page title.', -}] as INodeProperties[]; +}]; -const richText = (displayOptions: IDisplayOptions) => [ +const richText = (displayOptions: IDisplayOptions): INodeProperties[] => [ { displayName: 'Rich Text', name: 'richText', @@ -437,9 +437,9 @@ const richText = (displayOptions: IDisplayOptions) => [ displayOptions, default: false, }, -] as INodeProperties[]; +]; -const textContent = (displayOptions: IDisplayOptions) => [ +const textContent = (displayOptions: IDisplayOptions): INodeProperties[] => [ { displayName: 'Text', name: 'textContent', @@ -447,7 +447,7 @@ const textContent = (displayOptions: IDisplayOptions) => [ displayOptions, default: '', }, -] as INodeProperties[]; +]; const block = (blockType: string) => { const data: INodeProperties[] = []; @@ -518,7 +518,7 @@ const block = (blockType: string) => { return data; }; -export const blocks = (resource: string, operation: string) => [{ +export const blocks = (resource: string, operation: string): INodeProperties[] => [{ displayName: 'Blocks', name: 'blockUi', type: 'fixedCollection', @@ -565,5 +565,5 @@ export const blocks = (resource: string, operation: string) => [{ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Notion/DatabaseDescription.ts b/packages/nodes-base/nodes/Notion/DatabaseDescription.ts index 5213e581ae0566..58dd1b94c88cd5 100644 --- a/packages/nodes-base/nodes/Notion/DatabaseDescription.ts +++ b/packages/nodes-base/nodes/Notion/DatabaseDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const databaseOperations = [ +export const databaseOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -29,9 +29,9 @@ export const databaseOperations = [ default: 'get', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const databaseFields = [ +export const databaseFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* database:get */ @@ -97,4 +97,4 @@ export const databaseFields = [ default: 50, description: 'How many results to return.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Notion/DatabasePageDescription.ts b/packages/nodes-base/nodes/Notion/DatabasePageDescription.ts index 3594fc38ce8546..eaf861ccaedd3e 100644 --- a/packages/nodes-base/nodes/Notion/DatabasePageDescription.ts +++ b/packages/nodes-base/nodes/Notion/DatabasePageDescription.ts @@ -11,7 +11,7 @@ import { filters, } from './Filters'; -export const databasePageOperations = [ +export const databasePageOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -43,9 +43,9 @@ export const databasePageOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const databasePageFields = [ +export const databasePageFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* databasePage:create */ @@ -1045,4 +1045,4 @@ export const databasePageFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Notion/Filters.ts b/packages/nodes-base/nodes/Notion/Filters.ts index ee88dc1a0992f2..4d55760d4793d9 100644 --- a/packages/nodes-base/nodes/Notion/Filters.ts +++ b/packages/nodes-base/nodes/Notion/Filters.ts @@ -1,8 +1,12 @@ +import { + INodeProperties +} from 'n8n-workflow'; + import { getConditions } from './GenericFunctions'; -export const filters = [{ +export const filters: INodeProperties[] = [{ displayName: 'Property Name', name: 'key', type: 'options', diff --git a/packages/nodes-base/nodes/Notion/PageDescription.ts b/packages/nodes-base/nodes/Notion/PageDescription.ts index 4612eb8be84f86..c75277a6e9be22 100644 --- a/packages/nodes-base/nodes/Notion/PageDescription.ts +++ b/packages/nodes-base/nodes/Notion/PageDescription.ts @@ -6,7 +6,7 @@ import { blocks, } from './Blocks'; -export const pageOperations = [ +export const pageOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -38,9 +38,9 @@ export const pageOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const pageFields = [ +export const pageFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* page:create */ @@ -329,4 +329,4 @@ export const pageFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Notion/UserDescription.ts b/packages/nodes-base/nodes/Notion/UserDescription.ts index 42ce84bf49530e..b5fc5c012f32a8 100644 --- a/packages/nodes-base/nodes/Notion/UserDescription.ts +++ b/packages/nodes-base/nodes/Notion/UserDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const userOperations = [ +export const userOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -29,9 +29,9 @@ export const userOperations = [ default: 'get', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const userFields = [ +export const userFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* user:get */ @@ -97,4 +97,4 @@ export const userFields = [ default: 50, description: 'How many results to return.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Orbit/ActivityDescription.ts b/packages/nodes-base/nodes/Orbit/ActivityDescription.ts index fad53ff169f3a9..7ef55dd98efc05 100644 --- a/packages/nodes-base/nodes/Orbit/ActivityDescription.ts +++ b/packages/nodes-base/nodes/Orbit/ActivityDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const activityOperations = [ +export const activityOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -29,9 +29,9 @@ export const activityOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const activityFields = [ +export const activityFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* activity:create */ @@ -245,4 +245,4 @@ export const activityFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Orbit/MemberDescription.ts b/packages/nodes-base/nodes/Orbit/MemberDescription.ts index 60d4fa7600d1d1..c220f72fa9d7fc 100644 --- a/packages/nodes-base/nodes/Orbit/MemberDescription.ts +++ b/packages/nodes-base/nodes/Orbit/MemberDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const memberOperations = [ +export const memberOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -49,9 +49,9 @@ export const memberOperations = [ default: 'get', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const memberFields = [ +export const memberFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* member:delete */ @@ -878,4 +878,4 @@ export const memberFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Orbit/NoteDescription.ts b/packages/nodes-base/nodes/Orbit/NoteDescription.ts index d643418177e176..b6f425b1ef4c28 100644 --- a/packages/nodes-base/nodes/Orbit/NoteDescription.ts +++ b/packages/nodes-base/nodes/Orbit/NoteDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const noteOperations = [ +export const noteOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -34,9 +34,9 @@ export const noteOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const noteFields = [ +export const noteFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* note:create */ @@ -269,4 +269,4 @@ export const noteFields = [ }, }, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Orbit/PostDescription.ts b/packages/nodes-base/nodes/Orbit/PostDescription.ts index f54a0be6c97b3c..f782b06e47502f 100644 --- a/packages/nodes-base/nodes/Orbit/PostDescription.ts +++ b/packages/nodes-base/nodes/Orbit/PostDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const postOperations = [ +export const postOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -34,9 +34,9 @@ export const postOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const postFields = [ +export const postFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* post:create */ @@ -270,4 +270,4 @@ export const postFields = [ }, }, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Oura/ProfileDescription.ts b/packages/nodes-base/nodes/Oura/ProfileDescription.ts index b3e028c8a829c8..3ab715ad5041b0 100644 --- a/packages/nodes-base/nodes/Oura/ProfileDescription.ts +++ b/packages/nodes-base/nodes/Oura/ProfileDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const profileOperations = [ +export const profileOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -24,4 +24,4 @@ export const profileOperations = [ default: 'get', description: 'Operation to perform.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Oura/SummaryDescription.ts b/packages/nodes-base/nodes/Oura/SummaryDescription.ts index 0512eb1e22d28f..55cc5c0c689a0e 100644 --- a/packages/nodes-base/nodes/Oura/SummaryDescription.ts +++ b/packages/nodes-base/nodes/Oura/SummaryDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const summaryOperations = [ +export const summaryOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -34,9 +34,9 @@ export const summaryOperations = [ default: 'getSleep', description: 'Operation to perform.', }, -] as INodeProperties[]; +]; -export const summaryFields = [ +export const summaryFields: INodeProperties[] = [ { displayName: 'Return All', name: 'returnAll', @@ -102,4 +102,4 @@ export const summaryFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Paddle/CouponDescription.ts b/packages/nodes-base/nodes/Paddle/CouponDescription.ts index 2f1f7612d9a32a..3e6c6f5c305266 100644 --- a/packages/nodes-base/nodes/Paddle/CouponDescription.ts +++ b/packages/nodes-base/nodes/Paddle/CouponDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const couponOperations = [ +export const couponOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -34,9 +34,9 @@ export const couponOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const couponFields = [ +export const couponFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* coupon:create */ /* -------------------------------------------------------------------------- */ @@ -867,4 +867,4 @@ export const couponFields = [ ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Paddle/OrderDescription.ts b/packages/nodes-base/nodes/Paddle/OrderDescription.ts index f9d6c9859f5ab1..18020fca22749b 100644 --- a/packages/nodes-base/nodes/Paddle/OrderDescription.ts +++ b/packages/nodes-base/nodes/Paddle/OrderDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const orderOperations = [ +export const orderOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -24,9 +24,9 @@ export const orderOperations = [ default: 'get', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const orderFields = [ +export const orderFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* order:get */ @@ -49,4 +49,4 @@ export const orderFields = [ }, description: 'The identifier of the buyer’s checkout.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Paddle/PaymentDescription.ts b/packages/nodes-base/nodes/Paddle/PaymentDescription.ts index 3a4c5a44a32002..44386259936d04 100644 --- a/packages/nodes-base/nodes/Paddle/PaymentDescription.ts +++ b/packages/nodes-base/nodes/Paddle/PaymentDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const paymentOperations = [ +export const paymentOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -29,9 +29,9 @@ export const paymentOperations = [ default: 'getAll', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const paymentFields = [ +export const paymentFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* payment:getAll */ /* -------------------------------------------------------------------------- */ @@ -245,4 +245,4 @@ export const paymentFields = [ }, description: 'Date you want to move the payment to.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Paddle/PlanDescription.ts b/packages/nodes-base/nodes/Paddle/PlanDescription.ts index 8df2edda33db1d..845157fd08ace7 100644 --- a/packages/nodes-base/nodes/Paddle/PlanDescription.ts +++ b/packages/nodes-base/nodes/Paddle/PlanDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const planOperations = [ +export const planOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -29,9 +29,9 @@ export const planOperations = [ default: 'get', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const planFields = [ +export const planFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* plan:get */ @@ -95,4 +95,4 @@ export const planFields = [ default: 100, description: 'How many results to return.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Paddle/ProductDescription.ts b/packages/nodes-base/nodes/Paddle/ProductDescription.ts index 2db617ec8c18a9..dcfadee9739c9c 100644 --- a/packages/nodes-base/nodes/Paddle/ProductDescription.ts +++ b/packages/nodes-base/nodes/Paddle/ProductDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const productOperations = [ +export const productOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -24,9 +24,9 @@ export const productOperations = [ default: 'getAll', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const productFields = [ +export const productFields: INodeProperties[] = [ { displayName: 'Return All', name: 'returnAll', @@ -68,4 +68,4 @@ export const productFields = [ default: 100, description: 'How many results to return.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Paddle/UserDescription.ts b/packages/nodes-base/nodes/Paddle/UserDescription.ts index b135ac6934ccc4..9fe2dfda46abcf 100644 --- a/packages/nodes-base/nodes/Paddle/UserDescription.ts +++ b/packages/nodes-base/nodes/Paddle/UserDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const userOperations = [ +export const userOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -24,9 +24,9 @@ export const userOperations = [ default: 'getAll', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const userFields = [ +export const userFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* user:getAll */ /* -------------------------------------------------------------------------- */ @@ -173,4 +173,4 @@ export const userFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/PagerDuty/IncidentDescription.ts b/packages/nodes-base/nodes/PagerDuty/IncidentDescription.ts index 769b6c5c7f837f..207bfd08a48048 100644 --- a/packages/nodes-base/nodes/PagerDuty/IncidentDescription.ts +++ b/packages/nodes-base/nodes/PagerDuty/IncidentDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const incidentOperations = [ +export const incidentOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -39,9 +39,9 @@ export const incidentOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const incidentFields = [ +export const incidentFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* incident:create */ @@ -633,4 +633,4 @@ export const incidentFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/PagerDuty/IncidentNoteDescription.ts b/packages/nodes-base/nodes/PagerDuty/IncidentNoteDescription.ts index 4ffc85b6dea030..5d331304abf66d 100644 --- a/packages/nodes-base/nodes/PagerDuty/IncidentNoteDescription.ts +++ b/packages/nodes-base/nodes/PagerDuty/IncidentNoteDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const incidentNoteOperations = [ +export const incidentNoteOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -29,9 +29,9 @@ export const incidentNoteOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const incidentNoteFields = [ +export const incidentNoteFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* incidentNote:create */ @@ -155,4 +155,4 @@ export const incidentNoteFields = [ default: 100, description: 'How many results to return.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/PagerDuty/LogEntryDescription.ts b/packages/nodes-base/nodes/PagerDuty/LogEntryDescription.ts index 8967cfa8d3fb45..063e47268e5f3a 100644 --- a/packages/nodes-base/nodes/PagerDuty/LogEntryDescription.ts +++ b/packages/nodes-base/nodes/PagerDuty/LogEntryDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const logEntryOperations = [ +export const logEntryOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -29,9 +29,9 @@ export const logEntryOperations = [ default: 'get', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const logEntryFields = [ +export const logEntryFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* logEntry:get */ /* -------------------------------------------------------------------------- */ @@ -172,4 +172,4 @@ export const logEntryFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/PagerDuty/UserDescription.ts b/packages/nodes-base/nodes/PagerDuty/UserDescription.ts index b651a1bd9a4f72..bec35b25ddf4c0 100644 --- a/packages/nodes-base/nodes/PagerDuty/UserDescription.ts +++ b/packages/nodes-base/nodes/PagerDuty/UserDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const userOperations = [ +export const userOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -24,9 +24,9 @@ export const userOperations = [ default: 'get', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const userFields = [ +export const userFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* user:get */ /* -------------------------------------------------------------------------- */ @@ -48,4 +48,4 @@ export const userFields = [ }, description: 'Unique identifier for the user.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/PayPal/PaymentDescription.ts b/packages/nodes-base/nodes/PayPal/PaymentDescription.ts index 9c3edf143a3564..5cf89c53992fee 100644 --- a/packages/nodes-base/nodes/PayPal/PaymentDescription.ts +++ b/packages/nodes-base/nodes/PayPal/PaymentDescription.ts @@ -1,6 +1,6 @@ import { INodeProperties } from 'n8n-workflow'; -export const payoutOperations = [ +export const payoutOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -27,9 +27,9 @@ export const payoutOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const payoutFields = [ +export const payoutFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* payout:create */ @@ -216,6 +216,7 @@ export const payoutFields = [ displayName: 'Items', name: 'itemsJson', type: 'json', + default: '', typeOptions: { alwaysOpenEditWindow: true, }, @@ -283,6 +284,7 @@ export const payoutFields = [ displayName: 'Payout Batch Id', name: 'payoutBatchId', type: 'string', + default: '', required: true, displayOptions: { show: { @@ -338,10 +340,10 @@ export const payoutFields = [ description: 'If all results should be returned or only up to a given limit.', }, -] as INodeProperties[]; +]; -export const payoutItemOperations = [ +export const payoutItemOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -368,9 +370,9 @@ export const payoutItemOperations = [ default: 'get', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const payoutItemFields = [ +export const payoutItemFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* payoutItem:get */ @@ -416,4 +418,4 @@ export const payoutItemFields = [ }, description: 'The ID of the payout item to cancel.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Phantombuster/AgentDescription.ts b/packages/nodes-base/nodes/Phantombuster/AgentDescription.ts index 2c97ef422f0ccd..875bfd2c7fbd70 100644 --- a/packages/nodes-base/nodes/Phantombuster/AgentDescription.ts +++ b/packages/nodes-base/nodes/Phantombuster/AgentDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const agentOperations = [ +export const agentOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -44,9 +44,9 @@ export const agentOperations = [ default: 'launch', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const agentFields = [ +export const agentFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* agent:delete */ @@ -448,4 +448,4 @@ export const agentFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/PhilipsHue/LightDescription.ts b/packages/nodes-base/nodes/PhilipsHue/LightDescription.ts index 5d9b52346d1833..23b4f329aad7ae 100644 --- a/packages/nodes-base/nodes/PhilipsHue/LightDescription.ts +++ b/packages/nodes-base/nodes/PhilipsHue/LightDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const lightOperations = [ +export const lightOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -39,9 +39,9 @@ export const lightOperations = [ default: 'update', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const lightFields = [ +export const lightFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* light:delete */ @@ -341,4 +341,4 @@ export const lightFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Plivo/CallDescription.ts b/packages/nodes-base/nodes/Plivo/CallDescription.ts index 573545057cc5d4..458c3398d97d4a 100644 --- a/packages/nodes-base/nodes/Plivo/CallDescription.ts +++ b/packages/nodes-base/nodes/Plivo/CallDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const callOperations = [ +export const callOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -24,9 +24,9 @@ export const callOperations = [ default: 'make', description: 'Operation to perform.', }, -] as INodeProperties[]; +]; -export const callFields = [ +export const callFields: INodeProperties[] = [ // ---------------------------------- // call: make // ---------------------------------- @@ -114,4 +114,4 @@ export const callFields = [ }, }, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Plivo/MmsDescription.ts b/packages/nodes-base/nodes/Plivo/MmsDescription.ts index 398ae5f182b090..6929ecea12fb35 100644 --- a/packages/nodes-base/nodes/Plivo/MmsDescription.ts +++ b/packages/nodes-base/nodes/Plivo/MmsDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const mmsOperations = [ +export const mmsOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -24,9 +24,9 @@ export const mmsOperations = [ default: 'send', description: 'Operation to perform.', }, -] as INodeProperties[]; +]; -export const mmsFields = [ +export const mmsFields: INodeProperties[] = [ // ---------------------------------- // mms: send // ---------------------------------- @@ -104,4 +104,4 @@ export const mmsFields = [ }, description: 'Comma-separated list of media URLs of the files from your file server.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Plivo/SmsDescription.ts b/packages/nodes-base/nodes/Plivo/SmsDescription.ts index ef1774fb9362ca..d9ce3078edc899 100644 --- a/packages/nodes-base/nodes/Plivo/SmsDescription.ts +++ b/packages/nodes-base/nodes/Plivo/SmsDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const smsOperations = [ +export const smsOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -24,9 +24,9 @@ export const smsOperations = [ default: 'send', description: 'Operation to perform.', }, -] as INodeProperties[]; +]; -export const smsFields = [ +export const smsFields: INodeProperties[] = [ // ---------------------------------- // sms: send // ---------------------------------- @@ -86,4 +86,4 @@ export const smsFields = [ }, }, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/PostHog/AliasDescription.ts b/packages/nodes-base/nodes/PostHog/AliasDescription.ts index 072a450dd71efd..c455abcb7ccef6 100644 --- a/packages/nodes-base/nodes/PostHog/AliasDescription.ts +++ b/packages/nodes-base/nodes/PostHog/AliasDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const aliasOperations = [ +export const aliasOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -24,9 +24,9 @@ export const aliasOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const aliasFields = [ +export const aliasFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* alias:create */ @@ -123,4 +123,4 @@ export const aliasFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/PostHog/EventDescription.ts b/packages/nodes-base/nodes/PostHog/EventDescription.ts index 920f636c87669c..5365757974491e 100644 --- a/packages/nodes-base/nodes/PostHog/EventDescription.ts +++ b/packages/nodes-base/nodes/PostHog/EventDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const eventOperations = [ +export const eventOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -24,9 +24,9 @@ export const eventOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const eventFields = [ +export const eventFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* event:create */ @@ -123,4 +123,4 @@ export const eventFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/PostHog/IdentityDescription.ts b/packages/nodes-base/nodes/PostHog/IdentityDescription.ts index 4f9aff6138411b..227d3ef4714167 100644 --- a/packages/nodes-base/nodes/PostHog/IdentityDescription.ts +++ b/packages/nodes-base/nodes/PostHog/IdentityDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const identityOperations = [ +export const identityOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -23,9 +23,9 @@ export const identityOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const identityFields = [ +export const identityFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* identity:create */ @@ -110,4 +110,4 @@ export const identityFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/PostHog/TrackDescription.ts b/packages/nodes-base/nodes/PostHog/TrackDescription.ts index fb45d329f66440..46436009096851 100644 --- a/packages/nodes-base/nodes/PostHog/TrackDescription.ts +++ b/packages/nodes-base/nodes/PostHog/TrackDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const trackOperations = [ +export const trackOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -29,9 +29,9 @@ export const trackOperations = [ default: 'page', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const trackFields = [ +export const trackFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* track:page */ @@ -172,4 +172,4 @@ export const trackFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/ProfitWell/CompanyDescription.ts b/packages/nodes-base/nodes/ProfitWell/CompanyDescription.ts index 40a1be77dd718d..42f6c8d56eddc6 100644 --- a/packages/nodes-base/nodes/ProfitWell/CompanyDescription.ts +++ b/packages/nodes-base/nodes/ProfitWell/CompanyDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const companyOperations = [ +export const companyOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -24,4 +24,4 @@ export const companyOperations = [ default: 'getSetting', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/ProfitWell/MetricDescription.ts b/packages/nodes-base/nodes/ProfitWell/MetricDescription.ts index 74ed1329e12d8b..07640bd2fcd60c 100644 --- a/packages/nodes-base/nodes/ProfitWell/MetricDescription.ts +++ b/packages/nodes-base/nodes/ProfitWell/MetricDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const metricOperations = [ +export const metricOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -24,9 +24,9 @@ export const metricOperations = [ default: 'get', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const metricFields = [ +export const metricFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* metric:get */ @@ -436,4 +436,4 @@ export const metricFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/QuickBase/FieldDescription.ts b/packages/nodes-base/nodes/QuickBase/FieldDescription.ts index 43423d0e5db2d3..d22be78a53e948 100644 --- a/packages/nodes-base/nodes/QuickBase/FieldDescription.ts +++ b/packages/nodes-base/nodes/QuickBase/FieldDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const fieldOperations = [ +export const fieldOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -24,9 +24,9 @@ export const fieldOperations = [ default: 'getAll', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const fieldFields = [ +export const fieldFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* field:getAll */ /* -------------------------------------------------------------------------- */ @@ -115,4 +115,4 @@ export const fieldFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/QuickBase/FileDescription.ts b/packages/nodes-base/nodes/QuickBase/FileDescription.ts index 8efa59ef2f7821..17eee8bcae80b6 100644 --- a/packages/nodes-base/nodes/QuickBase/FileDescription.ts +++ b/packages/nodes-base/nodes/QuickBase/FileDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const fileOperations = [ +export const fileOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -29,9 +29,9 @@ export const fileOperations = [ default: 'download', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const fileFields = [ +export const fileFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* file:download */ /* -------------------------------------------------------------------------- */ @@ -129,4 +129,4 @@ export const fileFields = [ description: 'Object property name which holds binary data.', required: true, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/QuickBase/RecordDescription.ts b/packages/nodes-base/nodes/QuickBase/RecordDescription.ts index e6316cf014b100..86de74ca35c90a 100644 --- a/packages/nodes-base/nodes/QuickBase/RecordDescription.ts +++ b/packages/nodes-base/nodes/QuickBase/RecordDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const recordOperations = [ +export const recordOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -44,9 +44,9 @@ export const recordOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const recordFields = [ +export const recordFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* record:create */ /* -------------------------------------------------------------------------- */ @@ -583,4 +583,4 @@ export const recordFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/QuickBase/ReportDescription.ts b/packages/nodes-base/nodes/QuickBase/ReportDescription.ts index ea3406dc4e5eb2..44a6f347630ada 100644 --- a/packages/nodes-base/nodes/QuickBase/ReportDescription.ts +++ b/packages/nodes-base/nodes/QuickBase/ReportDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const reportOperations = [ +export const reportOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -29,9 +29,9 @@ export const reportOperations = [ default: 'get', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const reportFields = [ +export const reportFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* report:get */ /* -------------------------------------------------------------------------- */ @@ -153,4 +153,4 @@ export const reportFields = [ default: 100, description: 'Number of results to return.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/QuickBooks/GenericFunctions.ts b/packages/nodes-base/nodes/QuickBooks/GenericFunctions.ts index 72e3742939002f..3b86ec9f95cc23 100644 --- a/packages/nodes-base/nodes/QuickBooks/GenericFunctions.ts +++ b/packages/nodes-base/nodes/QuickBooks/GenericFunctions.ts @@ -7,6 +7,7 @@ import { IDataObject, ILoadOptionsFunctions, INodeExecutionData, + INodeProperties, INodePropertyOptions, NodeApiError, } from 'n8n-workflow'; @@ -445,12 +446,12 @@ export function populateFields( export const toOptions = (option: string) => ({ name: option, value: option }); -export const toDisplayName = ({ name, value }: Option) => { +export const toDisplayName = ({ name, value }: Option): INodePropertyOptions => { return { name: splitPascalCase(name), value }; }; export const splitPascalCase = (word: string) => { - return word.match(/($[a-z])|[A-Z][^A-Z]+/g)?.join(' '); + return word.match(/($[a-z])|[A-Z][^A-Z]+/g)!.join(' '); }; export function adjustTransactionDates( diff --git a/packages/nodes-base/nodes/QuickBooks/descriptions/Bill/BillAdditionalFieldsOptions.ts b/packages/nodes-base/nodes/QuickBooks/descriptions/Bill/BillAdditionalFieldsOptions.ts index 5d872f64615069..7b4040d6362979 100644 --- a/packages/nodes-base/nodes/QuickBooks/descriptions/Bill/BillAdditionalFieldsOptions.ts +++ b/packages/nodes-base/nodes/QuickBooks/descriptions/Bill/BillAdditionalFieldsOptions.ts @@ -1,4 +1,8 @@ -export const billAdditionalFieldsOptions = [ +import { + INodeProperties +} from 'n8n-workflow'; + +export const billAdditionalFieldsOptions: INodeProperties[] = [ { displayName: 'Accounts Payable Account', name: 'APAccountRef', diff --git a/packages/nodes-base/nodes/QuickBooks/descriptions/Bill/BillDescription.ts b/packages/nodes-base/nodes/QuickBooks/descriptions/Bill/BillDescription.ts index 211220266da124..5019303b1a234f 100644 --- a/packages/nodes-base/nodes/QuickBooks/descriptions/Bill/BillDescription.ts +++ b/packages/nodes-base/nodes/QuickBooks/descriptions/Bill/BillDescription.ts @@ -6,7 +6,7 @@ import { billAdditionalFieldsOptions, } from './BillAdditionalFieldsOptions'; -export const billOperations = [ +export const billOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -43,9 +43,9 @@ export const billOperations = [ }, }, }, -] as INodeProperties[]; +]; -export const billFields = [ +export const billFields: INodeProperties[] = [ // ---------------------------------- // bill: create // ---------------------------------- @@ -327,4 +327,4 @@ export const billFields = [ // filter out fields that cannot be updated options: billAdditionalFieldsOptions.filter(property => property.name !== 'TotalAmt' && property.name !== 'Balance'), }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/QuickBooks/descriptions/Customer/CustomerAdditionalFieldsOptions.ts b/packages/nodes-base/nodes/QuickBooks/descriptions/Customer/CustomerAdditionalFieldsOptions.ts index db037f9ff5bce7..c299df7f0066b3 100644 --- a/packages/nodes-base/nodes/QuickBooks/descriptions/Customer/CustomerAdditionalFieldsOptions.ts +++ b/packages/nodes-base/nodes/QuickBooks/descriptions/Customer/CustomerAdditionalFieldsOptions.ts @@ -1,4 +1,8 @@ -export const customerAdditionalFieldsOptions = [ +import { + INodeProperties, +} from 'n8n-workflow'; + +export const customerAdditionalFieldsOptions: INodeProperties[] = [ { displayName: 'Active', name: 'Active', diff --git a/packages/nodes-base/nodes/QuickBooks/descriptions/Customer/CustomerDescription.ts b/packages/nodes-base/nodes/QuickBooks/descriptions/Customer/CustomerDescription.ts index 56b53bec2901ed..63e747c72ad570 100644 --- a/packages/nodes-base/nodes/QuickBooks/descriptions/Customer/CustomerDescription.ts +++ b/packages/nodes-base/nodes/QuickBooks/descriptions/Customer/CustomerDescription.ts @@ -6,7 +6,7 @@ import { customerAdditionalFieldsOptions, } from './CustomerAdditionalFieldsOptions'; -export const customerOperations = [ +export const customerOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -39,9 +39,9 @@ export const customerOperations = [ }, }, }, -] as INodeProperties[]; +]; -export const customerFields = [ +export const customerFields: INodeProperties[] = [ // ---------------------------------- // customer: create // ---------------------------------- @@ -219,4 +219,4 @@ export const customerFields = [ }, options: customerAdditionalFieldsOptions, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/QuickBooks/descriptions/Employee/EmployeeAdditionalFieldsOptions.ts b/packages/nodes-base/nodes/QuickBooks/descriptions/Employee/EmployeeAdditionalFieldsOptions.ts index e10304ad335ef6..0a7beadb8929bb 100644 --- a/packages/nodes-base/nodes/QuickBooks/descriptions/Employee/EmployeeAdditionalFieldsOptions.ts +++ b/packages/nodes-base/nodes/QuickBooks/descriptions/Employee/EmployeeAdditionalFieldsOptions.ts @@ -1,4 +1,8 @@ -export const employeeAdditionalFieldsOptions = [ +import { + INodeProperties, +} from 'n8n-workflow'; + +export const employeeAdditionalFieldsOptions: INodeProperties[] = [ { displayName: 'Active', name: 'Active', diff --git a/packages/nodes-base/nodes/QuickBooks/descriptions/Employee/EmployeeDescription.ts b/packages/nodes-base/nodes/QuickBooks/descriptions/Employee/EmployeeDescription.ts index 5fb94c45633361..9629a266469bc9 100644 --- a/packages/nodes-base/nodes/QuickBooks/descriptions/Employee/EmployeeDescription.ts +++ b/packages/nodes-base/nodes/QuickBooks/descriptions/Employee/EmployeeDescription.ts @@ -6,7 +6,7 @@ import { employeeAdditionalFieldsOptions, } from './EmployeeAdditionalFieldsOptions'; -export const employeeOperations = [ +export const employeeOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -39,9 +39,9 @@ export const employeeOperations = [ }, }, }, -] as INodeProperties[]; +]; -export const employeeFields = [ +export const employeeFields: INodeProperties[] = [ // ---------------------------------- // employee: create // ---------------------------------- @@ -233,4 +233,4 @@ export const employeeFields = [ }, options: employeeAdditionalFieldsOptions, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/QuickBooks/descriptions/Estimate/EstimateAdditionalFieldsOptions.ts b/packages/nodes-base/nodes/QuickBooks/descriptions/Estimate/EstimateAdditionalFieldsOptions.ts index 9532b7f442055c..96b811770e0009 100644 --- a/packages/nodes-base/nodes/QuickBooks/descriptions/Estimate/EstimateAdditionalFieldsOptions.ts +++ b/packages/nodes-base/nodes/QuickBooks/descriptions/Estimate/EstimateAdditionalFieldsOptions.ts @@ -1,4 +1,8 @@ -export const estimateAdditionalFieldsOptions = [ +import { + INodeProperties, +} from 'n8n-workflow'; + +export const estimateAdditionalFieldsOptions: INodeProperties[] = [ { displayName: 'Apply Tax After Discount', name: 'ApplyTaxAfterDiscount', diff --git a/packages/nodes-base/nodes/QuickBooks/descriptions/Estimate/EstimateDescription.ts b/packages/nodes-base/nodes/QuickBooks/descriptions/Estimate/EstimateDescription.ts index 25d4af1f3b9c86..d59da70cc30561 100644 --- a/packages/nodes-base/nodes/QuickBooks/descriptions/Estimate/EstimateDescription.ts +++ b/packages/nodes-base/nodes/QuickBooks/descriptions/Estimate/EstimateDescription.ts @@ -6,7 +6,7 @@ import { estimateAdditionalFieldsOptions, } from './EstimateAdditionalFieldsOptions'; -export const estimateOperations = [ +export const estimateOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -47,9 +47,9 @@ export const estimateOperations = [ }, }, }, -] as INodeProperties[]; +]; -export const estimateFields = [ +export const estimateFields: INodeProperties[] = [ // ---------------------------------- // estimate: create // ---------------------------------- @@ -422,4 +422,4 @@ export const estimateFields = [ // filter out fields that cannot be updated options: estimateAdditionalFieldsOptions.filter(property => property.name !== 'TotalAmt' && property.name !== 'TotalTax'), }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/QuickBooks/descriptions/Invoice/InvoiceAdditionalFieldsOptions.ts b/packages/nodes-base/nodes/QuickBooks/descriptions/Invoice/InvoiceAdditionalFieldsOptions.ts index 49a70e085e9cda..df1f15f0020b50 100644 --- a/packages/nodes-base/nodes/QuickBooks/descriptions/Invoice/InvoiceAdditionalFieldsOptions.ts +++ b/packages/nodes-base/nodes/QuickBooks/descriptions/Invoice/InvoiceAdditionalFieldsOptions.ts @@ -1,4 +1,8 @@ -export const invoiceAdditionalFieldsOptions = [ +import { + INodeProperties, +} from 'n8n-workflow'; + +export const invoiceAdditionalFieldsOptions: INodeProperties[] = [ { displayName: 'Balance', name: 'Balance', diff --git a/packages/nodes-base/nodes/QuickBooks/descriptions/Invoice/InvoiceDescription.ts b/packages/nodes-base/nodes/QuickBooks/descriptions/Invoice/InvoiceDescription.ts index 9ad251c7d2a4c4..394252fffb8c3b 100644 --- a/packages/nodes-base/nodes/QuickBooks/descriptions/Invoice/InvoiceDescription.ts +++ b/packages/nodes-base/nodes/QuickBooks/descriptions/Invoice/InvoiceDescription.ts @@ -6,7 +6,7 @@ import { invoiceAdditionalFieldsOptions } from './InvoiceAdditionalFieldsOptions'; -export const invoiceOperations = [ +export const invoiceOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -51,9 +51,9 @@ export const invoiceOperations = [ }, }, }, -] as INodeProperties[]; +]; -export const invoiceFields = [ +export const invoiceFields: INodeProperties[] = [ // ---------------------------------- // invoice: create // ---------------------------------- @@ -448,4 +448,4 @@ export const invoiceFields = [ // filter out fields that cannot be updated options: invoiceAdditionalFieldsOptions.filter(property => property.name !== 'TotalAmt' && property.name !== 'Balance'), }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/QuickBooks/descriptions/Item/ItemDescription.ts b/packages/nodes-base/nodes/QuickBooks/descriptions/Item/ItemDescription.ts index 23d55fad6b57c8..30f7ce38a6349b 100644 --- a/packages/nodes-base/nodes/QuickBooks/descriptions/Item/ItemDescription.ts +++ b/packages/nodes-base/nodes/QuickBooks/descriptions/Item/ItemDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const itemOperations = [ +export const itemOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -27,9 +27,9 @@ export const itemOperations = [ }, }, }, -] as INodeProperties[]; +]; -export const itemFields = [ +export const itemFields: INodeProperties[] = [ // ---------------------------------- // item: get // ---------------------------------- @@ -126,4 +126,4 @@ export const itemFields = [ }, }, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/QuickBooks/descriptions/Payment/PaymentAdditionalFieldsOptions.ts b/packages/nodes-base/nodes/QuickBooks/descriptions/Payment/PaymentAdditionalFieldsOptions.ts index e683fd2e2bf8bd..faceace40f4d59 100644 --- a/packages/nodes-base/nodes/QuickBooks/descriptions/Payment/PaymentAdditionalFieldsOptions.ts +++ b/packages/nodes-base/nodes/QuickBooks/descriptions/Payment/PaymentAdditionalFieldsOptions.ts @@ -1,4 +1,8 @@ -export const paymentAdditionalFieldsOptions = [ +import { + INodeProperties, +} from 'n8n-workflow'; + +export const paymentAdditionalFieldsOptions: INodeProperties[] = [ { displayName: 'Transaction Date', name: 'TxnDate', diff --git a/packages/nodes-base/nodes/QuickBooks/descriptions/Payment/PaymentDescription.ts b/packages/nodes-base/nodes/QuickBooks/descriptions/Payment/PaymentDescription.ts index 9ccd3238af292e..144727655f5252 100644 --- a/packages/nodes-base/nodes/QuickBooks/descriptions/Payment/PaymentDescription.ts +++ b/packages/nodes-base/nodes/QuickBooks/descriptions/Payment/PaymentDescription.ts @@ -6,7 +6,7 @@ import { paymentAdditionalFieldsOptions } from './PaymentAdditionalFieldsOptions'; -export const paymentOperations = [ +export const paymentOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -51,9 +51,9 @@ export const paymentOperations = [ }, }, }, -] as INodeProperties[]; +]; -export const paymentFields = [ +export const paymentFields: INodeProperties[] = [ // ---------------------------------- // payment: create // ---------------------------------- @@ -396,4 +396,4 @@ export const paymentFields = [ }, options: paymentAdditionalFieldsOptions, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/QuickBooks/descriptions/Purchase/PurchaseDescription.ts b/packages/nodes-base/nodes/QuickBooks/descriptions/Purchase/PurchaseDescription.ts index 16827948b1cb39..4e3b360f75e6ca 100644 --- a/packages/nodes-base/nodes/QuickBooks/descriptions/Purchase/PurchaseDescription.ts +++ b/packages/nodes-base/nodes/QuickBooks/descriptions/Purchase/PurchaseDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const purchaseOperations = [ +export const purchaseOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -27,9 +27,9 @@ export const purchaseOperations = [ }, }, }, -] as INodeProperties[]; +]; -export const purchaseFields = [ +export const purchaseFields: INodeProperties[] = [ // ---------------------------------- // purchase: get // ---------------------------------- @@ -126,4 +126,4 @@ export const purchaseFields = [ }, }, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/QuickBooks/descriptions/Transaction/TransactionDescription.ts b/packages/nodes-base/nodes/QuickBooks/descriptions/Transaction/TransactionDescription.ts index 3485305d76f816..982f3d379d4684 100644 --- a/packages/nodes-base/nodes/QuickBooks/descriptions/Transaction/TransactionDescription.ts +++ b/packages/nodes-base/nodes/QuickBooks/descriptions/Transaction/TransactionDescription.ts @@ -16,7 +16,7 @@ import { TRANSACTION_TYPES, } from './constants'; -export const transactionOperations = [ +export const transactionOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -37,9 +37,9 @@ export const transactionOperations = [ }, }, }, -] as INodeProperties[]; +]; -export const transactionFields = [ +export const transactionFields: INodeProperties[] = [ // ---------------------------------- // transaction: getReport // ---------------------------------- @@ -395,4 +395,4 @@ export const transactionFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/QuickBooks/descriptions/Vendor/VendorAdditionalFieldsOptions.ts b/packages/nodes-base/nodes/QuickBooks/descriptions/Vendor/VendorAdditionalFieldsOptions.ts index 68b27a208beaa3..950e28c112bcef 100644 --- a/packages/nodes-base/nodes/QuickBooks/descriptions/Vendor/VendorAdditionalFieldsOptions.ts +++ b/packages/nodes-base/nodes/QuickBooks/descriptions/Vendor/VendorAdditionalFieldsOptions.ts @@ -1,4 +1,8 @@ -export const vendorAdditionalFieldsOptions = [ +import { + INodeProperties, +} from 'n8n-workflow'; + +export const vendorAdditionalFieldsOptions: INodeProperties[] = [ { displayName: 'Account Number', name: 'AcctNum', diff --git a/packages/nodes-base/nodes/QuickBooks/descriptions/Vendor/VendorDescription.ts b/packages/nodes-base/nodes/QuickBooks/descriptions/Vendor/VendorDescription.ts index d675e70688b9e2..0f583f3a41ad0e 100644 --- a/packages/nodes-base/nodes/QuickBooks/descriptions/Vendor/VendorDescription.ts +++ b/packages/nodes-base/nodes/QuickBooks/descriptions/Vendor/VendorDescription.ts @@ -6,7 +6,7 @@ import { vendorAdditionalFieldsOptions, } from './VendorAdditionalFieldsOptions'; -export const vendorOperations = [ +export const vendorOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -39,9 +39,9 @@ export const vendorOperations = [ }, }, }, -] as INodeProperties[]; +]; -export const vendorFields = [ +export const vendorFields: INodeProperties[] = [ // ---------------------------------- // vendor: create // ---------------------------------- @@ -219,4 +219,4 @@ export const vendorFields = [ }, options: vendorAdditionalFieldsOptions, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Raindrop/descriptions/BookmarkDescription.ts b/packages/nodes-base/nodes/Raindrop/descriptions/BookmarkDescription.ts index da8c3c23080e4b..fcbdc938b690fc 100644 --- a/packages/nodes-base/nodes/Raindrop/descriptions/BookmarkDescription.ts +++ b/packages/nodes-base/nodes/Raindrop/descriptions/BookmarkDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const bookmarkOperations = [ +export const bookmarkOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -39,9 +39,9 @@ export const bookmarkOperations = [ }, }, }, -] as INodeProperties[]; +]; -export const bookmarkFields = [ +export const bookmarkFields: INodeProperties[] = [ // ---------------------------------- // bookmark: create // ---------------------------------- @@ -317,4 +317,4 @@ export const bookmarkFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Raindrop/descriptions/CollectionDescription.ts b/packages/nodes-base/nodes/Raindrop/descriptions/CollectionDescription.ts index c8232b8c2f2269..c198d94d4b8035 100644 --- a/packages/nodes-base/nodes/Raindrop/descriptions/CollectionDescription.ts +++ b/packages/nodes-base/nodes/Raindrop/descriptions/CollectionDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const collectionOperations = [ +export const collectionOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -39,9 +39,9 @@ export const collectionOperations = [ }, }, }, -] as INodeProperties[]; +]; -export const collectionFields = [ +export const collectionFields: INodeProperties[] = [ // ---------------------------------- // collection: create // ---------------------------------- @@ -355,4 +355,4 @@ export const collectionFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Raindrop/descriptions/TagDescription.ts b/packages/nodes-base/nodes/Raindrop/descriptions/TagDescription.ts index 2579be7ca8e852..6ce13508a1969a 100644 --- a/packages/nodes-base/nodes/Raindrop/descriptions/TagDescription.ts +++ b/packages/nodes-base/nodes/Raindrop/descriptions/TagDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const tagOperations = [ +export const tagOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -27,9 +27,9 @@ export const tagOperations = [ }, }, }, -] as INodeProperties[]; +]; -export const tagFields = [ +export const tagFields: INodeProperties[] = [ // ---------------------------------- // tag: delete // ---------------------------------- @@ -152,4 +152,4 @@ export const tagFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Raindrop/descriptions/UserDescription.ts b/packages/nodes-base/nodes/Raindrop/descriptions/UserDescription.ts index 8d452487a3dec5..42d7c103e46049 100644 --- a/packages/nodes-base/nodes/Raindrop/descriptions/UserDescription.ts +++ b/packages/nodes-base/nodes/Raindrop/descriptions/UserDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const userOperations = [ +export const userOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -23,9 +23,9 @@ export const userOperations = [ }, }, }, -] as INodeProperties[]; +]; -export const userFields = [ +export const userFields: INodeProperties[] = [ // ---------------------------------- // user: get // ---------------------------------- @@ -68,4 +68,4 @@ export const userFields = [ }, }, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Reddit/PostCommentDescription.ts b/packages/nodes-base/nodes/Reddit/PostCommentDescription.ts index 075ad92d8f9a29..c67dcd8a6bfb77 100644 --- a/packages/nodes-base/nodes/Reddit/PostCommentDescription.ts +++ b/packages/nodes-base/nodes/Reddit/PostCommentDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const postCommentOperations = [ +export const postCommentOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -39,9 +39,9 @@ export const postCommentOperations = [ }, }, }, -] as INodeProperties[]; +]; -export const postCommentFields = [ +export const postCommentFields: INodeProperties[] = [ // ---------------------------------- // postComment: create // ---------------------------------- @@ -228,4 +228,4 @@ export const postCommentFields = [ }, }, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Reddit/PostDescription.ts b/packages/nodes-base/nodes/Reddit/PostDescription.ts index 43f960dc3ecef8..41d454070a56f3 100644 --- a/packages/nodes-base/nodes/Reddit/PostDescription.ts +++ b/packages/nodes-base/nodes/Reddit/PostDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const postOperations = [ +export const postOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -44,9 +44,9 @@ export const postOperations = [ }, }, }, -] as INodeProperties[]; +]; -export const postFields = [ +export const postFields: INodeProperties[] = [ // ---------------------------------- // post: create // ---------------------------------- @@ -515,4 +515,4 @@ export const postFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Reddit/ProfileDescription.ts b/packages/nodes-base/nodes/Reddit/ProfileDescription.ts index 1ff07306039add..5f8f65e8c4965d 100644 --- a/packages/nodes-base/nodes/Reddit/ProfileDescription.ts +++ b/packages/nodes-base/nodes/Reddit/ProfileDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const profileOperations = [ +export const profileOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -23,10 +23,10 @@ export const profileOperations = [ default: 'get', description: 'Operation to perform', }, -] as INodeProperties[]; +]; -export const profileFields = [ +export const profileFields: INodeProperties[] = [ { displayName: 'Details', name: 'details', @@ -77,4 +77,4 @@ export const profileFields = [ }, }, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Reddit/SubredditDescription.ts b/packages/nodes-base/nodes/Reddit/SubredditDescription.ts index c7c2c7626faa36..d24919dcc09f95 100644 --- a/packages/nodes-base/nodes/Reddit/SubredditDescription.ts +++ b/packages/nodes-base/nodes/Reddit/SubredditDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const subredditOperations = [ +export const subredditOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -29,9 +29,9 @@ export const subredditOperations = [ }, }, }, -] as INodeProperties[]; +]; -export const subredditFields = [ +export const subredditFields: INodeProperties[] = [ // ---------------------------------- // subreddit: get // ---------------------------------- @@ -159,4 +159,4 @@ export const subredditFields = [ }, }, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Reddit/UserDescription.ts b/packages/nodes-base/nodes/Reddit/UserDescription.ts index e181c3c6d753eb..1defaf6e1f3356 100644 --- a/packages/nodes-base/nodes/Reddit/UserDescription.ts +++ b/packages/nodes-base/nodes/Reddit/UserDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const userOperations = [ +export const userOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -23,9 +23,9 @@ export const userOperations = [ default: 'get', description: 'Operation to perform', }, -] as INodeProperties[]; +]; -export const userFields = [ +export const userFields: INodeProperties[] = [ { displayName: 'Username', name: 'username', @@ -137,4 +137,4 @@ export const userFields = [ }, }, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Salesforce/AccountDescription.ts b/packages/nodes-base/nodes/Salesforce/AccountDescription.ts index b00a4331dcfdfc..4053d454c5cb3d 100644 --- a/packages/nodes-base/nodes/Salesforce/AccountDescription.ts +++ b/packages/nodes-base/nodes/Salesforce/AccountDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const accountOperations = [ +export const accountOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -59,9 +59,9 @@ export const accountOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const accountFields = [ +export const accountFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* account:create */ @@ -270,7 +270,7 @@ export const accountFields = [ { displayName: 'Number Of Employees', name: 'numberOfEmployees', - type: 'integer', + type: 'number', default: '', description: 'Number of employees', }, @@ -304,6 +304,7 @@ export const accountFields = [ displayName: 'SicDesc', name: 'sicDesc', type: 'string', + default: '', typeOptions: { alwaysOpenEditWindow: true, }, @@ -577,7 +578,7 @@ export const accountFields = [ { displayName: 'Number Of Employees', name: 'numberOfEmployees', - type: 'integer', + type: 'number', default: '', description: 'Number of employees', }, @@ -592,6 +593,7 @@ export const accountFields = [ displayName: 'SicDesc', name: 'sicDesc', type: 'string', + default: '', typeOptions: { alwaysOpenEditWindow: true, }, @@ -905,4 +907,4 @@ export const accountFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Salesforce/AttachmentDescription.ts b/packages/nodes-base/nodes/Salesforce/AttachmentDescription.ts index 624fe181280ce9..c2797035b6f948 100644 --- a/packages/nodes-base/nodes/Salesforce/AttachmentDescription.ts +++ b/packages/nodes-base/nodes/Salesforce/AttachmentDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const attachmentOperations = [ +export const attachmentOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -49,9 +49,9 @@ export const attachmentOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const attachmentFields = [ +export const attachmentFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* attachment:create */ @@ -412,4 +412,4 @@ export const attachmentFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Salesforce/CaseDescription.ts b/packages/nodes-base/nodes/Salesforce/CaseDescription.ts index aadf26e2068349..263bcd943ee0d5 100644 --- a/packages/nodes-base/nodes/Salesforce/CaseDescription.ts +++ b/packages/nodes-base/nodes/Salesforce/CaseDescription.ts @@ -1,6 +1,6 @@ import { INodeProperties } from 'n8n-workflow'; -export const caseOperations = [ +export const caseOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -52,9 +52,9 @@ export const caseOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const caseFields = [ +export const caseFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* case:create */ @@ -716,4 +716,4 @@ export const caseFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Salesforce/ContactDescription.ts b/packages/nodes-base/nodes/Salesforce/ContactDescription.ts index e47db24b0d7574..a49fe57c5b80e1 100644 --- a/packages/nodes-base/nodes/Salesforce/ContactDescription.ts +++ b/packages/nodes-base/nodes/Salesforce/ContactDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const contactOperations = [ +export const contactOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -64,9 +64,9 @@ export const contactOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const contactFields = [ +export const contactFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* contact:create */ @@ -1047,4 +1047,4 @@ export const contactFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Salesforce/CustomObjectDescription.ts b/packages/nodes-base/nodes/Salesforce/CustomObjectDescription.ts index 972633ed799bbe..77ac5be940a689 100644 --- a/packages/nodes-base/nodes/Salesforce/CustomObjectDescription.ts +++ b/packages/nodes-base/nodes/Salesforce/CustomObjectDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const customObjectOperations = [ +export const customObjectOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -49,9 +49,9 @@ export const customObjectOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const customObjectFields = [ +export const customObjectFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* customObject:create */ @@ -575,4 +575,4 @@ export const customObjectFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Salesforce/DocumentDescription.ts b/packages/nodes-base/nodes/Salesforce/DocumentDescription.ts index 901f429a134910..b6db104abb0dba 100644 --- a/packages/nodes-base/nodes/Salesforce/DocumentDescription.ts +++ b/packages/nodes-base/nodes/Salesforce/DocumentDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const documentOperations = [ +export const documentOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -24,9 +24,9 @@ export const documentOperations = [ default: 'upload', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const documentFields = [ +export const documentFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* document:upload */ @@ -112,4 +112,4 @@ export const documentFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Salesforce/FlowDescription.ts b/packages/nodes-base/nodes/Salesforce/FlowDescription.ts index 49a6af771fb660..76f18cfdf7b596 100644 --- a/packages/nodes-base/nodes/Salesforce/FlowDescription.ts +++ b/packages/nodes-base/nodes/Salesforce/FlowDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const flowOperations = [ +export const flowOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -29,9 +29,9 @@ export const flowOperations = [ default: 'invoke', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const flowFields = [ +export const flowFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* flow:getAll */ @@ -182,4 +182,4 @@ export const flowFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Salesforce/LeadDescription.ts b/packages/nodes-base/nodes/Salesforce/LeadDescription.ts index fe33c3eb45a5c8..36f4b4716680a6 100644 --- a/packages/nodes-base/nodes/Salesforce/LeadDescription.ts +++ b/packages/nodes-base/nodes/Salesforce/LeadDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const leadOperations = [ +export const leadOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -64,9 +64,9 @@ export const leadOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const leadFields = [ +export const leadFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* lead:create */ @@ -257,7 +257,7 @@ export const leadFields = [ { displayName: 'Is Unread By Owner', name: 'IsUnreadByOwner', - type: 'Boolean', + type: 'boolean', default: false, description: 'If true, lead has been assigned, but not yet viewed. See Unread Leads for more information. Label is Unread By Owner.', }, @@ -517,7 +517,7 @@ export const leadFields = [ { displayName: 'Is Unread By Owner', name: 'IsUnreadByOwner', - type: 'Boolean', + type: 'boolean', default: false, description: 'If true, lead has been assigned, but not yet viewed. See Unread Leads for more information. Label is Unread By Owner.', }, @@ -983,4 +983,4 @@ export const leadFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Salesforce/OpportunityDescription.ts b/packages/nodes-base/nodes/Salesforce/OpportunityDescription.ts index f4d4f529ea3280..3d78f17cccc39c 100644 --- a/packages/nodes-base/nodes/Salesforce/OpportunityDescription.ts +++ b/packages/nodes-base/nodes/Salesforce/OpportunityDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const opportunityOperations = [ +export const opportunityOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -59,9 +59,9 @@ export const opportunityOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const opportunityFields = [ +export const opportunityFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* opportunity:create */ @@ -813,4 +813,4 @@ export const opportunityFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Salesforce/SearchDescription.ts b/packages/nodes-base/nodes/Salesforce/SearchDescription.ts index e13e8fa616f855..bfabdd594ec931 100644 --- a/packages/nodes-base/nodes/Salesforce/SearchDescription.ts +++ b/packages/nodes-base/nodes/Salesforce/SearchDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const searchOperations = [ +export const searchOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -24,9 +24,9 @@ export const searchOperations = [ default: 'query', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const searchFields = [ +export const searchFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* search:query */ @@ -49,4 +49,4 @@ export const searchFields = [ }, description: 'A SOQL query. An example query parameter string might look like: “SELECT+Name+FROM+MyObject”. If the SOQL query string is invalid, a MALFORMED_QUERY response is returned.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Salesforce/TaskDescription.ts b/packages/nodes-base/nodes/Salesforce/TaskDescription.ts index ff7a7389bc437a..17bf443fbed1ac 100644 --- a/packages/nodes-base/nodes/Salesforce/TaskDescription.ts +++ b/packages/nodes-base/nodes/Salesforce/TaskDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const taskOperations = [ +export const taskOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -49,9 +49,9 @@ export const taskOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const taskFields = [ +export const taskFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* task:create */ @@ -939,4 +939,4 @@ export const taskFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Salesforce/UserDescription.ts b/packages/nodes-base/nodes/Salesforce/UserDescription.ts index ecfc95bf78e107..7352b17a5a9724 100644 --- a/packages/nodes-base/nodes/Salesforce/UserDescription.ts +++ b/packages/nodes-base/nodes/Salesforce/UserDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const userOperations = [ +export const userOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -29,9 +29,9 @@ export const userOperations = [ default: 'get', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const userFields = [ +export const userFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* user:get */ @@ -188,4 +188,4 @@ export const userFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Salesmate/ActivityDescription.ts b/packages/nodes-base/nodes/Salesmate/ActivityDescription.ts index 47174e2a06f607..0c97c5e413bd32 100644 --- a/packages/nodes-base/nodes/Salesmate/ActivityDescription.ts +++ b/packages/nodes-base/nodes/Salesmate/ActivityDescription.ts @@ -1,6 +1,6 @@ import { INodeProperties } from 'n8n-workflow'; -export const activityOperations = [ +export const activityOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -42,9 +42,9 @@ export const activityOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const activityFields = [ +export const activityFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* activity:create */ @@ -626,4 +626,4 @@ export const activityFields = [ }, description: 'If more than one activity add them separated by ,', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Salesmate/CompanyDescription.ts b/packages/nodes-base/nodes/Salesmate/CompanyDescription.ts index 8b689c73da13ec..f1dbb160316d42 100644 --- a/packages/nodes-base/nodes/Salesmate/CompanyDescription.ts +++ b/packages/nodes-base/nodes/Salesmate/CompanyDescription.ts @@ -1,6 +1,6 @@ import { INodeProperties } from 'n8n-workflow'; -export const companyOperations = [ +export const companyOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -42,9 +42,9 @@ export const companyOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const companyFields = [ +export const companyFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* company:create */ @@ -723,4 +723,4 @@ export const companyFields = [ }, description: 'If more than one company add them separated by ,', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Salesmate/DealDescription.ts b/packages/nodes-base/nodes/Salesmate/DealDescription.ts index 97c91421c3da1f..65b5cc1b87b454 100644 --- a/packages/nodes-base/nodes/Salesmate/DealDescription.ts +++ b/packages/nodes-base/nodes/Salesmate/DealDescription.ts @@ -1,6 +1,6 @@ import { INodeProperties } from 'n8n-workflow'; -export const dealOperations = [ +export const dealOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -42,9 +42,9 @@ export const dealOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const dealFields = [ +export const dealFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* deal:create */ @@ -894,4 +894,4 @@ export const dealFields = [ }, description: 'If more than one deal add them separated by ,', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/SeaTable/RowDescription.ts b/packages/nodes-base/nodes/SeaTable/RowDescription.ts index 0601585318893e..8e09b34f50dec0 100644 --- a/packages/nodes-base/nodes/SeaTable/RowDescription.ts +++ b/packages/nodes-base/nodes/SeaTable/RowDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const rowOperations = [ +export const rowOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -37,9 +37,9 @@ export const rowOperations = [ default: 'create', description: 'The operation being performed', }, -] as INodeProperties[]; +]; -export const rowFields = [ +export const rowFields: INodeProperties[] = [ // ---------------------------------- // shared // ---------------------------------- @@ -345,4 +345,4 @@ export const rowFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/SecurityScorecard/descriptions/CompanyDescription.ts b/packages/nodes-base/nodes/SecurityScorecard/descriptions/CompanyDescription.ts index 5b26ca780db392..dc0e33b5807cfd 100644 --- a/packages/nodes-base/nodes/SecurityScorecard/descriptions/CompanyDescription.ts +++ b/packages/nodes-base/nodes/SecurityScorecard/descriptions/CompanyDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const companyOperations = [ +export const companyOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -44,9 +44,9 @@ export const companyOperations = [ ], default: 'getFactor', }, -] as INodeProperties[]; +]; -export const companyFields = [ +export const companyFields: INodeProperties[] = [ { displayName: 'Scorecard Identifier', name: 'scorecardIdentifier', @@ -250,4 +250,4 @@ export const companyFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/SecurityScorecard/descriptions/IndustryDescription.ts b/packages/nodes-base/nodes/SecurityScorecard/descriptions/IndustryDescription.ts index 3d9dbc8b43cf1d..bc2b1068b76717 100644 --- a/packages/nodes-base/nodes/SecurityScorecard/descriptions/IndustryDescription.ts +++ b/packages/nodes-base/nodes/SecurityScorecard/descriptions/IndustryDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const industryOperations = [ +export const industryOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -31,13 +31,14 @@ export const industryOperations = [ ], default: 'getFactor', }, -] as INodeProperties[]; +]; -export const industryFields = [ +export const industryFields: INodeProperties[] = [ { displayName: 'Industry', name: 'industry', type: 'options', + default: 'food', options: [ { name: 'Food', @@ -170,4 +171,4 @@ export const industryFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/SecurityScorecard/descriptions/InviteDescription.ts b/packages/nodes-base/nodes/SecurityScorecard/descriptions/InviteDescription.ts index 2710d42ea8d482..ca275bde8dc7ac 100644 --- a/packages/nodes-base/nodes/SecurityScorecard/descriptions/InviteDescription.ts +++ b/packages/nodes-base/nodes/SecurityScorecard/descriptions/InviteDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const inviteOperations = [ +export const inviteOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -24,9 +24,9 @@ export const inviteOperations = [ ], default: 'create', }, -] as INodeProperties[]; +]; -export const inviteFields = [ +export const inviteFields: INodeProperties[] = [ { displayName: 'Email', name: 'email', @@ -175,4 +175,4 @@ export const inviteFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/SecurityScorecard/descriptions/PortfolioCompanyDescription.ts b/packages/nodes-base/nodes/SecurityScorecard/descriptions/PortfolioCompanyDescription.ts index 6842e531facce4..8e3ef9cb12aa90 100644 --- a/packages/nodes-base/nodes/SecurityScorecard/descriptions/PortfolioCompanyDescription.ts +++ b/packages/nodes-base/nodes/SecurityScorecard/descriptions/PortfolioCompanyDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const portfolioCompanyOperations = [ +export const portfolioCompanyOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -34,9 +34,9 @@ export const portfolioCompanyOperations = [ ], default: 'add', }, -] as INodeProperties[]; +]; -export const portfolioCompanyFields = [ +export const portfolioCompanyFields: INodeProperties[] = [ { displayName: 'Portfolio ID', name: 'portfolioId', @@ -184,5 +184,5 @@ export const portfolioCompanyFields = [ description: 'Company\'s domain name', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/SecurityScorecard/descriptions/PortfolioDescription.ts b/packages/nodes-base/nodes/SecurityScorecard/descriptions/PortfolioDescription.ts index f6cbe5d6a6198d..a9d0594c280b07 100644 --- a/packages/nodes-base/nodes/SecurityScorecard/descriptions/PortfolioDescription.ts +++ b/packages/nodes-base/nodes/SecurityScorecard/descriptions/PortfolioDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const portfolioOperations = [ +export const portfolioOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -39,9 +39,9 @@ export const portfolioOperations = [ ], default: 'create', }, -] as INodeProperties[]; +]; -export const portfolioFields = [ +export const portfolioFields: INodeProperties[] = [ { displayName: 'Return All', name: 'returnAll', @@ -174,5 +174,5 @@ export const portfolioFields = [ ], default: 'shared', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/SecurityScorecard/descriptions/ReportDescription.ts b/packages/nodes-base/nodes/SecurityScorecard/descriptions/ReportDescription.ts index 9501d66a0526a8..34d21d46482d34 100644 --- a/packages/nodes-base/nodes/SecurityScorecard/descriptions/ReportDescription.ts +++ b/packages/nodes-base/nodes/SecurityScorecard/descriptions/ReportDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const reportOperations = [ +export const reportOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -34,9 +34,9 @@ export const reportOperations = [ ], default: 'getAll', }, -] as INodeProperties[]; +]; -export const reportFields = [ +export const reportFields: INodeProperties[] = [ { displayName: 'Return All', name: 'returnAll', @@ -217,6 +217,7 @@ export const reportFields = [ displayName: 'Date', name: 'date', type: 'dateTime', + default: '', required: true, displayOptions: { show: { @@ -380,4 +381,4 @@ export const reportFields = [ }, description: 'Name of the binary property to which to write the data of the read file.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Segment/GroupDescription.ts b/packages/nodes-base/nodes/Segment/GroupDescription.ts index bf7e442cadf676..84bfa765462887 100644 --- a/packages/nodes-base/nodes/Segment/GroupDescription.ts +++ b/packages/nodes-base/nodes/Segment/GroupDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const groupOperations = [ +export const groupOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -24,9 +24,9 @@ export const groupOperations = [ default: 'add', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const groupFields = [ +export const groupFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* group:add */ @@ -349,4 +349,4 @@ export const groupFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Segment/IdentifyDescription.ts b/packages/nodes-base/nodes/Segment/IdentifyDescription.ts index 06657996567dd7..976da4ff34392a 100644 --- a/packages/nodes-base/nodes/Segment/IdentifyDescription.ts +++ b/packages/nodes-base/nodes/Segment/IdentifyDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const identifyOperations = [ +export const identifyOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -24,9 +24,9 @@ export const identifyOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const identifyFields = [ +export const identifyFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* identify:create */ @@ -331,4 +331,4 @@ export const identifyFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Segment/TrackDescription.ts b/packages/nodes-base/nodes/Segment/TrackDescription.ts index 5bf3d0d57ec97b..96a064897cfdc3 100644 --- a/packages/nodes-base/nodes/Segment/TrackDescription.ts +++ b/packages/nodes-base/nodes/Segment/TrackDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const trackOperations = [ +export const trackOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -29,9 +29,9 @@ export const trackOperations = [ default: 'event', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const trackFields = [ +export const trackFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* track:event */ @@ -673,4 +673,4 @@ export const trackFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/SendGrid/ContactDescription.ts b/packages/nodes-base/nodes/SendGrid/ContactDescription.ts index a94fccc986ed5a..e8befc39913ca0 100644 --- a/packages/nodes-base/nodes/SendGrid/ContactDescription.ts +++ b/packages/nodes-base/nodes/SendGrid/ContactDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const contactOperations = [ +export const contactOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -39,9 +39,9 @@ export const contactOperations = [ default: 'upsert', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const contactFields = [ +export const contactFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* contact:getAll */ /* -------------------------------------------------------------------------- */ @@ -295,6 +295,7 @@ export const contactFields = [ displayName: 'Contact IDs', name: 'ids', type: 'string', + default: '', displayOptions: { show: { resource: [ @@ -401,4 +402,4 @@ export const contactFields = [ default: '', description: 'Email of the contact.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/SendGrid/ListDescription.ts b/packages/nodes-base/nodes/SendGrid/ListDescription.ts index 23da1e836edc70..33d826514b036d 100644 --- a/packages/nodes-base/nodes/SendGrid/ListDescription.ts +++ b/packages/nodes-base/nodes/SendGrid/ListDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const listOperations = [ +export const listOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -44,9 +44,9 @@ export const listOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const listFields = [ +export const listFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* list:getAll */ /* -------------------------------------------------------------------------- */ @@ -230,4 +230,4 @@ export const listFields = [ default: '', description: 'Name of the list.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/SendGrid/MailDescription.ts b/packages/nodes-base/nodes/SendGrid/MailDescription.ts index afe6ca0a412eaa..383733f0f60f75 100644 --- a/packages/nodes-base/nodes/SendGrid/MailDescription.ts +++ b/packages/nodes-base/nodes/SendGrid/MailDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const mailOperations = [ +export const mailOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -24,9 +24,9 @@ export const mailOperations = [ default: 'send', description: 'Operation to perform.', }, -] as INodeProperties[]; +]; -export const mailFields = [ +export const mailFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* mail:send */ /* -------------------------------------------------------------------------- */ @@ -343,7 +343,7 @@ export const mailFields = [ }, ], }, -] as INodeProperties[]; +]; export type SendMailBody = { personalizations: Array<{ diff --git a/packages/nodes-base/nodes/Sendy/CampaignDescription.ts b/packages/nodes-base/nodes/Sendy/CampaignDescription.ts index 7c077ff3f82c8f..a6e31830cfeb84 100644 --- a/packages/nodes-base/nodes/Sendy/CampaignDescription.ts +++ b/packages/nodes-base/nodes/Sendy/CampaignDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const campaignOperations = [ +export const campaignOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -24,9 +24,9 @@ export const campaignOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const campaignFields = [ +export const campaignFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* campaign:create */ @@ -245,4 +245,4 @@ export const campaignFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Sendy/SubscriberDescription.ts b/packages/nodes-base/nodes/Sendy/SubscriberDescription.ts index 303973ce3a2145..3972ba2a10d55a 100644 --- a/packages/nodes-base/nodes/Sendy/SubscriberDescription.ts +++ b/packages/nodes-base/nodes/Sendy/SubscriberDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const subscriberOperations = [ +export const subscriberOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -44,9 +44,9 @@ export const subscriberOperations = [ default: 'add', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const subscriberFields = [ +export const subscriberFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* subscriber:add */ @@ -284,4 +284,4 @@ export const subscriberFields = [ default: '', description: `The list id you want to subscribe a user to. This encrypted & hashed id can be found under View all lists section named ID.`, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/SentryIo/EventDescription.ts b/packages/nodes-base/nodes/SentryIo/EventDescription.ts index b4d1d024aa52b7..20894aea7a9e0b 100644 --- a/packages/nodes-base/nodes/SentryIo/EventDescription.ts +++ b/packages/nodes-base/nodes/SentryIo/EventDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const eventOperations = [ +export const eventOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -29,9 +29,9 @@ export const eventOperations = [ default: 'get', description: 'The operation to perform', }, -] as INodeProperties[]; +]; -export const eventFields = [ +export const eventFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* event:getAll */ /* -------------------------------------------------------------------------- */ @@ -138,7 +138,7 @@ export const eventFields = [ default: 100, description: 'How many results to return.', }, - + /* -------------------------------------------------------------------------- */ /* event:get */ /* -------------------------------------------------------------------------- */ @@ -202,4 +202,4 @@ export const eventFields = [ required: true, description: 'The ID of the event to retrieve (either the numeric primary-key or the hexadecimal ID as reported by the raven client).', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/SentryIo/IssueDescription.ts b/packages/nodes-base/nodes/SentryIo/IssueDescription.ts index 20977b6ac9a660..83b5c2b09481be 100644 --- a/packages/nodes-base/nodes/SentryIo/IssueDescription.ts +++ b/packages/nodes-base/nodes/SentryIo/IssueDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const issueOperations = [ +export const issueOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -39,9 +39,9 @@ export const issueOperations = [ default: 'get', description: 'The operation to perform', }, -] as INodeProperties[]; +]; -export const issueFields = [ +export const issueFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* issue:get/delete */ /* -------------------------------------------------------------------------- */ @@ -306,4 +306,4 @@ export const issueFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/SentryIo/OrganizationDescription.ts b/packages/nodes-base/nodes/SentryIo/OrganizationDescription.ts index ed8fb7008cd17b..791b6af40673b8 100644 --- a/packages/nodes-base/nodes/SentryIo/OrganizationDescription.ts +++ b/packages/nodes-base/nodes/SentryIo/OrganizationDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const organizationOperations = [ +export const organizationOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -39,9 +39,9 @@ export const organizationOperations = [ default: 'get', description: 'The operation to perform', }, -] as INodeProperties[]; +]; -export const organizationFields = [ +export const organizationFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* organization:getAll */ /* -------------------------------------------------------------------------- */ @@ -220,6 +220,7 @@ export const organizationFields = [ typeOptions: { loadOptionsMethod: 'getOrganizations', }, + default: '', displayOptions: { show: { resource: [ @@ -266,4 +267,4 @@ export const organizationFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/SentryIo/ProjectDescription.ts b/packages/nodes-base/nodes/SentryIo/ProjectDescription.ts index d19de2e7d82c22..80e448fa109322 100644 --- a/packages/nodes-base/nodes/SentryIo/ProjectDescription.ts +++ b/packages/nodes-base/nodes/SentryIo/ProjectDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const projectOperations = [ +export const projectOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -44,9 +44,9 @@ export const projectOperations = [ default: 'get', description: 'The operation to perform', }, -] as INodeProperties[]; +]; -export const projectFields = [ +export const projectFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* project:create/get */ /* -------------------------------------------------------------------------- */ @@ -375,4 +375,4 @@ export const projectFields = [ required: true, description: 'The slug of the project to delete.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/SentryIo/ReleaseDescription.ts b/packages/nodes-base/nodes/SentryIo/ReleaseDescription.ts index 3322efe143f961..a33b4b63098225 100644 --- a/packages/nodes-base/nodes/SentryIo/ReleaseDescription.ts +++ b/packages/nodes-base/nodes/SentryIo/ReleaseDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const releaseOperations = [ +export const releaseOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -44,9 +44,9 @@ export const releaseOperations = [ default: 'get', description: 'The operation to perform', }, -] as INodeProperties[]; +]; -export const releaseFields = [ +export const releaseFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* release:getAll */ /* -------------------------------------------------------------------------- */ @@ -672,4 +672,4 @@ export const releaseFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/SentryIo/TeamDescription.ts b/packages/nodes-base/nodes/SentryIo/TeamDescription.ts index f57ad9cec53f98..a96c10d855b2f8 100644 --- a/packages/nodes-base/nodes/SentryIo/TeamDescription.ts +++ b/packages/nodes-base/nodes/SentryIo/TeamDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const teamOperations = [ +export const teamOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -44,9 +44,9 @@ export const teamOperations = [ default: 'get', description: 'The operation to perform', }, -] as INodeProperties[]; +]; -export const teamFields = [ +export const teamFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* team:getAll */ /* -------------------------------------------------------------------------- */ @@ -361,4 +361,4 @@ export const teamFields = [ required: true, description: 'The slug of the team to delete.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/ServiceNow/BusinessServiceDescription.ts b/packages/nodes-base/nodes/ServiceNow/BusinessServiceDescription.ts index 74696709f59fe0..c5fd6dd0fe1ff4 100644 --- a/packages/nodes-base/nodes/ServiceNow/BusinessServiceDescription.ts +++ b/packages/nodes-base/nodes/ServiceNow/BusinessServiceDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const businessServiceOperations = [ +export const businessServiceOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -22,9 +22,9 @@ export const businessServiceOperations = [ ], default: 'getAll', }, -] as INodeProperties[]; +]; -export const businessServiceFields = [ +export const businessServiceFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* businessService:getAll */ @@ -134,4 +134,4 @@ export const businessServiceFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/ServiceNow/ConfigurationItemsDescription.ts b/packages/nodes-base/nodes/ServiceNow/ConfigurationItemsDescription.ts index 8537312f25dbc8..1d3f738f08c9c8 100644 --- a/packages/nodes-base/nodes/ServiceNow/ConfigurationItemsDescription.ts +++ b/packages/nodes-base/nodes/ServiceNow/ConfigurationItemsDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const configurationItemsOperations = [ +export const configurationItemsOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -22,9 +22,9 @@ export const configurationItemsOperations = [ ], default: 'getAll', }, -] as INodeProperties[]; +]; -export const configurationItemsFields = [ +export const configurationItemsFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* configurationItems:getAll */ @@ -134,4 +134,4 @@ export const configurationItemsFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/ServiceNow/DepartmentDescription.ts b/packages/nodes-base/nodes/ServiceNow/DepartmentDescription.ts index 928f568db8a676..28c3d93090f74f 100644 --- a/packages/nodes-base/nodes/ServiceNow/DepartmentDescription.ts +++ b/packages/nodes-base/nodes/ServiceNow/DepartmentDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const departmentOperations = [ +export const departmentOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -22,9 +22,9 @@ export const departmentOperations = [ ], default: 'getAll', }, -] as INodeProperties[]; +]; -export const departmentFields = [ +export const departmentFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* department:getAll */ @@ -134,4 +134,4 @@ export const departmentFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/ServiceNow/DictionaryDescription.ts b/packages/nodes-base/nodes/ServiceNow/DictionaryDescription.ts index 84fe64dfb29751..ba1152b31c8795 100644 --- a/packages/nodes-base/nodes/ServiceNow/DictionaryDescription.ts +++ b/packages/nodes-base/nodes/ServiceNow/DictionaryDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const dictionaryOperations = [ +export const dictionaryOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -22,9 +22,9 @@ export const dictionaryOperations = [ ], default: 'getAll', }, -] as INodeProperties[]; +]; -export const dictionaryFields = [ +export const dictionaryFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* dictionary:getAll */ @@ -134,4 +134,4 @@ export const dictionaryFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/ServiceNow/IncidentDescription.ts b/packages/nodes-base/nodes/ServiceNow/IncidentDescription.ts index 5d5ce44656c2b7..ba06f0d45e721c 100644 --- a/packages/nodes-base/nodes/ServiceNow/IncidentDescription.ts +++ b/packages/nodes-base/nodes/ServiceNow/IncidentDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const incidentOperations = [ +export const incidentOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -38,9 +38,9 @@ export const incidentOperations = [ ], default: 'get', }, -] as INodeProperties[]; +]; -export const incidentFields = [ +export const incidentFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* incident:create */ /* -------------------------------------------------------------------------- */ @@ -670,4 +670,4 @@ export const incidentFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/ServiceNow/TableRecordDescription.ts b/packages/nodes-base/nodes/ServiceNow/TableRecordDescription.ts index f5f2074530f196..9c60fbc51107b6 100644 --- a/packages/nodes-base/nodes/ServiceNow/TableRecordDescription.ts +++ b/packages/nodes-base/nodes/ServiceNow/TableRecordDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const tableRecordOperations = [ +export const tableRecordOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -38,9 +38,9 @@ export const tableRecordOperations = [ ], default: 'get', }, -] as INodeProperties[]; +]; -export const tableRecordFields = [ +export const tableRecordFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* tableRecord:create */ /* -------------------------------------------------------------------------- */ @@ -552,4 +552,4 @@ export const tableRecordFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/ServiceNow/UserDescription.ts b/packages/nodes-base/nodes/ServiceNow/UserDescription.ts index 494a3129571579..ca76b3c4b4bf42 100644 --- a/packages/nodes-base/nodes/ServiceNow/UserDescription.ts +++ b/packages/nodes-base/nodes/ServiceNow/UserDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const userOperations = [ +export const userOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -38,9 +38,9 @@ export const userOperations = [ ], default: 'get', }, -] as INodeProperties[]; +]; -export const userFields = [ +export const userFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* user:create */ /* -------------------------------------------------------------------------- */ @@ -729,4 +729,4 @@ export const userFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/ServiceNow/UserGroupDescription.ts b/packages/nodes-base/nodes/ServiceNow/UserGroupDescription.ts index d98c3a74ff2c06..271e7ea76d30ee 100644 --- a/packages/nodes-base/nodes/ServiceNow/UserGroupDescription.ts +++ b/packages/nodes-base/nodes/ServiceNow/UserGroupDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const userGroupOperations = [ +export const userGroupOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -22,9 +22,9 @@ export const userGroupOperations = [ ], default: 'getAll', }, -] as INodeProperties[]; +]; -export const userGroupFields = [ +export const userGroupFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* userGroup:getAll */ @@ -134,4 +134,4 @@ export const userGroupFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/ServiceNow/UserRoleDescription.ts b/packages/nodes-base/nodes/ServiceNow/UserRoleDescription.ts index f8cde5ca44bef8..59bb84f4fa10fb 100644 --- a/packages/nodes-base/nodes/ServiceNow/UserRoleDescription.ts +++ b/packages/nodes-base/nodes/ServiceNow/UserRoleDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const userRoleOperations = [ +export const userRoleOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -22,9 +22,9 @@ export const userRoleOperations = [ ], default: 'getAll', }, -] as INodeProperties[]; +]; -export const userRoleFields = [ +export const userRoleFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* userRole:getAll */ @@ -134,4 +134,4 @@ export const userRoleFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Shopify/OrderDescription.ts b/packages/nodes-base/nodes/Shopify/OrderDescription.ts index eb2d9f8dd81f4d..eaf1549c92b64f 100644 --- a/packages/nodes-base/nodes/Shopify/OrderDescription.ts +++ b/packages/nodes-base/nodes/Shopify/OrderDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const orderOperations = [ +export const orderOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -44,9 +44,9 @@ export const orderOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const orderFields = [ +export const orderFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* order:create */ @@ -949,4 +949,4 @@ export const orderFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Shopify/ProductDescription.ts b/packages/nodes-base/nodes/Shopify/ProductDescription.ts index 5cf7b95238f73f..ed56cddbeb01ae 100644 --- a/packages/nodes-base/nodes/Shopify/ProductDescription.ts +++ b/packages/nodes-base/nodes/Shopify/ProductDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const productOperations = [ +export const productOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -44,9 +44,9 @@ export const productOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const productFields = [ +export const productFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* product:create/update */ @@ -782,4 +782,4 @@ export const productFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Slack/ChannelDescription.ts b/packages/nodes-base/nodes/Slack/ChannelDescription.ts index ba494826758b30..5d4a5e6dd66c68 100644 --- a/packages/nodes-base/nodes/Slack/ChannelDescription.ts +++ b/packages/nodes-base/nodes/Slack/ChannelDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const channelOperations = [ +export const channelOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -104,9 +104,9 @@ export const channelOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const channelFields = [ +export const channelFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* channel:archive */ @@ -1002,4 +1002,4 @@ export const channelFields = [ required: true, description: 'The ID of the channel to unarchive.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Slack/FileDescription.ts b/packages/nodes-base/nodes/Slack/FileDescription.ts index 2ef166a69466ef..44caf06b1b4c5b 100644 --- a/packages/nodes-base/nodes/Slack/FileDescription.ts +++ b/packages/nodes-base/nodes/Slack/FileDescription.ts @@ -1,6 +1,6 @@ import { INodeProperties } from 'n8n-workflow'; -export const fileOperations = [ +export const fileOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -32,9 +32,9 @@ export const fileOperations = [ default: 'upload', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const fileFields = [ +export const fileFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* file:upload */ @@ -321,4 +321,4 @@ export const fileFields = [ }, default: '', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Slack/MessageDescription.ts b/packages/nodes-base/nodes/Slack/MessageDescription.ts index 8b985474fc2286..f946a1f795b115 100644 --- a/packages/nodes-base/nodes/Slack/MessageDescription.ts +++ b/packages/nodes-base/nodes/Slack/MessageDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const messageOperations = [ +export const messageOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -44,9 +44,9 @@ export const messageOperations = [ default: 'post', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const messageFields = [ +export const messageFields: INodeProperties[] = [ /* ----------------------------------------------------------------------- */ /* message:getPermalink @@ -1711,4 +1711,4 @@ export const messageFields = [ }, description: `Timestamp of the message to be deleted.`, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Slack/ReactionDescription.ts b/packages/nodes-base/nodes/Slack/ReactionDescription.ts index 0e41dc92823872..9ee515fb554b44 100644 --- a/packages/nodes-base/nodes/Slack/ReactionDescription.ts +++ b/packages/nodes-base/nodes/Slack/ReactionDescription.ts @@ -1,6 +1,6 @@ import { INodeProperties } from 'n8n-workflow'; -export const reactionOperations = [ +export const reactionOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -32,9 +32,9 @@ export const reactionOperations = [ default: 'add', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const reactionFields = [ +export const reactionFields: INodeProperties[] = [ { displayName: 'Channel', name: 'channelId', @@ -98,4 +98,4 @@ export const reactionFields = [ }, description: `Timestamp of the message.`, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Slack/StarDescription.ts b/packages/nodes-base/nodes/Slack/StarDescription.ts index 66d95c127c2c88..9dce692568fd32 100644 --- a/packages/nodes-base/nodes/Slack/StarDescription.ts +++ b/packages/nodes-base/nodes/Slack/StarDescription.ts @@ -1,6 +1,6 @@ import { INodeProperties } from 'n8n-workflow'; -export const starOperations = [ +export const starOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -32,9 +32,9 @@ export const starOperations = [ default: 'add', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const starFields = [ +export const starFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* star:add */ @@ -190,4 +190,4 @@ export const starFields = [ default: 50, description: 'How many results to return.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Slack/UserDescription.ts b/packages/nodes-base/nodes/Slack/UserDescription.ts index 7505a3b8d71326..43c36920c4febc 100644 --- a/packages/nodes-base/nodes/Slack/UserDescription.ts +++ b/packages/nodes-base/nodes/Slack/UserDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const userOperations = [ +export const userOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -29,9 +29,9 @@ export const userOperations = [ default: 'info', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const userFields = [ +export const userFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* user:info */ @@ -82,4 +82,4 @@ export const userFields = [ required: true, description: 'The ID of the user to get the online status of.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Slack/UserGroupDescription.ts b/packages/nodes-base/nodes/Slack/UserGroupDescription.ts index f352e6af231167..87a707405da38f 100644 --- a/packages/nodes-base/nodes/Slack/UserGroupDescription.ts +++ b/packages/nodes-base/nodes/Slack/UserGroupDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const userGroupOperations = [ +export const userGroupOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -44,9 +44,9 @@ export const userGroupOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const userGroupFields = [ +export const userGroupFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* userGroup:create */ @@ -375,4 +375,4 @@ export const userGroupFields = [ }, ], }, -] as INodeProperties[]; \ No newline at end of file +]; \ No newline at end of file diff --git a/packages/nodes-base/nodes/Slack/UserProfileDescription.ts b/packages/nodes-base/nodes/Slack/UserProfileDescription.ts index 9bf9d103ef8ab9..30a170c4525dc8 100644 --- a/packages/nodes-base/nodes/Slack/UserProfileDescription.ts +++ b/packages/nodes-base/nodes/Slack/UserProfileDescription.ts @@ -3,7 +3,7 @@ import { } from 'n8n-workflow'; import { text } from 'express'; -export const userProfileOperations = [ +export const userProfileOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -30,9 +30,9 @@ export const userProfileOperations = [ default: 'get', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const userProfileFields = [ +export const userProfileFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* userProfile:update */ @@ -181,4 +181,4 @@ export const userProfileFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Spontit/PushDescription.ts b/packages/nodes-base/nodes/Spontit/PushDescription.ts index ebceb06eb6a663..140ac0e11f2467 100644 --- a/packages/nodes-base/nodes/Spontit/PushDescription.ts +++ b/packages/nodes-base/nodes/Spontit/PushDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const pushOperations = [ +export const pushOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -24,9 +24,9 @@ export const pushOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const pushFields = [ +export const pushFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* push:create */ /* -------------------------------------------------------------------------- */ @@ -152,4 +152,4 @@ export const pushFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Storyblok/StoryContentDescription.ts b/packages/nodes-base/nodes/Storyblok/StoryContentDescription.ts index 48b78e9d54613a..e3e2615fa5a92d 100644 --- a/packages/nodes-base/nodes/Storyblok/StoryContentDescription.ts +++ b/packages/nodes-base/nodes/Storyblok/StoryContentDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const storyContentOperations = [ +export const storyContentOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -32,9 +32,9 @@ export const storyContentOperations = [ default: 'get', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const storyContentFields = [ +export const storyContentFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* story:get */ @@ -140,4 +140,4 @@ export const storyContentFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Storyblok/StoryManagementDescription.ts b/packages/nodes-base/nodes/Storyblok/StoryManagementDescription.ts index 9e0acb49c3486a..4681e4cbef79a6 100644 --- a/packages/nodes-base/nodes/Storyblok/StoryManagementDescription.ts +++ b/packages/nodes-base/nodes/Storyblok/StoryManagementDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const storyManagementOperations = [ +export const storyManagementOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -52,9 +52,9 @@ export const storyManagementOperations = [ default: 'get', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const storyManagementFields = [ +export const storyManagementFields: INodeProperties[] = [ // /* -------------------------------------------------------------------------- */ // /* story:create */ @@ -644,4 +644,4 @@ export const storyManagementFields = [ }, description: 'Numeric ID of the story.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Strapi/EntryDescription.ts b/packages/nodes-base/nodes/Strapi/EntryDescription.ts index 8050e6b94bb765..d2c7a4850ab6d9 100644 --- a/packages/nodes-base/nodes/Strapi/EntryDescription.ts +++ b/packages/nodes-base/nodes/Strapi/EntryDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const entryOperations = [ +export const entryOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -44,9 +44,9 @@ export const entryOperations = [ default: 'get', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const entryFields = [ +export const entryFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* entry:create */ /* -------------------------------------------------------------------------- */ @@ -345,4 +345,4 @@ export const entryFields = [ placeholder: 'id,name,description', description: 'Comma separated list of the properties which should used as columns for the new rows.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Strava/ActivityDescription.ts b/packages/nodes-base/nodes/Strava/ActivityDescription.ts index 34b57945ff1a00..a1e48753000a70 100644 --- a/packages/nodes-base/nodes/Strava/ActivityDescription.ts +++ b/packages/nodes-base/nodes/Strava/ActivityDescription.ts @@ -3,7 +3,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const activityOperations = [ +export const activityOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -60,9 +60,9 @@ export const activityOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const activityFields = [ +export const activityFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* activity:create */ @@ -107,6 +107,7 @@ export const activityFields = [ displayName: 'Start Date', name: 'startDate', type: 'dateTime', + default: '', required: true, displayOptions: { show: { @@ -413,4 +414,4 @@ export const activityFields = [ default: 50, description: 'How many results to return.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Stripe/descriptions/BalanceDescription.ts b/packages/nodes-base/nodes/Stripe/descriptions/BalanceDescription.ts index 34dc2d55cba8ca..5d4159620ee03b 100644 --- a/packages/nodes-base/nodes/Stripe/descriptions/BalanceDescription.ts +++ b/packages/nodes-base/nodes/Stripe/descriptions/BalanceDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const balanceOperations = [ +export const balanceOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -24,4 +24,4 @@ export const balanceOperations = [ }, }, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Stripe/descriptions/ChargeDescription.ts b/packages/nodes-base/nodes/Stripe/descriptions/ChargeDescription.ts index 060d25ad50e0ad..61341ac681312b 100644 --- a/packages/nodes-base/nodes/Stripe/descriptions/ChargeDescription.ts +++ b/packages/nodes-base/nodes/Stripe/descriptions/ChargeDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const chargeOperations = [ +export const chargeOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -39,9 +39,9 @@ export const chargeOperations = [ }, }, }, -] as INodeProperties[]; +]; -export const chargeFields = [ +export const chargeFields: INodeProperties[] = [ // ---------------------------------- // charge: create // ---------------------------------- @@ -388,6 +388,7 @@ export const chargeFields = [ displayName: 'Metadata', name: 'metadata', type: 'fixedCollection', + default: {}, placeholder: 'Add Metadata Item', description: 'Set of key-value pairs to attach to the charge to update', typeOptions: { @@ -425,6 +426,7 @@ export const chargeFields = [ displayName: 'Shipping', name: 'shipping', type: 'fixedCollection', + default: {}, description: 'Shipping information for the charge', placeholder: 'Add Field', typeOptions: { @@ -506,4 +508,4 @@ export const chargeFields = [ ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Stripe/descriptions/CouponDescription.ts b/packages/nodes-base/nodes/Stripe/descriptions/CouponDescription.ts index cf5a2d7c03a271..614022f958bead 100644 --- a/packages/nodes-base/nodes/Stripe/descriptions/CouponDescription.ts +++ b/packages/nodes-base/nodes/Stripe/descriptions/CouponDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const couponOperations = [ +export const couponOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -29,9 +29,9 @@ export const couponOperations = [ }, }, }, -] as INodeProperties[]; +]; -export const couponFields = [ +export const couponFields: INodeProperties[] = [ // ---------------------------------- // coupon: create // ---------------------------------- @@ -210,4 +210,4 @@ export const couponFields = [ }, }, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Stripe/descriptions/CustomerCardDescription.ts b/packages/nodes-base/nodes/Stripe/descriptions/CustomerCardDescription.ts index 68d4a44980b4ce..4583494dfc4c69 100644 --- a/packages/nodes-base/nodes/Stripe/descriptions/CustomerCardDescription.ts +++ b/packages/nodes-base/nodes/Stripe/descriptions/CustomerCardDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const customerCardOperations = [ +export const customerCardOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -34,9 +34,9 @@ export const customerCardOperations = [ }, }, }, -] as INodeProperties[]; +]; -export const customerCardFields = [ +export const customerCardFields: INodeProperties[] = [ // ---------------------------------- // customerCard: add // ---------------------------------- @@ -157,4 +157,4 @@ export const customerCardFields = [ }, }, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Stripe/descriptions/CustomerDescription.ts b/packages/nodes-base/nodes/Stripe/descriptions/CustomerDescription.ts index beb43985515c03..ff66fc206bfafc 100644 --- a/packages/nodes-base/nodes/Stripe/descriptions/CustomerDescription.ts +++ b/packages/nodes-base/nodes/Stripe/descriptions/CustomerDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const customerOperations = [ +export const customerOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -44,9 +44,9 @@ export const customerOperations = [ }, }, }, -] as INodeProperties[]; +]; -export const customerFields = [ +export const customerFields: INodeProperties[] = [ // ---------------------------------- // customer: create // ---------------------------------- @@ -199,6 +199,7 @@ export const customerFields = [ displayName: 'Shipping', name: 'shipping', type: 'fixedCollection', + default: {}, description: 'Shipping information for the customer', typeOptions: { multipleValues: true, @@ -514,6 +515,7 @@ export const customerFields = [ displayName: 'Metadata', name: 'metadata', type: 'fixedCollection', + default: {}, placeholder: 'Add Metadata Item', description: 'Set of key-value pairs to attach to the customer to create', typeOptions: { @@ -646,4 +648,4 @@ export const customerFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Stripe/descriptions/SourceDescription.ts b/packages/nodes-base/nodes/Stripe/descriptions/SourceDescription.ts index e87e87d14683ad..26b9e96d251fd8 100644 --- a/packages/nodes-base/nodes/Stripe/descriptions/SourceDescription.ts +++ b/packages/nodes-base/nodes/Stripe/descriptions/SourceDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const sourceOperations = [ +export const sourceOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -34,9 +34,9 @@ export const sourceOperations = [ }, }, }, -] as INodeProperties[]; +]; -export const sourceFields = [ +export const sourceFields: INodeProperties[] = [ // ---------------------------------- // source: create // ---------------------------------- @@ -243,4 +243,4 @@ export const sourceFields = [ }, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Stripe/descriptions/TokenDescription.ts b/packages/nodes-base/nodes/Stripe/descriptions/TokenDescription.ts index ae454bf79cbb53..59ccbd68d52a9a 100644 --- a/packages/nodes-base/nodes/Stripe/descriptions/TokenDescription.ts +++ b/packages/nodes-base/nodes/Stripe/descriptions/TokenDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const tokenOperations = [ +export const tokenOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -24,9 +24,9 @@ export const tokenOperations = [ }, }, }, -] as INodeProperties[]; +]; -export const tokenFields = [ +export const tokenFields: INodeProperties[] = [ // ---------------------------------- // token: create // ---------------------------------- @@ -137,4 +137,4 @@ export const tokenFields = [ default: '', placeholder: '2022', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Taiga/descriptions/EpicDescription.ts b/packages/nodes-base/nodes/Taiga/descriptions/EpicDescription.ts index 69ab59ec5c403c..9eca036deb25f2 100644 --- a/packages/nodes-base/nodes/Taiga/descriptions/EpicDescription.ts +++ b/packages/nodes-base/nodes/Taiga/descriptions/EpicDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const epicOperations = [ +export const epicOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -44,9 +44,9 @@ export const epicOperations = [ default: 'create', description: 'Operation to perform', }, -] as INodeProperties[]; +]; -export const epicFields = [ +export const epicFields: INodeProperties[] = [ // ---------------------------------------- // epic: create // ---------------------------------------- @@ -426,4 +426,4 @@ export const epicFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Taiga/descriptions/IssueDescription.ts b/packages/nodes-base/nodes/Taiga/descriptions/IssueDescription.ts index 697dc9e4e4d5dd..02baf90754d0cc 100644 --- a/packages/nodes-base/nodes/Taiga/descriptions/IssueDescription.ts +++ b/packages/nodes-base/nodes/Taiga/descriptions/IssueDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const issueOperations = [ +export const issueOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -44,9 +44,9 @@ export const issueOperations = [ default: 'create', description: 'Operation to perform', }, -] as INodeProperties[]; +]; -export const issueFields = [ +export const issueFields: INodeProperties[] = [ // ---------------------------------------- // issue: create // ---------------------------------------- @@ -660,4 +660,4 @@ export const issueFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Taiga/descriptions/TaskDescription.ts b/packages/nodes-base/nodes/Taiga/descriptions/TaskDescription.ts index f2c90d2d32dedb..08072d3359ac7c 100644 --- a/packages/nodes-base/nodes/Taiga/descriptions/TaskDescription.ts +++ b/packages/nodes-base/nodes/Taiga/descriptions/TaskDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const taskOperations = [ +export const taskOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -44,9 +44,9 @@ export const taskOperations = [ default: 'create', description: 'Operation to perform', }, -] as INodeProperties[]; +]; -export const taskFields = [ +export const taskFields: INodeProperties[] = [ // ---------------------------------------- // task: create // ---------------------------------------- @@ -606,4 +606,4 @@ export const taskFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Taiga/descriptions/UserStoryDescription.ts b/packages/nodes-base/nodes/Taiga/descriptions/UserStoryDescription.ts index 9d046a934e1c98..24475befec4e45 100644 --- a/packages/nodes-base/nodes/Taiga/descriptions/UserStoryDescription.ts +++ b/packages/nodes-base/nodes/Taiga/descriptions/UserStoryDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const userStoryOperations = [ +export const userStoryOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -44,9 +44,9 @@ export const userStoryOperations = [ default: 'create', description: 'Operation to perform', }, -] as INodeProperties[]; +]; -export const userStoryFields = [ +export const userStoryFields: INodeProperties[] = [ // ---------------------------------------- // userStory: create // ---------------------------------------- @@ -618,4 +618,4 @@ export const userStoryFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Tapfiliate/AffiliateDescription.ts b/packages/nodes-base/nodes/Tapfiliate/AffiliateDescription.ts index 42a924528147ed..631ea74178227b 100644 --- a/packages/nodes-base/nodes/Tapfiliate/AffiliateDescription.ts +++ b/packages/nodes-base/nodes/Tapfiliate/AffiliateDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const affiliateOperations = [ +export const affiliateOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -39,9 +39,9 @@ export const affiliateOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const affiliateFields = [ +export const affiliateFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* affiliate:create */ /* -------------------------------------------------------------------------- */ @@ -189,6 +189,7 @@ export const affiliateFields = [ name: 'affiliateId', required: true, type: 'string', + default: '', displayOptions: { show: { resource: [ @@ -210,6 +211,7 @@ export const affiliateFields = [ name: 'affiliateId', type: 'string', required: true, + default: '', displayOptions: { show: { resource: [ @@ -328,4 +330,4 @@ export const affiliateFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Tapfiliate/AffiliateMetadataDescription.ts b/packages/nodes-base/nodes/Tapfiliate/AffiliateMetadataDescription.ts index d65d38794d5c81..37441deb03e2d0 100644 --- a/packages/nodes-base/nodes/Tapfiliate/AffiliateMetadataDescription.ts +++ b/packages/nodes-base/nodes/Tapfiliate/AffiliateMetadataDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const affiliateMetadataOperations = [ +export const affiliateMetadataOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -34,9 +34,9 @@ export const affiliateMetadataOperations = [ default: 'add', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const affiliateMetadataFields = [ +export const affiliateMetadataFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* affiliateMetadata:add */ /* -------------------------------------------------------------------------- */ @@ -45,6 +45,7 @@ export const affiliateMetadataFields = [ name: 'affiliateId', type: 'string', required: true, + default: '', displayOptions: { show: { resource: [ @@ -109,6 +110,7 @@ export const affiliateMetadataFields = [ name: 'affiliateId', type: 'string', required: true, + default: '', displayOptions: { show: { resource: [ @@ -147,6 +149,7 @@ export const affiliateMetadataFields = [ name: 'affiliateId', type: 'string', required: true, + default: '', displayOptions: { show: { resource: [ @@ -193,4 +196,4 @@ export const affiliateMetadataFields = [ default: '', description: 'Value to set for the metadata key.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Tapfiliate/ProgramAffiliateDescription.ts b/packages/nodes-base/nodes/Tapfiliate/ProgramAffiliateDescription.ts index b2f6b3d396cc3d..ac2985280603fb 100644 --- a/packages/nodes-base/nodes/Tapfiliate/ProgramAffiliateDescription.ts +++ b/packages/nodes-base/nodes/Tapfiliate/ProgramAffiliateDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const programAffiliateOperations = [ +export const programAffiliateOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -44,9 +44,9 @@ export const programAffiliateOperations = [ default: 'add', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const programAffiliateFields = [ +export const programAffiliateFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* programAffiliate:add */ /* -------------------------------------------------------------------------- */ @@ -75,6 +75,7 @@ export const programAffiliateFields = [ displayName: 'Affiliate ID', name: 'affiliateId', type: 'string', + default: '', required: true, displayOptions: { show: { @@ -149,6 +150,7 @@ export const programAffiliateFields = [ displayName: 'Affiliate ID', name: 'affiliateId', type: 'string', + default: '', displayOptions: { show: { resource: [ @@ -189,6 +191,7 @@ export const programAffiliateFields = [ displayName: 'Affiliate ID', name: 'affiliateId', type: 'string', + default: '', displayOptions: { show: { resource: [ @@ -231,6 +234,7 @@ export const programAffiliateFields = [ name: 'affiliateId', type: 'string', required: true, + default: '', displayOptions: { show: { resource: [ @@ -356,4 +360,4 @@ export const programAffiliateFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/TheHive/descriptions/AlertDescription.ts b/packages/nodes-base/nodes/TheHive/descriptions/AlertDescription.ts index d6d72e23617260..86ebd8631ef094 100644 --- a/packages/nodes-base/nodes/TheHive/descriptions/AlertDescription.ts +++ b/packages/nodes-base/nodes/TheHive/descriptions/AlertDescription.ts @@ -6,7 +6,7 @@ import { TLP, } from '../interfaces/AlertInterface'; -export const alertOperations = [ +export const alertOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -24,9 +24,9 @@ export const alertOperations = [ }, default: 'create', }, -] as INodeProperties[]; +]; -export const alertFields = [ +export const alertFields: INodeProperties[] = [ { displayName: 'Return All', name: 'returnAll', @@ -1002,4 +1002,4 @@ export const alertFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/TheHive/descriptions/CaseDescription.ts b/packages/nodes-base/nodes/TheHive/descriptions/CaseDescription.ts index 60f7f8f8caf012..f6dd1b3a545f2b 100644 --- a/packages/nodes-base/nodes/TheHive/descriptions/CaseDescription.ts +++ b/packages/nodes-base/nodes/TheHive/descriptions/CaseDescription.ts @@ -6,7 +6,7 @@ import { TLP, } from '../interfaces/AlertInterface'; -export const caseOperations = [ +export const caseOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -27,9 +27,9 @@ export const caseOperations = [ loadOptionsMethod: 'loadCaseOptions', }, }, -] as INodeProperties[]; +]; -export const caseFields = [ +export const caseFields: INodeProperties[] = [ { displayName: 'Return All', name: 'returnAll', @@ -929,4 +929,4 @@ export const caseFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/TheHive/descriptions/LogDescription.ts b/packages/nodes-base/nodes/TheHive/descriptions/LogDescription.ts index 7062739ffba948..e9cf068237d0ea 100644 --- a/packages/nodes-base/nodes/TheHive/descriptions/LogDescription.ts +++ b/packages/nodes-base/nodes/TheHive/descriptions/LogDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const logOperations = [ +export const logOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -39,9 +39,9 @@ export const logOperations = [ }, ], }, -] as INodeProperties[]; +]; -export const logFields = [ +export const logFields: INodeProperties[] = [ { displayName: 'Task ID', name: 'taskId', @@ -107,6 +107,7 @@ export const logFields = [ displayName: 'Log ID', name: 'id', type: 'string', + default: '', required: true, displayOptions: { show: { @@ -259,4 +260,4 @@ export const logFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/TheHive/descriptions/ObservableDescription.ts b/packages/nodes-base/nodes/TheHive/descriptions/ObservableDescription.ts index 9c2386569e7465..76d345e031b023 100644 --- a/packages/nodes-base/nodes/TheHive/descriptions/ObservableDescription.ts +++ b/packages/nodes-base/nodes/TheHive/descriptions/ObservableDescription.ts @@ -6,7 +6,7 @@ import { TLP, } from '../interfaces/AlertInterface'; -export const observableOperations = [ +export const observableOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -27,9 +27,9 @@ export const observableOperations = [ loadOptionsMethod: 'loadObservableOptions', }, }, -] as INodeProperties[]; +]; -export const observableFields = [ +export const observableFields: INodeProperties[] = [ { displayName: 'Case ID', name: 'caseId', @@ -674,4 +674,4 @@ export const observableFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/TheHive/descriptions/TaskDescription.ts b/packages/nodes-base/nodes/TheHive/descriptions/TaskDescription.ts index bcee27ae0289f5..6c2a20c03a3a59 100644 --- a/packages/nodes-base/nodes/TheHive/descriptions/TaskDescription.ts +++ b/packages/nodes-base/nodes/TheHive/descriptions/TaskDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const taskOperations = [ +export const taskOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -23,9 +23,9 @@ export const taskOperations = [ loadOptionsMethod: 'loadTaskOptions', }, }, -] as INodeProperties[]; +]; -export const taskFields = [ +export const taskFields: INodeProperties[] = [ { displayName: 'Task ID', name: 'id', @@ -465,4 +465,4 @@ export const taskFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/TravisCi/BuildDescription.ts b/packages/nodes-base/nodes/TravisCi/BuildDescription.ts index 2afd7e5cd625d1..184bf4ab5e9192 100644 --- a/packages/nodes-base/nodes/TravisCi/BuildDescription.ts +++ b/packages/nodes-base/nodes/TravisCi/BuildDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const buildOperations = [ +export const buildOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -44,9 +44,9 @@ export const buildOperations = [ default: 'cancel', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const buildFields = [ +export const buildFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* build:cancel */ @@ -353,4 +353,4 @@ export const buildFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Trello/AttachmentDescription.ts b/packages/nodes-base/nodes/Trello/AttachmentDescription.ts index 8be93f63482dd2..d153dff694883a 100644 --- a/packages/nodes-base/nodes/Trello/AttachmentDescription.ts +++ b/packages/nodes-base/nodes/Trello/AttachmentDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const attachmentOperations = [ +export const attachmentOperations: INodeProperties[] = [ // ---------------------------------- // attachment // ---------------------------------- @@ -43,9 +43,9 @@ export const attachmentOperations = [ description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const attachmentFields = [ +export const attachmentFields: INodeProperties[] = [ // ---------------------------------- // attachment:create @@ -275,4 +275,4 @@ export const attachmentFields = [ ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Trello/BoardDescription.ts b/packages/nodes-base/nodes/Trello/BoardDescription.ts index 7498a213336d16..df2402d9774af9 100644 --- a/packages/nodes-base/nodes/Trello/BoardDescription.ts +++ b/packages/nodes-base/nodes/Trello/BoardDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const boardOperations = [ +export const boardOperations: INodeProperties[] = [ // ---------------------------------- // board // ---------------------------------- @@ -42,9 +42,9 @@ export const boardOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const boardFields = [ +export const boardFields: INodeProperties[] = [ // ---------------------------------- // board:create @@ -456,4 +456,4 @@ export const boardFields = [ ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Trello/CardCommentDescription.ts b/packages/nodes-base/nodes/Trello/CardCommentDescription.ts index 6c4f38fcca5902..750d69d647bae0 100644 --- a/packages/nodes-base/nodes/Trello/CardCommentDescription.ts +++ b/packages/nodes-base/nodes/Trello/CardCommentDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const cardCommentOperations = [ +export const cardCommentOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -34,9 +34,9 @@ export const cardCommentOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const cardCommentFields = [ +export const cardCommentFields: INodeProperties[] = [ // ---------------------------------- // cardComment:create // ---------------------------------- @@ -174,4 +174,4 @@ export const cardCommentFields = [ }, description: 'Text of the comment', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Trello/CardDescription.ts b/packages/nodes-base/nodes/Trello/CardDescription.ts index 15928370f2e405..0a998d11a18bdd 100644 --- a/packages/nodes-base/nodes/Trello/CardDescription.ts +++ b/packages/nodes-base/nodes/Trello/CardDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const cardOperations = [ +export const cardOperations: INodeProperties[] = [ // ---------------------------------- // card // ---------------------------------- @@ -42,9 +42,9 @@ export const cardOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const cardFields = [ +export const cardFields: INodeProperties[] = [ // ---------------------------------- // card:create // ---------------------------------- @@ -428,4 +428,4 @@ export const cardFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Trello/ChecklistDescription.ts b/packages/nodes-base/nodes/Trello/ChecklistDescription.ts index c0e65077af06a0..a57916dbded0e2 100644 --- a/packages/nodes-base/nodes/Trello/ChecklistDescription.ts +++ b/packages/nodes-base/nodes/Trello/ChecklistDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const checklistOperations = [ +export const checklistOperations: INodeProperties[] = [ // ---------------------------------- // checklist // ---------------------------------- @@ -68,9 +68,9 @@ export const checklistOperations = [ description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const checklistFields = [ +export const checklistFields: INodeProperties[] = [ // ---------------------------------- // checklist:create // ---------------------------------- @@ -605,4 +605,4 @@ export const checklistFields = [ ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Trello/LabelDescription.ts b/packages/nodes-base/nodes/Trello/LabelDescription.ts index fee245ec242799..579e22a129c4a2 100644 --- a/packages/nodes-base/nodes/Trello/LabelDescription.ts +++ b/packages/nodes-base/nodes/Trello/LabelDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const labelOperations = [ +export const labelOperations: INodeProperties[] = [ // ---------------------------------- // label // ---------------------------------- @@ -59,9 +59,9 @@ export const labelOperations = [ description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const labelFields = [ +export const labelFields: INodeProperties[] = [ // ---------------------------------- // label:create // ---------------------------------- @@ -466,4 +466,4 @@ export const labelFields = [ ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Trello/ListDescription.ts b/packages/nodes-base/nodes/Trello/ListDescription.ts index 21bd54f18fe5b6..dcad00a987d051 100644 --- a/packages/nodes-base/nodes/Trello/ListDescription.ts +++ b/packages/nodes-base/nodes/Trello/ListDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const listOperations = [ +export const listOperations: INodeProperties[] = [ // ---------------------------------- // list // ---------------------------------- @@ -52,9 +52,9 @@ export const listOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const listFields = [ +export const listFields: INodeProperties[] = [ // ---------------------------------- // list:archive // ---------------------------------- @@ -460,4 +460,4 @@ export const listFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Twist/ChannelDescription.ts b/packages/nodes-base/nodes/Twist/ChannelDescription.ts index fd0e33a3eb6ca1..bc7ae341849acd 100644 --- a/packages/nodes-base/nodes/Twist/ChannelDescription.ts +++ b/packages/nodes-base/nodes/Twist/ChannelDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const channelOperations = [ +export const channelOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -54,9 +54,9 @@ export const channelOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const channelFields = [ +export const channelFields: INodeProperties[] = [ /*-------------------------------------------------------------------------- */ /* channel:create */ /* ------------------------------------------------------------------------- */ @@ -445,4 +445,4 @@ export const channelFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Twist/CommentDescription.ts b/packages/nodes-base/nodes/Twist/CommentDescription.ts index 0aa0500d1acf86..b2b67bd2c6e568 100644 --- a/packages/nodes-base/nodes/Twist/CommentDescription.ts +++ b/packages/nodes-base/nodes/Twist/CommentDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const commentOperations = [ +export const commentOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -44,9 +44,9 @@ export const commentOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const commentFields = [ +export const commentFields: INodeProperties[] = [ /*-------------------------------------------------------------------------- */ /* comment:create */ /* ------------------------------------------------------------------------- */ @@ -107,6 +107,7 @@ export const commentFields = [ displayName: 'Actions', name: 'actionsUi', type: 'fixedCollection', + default: {}, placeholder: 'Add Action', typeOptions: { multipleValues: true, @@ -446,6 +447,7 @@ export const commentFields = [ displayName: 'Actions', name: 'actionsUi', type: 'fixedCollection', + default: {}, placeholder: 'Add Action', typeOptions: { multipleValues: true, @@ -558,4 +560,4 @@ export const commentFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Twist/MessageConversationDescription.ts b/packages/nodes-base/nodes/Twist/MessageConversationDescription.ts index c08201339ea18e..07896c0646f19a 100644 --- a/packages/nodes-base/nodes/Twist/MessageConversationDescription.ts +++ b/packages/nodes-base/nodes/Twist/MessageConversationDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties } from 'n8n-workflow'; -export const messageConversationOperations = [ +export const messageConversationOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -44,9 +44,9 @@ export const messageConversationOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const messageConversationFields = [ +export const messageConversationFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* messageConversation:create */ @@ -135,6 +135,7 @@ export const messageConversationFields = [ displayName: 'Actions', name: 'actionsUi', type: 'fixedCollection', + default: {}, placeholder: 'Add Action', typeOptions: { multipleValues: true, @@ -376,7 +377,7 @@ export const messageConversationFields = [ required: true, description: 'The ID of the conversation message.', }, - + /* -------------------------------------------------------------------------- */ /* messageConversation:update */ /* -------------------------------------------------------------------------- */ @@ -419,6 +420,7 @@ export const messageConversationFields = [ displayName: 'Actions', name: 'actionsUi', type: 'fixedCollection', + default: {}, placeholder: 'Add Action', typeOptions: { multipleValues: true, @@ -528,4 +530,4 @@ export const messageConversationFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Twist/ThreadDescription.ts b/packages/nodes-base/nodes/Twist/ThreadDescription.ts index 4ce8f48a470858..87359296e0021a 100644 --- a/packages/nodes-base/nodes/Twist/ThreadDescription.ts +++ b/packages/nodes-base/nodes/Twist/ThreadDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const threadOperations = [ +export const threadOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -44,9 +44,9 @@ export const threadOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const threadFields = [ +export const threadFields: INodeProperties[] = [ /*-------------------------------------------------------------------------- */ /* thread:create */ /* ------------------------------------------------------------------------- */ @@ -125,6 +125,7 @@ export const threadFields = [ displayName: 'Actions', name: 'actionsUi', type: 'fixedCollection', + default: {}, placeholder: 'Add Action', typeOptions: { multipleValues: true, @@ -445,6 +446,7 @@ export const threadFields = [ displayName: 'Actions', name: 'actionsUi', type: 'fixedCollection', + default: {}, placeholder: 'Add Action', typeOptions: { multipleValues: true, @@ -564,4 +566,4 @@ export const threadFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Twitter/DirectMessageDescription.ts b/packages/nodes-base/nodes/Twitter/DirectMessageDescription.ts index 0fb8e15cb19556..bdf645a7b9480f 100644 --- a/packages/nodes-base/nodes/Twitter/DirectMessageDescription.ts +++ b/packages/nodes-base/nodes/Twitter/DirectMessageDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const directMessageOperations = [ +export const directMessageOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -24,9 +24,9 @@ export const directMessageOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const directMessageFields = [ +export const directMessageFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* directMessage:create */ /* -------------------------------------------------------------------------- */ @@ -95,4 +95,4 @@ export const directMessageFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Twitter/TweetDescription.ts b/packages/nodes-base/nodes/Twitter/TweetDescription.ts index bd643e92afb30a..1632b4081325cb 100644 --- a/packages/nodes-base/nodes/Twitter/TweetDescription.ts +++ b/packages/nodes-base/nodes/Twitter/TweetDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const tweetOperations = [ +export const tweetOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -44,9 +44,9 @@ export const tweetOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const tweetFields = [ +export const tweetFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* tweet:create */ /* -------------------------------------------------------------------------- */ @@ -477,4 +477,4 @@ export const tweetFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/UnleashedSoftware/SalesOrderDescription.ts b/packages/nodes-base/nodes/UnleashedSoftware/SalesOrderDescription.ts index 2bae450eea33d4..47080b1c198b46 100644 --- a/packages/nodes-base/nodes/UnleashedSoftware/SalesOrderDescription.ts +++ b/packages/nodes-base/nodes/UnleashedSoftware/SalesOrderDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const salesOrderOperations = [ +export const salesOrderOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -24,9 +24,9 @@ export const salesOrderOperations = [ default: 'getAll', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const salesOrderFields = [ +export const salesOrderFields: INodeProperties[] = [ /* ------------------------------------------------------------------------- */ /* salesOrder:getAll */ @@ -164,4 +164,4 @@ export const salesOrderFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/UnleashedSoftware/StockOnHandDescription.ts b/packages/nodes-base/nodes/UnleashedSoftware/StockOnHandDescription.ts index 858a6e3f45d560..bc290756ec8d36 100644 --- a/packages/nodes-base/nodes/UnleashedSoftware/StockOnHandDescription.ts +++ b/packages/nodes-base/nodes/UnleashedSoftware/StockOnHandDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const stockOnHandOperations = [ +export const stockOnHandOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -29,9 +29,9 @@ export const stockOnHandOperations = [ default: 'getAll', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const stockOnHandFields = [ +export const stockOnHandFields: INodeProperties[] = [ /* ------------------------------------------------------------------------- */ /* stockOnHand:get */ @@ -164,4 +164,4 @@ export const stockOnHandFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Uplead/CompanyDesciption.ts b/packages/nodes-base/nodes/Uplead/CompanyDesciption.ts index 39ca13e01a7b4c..51d43d8a1d63cd 100644 --- a/packages/nodes-base/nodes/Uplead/CompanyDesciption.ts +++ b/packages/nodes-base/nodes/Uplead/CompanyDesciption.ts @@ -1,6 +1,6 @@ import { INodeProperties } from 'n8n-workflow'; -export const companyOperations = [ +export const companyOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -21,9 +21,9 @@ export const companyOperations = [ default: 'enrich', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const companyFields = [ +export const companyFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* company:enrich */ @@ -62,4 +62,4 @@ export const companyFields = [ }, description: 'the domain name (e.g – amazon.com)', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Uplead/PersonDescription.ts b/packages/nodes-base/nodes/Uplead/PersonDescription.ts index 8e65faa64a12c2..5be197493d04d6 100644 --- a/packages/nodes-base/nodes/Uplead/PersonDescription.ts +++ b/packages/nodes-base/nodes/Uplead/PersonDescription.ts @@ -1,6 +1,6 @@ import { INodeProperties } from 'n8n-workflow'; -export const personOperations = [ +export const personOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -21,9 +21,9 @@ export const personOperations = [ default: 'enrich', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const personFields = [ +export const personFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* person:enrich */ @@ -96,4 +96,4 @@ export const personFields = [ }, description: 'The domain name (e.g – salesforce.com)', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/UptimeRobot/AlertContactDescription.ts b/packages/nodes-base/nodes/UptimeRobot/AlertContactDescription.ts index 430dc2b1bb3507..802d08e55267e1 100644 --- a/packages/nodes-base/nodes/UptimeRobot/AlertContactDescription.ts +++ b/packages/nodes-base/nodes/UptimeRobot/AlertContactDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const alertContactOperations = [ +export const alertContactOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -44,9 +44,9 @@ export const alertContactOperations = [ default: 'getAll', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const alertContactFields = [ +export const alertContactFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* alertContact:create */ /* -------------------------------------------------------------------------- */ @@ -297,4 +297,4 @@ export const alertContactFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/UptimeRobot/MaintenanceWindowDescription.ts b/packages/nodes-base/nodes/UptimeRobot/MaintenanceWindowDescription.ts index e99f4740695082..1a1a5e9d19950b 100644 --- a/packages/nodes-base/nodes/UptimeRobot/MaintenanceWindowDescription.ts +++ b/packages/nodes-base/nodes/UptimeRobot/MaintenanceWindowDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const maintenanceWindowOperations = [ +export const maintenanceWindowOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -45,9 +45,9 @@ export const maintenanceWindowOperations = [ default: 'getAll', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const maintenanceWindowFields = [ +export const maintenanceWindowFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* maintenanceWindow:create */ /* -------------------------------------------------------------------------- */ @@ -465,4 +465,4 @@ export const maintenanceWindowFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/UptimeRobot/MonitorDescription.ts b/packages/nodes-base/nodes/UptimeRobot/MonitorDescription.ts index fd71e7494886c1..2d2ec294a4b300 100644 --- a/packages/nodes-base/nodes/UptimeRobot/MonitorDescription.ts +++ b/packages/nodes-base/nodes/UptimeRobot/MonitorDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const monitorOperations = [ +export const monitorOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -49,9 +49,9 @@ export const monitorOperations = [ default: 'getAll', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const monitorFields = [ +export const monitorFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* monitor:create */ /* -------------------------------------------------------------------------- */ @@ -509,4 +509,4 @@ export const monitorFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/UptimeRobot/PublicStatusPageDescription.ts b/packages/nodes-base/nodes/UptimeRobot/PublicStatusPageDescription.ts index 56b0a4fc6f3f81..24eced729992be 100644 --- a/packages/nodes-base/nodes/UptimeRobot/PublicStatusPageDescription.ts +++ b/packages/nodes-base/nodes/UptimeRobot/PublicStatusPageDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const publicStatusPageOperations = [ +export const publicStatusPageOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -47,9 +47,9 @@ export const publicStatusPageOperations = [ default: 'getAll', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const publicStatusPageFields = [ +export const publicStatusPageFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* publicStatusPage:create */ /* -------------------------------------------------------------------------- */ @@ -335,4 +335,4 @@ export const publicStatusPageFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Vero/EventDescripion.ts b/packages/nodes-base/nodes/Vero/EventDescripion.ts index 54c0d0e32e0950..5ba1f5d1365761 100644 --- a/packages/nodes-base/nodes/Vero/EventDescripion.ts +++ b/packages/nodes-base/nodes/Vero/EventDescripion.ts @@ -1,6 +1,6 @@ import { INodeProperties } from 'n8n-workflow'; -export const eventOperations = [ +export const eventOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -22,9 +22,9 @@ export const eventOperations = [ default: 'track', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const eventFields = [ +export const eventFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* event:track */ @@ -241,4 +241,4 @@ export const eventFields = [ }, }, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Vero/UserDescription.ts b/packages/nodes-base/nodes/Vero/UserDescription.ts index cd33f2a05b8ffa..4fee2cfaf9a68a 100644 --- a/packages/nodes-base/nodes/Vero/UserDescription.ts +++ b/packages/nodes-base/nodes/Vero/UserDescription.ts @@ -1,6 +1,6 @@ import { INodeProperties } from 'n8n-workflow'; -export const userOperations = [ +export const userOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -52,9 +52,9 @@ export const userOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const userFields = [ +export const userFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* user:create */ @@ -372,4 +372,4 @@ export const userFields = [ }, description: 'Tags to remove separated by ","', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Webflow/ItemDescription.ts b/packages/nodes-base/nodes/Webflow/ItemDescription.ts index fcea401341bd34..c301bec0b99280 100644 --- a/packages/nodes-base/nodes/Webflow/ItemDescription.ts +++ b/packages/nodes-base/nodes/Webflow/ItemDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const itemOperations = [ +export const itemOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -39,9 +39,9 @@ export const itemOperations = [ }, }, }, -] as INodeProperties[]; +]; -export const itemFields = [ +export const itemFields: INodeProperties[] = [ // ---------------------------------- // item: create // ---------------------------------- @@ -447,4 +447,4 @@ export const itemFields = [ default: 100, description: 'How many results to return.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Wekan/BoardDescription.ts b/packages/nodes-base/nodes/Wekan/BoardDescription.ts index 41b7dec9be7fa7..0d7c8adadfaf04 100644 --- a/packages/nodes-base/nodes/Wekan/BoardDescription.ts +++ b/packages/nodes-base/nodes/Wekan/BoardDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const boardOperations = [ +export const boardOperations: INodeProperties[] = [ // ---------------------------------- // board // ---------------------------------- @@ -42,9 +42,9 @@ export const boardOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const boardFields = [ +export const boardFields: INodeProperties[] = [ // ---------------------------------- // board:create @@ -304,4 +304,4 @@ export const boardFields = [ description: 'How many results to return.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Wekan/CardCommentDescription.ts b/packages/nodes-base/nodes/Wekan/CardCommentDescription.ts index 955690f07b9ca7..7dfe92ea2d7380 100644 --- a/packages/nodes-base/nodes/Wekan/CardCommentDescription.ts +++ b/packages/nodes-base/nodes/Wekan/CardCommentDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const cardCommentOperations = [ +export const cardCommentOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -39,9 +39,9 @@ export const cardCommentOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const cardCommentFields = [ +export const cardCommentFields: INodeProperties[] = [ // ---------------------------------- // cardComment:create // ---------------------------------- @@ -457,4 +457,4 @@ export const cardCommentFields = [ default: 100, description: 'How many results to return.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Wekan/CardDescription.ts b/packages/nodes-base/nodes/Wekan/CardDescription.ts index bc0ada4aa698ab..4189021407893f 100644 --- a/packages/nodes-base/nodes/Wekan/CardDescription.ts +++ b/packages/nodes-base/nodes/Wekan/CardDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const cardOperations = [ +export const cardOperations: INodeProperties[] = [ // ---------------------------------- // card // ---------------------------------- @@ -47,9 +47,9 @@ export const cardOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const cardFields = [ +export const cardFields: INodeProperties[] = [ // ---------------------------------- // card:create // ---------------------------------- @@ -841,4 +841,4 @@ export const cardFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Wekan/ChecklistDescription.ts b/packages/nodes-base/nodes/Wekan/ChecklistDescription.ts index 390cdeefa92d0e..69b009bb1fd7f8 100644 --- a/packages/nodes-base/nodes/Wekan/ChecklistDescription.ts +++ b/packages/nodes-base/nodes/Wekan/ChecklistDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const checklistOperations = [ +export const checklistOperations: INodeProperties[] = [ // ---------------------------------- // checklist // ---------------------------------- @@ -43,9 +43,9 @@ export const checklistOperations = [ description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const checklistFields = [ +export const checklistFields: INodeProperties[] = [ // ---------------------------------- // checklist:create // ---------------------------------- @@ -471,4 +471,4 @@ export const checklistFields = [ default: 100, description: 'How many results to return.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Wekan/ChecklistItemDescription.ts b/packages/nodes-base/nodes/Wekan/ChecklistItemDescription.ts index d9170c1ae25708..4bfacf18c0e2ad 100644 --- a/packages/nodes-base/nodes/Wekan/ChecklistItemDescription.ts +++ b/packages/nodes-base/nodes/Wekan/ChecklistItemDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const checklistItemOperations = [ +export const checklistItemOperations: INodeProperties[] = [ // ---------------------------------- // checklistItem // ---------------------------------- @@ -38,9 +38,9 @@ export const checklistItemOperations = [ description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const checklistItemFields = [ +export const checklistItemFields: INodeProperties[] = [ // ---------------------------------- // checklistItem:delete // ---------------------------------- @@ -442,4 +442,4 @@ export const checklistItemFields = [ ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Wekan/ListDescription.ts b/packages/nodes-base/nodes/Wekan/ListDescription.ts index aa28f3661b5ad9..bd013efc149969 100644 --- a/packages/nodes-base/nodes/Wekan/ListDescription.ts +++ b/packages/nodes-base/nodes/Wekan/ListDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const listOperations = [ +export const listOperations: INodeProperties[] = [ // ---------------------------------- // list // ---------------------------------- @@ -42,9 +42,9 @@ export const listOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const listFields = [ +export const listFields: INodeProperties[] = [ // ---------------------------------- // list:create // ---------------------------------- @@ -247,4 +247,4 @@ export const listFields = [ description: 'How many results to return.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Wise/descriptions/AccountDescription.ts b/packages/nodes-base/nodes/Wise/descriptions/AccountDescription.ts index 5b7fd3d5fa9247..3e27b964e5e083 100644 --- a/packages/nodes-base/nodes/Wise/descriptions/AccountDescription.ts +++ b/packages/nodes-base/nodes/Wise/descriptions/AccountDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const accountOperations = [ +export const accountOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -34,9 +34,9 @@ export const accountOperations = [ }, }, }, -] as INodeProperties[]; +]; -export const accountFields = [ +export const accountFields: INodeProperties[] = [ // ---------------------------------- // account: getBalances // ---------------------------------- @@ -192,4 +192,4 @@ export const accountFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Wise/descriptions/ExchangeRateDescription.ts b/packages/nodes-base/nodes/Wise/descriptions/ExchangeRateDescription.ts index bee99e6fe41765..b56cbb2522c3d6 100644 --- a/packages/nodes-base/nodes/Wise/descriptions/ExchangeRateDescription.ts +++ b/packages/nodes-base/nodes/Wise/descriptions/ExchangeRateDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const exchangeRateOperations = [ +export const exchangeRateOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -23,9 +23,9 @@ export const exchangeRateOperations = [ }, }, }, -] as INodeProperties[]; +]; -export const exchangeRateFields = [ +export const exchangeRateFields: INodeProperties[] = [ // ---------------------------------- // exchangeRate: get // ---------------------------------- @@ -137,4 +137,4 @@ export const exchangeRateFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Wise/descriptions/ProfileDescription.ts b/packages/nodes-base/nodes/Wise/descriptions/ProfileDescription.ts index dfa8e88c53f6b6..10648d3f053234 100644 --- a/packages/nodes-base/nodes/Wise/descriptions/ProfileDescription.ts +++ b/packages/nodes-base/nodes/Wise/descriptions/ProfileDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const profileOperations = [ +export const profileOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -27,9 +27,9 @@ export const profileOperations = [ }, }, }, -] as INodeProperties[]; +]; -export const profileFields = [ +export const profileFields: INodeProperties[] = [ // ---------------------------------- // profile: get // ---------------------------------- @@ -54,4 +54,4 @@ export const profileFields = [ }, }, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Wise/descriptions/QuoteDescription.ts b/packages/nodes-base/nodes/Wise/descriptions/QuoteDescription.ts index 6cb5446d87971a..66b1eaf3e859d7 100644 --- a/packages/nodes-base/nodes/Wise/descriptions/QuoteDescription.ts +++ b/packages/nodes-base/nodes/Wise/descriptions/QuoteDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const quoteOperations = [ +export const quoteOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -27,9 +27,9 @@ export const quoteOperations = [ }, }, }, -] as INodeProperties[]; +]; -export const quoteFields = [ +export const quoteFields: INodeProperties[] = [ // ---------------------------------- // quote: create // ---------------------------------- @@ -178,4 +178,4 @@ export const quoteFields = [ }, }, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Wise/descriptions/RecipientDescription.ts b/packages/nodes-base/nodes/Wise/descriptions/RecipientDescription.ts index 9479a8808b7a1e..977e38bd1a58d6 100644 --- a/packages/nodes-base/nodes/Wise/descriptions/RecipientDescription.ts +++ b/packages/nodes-base/nodes/Wise/descriptions/RecipientDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const recipientOperations = [ +export const recipientOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -23,9 +23,9 @@ export const recipientOperations = [ }, }, }, -] as INodeProperties[]; +]; -export const recipientFields = [ +export const recipientFields: INodeProperties[] = [ // ---------------------------------- // recipient: getAll // ---------------------------------- @@ -70,4 +70,4 @@ export const recipientFields = [ }, }, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Wise/descriptions/TransferDescription.ts b/packages/nodes-base/nodes/Wise/descriptions/TransferDescription.ts index 6c191765e36141..09530c3e8bab3c 100644 --- a/packages/nodes-base/nodes/Wise/descriptions/TransferDescription.ts +++ b/packages/nodes-base/nodes/Wise/descriptions/TransferDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const transferOperations = [ +export const transferOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -39,9 +39,9 @@ export const transferOperations = [ }, }, }, -] as INodeProperties[]; +]; -export const transferFields = [ +export const transferFields: INodeProperties[] = [ // ---------------------------------- // transfer: create // ---------------------------------- @@ -457,4 +457,4 @@ export const transferFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/WooCommerce/OrderDescription.ts b/packages/nodes-base/nodes/WooCommerce/OrderDescription.ts index 65c8dcd242ec28..f1e8f9ba40f595 100644 --- a/packages/nodes-base/nodes/WooCommerce/OrderDescription.ts +++ b/packages/nodes-base/nodes/WooCommerce/OrderDescription.ts @@ -1,6 +1,6 @@ import { INodeProperties } from 'n8n-workflow'; -export const orderOperations = [ +export const orderOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -42,9 +42,9 @@ export const orderOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const orderFields = [ +export const orderFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* order:create */ @@ -1688,4 +1688,4 @@ export const orderFields = [ default: '', description: 'order ID.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/WooCommerce/ProductDescription.ts b/packages/nodes-base/nodes/WooCommerce/ProductDescription.ts index d486b978d1716e..9eb30f5905b27e 100644 --- a/packages/nodes-base/nodes/WooCommerce/ProductDescription.ts +++ b/packages/nodes-base/nodes/WooCommerce/ProductDescription.ts @@ -1,6 +1,6 @@ import { INodeProperties } from 'n8n-workflow'; -export const productOperations = [ +export const productOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -42,9 +42,9 @@ export const productOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const productFields = [ +export const productFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* product:create */ @@ -1432,4 +1432,4 @@ export const productFields = [ default: '', description: 'Product ID.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/WooCommerce/descriptions/CustomerDescription.ts b/packages/nodes-base/nodes/WooCommerce/descriptions/CustomerDescription.ts index 4a52553fea497e..5393e0322a01a2 100644 --- a/packages/nodes-base/nodes/WooCommerce/descriptions/CustomerDescription.ts +++ b/packages/nodes-base/nodes/WooCommerce/descriptions/CustomerDescription.ts @@ -7,7 +7,7 @@ import { customerUpdateFields, } from './shared'; -export const customerOperations = [ +export const customerOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -48,9 +48,9 @@ export const customerOperations = [ ], default: 'create', }, -] as INodeProperties[]; +]; -export const customerFields = [ +export const customerFields: INodeProperties[] = [ // ---------------------------------------- // customer: create // ---------------------------------------- @@ -251,4 +251,4 @@ export const customerFields = [ }, }, customerUpdateFields, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/WooCommerce/descriptions/shared.ts b/packages/nodes-base/nodes/WooCommerce/descriptions/shared.ts index 7800b8554aecfb..d6b64bcf42b0a4 100644 --- a/packages/nodes-base/nodes/WooCommerce/descriptions/shared.ts +++ b/packages/nodes-base/nodes/WooCommerce/descriptions/shared.ts @@ -1,4 +1,8 @@ -const customerAddressOptions = [ +import { + INodeProperties, +} from 'n8n-workflow'; + +const customerAddressOptions: INodeProperties[] = [ { displayName: 'First Name', name: 'first_name', @@ -67,7 +71,7 @@ const customerAddressOptions = [ }, ]; -const customerUpdateOptions = [ +const customerUpdateOptions: INodeProperties[] = [ { displayName: 'Billing Address', name: 'billing', @@ -144,7 +148,7 @@ const customerUpdateOptions = [ }, ]; -const customerCreateOptions = [ +const customerCreateOptions: INodeProperties[] = [ ...customerUpdateOptions, { displayName: 'Username', @@ -154,7 +158,7 @@ const customerCreateOptions = [ }, ]; -export const customerCreateFields = { +export const customerCreateFields: INodeProperties = { displayName: 'Additional Fields', name: 'additionalFields', type: 'collection', @@ -173,7 +177,7 @@ export const customerCreateFields = { options: customerCreateOptions, }; -export const customerUpdateFields = { +export const customerUpdateFields: INodeProperties = { displayName: 'Update Fields', name: 'updateFields', type: 'collection', diff --git a/packages/nodes-base/nodes/Wordpress/PostDescription.ts b/packages/nodes-base/nodes/Wordpress/PostDescription.ts index 3e2f26154fef1c..68583fe4e39233 100644 --- a/packages/nodes-base/nodes/Wordpress/PostDescription.ts +++ b/packages/nodes-base/nodes/Wordpress/PostDescription.ts @@ -1,6 +1,6 @@ import { INodeProperties } from 'n8n-workflow'; -export const postOperations = [ +export const postOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -42,9 +42,9 @@ export const postOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const postFields = [ +export const postFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* post:create */ @@ -823,4 +823,4 @@ export const postFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Wordpress/UserDescription.ts b/packages/nodes-base/nodes/Wordpress/UserDescription.ts index c9d64643d9c36b..0177ccb205a794 100644 --- a/packages/nodes-base/nodes/Wordpress/UserDescription.ts +++ b/packages/nodes-base/nodes/Wordpress/UserDescription.ts @@ -1,6 +1,6 @@ import { INodeProperties } from 'n8n-workflow'; -export const userOperations = [ +export const userOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -42,9 +42,9 @@ export const userOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const userFields = [ +export const userFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* user:create */ @@ -564,4 +564,4 @@ export const userFields = [ }, description: `Reassign the deleted user's posts and links to this user ID.`, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Xero/ContactDescription.ts b/packages/nodes-base/nodes/Xero/ContactDescription.ts index 20237294427a86..2ce00ec5abb13e 100644 --- a/packages/nodes-base/nodes/Xero/ContactDescription.ts +++ b/packages/nodes-base/nodes/Xero/ContactDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const contactOperations = [ +export const contactOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -39,9 +39,9 @@ export const contactOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const contactFields = [ +export const contactFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* contact:create */ @@ -835,4 +835,4 @@ export const contactFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Xero/InvoiceDescription.ts b/packages/nodes-base/nodes/Xero/InvoiceDescription.ts index b2505da4f1b441..1d73c5f3eba74a 100644 --- a/packages/nodes-base/nodes/Xero/InvoiceDescription.ts +++ b/packages/nodes-base/nodes/Xero/InvoiceDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const invoiceOperations = [ +export const invoiceOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -39,9 +39,9 @@ export const invoiceOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const invoiceFields = [ +export const invoiceFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* invoice:create */ @@ -980,4 +980,4 @@ export const invoiceFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Yourls/UrlDescription.ts b/packages/nodes-base/nodes/Yourls/UrlDescription.ts index ccfdaef0ac2fbb..9778b163cf6940 100644 --- a/packages/nodes-base/nodes/Yourls/UrlDescription.ts +++ b/packages/nodes-base/nodes/Yourls/UrlDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const urlOperations = [ +export const urlOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -34,9 +34,9 @@ export const urlOperations = [ default: 'shorten', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const urlFields = [ +export const urlFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* url:shorten */ @@ -134,4 +134,4 @@ export const urlFields = [ default: '', description: 'The short URL for which to get stats.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Zendesk/ConditionDescription.ts b/packages/nodes-base/nodes/Zendesk/ConditionDescription.ts index 7b11fac701594d..46498a084a4889 100644 --- a/packages/nodes-base/nodes/Zendesk/ConditionDescription.ts +++ b/packages/nodes-base/nodes/Zendesk/ConditionDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const conditionFields = [ +export const conditionFields: INodeProperties[] = [ { displayName: 'Resource', name: 'resource', @@ -333,4 +333,4 @@ export const conditionFields = [ }, default: '', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Zendesk/OrganizationDescription.ts b/packages/nodes-base/nodes/Zendesk/OrganizationDescription.ts index 023ff678a9df13..df0a2ee876bee1 100644 --- a/packages/nodes-base/nodes/Zendesk/OrganizationDescription.ts +++ b/packages/nodes-base/nodes/Zendesk/OrganizationDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const organizationOperations = [ +export const organizationOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -54,9 +54,9 @@ export const organizationOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const organizationFields = [ +export const organizationFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* organization:create */ @@ -375,4 +375,4 @@ export const organizationFields = [ }, }, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Zendesk/TicketDescription.ts b/packages/nodes-base/nodes/Zendesk/TicketDescription.ts index 6008351dc825f9..032889d8e78444 100644 --- a/packages/nodes-base/nodes/Zendesk/TicketDescription.ts +++ b/packages/nodes-base/nodes/Zendesk/TicketDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const ticketOperations = [ +export const ticketOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -49,9 +49,9 @@ export const ticketOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const ticketFields = [ +export const ticketFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* ticket:create */ @@ -820,4 +820,4 @@ export const ticketFields = [ }, }, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Zendesk/TicketFieldDescription.ts b/packages/nodes-base/nodes/Zendesk/TicketFieldDescription.ts index 9ba754eef47da1..34dc418d55b735 100644 --- a/packages/nodes-base/nodes/Zendesk/TicketFieldDescription.ts +++ b/packages/nodes-base/nodes/Zendesk/TicketFieldDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const ticketFieldOperations = [ +export const ticketFieldOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -29,9 +29,9 @@ export const ticketFieldOperations = [ default: 'get', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const ticketFieldFields = [ +export const ticketFieldFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* ticketField:get */ @@ -99,4 +99,4 @@ export const ticketFieldFields = [ default: 100, description: 'How many results to return.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Zendesk/UserDescription.ts b/packages/nodes-base/nodes/Zendesk/UserDescription.ts index f181e5c1b038ad..3c55fe2135dce6 100644 --- a/packages/nodes-base/nodes/Zendesk/UserDescription.ts +++ b/packages/nodes-base/nodes/Zendesk/UserDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const userOperations = [ +export const userOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -58,9 +58,9 @@ export const userOperations = [ ], default: 'create', }, -] as INodeProperties[]; +]; -export const userFields = [ +export const userFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* user:create */ @@ -823,4 +823,4 @@ export const userFields = [ }, }, }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Zoho/descriptions/AccountDescription.ts b/packages/nodes-base/nodes/Zoho/descriptions/AccountDescription.ts index 6351d49f4dbb08..52498a2461e8d7 100644 --- a/packages/nodes-base/nodes/Zoho/descriptions/AccountDescription.ts +++ b/packages/nodes-base/nodes/Zoho/descriptions/AccountDescription.ts @@ -10,7 +10,7 @@ import { shippingAddress, } from './SharedFields'; -export const accountOperations = [ +export const accountOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -57,9 +57,9 @@ export const accountOperations = [ default: 'create', description: 'Operation to perform', }, -] as INodeProperties[]; +]; -export const accountFields = [ +export const accountFields: INodeProperties[] = [ // ---------------------------------------- // account: create // ---------------------------------------- @@ -412,4 +412,4 @@ export const accountFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Zoho/descriptions/ContactDescription.ts b/packages/nodes-base/nodes/Zoho/descriptions/ContactDescription.ts index fc58c8f6f43a7a..40f18f6685c04d 100644 --- a/packages/nodes-base/nodes/Zoho/descriptions/ContactDescription.ts +++ b/packages/nodes-base/nodes/Zoho/descriptions/ContactDescription.ts @@ -10,7 +10,7 @@ import { otherAddress, } from './SharedFields'; -export const contactOperations = [ +export const contactOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -57,9 +57,9 @@ export const contactOperations = [ default: 'create', description: 'Operation to perform', }, -] as INodeProperties[]; +]; -export const contactFields = [ +export const contactFields: INodeProperties[] = [ // ---------------------------------------- // contact: create // ---------------------------------------- @@ -587,4 +587,4 @@ export const contactFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Zoho/descriptions/DealDescription.ts b/packages/nodes-base/nodes/Zoho/descriptions/DealDescription.ts index 312c9b855b7674..cc41e9ccf0a8d6 100644 --- a/packages/nodes-base/nodes/Zoho/descriptions/DealDescription.ts +++ b/packages/nodes-base/nodes/Zoho/descriptions/DealDescription.ts @@ -8,7 +8,7 @@ import { makeGetAllFields, } from './SharedFields'; -export const dealOperations = [ +export const dealOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -55,9 +55,9 @@ export const dealOperations = [ default: 'create', description: 'Operation to perform', }, -] as INodeProperties[]; +]; -export const dealFields = [ +export const dealFields: INodeProperties[] = [ // ---------------------------------------- // deal: create // ---------------------------------------- @@ -382,4 +382,4 @@ export const dealFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Zoho/descriptions/InvoiceDescription.ts b/packages/nodes-base/nodes/Zoho/descriptions/InvoiceDescription.ts index 4ede26523f0f1b..0d38596cf86ffd 100644 --- a/packages/nodes-base/nodes/Zoho/descriptions/InvoiceDescription.ts +++ b/packages/nodes-base/nodes/Zoho/descriptions/InvoiceDescription.ts @@ -11,7 +11,7 @@ import { shippingAddress, } from './SharedFields'; -export const invoiceOperations = [ +export const invoiceOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -58,9 +58,9 @@ export const invoiceOperations = [ default: 'create', description: 'Operation to perform', }, -] as INodeProperties[]; +]; -export const invoiceFields = [ +export const invoiceFields: INodeProperties[] = [ // ---------------------------------------- // invoice: create // ---------------------------------------- @@ -460,4 +460,4 @@ export const invoiceFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Zoho/descriptions/LeadDescription.ts b/packages/nodes-base/nodes/Zoho/descriptions/LeadDescription.ts index 1f26dd04e727ff..4cd2b20d4d64ff 100644 --- a/packages/nodes-base/nodes/Zoho/descriptions/LeadDescription.ts +++ b/packages/nodes-base/nodes/Zoho/descriptions/LeadDescription.ts @@ -9,7 +9,7 @@ import { makeGetAllFields, } from './SharedFields'; -export const leadOperations = [ +export const leadOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -61,9 +61,9 @@ export const leadOperations = [ default: 'create', description: 'Operation to perform', }, -] as INodeProperties[]; +]; -export const leadFields = [ +export const leadFields: INodeProperties[] = [ // ---------------------------------------- // lead: create // ---------------------------------------- @@ -691,4 +691,4 @@ export const leadFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Zoho/descriptions/ProductDescription.ts b/packages/nodes-base/nodes/Zoho/descriptions/ProductDescription.ts index 19b6f880c6cc5b..3862941fdc9b25 100644 --- a/packages/nodes-base/nodes/Zoho/descriptions/ProductDescription.ts +++ b/packages/nodes-base/nodes/Zoho/descriptions/ProductDescription.ts @@ -7,7 +7,7 @@ import { makeGetAllFields, } from './SharedFields'; -export const productOperations = [ +export const productOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -54,9 +54,9 @@ export const productOperations = [ default: 'create', description: 'Operation to perform', }, -] as INodeProperties[]; +]; -export const productFields = [ +export const productFields: INodeProperties[] = [ // ---------------------------------------- // product: create // ---------------------------------------- @@ -349,4 +349,4 @@ export const productFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Zoho/descriptions/PurchaseOrderDescription.ts b/packages/nodes-base/nodes/Zoho/descriptions/PurchaseOrderDescription.ts index 2ef0b573f8da16..5acdca56e576ed 100644 --- a/packages/nodes-base/nodes/Zoho/descriptions/PurchaseOrderDescription.ts +++ b/packages/nodes-base/nodes/Zoho/descriptions/PurchaseOrderDescription.ts @@ -11,7 +11,7 @@ import { shippingAddress, } from './SharedFields'; -export const purchaseOrderOperations = [ +export const purchaseOrderOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -58,9 +58,9 @@ export const purchaseOrderOperations = [ default: 'create', description: 'Operation to perform', }, -] as INodeProperties[]; +]; -export const purchaseOrderFields = [ +export const purchaseOrderFields: INodeProperties[] = [ // ---------------------------------------- // purchaseOrder: create // ---------------------------------------- @@ -587,4 +587,4 @@ export const purchaseOrderFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Zoho/descriptions/QuoteDescription.ts b/packages/nodes-base/nodes/Zoho/descriptions/QuoteDescription.ts index 0ecf64adaf8c5f..9e4d92f2ba93aa 100644 --- a/packages/nodes-base/nodes/Zoho/descriptions/QuoteDescription.ts +++ b/packages/nodes-base/nodes/Zoho/descriptions/QuoteDescription.ts @@ -11,7 +11,7 @@ import { shippingAddress, } from './SharedFields'; -export const quoteOperations = [ +export const quoteOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -58,9 +58,9 @@ export const quoteOperations = [ default: 'create', description: 'Operation to perform', }, -] as INodeProperties[]; +]; -export const quoteFields = [ +export const quoteFields: INodeProperties[] = [ // ---------------------------------------- // quote: create // ---------------------------------------- @@ -456,4 +456,4 @@ export const quoteFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Zoho/descriptions/SalesOrderDescription.ts b/packages/nodes-base/nodes/Zoho/descriptions/SalesOrderDescription.ts index 35547664cf8909..3ba26f67dd9e0c 100644 --- a/packages/nodes-base/nodes/Zoho/descriptions/SalesOrderDescription.ts +++ b/packages/nodes-base/nodes/Zoho/descriptions/SalesOrderDescription.ts @@ -11,7 +11,7 @@ import { shippingAddress, } from './SharedFields'; -export const salesOrderOperations = [ +export const salesOrderOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -58,9 +58,9 @@ export const salesOrderOperations = [ default: 'create', description: 'Operation to perform', }, -] as INodeProperties[]; +]; -export const salesOrderFields = [ +export const salesOrderFields: INodeProperties[] = [ // ---------------------------------------- // salesOrder: create + upsert // ---------------------------------------- @@ -566,4 +566,4 @@ export const salesOrderFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Zoho/descriptions/SharedFields.ts b/packages/nodes-base/nodes/Zoho/descriptions/SharedFields.ts index e7030ba28f12be..64798505e73a8a 100644 --- a/packages/nodes-base/nodes/Zoho/descriptions/SharedFields.ts +++ b/packages/nodes-base/nodes/Zoho/descriptions/SharedFields.ts @@ -1,7 +1,10 @@ +import { + INodeProperties +} from 'n8n-workflow'; import { capitalizeInitial } from '../GenericFunctions'; import { CamelCaseResource } from '../types'; -export const billingAddress = { +export const billingAddress: INodeProperties = { displayName: 'Billing Address', name: 'Billing_Address', type: 'fixedCollection', @@ -47,7 +50,7 @@ export const billingAddress = { ], }; -export const shippingAddress = { +export const shippingAddress: INodeProperties = { displayName: 'Shipping Address', name: 'Shipping_Address', type: 'fixedCollection', @@ -93,7 +96,7 @@ export const shippingAddress = { ], }; -export const mailingAddress = { +export const mailingAddress: INodeProperties = { displayName: 'Mailing Address', name: 'Mailing_Address', type: 'fixedCollection', @@ -139,7 +142,7 @@ export const mailingAddress = { ], }; -export const otherAddress = { +export const otherAddress: INodeProperties = { displayName: 'Other Address', name: 'Other_Address', type: 'fixedCollection', @@ -179,7 +182,7 @@ export const otherAddress = { ], }; -export const address = { +export const address: INodeProperties = { displayName: 'Address', name: 'Address', type: 'fixedCollection', @@ -245,7 +248,7 @@ export const address = { // }, // }, -export const productDetailsOptions = [ +export const productDetailsOptions: INodeProperties[] = [ { displayName: 'List Price', name: 'list_price', @@ -311,7 +314,7 @@ export const productDetailsOptions = [ }, ]; -export const makeGetAllFields = (resource: CamelCaseResource) => { +export const makeGetAllFields = (resource: CamelCaseResource): INodeProperties[] => { const loadOptionsMethod = `get${capitalizeInitial(resource)}Fields`; return [ @@ -443,7 +446,7 @@ export const makeGetAllFields = (resource: CamelCaseResource) => { ]; }; -export const makeCustomFieldsFixedCollection = (resource: CamelCaseResource) => { +export const makeCustomFieldsFixedCollection = (resource: CamelCaseResource): INodeProperties => { const loadOptionsMethod = `getCustom${capitalizeInitial(resource)}Fields`; return { diff --git a/packages/nodes-base/nodes/Zoho/descriptions/VendorDescription.ts b/packages/nodes-base/nodes/Zoho/descriptions/VendorDescription.ts index ff15df5ea72454..deb14ef4121cc4 100644 --- a/packages/nodes-base/nodes/Zoho/descriptions/VendorDescription.ts +++ b/packages/nodes-base/nodes/Zoho/descriptions/VendorDescription.ts @@ -9,7 +9,7 @@ import { makeGetAllFields, } from './SharedFields'; -export const vendorOperations = [ +export const vendorOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -56,9 +56,9 @@ export const vendorOperations = [ default: 'create', description: 'Operation to perform', }, -] as INodeProperties[]; +]; -export const vendorFields = [ +export const vendorFields: INodeProperties[] = [ // ---------------------------------------- // vendor: create // ---------------------------------------- @@ -298,4 +298,4 @@ export const vendorFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Zoom/MeetingDescription.ts b/packages/nodes-base/nodes/Zoom/MeetingDescription.ts index 294c47efe3779e..fcc6528b7b4afc 100644 --- a/packages/nodes-base/nodes/Zoom/MeetingDescription.ts +++ b/packages/nodes-base/nodes/Zoom/MeetingDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const meetingOperations = [ +export const meetingOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -44,9 +44,9 @@ export const meetingOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const meetingFields = [ +export const meetingFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* meeting:create */ /* -------------------------------------------------------------------------- */ @@ -748,4 +748,4 @@ export const meetingFields = [ }, ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Zoom/MeetingRegistrantDescription.ts b/packages/nodes-base/nodes/Zoom/MeetingRegistrantDescription.ts index 7419e04ed72783..3f889a41e58aae 100644 --- a/packages/nodes-base/nodes/Zoom/MeetingRegistrantDescription.ts +++ b/packages/nodes-base/nodes/Zoom/MeetingRegistrantDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const meetingRegistrantOperations = [ +export const meetingRegistrantOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -35,9 +35,9 @@ export const meetingRegistrantOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const meetingRegistrantFields = [ +export const meetingRegistrantFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* meetingRegistrant:create */ /* -------------------------------------------------------------------------- */ @@ -440,4 +440,4 @@ export const meetingRegistrantFields = [ ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Zoom/WebinarDescription.ts b/packages/nodes-base/nodes/Zoom/WebinarDescription.ts index 648fe43c249467..5e1213b01660a9 100644 --- a/packages/nodes-base/nodes/Zoom/WebinarDescription.ts +++ b/packages/nodes-base/nodes/Zoom/WebinarDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const webinarOperations = [ +export const webinarOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -44,9 +44,9 @@ export const webinarOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const webinarFields = [ +export const webinarFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* webinar:create */ /* -------------------------------------------------------------------------- */ @@ -662,4 +662,4 @@ export const webinarFields = [ ], }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Zulip/MessageDescription.ts b/packages/nodes-base/nodes/Zulip/MessageDescription.ts index 454b51ac1d8ee8..9c23bcdd21ff21 100644 --- a/packages/nodes-base/nodes/Zulip/MessageDescription.ts +++ b/packages/nodes-base/nodes/Zulip/MessageDescription.ts @@ -1,6 +1,6 @@ import { INodeProperties } from 'n8n-workflow'; -export const messageOperations = [ +export const messageOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -47,9 +47,9 @@ export const messageOperations = [ default: 'sendPrivate', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const messageFields = [ +export const messageFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* message:sendPrivate */ @@ -125,7 +125,9 @@ export const messageFields = [ name: 'topic', type: 'options', typeOptions: { - loadOptionsDependsOn: 'stream', + loadOptionsDependsOn: [ + 'stream', + ], loadOptionsMethod: 'getTopics', }, required: true, @@ -304,4 +306,4 @@ export const messageFields = [ }, description: 'Name of the binary property to which to write the data of the read file.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Zulip/StreamDescription.ts b/packages/nodes-base/nodes/Zulip/StreamDescription.ts index bccf8cf1d366e9..3ea83a6222e081 100644 --- a/packages/nodes-base/nodes/Zulip/StreamDescription.ts +++ b/packages/nodes-base/nodes/Zulip/StreamDescription.ts @@ -1,6 +1,6 @@ import { INodeProperties } from 'n8n-workflow'; -export const streamOperations = [ +export const streamOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -42,9 +42,9 @@ export const streamOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const streamFields = [ +export const streamFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* stream:create */ /* -------------------------------------------------------------------------- */ @@ -493,4 +493,4 @@ export const streamFields = [ description: 'ID of stream to delete.', }, -] as INodeProperties[]; +]; diff --git a/packages/nodes-base/nodes/Zulip/UserDescription.ts b/packages/nodes-base/nodes/Zulip/UserDescription.ts index 164432e5b0e174..0c137dd3836da3 100644 --- a/packages/nodes-base/nodes/Zulip/UserDescription.ts +++ b/packages/nodes-base/nodes/Zulip/UserDescription.ts @@ -1,6 +1,6 @@ import { INodeProperties } from 'n8n-workflow'; -export const userOperations = [ +export const userOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -42,9 +42,9 @@ export const userOperations = [ default: 'create', description: 'The operation to perform.', }, -] as INodeProperties[]; +]; -export const userFields = [ +export const userFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* user:create */ /* -------------------------------------------------------------------------- */ @@ -321,4 +321,4 @@ export const userFields = [ default: '', description: 'The ID of user to deactivate.', }, -] as INodeProperties[]; +]; diff --git a/packages/workflow/src/Interfaces.ts b/packages/workflow/src/Interfaces.ts index aa724cb0df4c33..8a8422b2101780 100644 --- a/packages/workflow/src/Interfaces.ts +++ b/packages/workflow/src/Interfaces.ts @@ -676,7 +676,7 @@ export interface INodeProperties { } export interface INodePropertyOptions { name: string; - value: string | number; + value: string | number | boolean; description?: string; } From a48bff2eee9fc786744ecedb122507e0ca76b729 Mon Sep 17 00:00:00 2001 From: Elvina Valieva Date: Fri, 3 Dec 2021 13:19:23 +0100 Subject: [PATCH 03/22] :zap: Survey updates (#2495) * feat: update survey * feat: appearance tweaks * chore: hardcode survey showing * chore: fix survey options * feat: show survey for users with workflows * chore: take personalization into account * chore: revert survey conditions * chore: remove select override * chore: remove transfer component from editor * chore: more expressive flag name * :zap: Minor improvements Co-authored-by: Jan Oberhauser --- packages/editor-ui/src/Interface.ts | 3 +- .../src/components/PersonalizationModal.vue | 160 +++++++++++++----- packages/editor-ui/src/constants.ts | 16 +- packages/editor-ui/src/modules/helper.ts | 4 +- packages/editor-ui/src/modules/settings.ts | 1 + packages/editor-ui/src/n8n-theme.scss | 23 --- packages/editor-ui/src/plugins/components.ts | 2 - 7 files changed, 133 insertions(+), 76 deletions(-) diff --git a/packages/editor-ui/src/Interface.ts b/packages/editor-ui/src/Interface.ts index 7332f354809dd7..cef30c8f986c9b 100644 --- a/packages/editor-ui/src/Interface.ts +++ b/packages/editor-ui/src/Interface.ts @@ -458,7 +458,7 @@ export interface IVersionNotificationSettings { infoUrl: string; } -export type IPersonalizationSurveyKeys = 'companySize' | 'codingSkill' | 'workArea' | 'otherWorkArea'; +export type IPersonalizationSurveyKeys = 'codingSkill' | 'companyIndustry' | 'companySize' | 'otherCompanyIndustry' | 'otherWorkArea' | 'workArea'; export type IPersonalizationSurveyAnswers = { [key in IPersonalizationSurveyKeys]: string | null @@ -700,4 +700,3 @@ export interface IBounds { maxX: number; maxY: number; } - diff --git a/packages/editor-ui/src/components/PersonalizationModal.vue b/packages/editor-ui/src/components/PersonalizationModal.vue index dc4be6efbf2295..37727a4ccc9a70 100644 --- a/packages/editor-ui/src/components/PersonalizationModal.vue +++ b/packages/editor-ui/src/components/PersonalizationModal.vue @@ -18,59 +18,82 @@ Look out for things marked with a ✨. They are personalized to make n8n more relevant to you.
- - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + +
@@ -324,7 +324,14 @@ export default mixins( return false; }, convertToDisplayDate, - displayExecution (execution: IExecutionShortResponse) { + displayExecution (execution: IExecutionShortResponse, e: PointerEvent) { + if (e.metaKey || e.ctrlKey) { + const route = this.$router.resolve({name: 'ExecutionById', params: {id: execution.id}}); + window.open(route.href, '_blank'); + + return; + } + this.$router.push({ name: 'ExecutionById', params: { id: execution.id }, diff --git a/packages/editor-ui/src/components/WorkflowOpen.vue b/packages/editor-ui/src/components/WorkflowOpen.vue index 062d3a7167973d..81d08761c922a4 100644 --- a/packages/editor-ui/src/components/WorkflowOpen.vue +++ b/packages/editor-ui/src/components/WorkflowOpen.vue @@ -134,11 +134,18 @@ export default mixins( this.filterTagIds.push(tagId); } }, - async openWorkflow (data: IWorkflowShortResponse, column: any) { // tslint:disable-line:no-any + async openWorkflow (data: IWorkflowShortResponse, column: any, cell: any, e: PointerEvent) { // tslint:disable-line:no-any if (column.label !== 'Active') { const currentWorkflowId = this.$store.getters.workflowId; + if (e.metaKey || e.ctrlKey) { + const route = this.$router.resolve({name: 'NodeViewExisting', params: {name: data.id}}); + window.open(route.href, '_blank'); + + return; + } + if (data.id === currentWorkflowId) { this.$showMessage({ title: 'Already open', From 2081aedc814f345238edb94ab8b504e48acf8d64 Mon Sep 17 00:00:00 2001 From: Jan Oberhauser Date: Fri, 3 Dec 2021 15:08:38 +0100 Subject: [PATCH 05/22] :bug: Improve expression security --- packages/workflow/src/Expression.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/workflow/src/Expression.ts b/packages/workflow/src/Expression.ts index e955df41705fb5..370e5b03415962 100644 --- a/packages/workflow/src/Expression.ts +++ b/packages/workflow/src/Expression.ts @@ -114,11 +114,11 @@ export class Expression { // @ts-ignore data.document = {}; + // @ts-ignore + data.constructor = {}; // Execute the expression try { - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call - // tmpl.tmpl('{{this.Promise=global.Promise;global=this;}}', data); // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call const returnValue = tmpl.tmpl(parameterValue, data); if (typeof returnValue === 'function') { From d62c7a7f3cda127e4a0e5dc4bbd2516ecce86812 Mon Sep 17 00:00:00 2001 From: Anuj Kapoor Date: Fri, 3 Dec 2021 20:07:04 +0530 Subject: [PATCH 06/22] :bug: Add error pop up and redirection for non existing workflow IDs (#2516) * :bug: Add error pop up and redirection for non existing workflow IDs * Remove code comments --- packages/editor-ui/src/views/NodeView.vue | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/packages/editor-ui/src/views/NodeView.vue b/packages/editor-ui/src/views/NodeView.vue index de33d7e3bce9ae..6a131c4e06e292 100644 --- a/packages/editor-ui/src/views/NodeView.vue +++ b/packages/editor-ui/src/views/NodeView.vue @@ -1633,11 +1633,19 @@ export default mixins( if (workflowId !== null) { const workflow = await this.restApi().getWorkflow(workflowId); if (!workflow) { - throw new Error('Could not find workflow'); + this.$router.push({ + name: "NodeViewNew", + }); + this.$showMessage({ + title: 'Error', + message: 'Could not find workflow', + type: 'error', + }); + } else { + this.$titleSet(workflow.name, 'IDLE'); + // Open existing workflow + await this.openWorkflow(workflowId); } - this.$titleSet(workflow.name, 'IDLE'); - // Open existing workflow - await this.openWorkflow(workflowId); } else { // Create new workflow await this.newWorkflow(); From 76c63790b43ec0d50e092390e78280562100aa78 Mon Sep 17 00:00:00 2001 From: Mutasem Aldmour <4711238+mutdmour@users.noreply.github.com> Date: Fri, 3 Dec 2021 18:53:55 +0100 Subject: [PATCH 07/22] :sparkles: Add plus endpoint (#2450) * fix * refactor * clean up css * refactor setzoom level * refactor * refactor * refactor func * remove scope * remove localstorage caching * clean up imports * update zero case * add delete connection * update selected state * add base type, remove straight line * add stub offset back * rename param * add label offset * update font size of items * move up label * fix error state while executing * disrespect stubs * check for errors * refactor position * clean up extra space * make entire node connectable * Revert "make entire node connectable" e304f7c5b8ff1b41268450c60ca4bc3b2ada5d4a * always show border * add border to zoom buttons * update spacing * update colors * allow connecting to entire node * fix pull conn active * two line names * apply select to all lines * increase input margin * override target pos * reset conn after pull * fix types * update orientation * fix up connectors snapping * hide arrow on pull * update overrides for connectors * change text * update pull colors * set to 1 line when selected * fix executions bug * build * refactor node component * remove comment * refactor more * remove prop * fix build issue * fix input drag bug in executions * reset offset * update select background * handle issue when endpoints are not set * fix connection aborted issue * add try catch to help show errors * wrap bind with try/catch * set default styles * reset pos despite zoom * add more checks * clean up impl * update icon * handle unknown types * hide items on init * fix importing unknown types with credentials * change opacity * push up item label * update color * update label class and colors * add to drop distance * fix z-index to match node * disable eslint * fix lasso tool selection * update background color * update waiting state * update tooltip positions * update wait node border * fix selection bug mostly * if selected, move above other nodes * add line through disabled nodes * remove node color option * move label above connection * success color for line through * update options index * hide waiting icon when disabled * fix gmail icon * refactor icons * clear execution data on disable/delete * fix selected node * fix executing behavior * optional __meta * set grid size * remove default color * remove node color * add comments * comments * add comments * remove empty space * update comment * refactor uuids * fix type issue * Revert "fix type issue" 9523b34f9604f75253ae0631f29fc27267a99d78 * Revert "fix type issue" 9523b34f9604f75253ae0631f29fc27267a99d78 * Revert "refactor uuids" 07f6848065cb9a98475fddb8330846106f9e70ad * fix build issues * refactor * update uuid * child nodes * skip nodes behind when pushing in loop * shift output icon for switch node * don't show output if waiting * waiting on init * build * change to bezier * implement plus * revert connector change * add bezier type * fix snapping * clean up impl * refactor func * make const * rename type * refactor to simplify * Revert "refactor to simplify" 2db0ed504c752c33de975370d86a83a04ffcda14 * enable flowchart mode * clean up flowchart type * refactor type * merge types * configure curviness * set in localstorage * fix straight line arrow bug * show arrow when pulling * refactor / simplify * fix target gap in bezier * refactor target gap * add comments * add comment * fix dragging connections * fix bug when moving connection * update comment * rename file * update values * update minor * update straight line box * clean up conn types * clean up z-indexes * move color filters to node icon * update background color * update to use grid size value * fix endpoint offsets * set yspan range lower * remove overlays when moving conn * prevent unwanted connections * fix messed up connections * remove console log * clear execution issues on workflow run * update corner radius * fix drag/delete bug * increase offset * update disabled state * hide if endpoint has conn * node insert on click * simplify impl * fix z-indexes * add drop hover message * address comments * refactor * refactor func * remove drop conn overlay * update messagE * update colors * remove console log * rebuild impl * add stalk * fix disabled state * fix dragging bug * remove node selection * disable plus in executions * add success output to talk * add success output * set output * fix bug * fix switch size * update size for 3 output nodes * update loops * fix bug when node is renamed * set final values * update loop behavior * update comment * hide output labels on multi outputs * center output * fix flicker when deleting nodes * fix dragging space * increase stalk if if * more type checks * rename event source * rename event source * support touch when dragging * offset center * center plus * fix repaint behavior * remove extending output * add offset to switch * fix merge node bug * rename endpoint * refactor css, fix merge bug * fix unrelated issues * space out * remove flowchart type * rename constant key * clean up css * rename var * fix more type issues * update types * fix spacing * simplify vertical offset * refactor css * add license * update css * clean up scss * update to use css var * clean up code * update params * show message * fix plus position * fix merge node bugs * hide box when not dragging and hidden * fix potential issue * address comments --- packages/editor-ui/src/Interface.ts | 12 + packages/editor-ui/src/components/Node.vue | 106 +++- .../src/components/mixins/nodeBase.ts | 53 +- packages/editor-ui/src/constants.ts | 1 + .../editor-ui/src/plugins/PlusEndpointType.js | 495 ++++++++++++++++++ packages/editor-ui/src/store.ts | 2 +- packages/editor-ui/src/views/NodeView.vue | 93 +++- packages/editor-ui/src/views/canvasHelpers.ts | 62 ++- 8 files changed, 757 insertions(+), 67 deletions(-) create mode 100644 packages/editor-ui/src/plugins/PlusEndpointType.js diff --git a/packages/editor-ui/src/Interface.ts b/packages/editor-ui/src/Interface.ts index cef30c8f986c9b..2518f1bb58dd44 100644 --- a/packages/editor-ui/src/Interface.ts +++ b/packages/editor-ui/src/Interface.ts @@ -66,11 +66,22 @@ declare module 'jsplumb' { } interface Endpoint { + endpoint: any; // tslint:disable-line:no-any + elementId: string; __meta?: { nodeName: string, + nodeId: string, index: number, + totalEndpoints: number; }; + getUuid(): string; getOverlay(name: string): any; // tslint:disable-line:no-any + repaint(params?: object): void; + } + + interface N8nPlusEndpoint extends Endpoint { + setSuccessOutput(message: string): void; + clearSuccessOutput(): void; } interface Overlay { @@ -103,6 +114,7 @@ export interface IEndpointOptions { parameters?: any; // tslint:disable-line:no-any uuid?: string; enabled?: boolean; + cssClass?: string; } export interface IUpdateInformation { diff --git a/packages/editor-ui/src/components/Node.vue b/packages/editor-ui/src/components/Node.vue index 3c0df1ed8581a7..96f57696e69c3a 100644 --- a/packages/editor-ui/src/components/Node.vue +++ b/packages/editor-ui/src/components/Node.vue @@ -1,5 +1,5 @@