@squidcloud/google-calendar-client 1.0.414 → 1.0.415
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/connectors/google_calendar/googlecalendar-client/src/google-calendar-client.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Squid } from '@squidcloud/client';
|
|
1
|
+
import { GetAccessTokenResponse, Squid } from '@squidcloud/client';
|
|
2
2
|
import { CalendarEvent, GetCalendarEventsRequest, UpsertCalendarEventRequest } from '../../common/src/google-calendar-types';
|
|
3
3
|
/**
|
|
4
4
|
* Client for interacting with the Google Calendar connector.
|
|
@@ -21,13 +21,16 @@ export declare class SquidGoogleCalendarClient {
|
|
|
21
21
|
constructor(squid: Squid, integrationId: string);
|
|
22
22
|
/**
|
|
23
23
|
* Save an OAuth authorization code and exchange it for access/refresh tokens.
|
|
24
|
-
* Call this after the user completes the OAuth flow and
|
|
24
|
+
* Call this after the user completes the OAuth flow and receives the auth code.
|
|
25
25
|
* Squid will save the access/refresh tokens for future use when requesting Calendar data from Google
|
|
26
|
+
|
|
27
|
+
* This function requires Squid to be initialized with an API key
|
|
26
28
|
*
|
|
27
29
|
* @param authCode - OAuth2 authorization code from Google
|
|
28
30
|
* @param identifier - User-specific identifier (e.g., user ID)
|
|
31
|
+
* @returns Access token and expiration time
|
|
29
32
|
*/
|
|
30
|
-
saveAuthCode(authCode: string, identifier: string): Promise<
|
|
33
|
+
saveAuthCode(authCode: string, identifier: string): Promise<GetAccessTokenResponse>;
|
|
31
34
|
/**
|
|
32
35
|
* Retrieve calendar events within a specified time range.
|
|
33
36
|
* Returns structured event data including details like summary, description, start/end times, location, and attendees.
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={d:(t,n)=>{for(var
|
|
1
|
+
(()=>{"use strict";var e={d:(t,n)=>{for(var a in n)e.o(n,a)&&!e.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:n[a]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{GOOGLE_CALENDAR_SCOPES:()=>n,SquidGoogleCalendarClient:()=>a});const n=["openid","email","https://www.googleapis.com/auth/calendar.events"];class a{static{this.SCOPES=n}constructor(e,t){this.squid=e,this.integrationId=t}async saveAuthCode(e,t){return await this.squid.externalAuth(this.integrationId).saveAuthCode(e,t)}async getCalendarEvents(e){const t={...e,integrationId:this.integrationId};return await this.squid.executeFunction("getCalendarEvents",t)}async upsertCalendarEvent(e){const t={...e,integrationId:this.integrationId};return await this.squid.executeFunction("upsertCalendarEvent",t)}}var r=exports;for(var i in t)r[i]=t[i];t.__esModule&&Object.defineProperty(r,"__esModule",{value:!0})})();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@squidcloud/google-calendar-client",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.415",
|
|
4
4
|
"description": "Squid Google Calendar Client",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/client/src/index.d.ts",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"assertic": "^1.3.0",
|
|
21
21
|
"lodash": "^4.17.21",
|
|
22
|
-
"@squidcloud/client": "^1.0.
|
|
22
|
+
"@squidcloud/client": "^1.0.415"
|
|
23
23
|
},
|
|
24
24
|
"engines": {
|
|
25
25
|
"node": ">=20.0.0"
|