@opexa/portal-sdk 0.4.1 → 0.6.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 +61 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -15
- package/dist/index.d.ts +9 -15
- package/dist/index.js +61 -16
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -158,7 +158,7 @@ interface DepositRecordsQueryVariables {
|
|
|
158
158
|
dateTimeLastUpdated?: DateFilterField;
|
|
159
159
|
};
|
|
160
160
|
}
|
|
161
|
-
type CreateDepositError$1 = 'DepositPromoMaximumAmountExceededError' | 'DepositPromoMinimumAmountNotMetError' | 'MaximumDepositAmountExceededError' | 'MinimumDepositAmountNotMetError' | 'MinimumFirstDepositAmountNotMetError' | 'PromoNotEnabledError' | 'WalletDoesNotExistError' | 'ReCAPTCHAVerificationFailedError';
|
|
161
|
+
type CreateDepositError$1 = 'DepositPromoMaximumAmountExceededError' | 'DepositPromoMinimumAmountNotMetError' | 'MaximumDepositAmountExceededError' | 'MinimumDepositAmountNotMetError' | 'MinimumFirstDepositAmountNotMetError' | 'PromoNotEnabledError' | 'WalletDoesNotExistError' | 'ReCAPTCHAVerificationFailedError' | 'UPIReferenceNotAvailableError';
|
|
162
162
|
type Bank$1 = 'AUBKPHMM' | 'MBTCPHMM' | 'BNORPHMM' | 'MKRUPHM1';
|
|
163
163
|
type WithdrawalType$1 = 'MANUAL' | 'BANK' | 'GCASH' | 'MAYA_APP' | 'INSTAPAY' | 'MANUAL_UPI' | 'MANUAL_BANK';
|
|
164
164
|
type WithdrawalStatus$1 = 'PENDING' | 'ACCEPTED' | 'APPROVED' | 'REJECTED' | 'CONFIRMED' | 'CANCELLED' | 'FAILED';
|
|
@@ -744,22 +744,15 @@ type CreateGameSessionReturn = OperationResult<CreateGameSessionError, {
|
|
|
744
744
|
id: string;
|
|
745
745
|
}>;
|
|
746
746
|
type EndGameSessionReturn = OperationResult;
|
|
747
|
+
type MarkGameAsFavoriteReturn = OperationResult;
|
|
747
748
|
interface MarkGameAsFavoriteInput {
|
|
748
749
|
id: string;
|
|
749
750
|
}
|
|
750
|
-
type
|
|
751
|
+
type UnmarkGameAsFavoriteReturn = OperationResult;
|
|
751
752
|
interface UnmarkGameAsFavoriteInput {
|
|
752
753
|
id: string;
|
|
753
754
|
}
|
|
754
|
-
type
|
|
755
|
-
interface FavoriteGame {
|
|
756
|
-
id: string;
|
|
757
|
-
name: string;
|
|
758
|
-
type: GameType;
|
|
759
|
-
provider: GameProvider;
|
|
760
|
-
favorite: boolean;
|
|
761
|
-
}
|
|
762
|
-
type FavoriteGamesReturn = OperationResult<never, FavoriteGame[]>;
|
|
755
|
+
type FavoriteGamesReturn = OperationResult<never, Game[]>;
|
|
763
756
|
type AnnouncementType = UnionAlias<AnnouncementType$1>;
|
|
764
757
|
type AnnouncementStatus = UnionAlias<AnnouncementStatus$1>;
|
|
765
758
|
interface Announcement {
|
|
@@ -1536,19 +1529,21 @@ declare class Sdk {
|
|
|
1536
1529
|
cashbacks(): Promise<CashbacksReturn>;
|
|
1537
1530
|
/** @deprecated */
|
|
1538
1531
|
bonus(): Promise<BonusReturn>;
|
|
1532
|
+
bonuses(): Promise<BonusesReturn>;
|
|
1539
1533
|
cashbackBonuses(): Promise<CashbackBonusReturn>;
|
|
1540
1534
|
claimCashbackBonus(id: string): Promise<ClaimCashbackBonusReturn>;
|
|
1541
1535
|
claimSpotBonus(code: string): Promise<ClaimSpotBonusReturn>;
|
|
1542
1536
|
promoByCode(code: string): Promise<PromoByCodeReturn>;
|
|
1543
1537
|
game(id: string): Promise<GameReturn>;
|
|
1538
|
+
/** @deprecated */
|
|
1544
1539
|
games(input?: GamesInput): Promise<GamesReturn>;
|
|
1545
1540
|
games__next(input?: GamesInput__Next): Promise<GamesReturn>;
|
|
1546
1541
|
recommendedGames(input?: RecommendedGamesInput): Promise<RecommendedGamesReturn>;
|
|
1547
1542
|
gameSession(id: string, gameProvider?: GameProvider): Promise<GameSessionReturn>;
|
|
1548
1543
|
createGameSession(input: CreateGameSessionInput): Promise<CreateGameSessionReturn>;
|
|
1549
1544
|
endGameSession(id: string, gameProvider?: GameProvider): Promise<EndGameSessionReturn>;
|
|
1550
|
-
markGameAsFavorite(input: MarkGameAsFavoriteInput): Promise<
|
|
1551
|
-
unmarkGameAsFavorite(input: UnmarkGameAsFavoriteInput): Promise<
|
|
1545
|
+
markGameAsFavorite(input: MarkGameAsFavoriteInput): Promise<MarkGameAsFavoriteReturn>;
|
|
1546
|
+
unmarkGameAsFavorite(input: UnmarkGameAsFavoriteInput): Promise<UnmarkGameAsFavoriteReturn>;
|
|
1552
1547
|
favoriteGames(): Promise<FavoriteGamesReturn>;
|
|
1553
1548
|
file(id: string): Promise<FileReturn>;
|
|
1554
1549
|
uploadImageFile(input: UploadImageFileInput): Promise<UploadImageFileReturn>;
|
|
@@ -1568,7 +1563,6 @@ declare class Sdk {
|
|
|
1568
1563
|
markMessageAsRead(id: string): Promise<MarkMessageAsReadReturn>;
|
|
1569
1564
|
markAllMessageAsRead(): Promise<MarkAllMessagesAsReadReturn>;
|
|
1570
1565
|
claimReward(id: string): Promise<ClaimRewardReturn>;
|
|
1571
|
-
bonuses(): Promise<BonusesReturn>;
|
|
1572
1566
|
onboardingStatus(): Promise<OnboardingStatusReturn>;
|
|
1573
1567
|
completeOnboarding(input: CompleteOnboardingInput): Promise<CompleteOnboardingReturn>;
|
|
1574
1568
|
skipOnboarding(): Promise<SkipOnboardingReturn>;
|
|
@@ -1582,4 +1576,4 @@ declare class Sdk {
|
|
|
1582
1576
|
private formatYmd;
|
|
1583
1577
|
}
|
|
1584
1578
|
|
|
1585
|
-
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
|
|
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -158,7 +158,7 @@ interface DepositRecordsQueryVariables {
|
|
|
158
158
|
dateTimeLastUpdated?: DateFilterField;
|
|
159
159
|
};
|
|
160
160
|
}
|
|
161
|
-
type CreateDepositError$1 = 'DepositPromoMaximumAmountExceededError' | 'DepositPromoMinimumAmountNotMetError' | 'MaximumDepositAmountExceededError' | 'MinimumDepositAmountNotMetError' | 'MinimumFirstDepositAmountNotMetError' | 'PromoNotEnabledError' | 'WalletDoesNotExistError' | 'ReCAPTCHAVerificationFailedError';
|
|
161
|
+
type CreateDepositError$1 = 'DepositPromoMaximumAmountExceededError' | 'DepositPromoMinimumAmountNotMetError' | 'MaximumDepositAmountExceededError' | 'MinimumDepositAmountNotMetError' | 'MinimumFirstDepositAmountNotMetError' | 'PromoNotEnabledError' | 'WalletDoesNotExistError' | 'ReCAPTCHAVerificationFailedError' | 'UPIReferenceNotAvailableError';
|
|
162
162
|
type Bank$1 = 'AUBKPHMM' | 'MBTCPHMM' | 'BNORPHMM' | 'MKRUPHM1';
|
|
163
163
|
type WithdrawalType$1 = 'MANUAL' | 'BANK' | 'GCASH' | 'MAYA_APP' | 'INSTAPAY' | 'MANUAL_UPI' | 'MANUAL_BANK';
|
|
164
164
|
type WithdrawalStatus$1 = 'PENDING' | 'ACCEPTED' | 'APPROVED' | 'REJECTED' | 'CONFIRMED' | 'CANCELLED' | 'FAILED';
|
|
@@ -744,22 +744,15 @@ type CreateGameSessionReturn = OperationResult<CreateGameSessionError, {
|
|
|
744
744
|
id: string;
|
|
745
745
|
}>;
|
|
746
746
|
type EndGameSessionReturn = OperationResult;
|
|
747
|
+
type MarkGameAsFavoriteReturn = OperationResult;
|
|
747
748
|
interface MarkGameAsFavoriteInput {
|
|
748
749
|
id: string;
|
|
749
750
|
}
|
|
750
|
-
type
|
|
751
|
+
type UnmarkGameAsFavoriteReturn = OperationResult;
|
|
751
752
|
interface UnmarkGameAsFavoriteInput {
|
|
752
753
|
id: string;
|
|
753
754
|
}
|
|
754
|
-
type
|
|
755
|
-
interface FavoriteGame {
|
|
756
|
-
id: string;
|
|
757
|
-
name: string;
|
|
758
|
-
type: GameType;
|
|
759
|
-
provider: GameProvider;
|
|
760
|
-
favorite: boolean;
|
|
761
|
-
}
|
|
762
|
-
type FavoriteGamesReturn = OperationResult<never, FavoriteGame[]>;
|
|
755
|
+
type FavoriteGamesReturn = OperationResult<never, Game[]>;
|
|
763
756
|
type AnnouncementType = UnionAlias<AnnouncementType$1>;
|
|
764
757
|
type AnnouncementStatus = UnionAlias<AnnouncementStatus$1>;
|
|
765
758
|
interface Announcement {
|
|
@@ -1536,19 +1529,21 @@ declare class Sdk {
|
|
|
1536
1529
|
cashbacks(): Promise<CashbacksReturn>;
|
|
1537
1530
|
/** @deprecated */
|
|
1538
1531
|
bonus(): Promise<BonusReturn>;
|
|
1532
|
+
bonuses(): Promise<BonusesReturn>;
|
|
1539
1533
|
cashbackBonuses(): Promise<CashbackBonusReturn>;
|
|
1540
1534
|
claimCashbackBonus(id: string): Promise<ClaimCashbackBonusReturn>;
|
|
1541
1535
|
claimSpotBonus(code: string): Promise<ClaimSpotBonusReturn>;
|
|
1542
1536
|
promoByCode(code: string): Promise<PromoByCodeReturn>;
|
|
1543
1537
|
game(id: string): Promise<GameReturn>;
|
|
1538
|
+
/** @deprecated */
|
|
1544
1539
|
games(input?: GamesInput): Promise<GamesReturn>;
|
|
1545
1540
|
games__next(input?: GamesInput__Next): Promise<GamesReturn>;
|
|
1546
1541
|
recommendedGames(input?: RecommendedGamesInput): Promise<RecommendedGamesReturn>;
|
|
1547
1542
|
gameSession(id: string, gameProvider?: GameProvider): Promise<GameSessionReturn>;
|
|
1548
1543
|
createGameSession(input: CreateGameSessionInput): Promise<CreateGameSessionReturn>;
|
|
1549
1544
|
endGameSession(id: string, gameProvider?: GameProvider): Promise<EndGameSessionReturn>;
|
|
1550
|
-
markGameAsFavorite(input: MarkGameAsFavoriteInput): Promise<
|
|
1551
|
-
unmarkGameAsFavorite(input: UnmarkGameAsFavoriteInput): Promise<
|
|
1545
|
+
markGameAsFavorite(input: MarkGameAsFavoriteInput): Promise<MarkGameAsFavoriteReturn>;
|
|
1546
|
+
unmarkGameAsFavorite(input: UnmarkGameAsFavoriteInput): Promise<UnmarkGameAsFavoriteReturn>;
|
|
1552
1547
|
favoriteGames(): Promise<FavoriteGamesReturn>;
|
|
1553
1548
|
file(id: string): Promise<FileReturn>;
|
|
1554
1549
|
uploadImageFile(input: UploadImageFileInput): Promise<UploadImageFileReturn>;
|
|
@@ -1568,7 +1563,6 @@ declare class Sdk {
|
|
|
1568
1563
|
markMessageAsRead(id: string): Promise<MarkMessageAsReadReturn>;
|
|
1569
1564
|
markAllMessageAsRead(): Promise<MarkAllMessagesAsReadReturn>;
|
|
1570
1565
|
claimReward(id: string): Promise<ClaimRewardReturn>;
|
|
1571
|
-
bonuses(): Promise<BonusesReturn>;
|
|
1572
1566
|
onboardingStatus(): Promise<OnboardingStatusReturn>;
|
|
1573
1567
|
completeOnboarding(input: CompleteOnboardingInput): Promise<CompleteOnboardingReturn>;
|
|
1574
1568
|
skipOnboarding(): Promise<SkipOnboardingReturn>;
|
|
@@ -1582,4 +1576,4 @@ declare class Sdk {
|
|
|
1582
1576
|
private formatYmd;
|
|
1583
1577
|
}
|
|
1584
1578
|
|
|
1585
|
-
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
|
|
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 };
|
package/dist/index.js
CHANGED
|
@@ -357,6 +357,9 @@ var CREATE_GCASH_WITHDRAWAL_MUTATION = gql`
|
|
|
357
357
|
... on WalletDoesNotExistError {
|
|
358
358
|
__typename
|
|
359
359
|
}
|
|
360
|
+
... on TransactionPasswordNotSetError {
|
|
361
|
+
__typename
|
|
362
|
+
}
|
|
360
363
|
}
|
|
361
364
|
}
|
|
362
365
|
`;
|
|
@@ -405,6 +408,9 @@ var CREATE_MAYA_APP_WITHDRAWAL_MUTATION = gql`
|
|
|
405
408
|
... on WalletDoesNotExistError {
|
|
406
409
|
__typename
|
|
407
410
|
}
|
|
411
|
+
... on TransactionPasswordNotSetError {
|
|
412
|
+
__typename
|
|
413
|
+
}
|
|
408
414
|
}
|
|
409
415
|
}
|
|
410
416
|
`;
|
|
@@ -438,6 +444,9 @@ var CREATE_AIO_INSTAPAY_WITHDRAWAL_MUTATION = gql`
|
|
|
438
444
|
... on WalletDoesNotExistError {
|
|
439
445
|
__typename
|
|
440
446
|
}
|
|
447
|
+
... on TransactionPasswordNotSetError {
|
|
448
|
+
__typename
|
|
449
|
+
}
|
|
441
450
|
}
|
|
442
451
|
}
|
|
443
452
|
`;
|
|
@@ -726,6 +735,9 @@ var CREATE_MANUAL_UPI_DEPOSIT_MUTATION = gql`
|
|
|
726
735
|
... on WalletDoesNotExistError {
|
|
727
736
|
__typename
|
|
728
737
|
}
|
|
738
|
+
... on UPIReferenceNotAvailableError {
|
|
739
|
+
__typename
|
|
740
|
+
}
|
|
729
741
|
}
|
|
730
742
|
}
|
|
731
743
|
`;
|
|
@@ -1993,12 +2005,10 @@ var UNMARK_GAME_AS_FAVORITE = gql`
|
|
|
1993
2005
|
}
|
|
1994
2006
|
`;
|
|
1995
2007
|
var FAVORITE_GAMES_QUERY = gql`
|
|
1996
|
-
query
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
provider
|
|
2001
|
-
favorite
|
|
2008
|
+
query FavoriteGames {
|
|
2009
|
+
favoriteGames {
|
|
2010
|
+
id
|
|
2011
|
+
}
|
|
2002
2012
|
}
|
|
2003
2013
|
`;
|
|
2004
2014
|
|
|
@@ -2059,7 +2069,9 @@ function createOperationError(code) {
|
|
|
2059
2069
|
RateLimitExceededError: "Maximum number of requests reached",
|
|
2060
2070
|
RewardAlreadyClaimedError: "Reward is already claimed",
|
|
2061
2071
|
ReCAPTCHAVerificationFailedError: "Invalid reCAPTCHA",
|
|
2062
|
-
AccountSuspendedError: "Account is suspended"
|
|
2072
|
+
AccountSuspendedError: "Account is suspended",
|
|
2073
|
+
TransactionPasswordNotSetError: "Transaction password is not set",
|
|
2074
|
+
UPIReferenceNotAvailableError: "UPI reference is no longer available"
|
|
2063
2075
|
};
|
|
2064
2076
|
return {
|
|
2065
2077
|
name: code,
|
|
@@ -5366,6 +5378,9 @@ var Sdk = class {
|
|
|
5366
5378
|
});
|
|
5367
5379
|
}
|
|
5368
5380
|
async signIn(input) {
|
|
5381
|
+
if (input.type === "TOKEN") {
|
|
5382
|
+
console.warn("'TOKEN (signIn)' is deprecated. Please use 'SOCIALS' instead.");
|
|
5383
|
+
}
|
|
5369
5384
|
switch (input.type) {
|
|
5370
5385
|
case "NAME_AND_PASSWORD": {
|
|
5371
5386
|
const res = await this.sessionManager.create({
|
|
@@ -5495,6 +5510,7 @@ var Sdk = class {
|
|
|
5495
5510
|
/**/
|
|
5496
5511
|
/** @deprecated */
|
|
5497
5512
|
async platform() {
|
|
5513
|
+
console.warn("'platform' is deprecated. Please use 'platform__next' instead.");
|
|
5498
5514
|
const res = await this.accountService.platform();
|
|
5499
5515
|
if (!res.ok) return res;
|
|
5500
5516
|
return {
|
|
@@ -5535,6 +5551,7 @@ var Sdk = class {
|
|
|
5535
5551
|
* @deprecated use `createAccount__next`
|
|
5536
5552
|
*/
|
|
5537
5553
|
async createAccount(input) {
|
|
5554
|
+
console.warn("'createAccount' is deprecated. Please use 'createAccount__next' instead.");
|
|
5538
5555
|
const id = input.id ?? ObjectId.generate(ObjectType.Account).toString();
|
|
5539
5556
|
const res = await this.accountService.registerMemberAccount({
|
|
5540
5557
|
input: {
|
|
@@ -5688,6 +5705,9 @@ var Sdk = class {
|
|
|
5688
5705
|
* @deprecated use `sendVerificationCode__next`
|
|
5689
5706
|
*/
|
|
5690
5707
|
async sendVerificationCode(mobileNumber) {
|
|
5708
|
+
console.warn(
|
|
5709
|
+
"'sendVerificationCode' is deprecated. Please use 'sendVerificationCode__next' instead."
|
|
5710
|
+
);
|
|
5691
5711
|
return await this.accountService.sendVerificationCode({
|
|
5692
5712
|
input: {
|
|
5693
5713
|
channel: "SMS",
|
|
@@ -6141,6 +6161,7 @@ var Sdk = class {
|
|
|
6141
6161
|
}
|
|
6142
6162
|
/** @deprecated */
|
|
6143
6163
|
async bonus() {
|
|
6164
|
+
console.warn("'bonus' is deprecated. Please use 'bonuses' instead.");
|
|
6144
6165
|
const res = await this.walletService.bonus();
|
|
6145
6166
|
if (!res.ok) return res;
|
|
6146
6167
|
return {
|
|
@@ -6148,6 +6169,14 @@ var Sdk = class {
|
|
|
6148
6169
|
data: res.data ? this.transformer.transform.bonus(res.data) : null
|
|
6149
6170
|
};
|
|
6150
6171
|
}
|
|
6172
|
+
async bonuses() {
|
|
6173
|
+
const res = await this.walletService.bonuses();
|
|
6174
|
+
if (!res.ok) return res;
|
|
6175
|
+
return {
|
|
6176
|
+
ok: true,
|
|
6177
|
+
data: res.data.map(this.transformer.transform.bonus)
|
|
6178
|
+
};
|
|
6179
|
+
}
|
|
6151
6180
|
async cashbackBonuses() {
|
|
6152
6181
|
const res = await this.walletService.cashbackBonuses();
|
|
6153
6182
|
if (!res.ok) return res;
|
|
@@ -6183,7 +6212,9 @@ var Sdk = class {
|
|
|
6183
6212
|
data: res.data ? this.transformer.transform.game(res.data) : null
|
|
6184
6213
|
};
|
|
6185
6214
|
}
|
|
6215
|
+
/** @deprecated */
|
|
6186
6216
|
async games(input) {
|
|
6217
|
+
console.warn("'games' is deprecated. Please use 'games__next' instead.");
|
|
6187
6218
|
const res = await this.cmsPortalService.games(input);
|
|
6188
6219
|
if (!res.ok) return res;
|
|
6189
6220
|
return {
|
|
@@ -6328,7 +6359,29 @@ var Sdk = class {
|
|
|
6328
6359
|
return await this.walletService.unmarkGameAsFavorite({ input });
|
|
6329
6360
|
}
|
|
6330
6361
|
async favoriteGames() {
|
|
6331
|
-
|
|
6362
|
+
const res0 = await this.walletService.favoriteGames();
|
|
6363
|
+
const ids = res0.data?.length ? [...new Set(res0.data.map((e) => e.id))] : [];
|
|
6364
|
+
if (ids.length <= 0) {
|
|
6365
|
+
return {
|
|
6366
|
+
ok: true,
|
|
6367
|
+
data: []
|
|
6368
|
+
};
|
|
6369
|
+
}
|
|
6370
|
+
const res1 = await this.cmsPortalService.games({
|
|
6371
|
+
filter: {
|
|
6372
|
+
reference: {
|
|
6373
|
+
in: ids
|
|
6374
|
+
}
|
|
6375
|
+
}
|
|
6376
|
+
});
|
|
6377
|
+
if (!res1.ok) return res1;
|
|
6378
|
+
return {
|
|
6379
|
+
ok: true,
|
|
6380
|
+
data: res0.data?.map(({ id }) => {
|
|
6381
|
+
const game = res1.data.edges.find((e) => id === e.node.reference)?.node;
|
|
6382
|
+
return game ? this.transformer.transform.game(game) : null;
|
|
6383
|
+
}).filter(Boolean) ?? []
|
|
6384
|
+
};
|
|
6332
6385
|
}
|
|
6333
6386
|
/**/
|
|
6334
6387
|
/*+----------------------------------------+*/
|
|
@@ -6507,14 +6560,6 @@ var Sdk = class {
|
|
|
6507
6560
|
async claimReward(id) {
|
|
6508
6561
|
return await this.triggerService.claimReward({ id });
|
|
6509
6562
|
}
|
|
6510
|
-
async bonuses() {
|
|
6511
|
-
const res = await this.walletService.bonuses();
|
|
6512
|
-
if (!res.ok) return res;
|
|
6513
|
-
return {
|
|
6514
|
-
ok: true,
|
|
6515
|
-
data: res.data.map(this.transformer.transform.bonus)
|
|
6516
|
-
};
|
|
6517
|
-
}
|
|
6518
6563
|
/**/
|
|
6519
6564
|
/*+----------------------------------------+*/
|
|
6520
6565
|
/*+ ONBOARDING +*/
|