@jctrans-materials/shared 1.0.41-beta.0 → 1.0.41-beta.1

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
@@ -1,9 +1,14 @@
1
1
  import { AxiosInstance } from 'axios';
2
+ import { BoardQueryResult } from '@jctrans/dw-sdk';
3
+ import { DateType } from '@jctrans/dw-sdk';
2
4
  import { Emitter } from 'mitt';
5
+ import { GraphQLClientError } from '@jctrans/dw-sdk';
6
+ import { OpportunityBoardParams } from '@jctrans/dw-sdk';
3
7
 
4
8
  declare type ActionKeys = (typeof MODAL_ACTION)[keyof typeof MODAL_ACTION];
5
9
 
6
- declare interface ApiResponse<T = any> {
10
+ /** 通用 API 响应结构 (最外层) */
11
+ export declare interface ApiResponse<T = any> {
7
12
  code: number;
8
13
  msg: string;
9
14
  data: T;
@@ -14,12 +19,16 @@ export declare interface AppointSearch {
14
19
  val: string;
15
20
  }
16
21
 
22
+ /** baseSearch 的 appointSearch 条目 */
17
23
  export declare type AppointSearchName = "continentId" | "countryId" | "cityId" | "provinceId" | "seaportId" | "airportId" | "allCityByCountryId";
18
24
 
19
- /**
20
- * 1-1-2.TGC自动登录
21
- * @returns
22
- */
25
+ /** Auth session key 映射表 */
26
+ declare const AUTH_SESSION_KEYS: Record<string, string>;
27
+
28
+ declare type AuthSessionData = {
29
+ [K in keyof typeof AUTH_SESSION_KEYS]?: string | null;
30
+ };
31
+
23
32
  export declare function autoLoginByTGC(data: {
24
33
  toSys: string;
25
34
  path: string;
@@ -27,6 +36,7 @@ export declare function autoLoginByTGC(data: {
27
36
  tokenId?: string;
28
37
  }): Promise<any>;
29
38
 
39
+ /** 分页响应结构 */
30
40
  export declare interface BaseResponse<T = any> {
31
41
  records: T[];
32
42
  total: number;
@@ -41,52 +51,20 @@ export declare interface BaseResponse<T = any> {
41
51
  */
42
52
  export declare type BeforeSendCallback = (event: GioEvent) => GioEvent;
43
53
 
44
- /**
45
- * 验证验证码绑定第三方应用
46
- * @param data
47
- * @returns
48
- */
49
54
  export declare function bindThirdPartyByCodeApi(data: any): Promise<any>;
50
55
 
51
- /**
52
- * 验证密码绑定第三方应用
53
- * @param data
54
- * @returns
55
- */
56
56
  export declare function bindThirdPartyByPwdApi(data: any): Promise<any>;
57
57
 
58
- declare interface CarrierRequestPayload {
59
- current: number;
60
- size: number;
61
- lineType: "air" | "shipping";
62
- searchkey?: string;
63
- ids?: number[];
64
- [key: string]: any;
65
- }
58
+ export { BoardQueryResult }
66
59
 
67
- /**
68
- * 检查账号是否存在(忘记密码专用)
69
- * @param data
70
- * @returns
71
- */
72
- export declare function checkAccountExistsFPApi(data: any): Promise<any>;
60
+ export declare function checkAccountExistsFPApi(data: ForgotPasswordAccountData): Promise<any>;
73
61
 
74
- /**
75
- * 验证邮件验证码
76
- * @param data
77
- * @returns
78
- */
79
62
  export declare function checkEmailCodeApi(data: {
80
63
  uuid: string;
81
64
  code: string;
82
65
  target: string;
83
66
  }): Promise<any>;
84
67
 
85
- /**
86
- * 验证手机验证码
87
- * @param data
88
- * @returns
89
- */
90
68
  export declare function checkMobileCodeApi(data: {
91
69
  code: string;
92
70
  uuid: string;
@@ -107,6 +85,20 @@ export declare interface ClientIdPluginOptions {
107
85
  headerName?: string;
108
86
  }
109
87
 
88
+ export declare interface CommonKeysConfig {
89
+ TokenKey: string;
90
+ HasLoginKey: string;
91
+ PrjId: string;
92
+ ExpiresInKey: string;
93
+ ExpiresInTimeKey: string;
94
+ RefreshTokenKey: string;
95
+ RefreshExpiresInKey: string;
96
+ RefreshExpiresInTimeKey: string;
97
+ RememberMeAccountKey: string;
98
+ RememberMePasswordKey: string;
99
+ }
100
+
101
+ /** baseSearch 的通用请求参数 */
110
102
  export declare interface CommonParams {
111
103
  current?: number;
112
104
  size?: number;
@@ -124,18 +116,8 @@ export declare interface CompanyOption {
124
116
  compName: string;
125
117
  }
126
118
 
127
- /**
128
- * 完善公司信息跳转
129
- * @param {*} data
130
- * @returns
131
- */
132
119
  export declare function completeCompRedirectApi(data: any): Promise<any>;
133
120
 
134
- /**
135
- * 完善信息加入公司
136
- * @param data
137
- * @returns
138
- */
139
121
  export declare function completeJoinCompanyRedirectApi(data: any): Promise<any>;
140
122
 
141
123
  /**
@@ -169,34 +151,40 @@ export declare const currentConfig: {
169
151
  readonly allLinePath: string;
170
152
  readonly oldBasePath: string;
171
153
  readonly prefixPath: string;
154
+ readonly appId: string | undefined;
172
155
  };
173
156
 
157
+ export { DateType }
158
+
159
+ /** 兼容旧名 */
160
+ export declare const Decrypt: typeof decrypt;
161
+
174
162
  /**
175
- * 解密方法
176
- * @param word
177
- * @returns
163
+ * 解密
178
164
  */
179
- export declare function Decrypt(word: string): string;
165
+ export declare function decrypt(word: string): string;
180
166
 
181
167
  /**
182
168
  * 设备 ID 回调
183
169
  */
184
170
  export declare type DeviceIdCallback = (deviceId: string) => void;
185
171
 
186
- export declare type DisplayInfo = "Continent" | "Country" | "Province" | "City" | "Seaport" | "Airport";
172
+ /** 兼容旧名:baseSearch.DisplayInfo */
173
+ export declare type DisplayInfo = LocationType;
187
174
 
188
175
  export declare const emitter: Emitter<ModalEvents>;
189
176
 
177
+ /** 兼容旧名 */
178
+ export declare const Encrypt: typeof encrypt;
179
+
190
180
  /**
191
- * 加密方法
192
- * @param word
193
- * @returns
181
+ * 加密
194
182
  */
195
- export declare function Encrypt(word: string): string;
183
+ export declare function encrypt(word: string): string;
196
184
 
197
- export declare const ExpiresInKey = "JC-Expires-In";
185
+ export declare const ExpiresInKey: string;
198
186
 
199
- export declare const ExpiresInTimeKey = "JC-Expires-Time-In";
187
+ export declare const ExpiresInTimeKey: string;
200
188
 
201
189
  /**
202
190
  * Fetch API ClientId 拦截器
@@ -213,31 +201,30 @@ export declare interface FetchClientIdOptions {
213
201
  injectRequest?: boolean;
214
202
  }
215
203
 
216
- /**
217
- * 获取字典列表
218
- * @param data
219
- * @returns
220
- */
221
- export declare function findDictAPi(data?: {
204
+ export declare function findDictApi(data?: {
222
205
  size: number;
223
206
  }): Promise<any>;
224
207
 
225
- /**
226
- * 根据手机邮箱获取重复列表
227
- * @param data
228
- * @returns
229
- */
230
208
  export declare function findListByMobileEmailApi(data: any): Promise<any>;
231
209
 
232
- /**
233
- * 查询区号列表
234
- * @param data
235
- * @returns
236
- */
237
- export declare function findPAreaCodeAPi(data?: {
210
+ export declare function findPAreaCodeApi(data?: {
238
211
  size: number;
239
212
  }): Promise<any>;
240
213
 
214
+ declare interface ForgotPasswordAccountData {
215
+ account?: string;
216
+ email?: string;
217
+ mobile?: string;
218
+ [key: string]: any;
219
+ }
220
+
221
+ declare interface ForgotPasswordVerifyData {
222
+ account?: string;
223
+ code?: string;
224
+ uuid?: string;
225
+ [key: string]: any;
226
+ }
227
+
241
228
  /**
242
229
  * ClientId 管理工具
243
230
  * 用于生成和管理唯一的客户端标识符
@@ -250,34 +237,19 @@ export declare function findPAreaCodeAPi(data?: {
250
237
  */
251
238
  export declare function generateClientId(): string;
252
239
 
253
- export declare function getAirport(params?: {
240
+ export declare const getAirport: (params?: {
254
241
  page?: number;
255
242
  size?: number;
256
243
  ids?: number[];
257
- cityId?: number;
258
244
  countryId?: number;
259
- }): Promise<BaseResponse<UnifiedItem>>;
245
+ cityId?: number;
246
+ }) => Promise<BaseResponse<UnifiedItem>>;
247
+
248
+ export declare function getAirportByNameEnShow(nameEnShow: string): Promise<any>;
260
249
 
261
- /**
262
- * 跨环境获取 AppId (兼容 Vite, Webpack, Nuxt)
263
- */
264
250
  export declare function getAppId(): string;
265
251
 
266
- /**
267
- * 全局获取 session
268
- * @returns
269
- */
270
- export declare function getAuthSessionItems(): {
271
- activityCode: string | null;
272
- referenceUserId: string | null;
273
- empNo: string | null;
274
- uniqueCode: string | null;
275
- path: string | null;
276
- clickSource: string | null;
277
- registerEvent?: string | null;
278
- registerType?: string | null;
279
- compKey?: string | null;
280
- };
252
+ export declare function getAuthSessionItems(): AuthSessionData;
281
253
 
282
254
  /** 单 id 版本 */
283
255
  export declare function getById(type: DisplayInfo, id: number): Promise<UnifiedItem | null>;
@@ -297,49 +269,48 @@ export declare function getCitiesByCountry(countryId: number, opts?: {
297
269
  size?: number;
298
270
  }): Promise<BaseResponse<UnifiedItem>>;
299
271
 
300
- export declare function getCity(params?: {
272
+ export declare const getCity: (params?: {
301
273
  page?: number;
302
274
  size?: number;
303
275
  ids?: number[];
304
276
  countryId?: number;
305
- }): Promise<BaseResponse<UnifiedItem>>;
277
+ cityId?: number;
278
+ }) => Promise<BaseResponse<UnifiedItem>>;
279
+
280
+ export declare function getCityByNameEnShow(nameEnShow: string): Promise<any>;
281
+
282
+ export declare const getCommonKeys: () => CommonKeysConfig;
306
283
 
307
284
  export declare const getCompanyOptionApi: (data: CompanyOption) => Promise<any>;
308
285
 
309
- /** 保留对外兼容函数:getContinent/getCountry/getCity/getProvince/getSeaport/getAirport */
310
- export declare function getContinent(params?: {
286
+ export declare const getContinent: (params?: {
311
287
  page?: number;
312
288
  size?: number;
313
- }): Promise<BaseResponse<UnifiedItem>>;
289
+ ids?: number[];
290
+ countryId?: number;
291
+ cityId?: number;
292
+ }) => Promise<BaseResponse<UnifiedItem>>;
314
293
 
315
- export declare function getCountry(params?: {
294
+ export declare const getCountry: (params?: {
316
295
  page?: number;
317
296
  size?: number;
318
297
  ids?: number[];
319
- }): Promise<BaseResponse<UnifiedItem>>;
298
+ countryId?: number;
299
+ cityId?: number;
300
+ }) => Promise<BaseResponse<UnifiedItem>>;
301
+
302
+ export declare function getCountryByNameEnShow(nameEnShow: string): Promise<any>;
320
303
 
321
304
  /**
322
305
  * 获取当前的 clientId(不会创建新的)
323
306
  */
324
307
  export declare function getCurrentClientId(): string | null;
325
308
 
326
- /**
327
- * 🚀 补全:获取 Access Token 的过期时间戳 (用于判断是否需要刷新)
328
- */
329
309
  export declare function getExpiresTimeIn(): number;
330
310
 
331
- /**
332
- * 获取一级域名 (用于 Cookie 跨域共享)
333
- */
334
311
  export declare function getFirstDomain(): string | undefined;
335
312
 
336
- /**
337
- * 全局获取 GIO 相关 session
338
- * @returns
339
- */
340
- export declare function getGioSessionItems(): {
341
- registerEntry: string | null;
342
- };
313
+ export declare function getGioSessionItems(): GioSessionData;
343
314
 
344
315
  /**
345
316
  * 兼容全环境的语言判断方法
@@ -347,45 +318,16 @@ export declare function getGioSessionItems(): {
347
318
  */
348
319
  export declare const getIsEn: () => boolean;
349
320
 
350
- /**
351
- * 获取用户加入公司信息
352
- * @param data
353
- * @returns
354
- */
355
321
  export declare function getJoinCompanyApi(data: any): Promise<any>;
356
322
 
357
- /**
358
- * 获取当前语言
359
- * @returns
360
- */
361
323
  export declare function getLanguage(): string | undefined;
362
324
 
363
- /**
364
- * 获取本地 IP 数据
365
- * @param data
366
- * @returns
367
- */
368
- export declare function getLocalIpDataApi(data: any): Promise<any>;
325
+ export declare function getLocalIpDataApi(data: Record<string, any>): Promise<any>;
369
326
 
370
- /**
371
- * 获取登录微信二维码
372
- * @param data
373
- * @returns
374
- */
375
327
  export declare function getLoginQrCode(data?: {}): Promise<any>;
376
328
 
377
- /**
378
- * 忘记密码发送验证码
379
- * @param data
380
- * @returns
381
- */
382
- export declare function getMEVCodeApi(data: any): Promise<any>;
329
+ export declare function getMEVCodeApi(data: ForgotPasswordVerifyData): Promise<any>;
383
330
 
384
- /**
385
- * 根据用户 id 获取手机号
386
- * @param data
387
- * @returns
388
- */
389
331
  export declare function getMobileEmailApi(data: {
390
332
  id: string;
391
333
  }): Promise<any>;
@@ -396,51 +338,36 @@ export declare function getMobileEmailApi(data: {
396
338
  */
397
339
  export declare function getOrCreateClientId(): string;
398
340
 
399
- /**
400
- * 跨环境获取 Path
401
- */
402
341
  export declare function getPathFromConfig(config: any): string;
403
342
 
404
- /**
405
- * 4. 导出操作方法
406
- */
407
343
  export declare function getProjectId(): string | undefined;
408
344
 
409
- export declare function getProvince(params?: {
345
+ export declare const getProvince: (params?: {
410
346
  page?: number;
411
347
  size?: number;
412
348
  ids?: number[];
413
349
  countryId?: number;
414
- }): Promise<BaseResponse<UnifiedItem>>;
350
+ cityId?: number;
351
+ }) => Promise<BaseResponse<UnifiedItem>>;
415
352
 
416
- /**
417
- * 跳转其他站
418
- * @param appId
419
- * @param path
420
- * @returns
421
- */
422
353
  export declare function getRedirectPathApi(appId: string, path: string): Promise<any>;
423
354
 
424
- /**
425
- * 🚀 补全:获取当前的 Refresh Token
426
- */
427
355
  export declare function getRefreshToken(): string | undefined;
428
356
 
429
- /**
430
- * 获取记住的账号
431
- */
432
357
  export declare function getRememberAccount(): {
433
358
  account?: string;
434
359
  password?: string;
435
360
  };
436
361
 
437
- export declare function getSeaport(params?: {
362
+ export declare const getSeaport: (params?: {
438
363
  page?: number;
439
364
  size?: number;
440
365
  ids?: number[];
441
- cityId?: number;
442
366
  countryId?: number;
443
- }): Promise<BaseResponse<UnifiedItem>>;
367
+ cityId?: number;
368
+ }) => Promise<BaseResponse<UnifiedItem>>;
369
+
370
+ export declare function getSeaportByNameEnShow(nameEnShow: string): Promise<any>;
444
371
 
445
372
  export declare function getSessionHeaderValue(key: string): string;
446
373
 
@@ -454,11 +381,9 @@ export declare const getSharedConfig: () => {
454
381
  readonly allLinePath: string;
455
382
  readonly oldBasePath: string;
456
383
  readonly prefixPath: string;
384
+ readonly appId: string | undefined;
457
385
  };
458
386
 
459
- /**
460
- * 获取当前的 Access Token
461
- */
462
387
  export declare function getToken(): string | undefined;
463
388
 
464
389
  /**
@@ -480,12 +405,15 @@ export declare function getToken(): string | undefined;
480
405
  */
481
406
  export declare function getTracker<T extends GioTracker>(trackerInstance?: T): T | null;
482
407
 
483
- /**
484
- * 获取用户手机号邮箱信息
485
- * @param data
486
- * @returns
487
- */
488
- export declare function getUserInfoApi(data: any): Promise<any>;
408
+ export declare function getUserInfoApi(data: Record<string, any>): Promise<any>;
409
+
410
+ 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"];
411
+
412
+ /** clickPage 事件名常量 */
413
+ export declare const GIO_EVENT_CLICK_PAGE = "clickPage";
414
+
415
+ /** GIO session key 映射表 */
416
+ declare const GIO_SESSION_KEYS: Record<string, string>;
489
417
 
490
418
  /**
491
419
  * GIO 属性对象
@@ -586,6 +514,8 @@ export declare interface GioInitOptions {
586
514
  ignoreFields?: string[];
587
515
  /** 曝光比例(0-1),与曝光插件结合使用,默认 0 */
588
516
  impressionScale?: number;
517
+ /** 性能采集插件配置。集成后默认开启首屏加载监控和错误监控,默认关闭网络监控 */
518
+ performance?: GioPerformanceOptions;
589
519
  /** 与小程序打通时的配置项,SDK >= 4.3.0 支持 */
590
520
  embeddedAdapter?: {
591
521
  /** 圈选服务器地址,SaaS 客户不需要配置 */
@@ -604,11 +534,49 @@ export declare interface GioPageProps {
604
534
  title: string;
605
535
  }
606
536
 
537
+ /**
538
+ * 性能采集 - 网络监控排除配置
539
+ */
540
+ declare interface GioPerformanceNetwork {
541
+ /**
542
+ * 请求监控排除名单
543
+ * 值可以是域名字符串、正则表达式,或由两者组成的数组
544
+ * 配置此项即视为开启请求监控
545
+ * 注意:使用纯字符串校验时应尽可能使用长且准确的字符,过短的字符串可能会误过滤其他请求
546
+ */
547
+ exclude?: string | RegExp | Array<string | RegExp>;
548
+ }
549
+
550
+ /**
551
+ * 性能采集配置项
552
+ * 集成性能采集插件后,默认开启首屏加载监控和错误监控,默认关闭网络监控
553
+ */
554
+ declare interface GioPerformanceOptions {
555
+ /** 是否开启首屏加载监控,默认 true */
556
+ monitor?: boolean;
557
+ /** 是否开启错误监控,默认 true */
558
+ exception?: boolean;
559
+ /**
560
+ * 网络监控配置
561
+ * - 不配置时默认关闭网络监控
562
+ * - 设为 true 开启网络监控
563
+ * - 设为对象时开启网络监控并配置排除名单
564
+ * 注意:请求监控强制过滤了 Gio 上报的请求
565
+ */
566
+ network?: boolean | GioPerformanceNetwork;
567
+ }
568
+
569
+ declare type GioSessionData = {
570
+ [K in keyof typeof GIO_SESSION_KEYS]?: string | null;
571
+ };
572
+
607
573
  /**
608
574
  * 事件计时器 ID 类型
609
575
  */
610
576
  export declare type GioTimerId = string;
611
577
 
578
+ export declare type GioTrackAttrs = Record<string, string | number | Array<string | number> | null | undefined>;
579
+
612
580
  declare class GioTracker {
613
581
  private hasInitCalled;
614
582
  private dispatcher;
@@ -822,7 +790,11 @@ export declare interface GioUserAttributes {
822
790
  [key: string]: GioAttributeValue;
823
791
  }
824
792
 
825
- export declare const HasLoginKey = "hasLogin";
793
+ export { GraphQLClientError }
794
+
795
+ export declare const HasLoginKey: string;
796
+
797
+ export declare const initCommonKeys: (newKeys: Partial<CommonKeysConfig>) => void;
826
798
 
827
799
  /**
828
800
  * 全局初始化方法,在项目入口调用
@@ -853,16 +825,14 @@ export declare function installClientIdPlugin(instance: AxiosInstance, options?:
853
825
  */
854
826
  export declare function installFetchClientId(options?: FetchClientIdOptions): void;
855
827
 
856
- /**
857
- * 获取邀请加入公司信息
858
- * @param data
859
- * @returns
860
- */
861
828
  export declare function inviteJoinGetCompApi(data: any): Promise<any>;
862
829
 
863
- declare interface IResponse<T> {
830
+ /** 简化响应结构(仅 data 字段)— 兼容旧名 IResponse */
831
+ export declare type IResponse<T> = {
864
832
  data: T;
865
- }
833
+ };
834
+
835
+ export declare function isEmpty(value: any): boolean;
866
836
 
867
837
  /**
868
838
  * 检查 GIO 是否可用(浏览器环境且已初始化)
@@ -876,238 +846,68 @@ declare interface IResponse<T> {
876
846
  */
877
847
  export declare function isGioAvailable(trackerInstance?: typeof tracker): boolean;
878
848
 
879
- /**
880
- * 判断域名是否为 IP
881
- */
882
849
  export declare function isIpAddress(hostname: string): boolean;
883
850
 
884
- declare interface LineRequestPayload {
885
- current: number;
886
- size: number;
887
- lineType: "air" | "shipping";
888
- searchkey?: string;
889
- ids?: number[];
890
- [key: string]: any;
891
- }
892
-
893
851
  export declare const locationSearchV2: {
894
- SEARCH_VERSION: string;
895
- searchByName: (params: SearchGenericParams) => Promise<{
896
- records: LocationUnifiedItem[];
897
- total: number;
898
- current: number;
899
- size: number;
900
- }>;
852
+ searchByName: (params: SearchGenericParams) => Promise<BaseResponse<LocationUnifiedItem>>;
901
853
  searchByIdWithType: (id: number | string | Array<number | string>, type: LocationType, extraParams?: {
902
854
  lineType?: "air" | "shipping";
903
- }) => Promise<{
904
- records: LocationUnifiedItem[];
905
- total: number;
906
- current: number;
907
- size: number;
908
- }>;
855
+ }) => any;
909
856
  country: {
910
- searchByName: (params: SearchByNameParams) => Promise<{
911
- records: LocationUnifiedItem[];
912
- total: number;
913
- current: number;
914
- size: number;
915
- }>;
916
- getByIds: (ids: number[]) => Promise<{
917
- records: LocationUnifiedItem[];
918
- total: number;
919
- current: number;
920
- size: number;
921
- }>;
857
+ searchRegionByName: (params: SearchByNameParams) => Promise<BaseResponse<LocationUnifiedItem>>;
858
+ getRegionByIds: (ids: number[]) => Promise<BaseResponse<LocationUnifiedItem>>;
859
+ searchByName: (params: SearchWithScopeParams) => Promise<BaseResponse<LocationUnifiedItem>>;
860
+ getByIds: (ids: number[] | string[]) => Promise<BaseResponse<LocationUnifiedItem>>;
922
861
  };
923
862
  region: {
924
- searchByName: (params: SearchByNameParams) => Promise<{
925
- records: LocationUnifiedItem[];
926
- total: number;
927
- current: number;
928
- size: number;
929
- }>;
930
- getByIds: (ids: number[]) => Promise<{
931
- records: LocationUnifiedItem[];
932
- total: number;
933
- current: number;
934
- size: number;
935
- }>;
863
+ searchByName: (params: SearchByNameParams) => Promise<BaseResponse<LocationUnifiedItem>>;
864
+ getByIds: (ids: number[]) => Promise<BaseResponse<LocationUnifiedItem>>;
936
865
  };
937
866
  city: {
938
- searchByName: (params: SearchWithScopeParams) => Promise<{
939
- records: LocationUnifiedItem[];
940
- total: number;
941
- current: number;
942
- size: number;
943
- }>;
944
- getByIds: (ids: number[]) => Promise<{
945
- records: LocationUnifiedItem[];
946
- total: number;
947
- current: number;
948
- size: number;
949
- }>;
950
- getCitiesByCountry: (countryId: number, params?: PageParams) => Promise<{
951
- records: LocationUnifiedItem[];
952
- total: number;
953
- current: number;
954
- size: number;
955
- }>;
867
+ getCitiesByCountry: (countryId: number, params?: PageParams) => Promise<BaseResponse<LocationUnifiedItem>>;
868
+ searchByName: (params: SearchWithScopeParams) => Promise<BaseResponse<LocationUnifiedItem>>;
869
+ getByIds: (ids: number[] | string[]) => Promise<BaseResponse<LocationUnifiedItem>>;
956
870
  };
957
871
  seaport: {
958
- searchByName: (params: SearchWithScopeParams) => Promise<{
959
- records: LocationUnifiedItem[];
960
- total: number;
961
- current: number;
962
- size: number;
963
- }>;
964
- getByIds: (ids: number[]) => Promise<{
965
- records: LocationUnifiedItem[];
966
- total: number;
967
- current: number;
968
- size: number;
969
- }>;
872
+ searchByName: (params: SearchWithScopeParams) => Promise<BaseResponse<LocationUnifiedItem>>;
873
+ getByIds: (ids: number[] | string[]) => Promise<BaseResponse<LocationUnifiedItem>>;
970
874
  };
971
875
  airport: {
972
- searchByName: (params: SearchWithScopeParams) => Promise<{
973
- records: LocationUnifiedItem[];
974
- total: number;
975
- current: number;
976
- size: number;
977
- }>;
978
- getByIds: (ids: number[]) => Promise<{
979
- records: LocationUnifiedItem[];
980
- total: number;
981
- current: number;
982
- size: number;
983
- }>;
876
+ searchByName: (params: SearchWithScopeParams) => Promise<BaseResponse<LocationUnifiedItem>>;
877
+ getByIds: (ids: number[] | string[]) => Promise<BaseResponse<LocationUnifiedItem>>;
878
+ };
879
+ province: {
880
+ searchByName: (params: SearchWithScopeParams) => Promise<BaseResponse<LocationUnifiedItem>>;
881
+ getByIds: (ids: number[] | string[]) => Promise<BaseResponse<LocationUnifiedItem>>;
882
+ };
883
+ continent: {
884
+ searchByName: (params: SearchWithScopeParams) => Promise<BaseResponse<LocationUnifiedItem>>;
885
+ getByIds: (ids: number[] | string[]) => Promise<BaseResponse<LocationUnifiedItem>>;
984
886
  };
985
887
  wharf: {
986
- getByIds: (ids: string[]) => Promise<{
987
- records: LocationUnifiedItem[];
988
- total: number;
989
- current: number;
990
- size: number;
991
- }>;
888
+ getByIds: (ids: string[]) => Promise<BaseResponse<LocationUnifiedItem>>;
992
889
  };
993
890
  carrier: {
994
- /**
995
- * 内部私有方法:构建符合 Carrier 接口要求的 payload
996
- */
997
- _buildPayload: (params: Partial<SearchByNameParams> & {
998
- ids?: number[];
999
- }, lineType: "air" | "shipping") => CarrierRequestPayload;
1000
- /**
1001
- * 搜索船公司 (Shipping Line)
1002
- */
1003
- searchShipping: (params: SearchByNameParams) => Promise<{
1004
- records: LocationUnifiedItem[];
1005
- total: number;
1006
- current: number;
1007
- size: number;
1008
- }>;
1009
- /**
1010
- * 搜索航空公司 (Airline)
1011
- */
1012
- searchAir: (params: SearchByNameParams) => Promise<{
1013
- records: LocationUnifiedItem[];
1014
- total: number;
1015
- current: number;
1016
- size: number;
1017
- }>;
1018
- /**
1019
- * 通用搜索 (需要手动传入 type)
1020
- * 场景:如果前端有一个下拉框让用户选类型,则调用此方法
1021
- */
1022
- search: (params: SearchByNameParams, lineType: "air" | "shipping") => Promise<{
1023
- records: LocationUnifiedItem[];
1024
- total: number;
1025
- current: number;
1026
- size: number;
1027
- }>;
1028
- /**
1029
- * 根据 ID 获取详情
1030
- * 注意:根据你的 Interface,ID 查询可能也需要传 lineType,
1031
- * 默认设为 shipping,或者你需要拆分成两个 ID 方法
1032
- */
1033
- getByIds: (ids: number[], lineType?: "air" | "shipping") => Promise<{
1034
- records: LocationUnifiedItem[];
1035
- total: number;
1036
- current: number;
1037
- size: number;
1038
- }>;
891
+ searchShipping: (params: SearchByNameParams) => Promise<BaseResponse<LocationUnifiedItem>>;
892
+ searchAir: (params: SearchByNameParams) => Promise<BaseResponse<LocationUnifiedItem>>;
893
+ search: (params: SearchByNameParams, lineType: "air" | "shipping") => Promise<BaseResponse<LocationUnifiedItem>>;
894
+ getByIds: (ids: number[], lineType?: "air" | "shipping") => Promise<BaseResponse<LocationUnifiedItem>>;
1039
895
  };
1040
896
  line: {
1041
- /**
1042
- * 内部私有方法:构建符合后端要求的 Payload
1043
- */
1044
- _buildPayload: (params: Partial<SearchByNameParams> & {
1045
- ids?: number[];
1046
- }, lineType: "air" | "shipping") => LineRequestPayload;
1047
- searchAllByCountry: (lineType: "air" | "shipping", countryId?: number) => Promise<{
1048
- records: LocationUnifiedItem[];
1049
- total: number;
1050
- current: number;
1051
- size: number;
1052
- }>;
1053
- /**
1054
- * 搜索海运航线 (Shipping Line)
1055
- * 例如:AE1, TP9
1056
- */
1057
- searchShipping: (params: SearchByNameParams) => Promise<{
1058
- records: LocationUnifiedItem[];
1059
- total: number;
1060
- current: number;
1061
- size: number;
1062
- }>;
1063
- /**
1064
- * 搜索空运航线 (Air Line)
1065
- * 业务上较少见,但接口支持
1066
- */
1067
- searchAir: (params: SearchByNameParams) => Promise<{
1068
- records: LocationUnifiedItem[];
1069
- total: number;
1070
- current: number;
1071
- size: number;
1072
- }>;
1073
- /**
1074
- * 通用搜索 (需要手动传 lineType)
1075
- */
1076
- search: (params: SearchByNameParams, lineType: "air" | "shipping") => Promise<{
1077
- records: LocationUnifiedItem[];
1078
- total: number;
1079
- current: number;
1080
- size: number;
1081
- }>;
1082
- /**
1083
- * 根据 ID 获取航线详情
1084
- * 默认默认为 shipping,如需查空运航线需显式传入
1085
- */
1086
- getByIds: (ids: number[], lineType?: "air" | "shipping") => Promise<{
1087
- records: LocationUnifiedItem[];
1088
- total: number;
1089
- current: number;
1090
- size: number;
1091
- }>;
897
+ searchAllByCountry: (lineType: "air" | "shipping", countryId?: number) => Promise<BaseResponse<LocationUnifiedItem>>;
898
+ searchShipping: (params: SearchByNameParams) => Promise<BaseResponse<LocationUnifiedItem>>;
899
+ searchAir: (params: SearchByNameParams) => Promise<BaseResponse<LocationUnifiedItem>>;
900
+ search: (params: SearchByNameParams, lineType: "air" | "shipping") => Promise<BaseResponse<LocationUnifiedItem>>;
901
+ getByIds: (ids: number[], lineType?: "air" | "shipping") => Promise<BaseResponse<LocationUnifiedItem>>;
1092
902
  };
1093
- /** 获取某个国家下的所有城市 */
1094
- getCitiesByCountry: (countryId: number, params?: PageParams) => Promise<{
1095
- records: LocationUnifiedItem[];
1096
- total: number;
1097
- current: number;
1098
- size: number;
1099
- }>;
1100
- /** 获取某个城市下的子实体 */
1101
- getChildrenByCity: (cityId: number, childTypes: Array<"Seaport" | "Airport" | "Wharf">, params?: PageParams) => Promise<{
1102
- records: LocationUnifiedItem[];
1103
- total: number;
1104
- current: number;
1105
- size: number;
1106
- }>;
903
+ getCitiesByCountry: (countryId: number, params?: PageParams) => Promise<BaseResponse<LocationUnifiedItem>>;
904
+ getChildrenByCity: (cityId: number, childTypes: Array<"Seaport" | "Airport" | "Wharf">, params?: PageParams) => Promise<BaseResponse<LocationUnifiedItem>>;
1107
905
  };
1108
906
 
907
+ /** 所有支持的搜索实体类型(V1 + V2 的 superset) */
1109
908
  export declare type LocationType = "Continent" | "Country" | "Region" | "Province" | "City" | "Seaport" | "Airport" | "Street" | "Town" | "Wharf" | "Carrier" | "Line";
1110
909
 
910
+ /** 标准化后的实体对象(V1 + V2 的 superset) */
1111
911
  export declare interface LocationUnifiedItem {
1112
912
  id: number | string;
1113
913
  type: LocationType;
@@ -1116,77 +916,40 @@ export declare interface LocationUnifiedItem {
1116
916
  display?: string;
1117
917
  displayEn?: string;
1118
918
  displayCn?: string;
1119
- /** * 通用代码字段 (自动取 scacCode 或 carrierCode)
1120
- * 适用于仅展示用途
1121
- */
1122
919
  code?: string;
1123
- /** * SCAC 代码 (Standard Carrier Alpha Code) - 通常用于船司
1124
- */
1125
920
  scacCode?: string;
1126
- /** * IATA 代码 - 通常用于航司
1127
- */
1128
921
  iataCode?: string;
1129
- /** * 承运人通用代码
1130
- */
1131
922
  carrierCode?: string;
1132
- /** * 承运人类型: 'air' | 'shipping'
1133
- */
1134
923
  lineType?: string;
1135
924
  continent?: Record<string, any>;
1136
925
  country?: Record<string, any>;
1137
926
  city?: Record<string, any>;
1138
927
  province?: Record<string, any>;
1139
928
  raw?: any;
929
+ [key: string]: unknown;
1140
930
  }
1141
931
 
1142
- /**
1143
- * 用户登录
1144
- * @param loginData
1145
- * @returns
1146
- */
1147
932
  export declare function loginApi(loginData: LoginDataParams): Promise<IResponse<ApiResponse<LoginResponseData>>>;
1148
933
 
1149
- /**
1150
- * 验证码登录注册
1151
- * @param data
1152
- * @returns
1153
- */
1154
934
  export declare function loginByEmailOrMobileCodeApi(data: any): Promise<IResponse<ApiResponse<LoginResponseData>>>;
1155
935
 
1156
- /**
1157
- * Facebook 登录
1158
- * @param data
1159
- * @returns
1160
- */
1161
- export declare function loginByFacebookApi(data: any): Promise<IResponse<ApiResponse<ThirdResponseData>>>;
936
+ export declare const loginByFacebookApi: (data: any) => Promise<IResponse<ApiResponse<ThirdResponseData>>>;
1162
937
 
1163
- /**
1164
- * LinkedIn 登录
1165
- * @param data
1166
- * @returns
1167
- */
1168
- export declare function loginByLinkedinApi(data: any): Promise<IResponse<ApiResponse<ThirdResponseData>>>;
938
+ export declare const loginByLinkedinApi: (data: any) => Promise<IResponse<ApiResponse<ThirdResponseData>>>;
1169
939
 
1170
- /**
1171
- * 微信二维码登录(1s轮询)
1172
- * @param data
1173
- * @returns
1174
- */
1175
940
  export declare function loginByQrCode(data: {
1176
941
  uniqueCode: string;
1177
942
  appId: string;
1178
943
  redirectPath: string;
1179
944
  kick: boolean;
945
+ prjId?: string;
946
+ formEntry?: string;
1180
947
  }): Promise<any>;
1181
948
 
1182
- /**
1183
- * 微信二维码登录绑定用户(验证码)
1184
- * @param data
1185
- * @returns
1186
- */
1187
949
  export declare function loginCodeBindWechatApi(data: any): Promise<any>;
1188
950
 
1189
- declare interface LoginDataParams {
951
+ /** 登录请求参数 */
952
+ export declare interface LoginDataParams {
1190
953
  username: string;
1191
954
  password: string;
1192
955
  appId: string;
@@ -1198,14 +961,10 @@ declare interface LoginDataParams {
1198
961
  referenceUserId: string;
1199
962
  }
1200
963
 
1201
- /**
1202
- * 微信二维码登录绑定用户(账号密码)
1203
- * @param data
1204
- * @returns
1205
- */
1206
964
  export declare function loginPwdBindWechatApi(data: any): Promise<any>;
1207
965
 
1208
- declare interface LoginResponseData {
966
+ /** 登录响应的 data 层 */
967
+ export declare interface LoginResponseData {
1209
968
  redirect: boolean;
1210
969
  redirectPath?: string;
1211
970
  tgc?: string;
@@ -1213,7 +972,8 @@ declare interface LoginResponseData {
1213
972
  hasLogon?: boolean;
1214
973
  }
1215
974
 
1216
- declare interface LoginResult {
975
+ /** 登录结果中的 Token 信息 */
976
+ export declare interface LoginResult {
1217
977
  accessToken: string;
1218
978
  expireIn: number;
1219
979
  refreshToken: string;
@@ -1235,79 +995,78 @@ export declare type ModalEvents = Record<ActionKeys, any> & {
1235
995
 
1236
996
  export declare type ModalOpenCallback = () => void;
1237
997
 
998
+ export declare const normalizeAttrs: (attrs?: GioTrackAttrs) => GioTrackAttrs;
999
+
1000
+ export declare const normalizeClickPageAttrs: (eventName: string, attrs?: GioTrackAttrs) => GioTrackAttrs;
1001
+
1002
+ export { OpportunityBoardParams }
1003
+
1238
1004
  /**
1239
1005
  * 页面变更回调
1240
1006
  */
1241
1007
  export declare type PageListenerCallback = (pageProps: GioPageProps) => void;
1242
1008
 
1009
+ /** 分页参数 */
1243
1010
  export declare interface PageParams {
1244
1011
  current?: number;
1245
1012
  size?: number;
1246
1013
  }
1247
1014
 
1248
- export declare const PrjId = "prjId";
1015
+ export declare const PrjId: string;
1249
1016
 
1250
- export declare const RefreshExpiresInKey = "JC-Refresh-Expires-In";
1017
+ /**
1018
+ * 查询商机有效看板数据(分页)。
1019
+ *
1020
+ * 【每次调用新建 SDK 实例,无状态污染】
1021
+ *
1022
+ * @example
1023
+ * ```ts
1024
+ * import { queryOpportunityBoard } from '@jctrans-materials/shared'
1025
+ *
1026
+ * const result = await queryOpportunityBoard({
1027
+ * compId: 12345,
1028
+ * dateType: 'QUARTER',
1029
+ * dateValue: '2026-Q2',
1030
+ * })
1031
+ *
1032
+ * if (result.success) {
1033
+ * console.log(result.data.records)
1034
+ * }
1035
+ * ```
1036
+ */
1037
+ export declare function queryOpportunityBoard(params: OpportunityBoardParams): Promise<BoardQueryResult>;
1251
1038
 
1252
- export declare const RefreshExpiresInTimeKey = "JC-Refresh-Expires-Time-In";
1039
+ export declare const RefreshExpiresInKey: string;
1253
1040
 
1254
- export declare const RefreshTokenKey = "JC-Refresh-Token";
1041
+ export declare const RefreshExpiresInTimeKey: string;
1042
+
1043
+ export declare const RefreshTokenKey: string;
1255
1044
 
1256
- /**
1257
- * 国际站峰会注册
1258
- * @param data
1259
- * @returns
1260
- */
1261
1045
  export declare function registerApi(data: any): Promise<any>;
1262
1046
 
1263
- /**
1264
- * 使用第三方应用注册用户公司
1265
- * @param data
1266
- * @returns
1267
- */
1268
1047
  export declare function registerByThirdPartyApi(data: any): Promise<any>;
1269
1048
 
1270
- /**
1271
- * 用户注册加入公司
1272
- * @param data
1273
- * @returns
1274
- */
1275
1049
  export declare function registerJoinCompanyApi(data: any): Promise<any>;
1276
1050
 
1277
- /**
1278
- * 微信二维码登录用户注册加入公司 🍉
1279
- * @param data
1280
- * @returns
1281
- */
1282
1051
  export declare function registerJoinCompanyBindWechatApi(data: any): Promise<any>;
1283
1052
 
1284
- /**
1285
- * 第三方应用注册加入公司
1286
- * @param data
1287
- * @returns
1288
- */
1289
1053
  export declare function registerJoinCompByThirdPartyApi(data: any): Promise<any>;
1290
1054
 
1291
- /**
1292
- * 微信二维码登录注册用户公司
1293
- * @param data
1294
- * @returns
1295
- */
1296
1055
  export declare function registerUserCompBindWechatApi(data: any): Promise<any>;
1297
1056
 
1298
- export declare const RememberMeAccountKey = "JC-Remember-Account";
1057
+ export declare const RememberMeAccountKey: string;
1299
1058
 
1300
- export declare const RememberMePasswordKey = "JC-Remember-Password";
1059
+ export declare const RememberMePasswordKey: string;
1301
1060
 
1302
- export declare interface reportNewTypeData {
1061
+ export declare interface ReportNewTypeData {
1303
1062
  reportData: string;
1304
1063
  reportType: ReportType;
1305
1064
  countryId?: string | number;
1306
1065
  }
1307
1066
 
1308
- export declare function reportNewTypeDataApi(payload: reportNewTypeData): Promise<{}>;
1067
+ export declare function reportNewTypeDataApi(payload: ReportNewTypeData): Promise<Record<string, any>>;
1309
1068
 
1310
- export declare type ReportType = "City" | "Seaport" | "Airport" | "Line";
1069
+ export declare type ReportType = "City" | "Seaport" | "Airport" | "Line" | "Carrier" | "shipping_line" | "shipping_carrier" | "air_line" | "air_carrier";
1311
1070
 
1312
1071
  declare interface RequestAdapter {
1313
1072
  get(url: string, config?: RequestConfig): Promise<any>;
@@ -1328,23 +1087,18 @@ declare interface RequestOptions {
1328
1087
  fetch?: typeof fetch;
1329
1088
  }
1330
1089
 
1331
- /**
1332
- * 重置 session
1333
- */
1334
1090
  export declare function resetAuthSessionItems(): void;
1335
1091
 
1336
- /**
1337
- * 重置 GIO 相关 session
1338
- * @returns
1339
- */
1340
1092
  export declare function resetGioSessionItems(): void;
1341
1093
 
1342
- /**
1343
- * 重置密码
1344
- * @param data
1345
- * @returns
1346
- */
1347
- export declare function resetPasswordApi(data: any): Promise<any>;
1094
+ export declare function resetPasswordApi(data: ResetPasswordData): Promise<any>;
1095
+
1096
+ declare interface ResetPasswordData {
1097
+ account?: string;
1098
+ password?: string;
1099
+ code?: string;
1100
+ [key: string]: any;
1101
+ }
1348
1102
 
1349
1103
  /**
1350
1104
  * 保存 clientId 到 localStorage
@@ -1358,8 +1112,6 @@ export declare function saveClientIdToSessionStorage(clientId: string): void;
1358
1112
 
1359
1113
  /**
1360
1114
  * 统一搜索接口
1361
- * - 支持 keyword(模糊), displayInfo(数组), ids(按 type), scope(countryId/cityId/provinceId)
1362
- * - 返回扁平化的 UnifiedItem 列表 + 分页信息
1363
1115
  */
1364
1116
  export declare function search(params: {
1365
1117
  keyword?: string;
@@ -1384,7 +1136,7 @@ export declare function searchAirportByName(keyword: string, opts?: {
1384
1136
  page?: number;
1385
1137
  size?: number;
1386
1138
  cityId?: number;
1387
- }): Promise<BaseResponse<UnifiedItem>>;
1139
+ }): Promise<BaseResponse<LocationUnifiedItem>>;
1388
1140
 
1389
1141
  /**
1390
1142
  * 按名称搜索指定类型
@@ -1398,6 +1150,7 @@ export declare function searchByName(params: {
1398
1150
  sort?: string;
1399
1151
  }): Promise<BaseResponse<UnifiedItem>>;
1400
1152
 
1153
+ /** 按名称搜索参数 */
1401
1154
  export declare interface SearchByNameParams extends PageParams {
1402
1155
  keyword: string;
1403
1156
  searchMode?: "0" | "1" | "2";
@@ -1407,13 +1160,14 @@ export declare function searchCityByName(keyword: string, opts?: {
1407
1160
  page?: number;
1408
1161
  size?: number;
1409
1162
  countryId?: number;
1410
- }): Promise<BaseResponse<UnifiedItem>>;
1163
+ }): Promise<BaseResponse<LocationUnifiedItem>>;
1411
1164
 
1412
1165
  export declare function searchCountryByName(keyword: string, opts?: {
1413
1166
  page?: number;
1414
1167
  size?: number;
1415
- }): Promise<BaseResponse<UnifiedItem>>;
1168
+ }): Promise<BaseResponse<LocationUnifiedItem>>;
1416
1169
 
1170
+ /** 通用搜索参数(需指定 displayInfo) */
1417
1171
  export declare interface SearchGenericParams extends SearchByNameParams {
1418
1172
  displayInfo: LocationType[];
1419
1173
  }
@@ -1422,19 +1176,15 @@ export declare function searchSeaportByName(keyword: string, opts?: {
1422
1176
  page?: number;
1423
1177
  size?: number;
1424
1178
  cityId?: number;
1425
- }): Promise<BaseResponse<UnifiedItem>>;
1179
+ }): Promise<BaseResponse<LocationUnifiedItem>>;
1426
1180
 
1181
+ /** 带范围约束的搜索参数 */
1427
1182
  export declare interface SearchWithScopeParams extends SearchByNameParams {
1428
1183
  countryId?: number;
1429
1184
  cityId?: number;
1430
1185
  provinceId?: number;
1431
1186
  }
1432
1187
 
1433
- /**
1434
- * 发送邮箱验证码
1435
- * @param data
1436
- * @returns
1437
- */
1438
1188
  export declare function sendEmailCodeApi(data: {
1439
1189
  target: string;
1440
1190
  countryId?: number;
@@ -1442,11 +1192,6 @@ export declare function sendEmailCodeApi(data: {
1442
1192
  uuid?: string;
1443
1193
  }): Promise<any>;
1444
1194
 
1445
- /**
1446
- * 发送手机验证码
1447
- * @param data
1448
- * @returns
1449
- */
1450
1195
  export declare function sendMobileCodeApi(data: {
1451
1196
  target: string;
1452
1197
  countryId?: number;
@@ -1454,38 +1199,12 @@ export declare function sendMobileCodeApi(data: {
1454
1199
  uuid?: string;
1455
1200
  }): Promise<any>;
1456
1201
 
1457
- /**
1458
- * 全局设置 session
1459
- * @param data
1460
- */
1461
- export declare function setAuthSessionItems(data: {
1462
- activityCode?: string | null;
1463
- referenceUserId?: string | null;
1464
- empNo?: string | null;
1465
- uniqueCode?: string | null;
1466
- path?: string | null;
1467
- clickSource?: string | null;
1468
- registerEvent?: string | null;
1469
- registerType?: string | null;
1470
- compKey?: string | null;
1471
- }): void;
1202
+ export declare function setAuthSessionItems(data: AuthSessionData): void;
1472
1203
 
1473
- /**
1474
- * 全局设置 GIO 相关 session
1475
- * @param data
1476
- */
1477
- export declare function setGioSessionItems(data: {
1478
- registerEntry?: string | null;
1479
- }): void;
1204
+ export declare function setGioSessionItems(data: GioSessionData): void;
1480
1205
 
1481
- /**
1482
- * 记住账号 (替代存密码)
1483
- */
1484
1206
  export declare function setRememberMe(account: string, password: string, remember: boolean): void;
1485
1207
 
1486
- /**
1487
- * 整体设置所有凭证
1488
- */
1489
1208
  export declare function setTokenAll(data: TokenData | null | undefined): void;
1490
1209
 
1491
1210
  export declare interface SharedConfig {
@@ -1496,29 +1215,20 @@ export declare interface SharedConfig {
1496
1215
  linePath: string;
1497
1216
  allLinePath: string;
1498
1217
  appId?: string;
1218
+ commonKeys?: Partial<CommonKeysConfig>;
1499
1219
  }
1500
1220
 
1501
- /**
1502
- * 滑动或者点选验证
1503
- * @param data
1504
- * @returns
1505
- */
1506
1221
  export declare function slideCheckApi(data: {
1507
1222
  pointJson: string;
1508
1223
  uuid: string;
1509
1224
  }): Promise<any>;
1510
1225
 
1511
- /**
1512
- * 获取验证图片 以及token
1513
- * @param data
1514
- * @returns
1515
- */
1516
1226
  export declare function slideGetApi(data: {
1517
1227
  clientUid: string;
1518
1228
  ts: number;
1519
1229
  }): Promise<any>;
1520
1230
 
1521
- declare interface ThirdPartyInfo {
1231
+ export declare interface ThirdPartyInfo {
1522
1232
  thirdPartyEmail: string;
1523
1233
  thirdPartyId: string;
1524
1234
  thirdPartyType: string;
@@ -1526,31 +1236,24 @@ declare interface ThirdPartyInfo {
1526
1236
  [property: string]: any;
1527
1237
  }
1528
1238
 
1529
- declare interface ThirdResponseData {
1530
- /**
1531
- * 手机邮箱匹配列表 (修正为数组)
1532
- */
1239
+ /** 第三方登录响应 */
1240
+ export declare interface ThirdResponse {
1241
+ code: number;
1242
+ data: ThirdResponseData;
1243
+ msg: string;
1244
+ [property: string]: any;
1245
+ }
1246
+
1247
+ export declare interface ThirdResponseData {
1533
1248
  mobileEmailList: ThirdResponseMobileEmailList[];
1534
- /**
1535
- * 是否跳转, true跳转 false不跳转
1536
- */
1537
1249
  redirect: boolean;
1538
- /**
1539
- * 跳转路径
1540
- */
1541
1250
  redirectPath: string;
1542
- /**
1543
- * tgc
1544
- */
1545
1251
  tgc: string;
1546
- /**
1547
- * 三方信息
1548
- */
1549
1252
  thirdPartyInfo: ThirdPartyInfo;
1550
1253
  [property: string]: any;
1551
1254
  }
1552
1255
 
1553
- declare interface ThirdResponseMobileEmailList {
1256
+ export declare interface ThirdResponseMobileEmailList {
1554
1257
  account: string;
1555
1258
  cityId: number;
1556
1259
  cityNameCn: string;
@@ -1570,9 +1273,6 @@ declare interface ThirdResponseMobileEmailList {
1570
1273
 
1571
1274
  export declare const TOKEN_ENDPOINTS: Set<string>;
1572
1275
 
1573
- /**
1574
- * 3. 类型定义
1575
- */
1576
1276
  export declare interface TokenData {
1577
1277
  accessToken?: string;
1578
1278
  expireIn?: number;
@@ -1580,50 +1280,21 @@ export declare interface TokenData {
1580
1280
  refreshTokenExpireIn?: number;
1581
1281
  }
1582
1282
 
1583
- /**
1584
- * 2. 常量定义 (补全所有业务 Key)
1585
- */
1586
- export declare const TokenKey = "JC-JAVA-Token-Root";
1283
+ export declare const TokenKey: string;
1587
1284
 
1588
1285
  export declare function toSafeHeaderValue(value: string): string;
1589
1286
 
1590
1287
  export declare const tracker: GioTracker;
1591
1288
 
1592
- /** 归一化之后的实体 */
1593
- export declare interface UnifiedItem {
1594
- id: number | string;
1595
- type: DisplayInfo;
1596
- nameCn?: string;
1597
- nameEn?: string;
1598
- display?: string;
1599
- continent?: Record<string, any>;
1600
- country?: Record<string, any>;
1601
- city?: Record<string, any>;
1602
- province?: Record<string, any>;
1603
- raw?: any;
1604
- }
1289
+ /** 兼容旧名:baseSearch.UnifiedItem */
1290
+ export declare type UnifiedItem = LocationUnifiedItem;
1605
1291
 
1606
- /**
1607
- * 获取用户信息
1608
- * @param data
1609
- * @returns
1610
- */
1611
- export declare function userCompPermsApi(data: any): Promise<any>;
1292
+ export declare function userCompPermsApi(data: Record<string, any>): Promise<any>;
1612
1293
 
1613
- /**
1614
- * 验证账号是否存在 /auth/validateAccountExist
1615
- * @param data
1616
- * @returns
1617
- */
1618
1294
  export declare function validateAccountExistApi(data: {
1619
1295
  target: string;
1620
1296
  }): Promise<any>;
1621
1297
 
1622
- /**
1623
- * 校验注册公司是否重名
1624
- * @param data
1625
- * @returns
1626
- */
1627
1298
  export declare function validateCompanyApi(data: {
1628
1299
  countryId: number;
1629
1300
  cityId: number;