flow-interfaces-google-apps-script
v0.3.0
Published
Flow interface declarations for the Google Apps Script API
Downloads
18
Readme
flow-interfaces-google-apps-script
Usage
NPM or YARN
npm install --save-dev flow-interfaces-google-apps-script
Flow Config
Add the interfaces to your .flowconfig
[libs]
node_modules/flow-interfaces-google-apps-script/definitions
Types
Detailed object types described in the Google Apps Script docs are also available.
These types are prefixed with gas$, e.g. gas$Event.
Example
// @flow
const res: gas$HTTPResponse = UrlFetchApp.fetch("hoge");
const res2: number = res
$ flow
Error: index.js:3
3: const res2: number = res
^^^ gas$HTTPResponse. This type is incompatible with
3: const res2: number = res
^^^^^^ number
Found 1 error
Limited
Not Used MimeType
const gasMimeType: gas$$Base$Enum$MimeType = ((MimeType: any): gas$Base$Enum$MimeType);
const mimeType: gas$Base$MimeType = gasMimeType.ZIP;
TODO
Script Services
- [X] Base
- [X] Cache
- [X] Charts
- [X] Content
- [X] HTML
- [X] JDBC
- [X] Lock
- [X] Mail
- [X] Optimization
- [X] Properties
- [X] Script
- [X] URL Fetch
- [X] Utilities
- [X] XML
G Suite Service
- [X] Calendar
- [X] Contacts
- [X] Document
- [X] Drive
- [X] Forms
- [X] Gmail
- [X] Groups
- [X] Language
- [X] Maps
- [X] Spreadsheet
Advanced Google Services
- [ ] Admin SDK
- [ ] AdSense
- [ ] Analytics
- [ ] Apps Activity
- [ ] BigQuery
- [ ] Calendar
- [ ] Classroom
- [ ] Drive
- [ ] DoubleClick Campaigns
- [ ] Fusion Tables
- [ ] Gmail
- [ ] Google+
- [ ] Google+ Domains
- [ ] Mirror
- [ ] Prediction
- [ ] Sheets
- [ ] Shopping Content
- [ ] Slides
- [ ] Tasks
- [ ] Tag Manager
- [ ] URL Shortener
- [ ] YouTube