mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 14:44:05 -08:00
fix webinar resource
This commit is contained in:
parent
5829540083
commit
7fea380af5
|
@ -66,7 +66,7 @@ export const webinarFields = [
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
description: 'User ID or email address of user.',
|
description: 'User ID or email ID.',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Additional Fields',
|
displayName: 'Additional Fields',
|
||||||
|
@ -95,14 +95,14 @@ export const webinarFields = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
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: 'Approval Type',
|
displayName: 'Approval Type',
|
||||||
name: 'approval_type',
|
name: 'approvalType',
|
||||||
type: 'options',
|
type: 'options',
|
||||||
options: [
|
options: [
|
||||||
{
|
{
|
||||||
|
@ -145,7 +145,7 @@ export const webinarFields = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Auto Recording',
|
displayName: 'Auto Recording',
|
||||||
name: 'auto_recording',
|
name: 'autoRecording',
|
||||||
type: 'options',
|
type: 'options',
|
||||||
options: [
|
options: [
|
||||||
{
|
{
|
||||||
|
@ -173,14 +173,14 @@ export const webinarFields = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
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 webinar.',
|
description: 'Start video when host joins the webinar.',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Panelists Video',
|
displayName: 'Panelists Video',
|
||||||
name: 'panelists_video',
|
name: 'panelistsVideo',
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
default: false,
|
default: false,
|
||||||
description: 'Start video when panelists joins the webinar.',
|
description: 'Start video when panelists joins the webinar.',
|
||||||
|
@ -194,14 +194,14 @@ export const webinarFields = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Practice Session',
|
displayName: 'Practice Session',
|
||||||
name: 'practice_session',
|
name: 'practiceSession',
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
default: false,
|
default: false,
|
||||||
description: 'Enable Practice session.',
|
description: 'Enable Practice session.',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Registration Type',
|
displayName: 'Registration Type',
|
||||||
name: 'registration_type',
|
name: 'registrationType',
|
||||||
type: 'options',
|
type: 'options',
|
||||||
options: [
|
options: [
|
||||||
{
|
{
|
||||||
|
@ -438,8 +438,8 @@ export const webinarFields = [
|
||||||
/* webinar:update */
|
/* webinar:update */
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
{
|
{
|
||||||
displayName: 'User ID',
|
displayName: 'Webinar ID',
|
||||||
name: 'userId',
|
name: 'webinarId',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
required: true,
|
required: true,
|
||||||
|
|
|
@ -603,30 +603,34 @@ 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.panelists_video) {
|
if (additionalFields.panelistsVideo) {
|
||||||
settings.panelists_video = additionalFields.panelists_video as boolean;
|
settings.panelists_video = additionalFields.panelistsVideo as boolean;
|
||||||
|
|
||||||
}
|
}
|
||||||
if (additionalFields.practice_session) {
|
if (additionalFields.hostVideo) {
|
||||||
settings.practice_session = additionalFields.practice_session as boolean;
|
settings.host_video = additionalFields.hostVideo as boolean;
|
||||||
|
|
||||||
}
|
}
|
||||||
if (additionalFields.auto_recording) {
|
if (additionalFields.practiceSession) {
|
||||||
settings.auto_recording = additionalFields.auto_recording as string;
|
settings.practice_session = additionalFields.practiceSession as boolean;
|
||||||
|
|
||||||
|
}
|
||||||
|
if (additionalFields.autoRecording) {
|
||||||
|
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;
|
||||||
|
|
||||||
}
|
}
|
||||||
if (additionalFields.approval_type) {
|
if (additionalFields.approvalType) {
|
||||||
settings.approval_type = additionalFields.approval_type as number;
|
settings.approval_type = additionalFields.approvalType as number;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -823,7 +827,7 @@ export class Zoom implements INodeType {
|
||||||
responseData = await zoomApiRequest.call(
|
responseData = await zoomApiRequest.call(
|
||||||
this,
|
this,
|
||||||
'PATCH',
|
'PATCH',
|
||||||
`/users/${webinarId}/webinars`,
|
`webinars/${webinarId}`,
|
||||||
body,
|
body,
|
||||||
qs
|
qs
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue