@be-link/ecommerce-promotion-service-node-sdk 0.0.25 → 0.0.27

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
@@ -129,8 +129,8 @@ export declare namespace ENUM {
129
129
  }
130
130
  /** 券状态中文 */
131
131
  enum COUPON_STATUS_CHINESE {
132
- AVAILABLE = "\u53EF\u7528",
133
- ABANDONED = "\u4F5C\u5E9F"
132
+ AVAILABLE = "\u751F\u6548\u4E2D",
133
+ ABANDONED = "\u5DF2\u4F5C\u5E9F"
134
134
  }
135
135
  /** 领取限制类型 */
136
136
  enum RECEIVE_LIMIT_TYPE {
package/enum.js CHANGED
@@ -150,8 +150,8 @@ var ENUM;
150
150
  /** 券状态中文 */
151
151
  let COUPON_STATUS_CHINESE;
152
152
  (function (COUPON_STATUS_CHINESE) {
153
- COUPON_STATUS_CHINESE["AVAILABLE"] = "\u53EF\u7528";
154
- COUPON_STATUS_CHINESE["ABANDONED"] = "\u4F5C\u5E9F";
153
+ COUPON_STATUS_CHINESE["AVAILABLE"] = "\u751F\u6548\u4E2D";
154
+ COUPON_STATUS_CHINESE["ABANDONED"] = "\u5DF2\u4F5C\u5E9F";
155
155
  })(COUPON_STATUS_CHINESE = COUPON_ENUM.COUPON_STATUS_CHINESE || (COUPON_ENUM.COUPON_STATUS_CHINESE = {}));
156
156
  /** 领取限制类型 */
157
157
  let RECEIVE_LIMIT_TYPE;
@@ -6,7 +6,7 @@ export default abstract class BaseService {
6
6
  /** URL一级路径 */
7
7
  protected abstract prefixUrl: string;
8
8
  /** 子网域名 */
9
- protected readonly natDevHost = "http://yayvmsbg.promotion-service.07vmo6rk.by26x7u9.com:8090";
9
+ protected readonly natDevHost = "https://promotion-service-196345-5-1304510571.sh.run.tcloudbase.com";
10
10
  protected readonly natProdHost = "";
11
11
  /** 获取API URL */
12
12
  protected getApiUrl(func: Function): string;
@@ -12,7 +12,7 @@ const string_1 = require("../utils/string");
12
12
  class BaseService {
13
13
  constructor() {
14
14
  /** 子网域名 */
15
- this.natDevHost = 'http://yayvmsbg.promotion-service.07vmo6rk.by26x7u9.com:8090';
15
+ this.natDevHost = 'https://promotion-service-196345-5-1304510571.sh.run.tcloudbase.com';
16
16
  this.natProdHost = '';
17
17
  }
18
18
  /** 获取API URL */
@@ -1,6 +1,19 @@
1
1
  import { ENUM } from '../../enum';
2
2
  export declare namespace Service {
3
3
  namespace Entity {
4
+ /** 券基础信息 */
5
+ interface CouponBasicInfo {
6
+ id: string;
7
+ name: string;
8
+ couponType: ENUM.COUPON_ENUM.COUPON_TYPE;
9
+ status: ENUM.COUPON_ENUM.COUPON_STATUS;
10
+ originalQty: number;
11
+ lastQty: number;
12
+ stockQty: number;
13
+ instructions: string;
14
+ lifeCycle: CouponLifeCycle;
15
+ usageLimit: CouponUsageLimit;
16
+ }
4
17
  /** 券生命周期 */
5
18
  interface CouponLifeCycle {
6
19
  /** 固定生效时间(时间戳) */
@@ -34,25 +47,15 @@ export declare namespace Service {
34
47
  }
35
48
  /** 券领取限制 */
36
49
  interface CouponReceiveLimit {
37
- /** 自增主键 */
38
- id?: number;
39
50
  /** 券ID */
40
51
  couponId: string;
41
52
  /** 限制维度 */
42
53
  type: ENUM.COUPON_ENUM.RECEIVE_LIMIT_TYPE;
43
54
  /** 限制值 */
44
55
  limitValue: number;
45
- /** 创建时间 */
46
- createdAt?: number;
47
- /** 更新时间 */
48
- updatedAt?: number;
49
- /** 删除时间 */
50
- deletedAt?: number;
51
56
  }
52
57
  /** 券优惠规则 */
53
58
  interface CouponDiscountRule {
54
- /** 自增主键 */
55
- id?: number;
56
59
  /** 券ID */
57
60
  couponId: string;
58
61
  /** 优惠类型 */
@@ -65,29 +68,17 @@ export declare namespace Service {
65
68
  priority: number;
66
69
  /** 规则信息 */
67
70
  extra?: Entity.DiscountRuleExtra;
68
- /** 创建时间 */
69
- createdAt?: number;
70
- /** 更新时间 */
71
- updatedAt?: number;
72
- /** 删除时间 */
73
- deletedAt?: number;
74
71
  }
75
72
  /** 券适用范围 */
76
73
  interface CouponScope {
77
- /** ID */
78
- id?: string;
79
- /** 创建时间 */
80
- createdAt?: number;
81
- /** 更新时间 */
82
- updatedAt?: number;
83
- /** 删除时间 */
84
- deletedAt?: number;
85
74
  /** 券ID */
86
75
  couponId: string;
87
76
  /** 是否可用 */
88
77
  available: boolean;
89
- /** 标签ID */
90
- tagId: string;
78
+ /** */
79
+ scopeValue: string;
80
+ /** 范围类型 */
81
+ scopeType: ENUM.COUPON_ENUM.SCOPE_TYPE;
91
82
  }
92
83
  /** 券操作记录 */
93
84
  interface CouponOperateLog {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/ecommerce-promotion-service-node-sdk",
3
- "version": "0.0.25",
3
+ "version": "0.0.27",
4
4
  "description": "EcommercePromotionService Node.js SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",