@be-link/ecommerce-promotion-service-node-sdk 0.1.22 → 0.1.24

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.
@@ -7,6 +7,7 @@ declare class AwardService extends BaseService implements Service.PrizeDistribut
7
7
  liveRoomIssueCoupon(request: Service.Request.liveRoomIssueCoupon): Promise<Service.Response.distributePrize>;
8
8
  queryLiveRoomDistributionStats(request: Service.Request.queryLiveRoomDistributionStats): Promise<Service.Response.queryLiveRoomDistributionStatsResponse>;
9
9
  adminSingleIssueCoupon(request: Service.Request.adminSingleIssueCoupon): Promise<Service.Response.distributePrize>;
10
+ batchIssueCoupon(request: Service.Request.batchIssueCoupon): Promise<Service.Response.distributePrize>;
10
11
  }
11
12
  export declare const awardService: AwardService;
12
13
  export default awardService;
@@ -36,6 +36,9 @@ let AwardService = class AwardService extends BaseService_1.default {
36
36
  adminSingleIssueCoupon(request) {
37
37
  return (0, http_1.callApi)(this.getApiUrl(this.adminSingleIssueCoupon), request);
38
38
  }
39
+ batchIssueCoupon(request) {
40
+ return (0, http_1.callApi)(this.getApiUrl(this.batchIssueCoupon), request);
41
+ }
39
42
  };
40
43
  __decorate([
41
44
  (0, tsoa_1.OperationId)('发放奖励'),
@@ -62,6 +65,11 @@ __decorate([
62
65
  (0, tsoa_1.Post)('admin-single-issue-coupon'),
63
66
  __param(0, (0, tsoa_1.Body)())
64
67
  ], AwardService.prototype, "adminSingleIssueCoupon", null);
68
+ __decorate([
69
+ (0, tsoa_1.OperationId)('批量发放券'),
70
+ (0, tsoa_1.Post)('batch-issue-coupon'),
71
+ __param(0, (0, tsoa_1.Body)())
72
+ ], AwardService.prototype, "batchIssueCoupon", null);
65
73
  AwardService = __decorate([
66
74
  (0, tsoa_1.Route)('award'),
67
75
  (0, tsoa_1.Tags)('Award')
@@ -127,6 +127,34 @@ export declare namespace Service {
127
127
  /** 数量 */
128
128
  quantity?: number;
129
129
  }
130
+ /** 批量发放券请求项 */
131
+ interface batchIssueCouponItem {
132
+ /** 业务编号 */
133
+ bizNo: string;
134
+ /** 直播间ID */
135
+ liveRoomId: string;
136
+ /** 用户ID */
137
+ userId: string;
138
+ /** 优惠券ID */
139
+ couponId: string;
140
+ /** 数量 */
141
+ quantity: number;
142
+ /** 业务ID */
143
+ bizId: string;
144
+ /** 操作人ID */
145
+ operatorId: string;
146
+ /** 开始时间 */
147
+ startTime?: number;
148
+ /** 结束时间 */
149
+ endTime?: number;
150
+ }
151
+ /** 批量发放券 */
152
+ interface batchIssueCoupon {
153
+ /** 批量发放券请求列表 */
154
+ requests: batchIssueCouponItem[];
155
+ /** 发放渠道 */
156
+ getChannel: ENUM.AWARD_ENUM.DISTRIBUTION_CHANNEL;
157
+ }
130
158
  }
131
159
  namespace Response {
132
160
  /** 发放奖励响应 */
@@ -162,5 +190,7 @@ export declare namespace Service {
162
190
  queryLiveRoomDistributionStats(request: Service.Request.queryLiveRoomDistributionStats, req: any): Promise<Service.Response.queryLiveRoomDistributionStatsResponse>;
163
191
  /** 后台单个发券 */
164
192
  adminSingleIssueCoupon(request: Service.Request.adminSingleIssueCoupon, req: any): Promise<Service.Response.distributePrize>;
193
+ /** 批量发放券 */
194
+ batchIssueCoupon(request: Service.Request.batchIssueCoupon, req: any): Promise<Service.Response.distributePrize>;
165
195
  }
166
196
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/ecommerce-promotion-service-node-sdk",
3
- "version": "0.1.22",
3
+ "version": "0.1.24",
4
4
  "description": "EcommercePromotionService Node.js SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",