/** * Help Scout Node - Version 1 * Discriminator: resource=conversation, operation=getAll */ interface Credentials { helpScoutOAuth2Api: CredentialReference; } /** Get many conversations */ export type HelpScoutV1ConversationGetAllParams = { resource: 'conversation'; operation: 'getAll'; /** * 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 50 */ limit?: number | Expression; /** * Options * @default {} */ options?: { /** Filters conversations by assignee ID * @default 0 */ assignTo?: number | Expression; /** Allows embedding/loading of sub-entities */ embed?: 'threads' | Expression; /** Filters conversations from a specific folder ID */ folder?: string | Expression | PlaceholderValue; /** Filters conversations from a specific mailbox */ mailbox?: string | Expression | PlaceholderValue; /** Returns only conversations that were modified after this date */ modifiedSince?: string | Expression; /** Looks up conversation by conversation number * @default 0 */ number?: number | Expression; /** Advanced search <a href="https://developer.helpscout.com/mailbox-api/endpoints/conversations/list/#query">Examples</a> */ query?: string | Expression | PlaceholderValue; /** Sorts the result by specified field */ sortField?: 'createdAt' | 'customerEmail' | 'customerName' | 'mailboxid' | 'modifiedAt' | 'number' | 'score' | 'status' | 'subject' | Expression; /** Sort Order * @default desc */ sortOrder?: 'asc' | 'desc' | Expression; /** Filter conversation by status * @default active */ status?: 'active' | 'all' | 'closed' | 'open' | 'pending' | 'spam' | Expression; /** Filter conversation by tags. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. * @default [] */ tags?: string[]; }; }; export type HelpScoutV1ConversationGetAllOutput = { _embedded?: { threads?: Array<{ _embedded?: { attachments?: Array<{ _links?: { data?: { href?: string; }; self?: { href?: string; }; web?: { href?: string; }; }; filename?: string; height?: number; id?: number; mimeType?: string; size?: number; state?: string; width?: number; }>; }; _links?: { assignedTo?: { href?: string; }; createdByCustomer?: { href?: string; }; createdByUser?: { href?: string; }; customer?: { href?: string; }; }; action?: { associatedEntities?: { user?: number; }; text?: string; type?: string; }; assignedTo?: { email?: string; first?: string; id?: number; last?: string; photoUrl?: string; type?: string; }; body?: string; createdAt?: string; createdBy?: { email?: string; first?: string; id?: number; last?: string; photoUrl?: string; type?: string; }; customer?: { email?: string; first?: string; id?: number; last?: string; photoUrl?: string; }; id?: number; openedAt?: string; savedReplyId?: number; source?: { type?: string; via?: string; }; state?: string; status?: string; to?: Array; type?: string; }>; }; _links?: { closedBy?: { href?: string; }; createdByCustomer?: { href?: string; }; mailbox?: { href?: string; }; primaryCustomer?: { href?: string; }; self?: { href?: string; }; threads?: { href?: string; }; web?: { href?: string; }; }; bcc?: Array; cc?: Array; closedBy?: number; closedByUser?: { email?: string; first?: string; id?: number; last?: string; type?: string; }; createdAt?: string; createdBy?: { email?: string; first?: string; id?: number; last?: string; photoUrl?: string; type?: string; }; customerWaitingSince?: { friendly?: string; time?: string; }; customFields?: Array<{ id?: number; name?: string; text?: string; value?: string; }>; folderId?: number; id?: number; mailboxId?: number; number?: number; preview?: string; primaryCustomer?: { email?: string; first?: string; id?: number; last?: string; photoUrl?: string; type?: string; }; source?: { type?: string; via?: string; }; state?: string; status?: string; subject?: string; tags?: Array<{ color?: string; id?: number; tag?: string; }>; threads?: number; type?: string; userUpdatedAt?: string; }; export type HelpScoutV1ConversationGetAllNode = { type: 'n8n-nodes-base.helpScout'; version: 1; credentials?: Credentials; config: NodeConfig; output?: Items; };