@freelog/tools-lib 0.1.173 → 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/presentables.d.ts +47 -0
- package/dist/tools-lib.cjs.development.js +76 -12
- 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 +76 -12
- package/dist/tools-lib.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/service-API/presentables.ts +495 -348
- package/src/utils/linkTo.ts +651 -651
package/dist/tools-lib.esm.js
CHANGED
|
@@ -1027,7 +1027,12 @@ var _excluded$1 = ["presentableId"],
|
|
|
1027
1027
|
_excluded8 = ["presentableId"],
|
|
1028
1028
|
_excluded9 = ["nodeId"],
|
|
1029
1029
|
_excluded10 = ["nodeId"],
|
|
1030
|
-
_excluded11 = ["presentableId"]
|
|
1030
|
+
_excluded11 = ["presentableId"],
|
|
1031
|
+
_excluded12 = ["presentableId"],
|
|
1032
|
+
_excluded13 = ["presentableId"],
|
|
1033
|
+
_excluded14 = ["presentableId"],
|
|
1034
|
+
_excluded15 = ["presentableId"],
|
|
1035
|
+
_excluded16 = ["presentableId"];
|
|
1031
1036
|
function createPresentable(params) {
|
|
1032
1037
|
return FUtil.Request({
|
|
1033
1038
|
method: 'POST',
|
|
@@ -1178,6 +1183,59 @@ function ignorePresentableVersionUpdateTip(_ref12) {
|
|
|
1178
1183
|
data: params
|
|
1179
1184
|
});
|
|
1180
1185
|
}
|
|
1186
|
+
function createPresentableCollection(_ref13) {
|
|
1187
|
+
var params = _extends({}, (_objectDestructuringEmpty(_ref13), _ref13));
|
|
1188
|
+
return FUtil.Request({
|
|
1189
|
+
method: 'POST',
|
|
1190
|
+
url: "/v2/presentables/catalogues",
|
|
1191
|
+
data: params
|
|
1192
|
+
});
|
|
1193
|
+
}
|
|
1194
|
+
function addItemsToPresentableCollection(_ref14) {
|
|
1195
|
+
var presentableId = _ref14.presentableId,
|
|
1196
|
+
params = _objectWithoutPropertiesLoose(_ref14, _excluded12);
|
|
1197
|
+
return FUtil.Request({
|
|
1198
|
+
method: 'POST',
|
|
1199
|
+
url: "/v2/presentables/catalogues/" + presentableId + "/items",
|
|
1200
|
+
data: params
|
|
1201
|
+
});
|
|
1202
|
+
}
|
|
1203
|
+
function removeItemsFromPresentableCollection(_ref15) {
|
|
1204
|
+
var presentableId = _ref15.presentableId,
|
|
1205
|
+
params = _objectWithoutPropertiesLoose(_ref15, _excluded13);
|
|
1206
|
+
return FUtil.Request({
|
|
1207
|
+
method: 'DELETE',
|
|
1208
|
+
url: "/v2/presentables/catalogues/" + presentableId + "/items",
|
|
1209
|
+
params: params
|
|
1210
|
+
});
|
|
1211
|
+
}
|
|
1212
|
+
function getItemsFromPresentableCollection(_ref16) {
|
|
1213
|
+
var presentableId = _ref16.presentableId,
|
|
1214
|
+
params = _objectWithoutPropertiesLoose(_ref16, _excluded14);
|
|
1215
|
+
return FUtil.Request({
|
|
1216
|
+
method: 'GET',
|
|
1217
|
+
url: "/v2/presentables/catalogues/" + presentableId + "/items",
|
|
1218
|
+
params: params
|
|
1219
|
+
});
|
|
1220
|
+
}
|
|
1221
|
+
function setItemsSortFromPresentableCollectionManual(_ref17) {
|
|
1222
|
+
var presentableId = _ref17.presentableId,
|
|
1223
|
+
params = _objectWithoutPropertiesLoose(_ref17, _excluded15);
|
|
1224
|
+
return FUtil.Request({
|
|
1225
|
+
method: 'PUT',
|
|
1226
|
+
url: "/v2/presentables/catalogues/" + presentableId + "/manualSort",
|
|
1227
|
+
data: params
|
|
1228
|
+
});
|
|
1229
|
+
}
|
|
1230
|
+
function setItemsSortFromPresentableCollectionQuick(_ref18) {
|
|
1231
|
+
var presentableId = _ref18.presentableId,
|
|
1232
|
+
params = _objectWithoutPropertiesLoose(_ref18, _excluded16);
|
|
1233
|
+
return FUtil.Request({
|
|
1234
|
+
method: 'PUT',
|
|
1235
|
+
url: "/v2/presentables/catalogues/" + presentableId + "/manualSort",
|
|
1236
|
+
data: params
|
|
1237
|
+
});
|
|
1238
|
+
}
|
|
1181
1239
|
|
|
1182
1240
|
var Exhibit = {
|
|
1183
1241
|
__proto__: null,
|
|
@@ -1197,7 +1255,13 @@ var Exhibit = {
|
|
|
1197
1255
|
batchCreatePresentable: batchCreatePresentable,
|
|
1198
1256
|
batchUpdatePresentable: batchUpdatePresentable,
|
|
1199
1257
|
batchUpdatePresentableStatus: batchUpdatePresentableStatus,
|
|
1200
|
-
ignorePresentableVersionUpdateTip: ignorePresentableVersionUpdateTip
|
|
1258
|
+
ignorePresentableVersionUpdateTip: ignorePresentableVersionUpdateTip,
|
|
1259
|
+
createPresentableCollection: createPresentableCollection,
|
|
1260
|
+
addItemsToPresentableCollection: addItemsToPresentableCollection,
|
|
1261
|
+
removeItemsFromPresentableCollection: removeItemsFromPresentableCollection,
|
|
1262
|
+
getItemsFromPresentableCollection: getItemsFromPresentableCollection,
|
|
1263
|
+
setItemsSortFromPresentableCollectionManual: setItemsSortFromPresentableCollectionManual,
|
|
1264
|
+
setItemsSortFromPresentableCollectionQuick: setItemsSortFromPresentableCollectionQuick
|
|
1201
1265
|
};
|
|
1202
1266
|
|
|
1203
1267
|
var _excluded$2 = ["bucketName"],
|
|
@@ -1529,11 +1593,11 @@ var _excluded$3 = ["resourceIdOrName"],
|
|
|
1529
1593
|
_excluded9$1 = ["resourceId"],
|
|
1530
1594
|
_excluded10$1 = ["resourceId"],
|
|
1531
1595
|
_excluded11$1 = ["resourceId"],
|
|
1532
|
-
_excluded12 = ["resourceId"],
|
|
1533
|
-
_excluded13 = ["resourceId"],
|
|
1534
|
-
_excluded14 = ["resourceId"],
|
|
1535
|
-
_excluded15 = ["resourceId"],
|
|
1536
|
-
_excluded16 = ["resourceId"],
|
|
1596
|
+
_excluded12$1 = ["resourceId"],
|
|
1597
|
+
_excluded13$1 = ["resourceId"],
|
|
1598
|
+
_excluded14$1 = ["resourceId"],
|
|
1599
|
+
_excluded15$1 = ["resourceId"],
|
|
1600
|
+
_excluded16$1 = ["resourceId"],
|
|
1537
1601
|
_excluded17 = ["resourceId"],
|
|
1538
1602
|
_excluded18 = ["resourceId"],
|
|
1539
1603
|
_excluded19 = ["resourceId"],
|
|
@@ -1779,7 +1843,7 @@ function cycleDependencyCheck$1(_ref13) {
|
|
|
1779
1843
|
}
|
|
1780
1844
|
function relationTree$1(_ref14) {
|
|
1781
1845
|
var resourceId = _ref14.resourceId,
|
|
1782
|
-
params = _objectWithoutPropertiesLoose(_ref14, _excluded12);
|
|
1846
|
+
params = _objectWithoutPropertiesLoose(_ref14, _excluded12$1);
|
|
1783
1847
|
// return FUtil.Axios.get(`/v2/resources/${resourceId}/relationTree`, {
|
|
1784
1848
|
// params,
|
|
1785
1849
|
// });
|
|
@@ -1791,7 +1855,7 @@ function relationTree$1(_ref14) {
|
|
|
1791
1855
|
}
|
|
1792
1856
|
function relationTreeAuth(_ref15) {
|
|
1793
1857
|
var resourceId = _ref15.resourceId,
|
|
1794
|
-
params = _objectWithoutPropertiesLoose(_ref15, _excluded13);
|
|
1858
|
+
params = _objectWithoutPropertiesLoose(_ref15, _excluded13$1);
|
|
1795
1859
|
return FUtil.Request({
|
|
1796
1860
|
method: 'GET',
|
|
1797
1861
|
url: "/v2/auths/resources/" + resourceId + "/relationTreeAuth",
|
|
@@ -1892,7 +1956,7 @@ function generateResourceNames(_ref26) {
|
|
|
1892
1956
|
}
|
|
1893
1957
|
function updateCollection(_ref27) {
|
|
1894
1958
|
var resourceId = _ref27.resourceId,
|
|
1895
|
-
params = _objectWithoutPropertiesLoose(_ref27, _excluded14);
|
|
1959
|
+
params = _objectWithoutPropertiesLoose(_ref27, _excluded14$1);
|
|
1896
1960
|
return FUtil.Request({
|
|
1897
1961
|
method: 'PUT',
|
|
1898
1962
|
url: "/v2/resources/catalogue/" + resourceId,
|
|
@@ -1909,7 +1973,7 @@ function deleteCollectionUnitResource(_ref28) {
|
|
|
1909
1973
|
}
|
|
1910
1974
|
function getCollectionItems(_ref29) {
|
|
1911
1975
|
var resourceId = _ref29.resourceId,
|
|
1912
|
-
params = _objectWithoutPropertiesLoose(_ref29, _excluded15);
|
|
1976
|
+
params = _objectWithoutPropertiesLoose(_ref29, _excluded15$1);
|
|
1913
1977
|
return FUtil.Request({
|
|
1914
1978
|
method: 'GET',
|
|
1915
1979
|
url: "/v2/resources/catalogue/" + resourceId + "/items",
|
|
@@ -1918,7 +1982,7 @@ function getCollectionItems(_ref29) {
|
|
|
1918
1982
|
}
|
|
1919
1983
|
function getCollectionItems_Draft(_ref30) {
|
|
1920
1984
|
var resourceId = _ref30.resourceId,
|
|
1921
|
-
params = _objectWithoutPropertiesLoose(_ref30, _excluded16);
|
|
1985
|
+
params = _objectWithoutPropertiesLoose(_ref30, _excluded16$1);
|
|
1922
1986
|
return FUtil.Request({
|
|
1923
1987
|
method: 'GET',
|
|
1924
1988
|
url: "/v2/resources/catalogues/drafts/" + resourceId + "/items",
|