@timardex/cluemart-shared 1.4.82 → 1.4.83

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.
@@ -258,8 +258,8 @@ var TERMS_AGREEMENT_FIELDS_FRAGMENT = import_client2.gql`
258
258
  timestamp
259
259
  }
260
260
  `;
261
- var EVENT_DATETIME_FIELDS_FRAGMENT = import_client2.gql`
262
- fragment EventDateTimeFields on EventDateTimeType {
261
+ var DATETIME_FIELDS_FRAGMENT = import_client2.gql`
262
+ fragment DateTimeFields on DateTimeType {
263
263
  dateStatus
264
264
  endDate
265
265
  endTime
@@ -278,7 +278,7 @@ var USER_ACTIVITY_FIELDS_FRAGMENT = import_client2.gql`
278
278
  events {
279
279
  resourceId
280
280
  dateTime {
281
- ...EventDateTimeFields
281
+ ...DateTimeFields
282
282
  }
283
283
  }
284
284
  }
@@ -286,7 +286,7 @@ var USER_ACTIVITY_FIELDS_FRAGMENT = import_client2.gql`
286
286
  events {
287
287
  resourceId
288
288
  dateTime {
289
- ...EventDateTimeFields
289
+ ...DateTimeFields
290
290
  }
291
291
  }
292
292
  }
@@ -294,12 +294,12 @@ var USER_ACTIVITY_FIELDS_FRAGMENT = import_client2.gql`
294
294
  events {
295
295
  resourceId
296
296
  dateTime {
297
- ...EventDateTimeFields
297
+ ...DateTimeFields
298
298
  }
299
299
  }
300
300
  }
301
301
  }
302
- ${EVENT_DATETIME_FIELDS_FRAGMENT}
302
+ ${DATETIME_FIELDS_FRAGMENT}
303
303
  `;
304
304
  var USER_FIELDS_FRAGMENT = import_client2.gql`
305
305
  fragment UserFields on UserType {
@@ -409,7 +409,7 @@ var EVENT_LIST_ITEM = import_client2.gql`
409
409
  }
410
410
  createdAt
411
411
  dateTime {
412
- ...EventDateTimeFields
412
+ ...DateTimeFields
413
413
  }
414
414
  deletedAt
415
415
  description
@@ -437,7 +437,7 @@ var EVENT_LIST_ITEM = import_client2.gql`
437
437
  reviewCount
438
438
  updatedAt
439
439
  }
440
- ${EVENT_DATETIME_FIELDS_FRAGMENT}
440
+ ${DATETIME_FIELDS_FRAGMENT}
441
441
  ${LOCATION_FIELDS_FRAGMENT}
442
442
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
443
443
  ${RELATION_DATES_FRAGMENT}
@@ -497,7 +497,7 @@ var EVENT = import_client3.gql`
497
497
  ...ContactDetailsFields
498
498
  }
499
499
  dateTime {
500
- ...EventDateTimeFields
500
+ ...DateTimeFields
501
501
  }
502
502
  description
503
503
  deletedAt
@@ -542,7 +542,7 @@ var EVENT = import_client3.gql`
542
542
  }
543
543
  updatedAt
544
544
  }
545
- ${EVENT_DATETIME_FIELDS_FRAGMENT}
545
+ ${DATETIME_FIELDS_FRAGMENT}
546
546
  ${LOCATION_FIELDS_FRAGMENT}
547
547
  ${OWNER_FIELDS_FRAGMENT}
548
548
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
@@ -770,14 +770,14 @@ var VENDOR_INFO = import_client4.gql`
770
770
  var UNREGISTERED_VENDOR_INVITATION_FRAGMENT = import_client4.gql`
771
771
  fragment UnregisteredVendorInvitationFields on UnregisteredVendorInvitationType {
772
772
  dateTime {
773
- ...EventDateTimeFields
773
+ ...DateTimeFields
774
774
  }
775
775
  eventId
776
776
  location {
777
777
  ...LocationFields
778
778
  }
779
779
  }
780
- ${EVENT_DATETIME_FIELDS_FRAGMENT}
780
+ ${DATETIME_FIELDS_FRAGMENT}
781
781
  ${LOCATION_FIELDS_FRAGMENT}
782
782
  `;
783
783
  var UNREGISTERED_VENDOR = import_client4.gql`
@@ -3330,22 +3330,82 @@ var useSearchPartners = (search, region) => {
3330
3330
  };
3331
3331
 
3332
3332
  // src/graphql/hooks/post/hooksMutation.ts
3333
- var import_client57 = require("@apollo/client");
3333
+ var import_client58 = require("@apollo/client");
3334
3334
 
3335
3335
  // src/graphql/mutations/post.ts
3336
- var import_client56 = require("@apollo/client");
3336
+ var import_client57 = require("@apollo/client");
3337
3337
 
3338
3338
  // src/graphql/queries/post.ts
3339
+ var import_client56 = require("@apollo/client");
3340
+
3341
+ // src/graphql/queries/game.ts
3339
3342
  var import_client55 = require("@apollo/client");
3340
- var POST_CONTENT_DATA_FIELDS_FRAGMENT = import_client55.gql`
3343
+ var BASE_GAME_FIELDS_FRAGMENT = import_client55.gql`
3344
+ fragment BaseGameFields on BaseGameType {
3345
+ title
3346
+ gameType
3347
+ gameInfo {
3348
+ dailyClue {
3349
+ solution
3350
+ }
3351
+ }
3352
+ gameDate {
3353
+ ...DateTimeFields
3354
+ }
3355
+ }
3356
+ ${DATETIME_FIELDS_FRAGMENT}
3357
+ `;
3358
+ var DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT = import_client55.gql`
3359
+ fragment DailyClueGameDataFields on DailyClueGameDataType {
3360
+ ...BaseGameFields
3361
+ collectedLetters
3362
+ lastFoundDate
3363
+ points
3364
+ streak
3365
+ }
3366
+ ${BASE_GAME_FIELDS_FRAGMENT}
3367
+ `;
3368
+ var GAME_FIELDS_FRAGMENT = import_client55.gql`
3369
+ fragment GameFields on GameType {
3370
+ _id
3371
+ active
3372
+ createdAt
3373
+ deletedAt
3374
+ gameData {
3375
+ dailyClue {
3376
+ ...DailyClueGameDataFields
3377
+ }
3378
+ }
3379
+ updatedAt
3380
+ owner {
3381
+ ...OwnerFields
3382
+ }
3383
+ }
3384
+ ${DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT}
3385
+ ${OWNER_FIELDS_FRAGMENT}
3386
+ `;
3387
+ var GET_GAMES = import_client55.gql`
3388
+ query getGames($userId: ID) {
3389
+ games(userId: $userId) {
3390
+ ...GameFields
3391
+ }
3392
+ }
3393
+ ${GAME_FIELDS_FRAGMENT}
3394
+ `;
3395
+ var GET_GAME = import_client55.gql`
3396
+ query getGame($_id: ID!) {
3397
+ game(_id: $_id) {
3398
+ ...GameFields
3399
+ }
3400
+ }
3401
+ ${GAME_FIELDS_FRAGMENT}
3402
+ `;
3403
+
3404
+ // src/graphql/queries/post.ts
3405
+ var POST_CONTENT_DATA_FIELDS_FRAGMENT = import_client56.gql`
3341
3406
  fragment PostContentDataFields on PostContentData {
3342
3407
  game {
3343
- title
3344
- gameType
3345
- gameInfo {
3346
- dailyClue
3347
- }
3348
- gameEndDate
3408
+ ...BaseGameFields
3349
3409
  }
3350
3410
  textarea {
3351
3411
  title
@@ -3366,8 +3426,9 @@ var POST_CONTENT_DATA_FIELDS_FRAGMENT = import_client55.gql`
3366
3426
  }
3367
3427
  }
3368
3428
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
3429
+ ${BASE_GAME_FIELDS_FRAGMENT}
3369
3430
  `;
3370
- var POST_CONTENT_FIELDS_FRAGMENT = import_client55.gql`
3431
+ var POST_CONTENT_FIELDS_FRAGMENT = import_client56.gql`
3371
3432
  fragment PostContentFields on PostContentType {
3372
3433
  contentData {
3373
3434
  ...PostContentDataFields
@@ -3377,7 +3438,7 @@ var POST_CONTENT_FIELDS_FRAGMENT = import_client55.gql`
3377
3438
  }
3378
3439
  ${POST_CONTENT_DATA_FIELDS_FRAGMENT}
3379
3440
  `;
3380
- var POST_FIELDS_FRAGMENT = import_client55.gql`
3441
+ var POST_FIELDS_FRAGMENT = import_client56.gql`
3381
3442
  fragment PostFields on PostType {
3382
3443
  _id
3383
3444
  active
@@ -3402,7 +3463,7 @@ var POST_FIELDS_FRAGMENT = import_client55.gql`
3402
3463
  ${POST_CONTENT_FIELDS_FRAGMENT}
3403
3464
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
3404
3465
  `;
3405
- var GET_POSTS = import_client55.gql`
3466
+ var GET_POSTS = import_client56.gql`
3406
3467
  query getPosts {
3407
3468
  posts {
3408
3469
  ...PostFields
@@ -3410,7 +3471,7 @@ var GET_POSTS = import_client55.gql`
3410
3471
  }
3411
3472
  ${POST_FIELDS_FRAGMENT}
3412
3473
  `;
3413
- var GET_POST = import_client55.gql`
3474
+ var GET_POST = import_client56.gql`
3414
3475
  query getPost($_id: ID!) {
3415
3476
  post(_id: $_id) {
3416
3477
  ...PostFields
@@ -3418,7 +3479,7 @@ var GET_POST = import_client55.gql`
3418
3479
  }
3419
3480
  ${POST_FIELDS_FRAGMENT}
3420
3481
  `;
3421
- var GET_POSTS_BY_TYPE = import_client55.gql`
3482
+ var GET_POSTS_BY_TYPE = import_client56.gql`
3422
3483
  query getPostsByType($postType: PostTypeEnum!) {
3423
3484
  postsByType(postType: $postType) {
3424
3485
  ...PostFields
@@ -3428,7 +3489,7 @@ var GET_POSTS_BY_TYPE = import_client55.gql`
3428
3489
  `;
3429
3490
 
3430
3491
  // src/graphql/mutations/post.ts
3431
- var CREATE_POST_MUTATION = import_client56.gql`
3492
+ var CREATE_POST_MUTATION = import_client57.gql`
3432
3493
  mutation createPost($input: PostInputType!) {
3433
3494
  createPost(input: $input) {
3434
3495
  ...PostFields
@@ -3436,7 +3497,7 @@ var CREATE_POST_MUTATION = import_client56.gql`
3436
3497
  }
3437
3498
  ${POST_FIELDS_FRAGMENT}
3438
3499
  `;
3439
- var UPDATE_POST_MUTATION = import_client56.gql`
3500
+ var UPDATE_POST_MUTATION = import_client57.gql`
3440
3501
  mutation updatePost($_id: ID!, $input: PostInputType!) {
3441
3502
  updatePost(_id: $_id, input: $input) {
3442
3503
  ...PostFields
@@ -3444,7 +3505,7 @@ var UPDATE_POST_MUTATION = import_client56.gql`
3444
3505
  }
3445
3506
  ${POST_FIELDS_FRAGMENT}
3446
3507
  `;
3447
- var DELETE_POST_MUTATION = import_client56.gql`
3508
+ var DELETE_POST_MUTATION = import_client57.gql`
3448
3509
  mutation deletePost($_id: ID!) {
3449
3510
  deletePost(_id: $_id)
3450
3511
  }
@@ -3452,21 +3513,21 @@ var DELETE_POST_MUTATION = import_client56.gql`
3452
3513
 
3453
3514
  // src/graphql/hooks/post/hooksMutation.ts
3454
3515
  var useCreatePost = () => {
3455
- const [createPost, { loading, error }] = (0, import_client57.useMutation)(CREATE_POST_MUTATION, {
3516
+ const [createPost, { loading, error }] = (0, import_client58.useMutation)(CREATE_POST_MUTATION, {
3456
3517
  awaitRefetchQueries: true,
3457
3518
  refetchQueries: [{ query: GET_POSTS }]
3458
3519
  });
3459
3520
  return { createPost, error, loading };
3460
3521
  };
3461
3522
  var useUpdatePost = () => {
3462
- const [updatePost, { loading, error }] = (0, import_client57.useMutation)(UPDATE_POST_MUTATION, {
3523
+ const [updatePost, { loading, error }] = (0, import_client58.useMutation)(UPDATE_POST_MUTATION, {
3463
3524
  awaitRefetchQueries: true,
3464
3525
  refetchQueries: [{ query: GET_POSTS }]
3465
3526
  });
3466
3527
  return { error, loading, updatePost };
3467
3528
  };
3468
3529
  var useDeletePost = () => {
3469
- const [deletePost, { loading, error }] = (0, import_client57.useMutation)(DELETE_POST_MUTATION, {
3530
+ const [deletePost, { loading, error }] = (0, import_client58.useMutation)(DELETE_POST_MUTATION, {
3470
3531
  awaitRefetchQueries: true,
3471
3532
  refetchQueries: [{ query: GET_POSTS }]
3472
3533
  });
@@ -3474,15 +3535,15 @@ var useDeletePost = () => {
3474
3535
  };
3475
3536
 
3476
3537
  // src/graphql/hooks/post/hooksQuery.ts
3477
- var import_client58 = require("@apollo/client");
3538
+ var import_client59 = require("@apollo/client");
3478
3539
  var useGetPosts = () => {
3479
- const { data, loading, error, refetch } = (0, import_client58.useQuery)(GET_POSTS, {
3540
+ const { data, loading, error, refetch } = (0, import_client59.useQuery)(GET_POSTS, {
3480
3541
  fetchPolicy: "network-only"
3481
3542
  });
3482
3543
  return { error, loading, posts: data?.posts || [], refetch };
3483
3544
  };
3484
3545
  var useGetPost = (_id) => {
3485
- const { data, loading, error, refetch } = (0, import_client58.useQuery)(GET_POST, {
3546
+ const { data, loading, error, refetch } = (0, import_client59.useQuery)(GET_POST, {
3486
3547
  fetchPolicy: "network-only",
3487
3548
  skip: !_id || _id === "",
3488
3549
  variables: { _id }
@@ -3490,7 +3551,7 @@ var useGetPost = (_id) => {
3490
3551
  return { error, loading, post: data?.post, refetch };
3491
3552
  };
3492
3553
  var useGetPostsByType = (postType) => {
3493
- const { data, loading, error, refetch } = (0, import_client58.useQuery)(GET_POSTS_BY_TYPE, {
3554
+ const { data, loading, error, refetch } = (0, import_client59.useQuery)(GET_POSTS_BY_TYPE, {
3494
3555
  fetchPolicy: "network-only",
3495
3556
  skip: !postType,
3496
3557
  variables: { postType }
@@ -3499,23 +3560,23 @@ var useGetPostsByType = (postType) => {
3499
3560
  };
3500
3561
 
3501
3562
  // src/graphql/hooks/appSettings/hooksMutation.ts
3502
- var import_client61 = require("@apollo/client");
3563
+ var import_client62 = require("@apollo/client");
3503
3564
 
3504
3565
  // src/graphql/mutations/appSettings.ts
3505
- var import_client59 = require("@apollo/client");
3506
- var UPDATE_APP_SETTINGS_MUTATION = import_client59.gql`
3566
+ var import_client60 = require("@apollo/client");
3567
+ var UPDATE_APP_SETTINGS_MUTATION = import_client60.gql`
3507
3568
  mutation updateAppSettings($input: AppSettingsInputType!) {
3508
3569
  updateAppSettings(input: $input)
3509
3570
  }
3510
3571
  `;
3511
- var CRAWL_GOOGLE_MARKETS_MUTATION = import_client59.gql`
3572
+ var CRAWL_GOOGLE_MARKETS_MUTATION = import_client60.gql`
3512
3573
  mutation crawlGoogleMarkets {
3513
3574
  crawlGoogleMarkets {
3514
3575
  message
3515
3576
  }
3516
3577
  }
3517
3578
  `;
3518
- var UPDATE_GOOGLE_IMPORTED_MARKET_MUTATION = import_client59.gql`
3579
+ var UPDATE_GOOGLE_IMPORTED_MARKET_MUTATION = import_client60.gql`
3519
3580
  mutation updateGoogleImportedMarkets {
3520
3581
  updateGoogleImportedMarkets {
3521
3582
  message
@@ -3524,8 +3585,8 @@ var UPDATE_GOOGLE_IMPORTED_MARKET_MUTATION = import_client59.gql`
3524
3585
  `;
3525
3586
 
3526
3587
  // src/graphql/queries/appSettings.ts
3527
- var import_client60 = require("@apollo/client");
3528
- var APP_SETTINGS_FIELDS_FRAGMENT = import_client60.gql`
3588
+ var import_client61 = require("@apollo/client");
3589
+ var APP_SETTINGS_FIELDS_FRAGMENT = import_client61.gql`
3529
3590
  fragment AppSettingsFields on AppSettingsType {
3530
3591
  _id
3531
3592
  appVersion
@@ -3535,7 +3596,7 @@ var APP_SETTINGS_FIELDS_FRAGMENT = import_client60.gql`
3535
3596
  updatedAt
3536
3597
  }
3537
3598
  `;
3538
- var GET_APP_SETTINGS = import_client60.gql`
3599
+ var GET_APP_SETTINGS = import_client61.gql`
3539
3600
  query getAppSettings {
3540
3601
  appSettings {
3541
3602
  ...AppSettingsFields
@@ -3546,7 +3607,7 @@ var GET_APP_SETTINGS = import_client60.gql`
3546
3607
 
3547
3608
  // src/graphql/hooks/appSettings/hooksMutation.ts
3548
3609
  var useUpdateAppSettings = () => {
3549
- const [updateAppSettings, { loading, error }] = (0, import_client61.useMutation)(
3610
+ const [updateAppSettings, { loading, error }] = (0, import_client62.useMutation)(
3550
3611
  UPDATE_APP_SETTINGS_MUTATION,
3551
3612
  {
3552
3613
  awaitRefetchQueries: true,
@@ -3556,18 +3617,18 @@ var useUpdateAppSettings = () => {
3556
3617
  return { error, loading, updateAppSettings };
3557
3618
  };
3558
3619
  var useCrawlGoogleMarkets = () => {
3559
- const [crawlGoogleMarkets, { loading, error }] = (0, import_client61.useMutation)(CRAWL_GOOGLE_MARKETS_MUTATION);
3620
+ const [crawlGoogleMarkets, { loading, error }] = (0, import_client62.useMutation)(CRAWL_GOOGLE_MARKETS_MUTATION);
3560
3621
  return { crawlGoogleMarkets, error, loading };
3561
3622
  };
3562
3623
  var useUpdateGoogleImportedMarkets = () => {
3563
- const [updateGoogleImportedMarkets, { loading, error }] = (0, import_client61.useMutation)(UPDATE_GOOGLE_IMPORTED_MARKET_MUTATION);
3624
+ const [updateGoogleImportedMarkets, { loading, error }] = (0, import_client62.useMutation)(UPDATE_GOOGLE_IMPORTED_MARKET_MUTATION);
3564
3625
  return { error, loading, updateGoogleImportedMarkets };
3565
3626
  };
3566
3627
 
3567
3628
  // src/graphql/hooks/appSettings/hooksQuery.ts
3568
- var import_client62 = require("@apollo/client");
3629
+ var import_client63 = require("@apollo/client");
3569
3630
  var useGetAppSettings = () => {
3570
- const { loading, error, data, refetch } = (0, import_client62.useQuery)(GET_APP_SETTINGS, {
3631
+ const { loading, error, data, refetch } = (0, import_client63.useQuery)(GET_APP_SETTINGS, {
3571
3632
  fetchPolicy: "network-only"
3572
3633
  });
3573
3634
  const appSettings = data?.appSettings || null;
@@ -3579,55 +3640,6 @@ var import_client65 = require("@apollo/client");
3579
3640
 
3580
3641
  // src/graphql/mutations/game.ts
3581
3642
  var import_client64 = require("@apollo/client");
3582
-
3583
- // src/graphql/queries/game.ts
3584
- var import_client63 = require("@apollo/client");
3585
- var DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT = import_client63.gql`
3586
- fragment DailyClueGameDataFields on DailyClueGameDataType {
3587
- lastFoundDate
3588
- streak
3589
- points
3590
- collectedLetters
3591
- gameEndDate
3592
- }
3593
- `;
3594
- var GAME_FIELDS_FRAGMENT = import_client63.gql`
3595
- fragment GameFields on GameType {
3596
- _id
3597
- active
3598
- createdAt
3599
- deletedAt
3600
- gameData {
3601
- dailyClue {
3602
- ...DailyClueGameDataFields
3603
- }
3604
- }
3605
- updatedAt
3606
- owner {
3607
- ...OwnerFields
3608
- }
3609
- }
3610
- ${DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT}
3611
- ${OWNER_FIELDS_FRAGMENT}
3612
- `;
3613
- var GET_GAMES = import_client63.gql`
3614
- query getGames($userId: ID) {
3615
- games(userId: $userId) {
3616
- ...GameFields
3617
- }
3618
- }
3619
- ${GAME_FIELDS_FRAGMENT}
3620
- `;
3621
- var GET_GAME = import_client63.gql`
3622
- query getGame($_id: ID!) {
3623
- game(_id: $_id) {
3624
- ...GameFields
3625
- }
3626
- }
3627
- ${GAME_FIELDS_FRAGMENT}
3628
- `;
3629
-
3630
- // src/graphql/mutations/game.ts
3631
3643
  var START_GAME_MUTATION = import_client64.gql`
3632
3644
  mutation startGame($input: GameInputType!) {
3633
3645
  startGame(input: $input) {
@@ -3639,10 +3651,9 @@ var START_GAME_MUTATION = import_client64.gql`
3639
3651
  var LEAVE_GAME_MUTATION = import_client64.gql`
3640
3652
  mutation leaveGame($_id: ID!) {
3641
3653
  leaveGame(_id: $_id) {
3642
- ...GameFields
3654
+ userId
3643
3655
  }
3644
3656
  }
3645
- ${GAME_FIELDS_FRAGMENT}
3646
3657
  `;
3647
3658
 
3648
3659
  // src/graphql/hooks/game/hooksMutation.ts