@be-link/pos-cli-nodejs 0.0.27 → 0.0.29
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
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Service } from './types';
|
|
2
|
+
import BaseService from '../service';
|
|
3
|
+
declare class DataMigrateService extends BaseService implements Service.DataMigrateController {
|
|
4
|
+
protected prefixUrl: string;
|
|
5
|
+
pos(): Promise<void>;
|
|
6
|
+
rev(): Promise<void>;
|
|
7
|
+
}
|
|
8
|
+
declare const dataMigrateService: DataMigrateService;
|
|
9
|
+
export default dataMigrateService;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const http_1 = require("../../http");
|
|
7
|
+
const service_1 = __importDefault(require("../service"));
|
|
8
|
+
class DataMigrateService extends service_1.default {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
this.prefixUrl = '/dataMigrate';
|
|
12
|
+
}
|
|
13
|
+
pos() {
|
|
14
|
+
return (0, http_1.callApi)(this.getApiUrl(this.pos));
|
|
15
|
+
}
|
|
16
|
+
rev() {
|
|
17
|
+
return (0, http_1.callApi)(this.getApiUrl(this.rev));
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
const dataMigrateService = new DataMigrateService();
|
|
21
|
+
exports.default = dataMigrateService;
|
package/types.d.ts
CHANGED
|
@@ -222,6 +222,12 @@ export interface IPositiveItemInfo {
|
|
|
222
222
|
periodEndTime?: number;
|
|
223
223
|
/** 是否可以修改餐食 */
|
|
224
224
|
canUpdateMealInfo: number | boolean;
|
|
225
|
+
/** 历史商品数据,从快照原样返回 */
|
|
226
|
+
voucherInfo?: {
|
|
227
|
+
[key: string]: any;
|
|
228
|
+
};
|
|
229
|
+
/** 提前预定天数(0~255) */
|
|
230
|
+
bookingDays?: number;
|
|
225
231
|
}
|
|
226
232
|
export interface IPositiveSkuInfo {
|
|
227
233
|
/** SKU ID */
|
|
@@ -310,12 +316,6 @@ export interface IPositiveSkuInfo {
|
|
|
310
316
|
/** SKU 是否有班车 */
|
|
311
317
|
hasShuttleBus: number;
|
|
312
318
|
};
|
|
313
|
-
/** 历史商品数据,从快照原样返回 */
|
|
314
|
-
voucherInfo?: {
|
|
315
|
-
[key: string]: any;
|
|
316
|
-
};
|
|
317
|
-
/** 提前预定天数(0~255) */
|
|
318
|
-
bookingDays?: number;
|
|
319
319
|
/** 剩余数量 */
|
|
320
320
|
remainQuantity: number;
|
|
321
321
|
/** 一级类目 */
|