tmc.js 0.3.28 → 0.3.30

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,11 +134,11 @@ new Tmc('your_app_key', 'your_app_secret', { autoReplyConfirmation: false })
134
134
 
135
135
  ## 支持的TOPICS
136
136
 
137
- <details><summary>共计 83+ 类别,481+ 消息数</summary>
137
+ <details><summary>共计 83+ 类别,483+ 消息数</summary>
138
138
 
139
139
  | 类别 | 消息数 |
140
140
  | --- | --- |
141
- | 淘宝交易 | 23 |
141
+ | 淘宝交易 | 24 |
142
142
  | 淘宝退款 | 13 |
143
143
  | 淘宝商品 | 13 |
144
144
  | 淘宝分销 | 27 |
@@ -150,7 +150,7 @@ new Tmc('your_app_key', 'your_app_secret', { autoReplyConfirmation: false })
150
150
  | 导购平台 | 21 |
151
151
  | 淘宝汽车票 | 4 |
152
152
  | 服务市场 | 9 |
153
- | 天猫服务 | 23 |
153
+ | 天猫服务 | 24 |
154
154
  | 天猫美妆 | 2 |
155
155
  | 聚石塔 | 9 |
156
156
  | 淘宝物流 | 1 |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tmc.js",
3
- "version": "0.3.28",
3
+ "version": "0.3.30",
4
4
  "description": "Event driven and chained Taobao Message Channel(TMC) for NodeJS",
5
5
  "author": "James ZHANG",
6
6
  "license": "MIT",
@@ -1098,6 +1098,21 @@ declare namespace Alibaba.Mos {
1098
1098
  }
1099
1099
  }
1100
1100
 
1101
+ /** 天猫服务 */
1102
+ declare namespace Alibaba.Msd {
1103
+ /** 喵速达服务供应链结算单明细消息 */
1104
+ interface SettlementBillDetail {
1105
+ /** 支付流水号 */
1106
+ alipayOrderId: string;
1107
+ /** 结算金额 */
1108
+ amount: string;
1109
+ /** 服务交易订单id */
1110
+ serviceTradeOrderId: number;
1111
+ /** 服务单id */
1112
+ spServiceOrderId: number;
1113
+ }
1114
+ }
1115
+
1101
1116
  /** 天猫服务 */
1102
1117
  declare namespace Alibaba.Msfservice {
1103
1118
  /** 喵师傅审核单通知 */
package/types/index.d.ts CHANGED
@@ -202,6 +202,8 @@ declare interface TaoTopicsDescriptor {
202
202
  alibaba_mos_SaleOrder(fn: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaMosSaleOrder) => void): TaoMessageConsumer;
203
203
  /** {@link IncomingMessage.AlibabaMosSaleOrderRefund 银泰开放平台消息 > 销售单退款消息} */
204
204
  alibaba_mos_SaleOrderRefund(fn: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaMosSaleOrderRefund) => void): TaoMessageConsumer;
205
+ /** {@link IncomingMessage.AlibabaMsdSettlementBillDetail 天猫服务 > 喵速达服务供应链结算单明细消息} */
206
+ alibaba_msd_SettlementBillDetail(fn: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaMsdSettlementBillDetail) => void): TaoMessageConsumer;
205
207
  /** {@link IncomingMessage.AlibabaMsfserviceAuditCreate 天猫服务 > 喵师傅审核单通知} */
206
208
  alibaba_msfservice_AuditCreate(fn: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaMsfserviceAuditCreate) => void): TaoMessageConsumer;
207
209
  /** {@link IncomingMessage.AlibabaMsfserviceReminderCreate 天猫服务 > 催单消息} */
@@ -564,6 +566,8 @@ declare interface TaoTopicsDescriptor {
564
566
  taobao_fuwu_OrderCreated(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoFuwuOrderCreated) => void): TaoMessageConsumer;
565
567
  /** {@link IncomingMessage.TaobaoFuwuOrderPaid 淘宝交易 > 订单支付消息} */
566
568
  taobao_fuwu_OrderPaid(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoFuwuOrderPaid) => void): TaoMessageConsumer;
569
+ /** {@link IncomingMessage.TaobaoFuwuRecycleFinalService 淘宝交易 > 以旧换新取送一体服务最终决策通知} */
570
+ taobao_fuwu_RecycleFinalService(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoFuwuRecycleFinalService) => void): TaoMessageConsumer;
567
571
  /** {@link IncomingMessage.TaobaoFuwuServiceOpen 淘宝交易 > 服务开通消息} */
568
572
  taobao_fuwu_ServiceOpen(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoFuwuServiceOpen) => void): TaoMessageConsumer;
569
573
  /** {@link IncomingMessage.TaobaoFuwuWitkeySyncModeling 淘宝交易 > 威客同步建模数据} */
@@ -1002,6 +1006,8 @@ declare interface TaoTopicsDescriptor {
1002
1006
  alibaba_monitor(fn: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaMonitor) => void): TaoMessageConsumer;
1003
1007
  /** {@link IncomingMessage.AlibabaMos} */
1004
1008
  alibaba_mos(fn: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaMos) => void): TaoMessageConsumer;
1009
+ /** {@link IncomingMessage.AlibabaMsd} */
1010
+ alibaba_msd(fn: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaMsd) => void): TaoMessageConsumer;
1005
1011
  /** {@link IncomingMessage.AlibabaMsfservice} */
1006
1012
  alibaba_msfservice(fn: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaMsfservice) => void): TaoMessageConsumer;
1007
1013
  /** {@link IncomingMessage.AlibabaNazca} */
@@ -1437,6 +1443,8 @@ declare interface TaoEventsListener {
1437
1443
  on(topic: 'alibaba_mos_SaleOrder', listener: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaMosSaleOrder) => void): TaoMessageConsumer;
1438
1444
  /** {@link IncomingMessage.AlibabaMosSaleOrderRefund 银泰开放平台消息 > 销售单退款消息} */
1439
1445
  on(topic: 'alibaba_mos_SaleOrderRefund', listener: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaMosSaleOrderRefund) => void): TaoMessageConsumer;
1446
+ /** {@link IncomingMessage.AlibabaMsdSettlementBillDetail 天猫服务 > 喵速达服务供应链结算单明细消息} */
1447
+ on(topic: 'alibaba_msd_SettlementBillDetail', listener: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaMsdSettlementBillDetail) => void): TaoMessageConsumer;
1440
1448
  /** {@link IncomingMessage.AlibabaMsfserviceAuditCreate 天猫服务 > 喵师傅审核单通知} */
1441
1449
  on(topic: 'alibaba_msfservice_AuditCreate', listener: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaMsfserviceAuditCreate) => void): TaoMessageConsumer;
1442
1450
  /** {@link IncomingMessage.AlibabaMsfserviceReminderCreate 天猫服务 > 催单消息} */
@@ -1799,6 +1807,8 @@ declare interface TaoEventsListener {
1799
1807
  on(topic: 'taobao_fuwu_OrderCreated', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoFuwuOrderCreated) => void): TaoMessageConsumer;
1800
1808
  /** {@link IncomingMessage.TaobaoFuwuOrderPaid 淘宝交易 > 订单支付消息} */
1801
1809
  on(topic: 'taobao_fuwu_OrderPaid', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoFuwuOrderPaid) => void): TaoMessageConsumer;
1810
+ /** {@link IncomingMessage.TaobaoFuwuRecycleFinalService 淘宝交易 > 以旧换新取送一体服务最终决策通知} */
1811
+ on(topic: 'taobao_fuwu_RecycleFinalService', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoFuwuRecycleFinalService) => void): TaoMessageConsumer;
1802
1812
  /** {@link IncomingMessage.TaobaoFuwuServiceOpen 淘宝交易 > 服务开通消息} */
1803
1813
  on(topic: 'taobao_fuwu_ServiceOpen', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoFuwuServiceOpen) => void): TaoMessageConsumer;
1804
1814
  /** {@link IncomingMessage.TaobaoFuwuWitkeySyncModeling 淘宝交易 > 威客同步建模数据} */
@@ -2237,6 +2247,8 @@ declare interface TaoEventsListener {
2237
2247
  on(topic: 'alibaba_monitor', listener: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaMonitor) => void): TaoMessageConsumer;
2238
2248
  /** {@link IncomingMessage.AlibabaMos} */
2239
2249
  on(topic: 'alibaba_mos', listener: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaMos) => void): TaoMessageConsumer;
2250
+ /** {@link IncomingMessage.AlibabaMsd} */
2251
+ on(topic: 'alibaba_msd', listener: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaMsd) => void): TaoMessageConsumer;
2240
2252
  /** {@link IncomingMessage.AlibabaMsfservice} */
2241
2253
  on(topic: 'alibaba_msfservice', listener: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaMsfservice) => void): TaoMessageConsumer;
2242
2254
  /** {@link IncomingMessage.AlibabaNazca} */
@@ -163,6 +163,8 @@ declare namespace IncomingMessage {
163
163
  type AlibabaMosSaleOrder = Message & { content?: MessageContent & { topic?: 'alibaba_mos_SaleOrder', content?: string | Alibaba.Mos.SaleOrder } };
164
164
  /** {@link Alibaba.Mos.SaleOrderRefund 银泰开放平台消息 > 销售单退款消息} */
165
165
  type AlibabaMosSaleOrderRefund = Message & { content?: MessageContent & { topic?: 'alibaba_mos_SaleOrderRefund', content?: string | Alibaba.Mos.SaleOrderRefund } };
166
+ /** {@link Alibaba.Msd.SettlementBillDetail 天猫服务 > 喵速达服务供应链结算单明细消息} */
167
+ type AlibabaMsdSettlementBillDetail = Message & { content?: MessageContent & { topic?: 'alibaba_msd_SettlementBillDetail', content?: string | Alibaba.Msd.SettlementBillDetail } };
166
168
  /** {@link Alibaba.Msfservice.AuditCreate 天猫服务 > 喵师傅审核单通知} */
167
169
  type AlibabaMsfserviceAuditCreate = Message & { content?: MessageContent & { topic?: 'alibaba_msfservice_AuditCreate', content?: string | Alibaba.Msfservice.AuditCreate } };
168
170
  /** {@link Alibaba.Msfservice.ReminderCreate 天猫服务 > 催单消息} */
@@ -525,6 +527,8 @@ declare namespace IncomingMessage {
525
527
  type TaobaoFuwuOrderCreated = Message & { content?: MessageContent & { topic?: 'taobao_fuwu_OrderCreated', content?: string | Taobao.Fuwu.OrderCreated } };
526
528
  /** {@link Taobao.Fuwu.OrderPaid 淘宝交易 > 订单支付消息} */
527
529
  type TaobaoFuwuOrderPaid = Message & { content?: MessageContent & { topic?: 'taobao_fuwu_OrderPaid', content?: string | Taobao.Fuwu.OrderPaid } };
530
+ /** {@link Taobao.Fuwu.RecycleFinalService 淘宝交易 > 以旧换新取送一体服务最终决策通知} */
531
+ type TaobaoFuwuRecycleFinalService = Message & { content?: MessageContent & { topic?: 'taobao_fuwu_RecycleFinalService', content?: string | Taobao.Fuwu.RecycleFinalService } };
528
532
  /** {@link Taobao.Fuwu.ServiceOpen 淘宝交易 > 服务开通消息} */
529
533
  type TaobaoFuwuServiceOpen = Message & { content?: MessageContent & { topic?: 'taobao_fuwu_ServiceOpen', content?: string | Taobao.Fuwu.ServiceOpen } };
530
534
  /** {@link Taobao.Fuwu.WitkeySyncModeling 淘宝交易 > 威客同步建模数据} */
@@ -1101,6 +1105,10 @@ declare namespace IncomingMessage {
1101
1105
  */
1102
1106
  type AlibabaMos = AlibabaMosSaleOrder
1103
1107
  | AlibabaMosSaleOrderRefund;
1108
+ /**
1109
+ * - {@link AlibabaMsdSettlementBillDetail 天猫服务 > 喵速达服务供应链结算单明细消息}
1110
+ */
1111
+ type AlibabaMsd = AlibabaMsdSettlementBillDetail;
1104
1112
  /**
1105
1113
  * - {@link AlibabaMsfserviceAuditCreate 天猫服务 > 喵师傅审核单通知}
1106
1114
  * - {@link AlibabaMsfserviceReminderCreate 天猫服务 > 催单消息}
@@ -1596,6 +1604,7 @@ declare namespace IncomingMessage {
1596
1604
  * - {@link TaobaoFuwuOrderClosed 淘宝交易 > 订单关闭消息}
1597
1605
  * - {@link TaobaoFuwuOrderCreated 淘宝交易 > 订单创建消息}
1598
1606
  * - {@link TaobaoFuwuOrderPaid 淘宝交易 > 订单支付消息}
1607
+ * - {@link TaobaoFuwuRecycleFinalService 淘宝交易 > 以旧换新取送一体服务最终决策通知}
1599
1608
  * - {@link TaobaoFuwuServiceOpen 淘宝交易 > 服务开通消息}
1600
1609
  * - {@link TaobaoFuwuWitkeySyncModeling 淘宝交易 > 威客同步建模数据}
1601
1610
  */
@@ -1603,6 +1612,7 @@ declare namespace IncomingMessage {
1603
1612
  | TaobaoFuwuOrderClosed
1604
1613
  | TaobaoFuwuOrderCreated
1605
1614
  | TaobaoFuwuOrderPaid
1615
+ | TaobaoFuwuRecycleFinalService
1606
1616
  | TaobaoFuwuServiceOpen
1607
1617
  | TaobaoFuwuWitkeySyncModeling;
1608
1618
  /**
@@ -2134,6 +2144,7 @@ declare namespace IncomingMessage {
2134
2144
  * - {@link AlibabaMmc}
2135
2145
  * - {@link AlibabaMonitor}
2136
2146
  * - {@link AlibabaMos}
2147
+ * - {@link AlibabaMsd}
2137
2148
  * - {@link AlibabaMsfservice}
2138
2149
  * - {@link AlibabaNazca}
2139
2150
  * - {@link AlibabaNlife}
@@ -2163,6 +2174,7 @@ declare namespace IncomingMessage {
2163
2174
  | AlibabaMmc
2164
2175
  | AlibabaMonitor
2165
2176
  | AlibabaMos
2177
+ | AlibabaMsd
2166
2178
  | AlibabaMsfservice
2167
2179
  | AlibabaNazca
2168
2180
  | AlibabaNlife
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)-收费管理-收费项目列表 能够获得该应用的收费代码 */
@@ -1426,7 +1434,7 @@ declare namespace Taobao.Jzfx {
1426
1434
  modified: Date | number | string;
1427
1435
  /** 采购单号 */
1428
1436
  purchase_id: number;
1429
- /** 采购单状态,WAIT_SELLER_SEND_GOODS(等待发货) WAIT_SELLER_SEND_GOODS(待确认收款) WAIT_BUYER_PAY(等待付款) WAIT_BUYER_CONFIRM_GOODS(已发货) TRADE_REFUNDING(退款中) TRADE_FINISHED(交易成功) TRADE_CLOSED(已关闭) TRADE_REFUNDED(已退款) */
1437
+ /** 采购单状态:WAIT_BUYER_PAY(待付款) WAIT_SELLER_SEND_GOODS(待发货) WAIT_BUYER_CONFIRM_GOODS(待收货确认) WAIT_SETTLE(已收货待结算) SETTLE_IN_PROGRESS(结算中) TRADE_FINISHED(交易成功) TRADE_CLOSED(已关闭) */
1430
1438
  status: string;
1431
1439
  /** 供应商店铺昵称 */
1432
1440
  supplier_shop_name: string;