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