@frogbotai/piece-google-calendar 0.29.0 → 0.30.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/dist/index.d.ts CHANGED
@@ -43,9 +43,9 @@ export declare const createGoogleCalendar: import("frogbot").PieceFactory<{
43
43
  eventId: import("zod").ZodString;
44
44
  attendees: import("zod").ZodArray<import("zod").ZodEmail>;
45
45
  sendUpdates: import("zod").ZodOptional<import("zod").ZodEnum<{
46
+ none: "none";
46
47
  all: "all";
47
48
  externalOnly: "externalOnly";
48
- none: "none";
49
49
  }>>;
50
50
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
51
51
  id: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
@@ -157,9 +157,9 @@ export declare const createGoogleCalendar: import("frogbot").PieceFactory<{
157
157
  calendarId: import("zod").ZodString;
158
158
  text: import("zod").ZodString;
159
159
  sendUpdates: import("zod").ZodDefault<import("zod").ZodEnum<{
160
+ none: "none";
160
161
  all: "all";
161
162
  externalOnly: "externalOnly";
162
- none: "none";
163
163
  }>>;
164
164
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
165
165
  id: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
@@ -278,9 +278,9 @@ export declare const createGoogleCalendar: import("frogbot").PieceFactory<{
278
278
  title: import("zod").ZodString;
279
279
  startDateTime: import("zod").ZodISODateTime;
280
280
  sendUpdates: import("zod").ZodDefault<import("zod").ZodEnum<{
281
+ none: "none";
281
282
  all: "all";
282
283
  externalOnly: "externalOnly";
283
- none: "none";
284
284
  }>>;
285
285
  guestsCanModify: import("zod").ZodDefault<import("zod").ZodBoolean>;
286
286
  guestsCanInviteOthers: import("zod").ZodDefault<import("zod").ZodBoolean>;
@@ -544,9 +544,9 @@ export declare const createGoogleCalendar: import("frogbot").PieceFactory<{
544
544
  guestsCanInviteOthers: import("zod").ZodOptional<import("zod").ZodBoolean>;
545
545
  guestsCanSeeOtherGuests: import("zod").ZodOptional<import("zod").ZodBoolean>;
546
546
  sendUpdates: import("zod").ZodOptional<import("zod").ZodEnum<{
547
+ none: "none";
547
548
  all: "all";
548
549
  externalOnly: "externalOnly";
549
- none: "none";
550
550
  }>>;
551
551
  createMeetLink: import("zod").ZodOptional<import("zod").ZodBoolean>;
552
552
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
@@ -659,9 +659,9 @@ export declare const createGoogleCalendar: import("frogbot").PieceFactory<{
659
659
  calendarId: import("zod").ZodString;
660
660
  eventId: import("zod").ZodString;
661
661
  sendUpdates: import("zod").ZodOptional<import("zod").ZodEnum<{
662
+ none: "none";
662
663
  all: "all";
663
664
  externalOnly: "externalOnly";
664
- none: "none";
665
665
  }>>;
666
666
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
667
667
  deleted: import("zod").ZodLiteral<true>;
@@ -843,9 +843,9 @@ export declare const createGoogleCalendar: import("frogbot").PieceFactory<{
843
843
  headers: import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
844
844
  query: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<readonly [import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean]>, import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean]>>]>>>;
845
845
  bodyType: import("zod").ZodDefault<import("zod").ZodEnum<{
846
- none: "none";
847
846
  formData: "formData";
848
847
  json: "json";
848
+ none: "none";
849
849
  raw: "raw";
850
850
  }>>;
851
851
  body: import("zod").ZodOptional<import("zod").ZodJSONSchema>;
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { googleOAuth } from '@frogbotai/piece-google';
2
2
  import { definePiece } from 'frogbot/pieces';
3
3
  import { customApiCall } from './actions/customApiCall.js';
4
- import { addAttendees, createEvent, createQuickEvent, deleteEvent, updateEvent, } from './actions/events.js';
4
+ import { addAttendees, createEvent, createQuickEvent, deleteEvent, updateEvent } from './actions/events.js';
5
5
  import { findFreeBusyPeriods, getEvent, listEvents } from './actions/read.js';
6
6
  import { createGoogleCalendarClient } from './client.js';
7
7
  import { googleCalendarAuth, googleCalendarScopes } from './config.js';
@@ -14,7 +14,7 @@ export const googleCalendarActions = [
14
14
  'deleteEvent',
15
15
  'findFreeBusyPeriods',
16
16
  'getEvent',
17
- 'customApiCall',
17
+ 'customApiCall'
18
18
  ];
19
19
  export { googleCalendarScopes };
20
20
  export const createGoogleCalendar = definePiece({
@@ -22,17 +22,20 @@ export const createGoogleCalendar = definePiece({
22
22
  label: 'Google Calendar',
23
23
  admin: {
24
24
  description: 'Manage calendar events, attendees, and availability',
25
- group: 'Productivity',
25
+ group: 'Productivity'
26
26
  },
27
27
  auth: googleCalendarAuth,
28
28
  client: createGoogleCalendarClient,
29
29
  oauth: {
30
30
  ...googleOAuth,
31
- scopes: [...googleOAuth.scopes, ...googleCalendarScopes],
32
- toAuth: ({ tokens }) => ({
33
- accessToken: tokens.access_token ?? '',
34
- refreshToken: tokens.refresh_token,
35
- }),
31
+ scopes: [
32
+ ...googleOAuth.scopes,
33
+ ...googleCalendarScopes
34
+ ],
35
+ toAuth: ({ tokens })=>({
36
+ accessToken: tokens.access_token ?? '',
37
+ refreshToken: tokens.refresh_token
38
+ })
36
39
  },
37
40
  actions: [
38
41
  addAttendees,
@@ -43,7 +46,8 @@ export const createGoogleCalendar = definePiece({
43
46
  deleteEvent,
44
47
  findFreeBusyPeriods,
45
48
  getEvent,
46
- customApiCall,
47
- ],
49
+ customApiCall
50
+ ]
48
51
  });
52
+
49
53
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,M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["../src/index.ts"],"names":["googleOAuth","definePiece","customApiCall","addAttendees","createEvent","createQuickEvent","deleteEvent","updateEvent","findFreeBusyPeriods","getEvent","listEvents","createGoogleCalendarClient","googleCalendarAuth","googleCalendarScopes","googleCalendarActions","createGoogleCalendar","slug","label","admin","description","group","auth","client","oauth","scopes","toAuth","tokens","accessToken","access_token","refreshToken","refresh_token","actions"],"mappings":"AAAA,SAASA,WAAW,QAAQ,0BAA0B;AACtD,SAASC,WAAW,QAAQ,iBAAiB;AAE7C,SAASC,aAAa,QAAQ,6BAA6B;AAC3D,SACEC,YAAY,EACZC,WAAW,EACXC,gBAAgB,EAChBC,WAAW,EACXC,WAAW,QACN,sBAAsB;AAC7B,SAASC,mBAAmB,EAAEC,QAAQ,EAAEC,UAAU,QAAQ,oBAAoB;AAC9E,SAASC,0BAA0B,QAAQ,cAAc;AACzD,SAASC,kBAAkB,EAAEC,oBAAoB,QAAQ,cAAc;AAEvE,OAAO,MAAMC,wBAAwB;IACnC;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;CACD,CAAU;AACX,SAASD,oBAAoB,GAAG;AAEhC,OAAO,MAAME,uBAAuBd,YAAY;IAC9Ce,MAAM;IACNC,OAAO;IACPC,OAAO;QACLC,aAAa;QACbC,OAAO;IACT;IACAC,MAAMT;IACNU,QAAQX;IACRY,OAAO;QACL,GAAGvB,WAAW;QACdwB,QAAQ;eAAIxB,YAAYwB,MAAM;eAAKX;SAAqB;QACxDY,QAAQ,CAAC,EAAEC,MAAM,EAAE,GAAM,CAAA;gBACvBC,aAAaD,OAAOE,YAAY,IAAI;gBACpCC,cAAcH,OAAOI,aAAa;YACpC,CAAA;IACF;IACAC,SAAS;QACP5B;QACAE;QACAD;QACAM;QACAH;QACAD;QACAE;QACAC;QACAP;KACD;AACH,GAAG","file":"index.js"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frogbotai/piece-google-calendar",
3
- "version": "0.29.0",
3
+ "version": "0.30.0",
4
4
  "description": "Google Calendar tools for FrogBot.",
5
5
  "license": "MIT",
6
6
  "author": "Colby Gilbert",
@@ -26,20 +26,20 @@
26
26
  "dependencies": {
27
27
  "googleapis": "^180.0.0",
28
28
  "zod": "^4.3.6",
29
- "@frogbotai/piece-google": "0.29.0"
29
+ "@frogbotai/piece-google": "0.30.0"
30
30
  },
31
31
  "peerDependencies": {
32
- "frogbot": "0.29.0"
32
+ "frogbot": "0.30.0"
33
33
  },
34
34
  "devDependencies": {
35
35
  "typescript": "5.6.2",
36
- "frogbot": "0.29.0"
36
+ "frogbot": "0.30.0"
37
37
  },
38
38
  "publishConfig": {
39
39
  "access": "public"
40
40
  },
41
41
  "scripts": {
42
- "build": "rm -rf dist && tsc -p tsconfig.json",
42
+ "build": "node ../../../scripts/build-package.mjs",
43
43
  "clean": "rm -rf dist",
44
44
  "typecheck": "tsc --noEmit"
45
45
  }