@be-link/ecommerce-plan-allocation-service-node-sdk 0.0.9 → 0.0.11

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.
@@ -10,6 +10,7 @@ declare class LogisticsService extends BaseService implements Service.LogisticsC
10
10
  getStoreStockInOrderDetail(request: Service.Request.GetStoreStockInOrderDetail): Promise<Service.Response.GetStoreStockInOrderDetail>;
11
11
  getStoreStockInOrderLogisticsList(request: Service.Request.GetStoreStockInOrderLogisticsList): Promise<Service.Response.GetStoreStockInOrderLogisticsList>;
12
12
  getProductList(request: Service.Request.GetProductList): Promise<Service.Response.GetProductList>;
13
+ subscribeWayBill(request: Service.Request.SubscribeWayBill): Promise<void>;
13
14
  }
14
15
  export declare const logisticsService: LogisticsService;
15
16
  export default logisticsService;
@@ -45,6 +45,9 @@ let LogisticsService = class LogisticsService extends BaseService_1.default {
45
45
  getProductList(request) {
46
46
  return (0, http_1.callApi)(this.getApiUrl(this.getProductList), request);
47
47
  }
48
+ subscribeWayBill(request) {
49
+ return (0, http_1.callApi)(this.getApiUrl(this.subscribeWayBill), request);
50
+ }
48
51
  };
49
52
  __decorate([
50
53
  (0, tsoa_1.OperationId)('批量导入运货单'),
@@ -86,6 +89,11 @@ __decorate([
86
89
  (0, tsoa_1.Post)('get-product-list'),
87
90
  __param(0, (0, tsoa_1.Body)())
88
91
  ], LogisticsService.prototype, "getProductList", null);
92
+ __decorate([
93
+ (0, tsoa_1.OperationId)('测试订阅物流轨迹'),
94
+ (0, tsoa_1.Post)('subscribe-way-bill'),
95
+ __param(0, (0, tsoa_1.Body)())
96
+ ], LogisticsService.prototype, "subscribeWayBill", null);
89
97
  LogisticsService = __decorate([
90
98
  (0, tsoa_1.Route)('logistics'),
91
99
  (0, tsoa_1.Tags)('Logistics')
@@ -1,6 +1,5 @@
1
1
  import { GetTrackingInfoAccepted } from '@be-link/17trak-api-sdk';
2
2
  import { FastifyRequest } from 'fastify';
3
- import type { ProductServiceTypes } from '@be-link/ecommerce-product-service-node-sdk';
4
3
  export declare namespace Service {
5
4
  /** 物流信息实体 */
6
5
  interface Logistics {
@@ -41,6 +40,26 @@ export declare namespace Service {
41
40
  /** 快递公司名称(扩展字段,从 Carriers 表补充) */
42
41
  carrierName?: string;
43
42
  }
43
+ /** 商品简要信息(只包含必要字段) */
44
+ interface ProductBasicInfo {
45
+ /** 商品ID */
46
+ productId: string;
47
+ /** 商品名称 */
48
+ productName: string;
49
+ /** 商品图片 */
50
+ productImage: string;
51
+ }
52
+ /** 商品详细信息(包含必要字段和补充字段) */
53
+ interface ProductDetailInfo extends ProductBasicInfo {
54
+ /** 规格名称(来自ProductServiceTypes) */
55
+ specName?: string;
56
+ /** 应配货量 */
57
+ expectedQuantity?: number;
58
+ /** 仓库实发 */
59
+ actualSentQuantity?: number;
60
+ /** 仓库实收 */
61
+ actualReceivedQuantity?: number;
62
+ }
44
63
  /** 入库单详情 */
45
64
  interface StockInOrder {
46
65
  /** 入库单ID */
@@ -83,8 +102,19 @@ export declare namespace Service {
83
102
  updatedAt: number;
84
103
  /** 批次编码(从 EcsDistributionBatch 表查询,targetId 对应入库单 id) */
85
104
  code?: string;
86
- /** 商品列表(参考 getProductList 返回的商品信息) */
87
- products?: ProductServiceTypes.Response.queryProductList['list'];
105
+ /** 商品列表(只包含必要字段:productId, productName, productImage) */
106
+ products?: ProductBasicInfo[];
107
+ /** 统计运单号数量(排除subscribeStatus=2的运单) */
108
+ waybillCount?: number;
109
+ }
110
+ /** 配货单运单号 */
111
+ interface WayBill {
112
+ /** 配货单ID */
113
+ allocationOrderId: string;
114
+ /** 快递单号 */
115
+ num: string;
116
+ /** 快递公司编码 */
117
+ carrier: number;
88
118
  }
89
119
  namespace Request {
90
120
  /** 批量导入运货单 */
@@ -113,12 +143,8 @@ export declare namespace Service {
113
143
  }
114
144
  /** 配货单单独写入运货单 */
115
145
  interface WriteWaybill {
116
- /** 配货单ID */
117
- allocationOrderId: string;
118
- /** 快递单号 */
119
- num: string;
120
- /** 快递公司编码 */
121
- carrier: number;
146
+ /** 编辑运单号 */
147
+ wayBill: WayBill[];
122
148
  }
123
149
  /** 运货单公司编码列表 */
124
150
  interface GetCarrierList {
@@ -165,6 +191,10 @@ export declare namespace Service {
165
191
  /** 门店入库单ID */
166
192
  storeStockInOrderId: string;
167
193
  }
194
+ /** 订阅运单号 */
195
+ interface SubscribeWayBill {
196
+ num: string;
197
+ }
168
198
  }
169
199
  namespace Response {
170
200
  /** 批量导入运货单结果 */
@@ -173,6 +203,8 @@ export declare namespace Service {
173
203
  successAllocationOrderIds: string[];
174
204
  /** 系统中不存在(或不满足条件)的配货单ID列表 */
175
205
  failedAllocationOrderIds: string[];
206
+ /** Excel解析错误信息列表 */
207
+ errors: string[];
176
208
  }
177
209
  /** 运货单列表 */
178
210
  interface GetWaybillList {
@@ -204,8 +236,8 @@ export declare namespace Service {
204
236
  interface GetProductList {
205
237
  /** 总数 */
206
238
  total: number;
207
- /** 商品列表 */
208
- data: ProductServiceTypes.Response.queryProductList['list'];
239
+ /** 商品列表(包含所有字段) */
240
+ data: ProductDetailInfo[];
209
241
  }
210
242
  /** 门店入库单运货单物流信息列表 */
211
243
  interface GetStoreStockInOrderLogisticsList {
@@ -230,5 +262,7 @@ export declare namespace Service {
230
262
  getStoreStockInOrderLogisticsList(request: Request.GetStoreStockInOrderLogisticsList, req?: FastifyRequest): Promise<Response.GetStoreStockInOrderLogisticsList>;
231
263
  /** 门店入库单商品列表 */
232
264
  getProductList(request: Request.GetProductList, req?: FastifyRequest): Promise<Response.GetProductList>;
265
+ /** 测试订阅运单号 */
266
+ subscribeWayBill(request: Request.SubscribeWayBill, req?: FastifyRequest): Promise<void>;
233
267
  }
234
268
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/ecommerce-plan-allocation-service-node-sdk",
3
- "version": "0.0.9",
3
+ "version": "0.0.11",
4
4
  "description": "EcommercePlanAllocationService Node.js SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",