@freelog/tools-lib 0.1.177 → 0.1.179
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 -1
- package/dist/tools-lib.cjs.development.js +24 -13
- 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 +24 -13
- package/dist/tools-lib.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/service-API/presentables.ts +22 -2
package/dist/tools-lib.esm.js
CHANGED
|
@@ -1038,7 +1038,8 @@ var _excluded$1 = ["presentableId"],
|
|
|
1038
1038
|
_excluded14 = ["presentableId"],
|
|
1039
1039
|
_excluded15 = ["presentableId"],
|
|
1040
1040
|
_excluded16 = ["presentableId"],
|
|
1041
|
-
_excluded17 = ["presentableId"]
|
|
1041
|
+
_excluded17 = ["presentableId"],
|
|
1042
|
+
_excluded18 = ["presentableId"];
|
|
1042
1043
|
function createPresentable(params) {
|
|
1043
1044
|
return FUtil.Request({
|
|
1044
1045
|
method: 'POST',
|
|
@@ -1224,37 +1225,46 @@ function getItemsFromPresentableCollection(_ref16) {
|
|
|
1224
1225
|
params: params
|
|
1225
1226
|
});
|
|
1226
1227
|
}
|
|
1227
|
-
function
|
|
1228
|
+
function getItemsFromPresentableCollectionIsExist(_ref17) {
|
|
1228
1229
|
var presentableId = _ref17.presentableId,
|
|
1229
1230
|
params = _objectWithoutPropertiesLoose(_ref17, _excluded15);
|
|
1231
|
+
return FUtil.Request({
|
|
1232
|
+
method: 'GET',
|
|
1233
|
+
url: "/v2/presentables/catalogues/" + presentableId + "/items/checkExists",
|
|
1234
|
+
params: params
|
|
1235
|
+
});
|
|
1236
|
+
}
|
|
1237
|
+
function setItemsSortFromPresentableCollectionManual(_ref18) {
|
|
1238
|
+
var presentableId = _ref18.presentableId,
|
|
1239
|
+
params = _objectWithoutPropertiesLoose(_ref18, _excluded16);
|
|
1230
1240
|
return FUtil.Request({
|
|
1231
1241
|
method: 'PUT',
|
|
1232
1242
|
url: "/v2/presentables/catalogues/" + presentableId + "/manualSort",
|
|
1233
1243
|
data: params
|
|
1234
1244
|
});
|
|
1235
1245
|
}
|
|
1236
|
-
function setItemsSortFromPresentableCollectionQuick(
|
|
1237
|
-
var presentableId =
|
|
1238
|
-
params = _objectWithoutPropertiesLoose(
|
|
1246
|
+
function setItemsSortFromPresentableCollectionQuick(_ref19) {
|
|
1247
|
+
var presentableId = _ref19.presentableId,
|
|
1248
|
+
params = _objectWithoutPropertiesLoose(_ref19, _excluded17);
|
|
1239
1249
|
return FUtil.Request({
|
|
1240
1250
|
method: 'PUT',
|
|
1241
1251
|
url: "/v2/presentables/catalogues/" + presentableId + "/manualSort",
|
|
1242
1252
|
data: params
|
|
1243
1253
|
});
|
|
1244
1254
|
}
|
|
1245
|
-
function getItemsAutoCollectRule(
|
|
1246
|
-
var presentableId =
|
|
1255
|
+
function getItemsAutoCollectRule(_ref20) {
|
|
1256
|
+
var presentableId = _ref20.presentableId;
|
|
1247
1257
|
return FUtil.Request({
|
|
1248
1258
|
method: 'GET',
|
|
1249
1259
|
url: "/v2/presentables/catalogues/" + presentableId + "/items/collectRules"
|
|
1250
1260
|
});
|
|
1251
1261
|
}
|
|
1252
|
-
function setItemsAutoCollectRule(
|
|
1253
|
-
var presentableId =
|
|
1254
|
-
params = _objectWithoutPropertiesLoose(
|
|
1262
|
+
function setItemsAutoCollectRule(_ref21) {
|
|
1263
|
+
var presentableId = _ref21.presentableId,
|
|
1264
|
+
params = _objectWithoutPropertiesLoose(_ref21, _excluded18);
|
|
1255
1265
|
return FUtil.Request({
|
|
1256
1266
|
method: 'POST',
|
|
1257
|
-
url: "/v2/presentables/catalogues/" + presentableId + "/items",
|
|
1267
|
+
url: "/v2/presentables/catalogues/" + presentableId + "/items/collectRules",
|
|
1258
1268
|
data: params
|
|
1259
1269
|
});
|
|
1260
1270
|
}
|
|
@@ -1282,6 +1292,7 @@ var Exhibit = {
|
|
|
1282
1292
|
addItemsToPresentableCollection: addItemsToPresentableCollection,
|
|
1283
1293
|
removeItemsFromPresentableCollection: removeItemsFromPresentableCollection,
|
|
1284
1294
|
getItemsFromPresentableCollection: getItemsFromPresentableCollection,
|
|
1295
|
+
getItemsFromPresentableCollectionIsExist: getItemsFromPresentableCollectionIsExist,
|
|
1285
1296
|
setItemsSortFromPresentableCollectionManual: setItemsSortFromPresentableCollectionManual,
|
|
1286
1297
|
setItemsSortFromPresentableCollectionQuick: setItemsSortFromPresentableCollectionQuick,
|
|
1287
1298
|
getItemsAutoCollectRule: getItemsAutoCollectRule,
|
|
@@ -1623,7 +1634,7 @@ var _excluded$3 = ["resourceIdOrName"],
|
|
|
1623
1634
|
_excluded15$1 = ["resourceId"],
|
|
1624
1635
|
_excluded16$1 = ["resourceId"],
|
|
1625
1636
|
_excluded17$1 = ["resourceId"],
|
|
1626
|
-
_excluded18 = ["resourceId"],
|
|
1637
|
+
_excluded18$1 = ["resourceId"],
|
|
1627
1638
|
_excluded19 = ["resourceId"],
|
|
1628
1639
|
_excluded20 = ["resourceId"],
|
|
1629
1640
|
_excluded21 = ["resourceId"],
|
|
@@ -2024,7 +2035,7 @@ function setCollectionItemSort(_ref31) {
|
|
|
2024
2035
|
}
|
|
2025
2036
|
function reorderCollectionItemsSort(_ref32) {
|
|
2026
2037
|
var resourceId = _ref32.resourceId,
|
|
2027
|
-
params = _objectWithoutPropertiesLoose(_ref32, _excluded18);
|
|
2038
|
+
params = _objectWithoutPropertiesLoose(_ref32, _excluded18$1);
|
|
2028
2039
|
return FUtil.Request({
|
|
2029
2040
|
method: 'PUT',
|
|
2030
2041
|
url: "/v2/resources/catalogue/" + resourceId + "/reorder",
|