@freelog/tools-lib 0.1.174 → 0.1.175

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.
@@ -120,6 +120,10 @@ interface CollectionExhibitCreatorParamsType {
120
120
  nodeID: number;
121
121
  }
122
122
  export declare function collectionExhibitCreator({ nodeID, }: CollectionExhibitCreatorParamsType): TReturnType;
123
+ interface CreatedCollectionExhibitManagementParamsType {
124
+ exhibitID: string;
125
+ }
126
+ export declare function createdCollectionExhibitManagement({ exhibitID, }: CreatedCollectionExhibitManagementParamsType): TReturnType;
123
127
  interface InformNodeManagementParamsType {
124
128
  nodeID: number;
125
129
  showPage?: 'exhibit' | 'theme' | 'mappingRule';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@freelog/tools-lib",
3
- "version": "0.1.174",
3
+ "version": "0.1.175",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -388,6 +388,7 @@ interface CreatePresentableCollectionParamsType {
388
388
  }[];
389
389
  tags?: string[];
390
390
  coverImages?: string[];
391
+ resourceTypeCode?: string;
391
392
  }
392
393
 
393
394
  export function createPresentableCollection({
@@ -442,7 +443,7 @@ interface GetItemsFromPresentableCollectionParamsType {
442
443
  isLoadLatestVersionInfo?: 0 | 1;
443
444
  skip?: number;
444
445
  limit?: number;
445
- keywords?: number;
446
+ keywords?: string;
446
447
  sortField?: 'createDate' | 'sortId';
447
448
  sortType?: -1 | 1;
448
449
  }
@@ -493,3 +494,48 @@ export function setItemsSortFromPresentableCollectionQuick({
493
494
  data: params,
494
495
  });
495
496
  }
497
+
498
+ // 获取合集单品自动收录规则
499
+ interface GetItemsAutoCollectRuleParamsType {
500
+ presentableId: string;
501
+ }
502
+
503
+ export function getItemsAutoCollectRule({
504
+ presentableId,
505
+ }: // ...params
506
+ GetItemsAutoCollectRuleParamsType) {
507
+ return FUtil.Request({
508
+ method: 'GET',
509
+ url: `/v2/presentables/cataloguea/${presentableId}/items/collectRules`,
510
+ // params: params,
511
+ });
512
+ }
513
+
514
+ // 创建或更新合集单品自动收录规则
515
+ interface SetItemsAutoCollectRuleParamsType {
516
+ presentableId: string;
517
+ status: 0 | 1;
518
+ conditionType: 1 | 2;
519
+ filterConditions: {
520
+ key: 'presentableTitle' | 'resourceTypeCode' | 'authIdentity';
521
+ limitOperatorType:
522
+ | 'INCLUDES'
523
+ | 'NOT_INCLUDES'
524
+ | 'STARTS_WITH'
525
+ | 'ENDS_WITH'
526
+ | 'EQUAL'
527
+ | 'NOT_EQUAL';
528
+ value: string;
529
+ }[];
530
+ }
531
+
532
+ export function SetItemsAutoCollectRuleParamsType({
533
+ presentableId,
534
+ ...params
535
+ }: AddItemsToPresentableCollectionParamsType) {
536
+ return FUtil.Request({
537
+ method: 'POST',
538
+ url: `/v2/presentables/catalogues/${presentableId}/items`,
539
+ data: params,
540
+ });
541
+ }