@momo-cloud/gami-sdk 0.0.26 → 0.0.28
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/index.public.d.ts +17 -0
- package/dist/index.public.js +912 -900
- package/package.json +1 -1
package/dist/index.public.d.ts
CHANGED
|
@@ -30,6 +30,7 @@ declare const GamiSDK: {
|
|
|
30
30
|
gameId: string;
|
|
31
31
|
userId: string | undefined;
|
|
32
32
|
userInfo: IUserInfo | null;
|
|
33
|
+
deviceInfo: TDeviceInfo;
|
|
33
34
|
isBrowser: boolean;
|
|
34
35
|
feature: any;
|
|
35
36
|
isIos: boolean;
|
|
@@ -137,6 +138,7 @@ declare const GamiSDK: {
|
|
|
137
138
|
des: string;
|
|
138
139
|
toast?: string;
|
|
139
140
|
}) => Promise<unknown>;
|
|
141
|
+
requestPlatformApi: (name: string, ...params: any[]) => Promise<unknown>;
|
|
140
142
|
listen: (name: string, callback: (args: any[]) => void) => void;
|
|
141
143
|
listenShaking: ({ onShake }: {
|
|
142
144
|
onShake: (data: any) => void;
|
|
@@ -145,6 +147,14 @@ declare const GamiSDK: {
|
|
|
145
147
|
onBlurApp: (callback: () => void) => void;
|
|
146
148
|
registerNoti: (action: (data: any) => void) => void;
|
|
147
149
|
unregisterNoti: () => void;
|
|
150
|
+
openLoginApp: ({ path, subDomain, params, options, pinKey }: {
|
|
151
|
+
path: string;
|
|
152
|
+
subDomain?: "ai" | "aws" | "api";
|
|
153
|
+
params?: any;
|
|
154
|
+
options?: any;
|
|
155
|
+
pinKey?: string;
|
|
156
|
+
}, callback: (data: any) => void) => void;
|
|
157
|
+
UploadImage: (base64: string) => Promise<string>;
|
|
148
158
|
trackingEvent: (event: string, data: any) => void;
|
|
149
159
|
screenTracking: ({ game_id, event_name, action_name, screen_name, extra, error_code }: {
|
|
150
160
|
game_id?: string;
|
|
@@ -202,6 +212,13 @@ declare type TBalanceConfig = {
|
|
|
202
212
|
icon: string;
|
|
203
213
|
};
|
|
204
214
|
|
|
215
|
+
export declare type TDeviceInfo = {
|
|
216
|
+
appVersion: string;
|
|
217
|
+
buildVersion: string;
|
|
218
|
+
bundleId: string;
|
|
219
|
+
deviceManufacturer?: string;
|
|
220
|
+
};
|
|
221
|
+
|
|
205
222
|
declare type TEvent = {
|
|
206
223
|
response_info: {
|
|
207
224
|
error_message: string;
|