@be-link/ecommerce-client-backend-service-node-sdk 0.1.57 → 0.1.59
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.
|
@@ -30,6 +30,8 @@ declare class DataServiceClass extends BaseService implements DataService.BaseCo
|
|
|
30
30
|
initUserExtraInfoLastWatchTime(): Promise<void>;
|
|
31
31
|
/** 初始化用户数据-刷7天累计消费 */
|
|
32
32
|
initUserExtraInfoSevenDaysAmount(): Promise<void>;
|
|
33
|
+
/** 手动补偿更新用户最后看播时间 */
|
|
34
|
+
compensateUserLastWatchTime(request: DataService.Request.CompensateUserLastWatchTime): Promise<DataService.Response.CompensateUserLastWatchTime>;
|
|
33
35
|
}
|
|
34
36
|
export declare const dataService: DataServiceClass;
|
|
35
37
|
export default dataService;
|
package/modules/data/service.js
CHANGED
|
@@ -81,6 +81,10 @@ let DataServiceClass = class DataServiceClass extends BaseService_1.default {
|
|
|
81
81
|
initUserExtraInfoSevenDaysAmount() {
|
|
82
82
|
return (0, http_1.callApi)(this.getApiUrl(this.initUserExtraInfoSevenDaysAmount), undefined);
|
|
83
83
|
}
|
|
84
|
+
/** 手动补偿更新用户最后看播时间 */
|
|
85
|
+
compensateUserLastWatchTime(request) {
|
|
86
|
+
return (0, http_1.callApi)(this.getApiUrl(this.compensateUserLastWatchTime), request);
|
|
87
|
+
}
|
|
84
88
|
};
|
|
85
89
|
__decorate([
|
|
86
90
|
(0, tsoa_1.OperationId)('获取用户观看时长'),
|
|
@@ -156,6 +160,11 @@ __decorate([
|
|
|
156
160
|
(0, tsoa_1.OperationId)('初始化用户数据-刷7天累计消费'),
|
|
157
161
|
(0, tsoa_1.Post)('init-user-extra-info-seven-days-amount')
|
|
158
162
|
], DataServiceClass.prototype, "initUserExtraInfoSevenDaysAmount", null);
|
|
163
|
+
__decorate([
|
|
164
|
+
(0, tsoa_1.OperationId)('手动补偿更新用户最后看播时间'),
|
|
165
|
+
(0, tsoa_1.Post)('compensate-user-last-watch-time'),
|
|
166
|
+
__param(0, (0, tsoa_1.Body)())
|
|
167
|
+
], DataServiceClass.prototype, "compensateUserLastWatchTime", null);
|
|
159
168
|
DataServiceClass = __decorate([
|
|
160
169
|
(0, tsoa_1.Route)('data'),
|
|
161
170
|
(0, tsoa_1.Tags)('Data')
|
package/modules/data/types.d.ts
CHANGED
|
@@ -142,8 +142,10 @@ export declare namespace DataService {
|
|
|
142
142
|
userId?: string;
|
|
143
143
|
/** 页码,从0开始 */
|
|
144
144
|
pageIndex: number;
|
|
145
|
-
/** 每页数量,默认20,最大
|
|
145
|
+
/** 每页数量,默认20,最大1000 */
|
|
146
146
|
pageSize?: number;
|
|
147
|
+
/** 累计观看时长最小值(毫秒),筛选观看时长大于等于该值的观众 */
|
|
148
|
+
minCumulativeViewDuration?: number;
|
|
147
149
|
}
|
|
148
150
|
/**
|
|
149
151
|
* 直播间统计查询
|
|
@@ -168,6 +170,13 @@ export declare namespace DataService {
|
|
|
168
170
|
/** 直播间状态 */
|
|
169
171
|
status: ENUM.LIVE_STREAM_AUDIENCE.VIEW_TYPE;
|
|
170
172
|
}
|
|
173
|
+
/**
|
|
174
|
+
* 手动补偿更新用户最后看播时间
|
|
175
|
+
*/
|
|
176
|
+
interface CompensateUserLastWatchTime {
|
|
177
|
+
/** 直播间id */
|
|
178
|
+
liveStreamRoomId: string;
|
|
179
|
+
}
|
|
171
180
|
}
|
|
172
181
|
namespace Response {
|
|
173
182
|
/**
|
|
@@ -221,6 +230,15 @@ export declare namespace DataService {
|
|
|
221
230
|
/** 观众数据总数 */
|
|
222
231
|
total: number;
|
|
223
232
|
}
|
|
233
|
+
/**
|
|
234
|
+
* 手动补偿更新用户最后看播时间响应
|
|
235
|
+
*/
|
|
236
|
+
interface CompensateUserLastWatchTime {
|
|
237
|
+
/** 是否成功 */
|
|
238
|
+
success: boolean;
|
|
239
|
+
/** 执行结果消息 */
|
|
240
|
+
message: string;
|
|
241
|
+
}
|
|
224
242
|
}
|
|
225
243
|
interface BaseController {
|
|
226
244
|
userLiveStreamRelation(request: Request.UserLiveStreamRelation, req?: FastifyRequest): Promise<void>;
|
|
@@ -239,6 +257,7 @@ export declare namespace DataService {
|
|
|
239
257
|
initUserExtraInfoUsers(req?: FastifyRequest): Promise<void>;
|
|
240
258
|
initUserExtraInfoLastWatchTime(req?: FastifyRequest): Promise<void>;
|
|
241
259
|
initUserExtraInfoSevenDaysAmount(req?: FastifyRequest): Promise<void>;
|
|
260
|
+
compensateUserLastWatchTime(request: Request.CompensateUserLastWatchTime, req?: FastifyRequest): Promise<Response.CompensateUserLastWatchTime>;
|
|
242
261
|
}
|
|
243
262
|
}
|
|
244
263
|
/**
|