@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.
- package/dist/service-API/index.d.ts +2 -0
- package/dist/service-API/resources.d.ts +1 -0
- package/dist/service-API/user.d.ts +2 -1
- package/dist/tools-lib.cjs.development.js +51 -27
- package/dist/tools-lib.cjs.development.js.map +1 -1
- package/dist/tools-lib.cjs.production.min.js +1 -1
- package/dist/tools-lib.cjs.production.min.js.map +1 -1
- package/dist/tools-lib.esm.js +51 -27
- package/dist/tools-lib.esm.js.map +1 -1
- package/dist/utils/linkTo.d.ts +4 -0
- package/package.json +1 -1
- package/src/service-API/index.ts +2 -0
- package/src/service-API/resources.ts +1 -0
- package/src/service-API/statistics.ts +20 -20
- package/src/service-API/testQualifications.ts +56 -56
- package/src/service-API/user.ts +4 -2
- package/src/utils/linkTo.ts +12 -0
|
@@ -11,6 +11,7 @@ import * as Captcha from './captcha';
|
|
|
11
11
|
import * as Event from './events';
|
|
12
12
|
import * as Activity from './activities';
|
|
13
13
|
import * as TestQualification from './testQualifications';
|
|
14
|
+
import * as Statistic from './statistics';
|
|
14
15
|
declare const FServiceAPI: {
|
|
15
16
|
Node: typeof Node;
|
|
16
17
|
Exhibit: typeof Exhibit;
|
|
@@ -25,5 +26,6 @@ declare const FServiceAPI: {
|
|
|
25
26
|
Event: typeof Event;
|
|
26
27
|
Activity: typeof Activity;
|
|
27
28
|
TestQualification: typeof TestQualification;
|
|
29
|
+
Statistic: typeof Statistic;
|
|
28
30
|
};
|
|
29
31
|
export default FServiceAPI;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AxiosRequestConfig } from "axios";
|
|
1
2
|
interface LoginParamsType {
|
|
2
3
|
loginName: string;
|
|
3
4
|
password: string;
|
|
@@ -39,7 +40,7 @@ export declare function updatePassword(params: UpdatePasswordParamsType): Promis
|
|
|
39
40
|
interface UploadHeadImgParamsType {
|
|
40
41
|
file: File;
|
|
41
42
|
}
|
|
42
|
-
export declare function uploadHeadImg(params: UploadHeadImgParamsType): Promise<any>;
|
|
43
|
+
export declare function uploadHeadImg(params: UploadHeadImgParamsType, config?: AxiosRequestConfig): Promise<any>;
|
|
43
44
|
interface UpdateDetailInfoParamsType {
|
|
44
45
|
areaCode?: string;
|
|
45
46
|
occupation?: string;
|
|
@@ -742,10 +742,19 @@ function nodeCreateSuccess(_ref24) {
|
|
|
742
742
|
var nodeID = _ref24.nodeID;
|
|
743
743
|
return "/result/node/create/success/" + nodeID;
|
|
744
744
|
}
|
|
745
|
-
function
|
|
745
|
+
function invitation(_temp11) {
|
|
746
746
|
var _ref25 = _temp11 === void 0 ? {} : _temp11,
|
|
747
747
|
params = _extends({}, _ref25);
|
|
748
748
|
|
|
749
|
+
// console.log(params.goTo, 'goTo9iowjefklsdj;flksdjflk')
|
|
750
|
+
return "/invitation" + handleQuery({
|
|
751
|
+
returnUrl: params.goTo ? encodeURIComponent(params.goTo) : undefined
|
|
752
|
+
});
|
|
753
|
+
}
|
|
754
|
+
function exception403(_temp12) {
|
|
755
|
+
var _ref26 = _temp12 === void 0 ? {} : _temp12,
|
|
756
|
+
params = _extends({}, _ref26);
|
|
757
|
+
|
|
749
758
|
var fromUrl = params.from || '';
|
|
750
759
|
|
|
751
760
|
if (!fromUrl) {
|
|
@@ -759,56 +768,56 @@ function exception403(_temp11) {
|
|
|
759
768
|
from: fromUrl
|
|
760
769
|
});
|
|
761
770
|
}
|
|
762
|
-
function login(
|
|
763
|
-
var
|
|
764
|
-
goTo =
|
|
771
|
+
function login(_temp13) {
|
|
772
|
+
var _ref27 = _temp13 === void 0 ? {} : _temp13,
|
|
773
|
+
goTo = _ref27.goTo;
|
|
765
774
|
|
|
766
775
|
return "/login" + handleQuery({
|
|
767
776
|
goTo: goTo ? encodeURIComponent(goTo) : undefined
|
|
768
777
|
});
|
|
769
778
|
}
|
|
770
|
-
function logon(
|
|
771
|
-
var
|
|
772
|
-
goTo =
|
|
779
|
+
function logon(_temp14) {
|
|
780
|
+
var _ref28 = _temp14 === void 0 ? {} : _temp14,
|
|
781
|
+
goTo = _ref28.goTo;
|
|
773
782
|
|
|
774
783
|
return "/logon" + handleQuery({
|
|
775
784
|
goTo: goTo ? encodeURIComponent(goTo) : undefined
|
|
776
785
|
});
|
|
777
786
|
}
|
|
778
|
-
function retrieveUserPassword(
|
|
779
|
-
var
|
|
780
|
-
goTo =
|
|
787
|
+
function retrieveUserPassword(_temp15) {
|
|
788
|
+
var _ref29 = _temp15 === void 0 ? {} : _temp15,
|
|
789
|
+
goTo = _ref29.goTo;
|
|
781
790
|
|
|
782
791
|
return "/retrieve" + handleQuery({
|
|
783
792
|
goTo: goTo ? encodeURIComponent(goTo) : undefined
|
|
784
793
|
});
|
|
785
794
|
}
|
|
786
|
-
function retrievePayPassword(
|
|
787
|
-
var _ref29 = _temp15 === void 0 ? {} : _temp15;
|
|
788
|
-
|
|
789
|
-
_objectDestructuringEmpty(_ref29);
|
|
790
|
-
|
|
791
|
-
return "/retrievePayPassword";
|
|
792
|
-
}
|
|
793
|
-
function wallet(_temp16) {
|
|
795
|
+
function retrievePayPassword(_temp16) {
|
|
794
796
|
var _ref30 = _temp16 === void 0 ? {} : _temp16;
|
|
795
797
|
|
|
796
798
|
_objectDestructuringEmpty(_ref30);
|
|
797
799
|
|
|
798
|
-
return "/
|
|
800
|
+
return "/retrievePayPassword";
|
|
799
801
|
}
|
|
800
|
-
function
|
|
802
|
+
function wallet(_temp17) {
|
|
801
803
|
var _ref31 = _temp17 === void 0 ? {} : _temp17;
|
|
802
804
|
|
|
803
805
|
_objectDestructuringEmpty(_ref31);
|
|
804
806
|
|
|
805
|
-
return "/logged/
|
|
807
|
+
return "/logged/wallet";
|
|
806
808
|
}
|
|
807
|
-
function
|
|
809
|
+
function contract(_temp18) {
|
|
808
810
|
var _ref32 = _temp18 === void 0 ? {} : _temp18;
|
|
809
811
|
|
|
810
812
|
_objectDestructuringEmpty(_ref32);
|
|
811
813
|
|
|
814
|
+
return "/logged/contract";
|
|
815
|
+
}
|
|
816
|
+
function setting(_temp19) {
|
|
817
|
+
var _ref33 = _temp19 === void 0 ? {} : _temp19;
|
|
818
|
+
|
|
819
|
+
_objectDestructuringEmpty(_ref33);
|
|
820
|
+
|
|
812
821
|
return "/logged/setting";
|
|
813
822
|
}
|
|
814
823
|
/************** user End ******************************************************/
|
|
@@ -856,6 +865,7 @@ var LinkTo = {
|
|
|
856
865
|
resourceCreateSuccess: resourceCreateSuccess,
|
|
857
866
|
resourceVersionCreateSuccess: resourceVersionCreateSuccess,
|
|
858
867
|
nodeCreateSuccess: nodeCreateSuccess,
|
|
868
|
+
invitation: invitation,
|
|
859
869
|
exception403: exception403,
|
|
860
870
|
login: login,
|
|
861
871
|
logon: logon,
|
|
@@ -1767,7 +1777,7 @@ function updatePassword(params) {
|
|
|
1767
1777
|
data: params
|
|
1768
1778
|
});
|
|
1769
1779
|
}
|
|
1770
|
-
function uploadHeadImg(params) {
|
|
1780
|
+
function uploadHeadImg(params, config) {
|
|
1771
1781
|
var formData = new FormData();
|
|
1772
1782
|
|
|
1773
1783
|
for (var _i = 0, _Object$entries = Object.entries(params); _i < _Object$entries.length; _i++) {
|
|
@@ -1780,11 +1790,11 @@ function uploadHeadImg(params) {
|
|
|
1780
1790
|
}
|
|
1781
1791
|
}
|
|
1782
1792
|
|
|
1783
|
-
return FUtil.Request({
|
|
1793
|
+
return FUtil.Request(_extends({
|
|
1784
1794
|
method: 'POST',
|
|
1785
1795
|
url: "/v2/users/current/uploadHeadImg",
|
|
1786
|
-
data:
|
|
1787
|
-
});
|
|
1796
|
+
data: formData
|
|
1797
|
+
}, config));
|
|
1788
1798
|
}
|
|
1789
1799
|
function updateDetailInfo(params) {
|
|
1790
1800
|
return FUtil.Request({
|
|
@@ -2258,6 +2268,19 @@ var TestQualification = {
|
|
|
2258
2268
|
getBetaApply2: getBetaApply2
|
|
2259
2269
|
};
|
|
2260
2270
|
|
|
2271
|
+
function transactionsCommon(params) {
|
|
2272
|
+
return FUtil.Request({
|
|
2273
|
+
method: 'GET',
|
|
2274
|
+
url: "/v2/statistics/transactions/common",
|
|
2275
|
+
params: params
|
|
2276
|
+
});
|
|
2277
|
+
}
|
|
2278
|
+
|
|
2279
|
+
var Statistic = {
|
|
2280
|
+
__proto__: null,
|
|
2281
|
+
transactionsCommon: transactionsCommon
|
|
2282
|
+
};
|
|
2283
|
+
|
|
2261
2284
|
var FServiceAPI = {
|
|
2262
2285
|
Node: Node,
|
|
2263
2286
|
Exhibit: Exhibit,
|
|
@@ -2271,7 +2294,8 @@ var FServiceAPI = {
|
|
|
2271
2294
|
Captcha: Captcha,
|
|
2272
2295
|
Event: Event,
|
|
2273
2296
|
Activity: Activity,
|
|
2274
|
-
TestQualification: TestQualification
|
|
2297
|
+
TestQualification: TestQualification,
|
|
2298
|
+
Statistic: Statistic
|
|
2275
2299
|
};
|
|
2276
2300
|
|
|
2277
2301
|
var codeMessage = {
|