@freelog/tools-lib 0.1.165 → 0.1.166

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.
@@ -1513,9 +1513,9 @@ var _excluded$3 = ["resourceIdOrName"],
1513
1513
  _excluded3$3 = ["resourceId"],
1514
1514
  _excluded4$3 = ["resourceId"],
1515
1515
  _excluded5$3 = ["resourceId", "version"],
1516
- _excluded6$2 = ["fileSha1"],
1516
+ _excluded6$2 = ["resourceId"],
1517
1517
  _excluded7$2 = ["fileSha1"],
1518
- _excluded8$1 = ["resourceId"],
1518
+ _excluded8$1 = ["fileSha1"],
1519
1519
  _excluded9$1 = ["resourceId"],
1520
1520
  _excluded10$1 = ["resourceId"],
1521
1521
  _excluded11$1 = ["resourceId"],
@@ -1531,9 +1531,10 @@ var _excluded$3 = ["resourceIdOrName"],
1531
1531
  _excluded21 = ["resourceId"],
1532
1532
  _excluded22 = ["resourceId"],
1533
1533
  _excluded23 = ["resourceId"],
1534
- _excluded24 = ["resourceId", "itemId"],
1535
- _excluded25 = ["resourceId"],
1536
- _excluded26 = ["resourceId"];
1534
+ _excluded24 = ["resourceId"],
1535
+ _excluded25 = ["resourceId", "itemId"],
1536
+ _excluded26 = ["resourceId"],
1537
+ _excluded27 = ["resourceId"];
1537
1538
  function create$1(params) {
1538
1539
  return FUtil.Request({
1539
1540
  method: 'POST',
@@ -1572,16 +1573,24 @@ function list(params) {
1572
1573
  params: params
1573
1574
  });
1574
1575
  }
1576
+ // interface InfoReturnType extends CommonReturn {
1577
+ // data: IResourceInfo
1578
+ // }
1575
1579
  function info(_ref) {
1576
1580
  var resourceIdOrName = _ref.resourceIdOrName,
1577
1581
  params = _objectWithoutPropertiesLoose(_ref, _excluded$3);
1582
+ // : Promise<InfoReturnType>
1578
1583
  return FUtil.Request({
1579
1584
  method: 'GET',
1580
1585
  url: "/v2/resources/" + encodeURIComponent(resourceIdOrName),
1581
1586
  params: params
1582
1587
  });
1583
1588
  }
1589
+ // interface BatchInfoReturnType extends CommonReturn {
1590
+ // data: IResourceInfo[];
1591
+ // }
1584
1592
  function batchInfo(params) {
1593
+ // : Promise<BatchInfoReturnType>
1585
1594
  return FUtil.Request({
1586
1595
  method: 'GET',
1587
1596
  url: "/v2/resources/list",
@@ -1633,26 +1642,35 @@ function resourceVersionInfo2(params) {
1633
1642
  params: params
1634
1643
  });
1635
1644
  }
1636
- function getVersionList(_ref6) {
1637
- var params = _extends({}, (_objectDestructuringEmpty(_ref6), _ref6));
1645
+ function getVersionListByResourceID(_ref6) {
1646
+ var resourceId = _ref6.resourceId,
1647
+ params = _objectWithoutPropertiesLoose(_ref6, _excluded6$2);
1638
1648
  return FUtil.Request({
1639
1649
  method: 'GET',
1640
- url: "/v2/resources/versions/list",
1650
+ url: "/v2/resources/" + resourceId + "/versions",
1641
1651
  params: params
1642
1652
  });
1643
1653
  }
1644
- function getResourceVersionBySha1(_ref7) {
1645
- var fileSha1 = _ref7.fileSha1,
1646
- params = _objectWithoutPropertiesLoose(_ref7, _excluded6$2);
1654
+ function getVersionList(_ref7) {
1655
+ var params = _extends({}, (_objectDestructuringEmpty(_ref7), _ref7));
1647
1656
  return FUtil.Request({
1648
1657
  method: 'GET',
1649
- url: "/v2/resources/files/" + fileSha1 + "/versions",
1658
+ url: "/v2/resources/versions/list",
1650
1659
  params: params
1651
1660
  });
1652
1661
  }
1653
- function getResourceBySha1(_ref8) {
1662
+ function getResourceVersionBySha1(_ref8) {
1654
1663
  var fileSha1 = _ref8.fileSha1,
1655
1664
  params = _objectWithoutPropertiesLoose(_ref8, _excluded7$2);
1665
+ return FUtil.Request({
1666
+ method: 'GET',
1667
+ url: "/v2/resources/files/" + fileSha1 + "/versions",
1668
+ params: params
1669
+ });
1670
+ }
1671
+ function getResourceBySha1(_ref9) {
1672
+ var fileSha1 = _ref9.fileSha1,
1673
+ params = _objectWithoutPropertiesLoose(_ref9, _excluded8$1);
1656
1674
  // return FUtil.Axios.get(`/v2/resources/files/${fileSha1}`, {
1657
1675
  // params,
1658
1676
  // });
@@ -1686,8 +1704,8 @@ function lookDraft(params) {
1686
1704
  params: params
1687
1705
  });
1688
1706
  }
1689
- function deleteResourceDraft(_ref9) {
1690
- var resourceId = _ref9.resourceId;
1707
+ function deleteResourceDraft(_ref10) {
1708
+ var resourceId = _ref10.resourceId;
1691
1709
  // return FUtil.Axios.post(`/v2/resources/${params.resourceId}/versions/drafts`, params);
1692
1710
  return FUtil.Request({
1693
1711
  method: 'DELETE',
@@ -1710,9 +1728,9 @@ function resourcesDownload(params) {
1710
1728
  // responseType: 'arraybuffer',
1711
1729
  // });
1712
1730
  }
1713
- function batchGetCoverageVersions(_ref10) {
1714
- var resourceId = _ref10.resourceId,
1715
- params = _objectWithoutPropertiesLoose(_ref10, _excluded8$1);
1731
+ function batchGetCoverageVersions(_ref11) {
1732
+ var resourceId = _ref11.resourceId,
1733
+ params = _objectWithoutPropertiesLoose(_ref11, _excluded9$1);
1716
1734
  // return FUtil.Axios.get(`/v2/resources/${resourceId}/contracts/coverageVersions`, {
1717
1735
  // params,
1718
1736
  // });
@@ -1729,9 +1747,9 @@ function resolveResources(params) {
1729
1747
  url: "/v2/resources/" + params.resourceId + "/resolveResources"
1730
1748
  });
1731
1749
  }
1732
- function batchSetContracts(_ref11) {
1733
- var resourceId = _ref11.resourceId,
1734
- params = _objectWithoutPropertiesLoose(_ref11, _excluded9$1);
1750
+ function batchSetContracts(_ref12) {
1751
+ var resourceId = _ref12.resourceId,
1752
+ params = _objectWithoutPropertiesLoose(_ref12, _excluded10$1);
1735
1753
  // return FUtil.Axios.put(`/v2/resources/${resourceId}/versions/batchSetContracts`, params);
1736
1754
  return FUtil.Request({
1737
1755
  method: 'PUT',
@@ -1739,9 +1757,9 @@ function batchSetContracts(_ref11) {
1739
1757
  data: params
1740
1758
  });
1741
1759
  }
1742
- function cycleDependencyCheck$1(_ref12) {
1743
- var resourceId = _ref12.resourceId,
1744
- params = _objectWithoutPropertiesLoose(_ref12, _excluded10$1);
1760
+ function cycleDependencyCheck$1(_ref13) {
1761
+ var resourceId = _ref13.resourceId,
1762
+ params = _objectWithoutPropertiesLoose(_ref13, _excluded11$1);
1745
1763
  // return FUtil.Axios.post(`/v2/resources/${resourceId}/versions/cycleDependencyCheck`, params);
1746
1764
  return FUtil.Request({
1747
1765
  method: 'POST',
@@ -1749,9 +1767,9 @@ function cycleDependencyCheck$1(_ref12) {
1749
1767
  data: params
1750
1768
  });
1751
1769
  }
1752
- function relationTree$1(_ref13) {
1753
- var resourceId = _ref13.resourceId,
1754
- params = _objectWithoutPropertiesLoose(_ref13, _excluded11$1);
1770
+ function relationTree$1(_ref14) {
1771
+ var resourceId = _ref14.resourceId,
1772
+ params = _objectWithoutPropertiesLoose(_ref14, _excluded12);
1755
1773
  // return FUtil.Axios.get(`/v2/resources/${resourceId}/relationTree`, {
1756
1774
  // params,
1757
1775
  // });
@@ -1761,41 +1779,41 @@ function relationTree$1(_ref13) {
1761
1779
  params: params
1762
1780
  });
1763
1781
  }
1764
- function relationTreeAuth(_ref14) {
1765
- var resourceId = _ref14.resourceId,
1766
- params = _objectWithoutPropertiesLoose(_ref14, _excluded12);
1782
+ function relationTreeAuth(_ref15) {
1783
+ var resourceId = _ref15.resourceId,
1784
+ params = _objectWithoutPropertiesLoose(_ref15, _excluded13);
1767
1785
  return FUtil.Request({
1768
1786
  method: 'GET',
1769
1787
  url: "/v2/auths/resources/" + resourceId + "/relationTreeAuth",
1770
1788
  params: params
1771
1789
  });
1772
1790
  }
1773
- function resourcesCount(_ref15) {
1774
- var params = _extends({}, (_objectDestructuringEmpty(_ref15), _ref15));
1791
+ function resourcesCount(_ref16) {
1792
+ var params = _extends({}, (_objectDestructuringEmpty(_ref16), _ref16));
1775
1793
  return FUtil.Request({
1776
1794
  method: 'GET',
1777
1795
  url: "/v2/resources/count",
1778
1796
  params: params
1779
1797
  });
1780
1798
  }
1781
- function batchAuth$1(_ref16) {
1782
- var params = _extends({}, (_objectDestructuringEmpty(_ref16), _ref16));
1799
+ function batchAuth$1(_ref17) {
1800
+ var params = _extends({}, (_objectDestructuringEmpty(_ref17), _ref17));
1783
1801
  return FUtil.Request({
1784
1802
  method: 'GET',
1785
1803
  url: "/v2/auths/resources/batchAuth/results",
1786
1804
  params: params
1787
1805
  });
1788
1806
  }
1789
- function resourcesRecommend(_ref17) {
1790
- var params = _extends({}, (_objectDestructuringEmpty(_ref17), _ref17));
1807
+ function resourcesRecommend(_ref18) {
1808
+ var params = _extends({}, (_objectDestructuringEmpty(_ref18), _ref18));
1791
1809
  return FUtil.Request({
1792
1810
  method: 'GET',
1793
1811
  url: "/v2/resources/recommend",
1794
1812
  params: params
1795
1813
  });
1796
1814
  }
1797
- function availableTags(_ref18) {
1798
- var params = _extends({}, (_objectDestructuringEmpty(_ref18), _ref18));
1815
+ function availableTags(_ref19) {
1816
+ var params = _extends({}, (_objectDestructuringEmpty(_ref19), _ref19));
1799
1817
  return FUtil.Request({
1800
1818
  method: 'GET',
1801
1819
  url: "/v2/resources/tags/availableTags",
@@ -1803,32 +1821,32 @@ function availableTags(_ref18) {
1803
1821
  });
1804
1822
  }
1805
1823
  function resourceTypes$1(_temp) {
1806
- var _ref19 = _temp === void 0 ? {} : _temp,
1807
- params = _extends({}, (_objectDestructuringEmpty(_ref19), _ref19));
1824
+ var _ref20 = _temp === void 0 ? {} : _temp,
1825
+ params = _extends({}, (_objectDestructuringEmpty(_ref20), _ref20));
1808
1826
  return FUtil.Request({
1809
1827
  method: 'GET',
1810
1828
  url: "/v2/resources/types/listSimpleByGroup",
1811
1829
  params: params
1812
1830
  });
1813
1831
  }
1814
- function ListSimpleByParentCode(_ref20) {
1815
- var params = _extends({}, (_objectDestructuringEmpty(_ref20), _ref20));
1832
+ function ListSimpleByParentCode(_ref21) {
1833
+ var params = _extends({}, (_objectDestructuringEmpty(_ref21), _ref21));
1816
1834
  return FUtil.Request({
1817
1835
  method: 'GET',
1818
1836
  url: "/v2/resources/types/listSimpleByParentCode",
1819
1837
  params: params
1820
1838
  });
1821
1839
  }
1822
- function getResourceTypeInfoByCode(_ref21) {
1823
- var params = _extends({}, (_objectDestructuringEmpty(_ref21), _ref21));
1840
+ function getResourceTypeInfoByCode(_ref22) {
1841
+ var params = _extends({}, (_objectDestructuringEmpty(_ref22), _ref22));
1824
1842
  return FUtil.Request({
1825
1843
  method: 'GET',
1826
1844
  url: "/v2/resources/types/getInfoByCode",
1827
1845
  params: params
1828
1846
  });
1829
1847
  }
1830
- function getResourceAttrListSimple(_ref22) {
1831
- var params = _extends({}, (_objectDestructuringEmpty(_ref22), _ref22));
1848
+ function getResourceAttrListSimple(_ref23) {
1849
+ var params = _extends({}, (_objectDestructuringEmpty(_ref23), _ref23));
1832
1850
  return FUtil.Request({
1833
1851
  method: 'GET',
1834
1852
  url: "/v2/resources/attrs/listSimple",
@@ -1836,24 +1854,24 @@ function getResourceAttrListSimple(_ref22) {
1836
1854
  });
1837
1855
  }
1838
1856
  function listSimple4Recently(_temp2) {
1839
- var _ref23 = _temp2 === void 0 ? {} : _temp2,
1840
- params = _extends({}, (_objectDestructuringEmpty(_ref23), _ref23));
1857
+ var _ref24 = _temp2 === void 0 ? {} : _temp2,
1858
+ params = _extends({}, (_objectDestructuringEmpty(_ref24), _ref24));
1841
1859
  return FUtil.Request({
1842
1860
  method: 'GET',
1843
1861
  url: "/v2/resources/types/listSimple4Recently",
1844
1862
  params: params
1845
1863
  });
1846
1864
  }
1847
- function getAttrsInfoByKey(_ref24) {
1848
- var params = _extends({}, (_objectDestructuringEmpty(_ref24), _ref24));
1865
+ function getAttrsInfoByKey(_ref25) {
1866
+ var params = _extends({}, (_objectDestructuringEmpty(_ref25), _ref25));
1849
1867
  return FUtil.Request({
1850
1868
  method: 'GET',
1851
1869
  url: "/v2/resources/attrs/getInfoByKey",
1852
1870
  params: params
1853
1871
  });
1854
1872
  }
1855
- function generateResourceNames(_ref25) {
1856
- var resourceNames = _ref25.resourceNames;
1873
+ function generateResourceNames(_ref26) {
1874
+ var resourceNames = _ref26.resourceNames;
1857
1875
  return FUtil.Request({
1858
1876
  method: 'POST',
1859
1877
  url: "/v2/resources/generateResourceNames",
@@ -1862,165 +1880,165 @@ function generateResourceNames(_ref25) {
1862
1880
  }
1863
1881
  });
1864
1882
  }
1865
- function updateCollection(_ref26) {
1866
- var resourceId = _ref26.resourceId,
1867
- params = _objectWithoutPropertiesLoose(_ref26, _excluded13);
1883
+ function updateCollection(_ref27) {
1884
+ var resourceId = _ref27.resourceId,
1885
+ params = _objectWithoutPropertiesLoose(_ref27, _excluded14);
1868
1886
  return FUtil.Request({
1869
1887
  method: 'PUT',
1870
1888
  url: "/v2/resources/catalogue/" + resourceId,
1871
1889
  data: params
1872
1890
  });
1873
1891
  }
1874
- function deleteCollectionUnitResource(_ref27) {
1875
- var resourceId = _ref27.resourceId,
1876
- removeCollectionItemIds = _ref27.removeCollectionItemIds;
1892
+ function deleteCollectionUnitResource(_ref28) {
1893
+ var resourceId = _ref28.resourceId,
1894
+ removeCollectionItemIds = _ref28.removeCollectionItemIds;
1877
1895
  return FUtil.Request({
1878
1896
  method: 'DELETE',
1879
1897
  url: "/v2/resources/catalogue/" + resourceId + "?removeCollectionItemIds=" + removeCollectionItemIds.join(',')
1880
1898
  });
1881
1899
  }
1882
- function getCollectionItems(_ref28) {
1883
- var resourceId = _ref28.resourceId,
1884
- params = _objectWithoutPropertiesLoose(_ref28, _excluded14);
1900
+ function getCollectionItems(_ref29) {
1901
+ var resourceId = _ref29.resourceId,
1902
+ params = _objectWithoutPropertiesLoose(_ref29, _excluded15);
1885
1903
  return FUtil.Request({
1886
1904
  method: 'GET',
1887
1905
  url: "/v2/resources/catalogue/" + resourceId + "/items",
1888
1906
  params: params
1889
1907
  });
1890
1908
  }
1891
- function getCollectionItems_Draft(_ref29) {
1892
- var resourceId = _ref29.resourceId,
1893
- params = _objectWithoutPropertiesLoose(_ref29, _excluded15);
1909
+ function getCollectionItems_Draft(_ref30) {
1910
+ var resourceId = _ref30.resourceId,
1911
+ params = _objectWithoutPropertiesLoose(_ref30, _excluded16);
1894
1912
  return FUtil.Request({
1895
1913
  method: 'GET',
1896
1914
  url: "/v2/resources/catalogues/drafts/" + resourceId + "/items",
1897
1915
  params: params
1898
1916
  });
1899
1917
  }
1900
- function setCollectionItemSort(_ref30) {
1901
- var resourceId = _ref30.resourceId,
1902
- params = _objectWithoutPropertiesLoose(_ref30, _excluded16);
1918
+ function setCollectionItemSort(_ref31) {
1919
+ var resourceId = _ref31.resourceId,
1920
+ params = _objectWithoutPropertiesLoose(_ref31, _excluded17);
1903
1921
  return FUtil.Request({
1904
1922
  method: 'PUT',
1905
1923
  url: "/v2/resources/catalogue/" + resourceId + "/manualSort",
1906
1924
  data: params
1907
1925
  });
1908
1926
  }
1909
- function reorderCollectionItemsSort(_ref31) {
1910
- var resourceId = _ref31.resourceId,
1911
- params = _objectWithoutPropertiesLoose(_ref31, _excluded17);
1927
+ function reorderCollectionItemsSort(_ref32) {
1928
+ var resourceId = _ref32.resourceId,
1929
+ params = _objectWithoutPropertiesLoose(_ref32, _excluded18);
1912
1930
  return FUtil.Request({
1913
1931
  method: 'PUT',
1914
1932
  url: "/v2/resources/catalogue/" + resourceId + "/reorder",
1915
1933
  data: params
1916
1934
  });
1917
1935
  }
1918
- function checkExistCollectionItems(_ref32) {
1919
- var resourceId = _ref32.resourceId,
1920
- params = _objectWithoutPropertiesLoose(_ref32, _excluded18);
1936
+ function checkExistCollectionItems(_ref33) {
1937
+ var resourceId = _ref33.resourceId,
1938
+ params = _objectWithoutPropertiesLoose(_ref33, _excluded19);
1921
1939
  return FUtil.Request({
1922
1940
  method: 'GET',
1923
1941
  url: "/v2/resources/catalogue/" + resourceId + "/items/checkExists",
1924
1942
  params: params
1925
1943
  });
1926
1944
  }
1927
- function getCollectionItemsAuth(_ref33) {
1928
- var resourceId = _ref33.resourceId,
1929
- params = _objectWithoutPropertiesLoose(_ref33, _excluded19);
1945
+ function getCollectionItemsAuth(_ref34) {
1946
+ var resourceId = _ref34.resourceId,
1947
+ params = _objectWithoutPropertiesLoose(_ref34, _excluded20);
1930
1948
  return FUtil.Request({
1931
1949
  method: 'GET',
1932
1950
  url: "/v2/auths/resources/" + resourceId + "/items/batchAuth",
1933
1951
  params: params
1934
1952
  });
1935
1953
  }
1936
- function batchResourceItems(_ref34) {
1937
- var params = _extends({}, (_objectDestructuringEmpty(_ref34), _ref34));
1954
+ function batchResourceItems(_ref35) {
1955
+ var params = _extends({}, (_objectDestructuringEmpty(_ref35), _ref35));
1938
1956
  return FUtil.Request({
1939
1957
  method: 'GET',
1940
1958
  url: "/v2/resources/catalogue/items/batch/list",
1941
1959
  params: params
1942
1960
  });
1943
1961
  }
1944
- function batchResourceItems_Draft(_ref35) {
1945
- var params = _extends({}, (_objectDestructuringEmpty(_ref35), _ref35));
1962
+ function batchResourceItems_Draft(_ref36) {
1963
+ var params = _extends({}, (_objectDestructuringEmpty(_ref36), _ref36));
1946
1964
  return FUtil.Request({
1947
1965
  method: 'GET',
1948
1966
  url: "/v2/resources/catalogues/drafts/items/batch/list",
1949
1967
  params: params
1950
1968
  });
1951
1969
  }
1952
- function getCollectionUpdateLogs(_ref36) {
1953
- var resourceId = _ref36.resourceId,
1954
- params = _objectWithoutPropertiesLoose(_ref36, _excluded20);
1970
+ function getCollectionUpdateLogs(_ref37) {
1971
+ var resourceId = _ref37.resourceId,
1972
+ params = _objectWithoutPropertiesLoose(_ref37, _excluded21);
1955
1973
  return FUtil.Request({
1956
1974
  method: 'GET',
1957
1975
  url: "/v2/resources/catalogue/" + resourceId + "/updateLogs",
1958
1976
  params: params
1959
1977
  });
1960
1978
  }
1961
- function getCollectionCollectRules(_ref37) {
1962
- var resourceId = _ref37.resourceId;
1979
+ function getCollectionCollectRules(_ref38) {
1980
+ var resourceId = _ref38.resourceId;
1963
1981
  return FUtil.Request({
1964
1982
  method: 'GET',
1965
1983
  url: "/v2/resources/catalogue/" + resourceId + "/items/collectRules"
1966
1984
  });
1967
1985
  }
1968
- function setCollectRules(_ref38) {
1969
- var resourceId = _ref38.resourceId,
1970
- params = _objectWithoutPropertiesLoose(_ref38, _excluded21);
1986
+ function setCollectRules(_ref39) {
1987
+ var resourceId = _ref39.resourceId,
1988
+ params = _objectWithoutPropertiesLoose(_ref39, _excluded22);
1971
1989
  return FUtil.Request({
1972
1990
  method: 'POST',
1973
1991
  url: "/v2/resources/catalogue/" + resourceId + "/items/collectRules",
1974
1992
  data: params
1975
1993
  });
1976
1994
  }
1977
- function setItemsTitle(_ref39) {
1978
- var resourceId = _ref39.resourceId,
1979
- data = _ref39.data;
1995
+ function setItemsTitle(_ref40) {
1996
+ var resourceId = _ref40.resourceId,
1997
+ data = _ref40.data;
1980
1998
  return FUtil.Request({
1981
1999
  method: 'PUT',
1982
2000
  url: "/v2/resources/catalogue/" + resourceId + "/items",
1983
2001
  data: data
1984
2002
  });
1985
2003
  }
1986
- function deleteCollectionItems_Draft(_ref40) {
1987
- var resourceId = _ref40.resourceId,
1988
- removeCollectionItemIds = _ref40.removeCollectionItemIds;
2004
+ function deleteCollectionItems_Draft(_ref41) {
2005
+ var resourceId = _ref41.resourceId,
2006
+ removeCollectionItemIds = _ref41.removeCollectionItemIds;
1989
2007
  return FUtil.Request({
1990
2008
  method: 'DELETE',
1991
2009
  url: "/v2/resources/catalogues/drafts/" + resourceId + "/items?removeCollectionItemIds=" + removeCollectionItemIds.join(',')
1992
2010
  });
1993
2011
  }
1994
- function setCollectionItemsSortID_Draft(_ref41) {
1995
- var resourceId = _ref41.resourceId,
1996
- data = _ref41.data;
2012
+ function setCollectionItemsSortID_Draft(_ref42) {
2013
+ var resourceId = _ref42.resourceId,
2014
+ data = _ref42.data;
1997
2015
  return FUtil.Request({
1998
2016
  method: 'PUT',
1999
2017
  url: "/v2/resources/catalogues/drafts/" + resourceId + "/manualSort",
2000
2018
  data: data
2001
2019
  });
2002
2020
  }
2003
- function reorderCollectionItems_Draft(_ref42) {
2004
- var resourceId = _ref42.resourceId,
2005
- params = _objectWithoutPropertiesLoose(_ref42, _excluded22);
2021
+ function reorderCollectionItems_Draft(_ref43) {
2022
+ var resourceId = _ref43.resourceId,
2023
+ params = _objectWithoutPropertiesLoose(_ref43, _excluded23);
2006
2024
  return FUtil.Request({
2007
2025
  method: 'PUT',
2008
2026
  url: "/v2/resources/catalogues/drafts/" + resourceId + "/reorder",
2009
2027
  data: params
2010
2028
  });
2011
2029
  }
2012
- function resourceIsExistInItems_Draft(_ref43) {
2013
- var resourceId = _ref43.resourceId,
2014
- params = _objectWithoutPropertiesLoose(_ref43, _excluded23);
2030
+ function resourceIsExistInItems_Draft(_ref44) {
2031
+ var resourceId = _ref44.resourceId,
2032
+ params = _objectWithoutPropertiesLoose(_ref44, _excluded24);
2015
2033
  return FUtil.Request({
2016
2034
  method: 'GET',
2017
2035
  url: "/v2/resources/catalogues/drafts/" + resourceId + "/items/checkExists",
2018
2036
  params: params
2019
2037
  });
2020
2038
  }
2021
- function updateCollectionItemsInfo_Draft(_ref44) {
2022
- var resourceId = _ref44.resourceId,
2023
- data = _ref44.data;
2039
+ function updateCollectionItemsInfo_Draft(_ref45) {
2040
+ var resourceId = _ref45.resourceId,
2041
+ data = _ref45.data;
2024
2042
  return FUtil.Request({
2025
2043
  method: 'PUT',
2026
2044
  // url: `/v2/resources/catalogue/${resourceId}/items`,
@@ -2028,29 +2046,29 @@ function updateCollectionItemsInfo_Draft(_ref44) {
2028
2046
  data: data
2029
2047
  });
2030
2048
  }
2031
- function updateCollectionItemAuthorization_Draft(_ref45) {
2032
- var resourceId = _ref45.resourceId,
2033
- itemId = _ref45.itemId,
2034
- params = _objectWithoutPropertiesLoose(_ref45, _excluded24);
2049
+ function updateCollectionItemAuthorization_Draft(_ref46) {
2050
+ var resourceId = _ref46.resourceId,
2051
+ itemId = _ref46.itemId,
2052
+ data = _objectWithoutPropertiesLoose(_ref46, _excluded25);
2035
2053
  return FUtil.Request({
2036
2054
  method: 'PUT',
2037
2055
  // url: `/v2/resources/catalogues/${resourceId}/items/${itemId}`,
2038
2056
  url: "/v2/resources/catalogues/drafts/" + resourceId + "/items/" + itemId,
2039
- data: params
2057
+ data: data
2040
2058
  });
2041
2059
  }
2042
- function addResourceItems_Draft(_ref46) {
2043
- var resourceId = _ref46.resourceId,
2044
- params = _objectWithoutPropertiesLoose(_ref46, _excluded25);
2060
+ function addResourceItems_Draft(_ref47) {
2061
+ var resourceId = _ref47.resourceId,
2062
+ params = _objectWithoutPropertiesLoose(_ref47, _excluded26);
2045
2063
  return FUtil.Request({
2046
2064
  method: 'POST',
2047
2065
  url: "/v2/resources/catalogues/drafts/" + resourceId + "/items",
2048
2066
  data: params
2049
2067
  });
2050
2068
  }
2051
- function getCollectionItemsAuth_Draft(_ref47) {
2052
- var resourceId = _ref47.resourceId,
2053
- params = _objectWithoutPropertiesLoose(_ref47, _excluded26);
2069
+ function getCollectionItemsAuth_Draft(_ref48) {
2070
+ var resourceId = _ref48.resourceId,
2071
+ params = _objectWithoutPropertiesLoose(_ref48, _excluded27);
2054
2072
  return FUtil.Request({
2055
2073
  method: 'GET',
2056
2074
  url: "/v2/resources/catalogues/drafts/" + resourceId + "/items/batchAuth",
@@ -2072,6 +2090,7 @@ var Resource = {
2072
2090
  createVersion: createVersion,
2073
2091
  resourceVersionInfo1: resourceVersionInfo1,
2074
2092
  resourceVersionInfo2: resourceVersionInfo2,
2093
+ getVersionListByResourceID: getVersionListByResourceID,
2075
2094
  getVersionList: getVersionList,
2076
2095
  getResourceVersionBySha1: getResourceVersionBySha1,
2077
2096
  getResourceBySha1: getResourceBySha1,
@@ -2291,6 +2310,16 @@ function getSignInfo() {
2291
2310
  url: "/v2/activities/facade/signInfo"
2292
2311
  });
2293
2312
  }
2313
+ function searchForConsole(params) {
2314
+ if (params === void 0) {
2315
+ params = {};
2316
+ }
2317
+ return FUtil.Request({
2318
+ method: 'GET',
2319
+ url: '/v2/users/searchForConsole',
2320
+ params: params
2321
+ });
2322
+ }
2294
2323
 
2295
2324
  var User = {
2296
2325
  __proto__: null,
@@ -2313,7 +2342,8 @@ var User = {
2313
2342
  thirdPartyList: thirdPartyList,
2314
2343
  thirdPartyIsBind: thirdPartyIsBind,
2315
2344
  signForCoins: signForCoins,
2316
- getSignInfo: getSignInfo
2345
+ getSignInfo: getSignInfo,
2346
+ searchForConsole: searchForConsole
2317
2347
  };
2318
2348
 
2319
2349
  var _excluded$5 = ["nodeId"],
@@ -3721,12 +3751,8 @@ var I18nNext = /*#__PURE__*/function () {
3721
3751
  zh_CN: {
3722
3752
  translation: zh_CN
3723
3753
  }
3724
- }; // console.log(result, 'result093sdolkfjlsdkjl');
3754
+ };
3725
3755
  window.localStorage.setItem(localStorage_i18nextResources_key, JSON.stringify(result));
3726
- // Cookies.set(localStorage_i18nextResources_key, encodeURIComponent(JSON.stringify(result)), {
3727
- // expires: 36525,
3728
- // domain: FUtil.Format.completeUrlByDomain('').replace(/http(s)?:\/\//, ''),
3729
- // });
3730
3756
  return _context4.abrupt("return", result);
3731
3757
  case 10:
3732
3758
  case "end":