mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
⚡ Fix and revert changes on Harvest-Node to not break for existing
users
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { INodeProperties } from "n8n-workflow";
|
||||
export const resource = [ 'time_entries' ]
|
||||
import { INodeProperties } from 'n8n-workflow';
|
||||
export const resource = [ 'timeEntry' ];
|
||||
export const timeEntryOperations = [
|
||||
{
|
||||
displayName: 'Operation',
|
||||
@@ -119,13 +119,6 @@ export const timeEntryFields = [
|
||||
},
|
||||
},
|
||||
options: [
|
||||
{
|
||||
displayName: 'User ID',
|
||||
name: 'user_id',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Only return time entries belonging to the user with the given ID.',
|
||||
},
|
||||
{
|
||||
displayName: 'Client ID',
|
||||
name: 'client_id',
|
||||
@@ -133,6 +126,13 @@ export const timeEntryFields = [
|
||||
default: '',
|
||||
description: 'Only return time entries belonging to the client with the given ID.',
|
||||
},
|
||||
{
|
||||
displayName: 'From',
|
||||
name: 'from',
|
||||
type: 'dateTime',
|
||||
default: '',
|
||||
description: 'Only return time entries with a spent_date on or after the given date.',
|
||||
},
|
||||
{
|
||||
displayName: 'Is Billed',
|
||||
name: 'is_billed',
|
||||
@@ -147,20 +147,6 @@ export const timeEntryFields = [
|
||||
default: true,
|
||||
description: 'Pass true to only return running time entries and false to return non-running time entries.',
|
||||
},
|
||||
{
|
||||
displayName: 'Updated Since',
|
||||
name: 'updated_since',
|
||||
type: 'dateTime',
|
||||
default: '',
|
||||
description: 'Only return time entries that have been updated since the given date and time.',
|
||||
},
|
||||
{
|
||||
displayName: 'From',
|
||||
name: 'from',
|
||||
type: 'dateTime',
|
||||
default: '',
|
||||
description: 'Only return time entries with a spent_date on or after the given date.',
|
||||
},
|
||||
{
|
||||
displayName: 'To',
|
||||
name: 'to',
|
||||
@@ -168,6 +154,13 @@ export const timeEntryFields = [
|
||||
default: '',
|
||||
description: 'Only return time entries with a spent_date on or before the given date.',
|
||||
},
|
||||
{
|
||||
displayName: 'Updated Since',
|
||||
name: 'updated_since',
|
||||
type: 'dateTime',
|
||||
default: '',
|
||||
description: 'Only return time entries that have been updated since the given date and time.',
|
||||
},
|
||||
{
|
||||
displayName: 'Page',
|
||||
name: 'page',
|
||||
@@ -177,8 +170,15 @@ export const timeEntryFields = [
|
||||
},
|
||||
default: 1,
|
||||
description: 'The page number to use in pagination. For instance, if you make a list request and receive 100 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1)',
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
displayName: 'User ID',
|
||||
name: 'user_id',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Only return time entries belonging to the user with the given ID.',
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
|
||||
Reference in New Issue
Block a user