-
-
Notifications
You must be signed in to change notification settings - Fork 17
/
db.json
1166 lines (1166 loc) · 56 KB
/
db.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
[
{
"id": "restapirouter",
"group": "REST API",
"name": "API Router",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/restapirouter.html",
"author": "Total.js",
"icon": "ti ti-crosshairs",
"color": "",
"version": "3",
"kind": "action",
"readme": "This component implements the [Total.js API Router](https://docs.totaljs.com/total4/cc674001rr51c/#total-js-routing) that allows you to provide only one endpoint (route) by adding multiple endpoints divided by keys. The component expects REST Route message or data in the form:\n\n```js\n{\n\t\"schema\": \"schema_name/{param_1}/{param_2}?query=arguments\",\n\t\"data\": {} // optional, request payload\n}\n```\n\n< __Good to know:__<br>Output data will be the same `data`, but extendend by adding new properties declared below.\n\n__Extended output data:__\n\n- `id {String}` first value from dynamic value\n- `params {Object}` dynamic values\n- `query {Object}` query arguments\n- `user {Object}` optional, inherited from the controller\n- `session {Object}` optional, inherited from the controller\n- `ip {String}` optional, inherited from the controller\n\nIf the controller is stored in the `message.refs.controller` property, then its properties like `controller.id`, `controller.params` and `controller.query` will be extendend by values from parsed schema."
},
{
"id": "chatgpt",
"group": "Services",
"name": "ChatGPT",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/chatgpt.html",
"author": "Total.js",
"icon": "ti ti-robot-alt",
"color": "",
"version": "2",
"kind": "",
"readme": "This component can talk to ChatGPT.\n\n## Input\n\nInput will depend on selected model\n\n- __CPT 3.5 Turbo__\n```js\n\n// Object\n{\nmessages : [{ role: 'user', content: 'Text' }]\n}\n\n// or\n\n\n// Array\n[{ role: 'assistant', content: 'Text' }]\n```\n\n- __Whisper__\n```js\n\n// Object\n{\npath : 'path-to-file'\n}\n\n// or\n\n\n// String\n'path-to-file'\n```\n\n- __Other__\n```js\n\n// Object\n{\ntext : 'your question'\n}\n\n// or\n\n\n// String\n'your question'\n```\n\n\n## Output\n\nOutput also depends on selected model\n- __CPT 3.5 Turbo__\n```js\n'Response from assistant'\n```\n\n- __Whisper__\n```js\n\n// Object\n{\ntext : 'transcipted text'\n}\n```\n- __Other__\n```js\n\n// String\n'your question'\n```"
},
{
"id": "cheerio",
"group": "HTML",
"name": "Cheerio",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/cheerio.html",
"author": "Total.js",
"icon": "ti ti-code",
"color": "",
"version": "1",
"kind": "",
"readme": "Uses [Cheerio](https://cheerio.js.org/index.html)\nPlease refer to the [documentation](https://cheerio.js.org/classes/Cheerio.html) for available functions.\n## Input\n```js\n<any>\n```\n\n## Output\n```js\n{\nresult: <the data returned from the code>,\ninput: <incomming data>\n}\n```\n\n## Example code\n```js\n// instance : component instance\n// $: cheerio instance\n// html: html string\n\nvar txt = [];\n$('ul > li').each(function (i, elem) {\ntxt.push($(this).text());\n});\nreturn txt;\n```"
},
{
"id": "code",
"group": "Common",
"name": "Code",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/code.html",
"author": "Total.js",
"icon": "ti ti-code",
"color": "",
"version": "4",
"kind": "",
"readme": "This component executes a custom JavaScript code as it is.\n\nTo send data to the default output use `send(somedata);`\nTo send data to specific output when number of outputs > 1 use `$.send('outputX', somedata)` where `X` is output index, see example bellow:\n- first output--> `send(somedata)` or `$.send('output', somedata)`\n- second output --> `$.send('output2', somedata)`\n- ...\n- 5th output --> `$.send('output5', somedata)`\n- etc."
},
{
"id": "comment",
"group": "Common",
"name": "Comment",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/comment.html",
"author": "Total.js",
"icon": "ti ti-comment",
"color": "",
"version": "1",
"kind": "",
"readme": "This component renders a small markdown comment inside the body."
},
{
"id": "confirmation-code",
"group": "Security",
"name": "Confirmation code",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/confirmation-code.html",
"author": "Total.js",
"icon": "ti ti-barcode",
"color": "",
"version": "1",
"kind": "",
"readme": "This component can help you with generating confirmation codes. Keep data structure for inputs according to the documentation below.\n\n### `create` input/output\n\n__Create input__:\n\n- `id {String}` identifier (email, phone number, identifier, etc.)\n- `param {String}` a custom parameter\n\n__Create output__:\n\n- `success {Boolean}` determines if the code is verified or not accroding to its identifier\n- `value {String}` a pin/code/token\n- `param {String}` a custom parameter (it sends only if the value is true)\n- `error {String}` (optional) a simple error identifier, it can contain:\n\t- `locked` the identifier is locked by the previous call\n\n### `verify` input/output\n\n__Verify input__:\n\n- `id {String}` identifier (email, phone number, identifier, etc.)\n- `value {String}` a pin/code/token\n\n__Verify output__:\n\n- `success {Boolean}` determines if the code is verified or not accroding to its identifier\n- `slots {Number}` free slots/attempts\n- `error {String}` (optional) a simple error identifier, it can contain:\n\t- `invalid` the code is invalid\n\t- `404` identifier not found\n\n---\n\n### Settings\n\n- __Lock__ prevents overwriting of the code according to the identifier"
},
{
"id": "consolelog",
"group": "Common",
"name": "console.log()",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/consolelog.html",
"author": "Total.js",
"icon": "ti ti-print",
"color": "",
"version": "1",
"kind": "",
"readme": "This component prints a message into the console."
},
{
"id": "restcors",
"group": "REST API",
"name": "CORS",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/restcors.html",
"author": "Total.js",
"icon": "ti ti-html5",
"color": "",
"version": "3",
"kind": "",
"readme": "The component enables Cross-Origin Resource Sharing `CORS`, so the web browser will be able to communicate directly with the REST API. The functionality will work only with a defined Proxy endpoint for this Flow."
},
{
"id": "counter",
"group": "Common",
"name": "Counter",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/counter.html",
"author": "Total.js",
"icon": "ti ti-calculator",
"color": "",
"version": "1",
"kind": "",
"readme": "The component counts incoming messages."
},
{
"id": "crontab",
"group": "Triggers",
"name": "Crontab",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/crontab.html",
"author": "Peter Širka / Total.js",
"icon": "ti ti-clock",
"color": "",
"version": "1",
"kind": "trigger",
"readme": "The component can make a trigger in the specific time and date.\n\n## Cron string: `* * * * *`\n\nMeaning of each `*` explained bellow, in order from left to right:\n\n- minute `0 - 59`\n- hour `0 - 23`\n- day of month `1 - 31`\n- month `1 - 12`\n- day of week `0 - 6` and `0` is Sunday\n\n```\n0 16 * * * -> trigger every day at 16:00\n20 19 * * * -> every day at 19:20 and 19:40\n* * * * * -> trigger every minute\n0 20 * * 1 -> every monday at 20:00\n```"
},
{
"id": "csvdataset",
"group": "Dashboard",
"name": "CSV Dataset",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/csvdataset.html",
"author": "Peter Širka",
"icon": "ti ti-database",
"color": "",
"version": "2",
"kind": "",
"readme": "The component stores data as CSV Dataset for e.g. Dashboard application. Dataset is stored in `/private/` path that is available with the help of the Flow access token.\n\nCSV file contains only processed values (according to the period) and the `.meta` file contains meta data + last value.\n\n__Input for data processing__:\n\n```js\n{\n\tkey: String, // optional, e.g. device_id | device_name\n\tvalue: Number // measured value\n}\n```\n\n### CSV columns\n\n- `a` = `key {String}`\n- `b` = `value {Number}`\n- `c` = `min {Number}`\n- `d` = `max {Number}`\n- `e` = `sum {Number}`\n- `f` = `count {Number}`\n- `g` = `tshour {Number}`in the form `yyyyMMddhh`\n- `h` = `tsday {Number}` in the form `yyyyMMdd`\n- `i` = `tsweek {Number}` in the form `yyyyww`\n- `j` = `tsmonth {Number}` in the form `yyyyMM`\n- `k` = `tsyear {Number}` in the form `yyyy`"
},
{
"id": "dataparser",
"group": "Transformations",
"name": "Data parser",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/dataparser.html",
"author": "Total.js",
"icon": "ti ti-compress",
"color": "",
"version": "1",
"kind": "",
"readme": "The component can parse newline data or begin/end phrases in the buffer or string. In addition, it can help with parsing XML or CSV files."
},
{
"id": "datasorter",
"group": "Common",
"name": "Data sorter",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/datasorter.html",
"author": "Total.js",
"icon": "ti ti-vector",
"color": "",
"version": "3",
"kind": "",
"readme": "The component sorts data according to the custom defined conditions. You can define unlimited count of outputs with various conditions."
},
{
"id": "restdatabase",
"group": "REST API",
"name": "Database",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/restdatabase.html",
"author": "Total.js",
"icon": "ti ti-database",
"color": "",
"version": "2",
"kind": "",
"readme": "This component can perform some operations on a database with the help of Total.js QueryBuilder. First, you must initialize the connection string for the database via QueryBuilder initialization.\n\n__Input data__:\n\n- `data {Object}` or `body {Object}` optional - payload\n- `query {Object}` optional - query data, key/value must be string\n- `params {Object}` optional - dynamic values, key/value must be string\n- `user {Object}` optional - a user instance\n\n__Output__:\n\n- `insert` returns Number\n- `update` returns Number\n- `remove` returns Number\n- `query` returns Array of Objects\n- `read` returns Object\n- `list` returns:\n\n```json\n{\n\titems: Array,\n\tpage: Number,\n\tpages: Number,\n\tcount: Number\n}\n```\n\nQuery parameters for the `List` operation can contain the below fields which can affect filtering according to the values defined in the dynamic filter.\n\n- `sort {String}` can contain field name with `_asc` or `_desc` value\n- `fields {String}` can return only specified fields separated by comma\n- `page {Number}` page number\n- `limit {Number}` max. items per page (default: max. limit)\n- `column_name=VALUE` enables dynamic filtering\n\n---\n\n__Good to know__: If the `data` (payload) can contain special key names in the form:\n\n- `+key` increments a value\n- `-key` decrements a value\n- `!key` performs toggle for boolean values\n- `>key` stores only greater value\n- `<key` stores only lower value"
},
{
"id": "date",
"group": "Triggers",
"name": "Date",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/date.html",
"author": "Total.js",
"icon": "ti ti-calendar",
"color": "",
"version": "1",
"kind": "trigger",
"readme": "The component will return a Date/Time object (raw or formatted) according to its configuration."
},
{
"id": "debug",
"group": "Common",
"name": "Debug",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/debug.html",
"author": "Total.js",
"icon": "ti ti-circle-alt",
"color": "#E73323",
"version": "3",
"kind": "",
"readme": "The component prints incoming data into the JSON format."
},
{
"id": "delay",
"group": "Common",
"name": "Delay",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/delay.html",
"author": "Total.js",
"icon": "ti ti-hourglass",
"color": "",
"version": "4",
"kind": "",
"readme": "The component delays processing of a message."
},
{
"id": "downloader",
"group": "Common",
"name": "Downloader",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/downloader.html",
"author": "Total.js",
"icon": "ti ti-download",
"color": "",
"version": "2",
"kind": "",
"readme": "The component downloads the file from the URL address as it is.\n\n## Input\n\n```js\n{\n\turl: 'https://example.com/file.jpg', // file url\n}\n```\n\n## Output\n\n```js\n{\n\tvalue: '/tmp/xyz.bin',\n\t...\n}\n```\n\nThe file will be automaticaly deleted once the message is destroyed."
},
{
"id": "duration",
"group": "Stats",
"name": "Duration",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/duration.html",
"author": "Total.js",
"icon": "ti ti-clock",
"color": "",
"version": "1",
"kind": "",
"readme": "The component counts message duration. All values except `count` are defined in seconds.\n\n__Output__:\n\n```js\n{\n\tmin: Number,\n\tmax: Number,\n\tavg: Number,\n\tlast: Number,\n\tcount: Number\n}\n```"
},
{
"id": "end",
"group": "Common",
"name": "End",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/end.html",
"author": "Total.js",
"icon": "ti ti-ban",
"color": "",
"version": "1",
"kind": "output",
"readme": "The component destroys the incoming message."
},
{
"id": "error",
"group": "REST API",
"name": "Error",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/error.html",
"author": "Total.js",
"icon": "ti ti-bug",
"color": "",
"version": "1",
"kind": "",
"readme": "This component transforms incoming data to the Total.js Error structure."
},
{
"id": "exec",
"group": "Triggers",
"name": "Exec",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/exec.html",
"author": "Total.js",
"icon": "ti ti-sliders-v",
"color": "",
"version": "1",
"kind": "trigger",
"readme": "The component is extraordinary because it must be executed directly from the source code via the `flowstream.exec()` method. The component triggers received data into the Flow.\n\n```js\nvar opt = {};\nopt.id = 'ID_OF_EXEC_INSTANCE';\nopt.data = { custom: 'data' };\nopt.callback = function(err, msg) {\n\t// msg.uid;\n\t// msg.ref;\n\t// msg.repo {Object}\n\t// msg.data {Object}\n\t// msg.cloned {Number} how many times was the message cloned?\n\t// msg.duration {Number} in milliseconds\n};\n\n// optional:\n// opt.vars = {}; --> custom variables\n// opt.repo = {}; --> custom repository data and this data will be returned in the callback\n// opt.uid; --> for storing some unique ID\n// opt.ref; --> for storing some reference ID\nflowinstance.exec(opt);\n```"
},
{
"id": "extend",
"group": "Common",
"name": "Extend",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/extend.html",
"author": "Total.js",
"icon": "ti ti-expand",
"color": "",
"version": "1",
"kind": "",
"readme": "This component extends the current message by adding new properties."
},
{
"id": "feedtodelay",
"group": "Common",
"name": "Feed to delay",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/feedtodelay.html",
"author": "Total.js",
"icon": "ti ti-clock",
"color": "",
"version": "1",
"kind": "",
"readme": "The incomming message will only be forwarded after the timeout. Only the last message is forwarded, so any previously received messages are lost.\nIf messages are comming in within the given timeout period this component will never forward any message.\nThe timeout is activated by the first message.\nThe maximum timeout is 2147483 seconds, which is about 24.8 days.\nExample usage:\n\t- A sensor is supposed to send data every minute, use this component to notify you that there is a problem with receiving message.\n\t- HTTP request comes in and it takes too much time to respond? Use this component to notify you about it."
},
{
"id": "filewatcher",
"group": "Files",
"name": "File Watcher",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/filewatcher.html",
"author": "Total.js",
"icon": "ti ti-recycle",
"color": "",
"version": "1",
"kind": "",
"readme": "The component watches the existence of the file, then reads the content and sends it next. The file will be removed automatically after reading."
},
{
"id": "filewriter",
"group": "Files",
"name": "File Writer",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/filewriter.html",
"author": "Total.js",
"icon": "ti ti-pencil",
"color": "",
"version": "1",
"kind": "",
"readme": "The component writes incoming data into the file."
},
{
"id": "flashback",
"group": "Common",
"name": "Flashback",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/flashback.html",
"author": "Peter Širka & Jakub Urban",
"icon": "ti ti-history",
"color": "",
"version": "4",
"kind": "action",
"readme": "The component remembers the data for repeating the action."
},
{
"id": "flowrecorder",
"group": "Flow",
"name": "Flow recorder",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/flowrecorder.html",
"author": "Total.js",
"icon": "ti ti-history",
"color": "",
"version": "1",
"kind": "",
"readme": "As the FlowStream worker runs, the component records significant information. The component can reveal hidden bugs or performance issues. The component stores data in the `logs/*` directory."
},
{
"id": "forward",
"group": "Common",
"name": "Forward",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/forward.html",
"author": "Total.js",
"icon": "ti ti-arrow-right",
"color": "",
"version": "1",
"kind": "action",
"readme": "The component send message next only. It's targeted for colorized connections to targeted to the same input.\n- The data will Flow only from input a specific color (except black)\n- The color black is a universal color and it will transport everything"
},
{
"id": "googlesearch",
"group": "Services",
"name": "Google Search",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/googlesearch.html",
"author": "Total.js",
"icon": "ti ti-google",
"color": "",
"version": "1",
"kind": "",
"readme": "This component can google any keyword you want.\n\n\n__Configuration__\n\n- `Language (optional)` : Search language;\n- `Limit (optional)` : Limit number of results.\n\n__Input__\n\n- `Object` | String : input expects `data: String` or `data.text: String` as search keywords.\n\n\n__Output__\n\n- `Array` of found results:"
},
{
"id": "influxdb",
"group": "Databases",
"name": "Influxdb",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/influxdb.html",
"author": "Martin Smola",
"icon": "ti ti-database",
"color": "",
"version": "1",
"kind": "",
"readme": "## Input\n\nExpected data for \"Write data\":\n\n```js\n{\n measurement: '<measurement-name>',\n\tfields: {\n fieldname: <fieldvalue>,\n },\n tags: {\n tagname: '<tagvalue>'\n }\n}\n```\n\nExpected data for \"Execute a Flux query\":\n\n```js\n{\n query: 'from(bucket: \"Some Bucket\") |> range(start: -1h)'\n}\n```"
},
{
"id": "input",
"group": "FlowStream",
"name": "Input",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/input.html",
"author": "Total.js",
"icon": "ti ti-wifi",
"color": "",
"version": "2",
"kind": "",
"readme": "The component receives data in an encapsulated FlowStream."
},
{
"id": "jsonschemavalidator",
"group": "Common",
"name": "JSON Schema validator",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/jsonschemavalidator.html",
"author": "Total Avengers",
"icon": "ti ti-code",
"color": "",
"version": "1",
"kind": "",
"readme": "[JSON schema documentation](https://json-schema.org/learn/getting-started-step-by-step.html)\n\n## Inputs\n\n- `input` validates data and send the result to output if no error, otherwise send error to error output\n- `schema` reads the schema and send it to the schema output"
},
{
"id": "kill",
"group": "FlowStream",
"name": "Kill",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/kill.html",
"author": "Total.js",
"icon": "ti ti-ban",
"color": "#E73323",
"version": "1",
"kind": "output",
"readme": "Be careful because this component will kill the current Flow instance. It's targeted only for exceptional cases."
},
{
"id": "livestats",
"group": "Common",
"name": "Live stats",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/livestats.html",
"author": "Total.js",
"icon": "ti ti-chart-line",
"color": "",
"version": "1",
"kind": "",
"readme": "# Live Stats Component\n\nKeep an eye on incoming messages in a snap!"
},
{
"id": "localstorage",
"group": "Databases",
"name": "Local storage",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/localstorage.html",
"author": "Total.js",
"icon": "ti ti-hdd",
"color": "",
"version": "1",
"kind": "",
"readme": "A small and simple persistent storage component is provided by this component. Data can be stored for a short period of time and read when needed."
},
{
"id": "logger",
"group": "Total.js API",
"name": "Logger",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/logger.html",
"author": "Total.js",
"icon": "ti ti-search",
"color": "",
"version": "2",
"kind": "",
"readme": "The component logs incoming messages into the Total.js Cloud Logger."
},
{
"id": "macro",
"group": "Common",
"name": "Macro",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/macro.html",
"author": "Total.js",
"icon": "ti ti-long-arrow-down",
"color": "",
"version": "1",
"kind": "",
"readme": "The macro component uses Total.js Macro language that allows you to write much simple code like in JavaScript. Macros are targeted for small data transformation.\n\n- you don't need to solve Upper/Lower case\n- `return EXPRESSION` will return data and send them next\n- `data` keyword contains a message data\n- `temp` keyword can contain a persistent temporary data\n\n__Example__:\n\n```text\nIF DATA>20 AND DATA<35\n\tRETURN DATA * 5\nFI\n```"
},
{
"id": "map-array",
"group": "Common",
"name": "Map array",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/map-array.html",
"author": "Total.js",
"icon": "ti ti-table",
"color": "",
"version": "1",
"kind": "",
"readme": "This component can iterate over an array and only take properties listed in the configuration. __The input must be an array of objects!__\n\n### Example data\n\n```js\n[\n\t{ sensor: { temperature: 25, humidity: 50, ... some more properties }},\n\t{ sensor: { temperature: 24, humidity: 55, ... some more properties }},\n\t{ sensor: { temperature: 23, humidity: 60, ... some more properties }}\n]\n```\n### Example configuration\n\n- `sensor.temperature` -> `temp`\n- `sensor.humidity` -> `hum`\n\n### Example output\n\n```js\n[\n\t{ temp: 25, hum: 50 },\n\t{ temp: 24, hum: 55 },\n\t{ temp: 23, hum: 60 }\n]\n```\n\nIf `Return an Array of Arrays` is checked then\neach of the Map properties will be pushed to a new array, see example bellow\n\n### Example given the data above and this configuration:\n\n`Return an Array of Arrays` -> **checked**\n\n**Map**:\n\n- `sensor.temperature`\n- `sensor.humidity`\n\n### Example output:\n\n```js\n[\n\t[25, 50],\n\t[24, 55],\n\t[23, 60],\n]\n```"
},
{
"id": "merge",
"group": "Common",
"name": "Merge",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/merge.html",
"author": "Total.js",
"icon": "ti ti-cashregister",
"color": "",
"version": "1",
"kind": "",
"readme": "The component merges incoming data into an array."
},
{
"id": "merginputs",
"group": "Common",
"name": "Merge inputs",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/merginputs.html",
"author": "Total.js",
"icon": "ti ti-filter",
"color": "",
"version": "1",
"kind": "",
"readme": "This component merges multiple inputs into one object."
},
{
"id": "minutely",
"group": "Triggers",
"name": "Minutely",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/minutely.html",
"author": "Total.js",
"icon": "ti ti-clock",
"color": "",
"version": "1",
"kind": "trigger",
"readme": "The component triggers data into the Flow in every minute."
},
{
"id": "model",
"group": "Transformations",
"name": "Model",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/model.html",
"author": "Total.js",
"icon": "ti ti-file",
"color": "",
"version": "3",
"kind": "",
"readme": "This component prepares incoming data according to the defined schema. Output is prepared model or Error."
},
{
"id": "modified",
"group": "Common",
"name": "Modified",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/modified.html",
"author": "Total.js",
"icon": "ti ti-map-pin",
"color": "",
"version": "1",
"kind": "",
"readme": "The component compares incoming data with previous data."
},
{
"id": "modify",
"group": "Common",
"name": "Modify",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/modify.html",
"author": "Total.js",
"icon": "ti ti-cog",
"color": "",
"version": "3",
"kind": "",
"readme": "This component allows you to set/modify/move/remove properties of the incomming data.\nFor eaxample, to set the message data to a string `Hello world` select *Message data* in the rule dropdown and leave the text field empty.\nThen in the bellow dropdown select `string` and enter the desired string in the text field.\n\n__Result:__\n\n- before: $.data -> 'Hello world'\n- after: $.data -> 'New string'\n\n## Expression\n\nAvailable params are: `data`, `repo`, `variables` ,`variables2`\nWhere data is message.data, repo is message.repo --> [Documentation](https://docs.totaljs.com/total4/40844001ni51c)\nAnd variables are local variables which can be set in the Variables dialog accessible on the main toolbar(the button between Plus icon and Bug icon)\nFor example, we want message data to be the value of (data.value + variables.offset)\n\n__Result:__\n\n- before: $.data --> `{ value: 100 }` / variables --> `{ offset: 20, ... many other properties }`\n- after: $.data -> `{ value: 120 }`\n\nThe expression: `data.value + variables.offset`\n\n### Important\n\n- `Remove` -> `Message data / Message repo` -> `<empty path>` will set `Message data / Message repo` to `null`;\n- `Remove` -> `Local variables / Global variables` -> `<empty path>` will be ignored but `Remove` -> `Local variables / Global variables` -> `myVar` will work.\n- `Set` -> `Message data` -> `some.path` to: `Message data` -> `some.other.path` will add another property to the incoming data and rest of the data will remain untouched\n- `Set` -> `Message data` -> `<empty path>` to: `Message data` -> `some.path` will essentialy overwrite the incomming data, after this there's no longer access to original data(same goes for repo)"
},
{
"id": "mongodb-insert",
"group": "Databases",
"name": "MongoDB Insert",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/mongodb-insert.html",
"author": "Martin Smola",
"icon": "ti ti-database",
"color": "",
"version": "1",
"kind": "",
"readme": "## Input\n\nExample\n```javascript\n{\n database: 'database-name',\n collection: 'collection-name',\n\tdata: { ... }, // data to insert, object for `insertOne` and an array of objects for `insertMany`\n\toptions: { ... }// insert options as passed to `insertOne(data, options)` or `insertMany(data, options)`\n}\n```"
},
{
"id": "mongodb-query",
"group": "Databases",
"name": "MongoDB Query",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/mongodb-query.html",
"author": "Martin Smola",
"icon": "ti ti-database",
"color": "",
"version": "2",
"kind": "",
"readme": "Uses mquery under the hood. Here is the [documentation](https://www.npmjs.com/package/mquery)\n\n## Input\n\nExample\n```javascript\n{\n database: 'database-name',\n collection: 'collection-name',\n\tdata: <any> // this prop will be passed into the query function\n}\n```\n\n## Query editor\n```js\n// query; mquery instance\n// data; data from the incomming object\n\nquery.find(); // return all documents\n```\n\n## Important\nIn the `.select()` you cannot use inclusion and exclusion together.\nThis is invalid: `.select('firstname -lastname')`\nValid exclusion: `.select('-lastname')` or `.select('-email -lastname')` etc.\nValid inclusion: `.select('name email')` or `.select('email lastname')` etc."
},
{
"id": "mqtt-broker",
"group": "MQTT",
"name": "MQTT Broker",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/mqtt-broker.html",
"author": "Martin Smola",
"icon": "ti ti-exchange",
"color": "",
"version": "3",
"kind": "",
"readme": ""
},
{
"id": "mqtt-publish",
"group": "MQTT",
"name": "MQTT Publish",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/mqtt-publish.html",
"author": "Martin Smola",
"icon": "ti ti-sign-out",
"color": "",
"version": "3",
"kind": "",
"readme": "MQTT Publish\n\nInput:\n```javascript\n{\n\ttopic: 'some/topic',\n\tmessage: { some: 'data' },\n\t// optional\n\toptions: {\n\t\tqos: 0|1|2,\n\t\tretain: true|false\n\t}\n}\n```"
},
{
"id": "mqtt-subscribe",
"group": "MQTT",
"name": "MQTT Subscribe",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/mqtt-subscribe.html",
"author": "Martin Smola",
"icon": "ti ti-sign-in",
"color": "",
"version": "3",
"kind": "",
"readme": "MQTT Subscribe"
},
{
"id": "mysql",
"group": "Databases",
"name": "MySQL",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/mysql.html",
"author": "Total.js",
"icon": "ti ti-database",
"color": "",
"version": "2",
"kind": "",
"readme": "## Input\n\nExpected data:\n\n```javascript\n{\n\tquery: 'SELECT * FROM tblname;'\n}\n```"
},
{
"id": "nosql",
"group": "Databases",
"name": "NoSQL",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/nosql.html",
"author": "Total.js",
"icon": "ti ti-database",
"color": "",
"version": "1",
"kind": "",
"readme": "## Outputs\n- response from nosql engine\n## Settings\n- collection: (optional) if not set, incomming data object must have a 'collection' property set\n- method: (optional) if not set, incomming data object must have a 'method' property set\n## Input\n```javascript\n{\n\tcollection: 'users', // optional, will override settings value\n\tmethod: 'query', // insert|read|query|update|remove - optional, will override settings value\n\t// for insert, update\n\tdata: { ... },\n\t// for query, read, update, remove\n\tfilter: [\n\t\t['where', 'sensor', 'temp'], // builder.where('sensor', 'temp');\n\t\t['limit', 2] // builder.limit(2);\n\t],\n\tupsert: true // only for update, if set then document will be inserted if it doesn't exist\n\taddid: true // only for insert and update, if set then id prop will be automaticaly generated (for update only when upsert is also set)\n}\n```\n## Insert\n- inserts recieved data\n- expects data to be an Object\n- returns error, success, id\n## Read\n- returns first document found\n- requires `filter`\n- returns error, response\n## Update\n- updates document(s)\n- expects data to be an Object with all the props to be updated\n- requires `filter`\n- returns error, response\n- if response is 0 then update failed\n## Remove\n- removes document\n- requires `filter`\n- returns error, response\n- if response is 0 then remove failed\n## Query\n- returns all documents found\n- requires `filter`\n- returns error, response"
},
{
"id": "notify",
"group": "Triggers",
"name": "Notify",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/notify.html",
"author": "Total.js",
"icon": "ti ti-map-pin",
"color": "",
"version": "1",
"kind": "trigger",
"readme": "This component captures data on the `/notify/` endpoint.\n\n__Output data__:\n\n```js\n{\n\t\"method\": String,\n\t\"query\": Object,\n\t\"body\": Object,\n\t\"headers\": Object,\n\t\"cookies\": Object,\n\t\"url\": String,\n\t\"ip\": String\n}\n```"
},
{
"id": "oauth2",
"group": "API",
"name": "OAuth 2.0",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/oauth2.html",
"author": "Total.js",
"icon": "ti ti-key",
"color": "",
"version": "1",
"kind": "",
"readme": "This component can obtain OAuth 2.0 access token from 3rd party service."
},
{
"id": "object",
"group": "Data",
"name": "Object",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/object.html",
"author": "Total.js",
"icon": "ti ti-list-alt",
"color": "",
"version": "1",
"kind": "",
"readme": "The component creates an object from the defined string (Tangular) template. With the help of the Tangular template engine, you can use conditions, loops, etc..\n\n__Available markup__:\n\n- `{{ data.key }}` represents data\n- `{{ variables.key }}` represents local and global Flow variables\n- `{{ hostname }}` contains a current URL address to the main Flow app `{String}`\n- `{{ url }}` contains a current URL address to the current Flow `{String}`\n- `{{ env }}` contains a current environment `{String}`"
},
{
"id": "opensync",
"group": "External",
"name": "OpenSync",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/opensync.html",
"author": "Total.js",
"icon": "ti ti-sync",
"color": "",
"version": "2",
"kind": "",
"readme": "This component receives a data from the [OpenSync](https://docs.totaljs.com/opensync/) app. Data example:\n\n```js\n{\n\tid: String, // Internal ID\n\ttype: String, // Parsed content-type (can be empty with the \"GET\" method)\n\tchannel: String, // Channel\n\tip: String, // Host IP address\n\tmethod: String, // HTTP method (upper-case)\n\theaders: Object, // Key:value\n\tquery: Object, // Key:value\n\tbody: Object, // JSON/key:value/String\n\tua: String, // Parsed user-agent\n\tfiles: [Object Array] // Uploaded files { filename: String, extension: String, type: String, size: Number, url: String, width: Number, height: Number }\n}\n```"
},
{
"id": "openweather",
"group": "Services",
"name": "OpenWeather",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/openweather.html",
"author": "Total.js",
"icon": "ti ti-weather",
"color": "",
"version": "1",
"kind": "",
"readme": "This component can retieve weather data from [OpenWheatherMap](https://openweathermap.org/api/);\n\n__Input__:\n\n```js\n\t{\n\t\tquery: String, // Optional, City name, Country code, State code e.g: London, Ouagadougou, sk\n\t\tlon: String, // Optional, Longitude\n\t\tlat: String, // Optional, Latitude\n\t\tlang: String, // Optional, Output language e.g: `en`, `de`, `sk`, `fr` etc...\n\t\tunits: String, // Optional, standard, metric, imperial\n\t\tdate: String // Optional, Timestamp (Unix time, UTC time zone), e.g. date=1586468027\n\t}\n```"
},
{
"id": "output",
"group": "FlowStream",
"name": "Output",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/output.html",
"author": "Total.js",
"icon": "ti ti-crosshairs",
"color": "",
"version": "2",
"kind": "output",
"readme": "The component can send data from an encapsulated FlowStream."
},
{
"id": "postgresql",
"group": "Databases",
"name": "PostgreSQL",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/postgresql.html",
"author": "Total.js",
"icon": "ti ti-database",
"color": "",
"version": "2",
"kind": "",
"readme": "PostgreSQL\n\n## Input\nExpected data:\n```javascript\n{\n\tquery: 'SELECT * FROM tblname;'\n}\n```\nOutput:\n```javascript\n{\n\tcommand: 'INSERT', // SELECT, etc.\n\trows: [], // \n\trowCount: 1\n}\n```"
},
{
"id": "print",
"group": "Common",
"name": "Print",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/print.html",
"author": "Total.js",
"icon": "ti ti-print",
"color": "",
"version": "5",
"kind": "",
"readme": "The component prints incoming data in a JSON format."
},
{
"id": "printjson",
"group": "Common",
"name": "Print JSON",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/printjson.html",
"author": "Martin Smola",
"icon": "ti ti-print",
"color": "",
"version": "2",
"kind": "",
"readme": "The component prints incoming data in a JSON format."
},
{
"id": "restproxyroute",
"group": "REST API",
"name": "Proxy route",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/restproxyroute.html",
"author": "Total.js",
"icon": "ti ti-exchange",
"color": "",
"version": "1",
"kind": "trigger",
"readme": "This component registers an HTTP Proxy route and sends request metadata next.\n\n< __IMPORTANT__:<br>The component works only with a defined Proxy endpoint in the Flow settings.\n< __URL__:<br>The URL must be relative to the defined Proxy endpoint. So if the endpoint is `/users/` and the desired address is `http://example.com/users/find` then the value must be `/find`\n\n__Output data__:\n\n```js\n{\n\t\"query\": Object,\n\t\"headers\": Object,\n\t\"url\": String,\n\t\"ip\": String\n}\n```"
},
{
"id": "publish",
"group": "FlowStream",
"name": "Publish",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/publish.html",
"author": "Total.js",
"icon": "ti ti-crosshairs",
"color": "",
"version": "4",
"kind": "",
"readme": "The component publish the data to the specific `Input` component."
},
{
"id": "qrcode",
"group": "Generators",
"name": "QR Code",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/qrcode.html",
"author": "Peter Širka / Total.js",
"icon": "ti ti-qrcode-alt",
"color": "",
"version": "1",
"kind": "",
"readme": "The component generates QR Code.\n\n__Input data__:\n\n```js\n{\n\ttext: String\n}\n```\n\n__Output data__:\n\n```js\n{\n\ttext: String,\n\tdata: 'Data URL - BASE64'\n}\n```"
},
{
"id": "querybuilderpg",
"group": "REST API",
"name": "QueryBuilder PG",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/querybuilderpg.html",
"author": "Total.js",
"icon": "ti ti-database",
"color": "",
"version": "1",
"kind": "",
"readme": "The component initializes QueryBuilder for the PostgreSQL database. So you can use the 'API Database` component. Each connection must be separated by an alias.\n\n__Usage in API Database__:\n\n- `tbl_user` is targeted to the `default/tbl_user` alias connection\n- `anotherserver/tbl_user` will use `anotherserver` alias connection"
},
{
"id": "queue",
"group": "Common",
"name": "Queue",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/queue.html",
"author": "Total.js",
"icon": "ti ti-list",
"color": "",
"version": "3",
"kind": "",
"readme": "A simple persistent queue for the incomming messages."
},
{
"id": "read",
"group": "Common",
"name": "Read",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/read.html",
"author": "Total.js",
"icon": "ti ti-filter",
"color": "",
"version": "3",
"kind": "action",
"readme": "This component reads specific values according to the configured map."
},
{
"id": "restredirect",
"group": "REST API",
"name": "Redirect",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/restredirect.html",
"author": "Total.js",
"icon": "ti ti-share",
"color": "",
"version": "2",
"kind": "",
"readme": "## Input\n\nIncomming data have higher priority than the values set in the Configuration form. Both the `url` and `permanent` are optional.\n\n```js\n{\n\turl: 'https://example.com',\n\tpermanent: true|false\n}\n```"
},
{
"id": "restremember",
"group": "REST API",
"name": "Remember",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/restremember.html",
"author": "Total.js",
"icon": "ti ti-save",
"color": "",
"version": "1",
"kind": "action",
"readme": "The primary goal of this component is to remember data. The component contains two inputs:\n\n- Remember input for remembering data\n- Request input as a trigger for obtaining data, then remembered data would extend the request message (its data), and the component will send it to the Response output"
},
{
"id": "renderer",
"group": "Common",
"name": "Renderer",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/renderer.html",
"author": "Total.js",
"icon": "ti ti-paint-brush",
"color": "",
"version": "1",
"kind": "output",
"readme": "The component transforms data in HTML format in the component body. You can easily visualize any data. Data is rendered server-side."
},
{
"id": "request",
"group": "Common",
"name": "Request",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/request.html",
"author": "Total.js",
"icon": "ti ti-cloud-download",
"color": "",
"version": "6",
"kind": "",
"readme": "The component makes a HTTP request. The response data will be serialized as the payload.\n\n__Response__:\n\n```json\n{\n\tstatus: Number,\n\theaders: { key: value },\n\tcookies: { key: value },\n\thost: String,\n\tbody: String/Object/Buffer\n}\n```"
},
{
"id": "restresponse",
"group": "REST API",
"name": "Response",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/restresponse.html",
"author": "Total.js",
"icon": "ti ti-share",
"color": "",
"version": "3",
"kind": "output",
"readme": "This component can respond on the REST Route component."
},
{
"id": "restroute",
"group": "REST API",
"name": "Route",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/restroute.html",
"author": "Total.js",
"icon": "ti ti-map-pin",
"color": "",
"version": "1",
"kind": "trigger",
"readme": "This component registers an HTTP Route and sends request data next. It stores `controller` instance in the `message.refs.controller` property. You must respond to the REST response component.\n\n< __IMPORTANT__:<br>The component works only with a defined Proxy endpoint in the Flow settings.\n< __URL__:<br>The URL must be relative to the defined Proxy endpoint. So if the endpoint is `/users/` and the desired address is `http://example.com/users/find` then the value must be `/find`\n\n__Output data__:\n\n```js\n{\n\t\"route\": String,\n\t\"params\": Object,\n\t\"query\": Object,\n\t\"body\": Object,\n\t\"files\": Array,\n\t\"headers\": Object,\n\t\"url\": String,\n\t\"ip\": String\n}\n```"
},
{
"id": "rssreader",
"group": "Transformations",
"name": "RSS reader",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/rssreader.html",
"author": "Total.js",
"icon": "ti ti-rss-square",
"color": "",
"version": "1",
"kind": "",
"readme": "The component downloads every item from the RSS source. A message on to this `Trigger` input starts downloading RSS data.\n\n__Example__:\n\n```js\n{\n\ttitle: String,\n\tdescription: String,\n\tlink: String,\n\timage: String, // optional\n\tdate: Date // optional\n}\n```"
},
{
"id": "secrets",
"group": "Common",
"name": "Secrets",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/secrets.html",
"author": "Total.js",
"icon": "ti ti-lock",
"color": "",
"version": "1",
"kind": "",
"readme": "The component creates secret variables from the input message data. You can read data easily via `{key}` in the component's settings. Keys and their values must be of String type.\n\n```js\n{\n\tkey1: value1,\n\tkey2: value2,\n\tkeyN: valueN\n}\n```"
},
{
"id": "serverextension",
"group": "Common",
"name": "Server extension",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/serverextension.html",
"author": "Total.js",
"icon": "ti ti-check-square",
"color": "",
"version": "1",
"kind": "",
"readme": "The component installs Total.js server-side extension. In other words: it can evaluate JavaScript code when the component is initialized or the component settings is changed."
},
{
"id": "sms",
"group": "Total.js API",
"name": "SMS",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/sms.html",
"author": "Total.js",
"icon": "ti ti-tablet",
"color": "",
"version": "1",
"kind": "",
"readme": "The component sends a SMS message."
},
{
"id": "split",
"group": "Array",
"name": "Split",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/split.html",
"author": "Total.js",
"icon": "ti ti-strikethrough",
"color": "",
"version": "1",
"kind": "",
"readme": "The component splits a message with an array of objects on the input into separate messages with individual objects on the output.\n\n__Input example__:\n\n```js\n[\n\t{\n\t\t\"email\": \"[email protected]\",\n\t\t\"date\": 20220202,\n\t\t\"meno\": \"Michal Klacan\"\n\t},\n\t{\n\t\t\"email\": \"[email protected]\",\n\t\t\"date\": 20220204,\n\t\t\"meno\": \"Martin Smola\"\n\t},\n\t{\n\t\t\"email\": \"[email protected]\",\n\t\t\"datum\": 20220210,\n\t\t\"meno\": \"Peter Sirka\"\n\t}\n]\n```\n\n__Output example__:\n\n```js\n{\n\t\"email\": \"[email protected]\",\n\t\"date\": 20220202,\n\t\"meno\": \"Michal Klacan\"\n}\n```\n\n```js\n{\n\t\"email\": \"[email protected]\",\n\t\"date\": 20220204,\n\t\"meno\": \"Martin Smola\"\n}\n```\n\n```js\n{\n\t\"email\": \"[email protected]\",\n\t\"datum\": 20220210,\n\t\"meno\": \"Peter Sirka\"\n}\n```"
},
{
"id": "restsql",
"group": "REST API",
"name": "SQL query",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/restsql.html",
"author": "Total.js",
"icon": "ti ti-database",
"color": "",
"version": "1",
"kind": "",
"readme": "The component executes SQL command on the specifi connection. This component depends on the `API PostgreSQL` component."
},
{
"id": "sqlite3",
"group": "Databases",
"name": "SQLite3",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/sqlite3.html",
"author": "Total.js",
"icon": "ti ti-database",
"color": "",
"version": "1",
"kind": "",
"readme": "SQLite3 [Documentation](https://github.com/JoshuaWise/better-sqlite3/blob/HEAD/docs/api.md)\n\n```js\n{\n\t// query\n\tprepare: 'INSERT INTO cats (name, age) VALUES (?, ?)',\n\n\t// function name: run, get, all, exec\n\tfn: 'run',\n\n\t// data, optional\n\tdata: ['Joey', 2] // string/number or array\n\n}\n```\n\n__Functions:__\n\n- [run](https://github.com/JoshuaWise/better-sqlite3/blob/HEAD/docs/api.md#runbindparameters---object)\n- [get](https://github.com/JoshuaWise/better-sqlite3/blob/HEAD/docs/api.md#getbindparameters---row)\n- [all](https://github.com/JoshuaWise/better-sqlite3/blob/HEAD/docs/api.md#allbindparameters---array-of-rows)\n- [exec](https://github.com/JoshuaWise/better-sqlite3/blob/HEAD/docs/api.md#execstring---this)"
},
{
"id": "stopwatch",
"group": "Stats",
"name": "Stopwatch",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/stopwatch.html",
"author": "Total.js",
"icon": "ti ti-hourglass",
"color": "",
"version": "3",
"kind": "",
"readme": "The component runs a simple stopwatch for incomming messages."
},
{
"id": "stringoperations",
"group": "Common",
"name": "String Operations",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/stringoperations.html",
"author": "Total.js",
"icon": "ti ti-font",
"color": "",
"version": "1",
"kind": "",
"readme": "This components can apply string operation to your components.\n\n- input: `String`\n- output: `String`"
},
{
"id": "subscribe",
"group": "FlowStream",
"name": "Subscribe",
"url": "https://cdn.totaljs.com/flowstream/webcomponents/subscribe.html",
"author": "Total.js",
"icon": "ti ti-wifi",
"color": "",
"version": "3",
"kind": "",
"readme": "The component subscribes to the specific `Output` component."
},
{
"id": "switch",
"group": "Common",