@freelog/tools-lib 0.1.98 → 0.1.101

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.
@@ -11,6 +11,7 @@ import * as Captcha from './captcha';
11
11
  import * as Event from './events';
12
12
  import * as Activity from './activities';
13
13
  import * as TestQualification from './testQualifications';
14
+ import * as Statistic from './statistics';
14
15
  declare const FServiceAPI: {
15
16
  Node: typeof Node;
16
17
  Exhibit: typeof Exhibit;
@@ -25,5 +26,6 @@ declare const FServiceAPI: {
25
26
  Event: typeof Event;
26
27
  Activity: typeof Activity;
27
28
  TestQualification: typeof TestQualification;
29
+ Statistic: typeof Statistic;
28
30
  };
29
31
  export default FServiceAPI;
@@ -0,0 +1,9 @@
1
+ export interface TransactionsCommonParamsType {
2
+ ownerId: string | number;
3
+ ownerType?: 1 | 2;
4
+ objectId?: string;
5
+ objectType?: 2 | 3;
6
+ beginDate?: string;
7
+ endDate?: string;
8
+ }
9
+ export declare function transactionsCommon(params: TransactionsCommonParamsType): Promise<any>;
@@ -1,3 +1,4 @@
1
+ import { AxiosRequestConfig } from "axios";
1
2
  interface LoginParamsType {
2
3
  loginName: string;
3
4
  password: string;
@@ -39,7 +40,7 @@ export declare function updatePassword(params: UpdatePasswordParamsType): Promis
39
40
  interface UploadHeadImgParamsType {
40
41
  file: File;
41
42
  }
42
- export declare function uploadHeadImg(params: UploadHeadImgParamsType): Promise<any>;
43
+ export declare function uploadHeadImg(params: UploadHeadImgParamsType, config?: AxiosRequestConfig): Promise<any>;
43
44
  interface UpdateDetailInfoParamsType {
44
45
  areaCode?: string;
45
46
  occupation?: string;
@@ -1767,7 +1767,7 @@ function updatePassword(params) {
1767
1767
  data: params
1768
1768
  });
1769
1769
  }
1770
- function uploadHeadImg(params) {
1770
+ function uploadHeadImg(params, config) {
1771
1771
  var formData = new FormData();
1772
1772
 
1773
1773
  for (var _i = 0, _Object$entries = Object.entries(params); _i < _Object$entries.length; _i++) {
@@ -1780,11 +1780,11 @@ function uploadHeadImg(params) {
1780
1780
  }
1781
1781
  }
1782
1782
 
1783
- return FUtil.Request({
1783
+ return FUtil.Request(_extends({
1784
1784
  method: 'POST',
1785
1785
  url: "/v2/users/current/uploadHeadImg",
1786
- data: params
1787
- });
1786
+ data: formData
1787
+ }, config));
1788
1788
  }
1789
1789
  function updateDetailInfo(params) {
1790
1790
  return FUtil.Request({
@@ -2258,6 +2258,19 @@ var TestQualification = {
2258
2258
  getBetaApply2: getBetaApply2
2259
2259
  };
2260
2260
 
2261
+ function transactionsCommon(params) {
2262
+ return FUtil.Request({
2263
+ method: 'GET',
2264
+ url: "/v2/statistics/transactions/common",
2265
+ params: params
2266
+ });
2267
+ }
2268
+
2269
+ var Statistic = {
2270
+ __proto__: null,
2271
+ transactionsCommon: transactionsCommon
2272
+ };
2273
+
2261
2274
  var FServiceAPI = {
2262
2275
  Node: Node,
2263
2276
  Exhibit: Exhibit,
@@ -2271,7 +2284,8 @@ var FServiceAPI = {
2271
2284
  Captcha: Captcha,
2272
2285
  Event: Event,
2273
2286
  Activity: Activity,
2274
- TestQualification: TestQualification
2287
+ TestQualification: TestQualification,
2288
+ Statistic: Statistic
2275
2289
  };
2276
2290
 
2277
2291
  var codeMessage = {