UNPKG

n8n-nodes-nimbasms

Version:

Nimba SMS node for n8n - Send SMS, manage contacts, campaigns and more

101 lines (100 loc) 2.87 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.groupFields = exports.groupOperations = void 0; exports.groupOperations = [ { displayName: 'Operation', name: 'operation', type: 'options', noDataExpression: true, displayOptions: { show: { resource: ['group'], }, }, options: [ { name: 'Get All', value: 'getAll', description: 'Get all groups', action: 'Get all groups', }, ], default: 'getAll', }, ]; exports.groupFields = [ /* -------------------------------------------------------------------------- */ /* group:getAll */ /* -------------------------------------------------------------------------- */ { displayName: 'Return All', name: 'returnAll', type: 'boolean', displayOptions: { show: { resource: ['group'], 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: ['group'], operation: ['getAll'], returnAll: [false], }, }, typeOptions: { minValue: 1, }, default: 50, description: 'Max number of results to return', }, { displayName: 'Filters', name: 'filters', type: 'collection', placeholder: 'Add Filter', default: {}, displayOptions: { show: { resource: ['group'], operation: ['getAll'], }, }, options: [ { displayName: 'Search', name: 'search', type: 'string', default: '', description: 'Search term to filter groups', }, { displayName: 'Ordering', name: 'ordering', type: 'string', default: '', description: 'Field to use when ordering the results', placeholder: 'name, -name, added_at, -added_at', }, { displayName: 'Offset', name: 'offset', type: 'number', typeOptions: { minValue: 0, }, default: 0, description: 'The initial index from which to return the results', }, ], }, ];