hylid-bridge 4.0.22 → 4.0.24-alpha.2
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 +165 -162
- package/canIUse.json +1 -1
- package/lib/bridges.d.ts +57 -4
- package/lib/bridges.js +31 -5
- package/lib/clients/mp/demo/index.d.ts +6 -1
- package/lib/clients/mp_web/alipayhk/index.d.ts +6 -1
- package/lib/clients/mp_web/dana/index.d.ts +6 -1
- package/lib/clients/mp_web/demo/index.d.ts +6 -1
- package/lib/clients/mp_web/gcash/index.d.ts +6 -1
- package/lib/clients/mp_web/mpay/index.d.ts +6 -1
- package/lib/clients/mp_web/tmn/index.d.ts +6 -1
- package/lib/clients/mp_web/tngd/index.d.ts +6 -1
- package/lib/clients/mp_web/toss/index.d.ts +6 -1
- package/lib/clients/web/alipay/getClientInfo.d.ts +2 -0
- package/lib/clients/web/alipay/getClientInfo.js +3 -0
- package/lib/clients/web/alipay/getStorage.d.ts +2 -0
- package/lib/clients/web/alipay/getStorage.js +3 -0
- package/lib/clients/web/alipay/index.d.ts +20 -3
- package/lib/clients/web/alipay/index.js +4 -2
- package/lib/clients/web/alipay/request.d.ts +2 -0
- package/lib/clients/web/alipay/request.js +3 -0
- package/lib/clients/web/alipay/setNavigationBar.d.ts +2 -0
- package/lib/clients/web/alipay/setNavigationBar.js +3 -0
- package/lib/clients/web/alipay/setStorage.d.ts +2 -0
- package/lib/clients/web/alipay/setStorage.js +3 -0
- package/lib/clients/web/alipayhk/getClientInfo.d.ts +2 -0
- package/lib/clients/web/alipayhk/getClientInfo.js +3 -0
- package/lib/clients/web/alipayhk/index.d.ts +24 -0
- package/lib/clients/web/alipayhk/index.js +9 -0
- package/lib/clients/web/demo/index.d.ts +2 -4
- package/lib/clients/web/demo/index.js +2 -4
- package/lib/common/apis/custom/mp_web/mpay/getAppToken.d.ts +6 -1
- package/lib/common/apis/custom/web/getStorage.d.ts +3 -0
- package/lib/common/apis/custom/web/getStorage.js +3 -0
- package/lib/common/apis/custom/web/request.d.ts +3 -0
- package/lib/common/apis/custom/web/request.js +3 -0
- package/lib/common/apis/custom/web/setNavigationBar.d.ts +3 -0
- package/lib/common/apis/custom/web/setNavigationBar.js +3 -0
- package/lib/common/apis/custom/web/setStorage.d.ts +3 -0
- package/lib/common/apis/custom/web/setStorage.js +3 -0
- package/lib/common/apis/generated/mp/getAppToken.d.ts +14 -2
- package/lib/common/apis/generated/mp_web/getAppToken.d.ts +14 -2
- package/lib/common/apis/generated/web/getAppToken.d.ts +14 -2
- package/lib/common/apis/generated/web/getClientInfo.d.ts +33 -0
- package/lib/common/apis/generated/web/getClientInfo.js +8 -0
- package/lib/dsl.d.ts +11 -12
- 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_mpay.js +1 -1
- package/lib/umd/web_alipay.js +1 -1
- package/lib/umd/web_alipayhk.js +1 -0
- package/lib/umd/web_demo.js +1 -1
- package/lib/whichCanIUse/compatibilities.json +161 -161
- package/package.json +11 -7
- /package/lib/clients/web/{demo → alipayhk}/getAppToken.d.ts +0 -0
- /package/lib/clients/web/{demo → alipayhk}/getAppToken.js +0 -0
|
@@ -177,7 +177,12 @@ declare const _default: {
|
|
|
177
177
|
getAppIdSync: () => {
|
|
178
178
|
appId: string;
|
|
179
179
|
};
|
|
180
|
-
getAppToken: (args
|
|
180
|
+
getAppToken: (args: {
|
|
181
|
+
appName: string;
|
|
182
|
+
appKey: string;
|
|
183
|
+
} & import("@hylid/types").AsyncCallback<{
|
|
184
|
+
appToken: string;
|
|
185
|
+
}>) => void;
|
|
181
186
|
getAuthCode: (args: {
|
|
182
187
|
scopes: string | string[];
|
|
183
188
|
appId?: string | undefined;
|
|
@@ -142,7 +142,12 @@ declare const _default: {
|
|
|
142
142
|
} & AsyncCallback<any>) => void;
|
|
143
143
|
downloadFile: (args: DownloadFileArgs) => void;
|
|
144
144
|
exitApp: (args?: any) => void;
|
|
145
|
-
getAppToken: (args
|
|
145
|
+
getAppToken: (args: {
|
|
146
|
+
appName: string;
|
|
147
|
+
appKey: string;
|
|
148
|
+
} & import("@hylid/types").AsyncCallback<{
|
|
149
|
+
appToken: string;
|
|
150
|
+
}>) => void;
|
|
146
151
|
getAuthCode: (args: {
|
|
147
152
|
scopes: string | string[];
|
|
148
153
|
appId?: string | undefined;
|
|
@@ -140,7 +140,12 @@ declare const _default: {
|
|
|
140
140
|
deviceId: string;
|
|
141
141
|
} & AsyncCallback<any>) => void;
|
|
142
142
|
downloadFile: (args: DownloadFileArgs) => void;
|
|
143
|
-
getAppToken: (args
|
|
143
|
+
getAppToken: (args: {
|
|
144
|
+
appName: string;
|
|
145
|
+
appKey: string;
|
|
146
|
+
} & import("@hylid/types").AsyncCallback<{
|
|
147
|
+
appToken: string;
|
|
148
|
+
}>) => void;
|
|
144
149
|
getAuthCode: (args: {
|
|
145
150
|
scopes: string | string[];
|
|
146
151
|
appId?: string | undefined;
|
|
@@ -162,7 +162,12 @@ declare const _default: {
|
|
|
162
162
|
} & AsyncCallback<any>) => void;
|
|
163
163
|
downloadFile: (args: DownloadFileArgs) => void;
|
|
164
164
|
exitApp: (args?: any) => void;
|
|
165
|
-
getAppToken: (args
|
|
165
|
+
getAppToken: (args: {
|
|
166
|
+
appName: string;
|
|
167
|
+
appKey: string;
|
|
168
|
+
} & import("@hylid/types").AsyncCallback<{
|
|
169
|
+
appToken: string;
|
|
170
|
+
}>) => void;
|
|
166
171
|
getAuthCode: (args: {
|
|
167
172
|
scopes: string | string[];
|
|
168
173
|
appId?: string | undefined;
|
|
@@ -140,7 +140,12 @@ declare const _default: {
|
|
|
140
140
|
deviceId: string;
|
|
141
141
|
} & AsyncCallback<any>) => void;
|
|
142
142
|
downloadFile: (args: DownloadFileArgs) => void;
|
|
143
|
-
getAppToken: (args
|
|
143
|
+
getAppToken: (args: {
|
|
144
|
+
appName: string;
|
|
145
|
+
appKey: string;
|
|
146
|
+
} & import("@hylid/types").AsyncCallback<{
|
|
147
|
+
appToken: string;
|
|
148
|
+
}>) => void;
|
|
144
149
|
getAuthCode: (args: {
|
|
145
150
|
scopes: string | string[];
|
|
146
151
|
appId?: string | undefined;
|
|
@@ -401,7 +401,12 @@ declare const _default: {
|
|
|
401
401
|
showTabBar: (args: {
|
|
402
402
|
animation?: boolean | undefined;
|
|
403
403
|
} & import("@hylid/types").AsyncCallback<void>) => void;
|
|
404
|
-
getAppToken: (args
|
|
404
|
+
getAppToken: (args: {
|
|
405
|
+
appName: string;
|
|
406
|
+
appKey: string;
|
|
407
|
+
} & import("@hylid/types").AsyncCallback<{
|
|
408
|
+
appToken: string;
|
|
409
|
+
}>) => void;
|
|
405
410
|
getLocation: (args: {
|
|
406
411
|
bizType?: string | undefined;
|
|
407
412
|
requestType?: number | undefined;
|
|
@@ -140,7 +140,12 @@ declare const _default: {
|
|
|
140
140
|
deviceId: string;
|
|
141
141
|
} & AsyncCallback<any>) => void;
|
|
142
142
|
downloadFile: (args: DownloadFileArgs) => void;
|
|
143
|
-
getAppToken: (args
|
|
143
|
+
getAppToken: (args: {
|
|
144
|
+
appName: string;
|
|
145
|
+
appKey: string;
|
|
146
|
+
} & import("@hylid/types").AsyncCallback<{
|
|
147
|
+
appToken: string;
|
|
148
|
+
}>) => void;
|
|
144
149
|
getAuthCode: (args: {
|
|
145
150
|
scopes: string | string[];
|
|
146
151
|
appId?: string | undefined;
|
|
@@ -140,7 +140,12 @@ declare const _default: {
|
|
|
140
140
|
deviceId: string;
|
|
141
141
|
} & AsyncCallback<any>) => void;
|
|
142
142
|
downloadFile: (args: DownloadFileArgs) => void;
|
|
143
|
-
getAppToken: (args
|
|
143
|
+
getAppToken: (args: {
|
|
144
|
+
appName: string;
|
|
145
|
+
appKey: string;
|
|
146
|
+
} & import("@hylid/types").AsyncCallback<{
|
|
147
|
+
appToken: string;
|
|
148
|
+
}>) => void;
|
|
144
149
|
getAuthCode: (args: {
|
|
145
150
|
scopes: string | string[];
|
|
146
151
|
appId?: string | undefined;
|
|
@@ -143,7 +143,12 @@ declare const _default: {
|
|
|
143
143
|
} & AsyncCallback<any>) => void;
|
|
144
144
|
downloadFile: (args: DownloadFileArgs) => void;
|
|
145
145
|
exitApp: (args?: any) => void;
|
|
146
|
-
getAppToken: (args
|
|
146
|
+
getAppToken: (args: {
|
|
147
|
+
appName: string;
|
|
148
|
+
appKey: string;
|
|
149
|
+
} & import("@hylid/types").AsyncCallback<{
|
|
150
|
+
appToken: string;
|
|
151
|
+
}>) => void;
|
|
147
152
|
getAuthCode: (args: {
|
|
148
153
|
scopes: string | string[];
|
|
149
154
|
appId?: string | undefined;
|
|
@@ -2,6 +2,7 @@ import { addPhoneContact, addPhoneContactAsync } from '../../../common/apis/gene
|
|
|
2
2
|
import { chooseImage, chooseImageAsync } from '../../../common/apis/generated/web/chooseImage';
|
|
3
3
|
import { exitApp, exitAppAsync } from '../../../common/apis/generated/web/exitApp';
|
|
4
4
|
import { getAppToken, getAppTokenAsync } from '../../../common/apis/generated/web/getAppToken';
|
|
5
|
+
import { getClientInfo, getClientInfoAsync } from '../../../common/apis/generated/web/getClientInfo';
|
|
5
6
|
import { getBatteryInfo, getBatteryInfoAsync } from '../../../common/apis/generated/web/getBatteryInfo';
|
|
6
7
|
import { getClipboard, getClipboardAsync } from '../../../common/apis/generated/web/getClipboard';
|
|
7
8
|
import { getFileInfo, getFileInfoAsync } from '../../../common/apis/generated/web/getFileInfo';
|
|
@@ -83,7 +84,23 @@ declare const _default: {
|
|
|
83
84
|
addPhoneContact: (args: Partial<AddPhoneContactArgs>) => void;
|
|
84
85
|
chooseImage: (args: ChooseImageArgs) => void;
|
|
85
86
|
exitApp: (args?: any) => void;
|
|
86
|
-
getAppToken: (args
|
|
87
|
+
getAppToken: (args: {
|
|
88
|
+
appName: string;
|
|
89
|
+
appKey: string;
|
|
90
|
+
} & import("@hylid/types").AsyncCallback<{
|
|
91
|
+
appToken: string;
|
|
92
|
+
}>) => void;
|
|
93
|
+
getClientInfo: (args: import("@hylid/types").AsyncCallback<{
|
|
94
|
+
"client.version": string;
|
|
95
|
+
umidToken?: string | undefined;
|
|
96
|
+
"os.name": string;
|
|
97
|
+
verion: string;
|
|
98
|
+
"os.version": string;
|
|
99
|
+
"device.id": string;
|
|
100
|
+
channelId?: string | undefined;
|
|
101
|
+
model: string;
|
|
102
|
+
device: string;
|
|
103
|
+
}>) => void;
|
|
87
104
|
getBatteryInfo: (args?: AsyncCallback<{
|
|
88
105
|
level: number;
|
|
89
106
|
isCharging: boolean;
|
|
@@ -261,5 +278,5 @@ declare const _default: {
|
|
|
261
278
|
} & import("@hylid/types").AsyncCallback<void>) => void;
|
|
262
279
|
};
|
|
263
280
|
export default _default;
|
|
264
|
-
export { addPhoneContact, chooseImage, exitApp, getAppToken, getBatteryInfo, getClipboard, getFileInfo, getImageInfo, getSavedFileInfo, getSavedFileList, getScreenBrightness, getServerTime, getSetting, getSystemInfo, hideKeyboard, hideLoading, hideToast, makePhoneCall, navigateBackMiniProgram, navigateToMiniProgram, openDocument, openSetting, prompt, removeSavedFile, rpc, saveFile, scan, setBackgroundColor, setCanPullDown, setClipboard, setOptionMenu, setScreenBrightness, showLoading, signContract, startApp, startPullDownRefresh, crossPay, vibrate, watchShake, setTransparentTitle, getRunScene, chooseFileFromDisk, chooseVideo, compressImage, alert, choosePhoneContact, clearStorage, confirm, datePicker, downloadFile, getAuthCode, getLocation, getNetworkType, getPhoneNumber, getSiteInfo, getStorage, hideBackHome, hideNavigationBarLoading, hideTabBar, multiLevelSelect, navigateBack, navigateTo, onUserCaptureScreen, previewImage, redirectTo, removeStorage, request, saveImage, setKeepScreenOn, setNavigationBar, setStorage, setTabBarStyle, showActionSheet, showAuthGuide, showNavigationBarLoading, showToast, stopPullDownRefresh, tradePay, uploadFile, setTabBarItem, showTabBar, };
|
|
265
|
-
export { addPhoneContactAsync, chooseImageAsync, exitAppAsync, getAppTokenAsync, getBatteryInfoAsync, getClipboardAsync, getFileInfoAsync, getImageInfoAsync, getSavedFileInfoAsync, getSavedFileListAsync, getScreenBrightnessAsync, getServerTimeAsync, getSettingAsync, getSystemInfoAsync, hideKeyboardAsync, hideLoadingAsync, hideToastAsync, makePhoneCallAsync, navigateBackMiniProgramAsync, navigateToMiniProgramAsync, openDocumentAsync, openSettingAsync, promptAsync, removeSavedFileAsync, rpcAsync, saveFileAsync, scanAsync, setBackgroundColorAsync, setCanPullDownAsync, setClipboardAsync, setOptionMenuAsync, setScreenBrightnessAsync, showLoadingAsync, signContractAsync, startAppAsync, startPullDownRefreshAsync, crossPayAsync, vibrateAsync, watchShakeAsync, setTransparentTitleAsync, getRunSceneAsync, chooseFileFromDiskAsync, chooseVideoAsync, compressImageAsync, };
|
|
281
|
+
export { addPhoneContact, chooseImage, exitApp, getAppToken, getClientInfo, getBatteryInfo, getClipboard, getFileInfo, getImageInfo, getSavedFileInfo, getSavedFileList, getScreenBrightness, getServerTime, getSetting, getSystemInfo, hideKeyboard, hideLoading, hideToast, makePhoneCall, navigateBackMiniProgram, navigateToMiniProgram, openDocument, openSetting, prompt, removeSavedFile, rpc, saveFile, scan, setBackgroundColor, setCanPullDown, setClipboard, setOptionMenu, setScreenBrightness, showLoading, signContract, startApp, startPullDownRefresh, crossPay, vibrate, watchShake, setTransparentTitle, getRunScene, chooseFileFromDisk, chooseVideo, compressImage, alert, choosePhoneContact, clearStorage, confirm, datePicker, downloadFile, getAuthCode, getLocation, getNetworkType, getPhoneNumber, getSiteInfo, getStorage, hideBackHome, hideNavigationBarLoading, hideTabBar, multiLevelSelect, navigateBack, navigateTo, onUserCaptureScreen, previewImage, redirectTo, removeStorage, request, saveImage, setKeepScreenOn, setNavigationBar, setStorage, setTabBarStyle, showActionSheet, showAuthGuide, showNavigationBarLoading, showToast, stopPullDownRefresh, tradePay, uploadFile, setTabBarItem, showTabBar, };
|
|
282
|
+
export { addPhoneContactAsync, chooseImageAsync, exitAppAsync, getAppTokenAsync, getClientInfoAsync, getBatteryInfoAsync, getClipboardAsync, getFileInfoAsync, getImageInfoAsync, getSavedFileInfoAsync, getSavedFileListAsync, getScreenBrightnessAsync, getServerTimeAsync, getSettingAsync, getSystemInfoAsync, hideKeyboardAsync, hideLoadingAsync, hideToastAsync, makePhoneCallAsync, navigateBackMiniProgramAsync, navigateToMiniProgramAsync, openDocumentAsync, openSettingAsync, promptAsync, removeSavedFileAsync, rpcAsync, saveFileAsync, scanAsync, setBackgroundColorAsync, setCanPullDownAsync, setClipboardAsync, setOptionMenuAsync, setScreenBrightnessAsync, showLoadingAsync, signContractAsync, startAppAsync, startPullDownRefreshAsync, crossPayAsync, vibrateAsync, watchShakeAsync, setTransparentTitleAsync, getRunSceneAsync, chooseFileFromDiskAsync, chooseVideoAsync, compressImageAsync, };
|
|
@@ -3,6 +3,7 @@ import { addPhoneContact, addPhoneContactAsync } from '../../../common/apis/gene
|
|
|
3
3
|
import { chooseImage, chooseImageAsync } from '../../../common/apis/generated/web/chooseImage';
|
|
4
4
|
import { exitApp, exitAppAsync } from '../../../common/apis/generated/web/exitApp';
|
|
5
5
|
import { getAppToken, getAppTokenAsync } from '../../../common/apis/generated/web/getAppToken';
|
|
6
|
+
import { getClientInfo, getClientInfoAsync } from '../../../common/apis/generated/web/getClientInfo';
|
|
6
7
|
import { getBatteryInfo, getBatteryInfoAsync } from '../../../common/apis/generated/web/getBatteryInfo';
|
|
7
8
|
import { getClipboard, getClipboardAsync } from '../../../common/apis/generated/web/getClipboard';
|
|
8
9
|
import { getFileInfo, getFileInfoAsync } from '../../../common/apis/generated/web/getFileInfo';
|
|
@@ -85,6 +86,7 @@ export default {
|
|
|
85
86
|
chooseImage: chooseImage,
|
|
86
87
|
exitApp: exitApp,
|
|
87
88
|
getAppToken: getAppToken,
|
|
89
|
+
getClientInfo: getClientInfo,
|
|
88
90
|
getBatteryInfo: getBatteryInfo,
|
|
89
91
|
getClipboard: getClipboard,
|
|
90
92
|
getFileInfo: getFileInfo,
|
|
@@ -163,5 +165,5 @@ export default {
|
|
|
163
165
|
setTabBarItem: setTabBarItem,
|
|
164
166
|
showTabBar: showTabBar
|
|
165
167
|
};
|
|
166
|
-
export { addPhoneContact, chooseImage, exitApp, getAppToken, getBatteryInfo, getClipboard, getFileInfo, getImageInfo, getSavedFileInfo, getSavedFileList, getScreenBrightness, getServerTime, getSetting, getSystemInfo, hideKeyboard, hideLoading, hideToast, makePhoneCall, navigateBackMiniProgram, navigateToMiniProgram, openDocument, openSetting, prompt, removeSavedFile, rpc, saveFile, scan, setBackgroundColor, setCanPullDown, setClipboard, setOptionMenu, setScreenBrightness, showLoading, signContract, startApp, startPullDownRefresh, crossPay, vibrate, watchShake, setTransparentTitle, getRunScene, chooseFileFromDisk, chooseVideo, compressImage, alert, choosePhoneContact, clearStorage, confirm, datePicker, downloadFile, getAuthCode, getLocation, getNetworkType, getPhoneNumber, getSiteInfo, getStorage, hideBackHome, hideNavigationBarLoading, hideTabBar, multiLevelSelect, navigateBack, navigateTo, onUserCaptureScreen, previewImage, redirectTo, removeStorage, request, saveImage, setKeepScreenOn, setNavigationBar, setStorage, setTabBarStyle, showActionSheet, showAuthGuide, showNavigationBarLoading, showToast, stopPullDownRefresh, tradePay, uploadFile, setTabBarItem, showTabBar };
|
|
167
|
-
export { addPhoneContactAsync, chooseImageAsync, exitAppAsync, getAppTokenAsync, getBatteryInfoAsync, getClipboardAsync, getFileInfoAsync, getImageInfoAsync, getSavedFileInfoAsync, getSavedFileListAsync, getScreenBrightnessAsync, getServerTimeAsync, getSettingAsync, getSystemInfoAsync, hideKeyboardAsync, hideLoadingAsync, hideToastAsync, makePhoneCallAsync, navigateBackMiniProgramAsync, navigateToMiniProgramAsync, openDocumentAsync, openSettingAsync, promptAsync, removeSavedFileAsync, rpcAsync, saveFileAsync, scanAsync, setBackgroundColorAsync, setCanPullDownAsync, setClipboardAsync, setOptionMenuAsync, setScreenBrightnessAsync, showLoadingAsync, signContractAsync, startAppAsync, startPullDownRefreshAsync, crossPayAsync, vibrateAsync, watchShakeAsync, setTransparentTitleAsync, getRunSceneAsync, chooseFileFromDiskAsync, chooseVideoAsync, compressImageAsync };
|
|
168
|
+
export { addPhoneContact, chooseImage, exitApp, getAppToken, getClientInfo, getBatteryInfo, getClipboard, getFileInfo, getImageInfo, getSavedFileInfo, getSavedFileList, getScreenBrightness, getServerTime, getSetting, getSystemInfo, hideKeyboard, hideLoading, hideToast, makePhoneCall, navigateBackMiniProgram, navigateToMiniProgram, openDocument, openSetting, prompt, removeSavedFile, rpc, saveFile, scan, setBackgroundColor, setCanPullDown, setClipboard, setOptionMenu, setScreenBrightness, showLoading, signContract, startApp, startPullDownRefresh, crossPay, vibrate, watchShake, setTransparentTitle, getRunScene, chooseFileFromDisk, chooseVideo, compressImage, alert, choosePhoneContact, clearStorage, confirm, datePicker, downloadFile, getAuthCode, getLocation, getNetworkType, getPhoneNumber, getSiteInfo, getStorage, hideBackHome, hideNavigationBarLoading, hideTabBar, multiLevelSelect, navigateBack, navigateTo, onUserCaptureScreen, previewImage, redirectTo, removeStorage, request, saveImage, setKeepScreenOn, setNavigationBar, setStorage, setTabBarStyle, showActionSheet, showAuthGuide, showNavigationBarLoading, showToast, stopPullDownRefresh, tradePay, uploadFile, setTabBarItem, showTabBar };
|
|
169
|
+
export { addPhoneContactAsync, chooseImageAsync, exitAppAsync, getAppTokenAsync, getClientInfoAsync, getBatteryInfoAsync, getClipboardAsync, getFileInfoAsync, getImageInfoAsync, getSavedFileInfoAsync, getSavedFileListAsync, getScreenBrightnessAsync, getServerTimeAsync, getSettingAsync, getSystemInfoAsync, hideKeyboardAsync, hideLoadingAsync, hideToastAsync, makePhoneCallAsync, navigateBackMiniProgramAsync, navigateToMiniProgramAsync, openDocumentAsync, openSettingAsync, promptAsync, removeSavedFileAsync, rpcAsync, saveFileAsync, scanAsync, setBackgroundColorAsync, setCanPullDownAsync, setClipboardAsync, setOptionMenuAsync, setScreenBrightnessAsync, showLoadingAsync, signContractAsync, startAppAsync, startPullDownRefreshAsync, crossPayAsync, vibrateAsync, watchShakeAsync, setTransparentTitleAsync, getRunSceneAsync, chooseFileFromDiskAsync, chooseVideoAsync, compressImageAsync };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { getAppToken, getAppTokenAsync } from '../../../common/apis/generated/web/getAppToken';
|
|
2
|
+
import { getClientInfo, getClientInfoAsync } from '../../../common/apis/generated/web/getClientInfo';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
getAppToken: (args: {
|
|
5
|
+
appName: string;
|
|
6
|
+
appKey: string;
|
|
7
|
+
} & import("@hylid/types").AsyncCallback<{
|
|
8
|
+
appToken: string;
|
|
9
|
+
}>) => void;
|
|
10
|
+
getClientInfo: (args: import("@hylid/types").AsyncCallback<{
|
|
11
|
+
"client.version": string;
|
|
12
|
+
umidToken?: string | undefined;
|
|
13
|
+
"os.name": string;
|
|
14
|
+
verion: string;
|
|
15
|
+
"os.version": string;
|
|
16
|
+
"device.id": string;
|
|
17
|
+
channelId?: string | undefined;
|
|
18
|
+
model: string;
|
|
19
|
+
device: string;
|
|
20
|
+
}>) => void;
|
|
21
|
+
};
|
|
22
|
+
export default _default;
|
|
23
|
+
export { getAppToken, getClientInfo };
|
|
24
|
+
export { getAppTokenAsync, getClientInfoAsync };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// auto-generated
|
|
2
|
+
import { getAppToken, getAppTokenAsync } from '../../../common/apis/generated/web/getAppToken';
|
|
3
|
+
import { getClientInfo, getClientInfoAsync } from '../../../common/apis/generated/web/getClientInfo';
|
|
4
|
+
export default {
|
|
5
|
+
getAppToken: getAppToken,
|
|
6
|
+
getClientInfo: getClientInfo
|
|
7
|
+
};
|
|
8
|
+
export { getAppToken, getClientInfo };
|
|
9
|
+
export { getAppTokenAsync, getClientInfoAsync };
|
|
@@ -6,7 +6,6 @@ import { APRegionRPC, APRegionRPCAsync } from '../../../common/apis/generated/we
|
|
|
6
6
|
import { batchQueryCdpSpaceInfo, batchQueryCdpSpaceInfoAsync } from '../../../common/apis/generated/web/batchQueryCdpSpaceInfo';
|
|
7
7
|
import { chooseImage, chooseImageAsync } from '../../../common/apis/generated/web/chooseImage';
|
|
8
8
|
import { exitApp, exitAppAsync } from '../../../common/apis/generated/web/exitApp';
|
|
9
|
-
import { getAppToken, getAppTokenAsync } from '../../../common/apis/generated/web/getAppToken';
|
|
10
9
|
import { getBatteryInfo, getBatteryInfoAsync } from '../../../common/apis/generated/web/getBatteryInfo';
|
|
11
10
|
import { getClipboard, getClipboardAsync } from '../../../common/apis/generated/web/getClipboard';
|
|
12
11
|
import { getComponentAuth, getComponentAuthAsync } from '../../../common/apis/generated/web/getComponentAuth';
|
|
@@ -89,7 +88,6 @@ declare const _default: {
|
|
|
89
88
|
batchQueryCdpSpaceInfo: (args?: any) => void;
|
|
90
89
|
chooseImage: (args: ChooseImageArgs) => void;
|
|
91
90
|
exitApp: (args?: any) => void;
|
|
92
|
-
getAppToken: (args?: any) => void;
|
|
93
91
|
getBatteryInfo: (args?: AsyncCallback<{
|
|
94
92
|
level: number;
|
|
95
93
|
isCharging: boolean;
|
|
@@ -220,5 +218,5 @@ declare const _default: {
|
|
|
220
218
|
uploadFile: (args: UploadFileArgs) => void;
|
|
221
219
|
};
|
|
222
220
|
export default _default;
|
|
223
|
-
export { addFatigueAction, addPhoneContact, apDisableJSAPI, appxrpc, APRegionRPC, batchQueryCdpSpaceInfo, chooseImage, exitApp,
|
|
224
|
-
export { addFatigueActionAsync, addPhoneContactAsync, apDisableJSAPIAsync, appxrpcAsync, APRegionRPCAsync, batchQueryCdpSpaceInfoAsync, chooseImageAsync, exitAppAsync,
|
|
221
|
+
export { addFatigueAction, addPhoneContact, apDisableJSAPI, appxrpc, APRegionRPC, batchQueryCdpSpaceInfo, chooseImage, exitApp, getBatteryInfo, getClipboard, getComponentAuth, getFileInfo, getImageInfo, getOpenUserInfo, getPaymentCode, getSavedFileInfo, getSavedFileList, getScreenBrightness, getServerTime, getSetting, getStorage, getSystemInfo, hideKeyboard, hideLoading, hideToast, inquireQuote, isInstalledApp, makePhoneCall, navigateBackMiniProgram, navigateToMiniProgram, openDocument, openSchemeWithBacking, openSetting, prompt, regionFetchAllApps, regionSearchAppsByKeywords, removeSavedFile, request, rpc, saveFile, saveImage, scan, setClipboard, setKeepScreenOn, setNavigationBar, setScreenBrightness, setStorage, showLoading, signContract, startApp, startBizService, thirdPartyAuthForAc, tradePay, uploadApdidToken, vibrate, writeBLECharacteristicValue, alert, choosePhoneContact, clearStorage, confirm, datePicker, downloadFile, getAuthCode, getLocation, getNetworkType, getPhoneNumber, getSiteInfo, hideNavigationBarLoading, multiLevelSelect, navigateBack, navigateTo, previewImage, redirectTo, removeStorage, showActionSheet, showAuthGuide, showNavigationBarLoading, showToast, uploadFile, };
|
|
222
|
+
export { addFatigueActionAsync, addPhoneContactAsync, apDisableJSAPIAsync, appxrpcAsync, APRegionRPCAsync, batchQueryCdpSpaceInfoAsync, chooseImageAsync, exitAppAsync, getBatteryInfoAsync, getClipboardAsync, getComponentAuthAsync, getFileInfoAsync, getImageInfoAsync, getOpenUserInfoAsync, getPaymentCodeAsync, getSavedFileInfoAsync, getSavedFileListAsync, getScreenBrightnessAsync, getServerTimeAsync, getSettingAsync, getStorageAsync, getSystemInfoAsync, hideKeyboardAsync, hideLoadingAsync, hideToastAsync, inquireQuoteAsync, isInstalledAppAsync, makePhoneCallAsync, navigateBackMiniProgramAsync, navigateToMiniProgramAsync, openDocumentAsync, openSchemeWithBackingAsync, openSettingAsync, promptAsync, regionFetchAllAppsAsync, regionSearchAppsByKeywordsAsync, removeSavedFileAsync, requestAsync, rpcAsync, saveFileAsync, saveImageAsync, scanAsync, setClipboardAsync, setKeepScreenOnAsync, setNavigationBarAsync, setScreenBrightnessAsync, setStorageAsync, showLoadingAsync, signContractAsync, startAppAsync, startBizServiceAsync, thirdPartyAuthForAcAsync, tradePayAsync, uploadApdidTokenAsync, vibrateAsync, writeBLECharacteristicValueAsync, };
|
|
@@ -7,7 +7,6 @@ import { APRegionRPC, APRegionRPCAsync } from '../../../common/apis/generated/we
|
|
|
7
7
|
import { batchQueryCdpSpaceInfo, batchQueryCdpSpaceInfoAsync } from '../../../common/apis/generated/web/batchQueryCdpSpaceInfo';
|
|
8
8
|
import { chooseImage, chooseImageAsync } from '../../../common/apis/generated/web/chooseImage';
|
|
9
9
|
import { exitApp, exitAppAsync } from '../../../common/apis/generated/web/exitApp';
|
|
10
|
-
import { getAppToken, getAppTokenAsync } from '../../../common/apis/generated/web/getAppToken';
|
|
11
10
|
import { getBatteryInfo, getBatteryInfoAsync } from '../../../common/apis/generated/web/getBatteryInfo';
|
|
12
11
|
import { getClipboard, getClipboardAsync } from '../../../common/apis/generated/web/getClipboard';
|
|
13
12
|
import { getComponentAuth, getComponentAuthAsync } from '../../../common/apis/generated/web/getComponentAuth';
|
|
@@ -88,7 +87,6 @@ export default {
|
|
|
88
87
|
batchQueryCdpSpaceInfo: batchQueryCdpSpaceInfo,
|
|
89
88
|
chooseImage: chooseImage,
|
|
90
89
|
exitApp: exitApp,
|
|
91
|
-
getAppToken: getAppToken,
|
|
92
90
|
getBatteryInfo: getBatteryInfo,
|
|
93
91
|
getClipboard: getClipboard,
|
|
94
92
|
getComponentAuth: getComponentAuth,
|
|
@@ -161,5 +159,5 @@ export default {
|
|
|
161
159
|
showToast: showToast,
|
|
162
160
|
uploadFile: uploadFile
|
|
163
161
|
};
|
|
164
|
-
export { addFatigueAction, addPhoneContact, apDisableJSAPI, appxrpc, APRegionRPC, batchQueryCdpSpaceInfo, chooseImage, exitApp,
|
|
165
|
-
export { addFatigueActionAsync, addPhoneContactAsync, apDisableJSAPIAsync, appxrpcAsync, APRegionRPCAsync, batchQueryCdpSpaceInfoAsync, chooseImageAsync, exitAppAsync,
|
|
162
|
+
export { addFatigueAction, addPhoneContact, apDisableJSAPI, appxrpc, APRegionRPC, batchQueryCdpSpaceInfo, chooseImage, exitApp, getBatteryInfo, getClipboard, getComponentAuth, getFileInfo, getImageInfo, getOpenUserInfo, getPaymentCode, getSavedFileInfo, getSavedFileList, getScreenBrightness, getServerTime, getSetting, getStorage, getSystemInfo, hideKeyboard, hideLoading, hideToast, inquireQuote, isInstalledApp, makePhoneCall, navigateBackMiniProgram, navigateToMiniProgram, openDocument, openSchemeWithBacking, openSetting, prompt, regionFetchAllApps, regionSearchAppsByKeywords, removeSavedFile, request, rpc, saveFile, saveImage, scan, setClipboard, setKeepScreenOn, setNavigationBar, setScreenBrightness, setStorage, showLoading, signContract, startApp, startBizService, thirdPartyAuthForAc, tradePay, uploadApdidToken, vibrate, writeBLECharacteristicValue, alert, choosePhoneContact, clearStorage, confirm, datePicker, downloadFile, getAuthCode, getLocation, getNetworkType, getPhoneNumber, getSiteInfo, hideNavigationBarLoading, multiLevelSelect, navigateBack, navigateTo, previewImage, redirectTo, removeStorage, showActionSheet, showAuthGuide, showNavigationBarLoading, showToast, uploadFile };
|
|
163
|
+
export { addFatigueActionAsync, addPhoneContactAsync, apDisableJSAPIAsync, appxrpcAsync, APRegionRPCAsync, batchQueryCdpSpaceInfoAsync, chooseImageAsync, exitAppAsync, getBatteryInfoAsync, getClipboardAsync, getComponentAuthAsync, getFileInfoAsync, getImageInfoAsync, getOpenUserInfoAsync, getPaymentCodeAsync, getSavedFileInfoAsync, getSavedFileListAsync, getScreenBrightnessAsync, getServerTimeAsync, getSettingAsync, getStorageAsync, getSystemInfoAsync, hideKeyboardAsync, hideLoadingAsync, hideToastAsync, inquireQuoteAsync, isInstalledAppAsync, makePhoneCallAsync, navigateBackMiniProgramAsync, navigateToMiniProgramAsync, openDocumentAsync, openSchemeWithBackingAsync, openSettingAsync, promptAsync, regionFetchAllAppsAsync, regionSearchAppsByKeywordsAsync, removeSavedFileAsync, requestAsync, rpcAsync, saveFileAsync, saveImageAsync, scanAsync, setClipboardAsync, setKeepScreenOnAsync, setNavigationBarAsync, setScreenBrightnessAsync, setStorageAsync, showLoadingAsync, signContractAsync, startAppAsync, startBizServiceAsync, thirdPartyAuthForAcAsync, tradePayAsync, uploadApdidTokenAsync, vibrateAsync, writeBLECharacteristicValueAsync };
|
|
@@ -1,3 +1,15 @@
|
|
|
1
|
-
export declare const getAppToken: (args
|
|
1
|
+
export declare const getAppToken: (args: {
|
|
2
|
+
appName: string;
|
|
3
|
+
appKey: string;
|
|
4
|
+
} & import("@hylid/types").AsyncCallback<{
|
|
5
|
+
appToken: string;
|
|
6
|
+
}>) => void;
|
|
2
7
|
export default getAppToken;
|
|
3
|
-
export declare const getAppTokenAsync: (args?:
|
|
8
|
+
export declare const getAppTokenAsync: (args?: ({
|
|
9
|
+
appName: string;
|
|
10
|
+
appKey: string;
|
|
11
|
+
} & import("@hylid/types").AsyncCallback<{
|
|
12
|
+
appToken: string;
|
|
13
|
+
}>) | undefined) => Promise<{
|
|
14
|
+
appToken: string;
|
|
15
|
+
}>;
|
|
@@ -1,3 +1,15 @@
|
|
|
1
|
-
export declare const getAppToken: (args
|
|
1
|
+
export declare const getAppToken: (args: {
|
|
2
|
+
appName: string;
|
|
3
|
+
appKey: string;
|
|
4
|
+
} & import("@hylid/types").AsyncCallback<{
|
|
5
|
+
appToken: string;
|
|
6
|
+
}>) => void;
|
|
2
7
|
export default getAppToken;
|
|
3
|
-
export declare const getAppTokenAsync: (args?:
|
|
8
|
+
export declare const getAppTokenAsync: (args?: ({
|
|
9
|
+
appName: string;
|
|
10
|
+
appKey: string;
|
|
11
|
+
} & import("@hylid/types").AsyncCallback<{
|
|
12
|
+
appToken: string;
|
|
13
|
+
}>) | undefined) => Promise<{
|
|
14
|
+
appToken: string;
|
|
15
|
+
}>;
|
|
@@ -1,3 +1,15 @@
|
|
|
1
|
-
export declare const getAppToken: (args
|
|
1
|
+
export declare const getAppToken: (args: {
|
|
2
|
+
appName: string;
|
|
3
|
+
appKey: string;
|
|
4
|
+
} & import("@hylid/types").AsyncCallback<{
|
|
5
|
+
appToken: string;
|
|
6
|
+
}>) => void;
|
|
2
7
|
export default getAppToken;
|
|
3
|
-
export declare const getAppTokenAsync: (args?:
|
|
8
|
+
export declare const getAppTokenAsync: (args?: ({
|
|
9
|
+
appName: string;
|
|
10
|
+
appKey: string;
|
|
11
|
+
} & import("@hylid/types").AsyncCallback<{
|
|
12
|
+
appToken: string;
|
|
13
|
+
}>) | undefined) => Promise<{
|
|
14
|
+
appToken: string;
|
|
15
|
+
}>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export declare const getClientInfo: (args: import("@hylid/types").AsyncCallback<{
|
|
2
|
+
"client.version": string;
|
|
3
|
+
umidToken?: string | undefined;
|
|
4
|
+
"os.name": string;
|
|
5
|
+
verion: string;
|
|
6
|
+
"os.version": string;
|
|
7
|
+
"device.id": string;
|
|
8
|
+
channelId?: string | undefined;
|
|
9
|
+
model: string;
|
|
10
|
+
device: string;
|
|
11
|
+
}>) => void;
|
|
12
|
+
export default getClientInfo;
|
|
13
|
+
export declare const getClientInfoAsync: (args?: import("@hylid/types").AsyncCallback<{
|
|
14
|
+
"client.version": string;
|
|
15
|
+
umidToken?: string | undefined;
|
|
16
|
+
"os.name": string;
|
|
17
|
+
verion: string;
|
|
18
|
+
"os.version": string;
|
|
19
|
+
"device.id": string;
|
|
20
|
+
channelId?: string | undefined;
|
|
21
|
+
model: string;
|
|
22
|
+
device: string;
|
|
23
|
+
}> | undefined) => Promise<{
|
|
24
|
+
"client.version": string;
|
|
25
|
+
umidToken?: string | undefined;
|
|
26
|
+
"os.name": string;
|
|
27
|
+
verion: string;
|
|
28
|
+
"os.version": string;
|
|
29
|
+
"device.id": string;
|
|
30
|
+
channelId?: string | undefined;
|
|
31
|
+
model: string;
|
|
32
|
+
device: string;
|
|
33
|
+
}>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { webCall as call, promisify } from '@hylid/call';
|
|
2
|
+
export var getClientInfo = function getClientInfo(opt) {
|
|
3
|
+
return call('getClientInfo', opt, {
|
|
4
|
+
type: 'async'
|
|
5
|
+
});
|
|
6
|
+
};
|
|
7
|
+
export default getClientInfo;
|
|
8
|
+
export var getClientInfoAsync = /*#__PURE__*/promisify(getClientInfo);
|
package/lib/dsl.d.ts
CHANGED
|
@@ -418,7 +418,7 @@ export declare const getAppIdSync: PickMPAttr<'getAppIdSync'>;
|
|
|
418
418
|
* | ------------- | -------- |
|
|
419
419
|
* | mp | demo |
|
|
420
420
|
* | mp_web | demo,alipayhk,dana,gcash,mpay,tmn,tngd,toss |
|
|
421
|
-
* | web |
|
|
421
|
+
* | web | alipay,alipayhk |
|
|
422
422
|
*/
|
|
423
423
|
export declare const getAppToken: PickMPAttr<'getAppToken'>;
|
|
424
424
|
/**
|
|
@@ -427,9 +427,16 @@ export declare const getAppToken: PickMPAttr<'getAppToken'>;
|
|
|
427
427
|
* | ------------- | -------- |
|
|
428
428
|
* | mp | demo |
|
|
429
429
|
* | mp_web | demo,alipayhk,dana,gcash,mpay,tmn,tngd,toss |
|
|
430
|
-
* | web |
|
|
430
|
+
* | web | alipay,alipayhk |
|
|
431
431
|
*/
|
|
432
|
-
export declare const getAppTokenAsync: (args?:
|
|
432
|
+
export declare const getAppTokenAsync: (args?: ({
|
|
433
|
+
appName: string;
|
|
434
|
+
appKey: string;
|
|
435
|
+
} & import("@hylid/types").AsyncCallback<{
|
|
436
|
+
appToken: string;
|
|
437
|
+
}>) | undefined) => Promise<{
|
|
438
|
+
appToken: string;
|
|
439
|
+
}>;
|
|
433
440
|
/**
|
|
434
441
|
* @doc https://miniprogram.alipay.com/docs/miniprogram/mpdev/API_OpenAPI_getAuthCode
|
|
435
442
|
* @support
|
|
@@ -540,15 +547,7 @@ export declare const getBLEDeviceServices: PickMPAttr<'getBLEDeviceServices'>;
|
|
|
540
547
|
* | web | |
|
|
541
548
|
*/
|
|
542
549
|
export declare const getBLEDeviceServicesAsync: (args?: ({
|
|
543
|
-
deviceId: string;
|
|
544
|
-
* @doc https://miniprogram.alipay.com/docs/miniprogram/mpdev/API_UI_Feedback_hideToast
|
|
545
|
-
* @support
|
|
546
|
-
* | Platform | Apps |
|
|
547
|
-
* | ------------- | -------- |
|
|
548
|
-
* | mp | demo,gcash,tngd,alipay,chope,alipayhk,dana,tmn |
|
|
549
|
-
* | mp_web | demo,gcash,tngd,alipay,chope,alipayhk,dana,tmn,toss,mpay |
|
|
550
|
-
* | web | demo,alipay,h5,tngdh5ng |
|
|
551
|
-
*/
|
|
550
|
+
deviceId: string;
|
|
552
551
|
} & AsyncCallback<{
|
|
553
552
|
services: {
|
|
554
553
|
isPrimary: boolean;
|
package/lib/dsl.js
CHANGED
|
@@ -868,7 +868,7 @@ export var getAppIdSync = function getAppIdSync() {
|
|
|
868
868
|
* | ------------- | -------- |
|
|
869
869
|
* | mp | demo |
|
|
870
870
|
* | mp_web | demo,alipayhk,dana,gcash,mpay,tmn,tngd,toss |
|
|
871
|
-
* | web |
|
|
871
|
+
* | web | alipay,alipayhk |
|
|
872
872
|
*/
|
|
873
873
|
export var getAppToken = function getAppToken() {
|
|
874
874
|
var rest = [];
|
|
@@ -884,7 +884,7 @@ export var getAppToken = function getAppToken() {
|
|
|
884
884
|
* | ------------- | -------- |
|
|
885
885
|
* | mp | demo |
|
|
886
886
|
* | mp_web | demo,alipayhk,dana,gcash,mpay,tmn,tngd,toss |
|
|
887
|
-
* | web |
|
|
887
|
+
* | web | alipay,alipayhk |
|
|
888
888
|
*/
|
|
889
889
|
// @ts-ignore
|
|
890
890
|
export var getAppTokenAsync = /*#__PURE__*/promisify(getAppToken);
|