@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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@freelog/tools-lib",
3
- "version": "0.1.178",
3
+ "version": "0.1.179",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -148,6 +148,7 @@ interface PresentablesParamsType {
148
148
  isLoadPolicyInfo?: 0 | 1;
149
149
  isLoadResourceDetailInfo?: 0 | 1;
150
150
  isLoadVersionUpdateTip?: 0 | 1;
151
+ subjectType?: 1 | 4 | 5;
151
152
  }
152
153
 
153
154
  export function presentables(params: PresentablesParamsType) {
@@ -423,7 +424,8 @@ export function addItemsToPresentableCollection({
423
424
  // 批量从展品合集中移除单品
424
425
  interface RemoveItemsFromPresentableCollectionParamsType {
425
426
  presentableId: string;
426
- removeCollectionItemIds: string;
427
+ removeIds: string;
428
+ idType?: 'resourceId' | 'presentableId' | 'itemId';
427
429
  }
428
430
 
429
431
  export function removeItemsFromPresentableCollection({
@@ -459,6 +461,24 @@ export function getItemsFromPresentableCollection({
459
461
  });
460
462
  }
461
463
 
464
+ // 查询展品合集中的是否存在指定单品
465
+ interface GetItemsFromPresentableCollectionIsExistParamsType {
466
+ presentableId: string;
467
+ mountIds: string;
468
+ idType?: 'resourceId' | 'presentableId';
469
+ }
470
+
471
+ export function getItemsFromPresentableCollectionIsExist({
472
+ presentableId,
473
+ ...params
474
+ }: GetItemsFromPresentableCollectionIsExistParamsType) {
475
+ return FUtil.Request({
476
+ method: 'GET',
477
+ url: `/v2/presentables/catalogues/${presentableId}/items/checkExists`,
478
+ params: params,
479
+ });
480
+ }
481
+
462
482
  // 设置展品合集中的单品排序-手动排序
463
483
  interface SetItemsSortFromPresentableCollectionManualParamsType {
464
484
  presentableId: string;