@freelog/tools-lib 0.1.95 → 0.1.98
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/testQualifications.d.ts +8 -1
- package/dist/tools-lib.cjs.development.js +26 -3
- 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 +26 -3
- package/dist/tools-lib.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/service-API/index.ts +31 -31
- package/src/service-API/testQualifications.ts +28 -3
package/src/service-API/index.ts
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import * as Node from './nodes';
|
|
2
|
-
import * as Exhibit from './presentables';
|
|
3
|
-
import * as Storage from './storages';
|
|
4
|
-
import * as Collection from './collections';
|
|
5
|
-
import * as Resource from './resources';
|
|
6
|
-
import * as User from './user';
|
|
7
|
-
import * as InformalNode from './informalNodes';
|
|
8
|
-
import * as Contract from './contracts';
|
|
9
|
-
import * as Transaction from './transactions';
|
|
10
|
-
import * as Captcha from './captcha';
|
|
11
|
-
import * as Event from './events';
|
|
12
|
-
import * as Activity from './activities';
|
|
13
|
-
import * as TestQualification from './testQualifications';
|
|
14
|
-
|
|
15
|
-
const FServiceAPI = {
|
|
16
|
-
Node,
|
|
17
|
-
Exhibit,
|
|
18
|
-
Storage,
|
|
19
|
-
Collection,
|
|
20
|
-
Resource,
|
|
21
|
-
User,
|
|
22
|
-
InformalNode,
|
|
23
|
-
Contract,
|
|
24
|
-
Transaction,
|
|
25
|
-
Captcha,
|
|
26
|
-
Event,
|
|
27
|
-
Activity,
|
|
28
|
-
TestQualification,
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
export default FServiceAPI;
|
|
1
|
+
import * as Node from './nodes';
|
|
2
|
+
import * as Exhibit from './presentables';
|
|
3
|
+
import * as Storage from './storages';
|
|
4
|
+
import * as Collection from './collections';
|
|
5
|
+
import * as Resource from './resources';
|
|
6
|
+
import * as User from './user';
|
|
7
|
+
import * as InformalNode from './informalNodes';
|
|
8
|
+
import * as Contract from './contracts';
|
|
9
|
+
import * as Transaction from './transactions';
|
|
10
|
+
import * as Captcha from './captcha';
|
|
11
|
+
import * as Event from './events';
|
|
12
|
+
import * as Activity from './activities';
|
|
13
|
+
import * as TestQualification from './testQualifications';
|
|
14
|
+
|
|
15
|
+
const FServiceAPI = {
|
|
16
|
+
Node,
|
|
17
|
+
Exhibit,
|
|
18
|
+
Storage,
|
|
19
|
+
Collection,
|
|
20
|
+
Resource,
|
|
21
|
+
User,
|
|
22
|
+
InformalNode,
|
|
23
|
+
Contract,
|
|
24
|
+
Transaction,
|
|
25
|
+
Captcha,
|
|
26
|
+
Event,
|
|
27
|
+
Activity,
|
|
28
|
+
TestQualification,
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export default FServiceAPI;
|
|
@@ -2,13 +2,13 @@ import FUtil from '../utils';
|
|
|
2
2
|
|
|
3
3
|
// 使用邀请码激活内测资格
|
|
4
4
|
interface BetaCodesActivateParamsType {
|
|
5
|
-
|
|
5
|
+
code: string;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
export function betaCodesActivate({...params}: BetaCodesActivateParamsType) {
|
|
9
9
|
return FUtil.Request({
|
|
10
10
|
method: 'POST',
|
|
11
|
-
url:
|
|
11
|
+
url: `/v2/testQualifications/beta/codes/activate`,
|
|
12
12
|
data: params,
|
|
13
13
|
});
|
|
14
14
|
}
|
|
@@ -25,7 +25,32 @@ interface BetaApplyParamsType {
|
|
|
25
25
|
export function betaApply({...params}: BetaApplyParamsType) {
|
|
26
26
|
return FUtil.Request({
|
|
27
27
|
method: 'POST',
|
|
28
|
-
url:
|
|
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}`,
|
|
29
54
|
data: params,
|
|
30
55
|
});
|
|
31
56
|
}
|