/** * Harvest Node - Version 1 * Discriminator: resource=project, operation=create */ interface Credentials { harvestApi: CredentialReference; harvestOAuth2Api: CredentialReference; } /** Create a client */ export type HarvestV1ProjectCreateParams = { resource: 'project'; 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 project */ name?: string | Expression | PlaceholderValue; /** * The ID of the client to associate this project with */ clientId?: string | Expression | PlaceholderValue; /** * Whether the project is billable or not * @default true */ isBillable?: boolean | Expression; /** * The method by which the project is invoiced * @default none */ billBy?: 'none' | 'People' | 'Project' | 'Tasks' | Expression; /** * The email of the user or "none" * @default none */ budgetBy?: string | Expression | PlaceholderValue; /** * Additional Fields * @default {} */ additionalFields?: { /** The budget in hours for the project when budgeting by time * @default 0 */ budget?: number | Expression; /** Whether the budget resets every month. Defaults to false. * @default false */ budget_is_monthly?: boolean | Expression; /** 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 a fixed-fee project or not * @default false */ is_fixed_fee?: boolean | Expression; /** 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 HarvestV1ProjectCreateNode = { type: 'n8n-nodes-base.harvest'; version: 1; credentials?: Credentials; config: NodeConfig; };