@be-link/ecommerce-promotion-service-node-sdk 0.0.20 → 0.0.22

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.
@@ -5,7 +5,6 @@ declare class PointsMallService extends BaseService implements Service.PointsMal
5
5
  batchCreateProducts(request: Service.Request.batchCreateProducts): Promise<Service.Response.batchCreateProducts>;
6
6
  batchUpdateProducts(request: Service.Request.batchUpdateProducts): Promise<void>;
7
7
  batchToggleProductEnabled(request: Service.Request.batchToggleProductEnabled): Promise<void>;
8
- batchToggleProductOnline(request: Service.Request.batchToggleProductOnline): Promise<void>;
9
8
  queryProducts(request: Service.Request.queryProducts): Promise<Service.Response.queryProducts>;
10
9
  getProductDetail(request: Service.Request.getProductDetail): Promise<Service.Response.getProductDetail>;
11
10
  queryEnabledAndOnlineProducts(request: Service.Request.queryEnabledAndOnlineProducts): Promise<Service.Response.queryEnabledAndOnlineProducts>;
@@ -30,9 +30,6 @@ let PointsMallService = class PointsMallService extends BaseService_1.default {
30
30
  batchToggleProductEnabled(request) {
31
31
  return (0, http_1.callApi)(this.getApiUrl(this.batchToggleProductEnabled), request);
32
32
  }
33
- batchToggleProductOnline(request) {
34
- return (0, http_1.callApi)(this.getApiUrl(this.batchToggleProductOnline), request);
35
- }
36
33
  queryProducts(request) {
37
34
  return (0, http_1.callApi)(this.getApiUrl(this.queryProducts), request);
38
35
  }
@@ -58,11 +55,6 @@ __decorate([
58
55
  (0, tsoa_1.Post)('batch-toggle-product-enabled'),
59
56
  __param(0, (0, tsoa_1.Body)())
60
57
  ], PointsMallService.prototype, "batchToggleProductEnabled", null);
61
- __decorate([
62
- (0, tsoa_1.OperationId)('批量是否上下架'),
63
- (0, tsoa_1.Post)('batch-toggle-product-online'),
64
- __param(0, (0, tsoa_1.Body)())
65
- ], PointsMallService.prototype, "batchToggleProductOnline", null);
66
58
  __decorate([
67
59
  (0, tsoa_1.OperationId)('根据条件查询积分商城商品'),
68
60
  (0, tsoa_1.Post)('query-products'),
@@ -20,9 +20,7 @@ export declare namespace Service {
20
20
  /** 兑换类型 */
21
21
  exchangeType: ENUM.POINT_MALL.ExchangeType;
22
22
  /** 是否开启 */
23
- enabled: boolean;
24
- /** 是否上架 */
25
- online: boolean;
23
+ enabled: number;
26
24
  /** 排序权重 */
27
25
  sortOrder: number;
28
26
  }
@@ -34,8 +32,8 @@ export declare namespace Service {
34
32
  productId: string;
35
33
  skuSpecs: string[];
36
34
  salePrice: number;
37
- online: boolean;
38
- enabled: boolean;
35
+ online: number;
36
+ enabled: number;
39
37
  exchangeType: ENUM.POINT_MALL.ExchangeType;
40
38
  stock: number;
41
39
  limitPerUser?: number;
@@ -61,7 +59,7 @@ export declare namespace Service {
61
59
  pointsRequired?: number;
62
60
  couponRequired?: number;
63
61
  exchangeType: ENUM.POINT_MALL.ExchangeType;
64
- online?: boolean;
62
+ enabled?: number;
65
63
  sortOrder?: number;
66
64
  }
67
65
  export interface CreateProduct extends BaseParams {
@@ -82,23 +80,16 @@ export declare namespace Service {
82
80
  /** 主键ID列表 */
83
81
  ids: string[];
84
82
  /** 是否开启 */
85
- enabled: boolean;
86
- }
87
- /** 批量是否上下架 */
88
- export interface batchToggleProductOnline {
89
- /** 主键ID列表 */
90
- ids: string[];
91
- /** 是否上架 */
92
- online: boolean;
83
+ enabled: number;
93
84
  }
94
85
  /** 根据条件查询积分商城商品 */
95
86
  export interface queryProducts {
96
87
  /** 商品ID */
97
88
  productIds?: string[];
98
89
  /** 是否上架,传null/undefined表示不筛选 */
99
- online?: boolean | null | undefined;
90
+ online?: number | null | undefined;
100
91
  /** 是否开启,传null/undefined表示不筛选 */
101
- enabled?: boolean | null | undefined;
92
+ enabled?: number | null | undefined;
102
93
  /** 页码 */
103
94
  page?: number;
104
95
  /** 每页数量 */
@@ -116,9 +107,9 @@ export declare namespace Service {
116
107
  /** 商品ID */
117
108
  productId: string;
118
109
  /** 是否上架 */
119
- online?: boolean;
110
+ online?: number;
120
111
  /** 是否开启 */
121
- enabled?: boolean;
112
+ enabled?: number;
122
113
  }
123
114
  export {};
124
115
  }
@@ -168,8 +159,6 @@ export declare namespace Service {
168
159
  batchUpdateProducts(request: Service.Request.batchUpdateProducts): Promise<void>;
169
160
  /** 批量是否开启 */
170
161
  batchToggleProductEnabled(request: Service.Request.batchToggleProductEnabled): Promise<void>;
171
- /** 批量是否上下架 */
172
- batchToggleProductOnline(request: Service.Request.batchToggleProductOnline): Promise<void>;
173
162
  /** 根据条件查询积分商城商品 */
174
163
  queryProducts(request: Service.Request.queryProducts): Promise<Service.Response.queryProducts>;
175
164
  /** 根据商品ID查询商品详情 */
@@ -136,10 +136,12 @@ export declare namespace Service {
136
136
  /** 剩余待支付金额(分) */
137
137
  remainingAmount: number;
138
138
  /** 最优优惠券组合 */
139
- optimalCoupons?: {
139
+ optimalCoupons: {
140
140
  couponCode: string;
141
141
  discountAmount: number;
142
142
  }[];
143
+ /** 可用优惠券模版 */
144
+ availableCouponTemplates?: string[];
143
145
  /** 积分抵扣规则 */
144
146
  pointsDeductionRule?: Entity.PointsDeductionRule;
145
147
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/ecommerce-promotion-service-node-sdk",
3
- "version": "0.0.20",
3
+ "version": "0.0.22",
4
4
  "description": "EcommercePromotionService Node.js SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",