@pisell/pisellos 0.0.336 → 0.0.337
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 +4 -0
- package/dist/solution/RegisterAndLogin/index.js +580 -507
- 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 +4 -0
- package/lib/solution/RegisterAndLogin/index.js +79 -28
- 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',
|
|
@@ -49,6 +49,10 @@ export declare class RegisterAndLoginImpl extends BaseModule implements Module {
|
|
|
49
49
|
* 发送邮箱验证码
|
|
50
50
|
*/
|
|
51
51
|
sendEmailVerificationCode(params: SendVerificationCodeParams): Promise<ApiResponse>;
|
|
52
|
+
/**
|
|
53
|
+
* 发送邮箱登录验证码
|
|
54
|
+
*/
|
|
55
|
+
sendEmailLoginCode(params: SendVerificationCodeParams): Promise<ApiResponse>;
|
|
52
56
|
/**
|
|
53
57
|
* 发送手机号注册验证码
|
|
54
58
|
*/
|