@be-link/ecommerce-plan-allocation-service-node-sdk 0.0.30 → 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.
package/index.d.ts CHANGED
@@ -15,4 +15,6 @@ export { PickingRuleTypes } from './modules/pickingRule/types';
15
15
  export { ENUM } from './enum';
16
16
  export { logisticsService } from './modules/logistics/service';
17
17
  export type { Service as LogisticsServiceTypes } from './modules/logistics/types';
18
+ export { storeProductFulfillService } from './modules/storeProductFulfill/service';
19
+ export { StoreProductFulfillTypes } from './modules/storeProductFulfill/types';
18
20
  export { ENUM as DEMO_ENUM } from './enum';
package/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DEMO_ENUM = exports.logisticsService = exports.ENUM = exports.PickingRuleTypes = exports.pickingRuleService = exports.productStatisticsService = exports.storeReplenishOrderService = exports.preAllocationOrderService = exports.storeStockInService = exports.allocationOrderService = exports.allocationService = void 0;
3
+ exports.DEMO_ENUM = exports.storeProductFulfillService = exports.logisticsService = exports.ENUM = exports.PickingRuleTypes = exports.pickingRuleService = exports.productStatisticsService = exports.storeReplenishOrderService = exports.preAllocationOrderService = exports.storeStockInService = exports.allocationOrderService = exports.allocationService = void 0;
4
4
  var service_1 = require("./modules/allocation/service");
5
5
  Object.defineProperty(exports, "allocationService", { enumerable: true, get: function () { return service_1.allocationService; } });
6
6
  var service_2 = require("./modules/allocationOrder/service");
@@ -21,6 +21,8 @@ var enum_1 = require("./enum");
21
21
  Object.defineProperty(exports, "ENUM", { enumerable: true, get: function () { return enum_1.ENUM; } });
22
22
  var service_8 = require("./modules/logistics/service");
23
23
  Object.defineProperty(exports, "logisticsService", { enumerable: true, get: function () { return service_8.logisticsService; } });
24
+ var service_9 = require("./modules/storeProductFulfill/service");
25
+ Object.defineProperty(exports, "storeProductFulfillService", { enumerable: true, get: function () { return service_9.storeProductFulfillService; } });
24
26
  var enum_2 = require("./enum");
25
27
  Object.defineProperty(exports, "DEMO_ENUM", { enumerable: true, get: function () { return enum_2.ENUM; } });
26
28
  // 服务.模块.枚举名称.枚举值 示例: DEMO_ENUM.ORDER_ENUM.STATUS.PENDING
@@ -55,6 +55,14 @@ export declare namespace Service {
55
55
  skuCode?: string;
56
56
  /** 规格名称(来自ProductServiceTypes) */
57
57
  specName?: string;
58
+ /** 商品分类 */
59
+ classification?: string;
60
+ /** 储藏方式 */
61
+ storageMethod?: string;
62
+ /** 配货方式 */
63
+ dispatchType?: string;
64
+ /** 结算分类 */
65
+ pickType?: string;
58
66
  /** 应配货量 */
59
67
  expectedQuantity?: number;
60
68
  /** 仓库实发 */
@@ -0,0 +1,9 @@
1
+ import { StoreProductFulfillTypes } from './types';
2
+ import BaseService from '../BaseService';
3
+ declare class StoreProductFulfillService extends BaseService implements StoreProductFulfillTypes.StoreProductFulfillController {
4
+ protected prefixUrl: string;
5
+ getStoreProducts(request: StoreProductFulfillTypes.Request.GetStoreProducts): Promise<StoreProductFulfillTypes.Response.GetStoreProducts>;
6
+ getProductFulfillDetails(request: StoreProductFulfillTypes.Request.GetProductFulfillDetails): Promise<StoreProductFulfillTypes.Response.GetProductFulfillDetails>;
7
+ }
8
+ export declare const storeProductFulfillService: StoreProductFulfillService;
9
+ export default storeProductFulfillService;
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
9
+ return function (target, key) { decorator(target, key, paramIndex); }
10
+ };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.storeProductFulfillService = void 0;
16
+ const tsoa_1 = require("tsoa");
17
+ const http_1 = require("../../utils/http");
18
+ const BaseService_1 = __importDefault(require("../BaseService"));
19
+ let StoreProductFulfillService = class StoreProductFulfillService extends BaseService_1.default {
20
+ constructor() {
21
+ super(...arguments);
22
+ this.prefixUrl = '/store-product-fulfill';
23
+ }
24
+ getStoreProducts(request) {
25
+ return (0, http_1.callApi)(this.getApiUrl(this.getStoreProducts), request);
26
+ }
27
+ getProductFulfillDetails(request) {
28
+ return (0, http_1.callApi)(this.getApiUrl(this.getProductFulfillDetails), request);
29
+ }
30
+ };
31
+ __decorate([
32
+ (0, tsoa_1.Post)('get-store-products'),
33
+ __param(0, (0, tsoa_1.Body)())
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);
39
+ StoreProductFulfillService = __decorate([
40
+ (0, tsoa_1.Route)('StoreProductFulfill'),
41
+ (0, tsoa_1.Tags)('storeProductFulfill')
42
+ ], StoreProductFulfillService);
43
+ exports.storeProductFulfillService = new StoreProductFulfillService();
44
+ exports.default = exports.storeProductFulfillService;
@@ -0,0 +1,74 @@
1
+ export declare namespace StoreProductFulfillTypes {
2
+ /** 门店商品履约商品项 */
3
+ interface StoreProductItem {
4
+ productId: string;
5
+ productName: string;
6
+ skuId: string;
7
+ skuCode: string;
8
+ specName: string;
9
+ storeId: string;
10
+ storeName: string;
11
+ price: number;
12
+ classification: string;
13
+ storageMethod: string;
14
+ pickType: string;
15
+ dispatchType: string;
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
+ }
34
+ /** 请求定义 */
35
+ namespace Request {
36
+ /** 获取门店入库商品列表请求(按 skuId 合并) */
37
+ interface GetStoreProducts {
38
+ storeIds?: string[];
39
+ productIds?: string[];
40
+ skuCodes?: string[];
41
+ pageIndex: number;
42
+ pageSize: number;
43
+ }
44
+ /** 获取商品履约明细请求 */
45
+ interface GetProductFulfillDetails {
46
+ storeId: string;
47
+ skuId: string;
48
+ productId: string;
49
+ batchNo?: string;
50
+ replenishOrderId?: string;
51
+ allocationOrderId?: string;
52
+ }
53
+ }
54
+ /** 响应定义 */
55
+ namespace Response {
56
+ /** 获取门店入库商品列表响应 */
57
+ interface GetStoreProducts {
58
+ total: number;
59
+ list: StoreProductItem[];
60
+ }
61
+ /** 获取商品履约明细响应 */
62
+ interface GetProductFulfillDetails {
63
+ productInfo: StoreProductItem;
64
+ list: ProductFulfillDetailItem[];
65
+ }
66
+ }
67
+ /** StoreProductFulfill Controller 接口定义 */
68
+ interface StoreProductFulfillController {
69
+ /** 获取门店入库商品列表(按 skuId 合并) */
70
+ getStoreProducts(request: Request.GetStoreProducts): Promise<Response.GetStoreProducts>;
71
+ /** 获取商品履约明细 */
72
+ getProductFulfillDetails(request: Request.GetProductFulfillDetails): Promise<Response.GetProductFulfillDetails>;
73
+ }
74
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
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.30",
3
+ "version": "0.0.32",
4
4
  "description": "EcommercePlanAllocationService Node.js SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",