@haluo/util 2.0.33 → 2.0.34

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 (38) hide show
  1. package/dist/index.d.ts +3 -0
  2. package/dist/index.js +23 -19
  3. package/dist/modules/app-call/configs.d.ts +9 -0
  4. package/dist/modules/app-call/configs.js +44 -0
  5. package/dist/modules/app-call/core.d.ts +53 -0
  6. package/dist/modules/app-call/core.js +175 -0
  7. package/dist/modules/app-call/extensions.d.ts +187 -0
  8. package/dist/modules/app-call/extensions.js +1297 -0
  9. package/dist/modules/app-call/index.d.ts +16 -0
  10. package/dist/modules/app-call/index.js +84 -0
  11. package/dist/modules/app-call/offline.d.ts +12 -0
  12. package/dist/modules/app-call/offline.js +191 -0
  13. package/dist/modules/app-call/types.d.ts +67 -0
  14. package/dist/modules/app-call/types.js +4 -0
  15. package/dist/modules/cookie/index.js +22 -17
  16. package/dist/modules/date/index.js +54 -48
  17. package/dist/modules/dom/index.js +21 -15
  18. package/dist/modules/filter/index.js +14 -8
  19. package/dist/modules/format/index.js +9 -5
  20. package/dist/modules/match/index.js +8 -5
  21. package/dist/modules/monitor/lib/jsError.js +27 -38
  22. package/dist/modules/monitor/lib/timing.js +15 -17
  23. package/dist/modules/monitor/lib/xhr.js +26 -25
  24. package/dist/modules/monitor/utils/tracker.js +22 -10
  25. package/dist/modules/number/index.js +33 -30
  26. package/dist/modules/open-app/index.d.ts +3 -7
  27. package/dist/modules/open-app/index.js +52 -62
  28. package/dist/modules/sentry/index.js +16 -12
  29. package/dist/modules/tools/index.js +164 -154
  30. package/dist/modules/track/index.d.ts +122 -0
  31. package/dist/modules/track/index.js +421 -0
  32. package/dist/modules/track/types.d.ts +108 -0
  33. package/dist/modules/track/types.js +4 -0
  34. package/dist/modules/upload/aliOss.d.ts +52 -5
  35. package/dist/modules/upload/aliOss.js +589 -378
  36. package/dist/modules/upload/index.js +32 -29
  37. package/dist/tsconfig.tsbuildinfo +1 -1
  38. package/package.json +27 -2
package/dist/index.d.ts CHANGED
@@ -10,6 +10,8 @@ import tools from './modules/tools';
10
10
  import upload from './modules/upload';
11
11
  import monitor from './modules/monitor';
12
12
  export * from './modules/monitor';
13
+ export * from './modules/app-call';
14
+ export * from './modules/track';
13
15
  interface Modules {
14
16
  cookie: typeof cookie;
15
17
  date: typeof date;
@@ -37,3 +39,4 @@ interface Utils extends Modules {
37
39
  declare const _default: Utils;
38
40
  export default _default;
39
41
  export { cookie, date, dom, filter, format, match, number, openApp, tools, upload, monitor };
42
+ export * from './modules/app-call';
package/dist/index.js CHANGED
@@ -10,21 +10,23 @@ import tools from './modules/tools';
10
10
  import upload from './modules/upload';
11
11
  import monitor from './modules/monitor';
12
12
  export * from './modules/monitor';
13
- const modules = {
14
- cookie,
15
- date,
16
- dom,
17
- filter,
18
- format,
19
- match,
20
- number,
21
- openApp,
22
- tools,
23
- upload,
24
- monitor
13
+ export * from './modules/app-call';
14
+ export * from './modules/track';
15
+ var modules = {
16
+ cookie: cookie,
17
+ date: date,
18
+ dom: dom,
19
+ filter: filter,
20
+ format: format,
21
+ match: match,
22
+ number: number,
23
+ openApp: openApp,
24
+ tools: tools,
25
+ upload: upload,
26
+ monitor: monitor
25
27
  };
26
- class Utils {
27
- constructor() {
28
+ var Utils = /** @class */ (function () {
29
+ function Utils() {
28
30
  Object.assign(this, modules);
29
31
  }
30
32
  /**
@@ -32,12 +34,14 @@ class Utils {
32
34
  * 示例:this.$cookie、this.$date、this.$match、this.$number、this.$tools
33
35
  * @param {Object} Vue 需要挂载的目标对象
34
36
  */
35
- install(app) {
36
- Object.keys(modules).forEach((key) => {
37
- const globalProperties = app.config.globalProperties;
37
+ Utils.prototype.install = function (app) {
38
+ Object.keys(modules).forEach(function (key) {
39
+ var globalProperties = app.config.globalProperties;
38
40
  globalProperties['$' + key] = modules[key];
39
41
  });
40
- }
41
- }
42
+ };
43
+ return Utils;
44
+ }());
42
45
  export default new Utils();
43
46
  export { cookie, date, dom, filter, format, match, number, openApp, tools, upload, monitor };
47
+ export * from './modules/app-call';
@@ -0,0 +1,9 @@
1
+ /**
2
+ * 各项目的默认配置
3
+ */
4
+ import type { AppCallConfig } from './types';
5
+ export declare const projectConfigs: Record<string, Partial<AppCallConfig>>;
6
+ /**
7
+ * 创建项目配置
8
+ */
9
+ export declare function createProjectConfig(projectType: keyof typeof projectConfigs, overrides?: Partial<AppCallConfig>): AppCallConfig;
@@ -0,0 +1,44 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ export var projectConfigs = {
13
+ motorfans: {
14
+ projectName: '摩托范',
15
+ domain: '58moto.com',
16
+ defaultImage: 'https://wap.58moto.com/static/img/common/motuofan_small.png',
17
+ defaultDesc: '摩托范,摩托发烧友的交流的平台,摩托维修、保养、配件等知识与经验分享社区。',
18
+ },
19
+ emotofine: {
20
+ projectName: '电摩范',
21
+ domain: 'emotofine.com',
22
+ defaultImage: 'https://wap.emotofine.com/static/img/common/motuofan_small.png',
23
+ defaultDesc: '电摩范,摩托发烧友的交流的平台,摩托维修、保养、配件等知识与经验分享社区。',
24
+ },
25
+ iwc: {
26
+ projectName: '手表范',
27
+ domain: 'biaofine.com',
28
+ defaultImage: 'https://wap.biaofine.com/static/img/common/motuofan_small.png',
29
+ defaultDesc: '手表范,表友发烧友的交流的平台,手表维修、保养等知识与经验分享社区。'
30
+ },
31
+ dronefine: {
32
+ projectName: '无人机之家',
33
+ domain: 'dronefine.com',
34
+ defaultImage: 'https://wap.dronefine.com/static/img/common/motuofan_small.png',
35
+ defaultDesc: '无人机之家,无人机发烧友的交流的平台,无人机维修、保养、配件等知识与经验分享社区。',
36
+ }
37
+ };
38
+ /**
39
+ * 创建项目配置
40
+ */
41
+ export function createProjectConfig(projectType, overrides) {
42
+ var baseConfig = projectConfigs[projectType] || projectConfigs.motorfans;
43
+ return __assign(__assign({}, baseConfig), overrides);
44
+ }
@@ -0,0 +1,53 @@
1
+ /**
2
+ * AppCall 核心实现
3
+ */
4
+ import type { AppCallConfig, AppCallCore, AppCallInstance } from './types';
5
+ declare global {
6
+ interface Window {
7
+ NativeCall?: any;
8
+ WebViewJavascriptBridge?: any;
9
+ setupWebViewJavascriptBridge?: (callback: (bridge: any) => void) => void;
10
+ WVJBCallbacks?: Array<(bridge: any) => void>;
11
+ bridge?: any;
12
+ Toast?: (options: {
13
+ position?: string;
14
+ message: string;
15
+ duration?: number;
16
+ }) => void;
17
+ isClient?: boolean;
18
+ isIOS?: boolean;
19
+ isAndroid?: boolean;
20
+ isHarmonyos?: boolean;
21
+ isWX?: boolean;
22
+ isQQ?: boolean;
23
+ isShare?: boolean;
24
+ isMiniprogram?: boolean;
25
+ isFile?: boolean;
26
+ isEmotofine?: boolean;
27
+ isBiaofine?: boolean;
28
+ isdronefine?: boolean;
29
+ AppCall?: AppCallInstance;
30
+ __wxjs_environment?: string;
31
+ }
32
+ }
33
+ export declare class AppCallCoreClass implements AppCallCore {
34
+ private config;
35
+ private iOSInterface;
36
+ private ua;
37
+ private isIOS;
38
+ private isAndroid;
39
+ private isHarmonyos;
40
+ private isClient;
41
+ private showTip;
42
+ constructor(config: AppCallConfig);
43
+ private initGlobalVars;
44
+ call(): any;
45
+ has(name: string): boolean;
46
+ extend(obj: Record<string, any>): AppCallCore;
47
+ callIOSHandler(name: string, params: any[], callback1?: Function): boolean;
48
+ allParamsToString(params: Record<string, any>): Record<string, string>;
49
+ setIOSInterface(interfaces: string): void;
50
+ getIOSInterface(): string;
51
+ getConfig(): AppCallConfig;
52
+ getIsClient(): boolean;
53
+ }
@@ -0,0 +1,175 @@
1
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
2
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
3
+ if (ar || !(i in from)) {
4
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
5
+ ar[i] = from[i];
6
+ }
7
+ }
8
+ return to.concat(ar || Array.prototype.slice.call(from));
9
+ };
10
+ var AppCallCoreClass = /** @class */ (function () {
11
+ function AppCallCoreClass(config) {
12
+ this.iOSInterface = '';
13
+ this.config = config;
14
+ this.ua = navigator.userAgent.toLowerCase();
15
+ this.isIOS = this.ua.indexOf('mac') > -1;
16
+ this.isAndroid = this.ua.indexOf('android') > -1;
17
+ this.isHarmonyos = this.ua.indexOf('harmonyos') > -1;
18
+ this.isClient =
19
+ this.ua.indexOf('motor/ios') > -1 ||
20
+ this.ua.indexOf('motor/android') > -1 ||
21
+ (this.isHarmonyos && this.ua.indexOf('motor/harmonyos') > -1) ||
22
+ location.href.includes('isClient=true');
23
+ this.showTip = config.showTip || false;
24
+ // 设置 system 属性(实例属性,在构造函数中初始化)
25
+ if (this.isIOS) {
26
+ ;
27
+ this.system = this.ua.indexOf('iphone') > -1 ? 'iPhone' : 'iOS';
28
+ }
29
+ else if (this.isAndroid || this.isHarmonyos) {
30
+ ;
31
+ this.system = 'Android';
32
+ }
33
+ this.initGlobalVars();
34
+ }
35
+ AppCallCoreClass.prototype.initGlobalVars = function () {
36
+ window.isEmotofine = location.host.includes('emotofine');
37
+ window.bridge = window.bridge || {};
38
+ window.Toast = window.Toast || (function () { });
39
+ window.isClient = location.href.includes('isClient=false') ? false : this.isClient;
40
+ window.isFile = location.href.includes('file://');
41
+ window.isIOS = this.isIOS;
42
+ window.isAndroid = this.isAndroid;
43
+ window.isHarmonyos = this.isHarmonyos;
44
+ window.isWX = this.ua.indexOf('micromessenger') > -1;
45
+ window.isQQ =
46
+ !window.isWX &&
47
+ this.ua.indexOf('micromessenger') === -1 &&
48
+ (this.ua.indexOf('qbwebviewtype') > -1 || this.ua.indexOf('qq') > -1);
49
+ window.isShare = window.location.href.indexOf('share=true') > -1;
50
+ window.isMiniprogram = this.ua.indexOf('miniprogram') > -1;
51
+ [100, 200, 500].forEach(function (delay) {
52
+ setTimeout(function () {
53
+ window.isMiniprogram = window.__wxjs_environment === 'miniprogram';
54
+ }, delay);
55
+ });
56
+ };
57
+ AppCallCoreClass.prototype.call = function () {
58
+ var _a, _b;
59
+ var arr = __spreadArray([], arguments, true);
60
+ var name = arr.shift();
61
+ var callback;
62
+ var data;
63
+ if (!this.isClient) {
64
+ return;
65
+ }
66
+ // 提取回调函数
67
+ if (arr.length > 0 && typeof arr[arr.length - 1] === 'function') {
68
+ callback = arr.pop();
69
+ }
70
+ else {
71
+ callback = function () { };
72
+ }
73
+ if (this.showTip && window.Toast) {
74
+ window.Toast({
75
+ position: 'top',
76
+ message: "\u8BF7\u6C42\u65B9\u6CD5\u540D\uFF1A".concat(name, "\uFF1A").concat(JSON.stringify(arr))
77
+ });
78
+ }
79
+ try {
80
+ console.log('this.isAndroid', this.isAndroid);
81
+ if (this.isAndroid || this.isHarmonyos) {
82
+ if (this.has(name)) {
83
+ console.log('has', name);
84
+ data = ((_b = (_a = window.NativeCall) === null || _a === void 0 ? void 0 : _a[name]) === null || _b === void 0 ? void 0 : _b.apply(window.NativeCall, arr)) || null;
85
+ if (this.showTip && window.Toast) {
86
+ window.Toast({
87
+ position: 'middle',
88
+ message: '方法已回调:' + (data || '安卓无返回信息'),
89
+ duration: 5000
90
+ });
91
+ }
92
+ if (data && typeof callback === 'function') {
93
+ callback(data);
94
+ }
95
+ return data;
96
+ }
97
+ }
98
+ else if (this.isIOS) {
99
+ if (this.has(name)) {
100
+ return this.callIOSHandler(name, arr, callback);
101
+ }
102
+ }
103
+ }
104
+ catch (error) {
105
+ console.log('error', error);
106
+ if (this.showTip && window.Toast) {
107
+ window.Toast({
108
+ position: 'middle',
109
+ message: error + '',
110
+ duration: 5000
111
+ });
112
+ }
113
+ }
114
+ return false;
115
+ };
116
+ AppCallCoreClass.prototype.has = function (name) {
117
+ if (this.isAndroid || this.isHarmonyos) {
118
+ return !!(window.NativeCall && window.NativeCall[name]);
119
+ }
120
+ else if (this.isIOS && this.iOSInterface && this.iOSInterface.indexOf(name) > -1) {
121
+ return true;
122
+ }
123
+ return false;
124
+ };
125
+ AppCallCoreClass.prototype.extend = function (obj) {
126
+ for (var key in obj) {
127
+ ;
128
+ this[key] = obj[key];
129
+ }
130
+ return this;
131
+ };
132
+ AppCallCoreClass.prototype.callIOSHandler = function (name, params, callback1) {
133
+ var obj = {};
134
+ for (var i = 0; i < params.length; i++) {
135
+ obj['arg' + (i + 1)] = params[i];
136
+ }
137
+ if (this.showTip && window.Toast) {
138
+ setTimeout(function () {
139
+ var _a;
140
+ (_a = window.Toast) === null || _a === void 0 ? void 0 : _a.call(window, {
141
+ position: 'top',
142
+ message: "\u8BF7\u6C42\u65B9\u6CD5\u540D\u53CA\u53C2\u6570\uFF1A".concat(name, "\uFF1A").concat(JSON.stringify(obj))
143
+ });
144
+ }, 50);
145
+ }
146
+ if (this.isIOS && window.setupWebViewJavascriptBridge) {
147
+ window.setupWebViewJavascriptBridge(function (bridge) {
148
+ bridge.callHandler(name, obj, callback1);
149
+ });
150
+ return true;
151
+ }
152
+ return false;
153
+ };
154
+ AppCallCoreClass.prototype.allParamsToString = function (params) {
155
+ var keys = Object.keys(params);
156
+ keys.forEach(function (key) {
157
+ params[key] = params[key] + '';
158
+ });
159
+ return params;
160
+ };
161
+ AppCallCoreClass.prototype.setIOSInterface = function (interfaces) {
162
+ this.iOSInterface = interfaces;
163
+ };
164
+ AppCallCoreClass.prototype.getIOSInterface = function () {
165
+ return this.iOSInterface;
166
+ };
167
+ AppCallCoreClass.prototype.getConfig = function () {
168
+ return this.config;
169
+ };
170
+ AppCallCoreClass.prototype.getIsClient = function () {
171
+ return this.isClient;
172
+ };
173
+ return AppCallCoreClass;
174
+ }());
175
+ export { AppCallCoreClass };
@@ -0,0 +1,187 @@
1
+ /**
2
+ * AppCall 所有扩展方法
3
+ * 整合了所有项目的扩展方法,供所有项目共享使用
4
+ */
5
+ import type { AppCallCore, AppCallConfig } from './types';
6
+ /**
7
+ * 创建所有扩展方法
8
+ */
9
+ export declare function createAllExtensions<T extends AppCallCore>(appCall: T, config: AppCallConfig): {
10
+ selectDeliveryAddress(data: any): any;
11
+ paySuccess(on: boolean): any;
12
+ pay(params?: any): any;
13
+ payNew(params?: any): any;
14
+ alert(text: any): any;
15
+ hideTitle(on: boolean): any;
16
+ setHeadState(type: any): any;
17
+ open(url: string, title?: string): any;
18
+ close(): any;
19
+ back(step?: number): any;
20
+ openAppStoreUrl(params: any): any;
21
+ openOtherAppUrlRouter(params: {
22
+ appScheme?: string;
23
+ appStoreUrl?: string;
24
+ appUrlRouter: string;
25
+ appBundleId?: string;
26
+ }): any;
27
+ openPageInBrowser(url: string): any;
28
+ setTitle(title?: string): void;
29
+ haloService(params?: any): any;
30
+ qiyuService(params?: any): any;
31
+ voteSuccess(params?: any): any;
32
+ openMotorStylePhotosPage(carData: any): any;
33
+ seeImageViewer(imageData: any): any;
34
+ saveImg(imgUrl: string): any;
35
+ saveImgData(imgUrl: string, callback?: ((res: any) => void) | undefined): any;
36
+ modifyShare(data: any, callback?: ((res: any) => void) | undefined): any;
37
+ carDetail(detail: any): void;
38
+ newCircle(obj: any): void;
39
+ publishWatchExperience(obj: any): any;
40
+ navigate(action?: any): any;
41
+ navigateByEnergy(action: any): any;
42
+ messageInteraction(action?: any): any;
43
+ getReservePrice(action?: any): any;
44
+ decryptAgencyPhone(action?: any): any;
45
+ bookTestDrive(action?: any): any;
46
+ getYZAccessToken(): any;
47
+ openShareLayer(type?: string): any;
48
+ openNewShareLayer(type: string): any;
49
+ openCarScore(params: any): any;
50
+ share(params?: any): void;
51
+ goShare(params: any): any;
52
+ goShareImageData(params: any): any;
53
+ shareText(params: any): any;
54
+ shareActivity(id: number | string): void;
55
+ report(params: any): any;
56
+ vehicleCertification(params?: any): any;
57
+ /**
58
+ * ios 打开上传图片,解决ios黑版本的选择图片问题,现已没有此问题,暂时不用
59
+ * type = all img\all 弹出上传图片或预览, img直接上传
60
+ * num = 1个数 ,限制 1
61
+ */
62
+ iosOpenInput(params?: any): any;
63
+ getOSPhotosWithCount(params: any): any;
64
+ setOSPhotosSelectType(params: any): any;
65
+ goToComment(params: any): any;
66
+ informationData(detail: any): void;
67
+ setEncryption(params: any): Promise<unknown>;
68
+ mapNavigation(params: any): any;
69
+ showMapNavigation(params: any): any;
70
+ navigationRightArea(params: any): any;
71
+ uploadVideo(params: any): any;
72
+ getProvinces(params: any): any;
73
+ setLocationPermission(): any;
74
+ postDurationTack(params: any): void;
75
+ goPersonalLetter(params: any): any;
76
+ notificationMessage(params: any): any;
77
+ setSafetyStatus(): any;
78
+ setRefreshShopOrder(): any;
79
+ requestAdvideo(action?: any): any;
80
+ openMall(action?: any): any;
81
+ priceCustomerService(params?: any): any;
82
+ shopWechat(params?: any): any;
83
+ getQueryInfo(callback?: ((data: any) => void) | undefined): any;
84
+ saveQueryInfo(params: any): any;
85
+ jumpToReleaseStory(params?: any): any;
86
+ jumpToReleaseStoryUgc(params?: any): any;
87
+ jumpToReleaseVideo(params?: any): any;
88
+ /**
89
+ * 改变电池栏颜色
90
+ * type(1、黑色;2、白色)
91
+ */
92
+ changeStatusBarColor(params?: any): any;
93
+ navigationGrowOfficer(): any;
94
+ navigationMall(): any;
95
+ navigationEnergyMall(): any;
96
+ navigationCoupon(params?: any): any;
97
+ navigationSelectAddress(callback?: ((data: any) => void) | undefined): any;
98
+ liveSignResultCall(params?: any): any;
99
+ navigationDelivery(params?: any): any;
100
+ articleHtmlAction(action?: any, callback?: ((res: any) => void) | undefined): any;
101
+ getOfflinePackageVersion(action?: any, callback?: ((res: any) => void) | undefined): any;
102
+ getDroneEmList(parmas: any, callback?: ((res: any) => void) | undefined): any;
103
+ toRefitWebView(params: any): any;
104
+ navigateRealPersonCertification(action?: any): any;
105
+ secondHandReporterComplete(): any;
106
+ viewHistoryCount(day: number): any;
107
+ searchHistoryCount(): any;
108
+ mnPositionNavigation(params?: any): any;
109
+ mnSiteSelection(params?: any): any;
110
+ jumpApplet(url?: string): any;
111
+ mnPositionSelection(params?: any): any;
112
+ commentOfficerTab(params?: any): any;
113
+ jumpCyclingRoute(params?: any): any;
114
+ jumpPunchPoint(params?: any): any;
115
+ interactivePopEnable(params?: number): any;
116
+ interactiveSideslip(params?: number): any;
117
+ getStoreKey(params: any, callback?: ((res: any) => void) | undefined): void;
118
+ setStoreKeyValue(params: any, callback?: ((res: any) => void) | undefined): void;
119
+ selectImageToUpload(callback?: ((res: any) => void) | undefined): void;
120
+ uploadImageFinish(params: any): void;
121
+ request(params: {
122
+ method?: string | undefined;
123
+ url: string;
124
+ hash?: number | undefined;
125
+ params?: any;
126
+ callback?: ((res: any) => void) | undefined;
127
+ }): any;
128
+ replaceJsonValue(str: string): string;
129
+ getUserData(callback?: ((data: any) => void) | undefined): any;
130
+ getUserDataDriving(callback?: ((data: any) => void) | undefined): any;
131
+ getDeviceData(callback?: ((data: any) => void) | undefined): any;
132
+ getLocation(params?: {
133
+ needPermission?: number;
134
+ }): void;
135
+ getAppPlatform(): any;
136
+ getAppPackage(): any;
137
+ getAppVersion(): any;
138
+ isAppVersionGreatThan(version: string): boolean;
139
+ setStatusBarColor(color: string): any;
140
+ haloMallCustomer(): any;
141
+ launchEmallMiniProgramWithUrl(data: any): any;
142
+ launchEmallMiniProgram(): any;
143
+ changeOrientation(params: any): any;
144
+ watchInOut(type: number): any;
145
+ hasNetwork(): Promise<number>;
146
+ sendEventMsg({ eId, eventContent }: {
147
+ eId: string;
148
+ eventContent: any;
149
+ }): Promise<any>;
150
+ hasNewQuestions(callback: (res: any) => void): any;
151
+ updateQuestions(params: any, callback?: ((res: any) => void) | undefined): any;
152
+ goPersonPage(params: any): any;
153
+ goCommentDetail(params: any): any;
154
+ reportComment(params: any): any;
155
+ getDrivingTestImage(params?: {
156
+ item: {
157
+ _id: string;
158
+ pic?: string;
159
+ };
160
+ }, callback?: ((base64Img: string) => void) | undefined): any;
161
+ drivetestFeedbackAction(params: any): any;
162
+ drivetestContactService(params: any): any;
163
+ drivetestDealerCredentials(params: any): any;
164
+ drivetestWechatAndCall(params: any): any;
165
+ boolIsLogin(callback: (res: any) => void): any;
166
+ loginSucessGoon(callback: (res: any) => void): any;
167
+ drivetestGetQueryInfo(callback: (res: any) => void): any;
168
+ drivertestOneKeyBlindMobile(callback: (res: any) => void): any;
169
+ priceProtocolDefault(callback: (res: any) => void): any;
170
+ getGarageLocation(callback: (res: any) => void): any;
171
+ drivetestGetAdAndBuinessData(params: any, callback: (res: any) => void): any;
172
+ checkLocationEnable(callback: (res: any) => void): any;
173
+ checkLocationPermission(callback: (res: any) => void): any;
174
+ jumpToLocationSetting(callback: (res: any) => void): any;
175
+ drivetestGetAdBanner(params: any, callback: (res: any) => void): any;
176
+ getDayNightStyle(callback: (res: any) => void): any;
177
+ onBackAction(callback: (res: any) => void): any;
178
+ getStatusBarHeight(params: any, callback: (res: any) => void): any;
179
+ loadLocalWeb(params?: any): any;
180
+ getExamVipQuestions(params: any): any;
181
+ saveEmCoupon(params?: any): any;
182
+ getEmCoupon(params: any, callback?: ((res: any) => void) | undefined): any;
183
+ getUserWinInfo(params: any): any;
184
+ login(params?: Record<string, any>): any;
185
+ register(callback?: ((data: any) => void) | undefined): any;
186
+ closeAccount(): any;
187
+ };