@freelog/tools-lib 0.1.83 → 0.1.86

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.
@@ -1022,11 +1022,11 @@ function activities(_temp2) {
1022
1022
 
1023
1023
  _objectDestructuringEmpty(_ref2);
1024
1024
 
1025
- return "/activity";
1025
+ return "/activities";
1026
1026
  }
1027
1027
  function activity(_ref3) {
1028
1028
  var activityID = _ref3.activityID;
1029
- return "/activityDetail/" + activityID;
1029
+ return "/activity/" + activityID;
1030
1030
  }
1031
1031
  function dashboard(_temp3) {
1032
1032
  var _ref4 = _temp3 === void 0 ? {} : _temp3;
@@ -2076,13 +2076,14 @@ var _excluded$3 = ["resourceIdOrName"],
2076
2076
  _excluded2$3 = ["resourceId"],
2077
2077
  _excluded3$2 = ["resourceId"],
2078
2078
  _excluded4$2 = ["resourceId"],
2079
- _excluded5$2 = ["fileSha1"],
2079
+ _excluded5$2 = ["resourceId", "version"],
2080
2080
  _excluded6$1 = ["fileSha1"],
2081
- _excluded7$1 = ["resourceId"],
2081
+ _excluded7$1 = ["fileSha1"],
2082
2082
  _excluded8$1 = ["resourceId"],
2083
2083
  _excluded9$1 = ["resourceId"],
2084
2084
  _excluded10$1 = ["resourceId"],
2085
- _excluded11 = ["resourceId"];
2085
+ _excluded11 = ["resourceId"],
2086
+ _excluded12 = ["resourceId"];
2086
2087
  function create$1(params) {
2087
2088
  return FUtil.Request({
2088
2089
  method: 'POST',
@@ -2152,24 +2153,27 @@ function createVersion(_ref4) {
2152
2153
  data: params
2153
2154
  });
2154
2155
  }
2155
- function resourceVersionInfo(params) {
2156
- if (params.version) {
2157
- return FUtil.Request({
2158
- method: 'GET',
2159
- url: "/v2/resources/" + params.resourceId + "/versions/" + params.version,
2160
- params: params
2161
- });
2162
- }
2156
+ function resourceVersionInfo1(_ref5) {
2157
+ var resourceId = _ref5.resourceId,
2158
+ version = _ref5.version,
2159
+ params = _objectWithoutPropertiesLoose(_ref5, _excluded5$2);
2163
2160
 
2161
+ return FUtil.Request({
2162
+ method: 'GET',
2163
+ url: "/v2/resources/" + resourceId + "/versions/" + version,
2164
+ params: params
2165
+ });
2166
+ }
2167
+ function resourceVersionInfo2(params) {
2164
2168
  return FUtil.Request({
2165
2169
  method: 'GET',
2166
2170
  url: "/v2/resources/versions/detail",
2167
2171
  params: params
2168
2172
  });
2169
2173
  }
2170
- function getResourceVersionBySha1(_ref5) {
2171
- var fileSha1 = _ref5.fileSha1,
2172
- params = _objectWithoutPropertiesLoose(_ref5, _excluded5$2);
2174
+ function getResourceVersionBySha1(_ref6) {
2175
+ var fileSha1 = _ref6.fileSha1,
2176
+ params = _objectWithoutPropertiesLoose(_ref6, _excluded6$1);
2173
2177
 
2174
2178
  // return FUtil.Axios.get(`/v2/resources/files/${fileSha1}/versions`, {
2175
2179
  // params,
@@ -2180,9 +2184,9 @@ function getResourceVersionBySha1(_ref5) {
2180
2184
  params: params
2181
2185
  });
2182
2186
  }
2183
- function getResourceBySha1(_ref6) {
2184
- var fileSha1 = _ref6.fileSha1,
2185
- params = _objectWithoutPropertiesLoose(_ref6, _excluded6$1);
2187
+ function getResourceBySha1(_ref7) {
2188
+ var fileSha1 = _ref7.fileSha1,
2189
+ params = _objectWithoutPropertiesLoose(_ref7, _excluded7$1);
2186
2190
 
2187
2191
  // return FUtil.Axios.get(`/v2/resources/files/${fileSha1}`, {
2188
2192
  // params,
@@ -2232,9 +2236,9 @@ function resourcesDownload(params) {
2232
2236
  // responseType: 'arraybuffer',
2233
2237
  // });
2234
2238
  }
2235
- function batchGetCoverageVersions(_ref7) {
2236
- var resourceId = _ref7.resourceId,
2237
- params = _objectWithoutPropertiesLoose(_ref7, _excluded7$1);
2239
+ function batchGetCoverageVersions(_ref8) {
2240
+ var resourceId = _ref8.resourceId,
2241
+ params = _objectWithoutPropertiesLoose(_ref8, _excluded8$1);
2238
2242
 
2239
2243
  // return FUtil.Axios.get(`/v2/resources/${resourceId}/contracts/coverageVersions`, {
2240
2244
  // params,
@@ -2252,9 +2256,9 @@ function resolveResources(params) {
2252
2256
  url: "/v2/resources/" + params.resourceId + "/resolveResources"
2253
2257
  });
2254
2258
  }
2255
- function batchSetContracts(_ref8) {
2256
- var resourceId = _ref8.resourceId,
2257
- params = _objectWithoutPropertiesLoose(_ref8, _excluded8$1);
2259
+ function batchSetContracts(_ref9) {
2260
+ var resourceId = _ref9.resourceId,
2261
+ params = _objectWithoutPropertiesLoose(_ref9, _excluded9$1);
2258
2262
 
2259
2263
  // return FUtil.Axios.put(`/v2/resources/${resourceId}/versions/batchSetContracts`, params);
2260
2264
  return FUtil.Request({
@@ -2263,9 +2267,9 @@ function batchSetContracts(_ref8) {
2263
2267
  data: params
2264
2268
  });
2265
2269
  }
2266
- function cycleDependencyCheck$1(_ref9) {
2267
- var resourceId = _ref9.resourceId,
2268
- params = _objectWithoutPropertiesLoose(_ref9, _excluded9$1);
2270
+ function cycleDependencyCheck$1(_ref10) {
2271
+ var resourceId = _ref10.resourceId,
2272
+ params = _objectWithoutPropertiesLoose(_ref10, _excluded10$1);
2269
2273
 
2270
2274
  // return FUtil.Axios.post(`/v2/resources/${resourceId}/versions/cycleDependencyCheck`, params);
2271
2275
  return FUtil.Request({
@@ -2274,9 +2278,9 @@ function cycleDependencyCheck$1(_ref9) {
2274
2278
  data: params
2275
2279
  });
2276
2280
  }
2277
- function relationTree$1(_ref10) {
2278
- var resourceId = _ref10.resourceId,
2279
- params = _objectWithoutPropertiesLoose(_ref10, _excluded10$1);
2281
+ function relationTree$1(_ref11) {
2282
+ var resourceId = _ref11.resourceId,
2283
+ params = _objectWithoutPropertiesLoose(_ref11, _excluded11);
2280
2284
 
2281
2285
  // return FUtil.Axios.get(`/v2/resources/${resourceId}/relationTree`, {
2282
2286
  // params,
@@ -2287,9 +2291,9 @@ function relationTree$1(_ref10) {
2287
2291
  params: params
2288
2292
  });
2289
2293
  }
2290
- function relationTreeAuth(_ref11) {
2291
- var resourceId = _ref11.resourceId,
2292
- params = _objectWithoutPropertiesLoose(_ref11, _excluded11);
2294
+ function relationTreeAuth(_ref12) {
2295
+ var resourceId = _ref12.resourceId,
2296
+ params = _objectWithoutPropertiesLoose(_ref12, _excluded12);
2293
2297
 
2294
2298
  return FUtil.Request({
2295
2299
  method: 'GET',
@@ -2297,8 +2301,8 @@ function relationTreeAuth(_ref11) {
2297
2301
  params: params
2298
2302
  });
2299
2303
  }
2300
- function batchAuth$1(_ref12) {
2301
- var params = _extends({}, _ref12);
2304
+ function batchAuth$1(_ref13) {
2305
+ var params = _extends({}, _ref13);
2302
2306
 
2303
2307
  return FUtil.Request({
2304
2308
  method: 'GET',
@@ -2317,7 +2321,8 @@ var Resource = {
2317
2321
  dependencyTree: dependencyTree$1,
2318
2322
  authTree: authTree$1,
2319
2323
  createVersion: createVersion,
2320
- resourceVersionInfo: resourceVersionInfo,
2324
+ resourceVersionInfo1: resourceVersionInfo1,
2325
+ resourceVersionInfo2: resourceVersionInfo2,
2321
2326
  getResourceVersionBySha1: getResourceVersionBySha1,
2322
2327
  getResourceBySha1: getResourceBySha1,
2323
2328
  updateResourceVersionInfo: updateResourceVersionInfo,