@be-link/ecommerce-plan-allocation-service-node-sdk 0.0.12 → 0.0.14

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,3 @@
1
- import { GetTrackingInfoAccepted } from '@be-link/17trak-api-sdk';
2
1
  import { FastifyRequest } from 'fastify';
3
2
  export declare namespace Service {
4
3
  /** 物流信息实体 */
@@ -15,12 +14,10 @@ export declare namespace Service {
15
14
  groupId: string;
16
15
  /** 运单号 */
17
16
  num: string;
18
- /** 公司编码 */
19
- carrier: number;
17
+ /** 公司编码(CarrierCompany.id,小写字符串) */
18
+ carrier: string;
20
19
  /** 运单状态 */
21
20
  status: number;
22
- /** 第三方运单状态 */
23
- statusText: string;
24
21
  /** 收货手机号码 */
25
22
  phone: string;
26
23
  /** 订阅状态 */
@@ -111,8 +108,8 @@ export declare namespace Service {
111
108
  interface WayBill {
112
109
  /** 快递单号 */
113
110
  num: string;
114
- /** 快递公司编码 */
115
- carrier: number;
111
+ /** 快递公司编码(CarrierCompany.id,小写字符串) */
112
+ carrier: string;
116
113
  }
117
114
  namespace Request {
118
115
  /** 批量导入运货单 */
@@ -132,8 +129,8 @@ export declare namespace Service {
132
129
  allocationOrderId?: string;
133
130
  /** 门店入库单号 */
134
131
  storeStockInOrderId?: string;
135
- /** 快递公司编码 */
136
- carrier?: number;
132
+ /** 快递公司编码(CarrierCompany.id,小写字符串) */
133
+ carrier?: string;
137
134
  /** 订阅状态:0-未订阅、1-订阅失败、2-取消订阅、3-已订阅、4-订阅中 */
138
135
  subscribeStatus?: number;
139
136
  /** 操作人 */
@@ -150,7 +147,7 @@ export declare namespace Service {
150
147
  /** 编辑运单号 */
151
148
  wayBill: WayBill[];
152
149
  }
153
- /** 运货单公司编码列表 */
150
+ /** 运货单公司编码列表(来自 CarrierCompany 表) */
154
151
  interface GetCarrierList {
155
152
  /** 页码 */
156
153
  pageIndex: number;
@@ -221,8 +218,8 @@ export declare namespace Service {
221
218
  interface GetCarrierList {
222
219
  /** 公司编码总数 */
223
220
  total: number;
224
- /** 公司编码列表 公司名称->公司代码 */
225
- data: Record<string, number>;
221
+ /** 公司编码列表 公司名称->公司编码 */
222
+ data: Record<string, string>;
226
223
  }
227
224
  /** 门店入库单列表 */
228
225
  interface GetStoreStockInOrderList {
@@ -243,10 +240,32 @@ export declare namespace Service {
243
240
  /** 商品列表(包含所有字段) */
244
241
  data: ProductDetailInfo[];
245
242
  }
243
+ /** 物流事件信息 */
244
+ interface LogisticsEvent {
245
+ /** 状态文本(如:已签收、派送中、运输中等) */
246
+ statusText: string;
247
+ /** 时间(格式:YYYY-MM-DD HH:mm:ss) */
248
+ time: string;
249
+ /** 详细信息描述 */
250
+ description: string;
251
+ /** 是否是最新状态(用于UI显示,最新状态显示实心圆圈,历史状态显示空心圆圈) */
252
+ isLatest: boolean;
253
+ /** 位置信息 */
254
+ location?: string | null;
255
+ }
256
+ /** 物流单号信息 */
257
+ interface LogisticsInfo {
258
+ /** 快递公司名称(如:顺丰速运、中通快递) */
259
+ carrierName: string;
260
+ /** 物流单号 */
261
+ trackingNumber: string;
262
+ /** 物流事件列表(按时间倒序,最新的在前) */
263
+ events: LogisticsEvent[];
264
+ }
246
265
  /** 门店入库单运货单物流信息列表 */
247
266
  interface GetStoreStockInOrderLogisticsList {
248
- /** 入库单运单信息列表 */
249
- data: GetTrackingInfoAccepted;
267
+ /** 物流信息列表 */
268
+ data: LogisticsInfo[];
250
269
  }
251
270
  }
252
271
  interface LogisticsController {
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.12",
3
+ "version": "0.0.14",
4
4
  "description": "EcommercePlanAllocationService Node.js SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",