@freelog/tools-lib 0.1.179 → 0.1.181
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 +9 -2
- package/dist/tools-lib.cjs.development.js +40 -25
- 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 +40 -25
- 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 +28 -3
- package/src/utils/linkTo.ts +5 -1
|
@@ -189,6 +189,13 @@ interface CreatePresentableCollectionParamsType {
|
|
|
189
189
|
resourceTypeCode?: string;
|
|
190
190
|
}
|
|
191
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>;
|
|
192
199
|
interface AddItemsToPresentableCollectionParamsType {
|
|
193
200
|
presentableId: string;
|
|
194
201
|
addCollectionItems: {
|
|
@@ -226,8 +233,8 @@ interface SetItemsSortFromPresentableCollectionManualParamsType {
|
|
|
226
233
|
export declare function setItemsSortFromPresentableCollectionManual({ presentableId, ...params }: SetItemsSortFromPresentableCollectionManualParamsType): Promise<any>;
|
|
227
234
|
interface SetItemsSortFromPresentableCollectionQuickParamsType {
|
|
228
235
|
presentableId: string;
|
|
229
|
-
|
|
230
|
-
|
|
236
|
+
sortField: 'createDate' | 'itemTitle' | 'sortId' | 'resourceFirstVersionReleaseDate';
|
|
237
|
+
sortType: 1 | -1;
|
|
231
238
|
}
|
|
232
239
|
export declare function setItemsSortFromPresentableCollectionQuick({ presentableId, ...params }: SetItemsSortFromPresentableCollectionQuickParamsType): Promise<any>;
|
|
233
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,
|
|
@@ -1045,7 +1049,8 @@ var _excluded$1 = ["presentableId"],
|
|
|
1045
1049
|
_excluded15 = ["presentableId"],
|
|
1046
1050
|
_excluded16 = ["presentableId"],
|
|
1047
1051
|
_excluded17 = ["presentableId"],
|
|
1048
|
-
_excluded18 = ["presentableId"]
|
|
1052
|
+
_excluded18 = ["presentableId"],
|
|
1053
|
+
_excluded19 = ["presentableId"];
|
|
1049
1054
|
function createPresentable(params) {
|
|
1050
1055
|
return FUtil.Request({
|
|
1051
1056
|
method: 'POST',
|
|
@@ -1204,52 +1209,52 @@ function createPresentableCollection(_ref13) {
|
|
|
1204
1209
|
data: params
|
|
1205
1210
|
});
|
|
1206
1211
|
}
|
|
1207
|
-
function
|
|
1212
|
+
function updatePresentableCollection(_ref14) {
|
|
1208
1213
|
var presentableId = _ref14.presentableId,
|
|
1209
1214
|
params = _objectWithoutPropertiesLoose(_ref14, _excluded12);
|
|
1210
1215
|
return FUtil.Request({
|
|
1211
|
-
method: '
|
|
1212
|
-
url: "/v2/presentables/catalogues/" + presentableId
|
|
1216
|
+
method: 'PUT',
|
|
1217
|
+
url: "/v2/presentables/catalogues/" + presentableId,
|
|
1213
1218
|
data: params
|
|
1214
1219
|
});
|
|
1215
1220
|
}
|
|
1216
|
-
function
|
|
1221
|
+
function addItemsToPresentableCollection(_ref15) {
|
|
1217
1222
|
var presentableId = _ref15.presentableId,
|
|
1218
1223
|
params = _objectWithoutPropertiesLoose(_ref15, _excluded13);
|
|
1219
1224
|
return FUtil.Request({
|
|
1220
|
-
method: '
|
|
1225
|
+
method: 'POST',
|
|
1221
1226
|
url: "/v2/presentables/catalogues/" + presentableId + "/items",
|
|
1222
|
-
|
|
1227
|
+
data: params
|
|
1223
1228
|
});
|
|
1224
1229
|
}
|
|
1225
|
-
function
|
|
1230
|
+
function removeItemsFromPresentableCollection(_ref16) {
|
|
1226
1231
|
var presentableId = _ref16.presentableId,
|
|
1227
1232
|
params = _objectWithoutPropertiesLoose(_ref16, _excluded14);
|
|
1228
1233
|
return FUtil.Request({
|
|
1229
|
-
method: '
|
|
1234
|
+
method: 'DELETE',
|
|
1230
1235
|
url: "/v2/presentables/catalogues/" + presentableId + "/items",
|
|
1231
1236
|
params: params
|
|
1232
1237
|
});
|
|
1233
1238
|
}
|
|
1234
|
-
function
|
|
1239
|
+
function getItemsFromPresentableCollection(_ref17) {
|
|
1235
1240
|
var presentableId = _ref17.presentableId,
|
|
1236
1241
|
params = _objectWithoutPropertiesLoose(_ref17, _excluded15);
|
|
1237
1242
|
return FUtil.Request({
|
|
1238
1243
|
method: 'GET',
|
|
1239
|
-
url: "/v2/presentables/catalogues/" + presentableId + "/items
|
|
1244
|
+
url: "/v2/presentables/catalogues/" + presentableId + "/items",
|
|
1240
1245
|
params: params
|
|
1241
1246
|
});
|
|
1242
1247
|
}
|
|
1243
|
-
function
|
|
1248
|
+
function getItemsFromPresentableCollectionIsExist(_ref18) {
|
|
1244
1249
|
var presentableId = _ref18.presentableId,
|
|
1245
1250
|
params = _objectWithoutPropertiesLoose(_ref18, _excluded16);
|
|
1246
1251
|
return FUtil.Request({
|
|
1247
|
-
method: '
|
|
1248
|
-
url: "/v2/presentables/catalogues/" + presentableId + "/
|
|
1249
|
-
|
|
1252
|
+
method: 'GET',
|
|
1253
|
+
url: "/v2/presentables/catalogues/" + presentableId + "/items/checkExists",
|
|
1254
|
+
params: params
|
|
1250
1255
|
});
|
|
1251
1256
|
}
|
|
1252
|
-
function
|
|
1257
|
+
function setItemsSortFromPresentableCollectionManual(_ref19) {
|
|
1253
1258
|
var presentableId = _ref19.presentableId,
|
|
1254
1259
|
params = _objectWithoutPropertiesLoose(_ref19, _excluded17);
|
|
1255
1260
|
return FUtil.Request({
|
|
@@ -1258,16 +1263,25 @@ function setItemsSortFromPresentableCollectionQuick(_ref19) {
|
|
|
1258
1263
|
data: params
|
|
1259
1264
|
});
|
|
1260
1265
|
}
|
|
1261
|
-
function
|
|
1262
|
-
var presentableId = _ref20.presentableId
|
|
1266
|
+
function setItemsSortFromPresentableCollectionQuick(_ref20) {
|
|
1267
|
+
var presentableId = _ref20.presentableId,
|
|
1268
|
+
params = _objectWithoutPropertiesLoose(_ref20, _excluded18);
|
|
1269
|
+
return FUtil.Request({
|
|
1270
|
+
method: 'PUT',
|
|
1271
|
+
url: "/v2/presentables/catalogues/" + presentableId + "/reorder",
|
|
1272
|
+
data: params
|
|
1273
|
+
});
|
|
1274
|
+
}
|
|
1275
|
+
function getItemsAutoCollectRule(_ref21) {
|
|
1276
|
+
var presentableId = _ref21.presentableId;
|
|
1263
1277
|
return FUtil.Request({
|
|
1264
1278
|
method: 'GET',
|
|
1265
1279
|
url: "/v2/presentables/catalogues/" + presentableId + "/items/collectRules"
|
|
1266
1280
|
});
|
|
1267
1281
|
}
|
|
1268
|
-
function setItemsAutoCollectRule(
|
|
1269
|
-
var presentableId =
|
|
1270
|
-
params = _objectWithoutPropertiesLoose(
|
|
1282
|
+
function setItemsAutoCollectRule(_ref22) {
|
|
1283
|
+
var presentableId = _ref22.presentableId,
|
|
1284
|
+
params = _objectWithoutPropertiesLoose(_ref22, _excluded19);
|
|
1271
1285
|
return FUtil.Request({
|
|
1272
1286
|
method: 'POST',
|
|
1273
1287
|
url: "/v2/presentables/catalogues/" + presentableId + "/items/collectRules",
|
|
@@ -1295,6 +1309,7 @@ var Exhibit = {
|
|
|
1295
1309
|
batchUpdatePresentableStatus: batchUpdatePresentableStatus,
|
|
1296
1310
|
ignorePresentableVersionUpdateTip: ignorePresentableVersionUpdateTip,
|
|
1297
1311
|
createPresentableCollection: createPresentableCollection,
|
|
1312
|
+
updatePresentableCollection: updatePresentableCollection,
|
|
1298
1313
|
addItemsToPresentableCollection: addItemsToPresentableCollection,
|
|
1299
1314
|
removeItemsFromPresentableCollection: removeItemsFromPresentableCollection,
|
|
1300
1315
|
getItemsFromPresentableCollection: getItemsFromPresentableCollection,
|
|
@@ -1641,7 +1656,7 @@ var _excluded$3 = ["resourceIdOrName"],
|
|
|
1641
1656
|
_excluded16$1 = ["resourceId"],
|
|
1642
1657
|
_excluded17$1 = ["resourceId"],
|
|
1643
1658
|
_excluded18$1 = ["resourceId"],
|
|
1644
|
-
_excluded19 = ["resourceId"],
|
|
1659
|
+
_excluded19$1 = ["resourceId"],
|
|
1645
1660
|
_excluded20 = ["resourceId"],
|
|
1646
1661
|
_excluded21 = ["resourceId"],
|
|
1647
1662
|
_excluded22 = ["resourceId"],
|
|
@@ -2050,7 +2065,7 @@ function reorderCollectionItemsSort(_ref32) {
|
|
|
2050
2065
|
}
|
|
2051
2066
|
function checkExistCollectionItems(_ref33) {
|
|
2052
2067
|
var resourceId = _ref33.resourceId,
|
|
2053
|
-
params = _objectWithoutPropertiesLoose(_ref33, _excluded19);
|
|
2068
|
+
params = _objectWithoutPropertiesLoose(_ref33, _excluded19$1);
|
|
2054
2069
|
return FUtil.Request({
|
|
2055
2070
|
method: 'GET',
|
|
2056
2071
|
url: "/v2/resources/catalogue/" + resourceId + "/items/checkExists",
|