tmc.js 0.3.32 → 0.3.34
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/LICENSE +1 -1
- package/README.md +6 -6
- package/package.json +1 -1
- package/types/alibaba.d.ts +28 -0
- package/types/damai.d.ts +6 -0
- package/types/index.d.ts +24 -0
- package/types/message.in.d.ts +26 -2
- package/types/taobao.d.ts +43 -0
package/LICENSE
CHANGED
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>共计 84+ 类别,
|
|
137
|
+
<details><summary>共计 84+ 类别,494+ 消息数</summary>
|
|
138
138
|
|
|
139
139
|
| 类别 | 消息数 |
|
|
140
140
|
| --- | --- |
|
|
141
|
-
| 淘宝交易 |
|
|
141
|
+
| 淘宝交易 | 25 |
|
|
142
142
|
| 淘宝退款 | 13 |
|
|
143
143
|
| 淘宝商品 | 13 |
|
|
144
144
|
| 淘宝分销 | 27 |
|
|
@@ -146,7 +146,7 @@ new Tmc('your_app_key', 'your_app_secret', { autoReplyConfirmation: false })
|
|
|
146
146
|
| 淘宝火车票 | 6 |
|
|
147
147
|
| 平台消息 | 9 |
|
|
148
148
|
| 交易全链路 | 3 |
|
|
149
|
-
| 淘宝机票 |
|
|
149
|
+
| 淘宝机票 | 15 |
|
|
150
150
|
| 导购平台 | 21 |
|
|
151
151
|
| 淘宝汽车票 | 4 |
|
|
152
152
|
| 服务市场 | 9 |
|
|
@@ -159,7 +159,7 @@ new Tmc('your_app_key', 'your_app_secret', { autoReplyConfirmation: false })
|
|
|
159
159
|
| 营销平台 | 1 |
|
|
160
160
|
| OpenIM消息 | 1 |
|
|
161
161
|
| 网上法庭 | 8 |
|
|
162
|
-
| 电子发票 |
|
|
162
|
+
| 电子发票 | 21 |
|
|
163
163
|
| 航旅度假交易 | 8 |
|
|
164
164
|
| YunOS YoC | 2 |
|
|
165
165
|
| 淘宝直播API | 3 |
|
|
@@ -178,7 +178,7 @@ new Tmc('your_app_key', 'your_app_secret', { autoReplyConfirmation: false })
|
|
|
178
178
|
| 智慧门店下行消息 | 2 |
|
|
179
179
|
| 渠道中心API | 4 |
|
|
180
180
|
| 五道口订单 | 22 |
|
|
181
|
-
| 信息平台-采购 |
|
|
181
|
+
| 信息平台-采购 | 3 |
|
|
182
182
|
| 1688服务市场 | 1 |
|
|
183
183
|
| 酒店商品消息api | 9 |
|
|
184
184
|
| 新零售终端下行消息 | 1 |
|
|
@@ -192,7 +192,7 @@ new Tmc('your_app_key', 'your_app_secret', { autoReplyConfirmation: false })
|
|
|
192
192
|
| 商旅API | 3 |
|
|
193
193
|
| 阿里健康-O2O中台 | 2 |
|
|
194
194
|
| 业务平台新零售-消息上行 | 2 |
|
|
195
|
-
| 大麦第三方票务供应商接入 |
|
|
195
|
+
| 大麦第三方票务供应商接入 | 7 |
|
|
196
196
|
| TVOS应用审核平台 | 1 |
|
|
197
197
|
| Gifting送礼 | 1 |
|
|
198
198
|
| 五道口商品 | 2 |
|
package/package.json
CHANGED
package/types/alibaba.d.ts
CHANGED
|
@@ -599,6 +599,16 @@ declare namespace Alibaba.Invoice {
|
|
|
599
599
|
trade_type: number;
|
|
600
600
|
}
|
|
601
601
|
|
|
602
|
+
/** 获取xml发票文件 */
|
|
603
|
+
interface GetXmlFile {
|
|
604
|
+
/** 全电发票的发票号码 */
|
|
605
|
+
invoice_no: string;
|
|
606
|
+
/** 订单号 */
|
|
607
|
+
platform_tid: string;
|
|
608
|
+
/** 卖家Nick */
|
|
609
|
+
seller_nick?: string;
|
|
610
|
+
}
|
|
611
|
+
|
|
602
612
|
/** 税控服务开票申请 */
|
|
603
613
|
interface InvoiceApply {
|
|
604
614
|
/** 开票申请ID */
|
|
@@ -1384,6 +1394,24 @@ declare namespace Alibaba.Nlife {
|
|
|
1384
1394
|
|
|
1385
1395
|
/** 信息平台-采购 */
|
|
1386
1396
|
declare namespace Alibaba.Pur {
|
|
1397
|
+
/** 取消订单结果通知 */
|
|
1398
|
+
interface ResourceOrderCancelNotify {
|
|
1399
|
+
/** 失败原因 */
|
|
1400
|
+
failedMsg?: string;
|
|
1401
|
+
/** 平台子订单号 */
|
|
1402
|
+
orderItemNo: string;
|
|
1403
|
+
/** 平台订单号 */
|
|
1404
|
+
orderNo: string;
|
|
1405
|
+
/** 三方子订单号 */
|
|
1406
|
+
outOrderItemNo: string;
|
|
1407
|
+
/** 三方订单号 */
|
|
1408
|
+
outOrderNo: string;
|
|
1409
|
+
/** 逆向单号 */
|
|
1410
|
+
returnNo: string;
|
|
1411
|
+
/** 取消订单是否成功 */
|
|
1412
|
+
success: boolean;
|
|
1413
|
+
}
|
|
1414
|
+
|
|
1387
1415
|
/** 发货提醒 */
|
|
1388
1416
|
interface ResourceOrderShipNotify {
|
|
1389
1417
|
/** 子订单 */
|
package/types/damai.d.ts
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -142,6 +142,8 @@ declare interface TaoTopicsDescriptor {
|
|
|
142
142
|
alibaba_invoice_DiskOffline(fn: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaInvoiceDiskOffline) => void): TaoMessageConsumer;
|
|
143
143
|
/** {@link IncomingMessage.AlibabaInvoiceFlowBuket 电子发票 > 资源包开通/订购记录同步} */
|
|
144
144
|
alibaba_invoice_FlowBuket(fn: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaInvoiceFlowBuket) => void): TaoMessageConsumer;
|
|
145
|
+
/** {@link IncomingMessage.AlibabaInvoiceGetXmlFile 电子发票 > 获取xml发票文件} */
|
|
146
|
+
alibaba_invoice_GetXmlFile(fn: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaInvoiceGetXmlFile) => void): TaoMessageConsumer;
|
|
145
147
|
/** {@link IncomingMessage.AlibabaInvoiceInvoiceApply 电子发票 > 税控服务开票申请} */
|
|
146
148
|
alibaba_invoice_InvoiceApply(fn: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaInvoiceInvoiceApply) => void): TaoMessageConsumer;
|
|
147
149
|
/** {@link IncomingMessage.AlibabaInvoiceLogistics 电子发票 > 发票对外通知物流信息} */
|
|
@@ -234,6 +236,8 @@ declare interface TaoTopicsDescriptor {
|
|
|
234
236
|
alibaba_nlife_InstorageDiffAuditNotify(fn: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaNlifeInstorageDiffAuditNotify) => void): TaoMessageConsumer;
|
|
235
237
|
/** {@link IncomingMessage.AlibabaNlifeItemUpdate 零售plus > 零售+商品变动消息} */
|
|
236
238
|
alibaba_nlife_ItemUpdate(fn: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaNlifeItemUpdate) => void): TaoMessageConsumer;
|
|
239
|
+
/** {@link IncomingMessage.AlibabaPurResourceOrderCancelNotify 信息平台-采购 > 取消订单结果通知} */
|
|
240
|
+
alibaba_pur_ResourceOrderCancelNotify(fn: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaPurResourceOrderCancelNotify) => void): TaoMessageConsumer;
|
|
237
241
|
/** {@link IncomingMessage.AlibabaPurResourceOrderShipNotify 信息平台-采购 > 发货提醒} */
|
|
238
242
|
alibaba_pur_ResourceOrderShipNotify(fn: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaPurResourceOrderShipNotify) => void): TaoMessageConsumer;
|
|
239
243
|
/** {@link IncomingMessage.AlibabaServiceplatformFulfilTask 天猫服务 > 服务供应链核销单消息} */
|
|
@@ -384,6 +388,8 @@ declare interface TaoTopicsDescriptor {
|
|
|
384
388
|
damai_distribution_ProjectStatus(fn: (this: TaoMessageConsumer, message: IncomingMessage.DamaiDistributionProjectStatus) => void): TaoMessageConsumer;
|
|
385
389
|
/** {@link IncomingMessage.DamaiDistributionRefundOrder 大麦第三方票务供应商接入 > 退票通知} */
|
|
386
390
|
damai_distribution_RefundOrder(fn: (this: TaoMessageConsumer, message: IncomingMessage.DamaiDistributionRefundOrder) => void): TaoMessageConsumer;
|
|
391
|
+
/** {@link IncomingMessage.DamaiDistributionRefundRule 大麦第三方票务供应商接入 > 项目退款规则} */
|
|
392
|
+
damai_distribution_RefundRule(fn: (this: TaoMessageConsumer, message: IncomingMessage.DamaiDistributionRefundRule) => void): TaoMessageConsumer;
|
|
387
393
|
/** {@link IncomingMessage.DamaiDistributionTicketItemStatus 大麦第三方票务供应商接入 > 票品状态变更} */
|
|
388
394
|
damai_distribution_TicketItemStatus(fn: (this: TaoMessageConsumer, message: IncomingMessage.DamaiDistributionTicketItemStatus) => void): TaoMessageConsumer;
|
|
389
395
|
/** {@link IncomingMessage.DamaiTradeTicketStatusPush 大麦票单状态 > 大麦票单状态推送} */
|
|
@@ -634,6 +640,8 @@ declare interface TaoTopicsDescriptor {
|
|
|
634
640
|
taobao_jipiao_SellerOrderNotify(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoJipiaoSellerOrderNotify) => void): TaoMessageConsumer;
|
|
635
641
|
/** {@link IncomingMessage.TaobaoJipiaoSellerRefundOrderNotify 淘宝机票 > 【机票代理商】退票订单通知} */
|
|
636
642
|
taobao_jipiao_SellerRefundOrderNotify(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoJipiaoSellerRefundOrderNotify) => void): TaoMessageConsumer;
|
|
643
|
+
/** {@link IncomingMessage.TaobaoJipiaoUrgeIssueTicket 淘宝机票 > 催出票/拦截出票消息} */
|
|
644
|
+
taobao_jipiao_UrgeIssueTicket(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoJipiaoUrgeIssueTicket) => void): TaoMessageConsumer;
|
|
637
645
|
/** {@link IncomingMessage.TaobaoJzfxPurchaseOrderCreate 淘宝分销 > 家装分销_采购单创建} */
|
|
638
646
|
taobao_jzfx_PurchaseOrderCreate(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoJzfxPurchaseOrderCreate) => void): TaoMessageConsumer;
|
|
639
647
|
/** {@link IncomingMessage.TaobaoJzfxPurchaseOrderStatusModify 淘宝分销 > 家装分销_采购单状态修改} */
|
|
@@ -658,6 +666,8 @@ declare interface TaoTopicsDescriptor {
|
|
|
658
666
|
taobao_modifysku_ResultNotify(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoModifyskuResultNotify) => void): TaoMessageConsumer;
|
|
659
667
|
/** {@link IncomingMessage.TaobaoOcTradeTagChanged 交易全链路 > oc订单标签变更} */
|
|
660
668
|
taobao_oc_TradeTagChanged(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoOcTradeTagChanged) => void): TaoMessageConsumer;
|
|
669
|
+
/** {@link IncomingMessage.TaobaoOfnOrderStatusSync 淘宝交易 > 以旧换新回收单状态同步} */
|
|
670
|
+
taobao_ofn_OrderStatusSync(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoOfnOrderStatusSync) => void): TaoMessageConsumer;
|
|
661
671
|
/** {@link IncomingMessage.TaobaoOpenaccountDataSync 导购平台 > openaccount数据同步} */
|
|
662
672
|
taobao_openaccount_DataSync(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoOpenaccountDataSync) => void): TaoMessageConsumer;
|
|
663
673
|
/** {@link IncomingMessage.TaobaoOpencrmAuthTouchMessage 客户运营平台API > 营销短信授权消息} */
|
|
@@ -1186,6 +1196,8 @@ declare interface TaoTopicsDescriptor {
|
|
|
1186
1196
|
taobao_modifysku(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoModifysku) => void): TaoMessageConsumer;
|
|
1187
1197
|
/** {@link IncomingMessage.TaobaoOc} */
|
|
1188
1198
|
taobao_oc(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoOc) => void): TaoMessageConsumer;
|
|
1199
|
+
/** {@link IncomingMessage.TaobaoOfn} */
|
|
1200
|
+
taobao_ofn(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoOfn) => void): TaoMessageConsumer;
|
|
1189
1201
|
/** {@link IncomingMessage.TaobaoOpenaccount} */
|
|
1190
1202
|
taobao_openaccount(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoOpenaccount) => void): TaoMessageConsumer;
|
|
1191
1203
|
/** {@link IncomingMessage.TaobaoOpencrm} */
|
|
@@ -1399,6 +1411,8 @@ declare interface TaoEventsListener {
|
|
|
1399
1411
|
on(topic: 'alibaba_invoice_DiskOffline', listener: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaInvoiceDiskOffline) => void): TaoMessageConsumer;
|
|
1400
1412
|
/** {@link IncomingMessage.AlibabaInvoiceFlowBuket 电子发票 > 资源包开通/订购记录同步} */
|
|
1401
1413
|
on(topic: 'alibaba_invoice_FlowBuket', listener: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaInvoiceFlowBuket) => void): TaoMessageConsumer;
|
|
1414
|
+
/** {@link IncomingMessage.AlibabaInvoiceGetXmlFile 电子发票 > 获取xml发票文件} */
|
|
1415
|
+
on(topic: 'alibaba_invoice_GetXmlFile', listener: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaInvoiceGetXmlFile) => void): TaoMessageConsumer;
|
|
1402
1416
|
/** {@link IncomingMessage.AlibabaInvoiceInvoiceApply 电子发票 > 税控服务开票申请} */
|
|
1403
1417
|
on(topic: 'alibaba_invoice_InvoiceApply', listener: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaInvoiceInvoiceApply) => void): TaoMessageConsumer;
|
|
1404
1418
|
/** {@link IncomingMessage.AlibabaInvoiceLogistics 电子发票 > 发票对外通知物流信息} */
|
|
@@ -1491,6 +1505,8 @@ declare interface TaoEventsListener {
|
|
|
1491
1505
|
on(topic: 'alibaba_nlife_InstorageDiffAuditNotify', listener: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaNlifeInstorageDiffAuditNotify) => void): TaoMessageConsumer;
|
|
1492
1506
|
/** {@link IncomingMessage.AlibabaNlifeItemUpdate 零售plus > 零售+商品变动消息} */
|
|
1493
1507
|
on(topic: 'alibaba_nlife_ItemUpdate', listener: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaNlifeItemUpdate) => void): TaoMessageConsumer;
|
|
1508
|
+
/** {@link IncomingMessage.AlibabaPurResourceOrderCancelNotify 信息平台-采购 > 取消订单结果通知} */
|
|
1509
|
+
on(topic: 'alibaba_pur_ResourceOrderCancelNotify', listener: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaPurResourceOrderCancelNotify) => void): TaoMessageConsumer;
|
|
1494
1510
|
/** {@link IncomingMessage.AlibabaPurResourceOrderShipNotify 信息平台-采购 > 发货提醒} */
|
|
1495
1511
|
on(topic: 'alibaba_pur_ResourceOrderShipNotify', listener: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaPurResourceOrderShipNotify) => void): TaoMessageConsumer;
|
|
1496
1512
|
/** {@link IncomingMessage.AlibabaServiceplatformFulfilTask 天猫服务 > 服务供应链核销单消息} */
|
|
@@ -1641,6 +1657,8 @@ declare interface TaoEventsListener {
|
|
|
1641
1657
|
on(topic: 'damai_distribution_ProjectStatus', listener: (this: TaoMessageConsumer, message: IncomingMessage.DamaiDistributionProjectStatus) => void): TaoMessageConsumer;
|
|
1642
1658
|
/** {@link IncomingMessage.DamaiDistributionRefundOrder 大麦第三方票务供应商接入 > 退票通知} */
|
|
1643
1659
|
on(topic: 'damai_distribution_RefundOrder', listener: (this: TaoMessageConsumer, message: IncomingMessage.DamaiDistributionRefundOrder) => void): TaoMessageConsumer;
|
|
1660
|
+
/** {@link IncomingMessage.DamaiDistributionRefundRule 大麦第三方票务供应商接入 > 项目退款规则} */
|
|
1661
|
+
on(topic: 'damai_distribution_RefundRule', listener: (this: TaoMessageConsumer, message: IncomingMessage.DamaiDistributionRefundRule) => void): TaoMessageConsumer;
|
|
1644
1662
|
/** {@link IncomingMessage.DamaiDistributionTicketItemStatus 大麦第三方票务供应商接入 > 票品状态变更} */
|
|
1645
1663
|
on(topic: 'damai_distribution_TicketItemStatus', listener: (this: TaoMessageConsumer, message: IncomingMessage.DamaiDistributionTicketItemStatus) => void): TaoMessageConsumer;
|
|
1646
1664
|
/** {@link IncomingMessage.DamaiTradeTicketStatusPush 大麦票单状态 > 大麦票单状态推送} */
|
|
@@ -1891,6 +1909,8 @@ declare interface TaoEventsListener {
|
|
|
1891
1909
|
on(topic: 'taobao_jipiao_SellerOrderNotify', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoJipiaoSellerOrderNotify) => void): TaoMessageConsumer;
|
|
1892
1910
|
/** {@link IncomingMessage.TaobaoJipiaoSellerRefundOrderNotify 淘宝机票 > 【机票代理商】退票订单通知} */
|
|
1893
1911
|
on(topic: 'taobao_jipiao_SellerRefundOrderNotify', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoJipiaoSellerRefundOrderNotify) => void): TaoMessageConsumer;
|
|
1912
|
+
/** {@link IncomingMessage.TaobaoJipiaoUrgeIssueTicket 淘宝机票 > 催出票/拦截出票消息} */
|
|
1913
|
+
on(topic: 'taobao_jipiao_UrgeIssueTicket', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoJipiaoUrgeIssueTicket) => void): TaoMessageConsumer;
|
|
1894
1914
|
/** {@link IncomingMessage.TaobaoJzfxPurchaseOrderCreate 淘宝分销 > 家装分销_采购单创建} */
|
|
1895
1915
|
on(topic: 'taobao_jzfx_PurchaseOrderCreate', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoJzfxPurchaseOrderCreate) => void): TaoMessageConsumer;
|
|
1896
1916
|
/** {@link IncomingMessage.TaobaoJzfxPurchaseOrderStatusModify 淘宝分销 > 家装分销_采购单状态修改} */
|
|
@@ -1915,6 +1935,8 @@ declare interface TaoEventsListener {
|
|
|
1915
1935
|
on(topic: 'taobao_modifysku_ResultNotify', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoModifyskuResultNotify) => void): TaoMessageConsumer;
|
|
1916
1936
|
/** {@link IncomingMessage.TaobaoOcTradeTagChanged 交易全链路 > oc订单标签变更} */
|
|
1917
1937
|
on(topic: 'taobao_oc_TradeTagChanged', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoOcTradeTagChanged) => void): TaoMessageConsumer;
|
|
1938
|
+
/** {@link IncomingMessage.TaobaoOfnOrderStatusSync 淘宝交易 > 以旧换新回收单状态同步} */
|
|
1939
|
+
on(topic: 'taobao_ofn_OrderStatusSync', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoOfnOrderStatusSync) => void): TaoMessageConsumer;
|
|
1918
1940
|
/** {@link IncomingMessage.TaobaoOpenaccountDataSync 导购平台 > openaccount数据同步} */
|
|
1919
1941
|
on(topic: 'taobao_openaccount_DataSync', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoOpenaccountDataSync) => void): TaoMessageConsumer;
|
|
1920
1942
|
/** {@link IncomingMessage.TaobaoOpencrmAuthTouchMessage 客户运营平台API > 营销短信授权消息} */
|
|
@@ -2443,6 +2465,8 @@ declare interface TaoEventsListener {
|
|
|
2443
2465
|
on(topic: 'taobao_modifysku', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoModifysku) => void): TaoMessageConsumer;
|
|
2444
2466
|
/** {@link IncomingMessage.TaobaoOc} */
|
|
2445
2467
|
on(topic: 'taobao_oc', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoOc) => void): TaoMessageConsumer;
|
|
2468
|
+
/** {@link IncomingMessage.TaobaoOfn} */
|
|
2469
|
+
on(topic: 'taobao_ofn', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoOfn) => void): TaoMessageConsumer;
|
|
2446
2470
|
/** {@link IncomingMessage.TaobaoOpenaccount} */
|
|
2447
2471
|
on(topic: 'taobao_openaccount', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoOpenaccount) => void): TaoMessageConsumer;
|
|
2448
2472
|
/** {@link IncomingMessage.TaobaoOpencrm} */
|
package/types/message.in.d.ts
CHANGED
|
@@ -103,6 +103,8 @@ declare namespace IncomingMessage {
|
|
|
103
103
|
type AlibabaInvoiceDiskOffline = Message & { content?: MessageContent & { topic?: 'alibaba_invoice_DiskOffline', content?: string | Alibaba.Invoice.DiskOffline } };
|
|
104
104
|
/** {@link Alibaba.Invoice.FlowBuket 电子发票 > 资源包开通/订购记录同步} */
|
|
105
105
|
type AlibabaInvoiceFlowBuket = Message & { content?: MessageContent & { topic?: 'alibaba_invoice_FlowBuket', content?: string | Alibaba.Invoice.FlowBuket } };
|
|
106
|
+
/** {@link Alibaba.Invoice.GetXmlFile 电子发票 > 获取xml发票文件} */
|
|
107
|
+
type AlibabaInvoiceGetXmlFile = Message & { content?: MessageContent & { topic?: 'alibaba_invoice_GetXmlFile', content?: string | Alibaba.Invoice.GetXmlFile } };
|
|
106
108
|
/** {@link Alibaba.Invoice.InvoiceApply 电子发票 > 税控服务开票申请} */
|
|
107
109
|
type AlibabaInvoiceInvoiceApply = Message & { content?: MessageContent & { topic?: 'alibaba_invoice_InvoiceApply', content?: string | Alibaba.Invoice.InvoiceApply } };
|
|
108
110
|
/** {@link Alibaba.Invoice.Logistics 电子发票 > 发票对外通知物流信息} */
|
|
@@ -195,6 +197,8 @@ declare namespace IncomingMessage {
|
|
|
195
197
|
type AlibabaNlifeInstorageDiffAuditNotify = Message & { content?: MessageContent & { topic?: 'alibaba_nlife_InstorageDiffAuditNotify', content?: string | Alibaba.Nlife.InstorageDiffAuditNotify } };
|
|
196
198
|
/** {@link Alibaba.Nlife.ItemUpdate 零售plus > 零售+商品变动消息} */
|
|
197
199
|
type AlibabaNlifeItemUpdate = Message & { content?: MessageContent & { topic?: 'alibaba_nlife_ItemUpdate', content?: string | Alibaba.Nlife.ItemUpdate } };
|
|
200
|
+
/** {@link Alibaba.Pur.ResourceOrderCancelNotify 信息平台-采购 > 取消订单结果通知} */
|
|
201
|
+
type AlibabaPurResourceOrderCancelNotify = Message & { content?: MessageContent & { topic?: 'alibaba_pur_ResourceOrderCancelNotify', content?: string | Alibaba.Pur.ResourceOrderCancelNotify } };
|
|
198
202
|
/** {@link Alibaba.Pur.ResourceOrderShipNotify 信息平台-采购 > 发货提醒} */
|
|
199
203
|
type AlibabaPurResourceOrderShipNotify = Message & { content?: MessageContent & { topic?: 'alibaba_pur_ResourceOrderShipNotify', content?: string | Alibaba.Pur.ResourceOrderShipNotify } };
|
|
200
204
|
/** {@link Alibaba.Serviceplatform.FulfilTask 天猫服务 > 服务供应链核销单消息} */
|
|
@@ -345,6 +349,8 @@ declare namespace IncomingMessage {
|
|
|
345
349
|
type DamaiDistributionProjectStatus = Message & { content?: MessageContent & { topic?: 'damai_distribution_ProjectStatus', content?: string | Damai.Distribution.ProjectStatus } };
|
|
346
350
|
/** {@link Damai.Distribution.RefundOrder 大麦第三方票务供应商接入 > 退票通知} */
|
|
347
351
|
type DamaiDistributionRefundOrder = Message & { content?: MessageContent & { topic?: 'damai_distribution_RefundOrder', content?: string | Damai.Distribution.RefundOrder } };
|
|
352
|
+
/** {@link Damai.Distribution.RefundRule 大麦第三方票务供应商接入 > 项目退款规则} */
|
|
353
|
+
type DamaiDistributionRefundRule = Message & { content?: MessageContent & { topic?: 'damai_distribution_RefundRule', content?: string | Damai.Distribution.RefundRule } };
|
|
348
354
|
/** {@link Damai.Distribution.TicketItemStatus 大麦第三方票务供应商接入 > 票品状态变更} */
|
|
349
355
|
type DamaiDistributionTicketItemStatus = Message & { content?: MessageContent & { topic?: 'damai_distribution_TicketItemStatus', content?: string | Damai.Distribution.TicketItemStatus } };
|
|
350
356
|
/** {@link Damai.Trade.TicketStatusPush 大麦票单状态 > 大麦票单状态推送} */
|
|
@@ -595,6 +601,8 @@ declare namespace IncomingMessage {
|
|
|
595
601
|
type TaobaoJipiaoSellerOrderNotify = Message & { content?: MessageContent & { topic?: 'taobao_jipiao_SellerOrderNotify', content?: string | Taobao.Jipiao.SellerOrderNotify } };
|
|
596
602
|
/** {@link Taobao.Jipiao.SellerRefundOrderNotify 淘宝机票 > 【机票代理商】退票订单通知} */
|
|
597
603
|
type TaobaoJipiaoSellerRefundOrderNotify = Message & { content?: MessageContent & { topic?: 'taobao_jipiao_SellerRefundOrderNotify', content?: string | Taobao.Jipiao.SellerRefundOrderNotify } };
|
|
604
|
+
/** {@link Taobao.Jipiao.UrgeIssueTicket 淘宝机票 > 催出票/拦截出票消息} */
|
|
605
|
+
type TaobaoJipiaoUrgeIssueTicket = Message & { content?: MessageContent & { topic?: 'taobao_jipiao_UrgeIssueTicket', content?: string | Taobao.Jipiao.UrgeIssueTicket } };
|
|
598
606
|
/** {@link Taobao.Jzfx.PurchaseOrderCreate 淘宝分销 > 家装分销_采购单创建} */
|
|
599
607
|
type TaobaoJzfxPurchaseOrderCreate = Message & { content?: MessageContent & { topic?: 'taobao_jzfx_PurchaseOrderCreate', content?: string | Taobao.Jzfx.PurchaseOrderCreate } };
|
|
600
608
|
/** {@link Taobao.Jzfx.PurchaseOrderStatusModify 淘宝分销 > 家装分销_采购单状态修改} */
|
|
@@ -619,6 +627,8 @@ declare namespace IncomingMessage {
|
|
|
619
627
|
type TaobaoModifyskuResultNotify = Message & { content?: MessageContent & { topic?: 'taobao_modifysku_ResultNotify', content?: string | Taobao.Modifysku.ResultNotify } };
|
|
620
628
|
/** {@link Taobao.Oc.TradeTagChanged 交易全链路 > oc订单标签变更} */
|
|
621
629
|
type TaobaoOcTradeTagChanged = Message & { content?: MessageContent & { topic?: 'taobao_oc_TradeTagChanged', content?: string | Taobao.Oc.TradeTagChanged } };
|
|
630
|
+
/** {@link Taobao.Ofn.OrderStatusSync 淘宝交易 > 以旧换新回收单状态同步} */
|
|
631
|
+
type TaobaoOfnOrderStatusSync = Message & { content?: MessageContent & { topic?: 'taobao_ofn_OrderStatusSync', content?: string | Taobao.Ofn.OrderStatusSync } };
|
|
622
632
|
/** {@link Taobao.Openaccount.DataSync 导购平台 > openaccount数据同步} */
|
|
623
633
|
type TaobaoOpenaccountDataSync = Message & { content?: MessageContent & { topic?: 'taobao_openaccount_DataSync', content?: string | Taobao.Openaccount.DataSync } };
|
|
624
634
|
/** {@link Taobao.Opencrm.AuthTouchMessage 客户运营平台API > 营销短信授权消息} */
|
|
@@ -1044,6 +1054,7 @@ declare namespace IncomingMessage {
|
|
|
1044
1054
|
* - {@link AlibabaInvoiceApplyResult 电子发票 > 开票申请审核结果}
|
|
1045
1055
|
* - {@link AlibabaInvoiceDiskOffline 电子发票 > 税盘下架单新增和更新通知}
|
|
1046
1056
|
* - {@link AlibabaInvoiceFlowBuket 电子发票 > 资源包开通/订购记录同步}
|
|
1057
|
+
* - {@link AlibabaInvoiceGetXmlFile 电子发票 > 获取xml发票文件}
|
|
1047
1058
|
* - {@link AlibabaInvoiceInvoiceApply 电子发票 > 税控服务开票申请}
|
|
1048
1059
|
* - {@link AlibabaInvoiceLogistics 电子发票 > 发票对外通知物流信息}
|
|
1049
1060
|
* - {@link AlibabaInvoicePaperOpsReturn 电子发票 > 纸票操作结果回传(打印、作废等)}
|
|
@@ -1060,6 +1071,7 @@ declare namespace IncomingMessage {
|
|
|
1060
1071
|
| AlibabaInvoiceApplyResult
|
|
1061
1072
|
| AlibabaInvoiceDiskOffline
|
|
1062
1073
|
| AlibabaInvoiceFlowBuket
|
|
1074
|
+
| AlibabaInvoiceGetXmlFile
|
|
1063
1075
|
| AlibabaInvoiceInvoiceApply
|
|
1064
1076
|
| AlibabaInvoiceLogistics
|
|
1065
1077
|
| AlibabaInvoicePaperOpsReturn
|
|
@@ -1158,9 +1170,11 @@ declare namespace IncomingMessage {
|
|
|
1158
1170
|
| AlibabaNlifeInstorageDiffAuditNotify
|
|
1159
1171
|
| AlibabaNlifeItemUpdate;
|
|
1160
1172
|
/**
|
|
1173
|
+
* - {@link AlibabaPurResourceOrderCancelNotify 信息平台-采购 > 取消订单结果通知}
|
|
1161
1174
|
* - {@link AlibabaPurResourceOrderShipNotify 信息平台-采购 > 发货提醒}
|
|
1162
1175
|
*/
|
|
1163
|
-
type AlibabaPur =
|
|
1176
|
+
type AlibabaPur = AlibabaPurResourceOrderCancelNotify
|
|
1177
|
+
| AlibabaPurResourceOrderShipNotify;
|
|
1164
1178
|
/**
|
|
1165
1179
|
* - {@link AlibabaServiceplatformFulfilTask 天猫服务 > 服务供应链核销单消息}
|
|
1166
1180
|
* - {@link AlibabaServiceplatformServiceOrder 天猫服务 > 服务供应链服务单消息}
|
|
@@ -1365,6 +1379,7 @@ declare namespace IncomingMessage {
|
|
|
1365
1379
|
* - {@link DamaiDistributionPreSaleToNow 大麦第三方票务供应商接入 > 预售改开票}
|
|
1366
1380
|
* - {@link DamaiDistributionProjectStatus 大麦第三方票务供应商接入 > 项目状态推送}
|
|
1367
1381
|
* - {@link DamaiDistributionRefundOrder 大麦第三方票务供应商接入 > 退票通知}
|
|
1382
|
+
* - {@link DamaiDistributionRefundRule 大麦第三方票务供应商接入 > 项目退款规则}
|
|
1368
1383
|
* - {@link DamaiDistributionTicketItemStatus 大麦第三方票务供应商接入 > 票品状态变更}
|
|
1369
1384
|
*/
|
|
1370
1385
|
type DamaiDistribution = DamaiDistributionPerformCancel
|
|
@@ -1372,6 +1387,7 @@ declare namespace IncomingMessage {
|
|
|
1372
1387
|
| DamaiDistributionPreSaleToNow
|
|
1373
1388
|
| DamaiDistributionProjectStatus
|
|
1374
1389
|
| DamaiDistributionRefundOrder
|
|
1390
|
+
| DamaiDistributionRefundRule
|
|
1375
1391
|
| DamaiDistributionTicketItemStatus;
|
|
1376
1392
|
/**
|
|
1377
1393
|
* - {@link DamaiTradeTicketStatusPush 大麦票单状态 > 大麦票单状态推送}
|
|
@@ -1696,13 +1712,15 @@ declare namespace IncomingMessage {
|
|
|
1696
1712
|
* - {@link TaobaoJipiaoJipiaoRefundOrderNotify 淘宝机票 > 机票退票订单状态推送}
|
|
1697
1713
|
* - {@link TaobaoJipiaoSellerOrderNotify 淘宝机票 > 【机票代理商】订单通知}
|
|
1698
1714
|
* - {@link TaobaoJipiaoSellerRefundOrderNotify 淘宝机票 > 【机票代理商】退票订单通知}
|
|
1715
|
+
* - {@link TaobaoJipiaoUrgeIssueTicket 淘宝机票 > 催出票/拦截出票消息}
|
|
1699
1716
|
*/
|
|
1700
1717
|
type TaobaoJipiao = TaobaoJipiaoAncillaryOrderPaid
|
|
1701
1718
|
| TaobaoJipiaoJipiaoModifyOrderNotify
|
|
1702
1719
|
| TaobaoJipiaoJipiaoOrderStatusNotify
|
|
1703
1720
|
| TaobaoJipiaoJipiaoRefundOrderNotify
|
|
1704
1721
|
| TaobaoJipiaoSellerOrderNotify
|
|
1705
|
-
| TaobaoJipiaoSellerRefundOrderNotify
|
|
1722
|
+
| TaobaoJipiaoSellerRefundOrderNotify
|
|
1723
|
+
| TaobaoJipiaoUrgeIssueTicket;
|
|
1706
1724
|
/**
|
|
1707
1725
|
* - {@link TaobaoJzfxPurchaseOrderCreate 淘宝分销 > 家装分销_采购单创建}
|
|
1708
1726
|
* - {@link TaobaoJzfxPurchaseOrderStatusModify 淘宝分销 > 家装分销_采购单状态修改}
|
|
@@ -1741,6 +1759,10 @@ declare namespace IncomingMessage {
|
|
|
1741
1759
|
* - {@link TaobaoOcTradeTagChanged 交易全链路 > oc订单标签变更}
|
|
1742
1760
|
*/
|
|
1743
1761
|
type TaobaoOc = TaobaoOcTradeTagChanged;
|
|
1762
|
+
/**
|
|
1763
|
+
* - {@link TaobaoOfnOrderStatusSync 淘宝交易 > 以旧换新回收单状态同步}
|
|
1764
|
+
*/
|
|
1765
|
+
type TaobaoOfn = TaobaoOfnOrderStatusSync;
|
|
1744
1766
|
/**
|
|
1745
1767
|
* - {@link TaobaoOpenaccountDataSync 导购平台 > openaccount数据同步}
|
|
1746
1768
|
*/
|
|
@@ -2357,6 +2379,7 @@ declare namespace IncomingMessage {
|
|
|
2357
2379
|
* - {@link TaobaoModifyorder}
|
|
2358
2380
|
* - {@link TaobaoModifysku}
|
|
2359
2381
|
* - {@link TaobaoOc}
|
|
2382
|
+
* - {@link TaobaoOfn}
|
|
2360
2383
|
* - {@link TaobaoOpenaccount}
|
|
2361
2384
|
* - {@link TaobaoOpencrm}
|
|
2362
2385
|
* - {@link TaobaoOpenim}
|
|
@@ -2409,6 +2432,7 @@ declare namespace IncomingMessage {
|
|
|
2409
2432
|
| TaobaoModifyorder
|
|
2410
2433
|
| TaobaoModifysku
|
|
2411
2434
|
| TaobaoOc
|
|
2435
|
+
| TaobaoOfn
|
|
2412
2436
|
| TaobaoOpenaccount
|
|
2413
2437
|
| TaobaoOpencrm
|
|
2414
2438
|
| TaobaoOpenim
|
package/types/taobao.d.ts
CHANGED
|
@@ -406,6 +406,8 @@ declare namespace Taobao.Dpaas {
|
|
|
406
406
|
declare namespace Taobao.Dv {
|
|
407
407
|
/** 淘宝数字虚拟外放 */
|
|
408
408
|
interface External {
|
|
409
|
+
/** json形式,里面包括bizType和业务信息 */
|
|
410
|
+
ext?: string;
|
|
409
411
|
/** 外部订单号 */
|
|
410
412
|
out_order_id: string;
|
|
411
413
|
/** 0:进行中,1:成功,2:失败,9:不存在 */
|
|
@@ -1406,6 +1408,16 @@ declare namespace Taobao.Jipiao {
|
|
|
1406
1408
|
/** 机票订单id */
|
|
1407
1409
|
order_id: number;
|
|
1408
1410
|
}
|
|
1411
|
+
|
|
1412
|
+
/** 催出票/拦截出票消息 */
|
|
1413
|
+
interface UrgeIssueTicket {
|
|
1414
|
+
/** 代理商id */
|
|
1415
|
+
agent_id: number;
|
|
1416
|
+
/** 订单号 */
|
|
1417
|
+
order_id: number;
|
|
1418
|
+
/** 消息类型:0-催出票,1-拦截出票 */
|
|
1419
|
+
send_type: number;
|
|
1420
|
+
}
|
|
1409
1421
|
}
|
|
1410
1422
|
|
|
1411
1423
|
/** 淘宝分销 */
|
|
@@ -1611,6 +1623,37 @@ declare namespace Taobao.Oc {
|
|
|
1611
1623
|
}
|
|
1612
1624
|
}
|
|
1613
1625
|
|
|
1626
|
+
/** 淘宝交易 */
|
|
1627
|
+
declare namespace Taobao.Ofn {
|
|
1628
|
+
/** 以旧换新回收单状态同步 */
|
|
1629
|
+
interface OrderStatusSync {
|
|
1630
|
+
/** 估价金额,单位 分 */
|
|
1631
|
+
apprize_amount?: string;
|
|
1632
|
+
/** 回收单 ID */
|
|
1633
|
+
biz_order_id: string;
|
|
1634
|
+
/** 渠道 */
|
|
1635
|
+
channel: string;
|
|
1636
|
+
/** 渠道数据,json格式 */
|
|
1637
|
+
channel_data?: string;
|
|
1638
|
+
/** 信用预付金额,单位分 */
|
|
1639
|
+
credit_pay_amount?: string;
|
|
1640
|
+
/** 创单时间 */
|
|
1641
|
+
gmt_create?: string;
|
|
1642
|
+
/** 订单状态 */
|
|
1643
|
+
order_status: string;
|
|
1644
|
+
/** 1 现金支付 / 2 红包支付 */
|
|
1645
|
+
pay_type?: string;
|
|
1646
|
+
/** 估价 ID */
|
|
1647
|
+
quote_id?: string;
|
|
1648
|
+
/** 上门取件时间 */
|
|
1649
|
+
ship_time?: string;
|
|
1650
|
+
/** SPU ID */
|
|
1651
|
+
spu_id: string;
|
|
1652
|
+
/** 回收商 appKey */
|
|
1653
|
+
supplier_id?: string;
|
|
1654
|
+
}
|
|
1655
|
+
}
|
|
1656
|
+
|
|
1614
1657
|
/** 导购平台 */
|
|
1615
1658
|
declare namespace Taobao.Openaccount {
|
|
1616
1659
|
/** openaccount数据同步 */
|