@jctrans-materials/shared 1.0.40-beta.1 → 1.0.40-beta.11

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/dist/index.d.ts CHANGED
@@ -3,7 +3,7 @@ import { Emitter } from 'mitt';
3
3
 
4
4
  declare type ActionKeys = (typeof MODAL_ACTION)[keyof typeof MODAL_ACTION];
5
5
 
6
- declare interface ApiResponse<T = any> {
6
+ export declare interface ApiResponse<T = any> {
7
7
  code: number;
8
8
  msg: string;
9
9
  data: T;
@@ -16,10 +16,6 @@ export declare interface AppointSearch {
16
16
 
17
17
  export declare type AppointSearchName = "continentId" | "countryId" | "cityId" | "provinceId" | "seaportId" | "airportId" | "allCityByCountryId";
18
18
 
19
- /**
20
- * 1-1-2.TGC自动登录
21
- * @returns
22
- */
23
19
  export declare function autoLoginByTGC(data: {
24
20
  toSys: string;
25
21
  path: string;
@@ -41,18 +37,8 @@ export declare interface BaseResponse<T = any> {
41
37
  */
42
38
  export declare type BeforeSendCallback = (event: GioEvent) => GioEvent;
43
39
 
44
- /**
45
- * 验证验证码绑定第三方应用
46
- * @param data
47
- * @returns
48
- */
49
40
  export declare function bindThirdPartyByCodeApi(data: any): Promise<any>;
50
41
 
51
- /**
52
- * 验证密码绑定第三方应用
53
- * @param data
54
- * @returns
55
- */
56
42
  export declare function bindThirdPartyByPwdApi(data: any): Promise<any>;
57
43
 
58
44
  declare interface CarrierRequestPayload {
@@ -64,29 +50,14 @@ declare interface CarrierRequestPayload {
64
50
  [key: string]: any;
65
51
  }
66
52
 
67
- /**
68
- * 检查账号是否存在(忘记密码专用)
69
- * @param data
70
- * @returns
71
- */
72
53
  export declare function checkAccountExistsFPApi(data: any): Promise<any>;
73
54
 
74
- /**
75
- * 验证邮件验证码
76
- * @param data
77
- * @returns
78
- */
79
55
  export declare function checkEmailCodeApi(data: {
80
56
  uuid: string;
81
57
  code: string;
82
58
  target: string;
83
59
  }): Promise<any>;
84
60
 
85
- /**
86
- * 验证手机验证码
87
- * @param data
88
- * @returns
89
- */
90
61
  export declare function checkMobileCodeApi(data: {
91
62
  code: string;
92
63
  uuid: string;
@@ -107,6 +78,22 @@ export declare interface ClientIdPluginOptions {
107
78
  headerName?: string;
108
79
  }
109
80
 
81
+ /**
82
+ * 2. 可配置的常量定义
83
+ */
84
+ export declare interface CommonKeysConfig {
85
+ TokenKey: string;
86
+ HasLoginKey: string;
87
+ PrjId: string;
88
+ ExpiresInKey: string;
89
+ ExpiresInTimeKey: string;
90
+ RefreshTokenKey: string;
91
+ RefreshExpiresInKey: string;
92
+ RefreshExpiresInTimeKey: string;
93
+ RememberMeAccountKey: string;
94
+ RememberMePasswordKey: string;
95
+ }
96
+
110
97
  export declare interface CommonParams {
111
98
  current?: number;
112
99
  size?: number;
@@ -124,18 +111,8 @@ export declare interface CompanyOption {
124
111
  compName: string;
125
112
  }
126
113
 
127
- /**
128
- * 完善公司信息跳转
129
- * @param {*} data
130
- * @returns
131
- */
132
114
  export declare function completeCompRedirectApi(data: any): Promise<any>;
133
115
 
134
- /**
135
- * 完善信息加入公司
136
- * @param data
137
- * @returns
138
- */
139
116
  export declare function completeJoinCompanyRedirectApi(data: any): Promise<any>;
140
117
 
141
118
  /**
@@ -169,6 +146,7 @@ export declare const currentConfig: {
169
146
  readonly allLinePath: string;
170
147
  readonly oldBasePath: string;
171
148
  readonly prefixPath: string;
149
+ readonly appId: string | undefined;
172
150
  };
173
151
 
174
152
  /**
@@ -183,7 +161,7 @@ export declare function Decrypt(word: string): string;
183
161
  */
184
162
  export declare type DeviceIdCallback = (deviceId: string) => void;
185
163
 
186
- export declare type DisplayInfo = "Continent" | "Country" | "Province" | "City" | "Seaport" | "Airport";
164
+ export declare type DisplayInfo = "Continent" | "Country" | "Region" | "Province" | "City" | "Seaport" | "Airport";
187
165
 
188
166
  export declare const emitter: Emitter<ModalEvents>;
189
167
 
@@ -194,9 +172,9 @@ export declare const emitter: Emitter<ModalEvents>;
194
172
  */
195
173
  export declare function Encrypt(word: string): string;
196
174
 
197
- export declare const ExpiresInKey = "JC-Expires-In";
175
+ export declare const ExpiresInKey: string;
198
176
 
199
- export declare const ExpiresInTimeKey = "JC-Expires-Time-In";
177
+ export declare const ExpiresInTimeKey: string;
200
178
 
201
179
  /**
202
180
  * Fetch API ClientId 拦截器
@@ -218,15 +196,10 @@ export declare interface FetchClientIdOptions {
218
196
  * @param data
219
197
  * @returns
220
198
  */
221
- export declare function findDictAPi(data?: {
199
+ export declare function findDictApi(data?: {
222
200
  size: number;
223
201
  }): Promise<any>;
224
202
 
225
- /**
226
- * 根据手机邮箱获取重复列表
227
- * @param data
228
- * @returns
229
- */
230
203
  export declare function findListByMobileEmailApi(data: any): Promise<any>;
231
204
 
232
205
  /**
@@ -234,7 +207,7 @@ export declare function findListByMobileEmailApi(data: any): Promise<any>;
234
207
  * @param data
235
208
  * @returns
236
209
  */
237
- export declare function findPAreaCodeAPi(data?: {
210
+ export declare function findPAreaCodeApi(data?: {
238
211
  size: number;
239
212
  }): Promise<any>;
240
213
 
@@ -263,10 +236,6 @@ export declare function getAirport(params?: {
263
236
  */
264
237
  export declare function getAppId(): string;
265
238
 
266
- /**
267
- * 全局获取 session
268
- * @returns
269
- */
270
239
  export declare function getAuthSessionItems(): {
271
240
  activityCode: string | null;
272
241
  referenceUserId: string | null;
@@ -304,6 +273,11 @@ export declare function getCity(params?: {
304
273
  countryId?: number;
305
274
  }): Promise<BaseResponse<UnifiedItem>>;
306
275
 
276
+ /**
277
+ * 获取当前的常量配置
278
+ */
279
+ export declare const getCommonKeys: () => CommonKeysConfig;
280
+
307
281
  export declare const getCompanyOptionApi: (data: CompanyOption) => Promise<any>;
308
282
 
309
283
  /** 保留对外兼容函数:getContinent/getCountry/getCity/getProvince/getSeaport/getAirport */
@@ -333,10 +307,6 @@ export declare function getExpiresTimeIn(): number;
333
307
  */
334
308
  export declare function getFirstDomain(): string | undefined;
335
309
 
336
- /**
337
- * 全局获取 GIO 相关 session
338
- * @returns
339
- */
340
310
  export declare function getGioSessionItems(): {
341
311
  registerEntry: string | null;
342
312
  };
@@ -347,11 +317,6 @@ export declare function getGioSessionItems(): {
347
317
  */
348
318
  export declare const getIsEn: () => boolean;
349
319
 
350
- /**
351
- * 获取用户加入公司信息
352
- * @param data
353
- * @returns
354
- */
355
320
  export declare function getJoinCompanyApi(data: any): Promise<any>;
356
321
 
357
322
  /**
@@ -367,25 +332,10 @@ export declare function getLanguage(): string | undefined;
367
332
  */
368
333
  export declare function getLocalIpDataApi(data: any): Promise<any>;
369
334
 
370
- /**
371
- * 获取登录微信二维码
372
- * @param data
373
- * @returns
374
- */
375
335
  export declare function getLoginQrCode(data?: {}): Promise<any>;
376
336
 
377
- /**
378
- * 忘记密码发送验证码
379
- * @param data
380
- * @returns
381
- */
382
337
  export declare function getMEVCodeApi(data: any): Promise<any>;
383
338
 
384
- /**
385
- * 根据用户 id 获取手机号
386
- * @param data
387
- * @returns
388
- */
389
339
  export declare function getMobileEmailApi(data: {
390
340
  id: string;
391
341
  }): Promise<any>;
@@ -413,12 +363,6 @@ export declare function getProvince(params?: {
413
363
  countryId?: number;
414
364
  }): Promise<BaseResponse<UnifiedItem>>;
415
365
 
416
- /**
417
- * 跳转其他站
418
- * @param appId
419
- * @param path
420
- * @returns
421
- */
422
366
  export declare function getRedirectPathApi(appId: string, path: string): Promise<any>;
423
367
 
424
368
  /**
@@ -454,6 +398,7 @@ export declare const getSharedConfig: () => {
454
398
  readonly allLinePath: string;
455
399
  readonly oldBasePath: string;
456
400
  readonly prefixPath: string;
401
+ readonly appId: string | undefined;
457
402
  };
458
403
 
459
404
  /**
@@ -480,13 +425,10 @@ export declare function getToken(): string | undefined;
480
425
  */
481
426
  export declare function getTracker<T extends GioTracker>(trackerInstance?: T): T | null;
482
427
 
483
- /**
484
- * 获取用户手机号邮箱信息
485
- * @param data
486
- * @returns
487
- */
488
428
  export declare function getUserInfoApi(data: any): Promise<any>;
489
429
 
430
+ export declare const GIO_CLICK_PAGE_REQUIRED_FIELDS: readonly ["companyID_var", "contactPerson_var", "inquiryID_var", "modulePosition_var", "moduleType_var", "pageCode_var", "pageClickName_var", "moduleName_var"];
431
+
490
432
  /**
491
433
  * GIO 属性对象
492
434
  */
@@ -609,6 +551,50 @@ export declare interface GioPageProps {
609
551
  */
610
552
  export declare type GioTimerId = string;
611
553
 
554
+ /**
555
+ * GrowingIO SDK 封装模块
556
+ * 基于 gio-webjs-sdk npm 包
557
+ *
558
+ * @module gio
559
+ *
560
+ * @example
561
+ * ```typescript
562
+ * import { tracker, type GioAttributes, type GioInitOptions } from '@jctrans-materials/shared';
563
+ *
564
+ * // 基础初始化
565
+ * tracker.init('your-account-id', 'your-datasource-id', {
566
+ * debug: true,
567
+ * trackPage: false,
568
+ * });
569
+ *
570
+ * // 微信公众号 H5(需要 appId 和 forceLogin)
571
+ * tracker.init('accountId', 'dataSourceId', 'wx-app-id', {
572
+ * forceLogin: true,
573
+ * debug: true,
574
+ * });
575
+ *
576
+ * // 设置登录用户 ID
577
+ * tracker.setUserId('user-123');
578
+ * tracker.setUserId('user-123', 'user_id', () => {
579
+ * console.log('set user id with userKey done');
580
+ * });
581
+ *
582
+ * // 埋点事件
583
+ * tracker.track('order_submit', {
584
+ * order_type: 'freight',
585
+ * price: 5000,
586
+ * services: ['ocean', 'customs']
587
+ * });
588
+ *
589
+ * // 设置全局属性
590
+ * tracker.setGeneralProps({
591
+ * platform: 'jctrans_web',
592
+ * locale: 'zh-CN'
593
+ * });
594
+ * ```
595
+ */
596
+ export declare type GioTrackAttrs = Record<string, string | number | Array<string | number> | null | undefined>;
597
+
612
598
  declare class GioTracker {
613
599
  private hasInitCalled;
614
600
  private dispatcher;
@@ -822,7 +808,12 @@ export declare interface GioUserAttributes {
822
808
  [key: string]: GioAttributeValue;
823
809
  }
824
810
 
825
- export declare const HasLoginKey = "hasLogin";
811
+ export declare const HasLoginKey: string;
812
+
813
+ /**
814
+ * 全局初始化方法,在项目入口调用
815
+ */
816
+ export declare const initCommonKeys: (newKeys: Partial<CommonKeysConfig>) => void;
826
817
 
827
818
  /**
828
819
  * 全局初始化方法,在项目入口调用
@@ -853,17 +844,19 @@ export declare function installClientIdPlugin(instance: AxiosInstance, options?:
853
844
  */
854
845
  export declare function installFetchClientId(options?: FetchClientIdOptions): void;
855
846
 
856
- /**
857
- * 获取邀请加入公司信息
858
- * @param data
859
- * @returns
860
- */
861
847
  export declare function inviteJoinGetCompApi(data: any): Promise<any>;
862
848
 
863
- declare interface IResponse<T> {
849
+ export declare interface IResponse<T> {
864
850
  data: T;
865
851
  }
866
852
 
853
+ /**
854
+ * 检查值是否为空
855
+ * @param value 要检查的值
856
+ * @returns 是否为空
857
+ */
858
+ export declare function isEmpty(value: any): boolean;
859
+
867
860
  /**
868
861
  * 检查 GIO 是否可用(浏览器环境且已初始化)
869
862
  *
@@ -1116,77 +1109,39 @@ export declare interface LocationUnifiedItem {
1116
1109
  display?: string;
1117
1110
  displayEn?: string;
1118
1111
  displayCn?: string;
1119
- /** * 通用代码字段 (自动取 scacCode 或 carrierCode)
1120
- * 适用于仅展示用途
1121
- */
1122
1112
  code?: string;
1123
- /** * SCAC 代码 (Standard Carrier Alpha Code) - 通常用于船司
1124
- */
1125
1113
  scacCode?: string;
1126
- /** * IATA 代码 - 通常用于航司
1127
- */
1128
1114
  iataCode?: string;
1129
- /** * 承运人通用代码
1130
- */
1131
1115
  carrierCode?: string;
1132
- /** * 承运人类型: 'air' | 'shipping'
1133
- */
1134
1116
  lineType?: string;
1135
1117
  continent?: Record<string, any>;
1136
1118
  country?: Record<string, any>;
1137
1119
  city?: Record<string, any>;
1138
1120
  province?: Record<string, any>;
1139
1121
  raw?: any;
1122
+ [key: string]: unknown;
1140
1123
  }
1141
1124
 
1142
- /**
1143
- * 用户登录
1144
- * @param loginData
1145
- * @returns
1146
- */
1147
1125
  export declare function loginApi(loginData: LoginDataParams): Promise<IResponse<ApiResponse<LoginResponseData>>>;
1148
1126
 
1149
- /**
1150
- * 验证码登录注册
1151
- * @param data
1152
- * @returns
1153
- */
1154
1127
  export declare function loginByEmailOrMobileCodeApi(data: any): Promise<IResponse<ApiResponse<LoginResponseData>>>;
1155
1128
 
1156
- /**
1157
- * Facebook 登录
1158
- * @param data
1159
- * @returns
1160
- */
1161
1129
  export declare function loginByFacebookApi(data: any): Promise<IResponse<ApiResponse<ThirdResponseData>>>;
1162
1130
 
1163
- /**
1164
- * LinkedIn 登录
1165
- * @param data
1166
- * @returns
1167
- */
1168
1131
  export declare function loginByLinkedinApi(data: any): Promise<IResponse<ApiResponse<ThirdResponseData>>>;
1169
1132
 
1170
- /**
1171
- * 微信二维码登录(1s轮询)
1172
- * @param data
1173
- * @returns
1174
- */
1175
1133
  export declare function loginByQrCode(data: {
1176
1134
  uniqueCode: string;
1177
1135
  appId: string;
1178
1136
  redirectPath: string;
1179
1137
  kick: boolean;
1138
+ prjId?: string;
1139
+ formEntry?: string;
1180
1140
  }): Promise<any>;
1181
1141
 
1182
- /**
1183
- * 微信二维码登录绑定用户(验证码)
1184
- * @param data
1185
- * @returns
1186
- */
1187
1142
  export declare function loginCodeBindWechatApi(data: any): Promise<any>;
1188
1143
 
1189
- declare interface LoginDataParams {
1144
+ export declare interface LoginDataParams {
1190
1145
  username: string;
1191
1146
  password: string;
1192
1147
  appId: string;
@@ -1198,14 +1153,9 @@ declare interface LoginDataParams {
1198
1153
  referenceUserId: string;
1199
1154
  }
1200
1155
 
1201
- /**
1202
- * 微信二维码登录绑定用户(账号密码)
1203
- * @param data
1204
- * @returns
1205
- */
1206
1156
  export declare function loginPwdBindWechatApi(data: any): Promise<any>;
1207
1157
 
1208
- declare interface LoginResponseData {
1158
+ export declare interface LoginResponseData {
1209
1159
  redirect: boolean;
1210
1160
  redirectPath?: string;
1211
1161
  tgc?: string;
@@ -1213,7 +1163,7 @@ declare interface LoginResponseData {
1213
1163
  hasLogon?: boolean;
1214
1164
  }
1215
1165
 
1216
- declare interface LoginResult {
1166
+ export declare interface LoginResult {
1217
1167
  accessToken: string;
1218
1168
  expireIn: number;
1219
1169
  refreshToken: string;
@@ -1235,6 +1185,10 @@ export declare type ModalEvents = Record<ActionKeys, any> & {
1235
1185
 
1236
1186
  export declare type ModalOpenCallback = () => void;
1237
1187
 
1188
+ export declare const normalizeAttrs: (attrs?: GioTrackAttrs) => GioTrackAttrs;
1189
+
1190
+ export declare const normalizeClickPageAttrs: (eventName: string, attrs?: GioTrackAttrs) => GioTrackAttrs;
1191
+
1238
1192
  /**
1239
1193
  * 页面变更回调
1240
1194
  */
@@ -1245,59 +1199,29 @@ export declare interface PageParams {
1245
1199
  size?: number;
1246
1200
  }
1247
1201
 
1248
- export declare const PrjId = "prjId";
1202
+ export declare const PrjId: string;
1249
1203
 
1250
- export declare const RefreshExpiresInKey = "JC-Refresh-Expires-In";
1204
+ export declare const RefreshExpiresInKey: string;
1251
1205
 
1252
- export declare const RefreshExpiresInTimeKey = "JC-Refresh-Expires-Time-In";
1206
+ export declare const RefreshExpiresInTimeKey: string;
1253
1207
 
1254
- export declare const RefreshTokenKey = "JC-Refresh-Token";
1208
+ export declare const RefreshTokenKey: string;
1255
1209
 
1256
- /**
1257
- * 国际站峰会注册
1258
- * @param data
1259
- * @returns
1260
- */
1261
1210
  export declare function registerApi(data: any): Promise<any>;
1262
1211
 
1263
- /**
1264
- * 使用第三方应用注册用户公司
1265
- * @param data
1266
- * @returns
1267
- */
1268
1212
  export declare function registerByThirdPartyApi(data: any): Promise<any>;
1269
1213
 
1270
- /**
1271
- * 用户注册加入公司
1272
- * @param data
1273
- * @returns
1274
- */
1275
1214
  export declare function registerJoinCompanyApi(data: any): Promise<any>;
1276
1215
 
1277
- /**
1278
- * 微信二维码登录用户注册加入公司 🍉
1279
- * @param data
1280
- * @returns
1281
- */
1282
1216
  export declare function registerJoinCompanyBindWechatApi(data: any): Promise<any>;
1283
1217
 
1284
- /**
1285
- * 第三方应用注册加入公司
1286
- * @param data
1287
- * @returns
1288
- */
1289
1218
  export declare function registerJoinCompByThirdPartyApi(data: any): Promise<any>;
1290
1219
 
1291
- /**
1292
- * 微信二维码登录注册用户公司
1293
- * @param data
1294
- * @returns
1295
- */
1296
1220
  export declare function registerUserCompBindWechatApi(data: any): Promise<any>;
1297
1221
 
1298
- export declare const RememberMeAccountKey = "JC-Remember-Account";
1222
+ export declare const RememberMeAccountKey: string;
1299
1223
 
1300
- export declare const RememberMePasswordKey = "JC-Remember-Password";
1224
+ export declare const RememberMePasswordKey: string;
1301
1225
 
1302
1226
  export declare interface reportNewTypeData {
1303
1227
  reportData: string;
@@ -1307,7 +1231,7 @@ export declare interface reportNewTypeData {
1307
1231
 
1308
1232
  export declare function reportNewTypeDataApi(payload: reportNewTypeData): Promise<{}>;
1309
1233
 
1310
- export declare type ReportType = "City" | "Seaport" | "Airport" | "Line";
1234
+ export declare type ReportType = "City" | "Seaport" | "Airport" | "Line" | "Carrier" | "shipping_line" | "shipping_carrier" | "air_line" | "air_carrier";
1311
1235
 
1312
1236
  declare interface RequestAdapter {
1313
1237
  get(url: string, config?: RequestConfig): Promise<any>;
@@ -1328,22 +1252,10 @@ declare interface RequestOptions {
1328
1252
  fetch?: typeof fetch;
1329
1253
  }
1330
1254
 
1331
- /**
1332
- * 重置 session
1333
- */
1334
1255
  export declare function resetAuthSessionItems(): void;
1335
1256
 
1336
- /**
1337
- * 重置 GIO 相关 session
1338
- * @returns
1339
- */
1340
1257
  export declare function resetGioSessionItems(): void;
1341
1258
 
1342
- /**
1343
- * 重置密码
1344
- * @param data
1345
- * @returns
1346
- */
1347
1259
  export declare function resetPasswordApi(data: any): Promise<any>;
1348
1260
 
1349
1261
  /**
@@ -1430,11 +1342,6 @@ export declare interface SearchWithScopeParams extends SearchByNameParams {
1430
1342
  provinceId?: number;
1431
1343
  }
1432
1344
 
1433
- /**
1434
- * 发送邮箱验证码
1435
- * @param data
1436
- * @returns
1437
- */
1438
1345
  export declare function sendEmailCodeApi(data: {
1439
1346
  target: string;
1440
1347
  countryId?: number;
@@ -1442,11 +1349,6 @@ export declare function sendEmailCodeApi(data: {
1442
1349
  uuid?: string;
1443
1350
  }): Promise<any>;
1444
1351
 
1445
- /**
1446
- * 发送手机验证码
1447
- * @param data
1448
- * @returns
1449
- */
1450
1352
  export declare function sendMobileCodeApi(data: {
1451
1353
  target: string;
1452
1354
  countryId?: number;
@@ -1454,10 +1356,6 @@ export declare function sendMobileCodeApi(data: {
1454
1356
  uuid?: string;
1455
1357
  }): Promise<any>;
1456
1358
 
1457
- /**
1458
- * 全局设置 session
1459
- * @param data
1460
- */
1461
1359
  export declare function setAuthSessionItems(data: {
1462
1360
  activityCode?: string | null;
1463
1361
  referenceUserId?: string | null;
@@ -1470,10 +1368,6 @@ export declare function setAuthSessionItems(data: {
1470
1368
  compKey?: string | null;
1471
1369
  }): void;
1472
1370
 
1473
- /**
1474
- * 全局设置 GIO 相关 session
1475
- * @param data
1476
- */
1477
1371
  export declare function setGioSessionItems(data: {
1478
1372
  registerEntry?: string | null;
1479
1373
  }): void;
@@ -1496,6 +1390,7 @@ export declare interface SharedConfig {
1496
1390
  linePath: string;
1497
1391
  allLinePath: string;
1498
1392
  appId?: string;
1393
+ commonKeys?: Partial<CommonKeysConfig>;
1499
1394
  }
1500
1395
 
1501
1396
  /**
@@ -1518,7 +1413,7 @@ export declare function slideGetApi(data: {
1518
1413
  ts: number;
1519
1414
  }): Promise<any>;
1520
1415
 
1521
- declare interface ThirdPartyInfo {
1416
+ export declare interface ThirdPartyInfo {
1522
1417
  thirdPartyEmail: string;
1523
1418
  thirdPartyId: string;
1524
1419
  thirdPartyType: string;
@@ -1526,7 +1421,14 @@ declare interface ThirdPartyInfo {
1526
1421
  [property: string]: any;
1527
1422
  }
1528
1423
 
1529
- declare interface ThirdResponseData {
1424
+ export declare interface ThirdResponse {
1425
+ code: number;
1426
+ data: ThirdResponseData;
1427
+ msg: string;
1428
+ [property: string]: any;
1429
+ }
1430
+
1431
+ export declare interface ThirdResponseData {
1530
1432
  /**
1531
1433
  * 手机邮箱匹配列表 (修正为数组)
1532
1434
  */
@@ -1550,7 +1452,7 @@ declare interface ThirdResponseData {
1550
1452
  [property: string]: any;
1551
1453
  }
1552
1454
 
1553
- declare interface ThirdResponseMobileEmailList {
1455
+ export declare interface ThirdResponseMobileEmailList {
1554
1456
  account: string;
1555
1457
  cityId: number;
1556
1458
  cityNameCn: string;
@@ -1580,10 +1482,7 @@ export declare interface TokenData {
1580
1482
  refreshTokenExpireIn?: number;
1581
1483
  }
1582
1484
 
1583
- /**
1584
- * 2. 常量定义 (补全所有业务 Key)
1585
- */
1586
- export declare const TokenKey = "JC-JAVA-Token-Root";
1485
+ export declare const TokenKey: string;
1587
1486
 
1588
1487
  export declare function toSafeHeaderValue(value: string): string;
1589
1488
 
@@ -1603,27 +1502,12 @@ export declare interface UnifiedItem {
1603
1502
  raw?: any;
1604
1503
  }
1605
1504
 
1606
- /**
1607
- * 获取用户信息
1608
- * @param data
1609
- * @returns
1610
- */
1611
1505
  export declare function userCompPermsApi(data: any): Promise<any>;
1612
1506
 
1613
- /**
1614
- * 验证账号是否存在 /auth/validateAccountExist
1615
- * @param data
1616
- * @returns
1617
- */
1618
1507
  export declare function validateAccountExistApi(data: {
1619
1508
  target: string;
1620
1509
  }): Promise<any>;
1621
1510
 
1622
- /**
1623
- * 校验注册公司是否重名
1624
- * @param data
1625
- * @returns
1626
- */
1627
1511
  export declare function validateCompanyApi(data: {
1628
1512
  countryId: number;
1629
1513
  cityId: number;