@cobaltio/cobalt-js 0.0.6 → 0.0.9

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.
Files changed (53) hide show
  1. package/README.md +2 -0
  2. package/cobalt.js +60 -0
  3. package/cobalt.min.js +1 -1
  4. package/docs.md +203 -0
  5. package/package.json +4 -5
  6. package/docs/Cobalt.html +0 -1198
  7. package/docs/cobalt.js.html +0 -182
  8. package/docs/css/bootstrap.min.css +0 -6
  9. package/docs/css/prism.css +0 -138
  10. package/docs/css/prism.min.css +0 -1
  11. package/docs/css/template.min.css +0 -1
  12. package/docs/fonts/OpenSans-Bold-webfont.eot +0 -0
  13. package/docs/fonts/OpenSans-Bold-webfont.svg +0 -1830
  14. package/docs/fonts/OpenSans-Bold-webfont.woff +0 -0
  15. package/docs/fonts/OpenSans-BoldItalic-webfont.eot +0 -0
  16. package/docs/fonts/OpenSans-BoldItalic-webfont.svg +0 -1830
  17. package/docs/fonts/OpenSans-BoldItalic-webfont.woff +0 -0
  18. package/docs/fonts/OpenSans-Italic-webfont.eot +0 -0
  19. package/docs/fonts/OpenSans-Italic-webfont.svg +0 -1830
  20. package/docs/fonts/OpenSans-Italic-webfont.woff +0 -0
  21. package/docs/fonts/OpenSans-Light-webfont.eot +0 -0
  22. package/docs/fonts/OpenSans-Light-webfont.svg +0 -1831
  23. package/docs/fonts/OpenSans-Light-webfont.woff +0 -0
  24. package/docs/fonts/OpenSans-LightItalic-webfont.eot +0 -0
  25. package/docs/fonts/OpenSans-LightItalic-webfont.svg +0 -1835
  26. package/docs/fonts/OpenSans-LightItalic-webfont.woff +0 -0
  27. package/docs/fonts/OpenSans-Regular-webfont.eot +0 -0
  28. package/docs/fonts/OpenSans-Regular-webfont.svg +0 -1831
  29. package/docs/fonts/OpenSans-Regular-webfont.woff +0 -0
  30. package/docs/fonts/glyphicons-halflings-regular.eot +0 -0
  31. package/docs/fonts/glyphicons-halflings-regular.svg +0 -288
  32. package/docs/fonts/glyphicons-halflings-regular.ttf +0 -0
  33. package/docs/fonts/glyphicons-halflings-regular.woff +0 -0
  34. package/docs/fonts/glyphicons-halflings-regular.woff2 +0 -0
  35. package/docs/global.html +0 -786
  36. package/docs/index.html +0 -100
  37. package/docs/js/bootstrap.min.js +0 -7
  38. package/docs/js/clipboard.min.js +0 -7
  39. package/docs/js/jquery.min.js +0 -2
  40. package/docs/js/lunr-data.js +0 -923
  41. package/docs/js/lunr-data.json +0 -923
  42. package/docs/js/lunr.min.js +0 -6
  43. package/docs/js/prism.js +0 -869
  44. package/docs/js/prism.min.js +0 -1
  45. package/docs/js/template.min.js +0 -1
  46. package/docs/list_class.html +0 -128
  47. package/docs/scripts/linenumber.js +0 -25
  48. package/docs/scripts/prettify/Apache-License-2.0.txt +0 -202
  49. package/docs/scripts/prettify/lang-css.js +0 -2
  50. package/docs/scripts/prettify/prettify.js +0 -28
  51. package/docs/styles/jsdoc-default.css +0 -358
  52. package/docs/styles/prettify-jsdoc.css +0 -111
  53. package/docs/styles/prettify-tomorrow.css +0 -132
package/docs/Cobalt.html DELETED
@@ -1,1198 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8">
5
- <title>JSDoc: Class: Cobalt</title>
6
-
7
- <script src="scripts/prettify/prettify.js"> </script>
8
- <script src="scripts/prettify/lang-css.js"> </script>
9
- <!--[if lt IE 9]>
10
- <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
11
- <![endif]-->
12
- <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
13
- <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
14
- </head>
15
-
16
- <body>
17
-
18
- <div id="main">
19
-
20
- <h1 class="page-title">Class: Cobalt</h1>
21
-
22
-
23
-
24
-
25
-
26
-
27
- <section>
28
-
29
- <header>
30
-
31
- <h2><span class="attribs"><span class="type-signature"></span></span>Cobalt<span class="signature">(options)</span><span class="type-signature"></span></h2>
32
-
33
- <div class="class-description">Cobalt Frontend SDK</div>
34
-
35
-
36
- </header>
37
-
38
- <article>
39
- <div class="container-overview">
40
-
41
-
42
-
43
-
44
- <h2>Constructor</h2>
45
-
46
-
47
-
48
- <h4 class="name" id="Cobalt"><span class="type-signature"></span>new Cobalt<span class="signature">(options)</span><span class="type-signature"></span></h4>
49
-
50
-
51
-
52
-
53
-
54
-
55
- <div class="description">
56
- Cobalt Frontend SDK
57
- </div>
58
-
59
-
60
-
61
-
62
-
63
-
64
-
65
-
66
-
67
- <h5>Parameters:</h5>
68
-
69
-
70
- <table class="params">
71
- <thead>
72
- <tr>
73
-
74
- <th>Name</th>
75
-
76
-
77
- <th>Type</th>
78
-
79
-
80
-
81
-
82
-
83
- <th class="last">Description</th>
84
- </tr>
85
- </thead>
86
-
87
- <tbody>
88
-
89
-
90
- <tr>
91
-
92
- <td class="name"><code>options</code></td>
93
-
94
-
95
- <td class="type">
96
-
97
-
98
- <span class="param-type">object</span>
99
-
100
-
101
-
102
- </td>
103
-
104
-
105
-
106
-
107
-
108
- <td class="description last">The options to configure the Cobalt SDK.
109
- <h6>Properties</h6>
110
-
111
-
112
- <table class="params">
113
- <thead>
114
- <tr>
115
-
116
- <th>Name</th>
117
-
118
-
119
- <th>Type</th>
120
-
121
-
122
- <th>Attributes</th>
123
-
124
-
125
-
126
- <th>Default</th>
127
-
128
-
129
- <th class="last">Description</th>
130
- </tr>
131
- </thead>
132
-
133
- <tbody>
134
-
135
-
136
- <tr>
137
-
138
- <td class="name"><code>token</code></td>
139
-
140
-
141
- <td class="type">
142
-
143
-
144
- <span class="param-type">string</span>
145
-
146
-
147
-
148
- </td>
149
-
150
-
151
- <td class="attributes">
152
-
153
- &lt;optional><br>
154
-
155
-
156
-
157
-
158
-
159
- </td>
160
-
161
-
162
-
163
- <td class="default">
164
-
165
- </td>
166
-
167
-
168
- <td class="description last">The session token.</td>
169
- </tr>
170
-
171
-
172
-
173
- <tr>
174
-
175
- <td class="name"><code>baseUrl</code></td>
176
-
177
-
178
- <td class="type">
179
-
180
-
181
- <span class="param-type">string</span>
182
-
183
-
184
-
185
- </td>
186
-
187
-
188
- <td class="attributes">
189
-
190
- &lt;optional><br>
191
-
192
-
193
-
194
-
195
-
196
- </td>
197
-
198
-
199
-
200
- <td class="default">
201
-
202
- https://api.gocobalt.io
203
-
204
- </td>
205
-
206
-
207
- <td class="description last">The base URL of your Cobalt API.</td>
208
- </tr>
209
-
210
-
211
- </tbody>
212
- </table>
213
-
214
- </td>
215
- </tr>
216
-
217
-
218
- </tbody>
219
- </table>
220
-
221
-
222
-
223
-
224
-
225
-
226
- <dl class="details">
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
- <dt class="tag-source">Source:</dt>
254
- <dd class="tag-source"><ul class="dummy"><li>
255
- <a href="cobalt.js.html">cobalt.js</a>, <a href="cobalt.js.html#line4">line 4</a>
256
- </li></ul></dd>
257
-
258
-
259
-
260
-
261
-
262
-
263
-
264
- </dl>
265
-
266
-
267
-
268
-
269
-
270
-
271
-
272
-
273
-
274
-
275
-
276
-
277
-
278
-
279
-
280
-
281
-
282
-
283
-
284
-
285
-
286
- </div>
287
-
288
-
289
-
290
-
291
-
292
-
293
-
294
-
295
-
296
-
297
-
298
-
299
-
300
-
301
- <h3 class="subsection-title">Members</h3>
302
-
303
-
304
-
305
- <h4 class="name" id="baseUrl"><span class="type-signature"></span>baseUrl<span class="type-signature"></span></h4>
306
-
307
-
308
-
309
-
310
-
311
-
312
-
313
-
314
-
315
-
316
- <dl class="details">
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
- <dt class="tag-source">Source:</dt>
344
- <dd class="tag-source"><ul class="dummy"><li>
345
- <a href="cobalt.js.html">cobalt.js</a>, <a href="cobalt.js.html#line33">line 33</a>
346
- </li></ul></dd>
347
-
348
-
349
-
350
-
351
-
352
-
353
-
354
- </dl>
355
-
356
-
357
-
358
-
359
-
360
-
361
-
362
-
363
- <h4 class="name" id="token"><span class="type-signature"></span>token<span class="type-signature"></span></h4>
364
-
365
-
366
-
367
-
368
-
369
-
370
-
371
-
372
-
373
-
374
- <dl class="details">
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
- <dt class="tag-source">Source:</dt>
402
- <dd class="tag-source"><ul class="dummy"><li>
403
- <a href="cobalt.js.html">cobalt.js</a>, <a href="cobalt.js.html#line19">line 19</a>
404
- </li></ul></dd>
405
-
406
-
407
-
408
-
409
-
410
-
411
-
412
- </dl>
413
-
414
-
415
-
416
-
417
-
418
-
419
-
420
-
421
- <h4 class="name" id="token"><span class="type-signature"></span>token<span class="type-signature"></span></h4>
422
-
423
-
424
-
425
-
426
-
427
-
428
-
429
-
430
-
431
-
432
- <dl class="details">
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
- <dt class="tag-source">Source:</dt>
460
- <dd class="tag-source"><ul class="dummy"><li>
461
- <a href="cobalt.js.html">cobalt.js</a>, <a href="cobalt.js.html#line26">line 26</a>
462
- </li></ul></dd>
463
-
464
-
465
-
466
-
467
-
468
-
469
-
470
- </dl>
471
-
472
-
473
-
474
-
475
-
476
-
477
-
478
-
479
-
480
-
481
- <h3 class="subsection-title">Methods</h3>
482
-
483
-
484
-
485
-
486
-
487
-
488
-
489
- <h4 class="name" id="getAppAuthStatus"><span class="type-signature">(async) </span>getAppAuthStatus<span class="signature">()</span><span class="type-signature"> &rarr; {Promise.&lt;boolean>}</span></h4>
490
-
491
-
492
-
493
-
494
-
495
-
496
- <div class="description">
497
- Returns the auth status of the user for the specified application.
498
- </div>
499
-
500
-
501
-
502
-
503
-
504
-
505
-
506
-
507
-
508
-
509
-
510
-
511
-
512
- <h5 class="subsection-title">Properties:</h5>
513
-
514
-
515
-
516
- <table class="props">
517
- <thead>
518
- <tr>
519
-
520
- <th>Name</th>
521
-
522
-
523
- <th>Type</th>
524
-
525
-
526
-
527
-
528
-
529
- <th class="last">Description</th>
530
- </tr>
531
- </thead>
532
-
533
- <tbody>
534
-
535
-
536
- <tr>
537
-
538
- <td class="name"><code>application</code></td>
539
-
540
-
541
- <td class="type">
542
-
543
-
544
- <span class="param-type">string</span>
545
-
546
-
547
-
548
- </td>
549
-
550
-
551
-
552
-
553
-
554
- <td class="description last">The application type.</td>
555
- </tr>
556
-
557
-
558
- </tbody>
559
- </table>
560
-
561
-
562
-
563
-
564
- <dl class="details">
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
- <dt class="tag-source">Source:</dt>
592
- <dd class="tag-source"><ul class="dummy"><li>
593
- <a href="cobalt.js.html">cobalt.js</a>, <a href="cobalt.js.html#line84">line 84</a>
594
- </li></ul></dd>
595
-
596
-
597
-
598
-
599
-
600
-
601
-
602
- </dl>
603
-
604
-
605
-
606
-
607
-
608
-
609
-
610
-
611
-
612
-
613
-
614
-
615
-
616
-
617
-
618
- <h5>Returns:</h5>
619
-
620
-
621
- <div class="param-desc">
622
- The auth status of the user.
623
- </div>
624
-
625
-
626
-
627
- <dl>
628
- <dt>
629
- Type
630
- </dt>
631
- <dd>
632
-
633
- <span class="param-type">Promise.&lt;boolean></span>
634
-
635
-
636
- </dd>
637
- </dl>
638
-
639
-
640
-
641
-
642
-
643
-
644
-
645
-
646
-
647
-
648
-
649
-
650
-
651
- <h4 class="name" id="getAppAuthUrl"><span class="type-signature">(async) </span>getAppAuthUrl<span class="signature">()</span><span class="type-signature"> &rarr; {Promise.&lt;string>}</span></h4>
652
-
653
-
654
-
655
-
656
-
657
-
658
- <div class="description">
659
- Returns the auth URL that users can use to authenticate themselves to the
660
- specified application.
661
- </div>
662
-
663
-
664
-
665
-
666
-
667
-
668
-
669
-
670
-
671
-
672
-
673
-
674
-
675
- <h5 class="subsection-title">Properties:</h5>
676
-
677
-
678
-
679
- <table class="props">
680
- <thead>
681
- <tr>
682
-
683
- <th>Name</th>
684
-
685
-
686
- <th>Type</th>
687
-
688
-
689
-
690
-
691
-
692
- <th class="last">Description</th>
693
- </tr>
694
- </thead>
695
-
696
- <tbody>
697
-
698
-
699
- <tr>
700
-
701
- <td class="name"><code>application</code></td>
702
-
703
-
704
- <td class="type">
705
-
706
-
707
- <span class="param-type">string</span>
708
-
709
-
710
-
711
- </td>
712
-
713
-
714
-
715
-
716
-
717
- <td class="description last">The application type.</td>
718
- </tr>
719
-
720
-
721
- </tbody>
722
- </table>
723
-
724
-
725
-
726
-
727
- <dl class="details">
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
- <dt class="tag-source">Source:</dt>
755
- <dd class="tag-source"><ul class="dummy"><li>
756
- <a href="cobalt.js.html">cobalt.js</a>, <a href="cobalt.js.html#line100">line 100</a>
757
- </li></ul></dd>
758
-
759
-
760
-
761
-
762
-
763
-
764
-
765
- </dl>
766
-
767
-
768
-
769
-
770
-
771
-
772
-
773
-
774
-
775
-
776
-
777
-
778
-
779
-
780
-
781
- <h5>Returns:</h5>
782
-
783
-
784
- <div class="param-desc">
785
- The auth URL where users can authenticate themselves.
786
- </div>
787
-
788
-
789
-
790
- <dl>
791
- <dt>
792
- Type
793
- </dt>
794
- <dd>
795
-
796
- <span class="param-type">Promise.&lt;string></span>
797
-
798
-
799
- </dd>
800
- </dl>
801
-
802
-
803
-
804
-
805
-
806
-
807
-
808
-
809
-
810
-
811
-
812
-
813
-
814
- <h4 class="name" id="installTemplate"><span class="type-signature">(async) </span>installTemplate<span class="signature">()</span><span class="type-signature"> &rarr; {Promise.&lt;<a href="global.html#Workflow">Workflow</a>>}</span></h4>
815
-
816
-
817
-
818
-
819
-
820
-
821
- <div class="description">
822
- Install the given template.
823
- </div>
824
-
825
-
826
-
827
-
828
-
829
-
830
-
831
-
832
-
833
-
834
-
835
-
836
-
837
- <h5 class="subsection-title">Properties:</h5>
838
-
839
-
840
-
841
- <table class="props">
842
- <thead>
843
- <tr>
844
-
845
- <th>Name</th>
846
-
847
-
848
- <th>Type</th>
849
-
850
-
851
-
852
-
853
-
854
- <th class="last">Description</th>
855
- </tr>
856
- </thead>
857
-
858
- <tbody>
859
-
860
-
861
- <tr>
862
-
863
- <td class="name"><code>templateId</code></td>
864
-
865
-
866
- <td class="type">
867
-
868
-
869
- <span class="param-type">string</span>
870
-
871
-
872
-
873
- </td>
874
-
875
-
876
-
877
-
878
-
879
- <td class="description last">The ID of the template you want to install.</td>
880
- </tr>
881
-
882
-
883
- </tbody>
884
- </table>
885
-
886
-
887
-
888
-
889
- <dl class="details">
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
- <dt class="tag-source">Source:</dt>
917
- <dd class="tag-source"><ul class="dummy"><li>
918
- <a href="cobalt.js.html">cobalt.js</a>, <a href="cobalt.js.html#line69">line 69</a>
919
- </li></ul></dd>
920
-
921
-
922
-
923
-
924
-
925
-
926
-
927
- </dl>
928
-
929
-
930
-
931
-
932
-
933
-
934
-
935
-
936
-
937
-
938
-
939
-
940
-
941
-
942
-
943
- <h5>Returns:</h5>
944
-
945
-
946
-
947
-
948
- <dl>
949
- <dt>
950
- Type
951
- </dt>
952
- <dd>
953
-
954
- <span class="param-type">Promise.&lt;<a href="global.html#Workflow">Workflow</a>></span>
955
-
956
-
957
- </dd>
958
- </dl>
959
-
960
-
961
-
962
-
963
-
964
-
965
-
966
-
967
-
968
-
969
-
970
-
971
-
972
- <h4 class="name" id="saveNode"><span class="type-signature">(async) </span>saveNode<span class="signature">()</span><span class="type-signature"> &rarr; {Promise.&lt;<a href="global.html#Workflow">Workflow</a>>}</span></h4>
973
-
974
-
975
-
976
-
977
-
978
-
979
- <div class="description">
980
- Save the input data for the specified node.
981
- </div>
982
-
983
-
984
-
985
-
986
-
987
-
988
-
989
-
990
-
991
-
992
-
993
-
994
-
995
- <h5 class="subsection-title">Properties:</h5>
996
-
997
-
998
-
999
- <table class="props">
1000
- <thead>
1001
- <tr>
1002
-
1003
- <th>Name</th>
1004
-
1005
-
1006
- <th>Type</th>
1007
-
1008
-
1009
-
1010
-
1011
-
1012
- <th class="last">Description</th>
1013
- </tr>
1014
- </thead>
1015
-
1016
- <tbody>
1017
-
1018
-
1019
- <tr>
1020
-
1021
- <td class="name"><code>workflowId</code></td>
1022
-
1023
-
1024
- <td class="type">
1025
-
1026
-
1027
- <span class="param-type">string</span>
1028
-
1029
-
1030
-
1031
- </td>
1032
-
1033
-
1034
-
1035
-
1036
-
1037
- <td class="description last">The ID of the workflow.</td>
1038
- </tr>
1039
-
1040
-
1041
-
1042
- <tr>
1043
-
1044
- <td class="name"><code>nodeId</code></td>
1045
-
1046
-
1047
- <td class="type">
1048
-
1049
-
1050
- <span class="param-type">string</span>
1051
-
1052
-
1053
-
1054
- </td>
1055
-
1056
-
1057
-
1058
-
1059
-
1060
- <td class="description last">The ID of the node.</td>
1061
- </tr>
1062
-
1063
-
1064
-
1065
- <tr>
1066
-
1067
- <td class="name"><code>inputData</code></td>
1068
-
1069
-
1070
- <td class="type">
1071
-
1072
-
1073
- <span class="param-type">object</span>
1074
-
1075
-
1076
-
1077
- </td>
1078
-
1079
-
1080
-
1081
-
1082
-
1083
- <td class="description last">The input data for the node.</td>
1084
- </tr>
1085
-
1086
-
1087
- </tbody>
1088
- </table>
1089
-
1090
-
1091
-
1092
-
1093
- <dl class="details">
1094
-
1095
-
1096
-
1097
-
1098
-
1099
-
1100
-
1101
-
1102
-
1103
-
1104
-
1105
-
1106
-
1107
-
1108
-
1109
-
1110
-
1111
-
1112
-
1113
-
1114
-
1115
-
1116
-
1117
-
1118
-
1119
-
1120
- <dt class="tag-source">Source:</dt>
1121
- <dd class="tag-source"><ul class="dummy"><li>
1122
- <a href="cobalt.js.html">cobalt.js</a>, <a href="cobalt.js.html#line117">line 117</a>
1123
- </li></ul></dd>
1124
-
1125
-
1126
-
1127
-
1128
-
1129
-
1130
-
1131
- </dl>
1132
-
1133
-
1134
-
1135
-
1136
-
1137
-
1138
-
1139
-
1140
-
1141
-
1142
-
1143
-
1144
-
1145
-
1146
-
1147
- <h5>Returns:</h5>
1148
-
1149
-
1150
-
1151
-
1152
- <dl>
1153
- <dt>
1154
- Type
1155
- </dt>
1156
- <dd>
1157
-
1158
- <span class="param-type">Promise.&lt;<a href="global.html#Workflow">Workflow</a>></span>
1159
-
1160
-
1161
- </dd>
1162
- </dl>
1163
-
1164
-
1165
-
1166
-
1167
-
1168
-
1169
-
1170
-
1171
-
1172
-
1173
-
1174
-
1175
-
1176
- </article>
1177
-
1178
- </section>
1179
-
1180
-
1181
-
1182
-
1183
- </div>
1184
-
1185
- <nav>
1186
- <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Cobalt.html">Cobalt</a></li></ul><h3><a href="global.html">Global</a></h3>
1187
- </nav>
1188
-
1189
- <br class="clear">
1190
-
1191
- <footer>
1192
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Fri Sep 09 2022 11:59:06 GMT+0530 (India Standard Time)
1193
- </footer>
1194
-
1195
- <script> prettyPrint(); </script>
1196
- <script src="scripts/linenumber.js"> </script>
1197
- </body>
1198
- </html>