-
Notifications
You must be signed in to change notification settings - Fork 5.4k
/
Interfaces.ts
33 lines (28 loc) · 1011 Bytes
/
Interfaces.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import {
AllEntities,
Entity,
PropertiesOf,
} from 'n8n-workflow';
type BambooHRMap = {
employee: 'create' | 'get' | 'getAll' | 'update';
employeeDocument: 'delete' | 'download' | 'get' | 'getAll' | 'update' | 'upload';
file: 'delete' | 'download' | 'getAll' | 'update';
companyReport: 'get';
};
export type BambooHR = AllEntities<BambooHRMap>;
export type BambooHRFile = Entity<BambooHRMap, 'file'>;
export type BambooHREmployee = Entity<BambooHRMap, 'employee'>;
export type BambooHREmployeeDocument = Entity<BambooHRMap, 'employeeDocument'>;
export type BambooHRCompanyReport = Entity<BambooHRMap, 'companyReport'>;
export type FileProperties = PropertiesOf<BambooHRFile>;
export type EmployeeProperties = PropertiesOf<BambooHREmployee>;
export type EmployeeDocumentProperties = PropertiesOf<BambooHREmployeeDocument>;
export type CompanyReportProperties = PropertiesOf<BambooHRCompanyReport>;
export interface IAttachment {
fields: {
item?: object[];
};
actions: {
item?: object[];
};
}