tmc.js 0.3.20 → 0.3.21

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
@@ -1,6 +1,6 @@
1
1
  # tmc.js
2
2
 
3
- Events driven and chained Taobao Message Channel(TMC) for NodeJS
3
+ Event driven and chained Taobao Message Channel(TMC) for NodeJS
4
4
 
5
5
  [![release](https://img.shields.io/npm/v/tmc.js)](https://github.com/TheNorthMemory/tmc.js/releases)
6
6
  [![vulnerabilities](https://img.shields.io/snyk/vulnerabilities/npm/tmc.js?label=snyk.io)](https://snyk.io/advisor/npm-package/tmc.js)
@@ -134,7 +134,7 @@ new Tmc('your_app_key', 'your_app_secret', { autoReplyConfirmation: false })
134
134
 
135
135
  ## 支持的TOPICS
136
136
 
137
- <details><summary>共计 83+ 类别,453+ 消息数</summary>
137
+ <details><summary>共计 83+ 类别,454+ 消息数</summary>
138
138
 
139
139
  | 类别 | 消息数 |
140
140
  | --- | --- |
@@ -168,7 +168,7 @@ new Tmc('your_app_key', 'your_app_secret', { autoReplyConfirmation: false })
168
168
  | 零售plus | 8 |
169
169
  | 客户运营平台API | 13 |
170
170
  | AE-交易 | 10 |
171
- | 五道口配送 | 2 |
171
+ | 五道口配送 | 3 |
172
172
  | 百川 | 2 |
173
173
  | 闲鱼 | 14 |
174
174
  | 闲鱼回收商消息 | 5 |
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tmc.js",
3
- "version": "0.3.20",
4
- "description": "Events driven and chained Taobao Message Channel(TMC) for NodeJS",
3
+ "version": "0.3.21",
4
+ "description": "Event driven and chained Taobao Message Channel(TMC) for NodeJS",
5
5
  "author": "James ZHANG",
6
6
  "license": "MIT",
7
7
  "types": "types/index.d.ts",
package/types/index.d.ts CHANGED
@@ -420,6 +420,8 @@ declare interface TaoTopicsDescriptor {
420
420
  lst_supplier_BroadcastFastRefundMessage(fn: (this: TaoMessageConsumer, message: IncomingMessage.LstSupplierBroadcastFastRefundMessage) => void): TaoMessageConsumer;
421
421
  /** {@link IncomingMessage.LstSupplierFastRefundMessageCreate 零售通_公共 > 品牌商极速退款消息创建} */
422
422
  lst_supplier_FastRefundMessageCreate(fn: (this: TaoMessageConsumer, message: IncomingMessage.LstSupplierFastRefundMessageCreate) => void): TaoMessageConsumer;
423
+ /** {@link IncomingMessage.NiaochaoTccompassDockInfoChange 五道口配送 > 鸟潮站点变更消息} */
424
+ niaochao_tccompass_DockInfoChange(fn: (this: TaoMessageConsumer, message: IncomingMessage.NiaochaoTccompassDockInfoChange) => void): TaoMessageConsumer;
423
425
  /** {@link IncomingMessage.NiaochaoTccompassWarehouseNetworkChange 五道口配送 > 仓网络变更消息} */
424
426
  niaochao_tccompass_WarehouseNetworkChange(fn: (this: TaoMessageConsumer, message: IncomingMessage.NiaochaoTccompassWarehouseNetworkChange) => void): TaoMessageConsumer;
425
427
  /** {@link IncomingMessage.TaobaoAgRefundSignInfo AliGenius > 商家在AG的签收信息} */
@@ -1587,6 +1589,8 @@ declare interface TaoEventsListener {
1587
1589
  on(topic: 'lst_supplier_BroadcastFastRefundMessage', listener: (this: TaoMessageConsumer, message: IncomingMessage.LstSupplierBroadcastFastRefundMessage) => void): TaoMessageConsumer;
1588
1590
  /** {@link IncomingMessage.LstSupplierFastRefundMessageCreate 零售通_公共 > 品牌商极速退款消息创建} */
1589
1591
  on(topic: 'lst_supplier_FastRefundMessageCreate', listener: (this: TaoMessageConsumer, message: IncomingMessage.LstSupplierFastRefundMessageCreate) => void): TaoMessageConsumer;
1592
+ /** {@link IncomingMessage.NiaochaoTccompassDockInfoChange 五道口配送 > 鸟潮站点变更消息} */
1593
+ on(topic: 'niaochao_tccompass_DockInfoChange', listener: (this: TaoMessageConsumer, message: IncomingMessage.NiaochaoTccompassDockInfoChange) => void): TaoMessageConsumer;
1590
1594
  /** {@link IncomingMessage.NiaochaoTccompassWarehouseNetworkChange 五道口配送 > 仓网络变更消息} */
1591
1595
  on(topic: 'niaochao_tccompass_WarehouseNetworkChange', listener: (this: TaoMessageConsumer, message: IncomingMessage.NiaochaoTccompassWarehouseNetworkChange) => void): TaoMessageConsumer;
1592
1596
  /** {@link IncomingMessage.TaobaoAgRefundSignInfo AliGenius > 商家在AG的签收信息} */
@@ -381,6 +381,8 @@ declare namespace IncomingMessage {
381
381
  type LstSupplierBroadcastFastRefundMessage = Message & { content?: MessageContent & { topic?: 'lst_supplier_BroadcastFastRefundMessage', content?: string | Lst.Supplier.BroadcastFastRefundMessage } };
382
382
  /** {@link Lst.Supplier.FastRefundMessageCreate 零售通_公共 > 品牌商极速退款消息创建} */
383
383
  type LstSupplierFastRefundMessageCreate = Message & { content?: MessageContent & { topic?: 'lst_supplier_FastRefundMessageCreate', content?: string | Lst.Supplier.FastRefundMessageCreate } };
384
+ /** {@link Niaochao.Tccompass.DockInfoChange 五道口配送 > 鸟潮站点变更消息} */
385
+ type NiaochaoTccompassDockInfoChange = Message & { content?: MessageContent & { topic?: 'niaochao_tccompass_DockInfoChange', content?: string | Niaochao.Tccompass.DockInfoChange } };
384
386
  /** {@link Niaochao.Tccompass.WarehouseNetworkChange 五道口配送 > 仓网络变更消息} */
385
387
  type NiaochaoTccompassWarehouseNetworkChange = Message & { content?: MessageContent & { topic?: 'niaochao_tccompass_WarehouseNetworkChange', content?: string | Niaochao.Tccompass.WarehouseNetworkChange } };
386
388
  /** {@link Taobao.Ag.RefundSignInfo AliGenius > 商家在AG的签收信息} */
@@ -1358,9 +1360,11 @@ declare namespace IncomingMessage {
1358
1360
  type LstSupplier = LstSupplierBroadcastFastRefundMessage
1359
1361
  | LstSupplierFastRefundMessageCreate;
1360
1362
  /**
1363
+ * - {@link NiaochaoTccompassDockInfoChange 五道口配送 > 鸟潮站点变更消息}
1361
1364
  * - {@link NiaochaoTccompassWarehouseNetworkChange 五道口配送 > 仓网络变更消息}
1362
1365
  */
1363
- type NiaochaoTccompass = NiaochaoTccompassWarehouseNetworkChange;
1366
+ type NiaochaoTccompass = NiaochaoTccompassDockInfoChange
1367
+ | NiaochaoTccompassWarehouseNetworkChange;
1364
1368
  /**
1365
1369
  * - {@link TaobaoAgRefundSignInfo AliGenius > 商家在AG的签收信息}
1366
1370
  */
@@ -1,14 +1,46 @@
1
1
  /** 五道口配送 */
2
2
  declare namespace Niaochao.Tccompass {
3
+ /** 鸟潮站点变更消息 */
4
+ interface DockInfoChange {
5
+ /** 地址 */
6
+ address?: string;
7
+ /** 区编码 */
8
+ area_id?: string;
9
+ /** 站点编码 */
10
+ biz_node_code: string;
11
+ /** 站点名称 */
12
+ biz_node_name: string;
13
+ /** COLLECT_DOCK(2, "揽运站"), DELIVERY_DOCK(3, "配送站"), CFC(4, "近端履约中心"), */
14
+ biz_node_type: number;
15
+ /** 城市编码 */
16
+ city_id?: string;
17
+ /** 城市名称 */
18
+ city_name?: string;
19
+ /** 站点联系人 */
20
+ contacts_name?: string;
21
+ /** 联系电话 */
22
+ contacts_tel?: string;
23
+ /** 站点商家编码 */
24
+ merchant_code: string;
25
+ /** 经纬度 */
26
+ poi?: string;
27
+ /** 省份编码 */
28
+ prov_id?: string;
29
+ /** 省份名称 */
30
+ prov_name?: string;
31
+ /** 链路追踪traceId */
32
+ trace_id?: string;
33
+ }
34
+
3
35
  /** 仓网络变更消息 */
4
36
  interface WarehouseNetworkChange {
5
- /** service_type */
37
+ /** 服务,WAVE_ARRIVE(1, "波次达"),ONE_HOUR(0, "小时达"), */
6
38
  service_type: string;
7
- /** trace_id */
39
+ /** 链路追踪ID */
8
40
  trace_id: string;
9
- /** warehouse_code */
41
+ /** 仓编码 */
10
42
  warehouse_code: string;
11
- /** warehouse_merchant_code */
43
+ /** 仓商家编码 */
12
44
  warehouse_merchant_code: string;
13
45
  }
14
46
  }
package/types/taobao.d.ts CHANGED
@@ -223,6 +223,8 @@ declare namespace Taobao.Carlease {
223
223
  declare namespace Taobao.Content {
224
224
  /** 内容开放短视频模板支付消息 */
225
225
  interface OrderPaid {
226
+ /** 订单标识 */
227
+ outer_trade_code?: string;
226
228
  /** 外部产品ID */
227
229
  out_product_id: string;
228
230
  /** 服务市场的产品子订单号 */