tmc.js 0.3.15 → 0.3.16
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 +1 -1
- package/types/index.d.ts +8 -0
- package/types/message.in.d.ts +9 -1
- package/types/taobao.d.ts +30 -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>共计 83+ 类别,
|
|
137
|
+
<details><summary>共计 83+ 类别,448+ 消息数</summary>
|
|
138
138
|
|
|
139
139
|
| 类别 | 消息数 |
|
|
140
140
|
| --- | --- |
|
|
@@ -144,7 +144,7 @@ new Tmc('your_app_key', 'your_app_secret', { autoReplyConfirmation: false })
|
|
|
144
144
|
| 淘宝分销 | 23 |
|
|
145
145
|
| 淘宝点点 | 12 |
|
|
146
146
|
| 淘宝火车票 | 5 |
|
|
147
|
-
| 平台消息 |
|
|
147
|
+
| 平台消息 | 8 |
|
|
148
148
|
| 交易全链路 | 3 |
|
|
149
149
|
| 淘宝机票 | 14 |
|
|
150
150
|
| 导购平台 | 21 |
|
|
@@ -166,7 +166,7 @@ new Tmc('your_app_key', 'your_app_secret', { autoReplyConfirmation: false })
|
|
|
166
166
|
| 阿里物联 | 2 |
|
|
167
167
|
| 全球购跨境物流 | 1 |
|
|
168
168
|
| 零售plus | 8 |
|
|
169
|
-
| 客户运营平台API |
|
|
169
|
+
| 客户运营平台API | 13 |
|
|
170
170
|
| AE-交易 | 10 |
|
|
171
171
|
| 五道口配送 | 1 |
|
|
172
172
|
| 百川 | 2 |
|
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -616,6 +616,8 @@ declare interface TaoTopicsDescriptor {
|
|
|
616
616
|
taobao_opencrm_CrowdInstResult(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoOpencrmCrowdInstResult) => void): TaoMessageConsumer;
|
|
617
617
|
/** {@link IncomingMessage.TaobaoOpencrmCrowdInstSaveResult 客户运营平台API > 人群快照另存为人群结果} */
|
|
618
618
|
taobao_opencrm_CrowdInstSaveResult(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoOpencrmCrowdInstSaveResult) => void): TaoMessageConsumer;
|
|
619
|
+
/** {@link IncomingMessage.TaobaoOpencrmDigitalTplExamine 客户运营平台API > 数字短信模板审核消息} */
|
|
620
|
+
taobao_opencrm_DigitalTplExamine(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoOpencrmDigitalTplExamine) => void): TaoMessageConsumer;
|
|
619
621
|
/** {@link IncomingMessage.TaobaoOpencrmFeedback 客户运营平台API > 反馈tmc} */
|
|
620
622
|
taobao_opencrm_Feedback(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoOpencrmFeedback) => void): TaoMessageConsumer;
|
|
621
623
|
/** {@link IncomingMessage.TaobaoOpencrmMemberGradeChange 客户运营平台API > 会员等级变更} */
|
|
@@ -714,6 +716,8 @@ declare interface TaoTopicsDescriptor {
|
|
|
714
716
|
taobao_tae_ItemUpShelf(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoTaeItemUpShelf) => void): TaoMessageConsumer;
|
|
715
717
|
/** {@link IncomingMessage.TaobaoTopAuthCancel 平台消息 > 取消授权消息通知} */
|
|
716
718
|
taobao_top_AuthCancel(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoTopAuthCancel) => void): TaoMessageConsumer;
|
|
719
|
+
/** {@link IncomingMessage.TaobaoTopProcessCallback 平台消息 > 工作流执行回调消息} */
|
|
720
|
+
taobao_top_ProcessCallback(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoTopProcessCallback) => void): TaoMessageConsumer;
|
|
717
721
|
/** {@link IncomingMessage.TaobaoTopatsTaskComplete 平台消息 > 异步任务执行完成} */
|
|
718
722
|
taobao_topats_TaskComplete(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoTopatsTaskComplete) => void): TaoMessageConsumer;
|
|
719
723
|
/** {@link IncomingMessage.TaobaoTradeAdvanceDisburse 淘宝交易 > 订单极速放款成功消息} */
|
|
@@ -1757,6 +1761,8 @@ declare interface TaoEventsListener {
|
|
|
1757
1761
|
on(topic: 'taobao_opencrm_CrowdInstResult', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoOpencrmCrowdInstResult) => void): TaoMessageConsumer;
|
|
1758
1762
|
/** {@link IncomingMessage.TaobaoOpencrmCrowdInstSaveResult 客户运营平台API > 人群快照另存为人群结果} */
|
|
1759
1763
|
on(topic: 'taobao_opencrm_CrowdInstSaveResult', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoOpencrmCrowdInstSaveResult) => void): TaoMessageConsumer;
|
|
1764
|
+
/** {@link IncomingMessage.TaobaoOpencrmDigitalTplExamine 客户运营平台API > 数字短信模板审核消息} */
|
|
1765
|
+
on(topic: 'taobao_opencrm_DigitalTplExamine', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoOpencrmDigitalTplExamine) => void): TaoMessageConsumer;
|
|
1760
1766
|
/** {@link IncomingMessage.TaobaoOpencrmFeedback 客户运营平台API > 反馈tmc} */
|
|
1761
1767
|
on(topic: 'taobao_opencrm_Feedback', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoOpencrmFeedback) => void): TaoMessageConsumer;
|
|
1762
1768
|
/** {@link IncomingMessage.TaobaoOpencrmMemberGradeChange 客户运营平台API > 会员等级变更} */
|
|
@@ -1855,6 +1861,8 @@ declare interface TaoEventsListener {
|
|
|
1855
1861
|
on(topic: 'taobao_tae_ItemUpShelf', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoTaeItemUpShelf) => void): TaoMessageConsumer;
|
|
1856
1862
|
/** {@link IncomingMessage.TaobaoTopAuthCancel 平台消息 > 取消授权消息通知} */
|
|
1857
1863
|
on(topic: 'taobao_top_AuthCancel', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoTopAuthCancel) => void): TaoMessageConsumer;
|
|
1864
|
+
/** {@link IncomingMessage.TaobaoTopProcessCallback 平台消息 > 工作流执行回调消息} */
|
|
1865
|
+
on(topic: 'taobao_top_ProcessCallback', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoTopProcessCallback) => void): TaoMessageConsumer;
|
|
1858
1866
|
/** {@link IncomingMessage.TaobaoTopatsTaskComplete 平台消息 > 异步任务执行完成} */
|
|
1859
1867
|
on(topic: 'taobao_topats_TaskComplete', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoTopatsTaskComplete) => void): TaoMessageConsumer;
|
|
1860
1868
|
/** {@link IncomingMessage.TaobaoTradeAdvanceDisburse 淘宝交易 > 订单极速放款成功消息} */
|
package/types/message.in.d.ts
CHANGED
|
@@ -575,6 +575,8 @@ declare namespace IncomingMessage {
|
|
|
575
575
|
type TaobaoOpencrmCrowdInstResult = Message & { content?: MessageContent & { topic?: 'taobao_opencrm_CrowdInstResult', content?: string | Taobao.Opencrm.CrowdInstResult } };
|
|
576
576
|
/** {@link Taobao.Opencrm.CrowdInstSaveResult 客户运营平台API > 人群快照另存为人群结果} */
|
|
577
577
|
type TaobaoOpencrmCrowdInstSaveResult = Message & { content?: MessageContent & { topic?: 'taobao_opencrm_CrowdInstSaveResult', content?: string | Taobao.Opencrm.CrowdInstSaveResult } };
|
|
578
|
+
/** {@link Taobao.Opencrm.DigitalTplExamine 客户运营平台API > 数字短信模板审核消息} */
|
|
579
|
+
type TaobaoOpencrmDigitalTplExamine = Message & { content?: MessageContent & { topic?: 'taobao_opencrm_DigitalTplExamine', content?: string | Taobao.Opencrm.DigitalTplExamine } };
|
|
578
580
|
/** {@link Taobao.Opencrm.Feedback 客户运营平台API > 反馈tmc} */
|
|
579
581
|
type TaobaoOpencrmFeedback = Message & { content?: MessageContent & { topic?: 'taobao_opencrm_Feedback', content?: string | Taobao.Opencrm.Feedback } };
|
|
580
582
|
/** {@link Taobao.Opencrm.MemberGradeChange 客户运营平台API > 会员等级变更} */
|
|
@@ -673,6 +675,8 @@ declare namespace IncomingMessage {
|
|
|
673
675
|
type TaobaoTaeItemUpShelf = Message & { content?: MessageContent & { topic?: 'taobao_tae_ItemUpShelf', content?: string | Taobao.Tae.ItemUpShelf } };
|
|
674
676
|
/** {@link Taobao.Top.AuthCancel 平台消息 > 取消授权消息通知} */
|
|
675
677
|
type TaobaoTopAuthCancel = Message & { content?: MessageContent & { topic?: 'taobao_top_AuthCancel', content?: string | Taobao.Top.AuthCancel } };
|
|
678
|
+
/** {@link Taobao.Top.ProcessCallback 平台消息 > 工作流执行回调消息} */
|
|
679
|
+
type TaobaoTopProcessCallback = Message & { content?: MessageContent & { topic?: 'taobao_top_ProcessCallback', content?: string | Taobao.Top.ProcessCallback } };
|
|
676
680
|
/** {@link Taobao.Topats.TaskComplete 平台消息 > 异步任务执行完成} */
|
|
677
681
|
type TaobaoTopatsTaskComplete = Message & { content?: MessageContent & { topic?: 'taobao_topats_TaskComplete', content?: string | Taobao.Topats.TaskComplete } };
|
|
678
682
|
/** {@link Taobao.Trade.AdvanceDisburse 淘宝交易 > 订单极速放款成功消息} */
|
|
@@ -1587,6 +1591,7 @@ declare namespace IncomingMessage {
|
|
|
1587
1591
|
* - {@link TaobaoOpencrmCardTplExamine 客户运营平台API > 卡片短信模板审核消息}
|
|
1588
1592
|
* - {@link TaobaoOpencrmCrowdInstResult 客户运营平台API > 人群快照生成结果}
|
|
1589
1593
|
* - {@link TaobaoOpencrmCrowdInstSaveResult 客户运营平台API > 人群快照另存为人群结果}
|
|
1594
|
+
* - {@link TaobaoOpencrmDigitalTplExamine 客户运营平台API > 数字短信模板审核消息}
|
|
1590
1595
|
* - {@link TaobaoOpencrmFeedback 客户运营平台API > 反馈tmc}
|
|
1591
1596
|
* - {@link TaobaoOpencrmMemberGradeChange 客户运营平台API > 会员等级变更}
|
|
1592
1597
|
* - {@link TaobaoOpencrmNodeExecuteFinished 客户运营平台API > 节点执行完成消息}
|
|
@@ -1600,6 +1605,7 @@ declare namespace IncomingMessage {
|
|
|
1600
1605
|
| TaobaoOpencrmCardTplExamine
|
|
1601
1606
|
| TaobaoOpencrmCrowdInstResult
|
|
1602
1607
|
| TaobaoOpencrmCrowdInstSaveResult
|
|
1608
|
+
| TaobaoOpencrmDigitalTplExamine
|
|
1603
1609
|
| TaobaoOpencrmFeedback
|
|
1604
1610
|
| TaobaoOpencrmMemberGradeChange
|
|
1605
1611
|
| TaobaoOpencrmNodeExecuteFinished
|
|
@@ -1707,8 +1713,10 @@ declare namespace IncomingMessage {
|
|
|
1707
1713
|
| TaobaoTaeItemUpShelf;
|
|
1708
1714
|
/**
|
|
1709
1715
|
* - {@link TaobaoTopAuthCancel 平台消息 > 取消授权消息通知}
|
|
1716
|
+
* - {@link TaobaoTopProcessCallback 平台消息 > 工作流执行回调消息}
|
|
1710
1717
|
*/
|
|
1711
|
-
type TaobaoTop = TaobaoTopAuthCancel
|
|
1718
|
+
type TaobaoTop = TaobaoTopAuthCancel
|
|
1719
|
+
| TaobaoTopProcessCallback;
|
|
1712
1720
|
/**
|
|
1713
1721
|
* - {@link TaobaoTopatsTaskComplete 平台消息 > 异步任务执行完成}
|
|
1714
1722
|
*/
|
package/types/taobao.d.ts
CHANGED
|
@@ -1546,6 +1546,18 @@ declare namespace Taobao.Opencrm {
|
|
|
1546
1546
|
result_msg?: string;
|
|
1547
1547
|
}
|
|
1548
1548
|
|
|
1549
|
+
/** 数字短信模板审核消息 */
|
|
1550
|
+
interface DigitalTplExamine {
|
|
1551
|
+
/** 不通过 */
|
|
1552
|
+
error_msg?: string;
|
|
1553
|
+
/** 运营商类型 */
|
|
1554
|
+
operator_code: string;
|
|
1555
|
+
/** 审批状态,1:审批通过;2:审批不通过 */
|
|
1556
|
+
status: string;
|
|
1557
|
+
/** 模板id */
|
|
1558
|
+
template_id: number;
|
|
1559
|
+
}
|
|
1560
|
+
|
|
1549
1561
|
/** 反馈tmc */
|
|
1550
1562
|
interface Feedback {
|
|
1551
1563
|
/** 消息体 */
|
|
@@ -2322,6 +2334,24 @@ declare namespace Taobao.Top {
|
|
|
2322
2334
|
/** 用户id */
|
|
2323
2335
|
user_id?: string;
|
|
2324
2336
|
}
|
|
2337
|
+
|
|
2338
|
+
/** 工作流执行回调消息 */
|
|
2339
|
+
interface ProcessCallback {
|
|
2340
|
+
/** 节点名称 */
|
|
2341
|
+
node_name?: string;
|
|
2342
|
+
/** 工作流运行实例id */
|
|
2343
|
+
process_instance_id: string;
|
|
2344
|
+
/** 备注 */
|
|
2345
|
+
remark?: string;
|
|
2346
|
+
/** 错误码 */
|
|
2347
|
+
sys_error_code?: string;
|
|
2348
|
+
/** 错误信息 */
|
|
2349
|
+
sys_error_msg?: string;
|
|
2350
|
+
/** 是否成功 */
|
|
2351
|
+
sys_success: boolean;
|
|
2352
|
+
/** traceId */
|
|
2353
|
+
trace_id: string;
|
|
2354
|
+
}
|
|
2325
2355
|
}
|
|
2326
2356
|
|
|
2327
2357
|
/** 平台消息 */
|