forked from google/clasp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapis.ts
186 lines (182 loc) Β· 3.42 KB
/
apis.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
/**
* Google API Types
*/
/**
* Different types of starter script templates.
* Technically, a script can be multiple types (e.g. Slides add-on/API),
* but it's pretty rare that anyone wants that.
*/
export enum SCRIPT_TYPES {
STANDALONE = 'standalone',
DOCS = 'docs',
SHEETS = 'sheets',
SLIDES = 'slides',
FORMS = 'forms',
WEBAPP = 'webapp',
API = 'api',
}
// Also see:
// https://github.com/SchemaStore/schemastore/blob/master/src/schemas/json/appsscript.json
export interface AdvancedService {
readonly userSymbol: string;
readonly serviceId: string;
readonly version: string;
}
/**
* This is a list of all public Advanced Services.
*
* It was generated by:
* 1. script.google.com/create
* 1. Resources > Advanced Google Services
* 1. Enable all services
* 1. View > Show manifest file
* 1. View appsscript.json
*/
export const PUBLIC_ADVANCED_SERVICES: AdvancedService[] = [
{
userSymbol: 'Classroom',
serviceId: 'classroom',
version: 'v1',
},
{
userSymbol: 'Tasks',
serviceId: 'tasks',
version: 'v1',
},
{
userSymbol: 'BigQuery',
serviceId: 'bigquery',
version: 'v2',
},
{
userSymbol: 'DoubleClickCampaigns',
serviceId: 'dfareporting',
version: 'v3.3',
},
{
userSymbol: 'YouTube',
serviceId: 'youtube',
version: 'v3',
},
{
userSymbol: 'FusionTables',
serviceId: 'fusiontables',
version: 'v2',
},
{
userSymbol: 'Docs',
serviceId: 'docs',
version: 'v1',
},
{
userSymbol: 'Drive',
serviceId: 'drive',
version: 'v2',
},
{
userSymbol: 'AdminLicenseManager',
serviceId: 'licensing',
version: 'v1',
},
{
userSymbol: 'Mirror',
serviceId: 'mirror',
version: 'v1',
},
{
userSymbol: 'AnalyticsReporting',
serviceId: 'analyticsreporting',
version: 'v4',
},
{
userSymbol: 'AdminDirectory',
serviceId: 'admin',
version: 'directory_v1',
},
{
userSymbol: 'AdminReports',
serviceId: 'admin',
version: 'reports_v1',
},
{
userSymbol: 'Gmail',
serviceId: 'gmail',
version: 'v1',
},
{
userSymbol: 'AdSense',
serviceId: 'adsense',
version: 'v1.4',
},
{
userSymbol: 'TagManager',
serviceId: 'tagmanager',
version: 'v2',
},
{
userSymbol: 'AdminGroupsMigration',
serviceId: 'groupsmigration',
version: 'v1',
},
{
userSymbol: 'Slides',
serviceId: 'slides',
version: 'v1',
},
{
userSymbol: 'Sheets',
serviceId: 'sheets',
version: 'v4',
},
{
userSymbol: 'ShoppingContent',
serviceId: 'content',
version: 'v2',
},
{
userSymbol: 'DriveActivity',
serviceId: 'driveactivity',
version: 'v2',
},
{
userSymbol: 'Calendar',
serviceId: 'calendar',
version: 'v3',
},
{
userSymbol: 'AdminReseller',
serviceId: 'reseller',
version: 'v1',
},
{
userSymbol: 'YouTubeAnalytics',
serviceId: 'youtubeAnalytics',
version: 'v2',
},
{
userSymbol: 'People',
serviceId: 'peopleapi',
version: 'v1',
},
{
userSymbol: 'AppsActivity',
serviceId: 'appsactivity',
version: 'v1',
},
{
userSymbol: 'YouTubeContentId',
serviceId: 'youtubePartner',
version: 'v1',
},
{
userSymbol: 'AdminGroupsSettings',
serviceId: 'groupssettings',
version: 'v1',
},
{
userSymbol: 'Analytics',
serviceId: 'analytics',
version: 'v3',
},
];
export const SCRIPT_ID_LENGTH = 57;