superapp-miniapp-invoke-native 1.9.11 → 1.9.13
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/lib/main.d.ts +36 -0
- package/lib/main.js +984 -622
- package/lib/main.umd.cjs +1 -1
- package/package.json +1 -1
package/lib/main.d.ts
CHANGED
|
@@ -17,11 +17,13 @@ declare interface BackBtnParamsType {
|
|
|
17
17
|
declare interface CameraForTakePhotoPluginHandleType {
|
|
18
18
|
pickCameraForTakePhoto(): Promise<void>;
|
|
19
19
|
setCameraForTakePhotoState(cameraForTakePhotoStateParams: CameraForTakePhotoStateParamsType): Promise<void>;
|
|
20
|
+
getStatus(): Promise<any>;
|
|
20
21
|
}
|
|
21
22
|
|
|
22
23
|
declare class CameraForTakePhotoPlugins implements CameraForTakePhotoPluginHandleType {
|
|
23
24
|
pickCameraForTakePhoto(): Promise<any>;
|
|
24
25
|
setCameraForTakePhotoState(cameraForTakePhotoStateParams: CameraForTakePhotoStateParamsType): Promise<any>;
|
|
26
|
+
getStatus(): Promise<any>;
|
|
25
27
|
}
|
|
26
28
|
|
|
27
29
|
declare interface CameraForTakePhotoStateParamsType {
|
|
@@ -45,21 +47,25 @@ declare interface CameraScanMultipleNoCountParamsTypeStateParamsType {
|
|
|
45
47
|
declare class CameraScanMultipleNoCountPlugins implements CameraScanMultipleNoCountPluginsHandleType {
|
|
46
48
|
pickCameraScanMultipleNoCount(cameraMultipleNoCountParams: CameraScanMultipleNoCountParamsType): Promise<any>;
|
|
47
49
|
setCameraScanMultipleNoCountState(cameraMultipleNoCountStateParams: CameraScanMultipleNoCountParamsTypeStateParamsType): Promise<any>;
|
|
50
|
+
getStatus(): Promise<any>;
|
|
48
51
|
}
|
|
49
52
|
|
|
50
53
|
declare interface CameraScanMultipleNoCountPluginsHandleType {
|
|
51
54
|
pickCameraScanMultipleNoCount(cameraMultipleNoCountParams: CameraScanMultipleNoCountParamsType): Promise<void>;
|
|
52
55
|
setCameraScanMultipleNoCountState(cameraMultipleNoCountStateParams: CameraScanMultipleNoCountParamsTypeStateParamsType): Promise<void>;
|
|
56
|
+
getStatus(): Promise<any>;
|
|
53
57
|
}
|
|
54
58
|
|
|
55
59
|
declare class CameraScanMultiplePlugins implements CameraScanMultiplePluginsHandleType {
|
|
56
60
|
pickCameraScanMultiple(cameraMultipleParams: CameraMultipleParamsType): Promise<any>;
|
|
57
61
|
setCameraScanMultipleState(cameraScanMultipleStateParams: CameraScanMultipleStateParamsType): Promise<any>;
|
|
62
|
+
getStatus(): Promise<any>;
|
|
58
63
|
}
|
|
59
64
|
|
|
60
65
|
declare interface CameraScanMultiplePluginsHandleType {
|
|
61
66
|
pickCameraScanMultiple(cameraMultipleParams: CameraMultipleParamsType): Promise<void>;
|
|
62
67
|
setCameraScanMultipleState(cameraScanMultipleStateParams: CameraScanMultipleStateParamsType): Promise<void>;
|
|
68
|
+
getStatus(): Promise<any>;
|
|
63
69
|
}
|
|
64
70
|
|
|
65
71
|
declare interface CameraScanMultipleStateParamsType {
|
|
@@ -69,21 +75,25 @@ declare interface CameraScanMultipleStateParamsType {
|
|
|
69
75
|
declare class CameraScanPlugins implements CameraScanPluginsHandleType {
|
|
70
76
|
pickCameraScan(pickCameraScan?: PickCameraScanParamsType): Promise<any>;
|
|
71
77
|
setCameraScanState(cameraScanStateParams: CameraScanStateParamsType): Promise<any>;
|
|
78
|
+
getStatus(): Promise<any>;
|
|
72
79
|
}
|
|
73
80
|
|
|
74
81
|
declare interface CameraScanPluginsHandleType {
|
|
75
82
|
pickCameraScan(pickCameraScan: PickCameraScanParamsType): Promise<PickCameraScanParamsType | undefined>;
|
|
76
83
|
setCameraScanState(cameraScanStateParams: CameraScanStateParamsType): Promise<void>;
|
|
84
|
+
getStatus(): Promise<any>;
|
|
77
85
|
}
|
|
78
86
|
|
|
79
87
|
declare class CameraScanSingleOrDualPlugins implements CameraScanSingleOrDualPluginsHandleType {
|
|
80
88
|
pickCameraScanSingleOrDual(cameraScanSingleOrDualParams?: CameraScanSingleOrDualType): Promise<any>;
|
|
81
89
|
setCameraScanSingleOrDualState(isOpenCameraScanSingleOrDual: CameraScanSingleOrDualStateParamsType): Promise<any>;
|
|
90
|
+
getStatus(): Promise<any>;
|
|
82
91
|
}
|
|
83
92
|
|
|
84
93
|
declare interface CameraScanSingleOrDualPluginsHandleType {
|
|
85
94
|
pickCameraScanSingleOrDual(cameraScanSingleOrDualParams: CameraScanSingleOrDualType): Promise<void>;
|
|
86
95
|
setCameraScanSingleOrDualState(isOpenCameraScanSingleOrDual: CameraScanSingleOrDualStateParamsType): Promise<void>;
|
|
96
|
+
getStatus(): Promise<any>;
|
|
87
97
|
}
|
|
88
98
|
|
|
89
99
|
declare interface CameraScanSingleOrDualStateParamsType {
|
|
@@ -103,11 +113,13 @@ declare class ClickStreamPlugins implements ClickStreamPluginsHandleType {
|
|
|
103
113
|
constructor();
|
|
104
114
|
init(): Promise<void>;
|
|
105
115
|
trace(clickStreamTraceParams: ClickStreamTraceParamsType): Promise<ClickStreamTraceParamsType | undefined>;
|
|
116
|
+
getStatus(): Promise<any>;
|
|
106
117
|
}
|
|
107
118
|
|
|
108
119
|
declare interface ClickStreamPluginsHandleType {
|
|
109
120
|
init(): Promise<void>;
|
|
110
121
|
trace(clickStreamTraceParams: ClickStreamTraceParamsType): Promise<ClickStreamTraceParamsType | undefined>;
|
|
122
|
+
getStatus(): Promise<any>;
|
|
111
123
|
}
|
|
112
124
|
|
|
113
125
|
declare interface ClickStreamTraceParamsType {
|
|
@@ -135,6 +147,8 @@ declare class CommunicatePlugins implements CommunicatePluginsHookType {
|
|
|
135
147
|
setupMiniApp(setupMiniAppParams: SetupMiniAppParamsType): void;
|
|
136
148
|
switchStore(sendSwitchStoreParams: SendSwitchStoreParamsType): void;
|
|
137
149
|
closeMiniApp(): Promise<void>;
|
|
150
|
+
getStatus(): Promise<any>;
|
|
151
|
+
dispatchToShell(params: DispatchToShellParamsType): Promise<DispatchToShellParamsType | undefined>;
|
|
138
152
|
}
|
|
139
153
|
|
|
140
154
|
declare interface CommunicatePluginsHookType {
|
|
@@ -154,6 +168,7 @@ declare interface CommunicatePluginsHookType {
|
|
|
154
168
|
switchLanguage(sendSwitchLanguageParams: SendSwitchLanguageParamsType): void;
|
|
155
169
|
setupMiniApp(setupMiniAppParams: SetupMiniAppParamsType): void;
|
|
156
170
|
switchStore(sendSwitchStoreParams: SendSwitchStoreParamsType): void;
|
|
171
|
+
getStatus(): Promise<any>;
|
|
157
172
|
}
|
|
158
173
|
|
|
159
174
|
declare class CountAssistPlugins implements CountAssistPluginsType {
|
|
@@ -162,12 +177,14 @@ declare class CountAssistPlugins implements CountAssistPluginsType {
|
|
|
162
177
|
setCountAssistBtn(setCountAssistBtnParams: SetCountAssistBtnParamsType): void;
|
|
163
178
|
toggleCountAssist(toggleCountAssistParams: ToggleCountAssistType): Promise<any>;
|
|
164
179
|
getCountAssistToggleState(): Promise<any>;
|
|
180
|
+
getStatus(): Promise<any>;
|
|
165
181
|
}
|
|
166
182
|
|
|
167
183
|
declare interface CountAssistPluginsType {
|
|
168
184
|
setCountAssistState(setCountAssistStateParams: SetCountAssistStateParamsType): Promise<SetCountAssistStateParamsType | undefined>;
|
|
169
185
|
getCountAssistState(defaultState?: boolean): boolean | undefined;
|
|
170
186
|
setCountAssistBtn(setCountAssistBtnParams: SetCountAssistBtnParamsType): void;
|
|
187
|
+
getStatus(): Promise<any>;
|
|
171
188
|
}
|
|
172
189
|
|
|
173
190
|
declare interface CreatePollingParamsType {
|
|
@@ -186,11 +203,13 @@ declare interface DestroyPollingParamsType {
|
|
|
186
203
|
declare interface DeviceInteractionHandleType {
|
|
187
204
|
callVibrate: () => Promise<DeviceInteractionWorkingStatusType | void | undefined>;
|
|
188
205
|
callErrorBeep: () => Promise<DeviceInteractionWorkingStatusType | void | undefined>;
|
|
206
|
+
getStatus(): Promise<any>;
|
|
189
207
|
}
|
|
190
208
|
|
|
191
209
|
declare class DeviceInteractionPlugin implements DeviceInteractionHandleType {
|
|
192
210
|
callVibrate(): Promise<any>;
|
|
193
211
|
callErrorBeep(): Promise<any>;
|
|
212
|
+
getStatus(): Promise<any>;
|
|
194
213
|
}
|
|
195
214
|
|
|
196
215
|
declare type DeviceInteractionWorkingStatusType = {
|
|
@@ -205,6 +224,11 @@ declare interface DisableFABType {
|
|
|
205
224
|
state: boolean;
|
|
206
225
|
}
|
|
207
226
|
|
|
227
|
+
declare interface DispatchToShellParamsType {
|
|
228
|
+
showStoreUnderUserIcon?: boolean;
|
|
229
|
+
[key: string]: any;
|
|
230
|
+
}
|
|
231
|
+
|
|
208
232
|
declare type FabBtnHandleType = (data: SetFabDataType | any) => void;
|
|
209
233
|
|
|
210
234
|
declare type HomeBtnHandleType = (cb: PluginCallback) => void;
|
|
@@ -215,10 +239,12 @@ declare interface homeIsClickType {
|
|
|
215
239
|
|
|
216
240
|
declare class HttpPlugins implements HttpPluginsHandleType {
|
|
217
241
|
request(HttpParams: HttpTraceParamsType): Promise<any>;
|
|
242
|
+
getStatus(): Promise<any>;
|
|
218
243
|
}
|
|
219
244
|
|
|
220
245
|
declare interface HttpPluginsHandleType {
|
|
221
246
|
request(HttpParams: HttpTraceParamsType): any;
|
|
247
|
+
getStatus(): Promise<any>;
|
|
222
248
|
}
|
|
223
249
|
|
|
224
250
|
declare interface HttpTraceParamsType {
|
|
@@ -229,12 +255,14 @@ declare class InitialContextPlugins implements InitialContextPluginsType {
|
|
|
229
255
|
isNative(): boolean | undefined;
|
|
230
256
|
redirectPage(specifiedPageParams: SpecifiedPageType): void;
|
|
231
257
|
getNativeInfo(nativeInfoConfig?: NativeInfoConfigType): any;
|
|
258
|
+
getStatus(): Promise<unknown>;
|
|
232
259
|
}
|
|
233
260
|
|
|
234
261
|
declare interface InitialContextPluginsType {
|
|
235
262
|
isNative: () => boolean | undefined;
|
|
236
263
|
redirectPage: (specifiedPageParams: SpecifiedPageType) => void;
|
|
237
264
|
getNativeInfo: (nativeInfoConfig: NativeInfoConfigType) => any;
|
|
265
|
+
getStatus(): Promise<any>;
|
|
238
266
|
}
|
|
239
267
|
|
|
240
268
|
declare interface laserScanApiParamsType {
|
|
@@ -249,6 +277,7 @@ declare class LaserScanPlugins implements LaserScanPluginsHandleType {
|
|
|
249
277
|
unPickLaserScan(): Promise<void>;
|
|
250
278
|
setLaserState(laserStateParams: laserStateParamsType): void;
|
|
251
279
|
setLaserScan(laserScanApiParams: laserScanApiParamsType): void;
|
|
280
|
+
getStatus(): Promise<any>;
|
|
252
281
|
}
|
|
253
282
|
|
|
254
283
|
declare interface LaserScanPluginsHandleType {
|
|
@@ -256,6 +285,7 @@ declare interface LaserScanPluginsHandleType {
|
|
|
256
285
|
unPickLaserScan(): Promise<void>;
|
|
257
286
|
setLaserState(laserStateParams: laserStateParamsType): void;
|
|
258
287
|
setLaserScan(laserScanApiParams: laserScanApiParamsType): void;
|
|
288
|
+
getStatus(): Promise<any>;
|
|
259
289
|
}
|
|
260
290
|
|
|
261
291
|
declare interface laserStateParamsType {
|
|
@@ -267,12 +297,14 @@ declare class LifecyclePlugins implements LifecyclePluginsHandleType {
|
|
|
267
297
|
setNativeUsagePermission(usagePermissionParams: usagePermissionParamsType): Promise<void>;
|
|
268
298
|
authorizeWebCallback(authorizeWebCallbackParams: authorizeWebCallbackParamsType): Promise<void>;
|
|
269
299
|
miniAppBeforeUnmount(miniAppBeforeUnmountParams: MiniAppBeforeUnmountParamsType): void;
|
|
300
|
+
getStatus(): Promise<any>;
|
|
270
301
|
}
|
|
271
302
|
|
|
272
303
|
declare interface LifecyclePluginsHandleType {
|
|
273
304
|
setNativeUsagePermission(usagePermissionParams: usagePermissionParamsType): Promise<void>;
|
|
274
305
|
authorizeWebCallback(authorizeWebCallbackParams: authorizeWebCallbackParamsType): Promise<void>;
|
|
275
306
|
miniAppBeforeUnmount(miniAppBeforeUnmountParams: MiniAppBeforeUnmountParamsType): void;
|
|
307
|
+
getStatus(): Promise<any>;
|
|
276
308
|
}
|
|
277
309
|
|
|
278
310
|
declare interface MiniAppBeforeUnmountParamsType {
|
|
@@ -335,10 +367,12 @@ declare type PackOrdersScanBoxType = "pack_orders_scan_box" | "collect_orders_sc
|
|
|
335
367
|
|
|
336
368
|
declare class PaymentPlugins implements PaymentPluginsHandleType {
|
|
337
369
|
process(processParams: ProcessParamsType): Promise<ProcessParamsType | undefined>;
|
|
370
|
+
getStatus(): Promise<any>;
|
|
338
371
|
}
|
|
339
372
|
|
|
340
373
|
export declare interface PaymentPluginsHandleType {
|
|
341
374
|
process(processParams: ProcessParamsType): Promise<ProcessParamsType | undefined>;
|
|
375
|
+
getStatus(): Promise<any>;
|
|
342
376
|
}
|
|
343
377
|
|
|
344
378
|
declare interface PickCameraScanParamsType {
|
|
@@ -357,11 +391,13 @@ declare class PollingPlugins implements PollingPluginsHandleType {
|
|
|
357
391
|
constructor();
|
|
358
392
|
create(createPollingParams: CreatePollingParamsType): () => void;
|
|
359
393
|
destroy(destroyPollingParams: DestroyPollingParamsType): void;
|
|
394
|
+
getStatus(): Promise<any>;
|
|
360
395
|
}
|
|
361
396
|
|
|
362
397
|
declare interface PollingPluginsHandleType {
|
|
363
398
|
create(createPollingParams: CreatePollingParamsType): void;
|
|
364
399
|
destroy(pollingParams: PollingParamsType): void;
|
|
400
|
+
getStatus(): Promise<any>;
|
|
365
401
|
}
|
|
366
402
|
|
|
367
403
|
declare interface Process_ParamsType {
|