@be-link/ecommerce-promotion-service-node-sdk 0.0.34 → 0.0.36

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
@@ -11,7 +11,9 @@ export declare namespace ENUM {
11
11
  /** 直播间活动 */
12
12
  ACTIVITY = "ACTIVITY",
13
13
  /** 用户主动领取 */
14
- USER = "USER"
14
+ USER = "USER",
15
+ /** 手动发放 */
16
+ MANUAL = "MANUAL"
15
17
  }
16
18
  /** 发放渠道中文 */
17
19
  enum DISTRIBUTION_CHANNEL_CHINESE {
package/enum.js CHANGED
@@ -18,6 +18,8 @@ var ENUM;
18
18
  DISTRIBUTION_CHANNEL["ACTIVITY"] = "ACTIVITY";
19
19
  /** 用户主动领取 */
20
20
  DISTRIBUTION_CHANNEL["USER"] = "USER";
21
+ /** 手动发放 */
22
+ DISTRIBUTION_CHANNEL["MANUAL"] = "MANUAL";
21
23
  })(DISTRIBUTION_CHANNEL = AWARD_ENUM.DISTRIBUTION_CHANNEL || (AWARD_ENUM.DISTRIBUTION_CHANNEL = {}));
22
24
  /** 发放渠道中文 */
23
25
  let DISTRIBUTION_CHANNEL_CHINESE;
@@ -6,6 +6,7 @@ declare class AwardService extends BaseService implements Service.PrizeDistribut
6
6
  reversePrize(request: Service.Request.reversePrize): Promise<Service.Response.distributePrize>;
7
7
  liveRoomIssueCoupon(request: Service.Request.liveRoomIssueCoupon): Promise<Service.Response.distributePrize>;
8
8
  queryLiveRoomDistributionStats(request: Service.Request.queryLiveRoomDistributionStats): Promise<Service.Response.queryLiveRoomDistributionStatsResponse>;
9
+ adminSingleIssueCoupon(request: Service.Request.adminSingleIssueCoupon): Promise<Service.Response.distributePrize>;
9
10
  }
10
11
  export declare const awardService: AwardService;
11
12
  export default awardService;
@@ -33,6 +33,9 @@ let AwardService = class AwardService extends BaseService_1.default {
33
33
  queryLiveRoomDistributionStats(request) {
34
34
  return (0, http_1.callApi)(this.getApiUrl(this.queryLiveRoomDistributionStats), request);
35
35
  }
36
+ adminSingleIssueCoupon(request) {
37
+ return (0, http_1.callApi)(this.getApiUrl(this.adminSingleIssueCoupon), request);
38
+ }
36
39
  };
37
40
  __decorate([
38
41
  (0, tsoa_1.OperationId)('发放奖励'),
@@ -54,6 +57,11 @@ __decorate([
54
57
  (0, tsoa_1.Post)('query-live-room-distribution-stats'),
55
58
  __param(0, (0, tsoa_1.Body)())
56
59
  ], AwardService.prototype, "queryLiveRoomDistributionStats", null);
60
+ __decorate([
61
+ (0, tsoa_1.OperationId)('后台单个发券'),
62
+ (0, tsoa_1.Post)('admin-single-issue-coupon'),
63
+ __param(0, (0, tsoa_1.Body)())
64
+ ], AwardService.prototype, "adminSingleIssueCoupon", null);
57
65
  AwardService = __decorate([
58
66
  (0, tsoa_1.Route)('award'),
59
67
  (0, tsoa_1.Tags)('Award')
@@ -92,11 +92,14 @@ export declare namespace Service {
92
92
  /** 直播间ID */
93
93
  liveRoomId: string;
94
94
  /** 用户列表 */
95
- userIds?: string[];
96
- /** 页码 */
97
- pageIndex?: number;
98
- /** 每页数量 */
99
- pageSize?: number;
95
+ userIds: string[];
96
+ }
97
+ /** 后台单个发券 */
98
+ interface adminSingleIssueCoupon {
99
+ /** 优惠券ID */
100
+ couponId: string;
101
+ /** 用户ID */
102
+ userId: string;
100
103
  }
101
104
  }
102
105
  namespace Response {
@@ -109,8 +112,6 @@ export declare namespace Service {
109
112
  }
110
113
  /** 直播间积分&券发放统计响应 */
111
114
  interface queryLiveRoomDistributionStatsResponse {
112
- /** 总数 */
113
- total: number;
114
115
  /** 数据列表 */
115
116
  list: {
116
117
  /** 用户ID */
@@ -133,5 +134,7 @@ export declare namespace Service {
133
134
  liveRoomIssueCoupon(request: Service.Request.liveRoomIssueCoupon, req: any): Promise<Service.Response.distributePrize>;
134
135
  /** 直播间积分&券发放统计 */
135
136
  queryLiveRoomDistributionStats(request: Service.Request.queryLiveRoomDistributionStats, req: any): Promise<Service.Response.queryLiveRoomDistributionStatsResponse>;
137
+ /** 后台单个发券 */
138
+ adminSingleIssueCoupon(request: Service.Request.adminSingleIssueCoupon, req: any): Promise<Service.Response.distributePrize>;
136
139
  }
137
140
  }
@@ -212,6 +212,8 @@ export declare namespace Service {
212
212
  pageIndex?: number;
213
213
  /** 每页数量 */
214
214
  pageSize?: number;
215
+ /** 券ID */
216
+ id?: string;
215
217
  /** 券名称(模糊查询) */
216
218
  name?: string;
217
219
  /** 券类型 */
@@ -291,6 +293,8 @@ export declare namespace Service {
291
293
  createdAt: number;
292
294
  /** 更新时间 */
293
295
  updatedAt: number;
296
+ /** 创建人 */
297
+ creatorId: string;
294
298
  }
295
299
  /** 券模版列表响应 */
296
300
  interface getCouponTemplateList {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/ecommerce-promotion-service-node-sdk",
3
- "version": "0.0.34",
3
+ "version": "0.0.36",
4
4
  "description": "EcommercePromotionService Node.js SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",