tmc.js 0.3.29 → 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 +2 -2
- package/package.json +1 -1
- package/types/index.d.ts +4 -0
- package/types/message.in.d.ts +4 -0
- package/types/taobao.d.ts +8 -0
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+ 类别,
|
|
137
|
+
<details><summary>共计 83+ 类别,483+ 消息数</summary>
|
|
138
138
|
|
|
139
139
|
| 类别 | 消息数 |
|
|
140
140
|
| --- | --- |
|
|
141
|
-
| 淘宝交易 |
|
|
141
|
+
| 淘宝交易 | 24 |
|
|
142
142
|
| 淘宝退款 | 13 |
|
|
143
143
|
| 淘宝商品 | 13 |
|
|
144
144
|
| 淘宝分销 | 27 |
|
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -566,6 +566,8 @@ declare interface TaoTopicsDescriptor {
|
|
|
566
566
|
taobao_fuwu_OrderCreated(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoFuwuOrderCreated) => void): TaoMessageConsumer;
|
|
567
567
|
/** {@link IncomingMessage.TaobaoFuwuOrderPaid 淘宝交易 > 订单支付消息} */
|
|
568
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;
|
|
569
571
|
/** {@link IncomingMessage.TaobaoFuwuServiceOpen 淘宝交易 > 服务开通消息} */
|
|
570
572
|
taobao_fuwu_ServiceOpen(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoFuwuServiceOpen) => void): TaoMessageConsumer;
|
|
571
573
|
/** {@link IncomingMessage.TaobaoFuwuWitkeySyncModeling 淘宝交易 > 威客同步建模数据} */
|
|
@@ -1805,6 +1807,8 @@ declare interface TaoEventsListener {
|
|
|
1805
1807
|
on(topic: 'taobao_fuwu_OrderCreated', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoFuwuOrderCreated) => void): TaoMessageConsumer;
|
|
1806
1808
|
/** {@link IncomingMessage.TaobaoFuwuOrderPaid 淘宝交易 > 订单支付消息} */
|
|
1807
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;
|
|
1808
1812
|
/** {@link IncomingMessage.TaobaoFuwuServiceOpen 淘宝交易 > 服务开通消息} */
|
|
1809
1813
|
on(topic: 'taobao_fuwu_ServiceOpen', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoFuwuServiceOpen) => void): TaoMessageConsumer;
|
|
1810
1814
|
/** {@link IncomingMessage.TaobaoFuwuWitkeySyncModeling 淘宝交易 > 威客同步建模数据} */
|
package/types/message.in.d.ts
CHANGED
|
@@ -527,6 +527,8 @@ declare namespace IncomingMessage {
|
|
|
527
527
|
type TaobaoFuwuOrderCreated = Message & { content?: MessageContent & { topic?: 'taobao_fuwu_OrderCreated', content?: string | Taobao.Fuwu.OrderCreated } };
|
|
528
528
|
/** {@link Taobao.Fuwu.OrderPaid 淘宝交易 > 订单支付消息} */
|
|
529
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 } };
|
|
530
532
|
/** {@link Taobao.Fuwu.ServiceOpen 淘宝交易 > 服务开通消息} */
|
|
531
533
|
type TaobaoFuwuServiceOpen = Message & { content?: MessageContent & { topic?: 'taobao_fuwu_ServiceOpen', content?: string | Taobao.Fuwu.ServiceOpen } };
|
|
532
534
|
/** {@link Taobao.Fuwu.WitkeySyncModeling 淘宝交易 > 威客同步建模数据} */
|
|
@@ -1602,6 +1604,7 @@ declare namespace IncomingMessage {
|
|
|
1602
1604
|
* - {@link TaobaoFuwuOrderClosed 淘宝交易 > 订单关闭消息}
|
|
1603
1605
|
* - {@link TaobaoFuwuOrderCreated 淘宝交易 > 订单创建消息}
|
|
1604
1606
|
* - {@link TaobaoFuwuOrderPaid 淘宝交易 > 订单支付消息}
|
|
1607
|
+
* - {@link TaobaoFuwuRecycleFinalService 淘宝交易 > 以旧换新取送一体服务最终决策通知}
|
|
1605
1608
|
* - {@link TaobaoFuwuServiceOpen 淘宝交易 > 服务开通消息}
|
|
1606
1609
|
* - {@link TaobaoFuwuWitkeySyncModeling 淘宝交易 > 威客同步建模数据}
|
|
1607
1610
|
*/
|
|
@@ -1609,6 +1612,7 @@ declare namespace IncomingMessage {
|
|
|
1609
1612
|
| TaobaoFuwuOrderClosed
|
|
1610
1613
|
| TaobaoFuwuOrderCreated
|
|
1611
1614
|
| TaobaoFuwuOrderPaid
|
|
1615
|
+
| TaobaoFuwuRecycleFinalService
|
|
1612
1616
|
| TaobaoFuwuServiceOpen
|
|
1613
1617
|
| TaobaoFuwuWitkeySyncModeling;
|
|
1614
1618
|
/**
|
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)-收费管理-收费项目列表 能够获得该应用的收费代码 */
|