@be-link/ecommerce-plan-allocation-service-node-sdk 0.0.24 → 0.0.25

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.
@@ -54,10 +54,22 @@ declare class PreAllocationOrderService extends BaseService implements PreAlloca
54
54
  * 批量修改配货数量
55
55
  */
56
56
  batchUpdatePickingNum(request: PreAllocationOrderTypes.Request.BatchUpdatePickingNum): Promise<PreAllocationOrderTypes.Response.BatchUpdatePickingNum>;
57
+ /**
58
+ * 查询预配货单商品明细
59
+ */
60
+ getPreAllocationOrderDetails(request: PreAllocationOrderTypes.Request.GetPreAllocationOrderDetails): Promise<PreAllocationOrderTypes.Response.GetPreAllocationOrderDetails>;
57
61
  /**
58
62
  * 导出预配货单
59
63
  */
60
64
  exportPreAllocationOrders(request: PreAllocationOrderTypes.Request.ExportPreAllocationOrders): Promise<PreAllocationOrderTypes.Response.ExportPreAllocationOrders>;
65
+ /**
66
+ * 删除预配货单
67
+ */
68
+ deletePreAllocationOrder(request: PreAllocationOrderTypes.Request.DeletePreAllocationOrder): Promise<PreAllocationOrderTypes.Response.DeletePreAllocationOrder>;
69
+ /**
70
+ * 删除预配货单明细
71
+ */
72
+ deletePreAllocationOrderDetail(request: PreAllocationOrderTypes.Request.DeletePreAllocationOrderDetail): Promise<PreAllocationOrderTypes.Response.DeletePreAllocationOrderDetail>;
61
73
  }
62
74
  export declare const preAllocationOrderService: PreAllocationOrderService;
63
75
  export default preAllocationOrderService;
@@ -99,12 +99,30 @@ let PreAllocationOrderService = class PreAllocationOrderService extends BaseServ
99
99
  batchUpdatePickingNum(request) {
100
100
  return (0, http_1.callApi)(this.getApiUrl(this.batchUpdatePickingNum), request);
101
101
  }
102
+ /**
103
+ * 查询预配货单商品明细
104
+ */
105
+ getPreAllocationOrderDetails(request) {
106
+ return (0, http_1.callApi)(this.getApiUrl(this.getPreAllocationOrderDetails), request);
107
+ }
102
108
  /**
103
109
  * 导出预配货单
104
110
  */
105
111
  exportPreAllocationOrders(request) {
106
112
  return (0, http_1.callApi)(this.getApiUrl(this.exportPreAllocationOrders), request);
107
113
  }
114
+ /**
115
+ * 删除预配货单
116
+ */
117
+ deletePreAllocationOrder(request) {
118
+ return (0, http_1.callApi)(this.getApiUrl(this.deletePreAllocationOrder), request);
119
+ }
120
+ /**
121
+ * 删除预配货单明细
122
+ */
123
+ deletePreAllocationOrderDetail(request) {
124
+ return (0, http_1.callApi)(this.getApiUrl(this.deletePreAllocationOrderDetail), request);
125
+ }
108
126
  };
109
127
  __decorate([
110
128
  (0, tsoa_1.Post)('query-batch-list'),
@@ -158,10 +176,22 @@ __decorate([
158
176
  (0, tsoa_1.Post)('batch-update-picking-num'),
159
177
  __param(0, (0, tsoa_1.Body)())
160
178
  ], PreAllocationOrderService.prototype, "batchUpdatePickingNum", null);
179
+ __decorate([
180
+ (0, tsoa_1.Post)('details'),
181
+ __param(0, (0, tsoa_1.Body)())
182
+ ], PreAllocationOrderService.prototype, "getPreAllocationOrderDetails", null);
161
183
  __decorate([
162
184
  (0, tsoa_1.Post)('export'),
163
185
  __param(0, (0, tsoa_1.Body)())
164
186
  ], PreAllocationOrderService.prototype, "exportPreAllocationOrders", null);
187
+ __decorate([
188
+ (0, tsoa_1.Post)('delete'),
189
+ __param(0, (0, tsoa_1.Body)())
190
+ ], PreAllocationOrderService.prototype, "deletePreAllocationOrder", null);
191
+ __decorate([
192
+ (0, tsoa_1.Post)('delete-detail'),
193
+ __param(0, (0, tsoa_1.Body)())
194
+ ], PreAllocationOrderService.prototype, "deletePreAllocationOrderDetail", null);
165
195
  PreAllocationOrderService = __decorate([
166
196
  (0, tsoa_1.Route)('PreAllocationOrder'),
167
197
  (0, tsoa_1.Tags)('preAllocationOrder')
@@ -211,6 +211,14 @@ export declare namespace PreAllocationOrderTypes {
211
211
  }>;
212
212
  operator: string;
213
213
  }
214
+ /** 查询预配货单商品明细 */
215
+ interface GetPreAllocationOrderDetails {
216
+ preAllocationOrderId: string;
217
+ productIds?: string[];
218
+ skuCodes?: string[];
219
+ pageIndex?: number;
220
+ pageSize?: number;
221
+ }
214
222
  /** 导出预配货单 */
215
223
  interface ExportPreAllocationOrders {
216
224
  filters?: {
@@ -229,6 +237,18 @@ export declare namespace PreAllocationOrderTypes {
229
237
  pageIndex?: number;
230
238
  pageSize?: number;
231
239
  }
240
+ /** 删除预配货单 */
241
+ interface DeletePreAllocationOrder {
242
+ preAllocationOrderId: string;
243
+ operator: string;
244
+ reason?: string;
245
+ }
246
+ /** 删除预配货单明细 */
247
+ interface DeletePreAllocationOrderDetail {
248
+ preAllocationOrderDetailId: string;
249
+ operator: string;
250
+ reason?: string;
251
+ }
232
252
  }
233
253
  /** 响应结果定义 */
234
254
  namespace Response {
@@ -325,6 +345,31 @@ export declare namespace PreAllocationOrderTypes {
325
345
  message: string;
326
346
  data: null;
327
347
  }
348
+ /** 查询预配货单商品明细响应 */
349
+ interface GetPreAllocationOrderDetails {
350
+ code: number;
351
+ message: string;
352
+ data: {
353
+ list: Array<{
354
+ id: string;
355
+ skuCode: string;
356
+ productId: string;
357
+ productName: string;
358
+ specName: string;
359
+ storageMethod: string;
360
+ categoryName: string;
361
+ pickingNum: number;
362
+ saleNum: number;
363
+ normalOrderQty: number;
364
+ couponOrderQty: number;
365
+ refundQty: number;
366
+ undeliveredQty: number;
367
+ manualAdjustment: number;
368
+ pickingRemark?: string;
369
+ }>;
370
+ total: number;
371
+ };
372
+ }
328
373
  /** 导出预配货单响应 */
329
374
  interface ExportPreAllocationOrders {
330
375
  code: number;
@@ -339,6 +384,18 @@ export declare namespace PreAllocationOrderTypes {
339
384
  total: number;
340
385
  };
341
386
  }
387
+ /** 删除预配货单响应 */
388
+ interface DeletePreAllocationOrder {
389
+ code: number;
390
+ message: string;
391
+ data: null;
392
+ }
393
+ /** 删除预配货单明细响应 */
394
+ interface DeletePreAllocationOrderDetail {
395
+ code: number;
396
+ message: string;
397
+ data: null;
398
+ }
342
399
  }
343
400
  /** PreAllocationOrder Controller 接口定义 */
344
401
  interface PreAllocationOrderController {
@@ -368,7 +425,13 @@ export declare namespace PreAllocationOrderTypes {
368
425
  searchProducts(request: PreAllocationOrderTypes.Request.SearchProducts): Promise<PreAllocationOrderTypes.Response.SearchProducts>;
369
426
  /** 批量修改配货数量 */
370
427
  batchUpdatePickingNum(request: PreAllocationOrderTypes.Request.BatchUpdatePickingNum): Promise<PreAllocationOrderTypes.Response.BatchUpdatePickingNum>;
428
+ /** 查询预配货单商品明细 */
429
+ getPreAllocationOrderDetails(request: PreAllocationOrderTypes.Request.GetPreAllocationOrderDetails): Promise<PreAllocationOrderTypes.Response.GetPreAllocationOrderDetails>;
371
430
  /** 导出预配货单 */
372
431
  exportPreAllocationOrders(request: PreAllocationOrderTypes.Request.ExportPreAllocationOrders): Promise<PreAllocationOrderTypes.Response.ExportPreAllocationOrders>;
432
+ /** 删除预配货单 */
433
+ deletePreAllocationOrder(request: PreAllocationOrderTypes.Request.DeletePreAllocationOrder): Promise<PreAllocationOrderTypes.Response.DeletePreAllocationOrder>;
434
+ /** 删除预配货单明细 */
435
+ deletePreAllocationOrderDetail(request: PreAllocationOrderTypes.Request.DeletePreAllocationOrderDetail): Promise<PreAllocationOrderTypes.Response.DeletePreAllocationOrderDetail>;
373
436
  }
374
437
  }
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.24",
3
+ "version": "0.0.25",
4
4
  "description": "EcommercePlanAllocationService Node.js SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",