@opexa/portal-sdk 0.59.48 → 0.59.49

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.
@@ -3253,6 +3253,34 @@ var WALLET_GAMES_QUERY = gql`
3253
3253
  }
3254
3254
  }
3255
3255
  `;
3256
+ var PLATFORM_GAMES_QUERY = gql`
3257
+ query PlatformGames($first: Int, $after: Cursor, $filter: _GameFilterInput) {
3258
+ _games(first: $first, after: $after, filter: $filter) {
3259
+ totalCount
3260
+ pageInfo {
3261
+ hasNextPage
3262
+ endCursor
3263
+ }
3264
+ edges {
3265
+ cursor
3266
+ node {
3267
+ ... on _Game {
3268
+ id
3269
+ reference
3270
+ name
3271
+ displayName
3272
+ type
3273
+ provider
3274
+ status
3275
+ hidden
3276
+ hasFreeBet
3277
+ hasJackpot
3278
+ }
3279
+ }
3280
+ }
3281
+ }
3282
+ }
3283
+ `;
3256
3284
  var GOOGLE_CLIEND_ID_QUERY = gql`
3257
3285
  query GoogleClientId {
3258
3286
  googleClientId
@@ -6180,6 +6208,23 @@ var WalletService = class {
6180
6208
  data: res.data.games
6181
6209
  };
6182
6210
  }
6211
+ async platformGames(variables) {
6212
+ const res = await this.client.request(PLATFORM_GAMES_QUERY, variables);
6213
+ if (!res.ok) return res;
6214
+ if (!res.data._games) {
6215
+ return {
6216
+ ok: false,
6217
+ error: {
6218
+ name: "UnknownError",
6219
+ message: "Something went wrong."
6220
+ }
6221
+ };
6222
+ }
6223
+ return {
6224
+ ok: true,
6225
+ data: res.data._games
6226
+ };
6227
+ }
6183
6228
  async cabinetWithdrawal(variables) {
6184
6229
  const res = await this.client.request(CABINET_WITHDRAWAL_QUERY, variables);
6185
6230
  return res.ok ? { ok: res.ok, data: res.data.node } : res;