2021-02-21 23:49:00 -08:00
import {
INodeProperties ,
} from 'n8n-workflow' ;
2021-12-03 00:44:16 -08:00
export const coorganizerOperations : INodeProperties [ ] = [
2021-02-21 23:49:00 -08:00
{
displayName : 'Operation' ,
name : 'operation' ,
type : 'options' ,
2022-05-20 14:47:24 -07:00
noDataExpression : true ,
2021-02-21 23:49:00 -08:00
default : 'get' ,
options : [
{
name : 'Create' ,
value : 'create' ,
} ,
{
name : 'Delete' ,
value : 'delete' ,
} ,
{
name : 'Get All' ,
value : 'getAll' ,
} ,
{
name : 'Reinvite' ,
value : 'reinvite' ,
} ,
] ,
displayOptions : {
show : {
resource : [
'coorganizer' ,
] ,
} ,
} ,
} ,
2021-12-03 00:44:16 -08:00
] ;
2021-02-21 23:49:00 -08:00
2021-12-03 00:44:16 -08:00
export const coorganizerFields : INodeProperties [ ] = [
2021-02-21 23:49:00 -08:00
// ----------------------------------
// coorganizer: create
// ----------------------------------
{
2022-06-03 10:23:49 -07:00
displayName : 'Webinar Key Name or ID' ,
2021-02-21 23:49:00 -08:00
name : 'webinarKey' ,
type : 'options' ,
typeOptions : {
loadOptionsMethod : 'getWebinars' ,
} ,
required : true ,
default : [ ] ,
2022-06-03 10:23:49 -07:00
description : 'Key of the webinar that the co-organizer is hosting. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.' ,
2021-02-21 23:49:00 -08:00
displayOptions : {
show : {
resource : [
'coorganizer' ,
] ,
operation : [
'create' ,
] ,
} ,
} ,
} ,
{
displayName : 'Is External' ,
name : 'isExternal' ,
type : 'boolean' ,
required : true ,
default : false ,
2022-05-06 14:01:25 -07:00
description : 'Whether the co-organizer has no GoToWebinar account' ,
2021-02-21 23:49:00 -08:00
displayOptions : {
show : {
resource : [
'coorganizer' ,
] ,
operation : [
'create' ,
] ,
} ,
} ,
} ,
{
displayName : 'Organizer Key' ,
name : 'organizerKey' ,
type : 'string' ,
2021-12-03 00:44:16 -08:00
default : '' ,
2022-05-06 14:01:25 -07:00
description : 'The co-organizer\'s organizer key for the webinar' ,
2021-02-21 23:49:00 -08:00
displayOptions : {
show : {
resource : [
'coorganizer' ,
] ,
operation : [
'create' ,
] ,
isExternal : [
false ,
] ,
} ,
} ,
} ,
{
displayName : 'Given Name' ,
name : 'givenName' ,
type : 'string' ,
default : '' ,
2022-05-06 14:01:25 -07:00
description : 'The co-organizer\'s given name' ,
2021-02-21 23:49:00 -08:00
displayOptions : {
show : {
resource : [
'coorganizer' ,
] ,
operation : [
'create' ,
] ,
isExternal : [
true ,
] ,
} ,
} ,
} ,
{
displayName : 'Email' ,
name : 'email' ,
type : 'string' ,
2022-06-20 07:54:01 -07:00
placeholder : 'name@email.com' ,
2021-02-21 23:49:00 -08:00
default : '' ,
2022-05-06 14:01:25 -07:00
description : 'The co-organizer\'s email address' ,
2021-02-21 23:49:00 -08:00
displayOptions : {
show : {
resource : [
'coorganizer' ,
] ,
operation : [
'create' ,
] ,
isExternal : [
true ,
] ,
} ,
} ,
} ,
// ----------------------------------
// coorganizer: delete
// ----------------------------------
{
2022-06-03 10:23:49 -07:00
displayName : 'Webinar Key Name or ID' ,
2021-02-21 23:49:00 -08:00
name : 'webinarKey' ,
type : 'options' ,
typeOptions : {
loadOptionsMethod : 'getWebinars' ,
} ,
required : true ,
default : [ ] ,
2022-06-03 10:23:49 -07:00
description : 'Key of the webinar to delete. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.' ,
2021-02-21 23:49:00 -08:00
displayOptions : {
show : {
resource : [
'coorganizer' ,
] ,
operation : [
'delete' ,
] ,
} ,
} ,
} ,
{
displayName : 'Co-Organizer Key' ,
name : 'coorganizerKey' ,
type : 'string' ,
default : '' ,
2022-05-06 14:01:25 -07:00
description : 'Key of the co-organizer to delete' ,
2021-02-21 23:49:00 -08:00
displayOptions : {
show : {
resource : [
'coorganizer' ,
] ,
operation : [
'delete' ,
] ,
} ,
} ,
} ,
{
displayName : 'Is External' ,
name : 'isExternal' ,
type : 'boolean' ,
required : true ,
default : false ,
displayOptions : {
show : {
resource : [
'coorganizer' ,
] ,
operation : [
'delete' ,
] ,
} ,
} ,
2022-06-20 07:54:01 -07:00
// eslint-disable-next-line n8n-nodes-base/node-param-description-boolean-without-whether
2022-05-06 14:01:25 -07:00
description : 'By default only internal co-organizers (with a GoToWebinar account) can be deleted. If you want to use this call for external co-organizers you have to set this parameter to \'true\'.' ,
2021-02-21 23:49:00 -08:00
} ,
// ----------------------------------
// coorganizer: getAll
// ----------------------------------
{
2022-06-03 10:23:49 -07:00
displayName : 'Webinar Key Name or ID' ,
2021-02-21 23:49:00 -08:00
name : 'webinarKey' ,
type : 'options' ,
typeOptions : {
loadOptionsMethod : 'getWebinars' ,
} ,
required : true ,
default : [ ] ,
2022-06-03 10:23:49 -07:00
description : 'Key of the webinar to retrieve all co-organizers from. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.' ,
2021-02-21 23:49:00 -08:00
displayOptions : {
show : {
resource : [
'coorganizer' ,
] ,
operation : [
'getAll' ,
] ,
} ,
} ,
} ,
{
displayName : 'Return All' ,
name : 'returnAll' ,
type : 'boolean' ,
default : false ,
2022-05-06 14:01:25 -07:00
description : 'Whether to return all results or only up to a given limit' ,
2021-02-21 23:49:00 -08:00
displayOptions : {
show : {
resource : [
'coorganizer' ,
] ,
operation : [
'getAll' ,
] ,
} ,
} ,
} ,
{
displayName : 'Limit' ,
name : 'limit' ,
type : 'number' ,
default : 10 ,
2022-05-06 14:01:25 -07:00
description : 'Max number of results to return' ,
2021-02-21 23:49:00 -08:00
typeOptions : {
minValue : 1 ,
maxValue : 100 ,
} ,
displayOptions : {
show : {
resource : [
'coorganizer' ,
] ,
operation : [
'getAll' ,
] ,
returnAll : [
false ,
] ,
} ,
} ,
} ,
// ----------------------------------
// coorganizer: reinvite
// ----------------------------------
{
displayName : 'Webinar Key' ,
name : 'webinarKey' ,
type : 'string' ,
required : true ,
default : '' ,
2022-05-06 14:01:25 -07:00
description : 'By default only internal co-organizers (with a GoToWebinar account) can be deleted. If you want to use this call for external co-organizers you have to set this parameter to \'true\'.' ,
2021-02-21 23:49:00 -08:00
displayOptions : {
show : {
resource : [
'coorganizer' ,
] ,
operation : [
'reinvite' ,
] ,
} ,
} ,
} ,
{
displayName : 'Co-Organizer Key' ,
name : 'coorganizerKey' ,
type : 'string' ,
default : '' ,
2022-05-06 14:01:25 -07:00
description : 'Key of the co-organizer to reinvite' ,
2021-02-21 23:49:00 -08:00
displayOptions : {
show : {
resource : [
'coorganizer' ,
] ,
operation : [
'reinvite' ,
] ,
} ,
} ,
} ,
{
displayName : 'Is External' ,
name : 'isExternal' ,
type : 'boolean' ,
required : true ,
default : false ,
2022-05-06 14:01:25 -07:00
description : 'Whether the co-organizer has no GoToWebinar account' ,
2021-02-21 23:49:00 -08:00
displayOptions : {
show : {
resource : [
'coorganizer' ,
] ,
operation : [
'reinvite' ,
] ,
} ,
} ,
} ,
2021-12-03 00:44:16 -08:00
] ;