@be-link/ecommerce-promotion-service-node-sdk 0.1.2 → 0.1.4

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
@@ -22,21 +22,6 @@ export declare namespace ENUM {
22
22
  ACTIVITY = "\u76F4\u64AD\u95F4\u6D3B\u52A8",
23
23
  USER = "\u7528\u6237\u4E3B\u52A8\u9886\u53D6"
24
24
  }
25
- /** 积分发放渠道 */
26
- enum POINTS_ISSUE_CHANNEL {
27
- /** 黑钻会员 */
28
- MEMBER_ORDER = "MEMBER_ORDER",
29
- /** 下单 */
30
- ORDER = "ORDER",
31
- /** 任务 */
32
- TASK = "TASK",
33
- /** 直播间活动 */
34
- ACTIVITY = "ACTIVITY",
35
- /** 用户主动领取 */
36
- USER = "USER",
37
- /** 手动发放 */
38
- MANUAL = "MANUAL"
39
- }
40
25
  /** 积分发放渠道中文 */
41
26
  enum POINTS_ISSUE_CHANNEL_CHINESE {
42
27
  MEMBER_ORDER = "\u9ED1\u94BB\u4F1A\u5458",
package/enum.js CHANGED
@@ -29,22 +29,6 @@ var ENUM;
29
29
  DISTRIBUTION_CHANNEL_CHINESE["ACTIVITY"] = "\u76F4\u64AD\u95F4\u6D3B\u52A8";
30
30
  DISTRIBUTION_CHANNEL_CHINESE["USER"] = "\u7528\u6237\u4E3B\u52A8\u9886\u53D6";
31
31
  })(DISTRIBUTION_CHANNEL_CHINESE = AWARD_ENUM.DISTRIBUTION_CHANNEL_CHINESE || (AWARD_ENUM.DISTRIBUTION_CHANNEL_CHINESE = {}));
32
- /** 积分发放渠道 */
33
- let POINTS_ISSUE_CHANNEL;
34
- (function (POINTS_ISSUE_CHANNEL) {
35
- /** 黑钻会员 */
36
- POINTS_ISSUE_CHANNEL["MEMBER_ORDER"] = "MEMBER_ORDER";
37
- /** 下单 */
38
- POINTS_ISSUE_CHANNEL["ORDER"] = "ORDER";
39
- /** 任务 */
40
- POINTS_ISSUE_CHANNEL["TASK"] = "TASK";
41
- /** 直播间活动 */
42
- POINTS_ISSUE_CHANNEL["ACTIVITY"] = "ACTIVITY";
43
- /** 用户主动领取 */
44
- POINTS_ISSUE_CHANNEL["USER"] = "USER";
45
- /** 手动发放 */
46
- POINTS_ISSUE_CHANNEL["MANUAL"] = "MANUAL";
47
- })(POINTS_ISSUE_CHANNEL = AWARD_ENUM.POINTS_ISSUE_CHANNEL || (AWARD_ENUM.POINTS_ISSUE_CHANNEL = {}));
48
32
  /** 积分发放渠道中文 */
49
33
  let POINTS_ISSUE_CHANNEL_CHINESE;
50
34
  (function (POINTS_ISSUE_CHANNEL_CHINESE) {
@@ -65,6 +65,8 @@ export declare namespace Service {
65
65
  activityId: string;
66
66
  /** 时间戳 */
67
67
  timestamp: number;
68
+ /** 用户ID */
69
+ userId: string;
68
70
  }
69
71
  interface liveRoomIssueCouponEncrypt {
70
72
  /** 加密后的数据 */
@@ -162,6 +162,8 @@ export declare namespace Service {
162
162
  };
163
163
  /** 优惠券组合 */
164
164
  selectedCoupons: {
165
+ couponId: string;
166
+ couponName: string;
165
167
  couponCode: string;
166
168
  discountAmount: number;
167
169
  }[];
@@ -187,7 +189,12 @@ export declare namespace Service {
187
189
  /** 用户可用积分数量 */
188
190
  userAvailablePoints?: number;
189
191
  /** 使用兑换券券码列表 */
190
- usedCoupons?: string[];
192
+ usedCoupons?: {
193
+ couponId: string;
194
+ couponName: string;
195
+ couponCode: string;
196
+ discountAmount: number;
197
+ }[];
191
198
  }
192
199
  /** 积分商城用户选择后再次算价响应 */
193
200
  interface recalculatePointsMallOrder {
@@ -208,7 +215,12 @@ export declare namespace Service {
208
215
  /** 用户选择优惠券聚合 */
209
216
  selectedCouponStats?: Entity.CouponGroupStats[];
210
217
  /** 使用兑换券券码列表 */
211
- usedCoupons?: string[];
218
+ usedCoupons?: {
219
+ couponId: string;
220
+ couponName: string;
221
+ couponCode: string;
222
+ discountAmount: number;
223
+ }[];
212
224
  /** 是否有效 */
213
225
  isValid: boolean;
214
226
  /** 无效code */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/ecommerce-promotion-service-node-sdk",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "EcommercePromotionService Node.js SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",