@opexa/portal-sdk 0.59.88 → 0.59.89

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.
@@ -3806,6 +3806,79 @@ var MEMBER_FREE_BET_DROPS_QUERY = gql`
3806
3806
  }
3807
3807
  }
3808
3808
  `;
3809
+ var _GAMES_QUERY = gql`
3810
+ query _Games($first: Int, $after: Cursor, $filter: GameFilterInput) {
3811
+ games(first: $first, after: $after, filter: $filter) {
3812
+ edges {
3813
+ cursor
3814
+ node {
3815
+ ... on Game {
3816
+ id
3817
+ name
3818
+ displayName
3819
+ type
3820
+ provider
3821
+ reference
3822
+ hidden
3823
+ image
3824
+ }
3825
+ }
3826
+ }
3827
+ pageInfo {
3828
+ hasNextPage
3829
+ endCursor
3830
+ }
3831
+ }
3832
+ }
3833
+ `;
3834
+ var _GAME_GROUPS_QUERY = gql`
3835
+ query _GameGroups {
3836
+ gameGroups {
3837
+ id
3838
+ name
3839
+ }
3840
+ }
3841
+ `;
3842
+ var _GAME_GROUP_NODE_QUERY = gql`
3843
+ query _GameGroupNode($id: ObjectId!, $limit: Int, $offset: Int) {
3844
+ node(id: $id) {
3845
+ ... on GameGroup {
3846
+ id
3847
+ name
3848
+ games(limit: $limit, offset: $offset) {
3849
+ id
3850
+ name
3851
+ displayName
3852
+ type
3853
+ provider
3854
+ reference
3855
+ hidden
3856
+ image
3857
+ }
3858
+ }
3859
+ }
3860
+ }
3861
+ `;
3862
+ var _GAME_NODE_QUERY = gql`
3863
+ query _GameNode($id: ObjectId!) {
3864
+ node(id: $id) {
3865
+ ... on Game {
3866
+ id
3867
+ name
3868
+ displayName
3869
+ type
3870
+ provider
3871
+ reference
3872
+ hidden
3873
+ image
3874
+ groups {
3875
+ id
3876
+ name
3877
+ }
3878
+ }
3879
+ }
3880
+ }
3881
+ `;
3809
3882
 
3810
3883
  // src/services/utils.ts
3811
3884
  function createOperationError(code) {
@@ -5180,6 +5253,66 @@ var PortalService = class {
5180
5253
  data: res.data
5181
5254
  };
5182
5255
  }
5256
+ async _games(variables) {
5257
+ const res = await this.client.request(
5258
+ _GAMES_QUERY,
5259
+ variables
5260
+ );
5261
+ if (!res.ok) return res;
5262
+ if (!res.data.games) {
5263
+ return {
5264
+ ok: false,
5265
+ error: {
5266
+ name: "UnknownError",
5267
+ message: "Something went wrong."
5268
+ }
5269
+ };
5270
+ }
5271
+ return {
5272
+ ok: true,
5273
+ data: res.data.games
5274
+ };
5275
+ }
5276
+ async _gameGroups() {
5277
+ const res = await this.client.request(
5278
+ _GAME_GROUPS_QUERY
5279
+ );
5280
+ if (!res.ok) return res;
5281
+ if (!res.data.gameGroups) {
5282
+ return {
5283
+ ok: false,
5284
+ error: {
5285
+ name: "UnknownError",
5286
+ message: "Something went wrong."
5287
+ }
5288
+ };
5289
+ }
5290
+ return {
5291
+ ok: true,
5292
+ data: res.data.gameGroups
5293
+ };
5294
+ }
5295
+ async _gameGroupNode(id, limit, offset) {
5296
+ const res = await this.client.request(
5297
+ _GAME_GROUP_NODE_QUERY,
5298
+ { id, limit, offset }
5299
+ );
5300
+ if (!res.ok) return res;
5301
+ return {
5302
+ ok: true,
5303
+ data: res.data.node
5304
+ };
5305
+ }
5306
+ async _gameNode(id) {
5307
+ const res = await this.client.request(_GAME_NODE_QUERY, {
5308
+ id
5309
+ });
5310
+ if (!res.ok) return res;
5311
+ return {
5312
+ ok: true,
5313
+ data: res.data.node
5314
+ };
5315
+ }
5183
5316
  async recommendedGames() {
5184
5317
  const res = await this.client.request(
5185
5318
  RECOMMENDED_GAMES_QUERY
@@ -6640,5 +6773,5 @@ var ExtensionService = class {
6640
6773
  };
6641
6774
 
6642
6775
  export { AccountService, AuthService, CmsPortalService, ExtensionService, FileService, GameService, PortalService, ReportService, TriggerService, WalletService, getFingerPrint };
6643
- //# sourceMappingURL=chunk-AOATA4DJ.js.map
6644
- //# sourceMappingURL=chunk-AOATA4DJ.js.map
6776
+ //# sourceMappingURL=chunk-TC4UBBE5.js.map
6777
+ //# sourceMappingURL=chunk-TC4UBBE5.js.map