@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.
Files changed (57) hide show
  1. package/es/assets/js/webview/uni.webview.1.5.5.js +171 -0
  2. package/es/assets/js/webview/uni.webview.1.5.6.js +1 -0
  3. package/es/configs/app/app.hwtest.js +10 -14
  4. package/es/configs/app/app.prod.js +10 -14
  5. package/es/configs/app/app.type.d.ts +13 -10
  6. package/es/configs/app/index.js +30 -24
  7. package/es/constants/routes/index.d.ts +77 -74
  8. package/es/constants/routes/index.js +45 -78
  9. package/es/entry.d.ts +20 -15
  10. package/es/entry.js +37 -35
  11. package/es/enums/business-line/index.d.ts +74 -71
  12. package/es/enums/business-line/index.js +114 -36
  13. package/es/enums/environment/index.d.ts +8 -5
  14. package/es/enums/environment/index.js +14 -4
  15. package/es/enums/sdk/index.d.ts +8 -5
  16. package/es/enums/sdk/index.js +14 -4
  17. package/es/enums/sub/enjoy/index.d.ts +17 -14
  18. package/es/enums/sub/enjoy/index.js +18 -12
  19. package/es/enums/sub/foods/index.d.ts +6 -3
  20. package/es/enums/sub/foods/index.js +10 -4
  21. package/es/enums/sub/hotel/index.d.ts +5 -2
  22. package/es/enums/sub/hotel/index.js +11 -4
  23. package/es/index.d.ts +15 -5
  24. package/es/index.js +15 -43
  25. package/es/services/goods/service.js +128 -0
  26. package/es/services/goods/type.d.ts +25 -20
  27. package/es/types/one-travel-service/index.d.ts +12 -8
  28. package/es/utils/common/index.d.ts +7 -4
  29. package/es/utils/common/index.js +41 -25
  30. package/es/utils/pages/activity-calendar/index.d.ts +6 -4
  31. package/es/utils/pages/activity-calendar/index.js +10 -8
  32. package/es/utils/pages/food/index.d.ts +5 -2
  33. package/es/utils/pages/food/index.js +31 -5
  34. package/es/utils/pages/webview/index.d.ts +10 -7
  35. package/es/utils/pages/webview/index.js +9 -7
  36. package/es/utils/web-view/index.d.ts +23 -18
  37. package/es/utils/web-view/index.js +84 -47
  38. package/package.json +3 -6
  39. package/es/configs/app/app.hwtest.d.ts +0 -3
  40. package/es/configs/app/app.prod.d.ts +0 -3
  41. package/es/configs/app/index.d.ts +0 -7
  42. package/es/configs/index.d.ts +0 -1
  43. package/es/constants/index.d.ts +0 -1
  44. package/es/enums/index.d.ts +0 -5
  45. package/es/enums/storage/index.d.ts +0 -6
  46. package/es/enums/storage/index.js +0 -4
  47. package/es/enums/sub/index.d.ts +0 -3
  48. package/es/libs/webview/uni.webview.1.5.5.js +0 -126
  49. package/es/services/config/index.d.ts +0 -5
  50. package/es/services/config/index.js +0 -7
  51. package/es/services/goods/index.d.ts +0 -2
  52. package/es/services/goods/util.d.ts +0 -6
  53. package/es/services/goods/util.js +0 -76
  54. package/es/services/index.d.ts +0 -2
  55. package/es/types/index.d.ts +0 -1
  56. package/es/utils/index.d.ts +0 -3
  57. package/es/utils/pages/index.d.ts +0 -3
package/es/entry.js CHANGED
@@ -1,36 +1,38 @@
1
- var e = Object.defineProperty;
2
- var i = (r, o, t) => o in r ? e(r, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[o] = t;
3
- var p = (r, o, t) => i(r, typeof o != "symbol" ? o + "" : o, t);
4
- import { jumpToGoodsDetailPage as s } from "./services/goods/util.js";
5
- import { ECaller as n } from "./enums/sdk/index.js";
6
- import { EAppEnv as a } from "./enums/environment/index.js";
7
- import { EStorageKey as m } from "./enums/storage/index.js";
8
- import { getAppConfig as l } from "./configs/app/index.js";
9
- class u {
10
- constructor(o) {
11
- // SDK配置信息
12
- p(this, "sdkOptions");
13
- const t = {
14
- appEnv: a.prod,
15
- caller: n.web,
16
- ...o || {}
17
- };
18
- this.sdkOptions = t, localStorage.setItem(m.configOptions, JSON.stringify(t));
19
- }
20
- /**
21
- * 获取配置信息
22
- */
23
- getConfig() {
24
- return l(this.sdkOptions.appEnv);
25
- }
26
- /**
27
- * 跳转商品详情页
28
- * @param goodsItem 商品数据
29
- */
30
- jumpToGoodsDetailPage(o) {
31
- s(o);
32
- }
33
- }
34
- export {
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
- export declare enum EBusinessLine {
5
- /** 景区/门票 */
6
- Scenic = 1,
7
- /** 酒店 */
8
- Hotel = 2,
9
- /** 民宿 */
10
- Homestay = 3,
11
- /** 酒店/民宿 */
12
- HotelAndHomestay = "2,3",
13
- /** 路线/定制 */
14
- Route = 4,
15
- /** 出行 */
16
- Travel = 5,
17
- /** 美食 */
18
- Foods = 6,
19
- /** 购物 */
20
- Buy = 7,
21
- /** 文娱 */
22
- Entertainment = 8,
23
- /** 攻略 */
24
- Strategy = 9,
25
- /** 种草 */
26
- Recommend = 10,
27
- /** 活动 */
28
- Activity = 11,
29
- /** 声入贵州 */
30
- SoundGuizhou = 12,
31
- /** 精彩视频 */
32
- ExcitingVideo = 13,
33
- /** 吐槽建议 */
34
- Spot = 14,
35
- /** 同城景区 */
36
- SameCityScenic = 15,
37
- /** 新闻 */
38
- News = 16,
39
- /** 景区目的地 */
40
- ScenicDestination = 17,
41
- /** 直播 */
42
- Live = 18,
43
- /** 首页跳转活动日历 */
44
- HomeActivity = 19,
45
- /** 便民服务 */
46
- Convenientervice = 20,
47
- /** 导游服务 */
48
- TourGuideService = 21,
49
- /** 智能行程 */
50
- SmartRoute = 22,
51
- /** ai助手 */
52
- AiAssistant = 23,
53
- /** 一码贵州购物 枚举 */
54
- Onebuygz = 101,
55
- /** 消费券,前端定义,后端无定义 */
56
- ConsumerCoupon = 901,
57
- /** 直播 前端定义,后端无定义 */
58
- Living = 907,
59
- /** 实名认证 前端定义,后端无定义 */
60
- RealName = 908
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
- export declare const BusinessLineDict: Record<EBusinessLine, string>;
66
+ declare const BusinessLineDict: Record<EBusinessLine, string>;
66
67
  /** 子业务线 */
67
- export declare enum ESubBizType {
68
- /** 景区预约(免费) */
69
- ScenicAppoint = 11,
70
- /** 景区门票(购票) */
71
- ScenicTicket = 12,
72
- /** 民宿爆款 */
73
- HomestayHot = 31,
74
- /** 民宿酒店 */
75
- HomestayHotel = 32,
76
- /** 文娱演出 */
77
- EntertainmentPerform = 81,
78
- /** 文娱场馆(预约) */
79
- EntertainmentVenue = 82
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
- var o = /* @__PURE__ */ ((t) => (t[t.Scenic = 1] = "Scenic", t[t.Hotel = 2] = "Hotel", t[t.Homestay = 3] = "Homestay", t.HotelAndHomestay = "2,3", t[t.Route = 4] = "Route", t[t.Travel = 5] = "Travel", t[t.Foods = 6] = "Foods", t[t.Buy = 7] = "Buy", t[t.Entertainment = 8] = "Entertainment", t[t.Strategy = 9] = "Strategy", t[t.Recommend = 10] = "Recommend", t[t.Activity = 11] = "Activity", t[t.SoundGuizhou = 12] = "SoundGuizhou", t[t.ExcitingVideo = 13] = "ExcitingVideo", t[t.Spot = 14] = "Spot", t[t.SameCityScenic = 15] = "SameCityScenic", t[t.News = 16] = "News", t[t.ScenicDestination = 17] = "ScenicDestination", t[t.Live = 18] = "Live", t[t.HomeActivity = 19] = "HomeActivity", t[t.Convenientervice = 20] = "Convenientervice", t[t.TourGuideService = 21] = "TourGuideService", t[t.SmartRoute = 22] = "SmartRoute", t[t.AiAssistant = 23] = "AiAssistant", t[t.Onebuygz = 101] = "Onebuygz", t[t.ConsumerCoupon = 901] = "ConsumerCoupon", t[t.Living = 907] = "Living", t[t.RealName = 908] = "RealName", t))(o || {});
2
- const a = {
3
- 1: "景区",
4
- 2: "酒店",
5
- 3: "民宿",
6
- "2,3": "酒店/民宿",
7
- 4: "路线",
8
- 5: "出行",
9
- 6: "美食",
10
- 7: "购物",
11
- 8: "文娱",
12
- 9: "攻略",
13
- 10: "种草",
14
- 11: "活动",
15
- 12: "声入贵州",
16
- 13: "精彩视频",
17
- 14: "吐槽建议",
18
- 15: "同城景区",
19
- 16: "新闻",
20
- 17: "景区目的地",
21
- 18: "直播",
22
- 19: "HomeActivity",
23
- 20: "按钮",
24
- 21: "导游服务",
25
- 22: "智能行程",
26
- 23: "AI旅游小助手",
27
- 101: "购物",
28
- 901: "消费券",
29
- 907: "直播",
30
- 908: "实名认证"
31
- };
32
- var c = /* @__PURE__ */ ((t) => (t[t.ScenicAppoint = 11] = "ScenicAppoint", t[t.ScenicTicket = 12] = "ScenicTicket", t[t.HomestayHot = 31] = "HomestayHot", t[t.HomestayHotel = 32] = "HomestayHotel", t[t.EntertainmentPerform = 81] = "EntertainmentPerform", t[t.EntertainmentVenue = 82] = "EntertainmentVenue", t))(c || {});
33
- export {
34
- a as BusinessLineDict,
35
- o as EBusinessLine,
36
- c as ESubBizType
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
- export declare enum EAppEnv {
5
- /** 测试 */
6
- test = "test",
7
- /** 生产 */
8
- prod = "prod"
5
+ declare enum EAppEnv {
6
+ /** 测试 */
7
+ test = "test",
8
+ /** 生产 */
9
+ prod = "prod",
9
10
  }
11
+ //#endregion
12
+ export { EAppEnv };
@@ -1,4 +1,14 @@
1
- var t = /* @__PURE__ */ ((r) => (r.test = "test", r.prod = "prod", r))(t || {});
2
- export {
3
- t as EAppEnv
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 };
@@ -1,9 +1,12 @@
1
+ //#region src/enums/sdk/index.d.ts
1
2
  /**
2
3
  * 调用者
3
4
  */
4
- export declare enum ECaller {
5
- /** 网页(默认) */
6
- web = "web",
7
- /** 宿主 */
8
- host = "host"
5
+ declare enum ECaller {
6
+ /** 网页(默认) */
7
+ web = "web",
8
+ /** 宿主 */
9
+ host = "host",
9
10
  }
11
+ //#endregion
12
+ export { ECaller };
@@ -1,4 +1,14 @@
1
- var e = /* @__PURE__ */ ((t) => (t.web = "web", t.host = "host", t))(e || {});
2
- export {
3
- e as ECaller
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
- export declare enum EVenueTypes {
3
- /** 博物馆 */
4
- Museums = "01",
5
- /** 展览馆 */
6
- Exhibitions = "02",
7
- /** 演艺活动 */
8
- Activity = "03"
3
+ declare enum EVenueTypes {
4
+ /** 博物馆 */
5
+ Museums = "01",
6
+ /** 展览馆 */
7
+ Exhibitions = "02",
8
+ /** 演艺活动 */
9
+ Activity = "03",
9
10
  }
10
- export declare const EVenueTypesDes: {
11
- /** 博物馆 */
12
- "01": string;
13
- /** 展览馆 */
14
- "02": string;
15
- /** 演艺活动 */
16
- "03": string;
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
- var i = /* @__PURE__ */ ((t) => (t.Museums = "01", t.Exhibitions = "02", t.Activity = "03", t))(i || {});
2
- const r = {
3
- /** 博物馆 */
4
- "01": "1",
5
- /** 展览馆 */
6
- "02": "2",
7
- /** 演艺活动 */
8
- "03": "3"
9
- };
10
- export {
11
- i as EVenueTypes,
12
- r as EVenueTypesDes
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,5 +1,8 @@
1
+ //#region src/enums/sub/foods/index.d.ts
1
2
  /** 美食跳转 */
2
- export declare enum EFoodsModuleType {
3
- /** 搜藏 */
4
- store = "store"
3
+ declare enum EFoodsModuleType {
4
+ /** 搜藏 */
5
+ store = "store",
5
6
  }
7
+ //#endregion
8
+ export { EFoodsModuleType };
@@ -1,4 +1,10 @@
1
- var e = /* @__PURE__ */ ((r) => (r.store = "store", r))(e || {});
2
- export {
3
- e as EFoodsModuleType
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,6 +1,9 @@
1
+ //#region src/enums/sub/hotel/index.d.ts
1
2
  /**
2
3
  * 酒店类型
3
4
  */
4
- export declare const enum EHotelType {
5
- hotel = "hotel"
5
+ declare const enum EHotelType {
6
+ hotel = "hotel",
6
7
  }
8
+ //#endregion
9
+ export { EHotelType };
@@ -1,4 +1,11 @@
1
- var r = /* @__PURE__ */ ((e) => (e.hotel = "hotel", e))(r || {});
2
- export {
3
- r as EHotelType
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
- export * from './constants';
2
- export * from './enums';
3
- export * from './types';
4
- export * from './utils';
5
- export * from './entry';
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 };