tmc.js 0.3.0

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/jae.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ /** 导购平台 */
2
+ declare namespace Jae.Trade {
3
+ /** JAE导购平台成交记录消息 */
4
+ interface PaidSuccessed {
5
+ }
6
+ }
package/types/lst.d.ts ADDED
@@ -0,0 +1,26 @@
1
+ /** 零售通_公共 */
2
+ declare namespace Lst.Supplier {
3
+ /** 零售通广播极速退款消息 */
4
+ interface BroadcastFastRefundMessage {
5
+ /** 主订单id */
6
+ main_order_id: string;
7
+ /** 退款单id */
8
+ refund_id: string;
9
+ /** 卖家登录id */
10
+ seller_login_id: string;
11
+ /** 子订单id */
12
+ sub_order_ids: string;
13
+ }
14
+
15
+ /** 品牌商极速退款消息创建 */
16
+ interface FastRefundMessageCreate {
17
+ /** 主订单id */
18
+ main_order_id: string;
19
+ /** 退款单id */
20
+ refund_id: string;
21
+ /** 卖家登录id */
22
+ seller_login_id: string;
23
+ /** 子订单id列表 */
24
+ sub_order_ids: string;
25
+ }
26
+ }
@@ -0,0 +1,20 @@
1
+ declare interface Message {
2
+ protocolVersion: number;
3
+ messageType: number;
4
+ statusCode?: number;
5
+ statusPhrase?: string;
6
+ flag?: number;
7
+ token?: string;
8
+ content?: MessageContent;
9
+ }
10
+
11
+ declare interface MessageContent {
12
+ __kind?: number;
13
+ id?: number | bigint;
14
+ content?: string;
15
+ }
16
+
17
+ namespace Message {
18
+ export class Encoder {}
19
+ export class Decoder {}
20
+ }