hylid-bridge 4.0.24-alpha.3 → 4.0.26-alpha.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/README.md +5 -5
- package/lib/bridges.d.ts +41 -57
- package/lib/bridges.js +23 -32
- package/lib/clients/mp/alipay/index.d.ts +242 -4
- package/lib/clients/mp/alipay/index.js +92 -4
- package/lib/clients/mp/alipayhk/index.d.ts +235 -2
- package/lib/clients/mp/alipayhk/index.js +90 -3
- package/lib/clients/mp/chope/index.d.ts +235 -2
- package/lib/clients/mp/chope/index.js +90 -3
- package/lib/clients/mp/dana/index.d.ts +235 -2
- package/lib/clients/mp/dana/index.js +90 -3
- package/lib/clients/mp/demo/index.d.ts +266 -8
- package/lib/clients/mp/demo/index.js +114 -3
- package/lib/clients/mp/gcash/index.d.ts +235 -2
- package/lib/clients/mp/gcash/index.js +90 -3
- package/lib/clients/mp/tmn/index.d.ts +235 -2
- package/lib/clients/mp/tmn/index.js +90 -3
- package/lib/clients/mp/tngd/index.d.ts +235 -2
- package/lib/clients/mp/tngd/index.js +90 -3
- package/lib/clients/mp/wechat/index.d.ts +0 -1
- package/lib/clients/mp_web/alipay/index.d.ts +244 -4
- package/lib/clients/mp_web/alipay/index.js +94 -4
- package/lib/clients/mp_web/alipayhk/index.d.ts +315 -16
- package/lib/clients/mp_web/alipayhk/index.js +105 -8
- package/lib/clients/mp_web/chope/index.d.ts +235 -2
- package/lib/clients/mp_web/chope/index.js +89 -2
- package/lib/clients/mp_web/dana/index.d.ts +314 -16
- package/lib/clients/mp_web/dana/index.js +104 -8
- package/lib/clients/mp_web/demo/index.d.ts +265 -8
- package/lib/clients/mp_web/demo/index.js +112 -2
- package/lib/clients/mp_web/gcash/index.d.ts +314 -16
- package/lib/clients/mp_web/gcash/index.js +104 -8
- package/lib/clients/mp_web/mpay/index.d.ts +315 -24
- package/lib/clients/mp_web/mpay/index.js +106 -12
- package/lib/clients/mp_web/tmn/index.d.ts +314 -16
- package/lib/clients/mp_web/tmn/index.js +104 -8
- package/lib/clients/mp_web/tngd/index.d.ts +314 -16
- package/lib/clients/mp_web/tngd/index.js +104 -8
- package/lib/clients/mp_web/toss/index.d.ts +322 -16
- package/lib/clients/mp_web/toss/index.js +106 -8
- package/lib/clients/web/alipay/index.d.ts +231 -115
- package/lib/clients/web/alipay/index.js +115 -74
- package/lib/clients/web/demo/index.d.ts +181 -60
- package/lib/clients/web/demo/index.js +106 -48
- package/lib/clients/web/h5/index.d.ts +22 -14
- package/lib/clients/web/h5/index.js +10 -8
- package/lib/clients/web/tngdh5ng/index.d.ts +29 -21
- package/lib/clients/web/tngdh5ng/index.js +26 -18
- package/lib/clients/web/worldfirst/index.d.ts +7 -0
- package/lib/clients/web/worldfirst/index.js +7 -0
- package/lib/clients/web/worldfirst/wfOpenDocument.d.ts +20 -0
- package/lib/clients/web/worldfirst/wfOpenDocument.js +8 -0
- package/lib/common/apis/custom/mp_web/mpay/getAppToken.d.ts +1 -6
- package/lib/common/apis/generated/mp/getAppToken.d.ts +2 -14
- package/lib/common/apis/generated/mp_web/getAppToken.d.ts +2 -14
- package/lib/common/apis/generated/web/getAppToken.d.ts +2 -14
- package/lib/dsl.d.ts +12 -11
- package/lib/dsl.js +2 -2
- package/lib/umd/index.js +1 -1
- package/lib/umd/mp_web_alipay.js +1 -1
- package/lib/umd/mp_web_alipayhk.js +1 -1
- package/lib/umd/mp_web_chope.js +1 -1
- package/lib/umd/mp_web_dana.js +1 -1
- package/lib/umd/mp_web_demo.js +1 -1
- package/lib/umd/mp_web_gcash.js +1 -1
- package/lib/umd/mp_web_mpay.js +1 -1
- package/lib/umd/mp_web_tmn.js +1 -1
- package/lib/umd/mp_web_tngd.js +1 -1
- package/lib/umd/mp_web_toss.js +1 -1
- package/lib/umd/web_alipay.js +1 -1
- package/lib/umd/web_demo.js +1 -1
- package/lib/umd/web_h5.js +1 -1
- package/lib/umd/web_tngdh5ng.js +1 -1
- package/lib/umd/web_worldfirst.js +1 -0
- package/lib/whichCanIUse/compatibilities.json +125123 -1659
- package/lib/whichCanIUse/index.d.ts +6 -21
- package/lib/whichCanIUse/index.js +43 -65
- package/package.json +9 -9
- package/lib/clients/web/alipay/getClientInfo.d.ts +0 -2
- package/lib/clients/web/alipay/getClientInfo.js +0 -3
- package/lib/clients/web/alipayhk/getClientInfo.d.ts +0 -2
- package/lib/clients/web/alipayhk/getClientInfo.js +0 -3
- package/lib/clients/web/alipayhk/index.d.ts +0 -24
- package/lib/clients/web/alipayhk/index.js +0 -9
- package/lib/common/apis/generated/web/getClientInfo.d.ts +0 -33
- package/lib/common/apis/generated/web/getClientInfo.js +0 -8
- package/lib/umd/web_alipayhk.js +0 -1
- /package/lib/clients/web/{alipayhk → demo}/getAppToken.d.ts +0 -0
- /package/lib/clients/web/{alipayhk → demo}/getAppToken.js +0 -0
|
@@ -113,6 +113,7 @@ import { startPullDownRefresh, startPullDownRefreshAsync } from '../../../common
|
|
|
113
113
|
import { stopBluetoothDevicesDiscovery, stopBluetoothDevicesDiscoveryAsync } from '../../../common/apis/generated/mp/stopBluetoothDevicesDiscovery';
|
|
114
114
|
import { stopPullDownRefresh, stopPullDownRefreshAsync } from '../../../common/apis/generated/mp/stopPullDownRefresh';
|
|
115
115
|
import { switchTab, switchTabAsync } from '../../../common/apis/generated/mp/switchTab';
|
|
116
|
+
import tradePay from './tradePay';
|
|
116
117
|
import { crossPay, crossPayAsync } from '../../../common/apis/generated/mp/crossPay';
|
|
117
118
|
import { uploadFile, uploadFileAsync } from '../../../common/apis/generated/mp/uploadFile';
|
|
118
119
|
import { vibrate, vibrateAsync } from '../../../common/apis/generated/mp/vibrate';
|
|
@@ -123,28 +124,50 @@ import { createSelectorQuery } from '../../../common/apis/generated/mp/createSel
|
|
|
123
124
|
import { canIUse } from '../../../common/apis/generated/mp/canIUse';
|
|
124
125
|
import { getStorageInfoSync } from '../../../common/apis/generated/mp/getStorageInfoSync';
|
|
125
126
|
import { showSharePanel, showSharePanelAsync } from '../../../common/apis/generated/mp/showSharePanel';
|
|
126
|
-
import tradePay from './tradePay';
|
|
127
127
|
declare const _default: {
|
|
128
128
|
addPhoneContact: (args: Partial<AddPhoneContactArgs>) => void;
|
|
129
|
+
addPhoneContactAsync: (args?: Partial<AddPhoneContactArgs> | undefined) => Promise<{
|
|
130
|
+
success: true;
|
|
131
|
+
}>;
|
|
129
132
|
alert: (args?: AlertArgs | undefined) => void;
|
|
133
|
+
alertAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
|
|
130
134
|
chooseImage: (args: ChooseImageArgs) => void;
|
|
135
|
+
chooseImageAsync: (args?: ChooseImageArgs | undefined) => Promise<{
|
|
136
|
+
apFilePaths: string[];
|
|
137
|
+
}>;
|
|
131
138
|
choosePhoneContact: (args: ChoosePhoneContactArgs) => void;
|
|
139
|
+
choosePhoneContactAsync: (args?: ChoosePhoneContactArgs | undefined) => Promise<ChoosePhoneContactCallbackValue>;
|
|
132
140
|
clearStorage: (args?: AsyncCallback<any> | undefined) => void;
|
|
141
|
+
clearStorageAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
|
|
133
142
|
clearStorageSync: () => void;
|
|
134
143
|
closeBluetoothAdapter: (args?: AsyncCallback<any> | undefined) => void;
|
|
144
|
+
closeBluetoothAdapterAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
|
|
135
145
|
closeSocket: (args?: AsyncCallback<any> | undefined) => void;
|
|
146
|
+
closeSocketAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
|
|
136
147
|
confirm: (args: ConfirmArgs) => void;
|
|
148
|
+
confirmAsync: (args?: ConfirmArgs | undefined) => Promise<ConfirmCallbackValue>;
|
|
137
149
|
connectBLEDevice: (args: {
|
|
138
150
|
deviceId: string;
|
|
139
151
|
} & AsyncCallback<any>) => void;
|
|
152
|
+
connectBLEDeviceAsync: (args?: ({
|
|
153
|
+
deviceId: string;
|
|
154
|
+
} & AsyncCallback<any>) | undefined) => Promise<any>;
|
|
140
155
|
connectSocket: (args?: ConnectSocketArgs | undefined) => void;
|
|
156
|
+
connectSocketAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
|
|
141
157
|
createAnimation: (args?: CreateAnimationArgs | undefined) => Animation;
|
|
142
158
|
createWebViewContext: (id: string) => WebViewContext;
|
|
143
159
|
datePicker: (args?: DatePickerArgs | undefined) => void;
|
|
160
|
+
datePickerAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
|
|
144
161
|
disconnectBLEDevice: (args: {
|
|
145
162
|
deviceId: string;
|
|
146
163
|
} & AsyncCallback<any>) => void;
|
|
164
|
+
disconnectBLEDeviceAsync: (args?: ({
|
|
165
|
+
deviceId: string;
|
|
166
|
+
} & AsyncCallback<any>) | undefined) => Promise<any>;
|
|
147
167
|
downloadFile: (args: DownloadFileArgs) => void;
|
|
168
|
+
downloadFileAsync: (args?: DownloadFileArgs | undefined) => Promise<{
|
|
169
|
+
apFilePath: string;
|
|
170
|
+
}>;
|
|
148
171
|
getAppIdSync: () => {
|
|
149
172
|
appId: string;
|
|
150
173
|
};
|
|
@@ -152,10 +175,15 @@ declare const _default: {
|
|
|
152
175
|
scopes: string | string[];
|
|
153
176
|
appId?: string | undefined;
|
|
154
177
|
} & import("@hylid/types").AsyncCallback<GetAuthCodeCallbackValue>) => void;
|
|
178
|
+
getAuthCodeAsync: (args?: ({
|
|
179
|
+
scopes: string | string[];
|
|
180
|
+
appId?: string | undefined;
|
|
181
|
+
} & import("@hylid/types").AsyncCallback<GetAuthCodeCallbackValue>) | undefined) => Promise<GetAuthCodeCallbackValue>;
|
|
155
182
|
getBatteryInfo: (args?: AsyncCallback<{
|
|
156
183
|
level: number;
|
|
157
184
|
isCharging: boolean;
|
|
158
185
|
}> | undefined) => void;
|
|
186
|
+
getBatteryInfoAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
|
|
159
187
|
getBLEDeviceCharacteristics: (args: {
|
|
160
188
|
deviceId: string;
|
|
161
189
|
serviceId: string;
|
|
@@ -172,6 +200,34 @@ declare const _default: {
|
|
|
172
200
|
};
|
|
173
201
|
}[];
|
|
174
202
|
}>) => void;
|
|
203
|
+
getBLEDeviceCharacteristicsAsync: (args?: ({
|
|
204
|
+
deviceId: string;
|
|
205
|
+
serviceId: string;
|
|
206
|
+
} & AsyncCallback<{
|
|
207
|
+
characteristic: {
|
|
208
|
+
characteristicId: string;
|
|
209
|
+
serviceId: string;
|
|
210
|
+
value: string;
|
|
211
|
+
properties: {
|
|
212
|
+
read: boolean;
|
|
213
|
+
write: boolean;
|
|
214
|
+
notify: boolean;
|
|
215
|
+
indicate: boolean;
|
|
216
|
+
};
|
|
217
|
+
}[];
|
|
218
|
+
}>) | undefined) => Promise<{
|
|
219
|
+
characteristic: {
|
|
220
|
+
characteristicId: string;
|
|
221
|
+
serviceId: string;
|
|
222
|
+
value: string;
|
|
223
|
+
properties: {
|
|
224
|
+
read: boolean;
|
|
225
|
+
write: boolean;
|
|
226
|
+
notify: boolean;
|
|
227
|
+
indicate: boolean;
|
|
228
|
+
};
|
|
229
|
+
}[];
|
|
230
|
+
}>;
|
|
175
231
|
getBLEDeviceServices: (args: {
|
|
176
232
|
deviceId: string;
|
|
177
233
|
} & AsyncCallback<{
|
|
@@ -180,35 +236,102 @@ declare const _default: {
|
|
|
180
236
|
serviceId: string;
|
|
181
237
|
}[];
|
|
182
238
|
}>) => void;
|
|
239
|
+
getBLEDeviceServicesAsync: (args?: ({
|
|
240
|
+
deviceId: string;
|
|
241
|
+
} & AsyncCallback<{
|
|
242
|
+
services: {
|
|
243
|
+
isPrimary: boolean;
|
|
244
|
+
serviceId: string;
|
|
245
|
+
}[];
|
|
246
|
+
}>) | undefined) => Promise<{
|
|
247
|
+
services: {
|
|
248
|
+
isPrimary: boolean;
|
|
249
|
+
serviceId: string;
|
|
250
|
+
}[];
|
|
251
|
+
}>;
|
|
183
252
|
getBluetoothAdapterState: (args: AsyncCallback<{
|
|
184
253
|
discovering: boolean;
|
|
185
254
|
available: boolean;
|
|
186
255
|
}>) => void;
|
|
256
|
+
getBluetoothAdapterStateAsync: (args?: AsyncCallback<{
|
|
257
|
+
discovering: boolean;
|
|
258
|
+
available: boolean;
|
|
259
|
+
}> | undefined) => Promise<{
|
|
260
|
+
discovering: boolean;
|
|
261
|
+
available: boolean;
|
|
262
|
+
}>;
|
|
187
263
|
getBluetoothDevices: (args: AsyncCallback<{
|
|
188
264
|
devices: BluetoothDevices[];
|
|
189
265
|
}>) => void;
|
|
266
|
+
getBluetoothDevicesAsync: (args?: AsyncCallback<{
|
|
267
|
+
devices: BluetoothDevices[];
|
|
268
|
+
}> | undefined) => Promise<{
|
|
269
|
+
devices: BluetoothDevices[];
|
|
270
|
+
}>;
|
|
190
271
|
getClipboard: (args: GetClipboardArgs) => void;
|
|
272
|
+
getClipboardAsync: (args?: GetClipboardArgs | undefined) => Promise<{
|
|
273
|
+
text: string;
|
|
274
|
+
}>;
|
|
191
275
|
getConnectedBluetoothDevices: (args: {
|
|
192
276
|
deviceId: string;
|
|
193
277
|
} & AsyncCallback<any>) => void;
|
|
278
|
+
getConnectedBluetoothDevicesAsync: (args?: ({
|
|
279
|
+
deviceId: string;
|
|
280
|
+
} & AsyncCallback<any>) | undefined) => Promise<any>;
|
|
194
281
|
getFileInfo: (args: GetFileArgs) => void;
|
|
282
|
+
getFileInfoAsync: (args?: GetFileArgs | undefined) => Promise<{
|
|
283
|
+
size: number;
|
|
284
|
+
digest: string;
|
|
285
|
+
}>;
|
|
195
286
|
getImageInfo: (args: GetImageInfo) => void;
|
|
287
|
+
getImageInfoAsync: (args?: GetImageInfo | undefined) => Promise<GetImageInfoCallbackValue>;
|
|
196
288
|
getLocation: (args: {
|
|
197
289
|
bizType?: string | undefined;
|
|
198
290
|
requestType?: number | undefined;
|
|
199
291
|
timeout?: number | undefined;
|
|
200
292
|
horizontalAccuracy?: number | undefined;
|
|
201
293
|
} & GetLocationArgs) => void;
|
|
294
|
+
getLocationAsync: (args?: ({
|
|
295
|
+
bizType?: string | undefined;
|
|
296
|
+
requestType?: number | undefined;
|
|
297
|
+
timeout?: number | undefined;
|
|
298
|
+
horizontalAccuracy?: number | undefined;
|
|
299
|
+
} & GetLocationArgs) | undefined) => Promise<GetLocationCallbackValue>;
|
|
202
300
|
getNetworkType: (args: GetNetworkTypeArgs) => void;
|
|
301
|
+
getNetworkTypeAsync: (args?: GetNetworkTypeArgs | undefined) => Promise<GetNetworkTypeCallbackValue>;
|
|
203
302
|
getOpenUserInfo: (args: GetOpenUserInfoArgs) => void;
|
|
303
|
+
getOpenUserInfoAsync: (args?: GetOpenUserInfoArgs | undefined) => Promise<{
|
|
304
|
+
response: string;
|
|
305
|
+
}>;
|
|
204
306
|
getSavedFileInfo: (args: GetSavedFileInfo) => void;
|
|
307
|
+
getSavedFileInfoAsync: (args?: GetSavedFileInfo | undefined) => Promise<{
|
|
308
|
+
size: number;
|
|
309
|
+
createTime: number;
|
|
310
|
+
}>;
|
|
205
311
|
getSavedFileList: (args: GetSavedFileListArgs) => void;
|
|
312
|
+
getSavedFileListAsync: (args?: GetSavedFileListArgs | undefined) => Promise<{
|
|
313
|
+
fileList: {
|
|
314
|
+
size: number;
|
|
315
|
+
createTime: number;
|
|
316
|
+
apFilePath: string;
|
|
317
|
+
}[];
|
|
318
|
+
}>;
|
|
206
319
|
getScreenBrightness: (args: AsyncCallback<{
|
|
207
320
|
brightness: number;
|
|
208
321
|
}>) => void;
|
|
322
|
+
getScreenBrightnessAsync: (args?: AsyncCallback<{
|
|
323
|
+
brightness: number;
|
|
324
|
+
}> | undefined) => Promise<{
|
|
325
|
+
brightness: number;
|
|
326
|
+
}>;
|
|
209
327
|
getServerTime: (args: AsyncCallback<{
|
|
210
328
|
time: number;
|
|
211
329
|
}>) => void;
|
|
330
|
+
getServerTimeAsync: (args?: AsyncCallback<{
|
|
331
|
+
time: number;
|
|
332
|
+
}> | undefined) => Promise<{
|
|
333
|
+
time: number;
|
|
334
|
+
}>;
|
|
212
335
|
getSetting: (args?: AsyncCallback<{
|
|
213
336
|
authSetting: {
|
|
214
337
|
camera: boolean;
|
|
@@ -218,29 +341,50 @@ declare const _default: {
|
|
|
218
341
|
phoneNumber: boolean;
|
|
219
342
|
};
|
|
220
343
|
}> | undefined) => void;
|
|
344
|
+
getSettingAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
|
|
221
345
|
getSiteInfo: (args: AsyncCallback<GetSiteInfoCallbackValue>) => void;
|
|
346
|
+
getSiteInfoAsync: (args?: AsyncCallback<GetSiteInfoCallbackValue> | undefined) => Promise<GetSiteInfoCallbackValue>;
|
|
222
347
|
getStorage: (args: GetStorage) => void;
|
|
348
|
+
getStorageAsync: (args?: GetStorage | undefined) => Promise<{
|
|
349
|
+
data: any;
|
|
350
|
+
}>;
|
|
223
351
|
getStorageSync: (args: {
|
|
224
352
|
key: string;
|
|
225
353
|
}) => {
|
|
226
354
|
data: any;
|
|
227
355
|
};
|
|
228
356
|
getSystemInfo: (args: GetSystemInfoArgs) => void;
|
|
357
|
+
getSystemInfoAsync: (args?: GetSystemInfoArgs | undefined) => Promise<GetSystemInfoCallbackValue>;
|
|
229
358
|
getSystemInfoSync: () => GetSystemInfoCallbackValue;
|
|
230
359
|
hideBackHome: () => void;
|
|
360
|
+
hideBackHomeAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
|
|
231
361
|
hideKeyboard: () => void;
|
|
362
|
+
hideKeyboardAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
|
|
232
363
|
hideLoading: (args?: HideLoadingArgs | undefined) => void;
|
|
364
|
+
hideLoadingAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
|
|
233
365
|
hideNavigationBarLoading: () => void;
|
|
366
|
+
hideNavigationBarLoadingAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
|
|
234
367
|
hideTabBar: (args: HideTabBarArgs) => void;
|
|
368
|
+
hideTabBarAsync: (args?: HideTabBarArgs | undefined) => Promise<undefined>;
|
|
235
369
|
hideToast: (args?: AsyncCallback<any> | undefined) => void;
|
|
370
|
+
hideToastAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
|
|
236
371
|
makePhoneCall: (args: {
|
|
237
372
|
number: string;
|
|
238
373
|
}) => void;
|
|
374
|
+
makePhoneCallAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
|
|
239
375
|
multiLevelSelect: (args: MultiLevelSelectArgs) => void;
|
|
376
|
+
multiLevelSelectAsync: (args?: MultiLevelSelectArgs | undefined) => Promise<{
|
|
377
|
+
success: boolean;
|
|
378
|
+
result: any[];
|
|
379
|
+
}>;
|
|
240
380
|
navigateBack: (args: NavigateBackArgs) => void;
|
|
381
|
+
navigateBackAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
|
|
241
382
|
navigateBackMiniProgram: (args: NavigateBackMiniProgramArgs) => void;
|
|
383
|
+
navigateBackMiniProgramAsync: (args?: NavigateBackMiniProgramArgs | undefined) => Promise<undefined>;
|
|
242
384
|
navigateTo: (args: NavigateToArgs) => void;
|
|
385
|
+
navigateToAsync: (args?: NavigateToArgs | undefined) => Promise<undefined>;
|
|
243
386
|
navigateToMiniProgram: (args: NavigateToMiniProgramArgs) => void;
|
|
387
|
+
navigateToMiniProgramAsync: (args?: NavigateToMiniProgramArgs | undefined) => Promise<undefined>;
|
|
244
388
|
notifyBLECharacteristicValueChange: (args: {
|
|
245
389
|
deviceId: string;
|
|
246
390
|
serviceId: string;
|
|
@@ -248,6 +392,13 @@ declare const _default: {
|
|
|
248
392
|
descriptorId?: string | undefined;
|
|
249
393
|
state?: boolean | undefined;
|
|
250
394
|
} & AsyncCallback<any>) => void;
|
|
395
|
+
notifyBLECharacteristicValueChangeAsync: (args?: ({
|
|
396
|
+
deviceId: string;
|
|
397
|
+
serviceId: string;
|
|
398
|
+
characteristicId: string;
|
|
399
|
+
descriptorId?: string | undefined;
|
|
400
|
+
state?: boolean | undefined;
|
|
401
|
+
} & AsyncCallback<any>) | undefined) => Promise<any>;
|
|
251
402
|
offAccelerometerChange: (args?: ((arg: any) => void) | undefined) => void;
|
|
252
403
|
offBLECharacteristicValueChange: (args?: ((arg: any) => void) | undefined) => void;
|
|
253
404
|
offBLEConnectionStateChanged: (args?: ((arg: any) => void) | undefined) => void;
|
|
@@ -297,10 +448,15 @@ declare const _default: {
|
|
|
297
448
|
onSocketOpen: (args: (arg: any) => void) => void;
|
|
298
449
|
onUserCaptureScreen: (args: () => void) => void;
|
|
299
450
|
openBluetoothAdapter: (args: AsyncCallback<any>) => void;
|
|
451
|
+
openBluetoothAdapterAsync: (args?: AsyncCallback<any> | undefined) => Promise<any>;
|
|
300
452
|
openDocument: (args: {
|
|
301
453
|
filePath: string;
|
|
302
454
|
fileType: string;
|
|
303
455
|
} & AsyncCallback<any>) => void;
|
|
456
|
+
openDocumentAsync: (args?: ({
|
|
457
|
+
filePath: string;
|
|
458
|
+
fileType: string;
|
|
459
|
+
} & AsyncCallback<any>) | undefined) => Promise<any>;
|
|
304
460
|
openSetting: (args?: AsyncCallback<{
|
|
305
461
|
authSetting: {
|
|
306
462
|
camera: any;
|
|
@@ -310,14 +466,29 @@ declare const _default: {
|
|
|
310
466
|
phoneNumber: any;
|
|
311
467
|
};
|
|
312
468
|
}> | undefined) => void;
|
|
469
|
+
openSettingAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
|
|
313
470
|
pageScrollTo: (args: PageScrollToArgs) => void;
|
|
471
|
+
pageScrollToAsync: (args?: PageScrollToArgs | undefined) => Promise<undefined>;
|
|
314
472
|
previewImage: (args: PreviewImageArgs) => void;
|
|
473
|
+
previewImageAsync: (args?: PreviewImageArgs | undefined) => Promise<undefined>;
|
|
315
474
|
prompt: (args: PromptArgs) => void;
|
|
475
|
+
promptAsync: (args?: PromptArgs | undefined) => Promise<PromptCallbackValue>;
|
|
316
476
|
readBLECharacteristicValue: (args: ReadBLECharacteristicValueArgs) => void;
|
|
477
|
+
readBLECharacteristicValueAsync: (args?: ReadBLECharacteristicValueArgs | undefined) => Promise<{
|
|
478
|
+
characteristic: {
|
|
479
|
+
characteristicId: string;
|
|
480
|
+
serviceId: string;
|
|
481
|
+
value: string;
|
|
482
|
+
};
|
|
483
|
+
}>;
|
|
317
484
|
redirectTo: (args: RedirectToArgs) => void;
|
|
485
|
+
redirectToAsync: (args?: RedirectToArgs | undefined) => Promise<undefined>;
|
|
318
486
|
reLaunch: (args: ReLaunchArgs) => void;
|
|
487
|
+
reLaunchAsync: (args?: ReLaunchArgs | undefined) => Promise<undefined>;
|
|
319
488
|
removeSavedFile: (args: RemoveSavedFileArgs) => void;
|
|
489
|
+
removeSavedFileAsync: (args?: RemoveSavedFileArgs | undefined) => Promise<void>;
|
|
320
490
|
removeStorage: (args: RemoveStorageArgs) => void;
|
|
491
|
+
removeStorageAsync: (args?: RemoveStorageArgs | undefined) => Promise<undefined>;
|
|
321
492
|
removeStorageSync: (args: {
|
|
322
493
|
key: string;
|
|
323
494
|
}) => void;
|
|
@@ -335,56 +506,123 @@ declare const _default: {
|
|
|
335
506
|
status: number;
|
|
336
507
|
headers: any;
|
|
337
508
|
}>) => void;
|
|
509
|
+
requestAsync: (args?: ({
|
|
510
|
+
url: string;
|
|
511
|
+
headers?: {
|
|
512
|
+
[key: string]: string;
|
|
513
|
+
} | undefined;
|
|
514
|
+
method?: "GET" | "POST" | undefined;
|
|
515
|
+
data?: any;
|
|
516
|
+
timeout?: number | undefined;
|
|
517
|
+
dataType?: "json" | "text" | "base64" | "arraybuffer" | undefined;
|
|
518
|
+
} & import("@hylid/types").AsyncCallback<{
|
|
519
|
+
data: any;
|
|
520
|
+
status: number;
|
|
521
|
+
headers: any;
|
|
522
|
+
}>) | undefined) => Promise<{
|
|
523
|
+
data: any;
|
|
524
|
+
status: number;
|
|
525
|
+
headers: any;
|
|
526
|
+
}>;
|
|
338
527
|
rpc: (args: import("@hylid/types").IRPCArgs & import("@hylid/types").AsyncCallback<{
|
|
339
528
|
headers: Record<string, string>;
|
|
340
529
|
resData: object;
|
|
341
530
|
}>) => void;
|
|
531
|
+
rpcAsync: (args?: (import("@hylid/types").IRPCArgs & import("@hylid/types").AsyncCallback<{
|
|
532
|
+
headers: Record<string, string>;
|
|
533
|
+
resData: object;
|
|
534
|
+
}>) | undefined) => Promise<{
|
|
535
|
+
headers: Record<string, string>;
|
|
536
|
+
resData: object;
|
|
537
|
+
}>;
|
|
342
538
|
saveFile: (args: SaveFileArgs) => void;
|
|
539
|
+
saveFileAsync: (args?: SaveFileArgs | undefined) => Promise<{
|
|
540
|
+
apFilePath: string;
|
|
541
|
+
}>;
|
|
343
542
|
saveImage: (args: SaveImageArgs) => void;
|
|
543
|
+
saveImageAsync: (args?: SaveImageArgs | undefined) => Promise<undefined>;
|
|
344
544
|
scan: (args: ScanArgs) => void;
|
|
545
|
+
scanAsync: (args?: ScanArgs | undefined) => Promise<ScanCallbackValue>;
|
|
345
546
|
sendSocketMessage: (args?: SendSocketMessageArgs | undefined) => void;
|
|
547
|
+
sendSocketMessageAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
|
|
346
548
|
setBackgroundColor: (args: SetBackgroundColorArgs) => void;
|
|
549
|
+
setBackgroundColorAsync: (args?: SetBackgroundColorArgs | undefined) => Promise<undefined>;
|
|
347
550
|
setCanPullDown: (args: {
|
|
348
551
|
canPullDown: boolean;
|
|
349
552
|
} & import("@hylid/types").AsyncCallback<void>) => void;
|
|
553
|
+
setCanPullDownAsync: (args?: ({
|
|
554
|
+
canPullDown: boolean;
|
|
555
|
+
} & import("@hylid/types").AsyncCallback<void>) | undefined) => Promise<void>;
|
|
350
556
|
setClipboard: (args: SetClipboardArgs) => void;
|
|
557
|
+
setClipboardAsync: (args?: SetClipboardArgs | undefined) => Promise<undefined>;
|
|
351
558
|
setKeepScreenOn: (args: SetKeepScreenOnArgs) => void;
|
|
559
|
+
setKeepScreenOnAsync: (args?: SetKeepScreenOnArgs | undefined) => Promise<undefined>;
|
|
352
560
|
setNavigationBar: (args: SetNavigationBarArgs) => void;
|
|
561
|
+
setNavigationBarAsync: (args?: SetNavigationBarArgs | undefined) => Promise<undefined>;
|
|
353
562
|
setScreenBrightness: (args: SetScreenBrightnessArgs) => void;
|
|
563
|
+
setScreenBrightnessAsync: (args?: SetScreenBrightnessArgs | undefined) => Promise<undefined>;
|
|
354
564
|
setStorage: (args: SetStorage) => void;
|
|
565
|
+
setStorageAsync: (args?: SetStorage | undefined) => Promise<undefined>;
|
|
355
566
|
setStorageSync: (args: {
|
|
356
567
|
key: string;
|
|
357
568
|
data: any;
|
|
358
569
|
}) => void;
|
|
359
570
|
setTabBarStyle: (args: SetTabBarStyleArgs) => void;
|
|
571
|
+
setTabBarStyleAsync: (args?: SetTabBarStyleArgs | undefined) => Promise<any>;
|
|
360
572
|
showActionSheet: (args: ShowActionSheetArgs) => void;
|
|
573
|
+
showActionSheetAsync: (args?: ShowActionSheetArgs | undefined) => Promise<any>;
|
|
361
574
|
showAuthGuide: (args: import("@hylid/types").AsyncCallback<{
|
|
362
575
|
shown: boolean;
|
|
363
576
|
}> & {
|
|
364
577
|
authType: string;
|
|
365
578
|
bizType?: string | undefined;
|
|
366
579
|
}) => void;
|
|
580
|
+
showAuthGuideAsync: (args?: (import("@hylid/types").AsyncCallback<{
|
|
581
|
+
shown: boolean;
|
|
582
|
+
}> & {
|
|
583
|
+
authType: string;
|
|
584
|
+
bizType?: string | undefined;
|
|
585
|
+
}) | undefined) => Promise<{
|
|
586
|
+
shown: boolean;
|
|
587
|
+
}>;
|
|
367
588
|
showLoading: (args?: ShowLoadingArgs | undefined) => void;
|
|
589
|
+
showLoadingAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
|
|
368
590
|
showNavigationBarLoading: () => void;
|
|
591
|
+
showNavigationBarLoadingAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
|
|
369
592
|
showToast: (args?: ShowToastArgs | undefined) => void;
|
|
593
|
+
showToastAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
|
|
370
594
|
signContract: (args: SignContractArgs) => void;
|
|
595
|
+
signContractAsync: (args?: SignContractArgs | undefined) => Promise<{
|
|
596
|
+
authState: string;
|
|
597
|
+
authCode: string;
|
|
598
|
+
}>;
|
|
371
599
|
startBluetoothDevicesDiscovery: (args?: StartBluetoothDevicesDiscoveryArgs | undefined) => void;
|
|
600
|
+
startBluetoothDevicesDiscoveryAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
|
|
372
601
|
startPullDownRefresh: (args?: AsyncCallback<any> | undefined) => void;
|
|
602
|
+
startPullDownRefreshAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
|
|
373
603
|
stopBluetoothDevicesDiscovery: (args?: AsyncCallback<any> | undefined) => void;
|
|
604
|
+
stopBluetoothDevicesDiscoveryAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
|
|
374
605
|
stopPullDownRefresh: (args?: AsyncCallback<any> | undefined) => void;
|
|
606
|
+
stopPullDownRefreshAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
|
|
375
607
|
switchTab: (args: SwitchTabArgs) => void;
|
|
608
|
+
switchTabAsync: (args?: SwitchTabArgs | undefined) => Promise<undefined>;
|
|
609
|
+
tradePay: (args: TradePayArgs) => void;
|
|
376
610
|
crossPay: (args?: TradePayArgs | undefined) => void;
|
|
611
|
+
crossPayAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
|
|
377
612
|
uploadFile: (args: UploadFileArgs) => void;
|
|
613
|
+
uploadFileAsync: (args?: UploadFileArgs | undefined) => Promise<UploadFileCallbackValue>;
|
|
378
614
|
vibrate: (args: AsyncCallback<void>) => void;
|
|
615
|
+
vibrateAsync: (args?: AsyncCallback<void> | undefined) => Promise<void>;
|
|
379
616
|
watchShake: (args?: AsyncCallback<any> | undefined) => void;
|
|
617
|
+
watchShakeAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
|
|
380
618
|
writeBLECharacteristicValue: (args: WriteBLECharacteristicValueArgs) => void;
|
|
619
|
+
writeBLECharacteristicValueAsync: (args?: WriteBLECharacteristicValueArgs | undefined) => Promise<any>;
|
|
381
620
|
getLaunchOptionsSync: () => any;
|
|
382
621
|
createSelectorQuery: () => SelectorQuery;
|
|
383
622
|
canIUse: (args: string) => boolean;
|
|
384
623
|
getStorageInfoSync: (args?: any) => void;
|
|
385
624
|
showSharePanel: (args?: any) => void;
|
|
386
|
-
|
|
625
|
+
showSharePanelAsync: (args?: any) => Promise<unknown>;
|
|
387
626
|
};
|
|
388
627
|
export default _default;
|
|
389
|
-
export { addPhoneContact, alert, chooseImage, choosePhoneContact, clearStorage, clearStorageSync, closeBluetoothAdapter, closeSocket, confirm, connectBLEDevice, connectSocket, createAnimation, createWebViewContext, datePicker, disconnectBLEDevice, downloadFile, getAppIdSync, getAuthCode, getBatteryInfo, getBLEDeviceCharacteristics, getBLEDeviceServices, getBluetoothAdapterState, getBluetoothDevices, getClipboard, getConnectedBluetoothDevices, getFileInfo, getImageInfo, getLocation, getNetworkType, getOpenUserInfo, getSavedFileInfo, getSavedFileList, getScreenBrightness, getServerTime, getSetting, getSiteInfo, getStorage, getStorageSync, getSystemInfo, getSystemInfoSync, hideBackHome, hideKeyboard, hideLoading, hideNavigationBarLoading, hideTabBar, hideToast, makePhoneCall, multiLevelSelect, navigateBack, navigateBackMiniProgram, navigateTo, navigateToMiniProgram, notifyBLECharacteristicValueChange, offAccelerometerChange, offBLECharacteristicValueChange, offBLEConnectionStateChanged, offBluetoothAdapterStateChange, offBluetoothDeviceFound, offCompassChange, offMemoryWarning, offSocketClose, offSocketError, offSocketMessage, offSocketOpen, offUserCaptureScreen, onAccelerometerChange, onBLECharacteristicValueChange, onBLEConnectionStateChanged, onBluetoothAdapterStateChange, onBluetoothDeviceFound, onCompassChange, onMemoryWarning, onSocketClose, onSocketError, onSocketMessage, onSocketOpen, onUserCaptureScreen, openBluetoothAdapter, openDocument, openSetting, pageScrollTo, previewImage, prompt, readBLECharacteristicValue, redirectTo, reLaunch, removeSavedFile, removeStorage, removeStorageSync, request, rpc, saveFile, saveImage, scan, sendSocketMessage, setBackgroundColor, setCanPullDown, setClipboard, setKeepScreenOn, setNavigationBar, setScreenBrightness, setStorage, setStorageSync, setTabBarStyle, showActionSheet, showAuthGuide, showLoading, showNavigationBarLoading, showToast, signContract, startBluetoothDevicesDiscovery, startPullDownRefresh, stopBluetoothDevicesDiscovery, stopPullDownRefresh, switchTab, crossPay, uploadFile, vibrate, watchShake, writeBLECharacteristicValue, getLaunchOptionsSync, createSelectorQuery, canIUse, getStorageInfoSync, showSharePanel,
|
|
390
|
-
export { addPhoneContactAsync, alertAsync, chooseImageAsync, choosePhoneContactAsync, clearStorageAsync, closeBluetoothAdapterAsync, closeSocketAsync, confirmAsync, connectBLEDeviceAsync, connectSocketAsync, datePickerAsync, disconnectBLEDeviceAsync, downloadFileAsync, getAuthCodeAsync, getBatteryInfoAsync, getBLEDeviceCharacteristicsAsync, getBLEDeviceServicesAsync, getBluetoothAdapterStateAsync, getBluetoothDevicesAsync, getClipboardAsync, getConnectedBluetoothDevicesAsync, getFileInfoAsync, getImageInfoAsync, getLocationAsync, getNetworkTypeAsync, getOpenUserInfoAsync, getSavedFileInfoAsync, getSavedFileListAsync, getScreenBrightnessAsync, getServerTimeAsync, getSettingAsync, getSiteInfoAsync, getStorageAsync, getSystemInfoAsync, hideBackHomeAsync, hideKeyboardAsync, hideLoadingAsync, hideNavigationBarLoadingAsync, hideTabBarAsync, hideToastAsync, makePhoneCallAsync, multiLevelSelectAsync, navigateBackAsync, navigateBackMiniProgramAsync, navigateToAsync, navigateToMiniProgramAsync, notifyBLECharacteristicValueChangeAsync, openBluetoothAdapterAsync, openDocumentAsync, openSettingAsync, pageScrollToAsync, previewImageAsync, promptAsync, readBLECharacteristicValueAsync, redirectToAsync, reLaunchAsync, removeSavedFileAsync, removeStorageAsync, requestAsync, rpcAsync, saveFileAsync, saveImageAsync, scanAsync, sendSocketMessageAsync, setBackgroundColorAsync, setCanPullDownAsync, setClipboardAsync, setKeepScreenOnAsync, setNavigationBarAsync, setScreenBrightnessAsync, setStorageAsync, setTabBarStyleAsync, showActionSheetAsync, showAuthGuideAsync, showLoadingAsync, showNavigationBarLoadingAsync, showToastAsync, signContractAsync, startBluetoothDevicesDiscoveryAsync, startPullDownRefreshAsync, stopBluetoothDevicesDiscoveryAsync, stopPullDownRefreshAsync, switchTabAsync, crossPayAsync, uploadFileAsync, vibrateAsync, watchShakeAsync, writeBLECharacteristicValueAsync, showSharePanelAsync, };
|
|
628
|
+
export { addPhoneContact, addPhoneContactAsync, alert, alertAsync, chooseImage, chooseImageAsync, choosePhoneContact, choosePhoneContactAsync, clearStorage, clearStorageAsync, clearStorageSync, closeBluetoothAdapter, closeBluetoothAdapterAsync, closeSocket, closeSocketAsync, confirm, confirmAsync, connectBLEDevice, connectBLEDeviceAsync, connectSocket, connectSocketAsync, createAnimation, createWebViewContext, datePicker, datePickerAsync, disconnectBLEDevice, disconnectBLEDeviceAsync, downloadFile, downloadFileAsync, getAppIdSync, getAuthCode, getAuthCodeAsync, getBatteryInfo, getBatteryInfoAsync, getBLEDeviceCharacteristics, getBLEDeviceCharacteristicsAsync, getBLEDeviceServices, getBLEDeviceServicesAsync, getBluetoothAdapterState, getBluetoothAdapterStateAsync, getBluetoothDevices, getBluetoothDevicesAsync, getClipboard, getClipboardAsync, getConnectedBluetoothDevices, getConnectedBluetoothDevicesAsync, getFileInfo, getFileInfoAsync, getImageInfo, getImageInfoAsync, getLocation, getLocationAsync, getNetworkType, getNetworkTypeAsync, getOpenUserInfo, getOpenUserInfoAsync, getSavedFileInfo, getSavedFileInfoAsync, getSavedFileList, getSavedFileListAsync, getScreenBrightness, getScreenBrightnessAsync, getServerTime, getServerTimeAsync, getSetting, getSettingAsync, getSiteInfo, getSiteInfoAsync, getStorage, getStorageAsync, getStorageSync, getSystemInfo, getSystemInfoAsync, getSystemInfoSync, hideBackHome, hideBackHomeAsync, hideKeyboard, hideKeyboardAsync, hideLoading, hideLoadingAsync, hideNavigationBarLoading, hideNavigationBarLoadingAsync, hideTabBar, hideTabBarAsync, hideToast, hideToastAsync, makePhoneCall, makePhoneCallAsync, multiLevelSelect, multiLevelSelectAsync, navigateBack, navigateBackAsync, navigateBackMiniProgram, navigateBackMiniProgramAsync, navigateTo, navigateToAsync, navigateToMiniProgram, navigateToMiniProgramAsync, notifyBLECharacteristicValueChange, notifyBLECharacteristicValueChangeAsync, offAccelerometerChange, offBLECharacteristicValueChange, offBLEConnectionStateChanged, offBluetoothAdapterStateChange, offBluetoothDeviceFound, offCompassChange, offMemoryWarning, offSocketClose, offSocketError, offSocketMessage, offSocketOpen, offUserCaptureScreen, onAccelerometerChange, onBLECharacteristicValueChange, onBLEConnectionStateChanged, onBluetoothAdapterStateChange, onBluetoothDeviceFound, onCompassChange, onMemoryWarning, onSocketClose, onSocketError, onSocketMessage, onSocketOpen, onUserCaptureScreen, openBluetoothAdapter, openBluetoothAdapterAsync, openDocument, openDocumentAsync, openSetting, openSettingAsync, pageScrollTo, pageScrollToAsync, previewImage, previewImageAsync, prompt, promptAsync, readBLECharacteristicValue, readBLECharacteristicValueAsync, redirectTo, redirectToAsync, reLaunch, reLaunchAsync, removeSavedFile, removeSavedFileAsync, removeStorage, removeStorageAsync, removeStorageSync, request, requestAsync, rpc, rpcAsync, saveFile, saveFileAsync, saveImage, saveImageAsync, scan, scanAsync, sendSocketMessage, sendSocketMessageAsync, setBackgroundColor, setBackgroundColorAsync, setCanPullDown, setCanPullDownAsync, setClipboard, setClipboardAsync, setKeepScreenOn, setKeepScreenOnAsync, setNavigationBar, setNavigationBarAsync, setScreenBrightness, setScreenBrightnessAsync, setStorage, setStorageAsync, setStorageSync, setTabBarStyle, setTabBarStyleAsync, showActionSheet, showActionSheetAsync, showAuthGuide, showAuthGuideAsync, showLoading, showLoadingAsync, showNavigationBarLoading, showNavigationBarLoadingAsync, showToast, showToastAsync, signContract, signContractAsync, startBluetoothDevicesDiscovery, startBluetoothDevicesDiscoveryAsync, startPullDownRefresh, startPullDownRefreshAsync, stopBluetoothDevicesDiscovery, stopBluetoothDevicesDiscoveryAsync, stopPullDownRefresh, stopPullDownRefreshAsync, switchTab, switchTabAsync, tradePay, crossPay, crossPayAsync, uploadFile, uploadFileAsync, vibrate, vibrateAsync, watchShake, watchShakeAsync, writeBLECharacteristicValue, writeBLECharacteristicValueAsync, getLaunchOptionsSync, createSelectorQuery, canIUse, getStorageInfoSync, showSharePanel, showSharePanelAsync, };
|