@openfn/language-googlesheets 2.5.0 → 2.5.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 CHANGED
@@ -89,6 +89,107 @@
89
89
  },
90
90
  "valid": false
91
91
  },
92
+ {
93
+ "name": "batchUpdateValues",
94
+ "params": [
95
+ "params",
96
+ "callback"
97
+ ],
98
+ "docs": {
99
+ "description": "Batch update values in a Spreadsheet.",
100
+ "tags": [
101
+ {
102
+ "title": "example",
103
+ "description": "batchUpdateValues({\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})"
104
+ },
105
+ {
106
+ "title": "function",
107
+ "description": null,
108
+ "name": null
109
+ },
110
+ {
111
+ "title": "public",
112
+ "description": null,
113
+ "type": null
114
+ },
115
+ {
116
+ "title": "param",
117
+ "description": "Data object to add to the spreadsheet.",
118
+ "type": {
119
+ "type": "NameExpression",
120
+ "name": "Object"
121
+ },
122
+ "name": "params"
123
+ },
124
+ {
125
+ "title": "param",
126
+ "description": "The spreadsheet ID.",
127
+ "type": {
128
+ "type": "OptionalType",
129
+ "expression": {
130
+ "type": "NameExpression",
131
+ "name": "string"
132
+ }
133
+ },
134
+ "name": "params.spreadsheetId"
135
+ },
136
+ {
137
+ "title": "param",
138
+ "description": "The range of values to update.",
139
+ "type": {
140
+ "type": "OptionalType",
141
+ "expression": {
142
+ "type": "NameExpression",
143
+ "name": "string"
144
+ }
145
+ },
146
+ "name": "params.range"
147
+ },
148
+ {
149
+ "title": "param",
150
+ "description": "(Optional) Value update options. Defaults to 'USER_ENTERED'",
151
+ "type": {
152
+ "type": "OptionalType",
153
+ "expression": {
154
+ "type": "NameExpression",
155
+ "name": "string"
156
+ }
157
+ },
158
+ "name": "params.valueInputOption"
159
+ },
160
+ {
161
+ "title": "param",
162
+ "description": "A 2d array of values to update.",
163
+ "type": {
164
+ "type": "OptionalType",
165
+ "expression": {
166
+ "type": "NameExpression",
167
+ "name": "array"
168
+ }
169
+ },
170
+ "name": "params.values"
171
+ },
172
+ {
173
+ "title": "param",
174
+ "description": "(Optional) callback function",
175
+ "type": {
176
+ "type": "NameExpression",
177
+ "name": "function"
178
+ },
179
+ "name": "callback"
180
+ },
181
+ {
182
+ "title": "returns",
183
+ "description": "spreadsheet information",
184
+ "type": {
185
+ "type": "NameExpression",
186
+ "name": "Operation"
187
+ }
188
+ }
189
+ ]
190
+ },
191
+ "valid": false
192
+ },
92
193
  {
93
194
  "name": "getValues",
94
195
  "params": [
@@ -168,15 +269,15 @@
168
269
  "description": null,
169
270
  "type": null
170
271
  },
171
- {
172
- "title": "example",
173
- "description": "fn(state => {\n // do some things to state\n return state;\n});"
174
- },
175
272
  {
176
273
  "title": "function",
177
274
  "description": null,
178
275
  "name": null
179
276
  },
277
+ {
278
+ "title": "example",
279
+ "description": "fn(state => {\n // do some things to state\n return state;\n});"
280
+ },
180
281
  {
181
282
  "title": "param",
182
283
  "description": "is the function",
@@ -212,15 +313,15 @@
212
313
  "description": null,
213
314
  "type": null
214
315
  },
215
- {
216
- "title": "example",
217
- "description": "fnIf((state) => state?.data?.name, get(\"https://example.com\"));"
218
- },
219
316
  {
220
317
  "title": "function",
221
318
  "description": null,
222
319
  "name": null
223
320
  },
321
+ {
322
+ "title": "example",
323
+ "description": "fnIf((state) => state?.data?.name, get(\"https://example.com\"));"
324
+ },
224
325
  {
225
326
  "title": "param",
226
327
  "description": "The condition that returns true",
@@ -264,15 +365,15 @@
264
365
  "description": null,
265
366
  "type": null
266
367
  },
267
- {
268
- "title": "example",
269
- "description": "sourceValue('$.key')"
270
- },
271
368
  {
272
369
  "title": "function",
273
370
  "description": null,
274
371
  "name": null
275
372
  },
373
+ {
374
+ "title": "example",
375
+ "description": "sourceValue('$.key')"
376
+ },
276
377
  {
277
378
  "title": "param",
278
379
  "description": "JSONPath referencing a point in `state`.",
@@ -307,15 +408,15 @@
307
408
  "description": null,
308
409
  "type": null
309
410
  },
310
- {
311
- "title": "example",
312
- "description": "dataPath('key')"
313
- },
314
411
  {
315
412
  "title": "function",
316
413
  "description": null,
317
414
  "name": null
318
415
  },
416
+ {
417
+ "title": "example",
418
+ "description": "dataPath('key')"
419
+ },
319
420
  {
320
421
  "title": "param",
321
422
  "description": "JSONPath referencing a point in `data`.",
@@ -350,15 +451,15 @@
350
451
  "description": null,
351
452
  "type": null
352
453
  },
353
- {
354
- "title": "example",
355
- "description": "dataValue('key')"
356
- },
357
454
  {
358
455
  "title": "function",
359
456
  "description": null,
360
457
  "name": null
361
458
  },
459
+ {
460
+ "title": "example",
461
+ "description": "dataValue('key')"
462
+ },
362
463
  {
363
464
  "title": "param",
364
465
  "description": "JSONPath referencing a point in `data`.",
@@ -393,15 +494,15 @@
393
494
  "description": null,
394
495
  "type": null
395
496
  },
396
- {
397
- "title": "example",
398
- "description": "lastReferenceValue('key')"
399
- },
400
497
  {
401
498
  "title": "function",
402
499
  "description": null,
403
500
  "name": null
404
501
  },
502
+ {
503
+ "title": "example",
504
+ "description": "lastReferenceValue('key')"
505
+ },
405
506
  {
406
507
  "title": "param",
407
508
  "description": "JSONPath referencing a point in `references`.",
@@ -437,15 +538,15 @@
437
538
  "description": null,
438
539
  "type": null
439
540
  },
440
- {
441
- "title": "example",
442
- "description": "each(\"$.[*]\",\n create(\"SObject\",\n field(\"FirstName\", sourceValue(\"$.firstName\"))\n )\n)"
443
- },
444
541
  {
445
542
  "title": "function",
446
543
  "description": null,
447
544
  "name": null
448
545
  },
546
+ {
547
+ "title": "example",
548
+ "description": "each(\"$.[*]\",\n create(\"SObject\",\n field(\"FirstName\", sourceValue(\"$.firstName\"))\n )\n)"
549
+ },
449
550
  {
450
551
  "title": "param",
451
552
  "description": "JSONPath referencing a point in `state`.",
@@ -489,15 +590,15 @@
489
590
  "description": null,
490
591
  "type": null
491
592
  },
492
- {
493
- "title": "example",
494
- "description": "combine(\n create('foo'),\n delete('bar')\n)"
495
- },
496
593
  {
497
594
  "title": "function",
498
595
  "description": null,
499
596
  "name": null
500
597
  },
598
+ {
599
+ "title": "example",
600
+ "description": "combine(\n create('foo'),\n delete('bar')\n)"
601
+ },
501
602
  {
502
603
  "title": "param",
503
604
  "description": "Operations to be performed.",
@@ -533,15 +634,15 @@
533
634
  "description": null,
534
635
  "type": null
535
636
  },
536
- {
537
- "title": "example",
538
- "description": "field('destination_field_name__c', 'value')"
539
- },
540
637
  {
541
638
  "title": "function",
542
639
  "description": null,
543
640
  "name": null
544
641
  },
642
+ {
643
+ "title": "example",
644
+ "description": "field('destination_field_name__c', 'value')"
645
+ },
545
646
  {
546
647
  "title": "param",
547
648
  "description": "Name of the field",
@@ -585,15 +686,15 @@
585
686
  "description": null,
586
687
  "type": null
587
688
  },
588
- {
589
- "title": "example",
590
- "description": "fields(list_of_fields)"
591
- },
592
689
  {
593
690
  "title": "function",
594
691
  "description": null,
595
692
  "name": null
596
693
  },
694
+ {
695
+ "title": "example",
696
+ "description": "fields(list_of_fields)"
697
+ },
597
698
  {
598
699
  "title": "param",
599
700
  "description": "a list of fields",
@@ -638,6 +739,11 @@
638
739
  "description": null,
639
740
  "name": null
640
741
  },
742
+ {
743
+ "title": "public",
744
+ "description": null,
745
+ "type": null
746
+ },
641
747
  {
642
748
  "title": "param",
643
749
  "description": null,
@@ -682,6 +788,11 @@
682
788
  "description": null,
683
789
  "type": null
684
790
  },
791
+ {
792
+ "title": "function",
793
+ "description": null,
794
+ "name": null
795
+ },
685
796
  {
686
797
  "title": "example",
687
798
  "description": "cursor($.cursor, { defaultValue: 'today' })",
@@ -692,11 +803,6 @@
692
803
  "description": "cursor(22)",
693
804
  "caption": "Use a pagination cursor"
694
805
  },
695
- {
696
- "title": "function",
697
- "description": null,
698
- "name": null
699
- },
700
806
  {
701
807
  "title": "param",
702
808
  "description": "the cursor value. Usually an ISO date, natural language date, or page number",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfn/language-googlesheets",
3
- "version": "2.5.0",
3
+ "version": "2.5.1",
4
4
  "description": "A Google Sheets Language Pack for OpenFn",
5
5
  "homepage": "https://docs.openfn.org",
6
6
  "repository": {
@@ -23,7 +23,7 @@
23
23
  "configuration-schema.json"
24
24
  ],
25
25
  "dependencies": {
26
- "@openfn/language-common": "^1.14.0",
26
+ "@openfn/language-common": "^1.15.1",
27
27
  "googleapis": "100.0.0"
28
28
  },
29
29
  "devDependencies": {
@@ -49,6 +49,7 @@ export function appendValues(params: {
49
49
  * ],
50
50
  * })
51
51
  * @function
52
+ * @public
52
53
  * @param {Object} params - Data object to add to the spreadsheet.
53
54
  * @param {string} [params.spreadsheetId] The spreadsheet ID.
54
55
  * @param {string} [params.range] The range of values to update.