@be-link/vitality-cli-nodejs 0.0.10 → 0.0.12
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/commodity-manifest.json +404 -0
- package/index.d.ts +6 -1
- package/index.js +27 -5
- package/index.js.map +1 -1
- package/package.json +3 -2
- package/vs/http.d.ts +2 -2
- package/vs/modules/api/index.d.ts +0 -3
- package/vs/modules/baseService.d.ts +0 -5
- package/vs/modules/baseService.js +1 -17
- package/vs/modules/baseService.js.map +1 -1
- package/vs/modules/biz/commodity/ai/service.d.ts +9 -0
- package/vs/modules/biz/commodity/ai/service.js +22 -0
- package/vs/modules/biz/commodity/ai/service.js.map +1 -0
- package/vs/modules/biz/commodity/ai/type.d.ts +18 -0
- package/vs/modules/biz/commodity/ai/type.js +3 -0
- package/vs/modules/biz/commodity/ai/type.js.map +1 -0
- package/vs/modules/biz/commodity/common.d.ts +15 -0
- package/vs/modules/biz/commodity/common.js +3 -0
- package/vs/modules/biz/commodity/common.js.map +1 -0
- package/vs/modules/biz/commodity/ecAppToB/service.d.ts +9 -0
- package/vs/modules/biz/commodity/ecAppToB/service.js +22 -0
- package/vs/modules/biz/commodity/ecAppToB/service.js.map +1 -0
- package/vs/modules/biz/commodity/ecAppToB/type.d.ts +6 -0
- package/vs/modules/biz/commodity/ecAppToB/type.js +3 -0
- package/vs/modules/biz/commodity/ecAppToB/type.js.map +1 -0
- package/vs/modules/biz/commodity/ecWeb/service.d.ts +11 -0
- package/vs/modules/biz/commodity/ecWeb/service.js +28 -0
- package/vs/modules/biz/commodity/ecWeb/service.js.map +1 -0
- package/vs/modules/biz/commodity/ecWeb/type.d.ts +8 -0
- package/vs/modules/biz/commodity/ecWeb/type.js +3 -0
- package/vs/modules/biz/commodity/ecWeb/type.js.map +1 -0
- package/vs/modules/biz/commodity/h5/service.d.ts +9 -0
- package/vs/modules/biz/commodity/h5/service.js +22 -0
- package/vs/modules/biz/commodity/h5/service.js.map +1 -0
- package/vs/modules/biz/commodity/h5/type.d.ts +7 -0
- package/vs/modules/biz/commodity/h5/type.js +3 -0
- package/vs/modules/biz/commodity/h5/type.js.map +1 -0
- package/vs/modules/biz/commodity/index.d.ts +471 -0
- package/vs/modules/biz/commodity/index.js +42 -0
- package/vs/modules/biz/commodity/index.js.map +1 -0
- package/vs/modules/biz/commodity/job/service.d.ts +9 -0
- package/vs/modules/biz/commodity/job/service.js +22 -0
- package/vs/modules/biz/commodity/job/service.js.map +1 -0
- package/vs/modules/biz/commodity/job/type.d.ts +6 -0
- package/vs/modules/biz/commodity/job/type.js +3 -0
- package/vs/modules/biz/commodity/job/type.js.map +1 -0
- package/vs/modules/biz/commodity/main/service.d.ts +29 -0
- package/vs/modules/biz/commodity/main/service.js +82 -0
- package/vs/modules/biz/commodity/main/service.js.map +1 -0
- package/vs/modules/biz/commodity/main/type.d.ts +39 -0
- package/vs/modules/biz/commodity/main/type.js +3 -0
- package/vs/modules/biz/commodity/main/type.js.map +1 -0
- package/vs/modules/biz/commodity/manifest.d.ts +44 -0
- package/vs/modules/biz/commodity/manifest.js +10 -0
- package/vs/modules/biz/commodity/manifest.js.map +1 -0
- package/vs/modules/biz/commodity/manifest.json +404 -0
- package/vs/modules/biz/commodity/miniApp/service.d.ts +9 -0
- package/vs/modules/biz/commodity/miniApp/service.js +22 -0
- package/vs/modules/biz/commodity/miniApp/service.js.map +1 -0
- package/vs/modules/biz/commodity/miniApp/type.d.ts +6 -0
- package/vs/modules/biz/commodity/miniApp/type.js +3 -0
- package/vs/modules/biz/commodity/miniApp/type.js.map +1 -0
- package/vs/modules/biz/commodity/restructure/service.d.ts +129 -0
- package/vs/modules/biz/commodity/restructure/service.js +382 -0
- package/vs/modules/biz/commodity/restructure/service.js.map +1 -0
- package/vs/modules/biz/commodity/restructure/type.d.ts +281 -0
- package/vs/modules/biz/commodity/restructure/type.js +3 -0
- package/vs/modules/biz/commodity/restructure/type.js.map +1 -0
- package/vs/modules/biz/commodity/search/service.d.ts +29 -0
- package/vs/modules/biz/commodity/search/service.js +82 -0
- package/vs/modules/biz/commodity/search/service.js.map +1 -0
- package/vs/modules/biz/commodity/search/type.d.ts +26 -0
- package/vs/modules/biz/commodity/search/type.js +3 -0
- package/vs/modules/biz/commodity/search/type.js.map +1 -0
- package/vs/modules/biz/commodity/web/service.d.ts +21 -0
- package/vs/modules/biz/commodity/web/service.js +58 -0
- package/vs/modules/biz/commodity/web/service.js.map +1 -0
- package/vs/modules/biz/commodity/web/type.d.ts +18 -0
- package/vs/modules/biz/commodity/web/type.js +3 -0
- package/vs/modules/biz/commodity/web/type.js.map +1 -0
- package/vs/modules/biz/commodityV2/boss/roomStock/service.d.ts +8 -0
- package/vs/modules/biz/commodityV2/boss/roomStock/service.js +19 -0
- package/vs/modules/biz/commodityV2/boss/roomStock/service.js.map +1 -0
- package/vs/modules/biz/commodityV2/boss/roomStock/type.d.ts +23 -0
- package/vs/modules/biz/commodityV2/boss/roomStock/type.js +3 -0
- package/vs/modules/biz/commodityV2/boss/roomStock/type.js.map +1 -0
- package/vs/modules/biz/commodityV2/boss/serviceVenue/service.d.ts +8 -0
- package/vs/modules/biz/commodityV2/boss/serviceVenue/service.js +19 -0
- package/vs/modules/biz/commodityV2/boss/serviceVenue/service.js.map +1 -0
- package/vs/modules/biz/commodityV2/boss/serviceVenue/type.d.ts +34 -0
- package/vs/modules/biz/commodityV2/boss/serviceVenue/type.js +3 -0
- package/vs/modules/biz/commodityV2/boss/serviceVenue/type.js.map +1 -0
- package/vs/modules/biz/commodityV2/index.d.ts +255 -0
- package/vs/modules/biz/commodityV2/index.js +62 -0
- package/vs/modules/biz/commodityV2/index.js.map +1 -0
- package/vs/modules/biz/commodityV2/miniapp/itemQuery/service.d.ts +16 -0
- package/vs/modules/biz/commodityV2/miniapp/itemQuery/service.js +43 -0
- package/vs/modules/biz/commodityV2/miniapp/itemQuery/service.js.map +1 -0
- package/vs/modules/biz/commodityV2/miniapp/itemQuery/type.d.ts +14 -0
- package/vs/modules/biz/commodityV2/miniapp/itemQuery/type.js +3 -0
- package/vs/modules/biz/commodityV2/miniapp/itemQuery/type.js.map +1 -0
- package/vs/modules/biz/commodityV2/types/miniapp/itemQuery.d.ts +456 -0
- package/vs/modules/biz/commodityV2/types/miniapp/itemQuery.js +3 -0
- package/vs/modules/biz/commodityV2/types/miniapp/itemQuery.js.map +1 -0
- package/vs/modules/biz/commodityV2/types/web/item.d.ts +264 -0
- package/vs/modules/biz/commodityV2/types/web/item.js +3 -0
- package/vs/modules/biz/commodityV2/types/web/item.js.map +1 -0
- package/vs/modules/biz/commodityV2/types/web/itemQuery.d.ts +160 -0
- package/vs/modules/biz/commodityV2/types/web/itemQuery.js +3 -0
- package/vs/modules/biz/commodityV2/types/web/itemQuery.js.map +1 -0
- package/vs/modules/biz/commodityV2/types/web/serviceVenue.d.ts +297 -0
- package/vs/modules/biz/commodityV2/types/web/serviceVenue.js +3 -0
- package/vs/modules/biz/commodityV2/types/web/serviceVenue.js.map +1 -0
- package/vs/modules/biz/commodityV2/types/web/shuttleBus.d.ts +356 -0
- package/vs/modules/biz/commodityV2/types/web/shuttleBus.js +3 -0
- package/vs/modules/biz/commodityV2/types/web/shuttleBus.js.map +1 -0
- package/vs/modules/biz/commodityV2/types/wxwork/itemQuery.d.ts +42 -0
- package/vs/modules/biz/commodityV2/types/wxwork/itemQuery.js +3 -0
- package/vs/modules/biz/commodityV2/types/wxwork/itemQuery.js.map +1 -0
- package/vs/modules/biz/commodityV2/web/bizTag/service.d.ts +14 -0
- package/vs/modules/biz/commodityV2/web/bizTag/service.js +37 -0
- package/vs/modules/biz/commodityV2/web/bizTag/service.js.map +1 -0
- package/vs/modules/biz/commodityV2/web/bizTag/type.d.ts +71 -0
- package/vs/modules/biz/commodityV2/web/bizTag/type.js +3 -0
- package/vs/modules/biz/commodityV2/web/bizTag/type.js.map +1 -0
- package/vs/modules/biz/commodityV2/web/facility/service.d.ts +12 -0
- package/vs/modules/biz/commodityV2/web/facility/service.js +31 -0
- package/vs/modules/biz/commodityV2/web/facility/service.js.map +1 -0
- package/vs/modules/biz/commodityV2/web/facility/type.d.ts +76 -0
- package/vs/modules/biz/commodityV2/web/facility/type.js +12 -0
- package/vs/modules/biz/commodityV2/web/facility/type.js.map +1 -0
- package/vs/modules/biz/commodityV2/web/item/service.d.ts +16 -0
- package/vs/modules/biz/commodityV2/web/item/service.js +43 -0
- package/vs/modules/biz/commodityV2/web/item/service.js.map +1 -0
- package/vs/modules/biz/commodityV2/web/item/type.d.ts +14 -0
- package/vs/modules/biz/commodityV2/web/item/type.js +3 -0
- package/vs/modules/biz/commodityV2/web/item/type.js.map +1 -0
- package/vs/modules/biz/commodityV2/web/itemCombo/service.d.ts +21 -0
- package/vs/modules/biz/commodityV2/web/itemCombo/service.js +58 -0
- package/vs/modules/biz/commodityV2/web/itemCombo/service.js.map +1 -0
- package/vs/modules/biz/commodityV2/web/itemCombo/type.d.ts +185 -0
- package/vs/modules/biz/commodityV2/web/itemCombo/type.js +3 -0
- package/vs/modules/biz/commodityV2/web/itemCombo/type.js.map +1 -0
- package/vs/modules/biz/commodityV2/web/itemDiscountActivity/service.d.ts +12 -0
- package/vs/modules/biz/commodityV2/web/itemDiscountActivity/service.js +31 -0
- package/vs/modules/biz/commodityV2/web/itemDiscountActivity/service.js.map +1 -0
- package/vs/modules/biz/commodityV2/web/itemDiscountActivity/type.d.ts +47 -0
- package/vs/modules/biz/commodityV2/web/itemDiscountActivity/type.js +3 -0
- package/vs/modules/biz/commodityV2/web/itemDiscountActivity/type.js.map +1 -0
- package/vs/modules/biz/commodityV2/web/itemQuery/service.d.ts +14 -0
- package/vs/modules/biz/commodityV2/web/itemQuery/service.js +37 -0
- package/vs/modules/biz/commodityV2/web/itemQuery/service.js.map +1 -0
- package/vs/modules/biz/commodityV2/web/itemQuery/type.d.ts +12 -0
- package/vs/modules/biz/commodityV2/web/itemQuery/type.js +3 -0
- package/vs/modules/biz/commodityV2/web/itemQuery/type.js.map +1 -0
- package/vs/modules/biz/commodityV2/web/serviceVenue/service.d.ts +15 -0
- package/vs/modules/biz/commodityV2/web/serviceVenue/service.js +40 -0
- package/vs/modules/biz/commodityV2/web/serviceVenue/service.js.map +1 -0
- package/vs/modules/biz/commodityV2/web/serviceVenue/type.d.ts +13 -0
- package/vs/modules/biz/commodityV2/web/serviceVenue/type.js +3 -0
- package/vs/modules/biz/commodityV2/web/serviceVenue/type.js.map +1 -0
- package/vs/modules/biz/commodityV2/web/shuttleBus/service.d.ts +15 -0
- package/vs/modules/biz/commodityV2/web/shuttleBus/service.js +40 -0
- package/vs/modules/biz/commodityV2/web/shuttleBus/service.js.map +1 -0
- package/vs/modules/biz/commodityV2/web/shuttleBus/type.d.ts +13 -0
- package/vs/modules/biz/commodityV2/web/shuttleBus/type.js +3 -0
- package/vs/modules/biz/commodityV2/web/shuttleBus/type.js.map +1 -0
- package/vs/modules/biz/commodityV2/web/supplier/service.d.ts +10 -0
- package/vs/modules/biz/commodityV2/web/supplier/service.js +25 -0
- package/vs/modules/biz/commodityV2/web/supplier/service.js.map +1 -0
- package/vs/modules/biz/commodityV2/web/supplier/type.d.ts +35 -0
- package/vs/modules/biz/commodityV2/web/supplier/type.js +3 -0
- package/vs/modules/biz/commodityV2/web/supplier/type.js.map +1 -0
- package/vs/modules/biz/commodityV2/web/tourMaterial/service.d.ts +9 -0
- package/vs/modules/biz/commodityV2/web/tourMaterial/service.js +22 -0
- package/vs/modules/biz/commodityV2/web/tourMaterial/service.js.map +1 -0
- package/vs/modules/biz/commodityV2/web/tourMaterial/type.d.ts +36 -0
- package/vs/modules/biz/commodityV2/web/tourMaterial/type.js +3 -0
- package/vs/modules/biz/commodityV2/web/tourMaterial/type.js.map +1 -0
- package/vs/modules/biz/commodityV2/wxwork/itemQuery/service.d.ts +9 -0
- package/vs/modules/biz/commodityV2/wxwork/itemQuery/service.js +22 -0
- package/vs/modules/biz/commodityV2/wxwork/itemQuery/service.js.map +1 -0
- package/vs/modules/biz/commodityV2/wxwork/itemQuery/type.d.ts +7 -0
- package/vs/modules/biz/commodityV2/wxwork/itemQuery/type.js +3 -0
- package/vs/modules/biz/commodityV2/wxwork/itemQuery/type.js.map +1 -0
- package/vs/modules/biz/index.d.ts +674 -72
- package/vs/modules/biz/index.js +4 -0
- package/vs/modules/biz/index.js.map +1 -1
|
@@ -0,0 +1,456 @@
|
|
|
1
|
+
import { CommonDescriptionItem, DescriptionContentItem, EntertainmentInfo } from '@be-link/cs-cli-nodejs/types';
|
|
2
|
+
import * as commodityEnums from 'vitality-meta/enums/commodity';
|
|
3
|
+
import { FacilityCategory } from '@be-link/cs-cli-nodejs/cs/modules/facility/types';
|
|
4
|
+
import { OrderScene } from 'vitality-meta/enums/pos';
|
|
5
|
+
export declare namespace ItemQuery {
|
|
6
|
+
namespace Entity {
|
|
7
|
+
interface CommonDescriptionItem {
|
|
8
|
+
type: 'TEXT' | 'IMAGE' | 'FILE';
|
|
9
|
+
value: string | {
|
|
10
|
+
url: string;
|
|
11
|
+
name?: string;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
namespace Request {
|
|
16
|
+
/** 查询商品关联的城市 */
|
|
17
|
+
interface IGetItemRelatedCity {
|
|
18
|
+
itemId: string;
|
|
19
|
+
}
|
|
20
|
+
interface IGetMinSalePrice {
|
|
21
|
+
itemIds: string[];
|
|
22
|
+
}
|
|
23
|
+
interface checkItemBeforeOrder {
|
|
24
|
+
itemInfo: {
|
|
25
|
+
/** 商品ID */
|
|
26
|
+
id: string;
|
|
27
|
+
/** 商品二级分类 */
|
|
28
|
+
categoryTwo: string;
|
|
29
|
+
/** 套餐信息 */
|
|
30
|
+
combos: {
|
|
31
|
+
/** 套餐ID */
|
|
32
|
+
id: string;
|
|
33
|
+
/** SKU ID列表 */
|
|
34
|
+
skus: string[];
|
|
35
|
+
/** SKU购买份数 */
|
|
36
|
+
quantity: number;
|
|
37
|
+
/** 快捷套餐ID */
|
|
38
|
+
comboShortcutId?: string;
|
|
39
|
+
}[];
|
|
40
|
+
};
|
|
41
|
+
scene: OrderScene;
|
|
42
|
+
}
|
|
43
|
+
interface IGetShuttleInfoByItemIdAndCity {
|
|
44
|
+
itemId: string;
|
|
45
|
+
cityName: string;
|
|
46
|
+
date?: number;
|
|
47
|
+
}
|
|
48
|
+
/** 小程序查询商品套餐详情 */
|
|
49
|
+
interface IGetItemComboById {
|
|
50
|
+
itemId: string;
|
|
51
|
+
}
|
|
52
|
+
/** 小程序查sku */
|
|
53
|
+
interface IGetItemSku {
|
|
54
|
+
itemId: string;
|
|
55
|
+
/** 套餐ID */
|
|
56
|
+
comboId: string;
|
|
57
|
+
/** 日期范围[开始时间戳, 结束时间戳] */
|
|
58
|
+
dateRange: [number, number];
|
|
59
|
+
scene?: 'GROUP_BOOKING' | 'NORMAL';
|
|
60
|
+
}
|
|
61
|
+
/** 商品详情 */
|
|
62
|
+
interface IGetItemDetail {
|
|
63
|
+
/** 商品ID */
|
|
64
|
+
itemId: string;
|
|
65
|
+
}
|
|
66
|
+
/** 商品额外信息 */
|
|
67
|
+
interface IGetItemExtraInfo {
|
|
68
|
+
/** 商品ID */
|
|
69
|
+
itemId: string;
|
|
70
|
+
}
|
|
71
|
+
/** 商详门店 */
|
|
72
|
+
interface IGetItemRelatedVenueInfo {
|
|
73
|
+
/** 商品ID */
|
|
74
|
+
itemId: string;
|
|
75
|
+
}
|
|
76
|
+
/** 商详套餐 */
|
|
77
|
+
interface IGetItemAllComboInfo {
|
|
78
|
+
/** 商品ID */
|
|
79
|
+
itemId: string;
|
|
80
|
+
}
|
|
81
|
+
/** 商详套餐 */
|
|
82
|
+
interface IGetItemComboInfo {
|
|
83
|
+
/** 商品ID */
|
|
84
|
+
itemId: string;
|
|
85
|
+
/** 套餐ID */
|
|
86
|
+
comboId?: string;
|
|
87
|
+
}
|
|
88
|
+
/** 小程序获取月份sku */
|
|
89
|
+
interface IGetSkuListByMonthAndComboId {
|
|
90
|
+
/** 年月日 */
|
|
91
|
+
date: string;
|
|
92
|
+
/** 套餐ID */
|
|
93
|
+
comboId: string;
|
|
94
|
+
}
|
|
95
|
+
/** 小程序获取套餐所有月份 */
|
|
96
|
+
interface IGetSkuAllMonth {
|
|
97
|
+
/** 套餐ID */
|
|
98
|
+
comboId: string;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
namespace Response {
|
|
102
|
+
/** 小程序查询商品套餐详情 */
|
|
103
|
+
interface IGetItemComboByIdRes {
|
|
104
|
+
/** 基础套餐 */
|
|
105
|
+
combo: {
|
|
106
|
+
/** 套餐ID */
|
|
107
|
+
id: string;
|
|
108
|
+
/** 二级类目 */
|
|
109
|
+
categoryTwo: string;
|
|
110
|
+
/** 套餐名称 */
|
|
111
|
+
name: string;
|
|
112
|
+
/** 最小购买数量 */
|
|
113
|
+
minOrderCount: number;
|
|
114
|
+
/** 是否仅限双倍数量 */
|
|
115
|
+
isOnlyDoubleQuantity: boolean;
|
|
116
|
+
itemDiscountActivity: {
|
|
117
|
+
nightNum: number;
|
|
118
|
+
discountSalePrice: number;
|
|
119
|
+
};
|
|
120
|
+
itemRoomSaleBind: {
|
|
121
|
+
status: commodityEnums.CommonStatus;
|
|
122
|
+
itemId: string;
|
|
123
|
+
roomId: string;
|
|
124
|
+
comboId: string;
|
|
125
|
+
condition: {
|
|
126
|
+
type: commodityEnums.ItemRoomSaleBindConditionType;
|
|
127
|
+
value: number;
|
|
128
|
+
};
|
|
129
|
+
saleCount: number;
|
|
130
|
+
};
|
|
131
|
+
}[];
|
|
132
|
+
/** 基础套餐快捷方式 */
|
|
133
|
+
comboShortcut: {
|
|
134
|
+
/** 套餐ID */
|
|
135
|
+
id: string;
|
|
136
|
+
/** 基础套餐ID */
|
|
137
|
+
comboId: string;
|
|
138
|
+
/** 套餐名称 */
|
|
139
|
+
name: string;
|
|
140
|
+
/** 最小购买数量 */
|
|
141
|
+
minOrderCount: number;
|
|
142
|
+
/** 是否仅限双倍数量 */
|
|
143
|
+
isOnlyDoubleQuantity: boolean;
|
|
144
|
+
itemDiscountActivity: {
|
|
145
|
+
nightNum: number;
|
|
146
|
+
discountSalePrice: number;
|
|
147
|
+
};
|
|
148
|
+
itemRoomSaleBind: {
|
|
149
|
+
status: commodityEnums.CommonStatus;
|
|
150
|
+
itemId: string;
|
|
151
|
+
roomId: string;
|
|
152
|
+
comboId: string;
|
|
153
|
+
condition: {
|
|
154
|
+
type: commodityEnums.ItemRoomSaleBindConditionType;
|
|
155
|
+
value: number;
|
|
156
|
+
};
|
|
157
|
+
saleCount: number;
|
|
158
|
+
};
|
|
159
|
+
}[];
|
|
160
|
+
}
|
|
161
|
+
interface IGetItemSkuRes {
|
|
162
|
+
/** SKU ID */
|
|
163
|
+
id: string;
|
|
164
|
+
/** 套餐ID */
|
|
165
|
+
comboId: string;
|
|
166
|
+
/** 房型库存库存 */
|
|
167
|
+
roomInfo: {
|
|
168
|
+
id: string;
|
|
169
|
+
name: string;
|
|
170
|
+
stock: number;
|
|
171
|
+
}[];
|
|
172
|
+
stock: number;
|
|
173
|
+
date: number;
|
|
174
|
+
/** 售卖价格 */
|
|
175
|
+
salePrice?: number;
|
|
176
|
+
/** 会员价 */
|
|
177
|
+
memberPrice?: number;
|
|
178
|
+
}
|
|
179
|
+
interface IGetSkuAllMonthRes {
|
|
180
|
+
date: string[];
|
|
181
|
+
}
|
|
182
|
+
/** 获取商品关联的城市 */
|
|
183
|
+
interface IGetItemRelatedCityRes {
|
|
184
|
+
cityList: string[];
|
|
185
|
+
}
|
|
186
|
+
/** 获取城市班车列表 */
|
|
187
|
+
interface IGetShuttleInfoByItemIdAndCityRes {
|
|
188
|
+
relationId: string;
|
|
189
|
+
departureAddress: string;
|
|
190
|
+
salePrice: number;
|
|
191
|
+
minOrderCount: number;
|
|
192
|
+
pickUpTime: string;
|
|
193
|
+
supplierId?: string;
|
|
194
|
+
}
|
|
195
|
+
/** 商品详情 */
|
|
196
|
+
interface IGetItemDetailRes {
|
|
197
|
+
/** 商品ID */
|
|
198
|
+
id: string;
|
|
199
|
+
basicInfo: {
|
|
200
|
+
/** 商品名称 */
|
|
201
|
+
name: string;
|
|
202
|
+
/** 头视频 */
|
|
203
|
+
headVideo: string;
|
|
204
|
+
/** 头图列表 */
|
|
205
|
+
headPics: string[];
|
|
206
|
+
/** 微信视频号信息 */
|
|
207
|
+
wxChannelInfo: {
|
|
208
|
+
finderId?: string;
|
|
209
|
+
feedId?: string;
|
|
210
|
+
};
|
|
211
|
+
/** 商品二级类目 */
|
|
212
|
+
categoryTwo: string;
|
|
213
|
+
/** 特性标签组 */
|
|
214
|
+
featureTags: string[];
|
|
215
|
+
/** 最低价 */
|
|
216
|
+
minPrice: number;
|
|
217
|
+
/** 最低会员价 */
|
|
218
|
+
minMemberPrice: number;
|
|
219
|
+
isMember: boolean;
|
|
220
|
+
floatPictureUrl: string;
|
|
221
|
+
itemTags: {
|
|
222
|
+
id: string;
|
|
223
|
+
name: string;
|
|
224
|
+
type: string;
|
|
225
|
+
}[];
|
|
226
|
+
isMigration: number;
|
|
227
|
+
orderButtonStatus: string;
|
|
228
|
+
isShareOnly?: number;
|
|
229
|
+
isOnlyStaffCanSee?: number;
|
|
230
|
+
};
|
|
231
|
+
}
|
|
232
|
+
/** 商品详情 --额外信息 */
|
|
233
|
+
interface IGetItemExtraInfoRes {
|
|
234
|
+
/** 商品ID */
|
|
235
|
+
id: string;
|
|
236
|
+
/** 娱乐信息 */
|
|
237
|
+
entertainmentInfo: {
|
|
238
|
+
ktv?: EntertainmentInfo;
|
|
239
|
+
card?: EntertainmentInfo;
|
|
240
|
+
swimmingPool?: EntertainmentInfo;
|
|
241
|
+
};
|
|
242
|
+
/** 图文信息 */
|
|
243
|
+
description: DescriptionContentItem[];
|
|
244
|
+
/** 费用包含 */
|
|
245
|
+
costInclusion: {
|
|
246
|
+
title: string;
|
|
247
|
+
value: string;
|
|
248
|
+
}[];
|
|
249
|
+
/** 费用不包含 */
|
|
250
|
+
costExclusion: string;
|
|
251
|
+
/** 退款政策 */
|
|
252
|
+
cancellationPolicy: string;
|
|
253
|
+
/** 优惠活动 */
|
|
254
|
+
discountActivity: CommonDescriptionItem[];
|
|
255
|
+
bannerInfo: Record<string, string | number | boolean | null>;
|
|
256
|
+
}
|
|
257
|
+
/** 商详门店 */
|
|
258
|
+
interface IGetItemRelatedVenueInfoRes {
|
|
259
|
+
id: string;
|
|
260
|
+
type: string;
|
|
261
|
+
basicInfo?: {
|
|
262
|
+
name: string;
|
|
263
|
+
poiInfo?: {
|
|
264
|
+
poi: string;
|
|
265
|
+
region: string;
|
|
266
|
+
city: string;
|
|
267
|
+
province: string;
|
|
268
|
+
address: string;
|
|
269
|
+
location: {
|
|
270
|
+
lat: number;
|
|
271
|
+
lng: number;
|
|
272
|
+
};
|
|
273
|
+
};
|
|
274
|
+
starLevel: number;
|
|
275
|
+
diamondLevel: number;
|
|
276
|
+
qualification: string[];
|
|
277
|
+
openYear: string;
|
|
278
|
+
renovationYear: string;
|
|
279
|
+
roomCount: number;
|
|
280
|
+
introduction: Entity.CommonDescriptionItem[];
|
|
281
|
+
};
|
|
282
|
+
cateringIntroduction?: {
|
|
283
|
+
mealTime: {
|
|
284
|
+
breakfast: [string, string];
|
|
285
|
+
lunch: [string, string];
|
|
286
|
+
dinner: [string, string];
|
|
287
|
+
};
|
|
288
|
+
tableCapacity: number;
|
|
289
|
+
introduction: Entity.CommonDescriptionItem[];
|
|
290
|
+
};
|
|
291
|
+
trafficInfo?: {
|
|
292
|
+
content: {
|
|
293
|
+
title: string;
|
|
294
|
+
value: string;
|
|
295
|
+
}[];
|
|
296
|
+
introduction: Entity.CommonDescriptionItem[];
|
|
297
|
+
};
|
|
298
|
+
policy?: {
|
|
299
|
+
enterLeavingPolicy: {
|
|
300
|
+
checkInTime: string;
|
|
301
|
+
checkOutTime: string;
|
|
302
|
+
applicablePeople: string;
|
|
303
|
+
};
|
|
304
|
+
childrenPolicy: {
|
|
305
|
+
price: {
|
|
306
|
+
meal: {
|
|
307
|
+
low: string;
|
|
308
|
+
high: string;
|
|
309
|
+
medium: string;
|
|
310
|
+
};
|
|
311
|
+
room: {
|
|
312
|
+
low: string;
|
|
313
|
+
high: string;
|
|
314
|
+
medium: string;
|
|
315
|
+
};
|
|
316
|
+
traffic: {
|
|
317
|
+
low: string;
|
|
318
|
+
high: string;
|
|
319
|
+
medium: string;
|
|
320
|
+
};
|
|
321
|
+
};
|
|
322
|
+
};
|
|
323
|
+
};
|
|
324
|
+
facility: {
|
|
325
|
+
subCategoryId: string;
|
|
326
|
+
subCategoryName: string;
|
|
327
|
+
facilityList: {
|
|
328
|
+
id: string;
|
|
329
|
+
name: string;
|
|
330
|
+
category: FacilityCategory;
|
|
331
|
+
icon: string;
|
|
332
|
+
isRelated: boolean;
|
|
333
|
+
enums: string[];
|
|
334
|
+
chosenEnum?: string;
|
|
335
|
+
pics?: string[];
|
|
336
|
+
desc?: string;
|
|
337
|
+
}[];
|
|
338
|
+
}[];
|
|
339
|
+
scenicSpot: Record<string, string | number | boolean | null>;
|
|
340
|
+
}
|
|
341
|
+
/** 商详套餐列表 */
|
|
342
|
+
interface IGetItemAllComboInfoRes {
|
|
343
|
+
/** 基础套餐 */
|
|
344
|
+
combo: {
|
|
345
|
+
id: string;
|
|
346
|
+
itemId: string;
|
|
347
|
+
/** 套餐名称 */
|
|
348
|
+
name: string;
|
|
349
|
+
singleRoomPrice: number;
|
|
350
|
+
/** 售卖价格 */
|
|
351
|
+
salePrice: number;
|
|
352
|
+
/** 会员价 */
|
|
353
|
+
memberPrice?: number;
|
|
354
|
+
isOnlyDoubleQuantity?: boolean;
|
|
355
|
+
}[];
|
|
356
|
+
comboShortcut: {
|
|
357
|
+
id: string;
|
|
358
|
+
itemId: string;
|
|
359
|
+
/** 套餐名称 */
|
|
360
|
+
name: string;
|
|
361
|
+
/** 售卖价格 */
|
|
362
|
+
salePrice: number;
|
|
363
|
+
/** 会员价 */
|
|
364
|
+
memberPrice?: number;
|
|
365
|
+
singleRoomPrice: number;
|
|
366
|
+
isOnlyDoubleQuantity?: boolean;
|
|
367
|
+
}[];
|
|
368
|
+
}
|
|
369
|
+
/** 商详套餐详情 */
|
|
370
|
+
interface IGetItemComboInfoRes {
|
|
371
|
+
id: string;
|
|
372
|
+
itemId: string;
|
|
373
|
+
/** 套餐名称 */
|
|
374
|
+
name: string;
|
|
375
|
+
singleRoomPrice: number;
|
|
376
|
+
maxSingleRoomPrice: number;
|
|
377
|
+
/** 最低价 */
|
|
378
|
+
minPrice: number;
|
|
379
|
+
/** 最低会员价 */
|
|
380
|
+
minMemberPrice: number;
|
|
381
|
+
roomTypeInfo: {
|
|
382
|
+
id: string;
|
|
383
|
+
name: string;
|
|
384
|
+
capacity: number;
|
|
385
|
+
area: number;
|
|
386
|
+
bedInfo: {
|
|
387
|
+
bedWidth: number;
|
|
388
|
+
bedCount: number;
|
|
389
|
+
}[];
|
|
390
|
+
introInfo: CommonDescriptionItem[];
|
|
391
|
+
newRoomFacilities: Record<string, string | string[]>;
|
|
392
|
+
}[];
|
|
393
|
+
mealMenuPics: string[];
|
|
394
|
+
mealBitmap: string;
|
|
395
|
+
isCanModifyMeal: boolean;
|
|
396
|
+
description: DescriptionContentItem[];
|
|
397
|
+
itemRoomSaleBind: Record<string, string | number | boolean | null>;
|
|
398
|
+
nightNum?: number;
|
|
399
|
+
isCanShowEntertainmentInfo: boolean;
|
|
400
|
+
minOrderCount: number;
|
|
401
|
+
mealMenuDesc: string;
|
|
402
|
+
minNightNum?: number;
|
|
403
|
+
maxNightNum?: number;
|
|
404
|
+
isOnlyDoubleQuantity?: boolean;
|
|
405
|
+
isComboShortcut?: boolean;
|
|
406
|
+
}
|
|
407
|
+
/** 查询通用模块描述返回结果 */
|
|
408
|
+
interface IEditCommonModuleDescription {
|
|
409
|
+
/** 购买须知 */
|
|
410
|
+
purchaseNotes: string;
|
|
411
|
+
/** 安全须知 */
|
|
412
|
+
safetyNotes: string;
|
|
413
|
+
/** 文明出行公约 */
|
|
414
|
+
travelConvention: string;
|
|
415
|
+
/** 退改政策 */
|
|
416
|
+
cancellationPolicy: string;
|
|
417
|
+
}
|
|
418
|
+
interface checkItemBeforeOrderRes {
|
|
419
|
+
checkRes: boolean;
|
|
420
|
+
errorMessage?: string;
|
|
421
|
+
}
|
|
422
|
+
interface getMinSalePriceRes {
|
|
423
|
+
itemId: string;
|
|
424
|
+
minPrice: number;
|
|
425
|
+
saleOut: boolean;
|
|
426
|
+
minMemberPrice: number;
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
interface Service {
|
|
430
|
+
getShuttleInfoByItemIdAndCity(request: Request.IGetShuttleInfoByItemIdAndCity): Promise<Response.IGetShuttleInfoByItemIdAndCityRes[]>;
|
|
431
|
+
/** 获取商品关联的城市 */
|
|
432
|
+
getItemRelatedCity(request: Request.IGetItemRelatedCity): Promise<Response.IGetItemRelatedCityRes>;
|
|
433
|
+
/** 获取小程序商品套餐信息 */
|
|
434
|
+
getItemComboById(request: Request.IGetItemComboById): Promise<Response.IGetItemComboByIdRes>;
|
|
435
|
+
/** 获取小程序商品套餐SKU列表 */
|
|
436
|
+
getItemSku(request: Request.IGetItemSku): Promise<Response.IGetItemSkuRes[]>;
|
|
437
|
+
/** 小程序获取sku所有月份 */
|
|
438
|
+
getSkuAllMonth(request: Request.IGetSkuAllMonth): Promise<Response.IGetSkuAllMonthRes>;
|
|
439
|
+
/** 获取商品详情 */
|
|
440
|
+
getItemBasicInfo(request: Request.IGetItemDetail): Promise<Response.IGetItemDetailRes>;
|
|
441
|
+
/** 获取商品详情 -- 额外信息 */
|
|
442
|
+
getItemExtraInfo(request: Request.IGetItemExtraInfo): Promise<Response.IGetItemExtraInfoRes>;
|
|
443
|
+
/** 商详门店 */
|
|
444
|
+
getItemRelatedVenueInfo(request: Request.IGetItemRelatedVenueInfo): Promise<Response.IGetItemRelatedVenueInfoRes>;
|
|
445
|
+
/** 商详套餐信息列表 */
|
|
446
|
+
getItemAllComboInfo(request: Request.IGetItemAllComboInfo): Promise<Response.IGetItemAllComboInfoRes>;
|
|
447
|
+
/** 商详套餐信息详情 */
|
|
448
|
+
getItemComboInfo(request: Request.IGetItemComboInfo): Promise<Response.IGetItemComboInfoRes>;
|
|
449
|
+
/** 查询通用模块描述 */
|
|
450
|
+
queryCommonModuleDescription(): Promise<Response.IEditCommonModuleDescription>;
|
|
451
|
+
/** 下单商品校验 */
|
|
452
|
+
checkItem(request: Request.checkItemBeforeOrder): Promise<Response.checkItemBeforeOrderRes>;
|
|
453
|
+
/** 获取商品最低售卖价格 */
|
|
454
|
+
getMinSalePriceByIds(request: Request.IGetMinSalePrice): Promise<Response.getMinSalePriceRes[]>;
|
|
455
|
+
}
|
|
456
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"itemQuery.js","sourceRoot":"","sources":["../../../../../../../src/vs/modules/biz/commodityV2/types/miniapp/itemQuery.ts"],"names":[],"mappings":""}
|