@freelog/tools-lib 0.1.162 → 0.1.165

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.
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare type LanguageKeyType = 'zh_CN' | 'en_US';
2
3
  declare const allLanguage: {
3
4
  value: string;
@@ -16,6 +16,7 @@ import * as I18n from './i18n';
16
16
  import * as Policy from './policies';
17
17
  import * as recombination from './recombinations';
18
18
  import * as Operation from './operation';
19
+ import * as ResourceType from './resourceType';
19
20
  declare const FServiceAPI: {
20
21
  Node: typeof Node;
21
22
  Exhibit: typeof Exhibit;
@@ -35,5 +36,6 @@ declare const FServiceAPI: {
35
36
  Policy: typeof Policy;
36
37
  recombination: typeof recombination;
37
38
  Operation: typeof Operation;
39
+ ResourceType: typeof ResourceType;
38
40
  };
39
41
  export default FServiceAPI;
@@ -1,6 +1,7 @@
1
1
  export interface CreateParamsType {
2
2
  nodeName: string;
3
3
  nodeDomain: string;
4
+ nodeTitle: string;
4
5
  }
5
6
  export declare function create(params: CreateParamsType): Promise<any>;
6
7
  interface NodeDetailParamsType1 {
@@ -36,4 +37,8 @@ interface SetNodeInfoParamsType {
36
37
  nodeSuspendInfo: string;
37
38
  }
38
39
  export declare function setNodeInfo(params: SetNodeInfoParamsType): Promise<any>;
40
+ interface DeleteNodeParamsType {
41
+ nodeId: number;
42
+ }
43
+ export declare function deleteNode({ nodeId }: DeleteNodeParamsType): Promise<any>;
39
44
  export {};
@@ -9,6 +9,7 @@ export interface CreatePresentableParamsType {
9
9
  }[];
10
10
  }[];
11
11
  presentableName: string;
12
+ presentableTitle?: string;
12
13
  tags?: string[];
13
14
  policies?: {
14
15
  policyName: string;
@@ -38,6 +39,7 @@ interface UpdatePresentableParamsType {
38
39
  policyId: string;
39
40
  }[];
40
41
  }[];
42
+ autoUpdateStatus?: 0 | 1;
41
43
  }
42
44
  export declare function updatePresentable({ presentableId, ...params }: UpdatePresentableParamsType): Promise<any>;
43
45
  interface PresentablesOnlineParamsType {
@@ -83,6 +85,8 @@ interface PresentablesParamsType {
83
85
  keywords?: string;
84
86
  isLoadVersionProperty?: 0 | 1;
85
87
  isLoadPolicyInfo?: 0 | 1;
88
+ isLoadResourceDetailInfo?: 0 | 1;
89
+ isLoadVersionUpdateTip?: 0 | 1;
86
90
  }
87
91
  export declare function presentables(params: PresentablesParamsType): Promise<any>;
88
92
  interface PresentableListParamsType {
@@ -166,4 +170,9 @@ interface BatchUpdatePresentableStatusParamsType {
166
170
  onlineStatus: 0 | 1;
167
171
  }
168
172
  export declare function batchUpdatePresentableStatus({ ...params }: BatchUpdatePresentableStatusParamsType): Promise<any>;
173
+ interface IgnorePresentableVersionUpdateTipParamsType {
174
+ presentableId: string;
175
+ ignoreVersion: string;
176
+ }
177
+ export declare function ignorePresentableVersionUpdateTip({ presentableId, ...params }: IgnorePresentableVersionUpdateTipParamsType): Promise<any>;
169
178
  export {};
@@ -0,0 +1,10 @@
1
+ interface GetInfoByCodeType {
2
+ code: string;
3
+ }
4
+ export declare function getInfoByCode({ ...params }: GetInfoByCodeType): Promise<any>;
5
+ interface GetInfoByCodeOrNameType {
6
+ code?: string;
7
+ name?: string;
8
+ }
9
+ export declare function getInfoByCodeOrName({ ...params }: GetInfoByCodeOrNameType): Promise<any>;
10
+ export {};
@@ -27,12 +27,19 @@ interface IResourceInfo {
27
27
  updateDate: string;
28
28
  userId: number;
29
29
  username: string;
30
+ operationType: number;
30
31
  }
31
32
  export interface CreateParamsType {
32
33
  name: string;
34
+ subjectType?: 1 | 4;
35
+ resourceTitle?: string;
33
36
  resourceTypeCode: string;
34
37
  resourceTypeName?: string;
35
- policies?: any[];
38
+ policies?: {
39
+ policyName: string;
40
+ policyText: string;
41
+ status?: 0 | 1;
42
+ }[];
36
43
  coverImages?: string[];
37
44
  intro?: string;
38
45
  tags?: string[];
@@ -133,6 +140,7 @@ interface ListParamsType {
133
140
  sort?: string;
134
141
  operationCategoryCode?: string;
135
142
  operationTypes?: string;
143
+ subjectType?: 1 | 4;
136
144
  }
137
145
  export declare function list(params: ListParamsType): Promise<any>;
138
146
  interface InfoParamsType {
@@ -366,6 +374,7 @@ interface ListSimpleByParentCodeParamsType {
366
374
  category?: 1 | 2;
367
375
  excludeParentCode?: boolean;
368
376
  isTerminate?: boolean;
377
+ nameChain?: string;
369
378
  }
370
379
  export declare function ListSimpleByParentCode({ ...params }: ListSimpleByParentCodeParamsType): Promise<any>;
371
380
  interface GetResourceTypeInfoByCodeParamsType {
@@ -386,4 +395,190 @@ interface GenerateResourceNamesParamsType {
386
395
  resourceNames: string[];
387
396
  }
388
397
  export declare function generateResourceNames({ resourceNames }: GenerateResourceNamesParamsType): Promise<any>;
398
+ interface UpdateCollectionParamsType {
399
+ resourceId: string;
400
+ description?: string;
401
+ dependencies?: {
402
+ resourceId: string;
403
+ versionRange: string;
404
+ }[];
405
+ customPropertyDescriptors?: {
406
+ key: string;
407
+ defaultValue: string;
408
+ type: string;
409
+ candidateItems?: string[];
410
+ remark?: string;
411
+ }[];
412
+ resolveResources?: {
413
+ resourceId: string;
414
+ contracts: {
415
+ policyId: string;
416
+ }[];
417
+ }[];
418
+ catalogueProperty?: {
419
+ collection_item_no_display?: 'collection_item_no_display_show' | 'collection_item_no_display_hide';
420
+ collection_item_image_display?: 'collection_item_image_display_show' | 'collection_item_image_display_hide';
421
+ collection_item_descr_display?: 'collection_item_descr_display_show' | 'collection_item_descr_display_hide';
422
+ collection_view?: 'collection_view_list' | 'collection_view_card';
423
+ };
424
+ isMergeCatalogueDraft?: 0 | 1;
425
+ }
426
+ export declare function updateCollection({ resourceId, ...params }: UpdateCollectionParamsType): Promise<any>;
427
+ interface deleteCollectionUnitResourcesParamsType {
428
+ resourceId: string;
429
+ removeCollectionItemIds: string[];
430
+ }
431
+ export declare function deleteCollectionUnitResource({ resourceId, removeCollectionItemIds }: deleteCollectionUnitResourcesParamsType): Promise<any>;
432
+ interface GetCollectionItemsParamsType {
433
+ resourceId: string;
434
+ skip?: number;
435
+ limit?: number;
436
+ sortField?: string;
437
+ sortType?: 1 | -1;
438
+ keywords?: string;
439
+ isLoadLatestVersionInfo?: 0 | 1;
440
+ }
441
+ export declare function getCollectionItems({ resourceId, ...params }: GetCollectionItemsParamsType): Promise<any>;
442
+ interface GetCollectionItems_Draft_ParamsType {
443
+ resourceId: string;
444
+ skip?: number;
445
+ limit?: number;
446
+ sortField?: string;
447
+ sortType?: 1 | -1;
448
+ keywords?: string;
449
+ isLoadLatestVersionInfo?: 0 | 1;
450
+ }
451
+ export declare function getCollectionItems_Draft({ resourceId, ...params }: GetCollectionItems_Draft_ParamsType): Promise<any>;
452
+ interface SetCollectionItemSortParamsType {
453
+ resourceId: string;
454
+ itemId: string;
455
+ targetSortId: number;
456
+ }
457
+ export declare function setCollectionItemSort({ resourceId, ...params }: SetCollectionItemSortParamsType): Promise<any>;
458
+ interface ReorderCollectionItemsSortParamsType {
459
+ resourceId: string;
460
+ sortField: string;
461
+ sortType: 1 | -1;
462
+ }
463
+ export declare function reorderCollectionItemsSort({ resourceId, ...params }: ReorderCollectionItemsSortParamsType): Promise<any>;
464
+ interface CheckExistCollectionItemsParamsType {
465
+ resourceId: string;
466
+ resourceIds: string;
467
+ }
468
+ export declare function checkExistCollectionItems({ resourceId, ...params }: CheckExistCollectionItemsParamsType): Promise<any>;
469
+ interface GetCollectionItemsAuthParamsType {
470
+ resourceId: string;
471
+ itemIds: string;
472
+ }
473
+ export declare function getCollectionItemsAuth({ resourceId, ...params }: GetCollectionItemsAuthParamsType): Promise<any>;
474
+ interface BatchResourceItemsParamsType {
475
+ resourceIds: string;
476
+ limit?: number;
477
+ sortField?: string;
478
+ sortType?: 1 | -1;
479
+ isLoadItemResourceDetailInfo?: 0 | 1;
480
+ }
481
+ export declare function batchResourceItems({ ...params }: BatchResourceItemsParamsType): Promise<any>;
482
+ interface BatchResourceItems_Draft_ParamsType {
483
+ resourceIds: string;
484
+ limit?: number;
485
+ sortField?: string;
486
+ sortType?: 1 | -1;
487
+ isLoadItemResourceDetailInfo?: 0 | 1;
488
+ }
489
+ export declare function batchResourceItems_Draft({ ...params }: BatchResourceItems_Draft_ParamsType): Promise<any>;
490
+ interface GetCollectionUpdateLogsParamsType {
491
+ resourceId: string;
492
+ skip?: number;
493
+ limit?: number;
494
+ sortType?: 1 | -1;
495
+ }
496
+ export declare function getCollectionUpdateLogs({ resourceId, ...params }: GetCollectionUpdateLogsParamsType): Promise<any>;
497
+ interface GetCollectionCollectRulesParamsType {
498
+ resourceId: string;
499
+ }
500
+ export declare function getCollectionCollectRules({ resourceId }: GetCollectionCollectRulesParamsType): Promise<any>;
501
+ interface SetCollectRulesParamsType {
502
+ resourceId: string;
503
+ serializeStatus?: 0 | 1;
504
+ status: 0 | 1;
505
+ conditionType: 1 | 2;
506
+ filterConditions: {
507
+ key: 'resourceTitle' | 'resourceTypeCode' | 'authIdentity';
508
+ limitOperatorType: 'INCLUDES' | 'NOT_INCLUDES' | 'STARTS_WITH' | 'ENDS_WITH' | 'EQUAL' | 'NOT_EQUAL';
509
+ value: string;
510
+ }[];
511
+ }
512
+ export declare function setCollectRules({ resourceId, ...params }: SetCollectRulesParamsType): Promise<any>;
513
+ interface SetItemsTitleParamsType {
514
+ resourceId: string;
515
+ data: {
516
+ itemId: string;
517
+ itemTitle: string;
518
+ }[];
519
+ }
520
+ export declare function setItemsTitle({ resourceId, data }: SetItemsTitleParamsType): Promise<any>;
521
+ interface deleteCollectionItems_Draft_ParamsType {
522
+ resourceId: string;
523
+ removeCollectionItemIds: string[];
524
+ }
525
+ export declare function deleteCollectionItems_Draft({ resourceId, removeCollectionItemIds }: deleteCollectionItems_Draft_ParamsType): Promise<any>;
526
+ interface SetCollectionItemsSortID_Draft_ParamsType {
527
+ resourceId: string;
528
+ data: {
529
+ itemId: string;
530
+ targetSortId: number;
531
+ };
532
+ }
533
+ export declare function setCollectionItemsSortID_Draft({ resourceId, data }: SetCollectionItemsSortID_Draft_ParamsType): Promise<any>;
534
+ interface ReorderCollectionItems_Draft_ParamsType {
535
+ resourceId: string;
536
+ sortField: 'createDate' | 'itemTitle' | 'sortId' | 'resourceUpdateDate';
537
+ sortType: -1 | 1;
538
+ }
539
+ export declare function reorderCollectionItems_Draft({ resourceId, ...params }: ReorderCollectionItems_Draft_ParamsType): Promise<any>;
540
+ interface ResourceIsExistInItems_Draft_ParamsType {
541
+ resourceId: string;
542
+ resourceIds: string;
543
+ }
544
+ export declare function resourceIsExistInItems_Draft({ resourceId, ...params }: ResourceIsExistInItems_Draft_ParamsType): Promise<any>;
545
+ interface UpdateCollectionItemsInfo_Draft_ParamsType {
546
+ resourceId: string;
547
+ data: {
548
+ itemId: string;
549
+ itemTitle: string;
550
+ }[];
551
+ }
552
+ export declare function updateCollectionItemsInfo_Draft({ resourceId, data }: UpdateCollectionItemsInfo_Draft_ParamsType): Promise<any>;
553
+ interface UpdateCollectionItemAuthorization_Draft_ParamsType {
554
+ resourceId: string;
555
+ itemId: string;
556
+ resolveResources: {
557
+ resourceId: string;
558
+ contracts: {
559
+ policyId: string;
560
+ }[];
561
+ }[];
562
+ }
563
+ export declare function updateCollectionItemAuthorization_Draft({ resourceId, itemId, ...params }: UpdateCollectionItemAuthorization_Draft_ParamsType): Promise<any>;
564
+ interface AddResourceItems_Draft_ParamsType {
565
+ resourceId: string;
566
+ addCollectionItems: {
567
+ resourceId: string;
568
+ itemTitle: string;
569
+ resolveResources?: {
570
+ resourceId: string;
571
+ contracts: {
572
+ policyId: string;
573
+ }[];
574
+ }[];
575
+ }[];
576
+ isPublish: 1 | 0;
577
+ }
578
+ export declare function addResourceItems_Draft({ resourceId, ...params }: AddResourceItems_Draft_ParamsType): Promise<any>;
579
+ interface GetCollectionItemsAuth_Draft_ParamsType {
580
+ resourceId: string;
581
+ itemIds: string;
582
+ }
583
+ export declare function getCollectionItemsAuth_Draft({ resourceId, ...params }: GetCollectionItemsAuth_Draft_ParamsType): Promise<any>;
389
584
  export {};
@@ -29,6 +29,8 @@ interface ObjectListParamsType {
29
29
  projection?: string;
30
30
  sort?: string;
31
31
  omitResourceType?: string;
32
+ mime?: string;
33
+ extNames: string;
32
34
  }
33
35
  export declare function objectList({ bucketName, ...params }: ObjectListParamsType): Promise<any>;
34
36
  interface UserNodeDataListParamsType {
@@ -138,4 +140,8 @@ interface FilesListInfoParamsType {
138
140
  resourceTypeCode: string;
139
141
  }
140
142
  export declare function filesListInfo({ ...params }: FilesListInfoParamsType): Promise<any>;
143
+ interface FilesInfoParamsType {
144
+ resourceTypeCode: string;
145
+ }
146
+ export declare function filesInfo({ ...params }: FilesInfoParamsType): Promise<any>;
141
147
  export {};