@be-link/ecommerce-client-backend-service-node-sdk 0.1.19 → 0.1.21
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 +5 -6
- package/enum.js +4 -5
- package/modules/data/service.d.ts +2 -0
- package/modules/data/service.js +8 -0
- package/modules/data/types.d.ts +3 -0
- package/package.json +1 -1
package/enum.d.ts
CHANGED
|
@@ -206,15 +206,15 @@ export declare namespace ENUM {
|
|
|
206
206
|
*/
|
|
207
207
|
namespace MQ {
|
|
208
208
|
enum VHOST {
|
|
209
|
-
|
|
209
|
+
Livestream = "ecommerce"
|
|
210
210
|
}
|
|
211
211
|
/**
|
|
212
212
|
* 主题
|
|
213
213
|
*/
|
|
214
214
|
enum TOPIC {
|
|
215
215
|
UserReport = "user-report",
|
|
216
|
-
|
|
217
|
-
|
|
216
|
+
TaskDuration = "task-duration",
|
|
217
|
+
TotalDuration = "total-duration"
|
|
218
218
|
}
|
|
219
219
|
/**
|
|
220
220
|
* 路由键
|
|
@@ -226,9 +226,8 @@ export declare namespace ENUM {
|
|
|
226
226
|
* 队列
|
|
227
227
|
*/
|
|
228
228
|
enum QUEUE {
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
TaskTotalDuration = "task-total-duration-queue"
|
|
229
|
+
TotalDuration = "total-duration",
|
|
230
|
+
TaskDuration = "task-duration"
|
|
232
231
|
}
|
|
233
232
|
}
|
|
234
233
|
/**
|
package/enum.js
CHANGED
|
@@ -234,7 +234,7 @@ var ENUM;
|
|
|
234
234
|
(function (MQ) {
|
|
235
235
|
let VHOST;
|
|
236
236
|
(function (VHOST) {
|
|
237
|
-
VHOST["
|
|
237
|
+
VHOST["Livestream"] = "ecommerce";
|
|
238
238
|
})(VHOST = MQ.VHOST || (MQ.VHOST = {}));
|
|
239
239
|
/**
|
|
240
240
|
* 主题
|
|
@@ -242,8 +242,8 @@ var ENUM;
|
|
|
242
242
|
let TOPIC;
|
|
243
243
|
(function (TOPIC) {
|
|
244
244
|
TOPIC["UserReport"] = "user-report";
|
|
245
|
+
TOPIC["TaskDuration"] = "task-duration";
|
|
245
246
|
TOPIC["TotalDuration"] = "total-duration";
|
|
246
|
-
TOPIC["TaskTotalDuration"] = "task-total-duration";
|
|
247
247
|
})(TOPIC = MQ.TOPIC || (MQ.TOPIC = {}));
|
|
248
248
|
/**
|
|
249
249
|
* 路由键
|
|
@@ -257,9 +257,8 @@ var ENUM;
|
|
|
257
257
|
*/
|
|
258
258
|
let QUEUE;
|
|
259
259
|
(function (QUEUE) {
|
|
260
|
-
QUEUE["
|
|
261
|
-
QUEUE["
|
|
262
|
-
QUEUE["TaskTotalDuration"] = "task-total-duration-queue";
|
|
260
|
+
QUEUE["TotalDuration"] = "total-duration";
|
|
261
|
+
QUEUE["TaskDuration"] = "task-duration";
|
|
263
262
|
})(QUEUE = MQ.QUEUE || (MQ.QUEUE = {}));
|
|
264
263
|
})(MQ = ENUM.MQ || (ENUM.MQ = {}));
|
|
265
264
|
/**
|
|
@@ -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
|
@@ -82,6 +82,8 @@ export declare namespace DataService {
|
|
|
82
82
|
interface Archive {
|
|
83
83
|
/** 直播间id */
|
|
84
84
|
liveStreamRoomId: string;
|
|
85
|
+
/** 直播间状态 */
|
|
86
|
+
status: ENUM.LIVE_STREAM_AUDIENCE.VIEW_TYPE;
|
|
85
87
|
}
|
|
86
88
|
}
|
|
87
89
|
namespace Response {
|
|
@@ -147,6 +149,7 @@ export declare namespace DataService {
|
|
|
147
149
|
getLiveStreamProductTop(request: Request.LiveStreamProductTop, req?: FastifyRequest): Promise<Response.LiveStreamProductTop>;
|
|
148
150
|
audienceExport(request: Request.AudienceList, req?: FastifyRequest): Promise<Response.AudienceExport>;
|
|
149
151
|
archive(request: Request.Archive, req?: FastifyRequest): Promise<void>;
|
|
152
|
+
liveStreamRoomDataArchive(req?: FastifyRequest): Promise<void>;
|
|
150
153
|
}
|
|
151
154
|
}
|
|
152
155
|
/**
|