@freelog/tools-lib 0.1.172 → 0.1.174
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/contracts.d.ts +1 -0
- package/dist/service-API/presentables.d.ts +50 -4
- package/dist/service-API/resources.d.ts +1 -1
- package/dist/tools-lib.cjs.development.js +155 -80
- 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 +155 -80
- package/dist/tools-lib.esm.js.map +1 -1
- package/dist/utils/linkTo.d.ts +28 -19
- package/package.json +1 -1
- package/src/service-API/contracts.ts +157 -156
- package/src/service-API/presentables.ts +495 -343
- package/src/service-API/resources.ts +1 -1
- package/src/utils/linkTo.ts +155 -98
|
@@ -64,6 +64,7 @@ interface BatchContractsParamsType {
|
|
|
64
64
|
isLoadPolicyInfo?: 0 | 1;
|
|
65
65
|
projection?: string;
|
|
66
66
|
isTranslate?: 0 | 1;
|
|
67
|
+
contractStatus?: number;
|
|
67
68
|
}
|
|
68
69
|
export declare function batchContracts(params: BatchContractsParamsType): Promise<any>;
|
|
69
70
|
interface TransitionRecordsParamsType {
|
|
@@ -2,11 +2,10 @@ export interface CreatePresentableParamsType {
|
|
|
2
2
|
nodeId: number;
|
|
3
3
|
resourceId: string;
|
|
4
4
|
version: string;
|
|
5
|
-
|
|
5
|
+
batchSignContracts?: {
|
|
6
6
|
resourceId: string;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}[];
|
|
7
|
+
subjectType: number;
|
|
8
|
+
policyIds: string[];
|
|
10
9
|
}[];
|
|
11
10
|
presentableName: string;
|
|
12
11
|
presentableTitle?: string;
|
|
@@ -175,4 +174,51 @@ interface IgnorePresentableVersionUpdateTipParamsType {
|
|
|
175
174
|
ignoreVersion: string;
|
|
176
175
|
}
|
|
177
176
|
export declare function ignorePresentableVersionUpdateTip({ presentableId, ...params }: IgnorePresentableVersionUpdateTipParamsType): Promise<any>;
|
|
177
|
+
interface CreatePresentableCollectionParamsType {
|
|
178
|
+
nodeId: number;
|
|
179
|
+
presentableName: string;
|
|
180
|
+
presentableTitle?: string;
|
|
181
|
+
policies?: {
|
|
182
|
+
policyName: string;
|
|
183
|
+
policyText: string;
|
|
184
|
+
status: 0 | 1;
|
|
185
|
+
}[];
|
|
186
|
+
tags?: string[];
|
|
187
|
+
coverImages?: string[];
|
|
188
|
+
}
|
|
189
|
+
export declare function createPresentableCollection({ ...params }: CreatePresentableCollectionParamsType): Promise<any>;
|
|
190
|
+
interface AddItemsToPresentableCollectionParamsType {
|
|
191
|
+
presentableId: string;
|
|
192
|
+
addCollectionItems: {
|
|
193
|
+
presentableId: string;
|
|
194
|
+
}[];
|
|
195
|
+
}
|
|
196
|
+
export declare function addItemsToPresentableCollection({ presentableId, ...params }: AddItemsToPresentableCollectionParamsType): Promise<any>;
|
|
197
|
+
interface RemoveItemsFromPresentableCollectionParamsType {
|
|
198
|
+
presentableId: string;
|
|
199
|
+
removeCollectionItemIds: string;
|
|
200
|
+
}
|
|
201
|
+
export declare function removeItemsFromPresentableCollection({ presentableId, ...params }: RemoveItemsFromPresentableCollectionParamsType): Promise<any>;
|
|
202
|
+
interface GetItemsFromPresentableCollectionParamsType {
|
|
203
|
+
presentableId: string;
|
|
204
|
+
isLoadLatestVersionInfo?: 0 | 1;
|
|
205
|
+
skip?: number;
|
|
206
|
+
limit?: number;
|
|
207
|
+
keywords?: number;
|
|
208
|
+
sortField?: 'createDate' | 'sortId';
|
|
209
|
+
sortType?: -1 | 1;
|
|
210
|
+
}
|
|
211
|
+
export declare function getItemsFromPresentableCollection({ presentableId, ...params }: GetItemsFromPresentableCollectionParamsType): Promise<any>;
|
|
212
|
+
interface SetItemsSortFromPresentableCollectionManualParamsType {
|
|
213
|
+
presentableId: string;
|
|
214
|
+
sortIds: string[];
|
|
215
|
+
targetSortId: number;
|
|
216
|
+
}
|
|
217
|
+
export declare function setItemsSortFromPresentableCollectionManual({ presentableId, ...params }: SetItemsSortFromPresentableCollectionManualParamsType): Promise<any>;
|
|
218
|
+
interface SetItemsSortFromPresentableCollectionQuickParamsType {
|
|
219
|
+
presentableId: string;
|
|
220
|
+
sortIds: string[];
|
|
221
|
+
targetSortId: number;
|
|
222
|
+
}
|
|
223
|
+
export declare function setItemsSortFromPresentableCollectionQuick({ presentableId, ...params }: SetItemsSortFromPresentableCollectionQuickParamsType): Promise<any>;
|
|
178
224
|
export {};
|
|
@@ -548,7 +548,7 @@ interface AddResourceItems_Draft_ParamsType {
|
|
|
548
548
|
resourceId: string;
|
|
549
549
|
addCollectionItems: {
|
|
550
550
|
resourceId: string;
|
|
551
|
-
itemTitle
|
|
551
|
+
itemTitle?: string;
|
|
552
552
|
authExcludedItems?: {
|
|
553
553
|
resourceId: string;
|
|
554
554
|
excludedType: 'contractId' | 'policyId';
|
|
@@ -667,62 +667,66 @@ function collectionExhibitManagement(_ref30) {
|
|
|
667
667
|
openAuthDrawer: openAuthDrawer
|
|
668
668
|
});
|
|
669
669
|
}
|
|
670
|
-
function
|
|
671
|
-
var nodeID = _ref31.nodeID
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
670
|
+
function collectionExhibitCreator(_ref31) {
|
|
671
|
+
var nodeID = _ref31.nodeID;
|
|
672
|
+
return "/node/collectionExhibitCreator/" + nodeID;
|
|
673
|
+
}
|
|
674
|
+
function informNodeManagement(_ref32) {
|
|
675
|
+
var nodeID = _ref32.nodeID,
|
|
676
|
+
_ref32$showPage = _ref32.showPage,
|
|
677
|
+
showPage = _ref32$showPage === void 0 ? 'exhibit' : _ref32$showPage,
|
|
678
|
+
params = _objectWithoutPropertiesLoose(_ref32, _excluded4);
|
|
675
679
|
return "/node/informal/" + nodeID + handleQuery(_extends({
|
|
676
680
|
showPage: showPage
|
|
677
681
|
}, params));
|
|
678
682
|
}
|
|
679
|
-
function informExhibitManagement(
|
|
680
|
-
var exhibitID =
|
|
683
|
+
function informExhibitManagement(_ref33) {
|
|
684
|
+
var exhibitID = _ref33.exhibitID;
|
|
681
685
|
return "/node/exhibit/informal/" + exhibitID;
|
|
682
686
|
}
|
|
683
687
|
function storageSpace(_temp14) {
|
|
684
|
-
var
|
|
685
|
-
params = _extends({}, (_objectDestructuringEmpty(
|
|
688
|
+
var _ref34 = _temp14 === void 0 ? {} : _temp14,
|
|
689
|
+
params = _extends({}, (_objectDestructuringEmpty(_ref34), _ref34));
|
|
686
690
|
return "/storage" + handleQuery(params);
|
|
687
691
|
}
|
|
688
|
-
function objectDetails(
|
|
689
|
-
var params = _extends({}, (_objectDestructuringEmpty(
|
|
692
|
+
function objectDetails(_ref35) {
|
|
693
|
+
var params = _extends({}, (_objectDestructuringEmpty(_ref35), _ref35));
|
|
690
694
|
return "/storage" + handleQuery(params);
|
|
691
695
|
}
|
|
692
|
-
function collectionCreateSuccess(
|
|
693
|
-
var collectionID =
|
|
696
|
+
function collectionCreateSuccess(_ref36) {
|
|
697
|
+
var collectionID = _ref36.collectionID;
|
|
694
698
|
return "/result/collection/create/success/" + collectionID;
|
|
695
699
|
}
|
|
696
|
-
function resourceCreateSuccess(
|
|
697
|
-
var resourceID =
|
|
700
|
+
function resourceCreateSuccess(_ref37) {
|
|
701
|
+
var resourceID = _ref37.resourceID;
|
|
698
702
|
return "/result/resource/create/success/" + resourceID;
|
|
699
703
|
}
|
|
700
|
-
function resourceVersionCreateSuccess(
|
|
701
|
-
var resourceID = _ref37.resourceID,
|
|
702
|
-
version = _ref37.version;
|
|
703
|
-
return "/result/resource/version/create/success/" + resourceID + "/" + version;
|
|
704
|
-
}
|
|
705
|
-
function resourceVersionCreateRelease(_ref38) {
|
|
704
|
+
function resourceVersionCreateSuccess(_ref38) {
|
|
706
705
|
var resourceID = _ref38.resourceID,
|
|
707
706
|
version = _ref38.version;
|
|
707
|
+
return "/result/resource/version/create/success/" + resourceID + "/" + version;
|
|
708
|
+
}
|
|
709
|
+
function resourceVersionCreateRelease(_ref39) {
|
|
710
|
+
var resourceID = _ref39.resourceID,
|
|
711
|
+
version = _ref39.version;
|
|
708
712
|
return "/result/resource/version/create/release/" + resourceID + "/" + version;
|
|
709
713
|
}
|
|
710
|
-
function nodeCreateSuccess(
|
|
711
|
-
var nodeID =
|
|
714
|
+
function nodeCreateSuccess(_ref40) {
|
|
715
|
+
var nodeID = _ref40.nodeID;
|
|
712
716
|
return "/result/node/create/success/" + nodeID;
|
|
713
717
|
}
|
|
714
718
|
function invitation(_temp15) {
|
|
715
|
-
var
|
|
716
|
-
goTo =
|
|
717
|
-
params = _objectWithoutPropertiesLoose(
|
|
719
|
+
var _ref41 = _temp15 === void 0 ? {} : _temp15,
|
|
720
|
+
goTo = _ref41.goTo,
|
|
721
|
+
params = _objectWithoutPropertiesLoose(_ref41, _excluded5);
|
|
718
722
|
// console.log(params.goTo, 'goTo9iowjefklsdj;flksdjflk')
|
|
719
723
|
return "/invitation" + handleQuery(_extends({}, params, {
|
|
720
724
|
returnUrl: goTo ? encodeURIComponent(goTo) : undefined
|
|
721
725
|
}));
|
|
722
726
|
}
|
|
723
727
|
function exception403(_temp16) {
|
|
724
|
-
var
|
|
725
|
-
params = _extends({}, (_objectDestructuringEmpty(
|
|
728
|
+
var _ref42 = _temp16 === void 0 ? {} : _temp16,
|
|
729
|
+
params = _extends({}, (_objectDestructuringEmpty(_ref42), _ref42));
|
|
726
730
|
var fromUrl = params.from || '';
|
|
727
731
|
if (!fromUrl) {
|
|
728
732
|
var _window$location = window.location,
|
|
@@ -735,8 +739,8 @@ function exception403(_temp16) {
|
|
|
735
739
|
});
|
|
736
740
|
}
|
|
737
741
|
function exceptionUnableToAccess(_temp17) {
|
|
738
|
-
var
|
|
739
|
-
params = _extends({}, (_objectDestructuringEmpty(
|
|
742
|
+
var _ref43 = _temp17 === void 0 ? {} : _temp17,
|
|
743
|
+
params = _extends({}, (_objectDestructuringEmpty(_ref43), _ref43));
|
|
740
744
|
var fromUrl = params.from || '';
|
|
741
745
|
if (!fromUrl) {
|
|
742
746
|
var _window$location2 = window.location,
|
|
@@ -748,83 +752,88 @@ function exceptionUnableToAccess(_temp17) {
|
|
|
748
752
|
from: fromUrl
|
|
749
753
|
});
|
|
750
754
|
}
|
|
751
|
-
function
|
|
752
|
-
var
|
|
755
|
+
function exceptionCommon(_temp18) {
|
|
756
|
+
var _ref44 = _temp18 === void 0 ? {} : _temp18,
|
|
757
|
+
params = _extends({}, (_objectDestructuringEmpty(_ref44), _ref44));
|
|
758
|
+
return "/exception/common" + handleQuery(_extends({}, params));
|
|
759
|
+
}
|
|
760
|
+
function nodeFreeze(_ref45) {
|
|
761
|
+
var nodeID = _ref45.nodeID;
|
|
753
762
|
return "/result/node/freeze/" + nodeID;
|
|
754
763
|
}
|
|
755
|
-
function resourceFreeze(
|
|
756
|
-
var resourceID =
|
|
764
|
+
function resourceFreeze(_ref46) {
|
|
765
|
+
var resourceID = _ref46.resourceID;
|
|
757
766
|
return "/result/resource/freeze/" + resourceID;
|
|
758
767
|
}
|
|
759
|
-
function globalSearch(
|
|
760
|
-
var search =
|
|
768
|
+
function globalSearch(_ref47) {
|
|
769
|
+
var search = _ref47.search;
|
|
761
770
|
return "/search" + handleQuery({
|
|
762
771
|
search: search
|
|
763
772
|
});
|
|
764
773
|
}
|
|
765
|
-
function login(
|
|
766
|
-
var
|
|
767
|
-
goTo =
|
|
774
|
+
function login(_temp19) {
|
|
775
|
+
var _ref48 = _temp19 === void 0 ? {} : _temp19,
|
|
776
|
+
goTo = _ref48.goTo;
|
|
768
777
|
return "/login" + handleQuery({
|
|
769
778
|
goTo: goTo ? encodeURIComponent(goTo) : undefined
|
|
770
779
|
});
|
|
771
780
|
}
|
|
772
|
-
function logon(
|
|
773
|
-
var
|
|
774
|
-
goTo =
|
|
775
|
-
params = _objectWithoutPropertiesLoose(
|
|
781
|
+
function logon(_temp20) {
|
|
782
|
+
var _ref49 = _temp20 === void 0 ? {} : _temp20,
|
|
783
|
+
goTo = _ref49.goTo,
|
|
784
|
+
params = _objectWithoutPropertiesLoose(_ref49, _excluded6);
|
|
776
785
|
return "/logon" + handleQuery(_extends({
|
|
777
786
|
goTo: goTo ? encodeURIComponent(goTo) : undefined
|
|
778
787
|
}, params));
|
|
779
788
|
}
|
|
780
|
-
function bind(
|
|
781
|
-
var
|
|
782
|
-
goTo =
|
|
783
|
-
returnUrl =
|
|
784
|
-
params = _objectWithoutPropertiesLoose(
|
|
789
|
+
function bind(_temp21) {
|
|
790
|
+
var _ref50 = _temp21 === void 0 ? {} : _temp21,
|
|
791
|
+
goTo = _ref50.goTo,
|
|
792
|
+
returnUrl = _ref50.returnUrl,
|
|
793
|
+
params = _objectWithoutPropertiesLoose(_ref50, _excluded7);
|
|
785
794
|
return "/bind" + handleQuery(_extends({
|
|
786
795
|
goTo: goTo ? encodeURIComponent(goTo) : undefined,
|
|
787
796
|
returnUrl: returnUrl ? encodeURIComponent(returnUrl) : undefined
|
|
788
797
|
}, params));
|
|
789
798
|
}
|
|
790
|
-
function retrieveUserPassword(
|
|
791
|
-
var
|
|
792
|
-
goTo =
|
|
799
|
+
function retrieveUserPassword(_temp22) {
|
|
800
|
+
var _ref51 = _temp22 === void 0 ? {} : _temp22,
|
|
801
|
+
goTo = _ref51.goTo;
|
|
793
802
|
return "/retrieve" + handleQuery({
|
|
794
803
|
goTo: goTo ? encodeURIComponent(goTo) : undefined
|
|
795
804
|
});
|
|
796
805
|
}
|
|
797
|
-
function retrievePayPassword(
|
|
798
|
-
_objectDestructuringEmpty(
|
|
806
|
+
function retrievePayPassword(_temp23) {
|
|
807
|
+
_objectDestructuringEmpty(_temp23 === void 0 ? {} : _temp23);
|
|
799
808
|
return "/retrievePayPassword";
|
|
800
809
|
}
|
|
801
|
-
function userFreeze(
|
|
802
|
-
_objectDestructuringEmpty(
|
|
810
|
+
function userFreeze(_temp24) {
|
|
811
|
+
_objectDestructuringEmpty(_temp24 === void 0 ? {} : _temp24);
|
|
803
812
|
return "/freeze";
|
|
804
813
|
}
|
|
805
|
-
function wallet(
|
|
806
|
-
_objectDestructuringEmpty(
|
|
814
|
+
function wallet(_temp25) {
|
|
815
|
+
_objectDestructuringEmpty(_temp25 === void 0 ? {} : _temp25);
|
|
807
816
|
return "/logged/wallet";
|
|
808
817
|
}
|
|
809
|
-
function reward(
|
|
810
|
-
_objectDestructuringEmpty(
|
|
818
|
+
function reward(_temp26) {
|
|
819
|
+
_objectDestructuringEmpty(_temp26 === void 0 ? {} : _temp26);
|
|
811
820
|
return "/logged/reward";
|
|
812
821
|
}
|
|
813
|
-
function contract(
|
|
814
|
-
var
|
|
815
|
-
params = _extends({}, (_objectDestructuringEmpty(
|
|
822
|
+
function contract(_temp27) {
|
|
823
|
+
var _ref56 = _temp27 === void 0 ? {} : _temp27,
|
|
824
|
+
params = _extends({}, (_objectDestructuringEmpty(_ref56), _ref56));
|
|
816
825
|
return "/logged/contract" + handleQuery(_extends({}, params));
|
|
817
826
|
}
|
|
818
|
-
function setting(
|
|
819
|
-
_objectDestructuringEmpty(
|
|
827
|
+
function setting(_temp28) {
|
|
828
|
+
_objectDestructuringEmpty(_temp28 === void 0 ? {} : _temp28);
|
|
820
829
|
return "/logged/setting";
|
|
821
830
|
}
|
|
822
|
-
function binding(
|
|
823
|
-
_objectDestructuringEmpty(
|
|
831
|
+
function binding(_temp29) {
|
|
832
|
+
_objectDestructuringEmpty(_temp29 === void 0 ? {} : _temp29);
|
|
824
833
|
return "/logged/binding";
|
|
825
834
|
}
|
|
826
|
-
function resultBindingSuccess(
|
|
827
|
-
_objectDestructuringEmpty(
|
|
835
|
+
function resultBindingSuccess(_temp30) {
|
|
836
|
+
_objectDestructuringEmpty(_temp30 === void 0 ? {} : _temp30);
|
|
828
837
|
return "/result/binding";
|
|
829
838
|
}
|
|
830
839
|
/************** user End ******************************************************/
|
|
@@ -874,6 +883,7 @@ var LinkTo = {
|
|
|
874
883
|
nodeManagement: nodeManagement,
|
|
875
884
|
exhibitManagement: exhibitManagement,
|
|
876
885
|
collectionExhibitManagement: collectionExhibitManagement,
|
|
886
|
+
collectionExhibitCreator: collectionExhibitCreator,
|
|
877
887
|
informNodeManagement: informNodeManagement,
|
|
878
888
|
informExhibitManagement: informExhibitManagement,
|
|
879
889
|
storageSpace: storageSpace,
|
|
@@ -886,6 +896,7 @@ var LinkTo = {
|
|
|
886
896
|
invitation: invitation,
|
|
887
897
|
exception403: exception403,
|
|
888
898
|
exceptionUnableToAccess: exceptionUnableToAccess,
|
|
899
|
+
exceptionCommon: exceptionCommon,
|
|
889
900
|
nodeFreeze: nodeFreeze,
|
|
890
901
|
resourceFreeze: resourceFreeze,
|
|
891
902
|
globalSearch: globalSearch,
|
|
@@ -1022,7 +1033,12 @@ var _excluded$1 = ["presentableId"],
|
|
|
1022
1033
|
_excluded8 = ["presentableId"],
|
|
1023
1034
|
_excluded9 = ["nodeId"],
|
|
1024
1035
|
_excluded10 = ["nodeId"],
|
|
1025
|
-
_excluded11 = ["presentableId"]
|
|
1036
|
+
_excluded11 = ["presentableId"],
|
|
1037
|
+
_excluded12 = ["presentableId"],
|
|
1038
|
+
_excluded13 = ["presentableId"],
|
|
1039
|
+
_excluded14 = ["presentableId"],
|
|
1040
|
+
_excluded15 = ["presentableId"],
|
|
1041
|
+
_excluded16 = ["presentableId"];
|
|
1026
1042
|
function createPresentable(params) {
|
|
1027
1043
|
return FUtil.Request({
|
|
1028
1044
|
method: 'POST',
|
|
@@ -1173,6 +1189,59 @@ function ignorePresentableVersionUpdateTip(_ref12) {
|
|
|
1173
1189
|
data: params
|
|
1174
1190
|
});
|
|
1175
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
|
+
}
|
|
1176
1245
|
|
|
1177
1246
|
var Exhibit = {
|
|
1178
1247
|
__proto__: null,
|
|
@@ -1192,7 +1261,13 @@ var Exhibit = {
|
|
|
1192
1261
|
batchCreatePresentable: batchCreatePresentable,
|
|
1193
1262
|
batchUpdatePresentable: batchUpdatePresentable,
|
|
1194
1263
|
batchUpdatePresentableStatus: batchUpdatePresentableStatus,
|
|
1195
|
-
ignorePresentableVersionUpdateTip: ignorePresentableVersionUpdateTip
|
|
1264
|
+
ignorePresentableVersionUpdateTip: ignorePresentableVersionUpdateTip,
|
|
1265
|
+
createPresentableCollection: createPresentableCollection,
|
|
1266
|
+
addItemsToPresentableCollection: addItemsToPresentableCollection,
|
|
1267
|
+
removeItemsFromPresentableCollection: removeItemsFromPresentableCollection,
|
|
1268
|
+
getItemsFromPresentableCollection: getItemsFromPresentableCollection,
|
|
1269
|
+
setItemsSortFromPresentableCollectionManual: setItemsSortFromPresentableCollectionManual,
|
|
1270
|
+
setItemsSortFromPresentableCollectionQuick: setItemsSortFromPresentableCollectionQuick
|
|
1196
1271
|
};
|
|
1197
1272
|
|
|
1198
1273
|
var _excluded$2 = ["bucketName"],
|
|
@@ -1524,11 +1599,11 @@ var _excluded$3 = ["resourceIdOrName"],
|
|
|
1524
1599
|
_excluded9$1 = ["resourceId"],
|
|
1525
1600
|
_excluded10$1 = ["resourceId"],
|
|
1526
1601
|
_excluded11$1 = ["resourceId"],
|
|
1527
|
-
_excluded12 = ["resourceId"],
|
|
1528
|
-
_excluded13 = ["resourceId"],
|
|
1529
|
-
_excluded14 = ["resourceId"],
|
|
1530
|
-
_excluded15 = ["resourceId"],
|
|
1531
|
-
_excluded16 = ["resourceId"],
|
|
1602
|
+
_excluded12$1 = ["resourceId"],
|
|
1603
|
+
_excluded13$1 = ["resourceId"],
|
|
1604
|
+
_excluded14$1 = ["resourceId"],
|
|
1605
|
+
_excluded15$1 = ["resourceId"],
|
|
1606
|
+
_excluded16$1 = ["resourceId"],
|
|
1532
1607
|
_excluded17 = ["resourceId"],
|
|
1533
1608
|
_excluded18 = ["resourceId"],
|
|
1534
1609
|
_excluded19 = ["resourceId"],
|
|
@@ -1774,7 +1849,7 @@ function cycleDependencyCheck$1(_ref13) {
|
|
|
1774
1849
|
}
|
|
1775
1850
|
function relationTree$1(_ref14) {
|
|
1776
1851
|
var resourceId = _ref14.resourceId,
|
|
1777
|
-
params = _objectWithoutPropertiesLoose(_ref14, _excluded12);
|
|
1852
|
+
params = _objectWithoutPropertiesLoose(_ref14, _excluded12$1);
|
|
1778
1853
|
// return FUtil.Axios.get(`/v2/resources/${resourceId}/relationTree`, {
|
|
1779
1854
|
// params,
|
|
1780
1855
|
// });
|
|
@@ -1786,7 +1861,7 @@ function relationTree$1(_ref14) {
|
|
|
1786
1861
|
}
|
|
1787
1862
|
function relationTreeAuth(_ref15) {
|
|
1788
1863
|
var resourceId = _ref15.resourceId,
|
|
1789
|
-
params = _objectWithoutPropertiesLoose(_ref15, _excluded13);
|
|
1864
|
+
params = _objectWithoutPropertiesLoose(_ref15, _excluded13$1);
|
|
1790
1865
|
return FUtil.Request({
|
|
1791
1866
|
method: 'GET',
|
|
1792
1867
|
url: "/v2/auths/resources/" + resourceId + "/relationTreeAuth",
|
|
@@ -1887,7 +1962,7 @@ function generateResourceNames(_ref26) {
|
|
|
1887
1962
|
}
|
|
1888
1963
|
function updateCollection(_ref27) {
|
|
1889
1964
|
var resourceId = _ref27.resourceId,
|
|
1890
|
-
params = _objectWithoutPropertiesLoose(_ref27, _excluded14);
|
|
1965
|
+
params = _objectWithoutPropertiesLoose(_ref27, _excluded14$1);
|
|
1891
1966
|
return FUtil.Request({
|
|
1892
1967
|
method: 'PUT',
|
|
1893
1968
|
url: "/v2/resources/catalogue/" + resourceId,
|
|
@@ -1904,7 +1979,7 @@ function deleteCollectionUnitResource(_ref28) {
|
|
|
1904
1979
|
}
|
|
1905
1980
|
function getCollectionItems(_ref29) {
|
|
1906
1981
|
var resourceId = _ref29.resourceId,
|
|
1907
|
-
params = _objectWithoutPropertiesLoose(_ref29, _excluded15);
|
|
1982
|
+
params = _objectWithoutPropertiesLoose(_ref29, _excluded15$1);
|
|
1908
1983
|
return FUtil.Request({
|
|
1909
1984
|
method: 'GET',
|
|
1910
1985
|
url: "/v2/resources/catalogue/" + resourceId + "/items",
|
|
@@ -1913,7 +1988,7 @@ function getCollectionItems(_ref29) {
|
|
|
1913
1988
|
}
|
|
1914
1989
|
function getCollectionItems_Draft(_ref30) {
|
|
1915
1990
|
var resourceId = _ref30.resourceId,
|
|
1916
|
-
params = _objectWithoutPropertiesLoose(_ref30, _excluded16);
|
|
1991
|
+
params = _objectWithoutPropertiesLoose(_ref30, _excluded16$1);
|
|
1917
1992
|
return FUtil.Request({
|
|
1918
1993
|
method: 'GET',
|
|
1919
1994
|
url: "/v2/resources/catalogues/drafts/" + resourceId + "/items",
|