tmc.js 0.3.27 → 0.3.28

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 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+ 类别,480+ 消息数</summary>
137
+ <details><summary>共计 83+ 类别,481+ 消息数</summary>
138
138
 
139
139
  | 类别 | 消息数 |
140
140
  | --- | --- |
@@ -220,7 +220,7 @@ new Tmc('your_app_key', 'your_app_secret', { autoReplyConfirmation: false })
220
220
  | 代发管理 | 2 |
221
221
  | 蚂蚁采购 | 1 |
222
222
  | 阿里健康&一树-电商中台对接 | 2 |
223
- | 阿里健康-疫苗 | 1 |
223
+ | 阿里健康-疫苗 | 2 |
224
224
 
225
225
  </details>
226
226
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tmc.js",
3
- "version": "0.3.27",
3
+ "version": "0.3.28",
4
4
  "description": "Event driven and chained Taobao Message Channel(TMC) for NodeJS",
5
5
  "author": "James ZHANG",
6
6
  "license": "MIT",
@@ -147,6 +147,16 @@ declare namespace Alibaba.Alihealth {
147
147
  /** 预约记录主键 */
148
148
  subscribe_id: string;
149
149
  }
150
+
151
+ /** 用户取消订阅缺苗登记同步isv */
152
+ interface VcRegisterCancel {
153
+ /** 消息id */
154
+ message_id: string;
155
+ /** 消息类型 */
156
+ msg_type: string;
157
+ /** 对外登记单id */
158
+ outer_register_id: string;
159
+ }
150
160
  }
151
161
 
152
162
  /** 阿里物联 */
package/types/idle.d.ts CHANGED
@@ -63,7 +63,7 @@ declare namespace Idle.Autotrade {
63
63
  /** 订单状态 */
64
64
  order_status: string;
65
65
  /** 订单子状态 */
66
- order_sub_status: string;
66
+ order_sub_status?: string;
67
67
  /** 交易产品业务标识 */
68
68
  x_global_biz_code: string;
69
69
  }
@@ -75,7 +75,7 @@ declare namespace Idle.Autotrade {
75
75
  /** 订单状态;1: 买家已经申请退款,等待卖家同意, 2: 卖家已经同意退款,等待买家退货, 3: 买家已经退货,等待卖家确认收货, 4: 退款关闭, 5: 退款成功, 6: 卖家拒绝退款, 8: 等待卖家确认退货地址, 9: 没有申请退款, 11: 退款结束。 */
76
76
  order_status: string;
77
77
  /** 订单子状态 */
78
- order_sub_status: string;
78
+ order_sub_status?: string;
79
79
  /** 业务标识 */
80
80
  x_global_biz_code: string;
81
81
  }
package/types/index.d.ts CHANGED
@@ -84,6 +84,8 @@ declare interface TaoTopicsDescriptor {
84
84
  alibaba_alihealth_TradeOrderStatusChange(fn: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaAlihealthTradeOrderStatusChange) => void): TaoMessageConsumer;
85
85
  /** {@link IncomingMessage.AlibabaAlihealthTradeVaccineSubscribeChange 阿里健康追溯码 > 疫苗交易预约信息变动} */
86
86
  alibaba_alihealth_TradeVaccineSubscribeChange(fn: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaAlihealthTradeVaccineSubscribeChange) => void): TaoMessageConsumer;
87
+ /** {@link IncomingMessage.AlibabaAlihealthVcRegisterCancel 阿里健康追溯码 > 用户取消订阅缺苗登记同步isv} */
88
+ alibaba_alihealth_VcRegisterCancel(fn: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaAlihealthVcRegisterCancel) => void): TaoMessageConsumer;
87
89
  /** {@link IncomingMessage.AlibabaAlinkDeviceDataPush 阿里物联 > 设备数据推送} */
88
90
  alibaba_alink_DeviceDataPush(fn: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaAlinkDeviceDataPush) => void): TaoMessageConsumer;
89
91
  /** {@link IncomingMessage.AlibabaAlinkDeviceMessage 阿里物联 > 设备报警消息} */
@@ -1317,6 +1319,8 @@ declare interface TaoEventsListener {
1317
1319
  on(topic: 'alibaba_alihealth_TradeOrderStatusChange', listener: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaAlihealthTradeOrderStatusChange) => void): TaoMessageConsumer;
1318
1320
  /** {@link IncomingMessage.AlibabaAlihealthTradeVaccineSubscribeChange 阿里健康追溯码 > 疫苗交易预约信息变动} */
1319
1321
  on(topic: 'alibaba_alihealth_TradeVaccineSubscribeChange', listener: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaAlihealthTradeVaccineSubscribeChange) => void): TaoMessageConsumer;
1322
+ /** {@link IncomingMessage.AlibabaAlihealthVcRegisterCancel 阿里健康追溯码 > 用户取消订阅缺苗登记同步isv} */
1323
+ on(topic: 'alibaba_alihealth_VcRegisterCancel', listener: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaAlihealthVcRegisterCancel) => void): TaoMessageConsumer;
1320
1324
  /** {@link IncomingMessage.AlibabaAlinkDeviceDataPush 阿里物联 > 设备数据推送} */
1321
1325
  on(topic: 'alibaba_alink_DeviceDataPush', listener: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaAlinkDeviceDataPush) => void): TaoMessageConsumer;
1322
1326
  /** {@link IncomingMessage.AlibabaAlinkDeviceMessage 阿里物联 > 设备报警消息} */
@@ -45,6 +45,8 @@ declare namespace IncomingMessage {
45
45
  type AlibabaAlihealthTradeOrderStatusChange = Message & { content?: MessageContent & { topic?: 'alibaba_alihealth_TradeOrderStatusChange', content?: string | Alibaba.Alihealth.TradeOrderStatusChange } };
46
46
  /** {@link Alibaba.Alihealth.TradeVaccineSubscribeChange 阿里健康追溯码 > 疫苗交易预约信息变动} */
47
47
  type AlibabaAlihealthTradeVaccineSubscribeChange = Message & { content?: MessageContent & { topic?: 'alibaba_alihealth_TradeVaccineSubscribeChange', content?: string | Alibaba.Alihealth.TradeVaccineSubscribeChange } };
48
+ /** {@link Alibaba.Alihealth.VcRegisterCancel 阿里健康追溯码 > 用户取消订阅缺苗登记同步isv} */
49
+ type AlibabaAlihealthVcRegisterCancel = Message & { content?: MessageContent & { topic?: 'alibaba_alihealth_VcRegisterCancel', content?: string | Alibaba.Alihealth.VcRegisterCancel } };
48
50
  /** {@link Alibaba.Alink.DeviceDataPush 阿里物联 > 设备数据推送} */
49
51
  type AlibabaAlinkDeviceDataPush = Message & { content?: MessageContent & { topic?: 'alibaba_alink_DeviceDataPush', content?: string | Alibaba.Alink.DeviceDataPush } };
50
52
  /** {@link Alibaba.Alink.DeviceMessage 阿里物联 > 设备报警消息} */
@@ -952,13 +954,15 @@ declare namespace IncomingMessage {
952
954
  * - {@link AlibabaAlihealthOrderStatusChange 阿里健康追溯码 > 平台通知三方机构"订单状态变更"}
953
955
  * - {@link AlibabaAlihealthTradeOrderStatusChange 阿里健康追溯码 > O2O订单状态变更通知}
954
956
  * - {@link AlibabaAlihealthTradeVaccineSubscribeChange 阿里健康追溯码 > 疫苗交易预约信息变动}
957
+ * - {@link AlibabaAlihealthVcRegisterCancel 阿里健康追溯码 > 用户取消订阅缺苗登记同步isv}
955
958
  */
956
959
  type AlibabaAlihealth = AlibabaAlihealthBillProcessStatusNotify
957
960
  | AlibabaAlihealthDoctorMessage
958
961
  | AlibabaAlihealthNrmopOrderStatusChange
959
962
  | AlibabaAlihealthOrderStatusChange
960
963
  | AlibabaAlihealthTradeOrderStatusChange
961
- | AlibabaAlihealthTradeVaccineSubscribeChange;
964
+ | AlibabaAlihealthTradeVaccineSubscribeChange
965
+ | AlibabaAlihealthVcRegisterCancel;
962
966
  /**
963
967
  * - {@link AlibabaAlinkDeviceDataPush 阿里物联 > 设备数据推送}
964
968
  * - {@link AlibabaAlinkDeviceMessage 阿里物联 > 设备报警消息}