@freelog/tools-lib 0.1.104 → 0.1.107

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;
@@ -29,7 +29,7 @@ interface IResourceInfo {
29
29
  }
30
30
  export interface CreateParamsType {
31
31
  name: string;
32
- resourceType: string;
32
+ resourceType: string[];
33
33
  policies?: any[];
34
34
  coverImages?: string[];
35
35
  intro?: string;
@@ -90,7 +90,7 @@ interface UpdateObjectParamsType {
90
90
  type: string;
91
91
  versionRange?: string;
92
92
  }[];
93
- resourceType?: string;
93
+ resourceType?: string[];
94
94
  }
95
95
  export declare function updateObject({ objectIdOrName, ...params }: UpdateObjectParamsType): Promise<any>;
96
96
  interface BatchObjectListParamsType {
@@ -101,7 +101,6 @@ interface BatchObjectListParamsType {
101
101
  export declare function batchObjectList(params: BatchObjectListParamsType): Promise<any>;
102
102
  interface FilePropertyParamsType {
103
103
  sha1: string;
104
- resourceType: string;
105
104
  }
106
105
  export declare function fileProperty({ sha1, ...params }: FilePropertyParamsType): Promise<any>;
107
106
  interface CycleDependencyCheckParamsType {