@timardex/cluemart-shared 1.7.28 → 1.7.30

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 (63) hide show
  1. package/dist/{ad-C8XVY1Ig.d.mts → ad-BDx9eYoO.d.mts} +2 -2
  2. package/dist/{ad-B9tX1jAF.d.ts → ad-BYbSba4V.d.ts} +2 -2
  3. package/dist/{coupon-BDEw47eR.d.ts → affiliate-Cxdq9Q2k.d.ts} +3 -47
  4. package/dist/{coupon-C6CyYA96.d.mts → affiliate-kBWfF_ZN.d.mts} +3 -47
  5. package/dist/auth/index.cjs +139 -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-24JSCOFX.mjs} +9 -85
  11. package/dist/chunk-24JSCOFX.mjs.map +1 -0
  12. package/dist/{chunk-4G4OFSBZ.mjs → chunk-3UYXNSNB.mjs} +12 -7
  13. package/dist/{chunk-4G4OFSBZ.mjs.map → chunk-3UYXNSNB.mjs.map} +1 -1
  14. package/dist/{chunk-LS3KB634.mjs → chunk-GZYTDNBQ.mjs} +141 -27
  15. package/dist/chunk-GZYTDNBQ.mjs.map +1 -0
  16. package/dist/{chunk-7TL4ZSUO.mjs → chunk-UV5GH6NI.mjs} +10 -2
  17. package/dist/chunk-UV5GH6NI.mjs.map +1 -0
  18. package/dist/{contactUs-C-pVJyZB.d.mts → contactUs-BXjzZEI1.d.mts} +1 -1
  19. package/dist/{contactUs-BZf4DfMe.d.ts → contactUs-Dk8zBwW9.d.ts} +1 -1
  20. package/dist/formFields/index.d.mts +1 -1
  21. package/dist/formFields/index.d.ts +1 -1
  22. package/dist/formFields/index.mjs +2 -2
  23. package/dist/{global-BC6YWupC.d.mts → global-D1ZvBNbG.d.mts} +67 -2
  24. package/dist/{global-Ch0I5X41.d.ts → global-Dot3RjVJ.d.ts} +67 -2
  25. package/dist/graphql/index.cjs +520 -486
  26. package/dist/graphql/index.cjs.map +1 -1
  27. package/dist/graphql/index.d.mts +5 -5
  28. package/dist/graphql/index.d.ts +5 -5
  29. package/dist/graphql/index.mjs +2 -2
  30. package/dist/hooks/index.cjs +402 -352
  31. package/dist/hooks/index.cjs.map +1 -1
  32. package/dist/hooks/index.d.mts +8 -8
  33. package/dist/hooks/index.d.ts +8 -8
  34. package/dist/hooks/index.mjs +33 -17
  35. package/dist/hooks/index.mjs.map +1 -1
  36. package/dist/index.cjs +540 -492
  37. package/dist/index.cjs.map +1 -1
  38. package/dist/index.d.mts +69 -47
  39. package/dist/index.d.ts +69 -47
  40. package/dist/index.mjs +355 -308
  41. package/dist/index.mjs.map +1 -1
  42. package/dist/map/index.d.mts +1 -1
  43. package/dist/map/index.d.ts +1 -1
  44. package/dist/{resourceActivities-C6EjqEG7.d.ts → resourceActivities-E-7429jp.d.ts} +1 -1
  45. package/dist/{resourceActivities-Vh5zcV02.d.mts → resourceActivities-kGzOHndG.d.mts} +1 -1
  46. package/dist/sharing/index.d.mts +1 -1
  47. package/dist/sharing/index.d.ts +1 -1
  48. package/dist/types/index.cjs +9 -0
  49. package/dist/types/index.cjs.map +1 -1
  50. package/dist/types/index.d.mts +7 -7
  51. package/dist/types/index.d.ts +7 -7
  52. package/dist/types/index.mjs +3 -1
  53. package/dist/{user-DrA0HITt.d.ts → user-Ca0QNirI.d.ts} +2 -1
  54. package/dist/{user-DWNmVv-L.d.mts → user-JCkXYAQS.d.mts} +2 -1
  55. package/dist/utils/index.cjs +11 -6
  56. package/dist/utils/index.cjs.map +1 -1
  57. package/dist/utils/index.d.mts +5 -5
  58. package/dist/utils/index.d.ts +5 -5
  59. package/dist/utils/index.mjs +4 -4
  60. package/package.json +1 -1
  61. package/dist/chunk-2G4J6K5K.mjs.map +0 -1
  62. package/dist/chunk-7TL4ZSUO.mjs.map +0 -1
  63. package/dist/chunk-LS3KB634.mjs.map +0 -1
package/dist/index.cjs CHANGED
@@ -54,6 +54,7 @@ __export(index_exports, {
54
54
  EnumBillingPeriod: () => EnumBillingPeriod,
55
55
  EnumChatReportReason: () => EnumChatReportReason,
56
56
  EnumChatType: () => EnumChatType,
57
+ EnumCouponQualificationType: () => EnumCouponQualificationType,
57
58
  EnumEventDateStatus: () => EnumEventDateStatus,
58
59
  EnumEventType: () => EnumEventType,
59
60
  EnumFoodFlavor: () => EnumFoodFlavor,
@@ -176,7 +177,7 @@ __export(index_exports, {
176
177
  computeDailyClueState: () => computeDailyClueState,
177
178
  contactUsFields: () => contactUsFields,
178
179
  createAffiliateReward: () => createAffiliateReward,
179
- createCouponTypeOption: () => createCouponTypeOption,
180
+ createCouponDefaults: () => createCouponDefaults,
180
181
  darkColors: () => darkColors,
181
182
  dateFormat: () => dateFormat,
182
183
  emailField: () => emailField,
@@ -1473,6 +1474,13 @@ var EnumAffiliateRewardType = /* @__PURE__ */ ((EnumAffiliateRewardType2) => {
1473
1474
  return EnumAffiliateRewardType2;
1474
1475
  })(EnumAffiliateRewardType || {});
1475
1476
 
1477
+ // src/types/coupon/index.ts
1478
+ var EnumCouponQualificationType = /* @__PURE__ */ ((EnumCouponQualificationType2) => {
1479
+ EnumCouponQualificationType2["PURCHASE"] = "PURCHASE";
1480
+ EnumCouponQualificationType2["MARKET_VISIT"] = "MARKET_VISIT";
1481
+ return EnumCouponQualificationType2;
1482
+ })(EnumCouponQualificationType || {});
1483
+
1476
1484
  // src/utils/utils.ts
1477
1485
  var removeTypename = (obj) => {
1478
1486
  if (obj instanceof Date) {
@@ -3038,23 +3046,28 @@ function getErrorMessage(error, fallback = DEFAULT_USER_FACING_ERROR) {
3038
3046
  }
3039
3047
 
3040
3048
  // src/utils/coupon.ts
3041
- function createCouponTypeOption({
3049
+ function createCouponDefaults({
3042
3050
  couponCode,
3043
3051
  couponDescription,
3044
3052
  couponOption,
3053
+ couponRewards,
3045
3054
  createdAt,
3046
3055
  endDate,
3047
- participantProduct,
3048
- startDate
3056
+ startDate,
3057
+ resourceId,
3058
+ resourceType
3049
3059
  }) {
3050
3060
  return {
3051
3061
  active: true,
3052
3062
  couponCode,
3053
3063
  couponDescription,
3054
3064
  couponOption,
3065
+ couponRewards,
3055
3066
  createdAt,
3056
3067
  endDate,
3057
- participantProduct,
3068
+ participantUsers: null,
3069
+ resourceId,
3070
+ resourceType,
3058
3071
  startDate,
3059
3072
  updatedAt: null
3060
3073
  };
@@ -3922,6 +3935,7 @@ var USER_FIELDS_FRAGMENT = import_client.gql`
3922
3935
  avatar {
3923
3936
  ...ResourceImageFields
3924
3937
  }
3938
+ coupon
3925
3939
  createdAt
3926
3940
  deletedAt
3927
3941
  email
@@ -4272,8 +4286,116 @@ var GET_EVENT_INFO = import_client2.gql`
4272
4286
  `;
4273
4287
 
4274
4288
  // src/graphql/queries/vendor.ts
4289
+ var import_client4 = require("@apollo/client");
4290
+
4291
+ // src/graphql/queries/coupon.ts
4275
4292
  var import_client3 = require("@apollo/client");
4276
- var VENDOR_DATETIME_FIELDS_FRAGMENT = import_client3.gql`
4293
+ var PRODUCT_COUPON_FIELDS_FRAGMENT = import_client3.gql`
4294
+ fragment ProductCouponFields on ProductCouponType {
4295
+ couponDocumentId
4296
+ couponId
4297
+ }
4298
+ `;
4299
+ var COUPON_CODE_FIELDS_FRAGMENT = import_client3.gql`
4300
+ fragment CouponCodeFields on CouponCodeType {
4301
+ code
4302
+ qrCode {
4303
+ ...ResourceImageFields
4304
+ }
4305
+ }
4306
+ ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
4307
+ `;
4308
+ var COUPON_PARTICIPANT_USER_FIELDS_FRAGMENT = import_client3.gql`
4309
+ fragment CouponParticipantUserFields on CouponParticipantUserType {
4310
+ couponCollectedCount
4311
+ couponRedeemedAt
4312
+ createdAt
4313
+ updatedAt
4314
+ userId
4315
+ }
4316
+ `;
4317
+ var COUPON_OPTION_FIELDS_FRAGMENT = import_client3.gql`
4318
+ fragment CouponOptionFields on CouponOptionType {
4319
+ type
4320
+ buy
4321
+ get
4322
+ unit
4323
+ visits
4324
+ }
4325
+ `;
4326
+ var COUPON_REWARD_FIELDS_FRAGMENT = import_client3.gql`
4327
+ fragment CouponRewardFields on CouponRewardType {
4328
+ vendorId
4329
+ productId
4330
+ quantity
4331
+ unit
4332
+ }
4333
+ `;
4334
+ var COUPON_DATA_FIELDS_FRAGMENT = import_client3.gql`
4335
+ fragment CouponDataFields on CouponDataType {
4336
+ _id
4337
+ active
4338
+ couponCode {
4339
+ ...CouponCodeFields
4340
+ }
4341
+ couponDescription
4342
+ couponOption {
4343
+ ...CouponOptionFields
4344
+ }
4345
+ couponRewards {
4346
+ ...CouponRewardFields
4347
+ }
4348
+ createdAt
4349
+ endDate
4350
+ participantUsers {
4351
+ ...CouponParticipantUserFields
4352
+ }
4353
+ resourceId
4354
+ resourceType
4355
+ startDate
4356
+ updatedAt
4357
+ }
4358
+ ${COUPON_CODE_FIELDS_FRAGMENT}
4359
+ ${COUPON_OPTION_FIELDS_FRAGMENT}
4360
+ ${COUPON_PARTICIPANT_USER_FIELDS_FRAGMENT}
4361
+ ${COUPON_REWARD_FIELDS_FRAGMENT}
4362
+ `;
4363
+ var COUPON = import_client3.gql`
4364
+ fragment CouponFields on CouponType {
4365
+ _id
4366
+ active
4367
+ couponData {
4368
+ ...CouponDataFields
4369
+ }
4370
+ createdAt
4371
+ deletedAt
4372
+ owner {
4373
+ ...OwnerFields
4374
+ }
4375
+ updatedAt
4376
+ }
4377
+ ${OWNER_FIELDS_FRAGMENT}
4378
+ ${COUPON_DATA_FIELDS_FRAGMENT}
4379
+ `;
4380
+ var GET_COUPONS = import_client3.gql`
4381
+ query getCoupons {
4382
+ coupons {
4383
+ ...CouponFields
4384
+ }
4385
+ }
4386
+ ${COUPON}
4387
+ `;
4388
+ var GET_COUPON = import_client3.gql`
4389
+ query getCoupon($_id: ID!) {
4390
+ coupon(_id: $_id) {
4391
+ ...CouponFields
4392
+ }
4393
+ }
4394
+ ${COUPON}
4395
+ `;
4396
+
4397
+ // src/graphql/queries/vendor.ts
4398
+ var VENDOR_DATETIME_FIELDS_FRAGMENT = import_client4.gql`
4277
4399
  fragment VendorDateTimeFields on VendorDateTimeType {
4278
4400
  dateStatus
4279
4401
  endDate
@@ -4282,20 +4404,23 @@ var VENDOR_DATETIME_FIELDS_FRAGMENT = import_client3.gql`
4282
4404
  startTime
4283
4405
  }
4284
4406
  `;
4285
- var VENDOR_PRODUCT_LIST_FIELDS_FRAGMENT = import_client3.gql`
4407
+ var VENDOR_PRODUCT_LIST_FIELDS_FRAGMENT = import_client4.gql`
4286
4408
  fragment VendorProductListFields on VendorProductListType {
4287
4409
  _id
4410
+ coupon {
4411
+ ...ProductCouponFields
4412
+ }
4288
4413
  createdAt
4289
4414
  description
4290
- hasCoupon
4291
4415
  name
4292
4416
  price
4293
4417
  priceUnit
4294
4418
  productGroups
4295
4419
  updatedAt
4296
4420
  }
4421
+ ${PRODUCT_COUPON_FIELDS_FRAGMENT}
4297
4422
  `;
4298
- var VENDOR = import_client3.gql`
4423
+ var VENDOR = import_client4.gql`
4299
4424
  fragment VendorFields on VendorType {
4300
4425
  _id
4301
4426
  active
@@ -4396,13 +4521,13 @@ var VENDOR = import_client3.gql`
4396
4521
  ${RELATED_POST_FIELDS_FRAGMENT}
4397
4522
  ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
4398
4523
  `;
4399
- var VENDOR_ATTRIBUTES_FRAGMENT = import_client3.gql`
4524
+ var VENDOR_ATTRIBUTES_FRAGMENT = import_client4.gql`
4400
4525
  fragment VendorAttributesFields on VendorAttributesType {
4401
4526
  details
4402
4527
  isRequired
4403
4528
  }
4404
4529
  `;
4405
- var VENDOR_INFO = import_client3.gql`
4530
+ var VENDOR_INFO = import_client4.gql`
4406
4531
  fragment VendorInfoFields on VendorInfoType {
4407
4532
  _id
4408
4533
  compliance {
@@ -4443,7 +4568,7 @@ var VENDOR_INFO = import_client3.gql`
4443
4568
  ${VENDOR_ATTRIBUTES_FRAGMENT}
4444
4569
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
4445
4570
  `;
4446
- var UNREGISTERED_VENDOR_INVITATION_FRAGMENT = import_client3.gql`
4571
+ var UNREGISTERED_VENDOR_INVITATION_FRAGMENT = import_client4.gql`
4447
4572
  fragment UnregisteredVendorInvitationFields on UnregisteredVendorInvitationType {
4448
4573
  dateTime {
4449
4574
  ...DateTimeFields
@@ -4452,7 +4577,7 @@ var UNREGISTERED_VENDOR_INVITATION_FRAGMENT = import_client3.gql`
4452
4577
  }
4453
4578
  ${DATETIME_FIELDS_FRAGMENT}
4454
4579
  `;
4455
- var UNREGISTERED_VENDOR = import_client3.gql`
4580
+ var UNREGISTERED_VENDOR = import_client4.gql`
4456
4581
  fragment UnregisteredVendorFields on UnregisteredVendorType {
4457
4582
  _id
4458
4583
  active
@@ -4472,7 +4597,7 @@ var UNREGISTERED_VENDOR = import_client3.gql`
4472
4597
  }
4473
4598
  ${UNREGISTERED_VENDOR_INVITATION_FRAGMENT}
4474
4599
  `;
4475
- var GET_VENDORS = import_client3.gql`
4600
+ var GET_VENDORS = import_client4.gql`
4476
4601
  query getVendors {
4477
4602
  vendors {
4478
4603
  ...VendorFields
@@ -4480,7 +4605,7 @@ var GET_VENDORS = import_client3.gql`
4480
4605
  }
4481
4606
  ${VENDOR}
4482
4607
  `;
4483
- var GET_VENDOR = import_client3.gql`
4608
+ var GET_VENDOR = import_client4.gql`
4484
4609
  query getVendor($_id: ID!) {
4485
4610
  vendor(_id: $_id) {
4486
4611
  ...VendorFields
@@ -4488,7 +4613,7 @@ var GET_VENDOR = import_client3.gql`
4488
4613
  }
4489
4614
  ${VENDOR}
4490
4615
  `;
4491
- var GET_VENDORS_BY_REGION = import_client3.gql`
4616
+ var GET_VENDORS_BY_REGION = import_client4.gql`
4492
4617
  query getVendorsByRegion(
4493
4618
  $region: String!
4494
4619
  $options: ResourcesByRegionOptions
@@ -4499,7 +4624,7 @@ var GET_VENDORS_BY_REGION = import_client3.gql`
4499
4624
  }
4500
4625
  ${VENDOR}
4501
4626
  `;
4502
- var SEARCH_VENDORS = import_client3.gql`
4627
+ var SEARCH_VENDORS = import_client4.gql`
4503
4628
  query searchVendors($search: String!, $region: String!) {
4504
4629
  vendorSearch(search: $search, region: $region) {
4505
4630
  ...VendorFields
@@ -4507,7 +4632,7 @@ var SEARCH_VENDORS = import_client3.gql`
4507
4632
  }
4508
4633
  ${VENDOR}
4509
4634
  `;
4510
- var GET_VENDOR_INFO = import_client3.gql`
4635
+ var GET_VENDOR_INFO = import_client4.gql`
4511
4636
  query getVendorInfo($vendorId: ID!) {
4512
4637
  vendorInfo(vendorId: $vendorId) {
4513
4638
  ...VendorInfoFields
@@ -4515,7 +4640,7 @@ var GET_VENDOR_INFO = import_client3.gql`
4515
4640
  }
4516
4641
  ${VENDOR_INFO}
4517
4642
  `;
4518
- var GET_UNREGISTERED_VENDORS = import_client3.gql`
4643
+ var GET_UNREGISTERED_VENDORS = import_client4.gql`
4519
4644
  query getUnregisteredVendors {
4520
4645
  unregisteredVendors {
4521
4646
  ...UnregisteredVendorFields
@@ -4523,7 +4648,7 @@ var GET_UNREGISTERED_VENDORS = import_client3.gql`
4523
4648
  }
4524
4649
  ${UNREGISTERED_VENDOR}
4525
4650
  `;
4526
- var GET_UNREGISTERED_VENDORS_BY_INVITER_ID = import_client3.gql`
4651
+ var GET_UNREGISTERED_VENDORS_BY_INVITER_ID = import_client4.gql`
4527
4652
  query getUnregisteredVendorsByInviterId($inviterId: ID!) {
4528
4653
  unregisteredVendorsByInviterId(inviterId: $inviterId) {
4529
4654
  ...UnregisteredVendorFields
@@ -4531,7 +4656,7 @@ var GET_UNREGISTERED_VENDORS_BY_INVITER_ID = import_client3.gql`
4531
4656
  }
4532
4657
  ${UNREGISTERED_VENDOR}
4533
4658
  `;
4534
- var GET_UNREGISTERED_VENDOR = import_client3.gql`
4659
+ var GET_UNREGISTERED_VENDOR = import_client4.gql`
4535
4660
  query getUnregisteredVendor($_id: ID!) {
4536
4661
  unregisteredVendor(_id: $_id) {
4537
4662
  ...UnregisteredVendorFields
@@ -4539,7 +4664,7 @@ var GET_UNREGISTERED_VENDOR = import_client3.gql`
4539
4664
  }
4540
4665
  ${UNREGISTERED_VENDOR}
4541
4666
  `;
4542
- var MY_PENDING_VENDOR_CLAIM = import_client3.gql`
4667
+ var MY_PENDING_VENDOR_CLAIM = import_client4.gql`
4543
4668
  query myPendingVendorClaim {
4544
4669
  myPendingVendorClaim {
4545
4670
  _id
@@ -4550,8 +4675,8 @@ var MY_PENDING_VENDOR_CLAIM = import_client3.gql`
4550
4675
  `;
4551
4676
 
4552
4677
  // src/graphql/mutations/vendor.ts
4553
- var import_client4 = require("@apollo/client");
4554
- var CREATE_VENDOR_MUTATION = import_client4.gql`
4678
+ var import_client5 = require("@apollo/client");
4679
+ var CREATE_VENDOR_MUTATION = import_client5.gql`
4555
4680
  mutation createVendor($input: VendorInputType!) {
4556
4681
  createVendor(input: $input) {
4557
4682
  data {
@@ -4562,7 +4687,7 @@ var CREATE_VENDOR_MUTATION = import_client4.gql`
4562
4687
  }
4563
4688
  ${VENDOR}
4564
4689
  `;
4565
- var UPDATE_VENDOR_MUTATION = import_client4.gql`
4690
+ var UPDATE_VENDOR_MUTATION = import_client5.gql`
4566
4691
  mutation updateVendor($_id: ID!, $input: VendorInputType!) {
4567
4692
  updateVendor(_id: $_id, input: $input) {
4568
4693
  data {
@@ -4573,7 +4698,7 @@ var UPDATE_VENDOR_MUTATION = import_client4.gql`
4573
4698
  }
4574
4699
  ${VENDOR}
4575
4700
  `;
4576
- var DELETE_VENDOR_MUTATION = import_client4.gql`
4701
+ var DELETE_VENDOR_MUTATION = import_client5.gql`
4577
4702
  mutation deleteVendor($_id: ID!) {
4578
4703
  deleteVendor(_id: $_id) {
4579
4704
  data
@@ -4581,7 +4706,7 @@ var DELETE_VENDOR_MUTATION = import_client4.gql`
4581
4706
  }
4582
4707
  }
4583
4708
  `;
4584
- var CREATE_VENDOR_INFO_MUTATION = import_client4.gql`
4709
+ var CREATE_VENDOR_INFO_MUTATION = import_client5.gql`
4585
4710
  mutation createVendorInfo($input: VendorInfoInputType!) {
4586
4711
  createVendorInfo(input: $input) {
4587
4712
  data {
@@ -4592,7 +4717,7 @@ var CREATE_VENDOR_INFO_MUTATION = import_client4.gql`
4592
4717
  }
4593
4718
  ${VENDOR_INFO}
4594
4719
  `;
4595
- var UPDATE_VENDOR_INFO_MUTATION = import_client4.gql`
4720
+ var UPDATE_VENDOR_INFO_MUTATION = import_client5.gql`
4596
4721
  mutation updateVendorInfo($_id: ID!, $input: VendorInfoInputType!) {
4597
4722
  updateVendorInfo(_id: $_id, input: $input) {
4598
4723
  data {
@@ -4603,7 +4728,7 @@ var UPDATE_VENDOR_INFO_MUTATION = import_client4.gql`
4603
4728
  }
4604
4729
  ${VENDOR_INFO}
4605
4730
  `;
4606
- var CREATE_UNREGISTERED_VENDOR_MUTATION = import_client4.gql`
4731
+ var CREATE_UNREGISTERED_VENDOR_MUTATION = import_client5.gql`
4607
4732
  mutation createUnregisteredVendor($input: UnregisteredVendorInputType!) {
4608
4733
  createUnregisteredVendor(input: $input) {
4609
4734
  data {
@@ -4614,7 +4739,7 @@ var CREATE_UNREGISTERED_VENDOR_MUTATION = import_client4.gql`
4614
4739
  }
4615
4740
  ${UNREGISTERED_VENDOR}
4616
4741
  `;
4617
- var UPDATE_UNREGISTERED_VENDOR_MUTATION = import_client4.gql`
4742
+ var UPDATE_UNREGISTERED_VENDOR_MUTATION = import_client5.gql`
4618
4743
  mutation updateUnregisteredVendor(
4619
4744
  $_id: ID!
4620
4745
  $input: UnregisteredVendorInputType!
@@ -4628,7 +4753,7 @@ var UPDATE_UNREGISTERED_VENDOR_MUTATION = import_client4.gql`
4628
4753
  }
4629
4754
  ${UNREGISTERED_VENDOR}
4630
4755
  `;
4631
- var DELETE_UNREGISTERED_VENDOR_MUTATION = import_client4.gql`
4756
+ var DELETE_UNREGISTERED_VENDOR_MUTATION = import_client5.gql`
4632
4757
  mutation deleteUnregisteredVendor($_id: ID!) {
4633
4758
  deleteUnregisteredVendor(_id: $_id) {
4634
4759
  data
@@ -4636,7 +4761,7 @@ var DELETE_UNREGISTERED_VENDOR_MUTATION = import_client4.gql`
4636
4761
  }
4637
4762
  }
4638
4763
  `;
4639
- var UNLINK_UNREGISTERED_VENDOR_BY_INVITER_ID_MUTATION = import_client4.gql`
4764
+ var UNLINK_UNREGISTERED_VENDOR_BY_INVITER_ID_MUTATION = import_client5.gql`
4640
4765
  mutation unlinkUnregisteredVendorByInviterId($_id: ID!, $inviterId: ID!) {
4641
4766
  unlinkUnregisteredVendorByInviterId(_id: $_id, inviterId: $inviterId) {
4642
4767
  data
@@ -4644,7 +4769,7 @@ var UNLINK_UNREGISTERED_VENDOR_BY_INVITER_ID_MUTATION = import_client4.gql`
4644
4769
  }
4645
4770
  }
4646
4771
  `;
4647
- var ACTIVATE_VENDOR_CLAIM_MUTATION = import_client4.gql`
4772
+ var ACTIVATE_VENDOR_CLAIM_MUTATION = import_client5.gql`
4648
4773
  mutation activateVendorClaim($token: String!) {
4649
4774
  activateVendorClaim(token: $token) {
4650
4775
  valid
@@ -4654,8 +4779,8 @@ var ACTIVATE_VENDOR_CLAIM_MUTATION = import_client4.gql`
4654
4779
  `;
4655
4780
 
4656
4781
  // src/graphql/queries/partner.ts
4657
- var import_client5 = require("@apollo/client");
4658
- var PARTNER = import_client5.gql`
4782
+ var import_client6 = require("@apollo/client");
4783
+ var PARTNER = import_client6.gql`
4659
4784
  fragment PartnerFields on PartnerType {
4660
4785
  _id
4661
4786
  active
@@ -4716,7 +4841,7 @@ var PARTNER = import_client5.gql`
4716
4841
  ${RELATED_POST_FIELDS_FRAGMENT}
4717
4842
  ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
4718
4843
  `;
4719
- var GET_PARTNERS = import_client5.gql`
4844
+ var GET_PARTNERS = import_client6.gql`
4720
4845
  query getPartners {
4721
4846
  partners {
4722
4847
  ...PartnerFields
@@ -4724,7 +4849,7 @@ var GET_PARTNERS = import_client5.gql`
4724
4849
  }
4725
4850
  ${PARTNER}
4726
4851
  `;
4727
- var GET_PARTNER = import_client5.gql`
4852
+ var GET_PARTNER = import_client6.gql`
4728
4853
  query getPartner($_id: ID!) {
4729
4854
  partner(_id: $_id) {
4730
4855
  ...PartnerFields
@@ -4732,7 +4857,7 @@ var GET_PARTNER = import_client5.gql`
4732
4857
  }
4733
4858
  ${PARTNER}
4734
4859
  `;
4735
- var GET_PARTNERS_BY_REGION = import_client5.gql`
4860
+ var GET_PARTNERS_BY_REGION = import_client6.gql`
4736
4861
  query getPartnersByRegion(
4737
4862
  $region: String!
4738
4863
  $options: ResourcesByRegionOptions
@@ -4743,7 +4868,7 @@ var GET_PARTNERS_BY_REGION = import_client5.gql`
4743
4868
  }
4744
4869
  ${PARTNER}
4745
4870
  `;
4746
- var SEARCH_PARTNERS = import_client5.gql`
4871
+ var SEARCH_PARTNERS = import_client6.gql`
4747
4872
  query searchPartners($search: String!, $region: String!) {
4748
4873
  partnersSearch(search: $search, region: $region) {
4749
4874
  ...PartnerFields
@@ -4753,17 +4878,17 @@ var SEARCH_PARTNERS = import_client5.gql`
4753
4878
  `;
4754
4879
 
4755
4880
  // src/graphql/queries/post.ts
4756
- var import_client8 = require("@apollo/client");
4881
+ var import_client9 = require("@apollo/client");
4757
4882
 
4758
4883
  // src/graphql/queries/game/dailyClue.ts
4759
- var import_client6 = require("@apollo/client");
4760
- var GAME_DATE_FIELDS_FRAGMENT = import_client6.gql`
4884
+ var import_client7 = require("@apollo/client");
4885
+ var GAME_DATE_FIELDS_FRAGMENT = import_client7.gql`
4761
4886
  fragment GameDateFields on GameDateType {
4762
4887
  startDate
4763
4888
  endDate
4764
4889
  }
4765
4890
  `;
4766
- var DAILY_CLUE_BASE_GAME_FIELDS_FRAGMENT = import_client6.gql`
4891
+ var DAILY_CLUE_BASE_GAME_FIELDS_FRAGMENT = import_client7.gql`
4767
4892
  fragment DailyClueBaseGameFields on DailyClueBaseGameType {
4768
4893
  gameDate {
4769
4894
  ...GameDateFields
@@ -4772,7 +4897,7 @@ var DAILY_CLUE_BASE_GAME_FIELDS_FRAGMENT = import_client6.gql`
4772
4897
  }
4773
4898
  ${GAME_DATE_FIELDS_FRAGMENT}
4774
4899
  `;
4775
- var DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT = import_client6.gql`
4900
+ var DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT = import_client7.gql`
4776
4901
  fragment DailyClueGameDataFields on DailyClueGameDataType {
4777
4902
  gameFields {
4778
4903
  ...DailyClueBaseGameFields
@@ -4792,15 +4917,15 @@ var DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT = import_client6.gql`
4792
4917
  `;
4793
4918
 
4794
4919
  // src/graphql/queries/game/puzzleGame.ts
4795
- var import_client7 = require("@apollo/client");
4796
- var PUZZLE_ANSWER_FIELDS_FRAGMENT = import_client7.gql`
4920
+ var import_client8 = require("@apollo/client");
4921
+ var PUZZLE_ANSWER_FIELDS_FRAGMENT = import_client8.gql`
4797
4922
  fragment PuzzleAnswerFields on PuzzleAnswerType {
4798
4923
  answer
4799
4924
  answerId
4800
4925
  correct
4801
4926
  }
4802
4927
  `;
4803
- var PUZZLE_QUESTION_FIELDS_FRAGMENT = import_client7.gql`
4928
+ var PUZZLE_QUESTION_FIELDS_FRAGMENT = import_client8.gql`
4804
4929
  fragment PuzzleQuestionFields on PuzzleQuestionType {
4805
4930
  answers {
4806
4931
  ...PuzzleAnswerFields
@@ -4810,13 +4935,13 @@ var PUZZLE_QUESTION_FIELDS_FRAGMENT = import_client7.gql`
4810
4935
  }
4811
4936
  ${PUZZLE_ANSWER_FIELDS_FRAGMENT}
4812
4937
  `;
4813
- var PUZZLE_ANSWERED_QUESTION_FIELDS_FRAGMENT = import_client7.gql`
4938
+ var PUZZLE_ANSWERED_QUESTION_FIELDS_FRAGMENT = import_client8.gql`
4814
4939
  fragment PuzzleAnsweredQuestionFields on PuzzleAnsweredQuestionType {
4815
4940
  questionId
4816
4941
  selectedAnswerId
4817
4942
  }
4818
4943
  `;
4819
- var PUZZLE_BASE_GAME_FIELDS_FRAGMENT = import_client7.gql`
4944
+ var PUZZLE_BASE_GAME_FIELDS_FRAGMENT = import_client8.gql`
4820
4945
  fragment PuzzleBaseGameFields on PuzzleBaseGameType {
4821
4946
  questions {
4822
4947
  ...PuzzleQuestionFields
@@ -4824,7 +4949,7 @@ var PUZZLE_BASE_GAME_FIELDS_FRAGMENT = import_client7.gql`
4824
4949
  }
4825
4950
  ${PUZZLE_QUESTION_FIELDS_FRAGMENT}
4826
4951
  `;
4827
- var PUZZLE_GAME_DATA_FIELDS_FRAGMENT = import_client7.gql`
4952
+ var PUZZLE_GAME_DATA_FIELDS_FRAGMENT = import_client8.gql`
4828
4953
  fragment PuzzleGameDataFields on PuzzleGameDataType {
4829
4954
  gameFields {
4830
4955
  ...PuzzleBaseGameFields
@@ -4840,7 +4965,7 @@ var PUZZLE_GAME_DATA_FIELDS_FRAGMENT = import_client7.gql`
4840
4965
  `;
4841
4966
 
4842
4967
  // src/graphql/queries/post.ts
4843
- var BASE_GAME_FIELDS_FRAGMENT = import_client8.gql`
4968
+ var BASE_GAME_FIELDS_FRAGMENT = import_client9.gql`
4844
4969
  fragment BaseGameFields on BaseGameType {
4845
4970
  gameTypeId
4846
4971
  gameTitle
@@ -4858,7 +4983,7 @@ var BASE_GAME_FIELDS_FRAGMENT = import_client8.gql`
4858
4983
  ${DAILY_CLUE_BASE_GAME_FIELDS_FRAGMENT}
4859
4984
  ${PUZZLE_BASE_GAME_FIELDS_FRAGMENT}
4860
4985
  `;
4861
- var POST_CONTENT_DATA_FIELDS_FRAGMENT = import_client8.gql`
4986
+ var POST_CONTENT_DATA_FIELDS_FRAGMENT = import_client9.gql`
4862
4987
  fragment PostContentDataFields on PostContentData {
4863
4988
  game {
4864
4989
  ...BaseGameFields
@@ -4884,7 +5009,7 @@ var POST_CONTENT_DATA_FIELDS_FRAGMENT = import_client8.gql`
4884
5009
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
4885
5010
  ${BASE_GAME_FIELDS_FRAGMENT}
4886
5011
  `;
4887
- var POST_CONTENT_FIELDS_FRAGMENT = import_client8.gql`
5012
+ var POST_CONTENT_FIELDS_FRAGMENT = import_client9.gql`
4888
5013
  fragment PostContentFields on PostContentType {
4889
5014
  contentData {
4890
5015
  ...PostContentDataFields
@@ -4894,7 +5019,7 @@ var POST_CONTENT_FIELDS_FRAGMENT = import_client8.gql`
4894
5019
  }
4895
5020
  ${POST_CONTENT_DATA_FIELDS_FRAGMENT}
4896
5021
  `;
4897
- var POST_RESOURCE_FIELDS_FRAGMENT = import_client8.gql`
5022
+ var POST_RESOURCE_FIELDS_FRAGMENT = import_client9.gql`
4898
5023
  fragment PostResourceFields on PostResourceType {
4899
5024
  resourceId
4900
5025
  resourceSlug
@@ -4902,7 +5027,7 @@ var POST_RESOURCE_FIELDS_FRAGMENT = import_client8.gql`
4902
5027
  resourceType
4903
5028
  }
4904
5029
  `;
4905
- var POST_FIELDS_FRAGMENT = import_client8.gql`
5030
+ var POST_FIELDS_FRAGMENT = import_client9.gql`
4906
5031
  fragment PostFields on PostType {
4907
5032
  _id
4908
5033
  active
@@ -4933,7 +5058,7 @@ var POST_FIELDS_FRAGMENT = import_client8.gql`
4933
5058
  ${POST_RESOURCE_FIELDS_FRAGMENT}
4934
5059
  ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
4935
5060
  `;
4936
- var GET_POSTS = import_client8.gql`
5061
+ var GET_POSTS = import_client9.gql`
4937
5062
  query getPosts {
4938
5063
  posts {
4939
5064
  ...PostFields
@@ -4941,7 +5066,7 @@ var GET_POSTS = import_client8.gql`
4941
5066
  }
4942
5067
  ${POST_FIELDS_FRAGMENT}
4943
5068
  `;
4944
- var GET_POST = import_client8.gql`
5069
+ var GET_POST = import_client9.gql`
4945
5070
  query getPost($_id: ID!) {
4946
5071
  post(_id: $_id) {
4947
5072
  ...PostFields
@@ -4949,7 +5074,7 @@ var GET_POST = import_client8.gql`
4949
5074
  }
4950
5075
  ${POST_FIELDS_FRAGMENT}
4951
5076
  `;
4952
- var GET_POSTS_BY_TYPE = import_client8.gql`
5077
+ var GET_POSTS_BY_TYPE = import_client9.gql`
4953
5078
  query getPostsByType($postType: PostTypeEnum!) {
4954
5079
  postsByType(postType: $postType) {
4955
5080
  ...PostFields
@@ -4959,29 +5084,29 @@ var GET_POSTS_BY_TYPE = import_client8.gql`
4959
5084
  `;
4960
5085
 
4961
5086
  // src/graphql/queries/shareSlug.ts
4962
- var import_client9 = require("@apollo/client");
4963
- var GET_EVENT_BY_SLUG = import_client9.gql`
5087
+ var import_client10 = require("@apollo/client");
5088
+ var GET_EVENT_BY_SLUG = import_client10.gql`
4964
5089
  query getEventBySlug($slug: String!) {
4965
5090
  eventBySlug(slug: $slug) {
4966
5091
  _id
4967
5092
  }
4968
5093
  }
4969
5094
  `;
4970
- var GET_VENDOR_BY_SLUG = import_client9.gql`
5095
+ var GET_VENDOR_BY_SLUG = import_client10.gql`
4971
5096
  query getVendorBySlug($slug: String!) {
4972
5097
  vendorBySlug(slug: $slug) {
4973
5098
  _id
4974
5099
  }
4975
5100
  }
4976
5101
  `;
4977
- var GET_PARTNER_BY_SLUG = import_client9.gql`
5102
+ var GET_PARTNER_BY_SLUG = import_client10.gql`
4978
5103
  query getPartnerBySlug($slug: String!) {
4979
5104
  partnerBySlug(slug: $slug) {
4980
5105
  _id
4981
5106
  }
4982
5107
  }
4983
5108
  `;
4984
- var GET_POST_BY_SLUG = import_client9.gql`
5109
+ var GET_POST_BY_SLUG = import_client10.gql`
4985
5110
  query getPostBySlug($slug: String!, $postType: PostTypeEnum!) {
4986
5111
  postBySlug(slug: $slug, postType: $postType) {
4987
5112
  _id
@@ -4990,8 +5115,8 @@ var GET_POST_BY_SLUG = import_client9.gql`
4990
5115
  `;
4991
5116
 
4992
5117
  // src/graphql/queries/relation.ts
4993
- var import_client10 = require("@apollo/client");
4994
- var RELATION_FIELDS_FRAGMENT = import_client10.gql`
5118
+ var import_client11 = require("@apollo/client");
5119
+ var RELATION_FIELDS_FRAGMENT = import_client11.gql`
4995
5120
  fragment RelationFields on RelationType {
4996
5121
  _id
4997
5122
  active
@@ -5008,7 +5133,7 @@ var RELATION_FIELDS_FRAGMENT = import_client10.gql`
5008
5133
  }
5009
5134
  ${RELATION_DATES_FRAGMENT}
5010
5135
  `;
5011
- var GET_RELATION = import_client10.gql`
5136
+ var GET_RELATION = import_client11.gql`
5012
5137
  query getRelation($_id: ID!) {
5013
5138
  relation(_id: $_id) {
5014
5139
  ...RelationFields
@@ -5016,7 +5141,7 @@ var GET_RELATION = import_client10.gql`
5016
5141
  }
5017
5142
  ${RELATION_FIELDS_FRAGMENT}
5018
5143
  `;
5019
- var GET_RELATION_BY_EVENT_AND_VENDOR = import_client10.gql`
5144
+ var GET_RELATION_BY_EVENT_AND_VENDOR = import_client11.gql`
5020
5145
  query getRelationByEventAndVendor($eventId: ID!, $vendorId: ID!) {
5021
5146
  relationByEventAndVendor(eventId: $eventId, vendorId: $vendorId) {
5022
5147
  ...RelationFields
@@ -5024,7 +5149,7 @@ var GET_RELATION_BY_EVENT_AND_VENDOR = import_client10.gql`
5024
5149
  }
5025
5150
  ${RELATION_FIELDS_FRAGMENT}
5026
5151
  `;
5027
- var GET_EVENT_RELATIONS = import_client10.gql`
5152
+ var GET_EVENT_RELATIONS = import_client11.gql`
5028
5153
  query getEventRelations($eventId: ID!) {
5029
5154
  eventRelations(eventId: $eventId) {
5030
5155
  ...RelationFields
@@ -5032,7 +5157,7 @@ var GET_EVENT_RELATIONS = import_client10.gql`
5032
5157
  }
5033
5158
  ${RELATION_FIELDS_FRAGMENT}
5034
5159
  `;
5035
- var GET_VENDOR_RELATIONS = import_client10.gql`
5160
+ var GET_VENDOR_RELATIONS = import_client11.gql`
5036
5161
  query getVendorRelations($vendorId: ID!) {
5037
5162
  vendorRelations(vendorId: $vendorId) {
5038
5163
  ...RelationFields
@@ -5040,7 +5165,7 @@ var GET_VENDOR_RELATIONS = import_client10.gql`
5040
5165
  }
5041
5166
  ${RELATION_FIELDS_FRAGMENT}
5042
5167
  `;
5043
- var GET_RESOURCE_CONNECTIONS = import_client10.gql`
5168
+ var GET_RESOURCE_CONNECTIONS = import_client11.gql`
5044
5169
  query getResourceConnections(
5045
5170
  $resourceId: ID!
5046
5171
  $resourceType: ResourceTypeEnum!
@@ -5065,11 +5190,11 @@ function toGraphqlQueryString(query) {
5065
5190
  }
5066
5191
 
5067
5192
  // src/graphql/hooks/admin/hooksMutation.ts
5068
- var import_client12 = require("@apollo/client");
5193
+ var import_client13 = require("@apollo/client");
5069
5194
 
5070
5195
  // src/graphql/mutations/admin.ts
5071
- var import_client11 = require("@apollo/client");
5072
- var ADMIN_UPDATE_RESOURCE_TYPE_MUTATION = import_client11.gql`
5196
+ var import_client12 = require("@apollo/client");
5197
+ var ADMIN_UPDATE_RESOURCE_TYPE_MUTATION = import_client12.gql`
5073
5198
  mutation adminUpdateResourceType($input: AdminUpdateResourceInputType!) {
5074
5199
  adminUpdateResourceType(input: $input) {
5075
5200
  data {
@@ -5081,7 +5206,7 @@ var ADMIN_UPDATE_RESOURCE_TYPE_MUTATION = import_client11.gql`
5081
5206
  }
5082
5207
  }
5083
5208
  `;
5084
- var ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION = import_client11.gql`
5209
+ var ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION = import_client12.gql`
5085
5210
  mutation adminResendUserVerificationEmail($userId: ID!) {
5086
5211
  adminResendUserVerificationEmail(userId: $userId) {
5087
5212
  data
@@ -5089,7 +5214,7 @@ var ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION = import_client11.gql`
5089
5214
  }
5090
5215
  }
5091
5216
  `;
5092
- var ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION = import_client11.gql`
5217
+ var ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION = import_client12.gql`
5093
5218
  mutation adminPermanentlyDeleteResource(
5094
5219
  $resourceId: ID!
5095
5220
  $resourceType: ResourceTypeEnum!
@@ -5106,7 +5231,7 @@ var ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION = import_client11.gql`
5106
5231
 
5107
5232
  // src/graphql/hooks/admin/hooksMutation.ts
5108
5233
  var useAdminUpdateResourceType = () => {
5109
- const [adminUpdateResourceType, { loading, error }] = (0, import_client12.useMutation)(ADMIN_UPDATE_RESOURCE_TYPE_MUTATION, {
5234
+ const [adminUpdateResourceType, { loading, error }] = (0, import_client13.useMutation)(ADMIN_UPDATE_RESOURCE_TYPE_MUTATION, {
5110
5235
  awaitRefetchQueries: true,
5111
5236
  refetchQueries: (mutationResult) => {
5112
5237
  const adminUpdateResourceType2 = mutationResult?.data?.adminUpdateResourceType?.data;
@@ -5129,7 +5254,7 @@ var useAdminUpdateResourceType = () => {
5129
5254
  };
5130
5255
  };
5131
5256
  var useAdminResendUserVerificationEmail = () => {
5132
- const [adminResendUserVerificationEmail, { loading, error }] = (0, import_client12.useMutation)(ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION);
5257
+ const [adminResendUserVerificationEmail, { loading, error }] = (0, import_client13.useMutation)(ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION);
5133
5258
  return {
5134
5259
  adminResendUserVerificationEmail,
5135
5260
  error,
@@ -5137,7 +5262,7 @@ var useAdminResendUserVerificationEmail = () => {
5137
5262
  };
5138
5263
  };
5139
5264
  var useAdminPermanentlyDeleteResource = () => {
5140
- const [adminPermanentlyDeleteResource, { loading, error }] = (0, import_client12.useMutation)(ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION);
5265
+ const [adminPermanentlyDeleteResource, { loading, error }] = (0, import_client13.useMutation)(ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION);
5141
5266
  return {
5142
5267
  adminPermanentlyDeleteResource,
5143
5268
  error,
@@ -5146,11 +5271,11 @@ var useAdminPermanentlyDeleteResource = () => {
5146
5271
  };
5147
5272
 
5148
5273
  // src/graphql/hooks/auth.ts
5149
- var import_client14 = require("@apollo/client");
5274
+ var import_client15 = require("@apollo/client");
5150
5275
 
5151
5276
  // src/graphql/mutations/auth.ts
5152
- var import_client13 = require("@apollo/client");
5153
- var REGISTER_MUTATION = import_client13.gql`
5277
+ var import_client14 = require("@apollo/client");
5278
+ var REGISTER_MUTATION = import_client14.gql`
5154
5279
  mutation register($input: RegisterInputType!) {
5155
5280
  register(input: $input) {
5156
5281
  data {
@@ -5165,7 +5290,7 @@ var REGISTER_MUTATION = import_client13.gql`
5165
5290
  }
5166
5291
  ${USER_FIELDS_FRAGMENT}
5167
5292
  `;
5168
- var LOGIN_MUTATION = import_client13.gql`
5293
+ var LOGIN_MUTATION = import_client14.gql`
5169
5294
  mutation login($input: LoginInputType!) {
5170
5295
  login(input: $input) {
5171
5296
  data {
@@ -5180,7 +5305,7 @@ var LOGIN_MUTATION = import_client13.gql`
5180
5305
  }
5181
5306
  ${USER_FIELDS_FRAGMENT}
5182
5307
  `;
5183
- var LOGOUT_MUTATION = import_client13.gql`
5308
+ var LOGOUT_MUTATION = import_client14.gql`
5184
5309
  mutation logout {
5185
5310
  logout {
5186
5311
  data
@@ -5188,7 +5313,7 @@ var LOGOUT_MUTATION = import_client13.gql`
5188
5313
  }
5189
5314
  }
5190
5315
  `;
5191
- var REFRESH_TOKEN_MUTATION = import_client13.gql`
5316
+ var REFRESH_TOKEN_MUTATION = import_client14.gql`
5192
5317
  mutation refreshToken($input: RefreshTokenInputType!) {
5193
5318
  refreshToken(input: $input) {
5194
5319
  data {
@@ -5199,7 +5324,7 @@ var REFRESH_TOKEN_MUTATION = import_client13.gql`
5199
5324
  }
5200
5325
  }
5201
5326
  `;
5202
- var RESET_PASSWORD_MUTATION = import_client13.gql`
5327
+ var RESET_PASSWORD_MUTATION = import_client14.gql`
5203
5328
  mutation resetPassword($input: ResetPasswordInputType!) {
5204
5329
  resetPassword(input: $input) {
5205
5330
  data
@@ -5207,7 +5332,7 @@ var RESET_PASSWORD_MUTATION = import_client13.gql`
5207
5332
  }
5208
5333
  }
5209
5334
  `;
5210
- var REQUEST_PASSWORD_RESET_MUTATION = import_client13.gql`
5335
+ var REQUEST_PASSWORD_RESET_MUTATION = import_client14.gql`
5211
5336
  mutation requestPasswordReset($input: RequestPasswordResetInputType!) {
5212
5337
  requestPasswordReset(input: $input) {
5213
5338
  data
@@ -5215,7 +5340,7 @@ var REQUEST_PASSWORD_RESET_MUTATION = import_client13.gql`
5215
5340
  }
5216
5341
  }
5217
5342
  `;
5218
- var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client13.gql`
5343
+ var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client14.gql`
5219
5344
  mutation validateVerificationToken(
5220
5345
  $input: ValidateVerificationTokenInputType!
5221
5346
  ) {
@@ -5228,43 +5353,43 @@ var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client13.gql`
5228
5353
 
5229
5354
  // src/graphql/hooks/auth.ts
5230
5355
  var useRegister = () => {
5231
- const [register, { loading, error }] = (0, import_client14.useMutation)(REGISTER_MUTATION);
5356
+ const [register, { loading, error }] = (0, import_client15.useMutation)(REGISTER_MUTATION);
5232
5357
  return { error, loading, register };
5233
5358
  };
5234
5359
  var useLogin = () => {
5235
- const [login, { loading, error }] = (0, import_client14.useMutation)(LOGIN_MUTATION);
5360
+ const [login, { loading, error }] = (0, import_client15.useMutation)(LOGIN_MUTATION);
5236
5361
  return { error, loading, login };
5237
5362
  };
5238
5363
  var useLogout = () => {
5239
- const [logout, { loading, error }] = (0, import_client14.useMutation)(LOGOUT_MUTATION);
5364
+ const [logout, { loading, error }] = (0, import_client15.useMutation)(LOGOUT_MUTATION);
5240
5365
  return { error, loading, logout };
5241
5366
  };
5242
5367
  var useRefreshToken = () => {
5243
- const [refreshToken, { loading, error }] = (0, import_client14.useMutation)(REFRESH_TOKEN_MUTATION);
5368
+ const [refreshToken, { loading, error }] = (0, import_client15.useMutation)(REFRESH_TOKEN_MUTATION);
5244
5369
  return { error, loading, refreshToken };
5245
5370
  };
5246
5371
  var useRequestPasswordReset = () => {
5247
- const [requestPasswordReset, { loading, error }] = (0, import_client14.useMutation)(REQUEST_PASSWORD_RESET_MUTATION);
5372
+ const [requestPasswordReset, { loading, error }] = (0, import_client15.useMutation)(REQUEST_PASSWORD_RESET_MUTATION);
5248
5373
  return { error, loading, requestPasswordReset };
5249
5374
  };
5250
5375
  var useValidateVerificationToken = () => {
5251
- const [validateVerificationToken, { loading, error }] = (0, import_client14.useMutation)(VALIDATE_VERIFICATION_TOKEN_MUTATION);
5376
+ const [validateVerificationToken, { loading, error }] = (0, import_client15.useMutation)(VALIDATE_VERIFICATION_TOKEN_MUTATION);
5252
5377
  return { error, loading, validateVerificationToken };
5253
5378
  };
5254
5379
  var useResetPassword = () => {
5255
- const [resetPassword, { loading, error }] = (0, import_client14.useMutation)(RESET_PASSWORD_MUTATION);
5380
+ const [resetPassword, { loading, error }] = (0, import_client15.useMutation)(RESET_PASSWORD_MUTATION);
5256
5381
  return { error, loading, resetPassword };
5257
5382
  };
5258
5383
 
5259
5384
  // src/graphql/hooks/chat/hooksMutation.ts
5260
- var import_client17 = require("@apollo/client");
5385
+ var import_client18 = require("@apollo/client");
5261
5386
 
5262
5387
  // src/graphql/mutations/chat.ts
5263
- var import_client16 = require("@apollo/client");
5388
+ var import_client17 = require("@apollo/client");
5264
5389
 
5265
5390
  // src/graphql/queries/chat.ts
5266
- var import_client15 = require("@apollo/client");
5267
- var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client15.gql`
5391
+ var import_client16 = require("@apollo/client");
5392
+ var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client16.gql`
5268
5393
  fragment ChatMessageFields on ChatMessageType {
5269
5394
  _id
5270
5395
  content
@@ -5287,7 +5412,7 @@ var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client15.gql`
5287
5412
  updatedAt
5288
5413
  }
5289
5414
  `;
5290
- var CHAT_PARTICIPANT = import_client15.gql`
5415
+ var CHAT_PARTICIPANT = import_client16.gql`
5291
5416
  fragment ChatParticipantFields on ChatParticipantType {
5292
5417
  active
5293
5418
  userAvatar
@@ -5296,7 +5421,7 @@ var CHAT_PARTICIPANT = import_client15.gql`
5296
5421
  userName
5297
5422
  }
5298
5423
  `;
5299
- var CHAT_FIELDS_FRAGMENT = import_client15.gql`
5424
+ var CHAT_FIELDS_FRAGMENT = import_client16.gql`
5300
5425
  fragment ChatFields on ChatType {
5301
5426
  _id
5302
5427
  active
@@ -5317,7 +5442,7 @@ var CHAT_FIELDS_FRAGMENT = import_client15.gql`
5317
5442
  ${CHAT_MESSAGE_FIELDS_FRAGMENT}
5318
5443
  ${CHAT_PARTICIPANT}
5319
5444
  `;
5320
- var CHAT = import_client15.gql`
5445
+ var CHAT = import_client16.gql`
5321
5446
  query chat($_id: ID!) {
5322
5447
  chat(_id: $_id) {
5323
5448
  ...ChatFields
@@ -5325,7 +5450,7 @@ var CHAT = import_client15.gql`
5325
5450
  }
5326
5451
  ${CHAT_FIELDS_FRAGMENT}
5327
5452
  `;
5328
- var PRIVATE_CHATS = import_client15.gql`
5453
+ var PRIVATE_CHATS = import_client16.gql`
5329
5454
  query privateChats {
5330
5455
  privateChats {
5331
5456
  ...ChatFields
@@ -5333,7 +5458,7 @@ var PRIVATE_CHATS = import_client15.gql`
5333
5458
  }
5334
5459
  ${CHAT_FIELDS_FRAGMENT}
5335
5460
  `;
5336
- var RELATION_CHATS = import_client15.gql`
5461
+ var RELATION_CHATS = import_client16.gql`
5337
5462
  query relationChats {
5338
5463
  relationChats {
5339
5464
  ...ChatFields
@@ -5341,7 +5466,7 @@ var RELATION_CHATS = import_client15.gql`
5341
5466
  }
5342
5467
  ${CHAT_FIELDS_FRAGMENT}
5343
5468
  `;
5344
- var GET_CHATS_BY_REGION = import_client15.gql`
5469
+ var GET_CHATS_BY_REGION = import_client16.gql`
5345
5470
  query getChatsByRegion($region: String!) {
5346
5471
  chatsByRegion(region: $region) {
5347
5472
  ...ChatFields
@@ -5349,7 +5474,7 @@ var GET_CHATS_BY_REGION = import_client15.gql`
5349
5474
  }
5350
5475
  ${CHAT_FIELDS_FRAGMENT}
5351
5476
  `;
5352
- var CHAT_REPORT_FIELDS_FRAGMENT = import_client15.gql`
5477
+ var CHAT_REPORT_FIELDS_FRAGMENT = import_client16.gql`
5353
5478
  fragment ChatReportFields on ReportChatUserType {
5354
5479
  _id
5355
5480
  chatId
@@ -5364,7 +5489,7 @@ var CHAT_REPORT_FIELDS_FRAGMENT = import_client15.gql`
5364
5489
  updatedAt
5365
5490
  }
5366
5491
  `;
5367
- var GET_REPORTED_CHAT_USERS = import_client15.gql`
5492
+ var GET_REPORTED_CHAT_USERS = import_client16.gql`
5368
5493
  query getReportedChatUsers {
5369
5494
  reportedChatUsers {
5370
5495
  ...ChatReportFields
@@ -5374,7 +5499,7 @@ var GET_REPORTED_CHAT_USERS = import_client15.gql`
5374
5499
  `;
5375
5500
 
5376
5501
  // src/graphql/mutations/chat.ts
5377
- var CREATE_PRIVATE_CHAT_MUTATION = import_client16.gql`
5502
+ var CREATE_PRIVATE_CHAT_MUTATION = import_client17.gql`
5378
5503
  mutation createPrivateChat($userId: ID!) {
5379
5504
  createPrivateChat(userId: $userId) {
5380
5505
  data {
@@ -5385,7 +5510,7 @@ var CREATE_PRIVATE_CHAT_MUTATION = import_client16.gql`
5385
5510
  }
5386
5511
  ${CHAT_FIELDS_FRAGMENT}
5387
5512
  `;
5388
- var SEND_CHAT_MESSAGE_MUTATION = import_client16.gql`
5513
+ var SEND_CHAT_MESSAGE_MUTATION = import_client17.gql`
5389
5514
  mutation sendChatMessage($_id: ID!, $input: ChatMessageInputType!) {
5390
5515
  sendChatMessage(_id: $_id, input: $input) {
5391
5516
  data {
@@ -5396,7 +5521,7 @@ var SEND_CHAT_MESSAGE_MUTATION = import_client16.gql`
5396
5521
  }
5397
5522
  ${CHAT_FIELDS_FRAGMENT}
5398
5523
  `;
5399
- var DELETE_CHAT_MUTATION = import_client16.gql`
5524
+ var DELETE_CHAT_MUTATION = import_client17.gql`
5400
5525
  mutation deleteChat($_id: ID!) {
5401
5526
  deleteChat(_id: $_id) {
5402
5527
  data
@@ -5404,7 +5529,7 @@ var DELETE_CHAT_MUTATION = import_client16.gql`
5404
5529
  }
5405
5530
  }
5406
5531
  `;
5407
- var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client16.gql`
5532
+ var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client17.gql`
5408
5533
  mutation addParticipantToChat($chatId: ID!, $userId: ID!) {
5409
5534
  addParticipantToChat(chatId: $chatId, userId: $userId) {
5410
5535
  data {
@@ -5415,7 +5540,7 @@ var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client16.gql`
5415
5540
  }
5416
5541
  ${CHAT_FIELDS_FRAGMENT}
5417
5542
  `;
5418
- var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client16.gql`
5543
+ var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client17.gql`
5419
5544
  mutation removeParticipantFromChat($chatId: ID!, $userId: ID!) {
5420
5545
  removeParticipantFromChat(chatId: $chatId, userId: $userId) {
5421
5546
  data {
@@ -5426,7 +5551,7 @@ var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client16.gql`
5426
5551
  }
5427
5552
  }
5428
5553
  `;
5429
- var TOGGLE_CHAT_MESSAGE_LIKE_MUTATION = import_client16.gql`
5554
+ var TOGGLE_CHAT_MESSAGE_LIKE_MUTATION = import_client17.gql`
5430
5555
  mutation toggleChatMessageLike($chatId: ID!, $messageId: ID!) {
5431
5556
  toggleChatMessageLike(chatId: $chatId, messageId: $messageId) {
5432
5557
  data {
@@ -5437,7 +5562,7 @@ var TOGGLE_CHAT_MESSAGE_LIKE_MUTATION = import_client16.gql`
5437
5562
  }
5438
5563
  ${CHAT_FIELDS_FRAGMENT}
5439
5564
  `;
5440
- var MARK_CHAT_MESSAGES_SEEN_MUTATION = import_client16.gql`
5565
+ var MARK_CHAT_MESSAGES_SEEN_MUTATION = import_client17.gql`
5441
5566
  mutation markChatMessagesSeen($chatId: ID!, $messageIds: [ID!]!) {
5442
5567
  markChatMessagesSeen(chatId: $chatId, messageIds: $messageIds) {
5443
5568
  data {
@@ -5448,7 +5573,7 @@ var MARK_CHAT_MESSAGES_SEEN_MUTATION = import_client16.gql`
5448
5573
  }
5449
5574
  ${CHAT_FIELDS_FRAGMENT}
5450
5575
  `;
5451
- var REPORT_CHAT_USER_MUTATION = import_client16.gql`
5576
+ var REPORT_CHAT_USER_MUTATION = import_client17.gql`
5452
5577
  mutation reportChatUser($input: ReportChatUserInputType!) {
5453
5578
  reportChatUser(input: $input) {
5454
5579
  data {
@@ -5462,14 +5587,14 @@ var REPORT_CHAT_USER_MUTATION = import_client16.gql`
5462
5587
 
5463
5588
  // src/graphql/hooks/chat/hooksMutation.ts
5464
5589
  var useCreatePrivateChat = () => {
5465
- const [createPrivateChat, { loading, error }] = (0, import_client17.useMutation)(CREATE_PRIVATE_CHAT_MUTATION, {
5590
+ const [createPrivateChat, { loading, error }] = (0, import_client18.useMutation)(CREATE_PRIVATE_CHAT_MUTATION, {
5466
5591
  awaitRefetchQueries: true,
5467
5592
  refetchQueries: [{ query: PRIVATE_CHATS }]
5468
5593
  });
5469
5594
  return { createPrivateChat, error, loading };
5470
5595
  };
5471
5596
  var useSendChatMessage = () => {
5472
- const [sendChatMessage, { loading, error }] = (0, import_client17.useMutation)(SEND_CHAT_MESSAGE_MUTATION, {
5597
+ const [sendChatMessage, { loading, error }] = (0, import_client18.useMutation)(SEND_CHAT_MESSAGE_MUTATION, {
5473
5598
  awaitRefetchQueries: true,
5474
5599
  refetchQueries: (mutationResult) => {
5475
5600
  const chatId = mutationResult?.data?.sendChatMessage?.data?._id;
@@ -5484,14 +5609,14 @@ var useSendChatMessage = () => {
5484
5609
  return { error, loading, sendChatMessage };
5485
5610
  };
5486
5611
  var useDeleteChat = () => {
5487
- const [deleteChat, { loading, error }] = (0, import_client17.useMutation)(DELETE_CHAT_MUTATION, {
5612
+ const [deleteChat, { loading, error }] = (0, import_client18.useMutation)(DELETE_CHAT_MUTATION, {
5488
5613
  awaitRefetchQueries: true,
5489
5614
  refetchQueries: [{ query: PRIVATE_CHATS }, { query: RELATION_CHATS }]
5490
5615
  });
5491
5616
  return { deleteChat, error, loading };
5492
5617
  };
5493
5618
  var useAddParticipantToChat = () => {
5494
- const [addParticipantToChat, { loading, error }] = (0, import_client17.useMutation)(ADD_PARTICIPANT_TO_CHAT_MUTATION, {
5619
+ const [addParticipantToChat, { loading, error }] = (0, import_client18.useMutation)(ADD_PARTICIPANT_TO_CHAT_MUTATION, {
5495
5620
  awaitRefetchQueries: true,
5496
5621
  refetchQueries: (mutationResult) => {
5497
5622
  const chatId = mutationResult?.data?.addParticipantToChat?.data?._id;
@@ -5512,7 +5637,7 @@ var useAddParticipantToChat = () => {
5512
5637
  return { addParticipantToChat, error, loading };
5513
5638
  };
5514
5639
  var useRemoveParticipantFromChat = () => {
5515
- const [removeParticipantFromChat, { loading, error }] = (0, import_client17.useMutation)(REMOVE_PARTICIPANT_FROM_CHAT_MUTATION, {
5640
+ const [removeParticipantFromChat, { loading, error }] = (0, import_client18.useMutation)(REMOVE_PARTICIPANT_FROM_CHAT_MUTATION, {
5516
5641
  awaitRefetchQueries: true,
5517
5642
  refetchQueries: (mutationResult) => {
5518
5643
  const region = mutationResult?.data?.removeParticipantFromChat?.data?.region;
@@ -5532,7 +5657,7 @@ var useRemoveParticipantFromChat = () => {
5532
5657
  return { error, loading, removeParticipantFromChat };
5533
5658
  };
5534
5659
  var useToggleChatMessageLike = () => {
5535
- const [toggleChatMessageLike, { loading, error }] = (0, import_client17.useMutation)(TOGGLE_CHAT_MESSAGE_LIKE_MUTATION, {
5660
+ const [toggleChatMessageLike, { loading, error }] = (0, import_client18.useMutation)(TOGGLE_CHAT_MESSAGE_LIKE_MUTATION, {
5536
5661
  awaitRefetchQueries: true,
5537
5662
  refetchQueries: (mutationResult) => {
5538
5663
  const chatId = mutationResult?.data?.toggleChatMessageLike?.data?._id;
@@ -5547,7 +5672,7 @@ var useToggleChatMessageLike = () => {
5547
5672
  return { error, loading, toggleChatMessageLike };
5548
5673
  };
5549
5674
  var useMarkChatMessagesSeen = () => {
5550
- const [markChatMessagesSeen, { loading, error }] = (0, import_client17.useMutation)(MARK_CHAT_MESSAGES_SEEN_MUTATION, {
5675
+ const [markChatMessagesSeen, { loading, error }] = (0, import_client18.useMutation)(MARK_CHAT_MESSAGES_SEEN_MUTATION, {
5551
5676
  awaitRefetchQueries: true,
5552
5677
  refetchQueries: (mutationResult) => {
5553
5678
  const chatId = mutationResult?.data?.markChatMessagesSeen?.data?._id;
@@ -5562,16 +5687,16 @@ var useMarkChatMessagesSeen = () => {
5562
5687
  return { error, loading, markChatMessagesSeen };
5563
5688
  };
5564
5689
  var useReportChatUser = () => {
5565
- const [reportChatUser, { loading, error }] = (0, import_client17.useMutation)(REPORT_CHAT_USER_MUTATION);
5690
+ const [reportChatUser, { loading, error }] = (0, import_client18.useMutation)(REPORT_CHAT_USER_MUTATION);
5566
5691
  return { error, loading, reportChatUser };
5567
5692
  };
5568
5693
 
5569
5694
  // src/graphql/hooks/chat/hooksQuery.ts
5570
- var import_client19 = require("@apollo/client");
5695
+ var import_client20 = require("@apollo/client");
5571
5696
 
5572
5697
  // src/graphql/subscriptions/chat.ts
5573
- var import_client18 = require("@apollo/client");
5574
- var GET_CHAT_MESSAGE = import_client18.gql`
5698
+ var import_client19 = require("@apollo/client");
5699
+ var GET_CHAT_MESSAGE = import_client19.gql`
5575
5700
  subscription {
5576
5701
  getChatMessage {
5577
5702
  ...ChatFields
@@ -5582,7 +5707,7 @@ var GET_CHAT_MESSAGE = import_client18.gql`
5582
5707
 
5583
5708
  // src/graphql/hooks/chat/hooksQuery.ts
5584
5709
  var useGetChat = (_id) => {
5585
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(CHAT, {
5710
+ const { loading, error, data, refetch } = (0, import_client20.useQuery)(CHAT, {
5586
5711
  fetchPolicy: "network-only",
5587
5712
  skip: !_id || _id === "",
5588
5713
  variables: { _id }
@@ -5591,28 +5716,28 @@ var useGetChat = (_id) => {
5591
5716
  return { chat, error, loading, refetch };
5592
5717
  };
5593
5718
  var useGetPrivateChats = () => {
5594
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(PRIVATE_CHATS, {
5719
+ const { loading, error, data, refetch } = (0, import_client20.useQuery)(PRIVATE_CHATS, {
5595
5720
  fetchPolicy: "network-only"
5596
5721
  });
5597
5722
  const privateChats = data?.privateChats || [];
5598
5723
  return { error, loading, privateChats, refetch };
5599
5724
  };
5600
5725
  var useGetRelationChats = () => {
5601
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(RELATION_CHATS, {
5726
+ const { loading, error, data, refetch } = (0, import_client20.useQuery)(RELATION_CHATS, {
5602
5727
  fetchPolicy: "network-only"
5603
5728
  });
5604
5729
  const relationChats = data?.relationChats || [];
5605
5730
  return { error, loading, refetch, relationChats };
5606
5731
  };
5607
5732
  var useGetChatSubscription = () => {
5608
- const { data, loading, error } = (0, import_client19.useSubscription)(
5733
+ const { data, loading, error } = (0, import_client20.useSubscription)(
5609
5734
  GET_CHAT_MESSAGE
5610
5735
  );
5611
5736
  const chat = data?.getChat;
5612
5737
  return { chat, error, loading };
5613
5738
  };
5614
5739
  var useGetChatsByRegion = (region) => {
5615
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_CHATS_BY_REGION, {
5740
+ const { loading, error, data, refetch } = (0, import_client20.useQuery)(GET_CHATS_BY_REGION, {
5616
5741
  fetchPolicy: "network-only",
5617
5742
  variables: { region }
5618
5743
  });
@@ -5620,7 +5745,7 @@ var useGetChatsByRegion = (region) => {
5620
5745
  return { chatsByRegion, error, loading, refetch };
5621
5746
  };
5622
5747
  var useGetReportedChatUsers = () => {
5623
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_REPORTED_CHAT_USERS, {
5748
+ const { loading, error, data, refetch } = (0, import_client20.useQuery)(GET_REPORTED_CHAT_USERS, {
5624
5749
  fetchPolicy: "network-only"
5625
5750
  });
5626
5751
  const reportedChatUsers = data?.reportedChatUsers || [];
@@ -5628,11 +5753,11 @@ var useGetReportedChatUsers = () => {
5628
5753
  };
5629
5754
 
5630
5755
  // src/graphql/hooks/contactUs.ts
5631
- var import_client21 = require("@apollo/client");
5756
+ var import_client22 = require("@apollo/client");
5632
5757
 
5633
5758
  // src/graphql/mutations/contactUs.ts
5634
- var import_client20 = require("@apollo/client");
5635
- var CONTACT_US_MUTATION = import_client20.gql`
5759
+ var import_client21 = require("@apollo/client");
5760
+ var CONTACT_US_MUTATION = import_client21.gql`
5636
5761
  mutation contactUs($input: ContactUsInputType!) {
5637
5762
  contactUs(input: $input) {
5638
5763
  data
@@ -5643,16 +5768,16 @@ var CONTACT_US_MUTATION = import_client20.gql`
5643
5768
 
5644
5769
  // src/graphql/hooks/contactUs.ts
5645
5770
  var useContactUs = () => {
5646
- const [contactUs, { loading, error }] = (0, import_client21.useMutation)(CONTACT_US_MUTATION);
5771
+ const [contactUs, { loading, error }] = (0, import_client22.useMutation)(CONTACT_US_MUTATION);
5647
5772
  return { contactUs, error, loading };
5648
5773
  };
5649
5774
 
5650
5775
  // src/graphql/hooks/event/hooksMutation.ts
5651
- var import_client24 = require("@apollo/client");
5776
+ var import_client25 = require("@apollo/client");
5652
5777
 
5653
5778
  // src/graphql/mutations/event.ts
5654
- var import_client22 = require("@apollo/client");
5655
- var CREATE_EVENT_MUTATION = import_client22.gql`
5779
+ var import_client23 = require("@apollo/client");
5780
+ var CREATE_EVENT_MUTATION = import_client23.gql`
5656
5781
  mutation createEvent($input: EventInputType!) {
5657
5782
  createEvent(input: $input) {
5658
5783
  data {
@@ -5663,7 +5788,7 @@ var CREATE_EVENT_MUTATION = import_client22.gql`
5663
5788
  }
5664
5789
  ${EVENT}
5665
5790
  `;
5666
- var UPDATE_EVENT_MUTATION = import_client22.gql`
5791
+ var UPDATE_EVENT_MUTATION = import_client23.gql`
5667
5792
  mutation updateEvent($_id: ID!, $input: EventInputType!) {
5668
5793
  updateEvent(_id: $_id, input: $input) {
5669
5794
  data {
@@ -5674,7 +5799,7 @@ var UPDATE_EVENT_MUTATION = import_client22.gql`
5674
5799
  }
5675
5800
  ${EVENT}
5676
5801
  `;
5677
- var DELETE_EVENT_MUTATION = import_client22.gql`
5802
+ var DELETE_EVENT_MUTATION = import_client23.gql`
5678
5803
  mutation deleteEvent($_id: ID!) {
5679
5804
  deleteEvent(_id: $_id) {
5680
5805
  data
@@ -5682,7 +5807,7 @@ var DELETE_EVENT_MUTATION = import_client22.gql`
5682
5807
  }
5683
5808
  }
5684
5809
  `;
5685
- var CREATE_EVENT_INFO_MUTATION = import_client22.gql`
5810
+ var CREATE_EVENT_INFO_MUTATION = import_client23.gql`
5686
5811
  mutation createEventInfo($input: EventInfoInputType!) {
5687
5812
  createEventInfo(input: $input) {
5688
5813
  data {
@@ -5693,7 +5818,7 @@ var CREATE_EVENT_INFO_MUTATION = import_client22.gql`
5693
5818
  }
5694
5819
  ${EVENT_INFO}
5695
5820
  `;
5696
- var UPDATE_EVENT_INFO_MUTATION = import_client22.gql`
5821
+ var UPDATE_EVENT_INFO_MUTATION = import_client23.gql`
5697
5822
  mutation updateEventInfo($_id: ID!, $input: EventInfoInputType!) {
5698
5823
  updateEventInfo(_id: $_id, input: $input) {
5699
5824
  data {
@@ -5706,8 +5831,8 @@ var UPDATE_EVENT_INFO_MUTATION = import_client22.gql`
5706
5831
  `;
5707
5832
 
5708
5833
  // src/graphql/queries/user.ts
5709
- var import_client23 = require("@apollo/client");
5710
- var GET_USERS = import_client23.gql`
5834
+ var import_client24 = require("@apollo/client");
5835
+ var GET_USERS = import_client24.gql`
5711
5836
  query getUsers {
5712
5837
  users {
5713
5838
  ...UserFields
@@ -5715,7 +5840,7 @@ var GET_USERS = import_client23.gql`
5715
5840
  }
5716
5841
  ${USER_FIELDS_FRAGMENT}
5717
5842
  `;
5718
- var GET_USER = import_client23.gql`
5843
+ var GET_USER = import_client24.gql`
5719
5844
  query getUser($_id: ID!) {
5720
5845
  user(_id: $_id) {
5721
5846
  ...UserFields
@@ -5723,7 +5848,7 @@ var GET_USER = import_client23.gql`
5723
5848
  }
5724
5849
  ${USER_FIELDS_FRAGMENT}
5725
5850
  `;
5726
- var GET_USER_EVENTS = import_client23.gql`
5851
+ var GET_USER_EVENTS = import_client24.gql`
5727
5852
  query getUserEvents {
5728
5853
  userEvents {
5729
5854
  ...EventFields
@@ -5731,7 +5856,7 @@ var GET_USER_EVENTS = import_client23.gql`
5731
5856
  }
5732
5857
  ${EVENT}
5733
5858
  `;
5734
- var GET_USER_VENDORS = import_client23.gql`
5859
+ var GET_USER_VENDORS = import_client24.gql`
5735
5860
  query getUserVendors {
5736
5861
  userVendors {
5737
5862
  ...VendorFields
@@ -5739,7 +5864,7 @@ var GET_USER_VENDORS = import_client23.gql`
5739
5864
  }
5740
5865
  ${VENDOR}
5741
5866
  `;
5742
- var GET_USER_PARTNERS = import_client23.gql`
5867
+ var GET_USER_PARTNERS = import_client24.gql`
5743
5868
  query getUserPartners {
5744
5869
  userPartners {
5745
5870
  ...PartnerFields
@@ -5747,7 +5872,7 @@ var GET_USER_PARTNERS = import_client23.gql`
5747
5872
  }
5748
5873
  ${PARTNER}
5749
5874
  `;
5750
- var GET_USER_ACTIVITIES = import_client23.gql`
5875
+ var GET_USER_ACTIVITIES = import_client24.gql`
5751
5876
  query getUserActivities {
5752
5877
  userActivities {
5753
5878
  favourites {
@@ -5782,7 +5907,7 @@ var GET_USER_ACTIVITIES = import_client23.gql`
5782
5907
  ${VENDOR}
5783
5908
  ${PARTNER}
5784
5909
  `;
5785
- var GET_USER_RESOURCES = import_client23.gql`
5910
+ var GET_USER_RESOURCES = import_client24.gql`
5786
5911
  query getUserResources($userId: ID!) {
5787
5912
  userResources(userId: $userId) {
5788
5913
  resources {
@@ -5797,14 +5922,14 @@ var GET_USER_RESOURCES = import_client23.gql`
5797
5922
 
5798
5923
  // src/graphql/hooks/event/hooksMutation.ts
5799
5924
  var useCreateEvent = () => {
5800
- const [createEvent, { loading, error }] = (0, import_client24.useMutation)(CREATE_EVENT_MUTATION, {
5925
+ const [createEvent, { loading, error }] = (0, import_client25.useMutation)(CREATE_EVENT_MUTATION, {
5801
5926
  awaitRefetchQueries: true,
5802
5927
  refetchQueries: [{ query: GET_USER_EVENTS }]
5803
5928
  });
5804
5929
  return { createEvent, error, loading };
5805
5930
  };
5806
5931
  var useUpdateEvent = () => {
5807
- const [updateEvent, { loading, error }] = (0, import_client24.useMutation)(UPDATE_EVENT_MUTATION, {
5932
+ const [updateEvent, { loading, error }] = (0, import_client25.useMutation)(UPDATE_EVENT_MUTATION, {
5808
5933
  awaitRefetchQueries: true,
5809
5934
  refetchQueries: (mutationResult) => {
5810
5935
  const eventId = mutationResult?.data?.updateEvent?.data?._id;
@@ -5827,14 +5952,14 @@ var useUpdateEvent = () => {
5827
5952
  return { error, loading, updateEvent };
5828
5953
  };
5829
5954
  var useDeleteEvent = () => {
5830
- const [deleteEvent, { loading, error }] = (0, import_client24.useMutation)(DELETE_EVENT_MUTATION, {
5955
+ const [deleteEvent, { loading, error }] = (0, import_client25.useMutation)(DELETE_EVENT_MUTATION, {
5831
5956
  awaitRefetchQueries: true,
5832
5957
  refetchQueries: [{ query: GET_USER_EVENTS }]
5833
5958
  });
5834
5959
  return { deleteEvent, error, loading };
5835
5960
  };
5836
5961
  var useCreateEventInfo = () => {
5837
- const [createEventInfo, { loading, error }] = (0, import_client24.useMutation)(CREATE_EVENT_INFO_MUTATION, {
5962
+ const [createEventInfo, { loading, error }] = (0, import_client25.useMutation)(CREATE_EVENT_INFO_MUTATION, {
5838
5963
  awaitRefetchQueries: true,
5839
5964
  refetchQueries: (mutationResult) => {
5840
5965
  const eventId = mutationResult?.data?.createEventInfo?.data?.eventId;
@@ -5858,7 +5983,7 @@ var useCreateEventInfo = () => {
5858
5983
  return { createEventInfo, error, loading };
5859
5984
  };
5860
5985
  var useUpdateEventInfo = () => {
5861
- const [updateEventInfo, { loading, error }] = (0, import_client24.useMutation)(UPDATE_EVENT_INFO_MUTATION, {
5986
+ const [updateEventInfo, { loading, error }] = (0, import_client25.useMutation)(UPDATE_EVENT_INFO_MUTATION, {
5862
5987
  awaitRefetchQueries: true,
5863
5988
  refetchQueries: (mutationResult) => {
5864
5989
  const eventId = mutationResult?.data?.updateEventInfo?.data?.eventId;
@@ -5882,9 +6007,9 @@ var useUpdateEventInfo = () => {
5882
6007
  };
5883
6008
 
5884
6009
  // src/graphql/hooks/event/hooksQuery.ts
5885
- var import_client25 = require("@apollo/client");
6010
+ var import_client26 = require("@apollo/client");
5886
6011
  var useGetEvents = (dateStatus) => {
5887
- const { loading, error, data, refetch } = (0, import_client25.useQuery)(GET_EVENTS, {
6012
+ const { loading, error, data, refetch } = (0, import_client26.useQuery)(GET_EVENTS, {
5888
6013
  fetchPolicy: "network-only",
5889
6014
  variables: { dateStatus }
5890
6015
  });
@@ -5892,7 +6017,7 @@ var useGetEvents = (dateStatus) => {
5892
6017
  return { error, events, loading, refetch };
5893
6018
  };
5894
6019
  var useGetEvent = (_id) => {
5895
- const { loading, error, data, refetch } = (0, import_client25.useQuery)(GET_EVENT, {
6020
+ const { loading, error, data, refetch } = (0, import_client26.useQuery)(GET_EVENT, {
5896
6021
  fetchPolicy: "network-only",
5897
6022
  skip: !_id,
5898
6023
  variables: { _id }
@@ -5901,7 +6026,7 @@ var useGetEvent = (_id) => {
5901
6026
  return { error, event, loading, refetch };
5902
6027
  };
5903
6028
  var useGetEventByPlaceId = (googlePlaceId) => {
5904
- const { loading, error, data, refetch } = (0, import_client25.useQuery)(GET_EVENT_BY_PLACE_ID, {
6029
+ const { loading, error, data, refetch } = (0, import_client26.useQuery)(GET_EVENT_BY_PLACE_ID, {
5905
6030
  fetchPolicy: "network-only",
5906
6031
  skip: !googlePlaceId,
5907
6032
  variables: { googlePlaceId }
@@ -5915,7 +6040,7 @@ var useGetEventsByRegion = (region, options, dateStatus) => {
5915
6040
  options,
5916
6041
  region
5917
6042
  };
5918
- const { loading, error, data, refetch, fetchMore } = (0, import_client25.useQuery)(GET_EVENTS_BY_REGION, {
6043
+ const { loading, error, data, refetch, fetchMore } = (0, import_client26.useQuery)(GET_EVENTS_BY_REGION, {
5919
6044
  fetchPolicy: "network-only",
5920
6045
  skip: !region || region === "",
5921
6046
  variables
@@ -5933,7 +6058,7 @@ var useSearchEvents = (region, searchQuery, tags, dateStatus) => {
5933
6058
  const normalizedSearch = searchQuery?.trim() ?? "";
5934
6059
  const normalizedTags = (tags ?? []).filter(Boolean);
5935
6060
  const shouldRunQuery = normalizedSearch.length > 3 || normalizedTags.length > 0;
5936
- const { loading, error, data, refetch } = (0, import_client25.useQuery)(SEARCH_EVENTS, {
6061
+ const { loading, error, data, refetch } = (0, import_client26.useQuery)(SEARCH_EVENTS, {
5937
6062
  fetchPolicy: "network-only",
5938
6063
  skip: !shouldRunQuery,
5939
6064
  variables: {
@@ -5951,7 +6076,7 @@ var useSearchEvents = (region, searchQuery, tags, dateStatus) => {
5951
6076
  };
5952
6077
  };
5953
6078
  var useGetEventsNearMe = (location, dateStatus) => {
5954
- const { loading, error, data, refetch } = (0, import_client25.useQuery)(GET_EVENTS_NEAR_ME, {
6079
+ const { loading, error, data, refetch } = (0, import_client26.useQuery)(GET_EVENTS_NEAR_ME, {
5955
6080
  fetchPolicy: "network-only",
5956
6081
  skip: !location.latitude || !location.longitude,
5957
6082
  variables: {
@@ -5966,7 +6091,7 @@ var useGetEventsNearMe = (location, dateStatus) => {
5966
6091
  return { error, eventsNearMe, loading, refetch };
5967
6092
  };
5968
6093
  var useGetEventInfo = (eventId) => {
5969
- const { loading, error, data, refetch } = (0, import_client25.useQuery)(GET_EVENT_INFO, {
6094
+ const { loading, error, data, refetch } = (0, import_client26.useQuery)(GET_EVENT_INFO, {
5970
6095
  fetchPolicy: "network-only",
5971
6096
  skip: !eventId || eventId === "",
5972
6097
  variables: { eventId }
@@ -5976,14 +6101,14 @@ var useGetEventInfo = (eventId) => {
5976
6101
  };
5977
6102
 
5978
6103
  // src/graphql/hooks/notifications/hooksMutation.ts
5979
- var import_client28 = require("@apollo/client");
6104
+ var import_client29 = require("@apollo/client");
5980
6105
 
5981
6106
  // src/graphql/mutations/notification.ts
5982
- var import_client27 = require("@apollo/client");
6107
+ var import_client28 = require("@apollo/client");
5983
6108
 
5984
6109
  // src/graphql/queries/notification.ts
5985
- var import_client26 = require("@apollo/client");
5986
- var NOTIFICATION_FRAGMENT = import_client26.gql`
6110
+ var import_client27 = require("@apollo/client");
6111
+ var NOTIFICATION_FRAGMENT = import_client27.gql`
5987
6112
  fragment NotificationFields on Notification {
5988
6113
  _id
5989
6114
  userId
@@ -6000,7 +6125,7 @@ var NOTIFICATION_FRAGMENT = import_client26.gql`
6000
6125
  updatedAt
6001
6126
  }
6002
6127
  `;
6003
- var GET_USER_NOTIFICATIONS = import_client26.gql`
6128
+ var GET_USER_NOTIFICATIONS = import_client27.gql`
6004
6129
  query getUserNotifications($limit: Int, $offset: Int) {
6005
6130
  userNotifications(limit: $limit, offset: $offset) {
6006
6131
  ...NotificationFields
@@ -6008,7 +6133,7 @@ var GET_USER_NOTIFICATIONS = import_client26.gql`
6008
6133
  }
6009
6134
  ${NOTIFICATION_FRAGMENT}
6010
6135
  `;
6011
- var GET_NOTIFICATION_COUNT = import_client26.gql`
6136
+ var GET_NOTIFICATION_COUNT = import_client27.gql`
6012
6137
  query getNotificationCount {
6013
6138
  notificationCount {
6014
6139
  total
@@ -6018,7 +6143,7 @@ var GET_NOTIFICATION_COUNT = import_client26.gql`
6018
6143
  `;
6019
6144
 
6020
6145
  // src/graphql/mutations/notification.ts
6021
- var CREATE_BULK_NOTIFICATIONS = import_client27.gql`
6146
+ var CREATE_BULK_NOTIFICATIONS = import_client28.gql`
6022
6147
  mutation createBulkNotifications($input: CreateBulkNotificationInput!) {
6023
6148
  createBulkNotifications(input: $input) {
6024
6149
  data
@@ -6026,7 +6151,7 @@ var CREATE_BULK_NOTIFICATIONS = import_client27.gql`
6026
6151
  }
6027
6152
  }
6028
6153
  `;
6029
- var MARK_NOTIFICATION_READ = import_client27.gql`
6154
+ var MARK_NOTIFICATION_READ = import_client28.gql`
6030
6155
  mutation markNotificationRead($_id: ID!) {
6031
6156
  markNotificationRead(_id: $_id) {
6032
6157
  data {
@@ -6037,7 +6162,7 @@ var MARK_NOTIFICATION_READ = import_client27.gql`
6037
6162
  }
6038
6163
  ${NOTIFICATION_FRAGMENT}
6039
6164
  `;
6040
- var MARK_ALL_NOTIFICATIONS_READ = import_client27.gql`
6165
+ var MARK_ALL_NOTIFICATIONS_READ = import_client28.gql`
6041
6166
  mutation markAllNotificationsRead {
6042
6167
  markAllNotificationsRead {
6043
6168
  data
@@ -6045,7 +6170,7 @@ var MARK_ALL_NOTIFICATIONS_READ = import_client27.gql`
6045
6170
  }
6046
6171
  }
6047
6172
  `;
6048
- var DELETE_NOTIFICATION = import_client27.gql`
6173
+ var DELETE_NOTIFICATION = import_client28.gql`
6049
6174
  mutation deleteNotification($_id: ID!) {
6050
6175
  deleteNotification(_id: $_id) {
6051
6176
  data
@@ -6053,7 +6178,7 @@ var DELETE_NOTIFICATION = import_client27.gql`
6053
6178
  }
6054
6179
  }
6055
6180
  `;
6056
- var DELETE_ALL_NOTIFICATIONS = import_client27.gql`
6181
+ var DELETE_ALL_NOTIFICATIONS = import_client28.gql`
6057
6182
  mutation deleteAllNotifications {
6058
6183
  deleteAllNotifications {
6059
6184
  data
@@ -6064,11 +6189,11 @@ var DELETE_ALL_NOTIFICATIONS = import_client27.gql`
6064
6189
 
6065
6190
  // src/graphql/hooks/notifications/hooksMutation.ts
6066
6191
  var useCreateBulkNotifications = () => {
6067
- const [createBulkNotifications, { loading, error }] = (0, import_client28.useMutation)(CREATE_BULK_NOTIFICATIONS);
6192
+ const [createBulkNotifications, { loading, error }] = (0, import_client29.useMutation)(CREATE_BULK_NOTIFICATIONS);
6068
6193
  return { createBulkNotifications, error, loading };
6069
6194
  };
6070
6195
  var useMarkNotificationRead = () => {
6071
- const [markNotificationRead, { loading, error }] = (0, import_client28.useMutation)(MARK_NOTIFICATION_READ, {
6196
+ const [markNotificationRead, { loading, error }] = (0, import_client29.useMutation)(MARK_NOTIFICATION_READ, {
6072
6197
  refetchQueries: [
6073
6198
  {
6074
6199
  query: GET_USER_NOTIFICATIONS
@@ -6081,7 +6206,7 @@ var useMarkNotificationRead = () => {
6081
6206
  return { error, loading, markNotificationRead };
6082
6207
  };
6083
6208
  var useMarkAllNotificationsRead = () => {
6084
- const [markAllNotificationsRead, { loading, error }] = (0, import_client28.useMutation)(MARK_ALL_NOTIFICATIONS_READ, {
6209
+ const [markAllNotificationsRead, { loading, error }] = (0, import_client29.useMutation)(MARK_ALL_NOTIFICATIONS_READ, {
6085
6210
  refetchQueries: [
6086
6211
  {
6087
6212
  query: GET_USER_NOTIFICATIONS
@@ -6094,7 +6219,7 @@ var useMarkAllNotificationsRead = () => {
6094
6219
  return { error, loading, markAllNotificationsRead };
6095
6220
  };
6096
6221
  var useDeleteNotification = () => {
6097
- const [deleteNotification, { loading, error }] = (0, import_client28.useMutation)(DELETE_NOTIFICATION, {
6222
+ const [deleteNotification, { loading, error }] = (0, import_client29.useMutation)(DELETE_NOTIFICATION, {
6098
6223
  refetchQueries: [
6099
6224
  {
6100
6225
  query: GET_USER_NOTIFICATIONS
@@ -6107,7 +6232,7 @@ var useDeleteNotification = () => {
6107
6232
  return { deleteNotification, error, loading };
6108
6233
  };
6109
6234
  var useDeleteAllNotifications = () => {
6110
- const [deleteAllNotifications, { loading, error }] = (0, import_client28.useMutation)(DELETE_ALL_NOTIFICATIONS, {
6235
+ const [deleteAllNotifications, { loading, error }] = (0, import_client29.useMutation)(DELETE_ALL_NOTIFICATIONS, {
6111
6236
  refetchQueries: [
6112
6237
  {
6113
6238
  query: GET_USER_NOTIFICATIONS
@@ -6121,9 +6246,9 @@ var useDeleteAllNotifications = () => {
6121
6246
  };
6122
6247
 
6123
6248
  // src/graphql/hooks/notifications/hooksQuery.ts
6124
- var import_client29 = require("@apollo/client");
6249
+ var import_client30 = require("@apollo/client");
6125
6250
  var useGetUserNotifications = (limit, offset) => {
6126
- const { data, loading, error, refetch } = (0, import_client29.useQuery)(GET_USER_NOTIFICATIONS, {
6251
+ const { data, loading, error, refetch } = (0, import_client30.useQuery)(GET_USER_NOTIFICATIONS, {
6127
6252
  fetchPolicy: "no-cache",
6128
6253
  variables: { limit, offset }
6129
6254
  });
@@ -6135,7 +6260,7 @@ var useGetUserNotifications = (limit, offset) => {
6135
6260
  };
6136
6261
  };
6137
6262
  var useGetNotificationCount = () => {
6138
- const { data, loading, error, refetch } = (0, import_client29.useQuery)(GET_NOTIFICATION_COUNT, {
6263
+ const { data, loading, error, refetch } = (0, import_client30.useQuery)(GET_NOTIFICATION_COUNT, {
6139
6264
  fetchPolicy: "no-cache"
6140
6265
  });
6141
6266
  return {
@@ -6147,11 +6272,11 @@ var useGetNotificationCount = () => {
6147
6272
  };
6148
6273
 
6149
6274
  // src/graphql/hooks/notifications/hooksSubscription.ts
6150
- var import_client31 = require("@apollo/client");
6275
+ var import_client32 = require("@apollo/client");
6151
6276
 
6152
6277
  // src/graphql/subscriptions/notification.ts
6153
- var import_client30 = require("@apollo/client");
6154
- var GET_NOTIFICATIONS_SUBSCRIPTION = import_client30.gql`
6278
+ var import_client31 = require("@apollo/client");
6279
+ var GET_NOTIFICATIONS_SUBSCRIPTION = import_client31.gql`
6155
6280
  subscription {
6156
6281
  getUserNotifications {
6157
6282
  ...NotificationFields
@@ -6159,7 +6284,7 @@ var GET_NOTIFICATIONS_SUBSCRIPTION = import_client30.gql`
6159
6284
  }
6160
6285
  ${NOTIFICATION_FRAGMENT}
6161
6286
  `;
6162
- var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client30.gql`
6287
+ var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client31.gql`
6163
6288
  subscription {
6164
6289
  getNotificationCount {
6165
6290
  total
@@ -6170,7 +6295,7 @@ var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client30.gql`
6170
6295
 
6171
6296
  // src/graphql/hooks/notifications/hooksSubscription.ts
6172
6297
  var useGetUserNotificationsSubscription = () => {
6173
- const { data, loading, error } = (0, import_client31.useSubscription)(GET_NOTIFICATIONS_SUBSCRIPTION, {
6298
+ const { data, loading, error } = (0, import_client32.useSubscription)(GET_NOTIFICATIONS_SUBSCRIPTION, {
6174
6299
  fetchPolicy: "no-cache",
6175
6300
  shouldResubscribe: true
6176
6301
  });
@@ -6181,7 +6306,7 @@ var useGetUserNotificationsSubscription = () => {
6181
6306
  };
6182
6307
  };
6183
6308
  var useGetNotificationCountSubscription = () => {
6184
- const { data, loading, error } = (0, import_client31.useSubscription)(GET_NOTIFICATION_COUNT_SUBSCRIPTION, {
6309
+ const { data, loading, error } = (0, import_client32.useSubscription)(GET_NOTIFICATION_COUNT_SUBSCRIPTION, {
6185
6310
  fetchPolicy: "no-cache",
6186
6311
  shouldResubscribe: true
6187
6312
  });
@@ -6193,11 +6318,11 @@ var useGetNotificationCountSubscription = () => {
6193
6318
  };
6194
6319
 
6195
6320
  // src/graphql/hooks/poster.ts
6196
- var import_client33 = require("@apollo/client");
6321
+ var import_client34 = require("@apollo/client");
6197
6322
 
6198
6323
  // src/graphql/mutations/poster.ts
6199
- var import_client32 = require("@apollo/client");
6200
- var CREATE_POSTER_MUTATION = import_client32.gql`
6324
+ var import_client33 = require("@apollo/client");
6325
+ var CREATE_POSTER_MUTATION = import_client33.gql`
6201
6326
  mutation createPoster($input: PosterInputType!) {
6202
6327
  createPoster(input: $input) {
6203
6328
  data {
@@ -6213,18 +6338,18 @@ var CREATE_POSTER_MUTATION = import_client32.gql`
6213
6338
 
6214
6339
  // src/graphql/hooks/poster.ts
6215
6340
  var useCreatePoster = () => {
6216
- const [createPoster, { loading, error }] = (0, import_client33.useMutation)(CREATE_POSTER_MUTATION, {
6341
+ const [createPoster, { loading, error }] = (0, import_client34.useMutation)(CREATE_POSTER_MUTATION, {
6217
6342
  refetchQueries: [{ query: GET_USER_EVENTS }, { query: GET_USER_VENDORS }]
6218
6343
  });
6219
6344
  return { createPoster, error, loading };
6220
6345
  };
6221
6346
 
6222
6347
  // src/graphql/hooks/pushToken.ts
6223
- var import_client35 = require("@apollo/client");
6348
+ var import_client36 = require("@apollo/client");
6224
6349
 
6225
6350
  // src/graphql/mutations/pushToken.ts
6226
- var import_client34 = require("@apollo/client");
6227
- var CREATE_PUSH_TOKEN_MUTATION = import_client34.gql`
6351
+ var import_client35 = require("@apollo/client");
6352
+ var CREATE_PUSH_TOKEN_MUTATION = import_client35.gql`
6228
6353
  mutation createPushToken($input: PushTokenInput!) {
6229
6354
  createPushToken(input: $input) {
6230
6355
  data {
@@ -6237,16 +6362,16 @@ var CREATE_PUSH_TOKEN_MUTATION = import_client34.gql`
6237
6362
 
6238
6363
  // src/graphql/hooks/pushToken.ts
6239
6364
  var useCreatePushToken = () => {
6240
- const [createPushToken, { loading, error }] = (0, import_client35.useMutation)(CREATE_PUSH_TOKEN_MUTATION);
6365
+ const [createPushToken, { loading, error }] = (0, import_client36.useMutation)(CREATE_PUSH_TOKEN_MUTATION);
6241
6366
  return { createPushToken, error, loading };
6242
6367
  };
6243
6368
 
6244
6369
  // src/graphql/hooks/relation/hooksMutation.ts
6245
- var import_client37 = require("@apollo/client");
6370
+ var import_client38 = require("@apollo/client");
6246
6371
 
6247
6372
  // src/graphql/mutations/relation.ts
6248
- var import_client36 = require("@apollo/client");
6249
- var CREATE_RELATION_MUTATION = import_client36.gql`
6373
+ var import_client37 = require("@apollo/client");
6374
+ var CREATE_RELATION_MUTATION = import_client37.gql`
6250
6375
  mutation createRelation($input: RelationInputType!) {
6251
6376
  createRelation(input: $input) {
6252
6377
  data {
@@ -6257,7 +6382,7 @@ var CREATE_RELATION_MUTATION = import_client36.gql`
6257
6382
  }
6258
6383
  ${RELATION_FIELDS_FRAGMENT}
6259
6384
  `;
6260
- var UPDATE_RELATION_MUTATION = import_client36.gql`
6385
+ var UPDATE_RELATION_MUTATION = import_client37.gql`
6261
6386
  mutation updateRelation($_id: ID!, $input: RelationInputType!) {
6262
6387
  updateRelation(_id: $_id, input: $input) {
6263
6388
  data {
@@ -6268,7 +6393,7 @@ var UPDATE_RELATION_MUTATION = import_client36.gql`
6268
6393
  }
6269
6394
  ${RELATION_FIELDS_FRAGMENT}
6270
6395
  `;
6271
- var DELETE_RELATION_MUTATION = import_client36.gql`
6396
+ var DELETE_RELATION_MUTATION = import_client37.gql`
6272
6397
  mutation deleteRelation($_id: ID!) {
6273
6398
  deleteRelation(_id: $_id) {
6274
6399
  data {
@@ -6282,7 +6407,7 @@ var DELETE_RELATION_MUTATION = import_client36.gql`
6282
6407
 
6283
6408
  // src/graphql/hooks/relation/hooksMutation.ts
6284
6409
  var useCreateRelation = () => {
6285
- const [createRelation, { loading, error }] = (0, import_client37.useMutation)(CREATE_RELATION_MUTATION, {
6410
+ const [createRelation, { loading, error }] = (0, import_client38.useMutation)(CREATE_RELATION_MUTATION, {
6286
6411
  awaitRefetchQueries: true,
6287
6412
  refetchQueries: (mutationResult) => {
6288
6413
  const createRelation2 = mutationResult?.data?.createRelation?.data;
@@ -6328,7 +6453,7 @@ var useCreateRelation = () => {
6328
6453
  return { createRelation, error, loading };
6329
6454
  };
6330
6455
  var useUpdateRelation = () => {
6331
- const [updateRelation, { loading, error }] = (0, import_client37.useMutation)(UPDATE_RELATION_MUTATION, {
6456
+ const [updateRelation, { loading, error }] = (0, import_client38.useMutation)(UPDATE_RELATION_MUTATION, {
6332
6457
  awaitRefetchQueries: true,
6333
6458
  refetchQueries: (mutationResult) => {
6334
6459
  const updateRelation2 = mutationResult?.data?.updateRelation?.data;
@@ -6371,7 +6496,7 @@ var useUpdateRelation = () => {
6371
6496
  return { error, loading, updateRelation };
6372
6497
  };
6373
6498
  var useDeleteRelation = () => {
6374
- const [deleteRelation, { loading, error }] = (0, import_client37.useMutation)(DELETE_RELATION_MUTATION, {
6499
+ const [deleteRelation, { loading, error }] = (0, import_client38.useMutation)(DELETE_RELATION_MUTATION, {
6375
6500
  awaitRefetchQueries: true,
6376
6501
  refetchQueries: (mutationResult) => {
6377
6502
  const deleteRelation2 = mutationResult?.data?.deleteRelation?.data;
@@ -6410,9 +6535,9 @@ var useDeleteRelation = () => {
6410
6535
  };
6411
6536
 
6412
6537
  // src/graphql/hooks/relation/hooksQuery.ts
6413
- var import_client38 = require("@apollo/client");
6538
+ var import_client39 = require("@apollo/client");
6414
6539
  var useGetRelation = (_id) => {
6415
- const { loading, error, data, refetch } = (0, import_client38.useQuery)(GET_RELATION, {
6540
+ const { loading, error, data, refetch } = (0, import_client39.useQuery)(GET_RELATION, {
6416
6541
  fetchPolicy: "network-only",
6417
6542
  skip: !_id,
6418
6543
  variables: _id ? { _id } : void 0
@@ -6421,7 +6546,7 @@ var useGetRelation = (_id) => {
6421
6546
  return { error, loading, refetch, relation };
6422
6547
  };
6423
6548
  var useGetRelationByEventAndVendor = (eventId, vendorId) => {
6424
- const { loading, error, data, refetch } = (0, import_client38.useQuery)(GET_RELATION_BY_EVENT_AND_VENDOR, {
6549
+ const { loading, error, data, refetch } = (0, import_client39.useQuery)(GET_RELATION_BY_EVENT_AND_VENDOR, {
6425
6550
  fetchPolicy: "network-only",
6426
6551
  skip: !eventId || eventId === "" || !vendorId || vendorId === "",
6427
6552
  variables: { eventId, vendorId }
@@ -6430,7 +6555,7 @@ var useGetRelationByEventAndVendor = (eventId, vendorId) => {
6430
6555
  return { error, loading, refetch, relationByEventAndVendor };
6431
6556
  };
6432
6557
  var useGetEventRelations = (eventId) => {
6433
- const { loading, error, data, refetch } = (0, import_client38.useQuery)(GET_EVENT_RELATIONS, {
6558
+ const { loading, error, data, refetch } = (0, import_client39.useQuery)(GET_EVENT_RELATIONS, {
6434
6559
  fetchPolicy: "network-only",
6435
6560
  skip: !eventId || eventId === "",
6436
6561
  variables: { eventId }
@@ -6439,7 +6564,7 @@ var useGetEventRelations = (eventId) => {
6439
6564
  return { error, eventRelations, loading, refetch };
6440
6565
  };
6441
6566
  var useGetVendorRelations = (vendorId) => {
6442
- const { loading, error, data, refetch } = (0, import_client38.useQuery)(GET_VENDOR_RELATIONS, {
6567
+ const { loading, error, data, refetch } = (0, import_client39.useQuery)(GET_VENDOR_RELATIONS, {
6443
6568
  fetchPolicy: "network-only",
6444
6569
  skip: !vendorId || vendorId === "",
6445
6570
  variables: { vendorId }
@@ -6448,7 +6573,7 @@ var useGetVendorRelations = (vendorId) => {
6448
6573
  return { error, loading, refetch, vendorRelations };
6449
6574
  };
6450
6575
  var useGetResourceConnections = (resourceId, resourceType) => {
6451
- const { loading, error, data, refetch } = (0, import_client38.useQuery)(GET_RESOURCE_CONNECTIONS, {
6576
+ const { loading, error, data, refetch } = (0, import_client39.useQuery)(GET_RESOURCE_CONNECTIONS, {
6452
6577
  fetchPolicy: "network-only",
6453
6578
  skip: !resourceId || resourceId === "" || !resourceType,
6454
6579
  variables: { resourceId, resourceType }
@@ -6458,30 +6583,30 @@ var useGetResourceConnections = (resourceId, resourceType) => {
6458
6583
  };
6459
6584
 
6460
6585
  // src/graphql/hooks/vendor/hooksMutation.ts
6461
- var import_client39 = require("@apollo/client");
6586
+ var import_client40 = require("@apollo/client");
6462
6587
  var useCreateVendor = () => {
6463
- const [createVendor, { loading, error }] = (0, import_client39.useMutation)(CREATE_VENDOR_MUTATION, {
6588
+ const [createVendor, { loading, error }] = (0, import_client40.useMutation)(CREATE_VENDOR_MUTATION, {
6464
6589
  awaitRefetchQueries: true,
6465
6590
  refetchQueries: [{ query: GET_USER_VENDORS }]
6466
6591
  });
6467
6592
  return { createVendor, error, loading };
6468
6593
  };
6469
6594
  var useUpdateVendor = () => {
6470
- const [updateVendor, { loading, error }] = (0, import_client39.useMutation)(UPDATE_VENDOR_MUTATION, {
6595
+ const [updateVendor, { loading, error }] = (0, import_client40.useMutation)(UPDATE_VENDOR_MUTATION, {
6471
6596
  awaitRefetchQueries: true,
6472
6597
  refetchQueries: [{ query: GET_USER_VENDORS }]
6473
6598
  });
6474
6599
  return { error, loading, updateVendor };
6475
6600
  };
6476
6601
  var useDeleteVendor = () => {
6477
- const [deleteVendor, { loading, error }] = (0, import_client39.useMutation)(DELETE_VENDOR_MUTATION, {
6602
+ const [deleteVendor, { loading, error }] = (0, import_client40.useMutation)(DELETE_VENDOR_MUTATION, {
6478
6603
  awaitRefetchQueries: true,
6479
6604
  refetchQueries: [{ query: GET_USER_VENDORS }]
6480
6605
  });
6481
6606
  return { deleteVendor, error, loading };
6482
6607
  };
6483
6608
  var useCreateVendorInfo = () => {
6484
- const [createVendorInfo, { loading, error }] = (0, import_client39.useMutation)(CREATE_VENDOR_INFO_MUTATION, {
6609
+ const [createVendorInfo, { loading, error }] = (0, import_client40.useMutation)(CREATE_VENDOR_INFO_MUTATION, {
6485
6610
  awaitRefetchQueries: true,
6486
6611
  refetchQueries: (mutationResult) => {
6487
6612
  const vendorId = mutationResult?.data?.createVendorInfo?.data?.vendorId;
@@ -6505,7 +6630,7 @@ var useCreateVendorInfo = () => {
6505
6630
  return { createVendorInfo, error, loading };
6506
6631
  };
6507
6632
  var useUpdateVendorInfo = () => {
6508
- const [updateVendorInfo, { loading, error }] = (0, import_client39.useMutation)(UPDATE_VENDOR_INFO_MUTATION, {
6633
+ const [updateVendorInfo, { loading, error }] = (0, import_client40.useMutation)(UPDATE_VENDOR_INFO_MUTATION, {
6509
6634
  awaitRefetchQueries: true,
6510
6635
  refetchQueries: (mutationResult) => {
6511
6636
  const vendorId = mutationResult?.data?.updateVendorInfo?.data?.vendorId;
@@ -6522,30 +6647,30 @@ var useUpdateVendorInfo = () => {
6522
6647
  return { error, loading, updateVendorInfo };
6523
6648
  };
6524
6649
  var useCreateUnregisteredVendor = () => {
6525
- const [createUnregisteredVendor, { loading, error }] = (0, import_client39.useMutation)(CREATE_UNREGISTERED_VENDOR_MUTATION);
6650
+ const [createUnregisteredVendor, { loading, error }] = (0, import_client40.useMutation)(CREATE_UNREGISTERED_VENDOR_MUTATION);
6526
6651
  return { createUnregisteredVendor, error, loading };
6527
6652
  };
6528
6653
  var useUpdateUnregisteredVendor = () => {
6529
- const [updateUnregisteredVendor, { loading, error }] = (0, import_client39.useMutation)(UPDATE_UNREGISTERED_VENDOR_MUTATION);
6654
+ const [updateUnregisteredVendor, { loading, error }] = (0, import_client40.useMutation)(UPDATE_UNREGISTERED_VENDOR_MUTATION);
6530
6655
  return { error, loading, updateUnregisteredVendor };
6531
6656
  };
6532
6657
  var useDeleteUnregisteredVendor = () => {
6533
- const [deleteUnregisteredVendor, { loading, error }] = (0, import_client39.useMutation)(DELETE_UNREGISTERED_VENDOR_MUTATION);
6658
+ const [deleteUnregisteredVendor, { loading, error }] = (0, import_client40.useMutation)(DELETE_UNREGISTERED_VENDOR_MUTATION);
6534
6659
  return { deleteUnregisteredVendor, error, loading };
6535
6660
  };
6536
6661
  var useUnlinkUnregisteredVendorByInviterId = () => {
6537
- const [unlinkUnregisteredVendorByInviterId, { loading, error }] = (0, import_client39.useMutation)(UNLINK_UNREGISTERED_VENDOR_BY_INVITER_ID_MUTATION);
6662
+ const [unlinkUnregisteredVendorByInviterId, { loading, error }] = (0, import_client40.useMutation)(UNLINK_UNREGISTERED_VENDOR_BY_INVITER_ID_MUTATION);
6538
6663
  return { error, loading, unlinkUnregisteredVendorByInviterId };
6539
6664
  };
6540
6665
  var useActivateVendorClaim = () => {
6541
- const [activateVendorClaim, { loading, error }] = (0, import_client39.useMutation)(ACTIVATE_VENDOR_CLAIM_MUTATION);
6666
+ const [activateVendorClaim, { loading, error }] = (0, import_client40.useMutation)(ACTIVATE_VENDOR_CLAIM_MUTATION);
6542
6667
  return { activateVendorClaim, error, loading };
6543
6668
  };
6544
6669
 
6545
6670
  // src/graphql/hooks/vendor/hooksQuery.ts
6546
- var import_client40 = require("@apollo/client");
6671
+ var import_client41 = require("@apollo/client");
6547
6672
  var useGetVendors = () => {
6548
- const { loading, error, data, refetch } = (0, import_client40.useQuery)(
6673
+ const { loading, error, data, refetch } = (0, import_client41.useQuery)(
6549
6674
  GET_VENDORS,
6550
6675
  {
6551
6676
  fetchPolicy: "network-only"
@@ -6560,7 +6685,7 @@ var useGetVendors = () => {
6560
6685
  };
6561
6686
  };
6562
6687
  var useGetVendor = (_id) => {
6563
- const { loading, error, data, refetch } = (0, import_client40.useQuery)(
6688
+ const { loading, error, data, refetch } = (0, import_client41.useQuery)(
6564
6689
  GET_VENDOR,
6565
6690
  {
6566
6691
  fetchPolicy: "network-only",
@@ -6576,7 +6701,7 @@ var useGetVendorsByRegion = (region, options) => {
6576
6701
  options,
6577
6702
  region
6578
6703
  };
6579
- const { loading, error, data, refetch, fetchMore } = (0, import_client40.useQuery)(GET_VENDORS_BY_REGION, {
6704
+ const { loading, error, data, refetch, fetchMore } = (0, import_client41.useQuery)(GET_VENDORS_BY_REGION, {
6580
6705
  fetchPolicy: "network-only",
6581
6706
  variables
6582
6707
  });
@@ -6590,7 +6715,7 @@ var useGetVendorsByRegion = (region, options) => {
6590
6715
  };
6591
6716
  };
6592
6717
  var useSearchVendors = (search, region) => {
6593
- const { loading, error, data, refetch } = (0, import_client40.useQuery)(SEARCH_VENDORS, {
6718
+ const { loading, error, data, refetch } = (0, import_client41.useQuery)(SEARCH_VENDORS, {
6594
6719
  fetchPolicy: "network-only",
6595
6720
  skip: search.length < 3,
6596
6721
  variables: { region, search }
@@ -6599,7 +6724,7 @@ var useSearchVendors = (search, region) => {
6599
6724
  return { error, loading, refetch, vendorSearch };
6600
6725
  };
6601
6726
  var useGetVendorInfo = (vendorId) => {
6602
- const { loading, error, data, refetch } = (0, import_client40.useQuery)(GET_VENDOR_INFO, {
6727
+ const { loading, error, data, refetch } = (0, import_client41.useQuery)(GET_VENDOR_INFO, {
6603
6728
  fetchPolicy: "network-only",
6604
6729
  skip: !vendorId || vendorId === "",
6605
6730
  variables: { vendorId }
@@ -6613,7 +6738,7 @@ var useGetVendorInfo = (vendorId) => {
6613
6738
  };
6614
6739
  };
6615
6740
  var useGetUnregisteredVendors = () => {
6616
- const { loading, error, data, refetch } = (0, import_client40.useQuery)(GET_UNREGISTERED_VENDORS, {
6741
+ const { loading, error, data, refetch } = (0, import_client41.useQuery)(GET_UNREGISTERED_VENDORS, {
6617
6742
  fetchPolicy: "network-only"
6618
6743
  });
6619
6744
  const unregisteredVendors = data?.unregisteredVendors || [];
@@ -6625,7 +6750,7 @@ var useGetUnregisteredVendors = () => {
6625
6750
  };
6626
6751
  };
6627
6752
  var useGetUnregisteredVendorsByInviterId = (inviterId) => {
6628
- const { loading, error, data, refetch } = (0, import_client40.useQuery)(GET_UNREGISTERED_VENDORS_BY_INVITER_ID, {
6753
+ const { loading, error, data, refetch } = (0, import_client41.useQuery)(GET_UNREGISTERED_VENDORS_BY_INVITER_ID, {
6629
6754
  fetchPolicy: "network-only",
6630
6755
  skip: !inviterId || inviterId === "",
6631
6756
  variables: { inviterId }
@@ -6634,7 +6759,7 @@ var useGetUnregisteredVendorsByInviterId = (inviterId) => {
6634
6759
  return { error, loading, refetch, unregisteredVendorsByInviterId };
6635
6760
  };
6636
6761
  var useGetUnregisteredVendor = (_id) => {
6637
- const { loading, error, data, refetch } = (0, import_client40.useQuery)(GET_UNREGISTERED_VENDOR, {
6762
+ const { loading, error, data, refetch } = (0, import_client41.useQuery)(GET_UNREGISTERED_VENDOR, {
6638
6763
  fetchPolicy: "network-only",
6639
6764
  skip: !_id || _id === "",
6640
6765
  variables: { _id }
@@ -6643,7 +6768,7 @@ var useGetUnregisteredVendor = (_id) => {
6643
6768
  return { error, loading, refetch, unregisteredVendor };
6644
6769
  };
6645
6770
  var useMyPendingVendorClaim = (skip = false) => {
6646
- const { loading, error, data, refetch } = (0, import_client40.useQuery)(MY_PENDING_VENDOR_CLAIM, {
6771
+ const { loading, error, data, refetch } = (0, import_client41.useQuery)(MY_PENDING_VENDOR_CLAIM, {
6647
6772
  fetchPolicy: "network-only",
6648
6773
  skip
6649
6774
  });
@@ -6656,11 +6781,11 @@ var useMyPendingVendorClaim = (skip = false) => {
6656
6781
  };
6657
6782
 
6658
6783
  // src/graphql/hooks/user/hooksMutation.ts
6659
- var import_client42 = require("@apollo/client");
6784
+ var import_client43 = require("@apollo/client");
6660
6785
 
6661
6786
  // src/graphql/mutations/user.ts
6662
- var import_client41 = require("@apollo/client");
6663
- var CREATE_USER_MUTATION = import_client41.gql`
6787
+ var import_client42 = require("@apollo/client");
6788
+ var CREATE_USER_MUTATION = import_client42.gql`
6664
6789
  mutation createUser($input: UserInputType!) {
6665
6790
  createUser(input: $input) {
6666
6791
  data {
@@ -6671,7 +6796,7 @@ var CREATE_USER_MUTATION = import_client41.gql`
6671
6796
  }
6672
6797
  ${USER_FIELDS_FRAGMENT}
6673
6798
  `;
6674
- var UPDATE_USER_MUTATION = import_client41.gql`
6799
+ var UPDATE_USER_MUTATION = import_client42.gql`
6675
6800
  mutation updateUser($_id: ID!, $input: UserInputType!) {
6676
6801
  updateUser(_id: $_id, input: $input) {
6677
6802
  data {
@@ -6682,7 +6807,7 @@ var UPDATE_USER_MUTATION = import_client41.gql`
6682
6807
  }
6683
6808
  ${USER_FIELDS_FRAGMENT}
6684
6809
  `;
6685
- var DELETE_USER_MUTATION = import_client41.gql`
6810
+ var DELETE_USER_MUTATION = import_client42.gql`
6686
6811
  mutation deleteUser($email: String!) {
6687
6812
  deleteUser(email: $email) {
6688
6813
  data
@@ -6690,7 +6815,7 @@ var DELETE_USER_MUTATION = import_client41.gql`
6690
6815
  }
6691
6816
  }
6692
6817
  `;
6693
- var REDEEM_REWARD_MUTATION = import_client41.gql`
6818
+ var REDEEM_REWARD_MUTATION = import_client42.gql`
6694
6819
  mutation redeemReward($input: RedeemRewardInputType!) {
6695
6820
  redeemReward(input: $input) {
6696
6821
  data {
@@ -6700,7 +6825,7 @@ var REDEEM_REWARD_MUTATION = import_client41.gql`
6700
6825
  }
6701
6826
  }
6702
6827
  `;
6703
- var ADD_USER_FAVOURITE_RESOURCE_MUTATION = import_client41.gql`
6828
+ var ADD_USER_FAVOURITE_RESOURCE_MUTATION = import_client42.gql`
6704
6829
  mutation addUserFavouriteResource(
6705
6830
  $resourceId: ID!
6706
6831
  $resourceType: ResourceTypeEnum!
@@ -6717,7 +6842,7 @@ var ADD_USER_FAVOURITE_RESOURCE_MUTATION = import_client41.gql`
6717
6842
  }
6718
6843
  ${USER_FIELDS_FRAGMENT}
6719
6844
  `;
6720
- var REMOVE_USER_FAVOURITE_RESOURCE_MUTATION = import_client41.gql`
6845
+ var REMOVE_USER_FAVOURITE_RESOURCE_MUTATION = import_client42.gql`
6721
6846
  mutation removeUserFavouriteResource(
6722
6847
  $resourceId: ID!
6723
6848
  $resourceType: ResourceTypeEnum!
@@ -6734,7 +6859,7 @@ var REMOVE_USER_FAVOURITE_RESOURCE_MUTATION = import_client41.gql`
6734
6859
  }
6735
6860
  ${USER_FIELDS_FRAGMENT}
6736
6861
  `;
6737
- var ADD_USER_INTEREST_RESOURCE_MUTATION = import_client41.gql`
6862
+ var ADD_USER_INTEREST_RESOURCE_MUTATION = import_client42.gql`
6738
6863
  mutation addUserInterestResource($input: UserActivityInputType!) {
6739
6864
  addUserInterestResource(input: $input) {
6740
6865
  data {
@@ -6745,7 +6870,7 @@ var ADD_USER_INTEREST_RESOURCE_MUTATION = import_client41.gql`
6745
6870
  }
6746
6871
  ${USER_FIELDS_FRAGMENT}
6747
6872
  `;
6748
- var REMOVE_USER_INTEREST_RESOURCE_MUTATION = import_client41.gql`
6873
+ var REMOVE_USER_INTEREST_RESOURCE_MUTATION = import_client42.gql`
6749
6874
  mutation removeUserInterestResource($input: UserActivityInputType!) {
6750
6875
  removeUserInterestResource(input: $input) {
6751
6876
  data {
@@ -6756,7 +6881,7 @@ var REMOVE_USER_INTEREST_RESOURCE_MUTATION = import_client41.gql`
6756
6881
  }
6757
6882
  ${USER_FIELDS_FRAGMENT}
6758
6883
  `;
6759
- var ADD_USER_GOING_RESOURCE_MUTATION = import_client41.gql`
6884
+ var ADD_USER_GOING_RESOURCE_MUTATION = import_client42.gql`
6760
6885
  mutation addUserGoingResource($input: UserActivityInputType!) {
6761
6886
  addUserGoingResource(input: $input) {
6762
6887
  data {
@@ -6767,7 +6892,7 @@ var ADD_USER_GOING_RESOURCE_MUTATION = import_client41.gql`
6767
6892
  }
6768
6893
  ${USER_FIELDS_FRAGMENT}
6769
6894
  `;
6770
- var REMOVE_USER_GOING_RESOURCE_MUTATION = import_client41.gql`
6895
+ var REMOVE_USER_GOING_RESOURCE_MUTATION = import_client42.gql`
6771
6896
  mutation removeUserGoingResource($input: UserActivityInputType!) {
6772
6897
  removeUserGoingResource(input: $input) {
6773
6898
  data {
@@ -6778,7 +6903,7 @@ var REMOVE_USER_GOING_RESOURCE_MUTATION = import_client41.gql`
6778
6903
  }
6779
6904
  ${USER_FIELDS_FRAGMENT}
6780
6905
  `;
6781
- var ADD_USER_PRESENT_RESOURCE_MUTATION = import_client41.gql`
6906
+ var ADD_USER_PRESENT_RESOURCE_MUTATION = import_client42.gql`
6782
6907
  mutation addUserPresentResource($input: UserActivityInputType!) {
6783
6908
  addUserPresentResource(input: $input) {
6784
6909
  data {
@@ -6789,7 +6914,7 @@ var ADD_USER_PRESENT_RESOURCE_MUTATION = import_client41.gql`
6789
6914
  }
6790
6915
  ${USER_FIELDS_FRAGMENT}
6791
6916
  `;
6792
- var REMOVE_USER_PRESENT_RESOURCE_MUTATION = import_client41.gql`
6917
+ var REMOVE_USER_PRESENT_RESOURCE_MUTATION = import_client42.gql`
6793
6918
  mutation removeUserPresentResource($input: UserActivityInputType!) {
6794
6919
  removeUserPresentResource(input: $input) {
6795
6920
  data {
@@ -6800,7 +6925,7 @@ var REMOVE_USER_PRESENT_RESOURCE_MUTATION = import_client41.gql`
6800
6925
  }
6801
6926
  ${USER_FIELDS_FRAGMENT}
6802
6927
  `;
6803
- var SELECT_STANDARD_PACKAGE_MUTATION = import_client41.gql`
6928
+ var SELECT_STANDARD_PACKAGE_MUTATION = import_client42.gql`
6804
6929
  mutation selectStandardPackage($selectedLicence: LicencesEnumType!) {
6805
6930
  selectStandardPackage(selectedLicence: $selectedLicence) {
6806
6931
  data {
@@ -6817,11 +6942,11 @@ var SELECT_STANDARD_PACKAGE_MUTATION = import_client41.gql`
6817
6942
 
6818
6943
  // src/graphql/hooks/user/hooksMutation.ts
6819
6944
  var useCreateUser = () => {
6820
- const [createUser, { loading, error }] = (0, import_client42.useMutation)(CREATE_USER_MUTATION);
6945
+ const [createUser, { loading, error }] = (0, import_client43.useMutation)(CREATE_USER_MUTATION);
6821
6946
  return { createUser, error, loading };
6822
6947
  };
6823
6948
  var useUpdateUser = () => {
6824
- const [updateUser, { loading, error }] = (0, import_client42.useMutation)(UPDATE_USER_MUTATION, {
6949
+ const [updateUser, { loading, error }] = (0, import_client43.useMutation)(UPDATE_USER_MUTATION, {
6825
6950
  awaitRefetchQueries: true,
6826
6951
  refetchQueries: (mutationResult) => {
6827
6952
  const userId = mutationResult?.data?.updateUser?.data?._id;
@@ -6832,11 +6957,11 @@ var useUpdateUser = () => {
6832
6957
  return { error, loading, updateUser };
6833
6958
  };
6834
6959
  var useDeleteUser = () => {
6835
- const [deleteUser, { loading, error }] = (0, import_client42.useMutation)(DELETE_USER_MUTATION);
6960
+ const [deleteUser, { loading, error }] = (0, import_client43.useMutation)(DELETE_USER_MUTATION);
6836
6961
  return { deleteUser, error, loading };
6837
6962
  };
6838
6963
  var useRedeemReward = () => {
6839
- const [redeemReward, { loading, error }] = (0, import_client42.useMutation)(REDEEM_REWARD_MUTATION, {
6964
+ const [redeemReward, { loading, error }] = (0, import_client43.useMutation)(REDEEM_REWARD_MUTATION, {
6840
6965
  awaitRefetchQueries: true,
6841
6966
  refetchQueries: (mutationResult) => {
6842
6967
  const userId = mutationResult?.data?.redeemReward?.data?.userId;
@@ -6853,63 +6978,63 @@ var useRedeemReward = () => {
6853
6978
  return { error, loading, redeemReward };
6854
6979
  };
6855
6980
  var useAddUserFavouriteResource = () => {
6856
- const [addUserFavouriteResource, { loading, error }] = (0, import_client42.useMutation)(ADD_USER_FAVOURITE_RESOURCE_MUTATION, {
6981
+ const [addUserFavouriteResource, { loading, error }] = (0, import_client43.useMutation)(ADD_USER_FAVOURITE_RESOURCE_MUTATION, {
6857
6982
  awaitRefetchQueries: true,
6858
6983
  refetchQueries: [{ query: GET_USER_ACTIVITIES }]
6859
6984
  });
6860
6985
  return { addUserFavouriteResource, error, loading };
6861
6986
  };
6862
6987
  var useRemoveUserFavouriteResource = () => {
6863
- const [removeUserFavouriteResource, { loading, error }] = (0, import_client42.useMutation)(REMOVE_USER_FAVOURITE_RESOURCE_MUTATION, {
6988
+ const [removeUserFavouriteResource, { loading, error }] = (0, import_client43.useMutation)(REMOVE_USER_FAVOURITE_RESOURCE_MUTATION, {
6864
6989
  awaitRefetchQueries: true,
6865
6990
  refetchQueries: [{ query: GET_USER_ACTIVITIES }]
6866
6991
  });
6867
6992
  return { error, loading, removeUserFavouriteResource };
6868
6993
  };
6869
6994
  var useAddUserInterestResource = () => {
6870
- const [addUserInterestResource, { loading, error }] = (0, import_client42.useMutation)(ADD_USER_INTEREST_RESOURCE_MUTATION, {
6995
+ const [addUserInterestResource, { loading, error }] = (0, import_client43.useMutation)(ADD_USER_INTEREST_RESOURCE_MUTATION, {
6871
6996
  awaitRefetchQueries: true,
6872
6997
  refetchQueries: [{ query: GET_USER_ACTIVITIES }]
6873
6998
  });
6874
6999
  return { addUserInterestResource, error, loading };
6875
7000
  };
6876
7001
  var useRemoveUserInterestResource = () => {
6877
- const [removeUserInterestResource, { loading, error }] = (0, import_client42.useMutation)(REMOVE_USER_INTEREST_RESOURCE_MUTATION, {
7002
+ const [removeUserInterestResource, { loading, error }] = (0, import_client43.useMutation)(REMOVE_USER_INTEREST_RESOURCE_MUTATION, {
6878
7003
  awaitRefetchQueries: true,
6879
7004
  refetchQueries: [{ query: GET_USER_ACTIVITIES }]
6880
7005
  });
6881
7006
  return { error, loading, removeUserInterestResource };
6882
7007
  };
6883
7008
  var useAddUserGoingResource = () => {
6884
- const [addUserGoingResource, { loading, error }] = (0, import_client42.useMutation)(ADD_USER_GOING_RESOURCE_MUTATION, {
7009
+ const [addUserGoingResource, { loading, error }] = (0, import_client43.useMutation)(ADD_USER_GOING_RESOURCE_MUTATION, {
6885
7010
  awaitRefetchQueries: true,
6886
7011
  refetchQueries: [{ query: GET_USER_ACTIVITIES }]
6887
7012
  });
6888
7013
  return { addUserGoingResource, error, loading };
6889
7014
  };
6890
7015
  var useRemoveUserGoingResource = () => {
6891
- const [removeUserGoingResource, { loading, error }] = (0, import_client42.useMutation)(REMOVE_USER_GOING_RESOURCE_MUTATION, {
7016
+ const [removeUserGoingResource, { loading, error }] = (0, import_client43.useMutation)(REMOVE_USER_GOING_RESOURCE_MUTATION, {
6892
7017
  awaitRefetchQueries: true,
6893
7018
  refetchQueries: [{ query: GET_USER_ACTIVITIES }]
6894
7019
  });
6895
7020
  return { error, loading, removeUserGoingResource };
6896
7021
  };
6897
7022
  var useAddUserPresentResource = () => {
6898
- const [addUserPresentResource, { loading, error }] = (0, import_client42.useMutation)(ADD_USER_PRESENT_RESOURCE_MUTATION, {
7023
+ const [addUserPresentResource, { loading, error }] = (0, import_client43.useMutation)(ADD_USER_PRESENT_RESOURCE_MUTATION, {
6899
7024
  awaitRefetchQueries: true,
6900
7025
  refetchQueries: [{ query: GET_USER_ACTIVITIES }]
6901
7026
  });
6902
7027
  return { addUserPresentResource, error, loading };
6903
7028
  };
6904
7029
  var useRemoveUserPresentResource = () => {
6905
- const [removeUserPresentResource, { loading, error }] = (0, import_client42.useMutation)(REMOVE_USER_PRESENT_RESOURCE_MUTATION, {
7030
+ const [removeUserPresentResource, { loading, error }] = (0, import_client43.useMutation)(REMOVE_USER_PRESENT_RESOURCE_MUTATION, {
6906
7031
  awaitRefetchQueries: true,
6907
7032
  refetchQueries: [{ query: GET_USER_ACTIVITIES }]
6908
7033
  });
6909
7034
  return { error, loading, removeUserPresentResource };
6910
7035
  };
6911
7036
  var useSelectStandardPackage = () => {
6912
- const [selectStandardPackage, { loading, error }] = (0, import_client42.useMutation)(SELECT_STANDARD_PACKAGE_MUTATION, {
7037
+ const [selectStandardPackage, { loading, error }] = (0, import_client43.useMutation)(SELECT_STANDARD_PACKAGE_MUTATION, {
6913
7038
  awaitRefetchQueries: true,
6914
7039
  refetchQueries: (mutationResult) => {
6915
7040
  const userId = mutationResult?.data?.selectStandardPackage?.data?.userId;
@@ -6925,9 +7050,9 @@ var useSelectStandardPackage = () => {
6925
7050
  };
6926
7051
 
6927
7052
  // src/graphql/hooks/user/hooksQuery.ts
6928
- var import_client43 = require("@apollo/client");
7053
+ var import_client44 = require("@apollo/client");
6929
7054
  var useGetUsers = () => {
6930
- const { loading, error, data, refetch } = (0, import_client43.useQuery)(
7055
+ const { loading, error, data, refetch } = (0, import_client44.useQuery)(
6931
7056
  GET_USERS,
6932
7057
  {
6933
7058
  fetchPolicy: "network-only"
@@ -6937,7 +7062,7 @@ var useGetUsers = () => {
6937
7062
  return { error, loading, refetch, users };
6938
7063
  };
6939
7064
  var useGetUser = (_id) => {
6940
- const { loading, error, data, refetch } = (0, import_client43.useQuery)(
7065
+ const { loading, error, data, refetch } = (0, import_client44.useQuery)(
6941
7066
  GET_USER,
6942
7067
  {
6943
7068
  fetchPolicy: "network-only",
@@ -6949,28 +7074,28 @@ var useGetUser = (_id) => {
6949
7074
  return { error, loading, refetch, user };
6950
7075
  };
6951
7076
  var useGetUserEvents = () => {
6952
- const { loading, error, data, refetch } = (0, import_client43.useQuery)(GET_USER_EVENTS, {
7077
+ const { loading, error, data, refetch } = (0, import_client44.useQuery)(GET_USER_EVENTS, {
6953
7078
  fetchPolicy: "network-only"
6954
7079
  });
6955
7080
  const userEvents = data?.userEvents || [];
6956
7081
  return { error, loading, refetch, userEvents };
6957
7082
  };
6958
7083
  var useGetUserVendors = () => {
6959
- const { loading, error, data, refetch } = (0, import_client43.useQuery)(GET_USER_VENDORS, {
7084
+ const { loading, error, data, refetch } = (0, import_client44.useQuery)(GET_USER_VENDORS, {
6960
7085
  fetchPolicy: "network-only"
6961
7086
  });
6962
7087
  const userVendors = data?.userVendors || [];
6963
7088
  return { error, loading, refetch, userVendors };
6964
7089
  };
6965
7090
  var useGetUserPartners = () => {
6966
- const { loading, error, data, refetch } = (0, import_client43.useQuery)(GET_USER_PARTNERS, {
7091
+ const { loading, error, data, refetch } = (0, import_client44.useQuery)(GET_USER_PARTNERS, {
6967
7092
  fetchPolicy: "network-only"
6968
7093
  });
6969
7094
  const userPartners = data?.userPartners || [];
6970
7095
  return { error, loading, refetch, userPartners };
6971
7096
  };
6972
7097
  var useGetUserActivities = () => {
6973
- const { loading, error, data, refetch } = (0, import_client43.useQuery)(GET_USER_ACTIVITIES, {
7098
+ const { loading, error, data, refetch } = (0, import_client44.useQuery)(GET_USER_ACTIVITIES, {
6974
7099
  fetchPolicy: "network-only"
6975
7100
  });
6976
7101
  const userActivities = {
@@ -6992,7 +7117,7 @@ var useGetUserActivities = () => {
6992
7117
  return { error, loading, refetch, userActivities };
6993
7118
  };
6994
7119
  var useGetUserResources = (userId) => {
6995
- const { loading, error, data, refetch } = (0, import_client43.useQuery)(GET_USER_RESOURCES, {
7120
+ const { loading, error, data, refetch } = (0, import_client44.useQuery)(GET_USER_RESOURCES, {
6996
7121
  fetchPolicy: "network-only",
6997
7122
  skip: !userId || userId === "",
6998
7123
  variables: { userId }
@@ -7002,14 +7127,14 @@ var useGetUserResources = (userId) => {
7002
7127
  };
7003
7128
 
7004
7129
  // src/graphql/hooks/ad/hooksMutation.ts
7005
- var import_client46 = require("@apollo/client");
7130
+ var import_client47 = require("@apollo/client");
7006
7131
 
7007
7132
  // src/graphql/mutations/ad.ts
7008
- var import_client45 = require("@apollo/client");
7133
+ var import_client46 = require("@apollo/client");
7009
7134
 
7010
7135
  // src/graphql/queries/ad.ts
7011
- var import_client44 = require("@apollo/client");
7012
- var AD_FIELDS_FRAGMENT = import_client44.gql`
7136
+ var import_client45 = require("@apollo/client");
7137
+ var AD_FIELDS_FRAGMENT = import_client45.gql`
7013
7138
  fragment AdFields on AdType {
7014
7139
  _id
7015
7140
  active
@@ -7036,7 +7161,7 @@ var AD_FIELDS_FRAGMENT = import_client44.gql`
7036
7161
  updatedAt
7037
7162
  }
7038
7163
  `;
7039
- var GET_ADS = import_client44.gql`
7164
+ var GET_ADS = import_client45.gql`
7040
7165
  query getAds {
7041
7166
  ads {
7042
7167
  ...AdFields
@@ -7044,7 +7169,7 @@ var GET_ADS = import_client44.gql`
7044
7169
  }
7045
7170
  ${AD_FIELDS_FRAGMENT}
7046
7171
  `;
7047
- var GET_AD = import_client44.gql`
7172
+ var GET_AD = import_client45.gql`
7048
7173
  query getAd($_id: ID!) {
7049
7174
  ad(_id: $_id) {
7050
7175
  ...AdFields
@@ -7052,7 +7177,7 @@ var GET_AD = import_client44.gql`
7052
7177
  }
7053
7178
  ${AD_FIELDS_FRAGMENT}
7054
7179
  `;
7055
- var GET_ADS_BY_REGION = import_client44.gql`
7180
+ var GET_ADS_BY_REGION = import_client45.gql`
7056
7181
  query getAdsByRegion($region: String!, $status: AdStatusTypeEnum) {
7057
7182
  adsByRegion(region: $region, status: $status) {
7058
7183
  ...AdFields
@@ -7062,7 +7187,7 @@ var GET_ADS_BY_REGION = import_client44.gql`
7062
7187
  `;
7063
7188
 
7064
7189
  // src/graphql/mutations/ad.ts
7065
- var CREATE_AD_MUTATION = import_client45.gql`
7190
+ var CREATE_AD_MUTATION = import_client46.gql`
7066
7191
  mutation createAd($input: AdInputType!) {
7067
7192
  createAd(input: $input) {
7068
7193
  data {
@@ -7073,7 +7198,7 @@ var CREATE_AD_MUTATION = import_client45.gql`
7073
7198
  }
7074
7199
  ${AD_FIELDS_FRAGMENT}
7075
7200
  `;
7076
- var UPDATE_AD_MUTATION = import_client45.gql`
7201
+ var UPDATE_AD_MUTATION = import_client46.gql`
7077
7202
  mutation updateAd($_id: ID!, $input: AdInputType!) {
7078
7203
  updateAd(_id: $_id, input: $input) {
7079
7204
  data {
@@ -7084,7 +7209,7 @@ var UPDATE_AD_MUTATION = import_client45.gql`
7084
7209
  }
7085
7210
  ${AD_FIELDS_FRAGMENT}
7086
7211
  `;
7087
- var DELETE_AD_MUTATION = import_client45.gql`
7212
+ var DELETE_AD_MUTATION = import_client46.gql`
7088
7213
  mutation deleteAd($_id: ID!) {
7089
7214
  deleteAd(_id: $_id) {
7090
7215
  data
@@ -7095,7 +7220,7 @@ var DELETE_AD_MUTATION = import_client45.gql`
7095
7220
 
7096
7221
  // src/graphql/hooks/ad/hooksMutation.ts
7097
7222
  var useCreateAd = () => {
7098
- const [createAd, { loading, error }] = (0, import_client46.useMutation)(CREATE_AD_MUTATION, {
7223
+ const [createAd, { loading, error }] = (0, import_client47.useMutation)(CREATE_AD_MUTATION, {
7099
7224
  awaitRefetchQueries: true,
7100
7225
  refetchQueries: [{ query: GET_ADS }]
7101
7226
  });
@@ -7106,7 +7231,7 @@ var useCreateAd = () => {
7106
7231
  };
7107
7232
  };
7108
7233
  var useUpdateAd = () => {
7109
- const [updateAd, { loading, error }] = (0, import_client46.useMutation)(UPDATE_AD_MUTATION, {
7234
+ const [updateAd, { loading, error }] = (0, import_client47.useMutation)(UPDATE_AD_MUTATION, {
7110
7235
  awaitRefetchQueries: true,
7111
7236
  refetchQueries: [{ query: GET_ADS }]
7112
7237
  });
@@ -7117,7 +7242,7 @@ var useUpdateAd = () => {
7117
7242
  };
7118
7243
  };
7119
7244
  var useDeleteAd = () => {
7120
- const [deleteAd, { loading, error }] = (0, import_client46.useMutation)(DELETE_AD_MUTATION, {
7245
+ const [deleteAd, { loading, error }] = (0, import_client47.useMutation)(DELETE_AD_MUTATION, {
7121
7246
  awaitRefetchQueries: true,
7122
7247
  refetchQueries: [{ query: GET_ADS }]
7123
7248
  });
@@ -7129,9 +7254,9 @@ var useDeleteAd = () => {
7129
7254
  };
7130
7255
 
7131
7256
  // src/graphql/hooks/ad/hooksQuery.ts
7132
- var import_client47 = require("@apollo/client");
7257
+ var import_client48 = require("@apollo/client");
7133
7258
  var useGetAds = () => {
7134
- const { data, loading, error, refetch } = (0, import_client47.useQuery)(
7259
+ const { data, loading, error, refetch } = (0, import_client48.useQuery)(
7135
7260
  GET_ADS,
7136
7261
  {
7137
7262
  fetchPolicy: "no-cache"
@@ -7145,7 +7270,7 @@ var useGetAds = () => {
7145
7270
  };
7146
7271
  };
7147
7272
  var useGetAd = (_id) => {
7148
- const { data, loading, error, refetch } = (0, import_client47.useQuery)(GET_AD, {
7273
+ const { data, loading, error, refetch } = (0, import_client48.useQuery)(GET_AD, {
7149
7274
  fetchPolicy: "no-cache",
7150
7275
  skip: !_id || _id === "",
7151
7276
  variables: { _id }
@@ -7158,7 +7283,7 @@ var useGetAd = (_id) => {
7158
7283
  };
7159
7284
  };
7160
7285
  var useGetAdsByRegion = (region, status) => {
7161
- const { data, loading, error, refetch } = (0, import_client47.useQuery)(GET_ADS_BY_REGION, {
7286
+ const { data, loading, error, refetch } = (0, import_client48.useQuery)(GET_ADS_BY_REGION, {
7162
7287
  fetchPolicy: "no-cache",
7163
7288
  skip: !region || region === "",
7164
7289
  variables: { region, status }
@@ -7172,11 +7297,11 @@ var useGetAdsByRegion = (region, status) => {
7172
7297
  };
7173
7298
 
7174
7299
  // src/graphql/hooks/resourceActivities/hooksMutation.ts
7175
- var import_client49 = require("@apollo/client");
7300
+ var import_client50 = require("@apollo/client");
7176
7301
 
7177
7302
  // src/graphql/mutations/resourceActivities.ts
7178
- var import_client48 = require("@apollo/client");
7179
- var CREATE_RESOURCE_ACTIVITY_MUTATION = import_client48.gql`
7303
+ var import_client49 = require("@apollo/client");
7304
+ var CREATE_RESOURCE_ACTIVITY_MUTATION = import_client49.gql`
7180
7305
  mutation createResourceActivity($input: ResourceActivityInputType!) {
7181
7306
  createResourceActivity(input: $input) {
7182
7307
  data
@@ -7187,16 +7312,16 @@ var CREATE_RESOURCE_ACTIVITY_MUTATION = import_client48.gql`
7187
7312
 
7188
7313
  // src/graphql/hooks/resourceActivities/hooksMutation.ts
7189
7314
  var useCreateResourceActivity = () => {
7190
- const [createResourceActivity, { loading, error }] = (0, import_client49.useMutation)(CREATE_RESOURCE_ACTIVITY_MUTATION);
7315
+ const [createResourceActivity, { loading, error }] = (0, import_client50.useMutation)(CREATE_RESOURCE_ACTIVITY_MUTATION);
7191
7316
  return { createResourceActivity, error, loading };
7192
7317
  };
7193
7318
 
7194
7319
  // src/graphql/hooks/resourceActivities/hooksQuery.ts
7195
- var import_client51 = require("@apollo/client");
7320
+ var import_client52 = require("@apollo/client");
7196
7321
 
7197
7322
  // src/graphql/queries/resourceActivities.ts
7198
- var import_client50 = require("@apollo/client");
7199
- var RESOURCE_ACTIVITY_FIELDS_FRAGMENT = import_client50.gql`
7323
+ var import_client51 = require("@apollo/client");
7324
+ var RESOURCE_ACTIVITY_FIELDS_FRAGMENT = import_client51.gql`
7200
7325
  fragment ResourceActivityFields on ResourceActivityType {
7201
7326
  resourceId
7202
7327
  resourceType
@@ -7215,7 +7340,7 @@ var RESOURCE_ACTIVITY_FIELDS_FRAGMENT = import_client50.gql`
7215
7340
  }
7216
7341
  ${LOCATION_GEO_FIELDS_FRAGMENT}
7217
7342
  `;
7218
- var GET_RESOURCE_ACTIVITY = import_client50.gql`
7343
+ var GET_RESOURCE_ACTIVITY = import_client51.gql`
7219
7344
  query getResourceActivity(
7220
7345
  $resourceType: ResourceTypeEnum!
7221
7346
  $resourceId: ID!
@@ -7229,7 +7354,7 @@ var GET_RESOURCE_ACTIVITY = import_client50.gql`
7229
7354
 
7230
7355
  // src/graphql/hooks/resourceActivities/hooksQuery.ts
7231
7356
  var useGetResourceActivity = (resourceId, resourceType) => {
7232
- const { data, loading, error, refetch } = (0, import_client51.useQuery)(GET_RESOURCE_ACTIVITY, {
7357
+ const { data, loading, error, refetch } = (0, import_client52.useQuery)(GET_RESOURCE_ACTIVITY, {
7233
7358
  fetchPolicy: "network-only",
7234
7359
  variables: { resourceId, resourceType }
7235
7360
  });
@@ -7242,11 +7367,11 @@ var useGetResourceActivity = (resourceId, resourceType) => {
7242
7367
  };
7243
7368
 
7244
7369
  // src/graphql/hooks/stripe/hooksMutation.ts
7245
- var import_client53 = require("@apollo/client");
7370
+ var import_client54 = require("@apollo/client");
7246
7371
 
7247
7372
  // src/graphql/mutations/stripe.ts
7248
- var import_client52 = require("@apollo/client");
7249
- var CREATE_CHECKOUT_SESSION_MUTATION = import_client52.gql`
7373
+ var import_client53 = require("@apollo/client");
7374
+ var CREATE_CHECKOUT_SESSION_MUTATION = import_client53.gql`
7250
7375
  mutation createCheckoutSession(
7251
7376
  $planId: LicencesEnumType!
7252
7377
  $billingPeriod: BillingPeriodEnumType
@@ -7260,7 +7385,7 @@ var CREATE_CHECKOUT_SESSION_MUTATION = import_client52.gql`
7260
7385
  }
7261
7386
  }
7262
7387
  `;
7263
- var CANCEL_SUBSCRIPTION_MUTATION = import_client52.gql`
7388
+ var CANCEL_SUBSCRIPTION_MUTATION = import_client53.gql`
7264
7389
  mutation cancelSubscription {
7265
7390
  cancelSubscription {
7266
7391
  data
@@ -7268,7 +7393,7 @@ var CANCEL_SUBSCRIPTION_MUTATION = import_client52.gql`
7268
7393
  }
7269
7394
  }
7270
7395
  `;
7271
- var UPDATE_SUBSCRIPTION_PLAN_MUTATION = import_client52.gql`
7396
+ var UPDATE_SUBSCRIPTION_PLAN_MUTATION = import_client53.gql`
7272
7397
  mutation updateSubscriptionPlan(
7273
7398
  $newPlanId: LicencesEnumType!
7274
7399
  $billingPeriod: BillingPeriodEnumType
@@ -7287,7 +7412,7 @@ var UPDATE_SUBSCRIPTION_PLAN_MUTATION = import_client52.gql`
7287
7412
  }
7288
7413
  }
7289
7414
  `;
7290
- var CREATE_CUSTOMER_PORTAL = import_client52.gql`
7415
+ var CREATE_CUSTOMER_PORTAL = import_client53.gql`
7291
7416
  mutation createCustomerPortal($returnUrl: String) {
7292
7417
  createCustomerPortal(returnUrl: $returnUrl) {
7293
7418
  data {
@@ -7297,7 +7422,7 @@ var CREATE_CUSTOMER_PORTAL = import_client52.gql`
7297
7422
  }
7298
7423
  }
7299
7424
  `;
7300
- var SELECT_PACKAGE_MUTATION = import_client52.gql`
7425
+ var SELECT_PACKAGE_MUTATION = import_client53.gql`
7301
7426
  mutation selectPackage(
7302
7427
  $billingPeriod: BillingPeriodEnumType
7303
7428
  $selectedLicence: LicencesEnumType!
@@ -7323,23 +7448,23 @@ var SELECT_PACKAGE_MUTATION = import_client52.gql`
7323
7448
 
7324
7449
  // src/graphql/hooks/stripe/hooksMutation.ts
7325
7450
  var useCreateCheckoutSession = () => {
7326
- const [createCheckoutSession, { loading, error }] = (0, import_client53.useMutation)(CREATE_CHECKOUT_SESSION_MUTATION);
7451
+ const [createCheckoutSession, { loading, error }] = (0, import_client54.useMutation)(CREATE_CHECKOUT_SESSION_MUTATION);
7327
7452
  return { createCheckoutSession, error, loading };
7328
7453
  };
7329
7454
  var useCancelSubscription = () => {
7330
- const [cancelSubscription, { loading, error }] = (0, import_client53.useMutation)(CANCEL_SUBSCRIPTION_MUTATION);
7455
+ const [cancelSubscription, { loading, error }] = (0, import_client54.useMutation)(CANCEL_SUBSCRIPTION_MUTATION);
7331
7456
  return { cancelSubscription, error, loading };
7332
7457
  };
7333
7458
  var useUpdateSubscriptionPlan = () => {
7334
- const [updateSubscriptionPlan, { loading, error }] = (0, import_client53.useMutation)(UPDATE_SUBSCRIPTION_PLAN_MUTATION);
7459
+ const [updateSubscriptionPlan, { loading, error }] = (0, import_client54.useMutation)(UPDATE_SUBSCRIPTION_PLAN_MUTATION);
7335
7460
  return { error, loading, updateSubscriptionPlan };
7336
7461
  };
7337
7462
  var useCreateCustomerPortal = () => {
7338
- const [createCustomerPortal, { loading, error }] = (0, import_client53.useMutation)(CREATE_CUSTOMER_PORTAL);
7463
+ const [createCustomerPortal, { loading, error }] = (0, import_client54.useMutation)(CREATE_CUSTOMER_PORTAL);
7339
7464
  return { createCustomerPortal, error, loading };
7340
7465
  };
7341
7466
  var useSelectPackage = () => {
7342
- const [selectPackage, { loading, error }] = (0, import_client53.useMutation)(SELECT_PACKAGE_MUTATION, {
7467
+ const [selectPackage, { loading, error }] = (0, import_client54.useMutation)(SELECT_PACKAGE_MUTATION, {
7343
7468
  awaitRefetchQueries: true,
7344
7469
  refetchQueries: (mutationResult) => {
7345
7470
  const userId = mutationResult?.data?.selectPackage?.data?.userId;
@@ -7355,11 +7480,11 @@ var useSelectPackage = () => {
7355
7480
  };
7356
7481
 
7357
7482
  // src/graphql/hooks/stripe/hooksQuery.ts
7358
- var import_client55 = require("@apollo/client");
7483
+ var import_client56 = require("@apollo/client");
7359
7484
 
7360
7485
  // src/graphql/queries/stripe.ts
7361
- var import_client54 = require("@apollo/client");
7362
- var GET_SUBSCRIPTION_STATUS = import_client54.gql`
7486
+ var import_client55 = require("@apollo/client");
7487
+ var GET_SUBSCRIPTION_STATUS = import_client55.gql`
7363
7488
  query getSubscriptionStatus {
7364
7489
  getSubscriptionStatus {
7365
7490
  subscriptionId
@@ -7369,7 +7494,7 @@ var GET_SUBSCRIPTION_STATUS = import_client54.gql`
7369
7494
  }
7370
7495
  }
7371
7496
  `;
7372
- var GET_SUBSCRIPTION_PLANS = import_client54.gql`
7497
+ var GET_SUBSCRIPTION_PLANS = import_client55.gql`
7373
7498
  query getSubscriptionPlans {
7374
7499
  getSubscriptionPlans {
7375
7500
  plans {
@@ -7400,7 +7525,7 @@ var GET_SUBSCRIPTION_PLANS = import_client54.gql`
7400
7525
 
7401
7526
  // src/graphql/hooks/stripe/hooksQuery.ts
7402
7527
  var useGetSubscriptionStatus = () => {
7403
- const { data, loading, error, refetch } = (0, import_client55.useQuery)(GET_SUBSCRIPTION_STATUS);
7528
+ const { data, loading, error, refetch } = (0, import_client56.useQuery)(GET_SUBSCRIPTION_STATUS);
7404
7529
  return {
7405
7530
  data: data?.getSubscriptionStatus,
7406
7531
  error,
@@ -7409,7 +7534,7 @@ var useGetSubscriptionStatus = () => {
7409
7534
  };
7410
7535
  };
7411
7536
  var useGetSubscriptionPlans = () => {
7412
- const { data, loading, error, refetch } = (0, import_client55.useQuery)(GET_SUBSCRIPTION_PLANS);
7537
+ const { data, loading, error, refetch } = (0, import_client56.useQuery)(GET_SUBSCRIPTION_PLANS);
7413
7538
  return {
7414
7539
  data: data?.getSubscriptionPlans,
7415
7540
  error,
@@ -7419,11 +7544,11 @@ var useGetSubscriptionPlans = () => {
7419
7544
  };
7420
7545
 
7421
7546
  // src/graphql/hooks/partner/hooksMutation.ts
7422
- var import_client57 = require("@apollo/client");
7547
+ var import_client58 = require("@apollo/client");
7423
7548
 
7424
7549
  // src/graphql/mutations/partner.ts
7425
- var import_client56 = require("@apollo/client");
7426
- var CREATE_PARTNER_MUTATION = import_client56.gql`
7550
+ var import_client57 = require("@apollo/client");
7551
+ var CREATE_PARTNER_MUTATION = import_client57.gql`
7427
7552
  mutation createPartner($input: PartnerInputType!) {
7428
7553
  createPartner(input: $input) {
7429
7554
  data {
@@ -7434,7 +7559,7 @@ var CREATE_PARTNER_MUTATION = import_client56.gql`
7434
7559
  }
7435
7560
  ${PARTNER}
7436
7561
  `;
7437
- var UPDATE_PARTNER_MUTATION = import_client56.gql`
7562
+ var UPDATE_PARTNER_MUTATION = import_client57.gql`
7438
7563
  mutation updatePartner($_id: ID!, $input: PartnerInputType!) {
7439
7564
  updatePartner(_id: $_id, input: $input) {
7440
7565
  data {
@@ -7445,7 +7570,7 @@ var UPDATE_PARTNER_MUTATION = import_client56.gql`
7445
7570
  }
7446
7571
  ${PARTNER}
7447
7572
  `;
7448
- var DELETE_PARTNER_MUTATION = import_client56.gql`
7573
+ var DELETE_PARTNER_MUTATION = import_client57.gql`
7449
7574
  mutation deletePartner($_id: ID!) {
7450
7575
  deletePartner(_id: $_id) {
7451
7576
  data
@@ -7456,21 +7581,21 @@ var DELETE_PARTNER_MUTATION = import_client56.gql`
7456
7581
 
7457
7582
  // src/graphql/hooks/partner/hooksMutation.ts
7458
7583
  var useCreatePartner = () => {
7459
- const [createPartner, { loading, error }] = (0, import_client57.useMutation)(CREATE_PARTNER_MUTATION, {
7584
+ const [createPartner, { loading, error }] = (0, import_client58.useMutation)(CREATE_PARTNER_MUTATION, {
7460
7585
  awaitRefetchQueries: true,
7461
7586
  refetchQueries: [{ query: GET_USER_PARTNERS }]
7462
7587
  });
7463
7588
  return { createPartner, error, loading };
7464
7589
  };
7465
7590
  var useUpdatePartner = () => {
7466
- const [updatePartner, { loading, error }] = (0, import_client57.useMutation)(UPDATE_PARTNER_MUTATION, {
7591
+ const [updatePartner, { loading, error }] = (0, import_client58.useMutation)(UPDATE_PARTNER_MUTATION, {
7467
7592
  awaitRefetchQueries: true,
7468
7593
  refetchQueries: [{ query: GET_USER_PARTNERS }]
7469
7594
  });
7470
7595
  return { error, loading, updatePartner };
7471
7596
  };
7472
7597
  var useDeletePartner = () => {
7473
- const [deletePartner, { loading, error }] = (0, import_client57.useMutation)(DELETE_PARTNER_MUTATION, {
7598
+ const [deletePartner, { loading, error }] = (0, import_client58.useMutation)(DELETE_PARTNER_MUTATION, {
7474
7599
  awaitRefetchQueries: true,
7475
7600
  refetchQueries: [{ query: GET_USER_PARTNERS }]
7476
7601
  });
@@ -7478,9 +7603,9 @@ var useDeletePartner = () => {
7478
7603
  };
7479
7604
 
7480
7605
  // src/graphql/hooks/partner/hooksQuery.ts
7481
- var import_client58 = require("@apollo/client");
7606
+ var import_client59 = require("@apollo/client");
7482
7607
  var useGetPartners = () => {
7483
- const { loading, error, data, refetch } = (0, import_client58.useQuery)(GET_PARTNERS, {
7608
+ const { loading, error, data, refetch } = (0, import_client59.useQuery)(GET_PARTNERS, {
7484
7609
  fetchPolicy: "network-only"
7485
7610
  });
7486
7611
  const partners = data?.partners || [];
@@ -7492,7 +7617,7 @@ var useGetPartners = () => {
7492
7617
  };
7493
7618
  };
7494
7619
  var useGetPartner = (_id) => {
7495
- const { loading, error, data, refetch } = (0, import_client58.useQuery)(
7620
+ const { loading, error, data, refetch } = (0, import_client59.useQuery)(
7496
7621
  GET_PARTNER,
7497
7622
  {
7498
7623
  fetchPolicy: "network-only",
@@ -7508,7 +7633,7 @@ var useGetPartnersByRegion = (region, options) => {
7508
7633
  options,
7509
7634
  region
7510
7635
  };
7511
- const { loading, error, data, refetch, fetchMore } = (0, import_client58.useQuery)(GET_PARTNERS_BY_REGION, {
7636
+ const { loading, error, data, refetch, fetchMore } = (0, import_client59.useQuery)(GET_PARTNERS_BY_REGION, {
7512
7637
  fetchPolicy: "network-only",
7513
7638
  variables
7514
7639
  });
@@ -7522,7 +7647,7 @@ var useGetPartnersByRegion = (region, options) => {
7522
7647
  };
7523
7648
  };
7524
7649
  var useSearchPartners = (search, region) => {
7525
- const { loading, error, data, refetch } = (0, import_client58.useQuery)(SEARCH_PARTNERS, {
7650
+ const { loading, error, data, refetch } = (0, import_client59.useQuery)(SEARCH_PARTNERS, {
7526
7651
  fetchPolicy: "network-only",
7527
7652
  skip: search.length < 3,
7528
7653
  variables: { region, search }
@@ -7532,11 +7657,11 @@ var useSearchPartners = (search, region) => {
7532
7657
  };
7533
7658
 
7534
7659
  // src/graphql/hooks/post/hooksMutation.ts
7535
- var import_client60 = require("@apollo/client");
7660
+ var import_client61 = require("@apollo/client");
7536
7661
 
7537
7662
  // src/graphql/mutations/post.ts
7538
- var import_client59 = require("@apollo/client");
7539
- var CREATE_POST_MUTATION = import_client59.gql`
7663
+ var import_client60 = require("@apollo/client");
7664
+ var CREATE_POST_MUTATION = import_client60.gql`
7540
7665
  mutation createPost($input: PostInputType!) {
7541
7666
  createPost(input: $input) {
7542
7667
  data {
@@ -7547,7 +7672,7 @@ var CREATE_POST_MUTATION = import_client59.gql`
7547
7672
  }
7548
7673
  ${POST_FIELDS_FRAGMENT}
7549
7674
  `;
7550
- var UPDATE_POST_MUTATION = import_client59.gql`
7675
+ var UPDATE_POST_MUTATION = import_client60.gql`
7551
7676
  mutation updatePost($_id: ID!, $input: PostInputType!) {
7552
7677
  updatePost(_id: $_id, input: $input) {
7553
7678
  data {
@@ -7558,7 +7683,7 @@ var UPDATE_POST_MUTATION = import_client59.gql`
7558
7683
  }
7559
7684
  ${POST_FIELDS_FRAGMENT}
7560
7685
  `;
7561
- var DELETE_POST_MUTATION = import_client59.gql`
7686
+ var DELETE_POST_MUTATION = import_client60.gql`
7562
7687
  mutation deletePost($_id: ID!) {
7563
7688
  deletePost(_id: $_id) {
7564
7689
  data
@@ -7569,21 +7694,21 @@ var DELETE_POST_MUTATION = import_client59.gql`
7569
7694
 
7570
7695
  // src/graphql/hooks/post/hooksMutation.ts
7571
7696
  var useCreatePost = () => {
7572
- const [createPost, { loading, error }] = (0, import_client60.useMutation)(CREATE_POST_MUTATION, {
7697
+ const [createPost, { loading, error }] = (0, import_client61.useMutation)(CREATE_POST_MUTATION, {
7573
7698
  awaitRefetchQueries: true,
7574
7699
  refetchQueries: [{ query: GET_POSTS }]
7575
7700
  });
7576
7701
  return { createPost, error, loading };
7577
7702
  };
7578
7703
  var useUpdatePost = () => {
7579
- const [updatePost, { loading, error }] = (0, import_client60.useMutation)(UPDATE_POST_MUTATION, {
7704
+ const [updatePost, { loading, error }] = (0, import_client61.useMutation)(UPDATE_POST_MUTATION, {
7580
7705
  awaitRefetchQueries: true,
7581
7706
  refetchQueries: [{ query: GET_POSTS }]
7582
7707
  });
7583
7708
  return { error, loading, updatePost };
7584
7709
  };
7585
7710
  var useDeletePost = () => {
7586
- const [deletePost, { loading, error }] = (0, import_client60.useMutation)(DELETE_POST_MUTATION, {
7711
+ const [deletePost, { loading, error }] = (0, import_client61.useMutation)(DELETE_POST_MUTATION, {
7587
7712
  awaitRefetchQueries: true,
7588
7713
  refetchQueries: [{ query: GET_POSTS }]
7589
7714
  });
@@ -7591,15 +7716,15 @@ var useDeletePost = () => {
7591
7716
  };
7592
7717
 
7593
7718
  // src/graphql/hooks/post/hooksQuery.ts
7594
- var import_client61 = require("@apollo/client");
7719
+ var import_client62 = require("@apollo/client");
7595
7720
  var useGetPosts = () => {
7596
- const { data, loading, error, refetch } = (0, import_client61.useQuery)(GET_POSTS, {
7721
+ const { data, loading, error, refetch } = (0, import_client62.useQuery)(GET_POSTS, {
7597
7722
  fetchPolicy: "network-only"
7598
7723
  });
7599
7724
  return { error, loading, posts: data?.posts || [], refetch };
7600
7725
  };
7601
7726
  var useGetPost = (_id) => {
7602
- const { data, loading, error, refetch } = (0, import_client61.useQuery)(GET_POST, {
7727
+ const { data, loading, error, refetch } = (0, import_client62.useQuery)(GET_POST, {
7603
7728
  fetchPolicy: "network-only",
7604
7729
  skip: !_id || _id === "",
7605
7730
  variables: { _id }
@@ -7607,7 +7732,7 @@ var useGetPost = (_id) => {
7607
7732
  return { error, loading, post: data?.post, refetch };
7608
7733
  };
7609
7734
  var useGetPostsByType = (postType) => {
7610
- const { data, loading, error, refetch } = (0, import_client61.useQuery)(GET_POSTS_BY_TYPE, {
7735
+ const { data, loading, error, refetch } = (0, import_client62.useQuery)(GET_POSTS_BY_TYPE, {
7611
7736
  fetchPolicy: "network-only",
7612
7737
  skip: !postType,
7613
7738
  variables: { postType }
@@ -7616,11 +7741,11 @@ var useGetPostsByType = (postType) => {
7616
7741
  };
7617
7742
 
7618
7743
  // src/graphql/hooks/appSettings/hooksMutation.ts
7619
- var import_client64 = require("@apollo/client");
7744
+ var import_client65 = require("@apollo/client");
7620
7745
 
7621
7746
  // src/graphql/mutations/appSettings.ts
7622
- var import_client62 = require("@apollo/client");
7623
- var UPDATE_APP_SETTINGS_MUTATION = import_client62.gql`
7747
+ var import_client63 = require("@apollo/client");
7748
+ var UPDATE_APP_SETTINGS_MUTATION = import_client63.gql`
7624
7749
  mutation updateAppSettings($input: AppSettingsInputType!) {
7625
7750
  updateAppSettings(input: $input) {
7626
7751
  data
@@ -7628,7 +7753,7 @@ var UPDATE_APP_SETTINGS_MUTATION = import_client62.gql`
7628
7753
  }
7629
7754
  }
7630
7755
  `;
7631
- var CRAWL_GOOGLE_MARKETS_MUTATION = import_client62.gql`
7756
+ var CRAWL_GOOGLE_MARKETS_MUTATION = import_client63.gql`
7632
7757
  mutation crawlGoogleMarkets {
7633
7758
  crawlGoogleMarkets {
7634
7759
  data
@@ -7636,7 +7761,7 @@ var CRAWL_GOOGLE_MARKETS_MUTATION = import_client62.gql`
7636
7761
  }
7637
7762
  }
7638
7763
  `;
7639
- var UPDATE_GOOGLE_IMPORTED_MARKET_MUTATION = import_client62.gql`
7764
+ var UPDATE_GOOGLE_IMPORTED_MARKET_MUTATION = import_client63.gql`
7640
7765
  mutation updateGoogleImportedMarkets {
7641
7766
  updateGoogleImportedMarkets {
7642
7767
  data
@@ -7646,8 +7771,8 @@ var UPDATE_GOOGLE_IMPORTED_MARKET_MUTATION = import_client62.gql`
7646
7771
  `;
7647
7772
 
7648
7773
  // src/graphql/queries/appSettings.ts
7649
- var import_client63 = require("@apollo/client");
7650
- var APP_SETTINGS_FIELDS_FRAGMENT = import_client63.gql`
7774
+ var import_client64 = require("@apollo/client");
7775
+ var APP_SETTINGS_FIELDS_FRAGMENT = import_client64.gql`
7651
7776
  fragment AppSettingsFields on AppSettingsType {
7652
7777
  _id
7653
7778
  appVersion
@@ -7658,7 +7783,7 @@ var APP_SETTINGS_FIELDS_FRAGMENT = import_client63.gql`
7658
7783
  updatedAt
7659
7784
  }
7660
7785
  `;
7661
- var GET_APP_SETTINGS = import_client63.gql`
7786
+ var GET_APP_SETTINGS = import_client64.gql`
7662
7787
  query getAppSettings {
7663
7788
  appSettings {
7664
7789
  ...AppSettingsFields
@@ -7669,25 +7794,25 @@ var GET_APP_SETTINGS = import_client63.gql`
7669
7794
 
7670
7795
  // src/graphql/hooks/appSettings/hooksMutation.ts
7671
7796
  var useUpdateAppSettings = () => {
7672
- const [updateAppSettings, { loading, error }] = (0, import_client64.useMutation)(UPDATE_APP_SETTINGS_MUTATION, {
7797
+ const [updateAppSettings, { loading, error }] = (0, import_client65.useMutation)(UPDATE_APP_SETTINGS_MUTATION, {
7673
7798
  awaitRefetchQueries: true,
7674
7799
  refetchQueries: [{ query: GET_APP_SETTINGS }]
7675
7800
  });
7676
7801
  return { error, loading, updateAppSettings };
7677
7802
  };
7678
7803
  var useCrawlGoogleMarkets = () => {
7679
- const [crawlGoogleMarkets, { loading, error }] = (0, import_client64.useMutation)(CRAWL_GOOGLE_MARKETS_MUTATION);
7804
+ const [crawlGoogleMarkets, { loading, error }] = (0, import_client65.useMutation)(CRAWL_GOOGLE_MARKETS_MUTATION);
7680
7805
  return { crawlGoogleMarkets, error, loading };
7681
7806
  };
7682
7807
  var useUpdateGoogleImportedMarkets = () => {
7683
- const [updateGoogleImportedMarkets, { loading, error }] = (0, import_client64.useMutation)(UPDATE_GOOGLE_IMPORTED_MARKET_MUTATION);
7808
+ const [updateGoogleImportedMarkets, { loading, error }] = (0, import_client65.useMutation)(UPDATE_GOOGLE_IMPORTED_MARKET_MUTATION);
7684
7809
  return { error, loading, updateGoogleImportedMarkets };
7685
7810
  };
7686
7811
 
7687
7812
  // src/graphql/hooks/appSettings/hooksQuery.ts
7688
- var import_client65 = require("@apollo/client");
7813
+ var import_client66 = require("@apollo/client");
7689
7814
  var useGetAppSettings = () => {
7690
- const { loading, error, data, refetch } = (0, import_client65.useQuery)(GET_APP_SETTINGS, {
7815
+ const { loading, error, data, refetch } = (0, import_client66.useQuery)(GET_APP_SETTINGS, {
7691
7816
  fetchPolicy: "network-only"
7692
7817
  });
7693
7818
  const appSettings = data?.appSettings || null;
@@ -7695,14 +7820,14 @@ var useGetAppSettings = () => {
7695
7820
  };
7696
7821
 
7697
7822
  // src/graphql/hooks/game/hooksMutation.ts
7698
- var import_client68 = require("@apollo/client");
7823
+ var import_client69 = require("@apollo/client");
7699
7824
 
7700
7825
  // src/graphql/mutations/game.ts
7701
- var import_client67 = require("@apollo/client");
7826
+ var import_client68 = require("@apollo/client");
7702
7827
 
7703
7828
  // src/graphql/queries/game/game.ts
7704
- var import_client66 = require("@apollo/client");
7705
- var GAME_HISTORY_FIELDS_FRAGMENT = import_client66.gql`
7829
+ var import_client67 = require("@apollo/client");
7830
+ var GAME_HISTORY_FIELDS_FRAGMENT = import_client67.gql`
7706
7831
  fragment GameHistoryFields on GameHistoryType {
7707
7832
  createdAt
7708
7833
  gameDate {
@@ -7717,7 +7842,7 @@ var GAME_HISTORY_FIELDS_FRAGMENT = import_client66.gql`
7717
7842
  }
7718
7843
  ${GAME_DATE_FIELDS_FRAGMENT}
7719
7844
  `;
7720
- var GAME_DATA_FIELDS_FRAGMENT = import_client66.gql`
7845
+ var GAME_DATA_FIELDS_FRAGMENT = import_client67.gql`
7721
7846
  fragment GameDataFields on GameDataType {
7722
7847
  dailyClue {
7723
7848
  ...DailyClueGameDataFields
@@ -7732,7 +7857,7 @@ var GAME_DATA_FIELDS_FRAGMENT = import_client66.gql`
7732
7857
  ${DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT}
7733
7858
  ${PUZZLE_GAME_DATA_FIELDS_FRAGMENT}
7734
7859
  `;
7735
- var GAME_FIELDS_FRAGMENT = import_client66.gql`
7860
+ var GAME_FIELDS_FRAGMENT = import_client67.gql`
7736
7861
  fragment GameFields on GameType {
7737
7862
  _id
7738
7863
  active
@@ -7751,7 +7876,7 @@ var GAME_FIELDS_FRAGMENT = import_client66.gql`
7751
7876
  ${GAME_DATA_FIELDS_FRAGMENT}
7752
7877
  ${GAME_HISTORY_FIELDS_FRAGMENT}
7753
7878
  `;
7754
- var GAME_DOC_FIELDS_FRAGMENT = import_client66.gql`
7879
+ var GAME_DOC_FIELDS_FRAGMENT = import_client67.gql`
7755
7880
  fragment GameDocFields on GameDocType {
7756
7881
  _id
7757
7882
  active
@@ -7769,7 +7894,7 @@ var GAME_DOC_FIELDS_FRAGMENT = import_client66.gql`
7769
7894
  ${OWNER_FIELDS_FRAGMENT}
7770
7895
  ${GAME_FIELDS_FRAGMENT}
7771
7896
  `;
7772
- var GET_GAMES = import_client66.gql`
7897
+ var GET_GAMES = import_client67.gql`
7773
7898
  query getGames {
7774
7899
  games {
7775
7900
  ...GameDocFields
@@ -7777,7 +7902,7 @@ var GET_GAMES = import_client66.gql`
7777
7902
  }
7778
7903
  ${GAME_DOC_FIELDS_FRAGMENT}
7779
7904
  `;
7780
- var GET_GAME = import_client66.gql`
7905
+ var GET_GAME = import_client67.gql`
7781
7906
  query getGame($_id: ID) {
7782
7907
  game(_id: $_id) {
7783
7908
  ...GameDocFields
@@ -7785,7 +7910,7 @@ var GET_GAME = import_client66.gql`
7785
7910
  }
7786
7911
  ${GAME_DOC_FIELDS_FRAGMENT}
7787
7912
  `;
7788
- var GET_GAME_LEADERBOARD = import_client66.gql`
7913
+ var GET_GAME_LEADERBOARD = import_client67.gql`
7789
7914
  query getGameLeaderboard {
7790
7915
  gameLeaderboard {
7791
7916
  gameHistory {
@@ -7802,7 +7927,7 @@ var GET_GAME_LEADERBOARD = import_client66.gql`
7802
7927
  `;
7803
7928
 
7804
7929
  // src/graphql/mutations/game.ts
7805
- var START_GAME_MUTATION = import_client67.gql`
7930
+ var START_GAME_MUTATION = import_client68.gql`
7806
7931
  mutation startGame($input: BaseGameInputType!) {
7807
7932
  startGame(input: $input) {
7808
7933
  data {
@@ -7813,7 +7938,7 @@ var START_GAME_MUTATION = import_client67.gql`
7813
7938
  }
7814
7939
  ${GAME_DOC_FIELDS_FRAGMENT}
7815
7940
  `;
7816
- var LEAVE_GAME_MUTATION = import_client67.gql`
7941
+ var LEAVE_GAME_MUTATION = import_client68.gql`
7817
7942
  mutation leaveGame(
7818
7943
  $_id: ID!
7819
7944
  $gameType: GameTypeEnumType!
@@ -7825,7 +7950,7 @@ var LEAVE_GAME_MUTATION = import_client67.gql`
7825
7950
  }
7826
7951
  }
7827
7952
  `;
7828
- var UPDATE_DAILY_CLUE_MUTATION = import_client67.gql`
7953
+ var UPDATE_DAILY_CLUE_MUTATION = import_client68.gql`
7829
7954
  mutation updateDailyClueGame(
7830
7955
  $_id: ID!
7831
7956
  $foundLetter: String!
@@ -7846,7 +7971,7 @@ var UPDATE_DAILY_CLUE_MUTATION = import_client67.gql`
7846
7971
  }
7847
7972
  ${GAME_DOC_FIELDS_FRAGMENT}
7848
7973
  `;
7849
- var UPDATE_PUZZLE_GAME_MUTATION = import_client67.gql`
7974
+ var UPDATE_PUZZLE_GAME_MUTATION = import_client68.gql`
7850
7975
  mutation updatePuzzleGame(
7851
7976
  $_id: ID!
7852
7977
  $answeredQuestions: [PuzzleAnsweredQuestionInputType!]!
@@ -7870,7 +7995,7 @@ var UPDATE_PUZZLE_GAME_MUTATION = import_client67.gql`
7870
7995
 
7871
7996
  // src/graphql/hooks/game/hooksMutation.ts
7872
7997
  var useStartGame = () => {
7873
- const [startGame, { loading, error }] = (0, import_client68.useMutation)(START_GAME_MUTATION, {
7998
+ const [startGame, { loading, error }] = (0, import_client69.useMutation)(START_GAME_MUTATION, {
7874
7999
  awaitRefetchQueries: true,
7875
8000
  refetchQueries: (mutationResult) => {
7876
8001
  const gameId = mutationResult?.data?.startGame?.data?._id;
@@ -7893,7 +8018,7 @@ var useStartGame = () => {
7893
8018
  return { error, loading, startGame };
7894
8019
  };
7895
8020
  var useLeaveGame = () => {
7896
- const [leaveGame, { loading, error }] = (0, import_client68.useMutation)(LEAVE_GAME_MUTATION, {
8021
+ const [leaveGame, { loading, error }] = (0, import_client69.useMutation)(LEAVE_GAME_MUTATION, {
7897
8022
  awaitRefetchQueries: true,
7898
8023
  refetchQueries: [
7899
8024
  {
@@ -7904,7 +8029,7 @@ var useLeaveGame = () => {
7904
8029
  return { error, leaveGame, loading };
7905
8030
  };
7906
8031
  var useUpdateDailyClueGame = () => {
7907
- const [updateDailyClueGame, { loading, error }] = (0, import_client68.useMutation)(UPDATE_DAILY_CLUE_MUTATION, {
8032
+ const [updateDailyClueGame, { loading, error }] = (0, import_client69.useMutation)(UPDATE_DAILY_CLUE_MUTATION, {
7908
8033
  awaitRefetchQueries: true,
7909
8034
  refetchQueries: (mutationResult) => {
7910
8035
  const gameId = mutationResult?.data?.updateDailyClueGame?.data?._id;
@@ -7921,7 +8046,7 @@ var useUpdateDailyClueGame = () => {
7921
8046
  return { error, loading, updateDailyClueGame };
7922
8047
  };
7923
8048
  var useUpdatePuzzleGame = () => {
7924
- const [updatePuzzleGame, { loading, error }] = (0, import_client68.useMutation)(UPDATE_PUZZLE_GAME_MUTATION, {
8049
+ const [updatePuzzleGame, { loading, error }] = (0, import_client69.useMutation)(UPDATE_PUZZLE_GAME_MUTATION, {
7925
8050
  awaitRefetchQueries: true,
7926
8051
  refetchQueries: (mutationResult) => {
7927
8052
  const gameId = mutationResult?.data?.updatePuzzleGame?.data?._id;
@@ -7939,16 +8064,16 @@ var useUpdatePuzzleGame = () => {
7939
8064
  };
7940
8065
 
7941
8066
  // src/graphql/hooks/game/hooksQuery.ts
7942
- var import_client69 = require("@apollo/client");
8067
+ var import_client70 = require("@apollo/client");
7943
8068
  var useGetGames = () => {
7944
- const { loading, error, data, refetch } = (0, import_client69.useQuery)(GET_GAMES, {
8069
+ const { loading, error, data, refetch } = (0, import_client70.useQuery)(GET_GAMES, {
7945
8070
  fetchPolicy: "network-only"
7946
8071
  });
7947
8072
  const games = data?.games || [];
7948
8073
  return { error, games, loading, refetch };
7949
8074
  };
7950
8075
  var useGetGame = (_id) => {
7951
- const { loading, error, data, refetch } = (0, import_client69.useQuery)(GET_GAME, {
8076
+ const { loading, error, data, refetch } = (0, import_client70.useQuery)(GET_GAME, {
7952
8077
  fetchPolicy: "network-only",
7953
8078
  skip: !_id,
7954
8079
  variables: _id ? { _id } : void 0
@@ -7957,7 +8082,7 @@ var useGetGame = (_id) => {
7957
8082
  return { error, game, loading, refetch };
7958
8083
  };
7959
8084
  var useGetGameLeaderboard = () => {
7960
- const { loading, error, data, refetch } = (0, import_client69.useQuery)(GET_GAME_LEADERBOARD, {
8085
+ const { loading, error, data, refetch } = (0, import_client70.useQuery)(GET_GAME_LEADERBOARD, {
7961
8086
  fetchPolicy: "network-only"
7962
8087
  });
7963
8088
  const gameLeaderboard = data?.gameLeaderboard || [];
@@ -7965,14 +8090,14 @@ var useGetGameLeaderboard = () => {
7965
8090
  };
7966
8091
 
7967
8092
  // src/graphql/hooks/school/hooksMutation.ts
7968
- var import_client72 = require("@apollo/client");
8093
+ var import_client73 = require("@apollo/client");
7969
8094
 
7970
8095
  // src/graphql/mutations/school.ts
7971
- var import_client71 = require("@apollo/client");
8096
+ var import_client72 = require("@apollo/client");
7972
8097
 
7973
8098
  // src/graphql/queries/school.ts
7974
- var import_client70 = require("@apollo/client");
7975
- var SCHOOL_REGISTERED_USERS_FIELDS_FRAGMENT = import_client70.gql`
8099
+ var import_client71 = require("@apollo/client");
8100
+ var SCHOOL_REGISTERED_USERS_FIELDS_FRAGMENT = import_client71.gql`
7976
8101
  fragment SchoolRegisteredUsersFields on SchoolRegisteredUserType {
7977
8102
  _id
7978
8103
  active
@@ -7985,14 +8110,14 @@ var SCHOOL_REGISTERED_USERS_FIELDS_FRAGMENT = import_client70.gql`
7985
8110
  }
7986
8111
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
7987
8112
  `;
7988
- var SCHOOL_CAMPAIGN_FIELDS_FRAGMENT = import_client70.gql`
8113
+ var SCHOOL_CAMPAIGN_FIELDS_FRAGMENT = import_client71.gql`
7989
8114
  fragment SchoolCampaignFields on SchoolCampaignType {
7990
8115
  endDate
7991
8116
  name
7992
8117
  startDate
7993
8118
  }
7994
8119
  `;
7995
- var SCHOOL = import_client70.gql`
8120
+ var SCHOOL = import_client71.gql`
7996
8121
  fragment SchoolFields on SchoolType {
7997
8122
  _id
7998
8123
  active
@@ -8036,7 +8161,7 @@ var SCHOOL = import_client70.gql`
8036
8161
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
8037
8162
  ${SCHOOL_CAMPAIGN_FIELDS_FRAGMENT}
8038
8163
  `;
8039
- var GET_SCHOOL = import_client70.gql`
8164
+ var GET_SCHOOL = import_client71.gql`
8040
8165
  query getSchool($_id: ID!) {
8041
8166
  school(_id: $_id) {
8042
8167
  school {
@@ -8050,7 +8175,7 @@ var GET_SCHOOL = import_client70.gql`
8050
8175
  ${SCHOOL}
8051
8176
  ${SCHOOL_REGISTERED_USERS_FIELDS_FRAGMENT}
8052
8177
  `;
8053
- var GET_SCHOOLS = import_client70.gql`
8178
+ var GET_SCHOOLS = import_client71.gql`
8054
8179
  query getSchools {
8055
8180
  schools {
8056
8181
  ...SchoolFields
@@ -8060,7 +8185,7 @@ var GET_SCHOOLS = import_client70.gql`
8060
8185
  `;
8061
8186
 
8062
8187
  // src/graphql/mutations/school.ts
8063
- var CREATE_SCHOOL_MUTATION = import_client71.gql`
8188
+ var CREATE_SCHOOL_MUTATION = import_client72.gql`
8064
8189
  mutation createSchool($input: SchoolInputType!) {
8065
8190
  createSchool(input: $input) {
8066
8191
  data {
@@ -8071,7 +8196,7 @@ var CREATE_SCHOOL_MUTATION = import_client71.gql`
8071
8196
  }
8072
8197
  ${SCHOOL}
8073
8198
  `;
8074
- var UPDATE_SCHOOL_MUTATION = import_client71.gql`
8199
+ var UPDATE_SCHOOL_MUTATION = import_client72.gql`
8075
8200
  mutation updateSchool($_id: ID!, $input: SchoolInputType!) {
8076
8201
  updateSchool(_id: $_id, input: $input) {
8077
8202
  data {
@@ -8082,7 +8207,7 @@ var UPDATE_SCHOOL_MUTATION = import_client71.gql`
8082
8207
  }
8083
8208
  ${SCHOOL}
8084
8209
  `;
8085
- var DELETE_SCHOOL_MUTATION = import_client71.gql`
8210
+ var DELETE_SCHOOL_MUTATION = import_client72.gql`
8086
8211
  mutation deleteSchool($_id: ID!) {
8087
8212
  deleteSchool(_id: $_id) {
8088
8213
  data
@@ -8090,7 +8215,7 @@ var DELETE_SCHOOL_MUTATION = import_client71.gql`
8090
8215
  }
8091
8216
  }
8092
8217
  `;
8093
- var REQUEST_MARKETING_MATERIAL_MUTATION = import_client71.gql`
8218
+ var REQUEST_MARKETING_MATERIAL_MUTATION = import_client72.gql`
8094
8219
  mutation requestMarketingMaterial(
8095
8220
  $input: MarketingMaterialRequestInputType!
8096
8221
  ) {
@@ -8103,35 +8228,35 @@ var REQUEST_MARKETING_MATERIAL_MUTATION = import_client71.gql`
8103
8228
 
8104
8229
  // src/graphql/hooks/school/hooksMutation.ts
8105
8230
  var useCreateSchool = () => {
8106
- const [createSchool, { loading, error }] = (0, import_client72.useMutation)(CREATE_SCHOOL_MUTATION, {
8231
+ const [createSchool, { loading, error }] = (0, import_client73.useMutation)(CREATE_SCHOOL_MUTATION, {
8107
8232
  awaitRefetchQueries: true,
8108
8233
  refetchQueries: [{ query: GET_SCHOOLS }]
8109
8234
  });
8110
8235
  return { createSchool, error, loading };
8111
8236
  };
8112
8237
  var useUpdateSchool = () => {
8113
- const [updateSchool, { loading, error }] = (0, import_client72.useMutation)(UPDATE_SCHOOL_MUTATION, {
8238
+ const [updateSchool, { loading, error }] = (0, import_client73.useMutation)(UPDATE_SCHOOL_MUTATION, {
8114
8239
  awaitRefetchQueries: true,
8115
8240
  refetchQueries: [{ query: GET_SCHOOLS }]
8116
8241
  });
8117
8242
  return { error, loading, updateSchool };
8118
8243
  };
8119
8244
  var useDeleteSchool = () => {
8120
- const [deleteSchool, { loading, error }] = (0, import_client72.useMutation)(DELETE_SCHOOL_MUTATION, {
8245
+ const [deleteSchool, { loading, error }] = (0, import_client73.useMutation)(DELETE_SCHOOL_MUTATION, {
8121
8246
  awaitRefetchQueries: true,
8122
8247
  refetchQueries: [{ query: GET_SCHOOLS }]
8123
8248
  });
8124
8249
  return { deleteSchool, error, loading };
8125
8250
  };
8126
8251
  var useRequestMarketingMaterial = () => {
8127
- const [requestMarketingMaterial, { loading, error }] = (0, import_client72.useMutation)(REQUEST_MARKETING_MATERIAL_MUTATION);
8252
+ const [requestMarketingMaterial, { loading, error }] = (0, import_client73.useMutation)(REQUEST_MARKETING_MATERIAL_MUTATION);
8128
8253
  return { error, loading, requestMarketingMaterial };
8129
8254
  };
8130
8255
 
8131
8256
  // src/graphql/hooks/school/hooksQuery.ts
8132
- var import_client73 = require("@apollo/client");
8257
+ var import_client74 = require("@apollo/client");
8133
8258
  var useGetSchools = () => {
8134
- const { data, loading, error, refetch } = (0, import_client73.useQuery)(
8259
+ const { data, loading, error, refetch } = (0, import_client74.useQuery)(
8135
8260
  GET_SCHOOLS,
8136
8261
  {
8137
8262
  fetchPolicy: "network-only"
@@ -8145,7 +8270,7 @@ var useGetSchools = () => {
8145
8270
  };
8146
8271
  };
8147
8272
  var useGetSchool = (_id) => {
8148
- const { data, loading, error, refetch } = (0, import_client73.useQuery)(GET_SCHOOL, {
8273
+ const { data, loading, error, refetch } = (0, import_client74.useQuery)(GET_SCHOOL, {
8149
8274
  fetchPolicy: "network-only",
8150
8275
  skip: !_id,
8151
8276
  variables: { _id }
@@ -8159,11 +8284,11 @@ var useGetSchool = (_id) => {
8159
8284
  };
8160
8285
 
8161
8286
  // src/graphql/hooks/affiliate/hooksQuery.ts
8162
- var import_client75 = require("@apollo/client");
8287
+ var import_client76 = require("@apollo/client");
8163
8288
 
8164
8289
  // src/graphql/queries/affiliate.ts
8165
- var import_client74 = require("@apollo/client");
8166
- var AFFILIATE_REWARD_FIELDS_FRAGMENT = import_client74.gql`
8290
+ var import_client75 = require("@apollo/client");
8291
+ var AFFILIATE_REWARD_FIELDS_FRAGMENT = import_client75.gql`
8167
8292
  fragment AffiliateRewardFields on AffiliateRewardType {
8168
8293
  createdAt
8169
8294
  redeemedAt
@@ -8172,7 +8297,7 @@ var AFFILIATE_REWARD_FIELDS_FRAGMENT = import_client74.gql`
8172
8297
  rewardValue
8173
8298
  }
8174
8299
  `;
8175
- var AFFILIATE_RESOURCE_FIELDS_FRAGMENT = import_client74.gql`
8300
+ var AFFILIATE_RESOURCE_FIELDS_FRAGMENT = import_client75.gql`
8176
8301
  fragment AffiliateResourceFields on AffiliateResourceType {
8177
8302
  resourceActive
8178
8303
  resourceDeletedAt
@@ -8189,13 +8314,13 @@ var AFFILIATE_RESOURCE_FIELDS_FRAGMENT = import_client74.gql`
8189
8314
  ${AFFILIATE_REWARD_FIELDS_FRAGMENT}
8190
8315
  ${OWNER_FIELDS_FRAGMENT}
8191
8316
  `;
8192
- var AFFILIATE_BANK_ACCOUNT_DETAILS_FIELDS_FRAGMENT = import_client74.gql`
8317
+ var AFFILIATE_BANK_ACCOUNT_DETAILS_FIELDS_FRAGMENT = import_client75.gql`
8193
8318
  fragment AffiliateBankAccountDetailsFields on AffiliateBankAccountDetailsType {
8194
8319
  accountHolderName
8195
8320
  accountNumber
8196
8321
  }
8197
8322
  `;
8198
- var AFFILIATE_DETAILS_FIELDS_FRAGMENT = import_client74.gql`
8323
+ var AFFILIATE_DETAILS_FIELDS_FRAGMENT = import_client75.gql`
8199
8324
  fragment AffiliateDetailsFields on AffiliateDetailsType {
8200
8325
  bankAccountDetails {
8201
8326
  ...AffiliateBankAccountDetailsFields
@@ -8223,7 +8348,7 @@ var AFFILIATE_DETAILS_FIELDS_FRAGMENT = import_client74.gql`
8223
8348
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
8224
8349
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
8225
8350
  `;
8226
- var AFFILIATE_FIELDS_FRAGMENT = import_client74.gql`
8351
+ var AFFILIATE_FIELDS_FRAGMENT = import_client75.gql`
8227
8352
  fragment AffiliateFields on AffiliateType {
8228
8353
  _id
8229
8354
  active
@@ -8255,7 +8380,7 @@ var AFFILIATE_FIELDS_FRAGMENT = import_client74.gql`
8255
8380
  ${AFFILIATE_RESOURCE_FIELDS_FRAGMENT}
8256
8381
  ${OWNER_FIELDS_FRAGMENT}
8257
8382
  `;
8258
- var GET_AFFILIATE = import_client74.gql`
8383
+ var GET_AFFILIATE = import_client75.gql`
8259
8384
  query getAffiliate($_id: ID!) {
8260
8385
  affiliate(_id: $_id) {
8261
8386
  ...AffiliateFields
@@ -8263,7 +8388,7 @@ var GET_AFFILIATE = import_client74.gql`
8263
8388
  }
8264
8389
  ${AFFILIATE_FIELDS_FRAGMENT}
8265
8390
  `;
8266
- var GET_AFFILIATES = import_client74.gql`
8391
+ var GET_AFFILIATES = import_client75.gql`
8267
8392
  query getAffiliates {
8268
8393
  affiliates {
8269
8394
  ...AffiliateFields
@@ -8274,7 +8399,7 @@ var GET_AFFILIATES = import_client74.gql`
8274
8399
 
8275
8400
  // src/graphql/hooks/affiliate/hooksQuery.ts
8276
8401
  var useGetAffiliate = (_id) => {
8277
- const { data, loading, error, refetch } = (0, import_client75.useQuery)(GET_AFFILIATE, {
8402
+ const { data, loading, error, refetch } = (0, import_client76.useQuery)(GET_AFFILIATE, {
8278
8403
  fetchPolicy: "network-only",
8279
8404
  skip: !_id || _id === "",
8280
8405
  variables: { _id }
@@ -8288,7 +8413,7 @@ var useGetAffiliate = (_id) => {
8288
8413
  };
8289
8414
  };
8290
8415
  var useGetAffiliates = () => {
8291
- const { data, loading, error, refetch } = (0, import_client75.useQuery)(GET_AFFILIATES, {
8416
+ const { data, loading, error, refetch } = (0, import_client76.useQuery)(GET_AFFILIATES, {
8292
8417
  fetchPolicy: "network-only"
8293
8418
  });
8294
8419
  const affiliates = data?.affiliates || [];
@@ -8301,11 +8426,11 @@ var useGetAffiliates = () => {
8301
8426
  };
8302
8427
 
8303
8428
  // src/graphql/hooks/affiliate/hooksMutation.ts
8304
- var import_client77 = require("@apollo/client");
8429
+ var import_client78 = require("@apollo/client");
8305
8430
 
8306
8431
  // src/graphql/mutations/affiliate.ts
8307
- var import_client76 = require("@apollo/client");
8308
- var UPDATE_AFFILIATE_DETAILS_MUTATION = import_client76.gql`
8432
+ var import_client77 = require("@apollo/client");
8433
+ var UPDATE_AFFILIATE_DETAILS_MUTATION = import_client77.gql`
8309
8434
  mutation updateAffiliateDetails(
8310
8435
  $input: AffiliateDetailsInputType!
8311
8436
  $affiliateId: ID!
@@ -8319,7 +8444,7 @@ var UPDATE_AFFILIATE_DETAILS_MUTATION = import_client76.gql`
8319
8444
  }
8320
8445
  ${AFFILIATE_FIELDS_FRAGMENT}
8321
8446
  `;
8322
- var DELETE_AFFILIATE_MUTATION = import_client76.gql`
8447
+ var DELETE_AFFILIATE_MUTATION = import_client77.gql`
8323
8448
  mutation deleteAffiliate($_id: ID!) {
8324
8449
  deleteAffiliate(_id: $_id) {
8325
8450
  data
@@ -8327,7 +8452,7 @@ var DELETE_AFFILIATE_MUTATION = import_client76.gql`
8327
8452
  }
8328
8453
  }
8329
8454
  `;
8330
- var REDEEM_AFFILIATE_REWARD_MUTATION = import_client76.gql`
8455
+ var REDEEM_AFFILIATE_REWARD_MUTATION = import_client77.gql`
8331
8456
  mutation redeemAffiliateReward($affiliateId: ID!) {
8332
8457
  redeemAffiliateReward(affiliateId: $affiliateId) {
8333
8458
  data {
@@ -8338,7 +8463,7 @@ var REDEEM_AFFILIATE_REWARD_MUTATION = import_client76.gql`
8338
8463
  }
8339
8464
  ${AFFILIATE_FIELDS_FRAGMENT}
8340
8465
  `;
8341
- var ASSIGN_AFFILIATE_RESOURCE_REWARD_MUTATION = import_client76.gql`
8466
+ var ASSIGN_AFFILIATE_RESOURCE_REWARD_MUTATION = import_client77.gql`
8342
8467
  mutation assignAffiliateResourceReward(
8343
8468
  $affiliateId: ID!
8344
8469
  $resourceId: ID!
@@ -8359,7 +8484,7 @@ var ASSIGN_AFFILIATE_RESOURCE_REWARD_MUTATION = import_client76.gql`
8359
8484
  }
8360
8485
  ${AFFILIATE_FIELDS_FRAGMENT}
8361
8486
  `;
8362
- var ASSIGN_AFFILIATE_BONUS_REWARD_MUTATION = import_client76.gql`
8487
+ var ASSIGN_AFFILIATE_BONUS_REWARD_MUTATION = import_client77.gql`
8363
8488
  mutation assignAffiliateBonusReward(
8364
8489
  $affiliateId: ID!
8365
8490
  $rewardType: AffiliateRewardEnumType!
@@ -8379,7 +8504,7 @@ var ASSIGN_AFFILIATE_BONUS_REWARD_MUTATION = import_client76.gql`
8379
8504
 
8380
8505
  // src/graphql/hooks/affiliate/hooksMutation.ts
8381
8506
  var useUpdateAffiliateDetails = () => {
8382
- const [updateAffiliateDetails, { loading, error }] = (0, import_client77.useMutation)(UPDATE_AFFILIATE_DETAILS_MUTATION, {
8507
+ const [updateAffiliateDetails, { loading, error }] = (0, import_client78.useMutation)(UPDATE_AFFILIATE_DETAILS_MUTATION, {
8383
8508
  awaitRefetchQueries: true,
8384
8509
  refetchQueries: (mutationResult) => {
8385
8510
  const affiliateId = mutationResult?.data?.updateAffiliateDetails?.data?._id;
@@ -8390,14 +8515,14 @@ var useUpdateAffiliateDetails = () => {
8390
8515
  return { error, loading, updateAffiliateDetails };
8391
8516
  };
8392
8517
  var useDeleteAffiliate = () => {
8393
- const [deleteAffiliate, { loading, error }] = (0, import_client77.useMutation)(DELETE_AFFILIATE_MUTATION, {
8518
+ const [deleteAffiliate, { loading, error }] = (0, import_client78.useMutation)(DELETE_AFFILIATE_MUTATION, {
8394
8519
  awaitRefetchQueries: true,
8395
8520
  refetchQueries: [{ query: GET_AFFILIATES }]
8396
8521
  });
8397
8522
  return { deleteAffiliate, error, loading };
8398
8523
  };
8399
8524
  var useRedeemAffiliateReward = () => {
8400
- const [redeemAffiliateReward, { loading, error }] = (0, import_client77.useMutation)(REDEEM_AFFILIATE_REWARD_MUTATION, {
8525
+ const [redeemAffiliateReward, { loading, error }] = (0, import_client78.useMutation)(REDEEM_AFFILIATE_REWARD_MUTATION, {
8401
8526
  awaitRefetchQueries: true,
8402
8527
  refetchQueries: (mutationResult) => {
8403
8528
  const affiliateId = mutationResult?.data?.redeemAffiliateReward?.data?._id;
@@ -8408,7 +8533,7 @@ var useRedeemAffiliateReward = () => {
8408
8533
  return { error, loading, redeemAffiliateReward };
8409
8534
  };
8410
8535
  var useAssignAffiliateResourceReward = () => {
8411
- const [assignAffiliateResourceReward, { loading, error }] = (0, import_client77.useMutation)(ASSIGN_AFFILIATE_RESOURCE_REWARD_MUTATION, {
8536
+ const [assignAffiliateResourceReward, { loading, error }] = (0, import_client78.useMutation)(ASSIGN_AFFILIATE_RESOURCE_REWARD_MUTATION, {
8412
8537
  awaitRefetchQueries: true,
8413
8538
  refetchQueries: (mutationResult) => {
8414
8539
  const affiliateId = mutationResult?.data?.assignAffiliateResourceReward?.data?._id;
@@ -8419,7 +8544,7 @@ var useAssignAffiliateResourceReward = () => {
8419
8544
  return { assignAffiliateResourceReward, error, loading };
8420
8545
  };
8421
8546
  var useAssignAffiliateBonusReward = () => {
8422
- const [assignAffiliateBonusReward, { loading, error }] = (0, import_client77.useMutation)(ASSIGN_AFFILIATE_BONUS_REWARD_MUTATION, {
8547
+ const [assignAffiliateBonusReward, { loading, error }] = (0, import_client78.useMutation)(ASSIGN_AFFILIATE_BONUS_REWARD_MUTATION, {
8423
8548
  awaitRefetchQueries: true,
8424
8549
  refetchQueries: (mutationResult) => {
8425
8550
  const affiliateId = mutationResult?.data?.assignAffiliateBonusReward?.data?._id;
@@ -8435,84 +8560,6 @@ var import_client80 = require("@apollo/client");
8435
8560
 
8436
8561
  // src/graphql/mutations/coupon.ts
8437
8562
  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
8563
  var CREATE_COUPON_MUTATION = import_client79.gql`
8517
8564
  mutation createCoupon($input: CouponInputType!) {
8518
8565
  createCoupon(input: $input) {
@@ -9156,6 +9203,7 @@ function canAccessAdminPath(roles, pathname) {
9156
9203
  EnumBillingPeriod,
9157
9204
  EnumChatReportReason,
9158
9205
  EnumChatType,
9206
+ EnumCouponQualificationType,
9159
9207
  EnumEventDateStatus,
9160
9208
  EnumEventType,
9161
9209
  EnumFoodFlavor,
@@ -9278,7 +9326,7 @@ function canAccessAdminPath(roles, pathname) {
9278
9326
  computeDailyClueState,
9279
9327
  contactUsFields,
9280
9328
  createAffiliateReward,
9281
- createCouponTypeOption,
9329
+ createCouponDefaults,
9282
9330
  darkColors,
9283
9331
  dateFormat,
9284
9332
  emailField,