@wevu/api 0.2.3 → 0.2.4
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 +3 -1
- package/dist/index.d.mts +282 -32
- package/dist/index.mjs +83 -48
- package/package.json +3 -2
- package/types/index.d.ts +101 -1
package/README.md
CHANGED
|
@@ -27,8 +27,10 @@
|
|
|
27
27
|
| --- | --- | --- | --- |
|
|
28
28
|
| 微信小程序 | `wx` | `miniprogram-api-typings` | ✅ 全量 |
|
|
29
29
|
| 支付宝小程序 | `my` | `@mini-types/alipay` | ✅ 全量 |
|
|
30
|
+
| 百度智能小程序 | `swan` | 运行时透传 | ⚠️ 按宿主能力支持 |
|
|
30
31
|
| 抖音小程序 | `tt` | `@douyin-microapp/typings` | ✅ 全量 |
|
|
31
|
-
|
|
|
32
|
+
| 京东小程序 | `jd` | 运行时透传 | ⚠️ 按宿主能力支持 |
|
|
33
|
+
| 小红书小程序 | `xhs` | 运行时透传 | ⚠️ 按宿主能力支持 |
|
|
32
34
|
|
|
33
35
|
### API 支持覆盖率报告
|
|
34
36
|
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,140 @@
|
|
|
1
|
+
//#region src/core/miniProgramTypeSources.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* @description 微信小程序 API 原始适配器类型源
|
|
4
|
+
*/
|
|
5
|
+
type WeapiWechatMiniProgramRawAdapterSource = WechatMiniprogram.Wx;
|
|
6
|
+
/**
|
|
7
|
+
* @description 默认小程序 API 原始适配器类型源(当前复用微信 typings)
|
|
8
|
+
*/
|
|
9
|
+
type WeapiDefaultMiniProgramRawAdapterSource = WeapiWechatMiniProgramRawAdapterSource;
|
|
10
|
+
/**
|
|
11
|
+
* @description 支付宝小程序 API 原始适配器类型源
|
|
12
|
+
*/
|
|
13
|
+
type WeapiAlipayMiniProgramRawAdapterSource = typeof my;
|
|
14
|
+
/**
|
|
15
|
+
* @description 抖音小程序 API 原始适配器类型源
|
|
16
|
+
*/
|
|
17
|
+
type WeapiDouyinMiniProgramRawAdapterSource = typeof tt;
|
|
18
|
+
/**
|
|
19
|
+
* @description `tt` 命名兼容入口,保持与抖音宿主语义主名一致
|
|
20
|
+
*/
|
|
21
|
+
type WeapiTtMiniProgramRawAdapterSource = WeapiDouyinMiniProgramRawAdapterSource;
|
|
22
|
+
/**
|
|
23
|
+
* @description 小程序平台语义原始适配器类型源 registry
|
|
24
|
+
*/
|
|
25
|
+
interface WeapiMiniProgramPlatformRawAdapterSourceRegistry {
|
|
26
|
+
default: WeapiDefaultMiniProgramRawAdapterSource;
|
|
27
|
+
wechat: WeapiWechatMiniProgramRawAdapterSource;
|
|
28
|
+
alipay: WeapiAlipayMiniProgramRawAdapterSource;
|
|
29
|
+
douyin: WeapiDouyinMiniProgramRawAdapterSource;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @description 小程序运行时别名原始适配器类型源 registry
|
|
33
|
+
*/
|
|
34
|
+
interface WeapiMiniProgramRuntimeRawAdapterSourceRegistry {
|
|
35
|
+
wx: WeapiWechatMiniProgramRawAdapterSource;
|
|
36
|
+
my: WeapiAlipayMiniProgramRawAdapterSource;
|
|
37
|
+
tt: WeapiTtMiniProgramRawAdapterSource;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* @description 小程序平台语义原始适配器类型源名称
|
|
41
|
+
*/
|
|
42
|
+
type WeapiMiniProgramPlatformRawAdapterSourceName = keyof WeapiMiniProgramPlatformRawAdapterSourceRegistry;
|
|
43
|
+
/**
|
|
44
|
+
* @description 小程序运行时别名原始适配器类型源名称
|
|
45
|
+
*/
|
|
46
|
+
type WeapiMiniProgramRuntimeRawAdapterSourceName = keyof WeapiMiniProgramRuntimeRawAdapterSourceRegistry;
|
|
47
|
+
/**
|
|
48
|
+
* @description 小程序原始适配器类型源名称(兼容层联合视图)
|
|
49
|
+
*/
|
|
50
|
+
type WeapiMiniProgramRawAdapterSourceName = WeapiMiniProgramPlatformRawAdapterSourceName | WeapiMiniProgramRuntimeRawAdapterSourceName;
|
|
51
|
+
//#endregion
|
|
52
|
+
//#region src/core/miniProgramTypes.d.ts
|
|
53
|
+
/**
|
|
54
|
+
* @description 微信小程序 API 原始适配器类型
|
|
55
|
+
*/
|
|
56
|
+
type WeapiWechatRawAdapter = WeapiWechatMiniProgramRawAdapterSource;
|
|
57
|
+
/**
|
|
58
|
+
* @description 微信小程序 API 原始适配器类型(宿主中立主名)
|
|
59
|
+
*/
|
|
60
|
+
type WeapiMiniProgramWechatRawAdapter = WeapiWechatRawAdapter;
|
|
61
|
+
/**
|
|
62
|
+
* @description `wx` 命名兼容入口,保持与微信宿主语义主名一致
|
|
63
|
+
*/
|
|
64
|
+
type WeapiWxRawAdapter = WeapiWechatRawAdapter;
|
|
65
|
+
/**
|
|
66
|
+
* @description `wx` 命名兼容入口,保持与微信宿主语义主名一致
|
|
67
|
+
*/
|
|
68
|
+
type WeapiMiniProgramWxRawAdapter = WeapiMiniProgramWechatRawAdapter;
|
|
69
|
+
/**
|
|
70
|
+
* @description 支付宝小程序 API 原始适配器类型(宿主中立主名)
|
|
71
|
+
*/
|
|
72
|
+
type WeapiMiniProgramAlipayRawAdapter = WeapiAlipayMiniProgramRawAdapterSource;
|
|
73
|
+
/**
|
|
74
|
+
* @description 抖音小程序 API 原始适配器类型(宿主中立主名)
|
|
75
|
+
*/
|
|
76
|
+
type WeapiMiniProgramDouyinRawAdapter = WeapiDouyinMiniProgramRawAdapterSource;
|
|
77
|
+
/**
|
|
78
|
+
* @description 小程序主适配器类型(当前以微信 typings 作为基准)
|
|
79
|
+
*/
|
|
80
|
+
type WeapiMiniProgramRawAdapter = WeapiDefaultMiniProgramRawAdapterSource;
|
|
81
|
+
type WeapiMiniProgramRawRequestOption = Parameters<WeapiMiniProgramRawAdapter['request']>[0];
|
|
82
|
+
type WeapiMiniProgramRawConnectSocketOption = Parameters<WeapiMiniProgramRawAdapter['connectSocket']>[0];
|
|
83
|
+
type WeapiMiniProgramCreateBleConnectionOption = Parameters<WeapiMiniProgramRawAdapter['createBLEConnection']>[0];
|
|
84
|
+
type WeapiMiniProgramClipboardOption = Parameters<WeapiMiniProgramRawAdapter['getClipboardData']>[0];
|
|
85
|
+
/**
|
|
86
|
+
* @description 小程序请求参数类型(宿主中立别名)
|
|
87
|
+
*/
|
|
88
|
+
type WeapiMiniProgramRequestOption = WeapiMiniProgramRawRequestOption;
|
|
89
|
+
/**
|
|
90
|
+
* @description 小程序请求方法类型(宿主中立别名)
|
|
91
|
+
*/
|
|
92
|
+
type WeapiMiniProgramRequestMethod = NonNullable<WeapiMiniProgramRequestOption['method']>;
|
|
93
|
+
/**
|
|
94
|
+
* @description 小程序请求任务类型(宿主中立别名)
|
|
95
|
+
*/
|
|
96
|
+
type WeapiMiniProgramRequestTask = ReturnType<WeapiMiniProgramRawAdapter['request']>;
|
|
97
|
+
/**
|
|
98
|
+
* @description 小程序请求成功结果类型(宿主中立别名)
|
|
99
|
+
*/
|
|
100
|
+
type WeapiMiniProgramRequestSuccessResult = Parameters<NonNullable<WeapiMiniProgramRequestOption['success']>>[0];
|
|
101
|
+
/**
|
|
102
|
+
* @description 小程序连接 WebSocket 参数类型(宿主中立别名)
|
|
103
|
+
*/
|
|
104
|
+
type WeapiMiniProgramConnectSocketOption = WeapiMiniProgramRawConnectSocketOption;
|
|
105
|
+
/**
|
|
106
|
+
* @description 小程序 WebSocket 任务类型(宿主中立别名)
|
|
107
|
+
*/
|
|
108
|
+
type WeapiMiniProgramSocketTask = ReturnType<WeapiMiniProgramRawAdapter['connectSocket']>;
|
|
109
|
+
/**
|
|
110
|
+
* @description 小程序系统信息类型(宿主中立别名)
|
|
111
|
+
*/
|
|
112
|
+
type WeapiMiniProgramSystemInfo = ReturnType<WeapiMiniProgramRawAdapter['getSystemInfoSync']>;
|
|
113
|
+
/**
|
|
114
|
+
* @description 小程序更新管理器类型(宿主中立别名)
|
|
115
|
+
*/
|
|
116
|
+
type WeapiMiniProgramUpdateManager = ReturnType<WeapiMiniProgramRawAdapter['getUpdateManager']>;
|
|
117
|
+
/**
|
|
118
|
+
* @description 小程序日志管理器类型(宿主中立别名)
|
|
119
|
+
*/
|
|
120
|
+
type WeapiMiniProgramLogManager = ReturnType<WeapiMiniProgramRawAdapter['getLogManager']>;
|
|
121
|
+
/**
|
|
122
|
+
* @description 小程序视频上下文类型(宿主中立别名)
|
|
123
|
+
*/
|
|
124
|
+
type WeapiMiniProgramVideoContext = ReturnType<WeapiMiniProgramRawAdapter['createVideoContext']>;
|
|
125
|
+
/**
|
|
126
|
+
* @description 小程序选择器查询类型(宿主中立别名)
|
|
127
|
+
*/
|
|
128
|
+
type WeapiMiniProgramSelectorQuery = ReturnType<WeapiMiniProgramRawAdapter['createSelectorQuery']>;
|
|
129
|
+
/**
|
|
130
|
+
* @description 小程序蓝牙错误类型(宿主中立别名)
|
|
131
|
+
*/
|
|
132
|
+
type WeapiMiniProgramBluetoothError = Parameters<NonNullable<WeapiMiniProgramCreateBleConnectionOption['fail']>>[0];
|
|
133
|
+
/**
|
|
134
|
+
* @description 小程序剪贴板读取结果类型(宿主中立别名)
|
|
135
|
+
*/
|
|
136
|
+
type WeapiMiniProgramClipboardDataResult = Parameters<NonNullable<NonNullable<WeapiMiniProgramClipboardOption>['success']>>[0];
|
|
137
|
+
//#endregion
|
|
1
138
|
//#region src/core/nonPromisifiedMethods.d.ts
|
|
2
139
|
/**
|
|
3
140
|
* @description `wpi` 中需要保留原始同步返回值的方法名单。
|
|
@@ -10,6 +147,36 @@
|
|
|
10
147
|
declare const WEAPI_NON_PROMISIFIED_METHOD_NAMES: readonly ["arrayBufferToBase64", "base64ToArrayBuffer", "canIUse", "cancelIdleCallback", "createAnimation", "createAudioContext", "createCameraContext", "createCanvasContext", "createEditorContext", "createInnerAudioContext", "createIntersectionObserver", "createInterstitialAd", "createLivePlayerContext", "createLivePusherContext", "createMapContext", "createMediaAudioPlayer", "createMediaContainer", "createMediaRecorder", "createOffscreenCanvas", "createRewardedVideoAd", "createSelectorQuery", "createTCPSocket", "createUDPSocket", "createVKSession", "createVideoContext", "createWebAudioContext", "createWorker", "getBackgroundAudioManager", "getFileSystemManager", "getLogManager", "getMenuButtonBoundingClientRect", "getNFCAdapter", "getOpenDataContext", "getPerformance", "getRealtimeLogManager", "getRecorderManager", "getUpdateManager", "getUserCryptoManager", "getXrFrameSystem", "nextTick", "reportAnalytics", "requestIdleCallback"];
|
|
11
148
|
type WeapiNonPromisifiedMethodName = typeof WEAPI_NON_PROMISIFIED_METHOD_NAMES[number];
|
|
12
149
|
//#endregion
|
|
150
|
+
//#region src/core/platformAdapters.d.ts
|
|
151
|
+
type MergeAdapters<Primary extends WeapiAdapter, Secondary extends WeapiAdapter> = Primary & Omit<Secondary, keyof Primary>;
|
|
152
|
+
/**
|
|
153
|
+
* @description 支付宝小程序 API 原始适配器类型
|
|
154
|
+
*/
|
|
155
|
+
type WeapiAlipayRawAdapter = WeapiMiniProgramAlipayRawAdapter;
|
|
156
|
+
/**
|
|
157
|
+
* @description 抖音小程序 API 原始适配器类型
|
|
158
|
+
*/
|
|
159
|
+
type WeapiDouyinRawAdapter = WeapiMiniProgramDouyinRawAdapter;
|
|
160
|
+
/**
|
|
161
|
+
* @description weapi 对齐后的跨平台原始 API 类型
|
|
162
|
+
*
|
|
163
|
+
* @generated weapi-platform-matrix:start
|
|
164
|
+
* | 平台 | 全局对象 | 类型来源 | 对齐状态 |
|
|
165
|
+
* | --- | --- | --- | --- |
|
|
166
|
+
* | 微信小程序 | `wx` | `miniprogram-api-typings` | ✅ 全量 |
|
|
167
|
+
* | 支付宝小程序 | `my` | `@mini-types/alipay` | ✅ 全量 |
|
|
168
|
+
* | 百度智能小程序 | `swan` | 运行时透传 | ⚠️ 按宿主能力支持 |
|
|
169
|
+
* | 抖音小程序 | `tt` | `@douyin-microapp/typings` | ✅ 全量 |
|
|
170
|
+
* | 京东小程序 | `jd` | 运行时透传 | ⚠️ 按宿主能力支持 |
|
|
171
|
+
* | 小红书小程序 | `xhs` | 运行时透传 | ⚠️ 按宿主能力支持 |
|
|
172
|
+
* @generated weapi-platform-matrix:end
|
|
173
|
+
*/
|
|
174
|
+
type WeapiMiniProgramCrossPlatformRawAdapter = MergeAdapters<MergeAdapters<WeapiMiniProgramWechatRawAdapter, WeapiMiniProgramAlipayRawAdapter>, WeapiMiniProgramDouyinRawAdapter>;
|
|
175
|
+
/**
|
|
176
|
+
* @description weapi 对齐后的跨平台原始 API 类型
|
|
177
|
+
*/
|
|
178
|
+
type WeapiCrossPlatformRawAdapter = WeapiMiniProgramCrossPlatformRawAdapter;
|
|
179
|
+
//#endregion
|
|
13
180
|
//#region src/core/types/methodDocsCanvasGetImageDataToOpenPrivacyContract/canvasGetImageDataToOpenChannelsActivity.d.ts
|
|
14
181
|
interface WeapiCrossPlatformMethodDocsCanvasGetImageDataToOpenPrivacyContractCanvasGetImageDataToOpenChannelsActivity {
|
|
15
182
|
/**
|
|
@@ -7960,32 +8127,6 @@ type WeapiCrossPlatformMethodDocs = WeapiCrossPlatformMethodDocsShowToastToOpenA
|
|
|
7960
8127
|
//#endregion
|
|
7961
8128
|
//#region src/core/types.d.ts
|
|
7962
8129
|
type WeapiAdapter = Record<string, any>;
|
|
7963
|
-
/**
|
|
7964
|
-
* @description 微信小程序 API 原始适配器类型
|
|
7965
|
-
*/
|
|
7966
|
-
type WeapiWxRawAdapter = WechatMiniprogram.Wx;
|
|
7967
|
-
/**
|
|
7968
|
-
* @description 支付宝小程序 API 原始适配器类型
|
|
7969
|
-
*/
|
|
7970
|
-
type WeapiAlipayRawAdapter = typeof my;
|
|
7971
|
-
/**
|
|
7972
|
-
* @description 抖音小程序 API 原始适配器类型
|
|
7973
|
-
*/
|
|
7974
|
-
type WeapiDouyinRawAdapter = typeof tt;
|
|
7975
|
-
type MergeAdapters<Primary extends WeapiAdapter, Secondary extends WeapiAdapter> = Primary & Omit<Secondary, keyof Primary>;
|
|
7976
|
-
/**
|
|
7977
|
-
* @description weapi 对齐后的跨平台原始 API 类型
|
|
7978
|
-
*
|
|
7979
|
-
* @generated weapi-platform-matrix:start
|
|
7980
|
-
* | 平台 | 全局对象 | 类型来源 | 对齐状态 |
|
|
7981
|
-
* | --- | --- | --- | --- |
|
|
7982
|
-
* | 微信小程序 | `wx` | `miniprogram-api-typings` | ✅ 全量 |
|
|
7983
|
-
* | 支付宝小程序 | `my` | `@mini-types/alipay` | ✅ 全量 |
|
|
7984
|
-
* | 抖音小程序 | `tt` | `@douyin-microapp/typings` | ✅ 全量 |
|
|
7985
|
-
* | 其他平台(swan/jd/xhs 等) | 运行时宿主对象 | 运行时透传 | ⚠️ 按宿主能力支持 |
|
|
7986
|
-
* @generated weapi-platform-matrix:end
|
|
7987
|
-
*/
|
|
7988
|
-
type WeapiCrossPlatformRawAdapter = MergeAdapters<MergeAdapters<WeapiWxRawAdapter, WeapiAlipayRawAdapter>, WeapiDouyinRawAdapter>;
|
|
7989
8130
|
type HasCallbackKey<T> = T extends object ? 'success' extends keyof T ? true : 'fail' extends keyof T ? true : 'complete' extends keyof T ? true : false : false;
|
|
7990
8131
|
type HasCallbackOption<T> = T extends {
|
|
7991
8132
|
success: unknown;
|
|
@@ -8019,18 +8160,38 @@ type WeapiPromisify<TAdapter extends WeapiAdapter> = { [Key in keyof TAdapter]:
|
|
|
8019
8160
|
* @description 微信小程序 API 适配器类型
|
|
8020
8161
|
*/
|
|
8021
8162
|
type WeapiWxAdapter = WeapiPromisify<WeapiWxRawAdapter>;
|
|
8163
|
+
/**
|
|
8164
|
+
* @description 小程序主适配器类型(当前以微信 typings 作为基准)
|
|
8165
|
+
*/
|
|
8166
|
+
type WeapiMiniProgramAdapter = WeapiPromisify<WeapiMiniProgramRawAdapter>;
|
|
8167
|
+
/**
|
|
8168
|
+
* @description 微信小程序 API 适配器类型(宿主中立别名)
|
|
8169
|
+
*/
|
|
8170
|
+
type WeapiMiniProgramWxAdapter = WeapiPromisify<WeapiMiniProgramWxRawAdapter>;
|
|
8022
8171
|
/**
|
|
8023
8172
|
* @description 支付宝小程序 API 适配器类型
|
|
8024
8173
|
*/
|
|
8025
|
-
type
|
|
8174
|
+
type WeapiMiniProgramAlipayAdapter = WeapiPromisify<WeapiMiniProgramAlipayRawAdapter>;
|
|
8175
|
+
/**
|
|
8176
|
+
* @description 支付宝小程序 API 适配器类型
|
|
8177
|
+
*/
|
|
8178
|
+
type WeapiAlipayAdapter = WeapiMiniProgramAlipayAdapter;
|
|
8179
|
+
/**
|
|
8180
|
+
* @description 抖音小程序 API 适配器类型
|
|
8181
|
+
*/
|
|
8182
|
+
type WeapiMiniProgramDouyinAdapter = WeapiPromisify<WeapiMiniProgramDouyinRawAdapter>;
|
|
8026
8183
|
/**
|
|
8027
8184
|
* @description 抖音小程序 API 适配器类型
|
|
8028
8185
|
*/
|
|
8029
|
-
type WeapiDouyinAdapter =
|
|
8186
|
+
type WeapiDouyinAdapter = WeapiMiniProgramDouyinAdapter;
|
|
8187
|
+
/**
|
|
8188
|
+
* @description weapi 默认导出的跨平台 API 适配器类型
|
|
8189
|
+
*/
|
|
8190
|
+
type WeapiMiniProgramCrossPlatformAdapter = WeapiPromisify<WeapiMiniProgramCrossPlatformRawAdapter>;
|
|
8030
8191
|
/**
|
|
8031
8192
|
* @description weapi 默认导出的跨平台 API 适配器类型
|
|
8032
8193
|
*/
|
|
8033
|
-
type WeapiCrossPlatformAdapter =
|
|
8194
|
+
type WeapiCrossPlatformAdapter = WeapiMiniProgramCrossPlatformAdapter;
|
|
8034
8195
|
/**
|
|
8035
8196
|
* @description weapi 核心映射 API 的平台支持度说明
|
|
8036
8197
|
*/
|
|
@@ -8134,6 +8295,93 @@ type WeapiInstance<TAdapter extends WeapiAdapter = WeapiCrossPlatformRawAdapter>
|
|
|
8134
8295
|
*/
|
|
8135
8296
|
declare function createWeapi<TAdapter extends WeapiAdapter = WeapiCrossPlatformRawAdapter>(options?: CreateWeapiOptions<TAdapter>): WeapiInstance<TAdapter>;
|
|
8136
8297
|
//#endregion
|
|
8298
|
+
//#region src/core/apiCatalog/typeSources.d.ts
|
|
8299
|
+
/**
|
|
8300
|
+
* @description 三端 API 名单(由 typings 自动提取,请勿手工修改)
|
|
8301
|
+
* @generated by scripts/sync-api-catalog.mjs
|
|
8302
|
+
*/
|
|
8303
|
+
declare const WEAPI_TYPE_SOURCES: {
|
|
8304
|
+
readonly default: {
|
|
8305
|
+
readonly package: "miniprogram-api-typings";
|
|
8306
|
+
readonly version: "5.1.2";
|
|
8307
|
+
};
|
|
8308
|
+
readonly wechat: {
|
|
8309
|
+
readonly package: "miniprogram-api-typings";
|
|
8310
|
+
readonly version: "5.1.2";
|
|
8311
|
+
};
|
|
8312
|
+
readonly alipay: {
|
|
8313
|
+
readonly package: "@mini-types/alipay";
|
|
8314
|
+
readonly version: "3.0.14";
|
|
8315
|
+
};
|
|
8316
|
+
readonly douyin: {
|
|
8317
|
+
readonly package: "@douyin-microapp/typings";
|
|
8318
|
+
readonly version: "1.3.1";
|
|
8319
|
+
};
|
|
8320
|
+
readonly wx: {
|
|
8321
|
+
readonly package: "miniprogram-api-typings";
|
|
8322
|
+
readonly version: "5.1.2";
|
|
8323
|
+
};
|
|
8324
|
+
readonly my: {
|
|
8325
|
+
readonly package: "@mini-types/alipay";
|
|
8326
|
+
readonly version: "3.0.14";
|
|
8327
|
+
};
|
|
8328
|
+
readonly tt: {
|
|
8329
|
+
readonly package: "@douyin-microapp/typings";
|
|
8330
|
+
readonly version: "1.3.1";
|
|
8331
|
+
};
|
|
8332
|
+
};
|
|
8333
|
+
declare const WEAPI_PLATFORM_TYPE_SOURCES: {
|
|
8334
|
+
readonly default: {
|
|
8335
|
+
readonly package: "miniprogram-api-typings";
|
|
8336
|
+
readonly version: "5.1.2";
|
|
8337
|
+
};
|
|
8338
|
+
readonly wechat: {
|
|
8339
|
+
readonly package: "miniprogram-api-typings";
|
|
8340
|
+
readonly version: "5.1.2";
|
|
8341
|
+
};
|
|
8342
|
+
readonly alipay: {
|
|
8343
|
+
readonly package: "@mini-types/alipay";
|
|
8344
|
+
readonly version: "3.0.14";
|
|
8345
|
+
};
|
|
8346
|
+
readonly douyin: {
|
|
8347
|
+
readonly package: "@douyin-microapp/typings";
|
|
8348
|
+
readonly version: "1.3.1";
|
|
8349
|
+
};
|
|
8350
|
+
};
|
|
8351
|
+
declare const WEAPI_RUNTIME_TYPE_SOURCES: {
|
|
8352
|
+
readonly wx: {
|
|
8353
|
+
readonly package: "miniprogram-api-typings";
|
|
8354
|
+
readonly version: "5.1.2";
|
|
8355
|
+
};
|
|
8356
|
+
readonly my: {
|
|
8357
|
+
readonly package: "@mini-types/alipay";
|
|
8358
|
+
readonly version: "3.0.14";
|
|
8359
|
+
};
|
|
8360
|
+
readonly tt: {
|
|
8361
|
+
readonly package: "@douyin-microapp/typings";
|
|
8362
|
+
readonly version: "1.3.1";
|
|
8363
|
+
};
|
|
8364
|
+
};
|
|
8365
|
+
//#endregion
|
|
8366
|
+
//#region src/core/apiCatalog/index.d.ts
|
|
8367
|
+
declare const WEAPI_WECHAT_METHODS: readonly ["addCard", "addFileToFavorites", "addPaymentPassFinish", "addPaymentPassGetCertificateData", "addPhoneCalendar", "addPhoneContact", "addPhoneRepeatCalendar", "addVideoToFavorites", "arrayBufferToBase64", "authorize", "authorizeForMiniProgram", "authPrivateMessage", "base64ToArrayBuffer", "batchGetStorage", "batchGetStorageSync", "batchSetStorage", "batchSetStorageSync", "bindEmployeeRelation", "canAddSecureElementPass", "cancelIdleCallback", "canIUse", "canvasGetImageData", "canvasPutImageData", "canvasToTempFilePath", "checkDeviceSupportHevc", "checkEmployeeRelation", "checkIsAddedToMyMiniProgram", "checkIsOpenAccessibility", "checkIsPictureInPictureActive", "checkIsSoterEnrolledInDevice", "checkIsSupportSoterAuthentication", "checkSession", "chooseAddress", "chooseContact", "chooseImage", "chooseInvoice", "chooseInvoiceTitle", "chooseLicensePlate", "chooseLocation", "chooseMedia", "chooseMessageFile", "choosePoi", "chooseVideo", "clearStorage", "clearStorageSync", "closeBLEConnection", "closeBluetoothAdapter", "closeSocket", "compressImage", "compressVideo", "connectSocket", "connectWifi", "createAnimation", "createAudioContext", "createBLEConnection", "createBLEPeripheralServer", "createBufferURL", "createCacheManager", "createCameraContext", "createCanvasContext", "createGlobalPayment", "createInferenceSession", "createInnerAudioContext", "createIntersectionObserver", "createInterstitialAd", "createLivePlayerContext", "createLivePusherContext", "createMapContext", "createMediaAudioPlayer", "createMediaContainer", "createMediaRecorder", "createOffscreenCanvas", "createRewardedVideoAd", "createSelectorQuery", "createTCPSocket", "createUDPSocket", "createVideoContext", "createVideoDecoder", "createVKSession", "createWebAudioContext", "createWorker", "cropImage", "disableAlertBeforeUnload", "downloadFile", "editImage", "enableAlertBeforeUnload", "exitMiniProgram", "exitVoIPChat", "faceDetect", "getAccountInfoSync", "getApiCategory", "getAppAuthorizeSetting", "getAppBaseInfo", "getAvailableAudioSources", "getBackgroundAudioManager", "getBackgroundAudioPlayerState", "getBackgroundFetchData", "getBackgroundFetchToken", "getBatteryInfo", "getBatteryInfoSync", "getBeacons", "getBLEDeviceCharacteristics", "getBLEDeviceRSSI", "getBLEDeviceServices", "getBLEMTU", "getBluetoothAdapterState", "getBluetoothDevices", "getChannelsLiveInfo", "getChannelsLiveNoticeInfo", "getChannelsShareKey", "getChatToolInfo", "getClipboardData", "getCommonConfig", "getConnectedBluetoothDevices", "getConnectedWifi", "getDeviceBenchmarkInfo", "getDeviceInfo", "getDeviceVoIPList", "getEnterOptionsSync", "getExptInfoSync", "getExtConfig", "getExtConfigSync", "getFileSystemManager", "getFuzzyLocation", "getGroupEnterInfo", "getHCEState", "getImageInfo", "getInferenceEnvInfo", "getLaunchOptionsSync", "getLocalIPAddress", "getLocation", "getLogManager", "getMenuButtonBoundingClientRect", "getNetworkType", "getNFCAdapter", "getPerformance", "getPrivacySetting", "getRandomValues", "getRealtimeLogManager", "getRecorderManager", "getRendererUserAgent", "getScreenBrightness", "getScreenRecordingState", "getSecureElementPasses", "getSelectedTextRange", "getSetting", "getShareInfo", "getShowSplashAdStatus", "getSkylineInfo", "getSkylineInfoSync", "getStorage", "getStorageInfo", "getStorageInfoSync", "getStorageSync", "getSystemInfo", "getSystemInfoAsync", "getSystemInfoSync", "getSystemSetting", "getUpdateManager", "getUserCryptoManager", "getUserInfo", "getUserProfile", "getVideoInfo", "getWeRunData", "getWifiList", "getWindowInfo", "getXrFrameSystem", "hideHomeButton", "hideKeyboard", "hideLoading", "hideNavigationBarLoading", "hideShareMenu", "hideTabBar", "hideTabBarRedDot", "hideToast", "initFaceDetect", "isBluetoothDevicePaired", "isVKSupport", "join1v1Chat", "joinVoIPChat", "loadBuiltInFontFace", "loadFontFace", "login", "makeBluetoothPair", "makePhoneCall", "navigateBack", "navigateBackMiniProgram", "navigateTo", "navigateToMiniProgram", "nextTick", "notifyBLECharacteristicValueChange", "notifyGroupMembers", "offAccelerometerChange", "offAfterPageLoad", "offAfterPageUnload", "offApiCategoryChange", "offAppHide", "offAppRoute", "offAppRouteDone", "offAppShow", "offAudioInterruptionBegin", "offAudioInterruptionEnd", "offBatteryInfoChange", "offBeaconServiceChange", "offBeaconUpdate", "offBeforeAppRoute", "offBeforePageLoad", "offBeforePageUnload", "offBLECharacteristicValueChange", "offBLEConnectionStateChange", "offBLEMTUChange", "offBLEPeripheralConnectionStateChanged", "offBluetoothAdapterStateChange", "offBluetoothDeviceFound", "offCompassChange", "offCopyUrl", "offDeviceMotionChange", "offEmbeddedMiniProgramHeightChange", "offError", "offGeneratePoster", "offGetWifiList", "offGyroscopeChange", "offHCEMessage", "offKeyboardHeightChange", "offKeyDown", "offKeyUp", "offLazyLoadError", "offLocalServiceDiscoveryStop", "offLocalServiceFound", "offLocalServiceLost", "offLocalServiceResolveFail", "offLocationChange", "offLocationChangeError", "offMemoryWarning", "offMenuButtonBoundingClientRectWeightChange", "offNetworkStatusChange", "offNetworkWeakChange", "offPageNotFound", "offParallelStateChange", "offScreenRecordingStateChanged", "offThemeChange", "offUnhandledRejection", "offUserCaptureScreen", "offUserOffTranslation", "offUserTriggerTranslation", "offVoIPChatInterrupted", "offVoIPChatMembersChanged", "offVoIPChatSpeakersChanged", "offVoIPChatStateChanged", "offVoIPVideoMembersChanged", "offWifiConnected", "offWifiConnectedWithPartialInfo", "offWindowResize", "offWindowStateChange", "onAccelerometerChange", "onAfterPageLoad", "onAfterPageUnload", "onApiCategoryChange", "onAppHide", "onAppRoute", "onAppRouteDone", "onAppShow", "onAudioInterruptionBegin", "onAudioInterruptionEnd", "onBackgroundAudioPause", "onBackgroundAudioPlay", "onBackgroundAudioStop", "onBackgroundFetchData", "onBatteryInfoChange", "onBeaconServiceChange", "onBeaconUpdate", "onBeforeAppRoute", "onBeforePageLoad", "onBeforePageUnload", "onBLECharacteristicValueChange", "onBLEConnectionStateChange", "onBLEMTUChange", "onBLEPeripheralConnectionStateChanged", "onBluetoothAdapterStateChange", "onBluetoothDeviceFound", "onCompassChange", "onCopyUrl", "onDeviceMotionChange", "onEmbeddedMiniProgramHeightChange", "onError", "onGeneratePoster", "onGetWifiList", "onGyroscopeChange", "onHCEMessage", "onKeyboardHeightChange", "onKeyDown", "onKeyUp", "onLazyLoadError", "onLocalServiceDiscoveryStop", "onLocalServiceFound", "onLocalServiceLost", "onLocalServiceResolveFail", "onLocationChange", "onLocationChangeError", "onMemoryWarning", "onMenuButtonBoundingClientRectWeightChange", "onNeedPrivacyAuthorization", "onNetworkStatusChange", "onNetworkWeakChange", "onPageNotFound", "onParallelStateChange", "onScreenRecordingStateChanged", "onSocketClose", "onSocketError", "onSocketMessage", "onSocketOpen", "onThemeChange", "onUnhandledRejection", "onUserCaptureScreen", "onUserOffTranslation", "onUserTriggerTranslation", "onVoIPChatInterrupted", "onVoIPChatMembersChanged", "onVoIPChatSpeakersChanged", "onVoIPChatStateChanged", "onVoIPVideoMembersChanged", "onWifiConnected", "onWifiConnectedWithPartialInfo", "onWindowResize", "onWindowStateChange", "openAppAuthorizeSetting", "openBluetoothAdapter", "openCard", "openChannelsActivity", "openChannelsEvent", "openChannelsLive", "openChannelsLiveNoticeInfo", "openChannelsUserProfile", "openChatTool", "openCustomerServiceChat", "openDocument", "openEmbeddedMiniProgram", "openHKOfflinePayView", "openInquiriesTopic", "openLocation", "openOfficialAccountArticle", "openOfficialAccountChat", "openOfficialAccountProfile", "openPrivacyContract", "openSetting", "openSingleStickerView", "openStickerIPView", "openStickerSetView", "openStoreCouponDetail", "openStoreOrderDetail", "openSystemBluetoothSetting", "openVideoEditor", "pageScrollTo", "pauseBackgroundAudio", "pauseVoice", "playBackgroundAudio", "playVoice", "pluginLogin", "postMessageToReferrerMiniProgram", "postMessageToReferrerPage", "preDownloadSubpackage", "preloadAssets", "preloadSkylineView", "preloadWebview", "previewImage", "previewMedia", "readBLECharacteristicValue", "redirectTo", "reLaunch", "removeSecureElementPass", "removeStorage", "removeStorageSync", "removeTabBarBadge", "reportAnalytics", "reportEvent", "reportMonitor", "reportPerformance", "request", "requestCommonPayment", "requestDeviceVoIP", "requestIdleCallback", "requestMerchantTransfer", "requestOrderPayment", "requestPayment", "requestPluginPayment", "requestSubscribeDeviceMessage", "requestSubscribeEmployeeMessage", "requestSubscribeMessage", "requestVirtualPayment", "requirePrivacyAuthorize", "reserveChannelsLive", "restartMiniProgram", "revokeBufferURL", "rewriteRoute", "saveFileToDisk", "saveImageToPhotosAlbum", "saveVideoToPhotosAlbum", "scanCode", "seekBackgroundAudio", "selectGroupMembers", "sendHCEMessage", "sendSms", "sendSocketMessage", "setBackgroundColor", "setBackgroundFetchToken", "setBackgroundTextStyle", "setBLEMTU", "setClipboardData", "setEnable1v1Chat", "setEnableDebug", "setInnerAudioOption", "setKeepScreenOn", "setNavigationBarColor", "setNavigationBarTitle", "setScreenBrightness", "setStorage", "setStorageSync", "setTabBarBadge", "setTabBarItem", "setTabBarStyle", "setTopBarText", "setVisualEffectOnCapture", "setWifiList", "setWindowSize", "shareAppMessageToGroup", "shareEmojiToGroup", "shareFileMessage", "shareFileToGroup", "shareImageToGroup", "shareToOfficialAccount", "shareToWeRun", "shareVideoMessage", "shareVideoToGroup", "showActionSheet", "showLoading", "showModal", "showNavigationBarLoading", "showRedPackage", "showShareImageMenu", "showShareMenu", "showTabBar", "showTabBarRedDot", "showToast", "startAccelerometer", "startBeaconDiscovery", "startBluetoothDevicesDiscovery", "startCompass", "startDeviceMotionListening", "startGyroscope", "startHCE", "startLocalServiceDiscovery", "startLocationUpdate", "startLocationUpdateBackground", "startPullDownRefresh", "startRecord", "startSoterAuthentication", "startWifi", "stopAccelerometer", "stopBackgroundAudio", "stopBeaconDiscovery", "stopBluetoothDevicesDiscovery", "stopCompass", "stopDeviceMotionListening", "stopFaceDetect", "stopGyroscope", "stopHCE", "stopLocalServiceDiscovery", "stopLocationUpdate", "stopPullDownRefresh", "stopRecord", "stopVoice", "stopWifi", "subscribeVoIPVideoMembers", "switchTab", "updateShareMenu", "updateVoIPChatMuteConfig", "updateWeChatApp", "uploadFile", "vibrateLong", "vibrateShort", "writeBLECharacteristicValue"];
|
|
8368
|
+
declare const WEAPI_ALIPAY_METHODS: readonly ["addPhoneContact", "alert", "arrayBufferToBase64", "base64ToArrayBuffer", "calculateRoute", "call", "cancelBluetoothPair", "canIUse", "canvasToTempFilePath", "checkBeforeAddOrder", "checkIsIfaaEnrolledInDevice", "checkIsSupportIfaaAuthentication", "chooseAlipayContact", "chooseCity", "chooseContact", "chooseDistrict", "chooseImage", "chooseLocation", "choosePhoneContact", "chooseVideo", "clearStorage", "clearStorageSync", "closeBluetoothAdapter", "closeSocket", "compressImage", "confirm", "connectBLEDevice", "connectSocket", "connectWifi", "createAnimation", "createCanvasContext", "createInnerAudioContext", "createIntersectionObserver", "createLottieContext", "createMapContext", "createOffscreenCanvas", "createRewardedAd", "createSelectorQuery", "createVideoContext", "createWebViewContext", "createWorker", "datePicker", "detectFileType", "disableAlertBeforeUnload", "disconnectBLEDevice", "downloadFile", "enableAlertBeforeUnload", "exitMiniProgram", "generateImageFromCode", "getAccessibilityManager", "getAccountInfoSync", "getAddress", "getAppAuthorizeSetting", "getAppBaseInfo", "getAppIdSync", "getAuthCode", "getAvailableAudioSources", "getBackgroundAudioManager", "getBackgroundFetchData", "getBatteryInfo", "getBatteryInfoSync", "getBeacons", "getBLEDeviceCharacteristics", "getBLEDeviceRSSI", "getBLEDeviceServices", "getBLEDeviceStatus", "getBLEMTU", "getBluetoothAdapterState", "getBluetoothDevices", "getBluetoothPairs", "getClipboard", "getConnectedBluetoothDevices", "getConnectedWifi", "getEnterOptionsSync", "getExtConfig", "getExtConfigSync", "getFileInfo", "getFileSystemManager", "getGeocoder", "getImageInfo", "getLaunchOptionsSync", "getLeftButtonsBoundingClientRect", "getLocalIPAddress", "getLocation", "getMapInfo", "getMenuButtonBoundingClientRect", "getNetworkType", "getOpenUserInfo", "getParentAppId", "getParentAppIdSync", "getPhoneNumber", "getPluginIdSync", "getRecorderManager", "getRunData", "getRunScene", "getSavedFileInfo", "getSavedFileList", "getScreenBrightness", "getServerTime", "getSetting", "getStorage", "getStorageInfo", "getStorageInfoSync", "getStorageSync", "getSystemInfo", "getSystemInfoSync", "getSystemSetting", "getTitleColor", "getUpdateManager", "getVideoInfo", "getWifiList", "getWindowInfo", "hideAddToDesktopMenu", "hideAllAddToDesktopMenu", "hideBackHome", "hideKeyboard", "hideLoading", "hideNavigationBarLoading", "hideShareMenu", "hideTabBar", "hideTabBarRedDot", "hideToast", "isScreenReaderEnabled", "loadFontFace", "loadPlugin", "makeBluetoothPair", "makePhoneCall", "multiLevelSelect", "navigateBack", "navigateBackMiniProgram", "navigateTo", "navigateToMiniProgram", "notifyBLECharacteristicValueChange", "off", "offAccelerometerChange", "offAppHide", "offAppShow", "offAudioInterruptionBegin", "offAudioInterruptionEnd", "offBeaconServiceChange", "offBeaconUpdate", "offBLECharacteristicValueChange", "offBLEConnectionStateChanged", "offBluetoothAdapterStateChange", "offBluetoothDeviceFound", "offCompassChange", "offComponentError", "offDeviceMotionChange", "offError", "offGetWifiList", "offGyroscopeChange", "offLocatedComplete", "offMemoryWarning", "offNetworkStatusChange", "offPageNotFound", "offSocketClose", "offSocketError", "offSocketMessage", "offSocketOpen", "offUnhandledRejection", "offUserCaptureScreen", "offWifiConnected", "on", "onAccelerometerChange", "onAppHide", "onAppShow", "onAudioInterruptionBegin", "onAudioInterruptionEnd", "onBeaconServiceChange", "onBeaconUpdate", "onBLECharacteristicValueChange", "onBLEConnectionStateChanged", "onBluetoothAdapterStateChange", "onBluetoothDeviceFound", "onCompassChange", "onComponentError", "onDeviceMotionChange", "onError", "onGetWifiList", "onGyroscopeChange", "onLocatedComplete", "onMemoryWarning", "onNetworkStatusChange", "onPageNotFound", "onSocketClose", "onSocketError", "onSocketMessage", "onSocketOpen", "onUnhandledRejection", "onUserCaptureScreen", "onWifiConnected", "openBluetoothAdapter", "openDocument", "openKBVoucherDetail", "openLocation", "openMerchantTicketList", "openMerchantVoucherList", "openOtherApp", "openSetting", "openTicketDetail", "openTicketList", "openVoucherDetail", "openVoucherList", "optionsSelect", "pageScrollTo", "paySignCenter", "previewImage", "prompt", "readBLECharacteristicValue", "redirectTo", "regionPicker", "registerSSID", "reLaunch", "removeSavedFile", "removeStorage", "removeStorageSync", "removeTabBarBadge", "request", "requestSubscribeMessage", "rsa", "saveFile", "saveFileToDisk", "saveImage", "saveImageToPhotosAlbum", "saveVideoToPhotosAlbum", "scan", "sendSocketMessage", "setBackgroundColor", "setBackgroundTextStyle", "setBLEMTU", "setCanPullDown", "setClipboard", "setKeepScreenOn", "setLocatedCity", "setNavigationBar", "setNavigationBarBottomLineColor", "setNavigationBarColor", "setNavigationBarTitle", "setScreenBrightness", "setStorage", "setStorageSync", "setTabBarBadge", "setTabBarItem", "setTabBarStyle", "setVisualEffectOnCapture", "setWifiList", "showActionSheet", "showAuthGuide", "showBLEPermissionGuide", "showLoading", "showModal", "showNavigationBarLoading", "showShareMenu", "showSharePanel", "showTabBar", "showTabBarRedDot", "showToast", "startAccelerometer", "startAPVerify", "startBeaconDiscovery", "startBluetoothDevicesDiscovery", "startCompass", "startGyroscope", "startIfaaAuthentication", "startPullDownRefresh", "startWifi", "stopAccelerometer", "stopBeaconDiscovery", "stopBluetoothDevicesDiscovery", "stopCompass", "stopGyroscope", "stopPullDownRefresh", "stopWifi", "switchTab", "tradePay", "unregisterSSID", "unsubscribeMessage", "uploadFile", "vibrate", "vibrateLong", "vibrateShort", "watchShake", "writeBLECharacteristicValue"];
|
|
8369
|
+
declare const WEAPI_DOUYIN_METHODS: readonly ["applyEcCoupon", "applyRefund", "arrayBufferToBase64", "authorize", "base64ToArrayBuffer", "canIPutStuffOverComponent", "canIUse", "canvasToTempFilePath", "checkFollowAwemeState", "checkFollowState", "checkSession", "chooseAddress", "chooseImage", "chooseLocation", "chooseMedia", "clearStorage", "clearStorageSync", "completePaySync", "completeRefundSync", "compressImage", "connectSocket", "continueToPay", "createAnimation", "createBytennEngineContext", "createCanvasContext", "createCloud", "createInnerAudioContext", "createIntersectionObserver", "createInterstitialAd", "createLivePlayerContext", "createMapContext", "createMediaRecorder", "createMerchantOrder", "createOffscreenCanvas", "createOrder", "createRefundOrder", "createRewardedVideoAd", "createRtcRoomContext", "createSelectorQuery", "createStickerManager", "createVideoContext", "createWorker", "downloadFile", "exitMiniProgram", "followAwemeUser", "followOfficialAccount", "getAnalysisInfo", "getBackgroundAudioManager", "getClipboardData", "getConnectedWifi", "getCustomButtonBoundingClientRect", "getEnvInfoSync", "getExtConfig", "getExtConfigSync", "getFileInfo", "getFileSystemManager", "getImageInfo", "getLaunchOptionsSync", "getLiveUserInfo", "getLocation", "getMenuButtonBoundingClientRect", "getMenuButtonLayout", "getMicroappInfo", "getRecorderManager", "getRefundOrder", "getRoomInfo", "getSavedFileList", "getScreenBrightness", "getSelfCommentCountDuringPluginRunning", "getSetting", "getShopRecordToken", "getSidebarActivity", "getStorage", "getStorageInfo", "getStorageInfoSync", "getStorageSync", "getSystemInfo", "getSystemInfoSync", "getUpdateManager", "getUserInfo", "getUserProfile", "getWifiList", "hideHomeButton", "hideInteractionBar", "hideKeyboard", "hideLoading", "hideNavigationBarLoading", "hideShareMenu", "hideTabBar", "hideTabBarRedDot", "hideToast", "isFollowingAnchor", "login", "makePhoneCall", "navigateBack", "navigateBackMiniProgram", "navigateTo", "navigateToMiniProgram", "navigateToScene", "navigateToVideoView", "offAppHide", "offAppShow", "offCompassChange", "offError", "offGetWifiList", "offLazyLoadError", "offNetworkStatusChange", "offPageNotFound", "offUnhandledRejection", "offUserCaptureScreen", "offWindowResize", "onAccelerometerChange", "onAppHide", "onAppShow", "onCompassChange", "onError", "onGetWifiList", "onLazyLoadError", "onMemoryWarning", "onNetworkStatusChange", "onPageNotFound", "onReceiveAudiencesFollowAction", "onReceiveSpecifiedComment", "onUnhandledRejection", "onUserCaptureScreen", "onWindowResize", "openAwemeUserProfile", "openLocation", "openSetting", "pageScrollTo", "pay", "preloadDrawAd", "prerenderVideo", "previewImage", "redirectTo", "reLaunch", "removeSavedFile", "removeStorage", "removeStorageSync", "removeTabBarBadge", "reportAnalytics", "request", "requestSubscribeMessage", "saveFile", "saveImageToPhotosAlbum", "scanCode", "setClipboardData", "setKeepScreenOn", "setNavigationBarColor", "setNavigationBarTitle", "setScreenBrightness", "setStorage", "setStorageSync", "setTabBarBadge", "setTabBarItem", "setTabBarStyle", "showActionSheet", "showDouyinOpenAuth", "showFavoriteGuide", "showInteractionBar", "showLoading", "showModal", "showNavigationBarLoading", "showShareMenu", "showTabBar", "showTabBarRedDot", "showToast", "startAccelerometer", "startCompass", "startPullDownRefresh", "stopAccelerometer", "stopCompass", "stopPullDownRefresh", "submitEcCustomGoods", "subscribeAudiencesFollowAction", "subscribeSpecifiedContentComment", "subscribeSpecifiedUserComment", "switchTab", "unsubscribeAllSpecifiedContentComment", "unsubscribeAllSpecifiedUserComment", "unsubscribeAudiencesFollowAction", "updateExitGuideWindowInfo", "updateShopMemberPoints", "updateSidebarActivity", "uploadFile", "vibrateLong", "vibrateShort"];
|
|
8370
|
+
declare const WEAPI_MINIPROGRAM_METHODS: readonly ["addCard", "addFileToFavorites", "addPaymentPassFinish", "addPaymentPassGetCertificateData", "addPhoneCalendar", "addPhoneContact", "addPhoneRepeatCalendar", "addVideoToFavorites", "arrayBufferToBase64", "authorize", "authorizeForMiniProgram", "authPrivateMessage", "base64ToArrayBuffer", "batchGetStorage", "batchGetStorageSync", "batchSetStorage", "batchSetStorageSync", "bindEmployeeRelation", "canAddSecureElementPass", "cancelIdleCallback", "canIUse", "canvasGetImageData", "canvasPutImageData", "canvasToTempFilePath", "checkDeviceSupportHevc", "checkEmployeeRelation", "checkIsAddedToMyMiniProgram", "checkIsOpenAccessibility", "checkIsPictureInPictureActive", "checkIsSoterEnrolledInDevice", "checkIsSupportSoterAuthentication", "checkSession", "chooseAddress", "chooseContact", "chooseImage", "chooseInvoice", "chooseInvoiceTitle", "chooseLicensePlate", "chooseLocation", "chooseMedia", "chooseMessageFile", "choosePoi", "chooseVideo", "clearStorage", "clearStorageSync", "closeBLEConnection", "closeBluetoothAdapter", "closeSocket", "compressImage", "compressVideo", "connectSocket", "connectWifi", "createAnimation", "createAudioContext", "createBLEConnection", "createBLEPeripheralServer", "createBufferURL", "createCacheManager", "createCameraContext", "createCanvasContext", "createGlobalPayment", "createInferenceSession", "createInnerAudioContext", "createIntersectionObserver", "createInterstitialAd", "createLivePlayerContext", "createLivePusherContext", "createMapContext", "createMediaAudioPlayer", "createMediaContainer", "createMediaRecorder", "createOffscreenCanvas", "createRewardedVideoAd", "createSelectorQuery", "createTCPSocket", "createUDPSocket", "createVideoContext", "createVideoDecoder", "createVKSession", "createWebAudioContext", "createWorker", "cropImage", "disableAlertBeforeUnload", "downloadFile", "editImage", "enableAlertBeforeUnload", "exitMiniProgram", "exitVoIPChat", "faceDetect", "getAccountInfoSync", "getApiCategory", "getAppAuthorizeSetting", "getAppBaseInfo", "getAvailableAudioSources", "getBackgroundAudioManager", "getBackgroundAudioPlayerState", "getBackgroundFetchData", "getBackgroundFetchToken", "getBatteryInfo", "getBatteryInfoSync", "getBeacons", "getBLEDeviceCharacteristics", "getBLEDeviceRSSI", "getBLEDeviceServices", "getBLEMTU", "getBluetoothAdapterState", "getBluetoothDevices", "getChannelsLiveInfo", "getChannelsLiveNoticeInfo", "getChannelsShareKey", "getChatToolInfo", "getClipboardData", "getCommonConfig", "getConnectedBluetoothDevices", "getConnectedWifi", "getDeviceBenchmarkInfo", "getDeviceInfo", "getDeviceVoIPList", "getEnterOptionsSync", "getExptInfoSync", "getExtConfig", "getExtConfigSync", "getFileSystemManager", "getFuzzyLocation", "getGroupEnterInfo", "getHCEState", "getImageInfo", "getInferenceEnvInfo", "getLaunchOptionsSync", "getLocalIPAddress", "getLocation", "getLogManager", "getMenuButtonBoundingClientRect", "getNetworkType", "getNFCAdapter", "getPerformance", "getPrivacySetting", "getRandomValues", "getRealtimeLogManager", "getRecorderManager", "getRendererUserAgent", "getScreenBrightness", "getScreenRecordingState", "getSecureElementPasses", "getSelectedTextRange", "getSetting", "getShareInfo", "getShowSplashAdStatus", "getSkylineInfo", "getSkylineInfoSync", "getStorage", "getStorageInfo", "getStorageInfoSync", "getStorageSync", "getSystemInfo", "getSystemInfoAsync", "getSystemInfoSync", "getSystemSetting", "getUpdateManager", "getUserCryptoManager", "getUserInfo", "getUserProfile", "getVideoInfo", "getWeRunData", "getWifiList", "getWindowInfo", "getXrFrameSystem", "hideHomeButton", "hideKeyboard", "hideLoading", "hideNavigationBarLoading", "hideShareMenu", "hideTabBar", "hideTabBarRedDot", "hideToast", "initFaceDetect", "isBluetoothDevicePaired", "isVKSupport", "join1v1Chat", "joinVoIPChat", "loadBuiltInFontFace", "loadFontFace", "login", "makeBluetoothPair", "makePhoneCall", "navigateBack", "navigateBackMiniProgram", "navigateTo", "navigateToMiniProgram", "nextTick", "notifyBLECharacteristicValueChange", "notifyGroupMembers", "offAccelerometerChange", "offAfterPageLoad", "offAfterPageUnload", "offApiCategoryChange", "offAppHide", "offAppRoute", "offAppRouteDone", "offAppShow", "offAudioInterruptionBegin", "offAudioInterruptionEnd", "offBatteryInfoChange", "offBeaconServiceChange", "offBeaconUpdate", "offBeforeAppRoute", "offBeforePageLoad", "offBeforePageUnload", "offBLECharacteristicValueChange", "offBLEConnectionStateChange", "offBLEMTUChange", "offBLEPeripheralConnectionStateChanged", "offBluetoothAdapterStateChange", "offBluetoothDeviceFound", "offCompassChange", "offCopyUrl", "offDeviceMotionChange", "offEmbeddedMiniProgramHeightChange", "offError", "offGeneratePoster", "offGetWifiList", "offGyroscopeChange", "offHCEMessage", "offKeyboardHeightChange", "offKeyDown", "offKeyUp", "offLazyLoadError", "offLocalServiceDiscoveryStop", "offLocalServiceFound", "offLocalServiceLost", "offLocalServiceResolveFail", "offLocationChange", "offLocationChangeError", "offMemoryWarning", "offMenuButtonBoundingClientRectWeightChange", "offNetworkStatusChange", "offNetworkWeakChange", "offPageNotFound", "offParallelStateChange", "offScreenRecordingStateChanged", "offThemeChange", "offUnhandledRejection", "offUserCaptureScreen", "offUserOffTranslation", "offUserTriggerTranslation", "offVoIPChatInterrupted", "offVoIPChatMembersChanged", "offVoIPChatSpeakersChanged", "offVoIPChatStateChanged", "offVoIPVideoMembersChanged", "offWifiConnected", "offWifiConnectedWithPartialInfo", "offWindowResize", "offWindowStateChange", "onAccelerometerChange", "onAfterPageLoad", "onAfterPageUnload", "onApiCategoryChange", "onAppHide", "onAppRoute", "onAppRouteDone", "onAppShow", "onAudioInterruptionBegin", "onAudioInterruptionEnd", "onBackgroundAudioPause", "onBackgroundAudioPlay", "onBackgroundAudioStop", "onBackgroundFetchData", "onBatteryInfoChange", "onBeaconServiceChange", "onBeaconUpdate", "onBeforeAppRoute", "onBeforePageLoad", "onBeforePageUnload", "onBLECharacteristicValueChange", "onBLEConnectionStateChange", "onBLEMTUChange", "onBLEPeripheralConnectionStateChanged", "onBluetoothAdapterStateChange", "onBluetoothDeviceFound", "onCompassChange", "onCopyUrl", "onDeviceMotionChange", "onEmbeddedMiniProgramHeightChange", "onError", "onGeneratePoster", "onGetWifiList", "onGyroscopeChange", "onHCEMessage", "onKeyboardHeightChange", "onKeyDown", "onKeyUp", "onLazyLoadError", "onLocalServiceDiscoveryStop", "onLocalServiceFound", "onLocalServiceLost", "onLocalServiceResolveFail", "onLocationChange", "onLocationChangeError", "onMemoryWarning", "onMenuButtonBoundingClientRectWeightChange", "onNeedPrivacyAuthorization", "onNetworkStatusChange", "onNetworkWeakChange", "onPageNotFound", "onParallelStateChange", "onScreenRecordingStateChanged", "onSocketClose", "onSocketError", "onSocketMessage", "onSocketOpen", "onThemeChange", "onUnhandledRejection", "onUserCaptureScreen", "onUserOffTranslation", "onUserTriggerTranslation", "onVoIPChatInterrupted", "onVoIPChatMembersChanged", "onVoIPChatSpeakersChanged", "onVoIPChatStateChanged", "onVoIPVideoMembersChanged", "onWifiConnected", "onWifiConnectedWithPartialInfo", "onWindowResize", "onWindowStateChange", "openAppAuthorizeSetting", "openBluetoothAdapter", "openCard", "openChannelsActivity", "openChannelsEvent", "openChannelsLive", "openChannelsLiveNoticeInfo", "openChannelsUserProfile", "openChatTool", "openCustomerServiceChat", "openDocument", "openEmbeddedMiniProgram", "openHKOfflinePayView", "openInquiriesTopic", "openLocation", "openOfficialAccountArticle", "openOfficialAccountChat", "openOfficialAccountProfile", "openPrivacyContract", "openSetting", "openSingleStickerView", "openStickerIPView", "openStickerSetView", "openStoreCouponDetail", "openStoreOrderDetail", "openSystemBluetoothSetting", "openVideoEditor", "pageScrollTo", "pauseBackgroundAudio", "pauseVoice", "playBackgroundAudio", "playVoice", "pluginLogin", "postMessageToReferrerMiniProgram", "postMessageToReferrerPage", "preDownloadSubpackage", "preloadAssets", "preloadSkylineView", "preloadWebview", "previewImage", "previewMedia", "readBLECharacteristicValue", "redirectTo", "reLaunch", "removeSecureElementPass", "removeStorage", "removeStorageSync", "removeTabBarBadge", "reportAnalytics", "reportEvent", "reportMonitor", "reportPerformance", "request", "requestCommonPayment", "requestDeviceVoIP", "requestIdleCallback", "requestMerchantTransfer", "requestOrderPayment", "requestPayment", "requestPluginPayment", "requestSubscribeDeviceMessage", "requestSubscribeEmployeeMessage", "requestSubscribeMessage", "requestVirtualPayment", "requirePrivacyAuthorize", "reserveChannelsLive", "restartMiniProgram", "revokeBufferURL", "rewriteRoute", "saveFileToDisk", "saveImageToPhotosAlbum", "saveVideoToPhotosAlbum", "scanCode", "seekBackgroundAudio", "selectGroupMembers", "sendHCEMessage", "sendSms", "sendSocketMessage", "setBackgroundColor", "setBackgroundFetchToken", "setBackgroundTextStyle", "setBLEMTU", "setClipboardData", "setEnable1v1Chat", "setEnableDebug", "setInnerAudioOption", "setKeepScreenOn", "setNavigationBarColor", "setNavigationBarTitle", "setScreenBrightness", "setStorage", "setStorageSync", "setTabBarBadge", "setTabBarItem", "setTabBarStyle", "setTopBarText", "setVisualEffectOnCapture", "setWifiList", "setWindowSize", "shareAppMessageToGroup", "shareEmojiToGroup", "shareFileMessage", "shareFileToGroup", "shareImageToGroup", "shareToOfficialAccount", "shareToWeRun", "shareVideoMessage", "shareVideoToGroup", "showActionSheet", "showLoading", "showModal", "showNavigationBarLoading", "showRedPackage", "showShareImageMenu", "showShareMenu", "showTabBar", "showTabBarRedDot", "showToast", "startAccelerometer", "startBeaconDiscovery", "startBluetoothDevicesDiscovery", "startCompass", "startDeviceMotionListening", "startGyroscope", "startHCE", "startLocalServiceDiscovery", "startLocationUpdate", "startLocationUpdateBackground", "startPullDownRefresh", "startRecord", "startSoterAuthentication", "startWifi", "stopAccelerometer", "stopBackgroundAudio", "stopBeaconDiscovery", "stopBluetoothDevicesDiscovery", "stopCompass", "stopDeviceMotionListening", "stopFaceDetect", "stopGyroscope", "stopHCE", "stopLocalServiceDiscovery", "stopLocationUpdate", "stopPullDownRefresh", "stopRecord", "stopVoice", "stopWifi", "subscribeVoIPVideoMembers", "switchTab", "updateShareMenu", "updateVoIPChatMuteConfig", "updateWeChatApp", "uploadFile", "vibrateLong", "vibrateShort", "writeBLECharacteristicValue"];
|
|
8371
|
+
declare const WEAPI_MINIPROGRAM_WECHAT_METHODS: readonly ["addCard", "addFileToFavorites", "addPaymentPassFinish", "addPaymentPassGetCertificateData", "addPhoneCalendar", "addPhoneContact", "addPhoneRepeatCalendar", "addVideoToFavorites", "arrayBufferToBase64", "authorize", "authorizeForMiniProgram", "authPrivateMessage", "base64ToArrayBuffer", "batchGetStorage", "batchGetStorageSync", "batchSetStorage", "batchSetStorageSync", "bindEmployeeRelation", "canAddSecureElementPass", "cancelIdleCallback", "canIUse", "canvasGetImageData", "canvasPutImageData", "canvasToTempFilePath", "checkDeviceSupportHevc", "checkEmployeeRelation", "checkIsAddedToMyMiniProgram", "checkIsOpenAccessibility", "checkIsPictureInPictureActive", "checkIsSoterEnrolledInDevice", "checkIsSupportSoterAuthentication", "checkSession", "chooseAddress", "chooseContact", "chooseImage", "chooseInvoice", "chooseInvoiceTitle", "chooseLicensePlate", "chooseLocation", "chooseMedia", "chooseMessageFile", "choosePoi", "chooseVideo", "clearStorage", "clearStorageSync", "closeBLEConnection", "closeBluetoothAdapter", "closeSocket", "compressImage", "compressVideo", "connectSocket", "connectWifi", "createAnimation", "createAudioContext", "createBLEConnection", "createBLEPeripheralServer", "createBufferURL", "createCacheManager", "createCameraContext", "createCanvasContext", "createGlobalPayment", "createInferenceSession", "createInnerAudioContext", "createIntersectionObserver", "createInterstitialAd", "createLivePlayerContext", "createLivePusherContext", "createMapContext", "createMediaAudioPlayer", "createMediaContainer", "createMediaRecorder", "createOffscreenCanvas", "createRewardedVideoAd", "createSelectorQuery", "createTCPSocket", "createUDPSocket", "createVideoContext", "createVideoDecoder", "createVKSession", "createWebAudioContext", "createWorker", "cropImage", "disableAlertBeforeUnload", "downloadFile", "editImage", "enableAlertBeforeUnload", "exitMiniProgram", "exitVoIPChat", "faceDetect", "getAccountInfoSync", "getApiCategory", "getAppAuthorizeSetting", "getAppBaseInfo", "getAvailableAudioSources", "getBackgroundAudioManager", "getBackgroundAudioPlayerState", "getBackgroundFetchData", "getBackgroundFetchToken", "getBatteryInfo", "getBatteryInfoSync", "getBeacons", "getBLEDeviceCharacteristics", "getBLEDeviceRSSI", "getBLEDeviceServices", "getBLEMTU", "getBluetoothAdapterState", "getBluetoothDevices", "getChannelsLiveInfo", "getChannelsLiveNoticeInfo", "getChannelsShareKey", "getChatToolInfo", "getClipboardData", "getCommonConfig", "getConnectedBluetoothDevices", "getConnectedWifi", "getDeviceBenchmarkInfo", "getDeviceInfo", "getDeviceVoIPList", "getEnterOptionsSync", "getExptInfoSync", "getExtConfig", "getExtConfigSync", "getFileSystemManager", "getFuzzyLocation", "getGroupEnterInfo", "getHCEState", "getImageInfo", "getInferenceEnvInfo", "getLaunchOptionsSync", "getLocalIPAddress", "getLocation", "getLogManager", "getMenuButtonBoundingClientRect", "getNetworkType", "getNFCAdapter", "getPerformance", "getPrivacySetting", "getRandomValues", "getRealtimeLogManager", "getRecorderManager", "getRendererUserAgent", "getScreenBrightness", "getScreenRecordingState", "getSecureElementPasses", "getSelectedTextRange", "getSetting", "getShareInfo", "getShowSplashAdStatus", "getSkylineInfo", "getSkylineInfoSync", "getStorage", "getStorageInfo", "getStorageInfoSync", "getStorageSync", "getSystemInfo", "getSystemInfoAsync", "getSystemInfoSync", "getSystemSetting", "getUpdateManager", "getUserCryptoManager", "getUserInfo", "getUserProfile", "getVideoInfo", "getWeRunData", "getWifiList", "getWindowInfo", "getXrFrameSystem", "hideHomeButton", "hideKeyboard", "hideLoading", "hideNavigationBarLoading", "hideShareMenu", "hideTabBar", "hideTabBarRedDot", "hideToast", "initFaceDetect", "isBluetoothDevicePaired", "isVKSupport", "join1v1Chat", "joinVoIPChat", "loadBuiltInFontFace", "loadFontFace", "login", "makeBluetoothPair", "makePhoneCall", "navigateBack", "navigateBackMiniProgram", "navigateTo", "navigateToMiniProgram", "nextTick", "notifyBLECharacteristicValueChange", "notifyGroupMembers", "offAccelerometerChange", "offAfterPageLoad", "offAfterPageUnload", "offApiCategoryChange", "offAppHide", "offAppRoute", "offAppRouteDone", "offAppShow", "offAudioInterruptionBegin", "offAudioInterruptionEnd", "offBatteryInfoChange", "offBeaconServiceChange", "offBeaconUpdate", "offBeforeAppRoute", "offBeforePageLoad", "offBeforePageUnload", "offBLECharacteristicValueChange", "offBLEConnectionStateChange", "offBLEMTUChange", "offBLEPeripheralConnectionStateChanged", "offBluetoothAdapterStateChange", "offBluetoothDeviceFound", "offCompassChange", "offCopyUrl", "offDeviceMotionChange", "offEmbeddedMiniProgramHeightChange", "offError", "offGeneratePoster", "offGetWifiList", "offGyroscopeChange", "offHCEMessage", "offKeyboardHeightChange", "offKeyDown", "offKeyUp", "offLazyLoadError", "offLocalServiceDiscoveryStop", "offLocalServiceFound", "offLocalServiceLost", "offLocalServiceResolveFail", "offLocationChange", "offLocationChangeError", "offMemoryWarning", "offMenuButtonBoundingClientRectWeightChange", "offNetworkStatusChange", "offNetworkWeakChange", "offPageNotFound", "offParallelStateChange", "offScreenRecordingStateChanged", "offThemeChange", "offUnhandledRejection", "offUserCaptureScreen", "offUserOffTranslation", "offUserTriggerTranslation", "offVoIPChatInterrupted", "offVoIPChatMembersChanged", "offVoIPChatSpeakersChanged", "offVoIPChatStateChanged", "offVoIPVideoMembersChanged", "offWifiConnected", "offWifiConnectedWithPartialInfo", "offWindowResize", "offWindowStateChange", "onAccelerometerChange", "onAfterPageLoad", "onAfterPageUnload", "onApiCategoryChange", "onAppHide", "onAppRoute", "onAppRouteDone", "onAppShow", "onAudioInterruptionBegin", "onAudioInterruptionEnd", "onBackgroundAudioPause", "onBackgroundAudioPlay", "onBackgroundAudioStop", "onBackgroundFetchData", "onBatteryInfoChange", "onBeaconServiceChange", "onBeaconUpdate", "onBeforeAppRoute", "onBeforePageLoad", "onBeforePageUnload", "onBLECharacteristicValueChange", "onBLEConnectionStateChange", "onBLEMTUChange", "onBLEPeripheralConnectionStateChanged", "onBluetoothAdapterStateChange", "onBluetoothDeviceFound", "onCompassChange", "onCopyUrl", "onDeviceMotionChange", "onEmbeddedMiniProgramHeightChange", "onError", "onGeneratePoster", "onGetWifiList", "onGyroscopeChange", "onHCEMessage", "onKeyboardHeightChange", "onKeyDown", "onKeyUp", "onLazyLoadError", "onLocalServiceDiscoveryStop", "onLocalServiceFound", "onLocalServiceLost", "onLocalServiceResolveFail", "onLocationChange", "onLocationChangeError", "onMemoryWarning", "onMenuButtonBoundingClientRectWeightChange", "onNeedPrivacyAuthorization", "onNetworkStatusChange", "onNetworkWeakChange", "onPageNotFound", "onParallelStateChange", "onScreenRecordingStateChanged", "onSocketClose", "onSocketError", "onSocketMessage", "onSocketOpen", "onThemeChange", "onUnhandledRejection", "onUserCaptureScreen", "onUserOffTranslation", "onUserTriggerTranslation", "onVoIPChatInterrupted", "onVoIPChatMembersChanged", "onVoIPChatSpeakersChanged", "onVoIPChatStateChanged", "onVoIPVideoMembersChanged", "onWifiConnected", "onWifiConnectedWithPartialInfo", "onWindowResize", "onWindowStateChange", "openAppAuthorizeSetting", "openBluetoothAdapter", "openCard", "openChannelsActivity", "openChannelsEvent", "openChannelsLive", "openChannelsLiveNoticeInfo", "openChannelsUserProfile", "openChatTool", "openCustomerServiceChat", "openDocument", "openEmbeddedMiniProgram", "openHKOfflinePayView", "openInquiriesTopic", "openLocation", "openOfficialAccountArticle", "openOfficialAccountChat", "openOfficialAccountProfile", "openPrivacyContract", "openSetting", "openSingleStickerView", "openStickerIPView", "openStickerSetView", "openStoreCouponDetail", "openStoreOrderDetail", "openSystemBluetoothSetting", "openVideoEditor", "pageScrollTo", "pauseBackgroundAudio", "pauseVoice", "playBackgroundAudio", "playVoice", "pluginLogin", "postMessageToReferrerMiniProgram", "postMessageToReferrerPage", "preDownloadSubpackage", "preloadAssets", "preloadSkylineView", "preloadWebview", "previewImage", "previewMedia", "readBLECharacteristicValue", "redirectTo", "reLaunch", "removeSecureElementPass", "removeStorage", "removeStorageSync", "removeTabBarBadge", "reportAnalytics", "reportEvent", "reportMonitor", "reportPerformance", "request", "requestCommonPayment", "requestDeviceVoIP", "requestIdleCallback", "requestMerchantTransfer", "requestOrderPayment", "requestPayment", "requestPluginPayment", "requestSubscribeDeviceMessage", "requestSubscribeEmployeeMessage", "requestSubscribeMessage", "requestVirtualPayment", "requirePrivacyAuthorize", "reserveChannelsLive", "restartMiniProgram", "revokeBufferURL", "rewriteRoute", "saveFileToDisk", "saveImageToPhotosAlbum", "saveVideoToPhotosAlbum", "scanCode", "seekBackgroundAudio", "selectGroupMembers", "sendHCEMessage", "sendSms", "sendSocketMessage", "setBackgroundColor", "setBackgroundFetchToken", "setBackgroundTextStyle", "setBLEMTU", "setClipboardData", "setEnable1v1Chat", "setEnableDebug", "setInnerAudioOption", "setKeepScreenOn", "setNavigationBarColor", "setNavigationBarTitle", "setScreenBrightness", "setStorage", "setStorageSync", "setTabBarBadge", "setTabBarItem", "setTabBarStyle", "setTopBarText", "setVisualEffectOnCapture", "setWifiList", "setWindowSize", "shareAppMessageToGroup", "shareEmojiToGroup", "shareFileMessage", "shareFileToGroup", "shareImageToGroup", "shareToOfficialAccount", "shareToWeRun", "shareVideoMessage", "shareVideoToGroup", "showActionSheet", "showLoading", "showModal", "showNavigationBarLoading", "showRedPackage", "showShareImageMenu", "showShareMenu", "showTabBar", "showTabBarRedDot", "showToast", "startAccelerometer", "startBeaconDiscovery", "startBluetoothDevicesDiscovery", "startCompass", "startDeviceMotionListening", "startGyroscope", "startHCE", "startLocalServiceDiscovery", "startLocationUpdate", "startLocationUpdateBackground", "startPullDownRefresh", "startRecord", "startSoterAuthentication", "startWifi", "stopAccelerometer", "stopBackgroundAudio", "stopBeaconDiscovery", "stopBluetoothDevicesDiscovery", "stopCompass", "stopDeviceMotionListening", "stopFaceDetect", "stopGyroscope", "stopHCE", "stopLocalServiceDiscovery", "stopLocationUpdate", "stopPullDownRefresh", "stopRecord", "stopVoice", "stopWifi", "subscribeVoIPVideoMembers", "switchTab", "updateShareMenu", "updateVoIPChatMuteConfig", "updateWeChatApp", "uploadFile", "vibrateLong", "vibrateShort", "writeBLECharacteristicValue"];
|
|
8372
|
+
type WeapiMiniProgramMethodName = (typeof WEAPI_MINIPROGRAM_METHODS)[number];
|
|
8373
|
+
type WeapiPlatformTypeSourceName = 'default' | 'wechat' | 'alipay' | 'douyin';
|
|
8374
|
+
type WeapiRuntimeTypeSourceName = 'wx' | 'my' | 'tt';
|
|
8375
|
+
type WeapiTypeSourceName = WeapiPlatformTypeSourceName | WeapiRuntimeTypeSourceName;
|
|
8376
|
+
type WeapiMiniProgramWechatMethodName = (typeof WEAPI_MINIPROGRAM_WECHAT_METHODS)[number];
|
|
8377
|
+
type WeapiMiniProgramWxMethodName = WeapiMiniProgramMethodName;
|
|
8378
|
+
type WeapiWechatMethodName = WeapiMiniProgramWechatMethodName;
|
|
8379
|
+
type WeapiWxMethodName = (typeof WEAPI_WECHAT_METHODS)[number];
|
|
8380
|
+
type WeapiMiniProgramAlipayMethodName = (typeof WEAPI_ALIPAY_METHODS)[number];
|
|
8381
|
+
type WeapiAlipayMethodName = WeapiMiniProgramAlipayMethodName;
|
|
8382
|
+
type WeapiMiniProgramDouyinMethodName = (typeof WEAPI_DOUYIN_METHODS)[number];
|
|
8383
|
+
type WeapiDouyinMethodName = WeapiMiniProgramDouyinMethodName;
|
|
8384
|
+
//#endregion
|
|
8137
8385
|
//#region src/index.d.ts
|
|
8138
8386
|
/**
|
|
8139
8387
|
* @description 默认跨平台 API 实例(推荐使用)
|
|
@@ -8143,10 +8391,12 @@ declare function createWeapi<TAdapter extends WeapiAdapter = WeapiCrossPlatformR
|
|
|
8143
8391
|
* | --- | --- | --- |
|
|
8144
8392
|
* | 微信小程序 (`wx`) | `miniprogram-api-typings` | ✅ 全量 |
|
|
8145
8393
|
* | 支付宝小程序 (`my`) | `@mini-types/alipay` | ✅ 全量 |
|
|
8394
|
+
* | 百度智能小程序 (`swan`) | 运行时透传 | ⚠️ 按宿主能力支持 |
|
|
8146
8395
|
* | 抖音小程序 (`tt`) | `@douyin-microapp/typings` | ✅ 全量 |
|
|
8147
|
-
* |
|
|
8396
|
+
* | 京东小程序 (`jd`) | 运行时透传 | ⚠️ 按宿主能力支持 |
|
|
8397
|
+
* | 小红书小程序 (`xhs`) | 运行时透传 | ⚠️ 按宿主能力支持 |
|
|
8148
8398
|
* @generated weapi-platform-matrix:end
|
|
8149
8399
|
*/
|
|
8150
|
-
declare const wpi: WeapiInstance<
|
|
8400
|
+
declare const wpi: WeapiInstance<WeapiMiniProgramCrossPlatformRawAdapter>;
|
|
8151
8401
|
//#endregion
|
|
8152
|
-
export { type CreateWeapiOptions, type WeapiAdapter, type WeapiAlipayAdapter, type WeapiAlipayRawAdapter, type WeapiCrossPlatformAdapter, type WeapiCrossPlatformRawAdapter, type WeapiDouyinAdapter, type WeapiDouyinRawAdapter, type WeapiInstance, type WeapiMethodSupportQueryOptions, type WeapiNetworkOptions, type WeapiNetworkOverflowPolicy, type WeapiPromisify, type WeapiResolvedTarget, type WeapiSupportLevel, type WeapiWxAdapter, type WeapiWxRawAdapter, createWeapi, wpi };
|
|
8402
|
+
export { type CreateWeapiOptions, WEAPI_PLATFORM_TYPE_SOURCES, WEAPI_RUNTIME_TYPE_SOURCES, WEAPI_TYPE_SOURCES, type WeapiAdapter, type WeapiAlipayAdapter, type WeapiAlipayMethodName, type WeapiAlipayMiniProgramRawAdapterSource, type WeapiAlipayRawAdapter, type WeapiCrossPlatformAdapter, type WeapiCrossPlatformRawAdapter, type WeapiDefaultMiniProgramRawAdapterSource, type WeapiDouyinAdapter, type WeapiDouyinMethodName, type WeapiDouyinMiniProgramRawAdapterSource, type WeapiDouyinRawAdapter, type WeapiInstance, type WeapiMethodSupportQueryOptions, type WeapiMiniProgramAdapter, type WeapiMiniProgramAlipayAdapter, type WeapiMiniProgramAlipayMethodName, type WeapiMiniProgramAlipayRawAdapter, type WeapiMiniProgramBluetoothError, type WeapiMiniProgramClipboardDataResult, type WeapiMiniProgramConnectSocketOption, type WeapiMiniProgramCrossPlatformAdapter, type WeapiMiniProgramCrossPlatformRawAdapter, type WeapiMiniProgramDouyinAdapter, type WeapiMiniProgramDouyinMethodName, type WeapiMiniProgramDouyinRawAdapter, type WeapiMiniProgramLogManager, type WeapiMiniProgramMethodName, type WeapiMiniProgramPlatformRawAdapterSourceName, type WeapiMiniProgramPlatformRawAdapterSourceRegistry, type WeapiMiniProgramRawAdapter, type WeapiMiniProgramRawAdapterSourceName, type WeapiMiniProgramRequestMethod, type WeapiMiniProgramRequestOption, type WeapiMiniProgramRequestSuccessResult, type WeapiMiniProgramRequestTask, type WeapiMiniProgramRuntimeRawAdapterSourceName, type WeapiMiniProgramRuntimeRawAdapterSourceRegistry, type WeapiMiniProgramSelectorQuery, type WeapiMiniProgramSocketTask, type WeapiMiniProgramSystemInfo, type WeapiMiniProgramUpdateManager, type WeapiMiniProgramVideoContext, type WeapiMiniProgramWechatMethodName, type WeapiMiniProgramWechatRawAdapter, type WeapiMiniProgramWxAdapter, type WeapiMiniProgramWxMethodName, type WeapiMiniProgramWxRawAdapter, type WeapiNetworkOptions, type WeapiNetworkOverflowPolicy, type WeapiPlatformTypeSourceName, type WeapiPromisify, type WeapiResolvedTarget, type WeapiRuntimeTypeSourceName, type WeapiSupportLevel, type WeapiTtMiniProgramRawAdapterSource, type WeapiTypeSourceName, type WeapiWechatMethodName, type WeapiWechatMiniProgramRawAdapterSource, type WeapiWechatRawAdapter, type WeapiWxAdapter, type WeapiWxMethodName, type WeapiWxRawAdapter, createWeapi, wpi };
|
package/dist/index.mjs
CHANGED
|
@@ -1,37 +1,18 @@
|
|
|
1
|
+
import { getMiniProgramPlatformByRuntimeGlobalKey, getMiniProgramRuntimeGlobalKey, getMiniProgramRuntimeGlobalKeys, getMiniProgramRuntimeHostConfigKey, normalizeMiniProgramPlatform, resolveMiniProgramPlatform } from "@weapp-core/shared";
|
|
1
2
|
//#region src/core/adapter.ts
|
|
2
3
|
const GLOBAL_ADAPTER_KEYS = [
|
|
3
|
-
{
|
|
4
|
-
platform:
|
|
5
|
-
key
|
|
6
|
-
},
|
|
7
|
-
{
|
|
8
|
-
platform: "my",
|
|
9
|
-
key: "my"
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
platform: "tt",
|
|
13
|
-
key: "tt"
|
|
14
|
-
},
|
|
4
|
+
...getMiniProgramRuntimeGlobalKeys().map((key) => ({
|
|
5
|
+
platform: key,
|
|
6
|
+
key
|
|
7
|
+
})),
|
|
15
8
|
{
|
|
16
9
|
platform: "qq",
|
|
17
10
|
key: "qq"
|
|
18
11
|
},
|
|
19
|
-
{
|
|
20
|
-
platform: "swan",
|
|
21
|
-
key: "swan"
|
|
22
|
-
},
|
|
23
12
|
{
|
|
24
13
|
platform: "ks",
|
|
25
14
|
key: "ks"
|
|
26
15
|
},
|
|
27
|
-
{
|
|
28
|
-
platform: "jd",
|
|
29
|
-
key: "jd"
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
platform: "xhs",
|
|
33
|
-
key: "xhs"
|
|
34
|
-
},
|
|
35
16
|
{
|
|
36
17
|
platform: "dd",
|
|
37
18
|
key: "dd"
|
|
@@ -738,6 +719,53 @@ const WEAPI_TT_METHODS_UNSUBSCRIBE_AUDIENCES_FOLLOW_ACTION_TO_VIBRATE_SHORT = [
|
|
|
738
719
|
*/
|
|
739
720
|
const WEAPI_TT_METHODS = [...WEAPI_TT_METHODS_APPLY_EC_COUPON_TO_UNSUBSCRIBE_ALL_SPECIFIED_USER_COMMENT, ...WEAPI_TT_METHODS_UNSUBSCRIBE_AUDIENCES_FOLLOW_ACTION_TO_VIBRATE_SHORT];
|
|
740
721
|
//#endregion
|
|
722
|
+
//#region src/core/apiCatalog/typeSources.ts
|
|
723
|
+
/**
|
|
724
|
+
* @description 三端 API 名单(由 typings 自动提取,请勿手工修改)
|
|
725
|
+
* @generated by scripts/sync-api-catalog.mjs
|
|
726
|
+
*/
|
|
727
|
+
const WEAPI_TYPE_SOURCES = {
|
|
728
|
+
default: {
|
|
729
|
+
package: "miniprogram-api-typings",
|
|
730
|
+
version: "5.1.2"
|
|
731
|
+
},
|
|
732
|
+
wechat: {
|
|
733
|
+
package: "miniprogram-api-typings",
|
|
734
|
+
version: "5.1.2"
|
|
735
|
+
},
|
|
736
|
+
alipay: {
|
|
737
|
+
package: "@mini-types/alipay",
|
|
738
|
+
version: "3.0.14"
|
|
739
|
+
},
|
|
740
|
+
douyin: {
|
|
741
|
+
package: "@douyin-microapp/typings",
|
|
742
|
+
version: "1.3.1"
|
|
743
|
+
},
|
|
744
|
+
wx: {
|
|
745
|
+
package: "miniprogram-api-typings",
|
|
746
|
+
version: "5.1.2"
|
|
747
|
+
},
|
|
748
|
+
my: {
|
|
749
|
+
package: "@mini-types/alipay",
|
|
750
|
+
version: "3.0.14"
|
|
751
|
+
},
|
|
752
|
+
tt: {
|
|
753
|
+
package: "@douyin-microapp/typings",
|
|
754
|
+
version: "1.3.1"
|
|
755
|
+
}
|
|
756
|
+
};
|
|
757
|
+
const WEAPI_PLATFORM_TYPE_SOURCES = {
|
|
758
|
+
default: WEAPI_TYPE_SOURCES.default,
|
|
759
|
+
wechat: WEAPI_TYPE_SOURCES.wechat,
|
|
760
|
+
alipay: WEAPI_TYPE_SOURCES.alipay,
|
|
761
|
+
douyin: WEAPI_TYPE_SOURCES.douyin
|
|
762
|
+
};
|
|
763
|
+
const WEAPI_RUNTIME_TYPE_SOURCES = {
|
|
764
|
+
wx: WEAPI_TYPE_SOURCES.wx,
|
|
765
|
+
my: WEAPI_TYPE_SOURCES.my,
|
|
766
|
+
tt: WEAPI_TYPE_SOURCES.tt
|
|
767
|
+
};
|
|
768
|
+
//#endregion
|
|
741
769
|
//#region src/core/apiCatalog/wxMethodsAddCardToJoinVoIPChat.ts
|
|
742
770
|
/**
|
|
743
771
|
* @description 三端 API 名单(由 typings 自动提取,请勿手工修改)
|
|
@@ -1243,22 +1271,18 @@ const WEAPI_WX_METHODS_PRE_DOWNLOAD_SUBPACKAGE_TO_WRITE_BLECHARACTERISTIC_VALUE
|
|
|
1243
1271
|
"writeBLECharacteristicValue"
|
|
1244
1272
|
];
|
|
1245
1273
|
//#endregion
|
|
1246
|
-
//#region src/core/apiCatalog/
|
|
1247
|
-
|
|
1248
|
-
* @description 三端 API 名单(由 typings 自动提取,请勿手工修改)
|
|
1249
|
-
* @generated by scripts/sync-api-catalog.mjs
|
|
1250
|
-
*/
|
|
1251
|
-
const WEAPI_WX_METHODS = [
|
|
1274
|
+
//#region src/core/apiCatalog/index.ts
|
|
1275
|
+
const WEAPI_WECHAT_METHODS = [
|
|
1252
1276
|
...WEAPI_WX_METHODS_ADD_CARD_TO_JOIN_VO_IPCHAT,
|
|
1253
1277
|
...WEAPI_WX_METHODS_LOAD_BUILT_IN_FONT_FACE_TO_POST_MESSAGE_TO_REFERRER_PAGE,
|
|
1254
1278
|
...WEAPI_WX_METHODS_PRE_DOWNLOAD_SUBPACKAGE_TO_WRITE_BLECHARACTERISTIC_VALUE
|
|
1255
1279
|
];
|
|
1280
|
+
const WEAPI_ALIPAY_METHODS = WEAPI_MY_METHODS;
|
|
1281
|
+
const WEAPI_DOUYIN_METHODS = WEAPI_TT_METHODS;
|
|
1282
|
+
const WEAPI_MINIPROGRAM_METHODS = WEAPI_WECHAT_METHODS;
|
|
1256
1283
|
//#endregion
|
|
1257
1284
|
//#region src/core/methodMapping/rules/helpersDeviceAndStorage.ts
|
|
1258
|
-
const PLATFORM_ALIASES$1 = {
|
|
1259
|
-
alipay: "my",
|
|
1260
|
-
douyin: "tt"
|
|
1261
|
-
};
|
|
1285
|
+
const PLATFORM_ALIASES$1 = { kuaishou: "ks" };
|
|
1262
1286
|
function mapSaveFileArgs(args) {
|
|
1263
1287
|
if (args.length === 0) return args;
|
|
1264
1288
|
const nextArgs = [...args];
|
|
@@ -1365,9 +1389,10 @@ function mapDouyinSaveFileResult(result) {
|
|
|
1365
1389
|
return result;
|
|
1366
1390
|
}
|
|
1367
1391
|
function normalizePlatformName$1(value) {
|
|
1368
|
-
|
|
1369
|
-
const normalized = value.trim().toLowerCase();
|
|
1392
|
+
const normalized = normalizeMiniProgramPlatform(value);
|
|
1370
1393
|
if (!normalized) return;
|
|
1394
|
+
const miniProgramPlatform = resolveMiniProgramPlatform(normalized);
|
|
1395
|
+
if (miniProgramPlatform) return getMiniProgramRuntimeGlobalKey(miniProgramPlatform);
|
|
1371
1396
|
return PLATFORM_ALIASES$1[normalized] ?? normalized;
|
|
1372
1397
|
}
|
|
1373
1398
|
//#endregion
|
|
@@ -2096,10 +2121,10 @@ const METHOD_MAPPINGS = {
|
|
|
2096
2121
|
...TT_METHOD_MAPPINGS_JOIN_VO_IPCHAT_TO_OFF_BLECONNECTION_STATE_CHANGE
|
|
2097
2122
|
}
|
|
2098
2123
|
};
|
|
2099
|
-
new Set(
|
|
2124
|
+
new Set(WEAPI_MINIPROGRAM_METHODS);
|
|
2100
2125
|
const PLATFORM_METHOD_SET = {
|
|
2101
|
-
my: new Set(
|
|
2102
|
-
tt: new Set(
|
|
2126
|
+
my: new Set(WEAPI_ALIPAY_METHODS),
|
|
2127
|
+
tt: new Set(WEAPI_DOUYIN_METHODS)
|
|
2103
2128
|
};
|
|
2104
2129
|
function createFallbackMappingRule(platform, methodName) {}
|
|
2105
2130
|
function resolveMappingRule(platform, methodName, options = {}) {
|
|
@@ -2171,8 +2196,18 @@ function resolveQueueSize(value) {
|
|
|
2171
2196
|
if (!isFinitePositiveNumber(value)) return 100;
|
|
2172
2197
|
return Math.max(1, Math.floor(value));
|
|
2173
2198
|
}
|
|
2199
|
+
function resolveCurrentMiniProgramHostConfig() {
|
|
2200
|
+
const runtimeRoot = globalThis;
|
|
2201
|
+
for (const globalKey of getMiniProgramRuntimeGlobalKeys()) {
|
|
2202
|
+
if (!runtimeRoot[globalKey]) continue;
|
|
2203
|
+
const hostConfig = runtimeRoot[getMiniProgramRuntimeHostConfigKey(getMiniProgramPlatformByRuntimeGlobalKey(globalKey))];
|
|
2204
|
+
return isPlainObject(hostConfig) ? hostConfig : void 0;
|
|
2205
|
+
}
|
|
2206
|
+
const defaultHostConfig = runtimeRoot[getMiniProgramRuntimeHostConfigKey(void 0)];
|
|
2207
|
+
return isPlainObject(defaultHostConfig) ? defaultHostConfig : void 0;
|
|
2208
|
+
}
|
|
2174
2209
|
function resolveHostTimeoutConfig() {
|
|
2175
|
-
const networkTimeout =
|
|
2210
|
+
const networkTimeout = resolveCurrentMiniProgramHostConfig()?.networkTimeout;
|
|
2176
2211
|
if (!isPlainObject(networkTimeout)) return {};
|
|
2177
2212
|
const result = {};
|
|
2178
2213
|
if (isFinitePositiveNumber(networkTimeout.request)) result.request = networkTimeout.request;
|
|
@@ -2395,14 +2430,12 @@ const INTERNAL_KEYS = new Set([
|
|
|
2395
2430
|
"resolveTarget",
|
|
2396
2431
|
"supports"
|
|
2397
2432
|
]);
|
|
2398
|
-
const PLATFORM_ALIASES = {
|
|
2399
|
-
alipay: "my",
|
|
2400
|
-
douyin: "tt"
|
|
2401
|
-
};
|
|
2433
|
+
const PLATFORM_ALIASES = { kuaishou: "ks" };
|
|
2402
2434
|
function normalizePlatformName(value) {
|
|
2403
|
-
|
|
2404
|
-
const normalized = value.trim().toLowerCase();
|
|
2435
|
+
const normalized = normalizeMiniProgramPlatform(value);
|
|
2405
2436
|
if (!normalized) return;
|
|
2437
|
+
const miniProgramPlatform = resolveMiniProgramPlatform(normalized);
|
|
2438
|
+
if (miniProgramPlatform) return getMiniProgramRuntimeGlobalKey(miniProgramPlatform);
|
|
2406
2439
|
return PLATFORM_ALIASES[normalized] ?? normalized;
|
|
2407
2440
|
}
|
|
2408
2441
|
/**
|
|
@@ -2562,10 +2595,12 @@ function createWeapi(options = {}) {
|
|
|
2562
2595
|
* | --- | --- | --- |
|
|
2563
2596
|
* | 微信小程序 (`wx`) | `miniprogram-api-typings` | ✅ 全量 |
|
|
2564
2597
|
* | 支付宝小程序 (`my`) | `@mini-types/alipay` | ✅ 全量 |
|
|
2598
|
+
* | 百度智能小程序 (`swan`) | 运行时透传 | ⚠️ 按宿主能力支持 |
|
|
2565
2599
|
* | 抖音小程序 (`tt`) | `@douyin-microapp/typings` | ✅ 全量 |
|
|
2566
|
-
* |
|
|
2600
|
+
* | 京东小程序 (`jd`) | 运行时透传 | ⚠️ 按宿主能力支持 |
|
|
2601
|
+
* | 小红书小程序 (`xhs`) | 运行时透传 | ⚠️ 按宿主能力支持 |
|
|
2567
2602
|
* @generated weapi-platform-matrix:end
|
|
2568
2603
|
*/
|
|
2569
2604
|
const wpi = createWeapi();
|
|
2570
2605
|
//#endregion
|
|
2571
|
-
export { createWeapi, wpi };
|
|
2606
|
+
export { WEAPI_PLATFORM_TYPE_SOURCES, WEAPI_RUNTIME_TYPE_SOURCES, WEAPI_TYPE_SOURCES, createWeapi, wpi };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wevu/api",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.4",
|
|
5
5
|
"description": "tsdown bundler template",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -34,7 +34,8 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@douyin-microapp/typings": "^1.3.1",
|
|
36
36
|
"@mini-types/alipay": "^3.0.14",
|
|
37
|
-
"miniprogram-api-typings": "^5.1.2"
|
|
37
|
+
"miniprogram-api-typings": "^5.1.2",
|
|
38
|
+
"@weapp-core/shared": "3.0.4"
|
|
38
39
|
},
|
|
39
40
|
"publishConfig": {
|
|
40
41
|
"access": "public"
|
package/types/index.d.ts
CHANGED
|
@@ -7,35 +7,133 @@ import type {
|
|
|
7
7
|
CreateWeapiOptions,
|
|
8
8
|
WeapiAdapter,
|
|
9
9
|
WeapiAlipayAdapter,
|
|
10
|
+
WeapiAlipayMethodName,
|
|
11
|
+
WeapiAlipayMiniProgramRawAdapterSource,
|
|
10
12
|
WeapiAlipayRawAdapter,
|
|
11
13
|
WeapiCrossPlatformAdapter,
|
|
12
14
|
WeapiCrossPlatformRawAdapter,
|
|
15
|
+
WeapiDefaultMiniProgramRawAdapterSource,
|
|
13
16
|
WeapiDouyinAdapter,
|
|
17
|
+
WeapiDouyinMethodName,
|
|
18
|
+
WeapiDouyinMiniProgramRawAdapterSource,
|
|
14
19
|
WeapiDouyinRawAdapter,
|
|
15
20
|
WeapiInstance,
|
|
16
21
|
WeapiMethodSupportQueryOptions,
|
|
22
|
+
WeapiMiniProgramAdapter,
|
|
23
|
+
WeapiMiniProgramAlipayAdapter,
|
|
24
|
+
WeapiMiniProgramAlipayMethodName,
|
|
25
|
+
WeapiMiniProgramAlipayRawAdapter,
|
|
26
|
+
WeapiMiniProgramBluetoothError,
|
|
27
|
+
WeapiMiniProgramClipboardDataResult,
|
|
28
|
+
WeapiMiniProgramConnectSocketOption,
|
|
29
|
+
WeapiMiniProgramCrossPlatformAdapter,
|
|
30
|
+
WeapiMiniProgramCrossPlatformRawAdapter,
|
|
31
|
+
WeapiMiniProgramDouyinAdapter,
|
|
32
|
+
WeapiMiniProgramDouyinMethodName,
|
|
33
|
+
WeapiMiniProgramDouyinRawAdapter,
|
|
34
|
+
WeapiMiniProgramLogManager,
|
|
35
|
+
WeapiMiniProgramMethodName,
|
|
36
|
+
WeapiMiniProgramPlatformRawAdapterSourceName,
|
|
37
|
+
WeapiMiniProgramPlatformRawAdapterSourceRegistry,
|
|
38
|
+
WeapiMiniProgramRawAdapter,
|
|
39
|
+
WeapiMiniProgramRawAdapterSourceName,
|
|
40
|
+
WeapiMiniProgramRequestMethod,
|
|
41
|
+
WeapiMiniProgramRequestOption,
|
|
42
|
+
WeapiMiniProgramRequestSuccessResult,
|
|
43
|
+
WeapiMiniProgramRequestTask,
|
|
44
|
+
WeapiMiniProgramRuntimeRawAdapterSourceName,
|
|
45
|
+
WeapiMiniProgramRuntimeRawAdapterSourceRegistry,
|
|
46
|
+
WeapiMiniProgramSelectorQuery,
|
|
47
|
+
WeapiMiniProgramSocketTask,
|
|
48
|
+
WeapiMiniProgramSystemInfo,
|
|
49
|
+
WeapiMiniProgramUpdateManager,
|
|
50
|
+
WeapiMiniProgramVideoContext,
|
|
51
|
+
WeapiMiniProgramWechatMethodName,
|
|
52
|
+
WeapiMiniProgramWechatRawAdapter,
|
|
53
|
+
WeapiMiniProgramWxAdapter,
|
|
54
|
+
WeapiMiniProgramWxMethodName,
|
|
55
|
+
WeapiMiniProgramWxRawAdapter,
|
|
56
|
+
WeapiPlatformTypeSourceName,
|
|
17
57
|
WeapiPromisify,
|
|
18
58
|
WeapiResolvedTarget,
|
|
59
|
+
WeapiRuntimeTypeSourceName,
|
|
19
60
|
WeapiSupportLevel,
|
|
61
|
+
WeapiTtMiniProgramRawAdapterSource,
|
|
62
|
+
WeapiTypeSourceName,
|
|
63
|
+
WeapiWechatMethodName,
|
|
64
|
+
WeapiWechatMiniProgramRawAdapterSource,
|
|
65
|
+
WeapiWechatRawAdapter,
|
|
20
66
|
WeapiWxAdapter,
|
|
67
|
+
WeapiWxMethodName,
|
|
21
68
|
WeapiWxRawAdapter,
|
|
22
69
|
} from '../dist/index.d.mts'
|
|
23
70
|
|
|
71
|
+
export declare const WEAPI_PLATFORM_TYPE_SOURCES: typeof import('../dist/index.mjs').WEAPI_PLATFORM_TYPE_SOURCES
|
|
72
|
+
export declare const WEAPI_RUNTIME_TYPE_SOURCES: typeof import('../dist/index.mjs').WEAPI_RUNTIME_TYPE_SOURCES
|
|
73
|
+
export declare const WEAPI_TYPE_SOURCES: typeof import('../dist/index.mjs').WEAPI_TYPE_SOURCES
|
|
74
|
+
|
|
24
75
|
export type {
|
|
25
76
|
CreateWeapiOptions,
|
|
26
77
|
WeapiAdapter,
|
|
27
78
|
WeapiAlipayAdapter,
|
|
79
|
+
WeapiAlipayMethodName,
|
|
80
|
+
WeapiAlipayMiniProgramRawAdapterSource,
|
|
28
81
|
WeapiAlipayRawAdapter,
|
|
29
82
|
WeapiCrossPlatformAdapter,
|
|
30
83
|
WeapiCrossPlatformRawAdapter,
|
|
84
|
+
WeapiDefaultMiniProgramRawAdapterSource,
|
|
31
85
|
WeapiDouyinAdapter,
|
|
86
|
+
WeapiDouyinMethodName,
|
|
87
|
+
WeapiDouyinMiniProgramRawAdapterSource,
|
|
32
88
|
WeapiDouyinRawAdapter,
|
|
33
89
|
WeapiInstance,
|
|
34
90
|
WeapiMethodSupportQueryOptions,
|
|
91
|
+
WeapiMiniProgramAdapter,
|
|
92
|
+
WeapiMiniProgramAlipayAdapter,
|
|
93
|
+
WeapiMiniProgramAlipayMethodName,
|
|
94
|
+
WeapiMiniProgramAlipayRawAdapter,
|
|
95
|
+
WeapiMiniProgramBluetoothError,
|
|
96
|
+
WeapiMiniProgramClipboardDataResult,
|
|
97
|
+
WeapiMiniProgramConnectSocketOption,
|
|
98
|
+
WeapiMiniProgramCrossPlatformAdapter,
|
|
99
|
+
WeapiMiniProgramCrossPlatformRawAdapter,
|
|
100
|
+
WeapiMiniProgramDouyinAdapter,
|
|
101
|
+
WeapiMiniProgramDouyinMethodName,
|
|
102
|
+
WeapiMiniProgramDouyinRawAdapter,
|
|
103
|
+
WeapiMiniProgramLogManager,
|
|
104
|
+
WeapiMiniProgramMethodName,
|
|
105
|
+
WeapiMiniProgramPlatformRawAdapterSourceName,
|
|
106
|
+
WeapiMiniProgramPlatformRawAdapterSourceRegistry,
|
|
107
|
+
WeapiMiniProgramRawAdapter,
|
|
108
|
+
WeapiMiniProgramRawAdapterSourceName,
|
|
109
|
+
WeapiMiniProgramRequestMethod,
|
|
110
|
+
WeapiMiniProgramRequestOption,
|
|
111
|
+
WeapiMiniProgramRequestSuccessResult,
|
|
112
|
+
WeapiMiniProgramRequestTask,
|
|
113
|
+
WeapiMiniProgramRuntimeRawAdapterSourceName,
|
|
114
|
+
WeapiMiniProgramRuntimeRawAdapterSourceRegistry,
|
|
115
|
+
WeapiMiniProgramSelectorQuery,
|
|
116
|
+
WeapiMiniProgramSocketTask,
|
|
117
|
+
WeapiMiniProgramSystemInfo,
|
|
118
|
+
WeapiMiniProgramUpdateManager,
|
|
119
|
+
WeapiMiniProgramVideoContext,
|
|
120
|
+
WeapiMiniProgramWechatMethodName,
|
|
121
|
+
WeapiMiniProgramWechatRawAdapter,
|
|
122
|
+
WeapiMiniProgramWxAdapter,
|
|
123
|
+
WeapiMiniProgramWxMethodName,
|
|
124
|
+
WeapiMiniProgramWxRawAdapter,
|
|
125
|
+
WeapiPlatformTypeSourceName,
|
|
35
126
|
WeapiPromisify,
|
|
36
127
|
WeapiResolvedTarget,
|
|
128
|
+
WeapiRuntimeTypeSourceName,
|
|
37
129
|
WeapiSupportLevel,
|
|
130
|
+
WeapiTtMiniProgramRawAdapterSource,
|
|
131
|
+
WeapiTypeSourceName,
|
|
132
|
+
WeapiWechatMethodName,
|
|
133
|
+
WeapiWechatMiniProgramRawAdapterSource,
|
|
134
|
+
WeapiWechatRawAdapter,
|
|
38
135
|
WeapiWxAdapter,
|
|
136
|
+
WeapiWxMethodName,
|
|
39
137
|
WeapiWxRawAdapter,
|
|
40
138
|
}
|
|
41
139
|
|
|
@@ -53,8 +151,10 @@ export type WeapiDefaultInstance = WeapiInstance<WeapiCrossPlatformRawAdapter>
|
|
|
53
151
|
* | --- | --- | --- | --- |
|
|
54
152
|
* | 微信小程序 | `wx` | `miniprogram-api-typings` | ✅ 全量 |
|
|
55
153
|
* | 支付宝小程序 | `my` | `@mini-types/alipay` | ✅ 全量 |
|
|
154
|
+
* | 百度智能小程序 | `swan` | 运行时透传 | ⚠️ 按宿主能力支持 |
|
|
56
155
|
* | 抖音小程序 | `tt` | `@douyin-microapp/typings` | ✅ 全量 |
|
|
57
|
-
* |
|
|
156
|
+
* | 京东小程序 | `jd` | 运行时透传 | ⚠️ 按宿主能力支持 |
|
|
157
|
+
* | 小红书小程序 | `xhs` | 运行时透传 | ⚠️ 按宿主能力支持 |
|
|
58
158
|
* @generated weapi-platform-matrix:end
|
|
59
159
|
*/
|
|
60
160
|
export const wpi: WeapiDefaultInstance
|