tmc.js 0.3.35 → 0.3.36
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/message.js +3 -3
- package/package.json +1 -1
- package/types/alibaba.d.ts +39 -0
- package/types/aliexpress.d.ts +1 -1
- package/types/index.d.ts +24 -0
- package/types/message.in.d.ts +26 -2
- package/types/taobao.d.ts +32 -0
package/lib/message.js
CHANGED
|
@@ -131,13 +131,13 @@ class Encoder {
|
|
|
131
131
|
|
|
132
132
|
if (type === 'number') {
|
|
133
133
|
switch (true) {
|
|
134
|
-
case value >= -128 && value < 128: //[-(2**7), 2**7)
|
|
134
|
+
case value >= -128 && value < 128: // [-(2**7), 2**7)
|
|
135
135
|
return this.put(Byte).put(value);
|
|
136
136
|
|
|
137
|
-
case value >= -32_768 && value < 32_768: //[-(2**15), 2**15)
|
|
137
|
+
case value >= -32_768 && value < 32_768: // [-(2**15), 2**15)
|
|
138
138
|
return this.put(Int16).putShort(value);
|
|
139
139
|
|
|
140
|
-
case value >= -2_147_483_648 && value < 2_147_483_648: //[-(2**31), 2**31)
|
|
140
|
+
case value >= -2_147_483_648 && value < 2_147_483_648: // [-(2**31), 2**31)
|
|
141
141
|
return this.put(Int32).putInt(value);
|
|
142
142
|
|
|
143
143
|
default:
|
package/package.json
CHANGED
package/types/alibaba.d.ts
CHANGED
|
@@ -1258,6 +1258,16 @@ declare namespace Alibaba.Hj {
|
|
|
1258
1258
|
timestamp?: Date | number | string;
|
|
1259
1259
|
}
|
|
1260
1260
|
|
|
1261
|
+
/** {@link https://open.taobao.com/tmc.htm?docId=2523&docType=9 汇金销项票文件上传通知} */
|
|
1262
|
+
interface InvoiceFileUpload {
|
|
1263
|
+
/** 发票信息 */
|
|
1264
|
+
invoice_info: string;
|
|
1265
|
+
/** 请求号 */
|
|
1266
|
+
request_no: string;
|
|
1267
|
+
/** 时间戳 */
|
|
1268
|
+
timestamp: Date | number | string;
|
|
1269
|
+
}
|
|
1270
|
+
|
|
1261
1271
|
/** {@link https://open.taobao.com/tmc.htm?docId=1498&docType=9 汇金销项票开具通知} */
|
|
1262
1272
|
interface InvoiceIssue {
|
|
1263
1273
|
/** 蓝票(发票ID,请求单号,发票号,发票状态,是否重开以及关联发票号) */
|
|
@@ -1390,6 +1400,35 @@ declare namespace Alibaba.Homestyler {
|
|
|
1390
1400
|
}
|
|
1391
1401
|
}
|
|
1392
1402
|
|
|
1403
|
+
/** ICBU */
|
|
1404
|
+
declare namespace Alibaba.Icbulive {
|
|
1405
|
+
/** {@link https://open.taobao.com/tmc.htm?docId=2524&docType=9 直播评论通知} */
|
|
1406
|
+
interface CommentNotice {
|
|
1407
|
+
/** 评论内容 */
|
|
1408
|
+
comment_content?: string;
|
|
1409
|
+
/** 评论id */
|
|
1410
|
+
comment_id: number;
|
|
1411
|
+
/** 国家code */
|
|
1412
|
+
country_code?: string;
|
|
1413
|
+
/** 直播liveUuid */
|
|
1414
|
+
live_uuid: string;
|
|
1415
|
+
/** 用户名称 */
|
|
1416
|
+
user_nick_name: string;
|
|
1417
|
+
}
|
|
1418
|
+
|
|
1419
|
+
/** {@link https://open.taobao.com/tmc.htm?docId=2522&docType=9 直播观众进场通知} */
|
|
1420
|
+
interface EnterNotice {
|
|
1421
|
+
/** 国家 */
|
|
1422
|
+
country_code?: string;
|
|
1423
|
+
/** 进场id */
|
|
1424
|
+
enter_notice_id: number;
|
|
1425
|
+
/** 直播的liveuuid */
|
|
1426
|
+
live_uuid: string;
|
|
1427
|
+
/** 用户名称 */
|
|
1428
|
+
user_nick_name?: string;
|
|
1429
|
+
}
|
|
1430
|
+
}
|
|
1431
|
+
|
|
1393
1432
|
/** 五道口配送 */
|
|
1394
1433
|
declare namespace Alibaba.Ifp {
|
|
1395
1434
|
/** {@link https://open.taobao.com/tmc.htm?docId=2386&docType=9 同城履约包裹状态变更消息} */
|
package/types/aliexpress.d.ts
CHANGED
|
@@ -52,7 +52,7 @@ declare namespace Aliexpress.Message {
|
|
|
52
52
|
interface Pushnewmsg {
|
|
53
53
|
/** 消息内容 */
|
|
54
54
|
content: string;
|
|
55
|
-
/** 针对不同类型填对应关联对象的ID:如msgType为product时填入productId值(必填) 如msgType为member时不填 */
|
|
55
|
+
/** 针对不同类型填对应关联对象的ID:如msgType为product时填入productId值(必填) 如msgType为order时填入orderId值(必填) 如msgType为member时不填 */
|
|
56
56
|
extern_id?: string;
|
|
57
57
|
/** 消息发送时间 */
|
|
58
58
|
gmt_create: string;
|
package/types/index.d.ts
CHANGED
|
@@ -242,6 +242,8 @@ declare interface TaoTopicsDescriptor {
|
|
|
242
242
|
alibaba_happytrip_OrderNotify(fn: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaHappytripOrderNotify) => void): TaoMessageConsumer;
|
|
243
243
|
/** {@link IncomingMessage.AlibabaHjInvoiceCancel 汇金销项票 > 汇金销项票作废通知} */
|
|
244
244
|
alibaba_hj_InvoiceCancel(fn: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaHjInvoiceCancel) => void): TaoMessageConsumer;
|
|
245
|
+
/** {@link IncomingMessage.AlibabaHjInvoiceFileUpload 汇金销项票 > 汇金销项票文件上传通知} */
|
|
246
|
+
alibaba_hj_InvoiceFileUpload(fn: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaHjInvoiceFileUpload) => void): TaoMessageConsumer;
|
|
245
247
|
/** {@link IncomingMessage.AlibabaHjInvoiceIssue 汇金销项票 > 汇金销项票开具通知} */
|
|
246
248
|
alibaba_hj_InvoiceIssue(fn: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaHjInvoiceIssue) => void): TaoMessageConsumer;
|
|
247
249
|
/** {@link IncomingMessage.AlibabaHjInvoiceRedIssue 汇金销项票 > 汇金销项票冲红通知} */
|
|
@@ -258,6 +260,10 @@ declare interface TaoTopicsDescriptor {
|
|
|
258
260
|
alibaba_homestyler_AigcContentImageGenerateCallback(fn: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaHomestylerAigcContentImageGenerateCallback) => void): TaoMessageConsumer;
|
|
259
261
|
/** {@link IncomingMessage.AlibabaHomestylerAigcPanoramaReplaceCallback 洞窝 > 洞窝全景图替换消息回调} */
|
|
260
262
|
alibaba_homestyler_AigcPanoramaReplaceCallback(fn: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaHomestylerAigcPanoramaReplaceCallback) => void): TaoMessageConsumer;
|
|
263
|
+
/** {@link IncomingMessage.AlibabaIcbuliveCommentNotice ICBU > 直播评论通知} */
|
|
264
|
+
alibaba_icbulive_CommentNotice(fn: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaIcbuliveCommentNotice) => void): TaoMessageConsumer;
|
|
265
|
+
/** {@link IncomingMessage.AlibabaIcbuliveEnterNotice ICBU > 直播观众进场通知} */
|
|
266
|
+
alibaba_icbulive_EnterNotice(fn: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaIcbuliveEnterNotice) => void): TaoMessageConsumer;
|
|
261
267
|
/** {@link IncomingMessage.AlibabaIfpPackageCfcContainer 五道口配送 > 同城履约包裹状态变更消息} */
|
|
262
268
|
alibaba_ifp_PackageCfcContainer(fn: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaIfpPackageCfcContainer) => void): TaoMessageConsumer;
|
|
263
269
|
/** {@link IncomingMessage.AlibabaInfopGoodsChange 采购系统 > 采购系统商品消息变更消息} */
|
|
@@ -1570,6 +1576,8 @@ declare interface TaoTopicsDescriptor {
|
|
|
1570
1576
|
taobao_modifysku_ResultNotify(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoModifyskuResultNotify) => void): TaoMessageConsumer;
|
|
1571
1577
|
/** {@link IncomingMessage.TaobaoOcTradeTagChanged 交易全链路 > oc订单标签变更} */
|
|
1572
1578
|
taobao_oc_TradeTagChanged(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoOcTradeTagChanged) => void): TaoMessageConsumer;
|
|
1579
|
+
/** {@link IncomingMessage.TaobaoOfnCreditPayStatusChange 淘宝交易 > 信用代扣状态变更同步} */
|
|
1580
|
+
taobao_ofn_CreditPayStatusChange(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoOfnCreditPayStatusChange) => void): TaoMessageConsumer;
|
|
1573
1581
|
/** {@link IncomingMessage.TaobaoOfnNewOrderEventSync 淘宝交易 > 以旧换新新机单事件同步} */
|
|
1574
1582
|
taobao_ofn_NewOrderEventSync(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoOfnNewOrderEventSync) => void): TaoMessageConsumer;
|
|
1575
1583
|
/** {@link IncomingMessage.TaobaoOfnOrderStatusSync 淘宝交易 > 以旧换新回收单状态同步} */
|
|
@@ -1666,6 +1674,8 @@ declare interface TaoTopicsDescriptor {
|
|
|
1666
1674
|
taobao_rdcaligenius_OrderMsgSend(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoRdcaligeniusOrderMsgSend) => void): TaoMessageConsumer;
|
|
1667
1675
|
/** {@link IncomingMessage.TaobaoRecycleOfnPreRedPacketSync 淘宝交易 > 同步前置补贴红包的最新数据} */
|
|
1668
1676
|
taobao_recycle_OfnPreRedPacketSync(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoRecycleOfnPreRedPacketSync) => void): TaoMessageConsumer;
|
|
1677
|
+
/** {@link IncomingMessage.TaobaoRefundOrderStatusSync 淘宝退款 > 逆向订单数据同步} */
|
|
1678
|
+
taobao_refund_OrderStatusSync(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoRefundOrderStatusSync) => void): TaoMessageConsumer;
|
|
1669
1679
|
/** {@link IncomingMessage.TaobaoRefundRefundBlockMessage 淘宝退款 > 屏蔽退款留言消息-无此消息} */
|
|
1670
1680
|
taobao_refund_RefundBlockMessage(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoRefundRefundBlockMessage) => void): TaoMessageConsumer;
|
|
1671
1681
|
/** {@link IncomingMessage.TaobaoRefundRefundBuyerModifyAgreement 淘宝退款 > 买家修改退款协议消息} */
|
|
@@ -2330,6 +2340,8 @@ declare interface TaoTopicsDescriptor {
|
|
|
2330
2340
|
alibaba_hj(fn: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaHj) => void): TaoMessageConsumer;
|
|
2331
2341
|
/** {@link IncomingMessage.AlibabaHomestyler} */
|
|
2332
2342
|
alibaba_homestyler(fn: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaHomestyler) => void): TaoMessageConsumer;
|
|
2343
|
+
/** {@link IncomingMessage.AlibabaIcbulive} */
|
|
2344
|
+
alibaba_icbulive(fn: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaIcbulive) => void): TaoMessageConsumer;
|
|
2333
2345
|
/** {@link IncomingMessage.AlibabaIfp} */
|
|
2334
2346
|
alibaba_ifp(fn: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaIfp) => void): TaoMessageConsumer;
|
|
2335
2347
|
/** {@link IncomingMessage.AlibabaInfop} */
|
|
@@ -3207,6 +3219,8 @@ declare interface TaoEventsListener {
|
|
|
3207
3219
|
on(topic: 'alibaba_happytrip_OrderNotify', listener: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaHappytripOrderNotify) => void): TaoMessageConsumer;
|
|
3208
3220
|
/** {@link IncomingMessage.AlibabaHjInvoiceCancel 汇金销项票 > 汇金销项票作废通知} */
|
|
3209
3221
|
on(topic: 'alibaba_hj_InvoiceCancel', listener: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaHjInvoiceCancel) => void): TaoMessageConsumer;
|
|
3222
|
+
/** {@link IncomingMessage.AlibabaHjInvoiceFileUpload 汇金销项票 > 汇金销项票文件上传通知} */
|
|
3223
|
+
on(topic: 'alibaba_hj_InvoiceFileUpload', listener: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaHjInvoiceFileUpload) => void): TaoMessageConsumer;
|
|
3210
3224
|
/** {@link IncomingMessage.AlibabaHjInvoiceIssue 汇金销项票 > 汇金销项票开具通知} */
|
|
3211
3225
|
on(topic: 'alibaba_hj_InvoiceIssue', listener: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaHjInvoiceIssue) => void): TaoMessageConsumer;
|
|
3212
3226
|
/** {@link IncomingMessage.AlibabaHjInvoiceRedIssue 汇金销项票 > 汇金销项票冲红通知} */
|
|
@@ -3223,6 +3237,10 @@ declare interface TaoEventsListener {
|
|
|
3223
3237
|
on(topic: 'alibaba_homestyler_AigcContentImageGenerateCallback', listener: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaHomestylerAigcContentImageGenerateCallback) => void): TaoMessageConsumer;
|
|
3224
3238
|
/** {@link IncomingMessage.AlibabaHomestylerAigcPanoramaReplaceCallback 洞窝 > 洞窝全景图替换消息回调} */
|
|
3225
3239
|
on(topic: 'alibaba_homestyler_AigcPanoramaReplaceCallback', listener: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaHomestylerAigcPanoramaReplaceCallback) => void): TaoMessageConsumer;
|
|
3240
|
+
/** {@link IncomingMessage.AlibabaIcbuliveCommentNotice ICBU > 直播评论通知} */
|
|
3241
|
+
on(topic: 'alibaba_icbulive_CommentNotice', listener: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaIcbuliveCommentNotice) => void): TaoMessageConsumer;
|
|
3242
|
+
/** {@link IncomingMessage.AlibabaIcbuliveEnterNotice ICBU > 直播观众进场通知} */
|
|
3243
|
+
on(topic: 'alibaba_icbulive_EnterNotice', listener: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaIcbuliveEnterNotice) => void): TaoMessageConsumer;
|
|
3226
3244
|
/** {@link IncomingMessage.AlibabaIfpPackageCfcContainer 五道口配送 > 同城履约包裹状态变更消息} */
|
|
3227
3245
|
on(topic: 'alibaba_ifp_PackageCfcContainer', listener: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaIfpPackageCfcContainer) => void): TaoMessageConsumer;
|
|
3228
3246
|
/** {@link IncomingMessage.AlibabaInfopGoodsChange 采购系统 > 采购系统商品消息变更消息} */
|
|
@@ -4535,6 +4553,8 @@ declare interface TaoEventsListener {
|
|
|
4535
4553
|
on(topic: 'taobao_modifysku_ResultNotify', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoModifyskuResultNotify) => void): TaoMessageConsumer;
|
|
4536
4554
|
/** {@link IncomingMessage.TaobaoOcTradeTagChanged 交易全链路 > oc订单标签变更} */
|
|
4537
4555
|
on(topic: 'taobao_oc_TradeTagChanged', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoOcTradeTagChanged) => void): TaoMessageConsumer;
|
|
4556
|
+
/** {@link IncomingMessage.TaobaoOfnCreditPayStatusChange 淘宝交易 > 信用代扣状态变更同步} */
|
|
4557
|
+
on(topic: 'taobao_ofn_CreditPayStatusChange', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoOfnCreditPayStatusChange) => void): TaoMessageConsumer;
|
|
4538
4558
|
/** {@link IncomingMessage.TaobaoOfnNewOrderEventSync 淘宝交易 > 以旧换新新机单事件同步} */
|
|
4539
4559
|
on(topic: 'taobao_ofn_NewOrderEventSync', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoOfnNewOrderEventSync) => void): TaoMessageConsumer;
|
|
4540
4560
|
/** {@link IncomingMessage.TaobaoOfnOrderStatusSync 淘宝交易 > 以旧换新回收单状态同步} */
|
|
@@ -4631,6 +4651,8 @@ declare interface TaoEventsListener {
|
|
|
4631
4651
|
on(topic: 'taobao_rdcaligenius_OrderMsgSend', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoRdcaligeniusOrderMsgSend) => void): TaoMessageConsumer;
|
|
4632
4652
|
/** {@link IncomingMessage.TaobaoRecycleOfnPreRedPacketSync 淘宝交易 > 同步前置补贴红包的最新数据} */
|
|
4633
4653
|
on(topic: 'taobao_recycle_OfnPreRedPacketSync', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoRecycleOfnPreRedPacketSync) => void): TaoMessageConsumer;
|
|
4654
|
+
/** {@link IncomingMessage.TaobaoRefundOrderStatusSync 淘宝退款 > 逆向订单数据同步} */
|
|
4655
|
+
on(topic: 'taobao_refund_OrderStatusSync', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoRefundOrderStatusSync) => void): TaoMessageConsumer;
|
|
4634
4656
|
/** {@link IncomingMessage.TaobaoRefundRefundBlockMessage 淘宝退款 > 屏蔽退款留言消息-无此消息} */
|
|
4635
4657
|
on(topic: 'taobao_refund_RefundBlockMessage', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoRefundRefundBlockMessage) => void): TaoMessageConsumer;
|
|
4636
4658
|
/** {@link IncomingMessage.TaobaoRefundRefundBuyerModifyAgreement 淘宝退款 > 买家修改退款协议消息} */
|
|
@@ -5295,6 +5317,8 @@ declare interface TaoEventsListener {
|
|
|
5295
5317
|
on(topic: 'alibaba_hj', listener: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaHj) => void): TaoMessageConsumer;
|
|
5296
5318
|
/** {@link IncomingMessage.AlibabaHomestyler} */
|
|
5297
5319
|
on(topic: 'alibaba_homestyler', listener: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaHomestyler) => void): TaoMessageConsumer;
|
|
5320
|
+
/** {@link IncomingMessage.AlibabaIcbulive} */
|
|
5321
|
+
on(topic: 'alibaba_icbulive', listener: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaIcbulive) => void): TaoMessageConsumer;
|
|
5298
5322
|
/** {@link IncomingMessage.AlibabaIfp} */
|
|
5299
5323
|
on(topic: 'alibaba_ifp', listener: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaIfp) => void): TaoMessageConsumer;
|
|
5300
5324
|
/** {@link IncomingMessage.AlibabaInfop} */
|
package/types/message.in.d.ts
CHANGED
|
@@ -222,6 +222,8 @@ declare namespace IncomingMessage {
|
|
|
222
222
|
type AlibabaHappytripOrderNotify = Message & { content?: MessageContent & { topic?: 'alibaba_happytrip_OrderNotify', content?: string | Alibaba.Happytrip.OrderNotify } };
|
|
223
223
|
/** {@link Alibaba.Hj.InvoiceCancel 汇金销项票 > 汇金销项票作废通知} */
|
|
224
224
|
type AlibabaHjInvoiceCancel = Message & { content?: MessageContent & { topic?: 'alibaba_hj_InvoiceCancel', content?: string | Alibaba.Hj.InvoiceCancel } };
|
|
225
|
+
/** {@link Alibaba.Hj.InvoiceFileUpload 汇金销项票 > 汇金销项票文件上传通知} */
|
|
226
|
+
type AlibabaHjInvoiceFileUpload = Message & { content?: MessageContent & { topic?: 'alibaba_hj_InvoiceFileUpload', content?: string | Alibaba.Hj.InvoiceFileUpload } };
|
|
225
227
|
/** {@link Alibaba.Hj.InvoiceIssue 汇金销项票 > 汇金销项票开具通知} */
|
|
226
228
|
type AlibabaHjInvoiceIssue = Message & { content?: MessageContent & { topic?: 'alibaba_hj_InvoiceIssue', content?: string | Alibaba.Hj.InvoiceIssue } };
|
|
227
229
|
/** {@link Alibaba.Hj.InvoiceRedIssue 汇金销项票 > 汇金销项票冲红通知} */
|
|
@@ -238,6 +240,10 @@ declare namespace IncomingMessage {
|
|
|
238
240
|
type AlibabaHomestylerAigcContentImageGenerateCallback = Message & { content?: MessageContent & { topic?: 'alibaba_homestyler_AigcContentImageGenerateCallback', content?: string | Alibaba.Homestyler.AigcContentImageGenerateCallback } };
|
|
239
241
|
/** {@link Alibaba.Homestyler.AigcPanoramaReplaceCallback 洞窝 > 洞窝全景图替换消息回调} */
|
|
240
242
|
type AlibabaHomestylerAigcPanoramaReplaceCallback = Message & { content?: MessageContent & { topic?: 'alibaba_homestyler_AigcPanoramaReplaceCallback', content?: string | Alibaba.Homestyler.AigcPanoramaReplaceCallback } };
|
|
243
|
+
/** {@link Alibaba.Icbulive.CommentNotice ICBU > 直播评论通知} */
|
|
244
|
+
type AlibabaIcbuliveCommentNotice = Message & { content?: MessageContent & { topic?: 'alibaba_icbulive_CommentNotice', content?: string | Alibaba.Icbulive.CommentNotice } };
|
|
245
|
+
/** {@link Alibaba.Icbulive.EnterNotice ICBU > 直播观众进场通知} */
|
|
246
|
+
type AlibabaIcbuliveEnterNotice = Message & { content?: MessageContent & { topic?: 'alibaba_icbulive_EnterNotice', content?: string | Alibaba.Icbulive.EnterNotice } };
|
|
241
247
|
/** {@link Alibaba.Ifp.PackageCfcContainer 五道口配送 > 同城履约包裹状态变更消息} */
|
|
242
248
|
type AlibabaIfpPackageCfcContainer = Message & { content?: MessageContent & { topic?: 'alibaba_ifp_PackageCfcContainer', content?: string | Alibaba.Ifp.PackageCfcContainer } };
|
|
243
249
|
/** {@link Alibaba.Infop.GoodsChange 采购系统 > 采购系统商品消息变更消息} */
|
|
@@ -1550,6 +1556,8 @@ declare namespace IncomingMessage {
|
|
|
1550
1556
|
type TaobaoModifyskuResultNotify = Message & { content?: MessageContent & { topic?: 'taobao_modifysku_ResultNotify', content?: string | Taobao.Modifysku.ResultNotify } };
|
|
1551
1557
|
/** {@link Taobao.Oc.TradeTagChanged 交易全链路 > oc订单标签变更} */
|
|
1552
1558
|
type TaobaoOcTradeTagChanged = Message & { content?: MessageContent & { topic?: 'taobao_oc_TradeTagChanged', content?: string | Taobao.Oc.TradeTagChanged } };
|
|
1559
|
+
/** {@link Taobao.Ofn.CreditPayStatusChange 淘宝交易 > 信用代扣状态变更同步} */
|
|
1560
|
+
type TaobaoOfnCreditPayStatusChange = Message & { content?: MessageContent & { topic?: 'taobao_ofn_CreditPayStatusChange', content?: string | Taobao.Ofn.CreditPayStatusChange } };
|
|
1553
1561
|
/** {@link Taobao.Ofn.NewOrderEventSync 淘宝交易 > 以旧换新新机单事件同步} */
|
|
1554
1562
|
type TaobaoOfnNewOrderEventSync = Message & { content?: MessageContent & { topic?: 'taobao_ofn_NewOrderEventSync', content?: string | Taobao.Ofn.NewOrderEventSync } };
|
|
1555
1563
|
/** {@link Taobao.Ofn.OrderStatusSync 淘宝交易 > 以旧换新回收单状态同步} */
|
|
@@ -1646,6 +1654,8 @@ declare namespace IncomingMessage {
|
|
|
1646
1654
|
type TaobaoRdcaligeniusOrderMsgSend = Message & { content?: MessageContent & { topic?: 'taobao_rdcaligenius_OrderMsgSend', content?: string | Taobao.Rdcaligenius.OrderMsgSend } };
|
|
1647
1655
|
/** {@link Taobao.Recycle.OfnPreRedPacketSync 淘宝交易 > 同步前置补贴红包的最新数据} */
|
|
1648
1656
|
type TaobaoRecycleOfnPreRedPacketSync = Message & { content?: MessageContent & { topic?: 'taobao_recycle_OfnPreRedPacketSync', content?: string | Taobao.Recycle.OfnPreRedPacketSync } };
|
|
1657
|
+
/** {@link Taobao.Refund.OrderStatusSync 淘宝退款 > 逆向订单数据同步} */
|
|
1658
|
+
type TaobaoRefundOrderStatusSync = Message & { content?: MessageContent & { topic?: 'taobao_refund_OrderStatusSync', content?: string | Taobao.Refund.OrderStatusSync } };
|
|
1649
1659
|
/** {@link Taobao.Refund.RefundBlockMessage 淘宝退款 > 屏蔽退款留言消息-无此消息} */
|
|
1650
1660
|
type TaobaoRefundRefundBlockMessage = Message & { content?: MessageContent & { topic?: 'taobao_refund_RefundBlockMessage', content?: string | Taobao.Refund.RefundBlockMessage } };
|
|
1651
1661
|
/** {@link Taobao.Refund.RefundBuyerModifyAgreement 淘宝退款 > 买家修改退款协议消息} */
|
|
@@ -2484,6 +2494,7 @@ declare namespace IncomingMessage {
|
|
|
2484
2494
|
type AlibabaHappytrip = AlibabaHappytripOrderNotify;
|
|
2485
2495
|
/**
|
|
2486
2496
|
* - {@link AlibabaHjInvoiceCancel 汇金销项票 > 汇金销项票作废通知}
|
|
2497
|
+
* - {@link AlibabaHjInvoiceFileUpload 汇金销项票 > 汇金销项票文件上传通知}
|
|
2487
2498
|
* - {@link AlibabaHjInvoiceIssue 汇金销项票 > 汇金销项票开具通知}
|
|
2488
2499
|
* - {@link AlibabaHjInvoiceRedIssue 汇金销项票 > 汇金销项票冲红通知}
|
|
2489
2500
|
* - {@link AlibabaHjInvoiceReject 汇金销项票 > 汇金销项票开票拒绝通知}
|
|
@@ -2492,6 +2503,7 @@ declare namespace IncomingMessage {
|
|
|
2492
2503
|
* - {@link AlibabaHjInvoiceUnissue 汇金销项票 > 汇金销项票待开通知}
|
|
2493
2504
|
*/
|
|
2494
2505
|
type AlibabaHj = AlibabaHjInvoiceCancel
|
|
2506
|
+
| AlibabaHjInvoiceFileUpload
|
|
2495
2507
|
| AlibabaHjInvoiceIssue
|
|
2496
2508
|
| AlibabaHjInvoiceRedIssue
|
|
2497
2509
|
| AlibabaHjInvoiceReject
|
|
@@ -2504,6 +2516,12 @@ declare namespace IncomingMessage {
|
|
|
2504
2516
|
*/
|
|
2505
2517
|
type AlibabaHomestyler = AlibabaHomestylerAigcContentImageGenerateCallback
|
|
2506
2518
|
| AlibabaHomestylerAigcPanoramaReplaceCallback;
|
|
2519
|
+
/**
|
|
2520
|
+
* - {@link AlibabaIcbuliveCommentNotice ICBU > 直播评论通知}
|
|
2521
|
+
* - {@link AlibabaIcbuliveEnterNotice ICBU > 直播观众进场通知}
|
|
2522
|
+
*/
|
|
2523
|
+
type AlibabaIcbulive = AlibabaIcbuliveCommentNotice
|
|
2524
|
+
| AlibabaIcbuliveEnterNotice;
|
|
2507
2525
|
/**
|
|
2508
2526
|
* - {@link AlibabaIfpPackageCfcContainer 五道口配送 > 同城履约包裹状态变更消息}
|
|
2509
2527
|
*/
|
|
@@ -4219,10 +4237,12 @@ declare namespace IncomingMessage {
|
|
|
4219
4237
|
*/
|
|
4220
4238
|
type TaobaoOc = TaobaoOcTradeTagChanged;
|
|
4221
4239
|
/**
|
|
4240
|
+
* - {@link TaobaoOfnCreditPayStatusChange 淘宝交易 > 信用代扣状态变更同步}
|
|
4222
4241
|
* - {@link TaobaoOfnNewOrderEventSync 淘宝交易 > 以旧换新新机单事件同步}
|
|
4223
4242
|
* - {@link TaobaoOfnOrderStatusSync 淘宝交易 > 以旧换新回收单状态同步}
|
|
4224
4243
|
*/
|
|
4225
|
-
type TaobaoOfn =
|
|
4244
|
+
type TaobaoOfn = TaobaoOfnCreditPayStatusChange
|
|
4245
|
+
| TaobaoOfnNewOrderEventSync
|
|
4226
4246
|
| TaobaoOfnOrderStatusSync;
|
|
4227
4247
|
/**
|
|
4228
4248
|
* - {@link TaobaoOpenaccountDataSync 导购平台 > openaccount数据同步}
|
|
@@ -4343,6 +4363,7 @@ declare namespace IncomingMessage {
|
|
|
4343
4363
|
*/
|
|
4344
4364
|
type TaobaoRecycle = TaobaoRecycleOfnPreRedPacketSync;
|
|
4345
4365
|
/**
|
|
4366
|
+
* - {@link TaobaoRefundOrderStatusSync 淘宝退款 > 逆向订单数据同步}
|
|
4346
4367
|
* - {@link TaobaoRefundRefundBlockMessage 淘宝退款 > 屏蔽退款留言消息-无此消息}
|
|
4347
4368
|
* - {@link TaobaoRefundRefundBuyerModifyAgreement 淘宝退款 > 买家修改退款协议消息}
|
|
4348
4369
|
* - {@link TaobaoRefundRefundBuyerReturnGoods 淘宝退款 > 买家退货给卖家消息}
|
|
@@ -4358,7 +4379,8 @@ declare namespace IncomingMessage {
|
|
|
4358
4379
|
* - {@link TaobaoRefundTaobaoInterApplied 淘宝退款 > 申请淘宝介入消息}
|
|
4359
4380
|
* - {@link TaobaoRefundTaobaoIntervened 淘宝退款 > 淘宝介入退款消息}
|
|
4360
4381
|
*/
|
|
4361
|
-
type TaobaoRefund =
|
|
4382
|
+
type TaobaoRefund = TaobaoRefundOrderStatusSync
|
|
4383
|
+
| TaobaoRefundRefundBlockMessage
|
|
4362
4384
|
| TaobaoRefundRefundBuyerModifyAgreement
|
|
4363
4385
|
| TaobaoRefundRefundBuyerReturnGoods
|
|
4364
4386
|
| TaobaoRefundRefundClosed
|
|
@@ -5167,6 +5189,7 @@ declare namespace IncomingMessage {
|
|
|
5167
5189
|
* - {@link AlibabaHappytrip}
|
|
5168
5190
|
* - {@link AlibabaHj}
|
|
5169
5191
|
* - {@link AlibabaHomestyler}
|
|
5192
|
+
* - {@link AlibabaIcbulive}
|
|
5170
5193
|
* - {@link AlibabaIfp}
|
|
5171
5194
|
* - {@link AlibabaInfop}
|
|
5172
5195
|
* - {@link AlibabaIntime}
|
|
@@ -5229,6 +5252,7 @@ declare namespace IncomingMessage {
|
|
|
5229
5252
|
| AlibabaHappytrip
|
|
5230
5253
|
| AlibabaHj
|
|
5231
5254
|
| AlibabaHomestyler
|
|
5255
|
+
| AlibabaIcbulive
|
|
5232
5256
|
| AlibabaIfp
|
|
5233
5257
|
| AlibabaInfop
|
|
5234
5258
|
| AlibabaIntime
|
package/types/taobao.d.ts
CHANGED
|
@@ -1241,6 +1241,8 @@ declare namespace Taobao.Epp {
|
|
|
1241
1241
|
interface OrderCreate {
|
|
1242
1242
|
/** String 变化时间 */
|
|
1243
1243
|
modifiedTime: string;
|
|
1244
|
+
/** 外部采购单号 */
|
|
1245
|
+
outOrderId: string;
|
|
1244
1246
|
/** 订单ID */
|
|
1245
1247
|
tbOrderId: string;
|
|
1246
1248
|
/** 当前订单状态: 2=已支付 6=交易成功 8=关闭 */
|
|
@@ -1968,6 +1970,8 @@ declare namespace Taobao.Fuwu {
|
|
|
1968
1970
|
item_code: string;
|
|
1969
1971
|
/** 收费项目名称 */
|
|
1970
1972
|
item_name?: string;
|
|
1973
|
+
/** 由user_id加密, 可对外开放, 用来替换user_nick作为唯一标识 */
|
|
1974
|
+
open_uid?: string;
|
|
1971
1975
|
/** 订购记录id */
|
|
1972
1976
|
readonly sub_id: number;
|
|
1973
1977
|
/** 淘宝会员名 */
|
|
@@ -3471,6 +3475,22 @@ declare namespace Taobao.Oc {
|
|
|
3471
3475
|
|
|
3472
3476
|
/** 淘宝交易 */
|
|
3473
3477
|
declare namespace Taobao.Ofn {
|
|
3478
|
+
/** {@link https://open.taobao.com/tmc.htm?docId=2482&docType=9 信用代扣状态变更同步} */
|
|
3479
|
+
interface CreditPayStatusChange {
|
|
3480
|
+
/** 支付宝流水号 */
|
|
3481
|
+
alipay_trade_no: string;
|
|
3482
|
+
/** 回收单 ID */
|
|
3483
|
+
biz_order_id: number;
|
|
3484
|
+
/** 预付金额,单位 分 */
|
|
3485
|
+
credit_amount: number;
|
|
3486
|
+
/** 代扣状态 */
|
|
3487
|
+
recover_status: string;
|
|
3488
|
+
/** 代扣状态描述 */
|
|
3489
|
+
recover_status_desc: string;
|
|
3490
|
+
/** 回收商 ID(appKey) */
|
|
3491
|
+
supplier_id: string;
|
|
3492
|
+
}
|
|
3493
|
+
|
|
3474
3494
|
/** {@link https://open.taobao.com/tmc.htm?docId=2483&docType=9 以旧换新新机单事件同步} */
|
|
3475
3495
|
interface NewOrderEventSync {
|
|
3476
3496
|
/** 事件类型,SHIPPED(已发货),PAID(已支付) */
|
|
@@ -4205,6 +4225,18 @@ declare namespace Taobao.Recycle {
|
|
|
4205
4225
|
|
|
4206
4226
|
/** 淘宝退款 */
|
|
4207
4227
|
declare namespace Taobao.Refund {
|
|
4228
|
+
/** {@link https://open.taobao.com/tmc.htm?docId=2520&docType=9 逆向订单数据同步} */
|
|
4229
|
+
interface OrderStatusSync {
|
|
4230
|
+
/** 更新时间 */
|
|
4231
|
+
modifiedTime: string;
|
|
4232
|
+
/** 外部订单号 */
|
|
4233
|
+
outOrderId: string;
|
|
4234
|
+
/** 退款单号 */
|
|
4235
|
+
refundOrderId: string;
|
|
4236
|
+
/** 退款单状态2=退款成功 3=退款取消 4=卖家拒绝 */
|
|
4237
|
+
refundStatus: string;
|
|
4238
|
+
}
|
|
4239
|
+
|
|
4208
4240
|
/** {@link https://open.taobao.com/tmc.htm?docId=124&docType=9 屏蔽退款留言消息-无此消息} */
|
|
4209
4241
|
interface RefundBlockMessage {
|
|
4210
4242
|
/** 更新时间。格式:yyyy-MM-dd HH:mm:ss */
|