mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-16 09:34:07 -08:00
54 lines
1.2 KiB
TypeScript
54 lines
1.2 KiB
TypeScript
import * as snapshot from './snapshot';
|
|
import * as metadata from './metadata';
|
|
import * as apiCall from './apiCall';
|
|
import * as collaborator from './collaborator';
|
|
|
|
import type { INodeProperties } from 'n8n-workflow';
|
|
|
|
export { snapshot, metadata, apiCall, collaborator };
|
|
|
|
export const descriptions: INodeProperties[] = [
|
|
{
|
|
displayName: 'Operation',
|
|
name: 'operation',
|
|
type: 'options',
|
|
noDataExpression: true,
|
|
displayOptions: {
|
|
show: {
|
|
resource: ['base'],
|
|
},
|
|
},
|
|
options: [
|
|
{
|
|
name: 'Snapshot',
|
|
value: 'snapshot',
|
|
description: 'Create a snapshot of the base',
|
|
action: 'Create a Snapshot',
|
|
},
|
|
{
|
|
name: 'Metadata',
|
|
value: 'metadata',
|
|
description: 'Get the complete metadata of the base',
|
|
action: 'Get metadata of a base',
|
|
},
|
|
{
|
|
name: 'API Call',
|
|
value: 'apiCall',
|
|
description: 'Perform an authorized API call (Base Operation)',
|
|
action: 'Make an API Call',
|
|
},
|
|
{
|
|
name: 'Collaborator',
|
|
value: 'collaborator',
|
|
description: 'Get this username from the email or name of a collaborator.',
|
|
action: 'Get username from email or name',
|
|
},
|
|
],
|
|
default: '',
|
|
},
|
|
...snapshot.description,
|
|
...metadata.description,
|
|
...apiCall.description,
|
|
...collaborator.description,
|
|
];
|