tmc.js 0.3.33 → 0.3.35

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.
Files changed (49) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +4 -4
  3. package/package.json +1 -1
  4. package/types/ae.d.ts +12 -0
  5. package/types/ali.d.ts +61 -0
  6. package/types/alibaba.d.ts +2592 -145
  7. package/types/alicom.d.ts +127 -1
  8. package/types/aliexpress.d.ts +153 -11
  9. package/types/alihealth.d.ts +189 -3
  10. package/types/alihouse.d.ts +169 -0
  11. package/types/alios.d.ts +45 -0
  12. package/types/alipay.d.ts +479 -0
  13. package/types/alisports.d.ts +18 -0
  14. package/types/alitrip.d.ts +264 -16
  15. package/types/aliyun.d.ts +94 -1
  16. package/types/alsc.d.ts +329 -0
  17. package/types/ascp.d.ts +26 -1
  18. package/types/banma.d.ts +1 -1
  19. package/types/cainiao.d.ts +979 -2
  20. package/types/damai.d.ts +107 -7
  21. package/types/ele.d.ts +10 -0
  22. package/types/eleme.d.ts +71 -0
  23. package/types/fliggy.d.ts +95 -5
  24. package/types/fuwu.d.ts +2 -2
  25. package/types/gaode.d.ts +16 -0
  26. package/types/genie.d.ts +22 -0
  27. package/types/global.d.ts +22 -0
  28. package/types/gov.d.ts +160 -2
  29. package/types/icbu.d.ts +124 -0
  30. package/types/idle.d.ts +74 -16
  31. package/types/index.d.ts +3422 -14
  32. package/types/intime.d.ts +37 -0
  33. package/types/jae.d.ts +1 -1
  34. package/types/jym.d.ts +12 -0
  35. package/types/lst.d.ts +2 -2
  36. package/types/message.in.d.ts +3465 -76
  37. package/types/message.out.d.ts +1107 -26
  38. package/types/niaochao.d.ts +3 -3
  39. package/types/taobao.d.ts +3755 -278
  40. package/types/taotao.d.ts +44 -0
  41. package/types/tmall.d.ts +893 -36
  42. package/types/tobao.d.ts +26 -0
  43. package/types/trip.d.ts +6 -6
  44. package/types/umeng.d.ts +10 -0
  45. package/types/wdk.d.ts +30 -4
  46. package/types/xhotel.d.ts +16 -0
  47. package/types/xianyu.d.ts +33 -9
  48. package/types/youku.d.ts +18 -1
  49. package/types/yunos.d.ts +27 -2
package/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2022 James ZHANG(TheNorthMemory)
1
+ Copyright (c) 2022-2024 James ZHANG(TheNorthMemory)
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  of this software and associated documentation files (the "Software"), to deal
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+ 类别,491+ 消息数</summary>
137
+ <details><summary>共计 84+ 类别,494+ 消息数</summary>
138
138
 
139
139
  | 类别 | 消息数 |
140
140
  | --- | --- |
141
- | 淘宝交易 | 24 |
141
+ | 淘宝交易 | 25 |
142
142
  | 淘宝退款 | 13 |
143
143
  | 淘宝商品 | 13 |
144
144
  | 淘宝分销 | 27 |
@@ -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
- | 电子发票 | 20 |
162
+ | 电子发票 | 21 |
163
163
  | 航旅度假交易 | 8 |
164
164
  | YunOS YoC | 2 |
165
165
  | 淘宝直播API | 3 |
@@ -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
- | 大麦第三方票务供应商接入 | 6 |
195
+ | 大麦第三方票务供应商接入 | 7 |
196
196
  | TVOS应用审核平台 | 1 |
197
197
  | Gifting送礼 | 1 |
198
198
  | 五道口商品 | 2 |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tmc.js",
3
- "version": "0.3.33",
3
+ "version": "0.3.35",
4
4
  "description": "Event driven and chained Taobao Message Channel(TMC) for NodeJS",
5
5
  "author": "James ZHANG",
6
6
  "license": "MIT",
package/types/ae.d.ts ADDED
@@ -0,0 +1,12 @@
1
+ /** AE */
2
+ declare namespace Ae.Logistics {
3
+ /** {@link https://open.taobao.com/tmc.htm?docId=2209&docType=9 运单号修改} */
4
+ interface TrackingNoUpdate {
5
+ /** 新运单号 */
6
+ new_logistics_no: string;
7
+ /** 老运单号 */
8
+ old_logistics_no: string;
9
+ /** 商家ID */
10
+ seller_id: number;
11
+ }
12
+ }
package/types/ali.d.ts ADDED
@@ -0,0 +1,61 @@
1
+ /** 阿里金融 */
2
+ declare namespace Ali.Fin {
3
+ /** {@link https://open.taobao.com/tmc.htm?docId=2391&docType=9 阿里场景金融大延保理赔结果通知给服务商} */
4
+ interface DybClaimResult {
5
+ /** 理赔通过金额,单位分 */
6
+ claimFee?: string;
7
+ /** 理赔收单id */
8
+ claimNo: string;
9
+ /** 理赔结果,WAIT_UPDATE/FINISHED */
10
+ claimStatus: string;
11
+ /** 退回原因 */
12
+ reason?: string;
13
+ }
14
+ }
15
+
16
+ /** 网上法庭 */
17
+ declare namespace Ali.Infodept {
18
+ /** {@link https://open.taobao.com/tmc.htm?docId=867&docType=9 网上法庭数据交换消息} */
19
+ interface CaseFilingInfo {
20
+ /** 附件url列表 */
21
+ attachment_files?: string;
22
+ /** 附件url */
23
+ attachment_url?: string;
24
+ /** 加密后案件id */
25
+ biz_id: string;
26
+ /** messageBody格式 */
27
+ format: string;
28
+ /** 消息体 */
29
+ message_body: string;
30
+ /** 签名 */
31
+ message_body_signature?: string;
32
+ /** 消息唯一的id */
33
+ message_id: string;
34
+ /** 消息路由 */
35
+ message_router: string;
36
+ /** 消息唯一标示符 */
37
+ peer_id: string;
38
+ /** biz_id对应 */
39
+ ref_biz_id?: string;
40
+ /** 消息类型 */
41
+ topic: string;
42
+ /** 版本,消息去向 */
43
+ version?: string;
44
+ }
45
+
46
+ /** {@link https://open.taobao.com/tmc.htm?docId=833&docType=9 证件保全通知} */
47
+ interface PreserveEvidence {
48
+ /** 案件Id */
49
+ case_id?: string;
50
+ }
51
+
52
+ /** {@link https://open.taobao.com/tmc.htm?docId=943&docType=9 网上法庭开放平台消息} */
53
+ interface YuncourtMsg {
54
+ /** 业务id */
55
+ biz_id: string;
56
+ /** 消息内容 */
57
+ content: string;
58
+ /** 消息类型 */
59
+ type: string;
60
+ }
61
+ }