mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-11 12:57:29 -08:00
follow codebase conventions
This commit is contained in:
parent
37ff6a8f13
commit
83828a19ab
|
@ -14,7 +14,6 @@ import {
|
|||
|
||||
export async function zoomApiRequest(this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions, method: string, resource: string, body: object = {}, query: object = {}, headers: {} | undefined = undefined, option: {} = {}): Promise<any> { // tslint:disable-line:no-any
|
||||
|
||||
// tslint:disable-line:no-any
|
||||
const authenticationMethod = this.getNodeParameter('authentication', 0, 'accessToken') as string;
|
||||
|
||||
let options: OptionsWithUri = {
|
||||
|
|
|
@ -51,7 +51,7 @@ export const meetingFields = [
|
|||
/* meeting:create */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
{
|
||||
displayName: 'User Id',
|
||||
displayName: 'User ID',
|
||||
name: 'userId',
|
||||
type: 'string',
|
||||
default: '',
|
||||
|
@ -258,7 +258,7 @@ export const meetingFields = [
|
|||
name: 'scheduleFor',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Schedule meeting for someone else from your account, provide their email id.',
|
||||
description: 'Schedule meeting for someone else from your account, provide their email ID.',
|
||||
},
|
||||
{
|
||||
displayName: 'Start time',
|
||||
|
@ -290,7 +290,7 @@ export const meetingFields = [
|
|||
/* meeting:get */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
{
|
||||
displayName: 'Meeting Id',
|
||||
displayName: 'Meeting ID',
|
||||
name: 'meetingId',
|
||||
type: 'string',
|
||||
default: '',
|
||||
|
@ -345,7 +345,7 @@ export const meetingFields = [
|
|||
/* meeting:getAll */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
{
|
||||
displayName: 'User Id',
|
||||
displayName: 'User ID',
|
||||
name: 'userId',
|
||||
type: 'string',
|
||||
default: '',
|
||||
|
@ -448,7 +448,7 @@ export const meetingFields = [
|
|||
/* meeting:delete */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
{
|
||||
displayName: 'Meeting Id',
|
||||
displayName: 'Meeting ID',
|
||||
name: 'meetingId',
|
||||
type: 'string',
|
||||
default: '',
|
||||
|
@ -549,7 +549,7 @@ export const meetingFields = [
|
|||
name: 'alternative_hosts',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Alternative hosts email ids.',
|
||||
description: 'Alternative hosts email IDs.',
|
||||
},
|
||||
{
|
||||
displayName: 'Audio',
|
||||
|
@ -630,7 +630,7 @@ export const meetingFields = [
|
|||
description: 'Start video when host joins the meeting.',
|
||||
},
|
||||
{
|
||||
displayName: 'Occurrence Id',
|
||||
displayName: 'Occurrence ID',
|
||||
name: 'occurrenceId',
|
||||
type: 'string',
|
||||
default: '',
|
||||
|
@ -716,7 +716,7 @@ export const meetingFields = [
|
|||
name: 'scheduleFor',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Schedule meeting for someone else from your account, provide their email id.',
|
||||
description: 'Schedule meeting for someone else from your account, provide their email ID.',
|
||||
},
|
||||
{
|
||||
displayName: 'Start time',
|
||||
|
|
|
@ -155,7 +155,7 @@ export const meetingRegistrantFields = [
|
|||
description: 'Last Name.',
|
||||
},
|
||||
{
|
||||
displayName: 'Occurrence Ids',
|
||||
displayName: 'Occurrence IDs',
|
||||
name: 'occurrenceId',
|
||||
type: 'string',
|
||||
default: '',
|
||||
|
@ -251,7 +251,7 @@ export const meetingRegistrantFields = [
|
|||
/* meetingRegistrants:getAll */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
{
|
||||
displayName: 'Meeting Id',
|
||||
displayName: 'Meeting ID',
|
||||
name: 'meetingId',
|
||||
type: 'string',
|
||||
default: '',
|
||||
|
@ -328,11 +328,11 @@ export const meetingRegistrantFields = [
|
|||
},
|
||||
options: [
|
||||
{
|
||||
displayName: 'Occurrence Id',
|
||||
displayName: 'Occurrence ID',
|
||||
name: 'occurrence_id',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: `Occurrence Id.`,
|
||||
description: `Occurrence ID.`,
|
||||
},
|
||||
{
|
||||
displayName: 'Status',
|
||||
|
@ -362,7 +362,7 @@ export const meetingRegistrantFields = [
|
|||
/* meetingRegistrants:update */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
{
|
||||
displayName: 'Meeting Id',
|
||||
displayName: 'Meeting ID',
|
||||
name: 'meetingId',
|
||||
type: 'string',
|
||||
default: '',
|
||||
|
@ -429,7 +429,7 @@ export const meetingRegistrantFields = [
|
|||
},
|
||||
options: [
|
||||
{
|
||||
displayName: 'Occurrence Id',
|
||||
displayName: 'Occurrence ID',
|
||||
name: 'occurrenceId',
|
||||
type: 'string',
|
||||
default: '',
|
||||
|
|
|
@ -51,7 +51,7 @@ export const webinarFields = [
|
|||
/* webinar:create */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
{
|
||||
displayName: 'User Id',
|
||||
displayName: 'User ID',
|
||||
name: 'userId',
|
||||
type: 'string',
|
||||
default: '',
|
||||
|
@ -98,7 +98,7 @@ export const webinarFields = [
|
|||
name: 'alternative_hosts',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Alternative hosts email ids.',
|
||||
description: 'Alternative hosts email IDs.',
|
||||
},
|
||||
{
|
||||
displayName: 'Approval type',
|
||||
|
@ -272,7 +272,7 @@ export const webinarFields = [
|
|||
/* webinar:get */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
{
|
||||
displayName: 'Webinar Id',
|
||||
displayName: 'Webinar ID',
|
||||
name: 'webinarId',
|
||||
type: 'string',
|
||||
default: '',
|
||||
|
@ -308,7 +308,7 @@ export const webinarFields = [
|
|||
},
|
||||
options: [
|
||||
{
|
||||
displayName: 'Occurence Id',
|
||||
displayName: 'Occurence ID',
|
||||
name: 'occurenceId',
|
||||
type: 'string',
|
||||
default: '',
|
||||
|
@ -327,7 +327,7 @@ export const webinarFields = [
|
|||
/* webinar:getAll */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
{
|
||||
displayName: 'User Id',
|
||||
displayName: 'User ID',
|
||||
name: 'userId',
|
||||
type: 'string',
|
||||
default: '',
|
||||
|
@ -342,7 +342,7 @@ export const webinarFields = [
|
|||
],
|
||||
},
|
||||
},
|
||||
description: 'User ID or email-id.',
|
||||
description: 'User ID or email-ID.',
|
||||
},
|
||||
{
|
||||
displayName: 'Return All',
|
||||
|
@ -389,7 +389,7 @@ export const webinarFields = [
|
|||
/* webinar:delete */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
{
|
||||
displayName: 'Webinar Id',
|
||||
displayName: 'Webinar ID',
|
||||
name: 'webinarId',
|
||||
type: 'string',
|
||||
default: '',
|
||||
|
@ -404,7 +404,7 @@ export const webinarFields = [
|
|||
],
|
||||
},
|
||||
},
|
||||
description: 'WebinarId ID.',
|
||||
description: 'Webinar ID.',
|
||||
},
|
||||
{
|
||||
displayName: 'Additional Fields',
|
||||
|
@ -424,11 +424,11 @@ export const webinarFields = [
|
|||
},
|
||||
options: [
|
||||
{
|
||||
displayName: 'Occurrence Id',
|
||||
displayName: 'Occurrence ID',
|
||||
name: 'occurrenceId',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Webinar occurrence Id.',
|
||||
description: 'Webinar occurrence ID.',
|
||||
},
|
||||
|
||||
],
|
||||
|
@ -438,7 +438,7 @@ export const webinarFields = [
|
|||
/* webinar:update */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
{
|
||||
displayName: 'User Id',
|
||||
displayName: 'User ID',
|
||||
name: 'userId',
|
||||
type: 'string',
|
||||
default: '',
|
||||
|
@ -485,7 +485,7 @@ export const webinarFields = [
|
|||
name: 'alternative_hosts',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Alternative hosts email ids.',
|
||||
description: 'Alternative hosts email IDs.',
|
||||
},
|
||||
{
|
||||
displayName: 'Approval type',
|
||||
|
@ -566,11 +566,11 @@ export const webinarFields = [
|
|||
description: 'Start video when host joins the webinar.',
|
||||
},
|
||||
{
|
||||
displayName: 'Occurrence Id',
|
||||
displayName: 'Occurrence ID',
|
||||
name: 'occurrence_id',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: `Webinar occurrence Id.`,
|
||||
description: `Webinar occurrence ID.`,
|
||||
},
|
||||
{
|
||||
displayName: 'Password',
|
||||
|
|
|
@ -163,13 +163,13 @@ export class Zoom implements INodeType {
|
|||
async execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]> {
|
||||
const items = this.getInputData();
|
||||
const returnData: IDataObject[] = [];
|
||||
const length = (items.length as unknown) as number;
|
||||
let qs: IDataObject;
|
||||
let qs: IDataObject = {};
|
||||
let body: IDataObject = {};
|
||||
let responseData;
|
||||
const resource = this.getNodeParameter('resource', 0) as string;
|
||||
const operation = this.getNodeParameter('operation', 0) as string;
|
||||
let body: IDataObject = {};
|
||||
for (let i = 0; i < length; i++) {
|
||||
|
||||
for (let i = 0; i < items.length; i++) {
|
||||
qs = {};
|
||||
//https://marketplace.zoom.us/docs/api-reference/zoom-api/
|
||||
if (resource === 'meeting') {
|
||||
|
|
Loading…
Reference in a new issue