@pipedream/google_calendar 0.3.18 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/actions/create-event/create-event.mjs +8 -1
- package/actions/delete-event/delete-event.mjs +1 -1
- package/actions/get-calendar/get-calendar.mjs +1 -1
- package/actions/get-event/get-event.mjs +1 -1
- package/actions/list-calendars/list-calendars.mjs +1 -1
- package/actions/list-events/list-events.mjs +1 -1
- package/actions/query-free-busy-calendars/query-free-busy-calendars.mjs +1 -1
- package/actions/quick-add-event/quick-add-event.mjs +1 -1
- package/actions/update-event/update-event.mjs +1 -1
- package/actions/update-event-attendees/update-event-attendees.mjs +1 -1
- package/google_calendar.app.mjs +23 -0
- package/package.json +2 -2
- package/sources/event-cancelled/event-cancelled.mjs +1 -1
- package/sources/event-ended/event-ended.mjs +1 -1
- package/sources/event-start/event-start.mjs +1 -1
- package/sources/new-calendar/new-calendar.mjs +1 -1
- package/sources/new-event/new-event.mjs +1 -1
- package/sources/new-event-search/new-event-search.mjs +1 -1
- package/sources/new-or-updated-event/new-or-updated-event.mjs +1 -1
- package/sources/new-or-updated-event-instant/new-or-updated-event-instant.mjs +1 -1
- package/sources/upcoming-event-alert/upcoming-event-alert.mjs +1 -1
|
@@ -6,7 +6,7 @@ export default {
|
|
|
6
6
|
key: "google_calendar-create-event",
|
|
7
7
|
name: "Create Event",
|
|
8
8
|
description: "Create an event to the Google Calendar. [See the documentation](https://googleapis.dev/nodejs/googleapis/latest/calendar/classes/Resource$Events.html#insert)",
|
|
9
|
-
version: "0.
|
|
9
|
+
version: "0.2.0",
|
|
10
10
|
type: "action",
|
|
11
11
|
props: {
|
|
12
12
|
googleCalendar,
|
|
@@ -25,6 +25,12 @@ export default {
|
|
|
25
25
|
...createEventCommon.props({
|
|
26
26
|
isUpdate: false,
|
|
27
27
|
}),
|
|
28
|
+
colorId: {
|
|
29
|
+
propDefinition: [
|
|
30
|
+
googleCalendar,
|
|
31
|
+
"colorId",
|
|
32
|
+
],
|
|
33
|
+
},
|
|
28
34
|
},
|
|
29
35
|
methods: {
|
|
30
36
|
...createEventCommon.methods,
|
|
@@ -51,6 +57,7 @@ export default {
|
|
|
51
57
|
}),
|
|
52
58
|
recurrence: this.recurrence,
|
|
53
59
|
attendees,
|
|
60
|
+
colorId: this.colorId,
|
|
54
61
|
},
|
|
55
62
|
};
|
|
56
63
|
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "google_calendar-delete-event",
|
|
5
5
|
name: "Delete an Event",
|
|
6
6
|
description: "Delete an event to the Google Calendar. [See the documentation](https://googleapis.dev/nodejs/googleapis/latest/calendar/classes/Resource$Events.html#delete)",
|
|
7
|
-
version: "0.1.
|
|
7
|
+
version: "0.1.3",
|
|
8
8
|
type: "action",
|
|
9
9
|
props: {
|
|
10
10
|
googleCalendar,
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "google_calendar-get-calendar",
|
|
5
5
|
name: "Retrieve Calendar Details",
|
|
6
6
|
description: "Retrieve calendar details of a Google Calendar. [See the documentation](https://googleapis.dev/nodejs/googleapis/latest/calendar/classes/Resource$Calendars.html#get)",
|
|
7
|
-
version: "0.1.
|
|
7
|
+
version: "0.1.4",
|
|
8
8
|
type: "action",
|
|
9
9
|
props: {
|
|
10
10
|
googleCalendar,
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "google_calendar-get-event",
|
|
5
5
|
name: "Retrieve Event Details",
|
|
6
6
|
description: "Retrieve event details from Google Calendar. [See the documentation](https://googleapis.dev/nodejs/googleapis/latest/calendar/classes/Resource$Events.html#get)",
|
|
7
|
-
version: "0.1.
|
|
7
|
+
version: "0.1.4",
|
|
8
8
|
type: "action",
|
|
9
9
|
props: {
|
|
10
10
|
googleCalendar,
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "google_calendar-list-calendars",
|
|
5
5
|
name: "List Calendars",
|
|
6
6
|
description: "Retrieve a list of calendars from Google Calendar. [See the documentation](https://googleapis.dev/nodejs/googleapis/latest/calendar/classes/Resource$Calendarlist.html#list)",
|
|
7
|
-
version: "0.1.
|
|
7
|
+
version: "0.1.4",
|
|
8
8
|
type: "action",
|
|
9
9
|
props: {
|
|
10
10
|
googleCalendar,
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "google_calendar-list-events",
|
|
5
5
|
name: "List Events",
|
|
6
6
|
description: "Retrieve a list of event from the Google Calendar. [See the documentation](https://developers.google.com/calendar/api/v3/reference/events/list)",
|
|
7
|
-
version: "0.0.
|
|
7
|
+
version: "0.0.4",
|
|
8
8
|
type: "action",
|
|
9
9
|
props: {
|
|
10
10
|
googleCalendar,
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "google_calendar-query-free-busy-calendars",
|
|
5
5
|
name: "Retrieve Free/Busy Calendar Details",
|
|
6
6
|
description: "Retrieve free/busy calendar details from Google Calendar. [See the documentation](https://googleapis.dev/nodejs/googleapis/latest/calendar/classes/Resource$Freebusy.html#query)",
|
|
7
|
-
version: "0.1.
|
|
7
|
+
version: "0.1.4",
|
|
8
8
|
type: "action",
|
|
9
9
|
props: {
|
|
10
10
|
googleCalendar,
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "google_calendar-quick-add-event",
|
|
5
5
|
name: "Add Quick Event",
|
|
6
6
|
description: "Create a quick event to the Google Calendar. [See the documentation](https://googleapis.dev/nodejs/googleapis/latest/calendar/classes/Resource$Events.html#quickAdd)",
|
|
7
|
-
version: "0.1.
|
|
7
|
+
version: "0.1.3",
|
|
8
8
|
type: "action",
|
|
9
9
|
props: {
|
|
10
10
|
googleCalendar,
|
|
@@ -5,7 +5,7 @@ export default {
|
|
|
5
5
|
key: "google_calendar-update-event",
|
|
6
6
|
name: "Update Event",
|
|
7
7
|
description: "Update an event from Google Calendar. [See the documentation](https://googleapis.dev/nodejs/googleapis/latest/calendar/classes/Resource$Events.html#update)",
|
|
8
|
-
version: "0.0.
|
|
8
|
+
version: "0.0.5",
|
|
9
9
|
type: "action",
|
|
10
10
|
props: {
|
|
11
11
|
googleCalendar,
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "google_calendar-update-event-attendees",
|
|
5
5
|
name: "Update attendees of an event",
|
|
6
6
|
description: "Update attendees of an existing event. [See the documentation](https://googleapis.dev/nodejs/googleapis/latest/calendar/classes/Resource$Events.html#update)",
|
|
7
|
-
version: "0.1.
|
|
7
|
+
version: "0.1.3",
|
|
8
8
|
type: "action",
|
|
9
9
|
props: {
|
|
10
10
|
googleCalendar,
|
package/google_calendar.app.mjs
CHANGED
|
@@ -261,6 +261,22 @@ export default {
|
|
|
261
261
|
description: "Whether to send notifications about the event update",
|
|
262
262
|
optional: true,
|
|
263
263
|
},
|
|
264
|
+
colorId: {
|
|
265
|
+
label: "Color ID",
|
|
266
|
+
type: "string",
|
|
267
|
+
description: "The color of the event. This is an ID referring to an entry in the event section of the colors definition (see the colors endpoint).",
|
|
268
|
+
optional: true,
|
|
269
|
+
async options() {
|
|
270
|
+
const response = await this.listColors();
|
|
271
|
+
return Object.entries(response.event).map(([
|
|
272
|
+
key,
|
|
273
|
+
value,
|
|
274
|
+
]) => ({
|
|
275
|
+
label: `Background ${value.background} | Foreground ${value.foreground}`,
|
|
276
|
+
value: key,
|
|
277
|
+
}));
|
|
278
|
+
},
|
|
279
|
+
},
|
|
264
280
|
},
|
|
265
281
|
methods: {
|
|
266
282
|
_tokens() {
|
|
@@ -471,5 +487,12 @@ export default {
|
|
|
471
487
|
}
|
|
472
488
|
return nextSyncToken;
|
|
473
489
|
},
|
|
490
|
+
async listColors(args = {}) {
|
|
491
|
+
return this.requestHandler({
|
|
492
|
+
api: constants.API.COLORS.NAME,
|
|
493
|
+
method: constants.API.COLORS.METHOD.GET,
|
|
494
|
+
args,
|
|
495
|
+
});
|
|
496
|
+
},
|
|
474
497
|
},
|
|
475
498
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pipedream/google_calendar",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Pipedream Google_calendar Components",
|
|
5
5
|
"main": "google_calendar.app.mjs",
|
|
6
6
|
"keywords": [
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"author": "Pipedream <support@pipedream.com> (https://pipedream.com/)",
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@googleapis/calendar": "^1.0.2",
|
|
14
|
-
"@pipedream/platform": "^1.
|
|
14
|
+
"@pipedream/platform": "^1.6.0",
|
|
15
15
|
"lodash.get": "^4.4.2",
|
|
16
16
|
"moment-timezone": "^0.5.33",
|
|
17
17
|
"uuid": "^8.3.2"
|
|
@@ -5,7 +5,7 @@ export default {
|
|
|
5
5
|
key: "google_calendar-event-cancelled",
|
|
6
6
|
name: "New Cancelled Event",
|
|
7
7
|
description: "Emit new event when a Google Calendar event is cancelled or deleted",
|
|
8
|
-
version: "0.1.
|
|
8
|
+
version: "0.1.6",
|
|
9
9
|
type: "source",
|
|
10
10
|
dedupe: "unique",
|
|
11
11
|
props: {
|
|
@@ -6,7 +6,7 @@ export default {
|
|
|
6
6
|
key: "google_calendar-event-start",
|
|
7
7
|
name: "New Event Start",
|
|
8
8
|
description: "Emit new event when the specified time before the Google Calendar event starts",
|
|
9
|
-
version: "0.1.
|
|
9
|
+
version: "0.1.7",
|
|
10
10
|
type: "source",
|
|
11
11
|
dedupe: "unique",
|
|
12
12
|
props: {
|
|
@@ -5,7 +5,7 @@ export default {
|
|
|
5
5
|
key: "google_calendar-new-event-search",
|
|
6
6
|
name: "New Event Matching a Search",
|
|
7
7
|
description: "Emit new event when a Google Calendar event is created that matches a search",
|
|
8
|
-
version: "0.1.
|
|
8
|
+
version: "0.1.6",
|
|
9
9
|
type: "source",
|
|
10
10
|
dedupe: "unique",
|
|
11
11
|
props: {
|
|
@@ -5,7 +5,7 @@ export default {
|
|
|
5
5
|
key: "google_calendar-new-or-updated-event",
|
|
6
6
|
name: "New Created or Updated Event",
|
|
7
7
|
description: "Emit new event when a Google Calendar events is created or updated (does not emit cancelled events)",
|
|
8
|
-
version: "0.1.
|
|
8
|
+
version: "0.1.6",
|
|
9
9
|
type: "source",
|
|
10
10
|
dedupe: "unique",
|
|
11
11
|
props: {
|
|
@@ -8,7 +8,7 @@ export default {
|
|
|
8
8
|
type: "source",
|
|
9
9
|
name: "New Created or Updated Event (Instant)",
|
|
10
10
|
description: "Emit new event when a Google Calendar events is created or updated (does not emit cancelled events)",
|
|
11
|
-
version: "0.1.
|
|
11
|
+
version: "0.1.10",
|
|
12
12
|
dedupe: "unique",
|
|
13
13
|
props: {
|
|
14
14
|
googleCalendar,
|
|
@@ -8,7 +8,7 @@ export default {
|
|
|
8
8
|
description: `Emit new event based on a time interval before an upcoming event in the calendar. This source uses Pipedream's Task Scheduler.
|
|
9
9
|
[See the documentation](https://pipedream.com/docs/examples/waiting-to-execute-next-step-of-workflow/#step-1-create-a-task-scheduler-event-source)
|
|
10
10
|
for more information and instructions for connecting your Pipedream account.`,
|
|
11
|
-
version: "0.0.
|
|
11
|
+
version: "0.0.4",
|
|
12
12
|
type: "source",
|
|
13
13
|
props: {
|
|
14
14
|
pipedream: taskScheduler.props.pipedream,
|