@freelog/tools-lib 0.1.181 → 0.1.183

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.181",
3
+ "version": "0.1.183",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -503,7 +503,7 @@ export function getItemsFromPresentableCollectionIsExist({
503
503
  // 设置展品合集中的单品排序-手动排序
504
504
  interface SetItemsSortFromPresentableCollectionManualParamsType {
505
505
  presentableId: string;
506
- sortIds: string[];
506
+ itemIds: string[];
507
507
  targetSortId: number;
508
508
  }
509
509
 
@@ -584,3 +584,22 @@ export function setItemsAutoCollectRule({
584
584
  data: params,
585
585
  });
586
586
  }
587
+
588
+ // 批量查询展品合集下的单品
589
+ interface GetItemsFromPresentableCollectionsParamsType {
590
+ presentableIds: string;
591
+ sortType?: 1 | -1;
592
+ sortField?: 'createDate';
593
+ limit?: number;
594
+ }
595
+
596
+ export function getItemsFromPresentableCollections({
597
+ ...params
598
+ }: GetItemsFromPresentableCollectionsParamsType) {
599
+ return FUtil.Request({
600
+ method: 'GET',
601
+ // url: `/v2/presentables/catalogues/items/batch/list?presentableIds=685cf423e1502e002fe3053b&limit=1&sortType=-1&sortField=createDate`,
602
+ url: `/v2/presentables/catalogues/items/batch/list`,
603
+ params: params,
604
+ });
605
+ }
@@ -764,6 +764,7 @@ interface ResourceTypesParamsType {
764
764
  isMine?: boolean;
765
765
  status?: 0 | 1;
766
766
  supportCreateBatch?: 1 | 2;
767
+ subjectType?: 1 | 4 | 5;
767
768
  }
768
769
 
769
770
  export function resourceTypes({ ...params }: ResourceTypesParamsType = {}) {
@@ -782,6 +783,9 @@ interface ListSimpleByParentCodeParamsType {
782
783
  excludeParentCode?: boolean;
783
784
  isTerminate?: boolean;
784
785
  nameChain?: string;
786
+ subjectType?: 1 | 4 | 5;
787
+ supportCreateBatch?: 1 | 2;
788
+ status?: 0 | 1;
785
789
  }
786
790
 
787
791
  export function ListSimpleByParentCode({