tmc.js 0.3.18 → 0.3.19

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+ 类别,450+ 消息数</summary>
137
+ <details><summary>共计 83+ 类别,451+ 消息数</summary>
138
138
 
139
139
  | 类别 | 消息数 |
140
140
  | --- | --- |
@@ -150,7 +150,7 @@ new Tmc('your_app_key', 'your_app_secret', { autoReplyConfirmation: false })
150
150
  | 导购平台 | 21 |
151
151
  | 淘宝汽车票 | 4 |
152
152
  | 服务市场 | 9 |
153
- | 天猫服务 | 16 |
153
+ | 天猫服务 | 17 |
154
154
  | 天猫美妆 | 2 |
155
155
  | 聚石塔 | 9 |
156
156
  | 淘宝物流 | 1 |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tmc.js",
3
- "version": "0.3.18",
3
+ "version": "0.3.19",
4
4
  "description": "Events driven and chained Taobao Message Channel(TMC) for NodeJS",
5
5
  "author": "James ZHANG",
6
6
  "license": "MIT",
package/types/index.d.ts CHANGED
@@ -840,6 +840,8 @@ declare interface TaoTopicsDescriptor {
840
840
  tmall_fuwu_ServiceStoreRegister(fn: (this: TaoMessageConsumer, message: IncomingMessage.TmallFuwuServiceStoreRegister) => void): TaoMessageConsumer;
841
841
  /** {@link IncomingMessage.TmallFuwuSettleAdjustmentStatusUpdate 天猫服务 > 单个结算调整单数据推送} */
842
842
  tmall_fuwu_SettleAdjustmentStatusUpdate(fn: (this: TaoMessageConsumer, message: IncomingMessage.TmallFuwuSettleAdjustmentStatusUpdate) => void): TaoMessageConsumer;
843
+ /** {@link IncomingMessage.TmallFuwuSettleSupplierFcBill 天猫服务 > 天猫服务服务商分账消息推送} */
844
+ tmall_fuwu_SettleSupplierFcBill(fn: (this: TaoMessageConsumer, message: IncomingMessage.TmallFuwuSettleSupplierFcBill) => void): TaoMessageConsumer;
843
845
  /** {@link IncomingMessage.TmallFuwuWorkcardContract 天猫服务 > 天猫服务履约合同单} */
844
846
  tmall_fuwu_WorkcardContract(fn: (this: TaoMessageConsumer, message: IncomingMessage.TmallFuwuWorkcardContract) => void): TaoMessageConsumer;
845
847
  /** {@link IncomingMessage.TmallFuwuWorkcardInfo 天猫服务 > 天猫服务任务工单} */
@@ -1993,6 +1995,8 @@ declare interface TaoEventsListener {
1993
1995
  on(topic: 'tmall_fuwu_ServiceStoreRegister', listener: (this: TaoMessageConsumer, message: IncomingMessage.TmallFuwuServiceStoreRegister) => void): TaoMessageConsumer;
1994
1996
  /** {@link IncomingMessage.TmallFuwuSettleAdjustmentStatusUpdate 天猫服务 > 单个结算调整单数据推送} */
1995
1997
  on(topic: 'tmall_fuwu_SettleAdjustmentStatusUpdate', listener: (this: TaoMessageConsumer, message: IncomingMessage.TmallFuwuSettleAdjustmentStatusUpdate) => void): TaoMessageConsumer;
1998
+ /** {@link IncomingMessage.TmallFuwuSettleSupplierFcBill 天猫服务 > 天猫服务服务商分账消息推送} */
1999
+ on(topic: 'tmall_fuwu_SettleSupplierFcBill', listener: (this: TaoMessageConsumer, message: IncomingMessage.TmallFuwuSettleSupplierFcBill) => void): TaoMessageConsumer;
1996
2000
  /** {@link IncomingMessage.TmallFuwuWorkcardContract 天猫服务 > 天猫服务履约合同单} */
1997
2001
  on(topic: 'tmall_fuwu_WorkcardContract', listener: (this: TaoMessageConsumer, message: IncomingMessage.TmallFuwuWorkcardContract) => void): TaoMessageConsumer;
1998
2002
  /** {@link IncomingMessage.TmallFuwuWorkcardInfo 天猫服务 > 天猫服务任务工单} */
@@ -799,6 +799,8 @@ declare namespace IncomingMessage {
799
799
  type TmallFuwuServiceStoreRegister = Message & { content?: MessageContent & { topic?: 'tmall_fuwu_ServiceStoreRegister', content?: string | Tmall.Fuwu.ServiceStoreRegister } };
800
800
  /** {@link Tmall.Fuwu.SettleAdjustmentStatusUpdate 天猫服务 > 单个结算调整单数据推送} */
801
801
  type TmallFuwuSettleAdjustmentStatusUpdate = Message & { content?: MessageContent & { topic?: 'tmall_fuwu_SettleAdjustmentStatusUpdate', content?: string | Tmall.Fuwu.SettleAdjustmentStatusUpdate } };
802
+ /** {@link Tmall.Fuwu.SettleSupplierFcBill 天猫服务 > 天猫服务服务商分账消息推送} */
803
+ type TmallFuwuSettleSupplierFcBill = Message & { content?: MessageContent & { topic?: 'tmall_fuwu_SettleSupplierFcBill', content?: string | Tmall.Fuwu.SettleSupplierFcBill } };
802
804
  /** {@link Tmall.Fuwu.WorkcardContract 天猫服务 > 天猫服务履约合同单} */
803
805
  type TmallFuwuWorkcardContract = Message & { content?: MessageContent & { topic?: 'tmall_fuwu_WorkcardContract', content?: string | Tmall.Fuwu.WorkcardContract } };
804
806
  /** {@link Tmall.Fuwu.WorkcardInfo 天猫服务 > 天猫服务任务工单} */
@@ -1865,6 +1867,7 @@ declare namespace IncomingMessage {
1865
1867
  * - {@link TmallFuwuServiceMonitorMessage 天猫服务 > 服务预警消息}
1866
1868
  * - {@link TmallFuwuServiceStoreRegister 天猫服务 > 服务网点注册消息}
1867
1869
  * - {@link TmallFuwuSettleAdjustmentStatusUpdate 天猫服务 > 单个结算调整单数据推送}
1870
+ * - {@link TmallFuwuSettleSupplierFcBill 天猫服务 > 天猫服务服务商分账消息推送}
1868
1871
  * - {@link TmallFuwuWorkcardContract 天猫服务 > 天猫服务履约合同单}
1869
1872
  * - {@link TmallFuwuWorkcardInfo 天猫服务 > 天猫服务任务工单}
1870
1873
  * - {@link TmallFuwuWorkcardStatusUpdate 天猫服务 > 天猫服务任务工单状态变更}
@@ -1876,6 +1879,7 @@ declare namespace IncomingMessage {
1876
1879
  | TmallFuwuServiceMonitorMessage
1877
1880
  | TmallFuwuServiceStoreRegister
1878
1881
  | TmallFuwuSettleAdjustmentStatusUpdate
1882
+ | TmallFuwuSettleSupplierFcBill
1879
1883
  | TmallFuwuWorkcardContract
1880
1884
  | TmallFuwuWorkcardInfo
1881
1885
  | TmallFuwuWorkcardStatusUpdate;
package/types/tmall.d.ts CHANGED
@@ -158,6 +158,8 @@ declare namespace Tmall.Fuwu {
158
158
 
159
159
  /** 单个结算调整单数据推送 */
160
160
  interface SettleAdjustmentStatusUpdate {
161
+ /** 扩展属性 */
162
+ attributes: string;
161
163
  /** 实物订单信息 */
162
164
  biz_order_id: number;
163
165
  /** 费用 */
@@ -184,6 +186,18 @@ declare namespace Tmall.Fuwu {
184
186
  workcard_id: number;
185
187
  }
186
188
 
189
+ /** 天猫服务服务商分账消息推送 */
190
+ interface SettleSupplierFcBill {
191
+ /** 分成金额,单位分 */
192
+ amount: number;
193
+ /** 结算费用项 */
194
+ details: string;
195
+ /** 平台佣金比例 */
196
+ platform_commission_rate: number;
197
+ /** 服务工单ID */
198
+ workcard_id: number;
199
+ }
200
+
187
201
  /** 天猫服务履约合同单 */
188
202
  interface WorkcardContract {
189
203
  /** long,id */