Files
Agent-n8n/n8n-n8n-1.109.2/packages/nodes-base/nodes/Aws/Cognito/descriptions/group/getAll.operation.ts
2025-09-08 04:48:28 +08:00

73 lines
1.4 KiB
TypeScript
Executable File

import type { INodeProperties } from 'n8n-workflow';
import { updateDisplayOptions } from 'n8n-workflow';
import { userPoolResourceLocator } from '../common.description';
const properties: INodeProperties[] = [
{
...userPoolResourceLocator,
description: 'Select the user pool to use',
},
{
displayName: 'Return All',
name: 'returnAll',
default: false,
description: 'Whether to return all results or only up to a given limit',
type: 'boolean',
routing: {
operations: {
pagination: {
type: 'generic',
properties: {
continue: '={{ !!$response.body?.NextToken }}',
request: {
body: {
NextToken: '={{ $response.body?.NextToken }}',
},
},
},
},
},
},
},
{
displayName: 'Limit',
name: 'limit',
required: true,
type: 'number',
typeOptions: {
minValue: 1,
maxValue: 60,
},
default: 50,
description: 'Max number of results to return',
displayOptions: {
show: {
returnAll: [false],
},
},
routing: {
send: {
type: 'body',
property: 'Limit',
},
},
},
{
displayName: 'Include Users',
name: 'includeUsers',
type: 'boolean',
default: false,
description: 'Whether to include a list of users in the group',
},
];
const displayOptions = {
show: {
resource: ['group'],
operation: ['getAll'],
},
};
export const description = updateDisplayOptions(displayOptions, properties);