@timardex/cluemart-shared 1.5.752 → 1.5.753

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -68,6 +68,12 @@ __export(index_exports, {
68
68
  EnumUserRole: () => EnumUserRole,
69
69
  EnumVendorType: () => EnumVendorType,
70
70
  EnumVerificationType: () => EnumVerificationType,
71
+ GET_EVENT: () => GET_EVENT,
72
+ GET_EVENT_INFO: () => GET_EVENT_INFO,
73
+ GET_PARTNER: () => GET_PARTNER,
74
+ GET_POST: () => GET_POST,
75
+ GET_VENDOR: () => GET_VENDOR,
76
+ GET_VENDOR_INFO: () => GET_VENDOR_INFO,
71
77
  IMAGE_EXTENSION: () => IMAGE_EXTENSION,
72
78
  IOS_URL: () => IOS_URL,
73
79
  ImageTypeEnum: () => ImageTypeEnum,
@@ -225,6 +231,7 @@ __export(index_exports, {
225
231
  statusOptions: () => statusOptions,
226
232
  tagOptions: () => tagOptions,
227
233
  timeFormat: () => timeFormat,
234
+ toGraphqlQueryString: () => toGraphqlQueryString,
228
235
  toNZTime: () => toNZTime,
229
236
  truncateText: () => truncateText,
230
237
  useAddParticipantToChat: () => useAddParticipantToChat,
@@ -3025,68 +3032,37 @@ var partnerBasicInfoFields = [
3025
3032
  }
3026
3033
  ];
3027
3034
 
3028
- // src/graphql/hooks/admin/hooksMutation.ts
3029
- var import_client5 = require("@apollo/client");
3030
-
3031
- // src/graphql/mutations/admin.ts
3032
- var import_client = require("@apollo/client");
3033
- var ADMIN_UPDATE_RESOURCE_TYPE_MUTATION = import_client.gql`
3034
- mutation adminUpdateResourceType($input: AdminUpdateResourceInputType!) {
3035
- adminUpdateResourceType(input: $input) {
3036
- active
3037
- resourceId
3038
- resourceType
3039
- }
3040
- }
3041
- `;
3042
- var ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION = import_client.gql`
3043
- mutation adminResendUserVerificationEmail($userId: ID!) {
3044
- adminResendUserVerificationEmail(userId: $userId)
3045
- }
3046
- `;
3047
- var ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION = import_client.gql`
3048
- mutation adminPermanentlyDeleteResource(
3049
- $resourceId: ID!
3050
- $resourceType: ResourceTypeEnum!
3051
- ) {
3052
- adminPermanentlyDeleteResource(
3053
- resourceId: $resourceId
3054
- resourceType: $resourceType
3055
- )
3056
- }
3057
- `;
3058
-
3059
3035
  // src/graphql/queries/event.ts
3060
- var import_client3 = require("@apollo/client");
3036
+ var import_client2 = require("@apollo/client");
3061
3037
 
3062
3038
  // src/graphql/queries/global.ts
3063
- var import_client2 = require("@apollo/client");
3064
- var POSTER_USAGE_FIELDS_FRAGMENT = import_client2.gql`
3039
+ var import_client = require("@apollo/client");
3040
+ var POSTER_USAGE_FIELDS_FRAGMENT = import_client.gql`
3065
3041
  fragment PosterUsageFields on PosterUsageType {
3066
3042
  month
3067
3043
  count
3068
3044
  }
3069
3045
  `;
3070
- var SOCIAL_MEDIA_FIELDS_FRAGMENT = import_client2.gql`
3046
+ var SOCIAL_MEDIA_FIELDS_FRAGMENT = import_client.gql`
3071
3047
  fragment SocialMediaFields on SocialMediaType {
3072
3048
  name
3073
3049
  link
3074
3050
  }
3075
3051
  `;
3076
- var RESOURCE_IMAGE_FIELDS_FRAGMENT = import_client2.gql`
3052
+ var RESOURCE_IMAGE_FIELDS_FRAGMENT = import_client.gql`
3077
3053
  fragment ResourceImageFields on ResourceImageType {
3078
3054
  active
3079
3055
  source
3080
3056
  title
3081
3057
  }
3082
3058
  `;
3083
- var OWNER_FIELDS_FRAGMENT = import_client2.gql`
3059
+ var OWNER_FIELDS_FRAGMENT = import_client.gql`
3084
3060
  fragment OwnerFields on OwnerType {
3085
3061
  email
3086
3062
  userId
3087
3063
  }
3088
3064
  `;
3089
- var CATEGORY_FIELDS_FRAGMENT = import_client2.gql`
3065
+ var CATEGORY_FIELDS_FRAGMENT = import_client.gql`
3090
3066
  fragment CategoryFields on CategoryType {
3091
3067
  id
3092
3068
  name
@@ -3100,7 +3076,7 @@ var CATEGORY_FIELDS_FRAGMENT = import_client2.gql`
3100
3076
  }
3101
3077
  }
3102
3078
  `;
3103
- var LICENCE_FIELDS_FRAGMENT = import_client2.gql`
3079
+ var LICENCE_FIELDS_FRAGMENT = import_client.gql`
3104
3080
  fragment LicenceFields on UserLicenceType {
3105
3081
  expiryDate
3106
3082
  issuedDate
@@ -3108,7 +3084,7 @@ var LICENCE_FIELDS_FRAGMENT = import_client2.gql`
3108
3084
  prevLicenceType
3109
3085
  }
3110
3086
  `;
3111
- var ASSOCIATES_FIELDS_FRAGMENT = import_client2.gql`
3087
+ var ASSOCIATES_FIELDS_FRAGMENT = import_client.gql`
3112
3088
  fragment AssociatesFields on AssociateType {
3113
3089
  email
3114
3090
  resourceId
@@ -3119,7 +3095,7 @@ var ASSOCIATES_FIELDS_FRAGMENT = import_client2.gql`
3119
3095
  }
3120
3096
  ${LICENCE_FIELDS_FRAGMENT}
3121
3097
  `;
3122
- var TERMS_AGREEMENT_FIELDS_FRAGMENT = import_client2.gql`
3098
+ var TERMS_AGREEMENT_FIELDS_FRAGMENT = import_client.gql`
3123
3099
  fragment TermsAgreementFields on TermsAgreementType {
3124
3100
  appBuildNumber
3125
3101
  appId
@@ -3135,7 +3111,7 @@ var TERMS_AGREEMENT_FIELDS_FRAGMENT = import_client2.gql`
3135
3111
  timestamp
3136
3112
  }
3137
3113
  `;
3138
- var DATETIME_FIELDS_FRAGMENT = import_client2.gql`
3114
+ var DATETIME_FIELDS_FRAGMENT = import_client.gql`
3139
3115
  fragment DateTimeFields on DateTimeType {
3140
3116
  dateStatus
3141
3117
  endDate
@@ -3144,13 +3120,13 @@ var DATETIME_FIELDS_FRAGMENT = import_client2.gql`
3144
3120
  startTime
3145
3121
  }
3146
3122
  `;
3147
- var LOCATION_GEO_FIELDS_FRAGMENT = import_client2.gql`
3123
+ var LOCATION_GEO_FIELDS_FRAGMENT = import_client.gql`
3148
3124
  fragment LocationGeoFields on LocationGeoType {
3149
3125
  coordinates
3150
3126
  type
3151
3127
  }
3152
3128
  `;
3153
- var LOCATION_FIELDS_FRAGMENT = import_client2.gql`
3129
+ var LOCATION_FIELDS_FRAGMENT = import_client.gql`
3154
3130
  fragment LocationFields on LocationType {
3155
3131
  city
3156
3132
  country
@@ -3164,7 +3140,7 @@ var LOCATION_FIELDS_FRAGMENT = import_client2.gql`
3164
3140
  }
3165
3141
  ${LOCATION_GEO_FIELDS_FRAGMENT}
3166
3142
  `;
3167
- var USER_ACTIVITY_FIELDS_FRAGMENT = import_client2.gql`
3143
+ var USER_ACTIVITY_FIELDS_FRAGMENT = import_client.gql`
3168
3144
  fragment UserActivityFields on UserActivityType {
3169
3145
  favourites {
3170
3146
  events
@@ -3198,14 +3174,14 @@ var USER_ACTIVITY_FIELDS_FRAGMENT = import_client2.gql`
3198
3174
  }
3199
3175
  ${DATETIME_FIELDS_FRAGMENT}
3200
3176
  `;
3201
- var REDEEMED_REWARD_FIELDS_FRAGMENT = import_client2.gql`
3177
+ var REDEEMED_REWARD_FIELDS_FRAGMENT = import_client.gql`
3202
3178
  fragment RedeemedRewardFields on RedeemedRewardType {
3203
3179
  name
3204
3180
  pointsUsed
3205
3181
  redeemedAt
3206
3182
  }
3207
3183
  `;
3208
- var USER_FIELDS_FRAGMENT = import_client2.gql`
3184
+ var USER_FIELDS_FRAGMENT = import_client.gql`
3209
3185
  fragment UserFields on UserType {
3210
3186
  _id
3211
3187
  active
@@ -3256,14 +3232,14 @@ var USER_FIELDS_FRAGMENT = import_client2.gql`
3256
3232
  ${LOCATION_FIELDS_FRAGMENT}
3257
3233
  ${REDEEMED_REWARD_FIELDS_FRAGMENT}
3258
3234
  `;
3259
- var STALL_TYPE_FIELDS_FRAGMENT = import_client2.gql`
3235
+ var STALL_TYPE_FIELDS_FRAGMENT = import_client.gql`
3260
3236
  fragment StallTypeFields on StallTypeType {
3261
3237
  label
3262
3238
  price
3263
3239
  stallCapacity
3264
3240
  }
3265
3241
  `;
3266
- var RELATION_DATES_FRAGMENT = import_client2.gql`
3242
+ var RELATION_DATES_FRAGMENT = import_client.gql`
3267
3243
  fragment RelationDates on RelationDateType {
3268
3244
  dateTime {
3269
3245
  dateStatus
@@ -3284,14 +3260,14 @@ var RELATION_DATES_FRAGMENT = import_client2.gql`
3284
3260
  }
3285
3261
  ${STALL_TYPE_FIELDS_FRAGMENT}
3286
3262
  `;
3287
- var CONTACT_DETAILS_FIELDS_FRAGMENT = import_client2.gql`
3263
+ var CONTACT_DETAILS_FIELDS_FRAGMENT = import_client.gql`
3288
3264
  fragment ContactDetailsFields on ContactDetailsType {
3289
3265
  email
3290
3266
  landlinePhone
3291
3267
  mobilePhone
3292
3268
  }
3293
3269
  `;
3294
- var EVENT_LIST_ITEM = import_client2.gql`
3270
+ var EVENT_LIST_ITEM = import_client.gql`
3295
3271
  fragment EventListItemFields on EventListItemType {
3296
3272
  _id
3297
3273
  active
@@ -3334,7 +3310,7 @@ var EVENT_LIST_ITEM = import_client2.gql`
3334
3310
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
3335
3311
  ${RELATION_DATES_FRAGMENT}
3336
3312
  `;
3337
- var RELATED_POST_FIELDS_FRAGMENT = import_client2.gql`
3313
+ var RELATED_POST_FIELDS_FRAGMENT = import_client.gql`
3338
3314
  fragment RelatedPostFields on RelatedPostType {
3339
3315
  postId
3340
3316
  postType
@@ -3342,7 +3318,7 @@ var RELATED_POST_FIELDS_FRAGMENT = import_client2.gql`
3342
3318
  `;
3343
3319
 
3344
3320
  // src/graphql/queries/event.ts
3345
- var EVENT_INFO = import_client3.gql`
3321
+ var EVENT_INFO = import_client2.gql`
3346
3322
  fragment EventInfoFields on EventInfoType {
3347
3323
  _id
3348
3324
  applicationDeadlineHours
@@ -3378,7 +3354,7 @@ var EVENT_INFO = import_client3.gql`
3378
3354
  }
3379
3355
  ${STALL_TYPE_FIELDS_FRAGMENT}
3380
3356
  `;
3381
- var EVENT = import_client3.gql`
3357
+ var EVENT = import_client2.gql`
3382
3358
  fragment EventFields on EventType {
3383
3359
  _id
3384
3360
  active
@@ -3455,7 +3431,7 @@ var EVENT = import_client3.gql`
3455
3431
  ${RELATION_DATES_FRAGMENT}
3456
3432
  ${RELATED_POST_FIELDS_FRAGMENT}
3457
3433
  `;
3458
- var GET_EVENTS = import_client3.gql`
3434
+ var GET_EVENTS = import_client2.gql`
3459
3435
  query getEvents($dateStatus: EventDateStatusEnumType) {
3460
3436
  events(dateStatus: $dateStatus) {
3461
3437
  ...EventListItemFields
@@ -3463,7 +3439,7 @@ var GET_EVENTS = import_client3.gql`
3463
3439
  }
3464
3440
  ${EVENT_LIST_ITEM}
3465
3441
  `;
3466
- var GET_EVENT = import_client3.gql`
3442
+ var GET_EVENT = import_client2.gql`
3467
3443
  query getEvent($_id: ID!) {
3468
3444
  event(_id: $_id) {
3469
3445
  ...EventFields
@@ -3471,7 +3447,7 @@ var GET_EVENT = import_client3.gql`
3471
3447
  }
3472
3448
  ${EVENT}
3473
3449
  `;
3474
- var GET_EVENT_BY_PLACE_ID = import_client3.gql`
3450
+ var GET_EVENT_BY_PLACE_ID = import_client2.gql`
3475
3451
  query getEventByPlaceId($googlePlaceId: String!) {
3476
3452
  eventByPlaceId(googlePlaceId: $googlePlaceId) {
3477
3453
  ...EventListItemFields
@@ -3479,7 +3455,7 @@ var GET_EVENT_BY_PLACE_ID = import_client3.gql`
3479
3455
  }
3480
3456
  ${EVENT_LIST_ITEM}
3481
3457
  `;
3482
- var GET_EVENTS_BY_REGION = import_client3.gql`
3458
+ var GET_EVENTS_BY_REGION = import_client2.gql`
3483
3459
  query getEventsByRegion(
3484
3460
  $region: String!
3485
3461
  $options: ResourcesByRegionOptions
@@ -3495,7 +3471,7 @@ var GET_EVENTS_BY_REGION = import_client3.gql`
3495
3471
  }
3496
3472
  ${EVENT_LIST_ITEM}
3497
3473
  `;
3498
- var SEARCH_EVENTS = import_client3.gql`
3474
+ var SEARCH_EVENTS = import_client2.gql`
3499
3475
  query searchEvents(
3500
3476
  $region: String
3501
3477
  $search: String
@@ -3513,7 +3489,7 @@ var SEARCH_EVENTS = import_client3.gql`
3513
3489
  }
3514
3490
  ${EVENT_LIST_ITEM}
3515
3491
  `;
3516
- var GET_EVENTS_NEAR_ME = import_client3.gql`
3492
+ var GET_EVENTS_NEAR_ME = import_client2.gql`
3517
3493
  query getEventsNearMe(
3518
3494
  $latitude: Float!
3519
3495
  $longitude: Float!
@@ -3531,7 +3507,7 @@ var GET_EVENTS_NEAR_ME = import_client3.gql`
3531
3507
  }
3532
3508
  ${EVENT_LIST_ITEM}
3533
3509
  `;
3534
- var GET_EVENT_INFO = import_client3.gql`
3510
+ var GET_EVENT_INFO = import_client2.gql`
3535
3511
  query getEventInfo($eventId: ID!) {
3536
3512
  eventInfo(eventId: $eventId) {
3537
3513
  ...EventInfoFields
@@ -3541,8 +3517,8 @@ var GET_EVENT_INFO = import_client3.gql`
3541
3517
  `;
3542
3518
 
3543
3519
  // src/graphql/queries/vendor.ts
3544
- var import_client4 = require("@apollo/client");
3545
- var VENDOR_DATETIME_FIELDS_FRAGMENT = import_client4.gql`
3520
+ var import_client3 = require("@apollo/client");
3521
+ var VENDOR_DATETIME_FIELDS_FRAGMENT = import_client3.gql`
3546
3522
  fragment VendorDateTimeFields on VendorDateTimeType {
3547
3523
  dateStatus
3548
3524
  endDate
@@ -3551,7 +3527,7 @@ var VENDOR_DATETIME_FIELDS_FRAGMENT = import_client4.gql`
3551
3527
  startTime
3552
3528
  }
3553
3529
  `;
3554
- var VENDOR_PRODUCT_LIST_FIELDS_FRAGMENT = import_client4.gql`
3530
+ var VENDOR_PRODUCT_LIST_FIELDS_FRAGMENT = import_client3.gql`
3555
3531
  fragment VendorProductListFields on VendorProductListType {
3556
3532
  description
3557
3533
  name
@@ -3560,7 +3536,7 @@ var VENDOR_PRODUCT_LIST_FIELDS_FRAGMENT = import_client4.gql`
3560
3536
  productGroups
3561
3537
  }
3562
3538
  `;
3563
- var VENDOR = import_client4.gql`
3539
+ var VENDOR = import_client3.gql`
3564
3540
  fragment VendorFields on VendorType {
3565
3541
  _id
3566
3542
  active
@@ -3656,13 +3632,13 @@ var VENDOR = import_client4.gql`
3656
3632
  ${RELATION_DATES_FRAGMENT}
3657
3633
  ${RELATED_POST_FIELDS_FRAGMENT}
3658
3634
  `;
3659
- var VENDOR_ATTRIBUTES_FRAGMENT = import_client4.gql`
3635
+ var VENDOR_ATTRIBUTES_FRAGMENT = import_client3.gql`
3660
3636
  fragment VendorAttributesFields on VendorAttributesType {
3661
3637
  details
3662
3638
  isRequired
3663
3639
  }
3664
3640
  `;
3665
- var VENDOR_INFO = import_client4.gql`
3641
+ var VENDOR_INFO = import_client3.gql`
3666
3642
  fragment VendorInfoFields on VendorInfoType {
3667
3643
  _id
3668
3644
  compliance {
@@ -3703,7 +3679,7 @@ var VENDOR_INFO = import_client4.gql`
3703
3679
  ${VENDOR_ATTRIBUTES_FRAGMENT}
3704
3680
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
3705
3681
  `;
3706
- var UNREGISTERED_VENDOR_INVITATION_FRAGMENT = import_client4.gql`
3682
+ var UNREGISTERED_VENDOR_INVITATION_FRAGMENT = import_client3.gql`
3707
3683
  fragment UnregisteredVendorInvitationFields on UnregisteredVendorInvitationType {
3708
3684
  dateTime {
3709
3685
  ...DateTimeFields
@@ -3712,7 +3688,7 @@ var UNREGISTERED_VENDOR_INVITATION_FRAGMENT = import_client4.gql`
3712
3688
  }
3713
3689
  ${DATETIME_FIELDS_FRAGMENT}
3714
3690
  `;
3715
- var UNREGISTERED_VENDOR = import_client4.gql`
3691
+ var UNREGISTERED_VENDOR = import_client3.gql`
3716
3692
  fragment UnregisteredVendorFields on UnregisteredVendorType {
3717
3693
  _id
3718
3694
  active
@@ -3730,7 +3706,7 @@ var UNREGISTERED_VENDOR = import_client4.gql`
3730
3706
  }
3731
3707
  ${UNREGISTERED_VENDOR_INVITATION_FRAGMENT}
3732
3708
  `;
3733
- var GET_VENDORS = import_client4.gql`
3709
+ var GET_VENDORS = import_client3.gql`
3734
3710
  query getVendors {
3735
3711
  vendors {
3736
3712
  ...VendorFields
@@ -3738,7 +3714,7 @@ var GET_VENDORS = import_client4.gql`
3738
3714
  }
3739
3715
  ${VENDOR}
3740
3716
  `;
3741
- var GET_VENDOR = import_client4.gql`
3717
+ var GET_VENDOR = import_client3.gql`
3742
3718
  query getVendor($_id: ID!) {
3743
3719
  vendor(_id: $_id) {
3744
3720
  ...VendorFields
@@ -3746,7 +3722,7 @@ var GET_VENDOR = import_client4.gql`
3746
3722
  }
3747
3723
  ${VENDOR}
3748
3724
  `;
3749
- var GET_VENDORS_BY_REGION = import_client4.gql`
3725
+ var GET_VENDORS_BY_REGION = import_client3.gql`
3750
3726
  query getVendorsByRegion(
3751
3727
  $region: String!
3752
3728
  $options: ResourcesByRegionOptions
@@ -3757,7 +3733,7 @@ var GET_VENDORS_BY_REGION = import_client4.gql`
3757
3733
  }
3758
3734
  ${VENDOR}
3759
3735
  `;
3760
- var SEARCH_VENDORS = import_client4.gql`
3736
+ var SEARCH_VENDORS = import_client3.gql`
3761
3737
  query searchVendors($search: String!, $region: String) {
3762
3738
  vendorSearch(search: $search, region: $region) {
3763
3739
  ...VendorFields
@@ -3765,7 +3741,7 @@ var SEARCH_VENDORS = import_client4.gql`
3765
3741
  }
3766
3742
  ${VENDOR}
3767
3743
  `;
3768
- var GET_VENDOR_INFO = import_client4.gql`
3744
+ var GET_VENDOR_INFO = import_client3.gql`
3769
3745
  query getVendorInfo($vendorId: ID!) {
3770
3746
  vendorInfo(vendorId: $vendorId) {
3771
3747
  ...VendorInfoFields
@@ -3773,7 +3749,7 @@ var GET_VENDOR_INFO = import_client4.gql`
3773
3749
  }
3774
3750
  ${VENDOR_INFO}
3775
3751
  `;
3776
- var GET_UNREGISTERED_VENDORS = import_client4.gql`
3752
+ var GET_UNREGISTERED_VENDORS = import_client3.gql`
3777
3753
  query getUnregisteredVendors {
3778
3754
  unregisteredVendors {
3779
3755
  ...UnregisteredVendorFields
@@ -3781,7 +3757,7 @@ var GET_UNREGISTERED_VENDORS = import_client4.gql`
3781
3757
  }
3782
3758
  ${UNREGISTERED_VENDOR}
3783
3759
  `;
3784
- var GET_UNREGISTERED_VENDORS_BY_INVITER_ID = import_client4.gql`
3760
+ var GET_UNREGISTERED_VENDORS_BY_INVITER_ID = import_client3.gql`
3785
3761
  query getUnregisteredVendorsByInviterId($inviterId: ID!) {
3786
3762
  unregisteredVendorsByInviterId(inviterId: $inviterId) {
3787
3763
  ...UnregisteredVendorFields
@@ -3789,7 +3765,7 @@ var GET_UNREGISTERED_VENDORS_BY_INVITER_ID = import_client4.gql`
3789
3765
  }
3790
3766
  ${UNREGISTERED_VENDOR}
3791
3767
  `;
3792
- var GET_UNREGISTERED_VENDOR = import_client4.gql`
3768
+ var GET_UNREGISTERED_VENDOR = import_client3.gql`
3793
3769
  query getUnregisteredVendor($_id: ID!) {
3794
3770
  unregisteredVendor(_id: $_id) {
3795
3771
  ...UnregisteredVendorFields
@@ -3798,166 +3774,1335 @@ var GET_UNREGISTERED_VENDOR = import_client4.gql`
3798
3774
  ${UNREGISTERED_VENDOR}
3799
3775
  `;
3800
3776
 
3801
- // src/graphql/hooks/admin/hooksMutation.ts
3802
- var useAdminUpdateResourceType = () => {
3803
- const [adminUpdateResourceType, { loading, error }] = (0, import_client5.useMutation)(ADMIN_UPDATE_RESOURCE_TYPE_MUTATION, {
3804
- awaitRefetchQueries: true,
3805
- refetchQueries: (mutationResult) => {
3806
- const adminUpdateResourceType2 = mutationResult?.data?.adminUpdateResourceType;
3807
- const resourceId = adminUpdateResourceType2?.resourceId;
3808
- const resourceType = adminUpdateResourceType2?.resourceType;
3809
- if (!resourceId) return [];
3810
- const detectQuery = resourceType === "event" /* EVENT */ ? GET_EVENT : GET_VENDOR;
3811
- return [
3812
- {
3813
- query: detectQuery,
3814
- variables: { _id: resourceId }
3815
- }
3816
- ];
3777
+ // src/graphql/queries/partner.ts
3778
+ var import_client4 = require("@apollo/client");
3779
+ var PARTNER = import_client4.gql`
3780
+ fragment PartnerFields on PartnerType {
3781
+ _id
3782
+ active
3783
+ associates {
3784
+ ...AssociatesFields
3817
3785
  }
3818
- });
3819
- return {
3820
- adminUpdateResourceType,
3821
- error,
3822
- loading
3823
- };
3824
- };
3825
- var useAdminResendUserVerificationEmail = () => {
3826
- const [adminResendUserVerificationEmail, { loading, error }] = (0, import_client5.useMutation)(
3827
- ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION
3828
- );
3829
- return {
3830
- adminResendUserVerificationEmail,
3831
- error,
3832
- loading
3833
- };
3834
- };
3835
- var useAdminPermanentlyDeleteResource = () => {
3836
- const [adminPermanentlyDeleteResource, { loading, error }] = (0, import_client5.useMutation)(
3837
- ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION
3838
- );
3839
- return {
3840
- adminPermanentlyDeleteResource,
3841
- error,
3842
- loading
3843
- };
3844
- };
3845
-
3846
- // src/graphql/hooks/auth.ts
3847
- var import_client7 = require("@apollo/client");
3848
-
3849
- // src/graphql/mutations/auth.ts
3850
- var import_client6 = require("@apollo/client");
3851
- var REGISTER_MUTATION = import_client6.gql`
3852
- mutation register($input: RegisterInputType!) {
3853
- register(input: $input) {
3854
- message
3855
- refreshToken
3856
- token
3857
- user {
3858
- ...UserFields
3859
- }
3786
+ adIds
3787
+ cover {
3788
+ ...ResourceImageFields
3789
+ }
3790
+ createdAt
3791
+ contactDetails {
3792
+ ...ContactDetailsFields
3793
+ }
3794
+ description
3795
+ deletedAt
3796
+ images {
3797
+ ...ResourceImageFields
3798
+ }
3799
+ location {
3800
+ ...LocationFields
3801
+ }
3802
+ logo {
3803
+ ...ResourceImageFields
3804
+ }
3805
+ name
3806
+ nzbn
3807
+ owner {
3808
+ ...OwnerFields
3809
+ }
3810
+ partnerType
3811
+ posterUsage {
3812
+ ...PosterUsageFields
3813
+ }
3814
+ rating
3815
+ region
3816
+ reviewCount
3817
+ relatedPost {
3818
+ ...RelatedPostFields
3860
3819
  }
3820
+ socialMedia {
3821
+ ...SocialMediaFields
3822
+ }
3823
+ termsAgreement {
3824
+ ...TermsAgreementFields
3825
+ }
3826
+ updatedAt
3861
3827
  }
3862
- ${USER_FIELDS_FRAGMENT}
3828
+ ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
3829
+ ${LOCATION_FIELDS_FRAGMENT}
3830
+ ${OWNER_FIELDS_FRAGMENT}
3831
+ ${ASSOCIATES_FIELDS_FRAGMENT}
3832
+ ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
3833
+ ${POSTER_USAGE_FIELDS_FRAGMENT}
3834
+ ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
3835
+ ${CONTACT_DETAILS_FIELDS_FRAGMENT}
3836
+ ${RELATED_POST_FIELDS_FRAGMENT}
3863
3837
  `;
3864
- var LOGIN_MUTATION = import_client6.gql`
3865
- mutation login($input: LoginInputType!) {
3866
- login(input: $input) {
3867
- message
3868
- refreshToken
3869
- token
3870
- user {
3871
- ...UserFields
3872
- }
3838
+ var GET_PARTNERS = import_client4.gql`
3839
+ query getPartners {
3840
+ partners {
3841
+ ...PartnerFields
3873
3842
  }
3874
3843
  }
3875
- ${USER_FIELDS_FRAGMENT}
3844
+ ${PARTNER}
3876
3845
  `;
3877
- var LOGOUT_MUTATION = import_client6.gql`
3878
- mutation logout {
3879
- logout {
3880
- message
3846
+ var GET_PARTNER = import_client4.gql`
3847
+ query getPartner($_id: ID!) {
3848
+ partner(_id: $_id) {
3849
+ ...PartnerFields
3881
3850
  }
3882
3851
  }
3852
+ ${PARTNER}
3883
3853
  `;
3884
- var REFRESH_TOKEN_MUTATION = import_client6.gql`
3885
- mutation refreshToken($input: RefreshTokenInputType!) {
3886
- refreshToken(input: $input) {
3887
- refreshToken
3888
- token
3854
+ var GET_PARTNERS_BY_REGION = import_client4.gql`
3855
+ query getPartnersByRegion(
3856
+ $region: String!
3857
+ $options: ResourcesByRegionOptions
3858
+ ) {
3859
+ partnersByRegion(region: $region, options: $options) {
3860
+ ...PartnerFields
3889
3861
  }
3890
3862
  }
3863
+ ${PARTNER}
3891
3864
  `;
3892
- var RESET_PASSWORD_MUTATION = import_client6.gql`
3893
- mutation resetPassword($input: ResetPasswordInputType!) {
3894
- resetPassword(input: $input) {
3895
- message
3865
+ var SEARCH_PARTNERS = import_client4.gql`
3866
+ query searchPartners($search: String!, $region: String) {
3867
+ partnersSearch(search: $search, region: $region) {
3868
+ ...PartnerFields
3896
3869
  }
3897
3870
  }
3871
+ ${PARTNER}
3898
3872
  `;
3899
- var REQUEST_PASSWORD_RESET_MUTATION = import_client6.gql`
3900
- mutation requestPasswordReset($input: RequestPasswordResetInputType!) {
3901
- requestPasswordReset(input: $input) {
3902
- message
3873
+
3874
+ // src/graphql/queries/post.ts
3875
+ var import_client7 = require("@apollo/client");
3876
+
3877
+ // src/graphql/queries/game/dailyClue.ts
3878
+ var import_client5 = require("@apollo/client");
3879
+ var GAME_DATE_FIELDS_FRAGMENT = import_client5.gql`
3880
+ fragment GameDateFields on GameDateType {
3881
+ startDate
3882
+ endDate
3883
+ }
3884
+ `;
3885
+ var DAILY_CLUE_BASE_GAME_FIELDS_FRAGMENT = import_client5.gql`
3886
+ fragment DailyClueBaseGameFields on DailyClueBaseGameType {
3887
+ gameDate {
3888
+ ...GameDateFields
3903
3889
  }
3890
+ gameSolution
3904
3891
  }
3892
+ ${GAME_DATE_FIELDS_FRAGMENT}
3905
3893
  `;
3906
- var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client6.gql`
3907
- mutation validateVerificationToken(
3908
- $input: ValidateVerificationTokenInputType!
3909
- ) {
3910
- validateVerificationToken(input: $input) {
3911
- message
3894
+ var DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT = import_client5.gql`
3895
+ fragment DailyClueGameDataFields on DailyClueGameDataType {
3896
+ gameFields {
3897
+ ...DailyClueBaseGameFields
3898
+ }
3899
+ lastFoundDate
3900
+ points
3901
+ letterInfo {
3902
+ collected
3903
+ solutionShuffled
3904
+ todaysClue
3905
+ todaysLetter
3906
+ todaysPlacement
3912
3907
  }
3908
+ streak
3913
3909
  }
3910
+ ${DAILY_CLUE_BASE_GAME_FIELDS_FRAGMENT}
3914
3911
  `;
3915
3912
 
3916
- // src/graphql/hooks/auth.ts
3917
- var useRegister = () => {
3918
- const [register, { loading, error }] = (0, import_client7.useMutation)(REGISTER_MUTATION);
3919
- return { error, loading, register };
3920
- };
3921
- var useLogin = () => {
3922
- const [login, { loading, error }] = (0, import_client7.useMutation)(LOGIN_MUTATION);
3923
- return { error, loading, login };
3924
- };
3925
- var useLogout = () => {
3926
- const [logout, { loading, error }] = (0, import_client7.useMutation)(LOGOUT_MUTATION);
3927
- return { error, loading, logout };
3928
- };
3929
- var useRefreshToken = () => {
3930
- const [refreshToken, { loading, error }] = (0, import_client7.useMutation)(REFRESH_TOKEN_MUTATION);
3931
- return { error, loading, refreshToken };
3932
- };
3933
- var useRequestPasswordReset = () => {
3934
- const [requestPasswordReset, { loading, error }] = (0, import_client7.useMutation)(
3935
- REQUEST_PASSWORD_RESET_MUTATION
3936
- );
3937
- return { error, loading, requestPasswordReset };
3938
- };
3939
- var useValidateVerificationToken = () => {
3940
- const [validateVerificationToken, { loading, error }] = (0, import_client7.useMutation)(
3941
- VALIDATE_VERIFICATION_TOKEN_MUTATION
3942
- );
3943
- return { error, loading, validateVerificationToken };
3944
- };
3945
- var useResetPassword = () => {
3946
- const [resetPassword, { loading, error }] = (0, import_client7.useMutation)(
3947
- RESET_PASSWORD_MUTATION
3948
- );
3949
- return { error, loading, resetPassword };
3950
- };
3951
-
3952
- // src/graphql/hooks/chat/hooksMutation.ts
3953
- var import_client10 = require("@apollo/client");
3954
-
3955
- // src/graphql/mutations/chat.ts
3956
- var import_client9 = require("@apollo/client");
3957
-
3913
+ // src/graphql/queries/game/puzzleGame.ts
3914
+ var import_client6 = require("@apollo/client");
3915
+ var PUZZLE_ANSWER_FIELDS_FRAGMENT = import_client6.gql`
3916
+ fragment PuzzleAnswerFields on PuzzleAnswerType {
3917
+ answer
3918
+ answerId
3919
+ correct
3920
+ }
3921
+ `;
3922
+ var PUZZLE_QUESTION_FIELDS_FRAGMENT = import_client6.gql`
3923
+ fragment PuzzleQuestionFields on PuzzleQuestionType {
3924
+ answers {
3925
+ ...PuzzleAnswerFields
3926
+ }
3927
+ question
3928
+ questionId
3929
+ }
3930
+ ${PUZZLE_ANSWER_FIELDS_FRAGMENT}
3931
+ `;
3932
+ var PUZZLE_ANSWERED_QUESTION_FIELDS_FRAGMENT = import_client6.gql`
3933
+ fragment PuzzleAnsweredQuestionFields on PuzzleAnsweredQuestionType {
3934
+ questionId
3935
+ selectedAnswerId
3936
+ }
3937
+ `;
3938
+ var PUZZLE_BASE_GAME_FIELDS_FRAGMENT = import_client6.gql`
3939
+ fragment PuzzleBaseGameFields on PuzzleBaseGameType {
3940
+ questions {
3941
+ ...PuzzleQuestionFields
3942
+ }
3943
+ }
3944
+ ${PUZZLE_QUESTION_FIELDS_FRAGMENT}
3945
+ `;
3946
+ var PUZZLE_GAME_DATA_FIELDS_FRAGMENT = import_client6.gql`
3947
+ fragment PuzzleGameDataFields on PuzzleGameDataType {
3948
+ gameFields {
3949
+ ...PuzzleBaseGameFields
3950
+ }
3951
+ answeredQuestions {
3952
+ ...PuzzleAnsweredQuestionFields
3953
+ }
3954
+ points
3955
+ streak
3956
+ }
3957
+ ${PUZZLE_BASE_GAME_FIELDS_FRAGMENT}
3958
+ ${PUZZLE_ANSWERED_QUESTION_FIELDS_FRAGMENT}
3959
+ `;
3960
+
3961
+ // src/graphql/queries/post.ts
3962
+ var BASE_GAME_FIELDS_FRAGMENT = import_client7.gql`
3963
+ fragment BaseGameFields on BaseGameType {
3964
+ gameTypeId
3965
+ gameTitle
3966
+ gameType
3967
+ dailyClue {
3968
+ ...DailyClueBaseGameFields
3969
+ }
3970
+ miniQuiz {
3971
+ ...PuzzleBaseGameFields
3972
+ }
3973
+ oddOneOut {
3974
+ ...PuzzleBaseGameFields
3975
+ }
3976
+ }
3977
+ ${DAILY_CLUE_BASE_GAME_FIELDS_FRAGMENT}
3978
+ ${PUZZLE_BASE_GAME_FIELDS_FRAGMENT}
3979
+ `;
3980
+ var POST_CONTENT_DATA_FIELDS_FRAGMENT = import_client7.gql`
3981
+ fragment PostContentDataFields on PostContentData {
3982
+ game {
3983
+ ...BaseGameFields
3984
+ }
3985
+ textarea {
3986
+ title
3987
+ data
3988
+ }
3989
+ images {
3990
+ ...ResourceImageFields
3991
+ }
3992
+ video {
3993
+ source
3994
+ title
3995
+ }
3996
+ list {
3997
+ title
3998
+ items {
3999
+ text
4000
+ }
4001
+ }
4002
+ }
4003
+ ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
4004
+ ${BASE_GAME_FIELDS_FRAGMENT}
4005
+ `;
4006
+ var POST_CONTENT_FIELDS_FRAGMENT = import_client7.gql`
4007
+ fragment PostContentFields on PostContentType {
4008
+ contentData {
4009
+ ...PostContentDataFields
4010
+ }
4011
+ contentOrder
4012
+ contentType
4013
+ }
4014
+ ${POST_CONTENT_DATA_FIELDS_FRAGMENT}
4015
+ `;
4016
+ var POST_FIELDS_FRAGMENT = import_client7.gql`
4017
+ fragment PostFields on PostType {
4018
+ _id
4019
+ active
4020
+ caption
4021
+ content {
4022
+ ...PostContentFields
4023
+ }
4024
+ cover {
4025
+ ...ResourceImageFields
4026
+ }
4027
+ createdAt
4028
+ deletedAt
4029
+ postType
4030
+ resource {
4031
+ resourceId
4032
+ resourceRegion
4033
+ resourceType
4034
+ }
4035
+ tags
4036
+ title
4037
+ updatedAt
4038
+ }
4039
+ ${POST_CONTENT_FIELDS_FRAGMENT}
4040
+ ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
4041
+ `;
4042
+ var GET_POSTS = import_client7.gql`
4043
+ query getPosts {
4044
+ posts {
4045
+ ...PostFields
4046
+ }
4047
+ }
4048
+ ${POST_FIELDS_FRAGMENT}
4049
+ `;
4050
+ var GET_POST = import_client7.gql`
4051
+ query getPost($_id: ID!) {
4052
+ post(_id: $_id) {
4053
+ ...PostFields
4054
+ }
4055
+ }
4056
+ ${POST_FIELDS_FRAGMENT}
4057
+ `;
4058
+ var GET_POSTS_BY_TYPE = import_client7.gql`
4059
+ query getPostsByType($postType: PostTypeEnum!) {
4060
+ postsByType(postType: $postType) {
4061
+ ...PostFields
4062
+ }
4063
+ }
4064
+ ${POST_FIELDS_FRAGMENT}
4065
+ `;
4066
+
4067
+ // node_modules/graphql/jsutils/devAssert.mjs
4068
+ function devAssert(condition, message) {
4069
+ const booleanCondition = Boolean(condition);
4070
+ if (!booleanCondition) {
4071
+ throw new Error(message);
4072
+ }
4073
+ }
4074
+
4075
+ // node_modules/graphql/language/ast.mjs
4076
+ var QueryDocumentKeys = {
4077
+ Name: [],
4078
+ Document: ["definitions"],
4079
+ OperationDefinition: [
4080
+ "description",
4081
+ "name",
4082
+ "variableDefinitions",
4083
+ "directives",
4084
+ "selectionSet"
4085
+ ],
4086
+ VariableDefinition: [
4087
+ "description",
4088
+ "variable",
4089
+ "type",
4090
+ "defaultValue",
4091
+ "directives"
4092
+ ],
4093
+ Variable: ["name"],
4094
+ SelectionSet: ["selections"],
4095
+ Field: ["alias", "name", "arguments", "directives", "selectionSet"],
4096
+ Argument: ["name", "value"],
4097
+ FragmentSpread: ["name", "directives"],
4098
+ InlineFragment: ["typeCondition", "directives", "selectionSet"],
4099
+ FragmentDefinition: [
4100
+ "description",
4101
+ "name",
4102
+ // Note: fragment variable definitions are deprecated and will removed in v17.0.0
4103
+ "variableDefinitions",
4104
+ "typeCondition",
4105
+ "directives",
4106
+ "selectionSet"
4107
+ ],
4108
+ IntValue: [],
4109
+ FloatValue: [],
4110
+ StringValue: [],
4111
+ BooleanValue: [],
4112
+ NullValue: [],
4113
+ EnumValue: [],
4114
+ ListValue: ["values"],
4115
+ ObjectValue: ["fields"],
4116
+ ObjectField: ["name", "value"],
4117
+ Directive: ["name", "arguments"],
4118
+ NamedType: ["name"],
4119
+ ListType: ["type"],
4120
+ NonNullType: ["type"],
4121
+ SchemaDefinition: ["description", "directives", "operationTypes"],
4122
+ OperationTypeDefinition: ["type"],
4123
+ ScalarTypeDefinition: ["description", "name", "directives"],
4124
+ ObjectTypeDefinition: [
4125
+ "description",
4126
+ "name",
4127
+ "interfaces",
4128
+ "directives",
4129
+ "fields"
4130
+ ],
4131
+ FieldDefinition: ["description", "name", "arguments", "type", "directives"],
4132
+ InputValueDefinition: [
4133
+ "description",
4134
+ "name",
4135
+ "type",
4136
+ "defaultValue",
4137
+ "directives"
4138
+ ],
4139
+ InterfaceTypeDefinition: [
4140
+ "description",
4141
+ "name",
4142
+ "interfaces",
4143
+ "directives",
4144
+ "fields"
4145
+ ],
4146
+ UnionTypeDefinition: ["description", "name", "directives", "types"],
4147
+ EnumTypeDefinition: ["description", "name", "directives", "values"],
4148
+ EnumValueDefinition: ["description", "name", "directives"],
4149
+ InputObjectTypeDefinition: ["description", "name", "directives", "fields"],
4150
+ DirectiveDefinition: ["description", "name", "arguments", "locations"],
4151
+ SchemaExtension: ["directives", "operationTypes"],
4152
+ ScalarTypeExtension: ["name", "directives"],
4153
+ ObjectTypeExtension: ["name", "interfaces", "directives", "fields"],
4154
+ InterfaceTypeExtension: ["name", "interfaces", "directives", "fields"],
4155
+ UnionTypeExtension: ["name", "directives", "types"],
4156
+ EnumTypeExtension: ["name", "directives", "values"],
4157
+ InputObjectTypeExtension: ["name", "directives", "fields"],
4158
+ TypeCoordinate: ["name"],
4159
+ MemberCoordinate: ["name", "memberName"],
4160
+ ArgumentCoordinate: ["name", "fieldName", "argumentName"],
4161
+ DirectiveCoordinate: ["name"],
4162
+ DirectiveArgumentCoordinate: ["name", "argumentName"]
4163
+ };
4164
+ var kindValues = new Set(Object.keys(QueryDocumentKeys));
4165
+ function isNode(maybeNode) {
4166
+ const maybeKind = maybeNode === null || maybeNode === void 0 ? void 0 : maybeNode.kind;
4167
+ return typeof maybeKind === "string" && kindValues.has(maybeKind);
4168
+ }
4169
+ var OperationTypeNode;
4170
+ (function(OperationTypeNode2) {
4171
+ OperationTypeNode2["QUERY"] = "query";
4172
+ OperationTypeNode2["MUTATION"] = "mutation";
4173
+ OperationTypeNode2["SUBSCRIPTION"] = "subscription";
4174
+ })(OperationTypeNode || (OperationTypeNode = {}));
4175
+
4176
+ // node_modules/graphql/language/kinds.mjs
4177
+ var Kind;
4178
+ (function(Kind2) {
4179
+ Kind2["NAME"] = "Name";
4180
+ Kind2["DOCUMENT"] = "Document";
4181
+ Kind2["OPERATION_DEFINITION"] = "OperationDefinition";
4182
+ Kind2["VARIABLE_DEFINITION"] = "VariableDefinition";
4183
+ Kind2["SELECTION_SET"] = "SelectionSet";
4184
+ Kind2["FIELD"] = "Field";
4185
+ Kind2["ARGUMENT"] = "Argument";
4186
+ Kind2["FRAGMENT_SPREAD"] = "FragmentSpread";
4187
+ Kind2["INLINE_FRAGMENT"] = "InlineFragment";
4188
+ Kind2["FRAGMENT_DEFINITION"] = "FragmentDefinition";
4189
+ Kind2["VARIABLE"] = "Variable";
4190
+ Kind2["INT"] = "IntValue";
4191
+ Kind2["FLOAT"] = "FloatValue";
4192
+ Kind2["STRING"] = "StringValue";
4193
+ Kind2["BOOLEAN"] = "BooleanValue";
4194
+ Kind2["NULL"] = "NullValue";
4195
+ Kind2["ENUM"] = "EnumValue";
4196
+ Kind2["LIST"] = "ListValue";
4197
+ Kind2["OBJECT"] = "ObjectValue";
4198
+ Kind2["OBJECT_FIELD"] = "ObjectField";
4199
+ Kind2["DIRECTIVE"] = "Directive";
4200
+ Kind2["NAMED_TYPE"] = "NamedType";
4201
+ Kind2["LIST_TYPE"] = "ListType";
4202
+ Kind2["NON_NULL_TYPE"] = "NonNullType";
4203
+ Kind2["SCHEMA_DEFINITION"] = "SchemaDefinition";
4204
+ Kind2["OPERATION_TYPE_DEFINITION"] = "OperationTypeDefinition";
4205
+ Kind2["SCALAR_TYPE_DEFINITION"] = "ScalarTypeDefinition";
4206
+ Kind2["OBJECT_TYPE_DEFINITION"] = "ObjectTypeDefinition";
4207
+ Kind2["FIELD_DEFINITION"] = "FieldDefinition";
4208
+ Kind2["INPUT_VALUE_DEFINITION"] = "InputValueDefinition";
4209
+ Kind2["INTERFACE_TYPE_DEFINITION"] = "InterfaceTypeDefinition";
4210
+ Kind2["UNION_TYPE_DEFINITION"] = "UnionTypeDefinition";
4211
+ Kind2["ENUM_TYPE_DEFINITION"] = "EnumTypeDefinition";
4212
+ Kind2["ENUM_VALUE_DEFINITION"] = "EnumValueDefinition";
4213
+ Kind2["INPUT_OBJECT_TYPE_DEFINITION"] = "InputObjectTypeDefinition";
4214
+ Kind2["DIRECTIVE_DEFINITION"] = "DirectiveDefinition";
4215
+ Kind2["SCHEMA_EXTENSION"] = "SchemaExtension";
4216
+ Kind2["SCALAR_TYPE_EXTENSION"] = "ScalarTypeExtension";
4217
+ Kind2["OBJECT_TYPE_EXTENSION"] = "ObjectTypeExtension";
4218
+ Kind2["INTERFACE_TYPE_EXTENSION"] = "InterfaceTypeExtension";
4219
+ Kind2["UNION_TYPE_EXTENSION"] = "UnionTypeExtension";
4220
+ Kind2["ENUM_TYPE_EXTENSION"] = "EnumTypeExtension";
4221
+ Kind2["INPUT_OBJECT_TYPE_EXTENSION"] = "InputObjectTypeExtension";
4222
+ Kind2["TYPE_COORDINATE"] = "TypeCoordinate";
4223
+ Kind2["MEMBER_COORDINATE"] = "MemberCoordinate";
4224
+ Kind2["ARGUMENT_COORDINATE"] = "ArgumentCoordinate";
4225
+ Kind2["DIRECTIVE_COORDINATE"] = "DirectiveCoordinate";
4226
+ Kind2["DIRECTIVE_ARGUMENT_COORDINATE"] = "DirectiveArgumentCoordinate";
4227
+ })(Kind || (Kind = {}));
4228
+
4229
+ // node_modules/graphql/language/characterClasses.mjs
4230
+ function isWhiteSpace(code) {
4231
+ return code === 9 || code === 32;
4232
+ }
4233
+
4234
+ // node_modules/graphql/language/blockString.mjs
4235
+ function printBlockString(value, options) {
4236
+ const escapedValue = value.replace(/"""/g, '\\"""');
4237
+ const lines = escapedValue.split(/\r\n|[\n\r]/g);
4238
+ const isSingleLine = lines.length === 1;
4239
+ const forceLeadingNewLine = lines.length > 1 && lines.slice(1).every((line) => line.length === 0 || isWhiteSpace(line.charCodeAt(0)));
4240
+ const hasTrailingTripleQuotes = escapedValue.endsWith('\\"""');
4241
+ const hasTrailingQuote = value.endsWith('"') && !hasTrailingTripleQuotes;
4242
+ const hasTrailingSlash = value.endsWith("\\");
4243
+ const forceTrailingNewline = hasTrailingQuote || hasTrailingSlash;
4244
+ const printAsMultipleLines = !(options !== null && options !== void 0 && options.minimize) && // add leading and trailing new lines only if it improves readability
4245
+ (!isSingleLine || value.length > 70 || forceTrailingNewline || forceLeadingNewLine || hasTrailingTripleQuotes);
4246
+ let result = "";
4247
+ const skipLeadingNewLine = isSingleLine && isWhiteSpace(value.charCodeAt(0));
4248
+ if (printAsMultipleLines && !skipLeadingNewLine || forceLeadingNewLine) {
4249
+ result += "\n";
4250
+ }
4251
+ result += escapedValue;
4252
+ if (printAsMultipleLines || forceTrailingNewline) {
4253
+ result += "\n";
4254
+ }
4255
+ return '"""' + result + '"""';
4256
+ }
4257
+
4258
+ // node_modules/graphql/jsutils/inspect.mjs
4259
+ var MAX_ARRAY_LENGTH = 10;
4260
+ var MAX_RECURSIVE_DEPTH = 2;
4261
+ function inspect(value) {
4262
+ return formatValue(value, []);
4263
+ }
4264
+ function formatValue(value, seenValues) {
4265
+ switch (typeof value) {
4266
+ case "string":
4267
+ return JSON.stringify(value);
4268
+ case "function":
4269
+ return value.name ? `[function ${value.name}]` : "[function]";
4270
+ case "object":
4271
+ return formatObjectValue(value, seenValues);
4272
+ default:
4273
+ return String(value);
4274
+ }
4275
+ }
4276
+ function formatObjectValue(value, previouslySeenValues) {
4277
+ if (value === null) {
4278
+ return "null";
4279
+ }
4280
+ if (previouslySeenValues.includes(value)) {
4281
+ return "[Circular]";
4282
+ }
4283
+ const seenValues = [...previouslySeenValues, value];
4284
+ if (isJSONable(value)) {
4285
+ const jsonValue = value.toJSON();
4286
+ if (jsonValue !== value) {
4287
+ return typeof jsonValue === "string" ? jsonValue : formatValue(jsonValue, seenValues);
4288
+ }
4289
+ } else if (Array.isArray(value)) {
4290
+ return formatArray(value, seenValues);
4291
+ }
4292
+ return formatObject(value, seenValues);
4293
+ }
4294
+ function isJSONable(value) {
4295
+ return typeof value.toJSON === "function";
4296
+ }
4297
+ function formatObject(object, seenValues) {
4298
+ const entries = Object.entries(object);
4299
+ if (entries.length === 0) {
4300
+ return "{}";
4301
+ }
4302
+ if (seenValues.length > MAX_RECURSIVE_DEPTH) {
4303
+ return "[" + getObjectTag(object) + "]";
4304
+ }
4305
+ const properties = entries.map(
4306
+ ([key, value]) => key + ": " + formatValue(value, seenValues)
4307
+ );
4308
+ return "{ " + properties.join(", ") + " }";
4309
+ }
4310
+ function formatArray(array, seenValues) {
4311
+ if (array.length === 0) {
4312
+ return "[]";
4313
+ }
4314
+ if (seenValues.length > MAX_RECURSIVE_DEPTH) {
4315
+ return "[Array]";
4316
+ }
4317
+ const len = Math.min(MAX_ARRAY_LENGTH, array.length);
4318
+ const remaining = array.length - len;
4319
+ const items = [];
4320
+ for (let i = 0; i < len; ++i) {
4321
+ items.push(formatValue(array[i], seenValues));
4322
+ }
4323
+ if (remaining === 1) {
4324
+ items.push("... 1 more item");
4325
+ } else if (remaining > 1) {
4326
+ items.push(`... ${remaining} more items`);
4327
+ }
4328
+ return "[" + items.join(", ") + "]";
4329
+ }
4330
+ function getObjectTag(object) {
4331
+ const tag = Object.prototype.toString.call(object).replace(/^\[object /, "").replace(/]$/, "");
4332
+ if (tag === "Object" && typeof object.constructor === "function") {
4333
+ const name = object.constructor.name;
4334
+ if (typeof name === "string" && name !== "") {
4335
+ return name;
4336
+ }
4337
+ }
4338
+ return tag;
4339
+ }
4340
+
4341
+ // node_modules/graphql/language/printString.mjs
4342
+ function printString(str) {
4343
+ return `"${str.replace(escapedRegExp, escapedReplacer)}"`;
4344
+ }
4345
+ var escapedRegExp = /[\x00-\x1f\x22\x5c\x7f-\x9f]/g;
4346
+ function escapedReplacer(str) {
4347
+ return escapeSequences[str.charCodeAt(0)];
4348
+ }
4349
+ var escapeSequences = [
4350
+ "\\u0000",
4351
+ "\\u0001",
4352
+ "\\u0002",
4353
+ "\\u0003",
4354
+ "\\u0004",
4355
+ "\\u0005",
4356
+ "\\u0006",
4357
+ "\\u0007",
4358
+ "\\b",
4359
+ "\\t",
4360
+ "\\n",
4361
+ "\\u000B",
4362
+ "\\f",
4363
+ "\\r",
4364
+ "\\u000E",
4365
+ "\\u000F",
4366
+ "\\u0010",
4367
+ "\\u0011",
4368
+ "\\u0012",
4369
+ "\\u0013",
4370
+ "\\u0014",
4371
+ "\\u0015",
4372
+ "\\u0016",
4373
+ "\\u0017",
4374
+ "\\u0018",
4375
+ "\\u0019",
4376
+ "\\u001A",
4377
+ "\\u001B",
4378
+ "\\u001C",
4379
+ "\\u001D",
4380
+ "\\u001E",
4381
+ "\\u001F",
4382
+ "",
4383
+ "",
4384
+ '\\"',
4385
+ "",
4386
+ "",
4387
+ "",
4388
+ "",
4389
+ "",
4390
+ "",
4391
+ "",
4392
+ "",
4393
+ "",
4394
+ "",
4395
+ "",
4396
+ "",
4397
+ "",
4398
+ // 2F
4399
+ "",
4400
+ "",
4401
+ "",
4402
+ "",
4403
+ "",
4404
+ "",
4405
+ "",
4406
+ "",
4407
+ "",
4408
+ "",
4409
+ "",
4410
+ "",
4411
+ "",
4412
+ "",
4413
+ "",
4414
+ "",
4415
+ // 3F
4416
+ "",
4417
+ "",
4418
+ "",
4419
+ "",
4420
+ "",
4421
+ "",
4422
+ "",
4423
+ "",
4424
+ "",
4425
+ "",
4426
+ "",
4427
+ "",
4428
+ "",
4429
+ "",
4430
+ "",
4431
+ "",
4432
+ // 4F
4433
+ "",
4434
+ "",
4435
+ "",
4436
+ "",
4437
+ "",
4438
+ "",
4439
+ "",
4440
+ "",
4441
+ "",
4442
+ "",
4443
+ "",
4444
+ "",
4445
+ "\\\\",
4446
+ "",
4447
+ "",
4448
+ "",
4449
+ // 5F
4450
+ "",
4451
+ "",
4452
+ "",
4453
+ "",
4454
+ "",
4455
+ "",
4456
+ "",
4457
+ "",
4458
+ "",
4459
+ "",
4460
+ "",
4461
+ "",
4462
+ "",
4463
+ "",
4464
+ "",
4465
+ "",
4466
+ // 6F
4467
+ "",
4468
+ "",
4469
+ "",
4470
+ "",
4471
+ "",
4472
+ "",
4473
+ "",
4474
+ "",
4475
+ "",
4476
+ "",
4477
+ "",
4478
+ "",
4479
+ "",
4480
+ "",
4481
+ "",
4482
+ "\\u007F",
4483
+ "\\u0080",
4484
+ "\\u0081",
4485
+ "\\u0082",
4486
+ "\\u0083",
4487
+ "\\u0084",
4488
+ "\\u0085",
4489
+ "\\u0086",
4490
+ "\\u0087",
4491
+ "\\u0088",
4492
+ "\\u0089",
4493
+ "\\u008A",
4494
+ "\\u008B",
4495
+ "\\u008C",
4496
+ "\\u008D",
4497
+ "\\u008E",
4498
+ "\\u008F",
4499
+ "\\u0090",
4500
+ "\\u0091",
4501
+ "\\u0092",
4502
+ "\\u0093",
4503
+ "\\u0094",
4504
+ "\\u0095",
4505
+ "\\u0096",
4506
+ "\\u0097",
4507
+ "\\u0098",
4508
+ "\\u0099",
4509
+ "\\u009A",
4510
+ "\\u009B",
4511
+ "\\u009C",
4512
+ "\\u009D",
4513
+ "\\u009E",
4514
+ "\\u009F"
4515
+ ];
4516
+
4517
+ // node_modules/graphql/language/visitor.mjs
4518
+ var BREAK = Object.freeze({});
4519
+ function visit(root, visitor, visitorKeys = QueryDocumentKeys) {
4520
+ const enterLeaveMap = /* @__PURE__ */ new Map();
4521
+ for (const kind of Object.values(Kind)) {
4522
+ enterLeaveMap.set(kind, getEnterLeaveForKind(visitor, kind));
4523
+ }
4524
+ let stack = void 0;
4525
+ let inArray = Array.isArray(root);
4526
+ let keys = [root];
4527
+ let index = -1;
4528
+ let edits = [];
4529
+ let node = root;
4530
+ let key = void 0;
4531
+ let parent = void 0;
4532
+ const path = [];
4533
+ const ancestors = [];
4534
+ do {
4535
+ index++;
4536
+ const isLeaving = index === keys.length;
4537
+ const isEdited = isLeaving && edits.length !== 0;
4538
+ if (isLeaving) {
4539
+ key = ancestors.length === 0 ? void 0 : path[path.length - 1];
4540
+ node = parent;
4541
+ parent = ancestors.pop();
4542
+ if (isEdited) {
4543
+ if (inArray) {
4544
+ node = node.slice();
4545
+ let editOffset = 0;
4546
+ for (const [editKey, editValue] of edits) {
4547
+ const arrayKey = editKey - editOffset;
4548
+ if (editValue === null) {
4549
+ node.splice(arrayKey, 1);
4550
+ editOffset++;
4551
+ } else {
4552
+ node[arrayKey] = editValue;
4553
+ }
4554
+ }
4555
+ } else {
4556
+ node = { ...node };
4557
+ for (const [editKey, editValue] of edits) {
4558
+ node[editKey] = editValue;
4559
+ }
4560
+ }
4561
+ }
4562
+ index = stack.index;
4563
+ keys = stack.keys;
4564
+ edits = stack.edits;
4565
+ inArray = stack.inArray;
4566
+ stack = stack.prev;
4567
+ } else if (parent) {
4568
+ key = inArray ? index : keys[index];
4569
+ node = parent[key];
4570
+ if (node === null || node === void 0) {
4571
+ continue;
4572
+ }
4573
+ path.push(key);
4574
+ }
4575
+ let result;
4576
+ if (!Array.isArray(node)) {
4577
+ var _enterLeaveMap$get, _enterLeaveMap$get2;
4578
+ isNode(node) || devAssert(false, `Invalid AST Node: ${inspect(node)}.`);
4579
+ const visitFn = isLeaving ? (_enterLeaveMap$get = enterLeaveMap.get(node.kind)) === null || _enterLeaveMap$get === void 0 ? void 0 : _enterLeaveMap$get.leave : (_enterLeaveMap$get2 = enterLeaveMap.get(node.kind)) === null || _enterLeaveMap$get2 === void 0 ? void 0 : _enterLeaveMap$get2.enter;
4580
+ result = visitFn === null || visitFn === void 0 ? void 0 : visitFn.call(visitor, node, key, parent, path, ancestors);
4581
+ if (result === BREAK) {
4582
+ break;
4583
+ }
4584
+ if (result === false) {
4585
+ if (!isLeaving) {
4586
+ path.pop();
4587
+ continue;
4588
+ }
4589
+ } else if (result !== void 0) {
4590
+ edits.push([key, result]);
4591
+ if (!isLeaving) {
4592
+ if (isNode(result)) {
4593
+ node = result;
4594
+ } else {
4595
+ path.pop();
4596
+ continue;
4597
+ }
4598
+ }
4599
+ }
4600
+ }
4601
+ if (result === void 0 && isEdited) {
4602
+ edits.push([key, node]);
4603
+ }
4604
+ if (isLeaving) {
4605
+ path.pop();
4606
+ } else {
4607
+ var _node$kind;
4608
+ stack = {
4609
+ inArray,
4610
+ index,
4611
+ keys,
4612
+ edits,
4613
+ prev: stack
4614
+ };
4615
+ inArray = Array.isArray(node);
4616
+ keys = inArray ? node : (_node$kind = visitorKeys[node.kind]) !== null && _node$kind !== void 0 ? _node$kind : [];
4617
+ index = -1;
4618
+ edits = [];
4619
+ if (parent) {
4620
+ ancestors.push(parent);
4621
+ }
4622
+ parent = node;
4623
+ }
4624
+ } while (stack !== void 0);
4625
+ if (edits.length !== 0) {
4626
+ return edits[edits.length - 1][1];
4627
+ }
4628
+ return root;
4629
+ }
4630
+ function getEnterLeaveForKind(visitor, kind) {
4631
+ const kindVisitor = visitor[kind];
4632
+ if (typeof kindVisitor === "object") {
4633
+ return kindVisitor;
4634
+ } else if (typeof kindVisitor === "function") {
4635
+ return {
4636
+ enter: kindVisitor,
4637
+ leave: void 0
4638
+ };
4639
+ }
4640
+ return {
4641
+ enter: visitor.enter,
4642
+ leave: visitor.leave
4643
+ };
4644
+ }
4645
+
4646
+ // node_modules/graphql/language/printer.mjs
4647
+ function print(ast) {
4648
+ return visit(ast, printDocASTReducer);
4649
+ }
4650
+ var MAX_LINE_LENGTH = 80;
4651
+ var printDocASTReducer = {
4652
+ Name: {
4653
+ leave: (node) => node.value
4654
+ },
4655
+ Variable: {
4656
+ leave: (node) => "$" + node.name
4657
+ },
4658
+ // Document
4659
+ Document: {
4660
+ leave: (node) => join(node.definitions, "\n\n")
4661
+ },
4662
+ OperationDefinition: {
4663
+ leave(node) {
4664
+ const varDefs = hasMultilineItems(node.variableDefinitions) ? wrap("(\n", join(node.variableDefinitions, "\n"), "\n)") : wrap("(", join(node.variableDefinitions, ", "), ")");
4665
+ const prefix = wrap("", node.description, "\n") + join(
4666
+ [
4667
+ node.operation,
4668
+ join([node.name, varDefs]),
4669
+ join(node.directives, " ")
4670
+ ],
4671
+ " "
4672
+ );
4673
+ return (prefix === "query" ? "" : prefix + " ") + node.selectionSet;
4674
+ }
4675
+ },
4676
+ VariableDefinition: {
4677
+ leave: ({ variable, type, defaultValue, directives, description }) => wrap("", description, "\n") + variable + ": " + type + wrap(" = ", defaultValue) + wrap(" ", join(directives, " "))
4678
+ },
4679
+ SelectionSet: {
4680
+ leave: ({ selections }) => block(selections)
4681
+ },
4682
+ Field: {
4683
+ leave({ alias, name, arguments: args, directives, selectionSet }) {
4684
+ const prefix = wrap("", alias, ": ") + name;
4685
+ let argsLine = prefix + wrap("(", join(args, ", "), ")");
4686
+ if (argsLine.length > MAX_LINE_LENGTH) {
4687
+ argsLine = prefix + wrap("(\n", indent(join(args, "\n")), "\n)");
4688
+ }
4689
+ return join([argsLine, join(directives, " "), selectionSet], " ");
4690
+ }
4691
+ },
4692
+ Argument: {
4693
+ leave: ({ name, value }) => name + ": " + value
4694
+ },
4695
+ // Fragments
4696
+ FragmentSpread: {
4697
+ leave: ({ name, directives }) => "..." + name + wrap(" ", join(directives, " "))
4698
+ },
4699
+ InlineFragment: {
4700
+ leave: ({ typeCondition, directives, selectionSet }) => join(
4701
+ [
4702
+ "...",
4703
+ wrap("on ", typeCondition),
4704
+ join(directives, " "),
4705
+ selectionSet
4706
+ ],
4707
+ " "
4708
+ )
4709
+ },
4710
+ FragmentDefinition: {
4711
+ leave: ({
4712
+ name,
4713
+ typeCondition,
4714
+ variableDefinitions,
4715
+ directives,
4716
+ selectionSet,
4717
+ description
4718
+ }) => wrap("", description, "\n") + // Note: fragment variable definitions are experimental and may be changed
4719
+ // or removed in the future.
4720
+ `fragment ${name}${wrap("(", join(variableDefinitions, ", "), ")")} on ${typeCondition} ${wrap("", join(directives, " "), " ")}` + selectionSet
4721
+ },
4722
+ // Value
4723
+ IntValue: {
4724
+ leave: ({ value }) => value
4725
+ },
4726
+ FloatValue: {
4727
+ leave: ({ value }) => value
4728
+ },
4729
+ StringValue: {
4730
+ leave: ({ value, block: isBlockString }) => isBlockString ? printBlockString(value) : printString(value)
4731
+ },
4732
+ BooleanValue: {
4733
+ leave: ({ value }) => value ? "true" : "false"
4734
+ },
4735
+ NullValue: {
4736
+ leave: () => "null"
4737
+ },
4738
+ EnumValue: {
4739
+ leave: ({ value }) => value
4740
+ },
4741
+ ListValue: {
4742
+ leave: ({ values }) => "[" + join(values, ", ") + "]"
4743
+ },
4744
+ ObjectValue: {
4745
+ leave: ({ fields }) => "{" + join(fields, ", ") + "}"
4746
+ },
4747
+ ObjectField: {
4748
+ leave: ({ name, value }) => name + ": " + value
4749
+ },
4750
+ // Directive
4751
+ Directive: {
4752
+ leave: ({ name, arguments: args }) => "@" + name + wrap("(", join(args, ", "), ")")
4753
+ },
4754
+ // Type
4755
+ NamedType: {
4756
+ leave: ({ name }) => name
4757
+ },
4758
+ ListType: {
4759
+ leave: ({ type }) => "[" + type + "]"
4760
+ },
4761
+ NonNullType: {
4762
+ leave: ({ type }) => type + "!"
4763
+ },
4764
+ // Type System Definitions
4765
+ SchemaDefinition: {
4766
+ leave: ({ description, directives, operationTypes }) => wrap("", description, "\n") + join(["schema", join(directives, " "), block(operationTypes)], " ")
4767
+ },
4768
+ OperationTypeDefinition: {
4769
+ leave: ({ operation, type }) => operation + ": " + type
4770
+ },
4771
+ ScalarTypeDefinition: {
4772
+ leave: ({ description, name, directives }) => wrap("", description, "\n") + join(["scalar", name, join(directives, " ")], " ")
4773
+ },
4774
+ ObjectTypeDefinition: {
4775
+ leave: ({ description, name, interfaces, directives, fields }) => wrap("", description, "\n") + join(
4776
+ [
4777
+ "type",
4778
+ name,
4779
+ wrap("implements ", join(interfaces, " & ")),
4780
+ join(directives, " "),
4781
+ block(fields)
4782
+ ],
4783
+ " "
4784
+ )
4785
+ },
4786
+ FieldDefinition: {
4787
+ leave: ({ description, name, arguments: args, type, directives }) => wrap("", description, "\n") + name + (hasMultilineItems(args) ? wrap("(\n", indent(join(args, "\n")), "\n)") : wrap("(", join(args, ", "), ")")) + ": " + type + wrap(" ", join(directives, " "))
4788
+ },
4789
+ InputValueDefinition: {
4790
+ leave: ({ description, name, type, defaultValue, directives }) => wrap("", description, "\n") + join(
4791
+ [name + ": " + type, wrap("= ", defaultValue), join(directives, " ")],
4792
+ " "
4793
+ )
4794
+ },
4795
+ InterfaceTypeDefinition: {
4796
+ leave: ({ description, name, interfaces, directives, fields }) => wrap("", description, "\n") + join(
4797
+ [
4798
+ "interface",
4799
+ name,
4800
+ wrap("implements ", join(interfaces, " & ")),
4801
+ join(directives, " "),
4802
+ block(fields)
4803
+ ],
4804
+ " "
4805
+ )
4806
+ },
4807
+ UnionTypeDefinition: {
4808
+ leave: ({ description, name, directives, types }) => wrap("", description, "\n") + join(
4809
+ ["union", name, join(directives, " "), wrap("= ", join(types, " | "))],
4810
+ " "
4811
+ )
4812
+ },
4813
+ EnumTypeDefinition: {
4814
+ leave: ({ description, name, directives, values }) => wrap("", description, "\n") + join(["enum", name, join(directives, " "), block(values)], " ")
4815
+ },
4816
+ EnumValueDefinition: {
4817
+ leave: ({ description, name, directives }) => wrap("", description, "\n") + join([name, join(directives, " ")], " ")
4818
+ },
4819
+ InputObjectTypeDefinition: {
4820
+ leave: ({ description, name, directives, fields }) => wrap("", description, "\n") + join(["input", name, join(directives, " "), block(fields)], " ")
4821
+ },
4822
+ DirectiveDefinition: {
4823
+ leave: ({ description, name, arguments: args, repeatable, locations }) => wrap("", description, "\n") + "directive @" + name + (hasMultilineItems(args) ? wrap("(\n", indent(join(args, "\n")), "\n)") : wrap("(", join(args, ", "), ")")) + (repeatable ? " repeatable" : "") + " on " + join(locations, " | ")
4824
+ },
4825
+ SchemaExtension: {
4826
+ leave: ({ directives, operationTypes }) => join(
4827
+ ["extend schema", join(directives, " "), block(operationTypes)],
4828
+ " "
4829
+ )
4830
+ },
4831
+ ScalarTypeExtension: {
4832
+ leave: ({ name, directives }) => join(["extend scalar", name, join(directives, " ")], " ")
4833
+ },
4834
+ ObjectTypeExtension: {
4835
+ leave: ({ name, interfaces, directives, fields }) => join(
4836
+ [
4837
+ "extend type",
4838
+ name,
4839
+ wrap("implements ", join(interfaces, " & ")),
4840
+ join(directives, " "),
4841
+ block(fields)
4842
+ ],
4843
+ " "
4844
+ )
4845
+ },
4846
+ InterfaceTypeExtension: {
4847
+ leave: ({ name, interfaces, directives, fields }) => join(
4848
+ [
4849
+ "extend interface",
4850
+ name,
4851
+ wrap("implements ", join(interfaces, " & ")),
4852
+ join(directives, " "),
4853
+ block(fields)
4854
+ ],
4855
+ " "
4856
+ )
4857
+ },
4858
+ UnionTypeExtension: {
4859
+ leave: ({ name, directives, types }) => join(
4860
+ [
4861
+ "extend union",
4862
+ name,
4863
+ join(directives, " "),
4864
+ wrap("= ", join(types, " | "))
4865
+ ],
4866
+ " "
4867
+ )
4868
+ },
4869
+ EnumTypeExtension: {
4870
+ leave: ({ name, directives, values }) => join(["extend enum", name, join(directives, " "), block(values)], " ")
4871
+ },
4872
+ InputObjectTypeExtension: {
4873
+ leave: ({ name, directives, fields }) => join(["extend input", name, join(directives, " "), block(fields)], " ")
4874
+ },
4875
+ // Schema Coordinates
4876
+ TypeCoordinate: {
4877
+ leave: ({ name }) => name
4878
+ },
4879
+ MemberCoordinate: {
4880
+ leave: ({ name, memberName }) => join([name, wrap(".", memberName)])
4881
+ },
4882
+ ArgumentCoordinate: {
4883
+ leave: ({ name, fieldName, argumentName }) => join([name, wrap(".", fieldName), wrap("(", argumentName, ":)")])
4884
+ },
4885
+ DirectiveCoordinate: {
4886
+ leave: ({ name }) => join(["@", name])
4887
+ },
4888
+ DirectiveArgumentCoordinate: {
4889
+ leave: ({ name, argumentName }) => join(["@", name, wrap("(", argumentName, ":)")])
4890
+ }
4891
+ };
4892
+ function join(maybeArray, separator = "") {
4893
+ var _maybeArray$filter$jo;
4894
+ return (_maybeArray$filter$jo = maybeArray === null || maybeArray === void 0 ? void 0 : maybeArray.filter((x) => x).join(separator)) !== null && _maybeArray$filter$jo !== void 0 ? _maybeArray$filter$jo : "";
4895
+ }
4896
+ function block(array) {
4897
+ return wrap("{\n", indent(join(array, "\n")), "\n}");
4898
+ }
4899
+ function wrap(start, maybeString, end = "") {
4900
+ return maybeString != null && maybeString !== "" ? start + maybeString + end : "";
4901
+ }
4902
+ function indent(str) {
4903
+ return wrap(" ", str.replace(/\n/g, "\n "));
4904
+ }
4905
+ function hasMultilineItems(maybeArray) {
4906
+ var _maybeArray$some;
4907
+ return (_maybeArray$some = maybeArray === null || maybeArray === void 0 ? void 0 : maybeArray.some((str) => str.includes("\n"))) !== null && _maybeArray$some !== void 0 ? _maybeArray$some : false;
4908
+ }
4909
+
4910
+ // src/graphql/toGraphqlQueryString.ts
4911
+ function toGraphqlQueryString(query) {
4912
+ return print(query);
4913
+ }
4914
+
4915
+ // src/graphql/hooks/admin/hooksMutation.ts
4916
+ var import_client9 = require("@apollo/client");
4917
+
4918
+ // src/graphql/mutations/admin.ts
4919
+ var import_client8 = require("@apollo/client");
4920
+ var ADMIN_UPDATE_RESOURCE_TYPE_MUTATION = import_client8.gql`
4921
+ mutation adminUpdateResourceType($input: AdminUpdateResourceInputType!) {
4922
+ adminUpdateResourceType(input: $input) {
4923
+ active
4924
+ resourceId
4925
+ resourceType
4926
+ }
4927
+ }
4928
+ `;
4929
+ var ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION = import_client8.gql`
4930
+ mutation adminResendUserVerificationEmail($userId: ID!) {
4931
+ adminResendUserVerificationEmail(userId: $userId)
4932
+ }
4933
+ `;
4934
+ var ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION = import_client8.gql`
4935
+ mutation adminPermanentlyDeleteResource(
4936
+ $resourceId: ID!
4937
+ $resourceType: ResourceTypeEnum!
4938
+ ) {
4939
+ adminPermanentlyDeleteResource(
4940
+ resourceId: $resourceId
4941
+ resourceType: $resourceType
4942
+ )
4943
+ }
4944
+ `;
4945
+
4946
+ // src/graphql/hooks/admin/hooksMutation.ts
4947
+ var useAdminUpdateResourceType = () => {
4948
+ const [adminUpdateResourceType, { loading, error }] = (0, import_client9.useMutation)(ADMIN_UPDATE_RESOURCE_TYPE_MUTATION, {
4949
+ awaitRefetchQueries: true,
4950
+ refetchQueries: (mutationResult) => {
4951
+ const adminUpdateResourceType2 = mutationResult?.data?.adminUpdateResourceType;
4952
+ const resourceId = adminUpdateResourceType2?.resourceId;
4953
+ const resourceType = adminUpdateResourceType2?.resourceType;
4954
+ if (!resourceId) return [];
4955
+ const detectQuery = resourceType === "event" /* EVENT */ ? GET_EVENT : GET_VENDOR;
4956
+ return [
4957
+ {
4958
+ query: detectQuery,
4959
+ variables: { _id: resourceId }
4960
+ }
4961
+ ];
4962
+ }
4963
+ });
4964
+ return {
4965
+ adminUpdateResourceType,
4966
+ error,
4967
+ loading
4968
+ };
4969
+ };
4970
+ var useAdminResendUserVerificationEmail = () => {
4971
+ const [adminResendUserVerificationEmail, { loading, error }] = (0, import_client9.useMutation)(
4972
+ ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION
4973
+ );
4974
+ return {
4975
+ adminResendUserVerificationEmail,
4976
+ error,
4977
+ loading
4978
+ };
4979
+ };
4980
+ var useAdminPermanentlyDeleteResource = () => {
4981
+ const [adminPermanentlyDeleteResource, { loading, error }] = (0, import_client9.useMutation)(
4982
+ ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION
4983
+ );
4984
+ return {
4985
+ adminPermanentlyDeleteResource,
4986
+ error,
4987
+ loading
4988
+ };
4989
+ };
4990
+
4991
+ // src/graphql/hooks/auth.ts
4992
+ var import_client11 = require("@apollo/client");
4993
+
4994
+ // src/graphql/mutations/auth.ts
4995
+ var import_client10 = require("@apollo/client");
4996
+ var REGISTER_MUTATION = import_client10.gql`
4997
+ mutation register($input: RegisterInputType!) {
4998
+ register(input: $input) {
4999
+ message
5000
+ refreshToken
5001
+ token
5002
+ user {
5003
+ ...UserFields
5004
+ }
5005
+ }
5006
+ }
5007
+ ${USER_FIELDS_FRAGMENT}
5008
+ `;
5009
+ var LOGIN_MUTATION = import_client10.gql`
5010
+ mutation login($input: LoginInputType!) {
5011
+ login(input: $input) {
5012
+ message
5013
+ refreshToken
5014
+ token
5015
+ user {
5016
+ ...UserFields
5017
+ }
5018
+ }
5019
+ }
5020
+ ${USER_FIELDS_FRAGMENT}
5021
+ `;
5022
+ var LOGOUT_MUTATION = import_client10.gql`
5023
+ mutation logout {
5024
+ logout {
5025
+ message
5026
+ }
5027
+ }
5028
+ `;
5029
+ var REFRESH_TOKEN_MUTATION = import_client10.gql`
5030
+ mutation refreshToken($input: RefreshTokenInputType!) {
5031
+ refreshToken(input: $input) {
5032
+ refreshToken
5033
+ token
5034
+ }
5035
+ }
5036
+ `;
5037
+ var RESET_PASSWORD_MUTATION = import_client10.gql`
5038
+ mutation resetPassword($input: ResetPasswordInputType!) {
5039
+ resetPassword(input: $input) {
5040
+ message
5041
+ }
5042
+ }
5043
+ `;
5044
+ var REQUEST_PASSWORD_RESET_MUTATION = import_client10.gql`
5045
+ mutation requestPasswordReset($input: RequestPasswordResetInputType!) {
5046
+ requestPasswordReset(input: $input) {
5047
+ message
5048
+ }
5049
+ }
5050
+ `;
5051
+ var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client10.gql`
5052
+ mutation validateVerificationToken(
5053
+ $input: ValidateVerificationTokenInputType!
5054
+ ) {
5055
+ validateVerificationToken(input: $input) {
5056
+ message
5057
+ }
5058
+ }
5059
+ `;
5060
+
5061
+ // src/graphql/hooks/auth.ts
5062
+ var useRegister = () => {
5063
+ const [register, { loading, error }] = (0, import_client11.useMutation)(REGISTER_MUTATION);
5064
+ return { error, loading, register };
5065
+ };
5066
+ var useLogin = () => {
5067
+ const [login, { loading, error }] = (0, import_client11.useMutation)(LOGIN_MUTATION);
5068
+ return { error, loading, login };
5069
+ };
5070
+ var useLogout = () => {
5071
+ const [logout, { loading, error }] = (0, import_client11.useMutation)(LOGOUT_MUTATION);
5072
+ return { error, loading, logout };
5073
+ };
5074
+ var useRefreshToken = () => {
5075
+ const [refreshToken, { loading, error }] = (0, import_client11.useMutation)(REFRESH_TOKEN_MUTATION);
5076
+ return { error, loading, refreshToken };
5077
+ };
5078
+ var useRequestPasswordReset = () => {
5079
+ const [requestPasswordReset, { loading, error }] = (0, import_client11.useMutation)(
5080
+ REQUEST_PASSWORD_RESET_MUTATION
5081
+ );
5082
+ return { error, loading, requestPasswordReset };
5083
+ };
5084
+ var useValidateVerificationToken = () => {
5085
+ const [validateVerificationToken, { loading, error }] = (0, import_client11.useMutation)(
5086
+ VALIDATE_VERIFICATION_TOKEN_MUTATION
5087
+ );
5088
+ return { error, loading, validateVerificationToken };
5089
+ };
5090
+ var useResetPassword = () => {
5091
+ const [resetPassword, { loading, error }] = (0, import_client11.useMutation)(
5092
+ RESET_PASSWORD_MUTATION
5093
+ );
5094
+ return { error, loading, resetPassword };
5095
+ };
5096
+
5097
+ // src/graphql/hooks/chat/hooksMutation.ts
5098
+ var import_client14 = require("@apollo/client");
5099
+
5100
+ // src/graphql/mutations/chat.ts
5101
+ var import_client13 = require("@apollo/client");
5102
+
3958
5103
  // src/graphql/queries/chat.ts
3959
- var import_client8 = require("@apollo/client");
3960
- var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client8.gql`
5104
+ var import_client12 = require("@apollo/client");
5105
+ var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client12.gql`
3961
5106
  fragment ChatMessageFields on ChatMessageType {
3962
5107
  _id
3963
5108
  content
@@ -3980,7 +5125,7 @@ var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client8.gql`
3980
5125
  updatedAt
3981
5126
  }
3982
5127
  `;
3983
- var CHAT_PARTICIPANT = import_client8.gql`
5128
+ var CHAT_PARTICIPANT = import_client12.gql`
3984
5129
  fragment ChatParticipantFields on ChatParticipantType {
3985
5130
  active
3986
5131
  isAssociate
@@ -3990,7 +5135,7 @@ var CHAT_PARTICIPANT = import_client8.gql`
3990
5135
  userName
3991
5136
  }
3992
5137
  `;
3993
- var CHAT_FIELDS_FRAGMENT = import_client8.gql`
5138
+ var CHAT_FIELDS_FRAGMENT = import_client12.gql`
3994
5139
  fragment ChatFields on ChatType {
3995
5140
  _id
3996
5141
  active
@@ -4011,7 +5156,7 @@ var CHAT_FIELDS_FRAGMENT = import_client8.gql`
4011
5156
  ${CHAT_MESSAGE_FIELDS_FRAGMENT}
4012
5157
  ${CHAT_PARTICIPANT}
4013
5158
  `;
4014
- var CHAT = import_client8.gql`
5159
+ var CHAT = import_client12.gql`
4015
5160
  query chat($_id: ID!) {
4016
5161
  chat(_id: $_id) {
4017
5162
  ...ChatFields
@@ -4019,7 +5164,7 @@ var CHAT = import_client8.gql`
4019
5164
  }
4020
5165
  ${CHAT_FIELDS_FRAGMENT}
4021
5166
  `;
4022
- var USER_CHATS = import_client8.gql`
5167
+ var USER_CHATS = import_client12.gql`
4023
5168
  query userChats {
4024
5169
  userChats {
4025
5170
  ...ChatFields
@@ -4027,7 +5172,7 @@ var USER_CHATS = import_client8.gql`
4027
5172
  }
4028
5173
  ${CHAT_FIELDS_FRAGMENT}
4029
5174
  `;
4030
- var GET_CHATS_BY_REGION = import_client8.gql`
5175
+ var GET_CHATS_BY_REGION = import_client12.gql`
4031
5176
  query getChatsByRegion($region: String!) {
4032
5177
  chatsByRegion(region: $region) {
4033
5178
  ...ChatFields
@@ -4035,7 +5180,7 @@ var GET_CHATS_BY_REGION = import_client8.gql`
4035
5180
  }
4036
5181
  ${CHAT_FIELDS_FRAGMENT}
4037
5182
  `;
4038
- var CHAT_REPORT_FIELDS_FRAGMENT = import_client8.gql`
5183
+ var CHAT_REPORT_FIELDS_FRAGMENT = import_client12.gql`
4039
5184
  fragment ChatReportFields on ReportChatUserType {
4040
5185
  _id
4041
5186
  chatId
@@ -4050,7 +5195,7 @@ var CHAT_REPORT_FIELDS_FRAGMENT = import_client8.gql`
4050
5195
  updatedAt
4051
5196
  }
4052
5197
  `;
4053
- var GET_REPORTED_CHAT_USERS = import_client8.gql`
5198
+ var GET_REPORTED_CHAT_USERS = import_client12.gql`
4054
5199
  query getReportedChatUsers {
4055
5200
  reportedChatUsers {
4056
5201
  ...ChatReportFields
@@ -4060,7 +5205,7 @@ var GET_REPORTED_CHAT_USERS = import_client8.gql`
4060
5205
  `;
4061
5206
 
4062
5207
  // src/graphql/mutations/chat.ts
4063
- var CREATE_PRIVATE_CHAT_MUTATION = import_client9.gql`
5208
+ var CREATE_PRIVATE_CHAT_MUTATION = import_client13.gql`
4064
5209
  mutation createPrivateChat($userId: ID!) {
4065
5210
  createPrivateChat(userId: $userId) {
4066
5211
  ...ChatFields
@@ -4068,7 +5213,7 @@ var CREATE_PRIVATE_CHAT_MUTATION = import_client9.gql`
4068
5213
  }
4069
5214
  ${CHAT_FIELDS_FRAGMENT}
4070
5215
  `;
4071
- var SEND_CHAT_MESSAGE_MUTATION = import_client9.gql`
5216
+ var SEND_CHAT_MESSAGE_MUTATION = import_client13.gql`
4072
5217
  mutation sendChatMessage($_id: ID!, $input: ChatMessageInputType!) {
4073
5218
  sendChatMessage(_id: $_id, input: $input) {
4074
5219
  ...ChatFields
@@ -4076,12 +5221,12 @@ var SEND_CHAT_MESSAGE_MUTATION = import_client9.gql`
4076
5221
  }
4077
5222
  ${CHAT_FIELDS_FRAGMENT}
4078
5223
  `;
4079
- var DELETE_CHAT_MUTATION = import_client9.gql`
5224
+ var DELETE_CHAT_MUTATION = import_client13.gql`
4080
5225
  mutation deleteChat($_id: ID!) {
4081
5226
  deleteChat(_id: $_id)
4082
5227
  }
4083
5228
  `;
4084
- var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client9.gql`
5229
+ var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client13.gql`
4085
5230
  mutation addParticipantToChat($chatId: ID!, $userId: ID!) {
4086
5231
  addParticipantToChat(chatId: $chatId, userId: $userId) {
4087
5232
  ...ChatFields
@@ -4089,7 +5234,7 @@ var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client9.gql`
4089
5234
  }
4090
5235
  ${CHAT_FIELDS_FRAGMENT}
4091
5236
  `;
4092
- var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client9.gql`
5237
+ var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client13.gql`
4093
5238
  mutation removeParticipantFromChat($chatId: ID!, $userId: ID!) {
4094
5239
  removeParticipantFromChat(chatId: $chatId, userId: $userId) {
4095
5240
  success
@@ -4097,7 +5242,7 @@ var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client9.gql`
4097
5242
  }
4098
5243
  }
4099
5244
  `;
4100
- var TOGGLE_CHAT_MESSAGE_LIKE_MUTATION = import_client9.gql`
5245
+ var TOGGLE_CHAT_MESSAGE_LIKE_MUTATION = import_client13.gql`
4101
5246
  mutation toggleChatMessageLike($chatId: ID!, $messageId: ID!) {
4102
5247
  toggleChatMessageLike(chatId: $chatId, messageId: $messageId) {
4103
5248
  ...ChatFields
@@ -4105,7 +5250,7 @@ var TOGGLE_CHAT_MESSAGE_LIKE_MUTATION = import_client9.gql`
4105
5250
  }
4106
5251
  ${CHAT_FIELDS_FRAGMENT}
4107
5252
  `;
4108
- var MARK_CHAT_MESSAGES_SEEN_MUTATION = import_client9.gql`
5253
+ var MARK_CHAT_MESSAGES_SEEN_MUTATION = import_client13.gql`
4109
5254
  mutation markChatMessagesSeen($chatId: ID!, $messageIds: [ID!]!) {
4110
5255
  markChatMessagesSeen(chatId: $chatId, messageIds: $messageIds) {
4111
5256
  ...ChatFields
@@ -4113,7 +5258,7 @@ var MARK_CHAT_MESSAGES_SEEN_MUTATION = import_client9.gql`
4113
5258
  }
4114
5259
  ${CHAT_FIELDS_FRAGMENT}
4115
5260
  `;
4116
- var REPORT_CHAT_USER_MUTATION = import_client9.gql`
5261
+ var REPORT_CHAT_USER_MUTATION = import_client13.gql`
4117
5262
  mutation reportChatUser($input: ReportChatUserInputType!) {
4118
5263
  reportChatUser(input: $input) {
4119
5264
  ...ChatReportFields
@@ -4124,14 +5269,14 @@ var REPORT_CHAT_USER_MUTATION = import_client9.gql`
4124
5269
 
4125
5270
  // src/graphql/hooks/chat/hooksMutation.ts
4126
5271
  var useCreatePrivateChat = () => {
4127
- const [createPrivateChat, { loading, error }] = (0, import_client10.useMutation)(CREATE_PRIVATE_CHAT_MUTATION, {
5272
+ const [createPrivateChat, { loading, error }] = (0, import_client14.useMutation)(CREATE_PRIVATE_CHAT_MUTATION, {
4128
5273
  awaitRefetchQueries: true,
4129
5274
  refetchQueries: [{ query: USER_CHATS }]
4130
5275
  });
4131
5276
  return { createPrivateChat, error, loading };
4132
5277
  };
4133
5278
  var useSendChatMessage = () => {
4134
- const [sendChatMessage, { loading, error }] = (0, import_client10.useMutation)(SEND_CHAT_MESSAGE_MUTATION, {
5279
+ const [sendChatMessage, { loading, error }] = (0, import_client14.useMutation)(SEND_CHAT_MESSAGE_MUTATION, {
4135
5280
  awaitRefetchQueries: true,
4136
5281
  refetchQueries: (mutationResult) => {
4137
5282
  const chatId = mutationResult?.data?.sendChatMessage?._id;
@@ -4146,14 +5291,14 @@ var useSendChatMessage = () => {
4146
5291
  return { error, loading, sendChatMessage };
4147
5292
  };
4148
5293
  var useDeleteChat = () => {
4149
- const [deleteChat, { loading, error }] = (0, import_client10.useMutation)(DELETE_CHAT_MUTATION, {
5294
+ const [deleteChat, { loading, error }] = (0, import_client14.useMutation)(DELETE_CHAT_MUTATION, {
4150
5295
  awaitRefetchQueries: true,
4151
5296
  refetchQueries: [{ query: USER_CHATS }]
4152
5297
  });
4153
5298
  return { deleteChat, error, loading };
4154
5299
  };
4155
5300
  var useAddParticipantToChat = () => {
4156
- const [addParticipantToChat, { loading, error }] = (0, import_client10.useMutation)(ADD_PARTICIPANT_TO_CHAT_MUTATION, {
5301
+ const [addParticipantToChat, { loading, error }] = (0, import_client14.useMutation)(ADD_PARTICIPANT_TO_CHAT_MUTATION, {
4157
5302
  awaitRefetchQueries: true,
4158
5303
  refetchQueries: (mutationResult) => {
4159
5304
  const chatId = mutationResult?.data?.addParticipantToChat?._id;
@@ -4171,7 +5316,7 @@ var useAddParticipantToChat = () => {
4171
5316
  return { addParticipantToChat, error, loading };
4172
5317
  };
4173
5318
  var useRemoveParticipantFromChat = () => {
4174
- const [removeParticipantFromChat, { loading, error }] = (0, import_client10.useMutation)(REMOVE_PARTICIPANT_FROM_CHAT_MUTATION, {
5319
+ const [removeParticipantFromChat, { loading, error }] = (0, import_client14.useMutation)(REMOVE_PARTICIPANT_FROM_CHAT_MUTATION, {
4175
5320
  awaitRefetchQueries: true,
4176
5321
  refetchQueries: (mutationResult) => {
4177
5322
  const region = mutationResult?.data?.removeParticipantFromChat?.region;
@@ -4188,7 +5333,7 @@ var useRemoveParticipantFromChat = () => {
4188
5333
  return { error, loading, removeParticipantFromChat };
4189
5334
  };
4190
5335
  var useToggleChatMessageLike = () => {
4191
- const [toggleChatMessageLike, { loading, error }] = (0, import_client10.useMutation)(TOGGLE_CHAT_MESSAGE_LIKE_MUTATION, {
5336
+ const [toggleChatMessageLike, { loading, error }] = (0, import_client14.useMutation)(TOGGLE_CHAT_MESSAGE_LIKE_MUTATION, {
4192
5337
  awaitRefetchQueries: true,
4193
5338
  refetchQueries: (mutationResult) => {
4194
5339
  const chatId = mutationResult?.data?.toggleChatMessageLike?._id;
@@ -4203,7 +5348,7 @@ var useToggleChatMessageLike = () => {
4203
5348
  return { error, loading, toggleChatMessageLike };
4204
5349
  };
4205
5350
  var useMarkChatMessagesSeen = () => {
4206
- const [markChatMessagesSeen, { loading, error }] = (0, import_client10.useMutation)(MARK_CHAT_MESSAGES_SEEN_MUTATION, {
5351
+ const [markChatMessagesSeen, { loading, error }] = (0, import_client14.useMutation)(MARK_CHAT_MESSAGES_SEEN_MUTATION, {
4207
5352
  awaitRefetchQueries: true,
4208
5353
  refetchQueries: (mutationResult) => {
4209
5354
  const chatId = mutationResult?.data?.markChatMessagesSeen?._id;
@@ -4218,18 +5363,18 @@ var useMarkChatMessagesSeen = () => {
4218
5363
  return { error, loading, markChatMessagesSeen };
4219
5364
  };
4220
5365
  var useReportChatUser = () => {
4221
- const [reportChatUser, { loading, error }] = (0, import_client10.useMutation)(
5366
+ const [reportChatUser, { loading, error }] = (0, import_client14.useMutation)(
4222
5367
  REPORT_CHAT_USER_MUTATION
4223
5368
  );
4224
5369
  return { error, loading, reportChatUser };
4225
5370
  };
4226
5371
 
4227
5372
  // src/graphql/hooks/chat/hooksQuery.ts
4228
- var import_client12 = require("@apollo/client");
5373
+ var import_client16 = require("@apollo/client");
4229
5374
 
4230
5375
  // src/graphql/subscriptions/chat.ts
4231
- var import_client11 = require("@apollo/client");
4232
- var GET_CHAT_MESSAGE = import_client11.gql`
5376
+ var import_client15 = require("@apollo/client");
5377
+ var GET_CHAT_MESSAGE = import_client15.gql`
4233
5378
  subscription {
4234
5379
  getChatMessage {
4235
5380
  ...ChatFields
@@ -4240,7 +5385,7 @@ var GET_CHAT_MESSAGE = import_client11.gql`
4240
5385
 
4241
5386
  // src/graphql/hooks/chat/hooksQuery.ts
4242
5387
  var useGetChat = (_id) => {
4243
- const { loading, error, data, refetch } = (0, import_client12.useQuery)(CHAT, {
5388
+ const { loading, error, data, refetch } = (0, import_client16.useQuery)(CHAT, {
4244
5389
  fetchPolicy: "network-only",
4245
5390
  skip: !_id || _id === "",
4246
5391
  variables: { _id }
@@ -4249,7 +5394,7 @@ var useGetChat = (_id) => {
4249
5394
  return { chat, error, loading, refetch };
4250
5395
  };
4251
5396
  var useGetUserChats = () => {
4252
- const { loading, error, data, refetch } = (0, import_client12.useQuery)(
5397
+ const { loading, error, data, refetch } = (0, import_client16.useQuery)(
4253
5398
  USER_CHATS,
4254
5399
  {
4255
5400
  fetchPolicy: "network-only"
@@ -4259,14 +5404,14 @@ var useGetUserChats = () => {
4259
5404
  return { error, loading, refetch, userChats };
4260
5405
  };
4261
5406
  var useGetChatSubscription = () => {
4262
- const { data, loading, error } = (0, import_client12.useSubscription)(
5407
+ const { data, loading, error } = (0, import_client16.useSubscription)(
4263
5408
  GET_CHAT_MESSAGE
4264
5409
  );
4265
5410
  const chat = data?.getChat;
4266
5411
  return { chat, error, loading };
4267
5412
  };
4268
5413
  var useGetChatsByRegion = (region) => {
4269
- const { loading, error, data, refetch } = (0, import_client12.useQuery)(GET_CHATS_BY_REGION, {
5414
+ const { loading, error, data, refetch } = (0, import_client16.useQuery)(GET_CHATS_BY_REGION, {
4270
5415
  fetchPolicy: "network-only",
4271
5416
  skip: !region || region === "",
4272
5417
  variables: { region }
@@ -4275,7 +5420,7 @@ var useGetChatsByRegion = (region) => {
4275
5420
  return { chatsByRegion, error, loading, refetch };
4276
5421
  };
4277
5422
  var useGetReportedChatUsers = () => {
4278
- const { loading, error, data, refetch } = (0, import_client12.useQuery)(GET_REPORTED_CHAT_USERS, {
5423
+ const { loading, error, data, refetch } = (0, import_client16.useQuery)(GET_REPORTED_CHAT_USERS, {
4279
5424
  fetchPolicy: "network-only"
4280
5425
  });
4281
5426
  const reportedChatUsers = data?.reportedChatUsers || [];
@@ -4283,11 +5428,11 @@ var useGetReportedChatUsers = () => {
4283
5428
  };
4284
5429
 
4285
5430
  // src/graphql/hooks/contactUs.ts
4286
- var import_client14 = require("@apollo/client");
5431
+ var import_client18 = require("@apollo/client");
4287
5432
 
4288
5433
  // src/graphql/mutations/contactUs.ts
4289
- var import_client13 = require("@apollo/client");
4290
- var CONTACT_US_MUTATION = import_client13.gql`
5434
+ var import_client17 = require("@apollo/client");
5435
+ var CONTACT_US_MUTATION = import_client17.gql`
4291
5436
  mutation contactUs($input: ContactUsInputType!) {
4292
5437
  contactUs(input: $input) {
4293
5438
  message
@@ -4297,16 +5442,16 @@ var CONTACT_US_MUTATION = import_client13.gql`
4297
5442
 
4298
5443
  // src/graphql/hooks/contactUs.ts
4299
5444
  var useContactUs = () => {
4300
- const [contactUs, { loading, error }] = (0, import_client14.useMutation)(CONTACT_US_MUTATION);
5445
+ const [contactUs, { loading, error }] = (0, import_client18.useMutation)(CONTACT_US_MUTATION);
4301
5446
  return { contactUs, error, loading };
4302
5447
  };
4303
5448
 
4304
5449
  // src/graphql/hooks/event/hooksMutation.ts
4305
- var import_client18 = require("@apollo/client");
5450
+ var import_client21 = require("@apollo/client");
4306
5451
 
4307
5452
  // src/graphql/mutations/event.ts
4308
- var import_client15 = require("@apollo/client");
4309
- var CREATE_EVENT_MUTATION = import_client15.gql`
5453
+ var import_client19 = require("@apollo/client");
5454
+ var CREATE_EVENT_MUTATION = import_client19.gql`
4310
5455
  mutation createEvent($input: EventInputType!) {
4311
5456
  createEvent(input: $input) {
4312
5457
  ...EventFields
@@ -4314,7 +5459,7 @@ var CREATE_EVENT_MUTATION = import_client15.gql`
4314
5459
  }
4315
5460
  ${EVENT}
4316
5461
  `;
4317
- var UPDATE_EVENT_MUTATION = import_client15.gql`
5462
+ var UPDATE_EVENT_MUTATION = import_client19.gql`
4318
5463
  mutation updateEvent($_id: ID!, $input: EventInputType!) {
4319
5464
  updateEvent(_id: $_id, input: $input) {
4320
5465
  ...EventFields
@@ -4322,12 +5467,12 @@ var UPDATE_EVENT_MUTATION = import_client15.gql`
4322
5467
  }
4323
5468
  ${EVENT}
4324
5469
  `;
4325
- var DELETE_EVENT_MUTATION = import_client15.gql`
5470
+ var DELETE_EVENT_MUTATION = import_client19.gql`
4326
5471
  mutation deleteEvent($_id: ID!) {
4327
5472
  deleteEvent(_id: $_id)
4328
5473
  }
4329
5474
  `;
4330
- var CREATE_EVENT_INFO_MUTATION = import_client15.gql`
5475
+ var CREATE_EVENT_INFO_MUTATION = import_client19.gql`
4331
5476
  mutation createEventInfo($input: EventInfoInputType!) {
4332
5477
  createEventInfo(input: $input) {
4333
5478
  ...EventInfoFields
@@ -4335,7 +5480,7 @@ var CREATE_EVENT_INFO_MUTATION = import_client15.gql`
4335
5480
  }
4336
5481
  ${EVENT_INFO}
4337
5482
  `;
4338
- var UPDATE_EVENT_INFO_MUTATION = import_client15.gql`
5483
+ var UPDATE_EVENT_INFO_MUTATION = import_client19.gql`
4339
5484
  mutation updateEventInfo($_id: ID!, $input: EventInfoInputType!) {
4340
5485
  updateEventInfo(_id: $_id, input: $input) {
4341
5486
  ...EventInfoFields
@@ -4345,107 +5490,8 @@ var UPDATE_EVENT_INFO_MUTATION = import_client15.gql`
4345
5490
  `;
4346
5491
 
4347
5492
  // src/graphql/queries/user.ts
4348
- var import_client17 = require("@apollo/client");
4349
-
4350
- // src/graphql/queries/partner.ts
4351
- var import_client16 = require("@apollo/client");
4352
- var PARTNER = import_client16.gql`
4353
- fragment PartnerFields on PartnerType {
4354
- _id
4355
- active
4356
- associates {
4357
- ...AssociatesFields
4358
- }
4359
- adIds
4360
- cover {
4361
- ...ResourceImageFields
4362
- }
4363
- createdAt
4364
- contactDetails {
4365
- ...ContactDetailsFields
4366
- }
4367
- description
4368
- deletedAt
4369
- images {
4370
- ...ResourceImageFields
4371
- }
4372
- location {
4373
- ...LocationFields
4374
- }
4375
- logo {
4376
- ...ResourceImageFields
4377
- }
4378
- name
4379
- nzbn
4380
- owner {
4381
- ...OwnerFields
4382
- }
4383
- partnerType
4384
- posterUsage {
4385
- ...PosterUsageFields
4386
- }
4387
- rating
4388
- region
4389
- reviewCount
4390
- relatedPost {
4391
- ...RelatedPostFields
4392
- }
4393
- socialMedia {
4394
- ...SocialMediaFields
4395
- }
4396
- termsAgreement {
4397
- ...TermsAgreementFields
4398
- }
4399
- updatedAt
4400
- }
4401
- ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
4402
- ${LOCATION_FIELDS_FRAGMENT}
4403
- ${OWNER_FIELDS_FRAGMENT}
4404
- ${ASSOCIATES_FIELDS_FRAGMENT}
4405
- ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
4406
- ${POSTER_USAGE_FIELDS_FRAGMENT}
4407
- ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
4408
- ${CONTACT_DETAILS_FIELDS_FRAGMENT}
4409
- ${RELATED_POST_FIELDS_FRAGMENT}
4410
- `;
4411
- var GET_PARTNERS = import_client16.gql`
4412
- query getPartners {
4413
- partners {
4414
- ...PartnerFields
4415
- }
4416
- }
4417
- ${PARTNER}
4418
- `;
4419
- var GET_PARTNER = import_client16.gql`
4420
- query getPartner($_id: ID!) {
4421
- partner(_id: $_id) {
4422
- ...PartnerFields
4423
- }
4424
- }
4425
- ${PARTNER}
4426
- `;
4427
- var GET_PARTNERS_BY_REGION = import_client16.gql`
4428
- query getPartnersByRegion(
4429
- $region: String!
4430
- $options: ResourcesByRegionOptions
4431
- ) {
4432
- partnersByRegion(region: $region, options: $options) {
4433
- ...PartnerFields
4434
- }
4435
- }
4436
- ${PARTNER}
4437
- `;
4438
- var SEARCH_PARTNERS = import_client16.gql`
4439
- query searchPartners($search: String!, $region: String) {
4440
- partnersSearch(search: $search, region: $region) {
4441
- ...PartnerFields
4442
- }
4443
- }
4444
- ${PARTNER}
4445
- `;
4446
-
4447
- // src/graphql/queries/user.ts
4448
- var GET_USERS = import_client17.gql`
5493
+ var import_client20 = require("@apollo/client");
5494
+ var GET_USERS = import_client20.gql`
4449
5495
  query getUsers {
4450
5496
  users {
4451
5497
  ...UserFields
@@ -4453,7 +5499,7 @@ var GET_USERS = import_client17.gql`
4453
5499
  }
4454
5500
  ${USER_FIELDS_FRAGMENT}
4455
5501
  `;
4456
- var GET_USER = import_client17.gql`
5502
+ var GET_USER = import_client20.gql`
4457
5503
  query getUser($_id: ID!) {
4458
5504
  user(_id: $_id) {
4459
5505
  ...UserFields
@@ -4461,7 +5507,7 @@ var GET_USER = import_client17.gql`
4461
5507
  }
4462
5508
  ${USER_FIELDS_FRAGMENT}
4463
5509
  `;
4464
- var GET_USER_EVENTS = import_client17.gql`
5510
+ var GET_USER_EVENTS = import_client20.gql`
4465
5511
  query getUserEvents {
4466
5512
  userEvents {
4467
5513
  ...EventFields
@@ -4469,7 +5515,7 @@ var GET_USER_EVENTS = import_client17.gql`
4469
5515
  }
4470
5516
  ${EVENT}
4471
5517
  `;
4472
- var GET_USER_VENDORS = import_client17.gql`
5518
+ var GET_USER_VENDORS = import_client20.gql`
4473
5519
  query getUserVendors {
4474
5520
  userVendors {
4475
5521
  ...VendorFields
@@ -4477,7 +5523,7 @@ var GET_USER_VENDORS = import_client17.gql`
4477
5523
  }
4478
5524
  ${VENDOR}
4479
5525
  `;
4480
- var GET_USER_PARTNERS = import_client17.gql`
5526
+ var GET_USER_PARTNERS = import_client20.gql`
4481
5527
  query getUserPartners {
4482
5528
  userPartners {
4483
5529
  ...PartnerFields
@@ -4485,7 +5531,7 @@ var GET_USER_PARTNERS = import_client17.gql`
4485
5531
  }
4486
5532
  ${PARTNER}
4487
5533
  `;
4488
- var GET_USER_ACTIVITIES = import_client17.gql`
5534
+ var GET_USER_ACTIVITIES = import_client20.gql`
4489
5535
  query getUserActivities {
4490
5536
  userActivities {
4491
5537
  favourites {
@@ -4520,7 +5566,7 @@ var GET_USER_ACTIVITIES = import_client17.gql`
4520
5566
  ${VENDOR}
4521
5567
  ${PARTNER}
4522
5568
  `;
4523
- var GET_USER_RESOURCES = import_client17.gql`
5569
+ var GET_USER_RESOURCES = import_client20.gql`
4524
5570
  query getUserResources($userId: ID!) {
4525
5571
  userResources(userId: $userId) {
4526
5572
  resources {
@@ -4535,14 +5581,14 @@ var GET_USER_RESOURCES = import_client17.gql`
4535
5581
 
4536
5582
  // src/graphql/hooks/event/hooksMutation.ts
4537
5583
  var useCreateEvent = () => {
4538
- const [createEvent, { loading, error }] = (0, import_client18.useMutation)(CREATE_EVENT_MUTATION, {
5584
+ const [createEvent, { loading, error }] = (0, import_client21.useMutation)(CREATE_EVENT_MUTATION, {
4539
5585
  awaitRefetchQueries: true,
4540
5586
  refetchQueries: [{ query: GET_USER_EVENTS }]
4541
5587
  });
4542
5588
  return { createEvent, error, loading };
4543
5589
  };
4544
5590
  var useUpdateEvent = () => {
4545
- const [updateEvent, { loading, error }] = (0, import_client18.useMutation)(UPDATE_EVENT_MUTATION, {
5591
+ const [updateEvent, { loading, error }] = (0, import_client21.useMutation)(UPDATE_EVENT_MUTATION, {
4546
5592
  awaitRefetchQueries: true,
4547
5593
  refetchQueries: (mutationResult) => {
4548
5594
  const eventId = mutationResult?.data?.updateEvent?._id;
@@ -4565,14 +5611,14 @@ var useUpdateEvent = () => {
4565
5611
  return { error, loading, updateEvent };
4566
5612
  };
4567
5613
  var useDeleteEvent = () => {
4568
- const [deleteEvent, { loading, error }] = (0, import_client18.useMutation)(DELETE_EVENT_MUTATION, {
5614
+ const [deleteEvent, { loading, error }] = (0, import_client21.useMutation)(DELETE_EVENT_MUTATION, {
4569
5615
  awaitRefetchQueries: true,
4570
5616
  refetchQueries: [{ query: GET_USER_EVENTS }]
4571
5617
  });
4572
5618
  return { deleteEvent, error, loading };
4573
5619
  };
4574
5620
  var useCreateEventInfo = () => {
4575
- const [createEventInfo, { loading, error }] = (0, import_client18.useMutation)(CREATE_EVENT_INFO_MUTATION, {
5621
+ const [createEventInfo, { loading, error }] = (0, import_client21.useMutation)(CREATE_EVENT_INFO_MUTATION, {
4576
5622
  awaitRefetchQueries: true,
4577
5623
  refetchQueries: (mutationResult) => {
4578
5624
  const eventId = mutationResult?.data?.createEventInfo?.eventId;
@@ -4596,7 +5642,7 @@ var useCreateEventInfo = () => {
4596
5642
  return { createEventInfo, error, loading };
4597
5643
  };
4598
5644
  var useUpdateEventInfo = () => {
4599
- const [updateEventInfo, { loading, error }] = (0, import_client18.useMutation)(UPDATE_EVENT_INFO_MUTATION, {
5645
+ const [updateEventInfo, { loading, error }] = (0, import_client21.useMutation)(UPDATE_EVENT_INFO_MUTATION, {
4600
5646
  awaitRefetchQueries: true,
4601
5647
  refetchQueries: (mutationResult) => {
4602
5648
  const eventId = mutationResult?.data?.updateEventInfo?.eventId;
@@ -4620,9 +5666,9 @@ var useUpdateEventInfo = () => {
4620
5666
  };
4621
5667
 
4622
5668
  // src/graphql/hooks/event/hooksQuery.ts
4623
- var import_client19 = require("@apollo/client");
5669
+ var import_client22 = require("@apollo/client");
4624
5670
  var useGetEvents = (dateStatus) => {
4625
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_EVENTS, {
5671
+ const { loading, error, data, refetch } = (0, import_client22.useQuery)(GET_EVENTS, {
4626
5672
  fetchPolicy: "network-only",
4627
5673
  variables: { dateStatus }
4628
5674
  });
@@ -4630,7 +5676,7 @@ var useGetEvents = (dateStatus) => {
4630
5676
  return { error, events, loading, refetch };
4631
5677
  };
4632
5678
  var useGetEvent = (_id) => {
4633
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_EVENT, {
5679
+ const { loading, error, data, refetch } = (0, import_client22.useQuery)(GET_EVENT, {
4634
5680
  fetchPolicy: "network-only",
4635
5681
  skip: !_id,
4636
5682
  variables: { _id }
@@ -4639,7 +5685,7 @@ var useGetEvent = (_id) => {
4639
5685
  return { error, event, loading, refetch };
4640
5686
  };
4641
5687
  var useGetEventByPlaceId = (googlePlaceId) => {
4642
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_EVENT_BY_PLACE_ID, {
5688
+ const { loading, error, data, refetch } = (0, import_client22.useQuery)(GET_EVENT_BY_PLACE_ID, {
4643
5689
  fetchPolicy: "network-only",
4644
5690
  skip: !googlePlaceId,
4645
5691
  variables: { googlePlaceId }
@@ -4653,7 +5699,7 @@ var useGetEventsByRegion = (region, options, dateStatus) => {
4653
5699
  options,
4654
5700
  region
4655
5701
  };
4656
- const { loading, error, data, refetch, fetchMore } = (0, import_client19.useQuery)(GET_EVENTS_BY_REGION, {
5702
+ const { loading, error, data, refetch, fetchMore } = (0, import_client22.useQuery)(GET_EVENTS_BY_REGION, {
4657
5703
  fetchPolicy: "network-only",
4658
5704
  skip: !region || region === "",
4659
5705
  variables
@@ -4671,7 +5717,7 @@ var useSearchEvents = (region, searchQuery, tags, dateStatus) => {
4671
5717
  const normalizedSearch = searchQuery?.trim() ?? "";
4672
5718
  const normalizedTags = (tags ?? []).filter(Boolean);
4673
5719
  const shouldRunQuery = Boolean(region?.trim()) && (normalizedSearch.length > 3 || normalizedTags.length > 0);
4674
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(SEARCH_EVENTS, {
5720
+ const { loading, error, data, refetch } = (0, import_client22.useQuery)(SEARCH_EVENTS, {
4675
5721
  fetchPolicy: "network-only",
4676
5722
  skip: !shouldRunQuery,
4677
5723
  variables: {
@@ -4689,7 +5735,7 @@ var useSearchEvents = (region, searchQuery, tags, dateStatus) => {
4689
5735
  };
4690
5736
  };
4691
5737
  var useGetEventsNearMe = (location, dateStatus) => {
4692
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_EVENTS_NEAR_ME, {
5738
+ const { loading, error, data, refetch } = (0, import_client22.useQuery)(GET_EVENTS_NEAR_ME, {
4693
5739
  fetchPolicy: "network-only",
4694
5740
  skip: !location.latitude || !location.longitude,
4695
5741
  variables: {
@@ -4704,7 +5750,7 @@ var useGetEventsNearMe = (location, dateStatus) => {
4704
5750
  return { error, eventsNearMe, loading, refetch };
4705
5751
  };
4706
5752
  var useGetEventInfo = (eventId) => {
4707
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_EVENT_INFO, {
5753
+ const { loading, error, data, refetch } = (0, import_client22.useQuery)(GET_EVENT_INFO, {
4708
5754
  fetchPolicy: "network-only",
4709
5755
  skip: !eventId || eventId === "",
4710
5756
  variables: { eventId }
@@ -4714,14 +5760,14 @@ var useGetEventInfo = (eventId) => {
4714
5760
  };
4715
5761
 
4716
5762
  // src/graphql/hooks/notifications/hooksMutation.ts
4717
- var import_client22 = require("@apollo/client");
5763
+ var import_client25 = require("@apollo/client");
4718
5764
 
4719
5765
  // src/graphql/mutations/notification.ts
4720
- var import_client21 = require("@apollo/client");
5766
+ var import_client24 = require("@apollo/client");
4721
5767
 
4722
5768
  // src/graphql/queries/notification.ts
4723
- var import_client20 = require("@apollo/client");
4724
- var NOTIFICATION_FRAGMENT = import_client20.gql`
5769
+ var import_client23 = require("@apollo/client");
5770
+ var NOTIFICATION_FRAGMENT = import_client23.gql`
4725
5771
  fragment NotificationFields on Notification {
4726
5772
  _id
4727
5773
  userId
@@ -4738,7 +5784,7 @@ var NOTIFICATION_FRAGMENT = import_client20.gql`
4738
5784
  updatedAt
4739
5785
  }
4740
5786
  `;
4741
- var GET_USER_NOTIFICATIONS = import_client20.gql`
5787
+ var GET_USER_NOTIFICATIONS = import_client23.gql`
4742
5788
  query getUserNotifications($limit: Int, $offset: Int) {
4743
5789
  userNotifications(limit: $limit, offset: $offset) {
4744
5790
  ...NotificationFields
@@ -4746,7 +5792,7 @@ var GET_USER_NOTIFICATIONS = import_client20.gql`
4746
5792
  }
4747
5793
  ${NOTIFICATION_FRAGMENT}
4748
5794
  `;
4749
- var GET_NOTIFICATION_COUNT = import_client20.gql`
5795
+ var GET_NOTIFICATION_COUNT = import_client23.gql`
4750
5796
  query getNotificationCount {
4751
5797
  notificationCount {
4752
5798
  total
@@ -4756,7 +5802,7 @@ var GET_NOTIFICATION_COUNT = import_client20.gql`
4756
5802
  `;
4757
5803
 
4758
5804
  // src/graphql/mutations/notification.ts
4759
- var CREATE_BULK_NOTIFICATIONS = import_client21.gql`
5805
+ var CREATE_BULK_NOTIFICATIONS = import_client24.gql`
4760
5806
  mutation createBulkNotifications($input: CreateBulkNotificationInput!) {
4761
5807
  createBulkNotifications(input: $input) {
4762
5808
  ...NotificationFields
@@ -4764,7 +5810,7 @@ var CREATE_BULK_NOTIFICATIONS = import_client21.gql`
4764
5810
  }
4765
5811
  ${NOTIFICATION_FRAGMENT}
4766
5812
  `;
4767
- var MARK_NOTIFICATION_READ = import_client21.gql`
5813
+ var MARK_NOTIFICATION_READ = import_client24.gql`
4768
5814
  mutation markNotificationRead($_id: ID!) {
4769
5815
  markNotificationRead(_id: $_id) {
4770
5816
  ...NotificationFields
@@ -4772,17 +5818,17 @@ var MARK_NOTIFICATION_READ = import_client21.gql`
4772
5818
  }
4773
5819
  ${NOTIFICATION_FRAGMENT}
4774
5820
  `;
4775
- var MARK_ALL_NOTIFICATIONS_READ = import_client21.gql`
5821
+ var MARK_ALL_NOTIFICATIONS_READ = import_client24.gql`
4776
5822
  mutation markAllNotificationsRead {
4777
5823
  markAllNotificationsRead
4778
5824
  }
4779
5825
  `;
4780
- var DELETE_NOTIFICATION = import_client21.gql`
5826
+ var DELETE_NOTIFICATION = import_client24.gql`
4781
5827
  mutation deleteNotification($_id: ID!) {
4782
5828
  deleteNotification(_id: $_id)
4783
5829
  }
4784
5830
  `;
4785
- var DELETE_ALL_NOTIFICATIONS = import_client21.gql`
5831
+ var DELETE_ALL_NOTIFICATIONS = import_client24.gql`
4786
5832
  mutation deleteAllNotifications {
4787
5833
  deleteAllNotifications
4788
5834
  }
@@ -4790,13 +5836,13 @@ var DELETE_ALL_NOTIFICATIONS = import_client21.gql`
4790
5836
 
4791
5837
  // src/graphql/hooks/notifications/hooksMutation.ts
4792
5838
  var useCreateBulkNotifications = () => {
4793
- const [createBulkNotifications, { loading, error }] = (0, import_client22.useMutation)(
5839
+ const [createBulkNotifications, { loading, error }] = (0, import_client25.useMutation)(
4794
5840
  CREATE_BULK_NOTIFICATIONS
4795
5841
  );
4796
5842
  return { createBulkNotifications, error, loading };
4797
5843
  };
4798
5844
  var useMarkNotificationRead = () => {
4799
- const [markNotificationRead, { loading, error }] = (0, import_client22.useMutation)(
5845
+ const [markNotificationRead, { loading, error }] = (0, import_client25.useMutation)(
4800
5846
  MARK_NOTIFICATION_READ,
4801
5847
  {
4802
5848
  refetchQueries: [
@@ -4812,7 +5858,7 @@ var useMarkNotificationRead = () => {
4812
5858
  return { error, loading, markNotificationRead };
4813
5859
  };
4814
5860
  var useMarkAllNotificationsRead = () => {
4815
- const [markAllNotificationsRead, { loading, error }] = (0, import_client22.useMutation)(
5861
+ const [markAllNotificationsRead, { loading, error }] = (0, import_client25.useMutation)(
4816
5862
  MARK_ALL_NOTIFICATIONS_READ,
4817
5863
  {
4818
5864
  refetchQueries: [
@@ -4828,7 +5874,7 @@ var useMarkAllNotificationsRead = () => {
4828
5874
  return { error, loading, markAllNotificationsRead };
4829
5875
  };
4830
5876
  var useDeleteNotification = () => {
4831
- const [deleteNotification, { loading, error }] = (0, import_client22.useMutation)(
5877
+ const [deleteNotification, { loading, error }] = (0, import_client25.useMutation)(
4832
5878
  DELETE_NOTIFICATION,
4833
5879
  {
4834
5880
  refetchQueries: [
@@ -4844,7 +5890,7 @@ var useDeleteNotification = () => {
4844
5890
  return { deleteNotification, error, loading };
4845
5891
  };
4846
5892
  var useDeleteAllNotifications = () => {
4847
- const [deleteAllNotifications, { loading, error }] = (0, import_client22.useMutation)(
5893
+ const [deleteAllNotifications, { loading, error }] = (0, import_client25.useMutation)(
4848
5894
  DELETE_ALL_NOTIFICATIONS,
4849
5895
  {
4850
5896
  refetchQueries: [
@@ -4861,9 +5907,9 @@ var useDeleteAllNotifications = () => {
4861
5907
  };
4862
5908
 
4863
5909
  // src/graphql/hooks/notifications/hooksQuery.ts
4864
- var import_client23 = require("@apollo/client");
5910
+ var import_client26 = require("@apollo/client");
4865
5911
  var useGetUserNotifications = (limit, offset) => {
4866
- const { data, loading, error, refetch } = (0, import_client23.useQuery)(GET_USER_NOTIFICATIONS, {
5912
+ const { data, loading, error, refetch } = (0, import_client26.useQuery)(GET_USER_NOTIFICATIONS, {
4867
5913
  fetchPolicy: "no-cache",
4868
5914
  variables: { limit, offset }
4869
5915
  });
@@ -4875,7 +5921,7 @@ var useGetUserNotifications = (limit, offset) => {
4875
5921
  };
4876
5922
  };
4877
5923
  var useGetNotificationCount = () => {
4878
- const { data, loading, error, refetch } = (0, import_client23.useQuery)(GET_NOTIFICATION_COUNT, {
5924
+ const { data, loading, error, refetch } = (0, import_client26.useQuery)(GET_NOTIFICATION_COUNT, {
4879
5925
  fetchPolicy: "no-cache"
4880
5926
  });
4881
5927
  return {
@@ -4887,11 +5933,11 @@ var useGetNotificationCount = () => {
4887
5933
  };
4888
5934
 
4889
5935
  // src/graphql/hooks/notifications/hooksSubscription.ts
4890
- var import_client25 = require("@apollo/client");
5936
+ var import_client28 = require("@apollo/client");
4891
5937
 
4892
5938
  // src/graphql/subscriptions/notification.ts
4893
- var import_client24 = require("@apollo/client");
4894
- var GET_NOTIFICATIONS_SUBSCRIPTION = import_client24.gql`
5939
+ var import_client27 = require("@apollo/client");
5940
+ var GET_NOTIFICATIONS_SUBSCRIPTION = import_client27.gql`
4895
5941
  subscription {
4896
5942
  getUserNotifications {
4897
5943
  ...NotificationFields
@@ -4899,7 +5945,7 @@ var GET_NOTIFICATIONS_SUBSCRIPTION = import_client24.gql`
4899
5945
  }
4900
5946
  ${NOTIFICATION_FRAGMENT}
4901
5947
  `;
4902
- var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client24.gql`
5948
+ var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client27.gql`
4903
5949
  subscription {
4904
5950
  getNotificationCount {
4905
5951
  total
@@ -4910,7 +5956,7 @@ var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client24.gql`
4910
5956
 
4911
5957
  // src/graphql/hooks/notifications/hooksSubscription.ts
4912
5958
  var useGetUserNotificationsSubscription = () => {
4913
- const { data, loading, error } = (0, import_client25.useSubscription)(GET_NOTIFICATIONS_SUBSCRIPTION, {
5959
+ const { data, loading, error } = (0, import_client28.useSubscription)(GET_NOTIFICATIONS_SUBSCRIPTION, {
4914
5960
  fetchPolicy: "no-cache",
4915
5961
  shouldResubscribe: true
4916
5962
  });
@@ -4921,7 +5967,7 @@ var useGetUserNotificationsSubscription = () => {
4921
5967
  };
4922
5968
  };
4923
5969
  var useGetNotificationCountSubscription = () => {
4924
- const { data, loading, error } = (0, import_client25.useSubscription)(GET_NOTIFICATION_COUNT_SUBSCRIPTION, {
5970
+ const { data, loading, error } = (0, import_client28.useSubscription)(GET_NOTIFICATION_COUNT_SUBSCRIPTION, {
4925
5971
  fetchPolicy: "no-cache",
4926
5972
  shouldResubscribe: true
4927
5973
  });
@@ -4933,11 +5979,11 @@ var useGetNotificationCountSubscription = () => {
4933
5979
  };
4934
5980
 
4935
5981
  // src/graphql/hooks/poster.ts
4936
- var import_client27 = require("@apollo/client");
5982
+ var import_client30 = require("@apollo/client");
4937
5983
 
4938
5984
  // src/graphql/mutations/poster.ts
4939
- var import_client26 = require("@apollo/client");
4940
- var CREATE_POSTER_MUTATION = import_client26.gql`
5985
+ var import_client29 = require("@apollo/client");
5986
+ var CREATE_POSTER_MUTATION = import_client29.gql`
4941
5987
  mutation createPoster($input: PosterInputType!) {
4942
5988
  createPoster(input: $input) {
4943
5989
  message
@@ -4951,7 +5997,7 @@ var CREATE_POSTER_MUTATION = import_client26.gql`
4951
5997
 
4952
5998
  // src/graphql/hooks/poster.ts
4953
5999
  var useCreatePoster = () => {
4954
- const [createPoster, { loading, error }] = (0, import_client27.useMutation)(
6000
+ const [createPoster, { loading, error }] = (0, import_client30.useMutation)(
4955
6001
  CREATE_POSTER_MUTATION,
4956
6002
  {
4957
6003
  refetchQueries: [{ query: GET_USER_EVENTS }, { query: GET_USER_VENDORS }]
@@ -4961,11 +6007,11 @@ var useCreatePoster = () => {
4961
6007
  };
4962
6008
 
4963
6009
  // src/graphql/hooks/pushToken.ts
4964
- var import_client29 = require("@apollo/client");
6010
+ var import_client32 = require("@apollo/client");
4965
6011
 
4966
6012
  // src/graphql/mutations/pushToken.ts
4967
- var import_client28 = require("@apollo/client");
4968
- var CREATE_PUSH_TOKEN_MUTATION = import_client28.gql`
6013
+ var import_client31 = require("@apollo/client");
6014
+ var CREATE_PUSH_TOKEN_MUTATION = import_client31.gql`
4969
6015
  mutation createPushToken($input: PushTokenInput!) {
4970
6016
  createPushToken(input: $input) {
4971
6017
  success
@@ -4975,21 +6021,21 @@ var CREATE_PUSH_TOKEN_MUTATION = import_client28.gql`
4975
6021
 
4976
6022
  // src/graphql/hooks/pushToken.ts
4977
6023
  var useCreatePushToken = () => {
4978
- const [createPushToken, { loading, error }] = (0, import_client29.useMutation)(
6024
+ const [createPushToken, { loading, error }] = (0, import_client32.useMutation)(
4979
6025
  CREATE_PUSH_TOKEN_MUTATION
4980
6026
  );
4981
6027
  return { createPushToken, error, loading };
4982
6028
  };
4983
6029
 
4984
6030
  // src/graphql/hooks/relation/hooksMutation.ts
4985
- var import_client32 = require("@apollo/client");
6031
+ var import_client35 = require("@apollo/client");
4986
6032
 
4987
6033
  // src/graphql/mutations/relation.ts
4988
- var import_client31 = require("@apollo/client");
6034
+ var import_client34 = require("@apollo/client");
4989
6035
 
4990
6036
  // src/graphql/queries/relation.ts
4991
- var import_client30 = require("@apollo/client");
4992
- var RELATION_FIELDS_FRAGMENT = import_client30.gql`
6037
+ var import_client33 = require("@apollo/client");
6038
+ var RELATION_FIELDS_FRAGMENT = import_client33.gql`
4993
6039
  fragment RelationFields on RelationType {
4994
6040
  _id
4995
6041
  active
@@ -5006,7 +6052,7 @@ var RELATION_FIELDS_FRAGMENT = import_client30.gql`
5006
6052
  }
5007
6053
  ${RELATION_DATES_FRAGMENT}
5008
6054
  `;
5009
- var GET_RELATION = import_client30.gql`
6055
+ var GET_RELATION = import_client33.gql`
5010
6056
  query getRelation($_id: ID!) {
5011
6057
  relation(_id: $_id) {
5012
6058
  ...RelationFields
@@ -5014,7 +6060,7 @@ var GET_RELATION = import_client30.gql`
5014
6060
  }
5015
6061
  ${RELATION_FIELDS_FRAGMENT}
5016
6062
  `;
5017
- var GET_RELATION_BY_EVENT_AND_VENDOR = import_client30.gql`
6063
+ var GET_RELATION_BY_EVENT_AND_VENDOR = import_client33.gql`
5018
6064
  query getRelationByEventAndVendor($eventId: ID!, $vendorId: ID!) {
5019
6065
  relationByEventAndVendor(eventId: $eventId, vendorId: $vendorId) {
5020
6066
  ...RelationFields
@@ -5022,7 +6068,7 @@ var GET_RELATION_BY_EVENT_AND_VENDOR = import_client30.gql`
5022
6068
  }
5023
6069
  ${RELATION_FIELDS_FRAGMENT}
5024
6070
  `;
5025
- var GET_EVENT_RELATIONS = import_client30.gql`
6071
+ var GET_EVENT_RELATIONS = import_client33.gql`
5026
6072
  query getEventRelations($eventId: ID!) {
5027
6073
  eventRelations(eventId: $eventId) {
5028
6074
  ...RelationFields
@@ -5030,7 +6076,7 @@ var GET_EVENT_RELATIONS = import_client30.gql`
5030
6076
  }
5031
6077
  ${RELATION_FIELDS_FRAGMENT}
5032
6078
  `;
5033
- var GET_VENDOR_RELATIONS = import_client30.gql`
6079
+ var GET_VENDOR_RELATIONS = import_client33.gql`
5034
6080
  query getVendorRelations($vendorId: ID!) {
5035
6081
  vendorRelations(vendorId: $vendorId) {
5036
6082
  ...RelationFields
@@ -5038,7 +6084,7 @@ var GET_VENDOR_RELATIONS = import_client30.gql`
5038
6084
  }
5039
6085
  ${RELATION_FIELDS_FRAGMENT}
5040
6086
  `;
5041
- var GET_RESOURCE_CONNECTIONS = import_client30.gql`
6087
+ var GET_RESOURCE_CONNECTIONS = import_client33.gql`
5042
6088
  query getResourceConnections(
5043
6089
  $resourceId: ID!
5044
6090
  $resourceType: ResourceTypeEnum!
@@ -5057,7 +6103,7 @@ var GET_RESOURCE_CONNECTIONS = import_client30.gql`
5057
6103
  `;
5058
6104
 
5059
6105
  // src/graphql/mutations/relation.ts
5060
- var CREATE_RELATION_MUTATION = import_client31.gql`
6106
+ var CREATE_RELATION_MUTATION = import_client34.gql`
5061
6107
  mutation createRelation($input: RelationInputType!) {
5062
6108
  createRelation(input: $input) {
5063
6109
  ...RelationFields
@@ -5065,7 +6111,7 @@ var CREATE_RELATION_MUTATION = import_client31.gql`
5065
6111
  }
5066
6112
  ${RELATION_FIELDS_FRAGMENT}
5067
6113
  `;
5068
- var UPDATE_RELATION_MUTATION = import_client31.gql`
6114
+ var UPDATE_RELATION_MUTATION = import_client34.gql`
5069
6115
  mutation updateRelation($_id: ID!, $input: RelationInputType!) {
5070
6116
  updateRelation(_id: $_id, input: $input) {
5071
6117
  ...RelationFields
@@ -5073,7 +6119,7 @@ var UPDATE_RELATION_MUTATION = import_client31.gql`
5073
6119
  }
5074
6120
  ${RELATION_FIELDS_FRAGMENT}
5075
6121
  `;
5076
- var DELETE_RELATION_MUTATION = import_client31.gql`
6122
+ var DELETE_RELATION_MUTATION = import_client34.gql`
5077
6123
  mutation deleteRelation($_id: ID!) {
5078
6124
  deleteRelation(_id: $_id) {
5079
6125
  ...RelationFields
@@ -5084,7 +6130,7 @@ var DELETE_RELATION_MUTATION = import_client31.gql`
5084
6130
 
5085
6131
  // src/graphql/hooks/relation/hooksMutation.ts
5086
6132
  var useCreateRelation = () => {
5087
- const [createRelation, { loading, error }] = (0, import_client32.useMutation)(CREATE_RELATION_MUTATION, {
6133
+ const [createRelation, { loading, error }] = (0, import_client35.useMutation)(CREATE_RELATION_MUTATION, {
5088
6134
  awaitRefetchQueries: true,
5089
6135
  refetchQueries: (mutationResult) => {
5090
6136
  const createRelation2 = mutationResult?.data?.createRelation;
@@ -5130,7 +6176,7 @@ var useCreateRelation = () => {
5130
6176
  return { createRelation, error, loading };
5131
6177
  };
5132
6178
  var useUpdateRelation = () => {
5133
- const [updateRelation, { loading, error }] = (0, import_client32.useMutation)(UPDATE_RELATION_MUTATION, {
6179
+ const [updateRelation, { loading, error }] = (0, import_client35.useMutation)(UPDATE_RELATION_MUTATION, {
5134
6180
  awaitRefetchQueries: true,
5135
6181
  refetchQueries: (mutationResult) => {
5136
6182
  const updateRelation2 = mutationResult?.data?.updateRelation;
@@ -5173,7 +6219,7 @@ var useUpdateRelation = () => {
5173
6219
  return { error, loading, updateRelation };
5174
6220
  };
5175
6221
  var useDeleteRelation = () => {
5176
- const [deleteRelation, { loading, error }] = (0, import_client32.useMutation)(DELETE_RELATION_MUTATION, {
6222
+ const [deleteRelation, { loading, error }] = (0, import_client35.useMutation)(DELETE_RELATION_MUTATION, {
5177
6223
  awaitRefetchQueries: true,
5178
6224
  refetchQueries: (mutationResult) => {
5179
6225
  const deleteRelation2 = mutationResult?.data?.deleteRelation;
@@ -5212,9 +6258,9 @@ var useDeleteRelation = () => {
5212
6258
  };
5213
6259
 
5214
6260
  // src/graphql/hooks/relation/hooksQuery.ts
5215
- var import_client33 = require("@apollo/client");
6261
+ var import_client36 = require("@apollo/client");
5216
6262
  var useGetRelation = (_id) => {
5217
- const { loading, error, data, refetch } = (0, import_client33.useQuery)(GET_RELATION, {
6263
+ const { loading, error, data, refetch } = (0, import_client36.useQuery)(GET_RELATION, {
5218
6264
  fetchPolicy: "network-only",
5219
6265
  skip: !_id,
5220
6266
  variables: _id ? { _id } : void 0
@@ -5223,7 +6269,7 @@ var useGetRelation = (_id) => {
5223
6269
  return { error, loading, refetch, relation };
5224
6270
  };
5225
6271
  var useGetRelationByEventAndVendor = (eventId, vendorId) => {
5226
- const { loading, error, data, refetch } = (0, import_client33.useQuery)(GET_RELATION_BY_EVENT_AND_VENDOR, {
6272
+ const { loading, error, data, refetch } = (0, import_client36.useQuery)(GET_RELATION_BY_EVENT_AND_VENDOR, {
5227
6273
  fetchPolicy: "network-only",
5228
6274
  skip: !eventId || eventId === "" || !vendorId || vendorId === "",
5229
6275
  variables: { eventId, vendorId }
@@ -5232,7 +6278,7 @@ var useGetRelationByEventAndVendor = (eventId, vendorId) => {
5232
6278
  return { error, loading, refetch, relationByEventAndVendor };
5233
6279
  };
5234
6280
  var useGetEventRelations = (eventId) => {
5235
- const { loading, error, data, refetch } = (0, import_client33.useQuery)(GET_EVENT_RELATIONS, {
6281
+ const { loading, error, data, refetch } = (0, import_client36.useQuery)(GET_EVENT_RELATIONS, {
5236
6282
  fetchPolicy: "network-only",
5237
6283
  skip: !eventId || eventId === "",
5238
6284
  variables: { eventId }
@@ -5241,7 +6287,7 @@ var useGetEventRelations = (eventId) => {
5241
6287
  return { error, eventRelations, loading, refetch };
5242
6288
  };
5243
6289
  var useGetVendorRelations = (vendorId) => {
5244
- const { loading, error, data, refetch } = (0, import_client33.useQuery)(GET_VENDOR_RELATIONS, {
6290
+ const { loading, error, data, refetch } = (0, import_client36.useQuery)(GET_VENDOR_RELATIONS, {
5245
6291
  fetchPolicy: "network-only",
5246
6292
  skip: !vendorId || vendorId === "",
5247
6293
  variables: { vendorId }
@@ -5250,7 +6296,7 @@ var useGetVendorRelations = (vendorId) => {
5250
6296
  return { error, loading, refetch, vendorRelations };
5251
6297
  };
5252
6298
  var useGetResourceConnections = (resourceId, resourceType) => {
5253
- const { loading, error, data, refetch } = (0, import_client33.useQuery)(GET_RESOURCE_CONNECTIONS, {
6299
+ const { loading, error, data, refetch } = (0, import_client36.useQuery)(GET_RESOURCE_CONNECTIONS, {
5254
6300
  fetchPolicy: "network-only",
5255
6301
  skip: !resourceId || resourceId === "" || !resourceType,
5256
6302
  variables: { resourceId, resourceType }
@@ -5260,11 +6306,11 @@ var useGetResourceConnections = (resourceId, resourceType) => {
5260
6306
  };
5261
6307
 
5262
6308
  // src/graphql/hooks/vendor/hooksMutation.ts
5263
- var import_client35 = require("@apollo/client");
6309
+ var import_client38 = require("@apollo/client");
5264
6310
 
5265
6311
  // src/graphql/mutations/vendor.ts
5266
- var import_client34 = require("@apollo/client");
5267
- var CREATE_VENDOR_MUTATION = import_client34.gql`
6312
+ var import_client37 = require("@apollo/client");
6313
+ var CREATE_VENDOR_MUTATION = import_client37.gql`
5268
6314
  mutation createVendor($input: VendorInputType!) {
5269
6315
  createVendor(input: $input) {
5270
6316
  ...VendorFields
@@ -5272,7 +6318,7 @@ var CREATE_VENDOR_MUTATION = import_client34.gql`
5272
6318
  }
5273
6319
  ${VENDOR}
5274
6320
  `;
5275
- var UPDATE_VENDOR_MUTATION = import_client34.gql`
6321
+ var UPDATE_VENDOR_MUTATION = import_client37.gql`
5276
6322
  mutation updateVendor($_id: ID!, $input: VendorInputType!) {
5277
6323
  updateVendor(_id: $_id, input: $input) {
5278
6324
  ...VendorFields
@@ -5280,12 +6326,12 @@ var UPDATE_VENDOR_MUTATION = import_client34.gql`
5280
6326
  }
5281
6327
  ${VENDOR}
5282
6328
  `;
5283
- var DELETE_VENDOR_MUTATION = import_client34.gql`
6329
+ var DELETE_VENDOR_MUTATION = import_client37.gql`
5284
6330
  mutation deleteVendor($_id: ID!) {
5285
6331
  deleteVendor(_id: $_id)
5286
6332
  }
5287
6333
  `;
5288
- var CREATE_VENDOR_INFO_MUTATION = import_client34.gql`
6334
+ var CREATE_VENDOR_INFO_MUTATION = import_client37.gql`
5289
6335
  mutation createVendorInfo($input: VendorInfoInputType!) {
5290
6336
  createVendorInfo(input: $input) {
5291
6337
  ...VendorInfoFields
@@ -5293,7 +6339,7 @@ var CREATE_VENDOR_INFO_MUTATION = import_client34.gql`
5293
6339
  }
5294
6340
  ${VENDOR_INFO}
5295
6341
  `;
5296
- var UPDATE_VENDOR_INFO_MUTATION = import_client34.gql`
6342
+ var UPDATE_VENDOR_INFO_MUTATION = import_client37.gql`
5297
6343
  mutation updateVendorInfo($_id: ID!, $input: VendorInfoInputType!) {
5298
6344
  updateVendorInfo(_id: $_id, input: $input) {
5299
6345
  ...VendorInfoFields
@@ -5301,7 +6347,7 @@ var UPDATE_VENDOR_INFO_MUTATION = import_client34.gql`
5301
6347
  }
5302
6348
  ${VENDOR_INFO}
5303
6349
  `;
5304
- var CREATE_UNREGISTERED_VENDOR_MUTATION = import_client34.gql`
6350
+ var CREATE_UNREGISTERED_VENDOR_MUTATION = import_client37.gql`
5305
6351
  mutation createUnregisteredVendor($input: UnregisteredVendorInputType!) {
5306
6352
  createUnregisteredVendor(input: $input) {
5307
6353
  ...UnregisteredVendorFields
@@ -5309,7 +6355,7 @@ var CREATE_UNREGISTERED_VENDOR_MUTATION = import_client34.gql`
5309
6355
  }
5310
6356
  ${UNREGISTERED_VENDOR}
5311
6357
  `;
5312
- var UPDATE_UNREGISTERED_VENDOR_MUTATION = import_client34.gql`
6358
+ var UPDATE_UNREGISTERED_VENDOR_MUTATION = import_client37.gql`
5313
6359
  mutation updateUnregisteredVendor(
5314
6360
  $_id: ID!
5315
6361
  $input: UnregisteredVendorInputType!
@@ -5320,12 +6366,12 @@ var UPDATE_UNREGISTERED_VENDOR_MUTATION = import_client34.gql`
5320
6366
  }
5321
6367
  ${UNREGISTERED_VENDOR}
5322
6368
  `;
5323
- var DELETE_UNREGISTERED_VENDOR_MUTATION = import_client34.gql`
6369
+ var DELETE_UNREGISTERED_VENDOR_MUTATION = import_client37.gql`
5324
6370
  mutation deleteUnregisteredVendor($_id: ID!) {
5325
6371
  deleteUnregisteredVendor(_id: $_id)
5326
6372
  }
5327
6373
  `;
5328
- var UNLINK_UNREGISTERED_VENDOR_BY_INVITER_ID_MUTATION = import_client34.gql`
6374
+ var UNLINK_UNREGISTERED_VENDOR_BY_INVITER_ID_MUTATION = import_client37.gql`
5329
6375
  mutation unlinkUnregisteredVendorByInviterId($_id: ID!, $inviterId: ID!) {
5330
6376
  unlinkUnregisteredVendorByInviterId(_id: $_id, inviterId: $inviterId)
5331
6377
  }
@@ -5333,7 +6379,7 @@ var UNLINK_UNREGISTERED_VENDOR_BY_INVITER_ID_MUTATION = import_client34.gql`
5333
6379
 
5334
6380
  // src/graphql/hooks/vendor/hooksMutation.ts
5335
6381
  var useCreateVendor = () => {
5336
- const [createVendor, { loading, error }] = (0, import_client35.useMutation)(
6382
+ const [createVendor, { loading, error }] = (0, import_client38.useMutation)(
5337
6383
  CREATE_VENDOR_MUTATION,
5338
6384
  {
5339
6385
  awaitRefetchQueries: true,
@@ -5343,7 +6389,7 @@ var useCreateVendor = () => {
5343
6389
  return { createVendor, error, loading };
5344
6390
  };
5345
6391
  var useUpdateVendor = () => {
5346
- const [updateVendor, { loading, error }] = (0, import_client35.useMutation)(
6392
+ const [updateVendor, { loading, error }] = (0, import_client38.useMutation)(
5347
6393
  UPDATE_VENDOR_MUTATION,
5348
6394
  {
5349
6395
  awaitRefetchQueries: true,
@@ -5353,7 +6399,7 @@ var useUpdateVendor = () => {
5353
6399
  return { error, loading, updateVendor };
5354
6400
  };
5355
6401
  var useDeleteVendor = () => {
5356
- const [deleteVendor, { loading, error }] = (0, import_client35.useMutation)(
6402
+ const [deleteVendor, { loading, error }] = (0, import_client38.useMutation)(
5357
6403
  DELETE_VENDOR_MUTATION,
5358
6404
  {
5359
6405
  awaitRefetchQueries: true,
@@ -5363,7 +6409,7 @@ var useDeleteVendor = () => {
5363
6409
  return { deleteVendor, error, loading };
5364
6410
  };
5365
6411
  var useCreateVendorInfo = () => {
5366
- const [createVendorInfo, { loading, error }] = (0, import_client35.useMutation)(CREATE_VENDOR_INFO_MUTATION, {
6412
+ const [createVendorInfo, { loading, error }] = (0, import_client38.useMutation)(CREATE_VENDOR_INFO_MUTATION, {
5367
6413
  awaitRefetchQueries: true,
5368
6414
  refetchQueries: (mutationResult) => {
5369
6415
  const vendorId = mutationResult?.data?.createVendorInfo?.vendorId;
@@ -5387,7 +6433,7 @@ var useCreateVendorInfo = () => {
5387
6433
  return { createVendorInfo, error, loading };
5388
6434
  };
5389
6435
  var useUpdateVendorInfo = () => {
5390
- const [updateVendorInfo, { loading, error }] = (0, import_client35.useMutation)(UPDATE_VENDOR_INFO_MUTATION, {
6436
+ const [updateVendorInfo, { loading, error }] = (0, import_client38.useMutation)(UPDATE_VENDOR_INFO_MUTATION, {
5391
6437
  awaitRefetchQueries: true,
5392
6438
  refetchQueries: (mutationResult) => {
5393
6439
  const vendorId = mutationResult?.data?.updateVendorInfo?.vendorId;
@@ -5404,34 +6450,34 @@ var useUpdateVendorInfo = () => {
5404
6450
  return { error, loading, updateVendorInfo };
5405
6451
  };
5406
6452
  var useCreateUnregisteredVendor = () => {
5407
- const [createUnregisteredVendor, { loading, error }] = (0, import_client35.useMutation)(
6453
+ const [createUnregisteredVendor, { loading, error }] = (0, import_client38.useMutation)(
5408
6454
  CREATE_UNREGISTERED_VENDOR_MUTATION
5409
6455
  );
5410
6456
  return { createUnregisteredVendor, error, loading };
5411
6457
  };
5412
6458
  var useUpdateUnregisteredVendor = () => {
5413
- const [updateUnregisteredVendor, { loading, error }] = (0, import_client35.useMutation)(
6459
+ const [updateUnregisteredVendor, { loading, error }] = (0, import_client38.useMutation)(
5414
6460
  UPDATE_UNREGISTERED_VENDOR_MUTATION
5415
6461
  );
5416
6462
  return { error, loading, updateUnregisteredVendor };
5417
6463
  };
5418
6464
  var useDeleteUnregisteredVendor = () => {
5419
- const [deleteUnregisteredVendor, { loading, error }] = (0, import_client35.useMutation)(
6465
+ const [deleteUnregisteredVendor, { loading, error }] = (0, import_client38.useMutation)(
5420
6466
  DELETE_UNREGISTERED_VENDOR_MUTATION
5421
6467
  );
5422
6468
  return { deleteUnregisteredVendor, error, loading };
5423
6469
  };
5424
6470
  var useUnlinkUnregisteredVendorByInviterId = () => {
5425
- const [unlinkUnregisteredVendorByInviterId, { loading, error }] = (0, import_client35.useMutation)(
6471
+ const [unlinkUnregisteredVendorByInviterId, { loading, error }] = (0, import_client38.useMutation)(
5426
6472
  UNLINK_UNREGISTERED_VENDOR_BY_INVITER_ID_MUTATION
5427
6473
  );
5428
6474
  return { error, loading, unlinkUnregisteredVendorByInviterId };
5429
6475
  };
5430
6476
 
5431
6477
  // src/graphql/hooks/vendor/hooksQuery.ts
5432
- var import_client36 = require("@apollo/client");
6478
+ var import_client39 = require("@apollo/client");
5433
6479
  var useGetVendors = () => {
5434
- const { loading, error, data, refetch } = (0, import_client36.useQuery)(
6480
+ const { loading, error, data, refetch } = (0, import_client39.useQuery)(
5435
6481
  GET_VENDORS,
5436
6482
  {
5437
6483
  fetchPolicy: "network-only"
@@ -5446,7 +6492,7 @@ var useGetVendors = () => {
5446
6492
  };
5447
6493
  };
5448
6494
  var useGetVendor = (_id) => {
5449
- const { loading, error, data, refetch } = (0, import_client36.useQuery)(
6495
+ const { loading, error, data, refetch } = (0, import_client39.useQuery)(
5450
6496
  GET_VENDOR,
5451
6497
  {
5452
6498
  fetchPolicy: "network-only",
@@ -5462,7 +6508,7 @@ var useGetVendorsByRegion = (region, options) => {
5462
6508
  options,
5463
6509
  region
5464
6510
  };
5465
- const { loading, error, data, refetch, fetchMore } = (0, import_client36.useQuery)(GET_VENDORS_BY_REGION, {
6511
+ const { loading, error, data, refetch, fetchMore } = (0, import_client39.useQuery)(GET_VENDORS_BY_REGION, {
5466
6512
  fetchPolicy: "network-only",
5467
6513
  skip: !region || region === "",
5468
6514
  variables
@@ -5477,7 +6523,7 @@ var useGetVendorsByRegion = (region, options) => {
5477
6523
  };
5478
6524
  };
5479
6525
  var useSearchVendors = (search, region) => {
5480
- const { loading, error, data, refetch } = (0, import_client36.useQuery)(SEARCH_VENDORS, {
6526
+ const { loading, error, data, refetch } = (0, import_client39.useQuery)(SEARCH_VENDORS, {
5481
6527
  fetchPolicy: "network-only",
5482
6528
  skip: search.length < 3 || !region || region === "",
5483
6529
  variables: { region, search }
@@ -5486,7 +6532,7 @@ var useSearchVendors = (search, region) => {
5486
6532
  return { error, loading, refetch, vendorSearch };
5487
6533
  };
5488
6534
  var useGetVendorInfo = (vendorId) => {
5489
- const { loading, error, data, refetch } = (0, import_client36.useQuery)(GET_VENDOR_INFO, {
6535
+ const { loading, error, data, refetch } = (0, import_client39.useQuery)(GET_VENDOR_INFO, {
5490
6536
  fetchPolicy: "network-only",
5491
6537
  skip: !vendorId || vendorId === "",
5492
6538
  variables: { vendorId }
@@ -5500,7 +6546,7 @@ var useGetVendorInfo = (vendorId) => {
5500
6546
  };
5501
6547
  };
5502
6548
  var useGetUnregisteredVendors = () => {
5503
- const { loading, error, data, refetch } = (0, import_client36.useQuery)(GET_UNREGISTERED_VENDORS, {
6549
+ const { loading, error, data, refetch } = (0, import_client39.useQuery)(GET_UNREGISTERED_VENDORS, {
5504
6550
  fetchPolicy: "network-only"
5505
6551
  });
5506
6552
  const unregisteredVendors = data?.unregisteredVendors || [];
@@ -5512,7 +6558,7 @@ var useGetUnregisteredVendors = () => {
5512
6558
  };
5513
6559
  };
5514
6560
  var useGetUnregisteredVendorsByInviterId = (inviterId) => {
5515
- const { loading, error, data, refetch } = (0, import_client36.useQuery)(GET_UNREGISTERED_VENDORS_BY_INVITER_ID, {
6561
+ const { loading, error, data, refetch } = (0, import_client39.useQuery)(GET_UNREGISTERED_VENDORS_BY_INVITER_ID, {
5516
6562
  fetchPolicy: "network-only",
5517
6563
  skip: !inviterId || inviterId === "",
5518
6564
  variables: { inviterId }
@@ -5521,7 +6567,7 @@ var useGetUnregisteredVendorsByInviterId = (inviterId) => {
5521
6567
  return { error, loading, refetch, unregisteredVendorsByInviterId };
5522
6568
  };
5523
6569
  var useGetUnregisteredVendor = (_id) => {
5524
- const { loading, error, data, refetch } = (0, import_client36.useQuery)(GET_UNREGISTERED_VENDOR, {
6570
+ const { loading, error, data, refetch } = (0, import_client39.useQuery)(GET_UNREGISTERED_VENDOR, {
5525
6571
  fetchPolicy: "network-only",
5526
6572
  skip: !_id || _id === "",
5527
6573
  variables: { _id }
@@ -5531,11 +6577,11 @@ var useGetUnregisteredVendor = (_id) => {
5531
6577
  };
5532
6578
 
5533
6579
  // src/graphql/hooks/user/hooksMutation.ts
5534
- var import_client38 = require("@apollo/client");
6580
+ var import_client41 = require("@apollo/client");
5535
6581
 
5536
6582
  // src/graphql/mutations/user.ts
5537
- var import_client37 = require("@apollo/client");
5538
- var CREATE_USER_MUTATION = import_client37.gql`
6583
+ var import_client40 = require("@apollo/client");
6584
+ var CREATE_USER_MUTATION = import_client40.gql`
5539
6585
  mutation createUser($input: UserInputType!) {
5540
6586
  createUser(input: $input) {
5541
6587
  ...UserFields
@@ -5543,7 +6589,7 @@ var CREATE_USER_MUTATION = import_client37.gql`
5543
6589
  }
5544
6590
  ${USER_FIELDS_FRAGMENT}
5545
6591
  `;
5546
- var UPDATE_USER_MUTATION = import_client37.gql`
6592
+ var UPDATE_USER_MUTATION = import_client40.gql`
5547
6593
  mutation updateUser($_id: ID!, $input: UserInputType!) {
5548
6594
  updateUser(_id: $_id, input: $input) {
5549
6595
  ...UserFields
@@ -5551,12 +6597,12 @@ var UPDATE_USER_MUTATION = import_client37.gql`
5551
6597
  }
5552
6598
  ${USER_FIELDS_FRAGMENT}
5553
6599
  `;
5554
- var DELETE_USER_MUTATION = import_client37.gql`
6600
+ var DELETE_USER_MUTATION = import_client40.gql`
5555
6601
  mutation deleteUser($email: String!) {
5556
6602
  deleteUser(email: $email)
5557
6603
  }
5558
6604
  `;
5559
- var REDEEM_REWARD_MUTATION = import_client37.gql`
6605
+ var REDEEM_REWARD_MUTATION = import_client40.gql`
5560
6606
  mutation redeemReward($input: RedeemRewardInputType!) {
5561
6607
  redeemReward(input: $input) {
5562
6608
  message
@@ -5564,7 +6610,7 @@ var REDEEM_REWARD_MUTATION = import_client37.gql`
5564
6610
  }
5565
6611
  }
5566
6612
  `;
5567
- var ADD_USER_FAVOURITE_RESOURCE_MUTATION = import_client37.gql`
6613
+ var ADD_USER_FAVOURITE_RESOURCE_MUTATION = import_client40.gql`
5568
6614
  mutation addUserFavouriteResource(
5569
6615
  $resourceId: ID!
5570
6616
  $resourceType: ResourceTypeEnum!
@@ -5578,7 +6624,7 @@ var ADD_USER_FAVOURITE_RESOURCE_MUTATION = import_client37.gql`
5578
6624
  }
5579
6625
  ${USER_FIELDS_FRAGMENT}
5580
6626
  `;
5581
- var REMOVE_USER_FAVOURITE_RESOURCE_MUTATION = import_client37.gql`
6627
+ var REMOVE_USER_FAVOURITE_RESOURCE_MUTATION = import_client40.gql`
5582
6628
  mutation removeUserFavouriteResource(
5583
6629
  $resourceId: ID!
5584
6630
  $resourceType: ResourceTypeEnum!
@@ -5592,7 +6638,7 @@ var REMOVE_USER_FAVOURITE_RESOURCE_MUTATION = import_client37.gql`
5592
6638
  }
5593
6639
  ${USER_FIELDS_FRAGMENT}
5594
6640
  `;
5595
- var ADD_USER_INTEREST_RESOURCE_MUTATION = import_client37.gql`
6641
+ var ADD_USER_INTEREST_RESOURCE_MUTATION = import_client40.gql`
5596
6642
  mutation addUserInterestResource($input: UserActivityInputType!) {
5597
6643
  addUserInterestResource(input: $input) {
5598
6644
  ...UserFields
@@ -5600,7 +6646,7 @@ var ADD_USER_INTEREST_RESOURCE_MUTATION = import_client37.gql`
5600
6646
  }
5601
6647
  ${USER_FIELDS_FRAGMENT}
5602
6648
  `;
5603
- var REMOVE_USER_INTEREST_RESOURCE_MUTATION = import_client37.gql`
6649
+ var REMOVE_USER_INTEREST_RESOURCE_MUTATION = import_client40.gql`
5604
6650
  mutation removeUserInterestResource($input: UserActivityInputType!) {
5605
6651
  removeUserInterestResource(input: $input) {
5606
6652
  ...UserFields
@@ -5608,7 +6654,7 @@ var REMOVE_USER_INTEREST_RESOURCE_MUTATION = import_client37.gql`
5608
6654
  }
5609
6655
  ${USER_FIELDS_FRAGMENT}
5610
6656
  `;
5611
- var ADD_USER_GOING_RESOURCE_MUTATION = import_client37.gql`
6657
+ var ADD_USER_GOING_RESOURCE_MUTATION = import_client40.gql`
5612
6658
  mutation addUserGoingResource($input: UserActivityInputType!) {
5613
6659
  addUserGoingResource(input: $input) {
5614
6660
  ...UserFields
@@ -5616,7 +6662,7 @@ var ADD_USER_GOING_RESOURCE_MUTATION = import_client37.gql`
5616
6662
  }
5617
6663
  ${USER_FIELDS_FRAGMENT}
5618
6664
  `;
5619
- var REMOVE_USER_GOING_RESOURCE_MUTATION = import_client37.gql`
6665
+ var REMOVE_USER_GOING_RESOURCE_MUTATION = import_client40.gql`
5620
6666
  mutation removeUserGoingResource($input: UserActivityInputType!) {
5621
6667
  removeUserGoingResource(input: $input) {
5622
6668
  ...UserFields
@@ -5624,7 +6670,7 @@ var REMOVE_USER_GOING_RESOURCE_MUTATION = import_client37.gql`
5624
6670
  }
5625
6671
  ${USER_FIELDS_FRAGMENT}
5626
6672
  `;
5627
- var ADD_USER_PRESENT_RESOURCE_MUTATION = import_client37.gql`
6673
+ var ADD_USER_PRESENT_RESOURCE_MUTATION = import_client40.gql`
5628
6674
  mutation addUserPresentResource($input: UserActivityInputType!) {
5629
6675
  addUserPresentResource(input: $input) {
5630
6676
  ...UserFields
@@ -5632,7 +6678,7 @@ var ADD_USER_PRESENT_RESOURCE_MUTATION = import_client37.gql`
5632
6678
  }
5633
6679
  ${USER_FIELDS_FRAGMENT}
5634
6680
  `;
5635
- var REMOVE_USER_PRESENT_RESOURCE_MUTATION = import_client37.gql`
6681
+ var REMOVE_USER_PRESENT_RESOURCE_MUTATION = import_client40.gql`
5636
6682
  mutation removeUserPresentResource($input: UserActivityInputType!) {
5637
6683
  removeUserPresentResource(input: $input) {
5638
6684
  ...UserFields
@@ -5640,7 +6686,7 @@ var REMOVE_USER_PRESENT_RESOURCE_MUTATION = import_client37.gql`
5640
6686
  }
5641
6687
  ${USER_FIELDS_FRAGMENT}
5642
6688
  `;
5643
- var SELECT_STANDARD_PACKAGE_MUTATION = import_client37.gql`
6689
+ var SELECT_STANDARD_PACKAGE_MUTATION = import_client40.gql`
5644
6690
  mutation selectStandardPackage($selectedLicence: LicencesEnumType!) {
5645
6691
  selectStandardPackage(selectedLicence: $selectedLicence) {
5646
6692
  licences {
@@ -5655,11 +6701,11 @@ var SELECT_STANDARD_PACKAGE_MUTATION = import_client37.gql`
5655
6701
 
5656
6702
  // src/graphql/hooks/user/hooksMutation.ts
5657
6703
  var useCreateUser = () => {
5658
- const [createUser, { loading, error }] = (0, import_client38.useMutation)(CREATE_USER_MUTATION);
6704
+ const [createUser, { loading, error }] = (0, import_client41.useMutation)(CREATE_USER_MUTATION);
5659
6705
  return { createUser, error, loading };
5660
6706
  };
5661
6707
  var useUpdateUser = () => {
5662
- const [updateUser, { loading, error }] = (0, import_client38.useMutation)(UPDATE_USER_MUTATION, {
6708
+ const [updateUser, { loading, error }] = (0, import_client41.useMutation)(UPDATE_USER_MUTATION, {
5663
6709
  awaitRefetchQueries: true,
5664
6710
  refetchQueries: (mutationResult) => {
5665
6711
  const userId = mutationResult?.data?.updateUser?._id;
@@ -5670,11 +6716,11 @@ var useUpdateUser = () => {
5670
6716
  return { error, loading, updateUser };
5671
6717
  };
5672
6718
  var useDeleteUser = () => {
5673
- const [deleteUser, { loading, error }] = (0, import_client38.useMutation)(DELETE_USER_MUTATION);
6719
+ const [deleteUser, { loading, error }] = (0, import_client41.useMutation)(DELETE_USER_MUTATION);
5674
6720
  return { deleteUser, error, loading };
5675
6721
  };
5676
6722
  var useRedeemReward = () => {
5677
- const [redeemReward, { loading, error }] = (0, import_client38.useMutation)(REDEEM_REWARD_MUTATION, {
6723
+ const [redeemReward, { loading, error }] = (0, import_client41.useMutation)(REDEEM_REWARD_MUTATION, {
5678
6724
  awaitRefetchQueries: true,
5679
6725
  refetchQueries: (mutationResult) => {
5680
6726
  const userId = mutationResult?.data?.redeemReward?.userId;
@@ -5691,7 +6737,7 @@ var useRedeemReward = () => {
5691
6737
  return { error, loading, redeemReward };
5692
6738
  };
5693
6739
  var useAddUserFavouriteResource = () => {
5694
- const [addUserFavouriteResource, { loading, error }] = (0, import_client38.useMutation)(
6740
+ const [addUserFavouriteResource, { loading, error }] = (0, import_client41.useMutation)(
5695
6741
  ADD_USER_FAVOURITE_RESOURCE_MUTATION,
5696
6742
  {
5697
6743
  awaitRefetchQueries: true,
@@ -5701,7 +6747,7 @@ var useAddUserFavouriteResource = () => {
5701
6747
  return { addUserFavouriteResource, error, loading };
5702
6748
  };
5703
6749
  var useRemoveUserFavouriteResource = () => {
5704
- const [removeUserFavouriteResource, { loading, error }] = (0, import_client38.useMutation)(
6750
+ const [removeUserFavouriteResource, { loading, error }] = (0, import_client41.useMutation)(
5705
6751
  REMOVE_USER_FAVOURITE_RESOURCE_MUTATION,
5706
6752
  {
5707
6753
  awaitRefetchQueries: true,
@@ -5711,7 +6757,7 @@ var useRemoveUserFavouriteResource = () => {
5711
6757
  return { error, loading, removeUserFavouriteResource };
5712
6758
  };
5713
6759
  var useAddUserInterestResource = () => {
5714
- const [addUserInterestResource, { loading, error }] = (0, import_client38.useMutation)(
6760
+ const [addUserInterestResource, { loading, error }] = (0, import_client41.useMutation)(
5715
6761
  ADD_USER_INTEREST_RESOURCE_MUTATION,
5716
6762
  {
5717
6763
  awaitRefetchQueries: true,
@@ -5721,7 +6767,7 @@ var useAddUserInterestResource = () => {
5721
6767
  return { addUserInterestResource, error, loading };
5722
6768
  };
5723
6769
  var useRemoveUserInterestResource = () => {
5724
- const [removeUserInterestResource, { loading, error }] = (0, import_client38.useMutation)(
6770
+ const [removeUserInterestResource, { loading, error }] = (0, import_client41.useMutation)(
5725
6771
  REMOVE_USER_INTEREST_RESOURCE_MUTATION,
5726
6772
  {
5727
6773
  awaitRefetchQueries: true,
@@ -5731,7 +6777,7 @@ var useRemoveUserInterestResource = () => {
5731
6777
  return { error, loading, removeUserInterestResource };
5732
6778
  };
5733
6779
  var useAddUserGoingResource = () => {
5734
- const [addUserGoingResource, { loading, error }] = (0, import_client38.useMutation)(
6780
+ const [addUserGoingResource, { loading, error }] = (0, import_client41.useMutation)(
5735
6781
  ADD_USER_GOING_RESOURCE_MUTATION,
5736
6782
  {
5737
6783
  awaitRefetchQueries: true,
@@ -5741,7 +6787,7 @@ var useAddUserGoingResource = () => {
5741
6787
  return { addUserGoingResource, error, loading };
5742
6788
  };
5743
6789
  var useRemoveUserGoingResource = () => {
5744
- const [removeUserGoingResource, { loading, error }] = (0, import_client38.useMutation)(
6790
+ const [removeUserGoingResource, { loading, error }] = (0, import_client41.useMutation)(
5745
6791
  REMOVE_USER_GOING_RESOURCE_MUTATION,
5746
6792
  {
5747
6793
  awaitRefetchQueries: true,
@@ -5751,7 +6797,7 @@ var useRemoveUserGoingResource = () => {
5751
6797
  return { error, loading, removeUserGoingResource };
5752
6798
  };
5753
6799
  var useAddUserPresentResource = () => {
5754
- const [addUserPresentResource, { loading, error }] = (0, import_client38.useMutation)(
6800
+ const [addUserPresentResource, { loading, error }] = (0, import_client41.useMutation)(
5755
6801
  ADD_USER_PRESENT_RESOURCE_MUTATION,
5756
6802
  {
5757
6803
  awaitRefetchQueries: true,
@@ -5761,7 +6807,7 @@ var useAddUserPresentResource = () => {
5761
6807
  return { addUserPresentResource, error, loading };
5762
6808
  };
5763
6809
  var useRemoveUserPresentResource = () => {
5764
- const [removeUserPresentResource, { loading, error }] = (0, import_client38.useMutation)(
6810
+ const [removeUserPresentResource, { loading, error }] = (0, import_client41.useMutation)(
5765
6811
  REMOVE_USER_PRESENT_RESOURCE_MUTATION,
5766
6812
  {
5767
6813
  awaitRefetchQueries: true,
@@ -5771,7 +6817,7 @@ var useRemoveUserPresentResource = () => {
5771
6817
  return { error, loading, removeUserPresentResource };
5772
6818
  };
5773
6819
  var useSelectStandardPackage = () => {
5774
- const [selectStandardPackage, { loading, error }] = (0, import_client38.useMutation)(SELECT_STANDARD_PACKAGE_MUTATION, {
6820
+ const [selectStandardPackage, { loading, error }] = (0, import_client41.useMutation)(SELECT_STANDARD_PACKAGE_MUTATION, {
5775
6821
  awaitRefetchQueries: true,
5776
6822
  refetchQueries: (mutationResult) => {
5777
6823
  const userId = mutationResult?.data?.selectStandardPackage?.userId;
@@ -5787,9 +6833,9 @@ var useSelectStandardPackage = () => {
5787
6833
  };
5788
6834
 
5789
6835
  // src/graphql/hooks/user/hooksQuery.ts
5790
- var import_client39 = require("@apollo/client");
6836
+ var import_client42 = require("@apollo/client");
5791
6837
  var useGetUsers = () => {
5792
- const { loading, error, data, refetch } = (0, import_client39.useQuery)(
6838
+ const { loading, error, data, refetch } = (0, import_client42.useQuery)(
5793
6839
  GET_USERS,
5794
6840
  {
5795
6841
  fetchPolicy: "network-only"
@@ -5799,7 +6845,7 @@ var useGetUsers = () => {
5799
6845
  return { error, loading, refetch, users };
5800
6846
  };
5801
6847
  var useGetUser = (_id) => {
5802
- const { loading, error, data, refetch } = (0, import_client39.useQuery)(
6848
+ const { loading, error, data, refetch } = (0, import_client42.useQuery)(
5803
6849
  GET_USER,
5804
6850
  {
5805
6851
  fetchPolicy: "network-only",
@@ -5811,28 +6857,28 @@ var useGetUser = (_id) => {
5811
6857
  return { error, loading, refetch, user };
5812
6858
  };
5813
6859
  var useGetUserEvents = () => {
5814
- const { loading, error, data, refetch } = (0, import_client39.useQuery)(GET_USER_EVENTS, {
6860
+ const { loading, error, data, refetch } = (0, import_client42.useQuery)(GET_USER_EVENTS, {
5815
6861
  fetchPolicy: "network-only"
5816
6862
  });
5817
6863
  const userEvents = data?.userEvents || [];
5818
6864
  return { error, loading, refetch, userEvents };
5819
6865
  };
5820
6866
  var useGetUserVendors = () => {
5821
- const { loading, error, data, refetch } = (0, import_client39.useQuery)(GET_USER_VENDORS, {
6867
+ const { loading, error, data, refetch } = (0, import_client42.useQuery)(GET_USER_VENDORS, {
5822
6868
  fetchPolicy: "network-only"
5823
6869
  });
5824
6870
  const userVendors = data?.userVendors || [];
5825
6871
  return { error, loading, refetch, userVendors };
5826
6872
  };
5827
6873
  var useGetUserPartners = () => {
5828
- const { loading, error, data, refetch } = (0, import_client39.useQuery)(GET_USER_PARTNERS, {
6874
+ const { loading, error, data, refetch } = (0, import_client42.useQuery)(GET_USER_PARTNERS, {
5829
6875
  fetchPolicy: "network-only"
5830
6876
  });
5831
6877
  const userPartners = data?.userPartners || [];
5832
6878
  return { error, loading, refetch, userPartners };
5833
6879
  };
5834
6880
  var useGetUserActivities = () => {
5835
- const { loading, error, data, refetch } = (0, import_client39.useQuery)(GET_USER_ACTIVITIES, {
6881
+ const { loading, error, data, refetch } = (0, import_client42.useQuery)(GET_USER_ACTIVITIES, {
5836
6882
  fetchPolicy: "network-only"
5837
6883
  });
5838
6884
  const userActivities = {
@@ -5854,7 +6900,7 @@ var useGetUserActivities = () => {
5854
6900
  return { error, loading, refetch, userActivities };
5855
6901
  };
5856
6902
  var useGetUserResources = (userId) => {
5857
- const { loading, error, data, refetch } = (0, import_client39.useQuery)(GET_USER_RESOURCES, {
6903
+ const { loading, error, data, refetch } = (0, import_client42.useQuery)(GET_USER_RESOURCES, {
5858
6904
  fetchPolicy: "network-only",
5859
6905
  skip: !userId || userId === "",
5860
6906
  variables: { userId }
@@ -5864,14 +6910,14 @@ var useGetUserResources = (userId) => {
5864
6910
  };
5865
6911
 
5866
6912
  // src/graphql/hooks/ad/hooksMutation.ts
5867
- var import_client42 = require("@apollo/client");
6913
+ var import_client45 = require("@apollo/client");
5868
6914
 
5869
6915
  // src/graphql/mutations/ad.ts
5870
- var import_client41 = require("@apollo/client");
6916
+ var import_client44 = require("@apollo/client");
5871
6917
 
5872
6918
  // src/graphql/queries/ad.ts
5873
- var import_client40 = require("@apollo/client");
5874
- var AD_FIELDS_FRAGMENT = import_client40.gql`
6919
+ var import_client43 = require("@apollo/client");
6920
+ var AD_FIELDS_FRAGMENT = import_client43.gql`
5875
6921
  fragment AdFields on AdType {
5876
6922
  _id
5877
6923
  active
@@ -5897,7 +6943,7 @@ var AD_FIELDS_FRAGMENT = import_client40.gql`
5897
6943
  updatedAt
5898
6944
  }
5899
6945
  `;
5900
- var GET_ADS = import_client40.gql`
6946
+ var GET_ADS = import_client43.gql`
5901
6947
  query getAds {
5902
6948
  ads {
5903
6949
  ...AdFields
@@ -5905,7 +6951,7 @@ var GET_ADS = import_client40.gql`
5905
6951
  }
5906
6952
  ${AD_FIELDS_FRAGMENT}
5907
6953
  `;
5908
- var GET_AD = import_client40.gql`
6954
+ var GET_AD = import_client43.gql`
5909
6955
  query getAd($_id: ID!) {
5910
6956
  ad(_id: $_id) {
5911
6957
  ...AdFields
@@ -5913,7 +6959,7 @@ var GET_AD = import_client40.gql`
5913
6959
  }
5914
6960
  ${AD_FIELDS_FRAGMENT}
5915
6961
  `;
5916
- var GET_ADS_BY_REGION = import_client40.gql`
6962
+ var GET_ADS_BY_REGION = import_client43.gql`
5917
6963
  query getAdsByRegion($region: String!, $status: AdStatusTypeEnum) {
5918
6964
  adsByRegion(region: $region, status: $status) {
5919
6965
  ...AdFields
@@ -5923,7 +6969,7 @@ var GET_ADS_BY_REGION = import_client40.gql`
5923
6969
  `;
5924
6970
 
5925
6971
  // src/graphql/mutations/ad.ts
5926
- var CREATE_AD_MUTATION = import_client41.gql`
6972
+ var CREATE_AD_MUTATION = import_client44.gql`
5927
6973
  mutation createAd($input: AdInputType!) {
5928
6974
  createAd(input: $input) {
5929
6975
  ...AdFields
@@ -5931,7 +6977,7 @@ var CREATE_AD_MUTATION = import_client41.gql`
5931
6977
  }
5932
6978
  ${AD_FIELDS_FRAGMENT}
5933
6979
  `;
5934
- var UPDATE_AD_MUTATION = import_client41.gql`
6980
+ var UPDATE_AD_MUTATION = import_client44.gql`
5935
6981
  mutation updateAd($_id: ID!, $input: AdInputType!) {
5936
6982
  updateAd(_id: $_id, input: $input) {
5937
6983
  ...AdFields
@@ -5939,7 +6985,7 @@ var UPDATE_AD_MUTATION = import_client41.gql`
5939
6985
  }
5940
6986
  ${AD_FIELDS_FRAGMENT}
5941
6987
  `;
5942
- var DELETE_AD_MUTATION = import_client41.gql`
6988
+ var DELETE_AD_MUTATION = import_client44.gql`
5943
6989
  mutation deleteAd($_id: ID!) {
5944
6990
  deleteAd(_id: $_id)
5945
6991
  }
@@ -5947,7 +6993,7 @@ var DELETE_AD_MUTATION = import_client41.gql`
5947
6993
 
5948
6994
  // src/graphql/hooks/ad/hooksMutation.ts
5949
6995
  var useCreateAd = () => {
5950
- const [createAd, { loading, error }] = (0, import_client42.useMutation)(CREATE_AD_MUTATION, {
6996
+ const [createAd, { loading, error }] = (0, import_client45.useMutation)(CREATE_AD_MUTATION, {
5951
6997
  awaitRefetchQueries: true,
5952
6998
  refetchQueries: [{ query: GET_ADS }]
5953
6999
  });
@@ -5958,7 +7004,7 @@ var useCreateAd = () => {
5958
7004
  };
5959
7005
  };
5960
7006
  var useUpdateAd = () => {
5961
- const [updateAd, { loading, error }] = (0, import_client42.useMutation)(UPDATE_AD_MUTATION, {
7007
+ const [updateAd, { loading, error }] = (0, import_client45.useMutation)(UPDATE_AD_MUTATION, {
5962
7008
  awaitRefetchQueries: true,
5963
7009
  refetchQueries: [{ query: GET_ADS }]
5964
7010
  });
@@ -5969,7 +7015,7 @@ var useUpdateAd = () => {
5969
7015
  };
5970
7016
  };
5971
7017
  var useDeleteAd = () => {
5972
- const [deleteAd, { loading, error }] = (0, import_client42.useMutation)(DELETE_AD_MUTATION, {
7018
+ const [deleteAd, { loading, error }] = (0, import_client45.useMutation)(DELETE_AD_MUTATION, {
5973
7019
  awaitRefetchQueries: true,
5974
7020
  refetchQueries: [{ query: GET_ADS }]
5975
7021
  });
@@ -5981,9 +7027,9 @@ var useDeleteAd = () => {
5981
7027
  };
5982
7028
 
5983
7029
  // src/graphql/hooks/ad/hooksQuery.ts
5984
- var import_client43 = require("@apollo/client");
7030
+ var import_client46 = require("@apollo/client");
5985
7031
  var useGetAds = () => {
5986
- const { data, loading, error, refetch } = (0, import_client43.useQuery)(
7032
+ const { data, loading, error, refetch } = (0, import_client46.useQuery)(
5987
7033
  GET_ADS,
5988
7034
  {
5989
7035
  fetchPolicy: "no-cache"
@@ -5997,7 +7043,7 @@ var useGetAds = () => {
5997
7043
  };
5998
7044
  };
5999
7045
  var useGetAd = (_id) => {
6000
- const { data, loading, error, refetch } = (0, import_client43.useQuery)(GET_AD, {
7046
+ const { data, loading, error, refetch } = (0, import_client46.useQuery)(GET_AD, {
6001
7047
  fetchPolicy: "no-cache",
6002
7048
  skip: !_id || _id === "",
6003
7049
  variables: { _id }
@@ -6010,7 +7056,7 @@ var useGetAd = (_id) => {
6010
7056
  };
6011
7057
  };
6012
7058
  var useGetAdsByRegion = (region, status) => {
6013
- const { data, loading, error, refetch } = (0, import_client43.useQuery)(GET_ADS_BY_REGION, {
7059
+ const { data, loading, error, refetch } = (0, import_client46.useQuery)(GET_ADS_BY_REGION, {
6014
7060
  fetchPolicy: "no-cache",
6015
7061
  skip: !region || region === "",
6016
7062
  variables: { region, status }
@@ -6024,11 +7070,11 @@ var useGetAdsByRegion = (region, status) => {
6024
7070
  };
6025
7071
 
6026
7072
  // src/graphql/hooks/resourceActivities/hooksMutation.ts
6027
- var import_client45 = require("@apollo/client");
7073
+ var import_client48 = require("@apollo/client");
6028
7074
 
6029
7075
  // src/graphql/mutations/resourceActivities.ts
6030
- var import_client44 = require("@apollo/client");
6031
- var CREATE_RESOURCE_ACTIVITY_MUTATION = import_client44.gql`
7076
+ var import_client47 = require("@apollo/client");
7077
+ var CREATE_RESOURCE_ACTIVITY_MUTATION = import_client47.gql`
6032
7078
  mutation createResourceActivity($input: ResourceActivityInputType!) {
6033
7079
  createResourceActivity(input: $input)
6034
7080
  }
@@ -6036,18 +7082,18 @@ var CREATE_RESOURCE_ACTIVITY_MUTATION = import_client44.gql`
6036
7082
 
6037
7083
  // src/graphql/hooks/resourceActivities/hooksMutation.ts
6038
7084
  var useCreateResourceActivity = () => {
6039
- const [createResourceActivity, { loading, error }] = (0, import_client45.useMutation)(
7085
+ const [createResourceActivity, { loading, error }] = (0, import_client48.useMutation)(
6040
7086
  CREATE_RESOURCE_ACTIVITY_MUTATION
6041
7087
  );
6042
7088
  return { createResourceActivity, error, loading };
6043
7089
  };
6044
7090
 
6045
7091
  // src/graphql/hooks/resourceActivities/hooksQuery.ts
6046
- var import_client47 = require("@apollo/client");
7092
+ var import_client50 = require("@apollo/client");
6047
7093
 
6048
7094
  // src/graphql/queries/resourceActivities.ts
6049
- var import_client46 = require("@apollo/client");
6050
- var RESOURCE_ACTIVITY_FIELDS_FRAGMENT = import_client46.gql`
7095
+ var import_client49 = require("@apollo/client");
7096
+ var RESOURCE_ACTIVITY_FIELDS_FRAGMENT = import_client49.gql`
6051
7097
  fragment ResourceActivityFields on ResourceActivityType {
6052
7098
  resourceId
6053
7099
  resourceType
@@ -6066,7 +7112,7 @@ var RESOURCE_ACTIVITY_FIELDS_FRAGMENT = import_client46.gql`
6066
7112
  }
6067
7113
  ${LOCATION_GEO_FIELDS_FRAGMENT}
6068
7114
  `;
6069
- var GET_RESOURCE_ACTIVITY = import_client46.gql`
7115
+ var GET_RESOURCE_ACTIVITY = import_client49.gql`
6070
7116
  query getResourceActivity(
6071
7117
  $resourceType: ResourceTypeEnum!
6072
7118
  $resourceId: ID!
@@ -6080,7 +7126,7 @@ var GET_RESOURCE_ACTIVITY = import_client46.gql`
6080
7126
 
6081
7127
  // src/graphql/hooks/resourceActivities/hooksQuery.ts
6082
7128
  var useGetResourceActivity = (resourceId, resourceType) => {
6083
- const { data, loading, error, refetch } = (0, import_client47.useQuery)(GET_RESOURCE_ACTIVITY, {
7129
+ const { data, loading, error, refetch } = (0, import_client50.useQuery)(GET_RESOURCE_ACTIVITY, {
6084
7130
  fetchPolicy: "network-only",
6085
7131
  variables: { resourceId, resourceType }
6086
7132
  });
@@ -6093,11 +7139,11 @@ var useGetResourceActivity = (resourceId, resourceType) => {
6093
7139
  };
6094
7140
 
6095
7141
  // src/graphql/hooks/stripe/hooksMutation.ts
6096
- var import_client49 = require("@apollo/client");
7142
+ var import_client52 = require("@apollo/client");
6097
7143
 
6098
7144
  // src/graphql/mutations/stripe.ts
6099
- var import_client48 = require("@apollo/client");
6100
- var CREATE_CHECKOUT_SESSION_MUTATION = import_client48.gql`
7145
+ var import_client51 = require("@apollo/client");
7146
+ var CREATE_CHECKOUT_SESSION_MUTATION = import_client51.gql`
6101
7147
  mutation createCheckoutSession(
6102
7148
  $planId: LicencesEnumType!
6103
7149
  $billingPeriod: BillingPeriodEnumType
@@ -6108,12 +7154,12 @@ var CREATE_CHECKOUT_SESSION_MUTATION = import_client48.gql`
6108
7154
  }
6109
7155
  }
6110
7156
  `;
6111
- var CANCEL_SUBSCRIPTION_MUTATION = import_client48.gql`
7157
+ var CANCEL_SUBSCRIPTION_MUTATION = import_client51.gql`
6112
7158
  mutation cancelSubscription {
6113
7159
  cancelSubscription
6114
7160
  }
6115
7161
  `;
6116
- var UPDATE_SUBSCRIPTION_PLAN_MUTATION = import_client48.gql`
7162
+ var UPDATE_SUBSCRIPTION_PLAN_MUTATION = import_client51.gql`
6117
7163
  mutation updateSubscriptionPlan(
6118
7164
  $newPlanId: LicencesEnumType!
6119
7165
  $billingPeriod: BillingPeriodEnumType
@@ -6129,14 +7175,14 @@ var UPDATE_SUBSCRIPTION_PLAN_MUTATION = import_client48.gql`
6129
7175
  }
6130
7176
  }
6131
7177
  `;
6132
- var CREATE_CUSTOMER_PORTAL = import_client48.gql`
7178
+ var CREATE_CUSTOMER_PORTAL = import_client51.gql`
6133
7179
  mutation createCustomerPortal($returnUrl: String) {
6134
7180
  createCustomerPortal(returnUrl: $returnUrl) {
6135
7181
  portalUrl
6136
7182
  }
6137
7183
  }
6138
7184
  `;
6139
- var SELECT_PACKAGE_MUTATION = import_client48.gql`
7185
+ var SELECT_PACKAGE_MUTATION = import_client51.gql`
6140
7186
  mutation selectPackage(
6141
7187
  $billingPeriod: BillingPeriodEnumType
6142
7188
  $selectedLicence: LicencesEnumType!
@@ -6160,31 +7206,31 @@ var SELECT_PACKAGE_MUTATION = import_client48.gql`
6160
7206
 
6161
7207
  // src/graphql/hooks/stripe/hooksMutation.ts
6162
7208
  var useCreateCheckoutSession = () => {
6163
- const [createCheckoutSession, { loading, error }] = (0, import_client49.useMutation)(
7209
+ const [createCheckoutSession, { loading, error }] = (0, import_client52.useMutation)(
6164
7210
  CREATE_CHECKOUT_SESSION_MUTATION
6165
7211
  );
6166
7212
  return { createCheckoutSession, error, loading };
6167
7213
  };
6168
7214
  var useCancelSubscription = () => {
6169
- const [cancelSubscription, { loading, error }] = (0, import_client49.useMutation)(
7215
+ const [cancelSubscription, { loading, error }] = (0, import_client52.useMutation)(
6170
7216
  CANCEL_SUBSCRIPTION_MUTATION
6171
7217
  );
6172
7218
  return { cancelSubscription, error, loading };
6173
7219
  };
6174
7220
  var useUpdateSubscriptionPlan = () => {
6175
- const [updateSubscriptionPlan, { loading, error }] = (0, import_client49.useMutation)(
7221
+ const [updateSubscriptionPlan, { loading, error }] = (0, import_client52.useMutation)(
6176
7222
  UPDATE_SUBSCRIPTION_PLAN_MUTATION
6177
7223
  );
6178
7224
  return { error, loading, updateSubscriptionPlan };
6179
7225
  };
6180
7226
  var useCreateCustomerPortal = () => {
6181
- const [createCustomerPortal, { loading, error }] = (0, import_client49.useMutation)(
7227
+ const [createCustomerPortal, { loading, error }] = (0, import_client52.useMutation)(
6182
7228
  CREATE_CUSTOMER_PORTAL
6183
7229
  );
6184
7230
  return { createCustomerPortal, error, loading };
6185
7231
  };
6186
7232
  var useSelectPackage = () => {
6187
- const [selectPackage, { loading, error }] = (0, import_client49.useMutation)(SELECT_PACKAGE_MUTATION, {
7233
+ const [selectPackage, { loading, error }] = (0, import_client52.useMutation)(SELECT_PACKAGE_MUTATION, {
6188
7234
  awaitRefetchQueries: true,
6189
7235
  refetchQueries: (mutationResult) => {
6190
7236
  const userId = mutationResult?.data?.selectPackage?.userId;
@@ -6200,11 +7246,11 @@ var useSelectPackage = () => {
6200
7246
  };
6201
7247
 
6202
7248
  // src/graphql/hooks/stripe/hooksQuery.ts
6203
- var import_client51 = require("@apollo/client");
7249
+ var import_client54 = require("@apollo/client");
6204
7250
 
6205
7251
  // src/graphql/queries/stripe.ts
6206
- var import_client50 = require("@apollo/client");
6207
- var GET_SUBSCRIPTION_STATUS = import_client50.gql`
7252
+ var import_client53 = require("@apollo/client");
7253
+ var GET_SUBSCRIPTION_STATUS = import_client53.gql`
6208
7254
  query getSubscriptionStatus {
6209
7255
  getSubscriptionStatus {
6210
7256
  subscriptionId
@@ -6214,7 +7260,7 @@ var GET_SUBSCRIPTION_STATUS = import_client50.gql`
6214
7260
  }
6215
7261
  }
6216
7262
  `;
6217
- var GET_SUBSCRIPTION_PLANS = import_client50.gql`
7263
+ var GET_SUBSCRIPTION_PLANS = import_client53.gql`
6218
7264
  query getSubscriptionPlans {
6219
7265
  getSubscriptionPlans {
6220
7266
  plans {
@@ -6245,7 +7291,7 @@ var GET_SUBSCRIPTION_PLANS = import_client50.gql`
6245
7291
 
6246
7292
  // src/graphql/hooks/stripe/hooksQuery.ts
6247
7293
  var useGetSubscriptionStatus = () => {
6248
- const { data, loading, error, refetch } = (0, import_client51.useQuery)(GET_SUBSCRIPTION_STATUS);
7294
+ const { data, loading, error, refetch } = (0, import_client54.useQuery)(GET_SUBSCRIPTION_STATUS);
6249
7295
  return {
6250
7296
  data: data?.getSubscriptionStatus,
6251
7297
  error,
@@ -6254,7 +7300,7 @@ var useGetSubscriptionStatus = () => {
6254
7300
  };
6255
7301
  };
6256
7302
  var useGetSubscriptionPlans = () => {
6257
- const { data, loading, error, refetch } = (0, import_client51.useQuery)(GET_SUBSCRIPTION_PLANS);
7303
+ const { data, loading, error, refetch } = (0, import_client54.useQuery)(GET_SUBSCRIPTION_PLANS);
6258
7304
  return {
6259
7305
  data: data?.getSubscriptionPlans,
6260
7306
  error,
@@ -6264,11 +7310,11 @@ var useGetSubscriptionPlans = () => {
6264
7310
  };
6265
7311
 
6266
7312
  // src/graphql/hooks/partner/hooksMutation.ts
6267
- var import_client53 = require("@apollo/client");
7313
+ var import_client56 = require("@apollo/client");
6268
7314
 
6269
7315
  // src/graphql/mutations/partner.ts
6270
- var import_client52 = require("@apollo/client");
6271
- var CREATE_PARTNER_MUTATION = import_client52.gql`
7316
+ var import_client55 = require("@apollo/client");
7317
+ var CREATE_PARTNER_MUTATION = import_client55.gql`
6272
7318
  mutation createPartner($input: PartnerInputType!) {
6273
7319
  createPartner(input: $input) {
6274
7320
  ...PartnerFields
@@ -6276,7 +7322,7 @@ var CREATE_PARTNER_MUTATION = import_client52.gql`
6276
7322
  }
6277
7323
  ${PARTNER}
6278
7324
  `;
6279
- var UPDATE_PARTNER_MUTATION = import_client52.gql`
7325
+ var UPDATE_PARTNER_MUTATION = import_client55.gql`
6280
7326
  mutation updatePartner($_id: ID!, $input: PartnerInputType!) {
6281
7327
  updatePartner(_id: $_id, input: $input) {
6282
7328
  ...PartnerFields
@@ -6284,7 +7330,7 @@ var UPDATE_PARTNER_MUTATION = import_client52.gql`
6284
7330
  }
6285
7331
  ${PARTNER}
6286
7332
  `;
6287
- var DELETE_PARTNER_MUTATION = import_client52.gql`
7333
+ var DELETE_PARTNER_MUTATION = import_client55.gql`
6288
7334
  mutation deletePartner($_id: ID!) {
6289
7335
  deletePartner(_id: $_id)
6290
7336
  }
@@ -6292,7 +7338,7 @@ var DELETE_PARTNER_MUTATION = import_client52.gql`
6292
7338
 
6293
7339
  // src/graphql/hooks/partner/hooksMutation.ts
6294
7340
  var useCreatePartner = () => {
6295
- const [createPartner, { loading, error }] = (0, import_client53.useMutation)(
7341
+ const [createPartner, { loading, error }] = (0, import_client56.useMutation)(
6296
7342
  CREATE_PARTNER_MUTATION,
6297
7343
  {
6298
7344
  awaitRefetchQueries: true,
@@ -6302,7 +7348,7 @@ var useCreatePartner = () => {
6302
7348
  return { createPartner, error, loading };
6303
7349
  };
6304
7350
  var useUpdatePartner = () => {
6305
- const [updatePartner, { loading, error }] = (0, import_client53.useMutation)(
7351
+ const [updatePartner, { loading, error }] = (0, import_client56.useMutation)(
6306
7352
  UPDATE_PARTNER_MUTATION,
6307
7353
  {
6308
7354
  awaitRefetchQueries: true,
@@ -6312,7 +7358,7 @@ var useUpdatePartner = () => {
6312
7358
  return { error, loading, updatePartner };
6313
7359
  };
6314
7360
  var useDeletePartner = () => {
6315
- const [deletePartner, { loading, error }] = (0, import_client53.useMutation)(
7361
+ const [deletePartner, { loading, error }] = (0, import_client56.useMutation)(
6316
7362
  DELETE_PARTNER_MUTATION,
6317
7363
  {
6318
7364
  awaitRefetchQueries: true,
@@ -6323,9 +7369,9 @@ var useDeletePartner = () => {
6323
7369
  };
6324
7370
 
6325
7371
  // src/graphql/hooks/partner/hooksQuery.ts
6326
- var import_client54 = require("@apollo/client");
7372
+ var import_client57 = require("@apollo/client");
6327
7373
  var useGetPartners = () => {
6328
- const { loading, error, data, refetch } = (0, import_client54.useQuery)(GET_PARTNERS, {
7374
+ const { loading, error, data, refetch } = (0, import_client57.useQuery)(GET_PARTNERS, {
6329
7375
  fetchPolicy: "network-only"
6330
7376
  });
6331
7377
  const partners = data?.partners || [];
@@ -6337,7 +7383,7 @@ var useGetPartners = () => {
6337
7383
  };
6338
7384
  };
6339
7385
  var useGetPartner = (_id) => {
6340
- const { loading, error, data, refetch } = (0, import_client54.useQuery)(
7386
+ const { loading, error, data, refetch } = (0, import_client57.useQuery)(
6341
7387
  GET_PARTNER,
6342
7388
  {
6343
7389
  fetchPolicy: "network-only",
@@ -6353,7 +7399,7 @@ var useGetPartnersByRegion = (region, options) => {
6353
7399
  options,
6354
7400
  region
6355
7401
  };
6356
- const { loading, error, data, refetch, fetchMore } = (0, import_client54.useQuery)(GET_PARTNERS_BY_REGION, {
7402
+ const { loading, error, data, refetch, fetchMore } = (0, import_client57.useQuery)(GET_PARTNERS_BY_REGION, {
6357
7403
  fetchPolicy: "network-only",
6358
7404
  skip: !region || region === "",
6359
7405
  variables
@@ -6368,7 +7414,7 @@ var useGetPartnersByRegion = (region, options) => {
6368
7414
  };
6369
7415
  };
6370
7416
  var useSearchPartners = (search, region) => {
6371
- const { loading, error, data, refetch } = (0, import_client54.useQuery)(SEARCH_PARTNERS, {
7417
+ const { loading, error, data, refetch } = (0, import_client57.useQuery)(SEARCH_PARTNERS, {
6372
7418
  fetchPolicy: "network-only",
6373
7419
  skip: search.length < 3 || !region || region === "",
6374
7420
  variables: { region, search }
@@ -6382,201 +7428,6 @@ var import_client59 = require("@apollo/client");
6382
7428
 
6383
7429
  // src/graphql/mutations/post.ts
6384
7430
  var import_client58 = require("@apollo/client");
6385
-
6386
- // src/graphql/queries/post.ts
6387
- var import_client57 = require("@apollo/client");
6388
-
6389
- // src/graphql/queries/game/dailyClue.ts
6390
- var import_client55 = require("@apollo/client");
6391
- var GAME_DATE_FIELDS_FRAGMENT = import_client55.gql`
6392
- fragment GameDateFields on GameDateType {
6393
- startDate
6394
- endDate
6395
- }
6396
- `;
6397
- var DAILY_CLUE_BASE_GAME_FIELDS_FRAGMENT = import_client55.gql`
6398
- fragment DailyClueBaseGameFields on DailyClueBaseGameType {
6399
- gameDate {
6400
- ...GameDateFields
6401
- }
6402
- gameSolution
6403
- }
6404
- ${GAME_DATE_FIELDS_FRAGMENT}
6405
- `;
6406
- var DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT = import_client55.gql`
6407
- fragment DailyClueGameDataFields on DailyClueGameDataType {
6408
- gameFields {
6409
- ...DailyClueBaseGameFields
6410
- }
6411
- lastFoundDate
6412
- points
6413
- letterInfo {
6414
- collected
6415
- solutionShuffled
6416
- todaysClue
6417
- todaysLetter
6418
- todaysPlacement
6419
- }
6420
- streak
6421
- }
6422
- ${DAILY_CLUE_BASE_GAME_FIELDS_FRAGMENT}
6423
- `;
6424
-
6425
- // src/graphql/queries/game/puzzleGame.ts
6426
- var import_client56 = require("@apollo/client");
6427
- var PUZZLE_ANSWER_FIELDS_FRAGMENT = import_client56.gql`
6428
- fragment PuzzleAnswerFields on PuzzleAnswerType {
6429
- answer
6430
- answerId
6431
- correct
6432
- }
6433
- `;
6434
- var PUZZLE_QUESTION_FIELDS_FRAGMENT = import_client56.gql`
6435
- fragment PuzzleQuestionFields on PuzzleQuestionType {
6436
- answers {
6437
- ...PuzzleAnswerFields
6438
- }
6439
- question
6440
- questionId
6441
- }
6442
- ${PUZZLE_ANSWER_FIELDS_FRAGMENT}
6443
- `;
6444
- var PUZZLE_ANSWERED_QUESTION_FIELDS_FRAGMENT = import_client56.gql`
6445
- fragment PuzzleAnsweredQuestionFields on PuzzleAnsweredQuestionType {
6446
- questionId
6447
- selectedAnswerId
6448
- }
6449
- `;
6450
- var PUZZLE_BASE_GAME_FIELDS_FRAGMENT = import_client56.gql`
6451
- fragment PuzzleBaseGameFields on PuzzleBaseGameType {
6452
- questions {
6453
- ...PuzzleQuestionFields
6454
- }
6455
- }
6456
- ${PUZZLE_QUESTION_FIELDS_FRAGMENT}
6457
- `;
6458
- var PUZZLE_GAME_DATA_FIELDS_FRAGMENT = import_client56.gql`
6459
- fragment PuzzleGameDataFields on PuzzleGameDataType {
6460
- gameFields {
6461
- ...PuzzleBaseGameFields
6462
- }
6463
- answeredQuestions {
6464
- ...PuzzleAnsweredQuestionFields
6465
- }
6466
- points
6467
- streak
6468
- }
6469
- ${PUZZLE_BASE_GAME_FIELDS_FRAGMENT}
6470
- ${PUZZLE_ANSWERED_QUESTION_FIELDS_FRAGMENT}
6471
- `;
6472
-
6473
- // src/graphql/queries/post.ts
6474
- var BASE_GAME_FIELDS_FRAGMENT = import_client57.gql`
6475
- fragment BaseGameFields on BaseGameType {
6476
- gameTypeId
6477
- gameTitle
6478
- gameType
6479
- dailyClue {
6480
- ...DailyClueBaseGameFields
6481
- }
6482
- miniQuiz {
6483
- ...PuzzleBaseGameFields
6484
- }
6485
- oddOneOut {
6486
- ...PuzzleBaseGameFields
6487
- }
6488
- }
6489
- ${DAILY_CLUE_BASE_GAME_FIELDS_FRAGMENT}
6490
- ${PUZZLE_BASE_GAME_FIELDS_FRAGMENT}
6491
- `;
6492
- var POST_CONTENT_DATA_FIELDS_FRAGMENT = import_client57.gql`
6493
- fragment PostContentDataFields on PostContentData {
6494
- game {
6495
- ...BaseGameFields
6496
- }
6497
- textarea {
6498
- title
6499
- data
6500
- }
6501
- images {
6502
- ...ResourceImageFields
6503
- }
6504
- video {
6505
- source
6506
- title
6507
- }
6508
- list {
6509
- title
6510
- items {
6511
- text
6512
- }
6513
- }
6514
- }
6515
- ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
6516
- ${BASE_GAME_FIELDS_FRAGMENT}
6517
- `;
6518
- var POST_CONTENT_FIELDS_FRAGMENT = import_client57.gql`
6519
- fragment PostContentFields on PostContentType {
6520
- contentData {
6521
- ...PostContentDataFields
6522
- }
6523
- contentOrder
6524
- contentType
6525
- }
6526
- ${POST_CONTENT_DATA_FIELDS_FRAGMENT}
6527
- `;
6528
- var POST_FIELDS_FRAGMENT = import_client57.gql`
6529
- fragment PostFields on PostType {
6530
- _id
6531
- active
6532
- caption
6533
- content {
6534
- ...PostContentFields
6535
- }
6536
- cover {
6537
- ...ResourceImageFields
6538
- }
6539
- createdAt
6540
- deletedAt
6541
- postType
6542
- resource {
6543
- resourceId
6544
- resourceRegion
6545
- resourceType
6546
- }
6547
- tags
6548
- title
6549
- updatedAt
6550
- }
6551
- ${POST_CONTENT_FIELDS_FRAGMENT}
6552
- ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
6553
- `;
6554
- var GET_POSTS = import_client57.gql`
6555
- query getPosts {
6556
- posts {
6557
- ...PostFields
6558
- }
6559
- }
6560
- ${POST_FIELDS_FRAGMENT}
6561
- `;
6562
- var GET_POST = import_client57.gql`
6563
- query getPost($_id: ID!) {
6564
- post(_id: $_id) {
6565
- ...PostFields
6566
- }
6567
- }
6568
- ${POST_FIELDS_FRAGMENT}
6569
- `;
6570
- var GET_POSTS_BY_TYPE = import_client57.gql`
6571
- query getPostsByType($postType: PostTypeEnum!) {
6572
- postsByType(postType: $postType) {
6573
- ...PostFields
6574
- }
6575
- }
6576
- ${POST_FIELDS_FRAGMENT}
6577
- `;
6578
-
6579
- // src/graphql/mutations/post.ts
6580
7431
  var CREATE_POST_MUTATION = import_client58.gql`
6581
7432
  mutation createPost($input: PostInputType!) {
6582
7433
  createPost(input: $input) {
@@ -7637,6 +8488,12 @@ var fonts = {
7637
8488
  EnumUserRole,
7638
8489
  EnumVendorType,
7639
8490
  EnumVerificationType,
8491
+ GET_EVENT,
8492
+ GET_EVENT_INFO,
8493
+ GET_PARTNER,
8494
+ GET_POST,
8495
+ GET_VENDOR,
8496
+ GET_VENDOR_INFO,
7640
8497
  IMAGE_EXTENSION,
7641
8498
  IOS_URL,
7642
8499
  ImageTypeEnum,
@@ -7794,6 +8651,7 @@ var fonts = {
7794
8651
  statusOptions,
7795
8652
  tagOptions,
7796
8653
  timeFormat,
8654
+ toGraphqlQueryString,
7797
8655
  toNZTime,
7798
8656
  truncateText,
7799
8657
  useAddParticipantToChat,