@freelog/tools-lib 0.1.100 → 0.1.105

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.
@@ -0,0 +1,21 @@
1
+ declare type LanguageKeyType = 'zh_CN' | 'en_US';
2
+ declare const allLanguage: {
3
+ value: string;
4
+ label: string;
5
+ }[];
6
+ declare class I18nNext {
7
+ private _loadingData;
8
+ private _taskQueue;
9
+ private _currentLanguage;
10
+ constructor();
11
+ ready(): Promise<unknown>;
12
+ t(key: string, options?: {
13
+ [key: string]: any;
14
+ }): string;
15
+ changeLanguage(lng: LanguageKeyType): void;
16
+ getAllLanguage(): typeof allLanguage;
17
+ getCurrentLanguage(): LanguageKeyType;
18
+ private _handleData;
19
+ private _fetchData;
20
+ }
21
+ export default I18nNext;
@@ -0,0 +1,5 @@
1
+ import I18nNext from './I18nNext';
2
+ declare const FI18n: {
3
+ i18nNext: I18nNext;
4
+ };
5
+ export default FI18n;
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  import FUtil from './utils';
2
2
  import FServiceAPI from './service-API';
3
- export { FUtil, FServiceAPI, };
3
+ import FI18n from './i18n';
4
+ export { FUtil, FServiceAPI, FI18n, };
@@ -0,0 +1,8 @@
1
+ interface ConfigsListParamsType {
2
+ key: string;
3
+ content: string;
4
+ tagIds: string[];
5
+ status: 0 | 1 | 2 | 3;
6
+ }
7
+ export declare function configsList(params: ConfigsListParamsType): Promise<any>;
8
+ export {};
@@ -12,6 +12,7 @@ import * as Event from './events';
12
12
  import * as Activity from './activities';
13
13
  import * as TestQualification from './testQualifications';
14
14
  import * as Statistic from './statistics';
15
+ import * as I18n from './i18n';
15
16
  declare const FServiceAPI: {
16
17
  Node: typeof Node;
17
18
  Exhibit: typeof Exhibit;
@@ -27,5 +28,6 @@ declare const FServiceAPI: {
27
28
  Activity: typeof Activity;
28
29
  TestQualification: typeof TestQualification;
29
30
  Statistic: typeof Statistic;
31
+ I18n: typeof I18n;
30
32
  };
31
33
  export default FServiceAPI;
@@ -64,6 +64,7 @@ interface ListParamsType {
64
64
  isLoadPolicyInfo?: 0 | 1;
65
65
  isLoadLatestVersionInfo?: 0 | 1;
66
66
  projection?: string;
67
+ sort?: string;
67
68
  }
68
69
  interface ListReturnType extends CommonReturn {
69
70
  data: IResourceInfo[];
@@ -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;