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

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