tmc.js 0.3.30 → 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 +5 -4
- package/package.json +1 -1
- package/types/alibaba.d.ts +20 -0
- package/types/alitrip.d.ts +25 -1
- package/types/ascp.d.ts +1 -1
- package/types/index.d.ts +24 -0
- package/types/message.in.d.ts +26 -2
- package/types/taobao.d.ts +16 -0
- package/types/tmall.d.ts +10 -0
- package/types/xianyu.d.ts +15 -0
package/README.md
CHANGED
|
@@ -134,7 +134,7 @@ new Tmc('your_app_key', 'your_app_secret', { autoReplyConfirmation: false })
|
|
|
134
134
|
|
|
135
135
|
## 支持的TOPICS
|
|
136
136
|
|
|
137
|
-
<details><summary>共计
|
|
137
|
+
<details><summary>共计 84+ 类别,488+ 消息数</summary>
|
|
138
138
|
|
|
139
139
|
| 类别 | 消息数 |
|
|
140
140
|
| --- | --- |
|
|
@@ -143,14 +143,14 @@ new Tmc('your_app_key', 'your_app_secret', { autoReplyConfirmation: false })
|
|
|
143
143
|
| 淘宝商品 | 13 |
|
|
144
144
|
| 淘宝分销 | 27 |
|
|
145
145
|
| 淘宝点点 | 12 |
|
|
146
|
-
| 淘宝火车票 |
|
|
146
|
+
| 淘宝火车票 | 6 |
|
|
147
147
|
| 平台消息 | 9 |
|
|
148
148
|
| 交易全链路 | 3 |
|
|
149
149
|
| 淘宝机票 | 14 |
|
|
150
150
|
| 导购平台 | 21 |
|
|
151
151
|
| 淘宝汽车票 | 4 |
|
|
152
152
|
| 服务市场 | 9 |
|
|
153
|
-
| 天猫服务 |
|
|
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
|
-
| 闲鱼 |
|
|
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
package/types/alibaba.d.ts
CHANGED
|
@@ -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消费者端) */
|
package/types/alitrip.d.ts
CHANGED
|
@@ -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
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 航旅度假交易 > 出行人信息变更消息} */
|
|
@@ -740,6 +744,8 @@ declare interface TaoTopicsDescriptor {
|
|
|
740
744
|
taobao_rhino_DeviceStatus(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoRhinoDeviceStatus) => void): TaoMessageConsumer;
|
|
741
745
|
/** {@link IncomingMessage.TaobaoSmartappAppSubChange 平台消息 > 用户订阅变更消息} */
|
|
742
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;
|
|
743
749
|
/** {@link IncomingMessage.TaobaoTaeBaichuanAuctionChange 导购平台 > 商品信息变更} */
|
|
744
750
|
taobao_tae_BaichuanAuctionChange(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoTaeBaichuanAuctionChange) => void): TaoMessageConsumer;
|
|
745
751
|
/** {@link IncomingMessage.TaobaoTaeBaichuanTradeClosed 导购平台 > 交易关闭} */
|
|
@@ -890,6 +896,8 @@ declare interface TaoTopicsDescriptor {
|
|
|
890
896
|
tmall_fuwu_AnomalyRecourseStatusUpdate(fn: (this: TaoMessageConsumer, message: IncomingMessage.TmallFuwuAnomalyRecourseStatusUpdate) => void): TaoMessageConsumer;
|
|
891
897
|
/** {@link IncomingMessage.TmallFuwuElectricMaintenanceWorkCardComplete 天猫服务 > 天猫服务消电维修工单完结消息} */
|
|
892
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;
|
|
893
901
|
/** {@link IncomingMessage.TmallFuwuHomeDecorationSupplyRuleUpdate 天猫服务 > 天猫服务家装优质供给规则变更} */
|
|
894
902
|
tmall_fuwu_HomeDecorationSupplyRuleUpdate(fn: (this: TaoMessageConsumer, message: IncomingMessage.TmallFuwuHomeDecorationSupplyRuleUpdate) => void): TaoMessageConsumer;
|
|
895
903
|
/** {@link IncomingMessage.TmallFuwuLogisticsInfoMessage 天猫服务 > 服务供应链物流业务消息} */
|
|
@@ -966,6 +974,8 @@ declare interface TaoTopicsDescriptor {
|
|
|
966
974
|
xianyu_recycle_OrderStatusSync(fn: (this: TaoMessageConsumer, message: IncomingMessage.XianyuRecycleOrderStatusSync) => void): TaoMessageConsumer;
|
|
967
975
|
/** {@link IncomingMessage.XianyuRecycleSpuModifySync 闲鱼 > 闲鱼回收SPU变更消息} */
|
|
968
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;
|
|
969
979
|
/** {@link IncomingMessage.XianyuTemplateQuesChange 闲鱼 > 闲鱼问卷变更} */
|
|
970
980
|
xianyu_template_QuesChange(fn: (this: TaoMessageConsumer, message: IncomingMessage.XianyuTemplateQuesChange) => void): TaoMessageConsumer;
|
|
971
981
|
/** {@link IncomingMessage.XianyuTemplateStatusChange 闲鱼 > 闲鱼问卷状态变更消息} */
|
|
@@ -1246,6 +1256,8 @@ declare interface TaoTopicsDescriptor {
|
|
|
1246
1256
|
xianyu_car(fn: (this: TaoMessageConsumer, message: IncomingMessage.XianyuCar) => void): TaoMessageConsumer;
|
|
1247
1257
|
/** {@link IncomingMessage.XianyuRecycle} */
|
|
1248
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;
|
|
1249
1261
|
/** {@link IncomingMessage.XianyuTemplate} */
|
|
1250
1262
|
xianyu_template(fn: (this: TaoMessageConsumer, message: IncomingMessage.XianyuTemplate) => void): TaoMessageConsumer;
|
|
1251
1263
|
/** {@link IncomingMessage.XianyuTender} */
|
|
@@ -1447,6 +1459,8 @@ declare interface TaoEventsListener {
|
|
|
1447
1459
|
on(topic: 'alibaba_msd_SettlementBillDetail', listener: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaMsdSettlementBillDetail) => void): TaoMessageConsumer;
|
|
1448
1460
|
/** {@link IncomingMessage.AlibabaMsfserviceAuditCreate 天猫服务 > 喵师傅审核单通知} */
|
|
1449
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;
|
|
1450
1464
|
/** {@link IncomingMessage.AlibabaMsfserviceReminderCreate 天猫服务 > 催单消息} */
|
|
1451
1465
|
on(topic: 'alibaba_msfservice_ReminderCreate', listener: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaMsfserviceReminderCreate) => void): TaoMessageConsumer;
|
|
1452
1466
|
/** {@link IncomingMessage.AlibabaNazcaAbandonCert 网上法庭 > 作废存证消息接口} */
|
|
@@ -1589,6 +1603,8 @@ declare interface TaoEventsListener {
|
|
|
1589
1603
|
on(topic: 'alitrip_ietrade_RefundMsg', listener: (this: TaoMessageConsumer, message: IncomingMessage.AlitripIetradeRefundMsg) => void): TaoMessageConsumer;
|
|
1590
1604
|
/** {@link IncomingMessage.AlitripTrainAgentStopQuery 淘宝火车票 > 火车票车次状态变更消息} */
|
|
1591
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;
|
|
1592
1608
|
/** {@link IncomingMessage.AlitripTravelOrderChanged 航旅度假交易 > 飞猪度假交易订单状态变更消息} */
|
|
1593
1609
|
on(topic: 'alitrip_travel_OrderChanged', listener: (this: TaoMessageConsumer, message: IncomingMessage.AlitripTravelOrderChanged) => void): TaoMessageConsumer;
|
|
1594
1610
|
/** {@link IncomingMessage.AlitripTravelPersonChanged 航旅度假交易 > 出行人信息变更消息} */
|
|
@@ -1981,6 +1997,8 @@ declare interface TaoEventsListener {
|
|
|
1981
1997
|
on(topic: 'taobao_rhino_DeviceStatus', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoRhinoDeviceStatus) => void): TaoMessageConsumer;
|
|
1982
1998
|
/** {@link IncomingMessage.TaobaoSmartappAppSubChange 平台消息 > 用户订阅变更消息} */
|
|
1983
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;
|
|
1984
2002
|
/** {@link IncomingMessage.TaobaoTaeBaichuanAuctionChange 导购平台 > 商品信息变更} */
|
|
1985
2003
|
on(topic: 'taobao_tae_BaichuanAuctionChange', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoTaeBaichuanAuctionChange) => void): TaoMessageConsumer;
|
|
1986
2004
|
/** {@link IncomingMessage.TaobaoTaeBaichuanTradeClosed 导购平台 > 交易关闭} */
|
|
@@ -2131,6 +2149,8 @@ declare interface TaoEventsListener {
|
|
|
2131
2149
|
on(topic: 'tmall_fuwu_AnomalyRecourseStatusUpdate', listener: (this: TaoMessageConsumer, message: IncomingMessage.TmallFuwuAnomalyRecourseStatusUpdate) => void): TaoMessageConsumer;
|
|
2132
2150
|
/** {@link IncomingMessage.TmallFuwuElectricMaintenanceWorkCardComplete 天猫服务 > 天猫服务消电维修工单完结消息} */
|
|
2133
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;
|
|
2134
2154
|
/** {@link IncomingMessage.TmallFuwuHomeDecorationSupplyRuleUpdate 天猫服务 > 天猫服务家装优质供给规则变更} */
|
|
2135
2155
|
on(topic: 'tmall_fuwu_HomeDecorationSupplyRuleUpdate', listener: (this: TaoMessageConsumer, message: IncomingMessage.TmallFuwuHomeDecorationSupplyRuleUpdate) => void): TaoMessageConsumer;
|
|
2136
2156
|
/** {@link IncomingMessage.TmallFuwuLogisticsInfoMessage 天猫服务 > 服务供应链物流业务消息} */
|
|
@@ -2207,6 +2227,8 @@ declare interface TaoEventsListener {
|
|
|
2207
2227
|
on(topic: 'xianyu_recycle_OrderStatusSync', listener: (this: TaoMessageConsumer, message: IncomingMessage.XianyuRecycleOrderStatusSync) => void): TaoMessageConsumer;
|
|
2208
2228
|
/** {@link IncomingMessage.XianyuRecycleSpuModifySync 闲鱼 > 闲鱼回收SPU变更消息} */
|
|
2209
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;
|
|
2210
2232
|
/** {@link IncomingMessage.XianyuTemplateQuesChange 闲鱼 > 闲鱼问卷变更} */
|
|
2211
2233
|
on(topic: 'xianyu_template_QuesChange', listener: (this: TaoMessageConsumer, message: IncomingMessage.XianyuTemplateQuesChange) => void): TaoMessageConsumer;
|
|
2212
2234
|
/** {@link IncomingMessage.XianyuTemplateStatusChange 闲鱼 > 闲鱼问卷状态变更消息} */
|
|
@@ -2487,6 +2509,8 @@ declare interface TaoEventsListener {
|
|
|
2487
2509
|
on(topic: 'xianyu_car', listener: (this: TaoMessageConsumer, message: IncomingMessage.XianyuCar) => void): TaoMessageConsumer;
|
|
2488
2510
|
/** {@link IncomingMessage.XianyuRecycle} */
|
|
2489
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;
|
|
2490
2514
|
/** {@link IncomingMessage.XianyuTemplate} */
|
|
2491
2515
|
on(topic: 'xianyu_template', listener: (this: TaoMessageConsumer, message: IncomingMessage.XianyuTemplate) => void): TaoMessageConsumer;
|
|
2492
2516
|
/** {@link IncomingMessage.XianyuTender} */
|
package/types/message.in.d.ts
CHANGED
|
@@ -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 航旅度假交易 > 出行人信息变更消息} */
|
|
@@ -701,6 +705,8 @@ declare namespace IncomingMessage {
|
|
|
701
705
|
type TaobaoRhinoDeviceStatus = Message & { content?: MessageContent & { topic?: 'taobao_rhino_DeviceStatus', content?: string | Taobao.Rhino.DeviceStatus } };
|
|
702
706
|
/** {@link Taobao.Smartapp.AppSubChange 平台消息 > 用户订阅变更消息} */
|
|
703
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 } };
|
|
704
710
|
/** {@link Taobao.Tae.BaichuanAuctionChange 导购平台 > 商品信息变更} */
|
|
705
711
|
type TaobaoTaeBaichuanAuctionChange = Message & { content?: MessageContent & { topic?: 'taobao_tae_BaichuanAuctionChange', content?: string | Taobao.Tae.BaichuanAuctionChange } };
|
|
706
712
|
/** {@link Taobao.Tae.BaichuanTradeClosed 导购平台 > 交易关闭} */
|
|
@@ -851,6 +857,8 @@ declare namespace IncomingMessage {
|
|
|
851
857
|
type TmallFuwuAnomalyRecourseStatusUpdate = Message & { content?: MessageContent & { topic?: 'tmall_fuwu_AnomalyRecourseStatusUpdate', content?: string | Tmall.Fuwu.AnomalyRecourseStatusUpdate } };
|
|
852
858
|
/** {@link Tmall.Fuwu.ElectricMaintenanceWorkCardComplete 天猫服务 > 天猫服务消电维修工单完结消息} */
|
|
853
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 } };
|
|
854
862
|
/** {@link Tmall.Fuwu.HomeDecorationSupplyRuleUpdate 天猫服务 > 天猫服务家装优质供给规则变更} */
|
|
855
863
|
type TmallFuwuHomeDecorationSupplyRuleUpdate = Message & { content?: MessageContent & { topic?: 'tmall_fuwu_HomeDecorationSupplyRuleUpdate', content?: string | Tmall.Fuwu.HomeDecorationSupplyRuleUpdate } };
|
|
856
864
|
/** {@link Tmall.Fuwu.LogisticsInfoMessage 天猫服务 > 服务供应链物流业务消息} */
|
|
@@ -927,6 +935,8 @@ declare namespace IncomingMessage {
|
|
|
927
935
|
type XianyuRecycleOrderStatusSync = Message & { content?: MessageContent & { topic?: 'xianyu_recycle_OrderStatusSync', content?: string | Xianyu.Recycle.OrderStatusSync } };
|
|
928
936
|
/** {@link Xianyu.Recycle.SpuModifySync 闲鱼 > 闲鱼回收SPU变更消息} */
|
|
929
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 } };
|
|
930
940
|
/** {@link Xianyu.Template.QuesChange 闲鱼 > 闲鱼问卷变更} */
|
|
931
941
|
type XianyuTemplateQuesChange = Message & { content?: MessageContent & { topic?: 'xianyu_template_QuesChange', content?: string | Xianyu.Template.QuesChange } };
|
|
932
942
|
/** {@link Xianyu.Template.StatusChange 闲鱼 > 闲鱼问卷状态变更消息} */
|
|
@@ -1111,9 +1121,11 @@ declare namespace IncomingMessage {
|
|
|
1111
1121
|
type AlibabaMsd = AlibabaMsdSettlementBillDetail;
|
|
1112
1122
|
/**
|
|
1113
1123
|
* - {@link AlibabaMsfserviceAuditCreate 天猫服务 > 喵师傅审核单通知}
|
|
1124
|
+
* - {@link AlibabaMsfserviceExtrafeeRecordCreate 天猫服务 > 喵师傅收费单消息通知}
|
|
1114
1125
|
* - {@link AlibabaMsfserviceReminderCreate 天猫服务 > 催单消息}
|
|
1115
1126
|
*/
|
|
1116
1127
|
type AlibabaMsfservice = AlibabaMsfserviceAuditCreate
|
|
1128
|
+
| AlibabaMsfserviceExtrafeeRecordCreate
|
|
1117
1129
|
| AlibabaMsfserviceReminderCreate;
|
|
1118
1130
|
/**
|
|
1119
1131
|
* - {@link AlibabaNazcaAbandonCert 网上法庭 > 作废存证消息接口}
|
|
@@ -1301,8 +1313,10 @@ declare namespace IncomingMessage {
|
|
|
1301
1313
|
| AlitripIetradeRefundMsg;
|
|
1302
1314
|
/**
|
|
1303
1315
|
* - {@link AlitripTrainAgentStopQuery 淘宝火车票 > 火车票车次状态变更消息}
|
|
1316
|
+
* - {@link AlitripTrainRiskNotify 淘宝火车票 > 飞猪火车票风控消息}
|
|
1304
1317
|
*/
|
|
1305
|
-
type AlitripTrain = AlitripTrainAgentStopQuery
|
|
1318
|
+
type AlitripTrain = AlitripTrainAgentStopQuery
|
|
1319
|
+
| AlitripTrainRiskNotify;
|
|
1306
1320
|
/**
|
|
1307
1321
|
* - {@link AlitripTravelOrderChanged 航旅度假交易 > 飞猪度假交易订单状态变更消息}
|
|
1308
1322
|
* - {@link AlitripTravelPersonChanged 航旅度假交易 > 出行人信息变更消息}
|
|
@@ -1827,8 +1841,10 @@ declare namespace IncomingMessage {
|
|
|
1827
1841
|
type TaobaoRhino = TaobaoRhinoDeviceStatus;
|
|
1828
1842
|
/**
|
|
1829
1843
|
* - {@link TaobaoSmartappAppSubChange 平台消息 > 用户订阅变更消息}
|
|
1844
|
+
* - {@link TaobaoSmartappDataSync 平台消息 > 智能应用服务登记数据变更消息}
|
|
1830
1845
|
*/
|
|
1831
|
-
type TaobaoSmartapp = TaobaoSmartappAppSubChange
|
|
1846
|
+
type TaobaoSmartapp = TaobaoSmartappAppSubChange
|
|
1847
|
+
| TaobaoSmartappDataSync;
|
|
1832
1848
|
/**
|
|
1833
1849
|
* - {@link TaobaoTaeBaichuanAuctionChange 导购平台 > 商品信息变更}
|
|
1834
1850
|
* - {@link TaobaoTaeBaichuanTradeClosed 导购平台 > 交易关闭}
|
|
@@ -2005,6 +2021,7 @@ declare namespace IncomingMessage {
|
|
|
2005
2021
|
* - {@link TmallFuwuAnomalyRecourse 天猫服务 > 天猫服务平台一键求助单消息队列}
|
|
2006
2022
|
* - {@link TmallFuwuAnomalyRecourseStatusUpdate 天猫服务 > 一键求助状态变更消息}
|
|
2007
2023
|
* - {@link TmallFuwuElectricMaintenanceWorkCardComplete 天猫服务 > 天猫服务消电维修工单完结消息}
|
|
2024
|
+
* - {@link TmallFuwuElectricWarrantyCodeStatusUpdate 天猫服务 > 天猫服务消电保修码状态变更}
|
|
2008
2025
|
* - {@link TmallFuwuHomeDecorationSupplyRuleUpdate 天猫服务 > 天猫服务家装优质供给规则变更}
|
|
2009
2026
|
* - {@link TmallFuwuLogisticsInfoMessage 天猫服务 > 服务供应链物流业务消息}
|
|
2010
2027
|
* - {@link TmallFuwuRateMessageTP 天猫服务 > 消费者评价成功top消息}
|
|
@@ -2020,6 +2037,7 @@ declare namespace IncomingMessage {
|
|
|
2020
2037
|
type TmallFuwu = TmallFuwuAnomalyRecourse
|
|
2021
2038
|
| TmallFuwuAnomalyRecourseStatusUpdate
|
|
2022
2039
|
| TmallFuwuElectricMaintenanceWorkCardComplete
|
|
2040
|
+
| TmallFuwuElectricWarrantyCodeStatusUpdate
|
|
2023
2041
|
| TmallFuwuHomeDecorationSupplyRuleUpdate
|
|
2024
2042
|
| TmallFuwuLogisticsInfoMessage
|
|
2025
2043
|
| TmallFuwuRateMessageTP
|
|
@@ -2109,6 +2127,10 @@ declare namespace IncomingMessage {
|
|
|
2109
2127
|
*/
|
|
2110
2128
|
type XianyuRecycle = XianyuRecycleOrderStatusSync
|
|
2111
2129
|
| XianyuRecycleSpuModifySync;
|
|
2130
|
+
/**
|
|
2131
|
+
* - {@link XianyuRegisterStatusChange 闲鱼 > 闲鱼SPU挂载上下线消息}
|
|
2132
|
+
*/
|
|
2133
|
+
type XianyuRegister = XianyuRegisterStatusChange;
|
|
2112
2134
|
/**
|
|
2113
2135
|
* - {@link XianyuTemplateQuesChange 闲鱼 > 闲鱼问卷变更}
|
|
2114
2136
|
* - {@link XianyuTemplateStatusChange 闲鱼 > 闲鱼问卷状态变更消息}
|
|
@@ -2436,6 +2458,7 @@ declare namespace IncomingMessage {
|
|
|
2436
2458
|
* - {@link XianyuAppraise}
|
|
2437
2459
|
* - {@link XianyuCar}
|
|
2438
2460
|
* - {@link XianyuRecycle}
|
|
2461
|
+
* - {@link XianyuRegister}
|
|
2439
2462
|
* - {@link XianyuTemplate}
|
|
2440
2463
|
* - {@link XianyuTender}
|
|
2441
2464
|
*/
|
|
@@ -2443,6 +2466,7 @@ declare namespace IncomingMessage {
|
|
|
2443
2466
|
| XianyuAppraise
|
|
2444
2467
|
| XianyuCar
|
|
2445
2468
|
| XianyuRecycle
|
|
2469
|
+
| XianyuRegister
|
|
2446
2470
|
| XianyuTemplate
|
|
2447
2471
|
| XianyuTender;
|
|
2448
2472
|
/**
|
package/types/taobao.d.ts
CHANGED
|
@@ -2311,6 +2311,22 @@ declare namespace Taobao.Smartapp {
|
|
|
2311
2311
|
/** 订阅状态,ON:开启 ,OFF:关闭 */
|
|
2312
2312
|
status: string;
|
|
2313
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
|
+
}
|
|
2314
2330
|
}
|
|
2315
2331
|
|
|
2316
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
|
/** 闲鱼问卷变更 */
|