@freelog/tools-lib 0.1.97 → 0.1.100

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@freelog/tools-lib",
3
- "version": "0.1.97",
3
+ "version": "0.1.100",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -1,31 +1,33 @@
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
+ import * as Statistic from './statistics';
15
+
16
+ const FServiceAPI = {
17
+ Node,
18
+ Exhibit,
19
+ Storage,
20
+ Collection,
21
+ Resource,
22
+ User,
23
+ InformalNode,
24
+ Contract,
25
+ Transaction,
26
+ Captcha,
27
+ Event,
28
+ Activity,
29
+ TestQualification,
30
+ Statistic,
31
+ };
32
+
33
+ export default FServiceAPI;
@@ -0,0 +1,20 @@
1
+ import FUtil from '../utils';
2
+ // import {AxiosRequestConfig, Canceler} from 'axios';
3
+
4
+ // 查询通用交易统计信息
5
+ export interface TransactionsCommonParamsType {
6
+ ownerId: string | number;
7
+ ownerType?: 1 | 2;
8
+ objectId?: string;
9
+ objectType?: 2 | 3;
10
+ beginDate?: string;
11
+ endDate?: string;
12
+ }
13
+
14
+ export function transactionsCommon(params: TransactionsCommonParamsType) {
15
+ return FUtil.Request({
16
+ method: 'GET',
17
+ url: `/v2/statistics/transactions/common`,
18
+ params: params,
19
+ });
20
+ }
@@ -2,7 +2,7 @@ import FUtil from '../utils';
2
2
 
3
3
  // 使用邀请码激活内测资格
4
4
  interface BetaCodesActivateParamsType {
5
- codes: string;
5
+ code: string;
6
6
  }
7
7
 
8
8
  export function betaCodesActivate({...params}: BetaCodesActivateParamsType) {