@tarojs/taro 3.5.5-alpha.0 → 3.5.5-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/types/api/navigate/index.d.ts +60 -13
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tarojs/taro",
|
|
3
|
-
"version": "3.5.5-alpha.
|
|
3
|
+
"version": "3.5.5-alpha.1",
|
|
4
4
|
"description": "Taro framework",
|
|
5
5
|
"homepage": "https://github.com/nervjs/taro/tree/master/packages/taro#readme",
|
|
6
6
|
"main": "index.js",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"author": "O2Team",
|
|
22
22
|
"license": "MIT",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@tarojs/api": "3.5.5-alpha.
|
|
25
|
-
"@tarojs/runtime": "3.5.5-alpha.
|
|
24
|
+
"@tarojs/api": "3.5.5-alpha.1",
|
|
25
|
+
"@tarojs/runtime": "3.5.5-alpha.1"
|
|
26
26
|
},
|
|
27
27
|
"peerDependenciesMeta": {
|
|
28
28
|
"@types/react": {
|
|
@@ -87,57 +87,104 @@ declare module '../../index' {
|
|
|
87
87
|
|
|
88
88
|
namespace openBusinessView {
|
|
89
89
|
/**
|
|
90
|
-
*
|
|
91
|
-
* @
|
|
90
|
+
* wxpayScoreEnable 业务参数
|
|
91
|
+
* @see https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter6_1_9.shtml
|
|
92
92
|
*/
|
|
93
|
-
interface
|
|
93
|
+
interface ScoreEnableExtraData {
|
|
94
|
+
/**
|
|
95
|
+
* 用于跳转到微信侧小程序授权数据,跳转到微信侧小程序传入,有效期为1小时;apply_permissions_token可以从[《商户预授权API》](https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter6_1_2.shtml)接口的返回参数中获取。
|
|
96
|
+
* 示例值:1230000109
|
|
97
|
+
* @type {string[1,2048]}
|
|
98
|
+
*/
|
|
99
|
+
apply_permissions_token: string
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* wxpayScoreUse 业务参数
|
|
103
|
+
* @see https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter6_1_13.shtml
|
|
104
|
+
*/
|
|
105
|
+
interface ScoreUsedExtraData {
|
|
106
|
+
/**
|
|
107
|
+
* 商户号:微信支付分配的商户号。
|
|
108
|
+
* 示例值:1230000109
|
|
109
|
+
* @type {string[1,32]}
|
|
110
|
+
*/
|
|
111
|
+
mch_id: string
|
|
112
|
+
/**
|
|
113
|
+
* 可在【创建订单】接口的返回字段package中获取。
|
|
114
|
+
* 示例值:XXXXXXXX
|
|
115
|
+
* @type {string[1,128]}
|
|
116
|
+
*/
|
|
117
|
+
package: string
|
|
118
|
+
/**
|
|
119
|
+
* 时间戳:生成签名时间戳,单位秒。
|
|
120
|
+
* 示例值:1530097563
|
|
121
|
+
* @type {string[1,32]}
|
|
122
|
+
*/
|
|
123
|
+
timestamp: string
|
|
124
|
+
/**
|
|
125
|
+
* 随机字符串:生成签名随机串。由数字、大小写字母组成,长度不超过32位。
|
|
126
|
+
* 示例值:zyx53Nkey8o4bHpxTQvd8m7e92nG5mG2
|
|
127
|
+
* @type {string[1,32]}
|
|
128
|
+
*/
|
|
129
|
+
nonce_str: string
|
|
130
|
+
/**
|
|
131
|
+
* 签名方式:签名类型,仅支持HMAC-SHA256。
|
|
132
|
+
* 示例值:HMAC-SHA256
|
|
133
|
+
* @type {string[1,32]}
|
|
134
|
+
*/
|
|
135
|
+
sign_type: string
|
|
136
|
+
/**
|
|
137
|
+
* 签名:使用字段mch_id、service_id、out_order_no、timestamp、nonce_str、sign_type按照签名生成算法计算得出的签名值。
|
|
138
|
+
* 示例值:029B52F67573D7E3BE74904BF9AEA
|
|
139
|
+
* @type {string[1,64]}
|
|
140
|
+
*/
|
|
141
|
+
sign: string
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* wxpayScoreDetail 业务参数
|
|
145
|
+
* @see https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter6_1_25.shtml
|
|
146
|
+
*/
|
|
147
|
+
interface ScoreDetailExtraData {
|
|
94
148
|
/**
|
|
95
149
|
* 商户号:微信支付分配的商户号。
|
|
96
150
|
* 示例值:1230000109
|
|
97
151
|
* @type {string[1,32]}
|
|
98
|
-
* @memberof ExtraData
|
|
99
152
|
*/
|
|
100
153
|
mch_id: string
|
|
101
154
|
/**
|
|
102
155
|
* 服务ID
|
|
103
156
|
* 示例值:88888888000011
|
|
104
157
|
* @type {string[1,32]}
|
|
105
|
-
* @memberof ExtraData
|
|
106
158
|
*/
|
|
107
159
|
service_id: string
|
|
108
160
|
/**
|
|
109
161
|
* 商户服务订单号:商户系统内部服务订单号(不是交易单号)。
|
|
110
162
|
* 示例值:234323JKHDFE1243252
|
|
111
163
|
* @type {string[1,32]}
|
|
112
|
-
* @memberof ExtraData
|
|
113
164
|
*/
|
|
114
165
|
out_order_no: string
|
|
115
166
|
/**
|
|
116
167
|
* 时间戳:生成签名时间戳,单位秒。
|
|
117
168
|
* 示例值:1530097563
|
|
118
169
|
* @type {string[1,32]}
|
|
119
|
-
* @memberof ExtraData
|
|
120
170
|
*/
|
|
121
171
|
timestamp: string
|
|
122
172
|
/**
|
|
123
173
|
* 随机字符串:生成签名随机串。由数字、大小写字母组成,长度不超过32位。
|
|
124
174
|
* 示例值:zyx53Nkey8o4bHpxTQvd8m7e92nG5mG2
|
|
125
175
|
* @type {string[1,32]}
|
|
126
|
-
* @memberof ExtraData
|
|
127
176
|
*/
|
|
128
177
|
nonce_str: string
|
|
129
178
|
/**
|
|
130
179
|
* 签名方式:签名类型,仅支持HMAC-SHA256。
|
|
131
180
|
* 示例值:HMAC-SHA256
|
|
132
181
|
* @type {string[1,32]}
|
|
133
|
-
* @memberof ExtraData
|
|
134
182
|
*/
|
|
135
183
|
sign_type: string
|
|
136
184
|
/**
|
|
137
185
|
* 签名:使用字段mch_id、service_id、out_order_no、timestamp、nonce_str、sign_type按照签名生成算法计算得出的签名值。
|
|
138
186
|
* 示例值:029B52F67573D7E3BE74904BF9AEA
|
|
139
187
|
* @type {string[1,64]}
|
|
140
|
-
* @memberof ExtraData
|
|
141
188
|
*/
|
|
142
189
|
sign: string
|
|
143
190
|
}
|
|
@@ -149,8 +196,9 @@ declare module '../../index' {
|
|
|
149
196
|
* @type {string[1,16]}
|
|
150
197
|
* @memberof Option
|
|
151
198
|
*/
|
|
152
|
-
businessType: string
|
|
153
|
-
|
|
199
|
+
businessType: 'wxpayScoreEnable' | 'wxpayScoreUse' | 'wxpayScoreDetail' | string
|
|
200
|
+
/** 业务参数:需要传递给支付分的业务数据 */
|
|
201
|
+
extraData: ScoreEnableExtraData | ScoreUsedExtraData | ScoreDetailExtraData
|
|
154
202
|
/** 接口调用成功的回调函数 */
|
|
155
203
|
success?: (res: TaroGeneral.CallbackResult) => void
|
|
156
204
|
/** 接口调用失败的回调函数 */
|
|
@@ -259,7 +307,6 @@ declare module '../../index' {
|
|
|
259
307
|
* //引导用户升级微信版本
|
|
260
308
|
* }
|
|
261
309
|
* ```
|
|
262
|
-
*
|
|
263
310
|
* @see https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter6_1_25.shtml
|
|
264
311
|
*/
|
|
265
312
|
openBusinessView(option: openBusinessView.Option): Promise<TaroGeneral.CallbackResult>
|