tmc.js 0.3.38 → 0.3.39

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,7 +134,7 @@ new Tmc('your_app_key', 'your_app_secret', { autoReplyConfirmation: false })
134
134
 
135
135
  ## 支持的TOPICS
136
136
 
137
- <details><summary>共计 84+ 类别,494+ 消息数</summary>
137
+ <details><summary>共计 84+ 类别,501+ 消息数</summary>
138
138
 
139
139
  | 类别 | 消息数 |
140
140
  | --- | --- |
@@ -150,7 +150,7 @@ new Tmc('your_app_key', 'your_app_secret', { autoReplyConfirmation: false })
150
150
  | 导购平台 | 21 |
151
151
  | 淘宝汽车票 | 4 |
152
152
  | 服务市场 | 9 |
153
- | 天猫服务 | 26 |
153
+ | 天猫服务 | 27 |
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
- | 闲鱼 | 17 |
173
+ | 闲鱼 | 21 |
174
174
  | 闲鱼回收商消息 | 6 |
175
175
  | 零售通POS开放平台消息 | 4 |
176
176
  | DPAAS | 6 |
@@ -192,7 +192,7 @@ new Tmc('your_app_key', 'your_app_secret', { autoReplyConfirmation: false })
192
192
  | 商旅API | 3 |
193
193
  | 阿里健康-O2O中台 | 2 |
194
194
  | 业务平台新零售-消息上行 | 2 |
195
- | 大麦第三方票务供应商接入 | 7 |
195
+ | 大麦第三方票务供应商接入 | 9 |
196
196
  | TVOS应用审核平台 | 1 |
197
197
  | Gifting送礼 | 1 |
198
198
  | 五道口商品 | 2 |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tmc.js",
3
- "version": "0.3.38",
3
+ "version": "0.3.39",
4
4
  "description": "Event driven and chained Taobao Message Channel(TMC) for NodeJS",
5
5
  "author": "James ZHANG",
6
6
  "license": "MIT",
package/types/ali.d.ts CHANGED
@@ -3,11 +3,11 @@ declare namespace Ali.Fin {
3
3
  /** {@link https://open.taobao.com/tmc.htm?docId=2391&docType=9 阿里场景金融大延保理赔结果通知给服务商} */
4
4
  interface DybClaimResult {
5
5
  /** 理赔通过金额,单位分 */
6
- claimFee?: string;
6
+ claim_fee?: string;
7
7
  /** 理赔收单id */
8
- claimNo: string;
8
+ claim_no: string;
9
9
  /** 理赔结果,WAIT_UPDATE/FINISHED */
10
- claimStatus: string;
10
+ claim_status: string;
11
11
  /** 退回原因 */
12
12
  reason?: string;
13
13
  }
@@ -1390,11 +1390,11 @@ declare namespace Alibaba.Homestyler {
1390
1390
  /** {@link https://open.taobao.com/tmc.htm?docId=2498&docType=9 洞窝全景图替换消息回调} */
1391
1391
  interface AigcPanoramaReplaceCallback {
1392
1392
  /** 合成结果图片地址 */
1393
- imageUrl: string;
1393
+ image_url: string;
1394
1394
  /** 错误信息描述 */
1395
1395
  message: string;
1396
1396
  /** 同步请求返回的requestId */
1397
- requestId: string;
1397
+ request_id: string;
1398
1398
  /** 合成结果 */
1399
1399
  status: string;
1400
1400
  }
@@ -1434,15 +1434,15 @@ declare namespace Alibaba.Ifp {
1434
1434
  /** {@link https://open.taobao.com/tmc.htm?docId=2386&docType=9 同城履约包裹状态变更消息} */
1435
1435
  interface PackageCfcContainer {
1436
1436
  /** 履约单号 */
1437
- fulfillOrderId: string;
1437
+ fulfill_order_id: string;
1438
1438
  /** CFC_CONTAINER:CFC封箱 */
1439
1439
  status: string;
1440
1440
  /** 包裹令牌号 */
1441
1441
  token: string;
1442
1442
  /** 仓编码 */
1443
- warehouseCode: string;
1443
+ warehouse_code: string;
1444
1444
  /** 仓商户编码 */
1445
- workMerchantCode: string;
1445
+ work_merchant_code: string;
1446
1446
  }
1447
1447
  }
1448
1448
 
@@ -1751,7 +1751,7 @@ declare namespace Alibaba.Invoice {
1751
1751
  /** 全电发票的发票号码 */
1752
1752
  invoice_no: string;
1753
1753
  /** 订单号 */
1754
- platform_tid: string;
1754
+ readonly platform_tid: string;
1755
1755
  /** 卖家Nick */
1756
1756
  seller_nick?: string;
1757
1757
  }
@@ -2474,53 +2474,53 @@ declare namespace Alibaba.Jym {
2474
2474
  /** {@link https://open.taobao.com/tmc.htm?docId=2445&docType=9 交易猫steam正向消息通知} */
2475
2475
  interface SteamTradeOrderNotify {
2476
2476
  /** 订单ID */
2477
- orderId: string;
2477
+ order_id: string;
2478
2478
  /** 订单状态 1.交易成功 2.结算成功 */
2479
- orderStatus: number;
2479
+ order_status: number;
2480
2480
  }
2481
2481
 
2482
2482
  /** {@link https://open.taobao.com/tmc.htm?docId=2446&docType=9 交易猫steam逆向通知} */
2483
2483
  interface SteamTradeRefundNotify {
2484
2484
  /** 1-新建 */
2485
- isNewRefund?: number;
2485
+ is_new_refund?: number;
2486
2486
  /** 逆向单新状态 */
2487
- newStatus: number;
2487
+ new_status: number;
2488
2488
  /** 逆向单新子状态 */
2489
- newSubStatus: number;
2489
+ new_sub_status: number;
2490
2490
  /** 逆向单旧状态 */
2491
- oldStatus?: number;
2491
+ old_status?: number;
2492
2492
  /** 逆向单旧子状态 */
2493
- oldSubStatus?: number;
2493
+ old_sub_status?: number;
2494
2494
  /** 订单ID */
2495
- orderId: string;
2495
+ order_id: string;
2496
2496
  /** 1.快速退款 2.审核退款 */
2497
- processType: number;
2497
+ process_type: number;
2498
2498
  /** 退款单ID */
2499
- refundOrderId: string;
2499
+ refund_order_id: string;
2500
2500
  /** 退款类型 1:售中 2:售后 */
2501
- refundType: number;
2501
+ refund_type: number;
2502
2502
  }
2503
2503
 
2504
2504
  /** {@link https://open.taobao.com/tmc.htm?docId=2441&docType=9 交易猫逆向单状态通知} */
2505
2505
  interface TradeRefundNotify {
2506
2506
  /** 1-新建 */
2507
- isNewRefund?: number;
2507
+ is_new_refund?: number;
2508
2508
  /** 逆向单新状态 */
2509
- newStatus?: number;
2509
+ new_status?: number;
2510
2510
  /** 逆向单新子状态 */
2511
- newSubStatus?: number;
2511
+ new_sub_status?: number;
2512
2512
  /** 逆向单旧状态 */
2513
- oldStatus?: number;
2513
+ old_status?: number;
2514
2514
  /** 逆向单旧子状态 */
2515
- oldSubStatus?: number;
2515
+ old_sub_status?: number;
2516
2516
  /** 商品ID */
2517
- orderId: string;
2517
+ order_id: string;
2518
2518
  /** 1.快速退款 2.审核退款 */
2519
- processType: number;
2519
+ process_type: number;
2520
2520
  /** 退款单ID */
2521
- refundOrderId: string;
2521
+ refund_order_id: string;
2522
2522
  /** 退款类型 1:售中 2:售后 */
2523
- refundType: number;
2523
+ refund_type: number;
2524
2524
  }
2525
2525
  }
2526
2526
 
@@ -3027,13 +3027,13 @@ declare namespace Alibaba.Msd {
3027
3027
  /** {@link https://open.taobao.com/tmc.htm?docId=2458&docType=9 喵速达服务供应链结算单明细消息} */
3028
3028
  interface SettlementBillDetail {
3029
3029
  /** 支付流水号 */
3030
- alipayOrderId: string;
3030
+ alipay_order_id: string;
3031
3031
  /** 结算金额 */
3032
3032
  amount: string;
3033
3033
  /** 服务交易订单id */
3034
- serviceTradeOrderId: number;
3034
+ service_trade_order_id: number;
3035
3035
  /** 服务单id */
3036
- spServiceOrderId: number;
3036
+ sp_service_order_id: number;
3037
3037
  }
3038
3038
  }
3039
3039
 
@@ -3588,17 +3588,17 @@ declare namespace Alibaba.Pur {
3588
3588
  /** {@link https://open.taobao.com/tmc.htm?docId=2485&docType=9 取消订单结果通知} */
3589
3589
  interface ResourceOrderCancelNotify {
3590
3590
  /** 失败原因 */
3591
- failedMsg?: string;
3591
+ failed_msg?: string;
3592
3592
  /** 平台子订单号 */
3593
- orderItemNo: string;
3593
+ order_item_no: string;
3594
3594
  /** 平台订单号 */
3595
- orderNo: string;
3595
+ order_no: string;
3596
3596
  /** 三方子订单号 */
3597
- outOrderItemNo: string;
3597
+ out_order_item_no: string;
3598
3598
  /** 三方订单号 */
3599
- outOrderNo: string;
3599
+ out_order_no: string;
3600
3600
  /** 逆向单号 */
3601
- returnNo: string;
3601
+ return_no: string;
3602
3602
  /** 取消订单是否成功 */
3603
3603
  success: boolean;
3604
3604
  }
@@ -3606,11 +3606,11 @@ declare namespace Alibaba.Pur {
3606
3606
  /** {@link https://open.taobao.com/tmc.htm?docId=2448&docType=9 发货提醒} */
3607
3607
  interface ResourceOrderShipNotify {
3608
3608
  /** 子订单 */
3609
- orderItems: string;
3609
+ order_items: string;
3610
3610
  /** 平台订单号 */
3611
- orderNo: string;
3611
+ order_no: string;
3612
3612
  /** 三方订单号 */
3613
- outOrderNo: string;
3613
+ out_order_no: string;
3614
3614
  }
3615
3615
 
3616
3616
  /** {@link https://open.taobao.com/tmc.htm?docId=2084&docType=9 RT审批完成消息通知} */
@@ -175,41 +175,41 @@ declare namespace Alitrip.Flight {
175
175
  /** {@link https://open.taobao.com/tmc.htm?docId=2359&docType=9 新京航航变消息} */
176
176
  interface FlightChange {
177
177
  /** 航变原因 */
178
- changeReason?: string;
178
+ change_reason?: string;
179
179
  /** 航变时间 */
180
- changeTime?: Date | number | string;
180
+ change_time?: Date | number | string;
181
181
  /** 航变类型,1为取消,2为变更 */
182
- changeType?: number;
182
+ change_type?: number;
183
183
  /** 消息id */
184
- messageId: string;
184
+ message_id: string;
185
185
  /** 到达机场三字码 */
186
- newArriveCode?: string;
186
+ new_arrive_code?: string;
187
187
  /** 到达时间 */
188
- newArriveTime?: Date | number | string;
188
+ new_arrive_time?: Date | number | string;
189
189
  /** 出发机场三字码 */
190
- newDepartCode?: string;
190
+ new_depart_code?: string;
191
191
  /** 出发时间 */
192
- newDepartTime?: Date | number | string;
192
+ new_depart_time?: Date | number | string;
193
193
  /** 新航班日期 */
194
- newFlightDate?: Date | number | string;
194
+ new_flight_date?: Date | number | string;
195
195
  /** 航班号 */
196
- newFlightNo?: string;
196
+ new_flight_no?: string;
197
197
  /** 到达机场三字码 */
198
- oldArriveCode: string;
198
+ old_arrive_code: string;
199
199
  /** 出发时间 */
200
- oldArriveTime: Date | number | string;
200
+ old_arrive_time: Date | number | string;
201
201
  /** 出发机场三字码 */
202
- oldDepartCode: string;
202
+ old_depart_code: string;
203
203
  /** 出发时间 */
204
- oldDepartTime: Date | number | string;
204
+ old_depart_time: Date | number | string;
205
205
  /** 原航班日期 */
206
- oldFlightDate?: Date | number | string;
206
+ old_flight_date?: Date | number | string;
207
207
  /** 原航班号 */
208
- oldFlightNo: string;
208
+ old_flight_no: string;
209
209
  /** 采购订单号 */
210
- orderId?: number;
210
+ order_id?: number;
211
211
  /** 航变子类型 */
212
- subType?: number;
212
+ sub_type?: number;
213
213
  }
214
214
 
215
215
  /** {@link https://open.taobao.com/tmc.htm?docId=2189&docType=9 机票支付结果异步通知} */
@@ -414,37 +414,37 @@ declare namespace Alitrip.Train {
414
414
  /** {@link https://open.taobao.com/tmc.htm?docId=2465&docType=9 飞猪火车票风控消息} */
415
415
  interface RiskNotify {
416
416
  /** 12306账号,可能为手机号/邮箱/唯一用户名 */
417
- accountName: string;
417
+ account_name: string;
418
418
  /** 唯一标识 */
419
419
  id: string;
420
420
  /** 12306用户ID */
421
- outUserId: string;
421
+ out_user_id: string;
422
422
  /** 协议类型,app或pc,一般仅app */
423
423
  protocol: string;
424
424
  /** 风控码 */
425
- riskCode: string;
425
+ risk_code: string;
426
426
  /** 风控消息类型、MARK_RISK 和 CLEAR_RISK */
427
- riskTag: string;
427
+ risk_tag: string;
428
428
  /** 对应的解风控动作 */
429
- solveAction: string;
429
+ solve_action: string;
430
430
  /** 提示信息,指导用户行为 */
431
431
  tips: string;
432
432
  /** 用户淘宝ID */
433
- userId: number;
433
+ user_id: number;
434
434
  /** 12306唯一用户名 */
435
- userUniqName: string;
435
+ user_uniq_name: string;
436
436
  }
437
437
 
438
438
  /** {@link https://open.taobao.com/tmc.htm?docId=2464&docType=9 创建订单成功消息} */
439
439
  interface TobOrderCreate {
440
440
  /** 商户id */
441
- merchantId: number;
441
+ merchant_id: number;
442
442
  /** 商户订单号 */
443
- merchantOrderId: string;
443
+ merchant_order_id: string;
444
444
  /** 飞猪订单号 */
445
- orderId: number;
445
+ order_id: number;
446
446
  /** 12306账号 */
447
- outBuyerId: string;
447
+ out_buyer_id: string;
448
448
  }
449
449
  }
450
450
 
@@ -980,13 +980,13 @@ declare namespace Cainiao.Waybill {
980
980
  /** {@link https://open.taobao.com/tmc.htm?docId=2376&docType=9 单据状态跟踪} */
981
981
  interface TrackTicketStatus {
982
982
  /** 操作时间 */
983
- opTime: number;
983
+ op_time: number;
984
984
  /** 外部单号 */
985
- orderId: string;
985
+ order_id: string;
986
986
  /** 拦截状态 */
987
987
  status: string;
988
988
  /** 状态描述 */
989
- statusDesc: string;
989
+ status_desc: string;
990
990
  }
991
991
  }
992
992
 
package/types/damai.d.ts CHANGED
@@ -1,5 +1,11 @@
1
1
  /** 大麦第三方票务供应商接入 */
2
2
  declare namespace Damai.Distribution {
3
+ /** {@link https://open.taobao.com/tmc.htm?docId=2541&docType=9 履约补选座位成功通知三方} */
4
+ interface MatchSeat {
5
+ /** 主订单号 */
6
+ main_order_id: number;
7
+ }
8
+
3
9
  /** {@link https://open.taobao.com/tmc.htm?docId=1980&docType=9 场次取消消息推送} */
4
10
  interface PerformCancel {
5
11
  /** 场次取消的场次id */
@@ -56,6 +62,16 @@ declare namespace Damai.Distribution {
56
62
  project_id: number;
57
63
  }
58
64
 
65
+ /** {@link https://open.taobao.com/tmc.htm?docId=2540&docType=9 履约发快递成功通知三方} */
66
+ interface SendExpress {
67
+ /** 物流类型,1-顺丰,2-EMS */
68
+ delivery_company_id: number;
69
+ /** 主订单号 */
70
+ main_order_id: number;
71
+ /** 物流单号 */
72
+ waybill_no: string;
73
+ }
74
+
59
75
  /** {@link https://open.taobao.com/tmc.htm?docId=1628&docType=9 票品状态变更} */
60
76
  interface TicketItemStatus {
61
77
  /** 是否可售 */
@@ -126,6 +142,16 @@ declare namespace Damai.Mz {
126
142
  timestamp: number;
127
143
  }
128
144
 
145
+ /** {@link https://open.taobao.com/tmc.htm?docId=2539&docType=9 麦座退单审核通过通知} */
146
+ interface OrderRefund {
147
+ /** 会员id */
148
+ mz_user_id: string;
149
+ /** 正式单id */
150
+ order_id: string;
151
+ /** 退单id */
152
+ refund_order_id: string;
153
+ }
154
+
129
155
  /** {@link https://open.taobao.com/tmc.htm?docId=2241&docType=9 订单状态通知} */
130
156
  interface OrderStateChange {
131
157
  /** 麦座订单号 */
@@ -157,6 +183,14 @@ declare namespace Damai.Mz {
157
183
  /** 时间戳 */
158
184
  timestamp: number;
159
185
  }
186
+
187
+ /** {@link https://open.taobao.com/tmc.htm?docId=2538&docType=9 麦座会员注册成功通知} */
188
+ interface UserRegister {
189
+ /** 麦座会员id */
190
+ mz_user_id: string;
191
+ /** 时间戳 */
192
+ timestamp: number;
193
+ }
160
194
  }
161
195
 
162
196
  /** 大麦票单状态 */
package/types/fliggy.d.ts CHANGED
@@ -104,11 +104,11 @@ declare namespace Fliggy.Sht {
104
104
  /** 订单信息 */
105
105
  content: string;
106
106
  /** 消息唯一ID */
107
- msgId: string;
107
+ msg_id: string;
108
108
  /** 淘宝订单ID */
109
- orderId: string;
109
+ order_id: string;
110
110
  /** 订单状态 */
111
- orderStatus: number;
111
+ order_status: number;
112
112
  }
113
113
  }
114
114
 
package/types/icbu.d.ts CHANGED
@@ -117,17 +117,17 @@ declare namespace Icbu.Risk {
117
117
  /** {@link https://open.taobao.com/tmc.htm?docId=2525&docType=9 天鹿风控事件异步消息结果} */
118
118
  interface ZeroersMessage {
119
119
  /** 业务回调id */
120
- callbackId: string;
120
+ callback_id: string;
121
121
  /** 审核结果 */
122
- callbackResult?: string;
122
+ callback_result?: string;
123
123
  /** 风控事件 */
124
- eventCode: string;
124
+ event_code: string;
125
125
  /** 风控唯一id */
126
- eventDataId?: string;
126
+ event_data_id?: string;
127
127
  /** reject原因 */
128
- rejectReason?: string;
128
+ reject_reason?: string;
129
129
  /** 风控结果 */
130
- riskJudgeResult: string;
130
+ risk_judge_result: string;
131
131
  }
132
132
  }
133
133
 
package/types/idle.d.ts CHANGED
@@ -111,7 +111,7 @@ declare namespace Idle.Consignmentii {
111
111
  }
112
112
  }
113
113
 
114
- /** 咸鱼 */
114
+ /** 闲鱼 */
115
115
  declare namespace Idle.Cycleshop {
116
116
  /** {@link https://open.taobao.com/tmc.htm?docId=2499&docType=9 闲鱼循环商店-货品变更通知} */
117
117
  interface GoodsNotice {
@@ -251,7 +251,7 @@ declare namespace Idle.Tranferpay {
251
251
  }
252
252
  }
253
253
 
254
- /** 咸鱼 */
254
+ /** 闲鱼 */
255
255
  declare namespace Idle.Twjd {
256
256
  /** {@link https://open.taobao.com/tmc.htm?docId=2407&docType=9 闲鱼图文鉴定业务订单消息} */
257
257
  interface OrderSyn {