@timardex/cluemart-shared 1.4.41 → 1.4.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/dist/{auth-C4rFM8ym.d.mts → auth-CMAZK-Pw.d.mts} +1 -2
  2. package/dist/{auth-Z7ZalBiX.d.ts → auth-CYgZKLvY.d.ts} +1 -2
  3. package/dist/{chunk-JRDILNPH.mjs → chunk-CGXCKZ4G.mjs} +21 -34
  4. package/dist/chunk-CGXCKZ4G.mjs.map +1 -0
  5. package/dist/{chunk-B5HXAEH4.mjs → chunk-END7A5PN.mjs} +1 -28
  6. package/dist/chunk-END7A5PN.mjs.map +1 -0
  7. package/dist/{chunk-UCRSD3WR.mjs → chunk-NZTJYWGA.mjs} +221 -456
  8. package/dist/chunk-NZTJYWGA.mjs.map +1 -0
  9. package/dist/formFields/index.cjs +20 -34
  10. package/dist/formFields/index.cjs.map +1 -1
  11. package/dist/formFields/index.d.mts +1 -3
  12. package/dist/formFields/index.d.ts +1 -3
  13. package/dist/formFields/index.mjs +1 -3
  14. package/dist/graphql/index.cjs +304 -546
  15. package/dist/graphql/index.cjs.map +1 -1
  16. package/dist/graphql/index.d.mts +2 -57
  17. package/dist/graphql/index.d.ts +2 -57
  18. package/dist/graphql/index.mjs +1 -15
  19. package/dist/hooks/index.cjs +275 -664
  20. package/dist/hooks/index.cjs.map +1 -1
  21. package/dist/hooks/index.d.mts +3 -5
  22. package/dist/hooks/index.d.ts +3 -5
  23. package/dist/hooks/index.mjs +92 -280
  24. package/dist/hooks/index.mjs.map +1 -1
  25. package/dist/index.cjs +412 -885
  26. package/dist/index.cjs.map +1 -1
  27. package/dist/index.d.mts +2 -149
  28. package/dist/index.d.ts +2 -149
  29. package/dist/index.mjs +328 -789
  30. package/dist/index.mjs.map +1 -1
  31. package/dist/{post-B0L3Oaoy.d.mts → post-CY04DycR.d.mts} +3 -90
  32. package/dist/{post-D4h3XD7G.d.ts → post-DIezKPg1.d.ts} +3 -90
  33. package/dist/types/index.cjs +2 -32
  34. package/dist/types/index.cjs.map +1 -1
  35. package/dist/types/index.d.mts +2 -2
  36. package/dist/types/index.d.ts +2 -2
  37. package/dist/types/index.mjs +3 -9
  38. package/package.json +1 -1
  39. package/dist/chunk-B5HXAEH4.mjs.map +0 -1
  40. package/dist/chunk-JRDILNPH.mjs.map +0 -1
  41. package/dist/chunk-UCRSD3WR.mjs.map +0 -1
package/dist/index.mjs CHANGED
@@ -996,6 +996,21 @@ var refundPolicyOptions = [
996
996
  label: "No refund if cancelled less than 14 days before the event.",
997
997
  value: false
998
998
  },
999
+ {
1000
+ category: "Cancelled by Vendor",
1001
+ label: "Full refund if cancelled due to illness or emergency.",
1002
+ value: false
1003
+ },
1004
+ {
1005
+ category: "Cancelled by Vendor",
1006
+ label: "No refund for no-shows or last-minute cancellations.",
1007
+ value: false
1008
+ },
1009
+ {
1010
+ category: "Cancelled by Vendor",
1011
+ label: "No refund",
1012
+ value: false
1013
+ },
999
1014
  {
1000
1015
  category: "Cancelled by Organiser",
1001
1016
  label: "Full refund if the event is cancelled by the organiser.",
@@ -1010,6 +1025,11 @@ var refundPolicyOptions = [
1010
1025
  category: "Cancelled by Organiser",
1011
1026
  label: "Refund only in cases of force majeure (e.g., natural disasters, government restrictions).",
1012
1027
  value: false
1028
+ },
1029
+ {
1030
+ category: "Cancelled by Organiser",
1031
+ label: "No refund",
1032
+ value: false
1013
1033
  }
1014
1034
  ];
1015
1035
 
@@ -2182,38 +2202,6 @@ var socialMediaFields = socialMedia.map((link) => ({
2182
2202
  placeholder: link.placeholder
2183
2203
  }));
2184
2204
 
2185
- // src/formFields/testers.ts
2186
- var testersFields = [
2187
- {
2188
- helperText: "Enter your business name *",
2189
- keyboardType: "default",
2190
- name: "businessName",
2191
- placeholder: "Business Name *"
2192
- },
2193
- {
2194
- helperText: "Enter first name *",
2195
- keyboardType: "default",
2196
- name: "firstName",
2197
- placeholder: "First Name *"
2198
- },
2199
- {
2200
- helperText: "Enter last name *",
2201
- keyboardType: "default",
2202
- name: "lastName",
2203
- placeholder: "Last Name *"
2204
- },
2205
- {
2206
- ...emailField,
2207
- helperText: "Enter email address *"
2208
- },
2209
- {
2210
- helperText: "Enter your mobile phone number *",
2211
- keyboardType: "phone-pad",
2212
- name: "mobilePhone",
2213
- placeholder: "Mobile Phone Number *"
2214
- }
2215
- ];
2216
-
2217
2205
  // src/formFields/contactUs.ts
2218
2206
  var contactUsFields = [
2219
2207
  {
@@ -2276,19 +2264,6 @@ var ADMIN_UPDATE_RESOURCE_TYPE_MUTATION = gql`
2276
2264
  }
2277
2265
  }
2278
2266
  `;
2279
- var ADMIN_UPDATE_TESTER_MUTATION = gql`
2280
- mutation adminUpdateTester($input: AdminUpdateTesterInputType!) {
2281
- adminUpdateTester(input: $input) {
2282
- _id
2283
- approved
2284
- }
2285
- }
2286
- `;
2287
- var ADMIN_RESEND_TESTER_VERIFICATION_EMAIL_MUTATION = gql`
2288
- mutation adminResendTesterVerificationEmail($testerId: ID!) {
2289
- adminResendTesterVerificationEmail(testerId: $testerId)
2290
- }
2291
- `;
2292
2267
  var ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION = gql`
2293
2268
  mutation adminResendUserVerificationEmail($userId: ID!) {
2294
2269
  adminResendUserVerificationEmail(userId: $userId)
@@ -2725,107 +2700,9 @@ var GET_EVENT_INFO = gql3`
2725
2700
  ${EVENT_INFO}
2726
2701
  `;
2727
2702
 
2728
- // src/graphql/queries/tester.ts
2729
- import { gql as gql4 } from "@apollo/client";
2730
- var TESTER_VENDOR_FIELDS_FRAGMENT = gql4`
2731
- fragment TesterVendorFields on TesterVendorType {
2732
- categories {
2733
- ...CategoryFields
2734
- }
2735
- productsOrServices
2736
- marketsAttended {
2737
- name
2738
- city
2739
- }
2740
- sellingFrequency
2741
- yearlySellingApprox
2742
- questionary {
2743
- uploadStallProfileFirstWeek
2744
- applyToAtLeastOneMarket
2745
- tryVisitorFeatures
2746
- completeFeedbackQuestionnaire
2747
- sendPhotoForSocialMedia
2748
- appearInVideoIntroduction
2749
- socialMediaFeatureReason
2750
- excitementAboutApp
2751
- usefulnessExpectations
2752
- testingPeriodConcerns
2753
- }
2754
- }
2755
- ${CATEGORY_FIELDS_FRAGMENT}
2756
- `;
2757
- var TESTER_EVENT_FIELDS_FRAGMENT = gql4`
2758
- fragment TesterEventFields on TesterEventType {
2759
- organizedMarketCount
2760
- markets {
2761
- name
2762
- cityOrVenue
2763
- frequency
2764
- averageStallCount
2765
- }
2766
- questionary {
2767
- allowMarketingAppearance
2768
- completeFinalQuestionnaire
2769
- dailyCoordinationNeeds
2770
- interestedInCharityInitiative
2771
- inviteStallholders
2772
- manageApplicationsAndCommunication
2773
- organizerExpectations
2774
- completeMarketProfileFirstWeek
2775
- spaceForClueMart
2776
- uploadStallList
2777
- }
2778
- }
2779
- `;
2780
- var TESTER_FIELDS_FRAGMENT = gql4`
2781
- fragment TesterFields on TesterType {
2782
- _id
2783
- active
2784
- approved
2785
- businessName
2786
- consents {
2787
- betaTestConsent
2788
- privacyConsent
2789
- }
2790
- createdAt
2791
- email
2792
- firstName
2793
- lastName
2794
- mobilePhone
2795
- osType
2796
- region
2797
- resourceType
2798
- updatedAt
2799
- vendor {
2800
- ...TesterVendorFields
2801
- }
2802
- event {
2803
- ...TesterEventFields
2804
- }
2805
- }
2806
- ${TESTER_VENDOR_FIELDS_FRAGMENT}
2807
- ${TESTER_EVENT_FIELDS_FRAGMENT}
2808
- `;
2809
- var GET_TESTERS = gql4`
2810
- query getTesters {
2811
- testers {
2812
- ...TesterFields
2813
- }
2814
- }
2815
- ${TESTER_FIELDS_FRAGMENT}
2816
- `;
2817
- var GET_TESTER = gql4`
2818
- query getTester($_id: ID!) {
2819
- tester(_id: $_id) {
2820
- ...TesterFields
2821
- }
2822
- }
2823
- ${TESTER_FIELDS_FRAGMENT}
2824
- `;
2825
-
2826
2703
  // src/graphql/queries/vendor.ts
2827
- import { gql as gql5 } from "@apollo/client";
2828
- var VENDOR_DATETIME_FIELDS_FRAGMENT = gql5`
2704
+ import { gql as gql4 } from "@apollo/client";
2705
+ var VENDOR_DATETIME_FIELDS_FRAGMENT = gql4`
2829
2706
  fragment VendorDateTimeFields on VendorDateTimeType {
2830
2707
  dateStatus
2831
2708
  endDate
@@ -2834,7 +2711,7 @@ var VENDOR_DATETIME_FIELDS_FRAGMENT = gql5`
2834
2711
  startTime
2835
2712
  }
2836
2713
  `;
2837
- var VENDOR_MENU_FIELDS_FRAGMENT = gql5`
2714
+ var VENDOR_MENU_FIELDS_FRAGMENT = gql4`
2838
2715
  fragment VendorMenuFields on VendorMenuType {
2839
2716
  description
2840
2717
  name
@@ -2842,7 +2719,7 @@ var VENDOR_MENU_FIELDS_FRAGMENT = gql5`
2842
2719
  productGroups
2843
2720
  }
2844
2721
  `;
2845
- var VENDOR = gql5`
2722
+ var VENDOR = gql4`
2846
2723
  fragment VendorFields on VendorType {
2847
2724
  _id
2848
2725
  active
@@ -2927,13 +2804,13 @@ var VENDOR = gql5`
2927
2804
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
2928
2805
  ${RELATION_DATES_FRAGMENT}
2929
2806
  `;
2930
- var VENDOR_ATTRIBUTES_FRAGMENT = gql5`
2807
+ var VENDOR_ATTRIBUTES_FRAGMENT = gql4`
2931
2808
  fragment VendorAttributesFields on VendorAttributesType {
2932
2809
  details
2933
2810
  isRequired
2934
2811
  }
2935
2812
  `;
2936
- var VENDOR_INFO = gql5`
2813
+ var VENDOR_INFO = gql4`
2937
2814
  fragment VendorInfoFields on VendorInfoType {
2938
2815
  _id
2939
2816
  compliance {
@@ -2974,7 +2851,7 @@ var VENDOR_INFO = gql5`
2974
2851
  ${VENDOR_ATTRIBUTES_FRAGMENT}
2975
2852
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
2976
2853
  `;
2977
- var UNREGISTERED_VENDOR_INVITATION_FRAGMENT = gql5`
2854
+ var UNREGISTERED_VENDOR_INVITATION_FRAGMENT = gql4`
2978
2855
  fragment UnregisteredVendorInvitationFields on UnregisteredVendorInvitationType {
2979
2856
  dateTime {
2980
2857
  ...EventDateTimeFields
@@ -2987,7 +2864,7 @@ var UNREGISTERED_VENDOR_INVITATION_FRAGMENT = gql5`
2987
2864
  ${EVENT_DATETIME_FIELDS_FRAGMENT}
2988
2865
  ${LOCATION_FIELDS_FRAGMENT}
2989
2866
  `;
2990
- var UNREGISTERED_VENDOR = gql5`
2867
+ var UNREGISTERED_VENDOR = gql4`
2991
2868
  fragment UnregisteredVendorFields on UnregisteredVendorType {
2992
2869
  _id
2993
2870
  categories {
@@ -3006,7 +2883,7 @@ var UNREGISTERED_VENDOR = gql5`
3006
2883
  ${CATEGORY_FIELDS_FRAGMENT}
3007
2884
  ${UNREGISTERED_VENDOR_INVITATION_FRAGMENT}
3008
2885
  `;
3009
- var GET_VENDORS = gql5`
2886
+ var GET_VENDORS = gql4`
3010
2887
  query getVendors {
3011
2888
  vendors {
3012
2889
  ...VendorFields
@@ -3014,7 +2891,7 @@ var GET_VENDORS = gql5`
3014
2891
  }
3015
2892
  ${VENDOR}
3016
2893
  `;
3017
- var GET_VENDOR = gql5`
2894
+ var GET_VENDOR = gql4`
3018
2895
  query getVendor($_id: ID!) {
3019
2896
  vendor(_id: $_id) {
3020
2897
  ...VendorFields
@@ -3022,7 +2899,7 @@ var GET_VENDOR = gql5`
3022
2899
  }
3023
2900
  ${VENDOR}
3024
2901
  `;
3025
- var GET_VENDORS_BY_REGION = gql5`
2902
+ var GET_VENDORS_BY_REGION = gql4`
3026
2903
  query getVendorsByRegion($region: String!) {
3027
2904
  vendorsByRegion(region: $region) {
3028
2905
  ...VendorFields
@@ -3030,7 +2907,7 @@ var GET_VENDORS_BY_REGION = gql5`
3030
2907
  }
3031
2908
  ${VENDOR}
3032
2909
  `;
3033
- var SEARCH_VENDORS = gql5`
2910
+ var SEARCH_VENDORS = gql4`
3034
2911
  query searchVendors($search: String!, $region: String) {
3035
2912
  vendorSearch(search: $search, region: $region) {
3036
2913
  ...VendorFields
@@ -3038,7 +2915,7 @@ var SEARCH_VENDORS = gql5`
3038
2915
  }
3039
2916
  ${VENDOR}
3040
2917
  `;
3041
- var GET_VENDOR_INFO = gql5`
2918
+ var GET_VENDOR_INFO = gql4`
3042
2919
  query getVendorInfo($vendorId: ID!) {
3043
2920
  vendorInfo(vendorId: $vendorId) {
3044
2921
  ...VendorInfoFields
@@ -3046,7 +2923,7 @@ var GET_VENDOR_INFO = gql5`
3046
2923
  }
3047
2924
  ${VENDOR_INFO}
3048
2925
  `;
3049
- var GET_UNREGISTERED_VENDORS = gql5`
2926
+ var GET_UNREGISTERED_VENDORS = gql4`
3050
2927
  query getUnregisteredVendors {
3051
2928
  unregisteredVendors {
3052
2929
  ...UnregisteredVendorFields
@@ -3054,7 +2931,7 @@ var GET_UNREGISTERED_VENDORS = gql5`
3054
2931
  }
3055
2932
  ${UNREGISTERED_VENDOR}
3056
2933
  `;
3057
- var GET_UNREGISTERED_VENDOR = gql5`
2934
+ var GET_UNREGISTERED_VENDOR = gql4`
3058
2935
  query getUnregisteredVendor($_id: ID!) {
3059
2936
  unregisteredVendor(_id: $_id) {
3060
2937
  ...UnregisteredVendorFields
@@ -3087,36 +2964,6 @@ var useAdminUpdateResourceType = () => {
3087
2964
  loading
3088
2965
  };
3089
2966
  };
3090
- var useAdminUpdateTester = () => {
3091
- const [adminUpdateTester, { loading, error }] = useMutation(ADMIN_UPDATE_TESTER_MUTATION, {
3092
- awaitRefetchQueries: true,
3093
- refetchQueries: (mutationResult) => {
3094
- const adminUpdateTester2 = mutationResult?.data?.adminUpdateTester;
3095
- const testerId = adminUpdateTester2?._id;
3096
- return [
3097
- {
3098
- query: GET_TESTER,
3099
- variables: { _id: testerId }
3100
- }
3101
- ];
3102
- }
3103
- });
3104
- return {
3105
- adminUpdateTester,
3106
- error,
3107
- loading
3108
- };
3109
- };
3110
- var useAdminResendTesterVerificationEmail = () => {
3111
- const [adminResendTesterVerificationEmail, { loading, error }] = useMutation(
3112
- ADMIN_RESEND_TESTER_VERIFICATION_EMAIL_MUTATION
3113
- );
3114
- return {
3115
- adminResendTesterVerificationEmail,
3116
- error,
3117
- loading
3118
- };
3119
- };
3120
2967
  var useAdminResendUserVerificationEmail = () => {
3121
2968
  const [adminResendUserVerificationEmail, { loading, error }] = useMutation(
3122
2969
  ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION
@@ -3132,8 +2979,8 @@ var useAdminResendUserVerificationEmail = () => {
3132
2979
  import { useMutation as useMutation2 } from "@apollo/client";
3133
2980
 
3134
2981
  // src/graphql/mutations/auth.ts
3135
- import { gql as gql6 } from "@apollo/client";
3136
- var REGISTER_MUTATION = gql6`
2982
+ import { gql as gql5 } from "@apollo/client";
2983
+ var REGISTER_MUTATION = gql5`
3137
2984
  mutation register($input: RegisterInputType!) {
3138
2985
  register(input: $input) {
3139
2986
  message
@@ -3146,7 +2993,7 @@ var REGISTER_MUTATION = gql6`
3146
2993
  }
3147
2994
  ${USER_FIELDS_FRAGMENT}
3148
2995
  `;
3149
- var LOGIN_MUTATION = gql6`
2996
+ var LOGIN_MUTATION = gql5`
3150
2997
  mutation login($input: LoginInputType!) {
3151
2998
  login(input: $input) {
3152
2999
  message
@@ -3159,14 +3006,14 @@ var LOGIN_MUTATION = gql6`
3159
3006
  }
3160
3007
  ${USER_FIELDS_FRAGMENT}
3161
3008
  `;
3162
- var LOGOUT_MUTATION = gql6`
3009
+ var LOGOUT_MUTATION = gql5`
3163
3010
  mutation logout {
3164
3011
  logout {
3165
3012
  message
3166
3013
  }
3167
3014
  }
3168
3015
  `;
3169
- var REFRESH_TOKEN_MUTATION = gql6`
3016
+ var REFRESH_TOKEN_MUTATION = gql5`
3170
3017
  mutation refreshToken($input: RefreshTokenInputType!) {
3171
3018
  refreshToken(input: $input) {
3172
3019
  refreshToken
@@ -3174,21 +3021,21 @@ var REFRESH_TOKEN_MUTATION = gql6`
3174
3021
  }
3175
3022
  }
3176
3023
  `;
3177
- var RESET_PASSWORD_MUTATION = gql6`
3024
+ var RESET_PASSWORD_MUTATION = gql5`
3178
3025
  mutation resetPassword($input: ResetPasswordInputType!) {
3179
3026
  resetPassword(input: $input) {
3180
3027
  message
3181
3028
  }
3182
3029
  }
3183
3030
  `;
3184
- var REQUEST_PASSWORD_RESET_MUTATION = gql6`
3031
+ var REQUEST_PASSWORD_RESET_MUTATION = gql5`
3185
3032
  mutation requestPasswordReset($input: RequestPasswordResetInputType!) {
3186
3033
  requestPasswordReset(input: $input) {
3187
3034
  message
3188
3035
  }
3189
3036
  }
3190
3037
  `;
3191
- var VALIDATE_VERIFICATION_TOKEN_MUTATION = gql6`
3038
+ var VALIDATE_VERIFICATION_TOKEN_MUTATION = gql5`
3192
3039
  mutation validateVerificationToken(
3193
3040
  $input: ValidateVerificationTokenInputType!
3194
3041
  ) {
@@ -3240,11 +3087,11 @@ var useResetPassword = () => {
3240
3087
  import { useMutation as useMutation3 } from "@apollo/client";
3241
3088
 
3242
3089
  // src/graphql/mutations/chat.ts
3243
- import { gql as gql8 } from "@apollo/client";
3090
+ import { gql as gql7 } from "@apollo/client";
3244
3091
 
3245
3092
  // src/graphql/queries/chat.ts
3246
- import { gql as gql7 } from "@apollo/client";
3247
- var CHAT_MESSAGE_FIELDS_FRAGMENT = gql7`
3093
+ import { gql as gql6 } from "@apollo/client";
3094
+ var CHAT_MESSAGE_FIELDS_FRAGMENT = gql6`
3248
3095
  fragment ChatMessageFields on ChatMessageType {
3249
3096
  _id
3250
3097
  content
@@ -3267,7 +3114,7 @@ var CHAT_MESSAGE_FIELDS_FRAGMENT = gql7`
3267
3114
  updatedAt
3268
3115
  }
3269
3116
  `;
3270
- var CHAT_PARTICIPANT = gql7`
3117
+ var CHAT_PARTICIPANT = gql6`
3271
3118
  fragment ChatParticipantFields on ChatParticipantType {
3272
3119
  active
3273
3120
  userAvatar
@@ -3276,7 +3123,7 @@ var CHAT_PARTICIPANT = gql7`
3276
3123
  userName
3277
3124
  }
3278
3125
  `;
3279
- var CHAT_FIELDS_FRAGMENT = gql7`
3126
+ var CHAT_FIELDS_FRAGMENT = gql6`
3280
3127
  fragment ChatFields on ChatType {
3281
3128
  _id
3282
3129
  active
@@ -3297,7 +3144,7 @@ var CHAT_FIELDS_FRAGMENT = gql7`
3297
3144
  ${CHAT_MESSAGE_FIELDS_FRAGMENT}
3298
3145
  ${CHAT_PARTICIPANT}
3299
3146
  `;
3300
- var CHAT = gql7`
3147
+ var CHAT = gql6`
3301
3148
  query chat($_id: ID!) {
3302
3149
  chat(_id: $_id) {
3303
3150
  ...ChatFields
@@ -3305,7 +3152,7 @@ var CHAT = gql7`
3305
3152
  }
3306
3153
  ${CHAT_FIELDS_FRAGMENT}
3307
3154
  `;
3308
- var USER_CHATS = gql7`
3155
+ var USER_CHATS = gql6`
3309
3156
  query userChats {
3310
3157
  userChats {
3311
3158
  ...ChatFields
@@ -3313,7 +3160,7 @@ var USER_CHATS = gql7`
3313
3160
  }
3314
3161
  ${CHAT_FIELDS_FRAGMENT}
3315
3162
  `;
3316
- var GET_CHATS_BY_REGION = gql7`
3163
+ var GET_CHATS_BY_REGION = gql6`
3317
3164
  query getChatsByRegion($region: String!) {
3318
3165
  chatsByRegion(region: $region) {
3319
3166
  ...ChatFields
@@ -3321,7 +3168,7 @@ var GET_CHATS_BY_REGION = gql7`
3321
3168
  }
3322
3169
  ${CHAT_FIELDS_FRAGMENT}
3323
3170
  `;
3324
- var CHAT_REPORT_FIELDS_FRAGMENT = gql7`
3171
+ var CHAT_REPORT_FIELDS_FRAGMENT = gql6`
3325
3172
  fragment ChatReportFields on ReportChatUserType {
3326
3173
  _id
3327
3174
  chatId
@@ -3336,7 +3183,7 @@ var CHAT_REPORT_FIELDS_FRAGMENT = gql7`
3336
3183
  updatedAt
3337
3184
  }
3338
3185
  `;
3339
- var GET_REPORTED_CHAT_USERS = gql7`
3186
+ var GET_REPORTED_CHAT_USERS = gql6`
3340
3187
  query getReportedChatUsers {
3341
3188
  reportedChatUsers {
3342
3189
  ...ChatReportFields
@@ -3346,7 +3193,7 @@ var GET_REPORTED_CHAT_USERS = gql7`
3346
3193
  `;
3347
3194
 
3348
3195
  // src/graphql/mutations/chat.ts
3349
- var SEND_CHAT_MESSAGE_MUTATION = gql8`
3196
+ var SEND_CHAT_MESSAGE_MUTATION = gql7`
3350
3197
  mutation sendChatMessage($_id: ID!, $input: ChatMessageInputType!) {
3351
3198
  sendChatMessage(_id: $_id, input: $input) {
3352
3199
  ...ChatFields
@@ -3354,12 +3201,12 @@ var SEND_CHAT_MESSAGE_MUTATION = gql8`
3354
3201
  }
3355
3202
  ${CHAT_FIELDS_FRAGMENT}
3356
3203
  `;
3357
- var DELETE_CHAT_MUTATION = gql8`
3204
+ var DELETE_CHAT_MUTATION = gql7`
3358
3205
  mutation deleteChat($_id: ID!) {
3359
3206
  deleteChat(_id: $_id)
3360
3207
  }
3361
3208
  `;
3362
- var ADD_PARTICIPANT_TO_CHAT_MUTATION = gql8`
3209
+ var ADD_PARTICIPANT_TO_CHAT_MUTATION = gql7`
3363
3210
  mutation addParticipantToChat($chatId: ID!, $userId: ID!) {
3364
3211
  addParticipantToChat(chatId: $chatId, userId: $userId) {
3365
3212
  ...ChatFields
@@ -3367,7 +3214,7 @@ var ADD_PARTICIPANT_TO_CHAT_MUTATION = gql8`
3367
3214
  }
3368
3215
  ${CHAT_FIELDS_FRAGMENT}
3369
3216
  `;
3370
- var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = gql8`
3217
+ var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = gql7`
3371
3218
  mutation removeParticipantFromChat($chatId: ID!, $userId: ID!) {
3372
3219
  removeParticipantFromChat(chatId: $chatId, userId: $userId) {
3373
3220
  success
@@ -3375,7 +3222,7 @@ var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = gql8`
3375
3222
  }
3376
3223
  }
3377
3224
  `;
3378
- var TOGGLE_CHAT_MESSAGE_LIKE_MUTATION = gql8`
3225
+ var TOGGLE_CHAT_MESSAGE_LIKE_MUTATION = gql7`
3379
3226
  mutation toggleChatMessageLike($chatId: ID!, $messageId: ID!) {
3380
3227
  toggleChatMessageLike(chatId: $chatId, messageId: $messageId) {
3381
3228
  ...ChatFields
@@ -3383,7 +3230,7 @@ var TOGGLE_CHAT_MESSAGE_LIKE_MUTATION = gql8`
3383
3230
  }
3384
3231
  ${CHAT_FIELDS_FRAGMENT}
3385
3232
  `;
3386
- var MARK_CHAT_MESSAGES_SEEN_MUTATION = gql8`
3233
+ var MARK_CHAT_MESSAGES_SEEN_MUTATION = gql7`
3387
3234
  mutation markChatMessagesSeen($chatId: ID!, $messageIds: [ID!]!) {
3388
3235
  markChatMessagesSeen(chatId: $chatId, messageIds: $messageIds) {
3389
3236
  ...ChatFields
@@ -3391,7 +3238,7 @@ var MARK_CHAT_MESSAGES_SEEN_MUTATION = gql8`
3391
3238
  }
3392
3239
  ${CHAT_FIELDS_FRAGMENT}
3393
3240
  `;
3394
- var REPORT_CHAT_USER_MUTATION = gql8`
3241
+ var REPORT_CHAT_USER_MUTATION = gql7`
3395
3242
  mutation reportChatUser($input: ReportChatUserInputType!) {
3396
3243
  reportChatUser(input: $input) {
3397
3244
  ...ChatReportFields
@@ -3495,8 +3342,8 @@ var useReportChatUser = () => {
3495
3342
  import { useQuery, useSubscription } from "@apollo/client";
3496
3343
 
3497
3344
  // src/graphql/subscriptions/chat.ts
3498
- import { gql as gql9 } from "@apollo/client";
3499
- var GET_CHAT_MESSAGE = gql9`
3345
+ import { gql as gql8 } from "@apollo/client";
3346
+ var GET_CHAT_MESSAGE = gql8`
3500
3347
  subscription {
3501
3348
  getChatMessage {
3502
3349
  ...ChatFields
@@ -3553,8 +3400,8 @@ var useGetReportedChatUsers = () => {
3553
3400
  import { useMutation as useMutation4 } from "@apollo/client";
3554
3401
 
3555
3402
  // src/graphql/mutations/contactUs.ts
3556
- import { gql as gql10 } from "@apollo/client";
3557
- var CONTACT_US_MUTATION = gql10`
3403
+ import { gql as gql9 } from "@apollo/client";
3404
+ var CONTACT_US_MUTATION = gql9`
3558
3405
  mutation contactUs($input: ContactUsInputType!) {
3559
3406
  contactUs(input: $input) {
3560
3407
  message
@@ -3572,8 +3419,8 @@ var useContactUs = () => {
3572
3419
  import { useMutation as useMutation5 } from "@apollo/client";
3573
3420
 
3574
3421
  // src/graphql/mutations/event.ts
3575
- import { gql as gql11 } from "@apollo/client";
3576
- var CREATE_EVENT_MUTATION = gql11`
3422
+ import { gql as gql10 } from "@apollo/client";
3423
+ var CREATE_EVENT_MUTATION = gql10`
3577
3424
  mutation createEvent($input: EventInputType!) {
3578
3425
  createEvent(input: $input) {
3579
3426
  ...EventFields
@@ -3581,7 +3428,7 @@ var CREATE_EVENT_MUTATION = gql11`
3581
3428
  }
3582
3429
  ${EVENT}
3583
3430
  `;
3584
- var UPDATE_EVENT_MUTATION = gql11`
3431
+ var UPDATE_EVENT_MUTATION = gql10`
3585
3432
  mutation updateEvent($_id: ID!, $input: EventInputType!) {
3586
3433
  updateEvent(_id: $_id, input: $input) {
3587
3434
  ...EventFields
@@ -3589,12 +3436,12 @@ var UPDATE_EVENT_MUTATION = gql11`
3589
3436
  }
3590
3437
  ${EVENT}
3591
3438
  `;
3592
- var DELETE_EVENT_MUTATION = gql11`
3439
+ var DELETE_EVENT_MUTATION = gql10`
3593
3440
  mutation deleteEvent($_id: ID!) {
3594
3441
  deleteEvent(_id: $_id)
3595
3442
  }
3596
3443
  `;
3597
- var CREATE_EVENT_INFO_MUTATION = gql11`
3444
+ var CREATE_EVENT_INFO_MUTATION = gql10`
3598
3445
  mutation createEventInfo($input: EventInfoInputType!) {
3599
3446
  createEventInfo(input: $input) {
3600
3447
  ...EventInfoFields
@@ -3602,7 +3449,7 @@ var CREATE_EVENT_INFO_MUTATION = gql11`
3602
3449
  }
3603
3450
  ${EVENT_INFO}
3604
3451
  `;
3605
- var UPDATE_EVENT_INFO_MUTATION = gql11`
3452
+ var UPDATE_EVENT_INFO_MUTATION = gql10`
3606
3453
  mutation updateEventInfo($_id: ID!, $input: EventInfoInputType!) {
3607
3454
  updateEventInfo(_id: $_id, input: $input) {
3608
3455
  ...EventInfoFields
@@ -3612,11 +3459,11 @@ var UPDATE_EVENT_INFO_MUTATION = gql11`
3612
3459
  `;
3613
3460
 
3614
3461
  // src/graphql/queries/user.ts
3615
- import { gql as gql13 } from "@apollo/client";
3462
+ import { gql as gql12 } from "@apollo/client";
3616
3463
 
3617
3464
  // src/graphql/queries/partner.ts
3618
- import { gql as gql12 } from "@apollo/client";
3619
- var PARTNER = gql12`
3465
+ import { gql as gql11 } from "@apollo/client";
3466
+ var PARTNER = gql11`
3620
3467
  fragment PartnerFields on PartnerType {
3621
3468
  _id
3622
3469
  active
@@ -3671,7 +3518,7 @@ var PARTNER = gql12`
3671
3518
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
3672
3519
  ${CONTACT_DETAILS_FIELDS_FRAGMENT}
3673
3520
  `;
3674
- var GET_PARTNERS = gql12`
3521
+ var GET_PARTNERS = gql11`
3675
3522
  query getPartners {
3676
3523
  partners {
3677
3524
  ...PartnerFields
@@ -3679,7 +3526,7 @@ var GET_PARTNERS = gql12`
3679
3526
  }
3680
3527
  ${PARTNER}
3681
3528
  `;
3682
- var GET_PARTNER = gql12`
3529
+ var GET_PARTNER = gql11`
3683
3530
  query getPartner($_id: ID!) {
3684
3531
  partner(_id: $_id) {
3685
3532
  ...PartnerFields
@@ -3687,7 +3534,7 @@ var GET_PARTNER = gql12`
3687
3534
  }
3688
3535
  ${PARTNER}
3689
3536
  `;
3690
- var GET_PARTNERS_BY_REGION = gql12`
3537
+ var GET_PARTNERS_BY_REGION = gql11`
3691
3538
  query getPartnersByRegion($region: String!) {
3692
3539
  partnersByRegion(region: $region) {
3693
3540
  ...PartnerFields
@@ -3695,7 +3542,7 @@ var GET_PARTNERS_BY_REGION = gql12`
3695
3542
  }
3696
3543
  ${PARTNER}
3697
3544
  `;
3698
- var SEARCH_PARTNERS = gql12`
3545
+ var SEARCH_PARTNERS = gql11`
3699
3546
  query searchPartners($search: String!, $region: String) {
3700
3547
  partnersSearch(search: $search, region: $region) {
3701
3548
  ...PartnerFields
@@ -3705,7 +3552,7 @@ var SEARCH_PARTNERS = gql12`
3705
3552
  `;
3706
3553
 
3707
3554
  // src/graphql/queries/user.ts
3708
- var GET_USERS = gql13`
3555
+ var GET_USERS = gql12`
3709
3556
  query getUsers {
3710
3557
  users {
3711
3558
  ...UserFields
@@ -3713,7 +3560,7 @@ var GET_USERS = gql13`
3713
3560
  }
3714
3561
  ${USER_FIELDS_FRAGMENT}
3715
3562
  `;
3716
- var GET_USER = gql13`
3563
+ var GET_USER = gql12`
3717
3564
  query getUser($_id: ID!) {
3718
3565
  user(_id: $_id) {
3719
3566
  ...UserFields
@@ -3721,7 +3568,7 @@ var GET_USER = gql13`
3721
3568
  }
3722
3569
  ${USER_FIELDS_FRAGMENT}
3723
3570
  `;
3724
- var GET_USER_EVENTS = gql13`
3571
+ var GET_USER_EVENTS = gql12`
3725
3572
  query getUserEvents {
3726
3573
  userEvents {
3727
3574
  ...EventFields
@@ -3729,7 +3576,7 @@ var GET_USER_EVENTS = gql13`
3729
3576
  }
3730
3577
  ${EVENT}
3731
3578
  `;
3732
- var GET_USER_VENDORS = gql13`
3579
+ var GET_USER_VENDORS = gql12`
3733
3580
  query getUserVendors {
3734
3581
  userVendors {
3735
3582
  ...VendorFields
@@ -3737,7 +3584,7 @@ var GET_USER_VENDORS = gql13`
3737
3584
  }
3738
3585
  ${VENDOR}
3739
3586
  `;
3740
- var GET_USER_PARTNERS = gql13`
3587
+ var GET_USER_PARTNERS = gql12`
3741
3588
  query getUserPartners {
3742
3589
  userPartners {
3743
3590
  ...PartnerFields
@@ -3745,7 +3592,7 @@ var GET_USER_PARTNERS = gql13`
3745
3592
  }
3746
3593
  ${PARTNER}
3747
3594
  `;
3748
- var GET_USER_ACTIVITIES = gql13`
3595
+ var GET_USER_ACTIVITIES = gql12`
3749
3596
  query getUserActivities {
3750
3597
  userActivities {
3751
3598
  favourites {
@@ -3919,11 +3766,11 @@ var useGetEventInfo = (eventId) => {
3919
3766
  import { useMutation as useMutation6 } from "@apollo/client";
3920
3767
 
3921
3768
  // src/graphql/mutations/notification.ts
3922
- import { gql as gql15 } from "@apollo/client";
3769
+ import { gql as gql14 } from "@apollo/client";
3923
3770
 
3924
3771
  // src/graphql/queries/notification.ts
3925
- import { gql as gql14 } from "@apollo/client";
3926
- var NOTIFICATION_FRAGMENT = gql14`
3772
+ import { gql as gql13 } from "@apollo/client";
3773
+ var NOTIFICATION_FRAGMENT = gql13`
3927
3774
  fragment NotificationFields on Notification {
3928
3775
  _id
3929
3776
  userId
@@ -3940,7 +3787,7 @@ var NOTIFICATION_FRAGMENT = gql14`
3940
3787
  updatedAt
3941
3788
  }
3942
3789
  `;
3943
- var GET_USER_NOTIFICATIONS = gql14`
3790
+ var GET_USER_NOTIFICATIONS = gql13`
3944
3791
  query getUserNotifications($limit: Int, $offset: Int) {
3945
3792
  userNotifications(limit: $limit, offset: $offset) {
3946
3793
  ...NotificationFields
@@ -3948,7 +3795,7 @@ var GET_USER_NOTIFICATIONS = gql14`
3948
3795
  }
3949
3796
  ${NOTIFICATION_FRAGMENT}
3950
3797
  `;
3951
- var GET_NOTIFICATION_COUNT = gql14`
3798
+ var GET_NOTIFICATION_COUNT = gql13`
3952
3799
  query getNotificationCount {
3953
3800
  notificationCount {
3954
3801
  total
@@ -3958,7 +3805,7 @@ var GET_NOTIFICATION_COUNT = gql14`
3958
3805
  `;
3959
3806
 
3960
3807
  // src/graphql/mutations/notification.ts
3961
- var CREATE_BULK_NOTIFICATIONS = gql15`
3808
+ var CREATE_BULK_NOTIFICATIONS = gql14`
3962
3809
  mutation createBulkNotifications($input: CreateBulkNotificationInput!) {
3963
3810
  createBulkNotifications(input: $input) {
3964
3811
  ...NotificationFields
@@ -3966,7 +3813,7 @@ var CREATE_BULK_NOTIFICATIONS = gql15`
3966
3813
  }
3967
3814
  ${NOTIFICATION_FRAGMENT}
3968
3815
  `;
3969
- var MARK_NOTIFICATION_READ = gql15`
3816
+ var MARK_NOTIFICATION_READ = gql14`
3970
3817
  mutation markNotificationRead($_id: ID!) {
3971
3818
  markNotificationRead(_id: $_id) {
3972
3819
  ...NotificationFields
@@ -3974,17 +3821,17 @@ var MARK_NOTIFICATION_READ = gql15`
3974
3821
  }
3975
3822
  ${NOTIFICATION_FRAGMENT}
3976
3823
  `;
3977
- var MARK_ALL_NOTIFICATIONS_READ = gql15`
3824
+ var MARK_ALL_NOTIFICATIONS_READ = gql14`
3978
3825
  mutation markAllNotificationsRead {
3979
3826
  markAllNotificationsRead
3980
3827
  }
3981
3828
  `;
3982
- var DELETE_NOTIFICATION = gql15`
3829
+ var DELETE_NOTIFICATION = gql14`
3983
3830
  mutation deleteNotification($_id: ID!) {
3984
3831
  deleteNotification(_id: $_id)
3985
3832
  }
3986
3833
  `;
3987
- var DELETE_ALL_NOTIFICATIONS = gql15`
3834
+ var DELETE_ALL_NOTIFICATIONS = gql14`
3988
3835
  mutation deleteAllNotifications {
3989
3836
  deleteAllNotifications
3990
3837
  }
@@ -4092,8 +3939,8 @@ var useGetNotificationCount = () => {
4092
3939
  import { useSubscription as useSubscription2 } from "@apollo/client";
4093
3940
 
4094
3941
  // src/graphql/subscriptions/notification.ts
4095
- import { gql as gql16 } from "@apollo/client";
4096
- var GET_NOTIFICATIONS_SUBSCRIPTION = gql16`
3942
+ import { gql as gql15 } from "@apollo/client";
3943
+ var GET_NOTIFICATIONS_SUBSCRIPTION = gql15`
4097
3944
  subscription {
4098
3945
  getUserNotifications {
4099
3946
  ...NotificationFields
@@ -4101,7 +3948,7 @@ var GET_NOTIFICATIONS_SUBSCRIPTION = gql16`
4101
3948
  }
4102
3949
  ${NOTIFICATION_FRAGMENT}
4103
3950
  `;
4104
- var GET_NOTIFICATION_COUNT_SUBSCRIPTION = gql16`
3951
+ var GET_NOTIFICATION_COUNT_SUBSCRIPTION = gql15`
4105
3952
  subscription {
4106
3953
  getNotificationCount {
4107
3954
  total
@@ -4138,8 +3985,8 @@ var useGetNotificationCountSubscription = () => {
4138
3985
  import { useMutation as useMutation7 } from "@apollo/client";
4139
3986
 
4140
3987
  // src/graphql/mutations/poster.ts
4141
- import { gql as gql17 } from "@apollo/client";
4142
- var CREATE_POSTER_MUTATION = gql17`
3988
+ import { gql as gql16 } from "@apollo/client";
3989
+ var CREATE_POSTER_MUTATION = gql16`
4143
3990
  mutation createPoster($input: PosterInputType!) {
4144
3991
  createPoster(input: $input) {
4145
3992
  message
@@ -4166,8 +4013,8 @@ var useCreatePoster = () => {
4166
4013
  import { useMutation as useMutation8 } from "@apollo/client";
4167
4014
 
4168
4015
  // src/graphql/mutations/pushToken.ts
4169
- import { gql as gql18 } from "@apollo/client";
4170
- var CREATE_PUSH_TOKEN_MUTATION = gql18`
4016
+ import { gql as gql17 } from "@apollo/client";
4017
+ var CREATE_PUSH_TOKEN_MUTATION = gql17`
4171
4018
  mutation createPushToken($input: PushTokenInput!) {
4172
4019
  createPushToken(input: $input) {
4173
4020
  success
@@ -4187,11 +4034,11 @@ var useCreatePushToken = () => {
4187
4034
  import { useMutation as useMutation9 } from "@apollo/client";
4188
4035
 
4189
4036
  // src/graphql/mutations/relation.ts
4190
- import { gql as gql20 } from "@apollo/client";
4037
+ import { gql as gql19 } from "@apollo/client";
4191
4038
 
4192
4039
  // src/graphql/queries/relation.ts
4193
- import { gql as gql19 } from "@apollo/client";
4194
- var RELATION_FIELDS_FRAGMENT = gql19`
4040
+ import { gql as gql18 } from "@apollo/client";
4041
+ var RELATION_FIELDS_FRAGMENT = gql18`
4195
4042
  fragment RelationFields on RelationType {
4196
4043
  _id
4197
4044
  active
@@ -4209,7 +4056,7 @@ var RELATION_FIELDS_FRAGMENT = gql19`
4209
4056
  }
4210
4057
  ${RELATION_DATES_FRAGMENT}
4211
4058
  `;
4212
- var GET_RELATION = gql19`
4059
+ var GET_RELATION = gql18`
4213
4060
  query getRelation($_id: ID!) {
4214
4061
  relation(_id: $_id) {
4215
4062
  ...RelationFields
@@ -4217,7 +4064,7 @@ var GET_RELATION = gql19`
4217
4064
  }
4218
4065
  ${RELATION_FIELDS_FRAGMENT}
4219
4066
  `;
4220
- var GET_RELATION_BY_EVENT_AND_VENDOR = gql19`
4067
+ var GET_RELATION_BY_EVENT_AND_VENDOR = gql18`
4221
4068
  query getRelationByEventAndVendor($eventId: ID!, $vendorId: ID!) {
4222
4069
  relationByEventAndVendor(eventId: $eventId, vendorId: $vendorId) {
4223
4070
  ...RelationFields
@@ -4225,7 +4072,7 @@ var GET_RELATION_BY_EVENT_AND_VENDOR = gql19`
4225
4072
  }
4226
4073
  ${RELATION_FIELDS_FRAGMENT}
4227
4074
  `;
4228
- var GET_EVENT_RELATIONS = gql19`
4075
+ var GET_EVENT_RELATIONS = gql18`
4229
4076
  query getEventRelations($eventId: ID!) {
4230
4077
  eventRelations(eventId: $eventId) {
4231
4078
  ...RelationFields
@@ -4233,7 +4080,7 @@ var GET_EVENT_RELATIONS = gql19`
4233
4080
  }
4234
4081
  ${RELATION_FIELDS_FRAGMENT}
4235
4082
  `;
4236
- var GET_VENDOR_RELATIONS = gql19`
4083
+ var GET_VENDOR_RELATIONS = gql18`
4237
4084
  query getVendorRelations($vendorId: ID!) {
4238
4085
  vendorRelations(vendorId: $vendorId) {
4239
4086
  ...RelationFields
@@ -4241,7 +4088,7 @@ var GET_VENDOR_RELATIONS = gql19`
4241
4088
  }
4242
4089
  ${RELATION_FIELDS_FRAGMENT}
4243
4090
  `;
4244
- var GET_RESOURCE_CONNECTIONS = gql19`
4091
+ var GET_RESOURCE_CONNECTIONS = gql18`
4245
4092
  query getResourceConnections(
4246
4093
  $resourceId: ID!
4247
4094
  $resourceType: ResourceTypeEnum!
@@ -4260,7 +4107,7 @@ var GET_RESOURCE_CONNECTIONS = gql19`
4260
4107
  `;
4261
4108
 
4262
4109
  // src/graphql/mutations/relation.ts
4263
- var CREATE_RELATION_MUTATION = gql20`
4110
+ var CREATE_RELATION_MUTATION = gql19`
4264
4111
  mutation createRelation($input: RelationInputType!) {
4265
4112
  createRelation(input: $input) {
4266
4113
  ...RelationFields
@@ -4268,7 +4115,7 @@ var CREATE_RELATION_MUTATION = gql20`
4268
4115
  }
4269
4116
  ${RELATION_FIELDS_FRAGMENT}
4270
4117
  `;
4271
- var UPDATE_RELATION_MUTATION = gql20`
4118
+ var UPDATE_RELATION_MUTATION = gql19`
4272
4119
  mutation updateRelation($_id: ID!, $input: RelationInputType!) {
4273
4120
  updateRelation(_id: $_id, input: $input) {
4274
4121
  ...RelationFields
@@ -4276,7 +4123,7 @@ var UPDATE_RELATION_MUTATION = gql20`
4276
4123
  }
4277
4124
  ${RELATION_FIELDS_FRAGMENT}
4278
4125
  `;
4279
- var DELETE_RELATION_MUTATION = gql20`
4126
+ var DELETE_RELATION_MUTATION = gql19`
4280
4127
  mutation deleteRelation($_id: ID!) {
4281
4128
  deleteRelation(_id: $_id) {
4282
4129
  ...RelationFields
@@ -4465,8 +4312,8 @@ var useGetResourceConnections = (resourceId, resourceType) => {
4465
4312
  import { useMutation as useMutation10 } from "@apollo/client";
4466
4313
 
4467
4314
  // src/graphql/mutations/vendor.ts
4468
- import { gql as gql21 } from "@apollo/client";
4469
- var CREATE_VENDOR_MUTATION = gql21`
4315
+ import { gql as gql20 } from "@apollo/client";
4316
+ var CREATE_VENDOR_MUTATION = gql20`
4470
4317
  mutation createVendor($input: VendorInputType!) {
4471
4318
  createVendor(input: $input) {
4472
4319
  ...VendorFields
@@ -4474,7 +4321,7 @@ var CREATE_VENDOR_MUTATION = gql21`
4474
4321
  }
4475
4322
  ${VENDOR}
4476
4323
  `;
4477
- var UPDATE_VENDOR_MUTATION = gql21`
4324
+ var UPDATE_VENDOR_MUTATION = gql20`
4478
4325
  mutation updateVendor($_id: ID!, $input: VendorInputType!) {
4479
4326
  updateVendor(_id: $_id, input: $input) {
4480
4327
  ...VendorFields
@@ -4482,12 +4329,12 @@ var UPDATE_VENDOR_MUTATION = gql21`
4482
4329
  }
4483
4330
  ${VENDOR}
4484
4331
  `;
4485
- var DELETE_VENDOR_MUTATION = gql21`
4332
+ var DELETE_VENDOR_MUTATION = gql20`
4486
4333
  mutation deleteVendor($_id: ID!) {
4487
4334
  deleteVendor(_id: $_id)
4488
4335
  }
4489
4336
  `;
4490
- var CREATE_VENDOR_INFO_MUTATION = gql21`
4337
+ var CREATE_VENDOR_INFO_MUTATION = gql20`
4491
4338
  mutation createVendorInfo($input: VendorInfoInputType!) {
4492
4339
  createVendorInfo(input: $input) {
4493
4340
  ...VendorInfoFields
@@ -4495,7 +4342,7 @@ var CREATE_VENDOR_INFO_MUTATION = gql21`
4495
4342
  }
4496
4343
  ${VENDOR_INFO}
4497
4344
  `;
4498
- var UPDATE_VENDOR_INFO_MUTATION = gql21`
4345
+ var UPDATE_VENDOR_INFO_MUTATION = gql20`
4499
4346
  mutation updateVendorInfo($_id: ID!, $input: VendorInfoInputType!) {
4500
4347
  updateVendorInfo(_id: $_id, input: $input) {
4501
4348
  ...VendorInfoFields
@@ -4503,7 +4350,7 @@ var UPDATE_VENDOR_INFO_MUTATION = gql21`
4503
4350
  }
4504
4351
  ${VENDOR_INFO}
4505
4352
  `;
4506
- var CREATE_UNREGISTERED_VENDOR_MUTATION = gql21`
4353
+ var CREATE_UNREGISTERED_VENDOR_MUTATION = gql20`
4507
4354
  mutation createUnregisteredVendor($input: UnregisteredVendorInputType!) {
4508
4355
  createUnregisteredVendor(input: $input) {
4509
4356
  ...UnregisteredVendorFields
@@ -4511,7 +4358,7 @@ var CREATE_UNREGISTERED_VENDOR_MUTATION = gql21`
4511
4358
  }
4512
4359
  ${UNREGISTERED_VENDOR}
4513
4360
  `;
4514
- var UPDATE_UNREGISTERED_VENDOR_MUTATION = gql21`
4361
+ var UPDATE_UNREGISTERED_VENDOR_MUTATION = gql20`
4515
4362
  mutation updateUnregisteredVendor(
4516
4363
  $_id: ID!
4517
4364
  $input: UnregisteredVendorInputType!
@@ -4522,7 +4369,7 @@ var UPDATE_UNREGISTERED_VENDOR_MUTATION = gql21`
4522
4369
  }
4523
4370
  ${UNREGISTERED_VENDOR}
4524
4371
  `;
4525
- var DELETE_UNREGISTERED_VENDOR_MUTATION = gql21`
4372
+ var DELETE_UNREGISTERED_VENDOR_MUTATION = gql20`
4526
4373
  mutation deleteUnregisteredVendor($_id: ID!) {
4527
4374
  deleteUnregisteredVendor(_id: $_id)
4528
4375
  }
@@ -4702,99 +4549,12 @@ var useGetUnregisteredVendor = (_id) => {
4702
4549
  return { error, loading, refetch, unregisteredVendor };
4703
4550
  };
4704
4551
 
4705
- // src/graphql/hooks/tester/hooksMutation.ts
4706
- import { useMutation as useMutation11 } from "@apollo/client";
4707
-
4708
- // src/graphql/mutations/tester.ts
4709
- import { gql as gql22 } from "@apollo/client";
4710
- var CREATE_TESTER_MUTATION = gql22`
4711
- mutation createTester($input: TesterInputType!) {
4712
- createTester(input: $input) {
4713
- ...TesterFields
4714
- }
4715
- }
4716
- ${TESTER_FIELDS_FRAGMENT}
4717
- `;
4718
- var UPDATE_TESTER_MUTATION = gql22`
4719
- mutation updateTester($_id: ID!, $input: TesterInputType!) {
4720
- updateTester(_id: $_id, input: $input) {
4721
- ...TesterFields
4722
- }
4723
- }
4724
- ${TESTER_FIELDS_FRAGMENT}
4725
- `;
4726
- var DELETE_TESTER_MUTATION = gql22`
4727
- mutation deleteTester($_id: ID!) {
4728
- deleteTester(_id: $_id)
4729
- }
4730
- `;
4731
-
4732
- // src/graphql/hooks/tester/hooksMutation.ts
4733
- var useCreateTester = () => {
4734
- const [createTester, { data, loading, error }] = useMutation11(
4735
- CREATE_TESTER_MUTATION
4736
- );
4737
- return {
4738
- createTester,
4739
- data,
4740
- error,
4741
- loading
4742
- };
4743
- };
4744
- var useUpdateTester = () => {
4745
- const [updateTester, { data, loading, error }] = useMutation11(
4746
- UPDATE_TESTER_MUTATION
4747
- );
4748
- return {
4749
- data,
4750
- error,
4751
- loading,
4752
- updateTester
4753
- };
4754
- };
4755
- var useDeleteTester = () => {
4756
- const [deleteTester, { loading, error }] = useMutation11(
4757
- DELETE_TESTER_MUTATION,
4758
- {
4759
- awaitRefetchQueries: true,
4760
- refetchQueries: [{ query: GET_TESTERS }]
4761
- }
4762
- );
4763
- return { deleteTester, error, loading };
4764
- };
4765
-
4766
- // src/graphql/hooks/tester/hooksQuery.ts
4767
- import { useQuery as useQuery6 } from "@apollo/client";
4768
- var useGetTesters = () => {
4769
- const { data, loading, error, refetch } = useQuery6(
4770
- GET_TESTERS
4771
- );
4772
- const testers = data?.testers || [];
4773
- return {
4774
- error,
4775
- loading,
4776
- refetch,
4777
- testers
4778
- };
4779
- };
4780
- var useGetTester = (_id) => {
4781
- const { data, loading, error, refetch } = useQuery6(
4782
- GET_TESTER,
4783
- {
4784
- skip: !_id,
4785
- variables: { _id }
4786
- }
4787
- );
4788
- const tester = data?.tester;
4789
- return { error, loading, refetch, tester };
4790
- };
4791
-
4792
4552
  // src/graphql/hooks/user/hooksMutation.ts
4793
- import { useMutation as useMutation12 } from "@apollo/client";
4553
+ import { useMutation as useMutation11 } from "@apollo/client";
4794
4554
 
4795
4555
  // src/graphql/mutations/user.ts
4796
- import { gql as gql23 } from "@apollo/client";
4797
- var CREATE_USER_MUTATION = gql23`
4556
+ import { gql as gql21 } from "@apollo/client";
4557
+ var CREATE_USER_MUTATION = gql21`
4798
4558
  mutation createUser($input: UserInputType!) {
4799
4559
  createUser(input: $input) {
4800
4560
  ...UserFields
@@ -4802,7 +4562,7 @@ var CREATE_USER_MUTATION = gql23`
4802
4562
  }
4803
4563
  ${USER_FIELDS_FRAGMENT}
4804
4564
  `;
4805
- var UPDATE_USER_MUTATION = gql23`
4565
+ var UPDATE_USER_MUTATION = gql21`
4806
4566
  mutation updateUser($_id: ID!, $input: UserInputType!) {
4807
4567
  updateUser(_id: $_id, input: $input) {
4808
4568
  ...UserFields
@@ -4810,12 +4570,12 @@ var UPDATE_USER_MUTATION = gql23`
4810
4570
  }
4811
4571
  ${USER_FIELDS_FRAGMENT}
4812
4572
  `;
4813
- var DELETE_USER_MUTATION = gql23`
4573
+ var DELETE_USER_MUTATION = gql21`
4814
4574
  mutation deleteUser($email: String!) {
4815
4575
  deleteUser(email: $email)
4816
4576
  }
4817
4577
  `;
4818
- var ADD_USER_FAVOURITE_RESOURCE_MUTATION = gql23`
4578
+ var ADD_USER_FAVOURITE_RESOURCE_MUTATION = gql21`
4819
4579
  mutation addUserFavouriteResource(
4820
4580
  $resourceId: ID!
4821
4581
  $resourceType: ResourceTypeEnum!
@@ -4829,7 +4589,7 @@ var ADD_USER_FAVOURITE_RESOURCE_MUTATION = gql23`
4829
4589
  }
4830
4590
  ${USER_FIELDS_FRAGMENT}
4831
4591
  `;
4832
- var REMOVE_USER_FAVOURITE_RESOURCE_MUTATION = gql23`
4592
+ var REMOVE_USER_FAVOURITE_RESOURCE_MUTATION = gql21`
4833
4593
  mutation removeUserFavouriteResource(
4834
4594
  $resourceId: ID!
4835
4595
  $resourceType: ResourceTypeEnum!
@@ -4843,7 +4603,7 @@ var REMOVE_USER_FAVOURITE_RESOURCE_MUTATION = gql23`
4843
4603
  }
4844
4604
  ${USER_FIELDS_FRAGMENT}
4845
4605
  `;
4846
- var ADD_USER_INTEREST_RESOURCE_MUTATION = gql23`
4606
+ var ADD_USER_INTEREST_RESOURCE_MUTATION = gql21`
4847
4607
  mutation addUserInterestResource($input: UserActivityInputType!) {
4848
4608
  addUserInterestResource(input: $input) {
4849
4609
  ...UserFields
@@ -4851,7 +4611,7 @@ var ADD_USER_INTEREST_RESOURCE_MUTATION = gql23`
4851
4611
  }
4852
4612
  ${USER_FIELDS_FRAGMENT}
4853
4613
  `;
4854
- var REMOVE_USER_INTEREST_RESOURCE_MUTATION = gql23`
4614
+ var REMOVE_USER_INTEREST_RESOURCE_MUTATION = gql21`
4855
4615
  mutation removeUserInterestResource($input: UserActivityInputType!) {
4856
4616
  removeUserInterestResource(input: $input) {
4857
4617
  ...UserFields
@@ -4859,7 +4619,7 @@ var REMOVE_USER_INTEREST_RESOURCE_MUTATION = gql23`
4859
4619
  }
4860
4620
  ${USER_FIELDS_FRAGMENT}
4861
4621
  `;
4862
- var ADD_USER_GOING_RESOURCE_MUTATION = gql23`
4622
+ var ADD_USER_GOING_RESOURCE_MUTATION = gql21`
4863
4623
  mutation addUserGoingResource($input: UserActivityInputType!) {
4864
4624
  addUserGoingResource(input: $input) {
4865
4625
  ...UserFields
@@ -4867,7 +4627,7 @@ var ADD_USER_GOING_RESOURCE_MUTATION = gql23`
4867
4627
  }
4868
4628
  ${USER_FIELDS_FRAGMENT}
4869
4629
  `;
4870
- var REMOVE_USER_GOING_RESOURCE_MUTATION = gql23`
4630
+ var REMOVE_USER_GOING_RESOURCE_MUTATION = gql21`
4871
4631
  mutation removeUserGoingResource($input: UserActivityInputType!) {
4872
4632
  removeUserGoingResource(input: $input) {
4873
4633
  ...UserFields
@@ -4875,7 +4635,7 @@ var REMOVE_USER_GOING_RESOURCE_MUTATION = gql23`
4875
4635
  }
4876
4636
  ${USER_FIELDS_FRAGMENT}
4877
4637
  `;
4878
- var ADD_USER_PRESENT_RESOURCE_MUTATION = gql23`
4638
+ var ADD_USER_PRESENT_RESOURCE_MUTATION = gql21`
4879
4639
  mutation addUserPresentResource($input: UserActivityInputType!) {
4880
4640
  addUserPresentResource(input: $input) {
4881
4641
  ...UserFields
@@ -4883,7 +4643,7 @@ var ADD_USER_PRESENT_RESOURCE_MUTATION = gql23`
4883
4643
  }
4884
4644
  ${USER_FIELDS_FRAGMENT}
4885
4645
  `;
4886
- var REMOVE_USER_PRESENT_RESOURCE_MUTATION = gql23`
4646
+ var REMOVE_USER_PRESENT_RESOURCE_MUTATION = gql21`
4887
4647
  mutation removeUserPresentResource($input: UserActivityInputType!) {
4888
4648
  removeUserPresentResource(input: $input) {
4889
4649
  ...UserFields
@@ -4891,7 +4651,7 @@ var REMOVE_USER_PRESENT_RESOURCE_MUTATION = gql23`
4891
4651
  }
4892
4652
  ${USER_FIELDS_FRAGMENT}
4893
4653
  `;
4894
- var SELECT_STANDARD_PACKAGE_MUTATION = gql23`
4654
+ var SELECT_STANDARD_PACKAGE_MUTATION = gql21`
4895
4655
  mutation selectStandardPackage($selectedLicence: LicencesEnumType!) {
4896
4656
  selectStandardPackage(selectedLicence: $selectedLicence) {
4897
4657
  licences {
@@ -4906,11 +4666,11 @@ var SELECT_STANDARD_PACKAGE_MUTATION = gql23`
4906
4666
 
4907
4667
  // src/graphql/hooks/user/hooksMutation.ts
4908
4668
  var useCreateUser = () => {
4909
- const [createUser, { loading, error }] = useMutation12(CREATE_USER_MUTATION);
4669
+ const [createUser, { loading, error }] = useMutation11(CREATE_USER_MUTATION);
4910
4670
  return { createUser, error, loading };
4911
4671
  };
4912
4672
  var useUpdateUser = () => {
4913
- const [updateUser, { loading, error }] = useMutation12(UPDATE_USER_MUTATION, {
4673
+ const [updateUser, { loading, error }] = useMutation11(UPDATE_USER_MUTATION, {
4914
4674
  awaitRefetchQueries: true,
4915
4675
  refetchQueries: (mutationResult) => {
4916
4676
  const userId = mutationResult?.data?.updateUser?._id;
@@ -4921,11 +4681,11 @@ var useUpdateUser = () => {
4921
4681
  return { error, loading, updateUser };
4922
4682
  };
4923
4683
  var useDeleteUser = () => {
4924
- const [deleteUser, { loading, error }] = useMutation12(DELETE_USER_MUTATION);
4684
+ const [deleteUser, { loading, error }] = useMutation11(DELETE_USER_MUTATION);
4925
4685
  return { deleteUser, error, loading };
4926
4686
  };
4927
4687
  var useAddUserFavouriteResource = () => {
4928
- const [addUserFavouriteResource, { loading, error }] = useMutation12(
4688
+ const [addUserFavouriteResource, { loading, error }] = useMutation11(
4929
4689
  ADD_USER_FAVOURITE_RESOURCE_MUTATION,
4930
4690
  {
4931
4691
  awaitRefetchQueries: true,
@@ -4935,7 +4695,7 @@ var useAddUserFavouriteResource = () => {
4935
4695
  return { addUserFavouriteResource, error, loading };
4936
4696
  };
4937
4697
  var useRemoveUserFavouriteResource = () => {
4938
- const [removeUserFavouriteResource, { loading, error }] = useMutation12(
4698
+ const [removeUserFavouriteResource, { loading, error }] = useMutation11(
4939
4699
  REMOVE_USER_FAVOURITE_RESOURCE_MUTATION,
4940
4700
  {
4941
4701
  awaitRefetchQueries: true,
@@ -4945,7 +4705,7 @@ var useRemoveUserFavouriteResource = () => {
4945
4705
  return { error, loading, removeUserFavouriteResource };
4946
4706
  };
4947
4707
  var useAddUserInterestResource = () => {
4948
- const [addUserInterestResource, { loading, error }] = useMutation12(
4708
+ const [addUserInterestResource, { loading, error }] = useMutation11(
4949
4709
  ADD_USER_INTEREST_RESOURCE_MUTATION,
4950
4710
  {
4951
4711
  awaitRefetchQueries: true,
@@ -4955,7 +4715,7 @@ var useAddUserInterestResource = () => {
4955
4715
  return { addUserInterestResource, error, loading };
4956
4716
  };
4957
4717
  var useRemoveUserInterestResource = () => {
4958
- const [removeUserInterestResource, { loading, error }] = useMutation12(
4718
+ const [removeUserInterestResource, { loading, error }] = useMutation11(
4959
4719
  REMOVE_USER_INTEREST_RESOURCE_MUTATION,
4960
4720
  {
4961
4721
  awaitRefetchQueries: true,
@@ -4965,7 +4725,7 @@ var useRemoveUserInterestResource = () => {
4965
4725
  return { error, loading, removeUserInterestResource };
4966
4726
  };
4967
4727
  var useAddUserGoingResource = () => {
4968
- const [addUserGoingResource, { loading, error }] = useMutation12(
4728
+ const [addUserGoingResource, { loading, error }] = useMutation11(
4969
4729
  ADD_USER_GOING_RESOURCE_MUTATION,
4970
4730
  {
4971
4731
  awaitRefetchQueries: true,
@@ -4975,7 +4735,7 @@ var useAddUserGoingResource = () => {
4975
4735
  return { addUserGoingResource, error, loading };
4976
4736
  };
4977
4737
  var useRemoveUserGoingResource = () => {
4978
- const [removeUserGoingResource, { loading, error }] = useMutation12(
4738
+ const [removeUserGoingResource, { loading, error }] = useMutation11(
4979
4739
  REMOVE_USER_GOING_RESOURCE_MUTATION,
4980
4740
  {
4981
4741
  awaitRefetchQueries: true,
@@ -4985,7 +4745,7 @@ var useRemoveUserGoingResource = () => {
4985
4745
  return { error, loading, removeUserGoingResource };
4986
4746
  };
4987
4747
  var useAddUserPresentResource = () => {
4988
- const [addUserPresentResource, { loading, error }] = useMutation12(
4748
+ const [addUserPresentResource, { loading, error }] = useMutation11(
4989
4749
  ADD_USER_PRESENT_RESOURCE_MUTATION,
4990
4750
  {
4991
4751
  awaitRefetchQueries: true,
@@ -4995,7 +4755,7 @@ var useAddUserPresentResource = () => {
4995
4755
  return { addUserPresentResource, error, loading };
4996
4756
  };
4997
4757
  var useRemoveUserPresentResource = () => {
4998
- const [removeUserPresentResource, { loading, error }] = useMutation12(
4758
+ const [removeUserPresentResource, { loading, error }] = useMutation11(
4999
4759
  REMOVE_USER_PRESENT_RESOURCE_MUTATION,
5000
4760
  {
5001
4761
  awaitRefetchQueries: true,
@@ -5005,7 +4765,7 @@ var useRemoveUserPresentResource = () => {
5005
4765
  return { error, loading, removeUserPresentResource };
5006
4766
  };
5007
4767
  var useSelectStandardPackage = () => {
5008
- const [selectStandardPackage, { loading, error }] = useMutation12(SELECT_STANDARD_PACKAGE_MUTATION, {
4768
+ const [selectStandardPackage, { loading, error }] = useMutation11(SELECT_STANDARD_PACKAGE_MUTATION, {
5009
4769
  awaitRefetchQueries: true,
5010
4770
  refetchQueries: (mutationResult) => {
5011
4771
  const userId = mutationResult?.data?.selectStandardPackage?.userId;
@@ -5021,9 +4781,9 @@ var useSelectStandardPackage = () => {
5021
4781
  };
5022
4782
 
5023
4783
  // src/graphql/hooks/user/hooksQuery.ts
5024
- import { useQuery as useQuery7 } from "@apollo/client";
4784
+ import { useQuery as useQuery6 } from "@apollo/client";
5025
4785
  var useGetUsers = () => {
5026
- const { loading, error, data, refetch } = useQuery7(
4786
+ const { loading, error, data, refetch } = useQuery6(
5027
4787
  GET_USERS,
5028
4788
  {
5029
4789
  fetchPolicy: "network-only"
@@ -5033,7 +4793,7 @@ var useGetUsers = () => {
5033
4793
  return { error, loading, refetch, users };
5034
4794
  };
5035
4795
  var useGetUser = (_id) => {
5036
- const { loading, error, data, refetch } = useQuery7(
4796
+ const { loading, error, data, refetch } = useQuery6(
5037
4797
  GET_USER,
5038
4798
  {
5039
4799
  variables: { _id }
@@ -5043,28 +4803,28 @@ var useGetUser = (_id) => {
5043
4803
  return { error, loading, refetch, user };
5044
4804
  };
5045
4805
  var useGetUserEvents = () => {
5046
- const { loading, error, data, refetch } = useQuery7(GET_USER_EVENTS, {
4806
+ const { loading, error, data, refetch } = useQuery6(GET_USER_EVENTS, {
5047
4807
  fetchPolicy: "network-only"
5048
4808
  });
5049
4809
  const userEvents = data?.userEvents || [];
5050
4810
  return { error, loading, refetch, userEvents };
5051
4811
  };
5052
4812
  var useGetUserVendors = () => {
5053
- const { loading, error, data, refetch } = useQuery7(GET_USER_VENDORS, {
4813
+ const { loading, error, data, refetch } = useQuery6(GET_USER_VENDORS, {
5054
4814
  fetchPolicy: "network-only"
5055
4815
  });
5056
4816
  const userVendors = data?.userVendors || [];
5057
4817
  return { error, loading, refetch, userVendors };
5058
4818
  };
5059
4819
  var useGetUserPartners = () => {
5060
- const { loading, error, data, refetch } = useQuery7(GET_USER_PARTNERS, {
4820
+ const { loading, error, data, refetch } = useQuery6(GET_USER_PARTNERS, {
5061
4821
  fetchPolicy: "network-only"
5062
4822
  });
5063
4823
  const userPartners = data?.userPartners || [];
5064
4824
  return { error, loading, refetch, userPartners };
5065
4825
  };
5066
4826
  var useGetUserActivities = () => {
5067
- const { loading, error, data, refetch } = useQuery7(GET_USER_ACTIVITIES, {
4827
+ const { loading, error, data, refetch } = useQuery6(GET_USER_ACTIVITIES, {
5068
4828
  fetchPolicy: "network-only"
5069
4829
  });
5070
4830
  const userActivities = {
@@ -5086,14 +4846,14 @@ var useGetUserActivities = () => {
5086
4846
  };
5087
4847
 
5088
4848
  // src/graphql/hooks/ad/hooksMutation.ts
5089
- import { useMutation as useMutation13 } from "@apollo/client";
4849
+ import { useMutation as useMutation12 } from "@apollo/client";
5090
4850
 
5091
4851
  // src/graphql/mutations/ad.ts
5092
- import { gql as gql25 } from "@apollo/client";
4852
+ import { gql as gql23 } from "@apollo/client";
5093
4853
 
5094
4854
  // src/graphql/queries/ad.ts
5095
- import { gql as gql24 } from "@apollo/client";
5096
- var AD_FIELDS_FRAGMENT = gql24`
4855
+ import { gql as gql22 } from "@apollo/client";
4856
+ var AD_FIELDS_FRAGMENT = gql22`
5097
4857
  fragment AdFields on AdType {
5098
4858
  _id
5099
4859
  active
@@ -5121,7 +4881,7 @@ var AD_FIELDS_FRAGMENT = gql24`
5121
4881
  }
5122
4882
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
5123
4883
  `;
5124
- var GET_ADS = gql24`
4884
+ var GET_ADS = gql22`
5125
4885
  query getAds {
5126
4886
  ads {
5127
4887
  ...AdFields
@@ -5129,7 +4889,7 @@ var GET_ADS = gql24`
5129
4889
  }
5130
4890
  ${AD_FIELDS_FRAGMENT}
5131
4891
  `;
5132
- var GET_AD = gql24`
4892
+ var GET_AD = gql22`
5133
4893
  query getAd($_id: ID!) {
5134
4894
  ad(_id: $_id) {
5135
4895
  ...AdFields
@@ -5137,7 +4897,7 @@ var GET_AD = gql24`
5137
4897
  }
5138
4898
  ${AD_FIELDS_FRAGMENT}
5139
4899
  `;
5140
- var GET_ADS_BY_REGION = gql24`
4900
+ var GET_ADS_BY_REGION = gql22`
5141
4901
  query getAdsByRegion($region: String!, $status: AdStatusTypeEnum) {
5142
4902
  adsByRegion(region: $region, status: $status) {
5143
4903
  ...AdFields
@@ -5147,7 +4907,7 @@ var GET_ADS_BY_REGION = gql24`
5147
4907
  `;
5148
4908
 
5149
4909
  // src/graphql/mutations/ad.ts
5150
- var CREATE_AD_MUTATION = gql25`
4910
+ var CREATE_AD_MUTATION = gql23`
5151
4911
  mutation createAd($input: AdInputType!) {
5152
4912
  createAd(input: $input) {
5153
4913
  ...AdFields
@@ -5155,7 +4915,7 @@ var CREATE_AD_MUTATION = gql25`
5155
4915
  }
5156
4916
  ${AD_FIELDS_FRAGMENT}
5157
4917
  `;
5158
- var UPDATE_AD_MUTATION = gql25`
4918
+ var UPDATE_AD_MUTATION = gql23`
5159
4919
  mutation updateAd($_id: ID!, $input: AdInputType!) {
5160
4920
  updateAd(_id: $_id, input: $input) {
5161
4921
  ...AdFields
@@ -5163,7 +4923,7 @@ var UPDATE_AD_MUTATION = gql25`
5163
4923
  }
5164
4924
  ${AD_FIELDS_FRAGMENT}
5165
4925
  `;
5166
- var DELETE_AD_MUTATION = gql25`
4926
+ var DELETE_AD_MUTATION = gql23`
5167
4927
  mutation deleteAd($_id: ID!) {
5168
4928
  deleteAd(_id: $_id)
5169
4929
  }
@@ -5171,7 +4931,7 @@ var DELETE_AD_MUTATION = gql25`
5171
4931
 
5172
4932
  // src/graphql/hooks/ad/hooksMutation.ts
5173
4933
  var useCreateAd = () => {
5174
- const [createAd, { loading, error }] = useMutation13(CREATE_AD_MUTATION, {
4934
+ const [createAd, { loading, error }] = useMutation12(CREATE_AD_MUTATION, {
5175
4935
  awaitRefetchQueries: true,
5176
4936
  refetchQueries: [{ query: GET_ADS }]
5177
4937
  });
@@ -5182,7 +4942,7 @@ var useCreateAd = () => {
5182
4942
  };
5183
4943
  };
5184
4944
  var useUpdateAd = () => {
5185
- const [updateAd, { loading, error }] = useMutation13(UPDATE_AD_MUTATION, {
4945
+ const [updateAd, { loading, error }] = useMutation12(UPDATE_AD_MUTATION, {
5186
4946
  awaitRefetchQueries: true,
5187
4947
  refetchQueries: [{ query: GET_ADS }]
5188
4948
  });
@@ -5193,7 +4953,7 @@ var useUpdateAd = () => {
5193
4953
  };
5194
4954
  };
5195
4955
  var useDeleteAd = () => {
5196
- const [deleteAd, { loading, error }] = useMutation13(DELETE_AD_MUTATION, {
4956
+ const [deleteAd, { loading, error }] = useMutation12(DELETE_AD_MUTATION, {
5197
4957
  awaitRefetchQueries: true,
5198
4958
  refetchQueries: [{ query: GET_ADS }]
5199
4959
  });
@@ -5205,9 +4965,9 @@ var useDeleteAd = () => {
5205
4965
  };
5206
4966
 
5207
4967
  // src/graphql/hooks/ad/hooksQuery.ts
5208
- import { useQuery as useQuery8 } from "@apollo/client";
4968
+ import { useQuery as useQuery7 } from "@apollo/client";
5209
4969
  var useGetAds = () => {
5210
- const { data, loading, error, refetch } = useQuery8(
4970
+ const { data, loading, error, refetch } = useQuery7(
5211
4971
  GET_ADS,
5212
4972
  {
5213
4973
  fetchPolicy: "no-cache"
@@ -5221,7 +4981,7 @@ var useGetAds = () => {
5221
4981
  };
5222
4982
  };
5223
4983
  var useGetAd = (_id) => {
5224
- const { data, loading, error, refetch } = useQuery8(GET_AD, {
4984
+ const { data, loading, error, refetch } = useQuery7(GET_AD, {
5225
4985
  fetchPolicy: "no-cache",
5226
4986
  skip: !_id,
5227
4987
  variables: { _id }
@@ -5234,7 +4994,7 @@ var useGetAd = (_id) => {
5234
4994
  };
5235
4995
  };
5236
4996
  var useGetAdsByRegion = (region, status) => {
5237
- const { data, loading, error, refetch } = useQuery8(GET_ADS_BY_REGION, {
4997
+ const { data, loading, error, refetch } = useQuery7(GET_ADS_BY_REGION, {
5238
4998
  fetchPolicy: "no-cache",
5239
4999
  skip: !region,
5240
5000
  variables: { region, status }
@@ -5248,11 +5008,11 @@ var useGetAdsByRegion = (region, status) => {
5248
5008
  };
5249
5009
 
5250
5010
  // src/graphql/hooks/resourceActivities/hooksMutation.ts
5251
- import { useMutation as useMutation14 } from "@apollo/client";
5011
+ import { useMutation as useMutation13 } from "@apollo/client";
5252
5012
 
5253
5013
  // src/graphql/mutations/resourceActivities.ts
5254
- import { gql as gql26 } from "@apollo/client";
5255
- var CREATE_RESOURCE_ACTIVITY_MUTATION = gql26`
5014
+ import { gql as gql24 } from "@apollo/client";
5015
+ var CREATE_RESOURCE_ACTIVITY_MUTATION = gql24`
5256
5016
  mutation createResourceActivity($input: ResourceActivityInputType!) {
5257
5017
  createResourceActivity(input: $input)
5258
5018
  }
@@ -5260,18 +5020,18 @@ var CREATE_RESOURCE_ACTIVITY_MUTATION = gql26`
5260
5020
 
5261
5021
  // src/graphql/hooks/resourceActivities/hooksMutation.ts
5262
5022
  var useCreateResourceActivity = () => {
5263
- const [createResourceActivity, { loading, error }] = useMutation14(
5023
+ const [createResourceActivity, { loading, error }] = useMutation13(
5264
5024
  CREATE_RESOURCE_ACTIVITY_MUTATION
5265
5025
  );
5266
5026
  return { createResourceActivity, error, loading };
5267
5027
  };
5268
5028
 
5269
5029
  // src/graphql/hooks/resourceActivities/hooksQuery.ts
5270
- import { useQuery as useQuery9 } from "@apollo/client";
5030
+ import { useQuery as useQuery8 } from "@apollo/client";
5271
5031
 
5272
5032
  // src/graphql/queries/resourceActivities.ts
5273
- import { gql as gql27 } from "@apollo/client";
5274
- var RESOURCE_ACTIVITY_FIELDS_FRAGMENT = gql27`
5033
+ import { gql as gql25 } from "@apollo/client";
5034
+ var RESOURCE_ACTIVITY_FIELDS_FRAGMENT = gql25`
5275
5035
  fragment ResourceActivityFields on ResourceActivityType {
5276
5036
  resourceId
5277
5037
  resourceType
@@ -5290,7 +5050,7 @@ var RESOURCE_ACTIVITY_FIELDS_FRAGMENT = gql27`
5290
5050
  }
5291
5051
  ${LOCATION_GEO_FIELDS_FRAGMENT}
5292
5052
  `;
5293
- var GET_RESOURCE_ACTIVITY = gql27`
5053
+ var GET_RESOURCE_ACTIVITY = gql25`
5294
5054
  query getResourceActivity(
5295
5055
  $resourceType: ResourceTypeEnum!
5296
5056
  $resourceId: ID!
@@ -5304,7 +5064,7 @@ var GET_RESOURCE_ACTIVITY = gql27`
5304
5064
 
5305
5065
  // src/graphql/hooks/resourceActivities/hooksQuery.ts
5306
5066
  var useGetResourceActivity = (resourceId, resourceType) => {
5307
- const { data, loading, error, refetch } = useQuery9(GET_RESOURCE_ACTIVITY, {
5067
+ const { data, loading, error, refetch } = useQuery8(GET_RESOURCE_ACTIVITY, {
5308
5068
  fetchPolicy: "network-only",
5309
5069
  variables: { resourceId, resourceType }
5310
5070
  });
@@ -5317,11 +5077,11 @@ var useGetResourceActivity = (resourceId, resourceType) => {
5317
5077
  };
5318
5078
 
5319
5079
  // src/graphql/hooks/stripe/hooksMutation.ts
5320
- import { useMutation as useMutation15 } from "@apollo/client";
5080
+ import { useMutation as useMutation14 } from "@apollo/client";
5321
5081
 
5322
5082
  // src/graphql/mutations/stripe.ts
5323
- import { gql as gql28 } from "@apollo/client";
5324
- var CREATE_CHECKOUT_SESSION_MUTATION = gql28`
5083
+ import { gql as gql26 } from "@apollo/client";
5084
+ var CREATE_CHECKOUT_SESSION_MUTATION = gql26`
5325
5085
  mutation createCheckoutSession(
5326
5086
  $planId: LicencesEnumType!
5327
5087
  $billingPeriod: BillingPeriodEnumType
@@ -5332,12 +5092,12 @@ var CREATE_CHECKOUT_SESSION_MUTATION = gql28`
5332
5092
  }
5333
5093
  }
5334
5094
  `;
5335
- var CANCEL_SUBSCRIPTION_MUTATION = gql28`
5095
+ var CANCEL_SUBSCRIPTION_MUTATION = gql26`
5336
5096
  mutation cancelSubscription {
5337
5097
  cancelSubscription
5338
5098
  }
5339
5099
  `;
5340
- var UPDATE_SUBSCRIPTION_PLAN_MUTATION = gql28`
5100
+ var UPDATE_SUBSCRIPTION_PLAN_MUTATION = gql26`
5341
5101
  mutation updateSubscriptionPlan(
5342
5102
  $newPlanId: LicencesEnumType!
5343
5103
  $billingPeriod: BillingPeriodEnumType
@@ -5353,14 +5113,14 @@ var UPDATE_SUBSCRIPTION_PLAN_MUTATION = gql28`
5353
5113
  }
5354
5114
  }
5355
5115
  `;
5356
- var CREATE_CUSTOMER_PORTAL = gql28`
5116
+ var CREATE_CUSTOMER_PORTAL = gql26`
5357
5117
  mutation createCustomerPortal($returnUrl: String) {
5358
5118
  createCustomerPortal(returnUrl: $returnUrl) {
5359
5119
  portalUrl
5360
5120
  }
5361
5121
  }
5362
5122
  `;
5363
- var SELECT_PACKAGE_MUTATION = gql28`
5123
+ var SELECT_PACKAGE_MUTATION = gql26`
5364
5124
  mutation selectPackage(
5365
5125
  $billingPeriod: BillingPeriodEnumType
5366
5126
  $selectedLicence: LicencesEnumType!
@@ -5384,31 +5144,31 @@ var SELECT_PACKAGE_MUTATION = gql28`
5384
5144
 
5385
5145
  // src/graphql/hooks/stripe/hooksMutation.ts
5386
5146
  var useCreateCheckoutSession = () => {
5387
- const [createCheckoutSession, { loading, error }] = useMutation15(
5147
+ const [createCheckoutSession, { loading, error }] = useMutation14(
5388
5148
  CREATE_CHECKOUT_SESSION_MUTATION
5389
5149
  );
5390
5150
  return { createCheckoutSession, error, loading };
5391
5151
  };
5392
5152
  var useCancelSubscription = () => {
5393
- const [cancelSubscription, { loading, error }] = useMutation15(
5153
+ const [cancelSubscription, { loading, error }] = useMutation14(
5394
5154
  CANCEL_SUBSCRIPTION_MUTATION
5395
5155
  );
5396
5156
  return { cancelSubscription, error, loading };
5397
5157
  };
5398
5158
  var useUpdateSubscriptionPlan = () => {
5399
- const [updateSubscriptionPlan, { loading, error }] = useMutation15(
5159
+ const [updateSubscriptionPlan, { loading, error }] = useMutation14(
5400
5160
  UPDATE_SUBSCRIPTION_PLAN_MUTATION
5401
5161
  );
5402
5162
  return { error, loading, updateSubscriptionPlan };
5403
5163
  };
5404
5164
  var useCreateCustomerPortal = () => {
5405
- const [createCustomerPortal, { loading, error }] = useMutation15(
5165
+ const [createCustomerPortal, { loading, error }] = useMutation14(
5406
5166
  CREATE_CUSTOMER_PORTAL
5407
5167
  );
5408
5168
  return { createCustomerPortal, error, loading };
5409
5169
  };
5410
5170
  var useSelectPackage = () => {
5411
- const [selectPackage, { loading, error }] = useMutation15(SELECT_PACKAGE_MUTATION, {
5171
+ const [selectPackage, { loading, error }] = useMutation14(SELECT_PACKAGE_MUTATION, {
5412
5172
  awaitRefetchQueries: true,
5413
5173
  refetchQueries: (mutationResult) => {
5414
5174
  const userId = mutationResult?.data?.selectPackage?.userId;
@@ -5424,11 +5184,11 @@ var useSelectPackage = () => {
5424
5184
  };
5425
5185
 
5426
5186
  // src/graphql/hooks/stripe/hooksQuery.ts
5427
- import { useQuery as useQuery10 } from "@apollo/client";
5187
+ import { useQuery as useQuery9 } from "@apollo/client";
5428
5188
 
5429
5189
  // src/graphql/queries/stripe.ts
5430
- import { gql as gql29 } from "@apollo/client";
5431
- var GET_SUBSCRIPTION_STATUS = gql29`
5190
+ import { gql as gql27 } from "@apollo/client";
5191
+ var GET_SUBSCRIPTION_STATUS = gql27`
5432
5192
  query getSubscriptionStatus {
5433
5193
  getSubscriptionStatus {
5434
5194
  subscriptionId
@@ -5438,7 +5198,7 @@ var GET_SUBSCRIPTION_STATUS = gql29`
5438
5198
  }
5439
5199
  }
5440
5200
  `;
5441
- var GET_SUBSCRIPTION_PLANS = gql29`
5201
+ var GET_SUBSCRIPTION_PLANS = gql27`
5442
5202
  query getSubscriptionPlans {
5443
5203
  getSubscriptionPlans {
5444
5204
  plans {
@@ -5469,7 +5229,7 @@ var GET_SUBSCRIPTION_PLANS = gql29`
5469
5229
 
5470
5230
  // src/graphql/hooks/stripe/hooksQuery.ts
5471
5231
  var useGetSubscriptionStatus = () => {
5472
- const { data, loading, error, refetch } = useQuery10(GET_SUBSCRIPTION_STATUS);
5232
+ const { data, loading, error, refetch } = useQuery9(GET_SUBSCRIPTION_STATUS);
5473
5233
  return {
5474
5234
  data: data?.getSubscriptionStatus,
5475
5235
  error,
@@ -5478,7 +5238,7 @@ var useGetSubscriptionStatus = () => {
5478
5238
  };
5479
5239
  };
5480
5240
  var useGetSubscriptionPlans = () => {
5481
- const { data, loading, error, refetch } = useQuery10(GET_SUBSCRIPTION_PLANS);
5241
+ const { data, loading, error, refetch } = useQuery9(GET_SUBSCRIPTION_PLANS);
5482
5242
  return {
5483
5243
  data: data?.getSubscriptionPlans,
5484
5244
  error,
@@ -5488,11 +5248,11 @@ var useGetSubscriptionPlans = () => {
5488
5248
  };
5489
5249
 
5490
5250
  // src/graphql/hooks/partner/hooksMutation.ts
5491
- import { useMutation as useMutation16 } from "@apollo/client";
5251
+ import { useMutation as useMutation15 } from "@apollo/client";
5492
5252
 
5493
5253
  // src/graphql/mutations/partner.ts
5494
- import { gql as gql30 } from "@apollo/client";
5495
- var CREATE_PARTNER_MUTATION = gql30`
5254
+ import { gql as gql28 } from "@apollo/client";
5255
+ var CREATE_PARTNER_MUTATION = gql28`
5496
5256
  mutation createPartner($input: PartnerInputType!) {
5497
5257
  createPartner(input: $input) {
5498
5258
  ...PartnerFields
@@ -5500,7 +5260,7 @@ var CREATE_PARTNER_MUTATION = gql30`
5500
5260
  }
5501
5261
  ${PARTNER}
5502
5262
  `;
5503
- var UPDATE_PARTNER_MUTATION = gql30`
5263
+ var UPDATE_PARTNER_MUTATION = gql28`
5504
5264
  mutation updatePartner($_id: ID!, $input: PartnerInputType!) {
5505
5265
  updatePartner(_id: $_id, input: $input) {
5506
5266
  ...PartnerFields
@@ -5508,7 +5268,7 @@ var UPDATE_PARTNER_MUTATION = gql30`
5508
5268
  }
5509
5269
  ${PARTNER}
5510
5270
  `;
5511
- var DELETE_PARTNER_MUTATION = gql30`
5271
+ var DELETE_PARTNER_MUTATION = gql28`
5512
5272
  mutation deletePartner($_id: ID!) {
5513
5273
  deletePartner(_id: $_id)
5514
5274
  }
@@ -5516,7 +5276,7 @@ var DELETE_PARTNER_MUTATION = gql30`
5516
5276
 
5517
5277
  // src/graphql/hooks/partner/hooksMutation.ts
5518
5278
  var useCreatePartner = () => {
5519
- const [createPartner, { loading, error }] = useMutation16(
5279
+ const [createPartner, { loading, error }] = useMutation15(
5520
5280
  CREATE_PARTNER_MUTATION,
5521
5281
  {
5522
5282
  awaitRefetchQueries: true,
@@ -5526,7 +5286,7 @@ var useCreatePartner = () => {
5526
5286
  return { createPartner, error, loading };
5527
5287
  };
5528
5288
  var useUpdatePartner = () => {
5529
- const [updatePartner, { loading, error }] = useMutation16(
5289
+ const [updatePartner, { loading, error }] = useMutation15(
5530
5290
  UPDATE_PARTNER_MUTATION,
5531
5291
  {
5532
5292
  awaitRefetchQueries: true,
@@ -5536,7 +5296,7 @@ var useUpdatePartner = () => {
5536
5296
  return { error, loading, updatePartner };
5537
5297
  };
5538
5298
  var useDeletePartner = () => {
5539
- const [deletePartner, { loading, error }] = useMutation16(
5299
+ const [deletePartner, { loading, error }] = useMutation15(
5540
5300
  DELETE_PARTNER_MUTATION,
5541
5301
  {
5542
5302
  awaitRefetchQueries: true,
@@ -5547,9 +5307,9 @@ var useDeletePartner = () => {
5547
5307
  };
5548
5308
 
5549
5309
  // src/graphql/hooks/partner/hooksQuery.ts
5550
- import { useQuery as useQuery11 } from "@apollo/client";
5310
+ import { useQuery as useQuery10 } from "@apollo/client";
5551
5311
  var useGetPartners = () => {
5552
- const { loading, error, data, refetch } = useQuery11(GET_PARTNERS, {
5312
+ const { loading, error, data, refetch } = useQuery10(GET_PARTNERS, {
5553
5313
  fetchPolicy: "network-only"
5554
5314
  });
5555
5315
  const partners = data?.partners || [];
@@ -5561,7 +5321,7 @@ var useGetPartners = () => {
5561
5321
  };
5562
5322
  };
5563
5323
  var useGetPartner = (_id) => {
5564
- const { loading, error, data, refetch } = useQuery11(
5324
+ const { loading, error, data, refetch } = useQuery10(
5565
5325
  GET_PARTNER,
5566
5326
  {
5567
5327
  fetchPolicy: "network-only",
@@ -5573,7 +5333,7 @@ var useGetPartner = (_id) => {
5573
5333
  return { error, loading, partner, refetch };
5574
5334
  };
5575
5335
  var useGetPartnersByRegion = (region) => {
5576
- const { loading, error, data, refetch } = useQuery11(GET_PARTNERS_BY_REGION, {
5336
+ const { loading, error, data, refetch } = useQuery10(GET_PARTNERS_BY_REGION, {
5577
5337
  fetchPolicy: "no-cache",
5578
5338
  skip: !region,
5579
5339
  variables: { region }
@@ -5582,7 +5342,7 @@ var useGetPartnersByRegion = (region) => {
5582
5342
  return { error, loading, partnersByRegion, refetch };
5583
5343
  };
5584
5344
  var useSearchPartners = (search, region) => {
5585
- const { loading, error, data, refetch } = useQuery11(SEARCH_PARTNERS, {
5345
+ const { loading, error, data, refetch } = useQuery10(SEARCH_PARTNERS, {
5586
5346
  fetchPolicy: "network-only",
5587
5347
  skip: search.length < 3,
5588
5348
  variables: { region, search }
@@ -5592,14 +5352,14 @@ var useSearchPartners = (search, region) => {
5592
5352
  };
5593
5353
 
5594
5354
  // src/graphql/hooks/post/hooksMutation.ts
5595
- import { useMutation as useMutation17 } from "@apollo/client";
5355
+ import { useMutation as useMutation16 } from "@apollo/client";
5596
5356
 
5597
5357
  // src/graphql/mutations/post.ts
5598
- import { gql as gql32 } from "@apollo/client";
5358
+ import { gql as gql30 } from "@apollo/client";
5599
5359
 
5600
5360
  // src/graphql/queries/post.ts
5601
- import { gql as gql31 } from "@apollo/client";
5602
- var POST_CONTENT_DATA_FIELDS_FRAGMENT = gql31`
5361
+ import { gql as gql29 } from "@apollo/client";
5362
+ var POST_CONTENT_DATA_FIELDS_FRAGMENT = gql29`
5603
5363
  fragment PostContentDataFields on PostContentData {
5604
5364
  textarea {
5605
5365
  title
@@ -5621,7 +5381,7 @@ var POST_CONTENT_DATA_FIELDS_FRAGMENT = gql31`
5621
5381
  }
5622
5382
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
5623
5383
  `;
5624
- var POST_CONTENT_FIELDS_FRAGMENT = gql31`
5384
+ var POST_CONTENT_FIELDS_FRAGMENT = gql29`
5625
5385
  fragment PostContentFields on PostContentType {
5626
5386
  contentData {
5627
5387
  ...PostContentDataFields
@@ -5631,7 +5391,7 @@ var POST_CONTENT_FIELDS_FRAGMENT = gql31`
5631
5391
  }
5632
5392
  ${POST_CONTENT_DATA_FIELDS_FRAGMENT}
5633
5393
  `;
5634
- var POST_FIELDS_FRAGMENT = gql31`
5394
+ var POST_FIELDS_FRAGMENT = gql29`
5635
5395
  fragment PostFields on PostType {
5636
5396
  _id
5637
5397
  active
@@ -5656,7 +5416,7 @@ var POST_FIELDS_FRAGMENT = gql31`
5656
5416
  ${POST_CONTENT_FIELDS_FRAGMENT}
5657
5417
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
5658
5418
  `;
5659
- var GET_POSTS = gql31`
5419
+ var GET_POSTS = gql29`
5660
5420
  query getPosts {
5661
5421
  posts {
5662
5422
  ...PostFields
@@ -5664,7 +5424,7 @@ var GET_POSTS = gql31`
5664
5424
  }
5665
5425
  ${POST_FIELDS_FRAGMENT}
5666
5426
  `;
5667
- var GET_POST = gql31`
5427
+ var GET_POST = gql29`
5668
5428
  query getPost($_id: ID!) {
5669
5429
  post(_id: $_id) {
5670
5430
  ...PostFields
@@ -5672,7 +5432,7 @@ var GET_POST = gql31`
5672
5432
  }
5673
5433
  ${POST_FIELDS_FRAGMENT}
5674
5434
  `;
5675
- var GET_POSTS_BY_TYPE = gql31`
5435
+ var GET_POSTS_BY_TYPE = gql29`
5676
5436
  query getPostsByType($postType: PostTypeEnum!) {
5677
5437
  postsByType(postType: $postType) {
5678
5438
  ...PostFields
@@ -5682,7 +5442,7 @@ var GET_POSTS_BY_TYPE = gql31`
5682
5442
  `;
5683
5443
 
5684
5444
  // src/graphql/mutations/post.ts
5685
- var CREATE_POST_MUTATION = gql32`
5445
+ var CREATE_POST_MUTATION = gql30`
5686
5446
  mutation createPost($input: PostInputType!) {
5687
5447
  createPost(input: $input) {
5688
5448
  ...PostFields
@@ -5690,7 +5450,7 @@ var CREATE_POST_MUTATION = gql32`
5690
5450
  }
5691
5451
  ${POST_FIELDS_FRAGMENT}
5692
5452
  `;
5693
- var UPDATE_POST_MUTATION = gql32`
5453
+ var UPDATE_POST_MUTATION = gql30`
5694
5454
  mutation updatePost($_id: ID!, $input: PostInputType!) {
5695
5455
  updatePost(_id: $_id, input: $input) {
5696
5456
  ...PostFields
@@ -5698,7 +5458,7 @@ var UPDATE_POST_MUTATION = gql32`
5698
5458
  }
5699
5459
  ${POST_FIELDS_FRAGMENT}
5700
5460
  `;
5701
- var DELETE_POST_MUTATION = gql32`
5461
+ var DELETE_POST_MUTATION = gql30`
5702
5462
  mutation deletePost($_id: ID!) {
5703
5463
  deletePost(_id: $_id)
5704
5464
  }
@@ -5706,21 +5466,21 @@ var DELETE_POST_MUTATION = gql32`
5706
5466
 
5707
5467
  // src/graphql/hooks/post/hooksMutation.ts
5708
5468
  var useCreatePost = () => {
5709
- const [createPost, { loading, error }] = useMutation17(CREATE_POST_MUTATION, {
5469
+ const [createPost, { loading, error }] = useMutation16(CREATE_POST_MUTATION, {
5710
5470
  awaitRefetchQueries: true,
5711
5471
  refetchQueries: [{ query: GET_POSTS }]
5712
5472
  });
5713
5473
  return { createPost, error, loading };
5714
5474
  };
5715
5475
  var useUpdatePost = () => {
5716
- const [updatePost, { loading, error }] = useMutation17(UPDATE_POST_MUTATION, {
5476
+ const [updatePost, { loading, error }] = useMutation16(UPDATE_POST_MUTATION, {
5717
5477
  awaitRefetchQueries: true,
5718
5478
  refetchQueries: [{ query: GET_POSTS }]
5719
5479
  });
5720
5480
  return { error, loading, updatePost };
5721
5481
  };
5722
5482
  var useDeletePost = () => {
5723
- const [deletePost, { loading, error }] = useMutation17(DELETE_POST_MUTATION, {
5483
+ const [deletePost, { loading, error }] = useMutation16(DELETE_POST_MUTATION, {
5724
5484
  awaitRefetchQueries: true,
5725
5485
  refetchQueries: [{ query: GET_POSTS }]
5726
5486
  });
@@ -5728,15 +5488,15 @@ var useDeletePost = () => {
5728
5488
  };
5729
5489
 
5730
5490
  // src/graphql/hooks/post/hooksQuery.ts
5731
- import { useQuery as useQuery12 } from "@apollo/client";
5491
+ import { useQuery as useQuery11 } from "@apollo/client";
5732
5492
  var useGetPosts = () => {
5733
- const { data, loading, error, refetch } = useQuery12(GET_POSTS, {
5493
+ const { data, loading, error, refetch } = useQuery11(GET_POSTS, {
5734
5494
  fetchPolicy: "network-only"
5735
5495
  });
5736
5496
  return { error, loading, posts: data?.posts || [], refetch };
5737
5497
  };
5738
5498
  var useGetPost = (_id) => {
5739
- const { data, loading, error, refetch } = useQuery12(GET_POST, {
5499
+ const { data, loading, error, refetch } = useQuery11(GET_POST, {
5740
5500
  fetchPolicy: "network-only",
5741
5501
  skip: !_id,
5742
5502
  variables: { _id }
@@ -5744,7 +5504,7 @@ var useGetPost = (_id) => {
5744
5504
  return { error, loading, post: data?.post, refetch };
5745
5505
  };
5746
5506
  var useGetPostsByType = (postType) => {
5747
- const { data, loading, error, refetch } = useQuery12(GET_POSTS_BY_TYPE, {
5507
+ const { data, loading, error, refetch } = useQuery11(GET_POSTS_BY_TYPE, {
5748
5508
  fetchPolicy: "network-only",
5749
5509
  skip: !postType,
5750
5510
  variables: { postType }
@@ -5753,16 +5513,16 @@ var useGetPostsByType = (postType) => {
5753
5513
  };
5754
5514
 
5755
5515
  // src/graphql/hooks/appSettings/hooksMutation.ts
5756
- import { useMutation as useMutation18 } from "@apollo/client";
5516
+ import { useMutation as useMutation17 } from "@apollo/client";
5757
5517
 
5758
5518
  // src/graphql/mutations/appSettings.ts
5759
- import { gql as gql33 } from "@apollo/client";
5760
- var UPDATE_APP_SETTINGS_MUTATION = gql33`
5519
+ import { gql as gql31 } from "@apollo/client";
5520
+ var UPDATE_APP_SETTINGS_MUTATION = gql31`
5761
5521
  mutation updateAppSettings($input: AppSettingsInputType!) {
5762
5522
  updateAppSettings(input: $input)
5763
5523
  }
5764
5524
  `;
5765
- var CRAWL_GOOGLE_MARKETS_MUTATION = gql33`
5525
+ var CRAWL_GOOGLE_MARKETS_MUTATION = gql31`
5766
5526
  mutation crawlGoogleMarkets {
5767
5527
  crawlGoogleMarkets {
5768
5528
  message
@@ -5771,8 +5531,8 @@ var CRAWL_GOOGLE_MARKETS_MUTATION = gql33`
5771
5531
  `;
5772
5532
 
5773
5533
  // src/graphql/queries/appSettings.ts
5774
- import { gql as gql34 } from "@apollo/client";
5775
- var APP_SETTINGS_FIELDS_FRAGMENT = gql34`
5534
+ import { gql as gql32 } from "@apollo/client";
5535
+ var APP_SETTINGS_FIELDS_FRAGMENT = gql32`
5776
5536
  fragment AppSettingsFields on AppSettingsType {
5777
5537
  _id
5778
5538
  appVersion
@@ -5782,7 +5542,7 @@ var APP_SETTINGS_FIELDS_FRAGMENT = gql34`
5782
5542
  updatedAt
5783
5543
  }
5784
5544
  `;
5785
- var GET_APP_SETTINGS = gql34`
5545
+ var GET_APP_SETTINGS = gql32`
5786
5546
  query getAppSettings {
5787
5547
  appSettings {
5788
5548
  ...AppSettingsFields
@@ -5793,7 +5553,7 @@ var GET_APP_SETTINGS = gql34`
5793
5553
 
5794
5554
  // src/graphql/hooks/appSettings/hooksMutation.ts
5795
5555
  var useUpdateAppSettings = () => {
5796
- const [updateAppSettings, { loading, error }] = useMutation18(
5556
+ const [updateAppSettings, { loading, error }] = useMutation17(
5797
5557
  UPDATE_APP_SETTINGS_MUTATION,
5798
5558
  {
5799
5559
  awaitRefetchQueries: true,
@@ -5803,14 +5563,14 @@ var useUpdateAppSettings = () => {
5803
5563
  return { error, loading, updateAppSettings };
5804
5564
  };
5805
5565
  var useCrawlGoogleMarkets = () => {
5806
- const [crawlGoogleMarkets, { loading, error }] = useMutation18(CRAWL_GOOGLE_MARKETS_MUTATION);
5566
+ const [crawlGoogleMarkets, { loading, error }] = useMutation17(CRAWL_GOOGLE_MARKETS_MUTATION);
5807
5567
  return { crawlGoogleMarkets, error, loading };
5808
5568
  };
5809
5569
 
5810
5570
  // src/graphql/hooks/appSettings/hooksQuery.ts
5811
- import { useQuery as useQuery13 } from "@apollo/client";
5571
+ import { useQuery as useQuery12 } from "@apollo/client";
5812
5572
  var useGetAppSettings = () => {
5813
- const { loading, error, data, refetch } = useQuery13(GET_APP_SETTINGS, {
5573
+ const { loading, error, data, refetch } = useQuery12(GET_APP_SETTINGS, {
5814
5574
  fetchPolicy: "network-only"
5815
5575
  });
5816
5576
  const appSettings = data?.appSettings || null;
@@ -6394,128 +6154,8 @@ var validateVerificationTokenSchema = yup5.object().shape({
6394
6154
  verificationToken: yup5.string().required("Verification code is required").matches(/^\d{6}$/, "Verification code must be exactly 6 digits")
6395
6155
  });
6396
6156
 
6397
- // src/yupSchema/tester.ts
6398
- import * as yup6 from "yup";
6399
-
6400
- // src/types/tester.ts
6401
- var OrganizedMarketCount = /* @__PURE__ */ ((OrganizedMarketCount2) => {
6402
- OrganizedMarketCount2["ONE"] = "One";
6403
- OrganizedMarketCount2["TWO_TO_THREE"] = "Two_to_Three";
6404
- OrganizedMarketCount2["FOUR_TO_FIVE"] = "Four_to_Five";
6405
- OrganizedMarketCount2["MORE_THAN_FIVE"] = "More_than_Five";
6406
- return OrganizedMarketCount2;
6407
- })(OrganizedMarketCount || {});
6408
- var VendorSellingFrequency = /* @__PURE__ */ ((VendorSellingFrequency2) => {
6409
- VendorSellingFrequency2["TWICE_A_WEEK"] = "Two_to_Three_times_a_week";
6410
- VendorSellingFrequency2["ONCE_A_WEEK"] = "Once_a_week";
6411
- VendorSellingFrequency2["ONE_TO_TWO_TIMES_A_MONTH"] = "One_to_Two_times_a_month";
6412
- VendorSellingFrequency2["LESS_OFTEN"] = "Less_often";
6413
- return VendorSellingFrequency2;
6414
- })(VendorSellingFrequency || {});
6415
- var OrganizerMarketFrequency = /* @__PURE__ */ ((OrganizerMarketFrequency2) => {
6416
- OrganizerMarketFrequency2["WEEKLY"] = "Weekly";
6417
- OrganizerMarketFrequency2["FORTNIGHTLY"] = "Fortnightly";
6418
- OrganizerMarketFrequency2["MONTHLY"] = "Monthly";
6419
- OrganizerMarketFrequency2["SEASONAL"] = "Seasonal";
6420
- return OrganizerMarketFrequency2;
6421
- })(OrganizerMarketFrequency || {});
6422
-
6423
- // src/yupSchema/tester.ts
6424
- var testerVendorSchema = yup6.object().shape({
6425
- categories: categorySchema.min(1, "Category list must contain at least one item").required("Categories are required"),
6426
- marketsAttended: yup6.array().of(
6427
- yup6.object().shape({
6428
- city: yup6.string().trim().required("City is required"),
6429
- name: yup6.string().trim().required("Market name is required")
6430
- })
6431
- ).min(1, "At least one market must be provided").required("Markets attended are required"),
6432
- productsOrServices: yup6.string().trim().required("Products or services description is required"),
6433
- questionary: yup6.object().shape({
6434
- appearInVideoIntroduction: yup6.boolean().optional(),
6435
- applyToAtLeastOneMarket: yup6.boolean().required("This field is required").oneOf([true], "This field is required"),
6436
- completeFeedbackQuestionnaire: yup6.boolean().required("This field is required").oneOf([true], "This field is required"),
6437
- excitementAboutApp: yup6.string().trim().optional(),
6438
- sendPhotoForSocialMedia: yup6.boolean().optional(),
6439
- socialMediaFeatureReason: yup6.string().trim().optional(),
6440
- testingPeriodConcerns: yup6.string().trim().optional(),
6441
- tryVisitorFeatures: yup6.boolean().required("This field is required").oneOf([true], "This field is required"),
6442
- uploadStallProfileFirstWeek: yup6.boolean().required("This field is required").oneOf([true], "This field is required"),
6443
- usefulnessExpectations: yup6.string().trim().optional()
6444
- }).required("Questionary is required"),
6445
- sellingFrequency: yup6.mixed().oneOf(
6446
- Object.values(VendorSellingFrequency),
6447
- "Please select a valid selling frequency"
6448
- ).required("Required field"),
6449
- yearlySellingApprox: yup6.number().nonNullable().transform(
6450
- (value, originalValue) => originalValue === "" ? void 0 : value
6451
- ).label("Yearly Selling Approx").min(1, "Yearly selling approximate must be at least 1").integer("Yearly selling approximate must be a whole number").required("Yearly selling approximate is required").test("no-leading-zeros", "", noLeadingZeros("Yearly selling approximate"))
6452
- });
6453
- var testerEventSchema = yup6.object().shape({
6454
- markets: yup6.array().of(
6455
- yup6.object().shape({
6456
- averageStallCount: yup6.number().nonNullable().transform(
6457
- (value, originalValue) => originalValue === "" ? void 0 : value
6458
- ).label("Average Stall Count").min(1, "Average stall count must be at least 1").integer("Average stall count must be a whole number").required("Average stall count is required").test("no-leading-zeros", "", noLeadingZeros("Average stall count")),
6459
- cityOrVenue: yup6.string().trim().required("City or venue is required"),
6460
- frequency: yup6.mixed().oneOf(
6461
- Object.values(OrganizerMarketFrequency),
6462
- "Please select a valid frequency"
6463
- ).required("Frequency is required"),
6464
- name: yup6.string().trim().required("Market name is required")
6465
- })
6466
- ).min(1, "At least one market must be provided").required("Markets are required"),
6467
- organizedMarketCount: yup6.mixed().oneOf(
6468
- Object.values(OrganizedMarketCount),
6469
- "Please select a valid market count"
6470
- ).required("Organized market count is required"),
6471
- questionary: yup6.object().shape({
6472
- allowMarketingAppearance: yup6.boolean().optional(),
6473
- completeFinalQuestionnaire: yup6.boolean().required("This field is required").oneOf([true], "This field is required"),
6474
- completeMarketProfileFirstWeek: yup6.boolean().required("This field is required").oneOf([true], "This field is required"),
6475
- dailyCoordinationNeeds: yup6.string().trim().optional(),
6476
- interestedInCharityInitiative: yup6.boolean().optional(),
6477
- inviteStallholders: yup6.boolean().required("This field is required").oneOf([true], "This field is required"),
6478
- manageApplicationsAndCommunication: yup6.boolean().required("This field is required").oneOf([true], "This field is required"),
6479
- organizerExpectations: yup6.string().trim().optional(),
6480
- spaceForClueMart: yup6.boolean().optional(),
6481
- uploadStallList: yup6.boolean().required("This field is required").oneOf([true], "This field is required")
6482
- }).required("Questionary is required")
6483
- });
6484
- var testerSchema = yup6.object().shape({
6485
- businessName: yup6.string().required("Business name is required"),
6486
- consents: yup6.object().shape({
6487
- betaTestConsent: yup6.boolean().oneOf([true], "You must consent to beta testing").required("Beta test consent is required"),
6488
- privacyConsent: yup6.boolean().oneOf([true], "You must accept the Privacy Policy").required("Privacy consent is required")
6489
- }),
6490
- email: emailRequiredSchema,
6491
- event: yup6.object().when("resourceType", {
6492
- is: (resourceType) => resourceType === "event" /* EVENT */,
6493
- otherwise: (schema) => schema.nullable().optional(),
6494
- then: (schema) => schema.required("Event information is required").shape(testerEventSchema.fields)
6495
- }),
6496
- firstName: yup6.string().required("First name is required"),
6497
- lastName: yup6.string().required("Last name is required"),
6498
- mobilePhone: yup6.string().label("Mobile Phone").required("Mobile phone is required").test(
6499
- "mobile-phone",
6500
- "Mobile must start with 02 and be 9\u201311 digits",
6501
- (value) => !value || mobileRegex.test(value)
6502
- // skip empty values
6503
- ),
6504
- osType: yup6.mixed().oneOf(Object.values(EnumOSPlatform), "Please select Android or iOS").required("OS Type is required"),
6505
- region: yup6.string().required("Region is required"),
6506
- resourceType: yup6.mixed().oneOf(
6507
- Object.values(EnumResourceType),
6508
- "Please select Event or Stallholder"
6509
- ).required("Resource Type is required"),
6510
- vendor: yup6.object().when("resourceType", {
6511
- is: (resourceType) => resourceType === "vendor" /* VENDOR */,
6512
- otherwise: (schema) => schema.nullable().optional(),
6513
- then: (schema) => schema.required("Vendor information is required").shape(testerVendorSchema.fields)
6514
- })
6515
- });
6516
-
6517
6157
  // src/yupSchema/ad.ts
6518
- import * as yup7 from "yup";
6158
+ import * as yup6 from "yup";
6519
6159
 
6520
6160
  // src/types/ad.ts
6521
6161
  var EnumAdShowOn = /* @__PURE__ */ ((EnumAdShowOn2) => {
@@ -6543,12 +6183,12 @@ var EnumAdStyle = /* @__PURE__ */ ((EnumAdStyle2) => {
6543
6183
  })(EnumAdStyle || {});
6544
6184
 
6545
6185
  // src/yupSchema/ad.ts
6546
- var adSchema = yup7.object().shape({
6547
- active: yup7.boolean().required("Active status is required"),
6548
- adStyle: yup7.mixed().oneOf(Object.values(EnumAdStyle), "Please select a valid ad style").required("Ad style is required"),
6549
- adType: yup7.mixed().oneOf(Object.values(EnumAdType), "Please select a valid ad type").required("Ad type is required"),
6550
- clui: yup7.string().nullable().notRequired(),
6551
- end: yup7.date().required("End date is required").test("is-future-date", "End date must be in the future", (value) => {
6186
+ var adSchema = yup6.object().shape({
6187
+ active: yup6.boolean().required("Active status is required"),
6188
+ adStyle: yup6.mixed().oneOf(Object.values(EnumAdStyle), "Please select a valid ad style").required("Ad style is required"),
6189
+ adType: yup6.mixed().oneOf(Object.values(EnumAdType), "Please select a valid ad type").required("Ad type is required"),
6190
+ clui: yup6.string().nullable().notRequired(),
6191
+ end: yup6.date().required("End date is required").test("is-future-date", "End date must be in the future", (value) => {
6552
6192
  if (!value) return false;
6553
6193
  const endDate = new Date(value);
6554
6194
  const now = /* @__PURE__ */ new Date();
@@ -6565,40 +6205,40 @@ var adSchema = yup7.object().shape({
6565
6205
  }
6566
6206
  )
6567
6207
  }),
6568
- resourceCover: yup7.string().url("Resource cover must be a valid URL").required("Resource cover is required"),
6569
- resourceDescription: yup7.string().required("Resource description is required"),
6570
- resourceId: yup7.string().required("Resource ID is required"),
6571
- resourceLogo: yup7.string().url("Resource logo must be a valid URL").nullable().notRequired(),
6572
- resourceName: yup7.string().required("Resource name is required"),
6573
- resourceRegion: yup7.string().required("Resource region is required"),
6574
- resourceType: yup7.mixed().oneOf(Object.values(EnumResourceType), "Please select Event or Vendor").required("Resource Type is required"),
6575
- showOn: yup7.mixed().oneOf(
6208
+ resourceCover: yup6.string().url("Resource cover must be a valid URL").required("Resource cover is required"),
6209
+ resourceDescription: yup6.string().required("Resource description is required"),
6210
+ resourceId: yup6.string().required("Resource ID is required"),
6211
+ resourceLogo: yup6.string().url("Resource logo must be a valid URL").nullable().notRequired(),
6212
+ resourceName: yup6.string().required("Resource name is required"),
6213
+ resourceRegion: yup6.string().required("Resource region is required"),
6214
+ resourceType: yup6.mixed().oneOf(Object.values(EnumResourceType), "Please select Event or Vendor").required("Resource Type is required"),
6215
+ showOn: yup6.mixed().oneOf(
6576
6216
  Object.values(EnumAdShowOn),
6577
6217
  "Please select a valid display location"
6578
6218
  ).required("Display location is required"),
6579
- socialMedia: yup7.array().of(socialMediaSchema).nullable().optional(),
6580
- status: yup7.mixed().oneOf(Object.values(EnumAdStatus)).required("Ad status is required"),
6581
- start: yup7.date().when("status", {
6219
+ socialMedia: yup6.array().of(socialMediaSchema).nullable().optional(),
6220
+ status: yup6.mixed().oneOf(Object.values(EnumAdStatus)).required("Ad status is required"),
6221
+ start: yup6.date().when("status", {
6582
6222
  is: (status) => status !== "Active" /* ACTIVE */,
6583
- then: () => yup7.date().required("Start date is required").test("is-future-date", "Start date must be in the future", (value) => {
6223
+ then: () => yup6.date().required("Start date is required").test("is-future-date", "Start date must be in the future", (value) => {
6584
6224
  if (!value) return false;
6585
6225
  return value > /* @__PURE__ */ new Date();
6586
6226
  }),
6587
- otherwise: () => yup7.date().nullable().notRequired()
6227
+ otherwise: () => yup6.date().nullable().notRequired()
6588
6228
  }),
6589
- targetRegion: yup7.string().nullable().notRequired()
6229
+ targetRegion: yup6.string().nullable().notRequired()
6590
6230
  });
6591
6231
 
6592
6232
  // src/yupSchema/partner.ts
6593
- import * as yup8 from "yup";
6233
+ import * as yup7 from "yup";
6594
6234
  var partnerSchema = globalResourceSchema.shape({
6595
6235
  location: locationSchema,
6596
- nzbn: yup8.string().required("NZBN is required").matches(nzbnRegex, "NZBN must be 13 digits and start with 94"),
6597
- partnerType: yup8.mixed().oneOf(Object.values(EnumPartnerType), "Please select a valid Partner type").required("Please select a Partner type")
6236
+ nzbn: yup7.string().required("NZBN is required").matches(nzbnRegex, "NZBN must be 13 digits and start with 94"),
6237
+ partnerType: yup7.mixed().oneOf(Object.values(EnumPartnerType), "Please select a valid Partner type").required("Please select a Partner type")
6598
6238
  });
6599
6239
 
6600
6240
  // src/yupSchema/post.ts
6601
- import * as yup9 from "yup";
6241
+ import * as yup8 from "yup";
6602
6242
 
6603
6243
  // src/types/post.ts
6604
6244
  var EnumPostType = /* @__PURE__ */ ((EnumPostType2) => {
@@ -6616,32 +6256,32 @@ var EnumPostContentType = /* @__PURE__ */ ((EnumPostContentType2) => {
6616
6256
  })(EnumPostContentType || {});
6617
6257
 
6618
6258
  // src/yupSchema/post.ts
6619
- var postContentSchema = yup9.object().shape({
6620
- contentData: yup9.mixed().optional().nullable(),
6621
- contentOrder: yup9.number().nullable(),
6622
- contentType: yup9.mixed().oneOf(Object.values(EnumPostContentType)).nullable()
6259
+ var postContentSchema = yup8.object().shape({
6260
+ contentData: yup8.mixed().optional().nullable(),
6261
+ contentOrder: yup8.number().nullable(),
6262
+ contentType: yup8.mixed().oneOf(Object.values(EnumPostContentType)).nullable()
6623
6263
  });
6624
- var postSchema = yup9.object().shape({
6625
- active: yup9.boolean().required(),
6626
- caption: yup9.string().required(),
6627
- content: yup9.array().of(postContentSchema).required(),
6628
- postType: yup9.mixed().oneOf(Object.values(EnumPostType)).required(),
6629
- resource: yup9.object({
6630
- resourceId: yup9.string().required(),
6631
- resourceType: yup9.mixed().oneOf(Object.values(EnumResourceType)).required()
6264
+ var postSchema = yup8.object().shape({
6265
+ active: yup8.boolean().required(),
6266
+ caption: yup8.string().required(),
6267
+ content: yup8.array().of(postContentSchema).required(),
6268
+ postType: yup8.mixed().oneOf(Object.values(EnumPostType)).required(),
6269
+ resource: yup8.object({
6270
+ resourceId: yup8.string().required(),
6271
+ resourceType: yup8.mixed().oneOf(Object.values(EnumResourceType)).required()
6632
6272
  }).nullable().optional(),
6633
- tags: yup9.array().of(yup9.string().required()).nullable().optional(),
6634
- title: yup9.string().required()
6273
+ tags: yup8.array().of(yup8.string().required()).nullable().optional(),
6274
+ title: yup8.string().required()
6635
6275
  });
6636
6276
 
6637
6277
  // src/yupSchema/appSettings.ts
6638
- import * as yup10 from "yup";
6639
- var appSettingsSchema = yup10.object({
6640
- appVersion: yup10.string().trim().label("App Version").matches(
6278
+ import * as yup9 from "yup";
6279
+ var appSettingsSchema = yup9.object({
6280
+ appVersion: yup9.string().trim().label("App Version").matches(
6641
6281
  /^\d+\.\d+\.\d+$/,
6642
6282
  "App Version must be in the format X.Y.Z (e.g. 1.12.50)"
6643
6283
  ).required("App Version is required"),
6644
- isOfflineMode: yup10.boolean().label("Is Offline Mode").required("Is Offline Mode is required")
6284
+ isOfflineMode: yup9.boolean().label("Is Offline Mode").required("Is Offline Mode is required")
6645
6285
  });
6646
6286
 
6647
6287
  // src/hooks/utils.ts
@@ -7367,110 +7007,22 @@ function useResetPasswordForm() {
7367
7007
  };
7368
7008
  }
7369
7009
 
7370
- // src/hooks/useTesterForm.ts
7010
+ // src/hooks/useContactUsForm.ts
7371
7011
  import { yupResolver as yupResolver11 } from "@hookform/resolvers/yup";
7372
7012
  import React6 from "react";
7373
7013
  import { useForm as useForm11 } from "react-hook-form";
7374
- var defaultValues7 = {
7375
- businessName: "",
7376
- consents: {
7377
- betaTestConsent: false,
7378
- privacyConsent: false
7379
- },
7380
- email: "",
7381
- event: {},
7382
- firstName: "",
7383
- lastName: "",
7384
- mobilePhone: "",
7385
- osType: "",
7386
- region: "",
7387
- resourceType: "",
7388
- vendor: {}
7389
- };
7390
- function useTesterForm(data) {
7391
- const {
7392
- control,
7393
- formState,
7394
- getValues,
7395
- handleSubmit,
7396
- reset,
7397
- setValue,
7398
- watch
7399
- } = useForm11({
7400
- defaultValues: defaultValues7,
7401
- resolver: yupResolver11(testerSchema)
7402
- });
7403
- React6.useEffect(() => {
7404
- if (data) {
7405
- reset({
7406
- businessName: data.businessName,
7407
- consents: data.consents,
7408
- email: data.email,
7409
- event: data.event,
7410
- firstName: data.firstName,
7411
- lastName: data.lastName,
7412
- mobilePhone: data.mobilePhone,
7413
- osType: data.osType,
7414
- region: data.region,
7415
- resourceType: data.resourceType,
7416
- vendor: data.vendor
7417
- });
7418
- } else {
7419
- reset(defaultValues7);
7420
- }
7421
- }, [data]);
7422
- const {
7423
- businessName,
7424
- consents,
7425
- email,
7426
- event,
7427
- firstName,
7428
- lastName,
7429
- mobilePhone,
7430
- osType,
7431
- region,
7432
- resourceType,
7433
- vendor
7434
- } = getValues();
7435
- return {
7436
- control,
7437
- fields: {
7438
- businessName,
7439
- consents,
7440
- email,
7441
- event,
7442
- firstName,
7443
- lastName,
7444
- mobilePhone,
7445
- osType,
7446
- region,
7447
- resourceType,
7448
- vendor
7449
- },
7450
- formState,
7451
- handleSubmit,
7452
- reset,
7453
- setValue,
7454
- watch
7455
- };
7456
- }
7457
-
7458
- // src/hooks/useContactUsForm.ts
7459
- import { yupResolver as yupResolver12 } from "@hookform/resolvers/yup";
7460
- import React7 from "react";
7461
- import { useForm as useForm12 } from "react-hook-form";
7462
7014
 
7463
7015
  // src/yupSchema/contactUs.ts
7464
- import * as yup11 from "yup";
7465
- var contactUsSchema = yup11.object().shape({
7016
+ import * as yup10 from "yup";
7017
+ var contactUsSchema = yup10.object().shape({
7466
7018
  email: emailRequiredSchema,
7467
- firstName: yup11.string().label("First Name").required("First name is required"),
7468
- lastName: yup11.string().label("Last Name").required("Last name is required"),
7469
- message: yup11.string().label("Message").required("Message is required")
7019
+ firstName: yup10.string().label("First Name").required("First name is required"),
7020
+ lastName: yup10.string().label("Last Name").required("Last name is required"),
7021
+ message: yup10.string().label("Message").required("Message is required")
7470
7022
  });
7471
7023
 
7472
7024
  // src/hooks/useContactUsForm.ts
7473
- var defaultValues8 = {
7025
+ var defaultValues7 = {
7474
7026
  email: "",
7475
7027
  firstName: "",
7476
7028
  lastName: "",
@@ -7485,11 +7037,11 @@ function useContactUsForm(data) {
7485
7037
  reset,
7486
7038
  setValue,
7487
7039
  watch
7488
- } = useForm12({
7489
- defaultValues: defaultValues8,
7490
- resolver: yupResolver12(contactUsSchema)
7040
+ } = useForm11({
7041
+ defaultValues: defaultValues7,
7042
+ resolver: yupResolver11(contactUsSchema)
7491
7043
  });
7492
- React7.useEffect(() => {
7044
+ React6.useEffect(() => {
7493
7045
  if (data) {
7494
7046
  reset({
7495
7047
  email: data.email,
@@ -7498,7 +7050,7 @@ function useContactUsForm(data) {
7498
7050
  message: data.message
7499
7051
  });
7500
7052
  } else {
7501
- reset(defaultValues8);
7053
+ reset(defaultValues7);
7502
7054
  }
7503
7055
  }, [data]);
7504
7056
  const { email, firstName, lastName, message } = getValues();
@@ -7519,10 +7071,10 @@ function useContactUsForm(data) {
7519
7071
  }
7520
7072
 
7521
7073
  // src/hooks/useAdForm.ts
7522
- import { yupResolver as yupResolver13 } from "@hookform/resolvers/yup";
7523
- import React8 from "react";
7524
- import { useForm as useForm13 } from "react-hook-form";
7525
- var defaultValues9 = {
7074
+ import { yupResolver as yupResolver12 } from "@hookform/resolvers/yup";
7075
+ import React7 from "react";
7076
+ import { useForm as useForm12 } from "react-hook-form";
7077
+ var defaultValues8 = {
7526
7078
  active: true,
7527
7079
  adStyle: "Bloom" /* BLOOM */,
7528
7080
  // default to bloom
@@ -7555,11 +7107,11 @@ function useAdForm(data) {
7555
7107
  reset,
7556
7108
  setValue,
7557
7109
  watch
7558
- } = useForm13({
7559
- defaultValues: defaultValues9,
7560
- resolver: yupResolver13(adSchema)
7110
+ } = useForm12({
7111
+ defaultValues: defaultValues8,
7112
+ resolver: yupResolver12(adSchema)
7561
7113
  });
7562
- React8.useEffect(() => {
7114
+ React7.useEffect(() => {
7563
7115
  if (data) {
7564
7116
  reset({
7565
7117
  active: data.active,
@@ -7580,7 +7132,7 @@ function useAdForm(data) {
7580
7132
  targetRegion: data.targetRegion
7581
7133
  });
7582
7134
  } else {
7583
- reset(defaultValues9);
7135
+ reset(defaultValues8);
7584
7136
  }
7585
7137
  }, [data]);
7586
7138
  const {
@@ -7632,9 +7184,9 @@ function useAdForm(data) {
7632
7184
  }
7633
7185
 
7634
7186
  // src/hooks/partner/usePartnerForm.ts
7635
- import { yupResolver as yupResolver14 } from "@hookform/resolvers/yup";
7636
- import * as React9 from "react";
7637
- import { useForm as useForm14 } from "react-hook-form";
7187
+ import { yupResolver as yupResolver13 } from "@hookform/resolvers/yup";
7188
+ import * as React8 from "react";
7189
+ import { useForm as useForm13 } from "react-hook-form";
7638
7190
  function usePartnerForm(data) {
7639
7191
  const {
7640
7192
  control,
@@ -7644,11 +7196,11 @@ function usePartnerForm(data) {
7644
7196
  reset,
7645
7197
  setValue,
7646
7198
  watch
7647
- } = useForm14({
7199
+ } = useForm13({
7648
7200
  defaultValues: defaultPartnerFormValues,
7649
- resolver: yupResolver14(partnerSchema)
7201
+ resolver: yupResolver13(partnerSchema)
7650
7202
  });
7651
- React9.useEffect(() => {
7203
+ React8.useEffect(() => {
7652
7204
  if (data) {
7653
7205
  reset({
7654
7206
  ...mapBaseResourceTypeToFormData(data),
@@ -7715,10 +7267,10 @@ function usePartnerForm(data) {
7715
7267
  }
7716
7268
 
7717
7269
  // src/hooks/usePostForm.ts
7718
- import { yupResolver as yupResolver15 } from "@hookform/resolvers/yup";
7719
- import React10 from "react";
7720
- import { useForm as useForm15 } from "react-hook-form";
7721
- var defaultValues10 = {
7270
+ import { yupResolver as yupResolver14 } from "@hookform/resolvers/yup";
7271
+ import React9 from "react";
7272
+ import { useForm as useForm14 } from "react-hook-form";
7273
+ var defaultValues9 = {
7722
7274
  active: true,
7723
7275
  caption: "",
7724
7276
  content: [],
@@ -7738,11 +7290,11 @@ function usePostForm(data) {
7738
7290
  reset,
7739
7291
  setValue,
7740
7292
  watch
7741
- } = useForm15({
7742
- defaultValues: defaultValues10,
7743
- resolver: yupResolver15(postSchema)
7293
+ } = useForm14({
7294
+ defaultValues: defaultValues9,
7295
+ resolver: yupResolver14(postSchema)
7744
7296
  });
7745
- React10.useEffect(() => {
7297
+ React9.useEffect(() => {
7746
7298
  if (data) {
7747
7299
  reset({
7748
7300
  active: data.active,
@@ -7756,7 +7308,7 @@ function usePostForm(data) {
7756
7308
  title: data.title
7757
7309
  });
7758
7310
  } else {
7759
- reset(defaultValues10);
7311
+ reset(defaultValues9);
7760
7312
  }
7761
7313
  }, [data]);
7762
7314
  const {
@@ -7792,10 +7344,10 @@ function usePostForm(data) {
7792
7344
  }
7793
7345
 
7794
7346
  // src/hooks/useAppSettingsForm.ts
7795
- import { yupResolver as yupResolver16 } from "@hookform/resolvers/yup";
7796
- import React11 from "react";
7797
- import { useForm as useForm16 } from "react-hook-form";
7798
- var defaultValues11 = {
7347
+ import { yupResolver as yupResolver15 } from "@hookform/resolvers/yup";
7348
+ import React10 from "react";
7349
+ import { useForm as useForm15 } from "react-hook-form";
7350
+ var defaultValues10 = {
7799
7351
  appVersion: "",
7800
7352
  isOfflineMode: false
7801
7353
  };
@@ -7808,18 +7360,18 @@ function useAppSettingsForm(data) {
7808
7360
  reset,
7809
7361
  setValue,
7810
7362
  watch
7811
- } = useForm16({
7812
- defaultValues: defaultValues11,
7813
- resolver: yupResolver16(appSettingsSchema)
7363
+ } = useForm15({
7364
+ defaultValues: defaultValues10,
7365
+ resolver: yupResolver15(appSettingsSchema)
7814
7366
  });
7815
- React11.useEffect(() => {
7367
+ React10.useEffect(() => {
7816
7368
  if (data) {
7817
7369
  reset({
7818
7370
  appVersion: data.appVersion,
7819
7371
  isOfflineMode: data.isOfflineMode
7820
7372
  });
7821
7373
  } else {
7822
- reset(defaultValues11);
7374
+ reset(defaultValues10);
7823
7375
  }
7824
7376
  }, [data]);
7825
7377
  const { appVersion, isOfflineMode } = getValues();
@@ -7886,7 +7438,6 @@ var fonts = {
7886
7438
  var EnumVerificationType = /* @__PURE__ */ ((EnumVerificationType2) => {
7887
7439
  EnumVerificationType2["REGISTER"] = "register";
7888
7440
  EnumVerificationType2["RESET_PASSWORD"] = "resetPassword";
7889
- EnumVerificationType2["TESTER_VALIDATION"] = "testerValidation";
7890
7441
  return EnumVerificationType2;
7891
7442
  })(EnumVerificationType || {});
7892
7443
 
@@ -7932,14 +7483,11 @@ export {
7932
7483
  EnumVerificationType,
7933
7484
  IOS_URL,
7934
7485
  ImageTypeEnum,
7935
- OrganizedMarketCount,
7936
- OrganizerMarketFrequency,
7937
7486
  SAVED_EMAIL_KEY,
7938
7487
  SAVED_PASSWORD_KEY,
7939
7488
  SAVED_REFRESH_TOKEN_KEY,
7940
7489
  SAVED_TOKEN_KEY,
7941
7490
  USER_STORAGE_KEY,
7942
- VendorSellingFrequency,
7943
7491
  availableCategories,
7944
7492
  availableRegionOptions,
7945
7493
  availableRegionTypes,
@@ -7993,7 +7541,6 @@ export {
7993
7541
  stallTypeOptions,
7994
7542
  statusOptions,
7995
7543
  tagOptions,
7996
- testersFields,
7997
7544
  timeFormat,
7998
7545
  toNZTime,
7999
7546
  truncateText,
@@ -8003,10 +7550,8 @@ export {
8003
7550
  useAddUserGoingResource,
8004
7551
  useAddUserInterestResource,
8005
7552
  useAddUserPresentResource,
8006
- useAdminResendTesterVerificationEmail,
8007
7553
  useAdminResendUserVerificationEmail,
8008
7554
  useAdminUpdateResourceType,
8009
- useAdminUpdateTester,
8010
7555
  useAppSettingsForm,
8011
7556
  useCancelSubscription,
8012
7557
  useContactUs,
@@ -8024,7 +7569,6 @@ export {
8024
7569
  useCreatePushToken,
8025
7570
  useCreateRelation,
8026
7571
  useCreateResourceActivity,
8027
- useCreateTester,
8028
7572
  useCreateUnregisteredVendor,
8029
7573
  useCreateUser,
8030
7574
  useCreateVendor,
@@ -8037,7 +7581,6 @@ export {
8037
7581
  useDeletePartner,
8038
7582
  useDeletePost,
8039
7583
  useDeleteRelation,
8040
- useDeleteTester,
8041
7584
  useDeleteUnregisteredVendor,
8042
7585
  useDeleteUser,
8043
7586
  useDeleteVendor,
@@ -8072,8 +7615,6 @@ export {
8072
7615
  useGetResourceConnections,
8073
7616
  useGetSubscriptionPlans,
8074
7617
  useGetSubscriptionStatus,
8075
- useGetTester,
8076
- useGetTesters,
8077
7618
  useGetUnregisteredVendor,
8078
7619
  useGetUnregisteredVendors,
8079
7620
  useGetUser,
@@ -8118,7 +7659,6 @@ export {
8118
7659
  useSelectPackage,
8119
7660
  useSelectStandardPackage,
8120
7661
  useSendChatMessage,
8121
- useTesterForm,
8122
7662
  useToggleChatMessageLike,
8123
7663
  useUpdateAd,
8124
7664
  useUpdateAppSettings,
@@ -8128,7 +7668,6 @@ export {
8128
7668
  useUpdatePost,
8129
7669
  useUpdateRelation,
8130
7670
  useUpdateSubscriptionPlan,
8131
- useUpdateTester,
8132
7671
  useUpdateUnregisteredVendor,
8133
7672
  useUpdateUser,
8134
7673
  useUpdateVendor,