@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 +3 -1
- package/enum.js +2 -0
- package/modules/award/service.d.ts +1 -0
- package/modules/award/service.js +8 -0
- package/modules/award/types.d.ts +10 -7
- package/modules/coupon/types.d.ts +4 -0
- package/package.json +1 -1
package/enum.d.ts
CHANGED
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;
|
package/modules/award/service.js
CHANGED
|
@@ -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')
|
package/modules/award/types.d.ts
CHANGED
|
@@ -92,11 +92,14 @@ export declare namespace Service {
|
|
|
92
92
|
/** 直播间ID */
|
|
93
93
|
liveRoomId: string;
|
|
94
94
|
/** 用户列表 */
|
|
95
|
-
userIds
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
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 {
|