@timardex/cluemart-shared 1.7.38 → 1.7.39

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
@@ -3820,6 +3820,12 @@ var OWNER_FIELDS_FRAGMENT = import_client.gql`
3820
3820
  userId
3821
3821
  }
3822
3822
  `;
3823
+ var PRODUCT_COUPON_FIELDS_FRAGMENT = import_client.gql`
3824
+ fragment ProductCouponFields on ProductCouponType {
3825
+ couponDocumentId
3826
+ couponId
3827
+ }
3828
+ `;
3823
3829
  var CATEGORY_FIELDS_FRAGMENT = import_client.gql`
3824
3830
  fragment CategoryFields on CategoryType {
3825
3831
  id
@@ -4297,128 +4303,8 @@ var GET_EVENT_INFO = import_client2.gql`
4297
4303
  `;
4298
4304
 
4299
4305
  // src/graphql/queries/vendor.ts
4300
- var import_client4 = require("@apollo/client");
4301
-
4302
- // src/graphql/queries/coupon.ts
4303
4306
  var import_client3 = require("@apollo/client");
4304
- var PRODUCT_COUPON_FIELDS_FRAGMENT = import_client3.gql`
4305
- fragment ProductCouponFields on ProductCouponType {
4306
- couponDocumentId
4307
- couponId
4308
- }
4309
- `;
4310
- var COUPON_CODE_FIELDS_FRAGMENT = import_client3.gql`
4311
- fragment CouponCodeFields on CouponCodeType {
4312
- code
4313
- qrCode {
4314
- ...ResourceImageFields
4315
- }
4316
- }
4317
- ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
4318
- `;
4319
- var COUPON_PARTICIPANT_USER_FIELDS_FRAGMENT = import_client3.gql`
4320
- fragment CouponParticipantUserFields on CouponParticipantUserType {
4321
- couponCollectedCount
4322
- couponRedeemedAt
4323
- createdAt
4324
- updatedAt
4325
- userId
4326
- }
4327
- `;
4328
- var COUPON_OPTION_FIELDS_FRAGMENT = import_client3.gql`
4329
- fragment CouponOptionFields on CouponOptionType {
4330
- type
4331
- buy
4332
- get
4333
- unit
4334
- visits
4335
- }
4336
- `;
4337
- var COUPON_REWARD_FIELDS_FRAGMENT = import_client3.gql`
4338
- fragment CouponRewardFields on CouponRewardType {
4339
- vendorId
4340
- productId
4341
- quantity
4342
- unit
4343
- }
4344
- `;
4345
- var COUPON_DATA_FIELDS_FRAGMENT = import_client3.gql`
4346
- fragment CouponDataFields on CouponDataType {
4347
- _id
4348
- active
4349
- couponCode {
4350
- ...CouponCodeFields
4351
- }
4352
- couponDescription
4353
- couponOption {
4354
- ...CouponOptionFields
4355
- }
4356
- couponRewards {
4357
- ...CouponRewardFields
4358
- }
4359
- createdAt
4360
- endDate
4361
- participantUsers {
4362
- ...CouponParticipantUserFields
4363
- }
4364
- products {
4365
- ...VendorProductsFields
4366
- }
4367
- resourceId
4368
- resourceType
4369
- startDate
4370
- updatedAt
4371
- }
4372
- ${COUPON_CODE_FIELDS_FRAGMENT}
4373
- ${COUPON_OPTION_FIELDS_FRAGMENT}
4374
- ${COUPON_PARTICIPANT_USER_FIELDS_FRAGMENT}
4375
- ${COUPON_REWARD_FIELDS_FRAGMENT}
4376
- ${VENDOR_PRODUCTS_FIELDS_FRAGMENT}
4377
- `;
4378
- var COUPON = import_client3.gql`
4379
- fragment CouponFields on CouponType {
4380
- _id
4381
- active
4382
- couponData {
4383
- ...CouponDataFields
4384
- }
4385
- createdAt
4386
- deletedAt
4387
- owner {
4388
- ...OwnerFields
4389
- }
4390
- updatedAt
4391
- }
4392
- ${OWNER_FIELDS_FRAGMENT}
4393
- ${COUPON_DATA_FIELDS_FRAGMENT}
4394
- `;
4395
- var GET_COUPONS = import_client3.gql`
4396
- query getCoupons {
4397
- coupons {
4398
- ...CouponFields
4399
- }
4400
- }
4401
- ${COUPON}
4402
- `;
4403
- var GET_COUPON = import_client3.gql`
4404
- query getCoupon($_id: ID!) {
4405
- coupon(_id: $_id) {
4406
- ...CouponFields
4407
- }
4408
- }
4409
- ${COUPON}
4410
- `;
4411
- var GET_RESOURCE_COUPONS = import_client3.gql`
4412
- query getResourceCoupons($resourceId: ID!, $resourceType: ResourceTypeEnum!) {
4413
- resourceCoupons(resourceId: $resourceId, resourceType: $resourceType) {
4414
- ...CouponFields
4415
- }
4416
- }
4417
- ${COUPON}
4418
- `;
4419
-
4420
- // src/graphql/queries/vendor.ts
4421
- var VENDOR_DATETIME_FIELDS_FRAGMENT = import_client4.gql`
4307
+ var VENDOR_DATETIME_FIELDS_FRAGMENT = import_client3.gql`
4422
4308
  fragment VendorDateTimeFields on VendorDateTimeType {
4423
4309
  dateStatus
4424
4310
  endDate
@@ -4427,7 +4313,7 @@ var VENDOR_DATETIME_FIELDS_FRAGMENT = import_client4.gql`
4427
4313
  startTime
4428
4314
  }
4429
4315
  `;
4430
- var VENDOR_PRODUCT_LIST_FIELDS_FRAGMENT = import_client4.gql`
4316
+ var VENDOR_PRODUCT_LIST_FIELDS_FRAGMENT = import_client3.gql`
4431
4317
  fragment VendorProductListFields on VendorProductListType {
4432
4318
  _id
4433
4319
  coupon {
@@ -4444,7 +4330,7 @@ var VENDOR_PRODUCT_LIST_FIELDS_FRAGMENT = import_client4.gql`
4444
4330
  }
4445
4331
  ${PRODUCT_COUPON_FIELDS_FRAGMENT}
4446
4332
  `;
4447
- var VENDOR_PRODUCTS_FIELDS_FRAGMENT = import_client4.gql`
4333
+ var VENDOR_PRODUCTS_FIELDS_FRAGMENT = import_client3.gql`
4448
4334
  fragment VendorProductsFields on VendorProductsType {
4449
4335
  active
4450
4336
  productsList {
@@ -4453,7 +4339,7 @@ var VENDOR_PRODUCTS_FIELDS_FRAGMENT = import_client4.gql`
4453
4339
  }
4454
4340
  ${VENDOR_PRODUCT_LIST_FIELDS_FRAGMENT}
4455
4341
  `;
4456
- var VENDOR = import_client4.gql`
4342
+ var VENDOR = import_client3.gql`
4457
4343
  fragment VendorFields on VendorType {
4458
4344
  _id
4459
4345
  active
@@ -4551,13 +4437,13 @@ var VENDOR = import_client4.gql`
4551
4437
  ${RELATED_POST_FIELDS_FRAGMENT}
4552
4438
  ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
4553
4439
  `;
4554
- var VENDOR_ATTRIBUTES_FRAGMENT = import_client4.gql`
4440
+ var VENDOR_ATTRIBUTES_FRAGMENT = import_client3.gql`
4555
4441
  fragment VendorAttributesFields on VendorAttributesType {
4556
4442
  details
4557
4443
  isRequired
4558
4444
  }
4559
4445
  `;
4560
- var VENDOR_INFO = import_client4.gql`
4446
+ var VENDOR_INFO = import_client3.gql`
4561
4447
  fragment VendorInfoFields on VendorInfoType {
4562
4448
  _id
4563
4449
  compliance {
@@ -4598,7 +4484,7 @@ var VENDOR_INFO = import_client4.gql`
4598
4484
  ${VENDOR_ATTRIBUTES_FRAGMENT}
4599
4485
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
4600
4486
  `;
4601
- var UNREGISTERED_VENDOR_INVITATION_FRAGMENT = import_client4.gql`
4487
+ var UNREGISTERED_VENDOR_INVITATION_FRAGMENT = import_client3.gql`
4602
4488
  fragment UnregisteredVendorInvitationFields on UnregisteredVendorInvitationType {
4603
4489
  dateTime {
4604
4490
  ...DateTimeFields
@@ -4607,7 +4493,7 @@ var UNREGISTERED_VENDOR_INVITATION_FRAGMENT = import_client4.gql`
4607
4493
  }
4608
4494
  ${DATETIME_FIELDS_FRAGMENT}
4609
4495
  `;
4610
- var UNREGISTERED_VENDOR = import_client4.gql`
4496
+ var UNREGISTERED_VENDOR = import_client3.gql`
4611
4497
  fragment UnregisteredVendorFields on UnregisteredVendorType {
4612
4498
  _id
4613
4499
  active
@@ -4627,7 +4513,7 @@ var UNREGISTERED_VENDOR = import_client4.gql`
4627
4513
  }
4628
4514
  ${UNREGISTERED_VENDOR_INVITATION_FRAGMENT}
4629
4515
  `;
4630
- var GET_VENDORS = import_client4.gql`
4516
+ var GET_VENDORS = import_client3.gql`
4631
4517
  query getVendors {
4632
4518
  vendors {
4633
4519
  ...VendorFields
@@ -4635,7 +4521,7 @@ var GET_VENDORS = import_client4.gql`
4635
4521
  }
4636
4522
  ${VENDOR}
4637
4523
  `;
4638
- var GET_VENDOR = import_client4.gql`
4524
+ var GET_VENDOR = import_client3.gql`
4639
4525
  query getVendor($_id: ID!) {
4640
4526
  vendor(_id: $_id) {
4641
4527
  ...VendorFields
@@ -4643,7 +4529,7 @@ var GET_VENDOR = import_client4.gql`
4643
4529
  }
4644
4530
  ${VENDOR}
4645
4531
  `;
4646
- var GET_VENDORS_BY_REGION = import_client4.gql`
4532
+ var GET_VENDORS_BY_REGION = import_client3.gql`
4647
4533
  query getVendorsByRegion(
4648
4534
  $region: String!
4649
4535
  $options: ResourcesByRegionOptions
@@ -4654,7 +4540,7 @@ var GET_VENDORS_BY_REGION = import_client4.gql`
4654
4540
  }
4655
4541
  ${VENDOR}
4656
4542
  `;
4657
- var SEARCH_VENDORS = import_client4.gql`
4543
+ var SEARCH_VENDORS = import_client3.gql`
4658
4544
  query searchVendors($search: String!, $region: String!) {
4659
4545
  vendorSearch(search: $search, region: $region) {
4660
4546
  ...VendorFields
@@ -4662,7 +4548,7 @@ var SEARCH_VENDORS = import_client4.gql`
4662
4548
  }
4663
4549
  ${VENDOR}
4664
4550
  `;
4665
- var GET_VENDOR_INFO = import_client4.gql`
4551
+ var GET_VENDOR_INFO = import_client3.gql`
4666
4552
  query getVendorInfo($vendorId: ID!) {
4667
4553
  vendorInfo(vendorId: $vendorId) {
4668
4554
  ...VendorInfoFields
@@ -4670,7 +4556,7 @@ var GET_VENDOR_INFO = import_client4.gql`
4670
4556
  }
4671
4557
  ${VENDOR_INFO}
4672
4558
  `;
4673
- var GET_UNREGISTERED_VENDORS = import_client4.gql`
4559
+ var GET_UNREGISTERED_VENDORS = import_client3.gql`
4674
4560
  query getUnregisteredVendors {
4675
4561
  unregisteredVendors {
4676
4562
  ...UnregisteredVendorFields
@@ -4678,7 +4564,7 @@ var GET_UNREGISTERED_VENDORS = import_client4.gql`
4678
4564
  }
4679
4565
  ${UNREGISTERED_VENDOR}
4680
4566
  `;
4681
- var GET_UNREGISTERED_VENDORS_BY_INVITER_ID = import_client4.gql`
4567
+ var GET_UNREGISTERED_VENDORS_BY_INVITER_ID = import_client3.gql`
4682
4568
  query getUnregisteredVendorsByInviterId($inviterId: ID!) {
4683
4569
  unregisteredVendorsByInviterId(inviterId: $inviterId) {
4684
4570
  ...UnregisteredVendorFields
@@ -4686,7 +4572,7 @@ var GET_UNREGISTERED_VENDORS_BY_INVITER_ID = import_client4.gql`
4686
4572
  }
4687
4573
  ${UNREGISTERED_VENDOR}
4688
4574
  `;
4689
- var GET_UNREGISTERED_VENDOR = import_client4.gql`
4575
+ var GET_UNREGISTERED_VENDOR = import_client3.gql`
4690
4576
  query getUnregisteredVendor($_id: ID!) {
4691
4577
  unregisteredVendor(_id: $_id) {
4692
4578
  ...UnregisteredVendorFields
@@ -4694,7 +4580,7 @@ var GET_UNREGISTERED_VENDOR = import_client4.gql`
4694
4580
  }
4695
4581
  ${UNREGISTERED_VENDOR}
4696
4582
  `;
4697
- var MY_PENDING_VENDOR_CLAIM = import_client4.gql`
4583
+ var MY_PENDING_VENDOR_CLAIM = import_client3.gql`
4698
4584
  query myPendingVendorClaim {
4699
4585
  myPendingVendorClaim {
4700
4586
  _id
@@ -4705,8 +4591,8 @@ var MY_PENDING_VENDOR_CLAIM = import_client4.gql`
4705
4591
  `;
4706
4592
 
4707
4593
  // src/graphql/mutations/vendor.ts
4708
- var import_client5 = require("@apollo/client");
4709
- var CREATE_VENDOR_MUTATION = import_client5.gql`
4594
+ var import_client4 = require("@apollo/client");
4595
+ var CREATE_VENDOR_MUTATION = import_client4.gql`
4710
4596
  mutation createVendor($input: VendorInputType!) {
4711
4597
  createVendor(input: $input) {
4712
4598
  data {
@@ -4717,7 +4603,7 @@ var CREATE_VENDOR_MUTATION = import_client5.gql`
4717
4603
  }
4718
4604
  ${VENDOR}
4719
4605
  `;
4720
- var UPDATE_VENDOR_MUTATION = import_client5.gql`
4606
+ var UPDATE_VENDOR_MUTATION = import_client4.gql`
4721
4607
  mutation updateVendor($_id: ID!, $input: VendorInputType!) {
4722
4608
  updateVendor(_id: $_id, input: $input) {
4723
4609
  data {
@@ -4728,7 +4614,7 @@ var UPDATE_VENDOR_MUTATION = import_client5.gql`
4728
4614
  }
4729
4615
  ${VENDOR}
4730
4616
  `;
4731
- var DELETE_VENDOR_MUTATION = import_client5.gql`
4617
+ var DELETE_VENDOR_MUTATION = import_client4.gql`
4732
4618
  mutation deleteVendor($_id: ID!) {
4733
4619
  deleteVendor(_id: $_id) {
4734
4620
  data
@@ -4736,7 +4622,7 @@ var DELETE_VENDOR_MUTATION = import_client5.gql`
4736
4622
  }
4737
4623
  }
4738
4624
  `;
4739
- var CREATE_VENDOR_INFO_MUTATION = import_client5.gql`
4625
+ var CREATE_VENDOR_INFO_MUTATION = import_client4.gql`
4740
4626
  mutation createVendorInfo($input: VendorInfoInputType!) {
4741
4627
  createVendorInfo(input: $input) {
4742
4628
  data {
@@ -4747,7 +4633,7 @@ var CREATE_VENDOR_INFO_MUTATION = import_client5.gql`
4747
4633
  }
4748
4634
  ${VENDOR_INFO}
4749
4635
  `;
4750
- var UPDATE_VENDOR_INFO_MUTATION = import_client5.gql`
4636
+ var UPDATE_VENDOR_INFO_MUTATION = import_client4.gql`
4751
4637
  mutation updateVendorInfo($_id: ID!, $input: VendorInfoInputType!) {
4752
4638
  updateVendorInfo(_id: $_id, input: $input) {
4753
4639
  data {
@@ -4758,7 +4644,7 @@ var UPDATE_VENDOR_INFO_MUTATION = import_client5.gql`
4758
4644
  }
4759
4645
  ${VENDOR_INFO}
4760
4646
  `;
4761
- var CREATE_UNREGISTERED_VENDOR_MUTATION = import_client5.gql`
4647
+ var CREATE_UNREGISTERED_VENDOR_MUTATION = import_client4.gql`
4762
4648
  mutation createUnregisteredVendor($input: UnregisteredVendorInputType!) {
4763
4649
  createUnregisteredVendor(input: $input) {
4764
4650
  data {
@@ -4769,7 +4655,7 @@ var CREATE_UNREGISTERED_VENDOR_MUTATION = import_client5.gql`
4769
4655
  }
4770
4656
  ${UNREGISTERED_VENDOR}
4771
4657
  `;
4772
- var UPDATE_UNREGISTERED_VENDOR_MUTATION = import_client5.gql`
4658
+ var UPDATE_UNREGISTERED_VENDOR_MUTATION = import_client4.gql`
4773
4659
  mutation updateUnregisteredVendor(
4774
4660
  $_id: ID!
4775
4661
  $input: UnregisteredVendorInputType!
@@ -4783,7 +4669,7 @@ var UPDATE_UNREGISTERED_VENDOR_MUTATION = import_client5.gql`
4783
4669
  }
4784
4670
  ${UNREGISTERED_VENDOR}
4785
4671
  `;
4786
- var DELETE_UNREGISTERED_VENDOR_MUTATION = import_client5.gql`
4672
+ var DELETE_UNREGISTERED_VENDOR_MUTATION = import_client4.gql`
4787
4673
  mutation deleteUnregisteredVendor($_id: ID!) {
4788
4674
  deleteUnregisteredVendor(_id: $_id) {
4789
4675
  data
@@ -4791,7 +4677,7 @@ var DELETE_UNREGISTERED_VENDOR_MUTATION = import_client5.gql`
4791
4677
  }
4792
4678
  }
4793
4679
  `;
4794
- var UNLINK_UNREGISTERED_VENDOR_BY_INVITER_ID_MUTATION = import_client5.gql`
4680
+ var UNLINK_UNREGISTERED_VENDOR_BY_INVITER_ID_MUTATION = import_client4.gql`
4795
4681
  mutation unlinkUnregisteredVendorByInviterId($_id: ID!, $inviterId: ID!) {
4796
4682
  unlinkUnregisteredVendorByInviterId(_id: $_id, inviterId: $inviterId) {
4797
4683
  data
@@ -4799,7 +4685,7 @@ var UNLINK_UNREGISTERED_VENDOR_BY_INVITER_ID_MUTATION = import_client5.gql`
4799
4685
  }
4800
4686
  }
4801
4687
  `;
4802
- var ACTIVATE_VENDOR_CLAIM_MUTATION = import_client5.gql`
4688
+ var ACTIVATE_VENDOR_CLAIM_MUTATION = import_client4.gql`
4803
4689
  mutation activateVendorClaim($token: String!) {
4804
4690
  activateVendorClaim(token: $token) {
4805
4691
  valid
@@ -4809,8 +4695,8 @@ var ACTIVATE_VENDOR_CLAIM_MUTATION = import_client5.gql`
4809
4695
  `;
4810
4696
 
4811
4697
  // src/graphql/queries/partner.ts
4812
- var import_client6 = require("@apollo/client");
4813
- var PARTNER = import_client6.gql`
4698
+ var import_client5 = require("@apollo/client");
4699
+ var PARTNER = import_client5.gql`
4814
4700
  fragment PartnerFields on PartnerType {
4815
4701
  _id
4816
4702
  active
@@ -4871,7 +4757,7 @@ var PARTNER = import_client6.gql`
4871
4757
  ${RELATED_POST_FIELDS_FRAGMENT}
4872
4758
  ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
4873
4759
  `;
4874
- var GET_PARTNERS = import_client6.gql`
4760
+ var GET_PARTNERS = import_client5.gql`
4875
4761
  query getPartners {
4876
4762
  partners {
4877
4763
  ...PartnerFields
@@ -4879,7 +4765,7 @@ var GET_PARTNERS = import_client6.gql`
4879
4765
  }
4880
4766
  ${PARTNER}
4881
4767
  `;
4882
- var GET_PARTNER = import_client6.gql`
4768
+ var GET_PARTNER = import_client5.gql`
4883
4769
  query getPartner($_id: ID!) {
4884
4770
  partner(_id: $_id) {
4885
4771
  ...PartnerFields
@@ -4887,7 +4773,7 @@ var GET_PARTNER = import_client6.gql`
4887
4773
  }
4888
4774
  ${PARTNER}
4889
4775
  `;
4890
- var GET_PARTNERS_BY_REGION = import_client6.gql`
4776
+ var GET_PARTNERS_BY_REGION = import_client5.gql`
4891
4777
  query getPartnersByRegion(
4892
4778
  $region: String!
4893
4779
  $options: ResourcesByRegionOptions
@@ -4898,7 +4784,7 @@ var GET_PARTNERS_BY_REGION = import_client6.gql`
4898
4784
  }
4899
4785
  ${PARTNER}
4900
4786
  `;
4901
- var SEARCH_PARTNERS = import_client6.gql`
4787
+ var SEARCH_PARTNERS = import_client5.gql`
4902
4788
  query searchPartners($search: String!, $region: String!) {
4903
4789
  partnersSearch(search: $search, region: $region) {
4904
4790
  ...PartnerFields
@@ -4908,17 +4794,17 @@ var SEARCH_PARTNERS = import_client6.gql`
4908
4794
  `;
4909
4795
 
4910
4796
  // src/graphql/queries/post.ts
4911
- var import_client9 = require("@apollo/client");
4797
+ var import_client8 = require("@apollo/client");
4912
4798
 
4913
4799
  // src/graphql/queries/game/dailyClue.ts
4914
- var import_client7 = require("@apollo/client");
4915
- var GAME_DATE_FIELDS_FRAGMENT = import_client7.gql`
4800
+ var import_client6 = require("@apollo/client");
4801
+ var GAME_DATE_FIELDS_FRAGMENT = import_client6.gql`
4916
4802
  fragment GameDateFields on GameDateType {
4917
4803
  startDate
4918
4804
  endDate
4919
4805
  }
4920
4806
  `;
4921
- var DAILY_CLUE_BASE_GAME_FIELDS_FRAGMENT = import_client7.gql`
4807
+ var DAILY_CLUE_BASE_GAME_FIELDS_FRAGMENT = import_client6.gql`
4922
4808
  fragment DailyClueBaseGameFields on DailyClueBaseGameType {
4923
4809
  gameDate {
4924
4810
  ...GameDateFields
@@ -4927,7 +4813,7 @@ var DAILY_CLUE_BASE_GAME_FIELDS_FRAGMENT = import_client7.gql`
4927
4813
  }
4928
4814
  ${GAME_DATE_FIELDS_FRAGMENT}
4929
4815
  `;
4930
- var DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT = import_client7.gql`
4816
+ var DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT = import_client6.gql`
4931
4817
  fragment DailyClueGameDataFields on DailyClueGameDataType {
4932
4818
  gameFields {
4933
4819
  ...DailyClueBaseGameFields
@@ -4947,15 +4833,15 @@ var DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT = import_client7.gql`
4947
4833
  `;
4948
4834
 
4949
4835
  // src/graphql/queries/game/puzzleGame.ts
4950
- var import_client8 = require("@apollo/client");
4951
- var PUZZLE_ANSWER_FIELDS_FRAGMENT = import_client8.gql`
4836
+ var import_client7 = require("@apollo/client");
4837
+ var PUZZLE_ANSWER_FIELDS_FRAGMENT = import_client7.gql`
4952
4838
  fragment PuzzleAnswerFields on PuzzleAnswerType {
4953
4839
  answer
4954
4840
  answerId
4955
4841
  correct
4956
4842
  }
4957
4843
  `;
4958
- var PUZZLE_QUESTION_FIELDS_FRAGMENT = import_client8.gql`
4844
+ var PUZZLE_QUESTION_FIELDS_FRAGMENT = import_client7.gql`
4959
4845
  fragment PuzzleQuestionFields on PuzzleQuestionType {
4960
4846
  answers {
4961
4847
  ...PuzzleAnswerFields
@@ -4965,13 +4851,13 @@ var PUZZLE_QUESTION_FIELDS_FRAGMENT = import_client8.gql`
4965
4851
  }
4966
4852
  ${PUZZLE_ANSWER_FIELDS_FRAGMENT}
4967
4853
  `;
4968
- var PUZZLE_ANSWERED_QUESTION_FIELDS_FRAGMENT = import_client8.gql`
4854
+ var PUZZLE_ANSWERED_QUESTION_FIELDS_FRAGMENT = import_client7.gql`
4969
4855
  fragment PuzzleAnsweredQuestionFields on PuzzleAnsweredQuestionType {
4970
4856
  questionId
4971
4857
  selectedAnswerId
4972
4858
  }
4973
4859
  `;
4974
- var PUZZLE_BASE_GAME_FIELDS_FRAGMENT = import_client8.gql`
4860
+ var PUZZLE_BASE_GAME_FIELDS_FRAGMENT = import_client7.gql`
4975
4861
  fragment PuzzleBaseGameFields on PuzzleBaseGameType {
4976
4862
  questions {
4977
4863
  ...PuzzleQuestionFields
@@ -4979,7 +4865,7 @@ var PUZZLE_BASE_GAME_FIELDS_FRAGMENT = import_client8.gql`
4979
4865
  }
4980
4866
  ${PUZZLE_QUESTION_FIELDS_FRAGMENT}
4981
4867
  `;
4982
- var PUZZLE_GAME_DATA_FIELDS_FRAGMENT = import_client8.gql`
4868
+ var PUZZLE_GAME_DATA_FIELDS_FRAGMENT = import_client7.gql`
4983
4869
  fragment PuzzleGameDataFields on PuzzleGameDataType {
4984
4870
  gameFields {
4985
4871
  ...PuzzleBaseGameFields
@@ -4995,7 +4881,7 @@ var PUZZLE_GAME_DATA_FIELDS_FRAGMENT = import_client8.gql`
4995
4881
  `;
4996
4882
 
4997
4883
  // src/graphql/queries/post.ts
4998
- var BASE_GAME_FIELDS_FRAGMENT = import_client9.gql`
4884
+ var BASE_GAME_FIELDS_FRAGMENT = import_client8.gql`
4999
4885
  fragment BaseGameFields on BaseGameType {
5000
4886
  gameTypeId
5001
4887
  gameTitle
@@ -5013,7 +4899,7 @@ var BASE_GAME_FIELDS_FRAGMENT = import_client9.gql`
5013
4899
  ${DAILY_CLUE_BASE_GAME_FIELDS_FRAGMENT}
5014
4900
  ${PUZZLE_BASE_GAME_FIELDS_FRAGMENT}
5015
4901
  `;
5016
- var POST_CONTENT_DATA_FIELDS_FRAGMENT = import_client9.gql`
4902
+ var POST_CONTENT_DATA_FIELDS_FRAGMENT = import_client8.gql`
5017
4903
  fragment PostContentDataFields on PostContentData {
5018
4904
  game {
5019
4905
  ...BaseGameFields
@@ -5039,7 +4925,7 @@ var POST_CONTENT_DATA_FIELDS_FRAGMENT = import_client9.gql`
5039
4925
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
5040
4926
  ${BASE_GAME_FIELDS_FRAGMENT}
5041
4927
  `;
5042
- var POST_CONTENT_FIELDS_FRAGMENT = import_client9.gql`
4928
+ var POST_CONTENT_FIELDS_FRAGMENT = import_client8.gql`
5043
4929
  fragment PostContentFields on PostContentType {
5044
4930
  contentData {
5045
4931
  ...PostContentDataFields
@@ -5049,7 +4935,7 @@ var POST_CONTENT_FIELDS_FRAGMENT = import_client9.gql`
5049
4935
  }
5050
4936
  ${POST_CONTENT_DATA_FIELDS_FRAGMENT}
5051
4937
  `;
5052
- var POST_RESOURCE_FIELDS_FRAGMENT = import_client9.gql`
4938
+ var POST_RESOURCE_FIELDS_FRAGMENT = import_client8.gql`
5053
4939
  fragment PostResourceFields on PostResourceType {
5054
4940
  resourceId
5055
4941
  resourceSlug
@@ -5057,7 +4943,7 @@ var POST_RESOURCE_FIELDS_FRAGMENT = import_client9.gql`
5057
4943
  resourceType
5058
4944
  }
5059
4945
  `;
5060
- var POST_FIELDS_FRAGMENT = import_client9.gql`
4946
+ var POST_FIELDS_FRAGMENT = import_client8.gql`
5061
4947
  fragment PostFields on PostType {
5062
4948
  _id
5063
4949
  active
@@ -5088,7 +4974,7 @@ var POST_FIELDS_FRAGMENT = import_client9.gql`
5088
4974
  ${POST_RESOURCE_FIELDS_FRAGMENT}
5089
4975
  ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
5090
4976
  `;
5091
- var GET_POSTS = import_client9.gql`
4977
+ var GET_POSTS = import_client8.gql`
5092
4978
  query getPosts {
5093
4979
  posts {
5094
4980
  ...PostFields
@@ -5096,7 +4982,7 @@ var GET_POSTS = import_client9.gql`
5096
4982
  }
5097
4983
  ${POST_FIELDS_FRAGMENT}
5098
4984
  `;
5099
- var GET_POST = import_client9.gql`
4985
+ var GET_POST = import_client8.gql`
5100
4986
  query getPost($_id: ID!) {
5101
4987
  post(_id: $_id) {
5102
4988
  ...PostFields
@@ -5104,7 +4990,7 @@ var GET_POST = import_client9.gql`
5104
4990
  }
5105
4991
  ${POST_FIELDS_FRAGMENT}
5106
4992
  `;
5107
- var GET_POSTS_BY_TYPE = import_client9.gql`
4993
+ var GET_POSTS_BY_TYPE = import_client8.gql`
5108
4994
  query getPostsByType($postType: PostTypeEnum!) {
5109
4995
  postsByType(postType: $postType) {
5110
4996
  ...PostFields
@@ -5114,29 +5000,29 @@ var GET_POSTS_BY_TYPE = import_client9.gql`
5114
5000
  `;
5115
5001
 
5116
5002
  // src/graphql/queries/shareSlug.ts
5117
- var import_client10 = require("@apollo/client");
5118
- var GET_EVENT_BY_SLUG = import_client10.gql`
5003
+ var import_client9 = require("@apollo/client");
5004
+ var GET_EVENT_BY_SLUG = import_client9.gql`
5119
5005
  query getEventBySlug($slug: String!) {
5120
5006
  eventBySlug(slug: $slug) {
5121
5007
  _id
5122
5008
  }
5123
5009
  }
5124
5010
  `;
5125
- var GET_VENDOR_BY_SLUG = import_client10.gql`
5011
+ var GET_VENDOR_BY_SLUG = import_client9.gql`
5126
5012
  query getVendorBySlug($slug: String!) {
5127
5013
  vendorBySlug(slug: $slug) {
5128
5014
  _id
5129
5015
  }
5130
5016
  }
5131
5017
  `;
5132
- var GET_PARTNER_BY_SLUG = import_client10.gql`
5018
+ var GET_PARTNER_BY_SLUG = import_client9.gql`
5133
5019
  query getPartnerBySlug($slug: String!) {
5134
5020
  partnerBySlug(slug: $slug) {
5135
5021
  _id
5136
5022
  }
5137
5023
  }
5138
5024
  `;
5139
- var GET_POST_BY_SLUG = import_client10.gql`
5025
+ var GET_POST_BY_SLUG = import_client9.gql`
5140
5026
  query getPostBySlug($slug: String!, $postType: PostTypeEnum!) {
5141
5027
  postBySlug(slug: $slug, postType: $postType) {
5142
5028
  _id
@@ -5145,8 +5031,8 @@ var GET_POST_BY_SLUG = import_client10.gql`
5145
5031
  `;
5146
5032
 
5147
5033
  // src/graphql/queries/relation.ts
5148
- var import_client11 = require("@apollo/client");
5149
- var RELATION_FIELDS_FRAGMENT = import_client11.gql`
5034
+ var import_client10 = require("@apollo/client");
5035
+ var RELATION_FIELDS_FRAGMENT = import_client10.gql`
5150
5036
  fragment RelationFields on RelationType {
5151
5037
  _id
5152
5038
  active
@@ -5163,7 +5049,7 @@ var RELATION_FIELDS_FRAGMENT = import_client11.gql`
5163
5049
  }
5164
5050
  ${RELATION_DATES_FRAGMENT}
5165
5051
  `;
5166
- var GET_RELATION = import_client11.gql`
5052
+ var GET_RELATION = import_client10.gql`
5167
5053
  query getRelation($_id: ID!) {
5168
5054
  relation(_id: $_id) {
5169
5055
  ...RelationFields
@@ -5171,7 +5057,7 @@ var GET_RELATION = import_client11.gql`
5171
5057
  }
5172
5058
  ${RELATION_FIELDS_FRAGMENT}
5173
5059
  `;
5174
- var GET_RELATION_BY_EVENT_AND_VENDOR = import_client11.gql`
5060
+ var GET_RELATION_BY_EVENT_AND_VENDOR = import_client10.gql`
5175
5061
  query getRelationByEventAndVendor($eventId: ID!, $vendorId: ID!) {
5176
5062
  relationByEventAndVendor(eventId: $eventId, vendorId: $vendorId) {
5177
5063
  ...RelationFields
@@ -5179,7 +5065,7 @@ var GET_RELATION_BY_EVENT_AND_VENDOR = import_client11.gql`
5179
5065
  }
5180
5066
  ${RELATION_FIELDS_FRAGMENT}
5181
5067
  `;
5182
- var GET_EVENT_RELATIONS = import_client11.gql`
5068
+ var GET_EVENT_RELATIONS = import_client10.gql`
5183
5069
  query getEventRelations($eventId: ID!) {
5184
5070
  eventRelations(eventId: $eventId) {
5185
5071
  ...RelationFields
@@ -5187,7 +5073,7 @@ var GET_EVENT_RELATIONS = import_client11.gql`
5187
5073
  }
5188
5074
  ${RELATION_FIELDS_FRAGMENT}
5189
5075
  `;
5190
- var GET_VENDOR_RELATIONS = import_client11.gql`
5076
+ var GET_VENDOR_RELATIONS = import_client10.gql`
5191
5077
  query getVendorRelations($vendorId: ID!) {
5192
5078
  vendorRelations(vendorId: $vendorId) {
5193
5079
  ...RelationFields
@@ -5195,7 +5081,7 @@ var GET_VENDOR_RELATIONS = import_client11.gql`
5195
5081
  }
5196
5082
  ${RELATION_FIELDS_FRAGMENT}
5197
5083
  `;
5198
- var GET_RESOURCE_CONNECTIONS = import_client11.gql`
5084
+ var GET_RESOURCE_CONNECTIONS = import_client10.gql`
5199
5085
  query getResourceConnections(
5200
5086
  $resourceId: ID!
5201
5087
  $resourceType: ResourceTypeEnum!
@@ -5220,11 +5106,11 @@ function toGraphqlQueryString(query) {
5220
5106
  }
5221
5107
 
5222
5108
  // src/graphql/hooks/admin/hooksMutation.ts
5223
- var import_client13 = require("@apollo/client");
5109
+ var import_client12 = require("@apollo/client");
5224
5110
 
5225
5111
  // src/graphql/mutations/admin.ts
5226
- var import_client12 = require("@apollo/client");
5227
- var ADMIN_UPDATE_RESOURCE_TYPE_MUTATION = import_client12.gql`
5112
+ var import_client11 = require("@apollo/client");
5113
+ var ADMIN_UPDATE_RESOURCE_TYPE_MUTATION = import_client11.gql`
5228
5114
  mutation adminUpdateResourceType($input: AdminUpdateResourceInputType!) {
5229
5115
  adminUpdateResourceType(input: $input) {
5230
5116
  data {
@@ -5236,7 +5122,7 @@ var ADMIN_UPDATE_RESOURCE_TYPE_MUTATION = import_client12.gql`
5236
5122
  }
5237
5123
  }
5238
5124
  `;
5239
- var ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION = import_client12.gql`
5125
+ var ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION = import_client11.gql`
5240
5126
  mutation adminResendUserVerificationEmail($userId: ID!) {
5241
5127
  adminResendUserVerificationEmail(userId: $userId) {
5242
5128
  data
@@ -5244,7 +5130,7 @@ var ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION = import_client12.gql`
5244
5130
  }
5245
5131
  }
5246
5132
  `;
5247
- var ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION = import_client12.gql`
5133
+ var ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION = import_client11.gql`
5248
5134
  mutation adminPermanentlyDeleteResource(
5249
5135
  $resourceId: ID!
5250
5136
  $resourceType: ResourceTypeEnum!
@@ -5261,7 +5147,7 @@ var ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION = import_client12.gql`
5261
5147
 
5262
5148
  // src/graphql/hooks/admin/hooksMutation.ts
5263
5149
  var useAdminUpdateResourceType = () => {
5264
- const [adminUpdateResourceType, { loading, error }] = (0, import_client13.useMutation)(ADMIN_UPDATE_RESOURCE_TYPE_MUTATION, {
5150
+ const [adminUpdateResourceType, { loading, error }] = (0, import_client12.useMutation)(ADMIN_UPDATE_RESOURCE_TYPE_MUTATION, {
5265
5151
  awaitRefetchQueries: true,
5266
5152
  refetchQueries: (mutationResult) => {
5267
5153
  const adminUpdateResourceType2 = mutationResult?.data?.adminUpdateResourceType?.data;
@@ -5284,7 +5170,7 @@ var useAdminUpdateResourceType = () => {
5284
5170
  };
5285
5171
  };
5286
5172
  var useAdminResendUserVerificationEmail = () => {
5287
- const [adminResendUserVerificationEmail, { loading, error }] = (0, import_client13.useMutation)(ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION);
5173
+ const [adminResendUserVerificationEmail, { loading, error }] = (0, import_client12.useMutation)(ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION);
5288
5174
  return {
5289
5175
  adminResendUserVerificationEmail,
5290
5176
  error,
@@ -5292,7 +5178,7 @@ var useAdminResendUserVerificationEmail = () => {
5292
5178
  };
5293
5179
  };
5294
5180
  var useAdminPermanentlyDeleteResource = () => {
5295
- const [adminPermanentlyDeleteResource, { loading, error }] = (0, import_client13.useMutation)(ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION);
5181
+ const [adminPermanentlyDeleteResource, { loading, error }] = (0, import_client12.useMutation)(ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION);
5296
5182
  return {
5297
5183
  adminPermanentlyDeleteResource,
5298
5184
  error,
@@ -5301,11 +5187,11 @@ var useAdminPermanentlyDeleteResource = () => {
5301
5187
  };
5302
5188
 
5303
5189
  // src/graphql/hooks/auth.ts
5304
- var import_client15 = require("@apollo/client");
5190
+ var import_client14 = require("@apollo/client");
5305
5191
 
5306
5192
  // src/graphql/mutations/auth.ts
5307
- var import_client14 = require("@apollo/client");
5308
- var REGISTER_MUTATION = import_client14.gql`
5193
+ var import_client13 = require("@apollo/client");
5194
+ var REGISTER_MUTATION = import_client13.gql`
5309
5195
  mutation register($input: RegisterInputType!) {
5310
5196
  register(input: $input) {
5311
5197
  data {
@@ -5320,7 +5206,7 @@ var REGISTER_MUTATION = import_client14.gql`
5320
5206
  }
5321
5207
  ${USER_FIELDS_FRAGMENT}
5322
5208
  `;
5323
- var LOGIN_MUTATION = import_client14.gql`
5209
+ var LOGIN_MUTATION = import_client13.gql`
5324
5210
  mutation login($input: LoginInputType!) {
5325
5211
  login(input: $input) {
5326
5212
  data {
@@ -5335,7 +5221,7 @@ var LOGIN_MUTATION = import_client14.gql`
5335
5221
  }
5336
5222
  ${USER_FIELDS_FRAGMENT}
5337
5223
  `;
5338
- var LOGOUT_MUTATION = import_client14.gql`
5224
+ var LOGOUT_MUTATION = import_client13.gql`
5339
5225
  mutation logout {
5340
5226
  logout {
5341
5227
  data
@@ -5343,7 +5229,7 @@ var LOGOUT_MUTATION = import_client14.gql`
5343
5229
  }
5344
5230
  }
5345
5231
  `;
5346
- var REFRESH_TOKEN_MUTATION = import_client14.gql`
5232
+ var REFRESH_TOKEN_MUTATION = import_client13.gql`
5347
5233
  mutation refreshToken($input: RefreshTokenInputType!) {
5348
5234
  refreshToken(input: $input) {
5349
5235
  data {
@@ -5354,7 +5240,7 @@ var REFRESH_TOKEN_MUTATION = import_client14.gql`
5354
5240
  }
5355
5241
  }
5356
5242
  `;
5357
- var RESET_PASSWORD_MUTATION = import_client14.gql`
5243
+ var RESET_PASSWORD_MUTATION = import_client13.gql`
5358
5244
  mutation resetPassword($input: ResetPasswordInputType!) {
5359
5245
  resetPassword(input: $input) {
5360
5246
  data
@@ -5362,7 +5248,7 @@ var RESET_PASSWORD_MUTATION = import_client14.gql`
5362
5248
  }
5363
5249
  }
5364
5250
  `;
5365
- var REQUEST_PASSWORD_RESET_MUTATION = import_client14.gql`
5251
+ var REQUEST_PASSWORD_RESET_MUTATION = import_client13.gql`
5366
5252
  mutation requestPasswordReset($input: RequestPasswordResetInputType!) {
5367
5253
  requestPasswordReset(input: $input) {
5368
5254
  data
@@ -5370,7 +5256,7 @@ var REQUEST_PASSWORD_RESET_MUTATION = import_client14.gql`
5370
5256
  }
5371
5257
  }
5372
5258
  `;
5373
- var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client14.gql`
5259
+ var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client13.gql`
5374
5260
  mutation validateVerificationToken(
5375
5261
  $input: ValidateVerificationTokenInputType!
5376
5262
  ) {
@@ -5383,43 +5269,43 @@ var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client14.gql`
5383
5269
 
5384
5270
  // src/graphql/hooks/auth.ts
5385
5271
  var useRegister = () => {
5386
- const [register, { loading, error }] = (0, import_client15.useMutation)(REGISTER_MUTATION);
5272
+ const [register, { loading, error }] = (0, import_client14.useMutation)(REGISTER_MUTATION);
5387
5273
  return { error, loading, register };
5388
5274
  };
5389
5275
  var useLogin = () => {
5390
- const [login, { loading, error }] = (0, import_client15.useMutation)(LOGIN_MUTATION);
5276
+ const [login, { loading, error }] = (0, import_client14.useMutation)(LOGIN_MUTATION);
5391
5277
  return { error, loading, login };
5392
5278
  };
5393
5279
  var useLogout = () => {
5394
- const [logout, { loading, error }] = (0, import_client15.useMutation)(LOGOUT_MUTATION);
5280
+ const [logout, { loading, error }] = (0, import_client14.useMutation)(LOGOUT_MUTATION);
5395
5281
  return { error, loading, logout };
5396
5282
  };
5397
5283
  var useRefreshToken = () => {
5398
- const [refreshToken, { loading, error }] = (0, import_client15.useMutation)(REFRESH_TOKEN_MUTATION);
5284
+ const [refreshToken, { loading, error }] = (0, import_client14.useMutation)(REFRESH_TOKEN_MUTATION);
5399
5285
  return { error, loading, refreshToken };
5400
5286
  };
5401
5287
  var useRequestPasswordReset = () => {
5402
- const [requestPasswordReset, { loading, error }] = (0, import_client15.useMutation)(REQUEST_PASSWORD_RESET_MUTATION);
5288
+ const [requestPasswordReset, { loading, error }] = (0, import_client14.useMutation)(REQUEST_PASSWORD_RESET_MUTATION);
5403
5289
  return { error, loading, requestPasswordReset };
5404
5290
  };
5405
5291
  var useValidateVerificationToken = () => {
5406
- const [validateVerificationToken, { loading, error }] = (0, import_client15.useMutation)(VALIDATE_VERIFICATION_TOKEN_MUTATION);
5292
+ const [validateVerificationToken, { loading, error }] = (0, import_client14.useMutation)(VALIDATE_VERIFICATION_TOKEN_MUTATION);
5407
5293
  return { error, loading, validateVerificationToken };
5408
5294
  };
5409
5295
  var useResetPassword = () => {
5410
- const [resetPassword, { loading, error }] = (0, import_client15.useMutation)(RESET_PASSWORD_MUTATION);
5296
+ const [resetPassword, { loading, error }] = (0, import_client14.useMutation)(RESET_PASSWORD_MUTATION);
5411
5297
  return { error, loading, resetPassword };
5412
5298
  };
5413
5299
 
5414
5300
  // src/graphql/hooks/chat/hooksMutation.ts
5415
- var import_client18 = require("@apollo/client");
5301
+ var import_client17 = require("@apollo/client");
5416
5302
 
5417
5303
  // src/graphql/mutations/chat.ts
5418
- var import_client17 = require("@apollo/client");
5304
+ var import_client16 = require("@apollo/client");
5419
5305
 
5420
5306
  // src/graphql/queries/chat.ts
5421
- var import_client16 = require("@apollo/client");
5422
- var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client16.gql`
5307
+ var import_client15 = require("@apollo/client");
5308
+ var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client15.gql`
5423
5309
  fragment ChatMessageFields on ChatMessageType {
5424
5310
  _id
5425
5311
  content
@@ -5442,7 +5328,7 @@ var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client16.gql`
5442
5328
  updatedAt
5443
5329
  }
5444
5330
  `;
5445
- var CHAT_PARTICIPANT = import_client16.gql`
5331
+ var CHAT_PARTICIPANT = import_client15.gql`
5446
5332
  fragment ChatParticipantFields on ChatParticipantType {
5447
5333
  active
5448
5334
  userAvatar
@@ -5451,7 +5337,7 @@ var CHAT_PARTICIPANT = import_client16.gql`
5451
5337
  userName
5452
5338
  }
5453
5339
  `;
5454
- var CHAT_FIELDS_FRAGMENT = import_client16.gql`
5340
+ var CHAT_FIELDS_FRAGMENT = import_client15.gql`
5455
5341
  fragment ChatFields on ChatType {
5456
5342
  _id
5457
5343
  active
@@ -5472,7 +5358,7 @@ var CHAT_FIELDS_FRAGMENT = import_client16.gql`
5472
5358
  ${CHAT_MESSAGE_FIELDS_FRAGMENT}
5473
5359
  ${CHAT_PARTICIPANT}
5474
5360
  `;
5475
- var CHAT = import_client16.gql`
5361
+ var CHAT = import_client15.gql`
5476
5362
  query chat($_id: ID!) {
5477
5363
  chat(_id: $_id) {
5478
5364
  ...ChatFields
@@ -5480,7 +5366,7 @@ var CHAT = import_client16.gql`
5480
5366
  }
5481
5367
  ${CHAT_FIELDS_FRAGMENT}
5482
5368
  `;
5483
- var PRIVATE_CHATS = import_client16.gql`
5369
+ var PRIVATE_CHATS = import_client15.gql`
5484
5370
  query privateChats {
5485
5371
  privateChats {
5486
5372
  ...ChatFields
@@ -5488,7 +5374,7 @@ var PRIVATE_CHATS = import_client16.gql`
5488
5374
  }
5489
5375
  ${CHAT_FIELDS_FRAGMENT}
5490
5376
  `;
5491
- var RELATION_CHATS = import_client16.gql`
5377
+ var RELATION_CHATS = import_client15.gql`
5492
5378
  query relationChats {
5493
5379
  relationChats {
5494
5380
  ...ChatFields
@@ -5496,7 +5382,7 @@ var RELATION_CHATS = import_client16.gql`
5496
5382
  }
5497
5383
  ${CHAT_FIELDS_FRAGMENT}
5498
5384
  `;
5499
- var GET_CHATS_BY_REGION = import_client16.gql`
5385
+ var GET_CHATS_BY_REGION = import_client15.gql`
5500
5386
  query getChatsByRegion($region: String!) {
5501
5387
  chatsByRegion(region: $region) {
5502
5388
  ...ChatFields
@@ -5504,7 +5390,7 @@ var GET_CHATS_BY_REGION = import_client16.gql`
5504
5390
  }
5505
5391
  ${CHAT_FIELDS_FRAGMENT}
5506
5392
  `;
5507
- var CHAT_REPORT_FIELDS_FRAGMENT = import_client16.gql`
5393
+ var CHAT_REPORT_FIELDS_FRAGMENT = import_client15.gql`
5508
5394
  fragment ChatReportFields on ReportChatUserType {
5509
5395
  _id
5510
5396
  chatId
@@ -5519,7 +5405,7 @@ var CHAT_REPORT_FIELDS_FRAGMENT = import_client16.gql`
5519
5405
  updatedAt
5520
5406
  }
5521
5407
  `;
5522
- var GET_REPORTED_CHAT_USERS = import_client16.gql`
5408
+ var GET_REPORTED_CHAT_USERS = import_client15.gql`
5523
5409
  query getReportedChatUsers {
5524
5410
  reportedChatUsers {
5525
5411
  ...ChatReportFields
@@ -5529,7 +5415,7 @@ var GET_REPORTED_CHAT_USERS = import_client16.gql`
5529
5415
  `;
5530
5416
 
5531
5417
  // src/graphql/mutations/chat.ts
5532
- var CREATE_PRIVATE_CHAT_MUTATION = import_client17.gql`
5418
+ var CREATE_PRIVATE_CHAT_MUTATION = import_client16.gql`
5533
5419
  mutation createPrivateChat($userId: ID!) {
5534
5420
  createPrivateChat(userId: $userId) {
5535
5421
  data {
@@ -5540,7 +5426,7 @@ var CREATE_PRIVATE_CHAT_MUTATION = import_client17.gql`
5540
5426
  }
5541
5427
  ${CHAT_FIELDS_FRAGMENT}
5542
5428
  `;
5543
- var SEND_CHAT_MESSAGE_MUTATION = import_client17.gql`
5429
+ var SEND_CHAT_MESSAGE_MUTATION = import_client16.gql`
5544
5430
  mutation sendChatMessage($_id: ID!, $input: ChatMessageInputType!) {
5545
5431
  sendChatMessage(_id: $_id, input: $input) {
5546
5432
  data {
@@ -5551,7 +5437,7 @@ var SEND_CHAT_MESSAGE_MUTATION = import_client17.gql`
5551
5437
  }
5552
5438
  ${CHAT_FIELDS_FRAGMENT}
5553
5439
  `;
5554
- var DELETE_CHAT_MUTATION = import_client17.gql`
5440
+ var DELETE_CHAT_MUTATION = import_client16.gql`
5555
5441
  mutation deleteChat($_id: ID!) {
5556
5442
  deleteChat(_id: $_id) {
5557
5443
  data
@@ -5559,7 +5445,7 @@ var DELETE_CHAT_MUTATION = import_client17.gql`
5559
5445
  }
5560
5446
  }
5561
5447
  `;
5562
- var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client17.gql`
5448
+ var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client16.gql`
5563
5449
  mutation addParticipantToChat($chatId: ID!, $userId: ID!) {
5564
5450
  addParticipantToChat(chatId: $chatId, userId: $userId) {
5565
5451
  data {
@@ -5570,7 +5456,7 @@ var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client17.gql`
5570
5456
  }
5571
5457
  ${CHAT_FIELDS_FRAGMENT}
5572
5458
  `;
5573
- var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client17.gql`
5459
+ var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client16.gql`
5574
5460
  mutation removeParticipantFromChat($chatId: ID!, $userId: ID!) {
5575
5461
  removeParticipantFromChat(chatId: $chatId, userId: $userId) {
5576
5462
  data {
@@ -5581,7 +5467,7 @@ var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client17.gql`
5581
5467
  }
5582
5468
  }
5583
5469
  `;
5584
- var TOGGLE_CHAT_MESSAGE_LIKE_MUTATION = import_client17.gql`
5470
+ var TOGGLE_CHAT_MESSAGE_LIKE_MUTATION = import_client16.gql`
5585
5471
  mutation toggleChatMessageLike($chatId: ID!, $messageId: ID!) {
5586
5472
  toggleChatMessageLike(chatId: $chatId, messageId: $messageId) {
5587
5473
  data {
@@ -5592,7 +5478,7 @@ var TOGGLE_CHAT_MESSAGE_LIKE_MUTATION = import_client17.gql`
5592
5478
  }
5593
5479
  ${CHAT_FIELDS_FRAGMENT}
5594
5480
  `;
5595
- var MARK_CHAT_MESSAGES_SEEN_MUTATION = import_client17.gql`
5481
+ var MARK_CHAT_MESSAGES_SEEN_MUTATION = import_client16.gql`
5596
5482
  mutation markChatMessagesSeen($chatId: ID!, $messageIds: [ID!]!) {
5597
5483
  markChatMessagesSeen(chatId: $chatId, messageIds: $messageIds) {
5598
5484
  data {
@@ -5603,7 +5489,7 @@ var MARK_CHAT_MESSAGES_SEEN_MUTATION = import_client17.gql`
5603
5489
  }
5604
5490
  ${CHAT_FIELDS_FRAGMENT}
5605
5491
  `;
5606
- var REPORT_CHAT_USER_MUTATION = import_client17.gql`
5492
+ var REPORT_CHAT_USER_MUTATION = import_client16.gql`
5607
5493
  mutation reportChatUser($input: ReportChatUserInputType!) {
5608
5494
  reportChatUser(input: $input) {
5609
5495
  data {
@@ -5617,14 +5503,14 @@ var REPORT_CHAT_USER_MUTATION = import_client17.gql`
5617
5503
 
5618
5504
  // src/graphql/hooks/chat/hooksMutation.ts
5619
5505
  var useCreatePrivateChat = () => {
5620
- const [createPrivateChat, { loading, error }] = (0, import_client18.useMutation)(CREATE_PRIVATE_CHAT_MUTATION, {
5506
+ const [createPrivateChat, { loading, error }] = (0, import_client17.useMutation)(CREATE_PRIVATE_CHAT_MUTATION, {
5621
5507
  awaitRefetchQueries: true,
5622
5508
  refetchQueries: [{ query: PRIVATE_CHATS }]
5623
5509
  });
5624
5510
  return { createPrivateChat, error, loading };
5625
5511
  };
5626
5512
  var useSendChatMessage = () => {
5627
- const [sendChatMessage, { loading, error }] = (0, import_client18.useMutation)(SEND_CHAT_MESSAGE_MUTATION, {
5513
+ const [sendChatMessage, { loading, error }] = (0, import_client17.useMutation)(SEND_CHAT_MESSAGE_MUTATION, {
5628
5514
  awaitRefetchQueries: true,
5629
5515
  refetchQueries: (mutationResult) => {
5630
5516
  const chatId = mutationResult?.data?.sendChatMessage?.data?._id;
@@ -5639,14 +5525,14 @@ var useSendChatMessage = () => {
5639
5525
  return { error, loading, sendChatMessage };
5640
5526
  };
5641
5527
  var useDeleteChat = () => {
5642
- const [deleteChat, { loading, error }] = (0, import_client18.useMutation)(DELETE_CHAT_MUTATION, {
5528
+ const [deleteChat, { loading, error }] = (0, import_client17.useMutation)(DELETE_CHAT_MUTATION, {
5643
5529
  awaitRefetchQueries: true,
5644
5530
  refetchQueries: [{ query: PRIVATE_CHATS }, { query: RELATION_CHATS }]
5645
5531
  });
5646
5532
  return { deleteChat, error, loading };
5647
5533
  };
5648
5534
  var useAddParticipantToChat = () => {
5649
- const [addParticipantToChat, { loading, error }] = (0, import_client18.useMutation)(ADD_PARTICIPANT_TO_CHAT_MUTATION, {
5535
+ const [addParticipantToChat, { loading, error }] = (0, import_client17.useMutation)(ADD_PARTICIPANT_TO_CHAT_MUTATION, {
5650
5536
  awaitRefetchQueries: true,
5651
5537
  refetchQueries: (mutationResult) => {
5652
5538
  const chatId = mutationResult?.data?.addParticipantToChat?.data?._id;
@@ -5667,7 +5553,7 @@ var useAddParticipantToChat = () => {
5667
5553
  return { addParticipantToChat, error, loading };
5668
5554
  };
5669
5555
  var useRemoveParticipantFromChat = () => {
5670
- const [removeParticipantFromChat, { loading, error }] = (0, import_client18.useMutation)(REMOVE_PARTICIPANT_FROM_CHAT_MUTATION, {
5556
+ const [removeParticipantFromChat, { loading, error }] = (0, import_client17.useMutation)(REMOVE_PARTICIPANT_FROM_CHAT_MUTATION, {
5671
5557
  awaitRefetchQueries: true,
5672
5558
  refetchQueries: (mutationResult) => {
5673
5559
  const region = mutationResult?.data?.removeParticipantFromChat?.data?.region;
@@ -5687,7 +5573,7 @@ var useRemoveParticipantFromChat = () => {
5687
5573
  return { error, loading, removeParticipantFromChat };
5688
5574
  };
5689
5575
  var useToggleChatMessageLike = () => {
5690
- const [toggleChatMessageLike, { loading, error }] = (0, import_client18.useMutation)(TOGGLE_CHAT_MESSAGE_LIKE_MUTATION, {
5576
+ const [toggleChatMessageLike, { loading, error }] = (0, import_client17.useMutation)(TOGGLE_CHAT_MESSAGE_LIKE_MUTATION, {
5691
5577
  awaitRefetchQueries: true,
5692
5578
  refetchQueries: (mutationResult) => {
5693
5579
  const chatId = mutationResult?.data?.toggleChatMessageLike?.data?._id;
@@ -5702,7 +5588,7 @@ var useToggleChatMessageLike = () => {
5702
5588
  return { error, loading, toggleChatMessageLike };
5703
5589
  };
5704
5590
  var useMarkChatMessagesSeen = () => {
5705
- const [markChatMessagesSeen, { loading, error }] = (0, import_client18.useMutation)(MARK_CHAT_MESSAGES_SEEN_MUTATION, {
5591
+ const [markChatMessagesSeen, { loading, error }] = (0, import_client17.useMutation)(MARK_CHAT_MESSAGES_SEEN_MUTATION, {
5706
5592
  awaitRefetchQueries: true,
5707
5593
  refetchQueries: (mutationResult) => {
5708
5594
  const chatId = mutationResult?.data?.markChatMessagesSeen?.data?._id;
@@ -5717,16 +5603,16 @@ var useMarkChatMessagesSeen = () => {
5717
5603
  return { error, loading, markChatMessagesSeen };
5718
5604
  };
5719
5605
  var useReportChatUser = () => {
5720
- const [reportChatUser, { loading, error }] = (0, import_client18.useMutation)(REPORT_CHAT_USER_MUTATION);
5606
+ const [reportChatUser, { loading, error }] = (0, import_client17.useMutation)(REPORT_CHAT_USER_MUTATION);
5721
5607
  return { error, loading, reportChatUser };
5722
5608
  };
5723
5609
 
5724
5610
  // src/graphql/hooks/chat/hooksQuery.ts
5725
- var import_client20 = require("@apollo/client");
5611
+ var import_client19 = require("@apollo/client");
5726
5612
 
5727
5613
  // src/graphql/subscriptions/chat.ts
5728
- var import_client19 = require("@apollo/client");
5729
- var GET_CHAT_MESSAGE = import_client19.gql`
5614
+ var import_client18 = require("@apollo/client");
5615
+ var GET_CHAT_MESSAGE = import_client18.gql`
5730
5616
  subscription {
5731
5617
  getChatMessage {
5732
5618
  ...ChatFields
@@ -5737,7 +5623,7 @@ var GET_CHAT_MESSAGE = import_client19.gql`
5737
5623
 
5738
5624
  // src/graphql/hooks/chat/hooksQuery.ts
5739
5625
  var useGetChat = (_id) => {
5740
- const { loading, error, data, refetch } = (0, import_client20.useQuery)(CHAT, {
5626
+ const { loading, error, data, refetch } = (0, import_client19.useQuery)(CHAT, {
5741
5627
  fetchPolicy: "network-only",
5742
5628
  skip: !_id || _id === "",
5743
5629
  variables: { _id }
@@ -5746,28 +5632,28 @@ var useGetChat = (_id) => {
5746
5632
  return { chat, error, loading, refetch };
5747
5633
  };
5748
5634
  var useGetPrivateChats = () => {
5749
- const { loading, error, data, refetch } = (0, import_client20.useQuery)(PRIVATE_CHATS, {
5635
+ const { loading, error, data, refetch } = (0, import_client19.useQuery)(PRIVATE_CHATS, {
5750
5636
  fetchPolicy: "network-only"
5751
5637
  });
5752
5638
  const privateChats = data?.privateChats || [];
5753
5639
  return { error, loading, privateChats, refetch };
5754
5640
  };
5755
5641
  var useGetRelationChats = () => {
5756
- const { loading, error, data, refetch } = (0, import_client20.useQuery)(RELATION_CHATS, {
5642
+ const { loading, error, data, refetch } = (0, import_client19.useQuery)(RELATION_CHATS, {
5757
5643
  fetchPolicy: "network-only"
5758
5644
  });
5759
5645
  const relationChats = data?.relationChats || [];
5760
5646
  return { error, loading, refetch, relationChats };
5761
5647
  };
5762
5648
  var useGetChatSubscription = () => {
5763
- const { data, loading, error } = (0, import_client20.useSubscription)(
5649
+ const { data, loading, error } = (0, import_client19.useSubscription)(
5764
5650
  GET_CHAT_MESSAGE
5765
5651
  );
5766
5652
  const chat = data?.getChat;
5767
5653
  return { chat, error, loading };
5768
5654
  };
5769
5655
  var useGetChatsByRegion = (region) => {
5770
- const { loading, error, data, refetch } = (0, import_client20.useQuery)(GET_CHATS_BY_REGION, {
5656
+ const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_CHATS_BY_REGION, {
5771
5657
  fetchPolicy: "network-only",
5772
5658
  variables: { region }
5773
5659
  });
@@ -5775,7 +5661,7 @@ var useGetChatsByRegion = (region) => {
5775
5661
  return { chatsByRegion, error, loading, refetch };
5776
5662
  };
5777
5663
  var useGetReportedChatUsers = () => {
5778
- const { loading, error, data, refetch } = (0, import_client20.useQuery)(GET_REPORTED_CHAT_USERS, {
5664
+ const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_REPORTED_CHAT_USERS, {
5779
5665
  fetchPolicy: "network-only"
5780
5666
  });
5781
5667
  const reportedChatUsers = data?.reportedChatUsers || [];
@@ -5783,11 +5669,11 @@ var useGetReportedChatUsers = () => {
5783
5669
  };
5784
5670
 
5785
5671
  // src/graphql/hooks/contactUs.ts
5786
- var import_client22 = require("@apollo/client");
5672
+ var import_client21 = require("@apollo/client");
5787
5673
 
5788
5674
  // src/graphql/mutations/contactUs.ts
5789
- var import_client21 = require("@apollo/client");
5790
- var CONTACT_US_MUTATION = import_client21.gql`
5675
+ var import_client20 = require("@apollo/client");
5676
+ var CONTACT_US_MUTATION = import_client20.gql`
5791
5677
  mutation contactUs($input: ContactUsInputType!) {
5792
5678
  contactUs(input: $input) {
5793
5679
  data
@@ -5798,16 +5684,16 @@ var CONTACT_US_MUTATION = import_client21.gql`
5798
5684
 
5799
5685
  // src/graphql/hooks/contactUs.ts
5800
5686
  var useContactUs = () => {
5801
- const [contactUs, { loading, error }] = (0, import_client22.useMutation)(CONTACT_US_MUTATION);
5687
+ const [contactUs, { loading, error }] = (0, import_client21.useMutation)(CONTACT_US_MUTATION);
5802
5688
  return { contactUs, error, loading };
5803
5689
  };
5804
5690
 
5805
5691
  // src/graphql/hooks/event/hooksMutation.ts
5806
- var import_client25 = require("@apollo/client");
5692
+ var import_client24 = require("@apollo/client");
5807
5693
 
5808
5694
  // src/graphql/mutations/event.ts
5809
- var import_client23 = require("@apollo/client");
5810
- var CREATE_EVENT_MUTATION = import_client23.gql`
5695
+ var import_client22 = require("@apollo/client");
5696
+ var CREATE_EVENT_MUTATION = import_client22.gql`
5811
5697
  mutation createEvent($input: EventInputType!) {
5812
5698
  createEvent(input: $input) {
5813
5699
  data {
@@ -5818,7 +5704,7 @@ var CREATE_EVENT_MUTATION = import_client23.gql`
5818
5704
  }
5819
5705
  ${EVENT}
5820
5706
  `;
5821
- var UPDATE_EVENT_MUTATION = import_client23.gql`
5707
+ var UPDATE_EVENT_MUTATION = import_client22.gql`
5822
5708
  mutation updateEvent($_id: ID!, $input: EventInputType!) {
5823
5709
  updateEvent(_id: $_id, input: $input) {
5824
5710
  data {
@@ -5829,7 +5715,7 @@ var UPDATE_EVENT_MUTATION = import_client23.gql`
5829
5715
  }
5830
5716
  ${EVENT}
5831
5717
  `;
5832
- var DELETE_EVENT_MUTATION = import_client23.gql`
5718
+ var DELETE_EVENT_MUTATION = import_client22.gql`
5833
5719
  mutation deleteEvent($_id: ID!) {
5834
5720
  deleteEvent(_id: $_id) {
5835
5721
  data
@@ -5837,7 +5723,7 @@ var DELETE_EVENT_MUTATION = import_client23.gql`
5837
5723
  }
5838
5724
  }
5839
5725
  `;
5840
- var CREATE_EVENT_INFO_MUTATION = import_client23.gql`
5726
+ var CREATE_EVENT_INFO_MUTATION = import_client22.gql`
5841
5727
  mutation createEventInfo($input: EventInfoInputType!) {
5842
5728
  createEventInfo(input: $input) {
5843
5729
  data {
@@ -5848,7 +5734,7 @@ var CREATE_EVENT_INFO_MUTATION = import_client23.gql`
5848
5734
  }
5849
5735
  ${EVENT_INFO}
5850
5736
  `;
5851
- var UPDATE_EVENT_INFO_MUTATION = import_client23.gql`
5737
+ var UPDATE_EVENT_INFO_MUTATION = import_client22.gql`
5852
5738
  mutation updateEventInfo($_id: ID!, $input: EventInfoInputType!) {
5853
5739
  updateEventInfo(_id: $_id, input: $input) {
5854
5740
  data {
@@ -5861,8 +5747,8 @@ var UPDATE_EVENT_INFO_MUTATION = import_client23.gql`
5861
5747
  `;
5862
5748
 
5863
5749
  // src/graphql/queries/user.ts
5864
- var import_client24 = require("@apollo/client");
5865
- var GET_USERS = import_client24.gql`
5750
+ var import_client23 = require("@apollo/client");
5751
+ var GET_USERS = import_client23.gql`
5866
5752
  query getUsers {
5867
5753
  users {
5868
5754
  ...UserFields
@@ -5870,7 +5756,7 @@ var GET_USERS = import_client24.gql`
5870
5756
  }
5871
5757
  ${USER_FIELDS_FRAGMENT}
5872
5758
  `;
5873
- var GET_USER = import_client24.gql`
5759
+ var GET_USER = import_client23.gql`
5874
5760
  query getUser($_id: ID!) {
5875
5761
  user(_id: $_id) {
5876
5762
  ...UserFields
@@ -5878,7 +5764,7 @@ var GET_USER = import_client24.gql`
5878
5764
  }
5879
5765
  ${USER_FIELDS_FRAGMENT}
5880
5766
  `;
5881
- var GET_USER_EVENTS = import_client24.gql`
5767
+ var GET_USER_EVENTS = import_client23.gql`
5882
5768
  query getUserEvents {
5883
5769
  userEvents {
5884
5770
  ...EventFields
@@ -5886,7 +5772,7 @@ var GET_USER_EVENTS = import_client24.gql`
5886
5772
  }
5887
5773
  ${EVENT}
5888
5774
  `;
5889
- var GET_USER_VENDORS = import_client24.gql`
5775
+ var GET_USER_VENDORS = import_client23.gql`
5890
5776
  query getUserVendors {
5891
5777
  userVendors {
5892
5778
  ...VendorFields
@@ -5894,7 +5780,7 @@ var GET_USER_VENDORS = import_client24.gql`
5894
5780
  }
5895
5781
  ${VENDOR}
5896
5782
  `;
5897
- var GET_USER_PARTNERS = import_client24.gql`
5783
+ var GET_USER_PARTNERS = import_client23.gql`
5898
5784
  query getUserPartners {
5899
5785
  userPartners {
5900
5786
  ...PartnerFields
@@ -5902,7 +5788,7 @@ var GET_USER_PARTNERS = import_client24.gql`
5902
5788
  }
5903
5789
  ${PARTNER}
5904
5790
  `;
5905
- var GET_USER_ACTIVITIES = import_client24.gql`
5791
+ var GET_USER_ACTIVITIES = import_client23.gql`
5906
5792
  query getUserActivities {
5907
5793
  userActivities {
5908
5794
  favourites {
@@ -5937,7 +5823,7 @@ var GET_USER_ACTIVITIES = import_client24.gql`
5937
5823
  ${VENDOR}
5938
5824
  ${PARTNER}
5939
5825
  `;
5940
- var GET_USER_RESOURCES = import_client24.gql`
5826
+ var GET_USER_RESOURCES = import_client23.gql`
5941
5827
  query getUserResources($userId: ID!) {
5942
5828
  userResources(userId: $userId) {
5943
5829
  resources {
@@ -5952,14 +5838,14 @@ var GET_USER_RESOURCES = import_client24.gql`
5952
5838
 
5953
5839
  // src/graphql/hooks/event/hooksMutation.ts
5954
5840
  var useCreateEvent = () => {
5955
- const [createEvent, { loading, error }] = (0, import_client25.useMutation)(CREATE_EVENT_MUTATION, {
5841
+ const [createEvent, { loading, error }] = (0, import_client24.useMutation)(CREATE_EVENT_MUTATION, {
5956
5842
  awaitRefetchQueries: true,
5957
5843
  refetchQueries: [{ query: GET_USER_EVENTS }]
5958
5844
  });
5959
5845
  return { createEvent, error, loading };
5960
5846
  };
5961
5847
  var useUpdateEvent = () => {
5962
- const [updateEvent, { loading, error }] = (0, import_client25.useMutation)(UPDATE_EVENT_MUTATION, {
5848
+ const [updateEvent, { loading, error }] = (0, import_client24.useMutation)(UPDATE_EVENT_MUTATION, {
5963
5849
  awaitRefetchQueries: true,
5964
5850
  refetchQueries: (mutationResult) => {
5965
5851
  const eventId = mutationResult?.data?.updateEvent?.data?._id;
@@ -5982,14 +5868,14 @@ var useUpdateEvent = () => {
5982
5868
  return { error, loading, updateEvent };
5983
5869
  };
5984
5870
  var useDeleteEvent = () => {
5985
- const [deleteEvent, { loading, error }] = (0, import_client25.useMutation)(DELETE_EVENT_MUTATION, {
5871
+ const [deleteEvent, { loading, error }] = (0, import_client24.useMutation)(DELETE_EVENT_MUTATION, {
5986
5872
  awaitRefetchQueries: true,
5987
5873
  refetchQueries: [{ query: GET_USER_EVENTS }]
5988
5874
  });
5989
5875
  return { deleteEvent, error, loading };
5990
5876
  };
5991
5877
  var useCreateEventInfo = () => {
5992
- const [createEventInfo, { loading, error }] = (0, import_client25.useMutation)(CREATE_EVENT_INFO_MUTATION, {
5878
+ const [createEventInfo, { loading, error }] = (0, import_client24.useMutation)(CREATE_EVENT_INFO_MUTATION, {
5993
5879
  awaitRefetchQueries: true,
5994
5880
  refetchQueries: (mutationResult) => {
5995
5881
  const eventId = mutationResult?.data?.createEventInfo?.data?.eventId;
@@ -6013,7 +5899,7 @@ var useCreateEventInfo = () => {
6013
5899
  return { createEventInfo, error, loading };
6014
5900
  };
6015
5901
  var useUpdateEventInfo = () => {
6016
- const [updateEventInfo, { loading, error }] = (0, import_client25.useMutation)(UPDATE_EVENT_INFO_MUTATION, {
5902
+ const [updateEventInfo, { loading, error }] = (0, import_client24.useMutation)(UPDATE_EVENT_INFO_MUTATION, {
6017
5903
  awaitRefetchQueries: true,
6018
5904
  refetchQueries: (mutationResult) => {
6019
5905
  const eventId = mutationResult?.data?.updateEventInfo?.data?.eventId;
@@ -6037,9 +5923,9 @@ var useUpdateEventInfo = () => {
6037
5923
  };
6038
5924
 
6039
5925
  // src/graphql/hooks/event/hooksQuery.ts
6040
- var import_client26 = require("@apollo/client");
5926
+ var import_client25 = require("@apollo/client");
6041
5927
  var useGetEvents = (dateStatus) => {
6042
- const { loading, error, data, refetch } = (0, import_client26.useQuery)(GET_EVENTS, {
5928
+ const { loading, error, data, refetch } = (0, import_client25.useQuery)(GET_EVENTS, {
6043
5929
  fetchPolicy: "network-only",
6044
5930
  variables: { dateStatus }
6045
5931
  });
@@ -6047,7 +5933,7 @@ var useGetEvents = (dateStatus) => {
6047
5933
  return { error, events, loading, refetch };
6048
5934
  };
6049
5935
  var useGetEvent = (_id) => {
6050
- const { loading, error, data, refetch } = (0, import_client26.useQuery)(GET_EVENT, {
5936
+ const { loading, error, data, refetch } = (0, import_client25.useQuery)(GET_EVENT, {
6051
5937
  fetchPolicy: "network-only",
6052
5938
  skip: !_id,
6053
5939
  variables: { _id }
@@ -6056,7 +5942,7 @@ var useGetEvent = (_id) => {
6056
5942
  return { error, event, loading, refetch };
6057
5943
  };
6058
5944
  var useGetEventByPlaceId = (googlePlaceId) => {
6059
- const { loading, error, data, refetch } = (0, import_client26.useQuery)(GET_EVENT_BY_PLACE_ID, {
5945
+ const { loading, error, data, refetch } = (0, import_client25.useQuery)(GET_EVENT_BY_PLACE_ID, {
6060
5946
  fetchPolicy: "network-only",
6061
5947
  skip: !googlePlaceId,
6062
5948
  variables: { googlePlaceId }
@@ -6070,7 +5956,7 @@ var useGetEventsByRegion = (region, options, dateStatus) => {
6070
5956
  options,
6071
5957
  region
6072
5958
  };
6073
- const { loading, error, data, refetch, fetchMore } = (0, import_client26.useQuery)(GET_EVENTS_BY_REGION, {
5959
+ const { loading, error, data, refetch, fetchMore } = (0, import_client25.useQuery)(GET_EVENTS_BY_REGION, {
6074
5960
  fetchPolicy: "network-only",
6075
5961
  skip: !region || region === "",
6076
5962
  variables
@@ -6088,7 +5974,7 @@ var useSearchEvents = (region, searchQuery, tags, dateStatus) => {
6088
5974
  const normalizedSearch = searchQuery?.trim() ?? "";
6089
5975
  const normalizedTags = (tags ?? []).filter(Boolean);
6090
5976
  const shouldRunQuery = normalizedSearch.length > 3 || normalizedTags.length > 0;
6091
- const { loading, error, data, refetch } = (0, import_client26.useQuery)(SEARCH_EVENTS, {
5977
+ const { loading, error, data, refetch } = (0, import_client25.useQuery)(SEARCH_EVENTS, {
6092
5978
  fetchPolicy: "network-only",
6093
5979
  skip: !shouldRunQuery,
6094
5980
  variables: {
@@ -6106,7 +5992,7 @@ var useSearchEvents = (region, searchQuery, tags, dateStatus) => {
6106
5992
  };
6107
5993
  };
6108
5994
  var useGetEventsNearMe = (location, dateStatus) => {
6109
- const { loading, error, data, refetch } = (0, import_client26.useQuery)(GET_EVENTS_NEAR_ME, {
5995
+ const { loading, error, data, refetch } = (0, import_client25.useQuery)(GET_EVENTS_NEAR_ME, {
6110
5996
  fetchPolicy: "network-only",
6111
5997
  skip: !location.latitude || !location.longitude,
6112
5998
  variables: {
@@ -6121,7 +6007,7 @@ var useGetEventsNearMe = (location, dateStatus) => {
6121
6007
  return { error, eventsNearMe, loading, refetch };
6122
6008
  };
6123
6009
  var useGetEventInfo = (eventId) => {
6124
- const { loading, error, data, refetch } = (0, import_client26.useQuery)(GET_EVENT_INFO, {
6010
+ const { loading, error, data, refetch } = (0, import_client25.useQuery)(GET_EVENT_INFO, {
6125
6011
  fetchPolicy: "network-only",
6126
6012
  skip: !eventId || eventId === "",
6127
6013
  variables: { eventId }
@@ -6131,14 +6017,14 @@ var useGetEventInfo = (eventId) => {
6131
6017
  };
6132
6018
 
6133
6019
  // src/graphql/hooks/notifications/hooksMutation.ts
6134
- var import_client29 = require("@apollo/client");
6020
+ var import_client28 = require("@apollo/client");
6135
6021
 
6136
6022
  // src/graphql/mutations/notification.ts
6137
- var import_client28 = require("@apollo/client");
6023
+ var import_client27 = require("@apollo/client");
6138
6024
 
6139
6025
  // src/graphql/queries/notification.ts
6140
- var import_client27 = require("@apollo/client");
6141
- var NOTIFICATION_FRAGMENT = import_client27.gql`
6026
+ var import_client26 = require("@apollo/client");
6027
+ var NOTIFICATION_FRAGMENT = import_client26.gql`
6142
6028
  fragment NotificationFields on Notification {
6143
6029
  _id
6144
6030
  userId
@@ -6155,7 +6041,7 @@ var NOTIFICATION_FRAGMENT = import_client27.gql`
6155
6041
  updatedAt
6156
6042
  }
6157
6043
  `;
6158
- var GET_USER_NOTIFICATIONS = import_client27.gql`
6044
+ var GET_USER_NOTIFICATIONS = import_client26.gql`
6159
6045
  query getUserNotifications($limit: Int, $offset: Int) {
6160
6046
  userNotifications(limit: $limit, offset: $offset) {
6161
6047
  ...NotificationFields
@@ -6163,7 +6049,7 @@ var GET_USER_NOTIFICATIONS = import_client27.gql`
6163
6049
  }
6164
6050
  ${NOTIFICATION_FRAGMENT}
6165
6051
  `;
6166
- var GET_NOTIFICATION_COUNT = import_client27.gql`
6052
+ var GET_NOTIFICATION_COUNT = import_client26.gql`
6167
6053
  query getNotificationCount {
6168
6054
  notificationCount {
6169
6055
  total
@@ -6173,7 +6059,7 @@ var GET_NOTIFICATION_COUNT = import_client27.gql`
6173
6059
  `;
6174
6060
 
6175
6061
  // src/graphql/mutations/notification.ts
6176
- var CREATE_BULK_NOTIFICATIONS = import_client28.gql`
6062
+ var CREATE_BULK_NOTIFICATIONS = import_client27.gql`
6177
6063
  mutation createBulkNotifications($input: CreateBulkNotificationInput!) {
6178
6064
  createBulkNotifications(input: $input) {
6179
6065
  data
@@ -6181,7 +6067,7 @@ var CREATE_BULK_NOTIFICATIONS = import_client28.gql`
6181
6067
  }
6182
6068
  }
6183
6069
  `;
6184
- var MARK_NOTIFICATION_READ = import_client28.gql`
6070
+ var MARK_NOTIFICATION_READ = import_client27.gql`
6185
6071
  mutation markNotificationRead($_id: ID!) {
6186
6072
  markNotificationRead(_id: $_id) {
6187
6073
  data {
@@ -6192,7 +6078,7 @@ var MARK_NOTIFICATION_READ = import_client28.gql`
6192
6078
  }
6193
6079
  ${NOTIFICATION_FRAGMENT}
6194
6080
  `;
6195
- var MARK_ALL_NOTIFICATIONS_READ = import_client28.gql`
6081
+ var MARK_ALL_NOTIFICATIONS_READ = import_client27.gql`
6196
6082
  mutation markAllNotificationsRead {
6197
6083
  markAllNotificationsRead {
6198
6084
  data
@@ -6200,7 +6086,7 @@ var MARK_ALL_NOTIFICATIONS_READ = import_client28.gql`
6200
6086
  }
6201
6087
  }
6202
6088
  `;
6203
- var DELETE_NOTIFICATION = import_client28.gql`
6089
+ var DELETE_NOTIFICATION = import_client27.gql`
6204
6090
  mutation deleteNotification($_id: ID!) {
6205
6091
  deleteNotification(_id: $_id) {
6206
6092
  data
@@ -6208,7 +6094,7 @@ var DELETE_NOTIFICATION = import_client28.gql`
6208
6094
  }
6209
6095
  }
6210
6096
  `;
6211
- var DELETE_ALL_NOTIFICATIONS = import_client28.gql`
6097
+ var DELETE_ALL_NOTIFICATIONS = import_client27.gql`
6212
6098
  mutation deleteAllNotifications {
6213
6099
  deleteAllNotifications {
6214
6100
  data
@@ -6219,11 +6105,11 @@ var DELETE_ALL_NOTIFICATIONS = import_client28.gql`
6219
6105
 
6220
6106
  // src/graphql/hooks/notifications/hooksMutation.ts
6221
6107
  var useCreateBulkNotifications = () => {
6222
- const [createBulkNotifications, { loading, error }] = (0, import_client29.useMutation)(CREATE_BULK_NOTIFICATIONS);
6108
+ const [createBulkNotifications, { loading, error }] = (0, import_client28.useMutation)(CREATE_BULK_NOTIFICATIONS);
6223
6109
  return { createBulkNotifications, error, loading };
6224
6110
  };
6225
6111
  var useMarkNotificationRead = () => {
6226
- const [markNotificationRead, { loading, error }] = (0, import_client29.useMutation)(MARK_NOTIFICATION_READ, {
6112
+ const [markNotificationRead, { loading, error }] = (0, import_client28.useMutation)(MARK_NOTIFICATION_READ, {
6227
6113
  refetchQueries: [
6228
6114
  {
6229
6115
  query: GET_USER_NOTIFICATIONS
@@ -6236,7 +6122,7 @@ var useMarkNotificationRead = () => {
6236
6122
  return { error, loading, markNotificationRead };
6237
6123
  };
6238
6124
  var useMarkAllNotificationsRead = () => {
6239
- const [markAllNotificationsRead, { loading, error }] = (0, import_client29.useMutation)(MARK_ALL_NOTIFICATIONS_READ, {
6125
+ const [markAllNotificationsRead, { loading, error }] = (0, import_client28.useMutation)(MARK_ALL_NOTIFICATIONS_READ, {
6240
6126
  refetchQueries: [
6241
6127
  {
6242
6128
  query: GET_USER_NOTIFICATIONS
@@ -6249,7 +6135,7 @@ var useMarkAllNotificationsRead = () => {
6249
6135
  return { error, loading, markAllNotificationsRead };
6250
6136
  };
6251
6137
  var useDeleteNotification = () => {
6252
- const [deleteNotification, { loading, error }] = (0, import_client29.useMutation)(DELETE_NOTIFICATION, {
6138
+ const [deleteNotification, { loading, error }] = (0, import_client28.useMutation)(DELETE_NOTIFICATION, {
6253
6139
  refetchQueries: [
6254
6140
  {
6255
6141
  query: GET_USER_NOTIFICATIONS
@@ -6262,7 +6148,7 @@ var useDeleteNotification = () => {
6262
6148
  return { deleteNotification, error, loading };
6263
6149
  };
6264
6150
  var useDeleteAllNotifications = () => {
6265
- const [deleteAllNotifications, { loading, error }] = (0, import_client29.useMutation)(DELETE_ALL_NOTIFICATIONS, {
6151
+ const [deleteAllNotifications, { loading, error }] = (0, import_client28.useMutation)(DELETE_ALL_NOTIFICATIONS, {
6266
6152
  refetchQueries: [
6267
6153
  {
6268
6154
  query: GET_USER_NOTIFICATIONS
@@ -6276,9 +6162,9 @@ var useDeleteAllNotifications = () => {
6276
6162
  };
6277
6163
 
6278
6164
  // src/graphql/hooks/notifications/hooksQuery.ts
6279
- var import_client30 = require("@apollo/client");
6165
+ var import_client29 = require("@apollo/client");
6280
6166
  var useGetUserNotifications = (limit, offset) => {
6281
- const { data, loading, error, refetch } = (0, import_client30.useQuery)(GET_USER_NOTIFICATIONS, {
6167
+ const { data, loading, error, refetch } = (0, import_client29.useQuery)(GET_USER_NOTIFICATIONS, {
6282
6168
  fetchPolicy: "no-cache",
6283
6169
  variables: { limit, offset }
6284
6170
  });
@@ -6290,7 +6176,7 @@ var useGetUserNotifications = (limit, offset) => {
6290
6176
  };
6291
6177
  };
6292
6178
  var useGetNotificationCount = () => {
6293
- const { data, loading, error, refetch } = (0, import_client30.useQuery)(GET_NOTIFICATION_COUNT, {
6179
+ const { data, loading, error, refetch } = (0, import_client29.useQuery)(GET_NOTIFICATION_COUNT, {
6294
6180
  fetchPolicy: "no-cache"
6295
6181
  });
6296
6182
  return {
@@ -6302,11 +6188,11 @@ var useGetNotificationCount = () => {
6302
6188
  };
6303
6189
 
6304
6190
  // src/graphql/hooks/notifications/hooksSubscription.ts
6305
- var import_client32 = require("@apollo/client");
6191
+ var import_client31 = require("@apollo/client");
6306
6192
 
6307
6193
  // src/graphql/subscriptions/notification.ts
6308
- var import_client31 = require("@apollo/client");
6309
- var GET_NOTIFICATIONS_SUBSCRIPTION = import_client31.gql`
6194
+ var import_client30 = require("@apollo/client");
6195
+ var GET_NOTIFICATIONS_SUBSCRIPTION = import_client30.gql`
6310
6196
  subscription {
6311
6197
  getUserNotifications {
6312
6198
  ...NotificationFields
@@ -6314,7 +6200,7 @@ var GET_NOTIFICATIONS_SUBSCRIPTION = import_client31.gql`
6314
6200
  }
6315
6201
  ${NOTIFICATION_FRAGMENT}
6316
6202
  `;
6317
- var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client31.gql`
6203
+ var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client30.gql`
6318
6204
  subscription {
6319
6205
  getNotificationCount {
6320
6206
  total
@@ -6325,7 +6211,7 @@ var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client31.gql`
6325
6211
 
6326
6212
  // src/graphql/hooks/notifications/hooksSubscription.ts
6327
6213
  var useGetUserNotificationsSubscription = () => {
6328
- const { data, loading, error } = (0, import_client32.useSubscription)(GET_NOTIFICATIONS_SUBSCRIPTION, {
6214
+ const { data, loading, error } = (0, import_client31.useSubscription)(GET_NOTIFICATIONS_SUBSCRIPTION, {
6329
6215
  fetchPolicy: "no-cache",
6330
6216
  shouldResubscribe: true
6331
6217
  });
@@ -6336,7 +6222,7 @@ var useGetUserNotificationsSubscription = () => {
6336
6222
  };
6337
6223
  };
6338
6224
  var useGetNotificationCountSubscription = () => {
6339
- const { data, loading, error } = (0, import_client32.useSubscription)(GET_NOTIFICATION_COUNT_SUBSCRIPTION, {
6225
+ const { data, loading, error } = (0, import_client31.useSubscription)(GET_NOTIFICATION_COUNT_SUBSCRIPTION, {
6340
6226
  fetchPolicy: "no-cache",
6341
6227
  shouldResubscribe: true
6342
6228
  });
@@ -6348,11 +6234,11 @@ var useGetNotificationCountSubscription = () => {
6348
6234
  };
6349
6235
 
6350
6236
  // src/graphql/hooks/poster.ts
6351
- var import_client34 = require("@apollo/client");
6237
+ var import_client33 = require("@apollo/client");
6352
6238
 
6353
6239
  // src/graphql/mutations/poster.ts
6354
- var import_client33 = require("@apollo/client");
6355
- var CREATE_POSTER_MUTATION = import_client33.gql`
6240
+ var import_client32 = require("@apollo/client");
6241
+ var CREATE_POSTER_MUTATION = import_client32.gql`
6356
6242
  mutation createPoster($input: PosterInputType!) {
6357
6243
  createPoster(input: $input) {
6358
6244
  data {
@@ -6368,18 +6254,18 @@ var CREATE_POSTER_MUTATION = import_client33.gql`
6368
6254
 
6369
6255
  // src/graphql/hooks/poster.ts
6370
6256
  var useCreatePoster = () => {
6371
- const [createPoster, { loading, error }] = (0, import_client34.useMutation)(CREATE_POSTER_MUTATION, {
6257
+ const [createPoster, { loading, error }] = (0, import_client33.useMutation)(CREATE_POSTER_MUTATION, {
6372
6258
  refetchQueries: [{ query: GET_USER_EVENTS }, { query: GET_USER_VENDORS }]
6373
6259
  });
6374
6260
  return { createPoster, error, loading };
6375
6261
  };
6376
6262
 
6377
6263
  // src/graphql/hooks/pushToken.ts
6378
- var import_client36 = require("@apollo/client");
6264
+ var import_client35 = require("@apollo/client");
6379
6265
 
6380
6266
  // src/graphql/mutations/pushToken.ts
6381
- var import_client35 = require("@apollo/client");
6382
- var CREATE_PUSH_TOKEN_MUTATION = import_client35.gql`
6267
+ var import_client34 = require("@apollo/client");
6268
+ var CREATE_PUSH_TOKEN_MUTATION = import_client34.gql`
6383
6269
  mutation createPushToken($input: PushTokenInput!) {
6384
6270
  createPushToken(input: $input) {
6385
6271
  data {
@@ -6392,16 +6278,16 @@ var CREATE_PUSH_TOKEN_MUTATION = import_client35.gql`
6392
6278
 
6393
6279
  // src/graphql/hooks/pushToken.ts
6394
6280
  var useCreatePushToken = () => {
6395
- const [createPushToken, { loading, error }] = (0, import_client36.useMutation)(CREATE_PUSH_TOKEN_MUTATION);
6281
+ const [createPushToken, { loading, error }] = (0, import_client35.useMutation)(CREATE_PUSH_TOKEN_MUTATION);
6396
6282
  return { createPushToken, error, loading };
6397
6283
  };
6398
6284
 
6399
6285
  // src/graphql/hooks/relation/hooksMutation.ts
6400
- var import_client38 = require("@apollo/client");
6286
+ var import_client37 = require("@apollo/client");
6401
6287
 
6402
6288
  // src/graphql/mutations/relation.ts
6403
- var import_client37 = require("@apollo/client");
6404
- var CREATE_RELATION_MUTATION = import_client37.gql`
6289
+ var import_client36 = require("@apollo/client");
6290
+ var CREATE_RELATION_MUTATION = import_client36.gql`
6405
6291
  mutation createRelation($input: RelationInputType!) {
6406
6292
  createRelation(input: $input) {
6407
6293
  data {
@@ -6412,7 +6298,7 @@ var CREATE_RELATION_MUTATION = import_client37.gql`
6412
6298
  }
6413
6299
  ${RELATION_FIELDS_FRAGMENT}
6414
6300
  `;
6415
- var UPDATE_RELATION_MUTATION = import_client37.gql`
6301
+ var UPDATE_RELATION_MUTATION = import_client36.gql`
6416
6302
  mutation updateRelation($_id: ID!, $input: RelationInputType!) {
6417
6303
  updateRelation(_id: $_id, input: $input) {
6418
6304
  data {
@@ -6423,7 +6309,7 @@ var UPDATE_RELATION_MUTATION = import_client37.gql`
6423
6309
  }
6424
6310
  ${RELATION_FIELDS_FRAGMENT}
6425
6311
  `;
6426
- var DELETE_RELATION_MUTATION = import_client37.gql`
6312
+ var DELETE_RELATION_MUTATION = import_client36.gql`
6427
6313
  mutation deleteRelation($_id: ID!) {
6428
6314
  deleteRelation(_id: $_id) {
6429
6315
  data {
@@ -6437,7 +6323,7 @@ var DELETE_RELATION_MUTATION = import_client37.gql`
6437
6323
 
6438
6324
  // src/graphql/hooks/relation/hooksMutation.ts
6439
6325
  var useCreateRelation = () => {
6440
- const [createRelation, { loading, error }] = (0, import_client38.useMutation)(CREATE_RELATION_MUTATION, {
6326
+ const [createRelation, { loading, error }] = (0, import_client37.useMutation)(CREATE_RELATION_MUTATION, {
6441
6327
  awaitRefetchQueries: true,
6442
6328
  refetchQueries: (mutationResult) => {
6443
6329
  const createRelation2 = mutationResult?.data?.createRelation?.data;
@@ -6483,7 +6369,7 @@ var useCreateRelation = () => {
6483
6369
  return { createRelation, error, loading };
6484
6370
  };
6485
6371
  var useUpdateRelation = () => {
6486
- const [updateRelation, { loading, error }] = (0, import_client38.useMutation)(UPDATE_RELATION_MUTATION, {
6372
+ const [updateRelation, { loading, error }] = (0, import_client37.useMutation)(UPDATE_RELATION_MUTATION, {
6487
6373
  awaitRefetchQueries: true,
6488
6374
  refetchQueries: (mutationResult) => {
6489
6375
  const updateRelation2 = mutationResult?.data?.updateRelation?.data;
@@ -6526,7 +6412,7 @@ var useUpdateRelation = () => {
6526
6412
  return { error, loading, updateRelation };
6527
6413
  };
6528
6414
  var useDeleteRelation = () => {
6529
- const [deleteRelation, { loading, error }] = (0, import_client38.useMutation)(DELETE_RELATION_MUTATION, {
6415
+ const [deleteRelation, { loading, error }] = (0, import_client37.useMutation)(DELETE_RELATION_MUTATION, {
6530
6416
  awaitRefetchQueries: true,
6531
6417
  refetchQueries: (mutationResult) => {
6532
6418
  const deleteRelation2 = mutationResult?.data?.deleteRelation?.data;
@@ -6565,9 +6451,9 @@ var useDeleteRelation = () => {
6565
6451
  };
6566
6452
 
6567
6453
  // src/graphql/hooks/relation/hooksQuery.ts
6568
- var import_client39 = require("@apollo/client");
6454
+ var import_client38 = require("@apollo/client");
6569
6455
  var useGetRelation = (_id) => {
6570
- const { loading, error, data, refetch } = (0, import_client39.useQuery)(GET_RELATION, {
6456
+ const { loading, error, data, refetch } = (0, import_client38.useQuery)(GET_RELATION, {
6571
6457
  fetchPolicy: "network-only",
6572
6458
  skip: !_id,
6573
6459
  variables: _id ? { _id } : void 0
@@ -6576,7 +6462,7 @@ var useGetRelation = (_id) => {
6576
6462
  return { error, loading, refetch, relation };
6577
6463
  };
6578
6464
  var useGetRelationByEventAndVendor = (eventId, vendorId) => {
6579
- const { loading, error, data, refetch } = (0, import_client39.useQuery)(GET_RELATION_BY_EVENT_AND_VENDOR, {
6465
+ const { loading, error, data, refetch } = (0, import_client38.useQuery)(GET_RELATION_BY_EVENT_AND_VENDOR, {
6580
6466
  fetchPolicy: "network-only",
6581
6467
  skip: !eventId || eventId === "" || !vendorId || vendorId === "",
6582
6468
  variables: { eventId, vendorId }
@@ -6585,7 +6471,7 @@ var useGetRelationByEventAndVendor = (eventId, vendorId) => {
6585
6471
  return { error, loading, refetch, relationByEventAndVendor };
6586
6472
  };
6587
6473
  var useGetEventRelations = (eventId) => {
6588
- const { loading, error, data, refetch } = (0, import_client39.useQuery)(GET_EVENT_RELATIONS, {
6474
+ const { loading, error, data, refetch } = (0, import_client38.useQuery)(GET_EVENT_RELATIONS, {
6589
6475
  fetchPolicy: "network-only",
6590
6476
  skip: !eventId || eventId === "",
6591
6477
  variables: { eventId }
@@ -6594,7 +6480,7 @@ var useGetEventRelations = (eventId) => {
6594
6480
  return { error, eventRelations, loading, refetch };
6595
6481
  };
6596
6482
  var useGetVendorRelations = (vendorId) => {
6597
- const { loading, error, data, refetch } = (0, import_client39.useQuery)(GET_VENDOR_RELATIONS, {
6483
+ const { loading, error, data, refetch } = (0, import_client38.useQuery)(GET_VENDOR_RELATIONS, {
6598
6484
  fetchPolicy: "network-only",
6599
6485
  skip: !vendorId || vendorId === "",
6600
6486
  variables: { vendorId }
@@ -6603,7 +6489,7 @@ var useGetVendorRelations = (vendorId) => {
6603
6489
  return { error, loading, refetch, vendorRelations };
6604
6490
  };
6605
6491
  var useGetResourceConnections = (resourceId, resourceType) => {
6606
- const { loading, error, data, refetch } = (0, import_client39.useQuery)(GET_RESOURCE_CONNECTIONS, {
6492
+ const { loading, error, data, refetch } = (0, import_client38.useQuery)(GET_RESOURCE_CONNECTIONS, {
6607
6493
  fetchPolicy: "network-only",
6608
6494
  skip: !resourceId || resourceId === "" || !resourceType,
6609
6495
  variables: { resourceId, resourceType }
@@ -6613,30 +6499,30 @@ var useGetResourceConnections = (resourceId, resourceType) => {
6613
6499
  };
6614
6500
 
6615
6501
  // src/graphql/hooks/vendor/hooksMutation.ts
6616
- var import_client40 = require("@apollo/client");
6502
+ var import_client39 = require("@apollo/client");
6617
6503
  var useCreateVendor = () => {
6618
- const [createVendor, { loading, error }] = (0, import_client40.useMutation)(CREATE_VENDOR_MUTATION, {
6504
+ const [createVendor, { loading, error }] = (0, import_client39.useMutation)(CREATE_VENDOR_MUTATION, {
6619
6505
  awaitRefetchQueries: true,
6620
6506
  refetchQueries: [{ query: GET_USER_VENDORS }]
6621
6507
  });
6622
6508
  return { createVendor, error, loading };
6623
6509
  };
6624
6510
  var useUpdateVendor = () => {
6625
- const [updateVendor, { loading, error }] = (0, import_client40.useMutation)(UPDATE_VENDOR_MUTATION, {
6511
+ const [updateVendor, { loading, error }] = (0, import_client39.useMutation)(UPDATE_VENDOR_MUTATION, {
6626
6512
  awaitRefetchQueries: true,
6627
6513
  refetchQueries: [{ query: GET_USER_VENDORS }]
6628
6514
  });
6629
6515
  return { error, loading, updateVendor };
6630
6516
  };
6631
6517
  var useDeleteVendor = () => {
6632
- const [deleteVendor, { loading, error }] = (0, import_client40.useMutation)(DELETE_VENDOR_MUTATION, {
6518
+ const [deleteVendor, { loading, error }] = (0, import_client39.useMutation)(DELETE_VENDOR_MUTATION, {
6633
6519
  awaitRefetchQueries: true,
6634
6520
  refetchQueries: [{ query: GET_USER_VENDORS }]
6635
6521
  });
6636
6522
  return { deleteVendor, error, loading };
6637
6523
  };
6638
6524
  var useCreateVendorInfo = () => {
6639
- const [createVendorInfo, { loading, error }] = (0, import_client40.useMutation)(CREATE_VENDOR_INFO_MUTATION, {
6525
+ const [createVendorInfo, { loading, error }] = (0, import_client39.useMutation)(CREATE_VENDOR_INFO_MUTATION, {
6640
6526
  awaitRefetchQueries: true,
6641
6527
  refetchQueries: (mutationResult) => {
6642
6528
  const vendorId = mutationResult?.data?.createVendorInfo?.data?.vendorId;
@@ -6660,7 +6546,7 @@ var useCreateVendorInfo = () => {
6660
6546
  return { createVendorInfo, error, loading };
6661
6547
  };
6662
6548
  var useUpdateVendorInfo = () => {
6663
- const [updateVendorInfo, { loading, error }] = (0, import_client40.useMutation)(UPDATE_VENDOR_INFO_MUTATION, {
6549
+ const [updateVendorInfo, { loading, error }] = (0, import_client39.useMutation)(UPDATE_VENDOR_INFO_MUTATION, {
6664
6550
  awaitRefetchQueries: true,
6665
6551
  refetchQueries: (mutationResult) => {
6666
6552
  const vendorId = mutationResult?.data?.updateVendorInfo?.data?.vendorId;
@@ -6677,30 +6563,30 @@ var useUpdateVendorInfo = () => {
6677
6563
  return { error, loading, updateVendorInfo };
6678
6564
  };
6679
6565
  var useCreateUnregisteredVendor = () => {
6680
- const [createUnregisteredVendor, { loading, error }] = (0, import_client40.useMutation)(CREATE_UNREGISTERED_VENDOR_MUTATION);
6566
+ const [createUnregisteredVendor, { loading, error }] = (0, import_client39.useMutation)(CREATE_UNREGISTERED_VENDOR_MUTATION);
6681
6567
  return { createUnregisteredVendor, error, loading };
6682
6568
  };
6683
6569
  var useUpdateUnregisteredVendor = () => {
6684
- const [updateUnregisteredVendor, { loading, error }] = (0, import_client40.useMutation)(UPDATE_UNREGISTERED_VENDOR_MUTATION);
6570
+ const [updateUnregisteredVendor, { loading, error }] = (0, import_client39.useMutation)(UPDATE_UNREGISTERED_VENDOR_MUTATION);
6685
6571
  return { error, loading, updateUnregisteredVendor };
6686
6572
  };
6687
6573
  var useDeleteUnregisteredVendor = () => {
6688
- const [deleteUnregisteredVendor, { loading, error }] = (0, import_client40.useMutation)(DELETE_UNREGISTERED_VENDOR_MUTATION);
6574
+ const [deleteUnregisteredVendor, { loading, error }] = (0, import_client39.useMutation)(DELETE_UNREGISTERED_VENDOR_MUTATION);
6689
6575
  return { deleteUnregisteredVendor, error, loading };
6690
6576
  };
6691
6577
  var useUnlinkUnregisteredVendorByInviterId = () => {
6692
- const [unlinkUnregisteredVendorByInviterId, { loading, error }] = (0, import_client40.useMutation)(UNLINK_UNREGISTERED_VENDOR_BY_INVITER_ID_MUTATION);
6578
+ const [unlinkUnregisteredVendorByInviterId, { loading, error }] = (0, import_client39.useMutation)(UNLINK_UNREGISTERED_VENDOR_BY_INVITER_ID_MUTATION);
6693
6579
  return { error, loading, unlinkUnregisteredVendorByInviterId };
6694
6580
  };
6695
6581
  var useActivateVendorClaim = () => {
6696
- const [activateVendorClaim, { loading, error }] = (0, import_client40.useMutation)(ACTIVATE_VENDOR_CLAIM_MUTATION);
6582
+ const [activateVendorClaim, { loading, error }] = (0, import_client39.useMutation)(ACTIVATE_VENDOR_CLAIM_MUTATION);
6697
6583
  return { activateVendorClaim, error, loading };
6698
6584
  };
6699
6585
 
6700
6586
  // src/graphql/hooks/vendor/hooksQuery.ts
6701
- var import_client41 = require("@apollo/client");
6587
+ var import_client40 = require("@apollo/client");
6702
6588
  var useGetVendors = () => {
6703
- const { loading, error, data, refetch } = (0, import_client41.useQuery)(
6589
+ const { loading, error, data, refetch } = (0, import_client40.useQuery)(
6704
6590
  GET_VENDORS,
6705
6591
  {
6706
6592
  fetchPolicy: "network-only"
@@ -6715,7 +6601,7 @@ var useGetVendors = () => {
6715
6601
  };
6716
6602
  };
6717
6603
  var useGetVendor = (_id) => {
6718
- const { loading, error, data, refetch } = (0, import_client41.useQuery)(
6604
+ const { loading, error, data, refetch } = (0, import_client40.useQuery)(
6719
6605
  GET_VENDOR,
6720
6606
  {
6721
6607
  fetchPolicy: "network-only",
@@ -6731,7 +6617,7 @@ var useGetVendorsByRegion = (region, options) => {
6731
6617
  options,
6732
6618
  region
6733
6619
  };
6734
- const { loading, error, data, refetch, fetchMore } = (0, import_client41.useQuery)(GET_VENDORS_BY_REGION, {
6620
+ const { loading, error, data, refetch, fetchMore } = (0, import_client40.useQuery)(GET_VENDORS_BY_REGION, {
6735
6621
  fetchPolicy: "network-only",
6736
6622
  variables
6737
6623
  });
@@ -6745,7 +6631,7 @@ var useGetVendorsByRegion = (region, options) => {
6745
6631
  };
6746
6632
  };
6747
6633
  var useSearchVendors = (search, region) => {
6748
- const { loading, error, data, refetch } = (0, import_client41.useQuery)(SEARCH_VENDORS, {
6634
+ const { loading, error, data, refetch } = (0, import_client40.useQuery)(SEARCH_VENDORS, {
6749
6635
  fetchPolicy: "network-only",
6750
6636
  skip: search.length < 3,
6751
6637
  variables: { region, search }
@@ -6754,7 +6640,7 @@ var useSearchVendors = (search, region) => {
6754
6640
  return { error, loading, refetch, vendorSearch };
6755
6641
  };
6756
6642
  var useGetVendorInfo = (vendorId) => {
6757
- const { loading, error, data, refetch } = (0, import_client41.useQuery)(GET_VENDOR_INFO, {
6643
+ const { loading, error, data, refetch } = (0, import_client40.useQuery)(GET_VENDOR_INFO, {
6758
6644
  fetchPolicy: "network-only",
6759
6645
  skip: !vendorId || vendorId === "",
6760
6646
  variables: { vendorId }
@@ -6768,7 +6654,7 @@ var useGetVendorInfo = (vendorId) => {
6768
6654
  };
6769
6655
  };
6770
6656
  var useGetUnregisteredVendors = () => {
6771
- const { loading, error, data, refetch } = (0, import_client41.useQuery)(GET_UNREGISTERED_VENDORS, {
6657
+ const { loading, error, data, refetch } = (0, import_client40.useQuery)(GET_UNREGISTERED_VENDORS, {
6772
6658
  fetchPolicy: "network-only"
6773
6659
  });
6774
6660
  const unregisteredVendors = data?.unregisteredVendors || [];
@@ -6780,7 +6666,7 @@ var useGetUnregisteredVendors = () => {
6780
6666
  };
6781
6667
  };
6782
6668
  var useGetUnregisteredVendorsByInviterId = (inviterId) => {
6783
- const { loading, error, data, refetch } = (0, import_client41.useQuery)(GET_UNREGISTERED_VENDORS_BY_INVITER_ID, {
6669
+ const { loading, error, data, refetch } = (0, import_client40.useQuery)(GET_UNREGISTERED_VENDORS_BY_INVITER_ID, {
6784
6670
  fetchPolicy: "network-only",
6785
6671
  skip: !inviterId || inviterId === "",
6786
6672
  variables: { inviterId }
@@ -6789,7 +6675,7 @@ var useGetUnregisteredVendorsByInviterId = (inviterId) => {
6789
6675
  return { error, loading, refetch, unregisteredVendorsByInviterId };
6790
6676
  };
6791
6677
  var useGetUnregisteredVendor = (_id) => {
6792
- const { loading, error, data, refetch } = (0, import_client41.useQuery)(GET_UNREGISTERED_VENDOR, {
6678
+ const { loading, error, data, refetch } = (0, import_client40.useQuery)(GET_UNREGISTERED_VENDOR, {
6793
6679
  fetchPolicy: "network-only",
6794
6680
  skip: !_id || _id === "",
6795
6681
  variables: { _id }
@@ -6798,7 +6684,7 @@ var useGetUnregisteredVendor = (_id) => {
6798
6684
  return { error, loading, refetch, unregisteredVendor };
6799
6685
  };
6800
6686
  var useMyPendingVendorClaim = (skip = false) => {
6801
- const { loading, error, data, refetch } = (0, import_client41.useQuery)(MY_PENDING_VENDOR_CLAIM, {
6687
+ const { loading, error, data, refetch } = (0, import_client40.useQuery)(MY_PENDING_VENDOR_CLAIM, {
6802
6688
  fetchPolicy: "network-only",
6803
6689
  skip
6804
6690
  });
@@ -6811,11 +6697,11 @@ var useMyPendingVendorClaim = (skip = false) => {
6811
6697
  };
6812
6698
 
6813
6699
  // src/graphql/hooks/user/hooksMutation.ts
6814
- var import_client43 = require("@apollo/client");
6700
+ var import_client42 = require("@apollo/client");
6815
6701
 
6816
6702
  // src/graphql/mutations/user.ts
6817
- var import_client42 = require("@apollo/client");
6818
- var CREATE_USER_MUTATION = import_client42.gql`
6703
+ var import_client41 = require("@apollo/client");
6704
+ var CREATE_USER_MUTATION = import_client41.gql`
6819
6705
  mutation createUser($input: UserInputType!) {
6820
6706
  createUser(input: $input) {
6821
6707
  data {
@@ -6826,7 +6712,7 @@ var CREATE_USER_MUTATION = import_client42.gql`
6826
6712
  }
6827
6713
  ${USER_FIELDS_FRAGMENT}
6828
6714
  `;
6829
- var UPDATE_USER_MUTATION = import_client42.gql`
6715
+ var UPDATE_USER_MUTATION = import_client41.gql`
6830
6716
  mutation updateUser($_id: ID!, $input: UserInputType!) {
6831
6717
  updateUser(_id: $_id, input: $input) {
6832
6718
  data {
@@ -6837,7 +6723,7 @@ var UPDATE_USER_MUTATION = import_client42.gql`
6837
6723
  }
6838
6724
  ${USER_FIELDS_FRAGMENT}
6839
6725
  `;
6840
- var DELETE_USER_MUTATION = import_client42.gql`
6726
+ var DELETE_USER_MUTATION = import_client41.gql`
6841
6727
  mutation deleteUser($email: String!) {
6842
6728
  deleteUser(email: $email) {
6843
6729
  data
@@ -6845,7 +6731,7 @@ var DELETE_USER_MUTATION = import_client42.gql`
6845
6731
  }
6846
6732
  }
6847
6733
  `;
6848
- var REDEEM_REWARD_MUTATION = import_client42.gql`
6734
+ var REDEEM_REWARD_MUTATION = import_client41.gql`
6849
6735
  mutation redeemReward($input: RedeemRewardInputType!) {
6850
6736
  redeemReward(input: $input) {
6851
6737
  data {
@@ -6855,7 +6741,7 @@ var REDEEM_REWARD_MUTATION = import_client42.gql`
6855
6741
  }
6856
6742
  }
6857
6743
  `;
6858
- var ADD_USER_FAVOURITE_RESOURCE_MUTATION = import_client42.gql`
6744
+ var ADD_USER_FAVOURITE_RESOURCE_MUTATION = import_client41.gql`
6859
6745
  mutation addUserFavouriteResource(
6860
6746
  $resourceId: ID!
6861
6747
  $resourceType: ResourceTypeEnum!
@@ -6872,7 +6758,7 @@ var ADD_USER_FAVOURITE_RESOURCE_MUTATION = import_client42.gql`
6872
6758
  }
6873
6759
  ${USER_FIELDS_FRAGMENT}
6874
6760
  `;
6875
- var REMOVE_USER_FAVOURITE_RESOURCE_MUTATION = import_client42.gql`
6761
+ var REMOVE_USER_FAVOURITE_RESOURCE_MUTATION = import_client41.gql`
6876
6762
  mutation removeUserFavouriteResource(
6877
6763
  $resourceId: ID!
6878
6764
  $resourceType: ResourceTypeEnum!
@@ -6889,7 +6775,7 @@ var REMOVE_USER_FAVOURITE_RESOURCE_MUTATION = import_client42.gql`
6889
6775
  }
6890
6776
  ${USER_FIELDS_FRAGMENT}
6891
6777
  `;
6892
- var ADD_USER_INTEREST_RESOURCE_MUTATION = import_client42.gql`
6778
+ var ADD_USER_INTEREST_RESOURCE_MUTATION = import_client41.gql`
6893
6779
  mutation addUserInterestResource($input: UserActivityInputType!) {
6894
6780
  addUserInterestResource(input: $input) {
6895
6781
  data {
@@ -6900,7 +6786,7 @@ var ADD_USER_INTEREST_RESOURCE_MUTATION = import_client42.gql`
6900
6786
  }
6901
6787
  ${USER_FIELDS_FRAGMENT}
6902
6788
  `;
6903
- var REMOVE_USER_INTEREST_RESOURCE_MUTATION = import_client42.gql`
6789
+ var REMOVE_USER_INTEREST_RESOURCE_MUTATION = import_client41.gql`
6904
6790
  mutation removeUserInterestResource($input: UserActivityInputType!) {
6905
6791
  removeUserInterestResource(input: $input) {
6906
6792
  data {
@@ -6911,7 +6797,7 @@ var REMOVE_USER_INTEREST_RESOURCE_MUTATION = import_client42.gql`
6911
6797
  }
6912
6798
  ${USER_FIELDS_FRAGMENT}
6913
6799
  `;
6914
- var ADD_USER_GOING_RESOURCE_MUTATION = import_client42.gql`
6800
+ var ADD_USER_GOING_RESOURCE_MUTATION = import_client41.gql`
6915
6801
  mutation addUserGoingResource($input: UserActivityInputType!) {
6916
6802
  addUserGoingResource(input: $input) {
6917
6803
  data {
@@ -6922,7 +6808,7 @@ var ADD_USER_GOING_RESOURCE_MUTATION = import_client42.gql`
6922
6808
  }
6923
6809
  ${USER_FIELDS_FRAGMENT}
6924
6810
  `;
6925
- var REMOVE_USER_GOING_RESOURCE_MUTATION = import_client42.gql`
6811
+ var REMOVE_USER_GOING_RESOURCE_MUTATION = import_client41.gql`
6926
6812
  mutation removeUserGoingResource($input: UserActivityInputType!) {
6927
6813
  removeUserGoingResource(input: $input) {
6928
6814
  data {
@@ -6933,7 +6819,7 @@ var REMOVE_USER_GOING_RESOURCE_MUTATION = import_client42.gql`
6933
6819
  }
6934
6820
  ${USER_FIELDS_FRAGMENT}
6935
6821
  `;
6936
- var ADD_USER_PRESENT_RESOURCE_MUTATION = import_client42.gql`
6822
+ var ADD_USER_PRESENT_RESOURCE_MUTATION = import_client41.gql`
6937
6823
  mutation addUserPresentResource($input: UserActivityInputType!) {
6938
6824
  addUserPresentResource(input: $input) {
6939
6825
  data {
@@ -6944,7 +6830,7 @@ var ADD_USER_PRESENT_RESOURCE_MUTATION = import_client42.gql`
6944
6830
  }
6945
6831
  ${USER_FIELDS_FRAGMENT}
6946
6832
  `;
6947
- var REMOVE_USER_PRESENT_RESOURCE_MUTATION = import_client42.gql`
6833
+ var REMOVE_USER_PRESENT_RESOURCE_MUTATION = import_client41.gql`
6948
6834
  mutation removeUserPresentResource($input: UserActivityInputType!) {
6949
6835
  removeUserPresentResource(input: $input) {
6950
6836
  data {
@@ -6955,7 +6841,7 @@ var REMOVE_USER_PRESENT_RESOURCE_MUTATION = import_client42.gql`
6955
6841
  }
6956
6842
  ${USER_FIELDS_FRAGMENT}
6957
6843
  `;
6958
- var SELECT_STANDARD_PACKAGE_MUTATION = import_client42.gql`
6844
+ var SELECT_STANDARD_PACKAGE_MUTATION = import_client41.gql`
6959
6845
  mutation selectStandardPackage($selectedLicence: LicencesEnumType!) {
6960
6846
  selectStandardPackage(selectedLicence: $selectedLicence) {
6961
6847
  data {
@@ -6972,11 +6858,11 @@ var SELECT_STANDARD_PACKAGE_MUTATION = import_client42.gql`
6972
6858
 
6973
6859
  // src/graphql/hooks/user/hooksMutation.ts
6974
6860
  var useCreateUser = () => {
6975
- const [createUser, { loading, error }] = (0, import_client43.useMutation)(CREATE_USER_MUTATION);
6861
+ const [createUser, { loading, error }] = (0, import_client42.useMutation)(CREATE_USER_MUTATION);
6976
6862
  return { createUser, error, loading };
6977
6863
  };
6978
6864
  var useUpdateUser = () => {
6979
- const [updateUser, { loading, error }] = (0, import_client43.useMutation)(UPDATE_USER_MUTATION, {
6865
+ const [updateUser, { loading, error }] = (0, import_client42.useMutation)(UPDATE_USER_MUTATION, {
6980
6866
  awaitRefetchQueries: true,
6981
6867
  refetchQueries: (mutationResult) => {
6982
6868
  const userId = mutationResult?.data?.updateUser?.data?._id;
@@ -6987,11 +6873,11 @@ var useUpdateUser = () => {
6987
6873
  return { error, loading, updateUser };
6988
6874
  };
6989
6875
  var useDeleteUser = () => {
6990
- const [deleteUser, { loading, error }] = (0, import_client43.useMutation)(DELETE_USER_MUTATION);
6876
+ const [deleteUser, { loading, error }] = (0, import_client42.useMutation)(DELETE_USER_MUTATION);
6991
6877
  return { deleteUser, error, loading };
6992
6878
  };
6993
6879
  var useRedeemReward = () => {
6994
- const [redeemReward, { loading, error }] = (0, import_client43.useMutation)(REDEEM_REWARD_MUTATION, {
6880
+ const [redeemReward, { loading, error }] = (0, import_client42.useMutation)(REDEEM_REWARD_MUTATION, {
6995
6881
  awaitRefetchQueries: true,
6996
6882
  refetchQueries: (mutationResult) => {
6997
6883
  const userId = mutationResult?.data?.redeemReward?.data?.userId;
@@ -7008,63 +6894,63 @@ var useRedeemReward = () => {
7008
6894
  return { error, loading, redeemReward };
7009
6895
  };
7010
6896
  var useAddUserFavouriteResource = () => {
7011
- const [addUserFavouriteResource, { loading, error }] = (0, import_client43.useMutation)(ADD_USER_FAVOURITE_RESOURCE_MUTATION, {
6897
+ const [addUserFavouriteResource, { loading, error }] = (0, import_client42.useMutation)(ADD_USER_FAVOURITE_RESOURCE_MUTATION, {
7012
6898
  awaitRefetchQueries: true,
7013
6899
  refetchQueries: [{ query: GET_USER_ACTIVITIES }]
7014
6900
  });
7015
6901
  return { addUserFavouriteResource, error, loading };
7016
6902
  };
7017
6903
  var useRemoveUserFavouriteResource = () => {
7018
- const [removeUserFavouriteResource, { loading, error }] = (0, import_client43.useMutation)(REMOVE_USER_FAVOURITE_RESOURCE_MUTATION, {
6904
+ const [removeUserFavouriteResource, { loading, error }] = (0, import_client42.useMutation)(REMOVE_USER_FAVOURITE_RESOURCE_MUTATION, {
7019
6905
  awaitRefetchQueries: true,
7020
6906
  refetchQueries: [{ query: GET_USER_ACTIVITIES }]
7021
6907
  });
7022
6908
  return { error, loading, removeUserFavouriteResource };
7023
6909
  };
7024
6910
  var useAddUserInterestResource = () => {
7025
- const [addUserInterestResource, { loading, error }] = (0, import_client43.useMutation)(ADD_USER_INTEREST_RESOURCE_MUTATION, {
6911
+ const [addUserInterestResource, { loading, error }] = (0, import_client42.useMutation)(ADD_USER_INTEREST_RESOURCE_MUTATION, {
7026
6912
  awaitRefetchQueries: true,
7027
6913
  refetchQueries: [{ query: GET_USER_ACTIVITIES }]
7028
6914
  });
7029
6915
  return { addUserInterestResource, error, loading };
7030
6916
  };
7031
6917
  var useRemoveUserInterestResource = () => {
7032
- const [removeUserInterestResource, { loading, error }] = (0, import_client43.useMutation)(REMOVE_USER_INTEREST_RESOURCE_MUTATION, {
6918
+ const [removeUserInterestResource, { loading, error }] = (0, import_client42.useMutation)(REMOVE_USER_INTEREST_RESOURCE_MUTATION, {
7033
6919
  awaitRefetchQueries: true,
7034
6920
  refetchQueries: [{ query: GET_USER_ACTIVITIES }]
7035
6921
  });
7036
6922
  return { error, loading, removeUserInterestResource };
7037
6923
  };
7038
6924
  var useAddUserGoingResource = () => {
7039
- const [addUserGoingResource, { loading, error }] = (0, import_client43.useMutation)(ADD_USER_GOING_RESOURCE_MUTATION, {
6925
+ const [addUserGoingResource, { loading, error }] = (0, import_client42.useMutation)(ADD_USER_GOING_RESOURCE_MUTATION, {
7040
6926
  awaitRefetchQueries: true,
7041
6927
  refetchQueries: [{ query: GET_USER_ACTIVITIES }]
7042
6928
  });
7043
6929
  return { addUserGoingResource, error, loading };
7044
6930
  };
7045
6931
  var useRemoveUserGoingResource = () => {
7046
- const [removeUserGoingResource, { loading, error }] = (0, import_client43.useMutation)(REMOVE_USER_GOING_RESOURCE_MUTATION, {
6932
+ const [removeUserGoingResource, { loading, error }] = (0, import_client42.useMutation)(REMOVE_USER_GOING_RESOURCE_MUTATION, {
7047
6933
  awaitRefetchQueries: true,
7048
6934
  refetchQueries: [{ query: GET_USER_ACTIVITIES }]
7049
6935
  });
7050
6936
  return { error, loading, removeUserGoingResource };
7051
6937
  };
7052
6938
  var useAddUserPresentResource = () => {
7053
- const [addUserPresentResource, { loading, error }] = (0, import_client43.useMutation)(ADD_USER_PRESENT_RESOURCE_MUTATION, {
6939
+ const [addUserPresentResource, { loading, error }] = (0, import_client42.useMutation)(ADD_USER_PRESENT_RESOURCE_MUTATION, {
7054
6940
  awaitRefetchQueries: true,
7055
6941
  refetchQueries: [{ query: GET_USER_ACTIVITIES }]
7056
6942
  });
7057
6943
  return { addUserPresentResource, error, loading };
7058
6944
  };
7059
6945
  var useRemoveUserPresentResource = () => {
7060
- const [removeUserPresentResource, { loading, error }] = (0, import_client43.useMutation)(REMOVE_USER_PRESENT_RESOURCE_MUTATION, {
6946
+ const [removeUserPresentResource, { loading, error }] = (0, import_client42.useMutation)(REMOVE_USER_PRESENT_RESOURCE_MUTATION, {
7061
6947
  awaitRefetchQueries: true,
7062
6948
  refetchQueries: [{ query: GET_USER_ACTIVITIES }]
7063
6949
  });
7064
6950
  return { error, loading, removeUserPresentResource };
7065
6951
  };
7066
6952
  var useSelectStandardPackage = () => {
7067
- const [selectStandardPackage, { loading, error }] = (0, import_client43.useMutation)(SELECT_STANDARD_PACKAGE_MUTATION, {
6953
+ const [selectStandardPackage, { loading, error }] = (0, import_client42.useMutation)(SELECT_STANDARD_PACKAGE_MUTATION, {
7068
6954
  awaitRefetchQueries: true,
7069
6955
  refetchQueries: (mutationResult) => {
7070
6956
  const userId = mutationResult?.data?.selectStandardPackage?.data?.userId;
@@ -7080,9 +6966,9 @@ var useSelectStandardPackage = () => {
7080
6966
  };
7081
6967
 
7082
6968
  // src/graphql/hooks/user/hooksQuery.ts
7083
- var import_client44 = require("@apollo/client");
6969
+ var import_client43 = require("@apollo/client");
7084
6970
  var useGetUsers = () => {
7085
- const { loading, error, data, refetch } = (0, import_client44.useQuery)(
6971
+ const { loading, error, data, refetch } = (0, import_client43.useQuery)(
7086
6972
  GET_USERS,
7087
6973
  {
7088
6974
  fetchPolicy: "network-only"
@@ -7092,7 +6978,7 @@ var useGetUsers = () => {
7092
6978
  return { error, loading, refetch, users };
7093
6979
  };
7094
6980
  var useGetUser = (_id) => {
7095
- const { loading, error, data, refetch } = (0, import_client44.useQuery)(
6981
+ const { loading, error, data, refetch } = (0, import_client43.useQuery)(
7096
6982
  GET_USER,
7097
6983
  {
7098
6984
  fetchPolicy: "network-only",
@@ -7104,28 +6990,28 @@ var useGetUser = (_id) => {
7104
6990
  return { error, loading, refetch, user };
7105
6991
  };
7106
6992
  var useGetUserEvents = () => {
7107
- const { loading, error, data, refetch } = (0, import_client44.useQuery)(GET_USER_EVENTS, {
6993
+ const { loading, error, data, refetch } = (0, import_client43.useQuery)(GET_USER_EVENTS, {
7108
6994
  fetchPolicy: "network-only"
7109
6995
  });
7110
6996
  const userEvents = data?.userEvents || [];
7111
6997
  return { error, loading, refetch, userEvents };
7112
6998
  };
7113
6999
  var useGetUserVendors = () => {
7114
- const { loading, error, data, refetch } = (0, import_client44.useQuery)(GET_USER_VENDORS, {
7000
+ const { loading, error, data, refetch } = (0, import_client43.useQuery)(GET_USER_VENDORS, {
7115
7001
  fetchPolicy: "network-only"
7116
7002
  });
7117
7003
  const userVendors = data?.userVendors || [];
7118
7004
  return { error, loading, refetch, userVendors };
7119
7005
  };
7120
7006
  var useGetUserPartners = () => {
7121
- const { loading, error, data, refetch } = (0, import_client44.useQuery)(GET_USER_PARTNERS, {
7007
+ const { loading, error, data, refetch } = (0, import_client43.useQuery)(GET_USER_PARTNERS, {
7122
7008
  fetchPolicy: "network-only"
7123
7009
  });
7124
7010
  const userPartners = data?.userPartners || [];
7125
7011
  return { error, loading, refetch, userPartners };
7126
7012
  };
7127
7013
  var useGetUserActivities = () => {
7128
- const { loading, error, data, refetch } = (0, import_client44.useQuery)(GET_USER_ACTIVITIES, {
7014
+ const { loading, error, data, refetch } = (0, import_client43.useQuery)(GET_USER_ACTIVITIES, {
7129
7015
  fetchPolicy: "network-only"
7130
7016
  });
7131
7017
  const userActivities = {
@@ -7147,7 +7033,7 @@ var useGetUserActivities = () => {
7147
7033
  return { error, loading, refetch, userActivities };
7148
7034
  };
7149
7035
  var useGetUserResources = (userId) => {
7150
- const { loading, error, data, refetch } = (0, import_client44.useQuery)(GET_USER_RESOURCES, {
7036
+ const { loading, error, data, refetch } = (0, import_client43.useQuery)(GET_USER_RESOURCES, {
7151
7037
  fetchPolicy: "network-only",
7152
7038
  skip: !userId || userId === "",
7153
7039
  variables: { userId }
@@ -7157,14 +7043,14 @@ var useGetUserResources = (userId) => {
7157
7043
  };
7158
7044
 
7159
7045
  // src/graphql/hooks/ad/hooksMutation.ts
7160
- var import_client47 = require("@apollo/client");
7046
+ var import_client46 = require("@apollo/client");
7161
7047
 
7162
7048
  // src/graphql/mutations/ad.ts
7163
- var import_client46 = require("@apollo/client");
7049
+ var import_client45 = require("@apollo/client");
7164
7050
 
7165
7051
  // src/graphql/queries/ad.ts
7166
- var import_client45 = require("@apollo/client");
7167
- var AD_FIELDS_FRAGMENT = import_client45.gql`
7052
+ var import_client44 = require("@apollo/client");
7053
+ var AD_FIELDS_FRAGMENT = import_client44.gql`
7168
7054
  fragment AdFields on AdType {
7169
7055
  _id
7170
7056
  active
@@ -7191,7 +7077,7 @@ var AD_FIELDS_FRAGMENT = import_client45.gql`
7191
7077
  updatedAt
7192
7078
  }
7193
7079
  `;
7194
- var GET_ADS = import_client45.gql`
7080
+ var GET_ADS = import_client44.gql`
7195
7081
  query getAds {
7196
7082
  ads {
7197
7083
  ...AdFields
@@ -7199,7 +7085,7 @@ var GET_ADS = import_client45.gql`
7199
7085
  }
7200
7086
  ${AD_FIELDS_FRAGMENT}
7201
7087
  `;
7202
- var GET_AD = import_client45.gql`
7088
+ var GET_AD = import_client44.gql`
7203
7089
  query getAd($_id: ID!) {
7204
7090
  ad(_id: $_id) {
7205
7091
  ...AdFields
@@ -7207,7 +7093,7 @@ var GET_AD = import_client45.gql`
7207
7093
  }
7208
7094
  ${AD_FIELDS_FRAGMENT}
7209
7095
  `;
7210
- var GET_ADS_BY_REGION = import_client45.gql`
7096
+ var GET_ADS_BY_REGION = import_client44.gql`
7211
7097
  query getAdsByRegion($region: String!, $status: AdStatusTypeEnum) {
7212
7098
  adsByRegion(region: $region, status: $status) {
7213
7099
  ...AdFields
@@ -7217,7 +7103,7 @@ var GET_ADS_BY_REGION = import_client45.gql`
7217
7103
  `;
7218
7104
 
7219
7105
  // src/graphql/mutations/ad.ts
7220
- var CREATE_AD_MUTATION = import_client46.gql`
7106
+ var CREATE_AD_MUTATION = import_client45.gql`
7221
7107
  mutation createAd($input: AdInputType!) {
7222
7108
  createAd(input: $input) {
7223
7109
  data {
@@ -7228,7 +7114,7 @@ var CREATE_AD_MUTATION = import_client46.gql`
7228
7114
  }
7229
7115
  ${AD_FIELDS_FRAGMENT}
7230
7116
  `;
7231
- var UPDATE_AD_MUTATION = import_client46.gql`
7117
+ var UPDATE_AD_MUTATION = import_client45.gql`
7232
7118
  mutation updateAd($_id: ID!, $input: AdInputType!) {
7233
7119
  updateAd(_id: $_id, input: $input) {
7234
7120
  data {
@@ -7239,7 +7125,7 @@ var UPDATE_AD_MUTATION = import_client46.gql`
7239
7125
  }
7240
7126
  ${AD_FIELDS_FRAGMENT}
7241
7127
  `;
7242
- var DELETE_AD_MUTATION = import_client46.gql`
7128
+ var DELETE_AD_MUTATION = import_client45.gql`
7243
7129
  mutation deleteAd($_id: ID!) {
7244
7130
  deleteAd(_id: $_id) {
7245
7131
  data
@@ -7250,7 +7136,7 @@ var DELETE_AD_MUTATION = import_client46.gql`
7250
7136
 
7251
7137
  // src/graphql/hooks/ad/hooksMutation.ts
7252
7138
  var useCreateAd = () => {
7253
- const [createAd, { loading, error }] = (0, import_client47.useMutation)(CREATE_AD_MUTATION, {
7139
+ const [createAd, { loading, error }] = (0, import_client46.useMutation)(CREATE_AD_MUTATION, {
7254
7140
  awaitRefetchQueries: true,
7255
7141
  refetchQueries: [{ query: GET_ADS }]
7256
7142
  });
@@ -7261,7 +7147,7 @@ var useCreateAd = () => {
7261
7147
  };
7262
7148
  };
7263
7149
  var useUpdateAd = () => {
7264
- const [updateAd, { loading, error }] = (0, import_client47.useMutation)(UPDATE_AD_MUTATION, {
7150
+ const [updateAd, { loading, error }] = (0, import_client46.useMutation)(UPDATE_AD_MUTATION, {
7265
7151
  awaitRefetchQueries: true,
7266
7152
  refetchQueries: [{ query: GET_ADS }]
7267
7153
  });
@@ -7272,7 +7158,7 @@ var useUpdateAd = () => {
7272
7158
  };
7273
7159
  };
7274
7160
  var useDeleteAd = () => {
7275
- const [deleteAd, { loading, error }] = (0, import_client47.useMutation)(DELETE_AD_MUTATION, {
7161
+ const [deleteAd, { loading, error }] = (0, import_client46.useMutation)(DELETE_AD_MUTATION, {
7276
7162
  awaitRefetchQueries: true,
7277
7163
  refetchQueries: [{ query: GET_ADS }]
7278
7164
  });
@@ -7284,9 +7170,9 @@ var useDeleteAd = () => {
7284
7170
  };
7285
7171
 
7286
7172
  // src/graphql/hooks/ad/hooksQuery.ts
7287
- var import_client48 = require("@apollo/client");
7173
+ var import_client47 = require("@apollo/client");
7288
7174
  var useGetAds = () => {
7289
- const { data, loading, error, refetch } = (0, import_client48.useQuery)(
7175
+ const { data, loading, error, refetch } = (0, import_client47.useQuery)(
7290
7176
  GET_ADS,
7291
7177
  {
7292
7178
  fetchPolicy: "no-cache"
@@ -7300,7 +7186,7 @@ var useGetAds = () => {
7300
7186
  };
7301
7187
  };
7302
7188
  var useGetAd = (_id) => {
7303
- const { data, loading, error, refetch } = (0, import_client48.useQuery)(GET_AD, {
7189
+ const { data, loading, error, refetch } = (0, import_client47.useQuery)(GET_AD, {
7304
7190
  fetchPolicy: "no-cache",
7305
7191
  skip: !_id || _id === "",
7306
7192
  variables: { _id }
@@ -7313,7 +7199,7 @@ var useGetAd = (_id) => {
7313
7199
  };
7314
7200
  };
7315
7201
  var useGetAdsByRegion = (region, status) => {
7316
- const { data, loading, error, refetch } = (0, import_client48.useQuery)(GET_ADS_BY_REGION, {
7202
+ const { data, loading, error, refetch } = (0, import_client47.useQuery)(GET_ADS_BY_REGION, {
7317
7203
  fetchPolicy: "no-cache",
7318
7204
  skip: !region || region === "",
7319
7205
  variables: { region, status }
@@ -7327,11 +7213,11 @@ var useGetAdsByRegion = (region, status) => {
7327
7213
  };
7328
7214
 
7329
7215
  // src/graphql/hooks/resourceActivities/hooksMutation.ts
7330
- var import_client50 = require("@apollo/client");
7216
+ var import_client49 = require("@apollo/client");
7331
7217
 
7332
7218
  // src/graphql/mutations/resourceActivities.ts
7333
- var import_client49 = require("@apollo/client");
7334
- var CREATE_RESOURCE_ACTIVITY_MUTATION = import_client49.gql`
7219
+ var import_client48 = require("@apollo/client");
7220
+ var CREATE_RESOURCE_ACTIVITY_MUTATION = import_client48.gql`
7335
7221
  mutation createResourceActivity($input: ResourceActivityInputType!) {
7336
7222
  createResourceActivity(input: $input) {
7337
7223
  data
@@ -7342,16 +7228,16 @@ var CREATE_RESOURCE_ACTIVITY_MUTATION = import_client49.gql`
7342
7228
 
7343
7229
  // src/graphql/hooks/resourceActivities/hooksMutation.ts
7344
7230
  var useCreateResourceActivity = () => {
7345
- const [createResourceActivity, { loading, error }] = (0, import_client50.useMutation)(CREATE_RESOURCE_ACTIVITY_MUTATION);
7231
+ const [createResourceActivity, { loading, error }] = (0, import_client49.useMutation)(CREATE_RESOURCE_ACTIVITY_MUTATION);
7346
7232
  return { createResourceActivity, error, loading };
7347
7233
  };
7348
7234
 
7349
7235
  // src/graphql/hooks/resourceActivities/hooksQuery.ts
7350
- var import_client52 = require("@apollo/client");
7236
+ var import_client51 = require("@apollo/client");
7351
7237
 
7352
7238
  // src/graphql/queries/resourceActivities.ts
7353
- var import_client51 = require("@apollo/client");
7354
- var RESOURCE_ACTIVITY_FIELDS_FRAGMENT = import_client51.gql`
7239
+ var import_client50 = require("@apollo/client");
7240
+ var RESOURCE_ACTIVITY_FIELDS_FRAGMENT = import_client50.gql`
7355
7241
  fragment ResourceActivityFields on ResourceActivityType {
7356
7242
  resourceId
7357
7243
  resourceType
@@ -7370,7 +7256,7 @@ var RESOURCE_ACTIVITY_FIELDS_FRAGMENT = import_client51.gql`
7370
7256
  }
7371
7257
  ${LOCATION_GEO_FIELDS_FRAGMENT}
7372
7258
  `;
7373
- var GET_RESOURCE_ACTIVITY = import_client51.gql`
7259
+ var GET_RESOURCE_ACTIVITY = import_client50.gql`
7374
7260
  query getResourceActivity(
7375
7261
  $resourceType: ResourceTypeEnum!
7376
7262
  $resourceId: ID!
@@ -7384,7 +7270,7 @@ var GET_RESOURCE_ACTIVITY = import_client51.gql`
7384
7270
 
7385
7271
  // src/graphql/hooks/resourceActivities/hooksQuery.ts
7386
7272
  var useGetResourceActivity = (resourceId, resourceType) => {
7387
- const { data, loading, error, refetch } = (0, import_client52.useQuery)(GET_RESOURCE_ACTIVITY, {
7273
+ const { data, loading, error, refetch } = (0, import_client51.useQuery)(GET_RESOURCE_ACTIVITY, {
7388
7274
  fetchPolicy: "network-only",
7389
7275
  variables: { resourceId, resourceType }
7390
7276
  });
@@ -7397,11 +7283,11 @@ var useGetResourceActivity = (resourceId, resourceType) => {
7397
7283
  };
7398
7284
 
7399
7285
  // src/graphql/hooks/stripe/hooksMutation.ts
7400
- var import_client54 = require("@apollo/client");
7286
+ var import_client53 = require("@apollo/client");
7401
7287
 
7402
7288
  // src/graphql/mutations/stripe.ts
7403
- var import_client53 = require("@apollo/client");
7404
- var CREATE_CHECKOUT_SESSION_MUTATION = import_client53.gql`
7289
+ var import_client52 = require("@apollo/client");
7290
+ var CREATE_CHECKOUT_SESSION_MUTATION = import_client52.gql`
7405
7291
  mutation createCheckoutSession(
7406
7292
  $planId: LicencesEnumType!
7407
7293
  $billingPeriod: BillingPeriodEnumType
@@ -7415,7 +7301,7 @@ var CREATE_CHECKOUT_SESSION_MUTATION = import_client53.gql`
7415
7301
  }
7416
7302
  }
7417
7303
  `;
7418
- var CANCEL_SUBSCRIPTION_MUTATION = import_client53.gql`
7304
+ var CANCEL_SUBSCRIPTION_MUTATION = import_client52.gql`
7419
7305
  mutation cancelSubscription {
7420
7306
  cancelSubscription {
7421
7307
  data
@@ -7423,7 +7309,7 @@ var CANCEL_SUBSCRIPTION_MUTATION = import_client53.gql`
7423
7309
  }
7424
7310
  }
7425
7311
  `;
7426
- var UPDATE_SUBSCRIPTION_PLAN_MUTATION = import_client53.gql`
7312
+ var UPDATE_SUBSCRIPTION_PLAN_MUTATION = import_client52.gql`
7427
7313
  mutation updateSubscriptionPlan(
7428
7314
  $newPlanId: LicencesEnumType!
7429
7315
  $billingPeriod: BillingPeriodEnumType
@@ -7442,7 +7328,7 @@ var UPDATE_SUBSCRIPTION_PLAN_MUTATION = import_client53.gql`
7442
7328
  }
7443
7329
  }
7444
7330
  `;
7445
- var CREATE_CUSTOMER_PORTAL = import_client53.gql`
7331
+ var CREATE_CUSTOMER_PORTAL = import_client52.gql`
7446
7332
  mutation createCustomerPortal($returnUrl: String) {
7447
7333
  createCustomerPortal(returnUrl: $returnUrl) {
7448
7334
  data {
@@ -7452,7 +7338,7 @@ var CREATE_CUSTOMER_PORTAL = import_client53.gql`
7452
7338
  }
7453
7339
  }
7454
7340
  `;
7455
- var SELECT_PACKAGE_MUTATION = import_client53.gql`
7341
+ var SELECT_PACKAGE_MUTATION = import_client52.gql`
7456
7342
  mutation selectPackage(
7457
7343
  $billingPeriod: BillingPeriodEnumType
7458
7344
  $selectedLicence: LicencesEnumType!
@@ -7478,23 +7364,23 @@ var SELECT_PACKAGE_MUTATION = import_client53.gql`
7478
7364
 
7479
7365
  // src/graphql/hooks/stripe/hooksMutation.ts
7480
7366
  var useCreateCheckoutSession = () => {
7481
- const [createCheckoutSession, { loading, error }] = (0, import_client54.useMutation)(CREATE_CHECKOUT_SESSION_MUTATION);
7367
+ const [createCheckoutSession, { loading, error }] = (0, import_client53.useMutation)(CREATE_CHECKOUT_SESSION_MUTATION);
7482
7368
  return { createCheckoutSession, error, loading };
7483
7369
  };
7484
7370
  var useCancelSubscription = () => {
7485
- const [cancelSubscription, { loading, error }] = (0, import_client54.useMutation)(CANCEL_SUBSCRIPTION_MUTATION);
7371
+ const [cancelSubscription, { loading, error }] = (0, import_client53.useMutation)(CANCEL_SUBSCRIPTION_MUTATION);
7486
7372
  return { cancelSubscription, error, loading };
7487
7373
  };
7488
7374
  var useUpdateSubscriptionPlan = () => {
7489
- const [updateSubscriptionPlan, { loading, error }] = (0, import_client54.useMutation)(UPDATE_SUBSCRIPTION_PLAN_MUTATION);
7375
+ const [updateSubscriptionPlan, { loading, error }] = (0, import_client53.useMutation)(UPDATE_SUBSCRIPTION_PLAN_MUTATION);
7490
7376
  return { error, loading, updateSubscriptionPlan };
7491
7377
  };
7492
7378
  var useCreateCustomerPortal = () => {
7493
- const [createCustomerPortal, { loading, error }] = (0, import_client54.useMutation)(CREATE_CUSTOMER_PORTAL);
7379
+ const [createCustomerPortal, { loading, error }] = (0, import_client53.useMutation)(CREATE_CUSTOMER_PORTAL);
7494
7380
  return { createCustomerPortal, error, loading };
7495
7381
  };
7496
7382
  var useSelectPackage = () => {
7497
- const [selectPackage, { loading, error }] = (0, import_client54.useMutation)(SELECT_PACKAGE_MUTATION, {
7383
+ const [selectPackage, { loading, error }] = (0, import_client53.useMutation)(SELECT_PACKAGE_MUTATION, {
7498
7384
  awaitRefetchQueries: true,
7499
7385
  refetchQueries: (mutationResult) => {
7500
7386
  const userId = mutationResult?.data?.selectPackage?.data?.userId;
@@ -7510,11 +7396,11 @@ var useSelectPackage = () => {
7510
7396
  };
7511
7397
 
7512
7398
  // src/graphql/hooks/stripe/hooksQuery.ts
7513
- var import_client56 = require("@apollo/client");
7399
+ var import_client55 = require("@apollo/client");
7514
7400
 
7515
7401
  // src/graphql/queries/stripe.ts
7516
- var import_client55 = require("@apollo/client");
7517
- var GET_SUBSCRIPTION_STATUS = import_client55.gql`
7402
+ var import_client54 = require("@apollo/client");
7403
+ var GET_SUBSCRIPTION_STATUS = import_client54.gql`
7518
7404
  query getSubscriptionStatus {
7519
7405
  getSubscriptionStatus {
7520
7406
  subscriptionId
@@ -7524,7 +7410,7 @@ var GET_SUBSCRIPTION_STATUS = import_client55.gql`
7524
7410
  }
7525
7411
  }
7526
7412
  `;
7527
- var GET_SUBSCRIPTION_PLANS = import_client55.gql`
7413
+ var GET_SUBSCRIPTION_PLANS = import_client54.gql`
7528
7414
  query getSubscriptionPlans {
7529
7415
  getSubscriptionPlans {
7530
7416
  plans {
@@ -7555,7 +7441,7 @@ var GET_SUBSCRIPTION_PLANS = import_client55.gql`
7555
7441
 
7556
7442
  // src/graphql/hooks/stripe/hooksQuery.ts
7557
7443
  var useGetSubscriptionStatus = () => {
7558
- const { data, loading, error, refetch } = (0, import_client56.useQuery)(GET_SUBSCRIPTION_STATUS);
7444
+ const { data, loading, error, refetch } = (0, import_client55.useQuery)(GET_SUBSCRIPTION_STATUS);
7559
7445
  return {
7560
7446
  data: data?.getSubscriptionStatus,
7561
7447
  error,
@@ -7564,7 +7450,7 @@ var useGetSubscriptionStatus = () => {
7564
7450
  };
7565
7451
  };
7566
7452
  var useGetSubscriptionPlans = () => {
7567
- const { data, loading, error, refetch } = (0, import_client56.useQuery)(GET_SUBSCRIPTION_PLANS);
7453
+ const { data, loading, error, refetch } = (0, import_client55.useQuery)(GET_SUBSCRIPTION_PLANS);
7568
7454
  return {
7569
7455
  data: data?.getSubscriptionPlans,
7570
7456
  error,
@@ -7574,11 +7460,11 @@ var useGetSubscriptionPlans = () => {
7574
7460
  };
7575
7461
 
7576
7462
  // src/graphql/hooks/partner/hooksMutation.ts
7577
- var import_client58 = require("@apollo/client");
7463
+ var import_client57 = require("@apollo/client");
7578
7464
 
7579
7465
  // src/graphql/mutations/partner.ts
7580
- var import_client57 = require("@apollo/client");
7581
- var CREATE_PARTNER_MUTATION = import_client57.gql`
7466
+ var import_client56 = require("@apollo/client");
7467
+ var CREATE_PARTNER_MUTATION = import_client56.gql`
7582
7468
  mutation createPartner($input: PartnerInputType!) {
7583
7469
  createPartner(input: $input) {
7584
7470
  data {
@@ -7589,7 +7475,7 @@ var CREATE_PARTNER_MUTATION = import_client57.gql`
7589
7475
  }
7590
7476
  ${PARTNER}
7591
7477
  `;
7592
- var UPDATE_PARTNER_MUTATION = import_client57.gql`
7478
+ var UPDATE_PARTNER_MUTATION = import_client56.gql`
7593
7479
  mutation updatePartner($_id: ID!, $input: PartnerInputType!) {
7594
7480
  updatePartner(_id: $_id, input: $input) {
7595
7481
  data {
@@ -7600,7 +7486,7 @@ var UPDATE_PARTNER_MUTATION = import_client57.gql`
7600
7486
  }
7601
7487
  ${PARTNER}
7602
7488
  `;
7603
- var DELETE_PARTNER_MUTATION = import_client57.gql`
7489
+ var DELETE_PARTNER_MUTATION = import_client56.gql`
7604
7490
  mutation deletePartner($_id: ID!) {
7605
7491
  deletePartner(_id: $_id) {
7606
7492
  data
@@ -7611,21 +7497,21 @@ var DELETE_PARTNER_MUTATION = import_client57.gql`
7611
7497
 
7612
7498
  // src/graphql/hooks/partner/hooksMutation.ts
7613
7499
  var useCreatePartner = () => {
7614
- const [createPartner, { loading, error }] = (0, import_client58.useMutation)(CREATE_PARTNER_MUTATION, {
7500
+ const [createPartner, { loading, error }] = (0, import_client57.useMutation)(CREATE_PARTNER_MUTATION, {
7615
7501
  awaitRefetchQueries: true,
7616
7502
  refetchQueries: [{ query: GET_USER_PARTNERS }]
7617
7503
  });
7618
7504
  return { createPartner, error, loading };
7619
7505
  };
7620
7506
  var useUpdatePartner = () => {
7621
- const [updatePartner, { loading, error }] = (0, import_client58.useMutation)(UPDATE_PARTNER_MUTATION, {
7507
+ const [updatePartner, { loading, error }] = (0, import_client57.useMutation)(UPDATE_PARTNER_MUTATION, {
7622
7508
  awaitRefetchQueries: true,
7623
7509
  refetchQueries: [{ query: GET_USER_PARTNERS }]
7624
7510
  });
7625
7511
  return { error, loading, updatePartner };
7626
7512
  };
7627
7513
  var useDeletePartner = () => {
7628
- const [deletePartner, { loading, error }] = (0, import_client58.useMutation)(DELETE_PARTNER_MUTATION, {
7514
+ const [deletePartner, { loading, error }] = (0, import_client57.useMutation)(DELETE_PARTNER_MUTATION, {
7629
7515
  awaitRefetchQueries: true,
7630
7516
  refetchQueries: [{ query: GET_USER_PARTNERS }]
7631
7517
  });
@@ -7633,9 +7519,9 @@ var useDeletePartner = () => {
7633
7519
  };
7634
7520
 
7635
7521
  // src/graphql/hooks/partner/hooksQuery.ts
7636
- var import_client59 = require("@apollo/client");
7522
+ var import_client58 = require("@apollo/client");
7637
7523
  var useGetPartners = () => {
7638
- const { loading, error, data, refetch } = (0, import_client59.useQuery)(GET_PARTNERS, {
7524
+ const { loading, error, data, refetch } = (0, import_client58.useQuery)(GET_PARTNERS, {
7639
7525
  fetchPolicy: "network-only"
7640
7526
  });
7641
7527
  const partners = data?.partners || [];
@@ -7647,7 +7533,7 @@ var useGetPartners = () => {
7647
7533
  };
7648
7534
  };
7649
7535
  var useGetPartner = (_id) => {
7650
- const { loading, error, data, refetch } = (0, import_client59.useQuery)(
7536
+ const { loading, error, data, refetch } = (0, import_client58.useQuery)(
7651
7537
  GET_PARTNER,
7652
7538
  {
7653
7539
  fetchPolicy: "network-only",
@@ -7663,7 +7549,7 @@ var useGetPartnersByRegion = (region, options) => {
7663
7549
  options,
7664
7550
  region
7665
7551
  };
7666
- const { loading, error, data, refetch, fetchMore } = (0, import_client59.useQuery)(GET_PARTNERS_BY_REGION, {
7552
+ const { loading, error, data, refetch, fetchMore } = (0, import_client58.useQuery)(GET_PARTNERS_BY_REGION, {
7667
7553
  fetchPolicy: "network-only",
7668
7554
  variables
7669
7555
  });
@@ -7677,7 +7563,7 @@ var useGetPartnersByRegion = (region, options) => {
7677
7563
  };
7678
7564
  };
7679
7565
  var useSearchPartners = (search, region) => {
7680
- const { loading, error, data, refetch } = (0, import_client59.useQuery)(SEARCH_PARTNERS, {
7566
+ const { loading, error, data, refetch } = (0, import_client58.useQuery)(SEARCH_PARTNERS, {
7681
7567
  fetchPolicy: "network-only",
7682
7568
  skip: search.length < 3,
7683
7569
  variables: { region, search }
@@ -7687,11 +7573,11 @@ var useSearchPartners = (search, region) => {
7687
7573
  };
7688
7574
 
7689
7575
  // src/graphql/hooks/post/hooksMutation.ts
7690
- var import_client61 = require("@apollo/client");
7576
+ var import_client60 = require("@apollo/client");
7691
7577
 
7692
7578
  // src/graphql/mutations/post.ts
7693
- var import_client60 = require("@apollo/client");
7694
- var CREATE_POST_MUTATION = import_client60.gql`
7579
+ var import_client59 = require("@apollo/client");
7580
+ var CREATE_POST_MUTATION = import_client59.gql`
7695
7581
  mutation createPost($input: PostInputType!) {
7696
7582
  createPost(input: $input) {
7697
7583
  data {
@@ -7702,7 +7588,7 @@ var CREATE_POST_MUTATION = import_client60.gql`
7702
7588
  }
7703
7589
  ${POST_FIELDS_FRAGMENT}
7704
7590
  `;
7705
- var UPDATE_POST_MUTATION = import_client60.gql`
7591
+ var UPDATE_POST_MUTATION = import_client59.gql`
7706
7592
  mutation updatePost($_id: ID!, $input: PostInputType!) {
7707
7593
  updatePost(_id: $_id, input: $input) {
7708
7594
  data {
@@ -7713,7 +7599,7 @@ var UPDATE_POST_MUTATION = import_client60.gql`
7713
7599
  }
7714
7600
  ${POST_FIELDS_FRAGMENT}
7715
7601
  `;
7716
- var DELETE_POST_MUTATION = import_client60.gql`
7602
+ var DELETE_POST_MUTATION = import_client59.gql`
7717
7603
  mutation deletePost($_id: ID!) {
7718
7604
  deletePost(_id: $_id) {
7719
7605
  data
@@ -7724,21 +7610,21 @@ var DELETE_POST_MUTATION = import_client60.gql`
7724
7610
 
7725
7611
  // src/graphql/hooks/post/hooksMutation.ts
7726
7612
  var useCreatePost = () => {
7727
- const [createPost, { loading, error }] = (0, import_client61.useMutation)(CREATE_POST_MUTATION, {
7613
+ const [createPost, { loading, error }] = (0, import_client60.useMutation)(CREATE_POST_MUTATION, {
7728
7614
  awaitRefetchQueries: true,
7729
7615
  refetchQueries: [{ query: GET_POSTS }]
7730
7616
  });
7731
7617
  return { createPost, error, loading };
7732
7618
  };
7733
7619
  var useUpdatePost = () => {
7734
- const [updatePost, { loading, error }] = (0, import_client61.useMutation)(UPDATE_POST_MUTATION, {
7620
+ const [updatePost, { loading, error }] = (0, import_client60.useMutation)(UPDATE_POST_MUTATION, {
7735
7621
  awaitRefetchQueries: true,
7736
7622
  refetchQueries: [{ query: GET_POSTS }]
7737
7623
  });
7738
7624
  return { error, loading, updatePost };
7739
7625
  };
7740
7626
  var useDeletePost = () => {
7741
- const [deletePost, { loading, error }] = (0, import_client61.useMutation)(DELETE_POST_MUTATION, {
7627
+ const [deletePost, { loading, error }] = (0, import_client60.useMutation)(DELETE_POST_MUTATION, {
7742
7628
  awaitRefetchQueries: true,
7743
7629
  refetchQueries: [{ query: GET_POSTS }]
7744
7630
  });
@@ -7746,15 +7632,15 @@ var useDeletePost = () => {
7746
7632
  };
7747
7633
 
7748
7634
  // src/graphql/hooks/post/hooksQuery.ts
7749
- var import_client62 = require("@apollo/client");
7635
+ var import_client61 = require("@apollo/client");
7750
7636
  var useGetPosts = () => {
7751
- const { data, loading, error, refetch } = (0, import_client62.useQuery)(GET_POSTS, {
7637
+ const { data, loading, error, refetch } = (0, import_client61.useQuery)(GET_POSTS, {
7752
7638
  fetchPolicy: "network-only"
7753
7639
  });
7754
7640
  return { error, loading, posts: data?.posts || [], refetch };
7755
7641
  };
7756
7642
  var useGetPost = (_id) => {
7757
- const { data, loading, error, refetch } = (0, import_client62.useQuery)(GET_POST, {
7643
+ const { data, loading, error, refetch } = (0, import_client61.useQuery)(GET_POST, {
7758
7644
  fetchPolicy: "network-only",
7759
7645
  skip: !_id || _id === "",
7760
7646
  variables: { _id }
@@ -7762,7 +7648,7 @@ var useGetPost = (_id) => {
7762
7648
  return { error, loading, post: data?.post, refetch };
7763
7649
  };
7764
7650
  var useGetPostsByType = (postType) => {
7765
- const { data, loading, error, refetch } = (0, import_client62.useQuery)(GET_POSTS_BY_TYPE, {
7651
+ const { data, loading, error, refetch } = (0, import_client61.useQuery)(GET_POSTS_BY_TYPE, {
7766
7652
  fetchPolicy: "network-only",
7767
7653
  skip: !postType,
7768
7654
  variables: { postType }
@@ -7771,11 +7657,11 @@ var useGetPostsByType = (postType) => {
7771
7657
  };
7772
7658
 
7773
7659
  // src/graphql/hooks/appSettings/hooksMutation.ts
7774
- var import_client65 = require("@apollo/client");
7660
+ var import_client64 = require("@apollo/client");
7775
7661
 
7776
7662
  // src/graphql/mutations/appSettings.ts
7777
- var import_client63 = require("@apollo/client");
7778
- var UPDATE_APP_SETTINGS_MUTATION = import_client63.gql`
7663
+ var import_client62 = require("@apollo/client");
7664
+ var UPDATE_APP_SETTINGS_MUTATION = import_client62.gql`
7779
7665
  mutation updateAppSettings($input: AppSettingsInputType!) {
7780
7666
  updateAppSettings(input: $input) {
7781
7667
  data
@@ -7783,7 +7669,7 @@ var UPDATE_APP_SETTINGS_MUTATION = import_client63.gql`
7783
7669
  }
7784
7670
  }
7785
7671
  `;
7786
- var CRAWL_GOOGLE_MARKETS_MUTATION = import_client63.gql`
7672
+ var CRAWL_GOOGLE_MARKETS_MUTATION = import_client62.gql`
7787
7673
  mutation crawlGoogleMarkets {
7788
7674
  crawlGoogleMarkets {
7789
7675
  data
@@ -7791,7 +7677,7 @@ var CRAWL_GOOGLE_MARKETS_MUTATION = import_client63.gql`
7791
7677
  }
7792
7678
  }
7793
7679
  `;
7794
- var UPDATE_GOOGLE_IMPORTED_MARKET_MUTATION = import_client63.gql`
7680
+ var UPDATE_GOOGLE_IMPORTED_MARKET_MUTATION = import_client62.gql`
7795
7681
  mutation updateGoogleImportedMarkets {
7796
7682
  updateGoogleImportedMarkets {
7797
7683
  data
@@ -7801,8 +7687,8 @@ var UPDATE_GOOGLE_IMPORTED_MARKET_MUTATION = import_client63.gql`
7801
7687
  `;
7802
7688
 
7803
7689
  // src/graphql/queries/appSettings.ts
7804
- var import_client64 = require("@apollo/client");
7805
- var APP_SETTINGS_FIELDS_FRAGMENT = import_client64.gql`
7690
+ var import_client63 = require("@apollo/client");
7691
+ var APP_SETTINGS_FIELDS_FRAGMENT = import_client63.gql`
7806
7692
  fragment AppSettingsFields on AppSettingsType {
7807
7693
  _id
7808
7694
  appVersion
@@ -7813,7 +7699,7 @@ var APP_SETTINGS_FIELDS_FRAGMENT = import_client64.gql`
7813
7699
  updatedAt
7814
7700
  }
7815
7701
  `;
7816
- var GET_APP_SETTINGS = import_client64.gql`
7702
+ var GET_APP_SETTINGS = import_client63.gql`
7817
7703
  query getAppSettings {
7818
7704
  appSettings {
7819
7705
  ...AppSettingsFields
@@ -7824,25 +7710,25 @@ var GET_APP_SETTINGS = import_client64.gql`
7824
7710
 
7825
7711
  // src/graphql/hooks/appSettings/hooksMutation.ts
7826
7712
  var useUpdateAppSettings = () => {
7827
- const [updateAppSettings, { loading, error }] = (0, import_client65.useMutation)(UPDATE_APP_SETTINGS_MUTATION, {
7713
+ const [updateAppSettings, { loading, error }] = (0, import_client64.useMutation)(UPDATE_APP_SETTINGS_MUTATION, {
7828
7714
  awaitRefetchQueries: true,
7829
7715
  refetchQueries: [{ query: GET_APP_SETTINGS }]
7830
7716
  });
7831
7717
  return { error, loading, updateAppSettings };
7832
7718
  };
7833
7719
  var useCrawlGoogleMarkets = () => {
7834
- const [crawlGoogleMarkets, { loading, error }] = (0, import_client65.useMutation)(CRAWL_GOOGLE_MARKETS_MUTATION);
7720
+ const [crawlGoogleMarkets, { loading, error }] = (0, import_client64.useMutation)(CRAWL_GOOGLE_MARKETS_MUTATION);
7835
7721
  return { crawlGoogleMarkets, error, loading };
7836
7722
  };
7837
7723
  var useUpdateGoogleImportedMarkets = () => {
7838
- const [updateGoogleImportedMarkets, { loading, error }] = (0, import_client65.useMutation)(UPDATE_GOOGLE_IMPORTED_MARKET_MUTATION);
7724
+ const [updateGoogleImportedMarkets, { loading, error }] = (0, import_client64.useMutation)(UPDATE_GOOGLE_IMPORTED_MARKET_MUTATION);
7839
7725
  return { error, loading, updateGoogleImportedMarkets };
7840
7726
  };
7841
7727
 
7842
7728
  // src/graphql/hooks/appSettings/hooksQuery.ts
7843
- var import_client66 = require("@apollo/client");
7729
+ var import_client65 = require("@apollo/client");
7844
7730
  var useGetAppSettings = () => {
7845
- const { loading, error, data, refetch } = (0, import_client66.useQuery)(GET_APP_SETTINGS, {
7731
+ const { loading, error, data, refetch } = (0, import_client65.useQuery)(GET_APP_SETTINGS, {
7846
7732
  fetchPolicy: "network-only"
7847
7733
  });
7848
7734
  const appSettings = data?.appSettings || null;
@@ -7850,14 +7736,14 @@ var useGetAppSettings = () => {
7850
7736
  };
7851
7737
 
7852
7738
  // src/graphql/hooks/game/hooksMutation.ts
7853
- var import_client69 = require("@apollo/client");
7739
+ var import_client68 = require("@apollo/client");
7854
7740
 
7855
7741
  // src/graphql/mutations/game.ts
7856
- var import_client68 = require("@apollo/client");
7742
+ var import_client67 = require("@apollo/client");
7857
7743
 
7858
7744
  // src/graphql/queries/game/game.ts
7859
- var import_client67 = require("@apollo/client");
7860
- var GAME_HISTORY_FIELDS_FRAGMENT = import_client67.gql`
7745
+ var import_client66 = require("@apollo/client");
7746
+ var GAME_HISTORY_FIELDS_FRAGMENT = import_client66.gql`
7861
7747
  fragment GameHistoryFields on GameHistoryType {
7862
7748
  createdAt
7863
7749
  gameDate {
@@ -7872,7 +7758,7 @@ var GAME_HISTORY_FIELDS_FRAGMENT = import_client67.gql`
7872
7758
  }
7873
7759
  ${GAME_DATE_FIELDS_FRAGMENT}
7874
7760
  `;
7875
- var GAME_DATA_FIELDS_FRAGMENT = import_client67.gql`
7761
+ var GAME_DATA_FIELDS_FRAGMENT = import_client66.gql`
7876
7762
  fragment GameDataFields on GameDataType {
7877
7763
  dailyClue {
7878
7764
  ...DailyClueGameDataFields
@@ -7887,7 +7773,7 @@ var GAME_DATA_FIELDS_FRAGMENT = import_client67.gql`
7887
7773
  ${DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT}
7888
7774
  ${PUZZLE_GAME_DATA_FIELDS_FRAGMENT}
7889
7775
  `;
7890
- var GAME_FIELDS_FRAGMENT = import_client67.gql`
7776
+ var GAME_FIELDS_FRAGMENT = import_client66.gql`
7891
7777
  fragment GameFields on GameType {
7892
7778
  _id
7893
7779
  active
@@ -7906,7 +7792,7 @@ var GAME_FIELDS_FRAGMENT = import_client67.gql`
7906
7792
  ${GAME_DATA_FIELDS_FRAGMENT}
7907
7793
  ${GAME_HISTORY_FIELDS_FRAGMENT}
7908
7794
  `;
7909
- var GAME_DOC_FIELDS_FRAGMENT = import_client67.gql`
7795
+ var GAME_DOC_FIELDS_FRAGMENT = import_client66.gql`
7910
7796
  fragment GameDocFields on GameDocType {
7911
7797
  _id
7912
7798
  active
@@ -7924,7 +7810,7 @@ var GAME_DOC_FIELDS_FRAGMENT = import_client67.gql`
7924
7810
  ${OWNER_FIELDS_FRAGMENT}
7925
7811
  ${GAME_FIELDS_FRAGMENT}
7926
7812
  `;
7927
- var GET_GAMES = import_client67.gql`
7813
+ var GET_GAMES = import_client66.gql`
7928
7814
  query getGames {
7929
7815
  games {
7930
7816
  ...GameDocFields
@@ -7932,7 +7818,7 @@ var GET_GAMES = import_client67.gql`
7932
7818
  }
7933
7819
  ${GAME_DOC_FIELDS_FRAGMENT}
7934
7820
  `;
7935
- var GET_GAME = import_client67.gql`
7821
+ var GET_GAME = import_client66.gql`
7936
7822
  query getGame($_id: ID) {
7937
7823
  game(_id: $_id) {
7938
7824
  ...GameDocFields
@@ -7940,7 +7826,7 @@ var GET_GAME = import_client67.gql`
7940
7826
  }
7941
7827
  ${GAME_DOC_FIELDS_FRAGMENT}
7942
7828
  `;
7943
- var GET_GAME_LEADERBOARD = import_client67.gql`
7829
+ var GET_GAME_LEADERBOARD = import_client66.gql`
7944
7830
  query getGameLeaderboard {
7945
7831
  gameLeaderboard {
7946
7832
  gameHistory {
@@ -7957,7 +7843,7 @@ var GET_GAME_LEADERBOARD = import_client67.gql`
7957
7843
  `;
7958
7844
 
7959
7845
  // src/graphql/mutations/game.ts
7960
- var START_GAME_MUTATION = import_client68.gql`
7846
+ var START_GAME_MUTATION = import_client67.gql`
7961
7847
  mutation startGame($input: BaseGameInputType!) {
7962
7848
  startGame(input: $input) {
7963
7849
  data {
@@ -7968,7 +7854,7 @@ var START_GAME_MUTATION = import_client68.gql`
7968
7854
  }
7969
7855
  ${GAME_DOC_FIELDS_FRAGMENT}
7970
7856
  `;
7971
- var LEAVE_GAME_MUTATION = import_client68.gql`
7857
+ var LEAVE_GAME_MUTATION = import_client67.gql`
7972
7858
  mutation leaveGame(
7973
7859
  $_id: ID!
7974
7860
  $gameType: GameTypeEnumType!
@@ -7980,7 +7866,7 @@ var LEAVE_GAME_MUTATION = import_client68.gql`
7980
7866
  }
7981
7867
  }
7982
7868
  `;
7983
- var UPDATE_DAILY_CLUE_MUTATION = import_client68.gql`
7869
+ var UPDATE_DAILY_CLUE_MUTATION = import_client67.gql`
7984
7870
  mutation updateDailyClueGame(
7985
7871
  $_id: ID!
7986
7872
  $foundLetter: String!
@@ -8001,7 +7887,7 @@ var UPDATE_DAILY_CLUE_MUTATION = import_client68.gql`
8001
7887
  }
8002
7888
  ${GAME_DOC_FIELDS_FRAGMENT}
8003
7889
  `;
8004
- var UPDATE_PUZZLE_GAME_MUTATION = import_client68.gql`
7890
+ var UPDATE_PUZZLE_GAME_MUTATION = import_client67.gql`
8005
7891
  mutation updatePuzzleGame(
8006
7892
  $_id: ID!
8007
7893
  $answeredQuestions: [PuzzleAnsweredQuestionInputType!]!
@@ -8025,7 +7911,7 @@ var UPDATE_PUZZLE_GAME_MUTATION = import_client68.gql`
8025
7911
 
8026
7912
  // src/graphql/hooks/game/hooksMutation.ts
8027
7913
  var useStartGame = () => {
8028
- const [startGame, { loading, error }] = (0, import_client69.useMutation)(START_GAME_MUTATION, {
7914
+ const [startGame, { loading, error }] = (0, import_client68.useMutation)(START_GAME_MUTATION, {
8029
7915
  awaitRefetchQueries: true,
8030
7916
  refetchQueries: (mutationResult) => {
8031
7917
  const gameId = mutationResult?.data?.startGame?.data?._id;
@@ -8048,7 +7934,7 @@ var useStartGame = () => {
8048
7934
  return { error, loading, startGame };
8049
7935
  };
8050
7936
  var useLeaveGame = () => {
8051
- const [leaveGame, { loading, error }] = (0, import_client69.useMutation)(LEAVE_GAME_MUTATION, {
7937
+ const [leaveGame, { loading, error }] = (0, import_client68.useMutation)(LEAVE_GAME_MUTATION, {
8052
7938
  awaitRefetchQueries: true,
8053
7939
  refetchQueries: [
8054
7940
  {
@@ -8059,7 +7945,7 @@ var useLeaveGame = () => {
8059
7945
  return { error, leaveGame, loading };
8060
7946
  };
8061
7947
  var useUpdateDailyClueGame = () => {
8062
- const [updateDailyClueGame, { loading, error }] = (0, import_client69.useMutation)(UPDATE_DAILY_CLUE_MUTATION, {
7948
+ const [updateDailyClueGame, { loading, error }] = (0, import_client68.useMutation)(UPDATE_DAILY_CLUE_MUTATION, {
8063
7949
  awaitRefetchQueries: true,
8064
7950
  refetchQueries: (mutationResult) => {
8065
7951
  const gameId = mutationResult?.data?.updateDailyClueGame?.data?._id;
@@ -8076,7 +7962,7 @@ var useUpdateDailyClueGame = () => {
8076
7962
  return { error, loading, updateDailyClueGame };
8077
7963
  };
8078
7964
  var useUpdatePuzzleGame = () => {
8079
- const [updatePuzzleGame, { loading, error }] = (0, import_client69.useMutation)(UPDATE_PUZZLE_GAME_MUTATION, {
7965
+ const [updatePuzzleGame, { loading, error }] = (0, import_client68.useMutation)(UPDATE_PUZZLE_GAME_MUTATION, {
8080
7966
  awaitRefetchQueries: true,
8081
7967
  refetchQueries: (mutationResult) => {
8082
7968
  const gameId = mutationResult?.data?.updatePuzzleGame?.data?._id;
@@ -8094,16 +7980,16 @@ var useUpdatePuzzleGame = () => {
8094
7980
  };
8095
7981
 
8096
7982
  // src/graphql/hooks/game/hooksQuery.ts
8097
- var import_client70 = require("@apollo/client");
7983
+ var import_client69 = require("@apollo/client");
8098
7984
  var useGetGames = () => {
8099
- const { loading, error, data, refetch } = (0, import_client70.useQuery)(GET_GAMES, {
7985
+ const { loading, error, data, refetch } = (0, import_client69.useQuery)(GET_GAMES, {
8100
7986
  fetchPolicy: "network-only"
8101
7987
  });
8102
7988
  const games = data?.games || [];
8103
7989
  return { error, games, loading, refetch };
8104
7990
  };
8105
7991
  var useGetGame = (_id) => {
8106
- const { loading, error, data, refetch } = (0, import_client70.useQuery)(GET_GAME, {
7992
+ const { loading, error, data, refetch } = (0, import_client69.useQuery)(GET_GAME, {
8107
7993
  fetchPolicy: "network-only",
8108
7994
  skip: !_id,
8109
7995
  variables: _id ? { _id } : void 0
@@ -8112,7 +7998,7 @@ var useGetGame = (_id) => {
8112
7998
  return { error, game, loading, refetch };
8113
7999
  };
8114
8000
  var useGetGameLeaderboard = () => {
8115
- const { loading, error, data, refetch } = (0, import_client70.useQuery)(GET_GAME_LEADERBOARD, {
8001
+ const { loading, error, data, refetch } = (0, import_client69.useQuery)(GET_GAME_LEADERBOARD, {
8116
8002
  fetchPolicy: "network-only"
8117
8003
  });
8118
8004
  const gameLeaderboard = data?.gameLeaderboard || [];
@@ -8120,14 +8006,14 @@ var useGetGameLeaderboard = () => {
8120
8006
  };
8121
8007
 
8122
8008
  // src/graphql/hooks/school/hooksMutation.ts
8123
- var import_client73 = require("@apollo/client");
8009
+ var import_client72 = require("@apollo/client");
8124
8010
 
8125
8011
  // src/graphql/mutations/school.ts
8126
- var import_client72 = require("@apollo/client");
8012
+ var import_client71 = require("@apollo/client");
8127
8013
 
8128
8014
  // src/graphql/queries/school.ts
8129
- var import_client71 = require("@apollo/client");
8130
- var SCHOOL_REGISTERED_USERS_FIELDS_FRAGMENT = import_client71.gql`
8015
+ var import_client70 = require("@apollo/client");
8016
+ var SCHOOL_REGISTERED_USERS_FIELDS_FRAGMENT = import_client70.gql`
8131
8017
  fragment SchoolRegisteredUsersFields on SchoolRegisteredUserType {
8132
8018
  _id
8133
8019
  active
@@ -8140,14 +8026,14 @@ var SCHOOL_REGISTERED_USERS_FIELDS_FRAGMENT = import_client71.gql`
8140
8026
  }
8141
8027
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
8142
8028
  `;
8143
- var SCHOOL_CAMPAIGN_FIELDS_FRAGMENT = import_client71.gql`
8029
+ var SCHOOL_CAMPAIGN_FIELDS_FRAGMENT = import_client70.gql`
8144
8030
  fragment SchoolCampaignFields on SchoolCampaignType {
8145
8031
  endDate
8146
8032
  name
8147
8033
  startDate
8148
8034
  }
8149
8035
  `;
8150
- var SCHOOL = import_client71.gql`
8036
+ var SCHOOL = import_client70.gql`
8151
8037
  fragment SchoolFields on SchoolType {
8152
8038
  _id
8153
8039
  active
@@ -8191,7 +8077,7 @@ var SCHOOL = import_client71.gql`
8191
8077
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
8192
8078
  ${SCHOOL_CAMPAIGN_FIELDS_FRAGMENT}
8193
8079
  `;
8194
- var GET_SCHOOL = import_client71.gql`
8080
+ var GET_SCHOOL = import_client70.gql`
8195
8081
  query getSchool($_id: ID!) {
8196
8082
  school(_id: $_id) {
8197
8083
  school {
@@ -8205,7 +8091,7 @@ var GET_SCHOOL = import_client71.gql`
8205
8091
  ${SCHOOL}
8206
8092
  ${SCHOOL_REGISTERED_USERS_FIELDS_FRAGMENT}
8207
8093
  `;
8208
- var GET_SCHOOLS = import_client71.gql`
8094
+ var GET_SCHOOLS = import_client70.gql`
8209
8095
  query getSchools {
8210
8096
  schools {
8211
8097
  ...SchoolFields
@@ -8215,7 +8101,7 @@ var GET_SCHOOLS = import_client71.gql`
8215
8101
  `;
8216
8102
 
8217
8103
  // src/graphql/mutations/school.ts
8218
- var CREATE_SCHOOL_MUTATION = import_client72.gql`
8104
+ var CREATE_SCHOOL_MUTATION = import_client71.gql`
8219
8105
  mutation createSchool($input: SchoolInputType!) {
8220
8106
  createSchool(input: $input) {
8221
8107
  data {
@@ -8226,7 +8112,7 @@ var CREATE_SCHOOL_MUTATION = import_client72.gql`
8226
8112
  }
8227
8113
  ${SCHOOL}
8228
8114
  `;
8229
- var UPDATE_SCHOOL_MUTATION = import_client72.gql`
8115
+ var UPDATE_SCHOOL_MUTATION = import_client71.gql`
8230
8116
  mutation updateSchool($_id: ID!, $input: SchoolInputType!) {
8231
8117
  updateSchool(_id: $_id, input: $input) {
8232
8118
  data {
@@ -8237,7 +8123,7 @@ var UPDATE_SCHOOL_MUTATION = import_client72.gql`
8237
8123
  }
8238
8124
  ${SCHOOL}
8239
8125
  `;
8240
- var DELETE_SCHOOL_MUTATION = import_client72.gql`
8126
+ var DELETE_SCHOOL_MUTATION = import_client71.gql`
8241
8127
  mutation deleteSchool($_id: ID!) {
8242
8128
  deleteSchool(_id: $_id) {
8243
8129
  data
@@ -8245,7 +8131,7 @@ var DELETE_SCHOOL_MUTATION = import_client72.gql`
8245
8131
  }
8246
8132
  }
8247
8133
  `;
8248
- var REQUEST_MARKETING_MATERIAL_MUTATION = import_client72.gql`
8134
+ var REQUEST_MARKETING_MATERIAL_MUTATION = import_client71.gql`
8249
8135
  mutation requestMarketingMaterial(
8250
8136
  $input: MarketingMaterialRequestInputType!
8251
8137
  ) {
@@ -8258,35 +8144,35 @@ var REQUEST_MARKETING_MATERIAL_MUTATION = import_client72.gql`
8258
8144
 
8259
8145
  // src/graphql/hooks/school/hooksMutation.ts
8260
8146
  var useCreateSchool = () => {
8261
- const [createSchool, { loading, error }] = (0, import_client73.useMutation)(CREATE_SCHOOL_MUTATION, {
8147
+ const [createSchool, { loading, error }] = (0, import_client72.useMutation)(CREATE_SCHOOL_MUTATION, {
8262
8148
  awaitRefetchQueries: true,
8263
8149
  refetchQueries: [{ query: GET_SCHOOLS }]
8264
8150
  });
8265
8151
  return { createSchool, error, loading };
8266
8152
  };
8267
8153
  var useUpdateSchool = () => {
8268
- const [updateSchool, { loading, error }] = (0, import_client73.useMutation)(UPDATE_SCHOOL_MUTATION, {
8154
+ const [updateSchool, { loading, error }] = (0, import_client72.useMutation)(UPDATE_SCHOOL_MUTATION, {
8269
8155
  awaitRefetchQueries: true,
8270
8156
  refetchQueries: [{ query: GET_SCHOOLS }]
8271
8157
  });
8272
8158
  return { error, loading, updateSchool };
8273
8159
  };
8274
8160
  var useDeleteSchool = () => {
8275
- const [deleteSchool, { loading, error }] = (0, import_client73.useMutation)(DELETE_SCHOOL_MUTATION, {
8161
+ const [deleteSchool, { loading, error }] = (0, import_client72.useMutation)(DELETE_SCHOOL_MUTATION, {
8276
8162
  awaitRefetchQueries: true,
8277
8163
  refetchQueries: [{ query: GET_SCHOOLS }]
8278
8164
  });
8279
8165
  return { deleteSchool, error, loading };
8280
8166
  };
8281
8167
  var useRequestMarketingMaterial = () => {
8282
- const [requestMarketingMaterial, { loading, error }] = (0, import_client73.useMutation)(REQUEST_MARKETING_MATERIAL_MUTATION);
8168
+ const [requestMarketingMaterial, { loading, error }] = (0, import_client72.useMutation)(REQUEST_MARKETING_MATERIAL_MUTATION);
8283
8169
  return { error, loading, requestMarketingMaterial };
8284
8170
  };
8285
8171
 
8286
8172
  // src/graphql/hooks/school/hooksQuery.ts
8287
- var import_client74 = require("@apollo/client");
8173
+ var import_client73 = require("@apollo/client");
8288
8174
  var useGetSchools = () => {
8289
- const { data, loading, error, refetch } = (0, import_client74.useQuery)(
8175
+ const { data, loading, error, refetch } = (0, import_client73.useQuery)(
8290
8176
  GET_SCHOOLS,
8291
8177
  {
8292
8178
  fetchPolicy: "network-only"
@@ -8300,7 +8186,7 @@ var useGetSchools = () => {
8300
8186
  };
8301
8187
  };
8302
8188
  var useGetSchool = (_id) => {
8303
- const { data, loading, error, refetch } = (0, import_client74.useQuery)(GET_SCHOOL, {
8189
+ const { data, loading, error, refetch } = (0, import_client73.useQuery)(GET_SCHOOL, {
8304
8190
  fetchPolicy: "network-only",
8305
8191
  skip: !_id,
8306
8192
  variables: { _id }
@@ -8314,11 +8200,11 @@ var useGetSchool = (_id) => {
8314
8200
  };
8315
8201
 
8316
8202
  // src/graphql/hooks/affiliate/hooksQuery.ts
8317
- var import_client76 = require("@apollo/client");
8203
+ var import_client75 = require("@apollo/client");
8318
8204
 
8319
8205
  // src/graphql/queries/affiliate.ts
8320
- var import_client75 = require("@apollo/client");
8321
- var AFFILIATE_REWARD_FIELDS_FRAGMENT = import_client75.gql`
8206
+ var import_client74 = require("@apollo/client");
8207
+ var AFFILIATE_REWARD_FIELDS_FRAGMENT = import_client74.gql`
8322
8208
  fragment AffiliateRewardFields on AffiliateRewardType {
8323
8209
  createdAt
8324
8210
  redeemedAt
@@ -8327,7 +8213,7 @@ var AFFILIATE_REWARD_FIELDS_FRAGMENT = import_client75.gql`
8327
8213
  rewardValue
8328
8214
  }
8329
8215
  `;
8330
- var AFFILIATE_RESOURCE_FIELDS_FRAGMENT = import_client75.gql`
8216
+ var AFFILIATE_RESOURCE_FIELDS_FRAGMENT = import_client74.gql`
8331
8217
  fragment AffiliateResourceFields on AffiliateResourceType {
8332
8218
  resourceActive
8333
8219
  resourceDeletedAt
@@ -8344,13 +8230,13 @@ var AFFILIATE_RESOURCE_FIELDS_FRAGMENT = import_client75.gql`
8344
8230
  ${AFFILIATE_REWARD_FIELDS_FRAGMENT}
8345
8231
  ${OWNER_FIELDS_FRAGMENT}
8346
8232
  `;
8347
- var AFFILIATE_BANK_ACCOUNT_DETAILS_FIELDS_FRAGMENT = import_client75.gql`
8233
+ var AFFILIATE_BANK_ACCOUNT_DETAILS_FIELDS_FRAGMENT = import_client74.gql`
8348
8234
  fragment AffiliateBankAccountDetailsFields on AffiliateBankAccountDetailsType {
8349
8235
  accountHolderName
8350
8236
  accountNumber
8351
8237
  }
8352
8238
  `;
8353
- var AFFILIATE_DETAILS_FIELDS_FRAGMENT = import_client75.gql`
8239
+ var AFFILIATE_DETAILS_FIELDS_FRAGMENT = import_client74.gql`
8354
8240
  fragment AffiliateDetailsFields on AffiliateDetailsType {
8355
8241
  bankAccountDetails {
8356
8242
  ...AffiliateBankAccountDetailsFields
@@ -8378,7 +8264,7 @@ var AFFILIATE_DETAILS_FIELDS_FRAGMENT = import_client75.gql`
8378
8264
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
8379
8265
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
8380
8266
  `;
8381
- var AFFILIATE_FIELDS_FRAGMENT = import_client75.gql`
8267
+ var AFFILIATE_FIELDS_FRAGMENT = import_client74.gql`
8382
8268
  fragment AffiliateFields on AffiliateType {
8383
8269
  _id
8384
8270
  active
@@ -8410,7 +8296,7 @@ var AFFILIATE_FIELDS_FRAGMENT = import_client75.gql`
8410
8296
  ${AFFILIATE_RESOURCE_FIELDS_FRAGMENT}
8411
8297
  ${OWNER_FIELDS_FRAGMENT}
8412
8298
  `;
8413
- var GET_AFFILIATE = import_client75.gql`
8299
+ var GET_AFFILIATE = import_client74.gql`
8414
8300
  query getAffiliate($_id: ID!) {
8415
8301
  affiliate(_id: $_id) {
8416
8302
  ...AffiliateFields
@@ -8418,7 +8304,7 @@ var GET_AFFILIATE = import_client75.gql`
8418
8304
  }
8419
8305
  ${AFFILIATE_FIELDS_FRAGMENT}
8420
8306
  `;
8421
- var GET_AFFILIATES = import_client75.gql`
8307
+ var GET_AFFILIATES = import_client74.gql`
8422
8308
  query getAffiliates {
8423
8309
  affiliates {
8424
8310
  ...AffiliateFields
@@ -8429,7 +8315,7 @@ var GET_AFFILIATES = import_client75.gql`
8429
8315
 
8430
8316
  // src/graphql/hooks/affiliate/hooksQuery.ts
8431
8317
  var useGetAffiliate = (_id) => {
8432
- const { data, loading, error, refetch } = (0, import_client76.useQuery)(GET_AFFILIATE, {
8318
+ const { data, loading, error, refetch } = (0, import_client75.useQuery)(GET_AFFILIATE, {
8433
8319
  fetchPolicy: "network-only",
8434
8320
  skip: !_id || _id === "",
8435
8321
  variables: { _id }
@@ -8443,7 +8329,7 @@ var useGetAffiliate = (_id) => {
8443
8329
  };
8444
8330
  };
8445
8331
  var useGetAffiliates = () => {
8446
- const { data, loading, error, refetch } = (0, import_client76.useQuery)(GET_AFFILIATES, {
8332
+ const { data, loading, error, refetch } = (0, import_client75.useQuery)(GET_AFFILIATES, {
8447
8333
  fetchPolicy: "network-only"
8448
8334
  });
8449
8335
  const affiliates = data?.affiliates || [];
@@ -8456,11 +8342,11 @@ var useGetAffiliates = () => {
8456
8342
  };
8457
8343
 
8458
8344
  // src/graphql/hooks/affiliate/hooksMutation.ts
8459
- var import_client78 = require("@apollo/client");
8345
+ var import_client77 = require("@apollo/client");
8460
8346
 
8461
8347
  // src/graphql/mutations/affiliate.ts
8462
- var import_client77 = require("@apollo/client");
8463
- var UPDATE_AFFILIATE_DETAILS_MUTATION = import_client77.gql`
8348
+ var import_client76 = require("@apollo/client");
8349
+ var UPDATE_AFFILIATE_DETAILS_MUTATION = import_client76.gql`
8464
8350
  mutation updateAffiliateDetails(
8465
8351
  $input: AffiliateDetailsInputType!
8466
8352
  $affiliateId: ID!
@@ -8474,7 +8360,7 @@ var UPDATE_AFFILIATE_DETAILS_MUTATION = import_client77.gql`
8474
8360
  }
8475
8361
  ${AFFILIATE_FIELDS_FRAGMENT}
8476
8362
  `;
8477
- var DELETE_AFFILIATE_MUTATION = import_client77.gql`
8363
+ var DELETE_AFFILIATE_MUTATION = import_client76.gql`
8478
8364
  mutation deleteAffiliate($_id: ID!) {
8479
8365
  deleteAffiliate(_id: $_id) {
8480
8366
  data
@@ -8482,7 +8368,7 @@ var DELETE_AFFILIATE_MUTATION = import_client77.gql`
8482
8368
  }
8483
8369
  }
8484
8370
  `;
8485
- var REDEEM_AFFILIATE_REWARD_MUTATION = import_client77.gql`
8371
+ var REDEEM_AFFILIATE_REWARD_MUTATION = import_client76.gql`
8486
8372
  mutation redeemAffiliateReward($affiliateId: ID!) {
8487
8373
  redeemAffiliateReward(affiliateId: $affiliateId) {
8488
8374
  data {
@@ -8493,7 +8379,7 @@ var REDEEM_AFFILIATE_REWARD_MUTATION = import_client77.gql`
8493
8379
  }
8494
8380
  ${AFFILIATE_FIELDS_FRAGMENT}
8495
8381
  `;
8496
- var ASSIGN_AFFILIATE_RESOURCE_REWARD_MUTATION = import_client77.gql`
8382
+ var ASSIGN_AFFILIATE_RESOURCE_REWARD_MUTATION = import_client76.gql`
8497
8383
  mutation assignAffiliateResourceReward(
8498
8384
  $affiliateId: ID!
8499
8385
  $resourceId: ID!
@@ -8514,7 +8400,7 @@ var ASSIGN_AFFILIATE_RESOURCE_REWARD_MUTATION = import_client77.gql`
8514
8400
  }
8515
8401
  ${AFFILIATE_FIELDS_FRAGMENT}
8516
8402
  `;
8517
- var ASSIGN_AFFILIATE_BONUS_REWARD_MUTATION = import_client77.gql`
8403
+ var ASSIGN_AFFILIATE_BONUS_REWARD_MUTATION = import_client76.gql`
8518
8404
  mutation assignAffiliateBonusReward(
8519
8405
  $affiliateId: ID!
8520
8406
  $rewardType: AffiliateRewardEnumType!
@@ -8534,7 +8420,7 @@ var ASSIGN_AFFILIATE_BONUS_REWARD_MUTATION = import_client77.gql`
8534
8420
 
8535
8421
  // src/graphql/hooks/affiliate/hooksMutation.ts
8536
8422
  var useUpdateAffiliateDetails = () => {
8537
- const [updateAffiliateDetails, { loading, error }] = (0, import_client78.useMutation)(UPDATE_AFFILIATE_DETAILS_MUTATION, {
8423
+ const [updateAffiliateDetails, { loading, error }] = (0, import_client77.useMutation)(UPDATE_AFFILIATE_DETAILS_MUTATION, {
8538
8424
  awaitRefetchQueries: true,
8539
8425
  refetchQueries: (mutationResult) => {
8540
8426
  const affiliateId = mutationResult?.data?.updateAffiliateDetails?.data?._id;
@@ -8545,14 +8431,14 @@ var useUpdateAffiliateDetails = () => {
8545
8431
  return { error, loading, updateAffiliateDetails };
8546
8432
  };
8547
8433
  var useDeleteAffiliate = () => {
8548
- const [deleteAffiliate, { loading, error }] = (0, import_client78.useMutation)(DELETE_AFFILIATE_MUTATION, {
8434
+ const [deleteAffiliate, { loading, error }] = (0, import_client77.useMutation)(DELETE_AFFILIATE_MUTATION, {
8549
8435
  awaitRefetchQueries: true,
8550
8436
  refetchQueries: [{ query: GET_AFFILIATES }]
8551
8437
  });
8552
8438
  return { deleteAffiliate, error, loading };
8553
8439
  };
8554
8440
  var useRedeemAffiliateReward = () => {
8555
- const [redeemAffiliateReward, { loading, error }] = (0, import_client78.useMutation)(REDEEM_AFFILIATE_REWARD_MUTATION, {
8441
+ const [redeemAffiliateReward, { loading, error }] = (0, import_client77.useMutation)(REDEEM_AFFILIATE_REWARD_MUTATION, {
8556
8442
  awaitRefetchQueries: true,
8557
8443
  refetchQueries: (mutationResult) => {
8558
8444
  const affiliateId = mutationResult?.data?.redeemAffiliateReward?.data?._id;
@@ -8563,7 +8449,7 @@ var useRedeemAffiliateReward = () => {
8563
8449
  return { error, loading, redeemAffiliateReward };
8564
8450
  };
8565
8451
  var useAssignAffiliateResourceReward = () => {
8566
- const [assignAffiliateResourceReward, { loading, error }] = (0, import_client78.useMutation)(ASSIGN_AFFILIATE_RESOURCE_REWARD_MUTATION, {
8452
+ const [assignAffiliateResourceReward, { loading, error }] = (0, import_client77.useMutation)(ASSIGN_AFFILIATE_RESOURCE_REWARD_MUTATION, {
8567
8453
  awaitRefetchQueries: true,
8568
8454
  refetchQueries: (mutationResult) => {
8569
8455
  const affiliateId = mutationResult?.data?.assignAffiliateResourceReward?.data?._id;
@@ -8574,7 +8460,7 @@ var useAssignAffiliateResourceReward = () => {
8574
8460
  return { assignAffiliateResourceReward, error, loading };
8575
8461
  };
8576
8462
  var useAssignAffiliateBonusReward = () => {
8577
- const [assignAffiliateBonusReward, { loading, error }] = (0, import_client78.useMutation)(ASSIGN_AFFILIATE_BONUS_REWARD_MUTATION, {
8463
+ const [assignAffiliateBonusReward, { loading, error }] = (0, import_client77.useMutation)(ASSIGN_AFFILIATE_BONUS_REWARD_MUTATION, {
8578
8464
  awaitRefetchQueries: true,
8579
8465
  refetchQueries: (mutationResult) => {
8580
8466
  const affiliateId = mutationResult?.data?.assignAffiliateBonusReward?.data?._id;
@@ -8590,6 +8476,120 @@ var import_client80 = require("@apollo/client");
8590
8476
 
8591
8477
  // src/graphql/mutations/coupon.ts
8592
8478
  var import_client79 = require("@apollo/client");
8479
+
8480
+ // src/graphql/queries/coupon.ts
8481
+ var import_client78 = require("@apollo/client");
8482
+ var COUPON_CODE_FIELDS_FRAGMENT = import_client78.gql`
8483
+ fragment CouponCodeFields on CouponCodeType {
8484
+ code
8485
+ qrCode {
8486
+ ...ResourceImageFields
8487
+ }
8488
+ }
8489
+ ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
8490
+ `;
8491
+ var COUPON_PARTICIPANT_USER_FIELDS_FRAGMENT = import_client78.gql`
8492
+ fragment CouponParticipantUserFields on CouponParticipantUserType {
8493
+ couponCollectedCount
8494
+ couponRedeemedAt
8495
+ createdAt
8496
+ updatedAt
8497
+ userId
8498
+ }
8499
+ `;
8500
+ var COUPON_OPTION_FIELDS_FRAGMENT = import_client78.gql`
8501
+ fragment CouponOptionFields on CouponOptionType {
8502
+ type
8503
+ buy
8504
+ get
8505
+ unit
8506
+ visits
8507
+ }
8508
+ `;
8509
+ var COUPON_REWARD_FIELDS_FRAGMENT = import_client78.gql`
8510
+ fragment CouponRewardFields on CouponRewardType {
8511
+ vendorId
8512
+ productId
8513
+ quantity
8514
+ unit
8515
+ }
8516
+ `;
8517
+ var COUPON_DATA_FIELDS_FRAGMENT = import_client78.gql`
8518
+ fragment CouponDataFields on CouponDataType {
8519
+ _id
8520
+ active
8521
+ couponCode {
8522
+ ...CouponCodeFields
8523
+ }
8524
+ couponDescription
8525
+ couponOption {
8526
+ ...CouponOptionFields
8527
+ }
8528
+ couponRewards {
8529
+ ...CouponRewardFields
8530
+ }
8531
+ createdAt
8532
+ endDate
8533
+ participantUsers {
8534
+ ...CouponParticipantUserFields
8535
+ }
8536
+ products {
8537
+ ...VendorProductsFields
8538
+ }
8539
+ resourceId
8540
+ resourceType
8541
+ startDate
8542
+ updatedAt
8543
+ }
8544
+ ${COUPON_CODE_FIELDS_FRAGMENT}
8545
+ ${COUPON_OPTION_FIELDS_FRAGMENT}
8546
+ ${COUPON_PARTICIPANT_USER_FIELDS_FRAGMENT}
8547
+ ${COUPON_REWARD_FIELDS_FRAGMENT}
8548
+ ${VENDOR_PRODUCTS_FIELDS_FRAGMENT}
8549
+ `;
8550
+ var COUPON = import_client78.gql`
8551
+ fragment CouponFields on CouponType {
8552
+ _id
8553
+ active
8554
+ couponData {
8555
+ ...CouponDataFields
8556
+ }
8557
+ createdAt
8558
+ deletedAt
8559
+ owner {
8560
+ ...OwnerFields
8561
+ }
8562
+ updatedAt
8563
+ }
8564
+ ${OWNER_FIELDS_FRAGMENT}
8565
+ ${COUPON_DATA_FIELDS_FRAGMENT}
8566
+ `;
8567
+ var GET_COUPONS = import_client78.gql`
8568
+ query getCoupons {
8569
+ coupons {
8570
+ ...CouponFields
8571
+ }
8572
+ }
8573
+ ${COUPON}
8574
+ `;
8575
+ var GET_COUPON = import_client78.gql`
8576
+ query getCoupon($_id: ID!) {
8577
+ coupon(_id: $_id) {
8578
+ ...CouponFields
8579
+ }
8580
+ }
8581
+ ${COUPON}
8582
+ `;
8583
+ var GET_RESOURCE_COUPONS = import_client78.gql`
8584
+ query getResourceCoupons($resourceId: ID!, $resourceType: ResourceTypeEnum!) {
8585
+ resourceCoupons(resourceId: $resourceId, resourceType: $resourceType) {
8586
+ ...CouponFields
8587
+ }
8588
+ }
8589
+ ${COUPON}
8590
+ `;
8591
+
8592
+ // src/graphql/mutations/coupon.ts
8593
8593
  var CREATE_COUPON_MUTATION = import_client79.gql`
8594
8594
  mutation createCoupon($input: CouponInputType!) {
8595
8595
  createCoupon(input: $input) {