@activepieces/piece-google-calendar 0.9.3 → 0.9.4
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/package.json +7 -15
- package/src/index.js +106 -81
- package/src/index.d.ts +0 -6
- package/src/index.d.ts.map +0 -1
- package/src/index.js.map +0 -1
- package/src/lib/actions/add-attendees.action.d.ts +0 -12
- package/src/lib/actions/add-attendees.action.d.ts.map +0 -1
- package/src/lib/actions/add-attendees.action.js +0 -53
- package/src/lib/actions/add-attendees.action.js.map +0 -1
- package/src/lib/actions/add-calendar-to-calendarlist.d.ts +0 -7
- package/src/lib/actions/add-calendar-to-calendarlist.d.ts.map +0 -1
- package/src/lib/actions/add-calendar-to-calendarlist.js +0 -34
- package/src/lib/actions/add-calendar-to-calendarlist.js.map +0 -1
- package/src/lib/actions/create-event.d.ts +0 -25
- package/src/lib/actions/create-event.d.ts.map +0 -1
- package/src/lib/actions/create-event.js +0 -148
- package/src/lib/actions/create-event.js.map +0 -1
- package/src/lib/actions/create-quick-event.d.ts +0 -12
- package/src/lib/actions/create-quick-event.d.ts.map +0 -1
- package/src/lib/actions/create-quick-event.js +0 -68
- package/src/lib/actions/create-quick-event.js.map +0 -1
- package/src/lib/actions/delete-event.action.d.ts +0 -11
- package/src/lib/actions/delete-event.action.d.ts.map +0 -1
- package/src/lib/actions/delete-event.action.js +0 -36
- package/src/lib/actions/delete-event.action.js.map +0 -1
- package/src/lib/actions/find-busy-free-periods.d.ts +0 -12
- package/src/lib/actions/find-busy-free-periods.d.ts.map +0 -1
- package/src/lib/actions/find-busy-free-periods.js +0 -79
- package/src/lib/actions/find-busy-free-periods.js.map +0 -1
- package/src/lib/actions/get-event-by-id.d.ts +0 -13
- package/src/lib/actions/get-event-by-id.d.ts.map +0 -1
- package/src/lib/actions/get-event-by-id.js +0 -94
- package/src/lib/actions/get-event-by-id.js.map +0 -1
- package/src/lib/actions/get-events.d.ts +0 -15
- package/src/lib/actions/get-events.d.ts.map +0 -1
- package/src/lib/actions/get-events.js +0 -100
- package/src/lib/actions/get-events.js.map +0 -1
- package/src/lib/actions/update-event.action.d.ts +0 -24
- package/src/lib/actions/update-event.action.d.ts.map +0 -1
- package/src/lib/actions/update-event.action.js +0 -113
- package/src/lib/actions/update-event.action.js.map +0 -1
- package/src/lib/auth.d.ts +0 -11
- package/src/lib/auth.d.ts.map +0 -1
- package/src/lib/auth.js +0 -86
- package/src/lib/auth.js.map +0 -1
- package/src/lib/common/helper.d.ts +0 -26
- package/src/lib/common/helper.d.ts.map +0 -1
- package/src/lib/common/helper.js +0 -269
- package/src/lib/common/helper.js.map +0 -1
- package/src/lib/common/index.d.ts +0 -20
- package/src/lib/common/index.d.ts.map +0 -1
- package/src/lib/common/index.js +0 -99
- package/src/lib/common/index.js.map +0 -1
- package/src/lib/common/types.d.ts +0 -240
- package/src/lib/common/types.d.ts.map +0 -1
- package/src/lib/common/types.js +0 -17
- package/src/lib/common/types.js.map +0 -1
- package/src/lib/triggers/calendar-event.d.ts +0 -39
- package/src/lib/triggers/calendar-event.d.ts.map +0 -1
- package/src/lib/triggers/calendar-event.js +0 -147
- package/src/lib/triggers/calendar-event.js.map +0 -1
- package/src/lib/triggers/event-cancelled.d.ts +0 -71
- package/src/lib/triggers/event-cancelled.d.ts.map +0 -1
- package/src/lib/triggers/event-cancelled.js +0 -168
- package/src/lib/triggers/event-cancelled.js.map +0 -1
- package/src/lib/triggers/event-ends.d.ts +0 -67
- package/src/lib/triggers/event-ends.d.ts.map +0 -1
- package/src/lib/triggers/event-ends.js +0 -169
- package/src/lib/triggers/event-ends.js.map +0 -1
- package/src/lib/triggers/event-start-time-before.d.ts +0 -75
- package/src/lib/triggers/event-start-time-before.d.ts.map +0 -1
- package/src/lib/triggers/event-start-time-before.js +0 -163
- package/src/lib/triggers/event-start-time-before.js.map +0 -1
- package/src/lib/triggers/new-calendar.d.ts +0 -31
- package/src/lib/triggers/new-calendar.d.ts.map +0 -1
- package/src/lib/triggers/new-calendar.js +0 -154
- package/src/lib/triggers/new-calendar.js.map +0 -1
- package/src/lib/triggers/new-event-matching-search.d.ts +0 -47
- package/src/lib/triggers/new-event-matching-search.d.ts.map +0 -1
- package/src/lib/triggers/new-event-matching-search.js +0 -187
- package/src/lib/triggers/new-event-matching-search.js.map +0 -1
- package/src/lib/triggers/new-event.d.ts +0 -47
- package/src/lib/triggers/new-event.d.ts.map +0 -1
- package/src/lib/triggers/new-event.js +0 -228
- package/src/lib/triggers/new-event.js.map +0 -1
package/src/lib/common/types.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GoogleCalendarKind = exports.GoogleWatchType = void 0;
|
|
4
|
-
var GoogleWatchType;
|
|
5
|
-
(function (GoogleWatchType) {
|
|
6
|
-
GoogleWatchType["WEBHOOK"] = "web_hook";
|
|
7
|
-
})(GoogleWatchType || (exports.GoogleWatchType = GoogleWatchType = {}));
|
|
8
|
-
var GoogleCalendarKind;
|
|
9
|
-
(function (GoogleCalendarKind) {
|
|
10
|
-
GoogleCalendarKind["CALENDAR_LIST"] = "calendar#calendarList";
|
|
11
|
-
GoogleCalendarKind["CALENDAR_ENTRY"] = "calendar#calendarListEntry";
|
|
12
|
-
GoogleCalendarKind["CALENDAR_EVENT"] = "calendar#event";
|
|
13
|
-
GoogleCalendarKind["CALENDAR_EVENT_LIST"] = "calendar#events";
|
|
14
|
-
GoogleCalendarKind["EVENT_WATCH"] = "api#channel";
|
|
15
|
-
GoogleCalendarKind["CALENDAR_COLORS"] = "calendar#colors";
|
|
16
|
-
})(GoogleCalendarKind || (exports.GoogleCalendarKind = GoogleCalendarKind = {}));
|
|
17
|
-
//# sourceMappingURL=types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/lib/common/types.ts"],"names":[],"mappings":";;;AAAA,IAAY,eAEX;AAFD,WAAY,eAAe;IACzB,uCAAoB,CAAA;AACtB,CAAC,EAFW,eAAe,+BAAf,eAAe,QAE1B;AAED,IAAY,kBAOX;AAPD,WAAY,kBAAkB;IAC5B,6DAAuC,CAAA;IACvC,mEAA6C,CAAA;IAC7C,uDAAiC,CAAA;IACjC,6DAAuC,CAAA;IACvC,iDAA2B,CAAA;IAC3B,yDAAmC,CAAA;AACrC,CAAC,EAPW,kBAAkB,kCAAlB,kBAAkB,QAO7B"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { TriggerStrategy } from '@activepieces/pieces-framework';
|
|
2
|
-
export declare const calendarEventChanged: import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
3
|
-
serviceAccount: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
|
-
userEmail: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
5
|
-
}>)[], {
|
|
6
|
-
calendar_id: import("@activepieces/pieces-framework").DropdownProperty<string, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
7
|
-
serviceAccount: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
8
|
-
userEmail: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
9
|
-
}>)[]>;
|
|
10
|
-
expandRecurringEvent: import("@activepieces/pieces-framework").CheckboxProperty<true>;
|
|
11
|
-
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.POLLING, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
12
|
-
serviceAccount: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
13
|
-
userEmail: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
14
|
-
}>)[], {
|
|
15
|
-
calendar_id: import("@activepieces/pieces-framework").DropdownProperty<string, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
16
|
-
serviceAccount: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
17
|
-
userEmail: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
18
|
-
}>)[]>;
|
|
19
|
-
expandRecurringEvent: import("@activepieces/pieces-framework").CheckboxProperty<true>;
|
|
20
|
-
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.MANUAL, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
21
|
-
serviceAccount: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
22
|
-
userEmail: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
23
|
-
}>)[], {
|
|
24
|
-
calendar_id: import("@activepieces/pieces-framework").DropdownProperty<string, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
25
|
-
serviceAccount: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
26
|
-
userEmail: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
27
|
-
}>)[]>;
|
|
28
|
-
expandRecurringEvent: import("@activepieces/pieces-framework").CheckboxProperty<true>;
|
|
29
|
-
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
30
|
-
serviceAccount: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
31
|
-
userEmail: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
32
|
-
}>)[], {
|
|
33
|
-
calendar_id: import("@activepieces/pieces-framework").DropdownProperty<string, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
34
|
-
serviceAccount: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
35
|
-
userEmail: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
36
|
-
}>)[]>;
|
|
37
|
-
expandRecurringEvent: import("@activepieces/pieces-framework").CheckboxProperty<true>;
|
|
38
|
-
}>;
|
|
39
|
-
//# sourceMappingURL=calendar-event.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"calendar-event.d.ts","sourceRoot":"","sources":["../../../../src/lib/triggers/calendar-event.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAiCjE,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2G/B,CAAC"}
|
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.calendarEventChanged = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const pieces_framework_2 = require("@activepieces/pieces-framework");
|
|
7
|
-
const common_1 = require("../common");
|
|
8
|
-
const helper_1 = require("../common/helper");
|
|
9
|
-
const common_2 = require("../common");
|
|
10
|
-
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
11
|
-
const polling = {
|
|
12
|
-
strategy: pieces_common_1.DedupeStrategy.TIMEBASED,
|
|
13
|
-
items: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth, propsValue: { calendarId, expandRecurringEvent }, lastFetchEpochMS }) {
|
|
14
|
-
var _b;
|
|
15
|
-
let minUpdated = new Date(lastFetchEpochMS);
|
|
16
|
-
// Google Calendar API breaks if minUpdated is too far in the past
|
|
17
|
-
if (lastFetchEpochMS === 0) {
|
|
18
|
-
const now = new Date();
|
|
19
|
-
const yesterday = new Date();
|
|
20
|
-
yesterday.setDate(now.getDate() - 7);
|
|
21
|
-
minUpdated = yesterday;
|
|
22
|
-
}
|
|
23
|
-
const currentValues = (_b = (yield (0, helper_1.getEvents)(calendarId, expandRecurringEvent, auth, minUpdated))) !== null && _b !== void 0 ? _b : [];
|
|
24
|
-
const items = currentValues.map((item) => ({
|
|
25
|
-
epochMilliSeconds: new Date(item.updated).getTime(),
|
|
26
|
-
data: item,
|
|
27
|
-
}));
|
|
28
|
-
return items;
|
|
29
|
-
}),
|
|
30
|
-
};
|
|
31
|
-
exports.calendarEventChanged = (0, pieces_framework_1.createTrigger)({
|
|
32
|
-
// docs: https://developers.google.com/calendar/api/guides/push
|
|
33
|
-
auth: common_2.googleCalendarAuth,
|
|
34
|
-
name: 'new_or_updated_event',
|
|
35
|
-
displayName: 'New or Updated Event',
|
|
36
|
-
description: 'Triggers when an event is added or updated',
|
|
37
|
-
aiMetadata: {
|
|
38
|
-
description: 'Fires when any event in the selected calendar is created or modified, polling by last-updated time. Each fired item is the affected event; can optionally expand recurring events so every occurrence fires separately.',
|
|
39
|
-
},
|
|
40
|
-
props: {
|
|
41
|
-
calendar_id: common_1.googleCalendarCommon.calendarDropdown(),
|
|
42
|
-
expandRecurringEvent: pieces_framework_1.Property.Checkbox({
|
|
43
|
-
displayName: 'Expand Recurring Event?',
|
|
44
|
-
description: 'If true, the trigger will activate for every occurrence of a recurring event.',
|
|
45
|
-
required: true,
|
|
46
|
-
defaultValue: false,
|
|
47
|
-
}),
|
|
48
|
-
},
|
|
49
|
-
sampleData: {
|
|
50
|
-
kind: 'calendar#event',
|
|
51
|
-
etag: '3350849506974000',
|
|
52
|
-
id: '0nsfi5ttd2b17ac76ma2f37oi9',
|
|
53
|
-
htmlLink: 'https://www.google.com/calendar/event?eid=kgjb90uioj4klrgfmdsnjsjvlgkm',
|
|
54
|
-
summary: 'ap-event-test',
|
|
55
|
-
created: '2023-02-03T11:36:36.000Z',
|
|
56
|
-
updated: '2023-02-03T11:45:53.487Z',
|
|
57
|
-
description: 'Sample description',
|
|
58
|
-
status: 'canceled',
|
|
59
|
-
creator: {
|
|
60
|
-
email: 'test@test.com',
|
|
61
|
-
self: true,
|
|
62
|
-
},
|
|
63
|
-
organizer: {
|
|
64
|
-
email: 'test@test.com',
|
|
65
|
-
self: true,
|
|
66
|
-
},
|
|
67
|
-
start: {
|
|
68
|
-
dateTime: '2023-02-02T22:30:00+03:00',
|
|
69
|
-
timeZone: 'Asia/Amman',
|
|
70
|
-
},
|
|
71
|
-
end: {
|
|
72
|
-
dateTime: '2023-02-02T23:30:00+03:00',
|
|
73
|
-
timeZone: 'Asia/Amman',
|
|
74
|
-
},
|
|
75
|
-
transparency: 'transparent',
|
|
76
|
-
iCalUID: '0nsfi5ttd2b17ac76ma2f37oi9@google.com',
|
|
77
|
-
sequence: 1,
|
|
78
|
-
attendees: [
|
|
79
|
-
{
|
|
80
|
-
email: 'attende@test.com',
|
|
81
|
-
responseStatus: 'needsAction',
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
email: 'test@test.com',
|
|
85
|
-
organizer: true,
|
|
86
|
-
self: true,
|
|
87
|
-
responseStatus: 'accepted',
|
|
88
|
-
},
|
|
89
|
-
],
|
|
90
|
-
reminders: {
|
|
91
|
-
useDefault: true,
|
|
92
|
-
},
|
|
93
|
-
eventType: 'default',
|
|
94
|
-
},
|
|
95
|
-
type: pieces_framework_2.TriggerStrategy.POLLING,
|
|
96
|
-
test(_a) {
|
|
97
|
-
return tslib_1.__awaiter(this, arguments, void 0, function* ({ store, auth, propsValue, files }) {
|
|
98
|
-
return yield pieces_common_1.pollingHelper.test(polling, {
|
|
99
|
-
store,
|
|
100
|
-
auth,
|
|
101
|
-
propsValue: {
|
|
102
|
-
calendarId: propsValue.calendar_id,
|
|
103
|
-
expandRecurringEvent: propsValue.expandRecurringEvent,
|
|
104
|
-
},
|
|
105
|
-
files,
|
|
106
|
-
});
|
|
107
|
-
});
|
|
108
|
-
},
|
|
109
|
-
onEnable(_a) {
|
|
110
|
-
return tslib_1.__awaiter(this, arguments, void 0, function* ({ store, auth, propsValue }) {
|
|
111
|
-
yield pieces_common_1.pollingHelper.onEnable(polling, {
|
|
112
|
-
store,
|
|
113
|
-
auth,
|
|
114
|
-
propsValue: {
|
|
115
|
-
calendarId: propsValue.calendar_id,
|
|
116
|
-
expandRecurringEvent: propsValue.expandRecurringEvent,
|
|
117
|
-
},
|
|
118
|
-
});
|
|
119
|
-
});
|
|
120
|
-
},
|
|
121
|
-
onDisable(_a) {
|
|
122
|
-
return tslib_1.__awaiter(this, arguments, void 0, function* ({ store, auth, propsValue }) {
|
|
123
|
-
yield pieces_common_1.pollingHelper.onDisable(polling, {
|
|
124
|
-
store,
|
|
125
|
-
auth,
|
|
126
|
-
propsValue: {
|
|
127
|
-
calendarId: propsValue.calendar_id,
|
|
128
|
-
expandRecurringEvent: propsValue.expandRecurringEvent,
|
|
129
|
-
},
|
|
130
|
-
});
|
|
131
|
-
});
|
|
132
|
-
},
|
|
133
|
-
run(_a) {
|
|
134
|
-
return tslib_1.__awaiter(this, arguments, void 0, function* ({ store, auth, propsValue, files }) {
|
|
135
|
-
return yield pieces_common_1.pollingHelper.poll(polling, {
|
|
136
|
-
store,
|
|
137
|
-
auth,
|
|
138
|
-
propsValue: {
|
|
139
|
-
calendarId: propsValue.calendar_id,
|
|
140
|
-
expandRecurringEvent: propsValue.expandRecurringEvent,
|
|
141
|
-
},
|
|
142
|
-
files,
|
|
143
|
-
});
|
|
144
|
-
});
|
|
145
|
-
},
|
|
146
|
-
});
|
|
147
|
-
//# sourceMappingURL=calendar-event.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"calendar-event.js","sourceRoot":"","sources":["../../../../src/lib/triggers/calendar-event.ts"],"names":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K,EAAE;YAC5C,OAAO,MAAM,6BAAa,CAAC,IAAI,CAAC,OAAO,EAAE;gBACxC,KAAK;gBACL,IAAI;gBACJ,UAAU,EAAE;oBACX,UAAU,EAAE,UAAU,CAAC,WAAW;oBAClC,oBAAoB,EAAE,UAAU,CAAC,oBAAoB;iBACrD;gBACD,KAAK;aACL,CAAC,CAAC;QACJ,CAAC;KAAA;IACK,QAAQ;qEAAC,EAAE,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE;YACzC,MAAM,6BAAa,CAAC,QAAQ,CAAC,OAAO,EAAE;gBACrC,KAAK;gBACL,IAAI;gBACJ,UAAU,EAAE;oBACX,UAAU,EAAE,UAAU,CAAC,WAAW;oBAClC,oBAAoB,EAAE,UAAU,CAAC,oBAAoB;iBACrD;aACD,CAAC,CAAC;QACJ,CAAC;KAAA;IACK,SAAS;qEAAC,EAAE,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE;YAC1C,MAAM,6BAAa,CAAC,SAAS,CAAC,OAAO,EAAE;gBACtC,KAAK;gBACL,IAAI;gBACJ,UAAU,EAAE;oBACX,UAAU,EAAE,UAAU,CAAC,WAAW;oBAClC,oBAAoB,EAAE,UAAU,CAAC,oBAAoB;iBACrD;aACD,CAAC,CAAC;QACJ,CAAC;KAAA;IACK,GAAG;qEAAC,EAAE,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE;YAC3C,OAAO,MAAM,6BAAa,CAAC,IAAI,CAAC,OAAO,EAAE;gBACxC,KAAK;gBACL,IAAI;gBACJ,UAAU,EAAE;oBACX,UAAU,EAAE,UAAU,CAAC,WAAW;oBAClC,oBAAoB,EAAE,UAAU,CAAC,oBAAoB;iBACrD;gBACD,KAAK;aACL,CAAC,CAAC;QACJ,CAAC;KAAA;CACD,CAAC,CAAC"}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { TriggerStrategy } from '@activepieces/pieces-framework';
|
|
2
|
-
export declare const eventCancelled: import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
3
|
-
serviceAccount: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
|
-
userEmail: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
5
|
-
}>)[], {
|
|
6
|
-
calendar_id: import("@activepieces/pieces-framework").DropdownProperty<string, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
7
|
-
serviceAccount: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
8
|
-
userEmail: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
9
|
-
}>)[]>;
|
|
10
|
-
specific_event: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
11
|
-
event_id: import("@activepieces/pieces-framework").DropdownProperty<string, false, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
12
|
-
serviceAccount: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
13
|
-
userEmail: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
14
|
-
}>)[]> | import("@activepieces/pieces-framework").DropdownProperty<string, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
15
|
-
serviceAccount: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
16
|
-
userEmail: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
17
|
-
}>)[]>;
|
|
18
|
-
cancellation_reason: import("@activepieces/pieces-framework").StaticMultiSelectDropdownProperty<string, false>;
|
|
19
|
-
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.POLLING, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
20
|
-
serviceAccount: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
21
|
-
userEmail: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
22
|
-
}>)[], {
|
|
23
|
-
calendar_id: import("@activepieces/pieces-framework").DropdownProperty<string, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
24
|
-
serviceAccount: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
25
|
-
userEmail: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
26
|
-
}>)[]>;
|
|
27
|
-
specific_event: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
28
|
-
event_id: import("@activepieces/pieces-framework").DropdownProperty<string, false, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
29
|
-
serviceAccount: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
30
|
-
userEmail: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
31
|
-
}>)[]> | import("@activepieces/pieces-framework").DropdownProperty<string, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
32
|
-
serviceAccount: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
33
|
-
userEmail: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
34
|
-
}>)[]>;
|
|
35
|
-
cancellation_reason: import("@activepieces/pieces-framework").StaticMultiSelectDropdownProperty<string, false>;
|
|
36
|
-
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.MANUAL, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
37
|
-
serviceAccount: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
38
|
-
userEmail: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
39
|
-
}>)[], {
|
|
40
|
-
calendar_id: import("@activepieces/pieces-framework").DropdownProperty<string, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
41
|
-
serviceAccount: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
42
|
-
userEmail: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
43
|
-
}>)[]>;
|
|
44
|
-
specific_event: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
45
|
-
event_id: import("@activepieces/pieces-framework").DropdownProperty<string, false, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
46
|
-
serviceAccount: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
47
|
-
userEmail: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
48
|
-
}>)[]> | import("@activepieces/pieces-framework").DropdownProperty<string, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
49
|
-
serviceAccount: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
50
|
-
userEmail: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
51
|
-
}>)[]>;
|
|
52
|
-
cancellation_reason: import("@activepieces/pieces-framework").StaticMultiSelectDropdownProperty<string, false>;
|
|
53
|
-
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
54
|
-
serviceAccount: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
55
|
-
userEmail: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
56
|
-
}>)[], {
|
|
57
|
-
calendar_id: import("@activepieces/pieces-framework").DropdownProperty<string, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
58
|
-
serviceAccount: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
59
|
-
userEmail: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
60
|
-
}>)[]>;
|
|
61
|
-
specific_event: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
62
|
-
event_id: import("@activepieces/pieces-framework").DropdownProperty<string, false, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
63
|
-
serviceAccount: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
64
|
-
userEmail: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
65
|
-
}>)[]> | import("@activepieces/pieces-framework").DropdownProperty<string, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
66
|
-
serviceAccount: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
67
|
-
userEmail: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
68
|
-
}>)[]>;
|
|
69
|
-
cancellation_reason: import("@activepieces/pieces-framework").StaticMultiSelectDropdownProperty<string, false>;
|
|
70
|
-
}>;
|
|
71
|
-
//# sourceMappingURL=event-cancelled.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"event-cancelled.d.ts","sourceRoot":"","sources":["../../../../src/lib/triggers/event-cancelled.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAuHjE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6EzB,CAAC"}
|
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.eventCancelled = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const pieces_framework_2 = require("@activepieces/pieces-framework");
|
|
7
|
-
const common_1 = require("../common");
|
|
8
|
-
const common_2 = require("../common");
|
|
9
|
-
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
10
|
-
const pieces_common_2 = require("@activepieces/pieces-common");
|
|
11
|
-
const helper_1 = require("../common/helper");
|
|
12
|
-
const polling = {
|
|
13
|
-
strategy: pieces_common_1.DedupeStrategy.TIMEBASED,
|
|
14
|
-
items: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth, propsValue, lastFetchEpochMS }) {
|
|
15
|
-
var _b;
|
|
16
|
-
const { calendar_id: calendarId, specific_event, event_id, cancellation_reason, } = propsValue;
|
|
17
|
-
if (!calendarId) {
|
|
18
|
-
return [];
|
|
19
|
-
}
|
|
20
|
-
if (specific_event && !event_id) {
|
|
21
|
-
return [];
|
|
22
|
-
}
|
|
23
|
-
let minUpdated;
|
|
24
|
-
if (lastFetchEpochMS === 0) {
|
|
25
|
-
minUpdated = new Date();
|
|
26
|
-
minUpdated.setDate(minUpdated.getDate() - 1);
|
|
27
|
-
}
|
|
28
|
-
else {
|
|
29
|
-
minUpdated = new Date(lastFetchEpochMS);
|
|
30
|
-
}
|
|
31
|
-
let events = [];
|
|
32
|
-
if (specific_event && event_id) {
|
|
33
|
-
const eventRequest = {
|
|
34
|
-
method: pieces_common_2.HttpMethod.GET,
|
|
35
|
-
url: `${common_1.googleCalendarCommon.baseUrl}/calendars/${calendarId}/events/${event_id}`,
|
|
36
|
-
authentication: {
|
|
37
|
-
type: pieces_common_2.AuthenticationType.BEARER_TOKEN,
|
|
38
|
-
token: yield (0, common_1.getAccessToken)(auth),
|
|
39
|
-
},
|
|
40
|
-
};
|
|
41
|
-
try {
|
|
42
|
-
const eventResponse = yield pieces_common_2.httpClient.sendRequest(eventRequest);
|
|
43
|
-
const event = eventResponse.body;
|
|
44
|
-
const updatedTime = new Date((_b = event.updated) !== null && _b !== void 0 ? _b : 0).getTime();
|
|
45
|
-
if (updatedTime > lastFetchEpochMS && event.status === 'cancelled') {
|
|
46
|
-
events = [event];
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
catch (error) {
|
|
50
|
-
console.error('Error fetching specific event:', error);
|
|
51
|
-
return [];
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
else {
|
|
55
|
-
const allEvents = yield (0, helper_1.getEvents)(calendarId, true, auth, minUpdated);
|
|
56
|
-
events = allEvents.filter((event) => event.status === 'cancelled');
|
|
57
|
-
}
|
|
58
|
-
if (cancellation_reason && cancellation_reason.length > 0) {
|
|
59
|
-
events = events.filter((event) => {
|
|
60
|
-
return cancellation_reason.some((reason) => {
|
|
61
|
-
var _a, _b, _c;
|
|
62
|
-
switch (reason) {
|
|
63
|
-
case 'deleted':
|
|
64
|
-
return !event.summary || event.summary.includes('Deleted');
|
|
65
|
-
case 'declined':
|
|
66
|
-
return (((_a = event.attendees) === null || _a === void 0 ? void 0 : _a.some((attendee) => attendee.responseStatus === 'declined')) || false);
|
|
67
|
-
case 'rescheduled':
|
|
68
|
-
return (((_b = event.summary) === null || _b === void 0 ? void 0 : _b.toLowerCase().includes('rescheduled')) ||
|
|
69
|
-
((_c = event.description) === null || _c === void 0 ? void 0 : _c.toLowerCase().includes('rescheduled')) ||
|
|
70
|
-
false);
|
|
71
|
-
case 'other':
|
|
72
|
-
return true;
|
|
73
|
-
default:
|
|
74
|
-
return true;
|
|
75
|
-
}
|
|
76
|
-
});
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
return events.map((event) => {
|
|
80
|
-
return {
|
|
81
|
-
epochMilliSeconds: new Date(event.updated).getTime(),
|
|
82
|
-
data: event,
|
|
83
|
-
};
|
|
84
|
-
});
|
|
85
|
-
}),
|
|
86
|
-
};
|
|
87
|
-
exports.eventCancelled = (0, pieces_framework_1.createTrigger)({
|
|
88
|
-
auth: common_2.googleCalendarAuth,
|
|
89
|
-
name: 'event_cancelled',
|
|
90
|
-
displayName: 'Event Cancelled',
|
|
91
|
-
description: 'Fires when an event is canceled or deleted.',
|
|
92
|
-
aiMetadata: {
|
|
93
|
-
description: 'Fires when an event in the selected calendar transitions to a cancelled (or deleted) state, detected by polling. Each fired item is the cancelled event; can optionally be filtered by cancellation reason (deleted, attendee declined, rescheduled, other) and scoped to a single specific event.',
|
|
94
|
-
},
|
|
95
|
-
props: {
|
|
96
|
-
calendar_id: common_1.googleCalendarCommon.calendarDropdown('writer'),
|
|
97
|
-
specific_event: pieces_framework_1.Property.Checkbox({
|
|
98
|
-
displayName: 'Target Specific Event',
|
|
99
|
-
description: 'Enable to monitor a specific event instead of all events in the calendar.',
|
|
100
|
-
required: false,
|
|
101
|
-
defaultValue: false,
|
|
102
|
-
}),
|
|
103
|
-
event_id: common_1.googleCalendarCommon.eventDropdown(false),
|
|
104
|
-
cancellation_reason: pieces_framework_1.Property.StaticMultiSelectDropdown({
|
|
105
|
-
displayName: 'Cancellation Reasons',
|
|
106
|
-
description: 'Filter by specific types of cancellations (optional)',
|
|
107
|
-
required: false,
|
|
108
|
-
options: {
|
|
109
|
-
options: [
|
|
110
|
-
{ label: 'Event Deleted', value: 'deleted' },
|
|
111
|
-
{ label: 'Attendee Declined', value: 'declined' },
|
|
112
|
-
{ label: 'Event Rescheduled', value: 'rescheduled' },
|
|
113
|
-
{ label: 'Other Cancellations', value: 'other' },
|
|
114
|
-
],
|
|
115
|
-
},
|
|
116
|
-
}),
|
|
117
|
-
},
|
|
118
|
-
type: pieces_framework_2.TriggerStrategy.POLLING,
|
|
119
|
-
sampleData: {
|
|
120
|
-
id: 'abc123def456_cancelled',
|
|
121
|
-
summary: 'Cancelled: Q3 Planning Session',
|
|
122
|
-
status: 'cancelled',
|
|
123
|
-
created: '2025-07-20T10:00:00.000Z',
|
|
124
|
-
updated: '2025-08-14T09:30:00.000Z',
|
|
125
|
-
organizer: { email: 'project.manager@example.com' },
|
|
126
|
-
start: { dateTime: '2025-08-25T10:00:00-07:00' },
|
|
127
|
-
end: { dateTime: '2025-08-25T11:30:00-07:00' },
|
|
128
|
-
},
|
|
129
|
-
onEnable(context) {
|
|
130
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
131
|
-
yield pieces_common_1.pollingHelper.onEnable(polling, {
|
|
132
|
-
auth: context.auth,
|
|
133
|
-
store: context.store,
|
|
134
|
-
propsValue: context.propsValue,
|
|
135
|
-
});
|
|
136
|
-
});
|
|
137
|
-
},
|
|
138
|
-
onDisable(context) {
|
|
139
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
140
|
-
yield pieces_common_1.pollingHelper.onDisable(polling, {
|
|
141
|
-
auth: context.auth,
|
|
142
|
-
store: context.store,
|
|
143
|
-
propsValue: context.propsValue,
|
|
144
|
-
});
|
|
145
|
-
});
|
|
146
|
-
},
|
|
147
|
-
run(context) {
|
|
148
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
149
|
-
return yield pieces_common_1.pollingHelper.poll(polling, {
|
|
150
|
-
auth: context.auth,
|
|
151
|
-
store: context.store,
|
|
152
|
-
propsValue: context.propsValue,
|
|
153
|
-
files: context.files,
|
|
154
|
-
});
|
|
155
|
-
});
|
|
156
|
-
},
|
|
157
|
-
test(context) {
|
|
158
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
159
|
-
return yield pieces_common_1.pollingHelper.test(polling, {
|
|
160
|
-
auth: context.auth,
|
|
161
|
-
store: context.store,
|
|
162
|
-
propsValue: context.propsValue,
|
|
163
|
-
files: context.files,
|
|
164
|
-
});
|
|
165
|
-
});
|
|
166
|
-
},
|
|
167
|
-
});
|
|
168
|
-
//# sourceMappingURL=event-cancelled.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"event-cancelled.js","sourceRoot":"","sources":["../../../../src/lib/triggers/event-cancelled.ts"],"names":[],"mappings":";;;;AAAA,qEAKwC;AACxC,qEAAiE;AACjE,sCAAiE;AAEjE,sCAA+C;AAC/C,+DAIqC;AACrC,+DAKqC;AACrC,6CAA6C;AAG7C,MAAM,OAAO,GAQT;IACF,QAAQ,EAAE,8BAAc,CAAC,SAAS;IAClC,KAAK,EAAE,KAA+C,EAAE,oDAA1C,EAAE,IAAI,EAAE,UAAU,EAAE,gBAAgB,EAAE;;QAClD,MAAM,EACJ,WAAW,EAAE,UAAU,EACvB,cAAc,EACd,QAAQ,EACR,mBAAmB,GACpB,GAAG,UAAU,CAAC;QAEf,IAAI,CAAC,UAAU,EAAE,CAAC;YAChB,OAAO,EAAE,CAAC;QACZ,CAAC;QAED,IAAI,cAAc,IAAI,CAAC,QAAQ,EAAE,CAAC;YAChC,OAAO,EAAE,CAAC;QACZ,CAAC;QAED,IAAI,UAAgB,CAAC;QACrB,IAAI,gBAAgB,KAAK,CAAC,EAAE,CAAC;YAC3B,UAAU,GAAG,IAAI,IAAI,EAAE,CAAC;YACxB,UAAU,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,CAAC;QAC/C,CAAC;aAAM,CAAC;YACN,UAAU,GAAG,IAAI,IAAI,CAAC,gBAAgB,CAAC,CAAC;QAC1C,CAAC;QAED,IAAI,MAAM,GAA0B,EAAE,CAAC;QAEvC,IAAI,cAAc,IAAI,QAAQ,EAAE,CAAC;YAC/B,MAAM,YAAY,GAAgB;gBAChC,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,GAAG,EAAE,GAAG,6BAAoB,CAAC,OAAO,cAAc,UAA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ClB,KAAK,EAAE,OAAO,CAAC,KAAK;gBACpB,UAAU,EAAE,OAAO,CAAC,UAAU;aAC/B,CAAC,CAAC;QACL,CAAC;KAAA;IAEK,GAAG,CAAC,OAAO;;YACf,OAAO,MAAM,6BAAa,CAAC,IAAI,CAAC,OAAO,EAAE;gBACvC,IAAI,EAAE,OAAO,CAAC,IAAI;gBAClB,KAAK,EAAE,OAAO,CAAC,KAAK;gBACpB,UAAU,EAAE,OAAO,CAAC,UAAU;gBAC9B,KAAK,EAAE,OAAO,CAAC,KAAK;aACrB,CAAC,CAAC;QACL,CAAC;KAAA;IAEK,IAAI,CAAC,OAAO;;YAChB,OAAO,MAAM,6BAAa,CAAC,IAAI,CAAC,OAAO,EAAE;gBACvC,IAAI,EAAE,OAAO,CAAC,IAAI;gBAClB,KAAK,EAAE,OAAO,CAAC,KAAK;gBACpB,UAAU,EAAE,OAAO,CAAC,UAAU;gBAC9B,KAAK,EAAE,OAAO,CAAC,KAAK;aACrB,CAAC,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { TriggerStrategy } from '@activepieces/pieces-framework';
|
|
2
|
-
export declare const eventEnds: import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
3
|
-
serviceAccount: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
|
-
userEmail: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
5
|
-
}>)[], {
|
|
6
|
-
calendar_id: import("@activepieces/pieces-framework").DropdownProperty<string, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
7
|
-
serviceAccount: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
8
|
-
userEmail: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
9
|
-
}>)[]>;
|
|
10
|
-
specific_event: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
11
|
-
event_id: import("@activepieces/pieces-framework").DropdownProperty<string, false, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
12
|
-
serviceAccount: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
13
|
-
userEmail: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
14
|
-
}>)[]> | import("@activepieces/pieces-framework").DropdownProperty<string, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
15
|
-
serviceAccount: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
16
|
-
userEmail: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
17
|
-
}>)[]>;
|
|
18
|
-
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.POLLING, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
19
|
-
serviceAccount: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
20
|
-
userEmail: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
21
|
-
}>)[], {
|
|
22
|
-
calendar_id: import("@activepieces/pieces-framework").DropdownProperty<string, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
23
|
-
serviceAccount: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
24
|
-
userEmail: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
25
|
-
}>)[]>;
|
|
26
|
-
specific_event: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
27
|
-
event_id: import("@activepieces/pieces-framework").DropdownProperty<string, false, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
28
|
-
serviceAccount: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
29
|
-
userEmail: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
30
|
-
}>)[]> | import("@activepieces/pieces-framework").DropdownProperty<string, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
31
|
-
serviceAccount: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
32
|
-
userEmail: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
33
|
-
}>)[]>;
|
|
34
|
-
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.MANUAL, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
35
|
-
serviceAccount: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
36
|
-
userEmail: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
37
|
-
}>)[], {
|
|
38
|
-
calendar_id: import("@activepieces/pieces-framework").DropdownProperty<string, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
39
|
-
serviceAccount: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
40
|
-
userEmail: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
41
|
-
}>)[]>;
|
|
42
|
-
specific_event: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
43
|
-
event_id: import("@activepieces/pieces-framework").DropdownProperty<string, false, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
44
|
-
serviceAccount: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
45
|
-
userEmail: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
46
|
-
}>)[]> | import("@activepieces/pieces-framework").DropdownProperty<string, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
47
|
-
serviceAccount: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
48
|
-
userEmail: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
49
|
-
}>)[]>;
|
|
50
|
-
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
51
|
-
serviceAccount: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
52
|
-
userEmail: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
53
|
-
}>)[], {
|
|
54
|
-
calendar_id: import("@activepieces/pieces-framework").DropdownProperty<string, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
55
|
-
serviceAccount: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
56
|
-
userEmail: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
57
|
-
}>)[]>;
|
|
58
|
-
specific_event: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
59
|
-
event_id: import("@activepieces/pieces-framework").DropdownProperty<string, false, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
60
|
-
serviceAccount: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
61
|
-
userEmail: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
62
|
-
}>)[]> | import("@activepieces/pieces-framework").DropdownProperty<string, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
63
|
-
serviceAccount: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
64
|
-
userEmail: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
65
|
-
}>)[]>;
|
|
66
|
-
}>;
|
|
67
|
-
//# sourceMappingURL=event-ends.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"event-ends.d.ts","sourceRoot":"","sources":["../../../../src/lib/triggers/event-ends.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAoHjE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkFpB,CAAC"}
|