@be-link/ecommerce-trade-service-node-sdk 0.1.139 → 0.1.141

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.
@@ -9,7 +9,6 @@ declare class OrderQueryByInternalService extends BaseService implements PosOrde
9
9
  getOrderSavingAmount(request: PosOrderQueryService.ByInternal.Request.IGetOrderSavingAmount): Promise<PosOrderQueryService.ByInternal.Response.IGetOrderSavingAmount>;
10
10
  mgetOrderProductInfo(request: PosOrderQueryService.ByInternal.Request.IMgetOrderProductInfo): Promise<PosOrderQueryService.ByInternal.Response.IMgetOrderProductInfo[]>;
11
11
  mgetOrderDataForSettlement(request: PosOrderQueryService.ByInternal.Request.IMgetOrderDataForSettlement): Promise<PosOrderQueryService.ByInternal.Response.IMgetOrderDataForSettlement>;
12
- getVerificationRecords(request: PosOrderQueryService.ByInternal.Request.IGetVerificationRecords): Promise<PosOrderQueryService.ByInternal.Response.IGetVerificationRecords>;
13
12
  }
14
13
  export declare const orderQueryByInternalService: OrderQueryByInternalService;
15
14
  export default orderQueryByInternalService;
@@ -42,9 +42,6 @@ let OrderQueryByInternalService = class OrderQueryByInternalService extends Base
42
42
  mgetOrderDataForSettlement(request) {
43
43
  return (0, http_1.callApi)(this.getApiUrl(this.mgetOrderDataForSettlement), request);
44
44
  }
45
- getVerificationRecords(request) {
46
- return (0, http_1.callApi)(this.getApiUrl(this.getVerificationRecords), request);
47
- }
48
45
  };
49
46
  __decorate([
50
47
  (0, tsoa_1.OperationId)('根据订单ID查询订单数据接口(直播服务)'),
@@ -81,11 +78,6 @@ __decorate([
81
78
  (0, tsoa_1.Post)('mget-order-data-for-settlement'),
82
79
  __param(0, (0, tsoa_1.Body)())
83
80
  ], OrderQueryByInternalService.prototype, "mgetOrderDataForSettlement", null);
84
- __decorate([
85
- (0, tsoa_1.OperationId)('获取订单核销流水明细'),
86
- (0, tsoa_1.Post)('verification-records'),
87
- __param(0, (0, tsoa_1.Body)())
88
- ], OrderQueryByInternalService.prototype, "getVerificationRecords", null);
89
81
  OrderQueryByInternalService = __decorate([
90
82
  (0, tsoa_1.Route)('pos/query/internal'),
91
83
  (0, tsoa_1.Tags)('PosOrderQuery')
@@ -107,16 +107,6 @@ export declare namespace PosOrderQueryService {
107
107
  end: number;
108
108
  };
109
109
  }
110
- interface IGetVerificationRecords {
111
- /** 门店ID */
112
- storeId: string;
113
- /** 开始时间 */
114
- startTime: number;
115
- /** 结束时间 */
116
- endTime: number;
117
- /** 商品ID集合 */
118
- productIds?: string[];
119
- }
120
110
  }
121
111
  namespace Response {
122
112
  type IGetOrderByIdForClientBackend = Dto.ITradeOrderForClientBackend;
@@ -207,57 +197,6 @@ export declare namespace PosOrderQueryService {
207
197
  hasMore: boolean;
208
198
  }
209
199
  type IMgetOrderProductInfoList = IMgetOrderProductInfo[];
210
- /** 单条核销流水明细 */
211
- interface IVerificationRecordItem {
212
- /** 主键ID */
213
- id: string;
214
- /** 创建时间 (时间戳) */
215
- createdAt: number;
216
- /** 更新时间 (时间戳) */
217
- updatedAt: number;
218
- /** 订单ID */
219
- orderId: string;
220
- /** 订单商品项表ID */
221
- orderItemId: string;
222
- /** 下单用户Id */
223
- userId: string;
224
- /** 下单门店ID */
225
- storeId: string;
226
- /** 商品ID */
227
- productId: string;
228
- /** 商品名称 */
229
- productName: string;
230
- /** 商品skuID */
231
- productSkuId: string;
232
- /** 商品规格编码 */
233
- productSkuCode: string;
234
- /** 商品单价(分) */
235
- productPrice: number;
236
- /** 商品主图URL */
237
- productImg: string;
238
- /** 商品分类:百货、健康、门店零售、其他生鲜、早八生鲜 */
239
- productCate: PRODUCT_SERVICE_ENUM.PRODUCT_ENUM.CLASSIFICATION;
240
- /** 配货方式:WAREHOSE_DISPATCH-仓发 SUPPLIER_DISPATCH-供自发 */
241
- productDispatch: PRODUCT_SERVICE_ENUM.PRODUCT_ENUM.DISPATCH_TYPE;
242
- /** 商品提货方式:STORE_PICKUP-门店自提 DELIVERY-送货上门 */
243
- productPick: PRODUCT_SERVICE_ENUM.PRODUCT_ENUM.PICK_TYPE;
244
- /** 核销有效期开始时间 */
245
- validStartTime: number;
246
- /** 核销有效期结束时间 */
247
- validEndTime: number;
248
- /** 核销人(操作账号姓名) */
249
- operator: string;
250
- /** 核销时间 */
251
- operatorTime: number;
252
- /** 核销门店 */
253
- verificationStoreId: string;
254
- /** 核销方式:手机号核销、自主核销 */
255
- way: string;
256
- }
257
- interface IGetVerificationRecords {
258
- list: IVerificationRecordItem[];
259
- total: number;
260
- }
261
200
  }
262
201
  interface QueryController {
263
202
  /** 根据订单ID查询订单数据接口(直播服务) */
@@ -274,8 +213,6 @@ export declare namespace PosOrderQueryService {
274
213
  mgetOrderProductInfo(request: Request.IMgetOrderProductInfo, req: any): Promise<Response.IMgetOrderProductInfoList>;
275
214
  /** 批量获取订单数据(结算服务) */
276
215
  mgetOrderDataForSettlement(request: Request.IMgetOrderDataForSettlement, req: any): Promise<Response.IMgetOrderDataForSettlement>;
277
- /** * 获取核销事实流水记录 */
278
- getVerificationRecords(request: Request.IGetVerificationRecords, req?: any): Promise<Response.IGetVerificationRecords>;
279
216
  }
280
217
  }
281
218
  namespace ByCrm {
@@ -7,6 +7,7 @@ declare class StatisticsServiceImpl extends BaseService implements StatisticsSer
7
7
  orderUserStatistics(request: StatisticsService.ByUs.Request.IOrderUserStatistics): Promise<StatisticsService.ByUs.Response.IOrderUserStatistics>;
8
8
  getProductStats(request: StatisticsService.ByProduct.Request.IGetProductStats): Promise<StatisticsService.ByProduct.Response.IGetProductStats>;
9
9
  getSkuStatsByProduct(request: StatisticsService.ByProduct.Request.IGetSkuStatsByProduct): Promise<StatisticsService.ByProduct.Response.IGetSkuStatsByProduct>;
10
+ getVerificationRecords(request: StatisticsService.ByProduct.Request.IGetVerificationRecords): Promise<StatisticsService.ByProduct.Response.IGetVerificationRecords>;
10
11
  }
11
12
  export declare const statisticsService: StatisticsServiceImpl;
12
13
  export default statisticsService;
@@ -36,6 +36,9 @@ let StatisticsServiceImpl = class StatisticsServiceImpl extends BaseService_1.de
36
36
  getSkuStatsByProduct(request) {
37
37
  return (0, http_1.callApi)(this.getApiUrl(this.getSkuStatsByProduct), request);
38
38
  }
39
+ getVerificationRecords(request) {
40
+ return (0, http_1.callApi)(this.getApiUrl(this.getVerificationRecords), request);
41
+ }
39
42
  };
40
43
  __decorate([
41
44
  (0, tsoa_1.OperationId)('正向统计接口'),
@@ -62,6 +65,11 @@ __decorate([
62
65
  (0, tsoa_1.Post)('sku-stats-by-product'),
63
66
  __param(0, (0, tsoa_1.Body)())
64
67
  ], StatisticsServiceImpl.prototype, "getSkuStatsByProduct", null);
68
+ __decorate([
69
+ (0, tsoa_1.OperationId)('获取核销事实流水记录'),
70
+ (0, tsoa_1.Post)('verification-records'),
71
+ __param(0, (0, tsoa_1.Body)())
72
+ ], StatisticsServiceImpl.prototype, "getVerificationRecords", null);
65
73
  StatisticsServiceImpl = __decorate([
66
74
  (0, tsoa_1.Route)('statistics'),
67
75
  (0, tsoa_1.Tags)('Statistics')
@@ -154,6 +154,16 @@ export declare namespace StatisticsService {
154
154
  /** 结束时间 */
155
155
  endTime: number;
156
156
  }
157
+ interface IGetVerificationRecords {
158
+ /** 门店Id */
159
+ storeId: string;
160
+ /** 商品ID[] - 筛选用 */
161
+ productIds?: string[];
162
+ /** 开始时间 */
163
+ startTime: number;
164
+ /** 结束时间 */
165
+ endTime: number;
166
+ }
157
167
  }
158
168
  namespace Response {
159
169
  interface IProductStatItem {
@@ -199,12 +209,27 @@ export declare namespace StatisticsService {
199
209
  interface IGetSkuStatsByProduct {
200
210
  list: ISkuStatDetailItem[];
201
211
  }
212
+ interface IVerificationRecordItem {
213
+ /** 订单ID */
214
+ orderId: string;
215
+ /** 商品ID */
216
+ productId: string;
217
+ /** SKU ID */
218
+ skuId: string;
219
+ /** 核销数量 */
220
+ verifiedCount: number;
221
+ }
222
+ interface IGetVerificationRecords {
223
+ list: IVerificationRecordItem[];
224
+ }
202
225
  }
203
226
  interface QueryController {
204
227
  /** 商品交易数据统计(按商品粒度) */
205
228
  getProductStats(request: Request.IGetProductStats, req?: any): Promise<Response.IGetProductStats>;
206
229
  /** 查询指定商品下的所有 SKU 交易明细 */
207
230
  getSkuStatsByProduct(request: Request.IGetSkuStatsByProduct, req?: any): Promise<Response.IGetSkuStatsByProduct>;
231
+ /** 获取核销事实流水记录 */
232
+ getVerificationRecords(request: Request.IGetVerificationRecords, req?: any): Promise<Response.IGetVerificationRecords>;
208
233
  }
209
234
  }
210
235
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/ecommerce-trade-service-node-sdk",
3
- "version": "0.1.139",
3
+ "version": "0.1.141",
4
4
  "description": "EcommerceTradeService Node.js SDK",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",