@be-link/ecommerce-plan-allocation-service-node-sdk 0.0.8 → 0.0.10
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,21 @@ export declare namespace Service {
|
|
|
83
102
|
updatedAt: number;
|
|
84
103
|
/** 批次编码(从 EcsDistributionBatch 表查询,targetId 对应入库单 id) */
|
|
85
104
|
code?: string;
|
|
86
|
-
/**
|
|
87
|
-
products?:
|
|
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;
|
|
118
|
+
/** 操作类型:0-未操作、1-新增、2-删除 */
|
|
119
|
+
action?: number;
|
|
88
120
|
}
|
|
89
121
|
namespace Request {
|
|
90
122
|
/** 批量导入运货单 */
|
|
@@ -113,12 +145,8 @@ export declare namespace Service {
|
|
|
113
145
|
}
|
|
114
146
|
/** 配货单单独写入运货单 */
|
|
115
147
|
interface WriteWaybill {
|
|
116
|
-
/**
|
|
117
|
-
|
|
118
|
-
/** 快递单号 */
|
|
119
|
-
num: string;
|
|
120
|
-
/** 快递公司编码 */
|
|
121
|
-
carrier: number;
|
|
148
|
+
/** 编辑运单号 */
|
|
149
|
+
wayBill: WayBill[];
|
|
122
150
|
}
|
|
123
151
|
/** 运货单公司编码列表 */
|
|
124
152
|
interface GetCarrierList {
|
|
@@ -142,7 +170,7 @@ export declare namespace Service {
|
|
|
142
170
|
/** 入库单生成日期-介于开始时间 */
|
|
143
171
|
start?: number;
|
|
144
172
|
/** 入库单生成日期-介于结束时间 */
|
|
145
|
-
end?:
|
|
173
|
+
end?: number;
|
|
146
174
|
/** 商品名称 */
|
|
147
175
|
productName?: string;
|
|
148
176
|
}
|
|
@@ -165,6 +193,10 @@ export declare namespace Service {
|
|
|
165
193
|
/** 门店入库单ID */
|
|
166
194
|
storeStockInOrderId: string;
|
|
167
195
|
}
|
|
196
|
+
/** 订阅运单号 */
|
|
197
|
+
interface SubscribeWayBill {
|
|
198
|
+
num: string;
|
|
199
|
+
}
|
|
168
200
|
}
|
|
169
201
|
namespace Response {
|
|
170
202
|
/** 批量导入运货单结果 */
|
|
@@ -204,8 +236,8 @@ export declare namespace Service {
|
|
|
204
236
|
interface GetProductList {
|
|
205
237
|
/** 总数 */
|
|
206
238
|
total: number;
|
|
207
|
-
/**
|
|
208
|
-
data:
|
|
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
|
}
|