first commit
Security: Sync from Public / sync-from-public (push) Has been cancelled
Test: Benchmark Nightly / build (push) Has been cancelled
Test: Benchmark Nightly / Notify Cats on failure (push) Has been cancelled
CI: Python / Checks (push) Has been cancelled
Test: Evals Python / Workflow Comparison Python (push) Has been cancelled
Util: Check Docs URLs / check-docs-urls (push) Has been cancelled
Test: Visual Storybook / Cloudflare Pages (push) Has been cancelled
Test: E2E Performance / build-and-test-performance (push) Has been cancelled
Test: Workflows Nightly / Run Workflow Tests (push) Has been cancelled
Util: Cleanup CI Docker Images / Delete stale CI images (push) Has been cancelled
Test: Benchmark Destroy Env / build (push) Has been cancelled
Util: Update Node Popularity / update-popularity (push) Has been cancelled
Test: E2E Coverage Weekly / Coverage Tests (push) Has been cancelled

This commit is contained in:
2026-03-17 16:22:57 +03:30
commit 3d5eaf9445
15349 changed files with 2847338 additions and 0 deletions
@@ -0,0 +1,80 @@
import type {
IExecuteFunctions,
ILoadOptionsFunctions,
IDataObject,
JsonObject,
IHttpRequestMethods,
IRequestOptions,
} from 'n8n-workflow';
import { NodeApiError } from 'n8n-workflow';
export async function zoomApiRequest(
this: IExecuteFunctions | ILoadOptionsFunctions,
method: IHttpRequestMethods,
resource: string,
body: object = {},
query: IDataObject = {},
headers: IDataObject | undefined = undefined,
option: IDataObject = {},
) {
const authenticationMethod = this.getNodeParameter('authentication', 0, 'accessToken') as string;
let options: IRequestOptions = {
method,
headers: headers || {
'Content-Type': 'application/json',
},
body,
qs: query,
uri: `https://api.zoom.us/v2${resource}`,
json: true,
};
options = Object.assign({}, options, option);
if (Object.keys(body).length === 0) {
delete options.body;
}
if (Object.keys(query).length === 0) {
delete options.qs;
}
try {
if (authenticationMethod === 'accessToken') {
return await this.helpers.requestWithAuthentication.call(this, 'zoomApi', options);
} else {
return await this.helpers.requestOAuth2.call(this, 'zoomOAuth2Api', options);
}
} catch (error) {
throw new NodeApiError(this.getNode(), error as JsonObject);
}
}
async function wait() {
return await new Promise((resolve, _reject) => {
setTimeout(() => {
resolve(true);
}, 1000);
});
}
export async function zoomApiRequestAllItems(
this: IExecuteFunctions | ILoadOptionsFunctions,
propertyName: string,
method: IHttpRequestMethods,
endpoint: string,
body: IDataObject = {},
query: IDataObject = {},
) {
const returnData: IDataObject[] = [];
let responseData;
query.page_number = 0;
do {
responseData = await zoomApiRequest.call(this, method, endpoint, body, query);
query.page_number++;
returnData.push.apply(returnData, responseData[propertyName] as IDataObject[]);
// zoom free plan rate limit is 1 request/second
// TODO just wait when the plan is free
await wait();
} while (responseData.page_count !== responseData.page_number);
return returnData;
}
@@ -0,0 +1,694 @@
import type { INodeProperties } from 'n8n-workflow';
export const meetingOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
noDataExpression: true,
displayOptions: {
show: {
resource: ['meeting'],
},
},
options: [
{
name: 'Create',
value: 'create',
description: 'Create a meeting',
action: 'Create a meeting',
},
{
name: 'Delete',
value: 'delete',
description: 'Delete a meeting',
action: 'Delete a meeting',
},
{
name: 'Get',
value: 'get',
description: 'Retrieve a meeting',
action: 'Get a meeting',
},
{
name: 'Get Many',
value: 'getAll',
description: 'Retrieve many meetings',
action: 'Get many meetings',
},
{
name: 'Update',
value: 'update',
description: 'Update a meeting',
action: 'Update a meeting',
},
],
default: 'create',
},
];
export const meetingFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* meeting:create */
/* -------------------------------------------------------------------------- */
{
displayName: 'Topic',
name: 'topic',
type: 'string',
default: '',
displayOptions: {
show: {
operation: ['create'],
resource: ['meeting'],
},
},
description: 'Topic of the meeting',
},
{
displayName: 'Additional Fields',
name: 'additionalFields',
type: 'collection',
placeholder: 'Add Field',
default: {},
displayOptions: {
show: {
operation: ['create'],
resource: ['meeting'],
},
},
options: [
{
displayName: 'Agenda',
name: 'agenda',
type: 'string',
default: '',
description: 'Meeting agenda',
},
{
displayName: 'Duration',
name: 'duration',
type: 'number',
typeOptions: {
minValue: 0,
},
default: 0,
description: 'Meeting duration (minutes)',
},
{
displayName: 'Password',
name: 'password',
type: 'string',
typeOptions: { password: true },
default: '',
description: 'Password to join the meeting with maximum 10 characters',
},
{
displayName: 'Schedule For',
name: 'scheduleFor',
type: 'string',
default: '',
description: 'Schedule meeting for someone else from your account, provide their email ID',
},
{
displayName: 'Settings',
name: 'settings',
type: 'collection',
placeholder: 'Add Setting',
default: {},
options: [
{
displayName: 'Audio',
name: 'audio',
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: 'Alternative Hosts',
name: 'alternativeHosts',
type: 'string',
default: '',
description: 'Alternative hosts email IDs',
},
{
displayName: 'Auto Recording',
name: 'autoRecording',
type: 'options',
options: [
{
name: 'Record on Local',
value: 'local',
},
{
name: 'Record on Cloud',
value: 'cloud',
},
{
name: 'Disabled',
value: 'none',
},
],
default: 'none',
},
{
displayName: 'Host Meeting in China',
name: 'cnMeeting',
type: 'boolean',
default: false,
},
{
displayName: 'Host Meeting in India',
name: 'inMeeting',
type: 'boolean',
default: false,
},
{
displayName: 'Host Video',
name: 'hostVideo',
type: 'boolean',
default: false,
description: 'Whether to start a video when host joins the meeting',
},
{
displayName: 'Join Before Host',
name: 'joinBeforeHost',
type: 'boolean',
default: false,
description: 'Whether to allow participants to join the meeting before host starts it',
},
{
displayName: 'Muting Upon Entry',
name: 'muteUponEntry',
type: 'boolean',
default: false,
description: 'Whether to mute participants upon entry',
},
{
displayName: 'Participant Video',
name: 'participantVideo',
type: 'boolean',
default: false,
description: 'Whether to start a video when participant joins the meeting',
},
{
displayName: 'Registration Type',
name: 'registrationType',
type: 'options',
options: [
{
// eslint-disable-next-line n8n-nodes-base/node-param-display-name-miscased
name: 'Attendees register once and can attend any of the occurrences',
value: 1,
},
{
// eslint-disable-next-line n8n-nodes-base/node-param-display-name-miscased
name: 'Attendees need to register for every occurrence',
value: 2,
},
{
// eslint-disable-next-line n8n-nodes-base/node-param-display-name-miscased
name: 'Attendees register once and can choose one or more occurrences to attend',
value: 3,
},
],
default: 1,
description: 'Registration type. Used for recurring meetings with fixed time only.',
},
{
displayName: 'Watermark',
name: 'watermark',
type: 'boolean',
default: false,
description: 'Whether to add a watermark when viewing a shared screen',
},
],
},
{
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 or ID',
name: 'timeZone',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getTimezones',
},
default: '',
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/expressions/">expression</a>.',
},
{
displayName: '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 Fixed Time',
value: 8,
},
],
default: 2,
description: 'Meeting type',
},
],
},
/* -------------------------------------------------------------------------- */
/* meeting:get */
/* -------------------------------------------------------------------------- */
{
displayName: 'ID',
name: 'meetingId',
type: 'string',
default: '',
required: true,
displayOptions: {
show: {
operation: ['get'],
resource: ['meeting'],
},
},
description: 'Meeting ID',
},
{
displayName: 'Additional Fields',
name: 'additionalFields',
type: 'collection',
placeholder: 'Add Field',
default: {},
displayOptions: {
show: {
operation: ['get'],
resource: ['meeting'],
},
},
options: [
{
displayName: 'Occurrence ID',
name: 'occurrenceId',
type: 'string',
default: '',
description: 'To view meeting details of a particular occurrence of the recurring meeting',
},
{
displayName: 'Show Previous Occurrences',
name: 'showPreviousOccurrences',
type: 'boolean',
default: false,
description:
'Whether to view meeting details of all previous occurrences of the recurring meeting',
},
],
},
/* -------------------------------------------------------------------------- */
/* meeting:getAll */
/* -------------------------------------------------------------------------- */
{
displayName: 'Return All',
name: 'returnAll',
type: 'boolean',
displayOptions: {
show: {
operation: ['getAll'],
resource: ['meeting'],
},
},
default: false,
description: 'Whether to return all results or only up to a given limit',
},
{
displayName: 'Limit',
name: 'limit',
type: 'number',
displayOptions: {
show: {
operation: ['getAll'],
resource: ['meeting'],
returnAll: [false],
},
},
typeOptions: {
minValue: 1,
maxValue: 300,
},
default: 30,
description: 'Max number of results to return',
},
{
displayName: 'Filters',
name: 'filters',
type: 'collection',
placeholder: 'Add Filter',
default: {},
displayOptions: {
show: {
operation: ['getAll'],
resource: ['meeting'],
},
},
options: [
{
displayName: 'Type',
name: 'type',
type: 'options',
options: [
{
name: 'Scheduled',
value: 'scheduled',
description:
'This includes all valid past meetings, live meetings and upcoming scheduled meetings',
},
{
name: 'Live',
value: 'live',
description: 'All ongoing meetings',
},
{
name: 'Upcoming',
value: 'upcoming',
description: 'All upcoming meetings including live meetings',
},
],
default: 'live',
description: 'Meeting type',
},
],
},
/* -------------------------------------------------------------------------- */
/* meeting:delete */
/* -------------------------------------------------------------------------- */
{
displayName: 'ID',
name: 'meetingId',
type: 'string',
default: '',
required: true,
displayOptions: {
show: {
operation: ['delete'],
resource: ['meeting'],
},
},
description: 'Meeting ID',
},
{
displayName: 'Additional Fields',
name: 'additionalFields',
type: 'collection',
placeholder: 'Add Field',
default: {},
displayOptions: {
show: {
operation: ['delete'],
resource: ['meeting'],
},
},
options: [
{
displayName: 'Occurrence ID',
name: 'occurrenceId',
type: 'string',
default: '',
description: 'Meeting occurrence ID',
},
{
displayName: 'Schedule Reminder',
name: 'scheduleForReminder',
type: 'boolean',
default: false,
description:
'Whether to notify hosts and alternative hosts about meeting cancellation via email',
},
],
},
/* -------------------------------------------------------------------------- */
/* meeting:update */
/* -------------------------------------------------------------------------- */
{
displayName: 'ID',
name: 'meetingId',
type: 'string',
default: '',
required: true,
displayOptions: {
show: {
operation: ['update'],
resource: ['meeting'],
},
},
description: 'Meeting ID',
},
{
displayName: 'Update Fields',
name: 'updateFields',
type: 'collection',
placeholder: 'Add Field',
default: {},
displayOptions: {
show: {
operation: ['update'],
resource: ['meeting'],
},
},
options: [
{
displayName: 'Agenda',
name: 'agenda',
type: 'string',
default: '',
description: 'Meeting agenda',
},
{
displayName: 'Duration',
name: 'duration',
type: 'number',
typeOptions: {
minValue: 0,
},
default: 0,
description: 'Meeting duration (minutes)',
},
{
displayName: 'Password',
name: 'password',
type: 'string',
typeOptions: { password: true },
default: '',
description: 'Password to join the meeting with maximum 10 characters',
},
{
displayName: 'Schedule For',
name: 'scheduleFor',
type: 'string',
default: '',
description: 'Schedule meeting for someone else from your account, provide their email ID',
},
{
displayName: 'Settings',
name: 'settings',
type: 'collection',
placeholder: 'Add Setting',
default: {},
options: [
{
displayName: 'Audio',
name: 'audio',
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: 'Alternative Hosts',
name: 'alternativeHosts',
type: 'string',
default: '',
description: 'Alternative hosts email IDs',
},
{
displayName: 'Auto Recording',
name: 'autoRecording',
type: 'options',
options: [
{
name: 'Record on Local',
value: 'local',
},
{
name: 'Record on Cloud',
value: 'cloud',
},
{
name: 'Disabled',
value: 'none',
},
],
default: 'none',
},
{
displayName: 'Host Meeting in China',
name: 'cnMeeting',
type: 'boolean',
default: false,
},
{
displayName: 'Host Meeting in India',
name: 'inMeeting',
type: 'boolean',
default: false,
},
{
displayName: 'Host Video',
name: 'hostVideo',
type: 'boolean',
default: false,
description: 'Whether to start a video when host joins the meeting',
},
{
displayName: 'Join Before Host',
name: 'joinBeforeHost',
type: 'boolean',
default: false,
description: 'Whether to allow participants to join the meeting before host starts it',
},
{
displayName: 'Muting Upon Entry',
name: 'muteUponEntry',
type: 'boolean',
default: false,
description: 'Whether to mute participants upon entry',
},
{
displayName: 'Participant Video',
name: 'participantVideo',
type: 'boolean',
default: false,
description: 'Whether to start a video when participant joins the meeting',
},
{
displayName: 'Registration Type',
name: 'registrationType',
type: 'options',
options: [
{
name: 'Attendees Register Once and Can Attend Any of the Occurrences',
value: 1,
},
{
name: 'Attendees Need to Register for Every Occurrence',
value: 2,
},
{
name: 'Attendees Register Once and Can Choose One or More Occurrences to Attend',
value: 3,
},
],
default: 1,
description: 'Registration type. Used for recurring meetings with fixed time only.',
},
{
displayName: 'Watermark',
name: 'watermark',
type: 'boolean',
default: false,
description: 'Whether to add watermark when viewing a shared screen',
},
],
},
{
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 or ID',
name: 'timeZone',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getTimezones',
},
default: '',
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/expressions/">expression</a>.',
},
{
displayName: 'Topic',
name: 'topic',
type: 'string',
default: '',
description: 'Meeting topic',
},
{
displayName: '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 Fixed Time',
value: 8,
},
],
default: 2,
description: 'Meeting type',
},
],
},
];
@@ -0,0 +1,385 @@
import type { INodeProperties } from 'n8n-workflow';
export const meetingRegistrantOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
noDataExpression: true,
displayOptions: {
show: {
resource: ['meetingRegistrant'],
},
},
options: [
{
name: 'Create',
value: 'create',
description: 'Create Meeting Registrants',
action: 'Create a meeting registrant',
},
{
name: 'Update',
value: 'update',
description: 'Update Meeting Registrant Status',
action: 'Update a meeting registrant',
},
{
name: 'Get Many',
value: 'getAll',
description: 'Retrieve many Meeting Registrants',
action: 'Get many meeting registrants',
},
],
default: 'create',
},
];
export const meetingRegistrantFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* meetingRegistrant:create */
/* -------------------------------------------------------------------------- */
{
displayName: 'Meeting ID',
name: 'meetingId',
type: 'string',
default: '',
required: true,
displayOptions: {
show: {
operation: ['create'],
resource: ['meetingRegistrant'],
},
},
},
{
displayName: 'Email',
name: 'email',
type: 'string',
placeholder: 'name@email.com',
required: true,
default: '',
displayOptions: {
show: {
operation: ['create'],
resource: ['meetingRegistrant'],
},
},
description: 'Valid Email-ID',
},
{
displayName: 'First Name',
name: 'firstName',
required: true,
type: 'string',
default: '',
displayOptions: {
show: {
operation: ['create'],
resource: ['meetingRegistrant'],
},
},
},
{
displayName: 'Additional Fields',
name: 'additionalFields',
type: 'collection',
placeholder: 'Add Field',
default: {},
displayOptions: {
show: {
operation: ['create'],
resource: ['meetingRegistrant'],
},
},
options: [
{
displayName: 'Address',
name: 'address',
type: 'string',
default: '',
description: 'Valid address of registrant',
},
{
displayName: 'City',
name: 'city',
type: 'string',
default: '',
description: 'Valid city of registrant',
},
{
displayName: 'Comments',
name: 'comments',
type: 'string',
default: '',
description: 'Allows registrants to provide any questions they have',
},
{
displayName: 'Country',
name: 'country',
type: 'string',
default: '',
description: 'Valid country of registrant',
},
{
displayName: 'Job Title',
name: 'jobTitle',
type: 'string',
default: '',
description: 'Job title of registrant',
},
{
displayName: 'Last Name',
name: 'lastName',
type: 'string',
default: '',
},
{
displayName: 'Occurrence IDs',
name: 'occurrenceId',
type: 'string',
default: '',
description: 'Occurrence IDs separated by comma',
},
{
displayName: 'Organization',
name: 'org',
type: 'string',
default: '',
description: 'Organization of registrant',
},
{
displayName: 'Phone Number',
name: 'phone',
type: 'string',
default: '',
description: 'Valid phone number of registrant',
},
{
displayName: 'Purchasing Time Frame',
name: 'purchasingTimeFrame',
type: 'options',
// eslint-disable-next-line n8n-nodes-base/node-param-options-type-unsorted-items
options: [
{
name: 'Within a Month',
value: 'Within a month',
},
{
name: '1-3 Months',
value: '1-3 months',
},
{
name: '4-6 Months',
value: '4-6 months',
},
{
name: 'More than 6 Months',
value: 'More than 6 months',
},
{
name: 'No Timeframe',
value: 'No timeframe',
},
],
default: '',
description: 'Meeting type',
},
{
displayName: 'Role in Purchase Process',
name: 'roleInPurchaseProcess',
type: 'options',
options: [
{
name: 'Decision Maker',
value: 'Decision Maker',
},
{
name: 'Evaluator/Recommender',
value: 'Evaluator/Recommender',
},
{
name: 'Influencer',
value: 'Influencer',
},
{
name: 'Not Involved',
value: 'Not Involved',
},
],
default: '',
},
{
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',
},
],
},
/* -------------------------------------------------------------------------- */
/* meetingRegistrant:getAll */
/* -------------------------------------------------------------------------- */
{
displayName: 'Meeting ID',
name: 'meetingId',
type: 'string',
default: '',
required: true,
displayOptions: {
show: {
operation: ['getAll'],
resource: ['meetingRegistrant'],
},
},
},
{
displayName: 'Return All',
name: 'returnAll',
type: 'boolean',
displayOptions: {
show: {
operation: ['getAll'],
resource: ['meetingRegistrant'],
},
},
default: false,
description: 'Whether to return all results or only up to a given limit',
},
{
displayName: 'Limit',
name: 'limit',
type: 'number',
displayOptions: {
show: {
operation: ['getAll'],
resource: ['meetingRegistrant'],
returnAll: [false],
},
},
typeOptions: {
minValue: 1,
maxValue: 300,
},
default: 30,
description: 'Max number of results to return',
},
{
displayName: 'Additional Fields',
name: 'additionalFields',
type: 'collection',
placeholder: 'Add Field',
default: {},
displayOptions: {
show: {
operation: ['getAll'],
resource: ['meetingRegistrant'],
},
},
options: [
{
displayName: 'Occurrence ID',
name: 'occurrenceId',
type: 'string',
default: '',
},
{
displayName: 'Status',
name: 'status',
type: 'options',
options: [
{
name: 'Pending',
value: 'pending',
},
{
name: 'Approved',
value: 'approved',
},
{
name: 'Denied',
value: 'denied',
},
],
default: 'approved',
description: 'Registrant Status',
},
],
},
/* -------------------------------------------------------------------------- */
/* meetingRegistrant:update */
/* -------------------------------------------------------------------------- */
{
displayName: 'Meeting ID',
name: 'meetingId',
type: 'string',
default: '',
required: true,
displayOptions: {
show: {
operation: ['update'],
resource: ['meetingRegistrant'],
},
},
},
{
displayName: 'Action',
name: 'action',
type: 'options',
required: true,
displayOptions: {
show: {
operation: ['update'],
resource: ['meetingRegistrant'],
},
},
options: [
{
name: 'Cancel',
value: 'cancel',
action: 'Cancel a meeting registrant',
},
{
name: 'Approved',
value: 'approve',
action: 'Approved a meeting registrant',
},
{
name: 'Deny',
value: 'deny',
action: 'Deny a meeting registrant',
},
],
default: '',
description: 'Registrant Status',
},
{
displayName: 'Additional Fields',
name: 'additionalFields',
type: 'collection',
placeholder: 'Add Field',
default: {},
displayOptions: {
show: {
operation: ['update'],
resource: ['meetingRegistrant'],
},
},
options: [
{
displayName: 'Occurrence ID',
name: 'occurrenceId',
type: 'string',
default: '',
},
],
},
];
@@ -0,0 +1,609 @@
import type { INodeProperties } from 'n8n-workflow';
export const webinarOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
noDataExpression: true,
displayOptions: {
show: {
resource: ['webinar'],
},
},
options: [
{
name: 'Create',
value: 'create',
description: 'Create a webinar',
action: 'Create a webinar',
},
{
name: 'Delete',
value: 'delete',
description: 'Delete a webinar',
action: 'Delete a webinar',
},
{
name: 'Get',
value: 'get',
description: 'Retrieve a webinar',
action: 'Get a webinar',
},
{
name: 'Get Many',
value: 'getAll',
description: 'Retrieve many webinars',
action: 'Get many webinars',
},
{
name: 'Update',
value: 'update',
description: 'Update a webinar',
action: 'Update a webinar',
},
],
default: 'create',
},
];
export const webinarFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* webinar:create */
/* -------------------------------------------------------------------------- */
{
displayName: 'User ID',
name: 'userId',
type: 'string',
default: '',
required: true,
displayOptions: {
show: {
operation: ['create'],
resource: ['webinar'],
},
},
description: 'User ID or email ID',
},
{
displayName: 'Additional Fields',
name: 'additionalFields',
type: 'collection',
placeholder: 'Add Field',
default: {},
displayOptions: {
show: {
operation: ['create'],
resource: ['webinar'],
},
},
options: [
{
displayName: 'Agenda',
name: 'agenda',
type: 'string',
default: '',
description: 'Webinar agenda',
},
{
displayName: 'Alternative Hosts',
name: 'alternativeHosts',
type: 'string',
default: '',
description: 'Alternative hosts email IDs',
},
{
displayName: 'Approval Type',
name: 'approvalType',
type: 'options',
options: [
{
name: 'Automatically Approve',
value: 0,
},
{
name: 'Manually Approve',
value: 1,
},
{
name: 'No Registration Required',
value: 2,
},
],
default: 2,
},
{
displayName: 'Audio',
name: 'audio',
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 webinar',
},
{
displayName: 'Auto Recording',
name: 'autoRecording',
type: 'options',
options: [
{
name: 'Record on Local',
value: 'local',
},
{
name: 'Record on Cloud',
value: 'cloud',
},
{
name: 'Disabled',
value: 'none',
},
],
default: 'none',
},
{
displayName: 'Duration',
name: 'duration',
type: 'string',
default: '',
},
{
displayName: 'Host Video',
name: 'hostVideo',
type: 'boolean',
default: false,
description: 'Whether to start a video when host joins the webinar',
},
{
displayName: 'Panelists Video',
name: 'panelistsVideo',
type: 'boolean',
default: false,
description: 'Whether to start a video when panelists joins the webinar',
},
{
displayName: 'Password',
name: 'password',
type: 'string',
typeOptions: { password: true },
default: '',
description: 'Password to join the webinar with maximum 10 characters',
},
{
displayName: 'Practice Session',
name: 'practiceSession',
type: 'boolean',
default: false,
description: 'Whether to enable Practice session',
},
{
displayName: 'Registration Type',
name: 'registrationType',
type: 'options',
options: [
{
// eslint-disable-next-line n8n-nodes-base/node-param-display-name-miscased
name: 'Attendees register once and can attend any of the occurrences',
value: 1,
},
{
// eslint-disable-next-line n8n-nodes-base/node-param-display-name-miscased
name: 'Attendees need to register for every occurrence',
value: 2,
},
{
// eslint-disable-next-line n8n-nodes-base/node-param-display-name-miscased
name: 'Attendees register once and can choose one or more occurrences to attend',
value: 3,
},
],
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 or ID',
name: 'timeZone',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getTimezones',
},
default: '',
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/expressions/">expression</a>.',
},
{
displayName: 'Webinar Topic',
name: 'topic',
type: 'string',
default: '',
},
{
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,
},
],
},
/* -------------------------------------------------------------------------- */
/* webinar:get */
/* -------------------------------------------------------------------------- */
{
displayName: 'Webinar ID',
name: 'webinarId',
type: 'string',
default: '',
required: true,
displayOptions: {
show: {
operation: ['get'],
resource: ['webinar'],
},
},
},
{
displayName: 'Additional Fields',
name: 'additionalFields',
type: 'collection',
placeholder: 'Add Field',
default: {},
displayOptions: {
show: {
operation: ['get'],
resource: ['webinar'],
},
},
options: [
{
displayName: 'Occurrence ID',
name: 'occurrenceId',
type: 'string',
default: '',
description: 'To view webinar details of a particular occurrence of the recurring webinar',
},
{
displayName: 'Show Previous Occurrences',
name: 'showPreviousOccurrences',
type: 'boolean',
default: false,
description:
'Whether to view webinar details of all previous occurrences of the recurring webinar',
},
],
},
/* -------------------------------------------------------------------------- */
/* webinar:getAll */
/* -------------------------------------------------------------------------- */
{
displayName: 'User ID',
name: 'userId',
type: 'string',
default: '',
required: true,
displayOptions: {
show: {
operation: ['getAll'],
resource: ['webinar'],
},
},
description: 'User ID or email-ID',
},
{
displayName: 'Return All',
name: 'returnAll',
type: 'boolean',
displayOptions: {
show: {
operation: ['getAll'],
resource: ['webinar'],
},
},
default: false,
description: 'Whether to return all results or only up to a given limit',
},
{
displayName: 'Limit',
name: 'limit',
type: 'number',
displayOptions: {
show: {
operation: ['getAll'],
resource: ['webinar'],
returnAll: [false],
},
},
typeOptions: {
minValue: 1,
maxValue: 300,
},
default: 30,
description: 'Max number of results to return',
},
/* -------------------------------------------------------------------------- */
/* webinar:delete */
/* -------------------------------------------------------------------------- */
{
displayName: 'Webinar ID',
name: 'webinarId',
type: 'string',
default: '',
required: true,
displayOptions: {
show: {
operation: ['delete'],
resource: ['webinarId'],
},
},
},
{
displayName: 'Additional Fields',
name: 'additionalFields',
type: 'collection',
placeholder: 'Add Field',
default: {},
displayOptions: {
show: {
operation: ['delete'],
resource: ['webinar'],
},
},
options: [
{
displayName: 'Occurrence ID',
name: 'occurrenceId',
type: 'string',
default: '',
description: 'Webinar occurrence ID',
},
],
},
/* -------------------------------------------------------------------------- */
/* webinar:update */
/* -------------------------------------------------------------------------- */
{
displayName: 'Webinar ID',
name: 'webinarId',
type: 'string',
default: '',
required: true,
displayOptions: {
show: {
operation: ['update'],
resource: ['webinar'],
},
},
description: 'User ID or email address of user',
},
{
displayName: 'Additional Fields',
name: 'additionalFields',
type: 'collection',
placeholder: 'Add Field',
default: {},
displayOptions: {
show: {
operation: ['update'],
resource: ['webinar'],
},
},
options: [
{
displayName: 'Agenda',
name: 'agenda',
type: 'string',
default: '',
description: 'Webinar agenda',
},
{
displayName: 'Alternative Hosts',
name: 'alternativeHosts',
type: 'string',
default: '',
description: 'Alternative hosts email IDs',
},
{
displayName: 'Approval Type',
name: 'approvalType',
type: 'options',
options: [
{
name: 'Automatically Approve',
value: 0,
},
{
name: 'Manually Approve',
value: 1,
},
{
name: 'No Registration Required',
value: 2,
},
],
default: 2,
},
{
displayName: 'Auto Recording',
name: 'autoRecording',
type: 'options',
options: [
{
name: 'Record on Local',
value: 'local',
},
{
name: 'Record on Cloud',
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',
description: 'Determine how participants can join audio portion of the webinar',
},
{
displayName: 'Duration',
name: 'duration',
type: 'string',
default: '',
},
{
displayName: 'Host Video',
name: 'hostVideo',
type: 'boolean',
default: false,
description: 'Whether to start video when host joins the webinar',
},
{
displayName: 'Occurrence ID',
name: 'occurrenceId',
type: 'string',
default: '',
description: 'Webinar occurrence ID',
},
{
displayName: 'Password',
name: 'password',
type: 'string',
typeOptions: { password: true },
default: '',
description: 'Password to join the webinar with maximum 10 characters',
},
{
displayName: 'Panelists Video',
name: 'panelistsVideo',
type: 'boolean',
default: false,
description: 'Whether to start a video when panelists joins the webinar',
},
{
displayName: 'Practice Session',
name: 'practiceSession',
type: 'boolean',
default: false,
description: 'Whether to enable Practice session',
},
{
displayName: 'Registration Type',
name: 'registrationType',
type: 'options',
options: [
{
name: 'Attendees Register Once and Can Attend Any of the Occurrences',
value: 1,
},
{
name: 'Attendees Need to Register for Every Occurrence',
value: 2,
},
{
name: 'Attendees Register Once and Can Choose One or More Occurrences to Attend',
value: 3,
},
],
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 or ID',
name: 'timeZone',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getTimezones',
},
default: '',
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/expressions/">expression</a>.',
},
{
displayName: 'Webinar Topic',
name: 'topic',
type: 'string',
default: '',
},
{
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,
},
],
},
];
@@ -0,0 +1,18 @@
{
"node": "n8n-nodes-base.zoom",
"nodeVersion": "1.0",
"codexVersion": "1.0",
"categories": ["Communication"],
"resources": {
"credentialDocumentation": [
{
"url": "https://docs.n8n.io/integrations/builtin/credentials/zoom/"
}
],
"primaryDocumentation": [
{
"url": "https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.zoom/"
}
]
}
}
+797
View File
@@ -0,0 +1,797 @@
import moment from 'moment-timezone';
import {
type IExecuteFunctions,
type IDataObject,
type ILoadOptionsFunctions,
type INodeExecutionData,
type INodePropertyOptions,
type INodeType,
type INodeTypeDescription,
NodeConnectionTypes,
} from 'n8n-workflow';
import { zoomApiRequest, zoomApiRequestAllItems } from './GenericFunctions';
import { meetingFields, meetingOperations } from './MeetingDescription';
// import {
// meetingRegistrantOperations,
// meetingRegistrantFields,
// } from './MeetingRegistrantDescription';
// import {
// webinarOperations,
// webinarFields,
// } from './WebinarDescription';
interface Settings {
host_video?: boolean;
participant_video?: boolean;
panelists_video?: boolean;
cn_meeting?: boolean;
in_meeting?: boolean;
join_before_host?: boolean;
mute_upon_entry?: boolean;
watermark?: boolean;
waiting_room?: boolean;
audio?: string;
alternative_hosts?: string;
auto_recording?: string;
registration_type?: number;
approval_type?: number;
practice_session?: boolean;
}
export class Zoom implements INodeType {
description: INodeTypeDescription = {
displayName: 'Zoom',
name: 'zoom',
group: ['input'],
version: 1,
description: 'Consume Zoom API',
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
defaults: {
name: 'Zoom',
},
icon: 'file:zoom.svg',
usableAsTool: true,
inputs: [NodeConnectionTypes.Main],
outputs: [NodeConnectionTypes.Main],
credentials: [
{
// create a JWT app on Zoom Marketplace
//https://marketplace.zoom.us/develop/create
//get the JWT token as access token
name: 'zoomApi',
required: true,
displayOptions: {
show: {
authentication: ['accessToken'],
},
},
},
{
//create a account level OAuth app
//https://marketplace.zoom.us/develop/create
name: 'zoomOAuth2Api',
required: true,
displayOptions: {
show: {
authentication: ['oAuth2'],
},
},
},
],
properties: [
{
displayName: 'Authentication',
name: 'authentication',
type: 'options',
options: [
{
name: 'Access Token',
value: 'accessToken',
},
{
name: 'OAuth2',
value: 'oAuth2',
},
],
default: 'accessToken',
},
{
displayName: 'Resource',
name: 'resource',
type: 'options',
noDataExpression: true,
options: [
{
name: 'Meeting',
value: 'meeting',
},
// {
// name: 'Meeting Registrant',
// value: 'meetingRegistrant'
// },
// {
// name: 'Webinar',
// value: 'webinar'
// }
],
default: 'meeting',
},
//MEETINGS
...meetingOperations,
...meetingFields,
// //MEETING REGISTRANTS
// ...meetingRegistrantOperations,
// ...meetingRegistrantFields,
// //WEBINARS
// ...webinarOperations,
// ...webinarFields,
],
};
methods = {
loadOptions: {
// Get all the timezones to display them to user so that they can select them easily
async getTimezones(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
const returnData: INodePropertyOptions[] = [];
for (const timezone of moment.tz.names()) {
const timezoneName = timezone;
const timezoneId = timezone;
returnData.push({
name: timezoneName,
value: timezoneId,
});
}
return returnData;
},
},
};
async execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]> {
const items = this.getInputData();
const returnData: INodeExecutionData[] = [];
let qs: IDataObject = {};
let responseData;
const resource = this.getNodeParameter('resource', 0);
const operation = this.getNodeParameter('operation', 0);
for (let i = 0; i < items.length; i++) {
try {
qs = {};
//https://marketplace.zoom.us/docs/api-reference/zoom-api/
if (resource === 'meeting') {
if (operation === 'get') {
//https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meeting
const meetingId = this.getNodeParameter('meetingId', i) as string;
const additionalFields = this.getNodeParameter('additionalFields', i);
if (additionalFields.showPreviousOccurrences) {
qs.show_previous_occurrences = additionalFields.showPreviousOccurrences as boolean;
}
if (additionalFields.occurrenceId) {
qs.occurrence_id = additionalFields.occurrenceId as string;
}
responseData = await zoomApiRequest.call(this, 'GET', `/meetings/${meetingId}`, {}, qs);
}
if (operation === 'getAll') {
//https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetings
const returnAll = this.getNodeParameter('returnAll', i);
const filters = this.getNodeParameter('filters', i);
if (filters.type) {
qs.type = filters.type as string;
}
if (returnAll) {
responseData = await zoomApiRequestAllItems.call(
this,
'meetings',
'GET',
'/users/me/meetings',
{},
qs,
);
} else {
qs.page_size = this.getNodeParameter('limit', i);
responseData = await zoomApiRequest.call(this, 'GET', '/users/me/meetings', {}, qs);
responseData = responseData.meetings;
}
}
if (operation === 'delete') {
//https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingdelete
const meetingId = this.getNodeParameter('meetingId', i) as string;
const additionalFields = this.getNodeParameter('additionalFields', i);
if (additionalFields.scheduleForReminder) {
qs.schedule_for_reminder = additionalFields.scheduleForReminder as boolean;
}
if (additionalFields.occurrenceId) {
qs.occurrence_id = additionalFields.occurrenceId;
}
responseData = await zoomApiRequest.call(
this,
'DELETE',
`/meetings/${meetingId}`,
{},
qs,
);
responseData = { success: true };
}
if (operation === 'create') {
//https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingcreate
const additionalFields = this.getNodeParameter('additionalFields', i);
const body: IDataObject = {};
if (additionalFields.settings) {
const settingValues: Settings = {};
const settings = additionalFields.settings as IDataObject;
if (settings.cnMeeting) {
settingValues.cn_meeting = settings.cnMeeting as boolean;
}
if (settings.inMeeting) {
settingValues.in_meeting = settings.inMeeting as boolean;
}
if (settings.joinBeforeHost) {
settingValues.join_before_host = settings.joinBeforeHost as boolean;
}
if (settings.muteUponEntry) {
settingValues.mute_upon_entry = settings.muteUponEntry as boolean;
}
if (settings.watermark) {
settingValues.watermark = settings.watermark as boolean;
}
if (settings.audio) {
settingValues.audio = settings.audio as string;
}
if (settings.alternativeHosts) {
settingValues.alternative_hosts = settings.alternativeHosts as string;
}
if (settings.participantVideo) {
settingValues.participant_video = settings.participantVideo as boolean;
}
if (settings.hostVideo) {
settingValues.host_video = settings.hostVideo as boolean;
}
if (settings.autoRecording) {
settingValues.auto_recording = settings.autoRecording as string;
}
if (settings.registrationType) {
settingValues.registration_type = settings.registrationType as number;
}
body.settings = settingValues;
}
body.topic = this.getNodeParameter('topic', i) as string;
if (additionalFields.type) {
body.type = additionalFields.type as string;
}
if (additionalFields.startTime) {
if (additionalFields.timeZone) {
body.start_time = moment(additionalFields.startTime as string).format(
'YYYY-MM-DDTHH:mm:ss',
);
} else {
// if none timezone it's defined used n8n timezone
body.start_time = moment
.tz(additionalFields.startTime as string, this.getTimezone())
.format();
}
}
if (additionalFields.duration) {
body.duration = additionalFields.duration as number;
}
if (additionalFields.scheduleFor) {
body.schedule_for = additionalFields.scheduleFor as string;
}
if (additionalFields.timeZone) {
body.timezone = additionalFields.timeZone as string;
}
if (additionalFields.password) {
body.password = additionalFields.password as string;
}
if (additionalFields.agenda) {
body.agenda = additionalFields.agenda as string;
}
responseData = await zoomApiRequest.call(this, 'POST', '/users/me/meetings', body, qs);
}
if (operation === 'update') {
//https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingupdate
const meetingId = this.getNodeParameter('meetingId', i) as string;
const updateFields = this.getNodeParameter('updateFields', i);
const body: IDataObject = {};
if (updateFields.settings) {
const settingValues: Settings = {};
const settings = updateFields.settings as IDataObject;
if (settings.cnMeeting) {
settingValues.cn_meeting = settings.cnMeeting as boolean;
}
if (settings.inMeeting) {
settingValues.in_meeting = settings.inMeeting as boolean;
}
if (settings.joinBeforeHost) {
settingValues.join_before_host = settings.joinBeforeHost as boolean;
}
if (settings.muteUponEntry) {
settingValues.mute_upon_entry = settings.muteUponEntry as boolean;
}
if (settings.watermark) {
settingValues.watermark = settings.watermark as boolean;
}
if (settings.audio) {
settingValues.audio = settings.audio as string;
}
if (settings.alternativeHosts) {
settingValues.alternative_hosts = settings.alternativeHosts as string;
}
if (settings.participantVideo) {
settingValues.participant_video = settings.participantVideo as boolean;
}
if (settings.hostVideo) {
settingValues.host_video = settings.hostVideo as boolean;
}
if (settings.autoRecording) {
settingValues.auto_recording = settings.autoRecording as string;
}
if (settings.registrationType) {
settingValues.registration_type = settings.registrationType as number;
}
body.settings = settingValues;
}
if (updateFields.topic) {
body.topic = updateFields.topic as string;
}
if (updateFields.type) {
body.type = updateFields.type as string;
}
if (updateFields.startTime) {
body.start_time = updateFields.startTime as string;
}
if (updateFields.duration) {
body.duration = updateFields.duration as number;
}
if (updateFields.scheduleFor) {
body.schedule_for = updateFields.scheduleFor as string;
}
if (updateFields.timeZone) {
body.timezone = updateFields.timeZone as string;
}
if (updateFields.password) {
body.password = updateFields.password as string;
}
if (updateFields.agenda) {
body.agenda = updateFields.agenda as string;
}
responseData = await zoomApiRequest.call(
this,
'PATCH',
`/meetings/${meetingId}`,
body,
qs,
);
responseData = { success: true };
}
}
// if (resource === 'meetingRegistrant') {
// if (operation === 'create') {
// //https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingregistrantcreate
// const meetingId = this.getNodeParameter('meetingId', i) as string;
// const emailId = this.getNodeParameter('email', i) as string;
// body.email = emailId;
// const firstName = this.getNodeParameter('firstName', i) as string;
// body.first_name = firstName;
// const additionalFields = this.getNodeParameter(
// 'additionalFields',
// i
// ) as IDataObject;
// if (additionalFields.occurrenceId) {
// qs.occurrence_ids = additionalFields.occurrenceId as string;
// }
// if (additionalFields.lastName) {
// body.last_name = additionalFields.lastName as string;
// }
// if (additionalFields.address) {
// body.address = additionalFields.address as string;
// }
// if (additionalFields.city) {
// body.city = additionalFields.city as string;
// }
// if (additionalFields.state) {
// body.state = additionalFields.state as string;
// }
// if (additionalFields.country) {
// body.country = additionalFields.country as string;
// }
// if (additionalFields.zip) {
// body.zip = additionalFields.zip as string;
// }
// if (additionalFields.phone) {
// body.phone = additionalFields.phone as string;
// }
// if (additionalFields.comments) {
// body.comments = additionalFields.comments as string;
// }
// if (additionalFields.org) {
// body.org = additionalFields.org as string;
// }
// if (additionalFields.jobTitle) {
// body.job_title = additionalFields.jobTitle as string;
// }
// if (additionalFields.purchasingTimeFrame) {
// body.purchasing_time_frame = additionalFields.purchasingTimeFrame as string;
// }
// if (additionalFields.roleInPurchaseProcess) {
// body.role_in_purchase_process = additionalFields.roleInPurchaseProcess as string;
// }
// responseData = await zoomApiRequest.call(
// this,
// 'POST',
// `/meetings/${meetingId}/registrants`,
// body,
// qs
// );
// }
// if (operation === 'getAll') {
// //https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingregistrants
// const meetingId = this.getNodeParameter('meetingId', i) as string;
// const additionalFields = this.getNodeParameter(
// 'additionalFields',
// i
// ) as IDataObject;
// if (additionalFields.occurrenceId) {
// qs.occurrence_id = additionalFields.occurrenceId as string;
// }
// if (additionalFields.status) {
// qs.status = additionalFields.status as string;
// }
// const returnAll = this.getNodeParameter('returnAll', i);
// if (returnAll) {
// responseData = await zoomApiRequestAllItems.call(this, 'results', 'GET', `/meetings/${meetingId}/registrants`, {}, qs);
// } else {
// qs.page_size = this.getNodeParameter('limit', i);
// responseData = await zoomApiRequest.call(this, 'GET', `/meetings/${meetingId}/registrants`, {}, qs);
// }
// }
// if (operation === 'update') {
// //https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingregistrantstatus
// const meetingId = this.getNodeParameter('meetingId', i) as string;
// const additionalFields = this.getNodeParameter(
// 'additionalFields',
// i
// ) as IDataObject;
// if (additionalFields.occurrenceId) {
// qs.occurrence_id = additionalFields.occurrenceId as string;
// }
// if (additionalFields.action) {
// body.action = additionalFields.action as string;
// }
// responseData = await zoomApiRequest.call(
// this,
// 'PUT',
// `/meetings/${meetingId}/registrants/status`,
// body,
// qs
// );
// }
// }
// if (resource === 'webinar') {
// if (operation === 'create') {
// //https://marketplace.zoom.us/docs/api-reference/zoom-api/webinars/webinarcreate
// const userId = this.getNodeParameter('userId', i) as string;
// const additionalFields = this.getNodeParameter(
// 'additionalFields',
// i
// ) as IDataObject;
// const settings: Settings = {};
// if (additionalFields.audio) {
// settings.audio = additionalFields.audio as string;
// }
// if (additionalFields.alternativeHosts) {
// settings.alternative_hosts = additionalFields.alternativeHosts as string;
// }
// if (additionalFields.panelistsVideo) {
// settings.panelists_video = additionalFields.panelistsVideo as boolean;
// }
// if (additionalFields.hostVideo) {
// settings.host_video = additionalFields.hostVideo as boolean;
// }
// if (additionalFields.practiceSession) {
// settings.practice_session = additionalFields.practiceSession as boolean;
// }
// if (additionalFields.autoRecording) {
// settings.auto_recording = additionalFields.autoRecording as string;
// }
// if (additionalFields.registrationType) {
// settings.registration_type = additionalFields.registrationType as number;
// }
// if (additionalFields.approvalType) {
// settings.approval_type = additionalFields.approvalType as number;
// }
// body = {
// settings,
// };
// if (additionalFields.topic) {
// body.topic = additionalFields.topic as string;
// }
// if (additionalFields.type) {
// body.type = additionalFields.type as string;
// }
// if (additionalFields.startTime) {
// body.start_time = additionalFields.startTime as string;
// }
// if (additionalFields.duration) {
// body.duration = additionalFields.duration as number;
// }
// if (additionalFields.timeZone) {
// body.timezone = additionalFields.timeZone as string;
// }
// if (additionalFields.password) {
// body.password = additionalFields.password as string;
// }
// if (additionalFields.agenda) {
// body.agenda = additionalFields.agenda as string;
// }
// responseData = await zoomApiRequest.call(
// this,
// 'POST',
// `/users/${userId}/webinars`,
// body,
// qs
// );
// }
// if (operation === 'get') {
// //https://marketplace.zoom.us/docs/api-reference/zoom-api/webinars/webinar
// const webinarId = this.getNodeParameter('webinarId', i) as string;
// const additionalFields = this.getNodeParameter(
// 'additionalFields',
// i
// ) as IDataObject;
// if (additionalFields.showPreviousOccurrences) {
// qs.show_previous_occurrences = additionalFields.showPreviousOccurrences as boolean;
// }
// if (additionalFields.occurrenceId) {
// qs.occurrence_id = additionalFields.occurrenceId as string;
// }
// responseData = await zoomApiRequest.call(
// this,
// 'GET',
// `/webinars/${webinarId}`,
// {},
// qs
// );
// }
// if (operation === 'getAll') {
// //https://marketplace.zoom.us/docs/api-reference/zoom-api/webinars/webinars
// const userId = this.getNodeParameter('userId', i) as string;
// const returnAll = this.getNodeParameter('returnAll', i);
// if (returnAll) {
// responseData = await zoomApiRequestAllItems.call(this, 'results', 'GET', `/users/${userId}/webinars`, {}, qs);
// } else {
// qs.page_size = this.getNodeParameter('limit', i);
// responseData = await zoomApiRequest.call(this, 'GET', `/users/${userId}/webinars`, {}, qs);
// }
// }
// if (operation === 'delete') {
// //https://marketplace.zoom.us/docs/api-reference/zoom-api/webinars/webinardelete
// const webinarId = this.getNodeParameter('webinarId', i) as string;
// const additionalFields = this.getNodeParameter(
// 'additionalFields',
// i
// ) as IDataObject;
// if (additionalFields.occurrenceId) {
// qs.occurrence_id = additionalFields.occurrenceId;
// }
// responseData = await zoomApiRequest.call(
// this,
// 'DELETE',
// `/webinars/${webinarId}`,
// {},
// qs
// );
// responseData = { success: true };
// }
// if (operation === 'update') {
// //https://marketplace.zoom.us/docs/api-reference/zoom-api/webinars/webinarupdate
// const webinarId = this.getNodeParameter('webinarId', i) as string;
// const additionalFields = this.getNodeParameter(
// 'additionalFields',
// i
// ) as IDataObject;
// if (additionalFields.occurrenceId) {
// qs.occurrence_id = additionalFields.occurrenceId as string;
// }
// const settings: Settings = {};
// if (additionalFields.audio) {
// settings.audio = additionalFields.audio as string;
// }
// if (additionalFields.alternativeHosts) {
// settings.alternative_hosts = additionalFields.alternativeHosts as string;
// }
// if (additionalFields.panelistsVideo) {
// settings.panelists_video = additionalFields.panelistsVideo as boolean;
// }
// if (additionalFields.hostVideo) {
// settings.host_video = additionalFields.hostVideo as boolean;
// }
// if (additionalFields.practiceSession) {
// settings.practice_session = additionalFields.practiceSession as boolean;
// }
// if (additionalFields.autoRecording) {
// settings.auto_recording = additionalFields.autoRecording as string;
// }
// if (additionalFields.registrationType) {
// settings.registration_type = additionalFields.registrationType as number;
// }
// if (additionalFields.approvalType) {
// settings.approval_type = additionalFields.approvalType as number;
// }
// body = {
// settings,
// };
// if (additionalFields.topic) {
// body.topic = additionalFields.topic as string;
// }
// if (additionalFields.type) {
// body.type = additionalFields.type as string;
// }
// if (additionalFields.startTime) {
// body.start_time = additionalFields.startTime as string;
// }
// if (additionalFields.duration) {
// body.duration = additionalFields.duration as number;
// }
// if (additionalFields.timeZone) {
// body.timezone = additionalFields.timeZone as string;
// }
// if (additionalFields.password) {
// body.password = additionalFields.password as string;
// }
// if (additionalFields.agenda) {
// body.agenda = additionalFields.agenda as string;
// }
// responseData = await zoomApiRequest.call(
// this,
// 'PATCH',
// `webinars/${webinarId}`,
// body,
// qs
// );
// }
// }
const executionData = this.helpers.constructExecutionMetaData(
this.helpers.returnJsonArray(responseData as IDataObject),
{ itemData: { item: i } },
);
returnData.push(...executionData);
} catch (error) {
if (this.continueOnFail()) {
const executionErrorData = {
json: {} as IDataObject,
error: error.message,
itemIndex: i,
};
returnData.push(executionErrorData as INodeExecutionData);
continue;
}
throw error;
}
}
return [returnData];
}
}
@@ -0,0 +1,223 @@
{
"type": "object",
"properties": {
"created_at": {
"type": "string"
},
"creation_source": {
"type": "string"
},
"duration": {
"type": "integer"
},
"encrypted_password": {
"type": "string"
},
"h323_password": {
"type": "string"
},
"host_email": {
"type": "string"
},
"host_id": {
"type": "string"
},
"id": {
"type": "integer"
},
"join_url": {
"type": "string"
},
"password": {
"type": "string"
},
"pre_schedule": {
"type": "boolean"
},
"pstn_password": {
"type": "string"
},
"settings": {
"type": "object",
"properties": {
"allow_host_control_participant_mute_state": {
"type": "boolean"
},
"allow_multiple_devices": {
"type": "boolean"
},
"alternative_host_update_polls": {
"type": "boolean"
},
"alternative_hosts": {
"type": "string"
},
"alternative_hosts_email_notification": {
"type": "boolean"
},
"approval_type": {
"type": "integer"
},
"approved_or_denied_countries_or_regions": {
"type": "object",
"properties": {
"enable": {
"type": "boolean"
}
}
},
"audio": {
"type": "string"
},
"auto_recording": {
"type": "string"
},
"breakout_room": {
"type": "object",
"properties": {
"enable": {
"type": "boolean"
}
}
},
"close_registration": {
"type": "boolean"
},
"cn_meeting": {
"type": "boolean"
},
"continuous_meeting_chat": {
"type": "object",
"properties": {
"auto_add_invited_external_users": {
"type": "boolean"
},
"auto_add_meeting_participants": {
"type": "boolean"
},
"channel_id": {
"type": "string"
},
"enable": {
"type": "boolean"
}
}
},
"device_testing": {
"type": "boolean"
},
"email_in_attendee_report": {
"type": "boolean"
},
"email_notification": {
"type": "boolean"
},
"encryption_type": {
"type": "string"
},
"enforce_login": {
"type": "boolean"
},
"enforce_login_domains": {
"type": "string"
},
"focus_mode": {
"type": "boolean"
},
"host_save_video_order": {
"type": "boolean"
},
"host_video": {
"type": "boolean"
},
"in_meeting": {
"type": "boolean"
},
"internal_meeting": {
"type": "boolean"
},
"jbh_time": {
"type": "integer"
},
"join_before_host": {
"type": "boolean"
},
"meeting_authentication": {
"type": "boolean"
},
"mute_upon_entry": {
"type": "boolean"
},
"participant_focused_meeting": {
"type": "boolean"
},
"participant_video": {
"type": "boolean"
},
"private_meeting": {
"type": "boolean"
},
"push_change_to_calendar": {
"type": "boolean"
},
"registrants_confirmation_email": {
"type": "boolean"
},
"registrants_email_notification": {
"type": "boolean"
},
"request_permission_to_unmute_participants": {
"type": "boolean"
},
"show_join_info": {
"type": "boolean"
},
"show_share_button": {
"type": "boolean"
},
"sign_language_interpretation": {
"type": "object",
"properties": {
"enable": {
"type": "boolean"
}
}
},
"use_pmi": {
"type": "boolean"
},
"waiting_room": {
"type": "boolean"
},
"watermark": {
"type": "boolean"
}
}
},
"start_time": {
"type": "string"
},
"start_url": {
"type": "string"
},
"status": {
"type": "string"
},
"supportGoLive": {
"type": "boolean"
},
"timezone": {
"type": "string"
},
"topic": {
"type": "string"
},
"type": {
"type": "integer"
},
"uuid": {
"type": "string"
}
},
"version": 1
}
@@ -0,0 +1,254 @@
{
"type": "object",
"properties": {
"agenda": {
"type": "string"
},
"assistant_id": {
"type": "string"
},
"created_at": {
"type": "string"
},
"duration": {
"type": "integer"
},
"host_email": {
"type": "string"
},
"host_id": {
"type": "string"
},
"id": {
"type": "integer"
},
"join_url": {
"type": "string"
},
"pre_schedule": {
"type": "boolean"
},
"settings": {
"type": "object",
"properties": {
"allow_multiple_devices": {
"type": "boolean"
},
"alternative_host_update_polls": {
"type": "boolean"
},
"alternative_hosts": {
"type": "string"
},
"alternative_hosts_email_notification": {
"type": "boolean"
},
"approval_type": {
"type": "integer"
},
"approved_or_denied_countries_or_regions": {
"type": "object",
"properties": {
"enable": {
"type": "boolean"
}
}
},
"audio": {
"type": "string"
},
"auto_recording": {
"type": "string"
},
"auto_start_ai_companion_questions": {
"type": "boolean"
},
"auto_start_meeting_summary": {
"type": "boolean"
},
"breakout_room": {
"type": "object",
"properties": {
"enable": {
"type": "boolean"
}
}
},
"close_registration": {
"type": "boolean"
},
"cn_meeting": {
"type": "boolean"
},
"continuous_meeting_chat": {
"type": "object",
"properties": {
"auto_add_invited_external_users": {
"type": "boolean"
},
"channel_id": {
"type": "string"
},
"enable": {
"type": "boolean"
}
}
},
"device_testing": {
"type": "boolean"
},
"email_in_attendee_report": {
"type": "boolean"
},
"email_notification": {
"type": "boolean"
},
"enable_dedicated_group_chat": {
"type": "boolean"
},
"encryption_type": {
"type": "string"
},
"enforce_login": {
"type": "boolean"
},
"enforce_login_domains": {
"type": "string"
},
"focus_mode": {
"type": "boolean"
},
"global_dial_in_countries": {
"type": "array",
"items": {
"type": "string"
}
},
"global_dial_in_numbers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"city": {
"type": "string"
},
"country": {
"type": "string"
},
"country_name": {
"type": "string"
},
"number": {
"type": "string"
},
"type": {
"type": "string"
}
}
}
},
"host_save_video_order": {
"type": "boolean"
},
"host_video": {
"type": "boolean"
},
"in_meeting": {
"type": "boolean"
},
"internal_meeting": {
"type": "boolean"
},
"jbh_time": {
"type": "integer"
},
"join_before_host": {
"type": "boolean"
},
"meeting_authentication": {
"type": "boolean"
},
"meeting_invitees": {
"type": "array",
"items": {
"type": "object",
"properties": {
"email": {
"type": "string"
}
}
}
},
"mute_upon_entry": {
"type": "boolean"
},
"participant_focused_meeting": {
"type": "boolean"
},
"participant_video": {
"type": "boolean"
},
"private_meeting": {
"type": "boolean"
},
"push_change_to_calendar": {
"type": "boolean"
},
"registrants_confirmation_email": {
"type": "boolean"
},
"registrants_email_notification": {
"type": "boolean"
},
"request_permission_to_unmute_participants": {
"type": "boolean"
},
"show_join_info": {
"type": "boolean"
},
"show_share_button": {
"type": "boolean"
},
"sign_language_interpretation": {
"type": "object",
"properties": {
"enable": {
"type": "boolean"
}
}
},
"use_pmi": {
"type": "boolean"
},
"waiting_room": {
"type": "boolean"
},
"watermark": {
"type": "boolean"
}
}
},
"start_time": {
"type": "string"
},
"start_url": {
"type": "string"
},
"status": {
"type": "string"
},
"timezone": {
"type": "string"
},
"topic": {
"type": "string"
},
"type": {
"type": "integer"
},
"uuid": {
"type": "string"
}
},
"version": 1
}
@@ -0,0 +1,36 @@
{
"type": "object",
"properties": {
"created_at": {
"type": "string"
},
"duration": {
"type": "integer"
},
"host_id": {
"type": "string"
},
"id": {
"type": "integer"
},
"join_url": {
"type": "string"
},
"start_time": {
"type": "string"
},
"timezone": {
"type": "string"
},
"topic": {
"type": "string"
},
"type": {
"type": "integer"
},
"uuid": {
"type": "string"
}
},
"version": 2
}
+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="#fff" fill-rule="evenodd" stroke="#000" stroke-linecap="round" stroke-linejoin="round" viewBox="0 0 65 65"><use xlink:href="#a" x=".5" y=".5"/><symbol id="a" overflow="visible"><g fill-rule="nonzero" stroke="none"><path d="M0 32C0 14.272 14.272 0 32 0s32 14.272 32 32-14.272 32-32 32S0 49.728 0 32"/><path fill="#4a8cff" d="M3.137 32A28.8 28.8 0 0 1 32 3.137 28.8 28.8 0 0 1 60.862 32 28.8 28.8 0 0 1 32 60.862 28.8 28.8 0 0 1 3.137 32"/><path d="m40.784 28.254 8.157-5.961c.712-.58 1.255-.445 1.255.627v18.177c0 1.205-.678 1.067-1.255.627l-8.157-5.961zm-27.608-5.289v13.553a5.55 5.55 0 0 0 5.575 5.522h19.765a1.01 1.01 0 0 0 1.013-1.004V27.483a5.55 5.55 0 0 0-5.575-5.522H14.189a1.01 1.01 0 0 0-1.013 1.004"/></g></symbol></svg>

After

Width:  |  Height:  |  Size: 818 B