@jolibox/types 1.1.10-beta.1 → 1.1.11-beta.1
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/dist/commands/api.d.ts
CHANGED
|
@@ -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_OPEN_SCHEMA_SYNC = "API.openSchemaSync";
|
|
6
7
|
export interface ISystemInfo {
|
|
7
8
|
system: string;
|
|
8
9
|
platform: string;
|
|
@@ -16,5 +17,6 @@ export interface APICommandParams {
|
|
|
16
17
|
[API_GET_SYSTEM_INFO]: () => Promise<StandardResponse<ISystemInfo>>;
|
|
17
18
|
[API_GET_SYSTEM_INFO_SYNC]: () => StandardResponse<ISystemInfo>;
|
|
18
19
|
[API_ENV]: () => StandardResponse<Omit<Omit<Env, 'hostUserInfo'>, 'schema'>>;
|
|
20
|
+
[API_OPEN_SCHEMA_SYNC]: (schema: string) => StandardResponse<void>;
|
|
19
21
|
}
|
|
20
22
|
export type APICommandType = keyof APICommandParams;
|
|
@@ -4,7 +4,7 @@ export declare const LIFECYCLE_ONREADYEVENT = "LifecycleSDK.onReady";
|
|
|
4
4
|
export declare const LIFECYCLE_ONGSHOW_EVENT = "LifecycleSDK.onJoliboxShow";
|
|
5
5
|
export declare const LIFECYCLE_ONGHIDE_EVENT = "LifecycleSDK.onJoliboxHide";
|
|
6
6
|
export interface LifeCycleCommandParams {
|
|
7
|
-
[LIFECYCLE_EXITGAME]: (onBeforeExit: () => void) => void;
|
|
7
|
+
[LIFECYCLE_EXITGAME]: (onBeforeExit: () => void, shouldStay?: boolean) => void;
|
|
8
8
|
[LIFECYCLE_ONREADYEVENT]: (onReady: (info?: Env['hostUserInfo']) => void) => void;
|
|
9
9
|
[LIFECYCLE_ONGSHOW_EVENT]: (onShow: () => void) => void;
|
|
10
10
|
[LIFECYCLE_ONGHIDE_EVENT]: (onHide: () => void) => void;
|
package/dist/env.d.ts
CHANGED
package/dist/sdks/lifecycle.d.ts
CHANGED
|
@@ -3,7 +3,8 @@ export interface Lifecycle {
|
|
|
3
3
|
onReady: (params: (info: Env['hostUserInfo']) => void) => void;
|
|
4
4
|
onJoliboxShow: (params: () => void) => void;
|
|
5
5
|
onJoliboxHide: (params: () => void) => void;
|
|
6
|
-
exit: (
|
|
6
|
+
exit: (params: {
|
|
7
7
|
onBeforeExit: () => void;
|
|
8
|
+
shouldStay?: boolean;
|
|
8
9
|
}) => void;
|
|
9
10
|
}
|
package/package.json
CHANGED