@timardex/cluemart-shared 1.4.87 → 1.4.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.
@@ -73,8 +73,6 @@ __export(graphql_exports, {
73
73
  useGetEvents: () => useGetEvents,
74
74
  useGetEventsByRegion: () => useGetEventsByRegion,
75
75
  useGetEventsNearMe: () => useGetEventsNearMe,
76
- useGetGame: () => useGetGame,
77
- useGetGames: () => useGetGames,
78
76
  useGetNotificationCount: () => useGetNotificationCount,
79
77
  useGetNotificationCountSubscription: () => useGetNotificationCountSubscription,
80
78
  useGetPartner: () => useGetPartner,
@@ -107,7 +105,6 @@ __export(graphql_exports, {
107
105
  useGetVendorRelations: () => useGetVendorRelations,
108
106
  useGetVendors: () => useGetVendors,
109
107
  useGetVendorsByRegion: () => useGetVendorsByRegion,
110
- useLeaveGame: () => useLeaveGame,
111
108
  useLogin: () => useLogin,
112
109
  useLogout: () => useLogout,
113
110
  useMarkAllNotificationsRead: () => useMarkAllNotificationsRead,
@@ -129,7 +126,6 @@ __export(graphql_exports, {
129
126
  useSelectPackage: () => useSelectPackage,
130
127
  useSelectStandardPackage: () => useSelectStandardPackage,
131
128
  useSendChatMessage: () => useSendChatMessage,
132
- useStartGame: () => useStartGame,
133
129
  useToggleChatMessageLike: () => useToggleChatMessageLike,
134
130
  useUpdateAd: () => useUpdateAd,
135
131
  useUpdateAppSettings: () => useUpdateAppSettings,
@@ -258,8 +254,8 @@ var TERMS_AGREEMENT_FIELDS_FRAGMENT = import_client2.gql`
258
254
  timestamp
259
255
  }
260
256
  `;
261
- var DATETIME_FIELDS_FRAGMENT = import_client2.gql`
262
- fragment DateTimeFields on DateTimeType {
257
+ var EVENT_DATETIME_FIELDS_FRAGMENT = import_client2.gql`
258
+ fragment EventDateTimeFields on EventDateTimeType {
263
259
  dateStatus
264
260
  endDate
265
261
  endTime
@@ -278,7 +274,7 @@ var USER_ACTIVITY_FIELDS_FRAGMENT = import_client2.gql`
278
274
  events {
279
275
  resourceId
280
276
  dateTime {
281
- ...DateTimeFields
277
+ ...EventDateTimeFields
282
278
  }
283
279
  }
284
280
  }
@@ -286,7 +282,7 @@ var USER_ACTIVITY_FIELDS_FRAGMENT = import_client2.gql`
286
282
  events {
287
283
  resourceId
288
284
  dateTime {
289
- ...DateTimeFields
285
+ ...EventDateTimeFields
290
286
  }
291
287
  }
292
288
  }
@@ -294,12 +290,12 @@ var USER_ACTIVITY_FIELDS_FRAGMENT = import_client2.gql`
294
290
  events {
295
291
  resourceId
296
292
  dateTime {
297
- ...DateTimeFields
293
+ ...EventDateTimeFields
298
294
  }
299
295
  }
300
296
  }
301
297
  }
302
- ${DATETIME_FIELDS_FRAGMENT}
298
+ ${EVENT_DATETIME_FIELDS_FRAGMENT}
303
299
  `;
304
300
  var USER_FIELDS_FRAGMENT = import_client2.gql`
305
301
  fragment UserFields on UserType {
@@ -316,14 +312,12 @@ var USER_FIELDS_FRAGMENT = import_client2.gql`
316
312
  email
317
313
  events
318
314
  firstName
319
- games
320
315
  isTester
321
316
  lastName
322
317
  licences {
323
318
  ...LicenceFields
324
319
  }
325
320
  partner
326
- points
327
321
  platform
328
322
  preferredRegion
329
323
  promoCodes
@@ -409,7 +403,7 @@ var EVENT_LIST_ITEM = import_client2.gql`
409
403
  }
410
404
  createdAt
411
405
  dateTime {
412
- ...DateTimeFields
406
+ ...EventDateTimeFields
413
407
  }
414
408
  deletedAt
415
409
  description
@@ -437,7 +431,7 @@ var EVENT_LIST_ITEM = import_client2.gql`
437
431
  reviewCount
438
432
  updatedAt
439
433
  }
440
- ${DATETIME_FIELDS_FRAGMENT}
434
+ ${EVENT_DATETIME_FIELDS_FRAGMENT}
441
435
  ${LOCATION_FIELDS_FRAGMENT}
442
436
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
443
437
  ${RELATION_DATES_FRAGMENT}
@@ -497,7 +491,7 @@ var EVENT = import_client3.gql`
497
491
  ...ContactDetailsFields
498
492
  }
499
493
  dateTime {
500
- ...DateTimeFields
494
+ ...EventDateTimeFields
501
495
  }
502
496
  description
503
497
  deletedAt
@@ -542,7 +536,7 @@ var EVENT = import_client3.gql`
542
536
  }
543
537
  updatedAt
544
538
  }
545
- ${DATETIME_FIELDS_FRAGMENT}
539
+ ${EVENT_DATETIME_FIELDS_FRAGMENT}
546
540
  ${LOCATION_FIELDS_FRAGMENT}
547
541
  ${OWNER_FIELDS_FRAGMENT}
548
542
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
@@ -770,14 +764,14 @@ var VENDOR_INFO = import_client4.gql`
770
764
  var UNREGISTERED_VENDOR_INVITATION_FRAGMENT = import_client4.gql`
771
765
  fragment UnregisteredVendorInvitationFields on UnregisteredVendorInvitationType {
772
766
  dateTime {
773
- ...DateTimeFields
767
+ ...EventDateTimeFields
774
768
  }
775
769
  eventId
776
770
  location {
777
771
  ...LocationFields
778
772
  }
779
773
  }
780
- ${DATETIME_FIELDS_FRAGMENT}
774
+ ${EVENT_DATETIME_FIELDS_FRAGMENT}
781
775
  ${LOCATION_FIELDS_FRAGMENT}
782
776
  `;
783
777
  var UNREGISTERED_VENDOR = import_client4.gql`
@@ -2048,7 +2042,7 @@ var GET_EVENT_RELATIONS = import_client30.gql`
2048
2042
  ${RELATION_FIELDS_FRAGMENT}
2049
2043
  `;
2050
2044
  var GET_VENDOR_RELATIONS = import_client30.gql`
2051
- query getVendorRelations($vendorId: ID!) {
2045
+ query getVendorRelations($vendorId: ID) {
2052
2046
  vendorRelations(vendorId: $vendorId) {
2053
2047
  ...RelationFields
2054
2048
  }
@@ -3330,79 +3324,15 @@ var useSearchPartners = (search, region) => {
3330
3324
  };
3331
3325
 
3332
3326
  // src/graphql/hooks/post/hooksMutation.ts
3333
- var import_client58 = require("@apollo/client");
3334
-
3335
- // src/graphql/mutations/post.ts
3336
3327
  var import_client57 = require("@apollo/client");
3337
3328
 
3338
- // src/graphql/queries/post.ts
3329
+ // src/graphql/mutations/post.ts
3339
3330
  var import_client56 = require("@apollo/client");
3340
3331
 
3341
- // src/graphql/queries/game.ts
3342
- var import_client55 = require("@apollo/client");
3343
- var BASE_GAME_FIELDS_FRAGMENT = import_client55.gql`
3344
- fragment BaseGameFields on BaseGameType {
3345
- gameDate {
3346
- startDate
3347
- endDate
3348
- }
3349
- gameSolution
3350
- gameType
3351
- title
3352
- }
3353
- `;
3354
- var DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT = import_client55.gql`
3355
- fragment DailyClueGameDataFields on DailyClueGameDataType {
3356
- ...BaseGameFields
3357
- collectedLetters
3358
- lastFoundDate
3359
- points
3360
- streak
3361
- }
3362
- ${BASE_GAME_FIELDS_FRAGMENT}
3363
- `;
3364
- var GAME_FIELDS_FRAGMENT = import_client55.gql`
3365
- fragment GameFields on GameType {
3366
- _id
3367
- active
3368
- createdAt
3369
- deletedAt
3370
- gameData {
3371
- dailyClue {
3372
- ...DailyClueGameDataFields
3373
- }
3374
- }
3375
- updatedAt
3376
- owner {
3377
- ...OwnerFields
3378
- }
3379
- }
3380
- ${DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT}
3381
- ${OWNER_FIELDS_FRAGMENT}
3382
- `;
3383
- var GET_GAMES = import_client55.gql`
3384
- query getGames($userId: ID) {
3385
- games(userId: $userId) {
3386
- ...GameFields
3387
- }
3388
- }
3389
- ${GAME_FIELDS_FRAGMENT}
3390
- `;
3391
- var GET_GAME = import_client55.gql`
3392
- query getGame($_id: ID!) {
3393
- game(_id: $_id) {
3394
- ...GameFields
3395
- }
3396
- }
3397
- ${GAME_FIELDS_FRAGMENT}
3398
- `;
3399
-
3400
3332
  // src/graphql/queries/post.ts
3401
- var POST_CONTENT_DATA_FIELDS_FRAGMENT = import_client56.gql`
3333
+ var import_client55 = require("@apollo/client");
3334
+ var POST_CONTENT_DATA_FIELDS_FRAGMENT = import_client55.gql`
3402
3335
  fragment PostContentDataFields on PostContentData {
3403
- game {
3404
- ...BaseGameFields
3405
- }
3406
3336
  textarea {
3407
3337
  title
3408
3338
  data
@@ -3422,9 +3352,8 @@ var POST_CONTENT_DATA_FIELDS_FRAGMENT = import_client56.gql`
3422
3352
  }
3423
3353
  }
3424
3354
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
3425
- ${BASE_GAME_FIELDS_FRAGMENT}
3426
3355
  `;
3427
- var POST_CONTENT_FIELDS_FRAGMENT = import_client56.gql`
3356
+ var POST_CONTENT_FIELDS_FRAGMENT = import_client55.gql`
3428
3357
  fragment PostContentFields on PostContentType {
3429
3358
  contentData {
3430
3359
  ...PostContentDataFields
@@ -3434,7 +3363,7 @@ var POST_CONTENT_FIELDS_FRAGMENT = import_client56.gql`
3434
3363
  }
3435
3364
  ${POST_CONTENT_DATA_FIELDS_FRAGMENT}
3436
3365
  `;
3437
- var POST_FIELDS_FRAGMENT = import_client56.gql`
3366
+ var POST_FIELDS_FRAGMENT = import_client55.gql`
3438
3367
  fragment PostFields on PostType {
3439
3368
  _id
3440
3369
  active
@@ -3459,7 +3388,7 @@ var POST_FIELDS_FRAGMENT = import_client56.gql`
3459
3388
  ${POST_CONTENT_FIELDS_FRAGMENT}
3460
3389
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
3461
3390
  `;
3462
- var GET_POSTS = import_client56.gql`
3391
+ var GET_POSTS = import_client55.gql`
3463
3392
  query getPosts {
3464
3393
  posts {
3465
3394
  ...PostFields
@@ -3467,7 +3396,7 @@ var GET_POSTS = import_client56.gql`
3467
3396
  }
3468
3397
  ${POST_FIELDS_FRAGMENT}
3469
3398
  `;
3470
- var GET_POST = import_client56.gql`
3399
+ var GET_POST = import_client55.gql`
3471
3400
  query getPost($_id: ID!) {
3472
3401
  post(_id: $_id) {
3473
3402
  ...PostFields
@@ -3475,7 +3404,7 @@ var GET_POST = import_client56.gql`
3475
3404
  }
3476
3405
  ${POST_FIELDS_FRAGMENT}
3477
3406
  `;
3478
- var GET_POSTS_BY_TYPE = import_client56.gql`
3407
+ var GET_POSTS_BY_TYPE = import_client55.gql`
3479
3408
  query getPostsByType($postType: PostTypeEnum!) {
3480
3409
  postsByType(postType: $postType) {
3481
3410
  ...PostFields
@@ -3485,7 +3414,7 @@ var GET_POSTS_BY_TYPE = import_client56.gql`
3485
3414
  `;
3486
3415
 
3487
3416
  // src/graphql/mutations/post.ts
3488
- var CREATE_POST_MUTATION = import_client57.gql`
3417
+ var CREATE_POST_MUTATION = import_client56.gql`
3489
3418
  mutation createPost($input: PostInputType!) {
3490
3419
  createPost(input: $input) {
3491
3420
  ...PostFields
@@ -3493,7 +3422,7 @@ var CREATE_POST_MUTATION = import_client57.gql`
3493
3422
  }
3494
3423
  ${POST_FIELDS_FRAGMENT}
3495
3424
  `;
3496
- var UPDATE_POST_MUTATION = import_client57.gql`
3425
+ var UPDATE_POST_MUTATION = import_client56.gql`
3497
3426
  mutation updatePost($_id: ID!, $input: PostInputType!) {
3498
3427
  updatePost(_id: $_id, input: $input) {
3499
3428
  ...PostFields
@@ -3501,7 +3430,7 @@ var UPDATE_POST_MUTATION = import_client57.gql`
3501
3430
  }
3502
3431
  ${POST_FIELDS_FRAGMENT}
3503
3432
  `;
3504
- var DELETE_POST_MUTATION = import_client57.gql`
3433
+ var DELETE_POST_MUTATION = import_client56.gql`
3505
3434
  mutation deletePost($_id: ID!) {
3506
3435
  deletePost(_id: $_id)
3507
3436
  }
@@ -3509,21 +3438,21 @@ var DELETE_POST_MUTATION = import_client57.gql`
3509
3438
 
3510
3439
  // src/graphql/hooks/post/hooksMutation.ts
3511
3440
  var useCreatePost = () => {
3512
- const [createPost, { loading, error }] = (0, import_client58.useMutation)(CREATE_POST_MUTATION, {
3441
+ const [createPost, { loading, error }] = (0, import_client57.useMutation)(CREATE_POST_MUTATION, {
3513
3442
  awaitRefetchQueries: true,
3514
3443
  refetchQueries: [{ query: GET_POSTS }]
3515
3444
  });
3516
3445
  return { createPost, error, loading };
3517
3446
  };
3518
3447
  var useUpdatePost = () => {
3519
- const [updatePost, { loading, error }] = (0, import_client58.useMutation)(UPDATE_POST_MUTATION, {
3448
+ const [updatePost, { loading, error }] = (0, import_client57.useMutation)(UPDATE_POST_MUTATION, {
3520
3449
  awaitRefetchQueries: true,
3521
3450
  refetchQueries: [{ query: GET_POSTS }]
3522
3451
  });
3523
3452
  return { error, loading, updatePost };
3524
3453
  };
3525
3454
  var useDeletePost = () => {
3526
- const [deletePost, { loading, error }] = (0, import_client58.useMutation)(DELETE_POST_MUTATION, {
3455
+ const [deletePost, { loading, error }] = (0, import_client57.useMutation)(DELETE_POST_MUTATION, {
3527
3456
  awaitRefetchQueries: true,
3528
3457
  refetchQueries: [{ query: GET_POSTS }]
3529
3458
  });
@@ -3531,15 +3460,15 @@ var useDeletePost = () => {
3531
3460
  };
3532
3461
 
3533
3462
  // src/graphql/hooks/post/hooksQuery.ts
3534
- var import_client59 = require("@apollo/client");
3463
+ var import_client58 = require("@apollo/client");
3535
3464
  var useGetPosts = () => {
3536
- const { data, loading, error, refetch } = (0, import_client59.useQuery)(GET_POSTS, {
3465
+ const { data, loading, error, refetch } = (0, import_client58.useQuery)(GET_POSTS, {
3537
3466
  fetchPolicy: "network-only"
3538
3467
  });
3539
3468
  return { error, loading, posts: data?.posts || [], refetch };
3540
3469
  };
3541
3470
  var useGetPost = (_id) => {
3542
- const { data, loading, error, refetch } = (0, import_client59.useQuery)(GET_POST, {
3471
+ const { data, loading, error, refetch } = (0, import_client58.useQuery)(GET_POST, {
3543
3472
  fetchPolicy: "network-only",
3544
3473
  skip: !_id || _id === "",
3545
3474
  variables: { _id }
@@ -3547,7 +3476,7 @@ var useGetPost = (_id) => {
3547
3476
  return { error, loading, post: data?.post, refetch };
3548
3477
  };
3549
3478
  var useGetPostsByType = (postType) => {
3550
- const { data, loading, error, refetch } = (0, import_client59.useQuery)(GET_POSTS_BY_TYPE, {
3479
+ const { data, loading, error, refetch } = (0, import_client58.useQuery)(GET_POSTS_BY_TYPE, {
3551
3480
  fetchPolicy: "network-only",
3552
3481
  skip: !postType,
3553
3482
  variables: { postType }
@@ -3556,23 +3485,23 @@ var useGetPostsByType = (postType) => {
3556
3485
  };
3557
3486
 
3558
3487
  // src/graphql/hooks/appSettings/hooksMutation.ts
3559
- var import_client62 = require("@apollo/client");
3488
+ var import_client61 = require("@apollo/client");
3560
3489
 
3561
3490
  // src/graphql/mutations/appSettings.ts
3562
- var import_client60 = require("@apollo/client");
3563
- var UPDATE_APP_SETTINGS_MUTATION = import_client60.gql`
3491
+ var import_client59 = require("@apollo/client");
3492
+ var UPDATE_APP_SETTINGS_MUTATION = import_client59.gql`
3564
3493
  mutation updateAppSettings($input: AppSettingsInputType!) {
3565
3494
  updateAppSettings(input: $input)
3566
3495
  }
3567
3496
  `;
3568
- var CRAWL_GOOGLE_MARKETS_MUTATION = import_client60.gql`
3497
+ var CRAWL_GOOGLE_MARKETS_MUTATION = import_client59.gql`
3569
3498
  mutation crawlGoogleMarkets {
3570
3499
  crawlGoogleMarkets {
3571
3500
  message
3572
3501
  }
3573
3502
  }
3574
3503
  `;
3575
- var UPDATE_GOOGLE_IMPORTED_MARKET_MUTATION = import_client60.gql`
3504
+ var UPDATE_GOOGLE_IMPORTED_MARKET_MUTATION = import_client59.gql`
3576
3505
  mutation updateGoogleImportedMarkets {
3577
3506
  updateGoogleImportedMarkets {
3578
3507
  message
@@ -3581,8 +3510,8 @@ var UPDATE_GOOGLE_IMPORTED_MARKET_MUTATION = import_client60.gql`
3581
3510
  `;
3582
3511
 
3583
3512
  // src/graphql/queries/appSettings.ts
3584
- var import_client61 = require("@apollo/client");
3585
- var APP_SETTINGS_FIELDS_FRAGMENT = import_client61.gql`
3513
+ var import_client60 = require("@apollo/client");
3514
+ var APP_SETTINGS_FIELDS_FRAGMENT = import_client60.gql`
3586
3515
  fragment AppSettingsFields on AppSettingsType {
3587
3516
  _id
3588
3517
  appVersion
@@ -3592,7 +3521,7 @@ var APP_SETTINGS_FIELDS_FRAGMENT = import_client61.gql`
3592
3521
  updatedAt
3593
3522
  }
3594
3523
  `;
3595
- var GET_APP_SETTINGS = import_client61.gql`
3524
+ var GET_APP_SETTINGS = import_client60.gql`
3596
3525
  query getAppSettings {
3597
3526
  appSettings {
3598
3527
  ...AppSettingsFields
@@ -3603,7 +3532,7 @@ var GET_APP_SETTINGS = import_client61.gql`
3603
3532
 
3604
3533
  // src/graphql/hooks/appSettings/hooksMutation.ts
3605
3534
  var useUpdateAppSettings = () => {
3606
- const [updateAppSettings, { loading, error }] = (0, import_client62.useMutation)(
3535
+ const [updateAppSettings, { loading, error }] = (0, import_client61.useMutation)(
3607
3536
  UPDATE_APP_SETTINGS_MUTATION,
3608
3537
  {
3609
3538
  awaitRefetchQueries: true,
@@ -3613,100 +3542,23 @@ var useUpdateAppSettings = () => {
3613
3542
  return { error, loading, updateAppSettings };
3614
3543
  };
3615
3544
  var useCrawlGoogleMarkets = () => {
3616
- const [crawlGoogleMarkets, { loading, error }] = (0, import_client62.useMutation)(CRAWL_GOOGLE_MARKETS_MUTATION);
3545
+ const [crawlGoogleMarkets, { loading, error }] = (0, import_client61.useMutation)(CRAWL_GOOGLE_MARKETS_MUTATION);
3617
3546
  return { crawlGoogleMarkets, error, loading };
3618
3547
  };
3619
3548
  var useUpdateGoogleImportedMarkets = () => {
3620
- const [updateGoogleImportedMarkets, { loading, error }] = (0, import_client62.useMutation)(UPDATE_GOOGLE_IMPORTED_MARKET_MUTATION);
3549
+ const [updateGoogleImportedMarkets, { loading, error }] = (0, import_client61.useMutation)(UPDATE_GOOGLE_IMPORTED_MARKET_MUTATION);
3621
3550
  return { error, loading, updateGoogleImportedMarkets };
3622
3551
  };
3623
3552
 
3624
3553
  // src/graphql/hooks/appSettings/hooksQuery.ts
3625
- var import_client63 = require("@apollo/client");
3554
+ var import_client62 = require("@apollo/client");
3626
3555
  var useGetAppSettings = () => {
3627
- const { loading, error, data, refetch } = (0, import_client63.useQuery)(GET_APP_SETTINGS, {
3556
+ const { loading, error, data, refetch } = (0, import_client62.useQuery)(GET_APP_SETTINGS, {
3628
3557
  fetchPolicy: "network-only"
3629
3558
  });
3630
3559
  const appSettings = data?.appSettings || null;
3631
3560
  return { appSettings, error, loading, refetch };
3632
3561
  };
3633
-
3634
- // src/graphql/hooks/game/hooksMutation.ts
3635
- var import_client65 = require("@apollo/client");
3636
-
3637
- // src/graphql/mutations/game.ts
3638
- var import_client64 = require("@apollo/client");
3639
- var START_GAME_MUTATION = import_client64.gql`
3640
- mutation startGame($input: GameInputType!) {
3641
- startGame(input: $input) {
3642
- ...GameFields
3643
- }
3644
- }
3645
- ${GAME_FIELDS_FRAGMENT}
3646
- `;
3647
- var LEAVE_GAME_MUTATION = import_client64.gql`
3648
- mutation leaveGame($_id: ID!, $gameType: GameTypeEnumType!) {
3649
- leaveGame(_id: $_id, gameType: $gameType) {
3650
- userId
3651
- }
3652
- }
3653
- `;
3654
-
3655
- // src/graphql/hooks/game/hooksMutation.ts
3656
- var useStartGame = () => {
3657
- const [startGame, { loading, error }] = (0, import_client65.useMutation)(START_GAME_MUTATION, {
3658
- awaitRefetchQueries: true,
3659
- refetchQueries: (mutationResult) => {
3660
- const gameId = mutationResult?.data?.startGame?._id;
3661
- if (!gameId) return [];
3662
- return [
3663
- {
3664
- query: GET_GAME,
3665
- variables: { _id: gameId }
3666
- // Pass the gameId for refetching
3667
- }
3668
- ];
3669
- }
3670
- });
3671
- return { error, loading, startGame };
3672
- };
3673
- var useLeaveGame = () => {
3674
- const [leaveGame, { loading, error }] = (0, import_client65.useMutation)(LEAVE_GAME_MUTATION, {
3675
- awaitRefetchQueries: true,
3676
- refetchQueries: (mutationResult) => {
3677
- const userId = mutationResult?.data?.leaveGame?.userId;
3678
- if (!userId) return [];
3679
- return [
3680
- {
3681
- query: GET_GAMES,
3682
- variables: { userId }
3683
- // Pass the userId for refetching
3684
- }
3685
- ];
3686
- }
3687
- });
3688
- return { error, leaveGame, loading };
3689
- };
3690
-
3691
- // src/graphql/hooks/game/hooksQuery.ts
3692
- var import_client66 = require("@apollo/client");
3693
- var useGetGames = (userId) => {
3694
- const { loading, error, data, refetch } = (0, import_client66.useQuery)(GET_GAMES, {
3695
- fetchPolicy: "network-only",
3696
- variables: { userId }
3697
- });
3698
- const games = data?.games || [];
3699
- return { error, games, loading, refetch };
3700
- };
3701
- var useGetGame = (_id) => {
3702
- const { loading, error, data, refetch } = (0, import_client66.useQuery)(GET_GAME, {
3703
- fetchPolicy: "network-only",
3704
- skip: !_id,
3705
- variables: { _id }
3706
- });
3707
- const game = data?.game || null;
3708
- return { error, game, loading, refetch };
3709
- };
3710
3562
  // Annotate the CommonJS export names for ESM import in node:
3711
3563
  0 && (module.exports = {
3712
3564
  useAddParticipantToChat,
@@ -3762,8 +3614,6 @@ var useGetGame = (_id) => {
3762
3614
  useGetEvents,
3763
3615
  useGetEventsByRegion,
3764
3616
  useGetEventsNearMe,
3765
- useGetGame,
3766
- useGetGames,
3767
3617
  useGetNotificationCount,
3768
3618
  useGetNotificationCountSubscription,
3769
3619
  useGetPartner,
@@ -3796,7 +3646,6 @@ var useGetGame = (_id) => {
3796
3646
  useGetVendorRelations,
3797
3647
  useGetVendors,
3798
3648
  useGetVendorsByRegion,
3799
- useLeaveGame,
3800
3649
  useLogin,
3801
3650
  useLogout,
3802
3651
  useMarkAllNotificationsRead,
@@ -3818,7 +3667,6 @@ var useGetGame = (_id) => {
3818
3667
  useSelectPackage,
3819
3668
  useSelectStandardPackage,
3820
3669
  useSendChatMessage,
3821
- useStartGame,
3822
3670
  useToggleChatMessageLike,
3823
3671
  useUpdateAd,
3824
3672
  useUpdateAppSettings,