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

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.
@@ -22,6 +22,7 @@ declare class RoomServiceClass extends BaseService implements RoomService.BaseCo
22
22
  searchByName(request: RoomService.Request.SearchByName): Promise<RoomService.Response.SearchByName>;
23
23
  getBasicInfo(request: RoomService.Request.GetBasicInfo): Promise<RoomService.Response.GetBasicInfo>;
24
24
  userViewDetail(request: RoomService.Request.UserViewDetail): Promise<RoomService.Response.UserViewDetail>;
25
+ exportWatchHistory(request: RoomService.Request.ExportWatchHistory): Promise<RoomService.Response.ExportWatchHistory>;
25
26
  }
26
27
  export declare const roomService: RoomServiceClass;
27
28
  export default roomService;
@@ -72,6 +72,9 @@ let RoomServiceClass = class RoomServiceClass extends BaseService_1.default {
72
72
  userViewDetail(request) {
73
73
  return (0, http_1.callApi)(this.getApiUrl(this.userViewDetail), request);
74
74
  }
75
+ exportWatchHistory(request) {
76
+ return (0, http_1.callApi)(this.getApiUrl(this.exportWatchHistory), request);
77
+ }
75
78
  };
76
79
  __decorate([
77
80
  (0, tsoa_1.OperationId)('同步活动'),
@@ -153,6 +156,11 @@ __decorate([
153
156
  (0, tsoa_1.Post)('user-view-detail'),
154
157
  __param(0, (0, tsoa_1.Body)())
155
158
  ], RoomServiceClass.prototype, "userViewDetail", null);
159
+ __decorate([
160
+ (0, tsoa_1.OperationId)('导出用户观看历史'),
161
+ (0, tsoa_1.Post)('export-watch-history'),
162
+ __param(0, (0, tsoa_1.Body)())
163
+ ], RoomServiceClass.prototype, "exportWatchHistory", null);
156
164
  RoomServiceClass = __decorate([
157
165
  (0, tsoa_1.Route)('room'),
158
166
  (0, tsoa_1.Tags)('Room')
@@ -139,6 +139,25 @@ export declare namespace RoomService {
139
139
  /** 每页数量 */
140
140
  pageSize: number;
141
141
  }
142
+ /**
143
+ * 导出用户观看历史
144
+ */
145
+ interface ExportWatchHistory {
146
+ /** 用户ID,必填 */
147
+ userId: string;
148
+ /** 直播开始时间-起(毫秒时间戳),选填 */
149
+ startTime?: number;
150
+ /** 直播开始时间-止(毫秒时间戳),选填 */
151
+ endTime?: number;
152
+ /** 直播间标题(模糊搜索),选填 */
153
+ liveTitle?: string;
154
+ /** 直播间ID(精准匹配),选填 */
155
+ liveStreamRoomId?: string;
156
+ /** 页码,从 0 开始,默认 0 */
157
+ pageIndex: number;
158
+ /** 每页数量 */
159
+ pageSize: number;
160
+ }
142
161
  }
143
162
  namespace Response {
144
163
  /**
@@ -288,6 +307,20 @@ export declare namespace RoomService {
288
307
  list: UserViewDetailItem[];
289
308
  total: number;
290
309
  }
310
+ /**
311
+ * 批量导出响应
312
+ */
313
+ interface IBatchExport {
314
+ /** 表头 */
315
+ headers: string[];
316
+ /** 数据 */
317
+ data: (string | number)[][];
318
+ }
319
+ /**
320
+ * 导出用户观看历史响应
321
+ */
322
+ interface ExportWatchHistory extends IBatchExport {
323
+ }
291
324
  }
292
325
  interface BaseController {
293
326
  sync(request: ListActivityAPIRequest): Promise<ListActivityAPIResponse>;
@@ -318,5 +351,9 @@ export declare namespace RoomService {
318
351
  * 用户直播间观看详情查询
319
352
  */
320
353
  userViewDetail(request: Request.UserViewDetail, req?: FastifyRequest): Promise<Response.UserViewDetail>;
354
+ /**
355
+ * 导出用户观看历史
356
+ */
357
+ exportWatchHistory(request: Request.ExportWatchHistory, req?: FastifyRequest): Promise<Response.ExportWatchHistory>;
321
358
  }
322
359
  }
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.60",
3
+ "version": "0.1.61",
4
4
  "description": "EcommerceClientBackendService Node.js SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",