-
Notifications
You must be signed in to change notification settings - Fork 1
Conversation
Added Onfleet nodes for working with different endpoints like: organizations, administrators, workers, hubs, teams, destinations, recipients, containers and webhooks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks very good so far, just some nitpicking and typos to fix especially language-wise.
packages/nodes-base/nodes/Onfleet/descriptions/TaskDescription.ts
Outdated
Show resolved
Hide resolved
packages/nodes-base/nodes/Onfleet/descriptions/TaskDescription.ts
Outdated
Show resolved
Hide resolved
Will be working on functional testing as well today, I'll comment on the JIRA ticket for any additional change requests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some final nitpicking
packages/nodes-base/nodes/Onfleet/descriptions/DestinationDescription.ts
Show resolved
Hide resolved
@@ -595,14 +591,14 @@ export class Onfleet implements INodeType { | |||
try { | |||
if (operation === 'create') { | |||
/* -------------------------------------------------------------------------- */ | |||
/* Add new task */ | |||
/* Add a new task */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be create a new task
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed "add" to "create"
/* -------------------------------------------------------------------------- */ | ||
responseData.push(...await onfleetApiRequest.call(this, 'GET', encodedApiKey, resource)); | ||
} else if (operation === 'create') { | ||
/* -------------------------------------------------------------------------- */ | ||
/* Add new admin */ | ||
/* Add a new admin */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Create a new admin
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed "add" to "create"
@@ -894,7 +890,7 @@ export class Onfleet implements INodeType { | |||
responseData.push(...await onfleetApiRequest.call(this, 'GET', encodedApiKey, resource)); | |||
} else if (operation === 'create') { | |||
/* -------------------------------------------------------------------------- */ | |||
/* Add new hub */ | |||
/* Add a new hub */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Create
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed "add" to "create"
@@ -959,7 +955,7 @@ export class Onfleet implements INodeType { | |||
responseData.push(await onfleetApiRequest.call(this, 'GET', encodedApiKey, path, {}, workerFilters)); | |||
} else if (operation === 'create') { | |||
/* -------------------------------------------------------------------------- */ | |||
/* Add new worker */ | |||
/* Add a new worker */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Create
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed "add" to "create"
}, | ||
}, | ||
options: [ | ||
{ | ||
name: 'Add', | ||
value: 'create', | ||
description: 'Add new Onfleet admin.', | ||
description: 'Add a new Onfleet admin.', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Create
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed "add" to "create"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything else looks great, except for something that probably I failed to communicate. We should update the language to say Create a <Onfleet_object>
instead of Add a <Onfleet_object>
so we stay true to ourselves. I see that the value has been updated but the displayed language to n8n users still uses add
You can see https://docs.onfleet.com/reference#workers & https://docs.onfleet.com/reference#create-team, we all specify Create
a worker or Create
a team instead of Add
.
Once fixed, I think I will merge this into master ;)
IGNORE me, I didn't see the latest commit, this is approved
Added Onfleet nodes for working with different endpoints like: organizations, administrators, workers, hubs, teams,
destinations, recipients, containers and webhooks.