@be-link/ecommerce-plan-allocation-service-node-sdk 0.0.13 → 0.0.15

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,3 +1,4 @@
1
+ import type { ExpressDeliveryApiResponseEnvelope, RealTimeQueryData } from '@be-link/express-delivery-api-sdk';
1
2
  import { FastifyRequest } from 'fastify';
2
3
  export declare namespace Service {
3
4
  /** 物流信息实体 */
@@ -14,12 +15,10 @@ export declare namespace Service {
14
15
  groupId: string;
15
16
  /** 运单号 */
16
17
  num: string;
17
- /** 公司编码 */
18
- carrier: number;
18
+ /** 公司编码(CarrierCompany.id,小写字符串) */
19
+ carrier: string;
19
20
  /** 运单状态 */
20
21
  status: number;
21
- /** 第三方运单状态 */
22
- statusText: string;
23
22
  /** 收货手机号码 */
24
23
  phone: string;
25
24
  /** 订阅状态 */
@@ -110,8 +109,8 @@ export declare namespace Service {
110
109
  interface WayBill {
111
110
  /** 快递单号 */
112
111
  num: string;
113
- /** 快递公司编码 */
114
- carrier: number;
112
+ /** 快递公司编码(CarrierCompany.id,小写字符串) */
113
+ carrier: string;
115
114
  }
116
115
  namespace Request {
117
116
  /** 批量导入运货单 */
@@ -131,8 +130,8 @@ export declare namespace Service {
131
130
  allocationOrderId?: string;
132
131
  /** 门店入库单号 */
133
132
  storeStockInOrderId?: string;
134
- /** 快递公司编码 */
135
- carrier?: number;
133
+ /** 快递公司编码(CarrierCompany.id,小写字符串) */
134
+ carrier?: string;
136
135
  /** 订阅状态:0-未订阅、1-订阅失败、2-取消订阅、3-已订阅、4-订阅中 */
137
136
  subscribeStatus?: number;
138
137
  /** 操作人 */
@@ -149,7 +148,7 @@ export declare namespace Service {
149
148
  /** 编辑运单号 */
150
149
  wayBill: WayBill[];
151
150
  }
152
- /** 运货单公司编码列表 */
151
+ /** 运货单公司编码列表(来自 CarrierCompany 表) */
153
152
  interface GetCarrierList {
154
153
  /** 页码 */
155
154
  pageIndex: number;
@@ -220,8 +219,8 @@ export declare namespace Service {
220
219
  interface GetCarrierList {
221
220
  /** 公司编码总数 */
222
221
  total: number;
223
- /** 公司编码列表 公司名称->公司代码 */
224
- data: Record<string, number>;
222
+ /** 公司编码列表 公司名称->公司编码 */
223
+ data: Record<string, string>;
225
224
  }
226
225
  /** 门店入库单列表 */
227
226
  interface GetStoreStockInOrderList {
@@ -255,16 +254,12 @@ export declare namespace Service {
255
254
  /** 位置信息 */
256
255
  location?: string | null;
257
256
  }
258
- /** 物流单号信息 */
259
- interface LogisticsInfo {
260
- /** 快递公司名称(如:顺丰速运、中通快递) */
257
+ /** 物流单号信息(快递100 实时查询返回的完整响应信息,包含 raw 字段,并补充快递公司名称) */
258
+ interface LogisticsInfo extends ExpressDeliveryApiResponseEnvelope<RealTimeQueryData> {
259
+ /** 快递公司名称(根据 com 字段从 CarrierCompany 表查询,如果查询不到则为空字符串) */
261
260
  carrierName: string;
262
- /** 物流单号 */
263
- trackingNumber: string;
264
- /** 物流事件列表(按时间倒序,最新的在前) */
265
- events: LogisticsEvent[];
266
261
  }
267
- /** 门店入库单运货单物流信息列表 */
262
+ /** 门店入库单运货单物流信息列表(直接返回每个运单实时查询结果的完整响应信息) */
268
263
  interface GetStoreStockInOrderLogisticsList {
269
264
  /** 物流信息列表 */
270
265
  data: LogisticsInfo[];
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.13",
3
+ "version": "0.0.15",
4
4
  "description": "EcommercePlanAllocationService Node.js SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",