diff --git a/packages/nodes-base/credentials/BambooHRApi.credentials.ts b/packages/nodes-base/credentials/BambooHrApi.credentials.ts similarity index 74% rename from packages/nodes-base/credentials/BambooHRApi.credentials.ts rename to packages/nodes-base/credentials/BambooHrApi.credentials.ts index 16b7e77a46..ca9aa7cab1 100644 --- a/packages/nodes-base/credentials/BambooHRApi.credentials.ts +++ b/packages/nodes-base/credentials/BambooHrApi.credentials.ts @@ -3,10 +3,10 @@ import { INodeProperties, } from 'n8n-workflow'; -export class BambooHRApi implements ICredentialType { - name = 'bambooHRApi'; +export class BambooHrApi implements ICredentialType { + name = 'bambooHrApi'; displayName = 'BambooHR API'; - documentationUrl = 'bambooHR'; + documentationUrl = 'bambooHr'; properties: INodeProperties[] = [ { displayName: 'Subdomain', diff --git a/packages/nodes-base/nodes/BambooHR/v1/actions/Interfaces.ts b/packages/nodes-base/nodes/BambooHR/v1/actions/Interfaces.ts deleted file mode 100644 index 774f566cb4..0000000000 --- a/packages/nodes-base/nodes/BambooHR/v1/actions/Interfaces.ts +++ /dev/null @@ -1,33 +0,0 @@ -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; - -export type BambooHRFile = Entity; -export type BambooHREmployee = Entity; -export type BambooHREmployeeDocument = Entity; -export type BambooHRCompanyReport = Entity; - -export type FileProperties = PropertiesOf; -export type EmployeeProperties = PropertiesOf; -export type EmployeeDocumentProperties = PropertiesOf; -export type CompanyReportProperties = PropertiesOf; - -export interface IAttachment { - fields: { - item?: object[]; - }; - actions: { - item?: object[]; - }; -} diff --git a/packages/nodes-base/nodes/BambooHR/BambooHR.node.ts b/packages/nodes-base/nodes/BambooHr/BambooHr.node.ts similarity index 91% rename from packages/nodes-base/nodes/BambooHR/BambooHR.node.ts rename to packages/nodes-base/nodes/BambooHr/BambooHr.node.ts index 0cdcd5338b..6c06a5f6ab 100644 --- a/packages/nodes-base/nodes/BambooHR/BambooHR.node.ts +++ b/packages/nodes-base/nodes/BambooHr/BambooHr.node.ts @@ -13,7 +13,7 @@ import { versionDescription } from './v1/actions/versionDescription'; import { loadOptions } from './v1/methods'; import { credentialTest } from './v1/methods'; -export class BambooHR implements INodeType { +export class BambooHr implements INodeType { description: INodeTypeDescription; constructor(baseDescription: INodeTypeBaseDescription) { @@ -23,7 +23,7 @@ export class BambooHR implements INodeType { }; } - methods = { + methods = { loadOptions, credentialTest, }; diff --git a/packages/nodes-base/nodes/BambooHR/bambooHR.png b/packages/nodes-base/nodes/BambooHr/bambooHr.png similarity index 100% rename from packages/nodes-base/nodes/BambooHR/bambooHR.png rename to packages/nodes-base/nodes/BambooHr/bambooHr.png diff --git a/packages/nodes-base/nodes/BambooHr/v1/actions/Interfaces.ts b/packages/nodes-base/nodes/BambooHr/v1/actions/Interfaces.ts new file mode 100644 index 0000000000..1e18e65966 --- /dev/null +++ b/packages/nodes-base/nodes/BambooHr/v1/actions/Interfaces.ts @@ -0,0 +1,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; + +export type BambooHrFile = Entity; +export type BambooHrEmployee = Entity; +export type BambooHrEmployeeDocument = Entity; +export type BambooHrCompanyReport = Entity; + +export type FileProperties = PropertiesOf; +export type EmployeeProperties = PropertiesOf; +export type EmployeeDocumentProperties = PropertiesOf; +export type CompanyReportProperties = PropertiesOf; + +export interface IAttachment { + fields: { + item?: object[]; + }; + actions: { + item?: object[]; + }; +} diff --git a/packages/nodes-base/nodes/BambooHR/v1/actions/companyReport/get/description.ts b/packages/nodes-base/nodes/BambooHr/v1/actions/companyReport/get/description.ts similarity index 100% rename from packages/nodes-base/nodes/BambooHR/v1/actions/companyReport/get/description.ts rename to packages/nodes-base/nodes/BambooHr/v1/actions/companyReport/get/description.ts diff --git a/packages/nodes-base/nodes/BambooHR/v1/actions/companyReport/get/execute.ts b/packages/nodes-base/nodes/BambooHr/v1/actions/companyReport/get/execute.ts similarity index 100% rename from packages/nodes-base/nodes/BambooHR/v1/actions/companyReport/get/execute.ts rename to packages/nodes-base/nodes/BambooHr/v1/actions/companyReport/get/execute.ts diff --git a/packages/nodes-base/nodes/BambooHR/v1/actions/companyReport/get/index.ts b/packages/nodes-base/nodes/BambooHr/v1/actions/companyReport/get/index.ts similarity index 100% rename from packages/nodes-base/nodes/BambooHR/v1/actions/companyReport/get/index.ts rename to packages/nodes-base/nodes/BambooHr/v1/actions/companyReport/get/index.ts diff --git a/packages/nodes-base/nodes/BambooHR/v1/actions/companyReport/index.ts b/packages/nodes-base/nodes/BambooHr/v1/actions/companyReport/index.ts similarity index 100% rename from packages/nodes-base/nodes/BambooHR/v1/actions/companyReport/index.ts rename to packages/nodes-base/nodes/BambooHr/v1/actions/companyReport/index.ts diff --git a/packages/nodes-base/nodes/BambooHR/v1/actions/employee/create/description.ts b/packages/nodes-base/nodes/BambooHr/v1/actions/employee/create/description.ts similarity index 100% rename from packages/nodes-base/nodes/BambooHR/v1/actions/employee/create/description.ts rename to packages/nodes-base/nodes/BambooHr/v1/actions/employee/create/description.ts diff --git a/packages/nodes-base/nodes/BambooHR/v1/actions/employee/create/execute.ts b/packages/nodes-base/nodes/BambooHr/v1/actions/employee/create/execute.ts similarity index 100% rename from packages/nodes-base/nodes/BambooHR/v1/actions/employee/create/execute.ts rename to packages/nodes-base/nodes/BambooHr/v1/actions/employee/create/execute.ts diff --git a/packages/nodes-base/nodes/BambooHR/v1/actions/employee/create/index.ts b/packages/nodes-base/nodes/BambooHr/v1/actions/employee/create/index.ts similarity index 100% rename from packages/nodes-base/nodes/BambooHR/v1/actions/employee/create/index.ts rename to packages/nodes-base/nodes/BambooHr/v1/actions/employee/create/index.ts diff --git a/packages/nodes-base/nodes/BambooHR/v1/actions/employee/create/shareDescription.ts b/packages/nodes-base/nodes/BambooHr/v1/actions/employee/create/shareDescription.ts similarity index 99% rename from packages/nodes-base/nodes/BambooHR/v1/actions/employee/create/shareDescription.ts rename to packages/nodes-base/nodes/BambooHr/v1/actions/employee/create/shareDescription.ts index c5a91f0b3f..b4eb7a0249 100644 --- a/packages/nodes-base/nodes/BambooHR/v1/actions/employee/create/shareDescription.ts +++ b/packages/nodes-base/nodes/BambooHr/v1/actions/employee/create/shareDescription.ts @@ -50,7 +50,7 @@ export const createEmployeeSharedDescription = (sync = false): INodeProperties[] type: 'string', default: '', placeholder: 'United States', - description: 'The name of the country. Must exist in the BambooHR country list', + description: 'The name of the country. Must exist in the BambooHr country list', }, ], }, @@ -321,4 +321,4 @@ export const createEmployeeSharedDescription = (sync = false): INodeProperties[] }); } return elements; -}; \ No newline at end of file +}; diff --git a/packages/nodes-base/nodes/BambooHR/v1/actions/employee/get/description.ts b/packages/nodes-base/nodes/BambooHr/v1/actions/employee/get/description.ts similarity index 100% rename from packages/nodes-base/nodes/BambooHR/v1/actions/employee/get/description.ts rename to packages/nodes-base/nodes/BambooHr/v1/actions/employee/get/description.ts diff --git a/packages/nodes-base/nodes/BambooHR/v1/actions/employee/get/execute.ts b/packages/nodes-base/nodes/BambooHr/v1/actions/employee/get/execute.ts similarity index 100% rename from packages/nodes-base/nodes/BambooHR/v1/actions/employee/get/execute.ts rename to packages/nodes-base/nodes/BambooHr/v1/actions/employee/get/execute.ts diff --git a/packages/nodes-base/nodes/BambooHR/v1/actions/employee/get/index.ts b/packages/nodes-base/nodes/BambooHr/v1/actions/employee/get/index.ts similarity index 100% rename from packages/nodes-base/nodes/BambooHR/v1/actions/employee/get/index.ts rename to packages/nodes-base/nodes/BambooHr/v1/actions/employee/get/index.ts diff --git a/packages/nodes-base/nodes/BambooHR/v1/actions/employee/getAll/description.ts b/packages/nodes-base/nodes/BambooHr/v1/actions/employee/getAll/description.ts similarity index 100% rename from packages/nodes-base/nodes/BambooHR/v1/actions/employee/getAll/description.ts rename to packages/nodes-base/nodes/BambooHr/v1/actions/employee/getAll/description.ts diff --git a/packages/nodes-base/nodes/BambooHR/v1/actions/employee/getAll/execute.ts b/packages/nodes-base/nodes/BambooHr/v1/actions/employee/getAll/execute.ts similarity index 100% rename from packages/nodes-base/nodes/BambooHR/v1/actions/employee/getAll/execute.ts rename to packages/nodes-base/nodes/BambooHr/v1/actions/employee/getAll/execute.ts diff --git a/packages/nodes-base/nodes/BambooHR/v1/actions/employee/getAll/index.ts b/packages/nodes-base/nodes/BambooHr/v1/actions/employee/getAll/index.ts similarity index 100% rename from packages/nodes-base/nodes/BambooHR/v1/actions/employee/getAll/index.ts rename to packages/nodes-base/nodes/BambooHr/v1/actions/employee/getAll/index.ts diff --git a/packages/nodes-base/nodes/BambooHR/v1/actions/employee/index.ts b/packages/nodes-base/nodes/BambooHr/v1/actions/employee/index.ts similarity index 100% rename from packages/nodes-base/nodes/BambooHR/v1/actions/employee/index.ts rename to packages/nodes-base/nodes/BambooHr/v1/actions/employee/index.ts diff --git a/packages/nodes-base/nodes/BambooHR/v1/actions/employee/update/description.ts b/packages/nodes-base/nodes/BambooHr/v1/actions/employee/update/description.ts similarity index 100% rename from packages/nodes-base/nodes/BambooHR/v1/actions/employee/update/description.ts rename to packages/nodes-base/nodes/BambooHr/v1/actions/employee/update/description.ts diff --git a/packages/nodes-base/nodes/BambooHR/v1/actions/employee/update/execute.ts b/packages/nodes-base/nodes/BambooHr/v1/actions/employee/update/execute.ts similarity index 100% rename from packages/nodes-base/nodes/BambooHR/v1/actions/employee/update/execute.ts rename to packages/nodes-base/nodes/BambooHr/v1/actions/employee/update/execute.ts diff --git a/packages/nodes-base/nodes/BambooHR/v1/actions/employee/update/index.ts b/packages/nodes-base/nodes/BambooHr/v1/actions/employee/update/index.ts similarity index 100% rename from packages/nodes-base/nodes/BambooHR/v1/actions/employee/update/index.ts rename to packages/nodes-base/nodes/BambooHr/v1/actions/employee/update/index.ts diff --git a/packages/nodes-base/nodes/BambooHR/v1/actions/employee/update/sharedDescription.ts b/packages/nodes-base/nodes/BambooHr/v1/actions/employee/update/sharedDescription.ts similarity index 99% rename from packages/nodes-base/nodes/BambooHR/v1/actions/employee/update/sharedDescription.ts rename to packages/nodes-base/nodes/BambooHr/v1/actions/employee/update/sharedDescription.ts index a3824cb63f..5f44079880 100644 --- a/packages/nodes-base/nodes/BambooHR/v1/actions/employee/update/sharedDescription.ts +++ b/packages/nodes-base/nodes/BambooHr/v1/actions/employee/update/sharedDescription.ts @@ -50,7 +50,7 @@ export const updateEmployeeSharedDescription = (sync = false): INodeProperties[] type: 'string', default: '', placeholder: 'United States', - description: 'The name of the country. Must exist in the BambooHR country list', + description: 'The name of the country. Must exist in the BambooHr country list', }, ], }, @@ -347,4 +347,4 @@ export const updateEmployeeSharedDescription = (sync = false): INodeProperties[] }); } return elements; -}; \ No newline at end of file +}; diff --git a/packages/nodes-base/nodes/BambooHR/v1/actions/employeeDocument/del/description.ts b/packages/nodes-base/nodes/BambooHr/v1/actions/employeeDocument/del/description.ts similarity index 100% rename from packages/nodes-base/nodes/BambooHR/v1/actions/employeeDocument/del/description.ts rename to packages/nodes-base/nodes/BambooHr/v1/actions/employeeDocument/del/description.ts diff --git a/packages/nodes-base/nodes/BambooHR/v1/actions/employeeDocument/del/execute.ts b/packages/nodes-base/nodes/BambooHr/v1/actions/employeeDocument/del/execute.ts similarity index 100% rename from packages/nodes-base/nodes/BambooHR/v1/actions/employeeDocument/del/execute.ts rename to packages/nodes-base/nodes/BambooHr/v1/actions/employeeDocument/del/execute.ts diff --git a/packages/nodes-base/nodes/BambooHR/v1/actions/employeeDocument/del/index.ts b/packages/nodes-base/nodes/BambooHr/v1/actions/employeeDocument/del/index.ts similarity index 100% rename from packages/nodes-base/nodes/BambooHR/v1/actions/employeeDocument/del/index.ts rename to packages/nodes-base/nodes/BambooHr/v1/actions/employeeDocument/del/index.ts diff --git a/packages/nodes-base/nodes/BambooHR/v1/actions/employeeDocument/download/description.ts b/packages/nodes-base/nodes/BambooHr/v1/actions/employeeDocument/download/description.ts similarity index 100% rename from packages/nodes-base/nodes/BambooHR/v1/actions/employeeDocument/download/description.ts rename to packages/nodes-base/nodes/BambooHr/v1/actions/employeeDocument/download/description.ts diff --git a/packages/nodes-base/nodes/BambooHR/v1/actions/employeeDocument/download/execute.ts b/packages/nodes-base/nodes/BambooHr/v1/actions/employeeDocument/download/execute.ts similarity index 100% rename from packages/nodes-base/nodes/BambooHR/v1/actions/employeeDocument/download/execute.ts rename to packages/nodes-base/nodes/BambooHr/v1/actions/employeeDocument/download/execute.ts diff --git a/packages/nodes-base/nodes/BambooHR/v1/actions/employeeDocument/download/index.ts b/packages/nodes-base/nodes/BambooHr/v1/actions/employeeDocument/download/index.ts similarity index 100% rename from packages/nodes-base/nodes/BambooHR/v1/actions/employeeDocument/download/index.ts rename to packages/nodes-base/nodes/BambooHr/v1/actions/employeeDocument/download/index.ts diff --git a/packages/nodes-base/nodes/BambooHR/v1/actions/employeeDocument/getAll/description.ts b/packages/nodes-base/nodes/BambooHr/v1/actions/employeeDocument/getAll/description.ts similarity index 100% rename from packages/nodes-base/nodes/BambooHR/v1/actions/employeeDocument/getAll/description.ts rename to packages/nodes-base/nodes/BambooHr/v1/actions/employeeDocument/getAll/description.ts diff --git a/packages/nodes-base/nodes/BambooHR/v1/actions/employeeDocument/getAll/execute.ts b/packages/nodes-base/nodes/BambooHr/v1/actions/employeeDocument/getAll/execute.ts similarity index 100% rename from packages/nodes-base/nodes/BambooHR/v1/actions/employeeDocument/getAll/execute.ts rename to packages/nodes-base/nodes/BambooHr/v1/actions/employeeDocument/getAll/execute.ts diff --git a/packages/nodes-base/nodes/BambooHR/v1/actions/employeeDocument/getAll/index.ts b/packages/nodes-base/nodes/BambooHr/v1/actions/employeeDocument/getAll/index.ts similarity index 100% rename from packages/nodes-base/nodes/BambooHR/v1/actions/employeeDocument/getAll/index.ts rename to packages/nodes-base/nodes/BambooHr/v1/actions/employeeDocument/getAll/index.ts diff --git a/packages/nodes-base/nodes/BambooHR/v1/actions/employeeDocument/index.ts b/packages/nodes-base/nodes/BambooHr/v1/actions/employeeDocument/index.ts similarity index 100% rename from packages/nodes-base/nodes/BambooHR/v1/actions/employeeDocument/index.ts rename to packages/nodes-base/nodes/BambooHr/v1/actions/employeeDocument/index.ts diff --git a/packages/nodes-base/nodes/BambooHR/v1/actions/employeeDocument/update/description.ts b/packages/nodes-base/nodes/BambooHr/v1/actions/employeeDocument/update/description.ts similarity index 100% rename from packages/nodes-base/nodes/BambooHR/v1/actions/employeeDocument/update/description.ts rename to packages/nodes-base/nodes/BambooHr/v1/actions/employeeDocument/update/description.ts diff --git a/packages/nodes-base/nodes/BambooHR/v1/actions/employeeDocument/update/execute.ts b/packages/nodes-base/nodes/BambooHr/v1/actions/employeeDocument/update/execute.ts similarity index 100% rename from packages/nodes-base/nodes/BambooHR/v1/actions/employeeDocument/update/execute.ts rename to packages/nodes-base/nodes/BambooHr/v1/actions/employeeDocument/update/execute.ts diff --git a/packages/nodes-base/nodes/BambooHR/v1/actions/employeeDocument/update/index.ts b/packages/nodes-base/nodes/BambooHr/v1/actions/employeeDocument/update/index.ts similarity index 100% rename from packages/nodes-base/nodes/BambooHR/v1/actions/employeeDocument/update/index.ts rename to packages/nodes-base/nodes/BambooHr/v1/actions/employeeDocument/update/index.ts diff --git a/packages/nodes-base/nodes/BambooHR/v1/actions/employeeDocument/upload/description.ts b/packages/nodes-base/nodes/BambooHr/v1/actions/employeeDocument/upload/description.ts similarity index 100% rename from packages/nodes-base/nodes/BambooHR/v1/actions/employeeDocument/upload/description.ts rename to packages/nodes-base/nodes/BambooHr/v1/actions/employeeDocument/upload/description.ts diff --git a/packages/nodes-base/nodes/BambooHR/v1/actions/employeeDocument/upload/execute.ts b/packages/nodes-base/nodes/BambooHr/v1/actions/employeeDocument/upload/execute.ts similarity index 100% rename from packages/nodes-base/nodes/BambooHR/v1/actions/employeeDocument/upload/execute.ts rename to packages/nodes-base/nodes/BambooHr/v1/actions/employeeDocument/upload/execute.ts diff --git a/packages/nodes-base/nodes/BambooHR/v1/actions/employeeDocument/upload/index.ts b/packages/nodes-base/nodes/BambooHr/v1/actions/employeeDocument/upload/index.ts similarity index 100% rename from packages/nodes-base/nodes/BambooHR/v1/actions/employeeDocument/upload/index.ts rename to packages/nodes-base/nodes/BambooHr/v1/actions/employeeDocument/upload/index.ts diff --git a/packages/nodes-base/nodes/BambooHR/v1/actions/file/del/description.ts b/packages/nodes-base/nodes/BambooHr/v1/actions/file/del/description.ts similarity index 100% rename from packages/nodes-base/nodes/BambooHR/v1/actions/file/del/description.ts rename to packages/nodes-base/nodes/BambooHr/v1/actions/file/del/description.ts diff --git a/packages/nodes-base/nodes/BambooHR/v1/actions/file/del/execute.ts b/packages/nodes-base/nodes/BambooHr/v1/actions/file/del/execute.ts similarity index 100% rename from packages/nodes-base/nodes/BambooHR/v1/actions/file/del/execute.ts rename to packages/nodes-base/nodes/BambooHr/v1/actions/file/del/execute.ts diff --git a/packages/nodes-base/nodes/BambooHR/v1/actions/file/del/index.ts b/packages/nodes-base/nodes/BambooHr/v1/actions/file/del/index.ts similarity index 100% rename from packages/nodes-base/nodes/BambooHR/v1/actions/file/del/index.ts rename to packages/nodes-base/nodes/BambooHr/v1/actions/file/del/index.ts diff --git a/packages/nodes-base/nodes/BambooHR/v1/actions/file/download/description.ts b/packages/nodes-base/nodes/BambooHr/v1/actions/file/download/description.ts similarity index 100% rename from packages/nodes-base/nodes/BambooHR/v1/actions/file/download/description.ts rename to packages/nodes-base/nodes/BambooHr/v1/actions/file/download/description.ts diff --git a/packages/nodes-base/nodes/BambooHR/v1/actions/file/download/execute.ts b/packages/nodes-base/nodes/BambooHr/v1/actions/file/download/execute.ts similarity index 100% rename from packages/nodes-base/nodes/BambooHR/v1/actions/file/download/execute.ts rename to packages/nodes-base/nodes/BambooHr/v1/actions/file/download/execute.ts diff --git a/packages/nodes-base/nodes/BambooHR/v1/actions/file/download/index.ts b/packages/nodes-base/nodes/BambooHr/v1/actions/file/download/index.ts similarity index 100% rename from packages/nodes-base/nodes/BambooHR/v1/actions/file/download/index.ts rename to packages/nodes-base/nodes/BambooHr/v1/actions/file/download/index.ts diff --git a/packages/nodes-base/nodes/BambooHR/v1/actions/file/getAll/description.ts b/packages/nodes-base/nodes/BambooHr/v1/actions/file/getAll/description.ts similarity index 100% rename from packages/nodes-base/nodes/BambooHR/v1/actions/file/getAll/description.ts rename to packages/nodes-base/nodes/BambooHr/v1/actions/file/getAll/description.ts diff --git a/packages/nodes-base/nodes/BambooHR/v1/actions/file/getAll/execute.ts b/packages/nodes-base/nodes/BambooHr/v1/actions/file/getAll/execute.ts similarity index 100% rename from packages/nodes-base/nodes/BambooHR/v1/actions/file/getAll/execute.ts rename to packages/nodes-base/nodes/BambooHr/v1/actions/file/getAll/execute.ts diff --git a/packages/nodes-base/nodes/BambooHR/v1/actions/file/getAll/index.ts b/packages/nodes-base/nodes/BambooHr/v1/actions/file/getAll/index.ts similarity index 100% rename from packages/nodes-base/nodes/BambooHR/v1/actions/file/getAll/index.ts rename to packages/nodes-base/nodes/BambooHr/v1/actions/file/getAll/index.ts diff --git a/packages/nodes-base/nodes/BambooHR/v1/actions/file/index.ts b/packages/nodes-base/nodes/BambooHr/v1/actions/file/index.ts similarity index 100% rename from packages/nodes-base/nodes/BambooHR/v1/actions/file/index.ts rename to packages/nodes-base/nodes/BambooHr/v1/actions/file/index.ts diff --git a/packages/nodes-base/nodes/BambooHR/v1/actions/file/update/description.ts b/packages/nodes-base/nodes/BambooHr/v1/actions/file/update/description.ts similarity index 100% rename from packages/nodes-base/nodes/BambooHR/v1/actions/file/update/description.ts rename to packages/nodes-base/nodes/BambooHr/v1/actions/file/update/description.ts diff --git a/packages/nodes-base/nodes/BambooHR/v1/actions/file/update/execute.ts b/packages/nodes-base/nodes/BambooHr/v1/actions/file/update/execute.ts similarity index 100% rename from packages/nodes-base/nodes/BambooHR/v1/actions/file/update/execute.ts rename to packages/nodes-base/nodes/BambooHr/v1/actions/file/update/execute.ts diff --git a/packages/nodes-base/nodes/BambooHR/v1/actions/file/update/index.ts b/packages/nodes-base/nodes/BambooHr/v1/actions/file/update/index.ts similarity index 100% rename from packages/nodes-base/nodes/BambooHR/v1/actions/file/update/index.ts rename to packages/nodes-base/nodes/BambooHr/v1/actions/file/update/index.ts diff --git a/packages/nodes-base/nodes/BambooHR/v1/actions/file/upload/description.ts b/packages/nodes-base/nodes/BambooHr/v1/actions/file/upload/description.ts similarity index 100% rename from packages/nodes-base/nodes/BambooHR/v1/actions/file/upload/description.ts rename to packages/nodes-base/nodes/BambooHr/v1/actions/file/upload/description.ts diff --git a/packages/nodes-base/nodes/BambooHR/v1/actions/file/upload/execute.ts b/packages/nodes-base/nodes/BambooHr/v1/actions/file/upload/execute.ts similarity index 100% rename from packages/nodes-base/nodes/BambooHR/v1/actions/file/upload/execute.ts rename to packages/nodes-base/nodes/BambooHr/v1/actions/file/upload/execute.ts diff --git a/packages/nodes-base/nodes/BambooHR/v1/actions/file/upload/index.ts b/packages/nodes-base/nodes/BambooHr/v1/actions/file/upload/index.ts similarity index 100% rename from packages/nodes-base/nodes/BambooHR/v1/actions/file/upload/index.ts rename to packages/nodes-base/nodes/BambooHr/v1/actions/file/upload/index.ts diff --git a/packages/nodes-base/nodes/BambooHR/v1/actions/router.ts b/packages/nodes-base/nodes/BambooHr/v1/actions/router.ts similarity index 92% rename from packages/nodes-base/nodes/BambooHR/v1/actions/router.ts rename to packages/nodes-base/nodes/BambooHr/v1/actions/router.ts index 172a0ef927..b053254582 100644 --- a/packages/nodes-base/nodes/BambooHR/v1/actions/router.ts +++ b/packages/nodes-base/nodes/BambooHr/v1/actions/router.ts @@ -11,20 +11,20 @@ import * as employeeDocument from './employeeDocument'; import * as file from './file'; import * as companyReport from './companyReport'; -import { BambooHR } from './Interfaces'; +import { BambooHr } from './Interfaces'; export async function router(this: IExecuteFunctions): Promise { const items = this.getInputData(); const operationResult: INodeExecutionData[] = []; for (let i = 0; i < items.length; i++) { - const resource = this.getNodeParameter('resource', i); + const resource = this.getNodeParameter('resource', i); const operation = this.getNodeParameter('operation', i); const bamboohr = { resource, operation, - } as BambooHR; + } as BambooHr; if (bamboohr.operation === 'delete') { //@ts-ignore diff --git a/packages/nodes-base/nodes/BambooHR/v1/actions/versionDescription.ts b/packages/nodes-base/nodes/BambooHr/v1/actions/versionDescription.ts similarity index 93% rename from packages/nodes-base/nodes/BambooHR/v1/actions/versionDescription.ts rename to packages/nodes-base/nodes/BambooHr/v1/actions/versionDescription.ts index daeb9f46b4..9fd376a70b 100644 --- a/packages/nodes-base/nodes/BambooHR/v1/actions/versionDescription.ts +++ b/packages/nodes-base/nodes/BambooHr/v1/actions/versionDescription.ts @@ -10,7 +10,7 @@ import * as companyReport from './companyReport'; export const versionDescription: INodeTypeDescription = { credentials: [ { - name: 'bambooHRApi', + name: 'bambooHrApi', required: true, testedBy: 'bambooHrApiCredentialTest', }, @@ -21,9 +21,9 @@ export const versionDescription: INodeTypeDescription = { description: 'Consume BambooHR API', displayName: 'BambooHR', group: ['transform'], - icon: 'file:bambooHR.png', + icon: 'file:bambooHr.png', inputs: ['main'], - name: 'bambooHR', + name: 'bambooHr', outputs: ['main'], properties: [ { @@ -57,4 +57,4 @@ export const versionDescription: INodeTypeDescription = { ], subtitle: '={{$parameter["resource"] + ": " + $parameter["operation"]}}', version: 1, -}; \ No newline at end of file +}; diff --git a/packages/nodes-base/nodes/BambooHR/v1/methods/credentialTest.ts b/packages/nodes-base/nodes/BambooHr/v1/methods/credentialTest.ts similarity index 100% rename from packages/nodes-base/nodes/BambooHR/v1/methods/credentialTest.ts rename to packages/nodes-base/nodes/BambooHr/v1/methods/credentialTest.ts diff --git a/packages/nodes-base/nodes/BambooHR/v1/methods/index.ts b/packages/nodes-base/nodes/BambooHr/v1/methods/index.ts similarity index 100% rename from packages/nodes-base/nodes/BambooHR/v1/methods/index.ts rename to packages/nodes-base/nodes/BambooHr/v1/methods/index.ts diff --git a/packages/nodes-base/nodes/BambooHR/v1/methods/loadOptions.ts b/packages/nodes-base/nodes/BambooHr/v1/methods/loadOptions.ts similarity index 100% rename from packages/nodes-base/nodes/BambooHR/v1/methods/loadOptions.ts rename to packages/nodes-base/nodes/BambooHr/v1/methods/loadOptions.ts diff --git a/packages/nodes-base/nodes/BambooHR/v1/transport/index.ts b/packages/nodes-base/nodes/BambooHr/v1/transport/index.ts similarity index 95% rename from packages/nodes-base/nodes/BambooHR/v1/transport/index.ts rename to packages/nodes-base/nodes/BambooHr/v1/transport/index.ts index c491e99a32..ad51110a01 100644 --- a/packages/nodes-base/nodes/BambooHR/v1/transport/index.ts +++ b/packages/nodes-base/nodes/BambooHr/v1/transport/index.ts @@ -25,7 +25,7 @@ export async function apiRequest( query: IDataObject = {}, option: IDataObject = {}, ) { - const credentials = await this.getCredentials('bambooHRApi'); + const credentials = await this.getCredentials('bambooHrApi'); if (!credentials) { throw new NodeOperationError(this.getNode(), 'No credentials returned!'); diff --git a/packages/nodes-base/package.json b/packages/nodes-base/package.json index 4434b0762f..18825cb03c 100644 --- a/packages/nodes-base/package.json +++ b/packages/nodes-base/package.json @@ -44,7 +44,7 @@ "dist/credentials/AutomizyApi.credentials.js", "dist/credentials/AutopilotApi.credentials.js", "dist/credentials/Aws.credentials.js", - "dist/credentials/BambooHRApi.credentials.js", + "dist/credentials/BambooHrApi.credentials.js", "dist/credentials/BannerbearApi.credentials.js", "dist/credentials/BaserowApi.credentials.js", "dist/credentials/BeeminderApi.credentials.js", @@ -348,7 +348,7 @@ "dist/nodes/Aws/SQS/AwsSqs.node.js", "dist/nodes/Aws/Textract/AwsTextract.node.js", "dist/nodes/Aws/Transcribe/AwsTranscribe.node.js", - "dist/nodes/BambooHR/BambooHR.node.js", + "dist/nodes/BambooHr/BambooHr.node.js", "dist/nodes/Bannerbear/Bannerbear.node.js", "dist/nodes/Baserow/Baserow.node.js", "dist/nodes/Beeminder/Beeminder.node.js",