* 👕 Enable `consistent-type-imports` for nodes-base * 👕 Apply to nodes-base * ⏪ Undo unrelated changes * 🚚 Move to `.eslintrc.js` in nodes-base * ⏪ Revert "Enable `consistent-type-imports` for nodes-base" This reverts commit 529ad72b051478fa1633aaf84b2864f2fdc7613c. * 👕 Fix severity
104 lines
2.0 KiB
TypeScript
104 lines
2.0 KiB
TypeScript
import type { UserProperties } from '../../Interfaces';
|
|
|
|
export const userGetAllDescription: UserProperties = [
|
|
{
|
|
displayName: 'Return All',
|
|
name: 'returnAll',
|
|
type: 'boolean',
|
|
displayOptions: {
|
|
show: {
|
|
resource: ['user'],
|
|
operation: ['getAll'],
|
|
},
|
|
},
|
|
default: true,
|
|
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: 100,
|
|
description: 'Max number of results to return',
|
|
},
|
|
{
|
|
displayName: 'Additional Fields',
|
|
name: 'additionalFields',
|
|
type: 'collection',
|
|
placeholder: 'Add Field',
|
|
displayOptions: {
|
|
show: {
|
|
resource: ['user'],
|
|
operation: ['getAll'],
|
|
},
|
|
},
|
|
default: {},
|
|
options: [
|
|
{
|
|
displayName: 'In Channel',
|
|
name: 'inChannel',
|
|
type: 'string',
|
|
default: '',
|
|
description: 'The ID of the channel to get users for',
|
|
},
|
|
{
|
|
displayName: 'In Team',
|
|
name: 'inTeam',
|
|
type: 'string',
|
|
default: '',
|
|
description: 'The ID of the team to get users for',
|
|
},
|
|
{
|
|
displayName: 'Not In Team',
|
|
name: 'notInTeam',
|
|
type: 'string',
|
|
default: '',
|
|
description: 'The ID of the team to exclude users for',
|
|
},
|
|
{
|
|
displayName: 'Not In Channel',
|
|
name: 'notInChannel',
|
|
type: 'string',
|
|
default: '',
|
|
description: 'The ID of the channel to exclude users for',
|
|
},
|
|
{
|
|
displayName: 'Sort',
|
|
name: 'sort',
|
|
type: 'options',
|
|
options: [
|
|
{
|
|
name: 'Created At',
|
|
value: 'createdAt',
|
|
},
|
|
{
|
|
name: 'Last Activity At',
|
|
value: 'lastActivityAt',
|
|
},
|
|
{
|
|
name: 'Status',
|
|
value: 'status',
|
|
},
|
|
{
|
|
name: 'Username',
|
|
value: 'username',
|
|
},
|
|
],
|
|
default: 'username',
|
|
description: 'The ID of the channel to exclude users for',
|
|
},
|
|
],
|
|
},
|
|
];
|