@pipedream/google_calendar 0.5.8 → 0.5.10
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.
|
@@ -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: "0.2.
|
|
10
|
+
version: "0.2.6",
|
|
11
11
|
type: "action",
|
|
12
12
|
props: {
|
|
13
13
|
googleCalendar,
|
|
@@ -144,14 +144,24 @@ export default {
|
|
|
144
144
|
summary: this.summary,
|
|
145
145
|
location: this.location,
|
|
146
146
|
description: this.description,
|
|
147
|
-
start:
|
|
148
|
-
date: this.eventStartDate
|
|
147
|
+
start: {
|
|
148
|
+
date: this.eventStartDate?.length <= 10
|
|
149
|
+
? this.eventStartDate
|
|
150
|
+
: undefined,
|
|
151
|
+
dateTime: this.eventStartDate?.length > 10
|
|
152
|
+
? this.eventStartDate
|
|
153
|
+
: undefined,
|
|
149
154
|
timeZone,
|
|
150
|
-
}
|
|
151
|
-
end:
|
|
152
|
-
date: this.eventEndDate
|
|
155
|
+
},
|
|
156
|
+
end: {
|
|
157
|
+
date: this.eventEndDate?.length <= 10
|
|
158
|
+
? this.eventEndDate
|
|
159
|
+
: undefined,
|
|
160
|
+
dateTime: this.eventEndDate?.length > 10
|
|
161
|
+
? this.eventEndDate
|
|
162
|
+
: undefined,
|
|
153
163
|
timeZone,
|
|
154
|
-
}
|
|
164
|
+
},
|
|
155
165
|
recurrence,
|
|
156
166
|
attendees,
|
|
157
167
|
colorId: this.colorId,
|
package/package.json
CHANGED
|
@@ -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.16",
|
|
12
12
|
dedupe: "unique",
|
|
13
13
|
props: {
|
|
14
14
|
googleCalendar,
|
|
@@ -48,6 +48,7 @@ export default {
|
|
|
48
48
|
const params = {
|
|
49
49
|
maxResults: 25,
|
|
50
50
|
orderBy: "updated",
|
|
51
|
+
timeMin: new Date(new Date().setMonth(new Date().getMonth() - 1)).toISOString(), // 1 month ago
|
|
51
52
|
};
|
|
52
53
|
for (const calendarId of this.calendarIds) {
|
|
53
54
|
params.calendarId = calendarId;
|