@freelog/tools-lib 0.1.157 → 0.1.160

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.
@@ -28,7 +28,9 @@ interface ContractsParamsType {
28
28
  limit?: number;
29
29
  identityType: 1 | 2;
30
30
  licensorId?: string;
31
+ licensorName?: string;
31
32
  licenseeId?: string;
33
+ licenseeName?: string;
32
34
  subjectIds?: string;
33
35
  subjectType?: 1 | 2 | 3;
34
36
  isDefault?: number;
@@ -44,6 +46,14 @@ interface ContractsParamsType {
44
46
  projection?: string;
45
47
  }
46
48
  export declare function contracts(params: ContractsParamsType): Promise<any>;
49
+ interface KeywordSuggestParamsType {
50
+ identityType: 1 | 2;
51
+ prefix: string;
52
+ prefixType: 1 | 2;
53
+ startDate?: string;
54
+ endDate?: string;
55
+ }
56
+ export declare function keywordSuggest(params: KeywordSuggestParamsType): Promise<any>;
47
57
  interface BatchContractsParamsType {
48
58
  contractIds?: string;
49
59
  subjectIds?: string;
@@ -15,6 +15,7 @@ interface IResourceInfo {
15
15
  }[];
16
16
  resourceId: string;
17
17
  resourceName: string;
18
+ resourceTitle: string;
18
19
  resourceType: string[];
19
20
  resourceVersions: {
20
21
  createDate: string;
@@ -37,6 +38,52 @@ export interface CreateParamsType {
37
38
  tags?: string[];
38
39
  }
39
40
  export declare function create(params: CreateParamsType): Promise<any>;
41
+ export interface CreateBatchParamsType {
42
+ resourceTypeCode: string;
43
+ resourceTypeName?: string;
44
+ createResourceObjects: {
45
+ name: string;
46
+ resourceTitle?: string;
47
+ policies?: {
48
+ policyName: string;
49
+ policyText: string;
50
+ status?: 1 | 0;
51
+ }[];
52
+ coverImages?: string[];
53
+ intro?: string;
54
+ tags?: string[];
55
+ version: string;
56
+ fileSha1: string;
57
+ filename: string;
58
+ description?: string;
59
+ dependencies?: {
60
+ resourceId: string;
61
+ versionRange: string;
62
+ }[];
63
+ customPropertyDescriptors?: {
64
+ key: string;
65
+ name: string;
66
+ defaultValue: string;
67
+ type: 'editableText' | 'readonlyText' | 'radio' | 'checkbox' | 'select';
68
+ candidateItems?: string[];
69
+ remark?: string;
70
+ }[];
71
+ baseUpcastResources?: {
72
+ resourceId: string;
73
+ }[];
74
+ resolveResources: {
75
+ resourceId: string;
76
+ contracts: {
77
+ policyId: string;
78
+ }[];
79
+ }[];
80
+ inputAttrs?: {
81
+ key: string;
82
+ value: string;
83
+ }[];
84
+ }[];
85
+ }
86
+ export declare function createBatch(params: CreateBatchParamsType): Promise<any>;
40
87
  interface UpdateParamsType {
41
88
  resourceId: string;
42
89
  status?: 0 | 1;
@@ -55,6 +102,16 @@ interface UpdateParamsType {
55
102
  }[];
56
103
  }
57
104
  export declare function update(params: UpdateParamsType): Promise<any>;
105
+ interface BatchUpdateParamsType {
106
+ resourceIds: string[];
107
+ status?: 1 | 4;
108
+ addPolicies?: {
109
+ policyName: string;
110
+ policyText: string;
111
+ status?: 0 | 1;
112
+ }[];
113
+ }
114
+ export declare function batchUpdate(params: BatchUpdateParamsType): Promise<any>;
58
115
  interface ListParamsType {
59
116
  skip?: number;
60
117
  limit?: number;
@@ -290,6 +347,7 @@ interface ResourceTypesParamsType {
290
347
  category?: 1 | 2;
291
348
  isMine?: boolean;
292
349
  status?: 0 | 1;
350
+ supportCreateBatch?: 1 | 2;
293
351
  }
294
352
  export declare function resourceTypes({ ...params }?: ResourceTypesParamsType): Promise<any>;
295
353
  interface ListSimpleByParentCodeParamsType {
@@ -314,4 +372,11 @@ interface GetAttrsInfoByKeyParamsType {
314
372
  key: string;
315
373
  }
316
374
  export declare function getAttrsInfoByKey({ ...params }: GetAttrsInfoByKeyParamsType): Promise<any>;
375
+ interface GenerateResourceNamesParamsType {
376
+ data: {
377
+ name: string;
378
+ num: number;
379
+ }[];
380
+ }
381
+ export declare function generateResourceNames({ data }: GenerateResourceNamesParamsType): Promise<any>;
317
382
  export {};
@@ -77,6 +77,10 @@ interface UploadImageParamsType {
77
77
  file: File;
78
78
  }
79
79
  export declare function uploadImage(params: UploadImageParamsType, config?: AxiosRequestConfig): Promise<any>;
80
+ interface HandleImageParamsType {
81
+ sha1: string;
82
+ }
83
+ export declare function handleImage(params: HandleImageParamsType): Promise<any>;
80
84
  interface UpdateObjectParamsType {
81
85
  objectIdOrName: string;
82
86
  customPropertyDescriptors?: {
@@ -95,6 +99,12 @@ interface UpdateObjectParamsType {
95
99
  resourceTypeName?: string;
96
100
  }
97
101
  export declare function updateObject({ objectIdOrName, ...params }: UpdateObjectParamsType): Promise<any>;
102
+ interface BatchUpdateObjectParamsType {
103
+ objectIds: string[];
104
+ resourceTypeCode: string;
105
+ resourceTypeName?: string;
106
+ }
107
+ export declare function batchUpdateObject({ ...params }: BatchUpdateObjectParamsType): Promise<any>;
98
108
  interface BatchObjectListParamsType {
99
109
  fullObjectNames?: string;
100
110
  objectIds?: string;