2020-04-04 07:04:25 -07:00
|
|
|
import { INodeProperties } from 'n8n-workflow';
|
|
|
|
|
|
|
|
export const singletonOperations = [
|
|
|
|
{
|
|
|
|
displayName: 'Operation',
|
|
|
|
name: 'operation',
|
|
|
|
type: 'options',
|
|
|
|
displayOptions: {
|
|
|
|
show: {
|
|
|
|
resource: [
|
|
|
|
'singletons',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
options: [
|
|
|
|
{
|
2020-04-05 06:49:47 -07:00
|
|
|
name: 'Get All',
|
|
|
|
value: 'getAll',
|
|
|
|
description: 'Get all singletons',
|
2020-04-04 07:04:25 -07:00
|
|
|
},
|
|
|
|
],
|
2020-04-05 06:49:47 -07:00
|
|
|
default: 'getAll',
|
2020-04-04 07:04:25 -07:00
|
|
|
description: 'The operation to perform.',
|
|
|
|
}
|
|
|
|
] as INodeProperties[];
|
2020-04-05 06:49:47 -07:00
|
|
|
|
|
|
|
export const singletonFields = [
|
|
|
|
{
|
|
|
|
displayName: 'Singleton',
|
|
|
|
name: 'singleton',
|
|
|
|
type: 'options',
|
|
|
|
default: '',
|
|
|
|
typeOptions: {
|
|
|
|
loadOptionsMethod: 'getSingletons',
|
|
|
|
},
|
|
|
|
displayOptions: {
|
|
|
|
show: {
|
|
|
|
resource: [
|
|
|
|
'singletons',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
required: true,
|
|
|
|
description: 'Name of the singleton to operate on.'
|
|
|
|
},
|
|
|
|
] as INodeProperties[];
|