@freelog/tools-lib 0.1.127 → 0.1.128
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 +34 -0
- package/dist/service-API/resources.d.ts +1 -4
- package/dist/service-API/testQualifications.d.ts +4 -0
- package/dist/tools-lib.cjs.development.js +120 -8
- 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 +120 -8
- package/dist/tools-lib.esm.js.map +1 -1
- package/dist/utils/linkTo.d.ts +9 -0
- package/package.json +1 -1
- package/src/i18n/I18nNext.ts +2 -0
- package/src/service-API/activities.ts +106 -0
- package/src/service-API/resources.ts +532 -532
- package/src/service-API/testQualifications.ts +14 -1
- package/src/utils/linkTo.ts +399 -375
- package/src/utils/tools.ts +85 -85
|
@@ -28,4 +28,38 @@ export declare function getResourceTaskInfo(params?: GetResourceTaskInfoParamsTy
|
|
|
28
28
|
interface GetNodeTaskInfoParamsType {
|
|
29
29
|
}
|
|
30
30
|
export declare function getNodeTaskInfo(params?: GetNodeTaskInfoParamsType): Promise<any>;
|
|
31
|
+
interface GetRewardRecordInfoParamsType {
|
|
32
|
+
rewardConfigCode: string;
|
|
33
|
+
}
|
|
34
|
+
export declare function getRewardRecordInfo(params: GetRewardRecordInfoParamsType): Promise<any>;
|
|
35
|
+
interface PushMessageTaskParamsType {
|
|
36
|
+
taskConfigCode: string;
|
|
37
|
+
}
|
|
38
|
+
export declare function pushMessageTask(params: PushMessageTaskParamsType): Promise<any>;
|
|
39
|
+
interface GetCoinAccountParamsType {
|
|
40
|
+
type: 1;
|
|
41
|
+
}
|
|
42
|
+
export declare function getCoinAccount(params: GetCoinAccountParamsType): Promise<any>;
|
|
43
|
+
interface WithdrawCoinAccountParamsType {
|
|
44
|
+
reUserName: string;
|
|
45
|
+
amount: number;
|
|
46
|
+
}
|
|
47
|
+
export declare function withdrawCoinAccount(params: WithdrawCoinAccountParamsType): Promise<any>;
|
|
48
|
+
interface GetCoinAccountRecordsParamsType {
|
|
49
|
+
skip?: number;
|
|
50
|
+
limit?: number;
|
|
51
|
+
coinAccountType: 1;
|
|
52
|
+
}
|
|
53
|
+
export declare function getCoinAccountRecords(params: GetCoinAccountRecordsParamsType): Promise<any>;
|
|
54
|
+
interface GetWechatOfficialAccountInfoParamsType {
|
|
55
|
+
}
|
|
56
|
+
export declare function getWechatOfficialAccountInfo(params?: GetWechatOfficialAccountInfoParamsType): Promise<any>;
|
|
57
|
+
interface LotteryListParamsType {
|
|
58
|
+
}
|
|
59
|
+
export declare function lotteryList(params?: LotteryListParamsType): Promise<any>;
|
|
60
|
+
interface LotteryShowParamsType {
|
|
61
|
+
startDate: string;
|
|
62
|
+
limitDate: string;
|
|
63
|
+
}
|
|
64
|
+
export declare function lotteryShow(params: LotteryShowParamsType): Promise<any>;
|
|
31
65
|
export {};
|
|
@@ -70,10 +70,7 @@ interface ListParamsType {
|
|
|
70
70
|
tags?: string;
|
|
71
71
|
sort?: string;
|
|
72
72
|
}
|
|
73
|
-
|
|
74
|
-
data: IResourceInfo[];
|
|
75
|
-
}
|
|
76
|
-
export declare function list(params: ListParamsType): Promise<ListReturnType>;
|
|
73
|
+
export declare function list(params: ListParamsType): Promise<any>;
|
|
77
74
|
interface InfoParamsType {
|
|
78
75
|
resourceIdOrName: string;
|
|
79
76
|
isLoadPolicyInfo?: 0 | 1;
|
|
@@ -29,4 +29,8 @@ interface GetBetaApply2ParamsType {
|
|
|
29
29
|
recordId: string;
|
|
30
30
|
}
|
|
31
31
|
export declare function getBetaApply2({ recordId, ...params }: GetBetaApply2ParamsType): Promise<any>;
|
|
32
|
+
interface InviteesParamsType {
|
|
33
|
+
userId: number;
|
|
34
|
+
}
|
|
35
|
+
export declare function invitees({ ...params }: InviteesParamsType): Promise<any>;
|
|
32
36
|
export {};
|
|
@@ -1248,20 +1248,41 @@ function wallet(_temp18) {
|
|
|
1248
1248
|
|
|
1249
1249
|
return "/logged/wallet";
|
|
1250
1250
|
}
|
|
1251
|
-
function
|
|
1251
|
+
function reward(_temp19) {
|
|
1252
1252
|
var _ref35 = _temp19 === void 0 ? {} : _temp19;
|
|
1253
1253
|
|
|
1254
1254
|
_objectDestructuringEmpty(_ref35);
|
|
1255
1255
|
|
|
1256
|
-
return "/logged/
|
|
1256
|
+
return "/logged/reward";
|
|
1257
1257
|
}
|
|
1258
|
-
function
|
|
1258
|
+
function contract(_temp20) {
|
|
1259
1259
|
var _ref36 = _temp20 === void 0 ? {} : _temp20;
|
|
1260
1260
|
|
|
1261
1261
|
_objectDestructuringEmpty(_ref36);
|
|
1262
1262
|
|
|
1263
|
+
return "/logged/contract";
|
|
1264
|
+
}
|
|
1265
|
+
function setting(_temp21) {
|
|
1266
|
+
var _ref37 = _temp21 === void 0 ? {} : _temp21;
|
|
1267
|
+
|
|
1268
|
+
_objectDestructuringEmpty(_ref37);
|
|
1269
|
+
|
|
1263
1270
|
return "/logged/setting";
|
|
1264
1271
|
}
|
|
1272
|
+
function binding(_temp22) {
|
|
1273
|
+
var _ref38 = _temp22 === void 0 ? {} : _temp22;
|
|
1274
|
+
|
|
1275
|
+
_objectDestructuringEmpty(_ref38);
|
|
1276
|
+
|
|
1277
|
+
return "/logged/binding";
|
|
1278
|
+
}
|
|
1279
|
+
function resultBindingSuccess(_temp23) {
|
|
1280
|
+
var _ref39 = _temp23 === void 0 ? {} : _temp23;
|
|
1281
|
+
|
|
1282
|
+
_objectDestructuringEmpty(_ref39);
|
|
1283
|
+
|
|
1284
|
+
return "/result/binding";
|
|
1285
|
+
}
|
|
1265
1286
|
/************** user End ******************************************************/
|
|
1266
1287
|
|
|
1267
1288
|
function handleQuery(query) {
|
|
@@ -1317,8 +1338,11 @@ var LinkTo = {
|
|
|
1317
1338
|
retrievePayPassword: retrievePayPassword,
|
|
1318
1339
|
userFreeze: userFreeze,
|
|
1319
1340
|
wallet: wallet,
|
|
1341
|
+
reward: reward,
|
|
1320
1342
|
contract: contract,
|
|
1321
|
-
setting: setting
|
|
1343
|
+
setting: setting,
|
|
1344
|
+
binding: binding,
|
|
1345
|
+
resultBindingSuccess: resultBindingSuccess
|
|
1322
1346
|
};
|
|
1323
1347
|
|
|
1324
1348
|
// export const apiHost = `${window.location.protocol}//qi.${(window.location.host.match(/(?<=\.).*/) || [''])[0]}`;
|
|
@@ -1921,7 +1945,10 @@ function update(params) {
|
|
|
1921
1945
|
url: "/v2/resources/" + params.resourceId,
|
|
1922
1946
|
data: params
|
|
1923
1947
|
});
|
|
1924
|
-
}
|
|
1948
|
+
} // interface ListReturnType extends CommonReturn {
|
|
1949
|
+
// data: IResourceInfo[];
|
|
1950
|
+
// }
|
|
1951
|
+
|
|
1925
1952
|
function list(params) {
|
|
1926
1953
|
return FUtil.Request({
|
|
1927
1954
|
method: 'GET',
|
|
@@ -2771,6 +2798,70 @@ function getNodeTaskInfo(params) {
|
|
|
2771
2798
|
params: params
|
|
2772
2799
|
});
|
|
2773
2800
|
}
|
|
2801
|
+
function getRewardRecordInfo(params) {
|
|
2802
|
+
return FUtil.Request({
|
|
2803
|
+
method: 'GET',
|
|
2804
|
+
url: "/v2/activities/facade/getRewardRecordInfo",
|
|
2805
|
+
params: params
|
|
2806
|
+
});
|
|
2807
|
+
}
|
|
2808
|
+
function pushMessageTask(params) {
|
|
2809
|
+
return FUtil.Request({
|
|
2810
|
+
method: 'POST',
|
|
2811
|
+
url: "/v2/activities/facade/pushMessage4Task",
|
|
2812
|
+
data: params
|
|
2813
|
+
});
|
|
2814
|
+
}
|
|
2815
|
+
function getCoinAccount(params) {
|
|
2816
|
+
return FUtil.Request({
|
|
2817
|
+
method: 'GET',
|
|
2818
|
+
url: "/v2/activities/coin/account/find4Client",
|
|
2819
|
+
params: params
|
|
2820
|
+
});
|
|
2821
|
+
}
|
|
2822
|
+
function withdrawCoinAccount(params) {
|
|
2823
|
+
return FUtil.Request({
|
|
2824
|
+
method: 'POST',
|
|
2825
|
+
url: "/v2/activities/coin/account/cash4Client",
|
|
2826
|
+
data: params
|
|
2827
|
+
});
|
|
2828
|
+
}
|
|
2829
|
+
function getCoinAccountRecords(params) {
|
|
2830
|
+
return FUtil.Request({
|
|
2831
|
+
method: 'GET',
|
|
2832
|
+
url: "/v2/activities/coin/record/list4Client",
|
|
2833
|
+
params: params
|
|
2834
|
+
});
|
|
2835
|
+
}
|
|
2836
|
+
function getWechatOfficialAccountInfo(params) {
|
|
2837
|
+
if (params === void 0) {
|
|
2838
|
+
params = {};
|
|
2839
|
+
}
|
|
2840
|
+
|
|
2841
|
+
return FUtil.Request({
|
|
2842
|
+
method: 'GET',
|
|
2843
|
+
url: "/v2/extensions/wechat/getRelationship4Client",
|
|
2844
|
+
params: params
|
|
2845
|
+
});
|
|
2846
|
+
}
|
|
2847
|
+
function lotteryList(params) {
|
|
2848
|
+
if (params === void 0) {
|
|
2849
|
+
params = {};
|
|
2850
|
+
}
|
|
2851
|
+
|
|
2852
|
+
return FUtil.Request({
|
|
2853
|
+
method: 'GET',
|
|
2854
|
+
url: "/v2/activities/lottery/resource/list",
|
|
2855
|
+
params: params
|
|
2856
|
+
});
|
|
2857
|
+
}
|
|
2858
|
+
function lotteryShow(params) {
|
|
2859
|
+
return FUtil.Request({
|
|
2860
|
+
method: 'GET',
|
|
2861
|
+
url: "/v2/activities/lottery/resource/show",
|
|
2862
|
+
params: params
|
|
2863
|
+
});
|
|
2864
|
+
}
|
|
2774
2865
|
|
|
2775
2866
|
var Activity = {
|
|
2776
2867
|
__proto__: null,
|
|
@@ -2780,7 +2871,15 @@ var Activity = {
|
|
|
2780
2871
|
adsDetails: adsDetails,
|
|
2781
2872
|
getBaseTaskInfo: getBaseTaskInfo,
|
|
2782
2873
|
getResourceTaskInfo: getResourceTaskInfo,
|
|
2783
|
-
getNodeTaskInfo: getNodeTaskInfo
|
|
2874
|
+
getNodeTaskInfo: getNodeTaskInfo,
|
|
2875
|
+
getRewardRecordInfo: getRewardRecordInfo,
|
|
2876
|
+
pushMessageTask: pushMessageTask,
|
|
2877
|
+
getCoinAccount: getCoinAccount,
|
|
2878
|
+
withdrawCoinAccount: withdrawCoinAccount,
|
|
2879
|
+
getCoinAccountRecords: getCoinAccountRecords,
|
|
2880
|
+
getWechatOfficialAccountInfo: getWechatOfficialAccountInfo,
|
|
2881
|
+
lotteryList: lotteryList,
|
|
2882
|
+
lotteryShow: lotteryShow
|
|
2784
2883
|
};
|
|
2785
2884
|
|
|
2786
2885
|
var _excluded$9 = ["recordId"];
|
|
@@ -2843,7 +2942,16 @@ function getBetaApply2(_ref7) {
|
|
|
2843
2942
|
return FUtil.Request({
|
|
2844
2943
|
method: 'GET',
|
|
2845
2944
|
url: "/v2/testQualifications/beta/apply/" + recordId,
|
|
2846
|
-
|
|
2945
|
+
params: params
|
|
2946
|
+
});
|
|
2947
|
+
}
|
|
2948
|
+
function invitees(_ref8) {
|
|
2949
|
+
var params = _extends({}, _ref8);
|
|
2950
|
+
|
|
2951
|
+
return FUtil.Request({
|
|
2952
|
+
method: 'GET',
|
|
2953
|
+
url: "/v2/testQualifications/beta/codes/invitees",
|
|
2954
|
+
params: params
|
|
2847
2955
|
});
|
|
2848
2956
|
}
|
|
2849
2957
|
|
|
@@ -2855,7 +2963,8 @@ var TestQualification = {
|
|
|
2855
2963
|
usedRecords: usedRecords,
|
|
2856
2964
|
betaApply: betaApply,
|
|
2857
2965
|
getBetaApply1: getBetaApply1,
|
|
2858
|
-
getBetaApply2: getBetaApply2
|
|
2966
|
+
getBetaApply2: getBetaApply2,
|
|
2967
|
+
invitees: invitees
|
|
2859
2968
|
};
|
|
2860
2969
|
|
|
2861
2970
|
function transactionsCommon(params) {
|
|
@@ -3468,6 +3577,9 @@ var I18nNext = /*#__PURE__*/function () {
|
|
|
3468
3577
|
});
|
|
3469
3578
|
|
|
3470
3579
|
case 12:
|
|
3580
|
+
this._loadingData = 'End';
|
|
3581
|
+
|
|
3582
|
+
case 13:
|
|
3471
3583
|
case "end":
|
|
3472
3584
|
return _context3.stop();
|
|
3473
3585
|
}
|