@be-link/pos-cli-nodejs 0.0.102 → 0.0.103-beta.1
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 +14 -3
- package/types.d.ts +24 -0
package/package.json
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@be-link/pos-cli-nodejs",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.103-beta.1",
|
|
4
4
|
"description": "正向订单服务Nodejs客户端",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"build": "rm -rf ./dist && tsc && cp package.json README.md ./dist/",
|
|
8
8
|
"test": "npx jest",
|
|
9
|
-
"gen-doc": "npx typedoc --options typedoc.json"
|
|
9
|
+
"gen-doc": "npx typedoc --options typedoc.json",
|
|
10
|
+
"update:major": "standard-version --release-as major",
|
|
11
|
+
"update:minor": "standard-version --release-as minor",
|
|
12
|
+
"update:patch": "standard-version --release-as patch",
|
|
13
|
+
"update:beta": "standard-version --prerelease beta",
|
|
14
|
+
"publish": "ts-node ./ci/index"
|
|
10
15
|
},
|
|
11
16
|
"repository": {
|
|
12
17
|
"type": "git",
|
|
@@ -23,10 +28,16 @@
|
|
|
23
28
|
"registry": "https://registry.npmjs.org/"
|
|
24
29
|
},
|
|
25
30
|
"devDependencies": {
|
|
31
|
+
"@commitlint/cli": "^18.4.3",
|
|
32
|
+
"@commitlint/config-conventional": "^18.4.3",
|
|
33
|
+
"@types/inquirer": "^9.0.7",
|
|
26
34
|
"@types/jest": "29.5.6",
|
|
27
|
-
"@types/node": "20.8.9",
|
|
35
|
+
"@types/node": "^20.8.9",
|
|
28
36
|
"@types/uuid": "^9.0.6",
|
|
37
|
+
"husky": "^8.0.3",
|
|
38
|
+
"inquirer": "8.2.6",
|
|
29
39
|
"jest": "29.7.0",
|
|
40
|
+
"standard-version": "^9.5.0",
|
|
30
41
|
"ts-jest": "29.1.1",
|
|
31
42
|
"typedoc": "0.25.2",
|
|
32
43
|
"typedoc-plugin-missing-exports": "2.1.0",
|
package/types.d.ts
CHANGED
|
@@ -228,6 +228,25 @@ export interface IPositiveItemInfo {
|
|
|
228
228
|
};
|
|
229
229
|
/** 提前预定天数(0~255) */
|
|
230
230
|
bookingDays?: number;
|
|
231
|
+
/** 班车差价信息 */
|
|
232
|
+
shuttleBusAdjustmentInfo?: {
|
|
233
|
+
master: {
|
|
234
|
+
_id: string;
|
|
235
|
+
salePrice: number;
|
|
236
|
+
settlementPrice: number;
|
|
237
|
+
};
|
|
238
|
+
slave: {
|
|
239
|
+
_id: string;
|
|
240
|
+
salePrice: number;
|
|
241
|
+
settlementPrice: number;
|
|
242
|
+
};
|
|
243
|
+
};
|
|
244
|
+
/** 餐食差价信息 */
|
|
245
|
+
mealAdjustmentInfo?: {
|
|
246
|
+
name: string;
|
|
247
|
+
salePrice: number;
|
|
248
|
+
settlementPrice: number;
|
|
249
|
+
}[];
|
|
231
250
|
}
|
|
232
251
|
export interface IPositiveSkuInfo {
|
|
233
252
|
/** SKU ID */
|
|
@@ -315,6 +334,11 @@ export interface IPositiveSkuInfo {
|
|
|
315
334
|
hasAfternoonTea: number;
|
|
316
335
|
/** SKU 是否有班车 */
|
|
317
336
|
hasShuttleBus: number;
|
|
337
|
+
/** 单房差价信息 */
|
|
338
|
+
singleRoomAdjustmentInfo: {
|
|
339
|
+
salePrice: number;
|
|
340
|
+
settlementPrice: number;
|
|
341
|
+
};
|
|
318
342
|
};
|
|
319
343
|
/** 剩余数量 */
|
|
320
344
|
remainQuantity: number;
|