tmc.js 0.3.22 → 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/alibaba.d.ts +39 -0
- package/types/index.d.ts +38 -10
- package/types/message.in.d.ts +39 -11
- package/types/niaochao.d.ts +1 -1
- 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/alibaba.d.ts
CHANGED
|
@@ -1088,6 +1088,45 @@ declare namespace Alibaba.Mos {
|
|
|
1088
1088
|
}
|
|
1089
1089
|
}
|
|
1090
1090
|
|
|
1091
|
+
/** 天猫服务 */
|
|
1092
|
+
declare namespace Alibaba.Msfservice {
|
|
1093
|
+
/** 喵师傅审核单通知 */
|
|
1094
|
+
interface AuditCreate {
|
|
1095
|
+
/** 审核单id */
|
|
1096
|
+
audit_id: number;
|
|
1097
|
+
/** 下次联系时间(日期)(改约不确定时间) */
|
|
1098
|
+
contact_time: string;
|
|
1099
|
+
/** 下次联系时间(时间段)(改约不确定时间) */
|
|
1100
|
+
contact_time_range: string;
|
|
1101
|
+
/** 审批单创建时间 */
|
|
1102
|
+
gmt_create: Date | number | string;
|
|
1103
|
+
/** 核销单id */
|
|
1104
|
+
identify_task_id: string;
|
|
1105
|
+
/** 原始时间(日期) */
|
|
1106
|
+
origin_time: string;
|
|
1107
|
+
/** 原始时间(时间段) */
|
|
1108
|
+
origin_time_range: string;
|
|
1109
|
+
/** 改约原因 */
|
|
1110
|
+
reason: string;
|
|
1111
|
+
/** 改约原因编号 */
|
|
1112
|
+
reason_code: number;
|
|
1113
|
+
/** 交易单id */
|
|
1114
|
+
trade_order_id: string;
|
|
1115
|
+
/** 变更时间(日期)(改约确定时间) */
|
|
1116
|
+
update_time: string;
|
|
1117
|
+
/** 变更时间(时间段)(改约确定时间) */
|
|
1118
|
+
update_time_range: string;
|
|
1119
|
+
/** 工单id */
|
|
1120
|
+
workcard_ids: string;
|
|
1121
|
+
/** 师傅id */
|
|
1122
|
+
worker_id: number;
|
|
1123
|
+
/** 师傅手机号 */
|
|
1124
|
+
worker_mobile: string;
|
|
1125
|
+
/** 师傅名称 */
|
|
1126
|
+
worker_name: string;
|
|
1127
|
+
}
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1091
1130
|
/** 网上法庭 */
|
|
1092
1131
|
declare namespace Alibaba.Nazca {
|
|
1093
1132
|
/** 作废存证消息接口 */
|
package/types/index.d.ts
CHANGED
|
@@ -200,6 +200,8 @@ declare interface TaoTopicsDescriptor {
|
|
|
200
200
|
alibaba_mos_SaleOrder(fn: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaMosSaleOrder) => void): TaoMessageConsumer;
|
|
201
201
|
/** {@link IncomingMessage.AlibabaMosSaleOrderRefund 银泰开放平台消息 > 销售单退款消息} */
|
|
202
202
|
alibaba_mos_SaleOrderRefund(fn: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaMosSaleOrderRefund) => void): TaoMessageConsumer;
|
|
203
|
+
/** {@link IncomingMessage.AlibabaMsfserviceAuditCreate 天猫服务 > 喵师傅审核单通知} */
|
|
204
|
+
alibaba_msfservice_AuditCreate(fn: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaMsfserviceAuditCreate) => void): TaoMessageConsumer;
|
|
203
205
|
/** {@link IncomingMessage.AlibabaNazcaAbandonCert 网上法庭 > 作废存证消息接口} */
|
|
204
206
|
alibaba_nazca_AbandonCert(fn: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaNazcaAbandonCert) => void): TaoMessageConsumer;
|
|
205
207
|
/** {@link IncomingMessage.AlibabaNazcaQueryChargeNum 网上法庭 > 查询收费数量} */
|
|
@@ -476,6 +478,8 @@ declare interface TaoTopicsDescriptor {
|
|
|
476
478
|
taobao_dpaas_EquipmentCreate(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoDpaasEquipmentCreate) => void): TaoMessageConsumer;
|
|
477
479
|
/** {@link IncomingMessage.TaobaoDpaasFaceToCustomerAck DPAAS > 会员标示消息推送} */
|
|
478
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;
|
|
479
483
|
/** {@link IncomingMessage.TaobaoEinvoiceBuyerConfirmSend 电子发票 > 买家确认发送到报销系统} */
|
|
480
484
|
taobao_einvoice_BuyerConfirmSend(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoEinvoiceBuyerConfirmSend) => void): TaoMessageConsumer;
|
|
481
485
|
/** {@link IncomingMessage.TaobaoEinvoiceInvoiceResultReturn 电子发票 > 电子发票开票回流} */
|
|
@@ -536,15 +540,17 @@ declare interface TaoTopicsDescriptor {
|
|
|
536
540
|
taobao_fliggy_StdHotelModify(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoFliggyStdHotelModify) => void): TaoMessageConsumer;
|
|
537
541
|
/** {@link IncomingMessage.TaobaoFliggyStdRoomTypeModify 酒店签约中心消息 > 标准房型领域模型实体变更消息} */
|
|
538
542
|
taobao_fliggy_StdRoomTypeModify(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoFliggyStdRoomTypeModify) => void): TaoMessageConsumer;
|
|
539
|
-
/** {@link IncomingMessage.
|
|
543
|
+
/** {@link IncomingMessage.TaobaoFuwuFundsChange 淘宝交易 > 以旧换新资金变更通知消息} */
|
|
544
|
+
taobao_fuwu_FundsChange(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoFuwuFundsChange) => void): TaoMessageConsumer;
|
|
545
|
+
/** {@link IncomingMessage.TaobaoFuwuOrderClosed 淘宝交易 > 订单关闭消息} */
|
|
540
546
|
taobao_fuwu_OrderClosed(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoFuwuOrderClosed) => void): TaoMessageConsumer;
|
|
541
|
-
/** {@link IncomingMessage.TaobaoFuwuOrderCreated
|
|
547
|
+
/** {@link IncomingMessage.TaobaoFuwuOrderCreated 淘宝交易 > 订单创建消息} */
|
|
542
548
|
taobao_fuwu_OrderCreated(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoFuwuOrderCreated) => void): TaoMessageConsumer;
|
|
543
|
-
/** {@link IncomingMessage.TaobaoFuwuOrderPaid
|
|
549
|
+
/** {@link IncomingMessage.TaobaoFuwuOrderPaid 淘宝交易 > 订单支付消息} */
|
|
544
550
|
taobao_fuwu_OrderPaid(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoFuwuOrderPaid) => void): TaoMessageConsumer;
|
|
545
|
-
/** {@link IncomingMessage.TaobaoFuwuServiceOpen
|
|
551
|
+
/** {@link IncomingMessage.TaobaoFuwuServiceOpen 淘宝交易 > 服务开通消息} */
|
|
546
552
|
taobao_fuwu_ServiceOpen(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoFuwuServiceOpen) => void): TaoMessageConsumer;
|
|
547
|
-
/** {@link IncomingMessage.TaobaoFuwuWitkeySyncModeling
|
|
553
|
+
/** {@link IncomingMessage.TaobaoFuwuWitkeySyncModeling 淘宝交易 > 威客同步建模数据} */
|
|
548
554
|
taobao_fuwu_WitkeySyncModeling(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoFuwuWitkeySyncModeling) => void): TaoMessageConsumer;
|
|
549
555
|
/** {@link IncomingMessage.TaobaoGlobalbuysSeamailOrderNotify 全球购跨境物流 > 跨境服务平台推送物流订单消息} */
|
|
550
556
|
taobao_globalbuys_SeamailOrderNotify(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoGlobalbuysSeamailOrderNotify) => void): TaoMessageConsumer;
|
|
@@ -842,8 +848,12 @@ declare interface TaoTopicsDescriptor {
|
|
|
842
848
|
tmall_fuwu_AnomalyRecourse(fn: (this: TaoMessageConsumer, message: IncomingMessage.TmallFuwuAnomalyRecourse) => void): TaoMessageConsumer;
|
|
843
849
|
/** {@link IncomingMessage.TmallFuwuAnomalyRecourseStatusUpdate 天猫服务 > 一键求助状态变更消息} */
|
|
844
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;
|
|
845
853
|
/** {@link IncomingMessage.TmallFuwuLogisticsInfoMessage 天猫服务 > 服务供应链物流业务消息} */
|
|
846
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;
|
|
847
857
|
/** {@link IncomingMessage.TmallFuwuServiceItemUpdate 天猫服务 > 服务商品信息变更消息} */
|
|
848
858
|
tmall_fuwu_ServiceItemUpdate(fn: (this: TaoMessageConsumer, message: IncomingMessage.TmallFuwuServiceItemUpdate) => void): TaoMessageConsumer;
|
|
849
859
|
/** {@link IncomingMessage.TmallFuwuServiceMonitorMessage 天猫服务 > 服务预警消息} */
|
|
@@ -954,6 +964,8 @@ declare interface TaoTopicsDescriptor {
|
|
|
954
964
|
alibaba_monitor(fn: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaMonitor) => void): TaoMessageConsumer;
|
|
955
965
|
/** {@link IncomingMessage.AlibabaMos} */
|
|
956
966
|
alibaba_mos(fn: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaMos) => void): TaoMessageConsumer;
|
|
967
|
+
/** {@link IncomingMessage.AlibabaMsfservice} */
|
|
968
|
+
alibaba_msfservice(fn: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaMsfservice) => void): TaoMessageConsumer;
|
|
957
969
|
/** {@link IncomingMessage.AlibabaNazca} */
|
|
958
970
|
alibaba_nazca(fn: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaNazca) => void): TaoMessageConsumer;
|
|
959
971
|
/** {@link IncomingMessage.AlibabaNlife} */
|
|
@@ -1076,6 +1088,8 @@ declare interface TaoTopicsDescriptor {
|
|
|
1076
1088
|
taobao_diandian(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoDiandian) => void): TaoMessageConsumer;
|
|
1077
1089
|
/** {@link IncomingMessage.TaobaoDpaas} */
|
|
1078
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;
|
|
1079
1093
|
/** {@link IncomingMessage.TaobaoEinvoice} */
|
|
1080
1094
|
taobao_einvoice(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoEinvoice) => void): TaoMessageConsumer;
|
|
1081
1095
|
/** {@link IncomingMessage.TaobaoFenxiao} */
|
|
@@ -1377,6 +1391,8 @@ declare interface TaoEventsListener {
|
|
|
1377
1391
|
on(topic: 'alibaba_mos_SaleOrder', listener: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaMosSaleOrder) => void): TaoMessageConsumer;
|
|
1378
1392
|
/** {@link IncomingMessage.AlibabaMosSaleOrderRefund 银泰开放平台消息 > 销售单退款消息} */
|
|
1379
1393
|
on(topic: 'alibaba_mos_SaleOrderRefund', listener: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaMosSaleOrderRefund) => void): TaoMessageConsumer;
|
|
1394
|
+
/** {@link IncomingMessage.AlibabaMsfserviceAuditCreate 天猫服务 > 喵师傅审核单通知} */
|
|
1395
|
+
on(topic: 'alibaba_msfservice_AuditCreate', listener: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaMsfserviceAuditCreate) => void): TaoMessageConsumer;
|
|
1380
1396
|
/** {@link IncomingMessage.AlibabaNazcaAbandonCert 网上法庭 > 作废存证消息接口} */
|
|
1381
1397
|
on(topic: 'alibaba_nazca_AbandonCert', listener: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaNazcaAbandonCert) => void): TaoMessageConsumer;
|
|
1382
1398
|
/** {@link IncomingMessage.AlibabaNazcaQueryChargeNum 网上法庭 > 查询收费数量} */
|
|
@@ -1653,6 +1669,8 @@ declare interface TaoEventsListener {
|
|
|
1653
1669
|
on(topic: 'taobao_dpaas_EquipmentCreate', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoDpaasEquipmentCreate) => void): TaoMessageConsumer;
|
|
1654
1670
|
/** {@link IncomingMessage.TaobaoDpaasFaceToCustomerAck DPAAS > 会员标示消息推送} */
|
|
1655
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;
|
|
1656
1674
|
/** {@link IncomingMessage.TaobaoEinvoiceBuyerConfirmSend 电子发票 > 买家确认发送到报销系统} */
|
|
1657
1675
|
on(topic: 'taobao_einvoice_BuyerConfirmSend', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoEinvoiceBuyerConfirmSend) => void): TaoMessageConsumer;
|
|
1658
1676
|
/** {@link IncomingMessage.TaobaoEinvoiceInvoiceResultReturn 电子发票 > 电子发票开票回流} */
|
|
@@ -1713,15 +1731,17 @@ declare interface TaoEventsListener {
|
|
|
1713
1731
|
on(topic: 'taobao_fliggy_StdHotelModify', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoFliggyStdHotelModify) => void): TaoMessageConsumer;
|
|
1714
1732
|
/** {@link IncomingMessage.TaobaoFliggyStdRoomTypeModify 酒店签约中心消息 > 标准房型领域模型实体变更消息} */
|
|
1715
1733
|
on(topic: 'taobao_fliggy_StdRoomTypeModify', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoFliggyStdRoomTypeModify) => void): TaoMessageConsumer;
|
|
1716
|
-
/** {@link IncomingMessage.
|
|
1734
|
+
/** {@link IncomingMessage.TaobaoFuwuFundsChange 淘宝交易 > 以旧换新资金变更通知消息} */
|
|
1735
|
+
on(topic: 'taobao_fuwu_FundsChange', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoFuwuFundsChange) => void): TaoMessageConsumer;
|
|
1736
|
+
/** {@link IncomingMessage.TaobaoFuwuOrderClosed 淘宝交易 > 订单关闭消息} */
|
|
1717
1737
|
on(topic: 'taobao_fuwu_OrderClosed', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoFuwuOrderClosed) => void): TaoMessageConsumer;
|
|
1718
|
-
/** {@link IncomingMessage.TaobaoFuwuOrderCreated
|
|
1738
|
+
/** {@link IncomingMessage.TaobaoFuwuOrderCreated 淘宝交易 > 订单创建消息} */
|
|
1719
1739
|
on(topic: 'taobao_fuwu_OrderCreated', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoFuwuOrderCreated) => void): TaoMessageConsumer;
|
|
1720
|
-
/** {@link IncomingMessage.TaobaoFuwuOrderPaid
|
|
1740
|
+
/** {@link IncomingMessage.TaobaoFuwuOrderPaid 淘宝交易 > 订单支付消息} */
|
|
1721
1741
|
on(topic: 'taobao_fuwu_OrderPaid', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoFuwuOrderPaid) => void): TaoMessageConsumer;
|
|
1722
|
-
/** {@link IncomingMessage.TaobaoFuwuServiceOpen
|
|
1742
|
+
/** {@link IncomingMessage.TaobaoFuwuServiceOpen 淘宝交易 > 服务开通消息} */
|
|
1723
1743
|
on(topic: 'taobao_fuwu_ServiceOpen', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoFuwuServiceOpen) => void): TaoMessageConsumer;
|
|
1724
|
-
/** {@link IncomingMessage.TaobaoFuwuWitkeySyncModeling
|
|
1744
|
+
/** {@link IncomingMessage.TaobaoFuwuWitkeySyncModeling 淘宝交易 > 威客同步建模数据} */
|
|
1725
1745
|
on(topic: 'taobao_fuwu_WitkeySyncModeling', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoFuwuWitkeySyncModeling) => void): TaoMessageConsumer;
|
|
1726
1746
|
/** {@link IncomingMessage.TaobaoGlobalbuysSeamailOrderNotify 全球购跨境物流 > 跨境服务平台推送物流订单消息} */
|
|
1727
1747
|
on(topic: 'taobao_globalbuys_SeamailOrderNotify', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoGlobalbuysSeamailOrderNotify) => void): TaoMessageConsumer;
|
|
@@ -2019,8 +2039,12 @@ declare interface TaoEventsListener {
|
|
|
2019
2039
|
on(topic: 'tmall_fuwu_AnomalyRecourse', listener: (this: TaoMessageConsumer, message: IncomingMessage.TmallFuwuAnomalyRecourse) => void): TaoMessageConsumer;
|
|
2020
2040
|
/** {@link IncomingMessage.TmallFuwuAnomalyRecourseStatusUpdate 天猫服务 > 一键求助状态变更消息} */
|
|
2021
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;
|
|
2022
2044
|
/** {@link IncomingMessage.TmallFuwuLogisticsInfoMessage 天猫服务 > 服务供应链物流业务消息} */
|
|
2023
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;
|
|
2024
2048
|
/** {@link IncomingMessage.TmallFuwuServiceItemUpdate 天猫服务 > 服务商品信息变更消息} */
|
|
2025
2049
|
on(topic: 'tmall_fuwu_ServiceItemUpdate', listener: (this: TaoMessageConsumer, message: IncomingMessage.TmallFuwuServiceItemUpdate) => void): TaoMessageConsumer;
|
|
2026
2050
|
/** {@link IncomingMessage.TmallFuwuServiceMonitorMessage 天猫服务 > 服务预警消息} */
|
|
@@ -2131,6 +2155,8 @@ declare interface TaoEventsListener {
|
|
|
2131
2155
|
on(topic: 'alibaba_monitor', listener: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaMonitor) => void): TaoMessageConsumer;
|
|
2132
2156
|
/** {@link IncomingMessage.AlibabaMos} */
|
|
2133
2157
|
on(topic: 'alibaba_mos', listener: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaMos) => void): TaoMessageConsumer;
|
|
2158
|
+
/** {@link IncomingMessage.AlibabaMsfservice} */
|
|
2159
|
+
on(topic: 'alibaba_msfservice', listener: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaMsfservice) => void): TaoMessageConsumer;
|
|
2134
2160
|
/** {@link IncomingMessage.AlibabaNazca} */
|
|
2135
2161
|
on(topic: 'alibaba_nazca', listener: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaNazca) => void): TaoMessageConsumer;
|
|
2136
2162
|
/** {@link IncomingMessage.AlibabaNlife} */
|
|
@@ -2253,6 +2279,8 @@ declare interface TaoEventsListener {
|
|
|
2253
2279
|
on(topic: 'taobao_diandian', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoDiandian) => void): TaoMessageConsumer;
|
|
2254
2280
|
/** {@link IncomingMessage.TaobaoDpaas} */
|
|
2255
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;
|
|
2256
2284
|
/** {@link IncomingMessage.TaobaoEinvoice} */
|
|
2257
2285
|
on(topic: 'taobao_einvoice', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoEinvoice) => void): TaoMessageConsumer;
|
|
2258
2286
|
/** {@link IncomingMessage.TaobaoFenxiao} */
|
package/types/message.in.d.ts
CHANGED
|
@@ -161,6 +161,8 @@ declare namespace IncomingMessage {
|
|
|
161
161
|
type AlibabaMosSaleOrder = Message & { content?: MessageContent & { topic?: 'alibaba_mos_SaleOrder', content?: string | Alibaba.Mos.SaleOrder } };
|
|
162
162
|
/** {@link Alibaba.Mos.SaleOrderRefund 银泰开放平台消息 > 销售单退款消息} */
|
|
163
163
|
type AlibabaMosSaleOrderRefund = Message & { content?: MessageContent & { topic?: 'alibaba_mos_SaleOrderRefund', content?: string | Alibaba.Mos.SaleOrderRefund } };
|
|
164
|
+
/** {@link Alibaba.Msfservice.AuditCreate 天猫服务 > 喵师傅审核单通知} */
|
|
165
|
+
type AlibabaMsfserviceAuditCreate = Message & { content?: MessageContent & { topic?: 'alibaba_msfservice_AuditCreate', content?: string | Alibaba.Msfservice.AuditCreate } };
|
|
164
166
|
/** {@link Alibaba.Nazca.AbandonCert 网上法庭 > 作废存证消息接口} */
|
|
165
167
|
type AlibabaNazcaAbandonCert = Message & { content?: MessageContent & { topic?: 'alibaba_nazca_AbandonCert', content?: string | Alibaba.Nazca.AbandonCert } };
|
|
166
168
|
/** {@link Alibaba.Nazca.QueryChargeNum 网上法庭 > 查询收费数量} */
|
|
@@ -437,6 +439,8 @@ declare namespace IncomingMessage {
|
|
|
437
439
|
type TaobaoDpaasEquipmentCreate = Message & { content?: MessageContent & { topic?: 'taobao_dpaas_EquipmentCreate', content?: string | Taobao.Dpaas.EquipmentCreate } };
|
|
438
440
|
/** {@link Taobao.Dpaas.FaceToCustomerAck DPAAS > 会员标示消息推送} */
|
|
439
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 } };
|
|
440
444
|
/** {@link Taobao.Einvoice.BuyerConfirmSend 电子发票 > 买家确认发送到报销系统} */
|
|
441
445
|
type TaobaoEinvoiceBuyerConfirmSend = Message & { content?: MessageContent & { topic?: 'taobao_einvoice_BuyerConfirmSend', content?: string | Taobao.Einvoice.BuyerConfirmSend } };
|
|
442
446
|
/** {@link Taobao.Einvoice.InvoiceResultReturn 电子发票 > 电子发票开票回流} */
|
|
@@ -497,15 +501,17 @@ declare namespace IncomingMessage {
|
|
|
497
501
|
type TaobaoFliggyStdHotelModify = Message & { content?: MessageContent & { topic?: 'taobao_fliggy_StdHotelModify', content?: string | Taobao.Fliggy.StdHotelModify } };
|
|
498
502
|
/** {@link Taobao.Fliggy.StdRoomTypeModify 酒店签约中心消息 > 标准房型领域模型实体变更消息} */
|
|
499
503
|
type TaobaoFliggyStdRoomTypeModify = Message & { content?: MessageContent & { topic?: 'taobao_fliggy_StdRoomTypeModify', content?: string | Taobao.Fliggy.StdRoomTypeModify } };
|
|
500
|
-
/** {@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 淘宝交易 > 订单关闭消息} */
|
|
501
507
|
type TaobaoFuwuOrderClosed = Message & { content?: MessageContent & { topic?: 'taobao_fuwu_OrderClosed', content?: string | Taobao.Fuwu.OrderClosed } };
|
|
502
|
-
/** {@link Taobao.Fuwu.OrderCreated
|
|
508
|
+
/** {@link Taobao.Fuwu.OrderCreated 淘宝交易 > 订单创建消息} */
|
|
503
509
|
type TaobaoFuwuOrderCreated = Message & { content?: MessageContent & { topic?: 'taobao_fuwu_OrderCreated', content?: string | Taobao.Fuwu.OrderCreated } };
|
|
504
|
-
/** {@link Taobao.Fuwu.OrderPaid
|
|
510
|
+
/** {@link Taobao.Fuwu.OrderPaid 淘宝交易 > 订单支付消息} */
|
|
505
511
|
type TaobaoFuwuOrderPaid = Message & { content?: MessageContent & { topic?: 'taobao_fuwu_OrderPaid', content?: string | Taobao.Fuwu.OrderPaid } };
|
|
506
|
-
/** {@link Taobao.Fuwu.ServiceOpen
|
|
512
|
+
/** {@link Taobao.Fuwu.ServiceOpen 淘宝交易 > 服务开通消息} */
|
|
507
513
|
type TaobaoFuwuServiceOpen = Message & { content?: MessageContent & { topic?: 'taobao_fuwu_ServiceOpen', content?: string | Taobao.Fuwu.ServiceOpen } };
|
|
508
|
-
/** {@link Taobao.Fuwu.WitkeySyncModeling
|
|
514
|
+
/** {@link Taobao.Fuwu.WitkeySyncModeling 淘宝交易 > 威客同步建模数据} */
|
|
509
515
|
type TaobaoFuwuWitkeySyncModeling = Message & { content?: MessageContent & { topic?: 'taobao_fuwu_WitkeySyncModeling', content?: string | Taobao.Fuwu.WitkeySyncModeling } };
|
|
510
516
|
/** {@link Taobao.Globalbuys.SeamailOrderNotify 全球购跨境物流 > 跨境服务平台推送物流订单消息} */
|
|
511
517
|
type TaobaoGlobalbuysSeamailOrderNotify = Message & { content?: MessageContent & { topic?: 'taobao_globalbuys_SeamailOrderNotify', content?: string | Taobao.Globalbuys.SeamailOrderNotify } };
|
|
@@ -803,8 +809,12 @@ declare namespace IncomingMessage {
|
|
|
803
809
|
type TmallFuwuAnomalyRecourse = Message & { content?: MessageContent & { topic?: 'tmall_fuwu_AnomalyRecourse', content?: string | Tmall.Fuwu.AnomalyRecourse } };
|
|
804
810
|
/** {@link Tmall.Fuwu.AnomalyRecourseStatusUpdate 天猫服务 > 一键求助状态变更消息} */
|
|
805
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 } };
|
|
806
814
|
/** {@link Tmall.Fuwu.LogisticsInfoMessage 天猫服务 > 服务供应链物流业务消息} */
|
|
807
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 } };
|
|
808
818
|
/** {@link Tmall.Fuwu.ServiceItemUpdate 天猫服务 > 服务商品信息变更消息} */
|
|
809
819
|
type TmallFuwuServiceItemUpdate = Message & { content?: MessageContent & { topic?: 'tmall_fuwu_ServiceItemUpdate', content?: string | Tmall.Fuwu.ServiceItemUpdate } };
|
|
810
820
|
/** {@link Tmall.Fuwu.ServiceMonitorMessage 天猫服务 > 服务预警消息} */
|
|
@@ -1051,6 +1061,10 @@ declare namespace IncomingMessage {
|
|
|
1051
1061
|
*/
|
|
1052
1062
|
type AlibabaMos = AlibabaMosSaleOrder
|
|
1053
1063
|
| AlibabaMosSaleOrderRefund;
|
|
1064
|
+
/**
|
|
1065
|
+
* - {@link AlibabaMsfserviceAuditCreate 天猫服务 > 喵师傅审核单通知}
|
|
1066
|
+
*/
|
|
1067
|
+
type AlibabaMsfservice = AlibabaMsfserviceAuditCreate;
|
|
1054
1068
|
/**
|
|
1055
1069
|
* - {@link AlibabaNazcaAbandonCert 网上法庭 > 作废存证消息接口}
|
|
1056
1070
|
* - {@link AlibabaNazcaQueryChargeNum 网上法庭 > 查询收费数量}
|
|
@@ -1449,6 +1463,10 @@ declare namespace IncomingMessage {
|
|
|
1449
1463
|
| TaobaoDpaasCustomerUploadAck
|
|
1450
1464
|
| TaobaoDpaasEquipmentCreate
|
|
1451
1465
|
| TaobaoDpaasFaceToCustomerAck;
|
|
1466
|
+
/**
|
|
1467
|
+
* - {@link TaobaoDvExternal 阿里通信 > 淘宝数字虚拟外放}
|
|
1468
|
+
*/
|
|
1469
|
+
type TaobaoDv = TaobaoDvExternal;
|
|
1452
1470
|
/**
|
|
1453
1471
|
* - {@link TaobaoEinvoiceBuyerConfirmSend 电子发票 > 买家确认发送到报销系统}
|
|
1454
1472
|
* - {@link TaobaoEinvoiceInvoiceResultReturn 电子发票 > 电子发票开票回流}
|
|
@@ -1516,13 +1534,15 @@ declare namespace IncomingMessage {
|
|
|
1516
1534
|
| TaobaoFliggyStdHotelModify
|
|
1517
1535
|
| TaobaoFliggyStdRoomTypeModify;
|
|
1518
1536
|
/**
|
|
1519
|
-
* - {@link
|
|
1520
|
-
* - {@link
|
|
1521
|
-
* - {@link
|
|
1522
|
-
* - {@link
|
|
1523
|
-
* - {@link
|
|
1537
|
+
* - {@link TaobaoFuwuFundsChange 淘宝交易 > 以旧换新资金变更通知消息}
|
|
1538
|
+
* - {@link TaobaoFuwuOrderClosed 淘宝交易 > 订单关闭消息}
|
|
1539
|
+
* - {@link TaobaoFuwuOrderCreated 淘宝交易 > 订单创建消息}
|
|
1540
|
+
* - {@link TaobaoFuwuOrderPaid 淘宝交易 > 订单支付消息}
|
|
1541
|
+
* - {@link TaobaoFuwuServiceOpen 淘宝交易 > 服务开通消息}
|
|
1542
|
+
* - {@link TaobaoFuwuWitkeySyncModeling 淘宝交易 > 威客同步建模数据}
|
|
1524
1543
|
*/
|
|
1525
|
-
type TaobaoFuwu =
|
|
1544
|
+
type TaobaoFuwu = TaobaoFuwuFundsChange
|
|
1545
|
+
| TaobaoFuwuOrderClosed
|
|
1526
1546
|
| TaobaoFuwuOrderCreated
|
|
1527
1547
|
| TaobaoFuwuOrderPaid
|
|
1528
1548
|
| TaobaoFuwuServiceOpen
|
|
@@ -1894,7 +1914,9 @@ declare namespace IncomingMessage {
|
|
|
1894
1914
|
/**
|
|
1895
1915
|
* - {@link TmallFuwuAnomalyRecourse 天猫服务 > 天猫服务平台一键求助单消息队列}
|
|
1896
1916
|
* - {@link TmallFuwuAnomalyRecourseStatusUpdate 天猫服务 > 一键求助状态变更消息}
|
|
1917
|
+
* - {@link TmallFuwuElectricMaintenanceWorkCardComplete 天猫服务 > 天猫服务消电维修工单完结消息}
|
|
1897
1918
|
* - {@link TmallFuwuLogisticsInfoMessage 天猫服务 > 服务供应链物流业务消息}
|
|
1919
|
+
* - {@link TmallFuwuRateMessageTP 天猫服务 > 消费者评价成功top消息}
|
|
1898
1920
|
* - {@link TmallFuwuServiceItemUpdate 天猫服务 > 服务商品信息变更消息}
|
|
1899
1921
|
* - {@link TmallFuwuServiceMonitorMessage 天猫服务 > 服务预警消息}
|
|
1900
1922
|
* - {@link TmallFuwuServiceStoreRegister 天猫服务 > 服务网点注册消息}
|
|
@@ -1906,7 +1928,9 @@ declare namespace IncomingMessage {
|
|
|
1906
1928
|
*/
|
|
1907
1929
|
type TmallFuwu = TmallFuwuAnomalyRecourse
|
|
1908
1930
|
| TmallFuwuAnomalyRecourseStatusUpdate
|
|
1931
|
+
| TmallFuwuElectricMaintenanceWorkCardComplete
|
|
1909
1932
|
| TmallFuwuLogisticsInfoMessage
|
|
1933
|
+
| TmallFuwuRateMessageTP
|
|
1910
1934
|
| TmallFuwuServiceItemUpdate
|
|
1911
1935
|
| TmallFuwuServiceMonitorMessage
|
|
1912
1936
|
| TmallFuwuServiceStoreRegister
|
|
@@ -2028,6 +2052,7 @@ declare namespace IncomingMessage {
|
|
|
2028
2052
|
* - {@link AlibabaMmc}
|
|
2029
2053
|
* - {@link AlibabaMonitor}
|
|
2030
2054
|
* - {@link AlibabaMos}
|
|
2055
|
+
* - {@link AlibabaMsfservice}
|
|
2031
2056
|
* - {@link AlibabaNazca}
|
|
2032
2057
|
* - {@link AlibabaNlife}
|
|
2033
2058
|
* - {@link AlibabaServiceplatform}
|
|
@@ -2056,6 +2081,7 @@ declare namespace IncomingMessage {
|
|
|
2056
2081
|
| AlibabaMmc
|
|
2057
2082
|
| AlibabaMonitor
|
|
2058
2083
|
| AlibabaMos
|
|
2084
|
+
| AlibabaMsfservice
|
|
2059
2085
|
| AlibabaNazca
|
|
2060
2086
|
| AlibabaNlife
|
|
2061
2087
|
| AlibabaServiceplatform
|
|
@@ -2186,6 +2212,7 @@ declare namespace IncomingMessage {
|
|
|
2186
2212
|
* - {@link TaobaoDd}
|
|
2187
2213
|
* - {@link TaobaoDiandian}
|
|
2188
2214
|
* - {@link TaobaoDpaas}
|
|
2215
|
+
* - {@link TaobaoDv}
|
|
2189
2216
|
* - {@link TaobaoEinvoice}
|
|
2190
2217
|
* - {@link TaobaoFenxiao}
|
|
2191
2218
|
* - {@link TaobaoFliggy}
|
|
@@ -2235,6 +2262,7 @@ declare namespace IncomingMessage {
|
|
|
2235
2262
|
| TaobaoDd
|
|
2236
2263
|
| TaobaoDiandian
|
|
2237
2264
|
| TaobaoDpaas
|
|
2265
|
+
| TaobaoDv
|
|
2238
2266
|
| TaobaoEinvoice
|
|
2239
2267
|
| TaobaoFenxiao
|
|
2240
2268
|
| TaobaoFliggy
|
package/types/niaochao.d.ts
CHANGED
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 */
|