@opexa/portal-sdk 0.6.0 → 0.7.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/dist/index.cjs +55 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +20 -3
- package/dist/index.d.ts +20 -3
- package/dist/index.js +55 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -229,6 +229,7 @@ type SendVerificationCodeError__Next$1 = 'NotReadyToSendVerficationCodeError' |
|
|
|
229
229
|
type VerifyMobileNumberError$1 = 'InvalidSMSVerificationCodeError' | 'MobileNumberAlreadyVerifiedError';
|
|
230
230
|
type CreateMemberVerificationError = 'FileDoesNotExistError' | 'FileNotReadyError' | 'MemberVerificationAlreadyExistsError';
|
|
231
231
|
type UpdateMemberVerificationError = 'FileDoesNotExistError' | 'FileNotReadyError' | 'MemberVerificationAlreadyApprovedError' | 'MemberVerificationDoesNotExistError';
|
|
232
|
+
type RegisterMemberAccountByMobileNumberError$1 = 'MobileNumberNotAvailableError' | 'InvalidSMSVerificationCodeError' | 'InvalidPlatformError';
|
|
232
233
|
type CreateSessionError = 'AccountNotFoundError' | 'AccountBlacklistedError' | 'InvalidReCAPTCHAResponseError' | 'AccountSuspendedError';
|
|
233
234
|
type RefreshSessionError$1 = 'InvalidTokenError' | 'AccountBlacklistedError' | 'AccountSuspendedError' | 'SessionExpiredError';
|
|
234
235
|
interface SecurityQuestionAuthenticateInput$1 {
|
|
@@ -435,12 +436,17 @@ interface MayaSignInInput {
|
|
|
435
436
|
type: 'MAYA';
|
|
436
437
|
sessionId: string;
|
|
437
438
|
}
|
|
439
|
+
interface BiometricsSignInInput {
|
|
440
|
+
type: 'BIOMETRICS';
|
|
441
|
+
token: string;
|
|
442
|
+
}
|
|
438
443
|
type MayaSignInReturn = OperationResult<SignInError>;
|
|
439
444
|
type MobileNumberSignInReturn = OperationResult<SignInError>;
|
|
440
445
|
/** @deprecated use `SocialsSignInReturn` */
|
|
441
446
|
type TokenSignInReturn = OperationResult<SignInError>;
|
|
442
447
|
type SocialsSignInReturn = OperationResult<SignInError>;
|
|
443
448
|
type CabinetSignInReturn = OperationResult<SignInError>;
|
|
449
|
+
type BiometricsSignInReturn = OperationResult<SignInError>;
|
|
444
450
|
type NameAndPasswordSignInReturn = OperationResult<SignInError, {
|
|
445
451
|
'2FAEnabled': true;
|
|
446
452
|
authenticator: Authenticator;
|
|
@@ -448,9 +454,9 @@ type NameAndPasswordSignInReturn = OperationResult<SignInError, {
|
|
|
448
454
|
'2FAEnabled': false;
|
|
449
455
|
authenticator?: never;
|
|
450
456
|
}>;
|
|
451
|
-
type SignInInput = NameAndPasswordSignInInput | MobileNumberSignInInput | MayaSignInInput | TokenSignInInput | SocialsSignInInput | CabinetSignInInput;
|
|
457
|
+
type SignInInput = NameAndPasswordSignInInput | MobileNumberSignInInput | MayaSignInInput | TokenSignInInput | SocialsSignInInput | CabinetSignInInput | BiometricsSignInInput;
|
|
452
458
|
type SignInError = UnionAlias<CreateSessionError>;
|
|
453
|
-
type SignInReturn = NameAndPasswordSignInReturn | MobileNumberSignInReturn | MayaSignInReturn | TokenSignInReturn | SocialsSignInReturn | CabinetSignInReturn;
|
|
459
|
+
type SignInReturn = NameAndPasswordSignInReturn | MobileNumberSignInReturn | MayaSignInReturn | TokenSignInReturn | SocialsSignInReturn | CabinetSignInReturn | BiometricsSignInReturn;
|
|
454
460
|
type RefreshSessionError = UnionAlias<RefreshSessionError$1>;
|
|
455
461
|
interface SecurityQuestionAuthenticateInput extends SecurityQuestionAuthenticateInput$1 {
|
|
456
462
|
}
|
|
@@ -651,6 +657,15 @@ type SendVerificationCodeError__Next = UnionAlias<SendVerificationCodeError__Nex
|
|
|
651
657
|
type SendVerificationCodeReturn__Next = OperationResult<SendVerificationCodeError__Next>;
|
|
652
658
|
type VerifyMobileNumberError = UnionAlias<VerifyMobileNumberError$1>;
|
|
653
659
|
type VerifyMobileNumberReturn = OperationResult<VerifyMobileNumberError>;
|
|
660
|
+
interface RegisterMemberAccountByMobileNumberInput {
|
|
661
|
+
id: string;
|
|
662
|
+
mobileNumber: string;
|
|
663
|
+
password: string;
|
|
664
|
+
realName: string;
|
|
665
|
+
mobileNumberVerificationCode: string;
|
|
666
|
+
}
|
|
667
|
+
type RegisterMemberAccountByMobileNumberError = UnionAlias<RegisterMemberAccountByMobileNumberError$1>;
|
|
668
|
+
type RegisterMemberAccountByMobileNumberReturn = OperationResult<RegisterMemberAccountByMobileNumberError>;
|
|
654
669
|
type Currency = UnionAlias<Currency$1>;
|
|
655
670
|
interface Wallet {
|
|
656
671
|
id: string;
|
|
@@ -1480,6 +1495,7 @@ declare class Sdk {
|
|
|
1480
1495
|
signIn(input: TokenSignInInput): Promise<TokenSignInReturn>;
|
|
1481
1496
|
signIn(input: SocialsSignInInput): Promise<SocialsSignInReturn>;
|
|
1482
1497
|
signIn(input: CabinetSignInInput): Promise<CabinetSignInReturn>;
|
|
1498
|
+
signIn(input: BiometricsSignInInput): Promise<BiometricsSignInReturn>;
|
|
1483
1499
|
authenticate(input: AuthenticateInput): Promise<AuthenticateReturn>;
|
|
1484
1500
|
signOut(): Promise<void>;
|
|
1485
1501
|
watchSession(input: WatchSessionInput): () => void;
|
|
@@ -1511,6 +1527,7 @@ declare class Sdk {
|
|
|
1511
1527
|
sendVerificationCode(mobileNumber: string): Promise<SendVerificationCodeReturn>;
|
|
1512
1528
|
sendVerificationCode__next(input: SendVerificationCodeInput__Next): Promise<SendVerificationCodeReturn__Next>;
|
|
1513
1529
|
wallet(): Promise<WalletReturn>;
|
|
1530
|
+
registerMemberAccountByMobileNumber(input: RegisterMemberAccountByMobileNumberInput): Promise<RegisterMemberAccountByMobileNumberReturn>;
|
|
1514
1531
|
announcements(input?: AnnouncementsInput): Promise<AnnouncementsReturn>;
|
|
1515
1532
|
createWithdrawal(input: CreateWithdrawalInput): Promise<CreateWithdrawalReturn>;
|
|
1516
1533
|
withdrawalRecords(input?: WithdrawalRecordsInput): Promise<WithdrawalRecordsReturn>;
|
|
@@ -1576,4 +1593,4 @@ declare class Sdk {
|
|
|
1576
1593
|
private formatYmd;
|
|
1577
1594
|
}
|
|
1578
1595
|
|
|
1579
|
-
export { type Account, type AccountReturn, type AccountStatus, type AccountVerificationStatus, type ActivityRecord, type ActivityRecordType, type ActivityRecordsInput, type ActivityRecordsReturn, type Announcement, type AnnouncementStatus, type AnnouncementType, type AnnouncementsInput, type AnnouncementsReturn, type AuthenticateError, type AuthenticateInput, type AuthenticateReturn, type Authenticator, type AvailablePromosReturn, type AvailableQuestsReturn, type Bank, type BankDeposit, type BankWithdrawalRecord, type BetRecord, type BetRecordStatus, type BetRecordsInput, type BetRecordsReturn, type Bonus, type BonusReturn, type BonusesReturn, type CabinetSignInInput, type CabinetSignInReturn, type Cashback, type CashbackBonus, type CashbackBonusReturn, type CashbackStatus, type CashbacksReturn, type CheckInDailyQuestReturn, type ClaimCashbackBonusError, type ClaimCashbackBonusReturn, type ClaimRewardError, type ClaimRewardReturn, type ClaimSpotBonusReturn, type CompleteOnboardingInput, type CompleteOnboardingReturn, type CompoundField, type CreateAIOInstapayWithdrawalInput, type CreateAIOOnlineBankDepositInput, type CreateAIOQRPHDepositInput, type CreateAccountError, type CreateAccountInput, type CreateAccountInput__Next, type CreateAccountReturn, type CreateBankWithdrawalInput, type CreateDepositError, type CreateDepositInput, type CreateDepositReturn, type CreateGCashDepositInput, type CreateGCashWithdrawalInput, type CreateGameSessionByIdInput, type CreateGameSessionByReferenceInput, type CreateGameSessionError, type CreateGameSessionInput, type CreateGameSessionReturn, type CreateManualBankDepositInput, type CreateManualBankWithdrawalInput, type CreateManualUPIDepositInput, type CreateManualUPIWithdrawalInput, type CreateMayaAppDepositInput, type CreateMayaAppWithdrawalInput, type CreateMayaDepositInput, type CreateMayaWithdrawalInput, type CreateWithdrawalError, type CreateWithdrawalInput, type CreateWithdrawalReturn, type Currency, type DeleteAccountReturn, type Deposit, type DepositRecord, type DepositRecordsInput, type DepositRecordsReturn, type DepositReturn, type DepositStatus, type DepositType, type DepositsCountReturn, type DownlinesByNameInput, type DownlinesByNameReturn, type EndGameSessionReturn, type FCMDeviceType, type FavoriteGamesReturn, type Field, type FieldType, type File, type FileReturn, type GCashDeposit, type GCashWithdrawalRecord, type Game, type GameProvider, type GameReturn, type GameSession, type GameSessionReturn, type GameSessionStatus, type GameTag, type GameType, type GamesInput, type GamesInput__Next, type GamesReturn, type GatewaySettings, type HttpError, type ImageField, type InstapayBank, type InstapayBankListReturn, type InstapayBankType, type InstapayWithdrawalRecord, type Jackpot, type JackpotPayout, type JackpotPayoutsInput, type JackpotPayoutsReturn, type JackpotStatus, type JackpotsInput, type JackpotsReturn, type KnownDepositError, type LatestBetRecord, type LatestBetRecordsReturn, type Locale, type ManualBankDeposit, type ManualBankWithdrawalRecord, type ManualDeposit, type ManualUPIDeposit, type ManualUPIWithdrawalRecord, type ManualWithdrawalRecord, type MarkAllMessagesAsReadReturn, type MarkGameAsFavoriteInput, type MarkGameAsFavoriteReturn, type MarkMessageAsReadReturn, type MayaAppDeposit, type MayaDeposit, type MayaSignInInput, type MayaSignInReturn, type MayaWithdrawalRecord, type MemberStatus, type Message, type MessageAction, type MessageIcon, type MessagesInput, type MessagesReturn, type MobileNumberCreateAccountInput, type MobileNumberSignInInput, type MobileNumberSignInReturn, type MultiSelectField, type NameAndPasswordCreateAccountInput, type NameAndPasswordSignInInput, type NameAndPasswordSignInReturn, ObjectType, type OnboardingPlayerExperience, type OnboardingStatus, type OnboardingStatusReturn, type OnlineBankDeposit, type OperationError, type OperationResult, type PaymentSettings, type PaymentSettingsReturn, type Platform, type PlatformReturn, type PlatformReturn__Next, type Platform__Next, type PointsClubSettings, type PointsClubSettingsReturn, type PointsWallet, type PointsWalletReturn, type PointsWalletTransaction, type PointsWalletTransactionType, type PointsWalletTransactionsInput, type PointsWalletTransactionsReturn, type ProfileCompletion, type ProfileCompletionReturn, type Promo, type PromoByCodeReturn, type PromoStatus, type PromoType, type PromosReturn, type QRPHDeposit, type Quest, type QuestProgram, type QuestProgramStatus, type QuestStatus, type QuestType, type RecommendedGamesInput, type RecommendedGamesReturn, type RedeemPointsError, type RedeemPointsInput, type RedeemPointsReturn, type Referral, type ReferralCodeReturn, type ReferralCommission, type ReferralCommissionReturn, type ReferralsInput, type ReferralsReturn, type RefreshSessionError, type RegisterFCMDeviceInput, type RegisterFCMDeviceReturn, type RegisterMayaAccountError, type RegisterMayaAccountInput, type RegisterMayaAccountReturn, type RegisterMemberAccountByNameInput, type RemainingDailyWithdrawalsCountReturn, type ResetPasswordError, type ResetPasswordInput, type ResetPasswordReturn, type RichTextField, Sdk, type SdkConfig, type SecretQuestion, type SecurityQuestionAuthenticateInput, type SecurityQuestionAuthenticator, type SelectField, type SendEmailVerificationCodeInput, type SendSmsVerificationCodeInput, type SendVerificationCodeError, type SendVerificationCodeError__Next, type SendVerificationCodeInput__Next, type SendVerificationCodeReturn, type SendVerificationCodeReturn__Next, type Session, type SessionError, type SessionReturn, type SignInError, type SignInInput, type SignInReturn, type Site, type SiteReturn, type SkipOnboardingReturn, type SocialsSignInInput, type SocialsSignInReturn, type SpotBonusPromo, type SubmitVerificationDetailsInput, type SubmitVerificationDetailsReturn, type SubmitVerificationError, type TextField, type ToggleField, type TokenSignInInput, type TokenSignInReturn, type TopWin, type TopWinsReturn, type TouchDepositInput, type TouchDepositReturn, type TransactionRecord, type TransactionRecordsInput, type TransactionRecordsReturn, type TransactionType, type TurnoverRequirementType, type UnmarkGameAsFavoriteInput, type UnmarkGameAsFavoriteReturn, type UnreadMessagesCountInput, type UnreadMessagesCountReturn, type UnregisterFCMDeviceInput, type UnregisterFCMDeviceReturn, type UpdateAccountError, type UpdateAccountInput, type UpdateAccountReturn, type UpdateReferralCodeError, type UpdateReferralCodeInput, type UpdateReferralCodeReturn, type UpdateVerificationDetailsInput, type UpdateVerificationDetailsReturn, type UpdateVerificationError, type UplinesByNameInput, type UplinesByNameReturn, type UploadImageFileError, type UploadImageFileInput, type UploadImageFileReturn, type ValidateMayaSessionReturn, type VerificationDetails, type VerificationDetailsReturn, type VerificationDetailsStatus, type VerifyMobileNumberError, type VerifyMobileNumberReturn, type Wallet, type WalletReturn, type WatchSessionInput, type WithdrawalError, type WithdrawalRecord, type WithdrawalRecordsInput, type WithdrawalRecordsReturn, type WithdrawalStatus, type WithdrawalType };
|
|
1596
|
+
export { type Account, type AccountReturn, type AccountStatus, type AccountVerificationStatus, type ActivityRecord, type ActivityRecordType, type ActivityRecordsInput, type ActivityRecordsReturn, type Announcement, type AnnouncementStatus, type AnnouncementType, type AnnouncementsInput, type AnnouncementsReturn, type AuthenticateError, type AuthenticateInput, type AuthenticateReturn, type Authenticator, type AvailablePromosReturn, type AvailableQuestsReturn, type Bank, type BankDeposit, type BankWithdrawalRecord, type BetRecord, type BetRecordStatus, type BetRecordsInput, type BetRecordsReturn, type BiometricsSignInInput, type BiometricsSignInReturn, type Bonus, type BonusReturn, type BonusesReturn, type CabinetSignInInput, type CabinetSignInReturn, type Cashback, type CashbackBonus, type CashbackBonusReturn, type CashbackStatus, type CashbacksReturn, type CheckInDailyQuestReturn, type ClaimCashbackBonusError, type ClaimCashbackBonusReturn, type ClaimRewardError, type ClaimRewardReturn, type ClaimSpotBonusReturn, type CompleteOnboardingInput, type CompleteOnboardingReturn, type CompoundField, type CreateAIOInstapayWithdrawalInput, type CreateAIOOnlineBankDepositInput, type CreateAIOQRPHDepositInput, type CreateAccountError, type CreateAccountInput, type CreateAccountInput__Next, type CreateAccountReturn, type CreateBankWithdrawalInput, type CreateDepositError, type CreateDepositInput, type CreateDepositReturn, type CreateGCashDepositInput, type CreateGCashWithdrawalInput, type CreateGameSessionByIdInput, type CreateGameSessionByReferenceInput, type CreateGameSessionError, type CreateGameSessionInput, type CreateGameSessionReturn, type CreateManualBankDepositInput, type CreateManualBankWithdrawalInput, type CreateManualUPIDepositInput, type CreateManualUPIWithdrawalInput, type CreateMayaAppDepositInput, type CreateMayaAppWithdrawalInput, type CreateMayaDepositInput, type CreateMayaWithdrawalInput, type CreateWithdrawalError, type CreateWithdrawalInput, type CreateWithdrawalReturn, type Currency, type DeleteAccountReturn, type Deposit, type DepositRecord, type DepositRecordsInput, type DepositRecordsReturn, type DepositReturn, type DepositStatus, type DepositType, type DepositsCountReturn, type DownlinesByNameInput, type DownlinesByNameReturn, type EndGameSessionReturn, type FCMDeviceType, type FavoriteGamesReturn, type Field, type FieldType, type File, type FileReturn, type GCashDeposit, type GCashWithdrawalRecord, type Game, type GameProvider, type GameReturn, type GameSession, type GameSessionReturn, type GameSessionStatus, type GameTag, type GameType, type GamesInput, type GamesInput__Next, type GamesReturn, type GatewaySettings, type HttpError, type ImageField, type InstapayBank, type InstapayBankListReturn, type InstapayBankType, type InstapayWithdrawalRecord, type Jackpot, type JackpotPayout, type JackpotPayoutsInput, type JackpotPayoutsReturn, type JackpotStatus, type JackpotsInput, type JackpotsReturn, type KnownDepositError, type LatestBetRecord, type LatestBetRecordsReturn, type Locale, type ManualBankDeposit, type ManualBankWithdrawalRecord, type ManualDeposit, type ManualUPIDeposit, type ManualUPIWithdrawalRecord, type ManualWithdrawalRecord, type MarkAllMessagesAsReadReturn, type MarkGameAsFavoriteInput, type MarkGameAsFavoriteReturn, type MarkMessageAsReadReturn, type MayaAppDeposit, type MayaDeposit, type MayaSignInInput, type MayaSignInReturn, type MayaWithdrawalRecord, type MemberStatus, type Message, type MessageAction, type MessageIcon, type MessagesInput, type MessagesReturn, type MobileNumberCreateAccountInput, type MobileNumberSignInInput, type MobileNumberSignInReturn, type MultiSelectField, type NameAndPasswordCreateAccountInput, type NameAndPasswordSignInInput, type NameAndPasswordSignInReturn, ObjectType, type OnboardingPlayerExperience, type OnboardingStatus, type OnboardingStatusReturn, type OnlineBankDeposit, type OperationError, type OperationResult, type PaymentSettings, type PaymentSettingsReturn, type Platform, type PlatformReturn, type PlatformReturn__Next, type Platform__Next, type PointsClubSettings, type PointsClubSettingsReturn, type PointsWallet, type PointsWalletReturn, type PointsWalletTransaction, type PointsWalletTransactionType, type PointsWalletTransactionsInput, type PointsWalletTransactionsReturn, type ProfileCompletion, type ProfileCompletionReturn, type Promo, type PromoByCodeReturn, type PromoStatus, type PromoType, type PromosReturn, type QRPHDeposit, type Quest, type QuestProgram, type QuestProgramStatus, type QuestStatus, type QuestType, type RecommendedGamesInput, type RecommendedGamesReturn, type RedeemPointsError, type RedeemPointsInput, type RedeemPointsReturn, type Referral, type ReferralCodeReturn, type ReferralCommission, type ReferralCommissionReturn, type ReferralsInput, type ReferralsReturn, type RefreshSessionError, type RegisterFCMDeviceInput, type RegisterFCMDeviceReturn, type RegisterMayaAccountError, type RegisterMayaAccountInput, type RegisterMayaAccountReturn, type RegisterMemberAccountByMobileNumberError, type RegisterMemberAccountByMobileNumberInput, type RegisterMemberAccountByMobileNumberReturn, type RegisterMemberAccountByNameInput, type RemainingDailyWithdrawalsCountReturn, type ResetPasswordError, type ResetPasswordInput, type ResetPasswordReturn, type RichTextField, Sdk, type SdkConfig, type SecretQuestion, type SecurityQuestionAuthenticateInput, type SecurityQuestionAuthenticator, type SelectField, type SendEmailVerificationCodeInput, type SendSmsVerificationCodeInput, type SendVerificationCodeError, type SendVerificationCodeError__Next, type SendVerificationCodeInput__Next, type SendVerificationCodeReturn, type SendVerificationCodeReturn__Next, type Session, type SessionError, type SessionReturn, type SignInError, type SignInInput, type SignInReturn, type Site, type SiteReturn, type SkipOnboardingReturn, type SocialsSignInInput, type SocialsSignInReturn, type SpotBonusPromo, type SubmitVerificationDetailsInput, type SubmitVerificationDetailsReturn, type SubmitVerificationError, type TextField, type ToggleField, type TokenSignInInput, type TokenSignInReturn, type TopWin, type TopWinsReturn, type TouchDepositInput, type TouchDepositReturn, type TransactionRecord, type TransactionRecordsInput, type TransactionRecordsReturn, type TransactionType, type TurnoverRequirementType, type UnmarkGameAsFavoriteInput, type UnmarkGameAsFavoriteReturn, type UnreadMessagesCountInput, type UnreadMessagesCountReturn, type UnregisterFCMDeviceInput, type UnregisterFCMDeviceReturn, type UpdateAccountError, type UpdateAccountInput, type UpdateAccountReturn, type UpdateReferralCodeError, type UpdateReferralCodeInput, type UpdateReferralCodeReturn, type UpdateVerificationDetailsInput, type UpdateVerificationDetailsReturn, type UpdateVerificationError, type UplinesByNameInput, type UplinesByNameReturn, type UploadImageFileError, type UploadImageFileInput, type UploadImageFileReturn, type ValidateMayaSessionReturn, type VerificationDetails, type VerificationDetailsReturn, type VerificationDetailsStatus, type VerifyMobileNumberError, type VerifyMobileNumberReturn, type Wallet, type WalletReturn, type WatchSessionInput, type WithdrawalError, type WithdrawalRecord, type WithdrawalRecordsInput, type WithdrawalRecordsReturn, type WithdrawalStatus, type WithdrawalType };
|
package/dist/index.d.ts
CHANGED
|
@@ -229,6 +229,7 @@ type SendVerificationCodeError__Next$1 = 'NotReadyToSendVerficationCodeError' |
|
|
|
229
229
|
type VerifyMobileNumberError$1 = 'InvalidSMSVerificationCodeError' | 'MobileNumberAlreadyVerifiedError';
|
|
230
230
|
type CreateMemberVerificationError = 'FileDoesNotExistError' | 'FileNotReadyError' | 'MemberVerificationAlreadyExistsError';
|
|
231
231
|
type UpdateMemberVerificationError = 'FileDoesNotExistError' | 'FileNotReadyError' | 'MemberVerificationAlreadyApprovedError' | 'MemberVerificationDoesNotExistError';
|
|
232
|
+
type RegisterMemberAccountByMobileNumberError$1 = 'MobileNumberNotAvailableError' | 'InvalidSMSVerificationCodeError' | 'InvalidPlatformError';
|
|
232
233
|
type CreateSessionError = 'AccountNotFoundError' | 'AccountBlacklistedError' | 'InvalidReCAPTCHAResponseError' | 'AccountSuspendedError';
|
|
233
234
|
type RefreshSessionError$1 = 'InvalidTokenError' | 'AccountBlacklistedError' | 'AccountSuspendedError' | 'SessionExpiredError';
|
|
234
235
|
interface SecurityQuestionAuthenticateInput$1 {
|
|
@@ -435,12 +436,17 @@ interface MayaSignInInput {
|
|
|
435
436
|
type: 'MAYA';
|
|
436
437
|
sessionId: string;
|
|
437
438
|
}
|
|
439
|
+
interface BiometricsSignInInput {
|
|
440
|
+
type: 'BIOMETRICS';
|
|
441
|
+
token: string;
|
|
442
|
+
}
|
|
438
443
|
type MayaSignInReturn = OperationResult<SignInError>;
|
|
439
444
|
type MobileNumberSignInReturn = OperationResult<SignInError>;
|
|
440
445
|
/** @deprecated use `SocialsSignInReturn` */
|
|
441
446
|
type TokenSignInReturn = OperationResult<SignInError>;
|
|
442
447
|
type SocialsSignInReturn = OperationResult<SignInError>;
|
|
443
448
|
type CabinetSignInReturn = OperationResult<SignInError>;
|
|
449
|
+
type BiometricsSignInReturn = OperationResult<SignInError>;
|
|
444
450
|
type NameAndPasswordSignInReturn = OperationResult<SignInError, {
|
|
445
451
|
'2FAEnabled': true;
|
|
446
452
|
authenticator: Authenticator;
|
|
@@ -448,9 +454,9 @@ type NameAndPasswordSignInReturn = OperationResult<SignInError, {
|
|
|
448
454
|
'2FAEnabled': false;
|
|
449
455
|
authenticator?: never;
|
|
450
456
|
}>;
|
|
451
|
-
type SignInInput = NameAndPasswordSignInInput | MobileNumberSignInInput | MayaSignInInput | TokenSignInInput | SocialsSignInInput | CabinetSignInInput;
|
|
457
|
+
type SignInInput = NameAndPasswordSignInInput | MobileNumberSignInInput | MayaSignInInput | TokenSignInInput | SocialsSignInInput | CabinetSignInInput | BiometricsSignInInput;
|
|
452
458
|
type SignInError = UnionAlias<CreateSessionError>;
|
|
453
|
-
type SignInReturn = NameAndPasswordSignInReturn | MobileNumberSignInReturn | MayaSignInReturn | TokenSignInReturn | SocialsSignInReturn | CabinetSignInReturn;
|
|
459
|
+
type SignInReturn = NameAndPasswordSignInReturn | MobileNumberSignInReturn | MayaSignInReturn | TokenSignInReturn | SocialsSignInReturn | CabinetSignInReturn | BiometricsSignInReturn;
|
|
454
460
|
type RefreshSessionError = UnionAlias<RefreshSessionError$1>;
|
|
455
461
|
interface SecurityQuestionAuthenticateInput extends SecurityQuestionAuthenticateInput$1 {
|
|
456
462
|
}
|
|
@@ -651,6 +657,15 @@ type SendVerificationCodeError__Next = UnionAlias<SendVerificationCodeError__Nex
|
|
|
651
657
|
type SendVerificationCodeReturn__Next = OperationResult<SendVerificationCodeError__Next>;
|
|
652
658
|
type VerifyMobileNumberError = UnionAlias<VerifyMobileNumberError$1>;
|
|
653
659
|
type VerifyMobileNumberReturn = OperationResult<VerifyMobileNumberError>;
|
|
660
|
+
interface RegisterMemberAccountByMobileNumberInput {
|
|
661
|
+
id: string;
|
|
662
|
+
mobileNumber: string;
|
|
663
|
+
password: string;
|
|
664
|
+
realName: string;
|
|
665
|
+
mobileNumberVerificationCode: string;
|
|
666
|
+
}
|
|
667
|
+
type RegisterMemberAccountByMobileNumberError = UnionAlias<RegisterMemberAccountByMobileNumberError$1>;
|
|
668
|
+
type RegisterMemberAccountByMobileNumberReturn = OperationResult<RegisterMemberAccountByMobileNumberError>;
|
|
654
669
|
type Currency = UnionAlias<Currency$1>;
|
|
655
670
|
interface Wallet {
|
|
656
671
|
id: string;
|
|
@@ -1480,6 +1495,7 @@ declare class Sdk {
|
|
|
1480
1495
|
signIn(input: TokenSignInInput): Promise<TokenSignInReturn>;
|
|
1481
1496
|
signIn(input: SocialsSignInInput): Promise<SocialsSignInReturn>;
|
|
1482
1497
|
signIn(input: CabinetSignInInput): Promise<CabinetSignInReturn>;
|
|
1498
|
+
signIn(input: BiometricsSignInInput): Promise<BiometricsSignInReturn>;
|
|
1483
1499
|
authenticate(input: AuthenticateInput): Promise<AuthenticateReturn>;
|
|
1484
1500
|
signOut(): Promise<void>;
|
|
1485
1501
|
watchSession(input: WatchSessionInput): () => void;
|
|
@@ -1511,6 +1527,7 @@ declare class Sdk {
|
|
|
1511
1527
|
sendVerificationCode(mobileNumber: string): Promise<SendVerificationCodeReturn>;
|
|
1512
1528
|
sendVerificationCode__next(input: SendVerificationCodeInput__Next): Promise<SendVerificationCodeReturn__Next>;
|
|
1513
1529
|
wallet(): Promise<WalletReturn>;
|
|
1530
|
+
registerMemberAccountByMobileNumber(input: RegisterMemberAccountByMobileNumberInput): Promise<RegisterMemberAccountByMobileNumberReturn>;
|
|
1514
1531
|
announcements(input?: AnnouncementsInput): Promise<AnnouncementsReturn>;
|
|
1515
1532
|
createWithdrawal(input: CreateWithdrawalInput): Promise<CreateWithdrawalReturn>;
|
|
1516
1533
|
withdrawalRecords(input?: WithdrawalRecordsInput): Promise<WithdrawalRecordsReturn>;
|
|
@@ -1576,4 +1593,4 @@ declare class Sdk {
|
|
|
1576
1593
|
private formatYmd;
|
|
1577
1594
|
}
|
|
1578
1595
|
|
|
1579
|
-
export { type Account, type AccountReturn, type AccountStatus, type AccountVerificationStatus, type ActivityRecord, type ActivityRecordType, type ActivityRecordsInput, type ActivityRecordsReturn, type Announcement, type AnnouncementStatus, type AnnouncementType, type AnnouncementsInput, type AnnouncementsReturn, type AuthenticateError, type AuthenticateInput, type AuthenticateReturn, type Authenticator, type AvailablePromosReturn, type AvailableQuestsReturn, type Bank, type BankDeposit, type BankWithdrawalRecord, type BetRecord, type BetRecordStatus, type BetRecordsInput, type BetRecordsReturn, type Bonus, type BonusReturn, type BonusesReturn, type CabinetSignInInput, type CabinetSignInReturn, type Cashback, type CashbackBonus, type CashbackBonusReturn, type CashbackStatus, type CashbacksReturn, type CheckInDailyQuestReturn, type ClaimCashbackBonusError, type ClaimCashbackBonusReturn, type ClaimRewardError, type ClaimRewardReturn, type ClaimSpotBonusReturn, type CompleteOnboardingInput, type CompleteOnboardingReturn, type CompoundField, type CreateAIOInstapayWithdrawalInput, type CreateAIOOnlineBankDepositInput, type CreateAIOQRPHDepositInput, type CreateAccountError, type CreateAccountInput, type CreateAccountInput__Next, type CreateAccountReturn, type CreateBankWithdrawalInput, type CreateDepositError, type CreateDepositInput, type CreateDepositReturn, type CreateGCashDepositInput, type CreateGCashWithdrawalInput, type CreateGameSessionByIdInput, type CreateGameSessionByReferenceInput, type CreateGameSessionError, type CreateGameSessionInput, type CreateGameSessionReturn, type CreateManualBankDepositInput, type CreateManualBankWithdrawalInput, type CreateManualUPIDepositInput, type CreateManualUPIWithdrawalInput, type CreateMayaAppDepositInput, type CreateMayaAppWithdrawalInput, type CreateMayaDepositInput, type CreateMayaWithdrawalInput, type CreateWithdrawalError, type CreateWithdrawalInput, type CreateWithdrawalReturn, type Currency, type DeleteAccountReturn, type Deposit, type DepositRecord, type DepositRecordsInput, type DepositRecordsReturn, type DepositReturn, type DepositStatus, type DepositType, type DepositsCountReturn, type DownlinesByNameInput, type DownlinesByNameReturn, type EndGameSessionReturn, type FCMDeviceType, type FavoriteGamesReturn, type Field, type FieldType, type File, type FileReturn, type GCashDeposit, type GCashWithdrawalRecord, type Game, type GameProvider, type GameReturn, type GameSession, type GameSessionReturn, type GameSessionStatus, type GameTag, type GameType, type GamesInput, type GamesInput__Next, type GamesReturn, type GatewaySettings, type HttpError, type ImageField, type InstapayBank, type InstapayBankListReturn, type InstapayBankType, type InstapayWithdrawalRecord, type Jackpot, type JackpotPayout, type JackpotPayoutsInput, type JackpotPayoutsReturn, type JackpotStatus, type JackpotsInput, type JackpotsReturn, type KnownDepositError, type LatestBetRecord, type LatestBetRecordsReturn, type Locale, type ManualBankDeposit, type ManualBankWithdrawalRecord, type ManualDeposit, type ManualUPIDeposit, type ManualUPIWithdrawalRecord, type ManualWithdrawalRecord, type MarkAllMessagesAsReadReturn, type MarkGameAsFavoriteInput, type MarkGameAsFavoriteReturn, type MarkMessageAsReadReturn, type MayaAppDeposit, type MayaDeposit, type MayaSignInInput, type MayaSignInReturn, type MayaWithdrawalRecord, type MemberStatus, type Message, type MessageAction, type MessageIcon, type MessagesInput, type MessagesReturn, type MobileNumberCreateAccountInput, type MobileNumberSignInInput, type MobileNumberSignInReturn, type MultiSelectField, type NameAndPasswordCreateAccountInput, type NameAndPasswordSignInInput, type NameAndPasswordSignInReturn, ObjectType, type OnboardingPlayerExperience, type OnboardingStatus, type OnboardingStatusReturn, type OnlineBankDeposit, type OperationError, type OperationResult, type PaymentSettings, type PaymentSettingsReturn, type Platform, type PlatformReturn, type PlatformReturn__Next, type Platform__Next, type PointsClubSettings, type PointsClubSettingsReturn, type PointsWallet, type PointsWalletReturn, type PointsWalletTransaction, type PointsWalletTransactionType, type PointsWalletTransactionsInput, type PointsWalletTransactionsReturn, type ProfileCompletion, type ProfileCompletionReturn, type Promo, type PromoByCodeReturn, type PromoStatus, type PromoType, type PromosReturn, type QRPHDeposit, type Quest, type QuestProgram, type QuestProgramStatus, type QuestStatus, type QuestType, type RecommendedGamesInput, type RecommendedGamesReturn, type RedeemPointsError, type RedeemPointsInput, type RedeemPointsReturn, type Referral, type ReferralCodeReturn, type ReferralCommission, type ReferralCommissionReturn, type ReferralsInput, type ReferralsReturn, type RefreshSessionError, type RegisterFCMDeviceInput, type RegisterFCMDeviceReturn, type RegisterMayaAccountError, type RegisterMayaAccountInput, type RegisterMayaAccountReturn, type RegisterMemberAccountByNameInput, type RemainingDailyWithdrawalsCountReturn, type ResetPasswordError, type ResetPasswordInput, type ResetPasswordReturn, type RichTextField, Sdk, type SdkConfig, type SecretQuestion, type SecurityQuestionAuthenticateInput, type SecurityQuestionAuthenticator, type SelectField, type SendEmailVerificationCodeInput, type SendSmsVerificationCodeInput, type SendVerificationCodeError, type SendVerificationCodeError__Next, type SendVerificationCodeInput__Next, type SendVerificationCodeReturn, type SendVerificationCodeReturn__Next, type Session, type SessionError, type SessionReturn, type SignInError, type SignInInput, type SignInReturn, type Site, type SiteReturn, type SkipOnboardingReturn, type SocialsSignInInput, type SocialsSignInReturn, type SpotBonusPromo, type SubmitVerificationDetailsInput, type SubmitVerificationDetailsReturn, type SubmitVerificationError, type TextField, type ToggleField, type TokenSignInInput, type TokenSignInReturn, type TopWin, type TopWinsReturn, type TouchDepositInput, type TouchDepositReturn, type TransactionRecord, type TransactionRecordsInput, type TransactionRecordsReturn, type TransactionType, type TurnoverRequirementType, type UnmarkGameAsFavoriteInput, type UnmarkGameAsFavoriteReturn, type UnreadMessagesCountInput, type UnreadMessagesCountReturn, type UnregisterFCMDeviceInput, type UnregisterFCMDeviceReturn, type UpdateAccountError, type UpdateAccountInput, type UpdateAccountReturn, type UpdateReferralCodeError, type UpdateReferralCodeInput, type UpdateReferralCodeReturn, type UpdateVerificationDetailsInput, type UpdateVerificationDetailsReturn, type UpdateVerificationError, type UplinesByNameInput, type UplinesByNameReturn, type UploadImageFileError, type UploadImageFileInput, type UploadImageFileReturn, type ValidateMayaSessionReturn, type VerificationDetails, type VerificationDetailsReturn, type VerificationDetailsStatus, type VerifyMobileNumberError, type VerifyMobileNumberReturn, type Wallet, type WalletReturn, type WatchSessionInput, type WithdrawalError, type WithdrawalRecord, type WithdrawalRecordsInput, type WithdrawalRecordsReturn, type WithdrawalStatus, type WithdrawalType };
|
|
1596
|
+
export { type Account, type AccountReturn, type AccountStatus, type AccountVerificationStatus, type ActivityRecord, type ActivityRecordType, type ActivityRecordsInput, type ActivityRecordsReturn, type Announcement, type AnnouncementStatus, type AnnouncementType, type AnnouncementsInput, type AnnouncementsReturn, type AuthenticateError, type AuthenticateInput, type AuthenticateReturn, type Authenticator, type AvailablePromosReturn, type AvailableQuestsReturn, type Bank, type BankDeposit, type BankWithdrawalRecord, type BetRecord, type BetRecordStatus, type BetRecordsInput, type BetRecordsReturn, type BiometricsSignInInput, type BiometricsSignInReturn, type Bonus, type BonusReturn, type BonusesReturn, type CabinetSignInInput, type CabinetSignInReturn, type Cashback, type CashbackBonus, type CashbackBonusReturn, type CashbackStatus, type CashbacksReturn, type CheckInDailyQuestReturn, type ClaimCashbackBonusError, type ClaimCashbackBonusReturn, type ClaimRewardError, type ClaimRewardReturn, type ClaimSpotBonusReturn, type CompleteOnboardingInput, type CompleteOnboardingReturn, type CompoundField, type CreateAIOInstapayWithdrawalInput, type CreateAIOOnlineBankDepositInput, type CreateAIOQRPHDepositInput, type CreateAccountError, type CreateAccountInput, type CreateAccountInput__Next, type CreateAccountReturn, type CreateBankWithdrawalInput, type CreateDepositError, type CreateDepositInput, type CreateDepositReturn, type CreateGCashDepositInput, type CreateGCashWithdrawalInput, type CreateGameSessionByIdInput, type CreateGameSessionByReferenceInput, type CreateGameSessionError, type CreateGameSessionInput, type CreateGameSessionReturn, type CreateManualBankDepositInput, type CreateManualBankWithdrawalInput, type CreateManualUPIDepositInput, type CreateManualUPIWithdrawalInput, type CreateMayaAppDepositInput, type CreateMayaAppWithdrawalInput, type CreateMayaDepositInput, type CreateMayaWithdrawalInput, type CreateWithdrawalError, type CreateWithdrawalInput, type CreateWithdrawalReturn, type Currency, type DeleteAccountReturn, type Deposit, type DepositRecord, type DepositRecordsInput, type DepositRecordsReturn, type DepositReturn, type DepositStatus, type DepositType, type DepositsCountReturn, type DownlinesByNameInput, type DownlinesByNameReturn, type EndGameSessionReturn, type FCMDeviceType, type FavoriteGamesReturn, type Field, type FieldType, type File, type FileReturn, type GCashDeposit, type GCashWithdrawalRecord, type Game, type GameProvider, type GameReturn, type GameSession, type GameSessionReturn, type GameSessionStatus, type GameTag, type GameType, type GamesInput, type GamesInput__Next, type GamesReturn, type GatewaySettings, type HttpError, type ImageField, type InstapayBank, type InstapayBankListReturn, type InstapayBankType, type InstapayWithdrawalRecord, type Jackpot, type JackpotPayout, type JackpotPayoutsInput, type JackpotPayoutsReturn, type JackpotStatus, type JackpotsInput, type JackpotsReturn, type KnownDepositError, type LatestBetRecord, type LatestBetRecordsReturn, type Locale, type ManualBankDeposit, type ManualBankWithdrawalRecord, type ManualDeposit, type ManualUPIDeposit, type ManualUPIWithdrawalRecord, type ManualWithdrawalRecord, type MarkAllMessagesAsReadReturn, type MarkGameAsFavoriteInput, type MarkGameAsFavoriteReturn, type MarkMessageAsReadReturn, type MayaAppDeposit, type MayaDeposit, type MayaSignInInput, type MayaSignInReturn, type MayaWithdrawalRecord, type MemberStatus, type Message, type MessageAction, type MessageIcon, type MessagesInput, type MessagesReturn, type MobileNumberCreateAccountInput, type MobileNumberSignInInput, type MobileNumberSignInReturn, type MultiSelectField, type NameAndPasswordCreateAccountInput, type NameAndPasswordSignInInput, type NameAndPasswordSignInReturn, ObjectType, type OnboardingPlayerExperience, type OnboardingStatus, type OnboardingStatusReturn, type OnlineBankDeposit, type OperationError, type OperationResult, type PaymentSettings, type PaymentSettingsReturn, type Platform, type PlatformReturn, type PlatformReturn__Next, type Platform__Next, type PointsClubSettings, type PointsClubSettingsReturn, type PointsWallet, type PointsWalletReturn, type PointsWalletTransaction, type PointsWalletTransactionType, type PointsWalletTransactionsInput, type PointsWalletTransactionsReturn, type ProfileCompletion, type ProfileCompletionReturn, type Promo, type PromoByCodeReturn, type PromoStatus, type PromoType, type PromosReturn, type QRPHDeposit, type Quest, type QuestProgram, type QuestProgramStatus, type QuestStatus, type QuestType, type RecommendedGamesInput, type RecommendedGamesReturn, type RedeemPointsError, type RedeemPointsInput, type RedeemPointsReturn, type Referral, type ReferralCodeReturn, type ReferralCommission, type ReferralCommissionReturn, type ReferralsInput, type ReferralsReturn, type RefreshSessionError, type RegisterFCMDeviceInput, type RegisterFCMDeviceReturn, type RegisterMayaAccountError, type RegisterMayaAccountInput, type RegisterMayaAccountReturn, type RegisterMemberAccountByMobileNumberError, type RegisterMemberAccountByMobileNumberInput, type RegisterMemberAccountByMobileNumberReturn, type RegisterMemberAccountByNameInput, type RemainingDailyWithdrawalsCountReturn, type ResetPasswordError, type ResetPasswordInput, type ResetPasswordReturn, type RichTextField, Sdk, type SdkConfig, type SecretQuestion, type SecurityQuestionAuthenticateInput, type SecurityQuestionAuthenticator, type SelectField, type SendEmailVerificationCodeInput, type SendSmsVerificationCodeInput, type SendVerificationCodeError, type SendVerificationCodeError__Next, type SendVerificationCodeInput__Next, type SendVerificationCodeReturn, type SendVerificationCodeReturn__Next, type Session, type SessionError, type SessionReturn, type SignInError, type SignInInput, type SignInReturn, type Site, type SiteReturn, type SkipOnboardingReturn, type SocialsSignInInput, type SocialsSignInReturn, type SpotBonusPromo, type SubmitVerificationDetailsInput, type SubmitVerificationDetailsReturn, type SubmitVerificationError, type TextField, type ToggleField, type TokenSignInInput, type TokenSignInReturn, type TopWin, type TopWinsReturn, type TouchDepositInput, type TouchDepositReturn, type TransactionRecord, type TransactionRecordsInput, type TransactionRecordsReturn, type TransactionType, type TurnoverRequirementType, type UnmarkGameAsFavoriteInput, type UnmarkGameAsFavoriteReturn, type UnreadMessagesCountInput, type UnreadMessagesCountReturn, type UnregisterFCMDeviceInput, type UnregisterFCMDeviceReturn, type UpdateAccountError, type UpdateAccountInput, type UpdateAccountReturn, type UpdateReferralCodeError, type UpdateReferralCodeInput, type UpdateReferralCodeReturn, type UpdateVerificationDetailsInput, type UpdateVerificationDetailsReturn, type UpdateVerificationError, type UplinesByNameInput, type UplinesByNameReturn, type UploadImageFileError, type UploadImageFileInput, type UploadImageFileReturn, type ValidateMayaSessionReturn, type VerificationDetails, type VerificationDetailsReturn, type VerificationDetailsStatus, type VerifyMobileNumberError, type VerifyMobileNumberReturn, type Wallet, type WalletReturn, type WatchSessionInput, type WithdrawalError, type WithdrawalRecord, type WithdrawalRecordsInput, type WithdrawalRecordsReturn, type WithdrawalStatus, type WithdrawalType };
|
package/dist/index.js
CHANGED
|
@@ -1399,6 +1399,27 @@ var SEND_VERIFICATION_CODE_MUTATION = gql`
|
|
|
1399
1399
|
}
|
|
1400
1400
|
}
|
|
1401
1401
|
`;
|
|
1402
|
+
var REGISTER_MEMBER_ACCOUNT_BY_MOBILE_NUMBER_MUTATION = gql`
|
|
1403
|
+
mutation RegisterMemberAccountByMobileNumber(
|
|
1404
|
+
$input: RegisterMemberAccountByMobileNumberInput!
|
|
1405
|
+
$mobileNumberVerificationCode: String!
|
|
1406
|
+
) {
|
|
1407
|
+
registerMemberAccountByMobileNumber(
|
|
1408
|
+
input: $input
|
|
1409
|
+
mobileNumberVerificationCode: $mobileNumberVerificationCode
|
|
1410
|
+
) {
|
|
1411
|
+
... on MobileNumberNotAvailableError {
|
|
1412
|
+
__typename
|
|
1413
|
+
}
|
|
1414
|
+
... on InvalidSMSVerificationCodeError {
|
|
1415
|
+
__typename
|
|
1416
|
+
}
|
|
1417
|
+
... on InvalidPlatformError {
|
|
1418
|
+
__typename
|
|
1419
|
+
}
|
|
1420
|
+
}
|
|
1421
|
+
}
|
|
1422
|
+
`;
|
|
1402
1423
|
var PLATFORM_QUERY = gql`
|
|
1403
1424
|
fragment DepositGatewaySettingsCoreData on DepositGatewaySettings {
|
|
1404
1425
|
minimumAmount
|
|
@@ -2339,6 +2360,19 @@ var AccountService = class {
|
|
|
2339
2360
|
const res = await this.client.request(POINTS_CLUB_SETTINGS_QUERY);
|
|
2340
2361
|
return res.ok ? { ok: true, data: res.data.pointsClubSettings } : res;
|
|
2341
2362
|
}
|
|
2363
|
+
async registerMemberAccountByMobileNumber(variables) {
|
|
2364
|
+
const res = await this.client.request(REGISTER_MEMBER_ACCOUNT_BY_MOBILE_NUMBER_MUTATION, variables);
|
|
2365
|
+
if (!res.ok) return res;
|
|
2366
|
+
if (res.data.registerMemberAccountByMobileNumber) {
|
|
2367
|
+
return {
|
|
2368
|
+
ok: false,
|
|
2369
|
+
error: createOperationError(res.data.registerMemberAccountByMobileNumber.__typename)
|
|
2370
|
+
};
|
|
2371
|
+
}
|
|
2372
|
+
return {
|
|
2373
|
+
ok: true
|
|
2374
|
+
};
|
|
2375
|
+
}
|
|
2342
2376
|
};
|
|
2343
2377
|
|
|
2344
2378
|
// src/utils/status-code-to-operation-error.ts
|
|
@@ -2394,6 +2428,9 @@ var AuthService = class {
|
|
|
2394
2428
|
if (input.type === "CABINET") {
|
|
2395
2429
|
headers.set("Authorization", `OPEXA-CABINET-TOKEN ${input.token}`);
|
|
2396
2430
|
}
|
|
2431
|
+
if (input.type === "BIOMETRICS") {
|
|
2432
|
+
headers.set("Authorization", `Biometrics ${input.token}`);
|
|
2433
|
+
}
|
|
2397
2434
|
if (input.reCAPTCHAResponse) {
|
|
2398
2435
|
headers.set("google-recaptcha-response", input.reCAPTCHAResponse);
|
|
2399
2436
|
}
|
|
@@ -5428,6 +5465,13 @@ var Sdk = class {
|
|
|
5428
5465
|
});
|
|
5429
5466
|
return res.ok ? { ok: true } : res;
|
|
5430
5467
|
}
|
|
5468
|
+
case "BIOMETRICS": {
|
|
5469
|
+
const res = await this.sessionManager.create({
|
|
5470
|
+
type: "BIOMETRICS",
|
|
5471
|
+
token: input.token
|
|
5472
|
+
});
|
|
5473
|
+
return res.ok ? { ok: true } : res;
|
|
5474
|
+
}
|
|
5431
5475
|
default: {
|
|
5432
5476
|
const res = await this.sessionManager.create(input);
|
|
5433
5477
|
return res.ok ? { ok: true } : res;
|
|
@@ -5735,6 +5779,17 @@ var Sdk = class {
|
|
|
5735
5779
|
data: res.data ? this.transformer.transform.wallet(res.data) : null
|
|
5736
5780
|
};
|
|
5737
5781
|
}
|
|
5782
|
+
async registerMemberAccountByMobileNumber(input) {
|
|
5783
|
+
return await this.accountService.registerMemberAccountByMobileNumber({
|
|
5784
|
+
input: {
|
|
5785
|
+
id: input.id,
|
|
5786
|
+
mobileNumber: addAreaCode(input.mobileNumber, await this.locale),
|
|
5787
|
+
password: await sha256(input.password),
|
|
5788
|
+
realName: input.realName
|
|
5789
|
+
},
|
|
5790
|
+
mobileNumberVerificationCode: input.mobileNumberVerificationCode
|
|
5791
|
+
});
|
|
5792
|
+
}
|
|
5738
5793
|
/**/
|
|
5739
5794
|
/*+----------------------------------------+*/
|
|
5740
5795
|
/*+ ANNOUNCEMENT +*/
|