@freelog/tools-lib 0.1.178 → 0.1.180
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 +18 -3
- package/dist/tools-lib.cjs.development.js +50 -24
- 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 +50 -24
- package/dist/tools-lib.esm.js.map +1 -1
- package/dist/utils/linkTo.d.ts +2 -1
- package/package.json +1 -1
- package/src/service-API/presentables.ts +48 -3
- package/src/utils/linkTo.ts +5 -1
|
@@ -86,6 +86,7 @@ interface PresentablesParamsType {
|
|
|
86
86
|
isLoadPolicyInfo?: 0 | 1;
|
|
87
87
|
isLoadResourceDetailInfo?: 0 | 1;
|
|
88
88
|
isLoadVersionUpdateTip?: 0 | 1;
|
|
89
|
+
subjectType?: 1 | 4 | 5;
|
|
89
90
|
}
|
|
90
91
|
export declare function presentables(params: PresentablesParamsType): Promise<any>;
|
|
91
92
|
interface PresentableListParamsType {
|
|
@@ -188,6 +189,13 @@ interface CreatePresentableCollectionParamsType {
|
|
|
188
189
|
resourceTypeCode?: string;
|
|
189
190
|
}
|
|
190
191
|
export declare function createPresentableCollection({ ...params }: CreatePresentableCollectionParamsType): Promise<any>;
|
|
192
|
+
interface UpdatePresentableCollectionParamsType {
|
|
193
|
+
presentableId: string;
|
|
194
|
+
catalogueProperty?: {
|
|
195
|
+
collection_sort_list: 'collection_sort_ascending' | 'collection_sort_descending';
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
export declare function updatePresentableCollection({ presentableId, ...params }: UpdatePresentableCollectionParamsType): Promise<any>;
|
|
191
199
|
interface AddItemsToPresentableCollectionParamsType {
|
|
192
200
|
presentableId: string;
|
|
193
201
|
addCollectionItems: {
|
|
@@ -197,7 +205,8 @@ interface AddItemsToPresentableCollectionParamsType {
|
|
|
197
205
|
export declare function addItemsToPresentableCollection({ presentableId, ...params }: AddItemsToPresentableCollectionParamsType): Promise<any>;
|
|
198
206
|
interface RemoveItemsFromPresentableCollectionParamsType {
|
|
199
207
|
presentableId: string;
|
|
200
|
-
|
|
208
|
+
removeIds: string;
|
|
209
|
+
idType?: 'resourceId' | 'presentableId' | 'itemId';
|
|
201
210
|
}
|
|
202
211
|
export declare function removeItemsFromPresentableCollection({ presentableId, ...params }: RemoveItemsFromPresentableCollectionParamsType): Promise<any>;
|
|
203
212
|
interface GetItemsFromPresentableCollectionParamsType {
|
|
@@ -210,6 +219,12 @@ interface GetItemsFromPresentableCollectionParamsType {
|
|
|
210
219
|
sortType?: -1 | 1;
|
|
211
220
|
}
|
|
212
221
|
export declare function getItemsFromPresentableCollection({ presentableId, ...params }: GetItemsFromPresentableCollectionParamsType): Promise<any>;
|
|
222
|
+
interface GetItemsFromPresentableCollectionIsExistParamsType {
|
|
223
|
+
presentableId: string;
|
|
224
|
+
mountIds: string;
|
|
225
|
+
idType?: 'resourceId' | 'presentableId';
|
|
226
|
+
}
|
|
227
|
+
export declare function getItemsFromPresentableCollectionIsExist({ presentableId, ...params }: GetItemsFromPresentableCollectionIsExistParamsType): Promise<any>;
|
|
213
228
|
interface SetItemsSortFromPresentableCollectionManualParamsType {
|
|
214
229
|
presentableId: string;
|
|
215
230
|
sortIds: string[];
|
|
@@ -218,8 +233,8 @@ interface SetItemsSortFromPresentableCollectionManualParamsType {
|
|
|
218
233
|
export declare function setItemsSortFromPresentableCollectionManual({ presentableId, ...params }: SetItemsSortFromPresentableCollectionManualParamsType): Promise<any>;
|
|
219
234
|
interface SetItemsSortFromPresentableCollectionQuickParamsType {
|
|
220
235
|
presentableId: string;
|
|
221
|
-
|
|
222
|
-
|
|
236
|
+
sortField: 'createDate' | 'itemTitle' | 'sortId' | 'resourceFirstVersionReleaseDate';
|
|
237
|
+
sortType: 1 | -1;
|
|
223
238
|
}
|
|
224
239
|
export declare function setItemsSortFromPresentableCollectionQuick({ presentableId, ...params }: SetItemsSortFromPresentableCollectionQuickParamsType): Promise<any>;
|
|
225
240
|
interface GetItemsAutoCollectRuleParamsType {
|
|
@@ -685,8 +685,12 @@ function informNodeManagement(_ref33) {
|
|
|
685
685
|
}, params));
|
|
686
686
|
}
|
|
687
687
|
function informExhibitManagement(_ref34) {
|
|
688
|
-
var exhibitID = _ref34.exhibitID
|
|
689
|
-
|
|
688
|
+
var exhibitID = _ref34.exhibitID,
|
|
689
|
+
_ref34$openAuthDrawer = _ref34.openAuthDrawer,
|
|
690
|
+
openAuthDrawer = _ref34$openAuthDrawer === void 0 ? undefined : _ref34$openAuthDrawer;
|
|
691
|
+
return "/node/exhibit/informal/" + exhibitID + handleQuery({
|
|
692
|
+
openAuthDrawer: openAuthDrawer
|
|
693
|
+
});
|
|
690
694
|
}
|
|
691
695
|
function storageSpace(_temp14) {
|
|
692
696
|
var _ref35 = _temp14 === void 0 ? {} : _temp14,
|
|
@@ -1044,7 +1048,9 @@ var _excluded$1 = ["presentableId"],
|
|
|
1044
1048
|
_excluded14 = ["presentableId"],
|
|
1045
1049
|
_excluded15 = ["presentableId"],
|
|
1046
1050
|
_excluded16 = ["presentableId"],
|
|
1047
|
-
_excluded17 = ["presentableId"]
|
|
1051
|
+
_excluded17 = ["presentableId"],
|
|
1052
|
+
_excluded18 = ["presentableId"],
|
|
1053
|
+
_excluded19 = ["presentableId"];
|
|
1048
1054
|
function createPresentable(params) {
|
|
1049
1055
|
return FUtil.Request({
|
|
1050
1056
|
method: 'POST',
|
|
@@ -1203,61 +1209,79 @@ function createPresentableCollection(_ref13) {
|
|
|
1203
1209
|
data: params
|
|
1204
1210
|
});
|
|
1205
1211
|
}
|
|
1206
|
-
function
|
|
1212
|
+
function updatePresentableCollection(_ref14) {
|
|
1207
1213
|
var presentableId = _ref14.presentableId,
|
|
1208
1214
|
params = _objectWithoutPropertiesLoose(_ref14, _excluded12);
|
|
1209
1215
|
return FUtil.Request({
|
|
1210
|
-
method: '
|
|
1211
|
-
url: "/v2/presentables/catalogues/" + presentableId
|
|
1216
|
+
method: 'PUT',
|
|
1217
|
+
url: "/v2/presentables/catalogues/" + presentableId,
|
|
1212
1218
|
data: params
|
|
1213
1219
|
});
|
|
1214
1220
|
}
|
|
1215
|
-
function
|
|
1221
|
+
function addItemsToPresentableCollection(_ref15) {
|
|
1216
1222
|
var presentableId = _ref15.presentableId,
|
|
1217
1223
|
params = _objectWithoutPropertiesLoose(_ref15, _excluded13);
|
|
1218
1224
|
return FUtil.Request({
|
|
1219
|
-
method: '
|
|
1225
|
+
method: 'POST',
|
|
1220
1226
|
url: "/v2/presentables/catalogues/" + presentableId + "/items",
|
|
1221
|
-
|
|
1227
|
+
data: params
|
|
1222
1228
|
});
|
|
1223
1229
|
}
|
|
1224
|
-
function
|
|
1230
|
+
function removeItemsFromPresentableCollection(_ref16) {
|
|
1225
1231
|
var presentableId = _ref16.presentableId,
|
|
1226
1232
|
params = _objectWithoutPropertiesLoose(_ref16, _excluded14);
|
|
1227
1233
|
return FUtil.Request({
|
|
1228
|
-
method: '
|
|
1234
|
+
method: 'DELETE',
|
|
1229
1235
|
url: "/v2/presentables/catalogues/" + presentableId + "/items",
|
|
1230
1236
|
params: params
|
|
1231
1237
|
});
|
|
1232
1238
|
}
|
|
1233
|
-
function
|
|
1239
|
+
function getItemsFromPresentableCollection(_ref17) {
|
|
1234
1240
|
var presentableId = _ref17.presentableId,
|
|
1235
1241
|
params = _objectWithoutPropertiesLoose(_ref17, _excluded15);
|
|
1242
|
+
return FUtil.Request({
|
|
1243
|
+
method: 'GET',
|
|
1244
|
+
url: "/v2/presentables/catalogues/" + presentableId + "/items",
|
|
1245
|
+
params: params
|
|
1246
|
+
});
|
|
1247
|
+
}
|
|
1248
|
+
function getItemsFromPresentableCollectionIsExist(_ref18) {
|
|
1249
|
+
var presentableId = _ref18.presentableId,
|
|
1250
|
+
params = _objectWithoutPropertiesLoose(_ref18, _excluded16);
|
|
1251
|
+
return FUtil.Request({
|
|
1252
|
+
method: 'GET',
|
|
1253
|
+
url: "/v2/presentables/catalogues/" + presentableId + "/items/checkExists",
|
|
1254
|
+
params: params
|
|
1255
|
+
});
|
|
1256
|
+
}
|
|
1257
|
+
function setItemsSortFromPresentableCollectionManual(_ref19) {
|
|
1258
|
+
var presentableId = _ref19.presentableId,
|
|
1259
|
+
params = _objectWithoutPropertiesLoose(_ref19, _excluded17);
|
|
1236
1260
|
return FUtil.Request({
|
|
1237
1261
|
method: 'PUT',
|
|
1238
1262
|
url: "/v2/presentables/catalogues/" + presentableId + "/manualSort",
|
|
1239
1263
|
data: params
|
|
1240
1264
|
});
|
|
1241
1265
|
}
|
|
1242
|
-
function setItemsSortFromPresentableCollectionQuick(
|
|
1243
|
-
var presentableId =
|
|
1244
|
-
params = _objectWithoutPropertiesLoose(
|
|
1266
|
+
function setItemsSortFromPresentableCollectionQuick(_ref20) {
|
|
1267
|
+
var presentableId = _ref20.presentableId,
|
|
1268
|
+
params = _objectWithoutPropertiesLoose(_ref20, _excluded18);
|
|
1245
1269
|
return FUtil.Request({
|
|
1246
1270
|
method: 'PUT',
|
|
1247
1271
|
url: "/v2/presentables/catalogues/" + presentableId + "/manualSort",
|
|
1248
1272
|
data: params
|
|
1249
1273
|
});
|
|
1250
1274
|
}
|
|
1251
|
-
function getItemsAutoCollectRule(
|
|
1252
|
-
var presentableId =
|
|
1275
|
+
function getItemsAutoCollectRule(_ref21) {
|
|
1276
|
+
var presentableId = _ref21.presentableId;
|
|
1253
1277
|
return FUtil.Request({
|
|
1254
1278
|
method: 'GET',
|
|
1255
1279
|
url: "/v2/presentables/catalogues/" + presentableId + "/items/collectRules"
|
|
1256
1280
|
});
|
|
1257
1281
|
}
|
|
1258
|
-
function setItemsAutoCollectRule(
|
|
1259
|
-
var presentableId =
|
|
1260
|
-
params = _objectWithoutPropertiesLoose(
|
|
1282
|
+
function setItemsAutoCollectRule(_ref22) {
|
|
1283
|
+
var presentableId = _ref22.presentableId,
|
|
1284
|
+
params = _objectWithoutPropertiesLoose(_ref22, _excluded19);
|
|
1261
1285
|
return FUtil.Request({
|
|
1262
1286
|
method: 'POST',
|
|
1263
1287
|
url: "/v2/presentables/catalogues/" + presentableId + "/items/collectRules",
|
|
@@ -1285,9 +1309,11 @@ var Exhibit = {
|
|
|
1285
1309
|
batchUpdatePresentableStatus: batchUpdatePresentableStatus,
|
|
1286
1310
|
ignorePresentableVersionUpdateTip: ignorePresentableVersionUpdateTip,
|
|
1287
1311
|
createPresentableCollection: createPresentableCollection,
|
|
1312
|
+
updatePresentableCollection: updatePresentableCollection,
|
|
1288
1313
|
addItemsToPresentableCollection: addItemsToPresentableCollection,
|
|
1289
1314
|
removeItemsFromPresentableCollection: removeItemsFromPresentableCollection,
|
|
1290
1315
|
getItemsFromPresentableCollection: getItemsFromPresentableCollection,
|
|
1316
|
+
getItemsFromPresentableCollectionIsExist: getItemsFromPresentableCollectionIsExist,
|
|
1291
1317
|
setItemsSortFromPresentableCollectionManual: setItemsSortFromPresentableCollectionManual,
|
|
1292
1318
|
setItemsSortFromPresentableCollectionQuick: setItemsSortFromPresentableCollectionQuick,
|
|
1293
1319
|
getItemsAutoCollectRule: getItemsAutoCollectRule,
|
|
@@ -1629,8 +1655,8 @@ var _excluded$3 = ["resourceIdOrName"],
|
|
|
1629
1655
|
_excluded15$1 = ["resourceId"],
|
|
1630
1656
|
_excluded16$1 = ["resourceId"],
|
|
1631
1657
|
_excluded17$1 = ["resourceId"],
|
|
1632
|
-
_excluded18 = ["resourceId"],
|
|
1633
|
-
_excluded19 = ["resourceId"],
|
|
1658
|
+
_excluded18$1 = ["resourceId"],
|
|
1659
|
+
_excluded19$1 = ["resourceId"],
|
|
1634
1660
|
_excluded20 = ["resourceId"],
|
|
1635
1661
|
_excluded21 = ["resourceId"],
|
|
1636
1662
|
_excluded22 = ["resourceId"],
|
|
@@ -2030,7 +2056,7 @@ function setCollectionItemSort(_ref31) {
|
|
|
2030
2056
|
}
|
|
2031
2057
|
function reorderCollectionItemsSort(_ref32) {
|
|
2032
2058
|
var resourceId = _ref32.resourceId,
|
|
2033
|
-
params = _objectWithoutPropertiesLoose(_ref32, _excluded18);
|
|
2059
|
+
params = _objectWithoutPropertiesLoose(_ref32, _excluded18$1);
|
|
2034
2060
|
return FUtil.Request({
|
|
2035
2061
|
method: 'PUT',
|
|
2036
2062
|
url: "/v2/resources/catalogue/" + resourceId + "/reorder",
|
|
@@ -2039,7 +2065,7 @@ function reorderCollectionItemsSort(_ref32) {
|
|
|
2039
2065
|
}
|
|
2040
2066
|
function checkExistCollectionItems(_ref33) {
|
|
2041
2067
|
var resourceId = _ref33.resourceId,
|
|
2042
|
-
params = _objectWithoutPropertiesLoose(_ref33, _excluded19);
|
|
2068
|
+
params = _objectWithoutPropertiesLoose(_ref33, _excluded19$1);
|
|
2043
2069
|
return FUtil.Request({
|
|
2044
2070
|
method: 'GET',
|
|
2045
2071
|
url: "/v2/resources/catalogue/" + resourceId + "/items/checkExists",
|