@be-link/ecommerce-plan-allocation-service-node-sdk 0.0.34 → 0.0.36

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.
package/enum.d.ts CHANGED
@@ -52,13 +52,15 @@ export declare namespace ENUM {
52
52
  PENDING = "PENDING",
53
53
  PARTIAL = "PARTIAL",
54
54
  SHIPPED = "SHIPPED",
55
- EARLY_COMPLETED = "EARLY_COMPLETED"
55
+ EARLY_COMPLETED = "EARLY_COMPLETED",
56
+ INVALID = "INVALID"
56
57
  }
57
58
  enum STATUS_CHINESE {
58
59
  PENDING = "\u5F85\u53D1\u8D27",
59
60
  PARTIAL = "\u90E8\u5206\u53D1\u8D27",
60
61
  SHIPPED = "\u5DF2\u53D1\u8D27",
61
- EARLY_COMPLETED = "\u63D0\u524D\u5B8C\u6210"
62
+ EARLY_COMPLETED = "\u63D0\u524D\u5B8C\u6210",
63
+ INVALID = "\u5DF2\u5931\u6548"
62
64
  }
63
65
  /** 错误消息常量 */
64
66
  const ERROR_MESSAGES: {
package/enum.js CHANGED
@@ -65,6 +65,7 @@ var ENUM;
65
65
  STATUS["PARTIAL"] = "PARTIAL";
66
66
  STATUS["SHIPPED"] = "SHIPPED";
67
67
  STATUS["EARLY_COMPLETED"] = "EARLY_COMPLETED";
68
+ STATUS["INVALID"] = "INVALID";
68
69
  })(STATUS = ALLOCATION_ORDER_ENUM.STATUS || (ALLOCATION_ORDER_ENUM.STATUS = {}));
69
70
  let STATUS_CHINESE;
70
71
  (function (STATUS_CHINESE) {
@@ -72,6 +73,7 @@ var ENUM;
72
73
  STATUS_CHINESE["PARTIAL"] = "\u90E8\u5206\u53D1\u8D27";
73
74
  STATUS_CHINESE["SHIPPED"] = "\u5DF2\u53D1\u8D27";
74
75
  STATUS_CHINESE["EARLY_COMPLETED"] = "\u63D0\u524D\u5B8C\u6210";
76
+ STATUS_CHINESE["INVALID"] = "\u5DF2\u5931\u6548";
75
77
  })(STATUS_CHINESE = ALLOCATION_ORDER_ENUM.STATUS_CHINESE || (ALLOCATION_ORDER_ENUM.STATUS_CHINESE = {}));
76
78
  /** 错误消息常量 */
77
79
  ALLOCATION_ORDER_ENUM.ERROR_MESSAGES = {
@@ -246,8 +246,8 @@ export declare namespace AllocationOrderTypes {
246
246
  list: Entity.AllocationOrderWithExtension[];
247
247
  totalCount: number;
248
248
  pendingCount: number;
249
- partialCount: number;
250
249
  shippedCount: number;
250
+ invalidCount: number;
251
251
  }
252
252
  /**
253
253
  * 获取配货单详情响应
@@ -61,7 +61,7 @@ declare class PreAllocationOrderService extends BaseService implements PreAlloca
61
61
  /**
62
62
  * 导出预配货单
63
63
  */
64
- exportPreAllocationOrders(request: PreAllocationOrderTypes.Request.ExportPreAllocationOrders): Promise<PreAllocationOrderTypes.Response.ExportPreAllocationOrders>;
64
+ exportExcel(request: PreAllocationOrderTypes.Request.ExportPreAllocationOrders): Promise<PreAllocationOrderTypes.Response.ExportPreAllocationOrders>;
65
65
  /**
66
66
  * 删除预配货单
67
67
  */
@@ -108,8 +108,8 @@ let PreAllocationOrderService = class PreAllocationOrderService extends BaseServ
108
108
  /**
109
109
  * 导出预配货单
110
110
  */
111
- exportPreAllocationOrders(request) {
112
- return (0, http_1.callApi)(this.getApiUrl(this.exportPreAllocationOrders), request);
111
+ exportExcel(request) {
112
+ return (0, http_1.callApi)(this.getApiUrl(this.exportExcel), request);
113
113
  }
114
114
  /**
115
115
  * 删除预配货单
@@ -187,9 +187,9 @@ __decorate([
187
187
  __param(0, (0, tsoa_1.Body)())
188
188
  ], PreAllocationOrderService.prototype, "details", null);
189
189
  __decorate([
190
- (0, tsoa_1.Post)('export'),
190
+ (0, tsoa_1.Post)('export-excel'),
191
191
  __param(0, (0, tsoa_1.Body)())
192
- ], PreAllocationOrderService.prototype, "exportPreAllocationOrders", null);
192
+ ], PreAllocationOrderService.prototype, "exportExcel", null);
193
193
  __decorate([
194
194
  (0, tsoa_1.Post)('delete'),
195
195
  __param(0, (0, tsoa_1.Body)())
@@ -196,7 +196,8 @@ export declare namespace PreAllocationOrderTypes {
196
196
  }
197
197
  /** 搜索商品 */
198
198
  interface SearchProducts {
199
- batchIds?: string[];
199
+ warehouseId: string;
200
+ batchNos?: string[];
200
201
  preAllocationOrderIds?: string[];
201
202
  productIds?: string[];
202
203
  skuCodes?: string[];
@@ -205,10 +206,12 @@ export declare namespace PreAllocationOrderTypes {
205
206
  }
206
207
  /** 批量修改配货数量 */
207
208
  interface BatchUpdatePickingNum {
208
- preAllocationOrderIds: string[];
209
+ warehouseId: string;
210
+ batchNos?: string[];
211
+ preAllocationOrderIds?: string[];
209
212
  adjustments: Array<{
210
- skuCode: string;
211
- adjustmentType: 'ADD' | 'REDUCE';
213
+ skuId: string;
214
+ adjustmentType: 'ADD' | 'REDUCE' | 'SET';
212
215
  adjustmentNum: number;
213
216
  adjustmentReason: string;
214
217
  }>;
@@ -224,6 +227,9 @@ export declare namespace PreAllocationOrderTypes {
224
227
  }
225
228
  /** 导出预配货单 */
226
229
  interface ExportPreAllocationOrders {
230
+ warehouseId?: string;
231
+ batchNos?: string[];
232
+ preAllocationOrderIds?: string[];
227
233
  filters?: {
228
234
  batchNos?: string[];
229
235
  warehouseIds?: string[];
@@ -235,8 +241,6 @@ export declare namespace PreAllocationOrderTypes {
235
241
  batchStatus?: number;
236
242
  status?: number;
237
243
  };
238
- batchIds?: string[];
239
- preAllocationOrderIds?: string[];
240
244
  pageIndex?: number;
241
245
  pageSize?: number;
242
246
  }
@@ -443,7 +447,7 @@ export declare namespace PreAllocationOrderTypes {
443
447
  /** 查询预配货单商品明细 */
444
448
  details(request: PreAllocationOrderTypes.Request.GetPreAllocationOrderDetails): Promise<PreAllocationOrderTypes.Response.GetPreAllocationOrderDetails>;
445
449
  /** 导出预配货单 */
446
- exportPreAllocationOrders(request: PreAllocationOrderTypes.Request.ExportPreAllocationOrders): Promise<PreAllocationOrderTypes.Response.ExportPreAllocationOrders>;
450
+ exportExcel(request: PreAllocationOrderTypes.Request.ExportPreAllocationOrders): Promise<PreAllocationOrderTypes.Response.ExportPreAllocationOrders>;
447
451
  /** 删除预配货单 */
448
452
  delete(request: PreAllocationOrderTypes.Request.DeletePreAllocationOrder): Promise<PreAllocationOrderTypes.Response.DeletePreAllocationOrder>;
449
453
  /** 删除预配货单明细 */
@@ -21,6 +21,18 @@ export declare namespace StoreProductFulfillTypes {
21
21
  stockInTime: number;
22
22
  stockInQty: number;
23
23
  }
24
+ /** 补货提示项 */
25
+ interface ReplenishTipItem {
26
+ replenishOrderId: string;
27
+ replenishQty: number;
28
+ type: string;
29
+ }
30
+ /** 人工调整提示项 */
31
+ interface ManualAdjustTipItem {
32
+ adjustReason: string;
33
+ adjustQty: number;
34
+ operator: string;
35
+ }
24
36
  /** 商品履约明细项 */
25
37
  interface ProductFulfillDetailItem {
26
38
  batchNo: string;
@@ -31,6 +43,8 @@ export declare namespace StoreProductFulfillTypes {
31
43
  manualAdjustQty: number;
32
44
  stockInQty: number;
33
45
  stockInList: StockInItem[];
46
+ replenishTips: ReplenishTipItem[];
47
+ manualAdjustTips: ManualAdjustTipItem[];
34
48
  }
35
49
  /** 请求定义 */
36
50
  namespace Request {
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.34",
3
+ "version": "0.0.36",
4
4
  "description": "EcommercePlanAllocationService Node.js SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",