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