mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-21 02:56:40 -08:00
Merge pull request #680 from MLH-Fellowship/google-tasks-api
Google Tasks Node
This commit is contained in:
commit
8116b5f970
|
@ -0,0 +1,17 @@
|
||||||
|
import { ICredentialType, NodePropertyTypes } from 'n8n-workflow';
|
||||||
|
|
||||||
|
const scopes = ['https://www.googleapis.com/auth/tasks'];
|
||||||
|
|
||||||
|
export class GoogleTasksOAuth2Api implements ICredentialType {
|
||||||
|
name = 'googleTasksOAuth2Api';
|
||||||
|
extends = ['googleOAuth2Api'];
|
||||||
|
displayName = 'Google Tasks OAuth2 API';
|
||||||
|
properties = [
|
||||||
|
{
|
||||||
|
displayName: 'Scope',
|
||||||
|
name: 'scope',
|
||||||
|
type: 'hidden' as NodePropertyTypes,
|
||||||
|
default: scopes.join(' ')
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
File diff suppressed because it is too large
Load diff
|
@ -1,6 +1,4 @@
|
||||||
import {
|
import { IExecuteFunctions } from 'n8n-core';
|
||||||
IExecuteFunctions,
|
|
||||||
} from 'n8n-core';
|
|
||||||
|
|
||||||
import {
|
import {
|
||||||
IDataObject,
|
IDataObject,
|
||||||
|
@ -8,22 +6,14 @@ import {
|
||||||
INodeTypeDescription,
|
INodeTypeDescription,
|
||||||
INodeType,
|
INodeType,
|
||||||
ILoadOptionsFunctions,
|
ILoadOptionsFunctions,
|
||||||
INodePropertyOptions,
|
INodePropertyOptions
|
||||||
} from 'n8n-workflow';
|
} from 'n8n-workflow';
|
||||||
|
|
||||||
import {
|
import { googleApiRequest, googleApiRequestAllItems } from './GenericFunctions';
|
||||||
googleApiRequest,
|
|
||||||
googleApiRequestAllItems,
|
|
||||||
} from './GenericFunctions';
|
|
||||||
|
|
||||||
import {
|
import { eventOperations, eventFields } from './EventDescription';
|
||||||
eventOperations,
|
|
||||||
eventFields,
|
|
||||||
} from './EventDescription';
|
|
||||||
|
|
||||||
import {
|
import { IEvent } from './EventInterface';
|
||||||
IEvent,
|
|
||||||
} from './EventInterface';
|
|
||||||
|
|
||||||
import * as moment from 'moment-timezone';
|
import * as moment from 'moment-timezone';
|
||||||
|
|
||||||
|
@ -38,15 +28,15 @@ export class GoogleCalendar implements INodeType {
|
||||||
description: 'Consume Google Calendar API.',
|
description: 'Consume Google Calendar API.',
|
||||||
defaults: {
|
defaults: {
|
||||||
name: 'Google Calendar',
|
name: 'Google Calendar',
|
||||||
color: '#3E87E4',
|
color: '#3E87E4'
|
||||||
},
|
},
|
||||||
inputs: ['main'],
|
inputs: ['main'],
|
||||||
outputs: ['main'],
|
outputs: ['main'],
|
||||||
credentials: [
|
credentials: [
|
||||||
{
|
{
|
||||||
name: 'googleCalendarOAuth2Api',
|
name: 'googleCalendarOAuth2Api',
|
||||||
required: true,
|
required: true
|
||||||
},
|
}
|
||||||
],
|
],
|
||||||
properties: [
|
properties: [
|
||||||
{
|
{
|
||||||
|
@ -56,70 +46,85 @@ export class GoogleCalendar implements INodeType {
|
||||||
options: [
|
options: [
|
||||||
{
|
{
|
||||||
name: 'Event',
|
name: 'Event',
|
||||||
value: 'event',
|
value: 'event'
|
||||||
},
|
}
|
||||||
],
|
],
|
||||||
default: 'event',
|
default: 'event',
|
||||||
description: 'The resource to operate on.',
|
description: 'The resource to operate on.'
|
||||||
},
|
},
|
||||||
...eventOperations,
|
...eventOperations,
|
||||||
...eventFields,
|
...eventFields
|
||||||
],
|
]
|
||||||
};
|
};
|
||||||
|
|
||||||
methods = {
|
methods = {
|
||||||
loadOptions: {
|
loadOptions: {
|
||||||
// Get all the calendars to display them to user so that he can
|
// Get all the calendars to display them to user so that he can
|
||||||
// select them easily
|
// select them easily
|
||||||
async getCalendars(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
|
async getCalendars(
|
||||||
|
this: ILoadOptionsFunctions
|
||||||
|
): Promise<INodePropertyOptions[]> {
|
||||||
const returnData: INodePropertyOptions[] = [];
|
const returnData: INodePropertyOptions[] = [];
|
||||||
const calendars = await googleApiRequestAllItems.call(this, 'items', 'GET', '/calendar/v3/users/me/calendarList');
|
const calendars = await googleApiRequestAllItems.call(
|
||||||
|
this,
|
||||||
|
'items',
|
||||||
|
'GET',
|
||||||
|
'/calendar/v3/users/me/calendarList'
|
||||||
|
);
|
||||||
for (const calendar of calendars) {
|
for (const calendar of calendars) {
|
||||||
const calendarName = calendar.summary;
|
const calendarName = calendar.summary;
|
||||||
const calendarId = calendar.id;
|
const calendarId = calendar.id;
|
||||||
returnData.push({
|
returnData.push({
|
||||||
name: calendarName,
|
name: calendarName,
|
||||||
value: calendarId,
|
value: calendarId
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
return returnData;
|
return returnData;
|
||||||
},
|
},
|
||||||
// Get all the colors to display them to user so that he can
|
// Get all the colors to display them to user so that he can
|
||||||
// select them easily
|
// select them easily
|
||||||
async getColors(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
|
async getColors(
|
||||||
|
this: ILoadOptionsFunctions
|
||||||
|
): Promise<INodePropertyOptions[]> {
|
||||||
const returnData: INodePropertyOptions[] = [];
|
const returnData: INodePropertyOptions[] = [];
|
||||||
const { calendar } = await googleApiRequest.call(this, 'GET', '/calendar/v3/colors');
|
const { calendar } = await googleApiRequest.call(
|
||||||
for (const key of Object.keys(calendar)) {
|
this,
|
||||||
|
'GET',
|
||||||
|
'/calendar/v3/colors'
|
||||||
|
);
|
||||||
|
for (const key of Object.keys(calendar)) {
|
||||||
const colorName = calendar[key].background;
|
const colorName = calendar[key].background;
|
||||||
const colorId = key;
|
const colorId = key;
|
||||||
returnData.push({
|
returnData.push({
|
||||||
name: `${colorName} - ${colorId}`,
|
name: `${colorName} - ${colorId}`,
|
||||||
value: colorId,
|
value: colorId
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
return returnData;
|
return returnData;
|
||||||
},
|
},
|
||||||
// Get all the timezones to display them to user so that he can
|
// Get all the timezones to display them to user so that he can
|
||||||
// select them easily
|
// select them easily
|
||||||
async getTimezones(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
|
async getTimezones(
|
||||||
|
this: ILoadOptionsFunctions
|
||||||
|
): Promise<INodePropertyOptions[]> {
|
||||||
const returnData: INodePropertyOptions[] = [];
|
const returnData: INodePropertyOptions[] = [];
|
||||||
for (const timezone of moment.tz.names()) {
|
for (const timezone of moment.tz.names()) {
|
||||||
const timezoneName = timezone;
|
const timezoneName = timezone;
|
||||||
const timezoneId = timezone;
|
const timezoneId = timezone;
|
||||||
returnData.push({
|
returnData.push({
|
||||||
name: timezoneName,
|
name: timezoneName,
|
||||||
value: timezoneId,
|
value: timezoneId
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
return returnData;
|
return returnData;
|
||||||
},
|
}
|
||||||
},
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
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;
|
const length = (items.length as unknown) as number;
|
||||||
const qs: IDataObject = {};
|
const qs: IDataObject = {};
|
||||||
let responseData;
|
let responseData;
|
||||||
const resource = this.getNodeParameter('resource', 0) as string;
|
const resource = this.getNodeParameter('resource', 0) as string;
|
||||||
|
@ -131,8 +136,14 @@ export class GoogleCalendar implements INodeType {
|
||||||
const calendarId = this.getNodeParameter('calendar', i) as string;
|
const calendarId = this.getNodeParameter('calendar', i) as string;
|
||||||
const start = this.getNodeParameter('start', i) as string;
|
const start = this.getNodeParameter('start', i) as string;
|
||||||
const end = this.getNodeParameter('end', i) as string;
|
const end = this.getNodeParameter('end', i) as string;
|
||||||
const useDefaultReminders = this.getNodeParameter('useDefaultReminders', i) as boolean;
|
const useDefaultReminders = this.getNodeParameter(
|
||||||
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
'useDefaultReminders',
|
||||||
|
i
|
||||||
|
) as boolean;
|
||||||
|
const additionalFields = this.getNodeParameter(
|
||||||
|
'additionalFields',
|
||||||
|
i
|
||||||
|
) as IDataObject;
|
||||||
if (additionalFields.maxAttendees) {
|
if (additionalFields.maxAttendees) {
|
||||||
qs.maxAttendees = additionalFields.maxAttendees as number;
|
qs.maxAttendees = additionalFields.maxAttendees as number;
|
||||||
}
|
}
|
||||||
|
@ -145,17 +156,19 @@ export class GoogleCalendar implements INodeType {
|
||||||
const body: IEvent = {
|
const body: IEvent = {
|
||||||
start: {
|
start: {
|
||||||
dateTime: start,
|
dateTime: start,
|
||||||
timeZone: additionalFields.timeZone || this.getTimezone(),
|
timeZone: additionalFields.timeZone || this.getTimezone()
|
||||||
},
|
},
|
||||||
end: {
|
end: {
|
||||||
dateTime: end,
|
dateTime: end,
|
||||||
timeZone: additionalFields.timeZone || this.getTimezone(),
|
timeZone: additionalFields.timeZone || this.getTimezone()
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
if (additionalFields.attendees) {
|
if (additionalFields.attendees) {
|
||||||
body.attendees = (additionalFields.attendees as string[]).map(attendee => {
|
body.attendees = (additionalFields.attendees as string[]).map(
|
||||||
return { email: attendee };
|
attendee => {
|
||||||
});
|
return { email: attendee };
|
||||||
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
if (additionalFields.color) {
|
if (additionalFields.color) {
|
||||||
body.colorId = additionalFields.color as string;
|
body.colorId = additionalFields.color as string;
|
||||||
|
@ -188,9 +201,12 @@ export class GoogleCalendar implements INodeType {
|
||||||
body.visibility = additionalFields.visibility as string;
|
body.visibility = additionalFields.visibility as string;
|
||||||
}
|
}
|
||||||
if (!useDefaultReminders) {
|
if (!useDefaultReminders) {
|
||||||
const reminders = (this.getNodeParameter('remindersUi', i) as IDataObject).remindersValues as IDataObject[];
|
const reminders = (this.getNodeParameter(
|
||||||
|
'remindersUi',
|
||||||
|
i
|
||||||
|
) as IDataObject).remindersValues as IDataObject[];
|
||||||
body.reminders = {
|
body.reminders = {
|
||||||
useDefault: false,
|
useDefault: false
|
||||||
};
|
};
|
||||||
if (reminders) {
|
if (reminders) {
|
||||||
body.reminders.overrides = reminders;
|
body.reminders.overrides = reminders;
|
||||||
|
@ -198,32 +214,54 @@ export class GoogleCalendar implements INodeType {
|
||||||
}
|
}
|
||||||
if (additionalFields.allday) {
|
if (additionalFields.allday) {
|
||||||
body.start = {
|
body.start = {
|
||||||
date: moment(start).utc().format('YYYY-MM-DD'),
|
date: moment(start)
|
||||||
|
.utc()
|
||||||
|
.format('YYYY-MM-DD')
|
||||||
};
|
};
|
||||||
body.end = {
|
body.end = {
|
||||||
date: moment(end).utc().format('YYYY-MM-DD'),
|
date: moment(end)
|
||||||
|
.utc()
|
||||||
|
.format('YYYY-MM-DD')
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
//exampel: RRULE:FREQ=WEEKLY;INTERVAL=2;COUNT=10;UNTIL=20110701T170000Z
|
//exampel: RRULE:FREQ=WEEKLY;INTERVAL=2;COUNT=10;UNTIL=20110701T170000Z
|
||||||
//https://icalendar.org/iCalendar-RFC-5545/3-8-5-3-recurrence-rule.html
|
//https://icalendar.org/iCalendar-RFC-5545/3-8-5-3-recurrence-rule.html
|
||||||
body.recurrence = [];
|
body.recurrence = [];
|
||||||
if (additionalFields.repeatHowManyTimes
|
if (
|
||||||
&& additionalFields.repeatUntil) {
|
additionalFields.repeatHowManyTimes &&
|
||||||
throw new Error(`You can set either 'Repeat How Many Times' or 'Repeat Until' but not both`);
|
additionalFields.repeatUntil
|
||||||
|
) {
|
||||||
|
throw new Error(
|
||||||
|
`You can set either 'Repeat How Many Times' or 'Repeat Until' but not both`
|
||||||
|
);
|
||||||
}
|
}
|
||||||
if (additionalFields.repeatFrecuency) {
|
if (additionalFields.repeatFrecuency) {
|
||||||
body.recurrence?.push(`FREQ=${(additionalFields.repeatFrecuency as string).toUpperCase()};`);
|
body.recurrence?.push(
|
||||||
|
`FREQ=${(additionalFields.repeatFrecuency as string).toUpperCase()};`
|
||||||
|
);
|
||||||
}
|
}
|
||||||
if (additionalFields.repeatHowManyTimes) {
|
if (additionalFields.repeatHowManyTimes) {
|
||||||
body.recurrence?.push(`COUNT=${additionalFields.repeatHowManyTimes};`);
|
body.recurrence?.push(
|
||||||
|
`COUNT=${additionalFields.repeatHowManyTimes};`
|
||||||
|
);
|
||||||
}
|
}
|
||||||
if (additionalFields.repeatUntil) {
|
if (additionalFields.repeatUntil) {
|
||||||
body.recurrence?.push(`UNTIL=${moment(additionalFields.repeatUntil as string).utc().format('YYYYMMDDTHHmmss')}Z`);
|
body.recurrence?.push(
|
||||||
|
`UNTIL=${moment(additionalFields.repeatUntil as string)
|
||||||
|
.utc()
|
||||||
|
.format('YYYYMMDDTHHmmss')}Z`
|
||||||
|
);
|
||||||
}
|
}
|
||||||
if (body.recurrence.length !== 0) {
|
if (body.recurrence.length !== 0) {
|
||||||
body.recurrence = [`RRULE:${body.recurrence.join('')}`];
|
body.recurrence = [`RRULE:${body.recurrence.join('')}`];
|
||||||
}
|
}
|
||||||
responseData = await googleApiRequest.call(this, 'POST', `/calendar/v3/calendars/${calendarId}/events`, body, qs);
|
responseData = await googleApiRequest.call(
|
||||||
|
this,
|
||||||
|
'POST',
|
||||||
|
`/calendar/v3/calendars/${calendarId}/events`,
|
||||||
|
body,
|
||||||
|
qs
|
||||||
|
);
|
||||||
}
|
}
|
||||||
//https://developers.google.com/calendar/v3/reference/events/delete
|
//https://developers.google.com/calendar/v3/reference/events/delete
|
||||||
if (operation === 'delete') {
|
if (operation === 'delete') {
|
||||||
|
@ -233,8 +271,13 @@ export class GoogleCalendar implements INodeType {
|
||||||
if (options.sendUpdates) {
|
if (options.sendUpdates) {
|
||||||
qs.sendUpdates = options.sendUpdates as number;
|
qs.sendUpdates = options.sendUpdates as number;
|
||||||
}
|
}
|
||||||
responseData = await googleApiRequest.call(this, 'DELETE', `/calendar/v3/calendars/${calendarId}/events/${eventId}`, {});
|
responseData = await googleApiRequest.call(
|
||||||
responseData = { success: true };
|
this,
|
||||||
|
'DELETE',
|
||||||
|
`/calendar/v3/calendars/${calendarId}/events/${eventId}`,
|
||||||
|
{}
|
||||||
|
);
|
||||||
|
responseData = { success: true };
|
||||||
}
|
}
|
||||||
//https://developers.google.com/calendar/v3/reference/events/get
|
//https://developers.google.com/calendar/v3/reference/events/get
|
||||||
if (operation === 'get') {
|
if (operation === 'get') {
|
||||||
|
@ -247,7 +290,13 @@ export class GoogleCalendar implements INodeType {
|
||||||
if (options.timeZone) {
|
if (options.timeZone) {
|
||||||
qs.timeZone = options.timeZone as string;
|
qs.timeZone = options.timeZone as string;
|
||||||
}
|
}
|
||||||
responseData = await googleApiRequest.call(this, 'GET', `/calendar/v3/calendars/${calendarId}/events/${eventId}`, {}, qs);
|
responseData = await googleApiRequest.call(
|
||||||
|
this,
|
||||||
|
'GET',
|
||||||
|
`/calendar/v3/calendars/${calendarId}/events/${eventId}`,
|
||||||
|
{},
|
||||||
|
qs
|
||||||
|
);
|
||||||
}
|
}
|
||||||
//https://developers.google.com/calendar/v3/reference/events/list
|
//https://developers.google.com/calendar/v3/reference/events/list
|
||||||
if (operation === 'getAll') {
|
if (operation === 'getAll') {
|
||||||
|
@ -288,10 +337,23 @@ export class GoogleCalendar implements INodeType {
|
||||||
qs.updatedMin = options.updatedMin as string;
|
qs.updatedMin = options.updatedMin as string;
|
||||||
}
|
}
|
||||||
if (returnAll) {
|
if (returnAll) {
|
||||||
responseData = await googleApiRequestAllItems.call(this, 'items', 'GET', `/calendar/v3/calendars/${calendarId}/events`, {}, qs);
|
responseData = await googleApiRequestAllItems.call(
|
||||||
|
this,
|
||||||
|
'items',
|
||||||
|
'GET',
|
||||||
|
`/calendar/v3/calendars/${calendarId}/events`,
|
||||||
|
{},
|
||||||
|
qs
|
||||||
|
);
|
||||||
} else {
|
} else {
|
||||||
qs.maxResults = this.getNodeParameter('limit', i) as number;
|
qs.maxResults = this.getNodeParameter('limit', i) as number;
|
||||||
responseData = await googleApiRequest.call(this, 'GET', `/calendar/v3/calendars/${calendarId}/events`, {}, qs);
|
responseData = await googleApiRequest.call(
|
||||||
|
this,
|
||||||
|
'GET',
|
||||||
|
`/calendar/v3/calendars/${calendarId}/events`,
|
||||||
|
{},
|
||||||
|
qs
|
||||||
|
);
|
||||||
responseData = responseData.items;
|
responseData = responseData.items;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -299,8 +361,14 @@ export class GoogleCalendar implements INodeType {
|
||||||
if (operation === 'update') {
|
if (operation === 'update') {
|
||||||
const calendarId = this.getNodeParameter('calendar', i) as string;
|
const calendarId = this.getNodeParameter('calendar', i) as string;
|
||||||
const eventId = this.getNodeParameter('eventId', i) as string;
|
const eventId = this.getNodeParameter('eventId', i) as string;
|
||||||
const useDefaultReminders = this.getNodeParameter('useDefaultReminders', i) as boolean;
|
const useDefaultReminders = this.getNodeParameter(
|
||||||
const updateFields = this.getNodeParameter('updateFields', i) as IDataObject;
|
'useDefaultReminders',
|
||||||
|
i
|
||||||
|
) as boolean;
|
||||||
|
const updateFields = this.getNodeParameter(
|
||||||
|
'updateFields',
|
||||||
|
i
|
||||||
|
) as IDataObject;
|
||||||
if (updateFields.maxAttendees) {
|
if (updateFields.maxAttendees) {
|
||||||
qs.maxAttendees = updateFields.maxAttendees as number;
|
qs.maxAttendees = updateFields.maxAttendees as number;
|
||||||
}
|
}
|
||||||
|
@ -314,19 +382,21 @@ export class GoogleCalendar implements INodeType {
|
||||||
if (updateFields.start) {
|
if (updateFields.start) {
|
||||||
body.start = {
|
body.start = {
|
||||||
dateTime: updateFields.start,
|
dateTime: updateFields.start,
|
||||||
timeZone: updateFields.timeZone || this.getTimezone(),
|
timeZone: updateFields.timeZone || this.getTimezone()
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
if (updateFields.end) {
|
if (updateFields.end) {
|
||||||
body.end = {
|
body.end = {
|
||||||
dateTime: updateFields.end,
|
dateTime: updateFields.end,
|
||||||
timeZone: updateFields.timeZone || this.getTimezone(),
|
timeZone: updateFields.timeZone || this.getTimezone()
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
if (updateFields.attendees) {
|
if (updateFields.attendees) {
|
||||||
body.attendees = (updateFields.attendees as string[]).map(attendee => {
|
body.attendees = (updateFields.attendees as string[]).map(
|
||||||
return { email: attendee };
|
attendee => {
|
||||||
});
|
return { email: attendee };
|
||||||
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
if (updateFields.color) {
|
if (updateFields.color) {
|
||||||
body.colorId = updateFields.color as string;
|
body.colorId = updateFields.color as string;
|
||||||
|
@ -359,46 +429,64 @@ export class GoogleCalendar implements INodeType {
|
||||||
body.visibility = updateFields.visibility as string;
|
body.visibility = updateFields.visibility as string;
|
||||||
}
|
}
|
||||||
if (!useDefaultReminders) {
|
if (!useDefaultReminders) {
|
||||||
const reminders = (this.getNodeParameter('remindersUi', i) as IDataObject).remindersValues as IDataObject[];
|
const reminders = (this.getNodeParameter(
|
||||||
|
'remindersUi',
|
||||||
|
i
|
||||||
|
) as IDataObject).remindersValues as IDataObject[];
|
||||||
body.reminders = {
|
body.reminders = {
|
||||||
useDefault: false,
|
useDefault: false
|
||||||
};
|
};
|
||||||
if (reminders) {
|
if (reminders) {
|
||||||
body.reminders.overrides = reminders;
|
body.reminders.overrides = reminders;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (updateFields.allday
|
if (updateFields.allday && updateFields.start && updateFields.end) {
|
||||||
&& updateFields.start
|
|
||||||
&& updateFields.end) {
|
|
||||||
body.start = {
|
body.start = {
|
||||||
date: moment(updateFields.start as string).utc().format('YYYY-MM-DD'),
|
date: moment(updateFields.start as string)
|
||||||
|
.utc()
|
||||||
|
.format('YYYY-MM-DD')
|
||||||
};
|
};
|
||||||
body.end = {
|
body.end = {
|
||||||
date: moment(updateFields.end as string).utc().format('YYYY-MM-DD'),
|
date: moment(updateFields.end as string)
|
||||||
|
.utc()
|
||||||
|
.format('YYYY-MM-DD')
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
//exampel: RRULE:FREQ=WEEKLY;INTERVAL=2;COUNT=10;UNTIL=20110701T170000Z
|
//exampel: RRULE:FREQ=WEEKLY;INTERVAL=2;COUNT=10;UNTIL=20110701T170000Z
|
||||||
//https://icalendar.org/iCalendar-RFC-5545/3-8-5-3-recurrence-rule.html
|
//https://icalendar.org/iCalendar-RFC-5545/3-8-5-3-recurrence-rule.html
|
||||||
body.recurrence = [];
|
body.recurrence = [];
|
||||||
if (updateFields.repeatHowManyTimes
|
if (updateFields.repeatHowManyTimes && updateFields.repeatUntil) {
|
||||||
&& updateFields.repeatUntil) {
|
throw new Error(
|
||||||
throw new Error(`You can set either 'Repeat How Many Times' or 'Repeat Until' but not both`);
|
`You can set either 'Repeat How Many Times' or 'Repeat Until' but not both`
|
||||||
|
);
|
||||||
}
|
}
|
||||||
if (updateFields.repeatFrecuency) {
|
if (updateFields.repeatFrecuency) {
|
||||||
body.recurrence?.push(`FREQ=${(updateFields.repeatFrecuency as string).toUpperCase()};`);
|
body.recurrence?.push(
|
||||||
|
`FREQ=${(updateFields.repeatFrecuency as string).toUpperCase()};`
|
||||||
|
);
|
||||||
}
|
}
|
||||||
if (updateFields.repeatHowManyTimes) {
|
if (updateFields.repeatHowManyTimes) {
|
||||||
body.recurrence?.push(`COUNT=${updateFields.repeatHowManyTimes};`);
|
body.recurrence?.push(`COUNT=${updateFields.repeatHowManyTimes};`);
|
||||||
}
|
}
|
||||||
if (updateFields.repeatUntil) {
|
if (updateFields.repeatUntil) {
|
||||||
body.recurrence?.push(`UNTIL=${moment(updateFields.repeatUntil as string).utc().format('YYYYMMDDTHHmmss')}Z`);
|
body.recurrence?.push(
|
||||||
|
`UNTIL=${moment(updateFields.repeatUntil as string)
|
||||||
|
.utc()
|
||||||
|
.format('YYYYMMDDTHHmmss')}Z`
|
||||||
|
);
|
||||||
}
|
}
|
||||||
if (body.recurrence.length !== 0) {
|
if (body.recurrence.length !== 0) {
|
||||||
body.recurrence = [`RRULE:${body.recurrence.join('')}`];
|
body.recurrence = [`RRULE:${body.recurrence.join('')}`];
|
||||||
} else {
|
} else {
|
||||||
delete body.recurrence;
|
delete body.recurrence;
|
||||||
}
|
}
|
||||||
responseData = await googleApiRequest.call(this, 'PATCH', `/calendar/v3/calendars/${calendarId}/events/${eventId}`, body, qs);
|
responseData = await googleApiRequest.call(
|
||||||
|
this,
|
||||||
|
'PATCH',
|
||||||
|
`/calendar/v3/calendars/${calendarId}/events/${eventId}`,
|
||||||
|
body,
|
||||||
|
qs
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
83
packages/nodes-base/nodes/Google/Task/GenericFunctions.ts
Normal file
83
packages/nodes-base/nodes/Google/Task/GenericFunctions.ts
Normal file
|
@ -0,0 +1,83 @@
|
||||||
|
import { OptionsWithUri } from 'request';
|
||||||
|
|
||||||
|
import {
|
||||||
|
IExecuteFunctions,
|
||||||
|
IExecuteSingleFunctions,
|
||||||
|
ILoadOptionsFunctions
|
||||||
|
} from 'n8n-core';
|
||||||
|
|
||||||
|
import { IDataObject } from 'n8n-workflow';
|
||||||
|
|
||||||
|
export async function googleApiRequest(
|
||||||
|
this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions,
|
||||||
|
method: string,
|
||||||
|
resource: string,
|
||||||
|
body: any = {},
|
||||||
|
qs: IDataObject = {},
|
||||||
|
uri?: string,
|
||||||
|
headers: IDataObject = {}
|
||||||
|
): Promise<any> {
|
||||||
|
const options: OptionsWithUri = {
|
||||||
|
headers: {
|
||||||
|
'Content-Type': 'application/json'
|
||||||
|
},
|
||||||
|
method,
|
||||||
|
body,
|
||||||
|
qs,
|
||||||
|
uri: uri || `https://www.googleapis.com${resource}`,
|
||||||
|
json: true
|
||||||
|
};
|
||||||
|
try {
|
||||||
|
if (Object.keys(headers).length !== 0) {
|
||||||
|
options.headers = Object.assign({}, options.headers, headers);
|
||||||
|
}
|
||||||
|
if (Object.keys(body).length === 0) {
|
||||||
|
delete options.body;
|
||||||
|
}
|
||||||
|
//@ts-ignore
|
||||||
|
return await this.helpers.requestOAuth2.call(
|
||||||
|
this,
|
||||||
|
'googleTasksOAuth2Api',
|
||||||
|
options
|
||||||
|
);
|
||||||
|
} catch (error) {
|
||||||
|
if (error.response && error.response.body && error.response.body.message) {
|
||||||
|
// Try to return the error prettier
|
||||||
|
throw new Error(
|
||||||
|
`Google Tasks error response [${error.statusCode}]: ${error.response.body.message}`
|
||||||
|
);
|
||||||
|
}
|
||||||
|
throw error;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export async function googleApiRequestAllItems(
|
||||||
|
this: IExecuteFunctions | ILoadOptionsFunctions,
|
||||||
|
propertyName: string,
|
||||||
|
method: string,
|
||||||
|
endpoint: string,
|
||||||
|
body: any = {},
|
||||||
|
query: IDataObject = {}
|
||||||
|
): Promise<any> {
|
||||||
|
const returnData: IDataObject[] = [];
|
||||||
|
|
||||||
|
let responseData;
|
||||||
|
query.maxResults = 100;
|
||||||
|
|
||||||
|
do {
|
||||||
|
responseData = await googleApiRequest.call(
|
||||||
|
this,
|
||||||
|
method,
|
||||||
|
endpoint,
|
||||||
|
body,
|
||||||
|
query
|
||||||
|
);
|
||||||
|
query.pageToken = responseData['nextPageToken'];
|
||||||
|
returnData.push.apply(returnData, responseData[propertyName]);
|
||||||
|
} while (
|
||||||
|
responseData['nextPageToken'] !== undefined &&
|
||||||
|
responseData['nextPageToken'] !== ''
|
||||||
|
);
|
||||||
|
|
||||||
|
return returnData;
|
||||||
|
}
|
286
packages/nodes-base/nodes/Google/Task/GoogleTasks.node.ts
Normal file
286
packages/nodes-base/nodes/Google/Task/GoogleTasks.node.ts
Normal file
|
@ -0,0 +1,286 @@
|
||||||
|
import { IExecuteFunctions } from 'n8n-core';
|
||||||
|
|
||||||
|
import {
|
||||||
|
IDataObject,
|
||||||
|
INodeExecutionData,
|
||||||
|
INodeTypeDescription,
|
||||||
|
INodeType,
|
||||||
|
ILoadOptionsFunctions,
|
||||||
|
INodePropertyOptions
|
||||||
|
} from 'n8n-workflow';
|
||||||
|
import { googleApiRequest, googleApiRequestAllItems } from './GenericFunctions';
|
||||||
|
|
||||||
|
import { taskOperations, taskFields } from './TaskDescription';
|
||||||
|
|
||||||
|
export class GoogleTasks implements INodeType {
|
||||||
|
description: INodeTypeDescription = {
|
||||||
|
displayName: 'Google Tasks',
|
||||||
|
name: 'googleTasks',
|
||||||
|
icon: 'file:googleTasks.png',
|
||||||
|
group: ['input'],
|
||||||
|
version: 1,
|
||||||
|
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
|
||||||
|
description: 'Consume Google Tasks API.',
|
||||||
|
defaults: {
|
||||||
|
name: 'Google Tasks',
|
||||||
|
color: '#3E87E4'
|
||||||
|
},
|
||||||
|
inputs: ['main'],
|
||||||
|
outputs: ['main'],
|
||||||
|
credentials: [
|
||||||
|
{
|
||||||
|
name: 'googleTasksOAuth2Api',
|
||||||
|
required: true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
properties: [
|
||||||
|
{
|
||||||
|
displayName: 'Resource',
|
||||||
|
name: 'resource',
|
||||||
|
type: 'options',
|
||||||
|
options: [
|
||||||
|
{
|
||||||
|
name: 'Task',
|
||||||
|
value: 'task'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
default: 'task',
|
||||||
|
description: 'The resource to operate on.'
|
||||||
|
},
|
||||||
|
...taskOperations,
|
||||||
|
...taskFields
|
||||||
|
]
|
||||||
|
};
|
||||||
|
methods = {
|
||||||
|
loadOptions: {
|
||||||
|
// Get all the tasklists to display them to user so that he can select them easily
|
||||||
|
|
||||||
|
async getTasks(
|
||||||
|
this: ILoadOptionsFunctions
|
||||||
|
): Promise<INodePropertyOptions[]> {
|
||||||
|
const returnData: INodePropertyOptions[] = [];
|
||||||
|
const tasks = await googleApiRequestAllItems.call(
|
||||||
|
this,
|
||||||
|
'items',
|
||||||
|
'GET',
|
||||||
|
'/tasks/v1/users/@me/lists'
|
||||||
|
);
|
||||||
|
for (const task of tasks) {
|
||||||
|
const taskName = task.title;
|
||||||
|
const taskId = task.id;
|
||||||
|
returnData.push({
|
||||||
|
name: taskName,
|
||||||
|
value: taskId
|
||||||
|
});
|
||||||
|
}
|
||||||
|
return returnData;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
async execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]> {
|
||||||
|
const items = this.getInputData();
|
||||||
|
const returnData: IDataObject[] = [];
|
||||||
|
const length = (items.length as unknown) as number;
|
||||||
|
const qs: 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++) {
|
||||||
|
if (resource === 'task') {
|
||||||
|
if (operation === 'create') {
|
||||||
|
body = {};
|
||||||
|
//https://developers.google.com/tasks/v1/reference/tasks/insert
|
||||||
|
const taskId = this.getNodeParameter('task', i) as string;
|
||||||
|
const additionalFields = this.getNodeParameter(
|
||||||
|
'additionalFields',
|
||||||
|
i
|
||||||
|
) as IDataObject;
|
||||||
|
|
||||||
|
if (additionalFields.parent) {
|
||||||
|
qs.parent = additionalFields.parent as string;
|
||||||
|
}
|
||||||
|
if (additionalFields.previous) {
|
||||||
|
qs.previous = additionalFields.previous as string;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (additionalFields.status) {
|
||||||
|
body.status = additionalFields.status as string;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (additionalFields.notes) {
|
||||||
|
body.notes = additionalFields.notes as string;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (additionalFields.title) {
|
||||||
|
body.title = additionalFields.title as string;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (additionalFields.dueDate) {
|
||||||
|
body.dueDate = additionalFields.dueDate as string;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (additionalFields.completed) {
|
||||||
|
body.completed = additionalFields.completed as string;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (additionalFields.deleted) {
|
||||||
|
body.deleted = additionalFields.deleted as boolean;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (additionalFields.selfLink) {
|
||||||
|
body.selfLink = additionalFields.selfLink as string;
|
||||||
|
}
|
||||||
|
|
||||||
|
responseData = await googleApiRequest.call(
|
||||||
|
this,
|
||||||
|
'POST',
|
||||||
|
`/tasks/v1/lists/${taskId}/tasks`,
|
||||||
|
body,
|
||||||
|
qs
|
||||||
|
);
|
||||||
|
}
|
||||||
|
if (operation === 'delete') {
|
||||||
|
//https://developers.google.com/tasks/v1/reference/tasks/delete
|
||||||
|
const taskListId = this.getNodeParameter('task', i) as string;
|
||||||
|
const taskId = this.getNodeParameter('taskId', i) as string;
|
||||||
|
|
||||||
|
responseData = await googleApiRequest.call(
|
||||||
|
this,
|
||||||
|
'DELETE',
|
||||||
|
`/tasks/v1/lists/${taskListId}/tasks/${taskId}`,
|
||||||
|
{}
|
||||||
|
);
|
||||||
|
responseData = { success: true };
|
||||||
|
}
|
||||||
|
if (operation === 'get') {
|
||||||
|
//https://developers.google.com/tasks/v1/reference/tasks/get
|
||||||
|
const taskListId = this.getNodeParameter('task', i) as string;
|
||||||
|
const taskId = this.getNodeParameter('taskId', i) as string;
|
||||||
|
responseData = await googleApiRequest.call(
|
||||||
|
this,
|
||||||
|
'GET',
|
||||||
|
`/tasks/v1/lists/${taskListId}/tasks/${taskId}`,
|
||||||
|
{},
|
||||||
|
qs
|
||||||
|
);
|
||||||
|
}
|
||||||
|
if (operation === 'getAll') {
|
||||||
|
//https://developers.google.com/tasks/v1/reference/tasks/list
|
||||||
|
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||||
|
const taskListId = this.getNodeParameter('task', i) as string;
|
||||||
|
const options = this.getNodeParameter(
|
||||||
|
'additionalFields',
|
||||||
|
i
|
||||||
|
) as IDataObject;
|
||||||
|
if (options.completedMax) {
|
||||||
|
qs.completedMax = options.completedMax as string;
|
||||||
|
}
|
||||||
|
if (options.completedMin) {
|
||||||
|
qs.completedMin = options.completedMin as string;
|
||||||
|
}
|
||||||
|
if (options.dueMin) {
|
||||||
|
qs.dueMin = options.dueMin as string;
|
||||||
|
}
|
||||||
|
if (options.dueMax) {
|
||||||
|
qs.dueMax = options.dueMax as string;
|
||||||
|
}
|
||||||
|
if (options.pageToken) {
|
||||||
|
qs.pageToken = options.pageToken as string;
|
||||||
|
}
|
||||||
|
if (options.showCompleted) {
|
||||||
|
qs.showCompleted = options.showCompleted as boolean;
|
||||||
|
}
|
||||||
|
if (options.showDeleted) {
|
||||||
|
qs.showDeleted = options.showDeleted as boolean;
|
||||||
|
}
|
||||||
|
if (options.showHidden) {
|
||||||
|
qs.showHidden = options.showHidden as boolean;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (options.updatedMin) {
|
||||||
|
qs.updatedMin = options.updatedMin as string;
|
||||||
|
}
|
||||||
|
if (returnAll) {
|
||||||
|
responseData = await googleApiRequestAllItems.call(
|
||||||
|
this,
|
||||||
|
'items',
|
||||||
|
'GET',
|
||||||
|
`/tasks/v1/lists/${taskListId}/tasks`,
|
||||||
|
{},
|
||||||
|
qs
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
qs.maxResults = this.getNodeParameter('limit', i) as number;
|
||||||
|
responseData = await googleApiRequest.call(
|
||||||
|
this,
|
||||||
|
'GET',
|
||||||
|
`/tasks/v1/lists/${taskListId}/tasks`,
|
||||||
|
{},
|
||||||
|
qs
|
||||||
|
);
|
||||||
|
responseData = responseData.items;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (operation === 'update') {
|
||||||
|
body = {};
|
||||||
|
//https://developers.google.com/tasks/v1/reference/tasks/patch
|
||||||
|
const taskListId = this.getNodeParameter('task', i) as string;
|
||||||
|
const taskId = this.getNodeParameter('taskId', i) as string;
|
||||||
|
const updateFields = this.getNodeParameter(
|
||||||
|
'updateFields',
|
||||||
|
i
|
||||||
|
) as IDataObject;
|
||||||
|
|
||||||
|
if (updateFields.previous) {
|
||||||
|
qs.previous = updateFields.previous as string;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (updateFields.status) {
|
||||||
|
body.status = updateFields.status as string;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (updateFields.notes) {
|
||||||
|
body.notes = updateFields.notes as string;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (updateFields.title) {
|
||||||
|
body.title = updateFields.title as string;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (updateFields.dueDate) {
|
||||||
|
body.dueDate = updateFields.dueDate as string;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (updateFields.completed) {
|
||||||
|
body.completed = updateFields.completed as string;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (updateFields.deleted) {
|
||||||
|
body.deleted = updateFields.deleted as boolean;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (updateFields.selfLink) {
|
||||||
|
body.selfLink = updateFields.selfLink as string;
|
||||||
|
}
|
||||||
|
|
||||||
|
responseData = await googleApiRequest.call(
|
||||||
|
this,
|
||||||
|
'PATCH',
|
||||||
|
`/tasks/v1/lists/${taskListId}/tasks/${taskId}`,
|
||||||
|
body,
|
||||||
|
qs
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (Array.isArray(responseData)) {
|
||||||
|
returnData.push.apply(returnData, responseData as IDataObject[]);
|
||||||
|
} else if (responseData !== undefined) {
|
||||||
|
returnData.push(responseData as IDataObject);
|
||||||
|
}
|
||||||
|
return [this.helpers.returnJsonArray(returnData)];
|
||||||
|
}
|
||||||
|
}
|
513
packages/nodes-base/nodes/Google/Task/TaskDescription.ts
Normal file
513
packages/nodes-base/nodes/Google/Task/TaskDescription.ts
Normal file
|
@ -0,0 +1,513 @@
|
||||||
|
import { INodeProperties } from 'n8n-workflow';
|
||||||
|
|
||||||
|
export const taskOperations = [
|
||||||
|
{
|
||||||
|
displayName: 'Operation',
|
||||||
|
name: 'operation',
|
||||||
|
type: 'options',
|
||||||
|
displayOptions: {
|
||||||
|
show: {
|
||||||
|
resource: [
|
||||||
|
'task',
|
||||||
|
],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
options: [
|
||||||
|
{
|
||||||
|
name: 'Create',
|
||||||
|
value: 'create',
|
||||||
|
description: 'Add a task to tasklist',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Delete',
|
||||||
|
value: 'delete',
|
||||||
|
description: 'Delete a task',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Get',
|
||||||
|
value: 'get',
|
||||||
|
description: 'Retrieve a task',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Get All',
|
||||||
|
value: 'getAll',
|
||||||
|
description: 'Retrieve all tasks from a tasklist',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Update',
|
||||||
|
value: 'update',
|
||||||
|
description: 'Update a task',
|
||||||
|
}
|
||||||
|
],
|
||||||
|
default: 'create',
|
||||||
|
description: 'The operation to perform.',
|
||||||
|
}
|
||||||
|
] as INodeProperties[];
|
||||||
|
|
||||||
|
export const taskFields = [
|
||||||
|
/* -------------------------------------------------------------------------- */
|
||||||
|
/* task:create */
|
||||||
|
/* -------------------------------------------------------------------------- */
|
||||||
|
{
|
||||||
|
displayName: 'TaskList',
|
||||||
|
name: 'task',
|
||||||
|
type: 'options',
|
||||||
|
typeOptions: {
|
||||||
|
loadOptionsMethod: 'getTasks',
|
||||||
|
},
|
||||||
|
required: true,
|
||||||
|
displayOptions: {
|
||||||
|
show: {
|
||||||
|
operation: [
|
||||||
|
'create',
|
||||||
|
],
|
||||||
|
resource: [
|
||||||
|
'task',
|
||||||
|
],
|
||||||
|
}
|
||||||
|
},
|
||||||
|
default: '',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
displayName: 'Additional Fields',
|
||||||
|
name: 'additionalFields',
|
||||||
|
type: 'collection',
|
||||||
|
placeholder: 'Add Field',
|
||||||
|
default: {},
|
||||||
|
displayOptions: {
|
||||||
|
show: {
|
||||||
|
operation: [
|
||||||
|
'create',
|
||||||
|
],
|
||||||
|
resource: [
|
||||||
|
'task',
|
||||||
|
],
|
||||||
|
}
|
||||||
|
},
|
||||||
|
options: [
|
||||||
|
{
|
||||||
|
displayName: 'Completion date',
|
||||||
|
name: 'completed',
|
||||||
|
type: 'dateTime',
|
||||||
|
default: '',
|
||||||
|
description: `Completion date of the task (as a RFC 3339 timestamp). This field is omitted if the task has not been completed.`,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
displayName: 'Deleted status',
|
||||||
|
name: 'deleted',
|
||||||
|
type: 'boolean',
|
||||||
|
default: false,
|
||||||
|
description: 'Flag indicating whether the task has been deleted.',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
displayName: 'Due Date',
|
||||||
|
name: 'dueDate',
|
||||||
|
type: 'dateTime',
|
||||||
|
default: '',
|
||||||
|
description: 'Due date of the task.',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
displayName: 'Notes',
|
||||||
|
name: 'notes',
|
||||||
|
type: 'string',
|
||||||
|
default: '',
|
||||||
|
description: 'Additional Notes.',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
displayName: 'Parent',
|
||||||
|
name: 'parent',
|
||||||
|
type: 'string',
|
||||||
|
default: '',
|
||||||
|
description: 'Parent task identifier. If the task is created at the top level, this parameter is omitted.',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
displayName: 'Previous',
|
||||||
|
name: 'previous',
|
||||||
|
type: 'string',
|
||||||
|
default: '',
|
||||||
|
description: 'Previous sibling task identifier. If the task is created at the first position among its siblings, this parameter is omitted.',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
displayName: 'Self Link',
|
||||||
|
name: 'selfLink',
|
||||||
|
type: 'string',
|
||||||
|
default: '',
|
||||||
|
description: 'URL pointing to this task. Used to retrieve, update, or delete this task.',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
displayName: 'Status',
|
||||||
|
name: 'status',
|
||||||
|
type: 'options',
|
||||||
|
options: [
|
||||||
|
{
|
||||||
|
name: 'needs Action',
|
||||||
|
value: 'needsAction',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'completed',
|
||||||
|
value: 'completed',
|
||||||
|
}
|
||||||
|
],
|
||||||
|
default: '',
|
||||||
|
description: 'Current status of the task.',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
displayName: 'Title',
|
||||||
|
name: 'title',
|
||||||
|
type: 'string',
|
||||||
|
default: '',
|
||||||
|
description: 'Title of the task.',
|
||||||
|
},
|
||||||
|
|
||||||
|
]
|
||||||
|
},
|
||||||
|
/* -------------------------------------------------------------------------- */
|
||||||
|
/* task:delete */
|
||||||
|
/* -------------------------------------------------------------------------- */
|
||||||
|
{
|
||||||
|
displayName: 'TaskList',
|
||||||
|
name: 'task',
|
||||||
|
type: 'options',
|
||||||
|
typeOptions: {
|
||||||
|
loadOptionsMethod: 'getTasks',
|
||||||
|
},
|
||||||
|
required: true,
|
||||||
|
displayOptions: {
|
||||||
|
show: {
|
||||||
|
operation: [
|
||||||
|
'delete',
|
||||||
|
],
|
||||||
|
resource: [
|
||||||
|
'task',
|
||||||
|
],
|
||||||
|
}
|
||||||
|
},
|
||||||
|
default: '',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
displayName: 'Task ID',
|
||||||
|
name: 'taskId',
|
||||||
|
type: 'string',
|
||||||
|
required: true,
|
||||||
|
displayOptions: {
|
||||||
|
show: {
|
||||||
|
operation: [
|
||||||
|
'delete',
|
||||||
|
],
|
||||||
|
resource: [
|
||||||
|
'task',
|
||||||
|
],
|
||||||
|
}
|
||||||
|
},
|
||||||
|
default: '',
|
||||||
|
},
|
||||||
|
/* -------------------------------------------------------------------------- */
|
||||||
|
/* task:get */
|
||||||
|
/* -------------------------------------------------------------------------- */
|
||||||
|
{
|
||||||
|
displayName: 'TaskList',
|
||||||
|
name: 'task',
|
||||||
|
type: 'options',
|
||||||
|
typeOptions: {
|
||||||
|
loadOptionsMethod: 'getTasks',
|
||||||
|
},
|
||||||
|
required: true,
|
||||||
|
displayOptions: {
|
||||||
|
show: {
|
||||||
|
operation: [
|
||||||
|
'get',
|
||||||
|
],
|
||||||
|
resource: [
|
||||||
|
'task',
|
||||||
|
],
|
||||||
|
}
|
||||||
|
},
|
||||||
|
default: '',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
displayName: 'Task ID',
|
||||||
|
name: 'taskId',
|
||||||
|
type: 'string',
|
||||||
|
required: true,
|
||||||
|
displayOptions: {
|
||||||
|
show: {
|
||||||
|
operation: [
|
||||||
|
'get',
|
||||||
|
],
|
||||||
|
resource: [
|
||||||
|
'task',
|
||||||
|
],
|
||||||
|
}
|
||||||
|
},
|
||||||
|
default: '',
|
||||||
|
},
|
||||||
|
/* -------------------------------------------------------------------------- */
|
||||||
|
/* task:getAll */
|
||||||
|
/* -------------------------------------------------------------------------- */
|
||||||
|
{
|
||||||
|
displayName: 'TaskList',
|
||||||
|
name: 'task',
|
||||||
|
type: 'options',
|
||||||
|
typeOptions: {
|
||||||
|
loadOptionsMethod: 'getTasks',
|
||||||
|
},
|
||||||
|
required: true,
|
||||||
|
displayOptions: {
|
||||||
|
show: {
|
||||||
|
operation: [
|
||||||
|
'getAll',
|
||||||
|
],
|
||||||
|
resource: [
|
||||||
|
'task',
|
||||||
|
],
|
||||||
|
}
|
||||||
|
},
|
||||||
|
default: '',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
displayName: 'Return All',
|
||||||
|
name: 'returnAll',
|
||||||
|
type: 'boolean',
|
||||||
|
displayOptions: {
|
||||||
|
show: {
|
||||||
|
operation: [
|
||||||
|
'getAll',
|
||||||
|
],
|
||||||
|
resource: [
|
||||||
|
'task',
|
||||||
|
],
|
||||||
|
}
|
||||||
|
},
|
||||||
|
default: false,
|
||||||
|
description: 'If all results should be returned or only up to a given limit.',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
displayName: 'Limit',
|
||||||
|
name: 'limit',
|
||||||
|
type: 'number',
|
||||||
|
displayOptions: {
|
||||||
|
show: {
|
||||||
|
operation: [
|
||||||
|
'getAll',
|
||||||
|
],
|
||||||
|
resource: [
|
||||||
|
'task',
|
||||||
|
],
|
||||||
|
returnAll: [
|
||||||
|
false,
|
||||||
|
],
|
||||||
|
}
|
||||||
|
},
|
||||||
|
typeOptions: {
|
||||||
|
minValue: 1,
|
||||||
|
maxValue: 100
|
||||||
|
},
|
||||||
|
default: 20,
|
||||||
|
description: 'How many results to return.',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
displayName: 'Additional Fields',
|
||||||
|
name: 'additionalFields',
|
||||||
|
type: 'collection',
|
||||||
|
placeholder: 'Add Field',
|
||||||
|
default: {},
|
||||||
|
displayOptions: {
|
||||||
|
show: {
|
||||||
|
operation: [
|
||||||
|
'getAll',
|
||||||
|
],
|
||||||
|
resource: [
|
||||||
|
'task',
|
||||||
|
],
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
options: [
|
||||||
|
{
|
||||||
|
displayName: 'Completed Max',
|
||||||
|
name: 'completedMax',
|
||||||
|
type: 'dateTime',
|
||||||
|
default: '',
|
||||||
|
description: 'Upper bound for a task completion date (as a RFC 3339 timestamp) to filter by.',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
displayName: 'Completed Min',
|
||||||
|
name: 'completedMin',
|
||||||
|
type: 'dateTime',
|
||||||
|
default: '',
|
||||||
|
description: 'Lower bound for a task completion date (as a RFC 3339 timestamp) to filter by.',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
displayName: 'Due Min',
|
||||||
|
name: 'dueMin',
|
||||||
|
type: 'dateTime',
|
||||||
|
default: '',
|
||||||
|
description: 'Lower bound for a task due date (as a RFC 3339 timestamp) to filter by.',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
displayName: 'Due Max',
|
||||||
|
name: 'dueMax',
|
||||||
|
type: 'dateTime',
|
||||||
|
default: '',
|
||||||
|
description: 'Upper bound for a task due date (as a RFC 3339 timestamp) to filter by.',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
displayName: 'Page Token',
|
||||||
|
name: 'pageToken',
|
||||||
|
type: 'string',
|
||||||
|
default: '',
|
||||||
|
description: 'Token specifying the result page to return.',
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
displayName: 'Show Completed',
|
||||||
|
name: 'showCompleted',
|
||||||
|
type: 'boolean',
|
||||||
|
default: true,
|
||||||
|
description: 'Flag indicating whether completed tasks are returned in the result',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
displayName: 'Show Deleted',
|
||||||
|
name: 'showDeleted',
|
||||||
|
type: 'boolean',
|
||||||
|
default: false,
|
||||||
|
description: 'Flag indicating whether deleted tasks are returned in the result',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
displayName: 'Show Hidden',
|
||||||
|
name: 'showHidden',
|
||||||
|
type: 'boolean',
|
||||||
|
default: false,
|
||||||
|
description: 'Flag indicating whether hidden tasks are returned in the result',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
displayName: 'Updated Min',
|
||||||
|
name: 'updatedMin',
|
||||||
|
type: 'string',
|
||||||
|
default: '',
|
||||||
|
description: 'Lower bound for a task last modification time (as a RFC 3339 timestamp) to filter by.',
|
||||||
|
},
|
||||||
|
]
|
||||||
|
},
|
||||||
|
/* -------------------------------------------------------------------------- */
|
||||||
|
/* task:update */
|
||||||
|
/* -------------------------------------------------------------------------- */
|
||||||
|
{
|
||||||
|
displayName: 'TaskList',
|
||||||
|
name: 'task',
|
||||||
|
type: 'options',
|
||||||
|
typeOptions: {
|
||||||
|
loadOptionsMethod: 'getTasks',
|
||||||
|
},
|
||||||
|
required: true,
|
||||||
|
displayOptions: {
|
||||||
|
show: {
|
||||||
|
operation: [
|
||||||
|
'update',
|
||||||
|
],
|
||||||
|
resource: [
|
||||||
|
'task',
|
||||||
|
],
|
||||||
|
}
|
||||||
|
},
|
||||||
|
default: '',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
displayName: 'Task ID',
|
||||||
|
name: 'taskId',
|
||||||
|
type: 'string',
|
||||||
|
required: true,
|
||||||
|
displayOptions: {
|
||||||
|
show: {
|
||||||
|
operation: [
|
||||||
|
'update',
|
||||||
|
],
|
||||||
|
resource: [
|
||||||
|
'task',
|
||||||
|
],
|
||||||
|
}
|
||||||
|
},
|
||||||
|
default: '',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
displayName: 'Update Fields',
|
||||||
|
name: 'updateFields',
|
||||||
|
type: 'collection',
|
||||||
|
placeholder: 'Update Field',
|
||||||
|
default: {},
|
||||||
|
displayOptions: {
|
||||||
|
show: {
|
||||||
|
operation: [
|
||||||
|
'update',
|
||||||
|
],
|
||||||
|
resource: [
|
||||||
|
'task',
|
||||||
|
],
|
||||||
|
}
|
||||||
|
},
|
||||||
|
options: [
|
||||||
|
{
|
||||||
|
displayName: 'Completion date',
|
||||||
|
name: 'completed',
|
||||||
|
type: 'dateTime',
|
||||||
|
default: '',
|
||||||
|
description: `Completion date of the task (as a RFC 3339 timestamp). This field is omitted if the task has not been completed.`,
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
displayName: 'Deleted status',
|
||||||
|
name: 'deleted',
|
||||||
|
type: 'boolean',
|
||||||
|
default: false,
|
||||||
|
description: 'Flag indicating whether the task has been deleted.',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
displayName: 'Notes',
|
||||||
|
name: 'notes',
|
||||||
|
type: 'string',
|
||||||
|
default: '',
|
||||||
|
description: 'Additional Notes.',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
displayName: 'Previous',
|
||||||
|
name: 'previous',
|
||||||
|
type: 'string',
|
||||||
|
default: '',
|
||||||
|
description: 'Previous sibling task identifier. If the task is created at the first position among its siblings, this parameter is omitted.',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
displayName: 'Self Link',
|
||||||
|
name: 'selfLink',
|
||||||
|
type: 'string',
|
||||||
|
default: '',
|
||||||
|
description: 'URL pointing to this task. Used to retrieve, update, or delete this task.',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
displayName: 'Status',
|
||||||
|
name: 'status',
|
||||||
|
type: 'options',
|
||||||
|
options: [
|
||||||
|
{
|
||||||
|
name: 'needs Update',
|
||||||
|
value: 'needsAction',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'completed',
|
||||||
|
value: 'completed',
|
||||||
|
}
|
||||||
|
],
|
||||||
|
default: '',
|
||||||
|
description: 'Current status of the task.',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
displayName: 'Title',
|
||||||
|
name: 'title',
|
||||||
|
type: 'string',
|
||||||
|
default: '',
|
||||||
|
description: 'Title of the task.',
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
|
]
|
||||||
|
}
|
||||||
|
] as INodeProperties[];
|
BIN
packages/nodes-base/nodes/Google/Task/googleTasks.png
Normal file
BIN
packages/nodes-base/nodes/Google/Task/googleTasks.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.2 KiB |
|
@ -1,17 +1,13 @@
|
||||||
import {
|
import { IExecuteFunctions } from 'n8n-core';
|
||||||
IExecuteFunctions,
|
|
||||||
} from 'n8n-core';
|
|
||||||
|
|
||||||
import {
|
import {
|
||||||
IDataObject,
|
IDataObject,
|
||||||
INodeTypeDescription,
|
INodeTypeDescription,
|
||||||
INodeExecutionData,
|
INodeExecutionData,
|
||||||
INodeType,
|
INodeType
|
||||||
} from 'n8n-workflow';
|
} from 'n8n-workflow';
|
||||||
|
|
||||||
import {
|
import { messageBirdApiRequest } from './GenericFunctions';
|
||||||
messageBirdApiRequest,
|
|
||||||
} from './GenericFunctions';
|
|
||||||
|
|
||||||
export class MessageBird implements INodeType {
|
export class MessageBird implements INodeType {
|
||||||
description: INodeTypeDescription = {
|
description: INodeTypeDescription = {
|
||||||
|
@ -55,20 +51,18 @@ export class MessageBird implements INodeType {
|
||||||
type: 'options',
|
type: 'options',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
resource: [
|
resource: ['sms']
|
||||||
'sms',
|
}
|
||||||
],
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
options: [
|
options: [
|
||||||
{
|
{
|
||||||
name: 'Send',
|
name: 'Send',
|
||||||
value: 'send',
|
value: 'send',
|
||||||
description: 'Send text messages (SMS)',
|
description: 'Send text messages (SMS)'
|
||||||
},
|
}
|
||||||
],
|
],
|
||||||
default: 'send',
|
default: 'send',
|
||||||
description: 'The operation to perform.',
|
description: 'The operation to perform.'
|
||||||
},
|
},
|
||||||
|
|
||||||
// ----------------------------------
|
// ----------------------------------
|
||||||
|
@ -83,15 +77,11 @@ export class MessageBird implements INodeType {
|
||||||
required: true,
|
required: true,
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
operation: [
|
operation: ['send'],
|
||||||
'send',
|
resource: ['sms']
|
||||||
],
|
}
|
||||||
resource: [
|
|
||||||
'sms',
|
|
||||||
],
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
description: 'The number from which to send the message.',
|
description: 'The number from which to send the message.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'To',
|
displayName: 'To',
|
||||||
|
@ -103,10 +93,10 @@ export class MessageBird implements INodeType {
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
operation: ['send'],
|
operation: ['send'],
|
||||||
resource: ['sms'],
|
resource: ['sms']
|
||||||
},
|
}
|
||||||
},
|
},
|
||||||
description: 'All recipients separated by commas.',
|
description: 'All recipients separated by commas.'
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
|
@ -117,15 +107,11 @@ export class MessageBird implements INodeType {
|
||||||
required: true,
|
required: true,
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
operation: [
|
operation: ['send'],
|
||||||
'send',
|
resource: ['sms']
|
||||||
],
|
}
|
||||||
resource: [
|
|
||||||
'sms',
|
|
||||||
],
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
description: 'The message to be send.',
|
description: 'The message to be send.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Additional Fields',
|
displayName: 'Additional Fields',
|
||||||
|
@ -139,7 +125,8 @@ export class MessageBird implements INodeType {
|
||||||
name: 'createdDatetime',
|
name: 'createdDatetime',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
default: '',
|
default: '',
|
||||||
description: 'The date and time of the creation of the message in RFC3339 format (Y-m-dTH:i:sP).',
|
description:
|
||||||
|
'The date and time of the creation of the message in RFC3339 format (Y-m-dTH:i:sP).'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Datacoding',
|
displayName: 'Datacoding',
|
||||||
|
@ -148,26 +135,27 @@ export class MessageBird implements INodeType {
|
||||||
options: [
|
options: [
|
||||||
{
|
{
|
||||||
name: 'Auto',
|
name: 'Auto',
|
||||||
value: 'auto',
|
value: 'auto'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Plain',
|
name: 'Plain',
|
||||||
value: 'plain',
|
value: 'plain'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Unicode',
|
name: 'Unicode',
|
||||||
value: 'unicode',
|
value: 'unicode'
|
||||||
},
|
}
|
||||||
],
|
],
|
||||||
default: '',
|
default: '',
|
||||||
description: 'Using unicode will limit the maximum number of characters to 70 instead of 160.',
|
description:
|
||||||
|
'Using unicode will limit the maximum number of characters to 70 instead of 160.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Gateway',
|
displayName: 'Gateway',
|
||||||
name: 'gateway',
|
name: 'gateway',
|
||||||
type: 'number',
|
type: 'number',
|
||||||
default: '',
|
default: '',
|
||||||
description: 'The SMS route that is used to send the message.',
|
description: 'The SMS route that is used to send the message.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Group IDs',
|
displayName: 'Group IDs',
|
||||||
|
@ -175,7 +163,8 @@ export class MessageBird implements INodeType {
|
||||||
placeholder: '1,2',
|
placeholder: '1,2',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
description: 'Group IDs separated by commas, If provided recipients can be omitted.',
|
description:
|
||||||
|
'Group IDs separated by commas, If provided recipients can be omitted.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Message Type',
|
displayName: 'Message Type',
|
||||||
|
@ -185,36 +174,39 @@ export class MessageBird implements INodeType {
|
||||||
options: [
|
options: [
|
||||||
{
|
{
|
||||||
name: 'Flash',
|
name: 'Flash',
|
||||||
value: 1,
|
value: 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Normal',
|
name: 'Normal',
|
||||||
value: 0,
|
value: 0
|
||||||
},
|
}
|
||||||
],
|
],
|
||||||
default: 1,
|
default: 1,
|
||||||
description: 'Indicated the message type. 1 is a normal message, 0 is a flash message.',
|
description:
|
||||||
|
'Indicated the message type. 1 is a normal message, 0 is a flash message.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Reference',
|
displayName: 'Reference',
|
||||||
name: 'reference',
|
name: 'reference',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
description: 'A client reference.',
|
description: 'A client reference.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Report Url',
|
displayName: 'Report Url',
|
||||||
name: 'reportUrl',
|
name: 'reportUrl',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
description: 'The status report URL to be used on a per-message basis.<br /> Reference is required for a status report webhook to be sent.',
|
description:
|
||||||
|
'The status report URL to be used on a per-message basis.<br /> Reference is required for a status report webhook to be sent.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Scheduled Date-time',
|
displayName: 'Scheduled Date-time',
|
||||||
name: 'scheduledDatetime',
|
name: 'scheduledDatetime',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
default: '',
|
default: '',
|
||||||
description: 'The scheduled date and time of the message in RFC3339 format (Y-m-dTH:i:sP).',
|
description:
|
||||||
|
'The scheduled date and time of the message in RFC3339 format (Y-m-dTH:i:sP).'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Type',
|
displayName: 'Type',
|
||||||
|
@ -232,17 +224,19 @@ export class MessageBird implements INodeType {
|
||||||
{
|
{
|
||||||
name: 'SMS',
|
name: 'SMS',
|
||||||
value: 'sms'
|
value: 'sms'
|
||||||
},
|
}
|
||||||
],
|
],
|
||||||
default: '',
|
default: '',
|
||||||
description: 'The type of message.<br /> Values can be: sms, binary, or flash.',
|
description:
|
||||||
|
'The type of message.<br /> Values can be: sms, binary, or flash.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Type Details',
|
displayName: 'Type Details',
|
||||||
name: 'typeDetails',
|
name: 'typeDetails',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
description: 'A hash with extra information.<br /> Is only used when a binary message is sent.',
|
description:
|
||||||
|
'A hash with extra information.<br /> Is only used when a binary message is sent.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Validity',
|
displayName: 'Validity',
|
||||||
|
@ -250,13 +244,13 @@ export class MessageBird implements INodeType {
|
||||||
type: 'number',
|
type: 'number',
|
||||||
default: 1,
|
default: 1,
|
||||||
typeOptions: {
|
typeOptions: {
|
||||||
minValue: 1,
|
minValue: 1
|
||||||
},
|
},
|
||||||
description: 'The amount of seconds that the message is valid.',
|
description: 'The amount of seconds that the message is valid.'
|
||||||
},
|
}
|
||||||
],
|
]
|
||||||
},
|
}
|
||||||
],
|
]
|
||||||
};
|
};
|
||||||
|
|
||||||
async execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]> {
|
async execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]> {
|
||||||
|
|
|
@ -61,6 +61,7 @@
|
||||||
"dist/credentials/GoogleDriveOAuth2Api.credentials.js",
|
"dist/credentials/GoogleDriveOAuth2Api.credentials.js",
|
||||||
"dist/credentials/GoogleOAuth2Api.credentials.js",
|
"dist/credentials/GoogleOAuth2Api.credentials.js",
|
||||||
"dist/credentials/GoogleSheetsOAuth2Api.credentials.js",
|
"dist/credentials/GoogleSheetsOAuth2Api.credentials.js",
|
||||||
|
"dist/credentials/GoogleTasksOAuth2Api.credentials.js",
|
||||||
"dist/credentials/GumroadApi.credentials.js",
|
"dist/credentials/GumroadApi.credentials.js",
|
||||||
"dist/credentials/HarvestApi.credentials.js",
|
"dist/credentials/HarvestApi.credentials.js",
|
||||||
"dist/credentials/HelpScoutOAuth2Api.credentials.js",
|
"dist/credentials/HelpScoutOAuth2Api.credentials.js",
|
||||||
|
@ -197,6 +198,7 @@
|
||||||
"dist/nodes/Google/Calendar/GoogleCalendar.node.js",
|
"dist/nodes/Google/Calendar/GoogleCalendar.node.js",
|
||||||
"dist/nodes/Google/Drive/GoogleDrive.node.js",
|
"dist/nodes/Google/Drive/GoogleDrive.node.js",
|
||||||
"dist/nodes/Google/Sheet/GoogleSheets.node.js",
|
"dist/nodes/Google/Sheet/GoogleSheets.node.js",
|
||||||
|
"dist/nodes/Google/Task/GoogleTasks.node.js",
|
||||||
"dist/nodes/GraphQL/GraphQL.node.js",
|
"dist/nodes/GraphQL/GraphQL.node.js",
|
||||||
"dist/nodes/Gumroad/GumroadTrigger.node.js",
|
"dist/nodes/Gumroad/GumroadTrigger.node.js",
|
||||||
"dist/nodes/Harvest/Harvest.node.js",
|
"dist/nodes/Harvest/Harvest.node.js",
|
||||||
|
|
Loading…
Reference in a new issue