@freelog/tools-lib 0.1.109 → 0.1.112

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.
@@ -13,7 +13,7 @@ import * as Activity from './activities';
13
13
  import * as TestQualification from './testQualifications';
14
14
  import * as Statistic from './statistics';
15
15
  import * as I18n from './i18n';
16
- import * as combination from './combinations';
16
+ import * as recombination from './recombinations';
17
17
  declare const FServiceAPI: {
18
18
  Node: typeof Node;
19
19
  Exhibit: typeof Exhibit;
@@ -30,6 +30,6 @@ declare const FServiceAPI: {
30
30
  TestQualification: typeof TestQualification;
31
31
  Statistic: typeof Statistic;
32
32
  I18n: typeof I18n;
33
- combination: typeof combination;
33
+ recombination: typeof recombination;
34
34
  };
35
35
  export default FServiceAPI;
@@ -253,4 +253,8 @@ interface BatchAuthParamsType {
253
253
  versionRanges?: string;
254
254
  }
255
255
  export declare function batchAuth({ ...params }: BatchAuthParamsType): Promise<any>;
256
+ interface ResourcesRecommendParamsType {
257
+ recommendType: 1 | 2;
258
+ }
259
+ export declare function resourcesRecommend({ ...params }: ResourcesRecommendParamsType): Promise<any>;
256
260
  export {};
@@ -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 {};
@@ -68,4 +68,12 @@ interface RegisterOrBindParamsType {
68
68
  identityId: string;
69
69
  }
70
70
  export declare function registerOrBind(params: RegisterOrBindParamsType): Promise<any>;
71
+ interface ThirdPartyUnbindParamsType {
72
+ thirdPartyType: string;
73
+ password: string;
74
+ }
75
+ export declare function thirdPartyUnbind(params: ThirdPartyUnbindParamsType): Promise<any>;
76
+ interface ThirdPartyListParamsType {
77
+ }
78
+ export declare function thirdPartyList(params?: ThirdPartyListParamsType): Promise<any>;
71
79
  export {};
@@ -1026,7 +1026,8 @@ var Regexp = {
1026
1026
  };
1027
1027
 
1028
1028
  var _excluded = ["resourceID"],
1029
- _excluded2 = ["nodeID", "showPage"];
1029
+ _excluded2 = ["nodeID", "showPage"],
1030
+ _excluded3 = ["nodeID", "showPage"];
1030
1031
  function home(_temp) {
1031
1032
  var _ref = _temp === void 0 ? {} : _temp;
1032
1033
 
@@ -1053,11 +1054,10 @@ function dashboard(_temp3) {
1053
1054
  return "/dashboard";
1054
1055
  }
1055
1056
  function market(_temp4) {
1056
- var _ref5 = _temp4 === void 0 ? {} : _temp4;
1057
+ var _ref5 = _temp4 === void 0 ? {} : _temp4,
1058
+ params = _extends({}, _ref5);
1057
1059
 
1058
- _objectDestructuringEmpty(_ref5);
1059
-
1060
- return "/market";
1060
+ return "/market" + handleQuery(params);
1061
1061
  }
1062
1062
  function exampleNodes(_temp5) {
1063
1063
  var _ref6 = _temp5 === void 0 ? {} : _temp5;
@@ -1118,8 +1118,14 @@ function nodeCreator(_temp9) {
1118
1118
  return "/node/creator";
1119
1119
  }
1120
1120
  function nodeManagement(_ref16) {
1121
- var nodeID = _ref16.nodeID;
1122
- return "/node/formal/" + nodeID;
1121
+ var nodeID = _ref16.nodeID,
1122
+ _ref16$showPage = _ref16.showPage,
1123
+ showPage = _ref16$showPage === void 0 ? 'exhibit' : _ref16$showPage,
1124
+ params = _objectWithoutPropertiesLoose(_ref16, _excluded2);
1125
+
1126
+ return "/node/formal/" + nodeID + handleQuery(_extends({
1127
+ showPage: showPage
1128
+ }, params));
1123
1129
  }
1124
1130
  function exhibitManagement(_ref17) {
1125
1131
  var exhibitID = _ref17.exhibitID;
@@ -1129,7 +1135,7 @@ function informNodeManagement(_ref18) {
1129
1135
  var nodeID = _ref18.nodeID,
1130
1136
  _ref18$showPage = _ref18.showPage,
1131
1137
  showPage = _ref18$showPage === void 0 ? 'exhibit' : _ref18$showPage,
1132
- params = _objectWithoutPropertiesLoose(_ref18, _excluded2);
1138
+ params = _objectWithoutPropertiesLoose(_ref18, _excluded3);
1133
1139
 
1134
1140
  return "/node/informal/" + nodeID + handleQuery(_extends({
1135
1141
  showPage: showPage
@@ -1392,7 +1398,7 @@ var Node = {
1392
1398
 
1393
1399
  var _excluded$1 = ["presentableId"],
1394
1400
  _excluded2$1 = ["presentableId"],
1395
- _excluded3 = ["presentableId"],
1401
+ _excluded3$1 = ["presentableId"],
1396
1402
  _excluded4 = ["presentableId"],
1397
1403
  _excluded5 = ["presentableId"],
1398
1404
  _excluded6 = ["presentableId"],
@@ -1443,7 +1449,7 @@ function presentableDetails(params) {
1443
1449
  }
1444
1450
 
1445
1451
  var presentableId = params.presentableId,
1446
- p = _objectWithoutPropertiesLoose(params, _excluded3); // return FUtil.Axios.get(`/v2/presentables/${presentableId}`, {
1452
+ p = _objectWithoutPropertiesLoose(params, _excluded3$1); // return FUtil.Axios.get(`/v2/presentables/${presentableId}`, {
1447
1453
  // params: p,
1448
1454
  // });
1449
1455
 
@@ -1569,7 +1575,7 @@ var Exhibit = {
1569
1575
 
1570
1576
  var _excluded$2 = ["bucketName"],
1571
1577
  _excluded2$2 = ["bucketName"],
1572
- _excluded3$1 = ["objectIdOrName"],
1578
+ _excluded3$2 = ["objectIdOrName"],
1573
1579
  _excluded4$1 = ["sha1"],
1574
1580
  _excluded5$1 = ["objectIdOrName"];
1575
1581
  function createBucket(params) {
@@ -1739,7 +1745,7 @@ function uploadImage(params, config) {
1739
1745
  }
1740
1746
  function updateObject(_ref5) {
1741
1747
  var objectIdOrName = _ref5.objectIdOrName,
1742
- params = _objectWithoutPropertiesLoose(_ref5, _excluded3$1);
1748
+ params = _objectWithoutPropertiesLoose(_ref5, _excluded3$2);
1743
1749
 
1744
1750
  return FUtil.Request({
1745
1751
  method: 'PUT',
@@ -1874,7 +1880,7 @@ var Collection = {
1874
1880
 
1875
1881
  var _excluded$3 = ["resourceIdOrName"],
1876
1882
  _excluded2$3 = ["resourceId"],
1877
- _excluded3$2 = ["resourceId"],
1883
+ _excluded3$3 = ["resourceId"],
1878
1884
  _excluded4$2 = ["resourceId"],
1879
1885
  _excluded5$2 = ["resourceId", "version"],
1880
1886
  _excluded6$1 = ["fileSha1"],
@@ -1934,7 +1940,7 @@ function dependencyTree$1(_ref2) {
1934
1940
  }
1935
1941
  function authTree$1(_ref3) {
1936
1942
  var resourceId = _ref3.resourceId,
1937
- params = _objectWithoutPropertiesLoose(_ref3, _excluded3$2);
1943
+ params = _objectWithoutPropertiesLoose(_ref3, _excluded3$3);
1938
1944
 
1939
1945
  return FUtil.Request({
1940
1946
  method: 'GET',
@@ -2110,6 +2116,15 @@ function batchAuth$1(_ref13) {
2110
2116
  params: params
2111
2117
  });
2112
2118
  }
2119
+ function resourcesRecommend(_ref14) {
2120
+ var params = _extends({}, _ref14);
2121
+
2122
+ return FUtil.Request({
2123
+ method: 'GET',
2124
+ url: "/v2/resources/recommend",
2125
+ params: params
2126
+ });
2127
+ }
2113
2128
 
2114
2129
  var Resource = {
2115
2130
  __proto__: null,
@@ -2136,7 +2151,8 @@ var Resource = {
2136
2151
  cycleDependencyCheck: cycleDependencyCheck$1,
2137
2152
  relationTree: relationTree$1,
2138
2153
  relationTreeAuth: relationTreeAuth,
2139
- batchAuth: batchAuth$1
2154
+ batchAuth: batchAuth$1,
2155
+ resourcesRecommend: resourcesRecommend
2140
2156
  };
2141
2157
 
2142
2158
  var _excluded$4 = ["loginName"];
@@ -2268,6 +2284,24 @@ function registerOrBind(params) {
2268
2284
  noRedirect: true
2269
2285
  });
2270
2286
  }
2287
+ function thirdPartyUnbind(params) {
2288
+ return FUtil.Request({
2289
+ method: 'PUT',
2290
+ url: "/v2/thirdParty/unbind",
2291
+ data: params
2292
+ });
2293
+ }
2294
+ function thirdPartyList(params) {
2295
+ if (params === void 0) {
2296
+ params = {};
2297
+ }
2298
+
2299
+ return FUtil.Request({
2300
+ method: 'GET',
2301
+ url: "/v2/thirdParty/list",
2302
+ data: params
2303
+ });
2304
+ }
2271
2305
 
2272
2306
  var User = {
2273
2307
  __proto__: null,
@@ -2283,12 +2317,14 @@ var User = {
2283
2317
  verifyLoginPassword: verifyLoginPassword,
2284
2318
  areasProvinces: areasProvinces,
2285
2319
  updateMobileOrEmail: updateMobileOrEmail,
2286
- registerOrBind: registerOrBind
2320
+ registerOrBind: registerOrBind,
2321
+ thirdPartyUnbind: thirdPartyUnbind,
2322
+ thirdPartyList: thirdPartyList
2287
2323
  };
2288
2324
 
2289
2325
  var _excluded$5 = ["nodeId"],
2290
2326
  _excluded2$4 = ["nodeId"],
2291
- _excluded3$3 = ["nodeId"],
2327
+ _excluded3$4 = ["nodeId"],
2292
2328
  _excluded4$3 = ["nodeId"],
2293
2329
  _excluded5$3 = ["nodeId"],
2294
2330
  _excluded6$2 = ["testResourceId"],
@@ -2319,7 +2355,7 @@ function createRules(_ref2) {
2319
2355
  }
2320
2356
  function batchTestResources(_ref3) {
2321
2357
  var nodeId = _ref3.nodeId,
2322
- params = _objectWithoutPropertiesLoose(_ref3, _excluded3$3);
2358
+ params = _objectWithoutPropertiesLoose(_ref3, _excluded3$4);
2323
2359
 
2324
2360
  return FUtil.Request({
2325
2361
  method: 'GET',
@@ -2886,12 +2922,13 @@ function _getFilesSha1Info() {
2886
2922
 
2887
2923
  case 6:
2888
2924
 
2889
- _context.next = 9;
2925
+ console.log(needHandleSha1.join(','), 'needHandleSha1.join()90ojlskdfjsdlk');
2926
+ _context.next = 10;
2890
2927
  return filesListInfo({
2891
- sha1: needHandleSha1
2928
+ sha1: needHandleSha1.join(',')
2892
2929
  });
2893
2930
 
2894
- case 9:
2931
+ case 10:
2895
2932
  _yield$Storage$filesL = _context.sent;
2896
2933
  data = _yield$Storage$filesL.data;
2897
2934
  needHandleSha1 = data.filter(function (d) {
@@ -2920,24 +2957,24 @@ function _getFilesSha1Info() {
2920
2957
  allData = [].concat(allData, finishedInfo);
2921
2958
 
2922
2959
  if (!(needHandleSha1.length === 0)) {
2923
- _context.next = 17;
2960
+ _context.next = 18;
2924
2961
  break;
2925
2962
  }
2926
2963
 
2927
- return _context.abrupt("break", 21);
2964
+ return _context.abrupt("break", 22);
2928
2965
 
2929
- case 17:
2930
- _context.next = 19;
2966
+ case 18:
2967
+ _context.next = 20;
2931
2968
  return promiseSleep(3000);
2932
2969
 
2933
- case 19:
2970
+ case 20:
2934
2971
  _context.next = 6;
2935
2972
  break;
2936
2973
 
2937
- case 21:
2974
+ case 22:
2938
2975
  return _context.abrupt("return", allData);
2939
2976
 
2940
- case 22:
2977
+ case 23:
2941
2978
  case "end":
2942
2979
  return _context.stop();
2943
2980
  }
@@ -2947,7 +2984,7 @@ function _getFilesSha1Info() {
2947
2984
  return _getFilesSha1Info.apply(this, arguments);
2948
2985
  }
2949
2986
 
2950
- var combination = {
2987
+ var recombination = {
2951
2988
  __proto__: null,
2952
2989
  getFilesSha1Info: getFilesSha1Info
2953
2990
  };
@@ -2968,7 +3005,7 @@ var FServiceAPI = {
2968
3005
  TestQualification: TestQualification,
2969
3006
  Statistic: Statistic,
2970
3007
  I18n: I18n,
2971
- combination: combination
3008
+ recombination: recombination
2972
3009
  };
2973
3010
 
2974
3011
  var codeMessage = {