@be-link/pos-cli-nodejs 1.0.75 → 1.0.81

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/pos-cli-nodejs",
3
- "version": "1.0.75",
3
+ "version": "1.0.81",
4
4
  "description": "正向订单服务Nodejs客户端",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -382,6 +382,8 @@ export declare namespace Service {
382
382
  pageSize: number;
383
383
  /** 页面下标 */
384
384
  pageIndex: number;
385
+ /** 供应商id */
386
+ supplierIds?: string[];
385
387
  };
386
388
  /** 排序 */
387
389
  sort: {
@@ -4,8 +4,12 @@ const comboInfoProxy_1 = require("./comboInfoProxy");
4
4
  const itemInfoProxy_1 = require("./itemInfoProxy");
5
5
  const skuInfoProxy_1 = require("./skuInfoProxy");
6
6
  const venueInfoProxy_1 = require("./venueInfoProxy");
7
+ const lodash_1 = require("lodash");
7
8
  class PosProxyFactory {
8
9
  static createProxy(order) {
10
+ // @ts-ignore
11
+ if ((0, lodash_1.isEmpty)(order))
12
+ return null;
9
13
  const version = order.attributes.isMigratedItemOrder ? 'V2' : 'V1';
10
14
  let itemInfoProxy;
11
15
  let skuInfoProxy;