@openfn/language-googlesheets 2.3.0 → 2.3.1
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/ast.json +19 -1
- package/package.json +1 -1
- package/types/Adaptor.d.ts +6 -3
package/ast.json
CHANGED
|
@@ -68,6 +68,15 @@
|
|
|
68
68
|
},
|
|
69
69
|
"name": "params.values"
|
|
70
70
|
},
|
|
71
|
+
{
|
|
72
|
+
"title": "param",
|
|
73
|
+
"description": "(Optional) Callback function",
|
|
74
|
+
"type": {
|
|
75
|
+
"type": "NameExpression",
|
|
76
|
+
"name": "function"
|
|
77
|
+
},
|
|
78
|
+
"name": "callback"
|
|
79
|
+
},
|
|
71
80
|
{
|
|
72
81
|
"title": "returns",
|
|
73
82
|
"description": null,
|
|
@@ -122,6 +131,15 @@
|
|
|
122
131
|
},
|
|
123
132
|
"name": "range"
|
|
124
133
|
},
|
|
134
|
+
{
|
|
135
|
+
"title": "param",
|
|
136
|
+
"description": "(Optional) callback function",
|
|
137
|
+
"type": {
|
|
138
|
+
"type": "NameExpression",
|
|
139
|
+
"name": "function"
|
|
140
|
+
},
|
|
141
|
+
"name": "callback"
|
|
142
|
+
},
|
|
125
143
|
{
|
|
126
144
|
"title": "returns",
|
|
127
145
|
"description": "spreadsheet information",
|
|
@@ -132,7 +150,7 @@
|
|
|
132
150
|
}
|
|
133
151
|
]
|
|
134
152
|
},
|
|
135
|
-
"valid":
|
|
153
|
+
"valid": true
|
|
136
154
|
}
|
|
137
155
|
],
|
|
138
156
|
"exports": [],
|
package/package.json
CHANGED
package/types/Adaptor.d.ts
CHANGED
|
@@ -29,13 +29,14 @@ export function execute(...operations: Operations): Operation;
|
|
|
29
29
|
* @param {string} [params.spreadsheetId] The spreadsheet ID.
|
|
30
30
|
* @param {string} [params.range] The range of values to update.
|
|
31
31
|
* @param {array} [params.values] A 2d array of values to update.
|
|
32
|
+
* @param {function} callback - (Optional) Callback function
|
|
32
33
|
* @returns {Operation}
|
|
33
34
|
*/
|
|
34
35
|
export function appendValues(params: {
|
|
35
36
|
spreadsheetId?: string;
|
|
36
37
|
range?: string;
|
|
37
38
|
values?: any[];
|
|
38
|
-
}, callback?:
|
|
39
|
+
}, callback?: Function): Operation;
|
|
39
40
|
/**
|
|
40
41
|
* Batch update values in a Spreadsheet.
|
|
41
42
|
* @example
|
|
@@ -53,6 +54,7 @@ export function appendValues(params: {
|
|
|
53
54
|
* @param {string} [params.range] The range of values to update.
|
|
54
55
|
* @param {string} [params.valueInputOption] (Optional) Value update options. Defaults to 'USER_ENTERED'
|
|
55
56
|
* @param {array} [params.values] A 2d array of values to update.
|
|
57
|
+
* @param {function} callback - (Optional) callback function
|
|
56
58
|
* @returns {Operation} spreadsheet information
|
|
57
59
|
*/
|
|
58
60
|
export function batchUpdateValues(params: {
|
|
@@ -60,7 +62,7 @@ export function batchUpdateValues(params: {
|
|
|
60
62
|
range?: string;
|
|
61
63
|
valueInputOption?: string;
|
|
62
64
|
values?: any[];
|
|
63
|
-
}, callback?:
|
|
65
|
+
}, callback?: Function): Operation;
|
|
64
66
|
/**
|
|
65
67
|
* Gets cell values from a Spreadsheet.
|
|
66
68
|
* @public
|
|
@@ -69,7 +71,8 @@ export function batchUpdateValues(params: {
|
|
|
69
71
|
* @function
|
|
70
72
|
* @param {string} spreadsheetId The spreadsheet ID.
|
|
71
73
|
* @param {string} range The sheet range.
|
|
74
|
+
* @param {function} callback - (Optional) callback function
|
|
72
75
|
* @returns {Operation} spreadsheet information
|
|
73
76
|
*/
|
|
74
|
-
export function getValues(spreadsheetId: string, range: string, callback?:
|
|
77
|
+
export function getValues(spreadsheetId: string, range: string, callback?: Function): Operation;
|
|
75
78
|
export { alterState, combine, dataPath, dataValue, each, field, fields, fn, http, lastReferenceValue, merge, sourceValue } from "@openfn/language-common";
|