@freelog/tools-lib 0.1.112 → 0.1.115

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[];
@@ -247,6 +248,11 @@ interface RelationTreeAuthParamsType {
247
248
  versionRange?: string;
248
249
  }
249
250
  export declare function relationTreeAuth({ resourceId, ...params }: RelationTreeAuthParamsType): Promise<any>;
251
+ interface ResourcesCountParamsType {
252
+ userIds: string;
253
+ status?: 0 | 1 | 2 | 3;
254
+ }
255
+ export declare function resourcesCount({ ...params }: ResourcesCountParamsType): Promise<any>;
250
256
  interface BatchAuthParamsType {
251
257
  resourceIds: string;
252
258
  versions?: string;
@@ -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;
@@ -2107,18 +2107,27 @@ function relationTreeAuth(_ref12) {
2107
2107
  params: params
2108
2108
  });
2109
2109
  }
2110
- function batchAuth$1(_ref13) {
2110
+ function resourcesCount(_ref13) {
2111
2111
  var params = _extends({}, _ref13);
2112
2112
 
2113
2113
  return FUtil.Request({
2114
2114
  method: 'GET',
2115
- url: "/v2/auths/resources/batchAuth/results",
2115
+ url: "/v2/resources/count",
2116
2116
  params: params
2117
2117
  });
2118
2118
  }
2119
- function resourcesRecommend(_ref14) {
2119
+ function batchAuth$1(_ref14) {
2120
2120
  var params = _extends({}, _ref14);
2121
2121
 
2122
+ return FUtil.Request({
2123
+ method: 'GET',
2124
+ url: "/v2/auths/resources/batchAuth/results",
2125
+ params: params
2126
+ });
2127
+ }
2128
+ function resourcesRecommend(_ref15) {
2129
+ var params = _extends({}, _ref15);
2130
+
2122
2131
  return FUtil.Request({
2123
2132
  method: 'GET',
2124
2133
  url: "/v2/resources/recommend",
@@ -2151,6 +2160,7 @@ var Resource = {
2151
2160
  cycleDependencyCheck: cycleDependencyCheck$1,
2152
2161
  relationTree: relationTree$1,
2153
2162
  relationTreeAuth: relationTreeAuth,
2163
+ resourcesCount: resourcesCount,
2154
2164
  batchAuth: batchAuth$1,
2155
2165
  resourcesRecommend: resourcesRecommend
2156
2166
  };
@@ -2193,6 +2203,13 @@ function currentUserInfo() {
2193
2203
  url: '/v2/users/current'
2194
2204
  });
2195
2205
  }
2206
+ function users(params) {
2207
+ return FUtil.Request({
2208
+ method: 'GET',
2209
+ url: "/v2/users",
2210
+ params: params
2211
+ });
2212
+ }
2196
2213
  function userDetails(params) {
2197
2214
  return FUtil.Request({
2198
2215
  method: 'GET',
@@ -2308,6 +2325,7 @@ var User = {
2308
2325
  login: login$1,
2309
2326
  logout: logout,
2310
2327
  currentUserInfo: currentUserInfo,
2328
+ users: users,
2311
2329
  userDetails: userDetails,
2312
2330
  logon: logon$1,
2313
2331
  resetPassword: resetPassword,
@@ -2895,7 +2913,7 @@ function getFilesSha1Info(_x, _x2) {
2895
2913
 
2896
2914
  function _getFilesSha1Info() {
2897
2915
  _getFilesSha1Info = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee(_ref, cdPartially) {
2898
- var sha1, needHandleSha1, allData, _yield$Storage$filesL, data, finishedInfo;
2916
+ var sha1, delay, needHandleSha1, allData, _yield$Storage$filesL, data, finishedInfo;
2899
2917
 
2900
2918
  return runtime_1.wrap(function _callee$(_context) {
2901
2919
  while (1) {
@@ -2917,12 +2935,12 @@ function _getFilesSha1Info() {
2917
2935
  return _context.abrupt("return", []);
2918
2936
 
2919
2937
  case 4:
2938
+ delay = 500;
2920
2939
  needHandleSha1 = [].concat(sha1);
2921
2940
  allData = [];
2922
2941
 
2923
- case 6:
2942
+ case 7:
2924
2943
 
2925
- console.log(needHandleSha1.join(','), 'needHandleSha1.join()90ojlskdfjsdlk');
2926
2944
  _context.next = 10;
2927
2945
  return filesListInfo({
2928
2946
  sha1: needHandleSha1.join(',')
@@ -2965,10 +2983,10 @@ function _getFilesSha1Info() {
2965
2983
 
2966
2984
  case 18:
2967
2985
  _context.next = 20;
2968
- return promiseSleep(3000);
2986
+ return promiseSleep(delay);
2969
2987
 
2970
2988
  case 20:
2971
- _context.next = 6;
2989
+ _context.next = 7;
2972
2990
  break;
2973
2991
 
2974
2992
  case 22:
@@ -3337,7 +3355,9 @@ var I18nNext = /*#__PURE__*/function () {
3337
3355
  lng: lng,
3338
3356
  fallbackLng: 'zh_CN',
3339
3357
  interpolation: {
3340
- escapeValue: false
3358
+ escapeValue: false,
3359
+ prefix: '{',
3360
+ suffix: '}'
3341
3361
  }
3342
3362
  });
3343
3363