2022-08-17 08:50:24 -07:00
import { INodeProperties } from 'n8n-workflow' ;
2020-06-22 18:39:21 -07:00
2021-12-03 00:44:16 -08:00
export const webinarOperations : INodeProperties [ ] = [
2020-06-22 18:39:21 -07:00
{
displayName : 'Operation' ,
name : 'operation' ,
type : 'options' ,
2022-05-20 14:47:24 -07:00
noDataExpression : true ,
2020-06-22 18:39:21 -07:00
displayOptions : {
show : {
2022-08-17 08:50:24 -07:00
resource : [ 'webinar' ] ,
2020-06-22 18:39:21 -07:00
} ,
} ,
options : [
{
name : 'Create' ,
value : 'create' ,
description : 'Create a webinar' ,
2022-07-10 13:50:51 -07:00
action : 'Create a webinar' ,
2020-06-22 18:39:21 -07:00
} ,
{
name : 'Delete' ,
value : 'delete' ,
description : 'Delete a webinar' ,
2022-07-10 13:50:51 -07:00
action : 'Delete a webinar' ,
2020-06-22 18:39:21 -07:00
} ,
{
name : 'Get' ,
value : 'get' ,
description : 'Retrieve a webinar' ,
2022-07-10 13:50:51 -07:00
action : 'Get a webinar' ,
2020-06-22 18:39:21 -07:00
} ,
{
name : 'Get All' ,
value : 'getAll' ,
description : 'Retrieve all webinars' ,
2022-07-10 13:50:51 -07:00
action : 'Get all webinars' ,
2020-06-22 18:39:21 -07:00
} ,
{
name : 'Update' ,
value : 'update' ,
description : 'Update a webinar' ,
2022-07-10 13:50:51 -07:00
action : 'Update a webinar' ,
2020-10-22 06:46:03 -07:00
} ,
2020-06-22 18:39:21 -07:00
] ,
default : 'create' ,
2020-10-22 06:46:03 -07:00
} ,
2021-12-03 00:44:16 -08:00
] ;
2020-06-22 18:39:21 -07:00
2021-12-03 00:44:16 -08:00
export const webinarFields : INodeProperties [ ] = [
2020-06-22 18:39:21 -07:00
/* -------------------------------------------------------------------------- */
/* webinar:create */
/* -------------------------------------------------------------------------- */
{
2020-06-23 14:26:00 -07:00
displayName : 'User ID' ,
2020-06-22 18:39:21 -07:00
name : 'userId' ,
type : 'string' ,
default : '' ,
required : true ,
displayOptions : {
show : {
2022-08-17 08:50:24 -07:00
operation : [ 'create' ] ,
resource : [ 'webinar' ] ,
2020-06-22 18:39:21 -07:00
} ,
} ,
2022-05-06 14:01:25 -07:00
description : 'User ID or email ID' ,
2020-06-22 18:39:21 -07:00
} ,
{
2020-06-24 10:47:35 -07:00
displayName : 'Additional Fields' ,
2020-06-22 18:39:21 -07:00
name : 'additionalFields' ,
type : 'collection' ,
placeholder : 'Add Field' ,
default : { } ,
displayOptions : {
show : {
2022-08-17 08:50:24 -07:00
operation : [ 'create' ] ,
resource : [ 'webinar' ] ,
2020-10-22 06:46:03 -07:00
} ,
2020-06-22 18:39:21 -07:00
} ,
options : [
{
displayName : 'Agenda' ,
name : 'agenda' ,
type : 'string' ,
default : '' ,
2022-05-06 14:01:25 -07:00
description : 'Webinar agenda' ,
2020-06-22 18:39:21 -07:00
} ,
{
displayName : 'Alternative Hosts' ,
2020-06-24 11:18:56 -07:00
name : 'alternativeHosts' ,
2020-06-22 18:39:21 -07:00
type : 'string' ,
default : '' ,
2022-05-06 14:01:25 -07:00
description : 'Alternative hosts email IDs' ,
2020-06-22 18:39:21 -07:00
} ,
{
2020-06-24 10:47:35 -07:00
displayName : 'Approval Type' ,
2020-06-24 11:18:56 -07:00
name : 'approvalType' ,
2020-06-22 18:39:21 -07:00
type : 'options' ,
options : [
{
2020-06-24 10:47:35 -07:00
name : 'Automatically Approve' ,
2020-06-22 18:39:21 -07:00
value : 0 ,
} ,
{
2020-06-24 10:47:35 -07:00
name : 'Manually Approve' ,
2020-06-22 18:39:21 -07:00
value : 1 ,
} ,
{
2020-06-24 10:47:35 -07:00
name : 'No Registration Required' ,
2020-06-22 18:39:21 -07:00
value : 2 ,
} ,
] ,
default : 2 ,
} ,
2020-06-23 12:14:04 -07:00
{
displayName : 'Audio' ,
name : 'audio' ,
type : 'options' ,
options : [
{
name : 'Both Telephony and VoiP' ,
value : 'both' ,
} ,
{
name : 'Telephony' ,
value : 'telephony' ,
} ,
{
name : 'VOIP' ,
value : 'voip' ,
} ,
] ,
default : 'both' ,
2022-05-06 14:01:25 -07:00
description : 'Determine how participants can join audio portion of the webinar' ,
2020-06-23 12:14:04 -07:00
} ,
2020-06-22 18:39:21 -07:00
{
2020-06-24 10:47:35 -07:00
displayName : 'Auto Recording' ,
2020-06-24 11:18:56 -07:00
name : 'autoRecording' ,
2020-06-22 18:39:21 -07:00
type : 'options' ,
options : [
{
2020-06-24 10:47:35 -07:00
name : 'Record on Local' ,
2020-06-22 18:39:21 -07:00
value : 'local' ,
} ,
{
2020-06-24 10:47:35 -07:00
name : 'Record on Cloud' ,
2020-06-22 18:39:21 -07:00
value : 'cloud' ,
} ,
{
name : 'Disabled' ,
value : 'none' ,
} ,
] ,
default : 'none' ,
} ,
{
2020-06-23 12:14:04 -07:00
displayName : 'Duration' ,
name : 'duration' ,
type : 'string' ,
default : '' ,
} ,
{
displayName : 'Host Video' ,
2020-06-24 11:18:56 -07:00
name : 'hostVideo' ,
2020-06-23 12:14:04 -07:00
type : 'boolean' ,
default : false ,
2022-06-20 07:54:01 -07:00
description : 'Whether to start a video when host joins the webinar' ,
2020-06-23 12:14:04 -07:00
} ,
{
displayName : 'Panelists Video' ,
2020-06-24 11:18:56 -07:00
name : 'panelistsVideo' ,
2020-06-23 12:14:04 -07:00
type : 'boolean' ,
default : false ,
2022-06-20 07:54:01 -07:00
description : 'Whether to start a video when panelists joins the webinar' ,
2020-06-23 12:14:04 -07:00
} ,
{
displayName : 'Password' ,
name : 'password' ,
type : 'string' ,
default : '' ,
2022-05-06 14:01:25 -07:00
description : 'Password to join the webinar with maximum 10 characters' ,
2020-06-23 12:14:04 -07:00
} ,
{
displayName : 'Practice Session' ,
2020-06-24 11:18:56 -07:00
name : 'practiceSession' ,
2020-06-23 12:14:04 -07:00
type : 'boolean' ,
default : false ,
2022-06-20 07:54:01 -07:00
description : 'Whether to enable Practice session' ,
2020-06-22 18:39:21 -07:00
} ,
{
2020-06-24 10:47:35 -07:00
displayName : 'Registration Type' ,
2020-06-24 11:18:56 -07:00
name : 'registrationType' ,
2020-06-22 18:39:21 -07:00
type : 'options' ,
options : [
{
2022-06-03 10:23:49 -07:00
// eslint-disable-next-line n8n-nodes-base/node-param-display-name-miscased
2020-08-04 02:35:28 -07:00
name : 'Attendees register once and can attend any of the occurrences' ,
2020-06-22 18:39:21 -07:00
value : 1 ,
} ,
{
2022-06-03 10:23:49 -07:00
// eslint-disable-next-line n8n-nodes-base/node-param-display-name-miscased
2020-06-23 13:40:43 -07:00
name : 'Attendees need to register for every occurrence' ,
2020-06-22 18:39:21 -07:00
value : 2 ,
} ,
{
2022-06-03 10:23:49 -07:00
// eslint-disable-next-line n8n-nodes-base/node-param-display-name-miscased
2020-06-23 13:40:43 -07:00
name : 'Attendees register once and can choose one or more occurrences to attend' ,
2020-06-22 18:39:21 -07:00
value : 3 ,
} ,
] ,
default : 1 ,
2022-04-22 09:29:51 -07:00
description : 'Registration type. Used for recurring webinar with fixed time only.' ,
2020-06-22 18:39:21 -07:00
} ,
2020-06-23 12:14:04 -07:00
{
2020-06-24 10:47:35 -07:00
displayName : 'Start Time' ,
2020-06-23 12:14:04 -07:00
name : 'startTime' ,
type : 'dateTime' ,
default : '' ,
2022-08-17 08:50:24 -07:00
description :
'Start time should be used only for scheduled or recurring webinar with fixed time' ,
2020-06-23 12:14:04 -07:00
} ,
{
2022-06-03 10:23:49 -07:00
displayName : 'Timezone Name or ID' ,
2020-06-23 12:14:04 -07:00
name : 'timeZone' ,
type : 'options' ,
typeOptions : {
loadOptionsMethod : 'getTimezones' ,
} ,
default : '' ,
2022-08-17 08:50:24 -07:00
description :
'Time zone used in the response. The default is the time zone of the calendar. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.' ,
2020-06-23 12:14:04 -07:00
} ,
{
2020-06-24 10:47:35 -07:00
displayName : 'Webinar Topic' ,
2020-06-23 12:14:04 -07:00
name : 'topic' ,
type : 'string' ,
default : '' ,
} ,
{
2020-06-24 10:47:35 -07:00
displayName : 'Webinar Type' ,
2020-06-23 12:14:04 -07:00
name : 'type' ,
type : 'options' ,
options : [
{
name : 'Webinar' ,
value : 5 ,
} ,
{
2022-06-03 10:23:49 -07:00
name : 'Recurring Webinar with No Fixed Time' ,
2020-06-23 12:14:04 -07:00
value : 6 ,
} ,
{
2022-06-03 10:23:49 -07:00
name : 'Recurring Webinar with Fixed Time' ,
2020-06-23 12:14:04 -07:00
value : 9 ,
} ,
] ,
default : 5 ,
} ,
2020-06-22 18:39:21 -07:00
] ,
} ,
/* -------------------------------------------------------------------------- */
/* webinar:get */
/* -------------------------------------------------------------------------- */
{
2020-06-23 14:26:00 -07:00
displayName : 'Webinar ID' ,
2020-06-22 18:39:21 -07:00
name : 'webinarId' ,
type : 'string' ,
default : '' ,
required : true ,
displayOptions : {
show : {
2022-08-17 08:50:24 -07:00
operation : [ 'get' ] ,
resource : [ 'webinar' ] ,
2020-06-22 18:39:21 -07:00
} ,
} ,
} ,
{
2020-06-24 10:47:35 -07:00
displayName : 'Additional Fields' ,
2020-06-22 18:39:21 -07:00
name : 'additionalFields' ,
type : 'collection' ,
placeholder : 'Add Field' ,
default : { } ,
displayOptions : {
show : {
2022-08-17 08:50:24 -07:00
operation : [ 'get' ] ,
resource : [ 'webinar' ] ,
2020-06-22 18:39:21 -07:00
} ,
} ,
options : [
{
2020-08-04 02:35:28 -07:00
displayName : 'Occurrence ID' ,
name : 'occurrenceId' ,
2020-06-22 18:39:21 -07:00
type : 'string' ,
default : '' ,
2022-05-06 14:01:25 -07:00
description : 'To view webinar details of a particular occurrence of the recurring webinar' ,
2020-06-22 18:39:21 -07:00
} ,
{
2020-06-23 13:40:43 -07:00
displayName : 'Show Previous Occurrences' ,
name : 'showPreviousOccurrences' ,
2020-06-22 18:39:21 -07:00
type : 'boolean' ,
2022-04-22 09:29:51 -07:00
default : false ,
2022-08-17 08:50:24 -07:00
description :
'Whether to view webinar details of all previous occurrences of the recurring webinar' ,
2020-06-22 18:39:21 -07:00
} ,
] ,
} ,
/* -------------------------------------------------------------------------- */
/* webinar:getAll */
/* -------------------------------------------------------------------------- */
{
2020-06-23 14:26:00 -07:00
displayName : 'User ID' ,
2020-06-22 18:39:21 -07:00
name : 'userId' ,
type : 'string' ,
default : '' ,
required : true ,
displayOptions : {
show : {
2022-08-17 08:50:24 -07:00
operation : [ 'getAll' ] ,
resource : [ 'webinar' ] ,
2020-06-22 18:39:21 -07:00
} ,
} ,
2022-05-06 14:01:25 -07:00
description : 'User ID or email-ID' ,
2020-06-22 18:39:21 -07:00
} ,
{
displayName : 'Return All' ,
name : 'returnAll' ,
type : 'boolean' ,
displayOptions : {
show : {
2022-08-17 08:50:24 -07:00
operation : [ 'getAll' ] ,
resource : [ 'webinar' ] ,
2020-06-22 18:39:21 -07:00
} ,
} ,
default : false ,
2022-05-06 14:01:25 -07:00
description : 'Whether to return all results or only up to a given limit' ,
2020-06-22 18:39:21 -07:00
} ,
{
displayName : 'Limit' ,
name : 'limit' ,
type : 'number' ,
displayOptions : {
show : {
2022-08-17 08:50:24 -07:00
operation : [ 'getAll' ] ,
resource : [ 'webinar' ] ,
returnAll : [ false ] ,
2020-06-22 18:39:21 -07:00
} ,
} ,
typeOptions : {
minValue : 1 ,
2020-06-23 20:29:47 -07:00
maxValue : 300 ,
2020-06-22 18:39:21 -07:00
} ,
default : 30 ,
2022-05-06 14:01:25 -07:00
description : 'Max number of results to return' ,
2020-06-22 18:39:21 -07:00
} ,
/* -------------------------------------------------------------------------- */
2020-06-23 13:40:43 -07:00
/* webinar:delete */
2020-06-22 18:39:21 -07:00
/* -------------------------------------------------------------------------- */
{
2020-06-23 14:26:00 -07:00
displayName : 'Webinar ID' ,
2020-06-22 18:39:21 -07:00
name : 'webinarId' ,
type : 'string' ,
default : '' ,
required : true ,
displayOptions : {
show : {
2022-08-17 08:50:24 -07:00
operation : [ 'delete' ] ,
resource : [ 'webinarId' ] ,
2020-06-22 18:39:21 -07:00
} ,
} ,
} ,
{
displayName : 'Additional Fields' ,
name : 'additionalFields' ,
type : 'collection' ,
placeholder : 'Add Field' ,
default : { } ,
displayOptions : {
show : {
2022-08-17 08:50:24 -07:00
operation : [ 'delete' ] ,
resource : [ 'webinar' ] ,
2020-06-22 18:39:21 -07:00
} ,
} ,
options : [
{
2020-06-23 14:26:00 -07:00
displayName : 'Occurrence ID' ,
2020-06-23 13:40:43 -07:00
name : 'occurrenceId' ,
2020-06-22 18:39:21 -07:00
type : 'string' ,
default : '' ,
2022-05-06 14:01:25 -07:00
description : 'Webinar occurrence ID' ,
2020-06-22 18:39:21 -07:00
} ,
] ,
} ,
/* -------------------------------------------------------------------------- */
/* webinar:update */
/* -------------------------------------------------------------------------- */
{
2020-06-24 11:18:56 -07:00
displayName : 'Webinar ID' ,
name : 'webinarId' ,
2020-06-22 18:39:21 -07:00
type : 'string' ,
default : '' ,
required : true ,
displayOptions : {
show : {
2022-08-17 08:50:24 -07:00
operation : [ 'update' ] ,
resource : [ 'webinar' ] ,
2020-06-22 18:39:21 -07:00
} ,
} ,
2022-05-06 14:01:25 -07:00
description : 'User ID or email address of user' ,
2020-06-22 18:39:21 -07:00
} ,
{
2020-06-24 10:47:35 -07:00
displayName : 'Additional Fields' ,
2020-06-22 18:39:21 -07:00
name : 'additionalFields' ,
type : 'collection' ,
placeholder : 'Add Field' ,
default : { } ,
displayOptions : {
show : {
2022-08-17 08:50:24 -07:00
operation : [ 'update' ] ,
resource : [ 'webinar' ] ,
2020-06-23 20:29:47 -07:00
} ,
2020-06-22 18:39:21 -07:00
} ,
options : [
{
displayName : 'Agenda' ,
name : 'agenda' ,
type : 'string' ,
default : '' ,
2022-05-06 14:01:25 -07:00
description : 'Webinar agenda' ,
2020-06-22 18:39:21 -07:00
} ,
{
displayName : 'Alternative Hosts' ,
2020-06-24 11:25:07 -07:00
name : 'alternativeHosts' ,
2020-06-22 18:39:21 -07:00
type : 'string' ,
default : '' ,
2022-05-06 14:01:25 -07:00
description : 'Alternative hosts email IDs' ,
2020-06-22 18:39:21 -07:00
} ,
{
2020-06-24 10:47:35 -07:00
displayName : 'Approval Type' ,
2020-06-24 11:25:07 -07:00
name : 'approvalType' ,
2020-06-22 18:39:21 -07:00
type : 'options' ,
options : [
{
2020-06-24 10:47:35 -07:00
name : 'Automatically Approve' ,
2020-06-22 18:39:21 -07:00
value : 0 ,
} ,
{
2020-06-24 10:47:35 -07:00
name : 'Manually Approve' ,
2020-06-22 18:39:21 -07:00
value : 1 ,
} ,
{
2020-06-24 10:47:35 -07:00
name : 'No Registration Required' ,
2020-06-22 18:39:21 -07:00
value : 2 ,
} ,
] ,
default : 2 ,
} ,
{
2020-06-24 10:47:35 -07:00
displayName : 'Auto Recording' ,
2020-06-24 11:25:07 -07:00
name : 'autoRecording' ,
2020-06-22 18:39:21 -07:00
type : 'options' ,
options : [
{
2020-06-24 10:47:35 -07:00
name : 'Record on Local' ,
2020-06-22 18:39:21 -07:00
value : 'local' ,
} ,
{
2020-06-24 10:47:35 -07:00
name : 'Record on Cloud' ,
2020-06-22 18:39:21 -07:00
value : 'cloud' ,
} ,
{
name : 'Disabled' ,
value : 'none' ,
} ,
] ,
default : 'none' ,
} ,
{
displayName : 'Audio' ,
name : 'audio' ,
type : 'options' ,
options : [
{
name : 'Both Telephony and VoiP' ,
value : 'both' ,
} ,
{
name : 'Telephony' ,
value : 'telephony' ,
} ,
{
name : 'VOIP' ,
value : 'voip' ,
} ,
] ,
default : 'both' ,
2022-05-06 14:01:25 -07:00
description : 'Determine how participants can join audio portion of the webinar' ,
2020-06-22 18:39:21 -07:00
} ,
2020-06-23 12:14:04 -07:00
{
displayName : 'Duration' ,
name : 'duration' ,
type : 'string' ,
default : '' ,
} ,
{
displayName : 'Host Video' ,
2020-06-24 11:25:07 -07:00
name : 'hostVideo' ,
2020-06-23 12:14:04 -07:00
type : 'boolean' ,
default : false ,
2022-06-20 07:54:01 -07:00
description : 'Whether to start video when host joins the webinar' ,
2020-06-23 12:14:04 -07:00
} ,
{
2020-06-23 14:26:00 -07:00
displayName : 'Occurrence ID' ,
2020-06-24 11:25:07 -07:00
name : 'occurrenceId' ,
2020-06-23 12:14:04 -07:00
type : 'string' ,
default : '' ,
2022-05-06 14:01:25 -07:00
description : 'Webinar occurrence ID' ,
2020-06-23 12:14:04 -07:00
} ,
{
displayName : 'Password' ,
name : 'password' ,
type : 'string' ,
default : '' ,
2022-05-06 14:01:25 -07:00
description : 'Password to join the webinar with maximum 10 characters' ,
2020-06-23 12:14:04 -07:00
} ,
{
displayName : 'Panelists Video' ,
2020-06-24 11:25:07 -07:00
name : 'panelistsVideo' ,
2020-06-23 12:14:04 -07:00
type : 'boolean' ,
default : false ,
2022-06-20 07:54:01 -07:00
description : 'Whether to start a video when panelists joins the webinar' ,
2020-06-23 12:14:04 -07:00
} ,
{
displayName : 'Practice Session' ,
2020-06-24 11:25:07 -07:00
name : 'practiceSession' ,
2020-06-23 12:14:04 -07:00
type : 'boolean' ,
default : false ,
2022-06-20 07:54:01 -07:00
description : 'Whether to enable Practice session' ,
2020-06-23 12:14:04 -07:00
} ,
2020-06-22 18:39:21 -07:00
{
2020-06-24 10:47:35 -07:00
displayName : 'Registration Type' ,
2020-06-24 11:25:07 -07:00
name : 'registrationType' ,
2020-06-22 18:39:21 -07:00
type : 'options' ,
options : [
{
2022-06-03 10:23:49 -07:00
name : 'Attendees Register Once and Can Attend Any of the Occurrences' ,
2020-06-22 18:39:21 -07:00
value : 1 ,
} ,
{
2022-06-03 10:23:49 -07:00
name : 'Attendees Need to Register for Every Occurrence' ,
2020-06-22 18:39:21 -07:00
value : 2 ,
} ,
{
2022-06-03 10:23:49 -07:00
name : 'Attendees Register Once and Can Choose One or More Occurrences to Attend' ,
2020-06-22 18:39:21 -07:00
value : 3 ,
} ,
] ,
default : 1 ,
2020-06-23 13:40:43 -07:00
description : 'Registration type. Used for recurring webinars with fixed time only.' ,
2020-06-22 18:39:21 -07:00
} ,
2020-06-23 12:14:04 -07:00
{
2020-06-24 10:47:35 -07:00
displayName : 'Start Time' ,
2020-06-23 12:14:04 -07:00
name : 'startTime' ,
type : 'dateTime' ,
default : '' ,
2022-08-17 08:50:24 -07:00
description :
'Start time should be used only for scheduled or recurring webinar with fixed time' ,
2020-06-23 12:14:04 -07:00
} ,
{
2022-06-03 10:23:49 -07:00
displayName : 'Timezone Name or ID' ,
2020-06-23 12:14:04 -07:00
name : 'timeZone' ,
type : 'options' ,
typeOptions : {
loadOptionsMethod : 'getTimezones' ,
} ,
default : '' ,
2022-08-17 08:50:24 -07:00
description :
'Time zone used in the response. The default is the time zone of the calendar. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.' ,
2020-06-23 12:14:04 -07:00
} ,
{
2020-06-24 10:47:35 -07:00
displayName : 'Webinar Topic' ,
2020-06-23 12:14:04 -07:00
name : 'topic' ,
type : 'string' ,
default : '' ,
} ,
{
2020-06-24 10:47:35 -07:00
displayName : 'Webinar Type' ,
2020-06-23 12:14:04 -07:00
name : 'type' ,
type : 'options' ,
options : [
{
name : 'Webinar' ,
value : 5 ,
} ,
{
2022-06-03 10:23:49 -07:00
name : 'Recurring Webinar with No Fixed Time' ,
2020-06-23 12:14:04 -07:00
value : 6 ,
} ,
{
2022-06-03 10:23:49 -07:00
name : 'Recurring Webinar with Fixed Time' ,
2020-06-23 12:14:04 -07:00
value : 9 ,
} ,
] ,
default : 5 ,
} ,
2020-06-22 18:39:21 -07:00
] ,
} ,
2021-12-03 00:44:16 -08:00
] ;