@frogbotai/piece-google-calendar 0.26.0 → 0.28.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/actions/customApiCall.d.ts +17 -60
- package/dist/actions/customApiCall.d.ts.map +1 -1
- package/dist/actions/customApiCall.js +10 -8
- package/dist/actions/customApiCall.js.map +1 -1
- package/dist/actions/events.d.ts +427 -346
- package/dist/actions/events.d.ts.map +1 -1
- package/dist/actions/events.js +18 -16
- package/dist/actions/events.js.map +1 -1
- package/dist/actions/read.d.ts +244 -174
- package/dist/actions/read.d.ts.map +1 -1
- package/dist/actions/read.js +46 -42
- package/dist/actions/read.js.map +1 -1
- package/dist/define.d.ts +6 -0
- package/dist/define.d.ts.map +1 -0
- package/dist/define.js +3 -0
- package/dist/define.js.map +1 -0
- package/dist/index.d.ts +779 -652
- package/dist/index.d.ts.map +1 -1
- package/package.json +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/actions/events.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/actions/events.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAqDxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyBtB,CAAC;AAQH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqCtB,CAAC;AAMH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BvB,CAAC;AAOH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAa3B,CAAC;AAGH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;CAWtB,CAAC"}
|
package/dist/actions/events.js
CHANGED
|
@@ -2,6 +2,7 @@ import { randomUUID } from 'node:crypto';
|
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { requestOptions } from '../client.js';
|
|
4
4
|
import { calendarId, dateTime, eventFields, eventOutput, eventReference, sendUpdates, validRange, } from '../config.js';
|
|
5
|
+
import { defineAction } from '../define.js';
|
|
5
6
|
import { calendars, colors } from './options.js';
|
|
6
7
|
function eventBody(input) {
|
|
7
8
|
const body = {};
|
|
@@ -46,14 +47,14 @@ const createInput = eventFields
|
|
|
46
47
|
message: 'End date must be after start date.',
|
|
47
48
|
path: ['endDateTime'],
|
|
48
49
|
});
|
|
49
|
-
export const createEvent = {
|
|
50
|
+
export const createEvent = defineAction({
|
|
50
51
|
slug: 'createEvent',
|
|
51
52
|
description: 'Create an event with attendees, guest permissions, notifications, and an optional Google Meet conference. Duration defaults to 30 minutes.',
|
|
52
53
|
input: createInput,
|
|
53
54
|
output: eventOutput,
|
|
54
55
|
idempotent: false,
|
|
55
56
|
options: { calendarId: calendars('writer'), colorId: colors },
|
|
56
|
-
async run({ client, input, req
|
|
57
|
+
async run({ client, input, req }) {
|
|
57
58
|
const body = eventBody(input);
|
|
58
59
|
body.end ??= {
|
|
59
60
|
dateTime: new Date(Date.parse(input.startDateTime) + 30 * 60_000).toISOString(),
|
|
@@ -65,21 +66,21 @@ export const createEvent = {
|
|
|
65
66
|
requestBody: body,
|
|
66
67
|
}, requestOptions(req))).data;
|
|
67
68
|
},
|
|
68
|
-
};
|
|
69
|
+
});
|
|
69
70
|
const updateInput = eventReference
|
|
70
71
|
.extend(eventFields.shape)
|
|
71
72
|
.refine((input) => validRange({ start: input.startDateTime, end: input.endDateTime }), {
|
|
72
73
|
message: 'End date must be after start date.',
|
|
73
74
|
path: ['endDateTime'],
|
|
74
75
|
});
|
|
75
|
-
export const updateEvent = {
|
|
76
|
+
export const updateEvent = defineAction({
|
|
76
77
|
slug: 'updateEvent',
|
|
77
78
|
description: 'Update only supplied event fields, preserving omitted fields. An empty attendees array clears guests.',
|
|
78
79
|
input: updateInput,
|
|
79
80
|
output: eventOutput,
|
|
80
81
|
idempotent: false,
|
|
81
82
|
options: { calendarId: calendars('writer'), colorId: colors },
|
|
82
|
-
async run({ client, input, req
|
|
83
|
+
async run({ client, input, req }) {
|
|
83
84
|
const reference = { calendarId: input.calendarId, eventId: input.eventId };
|
|
84
85
|
const { data: existing } = await client.events.get(reference, requestOptions(req));
|
|
85
86
|
const body = eventBody(input);
|
|
@@ -103,19 +104,19 @@ export const updateEvent = {
|
|
|
103
104
|
headers: existing.etag ? { 'If-Match': existing.etag } : undefined,
|
|
104
105
|
})).data;
|
|
105
106
|
},
|
|
106
|
-
};
|
|
107
|
+
});
|
|
107
108
|
const attendeesInput = eventReference.extend({
|
|
108
109
|
attendees: z.array(z.email()).min(1),
|
|
109
110
|
sendUpdates: sendUpdates.optional(),
|
|
110
111
|
});
|
|
111
|
-
export const addAttendees = {
|
|
112
|
+
export const addAttendees = defineAction({
|
|
112
113
|
slug: 'addAttendees',
|
|
113
114
|
description: 'Append attendees to an event while retaining existing attendees and their RSVP details.',
|
|
114
115
|
input: attendeesInput,
|
|
115
116
|
output: eventOutput,
|
|
116
117
|
idempotent: false,
|
|
117
118
|
options: { calendarId: calendars('writer') },
|
|
118
|
-
async run({ client, input, req
|
|
119
|
+
async run({ client, input, req }) {
|
|
119
120
|
const reference = { calendarId: input.calendarId, eventId: input.eventId };
|
|
120
121
|
const { data: existing } = await client.events.get(reference, requestOptions(req));
|
|
121
122
|
return (await client.events.patch({
|
|
@@ -132,34 +133,35 @@ export const addAttendees = {
|
|
|
132
133
|
headers: existing.etag ? { 'If-Match': existing.etag } : undefined,
|
|
133
134
|
})).data;
|
|
134
135
|
},
|
|
135
|
-
};
|
|
136
|
+
});
|
|
136
137
|
const quickInput = z.object({
|
|
137
138
|
calendarId,
|
|
138
139
|
text: z.string().trim().min(1),
|
|
139
140
|
sendUpdates: sendUpdates.default('none'),
|
|
140
141
|
});
|
|
141
|
-
export const createQuickEvent = {
|
|
142
|
+
export const createQuickEvent = defineAction({
|
|
142
143
|
slug: 'createQuickEvent',
|
|
143
144
|
description: 'Create an event from a natural-language description using Google Calendar quick add.',
|
|
144
145
|
input: quickInput,
|
|
145
146
|
output: eventOutput,
|
|
146
147
|
idempotent: false,
|
|
147
148
|
options: { calendarId: calendars('writer') },
|
|
148
|
-
async run({ client, input, req
|
|
149
|
-
|
|
149
|
+
async run({ client, input, req }) {
|
|
150
|
+
const { data } = await client.events.quickAdd(input, requestOptions(req));
|
|
151
|
+
return data;
|
|
150
152
|
},
|
|
151
|
-
};
|
|
153
|
+
});
|
|
152
154
|
const deleteInput = eventReference.extend({ sendUpdates: sendUpdates.optional() });
|
|
153
|
-
export const deleteEvent = {
|
|
155
|
+
export const deleteEvent = defineAction({
|
|
154
156
|
slug: 'deleteEvent',
|
|
155
157
|
description: 'Delete an event, optionally notifying guests.',
|
|
156
158
|
input: deleteInput,
|
|
157
159
|
output: z.object({ deleted: z.literal(true) }),
|
|
158
160
|
idempotent: true,
|
|
159
161
|
options: { calendarId: calendars('writer') },
|
|
160
|
-
async run({ client, input, req
|
|
162
|
+
async run({ client, input, req }) {
|
|
161
163
|
await client.events.delete(input, requestOptions(req));
|
|
162
164
|
return { deleted: true };
|
|
163
165
|
},
|
|
164
|
-
};
|
|
166
|
+
});
|
|
165
167
|
//# sourceMappingURL=events.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.js","sourceRoot":"","sources":["../../src/actions/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"events.js","sourceRoot":"","sources":["../../src/actions/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAGzC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EACL,UAAU,EACV,QAAQ,EACR,WAAW,EACX,WAAW,EACX,cAAc,EACd,WAAW,EACX,UAAU,GACX,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEjD,SAAS,SAAS,CAAC,KAAmC;IACpD,MAAM,IAAI,GAA6B,EAAE,CAAC;IAC1C,IAAI,KAAK,CAAC,KAAK,KAAK,SAAS;QAAE,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,KAAK,CAAC;IAC1D,IAAI,KAAK,CAAC,aAAa,KAAK,SAAS;QAAE,IAAI,CAAC,KAAK,GAAG,EAAE,QAAQ,EAAE,KAAK,CAAC,aAAa,EAAE,CAAC;IACtF,IAAI,KAAK,CAAC,WAAW,KAAK,SAAS;QAAE,IAAI,CAAC,GAAG,GAAG,EAAE,QAAQ,EAAE,KAAK,CAAC,WAAW,EAAE,CAAC;IAChF,IAAI,KAAK,CAAC,SAAS,KAAK,SAAS;QAAE,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,EAAE,K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,EAAE,KAAK,EAAE,GAAG,EAAE;QAC9B,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,EAAE,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;QAE1E,OAAO,IAAoC,CAAC;IAC9C,CAAC;CACF,CAAC,CAAC;AAEH,MAAM,WAAW,GAAG,cAAc,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,WAAW,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;AACnF,MAAM,CAAC,MAAM,WAAW,GAAG,YAAY,CAAC;IACtC,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,+CAA+C;IAC5D,KAAK,EAAE,WAAW;IAClB,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;IAC9C,UAAU,EAAE,IAAI;IAChB,OAAO,EAAE,EAAE,UAAU,EAAE,SAAS,CAAC,QAAQ,CAAC,EAAE;IAC5C,KAAK,CAAC,GAAG,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE;QAC9B,MAAM,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;QACvD,OAAO,EAAE,OAAO,EAAE,IAAa,EAAE,CAAC;IACpC,CAAC;CACF,CAAC,CAAC"}
|
package/dist/actions/read.d.ts
CHANGED
|
@@ -1,22 +1,140 @@
|
|
|
1
|
-
import type { PieceRunArgs } from 'frogbot/pieces';
|
|
2
1
|
import { z } from 'zod';
|
|
3
|
-
|
|
4
|
-
declare const getInput: z.ZodObject<{
|
|
2
|
+
export declare const getEvent: import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
5
3
|
calendarId: z.ZodString;
|
|
6
4
|
eventId: z.ZodString;
|
|
7
5
|
maxAttendees: z.ZodOptional<z.ZodNumber>;
|
|
8
6
|
timeZone: z.ZodOptional<z.ZodString>;
|
|
9
|
-
}, z.core.$strip
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
7
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
kind: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
etag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
summary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
htmlLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
hangoutLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
colorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
eventType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
start: z.ZodOptional<z.ZodObject<{
|
|
20
|
+
date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
dateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
timeZone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
}, z.core.$loose>>;
|
|
24
|
+
end: z.ZodOptional<z.ZodObject<{
|
|
25
|
+
date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
dateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
timeZone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
+
}, z.core.$loose>>;
|
|
29
|
+
recurrence: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
30
|
+
recurringEventId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
|
+
attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
32
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
|
+
displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
|
+
responseStatus: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
+
optional: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
36
|
+
organizer: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
37
|
+
self: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
38
|
+
}, z.core.$loose>>>;
|
|
39
|
+
guestsCanModify: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
40
|
+
guestsCanInviteOthers: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
41
|
+
guestsCanSeeOtherGuests: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
42
|
+
conferenceData: z.ZodOptional<z.ZodObject<{
|
|
43
|
+
conferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
|
+
createRequest: z.ZodOptional<z.ZodObject<{
|
|
45
|
+
requestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
|
+
status: z.ZodOptional<z.ZodObject<{
|
|
47
|
+
statusCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
48
|
+
}, z.core.$loose>>;
|
|
49
|
+
}, z.core.$loose>>;
|
|
50
|
+
entryPoints: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
51
|
+
entryPointType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
52
|
+
uri: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
|
+
}, z.core.$loose>>>;
|
|
54
|
+
}, z.core.$loose>>;
|
|
55
|
+
}, z.core.$loose>, Record<string, never>, import("googleapis").calendar_v3.Calendar, {
|
|
56
|
+
[x: string]: unknown;
|
|
57
|
+
id?: string | null | undefined;
|
|
58
|
+
kind?: string | null | undefined;
|
|
59
|
+
etag?: string | null | undefined;
|
|
60
|
+
status?: string | null | undefined;
|
|
61
|
+
summary?: string | null | undefined;
|
|
62
|
+
description?: string | null | undefined;
|
|
63
|
+
location?: string | null | undefined;
|
|
64
|
+
htmlLink?: string | null | undefined;
|
|
65
|
+
hangoutLink?: string | null | undefined;
|
|
66
|
+
colorId?: string | null | undefined;
|
|
67
|
+
eventType?: string | null | undefined;
|
|
68
|
+
start?: {
|
|
69
|
+
[x: string]: unknown;
|
|
70
|
+
date?: string | null | undefined;
|
|
71
|
+
dateTime?: string | null | undefined;
|
|
72
|
+
timeZone?: string | null | undefined;
|
|
73
|
+
} | undefined;
|
|
74
|
+
end?: {
|
|
75
|
+
[x: string]: unknown;
|
|
76
|
+
date?: string | null | undefined;
|
|
77
|
+
dateTime?: string | null | undefined;
|
|
78
|
+
timeZone?: string | null | undefined;
|
|
79
|
+
} | undefined;
|
|
80
|
+
recurrence?: string[] | null | undefined;
|
|
81
|
+
recurringEventId?: string | null | undefined;
|
|
82
|
+
attendees?: {
|
|
83
|
+
[x: string]: unknown;
|
|
84
|
+
email?: string | null | undefined;
|
|
85
|
+
displayName?: string | null | undefined;
|
|
86
|
+
responseStatus?: string | null | undefined;
|
|
87
|
+
optional?: boolean | null | undefined;
|
|
88
|
+
organizer?: boolean | null | undefined;
|
|
89
|
+
self?: boolean | null | undefined;
|
|
90
|
+
}[] | undefined;
|
|
91
|
+
guestsCanModify?: boolean | null | undefined;
|
|
92
|
+
guestsCanInviteOthers?: boolean | null | undefined;
|
|
93
|
+
guestsCanSeeOtherGuests?: boolean | null | undefined;
|
|
94
|
+
conferenceData?: {
|
|
95
|
+
[x: string]: unknown;
|
|
96
|
+
conferenceId?: string | null | undefined;
|
|
97
|
+
createRequest?: {
|
|
98
|
+
[x: string]: unknown;
|
|
99
|
+
requestId?: string | null | undefined;
|
|
100
|
+
status?: {
|
|
101
|
+
[x: string]: unknown;
|
|
102
|
+
statusCode?: string | null | undefined;
|
|
103
|
+
} | undefined;
|
|
104
|
+
} | undefined;
|
|
105
|
+
entryPoints?: {
|
|
106
|
+
[x: string]: unknown;
|
|
107
|
+
entryPointType?: string | null | undefined;
|
|
108
|
+
uri?: string | null | undefined;
|
|
109
|
+
}[] | undefined;
|
|
110
|
+
} | undefined;
|
|
111
|
+
}> & {
|
|
112
|
+
slug: "getEvent";
|
|
113
|
+
};
|
|
114
|
+
export declare const listEvents: import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
115
|
+
calendarId: z.ZodString;
|
|
116
|
+
eventTypes: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
117
|
+
default: "default";
|
|
118
|
+
focusTime: "focusTime";
|
|
119
|
+
outOfOffice: "outOfOffice";
|
|
120
|
+
workingLocation: "workingLocation";
|
|
121
|
+
birthday: "birthday";
|
|
122
|
+
fromGmail: "fromGmail";
|
|
123
|
+
}>>>;
|
|
124
|
+
search: z.ZodOptional<z.ZodString>;
|
|
125
|
+
startDate: z.ZodOptional<z.ZodISODateTime>;
|
|
126
|
+
endDate: z.ZodOptional<z.ZodISODateTime>;
|
|
127
|
+
singleEvents: z.ZodDefault<z.ZodBoolean>;
|
|
128
|
+
maxResults: z.ZodOptional<z.ZodNumber>;
|
|
129
|
+
pageToken: z.ZodOptional<z.ZodString>;
|
|
130
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
131
|
+
kind: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
132
|
+
etag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
133
|
+
summary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
134
|
+
timeZone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
135
|
+
nextPageToken: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
136
|
+
nextSyncToken: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
137
|
+
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
20
138
|
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
139
|
kind: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
140
|
etag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -64,171 +182,123 @@ export declare const getEvent: {
|
|
|
64
182
|
uri: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
65
183
|
}, z.core.$loose>>>;
|
|
66
184
|
}, z.core.$loose>>;
|
|
67
|
-
}, z.core.$loose
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
185
|
+
}, z.core.$loose>>>;
|
|
186
|
+
}, z.core.$loose>, Record<string, never>, import("googleapis").calendar_v3.Calendar, {
|
|
187
|
+
[x: string]: unknown;
|
|
188
|
+
kind?: string | null | undefined;
|
|
189
|
+
etag?: string | null | undefined;
|
|
190
|
+
summary?: string | null | undefined;
|
|
191
|
+
timeZone?: string | null | undefined;
|
|
192
|
+
nextPageToken?: string | null | undefined;
|
|
193
|
+
nextSyncToken?: string | null | undefined;
|
|
194
|
+
items?: {
|
|
195
|
+
[x: string]: unknown;
|
|
196
|
+
id?: string | null | undefined;
|
|
197
|
+
kind?: string | null | undefined;
|
|
198
|
+
etag?: string | null | undefined;
|
|
199
|
+
status?: string | null | undefined;
|
|
200
|
+
summary?: string | null | undefined;
|
|
201
|
+
description?: string | null | undefined;
|
|
202
|
+
location?: string | null | undefined;
|
|
203
|
+
htmlLink?: string | null | undefined;
|
|
204
|
+
hangoutLink?: string | null | undefined;
|
|
205
|
+
colorId?: string | null | undefined;
|
|
206
|
+
eventType?: string | null | undefined;
|
|
207
|
+
start?: {
|
|
208
|
+
[x: string]: unknown;
|
|
209
|
+
date?: string | null | undefined;
|
|
210
|
+
dateTime?: string | null | undefined;
|
|
211
|
+
timeZone?: string | null | undefined;
|
|
212
|
+
} | undefined;
|
|
213
|
+
end?: {
|
|
214
|
+
[x: string]: unknown;
|
|
215
|
+
date?: string | null | undefined;
|
|
216
|
+
dateTime?: string | null | undefined;
|
|
217
|
+
timeZone?: string | null | undefined;
|
|
218
|
+
} | undefined;
|
|
219
|
+
recurrence?: string[] | null | undefined;
|
|
220
|
+
recurringEventId?: string | null | undefined;
|
|
221
|
+
attendees?: {
|
|
222
|
+
[x: string]: unknown;
|
|
223
|
+
email?: string | null | undefined;
|
|
224
|
+
displayName?: string | null | undefined;
|
|
225
|
+
responseStatus?: string | null | undefined;
|
|
226
|
+
optional?: boolean | null | undefined;
|
|
227
|
+
organizer?: boolean | null | undefined;
|
|
228
|
+
self?: boolean | null | undefined;
|
|
229
|
+
}[] | undefined;
|
|
230
|
+
guestsCanModify?: boolean | null | undefined;
|
|
231
|
+
guestsCanInviteOthers?: boolean | null | undefined;
|
|
232
|
+
guestsCanSeeOtherGuests?: boolean | null | undefined;
|
|
233
|
+
conferenceData?: {
|
|
234
|
+
[x: string]: unknown;
|
|
235
|
+
conferenceId?: string | null | undefined;
|
|
236
|
+
createRequest?: {
|
|
237
|
+
[x: string]: unknown;
|
|
238
|
+
requestId?: string | null | undefined;
|
|
239
|
+
status?: {
|
|
240
|
+
[x: string]: unknown;
|
|
241
|
+
statusCode?: string | null | undefined;
|
|
242
|
+
} | undefined;
|
|
243
|
+
} | undefined;
|
|
244
|
+
entryPoints?: {
|
|
245
|
+
[x: string]: unknown;
|
|
246
|
+
entryPointType?: string | null | undefined;
|
|
247
|
+
uri?: string | null | undefined;
|
|
248
|
+
}[] | undefined;
|
|
249
|
+
} | undefined;
|
|
250
|
+
}[] | undefined;
|
|
251
|
+
}> & {
|
|
252
|
+
slug: "listEvents";
|
|
79
253
|
};
|
|
80
|
-
declare const
|
|
81
|
-
calendarId: z.ZodString;
|
|
82
|
-
eventTypes: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
83
|
-
default: "default";
|
|
84
|
-
focusTime: "focusTime";
|
|
85
|
-
outOfOffice: "outOfOffice";
|
|
86
|
-
workingLocation: "workingLocation";
|
|
87
|
-
birthday: "birthday";
|
|
88
|
-
fromGmail: "fromGmail";
|
|
89
|
-
}>>>;
|
|
90
|
-
search: z.ZodOptional<z.ZodString>;
|
|
91
|
-
startDate: z.ZodOptional<z.ZodISODateTime>;
|
|
92
|
-
endDate: z.ZodOptional<z.ZodISODateTime>;
|
|
93
|
-
singleEvents: z.ZodDefault<z.ZodBoolean>;
|
|
94
|
-
maxResults: z.ZodOptional<z.ZodNumber>;
|
|
95
|
-
pageToken: z.ZodOptional<z.ZodString>;
|
|
96
|
-
}, z.core.$strip>;
|
|
97
|
-
export declare const listEvents: {
|
|
98
|
-
slug: string;
|
|
99
|
-
description: string;
|
|
100
|
-
input: z.ZodObject<{
|
|
101
|
-
calendarId: z.ZodString;
|
|
102
|
-
eventTypes: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
103
|
-
default: "default";
|
|
104
|
-
focusTime: "focusTime";
|
|
105
|
-
outOfOffice: "outOfOffice";
|
|
106
|
-
workingLocation: "workingLocation";
|
|
107
|
-
birthday: "birthday";
|
|
108
|
-
fromGmail: "fromGmail";
|
|
109
|
-
}>>>;
|
|
110
|
-
search: z.ZodOptional<z.ZodString>;
|
|
111
|
-
startDate: z.ZodOptional<z.ZodISODateTime>;
|
|
112
|
-
endDate: z.ZodOptional<z.ZodISODateTime>;
|
|
113
|
-
singleEvents: z.ZodDefault<z.ZodBoolean>;
|
|
114
|
-
maxResults: z.ZodOptional<z.ZodNumber>;
|
|
115
|
-
pageToken: z.ZodOptional<z.ZodString>;
|
|
116
|
-
}, z.core.$strip>;
|
|
117
|
-
output: z.ZodObject<{
|
|
118
|
-
kind: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
119
|
-
etag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
120
|
-
summary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
121
|
-
timeZone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
122
|
-
nextPageToken: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
123
|
-
nextSyncToken: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
124
|
-
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
125
|
-
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
126
|
-
kind: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
127
|
-
etag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
128
|
-
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
129
|
-
summary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
130
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
131
|
-
location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
132
|
-
htmlLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
133
|
-
hangoutLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
134
|
-
colorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
135
|
-
eventType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
136
|
-
start: z.ZodOptional<z.ZodObject<{
|
|
137
|
-
date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
138
|
-
dateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
139
|
-
timeZone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
140
|
-
}, z.core.$loose>>;
|
|
141
|
-
end: z.ZodOptional<z.ZodObject<{
|
|
142
|
-
date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
143
|
-
dateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
144
|
-
timeZone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
145
|
-
}, z.core.$loose>>;
|
|
146
|
-
recurrence: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
147
|
-
recurringEventId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
148
|
-
attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
149
|
-
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
150
|
-
displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
151
|
-
responseStatus: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
152
|
-
optional: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
153
|
-
organizer: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
154
|
-
self: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
155
|
-
}, z.core.$loose>>>;
|
|
156
|
-
guestsCanModify: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
157
|
-
guestsCanInviteOthers: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
158
|
-
guestsCanSeeOtherGuests: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
159
|
-
conferenceData: z.ZodOptional<z.ZodObject<{
|
|
160
|
-
conferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
161
|
-
createRequest: z.ZodOptional<z.ZodObject<{
|
|
162
|
-
requestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
163
|
-
status: z.ZodOptional<z.ZodObject<{
|
|
164
|
-
statusCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
165
|
-
}, z.core.$loose>>;
|
|
166
|
-
}, z.core.$loose>>;
|
|
167
|
-
entryPoints: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
168
|
-
entryPointType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
169
|
-
uri: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
170
|
-
}, z.core.$loose>>>;
|
|
171
|
-
}, z.core.$loose>>;
|
|
172
|
-
}, z.core.$loose>>>;
|
|
173
|
-
}, z.core.$loose>;
|
|
174
|
-
idempotent: boolean;
|
|
175
|
-
options: {
|
|
176
|
-
calendarId: ({ client, req }: {
|
|
177
|
-
client: GoogleCalendar;
|
|
178
|
-
req: import("frogbot").FrogBotRequest;
|
|
179
|
-
}) => Promise<{
|
|
180
|
-
label: string;
|
|
181
|
-
value: string;
|
|
182
|
-
}[]>;
|
|
183
|
-
};
|
|
184
|
-
run({ client, input, req, }: PieceRunArgs<z.output<typeof listInput>, object, GoogleCalendar>): Promise<import("googleapis").calendar_v3.Schema$Events>;
|
|
185
|
-
};
|
|
186
|
-
declare const freeBusyInput: z.ZodObject<{
|
|
254
|
+
export declare const findFreeBusyPeriods: import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
187
255
|
calendarIds: z.ZodArray<z.ZodString>;
|
|
188
256
|
startDate: z.ZodISODateTime;
|
|
189
257
|
endDate: z.ZodISODateTime;
|
|
190
|
-
}, z.core.$strip
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
timeMax: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
203
|
-
calendars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
204
|
-
busy: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
205
|
-
start: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
206
|
-
end: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
207
|
-
}, z.core.$strip>>>;
|
|
208
|
-
errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
209
|
-
domain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
210
|
-
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
211
|
-
}, z.core.$strip>>>;
|
|
258
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
259
|
+
kind: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
260
|
+
timeMin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
261
|
+
timeMax: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
262
|
+
calendars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
263
|
+
busy: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
264
|
+
start: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
265
|
+
end: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
266
|
+
}, z.core.$strip>>>;
|
|
267
|
+
errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
268
|
+
domain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
269
|
+
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
212
270
|
}, z.core.$strip>>>;
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
271
|
+
}, z.core.$strip>>>;
|
|
272
|
+
groups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
273
|
+
calendars: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
274
|
+
errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
275
|
+
domain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
276
|
+
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
219
277
|
}, z.core.$strip>>>;
|
|
220
|
-
}, z.core.$
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
278
|
+
}, z.core.$strip>>>;
|
|
279
|
+
}, z.core.$loose>, Record<string, never>, import("googleapis").calendar_v3.Calendar, {
|
|
280
|
+
[x: string]: unknown;
|
|
281
|
+
kind?: string | null | undefined;
|
|
282
|
+
timeMin?: string | null | undefined;
|
|
283
|
+
timeMax?: string | null | undefined;
|
|
284
|
+
calendars?: Record<string, {
|
|
285
|
+
busy?: {
|
|
286
|
+
start?: string | null | undefined;
|
|
287
|
+
end?: string | null | undefined;
|
|
288
|
+
}[] | undefined;
|
|
289
|
+
errors?: {
|
|
290
|
+
domain?: string | null | undefined;
|
|
291
|
+
reason?: string | null | undefined;
|
|
292
|
+
}[] | undefined;
|
|
293
|
+
}> | undefined;
|
|
294
|
+
groups?: Record<string, {
|
|
295
|
+
calendars?: string[] | undefined;
|
|
296
|
+
errors?: {
|
|
297
|
+
domain?: string | null | undefined;
|
|
298
|
+
reason?: string | null | undefined;
|
|
299
|
+
}[] | undefined;
|
|
300
|
+
}> | undefined;
|
|
301
|
+
}> & {
|
|
302
|
+
slug: "findFreeBusyPeriods";
|
|
232
303
|
};
|
|
233
|
-
export {};
|
|
234
304
|
//# sourceMappingURL=read.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"read.d.ts","sourceRoot":"","sources":["../../src/actions/read.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"read.d.ts","sourceRoot":"","sources":["../../src/actions/read.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAYxB,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAanB,CAAC;AAkCH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0BrB,CAAC;AAyCH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsB9B,CAAC"}
|