@freelog/tools-lib 0.1.165 → 0.1.167

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