@timardex/cluemart-shared 2.0.7 → 2.0.8

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 (48) hide show
  1. package/dist/{ad-Cq1luH63.d.mts → ad-BFOGqBel.d.mts} +77 -2
  2. package/dist/{ad-C7_aLSAO.d.ts → ad-DEIR7iSl.d.ts} +77 -2
  3. package/dist/{affiliate-DKe3AD5n.d.mts → affiliate-BQ62c6SE.d.mts} +1 -1
  4. package/dist/{affiliate-zbXziTPJ.d.ts → affiliate-D7kf9GSr.d.ts} +1 -1
  5. package/dist/auth/index.cjs +3 -0
  6. package/dist/auth/index.cjs.map +1 -1
  7. package/dist/auth/index.d.mts +2 -2
  8. package/dist/auth/index.d.ts +2 -2
  9. package/dist/auth/index.mjs +1 -1
  10. package/dist/{chunk-5KOHAP3V.mjs → chunk-5VWHW2EM.mjs} +268 -91
  11. package/dist/chunk-5VWHW2EM.mjs.map +1 -0
  12. package/dist/{chunk-LMFBXRR7.mjs → chunk-ACCOACCV.mjs} +2 -2
  13. package/dist/{chunk-OUWKLNHZ.mjs → chunk-JOA6W4SP.mjs} +4 -1
  14. package/dist/chunk-JOA6W4SP.mjs.map +1 -0
  15. package/dist/{chunk-UUIAJ2D6.mjs → chunk-L45XTF3X.mjs} +41 -1
  16. package/dist/chunk-L45XTF3X.mjs.map +1 -0
  17. package/dist/formFields/index.mjs +2 -2
  18. package/dist/graphql/index.cjs +357 -164
  19. package/dist/graphql/index.cjs.map +1 -1
  20. package/dist/graphql/index.d.mts +19 -4
  21. package/dist/graphql/index.d.ts +19 -4
  22. package/dist/graphql/index.mjs +28 -2
  23. package/dist/hooks/index.cjs +278 -110
  24. package/dist/hooks/index.cjs.map +1 -1
  25. package/dist/hooks/index.d.mts +3 -3
  26. package/dist/hooks/index.d.ts +3 -3
  27. package/dist/hooks/index.mjs +4 -4
  28. package/dist/index.cjs +402 -164
  29. package/dist/index.cjs.map +1 -1
  30. package/dist/index.d.mts +97 -1
  31. package/dist/index.d.ts +97 -1
  32. package/dist/index.mjs +309 -89
  33. package/dist/index.mjs.map +1 -1
  34. package/dist/types/index.cjs +45 -0
  35. package/dist/types/index.cjs.map +1 -1
  36. package/dist/types/index.d.mts +3 -3
  37. package/dist/types/index.d.ts +3 -3
  38. package/dist/types/index.mjs +11 -1
  39. package/dist/{user-NPmlt_Zx.d.mts → user-CqrqqKv2.d.mts} +6 -0
  40. package/dist/{user-B6YLX1c5.d.ts → user-zrMQ2GDX.d.ts} +6 -0
  41. package/dist/utils/index.d.mts +2 -2
  42. package/dist/utils/index.d.ts +2 -2
  43. package/dist/utils/index.mjs +2 -2
  44. package/package.json +1 -1
  45. package/dist/chunk-5KOHAP3V.mjs.map +0 -1
  46. package/dist/chunk-OUWKLNHZ.mjs.map +0 -1
  47. package/dist/chunk-UUIAJ2D6.mjs.map +0 -1
  48. /package/dist/{chunk-LMFBXRR7.mjs.map → chunk-ACCOACCV.mjs.map} +0 -0
@@ -21,14 +21,24 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
21
21
  var graphql_exports = {};
22
22
  __export(graphql_exports, {
23
23
  ACTIVATE_VENDOR_CLAIM_MUTATION: () => ACTIVATE_VENDOR_CLAIM_MUTATION,
24
+ AD_BOOKING_FIELDS_FRAGMENT: () => AD_BOOKING_FIELDS_FRAGMENT,
25
+ APPROVE_AD_BOOKING_MUTATION: () => APPROVE_AD_BOOKING_MUTATION,
26
+ CLAIM_RESERVED_AD_DAY_MUTATION: () => CLAIM_RESERVED_AD_DAY_MUTATION,
27
+ CREATE_AD_CHECKOUT_MUTATION: () => CREATE_AD_CHECKOUT_MUTATION,
28
+ GET_AD_BOOKING: () => GET_AD_BOOKING,
29
+ GET_AD_DAILY_PRICES: () => GET_AD_DAILY_PRICES,
30
+ GET_AD_DAY_AVAILABILITY: () => GET_AD_DAY_AVAILABILITY,
31
+ GET_AD_SETTINGS: () => GET_AD_SETTINGS,
24
32
  GET_EVENT: () => GET_EVENT,
25
33
  GET_EVENTS: () => GET_EVENTS,
26
34
  GET_EVENT_BY_SLUG: () => GET_EVENT_BY_SLUG,
27
35
  GET_EVENT_INFO: () => GET_EVENT_INFO,
36
+ GET_MY_AD_BOOKINGS: () => GET_MY_AD_BOOKINGS,
28
37
  GET_OWNED_EVENT: () => GET_OWNED_EVENT,
29
38
  GET_PARTNER: () => GET_PARTNER,
30
39
  GET_PARTNERS: () => GET_PARTNERS,
31
40
  GET_PARTNER_BY_SLUG: () => GET_PARTNER_BY_SLUG,
41
+ GET_PENDING_AD_BOOKINGS: () => GET_PENDING_AD_BOOKINGS,
32
42
  GET_POST: () => GET_POST,
33
43
  GET_POSTS: () => GET_POSTS,
34
44
  GET_POSTS_BY_TYPE: () => GET_POSTS_BY_TYPE,
@@ -40,6 +50,9 @@ __export(graphql_exports, {
40
50
  GET_VENDOR_BY_SLUG: () => GET_VENDOR_BY_SLUG,
41
51
  GET_VENDOR_INFO: () => GET_VENDOR_INFO,
42
52
  MY_PENDING_VENDOR_CLAIM: () => MY_PENDING_VENDOR_CLAIM,
53
+ RECORD_AD_IMPRESSION_MUTATION: () => RECORD_AD_IMPRESSION_MUTATION,
54
+ UPDATE_AD_DAILY_PRICE_MUTATION: () => UPDATE_AD_DAILY_PRICE_MUTATION,
55
+ UPDATE_AD_SETTINGS_MUTATION: () => UPDATE_AD_SETTINGS_MUTATION,
43
56
  toGraphqlQueryString: () => toGraphqlQueryString,
44
57
  useActivateVendorClaim: () => useActivateVendorClaim,
45
58
  useAddParticipantToChat: () => useAddParticipantToChat,
@@ -352,6 +365,8 @@ var STRIPE_FIELDS_FRAGMENT = import_client.gql`
352
365
  currentPlan
353
366
  startDate
354
367
  endDate
368
+ paymentFailedAt
369
+ paymentGracePeriodEndsAt
355
370
  pendingPlan
356
371
  pendingBillingPeriod
357
372
  pendingChangeEffectiveAt
@@ -1513,6 +1528,7 @@ var GET_USER_RESOURCES = import_client9.gql`
1513
1528
  _id
1514
1529
  logo
1515
1530
  name
1531
+ region
1516
1532
  resourceType
1517
1533
  }
1518
1534
  }
@@ -3661,12 +3677,174 @@ var useGetAdsByRegion = (region, status) => {
3661
3677
  };
3662
3678
  };
3663
3679
 
3664
- // src/graphql/hooks/resourceActivities/hooksMutation.ts
3680
+ // src/graphql/queries/adBooking.ts
3681
+ var import_client48 = require("@apollo/client");
3682
+ var AD_BOOKING_FIELDS_FRAGMENT = import_client48.gql`
3683
+ fragment AdBookingFields on AdBookingGraphQLType {
3684
+ _id
3685
+ adId
3686
+ approvalStatus
3687
+ dayKey
3688
+ placement
3689
+ region
3690
+ resource {
3691
+ adDescription
3692
+ adImage
3693
+ adStyle
3694
+ adTitle
3695
+ adType
3696
+ resourceId
3697
+ resourceName
3698
+ resourceRegion
3699
+ resourceSlug
3700
+ resourceType
3701
+ }
3702
+ slotKind
3703
+ state
3704
+ stripeCheckoutSessionId
3705
+ unitAmount
3706
+ }
3707
+ `;
3708
+ var GET_AD_DAY_AVAILABILITY = import_client48.gql`
3709
+ query getAdDayAvailability(
3710
+ $region: String!
3711
+ $dayKey: String!
3712
+ $placement: AdShowOnEnum!
3713
+ ) {
3714
+ adDayAvailability(region: $region, dayKey: $dayKey, placement: $placement) {
3715
+ currency
3716
+ paidAvailable
3717
+ reservedAvailable
3718
+ unitAmount
3719
+ }
3720
+ }
3721
+ `;
3722
+ var GET_MY_AD_BOOKINGS = import_client48.gql`
3723
+ query getMyAdBookings {
3724
+ myAdBookings {
3725
+ ...AdBookingFields
3726
+ }
3727
+ }
3728
+ ${AD_BOOKING_FIELDS_FRAGMENT}
3729
+ `;
3730
+ var GET_AD_BOOKING = import_client48.gql`
3731
+ query getAdBooking($id: ID!) {
3732
+ adBooking(id: $id) {
3733
+ ...AdBookingFields
3734
+ }
3735
+ }
3736
+ ${AD_BOOKING_FIELDS_FRAGMENT}
3737
+ `;
3738
+ var GET_PENDING_AD_BOOKINGS = import_client48.gql`
3739
+ query getPendingAdBookings {
3740
+ pendingAdBookings {
3741
+ ...AdBookingFields
3742
+ }
3743
+ }
3744
+ ${AD_BOOKING_FIELDS_FRAGMENT}
3745
+ `;
3746
+ var GET_AD_DAILY_PRICES = import_client48.gql`
3747
+ query getAdDailyPrices {
3748
+ adDailyPrices {
3749
+ active
3750
+ currency
3751
+ key
3752
+ revision
3753
+ unitAmount
3754
+ }
3755
+ }
3756
+ `;
3757
+ var GET_AD_SETTINGS = import_client48.gql`
3758
+ query getAdSettings {
3759
+ adSettings {
3760
+ approvalRequired
3761
+ minAppearancesPerHour
3762
+ paidSlotsPerPlacement
3763
+ reservedSlotsPerPlacement
3764
+ rotationSeconds
3765
+ }
3766
+ }
3767
+ `;
3768
+
3769
+ // src/graphql/mutations/adBooking.ts
3665
3770
  var import_client49 = require("@apollo/client");
3771
+ var CREATE_AD_CHECKOUT_MUTATION = import_client49.gql`
3772
+ mutation createAdCheckout($input: CreateAdCheckoutInputGraphQLType!) {
3773
+ createAdCheckout(input: $input) {
3774
+ data {
3775
+ bookingId
3776
+ checkoutUrl
3777
+ sessionId
3778
+ }
3779
+ message
3780
+ }
3781
+ }
3782
+ `;
3783
+ var CLAIM_RESERVED_AD_DAY_MUTATION = import_client49.gql`
3784
+ mutation claimReservedAdDay($input: ClaimReservedAdDayInputType!) {
3785
+ claimReservedAdDay(input: $input) {
3786
+ data {
3787
+ ...AdBookingFields
3788
+ }
3789
+ message
3790
+ }
3791
+ }
3792
+ ${AD_BOOKING_FIELDS_FRAGMENT}
3793
+ `;
3794
+ var APPROVE_AD_BOOKING_MUTATION = import_client49.gql`
3795
+ mutation approveAdBooking($bookingId: ID!, $approved: Boolean!) {
3796
+ approveAdBooking(bookingId: $bookingId, approved: $approved) {
3797
+ data {
3798
+ ...AdBookingFields
3799
+ }
3800
+ message
3801
+ }
3802
+ }
3803
+ ${AD_BOOKING_FIELDS_FRAGMENT}
3804
+ `;
3805
+ var UPDATE_AD_DAILY_PRICE_MUTATION = import_client49.gql`
3806
+ mutation updateAdDailyPrice($input: UpdateAdDailyPriceInputGraphQLType!) {
3807
+ updateAdDailyPrice(input: $input) {
3808
+ data {
3809
+ active
3810
+ currency
3811
+ key
3812
+ revision
3813
+ unitAmount
3814
+ }
3815
+ message
3816
+ }
3817
+ }
3818
+ `;
3819
+ var UPDATE_AD_SETTINGS_MUTATION = import_client49.gql`
3820
+ mutation updateAdSettings($input: UpdateAdSettingsInputGraphQLType!) {
3821
+ updateAdSettings(input: $input) {
3822
+ data {
3823
+ approvalRequired
3824
+ minAppearancesPerHour
3825
+ paidSlotsPerPlacement
3826
+ reservedSlotsPerPlacement
3827
+ rotationSeconds
3828
+ }
3829
+ message
3830
+ }
3831
+ }
3832
+ `;
3833
+ var RECORD_AD_IMPRESSION_MUTATION = import_client49.gql`
3834
+ mutation recordAdImpression($input: RecordAdImpressionInputGraphQLType!) {
3835
+ recordAdImpression(input: $input) {
3836
+ data
3837
+ message
3838
+ }
3839
+ }
3840
+ `;
3841
+
3842
+ // src/graphql/hooks/resourceActivities/hooksMutation.ts
3843
+ var import_client51 = require("@apollo/client");
3666
3844
 
3667
3845
  // src/graphql/mutations/resourceActivities.ts
3668
- var import_client48 = require("@apollo/client");
3669
- var CREATE_RESOURCE_ACTIVITY_MUTATION = import_client48.gql`
3846
+ var import_client50 = require("@apollo/client");
3847
+ var CREATE_RESOURCE_ACTIVITY_MUTATION = import_client50.gql`
3670
3848
  mutation createResourceActivity($input: ResourceActivityInputType!) {
3671
3849
  createResourceActivity(input: $input) {
3672
3850
  data
@@ -3677,16 +3855,16 @@ var CREATE_RESOURCE_ACTIVITY_MUTATION = import_client48.gql`
3677
3855
 
3678
3856
  // src/graphql/hooks/resourceActivities/hooksMutation.ts
3679
3857
  var useCreateResourceActivity = () => {
3680
- const [createResourceActivity, { loading, error }] = (0, import_client49.useMutation)(CREATE_RESOURCE_ACTIVITY_MUTATION);
3858
+ const [createResourceActivity, { loading, error }] = (0, import_client51.useMutation)(CREATE_RESOURCE_ACTIVITY_MUTATION);
3681
3859
  return { createResourceActivity, error, loading };
3682
3860
  };
3683
3861
 
3684
3862
  // src/graphql/hooks/resourceActivities/hooksQuery.ts
3685
- var import_client51 = require("@apollo/client");
3863
+ var import_client53 = require("@apollo/client");
3686
3864
 
3687
3865
  // src/graphql/queries/resourceActivities.ts
3688
- var import_client50 = require("@apollo/client");
3689
- var RESOURCE_ACTIVITY_FIELDS_FRAGMENT = import_client50.gql`
3866
+ var import_client52 = require("@apollo/client");
3867
+ var RESOURCE_ACTIVITY_FIELDS_FRAGMENT = import_client52.gql`
3690
3868
  fragment ResourceActivityFields on ResourceActivityType {
3691
3869
  resourceId
3692
3870
  resourceType
@@ -3705,7 +3883,7 @@ var RESOURCE_ACTIVITY_FIELDS_FRAGMENT = import_client50.gql`
3705
3883
  }
3706
3884
  ${LOCATION_GEO_FIELDS_FRAGMENT}
3707
3885
  `;
3708
- var GET_RESOURCE_ACTIVITY = import_client50.gql`
3886
+ var GET_RESOURCE_ACTIVITY = import_client52.gql`
3709
3887
  query getResourceActivity(
3710
3888
  $resourceType: ResourceTypeEnum!
3711
3889
  $resourceId: ID!
@@ -3719,7 +3897,7 @@ var GET_RESOURCE_ACTIVITY = import_client50.gql`
3719
3897
 
3720
3898
  // src/graphql/hooks/resourceActivities/hooksQuery.ts
3721
3899
  var useGetResourceActivity = (resourceId, resourceType) => {
3722
- const { data, loading, error, refetch } = (0, import_client51.useQuery)(GET_RESOURCE_ACTIVITY, {
3900
+ const { data, loading, error, refetch } = (0, import_client53.useQuery)(GET_RESOURCE_ACTIVITY, {
3723
3901
  fetchPolicy: "network-only",
3724
3902
  variables: { resourceId, resourceType }
3725
3903
  });
@@ -3732,11 +3910,11 @@ var useGetResourceActivity = (resourceId, resourceType) => {
3732
3910
  };
3733
3911
 
3734
3912
  // src/graphql/hooks/stripe/hooksMutation.ts
3735
- var import_client53 = require("@apollo/client");
3913
+ var import_client55 = require("@apollo/client");
3736
3914
 
3737
3915
  // src/graphql/mutations/stripe.ts
3738
- var import_client52 = require("@apollo/client");
3739
- var CREATE_CHECKOUT_SESSION_MUTATION = import_client52.gql`
3916
+ var import_client54 = require("@apollo/client");
3917
+ var CREATE_CHECKOUT_SESSION_MUTATION = import_client54.gql`
3740
3918
  mutation createCheckoutSession($input: CreateCheckoutSessionInputType!) {
3741
3919
  createCheckoutSession(input: $input) {
3742
3920
  data {
@@ -3747,7 +3925,7 @@ var CREATE_CHECKOUT_SESSION_MUTATION = import_client52.gql`
3747
3925
  }
3748
3926
  }
3749
3927
  `;
3750
- var CANCEL_SUBSCRIPTION_MUTATION = import_client52.gql`
3928
+ var CANCEL_SUBSCRIPTION_MUTATION = import_client54.gql`
3751
3929
  mutation cancelSubscription {
3752
3930
  cancelSubscription {
3753
3931
  data {
@@ -3767,7 +3945,7 @@ var CANCEL_SUBSCRIPTION_MUTATION = import_client52.gql`
3767
3945
  }
3768
3946
  }
3769
3947
  `;
3770
- var UPDATE_SUBSCRIPTION_PLAN_MUTATION = import_client52.gql`
3948
+ var UPDATE_SUBSCRIPTION_PLAN_MUTATION = import_client54.gql`
3771
3949
  mutation updateSubscriptionPlan($input: UpdateSubscriptionPlanInputType!) {
3772
3950
  updateSubscriptionPlan(input: $input) {
3773
3951
  data {
@@ -3787,7 +3965,7 @@ var UPDATE_SUBSCRIPTION_PLAN_MUTATION = import_client52.gql`
3787
3965
  }
3788
3966
  }
3789
3967
  `;
3790
- var CREATE_CUSTOMER_PORTAL = import_client52.gql`
3968
+ var CREATE_CUSTOMER_PORTAL = import_client54.gql`
3791
3969
  mutation createCustomerPortal($returnUrl: String) {
3792
3970
  createCustomerPortal(returnUrl: $returnUrl) {
3793
3971
  data {
@@ -3800,34 +3978,36 @@ var CREATE_CUSTOMER_PORTAL = import_client52.gql`
3800
3978
 
3801
3979
  // src/graphql/hooks/stripe/hooksMutation.ts
3802
3980
  var useCreateCheckoutSession = () => {
3803
- const [createCheckoutSession, { loading, error }] = (0, import_client53.useMutation)(CREATE_CHECKOUT_SESSION_MUTATION);
3981
+ const [createCheckoutSession, { loading, error }] = (0, import_client55.useMutation)(CREATE_CHECKOUT_SESSION_MUTATION);
3804
3982
  return { createCheckoutSession, error, loading };
3805
3983
  };
3806
3984
  var useCancelSubscription = () => {
3807
- const [cancelSubscription, { loading, error }] = (0, import_client53.useMutation)(CANCEL_SUBSCRIPTION_MUTATION);
3985
+ const [cancelSubscription, { loading, error }] = (0, import_client55.useMutation)(CANCEL_SUBSCRIPTION_MUTATION);
3808
3986
  return { cancelSubscription, error, loading };
3809
3987
  };
3810
3988
  var useUpdateSubscriptionPlan = () => {
3811
- const [updateSubscriptionPlan, { loading, error }] = (0, import_client53.useMutation)(UPDATE_SUBSCRIPTION_PLAN_MUTATION);
3989
+ const [updateSubscriptionPlan, { loading, error }] = (0, import_client55.useMutation)(UPDATE_SUBSCRIPTION_PLAN_MUTATION);
3812
3990
  return { error, loading, updateSubscriptionPlan };
3813
3991
  };
3814
3992
  var useCreateCustomerPortal = () => {
3815
- const [createCustomerPortal, { loading, error }] = (0, import_client53.useMutation)(CREATE_CUSTOMER_PORTAL);
3993
+ const [createCustomerPortal, { loading, error }] = (0, import_client55.useMutation)(CREATE_CUSTOMER_PORTAL);
3816
3994
  return { createCustomerPortal, error, loading };
3817
3995
  };
3818
3996
 
3819
3997
  // src/graphql/hooks/stripe/hooksQuery.ts
3820
- var import_client55 = require("@apollo/client");
3998
+ var import_client57 = require("@apollo/client");
3821
3999
 
3822
4000
  // src/graphql/queries/stripe.ts
3823
- var import_client54 = require("@apollo/client");
3824
- var GET_SUBSCRIPTION_STATUS = import_client54.gql`
4001
+ var import_client56 = require("@apollo/client");
4002
+ var GET_SUBSCRIPTION_STATUS = import_client56.gql`
3825
4003
  query getSubscriptionStatus {
3826
4004
  getSubscriptionStatus {
3827
4005
  billingPeriod
3828
4006
  cancelAtPeriodEnd
3829
4007
  currentPlan
3830
4008
  endDate
4009
+ paymentFailedAt
4010
+ paymentGracePeriodEndsAt
3831
4011
  pendingBillingPeriod
3832
4012
  pendingChangeEffectiveAt
3833
4013
  pendingPlan
@@ -3838,7 +4018,7 @@ var GET_SUBSCRIPTION_STATUS = import_client54.gql`
3838
4018
  }
3839
4019
  }
3840
4020
  `;
3841
- var GET_SUBSCRIPTION_PLANS = import_client54.gql`
4021
+ var GET_SUBSCRIPTION_PLANS = import_client56.gql`
3842
4022
  query getSubscriptionPlans {
3843
4023
  getSubscriptionPlans {
3844
4024
  plans {
@@ -3868,7 +4048,7 @@ var GET_SUBSCRIPTION_PLANS = import_client54.gql`
3868
4048
 
3869
4049
  // src/graphql/hooks/stripe/hooksQuery.ts
3870
4050
  var useGetSubscriptionStatus = () => {
3871
- const { data, loading, error, refetch } = (0, import_client55.useQuery)(GET_SUBSCRIPTION_STATUS);
4051
+ const { data, loading, error, refetch } = (0, import_client57.useQuery)(GET_SUBSCRIPTION_STATUS);
3872
4052
  return {
3873
4053
  data: data?.getSubscriptionStatus,
3874
4054
  error,
@@ -3877,7 +4057,7 @@ var useGetSubscriptionStatus = () => {
3877
4057
  };
3878
4058
  };
3879
4059
  var useGetSubscriptionPlans = () => {
3880
- const { data, loading, error, refetch } = (0, import_client55.useQuery)(GET_SUBSCRIPTION_PLANS);
4060
+ const { data, loading, error, refetch } = (0, import_client57.useQuery)(GET_SUBSCRIPTION_PLANS);
3881
4061
  return {
3882
4062
  data: data?.getSubscriptionPlans,
3883
4063
  error,
@@ -3887,11 +4067,11 @@ var useGetSubscriptionPlans = () => {
3887
4067
  };
3888
4068
 
3889
4069
  // src/graphql/hooks/partner/hooksMutation.ts
3890
- var import_client57 = require("@apollo/client");
4070
+ var import_client59 = require("@apollo/client");
3891
4071
 
3892
4072
  // src/graphql/mutations/partner.ts
3893
- var import_client56 = require("@apollo/client");
3894
- var CREATE_PARTNER_MUTATION = import_client56.gql`
4073
+ var import_client58 = require("@apollo/client");
4074
+ var CREATE_PARTNER_MUTATION = import_client58.gql`
3895
4075
  mutation createPartner($input: PartnerInputType!) {
3896
4076
  createPartner(input: $input) {
3897
4077
  data {
@@ -3902,7 +4082,7 @@ var CREATE_PARTNER_MUTATION = import_client56.gql`
3902
4082
  }
3903
4083
  ${PARTNER}
3904
4084
  `;
3905
- var UPDATE_PARTNER_MUTATION = import_client56.gql`
4085
+ var UPDATE_PARTNER_MUTATION = import_client58.gql`
3906
4086
  mutation updatePartner($_id: ID!, $input: PartnerInputType!) {
3907
4087
  updatePartner(_id: $_id, input: $input) {
3908
4088
  data {
@@ -3913,7 +4093,7 @@ var UPDATE_PARTNER_MUTATION = import_client56.gql`
3913
4093
  }
3914
4094
  ${PARTNER}
3915
4095
  `;
3916
- var DELETE_PARTNER_MUTATION = import_client56.gql`
4096
+ var DELETE_PARTNER_MUTATION = import_client58.gql`
3917
4097
  mutation deletePartner($_id: ID!) {
3918
4098
  deletePartner(_id: $_id) {
3919
4099
  data
@@ -3924,14 +4104,14 @@ var DELETE_PARTNER_MUTATION = import_client56.gql`
3924
4104
 
3925
4105
  // src/graphql/hooks/partner/hooksMutation.ts
3926
4106
  var useCreatePartner = () => {
3927
- const [createPartner, { loading, error }] = (0, import_client57.useMutation)(CREATE_PARTNER_MUTATION, {
4107
+ const [createPartner, { loading, error }] = (0, import_client59.useMutation)(CREATE_PARTNER_MUTATION, {
3928
4108
  awaitRefetchQueries: true,
3929
4109
  refetchQueries: [{ query: GET_USER_PARTNERS }]
3930
4110
  });
3931
4111
  return { createPartner, error, loading };
3932
4112
  };
3933
4113
  var useUpdatePartner = () => {
3934
- const [updatePartner, { loading, error }] = (0, import_client57.useMutation)(UPDATE_PARTNER_MUTATION, {
4114
+ const [updatePartner, { loading, error }] = (0, import_client59.useMutation)(UPDATE_PARTNER_MUTATION, {
3935
4115
  awaitRefetchQueries: true,
3936
4116
  refetchQueries: (mutationResult) => {
3937
4117
  const partnerId = mutationResult?.data?.updatePartner?.data?._id;
@@ -3945,7 +4125,7 @@ var useUpdatePartner = () => {
3945
4125
  return { error, loading, updatePartner };
3946
4126
  };
3947
4127
  var useDeletePartner = () => {
3948
- const [deletePartner, { loading, error }] = (0, import_client57.useMutation)(DELETE_PARTNER_MUTATION, {
4128
+ const [deletePartner, { loading, error }] = (0, import_client59.useMutation)(DELETE_PARTNER_MUTATION, {
3949
4129
  awaitRefetchQueries: true,
3950
4130
  refetchQueries: [{ query: GET_USER_PARTNERS }]
3951
4131
  });
@@ -3953,9 +4133,9 @@ var useDeletePartner = () => {
3953
4133
  };
3954
4134
 
3955
4135
  // src/graphql/hooks/partner/hooksQuery.ts
3956
- var import_client58 = require("@apollo/client");
4136
+ var import_client60 = require("@apollo/client");
3957
4137
  var useGetPartner = (_id) => {
3958
- const { loading, error, data, refetch } = (0, import_client58.useQuery)(
4138
+ const { loading, error, data, refetch } = (0, import_client60.useQuery)(
3959
4139
  GET_PARTNER,
3960
4140
  {
3961
4141
  fetchPolicy: "network-only",
@@ -3973,7 +4153,7 @@ var useGetPartnersByRegion = (region, options) => {
3973
4153
  ...hasOptions ? { options: queryOptions } : {},
3974
4154
  region
3975
4155
  };
3976
- const { loading, error, data, refetch, fetchMore } = (0, import_client58.useQuery)(GET_PARTNERS_BY_REGION, {
4156
+ const { loading, error, data, refetch, fetchMore } = (0, import_client60.useQuery)(GET_PARTNERS_BY_REGION, {
3977
4157
  fetchPolicy: "network-only",
3978
4158
  skip,
3979
4159
  variables
@@ -3989,7 +4169,7 @@ var useGetPartnersByRegion = (region, options) => {
3989
4169
  };
3990
4170
  var useSearchPartners = (search, region) => {
3991
4171
  const normalizedSearch = search.trim();
3992
- const { loading, error, data, refetch } = (0, import_client58.useQuery)(SEARCH_PARTNERS, {
4172
+ const { loading, error, data, refetch } = (0, import_client60.useQuery)(SEARCH_PARTNERS, {
3993
4173
  fetchPolicy: "network-only",
3994
4174
  skip: normalizedSearch.length < 3,
3995
4175
  variables: { region, search: normalizedSearch }
@@ -3999,11 +4179,11 @@ var useSearchPartners = (search, region) => {
3999
4179
  };
4000
4180
 
4001
4181
  // src/graphql/hooks/post/hooksMutation.ts
4002
- var import_client60 = require("@apollo/client");
4182
+ var import_client62 = require("@apollo/client");
4003
4183
 
4004
4184
  // src/graphql/mutations/post.ts
4005
- var import_client59 = require("@apollo/client");
4006
- var CREATE_POST_MUTATION = import_client59.gql`
4185
+ var import_client61 = require("@apollo/client");
4186
+ var CREATE_POST_MUTATION = import_client61.gql`
4007
4187
  mutation createPost($input: PostInputType!) {
4008
4188
  createPost(input: $input) {
4009
4189
  data {
@@ -4014,7 +4194,7 @@ var CREATE_POST_MUTATION = import_client59.gql`
4014
4194
  }
4015
4195
  ${POST_FIELDS_FRAGMENT}
4016
4196
  `;
4017
- var UPDATE_POST_MUTATION = import_client59.gql`
4197
+ var UPDATE_POST_MUTATION = import_client61.gql`
4018
4198
  mutation updatePost($_id: ID!, $input: PostInputType!) {
4019
4199
  updatePost(_id: $_id, input: $input) {
4020
4200
  data {
@@ -4025,7 +4205,7 @@ var UPDATE_POST_MUTATION = import_client59.gql`
4025
4205
  }
4026
4206
  ${POST_FIELDS_FRAGMENT}
4027
4207
  `;
4028
- var DELETE_POST_MUTATION = import_client59.gql`
4208
+ var DELETE_POST_MUTATION = import_client61.gql`
4029
4209
  mutation deletePost($_id: ID!) {
4030
4210
  deletePost(_id: $_id) {
4031
4211
  data
@@ -4036,21 +4216,21 @@ var DELETE_POST_MUTATION = import_client59.gql`
4036
4216
 
4037
4217
  // src/graphql/hooks/post/hooksMutation.ts
4038
4218
  var useCreatePost = () => {
4039
- const [createPost, { loading, error }] = (0, import_client60.useMutation)(CREATE_POST_MUTATION, {
4219
+ const [createPost, { loading, error }] = (0, import_client62.useMutation)(CREATE_POST_MUTATION, {
4040
4220
  awaitRefetchQueries: true,
4041
4221
  refetchQueries: [{ query: GET_POSTS }]
4042
4222
  });
4043
4223
  return { createPost, error, loading };
4044
4224
  };
4045
4225
  var useUpdatePost = () => {
4046
- const [updatePost, { loading, error }] = (0, import_client60.useMutation)(UPDATE_POST_MUTATION, {
4226
+ const [updatePost, { loading, error }] = (0, import_client62.useMutation)(UPDATE_POST_MUTATION, {
4047
4227
  awaitRefetchQueries: true,
4048
4228
  refetchQueries: [{ query: GET_POSTS }]
4049
4229
  });
4050
4230
  return { error, loading, updatePost };
4051
4231
  };
4052
4232
  var useDeletePost = () => {
4053
- const [deletePost, { loading, error }] = (0, import_client60.useMutation)(DELETE_POST_MUTATION, {
4233
+ const [deletePost, { loading, error }] = (0, import_client62.useMutation)(DELETE_POST_MUTATION, {
4054
4234
  awaitRefetchQueries: true,
4055
4235
  refetchQueries: [{ query: GET_POSTS }]
4056
4236
  });
@@ -4058,9 +4238,9 @@ var useDeletePost = () => {
4058
4238
  };
4059
4239
 
4060
4240
  // src/graphql/hooks/post/hooksQuery.ts
4061
- var import_client61 = require("@apollo/client");
4241
+ var import_client63 = require("@apollo/client");
4062
4242
  var useGetPost = (_id) => {
4063
- const { data, loading, error, refetch } = (0, import_client61.useQuery)(GET_POST, {
4243
+ const { data, loading, error, refetch } = (0, import_client63.useQuery)(GET_POST, {
4064
4244
  fetchPolicy: "network-only",
4065
4245
  skip: !_id || _id === "",
4066
4246
  variables: { _id }
@@ -4069,11 +4249,11 @@ var useGetPost = (_id) => {
4069
4249
  };
4070
4250
 
4071
4251
  // src/graphql/hooks/appSettings/hooksMutation.ts
4072
- var import_client64 = require("@apollo/client");
4252
+ var import_client66 = require("@apollo/client");
4073
4253
 
4074
4254
  // src/graphql/mutations/appSettings.ts
4075
- var import_client62 = require("@apollo/client");
4076
- var UPDATE_APP_SETTINGS_MUTATION = import_client62.gql`
4255
+ var import_client64 = require("@apollo/client");
4256
+ var UPDATE_APP_SETTINGS_MUTATION = import_client64.gql`
4077
4257
  mutation updateAppSettings($input: AppSettingsInputType!) {
4078
4258
  updateAppSettings(input: $input) {
4079
4259
  data
@@ -4081,7 +4261,7 @@ var UPDATE_APP_SETTINGS_MUTATION = import_client62.gql`
4081
4261
  }
4082
4262
  }
4083
4263
  `;
4084
- var CRAWL_GOOGLE_MARKETS_MUTATION = import_client62.gql`
4264
+ var CRAWL_GOOGLE_MARKETS_MUTATION = import_client64.gql`
4085
4265
  mutation crawlGoogleMarkets {
4086
4266
  crawlGoogleMarkets {
4087
4267
  data
@@ -4089,7 +4269,7 @@ var CRAWL_GOOGLE_MARKETS_MUTATION = import_client62.gql`
4089
4269
  }
4090
4270
  }
4091
4271
  `;
4092
- var UPDATE_GOOGLE_IMPORTED_MARKET_MUTATION = import_client62.gql`
4272
+ var UPDATE_GOOGLE_IMPORTED_MARKET_MUTATION = import_client64.gql`
4093
4273
  mutation updateGoogleImportedMarkets {
4094
4274
  updateGoogleImportedMarkets {
4095
4275
  data
@@ -4099,8 +4279,8 @@ var UPDATE_GOOGLE_IMPORTED_MARKET_MUTATION = import_client62.gql`
4099
4279
  `;
4100
4280
 
4101
4281
  // src/graphql/queries/appSettings.ts
4102
- var import_client63 = require("@apollo/client");
4103
- var APP_SETTINGS_FIELDS_FRAGMENT = import_client63.gql`
4282
+ var import_client65 = require("@apollo/client");
4283
+ var APP_SETTINGS_FIELDS_FRAGMENT = import_client65.gql`
4104
4284
  fragment AppSettingsFields on AppSettingsType {
4105
4285
  _id
4106
4286
  appVersion
@@ -4111,7 +4291,7 @@ var APP_SETTINGS_FIELDS_FRAGMENT = import_client63.gql`
4111
4291
  updatedAt
4112
4292
  }
4113
4293
  `;
4114
- var GET_APP_SETTINGS = import_client63.gql`
4294
+ var GET_APP_SETTINGS = import_client65.gql`
4115
4295
  query getAppSettings {
4116
4296
  appSettings {
4117
4297
  ...AppSettingsFields
@@ -4122,25 +4302,25 @@ var GET_APP_SETTINGS = import_client63.gql`
4122
4302
 
4123
4303
  // src/graphql/hooks/appSettings/hooksMutation.ts
4124
4304
  var useUpdateAppSettings = () => {
4125
- const [updateAppSettings, { loading, error }] = (0, import_client64.useMutation)(UPDATE_APP_SETTINGS_MUTATION, {
4305
+ const [updateAppSettings, { loading, error }] = (0, import_client66.useMutation)(UPDATE_APP_SETTINGS_MUTATION, {
4126
4306
  awaitRefetchQueries: true,
4127
4307
  refetchQueries: [{ query: GET_APP_SETTINGS }]
4128
4308
  });
4129
4309
  return { error, loading, updateAppSettings };
4130
4310
  };
4131
4311
  var useCrawlGoogleMarkets = () => {
4132
- const [crawlGoogleMarkets, { loading, error }] = (0, import_client64.useMutation)(CRAWL_GOOGLE_MARKETS_MUTATION);
4312
+ const [crawlGoogleMarkets, { loading, error }] = (0, import_client66.useMutation)(CRAWL_GOOGLE_MARKETS_MUTATION);
4133
4313
  return { crawlGoogleMarkets, error, loading };
4134
4314
  };
4135
4315
  var useUpdateGoogleImportedMarkets = () => {
4136
- const [updateGoogleImportedMarkets, { loading, error }] = (0, import_client64.useMutation)(UPDATE_GOOGLE_IMPORTED_MARKET_MUTATION);
4316
+ const [updateGoogleImportedMarkets, { loading, error }] = (0, import_client66.useMutation)(UPDATE_GOOGLE_IMPORTED_MARKET_MUTATION);
4137
4317
  return { error, loading, updateGoogleImportedMarkets };
4138
4318
  };
4139
4319
 
4140
4320
  // src/graphql/hooks/appSettings/hooksQuery.ts
4141
- var import_client65 = require("@apollo/client");
4321
+ var import_client67 = require("@apollo/client");
4142
4322
  var useGetAppSettings = () => {
4143
- const { loading, error, data, refetch } = (0, import_client65.useQuery)(GET_APP_SETTINGS, {
4323
+ const { loading, error, data, refetch } = (0, import_client67.useQuery)(GET_APP_SETTINGS, {
4144
4324
  fetchPolicy: "network-only"
4145
4325
  });
4146
4326
  const appSettings = data?.appSettings || null;
@@ -4148,14 +4328,14 @@ var useGetAppSettings = () => {
4148
4328
  };
4149
4329
 
4150
4330
  // src/graphql/hooks/billingCatalog/hooksMutation.ts
4151
- var import_client68 = require("@apollo/client");
4331
+ var import_client70 = require("@apollo/client");
4152
4332
 
4153
4333
  // src/graphql/mutations/billingCatalog.ts
4154
- var import_client67 = require("@apollo/client");
4334
+ var import_client69 = require("@apollo/client");
4155
4335
 
4156
4336
  // src/graphql/queries/billingCatalog.ts
4157
- var import_client66 = require("@apollo/client");
4158
- var BILLING_CATALOG_FIELDS_FRAGMENT = import_client66.gql`
4337
+ var import_client68 = require("@apollo/client");
4338
+ var BILLING_CATALOG_FIELDS_FRAGMENT = import_client68.gql`
4159
4339
  fragment BillingCatalogFields on BillingCatalogEntryType {
4160
4340
  _id
4161
4341
  active
@@ -4174,7 +4354,7 @@ var BILLING_CATALOG_FIELDS_FRAGMENT = import_client66.gql`
4174
4354
  updatedBy
4175
4355
  }
4176
4356
  `;
4177
- var GET_BILLING_CATALOG = import_client66.gql`
4357
+ var GET_BILLING_CATALOG = import_client68.gql`
4178
4358
  query getBillingCatalog {
4179
4359
  billingCatalog {
4180
4360
  ...BillingCatalogFields
@@ -4184,7 +4364,7 @@ var GET_BILLING_CATALOG = import_client66.gql`
4184
4364
  `;
4185
4365
 
4186
4366
  // src/graphql/mutations/billingCatalog.ts
4187
- var UPDATE_BILLING_CATALOG_PRICE_MUTATION = import_client67.gql`
4367
+ var UPDATE_BILLING_CATALOG_PRICE_MUTATION = import_client69.gql`
4188
4368
  mutation updateBillingCatalogPrice(
4189
4369
  $input: UpdateBillingCatalogPriceInputType!
4190
4370
  ) {
@@ -4197,7 +4377,7 @@ var UPDATE_BILLING_CATALOG_PRICE_MUTATION = import_client67.gql`
4197
4377
  }
4198
4378
  ${BILLING_CATALOG_FIELDS_FRAGMENT}
4199
4379
  `;
4200
- var SYNC_BILLING_CATALOG_PRICE_MUTATION = import_client67.gql`
4380
+ var SYNC_BILLING_CATALOG_PRICE_MUTATION = import_client69.gql`
4201
4381
  mutation syncBillingCatalogPrice($input: SyncBillingCatalogPriceInputType!) {
4202
4382
  syncBillingCatalogPrice(input: $input) {
4203
4383
  data {
@@ -4211,14 +4391,14 @@ var SYNC_BILLING_CATALOG_PRICE_MUTATION = import_client67.gql`
4211
4391
 
4212
4392
  // src/graphql/hooks/billingCatalog/hooksMutation.ts
4213
4393
  var useUpdateBillingCatalogPrice = () => {
4214
- const [updateBillingCatalogPrice, { error, loading }] = (0, import_client68.useMutation)(UPDATE_BILLING_CATALOG_PRICE_MUTATION, {
4394
+ const [updateBillingCatalogPrice, { error, loading }] = (0, import_client70.useMutation)(UPDATE_BILLING_CATALOG_PRICE_MUTATION, {
4215
4395
  awaitRefetchQueries: true,
4216
4396
  refetchQueries: [{ query: GET_BILLING_CATALOG }]
4217
4397
  });
4218
4398
  return { error, loading, updateBillingCatalogPrice };
4219
4399
  };
4220
4400
  var useSyncBillingCatalogPrice = () => {
4221
- const [syncBillingCatalogPrice, { error, loading }] = (0, import_client68.useMutation)(SYNC_BILLING_CATALOG_PRICE_MUTATION, {
4401
+ const [syncBillingCatalogPrice, { error, loading }] = (0, import_client70.useMutation)(SYNC_BILLING_CATALOG_PRICE_MUTATION, {
4222
4402
  awaitRefetchQueries: true,
4223
4403
  refetchQueries: [{ query: GET_BILLING_CATALOG }]
4224
4404
  });
@@ -4226,9 +4406,9 @@ var useSyncBillingCatalogPrice = () => {
4226
4406
  };
4227
4407
 
4228
4408
  // src/graphql/hooks/billingCatalog/hooksQuery.ts
4229
- var import_client69 = require("@apollo/client");
4409
+ var import_client71 = require("@apollo/client");
4230
4410
  var useGetBillingCatalog = () => {
4231
- const { data, error, loading, refetch } = (0, import_client69.useQuery)(GET_BILLING_CATALOG, {
4411
+ const { data, error, loading, refetch } = (0, import_client71.useQuery)(GET_BILLING_CATALOG, {
4232
4412
  fetchPolicy: "network-only"
4233
4413
  });
4234
4414
  return {
@@ -4240,14 +4420,14 @@ var useGetBillingCatalog = () => {
4240
4420
  };
4241
4421
 
4242
4422
  // src/graphql/hooks/game/hooksMutation.ts
4243
- var import_client72 = require("@apollo/client");
4423
+ var import_client74 = require("@apollo/client");
4244
4424
 
4245
4425
  // src/graphql/mutations/game.ts
4246
- var import_client71 = require("@apollo/client");
4426
+ var import_client73 = require("@apollo/client");
4247
4427
 
4248
4428
  // src/graphql/queries/game/game.ts
4249
- var import_client70 = require("@apollo/client");
4250
- var GAME_HISTORY_FIELDS_FRAGMENT = import_client70.gql`
4429
+ var import_client72 = require("@apollo/client");
4430
+ var GAME_HISTORY_FIELDS_FRAGMENT = import_client72.gql`
4251
4431
  fragment GameHistoryFields on GameHistoryType {
4252
4432
  createdAt
4253
4433
  gameDate {
@@ -4262,7 +4442,7 @@ var GAME_HISTORY_FIELDS_FRAGMENT = import_client70.gql`
4262
4442
  }
4263
4443
  ${GAME_DATE_FIELDS_FRAGMENT}
4264
4444
  `;
4265
- var GAME_DATA_FIELDS_FRAGMENT = import_client70.gql`
4445
+ var GAME_DATA_FIELDS_FRAGMENT = import_client72.gql`
4266
4446
  fragment GameDataFields on GameDataType {
4267
4447
  dailyClue {
4268
4448
  ...DailyClueGameDataFields
@@ -4277,7 +4457,7 @@ var GAME_DATA_FIELDS_FRAGMENT = import_client70.gql`
4277
4457
  ${DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT}
4278
4458
  ${PUZZLE_GAME_DATA_FIELDS_FRAGMENT}
4279
4459
  `;
4280
- var GAME_FIELDS_FRAGMENT = import_client70.gql`
4460
+ var GAME_FIELDS_FRAGMENT = import_client72.gql`
4281
4461
  fragment GameFields on GameType {
4282
4462
  _id
4283
4463
  active
@@ -4296,7 +4476,7 @@ var GAME_FIELDS_FRAGMENT = import_client70.gql`
4296
4476
  ${GAME_DATA_FIELDS_FRAGMENT}
4297
4477
  ${GAME_HISTORY_FIELDS_FRAGMENT}
4298
4478
  `;
4299
- var GAME_DOC_FIELDS_FRAGMENT = import_client70.gql`
4479
+ var GAME_DOC_FIELDS_FRAGMENT = import_client72.gql`
4300
4480
  fragment GameDocFields on GameDocType {
4301
4481
  _id
4302
4482
  active
@@ -4314,7 +4494,7 @@ var GAME_DOC_FIELDS_FRAGMENT = import_client70.gql`
4314
4494
  ${OWNER_FIELDS_FRAGMENT}
4315
4495
  ${GAME_FIELDS_FRAGMENT}
4316
4496
  `;
4317
- var GET_GAMES = import_client70.gql`
4497
+ var GET_GAMES = import_client72.gql`
4318
4498
  query getGames {
4319
4499
  games {
4320
4500
  ...GameDocFields
@@ -4322,7 +4502,7 @@ var GET_GAMES = import_client70.gql`
4322
4502
  }
4323
4503
  ${GAME_DOC_FIELDS_FRAGMENT}
4324
4504
  `;
4325
- var GET_GAME = import_client70.gql`
4505
+ var GET_GAME = import_client72.gql`
4326
4506
  query getGame($_id: ID) {
4327
4507
  game(_id: $_id) {
4328
4508
  ...GameDocFields
@@ -4330,7 +4510,7 @@ var GET_GAME = import_client70.gql`
4330
4510
  }
4331
4511
  ${GAME_DOC_FIELDS_FRAGMENT}
4332
4512
  `;
4333
- var GET_GAME_LEADERBOARD = import_client70.gql`
4513
+ var GET_GAME_LEADERBOARD = import_client72.gql`
4334
4514
  query getGameLeaderboard {
4335
4515
  gameLeaderboard {
4336
4516
  gameHistory {
@@ -4345,7 +4525,7 @@ var GET_GAME_LEADERBOARD = import_client70.gql`
4345
4525
  `;
4346
4526
 
4347
4527
  // src/graphql/mutations/game.ts
4348
- var START_GAME_MUTATION = import_client71.gql`
4528
+ var START_GAME_MUTATION = import_client73.gql`
4349
4529
  mutation startGame($input: BaseGameInputType!) {
4350
4530
  startGame(input: $input) {
4351
4531
  data {
@@ -4356,7 +4536,7 @@ var START_GAME_MUTATION = import_client71.gql`
4356
4536
  }
4357
4537
  ${GAME_DOC_FIELDS_FRAGMENT}
4358
4538
  `;
4359
- var LEAVE_GAME_MUTATION = import_client71.gql`
4539
+ var LEAVE_GAME_MUTATION = import_client73.gql`
4360
4540
  mutation leaveGame(
4361
4541
  $_id: ID!
4362
4542
  $gameType: GameTypeEnumType!
@@ -4368,7 +4548,7 @@ var LEAVE_GAME_MUTATION = import_client71.gql`
4368
4548
  }
4369
4549
  }
4370
4550
  `;
4371
- var UPDATE_DAILY_CLUE_MUTATION = import_client71.gql`
4551
+ var UPDATE_DAILY_CLUE_MUTATION = import_client73.gql`
4372
4552
  mutation updateDailyClueGame(
4373
4553
  $_id: ID!
4374
4554
  $foundLetter: String!
@@ -4389,7 +4569,7 @@ var UPDATE_DAILY_CLUE_MUTATION = import_client71.gql`
4389
4569
  }
4390
4570
  ${GAME_DOC_FIELDS_FRAGMENT}
4391
4571
  `;
4392
- var UPDATE_PUZZLE_GAME_MUTATION = import_client71.gql`
4572
+ var UPDATE_PUZZLE_GAME_MUTATION = import_client73.gql`
4393
4573
  mutation updatePuzzleGame(
4394
4574
  $_id: ID!
4395
4575
  $answeredQuestions: [PuzzleAnsweredQuestionInputType!]!
@@ -4413,7 +4593,7 @@ var UPDATE_PUZZLE_GAME_MUTATION = import_client71.gql`
4413
4593
 
4414
4594
  // src/graphql/hooks/game/hooksMutation.ts
4415
4595
  var useStartGame = () => {
4416
- const [startGame, { loading, error }] = (0, import_client72.useMutation)(START_GAME_MUTATION, {
4596
+ const [startGame, { loading, error }] = (0, import_client74.useMutation)(START_GAME_MUTATION, {
4417
4597
  awaitRefetchQueries: true,
4418
4598
  refetchQueries: (mutationResult) => {
4419
4599
  const gameId = mutationResult?.data?.startGame?.data?._id;
@@ -4436,7 +4616,7 @@ var useStartGame = () => {
4436
4616
  return { error, loading, startGame };
4437
4617
  };
4438
4618
  var useLeaveGame = () => {
4439
- const [leaveGame, { loading, error }] = (0, import_client72.useMutation)(LEAVE_GAME_MUTATION, {
4619
+ const [leaveGame, { loading, error }] = (0, import_client74.useMutation)(LEAVE_GAME_MUTATION, {
4440
4620
  awaitRefetchQueries: true,
4441
4621
  refetchQueries: [
4442
4622
  {
@@ -4447,7 +4627,7 @@ var useLeaveGame = () => {
4447
4627
  return { error, leaveGame, loading };
4448
4628
  };
4449
4629
  var useUpdateDailyClueGame = () => {
4450
- const [updateDailyClueGame, { loading, error }] = (0, import_client72.useMutation)(UPDATE_DAILY_CLUE_MUTATION, {
4630
+ const [updateDailyClueGame, { loading, error }] = (0, import_client74.useMutation)(UPDATE_DAILY_CLUE_MUTATION, {
4451
4631
  awaitRefetchQueries: true,
4452
4632
  refetchQueries: (mutationResult) => {
4453
4633
  const gameId = mutationResult?.data?.updateDailyClueGame?.data?._id;
@@ -4464,7 +4644,7 @@ var useUpdateDailyClueGame = () => {
4464
4644
  return { error, loading, updateDailyClueGame };
4465
4645
  };
4466
4646
  var useUpdatePuzzleGame = () => {
4467
- const [updatePuzzleGame, { loading, error }] = (0, import_client72.useMutation)(UPDATE_PUZZLE_GAME_MUTATION, {
4647
+ const [updatePuzzleGame, { loading, error }] = (0, import_client74.useMutation)(UPDATE_PUZZLE_GAME_MUTATION, {
4468
4648
  awaitRefetchQueries: true,
4469
4649
  refetchQueries: (mutationResult) => {
4470
4650
  const gameId = mutationResult?.data?.updatePuzzleGame?.data?._id;
@@ -4482,16 +4662,16 @@ var useUpdatePuzzleGame = () => {
4482
4662
  };
4483
4663
 
4484
4664
  // src/graphql/hooks/game/hooksQuery.ts
4485
- var import_client73 = require("@apollo/client");
4665
+ var import_client75 = require("@apollo/client");
4486
4666
  var useGetGames = () => {
4487
- const { loading, error, data, refetch } = (0, import_client73.useQuery)(GET_GAMES, {
4667
+ const { loading, error, data, refetch } = (0, import_client75.useQuery)(GET_GAMES, {
4488
4668
  fetchPolicy: "network-only"
4489
4669
  });
4490
4670
  const games = data?.games || [];
4491
4671
  return { error, games, loading, refetch };
4492
4672
  };
4493
4673
  var useGetGame = (_id) => {
4494
- const { loading, error, data, refetch } = (0, import_client73.useQuery)(GET_GAME, {
4674
+ const { loading, error, data, refetch } = (0, import_client75.useQuery)(GET_GAME, {
4495
4675
  fetchPolicy: "network-only",
4496
4676
  skip: !_id,
4497
4677
  variables: _id ? { _id } : void 0
@@ -4500,7 +4680,7 @@ var useGetGame = (_id) => {
4500
4680
  return { error, game, loading, refetch };
4501
4681
  };
4502
4682
  var useGetGameLeaderboard = () => {
4503
- const { loading, error, data, refetch } = (0, import_client73.useQuery)(GET_GAME_LEADERBOARD, {
4683
+ const { loading, error, data, refetch } = (0, import_client75.useQuery)(GET_GAME_LEADERBOARD, {
4504
4684
  fetchPolicy: "network-only"
4505
4685
  });
4506
4686
  const gameLeaderboard = data?.gameLeaderboard || [];
@@ -4508,14 +4688,14 @@ var useGetGameLeaderboard = () => {
4508
4688
  };
4509
4689
 
4510
4690
  // src/graphql/hooks/school/hooksMutation.ts
4511
- var import_client76 = require("@apollo/client");
4691
+ var import_client78 = require("@apollo/client");
4512
4692
 
4513
4693
  // src/graphql/mutations/school.ts
4514
- var import_client75 = require("@apollo/client");
4694
+ var import_client77 = require("@apollo/client");
4515
4695
 
4516
4696
  // src/graphql/queries/school.ts
4517
- var import_client74 = require("@apollo/client");
4518
- var SCHOOL_REGISTERED_USERS_FIELDS_FRAGMENT = import_client74.gql`
4697
+ var import_client76 = require("@apollo/client");
4698
+ var SCHOOL_REGISTERED_USERS_FIELDS_FRAGMENT = import_client76.gql`
4519
4699
  fragment SchoolRegisteredUsersFields on SchoolRegisteredUserType {
4520
4700
  _id
4521
4701
  active
@@ -4528,14 +4708,14 @@ var SCHOOL_REGISTERED_USERS_FIELDS_FRAGMENT = import_client74.gql`
4528
4708
  }
4529
4709
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
4530
4710
  `;
4531
- var SCHOOL_CAMPAIGN_FIELDS_FRAGMENT = import_client74.gql`
4711
+ var SCHOOL_CAMPAIGN_FIELDS_FRAGMENT = import_client76.gql`
4532
4712
  fragment SchoolCampaignFields on SchoolCampaignType {
4533
4713
  endDate
4534
4714
  name
4535
4715
  startDate
4536
4716
  }
4537
4717
  `;
4538
- var SCHOOL = import_client74.gql`
4718
+ var SCHOOL = import_client76.gql`
4539
4719
  fragment SchoolFields on SchoolType {
4540
4720
  _id
4541
4721
  active
@@ -4579,7 +4759,7 @@ var SCHOOL = import_client74.gql`
4579
4759
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
4580
4760
  ${SCHOOL_CAMPAIGN_FIELDS_FRAGMENT}
4581
4761
  `;
4582
- var GET_SCHOOL = import_client74.gql`
4762
+ var GET_SCHOOL = import_client76.gql`
4583
4763
  query getSchool($_id: ID!) {
4584
4764
  school(_id: $_id) {
4585
4765
  school {
@@ -4593,7 +4773,7 @@ var GET_SCHOOL = import_client74.gql`
4593
4773
  ${SCHOOL}
4594
4774
  ${SCHOOL_REGISTERED_USERS_FIELDS_FRAGMENT}
4595
4775
  `;
4596
- var GET_SCHOOLS = import_client74.gql`
4776
+ var GET_SCHOOLS = import_client76.gql`
4597
4777
  query getSchools {
4598
4778
  schools {
4599
4779
  ...SchoolFields
@@ -4603,7 +4783,7 @@ var GET_SCHOOLS = import_client74.gql`
4603
4783
  `;
4604
4784
 
4605
4785
  // src/graphql/mutations/school.ts
4606
- var CREATE_SCHOOL_MUTATION = import_client75.gql`
4786
+ var CREATE_SCHOOL_MUTATION = import_client77.gql`
4607
4787
  mutation createSchool($input: SchoolInputType!) {
4608
4788
  createSchool(input: $input) {
4609
4789
  data {
@@ -4614,7 +4794,7 @@ var CREATE_SCHOOL_MUTATION = import_client75.gql`
4614
4794
  }
4615
4795
  ${SCHOOL}
4616
4796
  `;
4617
- var UPDATE_SCHOOL_MUTATION = import_client75.gql`
4797
+ var UPDATE_SCHOOL_MUTATION = import_client77.gql`
4618
4798
  mutation updateSchool($_id: ID!, $input: SchoolInputType!) {
4619
4799
  updateSchool(_id: $_id, input: $input) {
4620
4800
  data {
@@ -4625,7 +4805,7 @@ var UPDATE_SCHOOL_MUTATION = import_client75.gql`
4625
4805
  }
4626
4806
  ${SCHOOL}
4627
4807
  `;
4628
- var DELETE_SCHOOL_MUTATION = import_client75.gql`
4808
+ var DELETE_SCHOOL_MUTATION = import_client77.gql`
4629
4809
  mutation deleteSchool($_id: ID!) {
4630
4810
  deleteSchool(_id: $_id) {
4631
4811
  data
@@ -4633,7 +4813,7 @@ var DELETE_SCHOOL_MUTATION = import_client75.gql`
4633
4813
  }
4634
4814
  }
4635
4815
  `;
4636
- var REQUEST_MARKETING_MATERIAL_MUTATION = import_client75.gql`
4816
+ var REQUEST_MARKETING_MATERIAL_MUTATION = import_client77.gql`
4637
4817
  mutation requestMarketingMaterial(
4638
4818
  $input: MarketingMaterialRequestInputType!
4639
4819
  ) {
@@ -4646,35 +4826,35 @@ var REQUEST_MARKETING_MATERIAL_MUTATION = import_client75.gql`
4646
4826
 
4647
4827
  // src/graphql/hooks/school/hooksMutation.ts
4648
4828
  var useCreateSchool = () => {
4649
- const [createSchool, { loading, error }] = (0, import_client76.useMutation)(CREATE_SCHOOL_MUTATION, {
4829
+ const [createSchool, { loading, error }] = (0, import_client78.useMutation)(CREATE_SCHOOL_MUTATION, {
4650
4830
  awaitRefetchQueries: true,
4651
4831
  refetchQueries: [{ query: GET_SCHOOLS }]
4652
4832
  });
4653
4833
  return { createSchool, error, loading };
4654
4834
  };
4655
4835
  var useUpdateSchool = () => {
4656
- const [updateSchool, { loading, error }] = (0, import_client76.useMutation)(UPDATE_SCHOOL_MUTATION, {
4836
+ const [updateSchool, { loading, error }] = (0, import_client78.useMutation)(UPDATE_SCHOOL_MUTATION, {
4657
4837
  awaitRefetchQueries: true,
4658
4838
  refetchQueries: [{ query: GET_SCHOOLS }]
4659
4839
  });
4660
4840
  return { error, loading, updateSchool };
4661
4841
  };
4662
4842
  var useDeleteSchool = () => {
4663
- const [deleteSchool, { loading, error }] = (0, import_client76.useMutation)(DELETE_SCHOOL_MUTATION, {
4843
+ const [deleteSchool, { loading, error }] = (0, import_client78.useMutation)(DELETE_SCHOOL_MUTATION, {
4664
4844
  awaitRefetchQueries: true,
4665
4845
  refetchQueries: [{ query: GET_SCHOOLS }]
4666
4846
  });
4667
4847
  return { deleteSchool, error, loading };
4668
4848
  };
4669
4849
  var useRequestMarketingMaterial = () => {
4670
- const [requestMarketingMaterial, { loading, error }] = (0, import_client76.useMutation)(REQUEST_MARKETING_MATERIAL_MUTATION);
4850
+ const [requestMarketingMaterial, { loading, error }] = (0, import_client78.useMutation)(REQUEST_MARKETING_MATERIAL_MUTATION);
4671
4851
  return { error, loading, requestMarketingMaterial };
4672
4852
  };
4673
4853
 
4674
4854
  // src/graphql/hooks/school/hooksQuery.ts
4675
- var import_client77 = require("@apollo/client");
4855
+ var import_client79 = require("@apollo/client");
4676
4856
  var useGetSchools = () => {
4677
- const { data, loading, error, refetch } = (0, import_client77.useQuery)(
4857
+ const { data, loading, error, refetch } = (0, import_client79.useQuery)(
4678
4858
  GET_SCHOOLS,
4679
4859
  {
4680
4860
  fetchPolicy: "network-only"
@@ -4688,7 +4868,7 @@ var useGetSchools = () => {
4688
4868
  };
4689
4869
  };
4690
4870
  var useGetSchool = (_id) => {
4691
- const { data, loading, error, refetch } = (0, import_client77.useQuery)(GET_SCHOOL, {
4871
+ const { data, loading, error, refetch } = (0, import_client79.useQuery)(GET_SCHOOL, {
4692
4872
  fetchPolicy: "network-only",
4693
4873
  skip: !_id,
4694
4874
  variables: { _id }
@@ -4702,11 +4882,11 @@ var useGetSchool = (_id) => {
4702
4882
  };
4703
4883
 
4704
4884
  // src/graphql/hooks/affiliate/hooksQuery.ts
4705
- var import_client79 = require("@apollo/client");
4885
+ var import_client81 = require("@apollo/client");
4706
4886
 
4707
4887
  // src/graphql/queries/affiliate.ts
4708
- var import_client78 = require("@apollo/client");
4709
- var AFFILIATE_REWARD_FIELDS_FRAGMENT = import_client78.gql`
4888
+ var import_client80 = require("@apollo/client");
4889
+ var AFFILIATE_REWARD_FIELDS_FRAGMENT = import_client80.gql`
4710
4890
  fragment AffiliateRewardFields on AffiliateRewardType {
4711
4891
  createdAt
4712
4892
  redeemedAt
@@ -4715,7 +4895,7 @@ var AFFILIATE_REWARD_FIELDS_FRAGMENT = import_client78.gql`
4715
4895
  rewardValue
4716
4896
  }
4717
4897
  `;
4718
- var AFFILIATE_RESOURCE_FIELDS_FRAGMENT = import_client78.gql`
4898
+ var AFFILIATE_RESOURCE_FIELDS_FRAGMENT = import_client80.gql`
4719
4899
  fragment AffiliateResourceFields on AffiliateResourceType {
4720
4900
  resourceActive
4721
4901
  resourceDeletedAt
@@ -4732,13 +4912,13 @@ var AFFILIATE_RESOURCE_FIELDS_FRAGMENT = import_client78.gql`
4732
4912
  ${AFFILIATE_REWARD_FIELDS_FRAGMENT}
4733
4913
  ${OWNER_FIELDS_FRAGMENT}
4734
4914
  `;
4735
- var AFFILIATE_BANK_ACCOUNT_DETAILS_FIELDS_FRAGMENT = import_client78.gql`
4915
+ var AFFILIATE_BANK_ACCOUNT_DETAILS_FIELDS_FRAGMENT = import_client80.gql`
4736
4916
  fragment AffiliateBankAccountDetailsFields on AffiliateBankAccountDetailsType {
4737
4917
  accountHolderName
4738
4918
  accountNumber
4739
4919
  }
4740
4920
  `;
4741
- var AFFILIATE_DETAILS_FIELDS_FRAGMENT = import_client78.gql`
4921
+ var AFFILIATE_DETAILS_FIELDS_FRAGMENT = import_client80.gql`
4742
4922
  fragment AffiliateDetailsFields on AffiliateDetailsType {
4743
4923
  bankAccountDetails {
4744
4924
  ...AffiliateBankAccountDetailsFields
@@ -4766,7 +4946,7 @@ var AFFILIATE_DETAILS_FIELDS_FRAGMENT = import_client78.gql`
4766
4946
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
4767
4947
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
4768
4948
  `;
4769
- var AFFILIATE_FIELDS_FRAGMENT = import_client78.gql`
4949
+ var AFFILIATE_FIELDS_FRAGMENT = import_client80.gql`
4770
4950
  fragment AffiliateFields on AffiliateType {
4771
4951
  _id
4772
4952
  active
@@ -4798,7 +4978,7 @@ var AFFILIATE_FIELDS_FRAGMENT = import_client78.gql`
4798
4978
  ${AFFILIATE_RESOURCE_FIELDS_FRAGMENT}
4799
4979
  ${OWNER_FIELDS_FRAGMENT}
4800
4980
  `;
4801
- var GET_AFFILIATE = import_client78.gql`
4981
+ var GET_AFFILIATE = import_client80.gql`
4802
4982
  query getAffiliate($_id: ID!) {
4803
4983
  affiliate(_id: $_id) {
4804
4984
  ...AffiliateFields
@@ -4806,7 +4986,7 @@ var GET_AFFILIATE = import_client78.gql`
4806
4986
  }
4807
4987
  ${AFFILIATE_FIELDS_FRAGMENT}
4808
4988
  `;
4809
- var GET_AFFILIATES = import_client78.gql`
4989
+ var GET_AFFILIATES = import_client80.gql`
4810
4990
  query getAffiliates {
4811
4991
  affiliates {
4812
4992
  ...AffiliateFields
@@ -4817,7 +4997,7 @@ var GET_AFFILIATES = import_client78.gql`
4817
4997
 
4818
4998
  // src/graphql/hooks/affiliate/hooksQuery.ts
4819
4999
  var useGetAffiliate = (_id) => {
4820
- const { data, loading, error, refetch } = (0, import_client79.useQuery)(GET_AFFILIATE, {
5000
+ const { data, loading, error, refetch } = (0, import_client81.useQuery)(GET_AFFILIATE, {
4821
5001
  fetchPolicy: "network-only",
4822
5002
  skip: !_id || _id === "",
4823
5003
  variables: { _id }
@@ -4831,7 +5011,7 @@ var useGetAffiliate = (_id) => {
4831
5011
  };
4832
5012
  };
4833
5013
  var useGetAffiliates = () => {
4834
- const { data, loading, error, refetch } = (0, import_client79.useQuery)(GET_AFFILIATES, {
5014
+ const { data, loading, error, refetch } = (0, import_client81.useQuery)(GET_AFFILIATES, {
4835
5015
  fetchPolicy: "network-only"
4836
5016
  });
4837
5017
  const affiliates = data?.affiliates || [];
@@ -4844,11 +5024,11 @@ var useGetAffiliates = () => {
4844
5024
  };
4845
5025
 
4846
5026
  // src/graphql/hooks/affiliate/hooksMutation.ts
4847
- var import_client81 = require("@apollo/client");
5027
+ var import_client83 = require("@apollo/client");
4848
5028
 
4849
5029
  // src/graphql/mutations/affiliate.ts
4850
- var import_client80 = require("@apollo/client");
4851
- var CREATE_AFFILIATE_MUTATION = import_client80.gql`
5030
+ var import_client82 = require("@apollo/client");
5031
+ var CREATE_AFFILIATE_MUTATION = import_client82.gql`
4852
5032
  mutation createAffiliate($input: AffiliateDetailsInputType!) {
4853
5033
  createAffiliate(input: $input) {
4854
5034
  data {
@@ -4859,7 +5039,7 @@ var CREATE_AFFILIATE_MUTATION = import_client80.gql`
4859
5039
  }
4860
5040
  ${AFFILIATE_FIELDS_FRAGMENT}
4861
5041
  `;
4862
- var UPDATE_AFFILIATE_DETAILS_MUTATION = import_client80.gql`
5042
+ var UPDATE_AFFILIATE_DETAILS_MUTATION = import_client82.gql`
4863
5043
  mutation updateAffiliateDetails(
4864
5044
  $input: AffiliateDetailsInputType!
4865
5045
  $affiliateId: ID!
@@ -4873,7 +5053,7 @@ var UPDATE_AFFILIATE_DETAILS_MUTATION = import_client80.gql`
4873
5053
  }
4874
5054
  ${AFFILIATE_FIELDS_FRAGMENT}
4875
5055
  `;
4876
- var DELETE_AFFILIATE_MUTATION = import_client80.gql`
5056
+ var DELETE_AFFILIATE_MUTATION = import_client82.gql`
4877
5057
  mutation deleteAffiliate($_id: ID!) {
4878
5058
  deleteAffiliate(_id: $_id) {
4879
5059
  data
@@ -4881,7 +5061,7 @@ var DELETE_AFFILIATE_MUTATION = import_client80.gql`
4881
5061
  }
4882
5062
  }
4883
5063
  `;
4884
- var REDEEM_AFFILIATE_REWARD_MUTATION = import_client80.gql`
5064
+ var REDEEM_AFFILIATE_REWARD_MUTATION = import_client82.gql`
4885
5065
  mutation redeemAffiliateReward($affiliateId: ID!) {
4886
5066
  redeemAffiliateReward(affiliateId: $affiliateId) {
4887
5067
  data {
@@ -4892,7 +5072,7 @@ var REDEEM_AFFILIATE_REWARD_MUTATION = import_client80.gql`
4892
5072
  }
4893
5073
  ${AFFILIATE_FIELDS_FRAGMENT}
4894
5074
  `;
4895
- var ASSIGN_AFFILIATE_RESOURCE_REWARD_MUTATION = import_client80.gql`
5075
+ var ASSIGN_AFFILIATE_RESOURCE_REWARD_MUTATION = import_client82.gql`
4896
5076
  mutation assignAffiliateResourceReward(
4897
5077
  $affiliateId: ID!
4898
5078
  $resourceId: ID!
@@ -4913,7 +5093,7 @@ var ASSIGN_AFFILIATE_RESOURCE_REWARD_MUTATION = import_client80.gql`
4913
5093
  }
4914
5094
  ${AFFILIATE_FIELDS_FRAGMENT}
4915
5095
  `;
4916
- var ASSIGN_AFFILIATE_BONUS_REWARD_MUTATION = import_client80.gql`
5096
+ var ASSIGN_AFFILIATE_BONUS_REWARD_MUTATION = import_client82.gql`
4917
5097
  mutation assignAffiliateBonusReward(
4918
5098
  $affiliateId: ID!
4919
5099
  $rewardType: AffiliateRewardEnumType!
@@ -4933,7 +5113,7 @@ var ASSIGN_AFFILIATE_BONUS_REWARD_MUTATION = import_client80.gql`
4933
5113
 
4934
5114
  // src/graphql/hooks/affiliate/hooksMutation.ts
4935
5115
  var useCreateAffiliate = () => {
4936
- const [createAffiliate, { loading, error }] = (0, import_client81.useMutation)(CREATE_AFFILIATE_MUTATION, {
5116
+ const [createAffiliate, { loading, error }] = (0, import_client83.useMutation)(CREATE_AFFILIATE_MUTATION, {
4937
5117
  awaitRefetchQueries: true,
4938
5118
  refetchQueries: (mutationResult) => {
4939
5119
  const affiliateId = mutationResult?.data?.createAffiliate?.data?._id;
@@ -4944,7 +5124,7 @@ var useCreateAffiliate = () => {
4944
5124
  return { createAffiliate, error, loading };
4945
5125
  };
4946
5126
  var useUpdateAffiliateDetails = () => {
4947
- const [updateAffiliateDetails, { loading, error }] = (0, import_client81.useMutation)(UPDATE_AFFILIATE_DETAILS_MUTATION, {
5127
+ const [updateAffiliateDetails, { loading, error }] = (0, import_client83.useMutation)(UPDATE_AFFILIATE_DETAILS_MUTATION, {
4948
5128
  awaitRefetchQueries: true,
4949
5129
  refetchQueries: (mutationResult) => {
4950
5130
  const affiliateId = mutationResult?.data?.updateAffiliateDetails?.data?._id;
@@ -4955,14 +5135,14 @@ var useUpdateAffiliateDetails = () => {
4955
5135
  return { error, loading, updateAffiliateDetails };
4956
5136
  };
4957
5137
  var useDeleteAffiliate = () => {
4958
- const [deleteAffiliate, { loading, error }] = (0, import_client81.useMutation)(DELETE_AFFILIATE_MUTATION, {
5138
+ const [deleteAffiliate, { loading, error }] = (0, import_client83.useMutation)(DELETE_AFFILIATE_MUTATION, {
4959
5139
  awaitRefetchQueries: true,
4960
5140
  refetchQueries: [{ query: GET_AFFILIATES }]
4961
5141
  });
4962
5142
  return { deleteAffiliate, error, loading };
4963
5143
  };
4964
5144
  var useRedeemAffiliateReward = () => {
4965
- const [redeemAffiliateReward, { loading, error }] = (0, import_client81.useMutation)(REDEEM_AFFILIATE_REWARD_MUTATION, {
5145
+ const [redeemAffiliateReward, { loading, error }] = (0, import_client83.useMutation)(REDEEM_AFFILIATE_REWARD_MUTATION, {
4966
5146
  awaitRefetchQueries: true,
4967
5147
  refetchQueries: (mutationResult) => {
4968
5148
  const affiliateId = mutationResult?.data?.redeemAffiliateReward?.data?._id;
@@ -4973,7 +5153,7 @@ var useRedeemAffiliateReward = () => {
4973
5153
  return { error, loading, redeemAffiliateReward };
4974
5154
  };
4975
5155
  var useAssignAffiliateResourceReward = () => {
4976
- const [assignAffiliateResourceReward, { loading, error }] = (0, import_client81.useMutation)(ASSIGN_AFFILIATE_RESOURCE_REWARD_MUTATION, {
5156
+ const [assignAffiliateResourceReward, { loading, error }] = (0, import_client83.useMutation)(ASSIGN_AFFILIATE_RESOURCE_REWARD_MUTATION, {
4977
5157
  awaitRefetchQueries: true,
4978
5158
  refetchQueries: (mutationResult) => {
4979
5159
  const affiliateId = mutationResult?.data?.assignAffiliateResourceReward?.data?._id;
@@ -4984,7 +5164,7 @@ var useAssignAffiliateResourceReward = () => {
4984
5164
  return { assignAffiliateResourceReward, error, loading };
4985
5165
  };
4986
5166
  var useAssignAffiliateBonusReward = () => {
4987
- const [assignAffiliateBonusReward, { loading, error }] = (0, import_client81.useMutation)(ASSIGN_AFFILIATE_BONUS_REWARD_MUTATION, {
5167
+ const [assignAffiliateBonusReward, { loading, error }] = (0, import_client83.useMutation)(ASSIGN_AFFILIATE_BONUS_REWARD_MUTATION, {
4988
5168
  awaitRefetchQueries: true,
4989
5169
  refetchQueries: (mutationResult) => {
4990
5170
  const affiliateId = mutationResult?.data?.assignAffiliateBonusReward?.data?._id;
@@ -4996,14 +5176,14 @@ var useAssignAffiliateBonusReward = () => {
4996
5176
  };
4997
5177
 
4998
5178
  // src/graphql/hooks/coupon/hooksMutation.ts
4999
- var import_client84 = require("@apollo/client");
5179
+ var import_client86 = require("@apollo/client");
5000
5180
 
5001
5181
  // src/graphql/mutations/coupon.ts
5002
- var import_client83 = require("@apollo/client");
5182
+ var import_client85 = require("@apollo/client");
5003
5183
 
5004
5184
  // src/graphql/queries/coupon.ts
5005
- var import_client82 = require("@apollo/client");
5006
- var COUPON_CODE_FIELDS_FRAGMENT = import_client82.gql`
5185
+ var import_client84 = require("@apollo/client");
5186
+ var COUPON_CODE_FIELDS_FRAGMENT = import_client84.gql`
5007
5187
  fragment CouponCodeFields on CouponCodeType {
5008
5188
  code
5009
5189
  qrCode {
@@ -5015,7 +5195,7 @@ var COUPON_CODE_FIELDS_FRAGMENT = import_client82.gql`
5015
5195
  }
5016
5196
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
5017
5197
  `;
5018
- var COUPON_PARTICIPANT_USER_FIELDS_FRAGMENT = import_client82.gql`
5198
+ var COUPON_PARTICIPANT_USER_FIELDS_FRAGMENT = import_client84.gql`
5019
5199
  fragment CouponParticipantUserFields on CouponParticipantUserType {
5020
5200
  couponCollectedCount
5021
5201
  couponRedeemedAt
@@ -5027,7 +5207,7 @@ var COUPON_PARTICIPANT_USER_FIELDS_FRAGMENT = import_client82.gql`
5027
5207
  nickName
5028
5208
  }
5029
5209
  `;
5030
- var COUPON_OPTION_FIELDS_FRAGMENT = import_client82.gql`
5210
+ var COUPON_OPTION_FIELDS_FRAGMENT = import_client84.gql`
5031
5211
  fragment CouponOptionFields on CouponOptionType {
5032
5212
  type
5033
5213
  buy
@@ -5037,7 +5217,7 @@ var COUPON_OPTION_FIELDS_FRAGMENT = import_client82.gql`
5037
5217
  maxRewardCount
5038
5218
  }
5039
5219
  `;
5040
- var COUPON_VENDOR_PRODUCT_FIELDS_FRAGMENT = import_client82.gql`
5220
+ var COUPON_VENDOR_PRODUCT_FIELDS_FRAGMENT = import_client84.gql`
5041
5221
  fragment CouponVendorProductFields on CouponVendorProductType {
5042
5222
  couponId
5043
5223
  vendorId
@@ -5045,7 +5225,7 @@ var COUPON_VENDOR_PRODUCT_FIELDS_FRAGMENT = import_client82.gql`
5045
5225
  vendorCouponId
5046
5226
  }
5047
5227
  `;
5048
- var COUPON_DATA_PRODUCTS_FIELDS_FRAGMENT = import_client82.gql`
5228
+ var COUPON_DATA_PRODUCTS_FIELDS_FRAGMENT = import_client84.gql`
5049
5229
  fragment CouponDataProductsFields on CouponDataProductsType {
5050
5230
  active
5051
5231
  couponId
@@ -5061,7 +5241,7 @@ var COUPON_DATA_PRODUCTS_FIELDS_FRAGMENT = import_client82.gql`
5061
5241
  ${VENDOR_PRODUCT_LIST_FIELDS_FRAGMENT}
5062
5242
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
5063
5243
  `;
5064
- var COUPON_DATA_FIELDS_FRAGMENT = import_client82.gql`
5244
+ var COUPON_DATA_FIELDS_FRAGMENT = import_client84.gql`
5065
5245
  fragment CouponDataFields on CouponDataType {
5066
5246
  _id
5067
5247
  active
@@ -5095,7 +5275,7 @@ var COUPON_DATA_FIELDS_FRAGMENT = import_client82.gql`
5095
5275
  ${COUPON_VENDOR_PRODUCT_FIELDS_FRAGMENT}
5096
5276
  ${COUPON_DATA_PRODUCTS_FIELDS_FRAGMENT}
5097
5277
  `;
5098
- var COUPON = import_client82.gql`
5278
+ var COUPON = import_client84.gql`
5099
5279
  fragment CouponFields on CouponType {
5100
5280
  _id
5101
5281
  active
@@ -5112,7 +5292,7 @@ var COUPON = import_client82.gql`
5112
5292
  ${OWNER_FIELDS_FRAGMENT}
5113
5293
  ${COUPON_DATA_FIELDS_FRAGMENT}
5114
5294
  `;
5115
- var GET_COUPONS = import_client82.gql`
5295
+ var GET_COUPONS = import_client84.gql`
5116
5296
  query getCoupons(
5117
5297
  $region: String
5118
5298
  $category: String
@@ -5147,7 +5327,7 @@ var GET_COUPONS = import_client82.gql`
5147
5327
  }
5148
5328
  ${COUPON}
5149
5329
  `;
5150
- var GET_COUPON = import_client82.gql`
5330
+ var GET_COUPON = import_client84.gql`
5151
5331
  query getCoupon($_id: ID!) {
5152
5332
  coupon(_id: $_id) {
5153
5333
  ...CouponFields
@@ -5157,7 +5337,7 @@ var GET_COUPON = import_client82.gql`
5157
5337
  `;
5158
5338
 
5159
5339
  // src/graphql/mutations/coupon.ts
5160
- var CREATE_COUPON_MUTATION = import_client83.gql`
5340
+ var CREATE_COUPON_MUTATION = import_client85.gql`
5161
5341
  mutation createCoupon($input: CouponInputType!) {
5162
5342
  createCoupon(input: $input) {
5163
5343
  data {
@@ -5168,7 +5348,7 @@ var CREATE_COUPON_MUTATION = import_client83.gql`
5168
5348
  }
5169
5349
  ${COUPON}
5170
5350
  `;
5171
- var UPDATE_COUPON_MUTATION = import_client83.gql`
5351
+ var UPDATE_COUPON_MUTATION = import_client85.gql`
5172
5352
  mutation updateCoupon(
5173
5353
  $couponDocumentId: ID!
5174
5354
  $couponId: ID!
@@ -5187,7 +5367,7 @@ var UPDATE_COUPON_MUTATION = import_client83.gql`
5187
5367
  }
5188
5368
  ${COUPON}
5189
5369
  `;
5190
- var DELETE_COUPON_MUTATION = import_client83.gql`
5370
+ var DELETE_COUPON_MUTATION = import_client85.gql`
5191
5371
  mutation deleteCoupon($input: ProductCouponInputType!) {
5192
5372
  deleteCoupon(input: $input) {
5193
5373
  data
@@ -5195,7 +5375,7 @@ var DELETE_COUPON_MUTATION = import_client83.gql`
5195
5375
  }
5196
5376
  }
5197
5377
  `;
5198
- var SCAN_COUPON_MUTATION = import_client83.gql`
5378
+ var SCAN_COUPON_MUTATION = import_client85.gql`
5199
5379
  mutation scanCoupon($input: ProductCouponInputType!) {
5200
5380
  scanCoupon(input: $input) {
5201
5381
  data
@@ -5203,7 +5383,7 @@ var SCAN_COUPON_MUTATION = import_client83.gql`
5203
5383
  }
5204
5384
  }
5205
5385
  `;
5206
- var REWARD_COUPON_MUTATION = import_client83.gql`
5386
+ var REWARD_COUPON_MUTATION = import_client85.gql`
5207
5387
  mutation rewardCoupon($input: ProductCouponInputType!, $userId: ID!) {
5208
5388
  rewardCoupon(input: $input, userId: $userId) {
5209
5389
  data
@@ -5214,32 +5394,32 @@ var REWARD_COUPON_MUTATION = import_client83.gql`
5214
5394
 
5215
5395
  // src/graphql/hooks/coupon/hooksMutation.ts
5216
5396
  var useCreateCoupon = () => {
5217
- const [createCoupon, { loading, error }] = (0, import_client84.useMutation)(CREATE_COUPON_MUTATION, {
5397
+ const [createCoupon, { loading, error }] = (0, import_client86.useMutation)(CREATE_COUPON_MUTATION, {
5218
5398
  awaitRefetchQueries: true,
5219
5399
  refetchQueries: [GET_COUPONS]
5220
5400
  });
5221
5401
  return { createCoupon, error, loading };
5222
5402
  };
5223
5403
  var useUpdateCoupon = () => {
5224
- const [updateCoupon, { loading, error }] = (0, import_client84.useMutation)(UPDATE_COUPON_MUTATION, {
5404
+ const [updateCoupon, { loading, error }] = (0, import_client86.useMutation)(UPDATE_COUPON_MUTATION, {
5225
5405
  awaitRefetchQueries: true,
5226
5406
  refetchQueries: [GET_COUPONS]
5227
5407
  });
5228
5408
  return { error, loading, updateCoupon };
5229
5409
  };
5230
5410
  var useDeleteCoupon = () => {
5231
- const [deleteCoupon, { loading, error }] = (0, import_client84.useMutation)(DELETE_COUPON_MUTATION, {
5411
+ const [deleteCoupon, { loading, error }] = (0, import_client86.useMutation)(DELETE_COUPON_MUTATION, {
5232
5412
  awaitRefetchQueries: true,
5233
5413
  refetchQueries: [GET_COUPONS]
5234
5414
  });
5235
5415
  return { deleteCoupon, error, loading };
5236
5416
  };
5237
5417
  var useScanCoupon = () => {
5238
- const [scanCoupon, { loading, error }] = (0, import_client84.useMutation)(SCAN_COUPON_MUTATION);
5418
+ const [scanCoupon, { loading, error }] = (0, import_client86.useMutation)(SCAN_COUPON_MUTATION);
5239
5419
  return { error, loading, scanCoupon };
5240
5420
  };
5241
5421
  var useRewardCoupon = () => {
5242
- const [rewardCoupon, { loading, error }] = (0, import_client84.useMutation)(REWARD_COUPON_MUTATION, {
5422
+ const [rewardCoupon, { loading, error }] = (0, import_client86.useMutation)(REWARD_COUPON_MUTATION, {
5243
5423
  awaitRefetchQueries: true,
5244
5424
  refetchQueries: [GET_COUPONS]
5245
5425
  });
@@ -5247,9 +5427,9 @@ var useRewardCoupon = () => {
5247
5427
  };
5248
5428
 
5249
5429
  // src/graphql/hooks/coupon/hooksQuery.ts
5250
- var import_client85 = require("@apollo/client");
5430
+ var import_client87 = require("@apollo/client");
5251
5431
  var useGetCoupons = (variables) => {
5252
- const { loading, error, data, refetch } = (0, import_client85.useQuery)(GET_COUPONS, {
5432
+ const { loading, error, data, refetch } = (0, import_client87.useQuery)(GET_COUPONS, {
5253
5433
  fetchPolicy: "network-only",
5254
5434
  variables
5255
5435
  });
@@ -5261,7 +5441,7 @@ var useGetCoupons = (variables) => {
5261
5441
  return { coupons, error, loading, refetch };
5262
5442
  };
5263
5443
  var useGetCoupon = (_id) => {
5264
- const { loading, error, data, refetch } = (0, import_client85.useQuery)(GET_COUPON, {
5444
+ const { loading, error, data, refetch } = (0, import_client87.useQuery)(GET_COUPON, {
5265
5445
  fetchPolicy: "network-only",
5266
5446
  skip: !_id || _id === "",
5267
5447
  variables: { _id }
@@ -5271,7 +5451,7 @@ var useGetCoupon = (_id) => {
5271
5451
  };
5272
5452
 
5273
5453
  // src/graphql/hooks/usePaginatedList.ts
5274
- var import_client86 = require("@apollo/client");
5454
+ var import_client88 = require("@apollo/client");
5275
5455
  var import_react = require("react");
5276
5456
 
5277
5457
  // src/utils/pagination.ts
@@ -5330,7 +5510,7 @@ function usePaginatedList({
5330
5510
  setHasSettled(false);
5331
5511
  setOffset(0);
5332
5512
  }, [variablesKey, pageSize, skip]);
5333
- const { data, loading, error, refetch } = (0, import_client86.useQuery)(document, {
5513
+ const { data, loading, error, refetch } = (0, import_client88.useQuery)(document, {
5334
5514
  fetchPolicy: "network-only",
5335
5515
  skip,
5336
5516
  variables: { ...variables, options: { limit: pageSize + 1, offset } }
@@ -5400,14 +5580,24 @@ function usePaginatedList({
5400
5580
  // Annotate the CommonJS export names for ESM import in node:
5401
5581
  0 && (module.exports = {
5402
5582
  ACTIVATE_VENDOR_CLAIM_MUTATION,
5583
+ AD_BOOKING_FIELDS_FRAGMENT,
5584
+ APPROVE_AD_BOOKING_MUTATION,
5585
+ CLAIM_RESERVED_AD_DAY_MUTATION,
5586
+ CREATE_AD_CHECKOUT_MUTATION,
5587
+ GET_AD_BOOKING,
5588
+ GET_AD_DAILY_PRICES,
5589
+ GET_AD_DAY_AVAILABILITY,
5590
+ GET_AD_SETTINGS,
5403
5591
  GET_EVENT,
5404
5592
  GET_EVENTS,
5405
5593
  GET_EVENT_BY_SLUG,
5406
5594
  GET_EVENT_INFO,
5595
+ GET_MY_AD_BOOKINGS,
5407
5596
  GET_OWNED_EVENT,
5408
5597
  GET_PARTNER,
5409
5598
  GET_PARTNERS,
5410
5599
  GET_PARTNER_BY_SLUG,
5600
+ GET_PENDING_AD_BOOKINGS,
5411
5601
  GET_POST,
5412
5602
  GET_POSTS,
5413
5603
  GET_POSTS_BY_TYPE,
@@ -5419,6 +5609,9 @@ function usePaginatedList({
5419
5609
  GET_VENDOR_BY_SLUG,
5420
5610
  GET_VENDOR_INFO,
5421
5611
  MY_PENDING_VENDOR_CLAIM,
5612
+ RECORD_AD_IMPRESSION_MUTATION,
5613
+ UPDATE_AD_DAILY_PRICE_MUTATION,
5614
+ UPDATE_AD_SETTINGS_MUTATION,
5422
5615
  toGraphqlQueryString,
5423
5616
  useActivateVendorClaim,
5424
5617
  useAddParticipantToChat,