-
Notifications
You must be signed in to change notification settings - Fork 0
/
EventObject.ts
53 lines (45 loc) · 1.49 KB
/
EventObject.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import { AuthorizationEventObject } from './AuthorizationEventObject'
import { CalendarEventObject } from './CalendarEventObject'
import { CommonEventObject } from './CommonEventObject'
import { DocsEventObject } from './DocsEventObject'
import { DriveEventObject } from './DriveEventObject'
import { GmailEventObject } from './GmailEventObject'
import { SheetsEventObject } from './SheetsEventObject'
import { SlidesEventObject } from './SlidesEventObject'
/**
* Event objects are JSON structures that are automatically constructed and passed as parameters to trigger or callback functions when a user interacts with an add-on (https://developers.google.com/workspace/add-ons/concepts/event-objects)
*/
export type EventObject = {
/**
* An object containing information common to all event objects, regardless of the host application.
*/
commonEventObject: CommonEventObject
/**
* Set for requests to HTTP endpoints
*/
authorizationEventObject?: AuthorizationEventObject
/**
* An object containing Gmail information.
*/
gmail?: GmailEventObject
/**
* An object containing Drive information.
*/
drive?: DriveEventObject
/**
* An object containing Docs information.
*/
docs?: DocsEventObject
/**
* An object containing Sheets information.
*/
sheets?: SheetsEventObject
/**
* An object containing Slides information.
*/
slides?: SlidesEventObject
/**
* An object containing calendar and event information.
*/
calendar?: CalendarEventObject
}