mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
fix registrants bug
This commit is contained in:
parent
e3cf858ebc
commit
5829540083
|
@ -66,7 +66,7 @@ export const meetingFields = [
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
description: 'User ID or email address of user.',
|
description: 'User ID or Email Address.',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Additional Fields',
|
displayName: 'Additional Fields',
|
||||||
|
@ -95,22 +95,22 @@ export const meetingFields = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Alternative Hosts',
|
displayName: 'Alternative Hosts',
|
||||||
name: 'alternative_hosts',
|
name: 'alternativeHosts',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
description: 'Alternative hosts email IDs.',
|
description: 'Alternative hosts email IDs.',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Auto Recording',
|
displayName: 'Auto Recording',
|
||||||
name: 'auto_recording',
|
name: 'autoRecording',
|
||||||
type: 'options',
|
type: 'options',
|
||||||
options: [
|
options: [
|
||||||
{
|
{
|
||||||
name: 'Record on local',
|
name: 'Record on Local',
|
||||||
value: 'local',
|
value: 'local',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Record on cloud',
|
name: 'Record on Cloud',
|
||||||
value: 'cloud',
|
value: 'cloud',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -152,28 +152,28 @@ export const meetingFields = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Host Meeting in China',
|
displayName: 'Host Meeting in China',
|
||||||
name: 'cn_meeting',
|
name: 'cnMeeting',
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
default: false,
|
default: false,
|
||||||
description: 'Host Meeting in China.',
|
description: 'Host Meeting in China.',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Host Meeting in India',
|
displayName: 'Host Meeting in India',
|
||||||
name: 'in_meeting',
|
name: 'inMeeting',
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
default: false,
|
default: false,
|
||||||
description: 'Host Meeting in India.',
|
description: 'Host Meeting in India.',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Host Video',
|
displayName: 'Host Video',
|
||||||
name: 'host_video',
|
name: 'hostVideo',
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
default: false,
|
default: false,
|
||||||
description: 'Start video when host joins the meeting.',
|
description: 'Start video when host joins the meeting.',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Join before Host',
|
displayName: 'Join Before Host',
|
||||||
name: 'join_before_host',
|
name: 'joinBeforeHost',
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
default: false,
|
default: false,
|
||||||
description: 'Allow participants to join the meeting before host starts it.',
|
description: 'Allow participants to join the meeting before host starts it.',
|
||||||
|
@ -213,14 +213,14 @@ export const meetingFields = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Muting before entry',
|
displayName: 'Muting before entry',
|
||||||
name: 'mute_upon_entry',
|
name: 'muteUponEntry',
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
default: false,
|
default: false,
|
||||||
description: 'Mute participants upon entry.',
|
description: 'Mute participants upon entry.',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Participant Video',
|
displayName: 'Participant Video',
|
||||||
name: 'participant_video',
|
name: 'participantVideo',
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
default: false,
|
default: false,
|
||||||
description: 'Start video when participant joins the meeting.',
|
description: 'Start video when participant joins the meeting.',
|
||||||
|
@ -234,7 +234,7 @@ export const meetingFields = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Registration Type',
|
displayName: 'Registration Type',
|
||||||
name: 'registration_type',
|
name: 'registrationType',
|
||||||
type: 'options',
|
type: 'options',
|
||||||
options: [
|
options: [
|
||||||
{
|
{
|
||||||
|
@ -546,14 +546,14 @@ export const meetingFields = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Alternative Hosts',
|
displayName: 'Alternative Hosts',
|
||||||
name: 'alternative_hosts',
|
name: 'alternativeHosts',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
description: 'Alternative hosts email IDs.',
|
description: 'Alternative hosts email IDs.',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Audio',
|
displayName: 'Audio',
|
||||||
name: 'auto_recording',
|
name: 'audio',
|
||||||
type: 'options',
|
type: 'options',
|
||||||
options: [
|
options: [
|
||||||
{
|
{
|
||||||
|
@ -574,7 +574,7 @@ export const meetingFields = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Auto Recording',
|
displayName: 'Auto Recording',
|
||||||
name: 'auto_recording',
|
name: 'autoRecording',
|
||||||
type: 'options',
|
type: 'options',
|
||||||
options: [
|
options: [
|
||||||
{
|
{
|
||||||
|
@ -603,28 +603,28 @@ export const meetingFields = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Join Before Host',
|
displayName: 'Join Before Host',
|
||||||
name: 'join_before_host',
|
name: 'joinBeforeHost',
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
default: false,
|
default: false,
|
||||||
description: 'Allow participants to join the meeting before host starts it.',
|
description: 'Allow participants to join the meeting before host starts it.',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Host Meeting in China',
|
displayName: 'Host Meeting in China',
|
||||||
name: 'cn_meeting',
|
name: 'cnMeeting',
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
default: false,
|
default: false,
|
||||||
description: 'Host Meeting in China.',
|
description: 'Host Meeting in China.',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Host Meeting in India',
|
displayName: 'Host Meeting in India',
|
||||||
name: 'in_meeting',
|
name: 'inMeeting',
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
default: false,
|
default: false,
|
||||||
description: 'Host Meeting in India.',
|
description: 'Host Meeting in India.',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Host Video',
|
displayName: 'Host Video',
|
||||||
name: 'host_video',
|
name: 'hostVideo',
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
default: false,
|
default: false,
|
||||||
description: 'Start video when host joins the meeting.',
|
description: 'Start video when host joins the meeting.',
|
||||||
|
@ -671,7 +671,7 @@ export const meetingFields = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Muting Before Entry',
|
displayName: 'Muting Before Entry',
|
||||||
name: 'mute_upon_entry',
|
name: 'muteUponEntry',
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
default: false,
|
default: false,
|
||||||
description: 'Mute participants upon entry.',
|
description: 'Mute participants upon entry.',
|
||||||
|
@ -685,14 +685,14 @@ export const meetingFields = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Participant Video',
|
displayName: 'Participant Video',
|
||||||
name: 'participant_video',
|
name: 'participantVideo',
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
default: false,
|
default: false,
|
||||||
description: 'Start video when participant joins the meeting.',
|
description: 'Start video when participant joins the meeting.',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Registration Type',
|
displayName: 'Registration Type',
|
||||||
name: 'registration_type',
|
name: 'registrationType',
|
||||||
type: 'options',
|
type: 'options',
|
||||||
options: [
|
options: [
|
||||||
{
|
{
|
||||||
|
|
|
@ -74,7 +74,7 @@ export const meetingRegistrantFields = [
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
description: 'Valid email-id of registrant.',
|
description: 'Valid Email-ID.',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'First Name',
|
displayName: 'First Name',
|
||||||
|
@ -142,7 +142,7 @@ export const meetingRegistrantFields = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Job Title',
|
displayName: 'Job Title',
|
||||||
name: 'job_title',
|
name: 'jobTitle',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
description: 'Job title of registrant.',
|
description: 'Job title of registrant.',
|
||||||
|
@ -177,7 +177,7 @@ export const meetingRegistrantFields = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Purchasing Time Frame',
|
displayName: 'Purchasing Time Frame',
|
||||||
name: 'purchasing_time_frame',
|
name: 'purchasingTimeFrame',
|
||||||
type: 'options',
|
type: 'options',
|
||||||
options: [
|
options: [
|
||||||
{
|
{
|
||||||
|
@ -206,7 +206,7 @@ export const meetingRegistrantFields = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Role in Purchase Process',
|
displayName: 'Role in Purchase Process',
|
||||||
name: 'role_in_purchase_process',
|
name: 'roleInPurchaseProcess',
|
||||||
type: 'options',
|
type: 'options',
|
||||||
options: [
|
options: [
|
||||||
{
|
{
|
||||||
|
@ -329,7 +329,7 @@ export const meetingRegistrantFields = [
|
||||||
options: [
|
options: [
|
||||||
{
|
{
|
||||||
displayName: 'Occurrence ID',
|
displayName: 'Occurrence ID',
|
||||||
name: 'occurrence_id',
|
name: 'occurrenceId',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
description: `Occurrence ID.`,
|
description: `Occurrence ID.`,
|
||||||
|
|
|
@ -255,23 +255,23 @@ export class Zoom implements INodeType {
|
||||||
i
|
i
|
||||||
) as IDataObject;
|
) as IDataObject;
|
||||||
const settings: Settings = {};
|
const settings: Settings = {};
|
||||||
if (additionalFields.cn_meeting) {
|
if (additionalFields.cnMeeting) {
|
||||||
settings.cn_meeting = additionalFields.cn_meeting as boolean;
|
settings.cn_meeting = additionalFields.cnMeeting as boolean;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (additionalFields.in_meeting) {
|
if (additionalFields.inMeeting) {
|
||||||
settings.in_meeting = additionalFields.in_meeting as boolean;
|
settings.in_meeting = additionalFields.inMeeting as boolean;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (additionalFields.join_before_host) {
|
if (additionalFields.joinBeforeHost) {
|
||||||
settings.join_before_host = additionalFields.join_before_host as boolean;
|
settings.join_before_host = additionalFields.joinBeforeHost as boolean;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (additionalFields.mute_upon_entry) {
|
if (additionalFields.muteUponEntry) {
|
||||||
settings.mute_upon_entry = additionalFields.mute_upon_entry as boolean;
|
settings.mute_upon_entry = additionalFields.muteUponEntry as boolean;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -285,28 +285,28 @@ export class Zoom implements INodeType {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (additionalFields.alternative_hosts) {
|
if (additionalFields.alternativeHosts) {
|
||||||
settings.alternative_hosts = additionalFields.alternative_hosts as string;
|
settings.alternative_hosts = additionalFields.alternativeHosts as string;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (additionalFields.participant_video) {
|
if (additionalFields.participantVideo) {
|
||||||
settings.participant_video = additionalFields.participant_video as boolean;
|
settings.participant_video = additionalFields.participantVideo as boolean;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (additionalFields.host_video) {
|
if (additionalFields.hostVideo) {
|
||||||
settings.host_video = additionalFields.host_video as boolean;
|
settings.host_video = additionalFields.hostVideo as boolean;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (additionalFields.auto_recording) {
|
if (additionalFields.autoRecording) {
|
||||||
settings.auto_recording = additionalFields.auto_recording as string;
|
settings.auto_recording = additionalFields.autoRecording as string;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (additionalFields.registration_type) {
|
if (additionalFields.registrationType) {
|
||||||
settings.registration_type = additionalFields.registration_type as number;
|
settings.registration_type = additionalFields.registrationType as number;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -374,23 +374,23 @@ export class Zoom implements INodeType {
|
||||||
qs.occurrence_id = additionalFields.occurrenceId as string;
|
qs.occurrence_id = additionalFields.occurrenceId as string;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (additionalFields.cn_meeting) {
|
if (additionalFields.cnMeeting) {
|
||||||
settings.cn_meeting = additionalFields.cn_meeting as boolean;
|
settings.cn_meeting = additionalFields.cnMeeting as boolean;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (additionalFields.in_meeting) {
|
if (additionalFields.inMeeting) {
|
||||||
settings.in_meeting = additionalFields.in_meeting as boolean;
|
settings.in_meeting = additionalFields.inMeeting as boolean;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (additionalFields.join_before_host) {
|
if (additionalFields.joinBeforeHost) {
|
||||||
settings.join_before_host = additionalFields.join_before_host as boolean;
|
settings.join_before_host = additionalFields.joinBeforeHost as boolean;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (additionalFields.mute_upon_entry) {
|
if (additionalFields.muteUponEntry) {
|
||||||
settings.mute_upon_entry = additionalFields.mute_upon_entry as boolean;
|
settings.mute_upon_entry = additionalFields.muteUponEntry as boolean;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -404,28 +404,28 @@ export class Zoom implements INodeType {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (additionalFields.alternative_hosts) {
|
if (additionalFields.alternativeHosts) {
|
||||||
settings.alternative_hosts = additionalFields.alternative_hosts as string;
|
settings.alternative_hosts = additionalFields.alternativeHosts as string;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (additionalFields.participant_video) {
|
if (additionalFields.participantVideo) {
|
||||||
settings.participant_video = additionalFields.participant_video as boolean;
|
settings.participant_video = additionalFields.participantVideo as boolean;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (additionalFields.host_video) {
|
if (additionalFields.hostVideo) {
|
||||||
settings.host_video = additionalFields.host_video as boolean;
|
settings.host_video = additionalFields.hostVideo as boolean;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (additionalFields.auto_recording) {
|
if (additionalFields.autoRecording) {
|
||||||
settings.auto_recording = additionalFields.auto_recording as string;
|
settings.auto_recording = additionalFields.autoRecording as string;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (additionalFields.registration_type) {
|
if (additionalFields.registrationType) {
|
||||||
settings.registration_type = additionalFields.registration_type as number;
|
settings.registration_type = additionalFields.registrationType as number;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -525,14 +525,14 @@ export class Zoom implements INodeType {
|
||||||
if (additionalFields.org) {
|
if (additionalFields.org) {
|
||||||
body.org = additionalFields.org as string;
|
body.org = additionalFields.org as string;
|
||||||
}
|
}
|
||||||
if (additionalFields.job_title) {
|
if (additionalFields.jobTitle) {
|
||||||
body.job_title = additionalFields.job_title as string;
|
body.job_title = additionalFields.jobTitle as string;
|
||||||
}
|
}
|
||||||
if (additionalFields.purchasing_time_frame) {
|
if (additionalFields.purchasingTimeFrame) {
|
||||||
body.purchasing_time_frame = additionalFields.purchasing_time_frame as string;
|
body.purchasing_time_frame = additionalFields.purchasingTimeFrame as string;
|
||||||
}
|
}
|
||||||
if (additionalFields.role_in_purchase_process) {
|
if (additionalFields.roleInPurchaseProcess) {
|
||||||
body.role_in_purchase_process = additionalFields.role_in_purchase_process as string;
|
body.role_in_purchase_process = additionalFields.roleInPurchaseProcess as string;
|
||||||
}
|
}
|
||||||
responseData = await zoomApiRequest.call(
|
responseData = await zoomApiRequest.call(
|
||||||
this,
|
this,
|
||||||
|
@ -575,6 +575,9 @@ export class Zoom implements INodeType {
|
||||||
if (additionalFields.occurenceId) {
|
if (additionalFields.occurenceId) {
|
||||||
qs.occurrence_id = additionalFields.occurrenceId as string;
|
qs.occurrence_id = additionalFields.occurrenceId as string;
|
||||||
}
|
}
|
||||||
|
if (additionalFields.action) {
|
||||||
|
body.action = additionalFields.action as string;
|
||||||
|
}
|
||||||
responseData = await zoomApiRequest.call(
|
responseData = await zoomApiRequest.call(
|
||||||
this,
|
this,
|
||||||
'PUT',
|
'PUT',
|
||||||
|
|
Loading…
Reference in a new issue