/** * Harvest Node - Version 1 * Discriminator: resource=project, operation=update */ interface Credentials { harvestApi: CredentialReference; harvestOAuth2Api: CredentialReference; } /** Update a client */ export type HarvestV1ProjectUpdateParams = { resource: 'project'; operation: 'update'; 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 ID of the project want to update */ id?: string | Expression | PlaceholderValue; /** * Update Fields * @default {} */ updateFields?: { /** The method by which the project is invoiced * @default none */ bill_by?: 'none' | 'People' | 'Project' | 'Tasks' | Expression; /** The budget in hours for the project when budgeting by time */ budget?: string | Expression | PlaceholderValue; /** The email of the user or "none" */ budget_by?: string | Expression | PlaceholderValue; /** Whether to have the budget reset every month. Defaults to false. * @default false */ budget_is_monthly?: boolean | Expression; /** The ID of the client to associate this project with */ client_id?: string | Expression | PlaceholderValue; /** The monetary budget for the project when budgeting by money */ cost_budget?: string | Expression | PlaceholderValue; /** Option for budget of Total Project Fees projects to include tracked expenses. Defaults to false. * @default false */ cost_budget_include_expenses?: boolean | Expression; /** Date the project will end */ ends_on?: string | Expression; /** The amount you plan to invoice for the project. Only used by fixed-fee projects. */ fee?: string | Expression | PlaceholderValue; /** Rate for projects billed by Project Hourly Rate */ hourly_rate?: string | Expression | PlaceholderValue; /** Whether the project is active or archived. Defaults to true. * @default true */ is_active?: boolean | Expression; /** Whether the project is billable or not * @default true */ is_billable?: boolean | Expression; /** Whether the project is a fixed-fee project or not * @default false */ is_fixed_fee?: boolean | Expression; /** The name of the project */ name?: string | Expression | PlaceholderValue; /** Notes about the project */ notes?: string | Expression | PlaceholderValue; /** Whether project managers should be notified when the project goes over budget. Defaults to false. * @default false */ notify_when_over_budget?: boolean | Expression; /** Percentage value used to trigger over budget email alerts. Example: use 10.0 for 10.0%. */ over_budget_notification_percentage?: string | Expression | PlaceholderValue; /** Whether to show project budget to all employees. Does not apply to Total Project Fee projects. Defaults to false. * @default false */ show_budget_to_all?: boolean | Expression; /** Date the project was started */ starts_on?: string | Expression; }; }; export type HarvestV1ProjectUpdateNode = { type: 'n8n-nodes-base.harvest'; version: 1; credentials?: Credentials; config: NodeConfig; };