@freelog/tools-lib 0.1.111 → 0.1.114

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,6 +10,11 @@ export interface CreatePresentableParamsType {
10
10
  }[];
11
11
  presentableName: string;
12
12
  tags?: string[];
13
+ policies?: {
14
+ policyName: string;
15
+ policyText: string;
16
+ status?: 0 | 1;
17
+ }[];
13
18
  }
14
19
  export declare function createPresentable(params: CreatePresentableParamsType): Promise<any>;
15
20
  interface UpdatePresentableParamsType {
@@ -65,6 +65,7 @@ interface ListParamsType {
65
65
  isLoadLatestVersionInfo?: 0 | 1;
66
66
  projection?: string;
67
67
  sort?: string;
68
+ userId?: number;
68
69
  }
69
70
  interface ListReturnType extends CommonReturn {
70
71
  data: IResourceInfo[];
@@ -118,7 +118,7 @@ interface ClearUserNodeDataParamsType {
118
118
  }
119
119
  export declare function clearUserNodeData({ ...params }: ClearUserNodeDataParamsType): Promise<any>;
120
120
  interface FilesListInfoParamsType {
121
- sha1: string[];
121
+ sha1: string;
122
122
  }
123
123
  export declare function filesListInfo({ ...params }: FilesListInfoParamsType): Promise<any>;
124
124
  export {};
@@ -12,6 +12,16 @@ interface LogoutParamsType {
12
12
  }
13
13
  export declare function logout({ ...params }?: LogoutParamsType): Promise<any>;
14
14
  export declare function currentUserInfo(): Promise<any>;
15
+ interface UsersParamsType {
16
+ skip?: number;
17
+ limit?: number;
18
+ keywords?: string;
19
+ userId?: number;
20
+ tagIds?: string;
21
+ startRegisteredDate?: string;
22
+ endRegisteredDate?: string;
23
+ }
24
+ export declare function users(params: UsersParamsType): Promise<any>;
15
25
  interface UserDetailsParamsType {
16
26
  mobile?: string;
17
27
  username?: string;
@@ -2121,7 +2121,7 @@ function resourcesRecommend(_ref14) {
2121
2121
 
2122
2122
  return FUtil.Request({
2123
2123
  method: 'GET',
2124
- url: "/v2/resources/recommend?recommendType=2",
2124
+ url: "/v2/resources/recommend",
2125
2125
  params: params
2126
2126
  });
2127
2127
  }
@@ -2193,6 +2193,13 @@ function currentUserInfo() {
2193
2193
  url: '/v2/users/current'
2194
2194
  });
2195
2195
  }
2196
+ function users(params) {
2197
+ return FUtil.Request({
2198
+ method: 'GET',
2199
+ url: "/v2/users",
2200
+ params: params
2201
+ });
2202
+ }
2196
2203
  function userDetails(params) {
2197
2204
  return FUtil.Request({
2198
2205
  method: 'GET',
@@ -2308,6 +2315,7 @@ var User = {
2308
2315
  login: login$1,
2309
2316
  logout: logout,
2310
2317
  currentUserInfo: currentUserInfo,
2318
+ users: users,
2311
2319
  userDetails: userDetails,
2312
2320
  logon: logon$1,
2313
2321
  resetPassword: resetPassword,
@@ -2895,7 +2903,7 @@ function getFilesSha1Info(_x, _x2) {
2895
2903
 
2896
2904
  function _getFilesSha1Info() {
2897
2905
  _getFilesSha1Info = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee(_ref, cdPartially) {
2898
- var sha1, needHandleSha1, allData, _yield$Storage$filesL, data, finishedInfo;
2906
+ var sha1, delay, needHandleSha1, allData, _yield$Storage$filesL, data, finishedInfo;
2899
2907
 
2900
2908
  return runtime_1.wrap(function _callee$(_context) {
2901
2909
  while (1) {
@@ -2917,17 +2925,18 @@ function _getFilesSha1Info() {
2917
2925
  return _context.abrupt("return", []);
2918
2926
 
2919
2927
  case 4:
2928
+ delay = 500;
2920
2929
  needHandleSha1 = [].concat(sha1);
2921
2930
  allData = [];
2922
2931
 
2923
- case 6:
2932
+ case 7:
2924
2933
 
2925
- _context.next = 9;
2934
+ _context.next = 10;
2926
2935
  return filesListInfo({
2927
- sha1: needHandleSha1
2936
+ sha1: needHandleSha1.join(',')
2928
2937
  });
2929
2938
 
2930
- case 9:
2939
+ case 10:
2931
2940
  _yield$Storage$filesL = _context.sent;
2932
2941
  data = _yield$Storage$filesL.data;
2933
2942
  needHandleSha1 = data.filter(function (d) {
@@ -2956,24 +2965,24 @@ function _getFilesSha1Info() {
2956
2965
  allData = [].concat(allData, finishedInfo);
2957
2966
 
2958
2967
  if (!(needHandleSha1.length === 0)) {
2959
- _context.next = 17;
2968
+ _context.next = 18;
2960
2969
  break;
2961
2970
  }
2962
2971
 
2963
- return _context.abrupt("break", 21);
2972
+ return _context.abrupt("break", 22);
2964
2973
 
2965
- case 17:
2966
- _context.next = 19;
2967
- return promiseSleep(3000);
2974
+ case 18:
2975
+ _context.next = 20;
2976
+ return promiseSleep(delay);
2968
2977
 
2969
- case 19:
2970
- _context.next = 6;
2978
+ case 20:
2979
+ _context.next = 7;
2971
2980
  break;
2972
2981
 
2973
- case 21:
2982
+ case 22:
2974
2983
  return _context.abrupt("return", allData);
2975
2984
 
2976
- case 22:
2985
+ case 23:
2977
2986
  case "end":
2978
2987
  return _context.stop();
2979
2988
  }
@@ -3336,7 +3345,9 @@ var I18nNext = /*#__PURE__*/function () {
3336
3345
  lng: lng,
3337
3346
  fallbackLng: 'zh_CN',
3338
3347
  interpolation: {
3339
- escapeValue: false
3348
+ escapeValue: false,
3349
+ prefix: '{',
3350
+ suffix: '}'
3340
3351
  }
3341
3352
  });
3342
3353