30 lines
470 B
TypeScript
30 lines
470 B
TypeScript
|
|
import type { INodeProperties } from 'n8n-workflow';
|
||
|
|
|
||
|
|
export const resource = {
|
||
|
|
name: 'Space',
|
||
|
|
value: 'space',
|
||
|
|
};
|
||
|
|
|
||
|
|
export const operations: INodeProperties[] = [
|
||
|
|
{
|
||
|
|
displayName: 'Operation',
|
||
|
|
name: 'operation',
|
||
|
|
type: 'options',
|
||
|
|
noDataExpression: true,
|
||
|
|
displayOptions: {
|
||
|
|
show: {
|
||
|
|
resource: [resource.value],
|
||
|
|
},
|
||
|
|
},
|
||
|
|
options: [
|
||
|
|
{
|
||
|
|
name: 'Get',
|
||
|
|
value: 'get',
|
||
|
|
},
|
||
|
|
],
|
||
|
|
default: 'get',
|
||
|
|
},
|
||
|
|
];
|
||
|
|
|
||
|
|
export const fields: INodeProperties[] = [];
|