@pipedream/google_calendar 0.8.2 → 0.8.3

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.
@@ -74,10 +74,13 @@ export default {
74
74
  methods: {
75
75
  async getTimeZone(selectedTimeZone) {
76
76
  /**
77
- * Based on the IINA Time Zone DB
77
+ * Based on the IANA Time Zone DB
78
78
  * http://www.iana.org/time-zones
79
79
  */
80
- const { value: timeZone } = selectedTimeZone ?? await this.googleCalendar.getSettings({
80
+ if (typeof selectedTimeZone === "string") {
81
+ return selectedTimeZone;
82
+ }
83
+ const { value: timeZone } = await this.googleCalendar.getSettings({
81
84
  setting: "timezone",
82
85
  });
83
86
  return timeZone;
@@ -7,7 +7,7 @@ export default {
7
7
  key: "google_calendar-create-event",
8
8
  name: "Create Event",
9
9
  description: "Create an event in a Google Calendar. [See the documentation](https://developers.google.com/calendar/api/v3/reference/events/insert)",
10
- version: "1.0.0",
10
+ version: "1.0.1",
11
11
  annotations: {
12
12
  destructiveHint: false,
13
13
  openWorldHint: true,
@@ -6,7 +6,7 @@ export default {
6
6
  key: "google_calendar-update-event",
7
7
  name: "Update Event",
8
8
  description: "Update an event from Google Calendar. [See the documentation](https://googleapis.dev/nodejs/googleapis/latest/calendar/classes/Resource$Events.html#update)",
9
- version: "0.0.13",
9
+ version: "0.0.14",
10
10
  annotations: {
11
11
  destructiveHint: true,
12
12
  openWorldHint: true,
@@ -5,7 +5,7 @@ export default {
5
5
  key: "google_calendar-update-event-instance",
6
6
  name: "Update Event Instance",
7
7
  description: "Update a specific instance of a recurring event. Changes apply only to the selected instance. [See the documentation](https://developers.google.com/calendar/api/v3/reference/events/update)",
8
- version: "0.0.2",
8
+ version: "0.0.3",
9
9
  type: "action",
10
10
  annotations: {
11
11
  destructiveHint: true,
@@ -6,7 +6,7 @@ export default {
6
6
  key: "google_calendar-update-following-instances",
7
7
  name: "Update Following Event Instances",
8
8
  description: "Update all instances of a recurring event following a specific instance. This creates a new recurring event starting from the selected instance. [See the documentation](https://developers.google.com/calendar/api/guides/recurringevents#modifying_all_following_instances)",
9
- version: "0.0.2",
9
+ version: "0.0.3",
10
10
  type: "action",
11
11
  annotations: {
12
12
  destructiveHint: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipedream/google_calendar",
3
- "version": "0.8.2",
3
+ "version": "0.8.3",
4
4
  "description": "Pipedream Google_calendar Components",
5
5
  "main": "google_calendar.app.mjs",
6
6
  "keywords": [
@@ -38,9 +38,14 @@ export default {
38
38
  summary,
39
39
  id,
40
40
  start,
41
+ status,
41
42
  } = event;
43
+ const baseSummary = summary || `Event ID: ${id}`;
44
+ const statusPrefix = status && status !== "confirmed"
45
+ ? `[${status.toUpperCase()}]`
46
+ : "";
42
47
  return {
43
- summary: summary || `Event ID: ${id}`,
48
+ summary: `${statusPrefix} ${baseSummary}`.trim(),
44
49
  id,
45
50
  ts: +new Date(start.dateTime),
46
51
  };
@@ -6,7 +6,7 @@ export default {
6
6
  key: "google_calendar-event-cancelled",
7
7
  name: "New Cancelled Event",
8
8
  description: "Emit new event when a Google Calendar event is cancelled or deleted",
9
- version: "0.1.12",
9
+ version: "0.1.13",
10
10
  type: "source",
11
11
  dedupe: "unique",
12
12
  props: {
@@ -6,7 +6,7 @@ export default {
6
6
  key: "google_calendar-event-ended",
7
7
  name: "New Ended Event",
8
8
  description: "Emit new event when a Google Calendar event ends",
9
- version: "0.1.12",
9
+ version: "0.1.13",
10
10
  type: "source",
11
11
  dedupe: "unique",
12
12
  props: {
@@ -5,7 +5,7 @@ export default {
5
5
  key: "google_calendar-new-calendar",
6
6
  name: "New Calendar Created",
7
7
  description: "Emit new event when a calendar is created.",
8
- version: "0.1.12",
8
+ version: "0.1.13",
9
9
  type: "source",
10
10
  dedupe: "unique",
11
11
  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.12",
8
+ version: "0.1.13",
9
9
  type: "source",
10
10
  dedupe: "unique",
11
11
  props: {
@@ -6,7 +6,7 @@ export default {
6
6
  key: "google_calendar-upcoming-event-alert-polling",
7
7
  name: "New Upcoming Event Alert (Polling)",
8
8
  description: "Emit new event based on a time interval before an upcoming event in the calendar. [See the documentation](https://developers.google.com/calendar/api/v3/reference/events/list)",
9
- version: "0.0.2",
9
+ version: "0.0.3",
10
10
  type: "source",
11
11
  dedupe: "unique",
12
12
  props: {