tmc.js 0.3.45 → 0.3.46

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>共计 85+ 类别,514+ 消息数</summary>
137
+ <details><summary>共计 85+ 类别,517+ 消息数</summary>
138
138
 
139
139
  | 类别 | 消息数 |
140
140
  | --- | --- |
@@ -160,7 +160,7 @@ new Tmc('your_app_key', 'your_app_secret', { autoReplyConfirmation: false })
160
160
  | OpenIM消息 | 1 |
161
161
  | 网上法庭 | 8 |
162
162
  | 电子发票 | 21 |
163
- | 航旅度假交易 | 8 |
163
+ | 航旅度假交易 | 9 |
164
164
  | YunOS YoC | 2 |
165
165
  | 淘宝直播API | 3 |
166
166
  | 阿里物联 | 2 |
@@ -170,8 +170,8 @@ new Tmc('your_app_key', 'your_app_secret', { autoReplyConfirmation: false })
170
170
  | AE-交易 | 10 |
171
171
  | 五道口配送 | 5 |
172
172
  | 百川 | 2 |
173
- | 闲鱼 | 23 |
174
- | 闲鱼回收商消息 | 6 |
173
+ | 闲鱼 | 24 |
174
+ | 闲鱼回收商消息 | 7 |
175
175
  | 零售通POS开放平台消息 | 4 |
176
176
  | DPAAS | 6 |
177
177
  | AliGenius | 1 |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tmc.js",
3
- "version": "0.3.45",
3
+ "version": "0.3.46",
4
4
  "description": "Event driven and chained Taobao Message Channel(TMC) for NodeJS",
5
5
  "author": "James ZHANG",
6
6
  "license": "MIT",
@@ -238,12 +238,14 @@ declare namespace Alitrip.Flight {
238
238
 
239
239
  /** {@link https://open.taobao.com/tmc.htm?docId=2208&docType=9 机票交易通知} */
240
240
  interface TradeNotify {
241
- /** 支付宝交易流水号,支付成功通知里会有这个值 */
241
+ /** 支付宝交易流水号(后续将废弃,请使用trade_no字段),支付成功通知里会有这个值 */
242
242
  alipay_trade_no?: string;
243
243
  /** 消息id */
244
244
  id: string;
245
245
  /** 订单号 */
246
246
  order_no: string;
247
+ /** 交易流水号 */
248
+ trade_no?: string;
247
249
  /** 消息类型 1:支付成功 2:关单 3:出票成功 */
248
250
  type: string;
249
251
  }
package/types/fliggy.d.ts CHANGED
@@ -159,7 +159,7 @@ declare namespace Fliggy.Ticket {
159
159
  }
160
160
  }
161
161
 
162
- /** 飞猪 */
162
+ /** 航旅度假交易 */
163
163
  declare namespace Fliggy.Visa {
164
164
  /** {@link https://open.taobao.com/tmc.htm?docId=2582&docType=9 签证申请人状态变更消息} */
165
165
  interface ApplicantStatusChanged {
package/types/idle.d.ts CHANGED
@@ -163,7 +163,7 @@ declare namespace Idle.Cycleshop {
163
163
  }
164
164
  }
165
165
 
166
- /** 闲鱼 */
166
+ /** 闲鱼回收商消息 */
167
167
  declare namespace Idle.Distribution {
168
168
  /** {@link https://open.taobao.com/tmc.htm?docId=2598&docType=9 分销闲管家消息通道} */
169
169
  interface ItemChange {
package/types/index.d.ts CHANGED
@@ -1070,9 +1070,9 @@ declare interface TaoTopicsDescriptor {
1070
1070
  fliggy_ticket_OrderStatusChange(fn: (this: TaoMessageConsumer, message: IncomingMessage.FliggyTicketOrderStatusChange) => void): TaoMessageConsumer;
1071
1071
  /** {@link IncomingMessage.FliggyTicketVerifyNotify 航旅度假交易 > 域外分销订单码核销消息} */
1072
1072
  fliggy_ticket_VerifyNotify(fn: (this: TaoMessageConsumer, message: IncomingMessage.FliggyTicketVerifyNotify) => void): TaoMessageConsumer;
1073
- /** {@link IncomingMessage.FliggyVisaApplicantStatusChanged 飞猪 > 签证申请人状态变更消息} */
1073
+ /** {@link IncomingMessage.FliggyVisaApplicantStatusChanged 航旅度假交易 > 签证申请人状态变更消息} */
1074
1074
  fliggy_visa_ApplicantStatusChanged(fn: (this: TaoMessageConsumer, message: IncomingMessage.FliggyVisaApplicantStatusChanged) => void): TaoMessageConsumer;
1075
- /** {@link IncomingMessage.FliggyVisaStatusChange 飞猪 > 签证状态变化消息} */
1075
+ /** {@link IncomingMessage.FliggyVisaStatusChange 航旅度假交易 > 签证状态变化消息} */
1076
1076
  fliggy_visa_StatusChange(fn: (this: TaoMessageConsumer, message: IncomingMessage.FliggyVisaStatusChange) => void): TaoMessageConsumer;
1077
1077
  /** {@link IncomingMessage.FliggyXhotelComboCreateResult 飞猪 > 套餐创建消息回传} */
1078
1078
  fliggy_xhotel_ComboCreateResult(fn: (this: TaoMessageConsumer, message: IncomingMessage.FliggyXhotelComboCreateResult) => void): TaoMessageConsumer;
@@ -1146,7 +1146,7 @@ declare interface TaoTopicsDescriptor {
1146
1146
  idle_cycleshop_GoodsNotice(fn: (this: TaoMessageConsumer, message: IncomingMessage.IdleCycleshopGoodsNotice) => void): TaoMessageConsumer;
1147
1147
  /** {@link IncomingMessage.IdleCycleshopSaleOrderNotice 闲鱼 > 闲鱼循环商店-销售单变更通知} */
1148
1148
  idle_cycleshop_SaleOrderNotice(fn: (this: TaoMessageConsumer, message: IncomingMessage.IdleCycleshopSaleOrderNotice) => void): TaoMessageConsumer;
1149
- /** {@link IncomingMessage.IdleDistributionItemChange 闲鱼 > 分销闲管家消息通道} */
1149
+ /** {@link IncomingMessage.IdleDistributionItemChange 闲鱼回收商消息 > 分销闲管家消息通道} */
1150
1150
  idle_distribution_ItemChange(fn: (this: TaoMessageConsumer, message: IncomingMessage.IdleDistributionItemChange) => void): TaoMessageConsumer;
1151
1151
  /** {@link IncomingMessage.IdleNewoutletsUserTagNotice 闲鱼 > 闲鱼用户身份变更消息} */
1152
1152
  idle_newoutlets_UserTagNotice(fn: (this: TaoMessageConsumer, message: IncomingMessage.IdleNewoutletsUserTagNotice) => void): TaoMessageConsumer;
@@ -4195,9 +4195,9 @@ declare interface TaoEventsListener {
4195
4195
  on(topic: 'fliggy_ticket_OrderStatusChange', listener: (this: TaoMessageConsumer, message: IncomingMessage.FliggyTicketOrderStatusChange) => void): TaoMessageConsumer;
4196
4196
  /** {@link IncomingMessage.FliggyTicketVerifyNotify 航旅度假交易 > 域外分销订单码核销消息} */
4197
4197
  on(topic: 'fliggy_ticket_VerifyNotify', listener: (this: TaoMessageConsumer, message: IncomingMessage.FliggyTicketVerifyNotify) => void): TaoMessageConsumer;
4198
- /** {@link IncomingMessage.FliggyVisaApplicantStatusChanged 飞猪 > 签证申请人状态变更消息} */
4198
+ /** {@link IncomingMessage.FliggyVisaApplicantStatusChanged 航旅度假交易 > 签证申请人状态变更消息} */
4199
4199
  on(topic: 'fliggy_visa_ApplicantStatusChanged', listener: (this: TaoMessageConsumer, message: IncomingMessage.FliggyVisaApplicantStatusChanged) => void): TaoMessageConsumer;
4200
- /** {@link IncomingMessage.FliggyVisaStatusChange 飞猪 > 签证状态变化消息} */
4200
+ /** {@link IncomingMessage.FliggyVisaStatusChange 航旅度假交易 > 签证状态变化消息} */
4201
4201
  on(topic: 'fliggy_visa_StatusChange', listener: (this: TaoMessageConsumer, message: IncomingMessage.FliggyVisaStatusChange) => void): TaoMessageConsumer;
4202
4202
  /** {@link IncomingMessage.FliggyXhotelComboCreateResult 飞猪 > 套餐创建消息回传} */
4203
4203
  on(topic: 'fliggy_xhotel_ComboCreateResult', listener: (this: TaoMessageConsumer, message: IncomingMessage.FliggyXhotelComboCreateResult) => void): TaoMessageConsumer;
@@ -4271,7 +4271,7 @@ declare interface TaoEventsListener {
4271
4271
  on(topic: 'idle_cycleshop_GoodsNotice', listener: (this: TaoMessageConsumer, message: IncomingMessage.IdleCycleshopGoodsNotice) => void): TaoMessageConsumer;
4272
4272
  /** {@link IncomingMessage.IdleCycleshopSaleOrderNotice 闲鱼 > 闲鱼循环商店-销售单变更通知} */
4273
4273
  on(topic: 'idle_cycleshop_SaleOrderNotice', listener: (this: TaoMessageConsumer, message: IncomingMessage.IdleCycleshopSaleOrderNotice) => void): TaoMessageConsumer;
4274
- /** {@link IncomingMessage.IdleDistributionItemChange 闲鱼 > 分销闲管家消息通道} */
4274
+ /** {@link IncomingMessage.IdleDistributionItemChange 闲鱼回收商消息 > 分销闲管家消息通道} */
4275
4275
  on(topic: 'idle_distribution_ItemChange', listener: (this: TaoMessageConsumer, message: IncomingMessage.IdleDistributionItemChange) => void): TaoMessageConsumer;
4276
4276
  /** {@link IncomingMessage.IdleNewoutletsUserTagNotice 闲鱼 > 闲鱼用户身份变更消息} */
4277
4277
  on(topic: 'idle_newoutlets_UserTagNotice', listener: (this: TaoMessageConsumer, message: IncomingMessage.IdleNewoutletsUserTagNotice) => void): TaoMessageConsumer;
@@ -1053,9 +1053,9 @@ declare namespace IncomingMessage {
1053
1053
  type FliggyTicketOrderStatusChange = Message & { content?: MessageContent & { topic?: 'fliggy_ticket_OrderStatusChange', content?: string | Fliggy.Ticket.OrderStatusChange } };
1054
1054
  /** {@link Fliggy.Ticket.VerifyNotify 航旅度假交易 > 域外分销订单码核销消息} */
1055
1055
  type FliggyTicketVerifyNotify = Message & { content?: MessageContent & { topic?: 'fliggy_ticket_VerifyNotify', content?: string | Fliggy.Ticket.VerifyNotify } };
1056
- /** {@link Fliggy.Visa.ApplicantStatusChanged 飞猪 > 签证申请人状态变更消息} */
1056
+ /** {@link Fliggy.Visa.ApplicantStatusChanged 航旅度假交易 > 签证申请人状态变更消息} */
1057
1057
  type FliggyVisaApplicantStatusChanged = Message & { content?: MessageContent & { topic?: 'fliggy_visa_ApplicantStatusChanged', content?: string | Fliggy.Visa.ApplicantStatusChanged } };
1058
- /** {@link Fliggy.Visa.StatusChange 飞猪 > 签证状态变化消息} */
1058
+ /** {@link Fliggy.Visa.StatusChange 航旅度假交易 > 签证状态变化消息} */
1059
1059
  type FliggyVisaStatusChange = Message & { content?: MessageContent & { topic?: 'fliggy_visa_StatusChange', content?: string | Fliggy.Visa.StatusChange } };
1060
1060
  /** {@link Fliggy.Xhotel.ComboCreateResult 飞猪 > 套餐创建消息回传} */
1061
1061
  type FliggyXhotelComboCreateResult = Message & { content?: MessageContent & { topic?: 'fliggy_xhotel_ComboCreateResult', content?: string | Fliggy.Xhotel.ComboCreateResult } };
@@ -1129,7 +1129,7 @@ declare namespace IncomingMessage {
1129
1129
  type IdleCycleshopGoodsNotice = Message & { content?: MessageContent & { topic?: 'idle_cycleshop_GoodsNotice', content?: string | Idle.Cycleshop.GoodsNotice } };
1130
1130
  /** {@link Idle.Cycleshop.SaleOrderNotice 闲鱼 > 闲鱼循环商店-销售单变更通知} */
1131
1131
  type IdleCycleshopSaleOrderNotice = Message & { content?: MessageContent & { topic?: 'idle_cycleshop_SaleOrderNotice', content?: string | Idle.Cycleshop.SaleOrderNotice } };
1132
- /** {@link Idle.Distribution.ItemChange 闲鱼 > 分销闲管家消息通道} */
1132
+ /** {@link Idle.Distribution.ItemChange 闲鱼回收商消息 > 分销闲管家消息通道} */
1133
1133
  type IdleDistributionItemChange = Message & { content?: MessageContent & { topic?: 'idle_distribution_ItemChange', content?: string | Idle.Distribution.ItemChange } };
1134
1134
  /** {@link Idle.Newoutlets.UserTagNotice 闲鱼 > 闲鱼用户身份变更消息} */
1135
1135
  type IdleNewoutletsUserTagNotice = Message & { content?: MessageContent & { topic?: 'idle_newoutlets_UserTagNotice', content?: string | Idle.Newoutlets.UserTagNotice } };
@@ -3678,8 +3678,8 @@ declare namespace IncomingMessage {
3678
3678
  | FliggyTicketOrderStatusChange
3679
3679
  | FliggyTicketVerifyNotify;
3680
3680
  /**
3681
- * - {@link FliggyVisaApplicantStatusChanged 飞猪 > 签证申请人状态变更消息}
3682
- * - {@link FliggyVisaStatusChange 飞猪 > 签证状态变化消息}
3681
+ * - {@link FliggyVisaApplicantStatusChanged 航旅度假交易 > 签证申请人状态变更消息}
3682
+ * - {@link FliggyVisaStatusChange 航旅度假交易 > 签证状态变化消息}
3683
3683
  */
3684
3684
  type FliggyVisa = FliggyVisaApplicantStatusChanged
3685
3685
  | FliggyVisaStatusChange;
@@ -3798,7 +3798,7 @@ declare namespace IncomingMessage {
3798
3798
  type IdleCycleshop = IdleCycleshopGoodsNotice
3799
3799
  | IdleCycleshopSaleOrderNotice;
3800
3800
  /**
3801
- * - {@link IdleDistributionItemChange 闲鱼 > 分销闲管家消息通道}
3801
+ * - {@link IdleDistributionItemChange 闲鱼回收商消息 > 分销闲管家消息通道}
3802
3802
  */
3803
3803
  type IdleDistribution = IdleDistributionItemChange;
3804
3804
  /**
package/types/xianyu.d.ts CHANGED
@@ -49,6 +49,8 @@ declare namespace Xianyu.Car {
49
49
  declare namespace Xianyu.Ctox {
50
50
  /** {@link https://open.taobao.com/tmc.htm?docId=2564&docType=9 闲鱼C2X抽佣退佣消息同步} */
51
51
  interface CommissionStateSyn {
52
+ /** 支付宝交易号 */
53
+ alipay_trade_no?: string;
52
54
  /** 订单id */
53
55
  biz_order_id: string;
54
56
  /** 11-抽佣帮卖卖家服务费;12-抽佣:帮卖买家服务费;21-退佣:帮卖售后 */
@@ -57,6 +59,8 @@ declare namespace Xianyu.Ctox {
57
59
  fee_commission: string;
58
60
  /** 1-正向抽佣;2-逆向退佣 */
59
61
  fee_type: string;
62
+ /** 扣佣时间 */
63
+ wirte_off_time?: string;
60
64
  }
61
65
 
62
66
  /** {@link https://open.taobao.com/tmc.htm?docId=2535&docType=9 c2x代扣协议变更通知} */