@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,264 @@
|
|
|
1
|
+
import { ItemCategory } from 'vitality-meta/enums/commodity';
|
|
2
|
+
/** 商品Web服务命名空间 */
|
|
3
|
+
export declare namespace WebItemNamespace {
|
|
4
|
+
namespace DTO {
|
|
5
|
+
interface CommonDescriptionItem {
|
|
6
|
+
type: 'TEXT' | 'IMAGE' | 'FILE';
|
|
7
|
+
value: string | {
|
|
8
|
+
url: string;
|
|
9
|
+
name?: string;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* @description: 描述内容通用结构
|
|
14
|
+
*/
|
|
15
|
+
interface DescriptionContentItem {
|
|
16
|
+
title: string;
|
|
17
|
+
contents: CommonDescriptionItem[];
|
|
18
|
+
}
|
|
19
|
+
/** 娱乐信息描述 */
|
|
20
|
+
interface EntertainmentDescItem {
|
|
21
|
+
pics: string[];
|
|
22
|
+
textList: {
|
|
23
|
+
title: string;
|
|
24
|
+
value: string;
|
|
25
|
+
}[];
|
|
26
|
+
}
|
|
27
|
+
/** 娱乐信息介绍 */
|
|
28
|
+
interface EntertainmentIntroItem {
|
|
29
|
+
title: string;
|
|
30
|
+
value: string;
|
|
31
|
+
}
|
|
32
|
+
interface EntertainmentInfo {
|
|
33
|
+
introduction: EntertainmentIntroItem[];
|
|
34
|
+
description: CommonDescriptionItem[];
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
namespace Request {
|
|
38
|
+
interface IPrepareItem {
|
|
39
|
+
/** 一级类目 */
|
|
40
|
+
categoryOne: string;
|
|
41
|
+
/** 二级类目 */
|
|
42
|
+
categoryTwo: ItemCategory;
|
|
43
|
+
}
|
|
44
|
+
/** 上架商品请求参数 */
|
|
45
|
+
interface IPutOnSale {
|
|
46
|
+
/** 商品ID */
|
|
47
|
+
itemId: string;
|
|
48
|
+
/** 操作人姓名 */
|
|
49
|
+
operatorName: string;
|
|
50
|
+
}
|
|
51
|
+
/** 下架商品请求参数 */
|
|
52
|
+
interface IPutOffSale {
|
|
53
|
+
/** 商品ID */
|
|
54
|
+
itemId: string;
|
|
55
|
+
/** 操作人姓名 */
|
|
56
|
+
operatorName: string;
|
|
57
|
+
}
|
|
58
|
+
/** 复制商品请求参数 */
|
|
59
|
+
interface ICopyItem {
|
|
60
|
+
/** 商品ID */
|
|
61
|
+
itemId: string;
|
|
62
|
+
/** 操作人姓名 */
|
|
63
|
+
operatorName: string;
|
|
64
|
+
}
|
|
65
|
+
/** 删除草稿商品请求参数 */
|
|
66
|
+
interface IDeleteDraftItem {
|
|
67
|
+
/** 商品ID */
|
|
68
|
+
itemId: string;
|
|
69
|
+
/** 操作人姓名 */
|
|
70
|
+
operatorName: string;
|
|
71
|
+
}
|
|
72
|
+
/** 更新商品请求参数 */
|
|
73
|
+
interface IUpdateItem {
|
|
74
|
+
/** 商品基础信息 */
|
|
75
|
+
basicInfo?: {
|
|
76
|
+
/** 商品ID */
|
|
77
|
+
id: string;
|
|
78
|
+
/** 商品名称 */
|
|
79
|
+
name?: string;
|
|
80
|
+
/** 商品状态 */
|
|
81
|
+
status?: string;
|
|
82
|
+
/** 头部视频URL */
|
|
83
|
+
headVideo?: string;
|
|
84
|
+
/** 头图URL列表 */
|
|
85
|
+
headPics?: string[];
|
|
86
|
+
/** 视频号信息 */
|
|
87
|
+
wxChannelInfo?: {
|
|
88
|
+
/** 视频号ID */
|
|
89
|
+
finderId?: string;
|
|
90
|
+
/** 视频号视频ID */
|
|
91
|
+
feedId?: string;
|
|
92
|
+
};
|
|
93
|
+
/** 一级类目 */
|
|
94
|
+
categoryOne?: string;
|
|
95
|
+
/** 二级类目 */
|
|
96
|
+
categoryTwo?: string;
|
|
97
|
+
/** 供应商ID */
|
|
98
|
+
supplierId?: string;
|
|
99
|
+
/** 服务场所ID */
|
|
100
|
+
venueId?: string;
|
|
101
|
+
/** 特性标签列表 */
|
|
102
|
+
featureTags?: string[];
|
|
103
|
+
/** 最低售卖价格 */
|
|
104
|
+
minSalePrice?: number;
|
|
105
|
+
/** 最小起订数量 */
|
|
106
|
+
minOrderCount?: number;
|
|
107
|
+
/** 销售数量 */
|
|
108
|
+
saleCount?: number;
|
|
109
|
+
/** 发票信息 */
|
|
110
|
+
invoiceInfo?: {
|
|
111
|
+
/** 开票方:PLATFORM-平台,MERCHANT-商家 */
|
|
112
|
+
party?: string;
|
|
113
|
+
/** 发票类型:ELECTRONIC-电子发票,PAPER-纸质发票 */
|
|
114
|
+
type?: ('ELECTRONIC' | 'PAPER')[];
|
|
115
|
+
};
|
|
116
|
+
/** 财务信息 */
|
|
117
|
+
finance?: {
|
|
118
|
+
/** 结算说明 */
|
|
119
|
+
settlementDesc?: string;
|
|
120
|
+
/** 合同生效时间 */
|
|
121
|
+
contractEffectTime?: number;
|
|
122
|
+
/** 合同终止时间 */
|
|
123
|
+
contractExpireTime?: number;
|
|
124
|
+
/** 合同文件URL */
|
|
125
|
+
contractFile?: string;
|
|
126
|
+
};
|
|
127
|
+
/** 优惠活动描述 */
|
|
128
|
+
discountActivity?: DTO.CommonDescriptionItem[];
|
|
129
|
+
/** 图文详情 */
|
|
130
|
+
description?: DTO.DescriptionContentItem[];
|
|
131
|
+
/** 费用包含项 */
|
|
132
|
+
costInclusion?: {
|
|
133
|
+
/** 标题 */
|
|
134
|
+
title: string;
|
|
135
|
+
/** 内容 */
|
|
136
|
+
value: string;
|
|
137
|
+
}[];
|
|
138
|
+
/** 费用不包含说明 */
|
|
139
|
+
costExclusion?: string;
|
|
140
|
+
/** 退改政策 */
|
|
141
|
+
cancellationPolicy?: string;
|
|
142
|
+
/** 出行前 N 天(免损截止) */
|
|
143
|
+
freeRefundDeadlineDays?: number | null;
|
|
144
|
+
/** N 点前,格式 HH:mm:ss */
|
|
145
|
+
freeRefundDeadlineTime?: string | null;
|
|
146
|
+
/** 接单前免损期内是否支持全额自动退款 */
|
|
147
|
+
supportAutoRefundBeforeAccept?: number;
|
|
148
|
+
/** 接单后免损期内是否支持全额自动退款 */
|
|
149
|
+
supportAutoRefundAfterAccept?: number;
|
|
150
|
+
};
|
|
151
|
+
/** 商品属性 */
|
|
152
|
+
attributes?: {
|
|
153
|
+
/** 是否仅支持分享购买 */
|
|
154
|
+
isShareOnly?: boolean;
|
|
155
|
+
/** 是否仅员工可见 */
|
|
156
|
+
isOnlyStaffCanSee?: boolean;
|
|
157
|
+
/** 是否可修改餐食 */
|
|
158
|
+
canModifyMeal?: boolean;
|
|
159
|
+
/** 是否可使用蛋糕券 */
|
|
160
|
+
canUseCakeCoupon?: boolean;
|
|
161
|
+
/** 是否为自组团 */
|
|
162
|
+
isSelfLead?: boolean;
|
|
163
|
+
/** 是否需要微信群 */
|
|
164
|
+
needWxGroup?: boolean;
|
|
165
|
+
/** 是否关闭连住功能 */
|
|
166
|
+
isCloseStayMore?: boolean;
|
|
167
|
+
};
|
|
168
|
+
bizTag?: {
|
|
169
|
+
frontend?: string[];
|
|
170
|
+
backend?: string[];
|
|
171
|
+
list?: string[];
|
|
172
|
+
};
|
|
173
|
+
/** 内部信息 */
|
|
174
|
+
innerInfo?: {
|
|
175
|
+
bizOperators?: string[];
|
|
176
|
+
bizDevelopers?: string[];
|
|
177
|
+
description?: {
|
|
178
|
+
title: string;
|
|
179
|
+
subCategory: DTO.DescriptionContentItem[];
|
|
180
|
+
}[];
|
|
181
|
+
};
|
|
182
|
+
/** 酒店额外信息 */
|
|
183
|
+
hotelExtraInfo?: {
|
|
184
|
+
/** 娱乐设施信息 */
|
|
185
|
+
entertainmentInfo?: {
|
|
186
|
+
/** KTV信息 */
|
|
187
|
+
ktv?: DTO.EntertainmentInfo;
|
|
188
|
+
/** 棋牌室描述 */
|
|
189
|
+
card?: DTO.EntertainmentInfo;
|
|
190
|
+
/** 游泳池描述 */
|
|
191
|
+
swimmingPool?: DTO.EntertainmentInfo;
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
operatorName?: string;
|
|
195
|
+
}
|
|
196
|
+
/** 编辑通用模块描述请求参数 */
|
|
197
|
+
interface IEditCommonModuleDescription {
|
|
198
|
+
/** 购买须知 */
|
|
199
|
+
purchaseNotes: string;
|
|
200
|
+
/** 安全须知 */
|
|
201
|
+
safetyNotes: string;
|
|
202
|
+
/** 文明出行公约 */
|
|
203
|
+
travelConvention: string;
|
|
204
|
+
/** 退改政策 */
|
|
205
|
+
cancellationPolicy: string;
|
|
206
|
+
}
|
|
207
|
+
interface IUpdateMigrationFlag {
|
|
208
|
+
itemId: string;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
namespace Response {
|
|
212
|
+
/** 预生成商品返回结果 */
|
|
213
|
+
interface IPrepareItem {
|
|
214
|
+
/** 商品ID */
|
|
215
|
+
itemId: string;
|
|
216
|
+
}
|
|
217
|
+
/** 查询通用模块描述返回结果 */
|
|
218
|
+
interface IEditCommonModuleDescription {
|
|
219
|
+
/** 购买须知 */
|
|
220
|
+
purchaseNotes: string;
|
|
221
|
+
/** 安全须知 */
|
|
222
|
+
safetyNotes: string;
|
|
223
|
+
/** 文明出行公约 */
|
|
224
|
+
travelConvention: string;
|
|
225
|
+
/** 退改政策 */
|
|
226
|
+
cancellationPolicy: string;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
/** 商品服务接口 */
|
|
230
|
+
interface Service {
|
|
231
|
+
/**
|
|
232
|
+
* 预生成商品ID
|
|
233
|
+
*/
|
|
234
|
+
prepareItem(request: Request.IPrepareItem): Promise<Response.IPrepareItem>;
|
|
235
|
+
/**
|
|
236
|
+
* 上架商品
|
|
237
|
+
*/
|
|
238
|
+
putOnSale(request: Request.IPutOnSale): Promise<void>;
|
|
239
|
+
/**
|
|
240
|
+
* 下架商品
|
|
241
|
+
*/
|
|
242
|
+
putOffSale(request: Request.IPutOffSale): Promise<void>;
|
|
243
|
+
/**
|
|
244
|
+
* 复制商品
|
|
245
|
+
*/
|
|
246
|
+
copyItem(request: Request.ICopyItem): Promise<void>;
|
|
247
|
+
/**
|
|
248
|
+
* 删除草稿商品
|
|
249
|
+
*/
|
|
250
|
+
deleteDraftItem(request: Request.IDeleteDraftItem): Promise<void>;
|
|
251
|
+
/**
|
|
252
|
+
* 更新商品信息
|
|
253
|
+
*/
|
|
254
|
+
updateItem(request: Request.IUpdateItem): Promise<void>;
|
|
255
|
+
/**
|
|
256
|
+
* 编辑通用模块描述
|
|
257
|
+
*/
|
|
258
|
+
editCommonModuleDescription(request: Request.IEditCommonModuleDescription): Promise<void>;
|
|
259
|
+
/** 查询通用模块描述 */
|
|
260
|
+
queryCommonModuleDescription(): Promise<Response.IEditCommonModuleDescription>;
|
|
261
|
+
/** 商品迁移 */
|
|
262
|
+
updateMigrationFlag(request: Request.IUpdateMigrationFlag): Promise<void>;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"item.js","sourceRoot":"","sources":["../../../../../../../src/vs/modules/biz/commodityV2/types/web/item.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import * as CommodityEnums from 'vitality-meta/enums/commodity';
|
|
2
|
+
import { CSDto } from '@be-link/cs-cli-nodejs';
|
|
3
|
+
export declare namespace WebItemQueryNamespace {
|
|
4
|
+
namespace Request {
|
|
5
|
+
interface IQueryCondition {
|
|
6
|
+
itemName?: string;
|
|
7
|
+
itemId?: string;
|
|
8
|
+
cityList?: string[];
|
|
9
|
+
isMemberPrice?: boolean;
|
|
10
|
+
status?: CommodityEnums.ItemStatus;
|
|
11
|
+
isHighCommission?: number;
|
|
12
|
+
isMigration?: boolean;
|
|
13
|
+
isStock?: boolean;
|
|
14
|
+
/** 分佣金额状态 */
|
|
15
|
+
commissionFee?: 'NO_EDIT' | 'HAS_EDIT';
|
|
16
|
+
saleChannels?: ('WX' | 'TRAVEL_AGENCY_STORE' | 'LIVE_ROOM')[];
|
|
17
|
+
}
|
|
18
|
+
export interface IQueryItemList {
|
|
19
|
+
condition?: IQueryCondition;
|
|
20
|
+
pageIndex?: number;
|
|
21
|
+
pageSize?: number;
|
|
22
|
+
}
|
|
23
|
+
export type IQueryItemListForHotel = IQueryItemList;
|
|
24
|
+
export interface IGetItemDetail {
|
|
25
|
+
itemId: string;
|
|
26
|
+
}
|
|
27
|
+
interface IQueryFarmHouseItemListCondition extends IQueryCondition {
|
|
28
|
+
isCooperator: boolean;
|
|
29
|
+
}
|
|
30
|
+
export interface IQueryItemListForFarmHouse extends IQueryItemList {
|
|
31
|
+
condition: IQueryFarmHouseItemListCondition;
|
|
32
|
+
}
|
|
33
|
+
interface IQueryTourItemListCondition extends IQueryCondition {
|
|
34
|
+
categoryTwoList?: CommodityEnums.ItemCategory[];
|
|
35
|
+
}
|
|
36
|
+
export interface IQueryItemListForTour extends IQueryItemList {
|
|
37
|
+
condition: IQueryTourItemListCondition;
|
|
38
|
+
}
|
|
39
|
+
export type IQueryItemListForParty = IQueryItemList;
|
|
40
|
+
/** 查询商品标签关联的商品列表入参 */
|
|
41
|
+
export interface IQueryItemListByTag {
|
|
42
|
+
/** 商品ID */
|
|
43
|
+
tagId: string;
|
|
44
|
+
}
|
|
45
|
+
/** 查询电商/非电商 商品入参 */
|
|
46
|
+
export interface IQueryAllItemList {
|
|
47
|
+
itemType: CommodityEnums.CommodityItemType;
|
|
48
|
+
itemName?: string;
|
|
49
|
+
itemCategoryList?: string[];
|
|
50
|
+
address?: string;
|
|
51
|
+
status?: CommodityEnums.ItemStatus;
|
|
52
|
+
pageIndex?: number;
|
|
53
|
+
pageSize?: number;
|
|
54
|
+
}
|
|
55
|
+
export {};
|
|
56
|
+
}
|
|
57
|
+
namespace Response {
|
|
58
|
+
interface IQueryItem {
|
|
59
|
+
id: string;
|
|
60
|
+
itemName: string;
|
|
61
|
+
status: CommodityEnums.ItemStatus;
|
|
62
|
+
hasValidSku: boolean;
|
|
63
|
+
saleCount: number;
|
|
64
|
+
hotelSupplier: string;
|
|
65
|
+
venueName: string;
|
|
66
|
+
venueId: string;
|
|
67
|
+
categoryOne: string;
|
|
68
|
+
categoryTwo: CommodityEnums.ItemCategory;
|
|
69
|
+
belinkOwner: string;
|
|
70
|
+
cityList: string[];
|
|
71
|
+
isMigration: number;
|
|
72
|
+
bizDevelopers: string;
|
|
73
|
+
bizOperators: string;
|
|
74
|
+
itemSalePrice: number;
|
|
75
|
+
isWxSaleChannel: boolean;
|
|
76
|
+
isLiveRoomSaleChannel: boolean;
|
|
77
|
+
isTravelAgencyStore: boolean;
|
|
78
|
+
}
|
|
79
|
+
interface IQueryItemListTourParty extends IQueryItemList {
|
|
80
|
+
headPic: string[];
|
|
81
|
+
isSelfLead: boolean;
|
|
82
|
+
}
|
|
83
|
+
interface IQueryItemList {
|
|
84
|
+
list: IQueryItem[];
|
|
85
|
+
total: number;
|
|
86
|
+
}
|
|
87
|
+
type IQueryItemListForHotel = IQueryItemList;
|
|
88
|
+
interface IBizTag {
|
|
89
|
+
id: string;
|
|
90
|
+
name: string;
|
|
91
|
+
type: string;
|
|
92
|
+
tagIndex: number;
|
|
93
|
+
}
|
|
94
|
+
interface IGetItemDetail {
|
|
95
|
+
basicInfo: CSDto.IItemBasicInfo;
|
|
96
|
+
attributes: CSDto.IItemAttributes;
|
|
97
|
+
hotelExtraInfo: CSDto.IHotelItemInfo;
|
|
98
|
+
bizTagList: IBizTag[];
|
|
99
|
+
/** 商品销售描述 */
|
|
100
|
+
innerInfo: CSDto.IItemSalesDescription;
|
|
101
|
+
}
|
|
102
|
+
type IQueryItemListForFarmHouse = IQueryItemList;
|
|
103
|
+
interface IQueryItemListForTour {
|
|
104
|
+
list: IQueryItemListTourParty[];
|
|
105
|
+
total: number;
|
|
106
|
+
}
|
|
107
|
+
interface IQueryItemListForParty {
|
|
108
|
+
list: IQueryItemListTourParty[];
|
|
109
|
+
total: number;
|
|
110
|
+
}
|
|
111
|
+
interface IQueryItemListByTag {
|
|
112
|
+
itemType: string;
|
|
113
|
+
itemList: {
|
|
114
|
+
id: string;
|
|
115
|
+
name: string;
|
|
116
|
+
categoryTwo: string;
|
|
117
|
+
saleCount: number;
|
|
118
|
+
status: CommodityEnums.CommonSaleStatus;
|
|
119
|
+
sellOut: boolean;
|
|
120
|
+
}[];
|
|
121
|
+
}
|
|
122
|
+
type IQueryItemListByTagResp = IQueryItemListByTag;
|
|
123
|
+
/** 查询电商/非电商 商品 */
|
|
124
|
+
interface IQueryAllItemList {
|
|
125
|
+
list: {
|
|
126
|
+
/** 商品ID */
|
|
127
|
+
id: string;
|
|
128
|
+
/** 商品名称 */
|
|
129
|
+
name: string;
|
|
130
|
+
/** 商品二级类目 */
|
|
131
|
+
categoryTwo?: string;
|
|
132
|
+
/** 商品状态 */
|
|
133
|
+
status: string;
|
|
134
|
+
/** 是否售罄 */
|
|
135
|
+
sellOut: boolean;
|
|
136
|
+
}[];
|
|
137
|
+
total: number;
|
|
138
|
+
}
|
|
139
|
+
/** 查询视频号账号返回结果 */
|
|
140
|
+
interface IQueryVideoAccountResponse {
|
|
141
|
+
/** 视频号账号列表 */
|
|
142
|
+
data: {
|
|
143
|
+
/** 账号名称 */
|
|
144
|
+
name: string;
|
|
145
|
+
/** 视频号ID */
|
|
146
|
+
wxChannelId: string;
|
|
147
|
+
}[];
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
interface Service {
|
|
151
|
+
/** 查询商品列表 */
|
|
152
|
+
queryAllItemList(request: Request.IQueryAllItemList): Promise<Response.IQueryAllItemList>;
|
|
153
|
+
queryItemListForHotel(request: Request.IQueryItemListForHotel): Promise<Response.IQueryItemListForHotel>;
|
|
154
|
+
queryItemListByTag(request: Request.IQueryItemListByTag): Promise<Response.IQueryItemListByTagResp>;
|
|
155
|
+
getItemDetail(Request: Request.IGetItemDetail): Promise<Response.IGetItemDetail>;
|
|
156
|
+
queryItemListForFarmHouse(request: Request.IQueryItemListForFarmHouse): Promise<Response.IQueryItemListForFarmHouse>;
|
|
157
|
+
queryItemListForTour(request: Request.IQueryItemListForTour): Promise<Response.IQueryItemListForTour>;
|
|
158
|
+
queryItemListForParty(request: Request.IQueryItemListForParty): Promise<Response.IQueryItemListForParty>;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"itemQuery.js","sourceRoot":"","sources":["../../../../../../../src/vs/modules/biz/commodityV2/types/web/itemQuery.ts"],"names":[],"mappings":""}
|