@openfn/language-googlesheets 2.1.1 → 2.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Language Google Sheets [![Build Status](https://travis-ci.org/OpenFn/language-googlesheets.svg?branch=master)](https://travis-ci.org/OpenFn/language-googlesheets)
1
+ # Language Google Sheets
2
2
 
3
3
  Language Pack for building expressions and operations to make Google Sheets API
4
4
  calls.
@@ -28,8 +28,6 @@ appendValues({
28
28
  });
29
29
  ````
30
30
 
31
- [Docs](docs/index)
32
-
33
31
  ## Development
34
32
 
35
33
  Clone the [adaptors monorepo](https://github.com/OpenFn/adaptors). Follow the
package/ast.json CHANGED
@@ -18,9 +18,8 @@
18
18
  "description": "appendValues({\n spreadsheetId: '1O-a4_RgPF_p8W3I6b5M9wobA3-CBW8hLClZfUik5sos',\n range: 'Sheet1!A1:E1',\n values: [\n ['From expression', '$15', '2', '3/15/2016'],\n ['Really now!', '$100', '1', '3/20/2016'],\n ],\n})"
19
19
  },
20
20
  {
21
- "title": "constructor",
21
+ "title": "function",
22
22
  "description": null,
23
- "type": null,
24
23
  "name": null
25
24
  },
26
25
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfn/language-googlesheets",
3
- "version": "2.1.1",
3
+ "version": "2.1.3",
4
4
  "description": "A Google Sheets Language Pack for OpenFn",
5
5
  "homepage": "https://docs.openfn.org",
6
6
  "repository": {
@@ -8,8 +8,11 @@
8
8
  "url": "https://github.com/openfn/adaptors.git"
9
9
  },
10
10
  "exports": {
11
- "import": "./dist/index.js",
12
- "require": "./dist/index.cjs"
11
+ ".": {
12
+ "import": "./dist/index.js",
13
+ "require": "./dist/index.cjs"
14
+ },
15
+ "./package.json": "./package.json"
13
16
  },
14
17
  "author": "Open Function Group",
15
18
  "license": "LGPLv3",
@@ -20,7 +23,7 @@
20
23
  "configuration-schema.json"
21
24
  ],
22
25
  "dependencies": {
23
- "@openfn/language-common": "^1.7.4",
26
+ "@openfn/language-common": "^1.7.5",
24
27
  "googleapis": "100.0.0"
25
28
  },
26
29
  "devDependencies": {
@@ -1,4 +1,3 @@
1
- /** @module Adaptor */
2
1
  /**
3
2
  * Execute a sequence of operations.
4
3
  * Wraps `language-common/execute`, and prepends initial state for http.
@@ -7,27 +6,11 @@
7
6
  * create('foo'),
8
7
  * delete('bar')
9
8
  * )(state)
10
- * @constructor
9
+ * @function
11
10
  * @param {Operations} operations - Operations to be performed.
12
11
  * @returns {Operation}
13
12
  */
14
13
  export function execute(...operations: Operations): Operation;
15
- export class execute {
16
- /** @module Adaptor */
17
- /**
18
- * Execute a sequence of operations.
19
- * Wraps `language-common/execute`, and prepends initial state for http.
20
- * @example
21
- * execute(
22
- * create('foo'),
23
- * delete('bar')
24
- * )(state)
25
- * @constructor
26
- * @param {Operations} operations - Operations to be performed.
27
- * @returns {Operation}
28
- */
29
- constructor(...operations: Operations);
30
- }
31
14
  /**
32
15
  * Add an array of rows to the spreadsheet.
33
16
  * https://developers.google.com/sheets/api/samples/writing#append_values
@@ -41,29 +24,9 @@ export class execute {
41
24
  * ['Really now!', '$100', '1', '3/20/2016'],
42
25
  * ],
43
26
  * })
44
- * @constructor
27
+ * @function
45
28
  * @param {Object} params - Data object to add to the spreadsheet.
46
29
  * @returns {Operation}
47
30
  */
48
31
  export function appendValues(params: any): Operation;
49
- export class appendValues {
50
- /**
51
- * Add an array of rows to the spreadsheet.
52
- * https://developers.google.com/sheets/api/samples/writing#append_values
53
- * @public
54
- * @example
55
- * appendValues({
56
- * spreadsheetId: '1O-a4_RgPF_p8W3I6b5M9wobA3-CBW8hLClZfUik5sos',
57
- * range: 'Sheet1!A1:E1',
58
- * values: [
59
- * ['From expression', '$15', '2', '3/15/2016'],
60
- * ['Really now!', '$100', '1', '3/20/2016'],
61
- * ],
62
- * })
63
- * @constructor
64
- * @param {Object} params - Data object to add to the spreadsheet.
65
- * @returns {Operation}
66
- */
67
- constructor(params: any);
68
- }
69
32
  export { alterState, combine, dataPath, dataValue, each, field, fields, fn, http, lastReferenceValue, merge, sourceValue } from "@openfn/language-common";