@jctrans-materials/shared 1.0.40-beta.10 → 1.0.40-beta.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +3 -3
- package/dist/index.d.ts +55 -222
- package/dist/index.esm.js +1287 -1255
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { Emitter } from 'mitt';
|
|
|
3
3
|
|
|
4
4
|
declare type ActionKeys = (typeof MODAL_ACTION)[keyof typeof MODAL_ACTION];
|
|
5
5
|
|
|
6
|
-
declare interface ApiResponse<T = any> {
|
|
6
|
+
export declare interface ApiResponse<T = any> {
|
|
7
7
|
code: number;
|
|
8
8
|
msg: string;
|
|
9
9
|
data: T;
|
|
@@ -16,10 +16,6 @@ export declare interface AppointSearch {
|
|
|
16
16
|
|
|
17
17
|
export declare type AppointSearchName = "continentId" | "countryId" | "cityId" | "provinceId" | "seaportId" | "airportId" | "allCityByCountryId";
|
|
18
18
|
|
|
19
|
-
/**
|
|
20
|
-
* 1-1-2.TGC自动登录
|
|
21
|
-
* @returns
|
|
22
|
-
*/
|
|
23
19
|
export declare function autoLoginByTGC(data: {
|
|
24
20
|
toSys: string;
|
|
25
21
|
path: string;
|
|
@@ -41,18 +37,8 @@ export declare interface BaseResponse<T = any> {
|
|
|
41
37
|
*/
|
|
42
38
|
export declare type BeforeSendCallback = (event: GioEvent) => GioEvent;
|
|
43
39
|
|
|
44
|
-
/**
|
|
45
|
-
* 验证验证码绑定第三方应用
|
|
46
|
-
* @param data
|
|
47
|
-
* @returns
|
|
48
|
-
*/
|
|
49
40
|
export declare function bindThirdPartyByCodeApi(data: any): Promise<any>;
|
|
50
41
|
|
|
51
|
-
/**
|
|
52
|
-
* 验证密码绑定第三方应用
|
|
53
|
-
* @param data
|
|
54
|
-
* @returns
|
|
55
|
-
*/
|
|
56
42
|
export declare function bindThirdPartyByPwdApi(data: any): Promise<any>;
|
|
57
43
|
|
|
58
44
|
declare interface CarrierRequestPayload {
|
|
@@ -64,29 +50,14 @@ declare interface CarrierRequestPayload {
|
|
|
64
50
|
[key: string]: any;
|
|
65
51
|
}
|
|
66
52
|
|
|
67
|
-
/**
|
|
68
|
-
* 检查账号是否存在(忘记密码专用)
|
|
69
|
-
* @param data
|
|
70
|
-
* @returns
|
|
71
|
-
*/
|
|
72
53
|
export declare function checkAccountExistsFPApi(data: any): Promise<any>;
|
|
73
54
|
|
|
74
|
-
/**
|
|
75
|
-
* 验证邮件验证码
|
|
76
|
-
* @param data
|
|
77
|
-
* @returns
|
|
78
|
-
*/
|
|
79
55
|
export declare function checkEmailCodeApi(data: {
|
|
80
56
|
uuid: string;
|
|
81
57
|
code: string;
|
|
82
58
|
target: string;
|
|
83
59
|
}): Promise<any>;
|
|
84
60
|
|
|
85
|
-
/**
|
|
86
|
-
* 验证手机验证码
|
|
87
|
-
* @param data
|
|
88
|
-
* @returns
|
|
89
|
-
*/
|
|
90
61
|
export declare function checkMobileCodeApi(data: {
|
|
91
62
|
code: string;
|
|
92
63
|
uuid: string;
|
|
@@ -107,6 +78,22 @@ export declare interface ClientIdPluginOptions {
|
|
|
107
78
|
headerName?: string;
|
|
108
79
|
}
|
|
109
80
|
|
|
81
|
+
/**
|
|
82
|
+
* 2. 可配置的常量定义
|
|
83
|
+
*/
|
|
84
|
+
export declare interface CommonKeysConfig {
|
|
85
|
+
TokenKey: string;
|
|
86
|
+
HasLoginKey: string;
|
|
87
|
+
PrjId: string;
|
|
88
|
+
ExpiresInKey: string;
|
|
89
|
+
ExpiresInTimeKey: string;
|
|
90
|
+
RefreshTokenKey: string;
|
|
91
|
+
RefreshExpiresInKey: string;
|
|
92
|
+
RefreshExpiresInTimeKey: string;
|
|
93
|
+
RememberMeAccountKey: string;
|
|
94
|
+
RememberMePasswordKey: string;
|
|
95
|
+
}
|
|
96
|
+
|
|
110
97
|
export declare interface CommonParams {
|
|
111
98
|
current?: number;
|
|
112
99
|
size?: number;
|
|
@@ -124,18 +111,8 @@ export declare interface CompanyOption {
|
|
|
124
111
|
compName: string;
|
|
125
112
|
}
|
|
126
113
|
|
|
127
|
-
/**
|
|
128
|
-
* 完善公司信息跳转
|
|
129
|
-
* @param {*} data
|
|
130
|
-
* @returns
|
|
131
|
-
*/
|
|
132
114
|
export declare function completeCompRedirectApi(data: any): Promise<any>;
|
|
133
115
|
|
|
134
|
-
/**
|
|
135
|
-
* 完善信息加入公司
|
|
136
|
-
* @param data
|
|
137
|
-
* @returns
|
|
138
|
-
*/
|
|
139
116
|
export declare function completeJoinCompanyRedirectApi(data: any): Promise<any>;
|
|
140
117
|
|
|
141
118
|
/**
|
|
@@ -184,7 +161,7 @@ export declare function Decrypt(word: string): string;
|
|
|
184
161
|
*/
|
|
185
162
|
export declare type DeviceIdCallback = (deviceId: string) => void;
|
|
186
163
|
|
|
187
|
-
export declare type DisplayInfo = "Continent" | "Country" | "Province" | "City" | "Seaport" | "Airport";
|
|
164
|
+
export declare type DisplayInfo = "Continent" | "Country" | "Region" | "Province" | "City" | "Seaport" | "Airport";
|
|
188
165
|
|
|
189
166
|
export declare const emitter: Emitter<ModalEvents>;
|
|
190
167
|
|
|
@@ -195,9 +172,9 @@ export declare const emitter: Emitter<ModalEvents>;
|
|
|
195
172
|
*/
|
|
196
173
|
export declare function Encrypt(word: string): string;
|
|
197
174
|
|
|
198
|
-
export declare const ExpiresInKey
|
|
175
|
+
export declare const ExpiresInKey: string;
|
|
199
176
|
|
|
200
|
-
export declare const ExpiresInTimeKey
|
|
177
|
+
export declare const ExpiresInTimeKey: string;
|
|
201
178
|
|
|
202
179
|
/**
|
|
203
180
|
* Fetch API ClientId 拦截器
|
|
@@ -219,15 +196,10 @@ export declare interface FetchClientIdOptions {
|
|
|
219
196
|
* @param data
|
|
220
197
|
* @returns
|
|
221
198
|
*/
|
|
222
|
-
export declare function
|
|
199
|
+
export declare function findDictApi(data?: {
|
|
223
200
|
size: number;
|
|
224
201
|
}): Promise<any>;
|
|
225
202
|
|
|
226
|
-
/**
|
|
227
|
-
* 根据手机邮箱获取重复列表
|
|
228
|
-
* @param data
|
|
229
|
-
* @returns
|
|
230
|
-
*/
|
|
231
203
|
export declare function findListByMobileEmailApi(data: any): Promise<any>;
|
|
232
204
|
|
|
233
205
|
/**
|
|
@@ -235,7 +207,7 @@ export declare function findListByMobileEmailApi(data: any): Promise<any>;
|
|
|
235
207
|
* @param data
|
|
236
208
|
* @returns
|
|
237
209
|
*/
|
|
238
|
-
export declare function
|
|
210
|
+
export declare function findPAreaCodeApi(data?: {
|
|
239
211
|
size: number;
|
|
240
212
|
}): Promise<any>;
|
|
241
213
|
|
|
@@ -264,10 +236,6 @@ export declare function getAirport(params?: {
|
|
|
264
236
|
*/
|
|
265
237
|
export declare function getAppId(): string;
|
|
266
238
|
|
|
267
|
-
/**
|
|
268
|
-
* 全局获取 session
|
|
269
|
-
* @returns
|
|
270
|
-
*/
|
|
271
239
|
export declare function getAuthSessionItems(): {
|
|
272
240
|
activityCode: string | null;
|
|
273
241
|
referenceUserId: string | null;
|
|
@@ -305,6 +273,11 @@ export declare function getCity(params?: {
|
|
|
305
273
|
countryId?: number;
|
|
306
274
|
}): Promise<BaseResponse<UnifiedItem>>;
|
|
307
275
|
|
|
276
|
+
/**
|
|
277
|
+
* 获取当前的常量配置
|
|
278
|
+
*/
|
|
279
|
+
export declare const getCommonKeys: () => CommonKeysConfig;
|
|
280
|
+
|
|
308
281
|
export declare const getCompanyOptionApi: (data: CompanyOption) => Promise<any>;
|
|
309
282
|
|
|
310
283
|
/** 保留对外兼容函数:getContinent/getCountry/getCity/getProvince/getSeaport/getAirport */
|
|
@@ -334,10 +307,6 @@ export declare function getExpiresTimeIn(): number;
|
|
|
334
307
|
*/
|
|
335
308
|
export declare function getFirstDomain(): string | undefined;
|
|
336
309
|
|
|
337
|
-
/**
|
|
338
|
-
* 全局获取 GIO 相关 session
|
|
339
|
-
* @returns
|
|
340
|
-
*/
|
|
341
310
|
export declare function getGioSessionItems(): {
|
|
342
311
|
registerEntry: string | null;
|
|
343
312
|
};
|
|
@@ -348,11 +317,6 @@ export declare function getGioSessionItems(): {
|
|
|
348
317
|
*/
|
|
349
318
|
export declare const getIsEn: () => boolean;
|
|
350
319
|
|
|
351
|
-
/**
|
|
352
|
-
* 获取用户加入公司信息
|
|
353
|
-
* @param data
|
|
354
|
-
* @returns
|
|
355
|
-
*/
|
|
356
320
|
export declare function getJoinCompanyApi(data: any): Promise<any>;
|
|
357
321
|
|
|
358
322
|
/**
|
|
@@ -368,25 +332,10 @@ export declare function getLanguage(): string | undefined;
|
|
|
368
332
|
*/
|
|
369
333
|
export declare function getLocalIpDataApi(data: any): Promise<any>;
|
|
370
334
|
|
|
371
|
-
/**
|
|
372
|
-
* 获取登录微信二维码
|
|
373
|
-
* @param data
|
|
374
|
-
* @returns
|
|
375
|
-
*/
|
|
376
335
|
export declare function getLoginQrCode(data?: {}): Promise<any>;
|
|
377
336
|
|
|
378
|
-
/**
|
|
379
|
-
* 忘记密码发送验证码
|
|
380
|
-
* @param data
|
|
381
|
-
* @returns
|
|
382
|
-
*/
|
|
383
337
|
export declare function getMEVCodeApi(data: any): Promise<any>;
|
|
384
338
|
|
|
385
|
-
/**
|
|
386
|
-
* 根据用户 id 获取手机号
|
|
387
|
-
* @param data
|
|
388
|
-
* @returns
|
|
389
|
-
*/
|
|
390
339
|
export declare function getMobileEmailApi(data: {
|
|
391
340
|
id: string;
|
|
392
341
|
}): Promise<any>;
|
|
@@ -414,12 +363,6 @@ export declare function getProvince(params?: {
|
|
|
414
363
|
countryId?: number;
|
|
415
364
|
}): Promise<BaseResponse<UnifiedItem>>;
|
|
416
365
|
|
|
417
|
-
/**
|
|
418
|
-
* 跳转其他站
|
|
419
|
-
* @param appId
|
|
420
|
-
* @param path
|
|
421
|
-
* @returns
|
|
422
|
-
*/
|
|
423
366
|
export declare function getRedirectPathApi(appId: string, path: string): Promise<any>;
|
|
424
367
|
|
|
425
368
|
/**
|
|
@@ -482,11 +425,6 @@ export declare function getToken(): string | undefined;
|
|
|
482
425
|
*/
|
|
483
426
|
export declare function getTracker<T extends GioTracker>(trackerInstance?: T): T | null;
|
|
484
427
|
|
|
485
|
-
/**
|
|
486
|
-
* 获取用户手机号邮箱信息
|
|
487
|
-
* @param data
|
|
488
|
-
* @returns
|
|
489
|
-
*/
|
|
490
428
|
export declare function getUserInfoApi(data: any): Promise<any>;
|
|
491
429
|
|
|
492
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"];
|
|
@@ -870,7 +808,12 @@ export declare interface GioUserAttributes {
|
|
|
870
808
|
[key: string]: GioAttributeValue;
|
|
871
809
|
}
|
|
872
810
|
|
|
873
|
-
export declare const HasLoginKey
|
|
811
|
+
export declare const HasLoginKey: string;
|
|
812
|
+
|
|
813
|
+
/**
|
|
814
|
+
* 全局初始化方法,在项目入口调用
|
|
815
|
+
*/
|
|
816
|
+
export declare const initCommonKeys: (newKeys: Partial<CommonKeysConfig>) => void;
|
|
874
817
|
|
|
875
818
|
/**
|
|
876
819
|
* 全局初始化方法,在项目入口调用
|
|
@@ -901,14 +844,9 @@ export declare function installClientIdPlugin(instance: AxiosInstance, options?:
|
|
|
901
844
|
*/
|
|
902
845
|
export declare function installFetchClientId(options?: FetchClientIdOptions): void;
|
|
903
846
|
|
|
904
|
-
/**
|
|
905
|
-
* 获取邀请加入公司信息
|
|
906
|
-
* @param data
|
|
907
|
-
* @returns
|
|
908
|
-
*/
|
|
909
847
|
export declare function inviteJoinGetCompApi(data: any): Promise<any>;
|
|
910
848
|
|
|
911
|
-
declare interface IResponse<T> {
|
|
849
|
+
export declare interface IResponse<T> {
|
|
912
850
|
data: T;
|
|
913
851
|
}
|
|
914
852
|
|
|
@@ -1184,39 +1122,14 @@ export declare interface LocationUnifiedItem {
|
|
|
1184
1122
|
[key: string]: unknown;
|
|
1185
1123
|
}
|
|
1186
1124
|
|
|
1187
|
-
/**
|
|
1188
|
-
* 用户登录
|
|
1189
|
-
* @param loginData
|
|
1190
|
-
* @returns
|
|
1191
|
-
*/
|
|
1192
1125
|
export declare function loginApi(loginData: LoginDataParams): Promise<IResponse<ApiResponse<LoginResponseData>>>;
|
|
1193
1126
|
|
|
1194
|
-
/**
|
|
1195
|
-
* 验证码登录注册
|
|
1196
|
-
* @param data
|
|
1197
|
-
* @returns
|
|
1198
|
-
*/
|
|
1199
1127
|
export declare function loginByEmailOrMobileCodeApi(data: any): Promise<IResponse<ApiResponse<LoginResponseData>>>;
|
|
1200
1128
|
|
|
1201
|
-
/**
|
|
1202
|
-
* Facebook 登录
|
|
1203
|
-
* @param data
|
|
1204
|
-
* @returns
|
|
1205
|
-
*/
|
|
1206
1129
|
export declare function loginByFacebookApi(data: any): Promise<IResponse<ApiResponse<ThirdResponseData>>>;
|
|
1207
1130
|
|
|
1208
|
-
/**
|
|
1209
|
-
* LinkedIn 登录
|
|
1210
|
-
* @param data
|
|
1211
|
-
* @returns
|
|
1212
|
-
*/
|
|
1213
1131
|
export declare function loginByLinkedinApi(data: any): Promise<IResponse<ApiResponse<ThirdResponseData>>>;
|
|
1214
1132
|
|
|
1215
|
-
/**
|
|
1216
|
-
* 微信二维码登录(1s轮询)
|
|
1217
|
-
* @param data
|
|
1218
|
-
* @returns
|
|
1219
|
-
*/
|
|
1220
1133
|
export declare function loginByQrCode(data: {
|
|
1221
1134
|
uniqueCode: string;
|
|
1222
1135
|
appId: string;
|
|
@@ -1226,14 +1139,9 @@ export declare function loginByQrCode(data: {
|
|
|
1226
1139
|
formEntry?: string;
|
|
1227
1140
|
}): Promise<any>;
|
|
1228
1141
|
|
|
1229
|
-
/**
|
|
1230
|
-
* 微信二维码登录绑定用户(验证码)
|
|
1231
|
-
* @param data
|
|
1232
|
-
* @returns
|
|
1233
|
-
*/
|
|
1234
1142
|
export declare function loginCodeBindWechatApi(data: any): Promise<any>;
|
|
1235
1143
|
|
|
1236
|
-
declare interface LoginDataParams {
|
|
1144
|
+
export declare interface LoginDataParams {
|
|
1237
1145
|
username: string;
|
|
1238
1146
|
password: string;
|
|
1239
1147
|
appId: string;
|
|
@@ -1245,14 +1153,9 @@ declare interface LoginDataParams {
|
|
|
1245
1153
|
referenceUserId: string;
|
|
1246
1154
|
}
|
|
1247
1155
|
|
|
1248
|
-
/**
|
|
1249
|
-
* 微信二维码登录绑定用户(账号密码)
|
|
1250
|
-
* @param data
|
|
1251
|
-
* @returns
|
|
1252
|
-
*/
|
|
1253
1156
|
export declare function loginPwdBindWechatApi(data: any): Promise<any>;
|
|
1254
1157
|
|
|
1255
|
-
declare interface LoginResponseData {
|
|
1158
|
+
export declare interface LoginResponseData {
|
|
1256
1159
|
redirect: boolean;
|
|
1257
1160
|
redirectPath?: string;
|
|
1258
1161
|
tgc?: string;
|
|
@@ -1260,7 +1163,7 @@ declare interface LoginResponseData {
|
|
|
1260
1163
|
hasLogon?: boolean;
|
|
1261
1164
|
}
|
|
1262
1165
|
|
|
1263
|
-
declare interface LoginResult {
|
|
1166
|
+
export declare interface LoginResult {
|
|
1264
1167
|
accessToken: string;
|
|
1265
1168
|
expireIn: number;
|
|
1266
1169
|
refreshToken: string;
|
|
@@ -1296,59 +1199,29 @@ export declare interface PageParams {
|
|
|
1296
1199
|
size?: number;
|
|
1297
1200
|
}
|
|
1298
1201
|
|
|
1299
|
-
export declare const PrjId
|
|
1202
|
+
export declare const PrjId: string;
|
|
1300
1203
|
|
|
1301
|
-
export declare const RefreshExpiresInKey
|
|
1204
|
+
export declare const RefreshExpiresInKey: string;
|
|
1302
1205
|
|
|
1303
|
-
export declare const RefreshExpiresInTimeKey
|
|
1206
|
+
export declare const RefreshExpiresInTimeKey: string;
|
|
1304
1207
|
|
|
1305
|
-
export declare const RefreshTokenKey
|
|
1208
|
+
export declare const RefreshTokenKey: string;
|
|
1306
1209
|
|
|
1307
|
-
/**
|
|
1308
|
-
* 国际站峰会注册
|
|
1309
|
-
* @param data
|
|
1310
|
-
* @returns
|
|
1311
|
-
*/
|
|
1312
1210
|
export declare function registerApi(data: any): Promise<any>;
|
|
1313
1211
|
|
|
1314
|
-
/**
|
|
1315
|
-
* 使用第三方应用注册用户公司
|
|
1316
|
-
* @param data
|
|
1317
|
-
* @returns
|
|
1318
|
-
*/
|
|
1319
1212
|
export declare function registerByThirdPartyApi(data: any): Promise<any>;
|
|
1320
1213
|
|
|
1321
|
-
/**
|
|
1322
|
-
* 用户注册加入公司
|
|
1323
|
-
* @param data
|
|
1324
|
-
* @returns
|
|
1325
|
-
*/
|
|
1326
1214
|
export declare function registerJoinCompanyApi(data: any): Promise<any>;
|
|
1327
1215
|
|
|
1328
|
-
/**
|
|
1329
|
-
* 微信二维码登录用户注册加入公司 🍉
|
|
1330
|
-
* @param data
|
|
1331
|
-
* @returns
|
|
1332
|
-
*/
|
|
1333
1216
|
export declare function registerJoinCompanyBindWechatApi(data: any): Promise<any>;
|
|
1334
1217
|
|
|
1335
|
-
/**
|
|
1336
|
-
* 第三方应用注册加入公司
|
|
1337
|
-
* @param data
|
|
1338
|
-
* @returns
|
|
1339
|
-
*/
|
|
1340
1218
|
export declare function registerJoinCompByThirdPartyApi(data: any): Promise<any>;
|
|
1341
1219
|
|
|
1342
|
-
/**
|
|
1343
|
-
* 微信二维码登录注册用户公司
|
|
1344
|
-
* @param data
|
|
1345
|
-
* @returns
|
|
1346
|
-
*/
|
|
1347
1220
|
export declare function registerUserCompBindWechatApi(data: any): Promise<any>;
|
|
1348
1221
|
|
|
1349
|
-
export declare const RememberMeAccountKey
|
|
1222
|
+
export declare const RememberMeAccountKey: string;
|
|
1350
1223
|
|
|
1351
|
-
export declare const RememberMePasswordKey
|
|
1224
|
+
export declare const RememberMePasswordKey: string;
|
|
1352
1225
|
|
|
1353
1226
|
export declare interface reportNewTypeData {
|
|
1354
1227
|
reportData: string;
|
|
@@ -1379,22 +1252,10 @@ declare interface RequestOptions {
|
|
|
1379
1252
|
fetch?: typeof fetch;
|
|
1380
1253
|
}
|
|
1381
1254
|
|
|
1382
|
-
/**
|
|
1383
|
-
* 重置 session
|
|
1384
|
-
*/
|
|
1385
1255
|
export declare function resetAuthSessionItems(): void;
|
|
1386
1256
|
|
|
1387
|
-
/**
|
|
1388
|
-
* 重置 GIO 相关 session
|
|
1389
|
-
* @returns
|
|
1390
|
-
*/
|
|
1391
1257
|
export declare function resetGioSessionItems(): void;
|
|
1392
1258
|
|
|
1393
|
-
/**
|
|
1394
|
-
* 重置密码
|
|
1395
|
-
* @param data
|
|
1396
|
-
* @returns
|
|
1397
|
-
*/
|
|
1398
1259
|
export declare function resetPasswordApi(data: any): Promise<any>;
|
|
1399
1260
|
|
|
1400
1261
|
/**
|
|
@@ -1481,11 +1342,6 @@ export declare interface SearchWithScopeParams extends SearchByNameParams {
|
|
|
1481
1342
|
provinceId?: number;
|
|
1482
1343
|
}
|
|
1483
1344
|
|
|
1484
|
-
/**
|
|
1485
|
-
* 发送邮箱验证码
|
|
1486
|
-
* @param data
|
|
1487
|
-
* @returns
|
|
1488
|
-
*/
|
|
1489
1345
|
export declare function sendEmailCodeApi(data: {
|
|
1490
1346
|
target: string;
|
|
1491
1347
|
countryId?: number;
|
|
@@ -1493,11 +1349,6 @@ export declare function sendEmailCodeApi(data: {
|
|
|
1493
1349
|
uuid?: string;
|
|
1494
1350
|
}): Promise<any>;
|
|
1495
1351
|
|
|
1496
|
-
/**
|
|
1497
|
-
* 发送手机验证码
|
|
1498
|
-
* @param data
|
|
1499
|
-
* @returns
|
|
1500
|
-
*/
|
|
1501
1352
|
export declare function sendMobileCodeApi(data: {
|
|
1502
1353
|
target: string;
|
|
1503
1354
|
countryId?: number;
|
|
@@ -1505,10 +1356,6 @@ export declare function sendMobileCodeApi(data: {
|
|
|
1505
1356
|
uuid?: string;
|
|
1506
1357
|
}): Promise<any>;
|
|
1507
1358
|
|
|
1508
|
-
/**
|
|
1509
|
-
* 全局设置 session
|
|
1510
|
-
* @param data
|
|
1511
|
-
*/
|
|
1512
1359
|
export declare function setAuthSessionItems(data: {
|
|
1513
1360
|
activityCode?: string | null;
|
|
1514
1361
|
referenceUserId?: string | null;
|
|
@@ -1521,10 +1368,6 @@ export declare function setAuthSessionItems(data: {
|
|
|
1521
1368
|
compKey?: string | null;
|
|
1522
1369
|
}): void;
|
|
1523
1370
|
|
|
1524
|
-
/**
|
|
1525
|
-
* 全局设置 GIO 相关 session
|
|
1526
|
-
* @param data
|
|
1527
|
-
*/
|
|
1528
1371
|
export declare function setGioSessionItems(data: {
|
|
1529
1372
|
registerEntry?: string | null;
|
|
1530
1373
|
}): void;
|
|
@@ -1547,6 +1390,7 @@ export declare interface SharedConfig {
|
|
|
1547
1390
|
linePath: string;
|
|
1548
1391
|
allLinePath: string;
|
|
1549
1392
|
appId?: string;
|
|
1393
|
+
commonKeys?: Partial<CommonKeysConfig>;
|
|
1550
1394
|
}
|
|
1551
1395
|
|
|
1552
1396
|
/**
|
|
@@ -1569,7 +1413,7 @@ export declare function slideGetApi(data: {
|
|
|
1569
1413
|
ts: number;
|
|
1570
1414
|
}): Promise<any>;
|
|
1571
1415
|
|
|
1572
|
-
declare interface ThirdPartyInfo {
|
|
1416
|
+
export declare interface ThirdPartyInfo {
|
|
1573
1417
|
thirdPartyEmail: string;
|
|
1574
1418
|
thirdPartyId: string;
|
|
1575
1419
|
thirdPartyType: string;
|
|
@@ -1577,7 +1421,14 @@ declare interface ThirdPartyInfo {
|
|
|
1577
1421
|
[property: string]: any;
|
|
1578
1422
|
}
|
|
1579
1423
|
|
|
1580
|
-
declare interface
|
|
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 {
|
|
1581
1432
|
/**
|
|
1582
1433
|
* 手机邮箱匹配列表 (修正为数组)
|
|
1583
1434
|
*/
|
|
@@ -1601,7 +1452,7 @@ declare interface ThirdResponseData {
|
|
|
1601
1452
|
[property: string]: any;
|
|
1602
1453
|
}
|
|
1603
1454
|
|
|
1604
|
-
declare interface ThirdResponseMobileEmailList {
|
|
1455
|
+
export declare interface ThirdResponseMobileEmailList {
|
|
1605
1456
|
account: string;
|
|
1606
1457
|
cityId: number;
|
|
1607
1458
|
cityNameCn: string;
|
|
@@ -1631,10 +1482,7 @@ export declare interface TokenData {
|
|
|
1631
1482
|
refreshTokenExpireIn?: number;
|
|
1632
1483
|
}
|
|
1633
1484
|
|
|
1634
|
-
|
|
1635
|
-
* 2. 常量定义 (补全所有业务 Key)
|
|
1636
|
-
*/
|
|
1637
|
-
export declare const TokenKey = "JC-JAVA-Token-Root";
|
|
1485
|
+
export declare const TokenKey: string;
|
|
1638
1486
|
|
|
1639
1487
|
export declare function toSafeHeaderValue(value: string): string;
|
|
1640
1488
|
|
|
@@ -1654,27 +1502,12 @@ export declare interface UnifiedItem {
|
|
|
1654
1502
|
raw?: any;
|
|
1655
1503
|
}
|
|
1656
1504
|
|
|
1657
|
-
/**
|
|
1658
|
-
* 获取用户信息
|
|
1659
|
-
* @param data
|
|
1660
|
-
* @returns
|
|
1661
|
-
*/
|
|
1662
1505
|
export declare function userCompPermsApi(data: any): Promise<any>;
|
|
1663
1506
|
|
|
1664
|
-
/**
|
|
1665
|
-
* 验证账号是否存在 /auth/validateAccountExist
|
|
1666
|
-
* @param data
|
|
1667
|
-
* @returns
|
|
1668
|
-
*/
|
|
1669
1507
|
export declare function validateAccountExistApi(data: {
|
|
1670
1508
|
target: string;
|
|
1671
1509
|
}): Promise<any>;
|
|
1672
1510
|
|
|
1673
|
-
/**
|
|
1674
|
-
* 校验注册公司是否重名
|
|
1675
|
-
* @param data
|
|
1676
|
-
* @returns
|
|
1677
|
-
*/
|
|
1678
1511
|
export declare function validateCompanyApi(data: {
|
|
1679
1512
|
countryId: number;
|
|
1680
1513
|
cityId: number;
|