/** * Microsoft Outlook Node - Version 2 * Discriminator: resource=folderMessage, operation=getAll */ interface Credentials { microsoftOutlookOAuth2Api: CredentialReference; } /** List and search calendars */ export type MicrosoftOutlookV2FolderMessageGetAllParams = { resource: 'folderMessage'; operation: 'getAll'; /** * Folder * @default {"mode":"list","value":""} */ folderId?: { __rl: true; mode: 'list' | 'url' | 'id'; value: string; cachedResultName?: string }; /** * Whether to return all results or only up to a given limit * @default false */ returnAll?: boolean | Expression; /** * Max number of results to return * @displayOptions.show { returnAll: [false] } * @default 100 */ limit?: number | Expression; /** * Output * @default simple */ output?: 'simple' | 'raw' | 'fields' | Expression; /** * The fields to add to the output * @displayOptions.show { output: ["fields"] } * @default [] */ fields?: Array<'bccRecipients' | 'body' | 'bodyPreview' | 'categories' | 'ccRecipients' | 'changeKey' | 'conversationId' | 'createdDateTime' | 'flag' | 'from' | 'hasAttachments' | 'importance' | 'inferenceClassification' | 'internetMessageId' | 'isDeliveryReceiptRequested' | 'isDraft' | 'isRead' | 'isReadReceiptRequested' | 'lastModifiedDateTime' | 'parentFolderId' | 'receivedDateTime' | 'replyTo' | 'sender' | 'sentDateTime' | 'subject' | 'toRecipients' | 'webLink'>; /** * Filters * @default {} */ filtersUI?: { /** Values */ values?: { /** Filter By * @default filters */ filterBy?: 'filters' | 'search' | Expression; /** Only return messages that contains search term. Without specific message properties, the search is carried out on the default search properties of from, subject, and body. <a href="https://docs.microsoft.com/en-us/graph/query-parameters#search-parameter target="_blank">More info</a>. * @displayOptions.show { filterBy: ["search"] } */ search?: string | Expression | PlaceholderValue; /** Filters * @displayOptions.show { filterBy: ["filters"] } * @default {} */ filters?: { /** Filter Query * @hint Search query to filter messages. <a href="https://learn.microsoft.com/en-us/graph/filter-query-parameter">More info</a>. */ custom?: string | Expression | PlaceholderValue; /** Has Attachments * @default false */ hasAttachments?: boolean | Expression; /** Read Status * @hint Filter messages by whether they have been read or not * @default unread */ readStatus?: 'both' | 'unread' | 'read' | Expression; /** Get all messages received after the specified date. In an expression you can set date using string in ISO format or a timestamp in miliseconds. */ receivedAfter?: string | Expression; /** Get all messages received before the specified date. In an expression you can set date using string in ISO format or a timestamp in miliseconds. */ receivedBefore?: string | Expression; /** Sender name or email to filter by */ sender?: string | Expression | PlaceholderValue; }; }; }; /** * Options * @default {} */ options?: { /** Prefix for name of the output fields to put the binary files data in. An index starting from 0 will be added. So if name is "attachment_" the first attachment is saved to "attachment_0". * @default attachment_ */ attachmentsPrefix?: string | Expression | PlaceholderValue; /** Whether the message's attachments will be downloaded and included in the output * @default false */ downloadAttachments?: boolean | Expression; }; }; export type MicrosoftOutlookV2FolderMessageGetAllOutput = { '@odata.etag'?: string; body?: { content?: string; contentType?: string; }; bodyPreview?: string; categories?: Array; ccRecipients?: Array<{ emailAddress?: { address?: string; name?: string; }; }>; changeKey?: string; conversationId?: string; conversationIndex?: string; createdDateTime?: string; flag?: { flagStatus?: string; }; from?: { emailAddress?: { address?: string; name?: string; }; }; hasAttachments?: boolean; id?: string; importance?: string; inferenceClassification?: string; internetMessageId?: string; isDraft?: boolean; isRead?: boolean; isReadReceiptRequested?: boolean; lastModifiedDateTime?: string; parentFolderId?: string; receivedDateTime?: string; replyTo?: Array<{ emailAddress?: { address?: string; name?: string; }; }>; sender?: { emailAddress?: { address?: string; name?: string; }; }; sentDateTime?: string; subject?: string; toRecipients?: Array<{ emailAddress?: { address?: string; name?: string; }; }>; webLink?: string; }; export type MicrosoftOutlookV2FolderMessageGetAllNode = { type: 'n8n-nodes-base.microsoftOutlook'; version: 2; credentials?: Credentials; config: NodeConfig; output?: Items; };