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