@opexa/portal-sdk 0.59.48 → 0.59.50

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.
@@ -1596,15 +1596,44 @@ var CASHBACKS_QUERY = gql`
1596
1596
  }
1597
1597
  `;
1598
1598
  var PROMOS_AND_CASHBACKS_QUERY = gql`
1599
- ${CASHBACK_FRAGMENT}
1600
- ${PROMO_FRAGMENT}
1599
+ ${FILE_FRAGMENT}
1601
1600
 
1602
1601
  query PromosAndCashbacks {
1603
1602
  cashbacks {
1604
- ...CashbackFragment
1603
+ id
1604
+ name
1605
+ banner {
1606
+ ...FileFragment
1607
+ }
1608
+ minimumCashback
1609
+ maximumMonthlyCashback
1610
+ status
1611
+ description
1612
+ activationStartDateTime
1613
+ activationEndDateTime
1614
+ turnoverContributionPercentagePerGameProvider
1615
+ dateTimeCreated
1616
+ dateTimeLastUpdated
1605
1617
  }
1606
1618
  promos {
1607
- ...PromoFragment
1619
+ id
1620
+ type
1621
+ name
1622
+ banner {
1623
+ ...FileFragment
1624
+ }
1625
+ status
1626
+ description
1627
+ maximumBonusAmount
1628
+ minimumBonusAmount
1629
+ maximumDepositAmount
1630
+ minimumDepositAmount
1631
+ depositBonusAmountPercentage
1632
+ activationStartDateTime
1633
+ turnoverRequirementContributionPercentagePerGameProvider
1634
+ activationEndDateTime
1635
+ dateTimeCreated
1636
+ dateTimeLastUpdated
1608
1637
  }
1609
1638
  }
1610
1639
  `;
@@ -3253,6 +3282,34 @@ var WALLET_GAMES_QUERY = gql`
3253
3282
  }
3254
3283
  }
3255
3284
  `;
3285
+ var PLATFORM_GAMES_QUERY = gql`
3286
+ query PlatformGames($first: Int, $after: Cursor, $filter: _GameFilterInput) {
3287
+ _games(first: $first, after: $after, filter: $filter) {
3288
+ totalCount
3289
+ pageInfo {
3290
+ hasNextPage
3291
+ endCursor
3292
+ }
3293
+ edges {
3294
+ cursor
3295
+ node {
3296
+ ... on _Game {
3297
+ id
3298
+ reference
3299
+ name
3300
+ displayName
3301
+ type
3302
+ provider
3303
+ status
3304
+ hidden
3305
+ hasFreeBet
3306
+ hasJackpot
3307
+ }
3308
+ }
3309
+ }
3310
+ }
3311
+ }
3312
+ `;
3256
3313
  var GOOGLE_CLIEND_ID_QUERY = gql`
3257
3314
  query GoogleClientId {
3258
3315
  googleClientId
@@ -6180,6 +6237,23 @@ var WalletService = class {
6180
6237
  data: res.data.games
6181
6238
  };
6182
6239
  }
6240
+ async platformGames(variables) {
6241
+ const res = await this.client.request(PLATFORM_GAMES_QUERY, variables);
6242
+ if (!res.ok) return res;
6243
+ if (!res.data._games) {
6244
+ return {
6245
+ ok: false,
6246
+ error: {
6247
+ name: "UnknownError",
6248
+ message: "Something went wrong."
6249
+ }
6250
+ };
6251
+ }
6252
+ return {
6253
+ ok: true,
6254
+ data: res.data._games
6255
+ };
6256
+ }
6183
6257
  async cabinetWithdrawal(variables) {
6184
6258
  const res = await this.client.request(CABINET_WITHDRAWAL_QUERY, variables);
6185
6259
  return res.ok ? { ok: res.ok, data: res.data.node } : res;