@timardex/cluemart-shared 1.4.41 → 1.4.43

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-KWA2LDKT.mjs} +253 -454
  8. package/dist/chunk-KWA2LDKT.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 +337 -543
  15. package/dist/graphql/index.cjs.map +1 -1
  16. package/dist/graphql/index.d.mts +19 -56
  17. package/dist/graphql/index.d.ts +19 -56
  18. package/dist/graphql/index.mjs +5 -15
  19. package/dist/hooks/index.cjs +293 -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 +445 -882
  26. package/dist/index.cjs.map +1 -1
  27. package/dist/index.d.mts +19 -148
  28. package/dist/index.d.ts +19 -148
  29. package/dist/index.mjs +360 -787
  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,24 +2264,22 @@ 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)
2295
2270
  }
2296
2271
  `;
2272
+ var ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION = gql`
2273
+ mutation adminPermanentlyDeleteResource(
2274
+ $resourceId: ID!
2275
+ $resourceType: ResourceTypeEnum!
2276
+ ) {
2277
+ adminPermanentlyDeleteResource(
2278
+ resourceId: $resourceId
2279
+ resourceType: $resourceType
2280
+ )
2281
+ }
2282
+ `;
2297
2283
 
2298
2284
  // src/graphql/queries/event.ts
2299
2285
  import { gql as gql3 } from "@apollo/client";
@@ -2725,107 +2711,9 @@ var GET_EVENT_INFO = gql3`
2725
2711
  ${EVENT_INFO}
2726
2712
  `;
2727
2713
 
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
2714
  // src/graphql/queries/vendor.ts
2827
- import { gql as gql5 } from "@apollo/client";
2828
- var VENDOR_DATETIME_FIELDS_FRAGMENT = gql5`
2715
+ import { gql as gql4 } from "@apollo/client";
2716
+ var VENDOR_DATETIME_FIELDS_FRAGMENT = gql4`
2829
2717
  fragment VendorDateTimeFields on VendorDateTimeType {
2830
2718
  dateStatus
2831
2719
  endDate
@@ -2834,7 +2722,7 @@ var VENDOR_DATETIME_FIELDS_FRAGMENT = gql5`
2834
2722
  startTime
2835
2723
  }
2836
2724
  `;
2837
- var VENDOR_MENU_FIELDS_FRAGMENT = gql5`
2725
+ var VENDOR_MENU_FIELDS_FRAGMENT = gql4`
2838
2726
  fragment VendorMenuFields on VendorMenuType {
2839
2727
  description
2840
2728
  name
@@ -2842,7 +2730,7 @@ var VENDOR_MENU_FIELDS_FRAGMENT = gql5`
2842
2730
  productGroups
2843
2731
  }
2844
2732
  `;
2845
- var VENDOR = gql5`
2733
+ var VENDOR = gql4`
2846
2734
  fragment VendorFields on VendorType {
2847
2735
  _id
2848
2736
  active
@@ -2927,13 +2815,13 @@ var VENDOR = gql5`
2927
2815
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
2928
2816
  ${RELATION_DATES_FRAGMENT}
2929
2817
  `;
2930
- var VENDOR_ATTRIBUTES_FRAGMENT = gql5`
2818
+ var VENDOR_ATTRIBUTES_FRAGMENT = gql4`
2931
2819
  fragment VendorAttributesFields on VendorAttributesType {
2932
2820
  details
2933
2821
  isRequired
2934
2822
  }
2935
2823
  `;
2936
- var VENDOR_INFO = gql5`
2824
+ var VENDOR_INFO = gql4`
2937
2825
  fragment VendorInfoFields on VendorInfoType {
2938
2826
  _id
2939
2827
  compliance {
@@ -2974,7 +2862,7 @@ var VENDOR_INFO = gql5`
2974
2862
  ${VENDOR_ATTRIBUTES_FRAGMENT}
2975
2863
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
2976
2864
  `;
2977
- var UNREGISTERED_VENDOR_INVITATION_FRAGMENT = gql5`
2865
+ var UNREGISTERED_VENDOR_INVITATION_FRAGMENT = gql4`
2978
2866
  fragment UnregisteredVendorInvitationFields on UnregisteredVendorInvitationType {
2979
2867
  dateTime {
2980
2868
  ...EventDateTimeFields
@@ -2987,7 +2875,7 @@ var UNREGISTERED_VENDOR_INVITATION_FRAGMENT = gql5`
2987
2875
  ${EVENT_DATETIME_FIELDS_FRAGMENT}
2988
2876
  ${LOCATION_FIELDS_FRAGMENT}
2989
2877
  `;
2990
- var UNREGISTERED_VENDOR = gql5`
2878
+ var UNREGISTERED_VENDOR = gql4`
2991
2879
  fragment UnregisteredVendorFields on UnregisteredVendorType {
2992
2880
  _id
2993
2881
  categories {
@@ -3006,7 +2894,7 @@ var UNREGISTERED_VENDOR = gql5`
3006
2894
  ${CATEGORY_FIELDS_FRAGMENT}
3007
2895
  ${UNREGISTERED_VENDOR_INVITATION_FRAGMENT}
3008
2896
  `;
3009
- var GET_VENDORS = gql5`
2897
+ var GET_VENDORS = gql4`
3010
2898
  query getVendors {
3011
2899
  vendors {
3012
2900
  ...VendorFields
@@ -3014,7 +2902,7 @@ var GET_VENDORS = gql5`
3014
2902
  }
3015
2903
  ${VENDOR}
3016
2904
  `;
3017
- var GET_VENDOR = gql5`
2905
+ var GET_VENDOR = gql4`
3018
2906
  query getVendor($_id: ID!) {
3019
2907
  vendor(_id: $_id) {
3020
2908
  ...VendorFields
@@ -3022,7 +2910,7 @@ var GET_VENDOR = gql5`
3022
2910
  }
3023
2911
  ${VENDOR}
3024
2912
  `;
3025
- var GET_VENDORS_BY_REGION = gql5`
2913
+ var GET_VENDORS_BY_REGION = gql4`
3026
2914
  query getVendorsByRegion($region: String!) {
3027
2915
  vendorsByRegion(region: $region) {
3028
2916
  ...VendorFields
@@ -3030,7 +2918,7 @@ var GET_VENDORS_BY_REGION = gql5`
3030
2918
  }
3031
2919
  ${VENDOR}
3032
2920
  `;
3033
- var SEARCH_VENDORS = gql5`
2921
+ var SEARCH_VENDORS = gql4`
3034
2922
  query searchVendors($search: String!, $region: String) {
3035
2923
  vendorSearch(search: $search, region: $region) {
3036
2924
  ...VendorFields
@@ -3038,7 +2926,7 @@ var SEARCH_VENDORS = gql5`
3038
2926
  }
3039
2927
  ${VENDOR}
3040
2928
  `;
3041
- var GET_VENDOR_INFO = gql5`
2929
+ var GET_VENDOR_INFO = gql4`
3042
2930
  query getVendorInfo($vendorId: ID!) {
3043
2931
  vendorInfo(vendorId: $vendorId) {
3044
2932
  ...VendorInfoFields
@@ -3046,7 +2934,7 @@ var GET_VENDOR_INFO = gql5`
3046
2934
  }
3047
2935
  ${VENDOR_INFO}
3048
2936
  `;
3049
- var GET_UNREGISTERED_VENDORS = gql5`
2937
+ var GET_UNREGISTERED_VENDORS = gql4`
3050
2938
  query getUnregisteredVendors {
3051
2939
  unregisteredVendors {
3052
2940
  ...UnregisteredVendorFields
@@ -3054,7 +2942,7 @@ var GET_UNREGISTERED_VENDORS = gql5`
3054
2942
  }
3055
2943
  ${UNREGISTERED_VENDOR}
3056
2944
  `;
3057
- var GET_UNREGISTERED_VENDOR = gql5`
2945
+ var GET_UNREGISTERED_VENDOR = gql4`
3058
2946
  query getUnregisteredVendor($_id: ID!) {
3059
2947
  unregisteredVendor(_id: $_id) {
3060
2948
  ...UnregisteredVendorFields
@@ -3087,42 +2975,22 @@ var useAdminUpdateResourceType = () => {
3087
2975
  loading
3088
2976
  };
3089
2977
  };
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
2978
+ var useAdminResendUserVerificationEmail = () => {
2979
+ const [adminResendUserVerificationEmail, { loading, error }] = useMutation(
2980
+ ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION
3113
2981
  );
3114
2982
  return {
3115
- adminResendTesterVerificationEmail,
2983
+ adminResendUserVerificationEmail,
3116
2984
  error,
3117
2985
  loading
3118
2986
  };
3119
2987
  };
3120
- var useAdminResendUserVerificationEmail = () => {
3121
- const [adminResendUserVerificationEmail, { loading, error }] = useMutation(
3122
- ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION
2988
+ var useAdminPermanentlyDeleteResource = () => {
2989
+ const [adminPermanentlyDeleteResource, { loading, error }] = useMutation(
2990
+ ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION
3123
2991
  );
3124
2992
  return {
3125
- adminResendUserVerificationEmail,
2993
+ adminPermanentlyDeleteResource,
3126
2994
  error,
3127
2995
  loading
3128
2996
  };
@@ -3132,8 +3000,8 @@ var useAdminResendUserVerificationEmail = () => {
3132
3000
  import { useMutation as useMutation2 } from "@apollo/client";
3133
3001
 
3134
3002
  // src/graphql/mutations/auth.ts
3135
- import { gql as gql6 } from "@apollo/client";
3136
- var REGISTER_MUTATION = gql6`
3003
+ import { gql as gql5 } from "@apollo/client";
3004
+ var REGISTER_MUTATION = gql5`
3137
3005
  mutation register($input: RegisterInputType!) {
3138
3006
  register(input: $input) {
3139
3007
  message
@@ -3146,7 +3014,7 @@ var REGISTER_MUTATION = gql6`
3146
3014
  }
3147
3015
  ${USER_FIELDS_FRAGMENT}
3148
3016
  `;
3149
- var LOGIN_MUTATION = gql6`
3017
+ var LOGIN_MUTATION = gql5`
3150
3018
  mutation login($input: LoginInputType!) {
3151
3019
  login(input: $input) {
3152
3020
  message
@@ -3159,14 +3027,14 @@ var LOGIN_MUTATION = gql6`
3159
3027
  }
3160
3028
  ${USER_FIELDS_FRAGMENT}
3161
3029
  `;
3162
- var LOGOUT_MUTATION = gql6`
3030
+ var LOGOUT_MUTATION = gql5`
3163
3031
  mutation logout {
3164
3032
  logout {
3165
3033
  message
3166
3034
  }
3167
3035
  }
3168
3036
  `;
3169
- var REFRESH_TOKEN_MUTATION = gql6`
3037
+ var REFRESH_TOKEN_MUTATION = gql5`
3170
3038
  mutation refreshToken($input: RefreshTokenInputType!) {
3171
3039
  refreshToken(input: $input) {
3172
3040
  refreshToken
@@ -3174,21 +3042,21 @@ var REFRESH_TOKEN_MUTATION = gql6`
3174
3042
  }
3175
3043
  }
3176
3044
  `;
3177
- var RESET_PASSWORD_MUTATION = gql6`
3045
+ var RESET_PASSWORD_MUTATION = gql5`
3178
3046
  mutation resetPassword($input: ResetPasswordInputType!) {
3179
3047
  resetPassword(input: $input) {
3180
3048
  message
3181
3049
  }
3182
3050
  }
3183
3051
  `;
3184
- var REQUEST_PASSWORD_RESET_MUTATION = gql6`
3052
+ var REQUEST_PASSWORD_RESET_MUTATION = gql5`
3185
3053
  mutation requestPasswordReset($input: RequestPasswordResetInputType!) {
3186
3054
  requestPasswordReset(input: $input) {
3187
3055
  message
3188
3056
  }
3189
3057
  }
3190
3058
  `;
3191
- var VALIDATE_VERIFICATION_TOKEN_MUTATION = gql6`
3059
+ var VALIDATE_VERIFICATION_TOKEN_MUTATION = gql5`
3192
3060
  mutation validateVerificationToken(
3193
3061
  $input: ValidateVerificationTokenInputType!
3194
3062
  ) {
@@ -3240,11 +3108,11 @@ var useResetPassword = () => {
3240
3108
  import { useMutation as useMutation3 } from "@apollo/client";
3241
3109
 
3242
3110
  // src/graphql/mutations/chat.ts
3243
- import { gql as gql8 } from "@apollo/client";
3111
+ import { gql as gql7 } from "@apollo/client";
3244
3112
 
3245
3113
  // src/graphql/queries/chat.ts
3246
- import { gql as gql7 } from "@apollo/client";
3247
- var CHAT_MESSAGE_FIELDS_FRAGMENT = gql7`
3114
+ import { gql as gql6 } from "@apollo/client";
3115
+ var CHAT_MESSAGE_FIELDS_FRAGMENT = gql6`
3248
3116
  fragment ChatMessageFields on ChatMessageType {
3249
3117
  _id
3250
3118
  content
@@ -3267,7 +3135,7 @@ var CHAT_MESSAGE_FIELDS_FRAGMENT = gql7`
3267
3135
  updatedAt
3268
3136
  }
3269
3137
  `;
3270
- var CHAT_PARTICIPANT = gql7`
3138
+ var CHAT_PARTICIPANT = gql6`
3271
3139
  fragment ChatParticipantFields on ChatParticipantType {
3272
3140
  active
3273
3141
  userAvatar
@@ -3276,7 +3144,7 @@ var CHAT_PARTICIPANT = gql7`
3276
3144
  userName
3277
3145
  }
3278
3146
  `;
3279
- var CHAT_FIELDS_FRAGMENT = gql7`
3147
+ var CHAT_FIELDS_FRAGMENT = gql6`
3280
3148
  fragment ChatFields on ChatType {
3281
3149
  _id
3282
3150
  active
@@ -3297,7 +3165,7 @@ var CHAT_FIELDS_FRAGMENT = gql7`
3297
3165
  ${CHAT_MESSAGE_FIELDS_FRAGMENT}
3298
3166
  ${CHAT_PARTICIPANT}
3299
3167
  `;
3300
- var CHAT = gql7`
3168
+ var CHAT = gql6`
3301
3169
  query chat($_id: ID!) {
3302
3170
  chat(_id: $_id) {
3303
3171
  ...ChatFields
@@ -3305,7 +3173,7 @@ var CHAT = gql7`
3305
3173
  }
3306
3174
  ${CHAT_FIELDS_FRAGMENT}
3307
3175
  `;
3308
- var USER_CHATS = gql7`
3176
+ var USER_CHATS = gql6`
3309
3177
  query userChats {
3310
3178
  userChats {
3311
3179
  ...ChatFields
@@ -3313,7 +3181,7 @@ var USER_CHATS = gql7`
3313
3181
  }
3314
3182
  ${CHAT_FIELDS_FRAGMENT}
3315
3183
  `;
3316
- var GET_CHATS_BY_REGION = gql7`
3184
+ var GET_CHATS_BY_REGION = gql6`
3317
3185
  query getChatsByRegion($region: String!) {
3318
3186
  chatsByRegion(region: $region) {
3319
3187
  ...ChatFields
@@ -3321,7 +3189,7 @@ var GET_CHATS_BY_REGION = gql7`
3321
3189
  }
3322
3190
  ${CHAT_FIELDS_FRAGMENT}
3323
3191
  `;
3324
- var CHAT_REPORT_FIELDS_FRAGMENT = gql7`
3192
+ var CHAT_REPORT_FIELDS_FRAGMENT = gql6`
3325
3193
  fragment ChatReportFields on ReportChatUserType {
3326
3194
  _id
3327
3195
  chatId
@@ -3336,7 +3204,7 @@ var CHAT_REPORT_FIELDS_FRAGMENT = gql7`
3336
3204
  updatedAt
3337
3205
  }
3338
3206
  `;
3339
- var GET_REPORTED_CHAT_USERS = gql7`
3207
+ var GET_REPORTED_CHAT_USERS = gql6`
3340
3208
  query getReportedChatUsers {
3341
3209
  reportedChatUsers {
3342
3210
  ...ChatReportFields
@@ -3346,7 +3214,7 @@ var GET_REPORTED_CHAT_USERS = gql7`
3346
3214
  `;
3347
3215
 
3348
3216
  // src/graphql/mutations/chat.ts
3349
- var SEND_CHAT_MESSAGE_MUTATION = gql8`
3217
+ var SEND_CHAT_MESSAGE_MUTATION = gql7`
3350
3218
  mutation sendChatMessage($_id: ID!, $input: ChatMessageInputType!) {
3351
3219
  sendChatMessage(_id: $_id, input: $input) {
3352
3220
  ...ChatFields
@@ -3354,12 +3222,12 @@ var SEND_CHAT_MESSAGE_MUTATION = gql8`
3354
3222
  }
3355
3223
  ${CHAT_FIELDS_FRAGMENT}
3356
3224
  `;
3357
- var DELETE_CHAT_MUTATION = gql8`
3225
+ var DELETE_CHAT_MUTATION = gql7`
3358
3226
  mutation deleteChat($_id: ID!) {
3359
3227
  deleteChat(_id: $_id)
3360
3228
  }
3361
3229
  `;
3362
- var ADD_PARTICIPANT_TO_CHAT_MUTATION = gql8`
3230
+ var ADD_PARTICIPANT_TO_CHAT_MUTATION = gql7`
3363
3231
  mutation addParticipantToChat($chatId: ID!, $userId: ID!) {
3364
3232
  addParticipantToChat(chatId: $chatId, userId: $userId) {
3365
3233
  ...ChatFields
@@ -3367,7 +3235,7 @@ var ADD_PARTICIPANT_TO_CHAT_MUTATION = gql8`
3367
3235
  }
3368
3236
  ${CHAT_FIELDS_FRAGMENT}
3369
3237
  `;
3370
- var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = gql8`
3238
+ var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = gql7`
3371
3239
  mutation removeParticipantFromChat($chatId: ID!, $userId: ID!) {
3372
3240
  removeParticipantFromChat(chatId: $chatId, userId: $userId) {
3373
3241
  success
@@ -3375,7 +3243,7 @@ var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = gql8`
3375
3243
  }
3376
3244
  }
3377
3245
  `;
3378
- var TOGGLE_CHAT_MESSAGE_LIKE_MUTATION = gql8`
3246
+ var TOGGLE_CHAT_MESSAGE_LIKE_MUTATION = gql7`
3379
3247
  mutation toggleChatMessageLike($chatId: ID!, $messageId: ID!) {
3380
3248
  toggleChatMessageLike(chatId: $chatId, messageId: $messageId) {
3381
3249
  ...ChatFields
@@ -3383,7 +3251,7 @@ var TOGGLE_CHAT_MESSAGE_LIKE_MUTATION = gql8`
3383
3251
  }
3384
3252
  ${CHAT_FIELDS_FRAGMENT}
3385
3253
  `;
3386
- var MARK_CHAT_MESSAGES_SEEN_MUTATION = gql8`
3254
+ var MARK_CHAT_MESSAGES_SEEN_MUTATION = gql7`
3387
3255
  mutation markChatMessagesSeen($chatId: ID!, $messageIds: [ID!]!) {
3388
3256
  markChatMessagesSeen(chatId: $chatId, messageIds: $messageIds) {
3389
3257
  ...ChatFields
@@ -3391,7 +3259,7 @@ var MARK_CHAT_MESSAGES_SEEN_MUTATION = gql8`
3391
3259
  }
3392
3260
  ${CHAT_FIELDS_FRAGMENT}
3393
3261
  `;
3394
- var REPORT_CHAT_USER_MUTATION = gql8`
3262
+ var REPORT_CHAT_USER_MUTATION = gql7`
3395
3263
  mutation reportChatUser($input: ReportChatUserInputType!) {
3396
3264
  reportChatUser(input: $input) {
3397
3265
  ...ChatReportFields
@@ -3495,8 +3363,8 @@ var useReportChatUser = () => {
3495
3363
  import { useQuery, useSubscription } from "@apollo/client";
3496
3364
 
3497
3365
  // src/graphql/subscriptions/chat.ts
3498
- import { gql as gql9 } from "@apollo/client";
3499
- var GET_CHAT_MESSAGE = gql9`
3366
+ import { gql as gql8 } from "@apollo/client";
3367
+ var GET_CHAT_MESSAGE = gql8`
3500
3368
  subscription {
3501
3369
  getChatMessage {
3502
3370
  ...ChatFields
@@ -3553,8 +3421,8 @@ var useGetReportedChatUsers = () => {
3553
3421
  import { useMutation as useMutation4 } from "@apollo/client";
3554
3422
 
3555
3423
  // src/graphql/mutations/contactUs.ts
3556
- import { gql as gql10 } from "@apollo/client";
3557
- var CONTACT_US_MUTATION = gql10`
3424
+ import { gql as gql9 } from "@apollo/client";
3425
+ var CONTACT_US_MUTATION = gql9`
3558
3426
  mutation contactUs($input: ContactUsInputType!) {
3559
3427
  contactUs(input: $input) {
3560
3428
  message
@@ -3572,8 +3440,8 @@ var useContactUs = () => {
3572
3440
  import { useMutation as useMutation5 } from "@apollo/client";
3573
3441
 
3574
3442
  // src/graphql/mutations/event.ts
3575
- import { gql as gql11 } from "@apollo/client";
3576
- var CREATE_EVENT_MUTATION = gql11`
3443
+ import { gql as gql10 } from "@apollo/client";
3444
+ var CREATE_EVENT_MUTATION = gql10`
3577
3445
  mutation createEvent($input: EventInputType!) {
3578
3446
  createEvent(input: $input) {
3579
3447
  ...EventFields
@@ -3581,7 +3449,7 @@ var CREATE_EVENT_MUTATION = gql11`
3581
3449
  }
3582
3450
  ${EVENT}
3583
3451
  `;
3584
- var UPDATE_EVENT_MUTATION = gql11`
3452
+ var UPDATE_EVENT_MUTATION = gql10`
3585
3453
  mutation updateEvent($_id: ID!, $input: EventInputType!) {
3586
3454
  updateEvent(_id: $_id, input: $input) {
3587
3455
  ...EventFields
@@ -3589,12 +3457,12 @@ var UPDATE_EVENT_MUTATION = gql11`
3589
3457
  }
3590
3458
  ${EVENT}
3591
3459
  `;
3592
- var DELETE_EVENT_MUTATION = gql11`
3460
+ var DELETE_EVENT_MUTATION = gql10`
3593
3461
  mutation deleteEvent($_id: ID!) {
3594
3462
  deleteEvent(_id: $_id)
3595
3463
  }
3596
3464
  `;
3597
- var CREATE_EVENT_INFO_MUTATION = gql11`
3465
+ var CREATE_EVENT_INFO_MUTATION = gql10`
3598
3466
  mutation createEventInfo($input: EventInfoInputType!) {
3599
3467
  createEventInfo(input: $input) {
3600
3468
  ...EventInfoFields
@@ -3602,7 +3470,7 @@ var CREATE_EVENT_INFO_MUTATION = gql11`
3602
3470
  }
3603
3471
  ${EVENT_INFO}
3604
3472
  `;
3605
- var UPDATE_EVENT_INFO_MUTATION = gql11`
3473
+ var UPDATE_EVENT_INFO_MUTATION = gql10`
3606
3474
  mutation updateEventInfo($_id: ID!, $input: EventInfoInputType!) {
3607
3475
  updateEventInfo(_id: $_id, input: $input) {
3608
3476
  ...EventInfoFields
@@ -3612,11 +3480,11 @@ var UPDATE_EVENT_INFO_MUTATION = gql11`
3612
3480
  `;
3613
3481
 
3614
3482
  // src/graphql/queries/user.ts
3615
- import { gql as gql13 } from "@apollo/client";
3483
+ import { gql as gql12 } from "@apollo/client";
3616
3484
 
3617
3485
  // src/graphql/queries/partner.ts
3618
- import { gql as gql12 } from "@apollo/client";
3619
- var PARTNER = gql12`
3486
+ import { gql as gql11 } from "@apollo/client";
3487
+ var PARTNER = gql11`
3620
3488
  fragment PartnerFields on PartnerType {
3621
3489
  _id
3622
3490
  active
@@ -3671,7 +3539,7 @@ var PARTNER = gql12`
3671
3539
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
3672
3540
  ${CONTACT_DETAILS_FIELDS_FRAGMENT}
3673
3541
  `;
3674
- var GET_PARTNERS = gql12`
3542
+ var GET_PARTNERS = gql11`
3675
3543
  query getPartners {
3676
3544
  partners {
3677
3545
  ...PartnerFields
@@ -3679,7 +3547,7 @@ var GET_PARTNERS = gql12`
3679
3547
  }
3680
3548
  ${PARTNER}
3681
3549
  `;
3682
- var GET_PARTNER = gql12`
3550
+ var GET_PARTNER = gql11`
3683
3551
  query getPartner($_id: ID!) {
3684
3552
  partner(_id: $_id) {
3685
3553
  ...PartnerFields
@@ -3687,7 +3555,7 @@ var GET_PARTNER = gql12`
3687
3555
  }
3688
3556
  ${PARTNER}
3689
3557
  `;
3690
- var GET_PARTNERS_BY_REGION = gql12`
3558
+ var GET_PARTNERS_BY_REGION = gql11`
3691
3559
  query getPartnersByRegion($region: String!) {
3692
3560
  partnersByRegion(region: $region) {
3693
3561
  ...PartnerFields
@@ -3695,7 +3563,7 @@ var GET_PARTNERS_BY_REGION = gql12`
3695
3563
  }
3696
3564
  ${PARTNER}
3697
3565
  `;
3698
- var SEARCH_PARTNERS = gql12`
3566
+ var SEARCH_PARTNERS = gql11`
3699
3567
  query searchPartners($search: String!, $region: String) {
3700
3568
  partnersSearch(search: $search, region: $region) {
3701
3569
  ...PartnerFields
@@ -3705,7 +3573,7 @@ var SEARCH_PARTNERS = gql12`
3705
3573
  `;
3706
3574
 
3707
3575
  // src/graphql/queries/user.ts
3708
- var GET_USERS = gql13`
3576
+ var GET_USERS = gql12`
3709
3577
  query getUsers {
3710
3578
  users {
3711
3579
  ...UserFields
@@ -3713,7 +3581,7 @@ var GET_USERS = gql13`
3713
3581
  }
3714
3582
  ${USER_FIELDS_FRAGMENT}
3715
3583
  `;
3716
- var GET_USER = gql13`
3584
+ var GET_USER = gql12`
3717
3585
  query getUser($_id: ID!) {
3718
3586
  user(_id: $_id) {
3719
3587
  ...UserFields
@@ -3721,7 +3589,7 @@ var GET_USER = gql13`
3721
3589
  }
3722
3590
  ${USER_FIELDS_FRAGMENT}
3723
3591
  `;
3724
- var GET_USER_EVENTS = gql13`
3592
+ var GET_USER_EVENTS = gql12`
3725
3593
  query getUserEvents {
3726
3594
  userEvents {
3727
3595
  ...EventFields
@@ -3729,7 +3597,7 @@ var GET_USER_EVENTS = gql13`
3729
3597
  }
3730
3598
  ${EVENT}
3731
3599
  `;
3732
- var GET_USER_VENDORS = gql13`
3600
+ var GET_USER_VENDORS = gql12`
3733
3601
  query getUserVendors {
3734
3602
  userVendors {
3735
3603
  ...VendorFields
@@ -3737,7 +3605,7 @@ var GET_USER_VENDORS = gql13`
3737
3605
  }
3738
3606
  ${VENDOR}
3739
3607
  `;
3740
- var GET_USER_PARTNERS = gql13`
3608
+ var GET_USER_PARTNERS = gql12`
3741
3609
  query getUserPartners {
3742
3610
  userPartners {
3743
3611
  ...PartnerFields
@@ -3745,7 +3613,7 @@ var GET_USER_PARTNERS = gql13`
3745
3613
  }
3746
3614
  ${PARTNER}
3747
3615
  `;
3748
- var GET_USER_ACTIVITIES = gql13`
3616
+ var GET_USER_ACTIVITIES = gql12`
3749
3617
  query getUserActivities {
3750
3618
  userActivities {
3751
3619
  favourites {
@@ -3919,11 +3787,11 @@ var useGetEventInfo = (eventId) => {
3919
3787
  import { useMutation as useMutation6 } from "@apollo/client";
3920
3788
 
3921
3789
  // src/graphql/mutations/notification.ts
3922
- import { gql as gql15 } from "@apollo/client";
3790
+ import { gql as gql14 } from "@apollo/client";
3923
3791
 
3924
3792
  // src/graphql/queries/notification.ts
3925
- import { gql as gql14 } from "@apollo/client";
3926
- var NOTIFICATION_FRAGMENT = gql14`
3793
+ import { gql as gql13 } from "@apollo/client";
3794
+ var NOTIFICATION_FRAGMENT = gql13`
3927
3795
  fragment NotificationFields on Notification {
3928
3796
  _id
3929
3797
  userId
@@ -3940,7 +3808,7 @@ var NOTIFICATION_FRAGMENT = gql14`
3940
3808
  updatedAt
3941
3809
  }
3942
3810
  `;
3943
- var GET_USER_NOTIFICATIONS = gql14`
3811
+ var GET_USER_NOTIFICATIONS = gql13`
3944
3812
  query getUserNotifications($limit: Int, $offset: Int) {
3945
3813
  userNotifications(limit: $limit, offset: $offset) {
3946
3814
  ...NotificationFields
@@ -3948,7 +3816,7 @@ var GET_USER_NOTIFICATIONS = gql14`
3948
3816
  }
3949
3817
  ${NOTIFICATION_FRAGMENT}
3950
3818
  `;
3951
- var GET_NOTIFICATION_COUNT = gql14`
3819
+ var GET_NOTIFICATION_COUNT = gql13`
3952
3820
  query getNotificationCount {
3953
3821
  notificationCount {
3954
3822
  total
@@ -3958,7 +3826,7 @@ var GET_NOTIFICATION_COUNT = gql14`
3958
3826
  `;
3959
3827
 
3960
3828
  // src/graphql/mutations/notification.ts
3961
- var CREATE_BULK_NOTIFICATIONS = gql15`
3829
+ var CREATE_BULK_NOTIFICATIONS = gql14`
3962
3830
  mutation createBulkNotifications($input: CreateBulkNotificationInput!) {
3963
3831
  createBulkNotifications(input: $input) {
3964
3832
  ...NotificationFields
@@ -3966,7 +3834,7 @@ var CREATE_BULK_NOTIFICATIONS = gql15`
3966
3834
  }
3967
3835
  ${NOTIFICATION_FRAGMENT}
3968
3836
  `;
3969
- var MARK_NOTIFICATION_READ = gql15`
3837
+ var MARK_NOTIFICATION_READ = gql14`
3970
3838
  mutation markNotificationRead($_id: ID!) {
3971
3839
  markNotificationRead(_id: $_id) {
3972
3840
  ...NotificationFields
@@ -3974,17 +3842,17 @@ var MARK_NOTIFICATION_READ = gql15`
3974
3842
  }
3975
3843
  ${NOTIFICATION_FRAGMENT}
3976
3844
  `;
3977
- var MARK_ALL_NOTIFICATIONS_READ = gql15`
3845
+ var MARK_ALL_NOTIFICATIONS_READ = gql14`
3978
3846
  mutation markAllNotificationsRead {
3979
3847
  markAllNotificationsRead
3980
3848
  }
3981
3849
  `;
3982
- var DELETE_NOTIFICATION = gql15`
3850
+ var DELETE_NOTIFICATION = gql14`
3983
3851
  mutation deleteNotification($_id: ID!) {
3984
3852
  deleteNotification(_id: $_id)
3985
3853
  }
3986
3854
  `;
3987
- var DELETE_ALL_NOTIFICATIONS = gql15`
3855
+ var DELETE_ALL_NOTIFICATIONS = gql14`
3988
3856
  mutation deleteAllNotifications {
3989
3857
  deleteAllNotifications
3990
3858
  }
@@ -4092,8 +3960,8 @@ var useGetNotificationCount = () => {
4092
3960
  import { useSubscription as useSubscription2 } from "@apollo/client";
4093
3961
 
4094
3962
  // src/graphql/subscriptions/notification.ts
4095
- import { gql as gql16 } from "@apollo/client";
4096
- var GET_NOTIFICATIONS_SUBSCRIPTION = gql16`
3963
+ import { gql as gql15 } from "@apollo/client";
3964
+ var GET_NOTIFICATIONS_SUBSCRIPTION = gql15`
4097
3965
  subscription {
4098
3966
  getUserNotifications {
4099
3967
  ...NotificationFields
@@ -4101,7 +3969,7 @@ var GET_NOTIFICATIONS_SUBSCRIPTION = gql16`
4101
3969
  }
4102
3970
  ${NOTIFICATION_FRAGMENT}
4103
3971
  `;
4104
- var GET_NOTIFICATION_COUNT_SUBSCRIPTION = gql16`
3972
+ var GET_NOTIFICATION_COUNT_SUBSCRIPTION = gql15`
4105
3973
  subscription {
4106
3974
  getNotificationCount {
4107
3975
  total
@@ -4138,8 +4006,8 @@ var useGetNotificationCountSubscription = () => {
4138
4006
  import { useMutation as useMutation7 } from "@apollo/client";
4139
4007
 
4140
4008
  // src/graphql/mutations/poster.ts
4141
- import { gql as gql17 } from "@apollo/client";
4142
- var CREATE_POSTER_MUTATION = gql17`
4009
+ import { gql as gql16 } from "@apollo/client";
4010
+ var CREATE_POSTER_MUTATION = gql16`
4143
4011
  mutation createPoster($input: PosterInputType!) {
4144
4012
  createPoster(input: $input) {
4145
4013
  message
@@ -4166,8 +4034,8 @@ var useCreatePoster = () => {
4166
4034
  import { useMutation as useMutation8 } from "@apollo/client";
4167
4035
 
4168
4036
  // src/graphql/mutations/pushToken.ts
4169
- import { gql as gql18 } from "@apollo/client";
4170
- var CREATE_PUSH_TOKEN_MUTATION = gql18`
4037
+ import { gql as gql17 } from "@apollo/client";
4038
+ var CREATE_PUSH_TOKEN_MUTATION = gql17`
4171
4039
  mutation createPushToken($input: PushTokenInput!) {
4172
4040
  createPushToken(input: $input) {
4173
4041
  success
@@ -4187,11 +4055,11 @@ var useCreatePushToken = () => {
4187
4055
  import { useMutation as useMutation9 } from "@apollo/client";
4188
4056
 
4189
4057
  // src/graphql/mutations/relation.ts
4190
- import { gql as gql20 } from "@apollo/client";
4058
+ import { gql as gql19 } from "@apollo/client";
4191
4059
 
4192
4060
  // src/graphql/queries/relation.ts
4193
- import { gql as gql19 } from "@apollo/client";
4194
- var RELATION_FIELDS_FRAGMENT = gql19`
4061
+ import { gql as gql18 } from "@apollo/client";
4062
+ var RELATION_FIELDS_FRAGMENT = gql18`
4195
4063
  fragment RelationFields on RelationType {
4196
4064
  _id
4197
4065
  active
@@ -4209,7 +4077,7 @@ var RELATION_FIELDS_FRAGMENT = gql19`
4209
4077
  }
4210
4078
  ${RELATION_DATES_FRAGMENT}
4211
4079
  `;
4212
- var GET_RELATION = gql19`
4080
+ var GET_RELATION = gql18`
4213
4081
  query getRelation($_id: ID!) {
4214
4082
  relation(_id: $_id) {
4215
4083
  ...RelationFields
@@ -4217,7 +4085,7 @@ var GET_RELATION = gql19`
4217
4085
  }
4218
4086
  ${RELATION_FIELDS_FRAGMENT}
4219
4087
  `;
4220
- var GET_RELATION_BY_EVENT_AND_VENDOR = gql19`
4088
+ var GET_RELATION_BY_EVENT_AND_VENDOR = gql18`
4221
4089
  query getRelationByEventAndVendor($eventId: ID!, $vendorId: ID!) {
4222
4090
  relationByEventAndVendor(eventId: $eventId, vendorId: $vendorId) {
4223
4091
  ...RelationFields
@@ -4225,7 +4093,7 @@ var GET_RELATION_BY_EVENT_AND_VENDOR = gql19`
4225
4093
  }
4226
4094
  ${RELATION_FIELDS_FRAGMENT}
4227
4095
  `;
4228
- var GET_EVENT_RELATIONS = gql19`
4096
+ var GET_EVENT_RELATIONS = gql18`
4229
4097
  query getEventRelations($eventId: ID!) {
4230
4098
  eventRelations(eventId: $eventId) {
4231
4099
  ...RelationFields
@@ -4233,7 +4101,7 @@ var GET_EVENT_RELATIONS = gql19`
4233
4101
  }
4234
4102
  ${RELATION_FIELDS_FRAGMENT}
4235
4103
  `;
4236
- var GET_VENDOR_RELATIONS = gql19`
4104
+ var GET_VENDOR_RELATIONS = gql18`
4237
4105
  query getVendorRelations($vendorId: ID!) {
4238
4106
  vendorRelations(vendorId: $vendorId) {
4239
4107
  ...RelationFields
@@ -4241,7 +4109,7 @@ var GET_VENDOR_RELATIONS = gql19`
4241
4109
  }
4242
4110
  ${RELATION_FIELDS_FRAGMENT}
4243
4111
  `;
4244
- var GET_RESOURCE_CONNECTIONS = gql19`
4112
+ var GET_RESOURCE_CONNECTIONS = gql18`
4245
4113
  query getResourceConnections(
4246
4114
  $resourceId: ID!
4247
4115
  $resourceType: ResourceTypeEnum!
@@ -4260,7 +4128,7 @@ var GET_RESOURCE_CONNECTIONS = gql19`
4260
4128
  `;
4261
4129
 
4262
4130
  // src/graphql/mutations/relation.ts
4263
- var CREATE_RELATION_MUTATION = gql20`
4131
+ var CREATE_RELATION_MUTATION = gql19`
4264
4132
  mutation createRelation($input: RelationInputType!) {
4265
4133
  createRelation(input: $input) {
4266
4134
  ...RelationFields
@@ -4268,7 +4136,7 @@ var CREATE_RELATION_MUTATION = gql20`
4268
4136
  }
4269
4137
  ${RELATION_FIELDS_FRAGMENT}
4270
4138
  `;
4271
- var UPDATE_RELATION_MUTATION = gql20`
4139
+ var UPDATE_RELATION_MUTATION = gql19`
4272
4140
  mutation updateRelation($_id: ID!, $input: RelationInputType!) {
4273
4141
  updateRelation(_id: $_id, input: $input) {
4274
4142
  ...RelationFields
@@ -4276,7 +4144,7 @@ var UPDATE_RELATION_MUTATION = gql20`
4276
4144
  }
4277
4145
  ${RELATION_FIELDS_FRAGMENT}
4278
4146
  `;
4279
- var DELETE_RELATION_MUTATION = gql20`
4147
+ var DELETE_RELATION_MUTATION = gql19`
4280
4148
  mutation deleteRelation($_id: ID!) {
4281
4149
  deleteRelation(_id: $_id) {
4282
4150
  ...RelationFields
@@ -4465,8 +4333,8 @@ var useGetResourceConnections = (resourceId, resourceType) => {
4465
4333
  import { useMutation as useMutation10 } from "@apollo/client";
4466
4334
 
4467
4335
  // src/graphql/mutations/vendor.ts
4468
- import { gql as gql21 } from "@apollo/client";
4469
- var CREATE_VENDOR_MUTATION = gql21`
4336
+ import { gql as gql20 } from "@apollo/client";
4337
+ var CREATE_VENDOR_MUTATION = gql20`
4470
4338
  mutation createVendor($input: VendorInputType!) {
4471
4339
  createVendor(input: $input) {
4472
4340
  ...VendorFields
@@ -4474,7 +4342,7 @@ var CREATE_VENDOR_MUTATION = gql21`
4474
4342
  }
4475
4343
  ${VENDOR}
4476
4344
  `;
4477
- var UPDATE_VENDOR_MUTATION = gql21`
4345
+ var UPDATE_VENDOR_MUTATION = gql20`
4478
4346
  mutation updateVendor($_id: ID!, $input: VendorInputType!) {
4479
4347
  updateVendor(_id: $_id, input: $input) {
4480
4348
  ...VendorFields
@@ -4482,12 +4350,12 @@ var UPDATE_VENDOR_MUTATION = gql21`
4482
4350
  }
4483
4351
  ${VENDOR}
4484
4352
  `;
4485
- var DELETE_VENDOR_MUTATION = gql21`
4353
+ var DELETE_VENDOR_MUTATION = gql20`
4486
4354
  mutation deleteVendor($_id: ID!) {
4487
4355
  deleteVendor(_id: $_id)
4488
4356
  }
4489
4357
  `;
4490
- var CREATE_VENDOR_INFO_MUTATION = gql21`
4358
+ var CREATE_VENDOR_INFO_MUTATION = gql20`
4491
4359
  mutation createVendorInfo($input: VendorInfoInputType!) {
4492
4360
  createVendorInfo(input: $input) {
4493
4361
  ...VendorInfoFields
@@ -4495,7 +4363,7 @@ var CREATE_VENDOR_INFO_MUTATION = gql21`
4495
4363
  }
4496
4364
  ${VENDOR_INFO}
4497
4365
  `;
4498
- var UPDATE_VENDOR_INFO_MUTATION = gql21`
4366
+ var UPDATE_VENDOR_INFO_MUTATION = gql20`
4499
4367
  mutation updateVendorInfo($_id: ID!, $input: VendorInfoInputType!) {
4500
4368
  updateVendorInfo(_id: $_id, input: $input) {
4501
4369
  ...VendorInfoFields
@@ -4503,7 +4371,7 @@ var UPDATE_VENDOR_INFO_MUTATION = gql21`
4503
4371
  }
4504
4372
  ${VENDOR_INFO}
4505
4373
  `;
4506
- var CREATE_UNREGISTERED_VENDOR_MUTATION = gql21`
4374
+ var CREATE_UNREGISTERED_VENDOR_MUTATION = gql20`
4507
4375
  mutation createUnregisteredVendor($input: UnregisteredVendorInputType!) {
4508
4376
  createUnregisteredVendor(input: $input) {
4509
4377
  ...UnregisteredVendorFields
@@ -4511,7 +4379,7 @@ var CREATE_UNREGISTERED_VENDOR_MUTATION = gql21`
4511
4379
  }
4512
4380
  ${UNREGISTERED_VENDOR}
4513
4381
  `;
4514
- var UPDATE_UNREGISTERED_VENDOR_MUTATION = gql21`
4382
+ var UPDATE_UNREGISTERED_VENDOR_MUTATION = gql20`
4515
4383
  mutation updateUnregisteredVendor(
4516
4384
  $_id: ID!
4517
4385
  $input: UnregisteredVendorInputType!
@@ -4522,7 +4390,7 @@ var UPDATE_UNREGISTERED_VENDOR_MUTATION = gql21`
4522
4390
  }
4523
4391
  ${UNREGISTERED_VENDOR}
4524
4392
  `;
4525
- var DELETE_UNREGISTERED_VENDOR_MUTATION = gql21`
4393
+ var DELETE_UNREGISTERED_VENDOR_MUTATION = gql20`
4526
4394
  mutation deleteUnregisteredVendor($_id: ID!) {
4527
4395
  deleteUnregisteredVendor(_id: $_id)
4528
4396
  }
@@ -4702,99 +4570,12 @@ var useGetUnregisteredVendor = (_id) => {
4702
4570
  return { error, loading, refetch, unregisteredVendor };
4703
4571
  };
4704
4572
 
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
4573
  // src/graphql/hooks/user/hooksMutation.ts
4793
- import { useMutation as useMutation12 } from "@apollo/client";
4574
+ import { useMutation as useMutation11 } from "@apollo/client";
4794
4575
 
4795
4576
  // src/graphql/mutations/user.ts
4796
- import { gql as gql23 } from "@apollo/client";
4797
- var CREATE_USER_MUTATION = gql23`
4577
+ import { gql as gql21 } from "@apollo/client";
4578
+ var CREATE_USER_MUTATION = gql21`
4798
4579
  mutation createUser($input: UserInputType!) {
4799
4580
  createUser(input: $input) {
4800
4581
  ...UserFields
@@ -4802,7 +4583,7 @@ var CREATE_USER_MUTATION = gql23`
4802
4583
  }
4803
4584
  ${USER_FIELDS_FRAGMENT}
4804
4585
  `;
4805
- var UPDATE_USER_MUTATION = gql23`
4586
+ var UPDATE_USER_MUTATION = gql21`
4806
4587
  mutation updateUser($_id: ID!, $input: UserInputType!) {
4807
4588
  updateUser(_id: $_id, input: $input) {
4808
4589
  ...UserFields
@@ -4810,12 +4591,12 @@ var UPDATE_USER_MUTATION = gql23`
4810
4591
  }
4811
4592
  ${USER_FIELDS_FRAGMENT}
4812
4593
  `;
4813
- var DELETE_USER_MUTATION = gql23`
4594
+ var DELETE_USER_MUTATION = gql21`
4814
4595
  mutation deleteUser($email: String!) {
4815
4596
  deleteUser(email: $email)
4816
4597
  }
4817
4598
  `;
4818
- var ADD_USER_FAVOURITE_RESOURCE_MUTATION = gql23`
4599
+ var ADD_USER_FAVOURITE_RESOURCE_MUTATION = gql21`
4819
4600
  mutation addUserFavouriteResource(
4820
4601
  $resourceId: ID!
4821
4602
  $resourceType: ResourceTypeEnum!
@@ -4829,7 +4610,7 @@ var ADD_USER_FAVOURITE_RESOURCE_MUTATION = gql23`
4829
4610
  }
4830
4611
  ${USER_FIELDS_FRAGMENT}
4831
4612
  `;
4832
- var REMOVE_USER_FAVOURITE_RESOURCE_MUTATION = gql23`
4613
+ var REMOVE_USER_FAVOURITE_RESOURCE_MUTATION = gql21`
4833
4614
  mutation removeUserFavouriteResource(
4834
4615
  $resourceId: ID!
4835
4616
  $resourceType: ResourceTypeEnum!
@@ -4843,7 +4624,7 @@ var REMOVE_USER_FAVOURITE_RESOURCE_MUTATION = gql23`
4843
4624
  }
4844
4625
  ${USER_FIELDS_FRAGMENT}
4845
4626
  `;
4846
- var ADD_USER_INTEREST_RESOURCE_MUTATION = gql23`
4627
+ var ADD_USER_INTEREST_RESOURCE_MUTATION = gql21`
4847
4628
  mutation addUserInterestResource($input: UserActivityInputType!) {
4848
4629
  addUserInterestResource(input: $input) {
4849
4630
  ...UserFields
@@ -4851,7 +4632,7 @@ var ADD_USER_INTEREST_RESOURCE_MUTATION = gql23`
4851
4632
  }
4852
4633
  ${USER_FIELDS_FRAGMENT}
4853
4634
  `;
4854
- var REMOVE_USER_INTEREST_RESOURCE_MUTATION = gql23`
4635
+ var REMOVE_USER_INTEREST_RESOURCE_MUTATION = gql21`
4855
4636
  mutation removeUserInterestResource($input: UserActivityInputType!) {
4856
4637
  removeUserInterestResource(input: $input) {
4857
4638
  ...UserFields
@@ -4859,7 +4640,7 @@ var REMOVE_USER_INTEREST_RESOURCE_MUTATION = gql23`
4859
4640
  }
4860
4641
  ${USER_FIELDS_FRAGMENT}
4861
4642
  `;
4862
- var ADD_USER_GOING_RESOURCE_MUTATION = gql23`
4643
+ var ADD_USER_GOING_RESOURCE_MUTATION = gql21`
4863
4644
  mutation addUserGoingResource($input: UserActivityInputType!) {
4864
4645
  addUserGoingResource(input: $input) {
4865
4646
  ...UserFields
@@ -4867,7 +4648,7 @@ var ADD_USER_GOING_RESOURCE_MUTATION = gql23`
4867
4648
  }
4868
4649
  ${USER_FIELDS_FRAGMENT}
4869
4650
  `;
4870
- var REMOVE_USER_GOING_RESOURCE_MUTATION = gql23`
4651
+ var REMOVE_USER_GOING_RESOURCE_MUTATION = gql21`
4871
4652
  mutation removeUserGoingResource($input: UserActivityInputType!) {
4872
4653
  removeUserGoingResource(input: $input) {
4873
4654
  ...UserFields
@@ -4875,7 +4656,7 @@ var REMOVE_USER_GOING_RESOURCE_MUTATION = gql23`
4875
4656
  }
4876
4657
  ${USER_FIELDS_FRAGMENT}
4877
4658
  `;
4878
- var ADD_USER_PRESENT_RESOURCE_MUTATION = gql23`
4659
+ var ADD_USER_PRESENT_RESOURCE_MUTATION = gql21`
4879
4660
  mutation addUserPresentResource($input: UserActivityInputType!) {
4880
4661
  addUserPresentResource(input: $input) {
4881
4662
  ...UserFields
@@ -4883,7 +4664,7 @@ var ADD_USER_PRESENT_RESOURCE_MUTATION = gql23`
4883
4664
  }
4884
4665
  ${USER_FIELDS_FRAGMENT}
4885
4666
  `;
4886
- var REMOVE_USER_PRESENT_RESOURCE_MUTATION = gql23`
4667
+ var REMOVE_USER_PRESENT_RESOURCE_MUTATION = gql21`
4887
4668
  mutation removeUserPresentResource($input: UserActivityInputType!) {
4888
4669
  removeUserPresentResource(input: $input) {
4889
4670
  ...UserFields
@@ -4891,7 +4672,7 @@ var REMOVE_USER_PRESENT_RESOURCE_MUTATION = gql23`
4891
4672
  }
4892
4673
  ${USER_FIELDS_FRAGMENT}
4893
4674
  `;
4894
- var SELECT_STANDARD_PACKAGE_MUTATION = gql23`
4675
+ var SELECT_STANDARD_PACKAGE_MUTATION = gql21`
4895
4676
  mutation selectStandardPackage($selectedLicence: LicencesEnumType!) {
4896
4677
  selectStandardPackage(selectedLicence: $selectedLicence) {
4897
4678
  licences {
@@ -4906,11 +4687,11 @@ var SELECT_STANDARD_PACKAGE_MUTATION = gql23`
4906
4687
 
4907
4688
  // src/graphql/hooks/user/hooksMutation.ts
4908
4689
  var useCreateUser = () => {
4909
- const [createUser, { loading, error }] = useMutation12(CREATE_USER_MUTATION);
4690
+ const [createUser, { loading, error }] = useMutation11(CREATE_USER_MUTATION);
4910
4691
  return { createUser, error, loading };
4911
4692
  };
4912
4693
  var useUpdateUser = () => {
4913
- const [updateUser, { loading, error }] = useMutation12(UPDATE_USER_MUTATION, {
4694
+ const [updateUser, { loading, error }] = useMutation11(UPDATE_USER_MUTATION, {
4914
4695
  awaitRefetchQueries: true,
4915
4696
  refetchQueries: (mutationResult) => {
4916
4697
  const userId = mutationResult?.data?.updateUser?._id;
@@ -4921,11 +4702,11 @@ var useUpdateUser = () => {
4921
4702
  return { error, loading, updateUser };
4922
4703
  };
4923
4704
  var useDeleteUser = () => {
4924
- const [deleteUser, { loading, error }] = useMutation12(DELETE_USER_MUTATION);
4705
+ const [deleteUser, { loading, error }] = useMutation11(DELETE_USER_MUTATION);
4925
4706
  return { deleteUser, error, loading };
4926
4707
  };
4927
4708
  var useAddUserFavouriteResource = () => {
4928
- const [addUserFavouriteResource, { loading, error }] = useMutation12(
4709
+ const [addUserFavouriteResource, { loading, error }] = useMutation11(
4929
4710
  ADD_USER_FAVOURITE_RESOURCE_MUTATION,
4930
4711
  {
4931
4712
  awaitRefetchQueries: true,
@@ -4935,7 +4716,7 @@ var useAddUserFavouriteResource = () => {
4935
4716
  return { addUserFavouriteResource, error, loading };
4936
4717
  };
4937
4718
  var useRemoveUserFavouriteResource = () => {
4938
- const [removeUserFavouriteResource, { loading, error }] = useMutation12(
4719
+ const [removeUserFavouriteResource, { loading, error }] = useMutation11(
4939
4720
  REMOVE_USER_FAVOURITE_RESOURCE_MUTATION,
4940
4721
  {
4941
4722
  awaitRefetchQueries: true,
@@ -4945,7 +4726,7 @@ var useRemoveUserFavouriteResource = () => {
4945
4726
  return { error, loading, removeUserFavouriteResource };
4946
4727
  };
4947
4728
  var useAddUserInterestResource = () => {
4948
- const [addUserInterestResource, { loading, error }] = useMutation12(
4729
+ const [addUserInterestResource, { loading, error }] = useMutation11(
4949
4730
  ADD_USER_INTEREST_RESOURCE_MUTATION,
4950
4731
  {
4951
4732
  awaitRefetchQueries: true,
@@ -4955,7 +4736,7 @@ var useAddUserInterestResource = () => {
4955
4736
  return { addUserInterestResource, error, loading };
4956
4737
  };
4957
4738
  var useRemoveUserInterestResource = () => {
4958
- const [removeUserInterestResource, { loading, error }] = useMutation12(
4739
+ const [removeUserInterestResource, { loading, error }] = useMutation11(
4959
4740
  REMOVE_USER_INTEREST_RESOURCE_MUTATION,
4960
4741
  {
4961
4742
  awaitRefetchQueries: true,
@@ -4965,7 +4746,7 @@ var useRemoveUserInterestResource = () => {
4965
4746
  return { error, loading, removeUserInterestResource };
4966
4747
  };
4967
4748
  var useAddUserGoingResource = () => {
4968
- const [addUserGoingResource, { loading, error }] = useMutation12(
4749
+ const [addUserGoingResource, { loading, error }] = useMutation11(
4969
4750
  ADD_USER_GOING_RESOURCE_MUTATION,
4970
4751
  {
4971
4752
  awaitRefetchQueries: true,
@@ -4975,7 +4756,7 @@ var useAddUserGoingResource = () => {
4975
4756
  return { addUserGoingResource, error, loading };
4976
4757
  };
4977
4758
  var useRemoveUserGoingResource = () => {
4978
- const [removeUserGoingResource, { loading, error }] = useMutation12(
4759
+ const [removeUserGoingResource, { loading, error }] = useMutation11(
4979
4760
  REMOVE_USER_GOING_RESOURCE_MUTATION,
4980
4761
  {
4981
4762
  awaitRefetchQueries: true,
@@ -4985,7 +4766,7 @@ var useRemoveUserGoingResource = () => {
4985
4766
  return { error, loading, removeUserGoingResource };
4986
4767
  };
4987
4768
  var useAddUserPresentResource = () => {
4988
- const [addUserPresentResource, { loading, error }] = useMutation12(
4769
+ const [addUserPresentResource, { loading, error }] = useMutation11(
4989
4770
  ADD_USER_PRESENT_RESOURCE_MUTATION,
4990
4771
  {
4991
4772
  awaitRefetchQueries: true,
@@ -4995,7 +4776,7 @@ var useAddUserPresentResource = () => {
4995
4776
  return { addUserPresentResource, error, loading };
4996
4777
  };
4997
4778
  var useRemoveUserPresentResource = () => {
4998
- const [removeUserPresentResource, { loading, error }] = useMutation12(
4779
+ const [removeUserPresentResource, { loading, error }] = useMutation11(
4999
4780
  REMOVE_USER_PRESENT_RESOURCE_MUTATION,
5000
4781
  {
5001
4782
  awaitRefetchQueries: true,
@@ -5005,7 +4786,7 @@ var useRemoveUserPresentResource = () => {
5005
4786
  return { error, loading, removeUserPresentResource };
5006
4787
  };
5007
4788
  var useSelectStandardPackage = () => {
5008
- const [selectStandardPackage, { loading, error }] = useMutation12(SELECT_STANDARD_PACKAGE_MUTATION, {
4789
+ const [selectStandardPackage, { loading, error }] = useMutation11(SELECT_STANDARD_PACKAGE_MUTATION, {
5009
4790
  awaitRefetchQueries: true,
5010
4791
  refetchQueries: (mutationResult) => {
5011
4792
  const userId = mutationResult?.data?.selectStandardPackage?.userId;
@@ -5021,9 +4802,9 @@ var useSelectStandardPackage = () => {
5021
4802
  };
5022
4803
 
5023
4804
  // src/graphql/hooks/user/hooksQuery.ts
5024
- import { useQuery as useQuery7 } from "@apollo/client";
4805
+ import { useQuery as useQuery6 } from "@apollo/client";
5025
4806
  var useGetUsers = () => {
5026
- const { loading, error, data, refetch } = useQuery7(
4807
+ const { loading, error, data, refetch } = useQuery6(
5027
4808
  GET_USERS,
5028
4809
  {
5029
4810
  fetchPolicy: "network-only"
@@ -5033,7 +4814,7 @@ var useGetUsers = () => {
5033
4814
  return { error, loading, refetch, users };
5034
4815
  };
5035
4816
  var useGetUser = (_id) => {
5036
- const { loading, error, data, refetch } = useQuery7(
4817
+ const { loading, error, data, refetch } = useQuery6(
5037
4818
  GET_USER,
5038
4819
  {
5039
4820
  variables: { _id }
@@ -5043,28 +4824,28 @@ var useGetUser = (_id) => {
5043
4824
  return { error, loading, refetch, user };
5044
4825
  };
5045
4826
  var useGetUserEvents = () => {
5046
- const { loading, error, data, refetch } = useQuery7(GET_USER_EVENTS, {
4827
+ const { loading, error, data, refetch } = useQuery6(GET_USER_EVENTS, {
5047
4828
  fetchPolicy: "network-only"
5048
4829
  });
5049
4830
  const userEvents = data?.userEvents || [];
5050
4831
  return { error, loading, refetch, userEvents };
5051
4832
  };
5052
4833
  var useGetUserVendors = () => {
5053
- const { loading, error, data, refetch } = useQuery7(GET_USER_VENDORS, {
4834
+ const { loading, error, data, refetch } = useQuery6(GET_USER_VENDORS, {
5054
4835
  fetchPolicy: "network-only"
5055
4836
  });
5056
4837
  const userVendors = data?.userVendors || [];
5057
4838
  return { error, loading, refetch, userVendors };
5058
4839
  };
5059
4840
  var useGetUserPartners = () => {
5060
- const { loading, error, data, refetch } = useQuery7(GET_USER_PARTNERS, {
4841
+ const { loading, error, data, refetch } = useQuery6(GET_USER_PARTNERS, {
5061
4842
  fetchPolicy: "network-only"
5062
4843
  });
5063
4844
  const userPartners = data?.userPartners || [];
5064
4845
  return { error, loading, refetch, userPartners };
5065
4846
  };
5066
4847
  var useGetUserActivities = () => {
5067
- const { loading, error, data, refetch } = useQuery7(GET_USER_ACTIVITIES, {
4848
+ const { loading, error, data, refetch } = useQuery6(GET_USER_ACTIVITIES, {
5068
4849
  fetchPolicy: "network-only"
5069
4850
  });
5070
4851
  const userActivities = {
@@ -5086,14 +4867,14 @@ var useGetUserActivities = () => {
5086
4867
  };
5087
4868
 
5088
4869
  // src/graphql/hooks/ad/hooksMutation.ts
5089
- import { useMutation as useMutation13 } from "@apollo/client";
4870
+ import { useMutation as useMutation12 } from "@apollo/client";
5090
4871
 
5091
4872
  // src/graphql/mutations/ad.ts
5092
- import { gql as gql25 } from "@apollo/client";
4873
+ import { gql as gql23 } from "@apollo/client";
5093
4874
 
5094
4875
  // src/graphql/queries/ad.ts
5095
- import { gql as gql24 } from "@apollo/client";
5096
- var AD_FIELDS_FRAGMENT = gql24`
4876
+ import { gql as gql22 } from "@apollo/client";
4877
+ var AD_FIELDS_FRAGMENT = gql22`
5097
4878
  fragment AdFields on AdType {
5098
4879
  _id
5099
4880
  active
@@ -5121,7 +4902,7 @@ var AD_FIELDS_FRAGMENT = gql24`
5121
4902
  }
5122
4903
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
5123
4904
  `;
5124
- var GET_ADS = gql24`
4905
+ var GET_ADS = gql22`
5125
4906
  query getAds {
5126
4907
  ads {
5127
4908
  ...AdFields
@@ -5129,7 +4910,7 @@ var GET_ADS = gql24`
5129
4910
  }
5130
4911
  ${AD_FIELDS_FRAGMENT}
5131
4912
  `;
5132
- var GET_AD = gql24`
4913
+ var GET_AD = gql22`
5133
4914
  query getAd($_id: ID!) {
5134
4915
  ad(_id: $_id) {
5135
4916
  ...AdFields
@@ -5137,7 +4918,7 @@ var GET_AD = gql24`
5137
4918
  }
5138
4919
  ${AD_FIELDS_FRAGMENT}
5139
4920
  `;
5140
- var GET_ADS_BY_REGION = gql24`
4921
+ var GET_ADS_BY_REGION = gql22`
5141
4922
  query getAdsByRegion($region: String!, $status: AdStatusTypeEnum) {
5142
4923
  adsByRegion(region: $region, status: $status) {
5143
4924
  ...AdFields
@@ -5147,7 +4928,7 @@ var GET_ADS_BY_REGION = gql24`
5147
4928
  `;
5148
4929
 
5149
4930
  // src/graphql/mutations/ad.ts
5150
- var CREATE_AD_MUTATION = gql25`
4931
+ var CREATE_AD_MUTATION = gql23`
5151
4932
  mutation createAd($input: AdInputType!) {
5152
4933
  createAd(input: $input) {
5153
4934
  ...AdFields
@@ -5155,7 +4936,7 @@ var CREATE_AD_MUTATION = gql25`
5155
4936
  }
5156
4937
  ${AD_FIELDS_FRAGMENT}
5157
4938
  `;
5158
- var UPDATE_AD_MUTATION = gql25`
4939
+ var UPDATE_AD_MUTATION = gql23`
5159
4940
  mutation updateAd($_id: ID!, $input: AdInputType!) {
5160
4941
  updateAd(_id: $_id, input: $input) {
5161
4942
  ...AdFields
@@ -5163,7 +4944,7 @@ var UPDATE_AD_MUTATION = gql25`
5163
4944
  }
5164
4945
  ${AD_FIELDS_FRAGMENT}
5165
4946
  `;
5166
- var DELETE_AD_MUTATION = gql25`
4947
+ var DELETE_AD_MUTATION = gql23`
5167
4948
  mutation deleteAd($_id: ID!) {
5168
4949
  deleteAd(_id: $_id)
5169
4950
  }
@@ -5171,7 +4952,7 @@ var DELETE_AD_MUTATION = gql25`
5171
4952
 
5172
4953
  // src/graphql/hooks/ad/hooksMutation.ts
5173
4954
  var useCreateAd = () => {
5174
- const [createAd, { loading, error }] = useMutation13(CREATE_AD_MUTATION, {
4955
+ const [createAd, { loading, error }] = useMutation12(CREATE_AD_MUTATION, {
5175
4956
  awaitRefetchQueries: true,
5176
4957
  refetchQueries: [{ query: GET_ADS }]
5177
4958
  });
@@ -5182,7 +4963,7 @@ var useCreateAd = () => {
5182
4963
  };
5183
4964
  };
5184
4965
  var useUpdateAd = () => {
5185
- const [updateAd, { loading, error }] = useMutation13(UPDATE_AD_MUTATION, {
4966
+ const [updateAd, { loading, error }] = useMutation12(UPDATE_AD_MUTATION, {
5186
4967
  awaitRefetchQueries: true,
5187
4968
  refetchQueries: [{ query: GET_ADS }]
5188
4969
  });
@@ -5193,7 +4974,7 @@ var useUpdateAd = () => {
5193
4974
  };
5194
4975
  };
5195
4976
  var useDeleteAd = () => {
5196
- const [deleteAd, { loading, error }] = useMutation13(DELETE_AD_MUTATION, {
4977
+ const [deleteAd, { loading, error }] = useMutation12(DELETE_AD_MUTATION, {
5197
4978
  awaitRefetchQueries: true,
5198
4979
  refetchQueries: [{ query: GET_ADS }]
5199
4980
  });
@@ -5205,9 +4986,9 @@ var useDeleteAd = () => {
5205
4986
  };
5206
4987
 
5207
4988
  // src/graphql/hooks/ad/hooksQuery.ts
5208
- import { useQuery as useQuery8 } from "@apollo/client";
4989
+ import { useQuery as useQuery7 } from "@apollo/client";
5209
4990
  var useGetAds = () => {
5210
- const { data, loading, error, refetch } = useQuery8(
4991
+ const { data, loading, error, refetch } = useQuery7(
5211
4992
  GET_ADS,
5212
4993
  {
5213
4994
  fetchPolicy: "no-cache"
@@ -5221,7 +5002,7 @@ var useGetAds = () => {
5221
5002
  };
5222
5003
  };
5223
5004
  var useGetAd = (_id) => {
5224
- const { data, loading, error, refetch } = useQuery8(GET_AD, {
5005
+ const { data, loading, error, refetch } = useQuery7(GET_AD, {
5225
5006
  fetchPolicy: "no-cache",
5226
5007
  skip: !_id,
5227
5008
  variables: { _id }
@@ -5234,7 +5015,7 @@ var useGetAd = (_id) => {
5234
5015
  };
5235
5016
  };
5236
5017
  var useGetAdsByRegion = (region, status) => {
5237
- const { data, loading, error, refetch } = useQuery8(GET_ADS_BY_REGION, {
5018
+ const { data, loading, error, refetch } = useQuery7(GET_ADS_BY_REGION, {
5238
5019
  fetchPolicy: "no-cache",
5239
5020
  skip: !region,
5240
5021
  variables: { region, status }
@@ -5248,11 +5029,11 @@ var useGetAdsByRegion = (region, status) => {
5248
5029
  };
5249
5030
 
5250
5031
  // src/graphql/hooks/resourceActivities/hooksMutation.ts
5251
- import { useMutation as useMutation14 } from "@apollo/client";
5032
+ import { useMutation as useMutation13 } from "@apollo/client";
5252
5033
 
5253
5034
  // src/graphql/mutations/resourceActivities.ts
5254
- import { gql as gql26 } from "@apollo/client";
5255
- var CREATE_RESOURCE_ACTIVITY_MUTATION = gql26`
5035
+ import { gql as gql24 } from "@apollo/client";
5036
+ var CREATE_RESOURCE_ACTIVITY_MUTATION = gql24`
5256
5037
  mutation createResourceActivity($input: ResourceActivityInputType!) {
5257
5038
  createResourceActivity(input: $input)
5258
5039
  }
@@ -5260,18 +5041,18 @@ var CREATE_RESOURCE_ACTIVITY_MUTATION = gql26`
5260
5041
 
5261
5042
  // src/graphql/hooks/resourceActivities/hooksMutation.ts
5262
5043
  var useCreateResourceActivity = () => {
5263
- const [createResourceActivity, { loading, error }] = useMutation14(
5044
+ const [createResourceActivity, { loading, error }] = useMutation13(
5264
5045
  CREATE_RESOURCE_ACTIVITY_MUTATION
5265
5046
  );
5266
5047
  return { createResourceActivity, error, loading };
5267
5048
  };
5268
5049
 
5269
5050
  // src/graphql/hooks/resourceActivities/hooksQuery.ts
5270
- import { useQuery as useQuery9 } from "@apollo/client";
5051
+ import { useQuery as useQuery8 } from "@apollo/client";
5271
5052
 
5272
5053
  // src/graphql/queries/resourceActivities.ts
5273
- import { gql as gql27 } from "@apollo/client";
5274
- var RESOURCE_ACTIVITY_FIELDS_FRAGMENT = gql27`
5054
+ import { gql as gql25 } from "@apollo/client";
5055
+ var RESOURCE_ACTIVITY_FIELDS_FRAGMENT = gql25`
5275
5056
  fragment ResourceActivityFields on ResourceActivityType {
5276
5057
  resourceId
5277
5058
  resourceType
@@ -5290,7 +5071,7 @@ var RESOURCE_ACTIVITY_FIELDS_FRAGMENT = gql27`
5290
5071
  }
5291
5072
  ${LOCATION_GEO_FIELDS_FRAGMENT}
5292
5073
  `;
5293
- var GET_RESOURCE_ACTIVITY = gql27`
5074
+ var GET_RESOURCE_ACTIVITY = gql25`
5294
5075
  query getResourceActivity(
5295
5076
  $resourceType: ResourceTypeEnum!
5296
5077
  $resourceId: ID!
@@ -5304,7 +5085,7 @@ var GET_RESOURCE_ACTIVITY = gql27`
5304
5085
 
5305
5086
  // src/graphql/hooks/resourceActivities/hooksQuery.ts
5306
5087
  var useGetResourceActivity = (resourceId, resourceType) => {
5307
- const { data, loading, error, refetch } = useQuery9(GET_RESOURCE_ACTIVITY, {
5088
+ const { data, loading, error, refetch } = useQuery8(GET_RESOURCE_ACTIVITY, {
5308
5089
  fetchPolicy: "network-only",
5309
5090
  variables: { resourceId, resourceType }
5310
5091
  });
@@ -5317,11 +5098,11 @@ var useGetResourceActivity = (resourceId, resourceType) => {
5317
5098
  };
5318
5099
 
5319
5100
  // src/graphql/hooks/stripe/hooksMutation.ts
5320
- import { useMutation as useMutation15 } from "@apollo/client";
5101
+ import { useMutation as useMutation14 } from "@apollo/client";
5321
5102
 
5322
5103
  // src/graphql/mutations/stripe.ts
5323
- import { gql as gql28 } from "@apollo/client";
5324
- var CREATE_CHECKOUT_SESSION_MUTATION = gql28`
5104
+ import { gql as gql26 } from "@apollo/client";
5105
+ var CREATE_CHECKOUT_SESSION_MUTATION = gql26`
5325
5106
  mutation createCheckoutSession(
5326
5107
  $planId: LicencesEnumType!
5327
5108
  $billingPeriod: BillingPeriodEnumType
@@ -5332,12 +5113,12 @@ var CREATE_CHECKOUT_SESSION_MUTATION = gql28`
5332
5113
  }
5333
5114
  }
5334
5115
  `;
5335
- var CANCEL_SUBSCRIPTION_MUTATION = gql28`
5116
+ var CANCEL_SUBSCRIPTION_MUTATION = gql26`
5336
5117
  mutation cancelSubscription {
5337
5118
  cancelSubscription
5338
5119
  }
5339
5120
  `;
5340
- var UPDATE_SUBSCRIPTION_PLAN_MUTATION = gql28`
5121
+ var UPDATE_SUBSCRIPTION_PLAN_MUTATION = gql26`
5341
5122
  mutation updateSubscriptionPlan(
5342
5123
  $newPlanId: LicencesEnumType!
5343
5124
  $billingPeriod: BillingPeriodEnumType
@@ -5353,14 +5134,14 @@ var UPDATE_SUBSCRIPTION_PLAN_MUTATION = gql28`
5353
5134
  }
5354
5135
  }
5355
5136
  `;
5356
- var CREATE_CUSTOMER_PORTAL = gql28`
5137
+ var CREATE_CUSTOMER_PORTAL = gql26`
5357
5138
  mutation createCustomerPortal($returnUrl: String) {
5358
5139
  createCustomerPortal(returnUrl: $returnUrl) {
5359
5140
  portalUrl
5360
5141
  }
5361
5142
  }
5362
5143
  `;
5363
- var SELECT_PACKAGE_MUTATION = gql28`
5144
+ var SELECT_PACKAGE_MUTATION = gql26`
5364
5145
  mutation selectPackage(
5365
5146
  $billingPeriod: BillingPeriodEnumType
5366
5147
  $selectedLicence: LicencesEnumType!
@@ -5384,31 +5165,31 @@ var SELECT_PACKAGE_MUTATION = gql28`
5384
5165
 
5385
5166
  // src/graphql/hooks/stripe/hooksMutation.ts
5386
5167
  var useCreateCheckoutSession = () => {
5387
- const [createCheckoutSession, { loading, error }] = useMutation15(
5168
+ const [createCheckoutSession, { loading, error }] = useMutation14(
5388
5169
  CREATE_CHECKOUT_SESSION_MUTATION
5389
5170
  );
5390
5171
  return { createCheckoutSession, error, loading };
5391
5172
  };
5392
5173
  var useCancelSubscription = () => {
5393
- const [cancelSubscription, { loading, error }] = useMutation15(
5174
+ const [cancelSubscription, { loading, error }] = useMutation14(
5394
5175
  CANCEL_SUBSCRIPTION_MUTATION
5395
5176
  );
5396
5177
  return { cancelSubscription, error, loading };
5397
5178
  };
5398
5179
  var useUpdateSubscriptionPlan = () => {
5399
- const [updateSubscriptionPlan, { loading, error }] = useMutation15(
5180
+ const [updateSubscriptionPlan, { loading, error }] = useMutation14(
5400
5181
  UPDATE_SUBSCRIPTION_PLAN_MUTATION
5401
5182
  );
5402
5183
  return { error, loading, updateSubscriptionPlan };
5403
5184
  };
5404
5185
  var useCreateCustomerPortal = () => {
5405
- const [createCustomerPortal, { loading, error }] = useMutation15(
5186
+ const [createCustomerPortal, { loading, error }] = useMutation14(
5406
5187
  CREATE_CUSTOMER_PORTAL
5407
5188
  );
5408
5189
  return { createCustomerPortal, error, loading };
5409
5190
  };
5410
5191
  var useSelectPackage = () => {
5411
- const [selectPackage, { loading, error }] = useMutation15(SELECT_PACKAGE_MUTATION, {
5192
+ const [selectPackage, { loading, error }] = useMutation14(SELECT_PACKAGE_MUTATION, {
5412
5193
  awaitRefetchQueries: true,
5413
5194
  refetchQueries: (mutationResult) => {
5414
5195
  const userId = mutationResult?.data?.selectPackage?.userId;
@@ -5424,11 +5205,11 @@ var useSelectPackage = () => {
5424
5205
  };
5425
5206
 
5426
5207
  // src/graphql/hooks/stripe/hooksQuery.ts
5427
- import { useQuery as useQuery10 } from "@apollo/client";
5208
+ import { useQuery as useQuery9 } from "@apollo/client";
5428
5209
 
5429
5210
  // src/graphql/queries/stripe.ts
5430
- import { gql as gql29 } from "@apollo/client";
5431
- var GET_SUBSCRIPTION_STATUS = gql29`
5211
+ import { gql as gql27 } from "@apollo/client";
5212
+ var GET_SUBSCRIPTION_STATUS = gql27`
5432
5213
  query getSubscriptionStatus {
5433
5214
  getSubscriptionStatus {
5434
5215
  subscriptionId
@@ -5438,7 +5219,7 @@ var GET_SUBSCRIPTION_STATUS = gql29`
5438
5219
  }
5439
5220
  }
5440
5221
  `;
5441
- var GET_SUBSCRIPTION_PLANS = gql29`
5222
+ var GET_SUBSCRIPTION_PLANS = gql27`
5442
5223
  query getSubscriptionPlans {
5443
5224
  getSubscriptionPlans {
5444
5225
  plans {
@@ -5469,7 +5250,7 @@ var GET_SUBSCRIPTION_PLANS = gql29`
5469
5250
 
5470
5251
  // src/graphql/hooks/stripe/hooksQuery.ts
5471
5252
  var useGetSubscriptionStatus = () => {
5472
- const { data, loading, error, refetch } = useQuery10(GET_SUBSCRIPTION_STATUS);
5253
+ const { data, loading, error, refetch } = useQuery9(GET_SUBSCRIPTION_STATUS);
5473
5254
  return {
5474
5255
  data: data?.getSubscriptionStatus,
5475
5256
  error,
@@ -5478,7 +5259,7 @@ var useGetSubscriptionStatus = () => {
5478
5259
  };
5479
5260
  };
5480
5261
  var useGetSubscriptionPlans = () => {
5481
- const { data, loading, error, refetch } = useQuery10(GET_SUBSCRIPTION_PLANS);
5262
+ const { data, loading, error, refetch } = useQuery9(GET_SUBSCRIPTION_PLANS);
5482
5263
  return {
5483
5264
  data: data?.getSubscriptionPlans,
5484
5265
  error,
@@ -5488,11 +5269,11 @@ var useGetSubscriptionPlans = () => {
5488
5269
  };
5489
5270
 
5490
5271
  // src/graphql/hooks/partner/hooksMutation.ts
5491
- import { useMutation as useMutation16 } from "@apollo/client";
5272
+ import { useMutation as useMutation15 } from "@apollo/client";
5492
5273
 
5493
5274
  // src/graphql/mutations/partner.ts
5494
- import { gql as gql30 } from "@apollo/client";
5495
- var CREATE_PARTNER_MUTATION = gql30`
5275
+ import { gql as gql28 } from "@apollo/client";
5276
+ var CREATE_PARTNER_MUTATION = gql28`
5496
5277
  mutation createPartner($input: PartnerInputType!) {
5497
5278
  createPartner(input: $input) {
5498
5279
  ...PartnerFields
@@ -5500,7 +5281,7 @@ var CREATE_PARTNER_MUTATION = gql30`
5500
5281
  }
5501
5282
  ${PARTNER}
5502
5283
  `;
5503
- var UPDATE_PARTNER_MUTATION = gql30`
5284
+ var UPDATE_PARTNER_MUTATION = gql28`
5504
5285
  mutation updatePartner($_id: ID!, $input: PartnerInputType!) {
5505
5286
  updatePartner(_id: $_id, input: $input) {
5506
5287
  ...PartnerFields
@@ -5508,7 +5289,7 @@ var UPDATE_PARTNER_MUTATION = gql30`
5508
5289
  }
5509
5290
  ${PARTNER}
5510
5291
  `;
5511
- var DELETE_PARTNER_MUTATION = gql30`
5292
+ var DELETE_PARTNER_MUTATION = gql28`
5512
5293
  mutation deletePartner($_id: ID!) {
5513
5294
  deletePartner(_id: $_id)
5514
5295
  }
@@ -5516,7 +5297,7 @@ var DELETE_PARTNER_MUTATION = gql30`
5516
5297
 
5517
5298
  // src/graphql/hooks/partner/hooksMutation.ts
5518
5299
  var useCreatePartner = () => {
5519
- const [createPartner, { loading, error }] = useMutation16(
5300
+ const [createPartner, { loading, error }] = useMutation15(
5520
5301
  CREATE_PARTNER_MUTATION,
5521
5302
  {
5522
5303
  awaitRefetchQueries: true,
@@ -5526,7 +5307,7 @@ var useCreatePartner = () => {
5526
5307
  return { createPartner, error, loading };
5527
5308
  };
5528
5309
  var useUpdatePartner = () => {
5529
- const [updatePartner, { loading, error }] = useMutation16(
5310
+ const [updatePartner, { loading, error }] = useMutation15(
5530
5311
  UPDATE_PARTNER_MUTATION,
5531
5312
  {
5532
5313
  awaitRefetchQueries: true,
@@ -5536,7 +5317,7 @@ var useUpdatePartner = () => {
5536
5317
  return { error, loading, updatePartner };
5537
5318
  };
5538
5319
  var useDeletePartner = () => {
5539
- const [deletePartner, { loading, error }] = useMutation16(
5320
+ const [deletePartner, { loading, error }] = useMutation15(
5540
5321
  DELETE_PARTNER_MUTATION,
5541
5322
  {
5542
5323
  awaitRefetchQueries: true,
@@ -5547,9 +5328,9 @@ var useDeletePartner = () => {
5547
5328
  };
5548
5329
 
5549
5330
  // src/graphql/hooks/partner/hooksQuery.ts
5550
- import { useQuery as useQuery11 } from "@apollo/client";
5331
+ import { useQuery as useQuery10 } from "@apollo/client";
5551
5332
  var useGetPartners = () => {
5552
- const { loading, error, data, refetch } = useQuery11(GET_PARTNERS, {
5333
+ const { loading, error, data, refetch } = useQuery10(GET_PARTNERS, {
5553
5334
  fetchPolicy: "network-only"
5554
5335
  });
5555
5336
  const partners = data?.partners || [];
@@ -5561,7 +5342,7 @@ var useGetPartners = () => {
5561
5342
  };
5562
5343
  };
5563
5344
  var useGetPartner = (_id) => {
5564
- const { loading, error, data, refetch } = useQuery11(
5345
+ const { loading, error, data, refetch } = useQuery10(
5565
5346
  GET_PARTNER,
5566
5347
  {
5567
5348
  fetchPolicy: "network-only",
@@ -5573,7 +5354,7 @@ var useGetPartner = (_id) => {
5573
5354
  return { error, loading, partner, refetch };
5574
5355
  };
5575
5356
  var useGetPartnersByRegion = (region) => {
5576
- const { loading, error, data, refetch } = useQuery11(GET_PARTNERS_BY_REGION, {
5357
+ const { loading, error, data, refetch } = useQuery10(GET_PARTNERS_BY_REGION, {
5577
5358
  fetchPolicy: "no-cache",
5578
5359
  skip: !region,
5579
5360
  variables: { region }
@@ -5582,7 +5363,7 @@ var useGetPartnersByRegion = (region) => {
5582
5363
  return { error, loading, partnersByRegion, refetch };
5583
5364
  };
5584
5365
  var useSearchPartners = (search, region) => {
5585
- const { loading, error, data, refetch } = useQuery11(SEARCH_PARTNERS, {
5366
+ const { loading, error, data, refetch } = useQuery10(SEARCH_PARTNERS, {
5586
5367
  fetchPolicy: "network-only",
5587
5368
  skip: search.length < 3,
5588
5369
  variables: { region, search }
@@ -5592,14 +5373,14 @@ var useSearchPartners = (search, region) => {
5592
5373
  };
5593
5374
 
5594
5375
  // src/graphql/hooks/post/hooksMutation.ts
5595
- import { useMutation as useMutation17 } from "@apollo/client";
5376
+ import { useMutation as useMutation16 } from "@apollo/client";
5596
5377
 
5597
5378
  // src/graphql/mutations/post.ts
5598
- import { gql as gql32 } from "@apollo/client";
5379
+ import { gql as gql30 } from "@apollo/client";
5599
5380
 
5600
5381
  // src/graphql/queries/post.ts
5601
- import { gql as gql31 } from "@apollo/client";
5602
- var POST_CONTENT_DATA_FIELDS_FRAGMENT = gql31`
5382
+ import { gql as gql29 } from "@apollo/client";
5383
+ var POST_CONTENT_DATA_FIELDS_FRAGMENT = gql29`
5603
5384
  fragment PostContentDataFields on PostContentData {
5604
5385
  textarea {
5605
5386
  title
@@ -5621,7 +5402,7 @@ var POST_CONTENT_DATA_FIELDS_FRAGMENT = gql31`
5621
5402
  }
5622
5403
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
5623
5404
  `;
5624
- var POST_CONTENT_FIELDS_FRAGMENT = gql31`
5405
+ var POST_CONTENT_FIELDS_FRAGMENT = gql29`
5625
5406
  fragment PostContentFields on PostContentType {
5626
5407
  contentData {
5627
5408
  ...PostContentDataFields
@@ -5631,7 +5412,7 @@ var POST_CONTENT_FIELDS_FRAGMENT = gql31`
5631
5412
  }
5632
5413
  ${POST_CONTENT_DATA_FIELDS_FRAGMENT}
5633
5414
  `;
5634
- var POST_FIELDS_FRAGMENT = gql31`
5415
+ var POST_FIELDS_FRAGMENT = gql29`
5635
5416
  fragment PostFields on PostType {
5636
5417
  _id
5637
5418
  active
@@ -5656,7 +5437,7 @@ var POST_FIELDS_FRAGMENT = gql31`
5656
5437
  ${POST_CONTENT_FIELDS_FRAGMENT}
5657
5438
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
5658
5439
  `;
5659
- var GET_POSTS = gql31`
5440
+ var GET_POSTS = gql29`
5660
5441
  query getPosts {
5661
5442
  posts {
5662
5443
  ...PostFields
@@ -5664,7 +5445,7 @@ var GET_POSTS = gql31`
5664
5445
  }
5665
5446
  ${POST_FIELDS_FRAGMENT}
5666
5447
  `;
5667
- var GET_POST = gql31`
5448
+ var GET_POST = gql29`
5668
5449
  query getPost($_id: ID!) {
5669
5450
  post(_id: $_id) {
5670
5451
  ...PostFields
@@ -5672,7 +5453,7 @@ var GET_POST = gql31`
5672
5453
  }
5673
5454
  ${POST_FIELDS_FRAGMENT}
5674
5455
  `;
5675
- var GET_POSTS_BY_TYPE = gql31`
5456
+ var GET_POSTS_BY_TYPE = gql29`
5676
5457
  query getPostsByType($postType: PostTypeEnum!) {
5677
5458
  postsByType(postType: $postType) {
5678
5459
  ...PostFields
@@ -5682,7 +5463,7 @@ var GET_POSTS_BY_TYPE = gql31`
5682
5463
  `;
5683
5464
 
5684
5465
  // src/graphql/mutations/post.ts
5685
- var CREATE_POST_MUTATION = gql32`
5466
+ var CREATE_POST_MUTATION = gql30`
5686
5467
  mutation createPost($input: PostInputType!) {
5687
5468
  createPost(input: $input) {
5688
5469
  ...PostFields
@@ -5690,7 +5471,7 @@ var CREATE_POST_MUTATION = gql32`
5690
5471
  }
5691
5472
  ${POST_FIELDS_FRAGMENT}
5692
5473
  `;
5693
- var UPDATE_POST_MUTATION = gql32`
5474
+ var UPDATE_POST_MUTATION = gql30`
5694
5475
  mutation updatePost($_id: ID!, $input: PostInputType!) {
5695
5476
  updatePost(_id: $_id, input: $input) {
5696
5477
  ...PostFields
@@ -5698,7 +5479,7 @@ var UPDATE_POST_MUTATION = gql32`
5698
5479
  }
5699
5480
  ${POST_FIELDS_FRAGMENT}
5700
5481
  `;
5701
- var DELETE_POST_MUTATION = gql32`
5482
+ var DELETE_POST_MUTATION = gql30`
5702
5483
  mutation deletePost($_id: ID!) {
5703
5484
  deletePost(_id: $_id)
5704
5485
  }
@@ -5706,21 +5487,21 @@ var DELETE_POST_MUTATION = gql32`
5706
5487
 
5707
5488
  // src/graphql/hooks/post/hooksMutation.ts
5708
5489
  var useCreatePost = () => {
5709
- const [createPost, { loading, error }] = useMutation17(CREATE_POST_MUTATION, {
5490
+ const [createPost, { loading, error }] = useMutation16(CREATE_POST_MUTATION, {
5710
5491
  awaitRefetchQueries: true,
5711
5492
  refetchQueries: [{ query: GET_POSTS }]
5712
5493
  });
5713
5494
  return { createPost, error, loading };
5714
5495
  };
5715
5496
  var useUpdatePost = () => {
5716
- const [updatePost, { loading, error }] = useMutation17(UPDATE_POST_MUTATION, {
5497
+ const [updatePost, { loading, error }] = useMutation16(UPDATE_POST_MUTATION, {
5717
5498
  awaitRefetchQueries: true,
5718
5499
  refetchQueries: [{ query: GET_POSTS }]
5719
5500
  });
5720
5501
  return { error, loading, updatePost };
5721
5502
  };
5722
5503
  var useDeletePost = () => {
5723
- const [deletePost, { loading, error }] = useMutation17(DELETE_POST_MUTATION, {
5504
+ const [deletePost, { loading, error }] = useMutation16(DELETE_POST_MUTATION, {
5724
5505
  awaitRefetchQueries: true,
5725
5506
  refetchQueries: [{ query: GET_POSTS }]
5726
5507
  });
@@ -5728,15 +5509,15 @@ var useDeletePost = () => {
5728
5509
  };
5729
5510
 
5730
5511
  // src/graphql/hooks/post/hooksQuery.ts
5731
- import { useQuery as useQuery12 } from "@apollo/client";
5512
+ import { useQuery as useQuery11 } from "@apollo/client";
5732
5513
  var useGetPosts = () => {
5733
- const { data, loading, error, refetch } = useQuery12(GET_POSTS, {
5514
+ const { data, loading, error, refetch } = useQuery11(GET_POSTS, {
5734
5515
  fetchPolicy: "network-only"
5735
5516
  });
5736
5517
  return { error, loading, posts: data?.posts || [], refetch };
5737
5518
  };
5738
5519
  var useGetPost = (_id) => {
5739
- const { data, loading, error, refetch } = useQuery12(GET_POST, {
5520
+ const { data, loading, error, refetch } = useQuery11(GET_POST, {
5740
5521
  fetchPolicy: "network-only",
5741
5522
  skip: !_id,
5742
5523
  variables: { _id }
@@ -5744,7 +5525,7 @@ var useGetPost = (_id) => {
5744
5525
  return { error, loading, post: data?.post, refetch };
5745
5526
  };
5746
5527
  var useGetPostsByType = (postType) => {
5747
- const { data, loading, error, refetch } = useQuery12(GET_POSTS_BY_TYPE, {
5528
+ const { data, loading, error, refetch } = useQuery11(GET_POSTS_BY_TYPE, {
5748
5529
  fetchPolicy: "network-only",
5749
5530
  skip: !postType,
5750
5531
  variables: { postType }
@@ -5753,26 +5534,33 @@ var useGetPostsByType = (postType) => {
5753
5534
  };
5754
5535
 
5755
5536
  // src/graphql/hooks/appSettings/hooksMutation.ts
5756
- import { useMutation as useMutation18 } from "@apollo/client";
5537
+ import { useMutation as useMutation17 } from "@apollo/client";
5757
5538
 
5758
5539
  // src/graphql/mutations/appSettings.ts
5759
- import { gql as gql33 } from "@apollo/client";
5760
- var UPDATE_APP_SETTINGS_MUTATION = gql33`
5540
+ import { gql as gql31 } from "@apollo/client";
5541
+ var UPDATE_APP_SETTINGS_MUTATION = gql31`
5761
5542
  mutation updateAppSettings($input: AppSettingsInputType!) {
5762
5543
  updateAppSettings(input: $input)
5763
5544
  }
5764
5545
  `;
5765
- var CRAWL_GOOGLE_MARKETS_MUTATION = gql33`
5546
+ var CRAWL_GOOGLE_MARKETS_MUTATION = gql31`
5766
5547
  mutation crawlGoogleMarkets {
5767
5548
  crawlGoogleMarkets {
5768
5549
  message
5769
5550
  }
5770
5551
  }
5771
5552
  `;
5553
+ var UPDATE_GOOGLE_IMPORTED_MARKET_MUTATION = gql31`
5554
+ mutation updateGoogleImportedMarkets {
5555
+ updateGoogleImportedMarkets {
5556
+ message
5557
+ }
5558
+ }
5559
+ `;
5772
5560
 
5773
5561
  // src/graphql/queries/appSettings.ts
5774
- import { gql as gql34 } from "@apollo/client";
5775
- var APP_SETTINGS_FIELDS_FRAGMENT = gql34`
5562
+ import { gql as gql32 } from "@apollo/client";
5563
+ var APP_SETTINGS_FIELDS_FRAGMENT = gql32`
5776
5564
  fragment AppSettingsFields on AppSettingsType {
5777
5565
  _id
5778
5566
  appVersion
@@ -5782,7 +5570,7 @@ var APP_SETTINGS_FIELDS_FRAGMENT = gql34`
5782
5570
  updatedAt
5783
5571
  }
5784
5572
  `;
5785
- var GET_APP_SETTINGS = gql34`
5573
+ var GET_APP_SETTINGS = gql32`
5786
5574
  query getAppSettings {
5787
5575
  appSettings {
5788
5576
  ...AppSettingsFields
@@ -5793,7 +5581,7 @@ var GET_APP_SETTINGS = gql34`
5793
5581
 
5794
5582
  // src/graphql/hooks/appSettings/hooksMutation.ts
5795
5583
  var useUpdateAppSettings = () => {
5796
- const [updateAppSettings, { loading, error }] = useMutation18(
5584
+ const [updateAppSettings, { loading, error }] = useMutation17(
5797
5585
  UPDATE_APP_SETTINGS_MUTATION,
5798
5586
  {
5799
5587
  awaitRefetchQueries: true,
@@ -5803,14 +5591,18 @@ var useUpdateAppSettings = () => {
5803
5591
  return { error, loading, updateAppSettings };
5804
5592
  };
5805
5593
  var useCrawlGoogleMarkets = () => {
5806
- const [crawlGoogleMarkets, { loading, error }] = useMutation18(CRAWL_GOOGLE_MARKETS_MUTATION);
5594
+ const [crawlGoogleMarkets, { loading, error }] = useMutation17(CRAWL_GOOGLE_MARKETS_MUTATION);
5807
5595
  return { crawlGoogleMarkets, error, loading };
5808
5596
  };
5597
+ var useUpdateGoogleImportedMarkets = () => {
5598
+ const [updateGoogleImportedMarkets, { loading, error }] = useMutation17(UPDATE_GOOGLE_IMPORTED_MARKET_MUTATION);
5599
+ return { error, loading, updateGoogleImportedMarkets };
5600
+ };
5809
5601
 
5810
5602
  // src/graphql/hooks/appSettings/hooksQuery.ts
5811
- import { useQuery as useQuery13 } from "@apollo/client";
5603
+ import { useQuery as useQuery12 } from "@apollo/client";
5812
5604
  var useGetAppSettings = () => {
5813
- const { loading, error, data, refetch } = useQuery13(GET_APP_SETTINGS, {
5605
+ const { loading, error, data, refetch } = useQuery12(GET_APP_SETTINGS, {
5814
5606
  fetchPolicy: "network-only"
5815
5607
  });
5816
5608
  const appSettings = data?.appSettings || null;
@@ -6394,128 +6186,8 @@ var validateVerificationTokenSchema = yup5.object().shape({
6394
6186
  verificationToken: yup5.string().required("Verification code is required").matches(/^\d{6}$/, "Verification code must be exactly 6 digits")
6395
6187
  });
6396
6188
 
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
6189
  // src/yupSchema/ad.ts
6518
- import * as yup7 from "yup";
6190
+ import * as yup6 from "yup";
6519
6191
 
6520
6192
  // src/types/ad.ts
6521
6193
  var EnumAdShowOn = /* @__PURE__ */ ((EnumAdShowOn2) => {
@@ -6543,12 +6215,12 @@ var EnumAdStyle = /* @__PURE__ */ ((EnumAdStyle2) => {
6543
6215
  })(EnumAdStyle || {});
6544
6216
 
6545
6217
  // 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) => {
6218
+ var adSchema = yup6.object().shape({
6219
+ active: yup6.boolean().required("Active status is required"),
6220
+ adStyle: yup6.mixed().oneOf(Object.values(EnumAdStyle), "Please select a valid ad style").required("Ad style is required"),
6221
+ adType: yup6.mixed().oneOf(Object.values(EnumAdType), "Please select a valid ad type").required("Ad type is required"),
6222
+ clui: yup6.string().nullable().notRequired(),
6223
+ end: yup6.date().required("End date is required").test("is-future-date", "End date must be in the future", (value) => {
6552
6224
  if (!value) return false;
6553
6225
  const endDate = new Date(value);
6554
6226
  const now = /* @__PURE__ */ new Date();
@@ -6565,40 +6237,40 @@ var adSchema = yup7.object().shape({
6565
6237
  }
6566
6238
  )
6567
6239
  }),
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(
6240
+ resourceCover: yup6.string().url("Resource cover must be a valid URL").required("Resource cover is required"),
6241
+ resourceDescription: yup6.string().required("Resource description is required"),
6242
+ resourceId: yup6.string().required("Resource ID is required"),
6243
+ resourceLogo: yup6.string().url("Resource logo must be a valid URL").nullable().notRequired(),
6244
+ resourceName: yup6.string().required("Resource name is required"),
6245
+ resourceRegion: yup6.string().required("Resource region is required"),
6246
+ resourceType: yup6.mixed().oneOf(Object.values(EnumResourceType), "Please select Event or Vendor").required("Resource Type is required"),
6247
+ showOn: yup6.mixed().oneOf(
6576
6248
  Object.values(EnumAdShowOn),
6577
6249
  "Please select a valid display location"
6578
6250
  ).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", {
6251
+ socialMedia: yup6.array().of(socialMediaSchema).nullable().optional(),
6252
+ status: yup6.mixed().oneOf(Object.values(EnumAdStatus)).required("Ad status is required"),
6253
+ start: yup6.date().when("status", {
6582
6254
  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) => {
6255
+ then: () => yup6.date().required("Start date is required").test("is-future-date", "Start date must be in the future", (value) => {
6584
6256
  if (!value) return false;
6585
6257
  return value > /* @__PURE__ */ new Date();
6586
6258
  }),
6587
- otherwise: () => yup7.date().nullable().notRequired()
6259
+ otherwise: () => yup6.date().nullable().notRequired()
6588
6260
  }),
6589
- targetRegion: yup7.string().nullable().notRequired()
6261
+ targetRegion: yup6.string().nullable().notRequired()
6590
6262
  });
6591
6263
 
6592
6264
  // src/yupSchema/partner.ts
6593
- import * as yup8 from "yup";
6265
+ import * as yup7 from "yup";
6594
6266
  var partnerSchema = globalResourceSchema.shape({
6595
6267
  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")
6268
+ nzbn: yup7.string().required("NZBN is required").matches(nzbnRegex, "NZBN must be 13 digits and start with 94"),
6269
+ partnerType: yup7.mixed().oneOf(Object.values(EnumPartnerType), "Please select a valid Partner type").required("Please select a Partner type")
6598
6270
  });
6599
6271
 
6600
6272
  // src/yupSchema/post.ts
6601
- import * as yup9 from "yup";
6273
+ import * as yup8 from "yup";
6602
6274
 
6603
6275
  // src/types/post.ts
6604
6276
  var EnumPostType = /* @__PURE__ */ ((EnumPostType2) => {
@@ -6616,32 +6288,32 @@ var EnumPostContentType = /* @__PURE__ */ ((EnumPostContentType2) => {
6616
6288
  })(EnumPostContentType || {});
6617
6289
 
6618
6290
  // 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()
6291
+ var postContentSchema = yup8.object().shape({
6292
+ contentData: yup8.mixed().optional().nullable(),
6293
+ contentOrder: yup8.number().nullable(),
6294
+ contentType: yup8.mixed().oneOf(Object.values(EnumPostContentType)).nullable()
6623
6295
  });
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()
6296
+ var postSchema = yup8.object().shape({
6297
+ active: yup8.boolean().required(),
6298
+ caption: yup8.string().required(),
6299
+ content: yup8.array().of(postContentSchema).required(),
6300
+ postType: yup8.mixed().oneOf(Object.values(EnumPostType)).required(),
6301
+ resource: yup8.object({
6302
+ resourceId: yup8.string().required(),
6303
+ resourceType: yup8.mixed().oneOf(Object.values(EnumResourceType)).required()
6632
6304
  }).nullable().optional(),
6633
- tags: yup9.array().of(yup9.string().required()).nullable().optional(),
6634
- title: yup9.string().required()
6305
+ tags: yup8.array().of(yup8.string().required()).nullable().optional(),
6306
+ title: yup8.string().required()
6635
6307
  });
6636
6308
 
6637
6309
  // src/yupSchema/appSettings.ts
6638
- import * as yup10 from "yup";
6639
- var appSettingsSchema = yup10.object({
6640
- appVersion: yup10.string().trim().label("App Version").matches(
6310
+ import * as yup9 from "yup";
6311
+ var appSettingsSchema = yup9.object({
6312
+ appVersion: yup9.string().trim().label("App Version").matches(
6641
6313
  /^\d+\.\d+\.\d+$/,
6642
6314
  "App Version must be in the format X.Y.Z (e.g. 1.12.50)"
6643
6315
  ).required("App Version is required"),
6644
- isOfflineMode: yup10.boolean().label("Is Offline Mode").required("Is Offline Mode is required")
6316
+ isOfflineMode: yup9.boolean().label("Is Offline Mode").required("Is Offline Mode is required")
6645
6317
  });
6646
6318
 
6647
6319
  // src/hooks/utils.ts
@@ -7367,110 +7039,22 @@ function useResetPasswordForm() {
7367
7039
  };
7368
7040
  }
7369
7041
 
7370
- // src/hooks/useTesterForm.ts
7042
+ // src/hooks/useContactUsForm.ts
7371
7043
  import { yupResolver as yupResolver11 } from "@hookform/resolvers/yup";
7372
7044
  import React6 from "react";
7373
7045
  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
7046
 
7463
7047
  // src/yupSchema/contactUs.ts
7464
- import * as yup11 from "yup";
7465
- var contactUsSchema = yup11.object().shape({
7048
+ import * as yup10 from "yup";
7049
+ var contactUsSchema = yup10.object().shape({
7466
7050
  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")
7051
+ firstName: yup10.string().label("First Name").required("First name is required"),
7052
+ lastName: yup10.string().label("Last Name").required("Last name is required"),
7053
+ message: yup10.string().label("Message").required("Message is required")
7470
7054
  });
7471
7055
 
7472
7056
  // src/hooks/useContactUsForm.ts
7473
- var defaultValues8 = {
7057
+ var defaultValues7 = {
7474
7058
  email: "",
7475
7059
  firstName: "",
7476
7060
  lastName: "",
@@ -7485,11 +7069,11 @@ function useContactUsForm(data) {
7485
7069
  reset,
7486
7070
  setValue,
7487
7071
  watch
7488
- } = useForm12({
7489
- defaultValues: defaultValues8,
7490
- resolver: yupResolver12(contactUsSchema)
7072
+ } = useForm11({
7073
+ defaultValues: defaultValues7,
7074
+ resolver: yupResolver11(contactUsSchema)
7491
7075
  });
7492
- React7.useEffect(() => {
7076
+ React6.useEffect(() => {
7493
7077
  if (data) {
7494
7078
  reset({
7495
7079
  email: data.email,
@@ -7498,7 +7082,7 @@ function useContactUsForm(data) {
7498
7082
  message: data.message
7499
7083
  });
7500
7084
  } else {
7501
- reset(defaultValues8);
7085
+ reset(defaultValues7);
7502
7086
  }
7503
7087
  }, [data]);
7504
7088
  const { email, firstName, lastName, message } = getValues();
@@ -7519,10 +7103,10 @@ function useContactUsForm(data) {
7519
7103
  }
7520
7104
 
7521
7105
  // 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 = {
7106
+ import { yupResolver as yupResolver12 } from "@hookform/resolvers/yup";
7107
+ import React7 from "react";
7108
+ import { useForm as useForm12 } from "react-hook-form";
7109
+ var defaultValues8 = {
7526
7110
  active: true,
7527
7111
  adStyle: "Bloom" /* BLOOM */,
7528
7112
  // default to bloom
@@ -7555,11 +7139,11 @@ function useAdForm(data) {
7555
7139
  reset,
7556
7140
  setValue,
7557
7141
  watch
7558
- } = useForm13({
7559
- defaultValues: defaultValues9,
7560
- resolver: yupResolver13(adSchema)
7142
+ } = useForm12({
7143
+ defaultValues: defaultValues8,
7144
+ resolver: yupResolver12(adSchema)
7561
7145
  });
7562
- React8.useEffect(() => {
7146
+ React7.useEffect(() => {
7563
7147
  if (data) {
7564
7148
  reset({
7565
7149
  active: data.active,
@@ -7580,7 +7164,7 @@ function useAdForm(data) {
7580
7164
  targetRegion: data.targetRegion
7581
7165
  });
7582
7166
  } else {
7583
- reset(defaultValues9);
7167
+ reset(defaultValues8);
7584
7168
  }
7585
7169
  }, [data]);
7586
7170
  const {
@@ -7632,9 +7216,9 @@ function useAdForm(data) {
7632
7216
  }
7633
7217
 
7634
7218
  // 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";
7219
+ import { yupResolver as yupResolver13 } from "@hookform/resolvers/yup";
7220
+ import * as React8 from "react";
7221
+ import { useForm as useForm13 } from "react-hook-form";
7638
7222
  function usePartnerForm(data) {
7639
7223
  const {
7640
7224
  control,
@@ -7644,11 +7228,11 @@ function usePartnerForm(data) {
7644
7228
  reset,
7645
7229
  setValue,
7646
7230
  watch
7647
- } = useForm14({
7231
+ } = useForm13({
7648
7232
  defaultValues: defaultPartnerFormValues,
7649
- resolver: yupResolver14(partnerSchema)
7233
+ resolver: yupResolver13(partnerSchema)
7650
7234
  });
7651
- React9.useEffect(() => {
7235
+ React8.useEffect(() => {
7652
7236
  if (data) {
7653
7237
  reset({
7654
7238
  ...mapBaseResourceTypeToFormData(data),
@@ -7715,10 +7299,10 @@ function usePartnerForm(data) {
7715
7299
  }
7716
7300
 
7717
7301
  // 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 = {
7302
+ import { yupResolver as yupResolver14 } from "@hookform/resolvers/yup";
7303
+ import React9 from "react";
7304
+ import { useForm as useForm14 } from "react-hook-form";
7305
+ var defaultValues9 = {
7722
7306
  active: true,
7723
7307
  caption: "",
7724
7308
  content: [],
@@ -7738,11 +7322,11 @@ function usePostForm(data) {
7738
7322
  reset,
7739
7323
  setValue,
7740
7324
  watch
7741
- } = useForm15({
7742
- defaultValues: defaultValues10,
7743
- resolver: yupResolver15(postSchema)
7325
+ } = useForm14({
7326
+ defaultValues: defaultValues9,
7327
+ resolver: yupResolver14(postSchema)
7744
7328
  });
7745
- React10.useEffect(() => {
7329
+ React9.useEffect(() => {
7746
7330
  if (data) {
7747
7331
  reset({
7748
7332
  active: data.active,
@@ -7756,7 +7340,7 @@ function usePostForm(data) {
7756
7340
  title: data.title
7757
7341
  });
7758
7342
  } else {
7759
- reset(defaultValues10);
7343
+ reset(defaultValues9);
7760
7344
  }
7761
7345
  }, [data]);
7762
7346
  const {
@@ -7792,10 +7376,10 @@ function usePostForm(data) {
7792
7376
  }
7793
7377
 
7794
7378
  // 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 = {
7379
+ import { yupResolver as yupResolver15 } from "@hookform/resolvers/yup";
7380
+ import React10 from "react";
7381
+ import { useForm as useForm15 } from "react-hook-form";
7382
+ var defaultValues10 = {
7799
7383
  appVersion: "",
7800
7384
  isOfflineMode: false
7801
7385
  };
@@ -7808,18 +7392,18 @@ function useAppSettingsForm(data) {
7808
7392
  reset,
7809
7393
  setValue,
7810
7394
  watch
7811
- } = useForm16({
7812
- defaultValues: defaultValues11,
7813
- resolver: yupResolver16(appSettingsSchema)
7395
+ } = useForm15({
7396
+ defaultValues: defaultValues10,
7397
+ resolver: yupResolver15(appSettingsSchema)
7814
7398
  });
7815
- React11.useEffect(() => {
7399
+ React10.useEffect(() => {
7816
7400
  if (data) {
7817
7401
  reset({
7818
7402
  appVersion: data.appVersion,
7819
7403
  isOfflineMode: data.isOfflineMode
7820
7404
  });
7821
7405
  } else {
7822
- reset(defaultValues11);
7406
+ reset(defaultValues10);
7823
7407
  }
7824
7408
  }, [data]);
7825
7409
  const { appVersion, isOfflineMode } = getValues();
@@ -7886,7 +7470,6 @@ var fonts = {
7886
7470
  var EnumVerificationType = /* @__PURE__ */ ((EnumVerificationType2) => {
7887
7471
  EnumVerificationType2["REGISTER"] = "register";
7888
7472
  EnumVerificationType2["RESET_PASSWORD"] = "resetPassword";
7889
- EnumVerificationType2["TESTER_VALIDATION"] = "testerValidation";
7890
7473
  return EnumVerificationType2;
7891
7474
  })(EnumVerificationType || {});
7892
7475
 
@@ -7932,14 +7515,11 @@ export {
7932
7515
  EnumVerificationType,
7933
7516
  IOS_URL,
7934
7517
  ImageTypeEnum,
7935
- OrganizedMarketCount,
7936
- OrganizerMarketFrequency,
7937
7518
  SAVED_EMAIL_KEY,
7938
7519
  SAVED_PASSWORD_KEY,
7939
7520
  SAVED_REFRESH_TOKEN_KEY,
7940
7521
  SAVED_TOKEN_KEY,
7941
7522
  USER_STORAGE_KEY,
7942
- VendorSellingFrequency,
7943
7523
  availableCategories,
7944
7524
  availableRegionOptions,
7945
7525
  availableRegionTypes,
@@ -7993,7 +7573,6 @@ export {
7993
7573
  stallTypeOptions,
7994
7574
  statusOptions,
7995
7575
  tagOptions,
7996
- testersFields,
7997
7576
  timeFormat,
7998
7577
  toNZTime,
7999
7578
  truncateText,
@@ -8003,10 +7582,9 @@ export {
8003
7582
  useAddUserGoingResource,
8004
7583
  useAddUserInterestResource,
8005
7584
  useAddUserPresentResource,
8006
- useAdminResendTesterVerificationEmail,
7585
+ useAdminPermanentlyDeleteResource,
8007
7586
  useAdminResendUserVerificationEmail,
8008
7587
  useAdminUpdateResourceType,
8009
- useAdminUpdateTester,
8010
7588
  useAppSettingsForm,
8011
7589
  useCancelSubscription,
8012
7590
  useContactUs,
@@ -8024,7 +7602,6 @@ export {
8024
7602
  useCreatePushToken,
8025
7603
  useCreateRelation,
8026
7604
  useCreateResourceActivity,
8027
- useCreateTester,
8028
7605
  useCreateUnregisteredVendor,
8029
7606
  useCreateUser,
8030
7607
  useCreateVendor,
@@ -8037,7 +7614,6 @@ export {
8037
7614
  useDeletePartner,
8038
7615
  useDeletePost,
8039
7616
  useDeleteRelation,
8040
- useDeleteTester,
8041
7617
  useDeleteUnregisteredVendor,
8042
7618
  useDeleteUser,
8043
7619
  useDeleteVendor,
@@ -8072,8 +7648,6 @@ export {
8072
7648
  useGetResourceConnections,
8073
7649
  useGetSubscriptionPlans,
8074
7650
  useGetSubscriptionStatus,
8075
- useGetTester,
8076
- useGetTesters,
8077
7651
  useGetUnregisteredVendor,
8078
7652
  useGetUnregisteredVendors,
8079
7653
  useGetUser,
@@ -8118,17 +7692,16 @@ export {
8118
7692
  useSelectPackage,
8119
7693
  useSelectStandardPackage,
8120
7694
  useSendChatMessage,
8121
- useTesterForm,
8122
7695
  useToggleChatMessageLike,
8123
7696
  useUpdateAd,
8124
7697
  useUpdateAppSettings,
8125
7698
  useUpdateEvent,
8126
7699
  useUpdateEventInfo,
7700
+ useUpdateGoogleImportedMarkets,
8127
7701
  useUpdatePartner,
8128
7702
  useUpdatePost,
8129
7703
  useUpdateRelation,
8130
7704
  useUpdateSubscriptionPlan,
8131
- useUpdateTester,
8132
7705
  useUpdateUnregisteredVendor,
8133
7706
  useUpdateUser,
8134
7707
  useUpdateVendor,