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

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.
@@ -2,12 +2,12 @@ import { Service } from './types';
2
2
  import BaseService from '../BaseService';
3
3
  declare class LogisticsService extends BaseService implements Service.LogisticsController {
4
4
  protected prefixUrl: string;
5
- batchImportWaybill(request: Service.Request.BatchImportWaybill): Promise<void>;
5
+ batchImportWaybill(request: Service.Request.BatchImportWaybill): Promise<Service.Response.BatchImportWaybill>;
6
6
  getWaybillList(request: Service.Request.GetWaybillList): Promise<Service.Response.GetWaybillList>;
7
7
  writeWaybill(request: Service.Request.WriteWaybill): Promise<void>;
8
8
  getCarrierList(request: Service.Request.GetCarrierList): Promise<Service.Response.GetCarrierList>;
9
9
  getStoreStockInOrderList(request: Service.Request.GetStoreStockInOrderList): Promise<Service.Response.GetStoreStockInOrderList>;
10
- getStoreStockInOrderDetailList(request: Service.Request.GetStoreStockInOrderDetailList): Promise<Service.Response.GetStoreStockInOrderDetailList>;
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
13
  }
@@ -36,8 +36,8 @@ let LogisticsService = class LogisticsService extends BaseService_1.default {
36
36
  getStoreStockInOrderList(request) {
37
37
  return (0, http_1.callApi)(this.getApiUrl(this.getStoreStockInOrderList), request);
38
38
  }
39
- getStoreStockInOrderDetailList(request) {
40
- return (0, http_1.callApi)(this.getApiUrl(this.getStoreStockInOrderDetailList), request);
39
+ getStoreStockInOrderDetail(request) {
40
+ return (0, http_1.callApi)(this.getApiUrl(this.getStoreStockInOrderDetail), request);
41
41
  }
42
42
  getStoreStockInOrderLogisticsList(request) {
43
43
  return (0, http_1.callApi)(this.getApiUrl(this.getStoreStockInOrderLogisticsList), request);
@@ -72,10 +72,10 @@ __decorate([
72
72
  __param(0, (0, tsoa_1.Body)())
73
73
  ], LogisticsService.prototype, "getStoreStockInOrderList", null);
74
74
  __decorate([
75
- (0, tsoa_1.OperationId)('门店入库单详情商品列表'),
76
- (0, tsoa_1.Post)('get-store-stock-in-order-detail-list'),
75
+ (0, tsoa_1.OperationId)('门店入库单详情'),
76
+ (0, tsoa_1.Post)('get-store-stock-in-order-detail'),
77
77
  __param(0, (0, tsoa_1.Body)())
78
- ], LogisticsService.prototype, "getStoreStockInOrderDetailList", null);
78
+ ], LogisticsService.prototype, "getStoreStockInOrderDetail", null);
79
79
  __decorate([
80
80
  (0, tsoa_1.OperationId)('门店入库单运货单物流信息列表'),
81
81
  (0, tsoa_1.Post)('get-store-stock-in-order-logistics-list'),
@@ -1,10 +1,13 @@
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';
3
4
  export declare namespace Service {
4
5
  /** 物流信息实体 */
5
6
  interface Logistics {
6
7
  /** 运货单ID */
7
8
  id: string;
9
+ /** 门店ID */
10
+ storeId: string;
8
11
  /** 配货单ID */
9
12
  allocationOrderId: string;
10
13
  /** 门店入库单ID */
@@ -27,27 +30,61 @@ export declare namespace Service {
27
30
  subscribeMessage: string;
28
31
  /** 订阅时间 */
29
32
  subscribeTime: number;
33
+ /** 操作人(导入/写入人) */
34
+ operator?: string;
35
+ /** 创建时间 */
36
+ createdAt?: number;
37
+ /** 更新时间 */
38
+ updatedAt?: number;
39
+ /** 门店名称(扩展字段,从门店服务补充) */
40
+ storeName?: string;
41
+ /** 快递公司名称(扩展字段,从 Carriers 表补充) */
42
+ carrierName?: string;
30
43
  }
31
44
  /** 入库单详情 */
32
45
  interface StockInOrder {
46
+ /** 入库单ID */
47
+ id: string;
48
+ /** 物流信息 */
33
49
  logistics: string;
50
+ /** 供应商名称 */
34
51
  supplyName: string;
52
+ /** 仓库ID */
35
53
  warehouseId: string;
54
+ /** 门店ID */
36
55
  storeId: string;
56
+ /** 配货单ID */
57
+ allocationOrderId: string;
58
+ /** 创建人 */
37
59
  creator: string;
60
+ /** 更新人 */
38
61
  updater: string;
62
+ /** 类型:WAREHOUSE:仓库, STORE:门店 */
39
63
  type: string;
64
+ /** 状态 PENDING:待收货, PARTIAL:部分收货, RECEIVED:已收货, EARLY_COMPLETED:提前完成 */
40
65
  status: string;
66
+ /** 物流状态:0-没有物流信息、1-已入库、2-已到店、3-配送中 */
41
67
  logisticStatus: number;
68
+ /** 收货时间 */
42
69
  receivedAt: number;
70
+ /** 应收数量 */
43
71
  receivableQuantity: number;
72
+ /** 实收数量 */
44
73
  receivedQuantity: number;
74
+ /** 备注 */
45
75
  remark: string;
76
+ /** 扩展字段 */
46
77
  extra: any;
78
+ /** 删除时间 */
47
79
  deletedAt: number;
48
- products: Product[];
49
- }
50
- interface Product {
80
+ /** 创建时间 */
81
+ createdAt: number;
82
+ /** 更新时间 */
83
+ updatedAt: number;
84
+ /** 批次编码(从 EcsDistributionBatch 表查询,targetId 对应入库单 id) */
85
+ code?: string;
86
+ /** 商品列表(参考 getProductList 返回的商品信息) */
87
+ products?: ProductServiceTypes.Response.queryProductList['list'];
51
88
  }
52
89
  namespace Request {
53
90
  /** 批量导入运货单 */
@@ -69,6 +106,10 @@ export declare namespace Service {
69
106
  storeStockInOrderId?: string;
70
107
  /** 快递公司编码 */
71
108
  carrier?: number;
109
+ /** 订阅状态:0-未订阅、1-订阅失败、2-取消订阅、3-已订阅、4-订阅中 */
110
+ subscribeStatus?: number;
111
+ /** 操作人 */
112
+ operator?: string;
72
113
  }
73
114
  /** 配货单单独写入运货单 */
74
115
  interface WriteWaybill {
@@ -101,16 +142,14 @@ export declare namespace Service {
101
142
  /** 入库单生成日期-介于开始时间 */
102
143
  start?: number;
103
144
  /** 入库单生成日期-介于结束时间 */
104
- end?: string;
145
+ end?: number;
146
+ /** 商品名称 */
147
+ productName?: string;
105
148
  }
106
- /** 门店入库单详情商品列表 */
107
- interface GetStoreStockInOrderDetailList {
149
+ /** 门店入库单详情 */
150
+ interface GetStoreStockInOrderDetail {
108
151
  /** 门店入库单ID */
109
152
  storeStockInOrderId: string;
110
- /** 页码 */
111
- pageIndex: number;
112
- /** 每页数量 */
113
- pageSize?: number;
114
153
  }
115
154
  /** 门店入库单运货单物流信息列表 */
116
155
  interface GetStoreStockInOrderLogisticsList {
@@ -128,6 +167,13 @@ export declare namespace Service {
128
167
  }
129
168
  }
130
169
  namespace Response {
170
+ /** 批量导入运货单结果 */
171
+ interface BatchImportWaybill {
172
+ /** 系统中已存在且满足条件的配货单ID列表 */
173
+ successAllocationOrderIds: string[];
174
+ /** 系统中不存在(或不满足条件)的配货单ID列表 */
175
+ failedAllocationOrderIds: string[];
176
+ }
131
177
  /** 运货单列表 */
132
178
  interface GetWaybillList {
133
179
  /** 运货单总数 */
@@ -150,7 +196,7 @@ export declare namespace Service {
150
196
  data: StockInOrder[];
151
197
  }
152
198
  /** 门店入库单详情 */
153
- interface GetStoreStockInOrderDetailList {
199
+ interface GetStoreStockInOrderDetail {
154
200
  /** 入库单详情 */
155
201
  stockInOrder: StockInOrder;
156
202
  }
@@ -159,7 +205,7 @@ export declare namespace Service {
159
205
  /** 总数 */
160
206
  total: number;
161
207
  /** 商品列表 */
162
- data: Product[];
208
+ data: ProductServiceTypes.Response.queryProductList['list'];
163
209
  }
164
210
  /** 门店入库单运货单物流信息列表 */
165
211
  interface GetStoreStockInOrderLogisticsList {
@@ -169,7 +215,7 @@ export declare namespace Service {
169
215
  }
170
216
  interface LogisticsController {
171
217
  /** 批量导入运货单 */
172
- batchImportWaybill(request: Request.BatchImportWaybill, req?: FastifyRequest): Promise<void>;
218
+ batchImportWaybill(request: Request.BatchImportWaybill, req?: FastifyRequest): Promise<Response.BatchImportWaybill>;
173
219
  /** 查询运货单列表 */
174
220
  getWaybillList(request: Request.GetWaybillList, req?: FastifyRequest): Promise<Response.GetWaybillList>;
175
221
  /** 配货单单独写入运货单 */
@@ -178,8 +224,8 @@ export declare namespace Service {
178
224
  getCarrierList(request: Request.GetCarrierList, req?: FastifyRequest): Promise<Response.GetCarrierList>;
179
225
  /** 门店入库单列表 */
180
226
  getStoreStockInOrderList(request: Request.GetStoreStockInOrderList, req?: FastifyRequest): Promise<Response.GetStoreStockInOrderList>;
181
- /** 门店入库单详情商品列表 */
182
- getStoreStockInOrderDetailList(request: Request.GetStoreStockInOrderDetailList, req?: FastifyRequest): Promise<Response.GetStoreStockInOrderDetailList>;
227
+ /** 门店入库单详情 */
228
+ getStoreStockInOrderDetail(request: Request.GetStoreStockInOrderDetail, req?: FastifyRequest): Promise<Response.GetStoreStockInOrderDetail>;
183
229
  /** 门店入库单运货单物流信息列表 */
184
230
  getStoreStockInOrderLogisticsList(request: Request.GetStoreStockInOrderLogisticsList, req?: FastifyRequest): Promise<Response.GetStoreStockInOrderLogisticsList>;
185
231
  /** 门店入库单商品列表 */
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.7",
3
+ "version": "0.0.9",
4
4
  "description": "EcommercePlanAllocationService Node.js SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",