tmc.js 0.3.31 → 0.3.32

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>共计 84+ 类别,488+ 消息数</summary>
137
+ <details><summary>共计 84+ 类别,489+ 消息数</summary>
138
138
 
139
139
  | 类别 | 消息数 |
140
140
  | --- | --- |
@@ -178,7 +178,7 @@ new Tmc('your_app_key', 'your_app_secret', { autoReplyConfirmation: false })
178
178
  | 智慧门店下行消息 | 2 |
179
179
  | 渠道中心API | 4 |
180
180
  | 五道口订单 | 22 |
181
- | 信息平台-采购 | 1 |
181
+ | 信息平台-采购 | 2 |
182
182
  | 1688服务市场 | 1 |
183
183
  | 酒店商品消息api | 9 |
184
184
  | 新零售终端下行消息 | 1 |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tmc.js",
3
- "version": "0.3.31",
3
+ "version": "0.3.32",
4
4
  "description": "Event driven and chained Taobao Message Channel(TMC) for NodeJS",
5
5
  "author": "James ZHANG",
6
6
  "license": "MIT",
@@ -1382,6 +1382,19 @@ declare namespace Alibaba.Nlife {
1382
1382
  }
1383
1383
  }
1384
1384
 
1385
+ /** 信息平台-采购 */
1386
+ declare namespace Alibaba.Pur {
1387
+ /** 发货提醒 */
1388
+ interface ResourceOrderShipNotify {
1389
+ /** 子订单 */
1390
+ orderItems: string;
1391
+ /** 平台订单号 */
1392
+ orderNo: string;
1393
+ /** 三方订单号 */
1394
+ outOrderNo: string;
1395
+ }
1396
+ }
1397
+
1385
1398
  /** 天猫服务 */
1386
1399
  declare namespace Alibaba.Serviceplatform {
1387
1400
  /** 服务供应链核销单消息 */
package/types/index.d.ts CHANGED
@@ -234,6 +234,8 @@ declare interface TaoTopicsDescriptor {
234
234
  alibaba_nlife_InstorageDiffAuditNotify(fn: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaNlifeInstorageDiffAuditNotify) => void): TaoMessageConsumer;
235
235
  /** {@link IncomingMessage.AlibabaNlifeItemUpdate 零售plus > 零售+商品变动消息} */
236
236
  alibaba_nlife_ItemUpdate(fn: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaNlifeItemUpdate) => void): TaoMessageConsumer;
237
+ /** {@link IncomingMessage.AlibabaPurResourceOrderShipNotify 信息平台-采购 > 发货提醒} */
238
+ alibaba_pur_ResourceOrderShipNotify(fn: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaPurResourceOrderShipNotify) => void): TaoMessageConsumer;
237
239
  /** {@link IncomingMessage.AlibabaServiceplatformFulfilTask 天猫服务 > 服务供应链核销单消息} */
238
240
  alibaba_serviceplatform_FulfilTask(fn: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaServiceplatformFulfilTask) => void): TaoMessageConsumer;
239
241
  /** {@link IncomingMessage.AlibabaServiceplatformServiceOrder 天猫服务 > 服务供应链服务单消息} */
@@ -1024,6 +1026,8 @@ declare interface TaoTopicsDescriptor {
1024
1026
  alibaba_nazca(fn: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaNazca) => void): TaoMessageConsumer;
1025
1027
  /** {@link IncomingMessage.AlibabaNlife} */
1026
1028
  alibaba_nlife(fn: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaNlife) => void): TaoMessageConsumer;
1029
+ /** {@link IncomingMessage.AlibabaPur} */
1030
+ alibaba_pur(fn: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaPur) => void): TaoMessageConsumer;
1027
1031
  /** {@link IncomingMessage.AlibabaServiceplatform} */
1028
1032
  alibaba_serviceplatform(fn: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaServiceplatform) => void): TaoMessageConsumer;
1029
1033
  /** {@link IncomingMessage.AlibabaSp} */
@@ -1487,6 +1491,8 @@ declare interface TaoEventsListener {
1487
1491
  on(topic: 'alibaba_nlife_InstorageDiffAuditNotify', listener: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaNlifeInstorageDiffAuditNotify) => void): TaoMessageConsumer;
1488
1492
  /** {@link IncomingMessage.AlibabaNlifeItemUpdate 零售plus > 零售+商品变动消息} */
1489
1493
  on(topic: 'alibaba_nlife_ItemUpdate', listener: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaNlifeItemUpdate) => void): TaoMessageConsumer;
1494
+ /** {@link IncomingMessage.AlibabaPurResourceOrderShipNotify 信息平台-采购 > 发货提醒} */
1495
+ on(topic: 'alibaba_pur_ResourceOrderShipNotify', listener: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaPurResourceOrderShipNotify) => void): TaoMessageConsumer;
1490
1496
  /** {@link IncomingMessage.AlibabaServiceplatformFulfilTask 天猫服务 > 服务供应链核销单消息} */
1491
1497
  on(topic: 'alibaba_serviceplatform_FulfilTask', listener: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaServiceplatformFulfilTask) => void): TaoMessageConsumer;
1492
1498
  /** {@link IncomingMessage.AlibabaServiceplatformServiceOrder 天猫服务 > 服务供应链服务单消息} */
@@ -2277,6 +2283,8 @@ declare interface TaoEventsListener {
2277
2283
  on(topic: 'alibaba_nazca', listener: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaNazca) => void): TaoMessageConsumer;
2278
2284
  /** {@link IncomingMessage.AlibabaNlife} */
2279
2285
  on(topic: 'alibaba_nlife', listener: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaNlife) => void): TaoMessageConsumer;
2286
+ /** {@link IncomingMessage.AlibabaPur} */
2287
+ on(topic: 'alibaba_pur', listener: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaPur) => void): TaoMessageConsumer;
2280
2288
  /** {@link IncomingMessage.AlibabaServiceplatform} */
2281
2289
  on(topic: 'alibaba_serviceplatform', listener: (this: TaoMessageConsumer, message: IncomingMessage.AlibabaServiceplatform) => void): TaoMessageConsumer;
2282
2290
  /** {@link IncomingMessage.AlibabaSp} */
@@ -195,6 +195,8 @@ declare namespace IncomingMessage {
195
195
  type AlibabaNlifeInstorageDiffAuditNotify = Message & { content?: MessageContent & { topic?: 'alibaba_nlife_InstorageDiffAuditNotify', content?: string | Alibaba.Nlife.InstorageDiffAuditNotify } };
196
196
  /** {@link Alibaba.Nlife.ItemUpdate 零售plus > 零售+商品变动消息} */
197
197
  type AlibabaNlifeItemUpdate = Message & { content?: MessageContent & { topic?: 'alibaba_nlife_ItemUpdate', content?: string | Alibaba.Nlife.ItemUpdate } };
198
+ /** {@link Alibaba.Pur.ResourceOrderShipNotify 信息平台-采购 > 发货提醒} */
199
+ type AlibabaPurResourceOrderShipNotify = Message & { content?: MessageContent & { topic?: 'alibaba_pur_ResourceOrderShipNotify', content?: string | Alibaba.Pur.ResourceOrderShipNotify } };
198
200
  /** {@link Alibaba.Serviceplatform.FulfilTask 天猫服务 > 服务供应链核销单消息} */
199
201
  type AlibabaServiceplatformFulfilTask = Message & { content?: MessageContent & { topic?: 'alibaba_serviceplatform_FulfilTask', content?: string | Alibaba.Serviceplatform.FulfilTask } };
200
202
  /** {@link Alibaba.Serviceplatform.ServiceOrder 天猫服务 > 服务供应链服务单消息} */
@@ -1155,6 +1157,10 @@ declare namespace IncomingMessage {
1155
1157
  | AlibabaNlifeBtobTradeRefundNotify
1156
1158
  | AlibabaNlifeInstorageDiffAuditNotify
1157
1159
  | AlibabaNlifeItemUpdate;
1160
+ /**
1161
+ * - {@link AlibabaPurResourceOrderShipNotify 信息平台-采购 > 发货提醒}
1162
+ */
1163
+ type AlibabaPur = AlibabaPurResourceOrderShipNotify;
1158
1164
  /**
1159
1165
  * - {@link AlibabaServiceplatformFulfilTask 天猫服务 > 服务供应链核销单消息}
1160
1166
  * - {@link AlibabaServiceplatformServiceOrder 天猫服务 > 服务供应链服务单消息}
@@ -2170,6 +2176,7 @@ declare namespace IncomingMessage {
2170
2176
  * - {@link AlibabaMsfservice}
2171
2177
  * - {@link AlibabaNazca}
2172
2178
  * - {@link AlibabaNlife}
2179
+ * - {@link AlibabaPur}
2173
2180
  * - {@link AlibabaServiceplatform}
2174
2181
  * - {@link AlibabaSp}
2175
2182
  * - {@link AlibabaTax}
@@ -2200,6 +2207,7 @@ declare namespace IncomingMessage {
2200
2207
  | AlibabaMsfservice
2201
2208
  | AlibabaNazca
2202
2209
  | AlibabaNlife
2210
+ | AlibabaPur
2203
2211
  | AlibabaServiceplatform
2204
2212
  | AlibabaSp
2205
2213
  | AlibabaTax