@freelog/tools-lib 0.1.118 → 0.1.121

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.
@@ -58,7 +58,7 @@ interface NodeCreatorParamsType {
58
58
  export declare function nodeCreator({}?: NodeCreatorParamsType): TReturnType;
59
59
  interface NodeManagementParamsType {
60
60
  nodeID: number;
61
- showPage?: 'exhibit' | 'theme';
61
+ showPage?: 'exhibit' | 'theme' | 'mappingRule';
62
62
  }
63
63
  export declare function nodeManagement({ nodeID, showPage, ...params }: NodeManagementParamsType): TReturnType;
64
64
  interface ExhibitManagementParamsType {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@freelog/tools-lib",
3
- "version": "0.1.118",
3
+ "version": "0.1.121",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -1,95 +1,95 @@
1
- import FUtil from '../utils';
2
-
3
- // 列出活动
4
- interface List4ClientParamsType {
5
- skip?: number;
6
- limit?: number;
7
- }
8
-
9
- export function list4Client(params: List4ClientParamsType) {
10
- return FUtil.Request({
11
- method: 'GET',
12
- url: `/v2/activities/list4Client`,
13
- params: params,
14
- });
15
- }
16
-
17
- // 查询活动
18
- interface Find4ClientParamsType {
19
- _id: string;
20
- }
21
-
22
- export function find4Client(params: Find4ClientParamsType) {
23
- return FUtil.Request({
24
- method: 'GET',
25
- url: `/v2/activities/find4Client`,
26
- params: params,
27
- });
28
- }
29
-
30
- // 列出广告
31
- interface AdsListParamsType {
32
- skip?: number;
33
- limit?: number;
34
- place: 1 | 2 | 3 | 4; // 投放位置 1:顶部公告栏 2:右侧浮窗 3:概览页 4:发现页
35
-
36
- }
37
-
38
- export function adsList(params: AdsListParamsType) {
39
- return FUtil.Request({
40
- method: 'GET',
41
- url: `/v2/activities/ads/list4Client`,
42
- params: params,
43
- });
44
- }
45
-
46
- // 查询广告
47
- interface AdsDetailsParamsType {
48
- skip?: number;
49
- limit?: number;
50
- place: 1 | 2 | 3 | 4; // 投放位置 1:顶部公告栏 2:右侧浮窗 3:概览页 4:发现页
51
- }
52
-
53
- export function adsDetails(params: AdsDetailsParamsType) {
54
- return FUtil.Request({
55
- method: 'GET',
56
- url: `/v2/activities/ads/find4Client`,
57
- params: params,
58
- });
59
- }
60
-
61
- // 获取基本任务详情
62
- interface GetBaseTaskInfoParamsType {
63
- }
64
-
65
- export function getBaseTaskInfo(params: GetBaseTaskInfoParamsType = {}) {
66
- return FUtil.Request({
67
- method: 'GET',
68
- url: `/v2/activities/facade/getBaseTaskInfo`,
69
- params: params,
70
- });
71
- }
72
-
73
- // 获取资源任务详情
74
- interface GetResourceTaskInfoParamsType {
75
- }
76
-
77
- export function getResourceTaskInfo(params: GetResourceTaskInfoParamsType = {}) {
78
- return FUtil.Request({
79
- method: 'GET',
80
- url: `/v2/activities/facade/getResourceTaskInfo`,
81
- params: params,
82
- });
83
- }
84
-
85
- // 获取节点任务详情
86
- interface GetNodeTaskInfoParamsType {
87
- }
88
-
89
- export function getNodeTaskInfo(params: GetNodeTaskInfoParamsType = {}) {
90
- return FUtil.Request({
91
- method: 'GET',
92
- url: `/v2/activities/facade/getNodeTaskInfo`,
93
- params: params,
94
- });
95
- }
1
+ import FUtil from '../utils';
2
+
3
+ // 列出活动
4
+ interface List4ClientParamsType {
5
+ skip?: number;
6
+ limit?: number;
7
+ }
8
+
9
+ export function list4Client(params: List4ClientParamsType) {
10
+ return FUtil.Request({
11
+ method: 'GET',
12
+ url: `/v2/activities/list4Client`,
13
+ params: params,
14
+ });
15
+ }
16
+
17
+ // 查询活动
18
+ interface Find4ClientParamsType {
19
+ _id: string;
20
+ }
21
+
22
+ export function find4Client(params: Find4ClientParamsType) {
23
+ return FUtil.Request({
24
+ method: 'GET',
25
+ url: `/v2/activities/find4Client`,
26
+ params: params,
27
+ });
28
+ }
29
+
30
+ // 列出广告
31
+ interface AdsListParamsType {
32
+ skip?: number;
33
+ limit?: number;
34
+ place: 1 | 2 | 3 | 4; // 投放位置 1:顶部公告栏 2:右侧浮窗 3:概览页 4:发现页
35
+
36
+ }
37
+
38
+ export function adsList(params: AdsListParamsType) {
39
+ return FUtil.Request({
40
+ method: 'GET',
41
+ url: `/v2/activities/ads/list4Client`,
42
+ params: params,
43
+ });
44
+ }
45
+
46
+ // 查询广告
47
+ interface AdsDetailsParamsType {
48
+ skip?: number;
49
+ limit?: number;
50
+ place: 1 | 2 | 3 | 4; // 投放位置 1:顶部公告栏 2:右侧浮窗 3:概览页 4:发现页
51
+ }
52
+
53
+ export function adsDetails(params: AdsDetailsParamsType) {
54
+ return FUtil.Request({
55
+ method: 'GET',
56
+ url: `/v2/activities/ads/find4Client`,
57
+ params: params,
58
+ });
59
+ }
60
+
61
+ // 获取基本任务详情
62
+ interface GetBaseTaskInfoParamsType {
63
+ }
64
+
65
+ export function getBaseTaskInfo(params: GetBaseTaskInfoParamsType = {}) {
66
+ return FUtil.Request({
67
+ method: 'GET',
68
+ url: `/v2/activities/facade/getBaseTaskInfo`,
69
+ params: params,
70
+ });
71
+ }
72
+
73
+ // 获取资源任务详情
74
+ interface GetResourceTaskInfoParamsType {
75
+ }
76
+
77
+ export function getResourceTaskInfo(params: GetResourceTaskInfoParamsType = {}) {
78
+ return FUtil.Request({
79
+ method: 'GET',
80
+ url: `/v2/activities/facade/getResourceTaskInfo`,
81
+ params: params,
82
+ });
83
+ }
84
+
85
+ // 获取节点任务详情
86
+ interface GetNodeTaskInfoParamsType {
87
+ }
88
+
89
+ export function getNodeTaskInfo(params: GetNodeTaskInfoParamsType = {}) {
90
+ return FUtil.Request({
91
+ method: 'GET',
92
+ url: `/v2/activities/facade/getNodeTaskInfo`,
93
+ params: params,
94
+ });
95
+ }
@@ -1,56 +1,96 @@
1
- import FUtil from '../utils';
2
-
3
- // 使用邀请码激活内测资格
4
- interface BetaCodesActivateParamsType {
5
- code: string;
6
- }
7
-
8
- export function betaCodesActivate({...params}: BetaCodesActivateParamsType) {
9
- return FUtil.Request({
10
- method: 'POST',
11
- url: `/v2/testQualifications/beta/codes/activate`,
12
- data: params,
13
- });
14
- }
15
-
16
- // 用户申请内测资格
17
- interface BetaApplyParamsType {
18
- // province: string;
19
- // city: string;
20
- areaCode: string;
21
- occupation: string;
22
- description: string;
23
- }
24
-
25
- export function betaApply({...params}: BetaApplyParamsType) {
26
- return FUtil.Request({
27
- method: 'POST',
28
- url: `/v2/testQualifications/beta/apply`,
29
- data: params,
30
- });
31
- }
32
-
33
- // 查看内测资格申请详情
34
- interface GetBetaApply1ParamsType {
35
-
36
- }
37
-
38
- export function getBetaApply1({...params}: GetBetaApply1ParamsType = {}) {
39
- return FUtil.Request({
40
- method: 'GET',
41
- url: `/v2/testQualifications/beta/apply/current`,
42
- params: params,
43
- });
44
- }
45
-
46
- interface GetBetaApply2ParamsType {
47
- recordId: string;
48
- }
49
-
50
- export function getBetaApply2({recordId, ...params}: GetBetaApply2ParamsType) {
51
- return FUtil.Request({
52
- method: 'GET',
53
- url: `/v2/testQualifications/beta/apply/${recordId}`,
54
- data: params,
55
- });
56
- }
1
+ import FUtil from '../utils';
2
+
3
+ // 查看邀请码详情
4
+ interface CodeDetails1ParamsType {
5
+ code: string;
6
+ }
7
+
8
+ interface CodeDetails2ParamsType {
9
+ }
10
+
11
+ export function codeDetails1({code}: CodeDetails1ParamsType) {
12
+ return FUtil.Request({
13
+ method: 'GET',
14
+ url: `/v2/testQualifications/beta/codes/${code}`,
15
+ // data: params,
16
+ });
17
+ }
18
+
19
+ export function codeDetails2({}: CodeDetails2ParamsType) {
20
+ return FUtil.Request({
21
+ method: 'GET',
22
+ url: `/v2/testQualifications/beta/codes/userActivateCode`,
23
+ // data: params,
24
+ });
25
+ }
26
+
27
+ // 使用邀请码激活内测资格
28
+ interface BetaCodesActivateParamsType {
29
+ code: string;
30
+ }
31
+
32
+ export function betaCodesActivate({...params}: BetaCodesActivateParamsType) {
33
+ return FUtil.Request({
34
+ method: 'POST',
35
+ url: `/v2/testQualifications/beta/codes/activate`,
36
+ data: params,
37
+ });
38
+ }
39
+
40
+ // 分页查看邀请码使用记录
41
+ interface UsedRecordsParamsType {
42
+ skip?: number;
43
+ limit?: number;
44
+ code?: string;
45
+ keywords?: string;
46
+ }
47
+
48
+ export function usedRecords({...params}: UsedRecordsParamsType) {
49
+ return FUtil.Request({
50
+ method: 'GET',
51
+ url: `/v2/testQualifications/beta/codes/usedRecords`,
52
+ params: params,
53
+ });
54
+ }
55
+
56
+ // 用户申请内测资格
57
+ interface BetaApplyParamsType {
58
+ // province: string;
59
+ // city: string;
60
+ areaCode: string;
61
+ occupation: string;
62
+ description: string;
63
+ }
64
+
65
+ export function betaApply({...params}: BetaApplyParamsType) {
66
+ return FUtil.Request({
67
+ method: 'POST',
68
+ url: `/v2/testQualifications/beta/apply`,
69
+ data: params,
70
+ });
71
+ }
72
+
73
+ // 查看内测资格申请详情
74
+ interface GetBetaApply1ParamsType {
75
+
76
+ }
77
+
78
+ export function getBetaApply1({...params}: GetBetaApply1ParamsType = {}) {
79
+ return FUtil.Request({
80
+ method: 'GET',
81
+ url: `/v2/testQualifications/beta/apply/current`,
82
+ params: params,
83
+ });
84
+ }
85
+
86
+ interface GetBetaApply2ParamsType {
87
+ recordId: string;
88
+ }
89
+
90
+ export function getBetaApply2({recordId, ...params}: GetBetaApply2ParamsType) {
91
+ return FUtil.Request({
92
+ method: 'GET',
93
+ url: `/v2/testQualifications/beta/apply/${recordId}`,
94
+ data: params,
95
+ });
96
+ }
@@ -143,7 +143,7 @@ export function nodeCreator({}: NodeCreatorParamsType = {}): TReturnType {
143
143
  // 节点管理
144
144
  interface NodeManagementParamsType {
145
145
  nodeID: number;
146
- showPage?: 'exhibit' | 'theme';
146
+ showPage?: 'exhibit' | 'theme' | 'mappingRule';
147
147
  }
148
148
 
149
149
  export function nodeManagement({nodeID, showPage = 'exhibit', ...params}: NodeManagementParamsType): TReturnType {