@freelog/tools-lib 0.1.158 → 0.1.161

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.
@@ -10,7 +10,7 @@ export declare function find4Client(params: Find4ClientParamsType): Promise<any>
10
10
  interface AdsListParamsType {
11
11
  skip?: number;
12
12
  limit?: number;
13
- place: 1 | 2 | 3 | 4;
13
+ place: 1 | 2 | 3 | 4 | 5;
14
14
  }
15
15
  export declare function adsList(params: AdsListParamsType): Promise<any>;
16
16
  interface AdsDetailsParamsType {
@@ -92,4 +92,14 @@ interface StatisticRewardRecordsParamsType {
92
92
  codes: string[];
93
93
  }
94
94
  export declare function statisticRewardRecords(params: StatisticRewardRecordsParamsType): Promise<any>;
95
+ interface StatisticTaskRecordsParamsType {
96
+ codes: string[];
97
+ startTime?: string;
98
+ limitTime?: string;
99
+ }
100
+ export declare function statisticTaskRecords(params: StatisticTaskRecordsParamsType): Promise<any>;
101
+ interface StatisticSingleRewardRecordForAllParamsType {
102
+ code: string;
103
+ }
104
+ export declare function statisticSingleRewardRecordForAll(params: StatisticSingleRewardRecordForAllParamsType): Promise<any>;
95
105
  export {};
@@ -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;
@@ -16,8 +16,17 @@ interface NodesParamsType {
16
16
  limit?: number;
17
17
  status?: 0 | 1 | 2;
18
18
  projection?: string;
19
+ nodeType?: 0 | 1;
19
20
  }
20
21
  export declare function nodes(params: NodesParamsType): Promise<any>;
22
+ interface SearchForClientParamsType {
23
+ skip?: number;
24
+ limit?: number;
25
+ status?: 0 | 1 | 2;
26
+ projection?: string;
27
+ nodeType?: 0 | 1;
28
+ }
29
+ export declare function searchForClient(params: SearchForClientParamsType): Promise<any>;
21
30
  interface SetNodeInfoParamsType {
22
31
  nodeId: number;
23
32
  nodeLogo: string;
@@ -144,4 +144,26 @@ interface ContractAppliedPresentableParamsType {
144
144
  contractIds: string;
145
145
  }
146
146
  export declare function contractAppliedPresentable({ nodeId, ...params }: ContractAppliedPresentableParamsType): Promise<any>;
147
+ export interface BatchCreatePresentableParamsType {
148
+ nodeId: number;
149
+ resources: {
150
+ resourceId: string;
151
+ policyId?: string;
152
+ }[];
153
+ }
154
+ export declare function batchCreatePresentable(params: BatchCreatePresentableParamsType): Promise<any>;
155
+ interface BatchUpdatePresentableParamsType {
156
+ presentableIds: string[];
157
+ addPolicies: {
158
+ policyName: string;
159
+ policyText: string;
160
+ status?: 0 | 1;
161
+ }[];
162
+ }
163
+ export declare function batchUpdatePresentable({ ...params }: BatchUpdatePresentableParamsType): Promise<any>;
164
+ interface BatchUpdatePresentableStatusParamsType {
165
+ presentableIds: string[];
166
+ onlineStatus: 0 | 1;
167
+ }
168
+ export declare function batchUpdatePresentableStatus({ ...params }: BatchUpdatePresentableStatusParamsType): Promise<any>;
147
169
  export {};
@@ -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;
@@ -75,6 +132,7 @@ interface ListParamsType {
75
132
  tags?: string;
76
133
  sort?: string;
77
134
  operationCategoryCode?: string;
135
+ operationTypes?: string;
78
136
  }
79
137
  export declare function list(params: ListParamsType): Promise<any>;
80
138
  interface InfoParamsType {
@@ -159,6 +217,11 @@ interface ResourceVersionInfo2ParamsType {
159
217
  }
160
218
  export declare function resourceVersionInfo1({ resourceId, version, ...params }: ResourceVersionInfo1ParamsType): Promise<any>;
161
219
  export declare function resourceVersionInfo2(params: ResourceVersionInfo2ParamsType): Promise<any>;
220
+ interface GetVersionListParamsType {
221
+ versionIds: string;
222
+ projection?: string;
223
+ }
224
+ export declare function getVersionList({ ...params }: GetVersionListParamsType): Promise<any>;
162
225
  interface GetResourceVersionBySha1ParamsType {
163
226
  fileSha1: string;
164
227
  projection?: string;
@@ -202,6 +265,10 @@ interface LookDraftParamsType {
202
265
  resourceId: string;
203
266
  }
204
267
  export declare function lookDraft(params: LookDraftParamsType): Promise<any>;
268
+ interface DeleteResourceDraftParamsType {
269
+ resourceId: string;
270
+ }
271
+ export declare function deleteResourceDraft({ resourceId }: DeleteResourceDraftParamsType): Promise<any>;
205
272
  interface ResourceIsUsedByOtherParamsType {
206
273
  fileSha1: string;
207
274
  }
@@ -282,7 +349,7 @@ interface ResourcesRecommendParamsType {
282
349
  }
283
350
  export declare function resourcesRecommend({ ...params }: ResourcesRecommendParamsType): Promise<any>;
284
351
  interface AvailableTagsParamsType {
285
- resourceType: string;
352
+ resourceTypeCode: string;
286
353
  }
287
354
  export declare function availableTags({ ...params }: AvailableTagsParamsType): Promise<any>;
288
355
  interface ResourceTypesParamsType {
@@ -290,6 +357,7 @@ interface ResourceTypesParamsType {
290
357
  category?: 1 | 2;
291
358
  isMine?: boolean;
292
359
  status?: 0 | 1;
360
+ supportCreateBatch?: 1 | 2;
293
361
  }
294
362
  export declare function resourceTypes({ ...params }?: ResourceTypesParamsType): Promise<any>;
295
363
  interface ListSimpleByParentCodeParamsType {
@@ -314,4 +382,11 @@ interface GetAttrsInfoByKeyParamsType {
314
382
  key: string;
315
383
  }
316
384
  export declare function getAttrsInfoByKey({ ...params }: GetAttrsInfoByKeyParamsType): Promise<any>;
385
+ interface GenerateResourceNamesParamsType {
386
+ data: {
387
+ name: string;
388
+ num: number;
389
+ }[];
390
+ }
391
+ export declare function generateResourceNames({ data }: GenerateResourceNamesParamsType): Promise<any>;
317
392
  export {};
@@ -77,6 +77,14 @@ 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>;
84
+ interface GenerateCoverImageParamsType {
85
+ sha1: string;
86
+ }
87
+ export declare function generateCoverImage(params: GenerateCoverImageParamsType): Promise<any>;
80
88
  interface UpdateObjectParamsType {
81
89
  objectIdOrName: string;
82
90
  customPropertyDescriptors?: {
@@ -95,6 +103,12 @@ interface UpdateObjectParamsType {
95
103
  resourceTypeName?: string;
96
104
  }
97
105
  export declare function updateObject({ objectIdOrName, ...params }: UpdateObjectParamsType): Promise<any>;
106
+ interface BatchUpdateObjectParamsType {
107
+ objectIds: string[];
108
+ resourceTypeCode: string;
109
+ resourceTypeName?: string;
110
+ }
111
+ export declare function batchUpdateObject({ ...params }: BatchUpdateObjectParamsType): Promise<any>;
98
112
  interface BatchObjectListParamsType {
99
113
  fullObjectNames?: string;
100
114
  objectIds?: string;