2023-01-27 03:22:44 -08:00
import type { INodeProperties } from 'n8n-workflow' ;
2020-04-04 07:04:25 -07:00
2021-12-03 00:44:16 -08:00
export const singletonOperations : INodeProperties [ ] = [
2020-04-04 07:04:25 -07:00
{
displayName : 'Operation' ,
name : 'operation' ,
type : 'options' ,
2022-05-20 14:47:24 -07:00
noDataExpression : true ,
2020-04-04 07:04:25 -07:00
displayOptions : {
show : {
2022-08-01 13:47:55 -07:00
resource : [ 'singleton' ] ,
2020-04-04 07:04:25 -07:00
} ,
} ,
options : [
{
2020-04-06 01:03:49 -07:00
name : 'Get' ,
value : 'get' ,
2020-07-24 03:56:41 -07:00
description : 'Get a singleton' ,
2022-07-10 13:50:51 -07:00
action : 'Get a singleton' ,
2020-04-04 07:04:25 -07:00
} ,
] ,
2020-04-06 01:03:49 -07:00
default : 'get' ,
2020-10-22 06:46:03 -07:00
} ,
2021-12-03 00:44:16 -08:00
] ;
2020-04-05 06:49:47 -07:00
2021-12-03 00:44:16 -08:00
export const singletonFields : INodeProperties [ ] = [
2020-04-05 06:49:47 -07:00
{
2022-06-03 10:23:49 -07:00
displayName : 'Singleton Name or ID' ,
2020-04-05 06:49:47 -07:00
name : 'singleton' ,
type : 'options' ,
default : '' ,
typeOptions : {
loadOptionsMethod : 'getSingletons' ,
} ,
displayOptions : {
show : {
2022-08-01 13:47:55 -07:00
resource : [ 'singleton' ] ,
2020-04-05 06:49:47 -07:00
} ,
} ,
required : true ,
2022-08-01 13:47:55 -07:00
description :
2024-09-12 07:53:36 -07:00
'Name of the singleton to operate on. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.' ,
2020-04-05 06:49:47 -07:00
} ,
2021-12-03 00:44:16 -08:00
] ;