superapp-miniapp-invoke-native 1.9.10 → 1.9.12
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 +31 -0
- package/lib/main.js +811 -455
- 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 {
|
|
@@ -134,6 +146,8 @@ declare class CommunicatePlugins implements CommunicatePluginsHookType {
|
|
|
134
146
|
switchLanguage(sendSwitchLanguageParams: SendSwitchLanguageParamsType): void;
|
|
135
147
|
setupMiniApp(setupMiniAppParams: SetupMiniAppParamsType): void;
|
|
136
148
|
switchStore(sendSwitchStoreParams: SendSwitchStoreParamsType): void;
|
|
149
|
+
closeMiniApp(): Promise<void>;
|
|
150
|
+
getStatus(): Promise<any>;
|
|
137
151
|
}
|
|
138
152
|
|
|
139
153
|
declare interface CommunicatePluginsHookType {
|
|
@@ -153,6 +167,7 @@ declare interface CommunicatePluginsHookType {
|
|
|
153
167
|
switchLanguage(sendSwitchLanguageParams: SendSwitchLanguageParamsType): void;
|
|
154
168
|
setupMiniApp(setupMiniAppParams: SetupMiniAppParamsType): void;
|
|
155
169
|
switchStore(sendSwitchStoreParams: SendSwitchStoreParamsType): void;
|
|
170
|
+
getStatus(): Promise<any>;
|
|
156
171
|
}
|
|
157
172
|
|
|
158
173
|
declare class CountAssistPlugins implements CountAssistPluginsType {
|
|
@@ -161,12 +176,14 @@ declare class CountAssistPlugins implements CountAssistPluginsType {
|
|
|
161
176
|
setCountAssistBtn(setCountAssistBtnParams: SetCountAssistBtnParamsType): void;
|
|
162
177
|
toggleCountAssist(toggleCountAssistParams: ToggleCountAssistType): Promise<any>;
|
|
163
178
|
getCountAssistToggleState(): Promise<any>;
|
|
179
|
+
getStatus(): Promise<any>;
|
|
164
180
|
}
|
|
165
181
|
|
|
166
182
|
declare interface CountAssistPluginsType {
|
|
167
183
|
setCountAssistState(setCountAssistStateParams: SetCountAssistStateParamsType): Promise<SetCountAssistStateParamsType | undefined>;
|
|
168
184
|
getCountAssistState(defaultState?: boolean): boolean | undefined;
|
|
169
185
|
setCountAssistBtn(setCountAssistBtnParams: SetCountAssistBtnParamsType): void;
|
|
186
|
+
getStatus(): Promise<any>;
|
|
170
187
|
}
|
|
171
188
|
|
|
172
189
|
declare interface CreatePollingParamsType {
|
|
@@ -185,11 +202,13 @@ declare interface DestroyPollingParamsType {
|
|
|
185
202
|
declare interface DeviceInteractionHandleType {
|
|
186
203
|
callVibrate: () => Promise<DeviceInteractionWorkingStatusType | void | undefined>;
|
|
187
204
|
callErrorBeep: () => Promise<DeviceInteractionWorkingStatusType | void | undefined>;
|
|
205
|
+
getStatus(): Promise<any>;
|
|
188
206
|
}
|
|
189
207
|
|
|
190
208
|
declare class DeviceInteractionPlugin implements DeviceInteractionHandleType {
|
|
191
209
|
callVibrate(): Promise<any>;
|
|
192
210
|
callErrorBeep(): Promise<any>;
|
|
211
|
+
getStatus(): Promise<any>;
|
|
193
212
|
}
|
|
194
213
|
|
|
195
214
|
declare type DeviceInteractionWorkingStatusType = {
|
|
@@ -214,10 +233,12 @@ declare interface homeIsClickType {
|
|
|
214
233
|
|
|
215
234
|
declare class HttpPlugins implements HttpPluginsHandleType {
|
|
216
235
|
request(HttpParams: HttpTraceParamsType): Promise<any>;
|
|
236
|
+
getStatus(): Promise<any>;
|
|
217
237
|
}
|
|
218
238
|
|
|
219
239
|
declare interface HttpPluginsHandleType {
|
|
220
240
|
request(HttpParams: HttpTraceParamsType): any;
|
|
241
|
+
getStatus(): Promise<any>;
|
|
221
242
|
}
|
|
222
243
|
|
|
223
244
|
declare interface HttpTraceParamsType {
|
|
@@ -228,12 +249,14 @@ declare class InitialContextPlugins implements InitialContextPluginsType {
|
|
|
228
249
|
isNative(): boolean | undefined;
|
|
229
250
|
redirectPage(specifiedPageParams: SpecifiedPageType): void;
|
|
230
251
|
getNativeInfo(nativeInfoConfig?: NativeInfoConfigType): any;
|
|
252
|
+
getStatus(): Promise<unknown>;
|
|
231
253
|
}
|
|
232
254
|
|
|
233
255
|
declare interface InitialContextPluginsType {
|
|
234
256
|
isNative: () => boolean | undefined;
|
|
235
257
|
redirectPage: (specifiedPageParams: SpecifiedPageType) => void;
|
|
236
258
|
getNativeInfo: (nativeInfoConfig: NativeInfoConfigType) => any;
|
|
259
|
+
getStatus(): Promise<any>;
|
|
237
260
|
}
|
|
238
261
|
|
|
239
262
|
declare interface laserScanApiParamsType {
|
|
@@ -248,6 +271,7 @@ declare class LaserScanPlugins implements LaserScanPluginsHandleType {
|
|
|
248
271
|
unPickLaserScan(): Promise<void>;
|
|
249
272
|
setLaserState(laserStateParams: laserStateParamsType): void;
|
|
250
273
|
setLaserScan(laserScanApiParams: laserScanApiParamsType): void;
|
|
274
|
+
getStatus(): Promise<any>;
|
|
251
275
|
}
|
|
252
276
|
|
|
253
277
|
declare interface LaserScanPluginsHandleType {
|
|
@@ -255,6 +279,7 @@ declare interface LaserScanPluginsHandleType {
|
|
|
255
279
|
unPickLaserScan(): Promise<void>;
|
|
256
280
|
setLaserState(laserStateParams: laserStateParamsType): void;
|
|
257
281
|
setLaserScan(laserScanApiParams: laserScanApiParamsType): void;
|
|
282
|
+
getStatus(): Promise<any>;
|
|
258
283
|
}
|
|
259
284
|
|
|
260
285
|
declare interface laserStateParamsType {
|
|
@@ -266,12 +291,14 @@ declare class LifecyclePlugins implements LifecyclePluginsHandleType {
|
|
|
266
291
|
setNativeUsagePermission(usagePermissionParams: usagePermissionParamsType): Promise<void>;
|
|
267
292
|
authorizeWebCallback(authorizeWebCallbackParams: authorizeWebCallbackParamsType): Promise<void>;
|
|
268
293
|
miniAppBeforeUnmount(miniAppBeforeUnmountParams: MiniAppBeforeUnmountParamsType): void;
|
|
294
|
+
getStatus(): Promise<any>;
|
|
269
295
|
}
|
|
270
296
|
|
|
271
297
|
declare interface LifecyclePluginsHandleType {
|
|
272
298
|
setNativeUsagePermission(usagePermissionParams: usagePermissionParamsType): Promise<void>;
|
|
273
299
|
authorizeWebCallback(authorizeWebCallbackParams: authorizeWebCallbackParamsType): Promise<void>;
|
|
274
300
|
miniAppBeforeUnmount(miniAppBeforeUnmountParams: MiniAppBeforeUnmountParamsType): void;
|
|
301
|
+
getStatus(): Promise<any>;
|
|
275
302
|
}
|
|
276
303
|
|
|
277
304
|
declare interface MiniAppBeforeUnmountParamsType {
|
|
@@ -334,10 +361,12 @@ declare type PackOrdersScanBoxType = "pack_orders_scan_box" | "collect_orders_sc
|
|
|
334
361
|
|
|
335
362
|
declare class PaymentPlugins implements PaymentPluginsHandleType {
|
|
336
363
|
process(processParams: ProcessParamsType): Promise<ProcessParamsType | undefined>;
|
|
364
|
+
getStatus(): Promise<any>;
|
|
337
365
|
}
|
|
338
366
|
|
|
339
367
|
export declare interface PaymentPluginsHandleType {
|
|
340
368
|
process(processParams: ProcessParamsType): Promise<ProcessParamsType | undefined>;
|
|
369
|
+
getStatus(): Promise<any>;
|
|
341
370
|
}
|
|
342
371
|
|
|
343
372
|
declare interface PickCameraScanParamsType {
|
|
@@ -356,11 +385,13 @@ declare class PollingPlugins implements PollingPluginsHandleType {
|
|
|
356
385
|
constructor();
|
|
357
386
|
create(createPollingParams: CreatePollingParamsType): () => void;
|
|
358
387
|
destroy(destroyPollingParams: DestroyPollingParamsType): void;
|
|
388
|
+
getStatus(): Promise<any>;
|
|
359
389
|
}
|
|
360
390
|
|
|
361
391
|
declare interface PollingPluginsHandleType {
|
|
362
392
|
create(createPollingParams: CreatePollingParamsType): void;
|
|
363
393
|
destroy(pollingParams: PollingParamsType): void;
|
|
394
|
+
getStatus(): Promise<any>;
|
|
364
395
|
}
|
|
365
396
|
|
|
366
397
|
declare interface Process_ParamsType {
|