@frogbotai/piece-google-calendar 0.5.0
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/LICENSE +21 -0
- package/dist/index.d.ts +24 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +47 -0
- package/dist/index.js.map +1 -0
- package/package.json +44 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 FrogBot
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type PieceFactoryConfig } from "frogbot/pieces";
|
|
2
|
+
export declare const googleCalendarActions: readonly ["google-calendar-add-attendees", "create_quick_event", "create_google_calendar_event", "google_calendar_get_events", "update_event", "delete_event", "google_calendar_find_busy_free_periods", "google_calendar_get_event_by_id"];
|
|
3
|
+
export declare const googleCalendarScopes: readonly ["https://www.googleapis.com/auth/calendar.events", "https://www.googleapis.com/auth/calendar.readonly"];
|
|
4
|
+
export declare function createGoogleCalendar(config?: PieceFactoryConfig): import("frogbot/pieces").Piece & {
|
|
5
|
+
/** Add Attendees to Event: Add one or more person to existing event. */
|
|
6
|
+
googleCalendarAddAttendees: import("node_modules/frogbot/dist/types/tool").AnyTool;
|
|
7
|
+
/** Create Quick Event: Add Quick Calendar Event */
|
|
8
|
+
createQuickEvent: import("node_modules/frogbot/dist/types/tool").AnyTool;
|
|
9
|
+
/** Create Event: Add Event */
|
|
10
|
+
createGoogleCalendarEvent: import("node_modules/frogbot/dist/types/tool").AnyTool;
|
|
11
|
+
/** Get all Events: Get Events */
|
|
12
|
+
googleCalendarGetEvents: import("node_modules/frogbot/dist/types/tool").AnyTool;
|
|
13
|
+
/** Update Event: Updates an event in Google Calendar. */
|
|
14
|
+
updateEvent: import("node_modules/frogbot/dist/types/tool").AnyTool;
|
|
15
|
+
/** Delete Event: Deletes an event from Google Calendar. */
|
|
16
|
+
deleteEvent: import("node_modules/frogbot/dist/types/tool").AnyTool;
|
|
17
|
+
/** Find Busy/Free Periods in Calendar: Finds free/busy calendar details from Google Calendar. */
|
|
18
|
+
googleCalendarFindBusyFreePeriods: import("node_modules/frogbot/dist/types/tool").AnyTool;
|
|
19
|
+
/** Get Event by ID: Fetch event details by its unique ID from Google Calendar. */
|
|
20
|
+
googleCalendarGetEventById: import("node_modules/frogbot/dist/types/tool").AnyTool;
|
|
21
|
+
/** Custom API Call: Make a custom API call to a specific endpoint */
|
|
22
|
+
customApiCall: import("node_modules/frogbot/dist/types/tool").AnyTool;
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAA2B,KAAK,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAElF,eAAO,MAAM,qBAAqB,6OASxB,CAAC;AACX,eAAO,MAAM,oBAAoB,mHAGvB,CAAC;AAEX,wBAAgB,oBAAoB,CAAC,MAAM,CAAC,EAAE,kBAAkB;IAU5D,wEAAwE;;IAExE,mDAAmD;;IAEnD,8BAA8B;;IAE9B,iCAAiC;;IAEjC,yDAAyD;;IAEzD,2DAA2D;;IAE3D,iGAAiG;;IAEjG,kFAAkF;;IAElF,qEAAqE;;EAGxE"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import * as module from "@activepieces/piece-google-calendar";
|
|
2
|
+
import { createActivepiecesPiece } from "frogbot/pieces";
|
|
3
|
+
export const googleCalendarActions = [
|
|
4
|
+
"google-calendar-add-attendees",
|
|
5
|
+
"create_quick_event",
|
|
6
|
+
"create_google_calendar_event",
|
|
7
|
+
"google_calendar_get_events",
|
|
8
|
+
"update_event",
|
|
9
|
+
"delete_event",
|
|
10
|
+
"google_calendar_find_busy_free_periods",
|
|
11
|
+
"google_calendar_get_event_by_id",
|
|
12
|
+
];
|
|
13
|
+
export const googleCalendarScopes = [
|
|
14
|
+
"https://www.googleapis.com/auth/calendar.events",
|
|
15
|
+
"https://www.googleapis.com/auth/calendar.readonly"
|
|
16
|
+
];
|
|
17
|
+
export function createGoogleCalendar(config) {
|
|
18
|
+
const piece = createActivepiecesPiece({
|
|
19
|
+
module: module,
|
|
20
|
+
service: "google-calendar",
|
|
21
|
+
credentialType: "oauth2",
|
|
22
|
+
defaultActions: googleCalendarActions,
|
|
23
|
+
scopes: googleCalendarScopes,
|
|
24
|
+
config,
|
|
25
|
+
});
|
|
26
|
+
return Object.assign(piece, {
|
|
27
|
+
/** Add Attendees to Event: Add one or more person to existing event. */
|
|
28
|
+
googleCalendarAddAttendees: piece.tool("google-calendar-add-attendees"),
|
|
29
|
+
/** Create Quick Event: Add Quick Calendar Event */
|
|
30
|
+
createQuickEvent: piece.tool("create_quick_event"),
|
|
31
|
+
/** Create Event: Add Event */
|
|
32
|
+
createGoogleCalendarEvent: piece.tool("create_google_calendar_event"),
|
|
33
|
+
/** Get all Events: Get Events */
|
|
34
|
+
googleCalendarGetEvents: piece.tool("google_calendar_get_events"),
|
|
35
|
+
/** Update Event: Updates an event in Google Calendar. */
|
|
36
|
+
updateEvent: piece.tool("update_event"),
|
|
37
|
+
/** Delete Event: Deletes an event from Google Calendar. */
|
|
38
|
+
deleteEvent: piece.tool("delete_event"),
|
|
39
|
+
/** Find Busy/Free Periods in Calendar: Finds free/busy calendar details from Google Calendar. */
|
|
40
|
+
googleCalendarFindBusyFreePeriods: piece.tool("google_calendar_find_busy_free_periods"),
|
|
41
|
+
/** Get Event by ID: Fetch event details by its unique ID from Google Calendar. */
|
|
42
|
+
googleCalendarGetEventById: piece.tool("google_calendar_get_event_by_id"),
|
|
43
|
+
/** Custom API Call: Make a custom API call to a specific endpoint */
|
|
44
|
+
customApiCall: piece.tool("custom_api_call"),
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,qCAAqC,CAAC;AAC9D,OAAO,EAAE,uBAAuB,EAA2B,MAAM,gBAAgB,CAAC;AAElF,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,+BAA+B;IAC/B,oBAAoB;IACpB,8BAA8B;IAC9B,4BAA4B;IAC5B,cAAc;IACd,cAAc;IACd,wCAAwC;IACxC,iCAAiC;CACzB,CAAC;AACX,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,iDAAiD;IACjD,mDAAmD;CAC3C,CAAC;AAEX,MAAM,UAAU,oBAAoB,CAAC,MAA2B;IAC9D,MAAM,KAAK,GAAG,uBAAuB,CAAC;QACpC,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,iBAAiB;QAC1B,cAAc,EAAE,QAAQ;QACxB,cAAc,EAAE,qBAAqB;QACrC,MAAM,EAAE,oBAAoB;QAC5B,MAAM;KACP,CAAC,CAAC;IACH,OAAO,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE;QAC1B,wEAAwE;QACxE,0BAA0B,EAAE,KAAK,CAAC,IAAI,CAAC,+BAA+B,CAAC;QACvE,mDAAmD;QACnD,gBAAgB,EAAE,KAAK,CAAC,IAAI,CAAC,oBAAoB,CAAC;QAClD,8BAA8B;QAC9B,yBAAyB,EAAE,KAAK,CAAC,IAAI,CAAC,8BAA8B,CAAC;QACrE,iCAAiC;QACjC,uBAAuB,EAAE,KAAK,CAAC,IAAI,CAAC,4BAA4B,CAAC;QACjE,yDAAyD;QACzD,WAAW,EAAE,KAAK,CAAC,IAAI,CAAC,cAAc,CAAC;QACvC,2DAA2D;QAC3D,WAAW,EAAE,KAAK,CAAC,IAAI,CAAC,cAAc,CAAC;QACvC,iGAAiG;QACjG,iCAAiC,EAAE,KAAK,CAAC,IAAI,CAAC,wCAAwC,CAAC;QACvF,kFAAkF;QAClF,0BAA0B,EAAE,KAAK,CAAC,IAAI,CAAC,iCAAiC,CAAC;QACzE,qEAAqE;QACrE,aAAa,EAAE,KAAK,CAAC,IAAI,CAAC,iBAAiB,CAAC;KAC7C,CAAC,CAAC;AACL,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@frogbotai/piece-google-calendar",
|
|
3
|
+
"version": "0.5.0",
|
|
4
|
+
"description": "Google Calendar tools for FrogBot.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "Colby Gilbert",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/frogbotai/frogbot.git",
|
|
10
|
+
"directory": "packages/pieces/piece-google-calendar"
|
|
11
|
+
},
|
|
12
|
+
"type": "module",
|
|
13
|
+
"main": "./dist/index.js",
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"import": "./dist/index.js",
|
|
18
|
+
"types": "./dist/index.d.ts",
|
|
19
|
+
"default": "./dist/index.js"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"files": [
|
|
23
|
+
"dist"
|
|
24
|
+
],
|
|
25
|
+
"sideEffects": false,
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"@activepieces/piece-google-calendar": "0.9.5"
|
|
28
|
+
},
|
|
29
|
+
"peerDependencies": {
|
|
30
|
+
"frogbot": "0.5.0"
|
|
31
|
+
},
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"typescript": "5.6.2",
|
|
34
|
+
"frogbot": "0.5.0"
|
|
35
|
+
},
|
|
36
|
+
"publishConfig": {
|
|
37
|
+
"access": "public"
|
|
38
|
+
},
|
|
39
|
+
"scripts": {
|
|
40
|
+
"build": "tsc -p tsconfig.json",
|
|
41
|
+
"clean": "rm -rf dist",
|
|
42
|
+
"typecheck": "tsc --noEmit"
|
|
43
|
+
}
|
|
44
|
+
}
|