@freelog/tools-lib 0.1.178 → 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.
@@ -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 {
@@ -197,7 +198,8 @@ interface AddItemsToPresentableCollectionParamsType {
197
198
  export declare function addItemsToPresentableCollection({ presentableId, ...params }: AddItemsToPresentableCollectionParamsType): Promise<any>;
198
199
  interface RemoveItemsFromPresentableCollectionParamsType {
199
200
  presentableId: string;
200
- removeCollectionItemIds: string;
201
+ removeIds: string;
202
+ idType?: 'resourceId' | 'presentableId' | 'itemId';
201
203
  }
202
204
  export declare function removeItemsFromPresentableCollection({ presentableId, ...params }: RemoveItemsFromPresentableCollectionParamsType): Promise<any>;
203
205
  interface GetItemsFromPresentableCollectionParamsType {
@@ -210,6 +212,12 @@ interface GetItemsFromPresentableCollectionParamsType {
210
212
  sortType?: -1 | 1;
211
213
  }
212
214
  export declare function getItemsFromPresentableCollection({ presentableId, ...params }: GetItemsFromPresentableCollectionParamsType): Promise<any>;
215
+ interface GetItemsFromPresentableCollectionIsExistParamsType {
216
+ presentableId: string;
217
+ mountIds: string;
218
+ idType?: 'resourceId' | 'presentableId';
219
+ }
220
+ export declare function getItemsFromPresentableCollectionIsExist({ presentableId, ...params }: GetItemsFromPresentableCollectionIsExistParamsType): Promise<any>;
213
221
  interface SetItemsSortFromPresentableCollectionManualParamsType {
214
222
  presentableId: string;
215
223
  sortIds: string[];
@@ -1044,7 +1044,8 @@ var _excluded$1 = ["presentableId"],
1044
1044
  _excluded14 = ["presentableId"],
1045
1045
  _excluded15 = ["presentableId"],
1046
1046
  _excluded16 = ["presentableId"],
1047
- _excluded17 = ["presentableId"];
1047
+ _excluded17 = ["presentableId"],
1048
+ _excluded18 = ["presentableId"];
1048
1049
  function createPresentable(params) {
1049
1050
  return FUtil.Request({
1050
1051
  method: 'POST',
@@ -1230,34 +1231,43 @@ function getItemsFromPresentableCollection(_ref16) {
1230
1231
  params: params
1231
1232
  });
1232
1233
  }
1233
- function setItemsSortFromPresentableCollectionManual(_ref17) {
1234
+ function getItemsFromPresentableCollectionIsExist(_ref17) {
1234
1235
  var presentableId = _ref17.presentableId,
1235
1236
  params = _objectWithoutPropertiesLoose(_ref17, _excluded15);
1237
+ return FUtil.Request({
1238
+ method: 'GET',
1239
+ url: "/v2/presentables/catalogues/" + presentableId + "/items/checkExists",
1240
+ params: params
1241
+ });
1242
+ }
1243
+ function setItemsSortFromPresentableCollectionManual(_ref18) {
1244
+ var presentableId = _ref18.presentableId,
1245
+ params = _objectWithoutPropertiesLoose(_ref18, _excluded16);
1236
1246
  return FUtil.Request({
1237
1247
  method: 'PUT',
1238
1248
  url: "/v2/presentables/catalogues/" + presentableId + "/manualSort",
1239
1249
  data: params
1240
1250
  });
1241
1251
  }
1242
- function setItemsSortFromPresentableCollectionQuick(_ref18) {
1243
- var presentableId = _ref18.presentableId,
1244
- params = _objectWithoutPropertiesLoose(_ref18, _excluded16);
1252
+ function setItemsSortFromPresentableCollectionQuick(_ref19) {
1253
+ var presentableId = _ref19.presentableId,
1254
+ params = _objectWithoutPropertiesLoose(_ref19, _excluded17);
1245
1255
  return FUtil.Request({
1246
1256
  method: 'PUT',
1247
1257
  url: "/v2/presentables/catalogues/" + presentableId + "/manualSort",
1248
1258
  data: params
1249
1259
  });
1250
1260
  }
1251
- function getItemsAutoCollectRule(_ref19) {
1252
- var presentableId = _ref19.presentableId;
1261
+ function getItemsAutoCollectRule(_ref20) {
1262
+ var presentableId = _ref20.presentableId;
1253
1263
  return FUtil.Request({
1254
1264
  method: 'GET',
1255
1265
  url: "/v2/presentables/catalogues/" + presentableId + "/items/collectRules"
1256
1266
  });
1257
1267
  }
1258
- function setItemsAutoCollectRule(_ref20) {
1259
- var presentableId = _ref20.presentableId,
1260
- params = _objectWithoutPropertiesLoose(_ref20, _excluded17);
1268
+ function setItemsAutoCollectRule(_ref21) {
1269
+ var presentableId = _ref21.presentableId,
1270
+ params = _objectWithoutPropertiesLoose(_ref21, _excluded18);
1261
1271
  return FUtil.Request({
1262
1272
  method: 'POST',
1263
1273
  url: "/v2/presentables/catalogues/" + presentableId + "/items/collectRules",
@@ -1288,6 +1298,7 @@ var Exhibit = {
1288
1298
  addItemsToPresentableCollection: addItemsToPresentableCollection,
1289
1299
  removeItemsFromPresentableCollection: removeItemsFromPresentableCollection,
1290
1300
  getItemsFromPresentableCollection: getItemsFromPresentableCollection,
1301
+ getItemsFromPresentableCollectionIsExist: getItemsFromPresentableCollectionIsExist,
1291
1302
  setItemsSortFromPresentableCollectionManual: setItemsSortFromPresentableCollectionManual,
1292
1303
  setItemsSortFromPresentableCollectionQuick: setItemsSortFromPresentableCollectionQuick,
1293
1304
  getItemsAutoCollectRule: getItemsAutoCollectRule,
@@ -1629,7 +1640,7 @@ var _excluded$3 = ["resourceIdOrName"],
1629
1640
  _excluded15$1 = ["resourceId"],
1630
1641
  _excluded16$1 = ["resourceId"],
1631
1642
  _excluded17$1 = ["resourceId"],
1632
- _excluded18 = ["resourceId"],
1643
+ _excluded18$1 = ["resourceId"],
1633
1644
  _excluded19 = ["resourceId"],
1634
1645
  _excluded20 = ["resourceId"],
1635
1646
  _excluded21 = ["resourceId"],
@@ -2030,7 +2041,7 @@ function setCollectionItemSort(_ref31) {
2030
2041
  }
2031
2042
  function reorderCollectionItemsSort(_ref32) {
2032
2043
  var resourceId = _ref32.resourceId,
2033
- params = _objectWithoutPropertiesLoose(_ref32, _excluded18);
2044
+ params = _objectWithoutPropertiesLoose(_ref32, _excluded18$1);
2034
2045
  return FUtil.Request({
2035
2046
  method: 'PUT',
2036
2047
  url: "/v2/resources/catalogue/" + resourceId + "/reorder",