tmc.js 0.3.11 → 0.3.13

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/types/tmall.d.ts CHANGED
@@ -14,7 +14,7 @@ declare namespace Tmall.Auto {
14
14
  /** 天猫汽车交易订单开放 */
15
15
  interface TradeModify {
16
16
  /** 订单id */
17
- order_id: number;
17
+ order_id?: number;
18
18
  /** 订单状态 */
19
19
  status: number;
20
20
  }
@@ -22,7 +22,7 @@ declare namespace Tmall.Auto {
22
22
  /** 天猫二轮车服务工单创建开放 */
23
23
  interface TwoWheelsReceiptCreate {
24
24
  /** 指定的外部门店id */
25
- appointed_outer_store_id: string;
25
+ appointed_outer_store_id?: string;
26
26
  /** 服务工单id */
27
27
  receipt_id: number;
28
28
  }
@@ -52,7 +52,7 @@ declare namespace Tmall.Channel {
52
52
  /** 申请单变更消息 */
53
53
  interface ApplyOrderChange {
54
54
  /** 申请单单号 */
55
- channel_purchase_apply_order_no: string;
55
+ readonly channel_purchase_apply_order_no: string;
56
56
  /** 消息类型(1-创建;2-撤回; 3-同意供应商的修改; 4-拒绝供应商的修改) */
57
57
  message_type: number;
58
58
  }
@@ -60,7 +60,7 @@ declare namespace Tmall.Channel {
60
60
  /** 发货单消息变更 */
61
61
  interface DeliverOrderChange {
62
62
  /** 发货单单号 */
63
- main_deliver_order_no: number;
63
+ readonly main_deliver_order_no: number;
64
64
  /** 消息类型 */
65
65
  message_type: number;
66
66
  }
@@ -68,7 +68,7 @@ declare namespace Tmall.Channel {
68
68
  /** 采购单变更消息 */
69
69
  interface PurchaseOrderChange {
70
70
  /** 主采购单号 */
71
- main_purchase_order_no: number;
71
+ readonly main_purchase_order_no: number;
72
72
  /** 消息类型 */
73
73
  message_type: number;
74
74
  }
@@ -76,7 +76,7 @@ declare namespace Tmall.Channel {
76
76
  /** 停止发货单变更消息 */
77
77
  interface StopOrderChange {
78
78
  /** 主采购单号 */
79
- main_purchase_order_no: number;
79
+ readonly main_purchase_order_no: number;
80
80
  /** 消息类型 */
81
81
  message_type: number;
82
82
  }
@@ -107,7 +107,7 @@ declare namespace Tmall.Fuwu {
107
107
  /** 天猫物流订单号。1、物流CP系统的物流单号关系为1对1。 2、要求物流CP系统内部需要保证幂等。 */
108
108
  logistics_order_id: number;
109
109
  /** 是否为来自新数据源的物流信息 */
110
- new_logistics: boolean;
110
+ new_logistics?: boolean;
111
111
  /** 消费者-->门店(工厂):STAGE1 门店(工厂)--> 消费者:STAGE2 */
112
112
  stage_type: string;
113
113
  }
@@ -131,7 +131,7 @@ declare namespace Tmall.Fuwu {
131
131
  /** 预警提示内容,如请及时处理即将超出6小时时未回传工人信息的服务工单,详情如下:父订单编号:XXX,服务子订单:XXX,服务工单号:XXX */
132
132
  content: string;
133
133
  /** 服务预警单创建时间,格式如:2011-11-06 13:12:11 */
134
- gmt_create: Date;
134
+ gmt_create: Date | number | string;
135
135
  /** 预警单主键id */
136
136
  id: number;
137
137
  /** 预警级别,1、预警 2、警告 3、严重 */
@@ -195,35 +195,35 @@ declare namespace Tmall.Fuwu {
195
195
  /** 天猫服务任务工单 */
196
196
  interface WorkcardInfo {
197
197
  /** 商品附加属性 */
198
- auction_sku_properties: string;
198
+ auction_sku_properties?: string;
199
199
  /** 买家地址编码 */
200
- buyer_location: number;
200
+ buyer_location?: number;
201
201
  /** 对外开放的业务对象 */
202
- result: string;
202
+ result?: string;
203
203
  }
204
204
 
205
205
  /** 天猫服务任务工单状态变更 */
206
206
  interface WorkcardStatusUpdate {
207
207
  /** 工单变更动作。枚举。创建create,完成complete,取消cancel,发货consign */
208
- action: string;
208
+ action?: string;
209
209
  /** 备注 */
210
210
  comment: string;
211
211
  /** 剩余服务次数。仅用于cancel节点和complete节点 */
212
- left_service_count: number;
212
+ left_service_count?: number;
213
213
  /** 退掉的服务次数。仅用于cancel节点 */
214
- refund_service_count: number;
214
+ refund_service_count?: number;
215
215
  /** 状态。使用action,不要使用本字段 */
216
216
  status: number;
217
217
  /** 目前总的使用次数。仅用于complete节点 */
218
- total_used_service_count: number;
218
+ total_used_service_count?: number;
219
219
  /** 服务提供商id */
220
220
  tp_id: number;
221
221
  /** 工单类型,固定值:1 */
222
222
  type: number;
223
223
  /** 更新时间 */
224
- update_date: Date;
224
+ update_date: Date | number | string;
225
225
  /** 本次使用的服务次数。仅用于complete节点 */
226
- used_service_count: number;
226
+ used_service_count?: number;
227
227
  /** 工单id */
228
228
  workcard_id: number;
229
229
  }
@@ -244,29 +244,29 @@ declare namespace Tmall.Mei {
244
244
  /** 品牌积分变更通知 */
245
245
  interface PointChange {
246
246
  /** 业务类型。gift_exchange:礼品兑换, cancel_exchange:取消兑换。 */
247
- biz_type: string;
247
+ biz_type?: string;
248
248
  /** 拓展信息 */
249
- ext_info: string;
249
+ ext_info?: string;
250
250
  /** 加密后的会员手机 */
251
- mix_mobile: string;
251
+ mix_mobile?: string;
252
252
  /** 加密后的NICK */
253
- mix_nick: string;
253
+ mix_nick?: string;
254
254
  /** 明文手机号 */
255
- mobile: string;
255
+ mobile?: string;
256
256
  /** 买家明文nick */
257
- nick: string;
257
+ nick?: string;
258
258
  /** 商家主体维度唯一id */
259
259
  omid: string;
260
260
  /** 卖家维度唯一id */
261
261
  ouid: string;
262
262
  /** 变动积分值,大于0 */
263
- point: number;
263
+ point?: number;
264
264
  /** 该次变更记录ID */
265
- record_id: number;
265
+ record_id?: number;
266
266
  /** 卖家名称 */
267
- seller_name: string;
267
+ seller_name?: string;
268
268
  /** 1:扣减,2:增加 */
269
- type: number;
269
+ type?: number;
270
270
  }
271
271
  }
272
272
 
@@ -283,7 +283,7 @@ declare namespace Tmall.Nrt {
283
283
  /** 商品名称 */
284
284
  item_name: string;
285
285
  /** 商品类型 同城站 city 普通线下 booth */
286
- item_type: string;
286
+ item_type?: string;
287
287
  /** 操作类型 基础类型 new 、update、delete、query */
288
288
  op_type: string;
289
289
  /** 租赁合同号 */
@@ -302,7 +302,7 @@ declare namespace Tmall.Omnichannel {
302
302
  /** 变化的预扣库存数 */
303
303
  change_withhold_quantity: number;
304
304
  /** 库存变更业务发送时间 */
305
- gmt_modified: Date;
305
+ gmt_modified: Date | number | string;
306
306
  /** 库存变更类型 1.增量修改库存 2.全量修改库存 */
307
307
  inventory_change_type: number;
308
308
  /** 库存记录ID */
@@ -310,7 +310,7 @@ declare namespace Tmall.Omnichannel {
310
310
  /** 商品ID */
311
311
  item_id: number;
312
312
  /** 全渠道ID */
313
- omni_id: string;
313
+ omni_id?: string;
314
314
  /** 变化后的可售库存数 */
315
315
  result_sellable_quantity: number;
316
316
  /** 变化后的预扣库存数 */
@@ -326,7 +326,7 @@ declare namespace Tmall.Omnichannel {
326
326
  /** 0库存之前的总库存数 */
327
327
  before_quantity: number;
328
328
  /** 消息产生的时间 */
329
- event_time: Date;
329
+ event_time: Date | number | string;
330
330
  /** 触发0库存的原因 */
331
331
  event_type: string;
332
332
  /** 商品ID */
@@ -334,7 +334,7 @@ declare namespace Tmall.Omnichannel {
334
334
  /** 消息ID */
335
335
  message_id: string;
336
336
  /** 全渠道ID */
337
- omni_id: string;
337
+ omni_id?: string;
338
338
  /** Sku ID */
339
339
  sku_id: number | bigint;
340
340
  /** 事件类型 */
@@ -346,7 +346,7 @@ declare namespace Tmall.Omnichannel {
346
346
  /** 事件ID,能唯一标识一次事件请求 */
347
347
  event_id: string;
348
348
  /** 变更的时间 */
349
- gmt_modified: Date;
349
+ gmt_modified: Date | number | string;
350
350
  /** 是否小二操作 */
351
351
  is_by_xiaoer: boolean;
352
352
  /** 商品ID */
@@ -356,7 +356,7 @@ declare namespace Tmall.Omnichannel {
356
356
  /** 修改之前的描述地址 */
357
357
  old_desc_path: string;
358
358
  /** 全渠道ID */
359
- omni_id: string;
359
+ omni_id?: string;
360
360
  /** 卖家ID */
361
361
  seller_id: number;
362
362
  /** 事件类型 */
@@ -370,13 +370,13 @@ declare namespace Tmall.Omnichannel {
370
370
  /** 事件ID,能唯一标识一次事件请求 */
371
371
  event_id: string;
372
372
  /** 变更的时间 */
373
- gmt_modified: Date;
373
+ gmt_modified: Date | number | string;
374
374
  /** 是否小二操作 */
375
375
  is_by_xiaoer: boolean;
376
376
  /** 商品ID */
377
377
  item_id: number;
378
378
  /** 全渠道ID */
379
- omni_id: string;
379
+ omni_id?: string;
380
380
  /** 卖家ID */
381
381
  seller_id: number;
382
382
  /** 事件类型 */
@@ -392,7 +392,7 @@ declare namespace Tmall.Omnichannel {
392
392
  /** 事件ID,能唯一标识一次事件请求 */
393
393
  event_id: string;
394
394
  /** 变更的时间 */
395
- gmt_modified: Date;
395
+ gmt_modified: Date | number | string;
396
396
  /** 是否小二操作 */
397
397
  is_by_xiaoer: boolean;
398
398
  /** 商品ID */
@@ -400,7 +400,7 @@ declare namespace Tmall.Omnichannel {
400
400
  /** 商品主图信息 */
401
401
  main_pict_url: string;
402
402
  /** 全渠道ID */
403
- omni_id: string;
403
+ omni_id?: string;
404
404
  /** 卖家ID */
405
405
  seller_id: number;
406
406
  /** 事件类型 */
@@ -414,7 +414,7 @@ declare namespace Tmall.Omnichannel {
414
414
  /** 事件ID,能唯一标识一次事件请求 */
415
415
  event_id: string;
416
416
  /** 变更的时间 */
417
- gmt_modified: Date;
417
+ gmt_modified: Date | number | string;
418
418
  /** 是否小二操作 */
419
419
  is_by_xiaoer: boolean;
420
420
  /** 商品ID */
@@ -424,7 +424,7 @@ declare namespace Tmall.Omnichannel {
424
424
  /** 修改之前的价格 */
425
425
  old_price: number;
426
426
  /** 全渠道ID */
427
- omni_id: string;
427
+ omni_id?: string;
428
428
  /** 卖家ID */
429
429
  seller_id: number;
430
430
  /** 事件类型 */
@@ -439,15 +439,15 @@ declare namespace Tmall.Servicecenter {
439
439
  /** 天猫服务平台工单更新 */
440
440
  interface TaskUpdate {
441
441
  /** 属性字符串。使用;隔开,key:value格式保存。 */
442
- attributes: string;
442
+ attributes?: string;
443
443
  /** 省市区地址,之间用空白隔开 */
444
- buyer_address: string;
444
+ buyer_address?: string;
445
445
  /** 买家id */
446
- buyer_id: number;
446
+ buyer_id?: number;
447
447
  /** 买家名称 */
448
448
  buyer_name: string;
449
449
  /** 买家电话 */
450
- buyer_phone: string;
450
+ buyer_phone?: string;
451
451
  /** 操作类型,如CREATE:创建, CANCEL:取消,RESERVE:预约,RERESERVE:重新预约 */
452
452
  change_type: string;
453
453
  /** 工单id */
@@ -457,15 +457,15 @@ declare namespace Tmall.Servicecenter {
457
457
  /** 来源系统 */
458
458
  order_source: string;
459
459
  /** 顾客提交退货取消或改期申请时间 */
460
- order_time: string;
460
+ order_time?: string;
461
461
  /** 服务名称,买断 */
462
462
  service_code: string;
463
463
  /** 买家预约时间 */
464
- service_time: Date;
464
+ service_time?: Date | number | string;
465
465
  /** 子状态,1001:鉴定,1002:非鉴定(强制),1003:从新预约;2001:预安排师傅,2002:上门;3001:取消,3002:完成,3003:拒收; */
466
466
  sub_status: number;
467
467
  /** 更新时间 */
468
- update_time: Date;
468
+ update_time?: Date | number | string;
469
469
  }
470
470
  }
471
471
 
@@ -480,7 +480,7 @@ declare namespace Tmall.Serviceplatform {
480
480
  /** parent_order_ids */
481
481
  parent_order_ids: string;
482
482
  /** sign_datetime */
483
- sign_datetime: Date;
483
+ sign_datetime: Date | number | string;
484
484
  }
485
485
 
486
486
  /** 工人请假发送消息 */
@@ -490,7 +490,7 @@ declare namespace Tmall.Serviceplatform {
490
490
  /** 具体请假时间段 */
491
491
  leave_time: string;
492
492
  /** 操作请假日期的时间 */
493
- operate_time: Date;
493
+ operate_time: Date | number | string;
494
494
  /** 工人姓名 */
495
495
  worker_name: string;
496
496
  /** 工人手机号 */
package/types/trip.d.ts CHANGED
@@ -7,15 +7,15 @@ declare namespace Trip.Hotel {
7
7
  /** 商品id */
8
8
  gid: number;
9
9
  /** 酒店id */
10
- hid: number;
10
+ hid?: number;
11
11
  /** 消息id */
12
12
  requestid: string;
13
13
  /** rpId */
14
14
  rp_id: number;
15
15
  /** 卖家id */
16
- seller_id: number;
16
+ seller_id?: number;
17
17
  /** supplier */
18
- supplier: string;
18
+ supplier?: string;
19
19
  }
20
20
 
21
21
  /** 飞猪卖家酒店实体变更消息同步 */
@@ -61,15 +61,15 @@ declare namespace Trip.Hotel {
61
61
  /** 酒店价格计划消息 */
62
62
  interface RatePlanChange {
63
63
  /** 所属的hid */
64
- hid: number;
64
+ hid?: number;
65
65
  /** 操作类型,add,update,delete */
66
66
  msg_type: string;
67
67
  /** 所属酒店的外部code */
68
- out_hid: string;
68
+ out_hid?: string;
69
69
  /** 所属房型的外部code */
70
- out_rid: string;
70
+ out_rid?: string;
71
71
  /** 说是房型的rid */
72
- rid: number;
72
+ rid?: number;
73
73
  /** 修改的价格策略的rp_code */
74
74
  rp_code: string;
75
75
  /** 修改的价格策略的rpId */
@@ -85,9 +85,9 @@ declare namespace Trip.Hotel {
85
85
  /** room的id */
86
86
  gid: number;
87
87
  /** 酒店hid */
88
- hid: number;
88
+ hid?: number;
89
89
  /** 外部酒店code */
90
- out_hid: string;
90
+ out_hid?: string;
91
91
  /** 外部房型code */
92
92
  out_rid: string;
93
93
  /** 房型rid */
package/types/wdk.d.ts CHANGED
@@ -5,13 +5,13 @@ declare namespace Wdk.Market {
5
5
  /** 活动ID */
6
6
  activity_id: number;
7
7
  /** 逻辑分组ID */
8
- logic_group_number: number;
8
+ logic_group_number?: number;
9
9
  /** 消息ID */
10
- msg_id: string;
10
+ readonly msg_id: string;
11
11
  /** 操作编码:A-新增,U-更新 */
12
12
  operate_code: string;
13
13
  /** 商家活动编码 */
14
- out_act_id: string;
14
+ out_act_id?: string;
15
15
  /** 错误编码 */
16
16
  publish_error_code: string;
17
17
  /** 错误描述 */
@@ -27,13 +27,13 @@ declare namespace Wdk.Market {
27
27
  /** 五道口营销活动Id */
28
28
  activity_id: number;
29
29
  /** 商家逻辑分组Id */
30
- logic_group_number: number;
30
+ logic_group_number?: number;
31
31
  /** 消息ID */
32
- msg_id: string;
32
+ readonly msg_id: string;
33
33
  /** 操作编码A-新增,D-删除 */
34
34
  operate_code: string;
35
35
  /** 商家外部活动Id */
36
- out_act_id: string;
36
+ out_act_id?: string;
37
37
  /** 错误编码 */
38
38
  publish_error_code: string;
39
39
  /** 错误信息 */
@@ -52,11 +52,11 @@ declare namespace Wdk.Open {
52
52
  /** 数据类型 */
53
53
  biz_code: string;
54
54
  /** 消息Id */
55
- message_id: string;
55
+ readonly message_id: string;
56
56
  /** 外部数据Id */
57
57
  out_data_id: string;
58
58
  /** 关联的外部数据Id */
59
- relation_out_data_list: string[];
59
+ relation_out_data_list?: string[];
60
60
  /** 错误编码 */
61
61
  result_code: string;
62
62
  /** 错误描述 */
@@ -72,7 +72,7 @@ declare namespace Wdk.Open {
72
72
  /** 数据类型 */
73
73
  biz_code: string;
74
74
  /** 消息Id:${outDataId} + ${bizCode} + ${subBizCode} */
75
- message_id: string;
75
+ readonly message_id: string;
76
76
  /** 外部数据ID */
77
77
  out_data_id: string;
78
78
  /** 子数据类型 */
package/types/xianyu.d.ts CHANGED
@@ -20,7 +20,7 @@ declare namespace Xianyu.Appraise {
20
20
  /** 验货担保订单状态同步回收商 */
21
21
  interface OrderSyn {
22
22
  /** 触发服务商服务的消息具体动作 */
23
- action: string;
23
+ action?: string;
24
24
  /** 交易订单号 */
25
25
  biz_order_id: string;
26
26
  /** 订单状态。(主状态,子状态,状态说明)示例如下: ("1", "1", "买家拍下未付款") ("2", "1", "买家拍下已付款") ("3", "1", "卖家已发货")等。详情见对接文档 */
@@ -39,7 +39,7 @@ declare namespace Xianyu.Car {
39
39
  /** 订单状态 */
40
40
  order_status: string;
41
41
  /** 订单子状态 */
42
- order_sub_status: string;
42
+ order_sub_status?: string;
43
43
  }
44
44
  }
45
45
 
@@ -54,7 +54,7 @@ declare namespace Xianyu.Recycle {
54
54
  /** 回收商appkey */
55
55
  app_key: string;
56
56
  /** 区 */
57
- area: string;
57
+ area?: string;
58
58
  /** 交易订单号 */
59
59
  biz_order_id: string;
60
60
  /** 已做安全处理,统一给0 */
@@ -62,25 +62,25 @@ declare namespace Xianyu.Recycle {
62
62
  /** 回收商淘宝账号 */
63
63
  buyer_nick: string;
64
64
  /** idle(历史订单可能没有channel字段,闲鱼)、tmall(天猫)、alipay(支付宝)、taobao(淘宝渠道) */
65
- channel: string;
65
+ channel?: string;
66
66
  /** 渠道内的业务数据json格式 比如 ship=1 服装类的不需要发货,weight=5-15 代表服装5-15kg, userLevel=vip 代表免议价用户,sellerRealPhone 淘宝账号绑定的手机号 */
67
- channel_data: string;
67
+ channel_data?: string;
68
68
  /** 城市信息 */
69
- city: string;
69
+ city?: string;
70
70
  /** 卖家关闭订单原因 */
71
- close_reason: string;
71
+ close_reason?: string;
72
72
  /** 卡券费用,单位分 */
73
- coupon_fee: string;
73
+ coupon_fee?: string;
74
74
  /** 未来的权益id */
75
- coupon_id: string;
75
+ coupon_id?: string;
76
76
  /** 卡券规则 actType: 1(按百分比加价)、2(固定加价) 3(阶梯价) couponFee:下单时候按预估价产生的加价券费用单位分 couponId: 目前只是一个活动标示 desc:卡券的使用规则描述 idleBizCode:闲鱼侧的场景区分,可以无视 8(3c) 9(大件) 10(奢侈) low:满足使用加价券的条件金额单位分 up:阶梯价时的价格上限金额单位分 range:阶梯价列表 percent:加价比例只在actType=1时出现,注意这个百分比计算出来的金额可能会有分.我们统一抹掉角、分精度 比如:((125*0.05d)*100)/100=6 beg:活动开始时间 end:活动结束时间 addFee:固定的加价金额,单位分(actType=2时出现) */
77
- coupon_rule: string;
77
+ coupon_rule?: string;
78
78
  /** 是否信用预付订单 */
79
79
  credit_pay: boolean;
80
80
  /** 信用预付金额,单位分 */
81
81
  credit_pay_amount: number;
82
82
  /** 代扣类型:xydk:闲鱼代扣,shdk:商家代扣(默认) */
83
- dk_type: string;
83
+ dk_type?: string;
84
84
  /** 订单创建时间 */
85
85
  gmt_create: string;
86
86
  /** 1:现金支付 2:天猫红包支付 */
@@ -88,13 +88,13 @@ declare namespace Xianyu.Recycle {
88
88
  /** 1:订单创建 2:已上门取件 3:已质检 4:卖家确认交易完成 5:回收商确认交易完成 6:卖家订单已评价 7:回收商订单已评价 100:卖家申请退回 101:货物已退回 102:卖家关闭订单 103:回收商关闭订单 */
89
89
  order_status: number;
90
90
  /** 省份 */
91
- province: string;
91
+ province?: string;
92
92
  /** 卖家评价内容 */
93
- rate_content: string;
93
+ rate_content?: string;
94
94
  /** 1 好评,0 默认中评 */
95
- rate_grade: string;
95
+ rate_grade?: string;
96
96
  /** 卖家申请退回原因 */
97
- refund_reason: string;
97
+ refund_reason?: string;
98
98
  /** 卖家收货地址 */
99
99
  seller_address: string;
100
100
  /** 卖家支付宝账号id */
@@ -112,15 +112,15 @@ declare namespace Xianyu.Recycle {
112
112
  /** 1:顺丰 2:大件上门 */
113
113
  ship_type: string;
114
114
  /** spuId */
115
- spu_id: string;
115
+ spu_id?: string;
116
116
  /** 支付宝代扣成功 */
117
117
  zfb_dk: boolean;
118
118
  /** 支付代扣的合同编号 */
119
- zfb_dk_code: string;
119
+ zfb_dk_code?: string;
120
120
  /** 600以下为Z5,600-649为Z4,650-699为Z3,700-749为Z2,750及以上为Z1 */
121
- zm_level: string;
121
+ zm_level?: string;
122
122
  /** 用户芝麻分 */
123
- zm_score: string;
123
+ zm_score?: string;
124
124
  }
125
125
 
126
126
  /** 闲鱼回收SPU变更消息 */
package/types/youku.d.ts CHANGED
@@ -7,7 +7,7 @@ declare namespace Youku.Tvosappstore {
7
7
  /** 应用包名 */
8
8
  package_name: string;
9
9
  /** 操作原由 */
10
- reason: string;
10
+ reason?: string;
11
11
  /** 应用状态,0下线,1上线 */
12
12
  status: number;
13
13
  /** 变更时间戳,单位毫秒 */