@foundbyte/uni-libs 0.0.5 → 0.0.7
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/es/assets/js/webview/uni.webview.1.5.5.js +171 -0
- package/es/assets/js/webview/uni.webview.1.5.6.js +1 -0
- package/es/configs/app/app.hwtest.js +10 -14
- package/es/configs/app/app.prod.js +10 -14
- package/es/configs/app/app.type.d.ts +13 -10
- package/es/configs/app/index.js +30 -24
- package/es/constants/routes/index.d.ts +77 -74
- package/es/constants/routes/index.js +45 -78
- package/es/entry.d.ts +20 -15
- package/es/entry.js +37 -35
- package/es/enums/business-line/index.d.ts +74 -71
- package/es/enums/business-line/index.js +114 -36
- package/es/enums/environment/index.d.ts +8 -5
- package/es/enums/environment/index.js +14 -4
- package/es/enums/sdk/index.d.ts +8 -5
- package/es/enums/sdk/index.js +14 -4
- package/es/enums/sub/enjoy/index.d.ts +17 -14
- package/es/enums/sub/enjoy/index.js +18 -12
- package/es/enums/sub/foods/index.d.ts +6 -3
- package/es/enums/sub/foods/index.js +10 -4
- package/es/enums/sub/hotel/index.d.ts +5 -2
- package/es/enums/sub/hotel/index.js +11 -4
- package/es/index.d.ts +15 -5
- package/es/index.js +15 -43
- package/es/services/goods/service.js +128 -0
- package/es/services/goods/type.d.ts +25 -20
- package/es/types/one-travel-service/index.d.ts +12 -8
- package/es/utils/common/index.d.ts +7 -4
- package/es/utils/common/index.js +41 -25
- package/es/utils/pages/activity-calendar/index.d.ts +6 -4
- package/es/utils/pages/activity-calendar/index.js +10 -8
- package/es/utils/pages/food/index.d.ts +5 -2
- package/es/utils/pages/food/index.js +31 -5
- package/es/utils/pages/webview/index.d.ts +10 -7
- package/es/utils/pages/webview/index.js +9 -7
- package/es/utils/web-view/index.d.ts +23 -18
- package/es/utils/web-view/index.js +84 -47
- package/package.json +3 -6
- package/es/configs/app/app.hwtest.d.ts +0 -3
- package/es/configs/app/app.prod.d.ts +0 -3
- package/es/configs/app/index.d.ts +0 -7
- package/es/configs/index.d.ts +0 -1
- package/es/constants/index.d.ts +0 -1
- package/es/enums/index.d.ts +0 -5
- package/es/enums/storage/index.d.ts +0 -6
- package/es/enums/storage/index.js +0 -4
- package/es/enums/sub/index.d.ts +0 -3
- package/es/libs/webview/uni.webview.1.5.5.js +0 -126
- package/es/services/config/index.d.ts +0 -5
- package/es/services/config/index.js +0 -7
- package/es/services/goods/index.d.ts +0 -2
- package/es/services/goods/util.d.ts +0 -6
- package/es/services/goods/util.js +0 -76
- package/es/services/index.d.ts +0 -2
- package/es/types/index.d.ts +0 -1
- package/es/utils/index.d.ts +0 -3
- package/es/utils/pages/index.d.ts +0 -3
package/es/entry.js
CHANGED
|
@@ -1,36 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
u as OneTravelSDK
|
|
1
|
+
import { EAppEnv } from "./enums/environment/index.js";
|
|
2
|
+
import { ECaller } from "./enums/sdk/index.js";
|
|
3
|
+
import { getAppConfig } from "./configs/app/index.js";
|
|
4
|
+
import { GoodsService } from "./services/goods/service.js";
|
|
5
|
+
|
|
6
|
+
//#region src/entry.ts
|
|
7
|
+
/**
|
|
8
|
+
* 一码游SDK
|
|
9
|
+
*/
|
|
10
|
+
var OneTravelSDK = class {
|
|
11
|
+
sdkConfig;
|
|
12
|
+
goodsService;
|
|
13
|
+
constructor(config) {
|
|
14
|
+
const value = {
|
|
15
|
+
appEnv: EAppEnv.prod,
|
|
16
|
+
caller: ECaller.web,
|
|
17
|
+
...config || {}
|
|
18
|
+
};
|
|
19
|
+
this.sdkConfig = value;
|
|
20
|
+
this.goodsService = new GoodsService({ sdkConfig: value });
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* 获取App配置信息
|
|
24
|
+
*/
|
|
25
|
+
getAppConfig() {
|
|
26
|
+
return getAppConfig(this.sdkConfig.appEnv);
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* 跳转商品详情页
|
|
30
|
+
* @param goodsItem 商品数据
|
|
31
|
+
*/
|
|
32
|
+
jumpToGoodsDetailPage(goodsItem) {
|
|
33
|
+
this.goodsService.jumpToGoodsDetailPage(goodsItem);
|
|
34
|
+
}
|
|
36
35
|
};
|
|
36
|
+
|
|
37
|
+
//#endregion
|
|
38
|
+
export { OneTravelSDK };
|
|
@@ -1,80 +1,83 @@
|
|
|
1
|
+
//#region src/enums/business-line/index.d.ts
|
|
1
2
|
/**
|
|
2
3
|
* 业务线
|
|
3
4
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
5
|
+
declare enum EBusinessLine {
|
|
6
|
+
/** 景区/门票 */
|
|
7
|
+
Scenic = 1,
|
|
8
|
+
/** 酒店 */
|
|
9
|
+
Hotel = 2,
|
|
10
|
+
/** 民宿 */
|
|
11
|
+
Homestay = 3,
|
|
12
|
+
/** 酒店/民宿 */
|
|
13
|
+
HotelAndHomestay = "2,3",
|
|
14
|
+
/** 路线/定制 */
|
|
15
|
+
Route = 4,
|
|
16
|
+
/** 出行 */
|
|
17
|
+
Travel = 5,
|
|
18
|
+
/** 美食 */
|
|
19
|
+
Foods = 6,
|
|
20
|
+
/** 购物 */
|
|
21
|
+
Buy = 7,
|
|
22
|
+
/** 文娱 */
|
|
23
|
+
Entertainment = 8,
|
|
24
|
+
/** 攻略 */
|
|
25
|
+
Strategy = 9,
|
|
26
|
+
/** 种草 */
|
|
27
|
+
Recommend = 10,
|
|
28
|
+
/** 活动 */
|
|
29
|
+
Activity = 11,
|
|
30
|
+
/** 声入贵州 */
|
|
31
|
+
SoundGuizhou = 12,
|
|
32
|
+
/** 精彩视频 */
|
|
33
|
+
ExcitingVideo = 13,
|
|
34
|
+
/** 吐槽建议 */
|
|
35
|
+
Spot = 14,
|
|
36
|
+
/** 同城景区 */
|
|
37
|
+
SameCityScenic = 15,
|
|
38
|
+
/** 新闻 */
|
|
39
|
+
News = 16,
|
|
40
|
+
/** 景区目的地 */
|
|
41
|
+
ScenicDestination = 17,
|
|
42
|
+
/** 直播 */
|
|
43
|
+
Live = 18,
|
|
44
|
+
/** 首页跳转活动日历 */
|
|
45
|
+
HomeActivity = 19,
|
|
46
|
+
/** 便民服务 */
|
|
47
|
+
Convenientervice = 20,
|
|
48
|
+
/** 导游服务 */
|
|
49
|
+
TourGuideService = 21,
|
|
50
|
+
/** 智能行程 */
|
|
51
|
+
SmartRoute = 22,
|
|
52
|
+
/** ai助手 */
|
|
53
|
+
AiAssistant = 23,
|
|
54
|
+
/** 一码贵州购物 枚举 */
|
|
55
|
+
Onebuygz = 101,
|
|
56
|
+
/** 消费券,前端定义,后端无定义 */
|
|
57
|
+
ConsumerCoupon = 901,
|
|
58
|
+
/** 直播 前端定义,后端无定义 */
|
|
59
|
+
Living = 907,
|
|
60
|
+
/** 实名认证 前端定义,后端无定义 */
|
|
61
|
+
RealName = 908,
|
|
61
62
|
}
|
|
62
63
|
/**
|
|
63
64
|
* 业务线名称映射
|
|
64
65
|
*/
|
|
65
|
-
|
|
66
|
+
declare const BusinessLineDict: Record<EBusinessLine, string>;
|
|
66
67
|
/** 子业务线 */
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
68
|
+
declare enum ESubBizType {
|
|
69
|
+
/** 景区预约(免费) */
|
|
70
|
+
ScenicAppoint = 11,
|
|
71
|
+
/** 景区门票(购票) */
|
|
72
|
+
ScenicTicket = 12,
|
|
73
|
+
/** 民宿爆款 */
|
|
74
|
+
HomestayHot = 31,
|
|
75
|
+
/** 民宿酒店 */
|
|
76
|
+
HomestayHotel = 32,
|
|
77
|
+
/** 文娱演出 */
|
|
78
|
+
EntertainmentPerform = 81,
|
|
79
|
+
/** 文娱场馆(预约) */
|
|
80
|
+
EntertainmentVenue = 82,
|
|
80
81
|
}
|
|
82
|
+
//#endregion
|
|
83
|
+
export { BusinessLineDict, EBusinessLine, ESubBizType };
|
|
@@ -1,37 +1,115 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
1
|
+
//#region src/enums/business-line/index.ts
|
|
2
|
+
/**
|
|
3
|
+
* 业务线
|
|
4
|
+
*/
|
|
5
|
+
let EBusinessLine = /* @__PURE__ */ function(EBusinessLine$1) {
|
|
6
|
+
/** 景区/门票 */
|
|
7
|
+
EBusinessLine$1[EBusinessLine$1["Scenic"] = 1] = "Scenic";
|
|
8
|
+
/** 酒店 */
|
|
9
|
+
EBusinessLine$1[EBusinessLine$1["Hotel"] = 2] = "Hotel";
|
|
10
|
+
/** 民宿 */
|
|
11
|
+
EBusinessLine$1[EBusinessLine$1["Homestay"] = 3] = "Homestay";
|
|
12
|
+
/** 酒店/民宿 */
|
|
13
|
+
EBusinessLine$1["HotelAndHomestay"] = "2,3";
|
|
14
|
+
/** 路线/定制 */
|
|
15
|
+
EBusinessLine$1[EBusinessLine$1["Route"] = 4] = "Route";
|
|
16
|
+
/** 出行 */
|
|
17
|
+
EBusinessLine$1[EBusinessLine$1["Travel"] = 5] = "Travel";
|
|
18
|
+
/** 美食 */
|
|
19
|
+
EBusinessLine$1[EBusinessLine$1["Foods"] = 6] = "Foods";
|
|
20
|
+
/** 购物 */
|
|
21
|
+
EBusinessLine$1[EBusinessLine$1["Buy"] = 7] = "Buy";
|
|
22
|
+
/** 文娱 */
|
|
23
|
+
EBusinessLine$1[EBusinessLine$1["Entertainment"] = 8] = "Entertainment";
|
|
24
|
+
/** 攻略 */
|
|
25
|
+
EBusinessLine$1[EBusinessLine$1["Strategy"] = 9] = "Strategy";
|
|
26
|
+
/** 种草 */
|
|
27
|
+
EBusinessLine$1[EBusinessLine$1["Recommend"] = 10] = "Recommend";
|
|
28
|
+
/** 活动 */
|
|
29
|
+
EBusinessLine$1[EBusinessLine$1["Activity"] = 11] = "Activity";
|
|
30
|
+
/** 声入贵州 */
|
|
31
|
+
EBusinessLine$1[EBusinessLine$1["SoundGuizhou"] = 12] = "SoundGuizhou";
|
|
32
|
+
/** 精彩视频 */
|
|
33
|
+
EBusinessLine$1[EBusinessLine$1["ExcitingVideo"] = 13] = "ExcitingVideo";
|
|
34
|
+
/** 吐槽建议 */
|
|
35
|
+
EBusinessLine$1[EBusinessLine$1["Spot"] = 14] = "Spot";
|
|
36
|
+
/** 同城景区 */
|
|
37
|
+
EBusinessLine$1[EBusinessLine$1["SameCityScenic"] = 15] = "SameCityScenic";
|
|
38
|
+
/** 新闻 */
|
|
39
|
+
EBusinessLine$1[EBusinessLine$1["News"] = 16] = "News";
|
|
40
|
+
/** 景区目的地 */
|
|
41
|
+
EBusinessLine$1[EBusinessLine$1["ScenicDestination"] = 17] = "ScenicDestination";
|
|
42
|
+
/** 直播 */
|
|
43
|
+
EBusinessLine$1[EBusinessLine$1["Live"] = 18] = "Live";
|
|
44
|
+
/** 首页跳转活动日历 */
|
|
45
|
+
EBusinessLine$1[EBusinessLine$1["HomeActivity"] = 19] = "HomeActivity";
|
|
46
|
+
/** 便民服务 */
|
|
47
|
+
EBusinessLine$1[EBusinessLine$1["Convenientervice"] = 20] = "Convenientervice";
|
|
48
|
+
/** 导游服务 */
|
|
49
|
+
EBusinessLine$1[EBusinessLine$1["TourGuideService"] = 21] = "TourGuideService";
|
|
50
|
+
/** 智能行程 */
|
|
51
|
+
EBusinessLine$1[EBusinessLine$1["SmartRoute"] = 22] = "SmartRoute";
|
|
52
|
+
/** ai助手 */
|
|
53
|
+
EBusinessLine$1[EBusinessLine$1["AiAssistant"] = 23] = "AiAssistant";
|
|
54
|
+
/** 一码贵州购物 枚举 */
|
|
55
|
+
EBusinessLine$1[EBusinessLine$1["Onebuygz"] = 101] = "Onebuygz";
|
|
56
|
+
/** 消费券,前端定义,后端无定义 */
|
|
57
|
+
EBusinessLine$1[EBusinessLine$1["ConsumerCoupon"] = 901] = "ConsumerCoupon";
|
|
58
|
+
/** 直播 前端定义,后端无定义 */
|
|
59
|
+
EBusinessLine$1[EBusinessLine$1["Living"] = 907] = "Living";
|
|
60
|
+
/** 实名认证 前端定义,后端无定义 */
|
|
61
|
+
EBusinessLine$1[EBusinessLine$1["RealName"] = 908] = "RealName";
|
|
62
|
+
return EBusinessLine$1;
|
|
63
|
+
}({});
|
|
64
|
+
/**
|
|
65
|
+
* 业务线名称映射
|
|
66
|
+
*/
|
|
67
|
+
const BusinessLineDict = {
|
|
68
|
+
[EBusinessLine.Scenic]: "景区",
|
|
69
|
+
[EBusinessLine.Hotel]: "酒店",
|
|
70
|
+
[EBusinessLine.Homestay]: "民宿",
|
|
71
|
+
[EBusinessLine.HotelAndHomestay]: "酒店/民宿",
|
|
72
|
+
[EBusinessLine.Route]: "路线",
|
|
73
|
+
[EBusinessLine.Travel]: "出行",
|
|
74
|
+
[EBusinessLine.Foods]: "美食",
|
|
75
|
+
[EBusinessLine.Buy]: "购物",
|
|
76
|
+
[EBusinessLine.Entertainment]: "文娱",
|
|
77
|
+
[EBusinessLine.Strategy]: "攻略",
|
|
78
|
+
[EBusinessLine.Recommend]: "种草",
|
|
79
|
+
[EBusinessLine.Activity]: "活动",
|
|
80
|
+
[EBusinessLine.SoundGuizhou]: "声入贵州",
|
|
81
|
+
[EBusinessLine.ExcitingVideo]: "精彩视频",
|
|
82
|
+
[EBusinessLine.Spot]: "吐槽建议",
|
|
83
|
+
[EBusinessLine.SameCityScenic]: "同城景区",
|
|
84
|
+
[EBusinessLine.News]: "新闻",
|
|
85
|
+
[EBusinessLine.ScenicDestination]: "景区目的地",
|
|
86
|
+
[EBusinessLine.Live]: "直播",
|
|
87
|
+
[EBusinessLine.HomeActivity]: "HomeActivity",
|
|
88
|
+
[EBusinessLine.Convenientervice]: "按钮",
|
|
89
|
+
[EBusinessLine.TourGuideService]: "导游服务",
|
|
90
|
+
[EBusinessLine.SmartRoute]: "智能行程",
|
|
91
|
+
[EBusinessLine.AiAssistant]: "AI旅游小助手",
|
|
92
|
+
[EBusinessLine.Onebuygz]: "购物",
|
|
93
|
+
[EBusinessLine.ConsumerCoupon]: "消费券",
|
|
94
|
+
[EBusinessLine.Living]: "直播",
|
|
95
|
+
[EBusinessLine.RealName]: "实名认证"
|
|
37
96
|
};
|
|
97
|
+
/** 子业务线 */
|
|
98
|
+
let ESubBizType = /* @__PURE__ */ function(ESubBizType$1) {
|
|
99
|
+
/** 景区预约(免费) */
|
|
100
|
+
ESubBizType$1[ESubBizType$1["ScenicAppoint"] = 11] = "ScenicAppoint";
|
|
101
|
+
/** 景区门票(购票) */
|
|
102
|
+
ESubBizType$1[ESubBizType$1["ScenicTicket"] = 12] = "ScenicTicket";
|
|
103
|
+
/** 民宿爆款 */
|
|
104
|
+
ESubBizType$1[ESubBizType$1["HomestayHot"] = 31] = "HomestayHot";
|
|
105
|
+
/** 民宿酒店 */
|
|
106
|
+
ESubBizType$1[ESubBizType$1["HomestayHotel"] = 32] = "HomestayHotel";
|
|
107
|
+
/** 文娱演出 */
|
|
108
|
+
ESubBizType$1[ESubBizType$1["EntertainmentPerform"] = 81] = "EntertainmentPerform";
|
|
109
|
+
/** 文娱场馆(预约) */
|
|
110
|
+
ESubBizType$1[ESubBizType$1["EntertainmentVenue"] = 82] = "EntertainmentVenue";
|
|
111
|
+
return ESubBizType$1;
|
|
112
|
+
}({});
|
|
113
|
+
|
|
114
|
+
//#endregion
|
|
115
|
+
export { BusinessLineDict, EBusinessLine, ESubBizType };
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
//#region src/enums/environment/index.d.ts
|
|
1
2
|
/**
|
|
2
3
|
* 环境变量枚举
|
|
3
4
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
declare enum EAppEnv {
|
|
6
|
+
/** 测试 */
|
|
7
|
+
test = "test",
|
|
8
|
+
/** 生产 */
|
|
9
|
+
prod = "prod",
|
|
9
10
|
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { EAppEnv };
|
|
@@ -1,4 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
//#region src/enums/environment/index.ts
|
|
2
|
+
/**
|
|
3
|
+
* 环境变量枚举
|
|
4
|
+
*/
|
|
5
|
+
let EAppEnv = /* @__PURE__ */ function(EAppEnv$1) {
|
|
6
|
+
/** 测试 */
|
|
7
|
+
EAppEnv$1["test"] = "test";
|
|
8
|
+
/** 生产 */
|
|
9
|
+
EAppEnv$1["prod"] = "prod";
|
|
10
|
+
return EAppEnv$1;
|
|
11
|
+
}({});
|
|
12
|
+
|
|
13
|
+
//#endregion
|
|
14
|
+
export { EAppEnv };
|
package/es/enums/sdk/index.d.ts
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
//#region src/enums/sdk/index.d.ts
|
|
1
2
|
/**
|
|
2
3
|
* 调用者
|
|
3
4
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
declare enum ECaller {
|
|
6
|
+
/** 网页(默认) */
|
|
7
|
+
web = "web",
|
|
8
|
+
/** 宿主 */
|
|
9
|
+
host = "host",
|
|
9
10
|
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { ECaller };
|
package/es/enums/sdk/index.js
CHANGED
|
@@ -1,4 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
//#region src/enums/sdk/index.ts
|
|
2
|
+
/**
|
|
3
|
+
* 调用者
|
|
4
|
+
*/
|
|
5
|
+
let ECaller = /* @__PURE__ */ function(ECaller$1) {
|
|
6
|
+
/** 网页(默认) */
|
|
7
|
+
ECaller$1["web"] = "web";
|
|
8
|
+
/** 宿主 */
|
|
9
|
+
ECaller$1["host"] = "host";
|
|
10
|
+
return ECaller$1;
|
|
11
|
+
}({});
|
|
12
|
+
|
|
13
|
+
//#endregion
|
|
14
|
+
export { ECaller };
|
|
@@ -1,17 +1,20 @@
|
|
|
1
|
+
//#region src/enums/sub/enjoy/index.d.ts
|
|
1
2
|
/** 场馆类型 */
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
declare enum EVenueTypes {
|
|
4
|
+
/** 博物馆 */
|
|
5
|
+
Museums = "01",
|
|
6
|
+
/** 展览馆 */
|
|
7
|
+
Exhibitions = "02",
|
|
8
|
+
/** 演艺活动 */
|
|
9
|
+
Activity = "03",
|
|
9
10
|
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
declare const EVenueTypesDes: {
|
|
12
|
+
/** 博物馆 */
|
|
13
|
+
"01": string;
|
|
14
|
+
/** 展览馆 */
|
|
15
|
+
"02": string;
|
|
16
|
+
/** 演艺活动 */
|
|
17
|
+
"03": string;
|
|
17
18
|
};
|
|
19
|
+
//#endregion
|
|
20
|
+
export { EVenueTypes, EVenueTypesDes };
|
|
@@ -1,13 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
//#region src/enums/sub/enjoy/index.ts
|
|
2
|
+
/** 场馆类型 */
|
|
3
|
+
let EVenueTypes = /* @__PURE__ */ function(EVenueTypes$1) {
|
|
4
|
+
/** 博物馆 */
|
|
5
|
+
EVenueTypes$1["Museums"] = "01";
|
|
6
|
+
/** 展览馆 */
|
|
7
|
+
EVenueTypes$1["Exhibitions"] = "02";
|
|
8
|
+
/** 演艺活动 */
|
|
9
|
+
EVenueTypes$1["Activity"] = "03";
|
|
10
|
+
return EVenueTypes$1;
|
|
11
|
+
}({});
|
|
12
|
+
const EVenueTypesDes = {
|
|
13
|
+
[EVenueTypes.Museums]: "1",
|
|
14
|
+
[EVenueTypes.Exhibitions]: "2",
|
|
15
|
+
[EVenueTypes.Activity]: "3"
|
|
13
16
|
};
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { EVenueTypes, EVenueTypesDes };
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
//#region src/enums/sub/foods/index.ts
|
|
2
|
+
/** 美食跳转 */
|
|
3
|
+
let EFoodsModuleType = /* @__PURE__ */ function(EFoodsModuleType$1) {
|
|
4
|
+
/** 搜藏 */
|
|
5
|
+
EFoodsModuleType$1["store"] = "store";
|
|
6
|
+
return EFoodsModuleType$1;
|
|
7
|
+
}({});
|
|
8
|
+
|
|
9
|
+
//#endregion
|
|
10
|
+
export { EFoodsModuleType };
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
//#region src/enums/sub/hotel/index.ts
|
|
2
|
+
/**
|
|
3
|
+
* 酒店类型
|
|
4
|
+
*/
|
|
5
|
+
let EHotelType = /* @__PURE__ */ function(EHotelType$1) {
|
|
6
|
+
EHotelType$1["hotel"] = "hotel";
|
|
7
|
+
return EHotelType$1;
|
|
8
|
+
}({});
|
|
9
|
+
|
|
10
|
+
//#endregion
|
|
11
|
+
export { EHotelType };
|
package/es/index.d.ts
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { routePrefix, routes } from "./constants/routes/index.js";
|
|
2
|
+
import { BusinessLineDict, EBusinessLine, ESubBizType } from "./enums/business-line/index.js";
|
|
3
|
+
import { EAppEnv } from "./enums/environment/index.js";
|
|
4
|
+
import { ECaller } from "./enums/sdk/index.js";
|
|
5
|
+
import { EVenueTypes, EVenueTypesDes } from "./enums/sub/enjoy/index.js";
|
|
6
|
+
import { EFoodsModuleType } from "./enums/sub/foods/index.js";
|
|
7
|
+
import { EHotelType } from "./enums/sub/hotel/index.js";
|
|
8
|
+
import { IOneTravelSDKConfig } from "./types/one-travel-service/index.js";
|
|
9
|
+
import { getQueryParameters, isEmpty, query2url } from "./utils/common/index.js";
|
|
10
|
+
import { ActivityCalendarDetailPageParams, getActivityCalendarDetailPage } from "./utils/pages/activity-calendar/index.js";
|
|
11
|
+
import { WebviewPageParams, getWebviewPage } from "./utils/pages/webview/index.js";
|
|
12
|
+
import { getFoodPackagePage, getFoodStorePage } from "./utils/pages/food/index.js";
|
|
13
|
+
import { EMessagesType, getWebViewEnv, navigateBack, navigateTo, postMessage, redirectTo } from "./utils/web-view/index.js";
|
|
14
|
+
import { OneTravelSDK } from "./entry.js";
|
|
15
|
+
export { ActivityCalendarDetailPageParams, BusinessLineDict, EAppEnv, EBusinessLine, ECaller, EFoodsModuleType, EHotelType, EMessagesType, ESubBizType, EVenueTypes, EVenueTypesDes, IOneTravelSDKConfig, OneTravelSDK, WebviewPageParams, getActivityCalendarDetailPage, getFoodPackagePage, getFoodStorePage, getQueryParameters, getWebViewEnv, getWebviewPage, isEmpty, navigateBack, navigateTo, postMessage, query2url, redirectTo, routePrefix, routes };
|