@be-link/ecommerce-client-backend-service-node-sdk 0.1.79 → 0.1.81

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.
@@ -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
+ getRoomTagValues(request: RoomService.Request.GetRoomTagValues): Promise<RoomService.Response.GetRoomTagValues>;
24
25
  userViewDetail(request: RoomService.Request.UserViewDetail): Promise<RoomService.Response.UserViewDetail>;
25
26
  exportWatchHistory(request: RoomService.Request.ExportWatchHistory): Promise<RoomService.Response.ExportWatchHistory>;
26
27
  }
@@ -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
+ getRoomTagValues(request) {
73
+ return (0, http_1.callApi)(this.getApiUrl(this.getRoomTagValues), request);
74
+ }
72
75
  userViewDetail(request) {
73
76
  return (0, http_1.callApi)(this.getApiUrl(this.userViewDetail), request);
74
77
  }
@@ -151,6 +154,11 @@ __decorate([
151
154
  (0, tsoa_1.Post)('get-basic-info'),
152
155
  __param(0, (0, tsoa_1.Body)())
153
156
  ], RoomServiceClass.prototype, "getBasicInfo", null);
157
+ __decorate([
158
+ (0, tsoa_1.OperationId)('根据直播间ID列表查询对应的标签值'),
159
+ (0, tsoa_1.Post)('get-room-tag-values'),
160
+ __param(0, (0, tsoa_1.Body)())
161
+ ], RoomServiceClass.prototype, "getRoomTagValues", null);
154
162
  __decorate([
155
163
  (0, tsoa_1.OperationId)('用户直播间观看详情查询'),
156
164
  (0, tsoa_1.Post)('user-view-detail'),
@@ -120,6 +120,13 @@ export declare namespace RoomService {
120
120
  /** 直播间ID列表 */
121
121
  ids: string[];
122
122
  }
123
+ /**
124
+ * 根据直播间ID列表查询对应的标签值
125
+ */
126
+ interface GetRoomTagValues {
127
+ /** 直播间ID列表 */
128
+ ids: string[];
129
+ }
123
130
  /**
124
131
  * 用户直播间观看详情查询
125
132
  */
@@ -267,6 +274,21 @@ export declare namespace RoomService {
267
274
  interface GetBasicInfo {
268
275
  list: RoomBasicInfo[];
269
276
  }
277
+ /**
278
+ * 直播间ID与其标签值项
279
+ */
280
+ interface RoomTagValuesItem {
281
+ /** 直播间ID */
282
+ liveStreamRoomId: string;
283
+ /** 该直播间对应的 tag 表 value 列表 */
284
+ values: string[];
285
+ }
286
+ /**
287
+ * 根据直播间ID列表查询标签值响应
288
+ */
289
+ interface GetRoomTagValues {
290
+ list: RoomTagValuesItem[];
291
+ }
270
292
  /**
271
293
  * 用户直播间观看详情项
272
294
  */
@@ -349,6 +371,10 @@ export declare namespace RoomService {
349
371
  * 根据房间ID批量获取简要信息
350
372
  */
351
373
  getBasicInfo(request: Request.GetBasicInfo, req?: FastifyRequest): Promise<Response.GetBasicInfo>;
374
+ /**
375
+ * 根据直播间ID列表查询对应的标签值
376
+ */
377
+ getRoomTagValues(request: Request.GetRoomTagValues, req?: FastifyRequest): Promise<Response.GetRoomTagValues>;
352
378
  /**
353
379
  * 用户直播间观看详情查询
354
380
  */
@@ -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
  }
@@ -9,6 +9,7 @@ declare class UserDataServiceClass extends BaseService implements UserDataServic
9
9
  getUserLiveWatchSummary(request: UserDataService.Request.GetUserLiveWatchSummary): Promise<UserDataService.Response.GetUserLiveWatchSummary>;
10
10
  getUserLiveWatchCalendar(request: UserDataService.Request.GetUserLiveWatchCalendar): Promise<UserDataService.Response.GetUserLiveWatchCalendar>;
11
11
  replaceThirdPartyUserIdToUserId(request: UserDataService.Request.ReplaceThirdPartyUserIdToUserId): Promise<UserDataService.Response.ReplaceThirdPartyUserIdToUserId>;
12
+ getStoreUserSummary(request: UserDataService.Request.GetStoreUserSummary): Promise<UserDataService.Response.GetStoreUserSummary>;
12
13
  }
13
14
  export declare const userDataService: UserDataServiceClass;
14
15
  export default userDataService;
@@ -42,6 +42,9 @@ let UserDataServiceClass = class UserDataServiceClass extends BaseService_1.defa
42
42
  replaceThirdPartyUserIdToUserId(request) {
43
43
  return (0, http_1.callApi)(this.getApiUrl(this.replaceThirdPartyUserIdToUserId), request);
44
44
  }
45
+ getStoreUserSummary(request) {
46
+ return (0, http_1.callApi)(this.getApiUrl(this.getStoreUserSummary), request);
47
+ }
45
48
  };
46
49
  __decorate([
47
50
  (0, tsoa_1.OperationId)('获取用户列表'),
@@ -78,6 +81,11 @@ __decorate([
78
81
  (0, tsoa_1.Post)('replace-third-party-user-id-to-user-id'),
79
82
  __param(0, (0, tsoa_1.Body)())
80
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);
81
89
  UserDataServiceClass = __decorate([
82
90
  (0, tsoa_1.Route)('userData'),
83
91
  (0, tsoa_1.Tags)('UserData')
@@ -114,6 +114,17 @@ export declare namespace UserDataService {
114
114
  /** 第三方用户ID列表,最大1000个 */
115
115
  thirdPartyUserIds: number[];
116
116
  }
117
+ /**
118
+ * 获取门店用户汇总信息
119
+ * - 门店客户数:UserExtraInfo 表中指定 storeId 的用户数量
120
+ * - 黑钻用户数:UserExtraInfo 表中指定 storeId 且 memberLevel 为黑钻等级的用户数量
121
+ */
122
+ interface GetStoreUserSummary {
123
+ /** 门店ID */
124
+ storeId: string;
125
+ /** 黑钻会员等级 */
126
+ blackDiamondMemberLevel: string;
127
+ }
117
128
  }
118
129
  namespace Response {
119
130
  /**
@@ -157,6 +168,15 @@ export declare namespace UserDataService {
157
168
  */
158
169
  interface ExportLiveRoomUserList extends IBatchExport {
159
170
  }
171
+ /**
172
+ * thirdPartyUserId 置换 userId 响应
173
+ */
174
+ interface ReplaceThirdPartyUserIdToUserId {
175
+ [thirdPartyUserId: string]: {
176
+ userId: string;
177
+ storeId: string;
178
+ };
179
+ }
160
180
  /**
161
181
  * 获取用户看播汇总数据响应
162
182
  */
@@ -179,13 +199,13 @@ export declare namespace UserDataService {
179
199
  days: UserLiveWatchDayItem[];
180
200
  }
181
201
  /**
182
- * thirdPartyUserId 置换 userId 响应
202
+ * 获取门店用户汇总信息响应
183
203
  */
184
- interface ReplaceThirdPartyUserIdToUserId {
185
- [thirdPartyUserId: string]: {
186
- userId: string;
187
- storeId: string;
188
- };
204
+ interface GetStoreUserSummary {
205
+ /** 门店客户数 */
206
+ storeCustomerCount: number;
207
+ /** 黑钻用户数 */
208
+ blackDiamondUserCount: number;
189
209
  }
190
210
  }
191
211
  /**
@@ -235,9 +255,10 @@ export declare namespace UserDataService {
235
255
  exportUserList(request: Request.ExportUserList, req?: FastifyRequest): Promise<Response.ExportUserList>;
236
256
  getLiveRoomUserList(request: Request.GetLiveRoomUserList, req?: FastifyRequest): Promise<Response.GetLiveRoomUserList>;
237
257
  exportLiveRoomUserList(request: Request.ExportLiveRoomUserList, req?: FastifyRequest): Promise<Response.ExportLiveRoomUserList>;
258
+ replaceThirdPartyUserIdToUserId(request: Request.ReplaceThirdPartyUserIdToUserId, req?: FastifyRequest): Promise<Response.ReplaceThirdPartyUserIdToUserId>;
238
259
  getUserLiveWatchSummary(request: Request.GetUserLiveWatchSummary, req?: FastifyRequest): Promise<Response.GetUserLiveWatchSummary>;
239
260
  getUserLiveWatchCalendar(request: Request.GetUserLiveWatchCalendar, req?: FastifyRequest): Promise<Response.GetUserLiveWatchCalendar>;
240
- replaceThirdPartyUserIdToUserId(request: Request.ReplaceThirdPartyUserIdToUserId, req?: FastifyRequest): Promise<Response.ReplaceThirdPartyUserIdToUserId>;
261
+ getStoreUserSummary(request: Request.GetStoreUserSummary, req?: FastifyRequest): Promise<Response.GetStoreUserSummary>;
241
262
  }
242
263
  }
243
264
  /**
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.79",
3
+ "version": "0.1.81",
4
4
  "description": "EcommerceClientBackendService Node.js SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",