@timardex/cluemart-shared 1.7.26 → 1.7.29

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.
Files changed (57) hide show
  1. package/dist/{ad-xMotoDzt.d.ts → ad-CQrQILqt.d.ts} +2 -2
  2. package/dist/{ad-BNumAVY7.d.mts → ad-DaMV_FdN.d.mts} +2 -2
  3. package/dist/{coupon-CqCTYMW1.d.ts → affiliate-BjNe7vrz.d.ts} +3 -47
  4. package/dist/{coupon-O__x-VRW.d.mts → affiliate-CRzUWMPv.d.mts} +3 -47
  5. package/dist/auth/index.cjs +118 -26
  6. package/dist/auth/index.cjs.map +1 -1
  7. package/dist/auth/index.d.mts +3 -3
  8. package/dist/auth/index.d.ts +3 -3
  9. package/dist/auth/index.mjs +1 -1
  10. package/dist/{chunk-336EZBSA.mjs → chunk-2KVUR42L.mjs} +9 -85
  11. package/dist/chunk-2KVUR42L.mjs.map +1 -0
  12. package/dist/{chunk-4G4OFSBZ.mjs → chunk-PACEDU64.mjs} +11 -6
  13. package/dist/{chunk-4G4OFSBZ.mjs.map → chunk-PACEDU64.mjs.map} +1 -1
  14. package/dist/{chunk-WPBHYGXW.mjs → chunk-PFY3LS6P.mjs} +120 -26
  15. package/dist/chunk-PFY3LS6P.mjs.map +1 -0
  16. package/dist/{contactUs-BJiiMuGX.d.ts → contactUs-BCkSecPW.d.ts} +1 -1
  17. package/dist/{contactUs-5t9rb3U4.d.mts → contactUs-ryrB_j4c.d.mts} +1 -1
  18. package/dist/formFields/index.d.mts +1 -1
  19. package/dist/formFields/index.d.ts +1 -1
  20. package/dist/formFields/index.mjs +1 -1
  21. package/dist/{global-B6VyEshc.d.ts → global-CF8hwvkc.d.ts} +51 -1
  22. package/dist/{global-BKGlrm75.d.mts → global-Ch11tfC6.d.mts} +51 -1
  23. package/dist/graphql/index.cjs +499 -485
  24. package/dist/graphql/index.cjs.map +1 -1
  25. package/dist/graphql/index.d.mts +5 -5
  26. package/dist/graphql/index.d.ts +5 -5
  27. package/dist/graphql/index.mjs +2 -2
  28. package/dist/hooks/index.cjs +353 -339
  29. package/dist/hooks/index.cjs.map +1 -1
  30. package/dist/hooks/index.d.mts +8 -8
  31. package/dist/hooks/index.d.ts +8 -8
  32. package/dist/hooks/index.mjs +4 -4
  33. package/dist/hooks/index.mjs.map +1 -1
  34. package/dist/index.cjs +510 -491
  35. package/dist/index.cjs.map +1 -1
  36. package/dist/index.d.mts +53 -46
  37. package/dist/index.d.ts +53 -46
  38. package/dist/index.mjs +326 -307
  39. package/dist/index.mjs.map +1 -1
  40. package/dist/map/index.d.mts +1 -1
  41. package/dist/map/index.d.ts +1 -1
  42. package/dist/{resourceActivities-HkorPbJU.d.ts → resourceActivities-2SjrHpuU.d.ts} +1 -1
  43. package/dist/{resourceActivities-l4Q014eT.d.mts → resourceActivities-isol6rr_.d.mts} +1 -1
  44. package/dist/sharing/index.d.mts +1 -1
  45. package/dist/sharing/index.d.ts +1 -1
  46. package/dist/types/index.d.mts +7 -7
  47. package/dist/types/index.d.ts +7 -7
  48. package/dist/{user-Cg80mIww.d.ts → user-BdvV_3eW.d.ts} +2 -1
  49. package/dist/{user-go-eqanx.d.mts → user-CFVqH8Xk.d.mts} +2 -1
  50. package/dist/utils/index.cjs +11 -6
  51. package/dist/utils/index.cjs.map +1 -1
  52. package/dist/utils/index.d.mts +5 -5
  53. package/dist/utils/index.d.ts +5 -5
  54. package/dist/utils/index.mjs +3 -3
  55. package/package.json +1 -1
  56. package/dist/chunk-336EZBSA.mjs.map +0 -1
  57. package/dist/chunk-WPBHYGXW.mjs.map +0 -1
package/dist/index.cjs CHANGED
@@ -176,7 +176,7 @@ __export(index_exports, {
176
176
  computeDailyClueState: () => computeDailyClueState,
177
177
  contactUsFields: () => contactUsFields,
178
178
  createAffiliateReward: () => createAffiliateReward,
179
- createCouponTypeOption: () => createCouponTypeOption,
179
+ createCouponDefaults: () => createCouponDefaults,
180
180
  darkColors: () => darkColors,
181
181
  dateFormat: () => dateFormat,
182
182
  emailField: () => emailField,
@@ -3038,14 +3038,16 @@ function getErrorMessage(error, fallback = DEFAULT_USER_FACING_ERROR) {
3038
3038
  }
3039
3039
 
3040
3040
  // src/utils/coupon.ts
3041
- function createCouponTypeOption({
3041
+ function createCouponDefaults({
3042
3042
  couponCode,
3043
3043
  couponDescription,
3044
3044
  couponOption,
3045
3045
  createdAt,
3046
3046
  endDate,
3047
- participantProduct,
3048
- startDate
3047
+ participantProductId,
3048
+ startDate,
3049
+ resourceId,
3050
+ resourceType
3049
3051
  }) {
3050
3052
  return {
3051
3053
  active: true,
@@ -3054,7 +3056,10 @@ function createCouponTypeOption({
3054
3056
  couponOption,
3055
3057
  createdAt,
3056
3058
  endDate,
3057
- participantProduct,
3059
+ participantProductId,
3060
+ participantUsers: null,
3061
+ resourceId,
3062
+ resourceType,
3058
3063
  startDate,
3059
3064
  updatedAt: null
3060
3065
  };
@@ -3922,6 +3927,7 @@ var USER_FIELDS_FRAGMENT = import_client.gql`
3922
3927
  avatar {
3923
3928
  ...ResourceImageFields
3924
3929
  }
3930
+ coupon
3925
3931
  createdAt
3926
3932
  deletedAt
3927
3933
  email
@@ -4272,8 +4278,95 @@ var GET_EVENT_INFO = import_client2.gql`
4272
4278
  `;
4273
4279
 
4274
4280
  // src/graphql/queries/vendor.ts
4281
+ var import_client4 = require("@apollo/client");
4282
+
4283
+ // src/graphql/queries/coupon.ts
4275
4284
  var import_client3 = require("@apollo/client");
4276
- var VENDOR_DATETIME_FIELDS_FRAGMENT = import_client3.gql`
4285
+ var PRODUCT_COUPON_FIELDS_FRAGMENT = import_client3.gql`
4286
+ fragment ProductCouponFields on ProductCouponType {
4287
+ couponDocumentId
4288
+ couponId
4289
+ }
4290
+ `;
4291
+ var COUPON_CODE_FIELDS_FRAGMENT = import_client3.gql`
4292
+ fragment CouponCodeFields on CouponCodeType {
4293
+ code
4294
+ qrCode {
4295
+ ...ResourceImageFields
4296
+ }
4297
+ }
4298
+ ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
4299
+ `;
4300
+ var COUPON_PARTICIPANT_USER_FIELDS_FRAGMENT = import_client3.gql`
4301
+ fragment CouponParticipantUserFields on CouponParticipantUserType {
4302
+ couponCollectedCount
4303
+ couponRedeemedAt
4304
+ createdAt
4305
+ updatedAt
4306
+ userId
4307
+ }
4308
+ `;
4309
+ var COUPON_DATA_FIELDS_FRAGMENT = import_client3.gql`
4310
+ fragment CouponDataFields on CouponDataType {
4311
+ _id
4312
+ active
4313
+ couponCode {
4314
+ ...CouponCodeFields
4315
+ }
4316
+ couponDescription
4317
+ couponOption
4318
+ createdAt
4319
+ endDate
4320
+ participantProductId
4321
+ participantUsers {
4322
+ ...CouponParticipantUserFields
4323
+ }
4324
+ resourceId
4325
+ resourceType
4326
+ startDate
4327
+ updatedAt
4328
+ }
4329
+ ${COUPON_CODE_FIELDS_FRAGMENT}
4330
+ ${COUPON_PARTICIPANT_USER_FIELDS_FRAGMENT}
4331
+ `;
4332
+ var COUPON = import_client3.gql`
4333
+ fragment CouponFields on CouponType {
4334
+ _id
4335
+ active
4336
+ couponData {
4337
+ ...CouponDataFields
4338
+ }
4339
+ createdAt
4340
+ deletedAt
4341
+ owner {
4342
+ ...OwnerFields
4343
+ }
4344
+ updatedAt
4345
+ }
4346
+ ${OWNER_FIELDS_FRAGMENT}
4347
+ ${COUPON_DATA_FIELDS_FRAGMENT}
4348
+ ${COUPON_CODE_FIELDS_FRAGMENT}
4349
+ ${COUPON_PARTICIPANT_USER_FIELDS_FRAGMENT}
4350
+ `;
4351
+ var GET_COUPONS = import_client3.gql`
4352
+ query getCoupons {
4353
+ coupons {
4354
+ ...CouponFields
4355
+ }
4356
+ }
4357
+ ${COUPON}
4358
+ `;
4359
+ var GET_COUPON = import_client3.gql`
4360
+ query getCoupon($_id: ID!) {
4361
+ coupon(_id: $_id) {
4362
+ ...CouponFields
4363
+ }
4364
+ }
4365
+ ${COUPON}
4366
+ `;
4367
+
4368
+ // src/graphql/queries/vendor.ts
4369
+ var VENDOR_DATETIME_FIELDS_FRAGMENT = import_client4.gql`
4277
4370
  fragment VendorDateTimeFields on VendorDateTimeType {
4278
4371
  dateStatus
4279
4372
  endDate
@@ -4282,9 +4375,12 @@ var VENDOR_DATETIME_FIELDS_FRAGMENT = import_client3.gql`
4282
4375
  startTime
4283
4376
  }
4284
4377
  `;
4285
- var VENDOR_PRODUCT_LIST_FIELDS_FRAGMENT = import_client3.gql`
4378
+ var VENDOR_PRODUCT_LIST_FIELDS_FRAGMENT = import_client4.gql`
4286
4379
  fragment VendorProductListFields on VendorProductListType {
4287
4380
  _id
4381
+ coupon {
4382
+ ...ProductCouponFields
4383
+ }
4288
4384
  createdAt
4289
4385
  description
4290
4386
  name
@@ -4293,8 +4389,9 @@ var VENDOR_PRODUCT_LIST_FIELDS_FRAGMENT = import_client3.gql`
4293
4389
  productGroups
4294
4390
  updatedAt
4295
4391
  }
4392
+ ${PRODUCT_COUPON_FIELDS_FRAGMENT}
4296
4393
  `;
4297
- var VENDOR = import_client3.gql`
4394
+ var VENDOR = import_client4.gql`
4298
4395
  fragment VendorFields on VendorType {
4299
4396
  _id
4300
4397
  active
@@ -4395,13 +4492,13 @@ var VENDOR = import_client3.gql`
4395
4492
  ${RELATED_POST_FIELDS_FRAGMENT}
4396
4493
  ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
4397
4494
  `;
4398
- var VENDOR_ATTRIBUTES_FRAGMENT = import_client3.gql`
4495
+ var VENDOR_ATTRIBUTES_FRAGMENT = import_client4.gql`
4399
4496
  fragment VendorAttributesFields on VendorAttributesType {
4400
4497
  details
4401
4498
  isRequired
4402
4499
  }
4403
4500
  `;
4404
- var VENDOR_INFO = import_client3.gql`
4501
+ var VENDOR_INFO = import_client4.gql`
4405
4502
  fragment VendorInfoFields on VendorInfoType {
4406
4503
  _id
4407
4504
  compliance {
@@ -4442,7 +4539,7 @@ var VENDOR_INFO = import_client3.gql`
4442
4539
  ${VENDOR_ATTRIBUTES_FRAGMENT}
4443
4540
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
4444
4541
  `;
4445
- var UNREGISTERED_VENDOR_INVITATION_FRAGMENT = import_client3.gql`
4542
+ var UNREGISTERED_VENDOR_INVITATION_FRAGMENT = import_client4.gql`
4446
4543
  fragment UnregisteredVendorInvitationFields on UnregisteredVendorInvitationType {
4447
4544
  dateTime {
4448
4545
  ...DateTimeFields
@@ -4451,7 +4548,7 @@ var UNREGISTERED_VENDOR_INVITATION_FRAGMENT = import_client3.gql`
4451
4548
  }
4452
4549
  ${DATETIME_FIELDS_FRAGMENT}
4453
4550
  `;
4454
- var UNREGISTERED_VENDOR = import_client3.gql`
4551
+ var UNREGISTERED_VENDOR = import_client4.gql`
4455
4552
  fragment UnregisteredVendorFields on UnregisteredVendorType {
4456
4553
  _id
4457
4554
  active
@@ -4471,7 +4568,7 @@ var UNREGISTERED_VENDOR = import_client3.gql`
4471
4568
  }
4472
4569
  ${UNREGISTERED_VENDOR_INVITATION_FRAGMENT}
4473
4570
  `;
4474
- var GET_VENDORS = import_client3.gql`
4571
+ var GET_VENDORS = import_client4.gql`
4475
4572
  query getVendors {
4476
4573
  vendors {
4477
4574
  ...VendorFields
@@ -4479,7 +4576,7 @@ var GET_VENDORS = import_client3.gql`
4479
4576
  }
4480
4577
  ${VENDOR}
4481
4578
  `;
4482
- var GET_VENDOR = import_client3.gql`
4579
+ var GET_VENDOR = import_client4.gql`
4483
4580
  query getVendor($_id: ID!) {
4484
4581
  vendor(_id: $_id) {
4485
4582
  ...VendorFields
@@ -4487,7 +4584,7 @@ var GET_VENDOR = import_client3.gql`
4487
4584
  }
4488
4585
  ${VENDOR}
4489
4586
  `;
4490
- var GET_VENDORS_BY_REGION = import_client3.gql`
4587
+ var GET_VENDORS_BY_REGION = import_client4.gql`
4491
4588
  query getVendorsByRegion(
4492
4589
  $region: String!
4493
4590
  $options: ResourcesByRegionOptions
@@ -4498,7 +4595,7 @@ var GET_VENDORS_BY_REGION = import_client3.gql`
4498
4595
  }
4499
4596
  ${VENDOR}
4500
4597
  `;
4501
- var SEARCH_VENDORS = import_client3.gql`
4598
+ var SEARCH_VENDORS = import_client4.gql`
4502
4599
  query searchVendors($search: String!, $region: String!) {
4503
4600
  vendorSearch(search: $search, region: $region) {
4504
4601
  ...VendorFields
@@ -4506,7 +4603,7 @@ var SEARCH_VENDORS = import_client3.gql`
4506
4603
  }
4507
4604
  ${VENDOR}
4508
4605
  `;
4509
- var GET_VENDOR_INFO = import_client3.gql`
4606
+ var GET_VENDOR_INFO = import_client4.gql`
4510
4607
  query getVendorInfo($vendorId: ID!) {
4511
4608
  vendorInfo(vendorId: $vendorId) {
4512
4609
  ...VendorInfoFields
@@ -4514,7 +4611,7 @@ var GET_VENDOR_INFO = import_client3.gql`
4514
4611
  }
4515
4612
  ${VENDOR_INFO}
4516
4613
  `;
4517
- var GET_UNREGISTERED_VENDORS = import_client3.gql`
4614
+ var GET_UNREGISTERED_VENDORS = import_client4.gql`
4518
4615
  query getUnregisteredVendors {
4519
4616
  unregisteredVendors {
4520
4617
  ...UnregisteredVendorFields
@@ -4522,7 +4619,7 @@ var GET_UNREGISTERED_VENDORS = import_client3.gql`
4522
4619
  }
4523
4620
  ${UNREGISTERED_VENDOR}
4524
4621
  `;
4525
- var GET_UNREGISTERED_VENDORS_BY_INVITER_ID = import_client3.gql`
4622
+ var GET_UNREGISTERED_VENDORS_BY_INVITER_ID = import_client4.gql`
4526
4623
  query getUnregisteredVendorsByInviterId($inviterId: ID!) {
4527
4624
  unregisteredVendorsByInviterId(inviterId: $inviterId) {
4528
4625
  ...UnregisteredVendorFields
@@ -4530,7 +4627,7 @@ var GET_UNREGISTERED_VENDORS_BY_INVITER_ID = import_client3.gql`
4530
4627
  }
4531
4628
  ${UNREGISTERED_VENDOR}
4532
4629
  `;
4533
- var GET_UNREGISTERED_VENDOR = import_client3.gql`
4630
+ var GET_UNREGISTERED_VENDOR = import_client4.gql`
4534
4631
  query getUnregisteredVendor($_id: ID!) {
4535
4632
  unregisteredVendor(_id: $_id) {
4536
4633
  ...UnregisteredVendorFields
@@ -4538,7 +4635,7 @@ var GET_UNREGISTERED_VENDOR = import_client3.gql`
4538
4635
  }
4539
4636
  ${UNREGISTERED_VENDOR}
4540
4637
  `;
4541
- var MY_PENDING_VENDOR_CLAIM = import_client3.gql`
4638
+ var MY_PENDING_VENDOR_CLAIM = import_client4.gql`
4542
4639
  query myPendingVendorClaim {
4543
4640
  myPendingVendorClaim {
4544
4641
  _id
@@ -4549,8 +4646,8 @@ var MY_PENDING_VENDOR_CLAIM = import_client3.gql`
4549
4646
  `;
4550
4647
 
4551
4648
  // src/graphql/mutations/vendor.ts
4552
- var import_client4 = require("@apollo/client");
4553
- var CREATE_VENDOR_MUTATION = import_client4.gql`
4649
+ var import_client5 = require("@apollo/client");
4650
+ var CREATE_VENDOR_MUTATION = import_client5.gql`
4554
4651
  mutation createVendor($input: VendorInputType!) {
4555
4652
  createVendor(input: $input) {
4556
4653
  data {
@@ -4561,7 +4658,7 @@ var CREATE_VENDOR_MUTATION = import_client4.gql`
4561
4658
  }
4562
4659
  ${VENDOR}
4563
4660
  `;
4564
- var UPDATE_VENDOR_MUTATION = import_client4.gql`
4661
+ var UPDATE_VENDOR_MUTATION = import_client5.gql`
4565
4662
  mutation updateVendor($_id: ID!, $input: VendorInputType!) {
4566
4663
  updateVendor(_id: $_id, input: $input) {
4567
4664
  data {
@@ -4572,7 +4669,7 @@ var UPDATE_VENDOR_MUTATION = import_client4.gql`
4572
4669
  }
4573
4670
  ${VENDOR}
4574
4671
  `;
4575
- var DELETE_VENDOR_MUTATION = import_client4.gql`
4672
+ var DELETE_VENDOR_MUTATION = import_client5.gql`
4576
4673
  mutation deleteVendor($_id: ID!) {
4577
4674
  deleteVendor(_id: $_id) {
4578
4675
  data
@@ -4580,7 +4677,7 @@ var DELETE_VENDOR_MUTATION = import_client4.gql`
4580
4677
  }
4581
4678
  }
4582
4679
  `;
4583
- var CREATE_VENDOR_INFO_MUTATION = import_client4.gql`
4680
+ var CREATE_VENDOR_INFO_MUTATION = import_client5.gql`
4584
4681
  mutation createVendorInfo($input: VendorInfoInputType!) {
4585
4682
  createVendorInfo(input: $input) {
4586
4683
  data {
@@ -4591,7 +4688,7 @@ var CREATE_VENDOR_INFO_MUTATION = import_client4.gql`
4591
4688
  }
4592
4689
  ${VENDOR_INFO}
4593
4690
  `;
4594
- var UPDATE_VENDOR_INFO_MUTATION = import_client4.gql`
4691
+ var UPDATE_VENDOR_INFO_MUTATION = import_client5.gql`
4595
4692
  mutation updateVendorInfo($_id: ID!, $input: VendorInfoInputType!) {
4596
4693
  updateVendorInfo(_id: $_id, input: $input) {
4597
4694
  data {
@@ -4602,7 +4699,7 @@ var UPDATE_VENDOR_INFO_MUTATION = import_client4.gql`
4602
4699
  }
4603
4700
  ${VENDOR_INFO}
4604
4701
  `;
4605
- var CREATE_UNREGISTERED_VENDOR_MUTATION = import_client4.gql`
4702
+ var CREATE_UNREGISTERED_VENDOR_MUTATION = import_client5.gql`
4606
4703
  mutation createUnregisteredVendor($input: UnregisteredVendorInputType!) {
4607
4704
  createUnregisteredVendor(input: $input) {
4608
4705
  data {
@@ -4613,7 +4710,7 @@ var CREATE_UNREGISTERED_VENDOR_MUTATION = import_client4.gql`
4613
4710
  }
4614
4711
  ${UNREGISTERED_VENDOR}
4615
4712
  `;
4616
- var UPDATE_UNREGISTERED_VENDOR_MUTATION = import_client4.gql`
4713
+ var UPDATE_UNREGISTERED_VENDOR_MUTATION = import_client5.gql`
4617
4714
  mutation updateUnregisteredVendor(
4618
4715
  $_id: ID!
4619
4716
  $input: UnregisteredVendorInputType!
@@ -4627,7 +4724,7 @@ var UPDATE_UNREGISTERED_VENDOR_MUTATION = import_client4.gql`
4627
4724
  }
4628
4725
  ${UNREGISTERED_VENDOR}
4629
4726
  `;
4630
- var DELETE_UNREGISTERED_VENDOR_MUTATION = import_client4.gql`
4727
+ var DELETE_UNREGISTERED_VENDOR_MUTATION = import_client5.gql`
4631
4728
  mutation deleteUnregisteredVendor($_id: ID!) {
4632
4729
  deleteUnregisteredVendor(_id: $_id) {
4633
4730
  data
@@ -4635,7 +4732,7 @@ var DELETE_UNREGISTERED_VENDOR_MUTATION = import_client4.gql`
4635
4732
  }
4636
4733
  }
4637
4734
  `;
4638
- var UNLINK_UNREGISTERED_VENDOR_BY_INVITER_ID_MUTATION = import_client4.gql`
4735
+ var UNLINK_UNREGISTERED_VENDOR_BY_INVITER_ID_MUTATION = import_client5.gql`
4639
4736
  mutation unlinkUnregisteredVendorByInviterId($_id: ID!, $inviterId: ID!) {
4640
4737
  unlinkUnregisteredVendorByInviterId(_id: $_id, inviterId: $inviterId) {
4641
4738
  data
@@ -4643,7 +4740,7 @@ var UNLINK_UNREGISTERED_VENDOR_BY_INVITER_ID_MUTATION = import_client4.gql`
4643
4740
  }
4644
4741
  }
4645
4742
  `;
4646
- var ACTIVATE_VENDOR_CLAIM_MUTATION = import_client4.gql`
4743
+ var ACTIVATE_VENDOR_CLAIM_MUTATION = import_client5.gql`
4647
4744
  mutation activateVendorClaim($token: String!) {
4648
4745
  activateVendorClaim(token: $token) {
4649
4746
  valid
@@ -4653,8 +4750,8 @@ var ACTIVATE_VENDOR_CLAIM_MUTATION = import_client4.gql`
4653
4750
  `;
4654
4751
 
4655
4752
  // src/graphql/queries/partner.ts
4656
- var import_client5 = require("@apollo/client");
4657
- var PARTNER = import_client5.gql`
4753
+ var import_client6 = require("@apollo/client");
4754
+ var PARTNER = import_client6.gql`
4658
4755
  fragment PartnerFields on PartnerType {
4659
4756
  _id
4660
4757
  active
@@ -4715,7 +4812,7 @@ var PARTNER = import_client5.gql`
4715
4812
  ${RELATED_POST_FIELDS_FRAGMENT}
4716
4813
  ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
4717
4814
  `;
4718
- var GET_PARTNERS = import_client5.gql`
4815
+ var GET_PARTNERS = import_client6.gql`
4719
4816
  query getPartners {
4720
4817
  partners {
4721
4818
  ...PartnerFields
@@ -4723,7 +4820,7 @@ var GET_PARTNERS = import_client5.gql`
4723
4820
  }
4724
4821
  ${PARTNER}
4725
4822
  `;
4726
- var GET_PARTNER = import_client5.gql`
4823
+ var GET_PARTNER = import_client6.gql`
4727
4824
  query getPartner($_id: ID!) {
4728
4825
  partner(_id: $_id) {
4729
4826
  ...PartnerFields
@@ -4731,7 +4828,7 @@ var GET_PARTNER = import_client5.gql`
4731
4828
  }
4732
4829
  ${PARTNER}
4733
4830
  `;
4734
- var GET_PARTNERS_BY_REGION = import_client5.gql`
4831
+ var GET_PARTNERS_BY_REGION = import_client6.gql`
4735
4832
  query getPartnersByRegion(
4736
4833
  $region: String!
4737
4834
  $options: ResourcesByRegionOptions
@@ -4742,7 +4839,7 @@ var GET_PARTNERS_BY_REGION = import_client5.gql`
4742
4839
  }
4743
4840
  ${PARTNER}
4744
4841
  `;
4745
- var SEARCH_PARTNERS = import_client5.gql`
4842
+ var SEARCH_PARTNERS = import_client6.gql`
4746
4843
  query searchPartners($search: String!, $region: String!) {
4747
4844
  partnersSearch(search: $search, region: $region) {
4748
4845
  ...PartnerFields
@@ -4752,17 +4849,17 @@ var SEARCH_PARTNERS = import_client5.gql`
4752
4849
  `;
4753
4850
 
4754
4851
  // src/graphql/queries/post.ts
4755
- var import_client8 = require("@apollo/client");
4852
+ var import_client9 = require("@apollo/client");
4756
4853
 
4757
4854
  // src/graphql/queries/game/dailyClue.ts
4758
- var import_client6 = require("@apollo/client");
4759
- var GAME_DATE_FIELDS_FRAGMENT = import_client6.gql`
4855
+ var import_client7 = require("@apollo/client");
4856
+ var GAME_DATE_FIELDS_FRAGMENT = import_client7.gql`
4760
4857
  fragment GameDateFields on GameDateType {
4761
4858
  startDate
4762
4859
  endDate
4763
4860
  }
4764
4861
  `;
4765
- var DAILY_CLUE_BASE_GAME_FIELDS_FRAGMENT = import_client6.gql`
4862
+ var DAILY_CLUE_BASE_GAME_FIELDS_FRAGMENT = import_client7.gql`
4766
4863
  fragment DailyClueBaseGameFields on DailyClueBaseGameType {
4767
4864
  gameDate {
4768
4865
  ...GameDateFields
@@ -4771,7 +4868,7 @@ var DAILY_CLUE_BASE_GAME_FIELDS_FRAGMENT = import_client6.gql`
4771
4868
  }
4772
4869
  ${GAME_DATE_FIELDS_FRAGMENT}
4773
4870
  `;
4774
- var DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT = import_client6.gql`
4871
+ var DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT = import_client7.gql`
4775
4872
  fragment DailyClueGameDataFields on DailyClueGameDataType {
4776
4873
  gameFields {
4777
4874
  ...DailyClueBaseGameFields
@@ -4791,15 +4888,15 @@ var DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT = import_client6.gql`
4791
4888
  `;
4792
4889
 
4793
4890
  // src/graphql/queries/game/puzzleGame.ts
4794
- var import_client7 = require("@apollo/client");
4795
- var PUZZLE_ANSWER_FIELDS_FRAGMENT = import_client7.gql`
4891
+ var import_client8 = require("@apollo/client");
4892
+ var PUZZLE_ANSWER_FIELDS_FRAGMENT = import_client8.gql`
4796
4893
  fragment PuzzleAnswerFields on PuzzleAnswerType {
4797
4894
  answer
4798
4895
  answerId
4799
4896
  correct
4800
4897
  }
4801
4898
  `;
4802
- var PUZZLE_QUESTION_FIELDS_FRAGMENT = import_client7.gql`
4899
+ var PUZZLE_QUESTION_FIELDS_FRAGMENT = import_client8.gql`
4803
4900
  fragment PuzzleQuestionFields on PuzzleQuestionType {
4804
4901
  answers {
4805
4902
  ...PuzzleAnswerFields
@@ -4809,13 +4906,13 @@ var PUZZLE_QUESTION_FIELDS_FRAGMENT = import_client7.gql`
4809
4906
  }
4810
4907
  ${PUZZLE_ANSWER_FIELDS_FRAGMENT}
4811
4908
  `;
4812
- var PUZZLE_ANSWERED_QUESTION_FIELDS_FRAGMENT = import_client7.gql`
4909
+ var PUZZLE_ANSWERED_QUESTION_FIELDS_FRAGMENT = import_client8.gql`
4813
4910
  fragment PuzzleAnsweredQuestionFields on PuzzleAnsweredQuestionType {
4814
4911
  questionId
4815
4912
  selectedAnswerId
4816
4913
  }
4817
4914
  `;
4818
- var PUZZLE_BASE_GAME_FIELDS_FRAGMENT = import_client7.gql`
4915
+ var PUZZLE_BASE_GAME_FIELDS_FRAGMENT = import_client8.gql`
4819
4916
  fragment PuzzleBaseGameFields on PuzzleBaseGameType {
4820
4917
  questions {
4821
4918
  ...PuzzleQuestionFields
@@ -4823,7 +4920,7 @@ var PUZZLE_BASE_GAME_FIELDS_FRAGMENT = import_client7.gql`
4823
4920
  }
4824
4921
  ${PUZZLE_QUESTION_FIELDS_FRAGMENT}
4825
4922
  `;
4826
- var PUZZLE_GAME_DATA_FIELDS_FRAGMENT = import_client7.gql`
4923
+ var PUZZLE_GAME_DATA_FIELDS_FRAGMENT = import_client8.gql`
4827
4924
  fragment PuzzleGameDataFields on PuzzleGameDataType {
4828
4925
  gameFields {
4829
4926
  ...PuzzleBaseGameFields
@@ -4839,7 +4936,7 @@ var PUZZLE_GAME_DATA_FIELDS_FRAGMENT = import_client7.gql`
4839
4936
  `;
4840
4937
 
4841
4938
  // src/graphql/queries/post.ts
4842
- var BASE_GAME_FIELDS_FRAGMENT = import_client8.gql`
4939
+ var BASE_GAME_FIELDS_FRAGMENT = import_client9.gql`
4843
4940
  fragment BaseGameFields on BaseGameType {
4844
4941
  gameTypeId
4845
4942
  gameTitle
@@ -4857,7 +4954,7 @@ var BASE_GAME_FIELDS_FRAGMENT = import_client8.gql`
4857
4954
  ${DAILY_CLUE_BASE_GAME_FIELDS_FRAGMENT}
4858
4955
  ${PUZZLE_BASE_GAME_FIELDS_FRAGMENT}
4859
4956
  `;
4860
- var POST_CONTENT_DATA_FIELDS_FRAGMENT = import_client8.gql`
4957
+ var POST_CONTENT_DATA_FIELDS_FRAGMENT = import_client9.gql`
4861
4958
  fragment PostContentDataFields on PostContentData {
4862
4959
  game {
4863
4960
  ...BaseGameFields
@@ -4883,7 +4980,7 @@ var POST_CONTENT_DATA_FIELDS_FRAGMENT = import_client8.gql`
4883
4980
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
4884
4981
  ${BASE_GAME_FIELDS_FRAGMENT}
4885
4982
  `;
4886
- var POST_CONTENT_FIELDS_FRAGMENT = import_client8.gql`
4983
+ var POST_CONTENT_FIELDS_FRAGMENT = import_client9.gql`
4887
4984
  fragment PostContentFields on PostContentType {
4888
4985
  contentData {
4889
4986
  ...PostContentDataFields
@@ -4893,7 +4990,7 @@ var POST_CONTENT_FIELDS_FRAGMENT = import_client8.gql`
4893
4990
  }
4894
4991
  ${POST_CONTENT_DATA_FIELDS_FRAGMENT}
4895
4992
  `;
4896
- var POST_RESOURCE_FIELDS_FRAGMENT = import_client8.gql`
4993
+ var POST_RESOURCE_FIELDS_FRAGMENT = import_client9.gql`
4897
4994
  fragment PostResourceFields on PostResourceType {
4898
4995
  resourceId
4899
4996
  resourceSlug
@@ -4901,7 +4998,7 @@ var POST_RESOURCE_FIELDS_FRAGMENT = import_client8.gql`
4901
4998
  resourceType
4902
4999
  }
4903
5000
  `;
4904
- var POST_FIELDS_FRAGMENT = import_client8.gql`
5001
+ var POST_FIELDS_FRAGMENT = import_client9.gql`
4905
5002
  fragment PostFields on PostType {
4906
5003
  _id
4907
5004
  active
@@ -4932,7 +5029,7 @@ var POST_FIELDS_FRAGMENT = import_client8.gql`
4932
5029
  ${POST_RESOURCE_FIELDS_FRAGMENT}
4933
5030
  ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
4934
5031
  `;
4935
- var GET_POSTS = import_client8.gql`
5032
+ var GET_POSTS = import_client9.gql`
4936
5033
  query getPosts {
4937
5034
  posts {
4938
5035
  ...PostFields
@@ -4940,7 +5037,7 @@ var GET_POSTS = import_client8.gql`
4940
5037
  }
4941
5038
  ${POST_FIELDS_FRAGMENT}
4942
5039
  `;
4943
- var GET_POST = import_client8.gql`
5040
+ var GET_POST = import_client9.gql`
4944
5041
  query getPost($_id: ID!) {
4945
5042
  post(_id: $_id) {
4946
5043
  ...PostFields
@@ -4948,7 +5045,7 @@ var GET_POST = import_client8.gql`
4948
5045
  }
4949
5046
  ${POST_FIELDS_FRAGMENT}
4950
5047
  `;
4951
- var GET_POSTS_BY_TYPE = import_client8.gql`
5048
+ var GET_POSTS_BY_TYPE = import_client9.gql`
4952
5049
  query getPostsByType($postType: PostTypeEnum!) {
4953
5050
  postsByType(postType: $postType) {
4954
5051
  ...PostFields
@@ -4958,29 +5055,29 @@ var GET_POSTS_BY_TYPE = import_client8.gql`
4958
5055
  `;
4959
5056
 
4960
5057
  // src/graphql/queries/shareSlug.ts
4961
- var import_client9 = require("@apollo/client");
4962
- var GET_EVENT_BY_SLUG = import_client9.gql`
5058
+ var import_client10 = require("@apollo/client");
5059
+ var GET_EVENT_BY_SLUG = import_client10.gql`
4963
5060
  query getEventBySlug($slug: String!) {
4964
5061
  eventBySlug(slug: $slug) {
4965
5062
  _id
4966
5063
  }
4967
5064
  }
4968
5065
  `;
4969
- var GET_VENDOR_BY_SLUG = import_client9.gql`
5066
+ var GET_VENDOR_BY_SLUG = import_client10.gql`
4970
5067
  query getVendorBySlug($slug: String!) {
4971
5068
  vendorBySlug(slug: $slug) {
4972
5069
  _id
4973
5070
  }
4974
5071
  }
4975
5072
  `;
4976
- var GET_PARTNER_BY_SLUG = import_client9.gql`
5073
+ var GET_PARTNER_BY_SLUG = import_client10.gql`
4977
5074
  query getPartnerBySlug($slug: String!) {
4978
5075
  partnerBySlug(slug: $slug) {
4979
5076
  _id
4980
5077
  }
4981
5078
  }
4982
5079
  `;
4983
- var GET_POST_BY_SLUG = import_client9.gql`
5080
+ var GET_POST_BY_SLUG = import_client10.gql`
4984
5081
  query getPostBySlug($slug: String!, $postType: PostTypeEnum!) {
4985
5082
  postBySlug(slug: $slug, postType: $postType) {
4986
5083
  _id
@@ -4989,8 +5086,8 @@ var GET_POST_BY_SLUG = import_client9.gql`
4989
5086
  `;
4990
5087
 
4991
5088
  // src/graphql/queries/relation.ts
4992
- var import_client10 = require("@apollo/client");
4993
- var RELATION_FIELDS_FRAGMENT = import_client10.gql`
5089
+ var import_client11 = require("@apollo/client");
5090
+ var RELATION_FIELDS_FRAGMENT = import_client11.gql`
4994
5091
  fragment RelationFields on RelationType {
4995
5092
  _id
4996
5093
  active
@@ -5007,7 +5104,7 @@ var RELATION_FIELDS_FRAGMENT = import_client10.gql`
5007
5104
  }
5008
5105
  ${RELATION_DATES_FRAGMENT}
5009
5106
  `;
5010
- var GET_RELATION = import_client10.gql`
5107
+ var GET_RELATION = import_client11.gql`
5011
5108
  query getRelation($_id: ID!) {
5012
5109
  relation(_id: $_id) {
5013
5110
  ...RelationFields
@@ -5015,7 +5112,7 @@ var GET_RELATION = import_client10.gql`
5015
5112
  }
5016
5113
  ${RELATION_FIELDS_FRAGMENT}
5017
5114
  `;
5018
- var GET_RELATION_BY_EVENT_AND_VENDOR = import_client10.gql`
5115
+ var GET_RELATION_BY_EVENT_AND_VENDOR = import_client11.gql`
5019
5116
  query getRelationByEventAndVendor($eventId: ID!, $vendorId: ID!) {
5020
5117
  relationByEventAndVendor(eventId: $eventId, vendorId: $vendorId) {
5021
5118
  ...RelationFields
@@ -5023,7 +5120,7 @@ var GET_RELATION_BY_EVENT_AND_VENDOR = import_client10.gql`
5023
5120
  }
5024
5121
  ${RELATION_FIELDS_FRAGMENT}
5025
5122
  `;
5026
- var GET_EVENT_RELATIONS = import_client10.gql`
5123
+ var GET_EVENT_RELATIONS = import_client11.gql`
5027
5124
  query getEventRelations($eventId: ID!) {
5028
5125
  eventRelations(eventId: $eventId) {
5029
5126
  ...RelationFields
@@ -5031,7 +5128,7 @@ var GET_EVENT_RELATIONS = import_client10.gql`
5031
5128
  }
5032
5129
  ${RELATION_FIELDS_FRAGMENT}
5033
5130
  `;
5034
- var GET_VENDOR_RELATIONS = import_client10.gql`
5131
+ var GET_VENDOR_RELATIONS = import_client11.gql`
5035
5132
  query getVendorRelations($vendorId: ID!) {
5036
5133
  vendorRelations(vendorId: $vendorId) {
5037
5134
  ...RelationFields
@@ -5039,7 +5136,7 @@ var GET_VENDOR_RELATIONS = import_client10.gql`
5039
5136
  }
5040
5137
  ${RELATION_FIELDS_FRAGMENT}
5041
5138
  `;
5042
- var GET_RESOURCE_CONNECTIONS = import_client10.gql`
5139
+ var GET_RESOURCE_CONNECTIONS = import_client11.gql`
5043
5140
  query getResourceConnections(
5044
5141
  $resourceId: ID!
5045
5142
  $resourceType: ResourceTypeEnum!
@@ -5064,11 +5161,11 @@ function toGraphqlQueryString(query) {
5064
5161
  }
5065
5162
 
5066
5163
  // src/graphql/hooks/admin/hooksMutation.ts
5067
- var import_client12 = require("@apollo/client");
5164
+ var import_client13 = require("@apollo/client");
5068
5165
 
5069
5166
  // src/graphql/mutations/admin.ts
5070
- var import_client11 = require("@apollo/client");
5071
- var ADMIN_UPDATE_RESOURCE_TYPE_MUTATION = import_client11.gql`
5167
+ var import_client12 = require("@apollo/client");
5168
+ var ADMIN_UPDATE_RESOURCE_TYPE_MUTATION = import_client12.gql`
5072
5169
  mutation adminUpdateResourceType($input: AdminUpdateResourceInputType!) {
5073
5170
  adminUpdateResourceType(input: $input) {
5074
5171
  data {
@@ -5080,7 +5177,7 @@ var ADMIN_UPDATE_RESOURCE_TYPE_MUTATION = import_client11.gql`
5080
5177
  }
5081
5178
  }
5082
5179
  `;
5083
- var ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION = import_client11.gql`
5180
+ var ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION = import_client12.gql`
5084
5181
  mutation adminResendUserVerificationEmail($userId: ID!) {
5085
5182
  adminResendUserVerificationEmail(userId: $userId) {
5086
5183
  data
@@ -5088,7 +5185,7 @@ var ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION = import_client11.gql`
5088
5185
  }
5089
5186
  }
5090
5187
  `;
5091
- var ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION = import_client11.gql`
5188
+ var ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION = import_client12.gql`
5092
5189
  mutation adminPermanentlyDeleteResource(
5093
5190
  $resourceId: ID!
5094
5191
  $resourceType: ResourceTypeEnum!
@@ -5105,7 +5202,7 @@ var ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION = import_client11.gql`
5105
5202
 
5106
5203
  // src/graphql/hooks/admin/hooksMutation.ts
5107
5204
  var useAdminUpdateResourceType = () => {
5108
- const [adminUpdateResourceType, { loading, error }] = (0, import_client12.useMutation)(ADMIN_UPDATE_RESOURCE_TYPE_MUTATION, {
5205
+ const [adminUpdateResourceType, { loading, error }] = (0, import_client13.useMutation)(ADMIN_UPDATE_RESOURCE_TYPE_MUTATION, {
5109
5206
  awaitRefetchQueries: true,
5110
5207
  refetchQueries: (mutationResult) => {
5111
5208
  const adminUpdateResourceType2 = mutationResult?.data?.adminUpdateResourceType?.data;
@@ -5128,7 +5225,7 @@ var useAdminUpdateResourceType = () => {
5128
5225
  };
5129
5226
  };
5130
5227
  var useAdminResendUserVerificationEmail = () => {
5131
- const [adminResendUserVerificationEmail, { loading, error }] = (0, import_client12.useMutation)(ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION);
5228
+ const [adminResendUserVerificationEmail, { loading, error }] = (0, import_client13.useMutation)(ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION);
5132
5229
  return {
5133
5230
  adminResendUserVerificationEmail,
5134
5231
  error,
@@ -5136,7 +5233,7 @@ var useAdminResendUserVerificationEmail = () => {
5136
5233
  };
5137
5234
  };
5138
5235
  var useAdminPermanentlyDeleteResource = () => {
5139
- const [adminPermanentlyDeleteResource, { loading, error }] = (0, import_client12.useMutation)(ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION);
5236
+ const [adminPermanentlyDeleteResource, { loading, error }] = (0, import_client13.useMutation)(ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION);
5140
5237
  return {
5141
5238
  adminPermanentlyDeleteResource,
5142
5239
  error,
@@ -5145,11 +5242,11 @@ var useAdminPermanentlyDeleteResource = () => {
5145
5242
  };
5146
5243
 
5147
5244
  // src/graphql/hooks/auth.ts
5148
- var import_client14 = require("@apollo/client");
5245
+ var import_client15 = require("@apollo/client");
5149
5246
 
5150
5247
  // src/graphql/mutations/auth.ts
5151
- var import_client13 = require("@apollo/client");
5152
- var REGISTER_MUTATION = import_client13.gql`
5248
+ var import_client14 = require("@apollo/client");
5249
+ var REGISTER_MUTATION = import_client14.gql`
5153
5250
  mutation register($input: RegisterInputType!) {
5154
5251
  register(input: $input) {
5155
5252
  data {
@@ -5164,7 +5261,7 @@ var REGISTER_MUTATION = import_client13.gql`
5164
5261
  }
5165
5262
  ${USER_FIELDS_FRAGMENT}
5166
5263
  `;
5167
- var LOGIN_MUTATION = import_client13.gql`
5264
+ var LOGIN_MUTATION = import_client14.gql`
5168
5265
  mutation login($input: LoginInputType!) {
5169
5266
  login(input: $input) {
5170
5267
  data {
@@ -5179,7 +5276,7 @@ var LOGIN_MUTATION = import_client13.gql`
5179
5276
  }
5180
5277
  ${USER_FIELDS_FRAGMENT}
5181
5278
  `;
5182
- var LOGOUT_MUTATION = import_client13.gql`
5279
+ var LOGOUT_MUTATION = import_client14.gql`
5183
5280
  mutation logout {
5184
5281
  logout {
5185
5282
  data
@@ -5187,7 +5284,7 @@ var LOGOUT_MUTATION = import_client13.gql`
5187
5284
  }
5188
5285
  }
5189
5286
  `;
5190
- var REFRESH_TOKEN_MUTATION = import_client13.gql`
5287
+ var REFRESH_TOKEN_MUTATION = import_client14.gql`
5191
5288
  mutation refreshToken($input: RefreshTokenInputType!) {
5192
5289
  refreshToken(input: $input) {
5193
5290
  data {
@@ -5198,7 +5295,7 @@ var REFRESH_TOKEN_MUTATION = import_client13.gql`
5198
5295
  }
5199
5296
  }
5200
5297
  `;
5201
- var RESET_PASSWORD_MUTATION = import_client13.gql`
5298
+ var RESET_PASSWORD_MUTATION = import_client14.gql`
5202
5299
  mutation resetPassword($input: ResetPasswordInputType!) {
5203
5300
  resetPassword(input: $input) {
5204
5301
  data
@@ -5206,7 +5303,7 @@ var RESET_PASSWORD_MUTATION = import_client13.gql`
5206
5303
  }
5207
5304
  }
5208
5305
  `;
5209
- var REQUEST_PASSWORD_RESET_MUTATION = import_client13.gql`
5306
+ var REQUEST_PASSWORD_RESET_MUTATION = import_client14.gql`
5210
5307
  mutation requestPasswordReset($input: RequestPasswordResetInputType!) {
5211
5308
  requestPasswordReset(input: $input) {
5212
5309
  data
@@ -5214,7 +5311,7 @@ var REQUEST_PASSWORD_RESET_MUTATION = import_client13.gql`
5214
5311
  }
5215
5312
  }
5216
5313
  `;
5217
- var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client13.gql`
5314
+ var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client14.gql`
5218
5315
  mutation validateVerificationToken(
5219
5316
  $input: ValidateVerificationTokenInputType!
5220
5317
  ) {
@@ -5227,43 +5324,43 @@ var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client13.gql`
5227
5324
 
5228
5325
  // src/graphql/hooks/auth.ts
5229
5326
  var useRegister = () => {
5230
- const [register, { loading, error }] = (0, import_client14.useMutation)(REGISTER_MUTATION);
5327
+ const [register, { loading, error }] = (0, import_client15.useMutation)(REGISTER_MUTATION);
5231
5328
  return { error, loading, register };
5232
5329
  };
5233
5330
  var useLogin = () => {
5234
- const [login, { loading, error }] = (0, import_client14.useMutation)(LOGIN_MUTATION);
5331
+ const [login, { loading, error }] = (0, import_client15.useMutation)(LOGIN_MUTATION);
5235
5332
  return { error, loading, login };
5236
5333
  };
5237
5334
  var useLogout = () => {
5238
- const [logout, { loading, error }] = (0, import_client14.useMutation)(LOGOUT_MUTATION);
5335
+ const [logout, { loading, error }] = (0, import_client15.useMutation)(LOGOUT_MUTATION);
5239
5336
  return { error, loading, logout };
5240
5337
  };
5241
5338
  var useRefreshToken = () => {
5242
- const [refreshToken, { loading, error }] = (0, import_client14.useMutation)(REFRESH_TOKEN_MUTATION);
5339
+ const [refreshToken, { loading, error }] = (0, import_client15.useMutation)(REFRESH_TOKEN_MUTATION);
5243
5340
  return { error, loading, refreshToken };
5244
5341
  };
5245
5342
  var useRequestPasswordReset = () => {
5246
- const [requestPasswordReset, { loading, error }] = (0, import_client14.useMutation)(REQUEST_PASSWORD_RESET_MUTATION);
5343
+ const [requestPasswordReset, { loading, error }] = (0, import_client15.useMutation)(REQUEST_PASSWORD_RESET_MUTATION);
5247
5344
  return { error, loading, requestPasswordReset };
5248
5345
  };
5249
5346
  var useValidateVerificationToken = () => {
5250
- const [validateVerificationToken, { loading, error }] = (0, import_client14.useMutation)(VALIDATE_VERIFICATION_TOKEN_MUTATION);
5347
+ const [validateVerificationToken, { loading, error }] = (0, import_client15.useMutation)(VALIDATE_VERIFICATION_TOKEN_MUTATION);
5251
5348
  return { error, loading, validateVerificationToken };
5252
5349
  };
5253
5350
  var useResetPassword = () => {
5254
- const [resetPassword, { loading, error }] = (0, import_client14.useMutation)(RESET_PASSWORD_MUTATION);
5351
+ const [resetPassword, { loading, error }] = (0, import_client15.useMutation)(RESET_PASSWORD_MUTATION);
5255
5352
  return { error, loading, resetPassword };
5256
5353
  };
5257
5354
 
5258
5355
  // src/graphql/hooks/chat/hooksMutation.ts
5259
- var import_client17 = require("@apollo/client");
5356
+ var import_client18 = require("@apollo/client");
5260
5357
 
5261
5358
  // src/graphql/mutations/chat.ts
5262
- var import_client16 = require("@apollo/client");
5359
+ var import_client17 = require("@apollo/client");
5263
5360
 
5264
5361
  // src/graphql/queries/chat.ts
5265
- var import_client15 = require("@apollo/client");
5266
- var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client15.gql`
5362
+ var import_client16 = require("@apollo/client");
5363
+ var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client16.gql`
5267
5364
  fragment ChatMessageFields on ChatMessageType {
5268
5365
  _id
5269
5366
  content
@@ -5286,7 +5383,7 @@ var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client15.gql`
5286
5383
  updatedAt
5287
5384
  }
5288
5385
  `;
5289
- var CHAT_PARTICIPANT = import_client15.gql`
5386
+ var CHAT_PARTICIPANT = import_client16.gql`
5290
5387
  fragment ChatParticipantFields on ChatParticipantType {
5291
5388
  active
5292
5389
  userAvatar
@@ -5295,7 +5392,7 @@ var CHAT_PARTICIPANT = import_client15.gql`
5295
5392
  userName
5296
5393
  }
5297
5394
  `;
5298
- var CHAT_FIELDS_FRAGMENT = import_client15.gql`
5395
+ var CHAT_FIELDS_FRAGMENT = import_client16.gql`
5299
5396
  fragment ChatFields on ChatType {
5300
5397
  _id
5301
5398
  active
@@ -5316,7 +5413,7 @@ var CHAT_FIELDS_FRAGMENT = import_client15.gql`
5316
5413
  ${CHAT_MESSAGE_FIELDS_FRAGMENT}
5317
5414
  ${CHAT_PARTICIPANT}
5318
5415
  `;
5319
- var CHAT = import_client15.gql`
5416
+ var CHAT = import_client16.gql`
5320
5417
  query chat($_id: ID!) {
5321
5418
  chat(_id: $_id) {
5322
5419
  ...ChatFields
@@ -5324,7 +5421,7 @@ var CHAT = import_client15.gql`
5324
5421
  }
5325
5422
  ${CHAT_FIELDS_FRAGMENT}
5326
5423
  `;
5327
- var PRIVATE_CHATS = import_client15.gql`
5424
+ var PRIVATE_CHATS = import_client16.gql`
5328
5425
  query privateChats {
5329
5426
  privateChats {
5330
5427
  ...ChatFields
@@ -5332,7 +5429,7 @@ var PRIVATE_CHATS = import_client15.gql`
5332
5429
  }
5333
5430
  ${CHAT_FIELDS_FRAGMENT}
5334
5431
  `;
5335
- var RELATION_CHATS = import_client15.gql`
5432
+ var RELATION_CHATS = import_client16.gql`
5336
5433
  query relationChats {
5337
5434
  relationChats {
5338
5435
  ...ChatFields
@@ -5340,7 +5437,7 @@ var RELATION_CHATS = import_client15.gql`
5340
5437
  }
5341
5438
  ${CHAT_FIELDS_FRAGMENT}
5342
5439
  `;
5343
- var GET_CHATS_BY_REGION = import_client15.gql`
5440
+ var GET_CHATS_BY_REGION = import_client16.gql`
5344
5441
  query getChatsByRegion($region: String!) {
5345
5442
  chatsByRegion(region: $region) {
5346
5443
  ...ChatFields
@@ -5348,7 +5445,7 @@ var GET_CHATS_BY_REGION = import_client15.gql`
5348
5445
  }
5349
5446
  ${CHAT_FIELDS_FRAGMENT}
5350
5447
  `;
5351
- var CHAT_REPORT_FIELDS_FRAGMENT = import_client15.gql`
5448
+ var CHAT_REPORT_FIELDS_FRAGMENT = import_client16.gql`
5352
5449
  fragment ChatReportFields on ReportChatUserType {
5353
5450
  _id
5354
5451
  chatId
@@ -5363,7 +5460,7 @@ var CHAT_REPORT_FIELDS_FRAGMENT = import_client15.gql`
5363
5460
  updatedAt
5364
5461
  }
5365
5462
  `;
5366
- var GET_REPORTED_CHAT_USERS = import_client15.gql`
5463
+ var GET_REPORTED_CHAT_USERS = import_client16.gql`
5367
5464
  query getReportedChatUsers {
5368
5465
  reportedChatUsers {
5369
5466
  ...ChatReportFields
@@ -5373,7 +5470,7 @@ var GET_REPORTED_CHAT_USERS = import_client15.gql`
5373
5470
  `;
5374
5471
 
5375
5472
  // src/graphql/mutations/chat.ts
5376
- var CREATE_PRIVATE_CHAT_MUTATION = import_client16.gql`
5473
+ var CREATE_PRIVATE_CHAT_MUTATION = import_client17.gql`
5377
5474
  mutation createPrivateChat($userId: ID!) {
5378
5475
  createPrivateChat(userId: $userId) {
5379
5476
  data {
@@ -5384,7 +5481,7 @@ var CREATE_PRIVATE_CHAT_MUTATION = import_client16.gql`
5384
5481
  }
5385
5482
  ${CHAT_FIELDS_FRAGMENT}
5386
5483
  `;
5387
- var SEND_CHAT_MESSAGE_MUTATION = import_client16.gql`
5484
+ var SEND_CHAT_MESSAGE_MUTATION = import_client17.gql`
5388
5485
  mutation sendChatMessage($_id: ID!, $input: ChatMessageInputType!) {
5389
5486
  sendChatMessage(_id: $_id, input: $input) {
5390
5487
  data {
@@ -5395,7 +5492,7 @@ var SEND_CHAT_MESSAGE_MUTATION = import_client16.gql`
5395
5492
  }
5396
5493
  ${CHAT_FIELDS_FRAGMENT}
5397
5494
  `;
5398
- var DELETE_CHAT_MUTATION = import_client16.gql`
5495
+ var DELETE_CHAT_MUTATION = import_client17.gql`
5399
5496
  mutation deleteChat($_id: ID!) {
5400
5497
  deleteChat(_id: $_id) {
5401
5498
  data
@@ -5403,7 +5500,7 @@ var DELETE_CHAT_MUTATION = import_client16.gql`
5403
5500
  }
5404
5501
  }
5405
5502
  `;
5406
- var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client16.gql`
5503
+ var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client17.gql`
5407
5504
  mutation addParticipantToChat($chatId: ID!, $userId: ID!) {
5408
5505
  addParticipantToChat(chatId: $chatId, userId: $userId) {
5409
5506
  data {
@@ -5414,7 +5511,7 @@ var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client16.gql`
5414
5511
  }
5415
5512
  ${CHAT_FIELDS_FRAGMENT}
5416
5513
  `;
5417
- var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client16.gql`
5514
+ var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client17.gql`
5418
5515
  mutation removeParticipantFromChat($chatId: ID!, $userId: ID!) {
5419
5516
  removeParticipantFromChat(chatId: $chatId, userId: $userId) {
5420
5517
  data {
@@ -5425,7 +5522,7 @@ var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client16.gql`
5425
5522
  }
5426
5523
  }
5427
5524
  `;
5428
- var TOGGLE_CHAT_MESSAGE_LIKE_MUTATION = import_client16.gql`
5525
+ var TOGGLE_CHAT_MESSAGE_LIKE_MUTATION = import_client17.gql`
5429
5526
  mutation toggleChatMessageLike($chatId: ID!, $messageId: ID!) {
5430
5527
  toggleChatMessageLike(chatId: $chatId, messageId: $messageId) {
5431
5528
  data {
@@ -5436,7 +5533,7 @@ var TOGGLE_CHAT_MESSAGE_LIKE_MUTATION = import_client16.gql`
5436
5533
  }
5437
5534
  ${CHAT_FIELDS_FRAGMENT}
5438
5535
  `;
5439
- var MARK_CHAT_MESSAGES_SEEN_MUTATION = import_client16.gql`
5536
+ var MARK_CHAT_MESSAGES_SEEN_MUTATION = import_client17.gql`
5440
5537
  mutation markChatMessagesSeen($chatId: ID!, $messageIds: [ID!]!) {
5441
5538
  markChatMessagesSeen(chatId: $chatId, messageIds: $messageIds) {
5442
5539
  data {
@@ -5447,7 +5544,7 @@ var MARK_CHAT_MESSAGES_SEEN_MUTATION = import_client16.gql`
5447
5544
  }
5448
5545
  ${CHAT_FIELDS_FRAGMENT}
5449
5546
  `;
5450
- var REPORT_CHAT_USER_MUTATION = import_client16.gql`
5547
+ var REPORT_CHAT_USER_MUTATION = import_client17.gql`
5451
5548
  mutation reportChatUser($input: ReportChatUserInputType!) {
5452
5549
  reportChatUser(input: $input) {
5453
5550
  data {
@@ -5461,14 +5558,14 @@ var REPORT_CHAT_USER_MUTATION = import_client16.gql`
5461
5558
 
5462
5559
  // src/graphql/hooks/chat/hooksMutation.ts
5463
5560
  var useCreatePrivateChat = () => {
5464
- const [createPrivateChat, { loading, error }] = (0, import_client17.useMutation)(CREATE_PRIVATE_CHAT_MUTATION, {
5561
+ const [createPrivateChat, { loading, error }] = (0, import_client18.useMutation)(CREATE_PRIVATE_CHAT_MUTATION, {
5465
5562
  awaitRefetchQueries: true,
5466
5563
  refetchQueries: [{ query: PRIVATE_CHATS }]
5467
5564
  });
5468
5565
  return { createPrivateChat, error, loading };
5469
5566
  };
5470
5567
  var useSendChatMessage = () => {
5471
- const [sendChatMessage, { loading, error }] = (0, import_client17.useMutation)(SEND_CHAT_MESSAGE_MUTATION, {
5568
+ const [sendChatMessage, { loading, error }] = (0, import_client18.useMutation)(SEND_CHAT_MESSAGE_MUTATION, {
5472
5569
  awaitRefetchQueries: true,
5473
5570
  refetchQueries: (mutationResult) => {
5474
5571
  const chatId = mutationResult?.data?.sendChatMessage?.data?._id;
@@ -5483,14 +5580,14 @@ var useSendChatMessage = () => {
5483
5580
  return { error, loading, sendChatMessage };
5484
5581
  };
5485
5582
  var useDeleteChat = () => {
5486
- const [deleteChat, { loading, error }] = (0, import_client17.useMutation)(DELETE_CHAT_MUTATION, {
5583
+ const [deleteChat, { loading, error }] = (0, import_client18.useMutation)(DELETE_CHAT_MUTATION, {
5487
5584
  awaitRefetchQueries: true,
5488
5585
  refetchQueries: [{ query: PRIVATE_CHATS }, { query: RELATION_CHATS }]
5489
5586
  });
5490
5587
  return { deleteChat, error, loading };
5491
5588
  };
5492
5589
  var useAddParticipantToChat = () => {
5493
- const [addParticipantToChat, { loading, error }] = (0, import_client17.useMutation)(ADD_PARTICIPANT_TO_CHAT_MUTATION, {
5590
+ const [addParticipantToChat, { loading, error }] = (0, import_client18.useMutation)(ADD_PARTICIPANT_TO_CHAT_MUTATION, {
5494
5591
  awaitRefetchQueries: true,
5495
5592
  refetchQueries: (mutationResult) => {
5496
5593
  const chatId = mutationResult?.data?.addParticipantToChat?.data?._id;
@@ -5511,7 +5608,7 @@ var useAddParticipantToChat = () => {
5511
5608
  return { addParticipantToChat, error, loading };
5512
5609
  };
5513
5610
  var useRemoveParticipantFromChat = () => {
5514
- const [removeParticipantFromChat, { loading, error }] = (0, import_client17.useMutation)(REMOVE_PARTICIPANT_FROM_CHAT_MUTATION, {
5611
+ const [removeParticipantFromChat, { loading, error }] = (0, import_client18.useMutation)(REMOVE_PARTICIPANT_FROM_CHAT_MUTATION, {
5515
5612
  awaitRefetchQueries: true,
5516
5613
  refetchQueries: (mutationResult) => {
5517
5614
  const region = mutationResult?.data?.removeParticipantFromChat?.data?.region;
@@ -5531,7 +5628,7 @@ var useRemoveParticipantFromChat = () => {
5531
5628
  return { error, loading, removeParticipantFromChat };
5532
5629
  };
5533
5630
  var useToggleChatMessageLike = () => {
5534
- const [toggleChatMessageLike, { loading, error }] = (0, import_client17.useMutation)(TOGGLE_CHAT_MESSAGE_LIKE_MUTATION, {
5631
+ const [toggleChatMessageLike, { loading, error }] = (0, import_client18.useMutation)(TOGGLE_CHAT_MESSAGE_LIKE_MUTATION, {
5535
5632
  awaitRefetchQueries: true,
5536
5633
  refetchQueries: (mutationResult) => {
5537
5634
  const chatId = mutationResult?.data?.toggleChatMessageLike?.data?._id;
@@ -5546,7 +5643,7 @@ var useToggleChatMessageLike = () => {
5546
5643
  return { error, loading, toggleChatMessageLike };
5547
5644
  };
5548
5645
  var useMarkChatMessagesSeen = () => {
5549
- const [markChatMessagesSeen, { loading, error }] = (0, import_client17.useMutation)(MARK_CHAT_MESSAGES_SEEN_MUTATION, {
5646
+ const [markChatMessagesSeen, { loading, error }] = (0, import_client18.useMutation)(MARK_CHAT_MESSAGES_SEEN_MUTATION, {
5550
5647
  awaitRefetchQueries: true,
5551
5648
  refetchQueries: (mutationResult) => {
5552
5649
  const chatId = mutationResult?.data?.markChatMessagesSeen?.data?._id;
@@ -5561,16 +5658,16 @@ var useMarkChatMessagesSeen = () => {
5561
5658
  return { error, loading, markChatMessagesSeen };
5562
5659
  };
5563
5660
  var useReportChatUser = () => {
5564
- const [reportChatUser, { loading, error }] = (0, import_client17.useMutation)(REPORT_CHAT_USER_MUTATION);
5661
+ const [reportChatUser, { loading, error }] = (0, import_client18.useMutation)(REPORT_CHAT_USER_MUTATION);
5565
5662
  return { error, loading, reportChatUser };
5566
5663
  };
5567
5664
 
5568
5665
  // src/graphql/hooks/chat/hooksQuery.ts
5569
- var import_client19 = require("@apollo/client");
5666
+ var import_client20 = require("@apollo/client");
5570
5667
 
5571
5668
  // src/graphql/subscriptions/chat.ts
5572
- var import_client18 = require("@apollo/client");
5573
- var GET_CHAT_MESSAGE = import_client18.gql`
5669
+ var import_client19 = require("@apollo/client");
5670
+ var GET_CHAT_MESSAGE = import_client19.gql`
5574
5671
  subscription {
5575
5672
  getChatMessage {
5576
5673
  ...ChatFields
@@ -5581,7 +5678,7 @@ var GET_CHAT_MESSAGE = import_client18.gql`
5581
5678
 
5582
5679
  // src/graphql/hooks/chat/hooksQuery.ts
5583
5680
  var useGetChat = (_id) => {
5584
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(CHAT, {
5681
+ const { loading, error, data, refetch } = (0, import_client20.useQuery)(CHAT, {
5585
5682
  fetchPolicy: "network-only",
5586
5683
  skip: !_id || _id === "",
5587
5684
  variables: { _id }
@@ -5590,28 +5687,28 @@ var useGetChat = (_id) => {
5590
5687
  return { chat, error, loading, refetch };
5591
5688
  };
5592
5689
  var useGetPrivateChats = () => {
5593
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(PRIVATE_CHATS, {
5690
+ const { loading, error, data, refetch } = (0, import_client20.useQuery)(PRIVATE_CHATS, {
5594
5691
  fetchPolicy: "network-only"
5595
5692
  });
5596
5693
  const privateChats = data?.privateChats || [];
5597
5694
  return { error, loading, privateChats, refetch };
5598
5695
  };
5599
5696
  var useGetRelationChats = () => {
5600
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(RELATION_CHATS, {
5697
+ const { loading, error, data, refetch } = (0, import_client20.useQuery)(RELATION_CHATS, {
5601
5698
  fetchPolicy: "network-only"
5602
5699
  });
5603
5700
  const relationChats = data?.relationChats || [];
5604
5701
  return { error, loading, refetch, relationChats };
5605
5702
  };
5606
5703
  var useGetChatSubscription = () => {
5607
- const { data, loading, error } = (0, import_client19.useSubscription)(
5704
+ const { data, loading, error } = (0, import_client20.useSubscription)(
5608
5705
  GET_CHAT_MESSAGE
5609
5706
  );
5610
5707
  const chat = data?.getChat;
5611
5708
  return { chat, error, loading };
5612
5709
  };
5613
5710
  var useGetChatsByRegion = (region) => {
5614
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_CHATS_BY_REGION, {
5711
+ const { loading, error, data, refetch } = (0, import_client20.useQuery)(GET_CHATS_BY_REGION, {
5615
5712
  fetchPolicy: "network-only",
5616
5713
  variables: { region }
5617
5714
  });
@@ -5619,7 +5716,7 @@ var useGetChatsByRegion = (region) => {
5619
5716
  return { chatsByRegion, error, loading, refetch };
5620
5717
  };
5621
5718
  var useGetReportedChatUsers = () => {
5622
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_REPORTED_CHAT_USERS, {
5719
+ const { loading, error, data, refetch } = (0, import_client20.useQuery)(GET_REPORTED_CHAT_USERS, {
5623
5720
  fetchPolicy: "network-only"
5624
5721
  });
5625
5722
  const reportedChatUsers = data?.reportedChatUsers || [];
@@ -5627,11 +5724,11 @@ var useGetReportedChatUsers = () => {
5627
5724
  };
5628
5725
 
5629
5726
  // src/graphql/hooks/contactUs.ts
5630
- var import_client21 = require("@apollo/client");
5727
+ var import_client22 = require("@apollo/client");
5631
5728
 
5632
5729
  // src/graphql/mutations/contactUs.ts
5633
- var import_client20 = require("@apollo/client");
5634
- var CONTACT_US_MUTATION = import_client20.gql`
5730
+ var import_client21 = require("@apollo/client");
5731
+ var CONTACT_US_MUTATION = import_client21.gql`
5635
5732
  mutation contactUs($input: ContactUsInputType!) {
5636
5733
  contactUs(input: $input) {
5637
5734
  data
@@ -5642,16 +5739,16 @@ var CONTACT_US_MUTATION = import_client20.gql`
5642
5739
 
5643
5740
  // src/graphql/hooks/contactUs.ts
5644
5741
  var useContactUs = () => {
5645
- const [contactUs, { loading, error }] = (0, import_client21.useMutation)(CONTACT_US_MUTATION);
5742
+ const [contactUs, { loading, error }] = (0, import_client22.useMutation)(CONTACT_US_MUTATION);
5646
5743
  return { contactUs, error, loading };
5647
5744
  };
5648
5745
 
5649
5746
  // src/graphql/hooks/event/hooksMutation.ts
5650
- var import_client24 = require("@apollo/client");
5747
+ var import_client25 = require("@apollo/client");
5651
5748
 
5652
5749
  // src/graphql/mutations/event.ts
5653
- var import_client22 = require("@apollo/client");
5654
- var CREATE_EVENT_MUTATION = import_client22.gql`
5750
+ var import_client23 = require("@apollo/client");
5751
+ var CREATE_EVENT_MUTATION = import_client23.gql`
5655
5752
  mutation createEvent($input: EventInputType!) {
5656
5753
  createEvent(input: $input) {
5657
5754
  data {
@@ -5662,7 +5759,7 @@ var CREATE_EVENT_MUTATION = import_client22.gql`
5662
5759
  }
5663
5760
  ${EVENT}
5664
5761
  `;
5665
- var UPDATE_EVENT_MUTATION = import_client22.gql`
5762
+ var UPDATE_EVENT_MUTATION = import_client23.gql`
5666
5763
  mutation updateEvent($_id: ID!, $input: EventInputType!) {
5667
5764
  updateEvent(_id: $_id, input: $input) {
5668
5765
  data {
@@ -5673,7 +5770,7 @@ var UPDATE_EVENT_MUTATION = import_client22.gql`
5673
5770
  }
5674
5771
  ${EVENT}
5675
5772
  `;
5676
- var DELETE_EVENT_MUTATION = import_client22.gql`
5773
+ var DELETE_EVENT_MUTATION = import_client23.gql`
5677
5774
  mutation deleteEvent($_id: ID!) {
5678
5775
  deleteEvent(_id: $_id) {
5679
5776
  data
@@ -5681,7 +5778,7 @@ var DELETE_EVENT_MUTATION = import_client22.gql`
5681
5778
  }
5682
5779
  }
5683
5780
  `;
5684
- var CREATE_EVENT_INFO_MUTATION = import_client22.gql`
5781
+ var CREATE_EVENT_INFO_MUTATION = import_client23.gql`
5685
5782
  mutation createEventInfo($input: EventInfoInputType!) {
5686
5783
  createEventInfo(input: $input) {
5687
5784
  data {
@@ -5692,7 +5789,7 @@ var CREATE_EVENT_INFO_MUTATION = import_client22.gql`
5692
5789
  }
5693
5790
  ${EVENT_INFO}
5694
5791
  `;
5695
- var UPDATE_EVENT_INFO_MUTATION = import_client22.gql`
5792
+ var UPDATE_EVENT_INFO_MUTATION = import_client23.gql`
5696
5793
  mutation updateEventInfo($_id: ID!, $input: EventInfoInputType!) {
5697
5794
  updateEventInfo(_id: $_id, input: $input) {
5698
5795
  data {
@@ -5705,8 +5802,8 @@ var UPDATE_EVENT_INFO_MUTATION = import_client22.gql`
5705
5802
  `;
5706
5803
 
5707
5804
  // src/graphql/queries/user.ts
5708
- var import_client23 = require("@apollo/client");
5709
- var GET_USERS = import_client23.gql`
5805
+ var import_client24 = require("@apollo/client");
5806
+ var GET_USERS = import_client24.gql`
5710
5807
  query getUsers {
5711
5808
  users {
5712
5809
  ...UserFields
@@ -5714,7 +5811,7 @@ var GET_USERS = import_client23.gql`
5714
5811
  }
5715
5812
  ${USER_FIELDS_FRAGMENT}
5716
5813
  `;
5717
- var GET_USER = import_client23.gql`
5814
+ var GET_USER = import_client24.gql`
5718
5815
  query getUser($_id: ID!) {
5719
5816
  user(_id: $_id) {
5720
5817
  ...UserFields
@@ -5722,7 +5819,7 @@ var GET_USER = import_client23.gql`
5722
5819
  }
5723
5820
  ${USER_FIELDS_FRAGMENT}
5724
5821
  `;
5725
- var GET_USER_EVENTS = import_client23.gql`
5822
+ var GET_USER_EVENTS = import_client24.gql`
5726
5823
  query getUserEvents {
5727
5824
  userEvents {
5728
5825
  ...EventFields
@@ -5730,7 +5827,7 @@ var GET_USER_EVENTS = import_client23.gql`
5730
5827
  }
5731
5828
  ${EVENT}
5732
5829
  `;
5733
- var GET_USER_VENDORS = import_client23.gql`
5830
+ var GET_USER_VENDORS = import_client24.gql`
5734
5831
  query getUserVendors {
5735
5832
  userVendors {
5736
5833
  ...VendorFields
@@ -5738,7 +5835,7 @@ var GET_USER_VENDORS = import_client23.gql`
5738
5835
  }
5739
5836
  ${VENDOR}
5740
5837
  `;
5741
- var GET_USER_PARTNERS = import_client23.gql`
5838
+ var GET_USER_PARTNERS = import_client24.gql`
5742
5839
  query getUserPartners {
5743
5840
  userPartners {
5744
5841
  ...PartnerFields
@@ -5746,7 +5843,7 @@ var GET_USER_PARTNERS = import_client23.gql`
5746
5843
  }
5747
5844
  ${PARTNER}
5748
5845
  `;
5749
- var GET_USER_ACTIVITIES = import_client23.gql`
5846
+ var GET_USER_ACTIVITIES = import_client24.gql`
5750
5847
  query getUserActivities {
5751
5848
  userActivities {
5752
5849
  favourites {
@@ -5781,7 +5878,7 @@ var GET_USER_ACTIVITIES = import_client23.gql`
5781
5878
  ${VENDOR}
5782
5879
  ${PARTNER}
5783
5880
  `;
5784
- var GET_USER_RESOURCES = import_client23.gql`
5881
+ var GET_USER_RESOURCES = import_client24.gql`
5785
5882
  query getUserResources($userId: ID!) {
5786
5883
  userResources(userId: $userId) {
5787
5884
  resources {
@@ -5796,14 +5893,14 @@ var GET_USER_RESOURCES = import_client23.gql`
5796
5893
 
5797
5894
  // src/graphql/hooks/event/hooksMutation.ts
5798
5895
  var useCreateEvent = () => {
5799
- const [createEvent, { loading, error }] = (0, import_client24.useMutation)(CREATE_EVENT_MUTATION, {
5896
+ const [createEvent, { loading, error }] = (0, import_client25.useMutation)(CREATE_EVENT_MUTATION, {
5800
5897
  awaitRefetchQueries: true,
5801
5898
  refetchQueries: [{ query: GET_USER_EVENTS }]
5802
5899
  });
5803
5900
  return { createEvent, error, loading };
5804
5901
  };
5805
5902
  var useUpdateEvent = () => {
5806
- const [updateEvent, { loading, error }] = (0, import_client24.useMutation)(UPDATE_EVENT_MUTATION, {
5903
+ const [updateEvent, { loading, error }] = (0, import_client25.useMutation)(UPDATE_EVENT_MUTATION, {
5807
5904
  awaitRefetchQueries: true,
5808
5905
  refetchQueries: (mutationResult) => {
5809
5906
  const eventId = mutationResult?.data?.updateEvent?.data?._id;
@@ -5826,14 +5923,14 @@ var useUpdateEvent = () => {
5826
5923
  return { error, loading, updateEvent };
5827
5924
  };
5828
5925
  var useDeleteEvent = () => {
5829
- const [deleteEvent, { loading, error }] = (0, import_client24.useMutation)(DELETE_EVENT_MUTATION, {
5926
+ const [deleteEvent, { loading, error }] = (0, import_client25.useMutation)(DELETE_EVENT_MUTATION, {
5830
5927
  awaitRefetchQueries: true,
5831
5928
  refetchQueries: [{ query: GET_USER_EVENTS }]
5832
5929
  });
5833
5930
  return { deleteEvent, error, loading };
5834
5931
  };
5835
5932
  var useCreateEventInfo = () => {
5836
- const [createEventInfo, { loading, error }] = (0, import_client24.useMutation)(CREATE_EVENT_INFO_MUTATION, {
5933
+ const [createEventInfo, { loading, error }] = (0, import_client25.useMutation)(CREATE_EVENT_INFO_MUTATION, {
5837
5934
  awaitRefetchQueries: true,
5838
5935
  refetchQueries: (mutationResult) => {
5839
5936
  const eventId = mutationResult?.data?.createEventInfo?.data?.eventId;
@@ -5857,7 +5954,7 @@ var useCreateEventInfo = () => {
5857
5954
  return { createEventInfo, error, loading };
5858
5955
  };
5859
5956
  var useUpdateEventInfo = () => {
5860
- const [updateEventInfo, { loading, error }] = (0, import_client24.useMutation)(UPDATE_EVENT_INFO_MUTATION, {
5957
+ const [updateEventInfo, { loading, error }] = (0, import_client25.useMutation)(UPDATE_EVENT_INFO_MUTATION, {
5861
5958
  awaitRefetchQueries: true,
5862
5959
  refetchQueries: (mutationResult) => {
5863
5960
  const eventId = mutationResult?.data?.updateEventInfo?.data?.eventId;
@@ -5881,9 +5978,9 @@ var useUpdateEventInfo = () => {
5881
5978
  };
5882
5979
 
5883
5980
  // src/graphql/hooks/event/hooksQuery.ts
5884
- var import_client25 = require("@apollo/client");
5981
+ var import_client26 = require("@apollo/client");
5885
5982
  var useGetEvents = (dateStatus) => {
5886
- const { loading, error, data, refetch } = (0, import_client25.useQuery)(GET_EVENTS, {
5983
+ const { loading, error, data, refetch } = (0, import_client26.useQuery)(GET_EVENTS, {
5887
5984
  fetchPolicy: "network-only",
5888
5985
  variables: { dateStatus }
5889
5986
  });
@@ -5891,7 +5988,7 @@ var useGetEvents = (dateStatus) => {
5891
5988
  return { error, events, loading, refetch };
5892
5989
  };
5893
5990
  var useGetEvent = (_id) => {
5894
- const { loading, error, data, refetch } = (0, import_client25.useQuery)(GET_EVENT, {
5991
+ const { loading, error, data, refetch } = (0, import_client26.useQuery)(GET_EVENT, {
5895
5992
  fetchPolicy: "network-only",
5896
5993
  skip: !_id,
5897
5994
  variables: { _id }
@@ -5900,7 +5997,7 @@ var useGetEvent = (_id) => {
5900
5997
  return { error, event, loading, refetch };
5901
5998
  };
5902
5999
  var useGetEventByPlaceId = (googlePlaceId) => {
5903
- const { loading, error, data, refetch } = (0, import_client25.useQuery)(GET_EVENT_BY_PLACE_ID, {
6000
+ const { loading, error, data, refetch } = (0, import_client26.useQuery)(GET_EVENT_BY_PLACE_ID, {
5904
6001
  fetchPolicy: "network-only",
5905
6002
  skip: !googlePlaceId,
5906
6003
  variables: { googlePlaceId }
@@ -5914,7 +6011,7 @@ var useGetEventsByRegion = (region, options, dateStatus) => {
5914
6011
  options,
5915
6012
  region
5916
6013
  };
5917
- const { loading, error, data, refetch, fetchMore } = (0, import_client25.useQuery)(GET_EVENTS_BY_REGION, {
6014
+ const { loading, error, data, refetch, fetchMore } = (0, import_client26.useQuery)(GET_EVENTS_BY_REGION, {
5918
6015
  fetchPolicy: "network-only",
5919
6016
  skip: !region || region === "",
5920
6017
  variables
@@ -5932,7 +6029,7 @@ var useSearchEvents = (region, searchQuery, tags, dateStatus) => {
5932
6029
  const normalizedSearch = searchQuery?.trim() ?? "";
5933
6030
  const normalizedTags = (tags ?? []).filter(Boolean);
5934
6031
  const shouldRunQuery = normalizedSearch.length > 3 || normalizedTags.length > 0;
5935
- const { loading, error, data, refetch } = (0, import_client25.useQuery)(SEARCH_EVENTS, {
6032
+ const { loading, error, data, refetch } = (0, import_client26.useQuery)(SEARCH_EVENTS, {
5936
6033
  fetchPolicy: "network-only",
5937
6034
  skip: !shouldRunQuery,
5938
6035
  variables: {
@@ -5950,7 +6047,7 @@ var useSearchEvents = (region, searchQuery, tags, dateStatus) => {
5950
6047
  };
5951
6048
  };
5952
6049
  var useGetEventsNearMe = (location, dateStatus) => {
5953
- const { loading, error, data, refetch } = (0, import_client25.useQuery)(GET_EVENTS_NEAR_ME, {
6050
+ const { loading, error, data, refetch } = (0, import_client26.useQuery)(GET_EVENTS_NEAR_ME, {
5954
6051
  fetchPolicy: "network-only",
5955
6052
  skip: !location.latitude || !location.longitude,
5956
6053
  variables: {
@@ -5965,7 +6062,7 @@ var useGetEventsNearMe = (location, dateStatus) => {
5965
6062
  return { error, eventsNearMe, loading, refetch };
5966
6063
  };
5967
6064
  var useGetEventInfo = (eventId) => {
5968
- const { loading, error, data, refetch } = (0, import_client25.useQuery)(GET_EVENT_INFO, {
6065
+ const { loading, error, data, refetch } = (0, import_client26.useQuery)(GET_EVENT_INFO, {
5969
6066
  fetchPolicy: "network-only",
5970
6067
  skip: !eventId || eventId === "",
5971
6068
  variables: { eventId }
@@ -5975,14 +6072,14 @@ var useGetEventInfo = (eventId) => {
5975
6072
  };
5976
6073
 
5977
6074
  // src/graphql/hooks/notifications/hooksMutation.ts
5978
- var import_client28 = require("@apollo/client");
6075
+ var import_client29 = require("@apollo/client");
5979
6076
 
5980
6077
  // src/graphql/mutations/notification.ts
5981
- var import_client27 = require("@apollo/client");
6078
+ var import_client28 = require("@apollo/client");
5982
6079
 
5983
6080
  // src/graphql/queries/notification.ts
5984
- var import_client26 = require("@apollo/client");
5985
- var NOTIFICATION_FRAGMENT = import_client26.gql`
6081
+ var import_client27 = require("@apollo/client");
6082
+ var NOTIFICATION_FRAGMENT = import_client27.gql`
5986
6083
  fragment NotificationFields on Notification {
5987
6084
  _id
5988
6085
  userId
@@ -5999,7 +6096,7 @@ var NOTIFICATION_FRAGMENT = import_client26.gql`
5999
6096
  updatedAt
6000
6097
  }
6001
6098
  `;
6002
- var GET_USER_NOTIFICATIONS = import_client26.gql`
6099
+ var GET_USER_NOTIFICATIONS = import_client27.gql`
6003
6100
  query getUserNotifications($limit: Int, $offset: Int) {
6004
6101
  userNotifications(limit: $limit, offset: $offset) {
6005
6102
  ...NotificationFields
@@ -6007,7 +6104,7 @@ var GET_USER_NOTIFICATIONS = import_client26.gql`
6007
6104
  }
6008
6105
  ${NOTIFICATION_FRAGMENT}
6009
6106
  `;
6010
- var GET_NOTIFICATION_COUNT = import_client26.gql`
6107
+ var GET_NOTIFICATION_COUNT = import_client27.gql`
6011
6108
  query getNotificationCount {
6012
6109
  notificationCount {
6013
6110
  total
@@ -6017,7 +6114,7 @@ var GET_NOTIFICATION_COUNT = import_client26.gql`
6017
6114
  `;
6018
6115
 
6019
6116
  // src/graphql/mutations/notification.ts
6020
- var CREATE_BULK_NOTIFICATIONS = import_client27.gql`
6117
+ var CREATE_BULK_NOTIFICATIONS = import_client28.gql`
6021
6118
  mutation createBulkNotifications($input: CreateBulkNotificationInput!) {
6022
6119
  createBulkNotifications(input: $input) {
6023
6120
  data
@@ -6025,7 +6122,7 @@ var CREATE_BULK_NOTIFICATIONS = import_client27.gql`
6025
6122
  }
6026
6123
  }
6027
6124
  `;
6028
- var MARK_NOTIFICATION_READ = import_client27.gql`
6125
+ var MARK_NOTIFICATION_READ = import_client28.gql`
6029
6126
  mutation markNotificationRead($_id: ID!) {
6030
6127
  markNotificationRead(_id: $_id) {
6031
6128
  data {
@@ -6036,7 +6133,7 @@ var MARK_NOTIFICATION_READ = import_client27.gql`
6036
6133
  }
6037
6134
  ${NOTIFICATION_FRAGMENT}
6038
6135
  `;
6039
- var MARK_ALL_NOTIFICATIONS_READ = import_client27.gql`
6136
+ var MARK_ALL_NOTIFICATIONS_READ = import_client28.gql`
6040
6137
  mutation markAllNotificationsRead {
6041
6138
  markAllNotificationsRead {
6042
6139
  data
@@ -6044,7 +6141,7 @@ var MARK_ALL_NOTIFICATIONS_READ = import_client27.gql`
6044
6141
  }
6045
6142
  }
6046
6143
  `;
6047
- var DELETE_NOTIFICATION = import_client27.gql`
6144
+ var DELETE_NOTIFICATION = import_client28.gql`
6048
6145
  mutation deleteNotification($_id: ID!) {
6049
6146
  deleteNotification(_id: $_id) {
6050
6147
  data
@@ -6052,7 +6149,7 @@ var DELETE_NOTIFICATION = import_client27.gql`
6052
6149
  }
6053
6150
  }
6054
6151
  `;
6055
- var DELETE_ALL_NOTIFICATIONS = import_client27.gql`
6152
+ var DELETE_ALL_NOTIFICATIONS = import_client28.gql`
6056
6153
  mutation deleteAllNotifications {
6057
6154
  deleteAllNotifications {
6058
6155
  data
@@ -6063,11 +6160,11 @@ var DELETE_ALL_NOTIFICATIONS = import_client27.gql`
6063
6160
 
6064
6161
  // src/graphql/hooks/notifications/hooksMutation.ts
6065
6162
  var useCreateBulkNotifications = () => {
6066
- const [createBulkNotifications, { loading, error }] = (0, import_client28.useMutation)(CREATE_BULK_NOTIFICATIONS);
6163
+ const [createBulkNotifications, { loading, error }] = (0, import_client29.useMutation)(CREATE_BULK_NOTIFICATIONS);
6067
6164
  return { createBulkNotifications, error, loading };
6068
6165
  };
6069
6166
  var useMarkNotificationRead = () => {
6070
- const [markNotificationRead, { loading, error }] = (0, import_client28.useMutation)(MARK_NOTIFICATION_READ, {
6167
+ const [markNotificationRead, { loading, error }] = (0, import_client29.useMutation)(MARK_NOTIFICATION_READ, {
6071
6168
  refetchQueries: [
6072
6169
  {
6073
6170
  query: GET_USER_NOTIFICATIONS
@@ -6080,7 +6177,7 @@ var useMarkNotificationRead = () => {
6080
6177
  return { error, loading, markNotificationRead };
6081
6178
  };
6082
6179
  var useMarkAllNotificationsRead = () => {
6083
- const [markAllNotificationsRead, { loading, error }] = (0, import_client28.useMutation)(MARK_ALL_NOTIFICATIONS_READ, {
6180
+ const [markAllNotificationsRead, { loading, error }] = (0, import_client29.useMutation)(MARK_ALL_NOTIFICATIONS_READ, {
6084
6181
  refetchQueries: [
6085
6182
  {
6086
6183
  query: GET_USER_NOTIFICATIONS
@@ -6093,7 +6190,7 @@ var useMarkAllNotificationsRead = () => {
6093
6190
  return { error, loading, markAllNotificationsRead };
6094
6191
  };
6095
6192
  var useDeleteNotification = () => {
6096
- const [deleteNotification, { loading, error }] = (0, import_client28.useMutation)(DELETE_NOTIFICATION, {
6193
+ const [deleteNotification, { loading, error }] = (0, import_client29.useMutation)(DELETE_NOTIFICATION, {
6097
6194
  refetchQueries: [
6098
6195
  {
6099
6196
  query: GET_USER_NOTIFICATIONS
@@ -6106,7 +6203,7 @@ var useDeleteNotification = () => {
6106
6203
  return { deleteNotification, error, loading };
6107
6204
  };
6108
6205
  var useDeleteAllNotifications = () => {
6109
- const [deleteAllNotifications, { loading, error }] = (0, import_client28.useMutation)(DELETE_ALL_NOTIFICATIONS, {
6206
+ const [deleteAllNotifications, { loading, error }] = (0, import_client29.useMutation)(DELETE_ALL_NOTIFICATIONS, {
6110
6207
  refetchQueries: [
6111
6208
  {
6112
6209
  query: GET_USER_NOTIFICATIONS
@@ -6120,9 +6217,9 @@ var useDeleteAllNotifications = () => {
6120
6217
  };
6121
6218
 
6122
6219
  // src/graphql/hooks/notifications/hooksQuery.ts
6123
- var import_client29 = require("@apollo/client");
6220
+ var import_client30 = require("@apollo/client");
6124
6221
  var useGetUserNotifications = (limit, offset) => {
6125
- const { data, loading, error, refetch } = (0, import_client29.useQuery)(GET_USER_NOTIFICATIONS, {
6222
+ const { data, loading, error, refetch } = (0, import_client30.useQuery)(GET_USER_NOTIFICATIONS, {
6126
6223
  fetchPolicy: "no-cache",
6127
6224
  variables: { limit, offset }
6128
6225
  });
@@ -6134,7 +6231,7 @@ var useGetUserNotifications = (limit, offset) => {
6134
6231
  };
6135
6232
  };
6136
6233
  var useGetNotificationCount = () => {
6137
- const { data, loading, error, refetch } = (0, import_client29.useQuery)(GET_NOTIFICATION_COUNT, {
6234
+ const { data, loading, error, refetch } = (0, import_client30.useQuery)(GET_NOTIFICATION_COUNT, {
6138
6235
  fetchPolicy: "no-cache"
6139
6236
  });
6140
6237
  return {
@@ -6146,11 +6243,11 @@ var useGetNotificationCount = () => {
6146
6243
  };
6147
6244
 
6148
6245
  // src/graphql/hooks/notifications/hooksSubscription.ts
6149
- var import_client31 = require("@apollo/client");
6246
+ var import_client32 = require("@apollo/client");
6150
6247
 
6151
6248
  // src/graphql/subscriptions/notification.ts
6152
- var import_client30 = require("@apollo/client");
6153
- var GET_NOTIFICATIONS_SUBSCRIPTION = import_client30.gql`
6249
+ var import_client31 = require("@apollo/client");
6250
+ var GET_NOTIFICATIONS_SUBSCRIPTION = import_client31.gql`
6154
6251
  subscription {
6155
6252
  getUserNotifications {
6156
6253
  ...NotificationFields
@@ -6158,7 +6255,7 @@ var GET_NOTIFICATIONS_SUBSCRIPTION = import_client30.gql`
6158
6255
  }
6159
6256
  ${NOTIFICATION_FRAGMENT}
6160
6257
  `;
6161
- var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client30.gql`
6258
+ var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client31.gql`
6162
6259
  subscription {
6163
6260
  getNotificationCount {
6164
6261
  total
@@ -6169,7 +6266,7 @@ var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client30.gql`
6169
6266
 
6170
6267
  // src/graphql/hooks/notifications/hooksSubscription.ts
6171
6268
  var useGetUserNotificationsSubscription = () => {
6172
- const { data, loading, error } = (0, import_client31.useSubscription)(GET_NOTIFICATIONS_SUBSCRIPTION, {
6269
+ const { data, loading, error } = (0, import_client32.useSubscription)(GET_NOTIFICATIONS_SUBSCRIPTION, {
6173
6270
  fetchPolicy: "no-cache",
6174
6271
  shouldResubscribe: true
6175
6272
  });
@@ -6180,7 +6277,7 @@ var useGetUserNotificationsSubscription = () => {
6180
6277
  };
6181
6278
  };
6182
6279
  var useGetNotificationCountSubscription = () => {
6183
- const { data, loading, error } = (0, import_client31.useSubscription)(GET_NOTIFICATION_COUNT_SUBSCRIPTION, {
6280
+ const { data, loading, error } = (0, import_client32.useSubscription)(GET_NOTIFICATION_COUNT_SUBSCRIPTION, {
6184
6281
  fetchPolicy: "no-cache",
6185
6282
  shouldResubscribe: true
6186
6283
  });
@@ -6192,11 +6289,11 @@ var useGetNotificationCountSubscription = () => {
6192
6289
  };
6193
6290
 
6194
6291
  // src/graphql/hooks/poster.ts
6195
- var import_client33 = require("@apollo/client");
6292
+ var import_client34 = require("@apollo/client");
6196
6293
 
6197
6294
  // src/graphql/mutations/poster.ts
6198
- var import_client32 = require("@apollo/client");
6199
- var CREATE_POSTER_MUTATION = import_client32.gql`
6295
+ var import_client33 = require("@apollo/client");
6296
+ var CREATE_POSTER_MUTATION = import_client33.gql`
6200
6297
  mutation createPoster($input: PosterInputType!) {
6201
6298
  createPoster(input: $input) {
6202
6299
  data {
@@ -6212,18 +6309,18 @@ var CREATE_POSTER_MUTATION = import_client32.gql`
6212
6309
 
6213
6310
  // src/graphql/hooks/poster.ts
6214
6311
  var useCreatePoster = () => {
6215
- const [createPoster, { loading, error }] = (0, import_client33.useMutation)(CREATE_POSTER_MUTATION, {
6312
+ const [createPoster, { loading, error }] = (0, import_client34.useMutation)(CREATE_POSTER_MUTATION, {
6216
6313
  refetchQueries: [{ query: GET_USER_EVENTS }, { query: GET_USER_VENDORS }]
6217
6314
  });
6218
6315
  return { createPoster, error, loading };
6219
6316
  };
6220
6317
 
6221
6318
  // src/graphql/hooks/pushToken.ts
6222
- var import_client35 = require("@apollo/client");
6319
+ var import_client36 = require("@apollo/client");
6223
6320
 
6224
6321
  // src/graphql/mutations/pushToken.ts
6225
- var import_client34 = require("@apollo/client");
6226
- var CREATE_PUSH_TOKEN_MUTATION = import_client34.gql`
6322
+ var import_client35 = require("@apollo/client");
6323
+ var CREATE_PUSH_TOKEN_MUTATION = import_client35.gql`
6227
6324
  mutation createPushToken($input: PushTokenInput!) {
6228
6325
  createPushToken(input: $input) {
6229
6326
  data {
@@ -6236,16 +6333,16 @@ var CREATE_PUSH_TOKEN_MUTATION = import_client34.gql`
6236
6333
 
6237
6334
  // src/graphql/hooks/pushToken.ts
6238
6335
  var useCreatePushToken = () => {
6239
- const [createPushToken, { loading, error }] = (0, import_client35.useMutation)(CREATE_PUSH_TOKEN_MUTATION);
6336
+ const [createPushToken, { loading, error }] = (0, import_client36.useMutation)(CREATE_PUSH_TOKEN_MUTATION);
6240
6337
  return { createPushToken, error, loading };
6241
6338
  };
6242
6339
 
6243
6340
  // src/graphql/hooks/relation/hooksMutation.ts
6244
- var import_client37 = require("@apollo/client");
6341
+ var import_client38 = require("@apollo/client");
6245
6342
 
6246
6343
  // src/graphql/mutations/relation.ts
6247
- var import_client36 = require("@apollo/client");
6248
- var CREATE_RELATION_MUTATION = import_client36.gql`
6344
+ var import_client37 = require("@apollo/client");
6345
+ var CREATE_RELATION_MUTATION = import_client37.gql`
6249
6346
  mutation createRelation($input: RelationInputType!) {
6250
6347
  createRelation(input: $input) {
6251
6348
  data {
@@ -6256,7 +6353,7 @@ var CREATE_RELATION_MUTATION = import_client36.gql`
6256
6353
  }
6257
6354
  ${RELATION_FIELDS_FRAGMENT}
6258
6355
  `;
6259
- var UPDATE_RELATION_MUTATION = import_client36.gql`
6356
+ var UPDATE_RELATION_MUTATION = import_client37.gql`
6260
6357
  mutation updateRelation($_id: ID!, $input: RelationInputType!) {
6261
6358
  updateRelation(_id: $_id, input: $input) {
6262
6359
  data {
@@ -6267,7 +6364,7 @@ var UPDATE_RELATION_MUTATION = import_client36.gql`
6267
6364
  }
6268
6365
  ${RELATION_FIELDS_FRAGMENT}
6269
6366
  `;
6270
- var DELETE_RELATION_MUTATION = import_client36.gql`
6367
+ var DELETE_RELATION_MUTATION = import_client37.gql`
6271
6368
  mutation deleteRelation($_id: ID!) {
6272
6369
  deleteRelation(_id: $_id) {
6273
6370
  data {
@@ -6281,7 +6378,7 @@ var DELETE_RELATION_MUTATION = import_client36.gql`
6281
6378
 
6282
6379
  // src/graphql/hooks/relation/hooksMutation.ts
6283
6380
  var useCreateRelation = () => {
6284
- const [createRelation, { loading, error }] = (0, import_client37.useMutation)(CREATE_RELATION_MUTATION, {
6381
+ const [createRelation, { loading, error }] = (0, import_client38.useMutation)(CREATE_RELATION_MUTATION, {
6285
6382
  awaitRefetchQueries: true,
6286
6383
  refetchQueries: (mutationResult) => {
6287
6384
  const createRelation2 = mutationResult?.data?.createRelation?.data;
@@ -6327,7 +6424,7 @@ var useCreateRelation = () => {
6327
6424
  return { createRelation, error, loading };
6328
6425
  };
6329
6426
  var useUpdateRelation = () => {
6330
- const [updateRelation, { loading, error }] = (0, import_client37.useMutation)(UPDATE_RELATION_MUTATION, {
6427
+ const [updateRelation, { loading, error }] = (0, import_client38.useMutation)(UPDATE_RELATION_MUTATION, {
6331
6428
  awaitRefetchQueries: true,
6332
6429
  refetchQueries: (mutationResult) => {
6333
6430
  const updateRelation2 = mutationResult?.data?.updateRelation?.data;
@@ -6370,7 +6467,7 @@ var useUpdateRelation = () => {
6370
6467
  return { error, loading, updateRelation };
6371
6468
  };
6372
6469
  var useDeleteRelation = () => {
6373
- const [deleteRelation, { loading, error }] = (0, import_client37.useMutation)(DELETE_RELATION_MUTATION, {
6470
+ const [deleteRelation, { loading, error }] = (0, import_client38.useMutation)(DELETE_RELATION_MUTATION, {
6374
6471
  awaitRefetchQueries: true,
6375
6472
  refetchQueries: (mutationResult) => {
6376
6473
  const deleteRelation2 = mutationResult?.data?.deleteRelation?.data;
@@ -6409,9 +6506,9 @@ var useDeleteRelation = () => {
6409
6506
  };
6410
6507
 
6411
6508
  // src/graphql/hooks/relation/hooksQuery.ts
6412
- var import_client38 = require("@apollo/client");
6509
+ var import_client39 = require("@apollo/client");
6413
6510
  var useGetRelation = (_id) => {
6414
- const { loading, error, data, refetch } = (0, import_client38.useQuery)(GET_RELATION, {
6511
+ const { loading, error, data, refetch } = (0, import_client39.useQuery)(GET_RELATION, {
6415
6512
  fetchPolicy: "network-only",
6416
6513
  skip: !_id,
6417
6514
  variables: _id ? { _id } : void 0
@@ -6420,7 +6517,7 @@ var useGetRelation = (_id) => {
6420
6517
  return { error, loading, refetch, relation };
6421
6518
  };
6422
6519
  var useGetRelationByEventAndVendor = (eventId, vendorId) => {
6423
- const { loading, error, data, refetch } = (0, import_client38.useQuery)(GET_RELATION_BY_EVENT_AND_VENDOR, {
6520
+ const { loading, error, data, refetch } = (0, import_client39.useQuery)(GET_RELATION_BY_EVENT_AND_VENDOR, {
6424
6521
  fetchPolicy: "network-only",
6425
6522
  skip: !eventId || eventId === "" || !vendorId || vendorId === "",
6426
6523
  variables: { eventId, vendorId }
@@ -6429,7 +6526,7 @@ var useGetRelationByEventAndVendor = (eventId, vendorId) => {
6429
6526
  return { error, loading, refetch, relationByEventAndVendor };
6430
6527
  };
6431
6528
  var useGetEventRelations = (eventId) => {
6432
- const { loading, error, data, refetch } = (0, import_client38.useQuery)(GET_EVENT_RELATIONS, {
6529
+ const { loading, error, data, refetch } = (0, import_client39.useQuery)(GET_EVENT_RELATIONS, {
6433
6530
  fetchPolicy: "network-only",
6434
6531
  skip: !eventId || eventId === "",
6435
6532
  variables: { eventId }
@@ -6438,7 +6535,7 @@ var useGetEventRelations = (eventId) => {
6438
6535
  return { error, eventRelations, loading, refetch };
6439
6536
  };
6440
6537
  var useGetVendorRelations = (vendorId) => {
6441
- const { loading, error, data, refetch } = (0, import_client38.useQuery)(GET_VENDOR_RELATIONS, {
6538
+ const { loading, error, data, refetch } = (0, import_client39.useQuery)(GET_VENDOR_RELATIONS, {
6442
6539
  fetchPolicy: "network-only",
6443
6540
  skip: !vendorId || vendorId === "",
6444
6541
  variables: { vendorId }
@@ -6447,7 +6544,7 @@ var useGetVendorRelations = (vendorId) => {
6447
6544
  return { error, loading, refetch, vendorRelations };
6448
6545
  };
6449
6546
  var useGetResourceConnections = (resourceId, resourceType) => {
6450
- const { loading, error, data, refetch } = (0, import_client38.useQuery)(GET_RESOURCE_CONNECTIONS, {
6547
+ const { loading, error, data, refetch } = (0, import_client39.useQuery)(GET_RESOURCE_CONNECTIONS, {
6451
6548
  fetchPolicy: "network-only",
6452
6549
  skip: !resourceId || resourceId === "" || !resourceType,
6453
6550
  variables: { resourceId, resourceType }
@@ -6457,30 +6554,30 @@ var useGetResourceConnections = (resourceId, resourceType) => {
6457
6554
  };
6458
6555
 
6459
6556
  // src/graphql/hooks/vendor/hooksMutation.ts
6460
- var import_client39 = require("@apollo/client");
6557
+ var import_client40 = require("@apollo/client");
6461
6558
  var useCreateVendor = () => {
6462
- const [createVendor, { loading, error }] = (0, import_client39.useMutation)(CREATE_VENDOR_MUTATION, {
6559
+ const [createVendor, { loading, error }] = (0, import_client40.useMutation)(CREATE_VENDOR_MUTATION, {
6463
6560
  awaitRefetchQueries: true,
6464
6561
  refetchQueries: [{ query: GET_USER_VENDORS }]
6465
6562
  });
6466
6563
  return { createVendor, error, loading };
6467
6564
  };
6468
6565
  var useUpdateVendor = () => {
6469
- const [updateVendor, { loading, error }] = (0, import_client39.useMutation)(UPDATE_VENDOR_MUTATION, {
6566
+ const [updateVendor, { loading, error }] = (0, import_client40.useMutation)(UPDATE_VENDOR_MUTATION, {
6470
6567
  awaitRefetchQueries: true,
6471
6568
  refetchQueries: [{ query: GET_USER_VENDORS }]
6472
6569
  });
6473
6570
  return { error, loading, updateVendor };
6474
6571
  };
6475
6572
  var useDeleteVendor = () => {
6476
- const [deleteVendor, { loading, error }] = (0, import_client39.useMutation)(DELETE_VENDOR_MUTATION, {
6573
+ const [deleteVendor, { loading, error }] = (0, import_client40.useMutation)(DELETE_VENDOR_MUTATION, {
6477
6574
  awaitRefetchQueries: true,
6478
6575
  refetchQueries: [{ query: GET_USER_VENDORS }]
6479
6576
  });
6480
6577
  return { deleteVendor, error, loading };
6481
6578
  };
6482
6579
  var useCreateVendorInfo = () => {
6483
- const [createVendorInfo, { loading, error }] = (0, import_client39.useMutation)(CREATE_VENDOR_INFO_MUTATION, {
6580
+ const [createVendorInfo, { loading, error }] = (0, import_client40.useMutation)(CREATE_VENDOR_INFO_MUTATION, {
6484
6581
  awaitRefetchQueries: true,
6485
6582
  refetchQueries: (mutationResult) => {
6486
6583
  const vendorId = mutationResult?.data?.createVendorInfo?.data?.vendorId;
@@ -6504,7 +6601,7 @@ var useCreateVendorInfo = () => {
6504
6601
  return { createVendorInfo, error, loading };
6505
6602
  };
6506
6603
  var useUpdateVendorInfo = () => {
6507
- const [updateVendorInfo, { loading, error }] = (0, import_client39.useMutation)(UPDATE_VENDOR_INFO_MUTATION, {
6604
+ const [updateVendorInfo, { loading, error }] = (0, import_client40.useMutation)(UPDATE_VENDOR_INFO_MUTATION, {
6508
6605
  awaitRefetchQueries: true,
6509
6606
  refetchQueries: (mutationResult) => {
6510
6607
  const vendorId = mutationResult?.data?.updateVendorInfo?.data?.vendorId;
@@ -6521,30 +6618,30 @@ var useUpdateVendorInfo = () => {
6521
6618
  return { error, loading, updateVendorInfo };
6522
6619
  };
6523
6620
  var useCreateUnregisteredVendor = () => {
6524
- const [createUnregisteredVendor, { loading, error }] = (0, import_client39.useMutation)(CREATE_UNREGISTERED_VENDOR_MUTATION);
6621
+ const [createUnregisteredVendor, { loading, error }] = (0, import_client40.useMutation)(CREATE_UNREGISTERED_VENDOR_MUTATION);
6525
6622
  return { createUnregisteredVendor, error, loading };
6526
6623
  };
6527
6624
  var useUpdateUnregisteredVendor = () => {
6528
- const [updateUnregisteredVendor, { loading, error }] = (0, import_client39.useMutation)(UPDATE_UNREGISTERED_VENDOR_MUTATION);
6625
+ const [updateUnregisteredVendor, { loading, error }] = (0, import_client40.useMutation)(UPDATE_UNREGISTERED_VENDOR_MUTATION);
6529
6626
  return { error, loading, updateUnregisteredVendor };
6530
6627
  };
6531
6628
  var useDeleteUnregisteredVendor = () => {
6532
- const [deleteUnregisteredVendor, { loading, error }] = (0, import_client39.useMutation)(DELETE_UNREGISTERED_VENDOR_MUTATION);
6629
+ const [deleteUnregisteredVendor, { loading, error }] = (0, import_client40.useMutation)(DELETE_UNREGISTERED_VENDOR_MUTATION);
6533
6630
  return { deleteUnregisteredVendor, error, loading };
6534
6631
  };
6535
6632
  var useUnlinkUnregisteredVendorByInviterId = () => {
6536
- const [unlinkUnregisteredVendorByInviterId, { loading, error }] = (0, import_client39.useMutation)(UNLINK_UNREGISTERED_VENDOR_BY_INVITER_ID_MUTATION);
6633
+ const [unlinkUnregisteredVendorByInviterId, { loading, error }] = (0, import_client40.useMutation)(UNLINK_UNREGISTERED_VENDOR_BY_INVITER_ID_MUTATION);
6537
6634
  return { error, loading, unlinkUnregisteredVendorByInviterId };
6538
6635
  };
6539
6636
  var useActivateVendorClaim = () => {
6540
- const [activateVendorClaim, { loading, error }] = (0, import_client39.useMutation)(ACTIVATE_VENDOR_CLAIM_MUTATION);
6637
+ const [activateVendorClaim, { loading, error }] = (0, import_client40.useMutation)(ACTIVATE_VENDOR_CLAIM_MUTATION);
6541
6638
  return { activateVendorClaim, error, loading };
6542
6639
  };
6543
6640
 
6544
6641
  // src/graphql/hooks/vendor/hooksQuery.ts
6545
- var import_client40 = require("@apollo/client");
6642
+ var import_client41 = require("@apollo/client");
6546
6643
  var useGetVendors = () => {
6547
- const { loading, error, data, refetch } = (0, import_client40.useQuery)(
6644
+ const { loading, error, data, refetch } = (0, import_client41.useQuery)(
6548
6645
  GET_VENDORS,
6549
6646
  {
6550
6647
  fetchPolicy: "network-only"
@@ -6559,7 +6656,7 @@ var useGetVendors = () => {
6559
6656
  };
6560
6657
  };
6561
6658
  var useGetVendor = (_id) => {
6562
- const { loading, error, data, refetch } = (0, import_client40.useQuery)(
6659
+ const { loading, error, data, refetch } = (0, import_client41.useQuery)(
6563
6660
  GET_VENDOR,
6564
6661
  {
6565
6662
  fetchPolicy: "network-only",
@@ -6575,7 +6672,7 @@ var useGetVendorsByRegion = (region, options) => {
6575
6672
  options,
6576
6673
  region
6577
6674
  };
6578
- const { loading, error, data, refetch, fetchMore } = (0, import_client40.useQuery)(GET_VENDORS_BY_REGION, {
6675
+ const { loading, error, data, refetch, fetchMore } = (0, import_client41.useQuery)(GET_VENDORS_BY_REGION, {
6579
6676
  fetchPolicy: "network-only",
6580
6677
  variables
6581
6678
  });
@@ -6589,7 +6686,7 @@ var useGetVendorsByRegion = (region, options) => {
6589
6686
  };
6590
6687
  };
6591
6688
  var useSearchVendors = (search, region) => {
6592
- const { loading, error, data, refetch } = (0, import_client40.useQuery)(SEARCH_VENDORS, {
6689
+ const { loading, error, data, refetch } = (0, import_client41.useQuery)(SEARCH_VENDORS, {
6593
6690
  fetchPolicy: "network-only",
6594
6691
  skip: search.length < 3,
6595
6692
  variables: { region, search }
@@ -6598,7 +6695,7 @@ var useSearchVendors = (search, region) => {
6598
6695
  return { error, loading, refetch, vendorSearch };
6599
6696
  };
6600
6697
  var useGetVendorInfo = (vendorId) => {
6601
- const { loading, error, data, refetch } = (0, import_client40.useQuery)(GET_VENDOR_INFO, {
6698
+ const { loading, error, data, refetch } = (0, import_client41.useQuery)(GET_VENDOR_INFO, {
6602
6699
  fetchPolicy: "network-only",
6603
6700
  skip: !vendorId || vendorId === "",
6604
6701
  variables: { vendorId }
@@ -6612,7 +6709,7 @@ var useGetVendorInfo = (vendorId) => {
6612
6709
  };
6613
6710
  };
6614
6711
  var useGetUnregisteredVendors = () => {
6615
- const { loading, error, data, refetch } = (0, import_client40.useQuery)(GET_UNREGISTERED_VENDORS, {
6712
+ const { loading, error, data, refetch } = (0, import_client41.useQuery)(GET_UNREGISTERED_VENDORS, {
6616
6713
  fetchPolicy: "network-only"
6617
6714
  });
6618
6715
  const unregisteredVendors = data?.unregisteredVendors || [];
@@ -6624,7 +6721,7 @@ var useGetUnregisteredVendors = () => {
6624
6721
  };
6625
6722
  };
6626
6723
  var useGetUnregisteredVendorsByInviterId = (inviterId) => {
6627
- const { loading, error, data, refetch } = (0, import_client40.useQuery)(GET_UNREGISTERED_VENDORS_BY_INVITER_ID, {
6724
+ const { loading, error, data, refetch } = (0, import_client41.useQuery)(GET_UNREGISTERED_VENDORS_BY_INVITER_ID, {
6628
6725
  fetchPolicy: "network-only",
6629
6726
  skip: !inviterId || inviterId === "",
6630
6727
  variables: { inviterId }
@@ -6633,7 +6730,7 @@ var useGetUnregisteredVendorsByInviterId = (inviterId) => {
6633
6730
  return { error, loading, refetch, unregisteredVendorsByInviterId };
6634
6731
  };
6635
6732
  var useGetUnregisteredVendor = (_id) => {
6636
- const { loading, error, data, refetch } = (0, import_client40.useQuery)(GET_UNREGISTERED_VENDOR, {
6733
+ const { loading, error, data, refetch } = (0, import_client41.useQuery)(GET_UNREGISTERED_VENDOR, {
6637
6734
  fetchPolicy: "network-only",
6638
6735
  skip: !_id || _id === "",
6639
6736
  variables: { _id }
@@ -6642,7 +6739,7 @@ var useGetUnregisteredVendor = (_id) => {
6642
6739
  return { error, loading, refetch, unregisteredVendor };
6643
6740
  };
6644
6741
  var useMyPendingVendorClaim = (skip = false) => {
6645
- const { loading, error, data, refetch } = (0, import_client40.useQuery)(MY_PENDING_VENDOR_CLAIM, {
6742
+ const { loading, error, data, refetch } = (0, import_client41.useQuery)(MY_PENDING_VENDOR_CLAIM, {
6646
6743
  fetchPolicy: "network-only",
6647
6744
  skip
6648
6745
  });
@@ -6655,11 +6752,11 @@ var useMyPendingVendorClaim = (skip = false) => {
6655
6752
  };
6656
6753
 
6657
6754
  // src/graphql/hooks/user/hooksMutation.ts
6658
- var import_client42 = require("@apollo/client");
6755
+ var import_client43 = require("@apollo/client");
6659
6756
 
6660
6757
  // src/graphql/mutations/user.ts
6661
- var import_client41 = require("@apollo/client");
6662
- var CREATE_USER_MUTATION = import_client41.gql`
6758
+ var import_client42 = require("@apollo/client");
6759
+ var CREATE_USER_MUTATION = import_client42.gql`
6663
6760
  mutation createUser($input: UserInputType!) {
6664
6761
  createUser(input: $input) {
6665
6762
  data {
@@ -6670,7 +6767,7 @@ var CREATE_USER_MUTATION = import_client41.gql`
6670
6767
  }
6671
6768
  ${USER_FIELDS_FRAGMENT}
6672
6769
  `;
6673
- var UPDATE_USER_MUTATION = import_client41.gql`
6770
+ var UPDATE_USER_MUTATION = import_client42.gql`
6674
6771
  mutation updateUser($_id: ID!, $input: UserInputType!) {
6675
6772
  updateUser(_id: $_id, input: $input) {
6676
6773
  data {
@@ -6681,7 +6778,7 @@ var UPDATE_USER_MUTATION = import_client41.gql`
6681
6778
  }
6682
6779
  ${USER_FIELDS_FRAGMENT}
6683
6780
  `;
6684
- var DELETE_USER_MUTATION = import_client41.gql`
6781
+ var DELETE_USER_MUTATION = import_client42.gql`
6685
6782
  mutation deleteUser($email: String!) {
6686
6783
  deleteUser(email: $email) {
6687
6784
  data
@@ -6689,7 +6786,7 @@ var DELETE_USER_MUTATION = import_client41.gql`
6689
6786
  }
6690
6787
  }
6691
6788
  `;
6692
- var REDEEM_REWARD_MUTATION = import_client41.gql`
6789
+ var REDEEM_REWARD_MUTATION = import_client42.gql`
6693
6790
  mutation redeemReward($input: RedeemRewardInputType!) {
6694
6791
  redeemReward(input: $input) {
6695
6792
  data {
@@ -6699,7 +6796,7 @@ var REDEEM_REWARD_MUTATION = import_client41.gql`
6699
6796
  }
6700
6797
  }
6701
6798
  `;
6702
- var ADD_USER_FAVOURITE_RESOURCE_MUTATION = import_client41.gql`
6799
+ var ADD_USER_FAVOURITE_RESOURCE_MUTATION = import_client42.gql`
6703
6800
  mutation addUserFavouriteResource(
6704
6801
  $resourceId: ID!
6705
6802
  $resourceType: ResourceTypeEnum!
@@ -6716,7 +6813,7 @@ var ADD_USER_FAVOURITE_RESOURCE_MUTATION = import_client41.gql`
6716
6813
  }
6717
6814
  ${USER_FIELDS_FRAGMENT}
6718
6815
  `;
6719
- var REMOVE_USER_FAVOURITE_RESOURCE_MUTATION = import_client41.gql`
6816
+ var REMOVE_USER_FAVOURITE_RESOURCE_MUTATION = import_client42.gql`
6720
6817
  mutation removeUserFavouriteResource(
6721
6818
  $resourceId: ID!
6722
6819
  $resourceType: ResourceTypeEnum!
@@ -6733,7 +6830,7 @@ var REMOVE_USER_FAVOURITE_RESOURCE_MUTATION = import_client41.gql`
6733
6830
  }
6734
6831
  ${USER_FIELDS_FRAGMENT}
6735
6832
  `;
6736
- var ADD_USER_INTEREST_RESOURCE_MUTATION = import_client41.gql`
6833
+ var ADD_USER_INTEREST_RESOURCE_MUTATION = import_client42.gql`
6737
6834
  mutation addUserInterestResource($input: UserActivityInputType!) {
6738
6835
  addUserInterestResource(input: $input) {
6739
6836
  data {
@@ -6744,7 +6841,7 @@ var ADD_USER_INTEREST_RESOURCE_MUTATION = import_client41.gql`
6744
6841
  }
6745
6842
  ${USER_FIELDS_FRAGMENT}
6746
6843
  `;
6747
- var REMOVE_USER_INTEREST_RESOURCE_MUTATION = import_client41.gql`
6844
+ var REMOVE_USER_INTEREST_RESOURCE_MUTATION = import_client42.gql`
6748
6845
  mutation removeUserInterestResource($input: UserActivityInputType!) {
6749
6846
  removeUserInterestResource(input: $input) {
6750
6847
  data {
@@ -6755,7 +6852,7 @@ var REMOVE_USER_INTEREST_RESOURCE_MUTATION = import_client41.gql`
6755
6852
  }
6756
6853
  ${USER_FIELDS_FRAGMENT}
6757
6854
  `;
6758
- var ADD_USER_GOING_RESOURCE_MUTATION = import_client41.gql`
6855
+ var ADD_USER_GOING_RESOURCE_MUTATION = import_client42.gql`
6759
6856
  mutation addUserGoingResource($input: UserActivityInputType!) {
6760
6857
  addUserGoingResource(input: $input) {
6761
6858
  data {
@@ -6766,7 +6863,7 @@ var ADD_USER_GOING_RESOURCE_MUTATION = import_client41.gql`
6766
6863
  }
6767
6864
  ${USER_FIELDS_FRAGMENT}
6768
6865
  `;
6769
- var REMOVE_USER_GOING_RESOURCE_MUTATION = import_client41.gql`
6866
+ var REMOVE_USER_GOING_RESOURCE_MUTATION = import_client42.gql`
6770
6867
  mutation removeUserGoingResource($input: UserActivityInputType!) {
6771
6868
  removeUserGoingResource(input: $input) {
6772
6869
  data {
@@ -6777,7 +6874,7 @@ var REMOVE_USER_GOING_RESOURCE_MUTATION = import_client41.gql`
6777
6874
  }
6778
6875
  ${USER_FIELDS_FRAGMENT}
6779
6876
  `;
6780
- var ADD_USER_PRESENT_RESOURCE_MUTATION = import_client41.gql`
6877
+ var ADD_USER_PRESENT_RESOURCE_MUTATION = import_client42.gql`
6781
6878
  mutation addUserPresentResource($input: UserActivityInputType!) {
6782
6879
  addUserPresentResource(input: $input) {
6783
6880
  data {
@@ -6788,7 +6885,7 @@ var ADD_USER_PRESENT_RESOURCE_MUTATION = import_client41.gql`
6788
6885
  }
6789
6886
  ${USER_FIELDS_FRAGMENT}
6790
6887
  `;
6791
- var REMOVE_USER_PRESENT_RESOURCE_MUTATION = import_client41.gql`
6888
+ var REMOVE_USER_PRESENT_RESOURCE_MUTATION = import_client42.gql`
6792
6889
  mutation removeUserPresentResource($input: UserActivityInputType!) {
6793
6890
  removeUserPresentResource(input: $input) {
6794
6891
  data {
@@ -6799,7 +6896,7 @@ var REMOVE_USER_PRESENT_RESOURCE_MUTATION = import_client41.gql`
6799
6896
  }
6800
6897
  ${USER_FIELDS_FRAGMENT}
6801
6898
  `;
6802
- var SELECT_STANDARD_PACKAGE_MUTATION = import_client41.gql`
6899
+ var SELECT_STANDARD_PACKAGE_MUTATION = import_client42.gql`
6803
6900
  mutation selectStandardPackage($selectedLicence: LicencesEnumType!) {
6804
6901
  selectStandardPackage(selectedLicence: $selectedLicence) {
6805
6902
  data {
@@ -6816,11 +6913,11 @@ var SELECT_STANDARD_PACKAGE_MUTATION = import_client41.gql`
6816
6913
 
6817
6914
  // src/graphql/hooks/user/hooksMutation.ts
6818
6915
  var useCreateUser = () => {
6819
- const [createUser, { loading, error }] = (0, import_client42.useMutation)(CREATE_USER_MUTATION);
6916
+ const [createUser, { loading, error }] = (0, import_client43.useMutation)(CREATE_USER_MUTATION);
6820
6917
  return { createUser, error, loading };
6821
6918
  };
6822
6919
  var useUpdateUser = () => {
6823
- const [updateUser, { loading, error }] = (0, import_client42.useMutation)(UPDATE_USER_MUTATION, {
6920
+ const [updateUser, { loading, error }] = (0, import_client43.useMutation)(UPDATE_USER_MUTATION, {
6824
6921
  awaitRefetchQueries: true,
6825
6922
  refetchQueries: (mutationResult) => {
6826
6923
  const userId = mutationResult?.data?.updateUser?.data?._id;
@@ -6831,11 +6928,11 @@ var useUpdateUser = () => {
6831
6928
  return { error, loading, updateUser };
6832
6929
  };
6833
6930
  var useDeleteUser = () => {
6834
- const [deleteUser, { loading, error }] = (0, import_client42.useMutation)(DELETE_USER_MUTATION);
6931
+ const [deleteUser, { loading, error }] = (0, import_client43.useMutation)(DELETE_USER_MUTATION);
6835
6932
  return { deleteUser, error, loading };
6836
6933
  };
6837
6934
  var useRedeemReward = () => {
6838
- const [redeemReward, { loading, error }] = (0, import_client42.useMutation)(REDEEM_REWARD_MUTATION, {
6935
+ const [redeemReward, { loading, error }] = (0, import_client43.useMutation)(REDEEM_REWARD_MUTATION, {
6839
6936
  awaitRefetchQueries: true,
6840
6937
  refetchQueries: (mutationResult) => {
6841
6938
  const userId = mutationResult?.data?.redeemReward?.data?.userId;
@@ -6852,63 +6949,63 @@ var useRedeemReward = () => {
6852
6949
  return { error, loading, redeemReward };
6853
6950
  };
6854
6951
  var useAddUserFavouriteResource = () => {
6855
- const [addUserFavouriteResource, { loading, error }] = (0, import_client42.useMutation)(ADD_USER_FAVOURITE_RESOURCE_MUTATION, {
6952
+ const [addUserFavouriteResource, { loading, error }] = (0, import_client43.useMutation)(ADD_USER_FAVOURITE_RESOURCE_MUTATION, {
6856
6953
  awaitRefetchQueries: true,
6857
6954
  refetchQueries: [{ query: GET_USER_ACTIVITIES }]
6858
6955
  });
6859
6956
  return { addUserFavouriteResource, error, loading };
6860
6957
  };
6861
6958
  var useRemoveUserFavouriteResource = () => {
6862
- const [removeUserFavouriteResource, { loading, error }] = (0, import_client42.useMutation)(REMOVE_USER_FAVOURITE_RESOURCE_MUTATION, {
6959
+ const [removeUserFavouriteResource, { loading, error }] = (0, import_client43.useMutation)(REMOVE_USER_FAVOURITE_RESOURCE_MUTATION, {
6863
6960
  awaitRefetchQueries: true,
6864
6961
  refetchQueries: [{ query: GET_USER_ACTIVITIES }]
6865
6962
  });
6866
6963
  return { error, loading, removeUserFavouriteResource };
6867
6964
  };
6868
6965
  var useAddUserInterestResource = () => {
6869
- const [addUserInterestResource, { loading, error }] = (0, import_client42.useMutation)(ADD_USER_INTEREST_RESOURCE_MUTATION, {
6966
+ const [addUserInterestResource, { loading, error }] = (0, import_client43.useMutation)(ADD_USER_INTEREST_RESOURCE_MUTATION, {
6870
6967
  awaitRefetchQueries: true,
6871
6968
  refetchQueries: [{ query: GET_USER_ACTIVITIES }]
6872
6969
  });
6873
6970
  return { addUserInterestResource, error, loading };
6874
6971
  };
6875
6972
  var useRemoveUserInterestResource = () => {
6876
- const [removeUserInterestResource, { loading, error }] = (0, import_client42.useMutation)(REMOVE_USER_INTEREST_RESOURCE_MUTATION, {
6973
+ const [removeUserInterestResource, { loading, error }] = (0, import_client43.useMutation)(REMOVE_USER_INTEREST_RESOURCE_MUTATION, {
6877
6974
  awaitRefetchQueries: true,
6878
6975
  refetchQueries: [{ query: GET_USER_ACTIVITIES }]
6879
6976
  });
6880
6977
  return { error, loading, removeUserInterestResource };
6881
6978
  };
6882
6979
  var useAddUserGoingResource = () => {
6883
- const [addUserGoingResource, { loading, error }] = (0, import_client42.useMutation)(ADD_USER_GOING_RESOURCE_MUTATION, {
6980
+ const [addUserGoingResource, { loading, error }] = (0, import_client43.useMutation)(ADD_USER_GOING_RESOURCE_MUTATION, {
6884
6981
  awaitRefetchQueries: true,
6885
6982
  refetchQueries: [{ query: GET_USER_ACTIVITIES }]
6886
6983
  });
6887
6984
  return { addUserGoingResource, error, loading };
6888
6985
  };
6889
6986
  var useRemoveUserGoingResource = () => {
6890
- const [removeUserGoingResource, { loading, error }] = (0, import_client42.useMutation)(REMOVE_USER_GOING_RESOURCE_MUTATION, {
6987
+ const [removeUserGoingResource, { loading, error }] = (0, import_client43.useMutation)(REMOVE_USER_GOING_RESOURCE_MUTATION, {
6891
6988
  awaitRefetchQueries: true,
6892
6989
  refetchQueries: [{ query: GET_USER_ACTIVITIES }]
6893
6990
  });
6894
6991
  return { error, loading, removeUserGoingResource };
6895
6992
  };
6896
6993
  var useAddUserPresentResource = () => {
6897
- const [addUserPresentResource, { loading, error }] = (0, import_client42.useMutation)(ADD_USER_PRESENT_RESOURCE_MUTATION, {
6994
+ const [addUserPresentResource, { loading, error }] = (0, import_client43.useMutation)(ADD_USER_PRESENT_RESOURCE_MUTATION, {
6898
6995
  awaitRefetchQueries: true,
6899
6996
  refetchQueries: [{ query: GET_USER_ACTIVITIES }]
6900
6997
  });
6901
6998
  return { addUserPresentResource, error, loading };
6902
6999
  };
6903
7000
  var useRemoveUserPresentResource = () => {
6904
- const [removeUserPresentResource, { loading, error }] = (0, import_client42.useMutation)(REMOVE_USER_PRESENT_RESOURCE_MUTATION, {
7001
+ const [removeUserPresentResource, { loading, error }] = (0, import_client43.useMutation)(REMOVE_USER_PRESENT_RESOURCE_MUTATION, {
6905
7002
  awaitRefetchQueries: true,
6906
7003
  refetchQueries: [{ query: GET_USER_ACTIVITIES }]
6907
7004
  });
6908
7005
  return { error, loading, removeUserPresentResource };
6909
7006
  };
6910
7007
  var useSelectStandardPackage = () => {
6911
- const [selectStandardPackage, { loading, error }] = (0, import_client42.useMutation)(SELECT_STANDARD_PACKAGE_MUTATION, {
7008
+ const [selectStandardPackage, { loading, error }] = (0, import_client43.useMutation)(SELECT_STANDARD_PACKAGE_MUTATION, {
6912
7009
  awaitRefetchQueries: true,
6913
7010
  refetchQueries: (mutationResult) => {
6914
7011
  const userId = mutationResult?.data?.selectStandardPackage?.data?.userId;
@@ -6924,9 +7021,9 @@ var useSelectStandardPackage = () => {
6924
7021
  };
6925
7022
 
6926
7023
  // src/graphql/hooks/user/hooksQuery.ts
6927
- var import_client43 = require("@apollo/client");
7024
+ var import_client44 = require("@apollo/client");
6928
7025
  var useGetUsers = () => {
6929
- const { loading, error, data, refetch } = (0, import_client43.useQuery)(
7026
+ const { loading, error, data, refetch } = (0, import_client44.useQuery)(
6930
7027
  GET_USERS,
6931
7028
  {
6932
7029
  fetchPolicy: "network-only"
@@ -6936,7 +7033,7 @@ var useGetUsers = () => {
6936
7033
  return { error, loading, refetch, users };
6937
7034
  };
6938
7035
  var useGetUser = (_id) => {
6939
- const { loading, error, data, refetch } = (0, import_client43.useQuery)(
7036
+ const { loading, error, data, refetch } = (0, import_client44.useQuery)(
6940
7037
  GET_USER,
6941
7038
  {
6942
7039
  fetchPolicy: "network-only",
@@ -6948,28 +7045,28 @@ var useGetUser = (_id) => {
6948
7045
  return { error, loading, refetch, user };
6949
7046
  };
6950
7047
  var useGetUserEvents = () => {
6951
- const { loading, error, data, refetch } = (0, import_client43.useQuery)(GET_USER_EVENTS, {
7048
+ const { loading, error, data, refetch } = (0, import_client44.useQuery)(GET_USER_EVENTS, {
6952
7049
  fetchPolicy: "network-only"
6953
7050
  });
6954
7051
  const userEvents = data?.userEvents || [];
6955
7052
  return { error, loading, refetch, userEvents };
6956
7053
  };
6957
7054
  var useGetUserVendors = () => {
6958
- const { loading, error, data, refetch } = (0, import_client43.useQuery)(GET_USER_VENDORS, {
7055
+ const { loading, error, data, refetch } = (0, import_client44.useQuery)(GET_USER_VENDORS, {
6959
7056
  fetchPolicy: "network-only"
6960
7057
  });
6961
7058
  const userVendors = data?.userVendors || [];
6962
7059
  return { error, loading, refetch, userVendors };
6963
7060
  };
6964
7061
  var useGetUserPartners = () => {
6965
- const { loading, error, data, refetch } = (0, import_client43.useQuery)(GET_USER_PARTNERS, {
7062
+ const { loading, error, data, refetch } = (0, import_client44.useQuery)(GET_USER_PARTNERS, {
6966
7063
  fetchPolicy: "network-only"
6967
7064
  });
6968
7065
  const userPartners = data?.userPartners || [];
6969
7066
  return { error, loading, refetch, userPartners };
6970
7067
  };
6971
7068
  var useGetUserActivities = () => {
6972
- const { loading, error, data, refetch } = (0, import_client43.useQuery)(GET_USER_ACTIVITIES, {
7069
+ const { loading, error, data, refetch } = (0, import_client44.useQuery)(GET_USER_ACTIVITIES, {
6973
7070
  fetchPolicy: "network-only"
6974
7071
  });
6975
7072
  const userActivities = {
@@ -6991,7 +7088,7 @@ var useGetUserActivities = () => {
6991
7088
  return { error, loading, refetch, userActivities };
6992
7089
  };
6993
7090
  var useGetUserResources = (userId) => {
6994
- const { loading, error, data, refetch } = (0, import_client43.useQuery)(GET_USER_RESOURCES, {
7091
+ const { loading, error, data, refetch } = (0, import_client44.useQuery)(GET_USER_RESOURCES, {
6995
7092
  fetchPolicy: "network-only",
6996
7093
  skip: !userId || userId === "",
6997
7094
  variables: { userId }
@@ -7001,14 +7098,14 @@ var useGetUserResources = (userId) => {
7001
7098
  };
7002
7099
 
7003
7100
  // src/graphql/hooks/ad/hooksMutation.ts
7004
- var import_client46 = require("@apollo/client");
7101
+ var import_client47 = require("@apollo/client");
7005
7102
 
7006
7103
  // src/graphql/mutations/ad.ts
7007
- var import_client45 = require("@apollo/client");
7104
+ var import_client46 = require("@apollo/client");
7008
7105
 
7009
7106
  // src/graphql/queries/ad.ts
7010
- var import_client44 = require("@apollo/client");
7011
- var AD_FIELDS_FRAGMENT = import_client44.gql`
7107
+ var import_client45 = require("@apollo/client");
7108
+ var AD_FIELDS_FRAGMENT = import_client45.gql`
7012
7109
  fragment AdFields on AdType {
7013
7110
  _id
7014
7111
  active
@@ -7035,7 +7132,7 @@ var AD_FIELDS_FRAGMENT = import_client44.gql`
7035
7132
  updatedAt
7036
7133
  }
7037
7134
  `;
7038
- var GET_ADS = import_client44.gql`
7135
+ var GET_ADS = import_client45.gql`
7039
7136
  query getAds {
7040
7137
  ads {
7041
7138
  ...AdFields
@@ -7043,7 +7140,7 @@ var GET_ADS = import_client44.gql`
7043
7140
  }
7044
7141
  ${AD_FIELDS_FRAGMENT}
7045
7142
  `;
7046
- var GET_AD = import_client44.gql`
7143
+ var GET_AD = import_client45.gql`
7047
7144
  query getAd($_id: ID!) {
7048
7145
  ad(_id: $_id) {
7049
7146
  ...AdFields
@@ -7051,7 +7148,7 @@ var GET_AD = import_client44.gql`
7051
7148
  }
7052
7149
  ${AD_FIELDS_FRAGMENT}
7053
7150
  `;
7054
- var GET_ADS_BY_REGION = import_client44.gql`
7151
+ var GET_ADS_BY_REGION = import_client45.gql`
7055
7152
  query getAdsByRegion($region: String!, $status: AdStatusTypeEnum) {
7056
7153
  adsByRegion(region: $region, status: $status) {
7057
7154
  ...AdFields
@@ -7061,7 +7158,7 @@ var GET_ADS_BY_REGION = import_client44.gql`
7061
7158
  `;
7062
7159
 
7063
7160
  // src/graphql/mutations/ad.ts
7064
- var CREATE_AD_MUTATION = import_client45.gql`
7161
+ var CREATE_AD_MUTATION = import_client46.gql`
7065
7162
  mutation createAd($input: AdInputType!) {
7066
7163
  createAd(input: $input) {
7067
7164
  data {
@@ -7072,7 +7169,7 @@ var CREATE_AD_MUTATION = import_client45.gql`
7072
7169
  }
7073
7170
  ${AD_FIELDS_FRAGMENT}
7074
7171
  `;
7075
- var UPDATE_AD_MUTATION = import_client45.gql`
7172
+ var UPDATE_AD_MUTATION = import_client46.gql`
7076
7173
  mutation updateAd($_id: ID!, $input: AdInputType!) {
7077
7174
  updateAd(_id: $_id, input: $input) {
7078
7175
  data {
@@ -7083,7 +7180,7 @@ var UPDATE_AD_MUTATION = import_client45.gql`
7083
7180
  }
7084
7181
  ${AD_FIELDS_FRAGMENT}
7085
7182
  `;
7086
- var DELETE_AD_MUTATION = import_client45.gql`
7183
+ var DELETE_AD_MUTATION = import_client46.gql`
7087
7184
  mutation deleteAd($_id: ID!) {
7088
7185
  deleteAd(_id: $_id) {
7089
7186
  data
@@ -7094,7 +7191,7 @@ var DELETE_AD_MUTATION = import_client45.gql`
7094
7191
 
7095
7192
  // src/graphql/hooks/ad/hooksMutation.ts
7096
7193
  var useCreateAd = () => {
7097
- const [createAd, { loading, error }] = (0, import_client46.useMutation)(CREATE_AD_MUTATION, {
7194
+ const [createAd, { loading, error }] = (0, import_client47.useMutation)(CREATE_AD_MUTATION, {
7098
7195
  awaitRefetchQueries: true,
7099
7196
  refetchQueries: [{ query: GET_ADS }]
7100
7197
  });
@@ -7105,7 +7202,7 @@ var useCreateAd = () => {
7105
7202
  };
7106
7203
  };
7107
7204
  var useUpdateAd = () => {
7108
- const [updateAd, { loading, error }] = (0, import_client46.useMutation)(UPDATE_AD_MUTATION, {
7205
+ const [updateAd, { loading, error }] = (0, import_client47.useMutation)(UPDATE_AD_MUTATION, {
7109
7206
  awaitRefetchQueries: true,
7110
7207
  refetchQueries: [{ query: GET_ADS }]
7111
7208
  });
@@ -7116,7 +7213,7 @@ var useUpdateAd = () => {
7116
7213
  };
7117
7214
  };
7118
7215
  var useDeleteAd = () => {
7119
- const [deleteAd, { loading, error }] = (0, import_client46.useMutation)(DELETE_AD_MUTATION, {
7216
+ const [deleteAd, { loading, error }] = (0, import_client47.useMutation)(DELETE_AD_MUTATION, {
7120
7217
  awaitRefetchQueries: true,
7121
7218
  refetchQueries: [{ query: GET_ADS }]
7122
7219
  });
@@ -7128,9 +7225,9 @@ var useDeleteAd = () => {
7128
7225
  };
7129
7226
 
7130
7227
  // src/graphql/hooks/ad/hooksQuery.ts
7131
- var import_client47 = require("@apollo/client");
7228
+ var import_client48 = require("@apollo/client");
7132
7229
  var useGetAds = () => {
7133
- const { data, loading, error, refetch } = (0, import_client47.useQuery)(
7230
+ const { data, loading, error, refetch } = (0, import_client48.useQuery)(
7134
7231
  GET_ADS,
7135
7232
  {
7136
7233
  fetchPolicy: "no-cache"
@@ -7144,7 +7241,7 @@ var useGetAds = () => {
7144
7241
  };
7145
7242
  };
7146
7243
  var useGetAd = (_id) => {
7147
- const { data, loading, error, refetch } = (0, import_client47.useQuery)(GET_AD, {
7244
+ const { data, loading, error, refetch } = (0, import_client48.useQuery)(GET_AD, {
7148
7245
  fetchPolicy: "no-cache",
7149
7246
  skip: !_id || _id === "",
7150
7247
  variables: { _id }
@@ -7157,7 +7254,7 @@ var useGetAd = (_id) => {
7157
7254
  };
7158
7255
  };
7159
7256
  var useGetAdsByRegion = (region, status) => {
7160
- const { data, loading, error, refetch } = (0, import_client47.useQuery)(GET_ADS_BY_REGION, {
7257
+ const { data, loading, error, refetch } = (0, import_client48.useQuery)(GET_ADS_BY_REGION, {
7161
7258
  fetchPolicy: "no-cache",
7162
7259
  skip: !region || region === "",
7163
7260
  variables: { region, status }
@@ -7171,11 +7268,11 @@ var useGetAdsByRegion = (region, status) => {
7171
7268
  };
7172
7269
 
7173
7270
  // src/graphql/hooks/resourceActivities/hooksMutation.ts
7174
- var import_client49 = require("@apollo/client");
7271
+ var import_client50 = require("@apollo/client");
7175
7272
 
7176
7273
  // src/graphql/mutations/resourceActivities.ts
7177
- var import_client48 = require("@apollo/client");
7178
- var CREATE_RESOURCE_ACTIVITY_MUTATION = import_client48.gql`
7274
+ var import_client49 = require("@apollo/client");
7275
+ var CREATE_RESOURCE_ACTIVITY_MUTATION = import_client49.gql`
7179
7276
  mutation createResourceActivity($input: ResourceActivityInputType!) {
7180
7277
  createResourceActivity(input: $input) {
7181
7278
  data
@@ -7186,16 +7283,16 @@ var CREATE_RESOURCE_ACTIVITY_MUTATION = import_client48.gql`
7186
7283
 
7187
7284
  // src/graphql/hooks/resourceActivities/hooksMutation.ts
7188
7285
  var useCreateResourceActivity = () => {
7189
- const [createResourceActivity, { loading, error }] = (0, import_client49.useMutation)(CREATE_RESOURCE_ACTIVITY_MUTATION);
7286
+ const [createResourceActivity, { loading, error }] = (0, import_client50.useMutation)(CREATE_RESOURCE_ACTIVITY_MUTATION);
7190
7287
  return { createResourceActivity, error, loading };
7191
7288
  };
7192
7289
 
7193
7290
  // src/graphql/hooks/resourceActivities/hooksQuery.ts
7194
- var import_client51 = require("@apollo/client");
7291
+ var import_client52 = require("@apollo/client");
7195
7292
 
7196
7293
  // src/graphql/queries/resourceActivities.ts
7197
- var import_client50 = require("@apollo/client");
7198
- var RESOURCE_ACTIVITY_FIELDS_FRAGMENT = import_client50.gql`
7294
+ var import_client51 = require("@apollo/client");
7295
+ var RESOURCE_ACTIVITY_FIELDS_FRAGMENT = import_client51.gql`
7199
7296
  fragment ResourceActivityFields on ResourceActivityType {
7200
7297
  resourceId
7201
7298
  resourceType
@@ -7214,7 +7311,7 @@ var RESOURCE_ACTIVITY_FIELDS_FRAGMENT = import_client50.gql`
7214
7311
  }
7215
7312
  ${LOCATION_GEO_FIELDS_FRAGMENT}
7216
7313
  `;
7217
- var GET_RESOURCE_ACTIVITY = import_client50.gql`
7314
+ var GET_RESOURCE_ACTIVITY = import_client51.gql`
7218
7315
  query getResourceActivity(
7219
7316
  $resourceType: ResourceTypeEnum!
7220
7317
  $resourceId: ID!
@@ -7228,7 +7325,7 @@ var GET_RESOURCE_ACTIVITY = import_client50.gql`
7228
7325
 
7229
7326
  // src/graphql/hooks/resourceActivities/hooksQuery.ts
7230
7327
  var useGetResourceActivity = (resourceId, resourceType) => {
7231
- const { data, loading, error, refetch } = (0, import_client51.useQuery)(GET_RESOURCE_ACTIVITY, {
7328
+ const { data, loading, error, refetch } = (0, import_client52.useQuery)(GET_RESOURCE_ACTIVITY, {
7232
7329
  fetchPolicy: "network-only",
7233
7330
  variables: { resourceId, resourceType }
7234
7331
  });
@@ -7241,11 +7338,11 @@ var useGetResourceActivity = (resourceId, resourceType) => {
7241
7338
  };
7242
7339
 
7243
7340
  // src/graphql/hooks/stripe/hooksMutation.ts
7244
- var import_client53 = require("@apollo/client");
7341
+ var import_client54 = require("@apollo/client");
7245
7342
 
7246
7343
  // src/graphql/mutations/stripe.ts
7247
- var import_client52 = require("@apollo/client");
7248
- var CREATE_CHECKOUT_SESSION_MUTATION = import_client52.gql`
7344
+ var import_client53 = require("@apollo/client");
7345
+ var CREATE_CHECKOUT_SESSION_MUTATION = import_client53.gql`
7249
7346
  mutation createCheckoutSession(
7250
7347
  $planId: LicencesEnumType!
7251
7348
  $billingPeriod: BillingPeriodEnumType
@@ -7259,7 +7356,7 @@ var CREATE_CHECKOUT_SESSION_MUTATION = import_client52.gql`
7259
7356
  }
7260
7357
  }
7261
7358
  `;
7262
- var CANCEL_SUBSCRIPTION_MUTATION = import_client52.gql`
7359
+ var CANCEL_SUBSCRIPTION_MUTATION = import_client53.gql`
7263
7360
  mutation cancelSubscription {
7264
7361
  cancelSubscription {
7265
7362
  data
@@ -7267,7 +7364,7 @@ var CANCEL_SUBSCRIPTION_MUTATION = import_client52.gql`
7267
7364
  }
7268
7365
  }
7269
7366
  `;
7270
- var UPDATE_SUBSCRIPTION_PLAN_MUTATION = import_client52.gql`
7367
+ var UPDATE_SUBSCRIPTION_PLAN_MUTATION = import_client53.gql`
7271
7368
  mutation updateSubscriptionPlan(
7272
7369
  $newPlanId: LicencesEnumType!
7273
7370
  $billingPeriod: BillingPeriodEnumType
@@ -7286,7 +7383,7 @@ var UPDATE_SUBSCRIPTION_PLAN_MUTATION = import_client52.gql`
7286
7383
  }
7287
7384
  }
7288
7385
  `;
7289
- var CREATE_CUSTOMER_PORTAL = import_client52.gql`
7386
+ var CREATE_CUSTOMER_PORTAL = import_client53.gql`
7290
7387
  mutation createCustomerPortal($returnUrl: String) {
7291
7388
  createCustomerPortal(returnUrl: $returnUrl) {
7292
7389
  data {
@@ -7296,7 +7393,7 @@ var CREATE_CUSTOMER_PORTAL = import_client52.gql`
7296
7393
  }
7297
7394
  }
7298
7395
  `;
7299
- var SELECT_PACKAGE_MUTATION = import_client52.gql`
7396
+ var SELECT_PACKAGE_MUTATION = import_client53.gql`
7300
7397
  mutation selectPackage(
7301
7398
  $billingPeriod: BillingPeriodEnumType
7302
7399
  $selectedLicence: LicencesEnumType!
@@ -7322,23 +7419,23 @@ var SELECT_PACKAGE_MUTATION = import_client52.gql`
7322
7419
 
7323
7420
  // src/graphql/hooks/stripe/hooksMutation.ts
7324
7421
  var useCreateCheckoutSession = () => {
7325
- const [createCheckoutSession, { loading, error }] = (0, import_client53.useMutation)(CREATE_CHECKOUT_SESSION_MUTATION);
7422
+ const [createCheckoutSession, { loading, error }] = (0, import_client54.useMutation)(CREATE_CHECKOUT_SESSION_MUTATION);
7326
7423
  return { createCheckoutSession, error, loading };
7327
7424
  };
7328
7425
  var useCancelSubscription = () => {
7329
- const [cancelSubscription, { loading, error }] = (0, import_client53.useMutation)(CANCEL_SUBSCRIPTION_MUTATION);
7426
+ const [cancelSubscription, { loading, error }] = (0, import_client54.useMutation)(CANCEL_SUBSCRIPTION_MUTATION);
7330
7427
  return { cancelSubscription, error, loading };
7331
7428
  };
7332
7429
  var useUpdateSubscriptionPlan = () => {
7333
- const [updateSubscriptionPlan, { loading, error }] = (0, import_client53.useMutation)(UPDATE_SUBSCRIPTION_PLAN_MUTATION);
7430
+ const [updateSubscriptionPlan, { loading, error }] = (0, import_client54.useMutation)(UPDATE_SUBSCRIPTION_PLAN_MUTATION);
7334
7431
  return { error, loading, updateSubscriptionPlan };
7335
7432
  };
7336
7433
  var useCreateCustomerPortal = () => {
7337
- const [createCustomerPortal, { loading, error }] = (0, import_client53.useMutation)(CREATE_CUSTOMER_PORTAL);
7434
+ const [createCustomerPortal, { loading, error }] = (0, import_client54.useMutation)(CREATE_CUSTOMER_PORTAL);
7338
7435
  return { createCustomerPortal, error, loading };
7339
7436
  };
7340
7437
  var useSelectPackage = () => {
7341
- const [selectPackage, { loading, error }] = (0, import_client53.useMutation)(SELECT_PACKAGE_MUTATION, {
7438
+ const [selectPackage, { loading, error }] = (0, import_client54.useMutation)(SELECT_PACKAGE_MUTATION, {
7342
7439
  awaitRefetchQueries: true,
7343
7440
  refetchQueries: (mutationResult) => {
7344
7441
  const userId = mutationResult?.data?.selectPackage?.data?.userId;
@@ -7354,11 +7451,11 @@ var useSelectPackage = () => {
7354
7451
  };
7355
7452
 
7356
7453
  // src/graphql/hooks/stripe/hooksQuery.ts
7357
- var import_client55 = require("@apollo/client");
7454
+ var import_client56 = require("@apollo/client");
7358
7455
 
7359
7456
  // src/graphql/queries/stripe.ts
7360
- var import_client54 = require("@apollo/client");
7361
- var GET_SUBSCRIPTION_STATUS = import_client54.gql`
7457
+ var import_client55 = require("@apollo/client");
7458
+ var GET_SUBSCRIPTION_STATUS = import_client55.gql`
7362
7459
  query getSubscriptionStatus {
7363
7460
  getSubscriptionStatus {
7364
7461
  subscriptionId
@@ -7368,7 +7465,7 @@ var GET_SUBSCRIPTION_STATUS = import_client54.gql`
7368
7465
  }
7369
7466
  }
7370
7467
  `;
7371
- var GET_SUBSCRIPTION_PLANS = import_client54.gql`
7468
+ var GET_SUBSCRIPTION_PLANS = import_client55.gql`
7372
7469
  query getSubscriptionPlans {
7373
7470
  getSubscriptionPlans {
7374
7471
  plans {
@@ -7399,7 +7496,7 @@ var GET_SUBSCRIPTION_PLANS = import_client54.gql`
7399
7496
 
7400
7497
  // src/graphql/hooks/stripe/hooksQuery.ts
7401
7498
  var useGetSubscriptionStatus = () => {
7402
- const { data, loading, error, refetch } = (0, import_client55.useQuery)(GET_SUBSCRIPTION_STATUS);
7499
+ const { data, loading, error, refetch } = (0, import_client56.useQuery)(GET_SUBSCRIPTION_STATUS);
7403
7500
  return {
7404
7501
  data: data?.getSubscriptionStatus,
7405
7502
  error,
@@ -7408,7 +7505,7 @@ var useGetSubscriptionStatus = () => {
7408
7505
  };
7409
7506
  };
7410
7507
  var useGetSubscriptionPlans = () => {
7411
- const { data, loading, error, refetch } = (0, import_client55.useQuery)(GET_SUBSCRIPTION_PLANS);
7508
+ const { data, loading, error, refetch } = (0, import_client56.useQuery)(GET_SUBSCRIPTION_PLANS);
7412
7509
  return {
7413
7510
  data: data?.getSubscriptionPlans,
7414
7511
  error,
@@ -7418,11 +7515,11 @@ var useGetSubscriptionPlans = () => {
7418
7515
  };
7419
7516
 
7420
7517
  // src/graphql/hooks/partner/hooksMutation.ts
7421
- var import_client57 = require("@apollo/client");
7518
+ var import_client58 = require("@apollo/client");
7422
7519
 
7423
7520
  // src/graphql/mutations/partner.ts
7424
- var import_client56 = require("@apollo/client");
7425
- var CREATE_PARTNER_MUTATION = import_client56.gql`
7521
+ var import_client57 = require("@apollo/client");
7522
+ var CREATE_PARTNER_MUTATION = import_client57.gql`
7426
7523
  mutation createPartner($input: PartnerInputType!) {
7427
7524
  createPartner(input: $input) {
7428
7525
  data {
@@ -7433,7 +7530,7 @@ var CREATE_PARTNER_MUTATION = import_client56.gql`
7433
7530
  }
7434
7531
  ${PARTNER}
7435
7532
  `;
7436
- var UPDATE_PARTNER_MUTATION = import_client56.gql`
7533
+ var UPDATE_PARTNER_MUTATION = import_client57.gql`
7437
7534
  mutation updatePartner($_id: ID!, $input: PartnerInputType!) {
7438
7535
  updatePartner(_id: $_id, input: $input) {
7439
7536
  data {
@@ -7444,7 +7541,7 @@ var UPDATE_PARTNER_MUTATION = import_client56.gql`
7444
7541
  }
7445
7542
  ${PARTNER}
7446
7543
  `;
7447
- var DELETE_PARTNER_MUTATION = import_client56.gql`
7544
+ var DELETE_PARTNER_MUTATION = import_client57.gql`
7448
7545
  mutation deletePartner($_id: ID!) {
7449
7546
  deletePartner(_id: $_id) {
7450
7547
  data
@@ -7455,21 +7552,21 @@ var DELETE_PARTNER_MUTATION = import_client56.gql`
7455
7552
 
7456
7553
  // src/graphql/hooks/partner/hooksMutation.ts
7457
7554
  var useCreatePartner = () => {
7458
- const [createPartner, { loading, error }] = (0, import_client57.useMutation)(CREATE_PARTNER_MUTATION, {
7555
+ const [createPartner, { loading, error }] = (0, import_client58.useMutation)(CREATE_PARTNER_MUTATION, {
7459
7556
  awaitRefetchQueries: true,
7460
7557
  refetchQueries: [{ query: GET_USER_PARTNERS }]
7461
7558
  });
7462
7559
  return { createPartner, error, loading };
7463
7560
  };
7464
7561
  var useUpdatePartner = () => {
7465
- const [updatePartner, { loading, error }] = (0, import_client57.useMutation)(UPDATE_PARTNER_MUTATION, {
7562
+ const [updatePartner, { loading, error }] = (0, import_client58.useMutation)(UPDATE_PARTNER_MUTATION, {
7466
7563
  awaitRefetchQueries: true,
7467
7564
  refetchQueries: [{ query: GET_USER_PARTNERS }]
7468
7565
  });
7469
7566
  return { error, loading, updatePartner };
7470
7567
  };
7471
7568
  var useDeletePartner = () => {
7472
- const [deletePartner, { loading, error }] = (0, import_client57.useMutation)(DELETE_PARTNER_MUTATION, {
7569
+ const [deletePartner, { loading, error }] = (0, import_client58.useMutation)(DELETE_PARTNER_MUTATION, {
7473
7570
  awaitRefetchQueries: true,
7474
7571
  refetchQueries: [{ query: GET_USER_PARTNERS }]
7475
7572
  });
@@ -7477,9 +7574,9 @@ var useDeletePartner = () => {
7477
7574
  };
7478
7575
 
7479
7576
  // src/graphql/hooks/partner/hooksQuery.ts
7480
- var import_client58 = require("@apollo/client");
7577
+ var import_client59 = require("@apollo/client");
7481
7578
  var useGetPartners = () => {
7482
- const { loading, error, data, refetch } = (0, import_client58.useQuery)(GET_PARTNERS, {
7579
+ const { loading, error, data, refetch } = (0, import_client59.useQuery)(GET_PARTNERS, {
7483
7580
  fetchPolicy: "network-only"
7484
7581
  });
7485
7582
  const partners = data?.partners || [];
@@ -7491,7 +7588,7 @@ var useGetPartners = () => {
7491
7588
  };
7492
7589
  };
7493
7590
  var useGetPartner = (_id) => {
7494
- const { loading, error, data, refetch } = (0, import_client58.useQuery)(
7591
+ const { loading, error, data, refetch } = (0, import_client59.useQuery)(
7495
7592
  GET_PARTNER,
7496
7593
  {
7497
7594
  fetchPolicy: "network-only",
@@ -7507,7 +7604,7 @@ var useGetPartnersByRegion = (region, options) => {
7507
7604
  options,
7508
7605
  region
7509
7606
  };
7510
- const { loading, error, data, refetch, fetchMore } = (0, import_client58.useQuery)(GET_PARTNERS_BY_REGION, {
7607
+ const { loading, error, data, refetch, fetchMore } = (0, import_client59.useQuery)(GET_PARTNERS_BY_REGION, {
7511
7608
  fetchPolicy: "network-only",
7512
7609
  variables
7513
7610
  });
@@ -7521,7 +7618,7 @@ var useGetPartnersByRegion = (region, options) => {
7521
7618
  };
7522
7619
  };
7523
7620
  var useSearchPartners = (search, region) => {
7524
- const { loading, error, data, refetch } = (0, import_client58.useQuery)(SEARCH_PARTNERS, {
7621
+ const { loading, error, data, refetch } = (0, import_client59.useQuery)(SEARCH_PARTNERS, {
7525
7622
  fetchPolicy: "network-only",
7526
7623
  skip: search.length < 3,
7527
7624
  variables: { region, search }
@@ -7531,11 +7628,11 @@ var useSearchPartners = (search, region) => {
7531
7628
  };
7532
7629
 
7533
7630
  // src/graphql/hooks/post/hooksMutation.ts
7534
- var import_client60 = require("@apollo/client");
7631
+ var import_client61 = require("@apollo/client");
7535
7632
 
7536
7633
  // src/graphql/mutations/post.ts
7537
- var import_client59 = require("@apollo/client");
7538
- var CREATE_POST_MUTATION = import_client59.gql`
7634
+ var import_client60 = require("@apollo/client");
7635
+ var CREATE_POST_MUTATION = import_client60.gql`
7539
7636
  mutation createPost($input: PostInputType!) {
7540
7637
  createPost(input: $input) {
7541
7638
  data {
@@ -7546,7 +7643,7 @@ var CREATE_POST_MUTATION = import_client59.gql`
7546
7643
  }
7547
7644
  ${POST_FIELDS_FRAGMENT}
7548
7645
  `;
7549
- var UPDATE_POST_MUTATION = import_client59.gql`
7646
+ var UPDATE_POST_MUTATION = import_client60.gql`
7550
7647
  mutation updatePost($_id: ID!, $input: PostInputType!) {
7551
7648
  updatePost(_id: $_id, input: $input) {
7552
7649
  data {
@@ -7557,7 +7654,7 @@ var UPDATE_POST_MUTATION = import_client59.gql`
7557
7654
  }
7558
7655
  ${POST_FIELDS_FRAGMENT}
7559
7656
  `;
7560
- var DELETE_POST_MUTATION = import_client59.gql`
7657
+ var DELETE_POST_MUTATION = import_client60.gql`
7561
7658
  mutation deletePost($_id: ID!) {
7562
7659
  deletePost(_id: $_id) {
7563
7660
  data
@@ -7568,21 +7665,21 @@ var DELETE_POST_MUTATION = import_client59.gql`
7568
7665
 
7569
7666
  // src/graphql/hooks/post/hooksMutation.ts
7570
7667
  var useCreatePost = () => {
7571
- const [createPost, { loading, error }] = (0, import_client60.useMutation)(CREATE_POST_MUTATION, {
7668
+ const [createPost, { loading, error }] = (0, import_client61.useMutation)(CREATE_POST_MUTATION, {
7572
7669
  awaitRefetchQueries: true,
7573
7670
  refetchQueries: [{ query: GET_POSTS }]
7574
7671
  });
7575
7672
  return { createPost, error, loading };
7576
7673
  };
7577
7674
  var useUpdatePost = () => {
7578
- const [updatePost, { loading, error }] = (0, import_client60.useMutation)(UPDATE_POST_MUTATION, {
7675
+ const [updatePost, { loading, error }] = (0, import_client61.useMutation)(UPDATE_POST_MUTATION, {
7579
7676
  awaitRefetchQueries: true,
7580
7677
  refetchQueries: [{ query: GET_POSTS }]
7581
7678
  });
7582
7679
  return { error, loading, updatePost };
7583
7680
  };
7584
7681
  var useDeletePost = () => {
7585
- const [deletePost, { loading, error }] = (0, import_client60.useMutation)(DELETE_POST_MUTATION, {
7682
+ const [deletePost, { loading, error }] = (0, import_client61.useMutation)(DELETE_POST_MUTATION, {
7586
7683
  awaitRefetchQueries: true,
7587
7684
  refetchQueries: [{ query: GET_POSTS }]
7588
7685
  });
@@ -7590,15 +7687,15 @@ var useDeletePost = () => {
7590
7687
  };
7591
7688
 
7592
7689
  // src/graphql/hooks/post/hooksQuery.ts
7593
- var import_client61 = require("@apollo/client");
7690
+ var import_client62 = require("@apollo/client");
7594
7691
  var useGetPosts = () => {
7595
- const { data, loading, error, refetch } = (0, import_client61.useQuery)(GET_POSTS, {
7692
+ const { data, loading, error, refetch } = (0, import_client62.useQuery)(GET_POSTS, {
7596
7693
  fetchPolicy: "network-only"
7597
7694
  });
7598
7695
  return { error, loading, posts: data?.posts || [], refetch };
7599
7696
  };
7600
7697
  var useGetPost = (_id) => {
7601
- const { data, loading, error, refetch } = (0, import_client61.useQuery)(GET_POST, {
7698
+ const { data, loading, error, refetch } = (0, import_client62.useQuery)(GET_POST, {
7602
7699
  fetchPolicy: "network-only",
7603
7700
  skip: !_id || _id === "",
7604
7701
  variables: { _id }
@@ -7606,7 +7703,7 @@ var useGetPost = (_id) => {
7606
7703
  return { error, loading, post: data?.post, refetch };
7607
7704
  };
7608
7705
  var useGetPostsByType = (postType) => {
7609
- const { data, loading, error, refetch } = (0, import_client61.useQuery)(GET_POSTS_BY_TYPE, {
7706
+ const { data, loading, error, refetch } = (0, import_client62.useQuery)(GET_POSTS_BY_TYPE, {
7610
7707
  fetchPolicy: "network-only",
7611
7708
  skip: !postType,
7612
7709
  variables: { postType }
@@ -7615,11 +7712,11 @@ var useGetPostsByType = (postType) => {
7615
7712
  };
7616
7713
 
7617
7714
  // src/graphql/hooks/appSettings/hooksMutation.ts
7618
- var import_client64 = require("@apollo/client");
7715
+ var import_client65 = require("@apollo/client");
7619
7716
 
7620
7717
  // src/graphql/mutations/appSettings.ts
7621
- var import_client62 = require("@apollo/client");
7622
- var UPDATE_APP_SETTINGS_MUTATION = import_client62.gql`
7718
+ var import_client63 = require("@apollo/client");
7719
+ var UPDATE_APP_SETTINGS_MUTATION = import_client63.gql`
7623
7720
  mutation updateAppSettings($input: AppSettingsInputType!) {
7624
7721
  updateAppSettings(input: $input) {
7625
7722
  data
@@ -7627,7 +7724,7 @@ var UPDATE_APP_SETTINGS_MUTATION = import_client62.gql`
7627
7724
  }
7628
7725
  }
7629
7726
  `;
7630
- var CRAWL_GOOGLE_MARKETS_MUTATION = import_client62.gql`
7727
+ var CRAWL_GOOGLE_MARKETS_MUTATION = import_client63.gql`
7631
7728
  mutation crawlGoogleMarkets {
7632
7729
  crawlGoogleMarkets {
7633
7730
  data
@@ -7635,7 +7732,7 @@ var CRAWL_GOOGLE_MARKETS_MUTATION = import_client62.gql`
7635
7732
  }
7636
7733
  }
7637
7734
  `;
7638
- var UPDATE_GOOGLE_IMPORTED_MARKET_MUTATION = import_client62.gql`
7735
+ var UPDATE_GOOGLE_IMPORTED_MARKET_MUTATION = import_client63.gql`
7639
7736
  mutation updateGoogleImportedMarkets {
7640
7737
  updateGoogleImportedMarkets {
7641
7738
  data
@@ -7645,8 +7742,8 @@ var UPDATE_GOOGLE_IMPORTED_MARKET_MUTATION = import_client62.gql`
7645
7742
  `;
7646
7743
 
7647
7744
  // src/graphql/queries/appSettings.ts
7648
- var import_client63 = require("@apollo/client");
7649
- var APP_SETTINGS_FIELDS_FRAGMENT = import_client63.gql`
7745
+ var import_client64 = require("@apollo/client");
7746
+ var APP_SETTINGS_FIELDS_FRAGMENT = import_client64.gql`
7650
7747
  fragment AppSettingsFields on AppSettingsType {
7651
7748
  _id
7652
7749
  appVersion
@@ -7657,7 +7754,7 @@ var APP_SETTINGS_FIELDS_FRAGMENT = import_client63.gql`
7657
7754
  updatedAt
7658
7755
  }
7659
7756
  `;
7660
- var GET_APP_SETTINGS = import_client63.gql`
7757
+ var GET_APP_SETTINGS = import_client64.gql`
7661
7758
  query getAppSettings {
7662
7759
  appSettings {
7663
7760
  ...AppSettingsFields
@@ -7668,25 +7765,25 @@ var GET_APP_SETTINGS = import_client63.gql`
7668
7765
 
7669
7766
  // src/graphql/hooks/appSettings/hooksMutation.ts
7670
7767
  var useUpdateAppSettings = () => {
7671
- const [updateAppSettings, { loading, error }] = (0, import_client64.useMutation)(UPDATE_APP_SETTINGS_MUTATION, {
7768
+ const [updateAppSettings, { loading, error }] = (0, import_client65.useMutation)(UPDATE_APP_SETTINGS_MUTATION, {
7672
7769
  awaitRefetchQueries: true,
7673
7770
  refetchQueries: [{ query: GET_APP_SETTINGS }]
7674
7771
  });
7675
7772
  return { error, loading, updateAppSettings };
7676
7773
  };
7677
7774
  var useCrawlGoogleMarkets = () => {
7678
- const [crawlGoogleMarkets, { loading, error }] = (0, import_client64.useMutation)(CRAWL_GOOGLE_MARKETS_MUTATION);
7775
+ const [crawlGoogleMarkets, { loading, error }] = (0, import_client65.useMutation)(CRAWL_GOOGLE_MARKETS_MUTATION);
7679
7776
  return { crawlGoogleMarkets, error, loading };
7680
7777
  };
7681
7778
  var useUpdateGoogleImportedMarkets = () => {
7682
- const [updateGoogleImportedMarkets, { loading, error }] = (0, import_client64.useMutation)(UPDATE_GOOGLE_IMPORTED_MARKET_MUTATION);
7779
+ const [updateGoogleImportedMarkets, { loading, error }] = (0, import_client65.useMutation)(UPDATE_GOOGLE_IMPORTED_MARKET_MUTATION);
7683
7780
  return { error, loading, updateGoogleImportedMarkets };
7684
7781
  };
7685
7782
 
7686
7783
  // src/graphql/hooks/appSettings/hooksQuery.ts
7687
- var import_client65 = require("@apollo/client");
7784
+ var import_client66 = require("@apollo/client");
7688
7785
  var useGetAppSettings = () => {
7689
- const { loading, error, data, refetch } = (0, import_client65.useQuery)(GET_APP_SETTINGS, {
7786
+ const { loading, error, data, refetch } = (0, import_client66.useQuery)(GET_APP_SETTINGS, {
7690
7787
  fetchPolicy: "network-only"
7691
7788
  });
7692
7789
  const appSettings = data?.appSettings || null;
@@ -7694,14 +7791,14 @@ var useGetAppSettings = () => {
7694
7791
  };
7695
7792
 
7696
7793
  // src/graphql/hooks/game/hooksMutation.ts
7697
- var import_client68 = require("@apollo/client");
7794
+ var import_client69 = require("@apollo/client");
7698
7795
 
7699
7796
  // src/graphql/mutations/game.ts
7700
- var import_client67 = require("@apollo/client");
7797
+ var import_client68 = require("@apollo/client");
7701
7798
 
7702
7799
  // src/graphql/queries/game/game.ts
7703
- var import_client66 = require("@apollo/client");
7704
- var GAME_HISTORY_FIELDS_FRAGMENT = import_client66.gql`
7800
+ var import_client67 = require("@apollo/client");
7801
+ var GAME_HISTORY_FIELDS_FRAGMENT = import_client67.gql`
7705
7802
  fragment GameHistoryFields on GameHistoryType {
7706
7803
  createdAt
7707
7804
  gameDate {
@@ -7716,7 +7813,7 @@ var GAME_HISTORY_FIELDS_FRAGMENT = import_client66.gql`
7716
7813
  }
7717
7814
  ${GAME_DATE_FIELDS_FRAGMENT}
7718
7815
  `;
7719
- var GAME_DATA_FIELDS_FRAGMENT = import_client66.gql`
7816
+ var GAME_DATA_FIELDS_FRAGMENT = import_client67.gql`
7720
7817
  fragment GameDataFields on GameDataType {
7721
7818
  dailyClue {
7722
7819
  ...DailyClueGameDataFields
@@ -7731,7 +7828,7 @@ var GAME_DATA_FIELDS_FRAGMENT = import_client66.gql`
7731
7828
  ${DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT}
7732
7829
  ${PUZZLE_GAME_DATA_FIELDS_FRAGMENT}
7733
7830
  `;
7734
- var GAME_FIELDS_FRAGMENT = import_client66.gql`
7831
+ var GAME_FIELDS_FRAGMENT = import_client67.gql`
7735
7832
  fragment GameFields on GameType {
7736
7833
  _id
7737
7834
  active
@@ -7750,7 +7847,7 @@ var GAME_FIELDS_FRAGMENT = import_client66.gql`
7750
7847
  ${GAME_DATA_FIELDS_FRAGMENT}
7751
7848
  ${GAME_HISTORY_FIELDS_FRAGMENT}
7752
7849
  `;
7753
- var GAME_DOC_FIELDS_FRAGMENT = import_client66.gql`
7850
+ var GAME_DOC_FIELDS_FRAGMENT = import_client67.gql`
7754
7851
  fragment GameDocFields on GameDocType {
7755
7852
  _id
7756
7853
  active
@@ -7768,7 +7865,7 @@ var GAME_DOC_FIELDS_FRAGMENT = import_client66.gql`
7768
7865
  ${OWNER_FIELDS_FRAGMENT}
7769
7866
  ${GAME_FIELDS_FRAGMENT}
7770
7867
  `;
7771
- var GET_GAMES = import_client66.gql`
7868
+ var GET_GAMES = import_client67.gql`
7772
7869
  query getGames {
7773
7870
  games {
7774
7871
  ...GameDocFields
@@ -7776,7 +7873,7 @@ var GET_GAMES = import_client66.gql`
7776
7873
  }
7777
7874
  ${GAME_DOC_FIELDS_FRAGMENT}
7778
7875
  `;
7779
- var GET_GAME = import_client66.gql`
7876
+ var GET_GAME = import_client67.gql`
7780
7877
  query getGame($_id: ID) {
7781
7878
  game(_id: $_id) {
7782
7879
  ...GameDocFields
@@ -7784,7 +7881,7 @@ var GET_GAME = import_client66.gql`
7784
7881
  }
7785
7882
  ${GAME_DOC_FIELDS_FRAGMENT}
7786
7883
  `;
7787
- var GET_GAME_LEADERBOARD = import_client66.gql`
7884
+ var GET_GAME_LEADERBOARD = import_client67.gql`
7788
7885
  query getGameLeaderboard {
7789
7886
  gameLeaderboard {
7790
7887
  gameHistory {
@@ -7801,7 +7898,7 @@ var GET_GAME_LEADERBOARD = import_client66.gql`
7801
7898
  `;
7802
7899
 
7803
7900
  // src/graphql/mutations/game.ts
7804
- var START_GAME_MUTATION = import_client67.gql`
7901
+ var START_GAME_MUTATION = import_client68.gql`
7805
7902
  mutation startGame($input: BaseGameInputType!) {
7806
7903
  startGame(input: $input) {
7807
7904
  data {
@@ -7812,7 +7909,7 @@ var START_GAME_MUTATION = import_client67.gql`
7812
7909
  }
7813
7910
  ${GAME_DOC_FIELDS_FRAGMENT}
7814
7911
  `;
7815
- var LEAVE_GAME_MUTATION = import_client67.gql`
7912
+ var LEAVE_GAME_MUTATION = import_client68.gql`
7816
7913
  mutation leaveGame(
7817
7914
  $_id: ID!
7818
7915
  $gameType: GameTypeEnumType!
@@ -7824,7 +7921,7 @@ var LEAVE_GAME_MUTATION = import_client67.gql`
7824
7921
  }
7825
7922
  }
7826
7923
  `;
7827
- var UPDATE_DAILY_CLUE_MUTATION = import_client67.gql`
7924
+ var UPDATE_DAILY_CLUE_MUTATION = import_client68.gql`
7828
7925
  mutation updateDailyClueGame(
7829
7926
  $_id: ID!
7830
7927
  $foundLetter: String!
@@ -7845,7 +7942,7 @@ var UPDATE_DAILY_CLUE_MUTATION = import_client67.gql`
7845
7942
  }
7846
7943
  ${GAME_DOC_FIELDS_FRAGMENT}
7847
7944
  `;
7848
- var UPDATE_PUZZLE_GAME_MUTATION = import_client67.gql`
7945
+ var UPDATE_PUZZLE_GAME_MUTATION = import_client68.gql`
7849
7946
  mutation updatePuzzleGame(
7850
7947
  $_id: ID!
7851
7948
  $answeredQuestions: [PuzzleAnsweredQuestionInputType!]!
@@ -7869,7 +7966,7 @@ var UPDATE_PUZZLE_GAME_MUTATION = import_client67.gql`
7869
7966
 
7870
7967
  // src/graphql/hooks/game/hooksMutation.ts
7871
7968
  var useStartGame = () => {
7872
- const [startGame, { loading, error }] = (0, import_client68.useMutation)(START_GAME_MUTATION, {
7969
+ const [startGame, { loading, error }] = (0, import_client69.useMutation)(START_GAME_MUTATION, {
7873
7970
  awaitRefetchQueries: true,
7874
7971
  refetchQueries: (mutationResult) => {
7875
7972
  const gameId = mutationResult?.data?.startGame?.data?._id;
@@ -7892,7 +7989,7 @@ var useStartGame = () => {
7892
7989
  return { error, loading, startGame };
7893
7990
  };
7894
7991
  var useLeaveGame = () => {
7895
- const [leaveGame, { loading, error }] = (0, import_client68.useMutation)(LEAVE_GAME_MUTATION, {
7992
+ const [leaveGame, { loading, error }] = (0, import_client69.useMutation)(LEAVE_GAME_MUTATION, {
7896
7993
  awaitRefetchQueries: true,
7897
7994
  refetchQueries: [
7898
7995
  {
@@ -7903,7 +8000,7 @@ var useLeaveGame = () => {
7903
8000
  return { error, leaveGame, loading };
7904
8001
  };
7905
8002
  var useUpdateDailyClueGame = () => {
7906
- const [updateDailyClueGame, { loading, error }] = (0, import_client68.useMutation)(UPDATE_DAILY_CLUE_MUTATION, {
8003
+ const [updateDailyClueGame, { loading, error }] = (0, import_client69.useMutation)(UPDATE_DAILY_CLUE_MUTATION, {
7907
8004
  awaitRefetchQueries: true,
7908
8005
  refetchQueries: (mutationResult) => {
7909
8006
  const gameId = mutationResult?.data?.updateDailyClueGame?.data?._id;
@@ -7920,7 +8017,7 @@ var useUpdateDailyClueGame = () => {
7920
8017
  return { error, loading, updateDailyClueGame };
7921
8018
  };
7922
8019
  var useUpdatePuzzleGame = () => {
7923
- const [updatePuzzleGame, { loading, error }] = (0, import_client68.useMutation)(UPDATE_PUZZLE_GAME_MUTATION, {
8020
+ const [updatePuzzleGame, { loading, error }] = (0, import_client69.useMutation)(UPDATE_PUZZLE_GAME_MUTATION, {
7924
8021
  awaitRefetchQueries: true,
7925
8022
  refetchQueries: (mutationResult) => {
7926
8023
  const gameId = mutationResult?.data?.updatePuzzleGame?.data?._id;
@@ -7938,16 +8035,16 @@ var useUpdatePuzzleGame = () => {
7938
8035
  };
7939
8036
 
7940
8037
  // src/graphql/hooks/game/hooksQuery.ts
7941
- var import_client69 = require("@apollo/client");
8038
+ var import_client70 = require("@apollo/client");
7942
8039
  var useGetGames = () => {
7943
- const { loading, error, data, refetch } = (0, import_client69.useQuery)(GET_GAMES, {
8040
+ const { loading, error, data, refetch } = (0, import_client70.useQuery)(GET_GAMES, {
7944
8041
  fetchPolicy: "network-only"
7945
8042
  });
7946
8043
  const games = data?.games || [];
7947
8044
  return { error, games, loading, refetch };
7948
8045
  };
7949
8046
  var useGetGame = (_id) => {
7950
- const { loading, error, data, refetch } = (0, import_client69.useQuery)(GET_GAME, {
8047
+ const { loading, error, data, refetch } = (0, import_client70.useQuery)(GET_GAME, {
7951
8048
  fetchPolicy: "network-only",
7952
8049
  skip: !_id,
7953
8050
  variables: _id ? { _id } : void 0
@@ -7956,7 +8053,7 @@ var useGetGame = (_id) => {
7956
8053
  return { error, game, loading, refetch };
7957
8054
  };
7958
8055
  var useGetGameLeaderboard = () => {
7959
- const { loading, error, data, refetch } = (0, import_client69.useQuery)(GET_GAME_LEADERBOARD, {
8056
+ const { loading, error, data, refetch } = (0, import_client70.useQuery)(GET_GAME_LEADERBOARD, {
7960
8057
  fetchPolicy: "network-only"
7961
8058
  });
7962
8059
  const gameLeaderboard = data?.gameLeaderboard || [];
@@ -7964,14 +8061,14 @@ var useGetGameLeaderboard = () => {
7964
8061
  };
7965
8062
 
7966
8063
  // src/graphql/hooks/school/hooksMutation.ts
7967
- var import_client72 = require("@apollo/client");
8064
+ var import_client73 = require("@apollo/client");
7968
8065
 
7969
8066
  // src/graphql/mutations/school.ts
7970
- var import_client71 = require("@apollo/client");
8067
+ var import_client72 = require("@apollo/client");
7971
8068
 
7972
8069
  // src/graphql/queries/school.ts
7973
- var import_client70 = require("@apollo/client");
7974
- var SCHOOL_REGISTERED_USERS_FIELDS_FRAGMENT = import_client70.gql`
8070
+ var import_client71 = require("@apollo/client");
8071
+ var SCHOOL_REGISTERED_USERS_FIELDS_FRAGMENT = import_client71.gql`
7975
8072
  fragment SchoolRegisteredUsersFields on SchoolRegisteredUserType {
7976
8073
  _id
7977
8074
  active
@@ -7984,14 +8081,14 @@ var SCHOOL_REGISTERED_USERS_FIELDS_FRAGMENT = import_client70.gql`
7984
8081
  }
7985
8082
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
7986
8083
  `;
7987
- var SCHOOL_CAMPAIGN_FIELDS_FRAGMENT = import_client70.gql`
8084
+ var SCHOOL_CAMPAIGN_FIELDS_FRAGMENT = import_client71.gql`
7988
8085
  fragment SchoolCampaignFields on SchoolCampaignType {
7989
8086
  endDate
7990
8087
  name
7991
8088
  startDate
7992
8089
  }
7993
8090
  `;
7994
- var SCHOOL = import_client70.gql`
8091
+ var SCHOOL = import_client71.gql`
7995
8092
  fragment SchoolFields on SchoolType {
7996
8093
  _id
7997
8094
  active
@@ -8035,7 +8132,7 @@ var SCHOOL = import_client70.gql`
8035
8132
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
8036
8133
  ${SCHOOL_CAMPAIGN_FIELDS_FRAGMENT}
8037
8134
  `;
8038
- var GET_SCHOOL = import_client70.gql`
8135
+ var GET_SCHOOL = import_client71.gql`
8039
8136
  query getSchool($_id: ID!) {
8040
8137
  school(_id: $_id) {
8041
8138
  school {
@@ -8049,7 +8146,7 @@ var GET_SCHOOL = import_client70.gql`
8049
8146
  ${SCHOOL}
8050
8147
  ${SCHOOL_REGISTERED_USERS_FIELDS_FRAGMENT}
8051
8148
  `;
8052
- var GET_SCHOOLS = import_client70.gql`
8149
+ var GET_SCHOOLS = import_client71.gql`
8053
8150
  query getSchools {
8054
8151
  schools {
8055
8152
  ...SchoolFields
@@ -8059,7 +8156,7 @@ var GET_SCHOOLS = import_client70.gql`
8059
8156
  `;
8060
8157
 
8061
8158
  // src/graphql/mutations/school.ts
8062
- var CREATE_SCHOOL_MUTATION = import_client71.gql`
8159
+ var CREATE_SCHOOL_MUTATION = import_client72.gql`
8063
8160
  mutation createSchool($input: SchoolInputType!) {
8064
8161
  createSchool(input: $input) {
8065
8162
  data {
@@ -8070,7 +8167,7 @@ var CREATE_SCHOOL_MUTATION = import_client71.gql`
8070
8167
  }
8071
8168
  ${SCHOOL}
8072
8169
  `;
8073
- var UPDATE_SCHOOL_MUTATION = import_client71.gql`
8170
+ var UPDATE_SCHOOL_MUTATION = import_client72.gql`
8074
8171
  mutation updateSchool($_id: ID!, $input: SchoolInputType!) {
8075
8172
  updateSchool(_id: $_id, input: $input) {
8076
8173
  data {
@@ -8081,7 +8178,7 @@ var UPDATE_SCHOOL_MUTATION = import_client71.gql`
8081
8178
  }
8082
8179
  ${SCHOOL}
8083
8180
  `;
8084
- var DELETE_SCHOOL_MUTATION = import_client71.gql`
8181
+ var DELETE_SCHOOL_MUTATION = import_client72.gql`
8085
8182
  mutation deleteSchool($_id: ID!) {
8086
8183
  deleteSchool(_id: $_id) {
8087
8184
  data
@@ -8089,7 +8186,7 @@ var DELETE_SCHOOL_MUTATION = import_client71.gql`
8089
8186
  }
8090
8187
  }
8091
8188
  `;
8092
- var REQUEST_MARKETING_MATERIAL_MUTATION = import_client71.gql`
8189
+ var REQUEST_MARKETING_MATERIAL_MUTATION = import_client72.gql`
8093
8190
  mutation requestMarketingMaterial(
8094
8191
  $input: MarketingMaterialRequestInputType!
8095
8192
  ) {
@@ -8102,35 +8199,35 @@ var REQUEST_MARKETING_MATERIAL_MUTATION = import_client71.gql`
8102
8199
 
8103
8200
  // src/graphql/hooks/school/hooksMutation.ts
8104
8201
  var useCreateSchool = () => {
8105
- const [createSchool, { loading, error }] = (0, import_client72.useMutation)(CREATE_SCHOOL_MUTATION, {
8202
+ const [createSchool, { loading, error }] = (0, import_client73.useMutation)(CREATE_SCHOOL_MUTATION, {
8106
8203
  awaitRefetchQueries: true,
8107
8204
  refetchQueries: [{ query: GET_SCHOOLS }]
8108
8205
  });
8109
8206
  return { createSchool, error, loading };
8110
8207
  };
8111
8208
  var useUpdateSchool = () => {
8112
- const [updateSchool, { loading, error }] = (0, import_client72.useMutation)(UPDATE_SCHOOL_MUTATION, {
8209
+ const [updateSchool, { loading, error }] = (0, import_client73.useMutation)(UPDATE_SCHOOL_MUTATION, {
8113
8210
  awaitRefetchQueries: true,
8114
8211
  refetchQueries: [{ query: GET_SCHOOLS }]
8115
8212
  });
8116
8213
  return { error, loading, updateSchool };
8117
8214
  };
8118
8215
  var useDeleteSchool = () => {
8119
- const [deleteSchool, { loading, error }] = (0, import_client72.useMutation)(DELETE_SCHOOL_MUTATION, {
8216
+ const [deleteSchool, { loading, error }] = (0, import_client73.useMutation)(DELETE_SCHOOL_MUTATION, {
8120
8217
  awaitRefetchQueries: true,
8121
8218
  refetchQueries: [{ query: GET_SCHOOLS }]
8122
8219
  });
8123
8220
  return { deleteSchool, error, loading };
8124
8221
  };
8125
8222
  var useRequestMarketingMaterial = () => {
8126
- const [requestMarketingMaterial, { loading, error }] = (0, import_client72.useMutation)(REQUEST_MARKETING_MATERIAL_MUTATION);
8223
+ const [requestMarketingMaterial, { loading, error }] = (0, import_client73.useMutation)(REQUEST_MARKETING_MATERIAL_MUTATION);
8127
8224
  return { error, loading, requestMarketingMaterial };
8128
8225
  };
8129
8226
 
8130
8227
  // src/graphql/hooks/school/hooksQuery.ts
8131
- var import_client73 = require("@apollo/client");
8228
+ var import_client74 = require("@apollo/client");
8132
8229
  var useGetSchools = () => {
8133
- const { data, loading, error, refetch } = (0, import_client73.useQuery)(
8230
+ const { data, loading, error, refetch } = (0, import_client74.useQuery)(
8134
8231
  GET_SCHOOLS,
8135
8232
  {
8136
8233
  fetchPolicy: "network-only"
@@ -8144,7 +8241,7 @@ var useGetSchools = () => {
8144
8241
  };
8145
8242
  };
8146
8243
  var useGetSchool = (_id) => {
8147
- const { data, loading, error, refetch } = (0, import_client73.useQuery)(GET_SCHOOL, {
8244
+ const { data, loading, error, refetch } = (0, import_client74.useQuery)(GET_SCHOOL, {
8148
8245
  fetchPolicy: "network-only",
8149
8246
  skip: !_id,
8150
8247
  variables: { _id }
@@ -8158,11 +8255,11 @@ var useGetSchool = (_id) => {
8158
8255
  };
8159
8256
 
8160
8257
  // src/graphql/hooks/affiliate/hooksQuery.ts
8161
- var import_client75 = require("@apollo/client");
8258
+ var import_client76 = require("@apollo/client");
8162
8259
 
8163
8260
  // src/graphql/queries/affiliate.ts
8164
- var import_client74 = require("@apollo/client");
8165
- var AFFILIATE_REWARD_FIELDS_FRAGMENT = import_client74.gql`
8261
+ var import_client75 = require("@apollo/client");
8262
+ var AFFILIATE_REWARD_FIELDS_FRAGMENT = import_client75.gql`
8166
8263
  fragment AffiliateRewardFields on AffiliateRewardType {
8167
8264
  createdAt
8168
8265
  redeemedAt
@@ -8171,7 +8268,7 @@ var AFFILIATE_REWARD_FIELDS_FRAGMENT = import_client74.gql`
8171
8268
  rewardValue
8172
8269
  }
8173
8270
  `;
8174
- var AFFILIATE_RESOURCE_FIELDS_FRAGMENT = import_client74.gql`
8271
+ var AFFILIATE_RESOURCE_FIELDS_FRAGMENT = import_client75.gql`
8175
8272
  fragment AffiliateResourceFields on AffiliateResourceType {
8176
8273
  resourceActive
8177
8274
  resourceDeletedAt
@@ -8188,13 +8285,13 @@ var AFFILIATE_RESOURCE_FIELDS_FRAGMENT = import_client74.gql`
8188
8285
  ${AFFILIATE_REWARD_FIELDS_FRAGMENT}
8189
8286
  ${OWNER_FIELDS_FRAGMENT}
8190
8287
  `;
8191
- var AFFILIATE_BANK_ACCOUNT_DETAILS_FIELDS_FRAGMENT = import_client74.gql`
8288
+ var AFFILIATE_BANK_ACCOUNT_DETAILS_FIELDS_FRAGMENT = import_client75.gql`
8192
8289
  fragment AffiliateBankAccountDetailsFields on AffiliateBankAccountDetailsType {
8193
8290
  accountHolderName
8194
8291
  accountNumber
8195
8292
  }
8196
8293
  `;
8197
- var AFFILIATE_DETAILS_FIELDS_FRAGMENT = import_client74.gql`
8294
+ var AFFILIATE_DETAILS_FIELDS_FRAGMENT = import_client75.gql`
8198
8295
  fragment AffiliateDetailsFields on AffiliateDetailsType {
8199
8296
  bankAccountDetails {
8200
8297
  ...AffiliateBankAccountDetailsFields
@@ -8222,7 +8319,7 @@ var AFFILIATE_DETAILS_FIELDS_FRAGMENT = import_client74.gql`
8222
8319
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
8223
8320
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
8224
8321
  `;
8225
- var AFFILIATE_FIELDS_FRAGMENT = import_client74.gql`
8322
+ var AFFILIATE_FIELDS_FRAGMENT = import_client75.gql`
8226
8323
  fragment AffiliateFields on AffiliateType {
8227
8324
  _id
8228
8325
  active
@@ -8254,7 +8351,7 @@ var AFFILIATE_FIELDS_FRAGMENT = import_client74.gql`
8254
8351
  ${AFFILIATE_RESOURCE_FIELDS_FRAGMENT}
8255
8352
  ${OWNER_FIELDS_FRAGMENT}
8256
8353
  `;
8257
- var GET_AFFILIATE = import_client74.gql`
8354
+ var GET_AFFILIATE = import_client75.gql`
8258
8355
  query getAffiliate($_id: ID!) {
8259
8356
  affiliate(_id: $_id) {
8260
8357
  ...AffiliateFields
@@ -8262,7 +8359,7 @@ var GET_AFFILIATE = import_client74.gql`
8262
8359
  }
8263
8360
  ${AFFILIATE_FIELDS_FRAGMENT}
8264
8361
  `;
8265
- var GET_AFFILIATES = import_client74.gql`
8362
+ var GET_AFFILIATES = import_client75.gql`
8266
8363
  query getAffiliates {
8267
8364
  affiliates {
8268
8365
  ...AffiliateFields
@@ -8273,7 +8370,7 @@ var GET_AFFILIATES = import_client74.gql`
8273
8370
 
8274
8371
  // src/graphql/hooks/affiliate/hooksQuery.ts
8275
8372
  var useGetAffiliate = (_id) => {
8276
- const { data, loading, error, refetch } = (0, import_client75.useQuery)(GET_AFFILIATE, {
8373
+ const { data, loading, error, refetch } = (0, import_client76.useQuery)(GET_AFFILIATE, {
8277
8374
  fetchPolicy: "network-only",
8278
8375
  skip: !_id || _id === "",
8279
8376
  variables: { _id }
@@ -8287,7 +8384,7 @@ var useGetAffiliate = (_id) => {
8287
8384
  };
8288
8385
  };
8289
8386
  var useGetAffiliates = () => {
8290
- const { data, loading, error, refetch } = (0, import_client75.useQuery)(GET_AFFILIATES, {
8387
+ const { data, loading, error, refetch } = (0, import_client76.useQuery)(GET_AFFILIATES, {
8291
8388
  fetchPolicy: "network-only"
8292
8389
  });
8293
8390
  const affiliates = data?.affiliates || [];
@@ -8300,11 +8397,11 @@ var useGetAffiliates = () => {
8300
8397
  };
8301
8398
 
8302
8399
  // src/graphql/hooks/affiliate/hooksMutation.ts
8303
- var import_client77 = require("@apollo/client");
8400
+ var import_client78 = require("@apollo/client");
8304
8401
 
8305
8402
  // src/graphql/mutations/affiliate.ts
8306
- var import_client76 = require("@apollo/client");
8307
- var UPDATE_AFFILIATE_DETAILS_MUTATION = import_client76.gql`
8403
+ var import_client77 = require("@apollo/client");
8404
+ var UPDATE_AFFILIATE_DETAILS_MUTATION = import_client77.gql`
8308
8405
  mutation updateAffiliateDetails(
8309
8406
  $input: AffiliateDetailsInputType!
8310
8407
  $affiliateId: ID!
@@ -8318,7 +8415,7 @@ var UPDATE_AFFILIATE_DETAILS_MUTATION = import_client76.gql`
8318
8415
  }
8319
8416
  ${AFFILIATE_FIELDS_FRAGMENT}
8320
8417
  `;
8321
- var DELETE_AFFILIATE_MUTATION = import_client76.gql`
8418
+ var DELETE_AFFILIATE_MUTATION = import_client77.gql`
8322
8419
  mutation deleteAffiliate($_id: ID!) {
8323
8420
  deleteAffiliate(_id: $_id) {
8324
8421
  data
@@ -8326,7 +8423,7 @@ var DELETE_AFFILIATE_MUTATION = import_client76.gql`
8326
8423
  }
8327
8424
  }
8328
8425
  `;
8329
- var REDEEM_AFFILIATE_REWARD_MUTATION = import_client76.gql`
8426
+ var REDEEM_AFFILIATE_REWARD_MUTATION = import_client77.gql`
8330
8427
  mutation redeemAffiliateReward($affiliateId: ID!) {
8331
8428
  redeemAffiliateReward(affiliateId: $affiliateId) {
8332
8429
  data {
@@ -8337,7 +8434,7 @@ var REDEEM_AFFILIATE_REWARD_MUTATION = import_client76.gql`
8337
8434
  }
8338
8435
  ${AFFILIATE_FIELDS_FRAGMENT}
8339
8436
  `;
8340
- var ASSIGN_AFFILIATE_RESOURCE_REWARD_MUTATION = import_client76.gql`
8437
+ var ASSIGN_AFFILIATE_RESOURCE_REWARD_MUTATION = import_client77.gql`
8341
8438
  mutation assignAffiliateResourceReward(
8342
8439
  $affiliateId: ID!
8343
8440
  $resourceId: ID!
@@ -8358,7 +8455,7 @@ var ASSIGN_AFFILIATE_RESOURCE_REWARD_MUTATION = import_client76.gql`
8358
8455
  }
8359
8456
  ${AFFILIATE_FIELDS_FRAGMENT}
8360
8457
  `;
8361
- var ASSIGN_AFFILIATE_BONUS_REWARD_MUTATION = import_client76.gql`
8458
+ var ASSIGN_AFFILIATE_BONUS_REWARD_MUTATION = import_client77.gql`
8362
8459
  mutation assignAffiliateBonusReward(
8363
8460
  $affiliateId: ID!
8364
8461
  $rewardType: AffiliateRewardEnumType!
@@ -8378,7 +8475,7 @@ var ASSIGN_AFFILIATE_BONUS_REWARD_MUTATION = import_client76.gql`
8378
8475
 
8379
8476
  // src/graphql/hooks/affiliate/hooksMutation.ts
8380
8477
  var useUpdateAffiliateDetails = () => {
8381
- const [updateAffiliateDetails, { loading, error }] = (0, import_client77.useMutation)(UPDATE_AFFILIATE_DETAILS_MUTATION, {
8478
+ const [updateAffiliateDetails, { loading, error }] = (0, import_client78.useMutation)(UPDATE_AFFILIATE_DETAILS_MUTATION, {
8382
8479
  awaitRefetchQueries: true,
8383
8480
  refetchQueries: (mutationResult) => {
8384
8481
  const affiliateId = mutationResult?.data?.updateAffiliateDetails?.data?._id;
@@ -8389,14 +8486,14 @@ var useUpdateAffiliateDetails = () => {
8389
8486
  return { error, loading, updateAffiliateDetails };
8390
8487
  };
8391
8488
  var useDeleteAffiliate = () => {
8392
- const [deleteAffiliate, { loading, error }] = (0, import_client77.useMutation)(DELETE_AFFILIATE_MUTATION, {
8489
+ const [deleteAffiliate, { loading, error }] = (0, import_client78.useMutation)(DELETE_AFFILIATE_MUTATION, {
8393
8490
  awaitRefetchQueries: true,
8394
8491
  refetchQueries: [{ query: GET_AFFILIATES }]
8395
8492
  });
8396
8493
  return { deleteAffiliate, error, loading };
8397
8494
  };
8398
8495
  var useRedeemAffiliateReward = () => {
8399
- const [redeemAffiliateReward, { loading, error }] = (0, import_client77.useMutation)(REDEEM_AFFILIATE_REWARD_MUTATION, {
8496
+ const [redeemAffiliateReward, { loading, error }] = (0, import_client78.useMutation)(REDEEM_AFFILIATE_REWARD_MUTATION, {
8400
8497
  awaitRefetchQueries: true,
8401
8498
  refetchQueries: (mutationResult) => {
8402
8499
  const affiliateId = mutationResult?.data?.redeemAffiliateReward?.data?._id;
@@ -8407,7 +8504,7 @@ var useRedeemAffiliateReward = () => {
8407
8504
  return { error, loading, redeemAffiliateReward };
8408
8505
  };
8409
8506
  var useAssignAffiliateResourceReward = () => {
8410
- const [assignAffiliateResourceReward, { loading, error }] = (0, import_client77.useMutation)(ASSIGN_AFFILIATE_RESOURCE_REWARD_MUTATION, {
8507
+ const [assignAffiliateResourceReward, { loading, error }] = (0, import_client78.useMutation)(ASSIGN_AFFILIATE_RESOURCE_REWARD_MUTATION, {
8411
8508
  awaitRefetchQueries: true,
8412
8509
  refetchQueries: (mutationResult) => {
8413
8510
  const affiliateId = mutationResult?.data?.assignAffiliateResourceReward?.data?._id;
@@ -8418,7 +8515,7 @@ var useAssignAffiliateResourceReward = () => {
8418
8515
  return { assignAffiliateResourceReward, error, loading };
8419
8516
  };
8420
8517
  var useAssignAffiliateBonusReward = () => {
8421
- const [assignAffiliateBonusReward, { loading, error }] = (0, import_client77.useMutation)(ASSIGN_AFFILIATE_BONUS_REWARD_MUTATION, {
8518
+ const [assignAffiliateBonusReward, { loading, error }] = (0, import_client78.useMutation)(ASSIGN_AFFILIATE_BONUS_REWARD_MUTATION, {
8422
8519
  awaitRefetchQueries: true,
8423
8520
  refetchQueries: (mutationResult) => {
8424
8521
  const affiliateId = mutationResult?.data?.assignAffiliateBonusReward?.data?._id;
@@ -8434,84 +8531,6 @@ var import_client80 = require("@apollo/client");
8434
8531
 
8435
8532
  // src/graphql/mutations/coupon.ts
8436
8533
  var import_client79 = require("@apollo/client");
8437
-
8438
- // src/graphql/queries/coupon.ts
8439
- var import_client78 = require("@apollo/client");
8440
- var COUPON_CODE_FIELDS_FRAGMENT = import_client78.gql`
8441
- fragment CouponCodeFields on CouponCodeType {
8442
- code
8443
- qrCode {
8444
- ...ResourceImageFields
8445
- }
8446
- }
8447
- ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
8448
- `;
8449
- var COUPON_PARTICIPANT_USER_FIELDS_FRAGMENT = import_client78.gql`
8450
- fragment CouponParticipantUserFields on CouponParticipantUserType {
8451
- couponCount
8452
- couponRedeemedAt
8453
- createdAt
8454
- updatedAt
8455
- userId
8456
- }
8457
- `;
8458
- var PRODUCT_COUPON_FIELDS_FRAGMENT = import_client78.gql`
8459
- fragment ProductCouponFields on ProductCouponType {
8460
- _id
8461
- active
8462
- couponCode {
8463
- ...CouponCodeFields
8464
- }
8465
- couponDescription
8466
- couponOption
8467
- createdAt
8468
- endDate
8469
- participantProduct {
8470
- ...VendorProductListFields
8471
- }
8472
- participantUsers {
8473
- ...CouponParticipantUserFields
8474
- }
8475
- startDate
8476
- updatedAt
8477
- }
8478
- ${COUPON_CODE_FIELDS_FRAGMENT}
8479
- ${COUPON_PARTICIPANT_USER_FIELDS_FRAGMENT}
8480
- ${VENDOR_PRODUCT_LIST_FIELDS_FRAGMENT}
8481
- `;
8482
- var COUPON = import_client78.gql`
8483
- fragment CouponFields on CouponType {
8484
- _id
8485
- active
8486
- productCoupons {
8487
- ...ProductCouponFields
8488
- }
8489
- createdAt
8490
- deletedAt
8491
- updatedAt
8492
- }
8493
- ${PRODUCT_COUPON_FIELDS_FRAGMENT}
8494
- ${COUPON_CODE_FIELDS_FRAGMENT}
8495
- ${COUPON_PARTICIPANT_USER_FIELDS_FRAGMENT}
8496
- `;
8497
- var GET_COUPONS = import_client78.gql`
8498
- query getCoupons {
8499
- coupons {
8500
- ...CouponFields
8501
- }
8502
- }
8503
- ${COUPON}
8504
- `;
8505
- var GET_COUPON = import_client78.gql`
8506
- query getCoupon($_id: ID!) {
8507
- coupon(_id: $_id) {
8508
- ...CouponFields
8509
- }
8510
- }
8511
- ${COUPON}
8512
- `;
8513
-
8514
- // src/graphql/mutations/coupon.ts
8515
8534
  var CREATE_COUPON_MUTATION = import_client79.gql`
8516
8535
  mutation createCoupon($input: CouponInputType!) {
8517
8536
  createCoupon(input: $input) {
@@ -9277,7 +9296,7 @@ function canAccessAdminPath(roles, pathname) {
9277
9296
  computeDailyClueState,
9278
9297
  contactUsFields,
9279
9298
  createAffiliateReward,
9280
- createCouponTypeOption,
9299
+ createCouponDefaults,
9281
9300
  darkColors,
9282
9301
  dateFormat,
9283
9302
  emailField,