tmc.js 0.3.38 → 0.3.39
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 +4 -4
- package/package.json +1 -1
- package/types/ali.d.ts +3 -3
- package/types/alibaba.d.ts +38 -38
- package/types/alitrip.d.ts +29 -29
- package/types/cainiao.d.ts +3 -3
- package/types/damai.d.ts +34 -0
- package/types/fliggy.d.ts +3 -3
- package/types/icbu.d.ts +6 -6
- package/types/idle.d.ts +2 -2
- package/types/index.d.ts +66 -10
- package/types/message.in.d.ts +69 -13
- package/types/taobao.d.ts +70 -42
- package/types/tmall.d.ts +25 -0
- package/types/xhotel.d.ts +3 -3
- package/types/xianyu.d.ts +70 -2
- package/types/youku.d.ts +3 -3
package/types/taobao.d.ts
CHANGED
|
@@ -323,9 +323,9 @@ declare namespace Taobao.Axin {
|
|
|
323
323
|
/** {@link https://open.taobao.com/tmc.htm?docId=2402&docType=9 新增行政区划结果通知} */
|
|
324
324
|
interface DivisionApplyResult {
|
|
325
325
|
/** 行政区划编号 */
|
|
326
|
-
|
|
326
|
+
division_id: string;
|
|
327
327
|
/** 行政区划外部编号(供应商侧编号) */
|
|
328
|
-
|
|
328
|
+
division_outer_id: string;
|
|
329
329
|
/** 新增结果 */
|
|
330
330
|
result: string;
|
|
331
331
|
}
|
|
@@ -379,9 +379,9 @@ declare namespace Taobao.Axin {
|
|
|
379
379
|
/** {@link https://open.taobao.com/tmc.htm?docId=2403&docType=9 新增POI结果通知} */
|
|
380
380
|
interface PoiApplyResult {
|
|
381
381
|
/** POI编号 */
|
|
382
|
-
|
|
382
|
+
poi_id: string;
|
|
383
383
|
/** POI外部编号(供应商侧编号) */
|
|
384
|
-
|
|
384
|
+
poi_outer_id: string;
|
|
385
385
|
/** 新增结果 */
|
|
386
386
|
result: string;
|
|
387
387
|
}
|
|
@@ -1262,19 +1262,19 @@ declare namespace Taobao.Epp {
|
|
|
1262
1262
|
/** {@link https://open.taobao.com/tmc.htm?docId=2500&docType=9 epp企业购对接isv订单状态同步} */
|
|
1263
1263
|
interface OrderCreate {
|
|
1264
1264
|
/** String 变化时间 */
|
|
1265
|
-
|
|
1265
|
+
modified_time: string;
|
|
1266
1266
|
/** 外部采购单号 */
|
|
1267
|
-
|
|
1267
|
+
out_order_id: string;
|
|
1268
1268
|
/** 订单ID */
|
|
1269
|
-
|
|
1269
|
+
tb_order_id: string;
|
|
1270
1270
|
/** 当前订单状态: 2=已支付 6=交易成功 8=关闭 */
|
|
1271
|
-
|
|
1271
|
+
tb_order_status: string;
|
|
1272
1272
|
}
|
|
1273
1273
|
|
|
1274
1274
|
/** {@link https://open.taobao.com/tmc.htm?docId=2528&docType=9 天猫企业购实物采购单状态变更消息} */
|
|
1275
1275
|
interface PurchaseOrderStatusUpdate {
|
|
1276
1276
|
/** 外部采购单号 */
|
|
1277
|
-
|
|
1277
|
+
out_order_id: string;
|
|
1278
1278
|
/** 状态描述(会随淘宝订单的状态变化而变化) -1:采购失败 10:采购中 11:采购成功 31:部分已发货 32:已全部发货 51:部分交易成功 52:全部交易成功 */
|
|
1279
1279
|
status: string;
|
|
1280
1280
|
}
|
|
@@ -1792,17 +1792,17 @@ declare namespace Taobao.Fsc {
|
|
|
1792
1792
|
/** {@link https://open.taobao.com/tmc.htm?docId=2420&docType=9 线路订单状态变更通知} */
|
|
1793
1793
|
interface RouteOrderStatusChange {
|
|
1794
1794
|
/** 阿信订单id */
|
|
1795
|
-
|
|
1795
|
+
order_id: string;
|
|
1796
1796
|
/** 1-已下单 2-已确认 3-已退团 4-已取消 5-拒绝确认,驳回 14-交易成功 */
|
|
1797
|
-
|
|
1797
|
+
order_status: string;
|
|
1798
1798
|
/** 外部团id String */
|
|
1799
|
-
|
|
1799
|
+
out_project_id: string;
|
|
1800
1800
|
/** 付款状态1-未付款 2-已付定金3-已付款(代表全部付款完成) 4-已结算完成 5-已关闭 */
|
|
1801
|
-
|
|
1801
|
+
pay_status: string;
|
|
1802
1802
|
/** 供应商id */
|
|
1803
|
-
|
|
1803
|
+
supplier_id: string;
|
|
1804
1804
|
/** 供应商订单号id */
|
|
1805
|
-
|
|
1805
|
+
supplier_order_id: string;
|
|
1806
1806
|
}
|
|
1807
1807
|
}
|
|
1808
1808
|
|
|
@@ -2379,17 +2379,17 @@ declare namespace Taobao.Ihome {
|
|
|
2379
2379
|
/** {@link https://open.taobao.com/tmc.htm?docId=2444&docType=9 aigc任务状态变更} */
|
|
2380
2380
|
interface AigcTaskChange {
|
|
2381
2381
|
/** 对应bizType */
|
|
2382
|
-
|
|
2382
|
+
biz_type: string;
|
|
2383
2383
|
/** 失败原因 */
|
|
2384
2384
|
reason?: string;
|
|
2385
2385
|
/** 分片id */
|
|
2386
|
-
|
|
2386
|
+
shard_id: number;
|
|
2387
2387
|
/** 任务状态 */
|
|
2388
2388
|
status: string;
|
|
2389
2389
|
/** 任务id */
|
|
2390
|
-
|
|
2390
|
+
task_id: number;
|
|
2391
2391
|
/** 用户平台 */
|
|
2392
|
-
|
|
2392
|
+
user_platform: string;
|
|
2393
2393
|
}
|
|
2394
2394
|
}
|
|
2395
2395
|
|
|
@@ -2773,11 +2773,11 @@ declare namespace Taobao.Itemmarket {
|
|
|
2773
2773
|
/** {@link https://open.taobao.com/tmc.htm?docId=2461&docType=9 铺货成功推送} */
|
|
2774
2774
|
interface ItemRelationChange {
|
|
2775
2775
|
/** 商品id */
|
|
2776
|
-
|
|
2776
|
+
item_id: number;
|
|
2777
2777
|
/** 分销商店铺名称 */
|
|
2778
|
-
|
|
2778
|
+
shop_name: string;
|
|
2779
2779
|
/** 淘宝商品id */
|
|
2780
|
-
|
|
2780
|
+
tb_item_id: number;
|
|
2781
2781
|
}
|
|
2782
2782
|
|
|
2783
2783
|
/** {@link https://open.taobao.com/tmc.htm?docId=2356&docType=9 货品素材信息变更} */
|
|
@@ -2801,11 +2801,11 @@ declare namespace Taobao.Itemmarket {
|
|
|
2801
2801
|
/** 是否是主单 */
|
|
2802
2802
|
is_main?: string;
|
|
2803
2803
|
/** 操作类型 */
|
|
2804
|
-
|
|
2804
|
+
operation_type?: string;
|
|
2805
2805
|
/** 采购单id */
|
|
2806
2806
|
purchase_order_id: number;
|
|
2807
2807
|
/** 销售状态 */
|
|
2808
|
-
|
|
2808
|
+
selling_status?: number;
|
|
2809
2809
|
/** 采购单类型 */
|
|
2810
2810
|
usage_type?: string;
|
|
2811
2811
|
}
|
|
@@ -2817,6 +2817,16 @@ declare namespace Taobao.Itemmarket {
|
|
|
2817
2817
|
/** 采购单 id */
|
|
2818
2818
|
purchase_order_id: number;
|
|
2819
2819
|
}
|
|
2820
|
+
|
|
2821
|
+
/** {@link https://open.taobao.com/tmc.htm?docId=2544&docType=9 货品视频创建} */
|
|
2822
|
+
interface VideoCreate {
|
|
2823
|
+
/** 自定义参数 */
|
|
2824
|
+
custom_id?: string;
|
|
2825
|
+
/** 视频id */
|
|
2826
|
+
video_id: number;
|
|
2827
|
+
/** 上传时的视频url */
|
|
2828
|
+
video_url: string;
|
|
2829
|
+
}
|
|
2820
2830
|
}
|
|
2821
2831
|
|
|
2822
2832
|
/** 淘宝 */
|
|
@@ -4258,13 +4268,13 @@ declare namespace Taobao.Refund {
|
|
|
4258
4268
|
/** {@link https://open.taobao.com/tmc.htm?docId=2520&docType=9 逆向订单数据同步} */
|
|
4259
4269
|
interface OrderStatusSync {
|
|
4260
4270
|
/** 更新时间 */
|
|
4261
|
-
|
|
4271
|
+
modified_time: string;
|
|
4262
4272
|
/** 外部订单号 */
|
|
4263
|
-
|
|
4273
|
+
out_order_id: string;
|
|
4264
4274
|
/** 退款单号 */
|
|
4265
|
-
|
|
4275
|
+
refund_order_id: string;
|
|
4266
4276
|
/** 退款单状态 1:退款单创建;2:卖家同意退款;3:卖家拒绝退款;4:卖家同意退货; 5:买家已寄回;6:退款单完成;7:退款单已取消; */
|
|
4267
|
-
|
|
4277
|
+
refund_status: string;
|
|
4268
4278
|
}
|
|
4269
4279
|
|
|
4270
4280
|
/** {@link https://open.taobao.com/tmc.htm?docId=124&docType=9 屏蔽退款留言消息-无此消息} */
|
|
@@ -4556,30 +4566,48 @@ declare namespace Taobao.Rhino {
|
|
|
4556
4566
|
|
|
4557
4567
|
/** {@link https://open.taobao.com/tmc.htm?docId=2496&docType=9 裁剪进度变更消息} */
|
|
4558
4568
|
interface IntegrationCutProgressUpdateMessage {
|
|
4569
|
+
/** 消息唯一id */
|
|
4570
|
+
auction_id: number;
|
|
4559
4571
|
/** 裁剪指示单列表 */
|
|
4560
|
-
|
|
4572
|
+
ticket_list: string;
|
|
4573
|
+
}
|
|
4574
|
+
|
|
4575
|
+
/** {@link https://open.taobao.com/tmc.htm?docId=2537&docType=9 订单工序变更通知消息} */
|
|
4576
|
+
interface IntegrationOrderProcessUpdateMessage {
|
|
4577
|
+
/** 消息唯一id */
|
|
4578
|
+
auction_id: number;
|
|
4579
|
+
/** 订单编号 */
|
|
4580
|
+
order_no: string;
|
|
4581
|
+
/** 产品名称 */
|
|
4582
|
+
product_name: string;
|
|
4583
|
+
/** 款式编号 */
|
|
4584
|
+
style_no: string;
|
|
4561
4585
|
}
|
|
4562
4586
|
|
|
4563
4587
|
/** {@link https://open.taobao.com/tmc.htm?docId=2494&docType=9 外协订单创建消息通知} */
|
|
4564
4588
|
interface IntegrationOuterOrderCreateMessage {
|
|
4589
|
+
/** 消息唯一id */
|
|
4590
|
+
auction_id: number;
|
|
4565
4591
|
/** 计数来源 */
|
|
4566
|
-
count_source
|
|
4592
|
+
count_source?: string;
|
|
4567
4593
|
/** 入库类型 */
|
|
4568
|
-
enter_type
|
|
4594
|
+
enter_type?: string;
|
|
4569
4595
|
/** 外协订单编号 */
|
|
4570
4596
|
outer_order_id: string;
|
|
4571
4597
|
/** 自制类型 */
|
|
4572
|
-
outer_type
|
|
4598
|
+
outer_type?: string;
|
|
4573
4599
|
/** 外协订单明细 */
|
|
4574
|
-
plans
|
|
4600
|
+
plans?: string;
|
|
4575
4601
|
/** 备注 */
|
|
4576
4602
|
remark?: string;
|
|
4577
4603
|
/** 供应商名称 */
|
|
4578
|
-
supplier_name
|
|
4604
|
+
supplier_name?: string;
|
|
4579
4605
|
}
|
|
4580
4606
|
|
|
4581
4607
|
/** {@link https://open.taobao.com/tmc.htm?docId=2495&docType=9 外协进度变更消息} */
|
|
4582
4608
|
interface IntegrationOuterProgressUpdateMessage {
|
|
4609
|
+
/** 消息唯一id */
|
|
4610
|
+
auction_id: number;
|
|
4583
4611
|
/** 外协订单编号 */
|
|
4584
4612
|
outer_order_id: string;
|
|
4585
4613
|
/** 计划单列表 */
|
|
@@ -4742,11 +4770,11 @@ declare namespace Taobao.Smartapp {
|
|
|
4742
4770
|
/** 操作链接 */
|
|
4743
4771
|
action: string;
|
|
4744
4772
|
/** 预警任务类型 */
|
|
4745
|
-
|
|
4773
|
+
alert_type: string;
|
|
4746
4774
|
/** 预警任务ID */
|
|
4747
|
-
|
|
4775
|
+
event_id: string;
|
|
4748
4776
|
/** 预警任务名称 */
|
|
4749
|
-
|
|
4777
|
+
flow_name: string;
|
|
4750
4778
|
/** 订单号 */
|
|
4751
4779
|
tid: string;
|
|
4752
4780
|
}
|
|
@@ -5295,13 +5323,13 @@ declare namespace Taobao.Tc {
|
|
|
5295
5323
|
/** {@link https://open.taobao.com/tmc.htm?docId=2364&docType=9 物资库存变动} */
|
|
5296
5324
|
interface MaterialStock {
|
|
5297
5325
|
/** code */
|
|
5298
|
-
|
|
5326
|
+
node_code: string;
|
|
5299
5327
|
/** WAREHOUSE("仓"), CFC("CFC"), DP("配送站"), TMS("运输/司机"), */
|
|
5300
|
-
|
|
5328
|
+
node_type: string;
|
|
5301
5329
|
/** DRF-大润发 */
|
|
5302
|
-
|
|
5330
|
+
ownership_institution: string;
|
|
5303
5331
|
/** 处理列表 */
|
|
5304
|
-
|
|
5332
|
+
processing_list: string;
|
|
5305
5333
|
/** 时间戳 */
|
|
5306
5334
|
timestamp: number;
|
|
5307
5335
|
}
|
|
@@ -5391,7 +5419,7 @@ declare namespace Taobao.Top {
|
|
|
5391
5419
|
/** {@link https://open.taobao.com/tmc.htm?docId=2504&docType=9 mqf消息通道} */
|
|
5392
5420
|
interface MqfNotify {
|
|
5393
5421
|
/** dataId */
|
|
5394
|
-
|
|
5422
|
+
data_id?: string;
|
|
5395
5423
|
}
|
|
5396
5424
|
|
|
5397
5425
|
/** {@link https://open.taobao.com/tmc.htm?docId=1534&docType=9 似年测试ONS} */
|
package/types/tmall.d.ts
CHANGED
|
@@ -1386,6 +1386,31 @@ declare namespace Tmall.Xf {
|
|
|
1386
1386
|
}
|
|
1387
1387
|
}
|
|
1388
1388
|
|
|
1389
|
+
/** 天猫服务 */
|
|
1390
|
+
declare namespace Tmall.Yichao {
|
|
1391
|
+
/** {@link https://open.taobao.com/tmc.htm?docId=2546&docType=9 蚁巢工单更新消息} */
|
|
1392
|
+
interface WorkcardStatusUpdate {
|
|
1393
|
+
/** 行为 */
|
|
1394
|
+
action: string;
|
|
1395
|
+
/** 下次预约时间 */
|
|
1396
|
+
gmt_next_contact: string;
|
|
1397
|
+
/** 原因码 */
|
|
1398
|
+
reason_code: string;
|
|
1399
|
+
/** 原因描述 */
|
|
1400
|
+
reason_desc: string;
|
|
1401
|
+
/** 预约结束时间 */
|
|
1402
|
+
reserve_time_end: string;
|
|
1403
|
+
/** 预约开始时间 */
|
|
1404
|
+
reserve_time_start: string;
|
|
1405
|
+
/** 服务商 */
|
|
1406
|
+
source: string;
|
|
1407
|
+
/** 发生时间 */
|
|
1408
|
+
update_date: string;
|
|
1409
|
+
/** 工单id */
|
|
1410
|
+
workcard_id: number;
|
|
1411
|
+
}
|
|
1412
|
+
}
|
|
1413
|
+
|
|
1389
1414
|
/** 天猫 */
|
|
1390
1415
|
declare namespace Tmall.Yougou {
|
|
1391
1416
|
/** {@link https://open.taobao.com/tmc.htm?docId=1758&docType=9 天猫优购商品变更} */
|
package/types/xhotel.d.ts
CHANGED
|
@@ -3,14 +3,14 @@ declare namespace Xhotel.Distribution {
|
|
|
3
3
|
/** {@link https://open.taobao.com/tmc.htm?docId=2375&docType=9 飞猪酒店订单状态变更消息} */
|
|
4
4
|
interface StatusChange {
|
|
5
5
|
/** 外部订单号 */
|
|
6
|
-
|
|
6
|
+
dis_order_id: string;
|
|
7
7
|
/** 分销渠道 */
|
|
8
8
|
distributor: string;
|
|
9
9
|
/** 飞猪订单号 */
|
|
10
|
-
|
|
10
|
+
fliggy_order_id: number | bigint;
|
|
11
11
|
/** 订单状态 */
|
|
12
12
|
status: string;
|
|
13
13
|
/** 订单状态描述 */
|
|
14
|
-
|
|
14
|
+
status_desc: string;
|
|
15
15
|
}
|
|
16
16
|
}
|
package/types/xianyu.d.ts
CHANGED
|
@@ -43,7 +43,38 @@ declare namespace Xianyu.Car {
|
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
/**
|
|
46
|
+
/** 闲鱼 */
|
|
47
|
+
declare namespace Xianyu.Ctox {
|
|
48
|
+
/** {@link https://open.taobao.com/tmc.htm?docId=2535&docType=9 c2x代扣协议变更通知} */
|
|
49
|
+
interface PayDkChange {
|
|
50
|
+
/** 主订单(保卖订单等) */
|
|
51
|
+
biz_order_id: string;
|
|
52
|
+
/** 代扣金额,分 */
|
|
53
|
+
confirm_fee: string;
|
|
54
|
+
/** 代扣流水号 */
|
|
55
|
+
dk_number: string;
|
|
56
|
+
/** 代扣订单 */
|
|
57
|
+
dk_order_id: string;
|
|
58
|
+
/** 代扣时间 */
|
|
59
|
+
dk_time: string;
|
|
60
|
+
/** 代扣状态 */
|
|
61
|
+
status: string;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/** {@link https://open.taobao.com/tmc.htm?docId=2536&docType=9 c2x业务订单评价消息同步} */
|
|
65
|
+
interface RateStateSyn {
|
|
66
|
+
/** 服务商appkey */
|
|
67
|
+
app_key: string;
|
|
68
|
+
/** 被评价订单号 */
|
|
69
|
+
biz_order_id: string;
|
|
70
|
+
/** 评价类目 */
|
|
71
|
+
biz_type: string;
|
|
72
|
+
/** 评价分数 */
|
|
73
|
+
score: string;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/** 闲鱼 */
|
|
47
78
|
declare namespace Xianyu.Environment {
|
|
48
79
|
/** {@link https://open.taobao.com/tmc.htm?docId=1427&docType=9 闲鱼双11公益游戏任务事件同步} */
|
|
49
80
|
interface EventSyn {
|
|
@@ -56,7 +87,7 @@ declare namespace Xianyu.Environment {
|
|
|
56
87
|
}
|
|
57
88
|
}
|
|
58
89
|
|
|
59
|
-
/**
|
|
90
|
+
/** 闲鱼 */
|
|
60
91
|
declare namespace Xianyu.Isv {
|
|
61
92
|
/** {@link https://open.taobao.com/tmc.htm?docId=2219&docType=9 闲鱼服务商订单提醒} */
|
|
62
93
|
interface OrderRemind {
|
|
@@ -67,6 +98,43 @@ declare namespace Xianyu.Isv {
|
|
|
67
98
|
}
|
|
68
99
|
}
|
|
69
100
|
|
|
101
|
+
/** 闲鱼 */
|
|
102
|
+
declare namespace Xianyu.Marketrecycle {
|
|
103
|
+
/** {@link https://open.taobao.com/tmc.htm?docId=2534&docType=9 保卖订单变更通知} */
|
|
104
|
+
interface OrderStateSyn {
|
|
105
|
+
/** 订单号 */
|
|
106
|
+
biz_order_id: string;
|
|
107
|
+
/** 环境参数 */
|
|
108
|
+
env: string;
|
|
109
|
+
/** 状态变更 */
|
|
110
|
+
status: string;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/** {@link https://open.taobao.com/tmc.htm?docId=2533&docType=9 闲鱼保卖计划变更消息} */
|
|
114
|
+
interface PlanStateSyn {
|
|
115
|
+
/** 地址信息 */
|
|
116
|
+
address?: string;
|
|
117
|
+
/** 地址详细信息 */
|
|
118
|
+
address_detail?: string;
|
|
119
|
+
/** 纬度 */
|
|
120
|
+
lat?: string;
|
|
121
|
+
/** 经度 */
|
|
122
|
+
lng?: string;
|
|
123
|
+
/** 计划主状态 */
|
|
124
|
+
main_status: string;
|
|
125
|
+
/** 计划id */
|
|
126
|
+
plan_id: string;
|
|
127
|
+
/** 估价id */
|
|
128
|
+
quote_id: string;
|
|
129
|
+
/** 估价版本 */
|
|
130
|
+
quote_version: string;
|
|
131
|
+
/** 上门时间 */
|
|
132
|
+
ship_time?: string;
|
|
133
|
+
/** 计划子状态 */
|
|
134
|
+
sub_status: string;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
70
138
|
/** 闲鱼 */
|
|
71
139
|
declare namespace Xianyu.Recycle {
|
|
72
140
|
/** {@link https://open.taobao.com/tmc.htm?docId=1209&docType=9 订单状态同步给回收商} */
|
package/types/youku.d.ts
CHANGED
|
@@ -5,13 +5,13 @@ declare namespace Youku.Aigc {
|
|
|
5
5
|
/** 训练生成的模型信息 */
|
|
6
6
|
data?: string;
|
|
7
7
|
/** 错误码 */
|
|
8
|
-
|
|
8
|
+
res_code?: string;
|
|
9
9
|
/** 错误信息 */
|
|
10
|
-
|
|
10
|
+
res_info?: string;
|
|
11
11
|
/** 是否成功标识 */
|
|
12
12
|
success: boolean;
|
|
13
13
|
/** 任务id */
|
|
14
|
-
|
|
14
|
+
task_id: string;
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
|