@jctrans-materials/shared 1.0.35-beta.0 → 1.0.36-beta.0
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 +1 -1
- package/dist/index.d.ts +63 -1
- package/dist/index.esm.js +516 -500
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -58,6 +58,11 @@ declare interface CarrierRequestPayload {
|
|
|
58
58
|
[key: string]: any;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
+
/**
|
|
62
|
+
* 检查账号是否存在(忘记密码专用)
|
|
63
|
+
* @param data
|
|
64
|
+
* @returns
|
|
65
|
+
*/
|
|
61
66
|
export declare function checkAccountExistsFPApi(data: any): Promise<any>;
|
|
62
67
|
|
|
63
68
|
/**
|
|
@@ -148,12 +153,27 @@ export declare const ExpiresInKey = "JC-Expires-In";
|
|
|
148
153
|
|
|
149
154
|
export declare const ExpiresInTimeKey = "JC-Expires-Time-In";
|
|
150
155
|
|
|
156
|
+
/**
|
|
157
|
+
* 获取字典列表
|
|
158
|
+
* @param data
|
|
159
|
+
* @returns
|
|
160
|
+
*/
|
|
151
161
|
export declare function findDictAPi(data?: {
|
|
152
162
|
size: number;
|
|
153
163
|
}): Promise<any>;
|
|
154
164
|
|
|
165
|
+
/**
|
|
166
|
+
* 根据手机邮箱获取重复列表
|
|
167
|
+
* @param data
|
|
168
|
+
* @returns
|
|
169
|
+
*/
|
|
155
170
|
export declare function findListByMobileEmailApi(data: any): Promise<any>;
|
|
156
171
|
|
|
172
|
+
/**
|
|
173
|
+
* 查询区号列表
|
|
174
|
+
* @param data
|
|
175
|
+
* @returns
|
|
176
|
+
*/
|
|
157
177
|
export declare function findPAreaCodeAPi(data?: {
|
|
158
178
|
size: number;
|
|
159
179
|
}): Promise<any>;
|
|
@@ -255,8 +275,10 @@ export declare function getJoinCompanyApi(data: any): Promise<any>;
|
|
|
255
275
|
*/
|
|
256
276
|
export declare function getLanguage(): string | undefined;
|
|
257
277
|
|
|
258
|
-
|
|
278
|
+
/**
|
|
259
279
|
* 获取本地 IP 数据
|
|
280
|
+
* @param data
|
|
281
|
+
* @returns
|
|
260
282
|
*/
|
|
261
283
|
export declare function getLocalIpDataApi(data: any): Promise<any>;
|
|
262
284
|
|
|
@@ -346,6 +368,11 @@ export declare const getSharedConfig: () => {
|
|
|
346
368
|
*/
|
|
347
369
|
export declare function getToken(): string | undefined;
|
|
348
370
|
|
|
371
|
+
/**
|
|
372
|
+
* 获取用户手机号邮箱信息
|
|
373
|
+
* @param data
|
|
374
|
+
* @returns
|
|
375
|
+
*/
|
|
349
376
|
export declare function getUserInfoApi(data: any): Promise<any>;
|
|
350
377
|
|
|
351
378
|
export declare const HasLoginKey = "hasLogin";
|
|
@@ -629,6 +656,11 @@ export declare interface LocationUnifiedItem {
|
|
|
629
656
|
raw?: any;
|
|
630
657
|
}
|
|
631
658
|
|
|
659
|
+
/**
|
|
660
|
+
* 用户登录
|
|
661
|
+
* @param loginData
|
|
662
|
+
* @returns
|
|
663
|
+
*/
|
|
632
664
|
export declare function loginApi(loginData: LoginDataParams): Promise<IResponse<ApiResponse<LoginResponseData>>>;
|
|
633
665
|
|
|
634
666
|
/**
|
|
@@ -638,8 +670,18 @@ export declare function loginApi(loginData: LoginDataParams): Promise<IResponse<
|
|
|
638
670
|
*/
|
|
639
671
|
export declare function loginByEmailOrMobileCodeApi(data: any): Promise<IResponse<ApiResponse<LoginResponseData>>>;
|
|
640
672
|
|
|
673
|
+
/**
|
|
674
|
+
* Facebook 登录
|
|
675
|
+
* @param data
|
|
676
|
+
* @returns
|
|
677
|
+
*/
|
|
641
678
|
export declare function loginByFacebookApi(data: any): Promise<IResponse<ApiResponse<ThirdResponseData>>>;
|
|
642
679
|
|
|
680
|
+
/**
|
|
681
|
+
* LinkedIn 登录
|
|
682
|
+
* @param data
|
|
683
|
+
* @returns
|
|
684
|
+
*/
|
|
643
685
|
export declare function loginByLinkedinApi(data: any): Promise<IResponse<ApiResponse<ThirdResponseData>>>;
|
|
644
686
|
|
|
645
687
|
/**
|
|
@@ -730,6 +772,11 @@ export declare const RefreshTokenKey = "JC-Refresh-Token";
|
|
|
730
772
|
*/
|
|
731
773
|
export declare function registerApi(data: any): Promise<any>;
|
|
732
774
|
|
|
775
|
+
/**
|
|
776
|
+
* 使用第三方应用注册用户公司
|
|
777
|
+
* @param data
|
|
778
|
+
* @returns
|
|
779
|
+
*/
|
|
733
780
|
export declare function registerByThirdPartyApi(data: any): Promise<any>;
|
|
734
781
|
|
|
735
782
|
/**
|
|
@@ -798,6 +845,11 @@ declare interface RequestOptions {
|
|
|
798
845
|
*/
|
|
799
846
|
export declare function resetAuthSessionItems(): void;
|
|
800
847
|
|
|
848
|
+
/**
|
|
849
|
+
* 重置密码
|
|
850
|
+
* @param data
|
|
851
|
+
* @returns
|
|
852
|
+
*/
|
|
801
853
|
export declare function resetPasswordApi(data: any): Promise<any>;
|
|
802
854
|
|
|
803
855
|
/**
|
|
@@ -934,11 +986,21 @@ export declare interface SharedConfig {
|
|
|
934
986
|
appId?: string;
|
|
935
987
|
}
|
|
936
988
|
|
|
989
|
+
/**
|
|
990
|
+
* 滑动或者点选验证
|
|
991
|
+
* @param data
|
|
992
|
+
* @returns
|
|
993
|
+
*/
|
|
937
994
|
export declare function slideCheckApi(data: {
|
|
938
995
|
pointJson: string;
|
|
939
996
|
uuid: string;
|
|
940
997
|
}): Promise<any>;
|
|
941
998
|
|
|
999
|
+
/**
|
|
1000
|
+
* 获取验证图片 以及token
|
|
1001
|
+
* @param data
|
|
1002
|
+
* @returns
|
|
1003
|
+
*/
|
|
942
1004
|
export declare function slideGetApi(data: {
|
|
943
1005
|
clientUid: string;
|
|
944
1006
|
ts: number;
|