@be-link/ecommerce-backend-bff-service-node-sdk 0.0.80 → 0.0.82

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.
@@ -1,4 +1,5 @@
1
1
  import type { POS } from '@be-link/ecommerce-trade-service-node-sdk';
2
+ import { StandardResponse } from '../../../../types';
2
3
  export declare namespace PandoraOrderCoreService {
3
4
  namespace Request {
4
5
  type shipOrder = POS.PosOrderCoreTypes.ByWeb.Request.IShipOrder;
@@ -11,8 +12,11 @@ export declare namespace PandoraOrderCoreService {
11
12
  type updateOrderAddress = POS.PosOrderCoreTypes.ByWeb.Response.IUpdateOrderAddress;
12
13
  }
13
14
  interface OrderCoreController {
14
- shipOrder(request: Request.shipOrder): any;
15
- batchShipOrder(request: Request.batchShipOrder): any;
16
- updateOrderAddress(request: Request.updateOrderAddress): any;
15
+ /** 单个订单发货 */
16
+ shipOrder(request: Request.shipOrder): Promise<StandardResponse<Response.shipOrder>>;
17
+ /** 批量订单发货 */
18
+ batchShipOrder(request: Request.batchShipOrder): Promise<StandardResponse<Response.batchShipOrder>>;
19
+ /** 更新订单地址 */
20
+ updateOrderAddress(request: Request.updateOrderAddress): Promise<StandardResponse<Response.updateOrderAddress>>;
17
21
  }
18
22
  }
@@ -1,4 +1,5 @@
1
1
  import type { POS, ROS, DTO } from '@be-link/ecommerce-trade-service-node-sdk';
2
+ import { StandardResponse } from '../../../../types';
2
3
  export declare namespace PandoraOrderQueryService {
3
4
  namespace Request {
4
5
  type list = POS.PosOrderQueryTypes.ByWeb.Request.IOrderList;
@@ -13,9 +14,13 @@ export declare namespace PandoraOrderQueryService {
13
14
  type reverseOrderList = DTO.ReverseQueryResult[];
14
15
  }
15
16
  interface OrderQueryController {
16
- list(request: Request.list): any;
17
- orderDetail(request: Request.orderDetail): any;
18
- getOrderAddress(request: Request.getOrderAddress): any;
19
- reverseOrderList(request: Request.reverseOrderList): any;
17
+ /** 订单列表(简化数据) */
18
+ list(request: Request.list): Promise<StandardResponse<Response.list>>;
19
+ /** 订单详情 */
20
+ orderDetail(request: Request.orderDetail): Promise<StandardResponse<Response.orderDetail>>;
21
+ /** 获取订单地址 */
22
+ getOrderAddress(request: Request.getOrderAddress): Promise<StandardResponse<Response.getOrderAddress>>;
23
+ /** 逆向订单列表(退款订单) */
24
+ reverseOrderList(request: Request.reverseOrderList): Promise<StandardResponse<Response.reverseOrderList>>;
20
25
  }
21
26
  }
@@ -13,7 +13,7 @@ const BaseService_1 = __importDefault(require("../../BaseService"));
13
13
  class PandoraPointRuleService extends BaseService_1.default {
14
14
  constructor() {
15
15
  super(...arguments);
16
- this.prefixUrl = '/pandora/point-rule';
16
+ this.prefixUrl = 'point/rule';
17
17
  }
18
18
  /**
19
19
  * 创建积分规则
@@ -1,226 +1,23 @@
1
+ import type { PointRuleControllerTypes } from '@be-link/ecommerce-task-center-service-node-sdk';
1
2
  import { StandardResponse } from '../../../../types';
2
3
  export declare namespace PandoraPointRuleService {
3
- /** 规则操作日志信息 */
4
- interface RuleOperationLogInfo {
5
- /** 日志ID */
6
- id: string;
7
- /** 规则ID */
8
- ruleId: string;
9
- /** 变更类型 */
10
- changeType: string;
11
- /** 变更前数据 */
12
- beforeData: any;
13
- /** 变更后数据 */
14
- afterData: any;
15
- /** 操作人ID */
16
- operatorId: string;
17
- /** 操作人名称 */
18
- operatorName: string;
19
- /** 备注 */
20
- remark: string;
21
- /** 创建时间 */
22
- createdAt: number;
23
- /** 更新时间 */
24
- updatedAt: number;
25
- }
26
- /** 积分规则信息 */
27
- interface PointRuleInfo {
28
- /** 规则ID */
29
- id: string;
30
- /** 规则名称 */
31
- ruleName: string;
32
- /** 规则类型 */
33
- ruleType: string;
34
- /** 子规则类型 */
35
- subRuleType: string;
36
- /** 场景 */
37
- scene: string;
38
- /** 状态 */
39
- status: number;
40
- /** 积分比例 */
41
- pointRatio: number;
42
- /** 兑换比例 */
43
- exchangeRatio: number;
44
- /** 参与门槛 */
45
- involvedThreshold: number;
46
- /** 会员倍数 */
47
- memberMultiply: string;
48
- /** 非会员倍数 */
49
- nonMemberMultiply: string;
50
- /** 有效期时间 */
51
- validityTime: number;
52
- /** 会员首单金额 */
53
- memberFirstAmount: number;
54
- /** 抵扣最小门槛 */
55
- deductMinThreshold: number;
56
- /** 消费金额门槛 */
57
- consumeAmountThreshold: number;
58
- /** 每日限制 */
59
- dailyLimit: number;
60
- /** 生效开始时间 */
61
- effectiveStartTime: number;
62
- /** 生效结束时间 */
63
- effectiveEndTime: number;
64
- /** 优先级 */
65
- priority: number;
66
- /** 操作人ID */
67
- operatorId: string;
68
- /** 创建时间 */
69
- createdAt: number;
70
- /** 更新时间 */
71
- updatedAt: number;
72
- /** 删除时间 */
73
- deletedAt: number;
74
- }
75
4
  namespace Request {
76
- /** 创建积分规则请求 */
77
- interface createPointRule {
78
- /** 规则名称 */
79
- ruleName: string;
80
- /** 子规则类型 */
81
- subRuleType: string;
82
- /** 场景 */
83
- scene?: string;
84
- /** 积分比例 */
85
- pointRatio?: number;
86
- /** 兑换比例 */
87
- exchangeRatio?: number;
88
- /** 商品ID列表 */
89
- productIds?: string[];
90
- /** 参与门槛 */
91
- involvedThreshold?: number;
92
- /** 会员倍数 */
93
- memberMultiply?: string;
94
- /** 非会员倍数 */
95
- nonMemberMultiply?: string;
96
- /** 有效期时间 */
97
- validityTime?: number;
98
- /** 抵扣最小门槛 */
99
- deductMinThreshold?: number;
100
- /** 消费金额门槛 */
101
- consumeAmountThreshold?: number;
102
- /** 每日限制 */
103
- dailyLimit?: number;
104
- /** 生效开始时间 */
105
- effectiveStartTime?: number;
106
- /** 生效结束时间 */
107
- effectiveEndTime?: number;
108
- /** 优先级 */
109
- priority?: number;
110
- }
111
- /** 修改积分规则请求 */
112
- interface updatePointRule {
113
- /** 规则ID */
114
- ruleId: string;
115
- /** 规则名称 */
116
- ruleName?: string;
117
- /** 场景 */
118
- scene?: string;
119
- /** 生效开始时间 */
120
- effectiveStartTime?: number;
121
- /** 生效结束时间 */
122
- effectiveEndTime?: number;
123
- /** 优先级 */
124
- priority?: number;
125
- /** 状态 */
126
- status?: number;
127
- /** 商品ID列表 */
128
- productIds?: string[];
129
- }
130
- /** 删除积分规则请求 */
131
- interface deletePointRule {
132
- /** 规则ID */
133
- ruleId: string;
134
- }
135
- /** 查询积分规则请求 */
136
- interface queryPointRule {
137
- /** 规则ID */
138
- ruleId?: string;
139
- /** 子规则类型 */
140
- subRuleType?: string;
141
- /** 场景 */
142
- scene?: string;
143
- /** 状态 */
144
- status?: number;
145
- /** 页码 */
146
- page?: number;
147
- /** 每页数量 */
148
- pageSize?: number;
149
- }
150
- /** 查询商品命中的积分规则请求 */
151
- interface queryPointRuleByProduct {
152
- /** 商品ID */
153
- productId: string;
154
- /** 子规则类型 */
155
- subRuleType: string;
156
- /** 场景 */
157
- scene?: string;
158
- /** 规则类型 */
159
- ruleType?: string;
160
- }
161
- /** 根据规则ID查询关联的商品列表请求 */
162
- interface queryProductsByRuleId {
163
- /** 规则ID */
164
- ruleId: string;
165
- /** 页码 */
166
- page?: number;
167
- /** 每页数量 */
168
- pageSize?: number;
169
- }
170
- /** 查询积分规则操作日志请求 */
171
- interface queryPointRuleOperationLog {
172
- /** 规则ID */
173
- ruleId: string;
174
- /** 变更类型 */
175
- changeType?: string;
176
- /** 页码 */
177
- page?: number;
178
- /** 每页数量 */
179
- pageSize?: number;
180
- }
5
+ type createPointRule = PointRuleControllerTypes.Request.createPointRule;
6
+ type updatePointRule = PointRuleControllerTypes.Request.updatePointRule;
7
+ type deletePointRule = PointRuleControllerTypes.Request.deletePointRule;
8
+ type queryPointRule = PointRuleControllerTypes.Request.queryPointRule;
9
+ type queryPointRuleByProduct = PointRuleControllerTypes.Request.queryPointRuleByProduct;
10
+ type queryProductsByRuleId = PointRuleControllerTypes.Request.queryProductsByRuleId;
11
+ type queryPointRuleOperationLog = PointRuleControllerTypes.Request.queryPointRuleOperationLog;
181
12
  }
182
13
  namespace Response {
183
- /** 创建积分规则响应 */
184
- interface createPointRule {
185
- /** 规则ID */
186
- ruleId: string;
187
- }
188
- /** 修改积分规则响应 */
189
- interface updatePointRule {
190
- }
191
- /** 删除积分规则响应 */
192
- interface deletePointRule {
193
- }
194
- /** 查询积分规则响应 */
195
- interface queryPointRule {
196
- /** 规则列表 */
197
- list: PointRuleInfo[];
198
- /** 总数 */
199
- total: number;
200
- }
201
- /** 查询商品命中的积分规则响应 */
202
- interface queryPointRuleByProduct {
203
- /** 是否命中 */
204
- matched: boolean;
205
- /** 规则列表 */
206
- rules: PointRuleInfo[];
207
- }
208
- /** 根据规则ID查询关联的商品列表响应 */
209
- interface queryProductsByRuleId {
210
- /** 商品ID列表 */
211
- productIds: string[];
212
- /** 商品列表 */
213
- productList: any[];
214
- /** 总数 */
215
- total: number;
216
- }
217
- /** 查询积分规则操作日志响应 */
218
- interface queryPointRuleOperationLog {
219
- /** 日志列表 */
220
- list: RuleOperationLogInfo[];
221
- /** 总数 */
222
- total: number;
223
- }
14
+ type createPointRule = PointRuleControllerTypes.Response.createPointRule;
15
+ type updatePointRule = PointRuleControllerTypes.Response.updatePointRule;
16
+ type deletePointRule = PointRuleControllerTypes.Response.deletePointRule;
17
+ type queryPointRule = PointRuleControllerTypes.Response.queryPointRule;
18
+ type queryPointRuleByProduct = PointRuleControllerTypes.Response.queryPointRuleByProduct;
19
+ type queryProductsByRuleId = PointRuleControllerTypes.Response.queryProductsByRuleId;
20
+ type queryPointRuleOperationLog = PointRuleControllerTypes.Response.queryPointRuleOperationLog;
224
21
  }
225
22
  interface PointRuleController {
226
23
  /** 创建积分规则 */
@@ -21,7 +21,7 @@ export declare namespace PointMallService {
21
21
  /** 兑换类型 */
22
22
  exchangeType: PROMOTION_SERVICE_ENUM.POINT_MALL.ExchangeType;
23
23
  /** 是否开启 */
24
- enabled: boolean;
24
+ enabled: number;
25
25
  /** 排序权重 */
26
26
  sortOrder: number;
27
27
  }
@@ -33,8 +33,8 @@ export declare namespace PointMallService {
33
33
  productId: string;
34
34
  skuSpecs: string[];
35
35
  salePrice: number;
36
- online: boolean;
37
- enabled: boolean;
36
+ online: number;
37
+ enabled: number;
38
38
  exchangeType: PROMOTION_SERVICE_ENUM.POINT_MALL.ExchangeType;
39
39
  stock: number;
40
40
  limitPerUser?: number;
@@ -60,7 +60,7 @@ export declare namespace PointMallService {
60
60
  pointsRequired?: number;
61
61
  couponRequired?: number;
62
62
  exchangeType: PROMOTION_SERVICE_ENUM.POINT_MALL.ExchangeType;
63
- enabled?: boolean;
63
+ enabled?: number;
64
64
  sortOrder?: number;
65
65
  }
66
66
  export interface CreateProduct extends BaseParams {
@@ -81,16 +81,16 @@ export declare namespace PointMallService {
81
81
  /** 主键ID列表 */
82
82
  ids: string[];
83
83
  /** 是否开启 */
84
- enabled: boolean;
84
+ enabled: number;
85
85
  }
86
86
  /** 根据条件查询积分商城商品 */
87
87
  export interface queryProducts {
88
88
  /** 商品ID */
89
89
  productIds?: string[];
90
90
  /** 是否上架,传null/undefined表示不筛选 */
91
- online?: boolean | null | undefined;
91
+ online?: number | null | undefined;
92
92
  /** 是否开启,传null/undefined表示不筛选 */
93
- enabled?: boolean | null | undefined;
93
+ enabled?: number | null | undefined;
94
94
  /** 页码 */
95
95
  page?: number;
96
96
  /** 每页数量 */
@@ -108,9 +108,9 @@ export declare namespace PointMallService {
108
108
  /** 商品ID */
109
109
  productId: string;
110
110
  /** 是否上架 */
111
- online?: boolean;
111
+ online?: number;
112
112
  /** 是否开启 */
113
- enabled?: boolean;
113
+ enabled?: number;
114
114
  }
115
115
  export {};
116
116
  }
@@ -122,7 +122,7 @@ export declare namespace PandoraProductService {
122
122
  /** 提货方式 */
123
123
  pickType: string;
124
124
  /** 发货方式 */
125
- dispatchType?: string;
125
+ dispatchType: string;
126
126
  /** 存储方式 */
127
127
  storageMethod: string;
128
128
  /** 商品分类 */
@@ -350,8 +350,8 @@ export declare namespace PandoraProductService {
350
350
  storageMethod: string;
351
351
  /** 配货方式 */
352
352
  dispatchType: string;
353
- /** 限购 */
354
- purchaseLimit: number;
353
+ /** 限购(可选,因为依赖包中没有此字段) */
354
+ purchaseLimit?: number;
355
355
  /** 价格 */
356
356
  price: number;
357
357
  /** 库存 */
@@ -1,4 +1,5 @@
1
1
  import type { POS } from '@be-link/ecommerce-trade-service-node-sdk';
2
+ import { StandardResponse } from '../../../../types';
2
3
  export declare namespace PandoraOrderCoreService {
3
4
  namespace Request {
4
5
  type shipOrder = POS.PosOrderCoreTypes.ByWeb.Request.IShipOrder;
@@ -11,8 +12,11 @@ export declare namespace PandoraOrderCoreService {
11
12
  type updateOrderAddress = POS.PosOrderCoreTypes.ByWeb.Response.IUpdateOrderAddress;
12
13
  }
13
14
  interface OrderCoreController {
14
- shipOrder(request: Request.shipOrder): any;
15
- batchShipOrder(request: Request.batchShipOrder): any;
16
- updateOrderAddress(request: Request.updateOrderAddress): any;
15
+ /** 单个订单发货 */
16
+ shipOrder(request: Request.shipOrder): Promise<StandardResponse<Response.shipOrder>>;
17
+ /** 批量订单发货 */
18
+ batchShipOrder(request: Request.batchShipOrder): Promise<StandardResponse<Response.batchShipOrder>>;
19
+ /** 更新订单地址 */
20
+ updateOrderAddress(request: Request.updateOrderAddress): Promise<StandardResponse<Response.updateOrderAddress>>;
17
21
  }
18
22
  }
@@ -1,4 +1,5 @@
1
1
  import type { POS, ROS, DTO } from '@be-link/ecommerce-trade-service-node-sdk';
2
+ import { StandardResponse } from '../../../../types';
2
3
  export declare namespace PandoraOrderQueryService {
3
4
  namespace Request {
4
5
  type list = POS.PosOrderQueryTypes.ByWeb.Request.IOrderList;
@@ -13,9 +14,13 @@ export declare namespace PandoraOrderQueryService {
13
14
  type reverseOrderList = DTO.ReverseQueryResult[];
14
15
  }
15
16
  interface OrderQueryController {
16
- list(request: Request.list): any;
17
- orderDetail(request: Request.orderDetail): any;
18
- getOrderAddress(request: Request.getOrderAddress): any;
19
- reverseOrderList(request: Request.reverseOrderList): any;
17
+ /** 订单列表(简化数据) */
18
+ list(request: Request.list): Promise<StandardResponse<Response.list>>;
19
+ /** 订单详情 */
20
+ orderDetail(request: Request.orderDetail): Promise<StandardResponse<Response.orderDetail>>;
21
+ /** 获取订单地址 */
22
+ getOrderAddress(request: Request.getOrderAddress): Promise<StandardResponse<Response.getOrderAddress>>;
23
+ /** 逆向订单列表(退款订单) */
24
+ reverseOrderList(request: Request.reverseOrderList): Promise<StandardResponse<Response.reverseOrderList>>;
20
25
  }
21
26
  }
@@ -7,7 +7,7 @@ import BaseService from '../../BaseService.mjs';
7
7
  export class PandoraPointRuleService extends BaseService {
8
8
  constructor() {
9
9
  super(...arguments);
10
- this.prefixUrl = '/pandora/point-rule';
10
+ this.prefixUrl = 'point/rule';
11
11
  }
12
12
  /**
13
13
  * 创建积分规则
@@ -1,226 +1,23 @@
1
+ import type { PointRuleControllerTypes } from '@be-link/ecommerce-task-center-service-node-sdk';
1
2
  import { StandardResponse } from '../../../../types';
2
3
  export declare namespace PandoraPointRuleService {
3
- /** 规则操作日志信息 */
4
- interface RuleOperationLogInfo {
5
- /** 日志ID */
6
- id: string;
7
- /** 规则ID */
8
- ruleId: string;
9
- /** 变更类型 */
10
- changeType: string;
11
- /** 变更前数据 */
12
- beforeData: any;
13
- /** 变更后数据 */
14
- afterData: any;
15
- /** 操作人ID */
16
- operatorId: string;
17
- /** 操作人名称 */
18
- operatorName: string;
19
- /** 备注 */
20
- remark: string;
21
- /** 创建时间 */
22
- createdAt: number;
23
- /** 更新时间 */
24
- updatedAt: number;
25
- }
26
- /** 积分规则信息 */
27
- interface PointRuleInfo {
28
- /** 规则ID */
29
- id: string;
30
- /** 规则名称 */
31
- ruleName: string;
32
- /** 规则类型 */
33
- ruleType: string;
34
- /** 子规则类型 */
35
- subRuleType: string;
36
- /** 场景 */
37
- scene: string;
38
- /** 状态 */
39
- status: number;
40
- /** 积分比例 */
41
- pointRatio: number;
42
- /** 兑换比例 */
43
- exchangeRatio: number;
44
- /** 参与门槛 */
45
- involvedThreshold: number;
46
- /** 会员倍数 */
47
- memberMultiply: string;
48
- /** 非会员倍数 */
49
- nonMemberMultiply: string;
50
- /** 有效期时间 */
51
- validityTime: number;
52
- /** 会员首单金额 */
53
- memberFirstAmount: number;
54
- /** 抵扣最小门槛 */
55
- deductMinThreshold: number;
56
- /** 消费金额门槛 */
57
- consumeAmountThreshold: number;
58
- /** 每日限制 */
59
- dailyLimit: number;
60
- /** 生效开始时间 */
61
- effectiveStartTime: number;
62
- /** 生效结束时间 */
63
- effectiveEndTime: number;
64
- /** 优先级 */
65
- priority: number;
66
- /** 操作人ID */
67
- operatorId: string;
68
- /** 创建时间 */
69
- createdAt: number;
70
- /** 更新时间 */
71
- updatedAt: number;
72
- /** 删除时间 */
73
- deletedAt: number;
74
- }
75
4
  namespace Request {
76
- /** 创建积分规则请求 */
77
- interface createPointRule {
78
- /** 规则名称 */
79
- ruleName: string;
80
- /** 子规则类型 */
81
- subRuleType: string;
82
- /** 场景 */
83
- scene?: string;
84
- /** 积分比例 */
85
- pointRatio?: number;
86
- /** 兑换比例 */
87
- exchangeRatio?: number;
88
- /** 商品ID列表 */
89
- productIds?: string[];
90
- /** 参与门槛 */
91
- involvedThreshold?: number;
92
- /** 会员倍数 */
93
- memberMultiply?: string;
94
- /** 非会员倍数 */
95
- nonMemberMultiply?: string;
96
- /** 有效期时间 */
97
- validityTime?: number;
98
- /** 抵扣最小门槛 */
99
- deductMinThreshold?: number;
100
- /** 消费金额门槛 */
101
- consumeAmountThreshold?: number;
102
- /** 每日限制 */
103
- dailyLimit?: number;
104
- /** 生效开始时间 */
105
- effectiveStartTime?: number;
106
- /** 生效结束时间 */
107
- effectiveEndTime?: number;
108
- /** 优先级 */
109
- priority?: number;
110
- }
111
- /** 修改积分规则请求 */
112
- interface updatePointRule {
113
- /** 规则ID */
114
- ruleId: string;
115
- /** 规则名称 */
116
- ruleName?: string;
117
- /** 场景 */
118
- scene?: string;
119
- /** 生效开始时间 */
120
- effectiveStartTime?: number;
121
- /** 生效结束时间 */
122
- effectiveEndTime?: number;
123
- /** 优先级 */
124
- priority?: number;
125
- /** 状态 */
126
- status?: number;
127
- /** 商品ID列表 */
128
- productIds?: string[];
129
- }
130
- /** 删除积分规则请求 */
131
- interface deletePointRule {
132
- /** 规则ID */
133
- ruleId: string;
134
- }
135
- /** 查询积分规则请求 */
136
- interface queryPointRule {
137
- /** 规则ID */
138
- ruleId?: string;
139
- /** 子规则类型 */
140
- subRuleType?: string;
141
- /** 场景 */
142
- scene?: string;
143
- /** 状态 */
144
- status?: number;
145
- /** 页码 */
146
- page?: number;
147
- /** 每页数量 */
148
- pageSize?: number;
149
- }
150
- /** 查询商品命中的积分规则请求 */
151
- interface queryPointRuleByProduct {
152
- /** 商品ID */
153
- productId: string;
154
- /** 子规则类型 */
155
- subRuleType: string;
156
- /** 场景 */
157
- scene?: string;
158
- /** 规则类型 */
159
- ruleType?: string;
160
- }
161
- /** 根据规则ID查询关联的商品列表请求 */
162
- interface queryProductsByRuleId {
163
- /** 规则ID */
164
- ruleId: string;
165
- /** 页码 */
166
- page?: number;
167
- /** 每页数量 */
168
- pageSize?: number;
169
- }
170
- /** 查询积分规则操作日志请求 */
171
- interface queryPointRuleOperationLog {
172
- /** 规则ID */
173
- ruleId: string;
174
- /** 变更类型 */
175
- changeType?: string;
176
- /** 页码 */
177
- page?: number;
178
- /** 每页数量 */
179
- pageSize?: number;
180
- }
5
+ type createPointRule = PointRuleControllerTypes.Request.createPointRule;
6
+ type updatePointRule = PointRuleControllerTypes.Request.updatePointRule;
7
+ type deletePointRule = PointRuleControllerTypes.Request.deletePointRule;
8
+ type queryPointRule = PointRuleControllerTypes.Request.queryPointRule;
9
+ type queryPointRuleByProduct = PointRuleControllerTypes.Request.queryPointRuleByProduct;
10
+ type queryProductsByRuleId = PointRuleControllerTypes.Request.queryProductsByRuleId;
11
+ type queryPointRuleOperationLog = PointRuleControllerTypes.Request.queryPointRuleOperationLog;
181
12
  }
182
13
  namespace Response {
183
- /** 创建积分规则响应 */
184
- interface createPointRule {
185
- /** 规则ID */
186
- ruleId: string;
187
- }
188
- /** 修改积分规则响应 */
189
- interface updatePointRule {
190
- }
191
- /** 删除积分规则响应 */
192
- interface deletePointRule {
193
- }
194
- /** 查询积分规则响应 */
195
- interface queryPointRule {
196
- /** 规则列表 */
197
- list: PointRuleInfo[];
198
- /** 总数 */
199
- total: number;
200
- }
201
- /** 查询商品命中的积分规则响应 */
202
- interface queryPointRuleByProduct {
203
- /** 是否命中 */
204
- matched: boolean;
205
- /** 规则列表 */
206
- rules: PointRuleInfo[];
207
- }
208
- /** 根据规则ID查询关联的商品列表响应 */
209
- interface queryProductsByRuleId {
210
- /** 商品ID列表 */
211
- productIds: string[];
212
- /** 商品列表 */
213
- productList: any[];
214
- /** 总数 */
215
- total: number;
216
- }
217
- /** 查询积分规则操作日志响应 */
218
- interface queryPointRuleOperationLog {
219
- /** 日志列表 */
220
- list: RuleOperationLogInfo[];
221
- /** 总数 */
222
- total: number;
223
- }
14
+ type createPointRule = PointRuleControllerTypes.Response.createPointRule;
15
+ type updatePointRule = PointRuleControllerTypes.Response.updatePointRule;
16
+ type deletePointRule = PointRuleControllerTypes.Response.deletePointRule;
17
+ type queryPointRule = PointRuleControllerTypes.Response.queryPointRule;
18
+ type queryPointRuleByProduct = PointRuleControllerTypes.Response.queryPointRuleByProduct;
19
+ type queryProductsByRuleId = PointRuleControllerTypes.Response.queryProductsByRuleId;
20
+ type queryPointRuleOperationLog = PointRuleControllerTypes.Response.queryPointRuleOperationLog;
224
21
  }
225
22
  interface PointRuleController {
226
23
  /** 创建积分规则 */
@@ -21,7 +21,7 @@ export declare namespace PointMallService {
21
21
  /** 兑换类型 */
22
22
  exchangeType: PROMOTION_SERVICE_ENUM.POINT_MALL.ExchangeType;
23
23
  /** 是否开启 */
24
- enabled: boolean;
24
+ enabled: number;
25
25
  /** 排序权重 */
26
26
  sortOrder: number;
27
27
  }
@@ -33,8 +33,8 @@ export declare namespace PointMallService {
33
33
  productId: string;
34
34
  skuSpecs: string[];
35
35
  salePrice: number;
36
- online: boolean;
37
- enabled: boolean;
36
+ online: number;
37
+ enabled: number;
38
38
  exchangeType: PROMOTION_SERVICE_ENUM.POINT_MALL.ExchangeType;
39
39
  stock: number;
40
40
  limitPerUser?: number;
@@ -60,7 +60,7 @@ export declare namespace PointMallService {
60
60
  pointsRequired?: number;
61
61
  couponRequired?: number;
62
62
  exchangeType: PROMOTION_SERVICE_ENUM.POINT_MALL.ExchangeType;
63
- enabled?: boolean;
63
+ enabled?: number;
64
64
  sortOrder?: number;
65
65
  }
66
66
  export interface CreateProduct extends BaseParams {
@@ -81,16 +81,16 @@ export declare namespace PointMallService {
81
81
  /** 主键ID列表 */
82
82
  ids: string[];
83
83
  /** 是否开启 */
84
- enabled: boolean;
84
+ enabled: number;
85
85
  }
86
86
  /** 根据条件查询积分商城商品 */
87
87
  export interface queryProducts {
88
88
  /** 商品ID */
89
89
  productIds?: string[];
90
90
  /** 是否上架,传null/undefined表示不筛选 */
91
- online?: boolean | null | undefined;
91
+ online?: number | null | undefined;
92
92
  /** 是否开启,传null/undefined表示不筛选 */
93
- enabled?: boolean | null | undefined;
93
+ enabled?: number | null | undefined;
94
94
  /** 页码 */
95
95
  page?: number;
96
96
  /** 每页数量 */
@@ -108,9 +108,9 @@ export declare namespace PointMallService {
108
108
  /** 商品ID */
109
109
  productId: string;
110
110
  /** 是否上架 */
111
- online?: boolean;
111
+ online?: number;
112
112
  /** 是否开启 */
113
- enabled?: boolean;
113
+ enabled?: number;
114
114
  }
115
115
  export {};
116
116
  }
@@ -122,7 +122,7 @@ export declare namespace PandoraProductService {
122
122
  /** 提货方式 */
123
123
  pickType: string;
124
124
  /** 发货方式 */
125
- dispatchType?: string;
125
+ dispatchType: string;
126
126
  /** 存储方式 */
127
127
  storageMethod: string;
128
128
  /** 商品分类 */
@@ -350,8 +350,8 @@ export declare namespace PandoraProductService {
350
350
  storageMethod: string;
351
351
  /** 配货方式 */
352
352
  dispatchType: string;
353
- /** 限购 */
354
- purchaseLimit: number;
353
+ /** 限购(可选,因为依赖包中没有此字段) */
354
+ purchaseLimit?: number;
355
355
  /** 价格 */
356
356
  price: number;
357
357
  /** 库存 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/ecommerce-backend-bff-service-node-sdk",
3
- "version": "0.0.80",
3
+ "version": "0.0.82",
4
4
  "description": "EcommerceBackendBffService Node.js SDK",
5
5
  "type": "commonjs",
6
6
  "main": "./cjs/index.js",
@@ -28,8 +28,8 @@
28
28
  "@be-link/ecommerce-client-backend-service-node-sdk": "^0.0.11",
29
29
  "@be-link/ecommerce-tag-service-node-sdk": "^0.0.11",
30
30
  "@be-link/ecommerce-store-service-node-sdk": "^0.0.21",
31
- "@be-link/ecommerce-trade-service-node-sdk": "^0.0.29",
32
- "@be-link/ecommerce-task-center-service-node-sdk": "^0.0.17",
31
+ "@be-link/ecommerce-trade-service-node-sdk": "^0.0.30",
32
+ "@be-link/ecommerce-task-center-service-node-sdk": "^0.0.21",
33
33
  "@be-link/ecommerce-promotion-service-node-sdk": "^0.0.26",
34
34
  "axios": "1.13.2",
35
35
  "@be-link/ecommerce-product-service-node-sdk": "0.0.24"