feat(slack Node): add operation get many for user resource (#3150)

This commit is contained in:
Jonathan Bennetts
2022-09-29 10:26:51 +01:00
committed by GitHub
parent a8da9c31a9
commit 2714b4ced7
4 changed files with 59 additions and 13 deletions

View File

@@ -18,6 +18,12 @@ export const userOperations: INodeProperties[] = [
description: 'Get information about a user',
action: 'Get information about a user',
},
{
name: 'Get Many',
value: 'getAll',
description: 'Get a list of many users',
action: 'Get many users',
},
{
name: 'Get Presence',
value: 'getPresence',
@@ -50,6 +56,40 @@ export const userFields: INodeProperties[] = [
required: true,
description: 'The ID of the user to get information about',
},
/* -------------------------------------------------------------------------- */
/* user:getAll */
/* -------------------------------------------------------------------------- */
{
displayName: 'Return All',
name: 'returnAll',
type: 'boolean',
displayOptions: {
show: {
resource: ['user'],
operation: ['getAll'],
},
},
default: false,
description: 'Whether to return all results or only up to a given limit',
},
{
displayName: 'Limit',
name: 'limit',
type: 'number',
displayOptions: {
show: {
resource: ['user'],
operation: ['getAll'],
returnAll: [false],
},
},
typeOptions: {
minValue: 1,
maxValue: 100,
},
default: 50,
description: 'Max number of results to return',
},
/* -------------------------------------------------------------------------- */
/* user:getPresence */