hylid-bridge 4.0.22-alpha.1 → 4.0.22
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/bridges.js +8 -16
- package/lib/clients/web/demo/getStorage.d.ts +1 -1
- package/lib/clients/web/demo/getStorage.js +1 -1
- package/lib/clients/web/demo/index.d.ts +23 -23
- package/lib/clients/web/demo/index.js +10 -10
- package/lib/clients/web/demo/request.d.ts +1 -1
- package/lib/clients/web/demo/request.js +1 -1
- package/lib/clients/web/demo/setNavigationBar.d.ts +1 -1
- package/lib/clients/web/demo/setNavigationBar.js +1 -1
- package/lib/clients/web/demo/setStorage.d.ts +1 -1
- package/lib/clients/web/demo/setStorage.js +1 -1
- package/lib/common/apis/generated/web/getStorage.d.ts +11 -0
- package/lib/common/apis/generated/web/getStorage.js +14 -0
- package/lib/common/apis/generated/web/request.d.ts +39 -0
- package/lib/common/apis/generated/web/request.js +14 -0
- package/lib/common/apis/generated/web/setNavigationBar.d.ts +9 -0
- package/lib/common/apis/generated/web/setNavigationBar.js +14 -0
- package/lib/common/apis/generated/web/setStorage.d.ts +9 -0
- package/lib/common/apis/generated/web/setStorage.js +14 -0
- package/lib/umd/index.js +1 -1
- package/lib/umd/web_demo.js +1 -1
- package/package.json +6 -8
- package/lib/clients/web/alipay/getStorage.d.ts +0 -2
- package/lib/clients/web/alipay/getStorage.js +0 -3
- package/lib/clients/web/alipay/request.d.ts +0 -2
- package/lib/clients/web/alipay/request.js +0 -3
- package/lib/clients/web/alipay/setNavigationBar.d.ts +0 -2
- package/lib/clients/web/alipay/setNavigationBar.js +0 -3
- package/lib/clients/web/alipay/setStorage.d.ts +0 -2
- package/lib/clients/web/alipay/setStorage.js +0 -3
- package/lib/common/apis/custom/web/getStorage.d.ts +0 -3
- package/lib/common/apis/custom/web/getStorage.js +0 -3
- package/lib/common/apis/custom/web/request.d.ts +0 -3
- package/lib/common/apis/custom/web/request.js +0 -3
- package/lib/common/apis/custom/web/setNavigationBar.d.ts +0 -3
- package/lib/common/apis/custom/web/setNavigationBar.js +0 -3
- package/lib/common/apis/custom/web/setStorage.d.ts +0 -3
- package/lib/common/apis/custom/web/setStorage.js +0 -3
package/lib/bridges.js
CHANGED
|
@@ -361,7 +361,6 @@ import webGetScreenBrightness from './common/apis/generated/web/getScreenBrightn
|
|
|
361
361
|
import webGetServerTime from './common/apis/generated/web/getServerTime';
|
|
362
362
|
import webGetSetting from './common/apis/generated/web/getSetting';
|
|
363
363
|
import webAlipayGetSiteInfo from './clients/web/alipay/getSiteInfo';
|
|
364
|
-
import webAlipayGetStorage from './clients/web/alipay/getStorage';
|
|
365
364
|
import webGetSystemInfo from './common/apis/generated/web/getSystemInfo';
|
|
366
365
|
import webAlipayHideBackHome from './clients/web/alipay/hideBackHome';
|
|
367
366
|
import webHideKeyboard from './common/apis/generated/web/hideKeyboard';
|
|
@@ -383,7 +382,6 @@ import webPrompt from './common/apis/generated/web/prompt';
|
|
|
383
382
|
import webAlipayRedirectTo from './clients/web/alipay/redirectTo';
|
|
384
383
|
import webRemoveSavedFile from './common/apis/generated/web/removeSavedFile';
|
|
385
384
|
import webAlipayRemoveStorage from './clients/web/alipay/removeStorage';
|
|
386
|
-
import webAlipayRequest from './clients/web/alipay/request';
|
|
387
385
|
import webRpc from './common/apis/generated/web/rpc';
|
|
388
386
|
import webSaveFile from './common/apis/generated/web/saveFile';
|
|
389
387
|
import webAlipaySaveImage from './clients/web/alipay/saveImage';
|
|
@@ -392,10 +390,8 @@ import webSetBackgroundColor from './common/apis/generated/web/setBackgroundColo
|
|
|
392
390
|
import webSetCanPullDown from './common/apis/generated/web/setCanPullDown';
|
|
393
391
|
import webSetClipboard from './common/apis/generated/web/setClipboard';
|
|
394
392
|
import webAlipaySetKeepScreenOn from './clients/web/alipay/setKeepScreenOn';
|
|
395
|
-
import webAlipaySetNavigationBar from './clients/web/alipay/setNavigationBar';
|
|
396
393
|
import webSetOptionMenu from './common/apis/generated/web/setOptionMenu';
|
|
397
394
|
import webSetScreenBrightness from './common/apis/generated/web/setScreenBrightness';
|
|
398
|
-
import webAlipaySetStorage from './clients/web/alipay/setStorage';
|
|
399
395
|
import webAlipaySetTabBarStyle from './clients/web/alipay/setTabBarStyle';
|
|
400
396
|
import webAlipayShowActionSheet from './clients/web/alipay/showActionSheet';
|
|
401
397
|
import webAlipayShowAuthGuide from './clients/web/alipay/showAuthGuide';
|
|
@@ -437,7 +433,7 @@ import webGetOpenUserInfo from './common/apis/generated/web/getOpenUserInfo';
|
|
|
437
433
|
import webGetPaymentCode from './common/apis/generated/web/getPaymentCode';
|
|
438
434
|
import webDemoGetPhoneNumber from './clients/web/demo/getPhoneNumber';
|
|
439
435
|
import webDemoGetSiteInfo from './clients/web/demo/getSiteInfo';
|
|
440
|
-
import
|
|
436
|
+
import webGetStorage from './common/apis/generated/web/getStorage';
|
|
441
437
|
import webDemoHideNavigationBarLoading from './clients/web/demo/hideNavigationBarLoading';
|
|
442
438
|
import webInquireQuote from './common/apis/generated/web/inquireQuote';
|
|
443
439
|
import webIsInstalledApp from './common/apis/generated/web/isInstalledApp';
|
|
@@ -450,11 +446,11 @@ import webDemoRedirectTo from './clients/web/demo/redirectTo';
|
|
|
450
446
|
import webRegionFetchAllApps from './common/apis/generated/web/regionFetchAllApps';
|
|
451
447
|
import webRegionSearchAppsByKeywords from './common/apis/generated/web/regionSearchAppsByKeywords';
|
|
452
448
|
import webDemoRemoveStorage from './clients/web/demo/removeStorage';
|
|
453
|
-
import
|
|
449
|
+
import webRequest from './common/apis/generated/web/request';
|
|
454
450
|
import webSaveImage from './common/apis/generated/web/saveImage';
|
|
455
451
|
import webSetKeepScreenOn from './common/apis/generated/web/setKeepScreenOn';
|
|
456
|
-
import
|
|
457
|
-
import
|
|
452
|
+
import webSetNavigationBar from './common/apis/generated/web/setNavigationBar';
|
|
453
|
+
import webSetStorage from './common/apis/generated/web/setStorage';
|
|
458
454
|
import webDemoShowActionSheet from './clients/web/demo/showActionSheet';
|
|
459
455
|
import webDemoShowAuthGuide from './clients/web/demo/showAuthGuide';
|
|
460
456
|
import webDemoShowNavigationBarLoading from './clients/web/demo/showNavigationBarLoading';
|
|
@@ -2419,8 +2415,7 @@ export var getStorage = function getStorage() {
|
|
|
2419
2415
|
if (appEnv.isMpWebTmn) return mpWebGetStorage.apply(void 0, rest);
|
|
2420
2416
|
if (appEnv.isMpWebMpay) return mpWebGetStorage.apply(void 0, rest);
|
|
2421
2417
|
if (appEnv.isMpWebToss) return mpWebGetStorage.apply(void 0, rest);
|
|
2422
|
-
if (appEnv.
|
|
2423
|
-
if (appEnv.isWebDemo) return webDemoGetStorage.apply(void 0, rest);
|
|
2418
|
+
if (appEnv.isWebDemo) return webGetStorage.apply(void 0, rest);
|
|
2424
2419
|
if (appEnv.isWebH5) return webH5GetStorage.apply(void 0, rest);
|
|
2425
2420
|
return notFound.apply(void 0, __spreadArray(['getStorage'], rest, false));
|
|
2426
2421
|
};
|
|
@@ -4725,8 +4720,7 @@ export var request = function request() {
|
|
|
4725
4720
|
if (appEnv.isMpWebTmn) return mpWebRequest.apply(void 0, rest);
|
|
4726
4721
|
if (appEnv.isMpWebMpay) return mpWebRequest.apply(void 0, rest);
|
|
4727
4722
|
if (appEnv.isMpWebToss) return mpWebRequest.apply(void 0, rest);
|
|
4728
|
-
if (appEnv.
|
|
4729
|
-
if (appEnv.isWebDemo) return webDemoRequest.apply(void 0, rest);
|
|
4723
|
+
if (appEnv.isWebDemo) return webRequest.apply(void 0, rest);
|
|
4730
4724
|
if (appEnv.isWebH5) return webH5Request.apply(void 0, rest);
|
|
4731
4725
|
return notFound.apply(void 0, __spreadArray(['request'], rest, false));
|
|
4732
4726
|
};
|
|
@@ -5180,8 +5174,7 @@ export var setNavigationBar = function setNavigationBar() {
|
|
|
5180
5174
|
if (appEnv.isMpWebTmn) return mpWebSetNavigationBar.apply(void 0, rest);
|
|
5181
5175
|
if (appEnv.isMpWebMpay) return mpWebSetNavigationBar.apply(void 0, rest);
|
|
5182
5176
|
if (appEnv.isMpWebToss) return mpWebSetNavigationBar.apply(void 0, rest);
|
|
5183
|
-
if (appEnv.
|
|
5184
|
-
if (appEnv.isWebDemo) return webDemoSetNavigationBar.apply(void 0, rest);
|
|
5177
|
+
if (appEnv.isWebDemo) return webSetNavigationBar.apply(void 0, rest);
|
|
5185
5178
|
if (appEnv.isWebH5) return webH5SetNavigationBar.apply(void 0, rest);
|
|
5186
5179
|
if (appEnv.isWebTngdh5ng) return webTngdh5ngSetNavigationBar.apply(void 0, rest);
|
|
5187
5180
|
return notFound.apply(void 0, __spreadArray(['setNavigationBar'], rest, false));
|
|
@@ -5305,8 +5298,7 @@ export var setStorage = function setStorage() {
|
|
|
5305
5298
|
if (appEnv.isMpWebTmn) return mpWebSetStorage.apply(void 0, rest);
|
|
5306
5299
|
if (appEnv.isMpWebMpay) return mpWebSetStorage.apply(void 0, rest);
|
|
5307
5300
|
if (appEnv.isMpWebToss) return mpWebSetStorage.apply(void 0, rest);
|
|
5308
|
-
if (appEnv.
|
|
5309
|
-
if (appEnv.isWebDemo) return webDemoSetStorage.apply(void 0, rest);
|
|
5301
|
+
if (appEnv.isWebDemo) return webSetStorage.apply(void 0, rest);
|
|
5310
5302
|
if (appEnv.isWebH5) return webH5SetStorage.apply(void 0, rest);
|
|
5311
5303
|
return notFound.apply(void 0, __spreadArray(['setStorage'], rest, false));
|
|
5312
5304
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import fill from '../../../common/apis/
|
|
1
|
+
import fill from '../../../common/apis/generated/web/getStorage';
|
|
2
2
|
export default fill;
|
|
@@ -19,6 +19,7 @@ import { getSavedFileList, getSavedFileListAsync } from '../../../common/apis/ge
|
|
|
19
19
|
import { getScreenBrightness, getScreenBrightnessAsync } from '../../../common/apis/generated/web/getScreenBrightness';
|
|
20
20
|
import { getServerTime, getServerTimeAsync } from '../../../common/apis/generated/web/getServerTime';
|
|
21
21
|
import { getSetting, getSettingAsync } from '../../../common/apis/generated/web/getSetting';
|
|
22
|
+
import { getStorage, getStorageAsync } from '../../../common/apis/generated/web/getStorage';
|
|
22
23
|
import { getSystemInfo, getSystemInfoAsync } from '../../../common/apis/generated/web/getSystemInfo';
|
|
23
24
|
import { hideKeyboard, hideKeyboardAsync } from '../../../common/apis/generated/web/hideKeyboard';
|
|
24
25
|
import { hideLoading, hideLoadingAsync } from '../../../common/apis/generated/web/hideLoading';
|
|
@@ -35,13 +36,16 @@ import { prompt, promptAsync } from '../../../common/apis/generated/web/prompt';
|
|
|
35
36
|
import { regionFetchAllApps, regionFetchAllAppsAsync } from '../../../common/apis/generated/web/regionFetchAllApps';
|
|
36
37
|
import { regionSearchAppsByKeywords, regionSearchAppsByKeywordsAsync } from '../../../common/apis/generated/web/regionSearchAppsByKeywords';
|
|
37
38
|
import { removeSavedFile, removeSavedFileAsync } from '../../../common/apis/generated/web/removeSavedFile';
|
|
39
|
+
import { request, requestAsync } from '../../../common/apis/generated/web/request';
|
|
38
40
|
import { rpc, rpcAsync } from '../../../common/apis/generated/web/rpc';
|
|
39
41
|
import { saveFile, saveFileAsync } from '../../../common/apis/generated/web/saveFile';
|
|
40
42
|
import { saveImage, saveImageAsync } from '../../../common/apis/generated/web/saveImage';
|
|
41
43
|
import { scan, scanAsync } from '../../../common/apis/generated/web/scan';
|
|
42
44
|
import { setClipboard, setClipboardAsync } from '../../../common/apis/generated/web/setClipboard';
|
|
43
45
|
import { setKeepScreenOn, setKeepScreenOnAsync } from '../../../common/apis/generated/web/setKeepScreenOn';
|
|
46
|
+
import { setNavigationBar, setNavigationBarAsync } from '../../../common/apis/generated/web/setNavigationBar';
|
|
44
47
|
import { setScreenBrightness, setScreenBrightnessAsync } from '../../../common/apis/generated/web/setScreenBrightness';
|
|
48
|
+
import { setStorage, setStorageAsync } from '../../../common/apis/generated/web/setStorage';
|
|
45
49
|
import { showLoading, showLoadingAsync } from '../../../common/apis/generated/web/showLoading';
|
|
46
50
|
import { signContract, signContractAsync } from '../../../common/apis/generated/web/signContract';
|
|
47
51
|
import { startApp, startAppAsync } from '../../../common/apis/generated/web/startApp';
|
|
@@ -62,7 +66,6 @@ import getLocation from './getLocation';
|
|
|
62
66
|
import getNetworkType from './getNetworkType';
|
|
63
67
|
import getPhoneNumber from './getPhoneNumber';
|
|
64
68
|
import getSiteInfo from './getSiteInfo';
|
|
65
|
-
import getStorage from './getStorage';
|
|
66
69
|
import hideNavigationBarLoading from './hideNavigationBarLoading';
|
|
67
70
|
import multiLevelSelect from './multiLevelSelect';
|
|
68
71
|
import navigateBack from './navigateBack';
|
|
@@ -70,9 +73,6 @@ import navigateTo from './navigateTo';
|
|
|
70
73
|
import previewImage from './previewImage';
|
|
71
74
|
import redirectTo from './redirectTo';
|
|
72
75
|
import removeStorage from './removeStorage';
|
|
73
|
-
import request from './request';
|
|
74
|
-
import setNavigationBar from './setNavigationBar';
|
|
75
|
-
import setStorage from './setStorage';
|
|
76
76
|
import showActionSheet from './showActionSheet';
|
|
77
77
|
import showAuthGuide from './showAuthGuide';
|
|
78
78
|
import showNavigationBarLoading from './showNavigationBarLoading';
|
|
@@ -117,6 +117,7 @@ declare const _default: {
|
|
|
117
117
|
phoneNumber: boolean;
|
|
118
118
|
};
|
|
119
119
|
}> | undefined) => void;
|
|
120
|
+
getStorage: (args: GetStorage) => void;
|
|
120
121
|
getSystemInfo: (args: GetSystemInfoArgs) => void;
|
|
121
122
|
hideKeyboard: () => void;
|
|
122
123
|
hideLoading: (args?: HideLoadingArgs | undefined) => void;
|
|
@@ -146,6 +147,20 @@ declare const _default: {
|
|
|
146
147
|
regionFetchAllApps: (args?: any) => void;
|
|
147
148
|
regionSearchAppsByKeywords: (args?: any) => void;
|
|
148
149
|
removeSavedFile: (args: RemoveSavedFileArgs) => void;
|
|
150
|
+
request: (args: {
|
|
151
|
+
url: string;
|
|
152
|
+
headers?: {
|
|
153
|
+
[key: string]: string;
|
|
154
|
+
} | undefined;
|
|
155
|
+
method?: "GET" | "POST" | undefined;
|
|
156
|
+
data?: any;
|
|
157
|
+
timeout?: number | undefined;
|
|
158
|
+
dataType?: "json" | "text" | "base64" | "arraybuffer" | undefined;
|
|
159
|
+
} & import("@hylid/types").AsyncCallback<{
|
|
160
|
+
data: any;
|
|
161
|
+
status: number;
|
|
162
|
+
headers: any;
|
|
163
|
+
}>) => void;
|
|
149
164
|
rpc: (args: import("@hylid/types").IRPCArgs & import("@hylid/types").AsyncCallback<{
|
|
150
165
|
headers: Record<string, string>;
|
|
151
166
|
resData: object;
|
|
@@ -155,7 +170,9 @@ declare const _default: {
|
|
|
155
170
|
scan: (args: ScanArgs) => void;
|
|
156
171
|
setClipboard: (args: SetClipboardArgs) => void;
|
|
157
172
|
setKeepScreenOn: (args: SetKeepScreenOnArgs) => void;
|
|
173
|
+
setNavigationBar: (args: SetNavigationBarArgs) => void;
|
|
158
174
|
setScreenBrightness: (args: SetScreenBrightnessArgs) => void;
|
|
175
|
+
setStorage: (args: SetStorage) => void;
|
|
159
176
|
showLoading: (args?: ShowLoadingArgs | undefined) => void;
|
|
160
177
|
signContract: (args: SignContractArgs) => void;
|
|
161
178
|
startApp: (args?: any) => void;
|
|
@@ -184,7 +201,6 @@ declare const _default: {
|
|
|
184
201
|
getNetworkType: (args: GetNetworkTypeArgs) => void;
|
|
185
202
|
getPhoneNumber: (args?: any) => void;
|
|
186
203
|
getSiteInfo: typeof getSiteInfo;
|
|
187
|
-
getStorage: (args: GetStorage) => void;
|
|
188
204
|
hideNavigationBarLoading: () => void;
|
|
189
205
|
multiLevelSelect: (args: MultiLevelSelectArgs) => void;
|
|
190
206
|
navigateBack: (args: NavigateBackArgs) => void;
|
|
@@ -192,22 +208,6 @@ declare const _default: {
|
|
|
192
208
|
previewImage: (args: PreviewImageArgs) => void;
|
|
193
209
|
redirectTo: (args: RedirectToArgs) => void;
|
|
194
210
|
removeStorage: (args: RemoveStorageArgs) => void;
|
|
195
|
-
request: (args: {
|
|
196
|
-
url: string;
|
|
197
|
-
headers?: {
|
|
198
|
-
[key: string]: string;
|
|
199
|
-
} | undefined;
|
|
200
|
-
method?: "GET" | "POST" | undefined;
|
|
201
|
-
data?: any;
|
|
202
|
-
timeout?: number | undefined;
|
|
203
|
-
dataType?: "json" | "text" | "base64" | "arraybuffer" | undefined;
|
|
204
|
-
} & import("@hylid/types").AsyncCallback<{
|
|
205
|
-
data: any;
|
|
206
|
-
status: number;
|
|
207
|
-
headers: any;
|
|
208
|
-
}>) => void;
|
|
209
|
-
setNavigationBar: (args: SetNavigationBarArgs) => void;
|
|
210
|
-
setStorage: (args: SetStorage) => void;
|
|
211
211
|
showActionSheet: (args: ShowActionSheetArgs) => void;
|
|
212
212
|
showAuthGuide: (args: import("@hylid/types").AsyncCallback<{
|
|
213
213
|
shown: boolean;
|
|
@@ -220,5 +220,5 @@ declare const _default: {
|
|
|
220
220
|
uploadFile: (args: UploadFileArgs) => void;
|
|
221
221
|
};
|
|
222
222
|
export default _default;
|
|
223
|
-
export { addFatigueAction, addPhoneContact, apDisableJSAPI, appxrpc, APRegionRPC, batchQueryCdpSpaceInfo, chooseImage, exitApp, getAppToken, getBatteryInfo, getClipboard, getComponentAuth, getFileInfo, getImageInfo, getOpenUserInfo, getPaymentCode, getSavedFileInfo, getSavedFileList, getScreenBrightness, getServerTime, getSetting, getSystemInfo, hideKeyboard, hideLoading, hideToast, inquireQuote, isInstalledApp, makePhoneCall, navigateBackMiniProgram, navigateToMiniProgram, openDocument, openSchemeWithBacking, openSetting, prompt, regionFetchAllApps, regionSearchAppsByKeywords, removeSavedFile, rpc, saveFile, saveImage, scan, setClipboard, setKeepScreenOn, setScreenBrightness, showLoading, signContract, startApp, startBizService, thirdPartyAuthForAc, tradePay, uploadApdidToken, vibrate, writeBLECharacteristicValue, alert, choosePhoneContact, clearStorage, confirm, datePicker, downloadFile, getAuthCode, getLocation, getNetworkType, getPhoneNumber, getSiteInfo,
|
|
224
|
-
export { addFatigueActionAsync, addPhoneContactAsync, apDisableJSAPIAsync, appxrpcAsync, APRegionRPCAsync, batchQueryCdpSpaceInfoAsync, chooseImageAsync, exitAppAsync, getAppTokenAsync, getBatteryInfoAsync, getClipboardAsync, getComponentAuthAsync, getFileInfoAsync, getImageInfoAsync, getOpenUserInfoAsync, getPaymentCodeAsync, getSavedFileInfoAsync, getSavedFileListAsync, getScreenBrightnessAsync, getServerTimeAsync, getSettingAsync, getSystemInfoAsync, hideKeyboardAsync, hideLoadingAsync, hideToastAsync, inquireQuoteAsync, isInstalledAppAsync, makePhoneCallAsync, navigateBackMiniProgramAsync, navigateToMiniProgramAsync, openDocumentAsync, openSchemeWithBackingAsync, openSettingAsync, promptAsync, regionFetchAllAppsAsync, regionSearchAppsByKeywordsAsync, removeSavedFileAsync, rpcAsync, saveFileAsync, saveImageAsync, scanAsync, setClipboardAsync, setKeepScreenOnAsync, setScreenBrightnessAsync, showLoadingAsync, signContractAsync, startAppAsync, startBizServiceAsync, thirdPartyAuthForAcAsync, tradePayAsync, uploadApdidTokenAsync, vibrateAsync, writeBLECharacteristicValueAsync, };
|
|
223
|
+
export { addFatigueAction, addPhoneContact, apDisableJSAPI, appxrpc, APRegionRPC, batchQueryCdpSpaceInfo, chooseImage, exitApp, getAppToken, 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, };
|
|
224
|
+
export { addFatigueActionAsync, addPhoneContactAsync, apDisableJSAPIAsync, appxrpcAsync, APRegionRPCAsync, batchQueryCdpSpaceInfoAsync, chooseImageAsync, exitAppAsync, getAppTokenAsync, 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, };
|
|
@@ -20,6 +20,7 @@ import { getSavedFileList, getSavedFileListAsync } from '../../../common/apis/ge
|
|
|
20
20
|
import { getScreenBrightness, getScreenBrightnessAsync } from '../../../common/apis/generated/web/getScreenBrightness';
|
|
21
21
|
import { getServerTime, getServerTimeAsync } from '../../../common/apis/generated/web/getServerTime';
|
|
22
22
|
import { getSetting, getSettingAsync } from '../../../common/apis/generated/web/getSetting';
|
|
23
|
+
import { getStorage, getStorageAsync } from '../../../common/apis/generated/web/getStorage';
|
|
23
24
|
import { getSystemInfo, getSystemInfoAsync } from '../../../common/apis/generated/web/getSystemInfo';
|
|
24
25
|
import { hideKeyboard, hideKeyboardAsync } from '../../../common/apis/generated/web/hideKeyboard';
|
|
25
26
|
import { hideLoading, hideLoadingAsync } from '../../../common/apis/generated/web/hideLoading';
|
|
@@ -36,13 +37,16 @@ import { prompt, promptAsync } from '../../../common/apis/generated/web/prompt';
|
|
|
36
37
|
import { regionFetchAllApps, regionFetchAllAppsAsync } from '../../../common/apis/generated/web/regionFetchAllApps';
|
|
37
38
|
import { regionSearchAppsByKeywords, regionSearchAppsByKeywordsAsync } from '../../../common/apis/generated/web/regionSearchAppsByKeywords';
|
|
38
39
|
import { removeSavedFile, removeSavedFileAsync } from '../../../common/apis/generated/web/removeSavedFile';
|
|
40
|
+
import { request, requestAsync } from '../../../common/apis/generated/web/request';
|
|
39
41
|
import { rpc, rpcAsync } from '../../../common/apis/generated/web/rpc';
|
|
40
42
|
import { saveFile, saveFileAsync } from '../../../common/apis/generated/web/saveFile';
|
|
41
43
|
import { saveImage, saveImageAsync } from '../../../common/apis/generated/web/saveImage';
|
|
42
44
|
import { scan, scanAsync } from '../../../common/apis/generated/web/scan';
|
|
43
45
|
import { setClipboard, setClipboardAsync } from '../../../common/apis/generated/web/setClipboard';
|
|
44
46
|
import { setKeepScreenOn, setKeepScreenOnAsync } from '../../../common/apis/generated/web/setKeepScreenOn';
|
|
47
|
+
import { setNavigationBar, setNavigationBarAsync } from '../../../common/apis/generated/web/setNavigationBar';
|
|
45
48
|
import { setScreenBrightness, setScreenBrightnessAsync } from '../../../common/apis/generated/web/setScreenBrightness';
|
|
49
|
+
import { setStorage, setStorageAsync } from '../../../common/apis/generated/web/setStorage';
|
|
46
50
|
import { showLoading, showLoadingAsync } from '../../../common/apis/generated/web/showLoading';
|
|
47
51
|
import { signContract, signContractAsync } from '../../../common/apis/generated/web/signContract';
|
|
48
52
|
import { startApp, startAppAsync } from '../../../common/apis/generated/web/startApp';
|
|
@@ -63,7 +67,6 @@ import getLocation from './getLocation';
|
|
|
63
67
|
import getNetworkType from './getNetworkType';
|
|
64
68
|
import getPhoneNumber from './getPhoneNumber';
|
|
65
69
|
import getSiteInfo from './getSiteInfo';
|
|
66
|
-
import getStorage from './getStorage';
|
|
67
70
|
import hideNavigationBarLoading from './hideNavigationBarLoading';
|
|
68
71
|
import multiLevelSelect from './multiLevelSelect';
|
|
69
72
|
import navigateBack from './navigateBack';
|
|
@@ -71,9 +74,6 @@ import navigateTo from './navigateTo';
|
|
|
71
74
|
import previewImage from './previewImage';
|
|
72
75
|
import redirectTo from './redirectTo';
|
|
73
76
|
import removeStorage from './removeStorage';
|
|
74
|
-
import request from './request';
|
|
75
|
-
import setNavigationBar from './setNavigationBar';
|
|
76
|
-
import setStorage from './setStorage';
|
|
77
77
|
import showActionSheet from './showActionSheet';
|
|
78
78
|
import showAuthGuide from './showAuthGuide';
|
|
79
79
|
import showNavigationBarLoading from './showNavigationBarLoading';
|
|
@@ -101,6 +101,7 @@ export default {
|
|
|
101
101
|
getScreenBrightness: getScreenBrightness,
|
|
102
102
|
getServerTime: getServerTime,
|
|
103
103
|
getSetting: getSetting,
|
|
104
|
+
getStorage: getStorage,
|
|
104
105
|
getSystemInfo: getSystemInfo,
|
|
105
106
|
hideKeyboard: hideKeyboard,
|
|
106
107
|
hideLoading: hideLoading,
|
|
@@ -117,13 +118,16 @@ export default {
|
|
|
117
118
|
regionFetchAllApps: regionFetchAllApps,
|
|
118
119
|
regionSearchAppsByKeywords: regionSearchAppsByKeywords,
|
|
119
120
|
removeSavedFile: removeSavedFile,
|
|
121
|
+
request: request,
|
|
120
122
|
rpc: rpc,
|
|
121
123
|
saveFile: saveFile,
|
|
122
124
|
saveImage: saveImage,
|
|
123
125
|
scan: scan,
|
|
124
126
|
setClipboard: setClipboard,
|
|
125
127
|
setKeepScreenOn: setKeepScreenOn,
|
|
128
|
+
setNavigationBar: setNavigationBar,
|
|
126
129
|
setScreenBrightness: setScreenBrightness,
|
|
130
|
+
setStorage: setStorage,
|
|
127
131
|
showLoading: showLoading,
|
|
128
132
|
signContract: signContract,
|
|
129
133
|
startApp: startApp,
|
|
@@ -144,7 +148,6 @@ export default {
|
|
|
144
148
|
getNetworkType: getNetworkType,
|
|
145
149
|
getPhoneNumber: getPhoneNumber,
|
|
146
150
|
getSiteInfo: getSiteInfo,
|
|
147
|
-
getStorage: getStorage,
|
|
148
151
|
hideNavigationBarLoading: hideNavigationBarLoading,
|
|
149
152
|
multiLevelSelect: multiLevelSelect,
|
|
150
153
|
navigateBack: navigateBack,
|
|
@@ -152,14 +155,11 @@ export default {
|
|
|
152
155
|
previewImage: previewImage,
|
|
153
156
|
redirectTo: redirectTo,
|
|
154
157
|
removeStorage: removeStorage,
|
|
155
|
-
request: request,
|
|
156
|
-
setNavigationBar: setNavigationBar,
|
|
157
|
-
setStorage: setStorage,
|
|
158
158
|
showActionSheet: showActionSheet,
|
|
159
159
|
showAuthGuide: showAuthGuide,
|
|
160
160
|
showNavigationBarLoading: showNavigationBarLoading,
|
|
161
161
|
showToast: showToast,
|
|
162
162
|
uploadFile: uploadFile
|
|
163
163
|
};
|
|
164
|
-
export { addFatigueAction, addPhoneContact, apDisableJSAPI, appxrpc, APRegionRPC, batchQueryCdpSpaceInfo, chooseImage, exitApp, getAppToken, getBatteryInfo, getClipboard, getComponentAuth, getFileInfo, getImageInfo, getOpenUserInfo, getPaymentCode, getSavedFileInfo, getSavedFileList, getScreenBrightness, getServerTime, getSetting, getSystemInfo, hideKeyboard, hideLoading, hideToast, inquireQuote, isInstalledApp, makePhoneCall, navigateBackMiniProgram, navigateToMiniProgram, openDocument, openSchemeWithBacking, openSetting, prompt, regionFetchAllApps, regionSearchAppsByKeywords, removeSavedFile, rpc, saveFile, saveImage, scan, setClipboard, setKeepScreenOn, setScreenBrightness, showLoading, signContract, startApp, startBizService, thirdPartyAuthForAc, tradePay, uploadApdidToken, vibrate, writeBLECharacteristicValue, alert, choosePhoneContact, clearStorage, confirm, datePicker, downloadFile, getAuthCode, getLocation, getNetworkType, getPhoneNumber, getSiteInfo,
|
|
165
|
-
export { addFatigueActionAsync, addPhoneContactAsync, apDisableJSAPIAsync, appxrpcAsync, APRegionRPCAsync, batchQueryCdpSpaceInfoAsync, chooseImageAsync, exitAppAsync, getAppTokenAsync, getBatteryInfoAsync, getClipboardAsync, getComponentAuthAsync, getFileInfoAsync, getImageInfoAsync, getOpenUserInfoAsync, getPaymentCodeAsync, getSavedFileInfoAsync, getSavedFileListAsync, getScreenBrightnessAsync, getServerTimeAsync, getSettingAsync, getSystemInfoAsync, hideKeyboardAsync, hideLoadingAsync, hideToastAsync, inquireQuoteAsync, isInstalledAppAsync, makePhoneCallAsync, navigateBackMiniProgramAsync, navigateToMiniProgramAsync, openDocumentAsync, openSchemeWithBackingAsync, openSettingAsync, promptAsync, regionFetchAllAppsAsync, regionSearchAppsByKeywordsAsync, removeSavedFileAsync, rpcAsync, saveFileAsync, saveImageAsync, scanAsync, setClipboardAsync, setKeepScreenOnAsync, setScreenBrightnessAsync, showLoadingAsync, signContractAsync, startAppAsync, startBizServiceAsync, thirdPartyAuthForAcAsync, tradePayAsync, uploadApdidTokenAsync, vibrateAsync, writeBLECharacteristicValueAsync };
|
|
164
|
+
export { addFatigueAction, addPhoneContact, apDisableJSAPI, appxrpc, APRegionRPC, batchQueryCdpSpaceInfo, chooseImage, exitApp, getAppToken, 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 };
|
|
165
|
+
export { addFatigueActionAsync, addPhoneContactAsync, apDisableJSAPIAsync, appxrpcAsync, APRegionRPCAsync, batchQueryCdpSpaceInfoAsync, chooseImageAsync, exitAppAsync, getAppTokenAsync, 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,2 +1,2 @@
|
|
|
1
|
-
import fill from '../../../common/apis/
|
|
1
|
+
import fill from '../../../common/apis/generated/web/request';
|
|
2
2
|
export default fill;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import fill from '../../../common/apis/
|
|
1
|
+
import fill from '../../../common/apis/generated/web/setNavigationBar';
|
|
2
2
|
export default fill;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import fill from '../../../common/apis/
|
|
1
|
+
import fill from '../../../common/apis/generated/web/setStorage';
|
|
2
2
|
export default fill;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @doc https://miniprogram.alipay.com/docs/miniprogram/mpdev/API_Storage_getStorage
|
|
3
|
+
*/
|
|
4
|
+
export declare const getStorage: (args: GetStorage) => void;
|
|
5
|
+
export default getStorage;
|
|
6
|
+
/**
|
|
7
|
+
* @doc https://miniprogram.alipay.com/docs/miniprogram/mpdev/API_Storage_getStorage
|
|
8
|
+
*/
|
|
9
|
+
export declare const getStorageAsync: (args?: GetStorage | undefined) => Promise<{
|
|
10
|
+
data: any;
|
|
11
|
+
}>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { webCall as call, promisify } from '@hylid/call';
|
|
2
|
+
/**
|
|
3
|
+
* @doc https://miniprogram.alipay.com/docs/miniprogram/mpdev/API_Storage_getStorage
|
|
4
|
+
*/
|
|
5
|
+
export var getStorage = function getStorage(opt) {
|
|
6
|
+
return call('getStorage', opt, {
|
|
7
|
+
type: 'async'
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
export default getStorage;
|
|
11
|
+
/**
|
|
12
|
+
* @doc https://miniprogram.alipay.com/docs/miniprogram/mpdev/API_Storage_getStorage
|
|
13
|
+
*/
|
|
14
|
+
export var getStorageAsync = /*#__PURE__*/promisify(getStorage);
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @doc https://miniprogram.alipay.com/docs/miniprogram/mpdev/API_Network_request
|
|
3
|
+
*/
|
|
4
|
+
export declare const request: (args: {
|
|
5
|
+
url: string;
|
|
6
|
+
headers?: {
|
|
7
|
+
[key: string]: string;
|
|
8
|
+
} | undefined;
|
|
9
|
+
method?: "GET" | "POST" | undefined;
|
|
10
|
+
data?: any;
|
|
11
|
+
timeout?: number | undefined;
|
|
12
|
+
dataType?: "json" | "text" | "base64" | "arraybuffer" | undefined;
|
|
13
|
+
} & import("@hylid/types").AsyncCallback<{
|
|
14
|
+
data: any;
|
|
15
|
+
status: number;
|
|
16
|
+
headers: any;
|
|
17
|
+
}>) => void;
|
|
18
|
+
export default request;
|
|
19
|
+
/**
|
|
20
|
+
* @doc https://miniprogram.alipay.com/docs/miniprogram/mpdev/API_Network_request
|
|
21
|
+
*/
|
|
22
|
+
export declare const requestAsync: (args?: ({
|
|
23
|
+
url: string;
|
|
24
|
+
headers?: {
|
|
25
|
+
[key: string]: string;
|
|
26
|
+
} | undefined;
|
|
27
|
+
method?: "GET" | "POST" | undefined;
|
|
28
|
+
data?: any;
|
|
29
|
+
timeout?: number | undefined;
|
|
30
|
+
dataType?: "json" | "text" | "base64" | "arraybuffer" | undefined;
|
|
31
|
+
} & import("@hylid/types").AsyncCallback<{
|
|
32
|
+
data: any;
|
|
33
|
+
status: number;
|
|
34
|
+
headers: any;
|
|
35
|
+
}>) | undefined) => Promise<{
|
|
36
|
+
data: any;
|
|
37
|
+
status: number;
|
|
38
|
+
headers: any;
|
|
39
|
+
}>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { webCall as call, promisify } from '@hylid/call';
|
|
2
|
+
/**
|
|
3
|
+
* @doc https://miniprogram.alipay.com/docs/miniprogram/mpdev/API_Network_request
|
|
4
|
+
*/
|
|
5
|
+
export var request = function request(opt) {
|
|
6
|
+
return call('request', opt, {
|
|
7
|
+
type: 'async'
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
export default request;
|
|
11
|
+
/**
|
|
12
|
+
* @doc https://miniprogram.alipay.com/docs/miniprogram/mpdev/API_Network_request
|
|
13
|
+
*/
|
|
14
|
+
export var requestAsync = /*#__PURE__*/promisify(request);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @doc https://miniprogram.alipay.com/docs/miniprogram/mpdev/API_UI_NavigationBar_setNavigationBar
|
|
3
|
+
*/
|
|
4
|
+
export declare const setNavigationBar: (args: SetNavigationBarArgs) => void;
|
|
5
|
+
export default setNavigationBar;
|
|
6
|
+
/**
|
|
7
|
+
* @doc https://miniprogram.alipay.com/docs/miniprogram/mpdev/API_UI_NavigationBar_setNavigationBar
|
|
8
|
+
*/
|
|
9
|
+
export declare const setNavigationBarAsync: (args?: SetNavigationBarArgs | undefined) => Promise<undefined>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { webCall as call, promisify } from '@hylid/call';
|
|
2
|
+
/**
|
|
3
|
+
* @doc https://miniprogram.alipay.com/docs/miniprogram/mpdev/API_UI_NavigationBar_setNavigationBar
|
|
4
|
+
*/
|
|
5
|
+
export var setNavigationBar = function setNavigationBar(opt) {
|
|
6
|
+
return call('setNavigationBar', opt, {
|
|
7
|
+
type: 'async'
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
export default setNavigationBar;
|
|
11
|
+
/**
|
|
12
|
+
* @doc https://miniprogram.alipay.com/docs/miniprogram/mpdev/API_UI_NavigationBar_setNavigationBar
|
|
13
|
+
*/
|
|
14
|
+
export var setNavigationBarAsync = /*#__PURE__*/promisify(setNavigationBar);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @doc https://miniprogram.alipay.com/docs/miniprogram/mpdev/API_Storage_setStorage
|
|
3
|
+
*/
|
|
4
|
+
export declare const setStorage: (args: SetStorage) => void;
|
|
5
|
+
export default setStorage;
|
|
6
|
+
/**
|
|
7
|
+
* @doc https://miniprogram.alipay.com/docs/miniprogram/mpdev/API_Storage_setStorage
|
|
8
|
+
*/
|
|
9
|
+
export declare const setStorageAsync: (args?: SetStorage | undefined) => Promise<undefined>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { webCall as call, promisify } from '@hylid/call';
|
|
2
|
+
/**
|
|
3
|
+
* @doc https://miniprogram.alipay.com/docs/miniprogram/mpdev/API_Storage_setStorage
|
|
4
|
+
*/
|
|
5
|
+
export var setStorage = function setStorage(opt) {
|
|
6
|
+
return call('setStorage', opt, {
|
|
7
|
+
type: 'async'
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
export default setStorage;
|
|
11
|
+
/**
|
|
12
|
+
* @doc https://miniprogram.alipay.com/docs/miniprogram/mpdev/API_Storage_setStorage
|
|
13
|
+
*/
|
|
14
|
+
export var setStorageAsync = /*#__PURE__*/promisify(setStorage);
|