Add DELETE for Harvest APIs

This commit is contained in:
trojanh
2020-01-31 18:17:20 +05:30
parent 481d6d2bc1
commit 8374a23389
9 changed files with 311 additions and 6 deletions

View File

@@ -28,6 +28,11 @@ export const userOperations = [
value: 'getAll',
description: 'Get data of all users',
},
{
name: 'Delete',
value: 'delete',
description: `Delete a user`,
},
],
default: 'me',
description: 'The operation to perform.',
@@ -146,6 +151,28 @@ export const userFields = [
},
},
description: 'The ID of the user you are retrieving.',
},
/* -------------------------------------------------------------------------- */
/* user:delete */
/* -------------------------------------------------------------------------- */
{
displayName: 'User Id',
name: 'id',
type: 'string',
default: '',
required: true,
displayOptions: {
show: {
operation: [
'delete',
],
resource: [
'user',
],
},
},
description: 'The ID of the user you want to delete.',
}
] as INodeProperties[];