@opexa/portal-sdk 0.59.123 → 0.59.124

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.
@@ -3505,6 +3505,29 @@ var WALLET_GAMES_BY_NAME_QUERY = gql`
3505
3505
  }
3506
3506
  }
3507
3507
  `;
3508
+ var WALLET_GAME_CARDS_BY_NAME_QUERY = gql`
3509
+ query WalletGameCardsByName(
3510
+ $search: String!
3511
+ $first: Int
3512
+ $filter: _GameFilterInput
3513
+ ) {
3514
+ _gamesByName(search: $search, first: $first, filter: $filter) {
3515
+ id
3516
+ reference
3517
+ name
3518
+ displayName
3519
+ type
3520
+ provider
3521
+ status
3522
+ hidden
3523
+ hasFreeBet
3524
+ hasJackpot
3525
+ image {
3526
+ url
3527
+ }
3528
+ }
3529
+ }
3530
+ `;
3508
3531
  var GAME_GROUPS_QUERY = gql`
3509
3532
  query GameGroups(
3510
3533
  $first: Int
@@ -6978,6 +7001,20 @@ var WalletService = class {
6978
7001
  data: res.data._gamesByName
6979
7002
  };
6980
7003
  }
7004
+ async _gameCardsByName(variables) {
7005
+ const res = await this.client.request(WALLET_GAME_CARDS_BY_NAME_QUERY, variables);
7006
+ if (!res.ok) return res;
7007
+ if (!res.data._gamesByName) {
7008
+ return {
7009
+ ok: false,
7010
+ error: {
7011
+ name: "UnknownError",
7012
+ message: "Something went wrong."
7013
+ }
7014
+ };
7015
+ }
7016
+ return { ok: true, data: res.data._gamesByName };
7017
+ }
6981
7018
  async cabinetWithdrawal(variables) {
6982
7019
  const res = await this.client.request(CABINET_WITHDRAWAL_QUERY, variables);
6983
7020
  return res.ok ? { ok: res.ok, data: res.data.node } : res;