@be-link/ecommerce-client-backend-service-node-sdk 0.1.4 → 0.1.5
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/modules/data/types.d.ts +31 -1
- package/package.json +1 -1
package/modules/data/types.d.ts
CHANGED
|
@@ -33,7 +33,6 @@ export declare namespace DataService {
|
|
|
33
33
|
/** 查询观看类型 */
|
|
34
34
|
viewType: ENUM.LIVE_STREAM_AUDIENCE.VIEW_TYPE;
|
|
35
35
|
/** 用户行为 */
|
|
36
|
-
action: ENUM.LIVE_STREAM_AUDIENCE.REPORT_ACTION;
|
|
37
36
|
/** 事件发生时间,毫秒时间戳 */
|
|
38
37
|
eventAt: number;
|
|
39
38
|
}
|
|
@@ -61,6 +60,13 @@ export declare namespace DataService {
|
|
|
61
60
|
/** 每页数量,默认20,最大100 */
|
|
62
61
|
pageSize?: number;
|
|
63
62
|
}
|
|
63
|
+
/**
|
|
64
|
+
* 直播间统计查询
|
|
65
|
+
*/
|
|
66
|
+
interface LiveStreamStatistics {
|
|
67
|
+
/** 直播间id */
|
|
68
|
+
liveStreamRoomId: string;
|
|
69
|
+
}
|
|
64
70
|
}
|
|
65
71
|
namespace Response {
|
|
66
72
|
/**
|
|
@@ -91,6 +97,9 @@ export declare namespace DataService {
|
|
|
91
97
|
list: Audience[];
|
|
92
98
|
total: number;
|
|
93
99
|
}
|
|
100
|
+
interface LiveStreamStatistics {
|
|
101
|
+
roomStatistics: RoomStatistics;
|
|
102
|
+
}
|
|
94
103
|
}
|
|
95
104
|
interface BaseController {
|
|
96
105
|
userLiveStreamRelation(request: Request.UserLiveStreamRelation, req?: FastifyRequest): Promise<void>;
|
|
@@ -100,6 +109,9 @@ export declare namespace DataService {
|
|
|
100
109
|
getAudienceList(request: Request.AudienceList, req?: FastifyRequest): Promise<Response.AudienceList>;
|
|
101
110
|
}
|
|
102
111
|
}
|
|
112
|
+
/**
|
|
113
|
+
* 观众
|
|
114
|
+
*/
|
|
103
115
|
export interface Audience {
|
|
104
116
|
/** 主播间id */
|
|
105
117
|
liveStreamRoomId: string;
|
|
@@ -128,3 +140,21 @@ export interface Audience {
|
|
|
128
140
|
/** 最后一次进入时间,毫秒时间戳 */
|
|
129
141
|
lastTime: number;
|
|
130
142
|
}
|
|
143
|
+
/**
|
|
144
|
+
* 直播间统计
|
|
145
|
+
*/
|
|
146
|
+
export interface RoomStatistics {
|
|
147
|
+
id: number;
|
|
148
|
+
liveStreamRoomId: string;
|
|
149
|
+
gmv: number;
|
|
150
|
+
actualReceivedAmount: number;
|
|
151
|
+
averageOrderAmount: string;
|
|
152
|
+
transactOrderCount: number;
|
|
153
|
+
orderUserCount: number;
|
|
154
|
+
orderConversionRate: string;
|
|
155
|
+
refundAmount: number;
|
|
156
|
+
refundUserCount: number;
|
|
157
|
+
pendingPaymentAmount: number;
|
|
158
|
+
salesVolume: number;
|
|
159
|
+
audience: number;
|
|
160
|
+
}
|