@freelog/tools-lib 0.1.189 → 0.1.191
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/activities.d.ts +9 -0
- package/dist/tools-lib.cjs.development.js +45 -15
- 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 +45 -15
- package/dist/tools-lib.esm.js.map +1 -1
- package/dist/utils/linkTo.d.ts +8 -0
- package/package.json +1 -1
- package/src/service-API/activities.ts +342 -314
- package/src/service-API/payment.ts +1 -1
- package/src/utils/linkTo.ts +18 -0
|
@@ -102,4 +102,13 @@ interface StatisticSingleRewardRecordForAllParamsType {
|
|
|
102
102
|
code: string;
|
|
103
103
|
}
|
|
104
104
|
export declare function statisticSingleRewardRecordForAll(params: StatisticSingleRewardRecordForAllParamsType): Promise<any>;
|
|
105
|
+
interface LotteryDrawParamsType {
|
|
106
|
+
capsuleType: 1 | 2 | 3;
|
|
107
|
+
num: 3;
|
|
108
|
+
}
|
|
109
|
+
export declare function lotteryDraw(params: LotteryDrawParamsType): Promise<any>;
|
|
110
|
+
interface LotteryDrawResultParamsType {
|
|
111
|
+
capsuleType: 1 | 2 | 3;
|
|
112
|
+
}
|
|
113
|
+
export declare function lotteryDrawResult(params: LotteryDrawResultParamsType): Promise<any>;
|
|
105
114
|
export {};
|
|
@@ -601,34 +601,46 @@ function globalSearch(_ref49) {
|
|
|
601
601
|
search: search
|
|
602
602
|
});
|
|
603
603
|
}
|
|
604
|
+
function settlementInfo(_ref50) {
|
|
605
|
+
var nodeID = _ref50.nodeID;
|
|
606
|
+
return "/settlementInfo" + handleQuery({
|
|
607
|
+
nodeID: nodeID
|
|
608
|
+
});
|
|
609
|
+
}
|
|
610
|
+
function settlementInfoEditor(_ref51) {
|
|
611
|
+
var nodeID = _ref51.nodeID;
|
|
612
|
+
return "/settlementEditor" + handleQuery({
|
|
613
|
+
nodeID: nodeID
|
|
614
|
+
});
|
|
615
|
+
}
|
|
604
616
|
function login(_temp19) {
|
|
605
|
-
var
|
|
606
|
-
goTo =
|
|
617
|
+
var _ref52 = _temp19 === void 0 ? {} : _temp19,
|
|
618
|
+
goTo = _ref52.goTo;
|
|
607
619
|
return "/login" + handleQuery({
|
|
608
620
|
goTo: goTo ? encodeURIComponent(goTo) : undefined
|
|
609
621
|
});
|
|
610
622
|
}
|
|
611
623
|
function logon(_temp20) {
|
|
612
|
-
var
|
|
613
|
-
goTo =
|
|
614
|
-
params = _objectWithoutPropertiesLoose(
|
|
624
|
+
var _ref53 = _temp20 === void 0 ? {} : _temp20,
|
|
625
|
+
goTo = _ref53.goTo,
|
|
626
|
+
params = _objectWithoutPropertiesLoose(_ref53, _excluded6);
|
|
615
627
|
return "/logon" + handleQuery(_extends({
|
|
616
628
|
goTo: goTo ? encodeURIComponent(goTo) : undefined
|
|
617
629
|
}, params));
|
|
618
630
|
}
|
|
619
631
|
function bind(_temp21) {
|
|
620
|
-
var
|
|
621
|
-
goTo =
|
|
622
|
-
returnUrl =
|
|
623
|
-
params = _objectWithoutPropertiesLoose(
|
|
632
|
+
var _ref54 = _temp21 === void 0 ? {} : _temp21,
|
|
633
|
+
goTo = _ref54.goTo,
|
|
634
|
+
returnUrl = _ref54.returnUrl,
|
|
635
|
+
params = _objectWithoutPropertiesLoose(_ref54, _excluded7);
|
|
624
636
|
return "/bind" + handleQuery(_extends({
|
|
625
637
|
goTo: goTo ? encodeURIComponent(goTo) : undefined,
|
|
626
638
|
returnUrl: returnUrl ? encodeURIComponent(returnUrl) : undefined
|
|
627
639
|
}, params));
|
|
628
640
|
}
|
|
629
641
|
function retrieveUserPassword(_temp22) {
|
|
630
|
-
var
|
|
631
|
-
goTo =
|
|
642
|
+
var _ref55 = _temp22 === void 0 ? {} : _temp22,
|
|
643
|
+
goTo = _ref55.goTo;
|
|
632
644
|
return "/retrieve" + handleQuery({
|
|
633
645
|
goTo: goTo ? encodeURIComponent(goTo) : undefined
|
|
634
646
|
});
|
|
@@ -650,8 +662,8 @@ function reward(_temp26) {
|
|
|
650
662
|
return "/logged/reward";
|
|
651
663
|
}
|
|
652
664
|
function contract(_temp27) {
|
|
653
|
-
var
|
|
654
|
-
params = _extends({}, (_objectDestructuringEmpty(
|
|
665
|
+
var _ref60 = _temp27 === void 0 ? {} : _temp27,
|
|
666
|
+
params = _extends({}, (_objectDestructuringEmpty(_ref60), _ref60));
|
|
655
667
|
return "/logged/contract" + handleQuery(_extends({}, params));
|
|
656
668
|
}
|
|
657
669
|
function setting(_temp28) {
|
|
@@ -734,6 +746,8 @@ var LinkTo = {
|
|
|
734
746
|
nodeFreeze: nodeFreeze,
|
|
735
747
|
resourceFreeze: resourceFreeze,
|
|
736
748
|
globalSearch: globalSearch,
|
|
749
|
+
settlementInfo: settlementInfo,
|
|
750
|
+
settlementInfoEditor: settlementInfoEditor,
|
|
737
751
|
login: login,
|
|
738
752
|
logon: logon,
|
|
739
753
|
bind: bind,
|
|
@@ -2851,6 +2865,20 @@ function statisticSingleRewardRecordForAll(params) {
|
|
|
2851
2865
|
data: params
|
|
2852
2866
|
});
|
|
2853
2867
|
}
|
|
2868
|
+
function lotteryDraw(params) {
|
|
2869
|
+
return FUtil.Request({
|
|
2870
|
+
method: 'POST',
|
|
2871
|
+
url: "/v2/activities/lottery/capsule/draw",
|
|
2872
|
+
data: params
|
|
2873
|
+
});
|
|
2874
|
+
}
|
|
2875
|
+
function lotteryDrawResult(params) {
|
|
2876
|
+
return FUtil.Request({
|
|
2877
|
+
method: 'GET',
|
|
2878
|
+
url: "/v2/activities/lottery/capsule/getInfo",
|
|
2879
|
+
params: params
|
|
2880
|
+
});
|
|
2881
|
+
}
|
|
2854
2882
|
|
|
2855
2883
|
var Activity = {
|
|
2856
2884
|
__proto__: null,
|
|
@@ -2876,7 +2904,9 @@ var Activity = {
|
|
|
2876
2904
|
listRewardRecordInfos: listRewardRecordInfos,
|
|
2877
2905
|
statisticRewardRecords: statisticRewardRecords,
|
|
2878
2906
|
statisticTaskRecords: statisticTaskRecords,
|
|
2879
|
-
statisticSingleRewardRecordForAll: statisticSingleRewardRecordForAll
|
|
2907
|
+
statisticSingleRewardRecordForAll: statisticSingleRewardRecordForAll,
|
|
2908
|
+
lotteryDraw: lotteryDraw,
|
|
2909
|
+
lotteryDrawResult: lotteryDrawResult
|
|
2880
2910
|
};
|
|
2881
2911
|
|
|
2882
2912
|
var _excluded$9 = ["recordId"];
|
|
@@ -3404,7 +3434,7 @@ function withdrawCash(params, config) {
|
|
|
3404
3434
|
function queryWithdrawCashList(params, config) {
|
|
3405
3435
|
return FUtil.Request(_extends({
|
|
3406
3436
|
method: 'GET',
|
|
3407
|
-
url: "/v3/transactions/withdrawCash/
|
|
3437
|
+
url: "/v3/transactions/withdrawCash/records",
|
|
3408
3438
|
params: params
|
|
3409
3439
|
}, config));
|
|
3410
3440
|
}
|