follow codebase conventions

This commit is contained in:
shraddha shaligram 2020-06-23 14:26:00 -07:00
parent 37ff6a8f13
commit 83828a19ab
5 changed files with 32 additions and 33 deletions

View file

@ -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 = {

View file

@ -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',

View file

@ -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: '',

View file

@ -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',

View file

@ -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') {