/** * BambooHR Node - Version 1 * Discriminator: resource=employee, operation=update */ interface Credentials { bambooHrApi: CredentialReference; } /** Update an employee */ export type BambooHrV1EmployeeUpdateParams = { resource: 'employee'; operation: 'update'; /** * Employee ID */ employeeId?: string | Expression | PlaceholderValue; /** * Whether the employee to create was added to a pay schedule synced with Trax Payroll * @default false */ synced?: boolean | Expression; /** * Address * @displayOptions.show { synced: [true] } * @default {} */ addasasress?: { /** Address */ value?: { /** Line 1 */ address1?: string | Expression | PlaceholderValue; /** Line 2 */ address2?: string | Expression | PlaceholderValue; /** City */ city?: string | Expression | PlaceholderValue; /** The full name of the state/province */ state?: string | Expression | PlaceholderValue; /** The name of the country. Must exist in the BambooHr country list. */ country?: string | Expression | PlaceholderValue; }; }; /** * Date of Birth * @displayOptions.show { synced: [true] } */ dateOfBirth?: string | Expression; /** * Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a> * @displayOptions.show { synced: [true] } */ department?: string | Expression; /** * Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a> * @displayOptions.show { synced: [true] } */ division?: string | Expression; /** * Employee Number * @displayOptions.show { synced: [true] } */ employeeNumber?: string | Expression | PlaceholderValue; /** * First Name * @displayOptions.show { synced: [true] } */ firstName?: string | Expression | PlaceholderValue; /** * Last Name * @displayOptions.show { synced: [true] } */ lastName?: string | Expression | PlaceholderValue; /** * FLSA Overtime Status * @displayOptions.show { synced: [true] } */ exempt?: 'exempt' | 'non-exempt' | Expression; /** * Gender * @displayOptions.show { synced: [true] } */ gender?: 'female' | 'male' | Expression; /** * Hire Date * @displayOptions.show { synced: [true] } */ hireDate?: string | Expression; /** * Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a> * @displayOptions.show { synced: [true] } */ location?: string | Expression; /** * Marital Status * @displayOptions.show { synced: [true] } */ maritalStatus?: 'single' | 'married' | 'domesticPartnership' | Expression; /** * Mobile Phone * @displayOptions.show { synced: [true] } */ mobilePhone?: string | Expression | PlaceholderValue; /** * Pay Per * @displayOptions.show { synced: [true] } */ paidPer?: 'hour' | 'day' | 'week' | 'month' | 'quater' | 'year' | Expression; /** * Pay Rate * @displayOptions.show { synced: [true] } * @default {} */ payRate?: { /** Pay Rate */ value?: { /** Value */ value?: string | Expression | PlaceholderValue; /** Currency */ currency?: string | Expression | PlaceholderValue; }; }; /** * Pay Type * @displayOptions.show { synced: [true] } */ payType?: 'commission' | 'contract' | 'daily' | 'exceptionHourly' | 'hourly' | 'monthly' | 'pieceRate' | 'proRata' | 'salary' | 'weekly' | Expression; /** * Preferred Name * @displayOptions.show { synced: [true] } */ preferredName?: string | Expression | PlaceholderValue; /** * A standard United States Social Security number, with dashes * @displayOptions.show { synced: [true] } */ ssn?: string | Expression | PlaceholderValue; /** * Update Fields * @default {} */ updateFields?: { /** Address * @displayOptions.show { /synced: [false] } * @default {} */ addasasress?: { /** Address */ value?: { /** Line 1 */ address1?: string | Expression | PlaceholderValue; /** Line 2 */ address2?: string | Expression | PlaceholderValue; /** City */ city?: string | Expression | PlaceholderValue; /** The full name of the state/province */ state?: string | Expression | PlaceholderValue; /** The name of the country. Must exist in the BambooHr country list. */ country?: string | Expression | PlaceholderValue; }; }; /** Date of Birth * @displayOptions.show { /synced: [false] } */ dateOfBirth?: string | Expression; /** Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a> * @displayOptions.show { /synced: [false] } */ department?: string | Expression; /** Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a> * @displayOptions.show { /synced: [false] } */ division?: string | Expression; /** Employee Number * @displayOptions.show { /synced: [false] } */ employeeNumber?: string | Expression | PlaceholderValue; /** First Name * @displayOptions.show { /synced: [false] } */ firstName?: string | Expression | PlaceholderValue; /** Last Name * @displayOptions.show { /synced: [false] } */ lastName?: string | Expression | PlaceholderValue; /** FLSA Overtime Status * @displayOptions.show { /synced: [false] } */ exempt?: 'exempt' | 'non-exempt' | Expression; /** Gender * @displayOptions.show { /synced: [false] } */ gender?: 'female' | 'male' | Expression; /** Hire Date * @displayOptions.show { /synced: [false] } */ hireDate?: string | Expression; /** Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a> * @displayOptions.show { /synced: [false] } */ location?: string | Expression; /** Marital Status * @displayOptions.show { /synced: [false] } */ maritalStatus?: 'single' | 'married' | 'domesticPartnership' | Expression; /** Mobile Phone * @displayOptions.show { /synced: [false] } */ mobilePhone?: string | Expression | PlaceholderValue; /** Pay Per * @displayOptions.show { /synced: [false] } */ paidPer?: 'hour' | 'day' | 'week' | 'month' | 'quater' | 'year' | Expression; /** Pay Rate * @displayOptions.show { /synced: [false] } * @default {} */ payRate?: { /** Pay Rate */ value?: { /** Value */ value?: string | Expression | PlaceholderValue; /** Currency */ currency?: string | Expression | PlaceholderValue; }; }; /** Pay Type * @displayOptions.show { /synced: [false] } */ payType?: 'commission' | 'contract' | 'daily' | 'exceptionHourly' | 'hourly' | 'monthly' | 'pieceRate' | 'proRata' | 'salary' | 'weekly' | Expression; /** Preferred Name * @displayOptions.show { /synced: [false] } */ preferredName?: string | Expression | PlaceholderValue; /** A standard United States Social Security number, with dashes * @displayOptions.show { /synced: [false] } */ ssn?: string | Expression | PlaceholderValue; /** Work Email */ workEmail?: string | Expression | PlaceholderValue; /** Work Phone */ workPhone?: string | Expression | PlaceholderValue; }; }; export type BambooHrV1EmployeeUpdateOutput = { success?: boolean; }; export type BambooHrV1EmployeeUpdateNode = { type: 'n8n-nodes-base.bambooHr'; version: 1; credentials?: Credentials; config: NodeConfig; output?: Items; };