@docbrasil/api-systemmanager 1.1.25 → 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
@@ -1503,6 +1538,9 @@ Class for documents, permission user
1503
1538
  * [.uploadSignedDocument(params)](#Documents+uploadSignedDocument) ⇒ <code>Promise.&lt;boolean&gt;</code>
1504
1539
  * [.checkPrimaryKeys(params, session)](#Documents+checkPrimaryKeys) ⇒ <code>Promise.&lt;array&gt;</code> \| <code>array.&lt;string&gt;</code>
1505
1540
  * [.searchDocuments(params, session)](#Documents+searchDocuments) ⇒ <code>promise</code> \| <code>number</code> \| <code>array.&lt;object&gt;</code> \| <code>number</code> \| <code>number</code>
1541
+ * [.exportExcelForAllPages(params, session)](#Documents+exportExcelForAllPages) ⇒ <code>promise</code>
1542
+ * [.exportWmsExcelForAllPages(params, session)](#Documents+exportWmsExcelForAllPages) ⇒ <code>promise</code>
1543
+ * [.performDownloadComplete(params, session)](#Documents+performDownloadComplete) ⇒ <code>promise</code>
1506
1544
 
1507
1545
  <a name="Documents+add"></a>
1508
1546
 
@@ -1905,6 +1943,100 @@ const params = {
1905
1943
  const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
1906
1944
  const retSearch = await api.user.document.searchDocuments(params, session);
1907
1945
  ```
1946
+ <a name="Documents+exportExcelForAllPages"></a>
1947
+
1948
+ ### documents.exportExcelForAllPages(params, session) ⇒ <code>promise</code>
1949
+ Method to export excel for all pages
1950
+
1951
+ **Kind**: instance method of [<code>Documents</code>](#Documents)
1952
+ **Returns**: <code>promise</code> - returned data from the export excel for all pages
1953
+ **Access**: public
1954
+ **Author**: Myndware <augusto.pissarra@myndware.com>
1955
+
1956
+ | Param | Type | Description |
1957
+ | --- | --- | --- |
1958
+ | params | <code>object</code> | Params to export excel for all pages |
1959
+ | params.query | <code>object</code> | Export excel for all pages query |
1960
+ | params.orgId | <code>object</code> | Organization id (_id database) |
1961
+ | session | <code>string</code> | Session, token JWT |
1962
+
1963
+ **Example**
1964
+ ```js
1965
+ const API = require('@docbrasil/api-systemmanager');
1966
+ const api = new API();
1967
+ const params = {
1968
+ query: {p: 20, i: 1, s: 'Mais recentes', as: '', m: 'w', ai: '57e6a3bd6be6b45210833fae'},
1969
+ orgId: '55e4a3bd6be6b45210833fae',
1970
+ };
1971
+ const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
1972
+ const retSearch = await api.user.document.exportExcelForAllPages(params, session);
1973
+ ```
1974
+ <a name="Documents+exportWmsExcelForAllPages"></a>
1975
+
1976
+ ### documents.exportWmsExcelForAllPages(params, session) ⇒ <code>promise</code>
1977
+ Method to export Wms Excel for all pages
1978
+
1979
+ **Kind**: instance method of [<code>Documents</code>](#Documents)
1980
+ **Returns**: <code>promise</code> - returned data from the export Wms Excel for all pages
1981
+ **Access**: public
1982
+ **Author**: Myndware <augusto.pissarra@myndware.com>
1983
+
1984
+ | Param | Type | Description |
1985
+ | --- | --- | --- |
1986
+ | params | <code>object</code> | Params to export Wms Excel for all pages |
1987
+ | params.query | <code>object</code> | export Wms Excel for all pages query |
1988
+ | params.orgId | <code>object</code> | Organization id (_id database) |
1989
+ | session | <code>string</code> | Session, token JWT |
1990
+
1991
+ **Example**
1992
+ ```js
1993
+ const API = require('@docbrasil/api-systemmanager');
1994
+ const api = new API();
1995
+ const params = {
1996
+ query: {p: 20, i: 1, s: 'Mais recentes', as: '', m: 'w', ai: '57e6a3bd6be6b45210833fae'},
1997
+ orgId: '55e4a3bd6be6b45210833fae',
1998
+ };
1999
+ const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
2000
+ const retSearch = await api.user.document.exportWmsExcelForAllPages(params, session);
2001
+ ```
2002
+ <a name="Documents+performDownloadComplete"></a>
2003
+
2004
+ ### documents.performDownloadComplete(params, session) ⇒ <code>promise</code>
2005
+ Method to perform download complete for all pages
2006
+
2007
+ **Kind**: instance method of [<code>Documents</code>](#Documents)
2008
+ **Returns**: <code>promise</code> - returned data from the perform download complete for all pages
2009
+ **Access**: public
2010
+ **Author**: Myndware <augusto.pissarra@myndware.com>
2011
+
2012
+ | Param | Type | Description |
2013
+ | --- | --- | --- |
2014
+ | params | <code>object</code> | Params to perform download complete for all pages |
2015
+ | params.data | <code>object</code> | data to be send to download |
2016
+ | params.query | <code>object</code> | perform download complete for all pages query |
2017
+ | params.orgId | <code>object</code> | Organization id (_id database) |
2018
+ | session | <code>string</code> | Session, token JWT |
2019
+
2020
+ **Example**
2021
+ ```js
2022
+ const API = require('@docbrasil/api-systemmanager');
2023
+ const api = new API();
2024
+ const params = {
2025
+ query: {p: 20, i: 1, s: 'Mais recentes', as: '', m: 'w', ai: '57e6a3bd6be6b45210833fae'},
2026
+ orgId: '55e4a3bd6be6b45210833fae',
2027
+ data: {
2028
+ destAws = {
2029
+ destAwsKey: '',
2030
+ destAwsSecret: '',
2031
+ destAwsBucket: '',
2032
+ destAwsRegion: ''
2033
+ },
2034
+ maxFileSize: ''
2035
+ }
2036
+ };
2037
+ const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
2038
+ const retSearch = await api.user.document.performDownloadComplete(params, session);
2039
+ ```
1908
2040
  <a name="Help"></a>
1909
2041
 
1910
2042
  ## Help
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