@be-link/ecommerce-promotion-service-node-sdk 0.0.35 → 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 +9 -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
|
@@ -94,6 +94,13 @@ export declare namespace Service {
|
|
|
94
94
|
/** 用户列表 */
|
|
95
95
|
userIds: string[];
|
|
96
96
|
}
|
|
97
|
+
/** 后台单个发券 */
|
|
98
|
+
interface adminSingleIssueCoupon {
|
|
99
|
+
/** 优惠券ID */
|
|
100
|
+
couponId: string;
|
|
101
|
+
/** 用户ID */
|
|
102
|
+
userId: string;
|
|
103
|
+
}
|
|
97
104
|
}
|
|
98
105
|
namespace Response {
|
|
99
106
|
/** 发放奖励响应 */
|
|
@@ -127,5 +134,7 @@ export declare namespace Service {
|
|
|
127
134
|
liveRoomIssueCoupon(request: Service.Request.liveRoomIssueCoupon, req: any): Promise<Service.Response.distributePrize>;
|
|
128
135
|
/** 直播间积分&券发放统计 */
|
|
129
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>;
|
|
130
139
|
}
|
|
131
140
|
}
|