Skip to content

Commit

Permalink
v0.3.25 released.
Browse files Browse the repository at this point in the history
new topics in:
- `damai_distribution_RefundOrder` 大麦三方票务退票通知
- `taobao_axin_DivisionApplyResult` 新增行政区划结果通知
- `taobao_axin_PoiApplyResult` 新增POI结果通知
- `taobao_fsc_RouteOrderStatusChange` 线路订单状态变更通知
  • Loading branch information
TheNorthMemory committed Jun 3, 2023
1 parent a49a9c0 commit 99717a1
Show file tree
Hide file tree
Showing 6 changed files with 100 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ new Tmc('your_app_key', 'your_app_secret', { autoReplyConfirmation: false })
## 支持的TOPICS
<details><summary>共计 83+ 类别,462+ 消息数</summary>
<details><summary>共计 83+ 类别,466+ 消息数</summary>
| 类别 | 消息数 |
| --- | --- |
Expand Down Expand Up @@ -192,7 +192,7 @@ new Tmc('your_app_key', 'your_app_secret', { autoReplyConfirmation: false })
| 商旅API | 3 |
| 阿里健康-O2O中台 | 2 |
| 业务平台新零售-消息上行 | 2 |
| 大麦第三方票务供应商接入 | 5 |
| 大麦第三方票务供应商接入 | 6 |
| TVOS应用审核平台 | 1 |
| Gifting送礼 | 1 |
| 五道口商品 | 2 |
Expand All @@ -211,7 +211,7 @@ new Tmc('your_app_key', 'your_app_secret', { autoReplyConfirmation: false })
| 大资产拍卖Top端拍品消息 | 2 |
| AE-任务平台消息 | 1 |
| 天猫汽车 | 5 |
| 阿信消息通知前台类目 | 1 |
| 阿信消息通知前台类目 | 4 |
| 阿里健康追溯码 | 1 |
| 自动驾驶API | 3 |
| MMC五盘货项目 | 5 |
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tmc.js",
"version": "0.3.24",
"version": "0.3.25",
"description": "Event driven and chained Taobao Message Channel(TMC) for NodeJS",
"author": "James ZHANG",
"license": "MIT",
Expand Down
16 changes: 16 additions & 0 deletions types/damai.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,22 @@ declare namespace Damai.Distribution {
project_id: number;
}

/** 退票通知 */
interface RefundOrder {
/** 渠道id */
channel_id: string;
/** 大麦订单号 */
external_order_no: string;
/** 场次id */
perform_id: number;
/** 项目id */
project_id: number;
/** 部分退true,整单退false */
refund_part: boolean;
/** 票单列表 */
voucher_ids: number[];
}

/** 票品状态变更 */
interface TicketItemStatus {
/** 是否可售 */
Expand Down
20 changes: 20 additions & 0 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,8 @@ declare interface TaoTopicsDescriptor {
damai_distribution_PreSaleToNow(fn: (this: TaoMessageConsumer, message: IncomingMessage.DamaiDistributionPreSaleToNow) => void): TaoMessageConsumer;
/** {@link IncomingMessage.DamaiDistributionProjectStatus 大麦第三方票务供应商接入 > 项目状态推送} */
damai_distribution_ProjectStatus(fn: (this: TaoMessageConsumer, message: IncomingMessage.DamaiDistributionProjectStatus) => void): TaoMessageConsumer;
/** {@link IncomingMessage.DamaiDistributionRefundOrder 大麦第三方票务供应商接入 > 退票通知} */
damai_distribution_RefundOrder(fn: (this: TaoMessageConsumer, message: IncomingMessage.DamaiDistributionRefundOrder) => void): TaoMessageConsumer;
/** {@link IncomingMessage.DamaiDistributionTicketItemStatus 大麦第三方票务供应商接入 > 票品状态变更} */
damai_distribution_TicketItemStatus(fn: (this: TaoMessageConsumer, message: IncomingMessage.DamaiDistributionTicketItemStatus) => void): TaoMessageConsumer;
/** {@link IncomingMessage.DamaiTradeTicketStatusPush 大麦票单状态 > 大麦票单状态推送} */
Expand Down Expand Up @@ -438,6 +440,10 @@ declare interface TaoTopicsDescriptor {
taobao_aps_CommentAdd(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoApsCommentAdd) => void): TaoMessageConsumer;
/** {@link IncomingMessage.TaobaoApsNewFeedback 平台消息 > 收到舆情} */
taobao_aps_NewFeedback(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoApsNewFeedback) => void): TaoMessageConsumer;
/** {@link IncomingMessage.TaobaoAxinDivisionApplyResult 阿信消息通知前台类目 > 新增行政区划结果通知} */
taobao_axin_DivisionApplyResult(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoAxinDivisionApplyResult) => void): TaoMessageConsumer;
/** {@link IncomingMessage.TaobaoAxinPoiApplyResult 阿信消息通知前台类目 > 新增POI结果通知} */
taobao_axin_PoiApplyResult(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoAxinPoiApplyResult) => void): TaoMessageConsumer;
/** {@link IncomingMessage.TaobaoAxinRefundCallBack 阿信消息通知前台类目 > 阿信退款回调消息} */
taobao_axin_RefundCallBack(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoAxinRefundCallBack) => void): TaoMessageConsumer;
/** {@link IncomingMessage.TaobaoBaichuanASODeviceActivate 百川 > 设备APP激活} */
Expand Down Expand Up @@ -540,6 +546,8 @@ declare interface TaoTopicsDescriptor {
taobao_fliggy_StdHotelModify(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoFliggyStdHotelModify) => void): TaoMessageConsumer;
/** {@link IncomingMessage.TaobaoFliggyStdRoomTypeModify 酒店签约中心消息 > 标准房型领域模型实体变更消息} */
taobao_fliggy_StdRoomTypeModify(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoFliggyStdRoomTypeModify) => void): TaoMessageConsumer;
/** {@link IncomingMessage.TaobaoFscRouteOrderStatusChange 阿信消息通知前台类目 > 线路订单状态变更通知} */
taobao_fsc_RouteOrderStatusChange(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoFscRouteOrderStatusChange) => void): TaoMessageConsumer;
/** {@link IncomingMessage.TaobaoFuwuFundsChange 淘宝交易 > 以旧换新资金变更通知消息} */
taobao_fuwu_FundsChange(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoFuwuFundsChange) => void): TaoMessageConsumer;
/** {@link IncomingMessage.TaobaoFuwuOrderClosed 淘宝交易 > 订单关闭消息} */
Expand Down Expand Up @@ -1096,6 +1104,8 @@ declare interface TaoTopicsDescriptor {
taobao_fenxiao(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoFenxiao) => void): TaoMessageConsumer;
/** {@link IncomingMessage.TaobaoFliggy} */
taobao_fliggy(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoFliggy) => void): TaoMessageConsumer;
/** {@link IncomingMessage.TaobaoFsc} */
taobao_fsc(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoFsc) => void): TaoMessageConsumer;
/** {@link IncomingMessage.TaobaoFuwu} */
taobao_fuwu(fn: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoFuwu) => void): TaoMessageConsumer;
/** {@link IncomingMessage.TaobaoGlobalbuys} */
Expand Down Expand Up @@ -1561,6 +1571,8 @@ declare interface TaoEventsListener {
on(topic: 'damai_distribution_PreSaleToNow', listener: (this: TaoMessageConsumer, message: IncomingMessage.DamaiDistributionPreSaleToNow) => void): TaoMessageConsumer;
/** {@link IncomingMessage.DamaiDistributionProjectStatus 大麦第三方票务供应商接入 > 项目状态推送} */
on(topic: 'damai_distribution_ProjectStatus', listener: (this: TaoMessageConsumer, message: IncomingMessage.DamaiDistributionProjectStatus) => void): TaoMessageConsumer;
/** {@link IncomingMessage.DamaiDistributionRefundOrder 大麦第三方票务供应商接入 > 退票通知} */
on(topic: 'damai_distribution_RefundOrder', listener: (this: TaoMessageConsumer, message: IncomingMessage.DamaiDistributionRefundOrder) => void): TaoMessageConsumer;
/** {@link IncomingMessage.DamaiDistributionTicketItemStatus 大麦第三方票务供应商接入 > 票品状态变更} */
on(topic: 'damai_distribution_TicketItemStatus', listener: (this: TaoMessageConsumer, message: IncomingMessage.DamaiDistributionTicketItemStatus) => void): TaoMessageConsumer;
/** {@link IncomingMessage.DamaiTradeTicketStatusPush 大麦票单状态 > 大麦票单状态推送} */
Expand Down Expand Up @@ -1629,6 +1641,10 @@ declare interface TaoEventsListener {
on(topic: 'taobao_aps_CommentAdd', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoApsCommentAdd) => void): TaoMessageConsumer;
/** {@link IncomingMessage.TaobaoApsNewFeedback 平台消息 > 收到舆情} */
on(topic: 'taobao_aps_NewFeedback', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoApsNewFeedback) => void): TaoMessageConsumer;
/** {@link IncomingMessage.TaobaoAxinDivisionApplyResult 阿信消息通知前台类目 > 新增行政区划结果通知} */
on(topic: 'taobao_axin_DivisionApplyResult', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoAxinDivisionApplyResult) => void): TaoMessageConsumer;
/** {@link IncomingMessage.TaobaoAxinPoiApplyResult 阿信消息通知前台类目 > 新增POI结果通知} */
on(topic: 'taobao_axin_PoiApplyResult', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoAxinPoiApplyResult) => void): TaoMessageConsumer;
/** {@link IncomingMessage.TaobaoAxinRefundCallBack 阿信消息通知前台类目 > 阿信退款回调消息} */
on(topic: 'taobao_axin_RefundCallBack', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoAxinRefundCallBack) => void): TaoMessageConsumer;
/** {@link IncomingMessage.TaobaoBaichuanASODeviceActivate 百川 > 设备APP激活} */
Expand Down Expand Up @@ -1731,6 +1747,8 @@ declare interface TaoEventsListener {
on(topic: 'taobao_fliggy_StdHotelModify', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoFliggyStdHotelModify) => void): TaoMessageConsumer;
/** {@link IncomingMessage.TaobaoFliggyStdRoomTypeModify 酒店签约中心消息 > 标准房型领域模型实体变更消息} */
on(topic: 'taobao_fliggy_StdRoomTypeModify', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoFliggyStdRoomTypeModify) => void): TaoMessageConsumer;
/** {@link IncomingMessage.TaobaoFscRouteOrderStatusChange 阿信消息通知前台类目 > 线路订单状态变更通知} */
on(topic: 'taobao_fsc_RouteOrderStatusChange', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoFscRouteOrderStatusChange) => void): TaoMessageConsumer;
/** {@link IncomingMessage.TaobaoFuwuFundsChange 淘宝交易 > 以旧换新资金变更通知消息} */
on(topic: 'taobao_fuwu_FundsChange', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoFuwuFundsChange) => void): TaoMessageConsumer;
/** {@link IncomingMessage.TaobaoFuwuOrderClosed 淘宝交易 > 订单关闭消息} */
Expand Down Expand Up @@ -2287,6 +2305,8 @@ declare interface TaoEventsListener {
on(topic: 'taobao_fenxiao', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoFenxiao) => void): TaoMessageConsumer;
/** {@link IncomingMessage.TaobaoFliggy} */
on(topic: 'taobao_fliggy', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoFliggy) => void): TaoMessageConsumer;
/** {@link IncomingMessage.TaobaoFsc} */
on(topic: 'taobao_fsc', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoFsc) => void): TaoMessageConsumer;
/** {@link IncomingMessage.TaobaoFuwu} */
on(topic: 'taobao_fuwu', listener: (this: TaoMessageConsumer, message: IncomingMessage.TaobaoFuwu) => void): TaoMessageConsumer;
/** {@link IncomingMessage.TaobaoGlobalbuys} */
Expand Down
22 changes: 21 additions & 1 deletion types/message.in.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,8 @@ declare namespace IncomingMessage {
type DamaiDistributionPreSaleToNow = Message & { content?: MessageContent & { topic?: 'damai_distribution_PreSaleToNow', content?: string | Damai.Distribution.PreSaleToNow } };
/** {@link Damai.Distribution.ProjectStatus 大麦第三方票务供应商接入 > 项目状态推送} */
type DamaiDistributionProjectStatus = Message & { content?: MessageContent & { topic?: 'damai_distribution_ProjectStatus', content?: string | Damai.Distribution.ProjectStatus } };
/** {@link Damai.Distribution.RefundOrder 大麦第三方票务供应商接入 > 退票通知} */
type DamaiDistributionRefundOrder = Message & { content?: MessageContent & { topic?: 'damai_distribution_RefundOrder', content?: string | Damai.Distribution.RefundOrder } };
/** {@link Damai.Distribution.TicketItemStatus 大麦第三方票务供应商接入 > 票品状态变更} */
type DamaiDistributionTicketItemStatus = Message & { content?: MessageContent & { topic?: 'damai_distribution_TicketItemStatus', content?: string | Damai.Distribution.TicketItemStatus } };
/** {@link Damai.Trade.TicketStatusPush 大麦票单状态 > 大麦票单状态推送} */
Expand Down Expand Up @@ -399,6 +401,10 @@ declare namespace IncomingMessage {
type TaobaoApsCommentAdd = Message & { content?: MessageContent & { topic?: 'taobao_aps_CommentAdd', content?: string | Taobao.Aps.CommentAdd } };
/** {@link Taobao.Aps.NewFeedback 平台消息 > 收到舆情} */
type TaobaoApsNewFeedback = Message & { content?: MessageContent & { topic?: 'taobao_aps_NewFeedback', content?: string | Taobao.Aps.NewFeedback } };
/** {@link Taobao.Axin.DivisionApplyResult 阿信消息通知前台类目 > 新增行政区划结果通知} */
type TaobaoAxinDivisionApplyResult = Message & { content?: MessageContent & { topic?: 'taobao_axin_DivisionApplyResult', content?: string | Taobao.Axin.DivisionApplyResult } };
/** {@link Taobao.Axin.PoiApplyResult 阿信消息通知前台类目 > 新增POI结果通知} */
type TaobaoAxinPoiApplyResult = Message & { content?: MessageContent & { topic?: 'taobao_axin_PoiApplyResult', content?: string | Taobao.Axin.PoiApplyResult } };
/** {@link Taobao.Axin.RefundCallBack 阿信消息通知前台类目 > 阿信退款回调消息} */
type TaobaoAxinRefundCallBack = Message & { content?: MessageContent & { topic?: 'taobao_axin_RefundCallBack', content?: string | Taobao.Axin.RefundCallBack } };
/** {@link Taobao.Baichuan.ASODeviceActivate 百川 > 设备APP激活} */
Expand Down Expand Up @@ -501,6 +507,8 @@ declare namespace IncomingMessage {
type TaobaoFliggyStdHotelModify = Message & { content?: MessageContent & { topic?: 'taobao_fliggy_StdHotelModify', content?: string | Taobao.Fliggy.StdHotelModify } };
/** {@link Taobao.Fliggy.StdRoomTypeModify 酒店签约中心消息 > 标准房型领域模型实体变更消息} */
type TaobaoFliggyStdRoomTypeModify = Message & { content?: MessageContent & { topic?: 'taobao_fliggy_StdRoomTypeModify', content?: string | Taobao.Fliggy.StdRoomTypeModify } };
/** {@link Taobao.Fsc.RouteOrderStatusChange 阿信消息通知前台类目 > 线路订单状态变更通知} */
type TaobaoFscRouteOrderStatusChange = Message & { content?: MessageContent & { topic?: 'taobao_fsc_RouteOrderStatusChange', content?: string | Taobao.Fsc.RouteOrderStatusChange } };
/** {@link Taobao.Fuwu.FundsChange 淘宝交易 > 以旧换新资金变更通知消息} */
type TaobaoFuwuFundsChange = Message & { content?: MessageContent & { topic?: 'taobao_fuwu_FundsChange', content?: string | Taobao.Fuwu.FundsChange } };
/** {@link Taobao.Fuwu.OrderClosed 淘宝交易 > 订单关闭消息} */
Expand Down Expand Up @@ -1294,12 +1302,14 @@ declare namespace IncomingMessage {
* - {@link DamaiDistributionPerformStatus 大麦第三方票务供应商接入 > 场次状态变更推送}
* - {@link DamaiDistributionPreSaleToNow 大麦第三方票务供应商接入 > 预售改开票}
* - {@link DamaiDistributionProjectStatus 大麦第三方票务供应商接入 > 项目状态推送}
* - {@link DamaiDistributionRefundOrder 大麦第三方票务供应商接入 > 退票通知}
* - {@link DamaiDistributionTicketItemStatus 大麦第三方票务供应商接入 > 票品状态变更}
*/
type DamaiDistribution = DamaiDistributionPerformCancel
| DamaiDistributionPerformStatus
| DamaiDistributionPreSaleToNow
| DamaiDistributionProjectStatus
| DamaiDistributionRefundOrder
| DamaiDistributionTicketItemStatus;
/**
* - {@link DamaiTradeTicketStatusPush 大麦票单状态 > 大麦票单状态推送}
Expand Down Expand Up @@ -1404,9 +1414,13 @@ declare namespace IncomingMessage {
type TaobaoAps = TaobaoApsCommentAdd
| TaobaoApsNewFeedback;
/**
* - {@link TaobaoAxinDivisionApplyResult 阿信消息通知前台类目 > 新增行政区划结果通知}
* - {@link TaobaoAxinPoiApplyResult 阿信消息通知前台类目 > 新增POI结果通知}
* - {@link TaobaoAxinRefundCallBack 阿信消息通知前台类目 > 阿信退款回调消息}
*/
type TaobaoAxin = TaobaoAxinRefundCallBack;
type TaobaoAxin = TaobaoAxinDivisionApplyResult
| TaobaoAxinPoiApplyResult
| TaobaoAxinRefundCallBack;
/**
* - {@link TaobaoBaichuanASODeviceActivate 百川 > 设备APP激活}
* - {@link TaobaoBaichuanPasswordRuleChange 百川 > 口令规则变化消息}
Expand Down Expand Up @@ -1533,6 +1547,10 @@ declare namespace IncomingMessage {
| TaobaoFliggySignStatus
| TaobaoFliggyStdHotelModify
| TaobaoFliggyStdRoomTypeModify;
/**
* - {@link TaobaoFscRouteOrderStatusChange 阿信消息通知前台类目 > 线路订单状态变更通知}
*/
type TaobaoFsc = TaobaoFscRouteOrderStatusChange;
/**
* - {@link TaobaoFuwuFundsChange 淘宝交易 > 以旧换新资金变更通知消息}
* - {@link TaobaoFuwuOrderClosed 淘宝交易 > 订单关闭消息}
Expand Down Expand Up @@ -2216,6 +2234,7 @@ declare namespace IncomingMessage {
* - {@link TaobaoEinvoice}
* - {@link TaobaoFenxiao}
* - {@link TaobaoFliggy}
* - {@link TaobaoFsc}
* - {@link TaobaoFuwu}
* - {@link TaobaoGlobalbuys}
* - {@link TaobaoHomeai}
Expand Down Expand Up @@ -2266,6 +2285,7 @@ declare namespace IncomingMessage {
| TaobaoEinvoice
| TaobaoFenxiao
| TaobaoFliggy
| TaobaoFsc
| TaobaoFuwu
| TaobaoGlobalbuys
| TaobaoHomeai
Expand Down
39 changes: 39 additions & 0 deletions types/taobao.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,26 @@ declare namespace Taobao.Aps {

/** 阿信消息通知前台类目 */
declare namespace Taobao.Axin {
/** 新增行政区划结果通知 */
interface DivisionApplyResult {
/** 行政区划编号 */
divisionId: string;
/** 行政区划外部编号(供应商侧编号) */
divisionOuterId: string;
/** 新增结果 */
result: string;
}

/** 新增POI结果通知 */
interface PoiApplyResult {
/** POI编号 */
poiId: string;
/** POI外部编号(供应商侧编号) */
poiOuterId: string;
/** 新增结果 */
result: string;
}

/** 阿信退款回调消息 */
interface RefundCallBack {
/** 外部订单号 */
Expand Down Expand Up @@ -656,6 +676,25 @@ declare namespace Taobao.Fliggy {
}
}

/** 阿信消息通知前台类目 */
declare namespace Taobao.Fsc {
/** 线路订单状态变更通知 */
interface RouteOrderStatusChange {
/** 阿信订单id */
orderId: string;
/** 1-已下单 2-已确认 3-已退团 4-已取消 5-拒绝确认,驳回 14-交易成功 */
orderStatus: string;
/** 外部团id String */
outProjectId: string;
/** 付款状态1-未付款 2-已付定金3-已付款(代表全部付款完成) 4-已结算完成 5-已关闭 */
payStatus: string;
/** 供应商id */
supplierId: string;
/** 供应商订单号id */
supplierOrderId: string;
}
}

/** 淘宝交易 */
declare namespace Taobao.Fuwu {
/** 以旧换新资金变更通知消息 */
Expand Down

0 comments on commit 99717a1

Please sign in to comment.