Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
^^^^^^ 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