@memberjunction/ai-bridge-server 6.2.0-edge.5 → 6.2.0-edge.7
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/calendar-source.d.ts +47 -265
- package/dist/calendar-source.d.ts.map +1 -1
- package/dist/calendar-source.js +108 -309
- package/dist/calendar-source.js.map +1 -1
- package/dist/calendar-watcher.d.ts.map +1 -1
- package/dist/calendar-watcher.js +1 -0
- package/dist/calendar-watcher.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/package.json +7 -11
- package/dist/calendar-clients.d.ts +0 -153
- package/dist/calendar-clients.d.ts.map +0 -1
- package/dist/calendar-clients.js +0 -194
- package/dist/calendar-clients.js.map +0 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { BaseCommunicationProvider, CalendarEvent, CalendarTarget, ProviderCredentialsBase } from '@memberjunction/communication-types';
|
|
1
2
|
/**
|
|
2
3
|
* One attendee on a normalized calendar invite. Platform-agnostic — Graph's `attendees[].emailAddress`
|
|
3
4
|
* and Google's `attendees[].email` both normalize to this shape.
|
|
@@ -67,13 +68,13 @@ export interface CalendarPollResult {
|
|
|
67
68
|
* The **injectable calendar-API seam** — the per-provider calendar backend the {@link CalendarWatcher}
|
|
68
69
|
* polls. This is the bridge program's "documented seam, not a hard dependency" pattern (mirroring the
|
|
69
70
|
* bridge SDK seams and `IRealtimeSession`): the watcher depends only on this interface, so it is fully
|
|
70
|
-
* unit-testable with an in-memory mock and production binds
|
|
71
|
-
*
|
|
71
|
+
* unit-testable with an in-memory mock and production binds a Communication provider (Microsoft Graph,
|
|
72
|
+
* Google Calendar) behind it.
|
|
72
73
|
*
|
|
73
74
|
* An implementation watches **one** agent identity's calendar (the identity value is passed per call
|
|
74
75
|
* so a single adapter instance can serve many identities on the same provider/credential).
|
|
75
76
|
*
|
|
76
|
-
* @see {@link GraphCalendarSource} / {@link GoogleCalendarSource}
|
|
77
|
+
* @see {@link GraphCalendarSource} / {@link GoogleCalendarSource}, which read through the Communication providers.
|
|
77
78
|
*/
|
|
78
79
|
export interface ICalendarSource {
|
|
79
80
|
/**
|
|
@@ -90,284 +91,65 @@ export interface ICalendarSource {
|
|
|
90
91
|
ListUpcomingInvites(identityValue: string, sinceCursor?: string): Promise<CalendarPollResult>;
|
|
91
92
|
}
|
|
92
93
|
/**
|
|
93
|
-
* The error
|
|
94
|
-
*
|
|
95
|
-
* detect "not yet bound" vs. a genuine transport failure.
|
|
94
|
+
* The error a {@link CommunicationCalendarSource} throws when it was built with no provider. Distinct
|
|
95
|
+
* type so a host can detect "not yet bound" vs. a genuine transport failure.
|
|
96
96
|
*/
|
|
97
97
|
export declare class CalendarSourceNotBoundError extends Error {
|
|
98
98
|
constructor(providerLabel: string);
|
|
99
99
|
}
|
|
100
|
-
/**
|
|
101
|
-
export
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
export interface GraphEmailAddress {
|
|
109
|
-
/** The email address. */
|
|
110
|
-
address?: string;
|
|
111
|
-
/** The display name, when Graph provides one. */
|
|
112
|
-
name?: string;
|
|
113
|
-
}
|
|
114
|
-
/** One Graph attendee (`event.attendees[]`). */
|
|
115
|
-
export interface GraphAttendee {
|
|
116
|
-
/** The attendee's email-address block. */
|
|
117
|
-
emailAddress?: GraphEmailAddress;
|
|
118
|
-
/** The attendee's response (`{ response, time }`). */
|
|
119
|
-
status?: {
|
|
120
|
-
response?: string;
|
|
121
|
-
};
|
|
122
|
-
}
|
|
123
|
-
/** The Graph `onlineMeeting` facet (`event.onlineMeeting.joinUrl`). */
|
|
124
|
-
export interface GraphOnlineMeeting {
|
|
125
|
-
/** The online-meeting join URL. */
|
|
126
|
-
joinUrl?: string;
|
|
127
|
-
}
|
|
128
|
-
/** The Graph `event.body` facet — HTML/text body that may carry a join URL when `onlineMeeting` is absent. */
|
|
129
|
-
export interface GraphItemBody {
|
|
130
|
-
/** `'html'` or `'text'`. */
|
|
131
|
-
contentType?: string;
|
|
132
|
-
/** The body content (HTML or plain text). */
|
|
133
|
-
content?: string;
|
|
134
|
-
}
|
|
135
|
-
/** The subset of a Graph calendar `event` resource this adapter normalizes. */
|
|
136
|
-
export interface GraphCalendarEvent {
|
|
137
|
-
/** Graph `event.id` — the stable external event id. */
|
|
138
|
-
id?: string;
|
|
139
|
-
/** Graph `event.subject` — the meeting title. */
|
|
140
|
-
subject?: string;
|
|
141
|
-
/** Graph `event.onlineMeeting.joinUrl`. */
|
|
142
|
-
onlineMeeting?: GraphOnlineMeeting;
|
|
143
|
-
/** Graph `event.onlineMeetingUrl` (legacy flat field, when present). */
|
|
144
|
-
onlineMeetingUrl?: string;
|
|
145
|
-
/** Graph `event.body` — searched for a join URL when no structured field is present. */
|
|
146
|
-
body?: GraphItemBody;
|
|
147
|
-
/** Graph `event.start`. */
|
|
148
|
-
start?: GraphDateTimeTimeZone;
|
|
149
|
-
/** Graph `event.end`. */
|
|
150
|
-
end?: GraphDateTimeTimeZone;
|
|
151
|
-
/** Graph `event.attendees`. */
|
|
152
|
-
attendees?: GraphAttendee[];
|
|
153
|
-
/** Graph `event.organizer.emailAddress`. */
|
|
154
|
-
organizer?: {
|
|
155
|
-
emailAddress?: GraphEmailAddress;
|
|
156
|
-
};
|
|
157
|
-
}
|
|
158
|
-
/** One page of Graph delta results — the events + the cursor for the next call. */
|
|
159
|
-
export interface GraphEventPage {
|
|
160
|
-
/** The events on this page. */
|
|
161
|
-
value: GraphCalendarEvent[];
|
|
162
|
-
/** Graph `@odata.nextLink` — present when more pages remain in this poll. */
|
|
163
|
-
nextLink?: string;
|
|
164
|
-
/** Graph `@odata.deltaLink` — present on the final page; becomes the next poll's `sinceCursor`. */
|
|
165
|
-
deltaLink?: string;
|
|
100
|
+
/** The one provider operation a calendar source uses. Any `BaseCommunicationProvider` satisfies it. */
|
|
101
|
+
export type CalendarSyncProvider = Pick<BaseCommunicationProvider, 'SyncEvents'>;
|
|
102
|
+
/** Options for {@link CommunicationCalendarSource}. */
|
|
103
|
+
export interface CommunicationCalendarSourceOptions {
|
|
104
|
+
/** How far ahead (days) the first poll, or a poll after a refused cursor, reads. Defaults to 30. */
|
|
105
|
+
LookaheadDays?: number;
|
|
106
|
+
/** Clock seam for the first-poll window. Defaults to `Date.now`. */
|
|
107
|
+
Now?: () => number;
|
|
166
108
|
}
|
|
167
109
|
/**
|
|
168
|
-
*
|
|
169
|
-
* implements this over `@microsoft/microsoft-graph-client` — `GET /users/{userId}/calendarView/delta`
|
|
170
|
-
* (or `/me/events/delta`), following `@odata.nextLink` page-to-page and capturing the final
|
|
171
|
-
* `@odata.deltaLink`. Tests inject a fake. NO Graph SDK types leak through this surface.
|
|
172
|
-
*/
|
|
173
|
-
export interface IGraphCalendarLike {
|
|
174
|
-
/**
|
|
175
|
-
* Lists one page of calendar events for `userId`. `deltaLink` is the opaque cursor from a prior
|
|
176
|
-
* poll's final page (or `undefined` for the first poll); `nextLink` is the in-poll continuation
|
|
177
|
-
* token. The adapter pages by following `nextLink` until the surface returns a `deltaLink`.
|
|
178
|
-
*
|
|
179
|
-
* @param userId The mailbox/identity address whose calendar to read.
|
|
180
|
-
* @param cursor The Graph delta/next link to resume from (opaque), or `undefined` to start fresh.
|
|
181
|
-
*/
|
|
182
|
-
listEvents(userId: string, cursor?: string): Promise<GraphEventPage>;
|
|
183
|
-
}
|
|
184
|
-
/**
|
|
185
|
-
* **Pure** parse of a Graph {@link GraphDateTimeTimeZone} to a UTC {@link Date}. Treats a missing or
|
|
186
|
-
* `UTC`/`Z` time zone as UTC (the common case for Graph delta queries, which can be requested in UTC);
|
|
187
|
-
* for a non-UTC named zone it parses the wall-clock string and appends `Z` (best-effort — production
|
|
188
|
-
* SHOULD request UTC via the `Prefer: outlook.timezone="UTC"` header). Returns `null` on absent/invalid.
|
|
189
|
-
*/
|
|
190
|
-
export declare function ParseGraphDateTime(value?: GraphDateTimeTimeZone): Date | null;
|
|
191
|
-
/** @deprecated Use {@link ParseGraphDateTime}. */
|
|
192
|
-
export declare function parseGraphDateTime(value?: GraphDateTimeTimeZone): Date | null;
|
|
193
|
-
/** Maps a Graph attendee `status.response` to the normalized {@link CalendarInviteAttendee.ResponseStatus}. */
|
|
194
|
-
export declare function MapGraphResponseStatus(response?: string): CalendarInviteAttendee['ResponseStatus'] | undefined;
|
|
195
|
-
/** @deprecated Use {@link MapGraphResponseStatus}. */
|
|
196
|
-
export declare function mapGraphResponseStatus(response?: string): CalendarInviteAttendee['ResponseStatus'] | undefined;
|
|
197
|
-
/**
|
|
198
|
-
* **Pure** extraction of an online-meeting join URL from a Graph event. Prefers the structured
|
|
199
|
-
* `onlineMeeting.joinUrl`, then the legacy flat `onlineMeetingUrl`, then the first Teams `meetup-join`
|
|
200
|
-
* URL found in the event body (HTML or text). Returns `undefined` when no join URL is present.
|
|
201
|
-
*/
|
|
202
|
-
export declare function ExtractGraphJoinUrl(event: GraphCalendarEvent): string | undefined;
|
|
203
|
-
/** @deprecated Use {@link ExtractGraphJoinUrl}. */
|
|
204
|
-
export declare function extractGraphJoinUrl(event: GraphCalendarEvent): string | undefined;
|
|
205
|
-
/**
|
|
206
|
-
* **Pure** normalization of one Graph calendar event to a {@link NormalizedCalendarInvite}. Skips
|
|
207
|
-
* (returns `null`) an event with no id or no resolvable start time, so the caller can drop it cleanly.
|
|
208
|
-
*/
|
|
209
|
-
export declare function NormalizeGraphEvent(event: GraphCalendarEvent): NormalizedCalendarInvite | null;
|
|
210
|
-
/** @deprecated Use {@link NormalizeGraphEvent}. */
|
|
211
|
-
export declare function normalizeGraphEvent(event: GraphCalendarEvent): NormalizedCalendarInvite | null;
|
|
212
|
-
/**
|
|
213
|
-
* **Production binding** for Microsoft Graph calendars over an injected {@link IGraphCalendarLike}
|
|
214
|
-
* surface, so it builds + unit-tests with no Graph SDK install and no network.
|
|
215
|
-
*
|
|
216
|
-
* Pages a Graph delta poll: starting from `sinceCursor` (a prior `@odata.deltaLink`), it follows
|
|
217
|
-
* `@odata.nextLink` page-to-page, normalizing every event via {@link normalizeGraphEvent}, until the
|
|
218
|
-
* surface returns a `@odata.deltaLink` — which becomes the {@link CalendarPollResult.NextCursor} for the
|
|
219
|
-
* next poll. Credentials are resolved upstream (the host binds {@link IGraphCalendarLike} with a Graph
|
|
220
|
-
* client authenticated from the provider `Configuration` via MJ's credential system — never inline).
|
|
110
|
+
* An {@link ICalendarSource} over a Communication provider's `SyncEvents`.
|
|
221
111
|
*
|
|
222
|
-
*
|
|
223
|
-
*
|
|
224
|
-
*
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
private readonly
|
|
112
|
+
* The first poll reads `[now, now + LookaheadDays]`; later polls pass the provider's token back as
|
|
113
|
+
* the cursor. A token the provider refuses (expired) is dropped and the window is read again, which
|
|
114
|
+
* the watcher's dedupe makes harmless. Removed and cancelled events are not invites and are skipped.
|
|
115
|
+
*/
|
|
116
|
+
export declare class CommunicationCalendarSource implements ICalendarSource {
|
|
117
|
+
private readonly provider?;
|
|
118
|
+
private readonly credentials?;
|
|
119
|
+
private readonly options;
|
|
120
|
+
private readonly providerLabel;
|
|
231
121
|
/**
|
|
232
|
-
* @param
|
|
233
|
-
* (every poll throws {@link CalendarSourceNotBoundError}).
|
|
122
|
+
* @param provider The communication provider to read through. Omit to keep the not-bound
|
|
123
|
+
* behaviour (every poll throws {@link CalendarSourceNotBoundError}).
|
|
124
|
+
* @param credentials Passed to every call (for Graph, `{ accessToken }` with a bot token).
|
|
125
|
+
* @param options Window and clock settings.
|
|
126
|
+
* @param providerLabel Names the provider in errors.
|
|
234
127
|
*/
|
|
235
|
-
constructor(
|
|
128
|
+
constructor(provider?: CalendarSyncProvider, credentials?: ProviderCredentialsBase, options?: CommunicationCalendarSourceOptions, providerLabel?: string);
|
|
236
129
|
/** @inheritdoc */
|
|
237
130
|
ListUpcomingInvites(identityValue: string, sinceCursor?: string): Promise<CalendarPollResult>;
|
|
131
|
+
/** Whose calendar a poll reads. The identity's address, in the account's default calendar. */
|
|
132
|
+
protected BuildTarget(identityValue: string): CalendarTarget;
|
|
133
|
+
private sync;
|
|
238
134
|
}
|
|
239
|
-
/**
|
|
240
|
-
export
|
|
241
|
-
|
|
242
|
-
dateTime?: string;
|
|
243
|
-
/** All-day `date` value (`YYYY-MM-DD`) — treated as UTC midnight when no `dateTime` is present. */
|
|
244
|
-
date?: string;
|
|
245
|
-
/** The IANA time zone, when supplied. */
|
|
246
|
-
timeZone?: string;
|
|
247
|
-
}
|
|
248
|
-
/** One Google `Event.attendees[]`. */
|
|
249
|
-
export interface GoogleAttendee {
|
|
250
|
-
/** The attendee's email address. */
|
|
251
|
-
email?: string;
|
|
252
|
-
/** The attendee's display name, when present. */
|
|
253
|
-
displayName?: string;
|
|
254
|
-
/** Google response status (`accepted` / `declined` / `tentative` / `needsAction`). */
|
|
255
|
-
responseStatus?: string;
|
|
256
|
-
/** Whether this attendee is the organizer. */
|
|
257
|
-
organizer?: boolean;
|
|
258
|
-
}
|
|
259
|
-
/** One Google `conferenceData.entryPoints[]`. */
|
|
260
|
-
export interface GoogleConferenceEntryPoint {
|
|
261
|
-
/** Entry-point type (`video` / `phone` / `more` / `sip`). Only `video` carries a join URL we use. */
|
|
262
|
-
entryPointType?: string;
|
|
263
|
-
/** The entry-point URI (the join URL for `video`). */
|
|
264
|
-
uri?: string;
|
|
265
|
-
}
|
|
266
|
-
/** The subset of a Google Calendar `Event` resource this adapter normalizes. */
|
|
267
|
-
export interface GoogleCalendarEvent {
|
|
268
|
-
/** Google `event.id` — the stable external event id. */
|
|
269
|
-
id?: string;
|
|
270
|
-
/** Google `event.summary` — the meeting title. */
|
|
271
|
-
summary?: string;
|
|
272
|
-
/** Google `event.hangoutLink` — the Meet join URL (legacy flat field). */
|
|
273
|
-
hangoutLink?: string;
|
|
274
|
-
/** Google `event.conferenceData.entryPoints` — the modern conferencing block. */
|
|
275
|
-
conferenceData?: {
|
|
276
|
-
entryPoints?: GoogleConferenceEntryPoint[];
|
|
277
|
-
};
|
|
278
|
-
/** Google `event.start`. */
|
|
279
|
-
start?: GoogleEventDateTime;
|
|
280
|
-
/** Google `event.end`. */
|
|
281
|
-
end?: GoogleEventDateTime;
|
|
282
|
-
/** Google `event.attendees`. */
|
|
283
|
-
attendees?: GoogleAttendee[];
|
|
284
|
-
/** Google `event.organizer` (`{ email, displayName }`). */
|
|
285
|
-
organizer?: {
|
|
286
|
-
email?: string;
|
|
287
|
-
displayName?: string;
|
|
288
|
-
};
|
|
289
|
-
/** Google `event.status` — `cancelled` events are dropped from the normalized result. */
|
|
290
|
-
status?: string;
|
|
291
|
-
}
|
|
292
|
-
/** One page of Google `events.list` results — events + paging/sync tokens. */
|
|
293
|
-
export interface GoogleEventPage {
|
|
294
|
-
/** The events on this page. */
|
|
295
|
-
items: GoogleCalendarEvent[];
|
|
296
|
-
/** Google `nextPageToken` — present when more pages remain in this poll. */
|
|
297
|
-
nextPageToken?: string;
|
|
298
|
-
/** Google `nextSyncToken` — present on the final page; becomes the next poll's `sinceCursor`. */
|
|
299
|
-
nextSyncToken?: string;
|
|
300
|
-
}
|
|
301
|
-
/** Arguments for one {@link IGoogleCalendarLike.listEvents} call — sync-token OR page-token paging. */
|
|
302
|
-
export interface GoogleListEventsArgs {
|
|
303
|
-
/** The calendar id to read (the agent's mailbox/identity address; `primary` for the user's default). */
|
|
304
|
-
calendarId: string;
|
|
305
|
-
/** Incremental-sync token from a prior poll's final page (mutually exclusive with `pageToken`). */
|
|
306
|
-
syncToken?: string;
|
|
307
|
-
/** In-poll continuation token (`nextPageToken`) when following pages of the current poll. */
|
|
308
|
-
pageToken?: string;
|
|
135
|
+
/** Microsoft Graph calendars, read through `@memberjunction/communication-ms-graph`'s `MSGraphProvider`. */
|
|
136
|
+
export declare class GraphCalendarSource extends CommunicationCalendarSource {
|
|
137
|
+
constructor(provider?: CalendarSyncProvider, credentials?: ProviderCredentialsBase, options?: CommunicationCalendarSourceOptions);
|
|
309
138
|
}
|
|
310
139
|
/**
|
|
311
|
-
*
|
|
312
|
-
*
|
|
313
|
-
*
|
|
314
|
-
* NO googleapis types leak through this surface.
|
|
140
|
+
* Google calendars, read through `@memberjunction/communication-gmail`'s `GmailProvider`. Reads the
|
|
141
|
+
* calendar whose ID is the identity's address, as the bridge always has: that is the account's
|
|
142
|
+
* primary calendar when the credentials are the agent's own, and a shared one otherwise.
|
|
315
143
|
*/
|
|
316
|
-
export
|
|
317
|
-
|
|
318
|
-
|
|
144
|
+
export declare class GoogleCalendarSource extends CommunicationCalendarSource {
|
|
145
|
+
constructor(provider?: CalendarSyncProvider, credentials?: ProviderCredentialsBase, options?: CommunicationCalendarSourceOptions);
|
|
146
|
+
/** @inheritdoc */
|
|
147
|
+
protected BuildTarget(identityValue: string): CalendarTarget;
|
|
319
148
|
}
|
|
320
149
|
/**
|
|
321
|
-
* **Pure**
|
|
322
|
-
* `
|
|
323
|
-
*
|
|
324
|
-
*/
|
|
325
|
-
export declare function ParseGoogleDateTime(value?: GoogleEventDateTime): Date | null;
|
|
326
|
-
/** @deprecated Use {@link ParseGoogleDateTime}. */
|
|
327
|
-
export declare function parseGoogleDateTime(value?: GoogleEventDateTime): Date | null;
|
|
328
|
-
/** Maps a Google `responseStatus` to the normalized {@link CalendarInviteAttendee.ResponseStatus}. */
|
|
329
|
-
export declare function MapGoogleResponseStatus(response?: string): CalendarInviteAttendee['ResponseStatus'] | undefined;
|
|
330
|
-
/** @deprecated Use {@link MapGoogleResponseStatus}. */
|
|
331
|
-
export declare function mapGoogleResponseStatus(response?: string): CalendarInviteAttendee['ResponseStatus'] | undefined;
|
|
332
|
-
/**
|
|
333
|
-
* **Pure** extraction of the Meet/online-meeting join URL from a Google event. Prefers the first
|
|
334
|
-
* `video` entry-point in `conferenceData`, then the legacy `hangoutLink`. Returns `undefined` when no
|
|
335
|
-
* video conferencing is attached.
|
|
336
|
-
*/
|
|
337
|
-
export declare function ExtractGoogleJoinUrl(event: GoogleCalendarEvent): string | undefined;
|
|
338
|
-
/** @deprecated Use {@link ExtractGoogleJoinUrl}. */
|
|
339
|
-
export declare function extractGoogleJoinUrl(event: GoogleCalendarEvent): string | undefined;
|
|
340
|
-
/**
|
|
341
|
-
* **Pure** normalization of one Google calendar event to a {@link NormalizedCalendarInvite}. Skips
|
|
342
|
-
* (returns `null`) a cancelled event or one with no id or no resolvable start time.
|
|
150
|
+
* **Pure** normalization of a Communication calendar event to a {@link NormalizedCalendarInvite}.
|
|
151
|
+
* Returns `null` for a cancelled event or one with no id or no start. The join URL is the provider's
|
|
152
|
+
* online-meeting URL, else the first Teams/Meet/Zoom link in the body.
|
|
343
153
|
*/
|
|
344
|
-
export declare function
|
|
345
|
-
/** @deprecated Use {@link NormalizeGoogleEvent}. */
|
|
346
|
-
export declare function normalizeGoogleEvent(event: GoogleCalendarEvent): NormalizedCalendarInvite | null;
|
|
347
|
-
/**
|
|
348
|
-
* **Production binding** for Google Calendar over an injected {@link IGoogleCalendarLike} surface, so
|
|
349
|
-
* it builds + unit-tests with no `googleapis` install and no network.
|
|
350
|
-
*
|
|
351
|
-
* Pages an incremental sync: starting from `sinceCursor` (a prior `nextSyncToken`), it follows
|
|
352
|
-
* `nextPageToken` page-to-page, normalizing every event via {@link normalizeGoogleEvent}, until the
|
|
353
|
-
* surface returns a `nextSyncToken` — which becomes the {@link CalendarPollResult.NextCursor}.
|
|
354
|
-
* Credentials are resolved upstream (the host binds {@link IGoogleCalendarLike} with a Calendar client
|
|
355
|
-
* authenticated from the provider `Configuration` via MJ's credential system — never inline).
|
|
356
|
-
*
|
|
357
|
-
* When no surface is supplied it preserves the original not-bound behavior, throwing
|
|
358
|
-
* {@link CalendarSourceNotBoundError}.
|
|
359
|
-
*
|
|
360
|
-
* @remarks **TODO (production):** bind `googleapis` (an optionalDependency, loaded only when a
|
|
361
|
-
* Google-backed identity is configured) and inject it as {@link IGoogleCalendarLike}.
|
|
362
|
-
*/
|
|
363
|
-
export declare class GoogleCalendarSource implements ICalendarSource {
|
|
364
|
-
private readonly calendar?;
|
|
365
|
-
/**
|
|
366
|
-
* @param calendar The injected Google calendar surface. Omit to preserve the not-bound seam
|
|
367
|
-
* behavior (every poll throws {@link CalendarSourceNotBoundError}).
|
|
368
|
-
*/
|
|
369
|
-
constructor(calendar?: IGoogleCalendarLike);
|
|
370
|
-
/** @inheritdoc */
|
|
371
|
-
ListUpcomingInvites(identityValue: string, sinceCursor?: string): Promise<CalendarPollResult>;
|
|
372
|
-
}
|
|
154
|
+
export declare function NormalizeCalendarEvent(event: CalendarEvent): NormalizedCalendarInvite | null;
|
|
373
155
|
//# sourceMappingURL=calendar-source.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calendar-source.d.ts","sourceRoot":"","sources":["../src/calendar-source.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACnC,mFAAmF;IACnF,KAAK,EAAE,MAAM,CAAC;IAEd,mEAAmE;IACnE,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,kGAAkG;IAClG,cAAc,CAAC,EAAE,UAAU,GAAG,UAAU,GAAG,WAAW,GAAG,aAAa,CAAC;CAC1E;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACpC,qCAAqC;IACrC,KAAK,EAAE,MAAM,CAAC;IAEd,mDAAmD;IACnD,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;;;GAKG;AACH,MAAM,WAAW,wBAAwB;IACrC;;;OAGG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB,+FAA+F;IAC/F,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,4FAA4F;IAC5F,SAAS,EAAE,IAAI,CAAC;IAEhB,0DAA0D;IAC1D,OAAO,CAAC,EAAE,IAAI,CAAC;IAEf,kGA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