/** * Harvest Node - Version 1 * Discriminator: resource=task, operation=create */ interface Credentials { harvestApi: CredentialReference; harvestOAuth2Api: CredentialReference; } /** Create a client */ export type HarvestV1TaskCreateParams = { resource: 'task'; operation: 'create'; 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; /** * The name of the task */ name?: string | Expression | PlaceholderValue; /** * Additional Fields * @default {} */ additionalFields?: { /** Whether default tasks should be marked billable when creating a new project. Defaults to true. * @default true */ billable_by_default?: boolean | Expression; /** The default hourly rate to use for this task when it is added to a project. Defaults to 0. * @default 0 */ default_hourly_rate?: number | Expression; /** Whether this task is active or archived. Defaults to true. * @default true */ is_active?: boolean | Expression; /** Whether this task should be automatically added to future projects. Defaults to false. * @default false */ is_default?: boolean | Expression; }; }; export type HarvestV1TaskCreateNode = { type: 'n8n-nodes-base.harvest'; version: 1; credentials?: Credentials; config: NodeConfig; };