@be-link/ecommerce-promotion-service-node-sdk 0.1.32 → 0.1.34

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.
@@ -5,6 +5,8 @@ declare class JobService extends BaseService implements Service.JobController {
5
5
  expireCouponTemplateTask(): Promise<void>;
6
6
  cleanupCouponCacheTask(): Promise<void>;
7
7
  syncLiveRoomLotteryWhiteList(): Promise<void>;
8
+ getMissingRewards(params: Service.Request.GetMissingRewards): Promise<Service.Response.GetMissingRewards>;
9
+ processReplayRoomMissingRewards(): Promise<void>;
8
10
  }
9
11
  export declare const jobService: JobService;
10
12
  export default jobService;
@@ -27,6 +27,12 @@ let JobService = class JobService extends BaseService_1.default {
27
27
  syncLiveRoomLotteryWhiteList() {
28
28
  return (0, http_1.callApi)(this.getApiUrl(this.syncLiveRoomLotteryWhiteList));
29
29
  }
30
+ getMissingRewards(params) {
31
+ return (0, http_1.callApi)(this.getApiUrl(this.getMissingRewards), params);
32
+ }
33
+ processReplayRoomMissingRewards() {
34
+ return (0, http_1.callApi)(this.getApiUrl(this.processReplayRoomMissingRewards));
35
+ }
30
36
  };
31
37
  __decorate([
32
38
  (0, tsoa_1.OperationId)('过期券模版清理任务'),
@@ -40,6 +46,14 @@ __decorate([
40
46
  (0, tsoa_1.OperationId)('开播直播间同步抽奖白名单'),
41
47
  (0, tsoa_1.Post)('sync-live-room-lottery-white-list')
42
48
  ], JobService.prototype, "syncLiveRoomLotteryWhiteList", null);
49
+ __decorate([
50
+ (0, tsoa_1.OperationId)('计算指定直播间中,所有观看任务的「应发未发」奖励(补发清单)'),
51
+ (0, tsoa_1.Post)('get-missing-rewards')
52
+ ], JobService.prototype, "getMissingRewards", null);
53
+ __decorate([
54
+ (0, tsoa_1.OperationId)('处理回放直播间的缺失奖励计算任务'),
55
+ (0, tsoa_1.Post)('process-replay-room-missing-rewards')
56
+ ], JobService.prototype, "processReplayRoomMissingRewards", null);
43
57
  JobService = __decorate([
44
58
  (0, tsoa_1.Route)('job'),
45
59
  (0, tsoa_1.Tags)('Job')
@@ -13,9 +13,33 @@ export declare namespace Service {
13
13
  AwardId: number;
14
14
  AwardItemCount: number;
15
15
  }
16
+ /** 缺失奖励信息 */
17
+ interface MissingReward {
18
+ userId: string;
19
+ cumulativeViewDuration: number;
20
+ taskName: string;
21
+ taskContent: string;
22
+ couponId: string;
23
+ rewardType: string;
24
+ rewardContent: string;
25
+ rewardId: string;
26
+ missingQuantity: number;
27
+ expectedQuantity: number;
28
+ taskStartTime: number;
29
+ taskEndTime: number;
30
+ enterTime: number;
31
+ }
32
+ }
33
+ namespace Request {
34
+ /** 获取缺失奖励请求 */
35
+ interface GetMissingRewards {
36
+ liveRoomId: string;
37
+ }
38
+ }
39
+ namespace Response {
40
+ /** 获取缺失奖励响应 */
41
+ type GetMissingRewards = void;
16
42
  }
17
- namespace Request { }
18
- namespace Response { }
19
43
  interface JobController {
20
44
  /** 过期券模版清理任务 */
21
45
  expireCouponTemplateTask(): Promise<void>;
@@ -23,5 +47,9 @@ export declare namespace Service {
23
47
  cleanupCouponCacheTask(): Promise<void>;
24
48
  /** 开播直播间同步抽奖白名单 */
25
49
  syncLiveRoomLotteryWhiteList(): Promise<void>;
50
+ /** 计算指定直播间中,所有观看任务的「应发未发」奖励(补发清单) */
51
+ getMissingRewards(params: Request.GetMissingRewards): Promise<Response.GetMissingRewards>;
52
+ /** 处理回放直播间的缺失奖励计算任务 */
53
+ processReplayRoomMissingRewards(): Promise<void>;
26
54
  }
27
55
  }
@@ -27,6 +27,8 @@ export declare namespace Service {
27
27
  consumptionPeriodDays: number;
28
28
  /** 消费门槛金额(单位:分) */
29
29
  consumptionThresholdAmount: number;
30
+ /** 是否可以购买 */
31
+ canBuy?: boolean;
30
32
  }
31
33
  /** 后台管理列表 - 完整12个字段 */
32
34
  interface AdminProductItem {
@@ -108,6 +110,8 @@ export declare namespace Service {
108
110
  }
109
111
  /** 查询开启且上架的积分商城列表 */
110
112
  export interface queryEnabledAndOnlineProducts {
113
+ /** 门店ID */
114
+ storeId: string;
111
115
  /** 页码 */
112
116
  page?: number;
113
117
  /** 每页数量 */
@@ -133,6 +137,8 @@ export declare namespace Service {
133
137
  export interface getProductDetail {
134
138
  /** 商品ID */
135
139
  productId: string;
140
+ /** 门店id */
141
+ storeId?: string;
136
142
  /** 是否上架 */
137
143
  online?: number;
138
144
  /** 是否开启 */
@@ -149,10 +155,6 @@ export declare namespace Service {
149
155
  export interface productInfoChangeNotify {
150
156
  /** 商品ID列表 */
151
157
  productId: string;
152
- /** 可见门店ID列表,空数组表示全部门店可见 */
153
- visibleStores?: string[];
154
- /** 不可见门店ID列表,空数组表示无不可见门店 */
155
- invisibleStores?: string[];
156
158
  }
157
159
  export {};
158
160
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/ecommerce-promotion-service-node-sdk",
3
- "version": "0.1.32",
3
+ "version": "0.1.34",
4
4
  "description": "EcommercePromotionService Node.js SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",