tmc.js 0.3.37 → 0.3.38
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/package.json +1 -1
- package/types/index.d.ts +8 -0
- package/types/message.in.d.ts +9 -1
- package/types/message.out.d.ts +1 -1
- package/types/taobao.d.ts +36 -0
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -1286,6 +1286,8 @@ declare interface TaoTopicsDescriptor {
|
|
|
1286
1286
|
taobao_dispute_RefundPriceProtect(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoDisputeRefundPriceProtect) => void): TaoMessageConsumer;
|
|
1287
1287
|
/** {@link IncomingMessage.TaobaoDisputeRefundSuccess 淘宝 > 新退款成功消息} */
|
|
1288
1288
|
taobao_dispute_RefundSuccess(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoDisputeRefundSuccess) => void): TaoMessageConsumer;
|
|
1289
|
+
/** {@link IncomingMessage.TaobaoDisputeTaobaoInterApplied 淘宝 > 申请小二介入} */
|
|
1290
|
+
taobao_dispute_TaobaoInterApplied(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoDisputeTaobaoInterApplied) => void): TaoMessageConsumer;
|
|
1289
1291
|
/** {@link IncomingMessage.TaobaoDpaasAuthTokenCreate DPAAS > dpaas三方服务token} */
|
|
1290
1292
|
taobao_dpaas_AuthTokenCreate(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoDpaasAuthTokenCreate) => void): TaoMessageConsumer;
|
|
1291
1293
|
/** {@link IncomingMessage.TaobaoDpaasCustomerFlow DPAAS > 客流新增及会员到店消息} */
|
|
@@ -1740,6 +1742,8 @@ declare interface TaoTopicsDescriptor {
|
|
|
1740
1742
|
taobao_smartapp_DataSync(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoSmartappDataSync) => void): TaoMessageConsumer;
|
|
1741
1743
|
/** {@link IncomingMessage.TaobaoSmartappDiagnosticMetrics 平台消息 > 智能应用开放生意参谋诊断指标} */
|
|
1742
1744
|
taobao_smartapp_DiagnosticMetrics(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoSmartappDiagnosticMetrics) => void): TaoMessageConsumer;
|
|
1745
|
+
/** {@link IncomingMessage.TaobaoSmartappOrderAlert 平台消息 > 淘宝智能应用订单预警事件} */
|
|
1746
|
+
taobao_smartapp_OrderAlert(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoSmartappOrderAlert) => void): TaoMessageConsumer;
|
|
1743
1747
|
/** {@link IncomingMessage.TaobaoSmartappPresellEnd 平台消息 > 淘宝智能应用预售尾款截止短信催付} */
|
|
1744
1748
|
taobao_smartapp_PresellEnd(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoSmartappPresellEnd) => void): TaoMessageConsumer;
|
|
1745
1749
|
/** {@link IncomingMessage.TaobaoSmartappPresellStart 平台消息 > 淘宝智能应用预售开始短信催付} */
|
|
@@ -4269,6 +4273,8 @@ declare interface TaoEventsListener {
|
|
|
4269
4273
|
on(topic: 'taobao_dispute_RefundPriceProtect', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoDisputeRefundPriceProtect) => void): TaoMessageConsumer;
|
|
4270
4274
|
/** {@link IncomingMessage.TaobaoDisputeRefundSuccess 淘宝 > 新退款成功消息} */
|
|
4271
4275
|
on(topic: 'taobao_dispute_RefundSuccess', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoDisputeRefundSuccess) => void): TaoMessageConsumer;
|
|
4276
|
+
/** {@link IncomingMessage.TaobaoDisputeTaobaoInterApplied 淘宝 > 申请小二介入} */
|
|
4277
|
+
on(topic: 'taobao_dispute_TaobaoInterApplied', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoDisputeTaobaoInterApplied) => void): TaoMessageConsumer;
|
|
4272
4278
|
/** {@link IncomingMessage.TaobaoDpaasAuthTokenCreate DPAAS > dpaas三方服务token} */
|
|
4273
4279
|
on(topic: 'taobao_dpaas_AuthTokenCreate', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoDpaasAuthTokenCreate) => void): TaoMessageConsumer;
|
|
4274
4280
|
/** {@link IncomingMessage.TaobaoDpaasCustomerFlow DPAAS > 客流新增及会员到店消息} */
|
|
@@ -4723,6 +4729,8 @@ declare interface TaoEventsListener {
|
|
|
4723
4729
|
on(topic: 'taobao_smartapp_DataSync', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoSmartappDataSync) => void): TaoMessageConsumer;
|
|
4724
4730
|
/** {@link IncomingMessage.TaobaoSmartappDiagnosticMetrics 平台消息 > 智能应用开放生意参谋诊断指标} */
|
|
4725
4731
|
on(topic: 'taobao_smartapp_DiagnosticMetrics', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoSmartappDiagnosticMetrics) => void): TaoMessageConsumer;
|
|
4732
|
+
/** {@link IncomingMessage.TaobaoSmartappOrderAlert 平台消息 > 淘宝智能应用订单预警事件} */
|
|
4733
|
+
on(topic: 'taobao_smartapp_OrderAlert', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoSmartappOrderAlert) => void): TaoMessageConsumer;
|
|
4726
4734
|
/** {@link IncomingMessage.TaobaoSmartappPresellEnd 平台消息 > 淘宝智能应用预售尾款截止短信催付} */
|
|
4727
4735
|
on(topic: 'taobao_smartapp_PresellEnd', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoSmartappPresellEnd) => void): TaoMessageConsumer;
|
|
4728
4736
|
/** {@link IncomingMessage.TaobaoSmartappPresellStart 平台消息 > 淘宝智能应用预售开始短信催付} */
|
package/types/message.in.d.ts
CHANGED
|
@@ -1266,6 +1266,8 @@ declare namespace IncomingMessage {
|
|
|
1266
1266
|
type TaobaoDisputeRefundPriceProtect = Message & { content?: MessageContent & { topic?: 'taobao_dispute_RefundPriceProtect', content?: string | Taobao.Dispute.RefundPriceProtect } };
|
|
1267
1267
|
/** {@link Taobao.Dispute.RefundSuccess 淘宝 > 新退款成功消息} */
|
|
1268
1268
|
type TaobaoDisputeRefundSuccess = Message & { content?: MessageContent & { topic?: 'taobao_dispute_RefundSuccess', content?: string | Taobao.Dispute.RefundSuccess } };
|
|
1269
|
+
/** {@link Taobao.Dispute.TaobaoInterApplied 淘宝 > 申请小二介入} */
|
|
1270
|
+
type TaobaoDisputeTaobaoInterApplied = Message & { content?: MessageContent & { topic?: 'taobao_dispute_TaobaoInterApplied', content?: string | Taobao.Dispute.TaobaoInterApplied } };
|
|
1269
1271
|
/** {@link Taobao.Dpaas.AuthTokenCreate DPAAS > dpaas三方服务token} */
|
|
1270
1272
|
type TaobaoDpaasAuthTokenCreate = Message & { content?: MessageContent & { topic?: 'taobao_dpaas_AuthTokenCreate', content?: string | Taobao.Dpaas.AuthTokenCreate } };
|
|
1271
1273
|
/** {@link Taobao.Dpaas.CustomerFlow DPAAS > 客流新增及会员到店消息} */
|
|
@@ -1720,6 +1722,8 @@ declare namespace IncomingMessage {
|
|
|
1720
1722
|
type TaobaoSmartappDataSync = Message & { content?: MessageContent & { topic?: 'taobao_smartapp_DataSync', content?: string | Taobao.Smartapp.DataSync } };
|
|
1721
1723
|
/** {@link Taobao.Smartapp.DiagnosticMetrics 平台消息 > 智能应用开放生意参谋诊断指标} */
|
|
1722
1724
|
type TaobaoSmartappDiagnosticMetrics = Message & { content?: MessageContent & { topic?: 'taobao_smartapp_DiagnosticMetrics', content?: string | Taobao.Smartapp.DiagnosticMetrics } };
|
|
1725
|
+
/** {@link Taobao.Smartapp.OrderAlert 平台消息 > 淘宝智能应用订单预警事件} */
|
|
1726
|
+
type TaobaoSmartappOrderAlert = Message & { content?: MessageContent & { topic?: 'taobao_smartapp_OrderAlert', content?: string | Taobao.Smartapp.OrderAlert } };
|
|
1723
1727
|
/** {@link Taobao.Smartapp.PresellEnd 平台消息 > 淘宝智能应用预售尾款截止短信催付} */
|
|
1724
1728
|
type TaobaoSmartappPresellEnd = Message & { content?: MessageContent & { topic?: 'taobao_smartapp_PresellEnd', content?: string | Taobao.Smartapp.PresellEnd } };
|
|
1725
1729
|
/** {@link Taobao.Smartapp.PresellStart 平台消息 > 淘宝智能应用预售开始短信催付} */
|
|
@@ -3872,6 +3876,7 @@ declare namespace IncomingMessage {
|
|
|
3872
3876
|
* - {@link TaobaoDisputeRefundCreated 淘宝 > 新退款创建}
|
|
3873
3877
|
* - {@link TaobaoDisputeRefundPriceProtect 淘宝 > 价保退款成功}
|
|
3874
3878
|
* - {@link TaobaoDisputeRefundSuccess 淘宝 > 新退款成功消息}
|
|
3879
|
+
* - {@link TaobaoDisputeTaobaoInterApplied 淘宝 > 申请小二介入}
|
|
3875
3880
|
*/
|
|
3876
3881
|
type TaobaoDispute = TaobaoDisputeExchangeAgree
|
|
3877
3882
|
| TaobaoDisputeExchangeClosed
|
|
@@ -3881,7 +3886,8 @@ declare namespace IncomingMessage {
|
|
|
3881
3886
|
| TaobaoDisputeExchangeTurnToRefund
|
|
3882
3887
|
| TaobaoDisputeRefundCreated
|
|
3883
3888
|
| TaobaoDisputeRefundPriceProtect
|
|
3884
|
-
| TaobaoDisputeRefundSuccess
|
|
3889
|
+
| TaobaoDisputeRefundSuccess
|
|
3890
|
+
| TaobaoDisputeTaobaoInterApplied;
|
|
3885
3891
|
/**
|
|
3886
3892
|
* - {@link TaobaoDpaasAuthTokenCreate DPAAS > dpaas三方服务token}
|
|
3887
3893
|
* - {@link TaobaoDpaasCustomerFlow DPAAS > 客流新增及会员到店消息}
|
|
@@ -4444,6 +4450,7 @@ declare namespace IncomingMessage {
|
|
|
4444
4450
|
* - {@link TaobaoSmartappAppSubChange 平台消息 > 用户订阅变更消息}
|
|
4445
4451
|
* - {@link TaobaoSmartappDataSync 平台消息 > 智能应用服务登记数据变更消息}
|
|
4446
4452
|
* - {@link TaobaoSmartappDiagnosticMetrics 平台消息 > 智能应用开放生意参谋诊断指标}
|
|
4453
|
+
* - {@link TaobaoSmartappOrderAlert 平台消息 > 淘宝智能应用订单预警事件}
|
|
4447
4454
|
* - {@link TaobaoSmartappPresellEnd 平台消息 > 淘宝智能应用预售尾款截止短信催付}
|
|
4448
4455
|
* - {@link TaobaoSmartappPresellStart 平台消息 > 淘宝智能应用预售开始短信催付}
|
|
4449
4456
|
* - {@link TaobaoSmartappSchedulerTask 平台消息 > 定时任务消息}
|
|
@@ -4454,6 +4461,7 @@ declare namespace IncomingMessage {
|
|
|
4454
4461
|
type TaobaoSmartapp = TaobaoSmartappAppSubChange
|
|
4455
4462
|
| TaobaoSmartappDataSync
|
|
4456
4463
|
| TaobaoSmartappDiagnosticMetrics
|
|
4464
|
+
| TaobaoSmartappOrderAlert
|
|
4457
4465
|
| TaobaoSmartappPresellEnd
|
|
4458
4466
|
| TaobaoSmartappPresellStart
|
|
4459
4467
|
| TaobaoSmartappSchedulerTask
|
package/types/message.out.d.ts
CHANGED
|
@@ -1651,7 +1651,7 @@ declare namespace Xiaoman.Perform {
|
|
|
1651
1651
|
/** 小满客户id */
|
|
1652
1652
|
okki_client_id: string;
|
|
1653
1653
|
/** 执行时间 */
|
|
1654
|
-
okki_execute_time
|
|
1654
|
+
okki_execute_time?: Date | number | string;
|
|
1655
1655
|
/** 小满订单号 */
|
|
1656
1656
|
okki_order_no: string;
|
|
1657
1657
|
/** 小满合同号 */
|
package/types/taobao.d.ts
CHANGED
|
@@ -1084,6 +1084,28 @@ declare namespace Taobao.Dispute {
|
|
|
1084
1084
|
/** 支付单ID */
|
|
1085
1085
|
tid: number | bigint;
|
|
1086
1086
|
}
|
|
1087
|
+
|
|
1088
|
+
/** {@link https://open.taobao.com/tmc.htm?docId=2532&docType=9 申请小二介入} */
|
|
1089
|
+
interface TaobaoInterApplied {
|
|
1090
|
+
/** 1/2:退款,3:退货退款,4/6:换货,其他请调api获取详细信息 */
|
|
1091
|
+
biz_claim_type: number;
|
|
1092
|
+
/** 涉及金额 */
|
|
1093
|
+
buyer_refund_fee: number;
|
|
1094
|
+
/** 创建时间 */
|
|
1095
|
+
create: Date | number | string;
|
|
1096
|
+
/** 1:售中, 2:售后 */
|
|
1097
|
+
dispute_type: number;
|
|
1098
|
+
/** 更新时间 */
|
|
1099
|
+
modified: Date | number | string;
|
|
1100
|
+
/** 子订单ID */
|
|
1101
|
+
oid: number | bigint;
|
|
1102
|
+
/** 退款id(Long)或消息id(字符串) */
|
|
1103
|
+
refund_id: number;
|
|
1104
|
+
/** 卖家openUid */
|
|
1105
|
+
seller_open_uid: string;
|
|
1106
|
+
/** 支付单ID */
|
|
1107
|
+
tid: number | bigint;
|
|
1108
|
+
}
|
|
1087
1109
|
}
|
|
1088
1110
|
|
|
1089
1111
|
/** DPAAS */
|
|
@@ -4715,6 +4737,20 @@ declare namespace Taobao.Smartapp {
|
|
|
4715
4737
|
user_nick: string;
|
|
4716
4738
|
}
|
|
4717
4739
|
|
|
4740
|
+
/** {@link https://open.taobao.com/tmc.htm?docId=2529&docType=9 淘宝智能应用订单预警事件} */
|
|
4741
|
+
interface OrderAlert {
|
|
4742
|
+
/** 操作链接 */
|
|
4743
|
+
action: string;
|
|
4744
|
+
/** 预警任务类型 */
|
|
4745
|
+
alertType: string;
|
|
4746
|
+
/** 预警任务ID */
|
|
4747
|
+
eventId: string;
|
|
4748
|
+
/** 预警任务名称 */
|
|
4749
|
+
flowName: string;
|
|
4750
|
+
/** 订单号 */
|
|
4751
|
+
tid: string;
|
|
4752
|
+
}
|
|
4753
|
+
|
|
4718
4754
|
/** {@link https://open.taobao.com/tmc.htm?docId=2414&docType=9 淘宝智能应用预售尾款截止短信催付} */
|
|
4719
4755
|
interface PresellEnd {
|
|
4720
4756
|
/** 买家openId */
|