@be-link/pos-cli-nodejs 1.0.52 → 1.0.54

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.52",
3
+ "version": "1.0.54",
4
4
  "description": "正向订单服务Nodejs客户端",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,3 +1,4 @@
1
+ import { ItemStatus } from 'vitality-meta/enums/commodity';
1
2
  import { PosDto } from '../..';
2
3
  export declare abstract class ItemInfoProxy {
3
4
  abstract get raw(): PosDto.IPositiveItemInfo | PosDto.IPositiveItemInfoV2;
@@ -15,6 +16,7 @@ export declare abstract class ItemInfoProxy {
15
16
  /** @deprecated 请使用 venueId 代替 */
16
17
  abstract get storeId(): string | undefined;
17
18
  abstract get venueId(): string | undefined;
19
+ abstract get status(): string | ItemStatus;
18
20
  abstract get contractType(): string | undefined;
19
21
  abstract get cooperator(): string | undefined;
20
22
  abstract get tourWholesaler(): string | undefined;
@@ -53,6 +55,7 @@ declare class ItemInfoProxyV1 extends ItemInfoProxy {
53
55
  get canUpdateMealInfo(): number | boolean;
54
56
  get storeId(): string | undefined;
55
57
  get venueId(): string | undefined;
58
+ get status(): string;
56
59
  get contractType(): import("vitality-meta/enums/commodity").TourContractTypeEnum;
57
60
  get cooperator(): string;
58
61
  get tourWholesaler(): any;
@@ -106,6 +109,7 @@ declare class ItemInfoProxyV2 extends ItemInfoProxy {
106
109
  get canUpdateMealInfo(): number;
107
110
  get storeId(): string;
108
111
  get venueId(): string;
112
+ get status(): ItemStatus;
109
113
  get contractType(): undefined;
110
114
  get cooperator(): undefined;
111
115
  get tourWholesaler(): undefined;
@@ -24,6 +24,7 @@ class ItemInfoProxyV1 extends ItemInfoProxy {
24
24
  get canUpdateMealInfo() { return this.itemInfo.canUpdateMealInfo; }
25
25
  get storeId() { return this.itemInfo.storeId; }
26
26
  get venueId() { return this.itemInfo.storeId; }
27
+ get status() { return this.itemInfo.status; }
27
28
  // 旅游,待定
28
29
  get contractType() { return this.itemInfo.contractType; }
29
30
  get cooperator() { return this.itemInfo.cooperator; }
@@ -71,6 +72,7 @@ class ItemInfoProxyV2 extends ItemInfoProxy {
71
72
  get canUpdateMealInfo() { return this.itemInfo.attributes.canModifyMeal; }
72
73
  get storeId() { return this.itemInfo.basicInfo.venueId; }
73
74
  get venueId() { return this.itemInfo.basicInfo.venueId; }
75
+ get status() { return this.itemInfo.basicInfo.status; }
74
76
  // 旅游,待定
75
77
  get contractType() { return undefined; }
76
78
  get cooperator() { return undefined; }
@@ -10,6 +10,7 @@ export declare abstract class SkuInfoProxy {
10
10
  abstract get quantity(): number;
11
11
  abstract get remainingQuantity(): number;
12
12
  abstract get departureDate(): number;
13
+ abstract get type(): SkuTypeEnum;
13
14
  abstract get applicablePeople(): string | undefined;
14
15
  abstract get singleRoomPrice(): number | undefined;
15
16
  abstract get singleRoomSettlementPrice(): number | undefined;
@@ -29,6 +30,7 @@ declare class SkuInfoProxyV1 extends SkuInfoProxy {
29
30
  get remainingQuantity(): number;
30
31
  get departureDate(): number;
31
32
  get costDays(): number | undefined;
33
+ get type(): SkuTypeEnum;
32
34
  get applicablePeople(): import("vitality-meta/enums/pos").ApplicablePeopleEnum;
33
35
  get singleRoomPrice(): undefined;
34
36
  get singleRoomSettlementPrice(): undefined;
@@ -47,6 +49,7 @@ declare class SkuInfoProxyV2 extends SkuInfoProxy {
47
49
  get quantity(): number;
48
50
  get remainingQuantity(): number;
49
51
  get departureDate(): number;
52
+ get type(): SkuTypeEnum;
50
53
  get applicablePeople(): undefined;
51
54
  get singleRoomPrice(): number;
52
55
  get singleRoomSettlementPrice(): number;
@@ -65,6 +68,7 @@ declare class ShuttleBusSkuInfoProxyV2 extends SkuInfoProxy {
65
68
  get quantity(): number;
66
69
  get remainingQuantity(): number;
67
70
  get departureDate(): number;
71
+ get type(): SkuTypeEnum;
68
72
  get applicablePeople(): undefined;
69
73
  get singleRoomPrice(): undefined;
70
74
  get singleRoomSettlementPrice(): undefined;
@@ -23,6 +23,7 @@ class SkuInfoProxyV1 extends SkuInfoProxy {
23
23
  get remainingQuantity() { return this.orderSkuInfo.remainQuantity; }
24
24
  get departureDate() { return this.orderSkuInfo.departureDate; }
25
25
  get costDays() { return this.orderSkuInfo.costDays; }
26
+ get type() { return this.orderSkuInfo.type; }
26
27
  // uniq V1
27
28
  get applicablePeople() { return this.orderSkuInfo.applicablePeople; }
28
29
  // uniq V2
@@ -46,6 +47,7 @@ class SkuInfoProxyV2 extends SkuInfoProxy {
46
47
  get quantity() { return this.orderSkuInfo.quantity; }
47
48
  get remainingQuantity() { return this.orderSkuInfo.remainQuantity; }
48
49
  get departureDate() { return this.orderSkuInfo.departureDate; }
50
+ get type() { return this.orderSkuInfo.type; }
49
51
  // uniq V1
50
52
  get applicablePeople() { return undefined; }
51
53
  // uniq item V2
@@ -69,6 +71,7 @@ class ShuttleBusSkuInfoProxyV2 extends SkuInfoProxy {
69
71
  get quantity() { return this.orderSkuInfo.quantity; }
70
72
  get remainingQuantity() { return this.orderSkuInfo.remainQuantity; }
71
73
  get departureDate() { return this.orderSkuInfo.departureDate; }
74
+ get type() { return this.orderSkuInfo.type; }
72
75
  // uniq V1
73
76
  get applicablePeople() { return undefined; }
74
77
  // uniq V2