n8n-nodes-base
Version:
Base nodes of n8n
56 lines • 1.9 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.spaceFields = exports.spaceOperations = void 0;
const GenericFunctions_1 = require("../GenericFunctions");
exports.spaceOperations = [
{
displayName: 'Operation',
name: 'operation',
noDataExpression: true,
type: 'options',
displayOptions: {
show: {
resource: ['space'],
},
},
options: [
{
name: 'Get',
value: 'get',
description: 'Get a space',
action: 'Get a space',
},
{
name: 'Get Many',
value: 'getAll',
description: 'Get many spaces the caller is a member of',
action: 'Get many spaces',
},
],
default: 'get',
},
];
exports.spaceFields = [
/* -------------------------------------------------------------------------- */
/* space:get */
/* -------------------------------------------------------------------------- */
{
displayName: 'Space ID',
name: 'spaceId',
type: 'string',
required: true,
displayOptions: {
show: {
resource: ['space'],
operation: ['get'],
},
},
default: '',
description: 'Resource name of the space, in the form "spaces/*"',
},
/* -------------------------------------------------------------------------- */
/* space:getAll */
/* -------------------------------------------------------------------------- */
...(0, GenericFunctions_1.getPagingParameters)('space'),
];
//# sourceMappingURL=SpaceDescription.js.map