tmc.js 0.3.29 → 0.3.31

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 CHANGED
@@ -134,23 +134,23 @@ new Tmc('your_app_key', 'your_app_secret', { autoReplyConfirmation: false })
134
134
 
135
135
  ## 支持的TOPICS
136
136
 
137
- <details><summary>共计 83+ 类别,482+ 消息数</summary>
137
+ <details><summary>共计 84+ 类别,488+ 消息数</summary>
138
138
 
139
139
  | 类别 | 消息数 |
140
140
  | --- | --- |
141
- | 淘宝交易 | 23 |
141
+ | 淘宝交易 | 24 |
142
142
  | 淘宝退款 | 13 |
143
143
  | 淘宝商品 | 13 |
144
144
  | 淘宝分销 | 27 |
145
145
  | 淘宝点点 | 12 |
146
- | 淘宝火车票 | 5 |
146
+ | 淘宝火车票 | 6 |
147
147
  | 平台消息 | 9 |
148
148
  | 交易全链路 | 3 |
149
149
  | 淘宝机票 | 14 |
150
150
  | 导购平台 | 21 |
151
151
  | 淘宝汽车票 | 4 |
152
152
  | 服务市场 | 9 |
153
- | 天猫服务 | 24 |
153
+ | 天猫服务 | 26 |
154
154
  | 天猫美妆 | 2 |
155
155
  | 聚石塔 | 9 |
156
156
  | 淘宝物流 | 1 |
@@ -170,7 +170,7 @@ new Tmc('your_app_key', 'your_app_secret', { autoReplyConfirmation: false })
170
170
  | AE-交易 | 10 |
171
171
  | 五道口配送 | 5 |
172
172
  | 百川 | 2 |
173
- | 闲鱼 | 16 |
173
+ | 闲鱼 | 17 |
174
174
  | 闲鱼回收商消息 | 6 |
175
175
  | 零售通POS开放平台消息 | 4 |
176
176
  | DPAAS | 6 |
@@ -221,6 +221,7 @@ new Tmc('your_app_key', 'your_app_secret', { autoReplyConfirmation: false })
221
221
  | 蚂蚁采购 | 1 |
222
222
  | 阿里健康&一树-电商中台对接 | 2 |
223
223
  | 阿里健康-疫苗 | 2 |
224
+ | 智能应用 | 1 |
224
225
 
225
226
  </details>
226
227
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tmc.js",
3
- "version": "0.3.29",
3
+ "version": "0.3.31",
4
4
  "description": "Event driven and chained Taobao Message Channel(TMC) for NodeJS",
5
5
  "author": "James ZHANG",
6
6
  "license": "MIT",
@@ -1151,6 +1151,26 @@ declare namespace Alibaba.Msfservice {
1151
1151
  worker_name: string;
1152
1152
  }
1153
1153
 
1154
+ /** 喵师傅收费单消息通知 */
1155
+ interface ExtrafeeRecordCreate {
1156
+ /** 收费明细 */
1157
+ content_detail: string;
1158
+ /** 生成时间 */
1159
+ gmt_create: Date | number | string;
1160
+ /** 核销单id */
1161
+ identify_task_id: number;
1162
+ /** 总价 */
1163
+ price: string;
1164
+ /** 收费单id */
1165
+ record_id: string;
1166
+ /** 工单id */
1167
+ workcard_ids: string;
1168
+ /** 师傅id */
1169
+ worker_id: number;
1170
+ /** 师傅姓名 */
1171
+ worker_name: string;
1172
+ }
1173
+
1154
1174
  /** 催单消息 */
1155
1175
  interface ReminderCreate {
1156
1176
  /** 渠道(0:商家端 1消费者端) */
@@ -34,7 +34,7 @@ declare namespace Alitrip.Btrip {
34
34
  /** 阿里商旅企业超标审批单提交消息 */
35
35
  interface ExceedApplySubmit {
36
36
  /** 商旅审批单号 */
37
- apply_id: number;
37
+ readonly apply_id: number;
38
38
  /** 业务类型,3:超标审批,5:改签审批,6:退票审批 */
39
39
  biz_category: number;
40
40
  /** 第三方企业id */
@@ -180,6 +180,30 @@ declare namespace Alitrip.Train {
180
180
  /** 唯一标识uuid */
181
181
  uuid: string;
182
182
  }
183
+
184
+ /** 飞猪火车票风控消息 */
185
+ interface RiskNotify {
186
+ /** 12306账号,可能为手机号/邮箱/唯一用户名 */
187
+ accountName: string;
188
+ /** 唯一标识 */
189
+ id: string;
190
+ /** 12306用户ID */
191
+ outUserId: string;
192
+ /** 协议类型,app或pc,一般仅app */
193
+ protocol: string;
194
+ /** 风控码 */
195
+ riskCode: string;
196
+ /** 风控消息类型、MARK_RISK 和 CLEAR_RISK */
197
+ riskTag: string;
198
+ /** 对应的解风控动作 */
199
+ solveAction: string;
200
+ /** 提示信息,指导用户行为 */
201
+ tips: string;
202
+ /** 用户淘宝ID */
203
+ userId: number;
204
+ /** 12306唯一用户名 */
205
+ userUniqName: string;
206
+ }
183
207
  }
184
208
 
185
209
  /** 航旅度假交易 */
package/types/ascp.d.ts CHANGED
@@ -5,6 +5,6 @@ declare namespace Ascp.Insdustry {
5
5
  /** 取消原因 */
6
6
  reason: string;
7
7
  /** 服务单号 */
8
- wds_coordination_order_id: string;
8
+ readonly wds_coordination_order_id: string;
9
9
  }
10
10
  }
package/types/index.d.ts CHANGED
@@ -206,6 +206,8 @@ declare interface TaoTopicsDescriptor {
206
206
  alibaba_msd_SettlementBillDetail(fn: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaMsdSettlementBillDetail) => void): TaoMessageConsumer;
207
207
  /** {@link IncomingMessage.AlibabaMsfserviceAuditCreate 天猫服务 > 喵师傅审核单通知} */
208
208
  alibaba_msfservice_AuditCreate(fn: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaMsfserviceAuditCreate) => void): TaoMessageConsumer;
209
+ /** {@link IncomingMessage.AlibabaMsfserviceExtrafeeRecordCreate 天猫服务 > 喵师傅收费单消息通知} */
210
+ alibaba_msfservice_ExtrafeeRecordCreate(fn: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaMsfserviceExtrafeeRecordCreate) => void): TaoMessageConsumer;
209
211
  /** {@link IncomingMessage.AlibabaMsfserviceReminderCreate 天猫服务 > 催单消息} */
210
212
  alibaba_msfservice_ReminderCreate(fn: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaMsfserviceReminderCreate) => void): TaoMessageConsumer;
211
213
  /** {@link IncomingMessage.AlibabaNazcaAbandonCert 网上法庭 > 作废存证消息接口} */
@@ -348,6 +350,8 @@ declare interface TaoTopicsDescriptor {
348
350
  alitrip_ietrade_RefundMsg(fn: (this: TaoMessageConsumer, message: IncomingMessage.AlitripIetradeRefundMsg) => void): TaoMessageConsumer;
349
351
  /** {@link IncomingMessage.AlitripTrainAgentStopQuery 淘宝火车票 > 火车票车次状态变更消息} */
350
352
  alitrip_train_AgentStopQuery(fn: (this: TaoMessageConsumer, message: IncomingMessage.AlitripTrainAgentStopQuery) => void): TaoMessageConsumer;
353
+ /** {@link IncomingMessage.AlitripTrainRiskNotify 淘宝火车票 > 飞猪火车票风控消息} */
354
+ alitrip_train_RiskNotify(fn: (this: TaoMessageConsumer, message: IncomingMessage.AlitripTrainRiskNotify) => void): TaoMessageConsumer;
351
355
  /** {@link IncomingMessage.AlitripTravelOrderChanged 航旅度假交易 > 飞猪度假交易订单状态变更消息} */
352
356
  alitrip_travel_OrderChanged(fn: (this: TaoMessageConsumer, message: IncomingMessage.AlitripTravelOrderChanged) => void): TaoMessageConsumer;
353
357
  /** {@link IncomingMessage.AlitripTravelPersonChanged 航旅度假交易 > 出行人信息变更消息} */
@@ -566,6 +570,8 @@ declare interface TaoTopicsDescriptor {
566
570
  taobao_fuwu_OrderCreated(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoFuwuOrderCreated) => void): TaoMessageConsumer;
567
571
  /** {@link IncomingMessage.TaobaoFuwuOrderPaid 淘宝交易 > 订单支付消息} */
568
572
  taobao_fuwu_OrderPaid(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoFuwuOrderPaid) => void): TaoMessageConsumer;
573
+ /** {@link IncomingMessage.TaobaoFuwuRecycleFinalService 淘宝交易 > 以旧换新取送一体服务最终决策通知} */
574
+ taobao_fuwu_RecycleFinalService(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoFuwuRecycleFinalService) => void): TaoMessageConsumer;
569
575
  /** {@link IncomingMessage.TaobaoFuwuServiceOpen 淘宝交易 > 服务开通消息} */
570
576
  taobao_fuwu_ServiceOpen(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoFuwuServiceOpen) => void): TaoMessageConsumer;
571
577
  /** {@link IncomingMessage.TaobaoFuwuWitkeySyncModeling 淘宝交易 > 威客同步建模数据} */
@@ -738,6 +744,8 @@ declare interface TaoTopicsDescriptor {
738
744
  taobao_rhino_DeviceStatus(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoRhinoDeviceStatus) => void): TaoMessageConsumer;
739
745
  /** {@link IncomingMessage.TaobaoSmartappAppSubChange 平台消息 > 用户订阅变更消息} */
740
746
  taobao_smartapp_AppSubChange(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoSmartappAppSubChange) => void): TaoMessageConsumer;
747
+ /** {@link IncomingMessage.TaobaoSmartappDataSync 平台消息 > 智能应用服务登记数据变更消息} */
748
+ taobao_smartapp_DataSync(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoSmartappDataSync) => void): TaoMessageConsumer;
741
749
  /** {@link IncomingMessage.TaobaoTaeBaichuanAuctionChange 导购平台 > 商品信息变更} */
742
750
  taobao_tae_BaichuanAuctionChange(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoTaeBaichuanAuctionChange) => void): TaoMessageConsumer;
743
751
  /** {@link IncomingMessage.TaobaoTaeBaichuanTradeClosed 导购平台 > 交易关闭} */
@@ -888,6 +896,8 @@ declare interface TaoTopicsDescriptor {
888
896
  tmall_fuwu_AnomalyRecourseStatusUpdate(fn: (this: TaoMessageConsumer, message: IncomingMessage.TmallFuwuAnomalyRecourseStatusUpdate) => void): TaoMessageConsumer;
889
897
  /** {@link IncomingMessage.TmallFuwuElectricMaintenanceWorkCardComplete 天猫服务 > 天猫服务消电维修工单完结消息} */
890
898
  tmall_fuwu_ElectricMaintenanceWorkCardComplete(fn: (this: TaoMessageConsumer, message: IncomingMessage.TmallFuwuElectricMaintenanceWorkCardComplete) => void): TaoMessageConsumer;
899
+ /** {@link IncomingMessage.TmallFuwuElectricWarrantyCodeStatusUpdate 天猫服务 > 天猫服务消电保修码状态变更} */
900
+ tmall_fuwu_ElectricWarrantyCodeStatusUpdate(fn: (this: TaoMessageConsumer, message: IncomingMessage.TmallFuwuElectricWarrantyCodeStatusUpdate) => void): TaoMessageConsumer;
891
901
  /** {@link IncomingMessage.TmallFuwuHomeDecorationSupplyRuleUpdate 天猫服务 > 天猫服务家装优质供给规则变更} */
892
902
  tmall_fuwu_HomeDecorationSupplyRuleUpdate(fn: (this: TaoMessageConsumer, message: IncomingMessage.TmallFuwuHomeDecorationSupplyRuleUpdate) => void): TaoMessageConsumer;
893
903
  /** {@link IncomingMessage.TmallFuwuLogisticsInfoMessage 天猫服务 > 服务供应链物流业务消息} */
@@ -964,6 +974,8 @@ declare interface TaoTopicsDescriptor {
964
974
  xianyu_recycle_OrderStatusSync(fn: (this: TaoMessageConsumer, message: IncomingMessage.XianyuRecycleOrderStatusSync) => void): TaoMessageConsumer;
965
975
  /** {@link IncomingMessage.XianyuRecycleSpuModifySync 闲鱼 > 闲鱼回收SPU变更消息} */
966
976
  xianyu_recycle_SpuModifySync(fn: (this: TaoMessageConsumer, message: IncomingMessage.XianyuRecycleSpuModifySync) => void): TaoMessageConsumer;
977
+ /** {@link IncomingMessage.XianyuRegisterStatusChange 闲鱼 > 闲鱼SPU挂载上下线消息} */
978
+ xianyu_register_StatusChange(fn: (this: TaoMessageConsumer, message: IncomingMessage.XianyuRegisterStatusChange) => void): TaoMessageConsumer;
967
979
  /** {@link IncomingMessage.XianyuTemplateQuesChange 闲鱼 > 闲鱼问卷变更} */
968
980
  xianyu_template_QuesChange(fn: (this: TaoMessageConsumer, message: IncomingMessage.XianyuTemplateQuesChange) => void): TaoMessageConsumer;
969
981
  /** {@link IncomingMessage.XianyuTemplateStatusChange 闲鱼 > 闲鱼问卷状态变更消息} */
@@ -1244,6 +1256,8 @@ declare interface TaoTopicsDescriptor {
1244
1256
  xianyu_car(fn: (this: TaoMessageConsumer, message: IncomingMessage.XianyuCar) => void): TaoMessageConsumer;
1245
1257
  /** {@link IncomingMessage.XianyuRecycle} */
1246
1258
  xianyu_recycle(fn: (this: TaoMessageConsumer, message: IncomingMessage.XianyuRecycle) => void): TaoMessageConsumer;
1259
+ /** {@link IncomingMessage.XianyuRegister} */
1260
+ xianyu_register(fn: (this: TaoMessageConsumer, message: IncomingMessage.XianyuRegister) => void): TaoMessageConsumer;
1247
1261
  /** {@link IncomingMessage.XianyuTemplate} */
1248
1262
  xianyu_template(fn: (this: TaoMessageConsumer, message: IncomingMessage.XianyuTemplate) => void): TaoMessageConsumer;
1249
1263
  /** {@link IncomingMessage.XianyuTender} */
@@ -1445,6 +1459,8 @@ declare interface TaoEventsListener {
1445
1459
  on(topic: 'alibaba_msd_SettlementBillDetail', listener: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaMsdSettlementBillDetail) => void): TaoMessageConsumer;
1446
1460
  /** {@link IncomingMessage.AlibabaMsfserviceAuditCreate 天猫服务 > 喵师傅审核单通知} */
1447
1461
  on(topic: 'alibaba_msfservice_AuditCreate', listener: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaMsfserviceAuditCreate) => void): TaoMessageConsumer;
1462
+ /** {@link IncomingMessage.AlibabaMsfserviceExtrafeeRecordCreate 天猫服务 > 喵师傅收费单消息通知} */
1463
+ on(topic: 'alibaba_msfservice_ExtrafeeRecordCreate', listener: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaMsfserviceExtrafeeRecordCreate) => void): TaoMessageConsumer;
1448
1464
  /** {@link IncomingMessage.AlibabaMsfserviceReminderCreate 天猫服务 > 催单消息} */
1449
1465
  on(topic: 'alibaba_msfservice_ReminderCreate', listener: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaMsfserviceReminderCreate) => void): TaoMessageConsumer;
1450
1466
  /** {@link IncomingMessage.AlibabaNazcaAbandonCert 网上法庭 > 作废存证消息接口} */
@@ -1587,6 +1603,8 @@ declare interface TaoEventsListener {
1587
1603
  on(topic: 'alitrip_ietrade_RefundMsg', listener: (this: TaoMessageConsumer, message: IncomingMessage.AlitripIetradeRefundMsg) => void): TaoMessageConsumer;
1588
1604
  /** {@link IncomingMessage.AlitripTrainAgentStopQuery 淘宝火车票 > 火车票车次状态变更消息} */
1589
1605
  on(topic: 'alitrip_train_AgentStopQuery', listener: (this: TaoMessageConsumer, message: IncomingMessage.AlitripTrainAgentStopQuery) => void): TaoMessageConsumer;
1606
+ /** {@link IncomingMessage.AlitripTrainRiskNotify 淘宝火车票 > 飞猪火车票风控消息} */
1607
+ on(topic: 'alitrip_train_RiskNotify', listener: (this: TaoMessageConsumer, message: IncomingMessage.AlitripTrainRiskNotify) => void): TaoMessageConsumer;
1590
1608
  /** {@link IncomingMessage.AlitripTravelOrderChanged 航旅度假交易 > 飞猪度假交易订单状态变更消息} */
1591
1609
  on(topic: 'alitrip_travel_OrderChanged', listener: (this: TaoMessageConsumer, message: IncomingMessage.AlitripTravelOrderChanged) => void): TaoMessageConsumer;
1592
1610
  /** {@link IncomingMessage.AlitripTravelPersonChanged 航旅度假交易 > 出行人信息变更消息} */
@@ -1805,6 +1823,8 @@ declare interface TaoEventsListener {
1805
1823
  on(topic: 'taobao_fuwu_OrderCreated', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoFuwuOrderCreated) => void): TaoMessageConsumer;
1806
1824
  /** {@link IncomingMessage.TaobaoFuwuOrderPaid 淘宝交易 > 订单支付消息} */
1807
1825
  on(topic: 'taobao_fuwu_OrderPaid', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoFuwuOrderPaid) => void): TaoMessageConsumer;
1826
+ /** {@link IncomingMessage.TaobaoFuwuRecycleFinalService 淘宝交易 > 以旧换新取送一体服务最终决策通知} */
1827
+ on(topic: 'taobao_fuwu_RecycleFinalService', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoFuwuRecycleFinalService) => void): TaoMessageConsumer;
1808
1828
  /** {@link IncomingMessage.TaobaoFuwuServiceOpen 淘宝交易 > 服务开通消息} */
1809
1829
  on(topic: 'taobao_fuwu_ServiceOpen', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoFuwuServiceOpen) => void): TaoMessageConsumer;
1810
1830
  /** {@link IncomingMessage.TaobaoFuwuWitkeySyncModeling 淘宝交易 > 威客同步建模数据} */
@@ -1977,6 +1997,8 @@ declare interface TaoEventsListener {
1977
1997
  on(topic: 'taobao_rhino_DeviceStatus', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoRhinoDeviceStatus) => void): TaoMessageConsumer;
1978
1998
  /** {@link IncomingMessage.TaobaoSmartappAppSubChange 平台消息 > 用户订阅变更消息} */
1979
1999
  on(topic: 'taobao_smartapp_AppSubChange', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoSmartappAppSubChange) => void): TaoMessageConsumer;
2000
+ /** {@link IncomingMessage.TaobaoSmartappDataSync 平台消息 > 智能应用服务登记数据变更消息} */
2001
+ on(topic: 'taobao_smartapp_DataSync', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoSmartappDataSync) => void): TaoMessageConsumer;
1980
2002
  /** {@link IncomingMessage.TaobaoTaeBaichuanAuctionChange 导购平台 > 商品信息变更} */
1981
2003
  on(topic: 'taobao_tae_BaichuanAuctionChange', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoTaeBaichuanAuctionChange) => void): TaoMessageConsumer;
1982
2004
  /** {@link IncomingMessage.TaobaoTaeBaichuanTradeClosed 导购平台 > 交易关闭} */
@@ -2127,6 +2149,8 @@ declare interface TaoEventsListener {
2127
2149
  on(topic: 'tmall_fuwu_AnomalyRecourseStatusUpdate', listener: (this: TaoMessageConsumer, message: IncomingMessage.TmallFuwuAnomalyRecourseStatusUpdate) => void): TaoMessageConsumer;
2128
2150
  /** {@link IncomingMessage.TmallFuwuElectricMaintenanceWorkCardComplete 天猫服务 > 天猫服务消电维修工单完结消息} */
2129
2151
  on(topic: 'tmall_fuwu_ElectricMaintenanceWorkCardComplete', listener: (this: TaoMessageConsumer, message: IncomingMessage.TmallFuwuElectricMaintenanceWorkCardComplete) => void): TaoMessageConsumer;
2152
+ /** {@link IncomingMessage.TmallFuwuElectricWarrantyCodeStatusUpdate 天猫服务 > 天猫服务消电保修码状态变更} */
2153
+ on(topic: 'tmall_fuwu_ElectricWarrantyCodeStatusUpdate', listener: (this: TaoMessageConsumer, message: IncomingMessage.TmallFuwuElectricWarrantyCodeStatusUpdate) => void): TaoMessageConsumer;
2130
2154
  /** {@link IncomingMessage.TmallFuwuHomeDecorationSupplyRuleUpdate 天猫服务 > 天猫服务家装优质供给规则变更} */
2131
2155
  on(topic: 'tmall_fuwu_HomeDecorationSupplyRuleUpdate', listener: (this: TaoMessageConsumer, message: IncomingMessage.TmallFuwuHomeDecorationSupplyRuleUpdate) => void): TaoMessageConsumer;
2132
2156
  /** {@link IncomingMessage.TmallFuwuLogisticsInfoMessage 天猫服务 > 服务供应链物流业务消息} */
@@ -2203,6 +2227,8 @@ declare interface TaoEventsListener {
2203
2227
  on(topic: 'xianyu_recycle_OrderStatusSync', listener: (this: TaoMessageConsumer, message: IncomingMessage.XianyuRecycleOrderStatusSync) => void): TaoMessageConsumer;
2204
2228
  /** {@link IncomingMessage.XianyuRecycleSpuModifySync 闲鱼 > 闲鱼回收SPU变更消息} */
2205
2229
  on(topic: 'xianyu_recycle_SpuModifySync', listener: (this: TaoMessageConsumer, message: IncomingMessage.XianyuRecycleSpuModifySync) => void): TaoMessageConsumer;
2230
+ /** {@link IncomingMessage.XianyuRegisterStatusChange 闲鱼 > 闲鱼SPU挂载上下线消息} */
2231
+ on(topic: 'xianyu_register_StatusChange', listener: (this: TaoMessageConsumer, message: IncomingMessage.XianyuRegisterStatusChange) => void): TaoMessageConsumer;
2206
2232
  /** {@link IncomingMessage.XianyuTemplateQuesChange 闲鱼 > 闲鱼问卷变更} */
2207
2233
  on(topic: 'xianyu_template_QuesChange', listener: (this: TaoMessageConsumer, message: IncomingMessage.XianyuTemplateQuesChange) => void): TaoMessageConsumer;
2208
2234
  /** {@link IncomingMessage.XianyuTemplateStatusChange 闲鱼 > 闲鱼问卷状态变更消息} */
@@ -2483,6 +2509,8 @@ declare interface TaoEventsListener {
2483
2509
  on(topic: 'xianyu_car', listener: (this: TaoMessageConsumer, message: IncomingMessage.XianyuCar) => void): TaoMessageConsumer;
2484
2510
  /** {@link IncomingMessage.XianyuRecycle} */
2485
2511
  on(topic: 'xianyu_recycle', listener: (this: TaoMessageConsumer, message: IncomingMessage.XianyuRecycle) => void): TaoMessageConsumer;
2512
+ /** {@link IncomingMessage.XianyuRegister} */
2513
+ on(topic: 'xianyu_register', listener: (this: TaoMessageConsumer, message: IncomingMessage.XianyuRegister) => void): TaoMessageConsumer;
2486
2514
  /** {@link IncomingMessage.XianyuTemplate} */
2487
2515
  on(topic: 'xianyu_template', listener: (this: TaoMessageConsumer, message: IncomingMessage.XianyuTemplate) => void): TaoMessageConsumer;
2488
2516
  /** {@link IncomingMessage.XianyuTender} */
@@ -167,6 +167,8 @@ declare namespace IncomingMessage {
167
167
  type AlibabaMsdSettlementBillDetail = Message & { content?: MessageContent & { topic?: 'alibaba_msd_SettlementBillDetail', content?: string | Alibaba.Msd.SettlementBillDetail } };
168
168
  /** {@link Alibaba.Msfservice.AuditCreate 天猫服务 > 喵师傅审核单通知} */
169
169
  type AlibabaMsfserviceAuditCreate = Message & { content?: MessageContent & { topic?: 'alibaba_msfservice_AuditCreate', content?: string | Alibaba.Msfservice.AuditCreate } };
170
+ /** {@link Alibaba.Msfservice.ExtrafeeRecordCreate 天猫服务 > 喵师傅收费单消息通知} */
171
+ type AlibabaMsfserviceExtrafeeRecordCreate = Message & { content?: MessageContent & { topic?: 'alibaba_msfservice_ExtrafeeRecordCreate', content?: string | Alibaba.Msfservice.ExtrafeeRecordCreate } };
170
172
  /** {@link Alibaba.Msfservice.ReminderCreate 天猫服务 > 催单消息} */
171
173
  type AlibabaMsfserviceReminderCreate = Message & { content?: MessageContent & { topic?: 'alibaba_msfservice_ReminderCreate', content?: string | Alibaba.Msfservice.ReminderCreate } };
172
174
  /** {@link Alibaba.Nazca.AbandonCert 网上法庭 > 作废存证消息接口} */
@@ -309,6 +311,8 @@ declare namespace IncomingMessage {
309
311
  type AlitripIetradeRefundMsg = Message & { content?: MessageContent & { topic?: 'alitrip_ietrade_RefundMsg', content?: string | Alitrip.Ietrade.RefundMsg } };
310
312
  /** {@link Alitrip.Train.AgentStopQuery 淘宝火车票 > 火车票车次状态变更消息} */
311
313
  type AlitripTrainAgentStopQuery = Message & { content?: MessageContent & { topic?: 'alitrip_train_AgentStopQuery', content?: string | Alitrip.Train.AgentStopQuery } };
314
+ /** {@link Alitrip.Train.RiskNotify 淘宝火车票 > 飞猪火车票风控消息} */
315
+ type AlitripTrainRiskNotify = Message & { content?: MessageContent & { topic?: 'alitrip_train_RiskNotify', content?: string | Alitrip.Train.RiskNotify } };
312
316
  /** {@link Alitrip.Travel.OrderChanged 航旅度假交易 > 飞猪度假交易订单状态变更消息} */
313
317
  type AlitripTravelOrderChanged = Message & { content?: MessageContent & { topic?: 'alitrip_travel_OrderChanged', content?: string | Alitrip.Travel.OrderChanged } };
314
318
  /** {@link Alitrip.Travel.PersonChanged 航旅度假交易 > 出行人信息变更消息} */
@@ -527,6 +531,8 @@ declare namespace IncomingMessage {
527
531
  type TaobaoFuwuOrderCreated = Message & { content?: MessageContent & { topic?: 'taobao_fuwu_OrderCreated', content?: string | Taobao.Fuwu.OrderCreated } };
528
532
  /** {@link Taobao.Fuwu.OrderPaid 淘宝交易 > 订单支付消息} */
529
533
  type TaobaoFuwuOrderPaid = Message & { content?: MessageContent & { topic?: 'taobao_fuwu_OrderPaid', content?: string | Taobao.Fuwu.OrderPaid } };
534
+ /** {@link Taobao.Fuwu.RecycleFinalService 淘宝交易 > 以旧换新取送一体服务最终决策通知} */
535
+ type TaobaoFuwuRecycleFinalService = Message & { content?: MessageContent & { topic?: 'taobao_fuwu_RecycleFinalService', content?: string | Taobao.Fuwu.RecycleFinalService } };
530
536
  /** {@link Taobao.Fuwu.ServiceOpen 淘宝交易 > 服务开通消息} */
531
537
  type TaobaoFuwuServiceOpen = Message & { content?: MessageContent & { topic?: 'taobao_fuwu_ServiceOpen', content?: string | Taobao.Fuwu.ServiceOpen } };
532
538
  /** {@link Taobao.Fuwu.WitkeySyncModeling 淘宝交易 > 威客同步建模数据} */
@@ -699,6 +705,8 @@ declare namespace IncomingMessage {
699
705
  type TaobaoRhinoDeviceStatus = Message & { content?: MessageContent & { topic?: 'taobao_rhino_DeviceStatus', content?: string | Taobao.Rhino.DeviceStatus } };
700
706
  /** {@link Taobao.Smartapp.AppSubChange 平台消息 > 用户订阅变更消息} */
701
707
  type TaobaoSmartappAppSubChange = Message & { content?: MessageContent & { topic?: 'taobao_smartapp_AppSubChange', content?: string | Taobao.Smartapp.AppSubChange } };
708
+ /** {@link Taobao.Smartapp.DataSync 平台消息 > 智能应用服务登记数据变更消息} */
709
+ type TaobaoSmartappDataSync = Message & { content?: MessageContent & { topic?: 'taobao_smartapp_DataSync', content?: string | Taobao.Smartapp.DataSync } };
702
710
  /** {@link Taobao.Tae.BaichuanAuctionChange 导购平台 > 商品信息变更} */
703
711
  type TaobaoTaeBaichuanAuctionChange = Message & { content?: MessageContent & { topic?: 'taobao_tae_BaichuanAuctionChange', content?: string | Taobao.Tae.BaichuanAuctionChange } };
704
712
  /** {@link Taobao.Tae.BaichuanTradeClosed 导购平台 > 交易关闭} */
@@ -849,6 +857,8 @@ declare namespace IncomingMessage {
849
857
  type TmallFuwuAnomalyRecourseStatusUpdate = Message & { content?: MessageContent & { topic?: 'tmall_fuwu_AnomalyRecourseStatusUpdate', content?: string | Tmall.Fuwu.AnomalyRecourseStatusUpdate } };
850
858
  /** {@link Tmall.Fuwu.ElectricMaintenanceWorkCardComplete 天猫服务 > 天猫服务消电维修工单完结消息} */
851
859
  type TmallFuwuElectricMaintenanceWorkCardComplete = Message & { content?: MessageContent & { topic?: 'tmall_fuwu_ElectricMaintenanceWorkCardComplete', content?: string | Tmall.Fuwu.ElectricMaintenanceWorkCardComplete } };
860
+ /** {@link Tmall.Fuwu.ElectricWarrantyCodeStatusUpdate 天猫服务 > 天猫服务消电保修码状态变更} */
861
+ type TmallFuwuElectricWarrantyCodeStatusUpdate = Message & { content?: MessageContent & { topic?: 'tmall_fuwu_ElectricWarrantyCodeStatusUpdate', content?: string | Tmall.Fuwu.ElectricWarrantyCodeStatusUpdate } };
852
862
  /** {@link Tmall.Fuwu.HomeDecorationSupplyRuleUpdate 天猫服务 > 天猫服务家装优质供给规则变更} */
853
863
  type TmallFuwuHomeDecorationSupplyRuleUpdate = Message & { content?: MessageContent & { topic?: 'tmall_fuwu_HomeDecorationSupplyRuleUpdate', content?: string | Tmall.Fuwu.HomeDecorationSupplyRuleUpdate } };
854
864
  /** {@link Tmall.Fuwu.LogisticsInfoMessage 天猫服务 > 服务供应链物流业务消息} */
@@ -925,6 +935,8 @@ declare namespace IncomingMessage {
925
935
  type XianyuRecycleOrderStatusSync = Message & { content?: MessageContent & { topic?: 'xianyu_recycle_OrderStatusSync', content?: string | Xianyu.Recycle.OrderStatusSync } };
926
936
  /** {@link Xianyu.Recycle.SpuModifySync 闲鱼 > 闲鱼回收SPU变更消息} */
927
937
  type XianyuRecycleSpuModifySync = Message & { content?: MessageContent & { topic?: 'xianyu_recycle_SpuModifySync', content?: string | Xianyu.Recycle.SpuModifySync } };
938
+ /** {@link Xianyu.Register.StatusChange 闲鱼 > 闲鱼SPU挂载上下线消息} */
939
+ type XianyuRegisterStatusChange = Message & { content?: MessageContent & { topic?: 'xianyu_register_StatusChange', content?: string | Xianyu.Register.StatusChange } };
928
940
  /** {@link Xianyu.Template.QuesChange 闲鱼 > 闲鱼问卷变更} */
929
941
  type XianyuTemplateQuesChange = Message & { content?: MessageContent & { topic?: 'xianyu_template_QuesChange', content?: string | Xianyu.Template.QuesChange } };
930
942
  /** {@link Xianyu.Template.StatusChange 闲鱼 > 闲鱼问卷状态变更消息} */
@@ -1109,9 +1121,11 @@ declare namespace IncomingMessage {
1109
1121
  type AlibabaMsd = AlibabaMsdSettlementBillDetail;
1110
1122
  /**
1111
1123
  * - {@link AlibabaMsfserviceAuditCreate 天猫服务 > 喵师傅审核单通知}
1124
+ * - {@link AlibabaMsfserviceExtrafeeRecordCreate 天猫服务 > 喵师傅收费单消息通知}
1112
1125
  * - {@link AlibabaMsfserviceReminderCreate 天猫服务 > 催单消息}
1113
1126
  */
1114
1127
  type AlibabaMsfservice = AlibabaMsfserviceAuditCreate
1128
+ | AlibabaMsfserviceExtrafeeRecordCreate
1115
1129
  | AlibabaMsfserviceReminderCreate;
1116
1130
  /**
1117
1131
  * - {@link AlibabaNazcaAbandonCert 网上法庭 > 作废存证消息接口}
@@ -1299,8 +1313,10 @@ declare namespace IncomingMessage {
1299
1313
  | AlitripIetradeRefundMsg;
1300
1314
  /**
1301
1315
  * - {@link AlitripTrainAgentStopQuery 淘宝火车票 > 火车票车次状态变更消息}
1316
+ * - {@link AlitripTrainRiskNotify 淘宝火车票 > 飞猪火车票风控消息}
1302
1317
  */
1303
- type AlitripTrain = AlitripTrainAgentStopQuery;
1318
+ type AlitripTrain = AlitripTrainAgentStopQuery
1319
+ | AlitripTrainRiskNotify;
1304
1320
  /**
1305
1321
  * - {@link AlitripTravelOrderChanged 航旅度假交易 > 飞猪度假交易订单状态变更消息}
1306
1322
  * - {@link AlitripTravelPersonChanged 航旅度假交易 > 出行人信息变更消息}
@@ -1602,6 +1618,7 @@ declare namespace IncomingMessage {
1602
1618
  * - {@link TaobaoFuwuOrderClosed 淘宝交易 > 订单关闭消息}
1603
1619
  * - {@link TaobaoFuwuOrderCreated 淘宝交易 > 订单创建消息}
1604
1620
  * - {@link TaobaoFuwuOrderPaid 淘宝交易 > 订单支付消息}
1621
+ * - {@link TaobaoFuwuRecycleFinalService 淘宝交易 > 以旧换新取送一体服务最终决策通知}
1605
1622
  * - {@link TaobaoFuwuServiceOpen 淘宝交易 > 服务开通消息}
1606
1623
  * - {@link TaobaoFuwuWitkeySyncModeling 淘宝交易 > 威客同步建模数据}
1607
1624
  */
@@ -1609,6 +1626,7 @@ declare namespace IncomingMessage {
1609
1626
  | TaobaoFuwuOrderClosed
1610
1627
  | TaobaoFuwuOrderCreated
1611
1628
  | TaobaoFuwuOrderPaid
1629
+ | TaobaoFuwuRecycleFinalService
1612
1630
  | TaobaoFuwuServiceOpen
1613
1631
  | TaobaoFuwuWitkeySyncModeling;
1614
1632
  /**
@@ -1823,8 +1841,10 @@ declare namespace IncomingMessage {
1823
1841
  type TaobaoRhino = TaobaoRhinoDeviceStatus;
1824
1842
  /**
1825
1843
  * - {@link TaobaoSmartappAppSubChange 平台消息 > 用户订阅变更消息}
1844
+ * - {@link TaobaoSmartappDataSync 平台消息 > 智能应用服务登记数据变更消息}
1826
1845
  */
1827
- type TaobaoSmartapp = TaobaoSmartappAppSubChange;
1846
+ type TaobaoSmartapp = TaobaoSmartappAppSubChange
1847
+ | TaobaoSmartappDataSync;
1828
1848
  /**
1829
1849
  * - {@link TaobaoTaeBaichuanAuctionChange 导购平台 > 商品信息变更}
1830
1850
  * - {@link TaobaoTaeBaichuanTradeClosed 导购平台 > 交易关闭}
@@ -2001,6 +2021,7 @@ declare namespace IncomingMessage {
2001
2021
  * - {@link TmallFuwuAnomalyRecourse 天猫服务 > 天猫服务平台一键求助单消息队列}
2002
2022
  * - {@link TmallFuwuAnomalyRecourseStatusUpdate 天猫服务 > 一键求助状态变更消息}
2003
2023
  * - {@link TmallFuwuElectricMaintenanceWorkCardComplete 天猫服务 > 天猫服务消电维修工单完结消息}
2024
+ * - {@link TmallFuwuElectricWarrantyCodeStatusUpdate 天猫服务 > 天猫服务消电保修码状态变更}
2004
2025
  * - {@link TmallFuwuHomeDecorationSupplyRuleUpdate 天猫服务 > 天猫服务家装优质供给规则变更}
2005
2026
  * - {@link TmallFuwuLogisticsInfoMessage 天猫服务 > 服务供应链物流业务消息}
2006
2027
  * - {@link TmallFuwuRateMessageTP 天猫服务 > 消费者评价成功top消息}
@@ -2016,6 +2037,7 @@ declare namespace IncomingMessage {
2016
2037
  type TmallFuwu = TmallFuwuAnomalyRecourse
2017
2038
  | TmallFuwuAnomalyRecourseStatusUpdate
2018
2039
  | TmallFuwuElectricMaintenanceWorkCardComplete
2040
+ | TmallFuwuElectricWarrantyCodeStatusUpdate
2019
2041
  | TmallFuwuHomeDecorationSupplyRuleUpdate
2020
2042
  | TmallFuwuLogisticsInfoMessage
2021
2043
  | TmallFuwuRateMessageTP
@@ -2105,6 +2127,10 @@ declare namespace IncomingMessage {
2105
2127
  */
2106
2128
  type XianyuRecycle = XianyuRecycleOrderStatusSync
2107
2129
  | XianyuRecycleSpuModifySync;
2130
+ /**
2131
+ * - {@link XianyuRegisterStatusChange 闲鱼 > 闲鱼SPU挂载上下线消息}
2132
+ */
2133
+ type XianyuRegister = XianyuRegisterStatusChange;
2108
2134
  /**
2109
2135
  * - {@link XianyuTemplateQuesChange 闲鱼 > 闲鱼问卷变更}
2110
2136
  * - {@link XianyuTemplateStatusChange 闲鱼 > 闲鱼问卷状态变更消息}
@@ -2432,6 +2458,7 @@ declare namespace IncomingMessage {
2432
2458
  * - {@link XianyuAppraise}
2433
2459
  * - {@link XianyuCar}
2434
2460
  * - {@link XianyuRecycle}
2461
+ * - {@link XianyuRegister}
2435
2462
  * - {@link XianyuTemplate}
2436
2463
  * - {@link XianyuTender}
2437
2464
  */
@@ -2439,6 +2466,7 @@ declare namespace IncomingMessage {
2439
2466
  | XianyuAppraise
2440
2467
  | XianyuCar
2441
2468
  | XianyuRecycle
2469
+ | XianyuRegister
2442
2470
  | XianyuTemplate
2443
2471
  | XianyuTender;
2444
2472
  /**
package/types/taobao.d.ts CHANGED
@@ -843,6 +843,14 @@ declare namespace Taobao.Fuwu {
843
843
  version_no?: number;
844
844
  }
845
845
 
846
+ /** 以旧换新取送一体服务最终决策通知 */
847
+ interface RecycleFinalService {
848
+ /** 是否取送一体,1表示取送一体,0表示非取送一体 */
849
+ old_and_new_together: string;
850
+ /** 回收单ID */
851
+ recycle_order_id: string;
852
+ }
853
+
846
854
  /** 服务开通消息 */
847
855
  interface ServiceOpen {
848
856
  /** 应用收费代码,从服务商后台(i.fuwu.taobao.com)-收费管理-收费项目列表 能够获得该应用的收费代码 */
@@ -2303,6 +2311,22 @@ declare namespace Taobao.Smartapp {
2303
2311
  /** 订阅状态,ON:开启 ,OFF:关闭 */
2304
2312
  status: string;
2305
2313
  }
2314
+
2315
+ /** 智能应用服务登记数据变更消息 */
2316
+ interface DataSync {
2317
+ /** 智能应用ID */
2318
+ app_id: number;
2319
+ /** 操作类型,包含INSERT、UPDATE、DELETE */
2320
+ operation_type: string;
2321
+ /** 表记录ID */
2322
+ record_id: string;
2323
+ /** 表id */
2324
+ table_id: string;
2325
+ /** 表中文名称 */
2326
+ table_name: string;
2327
+ /** 时间戳 */
2328
+ timestamp: number;
2329
+ }
2306
2330
  }
2307
2331
 
2308
2332
  /** 导购平台 */
package/types/tmall.d.ts CHANGED
@@ -106,6 +106,16 @@ declare namespace Tmall.Fuwu {
106
106
  workcard_id: string;
107
107
  }
108
108
 
109
+ /** 天猫服务消电保修码状态变更 */
110
+ interface ElectricWarrantyCodeStatusUpdate {
111
+ /** 保修码OSS文件名 */
112
+ oss_file_name: string;
113
+ /** 保修码OSS文件下载链接 */
114
+ oss_file_url: string;
115
+ /** 保修码状态 */
116
+ status: string;
117
+ }
118
+
109
119
  /** 天猫服务家装优质供给规则变更 */
110
120
  interface HomeDecorationSupplyRuleUpdate {
111
121
  /** 叶子类目名称 */
package/types/xianyu.d.ts CHANGED
@@ -140,6 +140,21 @@ declare namespace Xianyu.Recycle {
140
140
  }
141
141
  }
142
142
 
143
+ /** 闲鱼 */
144
+ declare namespace Xianyu.Register {
145
+ /** 闲鱼SPU挂载上下线消息 */
146
+ interface StatusChange {
147
+ /** 业务英文编码,如HS-回收,BM-帮卖 */
148
+ pd_code: string;
149
+ /** 场景,如3C、3C_TENDER、BULKS */
150
+ scene_type: string;
151
+ /** spuId */
152
+ spu_id: string;
153
+ /** 状态英文编码,OFFLINE-下线,ONLINE-上线 */
154
+ status: string;
155
+ }
156
+ }
157
+
143
158
  /** 闲鱼 */
144
159
  declare namespace Xianyu.Template {
145
160
  /** 闲鱼问卷变更 */