@be-link/pos-cli-nodejs 1.0.51-beta.5 → 1.0.51-beta.8
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 +10 -1
- package/index.js +11 -1
- package/package.json +1 -1
- package/utils/posProxy/itemInfoProxy.d.ts +3 -0
- package/utils/posProxy/itemInfoProxy.js +2 -0
package/index.d.ts
CHANGED
|
@@ -11,10 +11,19 @@ import queryBySupplierService from './pos/modules/orderQuery/supplier';
|
|
|
11
11
|
import orderNoteService from './pos/modules/orderNote/service';
|
|
12
12
|
import orderJobService from './pos/modules/orderJob/service';
|
|
13
13
|
import dataMigrateService from './pos/modules/dataMigrate/service';
|
|
14
|
+
import PosProxyFactory from './utils/posProxy';
|
|
15
|
+
import { ComboInfoProxy } from './utils/posProxy/comboInfoProxy';
|
|
16
|
+
import { ItemInfoProxy } from './utils/posProxy/itemInfoProxy';
|
|
17
|
+
import { SkuInfoProxy } from './utils/posProxy/skuInfoProxy';
|
|
18
|
+
import { VenueInfoProxy } from './utils/posProxy/venueInfoProxy';
|
|
14
19
|
export {
|
|
15
20
|
/** 业务模块 */
|
|
16
21
|
orderCoreService, orderFulfillService, queryByCommodityService, queryByStoreService, queryByUserService, queryByWebService, queryBySupplierService, orderNoteService, orderJobService, dataMigrateService,
|
|
17
22
|
/** 枚举类 */
|
|
18
23
|
PosConstants, PosDto,
|
|
19
24
|
/** 错误类 */
|
|
20
|
-
BizError
|
|
25
|
+
BizError,
|
|
26
|
+
/** 工具类 */
|
|
27
|
+
PosProxyFactory,
|
|
28
|
+
/** 代理类 */
|
|
29
|
+
ItemInfoProxy, SkuInfoProxy, ComboInfoProxy, VenueInfoProxy, };
|
package/index.js
CHANGED
|
@@ -26,7 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.BizError = exports.PosDto = exports.PosConstants = exports.dataMigrateService = exports.orderJobService = exports.orderNoteService = exports.queryBySupplierService = exports.queryByWebService = exports.queryByUserService = exports.queryByStoreService = exports.queryByCommodityService = exports.orderFulfillService = exports.orderCoreService = void 0;
|
|
29
|
+
exports.VenueInfoProxy = exports.ComboInfoProxy = exports.SkuInfoProxy = exports.ItemInfoProxy = exports.PosProxyFactory = exports.BizError = exports.PosDto = exports.PosConstants = exports.dataMigrateService = exports.orderJobService = exports.orderNoteService = exports.queryBySupplierService = exports.queryByWebService = exports.queryByUserService = exports.queryByStoreService = exports.queryByCommodityService = exports.orderFulfillService = exports.orderCoreService = void 0;
|
|
30
30
|
const PosConstants = __importStar(require("vitality-meta/enums/pos"));
|
|
31
31
|
exports.PosConstants = PosConstants;
|
|
32
32
|
const PosDto = __importStar(require("./types"));
|
|
@@ -53,3 +53,13 @@ const service_4 = __importDefault(require("./pos/modules/orderJob/service"));
|
|
|
53
53
|
exports.orderJobService = service_4.default;
|
|
54
54
|
const service_5 = __importDefault(require("./pos/modules/dataMigrate/service"));
|
|
55
55
|
exports.dataMigrateService = service_5.default;
|
|
56
|
+
const posProxy_1 = __importDefault(require("./utils/posProxy"));
|
|
57
|
+
exports.PosProxyFactory = posProxy_1.default;
|
|
58
|
+
const comboInfoProxy_1 = require("./utils/posProxy/comboInfoProxy");
|
|
59
|
+
Object.defineProperty(exports, "ComboInfoProxy", { enumerable: true, get: function () { return comboInfoProxy_1.ComboInfoProxy; } });
|
|
60
|
+
const itemInfoProxy_1 = require("./utils/posProxy/itemInfoProxy");
|
|
61
|
+
Object.defineProperty(exports, "ItemInfoProxy", { enumerable: true, get: function () { return itemInfoProxy_1.ItemInfoProxy; } });
|
|
62
|
+
const skuInfoProxy_1 = require("./utils/posProxy/skuInfoProxy");
|
|
63
|
+
Object.defineProperty(exports, "SkuInfoProxy", { enumerable: true, get: function () { return skuInfoProxy_1.SkuInfoProxy; } });
|
|
64
|
+
const venueInfoProxy_1 = require("./utils/posProxy/venueInfoProxy");
|
|
65
|
+
Object.defineProperty(exports, "VenueInfoProxy", { enumerable: true, get: function () { return venueInfoProxy_1.VenueInfoProxy; } });
|
package/package.json
CHANGED
|
@@ -2,6 +2,7 @@ import { PosDto } from '../..';
|
|
|
2
2
|
export declare abstract class ItemInfoProxy {
|
|
3
3
|
abstract get raw(): PosDto.IPositiveItemInfo | PosDto.IPositiveItemInfoV2;
|
|
4
4
|
abstract get id(): string;
|
|
5
|
+
abstract get _id(): string;
|
|
5
6
|
abstract get name(): string;
|
|
6
7
|
abstract get headPic(): string;
|
|
7
8
|
abstract get headPics(): string[];
|
|
@@ -39,6 +40,7 @@ declare class ItemInfoProxyV1 extends ItemInfoProxy {
|
|
|
39
40
|
constructor(itemInfo: PosDto.IPositiveItemInfo);
|
|
40
41
|
get raw(): PosDto.IPositiveItemInfo;
|
|
41
42
|
get id(): string;
|
|
43
|
+
get _id(): string;
|
|
42
44
|
get name(): string;
|
|
43
45
|
get headPic(): string;
|
|
44
46
|
get headPics(): string[];
|
|
@@ -91,6 +93,7 @@ declare class ItemInfoProxyV2 extends ItemInfoProxy {
|
|
|
91
93
|
constructor(itemInfo: PosDto.IPositiveItemInfoV2);
|
|
92
94
|
get raw(): PosDto.IPositiveItemInfoV2;
|
|
93
95
|
get id(): string;
|
|
96
|
+
get _id(): string;
|
|
94
97
|
get name(): string;
|
|
95
98
|
get headPic(): string;
|
|
96
99
|
get headPics(): string[];
|
|
@@ -12,6 +12,7 @@ class ItemInfoProxyV1 extends ItemInfoProxy {
|
|
|
12
12
|
// share
|
|
13
13
|
get raw() { return this.itemInfo; }
|
|
14
14
|
get id() { return this.itemInfo._id; }
|
|
15
|
+
get _id() { return this.itemInfo._id; }
|
|
15
16
|
get name() { return this.itemInfo.name; }
|
|
16
17
|
get headPic() { return this.itemInfo.headPics[0]; }
|
|
17
18
|
get headPics() { return this.itemInfo.headPics; }
|
|
@@ -59,6 +60,7 @@ class ItemInfoProxyV2 extends ItemInfoProxy {
|
|
|
59
60
|
// share
|
|
60
61
|
get raw() { return this.itemInfo; }
|
|
61
62
|
get id() { return this.itemInfo._id; }
|
|
63
|
+
get _id() { return this.itemInfo._id; }
|
|
62
64
|
get name() { return this.itemInfo.name; }
|
|
63
65
|
get headPic() { return this.itemInfo.basicInfo.headPics[0]; }
|
|
64
66
|
get headPics() { return this.itemInfo.basicInfo.headPics; }
|