@be-link/ecommerce-promotion-service-node-sdk 0.1.8 → 0.1.10

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/enum.d.ts CHANGED
@@ -200,8 +200,12 @@ export declare namespace ENUM {
200
200
  enum STOCK_CHANGE_TYPE {
201
201
  /** 任务扣减 */
202
202
  TASK_DEDUCT = "TASK_DEDUCT",
203
+ /** 任务取消扣减 */
204
+ TASK_CANCEL_DEDUCT = "TASK_CANCEL_DEDUCT",
203
205
  /** 活动扣减 */
204
206
  ACTIVITY_DEDUCT = "ACTIVITY_DEDUCT",
207
+ /** 活动取消扣减 */
208
+ ACTIVITY_CANCEL_DEDUCT = "ACTIVITY_CANCEL_DEDUCT",
205
209
  /** 手动扣减 */
206
210
  MANUAL_DEDUCT = "MANUAL_DEDUCT",
207
211
  /** 批量手动扣减 */
package/enum.js CHANGED
@@ -231,8 +231,12 @@ var ENUM;
231
231
  (function (STOCK_CHANGE_TYPE) {
232
232
  /** 任务扣减 */
233
233
  STOCK_CHANGE_TYPE["TASK_DEDUCT"] = "TASK_DEDUCT";
234
+ /** 任务取消扣减 */
235
+ STOCK_CHANGE_TYPE["TASK_CANCEL_DEDUCT"] = "TASK_CANCEL_DEDUCT";
234
236
  /** 活动扣减 */
235
237
  STOCK_CHANGE_TYPE["ACTIVITY_DEDUCT"] = "ACTIVITY_DEDUCT";
238
+ /** 活动取消扣减 */
239
+ STOCK_CHANGE_TYPE["ACTIVITY_CANCEL_DEDUCT"] = "ACTIVITY_CANCEL_DEDUCT";
236
240
  /** 手动扣减 */
237
241
  STOCK_CHANGE_TYPE["MANUAL_DEDUCT"] = "MANUAL_DEDUCT";
238
242
  /** 批量手动扣减 */
@@ -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
+ syncLiveRoomLotteryWhiteList(): Promise<void>;
7
8
  }
8
9
  export declare const jobService: JobService;
9
10
  export default jobService;
@@ -24,6 +24,9 @@ let JobService = class JobService extends BaseService_1.default {
24
24
  cleanupCouponCacheTask() {
25
25
  return (0, http_1.callApi)(this.getApiUrl(this.cleanupCouponCacheTask));
26
26
  }
27
+ syncLiveRoomLotteryWhiteList() {
28
+ return (0, http_1.callApi)(this.getApiUrl(this.syncLiveRoomLotteryWhiteList));
29
+ }
27
30
  };
28
31
  __decorate([
29
32
  (0, tsoa_1.OperationId)('过期券模版清理任务'),
@@ -33,6 +36,10 @@ __decorate([
33
36
  (0, tsoa_1.OperationId)('定时清理券缓存任务'),
34
37
  (0, tsoa_1.Post)('cleanup-coupon-cache-task')
35
38
  ], JobService.prototype, "cleanupCouponCacheTask", null);
39
+ __decorate([
40
+ (0, tsoa_1.OperationId)('开播直播间同步抽奖白名单'),
41
+ (0, tsoa_1.Post)('sync-live-room-lottery-white-list')
42
+ ], JobService.prototype, "syncLiveRoomLotteryWhiteList", null);
36
43
  JobService = __decorate([
37
44
  (0, tsoa_1.Route)('job'),
38
45
  (0, tsoa_1.Tags)('Job')
@@ -1,4 +1,19 @@
1
1
  export declare namespace Service {
2
+ namespace Entity {
3
+ /** 抽奖活动信息 */
4
+ interface LotteryActivity {
5
+ Id: number;
6
+ Name: string;
7
+ AwardType: number;
8
+ AwardTheme: string;
9
+ AwardItemConfigs: AwardItemConfig[];
10
+ }
11
+ /** 抽奖活动奖品配置 */
12
+ interface AwardItemConfig {
13
+ AwardId: number;
14
+ AwardItemCount: number;
15
+ }
16
+ }
2
17
  namespace Request { }
3
18
  namespace Response { }
4
19
  interface JobController {
@@ -6,5 +21,7 @@ export declare namespace Service {
6
21
  expireCouponTemplateTask(): Promise<void>;
7
22
  /** 定时清理券缓存任务 */
8
23
  cleanupCouponCacheTask(): Promise<void>;
24
+ /** 开播直播间同步抽奖白名单 */
25
+ syncLiveRoomLotteryWhiteList(): Promise<void>;
9
26
  }
10
27
  }
@@ -166,6 +166,7 @@ export declare namespace Service {
166
166
  couponName: string;
167
167
  couponCode: string;
168
168
  discountAmount: number;
169
+ endtime: number;
169
170
  }[];
170
171
  /** 可用优惠券模版 */
171
172
  availableCouponTemplates: string[];
@@ -194,6 +195,7 @@ export declare namespace Service {
194
195
  couponName: string;
195
196
  couponCode: string;
196
197
  discountAmount: number;
198
+ endtime: number;
197
199
  }[];
198
200
  }
199
201
  /** 积分商城用户选择后再次算价响应 */
@@ -220,6 +222,7 @@ export declare namespace Service {
220
222
  couponName: string;
221
223
  couponCode: string;
222
224
  discountAmount: number;
225
+ endtime: number;
223
226
  }[];
224
227
  /** 是否有效 */
225
228
  isValid: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/ecommerce-promotion-service-node-sdk",
3
- "version": "0.1.8",
3
+ "version": "0.1.10",
4
4
  "description": "EcommercePromotionService Node.js SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",