mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -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
|
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;
|
const authenticationMethod = this.getNodeParameter('authentication', 0, 'accessToken') as string;
|
||||||
|
|
||||||
let options: OptionsWithUri = {
|
let options: OptionsWithUri = {
|
||||||
|
|
|
@ -51,7 +51,7 @@ export const meetingFields = [
|
||||||
/* meeting:create */
|
/* meeting:create */
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
{
|
{
|
||||||
displayName: 'User Id',
|
displayName: 'User ID',
|
||||||
name: 'userId',
|
name: 'userId',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
|
@ -258,7 +258,7 @@ export const meetingFields = [
|
||||||
name: 'scheduleFor',
|
name: 'scheduleFor',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
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',
|
displayName: 'Start time',
|
||||||
|
@ -290,7 +290,7 @@ export const meetingFields = [
|
||||||
/* meeting:get */
|
/* meeting:get */
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
{
|
{
|
||||||
displayName: 'Meeting Id',
|
displayName: 'Meeting ID',
|
||||||
name: 'meetingId',
|
name: 'meetingId',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
|
@ -345,7 +345,7 @@ export const meetingFields = [
|
||||||
/* meeting:getAll */
|
/* meeting:getAll */
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
{
|
{
|
||||||
displayName: 'User Id',
|
displayName: 'User ID',
|
||||||
name: 'userId',
|
name: 'userId',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
|
@ -448,7 +448,7 @@ export const meetingFields = [
|
||||||
/* meeting:delete */
|
/* meeting:delete */
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
{
|
{
|
||||||
displayName: 'Meeting Id',
|
displayName: 'Meeting ID',
|
||||||
name: 'meetingId',
|
name: 'meetingId',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
|
@ -549,7 +549,7 @@ export const meetingFields = [
|
||||||
name: 'alternative_hosts',
|
name: 'alternative_hosts',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
description: 'Alternative hosts email ids.',
|
description: 'Alternative hosts email IDs.',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Audio',
|
displayName: 'Audio',
|
||||||
|
@ -630,7 +630,7 @@ export const meetingFields = [
|
||||||
description: 'Start video when host joins the meeting.',
|
description: 'Start video when host joins the meeting.',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Occurrence Id',
|
displayName: 'Occurrence ID',
|
||||||
name: 'occurrenceId',
|
name: 'occurrenceId',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
|
@ -716,7 +716,7 @@ export const meetingFields = [
|
||||||
name: 'scheduleFor',
|
name: 'scheduleFor',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
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',
|
displayName: 'Start time',
|
||||||
|
|
|
@ -155,7 +155,7 @@ export const meetingRegistrantFields = [
|
||||||
description: 'Last Name.',
|
description: 'Last Name.',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Occurrence Ids',
|
displayName: 'Occurrence IDs',
|
||||||
name: 'occurrenceId',
|
name: 'occurrenceId',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
|
@ -251,7 +251,7 @@ export const meetingRegistrantFields = [
|
||||||
/* meetingRegistrants:getAll */
|
/* meetingRegistrants:getAll */
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
{
|
{
|
||||||
displayName: 'Meeting Id',
|
displayName: 'Meeting ID',
|
||||||
name: 'meetingId',
|
name: 'meetingId',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
|
@ -328,11 +328,11 @@ export const meetingRegistrantFields = [
|
||||||
},
|
},
|
||||||
options: [
|
options: [
|
||||||
{
|
{
|
||||||
displayName: 'Occurrence Id',
|
displayName: 'Occurrence ID',
|
||||||
name: 'occurrence_id',
|
name: 'occurrence_id',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
description: `Occurrence Id.`,
|
description: `Occurrence ID.`,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Status',
|
displayName: 'Status',
|
||||||
|
@ -362,7 +362,7 @@ export const meetingRegistrantFields = [
|
||||||
/* meetingRegistrants:update */
|
/* meetingRegistrants:update */
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
{
|
{
|
||||||
displayName: 'Meeting Id',
|
displayName: 'Meeting ID',
|
||||||
name: 'meetingId',
|
name: 'meetingId',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
|
@ -429,7 +429,7 @@ export const meetingRegistrantFields = [
|
||||||
},
|
},
|
||||||
options: [
|
options: [
|
||||||
{
|
{
|
||||||
displayName: 'Occurrence Id',
|
displayName: 'Occurrence ID',
|
||||||
name: 'occurrenceId',
|
name: 'occurrenceId',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
|
|
|
@ -51,7 +51,7 @@ export const webinarFields = [
|
||||||
/* webinar:create */
|
/* webinar:create */
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
{
|
{
|
||||||
displayName: 'User Id',
|
displayName: 'User ID',
|
||||||
name: 'userId',
|
name: 'userId',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
|
@ -98,7 +98,7 @@ export const webinarFields = [
|
||||||
name: 'alternative_hosts',
|
name: 'alternative_hosts',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
description: 'Alternative hosts email ids.',
|
description: 'Alternative hosts email IDs.',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Approval type',
|
displayName: 'Approval type',
|
||||||
|
@ -272,7 +272,7 @@ export const webinarFields = [
|
||||||
/* webinar:get */
|
/* webinar:get */
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
{
|
{
|
||||||
displayName: 'Webinar Id',
|
displayName: 'Webinar ID',
|
||||||
name: 'webinarId',
|
name: 'webinarId',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
|
@ -308,7 +308,7 @@ export const webinarFields = [
|
||||||
},
|
},
|
||||||
options: [
|
options: [
|
||||||
{
|
{
|
||||||
displayName: 'Occurence Id',
|
displayName: 'Occurence ID',
|
||||||
name: 'occurenceId',
|
name: 'occurenceId',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
|
@ -327,7 +327,7 @@ export const webinarFields = [
|
||||||
/* webinar:getAll */
|
/* webinar:getAll */
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
{
|
{
|
||||||
displayName: 'User Id',
|
displayName: 'User ID',
|
||||||
name: 'userId',
|
name: 'userId',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
|
@ -342,7 +342,7 @@ export const webinarFields = [
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
description: 'User ID or email-id.',
|
description: 'User ID or email-ID.',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Return All',
|
displayName: 'Return All',
|
||||||
|
@ -389,7 +389,7 @@ export const webinarFields = [
|
||||||
/* webinar:delete */
|
/* webinar:delete */
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
{
|
{
|
||||||
displayName: 'Webinar Id',
|
displayName: 'Webinar ID',
|
||||||
name: 'webinarId',
|
name: 'webinarId',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
|
@ -404,7 +404,7 @@ export const webinarFields = [
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
description: 'WebinarId ID.',
|
description: 'Webinar ID.',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Additional Fields',
|
displayName: 'Additional Fields',
|
||||||
|
@ -424,11 +424,11 @@ export const webinarFields = [
|
||||||
},
|
},
|
||||||
options: [
|
options: [
|
||||||
{
|
{
|
||||||
displayName: 'Occurrence Id',
|
displayName: 'Occurrence ID',
|
||||||
name: 'occurrenceId',
|
name: 'occurrenceId',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
description: 'Webinar occurrence Id.',
|
description: 'Webinar occurrence ID.',
|
||||||
},
|
},
|
||||||
|
|
||||||
],
|
],
|
||||||
|
@ -438,7 +438,7 @@ export const webinarFields = [
|
||||||
/* webinar:update */
|
/* webinar:update */
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
{
|
{
|
||||||
displayName: 'User Id',
|
displayName: 'User ID',
|
||||||
name: 'userId',
|
name: 'userId',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
|
@ -485,7 +485,7 @@ export const webinarFields = [
|
||||||
name: 'alternative_hosts',
|
name: 'alternative_hosts',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
description: 'Alternative hosts email ids.',
|
description: 'Alternative hosts email IDs.',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Approval type',
|
displayName: 'Approval type',
|
||||||
|
@ -566,11 +566,11 @@ export const webinarFields = [
|
||||||
description: 'Start video when host joins the webinar.',
|
description: 'Start video when host joins the webinar.',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Occurrence Id',
|
displayName: 'Occurrence ID',
|
||||||
name: 'occurrence_id',
|
name: 'occurrence_id',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
description: `Webinar occurrence Id.`,
|
description: `Webinar occurrence ID.`,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Password',
|
displayName: 'Password',
|
||||||
|
|
|
@ -163,13 +163,13 @@ export class Zoom implements INodeType {
|
||||||
async execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]> {
|
async execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]> {
|
||||||
const items = this.getInputData();
|
const items = this.getInputData();
|
||||||
const returnData: IDataObject[] = [];
|
const returnData: IDataObject[] = [];
|
||||||
const length = (items.length as unknown) as number;
|
let qs: IDataObject = {};
|
||||||
let qs: IDataObject;
|
let body: IDataObject = {};
|
||||||
let responseData;
|
let responseData;
|
||||||
const resource = this.getNodeParameter('resource', 0) as string;
|
const resource = this.getNodeParameter('resource', 0) as string;
|
||||||
const operation = this.getNodeParameter('operation', 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 = {};
|
qs = {};
|
||||||
//https://marketplace.zoom.us/docs/api-reference/zoom-api/
|
//https://marketplace.zoom.us/docs/api-reference/zoom-api/
|
||||||
if (resource === 'meeting') {
|
if (resource === 'meeting') {
|
||||||
|
|
Loading…
Reference in a new issue