@openfn/language-msupply 1.0.0

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 ADDED
@@ -0,0 +1,953 @@
1
+ {
2
+ "operations": [
3
+ {
4
+ "name": "getItemsWithStats",
5
+ "params": [
6
+ "variables"
7
+ ],
8
+ "docs": {
9
+ "description": "Get the list of items in the catalogue",
10
+ "tags": [
11
+ {
12
+ "title": "public",
13
+ "description": null,
14
+ "type": null
15
+ },
16
+ {
17
+ "title": "function",
18
+ "description": null,
19
+ "name": null
20
+ },
21
+ {
22
+ "title": "example",
23
+ "description": "getItemsWithStats({\n\"key\": \"name\",\n\"storeId\": \"DFE0F611AD84A0419D36F8FEFAD1894C\",\n})",
24
+ "caption": "Get items in the catalogue"
25
+ },
26
+ {
27
+ "title": "param",
28
+ "description": "GraphQL query variables",
29
+ "type": {
30
+ "type": "NameExpression",
31
+ "name": "GetItemsVariables"
32
+ },
33
+ "name": "variables"
34
+ },
35
+ {
36
+ "title": "returns",
37
+ "description": null,
38
+ "type": {
39
+ "type": "NameExpression",
40
+ "name": "Operation"
41
+ }
42
+ },
43
+ {
44
+ "title": "state",
45
+ "description": "{HttpState}"
46
+ }
47
+ ]
48
+ },
49
+ "valid": true
50
+ },
51
+ {
52
+ "name": "insertOutboundShipment",
53
+ "params": [
54
+ "variables"
55
+ ],
56
+ "docs": {
57
+ "description": "Create an outbound shipment.",
58
+ "tags": [
59
+ {
60
+ "title": "public",
61
+ "description": null,
62
+ "type": null
63
+ },
64
+ {
65
+ "title": "function",
66
+ "description": null,
67
+ "name": null
68
+ },
69
+ {
70
+ "title": "example",
71
+ "description": "insertOutboundShipment({\n\"otherPartyId\": \"861102F624354F15ABEB48DC207A4C2D\",\n\"storeId\": \"DFE0F611AD84A0419D36F8FEFAD1894C\"\n})",
72
+ "caption": "Create an outbound shipment"
73
+ },
74
+ {
75
+ "title": "param",
76
+ "description": "GraphQL query variables",
77
+ "type": {
78
+ "type": "NameExpression",
79
+ "name": "InsertOutboundShipmentvariables"
80
+ },
81
+ "name": "variables"
82
+ },
83
+ {
84
+ "title": "returns",
85
+ "description": null,
86
+ "type": {
87
+ "type": "NameExpression",
88
+ "name": "Operation"
89
+ }
90
+ },
91
+ {
92
+ "title": "state",
93
+ "description": "{HttpState}"
94
+ }
95
+ ]
96
+ },
97
+ "valid": true
98
+ },
99
+ {
100
+ "name": "upsertOutboundShipment",
101
+ "params": [
102
+ "variables"
103
+ ],
104
+ "docs": {
105
+ "description": "Update an outbound shipment",
106
+ "tags": [
107
+ {
108
+ "title": "public",
109
+ "description": null,
110
+ "type": null
111
+ },
112
+ {
113
+ "title": "function",
114
+ "description": null,
115
+ "name": null
116
+ },
117
+ {
118
+ "title": "example",
119
+ "description": "upsertOutboundShipment({\n \"storeId\": \"DFE0F611AD84A0419D36F8FEFAD1894C\",\n \"input\": {\n \"updateOutboundShipments\": [\n {\n \"id\": \"01961fce-9ef6-7198-93c1-866395094e48\",\n \"status\": \"PICKED\"\n }\n ]\n }\n})",
120
+ "caption": "Update outbound shipment status to 'PICKED'"
121
+ },
122
+ {
123
+ "title": "param",
124
+ "description": "GraphQL query variables",
125
+ "type": {
126
+ "type": "NameExpression",
127
+ "name": "UpsertOutboundShipmentvariables"
128
+ },
129
+ "name": "variables"
130
+ },
131
+ {
132
+ "title": "returns",
133
+ "description": null,
134
+ "type": {
135
+ "type": "NameExpression",
136
+ "name": "Operation"
137
+ }
138
+ },
139
+ {
140
+ "title": "state",
141
+ "description": "{HttpState}"
142
+ }
143
+ ]
144
+ },
145
+ "valid": true
146
+ },
147
+ {
148
+ "name": "query",
149
+ "params": [
150
+ "query",
151
+ "variables"
152
+ ],
153
+ "docs": {
154
+ "description": "Make a generic GraphQL request",
155
+ "tags": [
156
+ {
157
+ "title": "public",
158
+ "description": null,
159
+ "type": null
160
+ },
161
+ {
162
+ "title": "function",
163
+ "description": null,
164
+ "name": null
165
+ },
166
+ {
167
+ "title": "example",
168
+ "description": "query(`\nquery isCentralServer {\nisCentralServer\n}`\n)"
169
+ },
170
+ {
171
+ "title": "param",
172
+ "description": "GraphQl query string",
173
+ "type": {
174
+ "type": "NameExpression",
175
+ "name": "string"
176
+ },
177
+ "name": "query"
178
+ },
179
+ {
180
+ "title": "param",
181
+ "description": "GraphQl query variables",
182
+ "type": {
183
+ "type": "NameExpression",
184
+ "name": "Object"
185
+ },
186
+ "name": "variables"
187
+ },
188
+ {
189
+ "title": "returns",
190
+ "description": null,
191
+ "type": {
192
+ "type": "NameExpression",
193
+ "name": "Operation"
194
+ }
195
+ },
196
+ {
197
+ "title": "state",
198
+ "description": "{HttpState}"
199
+ }
200
+ ]
201
+ },
202
+ "valid": true
203
+ }
204
+ ],
205
+ "exports": [],
206
+ "common": [
207
+ {
208
+ "name": "fn",
209
+ "params": [
210
+ "func"
211
+ ],
212
+ "docs": {
213
+ "description": "Creates a custom step (or operation) for more flexible job writing.",
214
+ "tags": [
215
+ {
216
+ "title": "public",
217
+ "description": null,
218
+ "type": null
219
+ },
220
+ {
221
+ "title": "function",
222
+ "description": null,
223
+ "name": null
224
+ },
225
+ {
226
+ "title": "example",
227
+ "description": "fn(state => {\n // do some things to state\n return state;\n});"
228
+ },
229
+ {
230
+ "title": "param",
231
+ "description": "is the function",
232
+ "type": {
233
+ "type": "NameExpression",
234
+ "name": "Function"
235
+ },
236
+ "name": "func"
237
+ },
238
+ {
239
+ "title": "returns",
240
+ "description": null,
241
+ "type": {
242
+ "type": "NameExpression",
243
+ "name": "Operation"
244
+ }
245
+ }
246
+ ]
247
+ },
248
+ "valid": true
249
+ },
250
+ {
251
+ "name": "fnIf",
252
+ "params": [
253
+ "condition",
254
+ "operation"
255
+ ],
256
+ "docs": {
257
+ "description": "A custom operation that will only execute the function if the condition returns true",
258
+ "tags": [
259
+ {
260
+ "title": "public",
261
+ "description": null,
262
+ "type": null
263
+ },
264
+ {
265
+ "title": "function",
266
+ "description": null,
267
+ "name": null
268
+ },
269
+ {
270
+ "title": "example",
271
+ "description": "fnIf((state) => state?.data?.name, get(\"https://example.com\"));"
272
+ },
273
+ {
274
+ "title": "param",
275
+ "description": "The condition that returns true",
276
+ "type": {
277
+ "type": "NameExpression",
278
+ "name": "Boolean"
279
+ },
280
+ "name": "condition"
281
+ },
282
+ {
283
+ "title": "param",
284
+ "description": "The operation needed to be executed.",
285
+ "type": {
286
+ "type": "NameExpression",
287
+ "name": "Operation"
288
+ },
289
+ "name": "operation"
290
+ },
291
+ {
292
+ "title": "returns",
293
+ "description": null,
294
+ "type": {
295
+ "type": "NameExpression",
296
+ "name": "Operation"
297
+ }
298
+ }
299
+ ]
300
+ },
301
+ "valid": true
302
+ },
303
+ {
304
+ "name": "sourceValue",
305
+ "params": [
306
+ "path"
307
+ ],
308
+ "docs": {
309
+ "description": "Picks out a single value from source data.\nIf a JSONPath returns more than one value for the reference, the first\nitem will be returned.",
310
+ "tags": [
311
+ {
312
+ "title": "public",
313
+ "description": null,
314
+ "type": null
315
+ },
316
+ {
317
+ "title": "function",
318
+ "description": null,
319
+ "name": null
320
+ },
321
+ {
322
+ "title": "example",
323
+ "description": "sourceValue('$.key')"
324
+ },
325
+ {
326
+ "title": "param",
327
+ "description": "JSONPath referencing a point in `state`.",
328
+ "type": {
329
+ "type": "NameExpression",
330
+ "name": "String"
331
+ },
332
+ "name": "path"
333
+ },
334
+ {
335
+ "title": "returns",
336
+ "description": null,
337
+ "type": {
338
+ "type": "NameExpression",
339
+ "name": "Operation"
340
+ }
341
+ }
342
+ ]
343
+ },
344
+ "valid": true
345
+ },
346
+ {
347
+ "name": "dataPath",
348
+ "params": [
349
+ "path"
350
+ ],
351
+ "docs": {
352
+ "description": "Ensures a path points at the data.",
353
+ "tags": [
354
+ {
355
+ "title": "public",
356
+ "description": null,
357
+ "type": null
358
+ },
359
+ {
360
+ "title": "function",
361
+ "description": null,
362
+ "name": null
363
+ },
364
+ {
365
+ "title": "example",
366
+ "description": "dataPath('key')"
367
+ },
368
+ {
369
+ "title": "param",
370
+ "description": "JSONPath referencing a point in `data`.",
371
+ "type": {
372
+ "type": "NameExpression",
373
+ "name": "string"
374
+ },
375
+ "name": "path"
376
+ },
377
+ {
378
+ "title": "returns",
379
+ "description": null,
380
+ "type": {
381
+ "type": "NameExpression",
382
+ "name": "string"
383
+ }
384
+ }
385
+ ]
386
+ },
387
+ "valid": true
388
+ },
389
+ {
390
+ "name": "dataValue",
391
+ "params": [
392
+ "path"
393
+ ],
394
+ "docs": {
395
+ "description": "Picks out a single value from the source data object—usually `state.data`.\nIf a JSONPath returns more than one value for the reference, the first\nitem will be returned.",
396
+ "tags": [
397
+ {
398
+ "title": "public",
399
+ "description": null,
400
+ "type": null
401
+ },
402
+ {
403
+ "title": "function",
404
+ "description": null,
405
+ "name": null
406
+ },
407
+ {
408
+ "title": "example",
409
+ "description": "dataValue('key')"
410
+ },
411
+ {
412
+ "title": "param",
413
+ "description": "JSONPath referencing a point in `data`.",
414
+ "type": {
415
+ "type": "NameExpression",
416
+ "name": "String"
417
+ },
418
+ "name": "path"
419
+ },
420
+ {
421
+ "title": "returns",
422
+ "description": null,
423
+ "type": {
424
+ "type": "NameExpression",
425
+ "name": "Operation"
426
+ }
427
+ }
428
+ ]
429
+ },
430
+ "valid": true
431
+ },
432
+ {
433
+ "name": "lastReferenceValue",
434
+ "params": [
435
+ "path"
436
+ ],
437
+ "docs": {
438
+ "description": "Picks out the last reference value from source data.",
439
+ "tags": [
440
+ {
441
+ "title": "public",
442
+ "description": null,
443
+ "type": null
444
+ },
445
+ {
446
+ "title": "function",
447
+ "description": null,
448
+ "name": null
449
+ },
450
+ {
451
+ "title": "example",
452
+ "description": "lastReferenceValue('key')"
453
+ },
454
+ {
455
+ "title": "param",
456
+ "description": "JSONPath referencing a point in `references`.",
457
+ "type": {
458
+ "type": "NameExpression",
459
+ "name": "String"
460
+ },
461
+ "name": "path"
462
+ },
463
+ {
464
+ "title": "returns",
465
+ "description": null,
466
+ "type": {
467
+ "type": "NameExpression",
468
+ "name": "Operation"
469
+ }
470
+ }
471
+ ]
472
+ },
473
+ "valid": true
474
+ },
475
+ {
476
+ "name": "each",
477
+ "params": [
478
+ "dataSource",
479
+ "operation"
480
+ ],
481
+ "docs": {
482
+ "description": "Iterates over an array of items and invokes an operation upon each one, where the state\nobject is _scoped_ so that state.data is the item under iteration.\nThe rest of the state object is untouched and can be referenced as usual.\nYou can pass an array directly, or use lazy state or a JSONPath string to\nreference a slice of state.",
483
+ "tags": [
484
+ {
485
+ "title": "public",
486
+ "description": null,
487
+ "type": null
488
+ },
489
+ {
490
+ "title": "function",
491
+ "description": null,
492
+ "name": null
493
+ },
494
+ {
495
+ "title": "example",
496
+ "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);",
497
+ "caption": "Using lazy state ($) to iterate over items in state.data and pass each into an \"insert\" operation"
498
+ },
499
+ {
500
+ "title": "example",
501
+ "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n ...state.data\n }))\n);",
502
+ "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation"
503
+ },
504
+ {
505
+ "title": "example",
506
+ "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);",
507
+ "caption": "Using JSON path to iterate over items in state.data and pass each one into an \"insert\" operation"
508
+ },
509
+ {
510
+ "title": "param",
511
+ "description": "JSONPath referencing a point in `state`.",
512
+ "type": {
513
+ "type": "NameExpression",
514
+ "name": "DataSource"
515
+ },
516
+ "name": "dataSource"
517
+ },
518
+ {
519
+ "title": "param",
520
+ "description": "The operation needed to be repeated.",
521
+ "type": {
522
+ "type": "NameExpression",
523
+ "name": "Operation"
524
+ },
525
+ "name": "operation"
526
+ },
527
+ {
528
+ "title": "returns",
529
+ "description": null,
530
+ "type": {
531
+ "type": "NameExpression",
532
+ "name": "Operation"
533
+ }
534
+ }
535
+ ]
536
+ },
537
+ "valid": true
538
+ },
539
+ {
540
+ "name": "combine",
541
+ "params": [
542
+ "operations"
543
+ ],
544
+ "docs": {
545
+ "description": "Combines two operations into one",
546
+ "tags": [
547
+ {
548
+ "title": "public",
549
+ "description": null,
550
+ "type": null
551
+ },
552
+ {
553
+ "title": "function",
554
+ "description": null,
555
+ "name": null
556
+ },
557
+ {
558
+ "title": "example",
559
+ "description": "combine(\n create('foo'),\n delete('bar')\n)"
560
+ },
561
+ {
562
+ "title": "param",
563
+ "description": "Operations to be performed.",
564
+ "type": {
565
+ "type": "NameExpression",
566
+ "name": "Operations"
567
+ },
568
+ "name": "operations"
569
+ },
570
+ {
571
+ "title": "returns",
572
+ "description": null,
573
+ "type": {
574
+ "type": "NameExpression",
575
+ "name": "Operation"
576
+ }
577
+ }
578
+ ]
579
+ },
580
+ "valid": true
581
+ },
582
+ {
583
+ "name": "field",
584
+ "params": [
585
+ "key",
586
+ "value"
587
+ ],
588
+ "docs": {
589
+ "description": "Returns a key, value pair in an array.",
590
+ "tags": [
591
+ {
592
+ "title": "public",
593
+ "description": null,
594
+ "type": null
595
+ },
596
+ {
597
+ "title": "function",
598
+ "description": null,
599
+ "name": null
600
+ },
601
+ {
602
+ "title": "example",
603
+ "description": "field('destination_field_name__c', 'value')"
604
+ },
605
+ {
606
+ "title": "param",
607
+ "description": "Name of the field",
608
+ "type": {
609
+ "type": "NameExpression",
610
+ "name": "string"
611
+ },
612
+ "name": "key"
613
+ },
614
+ {
615
+ "title": "param",
616
+ "description": "The value itself or a sourceable operation.",
617
+ "type": {
618
+ "type": "NameExpression",
619
+ "name": "Value"
620
+ },
621
+ "name": "value"
622
+ },
623
+ {
624
+ "title": "returns",
625
+ "description": null,
626
+ "type": {
627
+ "type": "NameExpression",
628
+ "name": "Field"
629
+ }
630
+ }
631
+ ]
632
+ },
633
+ "valid": true
634
+ },
635
+ {
636
+ "name": "fields",
637
+ "params": [
638
+ "fields"
639
+ ],
640
+ "docs": {
641
+ "description": "Zips key value pairs into an object.",
642
+ "tags": [
643
+ {
644
+ "title": "public",
645
+ "description": null,
646
+ "type": null
647
+ },
648
+ {
649
+ "title": "function",
650
+ "description": null,
651
+ "name": null
652
+ },
653
+ {
654
+ "title": "example",
655
+ "description": "fields(list_of_fields)"
656
+ },
657
+ {
658
+ "title": "param",
659
+ "description": "a list of fields",
660
+ "type": {
661
+ "type": "NameExpression",
662
+ "name": "Fields"
663
+ },
664
+ "name": "fields"
665
+ },
666
+ {
667
+ "title": "returns",
668
+ "description": null,
669
+ "type": {
670
+ "type": "NameExpression",
671
+ "name": "Object"
672
+ }
673
+ }
674
+ ]
675
+ },
676
+ "valid": true
677
+ },
678
+ {
679
+ "name": "merge",
680
+ "params": [
681
+ "dataSource",
682
+ "fields"
683
+ ],
684
+ "docs": {
685
+ "description": "Merges fields into each item in an array.",
686
+ "tags": [
687
+ {
688
+ "title": "public",
689
+ "description": null,
690
+ "type": null
691
+ },
692
+ {
693
+ "title": "example",
694
+ "description": "merge(\n \"$.books[*]\",\n fields(\n field( \"publisher\", sourceValue(\"$.publisher\") )\n )\n)"
695
+ },
696
+ {
697
+ "title": "function",
698
+ "description": null,
699
+ "name": null
700
+ },
701
+ {
702
+ "title": "public",
703
+ "description": null,
704
+ "type": null
705
+ },
706
+ {
707
+ "title": "param",
708
+ "description": null,
709
+ "type": {
710
+ "type": "NameExpression",
711
+ "name": "DataSource"
712
+ },
713
+ "name": "dataSource"
714
+ },
715
+ {
716
+ "title": "param",
717
+ "description": "Group of fields to merge in.",
718
+ "type": {
719
+ "type": "NameExpression",
720
+ "name": "Object"
721
+ },
722
+ "name": "fields"
723
+ },
724
+ {
725
+ "title": "returns",
726
+ "description": null,
727
+ "type": {
728
+ "type": "NameExpression",
729
+ "name": "DataSource"
730
+ }
731
+ }
732
+ ]
733
+ },
734
+ "valid": true
735
+ },
736
+ {
737
+ "name": "group",
738
+ "params": [
739
+ "arrayOfObjects",
740
+ "keyPath",
741
+ "callback"
742
+ ],
743
+ "docs": {
744
+ "description": "Groups an array of objects by a specified key path.",
745
+ "tags": [
746
+ {
747
+ "title": "public",
748
+ "description": null,
749
+ "type": null
750
+ },
751
+ {
752
+ "title": "example",
753
+ "description": "const users = [\n { name: 'Alice', age: 25, city: 'New York' },\n { name: 'Bob', age: 30, city: 'San Francisco' },\n { name: 'Charlie', age: 25, city: 'New York' },\n { name: 'David', age: 30, city: 'San Francisco' }\n];\ngroup(users, 'city');\n// state is { data: { 'New York': [/Alice, Charlie/], 'San Francisco': [ /Bob, David / ] }"
754
+ },
755
+ {
756
+ "title": "function",
757
+ "description": null,
758
+ "name": null
759
+ },
760
+ {
761
+ "title": "public",
762
+ "description": null,
763
+ "type": null
764
+ },
765
+ {
766
+ "title": "param",
767
+ "description": "The array of objects to be grouped.",
768
+ "type": {
769
+ "type": "TypeApplication",
770
+ "expression": {
771
+ "type": "NameExpression",
772
+ "name": "Array"
773
+ },
774
+ "applications": [
775
+ {
776
+ "type": "NameExpression",
777
+ "name": "Object"
778
+ }
779
+ ]
780
+ },
781
+ "name": "arrayOfObjects"
782
+ },
783
+ {
784
+ "title": "param",
785
+ "description": "The key path to group by.",
786
+ "type": {
787
+ "type": "NameExpression",
788
+ "name": "string"
789
+ },
790
+ "name": "keyPath"
791
+ },
792
+ {
793
+ "title": "param",
794
+ "description": "(Optional) Callback function",
795
+ "type": {
796
+ "type": "NameExpression",
797
+ "name": "function"
798
+ },
799
+ "name": "callback"
800
+ },
801
+ {
802
+ "title": "returns",
803
+ "description": null,
804
+ "type": {
805
+ "type": "NameExpression",
806
+ "name": "Operation"
807
+ }
808
+ }
809
+ ]
810
+ },
811
+ "valid": true
812
+ },
813
+ {
814
+ "name": "scrubEmojis",
815
+ "params": [
816
+ "text",
817
+ "replacementChars"
818
+ ],
819
+ "docs": {
820
+ "description": "Replaces emojis in a string.",
821
+ "tags": [
822
+ {
823
+ "title": "public",
824
+ "description": null,
825
+ "type": null
826
+ },
827
+ {
828
+ "title": "function",
829
+ "description": null,
830
+ "name": null
831
+ },
832
+ {
833
+ "title": "example",
834
+ "description": "scrubEmojis('Dove🕊️⭐ 29')"
835
+ },
836
+ {
837
+ "title": "param",
838
+ "description": "String that needs to be cleaned",
839
+ "type": {
840
+ "type": "NameExpression",
841
+ "name": "string"
842
+ },
843
+ "name": "text"
844
+ },
845
+ {
846
+ "title": "param",
847
+ "description": "Characters that replace the emojis",
848
+ "type": {
849
+ "type": "NameExpression",
850
+ "name": "string"
851
+ },
852
+ "name": "replacementChars"
853
+ },
854
+ {
855
+ "title": "returns",
856
+ "description": null,
857
+ "type": {
858
+ "type": "NameExpression",
859
+ "name": "string"
860
+ }
861
+ }
862
+ ]
863
+ },
864
+ "valid": true
865
+ },
866
+ {
867
+ "name": "cursor",
868
+ "params": [
869
+ "value",
870
+ "options"
871
+ ],
872
+ "docs": {
873
+ "description": "Sets a cursor property on state.\nSupports natural language dates like `now`, `today`, `yesterday`, `n hours ago`, `n days ago`, and `start`,\nwhich will be converted relative to the environment (ie, the Lightning or CLI locale). Custom timezones\nare not yet supported.\nYou can provide a formatter to customise the final cursor value, which is useful for normalising\ndifferent inputs. The custom formatter runs after natural language date conversion.\nSee the usage guide at {@link https://docs.openfn.org/documentation/jobs/job-writing-guide#using-cursors}",
874
+ "tags": [
875
+ {
876
+ "title": "public",
877
+ "description": null,
878
+ "type": null
879
+ },
880
+ {
881
+ "title": "function",
882
+ "description": null,
883
+ "name": null
884
+ },
885
+ {
886
+ "title": "example",
887
+ "description": "cursor($.cursor, { defaultValue: 'today' })",
888
+ "caption": "Use a cursor from state if present, or else use the default value"
889
+ },
890
+ {
891
+ "title": "example",
892
+ "description": "cursor(22)",
893
+ "caption": "Use a pagination cursor"
894
+ },
895
+ {
896
+ "title": "param",
897
+ "description": "the cursor value. Usually an ISO date, natural language date, or page number",
898
+ "type": {
899
+ "type": "NameExpression",
900
+ "name": "any"
901
+ },
902
+ "name": "value"
903
+ },
904
+ {
905
+ "title": "param",
906
+ "description": "options to control the cursor.",
907
+ "type": {
908
+ "type": "NameExpression",
909
+ "name": "object"
910
+ },
911
+ "name": "options"
912
+ },
913
+ {
914
+ "title": "param",
915
+ "description": "set the cursor key. Will persist through the whole run.",
916
+ "type": {
917
+ "type": "NameExpression",
918
+ "name": "string"
919
+ },
920
+ "name": "options.key"
921
+ },
922
+ {
923
+ "title": "param",
924
+ "description": "the value to use if value is falsy",
925
+ "type": {
926
+ "type": "NameExpression",
927
+ "name": "any"
928
+ },
929
+ "name": "options.defaultValue"
930
+ },
931
+ {
932
+ "title": "param",
933
+ "description": "custom formatter for the final cursor value",
934
+ "type": {
935
+ "type": "NameExpression",
936
+ "name": "Function"
937
+ },
938
+ "name": "options.format"
939
+ },
940
+ {
941
+ "title": "returns",
942
+ "description": null,
943
+ "type": {
944
+ "type": "NameExpression",
945
+ "name": "Operation"
946
+ }
947
+ }
948
+ ]
949
+ },
950
+ "valid": false
951
+ }
952
+ ]
953
+ }