@be-link/ecommerce-plan-allocation-service-node-sdk 0.0.38 → 0.0.40

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
@@ -146,8 +146,8 @@ export declare namespace ENUM {
146
146
  ACTIVE_APPLY = "ACTIVE_APPLY"
147
147
  }
148
148
  enum APPLY_TYPE_CHINESE {
149
- STOCK_IN_REPLENISH = "\u5165\u5E93\u5355\u8865\u8D27",
150
- ACTIVE_APPLY = "\u4E3B\u52A8\u7533\u8BF7\u8865\u8D27"
149
+ STOCK_IN_REPLENISH = "\u95E8\u5E97\u5165\u5E93\u5355\u8865\u8D27",
150
+ ACTIVE_APPLY = "\u95E8\u5E97\u4E3B\u52A8\u7533\u8BF7\u8865\u8D27"
151
151
  }
152
152
  enum LOSS_TYPE {
153
153
  STOCK = "STOCK",
@@ -188,6 +188,8 @@ export declare namespace ENUM {
188
188
  readonly STOCK_IN_ORDER_NOT_FOUND: "入库单不存在";
189
189
  readonly STORE_NOT_MATCH: "入库单与门店不匹配";
190
190
  readonly INVALID_QUANTITY: "申请补货数量必须大于0";
191
+ readonly APPLY_QUANTITY_EXCEEDS_REMAINING: "申请数量不能大于剩余待收数量";
192
+ readonly STOCK_IN_ORDER_DETAIL_NOT_FOUND: "入库单中未找到对应的SKU明细";
191
193
  readonly APPLY_FAILED: "补货申请失败,请稍后重试";
192
194
  readonly ALREADY_APPLIED: "该入库单已经申请过补货,无法再次发起申请";
193
195
  };
@@ -238,6 +240,12 @@ export declare namespace ENUM {
238
240
  STORE_STOCK_IN_REPLENISH = "\u95E8\u5E97\u5165\u5E93\u5355\u8865\u8D27",
239
241
  STORE_ACTIVE_APPLY = "\u95E8\u5E97\u4E3B\u52A8\u7533\u8BF7\u8865\u8D27"
240
242
  }
243
+ const SOURCE_TYPE_MAP: {
244
+ readonly 1: SOURCE_TYPE_CHINESE.ORDER_WITH_COUPON;
245
+ readonly 2: SOURCE_TYPE_CHINESE.MANUAL_IMPORT;
246
+ readonly 3: SOURCE_TYPE_CHINESE.STORE_STOCK_IN_REPLENISH;
247
+ readonly 4: SOURCE_TYPE_CHINESE.STORE_ACTIVE_APPLY;
248
+ };
241
249
  /** 错误消息常量 */
242
250
  const ERROR_MESSAGES: {
243
251
  readonly ORDER_NOT_FOUND: "预配货单不存在";
package/enum.js CHANGED
@@ -170,8 +170,8 @@ var ENUM;
170
170
  })(APPLY_TYPE = STORE_REPLENISH_ORDER_ENUM.APPLY_TYPE || (STORE_REPLENISH_ORDER_ENUM.APPLY_TYPE = {}));
171
171
  let APPLY_TYPE_CHINESE;
172
172
  (function (APPLY_TYPE_CHINESE) {
173
- APPLY_TYPE_CHINESE["STOCK_IN_REPLENISH"] = "\u5165\u5E93\u5355\u8865\u8D27";
174
- APPLY_TYPE_CHINESE["ACTIVE_APPLY"] = "\u4E3B\u52A8\u7533\u8BF7\u8865\u8D27";
173
+ APPLY_TYPE_CHINESE["STOCK_IN_REPLENISH"] = "\u95E8\u5E97\u5165\u5E93\u5355\u8865\u8D27";
174
+ APPLY_TYPE_CHINESE["ACTIVE_APPLY"] = "\u95E8\u5E97\u4E3B\u52A8\u7533\u8BF7\u8865\u8D27";
175
175
  })(APPLY_TYPE_CHINESE = STORE_REPLENISH_ORDER_ENUM.APPLY_TYPE_CHINESE || (STORE_REPLENISH_ORDER_ENUM.APPLY_TYPE_CHINESE = {}));
176
176
  let LOSS_TYPE;
177
177
  (function (LOSS_TYPE) {
@@ -214,6 +214,8 @@ var ENUM;
214
214
  STOCK_IN_ORDER_NOT_FOUND: '入库单不存在',
215
215
  STORE_NOT_MATCH: '入库单与门店不匹配',
216
216
  INVALID_QUANTITY: '申请补货数量必须大于0',
217
+ APPLY_QUANTITY_EXCEEDS_REMAINING: '申请数量不能大于剩余待收数量',
218
+ STOCK_IN_ORDER_DETAIL_NOT_FOUND: '入库单中未找到对应的SKU明细',
217
219
  APPLY_FAILED: '补货申请失败,请稍后重试',
218
220
  ALREADY_APPLIED: '该入库单已经申请过补货,无法再次发起申请',
219
221
  };
@@ -271,6 +273,12 @@ var ENUM;
271
273
  SOURCE_TYPE_CHINESE["STORE_STOCK_IN_REPLENISH"] = "\u95E8\u5E97\u5165\u5E93\u5355\u8865\u8D27";
272
274
  SOURCE_TYPE_CHINESE["STORE_ACTIVE_APPLY"] = "\u95E8\u5E97\u4E3B\u52A8\u7533\u8BF7\u8865\u8D27";
273
275
  })(SOURCE_TYPE_CHINESE = PRE_ALLOCATION_ORDER_ENUM.SOURCE_TYPE_CHINESE || (PRE_ALLOCATION_ORDER_ENUM.SOURCE_TYPE_CHINESE = {}));
276
+ PRE_ALLOCATION_ORDER_ENUM.SOURCE_TYPE_MAP = {
277
+ [SOURCE_TYPE.ORDER_WITH_COUPON]: SOURCE_TYPE_CHINESE.ORDER_WITH_COUPON,
278
+ [SOURCE_TYPE.MANUAL_IMPORT]: SOURCE_TYPE_CHINESE.MANUAL_IMPORT,
279
+ [SOURCE_TYPE.STORE_STOCK_IN_REPLENISH]: SOURCE_TYPE_CHINESE.STORE_STOCK_IN_REPLENISH,
280
+ [SOURCE_TYPE.STORE_ACTIVE_APPLY]: SOURCE_TYPE_CHINESE.STORE_ACTIVE_APPLY,
281
+ };
274
282
  /** 错误消息常量 */
275
283
  PRE_ALLOCATION_ORDER_ENUM.ERROR_MESSAGES = {
276
284
  ORDER_NOT_FOUND: '预配货单不存在',
@@ -94,6 +94,7 @@ export declare namespace AllocationOrderTypes {
94
94
  shippedAtStart?: number;
95
95
  shippedAtEnd?: number;
96
96
  productIds?: string[];
97
+ skuIds?: string[];
97
98
  skuCodes?: string[];
98
99
  warehouseIds?: string[];
99
100
  storeIds?: string[];
@@ -108,6 +109,7 @@ export declare namespace AllocationOrderTypes {
108
109
  pageIndex: number;
109
110
  pageSize: number;
110
111
  productIds?: string[];
112
+ skuIds?: string[];
111
113
  skuCodes?: string[];
112
114
  minRemainNum?: number;
113
115
  maxRemainNum?: number;
@@ -159,6 +161,7 @@ export declare namespace AllocationOrderTypes {
159
161
  shippedAtStart?: number;
160
162
  shippedAtEnd?: number;
161
163
  productIds?: string[];
164
+ skuIds?: string[];
162
165
  skuCodes?: string[];
163
166
  storeIds?: string[];
164
167
  warehouseIds?: string[];
@@ -68,7 +68,7 @@ export declare namespace PickingRuleTypes {
68
68
  /** 编辑拣货规则 */
69
69
  interface UpdatePickingRule {
70
70
  warehouseId?: string;
71
- skuCode: string;
71
+ skuId: string;
72
72
  weekDays?: number[];
73
73
  customDate?: {
74
74
  startTime: number;
@@ -79,7 +79,7 @@ export declare namespace PickingRuleTypes {
79
79
  /** 批量删除拣货规则 */
80
80
  interface DeletePickingRule {
81
81
  warehouseId?: string;
82
- skuCodes: string[];
82
+ skuIds: string[];
83
83
  updatedName: string;
84
84
  }
85
85
  /** 保存订单来源规则 */
@@ -161,6 +161,7 @@ export declare namespace PreAllocationOrderTypes {
161
161
  interface IInventoryWarningList {
162
162
  warehouseIds: string[];
163
163
  productIds?: string[];
164
+ skuIds?: string[];
164
165
  skuCodes?: string[];
165
166
  pageIndex: number;
166
167
  pageSize: number;
@@ -53,6 +53,7 @@ export declare namespace StoreProductFulfillTypes {
53
53
  interface GetStoreProducts {
54
54
  storeIds?: string[];
55
55
  productIds?: string[];
56
+ skuIds?: string[];
56
57
  skuCodes?: string[];
57
58
  pageIndex: number;
58
59
  pageSize: number;
@@ -10,8 +10,11 @@ export declare namespace StoreReplenishOrderTypes {
10
10
  interface ReplenishHistoryItem {
11
11
  id: string;
12
12
  status: string;
13
+ productId: string;
13
14
  productName: string;
14
15
  productImage?: string;
16
+ skuId: string;
17
+ skuCode: string;
15
18
  specName?: string;
16
19
  createdAt: number;
17
20
  applyNum: number;
@@ -73,6 +76,7 @@ export declare namespace StoreReplenishOrderTypes {
73
76
  pageSize?: number;
74
77
  storeIds?: string[];
75
78
  productIds?: string[];
79
+ skuIds?: string[];
76
80
  skuCodes?: string[];
77
81
  createdAtStart?: number;
78
82
  createdAtEnd?: number;
@@ -71,6 +71,7 @@ export declare namespace StoreStockInTypes {
71
71
  pageIndex: number;
72
72
  pageSize: number;
73
73
  productIds?: string[];
74
+ skuIds?: string[];
74
75
  skuCodes?: string[];
75
76
  }
76
77
  /** 查询入库单列表请求 */
@@ -84,6 +85,7 @@ export declare namespace StoreStockInTypes {
84
85
  receivedTimeStart?: number;
85
86
  receivedTimeEnd?: number;
86
87
  productIds?: string[];
88
+ skuIds?: string[];
87
89
  skuCodes?: string[];
88
90
  storeIds?: string[];
89
91
  warehouseIds?: string[];
@@ -112,6 +114,7 @@ export declare namespace StoreStockInTypes {
112
114
  receivedTimeStart?: number;
113
115
  receivedTimeEnd?: number;
114
116
  productIds?: string[];
117
+ skuIds?: string[];
115
118
  skuCodes?: string[];
116
119
  storeIds?: string[];
117
120
  warehouseIds?: string[];
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.38",
3
+ "version": "0.0.40",
4
4
  "description": "EcommercePlanAllocationService Node.js SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",