@freelog/tools-lib 0.1.174 → 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.
- package/dist/service-API/presentables.d.ts +7 -1
- package/dist/tools-lib.cjs.development.js +79 -55
- package/dist/tools-lib.cjs.development.js.map +1 -1
- package/dist/tools-lib.cjs.production.min.js +1 -1
- package/dist/tools-lib.cjs.production.min.js.map +1 -1
- package/dist/tools-lib.esm.js +79 -55
- package/dist/tools-lib.esm.js.map +1 -1
- package/dist/utils/linkTo.d.ts +4 -0
- package/package.json +1 -1
- package/src/service-API/presentables.ts +47 -1
- package/src/utils/linkTo.ts +662 -651
|
@@ -185,6 +185,7 @@ interface CreatePresentableCollectionParamsType {
|
|
|
185
185
|
}[];
|
|
186
186
|
tags?: string[];
|
|
187
187
|
coverImages?: string[];
|
|
188
|
+
resourceTypeCode?: string;
|
|
188
189
|
}
|
|
189
190
|
export declare function createPresentableCollection({ ...params }: CreatePresentableCollectionParamsType): Promise<any>;
|
|
190
191
|
interface AddItemsToPresentableCollectionParamsType {
|
|
@@ -204,7 +205,7 @@ interface GetItemsFromPresentableCollectionParamsType {
|
|
|
204
205
|
isLoadLatestVersionInfo?: 0 | 1;
|
|
205
206
|
skip?: number;
|
|
206
207
|
limit?: number;
|
|
207
|
-
keywords?:
|
|
208
|
+
keywords?: string;
|
|
208
209
|
sortField?: 'createDate' | 'sortId';
|
|
209
210
|
sortType?: -1 | 1;
|
|
210
211
|
}
|
|
@@ -221,4 +222,9 @@ interface SetItemsSortFromPresentableCollectionQuickParamsType {
|
|
|
221
222
|
targetSortId: number;
|
|
222
223
|
}
|
|
223
224
|
export declare function setItemsSortFromPresentableCollectionQuick({ presentableId, ...params }: SetItemsSortFromPresentableCollectionQuickParamsType): Promise<any>;
|
|
225
|
+
interface GetItemsAutoCollectRuleParamsType {
|
|
226
|
+
presentableId: string;
|
|
227
|
+
}
|
|
228
|
+
export declare function getItemsAutoCollectRule({ presentableId, }: GetItemsAutoCollectRuleParamsType): Promise<any>;
|
|
229
|
+
export declare function SetItemsAutoCollectRuleParamsType({ presentableId, ...params }: AddItemsToPresentableCollectionParamsType): Promise<any>;
|
|
224
230
|
export {};
|
|
@@ -671,62 +671,66 @@ function collectionExhibitCreator(_ref31) {
|
|
|
671
671
|
var nodeID = _ref31.nodeID;
|
|
672
672
|
return "/node/collectionExhibitCreator/" + nodeID;
|
|
673
673
|
}
|
|
674
|
-
function
|
|
675
|
-
var
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
674
|
+
function createdCollectionExhibitManagement(_ref32) {
|
|
675
|
+
var exhibitID = _ref32.exhibitID;
|
|
676
|
+
return "/node/createdCollectionExhibit/formal/" + exhibitID;
|
|
677
|
+
}
|
|
678
|
+
function informNodeManagement(_ref33) {
|
|
679
|
+
var nodeID = _ref33.nodeID,
|
|
680
|
+
_ref33$showPage = _ref33.showPage,
|
|
681
|
+
showPage = _ref33$showPage === void 0 ? 'exhibit' : _ref33$showPage,
|
|
682
|
+
params = _objectWithoutPropertiesLoose(_ref33, _excluded4);
|
|
679
683
|
return "/node/informal/" + nodeID + handleQuery(_extends({
|
|
680
684
|
showPage: showPage
|
|
681
685
|
}, params));
|
|
682
686
|
}
|
|
683
|
-
function informExhibitManagement(
|
|
684
|
-
var exhibitID =
|
|
687
|
+
function informExhibitManagement(_ref34) {
|
|
688
|
+
var exhibitID = _ref34.exhibitID;
|
|
685
689
|
return "/node/exhibit/informal/" + exhibitID;
|
|
686
690
|
}
|
|
687
691
|
function storageSpace(_temp14) {
|
|
688
|
-
var
|
|
689
|
-
params = _extends({}, (_objectDestructuringEmpty(
|
|
692
|
+
var _ref35 = _temp14 === void 0 ? {} : _temp14,
|
|
693
|
+
params = _extends({}, (_objectDestructuringEmpty(_ref35), _ref35));
|
|
690
694
|
return "/storage" + handleQuery(params);
|
|
691
695
|
}
|
|
692
|
-
function objectDetails(
|
|
693
|
-
var params = _extends({}, (_objectDestructuringEmpty(
|
|
696
|
+
function objectDetails(_ref36) {
|
|
697
|
+
var params = _extends({}, (_objectDestructuringEmpty(_ref36), _ref36));
|
|
694
698
|
return "/storage" + handleQuery(params);
|
|
695
699
|
}
|
|
696
|
-
function collectionCreateSuccess(
|
|
697
|
-
var collectionID =
|
|
700
|
+
function collectionCreateSuccess(_ref37) {
|
|
701
|
+
var collectionID = _ref37.collectionID;
|
|
698
702
|
return "/result/collection/create/success/" + collectionID;
|
|
699
703
|
}
|
|
700
|
-
function resourceCreateSuccess(
|
|
701
|
-
var resourceID =
|
|
704
|
+
function resourceCreateSuccess(_ref38) {
|
|
705
|
+
var resourceID = _ref38.resourceID;
|
|
702
706
|
return "/result/resource/create/success/" + resourceID;
|
|
703
707
|
}
|
|
704
|
-
function resourceVersionCreateSuccess(
|
|
705
|
-
var resourceID = _ref38.resourceID,
|
|
706
|
-
version = _ref38.version;
|
|
707
|
-
return "/result/resource/version/create/success/" + resourceID + "/" + version;
|
|
708
|
-
}
|
|
709
|
-
function resourceVersionCreateRelease(_ref39) {
|
|
708
|
+
function resourceVersionCreateSuccess(_ref39) {
|
|
710
709
|
var resourceID = _ref39.resourceID,
|
|
711
710
|
version = _ref39.version;
|
|
711
|
+
return "/result/resource/version/create/success/" + resourceID + "/" + version;
|
|
712
|
+
}
|
|
713
|
+
function resourceVersionCreateRelease(_ref40) {
|
|
714
|
+
var resourceID = _ref40.resourceID,
|
|
715
|
+
version = _ref40.version;
|
|
712
716
|
return "/result/resource/version/create/release/" + resourceID + "/" + version;
|
|
713
717
|
}
|
|
714
|
-
function nodeCreateSuccess(
|
|
715
|
-
var nodeID =
|
|
718
|
+
function nodeCreateSuccess(_ref41) {
|
|
719
|
+
var nodeID = _ref41.nodeID;
|
|
716
720
|
return "/result/node/create/success/" + nodeID;
|
|
717
721
|
}
|
|
718
722
|
function invitation(_temp15) {
|
|
719
|
-
var
|
|
720
|
-
goTo =
|
|
721
|
-
params = _objectWithoutPropertiesLoose(
|
|
723
|
+
var _ref42 = _temp15 === void 0 ? {} : _temp15,
|
|
724
|
+
goTo = _ref42.goTo,
|
|
725
|
+
params = _objectWithoutPropertiesLoose(_ref42, _excluded5);
|
|
722
726
|
// console.log(params.goTo, 'goTo9iowjefklsdj;flksdjflk')
|
|
723
727
|
return "/invitation" + handleQuery(_extends({}, params, {
|
|
724
728
|
returnUrl: goTo ? encodeURIComponent(goTo) : undefined
|
|
725
729
|
}));
|
|
726
730
|
}
|
|
727
731
|
function exception403(_temp16) {
|
|
728
|
-
var
|
|
729
|
-
params = _extends({}, (_objectDestructuringEmpty(
|
|
732
|
+
var _ref43 = _temp16 === void 0 ? {} : _temp16,
|
|
733
|
+
params = _extends({}, (_objectDestructuringEmpty(_ref43), _ref43));
|
|
730
734
|
var fromUrl = params.from || '';
|
|
731
735
|
if (!fromUrl) {
|
|
732
736
|
var _window$location = window.location,
|
|
@@ -739,8 +743,8 @@ function exception403(_temp16) {
|
|
|
739
743
|
});
|
|
740
744
|
}
|
|
741
745
|
function exceptionUnableToAccess(_temp17) {
|
|
742
|
-
var
|
|
743
|
-
params = _extends({}, (_objectDestructuringEmpty(
|
|
746
|
+
var _ref44 = _temp17 === void 0 ? {} : _temp17,
|
|
747
|
+
params = _extends({}, (_objectDestructuringEmpty(_ref44), _ref44));
|
|
744
748
|
var fromUrl = params.from || '';
|
|
745
749
|
if (!fromUrl) {
|
|
746
750
|
var _window$location2 = window.location,
|
|
@@ -753,52 +757,52 @@ function exceptionUnableToAccess(_temp17) {
|
|
|
753
757
|
});
|
|
754
758
|
}
|
|
755
759
|
function exceptionCommon(_temp18) {
|
|
756
|
-
var
|
|
757
|
-
params = _extends({}, (_objectDestructuringEmpty(
|
|
760
|
+
var _ref45 = _temp18 === void 0 ? {} : _temp18,
|
|
761
|
+
params = _extends({}, (_objectDestructuringEmpty(_ref45), _ref45));
|
|
758
762
|
return "/exception/common" + handleQuery(_extends({}, params));
|
|
759
763
|
}
|
|
760
|
-
function nodeFreeze(
|
|
761
|
-
var nodeID =
|
|
764
|
+
function nodeFreeze(_ref46) {
|
|
765
|
+
var nodeID = _ref46.nodeID;
|
|
762
766
|
return "/result/node/freeze/" + nodeID;
|
|
763
767
|
}
|
|
764
|
-
function resourceFreeze(
|
|
765
|
-
var resourceID =
|
|
768
|
+
function resourceFreeze(_ref47) {
|
|
769
|
+
var resourceID = _ref47.resourceID;
|
|
766
770
|
return "/result/resource/freeze/" + resourceID;
|
|
767
771
|
}
|
|
768
|
-
function globalSearch(
|
|
769
|
-
var search =
|
|
772
|
+
function globalSearch(_ref48) {
|
|
773
|
+
var search = _ref48.search;
|
|
770
774
|
return "/search" + handleQuery({
|
|
771
775
|
search: search
|
|
772
776
|
});
|
|
773
777
|
}
|
|
774
778
|
function login(_temp19) {
|
|
775
|
-
var
|
|
776
|
-
goTo =
|
|
779
|
+
var _ref49 = _temp19 === void 0 ? {} : _temp19,
|
|
780
|
+
goTo = _ref49.goTo;
|
|
777
781
|
return "/login" + handleQuery({
|
|
778
782
|
goTo: goTo ? encodeURIComponent(goTo) : undefined
|
|
779
783
|
});
|
|
780
784
|
}
|
|
781
785
|
function logon(_temp20) {
|
|
782
|
-
var
|
|
783
|
-
goTo =
|
|
784
|
-
params = _objectWithoutPropertiesLoose(
|
|
786
|
+
var _ref50 = _temp20 === void 0 ? {} : _temp20,
|
|
787
|
+
goTo = _ref50.goTo,
|
|
788
|
+
params = _objectWithoutPropertiesLoose(_ref50, _excluded6);
|
|
785
789
|
return "/logon" + handleQuery(_extends({
|
|
786
790
|
goTo: goTo ? encodeURIComponent(goTo) : undefined
|
|
787
791
|
}, params));
|
|
788
792
|
}
|
|
789
793
|
function bind(_temp21) {
|
|
790
|
-
var
|
|
791
|
-
goTo =
|
|
792
|
-
returnUrl =
|
|
793
|
-
params = _objectWithoutPropertiesLoose(
|
|
794
|
+
var _ref51 = _temp21 === void 0 ? {} : _temp21,
|
|
795
|
+
goTo = _ref51.goTo,
|
|
796
|
+
returnUrl = _ref51.returnUrl,
|
|
797
|
+
params = _objectWithoutPropertiesLoose(_ref51, _excluded7);
|
|
794
798
|
return "/bind" + handleQuery(_extends({
|
|
795
799
|
goTo: goTo ? encodeURIComponent(goTo) : undefined,
|
|
796
800
|
returnUrl: returnUrl ? encodeURIComponent(returnUrl) : undefined
|
|
797
801
|
}, params));
|
|
798
802
|
}
|
|
799
803
|
function retrieveUserPassword(_temp22) {
|
|
800
|
-
var
|
|
801
|
-
goTo =
|
|
804
|
+
var _ref52 = _temp22 === void 0 ? {} : _temp22,
|
|
805
|
+
goTo = _ref52.goTo;
|
|
802
806
|
return "/retrieve" + handleQuery({
|
|
803
807
|
goTo: goTo ? encodeURIComponent(goTo) : undefined
|
|
804
808
|
});
|
|
@@ -820,8 +824,8 @@ function reward(_temp26) {
|
|
|
820
824
|
return "/logged/reward";
|
|
821
825
|
}
|
|
822
826
|
function contract(_temp27) {
|
|
823
|
-
var
|
|
824
|
-
params = _extends({}, (_objectDestructuringEmpty(
|
|
827
|
+
var _ref57 = _temp27 === void 0 ? {} : _temp27,
|
|
828
|
+
params = _extends({}, (_objectDestructuringEmpty(_ref57), _ref57));
|
|
825
829
|
return "/logged/contract" + handleQuery(_extends({}, params));
|
|
826
830
|
}
|
|
827
831
|
function setting(_temp28) {
|
|
@@ -884,6 +888,7 @@ var LinkTo = {
|
|
|
884
888
|
exhibitManagement: exhibitManagement,
|
|
885
889
|
collectionExhibitManagement: collectionExhibitManagement,
|
|
886
890
|
collectionExhibitCreator: collectionExhibitCreator,
|
|
891
|
+
createdCollectionExhibitManagement: createdCollectionExhibitManagement,
|
|
887
892
|
informNodeManagement: informNodeManagement,
|
|
888
893
|
informExhibitManagement: informExhibitManagement,
|
|
889
894
|
storageSpace: storageSpace,
|
|
@@ -1038,7 +1043,8 @@ var _excluded$1 = ["presentableId"],
|
|
|
1038
1043
|
_excluded13 = ["presentableId"],
|
|
1039
1044
|
_excluded14 = ["presentableId"],
|
|
1040
1045
|
_excluded15 = ["presentableId"],
|
|
1041
|
-
_excluded16 = ["presentableId"]
|
|
1046
|
+
_excluded16 = ["presentableId"],
|
|
1047
|
+
_excluded17 = ["presentableId"];
|
|
1042
1048
|
function createPresentable(params) {
|
|
1043
1049
|
return FUtil.Request({
|
|
1044
1050
|
method: 'POST',
|
|
@@ -1242,6 +1248,22 @@ function setItemsSortFromPresentableCollectionQuick(_ref18) {
|
|
|
1242
1248
|
data: params
|
|
1243
1249
|
});
|
|
1244
1250
|
}
|
|
1251
|
+
function getItemsAutoCollectRule(_ref19) {
|
|
1252
|
+
var presentableId = _ref19.presentableId;
|
|
1253
|
+
return FUtil.Request({
|
|
1254
|
+
method: 'GET',
|
|
1255
|
+
url: "/v2/presentables/cataloguea/" + presentableId + "/items/collectRules"
|
|
1256
|
+
});
|
|
1257
|
+
}
|
|
1258
|
+
function SetItemsAutoCollectRuleParamsType(_ref20) {
|
|
1259
|
+
var presentableId = _ref20.presentableId,
|
|
1260
|
+
params = _objectWithoutPropertiesLoose(_ref20, _excluded17);
|
|
1261
|
+
return FUtil.Request({
|
|
1262
|
+
method: 'POST',
|
|
1263
|
+
url: "/v2/presentables/catalogues/" + presentableId + "/items",
|
|
1264
|
+
data: params
|
|
1265
|
+
});
|
|
1266
|
+
}
|
|
1245
1267
|
|
|
1246
1268
|
var Exhibit = {
|
|
1247
1269
|
__proto__: null,
|
|
@@ -1267,7 +1289,9 @@ var Exhibit = {
|
|
|
1267
1289
|
removeItemsFromPresentableCollection: removeItemsFromPresentableCollection,
|
|
1268
1290
|
getItemsFromPresentableCollection: getItemsFromPresentableCollection,
|
|
1269
1291
|
setItemsSortFromPresentableCollectionManual: setItemsSortFromPresentableCollectionManual,
|
|
1270
|
-
setItemsSortFromPresentableCollectionQuick: setItemsSortFromPresentableCollectionQuick
|
|
1292
|
+
setItemsSortFromPresentableCollectionQuick: setItemsSortFromPresentableCollectionQuick,
|
|
1293
|
+
getItemsAutoCollectRule: getItemsAutoCollectRule,
|
|
1294
|
+
SetItemsAutoCollectRuleParamsType: SetItemsAutoCollectRuleParamsType
|
|
1271
1295
|
};
|
|
1272
1296
|
|
|
1273
1297
|
var _excluded$2 = ["bucketName"],
|
|
@@ -1604,7 +1628,7 @@ var _excluded$3 = ["resourceIdOrName"],
|
|
|
1604
1628
|
_excluded14$1 = ["resourceId"],
|
|
1605
1629
|
_excluded15$1 = ["resourceId"],
|
|
1606
1630
|
_excluded16$1 = ["resourceId"],
|
|
1607
|
-
_excluded17 = ["resourceId"],
|
|
1631
|
+
_excluded17$1 = ["resourceId"],
|
|
1608
1632
|
_excluded18 = ["resourceId"],
|
|
1609
1633
|
_excluded19 = ["resourceId"],
|
|
1610
1634
|
_excluded20 = ["resourceId"],
|
|
@@ -1997,7 +2021,7 @@ function getCollectionItems_Draft(_ref30) {
|
|
|
1997
2021
|
}
|
|
1998
2022
|
function setCollectionItemSort(_ref31) {
|
|
1999
2023
|
var resourceId = _ref31.resourceId,
|
|
2000
|
-
params = _objectWithoutPropertiesLoose(_ref31, _excluded17);
|
|
2024
|
+
params = _objectWithoutPropertiesLoose(_ref31, _excluded17$1);
|
|
2001
2025
|
return FUtil.Request({
|
|
2002
2026
|
method: 'PUT',
|
|
2003
2027
|
url: "/v2/resources/catalogue/" + resourceId + "/manualSort",
|