@opexa/portal-sdk 0.7.0 → 0.8.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/README.md +1623 -1623
- package/dist/index.cjs +12 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -16
- package/dist/index.d.ts +13 -16
- package/dist/index.js +12 -11
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -5630,6 +5630,18 @@ var Sdk = class {
|
|
|
5630
5630
|
});
|
|
5631
5631
|
return res2.ok ? { ok: true, data: { id } } : res2;
|
|
5632
5632
|
}
|
|
5633
|
+
if (input.type === "MOBILE_NUMBER_AND_PASSWORD") {
|
|
5634
|
+
const res2 = await this.accountService.registerMemberAccountByMobileNumber({
|
|
5635
|
+
input: {
|
|
5636
|
+
id,
|
|
5637
|
+
mobileNumber: addAreaCode(input.mobileNumber, await this.locale),
|
|
5638
|
+
password: await sha256(input.password),
|
|
5639
|
+
realName: input.realName
|
|
5640
|
+
},
|
|
5641
|
+
mobileNumberVerificationCode: input.verificationCode
|
|
5642
|
+
});
|
|
5643
|
+
return res2.ok ? { ok: true, data: { id } } : res2;
|
|
5644
|
+
}
|
|
5633
5645
|
if (input.type === "NAME_AND_PASSWORD") {
|
|
5634
5646
|
const res2 = await this.accountService.registerMemberAccount__next({
|
|
5635
5647
|
input: {
|
|
@@ -5780,17 +5792,6 @@ var Sdk = class {
|
|
|
5780
5792
|
data: res.data ? this.transformer.transform.wallet(res.data) : null
|
|
5781
5793
|
};
|
|
5782
5794
|
}
|
|
5783
|
-
async registerMemberAccountByMobileNumber(input) {
|
|
5784
|
-
return await this.accountService.registerMemberAccountByMobileNumber({
|
|
5785
|
-
input: {
|
|
5786
|
-
id: input.id,
|
|
5787
|
-
mobileNumber: addAreaCode(input.mobileNumber, await this.locale),
|
|
5788
|
-
password: await sha256(input.password),
|
|
5789
|
-
realName: input.realName
|
|
5790
|
-
},
|
|
5791
|
-
mobileNumberVerificationCode: input.mobileNumberVerificationCode
|
|
5792
|
-
});
|
|
5793
|
-
}
|
|
5794
5795
|
/**/
|
|
5795
5796
|
/*+----------------------------------------+*/
|
|
5796
5797
|
/*+ ANNOUNCEMENT +*/
|