@activepieces/piece-google-calendar 0.6.4 → 0.6.6
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 +3 -4
- package/src/i18n/de.json +0 -1
- package/src/i18n/es.json +0 -1
- package/src/i18n/fr.json +0 -1
- package/src/i18n/ja.json +0 -1
- package/src/i18n/nl.json +0 -1
- package/src/i18n/pt.json +0 -1
- package/src/i18n/translation.json +0 -1
- package/src/i18n/zh.json +0 -1
- package/src/index.js +5 -0
- package/src/index.js.map +1 -1
- package/src/lib/actions/add-calendar-to-calendarlist.d.ts +3 -0
- package/src/lib/actions/add-calendar-to-calendarlist.js +36 -0
- package/src/lib/actions/add-calendar-to-calendarlist.js.map +1 -0
package/package.json
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@activepieces/piece-google-calendar",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.6",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@sinclair/typebox": "0.34.11",
|
|
6
6
|
"axios": "1.8.3",
|
|
7
7
|
"axios-retry": "4.4.1",
|
|
8
8
|
"dayjs": "1.11.9",
|
|
9
9
|
"deepmerge-ts": "7.1.0",
|
|
10
|
-
"fast-glob": "3.3.3",
|
|
11
10
|
"googleapis": "129.0.0",
|
|
12
11
|
"googleapis-common": "7.2.0",
|
|
13
12
|
"mime-types": "2.1.35",
|
|
@@ -15,8 +14,8 @@
|
|
|
15
14
|
"semver": "7.6.0",
|
|
16
15
|
"zod": "3.25.76",
|
|
17
16
|
"@activepieces/pieces-common": "0.7.0",
|
|
18
|
-
"@activepieces/pieces-framework": "0.
|
|
19
|
-
"@activepieces/shared": "0.
|
|
17
|
+
"@activepieces/pieces-framework": "0.20.1",
|
|
18
|
+
"@activepieces/shared": "0.23.0",
|
|
20
19
|
"tslib": "2.8.1"
|
|
21
20
|
},
|
|
22
21
|
"overrides": {
|
package/src/i18n/de.json
CHANGED
package/src/i18n/es.json
CHANGED
package/src/i18n/fr.json
CHANGED
package/src/i18n/ja.json
CHANGED
package/src/i18n/nl.json
CHANGED
package/src/i18n/pt.json
CHANGED
package/src/i18n/zh.json
CHANGED
package/src/index.js
CHANGED
|
@@ -21,6 +21,7 @@ const event_start_time_before_1 = require("./lib/triggers/event-start-time-befor
|
|
|
21
21
|
const new_event_matching_search_1 = require("./lib/triggers/new-event-matching-search");
|
|
22
22
|
const event_cancelled_1 = require("./lib/triggers/event-cancelled");
|
|
23
23
|
const new_calendar_1 = require("./lib/triggers/new-calendar");
|
|
24
|
+
const add_calendar_to_calendarlist_1 = require("./lib/actions/add-calendar-to-calendarlist");
|
|
24
25
|
exports.googleCalendarAuth = pieces_framework_1.PieceAuth.OAuth2({
|
|
25
26
|
description: '',
|
|
26
27
|
authUrl: 'https://accounts.google.com/o/oauth2/auth',
|
|
@@ -30,6 +31,7 @@ exports.googleCalendarAuth = pieces_framework_1.PieceAuth.OAuth2({
|
|
|
30
31
|
scope: [
|
|
31
32
|
'https://www.googleapis.com/auth/calendar.events',
|
|
32
33
|
'https://www.googleapis.com/auth/calendar.readonly',
|
|
34
|
+
'https://www.googleapis.com/auth/calendar.calendarlist'
|
|
33
35
|
],
|
|
34
36
|
});
|
|
35
37
|
exports.googleCalendar = (0, pieces_framework_1.createPiece)({
|
|
@@ -48,6 +50,8 @@ exports.googleCalendar = (0, pieces_framework_1.createPiece)({
|
|
|
48
50
|
'khaledmashaly',
|
|
49
51
|
'abuaboud',
|
|
50
52
|
'ikus060',
|
|
53
|
+
'Cloudieunnie',
|
|
54
|
+
'sanket-a11y'
|
|
51
55
|
],
|
|
52
56
|
auth: exports.googleCalendarAuth,
|
|
53
57
|
actions: [
|
|
@@ -59,6 +63,7 @@ exports.googleCalendar = (0, pieces_framework_1.createPiece)({
|
|
|
59
63
|
delete_event_action_1.deleteEventAction,
|
|
60
64
|
find_busy_free_periods_1.findFreeBusy,
|
|
61
65
|
get_event_by_id_1.getEventById,
|
|
66
|
+
add_calendar_to_calendarlist_1.addCalendarToCalendarlist,
|
|
62
67
|
(0, pieces_common_1.createCustomApiCallAction)({
|
|
63
68
|
auth: exports.googleCalendarAuth,
|
|
64
69
|
baseUrl() {
|
package/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/pieces/community/google-calendar/src/index.ts"],"names":[],"mappings":";;;;AAAA,+DAAwE;AACxE,qEAIwC;AACxC,iDAAqD;AACrD,6DAAyD;AACzD,yEAA4E;AAC5E,2EAAsE;AACtE,yDAAqD;AACrD,2EAAsE;AACtE,yCAAoD;AACpD,kEAAqE;AACrE,6EAA+E;AAC/E,iFAAoE;AACpE,mEAA6D;AAC7D,wDAAoD;AACpD,0DAAsD;AACtD,oFAA8E;AAC9E,wFAAkF;AAClF,oEAAgE;AAChE,8DAA0D;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/pieces/community/google-calendar/src/index.ts"],"names":[],"mappings":";;;;AAAA,+DAAwE;AACxE,qEAIwC;AACxC,iDAAqD;AACrD,6DAAyD;AACzD,yEAA4E;AAC5E,2EAAsE;AACtE,yDAAqD;AACrD,2EAAsE;AACtE,yCAAoD;AACpD,kEAAqE;AACrE,6EAA+E;AAC/E,iFAAoE;AACpE,mEAA6D;AAC7D,wDAAoD;AACpD,0DAAsD;AACtD,oFAA8E;AAC9E,wFAAkF;AAClF,oEAAgE;AAChE,8DAA0D;AAC1D,6FAAuF;AAE1E,QAAA,kBAAkB,GAAG,4BAAS,CAAC,MAAM,CAAC;IACjD,WAAW,EAAE,EAAE;IACf,OAAO,EAAE,2CAA2C;IACpD,QAAQ,EAAE,qCAAqC;IAC/C,QAAQ,EAAE,IAAI;IACd,IAAI,EAAE,IAAI;IACV,KAAK,EAAE;QACL,iDAAiD;QACjD,mDAAmD;QACnD,uDAAuD;KACxD;CACF,CAAC,CAAC;AAEU,QAAA,cAAc,GAAG,IAAA,8BAAW,EAAC;IACxC,uBAAuB,EAAE,QAAQ;IACjC,OAAO,EAAE,yDAAyD;IAClE,UAAU,EAAE,CAAC,sBAAa,CAAC,YAAY,CAAC;IACxC,WAAW,EAAE,iBAAiB;IAC9B,WAAW,EAAE,oCAAoC;IAEjD,OAAO,EAAE;QACP,aAAa;QACb,kBAAkB;QAClB,UAAU;QACV,cAAc;QACd,YAAY;QACZ,WAAW;QACX,eAAe;QACf,UAAU;QACV,SAAS;QACT,cAAc;QACd,aAAa;KACd;IACD,IAAI,EAAE,0BAAkB;IACxB,OAAO,EAAE;QACP,gDAAyB;QACzB,6CAAwB;QACxB,0BAAW;QACX,sBAAS;QACT,uCAAiB;QACjB,uCAAiB;QACjB,qCAAY;QACZ,8BAAY;QACZ,wDAAyB;QACzB,IAAA,yCAAyB,EAAC;YACxB,IAAI,EAAE,0BAAkB;YACxB,OAAO;gBACL,OAAO,6BAAoB,CAAC,OAAO,CAAC;YACtC,CAAC;YACD,WAAW,EAAE,CAAO,IAAI,EAAE,EAAE;gBAC1B,OAAO;oBACL,aAAa,EAAE,UAAW,IAA4B,CAAC,YAAY,EAAE;iBACtE,CAAC;YACJ,CAAC,CAAA;SACF,CAAC;KACH;IACD,QAAQ,EAAE,CAAC,qCAAoB;QAC7B,oBAAQ;QACR,sBAAS;QACT,8CAAoB;QACpB,kDAAsB;QACtB,gCAAc;QACd,0BAAW;KACZ;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const addCalendarToCalendarlist: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
|
|
2
|
+
id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
+
}>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.addCalendarToCalendarlist = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const index_1 = require("../../index");
|
|
6
|
+
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
7
|
+
const googleapis_common_1 = require("googleapis-common");
|
|
8
|
+
const googleapis_1 = require("googleapis");
|
|
9
|
+
exports.addCalendarToCalendarlist = (0, pieces_framework_1.createAction)({
|
|
10
|
+
auth: index_1.googleCalendarAuth,
|
|
11
|
+
name: 'addCalendarToCalendarlist',
|
|
12
|
+
displayName: 'Add Calendar to calendarList',
|
|
13
|
+
description: "Adds other people's calendars to your calendarList",
|
|
14
|
+
props: {
|
|
15
|
+
id: pieces_framework_1.Property.ShortText({
|
|
16
|
+
displayName: "Calendar Id",
|
|
17
|
+
description: "Find calendar id by going to calendar settings",
|
|
18
|
+
required: true
|
|
19
|
+
})
|
|
20
|
+
},
|
|
21
|
+
run(context) {
|
|
22
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
const id = context.propsValue.id;
|
|
24
|
+
const authClient = new googleapis_common_1.OAuth2Client();
|
|
25
|
+
authClient.setCredentials(context.auth);
|
|
26
|
+
const calendar = googleapis_1.google.calendar({ version: 'v3', auth: authClient });
|
|
27
|
+
const response = yield calendar.calendarList.insert({
|
|
28
|
+
requestBody: {
|
|
29
|
+
id: id
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
return response.data;
|
|
33
|
+
});
|
|
34
|
+
},
|
|
35
|
+
});
|
|
36
|
+
//# sourceMappingURL=add-calendar-to-calendarlist.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add-calendar-to-calendarlist.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/google-calendar/src/lib/actions/add-calendar-to-calendarlist.ts"],"names":[],"mappings":";;;;AAAA,uCAAiD;AACjD,qEAAwE;AACxE,yDAAiD;AACjD,2CAAoC;AAGvB,QAAA,yBAAyB,GAAG,IAAA,+BAAY,EAAC;IACpD,IAAI,EAAE,0BAAkB;IACxB,IAAI,EAAE,2BAA2B;IACjC,WAAW,EAAE,8BAA8B;IAC3C,WAAW,EAAE,oDAAoD;IACjE,KAAK,EAAE;QACL,EAAE,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACrB,WAAW,EAAE,aAAa;YAC1B,WAAW,EAAE,gDAAgD;YAC7D,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YAEf,MAAM,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC;YAEjC,MAAM,UAAU,GAAG,IAAI,gCAAY,EAAE,CAAC;YACtC,UAAU,CAAC,cAAc,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YAExC,MAAM,QAAQ,GAAG,mBAAM,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,EAAC,CAAC,CAAC;YAErE,MAAM,QAAQ,GAAG,MAAM,QAAQ,CAAC,YAAY,CAAC,MAAM,CAAC;gBAClD,WAAW,EAAE;oBACX,EAAE,EAAE,EAAE;iBACP;aACF,CAAC,CAAA;YAEF,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
|