@opexa/portal-sdk 0.8.0 → 0.8.1
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 +13 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -5
- package/dist/index.d.ts +10 -5
- package/dist/index.js +13 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2362,7 +2362,14 @@ var AccountService = class {
|
|
|
2362
2362
|
return res.ok ? { ok: true, data: res.data.pointsClubSettings } : res;
|
|
2363
2363
|
}
|
|
2364
2364
|
async registerMemberAccountByMobileNumber(variables) {
|
|
2365
|
-
const
|
|
2365
|
+
const { reCAPTCHAResponse, ...others } = variables;
|
|
2366
|
+
const res = await this.client.request(REGISTER_MEMBER_ACCOUNT_BY_MOBILE_NUMBER_MUTATION, others, {
|
|
2367
|
+
headers: {
|
|
2368
|
+
...variables.reCAPTCHAResponse && {
|
|
2369
|
+
"google-recaptcha-response": reCAPTCHAResponse
|
|
2370
|
+
}
|
|
2371
|
+
}
|
|
2372
|
+
});
|
|
2366
2373
|
if (!res.ok) return res;
|
|
2367
2374
|
if (res.data.registerMemberAccountByMobileNumber) {
|
|
2368
2375
|
return {
|
|
@@ -5630,15 +5637,16 @@ var Sdk = class {
|
|
|
5630
5637
|
});
|
|
5631
5638
|
return res2.ok ? { ok: true, data: { id } } : res2;
|
|
5632
5639
|
}
|
|
5633
|
-
if (input.type === "
|
|
5640
|
+
if (input.type === "MOBILE_NUMBER_INR") {
|
|
5634
5641
|
const res2 = await this.accountService.registerMemberAccountByMobileNumber({
|
|
5635
5642
|
input: {
|
|
5636
5643
|
id,
|
|
5637
|
-
mobileNumber: addAreaCode(input.mobileNumber, await this.locale),
|
|
5638
5644
|
password: await sha256(input.password),
|
|
5639
|
-
realName: input.realName
|
|
5645
|
+
realName: input.realName,
|
|
5646
|
+
mobileNumber: addAreaCode(input.mobileNumber, await this.locale)
|
|
5640
5647
|
},
|
|
5641
|
-
mobileNumberVerificationCode: input.
|
|
5648
|
+
mobileNumberVerificationCode: input.mobileVerificationCode,
|
|
5649
|
+
reCAPTCHAResponse: input.reCAPTCHAResponse
|
|
5642
5650
|
});
|
|
5643
5651
|
return res2.ok ? { ok: true, data: { id } } : res2;
|
|
5644
5652
|
}
|