@foundbyte/uni-libs 1.0.5 → 1.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 (37) hide show
  1. package/es/_virtual/_@oxc-project_runtime@0.122.0/helpers/asyncToGenerator.js +27 -0
  2. package/es/_virtual/_@oxc-project_runtime@0.122.0/helpers/defineProperty.js +12 -0
  3. package/es/_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js +25 -0
  4. package/es/_virtual/_@oxc-project_runtime@0.122.0/helpers/objectWithoutProperties.js +13 -0
  5. package/es/_virtual/_@oxc-project_runtime@0.122.0/helpers/objectWithoutPropertiesLoose.js +12 -0
  6. package/es/_virtual/_@oxc-project_runtime@0.122.0/helpers/toPrimitive.js +14 -0
  7. package/es/_virtual/_@oxc-project_runtime@0.122.0/helpers/toPropertyKey.js +9 -0
  8. package/es/_virtual/_@oxc-project_runtime@0.122.0/helpers/typeof.js +11 -0
  9. package/es/configs/app/app.hwtest.js +2 -4
  10. package/es/configs/app/app.prod.js +1 -3
  11. package/es/configs/app/index.js +13 -17
  12. package/es/constants/permission/index.js +1 -2
  13. package/es/constants/routes/index.d.ts +0 -2
  14. package/es/constants/routes/index.js +1 -3
  15. package/es/entry.js +8 -9
  16. package/es/enums/business-line/index.d.ts +64 -2
  17. package/es/enums/business-line/index.js +75 -44
  18. package/es/enums/environment/index.js +5 -6
  19. package/es/enums/platform/index.js +6 -7
  20. package/es/enums/sdk/index.js +5 -6
  21. package/es/enums/sub/enjoy/index.js +13 -14
  22. package/es/enums/sub/foods/index.js +8 -9
  23. package/es/enums/sub/hotel/index.js +4 -5
  24. package/es/index.d.ts +2 -2
  25. package/es/index.js +2 -3
  26. package/es/services/goods/service.js +123 -107
  27. package/es/services/goods/type.d.ts +70 -70
  28. package/es/utils/common/index.js +3 -4
  29. package/es/utils/native-app/index.js +8 -10
  30. package/es/utils/pages/activity-calendar/index.js +1 -3
  31. package/es/utils/pages/food/index.js +1 -3
  32. package/es/utils/pages/movie/index.js +1 -3
  33. package/es/utils/pages/webview/index.js +1 -3
  34. package/es/utils/uni-env/index.d.ts +3 -53
  35. package/es/utils/uni-env/index.js +10 -62
  36. package/es/utils/web-view/index.js +45 -33
  37. package/package.json +1 -1
@@ -0,0 +1,27 @@
1
+ //#region \0@oxc-project+runtime@0.122.0/helpers/asyncToGenerator.js
2
+ function asyncGeneratorStep(n, t, e, r, o, a, c) {
3
+ try {
4
+ var i = n[a](c), u = i.value;
5
+ } catch (n) {
6
+ e(n);
7
+ return;
8
+ }
9
+ i.done ? t(u) : Promise.resolve(u).then(r, o);
10
+ }
11
+ function _asyncToGenerator(n) {
12
+ return function() {
13
+ var t = this, e = arguments;
14
+ return new Promise(function(r, o) {
15
+ var a = n.apply(t, e);
16
+ function _next(n) {
17
+ asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
18
+ }
19
+ function _throw(n) {
20
+ asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
21
+ }
22
+ _next(void 0);
23
+ });
24
+ };
25
+ }
26
+ //#endregion
27
+ export { _asyncToGenerator };
@@ -0,0 +1,12 @@
1
+ import { toPropertyKey } from "./toPropertyKey.js";
2
+ //#region \0@oxc-project+runtime@0.122.0/helpers/defineProperty.js
3
+ function _defineProperty(e, r, t) {
4
+ return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
5
+ value: t,
6
+ enumerable: !0,
7
+ configurable: !0,
8
+ writable: !0
9
+ }) : e[r] = t, e;
10
+ }
11
+ //#endregion
12
+ export { _defineProperty };
@@ -0,0 +1,25 @@
1
+ import { _defineProperty } from "./defineProperty.js";
2
+ //#region \0@oxc-project+runtime@0.122.0/helpers/objectSpread2.js
3
+ function ownKeys(e, r) {
4
+ var t = Object.keys(e);
5
+ if (Object.getOwnPropertySymbols) {
6
+ var o = Object.getOwnPropertySymbols(e);
7
+ r && (o = o.filter(function(r) {
8
+ return Object.getOwnPropertyDescriptor(e, r).enumerable;
9
+ })), t.push.apply(t, o);
10
+ }
11
+ return t;
12
+ }
13
+ function _objectSpread2(e) {
14
+ for (var r = 1; r < arguments.length; r++) {
15
+ var t = null != arguments[r] ? arguments[r] : {};
16
+ r % 2 ? ownKeys(Object(t), !0).forEach(function(r) {
17
+ _defineProperty(e, r, t[r]);
18
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r) {
19
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
20
+ });
21
+ }
22
+ return e;
23
+ }
24
+ //#endregion
25
+ export { _objectSpread2 };
@@ -0,0 +1,13 @@
1
+ import { _objectWithoutPropertiesLoose } from "./objectWithoutPropertiesLoose.js";
2
+ //#region \0@oxc-project+runtime@0.122.0/helpers/objectWithoutProperties.js
3
+ function _objectWithoutProperties(e, t) {
4
+ if (null == e) return {};
5
+ var o, r, i = _objectWithoutPropertiesLoose(e, t);
6
+ if (Object.getOwnPropertySymbols) {
7
+ var s = Object.getOwnPropertySymbols(e);
8
+ for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
9
+ }
10
+ return i;
11
+ }
12
+ //#endregion
13
+ export { _objectWithoutProperties };
@@ -0,0 +1,12 @@
1
+ //#region \0@oxc-project+runtime@0.122.0/helpers/objectWithoutPropertiesLoose.js
2
+ function _objectWithoutPropertiesLoose(r, e) {
3
+ if (null == r) return {};
4
+ var t = {};
5
+ for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
6
+ if (e.includes(n)) continue;
7
+ t[n] = r[n];
8
+ }
9
+ return t;
10
+ }
11
+ //#endregion
12
+ export { _objectWithoutPropertiesLoose };
@@ -0,0 +1,14 @@
1
+ import { _typeof } from "./typeof.js";
2
+ //#region \0@oxc-project+runtime@0.122.0/helpers/toPrimitive.js
3
+ function toPrimitive(t, r) {
4
+ if ("object" != _typeof(t) || !t) return t;
5
+ var e = t[Symbol.toPrimitive];
6
+ if (void 0 !== e) {
7
+ var i = e.call(t, r || "default");
8
+ if ("object" != _typeof(i)) return i;
9
+ throw new TypeError("@@toPrimitive must return a primitive value.");
10
+ }
11
+ return ("string" === r ? String : Number)(t);
12
+ }
13
+ //#endregion
14
+ export { toPrimitive };
@@ -0,0 +1,9 @@
1
+ import { _typeof } from "./typeof.js";
2
+ import { toPrimitive } from "./toPrimitive.js";
3
+ //#region \0@oxc-project+runtime@0.122.0/helpers/toPropertyKey.js
4
+ function toPropertyKey(t) {
5
+ var i = toPrimitive(t, "string");
6
+ return "symbol" == _typeof(i) ? i : i + "";
7
+ }
8
+ //#endregion
9
+ export { toPropertyKey };
@@ -0,0 +1,11 @@
1
+ //#region \0@oxc-project+runtime@0.122.0/helpers/typeof.js
2
+ function _typeof(o) {
3
+ "@babel/helpers - typeof";
4
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
5
+ return typeof o;
6
+ } : function(o) {
7
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
8
+ }, _typeof(o);
9
+ }
10
+ //#endregion
11
+ export { _typeof };
@@ -2,10 +2,8 @@
2
2
  const config = { domain: {
3
3
  shopping: "https://shopping-h5.onetravelgz.cn/#/",
4
4
  food: "https://food-h5.onetravelgz.cn/#/",
5
- onebuygz: "https://testb2ch5-travel.gcongo.com.cn/#/",
5
+ onebuygz: "https://testb2ch5-travel.gcongo.cn/#/",
6
6
  movie: "https://147gn9gm.life.mczjk.cn/#/"
7
7
  } };
8
- var app_hwtest_default = config;
9
-
10
8
  //#endregion
11
- export { app_hwtest_default as default };
9
+ export { config as default };
@@ -5,7 +5,5 @@ const config = { domain: {
5
5
  onebuygz: "https://travel.onebuygz.com/#/",
6
6
  movie: "https://147gn9gm.life.mczjk.cn/#/"
7
7
  } };
8
- var app_prod_default = config;
9
-
10
8
  //#endregion
11
- export { app_prod_default as default };
9
+ export { config as default };
@@ -1,32 +1,28 @@
1
1
  import { EAppEnv } from "../../enums/environment/index.js";
2
- import app_hwtest_default from "./app.hwtest.js";
3
- import app_prod_default from "./app.prod.js";
4
-
2
+ import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js";
3
+ import config from "./app.hwtest.js";
4
+ import config$1 from "./app.prod.js";
5
5
  //#region src/configs/app/index.ts
6
6
  /**
7
7
  * 获取App配置信息
8
8
  * @param appEnv
9
9
  */
10
10
  function getAppConfig(appEnv) {
11
- let config;
11
+ let config$2;
12
12
  switch (appEnv) {
13
13
  case EAppEnv.test:
14
- config = app_hwtest_default;
14
+ config$2 = config;
15
15
  break;
16
16
  case EAppEnv.prod:
17
- config = app_prod_default;
17
+ config$2 = config$1;
18
18
  break;
19
19
  }
20
- return {
21
- domain: {
22
- shopping: "",
23
- food: "",
24
- onebuygz: "",
25
- movie: ""
26
- },
27
- ...config
28
- };
20
+ return _objectSpread2({ domain: {
21
+ shopping: "",
22
+ food: "",
23
+ onebuygz: "",
24
+ movie: ""
25
+ } }, config$2);
29
26
  }
30
-
31
27
  //#endregion
32
- export { getAppConfig };
28
+ export { getAppConfig };
@@ -42,6 +42,5 @@ const app_permission = {
42
42
  denied: "获取相机/相册权限失败,请手动打开授权"
43
43
  }
44
44
  };
45
-
46
45
  //#endregion
47
- export { app_permission };
46
+ export { app_permission };
@@ -68,8 +68,6 @@ declare const routePrefix: Readonly<{
68
68
  footprint: "/sub/footprint/pages";
69
69
  /** 新闻 */
70
70
  news: "/sub/message/pages";
71
- /** 声入贵州 */
72
- soundGuizhou: "/sub/sound-guizhou/pages";
73
71
  /** 活动日历 */
74
72
  activityCalendar: "/sub/activity-calendar/pages";
75
73
  /** 项目库 */
@@ -36,12 +36,10 @@ const routePrefix = Object.freeze({
36
36
  mine: "/sub/mine/pages",
37
37
  footprint: "/sub/footprint/pages",
38
38
  news: "/sub/message/pages",
39
- soundGuizhou: "/sub/sound-guizhou/pages",
40
39
  activityCalendar: "/sub/activity-calendar/pages",
41
40
  projectLibrary: "/sub/project-library/pages",
42
41
  destination: "/sub/destination/pages",
43
42
  smartRoute: "/sub/smart-route/pages"
44
43
  });
45
-
46
44
  //#endregion
47
- export { routePrefix, routes };
45
+ export { routePrefix, routes };
package/es/entry.js CHANGED
@@ -1,21 +1,21 @@
1
1
  import { EAppEnv } from "./enums/environment/index.js";
2
2
  import { ECaller } from "./enums/sdk/index.js";
3
+ import { _defineProperty } from "./_virtual/_@oxc-project_runtime@0.122.0/helpers/defineProperty.js";
4
+ import { _objectSpread2 } from "./_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js";
3
5
  import { getAppConfig } from "./configs/app/index.js";
4
6
  import { GoodsService } from "./services/goods/service.js";
5
-
6
7
  //#region src/entry.ts
7
8
  /**
8
9
  * 一码游SDK
9
10
  */
10
11
  var OneTravelSDK = class {
11
- sdkConfig;
12
- goodsService;
13
12
  constructor(config) {
14
- const value = {
13
+ _defineProperty(this, "sdkConfig", void 0);
14
+ _defineProperty(this, "goodsService", void 0);
15
+ const value = _objectSpread2(_objectSpread2({}, {
15
16
  appEnv: EAppEnv.prod,
16
- caller: ECaller.web,
17
- ...config || {}
18
- };
17
+ caller: ECaller.web
18
+ }), config || {});
19
19
  this.sdkConfig = value;
20
20
  this.goodsService = new GoodsService({ sdkConfig: value });
21
21
  }
@@ -26,6 +26,5 @@ var OneTravelSDK = class {
26
26
  return getAppConfig(this.sdkConfig.appEnv);
27
27
  }
28
28
  };
29
-
30
29
  //#endregion
31
- export { OneTravelSDK };
30
+ export { OneTravelSDK };
@@ -60,12 +60,72 @@ declare enum EBusinessLine {
60
60
  /** 实名认证 前端定义,后端无定义 */
61
61
  RealName = 908,
62
62
  /** 电影票 */
63
- Movie = 10000,
63
+ Movie = 81,
64
+ /** 文娱 演唱会 */
65
+ Concert = 82,
66
+ /** 文娱 音乐节 */
67
+ MusicFestival = 83,
68
+ /** 文娱 Livehouse */
69
+ Livehouse = 84,
70
+ /** 文娱 剧场演出 */
71
+ StagePerformance = 85,
72
+ /** 文娱 语言表演 */
73
+ SpeechPerformance = 86,
74
+ /** 文娱 展览活动 */
75
+ Exhibition = 87,
76
+ /** 文娱 休闲娱乐 */
77
+ LeisureActivities = 88,
78
+ /** 特殊证件认证 */
79
+ UniqueCredentialVerification = 24,
80
+ /** 旅行社优惠证件认证 */
81
+ TravelCertificate = 909,
82
+ /** 特殊证件-常见问题解答 */
83
+ UniqueCredentialQuestion = 25,
84
+ /** ai客服页面 */
85
+ AiCustomerService = 26,
86
+ /** 徒旅贵州 */
87
+ Tulv = 27,
88
+ /** 徒旅贵州-签到 */
89
+ TulvCheckIn = 271,
90
+ /** 徒旅贵州-自由行 */
91
+ TulvFreeWalker = 272,
92
+ /** ai助手页面(问道贵州,后端无定义) */
93
+ AiHelper = 1023,
64
94
  }
65
95
  /**
66
96
  * 业务线名称映射
67
97
  */
68
- declare const BusinessLineDict: Record<EBusinessLine, string>;
98
+ declare const BusinessLineDict: Readonly<{
99
+ 1: "景区";
100
+ 2: "酒店";
101
+ 3: "民宿";
102
+ "2,3": "酒店/民宿";
103
+ 4: "路线";
104
+ 5: "出行";
105
+ 6: "团购";
106
+ 7: "购物";
107
+ 8: "文娱";
108
+ 9: "攻略";
109
+ 10: "种草";
110
+ 11: "活动";
111
+ 12: "声入贵州";
112
+ 13: "精彩视频";
113
+ 14: "吐槽建议";
114
+ 15: "同城景区";
115
+ 16: "新闻";
116
+ 17: "景区目的地";
117
+ 18: "直播";
118
+ 19: "HomeActivity";
119
+ 20: "按钮";
120
+ 21: "导游服务";
121
+ 22: "智能行程";
122
+ 23: "AI旅游小助手";
123
+ 101: "购物";
124
+ 901: "消费券";
125
+ 907: "直播";
126
+ 908: "实名认证";
127
+ 81: "电影票";
128
+ }>;
69
129
  /** 子业务线 */
70
130
  declare enum ESubBizType {
71
131
  /** 景区预约(免费) */
@@ -76,6 +136,8 @@ declare enum ESubBizType {
76
136
  HomestayHot = 31,
77
137
  /** 民宿酒店 */
78
138
  HomestayHotel = 32,
139
+ /** 民宿-PMS酒店 */
140
+ HomestayPmsHotel = 33,
79
141
  /** 文娱演出 */
80
142
  EntertainmentPerform = 81,
81
143
  /** 文娱场馆(预约) */
@@ -2,78 +2,108 @@
2
2
  /**
3
3
  * 业务线
4
4
  */
5
- let EBusinessLine = /* @__PURE__ */ function(EBusinessLine$1) {
5
+ let EBusinessLine = /* @__PURE__ */ function(EBusinessLine) {
6
6
  /** 景区/门票 */
7
- EBusinessLine$1[EBusinessLine$1["Scenic"] = 1] = "Scenic";
7
+ EBusinessLine[EBusinessLine["Scenic"] = 1] = "Scenic";
8
8
  /** 酒店 */
9
- EBusinessLine$1[EBusinessLine$1["Hotel"] = 2] = "Hotel";
9
+ EBusinessLine[EBusinessLine["Hotel"] = 2] = "Hotel";
10
10
  /** 民宿 */
11
- EBusinessLine$1[EBusinessLine$1["Homestay"] = 3] = "Homestay";
11
+ EBusinessLine[EBusinessLine["Homestay"] = 3] = "Homestay";
12
12
  /** 酒店/民宿 */
13
- EBusinessLine$1["HotelAndHomestay"] = "2,3";
13
+ EBusinessLine["HotelAndHomestay"] = "2,3";
14
14
  /** 路线/定制 */
15
- EBusinessLine$1[EBusinessLine$1["Route"] = 4] = "Route";
15
+ EBusinessLine[EBusinessLine["Route"] = 4] = "Route";
16
16
  /** 出行 */
17
- EBusinessLine$1[EBusinessLine$1["Travel"] = 5] = "Travel";
17
+ EBusinessLine[EBusinessLine["Travel"] = 5] = "Travel";
18
18
  /** 美食 */
19
- EBusinessLine$1[EBusinessLine$1["Foods"] = 6] = "Foods";
19
+ EBusinessLine[EBusinessLine["Foods"] = 6] = "Foods";
20
20
  /** 购物 */
21
- EBusinessLine$1[EBusinessLine$1["Buy"] = 7] = "Buy";
21
+ EBusinessLine[EBusinessLine["Buy"] = 7] = "Buy";
22
22
  /** 文娱 */
23
- EBusinessLine$1[EBusinessLine$1["Entertainment"] = 8] = "Entertainment";
23
+ EBusinessLine[EBusinessLine["Entertainment"] = 8] = "Entertainment";
24
24
  /** 攻略 */
25
- EBusinessLine$1[EBusinessLine$1["Strategy"] = 9] = "Strategy";
25
+ EBusinessLine[EBusinessLine["Strategy"] = 9] = "Strategy";
26
26
  /** 种草 */
27
- EBusinessLine$1[EBusinessLine$1["Recommend"] = 10] = "Recommend";
27
+ EBusinessLine[EBusinessLine["Recommend"] = 10] = "Recommend";
28
28
  /** 活动 */
29
- EBusinessLine$1[EBusinessLine$1["Activity"] = 11] = "Activity";
29
+ EBusinessLine[EBusinessLine["Activity"] = 11] = "Activity";
30
30
  /** 声入贵州 */
31
- EBusinessLine$1[EBusinessLine$1["SoundGuizhou"] = 12] = "SoundGuizhou";
31
+ EBusinessLine[EBusinessLine["SoundGuizhou"] = 12] = "SoundGuizhou";
32
32
  /** 精彩视频 */
33
- EBusinessLine$1[EBusinessLine$1["ExcitingVideo"] = 13] = "ExcitingVideo";
33
+ EBusinessLine[EBusinessLine["ExcitingVideo"] = 13] = "ExcitingVideo";
34
34
  /** 吐槽建议 */
35
- EBusinessLine$1[EBusinessLine$1["Spot"] = 14] = "Spot";
35
+ EBusinessLine[EBusinessLine["Spot"] = 14] = "Spot";
36
36
  /** 同城景区 */
37
- EBusinessLine$1[EBusinessLine$1["SameCityScenic"] = 15] = "SameCityScenic";
37
+ EBusinessLine[EBusinessLine["SameCityScenic"] = 15] = "SameCityScenic";
38
38
  /** 新闻 */
39
- EBusinessLine$1[EBusinessLine$1["News"] = 16] = "News";
39
+ EBusinessLine[EBusinessLine["News"] = 16] = "News";
40
40
  /** 景区目的地 */
41
- EBusinessLine$1[EBusinessLine$1["ScenicDestination"] = 17] = "ScenicDestination";
41
+ EBusinessLine[EBusinessLine["ScenicDestination"] = 17] = "ScenicDestination";
42
42
  /** 直播 */
43
- EBusinessLine$1[EBusinessLine$1["Live"] = 18] = "Live";
43
+ EBusinessLine[EBusinessLine["Live"] = 18] = "Live";
44
44
  /** 首页跳转活动日历 */
45
- EBusinessLine$1[EBusinessLine$1["HomeActivity"] = 19] = "HomeActivity";
45
+ EBusinessLine[EBusinessLine["HomeActivity"] = 19] = "HomeActivity";
46
46
  /** 便民服务 */
47
- EBusinessLine$1[EBusinessLine$1["Convenientervice"] = 20] = "Convenientervice";
47
+ EBusinessLine[EBusinessLine["Convenientervice"] = 20] = "Convenientervice";
48
48
  /** 导游服务 */
49
- EBusinessLine$1[EBusinessLine$1["TourGuideService"] = 21] = "TourGuideService";
49
+ EBusinessLine[EBusinessLine["TourGuideService"] = 21] = "TourGuideService";
50
50
  /** 智能行程 */
51
- EBusinessLine$1[EBusinessLine$1["SmartRoute"] = 22] = "SmartRoute";
51
+ EBusinessLine[EBusinessLine["SmartRoute"] = 22] = "SmartRoute";
52
52
  /** ai助手 */
53
- EBusinessLine$1[EBusinessLine$1["AiAssistant"] = 23] = "AiAssistant";
53
+ EBusinessLine[EBusinessLine["AiAssistant"] = 23] = "AiAssistant";
54
54
  /** 一码贵州购物 枚举 */
55
- EBusinessLine$1[EBusinessLine$1["Onebuygz"] = 101] = "Onebuygz";
55
+ EBusinessLine[EBusinessLine["Onebuygz"] = 101] = "Onebuygz";
56
56
  /** 消费券,前端定义,后端无定义 */
57
- EBusinessLine$1[EBusinessLine$1["ConsumerCoupon"] = 901] = "ConsumerCoupon";
57
+ EBusinessLine[EBusinessLine["ConsumerCoupon"] = 901] = "ConsumerCoupon";
58
58
  /** 直播 前端定义,后端无定义 */
59
- EBusinessLine$1[EBusinessLine$1["Living"] = 907] = "Living";
59
+ EBusinessLine[EBusinessLine["Living"] = 907] = "Living";
60
60
  /** 实名认证 前端定义,后端无定义 */
61
- EBusinessLine$1[EBusinessLine$1["RealName"] = 908] = "RealName";
61
+ EBusinessLine[EBusinessLine["RealName"] = 908] = "RealName";
62
62
  /** 电影票 */
63
- EBusinessLine$1[EBusinessLine$1["Movie"] = 1e4] = "Movie";
64
- return EBusinessLine$1;
63
+ EBusinessLine[EBusinessLine["Movie"] = 81] = "Movie";
64
+ /** 文娱 演唱会 */
65
+ EBusinessLine[EBusinessLine["Concert"] = 82] = "Concert";
66
+ /** 文娱 音乐节 */
67
+ EBusinessLine[EBusinessLine["MusicFestival"] = 83] = "MusicFestival";
68
+ /** 文娱 Livehouse */
69
+ EBusinessLine[EBusinessLine["Livehouse"] = 84] = "Livehouse";
70
+ /** 文娱 剧场演出 */
71
+ EBusinessLine[EBusinessLine["StagePerformance"] = 85] = "StagePerformance";
72
+ /** 文娱 语言表演 */
73
+ EBusinessLine[EBusinessLine["SpeechPerformance"] = 86] = "SpeechPerformance";
74
+ /** 文娱 展览活动 */
75
+ EBusinessLine[EBusinessLine["Exhibition"] = 87] = "Exhibition";
76
+ /** 文娱 休闲娱乐 */
77
+ EBusinessLine[EBusinessLine["LeisureActivities"] = 88] = "LeisureActivities";
78
+ /** 特殊证件认证 */
79
+ EBusinessLine[EBusinessLine["UniqueCredentialVerification"] = 24] = "UniqueCredentialVerification";
80
+ /** 旅行社优惠证件认证 */
81
+ EBusinessLine[EBusinessLine["TravelCertificate"] = 909] = "TravelCertificate";
82
+ /** 特殊证件-常见问题解答 */
83
+ EBusinessLine[EBusinessLine["UniqueCredentialQuestion"] = 25] = "UniqueCredentialQuestion";
84
+ /** ai客服页面 */
85
+ EBusinessLine[EBusinessLine["AiCustomerService"] = 26] = "AiCustomerService";
86
+ /** 徒旅贵州 */
87
+ EBusinessLine[EBusinessLine["Tulv"] = 27] = "Tulv";
88
+ /** 徒旅贵州-签到 */
89
+ EBusinessLine[EBusinessLine["TulvCheckIn"] = 271] = "TulvCheckIn";
90
+ /** 徒旅贵州-自由行 */
91
+ EBusinessLine[EBusinessLine["TulvFreeWalker"] = 272] = "TulvFreeWalker";
92
+ /** ai助手页面(问道贵州,后端无定义) */
93
+ EBusinessLine[EBusinessLine["AiHelper"] = 1023] = "AiHelper";
94
+ return EBusinessLine;
65
95
  }({});
66
96
  /**
67
97
  * 业务线名称映射
68
98
  */
69
- const BusinessLineDict = {
99
+ const BusinessLineDict = Object.freeze({
70
100
  [EBusinessLine.Scenic]: "景区",
71
101
  [EBusinessLine.Hotel]: "酒店",
72
102
  [EBusinessLine.Homestay]: "民宿",
73
103
  [EBusinessLine.HotelAndHomestay]: "酒店/民宿",
74
104
  [EBusinessLine.Route]: "路线",
75
105
  [EBusinessLine.Travel]: "出行",
76
- [EBusinessLine.Foods]: "美食",
106
+ [EBusinessLine.Foods]: "团购",
77
107
  [EBusinessLine.Buy]: "购物",
78
108
  [EBusinessLine.Entertainment]: "文娱",
79
109
  [EBusinessLine.Strategy]: "攻略",
@@ -96,23 +126,24 @@ const BusinessLineDict = {
96
126
  [EBusinessLine.Living]: "直播",
97
127
  [EBusinessLine.RealName]: "实名认证",
98
128
  [EBusinessLine.Movie]: "电影票"
99
- };
129
+ });
100
130
  /** 子业务线 */
101
- let ESubBizType = /* @__PURE__ */ function(ESubBizType$1) {
131
+ let ESubBizType = /* @__PURE__ */ function(ESubBizType) {
102
132
  /** 景区预约(免费) */
103
- ESubBizType$1[ESubBizType$1["ScenicAppoint"] = 11] = "ScenicAppoint";
133
+ ESubBizType[ESubBizType["ScenicAppoint"] = 11] = "ScenicAppoint";
104
134
  /** 景区门票(购票) */
105
- ESubBizType$1[ESubBizType$1["ScenicTicket"] = 12] = "ScenicTicket";
135
+ ESubBizType[ESubBizType["ScenicTicket"] = 12] = "ScenicTicket";
106
136
  /** 民宿爆款 */
107
- ESubBizType$1[ESubBizType$1["HomestayHot"] = 31] = "HomestayHot";
137
+ ESubBizType[ESubBizType["HomestayHot"] = 31] = "HomestayHot";
108
138
  /** 民宿酒店 */
109
- ESubBizType$1[ESubBizType$1["HomestayHotel"] = 32] = "HomestayHotel";
139
+ ESubBizType[ESubBizType["HomestayHotel"] = 32] = "HomestayHotel";
140
+ /** 民宿-PMS酒店 */
141
+ ESubBizType[ESubBizType["HomestayPmsHotel"] = 33] = "HomestayPmsHotel";
110
142
  /** 文娱演出 */
111
- ESubBizType$1[ESubBizType$1["EntertainmentPerform"] = 81] = "EntertainmentPerform";
143
+ ESubBizType[ESubBizType["EntertainmentPerform"] = 81] = "EntertainmentPerform";
112
144
  /** 文娱场馆(预约) */
113
- ESubBizType$1[ESubBizType$1["EntertainmentVenue"] = 82] = "EntertainmentVenue";
114
- return ESubBizType$1;
145
+ ESubBizType[ESubBizType["EntertainmentVenue"] = 82] = "EntertainmentVenue";
146
+ return ESubBizType;
115
147
  }({});
116
-
117
148
  //#endregion
118
- export { BusinessLineDict, EBusinessLine, ESubBizType };
149
+ export { BusinessLineDict, EBusinessLine, ESubBizType };
@@ -2,13 +2,12 @@
2
2
  /**
3
3
  * 环境变量枚举
4
4
  */
5
- let EAppEnv = /* @__PURE__ */ function(EAppEnv$1) {
5
+ let EAppEnv = /* @__PURE__ */ function(EAppEnv) {
6
6
  /** 测试 */
7
- EAppEnv$1["test"] = "test";
7
+ EAppEnv["test"] = "test";
8
8
  /** 生产 */
9
- EAppEnv$1["prod"] = "prod";
10
- return EAppEnv$1;
9
+ EAppEnv["prod"] = "prod";
10
+ return EAppEnv;
11
11
  }({});
12
-
13
12
  //#endregion
14
- export { EAppEnv };
13
+ export { EAppEnv };
@@ -1,10 +1,9 @@
1
1
  //#region src/enums/platform/index.ts
2
- let EUniPlatform = /* @__PURE__ */ function(EUniPlatform$1) {
3
- EUniPlatform$1["android"] = "android";
4
- EUniPlatform$1["ios"] = "ios";
5
- EUniPlatform$1["harmony"] = "harmony";
6
- return EUniPlatform$1;
2
+ let EUniPlatform = /* @__PURE__ */ function(EUniPlatform) {
3
+ EUniPlatform["android"] = "android";
4
+ EUniPlatform["ios"] = "ios";
5
+ EUniPlatform["harmony"] = "harmony";
6
+ return EUniPlatform;
7
7
  }({});
8
-
9
8
  //#endregion
10
- export { EUniPlatform };
9
+ export { EUniPlatform };
@@ -2,13 +2,12 @@
2
2
  /**
3
3
  * 调用者
4
4
  */
5
- let ECaller = /* @__PURE__ */ function(ECaller$1) {
5
+ let ECaller = /* @__PURE__ */ function(ECaller) {
6
6
  /** 网页(默认) */
7
- ECaller$1["web"] = "web";
7
+ ECaller["web"] = "web";
8
8
  /** 宿主 */
9
- ECaller$1["host"] = "host";
10
- return ECaller$1;
9
+ ECaller["host"] = "host";
10
+ return ECaller;
11
11
  }({});
12
-
13
12
  //#endregion
14
- export { ECaller };
13
+ export { ECaller };
@@ -1,27 +1,26 @@
1
1
  //#region src/enums/sub/enjoy/index.ts
2
2
  /** 场馆类型 */
3
- let EVenueTypes = /* @__PURE__ */ function(EVenueTypes$1) {
3
+ let EVenueTypes = /* @__PURE__ */ function(EVenueTypes) {
4
4
  /** 博物馆 */
5
- EVenueTypes$1["Museums"] = "01";
5
+ EVenueTypes["Museums"] = "01";
6
6
  /** 展览馆 */
7
- EVenueTypes$1["Exhibitions"] = "02";
7
+ EVenueTypes["Exhibitions"] = "02";
8
8
  /** 演艺活动 */
9
- EVenueTypes$1["Activity"] = "03";
9
+ EVenueTypes["Activity"] = "03";
10
10
  /** 电影 */
11
- EVenueTypes$1["Movie"] = "04";
12
- return EVenueTypes$1;
11
+ EVenueTypes["Movie"] = "04";
12
+ return EVenueTypes;
13
13
  }({});
14
- let EVenueSimpleTypes = /* @__PURE__ */ function(EVenueSimpleTypes$1) {
14
+ let EVenueSimpleTypes = /* @__PURE__ */ function(EVenueSimpleTypes) {
15
15
  /** 博物馆 */
16
- EVenueSimpleTypes$1["Museums"] = "1";
16
+ EVenueSimpleTypes["Museums"] = "1";
17
17
  /** 展览馆 */
18
- EVenueSimpleTypes$1["Exhibitions"] = "2";
18
+ EVenueSimpleTypes["Exhibitions"] = "2";
19
19
  /** 演艺活动 */
20
- EVenueSimpleTypes$1["Activity"] = "3";
20
+ EVenueSimpleTypes["Activity"] = "3";
21
21
  /** 电影 */
22
- EVenueSimpleTypes$1["Movie"] = "4";
23
- return EVenueSimpleTypes$1;
22
+ EVenueSimpleTypes["Movie"] = "4";
23
+ return EVenueSimpleTypes;
24
24
  }({});
25
-
26
25
  //#endregion
27
- export { EVenueSimpleTypes, EVenueTypes };
26
+ export { EVenueSimpleTypes, EVenueTypes };