@be-link/ecommerce-client-backend-service-node-sdk 0.1.12 → 0.1.14

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/enum.d.ts CHANGED
@@ -212,7 +212,9 @@ export declare namespace ENUM {
212
212
  * 主题
213
213
  */
214
214
  enum TOPIC {
215
- UserReport = "user-report"
215
+ UserReport = "user-report",
216
+ TotalDuration = "total-duration",
217
+ TaskTotalDuration = "task-total-duration"
216
218
  }
217
219
  /**
218
220
  * 路由键
@@ -224,7 +226,9 @@ export declare namespace ENUM {
224
226
  * 队列
225
227
  */
226
228
  enum QUEUE {
227
- UserReportQueue = "user-report-action"
229
+ UserReportQueue = "user-report-action",
230
+ TotalDuration = "total-duration-queue",
231
+ TaskTotalDuration = "task-total-duration-queue"
228
232
  }
229
233
  }
230
234
  /**
package/enum.js CHANGED
@@ -242,6 +242,8 @@ var ENUM;
242
242
  let TOPIC;
243
243
  (function (TOPIC) {
244
244
  TOPIC["UserReport"] = "user-report";
245
+ TOPIC["TotalDuration"] = "total-duration";
246
+ TOPIC["TaskTotalDuration"] = "task-total-duration";
245
247
  })(TOPIC = MQ.TOPIC || (MQ.TOPIC = {}));
246
248
  /**
247
249
  * 路由键
@@ -256,6 +258,8 @@ var ENUM;
256
258
  let QUEUE;
257
259
  (function (QUEUE) {
258
260
  QUEUE["UserReportQueue"] = "user-report-action";
261
+ QUEUE["TotalDuration"] = "total-duration-queue";
262
+ QUEUE["TaskTotalDuration"] = "task-total-duration-queue";
259
263
  })(QUEUE = MQ.QUEUE || (MQ.QUEUE = {}));
260
264
  })(MQ = ENUM.MQ || (ENUM.MQ = {}));
261
265
  /**
@@ -12,6 +12,8 @@ declare class DataServiceClass extends BaseService implements DataService.BaseCo
12
12
  getLiveStreamStatistics(request: DataService.Request.LiveStreamStatistics): Promise<DataService.Response.LiveStreamStatistics>;
13
13
  /** 直播间商品销量排行查询 */
14
14
  getLiveStreamProductTop(request: DataService.Request.LiveStreamProductTop): Promise<DataService.Response.LiveStreamProductTop>;
15
+ /** 观众导出数据 */
16
+ audienceExport(): Promise<DataService.Response.AudienceExport>;
15
17
  }
16
18
  export declare const dataService: DataServiceClass;
17
19
  export default dataService;
@@ -45,6 +45,10 @@ let DataServiceClass = class DataServiceClass extends BaseService_1.default {
45
45
  getLiveStreamProductTop(request) {
46
46
  return (0, http_1.callApi)(this.getApiUrl(this.getLiveStreamProductTop), request);
47
47
  }
48
+ /** 观众导出数据 */
49
+ audienceExport() {
50
+ return (0, http_1.callApi)(this.getApiUrl(this.audienceExport), undefined);
51
+ }
48
52
  };
49
53
  __decorate([
50
54
  (0, tsoa_1.OperationId)('获取用户观看时长'),
@@ -81,6 +85,10 @@ __decorate([
81
85
  (0, tsoa_1.Post)('get-live-stream-product-top'),
82
86
  __param(0, (0, tsoa_1.Body)())
83
87
  ], DataServiceClass.prototype, "getLiveStreamProductTop", null);
88
+ __decorate([
89
+ (0, tsoa_1.OperationId)('观众导出数据'),
90
+ (0, tsoa_1.Post)('audience-export')
91
+ ], DataServiceClass.prototype, "audienceExport", null);
84
92
  DataServiceClass = __decorate([
85
93
  (0, tsoa_1.Route)('data'),
86
94
  (0, tsoa_1.Tags)('Data')
@@ -116,6 +116,13 @@ export declare namespace DataService {
116
116
  interface LiveStreamProductTop {
117
117
  list: Product[];
118
118
  }
119
+ /**
120
+ * 观众导出数据响应
121
+ */
122
+ interface AudienceExport {
123
+ headers: string[];
124
+ data: string[][];
125
+ }
119
126
  }
120
127
  interface BaseController {
121
128
  userLiveStreamRelation(request: Request.UserLiveStreamRelation, req?: FastifyRequest): Promise<void>;
@@ -125,6 +132,7 @@ export declare namespace DataService {
125
132
  getAudienceList(request: Request.AudienceList, req?: FastifyRequest): Promise<Response.AudienceList>;
126
133
  getLiveStreamStatistics(request: Request.LiveStreamStatistics, req?: FastifyRequest): Promise<Response.LiveStreamStatistics>;
127
134
  getLiveStreamProductTop(request: Request.LiveStreamProductTop, req?: FastifyRequest): Promise<Response.LiveStreamProductTop>;
135
+ audienceExport(req?: FastifyRequest): Promise<Response.AudienceExport>;
128
136
  }
129
137
  }
130
138
  /**
@@ -11,6 +11,10 @@ export declare namespace DomainService {
11
11
  interface List {
12
12
  /** 关键词搜索:域名路径 */
13
13
  keywords?: string;
14
+ /** 分类:0-其他、1-授权页面、2-直播间域名、3-重定向域名 */
15
+ cate?: ENUM.DOMAIN.CATE;
16
+ /** 状态:0-禁用、1-正常 */
17
+ display?: ENUM.DOMAIN.DISPLAY;
14
18
  /** 页码,从0开始 */
15
19
  pageIndex: number;
16
20
  /** 每页数量,默认20,最大100 */
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.12",
3
+ "version": "0.1.14",
4
4
  "description": "EcommerceClientBackendService Node.js SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",