@freelog/tools-lib 0.1.126 → 0.1.129
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/i18n/I18nNext.d.ts +5 -5
- package/dist/service-API/activities.d.ts +40 -0
- package/dist/service-API/contracts.d.ts +8 -0
- package/dist/service-API/index.d.ts +2 -0
- package/dist/service-API/policies.d.ts +3 -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 +467 -709
- 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 +467 -709
- package/dist/tools-lib.esm.js.map +1 -1
- package/dist/utils/linkTo.d.ts +9 -0
- package/package.json +2 -2
- package/src/i18n/I18nNext.ts +29 -23
- package/src/service-API/activities.ts +121 -0
- package/src/service-API/contracts.ts +17 -0
- package/src/service-API/index.ts +2 -0
- package/src/service-API/policies.ts +12 -6
- package/src/service-API/resources.ts +4 -4
- package/src/service-API/testQualifications.ts +14 -1
- package/src/utils/linkTo.ts +24 -0
package/dist/i18n/I18nNext.d.ts
CHANGED
|
@@ -8,13 +8,13 @@ declare class I18nNext {
|
|
|
8
8
|
private _taskQueue;
|
|
9
9
|
private _currentLanguage;
|
|
10
10
|
constructor();
|
|
11
|
-
ready(): Promise<unknown>;
|
|
12
|
-
t(key: string, options?: {
|
|
11
|
+
ready(this: I18nNext): Promise<unknown>;
|
|
12
|
+
t(this: I18nNext, key: string, options?: {
|
|
13
13
|
[key: string]: any;
|
|
14
14
|
}): string;
|
|
15
|
-
changeLanguage(lng: LanguageKeyType): void;
|
|
16
|
-
getAllLanguage(): typeof allLanguage;
|
|
17
|
-
getCurrentLanguage(): LanguageKeyType;
|
|
15
|
+
changeLanguage(this: I18nNext, lng: LanguageKeyType): void;
|
|
16
|
+
getAllLanguage(this: I18nNext): typeof allLanguage;
|
|
17
|
+
getCurrentLanguage(this: I18nNext): LanguageKeyType;
|
|
18
18
|
private _handleData;
|
|
19
19
|
private _fetchData;
|
|
20
20
|
}
|
|
@@ -28,4 +28,44 @@ 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>;
|
|
65
|
+
declare type ListInviteFriendInfosParamsType = {
|
|
66
|
+
userId: number;
|
|
67
|
+
username: string;
|
|
68
|
+
createDate: string;
|
|
69
|
+
}[];
|
|
70
|
+
export declare function listInviteFriendInfos(params: ListInviteFriendInfosParamsType): Promise<any>;
|
|
31
71
|
export {};
|
|
@@ -45,4 +45,12 @@ interface TransitionRecordsParamsType {
|
|
|
45
45
|
isTranslate?: 0 | 1;
|
|
46
46
|
}
|
|
47
47
|
export declare function transitionRecords({ contractId, ...params }: TransitionRecordsParamsType): Promise<any>;
|
|
48
|
+
interface ContractsSignCountParamsType {
|
|
49
|
+
objectIds: string | number;
|
|
50
|
+
objectType: 1 | 2 | 3 | 4 | 5;
|
|
51
|
+
subjectType: 1 | 2 | 3;
|
|
52
|
+
startDate?: string;
|
|
53
|
+
endDate?: string;
|
|
54
|
+
}
|
|
55
|
+
export declare function contractsSignCount(params: ContractsSignCountParamsType): Promise<any>;
|
|
48
56
|
export {};
|
|
@@ -13,6 +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 Policy from './policies';
|
|
16
17
|
import * as recombination from './recombinations';
|
|
17
18
|
declare const FServiceAPI: {
|
|
18
19
|
Node: typeof Node;
|
|
@@ -30,6 +31,7 @@ declare const FServiceAPI: {
|
|
|
30
31
|
TestQualification: typeof TestQualification;
|
|
31
32
|
Statistic: typeof Statistic;
|
|
32
33
|
I18n: typeof I18n;
|
|
34
|
+
Policy: typeof Policy;
|
|
33
35
|
recombination: typeof recombination;
|
|
34
36
|
};
|
|
35
37
|
export default FServiceAPI;
|
|
@@ -12,4 +12,7 @@ interface PoliciesListParamsType {
|
|
|
12
12
|
projection?: string;
|
|
13
13
|
}
|
|
14
14
|
export declare function policiesList(params: PoliciesListParamsType): Promise<any>;
|
|
15
|
+
interface PolicyTemplatesParamsType {
|
|
16
|
+
}
|
|
17
|
+
export declare function policyTemplates(params?: PolicyTemplatesParamsType): Promise<any>;
|
|
15
18
|
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 {};
|