@be-link/ecommerce-client-backend-service-node-sdk 0.1.78 → 0.1.80
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.
|
@@ -8,6 +8,7 @@ declare class RoomDataServiceClass extends BaseService implements RoomDataServic
|
|
|
8
8
|
viewers(request: RoomDataService.Request.Viewers): Promise<RoomDataService.Response.Viewers>;
|
|
9
9
|
productSalesRanking(request: RoomDataService.Request.ProductSalesRanking): Promise<RoomDataService.Response.ProductSalesRanking>;
|
|
10
10
|
getViewerCountForSales(request: RoomDataService.Request.GetViewerCountForSales): Promise<RoomDataService.Response.GetViewerCountForSales>;
|
|
11
|
+
getDailyViewerCountForSales(request: RoomDataService.Request.GetDailyViewerCountForSales): Promise<RoomDataService.Response.GetDailyViewerCountForSales>;
|
|
11
12
|
}
|
|
12
13
|
export declare const roomDataService: RoomDataServiceClass;
|
|
13
14
|
export default roomDataService;
|
|
@@ -39,6 +39,9 @@ let RoomDataServiceClass = class RoomDataServiceClass extends BaseService_1.defa
|
|
|
39
39
|
getViewerCountForSales(request) {
|
|
40
40
|
return (0, http_1.callApi)(this.getApiUrl(this.getViewerCountForSales), request);
|
|
41
41
|
}
|
|
42
|
+
getDailyViewerCountForSales(request) {
|
|
43
|
+
return (0, http_1.callApi)(this.getApiUrl(this.getDailyViewerCountForSales), request);
|
|
44
|
+
}
|
|
42
45
|
};
|
|
43
46
|
__decorate([
|
|
44
47
|
(0, tsoa_1.OperationId)('直播间列表接口(门店维度)'),
|
|
@@ -70,6 +73,11 @@ __decorate([
|
|
|
70
73
|
(0, tsoa_1.Post)('get-viewer-count-for-sales'),
|
|
71
74
|
__param(0, (0, tsoa_1.Body)())
|
|
72
75
|
], RoomDataServiceClass.prototype, "getViewerCountForSales", null);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, tsoa_1.OperationId)('按天查询看播人数(用于销售看板)'),
|
|
78
|
+
(0, tsoa_1.Post)('get-daily-viewer-count-for-sales'),
|
|
79
|
+
__param(0, (0, tsoa_1.Body)())
|
|
80
|
+
], RoomDataServiceClass.prototype, "getDailyViewerCountForSales", null);
|
|
73
81
|
RoomDataServiceClass = __decorate([
|
|
74
82
|
(0, tsoa_1.Route)('room-data'),
|
|
75
83
|
(0, tsoa_1.Tags)('RoomData')
|
|
@@ -56,6 +56,19 @@ export declare namespace RoomDataService {
|
|
|
56
56
|
/** 门店ID列表(可选,为空或null表示所有门店) */
|
|
57
57
|
storeIds?: string[] | null;
|
|
58
58
|
}
|
|
59
|
+
/**
|
|
60
|
+
* 按天查询看播人数(用于销售看板)
|
|
61
|
+
* - 按自然日拆分,统计每天的看播人数
|
|
62
|
+
* - 时间范围仍然使用毫秒级时间戳
|
|
63
|
+
*/
|
|
64
|
+
interface GetDailyViewerCountForSales {
|
|
65
|
+
/** 开始日期(毫秒级时间戳) */
|
|
66
|
+
startDate: number;
|
|
67
|
+
/** 结束日期(毫秒级时间戳) */
|
|
68
|
+
endDate: number;
|
|
69
|
+
/** 门店ID列表(可选,为空或null表示所有门店) */
|
|
70
|
+
storeIds?: string[] | null;
|
|
71
|
+
}
|
|
59
72
|
}
|
|
60
73
|
namespace Response {
|
|
61
74
|
interface RoomItem {
|
|
@@ -63,6 +76,7 @@ export declare namespace RoomDataService {
|
|
|
63
76
|
name: string;
|
|
64
77
|
status: number;
|
|
65
78
|
coverImage: string;
|
|
79
|
+
shareCover: string;
|
|
66
80
|
verticalCoverImage: string;
|
|
67
81
|
liveTime: number;
|
|
68
82
|
endTime: number;
|
|
@@ -120,6 +134,22 @@ export declare namespace RoomDataService {
|
|
|
120
134
|
interface GetViewerCountForSales {
|
|
121
135
|
viewerCount: number;
|
|
122
136
|
}
|
|
137
|
+
/**
|
|
138
|
+
* 按天看播人数项
|
|
139
|
+
*/
|
|
140
|
+
interface DailyViewerCountItem {
|
|
141
|
+
/** 日期(当天0点的毫秒级时间戳) */
|
|
142
|
+
date: number;
|
|
143
|
+
/** 当天看播人数 */
|
|
144
|
+
viewerCount: number;
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* 按天查询看播人数响应
|
|
148
|
+
*/
|
|
149
|
+
interface GetDailyViewerCountForSales {
|
|
150
|
+
/** 每天的看播人数列表,按日期升序排列 */
|
|
151
|
+
list: DailyViewerCountItem[];
|
|
152
|
+
}
|
|
123
153
|
}
|
|
124
154
|
interface BaseController {
|
|
125
155
|
listByStoreWithRule(request: Request.ListByStoreWithRule, req?: FastifyRequest): Promise<Response.ListByStoreWithRule>;
|
|
@@ -128,5 +158,6 @@ export declare namespace RoomDataService {
|
|
|
128
158
|
viewers(request: Request.Viewers, req?: FastifyRequest): Promise<Response.Viewers>;
|
|
129
159
|
productSalesRanking(request: Request.ProductSalesRanking, req?: FastifyRequest): Promise<Response.ProductSalesRanking>;
|
|
130
160
|
getViewerCountForSales(request: Request.GetViewerCountForSales, req?: FastifyRequest): Promise<Response.GetViewerCountForSales>;
|
|
161
|
+
getDailyViewerCountForSales(request: Request.GetDailyViewerCountForSales, req?: FastifyRequest): Promise<Response.GetDailyViewerCountForSales>;
|
|
131
162
|
}
|
|
132
163
|
}
|
|
@@ -8,6 +8,8 @@ declare class UserDataServiceClass extends BaseService implements UserDataServic
|
|
|
8
8
|
exportLiveRoomUserList(request: UserDataService.Request.ExportLiveRoomUserList): Promise<UserDataService.Response.ExportLiveRoomUserList>;
|
|
9
9
|
getUserLiveWatchSummary(request: UserDataService.Request.GetUserLiveWatchSummary): Promise<UserDataService.Response.GetUserLiveWatchSummary>;
|
|
10
10
|
getUserLiveWatchCalendar(request: UserDataService.Request.GetUserLiveWatchCalendar): Promise<UserDataService.Response.GetUserLiveWatchCalendar>;
|
|
11
|
+
replaceThirdPartyUserIdToUserId(request: UserDataService.Request.ReplaceThirdPartyUserIdToUserId): Promise<UserDataService.Response.ReplaceThirdPartyUserIdToUserId>;
|
|
12
|
+
getStoreUserSummary(request: UserDataService.Request.GetStoreUserSummary): Promise<UserDataService.Response.GetStoreUserSummary>;
|
|
11
13
|
}
|
|
12
14
|
export declare const userDataService: UserDataServiceClass;
|
|
13
15
|
export default userDataService;
|
|
@@ -39,6 +39,12 @@ let UserDataServiceClass = class UserDataServiceClass extends BaseService_1.defa
|
|
|
39
39
|
getUserLiveWatchCalendar(request) {
|
|
40
40
|
return (0, http_1.callApi)(this.getApiUrl(this.getUserLiveWatchCalendar), request);
|
|
41
41
|
}
|
|
42
|
+
replaceThirdPartyUserIdToUserId(request) {
|
|
43
|
+
return (0, http_1.callApi)(this.getApiUrl(this.replaceThirdPartyUserIdToUserId), request);
|
|
44
|
+
}
|
|
45
|
+
getStoreUserSummary(request) {
|
|
46
|
+
return (0, http_1.callApi)(this.getApiUrl(this.getStoreUserSummary), request);
|
|
47
|
+
}
|
|
42
48
|
};
|
|
43
49
|
__decorate([
|
|
44
50
|
(0, tsoa_1.OperationId)('获取用户列表'),
|
|
@@ -70,6 +76,16 @@ __decorate([
|
|
|
70
76
|
(0, tsoa_1.Post)('get-user-live-watch-calendar'),
|
|
71
77
|
__param(0, (0, tsoa_1.Body)())
|
|
72
78
|
], UserDataServiceClass.prototype, "getUserLiveWatchCalendar", null);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, tsoa_1.OperationId)('thirdPartyUserId置换userId'),
|
|
81
|
+
(0, tsoa_1.Post)('replace-third-party-user-id-to-user-id'),
|
|
82
|
+
__param(0, (0, tsoa_1.Body)())
|
|
83
|
+
], UserDataServiceClass.prototype, "replaceThirdPartyUserIdToUserId", null);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, tsoa_1.OperationId)('获取门店用户汇总信息'),
|
|
86
|
+
(0, tsoa_1.Post)('get-store-user-summary'),
|
|
87
|
+
__param(0, (0, tsoa_1.Body)())
|
|
88
|
+
], UserDataServiceClass.prototype, "getStoreUserSummary", null);
|
|
73
89
|
UserDataServiceClass = __decorate([
|
|
74
90
|
(0, tsoa_1.Route)('userData'),
|
|
75
91
|
(0, tsoa_1.Tags)('UserData')
|
|
@@ -107,6 +107,24 @@ export declare namespace UserDataService {
|
|
|
107
107
|
/** 用户ID */
|
|
108
108
|
userId: string;
|
|
109
109
|
}
|
|
110
|
+
/**
|
|
111
|
+
* thirdPartyUserId 置换 userId
|
|
112
|
+
*/
|
|
113
|
+
interface ReplaceThirdPartyUserIdToUserId {
|
|
114
|
+
/** 第三方用户ID列表,最大1000个 */
|
|
115
|
+
thirdPartyUserIds: number[];
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* 获取门店用户汇总信息
|
|
119
|
+
* - 门店客户数:UserExtraInfo 表中指定 storeId 的用户数量
|
|
120
|
+
* - 黑钻用户数:UserExtraInfo 表中指定 storeId 且 memberLevel 为黑钻等级的用户数量
|
|
121
|
+
*/
|
|
122
|
+
interface GetStoreUserSummary {
|
|
123
|
+
/** 门店ID */
|
|
124
|
+
storeId: string;
|
|
125
|
+
/** 黑钻会员等级 */
|
|
126
|
+
blackDiamondMemberLevel: string;
|
|
127
|
+
}
|
|
110
128
|
}
|
|
111
129
|
namespace Response {
|
|
112
130
|
/**
|
|
@@ -150,6 +168,15 @@ export declare namespace UserDataService {
|
|
|
150
168
|
*/
|
|
151
169
|
interface ExportLiveRoomUserList extends IBatchExport {
|
|
152
170
|
}
|
|
171
|
+
/**
|
|
172
|
+
* thirdPartyUserId 置换 userId 响应
|
|
173
|
+
*/
|
|
174
|
+
interface ReplaceThirdPartyUserIdToUserId {
|
|
175
|
+
[thirdPartyUserId: string]: {
|
|
176
|
+
userId: string;
|
|
177
|
+
storeId: string;
|
|
178
|
+
};
|
|
179
|
+
}
|
|
153
180
|
/**
|
|
154
181
|
* 获取用户看播汇总数据响应
|
|
155
182
|
*/
|
|
@@ -171,6 +198,15 @@ export declare namespace UserDataService {
|
|
|
171
198
|
*/
|
|
172
199
|
days: UserLiveWatchDayItem[];
|
|
173
200
|
}
|
|
201
|
+
/**
|
|
202
|
+
* 获取门店用户汇总信息响应
|
|
203
|
+
*/
|
|
204
|
+
interface GetStoreUserSummary {
|
|
205
|
+
/** 门店客户数 */
|
|
206
|
+
storeCustomerCount: number;
|
|
207
|
+
/** 黑钻用户数 */
|
|
208
|
+
blackDiamondUserCount: number;
|
|
209
|
+
}
|
|
174
210
|
}
|
|
175
211
|
/**
|
|
176
212
|
* 用户看播日历 - 单日数据
|
|
@@ -219,8 +255,10 @@ export declare namespace UserDataService {
|
|
|
219
255
|
exportUserList(request: Request.ExportUserList, req?: FastifyRequest): Promise<Response.ExportUserList>;
|
|
220
256
|
getLiveRoomUserList(request: Request.GetLiveRoomUserList, req?: FastifyRequest): Promise<Response.GetLiveRoomUserList>;
|
|
221
257
|
exportLiveRoomUserList(request: Request.ExportLiveRoomUserList, req?: FastifyRequest): Promise<Response.ExportLiveRoomUserList>;
|
|
258
|
+
replaceThirdPartyUserIdToUserId(request: Request.ReplaceThirdPartyUserIdToUserId, req?: FastifyRequest): Promise<Response.ReplaceThirdPartyUserIdToUserId>;
|
|
222
259
|
getUserLiveWatchSummary(request: Request.GetUserLiveWatchSummary, req?: FastifyRequest): Promise<Response.GetUserLiveWatchSummary>;
|
|
223
260
|
getUserLiveWatchCalendar(request: Request.GetUserLiveWatchCalendar, req?: FastifyRequest): Promise<Response.GetUserLiveWatchCalendar>;
|
|
261
|
+
getStoreUserSummary(request: Request.GetStoreUserSummary, req?: FastifyRequest): Promise<Response.GetStoreUserSummary>;
|
|
224
262
|
}
|
|
225
263
|
}
|
|
226
264
|
/**
|