@corsair-dev/googlecalendar 0.1.0 → 0.1.2
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/api.test.d.ts +2 -0
- package/dist/api.test.d.ts.map +1 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/endpoints/calendar.d.ts +1 -1
- package/dist/endpoints/calendar.d.ts.map +1 -1
- package/dist/endpoints/events.d.ts +1 -1
- package/dist/endpoints/events.d.ts.map +1 -1
- package/dist/endpoints/index.d.ts +8 -8
- package/dist/endpoints/types.d.ts +277 -1923
- package/dist/endpoints/types.d.ts.map +1 -1
- package/dist/index.d.ts +279 -1926
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/integration.test.d.ts +2 -0
- package/dist/integration.test.d.ts.map +1 -0
- package/dist/schema/database.d.ts +43 -264
- package/dist/schema/database.d.ts.map +1 -1
- package/dist/schema/index.d.ts +43 -264
- package/dist/schema/index.d.ts.map +1 -1
- package/dist/webhooks/events.d.ts +1 -1
- package/dist/webhooks/events.d.ts.map +1 -1
- package/dist/webhooks/index.d.ts +2 -2
- package/dist/webhooks/types.d.ts +16 -130
- package/dist/webhooks/types.d.ts.map +1 -1
- package/package.json +16 -6
package/dist/schema/index.d.ts
CHANGED
|
@@ -3,7 +3,11 @@ export declare const GoogleCalendarSchema: {
|
|
|
3
3
|
readonly entities: {
|
|
4
4
|
readonly events: import("zod").ZodObject<{
|
|
5
5
|
id: import("zod").ZodString;
|
|
6
|
-
status: import("zod").ZodOptional<import("zod").ZodEnum<
|
|
6
|
+
status: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
7
|
+
tentative: "tentative";
|
|
8
|
+
confirmed: "confirmed";
|
|
9
|
+
cancelled: "cancelled";
|
|
10
|
+
}>>;
|
|
7
11
|
htmlLink: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8
12
|
created: import("zod").ZodOptional<import("zod").ZodString>;
|
|
9
13
|
updated: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -16,77 +20,41 @@ export declare const GoogleCalendarSchema: {
|
|
|
16
20
|
email: import("zod").ZodOptional<import("zod").ZodString>;
|
|
17
21
|
displayName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
18
22
|
self: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
19
|
-
},
|
|
20
|
-
id?: string | undefined;
|
|
21
|
-
email?: string | undefined;
|
|
22
|
-
displayName?: string | undefined;
|
|
23
|
-
self?: boolean | undefined;
|
|
24
|
-
}, {
|
|
25
|
-
id?: string | undefined;
|
|
26
|
-
email?: string | undefined;
|
|
27
|
-
displayName?: string | undefined;
|
|
28
|
-
self?: boolean | undefined;
|
|
29
|
-
}>>;
|
|
23
|
+
}, import("zod/v4/core").$strip>>;
|
|
30
24
|
organizer: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
31
25
|
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
32
26
|
email: import("zod").ZodOptional<import("zod").ZodString>;
|
|
33
27
|
displayName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
34
28
|
self: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
35
|
-
},
|
|
36
|
-
id?: string | undefined;
|
|
37
|
-
email?: string | undefined;
|
|
38
|
-
displayName?: string | undefined;
|
|
39
|
-
self?: boolean | undefined;
|
|
40
|
-
}, {
|
|
41
|
-
id?: string | undefined;
|
|
42
|
-
email?: string | undefined;
|
|
43
|
-
displayName?: string | undefined;
|
|
44
|
-
self?: boolean | undefined;
|
|
45
|
-
}>>;
|
|
29
|
+
}, import("zod/v4/core").$strip>>;
|
|
46
30
|
start: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
47
31
|
date: import("zod").ZodOptional<import("zod").ZodString>;
|
|
48
32
|
dateTime: import("zod").ZodOptional<import("zod").ZodString>;
|
|
49
33
|
timeZone: import("zod").ZodOptional<import("zod").ZodString>;
|
|
50
|
-
},
|
|
51
|
-
date?: string | undefined;
|
|
52
|
-
dateTime?: string | undefined;
|
|
53
|
-
timeZone?: string | undefined;
|
|
54
|
-
}, {
|
|
55
|
-
date?: string | undefined;
|
|
56
|
-
dateTime?: string | undefined;
|
|
57
|
-
timeZone?: string | undefined;
|
|
58
|
-
}>>;
|
|
34
|
+
}, import("zod/v4/core").$strip>>;
|
|
59
35
|
end: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
60
36
|
date: import("zod").ZodOptional<import("zod").ZodString>;
|
|
61
37
|
dateTime: import("zod").ZodOptional<import("zod").ZodString>;
|
|
62
38
|
timeZone: import("zod").ZodOptional<import("zod").ZodString>;
|
|
63
|
-
},
|
|
64
|
-
date?: string | undefined;
|
|
65
|
-
dateTime?: string | undefined;
|
|
66
|
-
timeZone?: string | undefined;
|
|
67
|
-
}, {
|
|
68
|
-
date?: string | undefined;
|
|
69
|
-
dateTime?: string | undefined;
|
|
70
|
-
timeZone?: string | undefined;
|
|
71
|
-
}>>;
|
|
39
|
+
}, import("zod/v4/core").$strip>>;
|
|
72
40
|
endTimeUnspecified: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
73
|
-
recurrence: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString
|
|
41
|
+
recurrence: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
74
42
|
recurringEventId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
75
43
|
originalStartTime: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
76
44
|
date: import("zod").ZodOptional<import("zod").ZodString>;
|
|
77
45
|
dateTime: import("zod").ZodOptional<import("zod").ZodString>;
|
|
78
46
|
timeZone: import("zod").ZodOptional<import("zod").ZodString>;
|
|
79
|
-
},
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
47
|
+
}, import("zod/v4/core").$strip>>;
|
|
48
|
+
transparency: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
49
|
+
opaque: "opaque";
|
|
50
|
+
transparent: "transparent";
|
|
51
|
+
}>>;
|
|
52
|
+
visibility: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
53
|
+
default: "default";
|
|
54
|
+
public: "public";
|
|
55
|
+
private: "private";
|
|
56
|
+
confidential: "confidential";
|
|
87
57
|
}>>;
|
|
88
|
-
transparency: import("zod").ZodOptional<import("zod").ZodEnum<["opaque", "transparent"]>>;
|
|
89
|
-
visibility: import("zod").ZodOptional<import("zod").ZodEnum<["default", "public", "private", "confidential"]>>;
|
|
90
58
|
iCalUID: import("zod").ZodOptional<import("zod").ZodString>;
|
|
91
59
|
sequence: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
92
60
|
attendees: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
@@ -97,239 +65,50 @@ export declare const GoogleCalendarSchema: {
|
|
|
97
65
|
self: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
98
66
|
resource: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
99
67
|
optional: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
100
|
-
responseStatus: import("zod").ZodOptional<import("zod").ZodEnum<
|
|
68
|
+
responseStatus: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
69
|
+
needsAction: "needsAction";
|
|
70
|
+
declined: "declined";
|
|
71
|
+
tentative: "tentative";
|
|
72
|
+
accepted: "accepted";
|
|
73
|
+
}>>;
|
|
101
74
|
comment: import("zod").ZodOptional<import("zod").ZodString>;
|
|
102
75
|
additionalGuests: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
103
|
-
},
|
|
104
|
-
id?: string | undefined;
|
|
105
|
-
email?: string | undefined;
|
|
106
|
-
displayName?: string | undefined;
|
|
107
|
-
organizer?: boolean | undefined;
|
|
108
|
-
self?: boolean | undefined;
|
|
109
|
-
resource?: boolean | undefined;
|
|
110
|
-
optional?: boolean | undefined;
|
|
111
|
-
responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined;
|
|
112
|
-
comment?: string | undefined;
|
|
113
|
-
additionalGuests?: number | undefined;
|
|
114
|
-
}, {
|
|
115
|
-
id?: string | undefined;
|
|
116
|
-
email?: string | undefined;
|
|
117
|
-
displayName?: string | undefined;
|
|
118
|
-
organizer?: boolean | undefined;
|
|
119
|
-
self?: boolean | undefined;
|
|
120
|
-
resource?: boolean | undefined;
|
|
121
|
-
optional?: boolean | undefined;
|
|
122
|
-
responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined;
|
|
123
|
-
comment?: string | undefined;
|
|
124
|
-
additionalGuests?: number | undefined;
|
|
125
|
-
}>, "many">>;
|
|
76
|
+
}, import("zod/v4/core").$strip>>>;
|
|
126
77
|
attendeesOmitted: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
127
78
|
hangoutLink: import("zod").ZodOptional<import("zod").ZodString>;
|
|
128
79
|
reminders: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
129
80
|
useDefault: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
130
81
|
overrides: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
131
|
-
method: import("zod").ZodOptional<import("zod").ZodEnum<
|
|
82
|
+
method: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
83
|
+
email: "email";
|
|
84
|
+
popup: "popup";
|
|
85
|
+
}>>;
|
|
132
86
|
minutes: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
133
|
-
},
|
|
134
|
-
|
|
135
|
-
minutes?: number | undefined;
|
|
136
|
-
}, {
|
|
137
|
-
method?: "email" | "popup" | undefined;
|
|
138
|
-
minutes?: number | undefined;
|
|
139
|
-
}>, "many">>;
|
|
140
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
141
|
-
useDefault?: boolean | undefined;
|
|
142
|
-
overrides?: {
|
|
143
|
-
method?: "email" | "popup" | undefined;
|
|
144
|
-
minutes?: number | undefined;
|
|
145
|
-
}[] | undefined;
|
|
146
|
-
}, {
|
|
147
|
-
useDefault?: boolean | undefined;
|
|
148
|
-
overrides?: {
|
|
149
|
-
method?: "email" | "popup" | undefined;
|
|
150
|
-
minutes?: number | undefined;
|
|
151
|
-
}[] | undefined;
|
|
152
|
-
}>>;
|
|
87
|
+
}, import("zod/v4/core").$strip>>>;
|
|
88
|
+
}, import("zod/v4/core").$strip>>;
|
|
153
89
|
anyoneCanAddSelf: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
154
90
|
guestsCanInviteOthers: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
155
91
|
guestsCanModify: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
156
92
|
guestsCanSeeOtherGuests: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
157
93
|
privateCopy: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
158
94
|
locked: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
159
|
-
eventType: import("zod").ZodOptional<import("zod").ZodEnum<
|
|
95
|
+
eventType: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
96
|
+
default: "default";
|
|
97
|
+
outOfOffice: "outOfOffice";
|
|
98
|
+
focusTime: "focusTime";
|
|
99
|
+
workingLocation: "workingLocation";
|
|
100
|
+
}>>;
|
|
160
101
|
calendarId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
161
|
-
createdAt: import("zod").ZodOptional<import("zod").
|
|
162
|
-
},
|
|
163
|
-
id: string;
|
|
164
|
-
location?: string | undefined;
|
|
165
|
-
status?: "tentative" | "confirmed" | "cancelled" | undefined;
|
|
166
|
-
start?: {
|
|
167
|
-
date?: string | undefined;
|
|
168
|
-
dateTime?: string | undefined;
|
|
169
|
-
timeZone?: string | undefined;
|
|
170
|
-
} | undefined;
|
|
171
|
-
end?: {
|
|
172
|
-
date?: string | undefined;
|
|
173
|
-
dateTime?: string | undefined;
|
|
174
|
-
timeZone?: string | undefined;
|
|
175
|
-
} | undefined;
|
|
176
|
-
description?: string | undefined;
|
|
177
|
-
organizer?: {
|
|
178
|
-
id?: string | undefined;
|
|
179
|
-
email?: string | undefined;
|
|
180
|
-
displayName?: string | undefined;
|
|
181
|
-
self?: boolean | undefined;
|
|
182
|
-
} | undefined;
|
|
183
|
-
summary?: string | undefined;
|
|
184
|
-
attendees?: {
|
|
185
|
-
id?: string | undefined;
|
|
186
|
-
email?: string | undefined;
|
|
187
|
-
displayName?: string | undefined;
|
|
188
|
-
organizer?: boolean | undefined;
|
|
189
|
-
self?: boolean | undefined;
|
|
190
|
-
resource?: boolean | undefined;
|
|
191
|
-
optional?: boolean | undefined;
|
|
192
|
-
responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined;
|
|
193
|
-
comment?: string | undefined;
|
|
194
|
-
additionalGuests?: number | undefined;
|
|
195
|
-
}[] | undefined;
|
|
196
|
-
recurrence?: string[] | undefined;
|
|
197
|
-
colorId?: string | undefined;
|
|
198
|
-
transparency?: "opaque" | "transparent" | undefined;
|
|
199
|
-
visibility?: "default" | "public" | "private" | "confidential" | undefined;
|
|
200
|
-
eventType?: "default" | "outOfOffice" | "focusTime" | "workingLocation" | undefined;
|
|
201
|
-
reminders?: {
|
|
202
|
-
useDefault?: boolean | undefined;
|
|
203
|
-
overrides?: {
|
|
204
|
-
method?: "email" | "popup" | undefined;
|
|
205
|
-
minutes?: number | undefined;
|
|
206
|
-
}[] | undefined;
|
|
207
|
-
} | undefined;
|
|
208
|
-
guestsCanModify?: boolean | undefined;
|
|
209
|
-
guestsCanInviteOthers?: boolean | undefined;
|
|
210
|
-
guestsCanSeeOtherGuests?: boolean | undefined;
|
|
211
|
-
anyoneCanAddSelf?: boolean | undefined;
|
|
212
|
-
sequence?: number | undefined;
|
|
213
|
-
originalStartTime?: {
|
|
214
|
-
date?: string | undefined;
|
|
215
|
-
dateTime?: string | undefined;
|
|
216
|
-
timeZone?: string | undefined;
|
|
217
|
-
} | undefined;
|
|
218
|
-
recurringEventId?: string | undefined;
|
|
219
|
-
calendarId?: string | undefined;
|
|
220
|
-
updated?: string | undefined;
|
|
221
|
-
iCalUID?: string | undefined;
|
|
222
|
-
htmlLink?: string | undefined;
|
|
223
|
-
created?: string | undefined;
|
|
224
|
-
creator?: {
|
|
225
|
-
id?: string | undefined;
|
|
226
|
-
email?: string | undefined;
|
|
227
|
-
displayName?: string | undefined;
|
|
228
|
-
self?: boolean | undefined;
|
|
229
|
-
} | undefined;
|
|
230
|
-
endTimeUnspecified?: boolean | undefined;
|
|
231
|
-
attendeesOmitted?: boolean | undefined;
|
|
232
|
-
hangoutLink?: string | undefined;
|
|
233
|
-
privateCopy?: boolean | undefined;
|
|
234
|
-
locked?: boolean | undefined;
|
|
235
|
-
createdAt?: Date | undefined;
|
|
236
|
-
}, {
|
|
237
|
-
id: string;
|
|
238
|
-
location?: string | undefined;
|
|
239
|
-
status?: "tentative" | "confirmed" | "cancelled" | undefined;
|
|
240
|
-
start?: {
|
|
241
|
-
date?: string | undefined;
|
|
242
|
-
dateTime?: string | undefined;
|
|
243
|
-
timeZone?: string | undefined;
|
|
244
|
-
} | undefined;
|
|
245
|
-
end?: {
|
|
246
|
-
date?: string | undefined;
|
|
247
|
-
dateTime?: string | undefined;
|
|
248
|
-
timeZone?: string | undefined;
|
|
249
|
-
} | undefined;
|
|
250
|
-
description?: string | undefined;
|
|
251
|
-
organizer?: {
|
|
252
|
-
id?: string | undefined;
|
|
253
|
-
email?: string | undefined;
|
|
254
|
-
displayName?: string | undefined;
|
|
255
|
-
self?: boolean | undefined;
|
|
256
|
-
} | undefined;
|
|
257
|
-
summary?: string | undefined;
|
|
258
|
-
attendees?: {
|
|
259
|
-
id?: string | undefined;
|
|
260
|
-
email?: string | undefined;
|
|
261
|
-
displayName?: string | undefined;
|
|
262
|
-
organizer?: boolean | undefined;
|
|
263
|
-
self?: boolean | undefined;
|
|
264
|
-
resource?: boolean | undefined;
|
|
265
|
-
optional?: boolean | undefined;
|
|
266
|
-
responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined;
|
|
267
|
-
comment?: string | undefined;
|
|
268
|
-
additionalGuests?: number | undefined;
|
|
269
|
-
}[] | undefined;
|
|
270
|
-
recurrence?: string[] | undefined;
|
|
271
|
-
colorId?: string | undefined;
|
|
272
|
-
transparency?: "opaque" | "transparent" | undefined;
|
|
273
|
-
visibility?: "default" | "public" | "private" | "confidential" | undefined;
|
|
274
|
-
eventType?: "default" | "outOfOffice" | "focusTime" | "workingLocation" | undefined;
|
|
275
|
-
reminders?: {
|
|
276
|
-
useDefault?: boolean | undefined;
|
|
277
|
-
overrides?: {
|
|
278
|
-
method?: "email" | "popup" | undefined;
|
|
279
|
-
minutes?: number | undefined;
|
|
280
|
-
}[] | undefined;
|
|
281
|
-
} | undefined;
|
|
282
|
-
guestsCanModify?: boolean | undefined;
|
|
283
|
-
guestsCanInviteOthers?: boolean | undefined;
|
|
284
|
-
guestsCanSeeOtherGuests?: boolean | undefined;
|
|
285
|
-
anyoneCanAddSelf?: boolean | undefined;
|
|
286
|
-
sequence?: number | undefined;
|
|
287
|
-
originalStartTime?: {
|
|
288
|
-
date?: string | undefined;
|
|
289
|
-
dateTime?: string | undefined;
|
|
290
|
-
timeZone?: string | undefined;
|
|
291
|
-
} | undefined;
|
|
292
|
-
recurringEventId?: string | undefined;
|
|
293
|
-
calendarId?: string | undefined;
|
|
294
|
-
updated?: string | undefined;
|
|
295
|
-
iCalUID?: string | undefined;
|
|
296
|
-
htmlLink?: string | undefined;
|
|
297
|
-
created?: string | undefined;
|
|
298
|
-
creator?: {
|
|
299
|
-
id?: string | undefined;
|
|
300
|
-
email?: string | undefined;
|
|
301
|
-
displayName?: string | undefined;
|
|
302
|
-
self?: boolean | undefined;
|
|
303
|
-
} | undefined;
|
|
304
|
-
endTimeUnspecified?: boolean | undefined;
|
|
305
|
-
attendeesOmitted?: boolean | undefined;
|
|
306
|
-
hangoutLink?: string | undefined;
|
|
307
|
-
privateCopy?: boolean | undefined;
|
|
308
|
-
locked?: boolean | undefined;
|
|
309
|
-
createdAt?: Date | undefined;
|
|
310
|
-
}>;
|
|
102
|
+
createdAt: import("zod").ZodOptional<import("zod").ZodCoercedDate<unknown>>;
|
|
103
|
+
}, import("zod/v4/core").$strip>;
|
|
311
104
|
readonly calendars: import("zod").ZodObject<{
|
|
312
105
|
id: import("zod").ZodString;
|
|
313
106
|
summary: import("zod").ZodOptional<import("zod").ZodString>;
|
|
314
107
|
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
315
108
|
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
316
109
|
timeZone: import("zod").ZodOptional<import("zod").ZodString>;
|
|
317
|
-
createdAt: import("zod").ZodOptional<import("zod").
|
|
318
|
-
},
|
|
319
|
-
id: string;
|
|
320
|
-
location?: string | undefined;
|
|
321
|
-
description?: string | undefined;
|
|
322
|
-
timeZone?: string | undefined;
|
|
323
|
-
summary?: string | undefined;
|
|
324
|
-
createdAt?: Date | undefined;
|
|
325
|
-
}, {
|
|
326
|
-
id: string;
|
|
327
|
-
location?: string | undefined;
|
|
328
|
-
description?: string | undefined;
|
|
329
|
-
timeZone?: string | undefined;
|
|
330
|
-
summary?: string | undefined;
|
|
331
|
-
createdAt?: Date | undefined;
|
|
332
|
-
}>;
|
|
110
|
+
createdAt: import("zod").ZodOptional<import("zod").ZodCoercedDate<unknown>>;
|
|
111
|
+
}, import("zod/v4/core").$strip>;
|
|
333
112
|
};
|
|
334
113
|
};
|
|
335
114
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../schema/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../schema/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMvB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../webhooks/events.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../webhooks/events.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AA0HvD,eAAO,MAAM,cAAc,EAAE,sBAAsB,CAAC,gBAAgB,CAiHnE,CAAC"}
|
package/dist/webhooks/index.d.ts
CHANGED
|
@@ -14,8 +14,8 @@ export declare const EventWebhooks: {
|
|
|
14
14
|
} | {
|
|
15
15
|
type: "eventDeleted";
|
|
16
16
|
calendarId: string;
|
|
17
|
-
timestamp: string;
|
|
18
17
|
eventId: string;
|
|
18
|
+
timestamp: string;
|
|
19
19
|
}>, {
|
|
20
20
|
type: "eventCreated";
|
|
21
21
|
calendarId: string;
|
|
@@ -29,8 +29,8 @@ export declare const EventWebhooks: {
|
|
|
29
29
|
} | {
|
|
30
30
|
type: "eventDeleted";
|
|
31
31
|
calendarId: string;
|
|
32
|
-
timestamp: string;
|
|
33
32
|
eventId: string;
|
|
33
|
+
timestamp: string;
|
|
34
34
|
}>;
|
|
35
35
|
};
|
|
36
36
|
};
|
package/dist/webhooks/types.d.ts
CHANGED
|
@@ -1,22 +1,12 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
1
|
import type { CorsairWebhookMatcher } from 'corsair/core';
|
|
2
|
+
import { z } from 'zod';
|
|
3
3
|
import type { Event } from '../types';
|
|
4
4
|
export declare const PubSubMessageSchema: z.ZodObject<{
|
|
5
5
|
data: z.ZodOptional<z.ZodString>;
|
|
6
6
|
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
7
7
|
messageId: z.ZodOptional<z.ZodString>;
|
|
8
8
|
publishTime: z.ZodOptional<z.ZodString>;
|
|
9
|
-
},
|
|
10
|
-
data?: string | undefined;
|
|
11
|
-
attributes?: Record<string, string> | undefined;
|
|
12
|
-
messageId?: string | undefined;
|
|
13
|
-
publishTime?: string | undefined;
|
|
14
|
-
}, {
|
|
15
|
-
data?: string | undefined;
|
|
16
|
-
attributes?: Record<string, string> | undefined;
|
|
17
|
-
messageId?: string | undefined;
|
|
18
|
-
publishTime?: string | undefined;
|
|
19
|
-
}>;
|
|
9
|
+
}, z.core.$strip>;
|
|
20
10
|
export type PubSubMessage = z.infer<typeof PubSubMessageSchema>;
|
|
21
11
|
export declare const PubSubNotificationSchema: z.ZodObject<{
|
|
22
12
|
message: z.ZodOptional<z.ZodObject<{
|
|
@@ -24,38 +14,10 @@ export declare const PubSubNotificationSchema: z.ZodObject<{
|
|
|
24
14
|
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
25
15
|
messageId: z.ZodOptional<z.ZodString>;
|
|
26
16
|
publishTime: z.ZodOptional<z.ZodString>;
|
|
27
|
-
},
|
|
28
|
-
data?: string | undefined;
|
|
29
|
-
attributes?: Record<string, string> | undefined;
|
|
30
|
-
messageId?: string | undefined;
|
|
31
|
-
publishTime?: string | undefined;
|
|
32
|
-
}, {
|
|
33
|
-
data?: string | undefined;
|
|
34
|
-
attributes?: Record<string, string> | undefined;
|
|
35
|
-
messageId?: string | undefined;
|
|
36
|
-
publishTime?: string | undefined;
|
|
37
|
-
}>>;
|
|
17
|
+
}, z.core.$strip>>;
|
|
38
18
|
subscription: z.ZodOptional<z.ZodString>;
|
|
39
19
|
event: z.ZodOptional<z.ZodUnknown>;
|
|
40
|
-
},
|
|
41
|
-
message?: {
|
|
42
|
-
data?: string | undefined;
|
|
43
|
-
attributes?: Record<string, string> | undefined;
|
|
44
|
-
messageId?: string | undefined;
|
|
45
|
-
publishTime?: string | undefined;
|
|
46
|
-
} | undefined;
|
|
47
|
-
event?: unknown;
|
|
48
|
-
subscription?: string | undefined;
|
|
49
|
-
}, {
|
|
50
|
-
message?: {
|
|
51
|
-
data?: string | undefined;
|
|
52
|
-
attributes?: Record<string, string> | undefined;
|
|
53
|
-
messageId?: string | undefined;
|
|
54
|
-
publishTime?: string | undefined;
|
|
55
|
-
} | undefined;
|
|
56
|
-
event?: unknown;
|
|
57
|
-
subscription?: string | undefined;
|
|
58
|
-
}>;
|
|
20
|
+
}, z.core.$strip>;
|
|
59
21
|
export type PubSubNotification<TEvent = unknown> = Omit<z.infer<typeof PubSubNotificationSchema>, 'event'> & {
|
|
60
22
|
event?: TEvent;
|
|
61
23
|
};
|
|
@@ -67,121 +29,45 @@ export declare const GoogleCalendarPushNotificationSchema: z.ZodObject<{
|
|
|
67
29
|
channelExpiration: z.ZodOptional<z.ZodString>;
|
|
68
30
|
channelToken: z.ZodOptional<z.ZodString>;
|
|
69
31
|
changed: z.ZodOptional<z.ZodString>;
|
|
70
|
-
},
|
|
71
|
-
resourceId?: string | undefined;
|
|
72
|
-
resourceState?: string | undefined;
|
|
73
|
-
resourceUri?: string | undefined;
|
|
74
|
-
channelId?: string | undefined;
|
|
75
|
-
channelExpiration?: string | undefined;
|
|
76
|
-
channelToken?: string | undefined;
|
|
77
|
-
changed?: string | undefined;
|
|
78
|
-
}, {
|
|
79
|
-
resourceId?: string | undefined;
|
|
80
|
-
resourceState?: string | undefined;
|
|
81
|
-
resourceUri?: string | undefined;
|
|
82
|
-
channelId?: string | undefined;
|
|
83
|
-
channelExpiration?: string | undefined;
|
|
84
|
-
channelToken?: string | undefined;
|
|
85
|
-
changed?: string | undefined;
|
|
86
|
-
}>;
|
|
32
|
+
}, z.core.$strip>;
|
|
87
33
|
export type GoogleCalendarPushNotification = z.infer<typeof GoogleCalendarPushNotificationSchema>;
|
|
88
34
|
export declare const EventCreatedEventSchema: z.ZodObject<{
|
|
89
35
|
type: z.ZodLiteral<"eventCreated">;
|
|
90
36
|
calendarId: z.ZodString;
|
|
91
|
-
event: z.
|
|
37
|
+
event: z.ZodCustom<Event, Event>;
|
|
92
38
|
timestamp: z.ZodString;
|
|
93
|
-
},
|
|
94
|
-
type: "eventCreated";
|
|
95
|
-
calendarId: string;
|
|
96
|
-
event: Event;
|
|
97
|
-
timestamp: string;
|
|
98
|
-
}, {
|
|
99
|
-
type: "eventCreated";
|
|
100
|
-
calendarId: string;
|
|
101
|
-
event: Event;
|
|
102
|
-
timestamp: string;
|
|
103
|
-
}>;
|
|
39
|
+
}, z.core.$strip>;
|
|
104
40
|
export type EventCreatedEvent = z.infer<typeof EventCreatedEventSchema>;
|
|
105
41
|
export declare const EventUpdatedEventSchema: z.ZodObject<{
|
|
106
42
|
type: z.ZodLiteral<"eventUpdated">;
|
|
107
43
|
calendarId: z.ZodString;
|
|
108
|
-
event: z.
|
|
44
|
+
event: z.ZodCustom<Event, Event>;
|
|
109
45
|
timestamp: z.ZodString;
|
|
110
|
-
},
|
|
111
|
-
type: "eventUpdated";
|
|
112
|
-
calendarId: string;
|
|
113
|
-
event: Event;
|
|
114
|
-
timestamp: string;
|
|
115
|
-
}, {
|
|
116
|
-
type: "eventUpdated";
|
|
117
|
-
calendarId: string;
|
|
118
|
-
event: Event;
|
|
119
|
-
timestamp: string;
|
|
120
|
-
}>;
|
|
46
|
+
}, z.core.$strip>;
|
|
121
47
|
export type EventUpdatedEvent = z.infer<typeof EventUpdatedEventSchema>;
|
|
122
48
|
export declare const EventDeletedEventSchema: z.ZodObject<{
|
|
123
49
|
type: z.ZodLiteral<"eventDeleted">;
|
|
124
50
|
calendarId: z.ZodString;
|
|
125
51
|
eventId: z.ZodString;
|
|
126
52
|
timestamp: z.ZodString;
|
|
127
|
-
},
|
|
128
|
-
type: "eventDeleted";
|
|
129
|
-
calendarId: string;
|
|
130
|
-
timestamp: string;
|
|
131
|
-
eventId: string;
|
|
132
|
-
}, {
|
|
133
|
-
type: "eventDeleted";
|
|
134
|
-
calendarId: string;
|
|
135
|
-
timestamp: string;
|
|
136
|
-
eventId: string;
|
|
137
|
-
}>;
|
|
53
|
+
}, z.core.$strip>;
|
|
138
54
|
export type EventDeletedEvent = z.infer<typeof EventDeletedEventSchema>;
|
|
139
|
-
export declare const GoogleCalendarWebhookEventSchema: z.ZodUnion<[z.ZodObject<{
|
|
55
|
+
export declare const GoogleCalendarWebhookEventSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
140
56
|
type: z.ZodLiteral<"eventCreated">;
|
|
141
57
|
calendarId: z.ZodString;
|
|
142
|
-
event: z.
|
|
58
|
+
event: z.ZodCustom<Event, Event>;
|
|
143
59
|
timestamp: z.ZodString;
|
|
144
|
-
},
|
|
145
|
-
type: "eventCreated";
|
|
146
|
-
calendarId: string;
|
|
147
|
-
event: Event;
|
|
148
|
-
timestamp: string;
|
|
149
|
-
}, {
|
|
150
|
-
type: "eventCreated";
|
|
151
|
-
calendarId: string;
|
|
152
|
-
event: Event;
|
|
153
|
-
timestamp: string;
|
|
154
|
-
}>, z.ZodObject<{
|
|
60
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
155
61
|
type: z.ZodLiteral<"eventUpdated">;
|
|
156
62
|
calendarId: z.ZodString;
|
|
157
|
-
event: z.
|
|
63
|
+
event: z.ZodCustom<Event, Event>;
|
|
158
64
|
timestamp: z.ZodString;
|
|
159
|
-
},
|
|
160
|
-
type: "eventUpdated";
|
|
161
|
-
calendarId: string;
|
|
162
|
-
event: Event;
|
|
163
|
-
timestamp: string;
|
|
164
|
-
}, {
|
|
165
|
-
type: "eventUpdated";
|
|
166
|
-
calendarId: string;
|
|
167
|
-
event: Event;
|
|
168
|
-
timestamp: string;
|
|
169
|
-
}>, z.ZodObject<{
|
|
65
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
170
66
|
type: z.ZodLiteral<"eventDeleted">;
|
|
171
67
|
calendarId: z.ZodString;
|
|
172
68
|
eventId: z.ZodString;
|
|
173
69
|
timestamp: z.ZodString;
|
|
174
|
-
},
|
|
175
|
-
type: "eventDeleted";
|
|
176
|
-
calendarId: string;
|
|
177
|
-
timestamp: string;
|
|
178
|
-
eventId: string;
|
|
179
|
-
}, {
|
|
180
|
-
type: "eventDeleted";
|
|
181
|
-
calendarId: string;
|
|
182
|
-
timestamp: string;
|
|
183
|
-
eventId: string;
|
|
184
|
-
}>]>;
|
|
70
|
+
}, z.core.$strip>]>;
|
|
185
71
|
export type GoogleCalendarWebhookEvent = z.infer<typeof GoogleCalendarWebhookEventSchema>;
|
|
186
72
|
export type GoogleCalendarEventName = 'eventChanged';
|
|
187
73
|
export interface GoogleCalendarEventMap {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../webhooks/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../webhooks/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAqB,MAAM,cAAc,CAAC;AAC7E,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAMtC,eAAO,MAAM,mBAAmB;;;;;iBAK9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,wBAAwB;;;;;;;;;iBAInC,CAAC;AACH,MAAM,MAAM,kBAAkB,CAAC,MAAM,GAAG,OAAO,IAAI,IAAI,CACtD,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,EACxC,OAAO,CACP,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEvB,eAAO,MAAM,oCAAoC;;;;;;;;iBAQ/C,CAAC;AACH,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CACnD,OAAO,oCAAoC,CAC3C,CAAC;AAMF,eAAO,MAAM,uBAAuB;;;;;iBAKlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,uBAAuB;;;;;iBAKlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,uBAAuB;;;;;iBAKlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;mBAI3C,CAAC;AACH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO,gCAAgC,CACvC,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,cAAc,CAAC;AAErD,MAAM,WAAW,sBAAsB;IACtC,YAAY,EAAE,iBAAiB,GAAG,iBAAiB,GAAG,iBAAiB,CAAC;CACxE;AAED,MAAM,MAAM,4BAA4B,CAAC,MAAM,GAAG,OAAO,IACxD,kBAAkB,CAAC,MAAM,CAAC,CAAC;AAE5B,MAAM,MAAM,4BAA4B,GAAG;IAC1C,YAAY,EAAE,iBAAiB,GAAG,iBAAiB,GAAG,iBAAiB,CAAC;CACxE,CAAC;AAMF,wBAAgB,mBAAmB,CAClC,IAAI,EAAE,MAAM,GACV,8BAA8B,CAGhC;AAED,wBAAgB,kCAAkC,CACjD,SAAS,EAAE,uBAAuB,GAChC,qBAAqB,CAoBvB"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@corsair-dev/googlecalendar",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.1.2",
|
|
4
|
+
"description": "Google calendar plugin for Corsair",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"module": "./dist/index.js",
|
|
@@ -11,17 +11,23 @@
|
|
|
11
11
|
"dev-source": "./index.ts",
|
|
12
12
|
"types": "./dist/index.d.ts",
|
|
13
13
|
"default": "./dist/index.js"
|
|
14
|
+
},
|
|
15
|
+
"./types": {
|
|
16
|
+
"dev-source": "./types.ts",
|
|
17
|
+
"types": "./dist/types.d.ts"
|
|
14
18
|
}
|
|
15
19
|
},
|
|
16
20
|
"peerDependencies": {
|
|
17
21
|
"corsair": ">=0.1.0",
|
|
18
|
-
"zod": "^
|
|
22
|
+
"zod": "^4.1.13"
|
|
19
23
|
},
|
|
20
24
|
"devDependencies": {
|
|
25
|
+
"@types/jest": "^29.5.14",
|
|
26
|
+
"ts-jest": "^29.4.9",
|
|
21
27
|
"tsup": "^8.0.1",
|
|
22
28
|
"typescript": "^5.9.3",
|
|
23
|
-
"zod": "^
|
|
24
|
-
"corsair": "0.1.
|
|
29
|
+
"zod": "^4.1.13",
|
|
30
|
+
"corsair": "0.1.69"
|
|
25
31
|
},
|
|
26
32
|
"keywords": [
|
|
27
33
|
"corsair",
|
|
@@ -33,8 +39,12 @@
|
|
|
33
39
|
"files": [
|
|
34
40
|
"dist"
|
|
35
41
|
],
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"jest": "^29.7.0"
|
|
44
|
+
},
|
|
36
45
|
"scripts": {
|
|
37
46
|
"build": "rm -rf dist && tsc --build --force && tsup",
|
|
38
|
-
"typecheck": "tsc --noEmit"
|
|
47
|
+
"typecheck": "tsc --noEmit",
|
|
48
|
+
"test": "jest"
|
|
39
49
|
}
|
|
40
50
|
}
|