@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.cjs CHANGED
@@ -62,14 +62,11 @@ __export(index_exports, {
62
62
  EnumVerificationType: () => EnumVerificationType,
63
63
  IOS_URL: () => IOS_URL,
64
64
  ImageTypeEnum: () => ImageTypeEnum,
65
- OrganizedMarketCount: () => OrganizedMarketCount,
66
- OrganizerMarketFrequency: () => OrganizerMarketFrequency,
67
65
  SAVED_EMAIL_KEY: () => SAVED_EMAIL_KEY,
68
66
  SAVED_PASSWORD_KEY: () => SAVED_PASSWORD_KEY,
69
67
  SAVED_REFRESH_TOKEN_KEY: () => SAVED_REFRESH_TOKEN_KEY,
70
68
  SAVED_TOKEN_KEY: () => SAVED_TOKEN_KEY,
71
69
  USER_STORAGE_KEY: () => USER_STORAGE_KEY,
72
- VendorSellingFrequency: () => VendorSellingFrequency,
73
70
  availableCategories: () => availableCategories,
74
71
  availableRegionOptions: () => availableRegionOptions,
75
72
  availableRegionTypes: () => availableRegionTypes,
@@ -123,7 +120,6 @@ __export(index_exports, {
123
120
  stallTypeOptions: () => stallTypeOptions,
124
121
  statusOptions: () => statusOptions,
125
122
  tagOptions: () => tagOptions,
126
- testersFields: () => testersFields,
127
123
  timeFormat: () => timeFormat,
128
124
  toNZTime: () => toNZTime,
129
125
  truncateText: () => truncateText,
@@ -133,10 +129,9 @@ __export(index_exports, {
133
129
  useAddUserGoingResource: () => useAddUserGoingResource,
134
130
  useAddUserInterestResource: () => useAddUserInterestResource,
135
131
  useAddUserPresentResource: () => useAddUserPresentResource,
136
- useAdminResendTesterVerificationEmail: () => useAdminResendTesterVerificationEmail,
132
+ useAdminPermanentlyDeleteResource: () => useAdminPermanentlyDeleteResource,
137
133
  useAdminResendUserVerificationEmail: () => useAdminResendUserVerificationEmail,
138
134
  useAdminUpdateResourceType: () => useAdminUpdateResourceType,
139
- useAdminUpdateTester: () => useAdminUpdateTester,
140
135
  useAppSettingsForm: () => useAppSettingsForm,
141
136
  useCancelSubscription: () => useCancelSubscription,
142
137
  useContactUs: () => useContactUs,
@@ -154,7 +149,6 @@ __export(index_exports, {
154
149
  useCreatePushToken: () => useCreatePushToken,
155
150
  useCreateRelation: () => useCreateRelation,
156
151
  useCreateResourceActivity: () => useCreateResourceActivity,
157
- useCreateTester: () => useCreateTester,
158
152
  useCreateUnregisteredVendor: () => useCreateUnregisteredVendor,
159
153
  useCreateUser: () => useCreateUser,
160
154
  useCreateVendor: () => useCreateVendor,
@@ -167,7 +161,6 @@ __export(index_exports, {
167
161
  useDeletePartner: () => useDeletePartner,
168
162
  useDeletePost: () => useDeletePost,
169
163
  useDeleteRelation: () => useDeleteRelation,
170
- useDeleteTester: () => useDeleteTester,
171
164
  useDeleteUnregisteredVendor: () => useDeleteUnregisteredVendor,
172
165
  useDeleteUser: () => useDeleteUser,
173
166
  useDeleteVendor: () => useDeleteVendor,
@@ -202,8 +195,6 @@ __export(index_exports, {
202
195
  useGetResourceConnections: () => useGetResourceConnections,
203
196
  useGetSubscriptionPlans: () => useGetSubscriptionPlans,
204
197
  useGetSubscriptionStatus: () => useGetSubscriptionStatus,
205
- useGetTester: () => useGetTester,
206
- useGetTesters: () => useGetTesters,
207
198
  useGetUnregisteredVendor: () => useGetUnregisteredVendor,
208
199
  useGetUnregisteredVendors: () => useGetUnregisteredVendors,
209
200
  useGetUser: () => useGetUser,
@@ -248,17 +239,16 @@ __export(index_exports, {
248
239
  useSelectPackage: () => useSelectPackage,
249
240
  useSelectStandardPackage: () => useSelectStandardPackage,
250
241
  useSendChatMessage: () => useSendChatMessage,
251
- useTesterForm: () => useTesterForm,
252
242
  useToggleChatMessageLike: () => useToggleChatMessageLike,
253
243
  useUpdateAd: () => useUpdateAd,
254
244
  useUpdateAppSettings: () => useUpdateAppSettings,
255
245
  useUpdateEvent: () => useUpdateEvent,
256
246
  useUpdateEventInfo: () => useUpdateEventInfo,
247
+ useUpdateGoogleImportedMarkets: () => useUpdateGoogleImportedMarkets,
257
248
  useUpdatePartner: () => useUpdatePartner,
258
249
  useUpdatePost: () => useUpdatePost,
259
250
  useUpdateRelation: () => useUpdateRelation,
260
251
  useUpdateSubscriptionPlan: () => useUpdateSubscriptionPlan,
261
- useUpdateTester: () => useUpdateTester,
262
252
  useUpdateUnregisteredVendor: () => useUpdateUnregisteredVendor,
263
253
  useUpdateUser: () => useUpdateUser,
264
254
  useUpdateVendor: () => useUpdateVendor,
@@ -1287,6 +1277,21 @@ var refundPolicyOptions = [
1287
1277
  label: "No refund if cancelled less than 14 days before the event.",
1288
1278
  value: false
1289
1279
  },
1280
+ {
1281
+ category: "Cancelled by Vendor",
1282
+ label: "Full refund if cancelled due to illness or emergency.",
1283
+ value: false
1284
+ },
1285
+ {
1286
+ category: "Cancelled by Vendor",
1287
+ label: "No refund for no-shows or last-minute cancellations.",
1288
+ value: false
1289
+ },
1290
+ {
1291
+ category: "Cancelled by Vendor",
1292
+ label: "No refund",
1293
+ value: false
1294
+ },
1290
1295
  {
1291
1296
  category: "Cancelled by Organiser",
1292
1297
  label: "Full refund if the event is cancelled by the organiser.",
@@ -1301,6 +1306,11 @@ var refundPolicyOptions = [
1301
1306
  category: "Cancelled by Organiser",
1302
1307
  label: "Refund only in cases of force majeure (e.g., natural disasters, government restrictions).",
1303
1308
  value: false
1309
+ },
1310
+ {
1311
+ category: "Cancelled by Organiser",
1312
+ label: "No refund",
1313
+ value: false
1304
1314
  }
1305
1315
  ];
1306
1316
 
@@ -2473,38 +2483,6 @@ var socialMediaFields = socialMedia.map((link) => ({
2473
2483
  placeholder: link.placeholder
2474
2484
  }));
2475
2485
 
2476
- // src/formFields/testers.ts
2477
- var testersFields = [
2478
- {
2479
- helperText: "Enter your business name *",
2480
- keyboardType: "default",
2481
- name: "businessName",
2482
- placeholder: "Business Name *"
2483
- },
2484
- {
2485
- helperText: "Enter first name *",
2486
- keyboardType: "default",
2487
- name: "firstName",
2488
- placeholder: "First Name *"
2489
- },
2490
- {
2491
- helperText: "Enter last name *",
2492
- keyboardType: "default",
2493
- name: "lastName",
2494
- placeholder: "Last Name *"
2495
- },
2496
- {
2497
- ...emailField,
2498
- helperText: "Enter email address *"
2499
- },
2500
- {
2501
- helperText: "Enter your mobile phone number *",
2502
- keyboardType: "phone-pad",
2503
- name: "mobilePhone",
2504
- placeholder: "Mobile Phone Number *"
2505
- }
2506
- ];
2507
-
2508
2486
  // src/formFields/contactUs.ts
2509
2487
  var contactUsFields = [
2510
2488
  {
@@ -2554,7 +2532,7 @@ var partnerBasicInfoFields = [
2554
2532
  ];
2555
2533
 
2556
2534
  // src/graphql/hooks/admin/hooksMutation.ts
2557
- var import_client6 = require("@apollo/client");
2535
+ var import_client5 = require("@apollo/client");
2558
2536
 
2559
2537
  // src/graphql/mutations/admin.ts
2560
2538
  var import_client = require("@apollo/client");
@@ -2567,24 +2545,22 @@ var ADMIN_UPDATE_RESOURCE_TYPE_MUTATION = import_client.gql`
2567
2545
  }
2568
2546
  }
2569
2547
  `;
2570
- var ADMIN_UPDATE_TESTER_MUTATION = import_client.gql`
2571
- mutation adminUpdateTester($input: AdminUpdateTesterInputType!) {
2572
- adminUpdateTester(input: $input) {
2573
- _id
2574
- approved
2575
- }
2576
- }
2577
- `;
2578
- var ADMIN_RESEND_TESTER_VERIFICATION_EMAIL_MUTATION = import_client.gql`
2579
- mutation adminResendTesterVerificationEmail($testerId: ID!) {
2580
- adminResendTesterVerificationEmail(testerId: $testerId)
2581
- }
2582
- `;
2583
2548
  var ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION = import_client.gql`
2584
2549
  mutation adminResendUserVerificationEmail($userId: ID!) {
2585
2550
  adminResendUserVerificationEmail(userId: $userId)
2586
2551
  }
2587
2552
  `;
2553
+ var ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION = import_client.gql`
2554
+ mutation adminPermanentlyDeleteResource(
2555
+ $resourceId: ID!
2556
+ $resourceType: ResourceTypeEnum!
2557
+ ) {
2558
+ adminPermanentlyDeleteResource(
2559
+ resourceId: $resourceId
2560
+ resourceType: $resourceType
2561
+ )
2562
+ }
2563
+ `;
2588
2564
 
2589
2565
  // src/graphql/queries/event.ts
2590
2566
  var import_client3 = require("@apollo/client");
@@ -3016,107 +2992,9 @@ var GET_EVENT_INFO = import_client3.gql`
3016
2992
  ${EVENT_INFO}
3017
2993
  `;
3018
2994
 
3019
- // src/graphql/queries/tester.ts
3020
- var import_client4 = require("@apollo/client");
3021
- var TESTER_VENDOR_FIELDS_FRAGMENT = import_client4.gql`
3022
- fragment TesterVendorFields on TesterVendorType {
3023
- categories {
3024
- ...CategoryFields
3025
- }
3026
- productsOrServices
3027
- marketsAttended {
3028
- name
3029
- city
3030
- }
3031
- sellingFrequency
3032
- yearlySellingApprox
3033
- questionary {
3034
- uploadStallProfileFirstWeek
3035
- applyToAtLeastOneMarket
3036
- tryVisitorFeatures
3037
- completeFeedbackQuestionnaire
3038
- sendPhotoForSocialMedia
3039
- appearInVideoIntroduction
3040
- socialMediaFeatureReason
3041
- excitementAboutApp
3042
- usefulnessExpectations
3043
- testingPeriodConcerns
3044
- }
3045
- }
3046
- ${CATEGORY_FIELDS_FRAGMENT}
3047
- `;
3048
- var TESTER_EVENT_FIELDS_FRAGMENT = import_client4.gql`
3049
- fragment TesterEventFields on TesterEventType {
3050
- organizedMarketCount
3051
- markets {
3052
- name
3053
- cityOrVenue
3054
- frequency
3055
- averageStallCount
3056
- }
3057
- questionary {
3058
- allowMarketingAppearance
3059
- completeFinalQuestionnaire
3060
- dailyCoordinationNeeds
3061
- interestedInCharityInitiative
3062
- inviteStallholders
3063
- manageApplicationsAndCommunication
3064
- organizerExpectations
3065
- completeMarketProfileFirstWeek
3066
- spaceForClueMart
3067
- uploadStallList
3068
- }
3069
- }
3070
- `;
3071
- var TESTER_FIELDS_FRAGMENT = import_client4.gql`
3072
- fragment TesterFields on TesterType {
3073
- _id
3074
- active
3075
- approved
3076
- businessName
3077
- consents {
3078
- betaTestConsent
3079
- privacyConsent
3080
- }
3081
- createdAt
3082
- email
3083
- firstName
3084
- lastName
3085
- mobilePhone
3086
- osType
3087
- region
3088
- resourceType
3089
- updatedAt
3090
- vendor {
3091
- ...TesterVendorFields
3092
- }
3093
- event {
3094
- ...TesterEventFields
3095
- }
3096
- }
3097
- ${TESTER_VENDOR_FIELDS_FRAGMENT}
3098
- ${TESTER_EVENT_FIELDS_FRAGMENT}
3099
- `;
3100
- var GET_TESTERS = import_client4.gql`
3101
- query getTesters {
3102
- testers {
3103
- ...TesterFields
3104
- }
3105
- }
3106
- ${TESTER_FIELDS_FRAGMENT}
3107
- `;
3108
- var GET_TESTER = import_client4.gql`
3109
- query getTester($_id: ID!) {
3110
- tester(_id: $_id) {
3111
- ...TesterFields
3112
- }
3113
- }
3114
- ${TESTER_FIELDS_FRAGMENT}
3115
- `;
3116
-
3117
2995
  // src/graphql/queries/vendor.ts
3118
- var import_client5 = require("@apollo/client");
3119
- var VENDOR_DATETIME_FIELDS_FRAGMENT = import_client5.gql`
2996
+ var import_client4 = require("@apollo/client");
2997
+ var VENDOR_DATETIME_FIELDS_FRAGMENT = import_client4.gql`
3120
2998
  fragment VendorDateTimeFields on VendorDateTimeType {
3121
2999
  dateStatus
3122
3000
  endDate
@@ -3125,7 +3003,7 @@ var VENDOR_DATETIME_FIELDS_FRAGMENT = import_client5.gql`
3125
3003
  startTime
3126
3004
  }
3127
3005
  `;
3128
- var VENDOR_MENU_FIELDS_FRAGMENT = import_client5.gql`
3006
+ var VENDOR_MENU_FIELDS_FRAGMENT = import_client4.gql`
3129
3007
  fragment VendorMenuFields on VendorMenuType {
3130
3008
  description
3131
3009
  name
@@ -3133,7 +3011,7 @@ var VENDOR_MENU_FIELDS_FRAGMENT = import_client5.gql`
3133
3011
  productGroups
3134
3012
  }
3135
3013
  `;
3136
- var VENDOR = import_client5.gql`
3014
+ var VENDOR = import_client4.gql`
3137
3015
  fragment VendorFields on VendorType {
3138
3016
  _id
3139
3017
  active
@@ -3218,13 +3096,13 @@ var VENDOR = import_client5.gql`
3218
3096
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
3219
3097
  ${RELATION_DATES_FRAGMENT}
3220
3098
  `;
3221
- var VENDOR_ATTRIBUTES_FRAGMENT = import_client5.gql`
3099
+ var VENDOR_ATTRIBUTES_FRAGMENT = import_client4.gql`
3222
3100
  fragment VendorAttributesFields on VendorAttributesType {
3223
3101
  details
3224
3102
  isRequired
3225
3103
  }
3226
3104
  `;
3227
- var VENDOR_INFO = import_client5.gql`
3105
+ var VENDOR_INFO = import_client4.gql`
3228
3106
  fragment VendorInfoFields on VendorInfoType {
3229
3107
  _id
3230
3108
  compliance {
@@ -3265,7 +3143,7 @@ var VENDOR_INFO = import_client5.gql`
3265
3143
  ${VENDOR_ATTRIBUTES_FRAGMENT}
3266
3144
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
3267
3145
  `;
3268
- var UNREGISTERED_VENDOR_INVITATION_FRAGMENT = import_client5.gql`
3146
+ var UNREGISTERED_VENDOR_INVITATION_FRAGMENT = import_client4.gql`
3269
3147
  fragment UnregisteredVendorInvitationFields on UnregisteredVendorInvitationType {
3270
3148
  dateTime {
3271
3149
  ...EventDateTimeFields
@@ -3278,7 +3156,7 @@ var UNREGISTERED_VENDOR_INVITATION_FRAGMENT = import_client5.gql`
3278
3156
  ${EVENT_DATETIME_FIELDS_FRAGMENT}
3279
3157
  ${LOCATION_FIELDS_FRAGMENT}
3280
3158
  `;
3281
- var UNREGISTERED_VENDOR = import_client5.gql`
3159
+ var UNREGISTERED_VENDOR = import_client4.gql`
3282
3160
  fragment UnregisteredVendorFields on UnregisteredVendorType {
3283
3161
  _id
3284
3162
  categories {
@@ -3297,7 +3175,7 @@ var UNREGISTERED_VENDOR = import_client5.gql`
3297
3175
  ${CATEGORY_FIELDS_FRAGMENT}
3298
3176
  ${UNREGISTERED_VENDOR_INVITATION_FRAGMENT}
3299
3177
  `;
3300
- var GET_VENDORS = import_client5.gql`
3178
+ var GET_VENDORS = import_client4.gql`
3301
3179
  query getVendors {
3302
3180
  vendors {
3303
3181
  ...VendorFields
@@ -3305,7 +3183,7 @@ var GET_VENDORS = import_client5.gql`
3305
3183
  }
3306
3184
  ${VENDOR}
3307
3185
  `;
3308
- var GET_VENDOR = import_client5.gql`
3186
+ var GET_VENDOR = import_client4.gql`
3309
3187
  query getVendor($_id: ID!) {
3310
3188
  vendor(_id: $_id) {
3311
3189
  ...VendorFields
@@ -3313,7 +3191,7 @@ var GET_VENDOR = import_client5.gql`
3313
3191
  }
3314
3192
  ${VENDOR}
3315
3193
  `;
3316
- var GET_VENDORS_BY_REGION = import_client5.gql`
3194
+ var GET_VENDORS_BY_REGION = import_client4.gql`
3317
3195
  query getVendorsByRegion($region: String!) {
3318
3196
  vendorsByRegion(region: $region) {
3319
3197
  ...VendorFields
@@ -3321,7 +3199,7 @@ var GET_VENDORS_BY_REGION = import_client5.gql`
3321
3199
  }
3322
3200
  ${VENDOR}
3323
3201
  `;
3324
- var SEARCH_VENDORS = import_client5.gql`
3202
+ var SEARCH_VENDORS = import_client4.gql`
3325
3203
  query searchVendors($search: String!, $region: String) {
3326
3204
  vendorSearch(search: $search, region: $region) {
3327
3205
  ...VendorFields
@@ -3329,7 +3207,7 @@ var SEARCH_VENDORS = import_client5.gql`
3329
3207
  }
3330
3208
  ${VENDOR}
3331
3209
  `;
3332
- var GET_VENDOR_INFO = import_client5.gql`
3210
+ var GET_VENDOR_INFO = import_client4.gql`
3333
3211
  query getVendorInfo($vendorId: ID!) {
3334
3212
  vendorInfo(vendorId: $vendorId) {
3335
3213
  ...VendorInfoFields
@@ -3337,7 +3215,7 @@ var GET_VENDOR_INFO = import_client5.gql`
3337
3215
  }
3338
3216
  ${VENDOR_INFO}
3339
3217
  `;
3340
- var GET_UNREGISTERED_VENDORS = import_client5.gql`
3218
+ var GET_UNREGISTERED_VENDORS = import_client4.gql`
3341
3219
  query getUnregisteredVendors {
3342
3220
  unregisteredVendors {
3343
3221
  ...UnregisteredVendorFields
@@ -3345,7 +3223,7 @@ var GET_UNREGISTERED_VENDORS = import_client5.gql`
3345
3223
  }
3346
3224
  ${UNREGISTERED_VENDOR}
3347
3225
  `;
3348
- var GET_UNREGISTERED_VENDOR = import_client5.gql`
3226
+ var GET_UNREGISTERED_VENDOR = import_client4.gql`
3349
3227
  query getUnregisteredVendor($_id: ID!) {
3350
3228
  unregisteredVendor(_id: $_id) {
3351
3229
  ...UnregisteredVendorFields
@@ -3356,7 +3234,7 @@ var GET_UNREGISTERED_VENDOR = import_client5.gql`
3356
3234
 
3357
3235
  // src/graphql/hooks/admin/hooksMutation.ts
3358
3236
  var useAdminUpdateResourceType = () => {
3359
- const [adminUpdateResourceType, { loading, error }] = (0, import_client6.useMutation)(ADMIN_UPDATE_RESOURCE_TYPE_MUTATION, {
3237
+ const [adminUpdateResourceType, { loading, error }] = (0, import_client5.useMutation)(ADMIN_UPDATE_RESOURCE_TYPE_MUTATION, {
3360
3238
  awaitRefetchQueries: true,
3361
3239
  refetchQueries: (mutationResult) => {
3362
3240
  const adminUpdateResourceType2 = mutationResult?.data?.adminUpdateResourceType;
@@ -3378,53 +3256,33 @@ var useAdminUpdateResourceType = () => {
3378
3256
  loading
3379
3257
  };
3380
3258
  };
3381
- var useAdminUpdateTester = () => {
3382
- const [adminUpdateTester, { loading, error }] = (0, import_client6.useMutation)(ADMIN_UPDATE_TESTER_MUTATION, {
3383
- awaitRefetchQueries: true,
3384
- refetchQueries: (mutationResult) => {
3385
- const adminUpdateTester2 = mutationResult?.data?.adminUpdateTester;
3386
- const testerId = adminUpdateTester2?._id;
3387
- return [
3388
- {
3389
- query: GET_TESTER,
3390
- variables: { _id: testerId }
3391
- }
3392
- ];
3393
- }
3394
- });
3395
- return {
3396
- adminUpdateTester,
3397
- error,
3398
- loading
3399
- };
3400
- };
3401
- var useAdminResendTesterVerificationEmail = () => {
3402
- const [adminResendTesterVerificationEmail, { loading, error }] = (0, import_client6.useMutation)(
3403
- ADMIN_RESEND_TESTER_VERIFICATION_EMAIL_MUTATION
3259
+ var useAdminResendUserVerificationEmail = () => {
3260
+ const [adminResendUserVerificationEmail, { loading, error }] = (0, import_client5.useMutation)(
3261
+ ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION
3404
3262
  );
3405
3263
  return {
3406
- adminResendTesterVerificationEmail,
3264
+ adminResendUserVerificationEmail,
3407
3265
  error,
3408
3266
  loading
3409
3267
  };
3410
3268
  };
3411
- var useAdminResendUserVerificationEmail = () => {
3412
- const [adminResendUserVerificationEmail, { loading, error }] = (0, import_client6.useMutation)(
3413
- ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION
3269
+ var useAdminPermanentlyDeleteResource = () => {
3270
+ const [adminPermanentlyDeleteResource, { loading, error }] = (0, import_client5.useMutation)(
3271
+ ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION
3414
3272
  );
3415
3273
  return {
3416
- adminResendUserVerificationEmail,
3274
+ adminPermanentlyDeleteResource,
3417
3275
  error,
3418
3276
  loading
3419
3277
  };
3420
3278
  };
3421
3279
 
3422
3280
  // src/graphql/hooks/auth.ts
3423
- var import_client8 = require("@apollo/client");
3281
+ var import_client7 = require("@apollo/client");
3424
3282
 
3425
3283
  // src/graphql/mutations/auth.ts
3426
- var import_client7 = require("@apollo/client");
3427
- var REGISTER_MUTATION = import_client7.gql`
3284
+ var import_client6 = require("@apollo/client");
3285
+ var REGISTER_MUTATION = import_client6.gql`
3428
3286
  mutation register($input: RegisterInputType!) {
3429
3287
  register(input: $input) {
3430
3288
  message
@@ -3437,7 +3295,7 @@ var REGISTER_MUTATION = import_client7.gql`
3437
3295
  }
3438
3296
  ${USER_FIELDS_FRAGMENT}
3439
3297
  `;
3440
- var LOGIN_MUTATION = import_client7.gql`
3298
+ var LOGIN_MUTATION = import_client6.gql`
3441
3299
  mutation login($input: LoginInputType!) {
3442
3300
  login(input: $input) {
3443
3301
  message
@@ -3450,14 +3308,14 @@ var LOGIN_MUTATION = import_client7.gql`
3450
3308
  }
3451
3309
  ${USER_FIELDS_FRAGMENT}
3452
3310
  `;
3453
- var LOGOUT_MUTATION = import_client7.gql`
3311
+ var LOGOUT_MUTATION = import_client6.gql`
3454
3312
  mutation logout {
3455
3313
  logout {
3456
3314
  message
3457
3315
  }
3458
3316
  }
3459
3317
  `;
3460
- var REFRESH_TOKEN_MUTATION = import_client7.gql`
3318
+ var REFRESH_TOKEN_MUTATION = import_client6.gql`
3461
3319
  mutation refreshToken($input: RefreshTokenInputType!) {
3462
3320
  refreshToken(input: $input) {
3463
3321
  refreshToken
@@ -3465,21 +3323,21 @@ var REFRESH_TOKEN_MUTATION = import_client7.gql`
3465
3323
  }
3466
3324
  }
3467
3325
  `;
3468
- var RESET_PASSWORD_MUTATION = import_client7.gql`
3326
+ var RESET_PASSWORD_MUTATION = import_client6.gql`
3469
3327
  mutation resetPassword($input: ResetPasswordInputType!) {
3470
3328
  resetPassword(input: $input) {
3471
3329
  message
3472
3330
  }
3473
3331
  }
3474
3332
  `;
3475
- var REQUEST_PASSWORD_RESET_MUTATION = import_client7.gql`
3333
+ var REQUEST_PASSWORD_RESET_MUTATION = import_client6.gql`
3476
3334
  mutation requestPasswordReset($input: RequestPasswordResetInputType!) {
3477
3335
  requestPasswordReset(input: $input) {
3478
3336
  message
3479
3337
  }
3480
3338
  }
3481
3339
  `;
3482
- var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client7.gql`
3340
+ var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client6.gql`
3483
3341
  mutation validateVerificationToken(
3484
3342
  $input: ValidateVerificationTokenInputType!
3485
3343
  ) {
@@ -3491,51 +3349,51 @@ var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client7.gql`
3491
3349
 
3492
3350
  // src/graphql/hooks/auth.ts
3493
3351
  var useRegister = () => {
3494
- const [register, { loading, error }] = (0, import_client8.useMutation)(REGISTER_MUTATION);
3352
+ const [register, { loading, error }] = (0, import_client7.useMutation)(REGISTER_MUTATION);
3495
3353
  return { error, loading, register };
3496
3354
  };
3497
3355
  var useLogin = () => {
3498
- const [login, { loading, error }] = (0, import_client8.useMutation)(LOGIN_MUTATION);
3356
+ const [login, { loading, error }] = (0, import_client7.useMutation)(LOGIN_MUTATION);
3499
3357
  return { error, loading, login };
3500
3358
  };
3501
3359
  var useLogout = () => {
3502
- const [logout, { loading, error }] = (0, import_client8.useMutation)(LOGOUT_MUTATION);
3360
+ const [logout, { loading, error }] = (0, import_client7.useMutation)(LOGOUT_MUTATION);
3503
3361
  return { error, loading, logout };
3504
3362
  };
3505
3363
  var useRefreshToken = () => {
3506
- const [refreshToken, { loading, error }] = (0, import_client8.useMutation)(
3364
+ const [refreshToken, { loading, error }] = (0, import_client7.useMutation)(
3507
3365
  REFRESH_TOKEN_MUTATION
3508
3366
  );
3509
3367
  return { error, loading, refreshToken };
3510
3368
  };
3511
3369
  var useRequestPasswordReset = () => {
3512
- const [requestPasswordReset, { loading, error }] = (0, import_client8.useMutation)(
3370
+ const [requestPasswordReset, { loading, error }] = (0, import_client7.useMutation)(
3513
3371
  REQUEST_PASSWORD_RESET_MUTATION
3514
3372
  );
3515
3373
  return { error, loading, requestPasswordReset };
3516
3374
  };
3517
3375
  var useValidateVerificationToken = () => {
3518
- const [validateVerificationToken, { loading, error }] = (0, import_client8.useMutation)(
3376
+ const [validateVerificationToken, { loading, error }] = (0, import_client7.useMutation)(
3519
3377
  VALIDATE_VERIFICATION_TOKEN_MUTATION
3520
3378
  );
3521
3379
  return { error, loading, validateVerificationToken };
3522
3380
  };
3523
3381
  var useResetPassword = () => {
3524
- const [resetPassword, { loading, error }] = (0, import_client8.useMutation)(
3382
+ const [resetPassword, { loading, error }] = (0, import_client7.useMutation)(
3525
3383
  RESET_PASSWORD_MUTATION
3526
3384
  );
3527
3385
  return { error, loading, resetPassword };
3528
3386
  };
3529
3387
 
3530
3388
  // src/graphql/hooks/chat/hooksMutation.ts
3531
- var import_client11 = require("@apollo/client");
3389
+ var import_client10 = require("@apollo/client");
3532
3390
 
3533
3391
  // src/graphql/mutations/chat.ts
3534
- var import_client10 = require("@apollo/client");
3392
+ var import_client9 = require("@apollo/client");
3535
3393
 
3536
3394
  // src/graphql/queries/chat.ts
3537
- var import_client9 = require("@apollo/client");
3538
- var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client9.gql`
3395
+ var import_client8 = require("@apollo/client");
3396
+ var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client8.gql`
3539
3397
  fragment ChatMessageFields on ChatMessageType {
3540
3398
  _id
3541
3399
  content
@@ -3558,7 +3416,7 @@ var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client9.gql`
3558
3416
  updatedAt
3559
3417
  }
3560
3418
  `;
3561
- var CHAT_PARTICIPANT = import_client9.gql`
3419
+ var CHAT_PARTICIPANT = import_client8.gql`
3562
3420
  fragment ChatParticipantFields on ChatParticipantType {
3563
3421
  active
3564
3422
  userAvatar
@@ -3567,7 +3425,7 @@ var CHAT_PARTICIPANT = import_client9.gql`
3567
3425
  userName
3568
3426
  }
3569
3427
  `;
3570
- var CHAT_FIELDS_FRAGMENT = import_client9.gql`
3428
+ var CHAT_FIELDS_FRAGMENT = import_client8.gql`
3571
3429
  fragment ChatFields on ChatType {
3572
3430
  _id
3573
3431
  active
@@ -3588,7 +3446,7 @@ var CHAT_FIELDS_FRAGMENT = import_client9.gql`
3588
3446
  ${CHAT_MESSAGE_FIELDS_FRAGMENT}
3589
3447
  ${CHAT_PARTICIPANT}
3590
3448
  `;
3591
- var CHAT = import_client9.gql`
3449
+ var CHAT = import_client8.gql`
3592
3450
  query chat($_id: ID!) {
3593
3451
  chat(_id: $_id) {
3594
3452
  ...ChatFields
@@ -3596,7 +3454,7 @@ var CHAT = import_client9.gql`
3596
3454
  }
3597
3455
  ${CHAT_FIELDS_FRAGMENT}
3598
3456
  `;
3599
- var USER_CHATS = import_client9.gql`
3457
+ var USER_CHATS = import_client8.gql`
3600
3458
  query userChats {
3601
3459
  userChats {
3602
3460
  ...ChatFields
@@ -3604,7 +3462,7 @@ var USER_CHATS = import_client9.gql`
3604
3462
  }
3605
3463
  ${CHAT_FIELDS_FRAGMENT}
3606
3464
  `;
3607
- var GET_CHATS_BY_REGION = import_client9.gql`
3465
+ var GET_CHATS_BY_REGION = import_client8.gql`
3608
3466
  query getChatsByRegion($region: String!) {
3609
3467
  chatsByRegion(region: $region) {
3610
3468
  ...ChatFields
@@ -3612,7 +3470,7 @@ var GET_CHATS_BY_REGION = import_client9.gql`
3612
3470
  }
3613
3471
  ${CHAT_FIELDS_FRAGMENT}
3614
3472
  `;
3615
- var CHAT_REPORT_FIELDS_FRAGMENT = import_client9.gql`
3473
+ var CHAT_REPORT_FIELDS_FRAGMENT = import_client8.gql`
3616
3474
  fragment ChatReportFields on ReportChatUserType {
3617
3475
  _id
3618
3476
  chatId
@@ -3627,7 +3485,7 @@ var CHAT_REPORT_FIELDS_FRAGMENT = import_client9.gql`
3627
3485
  updatedAt
3628
3486
  }
3629
3487
  `;
3630
- var GET_REPORTED_CHAT_USERS = import_client9.gql`
3488
+ var GET_REPORTED_CHAT_USERS = import_client8.gql`
3631
3489
  query getReportedChatUsers {
3632
3490
  reportedChatUsers {
3633
3491
  ...ChatReportFields
@@ -3637,7 +3495,7 @@ var GET_REPORTED_CHAT_USERS = import_client9.gql`
3637
3495
  `;
3638
3496
 
3639
3497
  // src/graphql/mutations/chat.ts
3640
- var SEND_CHAT_MESSAGE_MUTATION = import_client10.gql`
3498
+ var SEND_CHAT_MESSAGE_MUTATION = import_client9.gql`
3641
3499
  mutation sendChatMessage($_id: ID!, $input: ChatMessageInputType!) {
3642
3500
  sendChatMessage(_id: $_id, input: $input) {
3643
3501
  ...ChatFields
@@ -3645,12 +3503,12 @@ var SEND_CHAT_MESSAGE_MUTATION = import_client10.gql`
3645
3503
  }
3646
3504
  ${CHAT_FIELDS_FRAGMENT}
3647
3505
  `;
3648
- var DELETE_CHAT_MUTATION = import_client10.gql`
3506
+ var DELETE_CHAT_MUTATION = import_client9.gql`
3649
3507
  mutation deleteChat($_id: ID!) {
3650
3508
  deleteChat(_id: $_id)
3651
3509
  }
3652
3510
  `;
3653
- var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client10.gql`
3511
+ var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client9.gql`
3654
3512
  mutation addParticipantToChat($chatId: ID!, $userId: ID!) {
3655
3513
  addParticipantToChat(chatId: $chatId, userId: $userId) {
3656
3514
  ...ChatFields
@@ -3658,7 +3516,7 @@ var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client10.gql`
3658
3516
  }
3659
3517
  ${CHAT_FIELDS_FRAGMENT}
3660
3518
  `;
3661
- var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client10.gql`
3519
+ var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client9.gql`
3662
3520
  mutation removeParticipantFromChat($chatId: ID!, $userId: ID!) {
3663
3521
  removeParticipantFromChat(chatId: $chatId, userId: $userId) {
3664
3522
  success
@@ -3666,7 +3524,7 @@ var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client10.gql`
3666
3524
  }
3667
3525
  }
3668
3526
  `;
3669
- var TOGGLE_CHAT_MESSAGE_LIKE_MUTATION = import_client10.gql`
3527
+ var TOGGLE_CHAT_MESSAGE_LIKE_MUTATION = import_client9.gql`
3670
3528
  mutation toggleChatMessageLike($chatId: ID!, $messageId: ID!) {
3671
3529
  toggleChatMessageLike(chatId: $chatId, messageId: $messageId) {
3672
3530
  ...ChatFields
@@ -3674,7 +3532,7 @@ var TOGGLE_CHAT_MESSAGE_LIKE_MUTATION = import_client10.gql`
3674
3532
  }
3675
3533
  ${CHAT_FIELDS_FRAGMENT}
3676
3534
  `;
3677
- var MARK_CHAT_MESSAGES_SEEN_MUTATION = import_client10.gql`
3535
+ var MARK_CHAT_MESSAGES_SEEN_MUTATION = import_client9.gql`
3678
3536
  mutation markChatMessagesSeen($chatId: ID!, $messageIds: [ID!]!) {
3679
3537
  markChatMessagesSeen(chatId: $chatId, messageIds: $messageIds) {
3680
3538
  ...ChatFields
@@ -3682,7 +3540,7 @@ var MARK_CHAT_MESSAGES_SEEN_MUTATION = import_client10.gql`
3682
3540
  }
3683
3541
  ${CHAT_FIELDS_FRAGMENT}
3684
3542
  `;
3685
- var REPORT_CHAT_USER_MUTATION = import_client10.gql`
3543
+ var REPORT_CHAT_USER_MUTATION = import_client9.gql`
3686
3544
  mutation reportChatUser($input: ReportChatUserInputType!) {
3687
3545
  reportChatUser(input: $input) {
3688
3546
  ...ChatReportFields
@@ -3693,7 +3551,7 @@ var REPORT_CHAT_USER_MUTATION = import_client10.gql`
3693
3551
 
3694
3552
  // src/graphql/hooks/chat/hooksMutation.ts
3695
3553
  var useSendChatMessage = () => {
3696
- const [sendChatMessage, { loading, error }] = (0, import_client11.useMutation)(SEND_CHAT_MESSAGE_MUTATION, {
3554
+ const [sendChatMessage, { loading, error }] = (0, import_client10.useMutation)(SEND_CHAT_MESSAGE_MUTATION, {
3697
3555
  awaitRefetchQueries: true,
3698
3556
  refetchQueries: (mutationResult) => {
3699
3557
  const chatId = mutationResult?.data?.sendChatMessage?._id;
@@ -3708,14 +3566,14 @@ var useSendChatMessage = () => {
3708
3566
  return { error, loading, sendChatMessage };
3709
3567
  };
3710
3568
  var useDeleteChat = () => {
3711
- const [deleteChat, { loading, error }] = (0, import_client11.useMutation)(DELETE_CHAT_MUTATION, {
3569
+ const [deleteChat, { loading, error }] = (0, import_client10.useMutation)(DELETE_CHAT_MUTATION, {
3712
3570
  awaitRefetchQueries: true,
3713
3571
  refetchQueries: [{ query: USER_CHATS }]
3714
3572
  });
3715
3573
  return { deleteChat, error, loading };
3716
3574
  };
3717
3575
  var useAddParticipantToChat = () => {
3718
- const [addParticipantToChat, { loading, error }] = (0, import_client11.useMutation)(ADD_PARTICIPANT_TO_CHAT_MUTATION, {
3576
+ const [addParticipantToChat, { loading, error }] = (0, import_client10.useMutation)(ADD_PARTICIPANT_TO_CHAT_MUTATION, {
3719
3577
  awaitRefetchQueries: true,
3720
3578
  refetchQueries: (mutationResult) => {
3721
3579
  const chatId = mutationResult?.data?.addParticipantToChat?._id;
@@ -3733,7 +3591,7 @@ var useAddParticipantToChat = () => {
3733
3591
  return { addParticipantToChat, error, loading };
3734
3592
  };
3735
3593
  var useRemoveParticipantFromChat = () => {
3736
- const [removeParticipantFromChat, { loading, error }] = (0, import_client11.useMutation)(REMOVE_PARTICIPANT_FROM_CHAT_MUTATION, {
3594
+ const [removeParticipantFromChat, { loading, error }] = (0, import_client10.useMutation)(REMOVE_PARTICIPANT_FROM_CHAT_MUTATION, {
3737
3595
  awaitRefetchQueries: true,
3738
3596
  refetchQueries: (mutationResult) => {
3739
3597
  const region = mutationResult?.data?.removeParticipantFromChat?.region;
@@ -3746,7 +3604,7 @@ var useRemoveParticipantFromChat = () => {
3746
3604
  return { error, loading, removeParticipantFromChat };
3747
3605
  };
3748
3606
  var useToggleChatMessageLike = () => {
3749
- const [toggleChatMessageLike, { loading, error }] = (0, import_client11.useMutation)(TOGGLE_CHAT_MESSAGE_LIKE_MUTATION, {
3607
+ const [toggleChatMessageLike, { loading, error }] = (0, import_client10.useMutation)(TOGGLE_CHAT_MESSAGE_LIKE_MUTATION, {
3750
3608
  awaitRefetchQueries: true,
3751
3609
  refetchQueries: (mutationResult) => {
3752
3610
  const chatId = mutationResult?.data?.toggleChatMessageLike?._id;
@@ -3761,7 +3619,7 @@ var useToggleChatMessageLike = () => {
3761
3619
  return { error, loading, toggleChatMessageLike };
3762
3620
  };
3763
3621
  var useMarkChatMessagesSeen = () => {
3764
- const [markChatMessagesSeen, { loading, error }] = (0, import_client11.useMutation)(MARK_CHAT_MESSAGES_SEEN_MUTATION, {
3622
+ const [markChatMessagesSeen, { loading, error }] = (0, import_client10.useMutation)(MARK_CHAT_MESSAGES_SEEN_MUTATION, {
3765
3623
  awaitRefetchQueries: true,
3766
3624
  refetchQueries: (mutationResult) => {
3767
3625
  const chatId = mutationResult?.data?.markChatMessagesSeen?._id;
@@ -3776,18 +3634,18 @@ var useMarkChatMessagesSeen = () => {
3776
3634
  return { error, loading, markChatMessagesSeen };
3777
3635
  };
3778
3636
  var useReportChatUser = () => {
3779
- const [reportChatUser, { loading, error }] = (0, import_client11.useMutation)(
3637
+ const [reportChatUser, { loading, error }] = (0, import_client10.useMutation)(
3780
3638
  REPORT_CHAT_USER_MUTATION
3781
3639
  );
3782
3640
  return { error, loading, reportChatUser };
3783
3641
  };
3784
3642
 
3785
3643
  // src/graphql/hooks/chat/hooksQuery.ts
3786
- var import_client13 = require("@apollo/client");
3644
+ var import_client12 = require("@apollo/client");
3787
3645
 
3788
3646
  // src/graphql/subscriptions/chat.ts
3789
- var import_client12 = require("@apollo/client");
3790
- var GET_CHAT_MESSAGE = import_client12.gql`
3647
+ var import_client11 = require("@apollo/client");
3648
+ var GET_CHAT_MESSAGE = import_client11.gql`
3791
3649
  subscription {
3792
3650
  getChatMessage {
3793
3651
  ...ChatFields
@@ -3798,7 +3656,7 @@ var GET_CHAT_MESSAGE = import_client12.gql`
3798
3656
 
3799
3657
  // src/graphql/hooks/chat/hooksQuery.ts
3800
3658
  var useGetChat = (_id) => {
3801
- const { loading, error, data, refetch } = (0, import_client13.useQuery)(CHAT, {
3659
+ const { loading, error, data, refetch } = (0, import_client12.useQuery)(CHAT, {
3802
3660
  fetchPolicy: "network-only",
3803
3661
  skip: !_id,
3804
3662
  variables: { _id }
@@ -3807,7 +3665,7 @@ var useGetChat = (_id) => {
3807
3665
  return { chat, error, loading, refetch };
3808
3666
  };
3809
3667
  var useGetUserChats = () => {
3810
- const { loading, error, data, refetch } = (0, import_client13.useQuery)(
3668
+ const { loading, error, data, refetch } = (0, import_client12.useQuery)(
3811
3669
  USER_CHATS,
3812
3670
  {
3813
3671
  fetchPolicy: "network-only"
@@ -3817,14 +3675,14 @@ var useGetUserChats = () => {
3817
3675
  return { error, loading, refetch, userChats };
3818
3676
  };
3819
3677
  var useGetChatSubscription = () => {
3820
- const { data, loading, error } = (0, import_client13.useSubscription)(
3678
+ const { data, loading, error } = (0, import_client12.useSubscription)(
3821
3679
  GET_CHAT_MESSAGE
3822
3680
  );
3823
3681
  const chat = data?.getChat;
3824
3682
  return { chat, error, loading };
3825
3683
  };
3826
3684
  var useGetChatsByRegion = (region) => {
3827
- const { loading, error, data, refetch } = (0, import_client13.useQuery)(GET_CHATS_BY_REGION, {
3685
+ const { loading, error, data, refetch } = (0, import_client12.useQuery)(GET_CHATS_BY_REGION, {
3828
3686
  fetchPolicy: "network-only",
3829
3687
  skip: !region,
3830
3688
  variables: { region }
@@ -3833,7 +3691,7 @@ var useGetChatsByRegion = (region) => {
3833
3691
  return { chatsByRegion, error, loading, refetch };
3834
3692
  };
3835
3693
  var useGetReportedChatUsers = () => {
3836
- const { loading, error, data, refetch } = (0, import_client13.useQuery)(GET_REPORTED_CHAT_USERS, {
3694
+ const { loading, error, data, refetch } = (0, import_client12.useQuery)(GET_REPORTED_CHAT_USERS, {
3837
3695
  fetchPolicy: "network-only"
3838
3696
  });
3839
3697
  const reportedChatUsers = data?.reportedChatUsers || [];
@@ -3841,11 +3699,11 @@ var useGetReportedChatUsers = () => {
3841
3699
  };
3842
3700
 
3843
3701
  // src/graphql/hooks/contactUs.ts
3844
- var import_client15 = require("@apollo/client");
3702
+ var import_client14 = require("@apollo/client");
3845
3703
 
3846
3704
  // src/graphql/mutations/contactUs.ts
3847
- var import_client14 = require("@apollo/client");
3848
- var CONTACT_US_MUTATION = import_client14.gql`
3705
+ var import_client13 = require("@apollo/client");
3706
+ var CONTACT_US_MUTATION = import_client13.gql`
3849
3707
  mutation contactUs($input: ContactUsInputType!) {
3850
3708
  contactUs(input: $input) {
3851
3709
  message
@@ -3855,16 +3713,16 @@ var CONTACT_US_MUTATION = import_client14.gql`
3855
3713
 
3856
3714
  // src/graphql/hooks/contactUs.ts
3857
3715
  var useContactUs = () => {
3858
- const [contactUs, { loading, error }] = (0, import_client15.useMutation)(CONTACT_US_MUTATION);
3716
+ const [contactUs, { loading, error }] = (0, import_client14.useMutation)(CONTACT_US_MUTATION);
3859
3717
  return { contactUs, error, loading };
3860
3718
  };
3861
3719
 
3862
3720
  // src/graphql/hooks/event/hooksMutation.ts
3863
- var import_client19 = require("@apollo/client");
3721
+ var import_client18 = require("@apollo/client");
3864
3722
 
3865
3723
  // src/graphql/mutations/event.ts
3866
- var import_client16 = require("@apollo/client");
3867
- var CREATE_EVENT_MUTATION = import_client16.gql`
3724
+ var import_client15 = require("@apollo/client");
3725
+ var CREATE_EVENT_MUTATION = import_client15.gql`
3868
3726
  mutation createEvent($input: EventInputType!) {
3869
3727
  createEvent(input: $input) {
3870
3728
  ...EventFields
@@ -3872,7 +3730,7 @@ var CREATE_EVENT_MUTATION = import_client16.gql`
3872
3730
  }
3873
3731
  ${EVENT}
3874
3732
  `;
3875
- var UPDATE_EVENT_MUTATION = import_client16.gql`
3733
+ var UPDATE_EVENT_MUTATION = import_client15.gql`
3876
3734
  mutation updateEvent($_id: ID!, $input: EventInputType!) {
3877
3735
  updateEvent(_id: $_id, input: $input) {
3878
3736
  ...EventFields
@@ -3880,12 +3738,12 @@ var UPDATE_EVENT_MUTATION = import_client16.gql`
3880
3738
  }
3881
3739
  ${EVENT}
3882
3740
  `;
3883
- var DELETE_EVENT_MUTATION = import_client16.gql`
3741
+ var DELETE_EVENT_MUTATION = import_client15.gql`
3884
3742
  mutation deleteEvent($_id: ID!) {
3885
3743
  deleteEvent(_id: $_id)
3886
3744
  }
3887
3745
  `;
3888
- var CREATE_EVENT_INFO_MUTATION = import_client16.gql`
3746
+ var CREATE_EVENT_INFO_MUTATION = import_client15.gql`
3889
3747
  mutation createEventInfo($input: EventInfoInputType!) {
3890
3748
  createEventInfo(input: $input) {
3891
3749
  ...EventInfoFields
@@ -3893,7 +3751,7 @@ var CREATE_EVENT_INFO_MUTATION = import_client16.gql`
3893
3751
  }
3894
3752
  ${EVENT_INFO}
3895
3753
  `;
3896
- var UPDATE_EVENT_INFO_MUTATION = import_client16.gql`
3754
+ var UPDATE_EVENT_INFO_MUTATION = import_client15.gql`
3897
3755
  mutation updateEventInfo($_id: ID!, $input: EventInfoInputType!) {
3898
3756
  updateEventInfo(_id: $_id, input: $input) {
3899
3757
  ...EventInfoFields
@@ -3903,11 +3761,11 @@ var UPDATE_EVENT_INFO_MUTATION = import_client16.gql`
3903
3761
  `;
3904
3762
 
3905
3763
  // src/graphql/queries/user.ts
3906
- var import_client18 = require("@apollo/client");
3764
+ var import_client17 = require("@apollo/client");
3907
3765
 
3908
3766
  // src/graphql/queries/partner.ts
3909
- var import_client17 = require("@apollo/client");
3910
- var PARTNER = import_client17.gql`
3767
+ var import_client16 = require("@apollo/client");
3768
+ var PARTNER = import_client16.gql`
3911
3769
  fragment PartnerFields on PartnerType {
3912
3770
  _id
3913
3771
  active
@@ -3962,7 +3820,7 @@ var PARTNER = import_client17.gql`
3962
3820
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
3963
3821
  ${CONTACT_DETAILS_FIELDS_FRAGMENT}
3964
3822
  `;
3965
- var GET_PARTNERS = import_client17.gql`
3823
+ var GET_PARTNERS = import_client16.gql`
3966
3824
  query getPartners {
3967
3825
  partners {
3968
3826
  ...PartnerFields
@@ -3970,7 +3828,7 @@ var GET_PARTNERS = import_client17.gql`
3970
3828
  }
3971
3829
  ${PARTNER}
3972
3830
  `;
3973
- var GET_PARTNER = import_client17.gql`
3831
+ var GET_PARTNER = import_client16.gql`
3974
3832
  query getPartner($_id: ID!) {
3975
3833
  partner(_id: $_id) {
3976
3834
  ...PartnerFields
@@ -3978,7 +3836,7 @@ var GET_PARTNER = import_client17.gql`
3978
3836
  }
3979
3837
  ${PARTNER}
3980
3838
  `;
3981
- var GET_PARTNERS_BY_REGION = import_client17.gql`
3839
+ var GET_PARTNERS_BY_REGION = import_client16.gql`
3982
3840
  query getPartnersByRegion($region: String!) {
3983
3841
  partnersByRegion(region: $region) {
3984
3842
  ...PartnerFields
@@ -3986,7 +3844,7 @@ var GET_PARTNERS_BY_REGION = import_client17.gql`
3986
3844
  }
3987
3845
  ${PARTNER}
3988
3846
  `;
3989
- var SEARCH_PARTNERS = import_client17.gql`
3847
+ var SEARCH_PARTNERS = import_client16.gql`
3990
3848
  query searchPartners($search: String!, $region: String) {
3991
3849
  partnersSearch(search: $search, region: $region) {
3992
3850
  ...PartnerFields
@@ -3996,7 +3854,7 @@ var SEARCH_PARTNERS = import_client17.gql`
3996
3854
  `;
3997
3855
 
3998
3856
  // src/graphql/queries/user.ts
3999
- var GET_USERS = import_client18.gql`
3857
+ var GET_USERS = import_client17.gql`
4000
3858
  query getUsers {
4001
3859
  users {
4002
3860
  ...UserFields
@@ -4004,7 +3862,7 @@ var GET_USERS = import_client18.gql`
4004
3862
  }
4005
3863
  ${USER_FIELDS_FRAGMENT}
4006
3864
  `;
4007
- var GET_USER = import_client18.gql`
3865
+ var GET_USER = import_client17.gql`
4008
3866
  query getUser($_id: ID!) {
4009
3867
  user(_id: $_id) {
4010
3868
  ...UserFields
@@ -4012,7 +3870,7 @@ var GET_USER = import_client18.gql`
4012
3870
  }
4013
3871
  ${USER_FIELDS_FRAGMENT}
4014
3872
  `;
4015
- var GET_USER_EVENTS = import_client18.gql`
3873
+ var GET_USER_EVENTS = import_client17.gql`
4016
3874
  query getUserEvents {
4017
3875
  userEvents {
4018
3876
  ...EventFields
@@ -4020,7 +3878,7 @@ var GET_USER_EVENTS = import_client18.gql`
4020
3878
  }
4021
3879
  ${EVENT}
4022
3880
  `;
4023
- var GET_USER_VENDORS = import_client18.gql`
3881
+ var GET_USER_VENDORS = import_client17.gql`
4024
3882
  query getUserVendors {
4025
3883
  userVendors {
4026
3884
  ...VendorFields
@@ -4028,7 +3886,7 @@ var GET_USER_VENDORS = import_client18.gql`
4028
3886
  }
4029
3887
  ${VENDOR}
4030
3888
  `;
4031
- var GET_USER_PARTNERS = import_client18.gql`
3889
+ var GET_USER_PARTNERS = import_client17.gql`
4032
3890
  query getUserPartners {
4033
3891
  userPartners {
4034
3892
  ...PartnerFields
@@ -4036,7 +3894,7 @@ var GET_USER_PARTNERS = import_client18.gql`
4036
3894
  }
4037
3895
  ${PARTNER}
4038
3896
  `;
4039
- var GET_USER_ACTIVITIES = import_client18.gql`
3897
+ var GET_USER_ACTIVITIES = import_client17.gql`
4040
3898
  query getUserActivities {
4041
3899
  userActivities {
4042
3900
  favourites {
@@ -4070,28 +3928,28 @@ var GET_USER_ACTIVITIES = import_client18.gql`
4070
3928
 
4071
3929
  // src/graphql/hooks/event/hooksMutation.ts
4072
3930
  var useCreateEvent = () => {
4073
- const [createEvent, { loading, error }] = (0, import_client19.useMutation)(CREATE_EVENT_MUTATION, {
3931
+ const [createEvent, { loading, error }] = (0, import_client18.useMutation)(CREATE_EVENT_MUTATION, {
4074
3932
  awaitRefetchQueries: true,
4075
3933
  refetchQueries: [{ query: GET_USER_EVENTS }]
4076
3934
  });
4077
3935
  return { createEvent, error, loading };
4078
3936
  };
4079
3937
  var useUpdateEvent = () => {
4080
- const [updateEvent, { loading, error }] = (0, import_client19.useMutation)(UPDATE_EVENT_MUTATION, {
3938
+ const [updateEvent, { loading, error }] = (0, import_client18.useMutation)(UPDATE_EVENT_MUTATION, {
4081
3939
  awaitRefetchQueries: true,
4082
3940
  refetchQueries: [{ query: GET_USER_EVENTS }]
4083
3941
  });
4084
3942
  return { error, loading, updateEvent };
4085
3943
  };
4086
3944
  var useDeleteEvent = () => {
4087
- const [deleteEvent, { loading, error }] = (0, import_client19.useMutation)(DELETE_EVENT_MUTATION, {
3945
+ const [deleteEvent, { loading, error }] = (0, import_client18.useMutation)(DELETE_EVENT_MUTATION, {
4088
3946
  awaitRefetchQueries: true,
4089
3947
  refetchQueries: [{ query: GET_USER_EVENTS }]
4090
3948
  });
4091
3949
  return { deleteEvent, error, loading };
4092
3950
  };
4093
3951
  var useCreateEventInfo = () => {
4094
- const [createEventInfo, { loading, error }] = (0, import_client19.useMutation)(CREATE_EVENT_INFO_MUTATION, {
3952
+ const [createEventInfo, { loading, error }] = (0, import_client18.useMutation)(CREATE_EVENT_INFO_MUTATION, {
4095
3953
  awaitRefetchQueries: true,
4096
3954
  refetchQueries: (mutationResult) => {
4097
3955
  const eventId = mutationResult?.data?.createEventInfo?.eventId;
@@ -4115,7 +3973,7 @@ var useCreateEventInfo = () => {
4115
3973
  return { createEventInfo, error, loading };
4116
3974
  };
4117
3975
  var useUpdateEventInfo = () => {
4118
- const [updateEventInfo, { loading, error }] = (0, import_client19.useMutation)(UPDATE_EVENT_INFO_MUTATION, {
3976
+ const [updateEventInfo, { loading, error }] = (0, import_client18.useMutation)(UPDATE_EVENT_INFO_MUTATION, {
4119
3977
  awaitRefetchQueries: true,
4120
3978
  refetchQueries: (mutationResult) => {
4121
3979
  const eventId = mutationResult?.data?.updateEventInfo?.eventId;
@@ -4138,16 +3996,16 @@ var useUpdateEventInfo = () => {
4138
3996
  };
4139
3997
 
4140
3998
  // src/graphql/hooks/event/hooksQuery.ts
4141
- var import_client20 = require("@apollo/client");
3999
+ var import_client19 = require("@apollo/client");
4142
4000
  var useGetEvents = () => {
4143
- const { loading, error, data, refetch } = (0, import_client20.useQuery)(GET_EVENTS, {
4001
+ const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_EVENTS, {
4144
4002
  fetchPolicy: "network-only"
4145
4003
  });
4146
4004
  const events = data?.events || [];
4147
4005
  return { error, events, loading, refetch };
4148
4006
  };
4149
4007
  var useGetEvent = (_id) => {
4150
- const { loading, error, data, refetch } = (0, import_client20.useQuery)(GET_EVENT, {
4008
+ const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_EVENT, {
4151
4009
  fetchPolicy: "network-only",
4152
4010
  skip: !_id,
4153
4011
  variables: { _id }
@@ -4156,7 +4014,7 @@ var useGetEvent = (_id) => {
4156
4014
  return { error, event, loading, refetch };
4157
4015
  };
4158
4016
  var useGetEventByPlaceId = (googlePlaceId) => {
4159
- const { loading, error, data, refetch } = (0, import_client20.useQuery)(GET_EVENT_BY_PLACE_ID, {
4017
+ const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_EVENT_BY_PLACE_ID, {
4160
4018
  fetchPolicy: "network-only",
4161
4019
  skip: !googlePlaceId,
4162
4020
  variables: { googlePlaceId }
@@ -4165,7 +4023,7 @@ var useGetEventByPlaceId = (googlePlaceId) => {
4165
4023
  return { error, eventByPlaceId, loading, refetch };
4166
4024
  };
4167
4025
  var useGetEventsByRegion = (region, onlyClaimed) => {
4168
- const { loading, error, data, refetch } = (0, import_client20.useQuery)(GET_EVENTS_BY_REGION, {
4026
+ const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_EVENTS_BY_REGION, {
4169
4027
  fetchPolicy: "no-cache",
4170
4028
  skip: !region,
4171
4029
  variables: { onlyClaimed, region }
@@ -4174,7 +4032,7 @@ var useGetEventsByRegion = (region, onlyClaimed) => {
4174
4032
  return { error, eventsByRegion, loading, refetch };
4175
4033
  };
4176
4034
  var useSearchEvents = (search, region) => {
4177
- const { loading, error, data, refetch } = (0, import_client20.useQuery)(SEARCH_EVENTS, {
4035
+ const { loading, error, data, refetch } = (0, import_client19.useQuery)(SEARCH_EVENTS, {
4178
4036
  fetchPolicy: "network-only",
4179
4037
  skip: search.length < 3,
4180
4038
  variables: { region, search }
@@ -4183,7 +4041,7 @@ var useSearchEvents = (search, region) => {
4183
4041
  return { error, eventsSearch, loading, refetch };
4184
4042
  };
4185
4043
  var useGetEventsNearMe = (location) => {
4186
- const { loading, error, data, refetch } = (0, import_client20.useQuery)(GET_EVENTS_NEAR_ME, {
4044
+ const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_EVENTS_NEAR_ME, {
4187
4045
  fetchPolicy: "network-only",
4188
4046
  skip: !location.latitude || !location.longitude,
4189
4047
  variables: {
@@ -4197,7 +4055,7 @@ var useGetEventsNearMe = (location) => {
4197
4055
  return { error, eventsNearMe, loading, refetch };
4198
4056
  };
4199
4057
  var useGetEventInfo = (eventId) => {
4200
- const { loading, error, data, refetch } = (0, import_client20.useQuery)(GET_EVENT_INFO, {
4058
+ const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_EVENT_INFO, {
4201
4059
  fetchPolicy: "network-only",
4202
4060
  skip: !eventId,
4203
4061
  variables: { eventId }
@@ -4207,14 +4065,14 @@ var useGetEventInfo = (eventId) => {
4207
4065
  };
4208
4066
 
4209
4067
  // src/graphql/hooks/notifications/hooksMutation.ts
4210
- var import_client23 = require("@apollo/client");
4068
+ var import_client22 = require("@apollo/client");
4211
4069
 
4212
4070
  // src/graphql/mutations/notification.ts
4213
- var import_client22 = require("@apollo/client");
4071
+ var import_client21 = require("@apollo/client");
4214
4072
 
4215
4073
  // src/graphql/queries/notification.ts
4216
- var import_client21 = require("@apollo/client");
4217
- var NOTIFICATION_FRAGMENT = import_client21.gql`
4074
+ var import_client20 = require("@apollo/client");
4075
+ var NOTIFICATION_FRAGMENT = import_client20.gql`
4218
4076
  fragment NotificationFields on Notification {
4219
4077
  _id
4220
4078
  userId
@@ -4231,7 +4089,7 @@ var NOTIFICATION_FRAGMENT = import_client21.gql`
4231
4089
  updatedAt
4232
4090
  }
4233
4091
  `;
4234
- var GET_USER_NOTIFICATIONS = import_client21.gql`
4092
+ var GET_USER_NOTIFICATIONS = import_client20.gql`
4235
4093
  query getUserNotifications($limit: Int, $offset: Int) {
4236
4094
  userNotifications(limit: $limit, offset: $offset) {
4237
4095
  ...NotificationFields
@@ -4239,7 +4097,7 @@ var GET_USER_NOTIFICATIONS = import_client21.gql`
4239
4097
  }
4240
4098
  ${NOTIFICATION_FRAGMENT}
4241
4099
  `;
4242
- var GET_NOTIFICATION_COUNT = import_client21.gql`
4100
+ var GET_NOTIFICATION_COUNT = import_client20.gql`
4243
4101
  query getNotificationCount {
4244
4102
  notificationCount {
4245
4103
  total
@@ -4249,7 +4107,7 @@ var GET_NOTIFICATION_COUNT = import_client21.gql`
4249
4107
  `;
4250
4108
 
4251
4109
  // src/graphql/mutations/notification.ts
4252
- var CREATE_BULK_NOTIFICATIONS = import_client22.gql`
4110
+ var CREATE_BULK_NOTIFICATIONS = import_client21.gql`
4253
4111
  mutation createBulkNotifications($input: CreateBulkNotificationInput!) {
4254
4112
  createBulkNotifications(input: $input) {
4255
4113
  ...NotificationFields
@@ -4257,7 +4115,7 @@ var CREATE_BULK_NOTIFICATIONS = import_client22.gql`
4257
4115
  }
4258
4116
  ${NOTIFICATION_FRAGMENT}
4259
4117
  `;
4260
- var MARK_NOTIFICATION_READ = import_client22.gql`
4118
+ var MARK_NOTIFICATION_READ = import_client21.gql`
4261
4119
  mutation markNotificationRead($_id: ID!) {
4262
4120
  markNotificationRead(_id: $_id) {
4263
4121
  ...NotificationFields
@@ -4265,17 +4123,17 @@ var MARK_NOTIFICATION_READ = import_client22.gql`
4265
4123
  }
4266
4124
  ${NOTIFICATION_FRAGMENT}
4267
4125
  `;
4268
- var MARK_ALL_NOTIFICATIONS_READ = import_client22.gql`
4126
+ var MARK_ALL_NOTIFICATIONS_READ = import_client21.gql`
4269
4127
  mutation markAllNotificationsRead {
4270
4128
  markAllNotificationsRead
4271
4129
  }
4272
4130
  `;
4273
- var DELETE_NOTIFICATION = import_client22.gql`
4131
+ var DELETE_NOTIFICATION = import_client21.gql`
4274
4132
  mutation deleteNotification($_id: ID!) {
4275
4133
  deleteNotification(_id: $_id)
4276
4134
  }
4277
4135
  `;
4278
- var DELETE_ALL_NOTIFICATIONS = import_client22.gql`
4136
+ var DELETE_ALL_NOTIFICATIONS = import_client21.gql`
4279
4137
  mutation deleteAllNotifications {
4280
4138
  deleteAllNotifications
4281
4139
  }
@@ -4283,13 +4141,13 @@ var DELETE_ALL_NOTIFICATIONS = import_client22.gql`
4283
4141
 
4284
4142
  // src/graphql/hooks/notifications/hooksMutation.ts
4285
4143
  var useCreateBulkNotifications = () => {
4286
- const [createBulkNotifications, { loading, error }] = (0, import_client23.useMutation)(
4144
+ const [createBulkNotifications, { loading, error }] = (0, import_client22.useMutation)(
4287
4145
  CREATE_BULK_NOTIFICATIONS
4288
4146
  );
4289
4147
  return { createBulkNotifications, error, loading };
4290
4148
  };
4291
4149
  var useMarkNotificationRead = () => {
4292
- const [markNotificationRead, { loading, error }] = (0, import_client23.useMutation)(
4150
+ const [markNotificationRead, { loading, error }] = (0, import_client22.useMutation)(
4293
4151
  MARK_NOTIFICATION_READ,
4294
4152
  {
4295
4153
  refetchQueries: [
@@ -4305,7 +4163,7 @@ var useMarkNotificationRead = () => {
4305
4163
  return { error, loading, markNotificationRead };
4306
4164
  };
4307
4165
  var useMarkAllNotificationsRead = () => {
4308
- const [markAllNotificationsRead, { loading, error }] = (0, import_client23.useMutation)(
4166
+ const [markAllNotificationsRead, { loading, error }] = (0, import_client22.useMutation)(
4309
4167
  MARK_ALL_NOTIFICATIONS_READ,
4310
4168
  {
4311
4169
  refetchQueries: [
@@ -4321,7 +4179,7 @@ var useMarkAllNotificationsRead = () => {
4321
4179
  return { error, loading, markAllNotificationsRead };
4322
4180
  };
4323
4181
  var useDeleteNotification = () => {
4324
- const [deleteNotification, { loading, error }] = (0, import_client23.useMutation)(
4182
+ const [deleteNotification, { loading, error }] = (0, import_client22.useMutation)(
4325
4183
  DELETE_NOTIFICATION,
4326
4184
  {
4327
4185
  refetchQueries: [
@@ -4337,7 +4195,7 @@ var useDeleteNotification = () => {
4337
4195
  return { deleteNotification, error, loading };
4338
4196
  };
4339
4197
  var useDeleteAllNotifications = () => {
4340
- const [deleteAllNotifications, { loading, error }] = (0, import_client23.useMutation)(
4198
+ const [deleteAllNotifications, { loading, error }] = (0, import_client22.useMutation)(
4341
4199
  DELETE_ALL_NOTIFICATIONS,
4342
4200
  {
4343
4201
  refetchQueries: [
@@ -4354,9 +4212,9 @@ var useDeleteAllNotifications = () => {
4354
4212
  };
4355
4213
 
4356
4214
  // src/graphql/hooks/notifications/hooksQuery.ts
4357
- var import_client24 = require("@apollo/client");
4215
+ var import_client23 = require("@apollo/client");
4358
4216
  var useGetUserNotifications = (limit, offset) => {
4359
- const { data, loading, error, refetch } = (0, import_client24.useQuery)(GET_USER_NOTIFICATIONS, {
4217
+ const { data, loading, error, refetch } = (0, import_client23.useQuery)(GET_USER_NOTIFICATIONS, {
4360
4218
  fetchPolicy: "no-cache",
4361
4219
  variables: { limit, offset }
4362
4220
  });
@@ -4368,7 +4226,7 @@ var useGetUserNotifications = (limit, offset) => {
4368
4226
  };
4369
4227
  };
4370
4228
  var useGetNotificationCount = () => {
4371
- const { data, loading, error, refetch } = (0, import_client24.useQuery)(GET_NOTIFICATION_COUNT, {
4229
+ const { data, loading, error, refetch } = (0, import_client23.useQuery)(GET_NOTIFICATION_COUNT, {
4372
4230
  fetchPolicy: "no-cache"
4373
4231
  });
4374
4232
  return {
@@ -4380,11 +4238,11 @@ var useGetNotificationCount = () => {
4380
4238
  };
4381
4239
 
4382
4240
  // src/graphql/hooks/notifications/hooksSubscription.ts
4383
- var import_client26 = require("@apollo/client");
4241
+ var import_client25 = require("@apollo/client");
4384
4242
 
4385
4243
  // src/graphql/subscriptions/notification.ts
4386
- var import_client25 = require("@apollo/client");
4387
- var GET_NOTIFICATIONS_SUBSCRIPTION = import_client25.gql`
4244
+ var import_client24 = require("@apollo/client");
4245
+ var GET_NOTIFICATIONS_SUBSCRIPTION = import_client24.gql`
4388
4246
  subscription {
4389
4247
  getUserNotifications {
4390
4248
  ...NotificationFields
@@ -4392,7 +4250,7 @@ var GET_NOTIFICATIONS_SUBSCRIPTION = import_client25.gql`
4392
4250
  }
4393
4251
  ${NOTIFICATION_FRAGMENT}
4394
4252
  `;
4395
- var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client25.gql`
4253
+ var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client24.gql`
4396
4254
  subscription {
4397
4255
  getNotificationCount {
4398
4256
  total
@@ -4403,7 +4261,7 @@ var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client25.gql`
4403
4261
 
4404
4262
  // src/graphql/hooks/notifications/hooksSubscription.ts
4405
4263
  var useGetUserNotificationsSubscription = () => {
4406
- const { data, loading, error } = (0, import_client26.useSubscription)(GET_NOTIFICATIONS_SUBSCRIPTION, {
4264
+ const { data, loading, error } = (0, import_client25.useSubscription)(GET_NOTIFICATIONS_SUBSCRIPTION, {
4407
4265
  fetchPolicy: "no-cache",
4408
4266
  shouldResubscribe: true
4409
4267
  });
@@ -4414,7 +4272,7 @@ var useGetUserNotificationsSubscription = () => {
4414
4272
  };
4415
4273
  };
4416
4274
  var useGetNotificationCountSubscription = () => {
4417
- const { data, loading, error } = (0, import_client26.useSubscription)(GET_NOTIFICATION_COUNT_SUBSCRIPTION, {
4275
+ const { data, loading, error } = (0, import_client25.useSubscription)(GET_NOTIFICATION_COUNT_SUBSCRIPTION, {
4418
4276
  fetchPolicy: "no-cache",
4419
4277
  shouldResubscribe: true
4420
4278
  });
@@ -4426,11 +4284,11 @@ var useGetNotificationCountSubscription = () => {
4426
4284
  };
4427
4285
 
4428
4286
  // src/graphql/hooks/poster.ts
4429
- var import_client28 = require("@apollo/client");
4287
+ var import_client27 = require("@apollo/client");
4430
4288
 
4431
4289
  // src/graphql/mutations/poster.ts
4432
- var import_client27 = require("@apollo/client");
4433
- var CREATE_POSTER_MUTATION = import_client27.gql`
4290
+ var import_client26 = require("@apollo/client");
4291
+ var CREATE_POSTER_MUTATION = import_client26.gql`
4434
4292
  mutation createPoster($input: PosterInputType!) {
4435
4293
  createPoster(input: $input) {
4436
4294
  message
@@ -4444,7 +4302,7 @@ var CREATE_POSTER_MUTATION = import_client27.gql`
4444
4302
 
4445
4303
  // src/graphql/hooks/poster.ts
4446
4304
  var useCreatePoster = () => {
4447
- const [createPoster, { loading, error }] = (0, import_client28.useMutation)(
4305
+ const [createPoster, { loading, error }] = (0, import_client27.useMutation)(
4448
4306
  CREATE_POSTER_MUTATION,
4449
4307
  {
4450
4308
  refetchQueries: [{ query: GET_USER_EVENTS }, { query: GET_USER_VENDORS }]
@@ -4454,11 +4312,11 @@ var useCreatePoster = () => {
4454
4312
  };
4455
4313
 
4456
4314
  // src/graphql/hooks/pushToken.ts
4457
- var import_client30 = require("@apollo/client");
4315
+ var import_client29 = require("@apollo/client");
4458
4316
 
4459
4317
  // src/graphql/mutations/pushToken.ts
4460
- var import_client29 = require("@apollo/client");
4461
- var CREATE_PUSH_TOKEN_MUTATION = import_client29.gql`
4318
+ var import_client28 = require("@apollo/client");
4319
+ var CREATE_PUSH_TOKEN_MUTATION = import_client28.gql`
4462
4320
  mutation createPushToken($input: PushTokenInput!) {
4463
4321
  createPushToken(input: $input) {
4464
4322
  success
@@ -4468,21 +4326,21 @@ var CREATE_PUSH_TOKEN_MUTATION = import_client29.gql`
4468
4326
 
4469
4327
  // src/graphql/hooks/pushToken.ts
4470
4328
  var useCreatePushToken = () => {
4471
- const [createPushToken, { loading, error }] = (0, import_client30.useMutation)(
4329
+ const [createPushToken, { loading, error }] = (0, import_client29.useMutation)(
4472
4330
  CREATE_PUSH_TOKEN_MUTATION
4473
4331
  );
4474
4332
  return { createPushToken, error, loading };
4475
4333
  };
4476
4334
 
4477
4335
  // src/graphql/hooks/relation/hooksMutation.ts
4478
- var import_client33 = require("@apollo/client");
4336
+ var import_client32 = require("@apollo/client");
4479
4337
 
4480
4338
  // src/graphql/mutations/relation.ts
4481
- var import_client32 = require("@apollo/client");
4339
+ var import_client31 = require("@apollo/client");
4482
4340
 
4483
4341
  // src/graphql/queries/relation.ts
4484
- var import_client31 = require("@apollo/client");
4485
- var RELATION_FIELDS_FRAGMENT = import_client31.gql`
4342
+ var import_client30 = require("@apollo/client");
4343
+ var RELATION_FIELDS_FRAGMENT = import_client30.gql`
4486
4344
  fragment RelationFields on RelationType {
4487
4345
  _id
4488
4346
  active
@@ -4500,7 +4358,7 @@ var RELATION_FIELDS_FRAGMENT = import_client31.gql`
4500
4358
  }
4501
4359
  ${RELATION_DATES_FRAGMENT}
4502
4360
  `;
4503
- var GET_RELATION = import_client31.gql`
4361
+ var GET_RELATION = import_client30.gql`
4504
4362
  query getRelation($_id: ID!) {
4505
4363
  relation(_id: $_id) {
4506
4364
  ...RelationFields
@@ -4508,7 +4366,7 @@ var GET_RELATION = import_client31.gql`
4508
4366
  }
4509
4367
  ${RELATION_FIELDS_FRAGMENT}
4510
4368
  `;
4511
- var GET_RELATION_BY_EVENT_AND_VENDOR = import_client31.gql`
4369
+ var GET_RELATION_BY_EVENT_AND_VENDOR = import_client30.gql`
4512
4370
  query getRelationByEventAndVendor($eventId: ID!, $vendorId: ID!) {
4513
4371
  relationByEventAndVendor(eventId: $eventId, vendorId: $vendorId) {
4514
4372
  ...RelationFields
@@ -4516,7 +4374,7 @@ var GET_RELATION_BY_EVENT_AND_VENDOR = import_client31.gql`
4516
4374
  }
4517
4375
  ${RELATION_FIELDS_FRAGMENT}
4518
4376
  `;
4519
- var GET_EVENT_RELATIONS = import_client31.gql`
4377
+ var GET_EVENT_RELATIONS = import_client30.gql`
4520
4378
  query getEventRelations($eventId: ID!) {
4521
4379
  eventRelations(eventId: $eventId) {
4522
4380
  ...RelationFields
@@ -4524,7 +4382,7 @@ var GET_EVENT_RELATIONS = import_client31.gql`
4524
4382
  }
4525
4383
  ${RELATION_FIELDS_FRAGMENT}
4526
4384
  `;
4527
- var GET_VENDOR_RELATIONS = import_client31.gql`
4385
+ var GET_VENDOR_RELATIONS = import_client30.gql`
4528
4386
  query getVendorRelations($vendorId: ID!) {
4529
4387
  vendorRelations(vendorId: $vendorId) {
4530
4388
  ...RelationFields
@@ -4532,7 +4390,7 @@ var GET_VENDOR_RELATIONS = import_client31.gql`
4532
4390
  }
4533
4391
  ${RELATION_FIELDS_FRAGMENT}
4534
4392
  `;
4535
- var GET_RESOURCE_CONNECTIONS = import_client31.gql`
4393
+ var GET_RESOURCE_CONNECTIONS = import_client30.gql`
4536
4394
  query getResourceConnections(
4537
4395
  $resourceId: ID!
4538
4396
  $resourceType: ResourceTypeEnum!
@@ -4551,7 +4409,7 @@ var GET_RESOURCE_CONNECTIONS = import_client31.gql`
4551
4409
  `;
4552
4410
 
4553
4411
  // src/graphql/mutations/relation.ts
4554
- var CREATE_RELATION_MUTATION = import_client32.gql`
4412
+ var CREATE_RELATION_MUTATION = import_client31.gql`
4555
4413
  mutation createRelation($input: RelationInputType!) {
4556
4414
  createRelation(input: $input) {
4557
4415
  ...RelationFields
@@ -4559,7 +4417,7 @@ var CREATE_RELATION_MUTATION = import_client32.gql`
4559
4417
  }
4560
4418
  ${RELATION_FIELDS_FRAGMENT}
4561
4419
  `;
4562
- var UPDATE_RELATION_MUTATION = import_client32.gql`
4420
+ var UPDATE_RELATION_MUTATION = import_client31.gql`
4563
4421
  mutation updateRelation($_id: ID!, $input: RelationInputType!) {
4564
4422
  updateRelation(_id: $_id, input: $input) {
4565
4423
  ...RelationFields
@@ -4567,7 +4425,7 @@ var UPDATE_RELATION_MUTATION = import_client32.gql`
4567
4425
  }
4568
4426
  ${RELATION_FIELDS_FRAGMENT}
4569
4427
  `;
4570
- var DELETE_RELATION_MUTATION = import_client32.gql`
4428
+ var DELETE_RELATION_MUTATION = import_client31.gql`
4571
4429
  mutation deleteRelation($_id: ID!) {
4572
4430
  deleteRelation(_id: $_id) {
4573
4431
  ...RelationFields
@@ -4578,7 +4436,7 @@ var DELETE_RELATION_MUTATION = import_client32.gql`
4578
4436
 
4579
4437
  // src/graphql/hooks/relation/hooksMutation.ts
4580
4438
  var useCreateRelation = () => {
4581
- const [createRelation, { loading, error }] = (0, import_client33.useMutation)(CREATE_RELATION_MUTATION, {
4439
+ const [createRelation, { loading, error }] = (0, import_client32.useMutation)(CREATE_RELATION_MUTATION, {
4582
4440
  awaitRefetchQueries: true,
4583
4441
  refetchQueries: (mutationResult) => {
4584
4442
  const createRelation2 = mutationResult?.data?.createRelation;
@@ -4624,7 +4482,7 @@ var useCreateRelation = () => {
4624
4482
  return { createRelation, error, loading };
4625
4483
  };
4626
4484
  var useUpdateRelation = () => {
4627
- const [updateRelation, { loading, error }] = (0, import_client33.useMutation)(UPDATE_RELATION_MUTATION, {
4485
+ const [updateRelation, { loading, error }] = (0, import_client32.useMutation)(UPDATE_RELATION_MUTATION, {
4628
4486
  awaitRefetchQueries: true,
4629
4487
  refetchQueries: (mutationResult) => {
4630
4488
  const updateRelation2 = mutationResult?.data?.updateRelation;
@@ -4667,7 +4525,7 @@ var useUpdateRelation = () => {
4667
4525
  return { error, loading, updateRelation };
4668
4526
  };
4669
4527
  var useDeleteRelation = () => {
4670
- const [deleteRelation, { loading, error }] = (0, import_client33.useMutation)(DELETE_RELATION_MUTATION, {
4528
+ const [deleteRelation, { loading, error }] = (0, import_client32.useMutation)(DELETE_RELATION_MUTATION, {
4671
4529
  awaitRefetchQueries: true,
4672
4530
  refetchQueries: (mutationResult) => {
4673
4531
  const deleteRelation2 = mutationResult?.data?.deleteRelation;
@@ -4706,9 +4564,9 @@ var useDeleteRelation = () => {
4706
4564
  };
4707
4565
 
4708
4566
  // src/graphql/hooks/relation/hooksQuery.ts
4709
- var import_client34 = require("@apollo/client");
4567
+ var import_client33 = require("@apollo/client");
4710
4568
  var useGetRelation = (_id) => {
4711
- const { loading, error, data, refetch } = (0, import_client34.useQuery)(GET_RELATION, {
4569
+ const { loading, error, data, refetch } = (0, import_client33.useQuery)(GET_RELATION, {
4712
4570
  fetchPolicy: "network-only",
4713
4571
  skip: !_id,
4714
4572
  variables: { _id }
@@ -4717,7 +4575,7 @@ var useGetRelation = (_id) => {
4717
4575
  return { error, loading, refetch, relation };
4718
4576
  };
4719
4577
  var useGetRelationByEventAndVendor = (eventId, vendorId) => {
4720
- const { loading, error, data, refetch } = (0, import_client34.useQuery)(GET_RELATION_BY_EVENT_AND_VENDOR, {
4578
+ const { loading, error, data, refetch } = (0, import_client33.useQuery)(GET_RELATION_BY_EVENT_AND_VENDOR, {
4721
4579
  fetchPolicy: "network-only",
4722
4580
  skip: !eventId || !vendorId,
4723
4581
  variables: { eventId, vendorId }
@@ -4726,7 +4584,7 @@ var useGetRelationByEventAndVendor = (eventId, vendorId) => {
4726
4584
  return { error, loading, refetch, relationByEventAndVendor };
4727
4585
  };
4728
4586
  var useGetEventRelations = (eventId) => {
4729
- const { loading, error, data, refetch } = (0, import_client34.useQuery)(GET_EVENT_RELATIONS, {
4587
+ const { loading, error, data, refetch } = (0, import_client33.useQuery)(GET_EVENT_RELATIONS, {
4730
4588
  fetchPolicy: "network-only",
4731
4589
  skip: !eventId,
4732
4590
  variables: { eventId }
@@ -4735,7 +4593,7 @@ var useGetEventRelations = (eventId) => {
4735
4593
  return { error, eventRelations, loading, refetch };
4736
4594
  };
4737
4595
  var useGetVendorRelations = (vendorId) => {
4738
- const { loading, error, data, refetch } = (0, import_client34.useQuery)(GET_VENDOR_RELATIONS, {
4596
+ const { loading, error, data, refetch } = (0, import_client33.useQuery)(GET_VENDOR_RELATIONS, {
4739
4597
  fetchPolicy: "network-only",
4740
4598
  skip: !vendorId,
4741
4599
  variables: { vendorId }
@@ -4744,7 +4602,7 @@ var useGetVendorRelations = (vendorId) => {
4744
4602
  return { error, loading, refetch, vendorRelations };
4745
4603
  };
4746
4604
  var useGetResourceConnections = (resourceId, resourceType) => {
4747
- const { loading, error, data, refetch } = (0, import_client34.useQuery)(GET_RESOURCE_CONNECTIONS, {
4605
+ const { loading, error, data, refetch } = (0, import_client33.useQuery)(GET_RESOURCE_CONNECTIONS, {
4748
4606
  fetchPolicy: "network-only",
4749
4607
  variables: { resourceId, resourceType }
4750
4608
  });
@@ -4753,11 +4611,11 @@ var useGetResourceConnections = (resourceId, resourceType) => {
4753
4611
  };
4754
4612
 
4755
4613
  // src/graphql/hooks/vendor/hooksMutation.ts
4756
- var import_client36 = require("@apollo/client");
4614
+ var import_client35 = require("@apollo/client");
4757
4615
 
4758
4616
  // src/graphql/mutations/vendor.ts
4759
- var import_client35 = require("@apollo/client");
4760
- var CREATE_VENDOR_MUTATION = import_client35.gql`
4617
+ var import_client34 = require("@apollo/client");
4618
+ var CREATE_VENDOR_MUTATION = import_client34.gql`
4761
4619
  mutation createVendor($input: VendorInputType!) {
4762
4620
  createVendor(input: $input) {
4763
4621
  ...VendorFields
@@ -4765,7 +4623,7 @@ var CREATE_VENDOR_MUTATION = import_client35.gql`
4765
4623
  }
4766
4624
  ${VENDOR}
4767
4625
  `;
4768
- var UPDATE_VENDOR_MUTATION = import_client35.gql`
4626
+ var UPDATE_VENDOR_MUTATION = import_client34.gql`
4769
4627
  mutation updateVendor($_id: ID!, $input: VendorInputType!) {
4770
4628
  updateVendor(_id: $_id, input: $input) {
4771
4629
  ...VendorFields
@@ -4773,12 +4631,12 @@ var UPDATE_VENDOR_MUTATION = import_client35.gql`
4773
4631
  }
4774
4632
  ${VENDOR}
4775
4633
  `;
4776
- var DELETE_VENDOR_MUTATION = import_client35.gql`
4634
+ var DELETE_VENDOR_MUTATION = import_client34.gql`
4777
4635
  mutation deleteVendor($_id: ID!) {
4778
4636
  deleteVendor(_id: $_id)
4779
4637
  }
4780
4638
  `;
4781
- var CREATE_VENDOR_INFO_MUTATION = import_client35.gql`
4639
+ var CREATE_VENDOR_INFO_MUTATION = import_client34.gql`
4782
4640
  mutation createVendorInfo($input: VendorInfoInputType!) {
4783
4641
  createVendorInfo(input: $input) {
4784
4642
  ...VendorInfoFields
@@ -4786,7 +4644,7 @@ var CREATE_VENDOR_INFO_MUTATION = import_client35.gql`
4786
4644
  }
4787
4645
  ${VENDOR_INFO}
4788
4646
  `;
4789
- var UPDATE_VENDOR_INFO_MUTATION = import_client35.gql`
4647
+ var UPDATE_VENDOR_INFO_MUTATION = import_client34.gql`
4790
4648
  mutation updateVendorInfo($_id: ID!, $input: VendorInfoInputType!) {
4791
4649
  updateVendorInfo(_id: $_id, input: $input) {
4792
4650
  ...VendorInfoFields
@@ -4794,7 +4652,7 @@ var UPDATE_VENDOR_INFO_MUTATION = import_client35.gql`
4794
4652
  }
4795
4653
  ${VENDOR_INFO}
4796
4654
  `;
4797
- var CREATE_UNREGISTERED_VENDOR_MUTATION = import_client35.gql`
4655
+ var CREATE_UNREGISTERED_VENDOR_MUTATION = import_client34.gql`
4798
4656
  mutation createUnregisteredVendor($input: UnregisteredVendorInputType!) {
4799
4657
  createUnregisteredVendor(input: $input) {
4800
4658
  ...UnregisteredVendorFields
@@ -4802,7 +4660,7 @@ var CREATE_UNREGISTERED_VENDOR_MUTATION = import_client35.gql`
4802
4660
  }
4803
4661
  ${UNREGISTERED_VENDOR}
4804
4662
  `;
4805
- var UPDATE_UNREGISTERED_VENDOR_MUTATION = import_client35.gql`
4663
+ var UPDATE_UNREGISTERED_VENDOR_MUTATION = import_client34.gql`
4806
4664
  mutation updateUnregisteredVendor(
4807
4665
  $_id: ID!
4808
4666
  $input: UnregisteredVendorInputType!
@@ -4813,7 +4671,7 @@ var UPDATE_UNREGISTERED_VENDOR_MUTATION = import_client35.gql`
4813
4671
  }
4814
4672
  ${UNREGISTERED_VENDOR}
4815
4673
  `;
4816
- var DELETE_UNREGISTERED_VENDOR_MUTATION = import_client35.gql`
4674
+ var DELETE_UNREGISTERED_VENDOR_MUTATION = import_client34.gql`
4817
4675
  mutation deleteUnregisteredVendor($_id: ID!) {
4818
4676
  deleteUnregisteredVendor(_id: $_id)
4819
4677
  }
@@ -4821,7 +4679,7 @@ var DELETE_UNREGISTERED_VENDOR_MUTATION = import_client35.gql`
4821
4679
 
4822
4680
  // src/graphql/hooks/vendor/hooksMutation.ts
4823
4681
  var useCreateVendor = () => {
4824
- const [createVendor, { loading, error }] = (0, import_client36.useMutation)(
4682
+ const [createVendor, { loading, error }] = (0, import_client35.useMutation)(
4825
4683
  CREATE_VENDOR_MUTATION,
4826
4684
  {
4827
4685
  awaitRefetchQueries: true,
@@ -4831,7 +4689,7 @@ var useCreateVendor = () => {
4831
4689
  return { createVendor, error, loading };
4832
4690
  };
4833
4691
  var useUpdateVendor = () => {
4834
- const [updateVendor, { loading, error }] = (0, import_client36.useMutation)(
4692
+ const [updateVendor, { loading, error }] = (0, import_client35.useMutation)(
4835
4693
  UPDATE_VENDOR_MUTATION,
4836
4694
  {
4837
4695
  awaitRefetchQueries: true,
@@ -4841,7 +4699,7 @@ var useUpdateVendor = () => {
4841
4699
  return { error, loading, updateVendor };
4842
4700
  };
4843
4701
  var useDeleteVendor = () => {
4844
- const [deleteVendor, { loading, error }] = (0, import_client36.useMutation)(
4702
+ const [deleteVendor, { loading, error }] = (0, import_client35.useMutation)(
4845
4703
  DELETE_VENDOR_MUTATION,
4846
4704
  {
4847
4705
  awaitRefetchQueries: true,
@@ -4851,7 +4709,7 @@ var useDeleteVendor = () => {
4851
4709
  return { deleteVendor, error, loading };
4852
4710
  };
4853
4711
  var useCreateVendorInfo = () => {
4854
- const [createVendorInfo, { loading, error }] = (0, import_client36.useMutation)(CREATE_VENDOR_INFO_MUTATION, {
4712
+ const [createVendorInfo, { loading, error }] = (0, import_client35.useMutation)(CREATE_VENDOR_INFO_MUTATION, {
4855
4713
  awaitRefetchQueries: true,
4856
4714
  refetchQueries: (mutationResult) => {
4857
4715
  const vendorId = mutationResult?.data?.createVendorInfo?.vendorId;
@@ -4875,7 +4733,7 @@ var useCreateVendorInfo = () => {
4875
4733
  return { createVendorInfo, error, loading };
4876
4734
  };
4877
4735
  var useUpdateVendorInfo = () => {
4878
- const [updateVendorInfo, { loading, error }] = (0, import_client36.useMutation)(UPDATE_VENDOR_INFO_MUTATION, {
4736
+ const [updateVendorInfo, { loading, error }] = (0, import_client35.useMutation)(UPDATE_VENDOR_INFO_MUTATION, {
4879
4737
  awaitRefetchQueries: true,
4880
4738
  refetchQueries: (mutationResult) => {
4881
4739
  const vendorId = mutationResult?.data?.updateVendorInfo?.vendorId;
@@ -4892,28 +4750,28 @@ var useUpdateVendorInfo = () => {
4892
4750
  return { error, loading, updateVendorInfo };
4893
4751
  };
4894
4752
  var useCreateUnregisteredVendor = () => {
4895
- const [createUnregisteredVendor, { loading, error }] = (0, import_client36.useMutation)(
4753
+ const [createUnregisteredVendor, { loading, error }] = (0, import_client35.useMutation)(
4896
4754
  CREATE_UNREGISTERED_VENDOR_MUTATION
4897
4755
  );
4898
4756
  return { createUnregisteredVendor, error, loading };
4899
4757
  };
4900
4758
  var useUpdateUnregisteredVendor = () => {
4901
- const [updateUnregisteredVendor, { loading, error }] = (0, import_client36.useMutation)(
4759
+ const [updateUnregisteredVendor, { loading, error }] = (0, import_client35.useMutation)(
4902
4760
  UPDATE_UNREGISTERED_VENDOR_MUTATION
4903
4761
  );
4904
4762
  return { error, loading, updateUnregisteredVendor };
4905
4763
  };
4906
4764
  var useDeleteUnregisteredVendor = () => {
4907
- const [deleteUnregisteredVendor, { loading, error }] = (0, import_client36.useMutation)(
4765
+ const [deleteUnregisteredVendor, { loading, error }] = (0, import_client35.useMutation)(
4908
4766
  DELETE_UNREGISTERED_VENDOR_MUTATION
4909
4767
  );
4910
4768
  return { deleteUnregisteredVendor, error, loading };
4911
4769
  };
4912
4770
 
4913
4771
  // src/graphql/hooks/vendor/hooksQuery.ts
4914
- var import_client37 = require("@apollo/client");
4772
+ var import_client36 = require("@apollo/client");
4915
4773
  var useGetVendors = () => {
4916
- const { loading, error, data, refetch } = (0, import_client37.useQuery)(
4774
+ const { loading, error, data, refetch } = (0, import_client36.useQuery)(
4917
4775
  GET_VENDORS,
4918
4776
  {
4919
4777
  fetchPolicy: "network-only"
@@ -4928,7 +4786,7 @@ var useGetVendors = () => {
4928
4786
  };
4929
4787
  };
4930
4788
  var useGetVendor = (_id) => {
4931
- const { loading, error, data, refetch } = (0, import_client37.useQuery)(
4789
+ const { loading, error, data, refetch } = (0, import_client36.useQuery)(
4932
4790
  GET_VENDOR,
4933
4791
  {
4934
4792
  fetchPolicy: "network-only",
@@ -4940,7 +4798,7 @@ var useGetVendor = (_id) => {
4940
4798
  return { error, loading, refetch, vendor };
4941
4799
  };
4942
4800
  var useGetVendorsByRegion = (region) => {
4943
- const { loading, error, data, refetch } = (0, import_client37.useQuery)(GET_VENDORS_BY_REGION, {
4801
+ const { loading, error, data, refetch } = (0, import_client36.useQuery)(GET_VENDORS_BY_REGION, {
4944
4802
  fetchPolicy: "no-cache",
4945
4803
  skip: !region,
4946
4804
  variables: { region }
@@ -4949,7 +4807,7 @@ var useGetVendorsByRegion = (region) => {
4949
4807
  return { error, loading, refetch, vendorsByRegion };
4950
4808
  };
4951
4809
  var useSearchVendors = (search, region) => {
4952
- const { loading, error, data, refetch } = (0, import_client37.useQuery)(SEARCH_VENDORS, {
4810
+ const { loading, error, data, refetch } = (0, import_client36.useQuery)(SEARCH_VENDORS, {
4953
4811
  fetchPolicy: "network-only",
4954
4812
  skip: search.length < 3,
4955
4813
  variables: { region, search }
@@ -4958,7 +4816,7 @@ var useSearchVendors = (search, region) => {
4958
4816
  return { error, loading, refetch, vendorSearch };
4959
4817
  };
4960
4818
  var useGetVendorInfo = (vendorId) => {
4961
- const { loading, error, data, refetch } = (0, import_client37.useQuery)(GET_VENDOR_INFO, {
4819
+ const { loading, error, data, refetch } = (0, import_client36.useQuery)(GET_VENDOR_INFO, {
4962
4820
  fetchPolicy: "network-only",
4963
4821
  skip: !vendorId,
4964
4822
  variables: { vendorId }
@@ -4972,7 +4830,7 @@ var useGetVendorInfo = (vendorId) => {
4972
4830
  };
4973
4831
  };
4974
4832
  var useGetUnregisteredVendors = () => {
4975
- const { loading, error, data, refetch } = (0, import_client37.useQuery)(GET_UNREGISTERED_VENDORS, {
4833
+ const { loading, error, data, refetch } = (0, import_client36.useQuery)(GET_UNREGISTERED_VENDORS, {
4976
4834
  fetchPolicy: "network-only"
4977
4835
  });
4978
4836
  const unregisteredVendors = data?.unregisteredVendors || [];
@@ -4984,7 +4842,7 @@ var useGetUnregisteredVendors = () => {
4984
4842
  };
4985
4843
  };
4986
4844
  var useGetUnregisteredVendor = (_id) => {
4987
- const { loading, error, data, refetch } = (0, import_client37.useQuery)(GET_UNREGISTERED_VENDOR, {
4845
+ const { loading, error, data, refetch } = (0, import_client36.useQuery)(GET_UNREGISTERED_VENDOR, {
4988
4846
  fetchPolicy: "network-only",
4989
4847
  skip: !_id,
4990
4848
  variables: { _id }
@@ -4993,99 +4851,12 @@ var useGetUnregisteredVendor = (_id) => {
4993
4851
  return { error, loading, refetch, unregisteredVendor };
4994
4852
  };
4995
4853
 
4996
- // src/graphql/hooks/tester/hooksMutation.ts
4997
- var import_client39 = require("@apollo/client");
4998
-
4999
- // src/graphql/mutations/tester.ts
5000
- var import_client38 = require("@apollo/client");
5001
- var CREATE_TESTER_MUTATION = import_client38.gql`
5002
- mutation createTester($input: TesterInputType!) {
5003
- createTester(input: $input) {
5004
- ...TesterFields
5005
- }
5006
- }
5007
- ${TESTER_FIELDS_FRAGMENT}
5008
- `;
5009
- var UPDATE_TESTER_MUTATION = import_client38.gql`
5010
- mutation updateTester($_id: ID!, $input: TesterInputType!) {
5011
- updateTester(_id: $_id, input: $input) {
5012
- ...TesterFields
5013
- }
5014
- }
5015
- ${TESTER_FIELDS_FRAGMENT}
5016
- `;
5017
- var DELETE_TESTER_MUTATION = import_client38.gql`
5018
- mutation deleteTester($_id: ID!) {
5019
- deleteTester(_id: $_id)
5020
- }
5021
- `;
5022
-
5023
- // src/graphql/hooks/tester/hooksMutation.ts
5024
- var useCreateTester = () => {
5025
- const [createTester, { data, loading, error }] = (0, import_client39.useMutation)(
5026
- CREATE_TESTER_MUTATION
5027
- );
5028
- return {
5029
- createTester,
5030
- data,
5031
- error,
5032
- loading
5033
- };
5034
- };
5035
- var useUpdateTester = () => {
5036
- const [updateTester, { data, loading, error }] = (0, import_client39.useMutation)(
5037
- UPDATE_TESTER_MUTATION
5038
- );
5039
- return {
5040
- data,
5041
- error,
5042
- loading,
5043
- updateTester
5044
- };
5045
- };
5046
- var useDeleteTester = () => {
5047
- const [deleteTester, { loading, error }] = (0, import_client39.useMutation)(
5048
- DELETE_TESTER_MUTATION,
5049
- {
5050
- awaitRefetchQueries: true,
5051
- refetchQueries: [{ query: GET_TESTERS }]
5052
- }
5053
- );
5054
- return { deleteTester, error, loading };
5055
- };
5056
-
5057
- // src/graphql/hooks/tester/hooksQuery.ts
5058
- var import_client40 = require("@apollo/client");
5059
- var useGetTesters = () => {
5060
- const { data, loading, error, refetch } = (0, import_client40.useQuery)(
5061
- GET_TESTERS
5062
- );
5063
- const testers = data?.testers || [];
5064
- return {
5065
- error,
5066
- loading,
5067
- refetch,
5068
- testers
5069
- };
5070
- };
5071
- var useGetTester = (_id) => {
5072
- const { data, loading, error, refetch } = (0, import_client40.useQuery)(
5073
- GET_TESTER,
5074
- {
5075
- skip: !_id,
5076
- variables: { _id }
5077
- }
5078
- );
5079
- const tester = data?.tester;
5080
- return { error, loading, refetch, tester };
5081
- };
5082
-
5083
4854
  // src/graphql/hooks/user/hooksMutation.ts
5084
- var import_client42 = require("@apollo/client");
4855
+ var import_client38 = require("@apollo/client");
5085
4856
 
5086
4857
  // src/graphql/mutations/user.ts
5087
- var import_client41 = require("@apollo/client");
5088
- var CREATE_USER_MUTATION = import_client41.gql`
4858
+ var import_client37 = require("@apollo/client");
4859
+ var CREATE_USER_MUTATION = import_client37.gql`
5089
4860
  mutation createUser($input: UserInputType!) {
5090
4861
  createUser(input: $input) {
5091
4862
  ...UserFields
@@ -5093,7 +4864,7 @@ var CREATE_USER_MUTATION = import_client41.gql`
5093
4864
  }
5094
4865
  ${USER_FIELDS_FRAGMENT}
5095
4866
  `;
5096
- var UPDATE_USER_MUTATION = import_client41.gql`
4867
+ var UPDATE_USER_MUTATION = import_client37.gql`
5097
4868
  mutation updateUser($_id: ID!, $input: UserInputType!) {
5098
4869
  updateUser(_id: $_id, input: $input) {
5099
4870
  ...UserFields
@@ -5101,12 +4872,12 @@ var UPDATE_USER_MUTATION = import_client41.gql`
5101
4872
  }
5102
4873
  ${USER_FIELDS_FRAGMENT}
5103
4874
  `;
5104
- var DELETE_USER_MUTATION = import_client41.gql`
4875
+ var DELETE_USER_MUTATION = import_client37.gql`
5105
4876
  mutation deleteUser($email: String!) {
5106
4877
  deleteUser(email: $email)
5107
4878
  }
5108
4879
  `;
5109
- var ADD_USER_FAVOURITE_RESOURCE_MUTATION = import_client41.gql`
4880
+ var ADD_USER_FAVOURITE_RESOURCE_MUTATION = import_client37.gql`
5110
4881
  mutation addUserFavouriteResource(
5111
4882
  $resourceId: ID!
5112
4883
  $resourceType: ResourceTypeEnum!
@@ -5120,7 +4891,7 @@ var ADD_USER_FAVOURITE_RESOURCE_MUTATION = import_client41.gql`
5120
4891
  }
5121
4892
  ${USER_FIELDS_FRAGMENT}
5122
4893
  `;
5123
- var REMOVE_USER_FAVOURITE_RESOURCE_MUTATION = import_client41.gql`
4894
+ var REMOVE_USER_FAVOURITE_RESOURCE_MUTATION = import_client37.gql`
5124
4895
  mutation removeUserFavouriteResource(
5125
4896
  $resourceId: ID!
5126
4897
  $resourceType: ResourceTypeEnum!
@@ -5134,7 +4905,7 @@ var REMOVE_USER_FAVOURITE_RESOURCE_MUTATION = import_client41.gql`
5134
4905
  }
5135
4906
  ${USER_FIELDS_FRAGMENT}
5136
4907
  `;
5137
- var ADD_USER_INTEREST_RESOURCE_MUTATION = import_client41.gql`
4908
+ var ADD_USER_INTEREST_RESOURCE_MUTATION = import_client37.gql`
5138
4909
  mutation addUserInterestResource($input: UserActivityInputType!) {
5139
4910
  addUserInterestResource(input: $input) {
5140
4911
  ...UserFields
@@ -5142,7 +4913,7 @@ var ADD_USER_INTEREST_RESOURCE_MUTATION = import_client41.gql`
5142
4913
  }
5143
4914
  ${USER_FIELDS_FRAGMENT}
5144
4915
  `;
5145
- var REMOVE_USER_INTEREST_RESOURCE_MUTATION = import_client41.gql`
4916
+ var REMOVE_USER_INTEREST_RESOURCE_MUTATION = import_client37.gql`
5146
4917
  mutation removeUserInterestResource($input: UserActivityInputType!) {
5147
4918
  removeUserInterestResource(input: $input) {
5148
4919
  ...UserFields
@@ -5150,7 +4921,7 @@ var REMOVE_USER_INTEREST_RESOURCE_MUTATION = import_client41.gql`
5150
4921
  }
5151
4922
  ${USER_FIELDS_FRAGMENT}
5152
4923
  `;
5153
- var ADD_USER_GOING_RESOURCE_MUTATION = import_client41.gql`
4924
+ var ADD_USER_GOING_RESOURCE_MUTATION = import_client37.gql`
5154
4925
  mutation addUserGoingResource($input: UserActivityInputType!) {
5155
4926
  addUserGoingResource(input: $input) {
5156
4927
  ...UserFields
@@ -5158,7 +4929,7 @@ var ADD_USER_GOING_RESOURCE_MUTATION = import_client41.gql`
5158
4929
  }
5159
4930
  ${USER_FIELDS_FRAGMENT}
5160
4931
  `;
5161
- var REMOVE_USER_GOING_RESOURCE_MUTATION = import_client41.gql`
4932
+ var REMOVE_USER_GOING_RESOURCE_MUTATION = import_client37.gql`
5162
4933
  mutation removeUserGoingResource($input: UserActivityInputType!) {
5163
4934
  removeUserGoingResource(input: $input) {
5164
4935
  ...UserFields
@@ -5166,7 +4937,7 @@ var REMOVE_USER_GOING_RESOURCE_MUTATION = import_client41.gql`
5166
4937
  }
5167
4938
  ${USER_FIELDS_FRAGMENT}
5168
4939
  `;
5169
- var ADD_USER_PRESENT_RESOURCE_MUTATION = import_client41.gql`
4940
+ var ADD_USER_PRESENT_RESOURCE_MUTATION = import_client37.gql`
5170
4941
  mutation addUserPresentResource($input: UserActivityInputType!) {
5171
4942
  addUserPresentResource(input: $input) {
5172
4943
  ...UserFields
@@ -5174,7 +4945,7 @@ var ADD_USER_PRESENT_RESOURCE_MUTATION = import_client41.gql`
5174
4945
  }
5175
4946
  ${USER_FIELDS_FRAGMENT}
5176
4947
  `;
5177
- var REMOVE_USER_PRESENT_RESOURCE_MUTATION = import_client41.gql`
4948
+ var REMOVE_USER_PRESENT_RESOURCE_MUTATION = import_client37.gql`
5178
4949
  mutation removeUserPresentResource($input: UserActivityInputType!) {
5179
4950
  removeUserPresentResource(input: $input) {
5180
4951
  ...UserFields
@@ -5182,7 +4953,7 @@ var REMOVE_USER_PRESENT_RESOURCE_MUTATION = import_client41.gql`
5182
4953
  }
5183
4954
  ${USER_FIELDS_FRAGMENT}
5184
4955
  `;
5185
- var SELECT_STANDARD_PACKAGE_MUTATION = import_client41.gql`
4956
+ var SELECT_STANDARD_PACKAGE_MUTATION = import_client37.gql`
5186
4957
  mutation selectStandardPackage($selectedLicence: LicencesEnumType!) {
5187
4958
  selectStandardPackage(selectedLicence: $selectedLicence) {
5188
4959
  licences {
@@ -5197,11 +4968,11 @@ var SELECT_STANDARD_PACKAGE_MUTATION = import_client41.gql`
5197
4968
 
5198
4969
  // src/graphql/hooks/user/hooksMutation.ts
5199
4970
  var useCreateUser = () => {
5200
- const [createUser, { loading, error }] = (0, import_client42.useMutation)(CREATE_USER_MUTATION);
4971
+ const [createUser, { loading, error }] = (0, import_client38.useMutation)(CREATE_USER_MUTATION);
5201
4972
  return { createUser, error, loading };
5202
4973
  };
5203
4974
  var useUpdateUser = () => {
5204
- const [updateUser, { loading, error }] = (0, import_client42.useMutation)(UPDATE_USER_MUTATION, {
4975
+ const [updateUser, { loading, error }] = (0, import_client38.useMutation)(UPDATE_USER_MUTATION, {
5205
4976
  awaitRefetchQueries: true,
5206
4977
  refetchQueries: (mutationResult) => {
5207
4978
  const userId = mutationResult?.data?.updateUser?._id;
@@ -5212,11 +4983,11 @@ var useUpdateUser = () => {
5212
4983
  return { error, loading, updateUser };
5213
4984
  };
5214
4985
  var useDeleteUser = () => {
5215
- const [deleteUser, { loading, error }] = (0, import_client42.useMutation)(DELETE_USER_MUTATION);
4986
+ const [deleteUser, { loading, error }] = (0, import_client38.useMutation)(DELETE_USER_MUTATION);
5216
4987
  return { deleteUser, error, loading };
5217
4988
  };
5218
4989
  var useAddUserFavouriteResource = () => {
5219
- const [addUserFavouriteResource, { loading, error }] = (0, import_client42.useMutation)(
4990
+ const [addUserFavouriteResource, { loading, error }] = (0, import_client38.useMutation)(
5220
4991
  ADD_USER_FAVOURITE_RESOURCE_MUTATION,
5221
4992
  {
5222
4993
  awaitRefetchQueries: true,
@@ -5226,7 +4997,7 @@ var useAddUserFavouriteResource = () => {
5226
4997
  return { addUserFavouriteResource, error, loading };
5227
4998
  };
5228
4999
  var useRemoveUserFavouriteResource = () => {
5229
- const [removeUserFavouriteResource, { loading, error }] = (0, import_client42.useMutation)(
5000
+ const [removeUserFavouriteResource, { loading, error }] = (0, import_client38.useMutation)(
5230
5001
  REMOVE_USER_FAVOURITE_RESOURCE_MUTATION,
5231
5002
  {
5232
5003
  awaitRefetchQueries: true,
@@ -5236,7 +5007,7 @@ var useRemoveUserFavouriteResource = () => {
5236
5007
  return { error, loading, removeUserFavouriteResource };
5237
5008
  };
5238
5009
  var useAddUserInterestResource = () => {
5239
- const [addUserInterestResource, { loading, error }] = (0, import_client42.useMutation)(
5010
+ const [addUserInterestResource, { loading, error }] = (0, import_client38.useMutation)(
5240
5011
  ADD_USER_INTEREST_RESOURCE_MUTATION,
5241
5012
  {
5242
5013
  awaitRefetchQueries: true,
@@ -5246,7 +5017,7 @@ var useAddUserInterestResource = () => {
5246
5017
  return { addUserInterestResource, error, loading };
5247
5018
  };
5248
5019
  var useRemoveUserInterestResource = () => {
5249
- const [removeUserInterestResource, { loading, error }] = (0, import_client42.useMutation)(
5020
+ const [removeUserInterestResource, { loading, error }] = (0, import_client38.useMutation)(
5250
5021
  REMOVE_USER_INTEREST_RESOURCE_MUTATION,
5251
5022
  {
5252
5023
  awaitRefetchQueries: true,
@@ -5256,7 +5027,7 @@ var useRemoveUserInterestResource = () => {
5256
5027
  return { error, loading, removeUserInterestResource };
5257
5028
  };
5258
5029
  var useAddUserGoingResource = () => {
5259
- const [addUserGoingResource, { loading, error }] = (0, import_client42.useMutation)(
5030
+ const [addUserGoingResource, { loading, error }] = (0, import_client38.useMutation)(
5260
5031
  ADD_USER_GOING_RESOURCE_MUTATION,
5261
5032
  {
5262
5033
  awaitRefetchQueries: true,
@@ -5266,7 +5037,7 @@ var useAddUserGoingResource = () => {
5266
5037
  return { addUserGoingResource, error, loading };
5267
5038
  };
5268
5039
  var useRemoveUserGoingResource = () => {
5269
- const [removeUserGoingResource, { loading, error }] = (0, import_client42.useMutation)(
5040
+ const [removeUserGoingResource, { loading, error }] = (0, import_client38.useMutation)(
5270
5041
  REMOVE_USER_GOING_RESOURCE_MUTATION,
5271
5042
  {
5272
5043
  awaitRefetchQueries: true,
@@ -5276,7 +5047,7 @@ var useRemoveUserGoingResource = () => {
5276
5047
  return { error, loading, removeUserGoingResource };
5277
5048
  };
5278
5049
  var useAddUserPresentResource = () => {
5279
- const [addUserPresentResource, { loading, error }] = (0, import_client42.useMutation)(
5050
+ const [addUserPresentResource, { loading, error }] = (0, import_client38.useMutation)(
5280
5051
  ADD_USER_PRESENT_RESOURCE_MUTATION,
5281
5052
  {
5282
5053
  awaitRefetchQueries: true,
@@ -5286,7 +5057,7 @@ var useAddUserPresentResource = () => {
5286
5057
  return { addUserPresentResource, error, loading };
5287
5058
  };
5288
5059
  var useRemoveUserPresentResource = () => {
5289
- const [removeUserPresentResource, { loading, error }] = (0, import_client42.useMutation)(
5060
+ const [removeUserPresentResource, { loading, error }] = (0, import_client38.useMutation)(
5290
5061
  REMOVE_USER_PRESENT_RESOURCE_MUTATION,
5291
5062
  {
5292
5063
  awaitRefetchQueries: true,
@@ -5296,7 +5067,7 @@ var useRemoveUserPresentResource = () => {
5296
5067
  return { error, loading, removeUserPresentResource };
5297
5068
  };
5298
5069
  var useSelectStandardPackage = () => {
5299
- const [selectStandardPackage, { loading, error }] = (0, import_client42.useMutation)(SELECT_STANDARD_PACKAGE_MUTATION, {
5070
+ const [selectStandardPackage, { loading, error }] = (0, import_client38.useMutation)(SELECT_STANDARD_PACKAGE_MUTATION, {
5300
5071
  awaitRefetchQueries: true,
5301
5072
  refetchQueries: (mutationResult) => {
5302
5073
  const userId = mutationResult?.data?.selectStandardPackage?.userId;
@@ -5312,9 +5083,9 @@ var useSelectStandardPackage = () => {
5312
5083
  };
5313
5084
 
5314
5085
  // src/graphql/hooks/user/hooksQuery.ts
5315
- var import_client43 = require("@apollo/client");
5086
+ var import_client39 = require("@apollo/client");
5316
5087
  var useGetUsers = () => {
5317
- const { loading, error, data, refetch } = (0, import_client43.useQuery)(
5088
+ const { loading, error, data, refetch } = (0, import_client39.useQuery)(
5318
5089
  GET_USERS,
5319
5090
  {
5320
5091
  fetchPolicy: "network-only"
@@ -5324,7 +5095,7 @@ var useGetUsers = () => {
5324
5095
  return { error, loading, refetch, users };
5325
5096
  };
5326
5097
  var useGetUser = (_id) => {
5327
- const { loading, error, data, refetch } = (0, import_client43.useQuery)(
5098
+ const { loading, error, data, refetch } = (0, import_client39.useQuery)(
5328
5099
  GET_USER,
5329
5100
  {
5330
5101
  variables: { _id }
@@ -5334,28 +5105,28 @@ var useGetUser = (_id) => {
5334
5105
  return { error, loading, refetch, user };
5335
5106
  };
5336
5107
  var useGetUserEvents = () => {
5337
- const { loading, error, data, refetch } = (0, import_client43.useQuery)(GET_USER_EVENTS, {
5108
+ const { loading, error, data, refetch } = (0, import_client39.useQuery)(GET_USER_EVENTS, {
5338
5109
  fetchPolicy: "network-only"
5339
5110
  });
5340
5111
  const userEvents = data?.userEvents || [];
5341
5112
  return { error, loading, refetch, userEvents };
5342
5113
  };
5343
5114
  var useGetUserVendors = () => {
5344
- const { loading, error, data, refetch } = (0, import_client43.useQuery)(GET_USER_VENDORS, {
5115
+ const { loading, error, data, refetch } = (0, import_client39.useQuery)(GET_USER_VENDORS, {
5345
5116
  fetchPolicy: "network-only"
5346
5117
  });
5347
5118
  const userVendors = data?.userVendors || [];
5348
5119
  return { error, loading, refetch, userVendors };
5349
5120
  };
5350
5121
  var useGetUserPartners = () => {
5351
- const { loading, error, data, refetch } = (0, import_client43.useQuery)(GET_USER_PARTNERS, {
5122
+ const { loading, error, data, refetch } = (0, import_client39.useQuery)(GET_USER_PARTNERS, {
5352
5123
  fetchPolicy: "network-only"
5353
5124
  });
5354
5125
  const userPartners = data?.userPartners || [];
5355
5126
  return { error, loading, refetch, userPartners };
5356
5127
  };
5357
5128
  var useGetUserActivities = () => {
5358
- const { loading, error, data, refetch } = (0, import_client43.useQuery)(GET_USER_ACTIVITIES, {
5129
+ const { loading, error, data, refetch } = (0, import_client39.useQuery)(GET_USER_ACTIVITIES, {
5359
5130
  fetchPolicy: "network-only"
5360
5131
  });
5361
5132
  const userActivities = {
@@ -5377,14 +5148,14 @@ var useGetUserActivities = () => {
5377
5148
  };
5378
5149
 
5379
5150
  // src/graphql/hooks/ad/hooksMutation.ts
5380
- var import_client46 = require("@apollo/client");
5151
+ var import_client42 = require("@apollo/client");
5381
5152
 
5382
5153
  // src/graphql/mutations/ad.ts
5383
- var import_client45 = require("@apollo/client");
5154
+ var import_client41 = require("@apollo/client");
5384
5155
 
5385
5156
  // src/graphql/queries/ad.ts
5386
- var import_client44 = require("@apollo/client");
5387
- var AD_FIELDS_FRAGMENT = import_client44.gql`
5157
+ var import_client40 = require("@apollo/client");
5158
+ var AD_FIELDS_FRAGMENT = import_client40.gql`
5388
5159
  fragment AdFields on AdType {
5389
5160
  _id
5390
5161
  active
@@ -5412,7 +5183,7 @@ var AD_FIELDS_FRAGMENT = import_client44.gql`
5412
5183
  }
5413
5184
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
5414
5185
  `;
5415
- var GET_ADS = import_client44.gql`
5186
+ var GET_ADS = import_client40.gql`
5416
5187
  query getAds {
5417
5188
  ads {
5418
5189
  ...AdFields
@@ -5420,7 +5191,7 @@ var GET_ADS = import_client44.gql`
5420
5191
  }
5421
5192
  ${AD_FIELDS_FRAGMENT}
5422
5193
  `;
5423
- var GET_AD = import_client44.gql`
5194
+ var GET_AD = import_client40.gql`
5424
5195
  query getAd($_id: ID!) {
5425
5196
  ad(_id: $_id) {
5426
5197
  ...AdFields
@@ -5428,7 +5199,7 @@ var GET_AD = import_client44.gql`
5428
5199
  }
5429
5200
  ${AD_FIELDS_FRAGMENT}
5430
5201
  `;
5431
- var GET_ADS_BY_REGION = import_client44.gql`
5202
+ var GET_ADS_BY_REGION = import_client40.gql`
5432
5203
  query getAdsByRegion($region: String!, $status: AdStatusTypeEnum) {
5433
5204
  adsByRegion(region: $region, status: $status) {
5434
5205
  ...AdFields
@@ -5438,7 +5209,7 @@ var GET_ADS_BY_REGION = import_client44.gql`
5438
5209
  `;
5439
5210
 
5440
5211
  // src/graphql/mutations/ad.ts
5441
- var CREATE_AD_MUTATION = import_client45.gql`
5212
+ var CREATE_AD_MUTATION = import_client41.gql`
5442
5213
  mutation createAd($input: AdInputType!) {
5443
5214
  createAd(input: $input) {
5444
5215
  ...AdFields
@@ -5446,7 +5217,7 @@ var CREATE_AD_MUTATION = import_client45.gql`
5446
5217
  }
5447
5218
  ${AD_FIELDS_FRAGMENT}
5448
5219
  `;
5449
- var UPDATE_AD_MUTATION = import_client45.gql`
5220
+ var UPDATE_AD_MUTATION = import_client41.gql`
5450
5221
  mutation updateAd($_id: ID!, $input: AdInputType!) {
5451
5222
  updateAd(_id: $_id, input: $input) {
5452
5223
  ...AdFields
@@ -5454,7 +5225,7 @@ var UPDATE_AD_MUTATION = import_client45.gql`
5454
5225
  }
5455
5226
  ${AD_FIELDS_FRAGMENT}
5456
5227
  `;
5457
- var DELETE_AD_MUTATION = import_client45.gql`
5228
+ var DELETE_AD_MUTATION = import_client41.gql`
5458
5229
  mutation deleteAd($_id: ID!) {
5459
5230
  deleteAd(_id: $_id)
5460
5231
  }
@@ -5462,7 +5233,7 @@ var DELETE_AD_MUTATION = import_client45.gql`
5462
5233
 
5463
5234
  // src/graphql/hooks/ad/hooksMutation.ts
5464
5235
  var useCreateAd = () => {
5465
- const [createAd, { loading, error }] = (0, import_client46.useMutation)(CREATE_AD_MUTATION, {
5236
+ const [createAd, { loading, error }] = (0, import_client42.useMutation)(CREATE_AD_MUTATION, {
5466
5237
  awaitRefetchQueries: true,
5467
5238
  refetchQueries: [{ query: GET_ADS }]
5468
5239
  });
@@ -5473,7 +5244,7 @@ var useCreateAd = () => {
5473
5244
  };
5474
5245
  };
5475
5246
  var useUpdateAd = () => {
5476
- const [updateAd, { loading, error }] = (0, import_client46.useMutation)(UPDATE_AD_MUTATION, {
5247
+ const [updateAd, { loading, error }] = (0, import_client42.useMutation)(UPDATE_AD_MUTATION, {
5477
5248
  awaitRefetchQueries: true,
5478
5249
  refetchQueries: [{ query: GET_ADS }]
5479
5250
  });
@@ -5484,7 +5255,7 @@ var useUpdateAd = () => {
5484
5255
  };
5485
5256
  };
5486
5257
  var useDeleteAd = () => {
5487
- const [deleteAd, { loading, error }] = (0, import_client46.useMutation)(DELETE_AD_MUTATION, {
5258
+ const [deleteAd, { loading, error }] = (0, import_client42.useMutation)(DELETE_AD_MUTATION, {
5488
5259
  awaitRefetchQueries: true,
5489
5260
  refetchQueries: [{ query: GET_ADS }]
5490
5261
  });
@@ -5496,9 +5267,9 @@ var useDeleteAd = () => {
5496
5267
  };
5497
5268
 
5498
5269
  // src/graphql/hooks/ad/hooksQuery.ts
5499
- var import_client47 = require("@apollo/client");
5270
+ var import_client43 = require("@apollo/client");
5500
5271
  var useGetAds = () => {
5501
- const { data, loading, error, refetch } = (0, import_client47.useQuery)(
5272
+ const { data, loading, error, refetch } = (0, import_client43.useQuery)(
5502
5273
  GET_ADS,
5503
5274
  {
5504
5275
  fetchPolicy: "no-cache"
@@ -5512,7 +5283,7 @@ var useGetAds = () => {
5512
5283
  };
5513
5284
  };
5514
5285
  var useGetAd = (_id) => {
5515
- const { data, loading, error, refetch } = (0, import_client47.useQuery)(GET_AD, {
5286
+ const { data, loading, error, refetch } = (0, import_client43.useQuery)(GET_AD, {
5516
5287
  fetchPolicy: "no-cache",
5517
5288
  skip: !_id,
5518
5289
  variables: { _id }
@@ -5525,7 +5296,7 @@ var useGetAd = (_id) => {
5525
5296
  };
5526
5297
  };
5527
5298
  var useGetAdsByRegion = (region, status) => {
5528
- const { data, loading, error, refetch } = (0, import_client47.useQuery)(GET_ADS_BY_REGION, {
5299
+ const { data, loading, error, refetch } = (0, import_client43.useQuery)(GET_ADS_BY_REGION, {
5529
5300
  fetchPolicy: "no-cache",
5530
5301
  skip: !region,
5531
5302
  variables: { region, status }
@@ -5539,11 +5310,11 @@ var useGetAdsByRegion = (region, status) => {
5539
5310
  };
5540
5311
 
5541
5312
  // src/graphql/hooks/resourceActivities/hooksMutation.ts
5542
- var import_client49 = require("@apollo/client");
5313
+ var import_client45 = require("@apollo/client");
5543
5314
 
5544
5315
  // src/graphql/mutations/resourceActivities.ts
5545
- var import_client48 = require("@apollo/client");
5546
- var CREATE_RESOURCE_ACTIVITY_MUTATION = import_client48.gql`
5316
+ var import_client44 = require("@apollo/client");
5317
+ var CREATE_RESOURCE_ACTIVITY_MUTATION = import_client44.gql`
5547
5318
  mutation createResourceActivity($input: ResourceActivityInputType!) {
5548
5319
  createResourceActivity(input: $input)
5549
5320
  }
@@ -5551,18 +5322,18 @@ var CREATE_RESOURCE_ACTIVITY_MUTATION = import_client48.gql`
5551
5322
 
5552
5323
  // src/graphql/hooks/resourceActivities/hooksMutation.ts
5553
5324
  var useCreateResourceActivity = () => {
5554
- const [createResourceActivity, { loading, error }] = (0, import_client49.useMutation)(
5325
+ const [createResourceActivity, { loading, error }] = (0, import_client45.useMutation)(
5555
5326
  CREATE_RESOURCE_ACTIVITY_MUTATION
5556
5327
  );
5557
5328
  return { createResourceActivity, error, loading };
5558
5329
  };
5559
5330
 
5560
5331
  // src/graphql/hooks/resourceActivities/hooksQuery.ts
5561
- var import_client51 = require("@apollo/client");
5332
+ var import_client47 = require("@apollo/client");
5562
5333
 
5563
5334
  // src/graphql/queries/resourceActivities.ts
5564
- var import_client50 = require("@apollo/client");
5565
- var RESOURCE_ACTIVITY_FIELDS_FRAGMENT = import_client50.gql`
5335
+ var import_client46 = require("@apollo/client");
5336
+ var RESOURCE_ACTIVITY_FIELDS_FRAGMENT = import_client46.gql`
5566
5337
  fragment ResourceActivityFields on ResourceActivityType {
5567
5338
  resourceId
5568
5339
  resourceType
@@ -5581,7 +5352,7 @@ var RESOURCE_ACTIVITY_FIELDS_FRAGMENT = import_client50.gql`
5581
5352
  }
5582
5353
  ${LOCATION_GEO_FIELDS_FRAGMENT}
5583
5354
  `;
5584
- var GET_RESOURCE_ACTIVITY = import_client50.gql`
5355
+ var GET_RESOURCE_ACTIVITY = import_client46.gql`
5585
5356
  query getResourceActivity(
5586
5357
  $resourceType: ResourceTypeEnum!
5587
5358
  $resourceId: ID!
@@ -5595,7 +5366,7 @@ var GET_RESOURCE_ACTIVITY = import_client50.gql`
5595
5366
 
5596
5367
  // src/graphql/hooks/resourceActivities/hooksQuery.ts
5597
5368
  var useGetResourceActivity = (resourceId, resourceType) => {
5598
- const { data, loading, error, refetch } = (0, import_client51.useQuery)(GET_RESOURCE_ACTIVITY, {
5369
+ const { data, loading, error, refetch } = (0, import_client47.useQuery)(GET_RESOURCE_ACTIVITY, {
5599
5370
  fetchPolicy: "network-only",
5600
5371
  variables: { resourceId, resourceType }
5601
5372
  });
@@ -5608,11 +5379,11 @@ var useGetResourceActivity = (resourceId, resourceType) => {
5608
5379
  };
5609
5380
 
5610
5381
  // src/graphql/hooks/stripe/hooksMutation.ts
5611
- var import_client53 = require("@apollo/client");
5382
+ var import_client49 = require("@apollo/client");
5612
5383
 
5613
5384
  // src/graphql/mutations/stripe.ts
5614
- var import_client52 = require("@apollo/client");
5615
- var CREATE_CHECKOUT_SESSION_MUTATION = import_client52.gql`
5385
+ var import_client48 = require("@apollo/client");
5386
+ var CREATE_CHECKOUT_SESSION_MUTATION = import_client48.gql`
5616
5387
  mutation createCheckoutSession(
5617
5388
  $planId: LicencesEnumType!
5618
5389
  $billingPeriod: BillingPeriodEnumType
@@ -5623,12 +5394,12 @@ var CREATE_CHECKOUT_SESSION_MUTATION = import_client52.gql`
5623
5394
  }
5624
5395
  }
5625
5396
  `;
5626
- var CANCEL_SUBSCRIPTION_MUTATION = import_client52.gql`
5397
+ var CANCEL_SUBSCRIPTION_MUTATION = import_client48.gql`
5627
5398
  mutation cancelSubscription {
5628
5399
  cancelSubscription
5629
5400
  }
5630
5401
  `;
5631
- var UPDATE_SUBSCRIPTION_PLAN_MUTATION = import_client52.gql`
5402
+ var UPDATE_SUBSCRIPTION_PLAN_MUTATION = import_client48.gql`
5632
5403
  mutation updateSubscriptionPlan(
5633
5404
  $newPlanId: LicencesEnumType!
5634
5405
  $billingPeriod: BillingPeriodEnumType
@@ -5644,14 +5415,14 @@ var UPDATE_SUBSCRIPTION_PLAN_MUTATION = import_client52.gql`
5644
5415
  }
5645
5416
  }
5646
5417
  `;
5647
- var CREATE_CUSTOMER_PORTAL = import_client52.gql`
5418
+ var CREATE_CUSTOMER_PORTAL = import_client48.gql`
5648
5419
  mutation createCustomerPortal($returnUrl: String) {
5649
5420
  createCustomerPortal(returnUrl: $returnUrl) {
5650
5421
  portalUrl
5651
5422
  }
5652
5423
  }
5653
5424
  `;
5654
- var SELECT_PACKAGE_MUTATION = import_client52.gql`
5425
+ var SELECT_PACKAGE_MUTATION = import_client48.gql`
5655
5426
  mutation selectPackage(
5656
5427
  $billingPeriod: BillingPeriodEnumType
5657
5428
  $selectedLicence: LicencesEnumType!
@@ -5675,31 +5446,31 @@ var SELECT_PACKAGE_MUTATION = import_client52.gql`
5675
5446
 
5676
5447
  // src/graphql/hooks/stripe/hooksMutation.ts
5677
5448
  var useCreateCheckoutSession = () => {
5678
- const [createCheckoutSession, { loading, error }] = (0, import_client53.useMutation)(
5449
+ const [createCheckoutSession, { loading, error }] = (0, import_client49.useMutation)(
5679
5450
  CREATE_CHECKOUT_SESSION_MUTATION
5680
5451
  );
5681
5452
  return { createCheckoutSession, error, loading };
5682
5453
  };
5683
5454
  var useCancelSubscription = () => {
5684
- const [cancelSubscription, { loading, error }] = (0, import_client53.useMutation)(
5455
+ const [cancelSubscription, { loading, error }] = (0, import_client49.useMutation)(
5685
5456
  CANCEL_SUBSCRIPTION_MUTATION
5686
5457
  );
5687
5458
  return { cancelSubscription, error, loading };
5688
5459
  };
5689
5460
  var useUpdateSubscriptionPlan = () => {
5690
- const [updateSubscriptionPlan, { loading, error }] = (0, import_client53.useMutation)(
5461
+ const [updateSubscriptionPlan, { loading, error }] = (0, import_client49.useMutation)(
5691
5462
  UPDATE_SUBSCRIPTION_PLAN_MUTATION
5692
5463
  );
5693
5464
  return { error, loading, updateSubscriptionPlan };
5694
5465
  };
5695
5466
  var useCreateCustomerPortal = () => {
5696
- const [createCustomerPortal, { loading, error }] = (0, import_client53.useMutation)(
5467
+ const [createCustomerPortal, { loading, error }] = (0, import_client49.useMutation)(
5697
5468
  CREATE_CUSTOMER_PORTAL
5698
5469
  );
5699
5470
  return { createCustomerPortal, error, loading };
5700
5471
  };
5701
5472
  var useSelectPackage = () => {
5702
- const [selectPackage, { loading, error }] = (0, import_client53.useMutation)(SELECT_PACKAGE_MUTATION, {
5473
+ const [selectPackage, { loading, error }] = (0, import_client49.useMutation)(SELECT_PACKAGE_MUTATION, {
5703
5474
  awaitRefetchQueries: true,
5704
5475
  refetchQueries: (mutationResult) => {
5705
5476
  const userId = mutationResult?.data?.selectPackage?.userId;
@@ -5715,11 +5486,11 @@ var useSelectPackage = () => {
5715
5486
  };
5716
5487
 
5717
5488
  // src/graphql/hooks/stripe/hooksQuery.ts
5718
- var import_client55 = require("@apollo/client");
5489
+ var import_client51 = require("@apollo/client");
5719
5490
 
5720
5491
  // src/graphql/queries/stripe.ts
5721
- var import_client54 = require("@apollo/client");
5722
- var GET_SUBSCRIPTION_STATUS = import_client54.gql`
5492
+ var import_client50 = require("@apollo/client");
5493
+ var GET_SUBSCRIPTION_STATUS = import_client50.gql`
5723
5494
  query getSubscriptionStatus {
5724
5495
  getSubscriptionStatus {
5725
5496
  subscriptionId
@@ -5729,7 +5500,7 @@ var GET_SUBSCRIPTION_STATUS = import_client54.gql`
5729
5500
  }
5730
5501
  }
5731
5502
  `;
5732
- var GET_SUBSCRIPTION_PLANS = import_client54.gql`
5503
+ var GET_SUBSCRIPTION_PLANS = import_client50.gql`
5733
5504
  query getSubscriptionPlans {
5734
5505
  getSubscriptionPlans {
5735
5506
  plans {
@@ -5760,7 +5531,7 @@ var GET_SUBSCRIPTION_PLANS = import_client54.gql`
5760
5531
 
5761
5532
  // src/graphql/hooks/stripe/hooksQuery.ts
5762
5533
  var useGetSubscriptionStatus = () => {
5763
- const { data, loading, error, refetch } = (0, import_client55.useQuery)(GET_SUBSCRIPTION_STATUS);
5534
+ const { data, loading, error, refetch } = (0, import_client51.useQuery)(GET_SUBSCRIPTION_STATUS);
5764
5535
  return {
5765
5536
  data: data?.getSubscriptionStatus,
5766
5537
  error,
@@ -5769,7 +5540,7 @@ var useGetSubscriptionStatus = () => {
5769
5540
  };
5770
5541
  };
5771
5542
  var useGetSubscriptionPlans = () => {
5772
- const { data, loading, error, refetch } = (0, import_client55.useQuery)(GET_SUBSCRIPTION_PLANS);
5543
+ const { data, loading, error, refetch } = (0, import_client51.useQuery)(GET_SUBSCRIPTION_PLANS);
5773
5544
  return {
5774
5545
  data: data?.getSubscriptionPlans,
5775
5546
  error,
@@ -5779,11 +5550,11 @@ var useGetSubscriptionPlans = () => {
5779
5550
  };
5780
5551
 
5781
5552
  // src/graphql/hooks/partner/hooksMutation.ts
5782
- var import_client57 = require("@apollo/client");
5553
+ var import_client53 = require("@apollo/client");
5783
5554
 
5784
5555
  // src/graphql/mutations/partner.ts
5785
- var import_client56 = require("@apollo/client");
5786
- var CREATE_PARTNER_MUTATION = import_client56.gql`
5556
+ var import_client52 = require("@apollo/client");
5557
+ var CREATE_PARTNER_MUTATION = import_client52.gql`
5787
5558
  mutation createPartner($input: PartnerInputType!) {
5788
5559
  createPartner(input: $input) {
5789
5560
  ...PartnerFields
@@ -5791,7 +5562,7 @@ var CREATE_PARTNER_MUTATION = import_client56.gql`
5791
5562
  }
5792
5563
  ${PARTNER}
5793
5564
  `;
5794
- var UPDATE_PARTNER_MUTATION = import_client56.gql`
5565
+ var UPDATE_PARTNER_MUTATION = import_client52.gql`
5795
5566
  mutation updatePartner($_id: ID!, $input: PartnerInputType!) {
5796
5567
  updatePartner(_id: $_id, input: $input) {
5797
5568
  ...PartnerFields
@@ -5799,7 +5570,7 @@ var UPDATE_PARTNER_MUTATION = import_client56.gql`
5799
5570
  }
5800
5571
  ${PARTNER}
5801
5572
  `;
5802
- var DELETE_PARTNER_MUTATION = import_client56.gql`
5573
+ var DELETE_PARTNER_MUTATION = import_client52.gql`
5803
5574
  mutation deletePartner($_id: ID!) {
5804
5575
  deletePartner(_id: $_id)
5805
5576
  }
@@ -5807,7 +5578,7 @@ var DELETE_PARTNER_MUTATION = import_client56.gql`
5807
5578
 
5808
5579
  // src/graphql/hooks/partner/hooksMutation.ts
5809
5580
  var useCreatePartner = () => {
5810
- const [createPartner, { loading, error }] = (0, import_client57.useMutation)(
5581
+ const [createPartner, { loading, error }] = (0, import_client53.useMutation)(
5811
5582
  CREATE_PARTNER_MUTATION,
5812
5583
  {
5813
5584
  awaitRefetchQueries: true,
@@ -5817,7 +5588,7 @@ var useCreatePartner = () => {
5817
5588
  return { createPartner, error, loading };
5818
5589
  };
5819
5590
  var useUpdatePartner = () => {
5820
- const [updatePartner, { loading, error }] = (0, import_client57.useMutation)(
5591
+ const [updatePartner, { loading, error }] = (0, import_client53.useMutation)(
5821
5592
  UPDATE_PARTNER_MUTATION,
5822
5593
  {
5823
5594
  awaitRefetchQueries: true,
@@ -5827,7 +5598,7 @@ var useUpdatePartner = () => {
5827
5598
  return { error, loading, updatePartner };
5828
5599
  };
5829
5600
  var useDeletePartner = () => {
5830
- const [deletePartner, { loading, error }] = (0, import_client57.useMutation)(
5601
+ const [deletePartner, { loading, error }] = (0, import_client53.useMutation)(
5831
5602
  DELETE_PARTNER_MUTATION,
5832
5603
  {
5833
5604
  awaitRefetchQueries: true,
@@ -5838,9 +5609,9 @@ var useDeletePartner = () => {
5838
5609
  };
5839
5610
 
5840
5611
  // src/graphql/hooks/partner/hooksQuery.ts
5841
- var import_client58 = require("@apollo/client");
5612
+ var import_client54 = require("@apollo/client");
5842
5613
  var useGetPartners = () => {
5843
- const { loading, error, data, refetch } = (0, import_client58.useQuery)(GET_PARTNERS, {
5614
+ const { loading, error, data, refetch } = (0, import_client54.useQuery)(GET_PARTNERS, {
5844
5615
  fetchPolicy: "network-only"
5845
5616
  });
5846
5617
  const partners = data?.partners || [];
@@ -5852,7 +5623,7 @@ var useGetPartners = () => {
5852
5623
  };
5853
5624
  };
5854
5625
  var useGetPartner = (_id) => {
5855
- const { loading, error, data, refetch } = (0, import_client58.useQuery)(
5626
+ const { loading, error, data, refetch } = (0, import_client54.useQuery)(
5856
5627
  GET_PARTNER,
5857
5628
  {
5858
5629
  fetchPolicy: "network-only",
@@ -5864,7 +5635,7 @@ var useGetPartner = (_id) => {
5864
5635
  return { error, loading, partner, refetch };
5865
5636
  };
5866
5637
  var useGetPartnersByRegion = (region) => {
5867
- const { loading, error, data, refetch } = (0, import_client58.useQuery)(GET_PARTNERS_BY_REGION, {
5638
+ const { loading, error, data, refetch } = (0, import_client54.useQuery)(GET_PARTNERS_BY_REGION, {
5868
5639
  fetchPolicy: "no-cache",
5869
5640
  skip: !region,
5870
5641
  variables: { region }
@@ -5873,7 +5644,7 @@ var useGetPartnersByRegion = (region) => {
5873
5644
  return { error, loading, partnersByRegion, refetch };
5874
5645
  };
5875
5646
  var useSearchPartners = (search, region) => {
5876
- const { loading, error, data, refetch } = (0, import_client58.useQuery)(SEARCH_PARTNERS, {
5647
+ const { loading, error, data, refetch } = (0, import_client54.useQuery)(SEARCH_PARTNERS, {
5877
5648
  fetchPolicy: "network-only",
5878
5649
  skip: search.length < 3,
5879
5650
  variables: { region, search }
@@ -5883,14 +5654,14 @@ var useSearchPartners = (search, region) => {
5883
5654
  };
5884
5655
 
5885
5656
  // src/graphql/hooks/post/hooksMutation.ts
5886
- var import_client61 = require("@apollo/client");
5657
+ var import_client57 = require("@apollo/client");
5887
5658
 
5888
5659
  // src/graphql/mutations/post.ts
5889
- var import_client60 = require("@apollo/client");
5660
+ var import_client56 = require("@apollo/client");
5890
5661
 
5891
5662
  // src/graphql/queries/post.ts
5892
- var import_client59 = require("@apollo/client");
5893
- var POST_CONTENT_DATA_FIELDS_FRAGMENT = import_client59.gql`
5663
+ var import_client55 = require("@apollo/client");
5664
+ var POST_CONTENT_DATA_FIELDS_FRAGMENT = import_client55.gql`
5894
5665
  fragment PostContentDataFields on PostContentData {
5895
5666
  textarea {
5896
5667
  title
@@ -5912,7 +5683,7 @@ var POST_CONTENT_DATA_FIELDS_FRAGMENT = import_client59.gql`
5912
5683
  }
5913
5684
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
5914
5685
  `;
5915
- var POST_CONTENT_FIELDS_FRAGMENT = import_client59.gql`
5686
+ var POST_CONTENT_FIELDS_FRAGMENT = import_client55.gql`
5916
5687
  fragment PostContentFields on PostContentType {
5917
5688
  contentData {
5918
5689
  ...PostContentDataFields
@@ -5922,7 +5693,7 @@ var POST_CONTENT_FIELDS_FRAGMENT = import_client59.gql`
5922
5693
  }
5923
5694
  ${POST_CONTENT_DATA_FIELDS_FRAGMENT}
5924
5695
  `;
5925
- var POST_FIELDS_FRAGMENT = import_client59.gql`
5696
+ var POST_FIELDS_FRAGMENT = import_client55.gql`
5926
5697
  fragment PostFields on PostType {
5927
5698
  _id
5928
5699
  active
@@ -5947,7 +5718,7 @@ var POST_FIELDS_FRAGMENT = import_client59.gql`
5947
5718
  ${POST_CONTENT_FIELDS_FRAGMENT}
5948
5719
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
5949
5720
  `;
5950
- var GET_POSTS = import_client59.gql`
5721
+ var GET_POSTS = import_client55.gql`
5951
5722
  query getPosts {
5952
5723
  posts {
5953
5724
  ...PostFields
@@ -5955,7 +5726,7 @@ var GET_POSTS = import_client59.gql`
5955
5726
  }
5956
5727
  ${POST_FIELDS_FRAGMENT}
5957
5728
  `;
5958
- var GET_POST = import_client59.gql`
5729
+ var GET_POST = import_client55.gql`
5959
5730
  query getPost($_id: ID!) {
5960
5731
  post(_id: $_id) {
5961
5732
  ...PostFields
@@ -5963,7 +5734,7 @@ var GET_POST = import_client59.gql`
5963
5734
  }
5964
5735
  ${POST_FIELDS_FRAGMENT}
5965
5736
  `;
5966
- var GET_POSTS_BY_TYPE = import_client59.gql`
5737
+ var GET_POSTS_BY_TYPE = import_client55.gql`
5967
5738
  query getPostsByType($postType: PostTypeEnum!) {
5968
5739
  postsByType(postType: $postType) {
5969
5740
  ...PostFields
@@ -5973,7 +5744,7 @@ var GET_POSTS_BY_TYPE = import_client59.gql`
5973
5744
  `;
5974
5745
 
5975
5746
  // src/graphql/mutations/post.ts
5976
- var CREATE_POST_MUTATION = import_client60.gql`
5747
+ var CREATE_POST_MUTATION = import_client56.gql`
5977
5748
  mutation createPost($input: PostInputType!) {
5978
5749
  createPost(input: $input) {
5979
5750
  ...PostFields
@@ -5981,7 +5752,7 @@ var CREATE_POST_MUTATION = import_client60.gql`
5981
5752
  }
5982
5753
  ${POST_FIELDS_FRAGMENT}
5983
5754
  `;
5984
- var UPDATE_POST_MUTATION = import_client60.gql`
5755
+ var UPDATE_POST_MUTATION = import_client56.gql`
5985
5756
  mutation updatePost($_id: ID!, $input: PostInputType!) {
5986
5757
  updatePost(_id: $_id, input: $input) {
5987
5758
  ...PostFields
@@ -5989,7 +5760,7 @@ var UPDATE_POST_MUTATION = import_client60.gql`
5989
5760
  }
5990
5761
  ${POST_FIELDS_FRAGMENT}
5991
5762
  `;
5992
- var DELETE_POST_MUTATION = import_client60.gql`
5763
+ var DELETE_POST_MUTATION = import_client56.gql`
5993
5764
  mutation deletePost($_id: ID!) {
5994
5765
  deletePost(_id: $_id)
5995
5766
  }
@@ -5997,21 +5768,21 @@ var DELETE_POST_MUTATION = import_client60.gql`
5997
5768
 
5998
5769
  // src/graphql/hooks/post/hooksMutation.ts
5999
5770
  var useCreatePost = () => {
6000
- const [createPost, { loading, error }] = (0, import_client61.useMutation)(CREATE_POST_MUTATION, {
5771
+ const [createPost, { loading, error }] = (0, import_client57.useMutation)(CREATE_POST_MUTATION, {
6001
5772
  awaitRefetchQueries: true,
6002
5773
  refetchQueries: [{ query: GET_POSTS }]
6003
5774
  });
6004
5775
  return { createPost, error, loading };
6005
5776
  };
6006
5777
  var useUpdatePost = () => {
6007
- const [updatePost, { loading, error }] = (0, import_client61.useMutation)(UPDATE_POST_MUTATION, {
5778
+ const [updatePost, { loading, error }] = (0, import_client57.useMutation)(UPDATE_POST_MUTATION, {
6008
5779
  awaitRefetchQueries: true,
6009
5780
  refetchQueries: [{ query: GET_POSTS }]
6010
5781
  });
6011
5782
  return { error, loading, updatePost };
6012
5783
  };
6013
5784
  var useDeletePost = () => {
6014
- const [deletePost, { loading, error }] = (0, import_client61.useMutation)(DELETE_POST_MUTATION, {
5785
+ const [deletePost, { loading, error }] = (0, import_client57.useMutation)(DELETE_POST_MUTATION, {
6015
5786
  awaitRefetchQueries: true,
6016
5787
  refetchQueries: [{ query: GET_POSTS }]
6017
5788
  });
@@ -6019,15 +5790,15 @@ var useDeletePost = () => {
6019
5790
  };
6020
5791
 
6021
5792
  // src/graphql/hooks/post/hooksQuery.ts
6022
- var import_client62 = require("@apollo/client");
5793
+ var import_client58 = require("@apollo/client");
6023
5794
  var useGetPosts = () => {
6024
- const { data, loading, error, refetch } = (0, import_client62.useQuery)(GET_POSTS, {
5795
+ const { data, loading, error, refetch } = (0, import_client58.useQuery)(GET_POSTS, {
6025
5796
  fetchPolicy: "network-only"
6026
5797
  });
6027
5798
  return { error, loading, posts: data?.posts || [], refetch };
6028
5799
  };
6029
5800
  var useGetPost = (_id) => {
6030
- const { data, loading, error, refetch } = (0, import_client62.useQuery)(GET_POST, {
5801
+ const { data, loading, error, refetch } = (0, import_client58.useQuery)(GET_POST, {
6031
5802
  fetchPolicy: "network-only",
6032
5803
  skip: !_id,
6033
5804
  variables: { _id }
@@ -6035,7 +5806,7 @@ var useGetPost = (_id) => {
6035
5806
  return { error, loading, post: data?.post, refetch };
6036
5807
  };
6037
5808
  var useGetPostsByType = (postType) => {
6038
- const { data, loading, error, refetch } = (0, import_client62.useQuery)(GET_POSTS_BY_TYPE, {
5809
+ const { data, loading, error, refetch } = (0, import_client58.useQuery)(GET_POSTS_BY_TYPE, {
6039
5810
  fetchPolicy: "network-only",
6040
5811
  skip: !postType,
6041
5812
  variables: { postType }
@@ -6044,26 +5815,33 @@ var useGetPostsByType = (postType) => {
6044
5815
  };
6045
5816
 
6046
5817
  // src/graphql/hooks/appSettings/hooksMutation.ts
6047
- var import_client65 = require("@apollo/client");
5818
+ var import_client61 = require("@apollo/client");
6048
5819
 
6049
5820
  // src/graphql/mutations/appSettings.ts
6050
- var import_client63 = require("@apollo/client");
6051
- var UPDATE_APP_SETTINGS_MUTATION = import_client63.gql`
5821
+ var import_client59 = require("@apollo/client");
5822
+ var UPDATE_APP_SETTINGS_MUTATION = import_client59.gql`
6052
5823
  mutation updateAppSettings($input: AppSettingsInputType!) {
6053
5824
  updateAppSettings(input: $input)
6054
5825
  }
6055
5826
  `;
6056
- var CRAWL_GOOGLE_MARKETS_MUTATION = import_client63.gql`
5827
+ var CRAWL_GOOGLE_MARKETS_MUTATION = import_client59.gql`
6057
5828
  mutation crawlGoogleMarkets {
6058
5829
  crawlGoogleMarkets {
6059
5830
  message
6060
5831
  }
6061
5832
  }
6062
5833
  `;
5834
+ var UPDATE_GOOGLE_IMPORTED_MARKET_MUTATION = import_client59.gql`
5835
+ mutation updateGoogleImportedMarkets {
5836
+ updateGoogleImportedMarkets {
5837
+ message
5838
+ }
5839
+ }
5840
+ `;
6063
5841
 
6064
5842
  // src/graphql/queries/appSettings.ts
6065
- var import_client64 = require("@apollo/client");
6066
- var APP_SETTINGS_FIELDS_FRAGMENT = import_client64.gql`
5843
+ var import_client60 = require("@apollo/client");
5844
+ var APP_SETTINGS_FIELDS_FRAGMENT = import_client60.gql`
6067
5845
  fragment AppSettingsFields on AppSettingsType {
6068
5846
  _id
6069
5847
  appVersion
@@ -6073,7 +5851,7 @@ var APP_SETTINGS_FIELDS_FRAGMENT = import_client64.gql`
6073
5851
  updatedAt
6074
5852
  }
6075
5853
  `;
6076
- var GET_APP_SETTINGS = import_client64.gql`
5854
+ var GET_APP_SETTINGS = import_client60.gql`
6077
5855
  query getAppSettings {
6078
5856
  appSettings {
6079
5857
  ...AppSettingsFields
@@ -6084,7 +5862,7 @@ var GET_APP_SETTINGS = import_client64.gql`
6084
5862
 
6085
5863
  // src/graphql/hooks/appSettings/hooksMutation.ts
6086
5864
  var useUpdateAppSettings = () => {
6087
- const [updateAppSettings, { loading, error }] = (0, import_client65.useMutation)(
5865
+ const [updateAppSettings, { loading, error }] = (0, import_client61.useMutation)(
6088
5866
  UPDATE_APP_SETTINGS_MUTATION,
6089
5867
  {
6090
5868
  awaitRefetchQueries: true,
@@ -6094,14 +5872,18 @@ var useUpdateAppSettings = () => {
6094
5872
  return { error, loading, updateAppSettings };
6095
5873
  };
6096
5874
  var useCrawlGoogleMarkets = () => {
6097
- const [crawlGoogleMarkets, { loading, error }] = (0, import_client65.useMutation)(CRAWL_GOOGLE_MARKETS_MUTATION);
5875
+ const [crawlGoogleMarkets, { loading, error }] = (0, import_client61.useMutation)(CRAWL_GOOGLE_MARKETS_MUTATION);
6098
5876
  return { crawlGoogleMarkets, error, loading };
6099
5877
  };
5878
+ var useUpdateGoogleImportedMarkets = () => {
5879
+ const [updateGoogleImportedMarkets, { loading, error }] = (0, import_client61.useMutation)(UPDATE_GOOGLE_IMPORTED_MARKET_MUTATION);
5880
+ return { error, loading, updateGoogleImportedMarkets };
5881
+ };
6100
5882
 
6101
5883
  // src/graphql/hooks/appSettings/hooksQuery.ts
6102
- var import_client66 = require("@apollo/client");
5884
+ var import_client62 = require("@apollo/client");
6103
5885
  var useGetAppSettings = () => {
6104
- const { loading, error, data, refetch } = (0, import_client66.useQuery)(GET_APP_SETTINGS, {
5886
+ const { loading, error, data, refetch } = (0, import_client62.useQuery)(GET_APP_SETTINGS, {
6105
5887
  fetchPolicy: "network-only"
6106
5888
  });
6107
5889
  const appSettings = data?.appSettings || null;
@@ -6685,128 +6467,8 @@ var validateVerificationTokenSchema = yup5.object().shape({
6685
6467
  verificationToken: yup5.string().required("Verification code is required").matches(/^\d{6}$/, "Verification code must be exactly 6 digits")
6686
6468
  });
6687
6469
 
6688
- // src/yupSchema/tester.ts
6689
- var yup6 = __toESM(require("yup"));
6690
-
6691
- // src/types/tester.ts
6692
- var OrganizedMarketCount = /* @__PURE__ */ ((OrganizedMarketCount2) => {
6693
- OrganizedMarketCount2["ONE"] = "One";
6694
- OrganizedMarketCount2["TWO_TO_THREE"] = "Two_to_Three";
6695
- OrganizedMarketCount2["FOUR_TO_FIVE"] = "Four_to_Five";
6696
- OrganizedMarketCount2["MORE_THAN_FIVE"] = "More_than_Five";
6697
- return OrganizedMarketCount2;
6698
- })(OrganizedMarketCount || {});
6699
- var VendorSellingFrequency = /* @__PURE__ */ ((VendorSellingFrequency2) => {
6700
- VendorSellingFrequency2["TWICE_A_WEEK"] = "Two_to_Three_times_a_week";
6701
- VendorSellingFrequency2["ONCE_A_WEEK"] = "Once_a_week";
6702
- VendorSellingFrequency2["ONE_TO_TWO_TIMES_A_MONTH"] = "One_to_Two_times_a_month";
6703
- VendorSellingFrequency2["LESS_OFTEN"] = "Less_often";
6704
- return VendorSellingFrequency2;
6705
- })(VendorSellingFrequency || {});
6706
- var OrganizerMarketFrequency = /* @__PURE__ */ ((OrganizerMarketFrequency2) => {
6707
- OrganizerMarketFrequency2["WEEKLY"] = "Weekly";
6708
- OrganizerMarketFrequency2["FORTNIGHTLY"] = "Fortnightly";
6709
- OrganizerMarketFrequency2["MONTHLY"] = "Monthly";
6710
- OrganizerMarketFrequency2["SEASONAL"] = "Seasonal";
6711
- return OrganizerMarketFrequency2;
6712
- })(OrganizerMarketFrequency || {});
6713
-
6714
- // src/yupSchema/tester.ts
6715
- var testerVendorSchema = yup6.object().shape({
6716
- categories: categorySchema.min(1, "Category list must contain at least one item").required("Categories are required"),
6717
- marketsAttended: yup6.array().of(
6718
- yup6.object().shape({
6719
- city: yup6.string().trim().required("City is required"),
6720
- name: yup6.string().trim().required("Market name is required")
6721
- })
6722
- ).min(1, "At least one market must be provided").required("Markets attended are required"),
6723
- productsOrServices: yup6.string().trim().required("Products or services description is required"),
6724
- questionary: yup6.object().shape({
6725
- appearInVideoIntroduction: yup6.boolean().optional(),
6726
- applyToAtLeastOneMarket: yup6.boolean().required("This field is required").oneOf([true], "This field is required"),
6727
- completeFeedbackQuestionnaire: yup6.boolean().required("This field is required").oneOf([true], "This field is required"),
6728
- excitementAboutApp: yup6.string().trim().optional(),
6729
- sendPhotoForSocialMedia: yup6.boolean().optional(),
6730
- socialMediaFeatureReason: yup6.string().trim().optional(),
6731
- testingPeriodConcerns: yup6.string().trim().optional(),
6732
- tryVisitorFeatures: yup6.boolean().required("This field is required").oneOf([true], "This field is required"),
6733
- uploadStallProfileFirstWeek: yup6.boolean().required("This field is required").oneOf([true], "This field is required"),
6734
- usefulnessExpectations: yup6.string().trim().optional()
6735
- }).required("Questionary is required"),
6736
- sellingFrequency: yup6.mixed().oneOf(
6737
- Object.values(VendorSellingFrequency),
6738
- "Please select a valid selling frequency"
6739
- ).required("Required field"),
6740
- yearlySellingApprox: yup6.number().nonNullable().transform(
6741
- (value, originalValue) => originalValue === "" ? void 0 : value
6742
- ).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"))
6743
- });
6744
- var testerEventSchema = yup6.object().shape({
6745
- markets: yup6.array().of(
6746
- yup6.object().shape({
6747
- averageStallCount: yup6.number().nonNullable().transform(
6748
- (value, originalValue) => originalValue === "" ? void 0 : value
6749
- ).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")),
6750
- cityOrVenue: yup6.string().trim().required("City or venue is required"),
6751
- frequency: yup6.mixed().oneOf(
6752
- Object.values(OrganizerMarketFrequency),
6753
- "Please select a valid frequency"
6754
- ).required("Frequency is required"),
6755
- name: yup6.string().trim().required("Market name is required")
6756
- })
6757
- ).min(1, "At least one market must be provided").required("Markets are required"),
6758
- organizedMarketCount: yup6.mixed().oneOf(
6759
- Object.values(OrganizedMarketCount),
6760
- "Please select a valid market count"
6761
- ).required("Organized market count is required"),
6762
- questionary: yup6.object().shape({
6763
- allowMarketingAppearance: yup6.boolean().optional(),
6764
- completeFinalQuestionnaire: yup6.boolean().required("This field is required").oneOf([true], "This field is required"),
6765
- completeMarketProfileFirstWeek: yup6.boolean().required("This field is required").oneOf([true], "This field is required"),
6766
- dailyCoordinationNeeds: yup6.string().trim().optional(),
6767
- interestedInCharityInitiative: yup6.boolean().optional(),
6768
- inviteStallholders: yup6.boolean().required("This field is required").oneOf([true], "This field is required"),
6769
- manageApplicationsAndCommunication: yup6.boolean().required("This field is required").oneOf([true], "This field is required"),
6770
- organizerExpectations: yup6.string().trim().optional(),
6771
- spaceForClueMart: yup6.boolean().optional(),
6772
- uploadStallList: yup6.boolean().required("This field is required").oneOf([true], "This field is required")
6773
- }).required("Questionary is required")
6774
- });
6775
- var testerSchema = yup6.object().shape({
6776
- businessName: yup6.string().required("Business name is required"),
6777
- consents: yup6.object().shape({
6778
- betaTestConsent: yup6.boolean().oneOf([true], "You must consent to beta testing").required("Beta test consent is required"),
6779
- privacyConsent: yup6.boolean().oneOf([true], "You must accept the Privacy Policy").required("Privacy consent is required")
6780
- }),
6781
- email: emailRequiredSchema,
6782
- event: yup6.object().when("resourceType", {
6783
- is: (resourceType) => resourceType === "event" /* EVENT */,
6784
- otherwise: (schema) => schema.nullable().optional(),
6785
- then: (schema) => schema.required("Event information is required").shape(testerEventSchema.fields)
6786
- }),
6787
- firstName: yup6.string().required("First name is required"),
6788
- lastName: yup6.string().required("Last name is required"),
6789
- mobilePhone: yup6.string().label("Mobile Phone").required("Mobile phone is required").test(
6790
- "mobile-phone",
6791
- "Mobile must start with 02 and be 9\u201311 digits",
6792
- (value) => !value || mobileRegex.test(value)
6793
- // skip empty values
6794
- ),
6795
- osType: yup6.mixed().oneOf(Object.values(EnumOSPlatform), "Please select Android or iOS").required("OS Type is required"),
6796
- region: yup6.string().required("Region is required"),
6797
- resourceType: yup6.mixed().oneOf(
6798
- Object.values(EnumResourceType),
6799
- "Please select Event or Stallholder"
6800
- ).required("Resource Type is required"),
6801
- vendor: yup6.object().when("resourceType", {
6802
- is: (resourceType) => resourceType === "vendor" /* VENDOR */,
6803
- otherwise: (schema) => schema.nullable().optional(),
6804
- then: (schema) => schema.required("Vendor information is required").shape(testerVendorSchema.fields)
6805
- })
6806
- });
6807
-
6808
6470
  // src/yupSchema/ad.ts
6809
- var yup7 = __toESM(require("yup"));
6471
+ var yup6 = __toESM(require("yup"));
6810
6472
 
6811
6473
  // src/types/ad.ts
6812
6474
  var EnumAdShowOn = /* @__PURE__ */ ((EnumAdShowOn2) => {
@@ -6834,12 +6496,12 @@ var EnumAdStyle = /* @__PURE__ */ ((EnumAdStyle2) => {
6834
6496
  })(EnumAdStyle || {});
6835
6497
 
6836
6498
  // src/yupSchema/ad.ts
6837
- var adSchema = yup7.object().shape({
6838
- active: yup7.boolean().required("Active status is required"),
6839
- adStyle: yup7.mixed().oneOf(Object.values(EnumAdStyle), "Please select a valid ad style").required("Ad style is required"),
6840
- adType: yup7.mixed().oneOf(Object.values(EnumAdType), "Please select a valid ad type").required("Ad type is required"),
6841
- clui: yup7.string().nullable().notRequired(),
6842
- end: yup7.date().required("End date is required").test("is-future-date", "End date must be in the future", (value) => {
6499
+ var adSchema = yup6.object().shape({
6500
+ active: yup6.boolean().required("Active status is required"),
6501
+ adStyle: yup6.mixed().oneOf(Object.values(EnumAdStyle), "Please select a valid ad style").required("Ad style is required"),
6502
+ adType: yup6.mixed().oneOf(Object.values(EnumAdType), "Please select a valid ad type").required("Ad type is required"),
6503
+ clui: yup6.string().nullable().notRequired(),
6504
+ end: yup6.date().required("End date is required").test("is-future-date", "End date must be in the future", (value) => {
6843
6505
  if (!value) return false;
6844
6506
  const endDate = new Date(value);
6845
6507
  const now = /* @__PURE__ */ new Date();
@@ -6856,40 +6518,40 @@ var adSchema = yup7.object().shape({
6856
6518
  }
6857
6519
  )
6858
6520
  }),
6859
- resourceCover: yup7.string().url("Resource cover must be a valid URL").required("Resource cover is required"),
6860
- resourceDescription: yup7.string().required("Resource description is required"),
6861
- resourceId: yup7.string().required("Resource ID is required"),
6862
- resourceLogo: yup7.string().url("Resource logo must be a valid URL").nullable().notRequired(),
6863
- resourceName: yup7.string().required("Resource name is required"),
6864
- resourceRegion: yup7.string().required("Resource region is required"),
6865
- resourceType: yup7.mixed().oneOf(Object.values(EnumResourceType), "Please select Event or Vendor").required("Resource Type is required"),
6866
- showOn: yup7.mixed().oneOf(
6521
+ resourceCover: yup6.string().url("Resource cover must be a valid URL").required("Resource cover is required"),
6522
+ resourceDescription: yup6.string().required("Resource description is required"),
6523
+ resourceId: yup6.string().required("Resource ID is required"),
6524
+ resourceLogo: yup6.string().url("Resource logo must be a valid URL").nullable().notRequired(),
6525
+ resourceName: yup6.string().required("Resource name is required"),
6526
+ resourceRegion: yup6.string().required("Resource region is required"),
6527
+ resourceType: yup6.mixed().oneOf(Object.values(EnumResourceType), "Please select Event or Vendor").required("Resource Type is required"),
6528
+ showOn: yup6.mixed().oneOf(
6867
6529
  Object.values(EnumAdShowOn),
6868
6530
  "Please select a valid display location"
6869
6531
  ).required("Display location is required"),
6870
- socialMedia: yup7.array().of(socialMediaSchema).nullable().optional(),
6871
- status: yup7.mixed().oneOf(Object.values(EnumAdStatus)).required("Ad status is required"),
6872
- start: yup7.date().when("status", {
6532
+ socialMedia: yup6.array().of(socialMediaSchema).nullable().optional(),
6533
+ status: yup6.mixed().oneOf(Object.values(EnumAdStatus)).required("Ad status is required"),
6534
+ start: yup6.date().when("status", {
6873
6535
  is: (status) => status !== "Active" /* ACTIVE */,
6874
- then: () => yup7.date().required("Start date is required").test("is-future-date", "Start date must be in the future", (value) => {
6536
+ then: () => yup6.date().required("Start date is required").test("is-future-date", "Start date must be in the future", (value) => {
6875
6537
  if (!value) return false;
6876
6538
  return value > /* @__PURE__ */ new Date();
6877
6539
  }),
6878
- otherwise: () => yup7.date().nullable().notRequired()
6540
+ otherwise: () => yup6.date().nullable().notRequired()
6879
6541
  }),
6880
- targetRegion: yup7.string().nullable().notRequired()
6542
+ targetRegion: yup6.string().nullable().notRequired()
6881
6543
  });
6882
6544
 
6883
6545
  // src/yupSchema/partner.ts
6884
- var yup8 = __toESM(require("yup"));
6546
+ var yup7 = __toESM(require("yup"));
6885
6547
  var partnerSchema = globalResourceSchema.shape({
6886
6548
  location: locationSchema,
6887
- nzbn: yup8.string().required("NZBN is required").matches(nzbnRegex, "NZBN must be 13 digits and start with 94"),
6888
- partnerType: yup8.mixed().oneOf(Object.values(EnumPartnerType), "Please select a valid Partner type").required("Please select a Partner type")
6549
+ nzbn: yup7.string().required("NZBN is required").matches(nzbnRegex, "NZBN must be 13 digits and start with 94"),
6550
+ partnerType: yup7.mixed().oneOf(Object.values(EnumPartnerType), "Please select a valid Partner type").required("Please select a Partner type")
6889
6551
  });
6890
6552
 
6891
6553
  // src/yupSchema/post.ts
6892
- var yup9 = __toESM(require("yup"));
6554
+ var yup8 = __toESM(require("yup"));
6893
6555
 
6894
6556
  // src/types/post.ts
6895
6557
  var EnumPostType = /* @__PURE__ */ ((EnumPostType2) => {
@@ -6907,32 +6569,32 @@ var EnumPostContentType = /* @__PURE__ */ ((EnumPostContentType2) => {
6907
6569
  })(EnumPostContentType || {});
6908
6570
 
6909
6571
  // src/yupSchema/post.ts
6910
- var postContentSchema = yup9.object().shape({
6911
- contentData: yup9.mixed().optional().nullable(),
6912
- contentOrder: yup9.number().nullable(),
6913
- contentType: yup9.mixed().oneOf(Object.values(EnumPostContentType)).nullable()
6572
+ var postContentSchema = yup8.object().shape({
6573
+ contentData: yup8.mixed().optional().nullable(),
6574
+ contentOrder: yup8.number().nullable(),
6575
+ contentType: yup8.mixed().oneOf(Object.values(EnumPostContentType)).nullable()
6914
6576
  });
6915
- var postSchema = yup9.object().shape({
6916
- active: yup9.boolean().required(),
6917
- caption: yup9.string().required(),
6918
- content: yup9.array().of(postContentSchema).required(),
6919
- postType: yup9.mixed().oneOf(Object.values(EnumPostType)).required(),
6920
- resource: yup9.object({
6921
- resourceId: yup9.string().required(),
6922
- resourceType: yup9.mixed().oneOf(Object.values(EnumResourceType)).required()
6577
+ var postSchema = yup8.object().shape({
6578
+ active: yup8.boolean().required(),
6579
+ caption: yup8.string().required(),
6580
+ content: yup8.array().of(postContentSchema).required(),
6581
+ postType: yup8.mixed().oneOf(Object.values(EnumPostType)).required(),
6582
+ resource: yup8.object({
6583
+ resourceId: yup8.string().required(),
6584
+ resourceType: yup8.mixed().oneOf(Object.values(EnumResourceType)).required()
6923
6585
  }).nullable().optional(),
6924
- tags: yup9.array().of(yup9.string().required()).nullable().optional(),
6925
- title: yup9.string().required()
6586
+ tags: yup8.array().of(yup8.string().required()).nullable().optional(),
6587
+ title: yup8.string().required()
6926
6588
  });
6927
6589
 
6928
6590
  // src/yupSchema/appSettings.ts
6929
- var yup10 = __toESM(require("yup"));
6930
- var appSettingsSchema = yup10.object({
6931
- appVersion: yup10.string().trim().label("App Version").matches(
6591
+ var yup9 = __toESM(require("yup"));
6592
+ var appSettingsSchema = yup9.object({
6593
+ appVersion: yup9.string().trim().label("App Version").matches(
6932
6594
  /^\d+\.\d+\.\d+$/,
6933
6595
  "App Version must be in the format X.Y.Z (e.g. 1.12.50)"
6934
6596
  ).required("App Version is required"),
6935
- isOfflineMode: yup10.boolean().label("Is Offline Mode").required("Is Offline Mode is required")
6597
+ isOfflineMode: yup9.boolean().label("Is Offline Mode").required("Is Offline Mode is required")
6936
6598
  });
6937
6599
 
6938
6600
  // src/hooks/utils.ts
@@ -7658,110 +7320,22 @@ function useResetPasswordForm() {
7658
7320
  };
7659
7321
  }
7660
7322
 
7661
- // src/hooks/useTesterForm.ts
7323
+ // src/hooks/useContactUsForm.ts
7662
7324
  var import_yup11 = require("@hookform/resolvers/yup");
7663
7325
  var import_react = __toESM(require("react"));
7664
7326
  var import_react_hook_form11 = require("react-hook-form");
7665
- var defaultValues7 = {
7666
- businessName: "",
7667
- consents: {
7668
- betaTestConsent: false,
7669
- privacyConsent: false
7670
- },
7671
- email: "",
7672
- event: {},
7673
- firstName: "",
7674
- lastName: "",
7675
- mobilePhone: "",
7676
- osType: "",
7677
- region: "",
7678
- resourceType: "",
7679
- vendor: {}
7680
- };
7681
- function useTesterForm(data) {
7682
- const {
7683
- control,
7684
- formState,
7685
- getValues,
7686
- handleSubmit,
7687
- reset,
7688
- setValue,
7689
- watch
7690
- } = (0, import_react_hook_form11.useForm)({
7691
- defaultValues: defaultValues7,
7692
- resolver: (0, import_yup11.yupResolver)(testerSchema)
7693
- });
7694
- import_react.default.useEffect(() => {
7695
- if (data) {
7696
- reset({
7697
- businessName: data.businessName,
7698
- consents: data.consents,
7699
- email: data.email,
7700
- event: data.event,
7701
- firstName: data.firstName,
7702
- lastName: data.lastName,
7703
- mobilePhone: data.mobilePhone,
7704
- osType: data.osType,
7705
- region: data.region,
7706
- resourceType: data.resourceType,
7707
- vendor: data.vendor
7708
- });
7709
- } else {
7710
- reset(defaultValues7);
7711
- }
7712
- }, [data]);
7713
- const {
7714
- businessName,
7715
- consents,
7716
- email,
7717
- event,
7718
- firstName,
7719
- lastName,
7720
- mobilePhone,
7721
- osType,
7722
- region,
7723
- resourceType,
7724
- vendor
7725
- } = getValues();
7726
- return {
7727
- control,
7728
- fields: {
7729
- businessName,
7730
- consents,
7731
- email,
7732
- event,
7733
- firstName,
7734
- lastName,
7735
- mobilePhone,
7736
- osType,
7737
- region,
7738
- resourceType,
7739
- vendor
7740
- },
7741
- formState,
7742
- handleSubmit,
7743
- reset,
7744
- setValue,
7745
- watch
7746
- };
7747
- }
7748
-
7749
- // src/hooks/useContactUsForm.ts
7750
- var import_yup12 = require("@hookform/resolvers/yup");
7751
- var import_react2 = __toESM(require("react"));
7752
- var import_react_hook_form12 = require("react-hook-form");
7753
7327
 
7754
7328
  // src/yupSchema/contactUs.ts
7755
- var yup11 = __toESM(require("yup"));
7756
- var contactUsSchema = yup11.object().shape({
7329
+ var yup10 = __toESM(require("yup"));
7330
+ var contactUsSchema = yup10.object().shape({
7757
7331
  email: emailRequiredSchema,
7758
- firstName: yup11.string().label("First Name").required("First name is required"),
7759
- lastName: yup11.string().label("Last Name").required("Last name is required"),
7760
- message: yup11.string().label("Message").required("Message is required")
7332
+ firstName: yup10.string().label("First Name").required("First name is required"),
7333
+ lastName: yup10.string().label("Last Name").required("Last name is required"),
7334
+ message: yup10.string().label("Message").required("Message is required")
7761
7335
  });
7762
7336
 
7763
7337
  // src/hooks/useContactUsForm.ts
7764
- var defaultValues8 = {
7338
+ var defaultValues7 = {
7765
7339
  email: "",
7766
7340
  firstName: "",
7767
7341
  lastName: "",
@@ -7776,11 +7350,11 @@ function useContactUsForm(data) {
7776
7350
  reset,
7777
7351
  setValue,
7778
7352
  watch
7779
- } = (0, import_react_hook_form12.useForm)({
7780
- defaultValues: defaultValues8,
7781
- resolver: (0, import_yup12.yupResolver)(contactUsSchema)
7353
+ } = (0, import_react_hook_form11.useForm)({
7354
+ defaultValues: defaultValues7,
7355
+ resolver: (0, import_yup11.yupResolver)(contactUsSchema)
7782
7356
  });
7783
- import_react2.default.useEffect(() => {
7357
+ import_react.default.useEffect(() => {
7784
7358
  if (data) {
7785
7359
  reset({
7786
7360
  email: data.email,
@@ -7789,7 +7363,7 @@ function useContactUsForm(data) {
7789
7363
  message: data.message
7790
7364
  });
7791
7365
  } else {
7792
- reset(defaultValues8);
7366
+ reset(defaultValues7);
7793
7367
  }
7794
7368
  }, [data]);
7795
7369
  const { email, firstName, lastName, message } = getValues();
@@ -7810,10 +7384,10 @@ function useContactUsForm(data) {
7810
7384
  }
7811
7385
 
7812
7386
  // src/hooks/useAdForm.ts
7813
- var import_yup13 = require("@hookform/resolvers/yup");
7814
- var import_react3 = __toESM(require("react"));
7815
- var import_react_hook_form13 = require("react-hook-form");
7816
- var defaultValues9 = {
7387
+ var import_yup12 = require("@hookform/resolvers/yup");
7388
+ var import_react2 = __toESM(require("react"));
7389
+ var import_react_hook_form12 = require("react-hook-form");
7390
+ var defaultValues8 = {
7817
7391
  active: true,
7818
7392
  adStyle: "Bloom" /* BLOOM */,
7819
7393
  // default to bloom
@@ -7846,11 +7420,11 @@ function useAdForm(data) {
7846
7420
  reset,
7847
7421
  setValue,
7848
7422
  watch
7849
- } = (0, import_react_hook_form13.useForm)({
7850
- defaultValues: defaultValues9,
7851
- resolver: (0, import_yup13.yupResolver)(adSchema)
7423
+ } = (0, import_react_hook_form12.useForm)({
7424
+ defaultValues: defaultValues8,
7425
+ resolver: (0, import_yup12.yupResolver)(adSchema)
7852
7426
  });
7853
- import_react3.default.useEffect(() => {
7427
+ import_react2.default.useEffect(() => {
7854
7428
  if (data) {
7855
7429
  reset({
7856
7430
  active: data.active,
@@ -7871,7 +7445,7 @@ function useAdForm(data) {
7871
7445
  targetRegion: data.targetRegion
7872
7446
  });
7873
7447
  } else {
7874
- reset(defaultValues9);
7448
+ reset(defaultValues8);
7875
7449
  }
7876
7450
  }, [data]);
7877
7451
  const {
@@ -7923,9 +7497,9 @@ function useAdForm(data) {
7923
7497
  }
7924
7498
 
7925
7499
  // src/hooks/partner/usePartnerForm.ts
7926
- var import_yup14 = require("@hookform/resolvers/yup");
7927
- var React9 = __toESM(require("react"));
7928
- var import_react_hook_form14 = require("react-hook-form");
7500
+ var import_yup13 = require("@hookform/resolvers/yup");
7501
+ var React8 = __toESM(require("react"));
7502
+ var import_react_hook_form13 = require("react-hook-form");
7929
7503
  function usePartnerForm(data) {
7930
7504
  const {
7931
7505
  control,
@@ -7935,11 +7509,11 @@ function usePartnerForm(data) {
7935
7509
  reset,
7936
7510
  setValue,
7937
7511
  watch
7938
- } = (0, import_react_hook_form14.useForm)({
7512
+ } = (0, import_react_hook_form13.useForm)({
7939
7513
  defaultValues: defaultPartnerFormValues,
7940
- resolver: (0, import_yup14.yupResolver)(partnerSchema)
7514
+ resolver: (0, import_yup13.yupResolver)(partnerSchema)
7941
7515
  });
7942
- React9.useEffect(() => {
7516
+ React8.useEffect(() => {
7943
7517
  if (data) {
7944
7518
  reset({
7945
7519
  ...mapBaseResourceTypeToFormData(data),
@@ -8006,10 +7580,10 @@ function usePartnerForm(data) {
8006
7580
  }
8007
7581
 
8008
7582
  // src/hooks/usePostForm.ts
8009
- var import_yup15 = require("@hookform/resolvers/yup");
8010
- var import_react4 = __toESM(require("react"));
8011
- var import_react_hook_form15 = require("react-hook-form");
8012
- var defaultValues10 = {
7583
+ var import_yup14 = require("@hookform/resolvers/yup");
7584
+ var import_react3 = __toESM(require("react"));
7585
+ var import_react_hook_form14 = require("react-hook-form");
7586
+ var defaultValues9 = {
8013
7587
  active: true,
8014
7588
  caption: "",
8015
7589
  content: [],
@@ -8029,11 +7603,11 @@ function usePostForm(data) {
8029
7603
  reset,
8030
7604
  setValue,
8031
7605
  watch
8032
- } = (0, import_react_hook_form15.useForm)({
8033
- defaultValues: defaultValues10,
8034
- resolver: (0, import_yup15.yupResolver)(postSchema)
7606
+ } = (0, import_react_hook_form14.useForm)({
7607
+ defaultValues: defaultValues9,
7608
+ resolver: (0, import_yup14.yupResolver)(postSchema)
8035
7609
  });
8036
- import_react4.default.useEffect(() => {
7610
+ import_react3.default.useEffect(() => {
8037
7611
  if (data) {
8038
7612
  reset({
8039
7613
  active: data.active,
@@ -8047,7 +7621,7 @@ function usePostForm(data) {
8047
7621
  title: data.title
8048
7622
  });
8049
7623
  } else {
8050
- reset(defaultValues10);
7624
+ reset(defaultValues9);
8051
7625
  }
8052
7626
  }, [data]);
8053
7627
  const {
@@ -8083,10 +7657,10 @@ function usePostForm(data) {
8083
7657
  }
8084
7658
 
8085
7659
  // src/hooks/useAppSettingsForm.ts
8086
- var import_yup16 = require("@hookform/resolvers/yup");
8087
- var import_react5 = __toESM(require("react"));
8088
- var import_react_hook_form16 = require("react-hook-form");
8089
- var defaultValues11 = {
7660
+ var import_yup15 = require("@hookform/resolvers/yup");
7661
+ var import_react4 = __toESM(require("react"));
7662
+ var import_react_hook_form15 = require("react-hook-form");
7663
+ var defaultValues10 = {
8090
7664
  appVersion: "",
8091
7665
  isOfflineMode: false
8092
7666
  };
@@ -8099,18 +7673,18 @@ function useAppSettingsForm(data) {
8099
7673
  reset,
8100
7674
  setValue,
8101
7675
  watch
8102
- } = (0, import_react_hook_form16.useForm)({
8103
- defaultValues: defaultValues11,
8104
- resolver: (0, import_yup16.yupResolver)(appSettingsSchema)
7676
+ } = (0, import_react_hook_form15.useForm)({
7677
+ defaultValues: defaultValues10,
7678
+ resolver: (0, import_yup15.yupResolver)(appSettingsSchema)
8105
7679
  });
8106
- import_react5.default.useEffect(() => {
7680
+ import_react4.default.useEffect(() => {
8107
7681
  if (data) {
8108
7682
  reset({
8109
7683
  appVersion: data.appVersion,
8110
7684
  isOfflineMode: data.isOfflineMode
8111
7685
  });
8112
7686
  } else {
8113
- reset(defaultValues11);
7687
+ reset(defaultValues10);
8114
7688
  }
8115
7689
  }, [data]);
8116
7690
  const { appVersion, isOfflineMode } = getValues();
@@ -8177,7 +7751,6 @@ var fonts = {
8177
7751
  var EnumVerificationType = /* @__PURE__ */ ((EnumVerificationType2) => {
8178
7752
  EnumVerificationType2["REGISTER"] = "register";
8179
7753
  EnumVerificationType2["RESET_PASSWORD"] = "resetPassword";
8180
- EnumVerificationType2["TESTER_VALIDATION"] = "testerValidation";
8181
7754
  return EnumVerificationType2;
8182
7755
  })(EnumVerificationType || {});
8183
7756
 
@@ -8224,14 +7797,11 @@ var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
8224
7797
  EnumVerificationType,
8225
7798
  IOS_URL,
8226
7799
  ImageTypeEnum,
8227
- OrganizedMarketCount,
8228
- OrganizerMarketFrequency,
8229
7800
  SAVED_EMAIL_KEY,
8230
7801
  SAVED_PASSWORD_KEY,
8231
7802
  SAVED_REFRESH_TOKEN_KEY,
8232
7803
  SAVED_TOKEN_KEY,
8233
7804
  USER_STORAGE_KEY,
8234
- VendorSellingFrequency,
8235
7805
  availableCategories,
8236
7806
  availableRegionOptions,
8237
7807
  availableRegionTypes,
@@ -8285,7 +7855,6 @@ var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
8285
7855
  stallTypeOptions,
8286
7856
  statusOptions,
8287
7857
  tagOptions,
8288
- testersFields,
8289
7858
  timeFormat,
8290
7859
  toNZTime,
8291
7860
  truncateText,
@@ -8295,10 +7864,9 @@ var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
8295
7864
  useAddUserGoingResource,
8296
7865
  useAddUserInterestResource,
8297
7866
  useAddUserPresentResource,
8298
- useAdminResendTesterVerificationEmail,
7867
+ useAdminPermanentlyDeleteResource,
8299
7868
  useAdminResendUserVerificationEmail,
8300
7869
  useAdminUpdateResourceType,
8301
- useAdminUpdateTester,
8302
7870
  useAppSettingsForm,
8303
7871
  useCancelSubscription,
8304
7872
  useContactUs,
@@ -8316,7 +7884,6 @@ var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
8316
7884
  useCreatePushToken,
8317
7885
  useCreateRelation,
8318
7886
  useCreateResourceActivity,
8319
- useCreateTester,
8320
7887
  useCreateUnregisteredVendor,
8321
7888
  useCreateUser,
8322
7889
  useCreateVendor,
@@ -8329,7 +7896,6 @@ var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
8329
7896
  useDeletePartner,
8330
7897
  useDeletePost,
8331
7898
  useDeleteRelation,
8332
- useDeleteTester,
8333
7899
  useDeleteUnregisteredVendor,
8334
7900
  useDeleteUser,
8335
7901
  useDeleteVendor,
@@ -8364,8 +7930,6 @@ var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
8364
7930
  useGetResourceConnections,
8365
7931
  useGetSubscriptionPlans,
8366
7932
  useGetSubscriptionStatus,
8367
- useGetTester,
8368
- useGetTesters,
8369
7933
  useGetUnregisteredVendor,
8370
7934
  useGetUnregisteredVendors,
8371
7935
  useGetUser,
@@ -8410,17 +7974,16 @@ var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
8410
7974
  useSelectPackage,
8411
7975
  useSelectStandardPackage,
8412
7976
  useSendChatMessage,
8413
- useTesterForm,
8414
7977
  useToggleChatMessageLike,
8415
7978
  useUpdateAd,
8416
7979
  useUpdateAppSettings,
8417
7980
  useUpdateEvent,
8418
7981
  useUpdateEventInfo,
7982
+ useUpdateGoogleImportedMarkets,
8419
7983
  useUpdatePartner,
8420
7984
  useUpdatePost,
8421
7985
  useUpdateRelation,
8422
7986
  useUpdateSubscriptionPlan,
8423
- useUpdateTester,
8424
7987
  useUpdateUnregisteredVendor,
8425
7988
  useUpdateUser,
8426
7989
  useUpdateVendor,