@freelog/tools-lib 0.1.173 → 0.1.175

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.
@@ -665,62 +665,66 @@ function collectionExhibitCreator(_ref31) {
665
665
  var nodeID = _ref31.nodeID;
666
666
  return "/node/collectionExhibitCreator/" + nodeID;
667
667
  }
668
- function informNodeManagement(_ref32) {
669
- var nodeID = _ref32.nodeID,
670
- _ref32$showPage = _ref32.showPage,
671
- showPage = _ref32$showPage === void 0 ? 'exhibit' : _ref32$showPage,
672
- params = _objectWithoutPropertiesLoose(_ref32, _excluded4);
668
+ function createdCollectionExhibitManagement(_ref32) {
669
+ var exhibitID = _ref32.exhibitID;
670
+ return "/node/createdCollectionExhibit/formal/" + exhibitID;
671
+ }
672
+ function informNodeManagement(_ref33) {
673
+ var nodeID = _ref33.nodeID,
674
+ _ref33$showPage = _ref33.showPage,
675
+ showPage = _ref33$showPage === void 0 ? 'exhibit' : _ref33$showPage,
676
+ params = _objectWithoutPropertiesLoose(_ref33, _excluded4);
673
677
  return "/node/informal/" + nodeID + handleQuery(_extends({
674
678
  showPage: showPage
675
679
  }, params));
676
680
  }
677
- function informExhibitManagement(_ref33) {
678
- var exhibitID = _ref33.exhibitID;
681
+ function informExhibitManagement(_ref34) {
682
+ var exhibitID = _ref34.exhibitID;
679
683
  return "/node/exhibit/informal/" + exhibitID;
680
684
  }
681
685
  function storageSpace(_temp14) {
682
- var _ref34 = _temp14 === void 0 ? {} : _temp14,
683
- params = _extends({}, (_objectDestructuringEmpty(_ref34), _ref34));
686
+ var _ref35 = _temp14 === void 0 ? {} : _temp14,
687
+ params = _extends({}, (_objectDestructuringEmpty(_ref35), _ref35));
684
688
  return "/storage" + handleQuery(params);
685
689
  }
686
- function objectDetails(_ref35) {
687
- var params = _extends({}, (_objectDestructuringEmpty(_ref35), _ref35));
690
+ function objectDetails(_ref36) {
691
+ var params = _extends({}, (_objectDestructuringEmpty(_ref36), _ref36));
688
692
  return "/storage" + handleQuery(params);
689
693
  }
690
- function collectionCreateSuccess(_ref36) {
691
- var collectionID = _ref36.collectionID;
694
+ function collectionCreateSuccess(_ref37) {
695
+ var collectionID = _ref37.collectionID;
692
696
  return "/result/collection/create/success/" + collectionID;
693
697
  }
694
- function resourceCreateSuccess(_ref37) {
695
- var resourceID = _ref37.resourceID;
698
+ function resourceCreateSuccess(_ref38) {
699
+ var resourceID = _ref38.resourceID;
696
700
  return "/result/resource/create/success/" + resourceID;
697
701
  }
698
- function resourceVersionCreateSuccess(_ref38) {
699
- var resourceID = _ref38.resourceID,
700
- version = _ref38.version;
701
- return "/result/resource/version/create/success/" + resourceID + "/" + version;
702
- }
703
- function resourceVersionCreateRelease(_ref39) {
702
+ function resourceVersionCreateSuccess(_ref39) {
704
703
  var resourceID = _ref39.resourceID,
705
704
  version = _ref39.version;
705
+ return "/result/resource/version/create/success/" + resourceID + "/" + version;
706
+ }
707
+ function resourceVersionCreateRelease(_ref40) {
708
+ var resourceID = _ref40.resourceID,
709
+ version = _ref40.version;
706
710
  return "/result/resource/version/create/release/" + resourceID + "/" + version;
707
711
  }
708
- function nodeCreateSuccess(_ref40) {
709
- var nodeID = _ref40.nodeID;
712
+ function nodeCreateSuccess(_ref41) {
713
+ var nodeID = _ref41.nodeID;
710
714
  return "/result/node/create/success/" + nodeID;
711
715
  }
712
716
  function invitation(_temp15) {
713
- var _ref41 = _temp15 === void 0 ? {} : _temp15,
714
- goTo = _ref41.goTo,
715
- params = _objectWithoutPropertiesLoose(_ref41, _excluded5);
717
+ var _ref42 = _temp15 === void 0 ? {} : _temp15,
718
+ goTo = _ref42.goTo,
719
+ params = _objectWithoutPropertiesLoose(_ref42, _excluded5);
716
720
  // console.log(params.goTo, 'goTo9iowjefklsdj;flksdjflk')
717
721
  return "/invitation" + handleQuery(_extends({}, params, {
718
722
  returnUrl: goTo ? encodeURIComponent(goTo) : undefined
719
723
  }));
720
724
  }
721
725
  function exception403(_temp16) {
722
- var _ref42 = _temp16 === void 0 ? {} : _temp16,
723
- params = _extends({}, (_objectDestructuringEmpty(_ref42), _ref42));
726
+ var _ref43 = _temp16 === void 0 ? {} : _temp16,
727
+ params = _extends({}, (_objectDestructuringEmpty(_ref43), _ref43));
724
728
  var fromUrl = params.from || '';
725
729
  if (!fromUrl) {
726
730
  var _window$location = window.location,
@@ -733,8 +737,8 @@ function exception403(_temp16) {
733
737
  });
734
738
  }
735
739
  function exceptionUnableToAccess(_temp17) {
736
- var _ref43 = _temp17 === void 0 ? {} : _temp17,
737
- params = _extends({}, (_objectDestructuringEmpty(_ref43), _ref43));
740
+ var _ref44 = _temp17 === void 0 ? {} : _temp17,
741
+ params = _extends({}, (_objectDestructuringEmpty(_ref44), _ref44));
738
742
  var fromUrl = params.from || '';
739
743
  if (!fromUrl) {
740
744
  var _window$location2 = window.location,
@@ -747,52 +751,52 @@ function exceptionUnableToAccess(_temp17) {
747
751
  });
748
752
  }
749
753
  function exceptionCommon(_temp18) {
750
- var _ref44 = _temp18 === void 0 ? {} : _temp18,
751
- params = _extends({}, (_objectDestructuringEmpty(_ref44), _ref44));
754
+ var _ref45 = _temp18 === void 0 ? {} : _temp18,
755
+ params = _extends({}, (_objectDestructuringEmpty(_ref45), _ref45));
752
756
  return "/exception/common" + handleQuery(_extends({}, params));
753
757
  }
754
- function nodeFreeze(_ref45) {
755
- var nodeID = _ref45.nodeID;
758
+ function nodeFreeze(_ref46) {
759
+ var nodeID = _ref46.nodeID;
756
760
  return "/result/node/freeze/" + nodeID;
757
761
  }
758
- function resourceFreeze(_ref46) {
759
- var resourceID = _ref46.resourceID;
762
+ function resourceFreeze(_ref47) {
763
+ var resourceID = _ref47.resourceID;
760
764
  return "/result/resource/freeze/" + resourceID;
761
765
  }
762
- function globalSearch(_ref47) {
763
- var search = _ref47.search;
766
+ function globalSearch(_ref48) {
767
+ var search = _ref48.search;
764
768
  return "/search" + handleQuery({
765
769
  search: search
766
770
  });
767
771
  }
768
772
  function login(_temp19) {
769
- var _ref48 = _temp19 === void 0 ? {} : _temp19,
770
- goTo = _ref48.goTo;
773
+ var _ref49 = _temp19 === void 0 ? {} : _temp19,
774
+ goTo = _ref49.goTo;
771
775
  return "/login" + handleQuery({
772
776
  goTo: goTo ? encodeURIComponent(goTo) : undefined
773
777
  });
774
778
  }
775
779
  function logon(_temp20) {
776
- var _ref49 = _temp20 === void 0 ? {} : _temp20,
777
- goTo = _ref49.goTo,
778
- params = _objectWithoutPropertiesLoose(_ref49, _excluded6);
780
+ var _ref50 = _temp20 === void 0 ? {} : _temp20,
781
+ goTo = _ref50.goTo,
782
+ params = _objectWithoutPropertiesLoose(_ref50, _excluded6);
779
783
  return "/logon" + handleQuery(_extends({
780
784
  goTo: goTo ? encodeURIComponent(goTo) : undefined
781
785
  }, params));
782
786
  }
783
787
  function bind(_temp21) {
784
- var _ref50 = _temp21 === void 0 ? {} : _temp21,
785
- goTo = _ref50.goTo,
786
- returnUrl = _ref50.returnUrl,
787
- params = _objectWithoutPropertiesLoose(_ref50, _excluded7);
788
+ var _ref51 = _temp21 === void 0 ? {} : _temp21,
789
+ goTo = _ref51.goTo,
790
+ returnUrl = _ref51.returnUrl,
791
+ params = _objectWithoutPropertiesLoose(_ref51, _excluded7);
788
792
  return "/bind" + handleQuery(_extends({
789
793
  goTo: goTo ? encodeURIComponent(goTo) : undefined,
790
794
  returnUrl: returnUrl ? encodeURIComponent(returnUrl) : undefined
791
795
  }, params));
792
796
  }
793
797
  function retrieveUserPassword(_temp22) {
794
- var _ref51 = _temp22 === void 0 ? {} : _temp22,
795
- goTo = _ref51.goTo;
798
+ var _ref52 = _temp22 === void 0 ? {} : _temp22,
799
+ goTo = _ref52.goTo;
796
800
  return "/retrieve" + handleQuery({
797
801
  goTo: goTo ? encodeURIComponent(goTo) : undefined
798
802
  });
@@ -814,8 +818,8 @@ function reward(_temp26) {
814
818
  return "/logged/reward";
815
819
  }
816
820
  function contract(_temp27) {
817
- var _ref56 = _temp27 === void 0 ? {} : _temp27,
818
- params = _extends({}, (_objectDestructuringEmpty(_ref56), _ref56));
821
+ var _ref57 = _temp27 === void 0 ? {} : _temp27,
822
+ params = _extends({}, (_objectDestructuringEmpty(_ref57), _ref57));
819
823
  return "/logged/contract" + handleQuery(_extends({}, params));
820
824
  }
821
825
  function setting(_temp28) {
@@ -878,6 +882,7 @@ var LinkTo = {
878
882
  exhibitManagement: exhibitManagement,
879
883
  collectionExhibitManagement: collectionExhibitManagement,
880
884
  collectionExhibitCreator: collectionExhibitCreator,
885
+ createdCollectionExhibitManagement: createdCollectionExhibitManagement,
881
886
  informNodeManagement: informNodeManagement,
882
887
  informExhibitManagement: informExhibitManagement,
883
888
  storageSpace: storageSpace,
@@ -1027,7 +1032,13 @@ var _excluded$1 = ["presentableId"],
1027
1032
  _excluded8 = ["presentableId"],
1028
1033
  _excluded9 = ["nodeId"],
1029
1034
  _excluded10 = ["nodeId"],
1030
- _excluded11 = ["presentableId"];
1035
+ _excluded11 = ["presentableId"],
1036
+ _excluded12 = ["presentableId"],
1037
+ _excluded13 = ["presentableId"],
1038
+ _excluded14 = ["presentableId"],
1039
+ _excluded15 = ["presentableId"],
1040
+ _excluded16 = ["presentableId"],
1041
+ _excluded17 = ["presentableId"];
1031
1042
  function createPresentable(params) {
1032
1043
  return FUtil.Request({
1033
1044
  method: 'POST',
@@ -1178,6 +1189,75 @@ function ignorePresentableVersionUpdateTip(_ref12) {
1178
1189
  data: params
1179
1190
  });
1180
1191
  }
1192
+ function createPresentableCollection(_ref13) {
1193
+ var params = _extends({}, (_objectDestructuringEmpty(_ref13), _ref13));
1194
+ return FUtil.Request({
1195
+ method: 'POST',
1196
+ url: "/v2/presentables/catalogues",
1197
+ data: params
1198
+ });
1199
+ }
1200
+ function addItemsToPresentableCollection(_ref14) {
1201
+ var presentableId = _ref14.presentableId,
1202
+ params = _objectWithoutPropertiesLoose(_ref14, _excluded12);
1203
+ return FUtil.Request({
1204
+ method: 'POST',
1205
+ url: "/v2/presentables/catalogues/" + presentableId + "/items",
1206
+ data: params
1207
+ });
1208
+ }
1209
+ function removeItemsFromPresentableCollection(_ref15) {
1210
+ var presentableId = _ref15.presentableId,
1211
+ params = _objectWithoutPropertiesLoose(_ref15, _excluded13);
1212
+ return FUtil.Request({
1213
+ method: 'DELETE',
1214
+ url: "/v2/presentables/catalogues/" + presentableId + "/items",
1215
+ params: params
1216
+ });
1217
+ }
1218
+ function getItemsFromPresentableCollection(_ref16) {
1219
+ var presentableId = _ref16.presentableId,
1220
+ params = _objectWithoutPropertiesLoose(_ref16, _excluded14);
1221
+ return FUtil.Request({
1222
+ method: 'GET',
1223
+ url: "/v2/presentables/catalogues/" + presentableId + "/items",
1224
+ params: params
1225
+ });
1226
+ }
1227
+ function setItemsSortFromPresentableCollectionManual(_ref17) {
1228
+ var presentableId = _ref17.presentableId,
1229
+ params = _objectWithoutPropertiesLoose(_ref17, _excluded15);
1230
+ return FUtil.Request({
1231
+ method: 'PUT',
1232
+ url: "/v2/presentables/catalogues/" + presentableId + "/manualSort",
1233
+ data: params
1234
+ });
1235
+ }
1236
+ function setItemsSortFromPresentableCollectionQuick(_ref18) {
1237
+ var presentableId = _ref18.presentableId,
1238
+ params = _objectWithoutPropertiesLoose(_ref18, _excluded16);
1239
+ return FUtil.Request({
1240
+ method: 'PUT',
1241
+ url: "/v2/presentables/catalogues/" + presentableId + "/manualSort",
1242
+ data: params
1243
+ });
1244
+ }
1245
+ function getItemsAutoCollectRule(_ref19) {
1246
+ var presentableId = _ref19.presentableId;
1247
+ return FUtil.Request({
1248
+ method: 'GET',
1249
+ url: "/v2/presentables/cataloguea/" + presentableId + "/items/collectRules"
1250
+ });
1251
+ }
1252
+ function SetItemsAutoCollectRuleParamsType(_ref20) {
1253
+ var presentableId = _ref20.presentableId,
1254
+ params = _objectWithoutPropertiesLoose(_ref20, _excluded17);
1255
+ return FUtil.Request({
1256
+ method: 'POST',
1257
+ url: "/v2/presentables/catalogues/" + presentableId + "/items",
1258
+ data: params
1259
+ });
1260
+ }
1181
1261
 
1182
1262
  var Exhibit = {
1183
1263
  __proto__: null,
@@ -1197,7 +1277,15 @@ var Exhibit = {
1197
1277
  batchCreatePresentable: batchCreatePresentable,
1198
1278
  batchUpdatePresentable: batchUpdatePresentable,
1199
1279
  batchUpdatePresentableStatus: batchUpdatePresentableStatus,
1200
- ignorePresentableVersionUpdateTip: ignorePresentableVersionUpdateTip
1280
+ ignorePresentableVersionUpdateTip: ignorePresentableVersionUpdateTip,
1281
+ createPresentableCollection: createPresentableCollection,
1282
+ addItemsToPresentableCollection: addItemsToPresentableCollection,
1283
+ removeItemsFromPresentableCollection: removeItemsFromPresentableCollection,
1284
+ getItemsFromPresentableCollection: getItemsFromPresentableCollection,
1285
+ setItemsSortFromPresentableCollectionManual: setItemsSortFromPresentableCollectionManual,
1286
+ setItemsSortFromPresentableCollectionQuick: setItemsSortFromPresentableCollectionQuick,
1287
+ getItemsAutoCollectRule: getItemsAutoCollectRule,
1288
+ SetItemsAutoCollectRuleParamsType: SetItemsAutoCollectRuleParamsType
1201
1289
  };
1202
1290
 
1203
1291
  var _excluded$2 = ["bucketName"],
@@ -1529,12 +1617,12 @@ var _excluded$3 = ["resourceIdOrName"],
1529
1617
  _excluded9$1 = ["resourceId"],
1530
1618
  _excluded10$1 = ["resourceId"],
1531
1619
  _excluded11$1 = ["resourceId"],
1532
- _excluded12 = ["resourceId"],
1533
- _excluded13 = ["resourceId"],
1534
- _excluded14 = ["resourceId"],
1535
- _excluded15 = ["resourceId"],
1536
- _excluded16 = ["resourceId"],
1537
- _excluded17 = ["resourceId"],
1620
+ _excluded12$1 = ["resourceId"],
1621
+ _excluded13$1 = ["resourceId"],
1622
+ _excluded14$1 = ["resourceId"],
1623
+ _excluded15$1 = ["resourceId"],
1624
+ _excluded16$1 = ["resourceId"],
1625
+ _excluded17$1 = ["resourceId"],
1538
1626
  _excluded18 = ["resourceId"],
1539
1627
  _excluded19 = ["resourceId"],
1540
1628
  _excluded20 = ["resourceId"],
@@ -1779,7 +1867,7 @@ function cycleDependencyCheck$1(_ref13) {
1779
1867
  }
1780
1868
  function relationTree$1(_ref14) {
1781
1869
  var resourceId = _ref14.resourceId,
1782
- params = _objectWithoutPropertiesLoose(_ref14, _excluded12);
1870
+ params = _objectWithoutPropertiesLoose(_ref14, _excluded12$1);
1783
1871
  // return FUtil.Axios.get(`/v2/resources/${resourceId}/relationTree`, {
1784
1872
  // params,
1785
1873
  // });
@@ -1791,7 +1879,7 @@ function relationTree$1(_ref14) {
1791
1879
  }
1792
1880
  function relationTreeAuth(_ref15) {
1793
1881
  var resourceId = _ref15.resourceId,
1794
- params = _objectWithoutPropertiesLoose(_ref15, _excluded13);
1882
+ params = _objectWithoutPropertiesLoose(_ref15, _excluded13$1);
1795
1883
  return FUtil.Request({
1796
1884
  method: 'GET',
1797
1885
  url: "/v2/auths/resources/" + resourceId + "/relationTreeAuth",
@@ -1892,7 +1980,7 @@ function generateResourceNames(_ref26) {
1892
1980
  }
1893
1981
  function updateCollection(_ref27) {
1894
1982
  var resourceId = _ref27.resourceId,
1895
- params = _objectWithoutPropertiesLoose(_ref27, _excluded14);
1983
+ params = _objectWithoutPropertiesLoose(_ref27, _excluded14$1);
1896
1984
  return FUtil.Request({
1897
1985
  method: 'PUT',
1898
1986
  url: "/v2/resources/catalogue/" + resourceId,
@@ -1909,7 +1997,7 @@ function deleteCollectionUnitResource(_ref28) {
1909
1997
  }
1910
1998
  function getCollectionItems(_ref29) {
1911
1999
  var resourceId = _ref29.resourceId,
1912
- params = _objectWithoutPropertiesLoose(_ref29, _excluded15);
2000
+ params = _objectWithoutPropertiesLoose(_ref29, _excluded15$1);
1913
2001
  return FUtil.Request({
1914
2002
  method: 'GET',
1915
2003
  url: "/v2/resources/catalogue/" + resourceId + "/items",
@@ -1918,7 +2006,7 @@ function getCollectionItems(_ref29) {
1918
2006
  }
1919
2007
  function getCollectionItems_Draft(_ref30) {
1920
2008
  var resourceId = _ref30.resourceId,
1921
- params = _objectWithoutPropertiesLoose(_ref30, _excluded16);
2009
+ params = _objectWithoutPropertiesLoose(_ref30, _excluded16$1);
1922
2010
  return FUtil.Request({
1923
2011
  method: 'GET',
1924
2012
  url: "/v2/resources/catalogues/drafts/" + resourceId + "/items",
@@ -1927,7 +2015,7 @@ function getCollectionItems_Draft(_ref30) {
1927
2015
  }
1928
2016
  function setCollectionItemSort(_ref31) {
1929
2017
  var resourceId = _ref31.resourceId,
1930
- params = _objectWithoutPropertiesLoose(_ref31, _excluded17);
2018
+ params = _objectWithoutPropertiesLoose(_ref31, _excluded17$1);
1931
2019
  return FUtil.Request({
1932
2020
  method: 'PUT',
1933
2021
  url: "/v2/resources/catalogue/" + resourceId + "/manualSort",