@jctrans-materials/shared 1.0.21 → 1.0.22

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.
@@ -1,42 +1,143 @@
1
1
  import { ApiResponse, IResponse, LoginDataParams, LoginResponseData, ThirdResponseData } from './type';
2
+ /**
3
+ * 验证账号是否存在 /auth/validateAccountExist
4
+ * @param data
5
+ * @returns
6
+ */
2
7
  export declare function validateAccountExistApi(data: {
3
8
  target: string;
4
9
  }): Promise<any>;
10
+ /**
11
+ * 发送邮箱验证码
12
+ * @param data
13
+ * @returns
14
+ */
5
15
  export declare function sendEmailCodeApi(data: {
6
16
  target: string;
7
17
  countryId?: number;
8
18
  account?: string;
9
19
  uuid?: string;
10
20
  }): Promise<any>;
21
+ /**
22
+ * 发送手机验证码
23
+ * @param data
24
+ * @returns
25
+ */
11
26
  export declare function sendMobileCodeApi(data: {
12
27
  target: string;
13
28
  countryId?: number;
14
29
  account?: string;
15
30
  uuid?: string;
16
31
  }): Promise<any>;
17
- export declare function checkEmailCodeApi(data: any): Promise<any>;
18
- export declare function checkMobileCodeApi(data: any): Promise<any>;
32
+ /**
33
+ * 验证邮件验证码
34
+ * @param data
35
+ * @returns
36
+ */
37
+ export declare function checkEmailCodeApi(data: {
38
+ uuid: string;
39
+ code: string;
40
+ target: string;
41
+ }): Promise<any>;
42
+ /**
43
+ * 验证手机验证码
44
+ * @param data
45
+ * @returns
46
+ */
47
+ export declare function checkMobileCodeApi(data: {
48
+ code: string;
49
+ uuid: string;
50
+ target: string;
51
+ }): Promise<any>;
52
+ /**
53
+ * 校验注册公司是否重名
54
+ * @param data
55
+ * @returns
56
+ */
19
57
  export declare function validateCompanyApi(data: {
20
58
  countryId: number;
21
59
  cityId: number;
22
60
  compNameCn?: string;
23
61
  compNameEn?: string;
24
62
  }): Promise<any>;
63
+ /**
64
+ * 用户注册加入公司
65
+ * @param data
66
+ * @returns
67
+ */
25
68
  export declare function registerJoinCompanyApi(data: any): Promise<any>;
69
+ /**
70
+ * 第三方应用注册加入公司
71
+ * @param data
72
+ * @returns
73
+ */
26
74
  export declare function registerJoinCompByThirdPartyApi(data: any): Promise<any>;
75
+ /**
76
+ * 获取用户加入公司信息
77
+ * @param data
78
+ * @returns
79
+ */
27
80
  export declare function getJoinCompanyApi(data: any): Promise<any>;
81
+ /**
82
+ * 跳转其他站
83
+ * @param appId
84
+ * @param path
85
+ * @returns
86
+ */
28
87
  export declare function getRedirectPathApi(appId: string, path: string): Promise<any>;
88
+ /**
89
+ * 国际站峰会注册
90
+ * @param data
91
+ * @returns
92
+ */
29
93
  export declare function registerApi(data: any): Promise<any>;
94
+ /**
95
+ * 微信二维码登录注册用户公司
96
+ * @param data
97
+ * @returns
98
+ */
30
99
  export declare function registerUserCompBindWechatApi(data: any): Promise<any>;
100
+ /**
101
+ * 微信二维码登录用户注册加入公司 🍉
102
+ * @param data
103
+ * @returns
104
+ */
31
105
  export declare function registerJoinCompanyBindWechatApi(data: any): Promise<any>;
106
+ /**
107
+ * 微信二维码登录绑定用户(账号密码)
108
+ * @param data
109
+ * @returns
110
+ */
111
+ export declare function loginPwdBindWechatApi(data: any): Promise<any>;
112
+ /**
113
+ * 微信二维码登录绑定用户(验证码)
114
+ * @param data
115
+ * @returns
116
+ */
117
+ export declare function loginCodeBindWechatApi(data: any): Promise<any>;
32
118
  export declare function loginApi(loginData: LoginDataParams): Promise<IResponse<ApiResponse<LoginResponseData>>>;
119
+ /**
120
+ * 验证码登录注册
121
+ * @param data
122
+ * @returns
123
+ */
33
124
  export declare function loginByEmailOrMobileCodeApi(data: any): Promise<IResponse<ApiResponse<LoginResponseData>>>;
125
+ /**
126
+ * 微信二维码登录(1s轮询)
127
+ * @param data
128
+ * @returns
129
+ */
34
130
  export declare function loginByQrCode(data: {
35
131
  uniqueCode: string;
36
132
  appId: string;
37
133
  redirectPath: string;
38
134
  kick: boolean;
39
135
  }): Promise<any>;
136
+ /**
137
+ * 获取登录微信二维码
138
+ * @param data
139
+ * @returns
140
+ */
40
141
  export declare function getLoginQrCode(data?: {}): Promise<any>;
41
142
  /**
42
143
  * 1-1-2.TGC自动登录
@@ -61,11 +162,26 @@ export declare function completeCompRedirectApi(data: any): Promise<any>;
61
162
  */
62
163
  export declare function completeJoinCompanyRedirectApi(data: any): Promise<any>;
63
164
  export declare function checkAccountExistsFPApi(data: any): Promise<any>;
165
+ /**
166
+ * 忘记密码发送验证码
167
+ * @param data
168
+ * @returns
169
+ */
64
170
  export declare function getMEVCodeApi(data: any): Promise<any>;
65
171
  export declare function resetPasswordApi(data: any): Promise<any>;
66
172
  export declare function loginByFacebookApi(data: any): Promise<IResponse<ApiResponse<ThirdResponseData>>>;
67
173
  export declare function loginByLinkedinApi(data: any): Promise<IResponse<ApiResponse<ThirdResponseData>>>;
174
+ /**
175
+ * 验证密码绑定第三方应用
176
+ * @param data
177
+ * @returns
178
+ */
68
179
  export declare function bindThirdPartyByPwdApi(data: any): Promise<any>;
180
+ /**
181
+ * 验证验证码绑定第三方应用
182
+ * @param data
183
+ * @returns
184
+ */
69
185
  export declare function bindThirdPartyByCodeApi(data: any): Promise<any>;
70
186
  export declare function registerByThirdPartyApi(data: any): Promise<any>;
71
187
  export declare function findListByMobileEmailApi(data: any): Promise<any>;
@@ -75,6 +191,10 @@ export declare function findListByMobileEmailApi(data: any): Promise<any>;
75
191
  * @returns
76
192
  */
77
193
  export declare function inviteJoinGetCompApi(data: any): Promise<any>;
194
+ /**
195
+ * 全局设置 session
196
+ * @param data
197
+ */
78
198
  export declare function setAuthSessionItems(data: {
79
199
  activityCode?: string | null;
80
200
  referenceUserId?: string | null;
@@ -86,7 +206,14 @@ export declare function setAuthSessionItems(data: {
86
206
  registerType?: string | null;
87
207
  compKey?: string | null;
88
208
  }): void;
209
+ /**
210
+ * 重置 session
211
+ */
89
212
  export declare function resetAuthSessionItems(): void;
213
+ /**
214
+ * 全局获取 session
215
+ * @returns
216
+ */
90
217
  export declare function getAuthSessionItems(): {
91
218
  activityCode: string | null;
92
219
  referenceUserId: string | null;