@be-link/ecommerce-client-backend-service-node-sdk 0.1.56 → 0.1.58

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;
@@ -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')
@@ -168,6 +168,13 @@ export declare namespace DataService {
168
168
  /** 直播间状态 */
169
169
  status: ENUM.LIVE_STREAM_AUDIENCE.VIEW_TYPE;
170
170
  }
171
+ /**
172
+ * 手动补偿更新用户最后看播时间
173
+ */
174
+ interface CompensateUserLastWatchTime {
175
+ /** 直播间id */
176
+ liveStreamRoomId: string;
177
+ }
171
178
  }
172
179
  namespace Response {
173
180
  /**
@@ -221,6 +228,15 @@ export declare namespace DataService {
221
228
  /** 观众数据总数 */
222
229
  total: number;
223
230
  }
231
+ /**
232
+ * 手动补偿更新用户最后看播时间响应
233
+ */
234
+ interface CompensateUserLastWatchTime {
235
+ /** 是否成功 */
236
+ success: boolean;
237
+ /** 执行结果消息 */
238
+ message: string;
239
+ }
224
240
  }
225
241
  interface BaseController {
226
242
  userLiveStreamRelation(request: Request.UserLiveStreamRelation, req?: FastifyRequest): Promise<void>;
@@ -239,6 +255,7 @@ export declare namespace DataService {
239
255
  initUserExtraInfoUsers(req?: FastifyRequest): Promise<void>;
240
256
  initUserExtraInfoLastWatchTime(req?: FastifyRequest): Promise<void>;
241
257
  initUserExtraInfoSevenDaysAmount(req?: FastifyRequest): Promise<void>;
258
+ compensateUserLastWatchTime(request: Request.CompensateUserLastWatchTime, req?: FastifyRequest): Promise<Response.CompensateUserLastWatchTime>;
242
259
  }
243
260
  }
244
261
  /**
@@ -19,7 +19,7 @@ const BaseService_1 = __importDefault(require("../BaseService"));
19
19
  let RoomDataServiceClass = class RoomDataServiceClass extends BaseService_1.default {
20
20
  constructor() {
21
21
  super(...arguments);
22
- this.prefixUrl = '/room';
22
+ this.prefixUrl = '/room-data';
23
23
  }
24
24
  listByStoreWithRule(request) {
25
25
  return (0, http_1.callApi)(this.getApiUrl(this.listByStoreWithRule), request);
@@ -71,7 +71,7 @@ __decorate([
71
71
  __param(0, (0, tsoa_1.Body)())
72
72
  ], RoomDataServiceClass.prototype, "getViewerCountForSales", null);
73
73
  RoomDataServiceClass = __decorate([
74
- (0, tsoa_1.Route)('room'),
74
+ (0, tsoa_1.Route)('room-data'),
75
75
  (0, tsoa_1.Tags)('RoomData')
76
76
  ], RoomDataServiceClass);
77
77
  exports.roomDataService = new RoomDataServiceClass();
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.56",
3
+ "version": "0.1.58",
4
4
  "description": "EcommerceClientBackendService Node.js SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",