mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 14:44:05 -08:00
refactor code
This commit is contained in:
parent
815f823f5a
commit
807db166fd
|
@ -86,77 +86,6 @@ export const meetingFields = [
|
|||
}
|
||||
},
|
||||
options: [
|
||||
{
|
||||
displayName: 'Meeting topic',
|
||||
name: 'topic',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: `Meeting topic.`,
|
||||
},
|
||||
{
|
||||
displayName: 'Meeting type',
|
||||
name: 'type',
|
||||
type: 'options',
|
||||
options: [
|
||||
{
|
||||
name: 'Instant Meeting',
|
||||
value: 1,
|
||||
},
|
||||
{
|
||||
name: 'Scheduled Meeting',
|
||||
value: 2,
|
||||
},
|
||||
{
|
||||
name: 'Recurring meeting with no fixed time',
|
||||
value: 3,
|
||||
},
|
||||
{
|
||||
name: 'Recurring meeting with no fixed time',
|
||||
value: 8,
|
||||
},
|
||||
|
||||
],
|
||||
default: 2,
|
||||
description: 'Meeting type.'
|
||||
},
|
||||
{
|
||||
displayName: 'Start time',
|
||||
name: 'startTime',
|
||||
type: 'dateTime',
|
||||
default: '',
|
||||
description: 'Start time should be used only for scheduled or recurring meetings with fixed time',
|
||||
},
|
||||
{
|
||||
displayName: 'Duration',
|
||||
name: 'duration',
|
||||
type: 'number',
|
||||
default: '',
|
||||
description: 'Duration.',
|
||||
},
|
||||
{
|
||||
displayName: 'Timezone',
|
||||
name: 'timeZone',
|
||||
type: 'options',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: 'getTimezones',
|
||||
},
|
||||
default: '',
|
||||
description: `Time zone used in the response. The default is the time zone of the calendar.`,
|
||||
},
|
||||
{
|
||||
displayName: 'Schedule for',
|
||||
name: 'scheduleFor',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Schedule meeting for someone else from your account, provide their email id.',
|
||||
},
|
||||
{
|
||||
displayName: 'Password',
|
||||
name: 'password',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Password to join the meeting with maximum 10 characters.',
|
||||
},
|
||||
{
|
||||
displayName: 'Agenda',
|
||||
name: 'agenda',
|
||||
|
@ -164,55 +93,6 @@ export const meetingFields = [
|
|||
default: '',
|
||||
description: 'Meeting agenda.',
|
||||
},
|
||||
{
|
||||
displayName: 'Host Meeting in China',
|
||||
name: 'cn_meeting',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Host Meeting in China.',
|
||||
},
|
||||
{
|
||||
displayName: 'Host Meeting in India',
|
||||
name: 'in_meeting',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Host Meeting in India.',
|
||||
},
|
||||
{
|
||||
displayName: 'Host Video',
|
||||
name: 'host_video',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Start video when host joins the meeting.',
|
||||
},
|
||||
{
|
||||
displayName: 'Participant Video',
|
||||
name: 'participant_video',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Start video when participant joins the meeting.',
|
||||
},
|
||||
{
|
||||
displayName: 'Join before Host',
|
||||
name: 'join_before_host',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Allow participants to join the meeting before host starts it.',
|
||||
},
|
||||
{
|
||||
displayName: 'Muting before entry',
|
||||
name: 'mute_upon_entry',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Mute participants upon entry.',
|
||||
},
|
||||
{
|
||||
displayName: 'Watermark',
|
||||
name: 'watermark',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Adds watermark when viewing a shared screen.',
|
||||
},
|
||||
{
|
||||
displayName: 'Alternative Hosts',
|
||||
name: 'alternative_hosts',
|
||||
|
@ -263,6 +143,95 @@ export const meetingFields = [
|
|||
default: 'both',
|
||||
description: 'Determine how participants can join audio portion of the meeting.',
|
||||
},
|
||||
{
|
||||
displayName: 'Duration',
|
||||
name: 'duration',
|
||||
type: 'number',
|
||||
default: '',
|
||||
description: 'Duration.',
|
||||
},
|
||||
{
|
||||
displayName: 'Host Meeting in China',
|
||||
name: 'cn_meeting',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Host Meeting in China.',
|
||||
},
|
||||
{
|
||||
displayName: 'Host Meeting in India',
|
||||
name: 'in_meeting',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Host Meeting in India.',
|
||||
},
|
||||
{
|
||||
displayName: 'Host Video',
|
||||
name: 'host_video',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Start video when host joins the meeting.',
|
||||
},
|
||||
{
|
||||
displayName: 'Join before Host',
|
||||
name: 'join_before_host',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Allow participants to join the meeting before host starts it.',
|
||||
},
|
||||
{
|
||||
displayName: 'Meeting topic',
|
||||
name: 'topic',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: `Meeting topic.`,
|
||||
},
|
||||
{
|
||||
displayName: 'Meeting type',
|
||||
name: 'type',
|
||||
type: 'options',
|
||||
options: [
|
||||
{
|
||||
name: 'Instant Meeting',
|
||||
value: 1,
|
||||
},
|
||||
{
|
||||
name: 'Scheduled Meeting',
|
||||
value: 2,
|
||||
},
|
||||
{
|
||||
name: 'Recurring meeting with no fixed time',
|
||||
value: 3,
|
||||
},
|
||||
{
|
||||
name: 'Recurring meeting with no fixed time',
|
||||
value: 8,
|
||||
},
|
||||
|
||||
],
|
||||
default: 2,
|
||||
description: 'Meeting type.'
|
||||
},
|
||||
{
|
||||
displayName: 'Muting before entry',
|
||||
name: 'mute_upon_entry',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Mute participants upon entry.',
|
||||
},
|
||||
{
|
||||
displayName: 'Participant Video',
|
||||
name: 'participant_video',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Start video when participant joins the meeting.',
|
||||
},
|
||||
{
|
||||
displayName: 'Password',
|
||||
name: 'password',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Password to join the meeting with maximum 10 characters.',
|
||||
},
|
||||
{
|
||||
displayName: 'Registration type',
|
||||
name: 'registration_type',
|
||||
|
@ -284,7 +253,37 @@ export const meetingFields = [
|
|||
default: 1,
|
||||
description: 'Registration type. Used for recurring meetings with fixed time only',
|
||||
},
|
||||
|
||||
{
|
||||
displayName: 'Schedule for',
|
||||
name: 'scheduleFor',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Schedule meeting for someone else from your account, provide their email id.',
|
||||
},
|
||||
{
|
||||
displayName: 'Start time',
|
||||
name: 'startTime',
|
||||
type: 'dateTime',
|
||||
default: '',
|
||||
description: 'Start time should be used only for scheduled or recurring meetings with fixed time',
|
||||
},
|
||||
{
|
||||
displayName: 'Timezone',
|
||||
name: 'timeZone',
|
||||
type: 'options',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: 'getTimezones',
|
||||
},
|
||||
default: '',
|
||||
description: `Time zone used in the response. The default is the time zone of the calendar.`,
|
||||
},
|
||||
{
|
||||
displayName: 'Watermark',
|
||||
name: 'watermark',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Adds watermark when viewing a shared screen.',
|
||||
},
|
||||
],
|
||||
},
|
||||
/* -------------------------------------------------------------------------- */
|
||||
|
@ -538,6 +537,98 @@ export const meetingFields = [
|
|||
},
|
||||
},
|
||||
options: [
|
||||
{
|
||||
displayName: 'Agenda',
|
||||
name: 'agenda',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Meeting agenda.',
|
||||
},
|
||||
{
|
||||
displayName: 'Alternative Hosts',
|
||||
name: 'alternative_hosts',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Alternative hosts email ids.',
|
||||
},
|
||||
{
|
||||
displayName: 'Audio',
|
||||
name: 'auto_recording',
|
||||
type: 'options',
|
||||
options: [
|
||||
{
|
||||
name: 'Both Telephony and VoiP',
|
||||
value: 'both',
|
||||
},
|
||||
{
|
||||
name: 'Telephony',
|
||||
value: 'telephony',
|
||||
},
|
||||
{
|
||||
name: 'VOIP',
|
||||
value: 'voip',
|
||||
},
|
||||
],
|
||||
default: 'both',
|
||||
description: 'Determine how participants can join audio portion of the meeting.',
|
||||
},
|
||||
{
|
||||
displayName: 'Auto recording',
|
||||
name: 'auto_recording',
|
||||
type: 'options',
|
||||
options: [
|
||||
{
|
||||
name: 'Record on local',
|
||||
value: 'local',
|
||||
},
|
||||
{
|
||||
name: 'Record on cloud',
|
||||
value: 'cloud',
|
||||
},
|
||||
{
|
||||
name: 'Disabled',
|
||||
value: 'none',
|
||||
},
|
||||
],
|
||||
default: 'none',
|
||||
description: 'Auto recording.',
|
||||
},
|
||||
|
||||
{
|
||||
displayName: 'Duration',
|
||||
name: 'duration',
|
||||
type: 'number',
|
||||
default: '',
|
||||
description: 'Duration.',
|
||||
},
|
||||
{
|
||||
displayName: 'Join before Host',
|
||||
name: 'join_before_host',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Allow participants to join the meeting before host starts it.',
|
||||
},
|
||||
{
|
||||
displayName: 'Host Meeting in China',
|
||||
name: 'cn_meeting',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Host Meeting in China.',
|
||||
},
|
||||
{
|
||||
displayName: 'Host Meeting in India',
|
||||
name: 'in_meeting',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Host Meeting in India.',
|
||||
},
|
||||
{
|
||||
displayName: 'Host Video',
|
||||
name: 'host_video',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Start video when host joins the meeting.',
|
||||
},
|
||||
{
|
||||
displayName: 'Occurence Id',
|
||||
name: 'occurenceId',
|
||||
|
@ -579,35 +670,11 @@ export const meetingFields = [
|
|||
description: 'Meeting type.'
|
||||
},
|
||||
{
|
||||
displayName: 'Start time',
|
||||
name: 'startTime',
|
||||
type: 'dateTime',
|
||||
default: '',
|
||||
description: 'Start time should be used only for scheduled or recurring meetings with fixed time',
|
||||
},
|
||||
{
|
||||
displayName: 'Duration',
|
||||
name: 'duration',
|
||||
type: 'number',
|
||||
default: '',
|
||||
description: 'Duration.',
|
||||
},
|
||||
{
|
||||
displayName: 'Timezone',
|
||||
name: 'timeZone',
|
||||
type: 'options',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: 'getTimezones',
|
||||
},
|
||||
default: '',
|
||||
description: `Time zone used in the response. The default is the time zone of the calendar.`,
|
||||
},
|
||||
{
|
||||
displayName: 'Schedule for',
|
||||
name: 'scheduleFor',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Schedule meeting for someone else from your account, provide their email id.',
|
||||
displayName: 'Muting before entry',
|
||||
name: 'mute_upon_entry',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Mute participants upon entry.',
|
||||
},
|
||||
{
|
||||
displayName: 'Password',
|
||||
|
@ -616,34 +683,6 @@ export const meetingFields = [
|
|||
default: '',
|
||||
description: 'Password to join the meeting with maximum 10 characters.',
|
||||
},
|
||||
{
|
||||
displayName: 'Agenda',
|
||||
name: 'agenda',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Meeting agenda.',
|
||||
},
|
||||
{
|
||||
displayName: 'Host Meeting in China',
|
||||
name: 'cn_meeting',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Host Meeting in China.',
|
||||
},
|
||||
{
|
||||
displayName: 'Host Meeting in India',
|
||||
name: 'in_meeting',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Host Meeting in India.',
|
||||
},
|
||||
{
|
||||
displayName: 'Host Video',
|
||||
name: 'host_video',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Start video when host joins the meeting.',
|
||||
},
|
||||
{
|
||||
displayName: 'Participant Video',
|
||||
name: 'participant_video',
|
||||
|
@ -651,76 +690,6 @@ export const meetingFields = [
|
|||
default: false,
|
||||
description: 'Start video when participant joins the meeting.',
|
||||
},
|
||||
{
|
||||
displayName: 'Join before Host',
|
||||
name: 'join_before_host',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Allow participants to join the meeting before host starts it.',
|
||||
},
|
||||
{
|
||||
displayName: 'Muting before entry',
|
||||
name: 'mute_upon_entry',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Mute participants upon entry.',
|
||||
},
|
||||
{
|
||||
displayName: 'Watermark',
|
||||
name: 'watermark',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Adds watermark when viewing a shared screen.',
|
||||
},
|
||||
{
|
||||
displayName: 'Alternative Hosts',
|
||||
name: 'alternative_hosts',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Alternative hosts email ids.',
|
||||
},
|
||||
{
|
||||
displayName: 'Auto recording',
|
||||
name: 'auto_recording',
|
||||
type: 'options',
|
||||
options: [
|
||||
{
|
||||
name: 'Record on local',
|
||||
value: 'local',
|
||||
},
|
||||
{
|
||||
name: 'Record on cloud',
|
||||
value: 'cloud',
|
||||
},
|
||||
{
|
||||
name: 'Disabled',
|
||||
value: 'none',
|
||||
},
|
||||
],
|
||||
default: 'none',
|
||||
description: 'Auto recording.',
|
||||
},
|
||||
{
|
||||
displayName: 'Audio',
|
||||
name: 'auto_recording',
|
||||
type: 'options',
|
||||
options: [
|
||||
{
|
||||
name: 'Both Telephony and VoiP',
|
||||
value: 'both',
|
||||
},
|
||||
{
|
||||
name: 'Telephony',
|
||||
value: 'telephony',
|
||||
},
|
||||
{
|
||||
name: 'VOIP',
|
||||
value: 'voip',
|
||||
},
|
||||
],
|
||||
default: 'both',
|
||||
description: 'Determine how participants can join audio portion of the meeting.',
|
||||
},
|
||||
{
|
||||
displayName: 'Registration type',
|
||||
name: 'registration_type',
|
||||
|
@ -742,6 +711,39 @@ export const meetingFields = [
|
|||
default: 1,
|
||||
description: 'Registration type. Used for recurring meetings with fixed time only',
|
||||
},
|
||||
{
|
||||
displayName: 'Schedule for',
|
||||
name: 'scheduleFor',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Schedule meeting for someone else from your account, provide their email id.',
|
||||
},
|
||||
{
|
||||
displayName: 'Start time',
|
||||
name: 'startTime',
|
||||
type: 'dateTime',
|
||||
default: '',
|
||||
description: 'Start time should be used only for scheduled or recurring meetings with fixed time',
|
||||
},
|
||||
{
|
||||
displayName: 'Timezone',
|
||||
name: 'timeZone',
|
||||
type: 'options',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: 'getTimezones',
|
||||
},
|
||||
default: '',
|
||||
description: `Time zone used in the response. The default is the time zone of the calendar.`,
|
||||
},
|
||||
{
|
||||
displayName: 'Watermark',
|
||||
name: 'watermark',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Adds watermark when viewing a shared screen.',
|
||||
},
|
||||
|
||||
|
||||
],
|
||||
},
|
||||
|
||||
|
|
|
@ -114,20 +114,6 @@ export const meetingRegistrantFields = [
|
|||
}
|
||||
},
|
||||
options: [
|
||||
{
|
||||
displayName: 'Occurence Ids',
|
||||
name: 'occurenceId',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Occurence IDs separated by comma.',
|
||||
},
|
||||
{
|
||||
displayName: 'Last Name',
|
||||
name: 'lastName',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Last Name.',
|
||||
},
|
||||
{
|
||||
displayName: 'Address',
|
||||
name: 'address',
|
||||
|
@ -143,11 +129,11 @@ export const meetingRegistrantFields = [
|
|||
description: 'Valid city of registrant.',
|
||||
},
|
||||
{
|
||||
displayName: 'State',
|
||||
name: 'state',
|
||||
displayName: 'Comments',
|
||||
name: 'comments',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Valid state of registrant.',
|
||||
description: 'Allows registrants to provide any questions they have.',
|
||||
},
|
||||
{
|
||||
displayName: 'Country',
|
||||
|
@ -157,25 +143,25 @@ export const meetingRegistrantFields = [
|
|||
description: 'Valid country of registrant.',
|
||||
},
|
||||
{
|
||||
displayName: 'Zip code',
|
||||
name: 'zip',
|
||||
displayName: 'Job title',
|
||||
name: 'job_title',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Valid zip-code of registrant.',
|
||||
description: 'Job title of registrant.',
|
||||
},
|
||||
{
|
||||
displayName: 'Phone Number',
|
||||
name: 'phone',
|
||||
displayName: 'Last Name',
|
||||
name: 'lastName',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Valid phone number of registrant.',
|
||||
description: 'Last Name.',
|
||||
},
|
||||
{
|
||||
displayName: 'Comments',
|
||||
name: 'comments',
|
||||
displayName: 'Occurence Ids',
|
||||
name: 'occurenceId',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Allows registrants to provide any questions they have.',
|
||||
description: 'Occurence IDs separated by comma.',
|
||||
},
|
||||
{
|
||||
displayName: 'Organization',
|
||||
|
@ -185,11 +171,11 @@ export const meetingRegistrantFields = [
|
|||
description: 'Organization of registrant.',
|
||||
},
|
||||
{
|
||||
displayName: 'Job title',
|
||||
name: 'job_title',
|
||||
displayName: 'Phone Number',
|
||||
name: 'phone',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Job title of registrant.',
|
||||
description: 'Valid phone number of registrant.',
|
||||
},
|
||||
{
|
||||
displayName: 'Purchasing time frame',
|
||||
|
@ -246,6 +232,21 @@ export const meetingRegistrantFields = [
|
|||
default: '',
|
||||
description: 'Role in purchase process.'
|
||||
},
|
||||
{
|
||||
displayName: 'State',
|
||||
name: 'state',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Valid state of registrant.',
|
||||
},
|
||||
{
|
||||
displayName: 'Zip code',
|
||||
name: 'zip',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Valid zip-code of registrant.',
|
||||
},
|
||||
|
||||
],
|
||||
},
|
||||
/* -------------------------------------------------------------------------- */
|
||||
|
|
|
@ -86,65 +86,6 @@ export const webinarFields = [
|
|||
}
|
||||
},
|
||||
options: [
|
||||
{
|
||||
displayName: 'Webinar topic',
|
||||
name: 'topic',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: `Webinar topic.`,
|
||||
},
|
||||
{
|
||||
displayName: 'Webinar type',
|
||||
name: 'type',
|
||||
type: 'options',
|
||||
options: [
|
||||
{
|
||||
name: 'Webinar',
|
||||
value: 5,
|
||||
},
|
||||
{
|
||||
name: 'Recurring webinar with no fixed time',
|
||||
value: 6,
|
||||
},
|
||||
{
|
||||
name: 'Recurring webinar with fixed time',
|
||||
value: 9,
|
||||
},
|
||||
],
|
||||
default: 5,
|
||||
description: 'Webinar type.'
|
||||
},
|
||||
{
|
||||
displayName: 'Start time',
|
||||
name: 'startTime',
|
||||
type: 'dateTime',
|
||||
default: '',
|
||||
description: 'Start time should be used only for scheduled or recurring webinar with fixed time',
|
||||
},
|
||||
{
|
||||
displayName: 'Duration',
|
||||
name: 'duration',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Duration.',
|
||||
},
|
||||
{
|
||||
displayName: 'Timezone',
|
||||
name: 'timeZone',
|
||||
type: 'options',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: 'getTimezones',
|
||||
},
|
||||
default: '',
|
||||
description: `Time zone used in the response. The default is the time zone of the calendar.`,
|
||||
},
|
||||
{
|
||||
displayName: 'Password',
|
||||
name: 'password',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Password to join the webinar with maximum 10 characters.',
|
||||
},
|
||||
{
|
||||
displayName: 'Agenda',
|
||||
name: 'agenda',
|
||||
|
@ -152,27 +93,6 @@ export const webinarFields = [
|
|||
default: '',
|
||||
description: 'Webinar agenda.',
|
||||
},
|
||||
{
|
||||
displayName: 'Host Video',
|
||||
name: 'host_video',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Start video when host joins the webinar.',
|
||||
},
|
||||
{
|
||||
displayName: 'Panelists Video',
|
||||
name: 'panelists_video',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Start video when panelists joins the webinar.',
|
||||
},
|
||||
{
|
||||
displayName: 'Practice Session',
|
||||
name: 'practice_session',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Enable Practice session.',
|
||||
},
|
||||
{
|
||||
displayName: 'Alternative Hosts',
|
||||
name: 'alternative_hosts',
|
||||
|
@ -201,27 +121,6 @@ export const webinarFields = [
|
|||
default: 2,
|
||||
description: 'Approval type.',
|
||||
},
|
||||
{
|
||||
displayName: 'Auto recording',
|
||||
name: 'auto_recording',
|
||||
type: 'options',
|
||||
options: [
|
||||
{
|
||||
name: 'Record on local',
|
||||
value: 'local',
|
||||
},
|
||||
{
|
||||
name: 'Record on cloud',
|
||||
value: 'cloud',
|
||||
},
|
||||
{
|
||||
name: 'Disabled',
|
||||
value: 'none',
|
||||
},
|
||||
],
|
||||
default: 'none',
|
||||
description: 'Auto recording.',
|
||||
},
|
||||
{
|
||||
displayName: 'Audio',
|
||||
name: 'audio',
|
||||
|
@ -244,6 +143,62 @@ export const webinarFields = [
|
|||
default: 'both',
|
||||
description: 'Determine how participants can join audio portion of the webinar.',
|
||||
},
|
||||
{
|
||||
displayName: 'Auto recording',
|
||||
name: 'auto_recording',
|
||||
type: 'options',
|
||||
options: [
|
||||
{
|
||||
name: 'Record on local',
|
||||
value: 'local',
|
||||
},
|
||||
{
|
||||
name: 'Record on cloud',
|
||||
value: 'cloud',
|
||||
},
|
||||
{
|
||||
name: 'Disabled',
|
||||
value: 'none',
|
||||
},
|
||||
],
|
||||
default: 'none',
|
||||
description: 'Auto recording.',
|
||||
},
|
||||
{
|
||||
displayName: 'Duration',
|
||||
name: 'duration',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Duration.',
|
||||
},
|
||||
{
|
||||
displayName: 'Host Video',
|
||||
name: 'host_video',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Start video when host joins the webinar.',
|
||||
},
|
||||
{
|
||||
displayName: 'Panelists Video',
|
||||
name: 'panelists_video',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Start video when panelists joins the webinar.',
|
||||
},
|
||||
{
|
||||
displayName: 'Password',
|
||||
name: 'password',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Password to join the webinar with maximum 10 characters.',
|
||||
},
|
||||
{
|
||||
displayName: 'Practice Session',
|
||||
name: 'practice_session',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Enable Practice session.',
|
||||
},
|
||||
{
|
||||
displayName: 'Registration type',
|
||||
name: 'registration_type',
|
||||
|
@ -265,6 +220,51 @@ export const webinarFields = [
|
|||
default: 1,
|
||||
description: 'Registration type. Used for recurring webinar with fixed time only',
|
||||
},
|
||||
{
|
||||
displayName: 'Start time',
|
||||
name: 'startTime',
|
||||
type: 'dateTime',
|
||||
default: '',
|
||||
description: 'Start time should be used only for scheduled or recurring webinar with fixed time',
|
||||
},
|
||||
{
|
||||
displayName: 'Timezone',
|
||||
name: 'timeZone',
|
||||
type: 'options',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: 'getTimezones',
|
||||
},
|
||||
default: '',
|
||||
description: `Time zone used in the response. The default is the time zone of the calendar.`,
|
||||
},
|
||||
{
|
||||
displayName: 'Webinar topic',
|
||||
name: 'topic',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: `Webinar topic.`,
|
||||
},
|
||||
{
|
||||
displayName: 'Webinar type',
|
||||
name: 'type',
|
||||
type: 'options',
|
||||
options: [
|
||||
{
|
||||
name: 'Webinar',
|
||||
value: 5,
|
||||
},
|
||||
{
|
||||
name: 'Recurring webinar with no fixed time',
|
||||
value: 6,
|
||||
},
|
||||
{
|
||||
name: 'Recurring webinar with fixed time',
|
||||
value: 9,
|
||||
},
|
||||
],
|
||||
default: 5,
|
||||
description: 'Webinar type.'
|
||||
},
|
||||
|
||||
],
|
||||
},
|
||||
|
@ -385,25 +385,6 @@ export const webinarFields = [
|
|||
default: 30,
|
||||
description: 'How many results to return.',
|
||||
},
|
||||
{
|
||||
displayName: 'Additional settings',
|
||||
name: 'additionalFields',
|
||||
type: 'collection',
|
||||
placeholder: 'Add Field',
|
||||
default: {},
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'getAll',
|
||||
|
||||
],
|
||||
resource: [
|
||||
'webinar',
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
},
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* webina:delete */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
|
@ -492,72 +473,6 @@ export const webinarFields = [
|
|||
}
|
||||
},
|
||||
options: [
|
||||
{
|
||||
displayName: 'Occurence Id',
|
||||
name: 'occurence_id',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: `Webinar occurence Id.`,
|
||||
},
|
||||
{
|
||||
displayName: 'Webinar topic',
|
||||
name: 'topic',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: `Webinar topic.`,
|
||||
},
|
||||
{
|
||||
displayName: 'Webinar type',
|
||||
name: 'type',
|
||||
type: 'options',
|
||||
options: [
|
||||
{
|
||||
name: 'Webinar',
|
||||
value: 5,
|
||||
},
|
||||
{
|
||||
name: 'Recurring webinar with no fixed time',
|
||||
value: 6,
|
||||
},
|
||||
{
|
||||
name: 'Recurring webinar with fixed time',
|
||||
value: 9,
|
||||
},
|
||||
],
|
||||
default: 5,
|
||||
description: 'Webinar type.'
|
||||
},
|
||||
{
|
||||
displayName: 'Start time',
|
||||
name: 'startTime',
|
||||
type: 'dateTime',
|
||||
default: '',
|
||||
description: 'Start time should be used only for scheduled or recurring webinar with fixed time',
|
||||
},
|
||||
{
|
||||
displayName: 'Duration',
|
||||
name: 'duration',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Duration.',
|
||||
},
|
||||
{
|
||||
displayName: 'Timezone',
|
||||
name: 'timeZone',
|
||||
type: 'options',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: 'getTimezones',
|
||||
},
|
||||
default: '',
|
||||
description: `Time zone used in the response. The default is the time zone of the calendar.`,
|
||||
},
|
||||
{
|
||||
displayName: 'Password',
|
||||
name: 'password',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Password to join the webinar with maximum 10 characters.',
|
||||
},
|
||||
{
|
||||
displayName: 'Agenda',
|
||||
name: 'agenda',
|
||||
|
@ -565,27 +480,6 @@ export const webinarFields = [
|
|||
default: '',
|
||||
description: 'Webinar agenda.',
|
||||
},
|
||||
{
|
||||
displayName: 'Host Video',
|
||||
name: 'host_video',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Start video when host joins the webinar.',
|
||||
},
|
||||
{
|
||||
displayName: 'Panelists Video',
|
||||
name: 'panelists_video',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Start video when panelists joins the webinar.',
|
||||
},
|
||||
{
|
||||
displayName: 'Practice Session',
|
||||
name: 'practice_session',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Enable Practice session.',
|
||||
},
|
||||
{
|
||||
displayName: 'Alternative Hosts',
|
||||
name: 'alternative_hosts',
|
||||
|
@ -657,6 +551,48 @@ export const webinarFields = [
|
|||
default: 'both',
|
||||
description: 'Determine how participants can join audio portion of the webinar.',
|
||||
},
|
||||
{
|
||||
displayName: 'Duration',
|
||||
name: 'duration',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Duration.',
|
||||
},
|
||||
{
|
||||
displayName: 'Host Video',
|
||||
name: 'host_video',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Start video when host joins the webinar.',
|
||||
},
|
||||
{
|
||||
displayName: 'Occurence Id',
|
||||
name: 'occurence_id',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: `Webinar occurence Id.`,
|
||||
},
|
||||
{
|
||||
displayName: 'Password',
|
||||
name: 'password',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Password to join the webinar with maximum 10 characters.',
|
||||
},
|
||||
{
|
||||
displayName: 'Panelists Video',
|
||||
name: 'panelists_video',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Start video when panelists joins the webinar.',
|
||||
},
|
||||
{
|
||||
displayName: 'Practice Session',
|
||||
name: 'practice_session',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Enable Practice session.',
|
||||
},
|
||||
{
|
||||
displayName: 'Registration type',
|
||||
name: 'registration_type',
|
||||
|
@ -678,7 +614,51 @@ export const webinarFields = [
|
|||
default: 1,
|
||||
description: 'Registration type. Used for recurring webinars with fixed time only',
|
||||
},
|
||||
|
||||
{
|
||||
displayName: 'Start time',
|
||||
name: 'startTime',
|
||||
type: 'dateTime',
|
||||
default: '',
|
||||
description: 'Start time should be used only for scheduled or recurring webinar with fixed time',
|
||||
},
|
||||
{
|
||||
displayName: 'Timezone',
|
||||
name: 'timeZone',
|
||||
type: 'options',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: 'getTimezones',
|
||||
},
|
||||
default: '',
|
||||
description: `Time zone used in the response. The default is the time zone of the calendar.`,
|
||||
},
|
||||
{
|
||||
displayName: 'Webinar topic',
|
||||
name: 'topic',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: `Webinar topic.`,
|
||||
},
|
||||
{
|
||||
displayName: 'Webinar type',
|
||||
name: 'type',
|
||||
type: 'options',
|
||||
options: [
|
||||
{
|
||||
name: 'Webinar',
|
||||
value: 5,
|
||||
},
|
||||
{
|
||||
name: 'Recurring webinar with no fixed time',
|
||||
value: 6,
|
||||
},
|
||||
{
|
||||
name: 'Recurring webinar with fixed time',
|
||||
value: 9,
|
||||
},
|
||||
],
|
||||
default: 5,
|
||||
description: 'Webinar type.'
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
|
|
|
@ -183,12 +183,16 @@ export class Zoom implements INodeType {
|
|||
'additionalFields',
|
||||
i
|
||||
) as IDataObject;
|
||||
if (additionalFields.showPreviousOccurences)
|
||||
if (additionalFields.showPreviousOccurences) {
|
||||
qs.show_previous_occurences = additionalFields.showPreviousOccurences as boolean;
|
||||
|
||||
if (additionalFields.occurenceId)
|
||||
}
|
||||
|
||||
if (additionalFields.occurenceId) {
|
||||
qs.occurence_id = additionalFields.occurenceId as string;
|
||||
|
||||
}
|
||||
|
||||
responseData = await zoomApiRequest.call(
|
||||
this,
|
||||
'GET',
|
||||
|
@ -218,12 +222,16 @@ export class Zoom implements INodeType {
|
|||
'additionalFields',
|
||||
i
|
||||
) as IDataObject;
|
||||
if (additionalFields.scheduleForReminder)
|
||||
if (additionalFields.scheduleForReminder) {
|
||||
qs.schedule_for_reminder = additionalFields.scheduleForReminder as boolean;
|
||||
|
||||
if (additionalFields.occurenceId)
|
||||
}
|
||||
|
||||
if (additionalFields.occurenceId) {
|
||||
qs.occurence_id = additionalFields.occurenceId;
|
||||
|
||||
}
|
||||
|
||||
responseData = await zoomApiRequest.call(
|
||||
this,
|
||||
'DELETE',
|
||||
|
@ -669,12 +677,16 @@ export class Zoom implements INodeType {
|
|||
'additionalFields',
|
||||
i
|
||||
) as IDataObject;
|
||||
if (additionalFields.showPreviousOccurences)
|
||||
if (additionalFields.showPreviousOccurences) {
|
||||
qs.show_previous_occurences = additionalFields.showPreviousOccurences as boolean;
|
||||
|
||||
if (additionalFields.occurenceId)
|
||||
}
|
||||
|
||||
if (additionalFields.occurenceId) {
|
||||
qs.occurence_id = additionalFields.occurenceId as string;
|
||||
|
||||
}
|
||||
|
||||
responseData = await zoomApiRequest.call(
|
||||
this,
|
||||
'GET',
|
||||
|
@ -705,9 +717,11 @@ export class Zoom implements INodeType {
|
|||
) as IDataObject;
|
||||
|
||||
|
||||
if (additionalFields.occurenceId)
|
||||
if (additionalFields.occurenceId) {
|
||||
qs.occurence_id = additionalFields.occurenceId;
|
||||
|
||||
}
|
||||
|
||||
responseData = await zoomApiRequest.call(
|
||||
this,
|
||||
'DELETE',
|
||||
|
|
Loading…
Reference in a new issue