/** * Harvest Node - Version 1 * Discriminator: resource=project, operation=getAll */ interface Credentials { harvestApi: CredentialReference; harvestOAuth2Api: CredentialReference; } /** Get data of many clients */ export type HarvestV1ProjectGetAllParams = { resource: 'project'; operation: 'getAll'; authentication?: 'accessToken' | 'oAuth2' | Expression; /** * Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a> */ accountId?: string | Expression; /** * 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; /** * Filters * @default {} */ filters?: { /** Only return projects belonging to the client with the given ID */ client_id?: string | Expression | PlaceholderValue; /** Whether to only return active projects and false to return inactive projects * @default true */ is_active?: boolean | Expression; /** The page number to use in pagination * @default 1 */ page?: number | Expression; /** Only return projects by updated_since */ updated_since?: string | Expression; }; }; export type HarvestV1ProjectGetAllOutput = { bill_by?: string; budget_by?: string; budget_is_monthly?: boolean; client?: { currency?: string; id?: number; name?: string; }; cost_budget_include_expenses?: boolean; created_at?: string; id?: number; is_active?: boolean; is_billable?: boolean; is_fixed_fee?: boolean; name?: string; notify_when_over_budget?: boolean; over_budget_notification_percentage?: number; show_budget_to_all?: boolean; updated_at?: string; }; export type HarvestV1ProjectGetAllNode = { type: 'n8n-nodes-base.harvest'; version: 1; credentials?: Credentials; config: NodeConfig; output?: Items; };