@jolibox/types 1.1.46 → 1.1.48

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.
@@ -3,6 +3,7 @@ import { StandardResponse } from './response';
3
3
  export declare const API_GET_SYSTEM_INFO = "API.getSystemInfo";
4
4
  export declare const API_GET_SYSTEM_INFO_SYNC = "API.getSystemInfoSync";
5
5
  export declare const API_ENV = "API.env";
6
+ export declare const API_IS_NATIVE_SUPPORT = "API.isNativeSupport";
6
7
  /**
7
8
  * @public
8
9
  * Describes the system information of the device and application environment.
@@ -21,9 +22,13 @@ export interface ISystemInfo {
21
22
  navigationBarHeight?: number;
22
23
  };
23
24
  }
25
+ export interface INativeSupportParams {
26
+ version: string;
27
+ }
24
28
  export interface APICommandParams {
25
29
  [API_GET_SYSTEM_INFO]: () => Promise<StandardResponse<ISystemInfo>>;
26
30
  [API_GET_SYSTEM_INFO_SYNC]: () => StandardResponse<ISystemInfo>;
27
31
  [API_ENV]: () => StandardResponse<Omit<Omit<Env, 'hostUserInfo'>, 'schema'>>;
32
+ [API_IS_NATIVE_SUPPORT]: (params: INativeSupportParams) => StandardResponse<boolean>;
28
33
  }
29
34
  export type APICommandType = keyof APICommandParams;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jolibox/types",
3
3
  "description": "This project is common types used for JS-SDk interfere & implement",
4
- "version": "1.1.46",
4
+ "version": "1.1.48",
5
5
  "typings": "dist/index.d.ts",
6
6
  "license": "MIT",
7
7
  "files": [