@be-link/ecommerce-plan-allocation-service-node-sdk 0.0.31 → 0.0.32

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.
@@ -3,6 +3,7 @@ import BaseService from '../BaseService';
3
3
  declare class StoreProductFulfillService extends BaseService implements StoreProductFulfillTypes.StoreProductFulfillController {
4
4
  protected prefixUrl: string;
5
5
  getStoreProducts(request: StoreProductFulfillTypes.Request.GetStoreProducts): Promise<StoreProductFulfillTypes.Response.GetStoreProducts>;
6
+ getProductFulfillDetails(request: StoreProductFulfillTypes.Request.GetProductFulfillDetails): Promise<StoreProductFulfillTypes.Response.GetProductFulfillDetails>;
6
7
  }
7
8
  export declare const storeProductFulfillService: StoreProductFulfillService;
8
9
  export default storeProductFulfillService;
@@ -24,11 +24,18 @@ let StoreProductFulfillService = class StoreProductFulfillService extends BaseSe
24
24
  getStoreProducts(request) {
25
25
  return (0, http_1.callApi)(this.getApiUrl(this.getStoreProducts), request);
26
26
  }
27
+ getProductFulfillDetails(request) {
28
+ return (0, http_1.callApi)(this.getApiUrl(this.getProductFulfillDetails), request);
29
+ }
27
30
  };
28
31
  __decorate([
29
32
  (0, tsoa_1.Post)('get-store-products'),
30
33
  __param(0, (0, tsoa_1.Body)())
31
34
  ], StoreProductFulfillService.prototype, "getStoreProducts", null);
35
+ __decorate([
36
+ (0, tsoa_1.Post)('get-product-fulfill-details'),
37
+ __param(0, (0, tsoa_1.Body)())
38
+ ], StoreProductFulfillService.prototype, "getProductFulfillDetails", null);
32
39
  StoreProductFulfillService = __decorate([
33
40
  (0, tsoa_1.Route)('StoreProductFulfill'),
34
41
  (0, tsoa_1.Tags)('storeProductFulfill')
@@ -14,6 +14,23 @@ export declare namespace StoreProductFulfillTypes {
14
14
  pickType: string;
15
15
  dispatchType: string;
16
16
  }
17
+ /** 入库记录项 */
18
+ interface StockInItem {
19
+ allocationOrderId: string;
20
+ stockInOrderId: string;
21
+ stockInTime: string;
22
+ stockInQty: number;
23
+ }
24
+ /** 商品履约明细项 */
25
+ interface ProductFulfillDetailItem {
26
+ batchNo: string;
27
+ plannedQty: number;
28
+ salesQty: number;
29
+ replenishQty: number;
30
+ unVerifiedReturnQty: number;
31
+ stockInQty: number;
32
+ stockInList: StockInItem[];
33
+ }
17
34
  /** 请求定义 */
18
35
  namespace Request {
19
36
  /** 获取门店入库商品列表请求(按 skuId 合并) */
@@ -24,6 +41,15 @@ export declare namespace StoreProductFulfillTypes {
24
41
  pageIndex: number;
25
42
  pageSize: number;
26
43
  }
44
+ /** 获取商品履约明细请求 */
45
+ interface GetProductFulfillDetails {
46
+ storeId: string;
47
+ skuId: string;
48
+ productId: string;
49
+ batchNo?: string;
50
+ replenishOrderId?: string;
51
+ allocationOrderId?: string;
52
+ }
27
53
  }
28
54
  /** 响应定义 */
29
55
  namespace Response {
@@ -32,10 +58,17 @@ export declare namespace StoreProductFulfillTypes {
32
58
  total: number;
33
59
  list: StoreProductItem[];
34
60
  }
61
+ /** 获取商品履约明细响应 */
62
+ interface GetProductFulfillDetails {
63
+ productInfo: StoreProductItem;
64
+ list: ProductFulfillDetailItem[];
65
+ }
35
66
  }
36
67
  /** StoreProductFulfill Controller 接口定义 */
37
68
  interface StoreProductFulfillController {
38
69
  /** 获取门店入库商品列表(按 skuId 合并) */
39
70
  getStoreProducts(request: Request.GetStoreProducts): Promise<Response.GetStoreProducts>;
71
+ /** 获取商品履约明细 */
72
+ getProductFulfillDetails(request: Request.GetProductFulfillDetails): Promise<Response.GetProductFulfillDetails>;
40
73
  }
41
74
  }
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.31",
3
+ "version": "0.0.32",
4
4
  "description": "EcommercePlanAllocationService Node.js SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",