tmc.js 0.3.23 → 0.3.24
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 +4 -4
- package/package.json +1 -1
- package/types/index.d.ts +30 -10
- package/types/message.in.d.ts +31 -11
- package/types/taobao.d.ts +20 -1
- package/types/tmall.d.ts +18 -0
package/README.md
CHANGED
|
@@ -134,11 +134,11 @@ new Tmc('your_app_key', 'your_app_secret', { autoReplyConfirmation: false })
|
|
|
134
134
|
|
|
135
135
|
## 支持的TOPICS
|
|
136
136
|
|
|
137
|
-
<details><summary>共计 83+ 类别,
|
|
137
|
+
<details><summary>共计 83+ 类别,462+ 消息数</summary>
|
|
138
138
|
|
|
139
139
|
| 类别 | 消息数 |
|
|
140
140
|
| --- | --- |
|
|
141
|
-
| 淘宝交易 |
|
|
141
|
+
| 淘宝交易 | 23 |
|
|
142
142
|
| 淘宝退款 | 13 |
|
|
143
143
|
| 淘宝商品 | 13 |
|
|
144
144
|
| 淘宝分销 | 23 |
|
|
@@ -150,11 +150,11 @@ new Tmc('your_app_key', 'your_app_secret', { autoReplyConfirmation: false })
|
|
|
150
150
|
| 导购平台 | 21 |
|
|
151
151
|
| 淘宝汽车票 | 4 |
|
|
152
152
|
| 服务市场 | 9 |
|
|
153
|
-
| 天猫服务 |
|
|
153
|
+
| 天猫服务 | 21 |
|
|
154
154
|
| 天猫美妆 | 2 |
|
|
155
155
|
| 聚石塔 | 9 |
|
|
156
156
|
| 淘宝物流 | 1 |
|
|
157
|
-
| 阿里通信 |
|
|
157
|
+
| 阿里通信 | 19 |
|
|
158
158
|
| 天猫魔盒 | 2 |
|
|
159
159
|
| 营销平台 | 1 |
|
|
160
160
|
| OpenIM消息 | 1 |
|
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -478,6 +478,8 @@ declare interface TaoTopicsDescriptor {
|
|
|
478
478
|
taobao_dpaas_EquipmentCreate(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoDpaasEquipmentCreate) => void): TaoMessageConsumer;
|
|
479
479
|
/** {@link IncomingMessage.TaobaoDpaasFaceToCustomerAck DPAAS > 会员标示消息推送} */
|
|
480
480
|
taobao_dpaas_FaceToCustomerAck(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoDpaasFaceToCustomerAck) => void): TaoMessageConsumer;
|
|
481
|
+
/** {@link IncomingMessage.TaobaoDvExternal 阿里通信 > 淘宝数字虚拟外放} */
|
|
482
|
+
taobao_dv_External(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoDvExternal) => void): TaoMessageConsumer;
|
|
481
483
|
/** {@link IncomingMessage.TaobaoEinvoiceBuyerConfirmSend 电子发票 > 买家确认发送到报销系统} */
|
|
482
484
|
taobao_einvoice_BuyerConfirmSend(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoEinvoiceBuyerConfirmSend) => void): TaoMessageConsumer;
|
|
483
485
|
/** {@link IncomingMessage.TaobaoEinvoiceInvoiceResultReturn 电子发票 > 电子发票开票回流} */
|
|
@@ -538,15 +540,17 @@ declare interface TaoTopicsDescriptor {
|
|
|
538
540
|
taobao_fliggy_StdHotelModify(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoFliggyStdHotelModify) => void): TaoMessageConsumer;
|
|
539
541
|
/** {@link IncomingMessage.TaobaoFliggyStdRoomTypeModify 酒店签约中心消息 > 标准房型领域模型实体变更消息} */
|
|
540
542
|
taobao_fliggy_StdRoomTypeModify(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoFliggyStdRoomTypeModify) => void): TaoMessageConsumer;
|
|
541
|
-
/** {@link IncomingMessage.
|
|
543
|
+
/** {@link IncomingMessage.TaobaoFuwuFundsChange 淘宝交易 > 以旧换新资金变更通知消息} */
|
|
544
|
+
taobao_fuwu_FundsChange(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoFuwuFundsChange) => void): TaoMessageConsumer;
|
|
545
|
+
/** {@link IncomingMessage.TaobaoFuwuOrderClosed 淘宝交易 > 订单关闭消息} */
|
|
542
546
|
taobao_fuwu_OrderClosed(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoFuwuOrderClosed) => void): TaoMessageConsumer;
|
|
543
|
-
/** {@link IncomingMessage.TaobaoFuwuOrderCreated
|
|
547
|
+
/** {@link IncomingMessage.TaobaoFuwuOrderCreated 淘宝交易 > 订单创建消息} */
|
|
544
548
|
taobao_fuwu_OrderCreated(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoFuwuOrderCreated) => void): TaoMessageConsumer;
|
|
545
|
-
/** {@link IncomingMessage.TaobaoFuwuOrderPaid
|
|
549
|
+
/** {@link IncomingMessage.TaobaoFuwuOrderPaid 淘宝交易 > 订单支付消息} */
|
|
546
550
|
taobao_fuwu_OrderPaid(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoFuwuOrderPaid) => void): TaoMessageConsumer;
|
|
547
|
-
/** {@link IncomingMessage.TaobaoFuwuServiceOpen
|
|
551
|
+
/** {@link IncomingMessage.TaobaoFuwuServiceOpen 淘宝交易 > 服务开通消息} */
|
|
548
552
|
taobao_fuwu_ServiceOpen(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoFuwuServiceOpen) => void): TaoMessageConsumer;
|
|
549
|
-
/** {@link IncomingMessage.TaobaoFuwuWitkeySyncModeling
|
|
553
|
+
/** {@link IncomingMessage.TaobaoFuwuWitkeySyncModeling 淘宝交易 > 威客同步建模数据} */
|
|
550
554
|
taobao_fuwu_WitkeySyncModeling(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoFuwuWitkeySyncModeling) => void): TaoMessageConsumer;
|
|
551
555
|
/** {@link IncomingMessage.TaobaoGlobalbuysSeamailOrderNotify 全球购跨境物流 > 跨境服务平台推送物流订单消息} */
|
|
552
556
|
taobao_globalbuys_SeamailOrderNotify(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoGlobalbuysSeamailOrderNotify) => void): TaoMessageConsumer;
|
|
@@ -844,8 +848,12 @@ declare interface TaoTopicsDescriptor {
|
|
|
844
848
|
tmall_fuwu_AnomalyRecourse(fn: (this: TaoMessageConsumer, message: IncomingMessage.TmallFuwuAnomalyRecourse) => void): TaoMessageConsumer;
|
|
845
849
|
/** {@link IncomingMessage.TmallFuwuAnomalyRecourseStatusUpdate 天猫服务 > 一键求助状态变更消息} */
|
|
846
850
|
tmall_fuwu_AnomalyRecourseStatusUpdate(fn: (this: TaoMessageConsumer, message: IncomingMessage.TmallFuwuAnomalyRecourseStatusUpdate) => void): TaoMessageConsumer;
|
|
851
|
+
/** {@link IncomingMessage.TmallFuwuElectricMaintenanceWorkCardComplete 天猫服务 > 天猫服务消电维修工单完结消息} */
|
|
852
|
+
tmall_fuwu_ElectricMaintenanceWorkCardComplete(fn: (this: TaoMessageConsumer, message: IncomingMessage.TmallFuwuElectricMaintenanceWorkCardComplete) => void): TaoMessageConsumer;
|
|
847
853
|
/** {@link IncomingMessage.TmallFuwuLogisticsInfoMessage 天猫服务 > 服务供应链物流业务消息} */
|
|
848
854
|
tmall_fuwu_LogisticsInfoMessage(fn: (this: TaoMessageConsumer, message: IncomingMessage.TmallFuwuLogisticsInfoMessage) => void): TaoMessageConsumer;
|
|
855
|
+
/** {@link IncomingMessage.TmallFuwuRateMessageTP 天猫服务 > 消费者评价成功top消息} */
|
|
856
|
+
tmall_fuwu_RateMessageTP(fn: (this: TaoMessageConsumer, message: IncomingMessage.TmallFuwuRateMessageTP) => void): TaoMessageConsumer;
|
|
849
857
|
/** {@link IncomingMessage.TmallFuwuServiceItemUpdate 天猫服务 > 服务商品信息变更消息} */
|
|
850
858
|
tmall_fuwu_ServiceItemUpdate(fn: (this: TaoMessageConsumer, message: IncomingMessage.TmallFuwuServiceItemUpdate) => void): TaoMessageConsumer;
|
|
851
859
|
/** {@link IncomingMessage.TmallFuwuServiceMonitorMessage 天猫服务 > 服务预警消息} */
|
|
@@ -1080,6 +1088,8 @@ declare interface TaoTopicsDescriptor {
|
|
|
1080
1088
|
taobao_diandian(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoDiandian) => void): TaoMessageConsumer;
|
|
1081
1089
|
/** {@link IncomingMessage.TaobaoDpaas} */
|
|
1082
1090
|
taobao_dpaas(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoDpaas) => void): TaoMessageConsumer;
|
|
1091
|
+
/** {@link IncomingMessage.TaobaoDv} */
|
|
1092
|
+
taobao_dv(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoDv) => void): TaoMessageConsumer;
|
|
1083
1093
|
/** {@link IncomingMessage.TaobaoEinvoice} */
|
|
1084
1094
|
taobao_einvoice(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoEinvoice) => void): TaoMessageConsumer;
|
|
1085
1095
|
/** {@link IncomingMessage.TaobaoFenxiao} */
|
|
@@ -1659,6 +1669,8 @@ declare interface TaoEventsListener {
|
|
|
1659
1669
|
on(topic: 'taobao_dpaas_EquipmentCreate', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoDpaasEquipmentCreate) => void): TaoMessageConsumer;
|
|
1660
1670
|
/** {@link IncomingMessage.TaobaoDpaasFaceToCustomerAck DPAAS > 会员标示消息推送} */
|
|
1661
1671
|
on(topic: 'taobao_dpaas_FaceToCustomerAck', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoDpaasFaceToCustomerAck) => void): TaoMessageConsumer;
|
|
1672
|
+
/** {@link IncomingMessage.TaobaoDvExternal 阿里通信 > 淘宝数字虚拟外放} */
|
|
1673
|
+
on(topic: 'taobao_dv_External', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoDvExternal) => void): TaoMessageConsumer;
|
|
1662
1674
|
/** {@link IncomingMessage.TaobaoEinvoiceBuyerConfirmSend 电子发票 > 买家确认发送到报销系统} */
|
|
1663
1675
|
on(topic: 'taobao_einvoice_BuyerConfirmSend', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoEinvoiceBuyerConfirmSend) => void): TaoMessageConsumer;
|
|
1664
1676
|
/** {@link IncomingMessage.TaobaoEinvoiceInvoiceResultReturn 电子发票 > 电子发票开票回流} */
|
|
@@ -1719,15 +1731,17 @@ declare interface TaoEventsListener {
|
|
|
1719
1731
|
on(topic: 'taobao_fliggy_StdHotelModify', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoFliggyStdHotelModify) => void): TaoMessageConsumer;
|
|
1720
1732
|
/** {@link IncomingMessage.TaobaoFliggyStdRoomTypeModify 酒店签约中心消息 > 标准房型领域模型实体变更消息} */
|
|
1721
1733
|
on(topic: 'taobao_fliggy_StdRoomTypeModify', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoFliggyStdRoomTypeModify) => void): TaoMessageConsumer;
|
|
1722
|
-
/** {@link IncomingMessage.
|
|
1734
|
+
/** {@link IncomingMessage.TaobaoFuwuFundsChange 淘宝交易 > 以旧换新资金变更通知消息} */
|
|
1735
|
+
on(topic: 'taobao_fuwu_FundsChange', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoFuwuFundsChange) => void): TaoMessageConsumer;
|
|
1736
|
+
/** {@link IncomingMessage.TaobaoFuwuOrderClosed 淘宝交易 > 订单关闭消息} */
|
|
1723
1737
|
on(topic: 'taobao_fuwu_OrderClosed', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoFuwuOrderClosed) => void): TaoMessageConsumer;
|
|
1724
|
-
/** {@link IncomingMessage.TaobaoFuwuOrderCreated
|
|
1738
|
+
/** {@link IncomingMessage.TaobaoFuwuOrderCreated 淘宝交易 > 订单创建消息} */
|
|
1725
1739
|
on(topic: 'taobao_fuwu_OrderCreated', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoFuwuOrderCreated) => void): TaoMessageConsumer;
|
|
1726
|
-
/** {@link IncomingMessage.TaobaoFuwuOrderPaid
|
|
1740
|
+
/** {@link IncomingMessage.TaobaoFuwuOrderPaid 淘宝交易 > 订单支付消息} */
|
|
1727
1741
|
on(topic: 'taobao_fuwu_OrderPaid', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoFuwuOrderPaid) => void): TaoMessageConsumer;
|
|
1728
|
-
/** {@link IncomingMessage.TaobaoFuwuServiceOpen
|
|
1742
|
+
/** {@link IncomingMessage.TaobaoFuwuServiceOpen 淘宝交易 > 服务开通消息} */
|
|
1729
1743
|
on(topic: 'taobao_fuwu_ServiceOpen', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoFuwuServiceOpen) => void): TaoMessageConsumer;
|
|
1730
|
-
/** {@link IncomingMessage.TaobaoFuwuWitkeySyncModeling
|
|
1744
|
+
/** {@link IncomingMessage.TaobaoFuwuWitkeySyncModeling 淘宝交易 > 威客同步建模数据} */
|
|
1731
1745
|
on(topic: 'taobao_fuwu_WitkeySyncModeling', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoFuwuWitkeySyncModeling) => void): TaoMessageConsumer;
|
|
1732
1746
|
/** {@link IncomingMessage.TaobaoGlobalbuysSeamailOrderNotify 全球购跨境物流 > 跨境服务平台推送物流订单消息} */
|
|
1733
1747
|
on(topic: 'taobao_globalbuys_SeamailOrderNotify', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoGlobalbuysSeamailOrderNotify) => void): TaoMessageConsumer;
|
|
@@ -2025,8 +2039,12 @@ declare interface TaoEventsListener {
|
|
|
2025
2039
|
on(topic: 'tmall_fuwu_AnomalyRecourse', listener: (this: TaoMessageConsumer, message: IncomingMessage.TmallFuwuAnomalyRecourse) => void): TaoMessageConsumer;
|
|
2026
2040
|
/** {@link IncomingMessage.TmallFuwuAnomalyRecourseStatusUpdate 天猫服务 > 一键求助状态变更消息} */
|
|
2027
2041
|
on(topic: 'tmall_fuwu_AnomalyRecourseStatusUpdate', listener: (this: TaoMessageConsumer, message: IncomingMessage.TmallFuwuAnomalyRecourseStatusUpdate) => void): TaoMessageConsumer;
|
|
2042
|
+
/** {@link IncomingMessage.TmallFuwuElectricMaintenanceWorkCardComplete 天猫服务 > 天猫服务消电维修工单完结消息} */
|
|
2043
|
+
on(topic: 'tmall_fuwu_ElectricMaintenanceWorkCardComplete', listener: (this: TaoMessageConsumer, message: IncomingMessage.TmallFuwuElectricMaintenanceWorkCardComplete) => void): TaoMessageConsumer;
|
|
2028
2044
|
/** {@link IncomingMessage.TmallFuwuLogisticsInfoMessage 天猫服务 > 服务供应链物流业务消息} */
|
|
2029
2045
|
on(topic: 'tmall_fuwu_LogisticsInfoMessage', listener: (this: TaoMessageConsumer, message: IncomingMessage.TmallFuwuLogisticsInfoMessage) => void): TaoMessageConsumer;
|
|
2046
|
+
/** {@link IncomingMessage.TmallFuwuRateMessageTP 天猫服务 > 消费者评价成功top消息} */
|
|
2047
|
+
on(topic: 'tmall_fuwu_RateMessageTP', listener: (this: TaoMessageConsumer, message: IncomingMessage.TmallFuwuRateMessageTP) => void): TaoMessageConsumer;
|
|
2030
2048
|
/** {@link IncomingMessage.TmallFuwuServiceItemUpdate 天猫服务 > 服务商品信息变更消息} */
|
|
2031
2049
|
on(topic: 'tmall_fuwu_ServiceItemUpdate', listener: (this: TaoMessageConsumer, message: IncomingMessage.TmallFuwuServiceItemUpdate) => void): TaoMessageConsumer;
|
|
2032
2050
|
/** {@link IncomingMessage.TmallFuwuServiceMonitorMessage 天猫服务 > 服务预警消息} */
|
|
@@ -2261,6 +2279,8 @@ declare interface TaoEventsListener {
|
|
|
2261
2279
|
on(topic: 'taobao_diandian', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoDiandian) => void): TaoMessageConsumer;
|
|
2262
2280
|
/** {@link IncomingMessage.TaobaoDpaas} */
|
|
2263
2281
|
on(topic: 'taobao_dpaas', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoDpaas) => void): TaoMessageConsumer;
|
|
2282
|
+
/** {@link IncomingMessage.TaobaoDv} */
|
|
2283
|
+
on(topic: 'taobao_dv', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoDv) => void): TaoMessageConsumer;
|
|
2264
2284
|
/** {@link IncomingMessage.TaobaoEinvoice} */
|
|
2265
2285
|
on(topic: 'taobao_einvoice', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoEinvoice) => void): TaoMessageConsumer;
|
|
2266
2286
|
/** {@link IncomingMessage.TaobaoFenxiao} */
|
package/types/message.in.d.ts
CHANGED
|
@@ -439,6 +439,8 @@ declare namespace IncomingMessage {
|
|
|
439
439
|
type TaobaoDpaasEquipmentCreate = Message & { content?: MessageContent & { topic?: 'taobao_dpaas_EquipmentCreate', content?: string | Taobao.Dpaas.EquipmentCreate } };
|
|
440
440
|
/** {@link Taobao.Dpaas.FaceToCustomerAck DPAAS > 会员标示消息推送} */
|
|
441
441
|
type TaobaoDpaasFaceToCustomerAck = Message & { content?: MessageContent & { topic?: 'taobao_dpaas_FaceToCustomerAck', content?: string | Taobao.Dpaas.FaceToCustomerAck } };
|
|
442
|
+
/** {@link Taobao.Dv.External 阿里通信 > 淘宝数字虚拟外放} */
|
|
443
|
+
type TaobaoDvExternal = Message & { content?: MessageContent & { topic?: 'taobao_dv_External', content?: string | Taobao.Dv.External } };
|
|
442
444
|
/** {@link Taobao.Einvoice.BuyerConfirmSend 电子发票 > 买家确认发送到报销系统} */
|
|
443
445
|
type TaobaoEinvoiceBuyerConfirmSend = Message & { content?: MessageContent & { topic?: 'taobao_einvoice_BuyerConfirmSend', content?: string | Taobao.Einvoice.BuyerConfirmSend } };
|
|
444
446
|
/** {@link Taobao.Einvoice.InvoiceResultReturn 电子发票 > 电子发票开票回流} */
|
|
@@ -499,15 +501,17 @@ declare namespace IncomingMessage {
|
|
|
499
501
|
type TaobaoFliggyStdHotelModify = Message & { content?: MessageContent & { topic?: 'taobao_fliggy_StdHotelModify', content?: string | Taobao.Fliggy.StdHotelModify } };
|
|
500
502
|
/** {@link Taobao.Fliggy.StdRoomTypeModify 酒店签约中心消息 > 标准房型领域模型实体变更消息} */
|
|
501
503
|
type TaobaoFliggyStdRoomTypeModify = Message & { content?: MessageContent & { topic?: 'taobao_fliggy_StdRoomTypeModify', content?: string | Taobao.Fliggy.StdRoomTypeModify } };
|
|
502
|
-
/** {@link Taobao.Fuwu.
|
|
504
|
+
/** {@link Taobao.Fuwu.FundsChange 淘宝交易 > 以旧换新资金变更通知消息} */
|
|
505
|
+
type TaobaoFuwuFundsChange = Message & { content?: MessageContent & { topic?: 'taobao_fuwu_FundsChange', content?: string | Taobao.Fuwu.FundsChange } };
|
|
506
|
+
/** {@link Taobao.Fuwu.OrderClosed 淘宝交易 > 订单关闭消息} */
|
|
503
507
|
type TaobaoFuwuOrderClosed = Message & { content?: MessageContent & { topic?: 'taobao_fuwu_OrderClosed', content?: string | Taobao.Fuwu.OrderClosed } };
|
|
504
|
-
/** {@link Taobao.Fuwu.OrderCreated
|
|
508
|
+
/** {@link Taobao.Fuwu.OrderCreated 淘宝交易 > 订单创建消息} */
|
|
505
509
|
type TaobaoFuwuOrderCreated = Message & { content?: MessageContent & { topic?: 'taobao_fuwu_OrderCreated', content?: string | Taobao.Fuwu.OrderCreated } };
|
|
506
|
-
/** {@link Taobao.Fuwu.OrderPaid
|
|
510
|
+
/** {@link Taobao.Fuwu.OrderPaid 淘宝交易 > 订单支付消息} */
|
|
507
511
|
type TaobaoFuwuOrderPaid = Message & { content?: MessageContent & { topic?: 'taobao_fuwu_OrderPaid', content?: string | Taobao.Fuwu.OrderPaid } };
|
|
508
|
-
/** {@link Taobao.Fuwu.ServiceOpen
|
|
512
|
+
/** {@link Taobao.Fuwu.ServiceOpen 淘宝交易 > 服务开通消息} */
|
|
509
513
|
type TaobaoFuwuServiceOpen = Message & { content?: MessageContent & { topic?: 'taobao_fuwu_ServiceOpen', content?: string | Taobao.Fuwu.ServiceOpen } };
|
|
510
|
-
/** {@link Taobao.Fuwu.WitkeySyncModeling
|
|
514
|
+
/** {@link Taobao.Fuwu.WitkeySyncModeling 淘宝交易 > 威客同步建模数据} */
|
|
511
515
|
type TaobaoFuwuWitkeySyncModeling = Message & { content?: MessageContent & { topic?: 'taobao_fuwu_WitkeySyncModeling', content?: string | Taobao.Fuwu.WitkeySyncModeling } };
|
|
512
516
|
/** {@link Taobao.Globalbuys.SeamailOrderNotify 全球购跨境物流 > 跨境服务平台推送物流订单消息} */
|
|
513
517
|
type TaobaoGlobalbuysSeamailOrderNotify = Message & { content?: MessageContent & { topic?: 'taobao_globalbuys_SeamailOrderNotify', content?: string | Taobao.Globalbuys.SeamailOrderNotify } };
|
|
@@ -805,8 +809,12 @@ declare namespace IncomingMessage {
|
|
|
805
809
|
type TmallFuwuAnomalyRecourse = Message & { content?: MessageContent & { topic?: 'tmall_fuwu_AnomalyRecourse', content?: string | Tmall.Fuwu.AnomalyRecourse } };
|
|
806
810
|
/** {@link Tmall.Fuwu.AnomalyRecourseStatusUpdate 天猫服务 > 一键求助状态变更消息} */
|
|
807
811
|
type TmallFuwuAnomalyRecourseStatusUpdate = Message & { content?: MessageContent & { topic?: 'tmall_fuwu_AnomalyRecourseStatusUpdate', content?: string | Tmall.Fuwu.AnomalyRecourseStatusUpdate } };
|
|
812
|
+
/** {@link Tmall.Fuwu.ElectricMaintenanceWorkCardComplete 天猫服务 > 天猫服务消电维修工单完结消息} */
|
|
813
|
+
type TmallFuwuElectricMaintenanceWorkCardComplete = Message & { content?: MessageContent & { topic?: 'tmall_fuwu_ElectricMaintenanceWorkCardComplete', content?: string | Tmall.Fuwu.ElectricMaintenanceWorkCardComplete } };
|
|
808
814
|
/** {@link Tmall.Fuwu.LogisticsInfoMessage 天猫服务 > 服务供应链物流业务消息} */
|
|
809
815
|
type TmallFuwuLogisticsInfoMessage = Message & { content?: MessageContent & { topic?: 'tmall_fuwu_LogisticsInfoMessage', content?: string | Tmall.Fuwu.LogisticsInfoMessage } };
|
|
816
|
+
/** {@link Tmall.Fuwu.RateMessageTP 天猫服务 > 消费者评价成功top消息} */
|
|
817
|
+
type TmallFuwuRateMessageTP = Message & { content?: MessageContent & { topic?: 'tmall_fuwu_RateMessageTP', content?: string | Tmall.Fuwu.RateMessageTP } };
|
|
810
818
|
/** {@link Tmall.Fuwu.ServiceItemUpdate 天猫服务 > 服务商品信息变更消息} */
|
|
811
819
|
type TmallFuwuServiceItemUpdate = Message & { content?: MessageContent & { topic?: 'tmall_fuwu_ServiceItemUpdate', content?: string | Tmall.Fuwu.ServiceItemUpdate } };
|
|
812
820
|
/** {@link Tmall.Fuwu.ServiceMonitorMessage 天猫服务 > 服务预警消息} */
|
|
@@ -1455,6 +1463,10 @@ declare namespace IncomingMessage {
|
|
|
1455
1463
|
| TaobaoDpaasCustomerUploadAck
|
|
1456
1464
|
| TaobaoDpaasEquipmentCreate
|
|
1457
1465
|
| TaobaoDpaasFaceToCustomerAck;
|
|
1466
|
+
/**
|
|
1467
|
+
* - {@link TaobaoDvExternal 阿里通信 > 淘宝数字虚拟外放}
|
|
1468
|
+
*/
|
|
1469
|
+
type TaobaoDv = TaobaoDvExternal;
|
|
1458
1470
|
/**
|
|
1459
1471
|
* - {@link TaobaoEinvoiceBuyerConfirmSend 电子发票 > 买家确认发送到报销系统}
|
|
1460
1472
|
* - {@link TaobaoEinvoiceInvoiceResultReturn 电子发票 > 电子发票开票回流}
|
|
@@ -1522,13 +1534,15 @@ declare namespace IncomingMessage {
|
|
|
1522
1534
|
| TaobaoFliggyStdHotelModify
|
|
1523
1535
|
| TaobaoFliggyStdRoomTypeModify;
|
|
1524
1536
|
/**
|
|
1525
|
-
* - {@link
|
|
1526
|
-
* - {@link
|
|
1527
|
-
* - {@link
|
|
1528
|
-
* - {@link
|
|
1529
|
-
* - {@link
|
|
1537
|
+
* - {@link TaobaoFuwuFundsChange 淘宝交易 > 以旧换新资金变更通知消息}
|
|
1538
|
+
* - {@link TaobaoFuwuOrderClosed 淘宝交易 > 订单关闭消息}
|
|
1539
|
+
* - {@link TaobaoFuwuOrderCreated 淘宝交易 > 订单创建消息}
|
|
1540
|
+
* - {@link TaobaoFuwuOrderPaid 淘宝交易 > 订单支付消息}
|
|
1541
|
+
* - {@link TaobaoFuwuServiceOpen 淘宝交易 > 服务开通消息}
|
|
1542
|
+
* - {@link TaobaoFuwuWitkeySyncModeling 淘宝交易 > 威客同步建模数据}
|
|
1530
1543
|
*/
|
|
1531
|
-
type TaobaoFuwu =
|
|
1544
|
+
type TaobaoFuwu = TaobaoFuwuFundsChange
|
|
1545
|
+
| TaobaoFuwuOrderClosed
|
|
1532
1546
|
| TaobaoFuwuOrderCreated
|
|
1533
1547
|
| TaobaoFuwuOrderPaid
|
|
1534
1548
|
| TaobaoFuwuServiceOpen
|
|
@@ -1900,7 +1914,9 @@ declare namespace IncomingMessage {
|
|
|
1900
1914
|
/**
|
|
1901
1915
|
* - {@link TmallFuwuAnomalyRecourse 天猫服务 > 天猫服务平台一键求助单消息队列}
|
|
1902
1916
|
* - {@link TmallFuwuAnomalyRecourseStatusUpdate 天猫服务 > 一键求助状态变更消息}
|
|
1917
|
+
* - {@link TmallFuwuElectricMaintenanceWorkCardComplete 天猫服务 > 天猫服务消电维修工单完结消息}
|
|
1903
1918
|
* - {@link TmallFuwuLogisticsInfoMessage 天猫服务 > 服务供应链物流业务消息}
|
|
1919
|
+
* - {@link TmallFuwuRateMessageTP 天猫服务 > 消费者评价成功top消息}
|
|
1904
1920
|
* - {@link TmallFuwuServiceItemUpdate 天猫服务 > 服务商品信息变更消息}
|
|
1905
1921
|
* - {@link TmallFuwuServiceMonitorMessage 天猫服务 > 服务预警消息}
|
|
1906
1922
|
* - {@link TmallFuwuServiceStoreRegister 天猫服务 > 服务网点注册消息}
|
|
@@ -1912,7 +1928,9 @@ declare namespace IncomingMessage {
|
|
|
1912
1928
|
*/
|
|
1913
1929
|
type TmallFuwu = TmallFuwuAnomalyRecourse
|
|
1914
1930
|
| TmallFuwuAnomalyRecourseStatusUpdate
|
|
1931
|
+
| TmallFuwuElectricMaintenanceWorkCardComplete
|
|
1915
1932
|
| TmallFuwuLogisticsInfoMessage
|
|
1933
|
+
| TmallFuwuRateMessageTP
|
|
1916
1934
|
| TmallFuwuServiceItemUpdate
|
|
1917
1935
|
| TmallFuwuServiceMonitorMessage
|
|
1918
1936
|
| TmallFuwuServiceStoreRegister
|
|
@@ -2194,6 +2212,7 @@ declare namespace IncomingMessage {
|
|
|
2194
2212
|
* - {@link TaobaoDd}
|
|
2195
2213
|
* - {@link TaobaoDiandian}
|
|
2196
2214
|
* - {@link TaobaoDpaas}
|
|
2215
|
+
* - {@link TaobaoDv}
|
|
2197
2216
|
* - {@link TaobaoEinvoice}
|
|
2198
2217
|
* - {@link TaobaoFenxiao}
|
|
2199
2218
|
* - {@link TaobaoFliggy}
|
|
@@ -2243,6 +2262,7 @@ declare namespace IncomingMessage {
|
|
|
2243
2262
|
| TaobaoDd
|
|
2244
2263
|
| TaobaoDiandian
|
|
2245
2264
|
| TaobaoDpaas
|
|
2265
|
+
| TaobaoDv
|
|
2246
2266
|
| TaobaoEinvoice
|
|
2247
2267
|
| TaobaoFenxiao
|
|
2248
2268
|
| TaobaoFliggy
|
package/types/taobao.d.ts
CHANGED
|
@@ -382,6 +382,17 @@ declare namespace Taobao.Dpaas {
|
|
|
382
382
|
}
|
|
383
383
|
}
|
|
384
384
|
|
|
385
|
+
/** 阿里通信 */
|
|
386
|
+
declare namespace Taobao.Dv {
|
|
387
|
+
/** 淘宝数字虚拟外放 */
|
|
388
|
+
interface External {
|
|
389
|
+
/** 外部订单号 */
|
|
390
|
+
out_order_id: string;
|
|
391
|
+
/** 0:进行中,1:成功,2:失败,9:不存在 */
|
|
392
|
+
status: string;
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
|
|
385
396
|
/** 电子发票 */
|
|
386
397
|
declare namespace Taobao.Einvoice {
|
|
387
398
|
/** 买家确认发送到报销系统 */
|
|
@@ -645,8 +656,16 @@ declare namespace Taobao.Fliggy {
|
|
|
645
656
|
}
|
|
646
657
|
}
|
|
647
658
|
|
|
648
|
-
/**
|
|
659
|
+
/** 淘宝交易 */
|
|
649
660
|
declare namespace Taobao.Fuwu {
|
|
661
|
+
/** 以旧换新资金变更通知消息 */
|
|
662
|
+
interface FundsChange {
|
|
663
|
+
/** 新机单ID */
|
|
664
|
+
new_order_id?: string;
|
|
665
|
+
/** 回收单ID */
|
|
666
|
+
old_order_id: string;
|
|
667
|
+
}
|
|
668
|
+
|
|
650
669
|
/** 订单关闭消息 */
|
|
651
670
|
interface OrderClosed {
|
|
652
671
|
/** 活动代码,从合作伙伴后台(i.fuwu.taobao.com)-收费管理-营销活动列表 能够获得该活动的代码 */
|
package/types/tmall.d.ts
CHANGED
|
@@ -100,6 +100,12 @@ declare namespace Tmall.Fuwu {
|
|
|
100
100
|
status: number;
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
+
/** 天猫服务消电维修工单完结消息 */
|
|
104
|
+
interface ElectricMaintenanceWorkCardComplete {
|
|
105
|
+
/** 工单号 */
|
|
106
|
+
workcard_id: string;
|
|
107
|
+
}
|
|
108
|
+
|
|
103
109
|
/** 服务供应链物流业务消息 */
|
|
104
110
|
interface LogisticsInfoMessage {
|
|
105
111
|
/** 物流创建 :create 物流取消 :cancel 分派小件员:assign 已经分派小件员: assigned 包裹上门揽收: pickup_door 包裹已揽收完成: pickup_finished 包裹派送中: dispatching 包裹已签收: signed */
|
|
@@ -112,6 +118,18 @@ declare namespace Tmall.Fuwu {
|
|
|
112
118
|
stage_type: string;
|
|
113
119
|
}
|
|
114
120
|
|
|
121
|
+
/** 消费者评价成功top消息 */
|
|
122
|
+
interface RateMessageTP {
|
|
123
|
+
/** 单据类型 */
|
|
124
|
+
order_type: number;
|
|
125
|
+
/** 评价id */
|
|
126
|
+
rate_id: number;
|
|
127
|
+
/** 评价星级 */
|
|
128
|
+
rate_value: number;
|
|
129
|
+
/** 单据id */
|
|
130
|
+
work_order_id: number;
|
|
131
|
+
}
|
|
132
|
+
|
|
115
133
|
/** 服务商品信息变更消息 */
|
|
116
134
|
interface ServiceItemUpdate {
|
|
117
135
|
/** 服务商品id */
|