@activepieces/piece-google-calendar 0.9.2 → 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.
Files changed (85) hide show
  1. package/package.json +7 -15
  2. package/src/index.js +106 -81
  3. package/src/index.d.ts +0 -6
  4. package/src/index.d.ts.map +0 -1
  5. package/src/index.js.map +0 -1
  6. package/src/lib/actions/add-attendees.action.d.ts +0 -12
  7. package/src/lib/actions/add-attendees.action.d.ts.map +0 -1
  8. package/src/lib/actions/add-attendees.action.js +0 -51
  9. package/src/lib/actions/add-attendees.action.js.map +0 -1
  10. package/src/lib/actions/add-calendar-to-calendarlist.d.ts +0 -7
  11. package/src/lib/actions/add-calendar-to-calendarlist.d.ts.map +0 -1
  12. package/src/lib/actions/add-calendar-to-calendarlist.js +0 -34
  13. package/src/lib/actions/add-calendar-to-calendarlist.js.map +0 -1
  14. package/src/lib/actions/create-event.d.ts +0 -25
  15. package/src/lib/actions/create-event.d.ts.map +0 -1
  16. package/src/lib/actions/create-event.js +0 -146
  17. package/src/lib/actions/create-event.js.map +0 -1
  18. package/src/lib/actions/create-quick-event.d.ts +0 -12
  19. package/src/lib/actions/create-quick-event.d.ts.map +0 -1
  20. package/src/lib/actions/create-quick-event.js +0 -66
  21. package/src/lib/actions/create-quick-event.js.map +0 -1
  22. package/src/lib/actions/delete-event.action.d.ts +0 -11
  23. package/src/lib/actions/delete-event.action.d.ts.map +0 -1
  24. package/src/lib/actions/delete-event.action.js +0 -34
  25. package/src/lib/actions/delete-event.action.js.map +0 -1
  26. package/src/lib/actions/find-busy-free-periods.d.ts +0 -12
  27. package/src/lib/actions/find-busy-free-periods.d.ts.map +0 -1
  28. package/src/lib/actions/find-busy-free-periods.js +0 -77
  29. package/src/lib/actions/find-busy-free-periods.js.map +0 -1
  30. package/src/lib/actions/get-event-by-id.d.ts +0 -13
  31. package/src/lib/actions/get-event-by-id.d.ts.map +0 -1
  32. package/src/lib/actions/get-event-by-id.js +0 -92
  33. package/src/lib/actions/get-event-by-id.js.map +0 -1
  34. package/src/lib/actions/get-events.d.ts +0 -15
  35. package/src/lib/actions/get-events.d.ts.map +0 -1
  36. package/src/lib/actions/get-events.js +0 -98
  37. package/src/lib/actions/get-events.js.map +0 -1
  38. package/src/lib/actions/update-event.action.d.ts +0 -24
  39. package/src/lib/actions/update-event.action.d.ts.map +0 -1
  40. package/src/lib/actions/update-event.action.js +0 -111
  41. package/src/lib/actions/update-event.action.js.map +0 -1
  42. package/src/lib/auth.d.ts +0 -11
  43. package/src/lib/auth.d.ts.map +0 -1
  44. package/src/lib/auth.js +0 -86
  45. package/src/lib/auth.js.map +0 -1
  46. package/src/lib/common/helper.d.ts +0 -26
  47. package/src/lib/common/helper.d.ts.map +0 -1
  48. package/src/lib/common/helper.js +0 -269
  49. package/src/lib/common/helper.js.map +0 -1
  50. package/src/lib/common/index.d.ts +0 -20
  51. package/src/lib/common/index.d.ts.map +0 -1
  52. package/src/lib/common/index.js +0 -99
  53. package/src/lib/common/index.js.map +0 -1
  54. package/src/lib/common/types.d.ts +0 -240
  55. package/src/lib/common/types.d.ts.map +0 -1
  56. package/src/lib/common/types.js +0 -17
  57. package/src/lib/common/types.js.map +0 -1
  58. package/src/lib/triggers/calendar-event.d.ts +0 -39
  59. package/src/lib/triggers/calendar-event.d.ts.map +0 -1
  60. package/src/lib/triggers/calendar-event.js +0 -144
  61. package/src/lib/triggers/calendar-event.js.map +0 -1
  62. package/src/lib/triggers/event-cancelled.d.ts +0 -71
  63. package/src/lib/triggers/event-cancelled.d.ts.map +0 -1
  64. package/src/lib/triggers/event-cancelled.js +0 -165
  65. package/src/lib/triggers/event-cancelled.js.map +0 -1
  66. package/src/lib/triggers/event-ends.d.ts +0 -67
  67. package/src/lib/triggers/event-ends.d.ts.map +0 -1
  68. package/src/lib/triggers/event-ends.js +0 -166
  69. package/src/lib/triggers/event-ends.js.map +0 -1
  70. package/src/lib/triggers/event-start-time-before.d.ts +0 -75
  71. package/src/lib/triggers/event-start-time-before.d.ts.map +0 -1
  72. package/src/lib/triggers/event-start-time-before.js +0 -160
  73. package/src/lib/triggers/event-start-time-before.js.map +0 -1
  74. package/src/lib/triggers/new-calendar.d.ts +0 -31
  75. package/src/lib/triggers/new-calendar.d.ts.map +0 -1
  76. package/src/lib/triggers/new-calendar.js +0 -151
  77. package/src/lib/triggers/new-calendar.js.map +0 -1
  78. package/src/lib/triggers/new-event-matching-search.d.ts +0 -47
  79. package/src/lib/triggers/new-event-matching-search.d.ts.map +0 -1
  80. package/src/lib/triggers/new-event-matching-search.js +0 -184
  81. package/src/lib/triggers/new-event-matching-search.js.map +0 -1
  82. package/src/lib/triggers/new-event.d.ts +0 -47
  83. package/src/lib/triggers/new-event.d.ts.map +0 -1
  84. package/src/lib/triggers/new-event.js +0 -225
  85. package/src/lib/triggers/new-event.js.map +0 -1
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwG/B,CAAC"}
@@ -1,144 +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
- props: {
38
- calendar_id: common_1.googleCalendarCommon.calendarDropdown(),
39
- expandRecurringEvent: pieces_framework_1.Property.Checkbox({
40
- displayName: 'Expand Recurring Event?',
41
- description: 'If true, the trigger will activate for every occurrence of a recurring event.',
42
- required: true,
43
- defaultValue: false,
44
- }),
45
- },
46
- sampleData: {
47
- kind: 'calendar#event',
48
- etag: '3350849506974000',
49
- id: '0nsfi5ttd2b17ac76ma2f37oi9',
50
- htmlLink: 'https://www.google.com/calendar/event?eid=kgjb90uioj4klrgfmdsnjsjvlgkm',
51
- summary: 'ap-event-test',
52
- created: '2023-02-03T11:36:36.000Z',
53
- updated: '2023-02-03T11:45:53.487Z',
54
- description: 'Sample description',
55
- status: 'canceled',
56
- creator: {
57
- email: 'test@test.com',
58
- self: true,
59
- },
60
- organizer: {
61
- email: 'test@test.com',
62
- self: true,
63
- },
64
- start: {
65
- dateTime: '2023-02-02T22:30:00+03:00',
66
- timeZone: 'Asia/Amman',
67
- },
68
- end: {
69
- dateTime: '2023-02-02T23:30:00+03:00',
70
- timeZone: 'Asia/Amman',
71
- },
72
- transparency: 'transparent',
73
- iCalUID: '0nsfi5ttd2b17ac76ma2f37oi9@google.com',
74
- sequence: 1,
75
- attendees: [
76
- {
77
- email: 'attende@test.com',
78
- responseStatus: 'needsAction',
79
- },
80
- {
81
- email: 'test@test.com',
82
- organizer: true,
83
- self: true,
84
- responseStatus: 'accepted',
85
- },
86
- ],
87
- reminders: {
88
- useDefault: true,
89
- },
90
- eventType: 'default',
91
- },
92
- type: pieces_framework_2.TriggerStrategy.POLLING,
93
- test(_a) {
94
- return tslib_1.__awaiter(this, arguments, void 0, function* ({ store, auth, propsValue, files }) {
95
- return yield pieces_common_1.pollingHelper.test(polling, {
96
- store,
97
- auth,
98
- propsValue: {
99
- calendarId: propsValue.calendar_id,
100
- expandRecurringEvent: propsValue.expandRecurringEvent,
101
- },
102
- files,
103
- });
104
- });
105
- },
106
- onEnable(_a) {
107
- return tslib_1.__awaiter(this, arguments, void 0, function* ({ store, auth, propsValue }) {
108
- yield pieces_common_1.pollingHelper.onEnable(polling, {
109
- store,
110
- auth,
111
- propsValue: {
112
- calendarId: propsValue.calendar_id,
113
- expandRecurringEvent: propsValue.expandRecurringEvent,
114
- },
115
- });
116
- });
117
- },
118
- onDisable(_a) {
119
- return tslib_1.__awaiter(this, arguments, void 0, function* ({ store, auth, propsValue }) {
120
- yield pieces_common_1.pollingHelper.onDisable(polling, {
121
- store,
122
- auth,
123
- propsValue: {
124
- calendarId: propsValue.calendar_id,
125
- expandRecurringEvent: propsValue.expandRecurringEvent,
126
- },
127
- });
128
- });
129
- },
130
- run(_a) {
131
- return tslib_1.__awaiter(this, arguments, void 0, function* ({ store, auth, propsValue, files }) {
132
- return yield pieces_common_1.pollingHelper.poll(polling, {
133
- store,
134
- auth,
135
- propsValue: {
136
- calendarId: propsValue.calendar_id,
137
- expandRecurringEvent: propsValue.expandRecurringEvent,
138
- },
139
- files,
140
- });
141
- });
142
- },
143
- });
144
- //# sourceMappingURL=calendar-event.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"calendar-event.js","sourceRoot":"","sources":["../../../../src/lib/triggers/calendar-event.ts"],"names":[],"mappings":";;;;AAAA,qEAAkI;AAClI,qEAAiE;AACjE,sCAAiD;AACjD,6CAA6C;AAE7C,sCAA+C;AAC/C,+DAAqF;AAErF,MAAM,OAAO,GAGT;IACH,QAAQ,EAAE,8BAAc,CAAC,SAAS;IAClC,KAAK,EAAE,KAAqF,EAAE,oDAAhF,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,UAAU,EAAE,oBAAoB,EAAE,EAAE,gBAAgB,EAAE;;QACzF,IAAI,UAAU,GAAG,IAAI,IAAI,CAAC,gBAAgB,CAAC,CAAC;QAC5C,kEAAkE;QAClE,IAAI,gBAAgB,KAAK,CAAC,EAAE,CAAC;YAC5B,MAAM,GAAG,GAAG,IAAI,IAAI,EA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C;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0EzB,CAAC"}
@@ -1,165 +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
- props: {
93
- calendar_id: common_1.googleCalendarCommon.calendarDropdown('writer'),
94
- specific_event: pieces_framework_1.Property.Checkbox({
95
- displayName: 'Target Specific Event',
96
- description: 'Enable to monitor a specific event instead of all events in the calendar.',
97
- required: false,
98
- defaultValue: false,
99
- }),
100
- event_id: common_1.googleCalendarCommon.eventDropdown(false),
101
- cancellation_reason: pieces_framework_1.Property.StaticMultiSelectDropdown({
102
- displayName: 'Cancellation Reasons',
103
- description: 'Filter by specific types of cancellations (optional)',
104
- required: false,
105
- options: {
106
- options: [
107
- { label: 'Event Deleted', value: 'deleted' },
108
- { label: 'Attendee Declined', value: 'declined' },
109
- { label: 'Event Rescheduled', value: 'rescheduled' },
110
- { label: 'Other Cancellations', value: 'other' },
111
- ],
112
- },
113
- }),
114
- },
115
- type: pieces_framework_2.TriggerStrategy.POLLING,
116
- sampleData: {
117
- id: 'abc123def456_cancelled',
118
- summary: 'Cancelled: Q3 Planning Session',
119
- status: 'cancelled',
120
- created: '2025-07-20T10:00:00.000Z',
121
- updated: '2025-08-14T09:30:00.000Z',
122
- organizer: { email: 'project.manager@example.com' },
123
- start: { dateTime: '2025-08-25T10:00:00-07:00' },
124
- end: { dateTime: '2025-08-25T11:30:00-07:00' },
125
- },
126
- onEnable(context) {
127
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
128
- yield pieces_common_1.pollingHelper.onEnable(polling, {
129
- auth: context.auth,
130
- store: context.store,
131
- propsValue: context.propsValue,
132
- });
133
- });
134
- },
135
- onDisable(context) {
136
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
137
- yield pieces_common_1.pollingHelper.onDisable(polling, {
138
- auth: context.auth,
139
- store: context.store,
140
- propsValue: context.propsValue,
141
- });
142
- });
143
- },
144
- run(context) {
145
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
146
- return yield pieces_common_1.pollingHelper.poll(polling, {
147
- auth: context.auth,
148
- store: context.store,
149
- propsValue: context.propsValue,
150
- files: context.files,
151
- });
152
- });
153
- },
154
- test(context) {
155
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
156
- return yield pieces_common_1.pollingHelper.test(polling, {
157
- auth: context.auth,
158
- store: context.store,
159
- propsValue: context.propsValue,
160
- files: context.files,
161
- });
162
- });
163
- },
164
- });
165
- //# 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":";;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AAC,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+EpB,CAAC"}