@opexa/portal-sdk 0.35.13 → 0.36.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.d.cts CHANGED
@@ -348,6 +348,7 @@ interface MessageAction$1 {
348
348
  url: string;
349
349
  }
350
350
  type MessageIcon$1 = 'MESSAGE' | 'CHECK' | 'CELEBRATE' | 'ALERT';
351
+ type MessageType$1 = 'TOURNAMENT_PAYOUT' | 'IMAGE' | 'TEXT';
351
352
  interface MessagesQueryVariables {
352
353
  first?: number;
353
354
  after?: string;
@@ -368,6 +369,8 @@ type QuestType$1 = 'WAGERING' | 'DAILY_CHECKIN' | 'ONBOARDING';
368
369
  type QuestStatus$1 = 'IN_PROGRESS' | 'COMPLETED' | 'FAILED';
369
370
  type QuestProgramStatus$1 = 'ACTIVE' | 'INACTIVE' | 'DELETED';
370
371
  type JackpotStatus$1 = 'ACTIVE' | 'CLOSING' | 'DISABLED';
372
+ type JackpotCursor = 'POOL';
373
+ type JackpotPayoutCursor = 'AMOUNT';
371
374
  interface JackpotsQueryVariables {
372
375
  after?: string;
373
376
  first?: number;
@@ -378,7 +381,10 @@ interface JackpotsQueryVariables {
378
381
  drawing?: BooleanFilterField;
379
382
  deleted?: BooleanFilterField;
380
383
  };
381
- sort?: SortOrder;
384
+ sort?: {
385
+ order: SortOrder;
386
+ cursor: JackpotCursor;
387
+ };
382
388
  }
383
389
  interface JackpotPayoutsQueryVariables {
384
390
  after?: string;
@@ -389,7 +395,10 @@ interface JackpotPayoutsQueryVariables {
389
395
  jackpot?: ObjectIdFilterField;
390
396
  dateTimeCreated?: DateFilterField;
391
397
  };
392
- sort?: SortOrder;
398
+ sort?: {
399
+ order: SortOrder;
400
+ cursor: JackpotPayoutCursor;
401
+ };
393
402
  }
394
403
  type FCMDeviceType$1 = 'IOS' | 'ANDROID';
395
404
  type TournamentStatus$1 = 'ACTIVE' | 'INACTIVE' | 'DELETED';
@@ -1365,6 +1374,7 @@ type ClaimRewardError = UnionAlias<ClaimRewardError$1>;
1365
1374
  type MessageIcon = UnionAlias<MessageIcon$1>;
1366
1375
  interface MessageAction extends MessageAction$1 {
1367
1376
  }
1377
+ type MessageType = UnionAlias<MessageType$1>;
1368
1378
  interface Message {
1369
1379
  id: string;
1370
1380
  icon: MessageIcon;
@@ -1377,6 +1387,17 @@ interface Message {
1377
1387
  actions: MessageAction[];
1378
1388
  markedAsRead: boolean;
1379
1389
  dateTimeCreated: Date;
1390
+ type: MessageType;
1391
+ metadata: {
1392
+ tournament: {
1393
+ id: string;
1394
+ name: string;
1395
+ };
1396
+ payout: {
1397
+ id: string;
1398
+ amount: number;
1399
+ };
1400
+ } | null;
1380
1401
  }
1381
1402
  interface MessagesInput extends MessagesQueryVariables {
1382
1403
  }
@@ -1503,6 +1524,14 @@ interface TournamentLeaderboard {
1503
1524
  multiplier: number;
1504
1525
  dateTimeCreated: string;
1505
1526
  }
1527
+ interface TournamentPayout {
1528
+ id: string;
1529
+ amount: number;
1530
+ member: {
1531
+ id: string;
1532
+ name: string;
1533
+ };
1534
+ }
1506
1535
  interface Tournament {
1507
1536
  id: string;
1508
1537
  type: TournamentType;
@@ -1512,15 +1541,7 @@ interface Tournament {
1512
1541
  activationStartDateTime: Date;
1513
1542
  activationEndDateTime: Date;
1514
1543
  description: string;
1515
- topPayouts: {
1516
- id: string;
1517
- multiplier: number;
1518
- amount: number;
1519
- member: {
1520
- id: string;
1521
- name: string;
1522
- };
1523
- };
1544
+ topPayouts: TournamentPayout[];
1524
1545
  enabledGameProviders: GameProvider[];
1525
1546
  frequency: TournamentFrequency;
1526
1547
  mode: TournamentMode;
@@ -1534,6 +1555,7 @@ interface Tournament {
1534
1555
  url: string;
1535
1556
  mimeType: string;
1536
1557
  };
1558
+ rewardSettings: Partial<Record<string, string>>;
1537
1559
  currentLeaderboard: PaginatedQueryResult<'currentLeaderboard', TournamentLeaderboard>;
1538
1560
  previousLeaderboard: PaginatedQueryResult<'previousLeaderboard', TournamentLeaderboard>;
1539
1561
  }
@@ -1688,4 +1710,4 @@ declare class Sdk {
1688
1710
  private formatYmd;
1689
1711
  }
1690
1712
 
1691
- 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 TournamentFrequency, type TournamentLeaderboard, type TournamentMode, 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 };
1713
+ 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 MessageType, 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 TournamentFrequency, type TournamentLeaderboard, type TournamentMode, type TournamentPayout, 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
@@ -348,6 +348,7 @@ interface MessageAction$1 {
348
348
  url: string;
349
349
  }
350
350
  type MessageIcon$1 = 'MESSAGE' | 'CHECK' | 'CELEBRATE' | 'ALERT';
351
+ type MessageType$1 = 'TOURNAMENT_PAYOUT' | 'IMAGE' | 'TEXT';
351
352
  interface MessagesQueryVariables {
352
353
  first?: number;
353
354
  after?: string;
@@ -368,6 +369,8 @@ type QuestType$1 = 'WAGERING' | 'DAILY_CHECKIN' | 'ONBOARDING';
368
369
  type QuestStatus$1 = 'IN_PROGRESS' | 'COMPLETED' | 'FAILED';
369
370
  type QuestProgramStatus$1 = 'ACTIVE' | 'INACTIVE' | 'DELETED';
370
371
  type JackpotStatus$1 = 'ACTIVE' | 'CLOSING' | 'DISABLED';
372
+ type JackpotCursor = 'POOL';
373
+ type JackpotPayoutCursor = 'AMOUNT';
371
374
  interface JackpotsQueryVariables {
372
375
  after?: string;
373
376
  first?: number;
@@ -378,7 +381,10 @@ interface JackpotsQueryVariables {
378
381
  drawing?: BooleanFilterField;
379
382
  deleted?: BooleanFilterField;
380
383
  };
381
- sort?: SortOrder;
384
+ sort?: {
385
+ order: SortOrder;
386
+ cursor: JackpotCursor;
387
+ };
382
388
  }
383
389
  interface JackpotPayoutsQueryVariables {
384
390
  after?: string;
@@ -389,7 +395,10 @@ interface JackpotPayoutsQueryVariables {
389
395
  jackpot?: ObjectIdFilterField;
390
396
  dateTimeCreated?: DateFilterField;
391
397
  };
392
- sort?: SortOrder;
398
+ sort?: {
399
+ order: SortOrder;
400
+ cursor: JackpotPayoutCursor;
401
+ };
393
402
  }
394
403
  type FCMDeviceType$1 = 'IOS' | 'ANDROID';
395
404
  type TournamentStatus$1 = 'ACTIVE' | 'INACTIVE' | 'DELETED';
@@ -1365,6 +1374,7 @@ type ClaimRewardError = UnionAlias<ClaimRewardError$1>;
1365
1374
  type MessageIcon = UnionAlias<MessageIcon$1>;
1366
1375
  interface MessageAction extends MessageAction$1 {
1367
1376
  }
1377
+ type MessageType = UnionAlias<MessageType$1>;
1368
1378
  interface Message {
1369
1379
  id: string;
1370
1380
  icon: MessageIcon;
@@ -1377,6 +1387,17 @@ interface Message {
1377
1387
  actions: MessageAction[];
1378
1388
  markedAsRead: boolean;
1379
1389
  dateTimeCreated: Date;
1390
+ type: MessageType;
1391
+ metadata: {
1392
+ tournament: {
1393
+ id: string;
1394
+ name: string;
1395
+ };
1396
+ payout: {
1397
+ id: string;
1398
+ amount: number;
1399
+ };
1400
+ } | null;
1380
1401
  }
1381
1402
  interface MessagesInput extends MessagesQueryVariables {
1382
1403
  }
@@ -1503,6 +1524,14 @@ interface TournamentLeaderboard {
1503
1524
  multiplier: number;
1504
1525
  dateTimeCreated: string;
1505
1526
  }
1527
+ interface TournamentPayout {
1528
+ id: string;
1529
+ amount: number;
1530
+ member: {
1531
+ id: string;
1532
+ name: string;
1533
+ };
1534
+ }
1506
1535
  interface Tournament {
1507
1536
  id: string;
1508
1537
  type: TournamentType;
@@ -1512,15 +1541,7 @@ interface Tournament {
1512
1541
  activationStartDateTime: Date;
1513
1542
  activationEndDateTime: Date;
1514
1543
  description: string;
1515
- topPayouts: {
1516
- id: string;
1517
- multiplier: number;
1518
- amount: number;
1519
- member: {
1520
- id: string;
1521
- name: string;
1522
- };
1523
- };
1544
+ topPayouts: TournamentPayout[];
1524
1545
  enabledGameProviders: GameProvider[];
1525
1546
  frequency: TournamentFrequency;
1526
1547
  mode: TournamentMode;
@@ -1534,6 +1555,7 @@ interface Tournament {
1534
1555
  url: string;
1535
1556
  mimeType: string;
1536
1557
  };
1558
+ rewardSettings: Partial<Record<string, string>>;
1537
1559
  currentLeaderboard: PaginatedQueryResult<'currentLeaderboard', TournamentLeaderboard>;
1538
1560
  previousLeaderboard: PaginatedQueryResult<'previousLeaderboard', TournamentLeaderboard>;
1539
1561
  }
@@ -1688,4 +1710,4 @@ declare class Sdk {
1688
1710
  private formatYmd;
1689
1711
  }
1690
1712
 
1691
- 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 TournamentFrequency, type TournamentLeaderboard, type TournamentMode, 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 };
1713
+ 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 MessageType, 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 TournamentFrequency, type TournamentLeaderboard, type TournamentMode, type TournamentPayout, 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
@@ -1779,6 +1779,19 @@ var MESSAGES_QUERY = gql`
1779
1779
  }
1780
1780
  markedAsRead
1781
1781
  dateTimeCreated
1782
+ type
1783
+ metadata {
1784
+ ... on TournamentPayoutMessageMetadata {
1785
+ tournament {
1786
+ id
1787
+ name
1788
+ }
1789
+ payout {
1790
+ id
1791
+ amount
1792
+ }
1793
+ }
1794
+ }
1782
1795
  }
1783
1796
  }
1784
1797
  }
@@ -2136,6 +2149,7 @@ var TOURNAMENTS_QUERY = gql`
2136
2149
  url
2137
2150
  mimeType
2138
2151
  }
2152
+ rewardSettings
2139
2153
  }
2140
2154
  }
2141
2155
  }
@@ -5796,7 +5810,15 @@ var Transformer = class {
5796
5810
  content: data.content,
5797
5811
  actions: data.actions,
5798
5812
  markedAsRead: data.markedAsRead,
5799
- dateTimeCreated: new Date(data.dateTimeCreated)
5813
+ dateTimeCreated: new Date(data.dateTimeCreated),
5814
+ type: data.type,
5815
+ metadata: !data.metadata ? null : {
5816
+ tournament: data.metadata.tournament,
5817
+ payout: {
5818
+ id: data.metadata.payout.id,
5819
+ amount: parseDecimal(data.metadata.payout.amount, 0)
5820
+ }
5821
+ }
5800
5822
  };
5801
5823
  }
5802
5824
  instapayBank(data) {
@@ -5951,15 +5973,10 @@ var Transformer = class {
5951
5973
  status: data.status,
5952
5974
  activationEndDateTime: new Date(data.activationEndDateTime),
5953
5975
  activationStartDateTime: new Date(data.activationStartDateTime),
5954
- topPayouts: {
5955
- id: data.topPayouts.id,
5956
- multiplier: parseDecimal(data.topPayouts.multiplier, 0),
5957
- amount: parseDecimal(data.topPayouts.amount, 0),
5958
- member: {
5959
- id: data.topPayouts.member?.id,
5960
- name: data.topPayouts.member?.name
5961
- }
5962
- },
5976
+ topPayouts: data.topPayouts.map((payout) => ({
5977
+ ...payout,
5978
+ amount: parseDecimal(payout.amount, 0)
5979
+ })),
5963
5980
  enabledGameProviders: data.enabledGameProviders,
5964
5981
  frequency: data.frequency,
5965
5982
  mode: data.mode,
@@ -5973,6 +5990,7 @@ var Transformer = class {
5973
5990
  url: data.webBanner?.url,
5974
5991
  mimeType: data.webBanner?.mimeType
5975
5992
  },
5993
+ rewardSettings: data.rewardSettings,
5976
5994
  currentLeaderboard: {
5977
5995
  currentLeaderboard: data.currentLeaderboard?.edges.map(({ cursor, node }) => ({
5978
5996
  cursor,