@freelog/tools-lib 0.1.114 → 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.
@@ -248,6 +248,11 @@ interface RelationTreeAuthParamsType {
248
248
  versionRange?: string;
249
249
  }
250
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>;
251
256
  interface BatchAuthParamsType {
252
257
  resourceIds: string;
253
258
  versions?: 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
  };