@freelog/tools-lib 0.1.113 → 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.
@@ -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[];
@@ -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;
@@ -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,12 +2925,12 @@ 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
- console.log(needHandleSha1.join(','), 'needHandleSha1.join()90ojlskdfjsdlk');
2926
2934
  _context.next = 10;
2927
2935
  return filesListInfo({
2928
2936
  sha1: needHandleSha1.join(',')
@@ -2965,10 +2973,10 @@ function _getFilesSha1Info() {
2965
2973
 
2966
2974
  case 18:
2967
2975
  _context.next = 20;
2968
- return promiseSleep(3000);
2976
+ return promiseSleep(delay);
2969
2977
 
2970
2978
  case 20:
2971
- _context.next = 6;
2979
+ _context.next = 7;
2972
2980
  break;
2973
2981
 
2974
2982
  case 22:
@@ -3337,7 +3345,9 @@ var I18nNext = /*#__PURE__*/function () {
3337
3345
  lng: lng,
3338
3346
  fallbackLng: 'zh_CN',
3339
3347
  interpolation: {
3340
- escapeValue: false
3348
+ escapeValue: false,
3349
+ prefix: '{',
3350
+ suffix: '}'
3341
3351
  }
3342
3352
  });
3343
3353