@be-link/ecommerce-client-backend-service-node-sdk 0.1.20 → 0.1.22
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 +6 -4
- package/enum.js +3 -1
- package/modules/data/service.d.ts +2 -0
- package/modules/data/service.js +8 -0
- package/modules/data/types.d.ts +1 -0
- package/package.json +1 -1
package/enum.d.ts
CHANGED
|
@@ -214,20 +214,22 @@ export declare namespace ENUM {
|
|
|
214
214
|
enum TOPIC {
|
|
215
215
|
UserReport = "user-report",
|
|
216
216
|
TaskDuration = "task-duration",
|
|
217
|
-
TotalDuration = "total-duration"
|
|
217
|
+
TotalDuration = "total-duration",
|
|
218
|
+
/** 任务时长生产者 */
|
|
219
|
+
TaskDurationPublish = "task-duration-publish"
|
|
218
220
|
}
|
|
219
221
|
/**
|
|
220
222
|
* 路由键
|
|
221
223
|
*/
|
|
222
224
|
enum ROUTING_KEY {
|
|
223
|
-
UserReport = "user.report"
|
|
225
|
+
UserReport = "user.report",
|
|
226
|
+
TaskDuration = "task.duration"
|
|
224
227
|
}
|
|
225
228
|
/**
|
|
226
229
|
* 队列
|
|
227
230
|
*/
|
|
228
231
|
enum QUEUE {
|
|
229
|
-
TotalDuration = "total-duration"
|
|
230
|
-
TaskDuration = "task-duration"
|
|
232
|
+
TotalDuration = "total-duration"
|
|
231
233
|
}
|
|
232
234
|
}
|
|
233
235
|
/**
|
package/enum.js
CHANGED
|
@@ -244,6 +244,8 @@ var ENUM;
|
|
|
244
244
|
TOPIC["UserReport"] = "user-report";
|
|
245
245
|
TOPIC["TaskDuration"] = "task-duration";
|
|
246
246
|
TOPIC["TotalDuration"] = "total-duration";
|
|
247
|
+
/** 任务时长生产者 */
|
|
248
|
+
TOPIC["TaskDurationPublish"] = "task-duration-publish";
|
|
247
249
|
})(TOPIC = MQ.TOPIC || (MQ.TOPIC = {}));
|
|
248
250
|
/**
|
|
249
251
|
* 路由键
|
|
@@ -251,6 +253,7 @@ var ENUM;
|
|
|
251
253
|
let ROUTING_KEY;
|
|
252
254
|
(function (ROUTING_KEY) {
|
|
253
255
|
ROUTING_KEY["UserReport"] = "user.report";
|
|
256
|
+
ROUTING_KEY["TaskDuration"] = "task.duration";
|
|
254
257
|
})(ROUTING_KEY = MQ.ROUTING_KEY || (MQ.ROUTING_KEY = {}));
|
|
255
258
|
/**
|
|
256
259
|
* 队列
|
|
@@ -258,7 +261,6 @@ var ENUM;
|
|
|
258
261
|
let QUEUE;
|
|
259
262
|
(function (QUEUE) {
|
|
260
263
|
QUEUE["TotalDuration"] = "total-duration";
|
|
261
|
-
QUEUE["TaskDuration"] = "task-duration";
|
|
262
264
|
})(QUEUE = MQ.QUEUE || (MQ.QUEUE = {}));
|
|
263
265
|
})(MQ = ENUM.MQ || (ENUM.MQ = {}));
|
|
264
266
|
/**
|
|
@@ -16,6 +16,8 @@ declare class DataServiceClass extends BaseService implements DataService.BaseCo
|
|
|
16
16
|
audienceExport(request: DataService.Request.AudienceList): Promise<DataService.Response.AudienceExport>;
|
|
17
17
|
/** 直播间数据归档 */
|
|
18
18
|
archive(request: DataService.Request.Archive): Promise<void>;
|
|
19
|
+
/** 直播间数据定时归档 */
|
|
20
|
+
liveStreamRoomDataArchive(): Promise<void>;
|
|
19
21
|
}
|
|
20
22
|
export declare const dataService: DataServiceClass;
|
|
21
23
|
export default dataService;
|
package/modules/data/service.js
CHANGED
|
@@ -53,6 +53,10 @@ let DataServiceClass = class DataServiceClass extends BaseService_1.default {
|
|
|
53
53
|
archive(request) {
|
|
54
54
|
return (0, http_1.callApi)(this.getApiUrl(this.archive), request);
|
|
55
55
|
}
|
|
56
|
+
/** 直播间数据定时归档 */
|
|
57
|
+
liveStreamRoomDataArchive() {
|
|
58
|
+
return (0, http_1.callApi)(this.getApiUrl(this.liveStreamRoomDataArchive), undefined);
|
|
59
|
+
}
|
|
56
60
|
};
|
|
57
61
|
__decorate([
|
|
58
62
|
(0, tsoa_1.OperationId)('获取用户观看时长'),
|
|
@@ -99,6 +103,10 @@ __decorate([
|
|
|
99
103
|
(0, tsoa_1.Post)('archive'),
|
|
100
104
|
__param(0, (0, tsoa_1.Body)())
|
|
101
105
|
], DataServiceClass.prototype, "archive", null);
|
|
106
|
+
__decorate([
|
|
107
|
+
(0, tsoa_1.OperationId)('直播间数据定时归档'),
|
|
108
|
+
(0, tsoa_1.Post)('livestream-room-data-archive')
|
|
109
|
+
], DataServiceClass.prototype, "liveStreamRoomDataArchive", null);
|
|
102
110
|
DataServiceClass = __decorate([
|
|
103
111
|
(0, tsoa_1.Route)('data'),
|
|
104
112
|
(0, tsoa_1.Tags)('Data')
|
package/modules/data/types.d.ts
CHANGED
|
@@ -149,6 +149,7 @@ export declare namespace DataService {
|
|
|
149
149
|
getLiveStreamProductTop(request: Request.LiveStreamProductTop, req?: FastifyRequest): Promise<Response.LiveStreamProductTop>;
|
|
150
150
|
audienceExport(request: Request.AudienceList, req?: FastifyRequest): Promise<Response.AudienceExport>;
|
|
151
151
|
archive(request: Request.Archive, req?: FastifyRequest): Promise<void>;
|
|
152
|
+
liveStreamRoomDataArchive(req?: FastifyRequest): Promise<void>;
|
|
152
153
|
}
|
|
153
154
|
}
|
|
154
155
|
/**
|