@be-link/ecommerce-client-backend-service-node-sdk 0.1.92 → 0.1.94
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/modules/data/service.d.ts +7 -0
- package/modules/data/service.js +21 -0
- package/modules/data/types.d.ts +23 -0
- package/modules/room/service.d.ts +1 -0
- package/modules/room/service.js +8 -0
- package/modules/room/types.d.ts +18 -0
- package/modules/roomData/types.d.ts +2 -0
- package/package.json +1 -1
|
@@ -44,6 +44,8 @@ declare class DataServiceClass extends BaseService implements DataService.BaseCo
|
|
|
44
44
|
syncHotelTravelUserConsumptionAmount(request?: DataService.Request.SyncHotelTravelUserConsumptionAmount): Promise<void>;
|
|
45
45
|
/** 一次性历史回填酒旅用户累计消费金额(支持 userId 游标断点续传) */
|
|
46
46
|
backfillHotelTravelUserConsumptionAmount(request?: DataService.Request.BackfillHotelTravelUserConsumptionAmount): Promise<void>;
|
|
47
|
+
/** 手动刷酒旅订单数据(按直播间+时间范围) */
|
|
48
|
+
syncHotelTravelOrdersByTimeRange(request: DataService.Request.SyncHotelTravelOrdersByTimeRange): Promise<void>;
|
|
47
49
|
/** 补偿指定直播间的回放观众统计(拉火山回放写回放三字段,用于手动补偿) */
|
|
48
50
|
compensateReplayAudienceStatistics(request: DataService.Request.CompensateReplayAudienceStatistics): Promise<void>;
|
|
49
51
|
batchCompensateReplayAudienceStatistics(request: DataService.Request.BatchCompensateReplayAudienceStatistics): Promise<void>;
|
|
@@ -72,6 +74,11 @@ declare class DataServiceClass extends BaseService implements DataService.BaseCo
|
|
|
72
74
|
* 用于提高用户首次拉取阶段接口的命中率
|
|
73
75
|
*/
|
|
74
76
|
warmupGrowthStageCacheForYesterdayWatchers(request?: DataService.Request.ExecuteGrowthStageTask): Promise<void>;
|
|
77
|
+
/**
|
|
78
|
+
* 全量遍历用户宽表,批量回刷最新手机号字段(mobile)
|
|
79
|
+
* 游标分页:按 UserExtraInfo.id 递增扫描,支持断点续传
|
|
80
|
+
*/
|
|
81
|
+
refreshAllUserMobiles(request?: DataService.Request.RefreshAllUserMobiles): Promise<void>;
|
|
75
82
|
}
|
|
76
83
|
export declare const dataService: DataServiceClass;
|
|
77
84
|
export default dataService;
|
package/modules/data/service.js
CHANGED
|
@@ -109,6 +109,10 @@ let DataServiceClass = class DataServiceClass extends BaseService_1.default {
|
|
|
109
109
|
backfillHotelTravelUserConsumptionAmount(request) {
|
|
110
110
|
return (0, http_1.callApi)(this.getApiUrl(this.backfillHotelTravelUserConsumptionAmount), request);
|
|
111
111
|
}
|
|
112
|
+
/** 手动刷酒旅订单数据(按直播间+时间范围) */
|
|
113
|
+
syncHotelTravelOrdersByTimeRange(request) {
|
|
114
|
+
return (0, http_1.callApi)(this.getApiUrl(this.syncHotelTravelOrdersByTimeRange), request);
|
|
115
|
+
}
|
|
112
116
|
/** 补偿指定直播间的回放观众统计(拉火山回放写回放三字段,用于手动补偿) */
|
|
113
117
|
compensateReplayAudienceStatistics(request) {
|
|
114
118
|
return (0, http_1.callApi)(this.getApiUrl(this.compensateReplayAudienceStatistics), request);
|
|
@@ -165,6 +169,13 @@ let DataServiceClass = class DataServiceClass extends BaseService_1.default {
|
|
|
165
169
|
warmupGrowthStageCacheForYesterdayWatchers(request) {
|
|
166
170
|
return (0, http_1.callApi)(this.getApiUrl(this.warmupGrowthStageCacheForYesterdayWatchers), request);
|
|
167
171
|
}
|
|
172
|
+
/**
|
|
173
|
+
* 全量遍历用户宽表,批量回刷最新手机号字段(mobile)
|
|
174
|
+
* 游标分页:按 UserExtraInfo.id 递增扫描,支持断点续传
|
|
175
|
+
*/
|
|
176
|
+
refreshAllUserMobiles(request) {
|
|
177
|
+
return (0, http_1.callApi)(this.getApiUrl(this.refreshAllUserMobiles), request);
|
|
178
|
+
}
|
|
168
179
|
};
|
|
169
180
|
__decorate([
|
|
170
181
|
(0, tsoa_1.OperationId)('获取用户观看时长'),
|
|
@@ -272,6 +283,11 @@ __decorate([
|
|
|
272
283
|
(0, tsoa_1.Post)('backfill-hotel-travel-user-consumption-amount'),
|
|
273
284
|
__param(0, (0, tsoa_1.Body)())
|
|
274
285
|
], DataServiceClass.prototype, "backfillHotelTravelUserConsumptionAmount", null);
|
|
286
|
+
__decorate([
|
|
287
|
+
(0, tsoa_1.OperationId)('手动刷酒旅订单数据'),
|
|
288
|
+
(0, tsoa_1.Post)('sync-hotel-travel-orders-by-time-range'),
|
|
289
|
+
__param(0, (0, tsoa_1.Body)())
|
|
290
|
+
], DataServiceClass.prototype, "syncHotelTravelOrdersByTimeRange", null);
|
|
275
291
|
__decorate([
|
|
276
292
|
(0, tsoa_1.OperationId)('补偿回放观众统计'),
|
|
277
293
|
(0, tsoa_1.Post)('compensate-replay-audience-statistics'),
|
|
@@ -339,6 +355,11 @@ __decorate([
|
|
|
339
355
|
(0, tsoa_1.Post)('warmup-growth-stage-cache-for-yesterday-watchers'),
|
|
340
356
|
__param(0, (0, tsoa_1.Body)())
|
|
341
357
|
], DataServiceClass.prototype, "warmupGrowthStageCacheForYesterdayWatchers", null);
|
|
358
|
+
__decorate([
|
|
359
|
+
(0, tsoa_1.OperationId)('refreshAllUserMobiles'),
|
|
360
|
+
(0, tsoa_1.Post)('refresh-all-user-mobiles'),
|
|
361
|
+
__param(0, (0, tsoa_1.Body)())
|
|
362
|
+
], DataServiceClass.prototype, "refreshAllUserMobiles", null);
|
|
342
363
|
DataServiceClass = __decorate([
|
|
343
364
|
(0, tsoa_1.Route)('data'),
|
|
344
365
|
(0, tsoa_1.Tags)('Data')
|
package/modules/data/types.d.ts
CHANGED
|
@@ -227,6 +227,17 @@ export declare namespace DataService {
|
|
|
227
227
|
/** 起始 userId(断点续传游标) */
|
|
228
228
|
startUserId?: string;
|
|
229
229
|
}
|
|
230
|
+
/**
|
|
231
|
+
* 手动刷酒旅订单数据(按直播间+时间范围)
|
|
232
|
+
*/
|
|
233
|
+
interface SyncHotelTravelOrdersByTimeRange {
|
|
234
|
+
/** 直播间ID */
|
|
235
|
+
liveStreamRoomId: string;
|
|
236
|
+
/** 开始时间(毫秒时间戳) */
|
|
237
|
+
startTime: number;
|
|
238
|
+
/** 结束时间(毫秒时间戳) */
|
|
239
|
+
endTime: number;
|
|
240
|
+
}
|
|
230
241
|
/**
|
|
231
242
|
* 批量更新用户消费数据(从CSV文件)
|
|
232
243
|
*/
|
|
@@ -255,6 +266,16 @@ export declare namespace DataService {
|
|
|
255
266
|
/** 业务日期时间戳(当天0点毫秒级时间戳),不传则取当天 */
|
|
256
267
|
bizDateTs?: number;
|
|
257
268
|
}
|
|
269
|
+
/**
|
|
270
|
+
* 全量遍历用户宽表,批量回刷最新手机号字段(mobile)
|
|
271
|
+
* 游标分页:按 UserExtraInfo.id 递增扫描,支持断点续传
|
|
272
|
+
*/
|
|
273
|
+
interface RefreshAllUserMobiles {
|
|
274
|
+
/** 起始游标(UserExtraInfo.id),可选,默认0 */
|
|
275
|
+
lastId?: number;
|
|
276
|
+
/** 每批数量,可选,默认500,最大1000 */
|
|
277
|
+
pageSize?: number;
|
|
278
|
+
}
|
|
258
279
|
}
|
|
259
280
|
namespace Response {
|
|
260
281
|
/**
|
|
@@ -369,6 +390,7 @@ export declare namespace DataService {
|
|
|
369
390
|
syncTradeOrderFromOrderService(): Promise<void>;
|
|
370
391
|
syncHotelTravelUserConsumptionAmount(request?: Request.SyncHotelTravelUserConsumptionAmount, req?: FastifyRequest): Promise<void>;
|
|
371
392
|
backfillHotelTravelUserConsumptionAmount(request?: Request.BackfillHotelTravelUserConsumptionAmount, req?: FastifyRequest): Promise<void>;
|
|
393
|
+
syncHotelTravelOrdersByTimeRange(request: Request.SyncHotelTravelOrdersByTimeRange, req?: FastifyRequest): Promise<void>;
|
|
372
394
|
compensateReplayAudienceStatistics(request: Request.CompensateReplayAudienceStatistics, req?: FastifyRequest): Promise<void>;
|
|
373
395
|
batchCompensateReplayAudienceStatistics(request: Request.BatchCompensateReplayAudienceStatistics, req?: FastifyRequest): Promise<void>;
|
|
374
396
|
dailyUpdateUserFirstWatchTime(req?: FastifyRequest): Promise<void>;
|
|
@@ -383,6 +405,7 @@ export declare namespace DataService {
|
|
|
383
405
|
weeklyCleanupNewCustomers(request?: Request.ExecuteGrowthStageTask, req?: FastifyRequest): Promise<void>;
|
|
384
406
|
warmupGrowthStageCacheForYesterdayWatchers(request?: Request.ExecuteGrowthStageTask, req?: FastifyRequest): Promise<void>;
|
|
385
407
|
migrateExistingGrowthStageData(req?: FastifyRequest): Promise<void>;
|
|
408
|
+
refreshAllUserMobiles(request?: Request.RefreshAllUserMobiles, req?: FastifyRequest): Promise<void>;
|
|
386
409
|
}
|
|
387
410
|
}
|
|
388
411
|
/**
|
|
@@ -19,6 +19,7 @@ declare class RoomServiceClass extends BaseService implements RoomService.BaseCo
|
|
|
19
19
|
viewRecord(request: RoomService.Request.ViewRecord): Promise<RoomService.Response.ViewRecord>;
|
|
20
20
|
/** 门店直播规则查询 */
|
|
21
21
|
storeLiveStreamRule(request: RoomService.Request.StoreLiveStreamRule): Promise<RoomService.Response.StoreLiveStreamRule>;
|
|
22
|
+
isNewCustomerLiveRoom(request: RoomService.Request.IsNewCustomerLiveRoom): Promise<RoomService.Response.IsNewCustomerLiveRoom>;
|
|
22
23
|
searchByName(request: RoomService.Request.SearchByName): Promise<RoomService.Response.SearchByName>;
|
|
23
24
|
getBasicInfo(request: RoomService.Request.GetBasicInfo): Promise<RoomService.Response.GetBasicInfo>;
|
|
24
25
|
getRoomTagValues(request: RoomService.Request.GetRoomTagValues): Promise<RoomService.Response.GetRoomTagValues>;
|
package/modules/room/service.js
CHANGED
|
@@ -63,6 +63,9 @@ let RoomServiceClass = class RoomServiceClass extends BaseService_1.default {
|
|
|
63
63
|
storeLiveStreamRule(request) {
|
|
64
64
|
return (0, http_1.callApi)(this.getApiUrl(this.storeLiveStreamRule), request);
|
|
65
65
|
}
|
|
66
|
+
isNewCustomerLiveRoom(request) {
|
|
67
|
+
return (0, http_1.callApi)(this.getApiUrl(this.isNewCustomerLiveRoom), request);
|
|
68
|
+
}
|
|
66
69
|
searchByName(request) {
|
|
67
70
|
return (0, http_1.callApi)(this.getApiUrl(this.searchByName), request);
|
|
68
71
|
}
|
|
@@ -144,6 +147,11 @@ __decorate([
|
|
|
144
147
|
(0, tsoa_1.Post)('store-live-stream-rule'),
|
|
145
148
|
__param(0, (0, tsoa_1.Body)())
|
|
146
149
|
], RoomServiceClass.prototype, "storeLiveStreamRule", null);
|
|
150
|
+
__decorate([
|
|
151
|
+
(0, tsoa_1.OperationId)('查询是否新客直播间'),
|
|
152
|
+
(0, tsoa_1.Post)('is-new-customer-live-room'),
|
|
153
|
+
__param(0, (0, tsoa_1.Body)())
|
|
154
|
+
], RoomServiceClass.prototype, "isNewCustomerLiveRoom", null);
|
|
147
155
|
__decorate([
|
|
148
156
|
(0, tsoa_1.OperationId)('根据名称搜索房间'),
|
|
149
157
|
(0, tsoa_1.Post)('search-by-name'),
|
package/modules/room/types.d.ts
CHANGED
|
@@ -67,6 +67,13 @@ export declare namespace RoomService {
|
|
|
67
67
|
/** 门店ID */
|
|
68
68
|
storeId: string;
|
|
69
69
|
}
|
|
70
|
+
/**
|
|
71
|
+
* 查询是否新客直播间
|
|
72
|
+
*/
|
|
73
|
+
interface IsNewCustomerLiveRoom {
|
|
74
|
+
/** 直播间ID */
|
|
75
|
+
liveStreamRoomId: string;
|
|
76
|
+
}
|
|
70
77
|
/**
|
|
71
78
|
* 绑定门店
|
|
72
79
|
*/
|
|
@@ -253,6 +260,13 @@ export declare namespace RoomService {
|
|
|
253
260
|
interface StoreLiveStreamRule {
|
|
254
261
|
rule: boolean;
|
|
255
262
|
}
|
|
263
|
+
/**
|
|
264
|
+
* 查询是否新客直播间响应
|
|
265
|
+
*/
|
|
266
|
+
interface IsNewCustomerLiveRoom {
|
|
267
|
+
/** 是否新客直播间 */
|
|
268
|
+
isNewCustomerLiveRoom: boolean;
|
|
269
|
+
}
|
|
256
270
|
/**
|
|
257
271
|
* 房间基本信息
|
|
258
272
|
*/
|
|
@@ -363,6 +377,10 @@ export declare namespace RoomService {
|
|
|
363
377
|
listByStoreBind(request: Request.ListByStoreBind, req?: FastifyRequest): Promise<Response.ListByStoreBind>;
|
|
364
378
|
viewRecord(request: Request.ViewRecord, req?: FastifyRequest): Promise<Response.ViewRecord>;
|
|
365
379
|
storeLiveStreamRule(request: Request.StoreLiveStreamRule, req?: FastifyRequest): Promise<Response.StoreLiveStreamRule>;
|
|
380
|
+
/**
|
|
381
|
+
* 查询是否新客直播间
|
|
382
|
+
*/
|
|
383
|
+
isNewCustomerLiveRoom(request: Request.IsNewCustomerLiveRoom, req?: FastifyRequest): Promise<Response.IsNewCustomerLiveRoom>;
|
|
366
384
|
/**
|
|
367
385
|
* 根据名称搜索房间
|
|
368
386
|
*/
|