@be-link/ecommerce-promotion-service-node-sdk 0.0.18 → 0.0.19

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
@@ -418,4 +418,17 @@ export declare namespace ENUM {
418
418
  POINTS_AMOUNT_NOT_ENOUGH = "\u79EF\u5206\u6570\u91CF\u4E0D\u8DB3"
419
419
  }
420
420
  }
421
+ namespace POINT_MALL {
422
+ /** 兑换类型 */
423
+ enum ExchangeType {
424
+ /** 仅积分 */
425
+ POINTS_ONLY = "POINTS_ONLY",
426
+ /** 仅券 */
427
+ COUPON_ONLY = "COUPON_ONLY",
428
+ /** 积分+券 */
429
+ POINTS_AND_COUPON = "POINTS_AND_COUPON",
430
+ /** 其他 */
431
+ OTHER = "OTHER"
432
+ }
433
+ }
421
434
  }
package/enum.js CHANGED
@@ -472,4 +472,19 @@ var ENUM;
472
472
  INVALID_CODE_CHINESE["POINTS_AMOUNT_NOT_ENOUGH"] = "\u79EF\u5206\u6570\u91CF\u4E0D\u8DB3";
473
473
  })(INVALID_CODE_CHINESE = PRICING_CALCULATION_ENUM.INVALID_CODE_CHINESE || (PRICING_CALCULATION_ENUM.INVALID_CODE_CHINESE = {}));
474
474
  })(PRICING_CALCULATION_ENUM = ENUM.PRICING_CALCULATION_ENUM || (ENUM.PRICING_CALCULATION_ENUM = {}));
475
+ let POINT_MALL;
476
+ (function (POINT_MALL) {
477
+ /** 兑换类型 */
478
+ let ExchangeType;
479
+ (function (ExchangeType) {
480
+ /** 仅积分 */
481
+ ExchangeType["POINTS_ONLY"] = "POINTS_ONLY";
482
+ /** 仅券 */
483
+ ExchangeType["COUPON_ONLY"] = "COUPON_ONLY";
484
+ /** 积分+券 */
485
+ ExchangeType["POINTS_AND_COUPON"] = "POINTS_AND_COUPON";
486
+ /** 其他 */
487
+ ExchangeType["OTHER"] = "OTHER";
488
+ })(ExchangeType = POINT_MALL.ExchangeType || (POINT_MALL.ExchangeType = {}));
489
+ })(POINT_MALL = ENUM.POINT_MALL || (ENUM.POINT_MALL = {}));
475
490
  })(ENUM || (exports.ENUM = ENUM = {}));
@@ -1,15 +1,5 @@
1
+ import { ENUM } from '../../enum';
1
2
  export declare namespace Service {
2
- /** 兑换类型 */
3
- enum ExchangeType {
4
- /** 仅积分 */
5
- POINTS_ONLY = "POINTS_ONLY",
6
- /** 仅券 */
7
- COUPON_ONLY = "COUPON_ONLY",
8
- /** 积分+券 */
9
- POINTS_AND_COUPON = "POINTS_AND_COUPON",
10
- /** 其他 */
11
- OTHER = "OTHER"
12
- }
13
3
  namespace Entity {
14
4
  /** 商品积分兑换配置 */
15
5
  interface ProductPointExchange {
@@ -28,7 +18,7 @@ export declare namespace Service {
28
18
  /** 所需积分的数量 */
29
19
  pointsRequired: number;
30
20
  /** 兑换类型 */
31
- exchangeType: ExchangeType;
21
+ exchangeType: ENUM.POINT_MALL.ExchangeType;
32
22
  /** 是否开启 */
33
23
  enabled: boolean;
34
24
  /** 是否上架 */
@@ -46,7 +36,7 @@ export declare namespace Service {
46
36
  salePrice: number;
47
37
  online: boolean;
48
38
  enabled: boolean;
49
- exchangeType: ExchangeType;
39
+ exchangeType: ENUM.POINT_MALL.ExchangeType;
50
40
  stock: number;
51
41
  limitPerUser?: number;
52
42
  pointsRequired: number;
@@ -60,7 +50,7 @@ export declare namespace Service {
60
50
  productName: string;
61
51
  productId: string;
62
52
  productImage: string;
63
- exchangeType: ExchangeType;
53
+ exchangeType: ENUM.POINT_MALL.ExchangeType;
64
54
  pointsRequired: number;
65
55
  couponRequired: number;
66
56
  }
@@ -70,7 +60,7 @@ export declare namespace Service {
70
60
  productId: string;
71
61
  pointsRequired?: number;
72
62
  couponRequired?: number;
73
- exchangeType: ExchangeType;
63
+ exchangeType: ENUM.POINT_MALL.ExchangeType;
74
64
  online?: boolean;
75
65
  sortOrder?: number;
76
66
  }
@@ -1,19 +1,2 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Service = void 0;
4
- var Service;
5
- (function (Service) {
6
- // ==================== 枚举类型 ====================
7
- /** 兑换类型 */
8
- let ExchangeType;
9
- (function (ExchangeType) {
10
- /** 仅积分 */
11
- ExchangeType["POINTS_ONLY"] = "POINTS_ONLY";
12
- /** 仅券 */
13
- ExchangeType["COUPON_ONLY"] = "COUPON_ONLY";
14
- /** 积分+券 */
15
- ExchangeType["POINTS_AND_COUPON"] = "POINTS_AND_COUPON";
16
- /** 其他 */
17
- ExchangeType["OTHER"] = "OTHER";
18
- })(ExchangeType = Service.ExchangeType || (Service.ExchangeType = {}));
19
- })(Service || (exports.Service = Service = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/ecommerce-promotion-service-node-sdk",
3
- "version": "0.0.18",
3
+ "version": "0.0.19",
4
4
  "description": "EcommercePromotionService Node.js SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",