refactor code

This commit is contained in:
shraddha shaligram 2020-06-23 12:14:04 -07:00
parent 815f823f5a
commit 807db166fd
4 changed files with 489 additions and 492 deletions

View file

@ -86,77 +86,6 @@ export const meetingFields = [
} }
}, },
options: [ 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', displayName: 'Agenda',
name: 'agenda', name: 'agenda',
@ -164,55 +93,6 @@ export const meetingFields = [
default: '', default: '',
description: 'Meeting agenda.', 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', displayName: 'Alternative Hosts',
name: 'alternative_hosts', name: 'alternative_hosts',
@ -263,6 +143,95 @@ export const meetingFields = [
default: 'both', default: 'both',
description: 'Determine how participants can join audio portion of the meeting.', 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', displayName: 'Registration type',
name: 'registration_type', name: 'registration_type',
@ -284,7 +253,37 @@ export const meetingFields = [
default: 1, default: 1,
description: 'Registration type. Used for recurring meetings with fixed time only', 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: [ 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', displayName: 'Occurence Id',
name: 'occurenceId', name: 'occurenceId',
@ -579,35 +670,11 @@ export const meetingFields = [
description: 'Meeting type.' description: 'Meeting type.'
}, },
{ {
displayName: 'Start time', displayName: 'Muting before entry',
name: 'startTime', name: 'mute_upon_entry',
type: 'dateTime', type: 'boolean',
default: '', default: false,
description: 'Start time should be used only for scheduled or recurring meetings with fixed time', description: 'Mute participants upon entry.',
},
{
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', displayName: 'Password',
@ -616,34 +683,6 @@ export const meetingFields = [
default: '', default: '',
description: 'Password to join the meeting with maximum 10 characters.', 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', displayName: 'Participant Video',
name: 'participant_video', name: 'participant_video',
@ -651,76 +690,6 @@ export const meetingFields = [
default: false, default: false,
description: 'Start video when participant joins the meeting.', 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', displayName: 'Registration type',
name: 'registration_type', name: 'registration_type',
@ -742,6 +711,39 @@ export const meetingFields = [
default: 1, default: 1,
description: 'Registration type. Used for recurring meetings with fixed time only', 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.',
},
], ],
}, },

View file

@ -114,20 +114,6 @@ export const meetingRegistrantFields = [
} }
}, },
options: [ 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', displayName: 'Address',
name: 'address', name: 'address',
@ -143,11 +129,11 @@ export const meetingRegistrantFields = [
description: 'Valid city of registrant.', description: 'Valid city of registrant.',
}, },
{ {
displayName: 'State', displayName: 'Comments',
name: 'state', name: 'comments',
type: 'string', type: 'string',
default: '', default: '',
description: 'Valid state of registrant.', description: 'Allows registrants to provide any questions they have.',
}, },
{ {
displayName: 'Country', displayName: 'Country',
@ -157,25 +143,25 @@ export const meetingRegistrantFields = [
description: 'Valid country of registrant.', description: 'Valid country of registrant.',
}, },
{ {
displayName: 'Zip code', displayName: 'Job title',
name: 'zip', name: 'job_title',
type: 'string', type: 'string',
default: '', default: '',
description: 'Valid zip-code of registrant.', description: 'Job title of registrant.',
}, },
{ {
displayName: 'Phone Number', displayName: 'Last Name',
name: 'phone', name: 'lastName',
type: 'string', type: 'string',
default: '', default: '',
description: 'Valid phone number of registrant.', description: 'Last Name.',
}, },
{ {
displayName: 'Comments', displayName: 'Occurence Ids',
name: 'comments', name: 'occurenceId',
type: 'string', type: 'string',
default: '', default: '',
description: 'Allows registrants to provide any questions they have.', description: 'Occurence IDs separated by comma.',
}, },
{ {
displayName: 'Organization', displayName: 'Organization',
@ -185,11 +171,11 @@ export const meetingRegistrantFields = [
description: 'Organization of registrant.', description: 'Organization of registrant.',
}, },
{ {
displayName: 'Job title', displayName: 'Phone Number',
name: 'job_title', name: 'phone',
type: 'string', type: 'string',
default: '', default: '',
description: 'Job title of registrant.', description: 'Valid phone number of registrant.',
}, },
{ {
displayName: 'Purchasing time frame', displayName: 'Purchasing time frame',
@ -246,6 +232,21 @@ export const meetingRegistrantFields = [
default: '', default: '',
description: 'Role in purchase process.' 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.',
},
], ],
}, },
/* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- */

View file

@ -86,65 +86,6 @@ export const webinarFields = [
} }
}, },
options: [ 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', displayName: 'Agenda',
name: 'agenda', name: 'agenda',
@ -152,27 +93,6 @@ export const webinarFields = [
default: '', default: '',
description: 'Webinar agenda.', 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', displayName: 'Alternative Hosts',
name: 'alternative_hosts', name: 'alternative_hosts',
@ -201,27 +121,6 @@ export const webinarFields = [
default: 2, default: 2,
description: 'Approval type.', 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', displayName: 'Audio',
name: 'audio', name: 'audio',
@ -244,6 +143,62 @@ export const webinarFields = [
default: 'both', default: 'both',
description: 'Determine how participants can join audio portion of the webinar.', 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', displayName: 'Registration type',
name: 'registration_type', name: 'registration_type',
@ -265,6 +220,51 @@ export const webinarFields = [
default: 1, default: 1,
description: 'Registration type. Used for recurring webinar with fixed time only', 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, default: 30,
description: 'How many results to return.', 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 */ /* webina:delete */
/* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- */
@ -492,72 +473,6 @@ export const webinarFields = [
} }
}, },
options: [ 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', displayName: 'Agenda',
name: 'agenda', name: 'agenda',
@ -565,27 +480,6 @@ export const webinarFields = [
default: '', default: '',
description: 'Webinar agenda.', 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', displayName: 'Alternative Hosts',
name: 'alternative_hosts', name: 'alternative_hosts',
@ -657,6 +551,48 @@ export const webinarFields = [
default: 'both', default: 'both',
description: 'Determine how participants can join audio portion of the webinar.', 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', displayName: 'Registration type',
name: 'registration_type', name: 'registration_type',
@ -678,7 +614,51 @@ export const webinarFields = [
default: 1, default: 1,
description: 'Registration type. Used for recurring webinars with fixed time only', 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.'
},
], ],
}, },

View file

@ -183,12 +183,16 @@ export class Zoom implements INodeType {
'additionalFields', 'additionalFields',
i i
) as IDataObject; ) as IDataObject;
if (additionalFields.showPreviousOccurences) if (additionalFields.showPreviousOccurences) {
qs.show_previous_occurences = additionalFields.showPreviousOccurences as boolean; qs.show_previous_occurences = additionalFields.showPreviousOccurences as boolean;
if (additionalFields.occurenceId) }
if (additionalFields.occurenceId) {
qs.occurence_id = additionalFields.occurenceId as string; qs.occurence_id = additionalFields.occurenceId as string;
}
responseData = await zoomApiRequest.call( responseData = await zoomApiRequest.call(
this, this,
'GET', 'GET',
@ -218,12 +222,16 @@ export class Zoom implements INodeType {
'additionalFields', 'additionalFields',
i i
) as IDataObject; ) as IDataObject;
if (additionalFields.scheduleForReminder) if (additionalFields.scheduleForReminder) {
qs.schedule_for_reminder = additionalFields.scheduleForReminder as boolean; qs.schedule_for_reminder = additionalFields.scheduleForReminder as boolean;
if (additionalFields.occurenceId) }
if (additionalFields.occurenceId) {
qs.occurence_id = additionalFields.occurenceId; qs.occurence_id = additionalFields.occurenceId;
}
responseData = await zoomApiRequest.call( responseData = await zoomApiRequest.call(
this, this,
'DELETE', 'DELETE',
@ -669,12 +677,16 @@ export class Zoom implements INodeType {
'additionalFields', 'additionalFields',
i i
) as IDataObject; ) as IDataObject;
if (additionalFields.showPreviousOccurences) if (additionalFields.showPreviousOccurences) {
qs.show_previous_occurences = additionalFields.showPreviousOccurences as boolean; qs.show_previous_occurences = additionalFields.showPreviousOccurences as boolean;
if (additionalFields.occurenceId) }
if (additionalFields.occurenceId) {
qs.occurence_id = additionalFields.occurenceId as string; qs.occurence_id = additionalFields.occurenceId as string;
}
responseData = await zoomApiRequest.call( responseData = await zoomApiRequest.call(
this, this,
'GET', 'GET',
@ -705,9 +717,11 @@ export class Zoom implements INodeType {
) as IDataObject; ) as IDataObject;
if (additionalFields.occurenceId) if (additionalFields.occurenceId) {
qs.occurence_id = additionalFields.occurenceId; qs.occurence_id = additionalFields.occurenceId;
}
responseData = await zoomApiRequest.call( responseData = await zoomApiRequest.call(
this, this,
'DELETE', 'DELETE',