@be-link/ecommerce-client-backend-service-node-sdk 0.1.58 → 0.1.60

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.
@@ -142,8 +142,10 @@ export declare namespace DataService {
142
142
  userId?: string;
143
143
  /** 页码,从0开始 */
144
144
  pageIndex: number;
145
- /** 每页数量,默认20,最大100 */
145
+ /** 每页数量,默认20,最大1000 */
146
146
  pageSize?: number;
147
+ /** 累计观看时长最小值(毫秒),筛选观看时长大于等于该值的观众 */
148
+ minCumulativeViewDuration?: number;
147
149
  }
148
150
  /**
149
151
  * 直播间统计查询
@@ -21,6 +21,7 @@ declare class RoomServiceClass extends BaseService implements RoomService.BaseCo
21
21
  storeLiveStreamRule(request: RoomService.Request.StoreLiveStreamRule): Promise<RoomService.Response.StoreLiveStreamRule>;
22
22
  searchByName(request: RoomService.Request.SearchByName): Promise<RoomService.Response.SearchByName>;
23
23
  getBasicInfo(request: RoomService.Request.GetBasicInfo): Promise<RoomService.Response.GetBasicInfo>;
24
+ userViewDetail(request: RoomService.Request.UserViewDetail): Promise<RoomService.Response.UserViewDetail>;
24
25
  }
25
26
  export declare const roomService: RoomServiceClass;
26
27
  export default roomService;
@@ -69,6 +69,9 @@ let RoomServiceClass = class RoomServiceClass extends BaseService_1.default {
69
69
  getBasicInfo(request) {
70
70
  return (0, http_1.callApi)(this.getApiUrl(this.getBasicInfo), request);
71
71
  }
72
+ userViewDetail(request) {
73
+ return (0, http_1.callApi)(this.getApiUrl(this.userViewDetail), request);
74
+ }
72
75
  };
73
76
  __decorate([
74
77
  (0, tsoa_1.OperationId)('同步活动'),
@@ -145,6 +148,11 @@ __decorate([
145
148
  (0, tsoa_1.Post)('get-basic-info'),
146
149
  __param(0, (0, tsoa_1.Body)())
147
150
  ], RoomServiceClass.prototype, "getBasicInfo", null);
151
+ __decorate([
152
+ (0, tsoa_1.OperationId)('用户直播间观看详情查询'),
153
+ (0, tsoa_1.Post)('user-view-detail'),
154
+ __param(0, (0, tsoa_1.Body)())
155
+ ], RoomServiceClass.prototype, "userViewDetail", null);
148
156
  RoomServiceClass = __decorate([
149
157
  (0, tsoa_1.Route)('room'),
150
158
  (0, tsoa_1.Tags)('Room')
@@ -120,6 +120,25 @@ export declare namespace RoomService {
120
120
  /** 直播间ID列表 */
121
121
  ids: string[];
122
122
  }
123
+ /**
124
+ * 用户直播间观看详情查询
125
+ */
126
+ interface UserViewDetail {
127
+ /** 用户ID,必填 */
128
+ userId: string;
129
+ /** 直播开始时间-起(毫秒时间戳),选填 */
130
+ startTime?: number;
131
+ /** 直播开始时间-止(毫秒时间戳),选填 */
132
+ endTime?: number;
133
+ /** 直播间标题(模糊搜索),选填 */
134
+ liveTitle?: string;
135
+ /** 直播间ID(精准匹配),选填 */
136
+ liveStreamRoomId?: string;
137
+ /** 页码,从 0 开始,默认 0 */
138
+ pageIndex: number;
139
+ /** 每页数量 */
140
+ pageSize: number;
141
+ }
123
142
  }
124
143
  namespace Response {
125
144
  /**
@@ -229,6 +248,46 @@ export declare namespace RoomService {
229
248
  interface GetBasicInfo {
230
249
  list: RoomBasicInfo[];
231
250
  }
251
+ /**
252
+ * 用户直播间观看详情项
253
+ */
254
+ interface UserViewDetailItem {
255
+ /** 直播间 ID */
256
+ liveStreamRoomId: string;
257
+ /** 直播间标题 */
258
+ liveTitle: string;
259
+ /** 直播开始时间 (格式 "YYYY-MM-DD HH:mm:ss") */
260
+ liveStartTime: string;
261
+ /** 看播时长 (格式 "X小时X分" 或 "X分钟") */
262
+ watchDuration: string;
263
+ /** 首次进入时间 (格式 "YYYY-MM-DD HH:mm:ss") */
264
+ firstEntryTime: string;
265
+ /** 最后进入时间 (格式 "YYYY-MM-DD HH:mm:ss") */
266
+ lastEntryTime: string;
267
+ /** 是否完播 (枚举值:"是" / "否") */
268
+ isCompleted: string;
269
+ /** 获得积分 (仅限直播营销活动积分) */
270
+ earnedPoints: number;
271
+ /** 获得券 (张数) */
272
+ earnedCoupons: number;
273
+ /** 下单笔数 */
274
+ orderCount: number;
275
+ /** 直播间下单金额 (元) */
276
+ orderAmount: number;
277
+ /** 7天累计下单金额 (元) */
278
+ totalSevenOrderAmount: number;
279
+ /** 最近下单时间 (格式 "YYYY-MM-DD HH:mm:ss") */
280
+ lastOrderTime: string;
281
+ /** 评论数 */
282
+ commentCount: number;
283
+ }
284
+ /**
285
+ * 用户直播间观看详情响应
286
+ */
287
+ interface UserViewDetail {
288
+ list: UserViewDetailItem[];
289
+ total: number;
290
+ }
232
291
  }
233
292
  interface BaseController {
234
293
  sync(request: ListActivityAPIRequest): Promise<ListActivityAPIResponse>;
@@ -255,5 +314,9 @@ export declare namespace RoomService {
255
314
  * 根据房间ID批量获取简要信息
256
315
  */
257
316
  getBasicInfo(request: Request.GetBasicInfo, req?: FastifyRequest): Promise<Response.GetBasicInfo>;
317
+ /**
318
+ * 用户直播间观看详情查询
319
+ */
320
+ userViewDetail(request: Request.UserViewDetail, req?: FastifyRequest): Promise<Response.UserViewDetail>;
258
321
  }
259
322
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/ecommerce-client-backend-service-node-sdk",
3
- "version": "0.1.58",
3
+ "version": "0.1.60",
4
4
  "description": "EcommerceClientBackendService Node.js SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",