Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eiel/flow-interfaces-google-apps-script
https://github.com/eiel/flow-interfaces-google-apps-script
flow gas google-app-script
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/eiel/flow-interfaces-google-apps-script
- Owner: eiel
- License: mit
- Created: 2017-09-01T02:42:28.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-05-22T06:37:18.000Z (over 6 years ago)
- Last Synced: 2024-11-16T16:48:59.483Z (about 2 months ago)
- Topics: flow, gas, google-app-script
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/flow-interfaces-google-apps-script
- Size: 109 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# flow-interfaces-google-apps-script
[![npm](https://img.shields.io/npm/v/flow-interfaces-google-apps-script.svg)](https://www.npmjs.com/package/flow-interfaces-google-apps-script)
[![npm](https://img.shields.io/npm/dt/flow-interfaces-google-apps-script.svg)](https://www.npmjs.com/package/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](https://developers.google.com/apps-script/reference/calendar/) 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
^^^^^^ numberFound 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