@docbrasil/api-systemmanager 1.1.26 → 1.1.27

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/doc/api.md CHANGED
@@ -1398,6 +1398,11 @@ await api.user.application.list(params, session);
1398
1398
  Class user access to charts
1399
1399
 
1400
1400
  **Kind**: global class
1401
+
1402
+ * [Chart](#Chart)
1403
+ * [.getData(params, session)](#Chart+getData) ⇒ <code>promise</code>
1404
+ * [.getQuestion(params, session)](#Chart+getQuestion) ⇒ <code>promise</code>
1405
+
1401
1406
  <a name="Chart+getData"></a>
1402
1407
 
1403
1408
  ### chart.getData(params, session) ⇒ <code>promise</code>
@@ -1424,6 +1429,36 @@ const params = {
1424
1429
  const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
1425
1430
  await api.user.dashboard.chart.getData(params, session);
1426
1431
  ```
1432
+ <a name="Chart+getQuestion"></a>
1433
+
1434
+ ### chart.getQuestion(params, session) ⇒ <code>promise</code>
1435
+ Get the question data from a chart data
1436
+
1437
+ **Kind**: instance method of [<code>Chart</code>](#Chart)
1438
+ **Returns**: <code>promise</code> - data the question data
1439
+ **Access**: public
1440
+ **Author**: Myndware <augusto.pissarra@myndware.com>
1441
+
1442
+ | Param | Type | Description |
1443
+ | --- | --- | --- |
1444
+ | params | <code>object</code> | Params to get helps from topic |
1445
+ | params.orgId | <code>object</code> | The organization id of the question |
1446
+ | params.processId | <code>object</code> | The process id of the question |
1447
+ | params.path | <code>object</code> | The path of the question so we can retrieve it |
1448
+ | session | <code>string</code> | Session, token JWT |
1449
+
1450
+ **Example**
1451
+ ```js
1452
+ const API = require('@docbrasil/api-systemmanager');
1453
+ const api = new API();
1454
+ const params = {
1455
+ orgId: '637e7523f555fabdfb1ed7b6',
1456
+ processId: '123e7523f555fabdfb1ed7c6',
1457
+ path: 'Checklist.Group Name.Field Name'
1458
+ };
1459
+ const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
1460
+ await api.user.dashboard.chart.getQuestion(params, session);
1461
+ ```
1427
1462
  <a name="Dashboard"></a>
1428
1463
 
1429
1464
  ## Dashboard
package/docs/Chart.html CHANGED
@@ -487,6 +487,302 @@ await api.user.dashboard.chart.getData(params, session);</code></pre>
487
487
 
488
488
 
489
489
 
490
+ </div>
491
+
492
+ <div class="member">
493
+
494
+
495
+
496
+ <h4 class="name" id="getQuestion">
497
+ <a class="href-link" href="#getQuestion">#</a>
498
+
499
+
500
+ <span class='tag'>async</span>
501
+
502
+
503
+ <span class="code-name">
504
+
505
+ getQuestion<span class="signature">(params, session)</span><span class="type-signature"> &rarr; {promise}</span>
506
+
507
+ </span>
508
+ </h4>
509
+
510
+
511
+
512
+
513
+ <div class="description">
514
+ Get the question data from a chart data
515
+ </div>
516
+
517
+
518
+
519
+
520
+
521
+
522
+
523
+
524
+
525
+
526
+ <h5>Parameters:</h5>
527
+
528
+ <div class="table-container">
529
+ <table class="params table">
530
+ <thead>
531
+ <tr>
532
+
533
+ <th>Name</th>
534
+
535
+
536
+ <th>Type</th>
537
+
538
+
539
+
540
+
541
+
542
+ <th class="last">Description</th>
543
+ </tr>
544
+ </thead>
545
+
546
+ <tbody>
547
+
548
+
549
+
550
+ <tr class="deep-level-0">
551
+
552
+ <td class="name"><code>params</code></td>
553
+
554
+
555
+ <td class="type">
556
+
557
+
558
+ <code class="param-type">object</code>
559
+
560
+
561
+
562
+ </td>
563
+
564
+
565
+
566
+
567
+
568
+ <td class="description last">Params to get helps from topic</td>
569
+ </tr>
570
+
571
+
572
+
573
+
574
+ <tr class="deep-level-1">
575
+
576
+ <td class="name"><code>orgId</code></td>
577
+
578
+
579
+ <td class="type">
580
+
581
+
582
+ <code class="param-type">object</code>
583
+
584
+
585
+
586
+ </td>
587
+
588
+
589
+
590
+
591
+
592
+ <td class="description last">The organization id of the question</td>
593
+ </tr>
594
+
595
+
596
+
597
+ <tr class="deep-level-1">
598
+
599
+ <td class="name"><code>processId</code></td>
600
+
601
+
602
+ <td class="type">
603
+
604
+
605
+ <code class="param-type">object</code>
606
+
607
+
608
+
609
+ </td>
610
+
611
+
612
+
613
+
614
+
615
+ <td class="description last">The process id of the question</td>
616
+ </tr>
617
+
618
+
619
+
620
+ <tr class="deep-level-1">
621
+
622
+ <td class="name"><code>path</code></td>
623
+
624
+
625
+ <td class="type">
626
+
627
+
628
+ <code class="param-type">object</code>
629
+
630
+
631
+
632
+ </td>
633
+
634
+
635
+
636
+
637
+
638
+ <td class="description last">The path of the question so we can retrieve it</td>
639
+ </tr>
640
+
641
+
642
+
643
+
644
+
645
+
646
+
647
+ <tr class="deep-level-0">
648
+
649
+ <td class="name"><code>session</code></td>
650
+
651
+
652
+ <td class="type">
653
+
654
+
655
+ <code class="param-type">string</code>
656
+
657
+
658
+
659
+ </td>
660
+
661
+
662
+
663
+
664
+
665
+ <td class="description last">Session, token JWT</td>
666
+ </tr>
667
+
668
+
669
+
670
+ </tbody>
671
+ </table>
672
+ </div>
673
+
674
+
675
+
676
+
677
+
678
+ <dl class="details">
679
+
680
+
681
+
682
+
683
+
684
+
685
+
686
+
687
+
688
+
689
+
690
+
691
+
692
+
693
+
694
+
695
+
696
+
697
+ <dt class="tag-author">Author:</dt>
698
+ <dd class="tag-author">
699
+ <ul>
700
+ <li><a href="mailto:augusto.pissarra@myndware.com">Myndware</a></li>
701
+ </ul>
702
+ </dd>
703
+
704
+
705
+
706
+
707
+
708
+
709
+
710
+
711
+
712
+
713
+
714
+
715
+
716
+
717
+ <p class="tag-source">
718
+ <a href="user_dashboard.js.html" class="button">View Source</a>
719
+ <span>
720
+ <a href="user_dashboard.js.html">user/dashboard.js</a>, <a href="user_dashboard.js.html#line107">line 107</a>
721
+ </span>
722
+ </p>
723
+
724
+ </dl>
725
+
726
+
727
+
728
+
729
+
730
+
731
+
732
+
733
+
734
+
735
+
736
+
737
+
738
+
739
+
740
+
741
+
742
+
743
+ <div class='columns method-parameter'>
744
+ <div class="column is-2"><label>Returns:</label></div>
745
+ <div class="column is-10">
746
+
747
+
748
+
749
+ <div class="columns">
750
+
751
+ <div class='param-desc column is-7'>data the question data</div>
752
+
753
+
754
+ <div class='column is-5 has-text-left'>
755
+ <label>Type: </label>
756
+
757
+ <code class="param-type">promise</code>
758
+
759
+
760
+ </div>
761
+
762
+ </div>
763
+
764
+
765
+ </div>
766
+ </div>
767
+
768
+
769
+
770
+
771
+ <h5>Example</h5>
772
+
773
+
774
+ <pre class="prettyprint"><code>const API = require('@docbrasil/api-systemmanager');
775
+ const api = new API();
776
+ const params = {
777
+ orgId: '637e7523f555fabdfb1ed7b6',
778
+ processId: '123e7523f555fabdfb1ed7c6',
779
+ path: 'Checklist.Group Name.Field Name'
780
+ };
781
+ const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
782
+ await api.user.dashboard.chart.getQuestion(params, session);</code></pre>
783
+
784
+
785
+
490
786
  </div>
491
787
 
492
788
  </div>
@@ -167,7 +167,7 @@
167
167
  <p class="tag-source">
168
168
  <a href="user_dashboard.js.html" class="button">View Source</a>
169
169
  <span>
170
- <a href="user_dashboard.js.html">user/dashboard.js</a>, <a href="user_dashboard.js.html#line90">line 90</a>
170
+ <a href="user_dashboard.js.html">user/dashboard.js</a>, <a href="user_dashboard.js.html#line130">line 130</a>
171
171
  </span>
172
172
  </p>
173
173
 
@@ -286,7 +286,7 @@
286
286
  <p class="tag-source">
287
287
  <a href="user_dashboard.js.html" class="button">View Source</a>
288
288
  <span>
289
- <a href="user_dashboard.js.html">user/dashboard.js</a>, <a href="user_dashboard.js.html#line144">line 144</a>
289
+ <a href="user_dashboard.js.html">user/dashboard.js</a>, <a href="user_dashboard.js.html#line184">line 184</a>
290
290
  </span>
291
291
  </p>
292
292