@be-link/ecommerce-promotion-service-node-sdk 0.1.64 → 0.1.66

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.
@@ -4,6 +4,7 @@ declare class JobService extends BaseService implements Service.JobController {
4
4
  protected prefixUrl: string;
5
5
  expireCouponTemplateTask(): Promise<void>;
6
6
  cleanupCouponCacheTask(): Promise<void>;
7
+ refreshPointsMallLast7dSalesTask(): Promise<void>;
7
8
  syncLiveRoomLotteryWhiteList(): Promise<void>;
8
9
  getMissingRewards(params: Service.Request.GetMissingRewards): Promise<Service.Response.GetMissingRewards>;
9
10
  processReplayRoomMissingRewards(): Promise<void>;
@@ -27,6 +27,9 @@ let JobService = class JobService extends BaseService_1.default {
27
27
  cleanupCouponCacheTask() {
28
28
  return (0, http_1.callApi)(this.getApiUrl(this.cleanupCouponCacheTask));
29
29
  }
30
+ refreshPointsMallLast7dSalesTask() {
31
+ return (0, http_1.callApi)(this.getApiUrl(this.refreshPointsMallLast7dSalesTask));
32
+ }
30
33
  syncLiveRoomLotteryWhiteList() {
31
34
  return (0, http_1.callApi)(this.getApiUrl(this.syncLiveRoomLotteryWhiteList));
32
35
  }
@@ -45,6 +48,10 @@ __decorate([
45
48
  (0, tsoa_1.OperationId)('定时清理券缓存任务'),
46
49
  (0, tsoa_1.Post)('cleanup-coupon-cache-task')
47
50
  ], JobService.prototype, "cleanupCouponCacheTask", null);
51
+ __decorate([
52
+ (0, tsoa_1.OperationId)('刷新积分商城近7日销量快照'),
53
+ (0, tsoa_1.Post)('refresh-points-mall-last7d-sales-task')
54
+ ], JobService.prototype, "refreshPointsMallLast7dSalesTask", null);
48
55
  __decorate([
49
56
  (0, tsoa_1.OperationId)('开播直播间同步抽奖白名单'),
50
57
  (0, tsoa_1.Post)('sync-live-room-lottery-white-list')
@@ -45,6 +45,8 @@ export declare namespace Service {
45
45
  expireCouponTemplateTask(): Promise<void>;
46
46
  /** 定时清理券缓存任务 */
47
47
  cleanupCouponCacheTask(): Promise<void>;
48
+ /** 刷新积分商城近 7 日销量快照 */
49
+ refreshPointsMallLast7dSalesTask(): Promise<void>;
48
50
  /** 开播直播间同步抽奖白名单 */
49
51
  syncLiveRoomLotteryWhiteList(): Promise<void>;
50
52
  /** 计算指定直播间中,所有观看任务的「应发未发」奖励(补发清单) */
@@ -6,10 +6,10 @@ declare class PointsMallService extends BaseService implements Service.PointsMal
6
6
  batchUpdateProducts(request: Service.Request.batchUpdateProducts): Promise<void>;
7
7
  batchToggleProductEnabled(request: Service.Request.batchToggleProductEnabled): Promise<void>;
8
8
  queryProducts(request: Service.Request.queryProducts): Promise<Service.Response.queryProducts>;
9
+ queryProductTagList(request: Service.Request.queryProductTagList): Promise<Service.Response.queryProductTagList>;
9
10
  getProductDetail(request: Service.Request.getProductDetail): Promise<Service.Response.getProductDetail>;
10
11
  queryEnabledAndOnlineProducts(request: Service.Request.queryEnabledAndOnlineProducts): Promise<Service.Response.queryEnabledAndOnlineProducts>;
11
12
  queryProductList(request: Service.Request.queryProductList): Promise<Service.Response.queryProductList>;
12
- queryProductTagList(request: Service.Request.queryProductTagList): Promise<Service.Response.queryProductTagList>;
13
13
  queryStoreVisibleProducts(request: Service.Request.queryStoreVisibleProducts): Promise<Service.Response.queryEnabledAndOnlineProducts>;
14
14
  getAvailableCouponCountForProduct(request: Service.Request.getAvailableCouponCountForProduct): Promise<Service.Response.getAvailableCouponCountForProduct>;
15
15
  getConsumptionThresholdInfo(request: Service.Request.getConsumptionThresholdInfo): Promise<Service.Response.getConsumptionThresholdInfo>;
@@ -33,6 +33,9 @@ let PointsMallService = class PointsMallService extends BaseService_1.default {
33
33
  queryProducts(request) {
34
34
  return (0, http_1.callApi)(this.getApiUrl(this.queryProducts), request);
35
35
  }
36
+ queryProductTagList(request) {
37
+ return (0, http_1.callApi)(this.getApiUrl(this.queryProductTagList), request);
38
+ }
36
39
  getProductDetail(request) {
37
40
  return (0, http_1.callApi)(this.getApiUrl(this.getProductDetail), request);
38
41
  }
@@ -42,9 +45,6 @@ let PointsMallService = class PointsMallService extends BaseService_1.default {
42
45
  queryProductList(request) {
43
46
  return (0, http_1.callApi)(this.getApiUrl(this.queryProductList), request);
44
47
  }
45
- queryProductTagList(request) {
46
- return (0, http_1.callApi)(this.getApiUrl(this.queryProductTagList), request);
47
- }
48
48
  queryStoreVisibleProducts(request) {
49
49
  return (0, http_1.callApi)(this.getApiUrl(this.queryStoreVisibleProducts), request);
50
50
  }
@@ -81,6 +81,11 @@ __decorate([
81
81
  (0, tsoa_1.Post)('query-products'),
82
82
  __param(0, (0, tsoa_1.Body)())
83
83
  ], PointsMallService.prototype, "queryProducts", null);
84
+ __decorate([
85
+ (0, tsoa_1.OperationId)('查询积分商城商品标签列表'),
86
+ (0, tsoa_1.Post)('query-product-tag-list'),
87
+ __param(0, (0, tsoa_1.Body)())
88
+ ], PointsMallService.prototype, "queryProductTagList", null);
84
89
  __decorate([
85
90
  (0, tsoa_1.OperationId)('根据商品ID查询商品详情'),
86
91
  (0, tsoa_1.Post)('get-product-detail'),
@@ -96,11 +101,6 @@ __decorate([
96
101
  (0, tsoa_1.Post)('query-product-list'),
97
102
  __param(0, (0, tsoa_1.Body)())
98
103
  ], PointsMallService.prototype, "queryProductList", null);
99
- __decorate([
100
- (0, tsoa_1.OperationId)('查询积分商城商品标签列表'),
101
- (0, tsoa_1.Post)('query-product-tag-list'),
102
- __param(0, (0, tsoa_1.Body)())
103
- ], PointsMallService.prototype, "queryProductTagList", null);
104
104
  __decorate([
105
105
  (0, tsoa_1.OperationId)('查询门店可见积分商品'),
106
106
  (0, tsoa_1.Post)('query-store-visible-products'),
@@ -59,7 +59,7 @@ export declare namespace Service {
59
59
  /** 兑换时间规则 */
60
60
  exchangeTimeRule?: Entity.ExchangeTimeRule;
61
61
  }
62
- /** 后台管理列表 - 完整12个字段 */
62
+ /** 后台管理列表项 */
63
63
  interface AdminProductItem {
64
64
  id: string;
65
65
  sortOrder: number;
@@ -77,6 +77,7 @@ export declare namespace Service {
77
77
  productTagName: string;
78
78
  applicableUserType: ENUM.POINT_MALL.ApplicableUserType;
79
79
  last7dSalesVolume: number;
80
+ last7dSalesUpdatedAt: number;
80
81
  stock: number;
81
82
  limitPerUser?: number;
82
83
  pointsRequired: number;
@@ -170,8 +171,14 @@ export declare namespace Service {
170
171
  sortOrder?: number;
171
172
  consumptionPeriodDays?: number;
172
173
  consumptionThresholdAmount?: number;
174
+ /** 商品标签 ID(TagService),创建必填 */
175
+ productTagId?: string;
176
+ /** 适用用户类型;未传时由服务端按规则默认(创建场景通常为 ALL) */
177
+ applicableUserType?: ENUM.POINT_MALL.ApplicableUserType;
173
178
  }
174
179
  export interface CreateProduct extends BaseParams {
180
+ /** 商品标签 ID,创建必填 */
181
+ productTagId: string;
175
182
  }
176
183
  export interface UpdateProduct extends Partial<BaseParams> {
177
184
  id: string;
@@ -203,6 +210,13 @@ export declare namespace Service {
203
210
  page?: number;
204
211
  /** 每页数量 */
205
212
  pageSize?: number;
213
+ /** 商品标签 ID 列表;传入时按标签过滤 */
214
+ productTagIds?: string[];
215
+ /** 适用用户类型;传入时按用户类型过滤 */
216
+ applicableUserType?: ENUM.POINT_MALL.ApplicableUserType;
217
+ }
218
+ /** 查询积分商城商品标签列表(无业务入参) */
219
+ export interface queryProductTagList {
206
220
  }
207
221
  /** 查询开启且上架的积分商城列表 */
208
222
  export interface queryEnabledAndOnlineProducts {
@@ -228,9 +242,6 @@ export declare namespace Service {
228
242
  /** 每页数量 */
229
243
  pageSize?: number;
230
244
  }
231
- /** 查询积分商城商品标签列表 */
232
- export interface queryProductTagList {
233
- }
234
245
  /** 查询门店可见积分商品 */
235
246
  export interface queryStoreVisibleProducts {
236
247
  /** 门店ID */
@@ -375,14 +386,14 @@ export declare namespace Service {
375
386
  batchToggleProductEnabled(request: Service.Request.batchToggleProductEnabled): Promise<void>;
376
387
  /** 根据条件查询积分商城商品 */
377
388
  queryProducts(request: Service.Request.queryProducts): Promise<Service.Response.queryProducts>;
389
+ /** 查询积分商城商品标签列表 */
390
+ queryProductTagList(request: Service.Request.queryProductTagList): Promise<Service.Response.queryProductTagList>;
378
391
  /** 根据商品ID查询商品详情 */
379
392
  getProductDetail(request: Service.Request.getProductDetail): Promise<Service.Response.getProductDetail>;
380
393
  /** 查询开启且上架的积分商城列表 */
381
394
  queryEnabledAndOnlineProducts(request: Service.Request.queryEnabledAndOnlineProducts): Promise<Service.Response.queryEnabledAndOnlineProducts>;
382
395
  /** 新版C端积分商城列表 */
383
396
  queryProductList(request: Service.Request.queryProductList): Promise<Service.Response.queryProductList>;
384
- /** 查询积分商城商品标签列表 */
385
- queryProductTagList(request: Service.Request.queryProductTagList): Promise<Service.Response.queryProductTagList>;
386
397
  /** 查询门店可见积分商品 */
387
398
  queryStoreVisibleProducts(request: Service.Request.queryStoreVisibleProducts): Promise<Service.Response.queryEnabledAndOnlineProducts>;
388
399
  /** 查询指定商品用户可用优惠券的数量 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/ecommerce-promotion-service-node-sdk",
3
- "version": "0.1.64",
3
+ "version": "0.1.66",
4
4
  "description": "EcommercePromotionService Node.js SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",