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 +3 -3
- package/package.json +2 -2
- package/types/index.d.ts +4 -0
- package/types/message.in.d.ts +5 -1
- package/types/niaochao.d.ts +36 -4
- package/types/taobao.d.ts +2 -0
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# tmc.js
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Event driven and chained Taobao Message Channel(TMC) for NodeJS
|
|
4
4
|
|
|
5
5
|
[](https://github.com/TheNorthMemory/tmc.js/releases)
|
|
6
6
|
[](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+ 类别,
|
|
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
|
-
| 五道口配送 |
|
|
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.
|
|
4
|
-
"description": "
|
|
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的签收信息} */
|
package/types/message.in.d.ts
CHANGED
|
@@ -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 =
|
|
1366
|
+
type NiaochaoTccompass = NiaochaoTccompassDockInfoChange
|
|
1367
|
+
| NiaochaoTccompassWarehouseNetworkChange;
|
|
1364
1368
|
/**
|
|
1365
1369
|
* - {@link TaobaoAgRefundSignInfo AliGenius > 商家在AG的签收信息}
|
|
1366
1370
|
*/
|
package/types/niaochao.d.ts
CHANGED
|
@@ -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
|
-
/**
|
|
37
|
+
/** 服务,WAVE_ARRIVE(1, "波次达"),ONE_HOUR(0, "小时达"), */
|
|
6
38
|
service_type: string;
|
|
7
|
-
/**
|
|
39
|
+
/** 链路追踪ID */
|
|
8
40
|
trace_id: string;
|
|
9
|
-
/**
|
|
41
|
+
/** 仓编码 */
|
|
10
42
|
warehouse_code: string;
|
|
11
|
-
/**
|
|
43
|
+
/** 仓商家编码 */
|
|
12
44
|
warehouse_merchant_code: string;
|
|
13
45
|
}
|
|
14
46
|
}
|
package/types/taobao.d.ts
CHANGED