@freelog/tools-lib 0.1.99 → 0.1.104

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.
@@ -736,10 +736,19 @@ function nodeCreateSuccess(_ref24) {
736
736
  var nodeID = _ref24.nodeID;
737
737
  return "/result/node/create/success/" + nodeID;
738
738
  }
739
- function exception403(_temp11) {
739
+ function invitation(_temp11) {
740
740
  var _ref25 = _temp11 === void 0 ? {} : _temp11,
741
741
  params = _extends({}, _ref25);
742
742
 
743
+ // console.log(params.goTo, 'goTo9iowjefklsdj;flksdjflk')
744
+ return "/invitation" + handleQuery({
745
+ returnUrl: params.goTo ? encodeURIComponent(params.goTo) : undefined
746
+ });
747
+ }
748
+ function exception403(_temp12) {
749
+ var _ref26 = _temp12 === void 0 ? {} : _temp12,
750
+ params = _extends({}, _ref26);
751
+
743
752
  var fromUrl = params.from || '';
744
753
 
745
754
  if (!fromUrl) {
@@ -753,56 +762,56 @@ function exception403(_temp11) {
753
762
  from: fromUrl
754
763
  });
755
764
  }
756
- function login(_temp12) {
757
- var _ref26 = _temp12 === void 0 ? {} : _temp12,
758
- goTo = _ref26.goTo;
765
+ function login(_temp13) {
766
+ var _ref27 = _temp13 === void 0 ? {} : _temp13,
767
+ goTo = _ref27.goTo;
759
768
 
760
769
  return "/login" + handleQuery({
761
770
  goTo: goTo ? encodeURIComponent(goTo) : undefined
762
771
  });
763
772
  }
764
- function logon(_temp13) {
765
- var _ref27 = _temp13 === void 0 ? {} : _temp13,
766
- goTo = _ref27.goTo;
773
+ function logon(_temp14) {
774
+ var _ref28 = _temp14 === void 0 ? {} : _temp14,
775
+ goTo = _ref28.goTo;
767
776
 
768
777
  return "/logon" + handleQuery({
769
778
  goTo: goTo ? encodeURIComponent(goTo) : undefined
770
779
  });
771
780
  }
772
- function retrieveUserPassword(_temp14) {
773
- var _ref28 = _temp14 === void 0 ? {} : _temp14,
774
- goTo = _ref28.goTo;
781
+ function retrieveUserPassword(_temp15) {
782
+ var _ref29 = _temp15 === void 0 ? {} : _temp15,
783
+ goTo = _ref29.goTo;
775
784
 
776
785
  return "/retrieve" + handleQuery({
777
786
  goTo: goTo ? encodeURIComponent(goTo) : undefined
778
787
  });
779
788
  }
780
- function retrievePayPassword(_temp15) {
781
- var _ref29 = _temp15 === void 0 ? {} : _temp15;
782
-
783
- _objectDestructuringEmpty(_ref29);
784
-
785
- return "/retrievePayPassword";
786
- }
787
- function wallet(_temp16) {
789
+ function retrievePayPassword(_temp16) {
788
790
  var _ref30 = _temp16 === void 0 ? {} : _temp16;
789
791
 
790
792
  _objectDestructuringEmpty(_ref30);
791
793
 
792
- return "/logged/wallet";
794
+ return "/retrievePayPassword";
793
795
  }
794
- function contract(_temp17) {
796
+ function wallet(_temp17) {
795
797
  var _ref31 = _temp17 === void 0 ? {} : _temp17;
796
798
 
797
799
  _objectDestructuringEmpty(_ref31);
798
800
 
799
- return "/logged/contract";
801
+ return "/logged/wallet";
800
802
  }
801
- function setting(_temp18) {
803
+ function contract(_temp18) {
802
804
  var _ref32 = _temp18 === void 0 ? {} : _temp18;
803
805
 
804
806
  _objectDestructuringEmpty(_ref32);
805
807
 
808
+ return "/logged/contract";
809
+ }
810
+ function setting(_temp19) {
811
+ var _ref33 = _temp19 === void 0 ? {} : _temp19;
812
+
813
+ _objectDestructuringEmpty(_ref33);
814
+
806
815
  return "/logged/setting";
807
816
  }
808
817
  /************** user End ******************************************************/
@@ -850,6 +859,7 @@ var LinkTo = {
850
859
  resourceCreateSuccess: resourceCreateSuccess,
851
860
  resourceVersionCreateSuccess: resourceVersionCreateSuccess,
852
861
  nodeCreateSuccess: nodeCreateSuccess,
862
+ invitation: invitation,
853
863
  exception403: exception403,
854
864
  login: login,
855
865
  logon: logon,
@@ -1761,7 +1771,7 @@ function updatePassword(params) {
1761
1771
  data: params
1762
1772
  });
1763
1773
  }
1764
- function uploadHeadImg(params) {
1774
+ function uploadHeadImg(params, config) {
1765
1775
  var formData = new FormData();
1766
1776
 
1767
1777
  for (var _i = 0, _Object$entries = Object.entries(params); _i < _Object$entries.length; _i++) {
@@ -1774,11 +1784,11 @@ function uploadHeadImg(params) {
1774
1784
  }
1775
1785
  }
1776
1786
 
1777
- return FUtil.Request({
1787
+ return FUtil.Request(_extends({
1778
1788
  method: 'POST',
1779
1789
  url: "/v2/users/current/uploadHeadImg",
1780
- data: params
1781
- });
1790
+ data: formData
1791
+ }, config));
1782
1792
  }
1783
1793
  function updateDetailInfo(params) {
1784
1794
  return FUtil.Request({
@@ -2252,6 +2262,19 @@ var TestQualification = {
2252
2262
  getBetaApply2: getBetaApply2
2253
2263
  };
2254
2264
 
2265
+ function transactionsCommon(params) {
2266
+ return FUtil.Request({
2267
+ method: 'GET',
2268
+ url: "/v2/statistics/transactions/common",
2269
+ params: params
2270
+ });
2271
+ }
2272
+
2273
+ var Statistic = {
2274
+ __proto__: null,
2275
+ transactionsCommon: transactionsCommon
2276
+ };
2277
+
2255
2278
  var FServiceAPI = {
2256
2279
  Node: Node,
2257
2280
  Exhibit: Exhibit,
@@ -2265,7 +2288,8 @@ var FServiceAPI = {
2265
2288
  Captcha: Captcha,
2266
2289
  Event: Event,
2267
2290
  Activity: Activity,
2268
- TestQualification: TestQualification
2291
+ TestQualification: TestQualification,
2292
+ Statistic: Statistic
2269
2293
  };
2270
2294
 
2271
2295
  var codeMessage = {