tmc.js 0.3.8 → 0.3.9
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 +2 -1
- package/package.json +1 -1
- package/types/index.d.ts +13 -0
- package/types/message.in.d.ts +12 -0
- package/types/message.out.d.ts +615 -0
- package/types/taobao.d.ts +21 -0
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>共计
|
|
137
|
+
<details><summary>共计 82+ 类别,441+ 消息数</summary>
|
|
138
138
|
|
|
139
139
|
| 类别 | 消息数 |
|
|
140
140
|
| --- | --- |
|
|
@@ -161,6 +161,7 @@ new Tmc('your_app_key', 'your_app_secret', { autoReplyConfirmation: false })
|
|
|
161
161
|
| 电子发票 | 20 |
|
|
162
162
|
| 航旅度假交易 | 8 |
|
|
163
163
|
| YunOS YoC | 2 |
|
|
164
|
+
| 淘宝直播API | 2 |
|
|
164
165
|
| 阿里物联 | 2 |
|
|
165
166
|
| 全球购跨境物流 | 1 |
|
|
166
167
|
| 零售plus | 8 |
|
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
/// <reference path="message-type.d.ts" />
|
|
6
6
|
/// <reference path="message.d.ts" />
|
|
7
7
|
/// <reference path="message.in.d.ts" />
|
|
8
|
+
/// <reference path="message.out.d.ts" />
|
|
8
9
|
/// <reference path="value-format.d.ts" />
|
|
9
10
|
|
|
10
11
|
import { BinaryLike } from "crypto";
|
|
@@ -582,6 +583,10 @@ declare interface TaoTopicsDescriptor {
|
|
|
582
583
|
taobao_jipiao_SellerOrderNotify(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoJipiaoSellerOrderNotify) => void): TaoMessageConsumer;
|
|
583
584
|
/** {@link IncomingMessage.TaobaoJipiaoSellerRefundOrderNotify 淘宝机票 > 【机票代理商】退票订单通知} */
|
|
584
585
|
taobao_jipiao_SellerRefundOrderNotify(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoJipiaoSellerRefundOrderNotify) => void): TaoMessageConsumer;
|
|
586
|
+
/** {@link IncomingMessage.TaobaoLiveFeedRelated 淘宝直播API > 淘宝直播上下播消息} */
|
|
587
|
+
taobao_live_FeedRelated(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoLiveFeedRelated) => void): TaoMessageConsumer;
|
|
588
|
+
/** {@link IncomingMessage.TaobaoLiveTcpOrder 淘宝直播API > 淘宝直播订单消息} */
|
|
589
|
+
taobao_live_TcpOrder(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoLiveTcpOrder) => void): TaoMessageConsumer;
|
|
585
590
|
/** {@link IncomingMessage.TaobaoLogisticsLogsticDetailTrace 淘宝物流 > 物流详情跟踪消息} */
|
|
586
591
|
taobao_logistics_LogsticDetailTrace(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoLogisticsLogsticDetailTrace) => void): TaoMessageConsumer;
|
|
587
592
|
/** {@link IncomingMessage.TaobaoModifyaddressResultNotify 聚石塔 > 自助改地址结果消息通知} */
|
|
@@ -1050,6 +1055,8 @@ declare interface TaoTopicsDescriptor {
|
|
|
1050
1055
|
taobao_item(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoItem) => void): TaoMessageConsumer;
|
|
1051
1056
|
/** {@link IncomingMessage.TaobaoJipiao} */
|
|
1052
1057
|
taobao_jipiao(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoJipiao) => void): TaoMessageConsumer;
|
|
1058
|
+
/** {@link IncomingMessage.TaobaoLive} */
|
|
1059
|
+
taobao_live(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoLive) => void): TaoMessageConsumer;
|
|
1053
1060
|
/** {@link IncomingMessage.TaobaoLogistics} */
|
|
1054
1061
|
taobao_logistics(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoLogistics) => void): TaoMessageConsumer;
|
|
1055
1062
|
/** {@link IncomingMessage.TaobaoModifyaddress} */
|
|
@@ -1705,6 +1712,10 @@ declare interface TaoEventsListener {
|
|
|
1705
1712
|
on(topic: 'taobao_jipiao_SellerOrderNotify', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoJipiaoSellerOrderNotify) => void): TaoMessageConsumer;
|
|
1706
1713
|
/** {@link IncomingMessage.TaobaoJipiaoSellerRefundOrderNotify 淘宝机票 > 【机票代理商】退票订单通知} */
|
|
1707
1714
|
on(topic: 'taobao_jipiao_SellerRefundOrderNotify', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoJipiaoSellerRefundOrderNotify) => void): TaoMessageConsumer;
|
|
1715
|
+
/** {@link IncomingMessage.TaobaoLiveFeedRelated 淘宝直播API > 淘宝直播上下播消息} */
|
|
1716
|
+
on(topic: 'taobao_live_FeedRelated', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoLiveFeedRelated) => void): TaoMessageConsumer;
|
|
1717
|
+
/** {@link IncomingMessage.TaobaoLiveTcpOrder 淘宝直播API > 淘宝直播订单消息} */
|
|
1718
|
+
on(topic: 'taobao_live_TcpOrder', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoLiveTcpOrder) => void): TaoMessageConsumer;
|
|
1708
1719
|
/** {@link IncomingMessage.TaobaoLogisticsLogsticDetailTrace 淘宝物流 > 物流详情跟踪消息} */
|
|
1709
1720
|
on(topic: 'taobao_logistics_LogsticDetailTrace', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoLogisticsLogsticDetailTrace) => void): TaoMessageConsumer;
|
|
1710
1721
|
/** {@link IncomingMessage.TaobaoModifyaddressResultNotify 聚石塔 > 自助改地址结果消息通知} */
|
|
@@ -2173,6 +2184,8 @@ declare interface TaoEventsListener {
|
|
|
2173
2184
|
on(topic: 'taobao_item', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoItem) => void): TaoMessageConsumer;
|
|
2174
2185
|
/** {@link IncomingMessage.TaobaoJipiao} */
|
|
2175
2186
|
on(topic: 'taobao_jipiao', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoJipiao) => void): TaoMessageConsumer;
|
|
2187
|
+
/** {@link IncomingMessage.TaobaoLive} */
|
|
2188
|
+
on(topic: 'taobao_live', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoLive) => void): TaoMessageConsumer;
|
|
2176
2189
|
/** {@link IncomingMessage.TaobaoLogistics} */
|
|
2177
2190
|
on(topic: 'taobao_logistics', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoLogistics) => void): TaoMessageConsumer;
|
|
2178
2191
|
/** {@link IncomingMessage.TaobaoModifyaddress} */
|
package/types/message.in.d.ts
CHANGED
|
@@ -543,6 +543,10 @@ declare namespace IncomingMessage {
|
|
|
543
543
|
type TaobaoJipiaoSellerOrderNotify = Message & { content?: MessageContent & { content?: string | Taobao.Jipiao.SellerOrderNotify } };
|
|
544
544
|
/** {@link Taobao.Jipiao.SellerRefundOrderNotify 淘宝机票 > 【机票代理商】退票订单通知} */
|
|
545
545
|
type TaobaoJipiaoSellerRefundOrderNotify = Message & { content?: MessageContent & { content?: string | Taobao.Jipiao.SellerRefundOrderNotify } };
|
|
546
|
+
/** {@link Taobao.Live.FeedRelated 淘宝直播API > 淘宝直播上下播消息} */
|
|
547
|
+
type TaobaoLiveFeedRelated = Message & { content?: MessageContent & { content?: string | Taobao.Live.FeedRelated } };
|
|
548
|
+
/** {@link Taobao.Live.TcpOrder 淘宝直播API > 淘宝直播订单消息} */
|
|
549
|
+
type TaobaoLiveTcpOrder = Message & { content?: MessageContent & { content?: string | Taobao.Live.TcpOrder } };
|
|
546
550
|
/** {@link Taobao.Logistics.LogsticDetailTrace 淘宝物流 > 物流详情跟踪消息} */
|
|
547
551
|
type TaobaoLogisticsLogsticDetailTrace = Message & { content?: MessageContent & { content?: string | Taobao.Logistics.LogsticDetailTrace } };
|
|
548
552
|
/** {@link Taobao.Modifyaddress.ResultNotify 聚石塔 > 自助改地址结果消息通知} */
|
|
@@ -1531,6 +1535,12 @@ declare namespace IncomingMessage {
|
|
|
1531
1535
|
| TaobaoJipiaoJipiaoRefundOrderNotify
|
|
1532
1536
|
| TaobaoJipiaoSellerOrderNotify
|
|
1533
1537
|
| TaobaoJipiaoSellerRefundOrderNotify;
|
|
1538
|
+
/**
|
|
1539
|
+
* - {@link TaobaoLiveFeedRelated 淘宝直播API > 淘宝直播上下播消息}
|
|
1540
|
+
* - {@link TaobaoLiveTcpOrder 淘宝直播API > 淘宝直播订单消息}
|
|
1541
|
+
*/
|
|
1542
|
+
type TaobaoLive = TaobaoLiveFeedRelated
|
|
1543
|
+
| TaobaoLiveTcpOrder;
|
|
1534
1544
|
/**
|
|
1535
1545
|
* - {@link TaobaoLogisticsLogsticDetailTrace 淘宝物流 > 物流详情跟踪消息}
|
|
1536
1546
|
*/
|
|
@@ -2097,6 +2107,7 @@ declare namespace IncomingMessage {
|
|
|
2097
2107
|
* - {@link TaobaoIstore}
|
|
2098
2108
|
* - {@link TaobaoItem}
|
|
2099
2109
|
* - {@link TaobaoJipiao}
|
|
2110
|
+
* - {@link TaobaoLive}
|
|
2100
2111
|
* - {@link TaobaoLogistics}
|
|
2101
2112
|
* - {@link TaobaoModifyaddress}
|
|
2102
2113
|
* - {@link TaobaoModifyorder}
|
|
@@ -2142,6 +2153,7 @@ declare namespace IncomingMessage {
|
|
|
2142
2153
|
| TaobaoIstore
|
|
2143
2154
|
| TaobaoItem
|
|
2144
2155
|
| TaobaoJipiao
|
|
2156
|
+
| TaobaoLive
|
|
2145
2157
|
| TaobaoLogistics
|
|
2146
2158
|
| TaobaoModifyaddress
|
|
2147
2159
|
| TaobaoModifyorder
|
|
@@ -0,0 +1,615 @@
|
|
|
1
|
+
/// <reference path="message.d.ts" />
|
|
2
|
+
|
|
3
|
+
declare namespace OutgoingMessage {
|
|
4
|
+
/** {@link Alibaba.Nazca.AbandonCertResponse 网上法庭 > 作废存证返回消息接口} */
|
|
5
|
+
type AlibabaNazcaAbandonCertResponse = Message & { content: MessageContent & { content: string | Alibaba.Nazca.AbandonCertResponse } };
|
|
6
|
+
/** {@link Alibaba.Nazca.QueryChargeNumResponse 网上法庭 > 查询收费数量返回消息} */
|
|
7
|
+
type AlibabaNazcaQueryChargeNumResponse = Message & { content: MessageContent & { content: string | Alibaba.Nazca.QueryChargeNumResponse } };
|
|
8
|
+
/** {@link Alibaba.Nazca.SaveCertResponse 网上法庭 > 存证返回消息接口} */
|
|
9
|
+
type AlibabaNazcaSaveCertResponse = Message & { content: MessageContent & { content: string | Alibaba.Nazca.SaveCertResponse } };
|
|
10
|
+
/** {@link Alibaba.Nazca.UpdateChargeNumResponse 网上法庭 > 更新收费数量返回消息} */
|
|
11
|
+
type AlibabaNazcaUpdateChargeNumResponse = Message & { content: MessageContent & { content: string | Alibaba.Nazca.UpdateChargeNumResponse } };
|
|
12
|
+
/** {@link Alibaba.Pur.NotifyProduct 信息平台-采购 > 同步商品通知} */
|
|
13
|
+
type AlibabaPurNotifyProduct = Message & { content: MessageContent & { content: string | Alibaba.Pur.NotifyProduct } };
|
|
14
|
+
/** {@link Alicom.Secret.VendorMonitor 阿里通信 > 供应商监控消息} */
|
|
15
|
+
type AlicomSecretVendorMonitor = Message & { content: MessageContent & { content: string | Alicom.Secret.VendorMonitor } };
|
|
16
|
+
/** {@link Ant.Pur.NotifyProduct 蚂蚁采购 > 蚂蚁采购同步商品通知} */
|
|
17
|
+
type AntPurNotifyProduct = Message & { content: MessageContent & { content: string | Ant.Pur.NotifyProduct } };
|
|
18
|
+
/** {@link Ele.Fengniao.ChainstoreAbility 蜂鸟物流 > 门店开关店能力通知} */
|
|
19
|
+
type EleFengniaoChainstoreAbility = Message & { content: MessageContent & { content: string | Ele.Fengniao.ChainstoreAbility } };
|
|
20
|
+
/** {@link Ele.Fengniao.ChainstoreRange 蜂鸟物流 > 门店配送范围变更消息} */
|
|
21
|
+
type EleFengniaoChainstoreRange = Message & { content: MessageContent & { content: string | Ele.Fengniao.ChainstoreRange } };
|
|
22
|
+
/** {@link Ele.Fengniao.ChainstoreSign 蜂鸟物流 > 门店签约结果通知} */
|
|
23
|
+
type EleFengniaoChainstoreSign = Message & { content: MessageContent & { content: string | Ele.Fengniao.ChainstoreSign } };
|
|
24
|
+
/** {@link Ele.Fengniao.MerchantSign 蜂鸟物流 > 商家签约结果通知} */
|
|
25
|
+
type EleFengniaoMerchantSign = Message & { content: MessageContent & { content: string | Ele.Fengniao.MerchantSign } };
|
|
26
|
+
/** {@link Ele.Fengniao.ReportAbnormal 蜂鸟物流 > 异常报备消息通知} */
|
|
27
|
+
type EleFengniaoReportAbnormal = Message & { content: MessageContent & { content: string | Ele.Fengniao.ReportAbnormal } };
|
|
28
|
+
/** {@link Ele.Fengniao.StatusSync 蜂鸟物流 > 物流状态信息同步} */
|
|
29
|
+
type EleFengniaoStatusSync = Message & { content: MessageContent & { content: string | Ele.Fengniao.StatusSync } };
|
|
30
|
+
/** {@link Taobao.Fuwu.CustomerServicePerformance 服务市场 > 客服绩效统计表} */
|
|
31
|
+
type TaobaoFuwuCustomerServicePerformance = Message & { content: MessageContent & { content: string | Taobao.Fuwu.CustomerServicePerformance } };
|
|
32
|
+
/** {@link Taobao.Fuwu.ElectronicInvoice 服务市场 > 电子发票信息} */
|
|
33
|
+
type TaobaoFuwuElectronicInvoice = Message & { content: MessageContent & { content: string | Taobao.Fuwu.ElectronicInvoice } };
|
|
34
|
+
/** {@link Taobao.Homeai.LayoutTransfer HOMEAI消息对接 > 一键迁移算法接口} */
|
|
35
|
+
type TaobaoHomeaiLayoutTransfer = Message & { content: MessageContent & { content: string | Taobao.Homeai.LayoutTransfer } };
|
|
36
|
+
/** {@link Taobao.Homeai.RenderResult HOMEAI消息对接 > HomeStyler渲染结果消息} */
|
|
37
|
+
type TaobaoHomeaiRenderResult = Message & { content: MessageContent & { content: string | Taobao.Homeai.RenderResult } };
|
|
38
|
+
/** {@link Taobao.Ihomesvj.SyncSvjCrmData HOMEAI > 同步svj的crm数据} */
|
|
39
|
+
type TaobaoIhomesvjSyncSvjCrmData = Message & { content: MessageContent & { content: string | Taobao.Ihomesvj.SyncSvjCrmData } };
|
|
40
|
+
/** {@link Taobao.Jds.RefundTrace 交易全链路 > 退款单状态跟踪} */
|
|
41
|
+
type TaobaoJdsRefundTrace = Message & { content: MessageContent & { content: string | Taobao.Jds.RefundTrace } };
|
|
42
|
+
/** {@link Taobao.Jds.TradeTrace 交易全链路 > 交易订单状态跟踪} */
|
|
43
|
+
type TaobaoJdsTradeTrace = Message & { content: MessageContent & { content: string | Taobao.Jds.TradeTrace } };
|
|
44
|
+
/** {@link Tmall.Mh.MacAddress 天猫魔盒 > 天猫魔盒线下Mac地址回传} */
|
|
45
|
+
type TmallMhMacAddress = Message & { content: MessageContent & { content: string | Tmall.Mh.MacAddress } };
|
|
46
|
+
/** {@link Tmall.Mh.SerialNumber 天猫魔盒 > 天猫魔盒扫码SN号回传} */
|
|
47
|
+
type TmallMhSerialNumber = Message & { content: MessageContent & { content: string | Tmall.Mh.SerialNumber } };
|
|
48
|
+
/** {@link Tmall.Nrt.DealerToTmall 新零售终端上行消息 > 商户信息回流} */
|
|
49
|
+
type TmallNrtDealerToTmall = Message & { content: MessageContent & { content: string | Tmall.Nrt.DealerToTmall } };
|
|
50
|
+
/** {@link Tmall.Nrt.StallContractToTmall 新零售终端上行消息 > 摊位合同数据回流} */
|
|
51
|
+
type TmallNrtStallContractToTmall = Message & { content: MessageContent & { content: string | Tmall.Nrt.StallContractToTmall } };
|
|
52
|
+
/** {@link Tmall.Nrt.StallInfoToTmall 新零售终端上行消息 > 摊位信息数据回流} */
|
|
53
|
+
type TmallNrtStallInfoToTmall = Message & { content: MessageContent & { content: string | Tmall.Nrt.StallInfoToTmall } };
|
|
54
|
+
/** {@link Tmall.Nrt.StoreInfoToTmall 新零售终端上行消息 > 门店信息回流} */
|
|
55
|
+
type TmallNrtStoreInfoToTmall = Message & { content: MessageContent & { content: string | Tmall.Nrt.StoreInfoToTmall } };
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/** 网上法庭 */
|
|
59
|
+
declare namespace Alibaba.Nazca {
|
|
60
|
+
/** 作废存证返回消息接口 */
|
|
61
|
+
interface AbandonCertResponse {
|
|
62
|
+
/** 消息流水号 */
|
|
63
|
+
apply_id: string;
|
|
64
|
+
/** 消息体 */
|
|
65
|
+
content: string;
|
|
66
|
+
/** 错误码 */
|
|
67
|
+
err_code: string;
|
|
68
|
+
/** 错误信息 */
|
|
69
|
+
err_message: string;
|
|
70
|
+
/** 状态 */
|
|
71
|
+
status: string;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/** 查询收费数量返回消息 */
|
|
75
|
+
interface QueryChargeNumResponse {
|
|
76
|
+
/** 流水号 */
|
|
77
|
+
apply_id: string;
|
|
78
|
+
/** 消耗数量 */
|
|
79
|
+
consumption_quantity: string;
|
|
80
|
+
/** 客户ID */
|
|
81
|
+
customer_id: string;
|
|
82
|
+
/** 剩余数量 */
|
|
83
|
+
number_remaining: string;
|
|
84
|
+
/** 客户在1688的唯一标识 */
|
|
85
|
+
platform_user_id: string;
|
|
86
|
+
/** 总数 */
|
|
87
|
+
total_number: string;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/** 存证返回消息接口 */
|
|
91
|
+
interface SaveCertResponse {
|
|
92
|
+
/** 消息流水号 */
|
|
93
|
+
apply_id: string;
|
|
94
|
+
/** 消息体 */
|
|
95
|
+
content: string;
|
|
96
|
+
/** 错误码 */
|
|
97
|
+
err_code: string;
|
|
98
|
+
/** 错误信息 */
|
|
99
|
+
err_message: string;
|
|
100
|
+
/** 状态 */
|
|
101
|
+
status: string;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/** 更新收费数量返回消息 */
|
|
105
|
+
interface UpdateChargeNumResponse {
|
|
106
|
+
/** 流水号 */
|
|
107
|
+
apply_id: string;
|
|
108
|
+
/** 客户ID */
|
|
109
|
+
customer_id: string;
|
|
110
|
+
/** 客户在1688的唯一标识 */
|
|
111
|
+
platform_user_id: string;
|
|
112
|
+
/** 处理状态 */
|
|
113
|
+
result: string;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/** 信息平台-采购 */
|
|
118
|
+
declare namespace Alibaba.Pur {
|
|
119
|
+
/** 同步商品通知 */
|
|
120
|
+
interface NotifyProduct {
|
|
121
|
+
/** 消息描述 */
|
|
122
|
+
desc: string;
|
|
123
|
+
/** 通知的标识 */
|
|
124
|
+
message_id: string;
|
|
125
|
+
/** 来源 */
|
|
126
|
+
source: string;
|
|
127
|
+
/** 来源ID */
|
|
128
|
+
source_id: string;
|
|
129
|
+
/** 来源类型 */
|
|
130
|
+
source_type: string;
|
|
131
|
+
/** 状态 enabled,disabled */
|
|
132
|
+
status: string;
|
|
133
|
+
/** 供应商名称 */
|
|
134
|
+
supplier_name: string;
|
|
135
|
+
/** 租户 */
|
|
136
|
+
tenant_id: number;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/** 阿里通信 */
|
|
141
|
+
declare namespace Alicom.Secret {
|
|
142
|
+
/** 供应商监控消息 */
|
|
143
|
+
interface VendorMonitor {
|
|
144
|
+
/** 监控日志 */
|
|
145
|
+
log: string;
|
|
146
|
+
/** 监控日志元数据 */
|
|
147
|
+
log_meta: string;
|
|
148
|
+
/** 监控项 */
|
|
149
|
+
monitor_type: string;
|
|
150
|
+
/** 消息ID */
|
|
151
|
+
msg_id: string;
|
|
152
|
+
/** 分隔符,|默认是'|'分隔 */
|
|
153
|
+
split: string;
|
|
154
|
+
/** 时间挫 */
|
|
155
|
+
timestamp: Date;
|
|
156
|
+
/** 供应商Key */
|
|
157
|
+
vendor_key: string;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/** 蚂蚁采购 */
|
|
162
|
+
declare namespace Ant.Pur {
|
|
163
|
+
/** 蚂蚁采购同步商品通知 */
|
|
164
|
+
interface NotifyProduct {
|
|
165
|
+
/** 消息描述 */
|
|
166
|
+
desc: string;
|
|
167
|
+
/** 通知的标识 */
|
|
168
|
+
message_id: string;
|
|
169
|
+
/** 来源 */
|
|
170
|
+
source: string;
|
|
171
|
+
/** 来源ID */
|
|
172
|
+
source_id: string;
|
|
173
|
+
/** 来源类型 */
|
|
174
|
+
source_type: string;
|
|
175
|
+
/** 状态 enabled,disabled */
|
|
176
|
+
status: string;
|
|
177
|
+
/** 供应商名称 */
|
|
178
|
+
supplier_name: string;
|
|
179
|
+
/** 租户 */
|
|
180
|
+
tenant_id: number;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/** 蜂鸟物流 */
|
|
185
|
+
declare namespace Ele.Fengniao {
|
|
186
|
+
/** 门店开关店能力通知 */
|
|
187
|
+
interface ChainstoreAbility {
|
|
188
|
+
/** 门店code */
|
|
189
|
+
chainstore_code: string;
|
|
190
|
+
/** 商家code */
|
|
191
|
+
merchant_code: string;
|
|
192
|
+
/** 1关闭;2开启 */
|
|
193
|
+
operator: number;
|
|
194
|
+
/** 时间戳 毫秒 */
|
|
195
|
+
timestamp: number;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
/** 门店配送范围变更消息 */
|
|
199
|
+
interface ChainstoreRange {
|
|
200
|
+
/** 门店code */
|
|
201
|
+
chainstore_code: string;
|
|
202
|
+
/** 商户code */
|
|
203
|
+
merchant_code: string;
|
|
204
|
+
/** 时间戳 */
|
|
205
|
+
timestamp: number;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
/** 门店签约结果通知 */
|
|
209
|
+
interface ChainstoreSign {
|
|
210
|
+
/** 门店code */
|
|
211
|
+
chainstore_code: string;
|
|
212
|
+
/** 是否通过 */
|
|
213
|
+
is_sign: boolean;
|
|
214
|
+
/** 商户code */
|
|
215
|
+
merchant_code: string;
|
|
216
|
+
/** 时间戳(毫秒) */
|
|
217
|
+
timestamp: number;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
/** 商家签约结果通知 */
|
|
221
|
+
interface MerchantSign {
|
|
222
|
+
/** 签约失败原因 */
|
|
223
|
+
fail_reason: string;
|
|
224
|
+
/** 是否通过 */
|
|
225
|
+
is_sign: boolean;
|
|
226
|
+
/** 商家code */
|
|
227
|
+
merchant_code: string;
|
|
228
|
+
/** 时间戳 毫秒 */
|
|
229
|
+
timestamp: number;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
/** 异常报备消息通知 */
|
|
233
|
+
interface ReportAbnormal {
|
|
234
|
+
/** 异常报备code */
|
|
235
|
+
exception_code: string;
|
|
236
|
+
/** 异常报备描述 */
|
|
237
|
+
exception_desc: string;
|
|
238
|
+
/** 异常报备时间 */
|
|
239
|
+
exception_time: number;
|
|
240
|
+
/** 订单号 */
|
|
241
|
+
partner_order_code: string;
|
|
242
|
+
/** 时间戳 毫秒 */
|
|
243
|
+
timestamp: number;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
/** 物流状态信息同步 */
|
|
247
|
+
interface StatusSync {
|
|
248
|
+
/** 蜂鸟配送员姓名 */
|
|
249
|
+
carrier_driver_name: string;
|
|
250
|
+
/** 蜂鸟配送员电话 */
|
|
251
|
+
carrier_driver_phone: string;
|
|
252
|
+
/** 描述信息 */
|
|
253
|
+
description: string;
|
|
254
|
+
/** 状态码 */
|
|
255
|
+
order_status: number;
|
|
256
|
+
/** 商户自己的订单号 */
|
|
257
|
+
partner_order_code: string;
|
|
258
|
+
/** 状态推送时间(毫秒) */
|
|
259
|
+
push_time: number;
|
|
260
|
+
/** 说明状态码 */
|
|
261
|
+
remark_code: string;
|
|
262
|
+
/** 时间戳(毫秒) */
|
|
263
|
+
timestamp: number;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
/** 服务市场 */
|
|
268
|
+
declare namespace Taobao.Fuwu {
|
|
269
|
+
/** 客服绩效统计表 */
|
|
270
|
+
interface CustomerServicePerformance {
|
|
271
|
+
/** 询单人数 */
|
|
272
|
+
ask_num: number;
|
|
273
|
+
/** 询单最终付款人数 */
|
|
274
|
+
ask_today_final_paid_num: number;
|
|
275
|
+
/** 询单到次日付款人数 */
|
|
276
|
+
ask_today_paid_today_or_tomorrow_num: number;
|
|
277
|
+
/** 买家消息数 */
|
|
278
|
+
buyer_msg_num: number;
|
|
279
|
+
/** 咨询人数 */
|
|
280
|
+
consult_num: number;
|
|
281
|
+
/** 报表统计日期 */
|
|
282
|
+
date: Date;
|
|
283
|
+
/** 最早上线时间 HH:mm:ss */
|
|
284
|
+
earliest_online_time: Date;
|
|
285
|
+
/** 首次响应总耗时(s) */
|
|
286
|
+
first_reply_cost: number;
|
|
287
|
+
/** 首次响应人数 */
|
|
288
|
+
first_reply_times: number;
|
|
289
|
+
/** 最晚上线时间 HH:mm:ss */
|
|
290
|
+
latest_online_time: Date;
|
|
291
|
+
/** 日登录次数 */
|
|
292
|
+
login_num: number;
|
|
293
|
+
/** 长接待人数 */
|
|
294
|
+
long_receive_num: number;
|
|
295
|
+
/** 未回复人数 */
|
|
296
|
+
no_reply_num: number;
|
|
297
|
+
/** 下单优先判定销售人数 */
|
|
298
|
+
onetime_buyer_num: number;
|
|
299
|
+
/** 下单优先判定客单价 */
|
|
300
|
+
onetime_buyer_unit: string;
|
|
301
|
+
/** 下单优先判定退款人数 */
|
|
302
|
+
onetime_finish_refund_persons: number;
|
|
303
|
+
/** 下单优先判定销售量 */
|
|
304
|
+
onetime_item_num: number;
|
|
305
|
+
/** 下单优先判定销售额 */
|
|
306
|
+
onetime_payments: string;
|
|
307
|
+
/** 下单优先判定邮费 */
|
|
308
|
+
onetime_post_fee: string;
|
|
309
|
+
/** 下单优先判定退款金额 */
|
|
310
|
+
onetime_refund_fee: string;
|
|
311
|
+
/** 下单优先判定退款件数 */
|
|
312
|
+
onetime_refund_item_num: number;
|
|
313
|
+
/** 下单判定销售人数 */
|
|
314
|
+
order_buyer_num: number;
|
|
315
|
+
/** 下单判定客单价 */
|
|
316
|
+
order_buyer_unit: string;
|
|
317
|
+
/** 下单判定退款人数 */
|
|
318
|
+
order_finish_refund_persons: number;
|
|
319
|
+
/** 下单判定销售量 */
|
|
320
|
+
order_item_num: number;
|
|
321
|
+
/** 下单判定销售额 */
|
|
322
|
+
order_payments: string;
|
|
323
|
+
/** 下单判定邮费 */
|
|
324
|
+
order_post_fee: string;
|
|
325
|
+
/** 下单判定退款金额 */
|
|
326
|
+
order_refund_fee: string;
|
|
327
|
+
/** 下单判定退款件数 */
|
|
328
|
+
order_refund_item_num: number;
|
|
329
|
+
/** 付款判定销售人数 */
|
|
330
|
+
paid_buyer_num: number;
|
|
331
|
+
/** 付款判定客单价 */
|
|
332
|
+
paid_buyer_unit: string;
|
|
333
|
+
/** 付款优先判定退款人数 */
|
|
334
|
+
paid_finish_refund_persons: number;
|
|
335
|
+
/** 付款判定销售量 */
|
|
336
|
+
paid_item_num: number;
|
|
337
|
+
/** 付款判定销售额 */
|
|
338
|
+
paid_payments: string;
|
|
339
|
+
/** 付款判定邮费 */
|
|
340
|
+
paid_post_fee: string;
|
|
341
|
+
/** 付款判定退款金额 */
|
|
342
|
+
paid_refund_fee: string;
|
|
343
|
+
/** 付款判定退款件数 */
|
|
344
|
+
paid_refund_item_num: number;
|
|
345
|
+
/** 接待总时长(秒) */
|
|
346
|
+
receive_cost: number;
|
|
347
|
+
/** 商家ID */
|
|
348
|
+
seller_id: string;
|
|
349
|
+
/** 客服消息数 */
|
|
350
|
+
seller_msg_num: number;
|
|
351
|
+
/** 商家nick */
|
|
352
|
+
seller_nick: string;
|
|
353
|
+
/** 客服字数 */
|
|
354
|
+
seller_word_num: number;
|
|
355
|
+
/** 服务总时长(秒) */
|
|
356
|
+
service_cost: number;
|
|
357
|
+
/** 接待人数 */
|
|
358
|
+
service_num: number;
|
|
359
|
+
/** 慢响应人数 */
|
|
360
|
+
slow_reception_num: number;
|
|
361
|
+
/** 挂起总时长(秒) */
|
|
362
|
+
suspend_cost: number;
|
|
363
|
+
/** 总未回复聊天对数:包含过滤 */
|
|
364
|
+
total_noreply_chatpeer: number;
|
|
365
|
+
/** 总响应时间(s) */
|
|
366
|
+
total_reply_cost: number;
|
|
367
|
+
/** 总响应人数 */
|
|
368
|
+
total_reply_times: number;
|
|
369
|
+
/** 数据上传时间 */
|
|
370
|
+
updatetime: Date;
|
|
371
|
+
/** 用户系统配置 */
|
|
372
|
+
user_config_params: string;
|
|
373
|
+
/** 旺旺昵称 */
|
|
374
|
+
wangwang_nick: string;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
/** 电子发票信息 */
|
|
378
|
+
interface ElectronicInvoice {
|
|
379
|
+
/** 开票金额 */
|
|
380
|
+
amount: string;
|
|
381
|
+
/** 电子发票号 */
|
|
382
|
+
e_invoice_no: string;
|
|
383
|
+
/** 电子发票流水号,流水号唯一标识 */
|
|
384
|
+
id: number;
|
|
385
|
+
/** 发票代码 */
|
|
386
|
+
invoice_code: string;
|
|
387
|
+
/** 发票文件,此参数通过taobao.tmc.message.produce中的media_content指定 */
|
|
388
|
+
invoice_file: number;
|
|
389
|
+
/** 发票号码 */
|
|
390
|
+
invoice_no: string;
|
|
391
|
+
/** 开票日期 */
|
|
392
|
+
invoice_time: Date;
|
|
393
|
+
/** 淘宝子订单号 */
|
|
394
|
+
oid: number;
|
|
395
|
+
/** 交易编号 (父订单的交易编号) */
|
|
396
|
+
tid: number;
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
/** HOMEAI消息对接 */
|
|
401
|
+
declare namespace Taobao.Homeai {
|
|
402
|
+
/** 一键迁移算法接口 */
|
|
403
|
+
interface LayoutTransfer {
|
|
404
|
+
/** 入参数,包括sceneUrl, */
|
|
405
|
+
in_param: string;
|
|
406
|
+
/** 居然之家软装服务id */
|
|
407
|
+
job_id: string;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
/** HomeStyler渲染结果消息 */
|
|
411
|
+
interface RenderResult {
|
|
412
|
+
/** 任务id */
|
|
413
|
+
job_id: string;
|
|
414
|
+
/** renderResult包含渲染状态,预计完成时间等信息 */
|
|
415
|
+
render_result: string;
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
/** HOMEAI */
|
|
420
|
+
declare namespace Taobao.Ihomesvj {
|
|
421
|
+
/** 同步svj的crm数据 */
|
|
422
|
+
interface SyncSvjCrmData {
|
|
423
|
+
/** 数据体json */
|
|
424
|
+
json: string;
|
|
425
|
+
/** 业务的唯一标示 */
|
|
426
|
+
key: string;
|
|
427
|
+
/** 标示数据体的type */
|
|
428
|
+
type: string;
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
/** 交易全链路 */
|
|
433
|
+
declare namespace Taobao.Jds {
|
|
434
|
+
/** 退款单状态跟踪 */
|
|
435
|
+
interface RefundTrace {
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
/** 交易订单状态跟踪 */
|
|
439
|
+
interface TradeTrace {
|
|
440
|
+
/** 业务动作发生的时间 */
|
|
441
|
+
action_time: Date;
|
|
442
|
+
/** 操作人 */
|
|
443
|
+
operator: string;
|
|
444
|
+
/** 子订单ID列表,多个ID用半角逗号分隔 */
|
|
445
|
+
order_ids: string;
|
|
446
|
+
/** 业务备注 */
|
|
447
|
+
remark: string;
|
|
448
|
+
/** 卖家的淘宝用户名 */
|
|
449
|
+
seller_nick: string;
|
|
450
|
+
/** 订单状态。T_WAIT_BUYER_PAY(等待买家付款),T_WAIT_SELLER_SEND_GOODS(等待卖家发货),X_DOWNLOADED(订单已推送),X_TO_SYSTEM(系统已接单),X_SERVICE_AUDITED(已客审),X_FINANCE_AUDITED(已财审),X_ALLOCATION_NOTIFIED(已通知配货),X_WAIT_ALLOCATION(待配货),X_SORT_PRINTED(已打拣货单),X_SEND_PRINTED(已打发货单),X_LOGISTICS_PRINTED(已打物流单),X_SORTED(已拣货),X_EXAMINED(已验货),X_PACKAGED(已打包),X_WEIGHED(已称重),X_OUT_WAREHOUSE(已出库),T_WAIT_BUYER_CONFIRM_GOODS(已发货),T_TRADE_FINISHED(已完成),T_TRADE_CLOSED(已结束) */
|
|
451
|
+
status: string;
|
|
452
|
+
/** 交易ID */
|
|
453
|
+
tid: number;
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
/** 天猫魔盒 */
|
|
458
|
+
declare namespace Tmall.Mh {
|
|
459
|
+
/** 天猫魔盒线下Mac地址回传 */
|
|
460
|
+
interface MacAddress {
|
|
461
|
+
/** 回传时间(出库扫描二维码时间) */
|
|
462
|
+
backflow_time: string;
|
|
463
|
+
/** 下单时间 */
|
|
464
|
+
creat_time: string;
|
|
465
|
+
/** 客户 */
|
|
466
|
+
customer: string;
|
|
467
|
+
/** 发货仓库 */
|
|
468
|
+
delivery_store: string;
|
|
469
|
+
/** 快递公司 */
|
|
470
|
+
express: string;
|
|
471
|
+
/** 商品名称 */
|
|
472
|
+
item_name: string;
|
|
473
|
+
/** Mac地址 */
|
|
474
|
+
mac_address: string;
|
|
475
|
+
/** 数量 */
|
|
476
|
+
num: string;
|
|
477
|
+
/** 单价 */
|
|
478
|
+
price: string;
|
|
479
|
+
/** 详细信息 */
|
|
480
|
+
receiver_address: string;
|
|
481
|
+
/** 城市 */
|
|
482
|
+
receiver_city: string;
|
|
483
|
+
/** 区县 */
|
|
484
|
+
receiver_district: string;
|
|
485
|
+
/** 收货人 */
|
|
486
|
+
receiver_name: string;
|
|
487
|
+
/** 省份 */
|
|
488
|
+
receiver_state: string;
|
|
489
|
+
/** 店铺名称 */
|
|
490
|
+
seller_nick: string;
|
|
491
|
+
/** 规格名称 */
|
|
492
|
+
sku_name: string;
|
|
493
|
+
/** 规格编码 */
|
|
494
|
+
sku_num: string;
|
|
495
|
+
/** 订单id */
|
|
496
|
+
tid: number;
|
|
497
|
+
/** 总价 */
|
|
498
|
+
total: string;
|
|
499
|
+
/** 单位 */
|
|
500
|
+
unit: string;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
/** 天猫魔盒扫码SN号回传 */
|
|
504
|
+
interface SerialNumber {
|
|
505
|
+
/** 魔盒分销商 */
|
|
506
|
+
customer: string;
|
|
507
|
+
/** 开票金额 */
|
|
508
|
+
invoice_amount: string;
|
|
509
|
+
/** 商品ID */
|
|
510
|
+
item_id: string;
|
|
511
|
+
/** 商品名称 */
|
|
512
|
+
item_name: string;
|
|
513
|
+
/** 商品数量 */
|
|
514
|
+
item_quantity: string;
|
|
515
|
+
/** 商品对应sn码(商品数量与sn的个数要对等) */
|
|
516
|
+
item_sn: string;
|
|
517
|
+
/** 淘宝订单号 */
|
|
518
|
+
order_number: number | bigint;
|
|
519
|
+
/** 商品单价 */
|
|
520
|
+
price: string;
|
|
521
|
+
/** 销售渠道 */
|
|
522
|
+
sales_channels: string;
|
|
523
|
+
/** 订单ID */
|
|
524
|
+
tid: number;
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
/** 新零售终端上行消息 */
|
|
529
|
+
declare namespace Tmall.Nrt {
|
|
530
|
+
/** 商户信息回流 */
|
|
531
|
+
interface DealerToTmall {
|
|
532
|
+
/** 商户编号 */
|
|
533
|
+
f_code: string;
|
|
534
|
+
/** 商户简称 */
|
|
535
|
+
f_jc: string;
|
|
536
|
+
/** 主营品牌 阿里品牌 */
|
|
537
|
+
f_jypp: string;
|
|
538
|
+
/** 商户名称 */
|
|
539
|
+
f_name: string;
|
|
540
|
+
/** 操作类型 基础类型 new 、update、delete、query */
|
|
541
|
+
op_type: string;
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
/** 摊位合同数据回流 */
|
|
545
|
+
interface StallContractToTmall {
|
|
546
|
+
/** 经营品牌钉钉部门ID */
|
|
547
|
+
f_branddingdeptid: string;
|
|
548
|
+
/** 楼栋钉钉部门ID */
|
|
549
|
+
f_buildingdingdeptid: string;
|
|
550
|
+
/** 分类钉钉部门ID */
|
|
551
|
+
f_categorydingdeptid: string;
|
|
552
|
+
/** 门店编码 */
|
|
553
|
+
f_fddm: string;
|
|
554
|
+
/** 门店名称 */
|
|
555
|
+
f_fdmc: string;
|
|
556
|
+
/** 楼层钉钉部门ID */
|
|
557
|
+
f_floordingdeptid: string;
|
|
558
|
+
/** 商户代码 */
|
|
559
|
+
f_ghdwdm: string;
|
|
560
|
+
/** 商户名称 */
|
|
561
|
+
f_ghdwmc: string;
|
|
562
|
+
/** 合同编号 */
|
|
563
|
+
f_hth: string;
|
|
564
|
+
/** 原合同编号 */
|
|
565
|
+
f_hth_old: string;
|
|
566
|
+
/** 租赁日期 止 */
|
|
567
|
+
f_htyxq_end: Date;
|
|
568
|
+
/** 租赁日期 起 */
|
|
569
|
+
f_htyxq_start: Date;
|
|
570
|
+
/** 摊位钉钉部门ID */
|
|
571
|
+
f_stalldingdeptid: string;
|
|
572
|
+
/** 原摊位钉钉部门ID */
|
|
573
|
+
f_stalldingdeptid_old: string;
|
|
574
|
+
/** 合同状态 */
|
|
575
|
+
f_status: number;
|
|
576
|
+
/** 门店钉钉部门ID */
|
|
577
|
+
f_storedingdeptid: string;
|
|
578
|
+
/** 租赁单元(摊位编码) */
|
|
579
|
+
f_wldpdm: string;
|
|
580
|
+
/** 摊位名称 */
|
|
581
|
+
f_wldpmc: string;
|
|
582
|
+
/** 主营品类名称 */
|
|
583
|
+
f_zypl_name: string;
|
|
584
|
+
/** 主营品牌代码 */
|
|
585
|
+
f_zyppdm: string;
|
|
586
|
+
/** 主营品牌名称 */
|
|
587
|
+
f_zypp_name: string;
|
|
588
|
+
/** 操作类型 基础类型 new 、update、delete、query */
|
|
589
|
+
op_type: string;
|
|
590
|
+
/** 跨摊位合同号 */
|
|
591
|
+
related_contract_no: string;
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
/** 摊位信息数据回流 */
|
|
595
|
+
interface StallInfoToTmall {
|
|
596
|
+
/** 门店编号 */
|
|
597
|
+
f_fddm: string;
|
|
598
|
+
/** 摊位资产编码 */
|
|
599
|
+
f_wldpdm: string;
|
|
600
|
+
/** 操作类型 基础类型 new 、update、delete、query */
|
|
601
|
+
op_type: string;
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
/** 门店信息回流 */
|
|
605
|
+
interface StoreInfoToTmall {
|
|
606
|
+
/** 门店地址 */
|
|
607
|
+
f_dz: string;
|
|
608
|
+
/** 门店编码 */
|
|
609
|
+
f_fddm: string;
|
|
610
|
+
/** 门店名称 */
|
|
611
|
+
f_fdmc: string;
|
|
612
|
+
/** 操作类型 删除-delete 新增-insert 更新-update */
|
|
613
|
+
op_type: string;
|
|
614
|
+
}
|
|
615
|
+
}
|
package/types/taobao.d.ts
CHANGED
|
@@ -1309,6 +1309,27 @@ declare namespace Taobao.Jipiao {
|
|
|
1309
1309
|
}
|
|
1310
1310
|
}
|
|
1311
1311
|
|
|
1312
|
+
/** 淘宝直播API */
|
|
1313
|
+
declare namespace Taobao.Live {
|
|
1314
|
+
/** 淘宝直播上下播消息 */
|
|
1315
|
+
interface FeedRelated {
|
|
1316
|
+
/** 主播openId */
|
|
1317
|
+
anchor_open_id: string;
|
|
1318
|
+
/** 事件类型 PUBLISH_LIVE上播,STOP_LIVE下播,等 */
|
|
1319
|
+
event: string;
|
|
1320
|
+
/** 场次id */
|
|
1321
|
+
live_id: number;
|
|
1322
|
+
}
|
|
1323
|
+
|
|
1324
|
+
/** 淘宝直播订单消息 */
|
|
1325
|
+
interface TcpOrder {
|
|
1326
|
+
/** 主播openId */
|
|
1327
|
+
anchor_open_id: string;
|
|
1328
|
+
/** 订单号 */
|
|
1329
|
+
tid: number;
|
|
1330
|
+
}
|
|
1331
|
+
}
|
|
1332
|
+
|
|
1312
1333
|
/** 淘宝物流 */
|
|
1313
1334
|
declare namespace Taobao.Logistics {
|
|
1314
1335
|
/** 物流详情跟踪消息 */
|