@opexa/portal-sdk 0.55.0 → 0.55.1

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.cjs CHANGED
@@ -3102,10 +3102,21 @@ var TOURNAMENTS_QUERY = gql`
3102
3102
  }
3103
3103
  }
3104
3104
  `;
3105
- var TOURNAMENTS_TOTAL_COUNT_QUERY = gql`
3106
- query TournamentsTotalCount($filter: TournamentFilterInput) {
3107
- tournaments(first: 1, filter: $filter) {
3105
+ var TOURNAMENTS_IDS = gql`
3106
+ query TournamentsIds($first: Int, $after: Cursor, $filter: TournamentFilterInput) {
3107
+ tournaments(first: $first, after: $after, filter: $filter) {
3108
3108
  totalCount
3109
+ pageInfo {
3110
+ hasNextPage
3111
+ endCursor
3112
+ }
3113
+ edges {
3114
+ node {
3115
+ ... on MultiplierTournament {
3116
+ id
3117
+ }
3118
+ }
3119
+ }
3109
3120
  }
3110
3121
  }
3111
3122
  `;
@@ -4449,12 +4460,12 @@ var ReportService = class {
4449
4460
  data: res.data.tournaments
4450
4461
  };
4451
4462
  }
4452
- async tournamentsTotalCount(variables) {
4453
- const res = await this.client.request(TOURNAMENTS_TOTAL_COUNT_QUERY, variables);
4463
+ async tournamentsIds(variables) {
4464
+ const res = await this.client.request(TOURNAMENTS_IDS, variables);
4454
4465
  if (!res.ok) return res;
4455
4466
  return {
4456
4467
  ok: true,
4457
- data: res.data.tournaments?.totalCount ?? 0
4468
+ data: res.data.tournaments ?? 0
4458
4469
  };
4459
4470
  }
4460
4471
  async memberAchievements() {
@@ -10398,12 +10409,17 @@ var Sdk = class {
10398
10409
  }
10399
10410
  };
10400
10411
  }
10401
- async tournamentsTotalCount(input) {
10402
- const res = await this.reportService.tournamentsTotalCount(input);
10412
+ async tournamentsIds(input) {
10413
+ const res = await this.reportService.tournamentsIds(input);
10403
10414
  if (!res.ok) return res;
10404
10415
  return {
10405
10416
  ok: true,
10406
- data: res.data
10417
+ data: {
10418
+ tournaments: res.data.edges.map(({ node }) => node.id),
10419
+ hasNextPage: res.data.pageInfo.hasNextPage,
10420
+ totalCount: res.data.totalCount,
10421
+ endCursor: res.data.pageInfo.endCursor ?? void 0
10422
+ }
10407
10423
  };
10408
10424
  }
10409
10425
  /*