@opexa/portal-sdk 0.35.6 → 0.35.8
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 +1624 -1624
- package/dist/index.cjs +147 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +46 -1
- package/dist/index.d.ts +46 -1
- package/dist/index.js +147 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -392,6 +392,19 @@ interface JackpotPayoutsQueryVariables {
|
|
|
392
392
|
sort?: SortOrder;
|
|
393
393
|
}
|
|
394
394
|
type FCMDeviceType$1 = 'IOS' | 'ANDROID';
|
|
395
|
+
type TournamentStatus$1 = 'ACTIVE' | 'INACTIVE' | 'DELETED';
|
|
396
|
+
type TournamentType$1 = 'MULTIPLIER';
|
|
397
|
+
interface TournamentsQueryVariables {
|
|
398
|
+
after?: string;
|
|
399
|
+
first?: number;
|
|
400
|
+
filter?: {
|
|
401
|
+
id?: ObjectIdFilterField;
|
|
402
|
+
type?: EnumFilterField<TournamentType$1>;
|
|
403
|
+
status?: EnumFilterField<TournamentStatus$1>;
|
|
404
|
+
activationStartDateTime?: DateFilterField;
|
|
405
|
+
activationEndDateTime?: DateFilterField;
|
|
406
|
+
};
|
|
407
|
+
}
|
|
395
408
|
|
|
396
409
|
type Environment = 'production' | 'development';
|
|
397
410
|
type WithCursor<T> = T & {
|
|
@@ -1478,6 +1491,37 @@ interface UnregisterFCMDeviceInput {
|
|
|
1478
1491
|
}
|
|
1479
1492
|
type UnregisterFCMDeviceReturn = OperationResult;
|
|
1480
1493
|
type GoogleClientIdReturn = OperationResult<never, string | null>;
|
|
1494
|
+
type TournamentStatus = 'ACTIVE' | 'INACTIVE' | 'DELETED';
|
|
1495
|
+
type TournamentType = 'MULTIPLIER';
|
|
1496
|
+
interface TournamentsInput extends TournamentsQueryVariables {
|
|
1497
|
+
}
|
|
1498
|
+
interface TournamentLeaderboard {
|
|
1499
|
+
id: string;
|
|
1500
|
+
username: string;
|
|
1501
|
+
multiplier: number;
|
|
1502
|
+
dateTimeCreated: string;
|
|
1503
|
+
}
|
|
1504
|
+
interface Tournament {
|
|
1505
|
+
id: string;
|
|
1506
|
+
type: TournamentType;
|
|
1507
|
+
name: string;
|
|
1508
|
+
winnersCount: number;
|
|
1509
|
+
status: TournamentStatus;
|
|
1510
|
+
activationStartDateTime: Date;
|
|
1511
|
+
activationEndDateTime: Date;
|
|
1512
|
+
topPayouts: {
|
|
1513
|
+
id: string;
|
|
1514
|
+
multiplier: number;
|
|
1515
|
+
amount: number;
|
|
1516
|
+
member: {
|
|
1517
|
+
id: string;
|
|
1518
|
+
name: string;
|
|
1519
|
+
};
|
|
1520
|
+
};
|
|
1521
|
+
currentLeaderboard: PaginatedQueryResult<'currentLeaderboard', TournamentLeaderboard>;
|
|
1522
|
+
previousLeaderboard: PaginatedQueryResult<'previousLeaderboard', TournamentLeaderboard>;
|
|
1523
|
+
}
|
|
1524
|
+
type TournamentsReturn = OperationResult<never, PaginatedQueryResult<'tournaments', Tournament>>;
|
|
1481
1525
|
|
|
1482
1526
|
interface SdkConfig {
|
|
1483
1527
|
/**
|
|
@@ -1621,10 +1665,11 @@ declare class Sdk {
|
|
|
1621
1665
|
topWins(): Promise<TopWinsReturn>;
|
|
1622
1666
|
jackpots(input?: JackpotsInput): Promise<JackpotsReturn>;
|
|
1623
1667
|
jackpotPayouts(input?: JackpotPayoutsInput): Promise<JackpotPayoutsReturn>;
|
|
1668
|
+
tournaments(input?: TournamentsInput): Promise<TournamentsReturn>;
|
|
1624
1669
|
registerFCMDevice(input: RegisterFCMDeviceInput): Promise<RegisterFCMDeviceReturn>;
|
|
1625
1670
|
unregisterFCMDevice(input: UnregisterFCMDeviceInput): Promise<UnregisterFCMDeviceReturn>;
|
|
1626
1671
|
googleClientId(): Promise<GoogleClientIdReturn>;
|
|
1627
1672
|
private formatYmd;
|
|
1628
1673
|
}
|
|
1629
1674
|
|
|
1630
|
-
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 CreateGCashDirectWebpayDepositInput, 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 CreateSingleUseTokenError, type CreateSingleUseTokenReturn, 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 Environment, 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 GcashDirectWebpayDeposit, type GoogleClientIdReturn, 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 MobileNumberInrCreateAccountInput, type MobileNumberSignInInput, type MobileNumberSignInReturn, type MultiSelectField, type NameAndPasswordCreateAccountInput, type NameAndPasswordSignInInput, type NameAndPasswordSignInReturn, type NameCreateAccountInput, 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 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 SingleUseTokenSignInInput, type SingleUseTokenSignInReturn, 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 };
|
|
1675
|
+
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 CreateGCashDirectWebpayDepositInput, 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 CreateSingleUseTokenError, type CreateSingleUseTokenReturn, 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 Environment, 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 GcashDirectWebpayDeposit, type GoogleClientIdReturn, 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 MobileNumberInrCreateAccountInput, type MobileNumberSignInInput, type MobileNumberSignInReturn, type MultiSelectField, type NameAndPasswordCreateAccountInput, type NameAndPasswordSignInInput, type NameAndPasswordSignInReturn, type NameCreateAccountInput, 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 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 SingleUseTokenSignInInput, type SingleUseTokenSignInReturn, 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 Tournament, type TournamentLeaderboard, type TournamentStatus, type TournamentType, type TournamentsInput, type TournamentsReturn, 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
|
@@ -392,6 +392,19 @@ interface JackpotPayoutsQueryVariables {
|
|
|
392
392
|
sort?: SortOrder;
|
|
393
393
|
}
|
|
394
394
|
type FCMDeviceType$1 = 'IOS' | 'ANDROID';
|
|
395
|
+
type TournamentStatus$1 = 'ACTIVE' | 'INACTIVE' | 'DELETED';
|
|
396
|
+
type TournamentType$1 = 'MULTIPLIER';
|
|
397
|
+
interface TournamentsQueryVariables {
|
|
398
|
+
after?: string;
|
|
399
|
+
first?: number;
|
|
400
|
+
filter?: {
|
|
401
|
+
id?: ObjectIdFilterField;
|
|
402
|
+
type?: EnumFilterField<TournamentType$1>;
|
|
403
|
+
status?: EnumFilterField<TournamentStatus$1>;
|
|
404
|
+
activationStartDateTime?: DateFilterField;
|
|
405
|
+
activationEndDateTime?: DateFilterField;
|
|
406
|
+
};
|
|
407
|
+
}
|
|
395
408
|
|
|
396
409
|
type Environment = 'production' | 'development';
|
|
397
410
|
type WithCursor<T> = T & {
|
|
@@ -1478,6 +1491,37 @@ interface UnregisterFCMDeviceInput {
|
|
|
1478
1491
|
}
|
|
1479
1492
|
type UnregisterFCMDeviceReturn = OperationResult;
|
|
1480
1493
|
type GoogleClientIdReturn = OperationResult<never, string | null>;
|
|
1494
|
+
type TournamentStatus = 'ACTIVE' | 'INACTIVE' | 'DELETED';
|
|
1495
|
+
type TournamentType = 'MULTIPLIER';
|
|
1496
|
+
interface TournamentsInput extends TournamentsQueryVariables {
|
|
1497
|
+
}
|
|
1498
|
+
interface TournamentLeaderboard {
|
|
1499
|
+
id: string;
|
|
1500
|
+
username: string;
|
|
1501
|
+
multiplier: number;
|
|
1502
|
+
dateTimeCreated: string;
|
|
1503
|
+
}
|
|
1504
|
+
interface Tournament {
|
|
1505
|
+
id: string;
|
|
1506
|
+
type: TournamentType;
|
|
1507
|
+
name: string;
|
|
1508
|
+
winnersCount: number;
|
|
1509
|
+
status: TournamentStatus;
|
|
1510
|
+
activationStartDateTime: Date;
|
|
1511
|
+
activationEndDateTime: Date;
|
|
1512
|
+
topPayouts: {
|
|
1513
|
+
id: string;
|
|
1514
|
+
multiplier: number;
|
|
1515
|
+
amount: number;
|
|
1516
|
+
member: {
|
|
1517
|
+
id: string;
|
|
1518
|
+
name: string;
|
|
1519
|
+
};
|
|
1520
|
+
};
|
|
1521
|
+
currentLeaderboard: PaginatedQueryResult<'currentLeaderboard', TournamentLeaderboard>;
|
|
1522
|
+
previousLeaderboard: PaginatedQueryResult<'previousLeaderboard', TournamentLeaderboard>;
|
|
1523
|
+
}
|
|
1524
|
+
type TournamentsReturn = OperationResult<never, PaginatedQueryResult<'tournaments', Tournament>>;
|
|
1481
1525
|
|
|
1482
1526
|
interface SdkConfig {
|
|
1483
1527
|
/**
|
|
@@ -1621,10 +1665,11 @@ declare class Sdk {
|
|
|
1621
1665
|
topWins(): Promise<TopWinsReturn>;
|
|
1622
1666
|
jackpots(input?: JackpotsInput): Promise<JackpotsReturn>;
|
|
1623
1667
|
jackpotPayouts(input?: JackpotPayoutsInput): Promise<JackpotPayoutsReturn>;
|
|
1668
|
+
tournaments(input?: TournamentsInput): Promise<TournamentsReturn>;
|
|
1624
1669
|
registerFCMDevice(input: RegisterFCMDeviceInput): Promise<RegisterFCMDeviceReturn>;
|
|
1625
1670
|
unregisterFCMDevice(input: UnregisterFCMDeviceInput): Promise<UnregisterFCMDeviceReturn>;
|
|
1626
1671
|
googleClientId(): Promise<GoogleClientIdReturn>;
|
|
1627
1672
|
private formatYmd;
|
|
1628
1673
|
}
|
|
1629
1674
|
|
|
1630
|
-
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 CreateGCashDirectWebpayDepositInput, 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 CreateSingleUseTokenError, type CreateSingleUseTokenReturn, 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 Environment, 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 GcashDirectWebpayDeposit, type GoogleClientIdReturn, 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 MobileNumberInrCreateAccountInput, type MobileNumberSignInInput, type MobileNumberSignInReturn, type MultiSelectField, type NameAndPasswordCreateAccountInput, type NameAndPasswordSignInInput, type NameAndPasswordSignInReturn, type NameCreateAccountInput, 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 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 SingleUseTokenSignInInput, type SingleUseTokenSignInReturn, 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 };
|
|
1675
|
+
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 CreateGCashDirectWebpayDepositInput, 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 CreateSingleUseTokenError, type CreateSingleUseTokenReturn, 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 Environment, 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 GcashDirectWebpayDeposit, type GoogleClientIdReturn, 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 MobileNumberInrCreateAccountInput, type MobileNumberSignInInput, type MobileNumberSignInReturn, type MultiSelectField, type NameAndPasswordCreateAccountInput, type NameAndPasswordSignInInput, type NameAndPasswordSignInReturn, type NameCreateAccountInput, 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 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 SingleUseTokenSignInInput, type SingleUseTokenSignInReturn, 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 Tournament, type TournamentLeaderboard, type TournamentStatus, type TournamentType, type TournamentsInput, type TournamentsReturn, 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
|
@@ -811,6 +811,13 @@ var DEPOSIT_QUERY = gql`
|
|
|
811
811
|
vca
|
|
812
812
|
error
|
|
813
813
|
}
|
|
814
|
+
... on GCashDirectWebpayDeposit {
|
|
815
|
+
id
|
|
816
|
+
type
|
|
817
|
+
status
|
|
818
|
+
checkoutUrl
|
|
819
|
+
error
|
|
820
|
+
}
|
|
814
821
|
}
|
|
815
822
|
}
|
|
816
823
|
`;
|
|
@@ -2062,6 +2069,66 @@ var GOOGLE_CLIEND_ID_QUERY = gql`
|
|
|
2062
2069
|
googleClientId
|
|
2063
2070
|
}
|
|
2064
2071
|
`;
|
|
2072
|
+
var TOURNAMENTS_QUERY = gql`
|
|
2073
|
+
query Tournaments($first: Int, $after: Cursor, $filter: TournamentFilterInput) {
|
|
2074
|
+
tournaments(first: $first, after: $after, filter: $filter) {
|
|
2075
|
+
totalCount
|
|
2076
|
+
pageInfo {
|
|
2077
|
+
hasNextPage
|
|
2078
|
+
endCursor
|
|
2079
|
+
}
|
|
2080
|
+
edges {
|
|
2081
|
+
node {
|
|
2082
|
+
... on MultiplierTournament {
|
|
2083
|
+
id
|
|
2084
|
+
type
|
|
2085
|
+
name
|
|
2086
|
+
winnersCount
|
|
2087
|
+
status
|
|
2088
|
+
reward
|
|
2089
|
+
activationStartDateTime
|
|
2090
|
+
activationEndDateTime
|
|
2091
|
+
topPayouts {
|
|
2092
|
+
id
|
|
2093
|
+
multiplier
|
|
2094
|
+
amount
|
|
2095
|
+
member {
|
|
2096
|
+
id
|
|
2097
|
+
name
|
|
2098
|
+
}
|
|
2099
|
+
}
|
|
2100
|
+
currentLeaderboard {
|
|
2101
|
+
totalCount
|
|
2102
|
+
edges {
|
|
2103
|
+
node {
|
|
2104
|
+
... on TournamentLeaderboard {
|
|
2105
|
+
id
|
|
2106
|
+
username
|
|
2107
|
+
multiplier
|
|
2108
|
+
dateTimeCreated
|
|
2109
|
+
}
|
|
2110
|
+
}
|
|
2111
|
+
}
|
|
2112
|
+
}
|
|
2113
|
+
previousLeaderboard {
|
|
2114
|
+
totalCount
|
|
2115
|
+
edges {
|
|
2116
|
+
node {
|
|
2117
|
+
... on TournamentLeaderboard {
|
|
2118
|
+
id
|
|
2119
|
+
username
|
|
2120
|
+
multiplier
|
|
2121
|
+
dateTimeCreated
|
|
2122
|
+
}
|
|
2123
|
+
}
|
|
2124
|
+
}
|
|
2125
|
+
}
|
|
2126
|
+
}
|
|
2127
|
+
}
|
|
2128
|
+
}
|
|
2129
|
+
}
|
|
2130
|
+
}
|
|
2131
|
+
`;
|
|
2065
2132
|
|
|
2066
2133
|
// src/services/utils.ts
|
|
2067
2134
|
function createOperationError(code) {
|
|
@@ -3159,6 +3226,17 @@ var ReportService = class {
|
|
|
3159
3226
|
data: res.data.jackpotPayouts
|
|
3160
3227
|
};
|
|
3161
3228
|
}
|
|
3229
|
+
async tournaments(variables) {
|
|
3230
|
+
const res = await this.client.request(
|
|
3231
|
+
TOURNAMENTS_QUERY,
|
|
3232
|
+
variables
|
|
3233
|
+
);
|
|
3234
|
+
if (!res.ok) return res;
|
|
3235
|
+
return {
|
|
3236
|
+
ok: true,
|
|
3237
|
+
data: res.data.tournaments
|
|
3238
|
+
};
|
|
3239
|
+
}
|
|
3162
3240
|
};
|
|
3163
3241
|
|
|
3164
3242
|
// src/services/trigger.service.ts
|
|
@@ -5019,7 +5097,8 @@ var Transformer = class {
|
|
|
5019
5097
|
quest: this.quest.bind(this),
|
|
5020
5098
|
topWin: this.topWin.bind(this),
|
|
5021
5099
|
jackpots: this.jackpots.bind(this),
|
|
5022
|
-
jackpotPayouts: this.jackpotPayouts.bind(this)
|
|
5100
|
+
jackpotPayouts: this.jackpotPayouts.bind(this),
|
|
5101
|
+
tournaments: this.tournaments.bind(this)
|
|
5023
5102
|
};
|
|
5024
5103
|
}
|
|
5025
5104
|
site(data) {
|
|
@@ -5841,6 +5920,52 @@ var Transformer = class {
|
|
|
5841
5920
|
amount: parseDecimal(data.amount, 0)
|
|
5842
5921
|
};
|
|
5843
5922
|
}
|
|
5923
|
+
tournamentsLeaderboard(data) {
|
|
5924
|
+
return {
|
|
5925
|
+
id: data.id,
|
|
5926
|
+
username: data.username,
|
|
5927
|
+
multiplier: parseDecimal(data.multiplier, 0),
|
|
5928
|
+
dateTimeCreated: data.dateTimeCreated
|
|
5929
|
+
};
|
|
5930
|
+
}
|
|
5931
|
+
tournaments(data) {
|
|
5932
|
+
return {
|
|
5933
|
+
id: data.id,
|
|
5934
|
+
type: data.type,
|
|
5935
|
+
name: data.name,
|
|
5936
|
+
winnersCount: parseDecimal(data.winnersCount, 0),
|
|
5937
|
+
status: data.status,
|
|
5938
|
+
activationEndDateTime: new Date(data.activationEndDateTime),
|
|
5939
|
+
activationStartDateTime: new Date(data.activationStartDateTime),
|
|
5940
|
+
topPayouts: {
|
|
5941
|
+
id: data.topPayouts.id,
|
|
5942
|
+
multiplier: parseDecimal(data.topPayouts.multiplier, 0),
|
|
5943
|
+
amount: parseDecimal(data.topPayouts.amount, 0),
|
|
5944
|
+
member: {
|
|
5945
|
+
id: data.topPayouts.member.id,
|
|
5946
|
+
name: data.topPayouts.member.name
|
|
5947
|
+
}
|
|
5948
|
+
},
|
|
5949
|
+
currentLeaderboard: {
|
|
5950
|
+
currentLeaderboard: data.currentLeaderboard.edges.map(({ cursor, node }) => ({
|
|
5951
|
+
cursor,
|
|
5952
|
+
...this.tournamentsLeaderboard(node)
|
|
5953
|
+
})),
|
|
5954
|
+
totalCount: data.currentLeaderboard.totalCount,
|
|
5955
|
+
hasNextPage: data.currentLeaderboard.pageInfo.hasNextPage,
|
|
5956
|
+
endCursor: data.currentLeaderboard.pageInfo.endCursor ?? undefined
|
|
5957
|
+
},
|
|
5958
|
+
previousLeaderboard: {
|
|
5959
|
+
previousLeaderboard: data.previousLeaderboard.edges.map(({ cursor, node }) => ({
|
|
5960
|
+
cursor,
|
|
5961
|
+
...this.tournamentsLeaderboard(node)
|
|
5962
|
+
})),
|
|
5963
|
+
totalCount: data.previousLeaderboard.totalCount,
|
|
5964
|
+
hasNextPage: data.previousLeaderboard.pageInfo.hasNextPage,
|
|
5965
|
+
endCursor: data.previousLeaderboard.pageInfo.endCursor ?? undefined
|
|
5966
|
+
}
|
|
5967
|
+
};
|
|
5968
|
+
}
|
|
5844
5969
|
};
|
|
5845
5970
|
|
|
5846
5971
|
// src/sdk/sdk.ts
|
|
@@ -7406,6 +7531,27 @@ var Sdk = class {
|
|
|
7406
7531
|
}
|
|
7407
7532
|
};
|
|
7408
7533
|
}
|
|
7534
|
+
/*
|
|
7535
|
+
*=============================================
|
|
7536
|
+
* TOURNAMENTS
|
|
7537
|
+
*=============================================
|
|
7538
|
+
*/
|
|
7539
|
+
async tournaments(input) {
|
|
7540
|
+
const res = await this.reportService.tournaments(input);
|
|
7541
|
+
if (!res.ok) return res;
|
|
7542
|
+
return {
|
|
7543
|
+
ok: true,
|
|
7544
|
+
data: {
|
|
7545
|
+
tournaments: res.data.edges.map(({ cursor, node }) => ({
|
|
7546
|
+
...this.transformer.transform.tournaments(node),
|
|
7547
|
+
cursor
|
|
7548
|
+
})),
|
|
7549
|
+
hasNextPage: res.data.pageInfo.hasNextPage,
|
|
7550
|
+
totalCount: res.data.totalCount,
|
|
7551
|
+
endCursor: res.data.pageInfo.endCursor ?? undefined
|
|
7552
|
+
}
|
|
7553
|
+
};
|
|
7554
|
+
}
|
|
7409
7555
|
/*
|
|
7410
7556
|
*=============================================
|
|
7411
7557
|
* FCM/FIREBASE
|