@docbrasil/api-systemmanager 1.1.63 → 1.1.65
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/api/user/kanban.js +148 -0
- package/dist/bundle.cjs +148 -0
- package/dist/bundle.mjs +1 -1
- package/doc/api.md +97 -0
- package/docs/Kanban.html +961 -6
- package/docs/user_kanban.js.html +148 -0
- package/package.json +1 -1
package/docs/Kanban.html
CHANGED
|
@@ -448,7 +448,7 @@
|
|
|
448
448
|
<p class="tag-source">
|
|
449
449
|
<a href="user_kanban.js.html" class="button">View Source</a>
|
|
450
450
|
<span>
|
|
451
|
-
<a href="user_kanban.js.html">user/kanban.js</a>, <a href="user_kanban.js.html#
|
|
451
|
+
<a href="user_kanban.js.html">user/kanban.js</a>, <a href="user_kanban.js.html#line415">line 415</a>
|
|
452
452
|
</span>
|
|
453
453
|
</p>
|
|
454
454
|
|
|
@@ -1273,7 +1273,7 @@ Expected response structure:
|
|
|
1273
1273
|
<p class="tag-source">
|
|
1274
1274
|
<a href="user_kanban.js.html" class="button">View Source</a>
|
|
1275
1275
|
<span>
|
|
1276
|
-
<a href="user_kanban.js.html">user/kanban.js</a>, <a href="user_kanban.js.html#
|
|
1276
|
+
<a href="user_kanban.js.html">user/kanban.js</a>, <a href="user_kanban.js.html#line475">line 475</a>
|
|
1277
1277
|
</span>
|
|
1278
1278
|
</p>
|
|
1279
1279
|
|
|
@@ -1404,6 +1404,938 @@ Expected response structure (error):
|
|
|
1404
1404
|
|
|
1405
1405
|
|
|
1406
1406
|
|
|
1407
|
+
</div>
|
|
1408
|
+
|
|
1409
|
+
<div class="member">
|
|
1410
|
+
|
|
1411
|
+
|
|
1412
|
+
|
|
1413
|
+
<h4 class="name" id="startTask">
|
|
1414
|
+
<a class="href-link" href="#startTask">#</a>
|
|
1415
|
+
|
|
1416
|
+
|
|
1417
|
+
<span class='tag'>async</span>
|
|
1418
|
+
|
|
1419
|
+
|
|
1420
|
+
<span class="code-name">
|
|
1421
|
+
|
|
1422
|
+
startTask<span class="signature">(params, session)</span><span class="type-signature"> → {promise|Object|boolean|string|string}</span>
|
|
1423
|
+
|
|
1424
|
+
</span>
|
|
1425
|
+
</h4>
|
|
1426
|
+
|
|
1427
|
+
|
|
1428
|
+
|
|
1429
|
+
|
|
1430
|
+
<div class="description">
|
|
1431
|
+
Starts a new task in the Kanban board for a specific organization process
|
|
1432
|
+
</div>
|
|
1433
|
+
|
|
1434
|
+
|
|
1435
|
+
|
|
1436
|
+
|
|
1437
|
+
|
|
1438
|
+
|
|
1439
|
+
|
|
1440
|
+
|
|
1441
|
+
|
|
1442
|
+
|
|
1443
|
+
<h5>Parameters:</h5>
|
|
1444
|
+
|
|
1445
|
+
<div class="table-container">
|
|
1446
|
+
<table class="params table">
|
|
1447
|
+
<thead>
|
|
1448
|
+
<tr>
|
|
1449
|
+
|
|
1450
|
+
<th>Name</th>
|
|
1451
|
+
|
|
1452
|
+
|
|
1453
|
+
<th>Type</th>
|
|
1454
|
+
|
|
1455
|
+
|
|
1456
|
+
<th>Attributes</th>
|
|
1457
|
+
|
|
1458
|
+
|
|
1459
|
+
|
|
1460
|
+
|
|
1461
|
+
<th class="last">Description</th>
|
|
1462
|
+
</tr>
|
|
1463
|
+
</thead>
|
|
1464
|
+
|
|
1465
|
+
<tbody>
|
|
1466
|
+
|
|
1467
|
+
|
|
1468
|
+
|
|
1469
|
+
<tr class="deep-level-0">
|
|
1470
|
+
|
|
1471
|
+
<td class="name"><code>params</code></td>
|
|
1472
|
+
|
|
1473
|
+
|
|
1474
|
+
<td class="type">
|
|
1475
|
+
|
|
1476
|
+
|
|
1477
|
+
<code class="param-type">Object</code>
|
|
1478
|
+
|
|
1479
|
+
|
|
1480
|
+
|
|
1481
|
+
</td>
|
|
1482
|
+
|
|
1483
|
+
|
|
1484
|
+
<td class="attributes">
|
|
1485
|
+
|
|
1486
|
+
|
|
1487
|
+
|
|
1488
|
+
|
|
1489
|
+
|
|
1490
|
+
</td>
|
|
1491
|
+
|
|
1492
|
+
|
|
1493
|
+
|
|
1494
|
+
|
|
1495
|
+
<td class="description last">Parameters object</td>
|
|
1496
|
+
</tr>
|
|
1497
|
+
|
|
1498
|
+
|
|
1499
|
+
|
|
1500
|
+
|
|
1501
|
+
<tr class="deep-level-1">
|
|
1502
|
+
|
|
1503
|
+
<td class="name"><code>orgId</code></td>
|
|
1504
|
+
|
|
1505
|
+
|
|
1506
|
+
<td class="type">
|
|
1507
|
+
|
|
1508
|
+
|
|
1509
|
+
<code class="param-type">string</code>
|
|
1510
|
+
|
|
1511
|
+
|
|
1512
|
+
|
|
1513
|
+
</td>
|
|
1514
|
+
|
|
1515
|
+
|
|
1516
|
+
<td class="attributes">
|
|
1517
|
+
|
|
1518
|
+
|
|
1519
|
+
|
|
1520
|
+
|
|
1521
|
+
|
|
1522
|
+
</td>
|
|
1523
|
+
|
|
1524
|
+
|
|
1525
|
+
|
|
1526
|
+
|
|
1527
|
+
<td class="description last">Organization id (_id database)</td>
|
|
1528
|
+
</tr>
|
|
1529
|
+
|
|
1530
|
+
|
|
1531
|
+
|
|
1532
|
+
<tr class="deep-level-1">
|
|
1533
|
+
|
|
1534
|
+
<td class="name"><code>orgProcessName</code></td>
|
|
1535
|
+
|
|
1536
|
+
|
|
1537
|
+
<td class="type">
|
|
1538
|
+
|
|
1539
|
+
|
|
1540
|
+
<code class="param-type">string</code>
|
|
1541
|
+
|
|
1542
|
+
|
|
1543
|
+
|
|
1544
|
+
</td>
|
|
1545
|
+
|
|
1546
|
+
|
|
1547
|
+
<td class="attributes">
|
|
1548
|
+
|
|
1549
|
+
|
|
1550
|
+
|
|
1551
|
+
|
|
1552
|
+
|
|
1553
|
+
</td>
|
|
1554
|
+
|
|
1555
|
+
|
|
1556
|
+
|
|
1557
|
+
|
|
1558
|
+
<td class="description last">The name of the organization process</td>
|
|
1559
|
+
</tr>
|
|
1560
|
+
|
|
1561
|
+
|
|
1562
|
+
|
|
1563
|
+
<tr class="deep-level-1">
|
|
1564
|
+
|
|
1565
|
+
<td class="name"><code>title</code></td>
|
|
1566
|
+
|
|
1567
|
+
|
|
1568
|
+
<td class="type">
|
|
1569
|
+
|
|
1570
|
+
|
|
1571
|
+
<code class="param-type">string</code>
|
|
1572
|
+
|
|
1573
|
+
|
|
1574
|
+
|
|
1575
|
+
</td>
|
|
1576
|
+
|
|
1577
|
+
|
|
1578
|
+
<td class="attributes">
|
|
1579
|
+
|
|
1580
|
+
|
|
1581
|
+
|
|
1582
|
+
|
|
1583
|
+
|
|
1584
|
+
</td>
|
|
1585
|
+
|
|
1586
|
+
|
|
1587
|
+
|
|
1588
|
+
|
|
1589
|
+
<td class="description last">The title of the new task</td>
|
|
1590
|
+
</tr>
|
|
1591
|
+
|
|
1592
|
+
|
|
1593
|
+
|
|
1594
|
+
<tr class="deep-level-1">
|
|
1595
|
+
|
|
1596
|
+
<td class="name"><code>status</code></td>
|
|
1597
|
+
|
|
1598
|
+
|
|
1599
|
+
<td class="type">
|
|
1600
|
+
|
|
1601
|
+
|
|
1602
|
+
<code class="param-type">string</code>
|
|
1603
|
+
|
|
1604
|
+
|
|
1605
|
+
|
|
1606
|
+
</td>
|
|
1607
|
+
|
|
1608
|
+
|
|
1609
|
+
<td class="attributes">
|
|
1610
|
+
|
|
1611
|
+
|
|
1612
|
+
|
|
1613
|
+
|
|
1614
|
+
|
|
1615
|
+
</td>
|
|
1616
|
+
|
|
1617
|
+
|
|
1618
|
+
|
|
1619
|
+
|
|
1620
|
+
<td class="description last">The status id of the new task</td>
|
|
1621
|
+
</tr>
|
|
1622
|
+
|
|
1623
|
+
|
|
1624
|
+
|
|
1625
|
+
<tr class="deep-level-1">
|
|
1626
|
+
|
|
1627
|
+
<td class="name"><code>tags</code></td>
|
|
1628
|
+
|
|
1629
|
+
|
|
1630
|
+
<td class="type">
|
|
1631
|
+
|
|
1632
|
+
|
|
1633
|
+
<code class="param-type">Array</code>
|
|
1634
|
+
|
|
1635
|
+
|
|
1636
|
+
|
|
1637
|
+
</td>
|
|
1638
|
+
|
|
1639
|
+
|
|
1640
|
+
<td class="attributes">
|
|
1641
|
+
|
|
1642
|
+
<optional><br>
|
|
1643
|
+
|
|
1644
|
+
|
|
1645
|
+
|
|
1646
|
+
|
|
1647
|
+
|
|
1648
|
+
</td>
|
|
1649
|
+
|
|
1650
|
+
|
|
1651
|
+
|
|
1652
|
+
|
|
1653
|
+
<td class="description last">Array of tag ids for the new task (optional)</td>
|
|
1654
|
+
</tr>
|
|
1655
|
+
|
|
1656
|
+
|
|
1657
|
+
|
|
1658
|
+
<tr class="deep-level-1">
|
|
1659
|
+
|
|
1660
|
+
<td class="name"><code>tasks</code></td>
|
|
1661
|
+
|
|
1662
|
+
|
|
1663
|
+
<td class="type">
|
|
1664
|
+
|
|
1665
|
+
|
|
1666
|
+
<code class="param-type">Array</code>
|
|
1667
|
+
|
|
1668
|
+
|
|
1669
|
+
|
|
1670
|
+
</td>
|
|
1671
|
+
|
|
1672
|
+
|
|
1673
|
+
<td class="attributes">
|
|
1674
|
+
|
|
1675
|
+
<optional><br>
|
|
1676
|
+
|
|
1677
|
+
|
|
1678
|
+
|
|
1679
|
+
|
|
1680
|
+
|
|
1681
|
+
</td>
|
|
1682
|
+
|
|
1683
|
+
|
|
1684
|
+
|
|
1685
|
+
|
|
1686
|
+
<td class="description last">The task ids of each task inside the same status (optional)</td>
|
|
1687
|
+
</tr>
|
|
1688
|
+
|
|
1689
|
+
|
|
1690
|
+
|
|
1691
|
+
|
|
1692
|
+
|
|
1693
|
+
|
|
1694
|
+
|
|
1695
|
+
<tr class="deep-level-0">
|
|
1696
|
+
|
|
1697
|
+
<td class="name"><code>session</code></td>
|
|
1698
|
+
|
|
1699
|
+
|
|
1700
|
+
<td class="type">
|
|
1701
|
+
|
|
1702
|
+
|
|
1703
|
+
<code class="param-type">string</code>
|
|
1704
|
+
|
|
1705
|
+
|
|
1706
|
+
|
|
1707
|
+
</td>
|
|
1708
|
+
|
|
1709
|
+
|
|
1710
|
+
<td class="attributes">
|
|
1711
|
+
|
|
1712
|
+
|
|
1713
|
+
|
|
1714
|
+
|
|
1715
|
+
|
|
1716
|
+
</td>
|
|
1717
|
+
|
|
1718
|
+
|
|
1719
|
+
|
|
1720
|
+
|
|
1721
|
+
<td class="description last">Session, token JWT</td>
|
|
1722
|
+
</tr>
|
|
1723
|
+
|
|
1724
|
+
|
|
1725
|
+
|
|
1726
|
+
</tbody>
|
|
1727
|
+
</table>
|
|
1728
|
+
</div>
|
|
1729
|
+
|
|
1730
|
+
|
|
1731
|
+
|
|
1732
|
+
|
|
1733
|
+
|
|
1734
|
+
<dl class="details">
|
|
1735
|
+
|
|
1736
|
+
|
|
1737
|
+
|
|
1738
|
+
|
|
1739
|
+
|
|
1740
|
+
|
|
1741
|
+
|
|
1742
|
+
|
|
1743
|
+
|
|
1744
|
+
|
|
1745
|
+
|
|
1746
|
+
|
|
1747
|
+
|
|
1748
|
+
|
|
1749
|
+
|
|
1750
|
+
|
|
1751
|
+
|
|
1752
|
+
|
|
1753
|
+
<dt class="tag-author">Author:</dt>
|
|
1754
|
+
<dd class="tag-author">
|
|
1755
|
+
<ul>
|
|
1756
|
+
<li><a href="mailto:augusto.pissarra@myndware.com">Myndware</a></li>
|
|
1757
|
+
</ul>
|
|
1758
|
+
</dd>
|
|
1759
|
+
|
|
1760
|
+
|
|
1761
|
+
|
|
1762
|
+
|
|
1763
|
+
|
|
1764
|
+
|
|
1765
|
+
|
|
1766
|
+
|
|
1767
|
+
|
|
1768
|
+
|
|
1769
|
+
|
|
1770
|
+
|
|
1771
|
+
|
|
1772
|
+
|
|
1773
|
+
<p class="tag-source">
|
|
1774
|
+
<a href="user_kanban.js.html" class="button">View Source</a>
|
|
1775
|
+
<span>
|
|
1776
|
+
<a href="user_kanban.js.html">user/kanban.js</a>, <a href="user_kanban.js.html#line618">line 618</a>
|
|
1777
|
+
</span>
|
|
1778
|
+
</p>
|
|
1779
|
+
|
|
1780
|
+
</dl>
|
|
1781
|
+
|
|
1782
|
+
|
|
1783
|
+
|
|
1784
|
+
|
|
1785
|
+
|
|
1786
|
+
|
|
1787
|
+
|
|
1788
|
+
|
|
1789
|
+
|
|
1790
|
+
|
|
1791
|
+
|
|
1792
|
+
|
|
1793
|
+
|
|
1794
|
+
|
|
1795
|
+
|
|
1796
|
+
|
|
1797
|
+
|
|
1798
|
+
|
|
1799
|
+
<div class='columns method-parameter'>
|
|
1800
|
+
<div class="column is-2"><label>Returns:</label></div>
|
|
1801
|
+
<div class="column is-10">
|
|
1802
|
+
|
|
1803
|
+
|
|
1804
|
+
|
|
1805
|
+
<div class="columns">
|
|
1806
|
+
|
|
1807
|
+
<div class='param-desc column is-7'>Promise that resolves to operation status</div>
|
|
1808
|
+
|
|
1809
|
+
|
|
1810
|
+
<div class='column is-5 has-text-left'>
|
|
1811
|
+
<label>Type: </label>
|
|
1812
|
+
|
|
1813
|
+
<code class="param-type">promise</code>
|
|
1814
|
+
|
|
1815
|
+
|
|
1816
|
+
</div>
|
|
1817
|
+
|
|
1818
|
+
</div>
|
|
1819
|
+
|
|
1820
|
+
|
|
1821
|
+
|
|
1822
|
+
|
|
1823
|
+
<div class="columns">
|
|
1824
|
+
|
|
1825
|
+
<div class='param-desc column is-7'>returns.data - The response data containing:</div>
|
|
1826
|
+
|
|
1827
|
+
|
|
1828
|
+
<div class='column is-5 has-text-left'>
|
|
1829
|
+
<label>Type: </label>
|
|
1830
|
+
|
|
1831
|
+
<code class="param-type">Object</code>
|
|
1832
|
+
|
|
1833
|
+
|
|
1834
|
+
</div>
|
|
1835
|
+
|
|
1836
|
+
</div>
|
|
1837
|
+
|
|
1838
|
+
|
|
1839
|
+
|
|
1840
|
+
|
|
1841
|
+
<div class="columns">
|
|
1842
|
+
|
|
1843
|
+
<div class='param-desc column is-7'>returns.data.success - Indicates if the operation was successful</div>
|
|
1844
|
+
|
|
1845
|
+
|
|
1846
|
+
<div class='column is-5 has-text-left'>
|
|
1847
|
+
<label>Type: </label>
|
|
1848
|
+
|
|
1849
|
+
<code class="param-type">boolean</code>
|
|
1850
|
+
|
|
1851
|
+
|
|
1852
|
+
</div>
|
|
1853
|
+
|
|
1854
|
+
</div>
|
|
1855
|
+
|
|
1856
|
+
|
|
1857
|
+
|
|
1858
|
+
|
|
1859
|
+
<div class="columns">
|
|
1860
|
+
|
|
1861
|
+
<div class='param-desc column is-7'>[returns.data.taskId] - The ID of the newly created task</div>
|
|
1862
|
+
|
|
1863
|
+
|
|
1864
|
+
<div class='column is-5 has-text-left'>
|
|
1865
|
+
<label>Type: </label>
|
|
1866
|
+
|
|
1867
|
+
<code class="param-type">string</code>
|
|
1868
|
+
|
|
1869
|
+
|
|
1870
|
+
</div>
|
|
1871
|
+
|
|
1872
|
+
</div>
|
|
1873
|
+
|
|
1874
|
+
|
|
1875
|
+
|
|
1876
|
+
|
|
1877
|
+
<div class="columns">
|
|
1878
|
+
|
|
1879
|
+
<div class='param-desc column is-7'>[returns.data.error] - Error message if operation failed</div>
|
|
1880
|
+
|
|
1881
|
+
|
|
1882
|
+
<div class='column is-5 has-text-left'>
|
|
1883
|
+
<label>Type: </label>
|
|
1884
|
+
|
|
1885
|
+
<code class="param-type">string</code>
|
|
1886
|
+
|
|
1887
|
+
|
|
1888
|
+
</div>
|
|
1889
|
+
|
|
1890
|
+
</div>
|
|
1891
|
+
|
|
1892
|
+
|
|
1893
|
+
</div>
|
|
1894
|
+
</div>
|
|
1895
|
+
|
|
1896
|
+
|
|
1897
|
+
|
|
1898
|
+
|
|
1899
|
+
<h5>Example</h5>
|
|
1900
|
+
|
|
1901
|
+
|
|
1902
|
+
<pre class="prettyprint"><code>const API = require('@docbrasil/api-systemmanager');
|
|
1903
|
+
const api = new API();
|
|
1904
|
+
const params = {
|
|
1905
|
+
orgId: '55e4a3bd6be6b45210833fae',
|
|
1906
|
+
orgProcessName: 'employee-onboarding',
|
|
1907
|
+
title: 'Complete employee documentation',
|
|
1908
|
+
status: '507f1f77bcf86cd799439014',
|
|
1909
|
+
tags: ['507f1f77bcf86cd799439015', '507f1f77bcf86cd799439016'],
|
|
1910
|
+
tasks: ['507f1f77bcf86cd799439011', '507f1f77bcf86cd799439012']
|
|
1911
|
+
};
|
|
1912
|
+
const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
|
|
1913
|
+
const result = await api.user.kanban.startTask(params, session);
|
|
1914
|
+
|
|
1915
|
+
Expected response structure (success):
|
|
1916
|
+
{
|
|
1917
|
+
success: true,
|
|
1918
|
+
taskId: '507f1f77bcf86cd799439013'
|
|
1919
|
+
}
|
|
1920
|
+
|
|
1921
|
+
Expected response structure (error):
|
|
1922
|
+
{
|
|
1923
|
+
success: false,
|
|
1924
|
+
error: "Organization process not found"
|
|
1925
|
+
}</code></pre>
|
|
1926
|
+
|
|
1927
|
+
|
|
1928
|
+
|
|
1929
|
+
</div>
|
|
1930
|
+
|
|
1931
|
+
<div class="member">
|
|
1932
|
+
|
|
1933
|
+
|
|
1934
|
+
|
|
1935
|
+
<h4 class="name" id="update">
|
|
1936
|
+
<a class="href-link" href="#update">#</a>
|
|
1937
|
+
|
|
1938
|
+
|
|
1939
|
+
<span class='tag'>async</span>
|
|
1940
|
+
|
|
1941
|
+
|
|
1942
|
+
<span class="code-name">
|
|
1943
|
+
|
|
1944
|
+
update<span class="signature">(params, session)</span><span class="type-signature"> → {promise|Object|boolean|string}</span>
|
|
1945
|
+
|
|
1946
|
+
</span>
|
|
1947
|
+
</h4>
|
|
1948
|
+
|
|
1949
|
+
|
|
1950
|
+
|
|
1951
|
+
|
|
1952
|
+
<div class="description">
|
|
1953
|
+
Updates the tasks order and status
|
|
1954
|
+
</div>
|
|
1955
|
+
|
|
1956
|
+
|
|
1957
|
+
|
|
1958
|
+
|
|
1959
|
+
|
|
1960
|
+
|
|
1961
|
+
|
|
1962
|
+
|
|
1963
|
+
|
|
1964
|
+
|
|
1965
|
+
<h5>Parameters:</h5>
|
|
1966
|
+
|
|
1967
|
+
<div class="table-container">
|
|
1968
|
+
<table class="params table">
|
|
1969
|
+
<thead>
|
|
1970
|
+
<tr>
|
|
1971
|
+
|
|
1972
|
+
<th>Name</th>
|
|
1973
|
+
|
|
1974
|
+
|
|
1975
|
+
<th>Type</th>
|
|
1976
|
+
|
|
1977
|
+
|
|
1978
|
+
|
|
1979
|
+
|
|
1980
|
+
|
|
1981
|
+
<th class="last">Description</th>
|
|
1982
|
+
</tr>
|
|
1983
|
+
</thead>
|
|
1984
|
+
|
|
1985
|
+
<tbody>
|
|
1986
|
+
|
|
1987
|
+
|
|
1988
|
+
|
|
1989
|
+
<tr class="deep-level-0">
|
|
1990
|
+
|
|
1991
|
+
<td class="name"><code>params</code></td>
|
|
1992
|
+
|
|
1993
|
+
|
|
1994
|
+
<td class="type">
|
|
1995
|
+
|
|
1996
|
+
|
|
1997
|
+
<code class="param-type">Object</code>
|
|
1998
|
+
|
|
1999
|
+
|
|
2000
|
+
|
|
2001
|
+
</td>
|
|
2002
|
+
|
|
2003
|
+
|
|
2004
|
+
|
|
2005
|
+
|
|
2006
|
+
|
|
2007
|
+
<td class="description last">Parameters object</td>
|
|
2008
|
+
</tr>
|
|
2009
|
+
|
|
2010
|
+
|
|
2011
|
+
|
|
2012
|
+
|
|
2013
|
+
<tr class="deep-level-1">
|
|
2014
|
+
|
|
2015
|
+
<td class="name"><code>orgId</code></td>
|
|
2016
|
+
|
|
2017
|
+
|
|
2018
|
+
<td class="type">
|
|
2019
|
+
|
|
2020
|
+
|
|
2021
|
+
<code class="param-type">string</code>
|
|
2022
|
+
|
|
2023
|
+
|
|
2024
|
+
|
|
2025
|
+
</td>
|
|
2026
|
+
|
|
2027
|
+
|
|
2028
|
+
|
|
2029
|
+
|
|
2030
|
+
|
|
2031
|
+
<td class="description last">Organization id (_id database)</td>
|
|
2032
|
+
</tr>
|
|
2033
|
+
|
|
2034
|
+
|
|
2035
|
+
|
|
2036
|
+
<tr class="deep-level-1">
|
|
2037
|
+
|
|
2038
|
+
<td class="name"><code>tasks</code></td>
|
|
2039
|
+
|
|
2040
|
+
|
|
2041
|
+
<td class="type">
|
|
2042
|
+
|
|
2043
|
+
|
|
2044
|
+
<code class="param-type">Array</code>
|
|
2045
|
+
|
|
2046
|
+
|
|
2047
|
+
|
|
2048
|
+
</td>
|
|
2049
|
+
|
|
2050
|
+
|
|
2051
|
+
|
|
2052
|
+
|
|
2053
|
+
|
|
2054
|
+
<td class="description last">Array of task objects containing taskId and order</td>
|
|
2055
|
+
</tr>
|
|
2056
|
+
|
|
2057
|
+
|
|
2058
|
+
|
|
2059
|
+
<tr class="deep-level-1">
|
|
2060
|
+
|
|
2061
|
+
<td class="name"><code>tasks[].taskId</code></td>
|
|
2062
|
+
|
|
2063
|
+
|
|
2064
|
+
<td class="type">
|
|
2065
|
+
|
|
2066
|
+
|
|
2067
|
+
<code class="param-type">string</code>
|
|
2068
|
+
|
|
2069
|
+
|
|
2070
|
+
|
|
2071
|
+
</td>
|
|
2072
|
+
|
|
2073
|
+
|
|
2074
|
+
|
|
2075
|
+
|
|
2076
|
+
|
|
2077
|
+
<td class="description last">The unique identifier of the task to update</td>
|
|
2078
|
+
</tr>
|
|
2079
|
+
|
|
2080
|
+
|
|
2081
|
+
|
|
2082
|
+
<tr class="deep-level-1">
|
|
2083
|
+
|
|
2084
|
+
<td class="name"><code>tasks[].order</code></td>
|
|
2085
|
+
|
|
2086
|
+
|
|
2087
|
+
<td class="type">
|
|
2088
|
+
|
|
2089
|
+
|
|
2090
|
+
<code class="param-type">number</code>
|
|
2091
|
+
|
|
2092
|
+
|
|
2093
|
+
|
|
2094
|
+
</td>
|
|
2095
|
+
|
|
2096
|
+
|
|
2097
|
+
|
|
2098
|
+
|
|
2099
|
+
|
|
2100
|
+
<td class="description last">The new order position for the task</td>
|
|
2101
|
+
</tr>
|
|
2102
|
+
|
|
2103
|
+
|
|
2104
|
+
|
|
2105
|
+
<tr class="deep-level-1">
|
|
2106
|
+
|
|
2107
|
+
<td class="name"><code>tasks[].status</code></td>
|
|
2108
|
+
|
|
2109
|
+
|
|
2110
|
+
<td class="type">
|
|
2111
|
+
|
|
2112
|
+
|
|
2113
|
+
<code class="param-type">string</code>
|
|
2114
|
+
|
|
2115
|
+
|
|
2116
|
+
|
|
2117
|
+
</td>
|
|
2118
|
+
|
|
2119
|
+
|
|
2120
|
+
|
|
2121
|
+
|
|
2122
|
+
|
|
2123
|
+
<td class="description last">The status of the task</td>
|
|
2124
|
+
</tr>
|
|
2125
|
+
|
|
2126
|
+
|
|
2127
|
+
|
|
2128
|
+
|
|
2129
|
+
|
|
2130
|
+
|
|
2131
|
+
|
|
2132
|
+
<tr class="deep-level-0">
|
|
2133
|
+
|
|
2134
|
+
<td class="name"><code>session</code></td>
|
|
2135
|
+
|
|
2136
|
+
|
|
2137
|
+
<td class="type">
|
|
2138
|
+
|
|
2139
|
+
|
|
2140
|
+
<code class="param-type">string</code>
|
|
2141
|
+
|
|
2142
|
+
|
|
2143
|
+
|
|
2144
|
+
</td>
|
|
2145
|
+
|
|
2146
|
+
|
|
2147
|
+
|
|
2148
|
+
|
|
2149
|
+
|
|
2150
|
+
<td class="description last">Session, token JWT</td>
|
|
2151
|
+
</tr>
|
|
2152
|
+
|
|
2153
|
+
|
|
2154
|
+
|
|
2155
|
+
</tbody>
|
|
2156
|
+
</table>
|
|
2157
|
+
</div>
|
|
2158
|
+
|
|
2159
|
+
|
|
2160
|
+
|
|
2161
|
+
|
|
2162
|
+
|
|
2163
|
+
<dl class="details">
|
|
2164
|
+
|
|
2165
|
+
|
|
2166
|
+
|
|
2167
|
+
|
|
2168
|
+
|
|
2169
|
+
|
|
2170
|
+
|
|
2171
|
+
|
|
2172
|
+
|
|
2173
|
+
|
|
2174
|
+
|
|
2175
|
+
|
|
2176
|
+
|
|
2177
|
+
|
|
2178
|
+
|
|
2179
|
+
|
|
2180
|
+
|
|
2181
|
+
|
|
2182
|
+
<dt class="tag-author">Author:</dt>
|
|
2183
|
+
<dd class="tag-author">
|
|
2184
|
+
<ul>
|
|
2185
|
+
<li><a href="mailto:augusto.pissarra@myndware.com">Myndware</a></li>
|
|
2186
|
+
</ul>
|
|
2187
|
+
</dd>
|
|
2188
|
+
|
|
2189
|
+
|
|
2190
|
+
|
|
2191
|
+
|
|
2192
|
+
|
|
2193
|
+
|
|
2194
|
+
|
|
2195
|
+
|
|
2196
|
+
|
|
2197
|
+
|
|
2198
|
+
|
|
2199
|
+
|
|
2200
|
+
|
|
2201
|
+
|
|
2202
|
+
<p class="tag-source">
|
|
2203
|
+
<a href="user_kanban.js.html" class="button">View Source</a>
|
|
2204
|
+
<span>
|
|
2205
|
+
<a href="user_kanban.js.html">user/kanban.js</a>, <a href="user_kanban.js.html#line173">line 173</a>
|
|
2206
|
+
</span>
|
|
2207
|
+
</p>
|
|
2208
|
+
|
|
2209
|
+
</dl>
|
|
2210
|
+
|
|
2211
|
+
|
|
2212
|
+
|
|
2213
|
+
|
|
2214
|
+
|
|
2215
|
+
|
|
2216
|
+
|
|
2217
|
+
|
|
2218
|
+
|
|
2219
|
+
|
|
2220
|
+
|
|
2221
|
+
|
|
2222
|
+
|
|
2223
|
+
|
|
2224
|
+
|
|
2225
|
+
|
|
2226
|
+
|
|
2227
|
+
|
|
2228
|
+
<div class='columns method-parameter'>
|
|
2229
|
+
<div class="column is-2"><label>Returns:</label></div>
|
|
2230
|
+
<div class="column is-10">
|
|
2231
|
+
|
|
2232
|
+
|
|
2233
|
+
|
|
2234
|
+
<div class="columns">
|
|
2235
|
+
|
|
2236
|
+
<div class='param-desc column is-7'>Promise that resolves to operation status</div>
|
|
2237
|
+
|
|
2238
|
+
|
|
2239
|
+
<div class='column is-5 has-text-left'>
|
|
2240
|
+
<label>Type: </label>
|
|
2241
|
+
|
|
2242
|
+
<code class="param-type">promise</code>
|
|
2243
|
+
|
|
2244
|
+
|
|
2245
|
+
</div>
|
|
2246
|
+
|
|
2247
|
+
</div>
|
|
2248
|
+
|
|
2249
|
+
|
|
2250
|
+
|
|
2251
|
+
|
|
2252
|
+
<div class="columns">
|
|
2253
|
+
|
|
2254
|
+
<div class='param-desc column is-7'>returns.data - The response data containing:</div>
|
|
2255
|
+
|
|
2256
|
+
|
|
2257
|
+
<div class='column is-5 has-text-left'>
|
|
2258
|
+
<label>Type: </label>
|
|
2259
|
+
|
|
2260
|
+
<code class="param-type">Object</code>
|
|
2261
|
+
|
|
2262
|
+
|
|
2263
|
+
</div>
|
|
2264
|
+
|
|
2265
|
+
</div>
|
|
2266
|
+
|
|
2267
|
+
|
|
2268
|
+
|
|
2269
|
+
|
|
2270
|
+
<div class="columns">
|
|
2271
|
+
|
|
2272
|
+
<div class='param-desc column is-7'>returns.data.success - Indicates if the operation was successful</div>
|
|
2273
|
+
|
|
2274
|
+
|
|
2275
|
+
<div class='column is-5 has-text-left'>
|
|
2276
|
+
<label>Type: </label>
|
|
2277
|
+
|
|
2278
|
+
<code class="param-type">boolean</code>
|
|
2279
|
+
|
|
2280
|
+
|
|
2281
|
+
</div>
|
|
2282
|
+
|
|
2283
|
+
</div>
|
|
2284
|
+
|
|
2285
|
+
|
|
2286
|
+
|
|
2287
|
+
|
|
2288
|
+
<div class="columns">
|
|
2289
|
+
|
|
2290
|
+
<div class='param-desc column is-7'>[returns.data.error] - Error message if operation failed</div>
|
|
2291
|
+
|
|
2292
|
+
|
|
2293
|
+
<div class='column is-5 has-text-left'>
|
|
2294
|
+
<label>Type: </label>
|
|
2295
|
+
|
|
2296
|
+
<code class="param-type">string</code>
|
|
2297
|
+
|
|
2298
|
+
|
|
2299
|
+
</div>
|
|
2300
|
+
|
|
2301
|
+
</div>
|
|
2302
|
+
|
|
2303
|
+
|
|
2304
|
+
</div>
|
|
2305
|
+
</div>
|
|
2306
|
+
|
|
2307
|
+
|
|
2308
|
+
|
|
2309
|
+
|
|
2310
|
+
<h5>Example</h5>
|
|
2311
|
+
|
|
2312
|
+
|
|
2313
|
+
<pre class="prettyprint"><code>const API = require('@docbrasil/api-systemmanager');
|
|
2314
|
+
const api = new API();
|
|
2315
|
+
const params = {
|
|
2316
|
+
orgId: '55e4a3bd6be6b45210833fae',
|
|
2317
|
+
tasks: [
|
|
2318
|
+
{ taskId: '507f1f77bcf86cd799439011', order: 0, status: '507f1f77bcf86cd799439012' },
|
|
2319
|
+
{ taskId: '507f1f77bcf86cd799439012', order: 1, status: '507f1f77bcf86cd799439012' },
|
|
2320
|
+
{ taskId: '507f1f77bcf86cd799439013', order: 0, status: '507f1f77bcf86cd799439013' }
|
|
2321
|
+
]
|
|
2322
|
+
};
|
|
2323
|
+
const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
|
|
2324
|
+
const result = await api.user.kanban.updateTasksOrder(params, session);
|
|
2325
|
+
|
|
2326
|
+
Expected response structure (success):
|
|
2327
|
+
{
|
|
2328
|
+
success: true
|
|
2329
|
+
}
|
|
2330
|
+
|
|
2331
|
+
Expected response structure (error):
|
|
2332
|
+
{
|
|
2333
|
+
success: false,
|
|
2334
|
+
error: "One or more tasks not found"
|
|
2335
|
+
}</code></pre>
|
|
2336
|
+
|
|
2337
|
+
|
|
2338
|
+
|
|
1407
2339
|
</div>
|
|
1408
2340
|
|
|
1409
2341
|
<div class="member">
|
|
@@ -1605,6 +2537,29 @@ Expected response structure (error):
|
|
|
1605
2537
|
|
|
1606
2538
|
|
|
1607
2539
|
|
|
2540
|
+
<tr class="deep-level-1">
|
|
2541
|
+
|
|
2542
|
+
<td class="name"><code>statusList[].guid</code></td>
|
|
2543
|
+
|
|
2544
|
+
|
|
2545
|
+
<td class="type">
|
|
2546
|
+
|
|
2547
|
+
|
|
2548
|
+
<code class="param-type">string</code>
|
|
2549
|
+
|
|
2550
|
+
|
|
2551
|
+
|
|
2552
|
+
</td>
|
|
2553
|
+
|
|
2554
|
+
|
|
2555
|
+
|
|
2556
|
+
|
|
2557
|
+
|
|
2558
|
+
<td class="description last">The guid of the status (the id)</td>
|
|
2559
|
+
</tr>
|
|
2560
|
+
|
|
2561
|
+
|
|
2562
|
+
|
|
1608
2563
|
<tr class="deep-level-1">
|
|
1609
2564
|
|
|
1610
2565
|
<td class="name"><code>statusList[].value</code></td>
|
|
@@ -1751,7 +2706,7 @@ Expected response structure (error):
|
|
|
1751
2706
|
<p class="tag-source">
|
|
1752
2707
|
<a href="user_kanban.js.html" class="button">View Source</a>
|
|
1753
2708
|
<span>
|
|
1754
|
-
<a href="user_kanban.js.html">user/kanban.js</a>, <a href="user_kanban.js.html#
|
|
2709
|
+
<a href="user_kanban.js.html">user/kanban.js</a>, <a href="user_kanban.js.html#line549">line 549</a>
|
|
1755
2710
|
</span>
|
|
1756
2711
|
</p>
|
|
1757
2712
|
|
|
@@ -2118,7 +3073,7 @@ Expected response structure (error):
|
|
|
2118
3073
|
<p class="tag-source">
|
|
2119
3074
|
<a href="user_kanban.js.html" class="button">View Source</a>
|
|
2120
3075
|
<span>
|
|
2121
|
-
<a href="user_kanban.js.html">user/kanban.js</a>, <a href="user_kanban.js.html#
|
|
3076
|
+
<a href="user_kanban.js.html">user/kanban.js</a>, <a href="user_kanban.js.html#line232">line 232</a>
|
|
2122
3077
|
</span>
|
|
2123
3078
|
</p>
|
|
2124
3079
|
|
|
@@ -2479,7 +3434,7 @@ Expected response structure (error):
|
|
|
2479
3434
|
<p class="tag-source">
|
|
2480
3435
|
<a href="user_kanban.js.html" class="button">View Source</a>
|
|
2481
3436
|
<span>
|
|
2482
|
-
<a href="user_kanban.js.html">user/kanban.js</a>, <a href="user_kanban.js.html#
|
|
3437
|
+
<a href="user_kanban.js.html">user/kanban.js</a>, <a href="user_kanban.js.html#line355">line 355</a>
|
|
2483
3438
|
</span>
|
|
2484
3439
|
</p>
|
|
2485
3440
|
|
|
@@ -2863,7 +3818,7 @@ Expected response structure (error):
|
|
|
2863
3818
|
<p class="tag-source">
|
|
2864
3819
|
<a href="user_kanban.js.html" class="button">View Source</a>
|
|
2865
3820
|
<span>
|
|
2866
|
-
<a href="user_kanban.js.html">user/kanban.js</a>, <a href="user_kanban.js.html#
|
|
3821
|
+
<a href="user_kanban.js.html">user/kanban.js</a>, <a href="user_kanban.js.html#line296">line 296</a>
|
|
2867
3822
|
</span>
|
|
2868
3823
|
</p>
|
|
2869
3824
|
|