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: [
|
2020-04-06 01:03:49 -07:00
|
|
|
'singleton',
|
2020-04-04 07:04:25 -07:00
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
options: [
|
|
|
|
{
|
2020-04-06 01:03:49 -07:00
|
|
|
name: 'Get',
|
|
|
|
value: 'get',
|
2020-04-12 03:28:36 -07:00
|
|
|
description: 'Gets a Singleton',
|
2020-04-04 07:04:25 -07:00
|
|
|
},
|
|
|
|
],
|
2020-04-06 01:03:49 -07:00
|
|
|
default: 'get',
|
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: [
|
2020-04-06 01:03:49 -07:00
|
|
|
'singleton',
|
2020-04-05 06:49:47 -07:00
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
required: true,
|
|
|
|
description: 'Name of the singleton to operate on.'
|
|
|
|
},
|
2020-04-06 01:03:49 -07:00
|
|
|
] as INodeProperties[];
|