n8n-nodes-base
Version:
Base nodes of n8n
48 lines (43 loc) • 1.08 kB
text/typescript
/**
* BambooHR Node - Version 1
* Discriminator: resource=employee, operation=get
*/
interface Credentials {
bambooHrApi: CredentialReference;
}
/** Get an employee */
export type BambooHrV1EmployeeGetParams = {
resource: 'employee';
operation: 'get';
/**
* Employee ID
*/
employeeId?: string | Expression<string> | PlaceholderValue;
/**
* Options
* @default {}
*/
options?: {
/** Set of fields to get from employee data. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.
* @default ["all"]
*/
fields?: string[];
};
};
export type BambooHrV1EmployeeGetOutput = {
canUploadPhoto?: boolean;
displayName?: string;
firstName?: string;
hireDate?: string;
id?: string;
lastName?: string;
photoUploaded?: boolean;
photoUrl?: string;
};
export type BambooHrV1EmployeeGetNode = {
type: 'n8n-nodes-base.bambooHr';
version: 1;
credentials?: Credentials;
config: NodeConfig<BambooHrV1EmployeeGetParams>;
output?: Items<BambooHrV1EmployeeGetOutput>;
};