@be-link/ecommerce-promotion-service-node-sdk 0.0.19 → 0.0.21
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 +2 -0
- package/enum.js +2 -0
- package/modules/award/service.d.ts +0 -2
- package/modules/award/service.js +20 -16
- package/modules/award/types.d.ts +2 -6
- package/modules/coupon/types.d.ts +1 -1
- package/modules/pointsMall/types.d.ts +4 -0
- package/modules/pricingCalculation/types.d.ts +6 -3
- package/package.json +1 -1
package/enum.d.ts
CHANGED
package/enum.js
CHANGED
|
@@ -5,8 +5,6 @@ declare class AwardService extends BaseService implements Service.PrizeDistribut
|
|
|
5
5
|
distributePrize(request: Service.Request.distributePrize): Promise<Service.Response.distributePrize>;
|
|
6
6
|
reversePrize(request: Service.Request.reversePrize): Promise<Service.Response.distributePrize>;
|
|
7
7
|
liveRoomIssueCoupon(request: Service.Request.liveRoomIssueCoupon): Promise<Service.Response.distributePrize>;
|
|
8
|
-
issueMemberPoints(request: Service.Request.issueMemberPoints): Promise<Service.Response.distributePrize>;
|
|
9
|
-
getLiveRoomDistributionStats(request: Service.Request.getLiveRoomDistributionStats): Promise<Service.Response.getLiveRoomDistributionStats>;
|
|
10
8
|
}
|
|
11
9
|
export declare const awardService: AwardService;
|
|
12
10
|
export default awardService;
|
package/modules/award/service.js
CHANGED
|
@@ -20,6 +20,26 @@ let AwardService = class AwardService extends BaseService_1.default {
|
|
|
20
20
|
constructor() {
|
|
21
21
|
super(...arguments);
|
|
22
22
|
this.prefixUrl = '/award';
|
|
23
|
+
// @OperationId('会员等级积分发放')
|
|
24
|
+
// @Post('issue-member-points')
|
|
25
|
+
// public issueMemberPoints(
|
|
26
|
+
// @Body() request: Service.Request.issueMemberPoints,
|
|
27
|
+
// ): Promise<Service.Response.distributePrize> {
|
|
28
|
+
// return callApi<Service.PrizeDistributionController['issueMemberPoints']>(
|
|
29
|
+
// this.getApiUrl(this.issueMemberPoints),
|
|
30
|
+
// request,
|
|
31
|
+
// )
|
|
32
|
+
// }
|
|
33
|
+
// @OperationId('统计直播间发放数据')
|
|
34
|
+
// @Post('get-live-room-distribution-stats')
|
|
35
|
+
// public getLiveRoomDistributionStats(
|
|
36
|
+
// @Body() request: Service.Request.getLiveRoomDistributionStats,
|
|
37
|
+
// ): Promise<Service.Response.getLiveRoomDistributionStats> {
|
|
38
|
+
// return callApi<Service.PrizeDistributionController['getLiveRoomDistributionStats']>(
|
|
39
|
+
// this.getApiUrl(this.getLiveRoomDistributionStats),
|
|
40
|
+
// request,
|
|
41
|
+
// )
|
|
42
|
+
// }
|
|
23
43
|
}
|
|
24
44
|
distributePrize(request) {
|
|
25
45
|
return (0, http_1.callApi)(this.getApiUrl(this.distributePrize), request);
|
|
@@ -30,12 +50,6 @@ let AwardService = class AwardService extends BaseService_1.default {
|
|
|
30
50
|
liveRoomIssueCoupon(request) {
|
|
31
51
|
return (0, http_1.callApi)(this.getApiUrl(this.liveRoomIssueCoupon), request);
|
|
32
52
|
}
|
|
33
|
-
issueMemberPoints(request) {
|
|
34
|
-
return (0, http_1.callApi)(this.getApiUrl(this.issueMemberPoints), request);
|
|
35
|
-
}
|
|
36
|
-
getLiveRoomDistributionStats(request) {
|
|
37
|
-
return (0, http_1.callApi)(this.getApiUrl(this.getLiveRoomDistributionStats), request);
|
|
38
|
-
}
|
|
39
53
|
};
|
|
40
54
|
__decorate([
|
|
41
55
|
(0, tsoa_1.OperationId)('发放奖励'),
|
|
@@ -52,16 +66,6 @@ __decorate([
|
|
|
52
66
|
(0, tsoa_1.Post)('live-room-issue-coupon'),
|
|
53
67
|
__param(0, (0, tsoa_1.Body)())
|
|
54
68
|
], AwardService.prototype, "liveRoomIssueCoupon", null);
|
|
55
|
-
__decorate([
|
|
56
|
-
(0, tsoa_1.OperationId)('会员等级积分发放'),
|
|
57
|
-
(0, tsoa_1.Post)('issue-member-points'),
|
|
58
|
-
__param(0, (0, tsoa_1.Body)())
|
|
59
|
-
], AwardService.prototype, "issueMemberPoints", null);
|
|
60
|
-
__decorate([
|
|
61
|
-
(0, tsoa_1.OperationId)('统计直播间发放数据'),
|
|
62
|
-
(0, tsoa_1.Post)('get-live-room-distribution-stats'),
|
|
63
|
-
__param(0, (0, tsoa_1.Body)())
|
|
64
|
-
], AwardService.prototype, "getLiveRoomDistributionStats", null);
|
|
65
69
|
AwardService = __decorate([
|
|
66
70
|
(0, tsoa_1.Route)('award'),
|
|
67
71
|
(0, tsoa_1.Tags)('Award')
|
package/modules/award/types.d.ts
CHANGED
|
@@ -8,9 +8,9 @@ export declare namespace Service {
|
|
|
8
8
|
/** 奖品名称 */
|
|
9
9
|
name?: string;
|
|
10
10
|
/** 奖品类型 */
|
|
11
|
-
type
|
|
11
|
+
type: string;
|
|
12
12
|
/** 奖品数量 */
|
|
13
|
-
quantity
|
|
13
|
+
quantity: number;
|
|
14
14
|
/** 其他扩展信息 */
|
|
15
15
|
[key: string]: any;
|
|
16
16
|
}
|
|
@@ -125,9 +125,5 @@ export declare namespace Service {
|
|
|
125
125
|
reversePrize(request: Service.Request.reversePrize, req: any): Promise<Service.Response.distributePrize>;
|
|
126
126
|
/** 直播间发券 */
|
|
127
127
|
liveRoomIssueCoupon(request: Service.Request.liveRoomIssueCoupon, req: any): Promise<Service.Response.distributePrize>;
|
|
128
|
-
/** 会员等级积分发放 */
|
|
129
|
-
issueMemberPoints(request: Service.Request.issueMemberPoints, req: any): Promise<Service.Response.distributePrize>;
|
|
130
|
-
/** 统计直播间发放数据 */
|
|
131
|
-
getLiveRoomDistributionStats(request: Service.Request.getLiveRoomDistributionStats, req: any): Promise<Service.Response.getLiveRoomDistributionStats>;
|
|
132
128
|
}
|
|
133
129
|
}
|
|
@@ -136,11 +136,14 @@ export declare namespace Service {
|
|
|
136
136
|
/** 剩余待支付金额(分) */
|
|
137
137
|
remainingAmount: number;
|
|
138
138
|
/** 最优优惠券组合 */
|
|
139
|
-
optimalCoupons
|
|
139
|
+
optimalCoupons: {
|
|
140
|
+
couponCode: string;
|
|
141
|
+
discountAmount: number;
|
|
142
|
+
}[];
|
|
143
|
+
/** 可用优惠券模版 */
|
|
144
|
+
availableCouponTemplates?: string[];
|
|
140
145
|
/** 积分抵扣规则 */
|
|
141
146
|
pointsDeductionRule?: Entity.PointsDeductionRule;
|
|
142
|
-
/** 用户所有可用优惠券列表 */
|
|
143
|
-
availableCoupons?: Entity.CouponInfo[];
|
|
144
147
|
}
|
|
145
148
|
/** 优惠明细项 */
|
|
146
149
|
interface DiscountDetailItem {
|