@opexa/portal-sdk 0.42.0 → 0.42.2
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 +1634 -1634
- package/dist/index.cjs +4 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -254,7 +254,7 @@ type UpdateMemberVerificationError = 'FileDoesNotExistError' | 'FileNotReadyErro
|
|
|
254
254
|
type SubmitMemberVerificationError$1 = 'VerificationDataIncompleteError' | 'MemberVerificationDoesNotExistError' | 'MemberVerificationAlreadyApprovedError';
|
|
255
255
|
type LoginChannel$1 = 'IOS' | 'ANDROID';
|
|
256
256
|
type CreateSessionError = 'AccountNotFoundError' | 'AccountBlacklistedError' | 'InvalidReCAPTCHAResponseError' | 'AccountSuspendedError';
|
|
257
|
-
type RefreshSessionError$1 = 'InvalidTokenError' | 'AccountBlacklistedError' | 'AccountSuspendedError' | 'SessionExpiredError';
|
|
257
|
+
type RefreshSessionError$1 = 'InvalidTokenError' | 'AccountBlacklistedError' | 'AccountSuspendedError' | 'SessionExpiredError' | 'VerificationLockedError';
|
|
258
258
|
interface SecurityQuestionAuthenticateInput$1 {
|
|
259
259
|
type: 'SECURITY_QUESTION';
|
|
260
260
|
token: string;
|
|
@@ -645,6 +645,9 @@ interface MobileNumberCreateAccountInput {
|
|
|
645
645
|
type: 'MOBILE_NUMBER';
|
|
646
646
|
id?: string;
|
|
647
647
|
mobileNumber: string;
|
|
648
|
+
realName?: string;
|
|
649
|
+
dateOfBirth?: string;
|
|
650
|
+
branchCode?: string;
|
|
648
651
|
btag?: string;
|
|
649
652
|
domain?: string;
|
|
650
653
|
referralCode?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -254,7 +254,7 @@ type UpdateMemberVerificationError = 'FileDoesNotExistError' | 'FileNotReadyErro
|
|
|
254
254
|
type SubmitMemberVerificationError$1 = 'VerificationDataIncompleteError' | 'MemberVerificationDoesNotExistError' | 'MemberVerificationAlreadyApprovedError';
|
|
255
255
|
type LoginChannel$1 = 'IOS' | 'ANDROID';
|
|
256
256
|
type CreateSessionError = 'AccountNotFoundError' | 'AccountBlacklistedError' | 'InvalidReCAPTCHAResponseError' | 'AccountSuspendedError';
|
|
257
|
-
type RefreshSessionError$1 = 'InvalidTokenError' | 'AccountBlacklistedError' | 'AccountSuspendedError' | 'SessionExpiredError';
|
|
257
|
+
type RefreshSessionError$1 = 'InvalidTokenError' | 'AccountBlacklistedError' | 'AccountSuspendedError' | 'SessionExpiredError' | 'VerificationLockedError';
|
|
258
258
|
interface SecurityQuestionAuthenticateInput$1 {
|
|
259
259
|
type: 'SECURITY_QUESTION';
|
|
260
260
|
token: string;
|
|
@@ -645,6 +645,9 @@ interface MobileNumberCreateAccountInput {
|
|
|
645
645
|
type: 'MOBILE_NUMBER';
|
|
646
646
|
id?: string;
|
|
647
647
|
mobileNumber: string;
|
|
648
|
+
realName?: string;
|
|
649
|
+
dateOfBirth?: string;
|
|
650
|
+
branchCode?: string;
|
|
648
651
|
btag?: string;
|
|
649
652
|
domain?: string;
|
|
650
653
|
referralCode?: string;
|
package/dist/index.js
CHANGED
|
@@ -5252,7 +5252,7 @@ var SessionManager = class {
|
|
|
5252
5252
|
this.refreshing = false;
|
|
5253
5253
|
if (!res.ok) {
|
|
5254
5254
|
this.logger.error(`Failed to refresh session: ${res.error.message}`);
|
|
5255
|
-
if (res.error.name === "InvalidTokenError" || res.error.name === "AccountBlacklistedError") {
|
|
5255
|
+
if (res.error.name === "InvalidTokenError" || res.error.name === "AccountBlacklistedError" || res.error.name === "VerificationLockedError") {
|
|
5256
5256
|
localStorage.removeItem(this.storageKey);
|
|
5257
5257
|
return {
|
|
5258
5258
|
ok: false,
|
|
@@ -7512,6 +7512,9 @@ var Sdk = class {
|
|
|
7512
7512
|
btag: input.btag,
|
|
7513
7513
|
domain: input.domain,
|
|
7514
7514
|
mobileNumber: addAreaCode(input.mobileNumber, await this.locale),
|
|
7515
|
+
realName: input.realName,
|
|
7516
|
+
birthDay: input.dateOfBirth,
|
|
7517
|
+
branchCode: input.branchCode,
|
|
7515
7518
|
...this.cxd && {
|
|
7516
7519
|
cellxpertCxd: this.cxd
|
|
7517
7520
|
}
|