@pisell/pisellos 0.0.336 → 0.0.338
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/solution/RegisterAndLogin/config.d.ts +1 -0
- package/dist/solution/RegisterAndLogin/config.js +23 -1
- package/dist/solution/RegisterAndLogin/index.d.ts +9 -0
- package/dist/solution/RegisterAndLogin/index.js +710 -542
- package/dist/solution/RegisterAndLogin/types.d.ts +1 -1
- package/lib/solution/RegisterAndLogin/config.d.ts +1 -0
- package/lib/solution/RegisterAndLogin/config.js +19 -1
- package/lib/solution/RegisterAndLogin/index.d.ts +9 -0
- package/lib/solution/RegisterAndLogin/index.js +132 -44
- package/lib/solution/RegisterAndLogin/types.d.ts +1 -1
- package/package.json +1 -1
|
@@ -36,6 +36,17 @@ var onlineStoreConfig = {
|
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
|
+
sendEmailLoginCode: {
|
|
40
|
+
url: '/auth/send-email-code',
|
|
41
|
+
method: 'POST',
|
|
42
|
+
transformParams: function transformParams(params) {
|
|
43
|
+
return {
|
|
44
|
+
email: params.target,
|
|
45
|
+
purpose: params.purpose,
|
|
46
|
+
type: params.type
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
},
|
|
39
50
|
sendSmsRegisterCode: {
|
|
40
51
|
url: '/auth/mobile/sms-register',
|
|
41
52
|
method: 'POST',
|
|
@@ -102,7 +113,7 @@ var onlineStoreConfig = {
|
|
|
102
113
|
}
|
|
103
114
|
},
|
|
104
115
|
resendEmailRegisterLink: {
|
|
105
|
-
url: '/auth/email/link/
|
|
116
|
+
url: '/auth/email/link/resend_register_link',
|
|
106
117
|
method: 'POST',
|
|
107
118
|
transformParams: function transformParams(params) {
|
|
108
119
|
return {
|
|
@@ -355,6 +366,17 @@ var defaultConfig = {
|
|
|
355
366
|
};
|
|
356
367
|
}
|
|
357
368
|
},
|
|
369
|
+
sendEmailLoginCode: {
|
|
370
|
+
url: '/auth/send-email-code',
|
|
371
|
+
method: 'POST',
|
|
372
|
+
transformParams: function transformParams(params) {
|
|
373
|
+
return {
|
|
374
|
+
email: params.target,
|
|
375
|
+
purpose: params.purpose,
|
|
376
|
+
type: params.type
|
|
377
|
+
};
|
|
378
|
+
}
|
|
379
|
+
},
|
|
358
380
|
sendSmsRegisterCode: {
|
|
359
381
|
url: '/auth/send-sms-register',
|
|
360
382
|
method: 'POST',
|
|
@@ -17,6 +17,7 @@ export declare class RegisterAndLoginImpl extends BaseModule implements Module {
|
|
|
17
17
|
private apiCaller;
|
|
18
18
|
private otherParams;
|
|
19
19
|
private channel;
|
|
20
|
+
private countriesCache;
|
|
20
21
|
constructor(name?: string, version?: string);
|
|
21
22
|
/**
|
|
22
23
|
* 重新发送邮箱注册链接
|
|
@@ -49,6 +50,10 @@ export declare class RegisterAndLoginImpl extends BaseModule implements Module {
|
|
|
49
50
|
* 发送邮箱验证码
|
|
50
51
|
*/
|
|
51
52
|
sendEmailVerificationCode(params: SendVerificationCodeParams): Promise<ApiResponse>;
|
|
53
|
+
/**
|
|
54
|
+
* 发送邮箱登录验证码
|
|
55
|
+
*/
|
|
56
|
+
sendEmailLoginCode(params: SendVerificationCodeParams): Promise<ApiResponse>;
|
|
52
57
|
/**
|
|
53
58
|
* 发送手机号注册验证码
|
|
54
59
|
*/
|
|
@@ -175,5 +180,9 @@ export declare class RegisterAndLoginImpl extends BaseModule implements Module {
|
|
|
175
180
|
* 获取国家区号列表
|
|
176
181
|
*/
|
|
177
182
|
getCountries(): Promise<CountryInfo[]>;
|
|
183
|
+
/**
|
|
184
|
+
* 异步更新国家缓存数据
|
|
185
|
+
*/
|
|
186
|
+
private updateCountriesCache;
|
|
178
187
|
destroy(): Promise<void>;
|
|
179
188
|
}
|