@timardex/cluemart-shared 1.2.9 → 1.2.11

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 (39) hide show
  1. package/dist/{ad-BdkvVgTG.d.mts → ad-DIIPz6Cg.d.mts} +1 -1
  2. package/dist/{ad-CaHFwLDq.d.ts → ad-iOu_E7DP.d.ts} +1 -1
  3. package/dist/{auth-Bdbu0AYI.d.ts → auth-b59uXZAI.d.ts} +1 -1
  4. package/dist/{auth-DEMvXVbh.d.mts → auth-zj4ldAg5.d.mts} +1 -1
  5. package/dist/{chunk-NLDCBJIQ.mjs → chunk-GATAI5T6.mjs} +2 -2
  6. package/dist/{chunk-NLDCBJIQ.mjs.map → chunk-GATAI5T6.mjs.map} +1 -1
  7. package/dist/formFields/index.cjs +1 -1
  8. package/dist/formFields/index.cjs.map +1 -1
  9. package/dist/formFields/index.d.mts +1 -1
  10. package/dist/formFields/index.d.ts +1 -1
  11. package/dist/formFields/index.mjs +1 -1
  12. package/dist/{global-BvXtqVsE.d.ts → global-B0ogdRmU.d.ts} +2 -1
  13. package/dist/{global-BT5qyeKd.d.mts → global-CAQkxPc3.d.mts} +2 -1
  14. package/dist/graphql/index.cjs +402 -521
  15. package/dist/graphql/index.cjs.map +1 -1
  16. package/dist/graphql/index.d.mts +2 -2
  17. package/dist/graphql/index.d.ts +2 -2
  18. package/dist/graphql/index.mjs +357 -476
  19. package/dist/graphql/index.mjs.map +1 -1
  20. package/dist/hooks/index.cjs +7 -3
  21. package/dist/hooks/index.cjs.map +1 -1
  22. package/dist/hooks/index.d.mts +3 -3
  23. package/dist/hooks/index.d.ts +3 -3
  24. package/dist/hooks/index.mjs +7 -3
  25. package/dist/hooks/index.mjs.map +1 -1
  26. package/dist/index.cjs +409 -524
  27. package/dist/index.cjs.map +1 -1
  28. package/dist/index.d.mts +1 -0
  29. package/dist/index.d.ts +1 -0
  30. package/dist/index.mjs +362 -477
  31. package/dist/index.mjs.map +1 -1
  32. package/dist/types/index.d.mts +3 -3
  33. package/dist/types/index.d.ts +3 -3
  34. package/dist/utils/index.cjs +1 -1
  35. package/dist/utils/index.cjs.map +1 -1
  36. package/dist/utils/index.d.mts +1 -1
  37. package/dist/utils/index.d.ts +1 -1
  38. package/dist/utils/index.mjs +1 -1
  39. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -428,7 +428,7 @@ var truncateText = (text, maxLength = 30) => {
428
428
  };
429
429
  var mapArrayToOptions = (items) => items.map((item) => ({
430
430
  label: item.replace(/_/g, " "),
431
- value: item.replace(/\s+/g, "_").toLowerCase()
431
+ value: item.replace(/\s+/g, "_")
432
432
  }));
433
433
  var capitalizeFirstLetter = (str) => {
434
434
  return str.split(" ").map((word) => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase()).join(" ");
@@ -2166,7 +2166,7 @@ var companyContactFields = [
2166
2166
  ];
2167
2167
 
2168
2168
  // src/graphql/hooks/admin/hooksMutation.ts
2169
- var import_client5 = require("@apollo/client");
2169
+ var import_client6 = require("@apollo/client");
2170
2170
 
2171
2171
  // src/graphql/mutations/admin.ts
2172
2172
  var import_client = require("@apollo/client");
@@ -2181,7 +2181,7 @@ var ADMIN_UPDATE_RESOURCE_TYPE_MUTATION = import_client.gql`
2181
2181
  `;
2182
2182
 
2183
2183
  // src/graphql/queries/event.ts
2184
- var import_client3 = require("@apollo/client");
2184
+ var import_client5 = require("@apollo/client");
2185
2185
 
2186
2186
  // src/graphql/queries/global.ts
2187
2187
  var import_client2 = require("@apollo/client");
@@ -2302,17 +2302,13 @@ var CONTACT_DETAILS_FIELDS_FRAGMENT = import_client2.gql`
2302
2302
  }
2303
2303
  `;
2304
2304
 
2305
- // src/graphql/queries/event.ts
2306
- var EVENT_DATETIME_FIELDS_FRAGMENT = import_client3.gql`
2307
- fragment EventDateTimeFields on EventDateTimeType {
2308
- endDate
2309
- endTime
2310
- startDate
2311
- startTime
2312
- }
2313
- `;
2314
- var EVENT_LOCATION_FIELDS_FRAGMENT = import_client3.gql`
2315
- fragment EventLocationFields on EventLocationType {
2305
+ // src/graphql/queries/relation.ts
2306
+ var import_client4 = require("@apollo/client");
2307
+
2308
+ // src/graphql/queries/vendor.ts
2309
+ var import_client3 = require("@apollo/client");
2310
+ var VENDOR_LOCATION_FIELDS_FRAGMENT = import_client3.gql`
2311
+ fragment VendorLocationFields on VendorLocationType {
2316
2312
  city
2317
2313
  coordinates
2318
2314
  country
@@ -2323,152 +2319,286 @@ var EVENT_LOCATION_FIELDS_FRAGMENT = import_client3.gql`
2323
2319
  type
2324
2320
  }
2325
2321
  `;
2326
- var EVENT_INFO = import_client3.gql`
2327
- fragment EventInfoFields on EventInfoType {
2328
- _id
2329
- applicationDeadlineHours
2330
- dateTime {
2331
- endDate
2332
- endTime
2333
- stallTypes {
2334
- ...StallTypeFields
2335
- }
2336
- startDate
2337
- startTime
2338
- }
2339
- eventId
2340
- packInTime
2341
- paymentDueHours
2342
- paymentInfo {
2343
- accountHolderName
2344
- accountNumber
2345
- link
2346
- paymentMethod
2347
- }
2348
- requirements {
2349
- category
2350
- label
2351
- value
2352
- }
2322
+ var VENDOR_DATETIME_FIELDS_FRAGMENT = import_client3.gql`
2323
+ fragment VendorDateTimeFields on VendorDateTimeType {
2324
+ endDate
2325
+ endTime
2326
+ startDate
2327
+ startTime
2353
2328
  }
2354
- ${STALL_TYPE_FIELDS_FRAGMENT}
2355
2329
  `;
2356
- var EVENT = import_client3.gql`
2357
- fragment EventFields on EventType {
2330
+ var VENDOR_MENU_FIELDS_FRAGMENT = import_client3.gql`
2331
+ fragment VendorMenuFields on VendorMenuType {
2332
+ description
2333
+ name
2334
+ price
2335
+ productGroups
2336
+ }
2337
+ `;
2338
+ var VENDOR = import_client3.gql`
2339
+ fragment VendorFields on VendorType {
2358
2340
  _id
2359
2341
  active
2360
2342
  adIds
2361
- cover {
2362
- ...ResourceImageFields
2343
+ availability {
2344
+ corporate
2345
+ private
2346
+ school
2347
+ }
2348
+ vendorInfoId
2349
+ categories {
2350
+ ...CategoryFields
2363
2351
  }
2364
- createdAt
2365
2352
  contactDetails {
2366
2353
  ...ContactDetailsFields
2367
2354
  }
2368
- dateTime {
2369
- ...EventDateTimeFields
2355
+ cover {
2356
+ ...ResourceImageFields
2370
2357
  }
2358
+ createdAt
2371
2359
  description
2372
2360
  deletedAt
2373
2361
  images {
2374
2362
  ...ResourceImageFields
2375
2363
  }
2376
- eventType
2377
- location {
2378
- ...EventLocationFields
2364
+ locations {
2365
+ dateTime {
2366
+ ...VendorDateTimeFields
2367
+ }
2368
+ description
2369
+ location {
2370
+ ...VendorLocationFields
2371
+ }
2379
2372
  }
2380
2373
  logo {
2381
2374
  ...ResourceImageFields
2382
2375
  }
2383
- eventInfoId
2376
+ multiLocation
2384
2377
  name
2385
- nzbn
2386
2378
  owner {
2387
2379
  ...OwnerFields
2388
2380
  }
2389
2381
  partners {
2390
2382
  ...PartnerFields
2391
2383
  }
2384
+ products {
2385
+ ...VendorMenuFields
2386
+ }
2392
2387
  promoCodes
2393
- provider
2394
2388
  posterUsage {
2395
2389
  ...PosterUsageFields
2396
2390
  }
2397
2391
  region
2398
2392
  relationIds
2393
+ relationDates {
2394
+ ...RelationDates
2395
+ }
2399
2396
  socialMedia {
2400
2397
  ...SocialMediaFields
2401
2398
  }
2402
- rainOrShine
2403
- tags
2404
2399
  termsAgreement {
2405
2400
  ...TermsAgreementFields
2406
2401
  }
2407
2402
  updatedAt
2403
+ vendorType
2408
2404
  }
2409
- ${EVENT_DATETIME_FIELDS_FRAGMENT}
2410
- ${EVENT_LOCATION_FIELDS_FRAGMENT}
2405
+ ${CATEGORY_FIELDS_FRAGMENT}
2406
+ ${VENDOR_DATETIME_FIELDS_FRAGMENT}
2407
+ ${VENDOR_LOCATION_FIELDS_FRAGMENT}
2411
2408
  ${OWNER_FIELDS_FRAGMENT}
2412
2409
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
2413
2410
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
2414
2411
  ${POSTER_USAGE_FIELDS_FRAGMENT}
2415
2412
  ${PARTNER_FIELDS_FRAGMENT}
2413
+ ${VENDOR_MENU_FIELDS_FRAGMENT}
2416
2414
  ${CONTACT_DETAILS_FIELDS_FRAGMENT}
2417
2415
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
2416
+ ${RELATION_DATES_FRAGMENT}
2418
2417
  `;
2419
- var GET_EVENTS = import_client3.gql`
2420
- query getEvents {
2421
- events {
2422
- ...EventFields
2418
+ var VENDOR_ATTRIBUTES_FRAGMENT = import_client3.gql`
2419
+ fragment VendorAttributesFields on VendorAttributesType {
2420
+ details
2421
+ isRequired
2422
+ }
2423
+ `;
2424
+ var VENDOR_INFO = import_client3.gql`
2425
+ fragment VendorInfoFields on VendorInfoType {
2426
+ _id
2427
+ compliance {
2428
+ foodBeverageLicense
2429
+ liabilityInsurance
2430
+ }
2431
+ documents {
2432
+ ...ResourceImageFields
2423
2433
  }
2434
+ requirements {
2435
+ electricity {
2436
+ ...VendorAttributesFields
2437
+ }
2438
+ gazebo {
2439
+ ...VendorAttributesFields
2440
+ }
2441
+ table {
2442
+ ...VendorAttributesFields
2443
+ }
2444
+ }
2445
+ product {
2446
+ foodFlavors
2447
+ packaging
2448
+ priceRange {
2449
+ max
2450
+ min
2451
+ }
2452
+ producedIn
2453
+ }
2454
+ stallInfo {
2455
+ size {
2456
+ depth
2457
+ width
2458
+ }
2459
+ }
2460
+ vendorId
2424
2461
  }
2425
- ${EVENT}
2462
+ ${VENDOR_ATTRIBUTES_FRAGMENT}
2463
+ ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
2426
2464
  `;
2427
- var GET_EVENT = import_client3.gql`
2428
- query getEvent($_id: ID!) {
2429
- event(_id: $_id) {
2430
- ...EventFields
2465
+ var GET_VENDORS = import_client3.gql`
2466
+ query getVendors {
2467
+ vendors {
2468
+ ...VendorFields
2431
2469
  }
2432
2470
  }
2433
- ${EVENT}
2471
+ ${VENDOR}
2434
2472
  `;
2435
- var GET_EVENTS_BY_REGION = import_client3.gql`
2436
- query getEventsByRegion($region: String!) {
2437
- eventsByRegion(region: $region) {
2438
- ...EventFields
2473
+ var GET_VENDOR = import_client3.gql`
2474
+ query getVendor($_id: ID!) {
2475
+ vendor(_id: $_id) {
2476
+ ...VendorFields
2439
2477
  }
2440
2478
  }
2441
- ${EVENT}
2479
+ ${VENDOR}
2442
2480
  `;
2443
- var SEARCH_EVENTS = import_client3.gql`
2444
- query searchEvents($search: String!, $region: String) {
2445
- eventsSearch(search: $search, region: $region) {
2446
- ...EventFields
2481
+ var GET_VENDORS_BY_REGION = import_client3.gql`
2482
+ query getVendorsByRegion($region: String!) {
2483
+ vendorsByRegion(region: $region) {
2484
+ ...VendorFields
2447
2485
  }
2448
2486
  }
2449
- ${EVENT}
2487
+ ${VENDOR}
2450
2488
  `;
2451
- var GET_EVENTS_NEAR_ME = import_client3.gql`
2452
- query getEventsNearMe($latitude: Float!, $longitude: Float!, $radius: Int) {
2453
- eventsNearMe(latitude: $latitude, longitude: $longitude, radius: $radius) {
2454
- ...EventFields
2489
+ var SEARCH_VENDORS = import_client3.gql`
2490
+ query searchVendors($search: String!, $region: String) {
2491
+ vendorSearch(search: $search, region: $region) {
2492
+ ...VendorFields
2455
2493
  }
2456
2494
  }
2457
- ${EVENT}
2495
+ ${VENDOR}
2458
2496
  `;
2459
- var GET_EVENT_INFO = import_client3.gql`
2460
- query getEventInfo($eventId: ID!) {
2461
- eventInfo(eventId: $eventId) {
2462
- ...EventInfoFields
2497
+ var GET_VENDOR_INFO = import_client3.gql`
2498
+ query getVendorInfo($vendorId: ID!) {
2499
+ vendorInfo(vendorId: $vendorId) {
2500
+ ...VendorInfoFields
2463
2501
  }
2464
2502
  }
2465
- ${EVENT_INFO}
2503
+ ${VENDOR_INFO}
2466
2504
  `;
2467
2505
 
2468
- // src/graphql/queries/vendor.ts
2469
- var import_client4 = require("@apollo/client");
2470
- var VENDOR_LOCATION_FIELDS_FRAGMENT = import_client4.gql`
2471
- fragment VendorLocationFields on VendorLocationType {
2506
+ // src/graphql/queries/relation.ts
2507
+ var RELATION_DATES_FRAGMENT = import_client4.gql`
2508
+ fragment RelationDates on RelationDateType {
2509
+ lastUpdateBy {
2510
+ resourceId
2511
+ userEmail
2512
+ }
2513
+ paymentReference
2514
+ stallType {
2515
+ ...StallTypeFields
2516
+ }
2517
+ startDate
2518
+ startTime
2519
+ status
2520
+ }
2521
+ ${STALL_TYPE_FIELDS_FRAGMENT}
2522
+ `;
2523
+ var RELATION_FIELDS_FRAGMENT = import_client4.gql`
2524
+ fragment RelationFields on RelationType {
2525
+ _id
2526
+ active
2527
+ apiMessage
2528
+ chatId
2529
+ createdAt
2530
+ lastUpdateBy
2531
+ eventId
2532
+ relationDates {
2533
+ ...RelationDates
2534
+ }
2535
+ relationType
2536
+ vendorId
2537
+ updatedAt
2538
+ }
2539
+ ${RELATION_DATES_FRAGMENT}
2540
+ `;
2541
+ var GET_RELATION = import_client4.gql`
2542
+ query getRelation($_id: ID!) {
2543
+ relation(_id: $_id) {
2544
+ ...RelationFields
2545
+ }
2546
+ }
2547
+ ${RELATION_FIELDS_FRAGMENT}
2548
+ `;
2549
+ var GET_RELATION_BY_EVENT_AND_VENDOR = import_client4.gql`
2550
+ query getRelationByEventAndVendor($eventId: ID!, $vendorId: ID!) {
2551
+ relationByEventAndVendor(eventId: $eventId, vendorId: $vendorId) {
2552
+ ...RelationFields
2553
+ }
2554
+ }
2555
+ ${RELATION_FIELDS_FRAGMENT}
2556
+ `;
2557
+ var GET_EVENT_RELATIONS = import_client4.gql`
2558
+ query getEventRelations($eventId: ID!) {
2559
+ eventRelations(eventId: $eventId) {
2560
+ ...RelationFields
2561
+ }
2562
+ }
2563
+ ${RELATION_FIELDS_FRAGMENT}
2564
+ `;
2565
+ var GET_VENDOR_RELATIONS = import_client4.gql`
2566
+ query getVendorRelations($vendorId: ID!) {
2567
+ vendorRelations(vendorId: $vendorId) {
2568
+ ...RelationFields
2569
+ }
2570
+ }
2571
+ ${RELATION_FIELDS_FRAGMENT}
2572
+ `;
2573
+ var GET_RESOURCE_CONNECTIONS = import_client4.gql`
2574
+ query getResourceConnections(
2575
+ $resourceId: ID!
2576
+ $resourceType: ResourceTypeEnum!
2577
+ ) {
2578
+ resourceConnections(resourceId: $resourceId, resourceType: $resourceType) {
2579
+ events {
2580
+ ...EventFields
2581
+ }
2582
+ vendors {
2583
+ ...VendorFields
2584
+ }
2585
+ }
2586
+ }
2587
+ ${VENDOR}
2588
+ ${EVENT}
2589
+ `;
2590
+
2591
+ // src/graphql/queries/event.ts
2592
+ var EVENT_DATETIME_FIELDS_FRAGMENT2 = import_client5.gql`
2593
+ fragment EventDateTimeFields on EventDateTimeType {
2594
+ endDate
2595
+ endTime
2596
+ startDate
2597
+ startTime
2598
+ }
2599
+ `;
2600
+ var EVENT_LOCATION_FIELDS_FRAGMENT2 = import_client5.gql`
2601
+ fragment EventLocationFields on EventLocationType {
2472
2602
  city
2473
2603
  coordinates
2474
2604
  country
@@ -2479,189 +2609,155 @@ var VENDOR_LOCATION_FIELDS_FRAGMENT = import_client4.gql`
2479
2609
  type
2480
2610
  }
2481
2611
  `;
2482
- var VENDOR_DATETIME_FIELDS_FRAGMENT = import_client4.gql`
2483
- fragment VendorDateTimeFields on VendorDateTimeType {
2484
- endDate
2485
- endTime
2486
- startDate
2487
- startTime
2488
- }
2489
- `;
2490
- var VENDOR_MENU_FIELDS_FRAGMENT = import_client4.gql`
2491
- fragment VendorMenuFields on VendorMenuType {
2492
- description
2493
- name
2494
- price
2495
- productGroups
2612
+ var EVENT_INFO = import_client5.gql`
2613
+ fragment EventInfoFields on EventInfoType {
2614
+ _id
2615
+ applicationDeadlineHours
2616
+ dateTime {
2617
+ endDate
2618
+ endTime
2619
+ stallTypes {
2620
+ ...StallTypeFields
2621
+ }
2622
+ startDate
2623
+ startTime
2624
+ }
2625
+ eventId
2626
+ packInTime
2627
+ paymentDueHours
2628
+ paymentInfo {
2629
+ accountHolderName
2630
+ accountNumber
2631
+ link
2632
+ paymentMethod
2633
+ }
2634
+ requirements {
2635
+ category
2636
+ label
2637
+ value
2638
+ }
2496
2639
  }
2640
+ ${STALL_TYPE_FIELDS_FRAGMENT}
2497
2641
  `;
2498
- var VENDOR = import_client4.gql`
2499
- fragment VendorFields on VendorType {
2642
+ var EVENT = import_client5.gql`
2643
+ fragment EventFields on EventType {
2500
2644
  _id
2501
2645
  active
2502
2646
  adIds
2503
- availability {
2504
- corporate
2505
- private
2506
- school
2507
- }
2508
- vendorInfoId
2509
- categories {
2510
- ...CategoryFields
2647
+ cover {
2648
+ ...ResourceImageFields
2511
2649
  }
2650
+ createdAt
2512
2651
  contactDetails {
2513
2652
  ...ContactDetailsFields
2514
2653
  }
2515
- cover {
2516
- ...ResourceImageFields
2654
+ dateTime {
2655
+ ...EventDateTimeFields
2517
2656
  }
2518
- createdAt
2519
2657
  description
2520
2658
  deletedAt
2521
2659
  images {
2522
2660
  ...ResourceImageFields
2523
2661
  }
2524
- locations {
2525
- dateTime {
2526
- ...VendorDateTimeFields
2527
- }
2528
- description
2529
- location {
2530
- ...VendorLocationFields
2531
- }
2662
+ eventType
2663
+ location {
2664
+ ...EventLocationFields
2532
2665
  }
2533
2666
  logo {
2534
2667
  ...ResourceImageFields
2535
2668
  }
2536
- multiLocation
2669
+ eventInfoId
2537
2670
  name
2671
+ nzbn
2538
2672
  owner {
2539
2673
  ...OwnerFields
2540
2674
  }
2541
2675
  partners {
2542
2676
  ...PartnerFields
2543
2677
  }
2544
- products {
2545
- ...VendorMenuFields
2546
- }
2547
2678
  promoCodes
2679
+ provider
2548
2680
  posterUsage {
2549
2681
  ...PosterUsageFields
2550
2682
  }
2551
2683
  region
2552
2684
  relationIds
2685
+ relationDates {
2686
+ ...RelationDates
2687
+ }
2553
2688
  socialMedia {
2554
2689
  ...SocialMediaFields
2555
2690
  }
2691
+ rainOrShine
2692
+ tags
2556
2693
  termsAgreement {
2557
2694
  ...TermsAgreementFields
2558
2695
  }
2559
2696
  updatedAt
2560
- vendorType
2561
2697
  }
2562
- ${CATEGORY_FIELDS_FRAGMENT}
2563
- ${VENDOR_DATETIME_FIELDS_FRAGMENT}
2564
- ${VENDOR_LOCATION_FIELDS_FRAGMENT}
2698
+ ${EVENT_DATETIME_FIELDS_FRAGMENT2}
2699
+ ${EVENT_LOCATION_FIELDS_FRAGMENT2}
2565
2700
  ${OWNER_FIELDS_FRAGMENT}
2566
2701
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
2567
2702
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
2568
2703
  ${POSTER_USAGE_FIELDS_FRAGMENT}
2569
2704
  ${PARTNER_FIELDS_FRAGMENT}
2570
- ${VENDOR_MENU_FIELDS_FRAGMENT}
2571
2705
  ${CONTACT_DETAILS_FIELDS_FRAGMENT}
2572
2706
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
2707
+ ${RELATION_DATES_FRAGMENT}
2573
2708
  `;
2574
- var VENDOR_ATTRIBUTES_FRAGMENT = import_client4.gql`
2575
- fragment VendorAttributesFields on VendorAttributesType {
2576
- details
2577
- isRequired
2578
- }
2579
- `;
2580
- var VENDOR_INFO = import_client4.gql`
2581
- fragment VendorInfoFields on VendorInfoType {
2582
- _id
2583
- compliance {
2584
- foodBeverageLicense
2585
- liabilityInsurance
2586
- }
2587
- documents {
2588
- ...ResourceImageFields
2589
- }
2590
- requirements {
2591
- electricity {
2592
- ...VendorAttributesFields
2593
- }
2594
- gazebo {
2595
- ...VendorAttributesFields
2596
- }
2597
- table {
2598
- ...VendorAttributesFields
2599
- }
2600
- }
2601
- product {
2602
- foodFlavors
2603
- packaging
2604
- priceRange {
2605
- max
2606
- min
2607
- }
2608
- producedIn
2609
- }
2610
- stallInfo {
2611
- size {
2612
- depth
2613
- width
2614
- }
2709
+ var GET_EVENTS = import_client5.gql`
2710
+ query getEvents {
2711
+ events {
2712
+ ...EventFields
2615
2713
  }
2616
- vendorId
2617
2714
  }
2618
- ${VENDOR_ATTRIBUTES_FRAGMENT}
2619
- ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
2715
+ ${EVENT}
2620
2716
  `;
2621
- var GET_VENDORS = import_client4.gql`
2622
- query getVendors {
2623
- vendors {
2624
- ...VendorFields
2717
+ var GET_EVENT = import_client5.gql`
2718
+ query getEvent($_id: ID!) {
2719
+ event(_id: $_id) {
2720
+ ...EventFields
2625
2721
  }
2626
2722
  }
2627
- ${VENDOR}
2723
+ ${EVENT}
2628
2724
  `;
2629
- var GET_VENDOR = import_client4.gql`
2630
- query getVendor($_id: ID!) {
2631
- vendor(_id: $_id) {
2632
- ...VendorFields
2725
+ var GET_EVENTS_BY_REGION = import_client5.gql`
2726
+ query getEventsByRegion($region: String!) {
2727
+ eventsByRegion(region: $region) {
2728
+ ...EventFields
2633
2729
  }
2634
2730
  }
2635
- ${VENDOR}
2731
+ ${EVENT}
2636
2732
  `;
2637
- var GET_VENDORS_BY_REGION = import_client4.gql`
2638
- query getVendorsByRegion($region: String!) {
2639
- vendorsByRegion(region: $region) {
2640
- ...VendorFields
2733
+ var SEARCH_EVENTS = import_client5.gql`
2734
+ query searchEvents($search: String!, $region: String) {
2735
+ eventsSearch(search: $search, region: $region) {
2736
+ ...EventFields
2641
2737
  }
2642
2738
  }
2643
- ${VENDOR}
2739
+ ${EVENT}
2644
2740
  `;
2645
- var SEARCH_VENDORS = import_client4.gql`
2646
- query searchVendors($search: String!, $region: String) {
2647
- vendorSearch(search: $search, region: $region) {
2648
- ...VendorFields
2741
+ var GET_EVENTS_NEAR_ME = import_client5.gql`
2742
+ query getEventsNearMe($latitude: Float!, $longitude: Float!, $radius: Int) {
2743
+ eventsNearMe(latitude: $latitude, longitude: $longitude, radius: $radius) {
2744
+ ...EventFields
2649
2745
  }
2650
2746
  }
2651
- ${VENDOR}
2747
+ ${EVENT}
2652
2748
  `;
2653
- var GET_VENDOR_INFO = import_client4.gql`
2654
- query getVendorInfo($vendorId: ID!) {
2655
- vendorInfo(vendorId: $vendorId) {
2656
- ...VendorInfoFields
2749
+ var GET_EVENT_INFO = import_client5.gql`
2750
+ query getEventInfo($eventId: ID!) {
2751
+ eventInfo(eventId: $eventId) {
2752
+ ...EventInfoFields
2657
2753
  }
2658
2754
  }
2659
- ${VENDOR_INFO}
2755
+ ${EVENT_INFO}
2660
2756
  `;
2661
2757
 
2662
2758
  // src/graphql/hooks/admin/hooksMutation.ts
2663
2759
  var useAdminUpdateResourceType = () => {
2664
- const [adminUpdateResourceType, { loading, error }] = (0, import_client5.useMutation)(
2760
+ const [adminUpdateResourceType, { loading, error }] = (0, import_client6.useMutation)(
2665
2761
  ADMIN_UPDATE_RESOURCE_TYPE_MUTATION,
2666
2762
  {
2667
2763
  awaitRefetchQueries: true,
@@ -2688,11 +2784,11 @@ var useAdminUpdateResourceType = () => {
2688
2784
  };
2689
2785
 
2690
2786
  // src/graphql/hooks/auth.ts
2691
- var import_client7 = require("@apollo/client");
2787
+ var import_client8 = require("@apollo/client");
2692
2788
 
2693
2789
  // src/graphql/mutations/auth.ts
2694
- var import_client6 = require("@apollo/client");
2695
- var REGISTER_MUTATION = import_client6.gql`
2790
+ var import_client7 = require("@apollo/client");
2791
+ var REGISTER_MUTATION = import_client7.gql`
2696
2792
  mutation register($input: RegisterInputType!) {
2697
2793
  register(input: $input) {
2698
2794
  message
@@ -2705,7 +2801,7 @@ var REGISTER_MUTATION = import_client6.gql`
2705
2801
  }
2706
2802
  ${USER_FIELDS_FRAGMENT}
2707
2803
  `;
2708
- var LOGIN_MUTATION = import_client6.gql`
2804
+ var LOGIN_MUTATION = import_client7.gql`
2709
2805
  mutation login($input: LoginInputType!) {
2710
2806
  login(input: $input) {
2711
2807
  message
@@ -2718,14 +2814,14 @@ var LOGIN_MUTATION = import_client6.gql`
2718
2814
  }
2719
2815
  ${USER_FIELDS_FRAGMENT}
2720
2816
  `;
2721
- var LOGOUT_MUTATION = import_client6.gql`
2817
+ var LOGOUT_MUTATION = import_client7.gql`
2722
2818
  mutation logout {
2723
2819
  logout {
2724
2820
  message
2725
2821
  }
2726
2822
  }
2727
2823
  `;
2728
- var REFRESH_TOKEN_MUTATION = import_client6.gql`
2824
+ var REFRESH_TOKEN_MUTATION = import_client7.gql`
2729
2825
  mutation refreshToken($input: RefreshTokenInputType!) {
2730
2826
  refreshToken(input: $input) {
2731
2827
  refreshToken
@@ -2733,21 +2829,21 @@ var REFRESH_TOKEN_MUTATION = import_client6.gql`
2733
2829
  }
2734
2830
  }
2735
2831
  `;
2736
- var RESET_PASSWORD_MUTATION = import_client6.gql`
2832
+ var RESET_PASSWORD_MUTATION = import_client7.gql`
2737
2833
  mutation resetPassword($input: ResetPasswordInputType!) {
2738
2834
  resetPassword(input: $input) {
2739
2835
  message
2740
2836
  }
2741
2837
  }
2742
2838
  `;
2743
- var REQUEST_PASSWORD_RESET_MUTATION = import_client6.gql`
2839
+ var REQUEST_PASSWORD_RESET_MUTATION = import_client7.gql`
2744
2840
  mutation requestPasswordReset($input: RequestPasswordResetInputType!) {
2745
2841
  requestPasswordReset(input: $input) {
2746
2842
  message
2747
2843
  }
2748
2844
  }
2749
2845
  `;
2750
- var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client6.gql`
2846
+ var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client7.gql`
2751
2847
  mutation validateVerificationToken(
2752
2848
  $input: ValidateVerificationTokenInputType!
2753
2849
  ) {
@@ -2759,51 +2855,51 @@ var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client6.gql`
2759
2855
 
2760
2856
  // src/graphql/hooks/auth.ts
2761
2857
  var useRegister = () => {
2762
- const [register, { loading, error }] = (0, import_client7.useMutation)(REGISTER_MUTATION);
2858
+ const [register, { loading, error }] = (0, import_client8.useMutation)(REGISTER_MUTATION);
2763
2859
  return { error, loading, register };
2764
2860
  };
2765
2861
  var useLogin = () => {
2766
- const [login, { loading, error }] = (0, import_client7.useMutation)(LOGIN_MUTATION);
2862
+ const [login, { loading, error }] = (0, import_client8.useMutation)(LOGIN_MUTATION);
2767
2863
  return { error, loading, login };
2768
2864
  };
2769
2865
  var useLogout = () => {
2770
- const [logout, { loading, error }] = (0, import_client7.useMutation)(LOGOUT_MUTATION);
2866
+ const [logout, { loading, error }] = (0, import_client8.useMutation)(LOGOUT_MUTATION);
2771
2867
  return { error, loading, logout };
2772
2868
  };
2773
2869
  var useRefreshToken = () => {
2774
- const [refreshToken, { loading, error }] = (0, import_client7.useMutation)(
2870
+ const [refreshToken, { loading, error }] = (0, import_client8.useMutation)(
2775
2871
  REFRESH_TOKEN_MUTATION
2776
2872
  );
2777
2873
  return { error, loading, refreshToken };
2778
2874
  };
2779
2875
  var useRequestPasswordReset = () => {
2780
- const [requestPasswordReset, { loading, error }] = (0, import_client7.useMutation)(
2876
+ const [requestPasswordReset, { loading, error }] = (0, import_client8.useMutation)(
2781
2877
  REQUEST_PASSWORD_RESET_MUTATION
2782
2878
  );
2783
2879
  return { error, loading, requestPasswordReset };
2784
2880
  };
2785
2881
  var useValidateVerificationToken = () => {
2786
- const [validateVerificationToken, { loading, error }] = (0, import_client7.useMutation)(
2882
+ const [validateVerificationToken, { loading, error }] = (0, import_client8.useMutation)(
2787
2883
  VALIDATE_VERIFICATION_TOKEN_MUTATION
2788
2884
  );
2789
2885
  return { error, loading, validateVerificationToken };
2790
2886
  };
2791
2887
  var useResetPassword = () => {
2792
- const [resetPassword, { loading, error }] = (0, import_client7.useMutation)(
2888
+ const [resetPassword, { loading, error }] = (0, import_client8.useMutation)(
2793
2889
  RESET_PASSWORD_MUTATION
2794
2890
  );
2795
2891
  return { error, loading, resetPassword };
2796
2892
  };
2797
2893
 
2798
2894
  // src/graphql/hooks/chat/hooksMutation.ts
2799
- var import_client10 = require("@apollo/client");
2895
+ var import_client11 = require("@apollo/client");
2800
2896
 
2801
2897
  // src/graphql/mutations/chat.ts
2802
- var import_client9 = require("@apollo/client");
2898
+ var import_client10 = require("@apollo/client");
2803
2899
 
2804
2900
  // src/graphql/queries/chat.ts
2805
- var import_client8 = require("@apollo/client");
2806
- var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client8.gql`
2901
+ var import_client9 = require("@apollo/client");
2902
+ var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client9.gql`
2807
2903
  fragment ChatMessageFields on ChatMessageType {
2808
2904
  _id
2809
2905
  content
@@ -2814,14 +2910,14 @@ var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client8.gql`
2814
2910
  updatedAt
2815
2911
  }
2816
2912
  `;
2817
- var CHAT_PARTICIPANT = import_client8.gql`
2913
+ var CHAT_PARTICIPANT = import_client9.gql`
2818
2914
  fragment ChatParticipantFields on ChatParticipantType {
2819
2915
  active
2820
2916
  email
2821
2917
  userId
2822
2918
  }
2823
2919
  `;
2824
- var CHAT_FIELDS_FRAGMENT = import_client8.gql`
2920
+ var CHAT_FIELDS_FRAGMENT = import_client9.gql`
2825
2921
  fragment ChatFields on ChatType {
2826
2922
  _id
2827
2923
  active
@@ -2844,7 +2940,7 @@ var CHAT_FIELDS_FRAGMENT = import_client8.gql`
2844
2940
  ${CHAT_MESSAGE_FIELDS_FRAGMENT}
2845
2941
  ${CHAT_PARTICIPANT}
2846
2942
  `;
2847
- var CHAT = import_client8.gql`
2943
+ var CHAT = import_client9.gql`
2848
2944
  query chat($_id: ID!) {
2849
2945
  chat(_id: $_id) {
2850
2946
  ...ChatFields
@@ -2852,7 +2948,7 @@ var CHAT = import_client8.gql`
2852
2948
  }
2853
2949
  ${CHAT_FIELDS_FRAGMENT}
2854
2950
  `;
2855
- var USER_CHATS = import_client8.gql`
2951
+ var USER_CHATS = import_client9.gql`
2856
2952
  query userChats {
2857
2953
  userChats {
2858
2954
  ...ChatFields
@@ -2862,7 +2958,7 @@ var USER_CHATS = import_client8.gql`
2862
2958
  `;
2863
2959
 
2864
2960
  // src/graphql/mutations/chat.ts
2865
- var SEND_CHAT_MESSAGE_MUTATION = import_client9.gql`
2961
+ var SEND_CHAT_MESSAGE_MUTATION = import_client10.gql`
2866
2962
  mutation sendChatMessage($_id: ID!, $input: ChatMessageInputType!) {
2867
2963
  sendChatMessage(_id: $_id, input: $input) {
2868
2964
  ...ChatFields
@@ -2870,12 +2966,12 @@ var SEND_CHAT_MESSAGE_MUTATION = import_client9.gql`
2870
2966
  }
2871
2967
  ${CHAT_FIELDS_FRAGMENT}
2872
2968
  `;
2873
- var DELETE_CHAT_MUTATION = import_client9.gql`
2969
+ var DELETE_CHAT_MUTATION = import_client10.gql`
2874
2970
  mutation deleteChat($_id: ID!) {
2875
2971
  deleteChat(_id: $_id)
2876
2972
  }
2877
2973
  `;
2878
- var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client9.gql`
2974
+ var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client10.gql`
2879
2975
  mutation addParticipantToChat($chatId: ID!, $userId: ID!) {
2880
2976
  addParticipantToChat(chatId: $chatId, userId: $userId) {
2881
2977
  ...ChatFields
@@ -2883,7 +2979,7 @@ var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client9.gql`
2883
2979
  }
2884
2980
  ${CHAT_FIELDS_FRAGMENT}
2885
2981
  `;
2886
- var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client9.gql`
2982
+ var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client10.gql`
2887
2983
  mutation removeParticipantFromChat($chatId: ID!, $userId: ID!) {
2888
2984
  removeParticipantFromChat(chatId: $chatId, userId: $userId) {
2889
2985
  ...ChatFields
@@ -2894,7 +2990,7 @@ var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client9.gql`
2894
2990
 
2895
2991
  // src/graphql/hooks/chat/hooksMutation.ts
2896
2992
  var useSendChatMessage = () => {
2897
- const [sendChatMessage, { loading, error }] = (0, import_client10.useMutation)(
2993
+ const [sendChatMessage, { loading, error }] = (0, import_client11.useMutation)(
2898
2994
  SEND_CHAT_MESSAGE_MUTATION,
2899
2995
  {
2900
2996
  awaitRefetchQueries: true,
@@ -2912,14 +3008,14 @@ var useSendChatMessage = () => {
2912
3008
  return { error, loading, sendChatMessage };
2913
3009
  };
2914
3010
  var useDeleteChat = () => {
2915
- const [deleteChat, { loading, error }] = (0, import_client10.useMutation)(DELETE_CHAT_MUTATION, {
3011
+ const [deleteChat, { loading, error }] = (0, import_client11.useMutation)(DELETE_CHAT_MUTATION, {
2916
3012
  awaitRefetchQueries: true,
2917
3013
  refetchQueries: [{ query: USER_CHATS }]
2918
3014
  });
2919
3015
  return { deleteChat, error, loading };
2920
3016
  };
2921
3017
  var useAddParticipantToChat = () => {
2922
- const [addParticipantToChat, { loading, error }] = (0, import_client10.useMutation)(
3018
+ const [addParticipantToChat, { loading, error }] = (0, import_client11.useMutation)(
2923
3019
  ADD_PARTICIPANT_TO_CHAT_MUTATION,
2924
3020
  {
2925
3021
  awaitRefetchQueries: true,
@@ -2940,7 +3036,7 @@ var useAddParticipantToChat = () => {
2940
3036
  return { addParticipantToChat, error, loading };
2941
3037
  };
2942
3038
  var useRemoveParticipantFromChat = () => {
2943
- const [removeParticipantFromChat, { loading, error }] = (0, import_client10.useMutation)(
3039
+ const [removeParticipantFromChat, { loading, error }] = (0, import_client11.useMutation)(
2944
3040
  REMOVE_PARTICIPANT_FROM_CHAT_MUTATION,
2945
3041
  {
2946
3042
  awaitRefetchQueries: true,
@@ -2962,11 +3058,11 @@ var useRemoveParticipantFromChat = () => {
2962
3058
  };
2963
3059
 
2964
3060
  // src/graphql/hooks/chat/hooksQuery.ts
2965
- var import_client12 = require("@apollo/client");
3061
+ var import_client13 = require("@apollo/client");
2966
3062
 
2967
3063
  // src/graphql/subscriptions/chat.ts
2968
- var import_client11 = require("@apollo/client");
2969
- var GET_CHAT_MESSAGE = import_client11.gql`
3064
+ var import_client12 = require("@apollo/client");
3065
+ var GET_CHAT_MESSAGE = import_client12.gql`
2970
3066
  subscription {
2971
3067
  getChatMessage {
2972
3068
  ...ChatFields
@@ -2977,7 +3073,7 @@ var GET_CHAT_MESSAGE = import_client11.gql`
2977
3073
 
2978
3074
  // src/graphql/hooks/chat/hooksQuery.ts
2979
3075
  var useGetChat = (_id) => {
2980
- const { loading, error, data, refetch } = (0, import_client12.useQuery)(CHAT, {
3076
+ const { loading, error, data, refetch } = (0, import_client13.useQuery)(CHAT, {
2981
3077
  fetchPolicy: "network-only",
2982
3078
  skip: !_id,
2983
3079
  variables: { _id }
@@ -2986,24 +3082,24 @@ var useGetChat = (_id) => {
2986
3082
  return { chat, error, loading, refetch };
2987
3083
  };
2988
3084
  var useGetUserChats = () => {
2989
- const { loading, error, data, refetch } = (0, import_client12.useQuery)(USER_CHATS, {
3085
+ const { loading, error, data, refetch } = (0, import_client13.useQuery)(USER_CHATS, {
2990
3086
  fetchPolicy: "network-only"
2991
3087
  });
2992
3088
  const userChats = data?.userChats;
2993
3089
  return { error, loading, refetch, userChats };
2994
3090
  };
2995
3091
  var useGetChatSubscription = () => {
2996
- const { data, loading, error } = (0, import_client12.useSubscription)(GET_CHAT_MESSAGE);
3092
+ const { data, loading, error } = (0, import_client13.useSubscription)(GET_CHAT_MESSAGE);
2997
3093
  const chat = data?.getChat;
2998
3094
  return { chat, error, loading };
2999
3095
  };
3000
3096
 
3001
3097
  // src/graphql/hooks/contactUs.ts
3002
- var import_client14 = require("@apollo/client");
3098
+ var import_client15 = require("@apollo/client");
3003
3099
 
3004
3100
  // src/graphql/mutations/contactUs.ts
3005
- var import_client13 = require("@apollo/client");
3006
- var CONTACT_US_MUTATION = import_client13.gql`
3101
+ var import_client14 = require("@apollo/client");
3102
+ var CONTACT_US_MUTATION = import_client14.gql`
3007
3103
  mutation contactUs($input: ContactUsInputType!) {
3008
3104
  contactUs(input: $input) {
3009
3105
  message
@@ -3013,16 +3109,16 @@ var CONTACT_US_MUTATION = import_client13.gql`
3013
3109
 
3014
3110
  // src/graphql/hooks/contactUs.ts
3015
3111
  var useContactUs = () => {
3016
- const [contactUs, { loading, error }] = (0, import_client14.useMutation)(CONTACT_US_MUTATION);
3112
+ const [contactUs, { loading, error }] = (0, import_client15.useMutation)(CONTACT_US_MUTATION);
3017
3113
  return { contactUs, error, loading };
3018
3114
  };
3019
3115
 
3020
3116
  // src/graphql/hooks/event/hooksMutation.ts
3021
- var import_client17 = require("@apollo/client");
3117
+ var import_client18 = require("@apollo/client");
3022
3118
 
3023
3119
  // src/graphql/mutations/event.ts
3024
- var import_client15 = require("@apollo/client");
3025
- var CREATE_EVENT_MUTATION = import_client15.gql`
3120
+ var import_client16 = require("@apollo/client");
3121
+ var CREATE_EVENT_MUTATION = import_client16.gql`
3026
3122
  mutation createEvent($input: EventInputType!) {
3027
3123
  createEvent(input: $input) {
3028
3124
  ...EventFields
@@ -3030,7 +3126,7 @@ var CREATE_EVENT_MUTATION = import_client15.gql`
3030
3126
  }
3031
3127
  ${EVENT}
3032
3128
  `;
3033
- var UPDATE_EVENT_MUTATION = import_client15.gql`
3129
+ var UPDATE_EVENT_MUTATION = import_client16.gql`
3034
3130
  mutation updateEvent($_id: ID!, $input: EventInputType!) {
3035
3131
  updateEvent(_id: $_id, input: $input) {
3036
3132
  ...EventFields
@@ -3038,12 +3134,12 @@ var UPDATE_EVENT_MUTATION = import_client15.gql`
3038
3134
  }
3039
3135
  ${EVENT}
3040
3136
  `;
3041
- var DELETE_EVENT_MUTATION = import_client15.gql`
3137
+ var DELETE_EVENT_MUTATION = import_client16.gql`
3042
3138
  mutation deleteEvent($_id: ID!) {
3043
3139
  deleteEvent(_id: $_id)
3044
3140
  }
3045
3141
  `;
3046
- var CREATE_EVENT_INFO_MUTATION = import_client15.gql`
3142
+ var CREATE_EVENT_INFO_MUTATION = import_client16.gql`
3047
3143
  mutation createEventInfo($input: EventInfoInputType!) {
3048
3144
  createEventInfo(input: $input) {
3049
3145
  ...EventInfoFields
@@ -3051,7 +3147,7 @@ var CREATE_EVENT_INFO_MUTATION = import_client15.gql`
3051
3147
  }
3052
3148
  ${EVENT_INFO}
3053
3149
  `;
3054
- var UPDATE_EVENT_INFO_MUTATION = import_client15.gql`
3150
+ var UPDATE_EVENT_INFO_MUTATION = import_client16.gql`
3055
3151
  mutation updateEventInfo($_id: ID!, $input: EventInfoInputType!) {
3056
3152
  updateEventInfo(_id: $_id, input: $input) {
3057
3153
  ...EventInfoFields
@@ -3061,8 +3157,8 @@ var UPDATE_EVENT_INFO_MUTATION = import_client15.gql`
3061
3157
  `;
3062
3158
 
3063
3159
  // src/graphql/queries/user.ts
3064
- var import_client16 = require("@apollo/client");
3065
- var GET_USERS = import_client16.gql`
3160
+ var import_client17 = require("@apollo/client");
3161
+ var GET_USERS = import_client17.gql`
3066
3162
  query getUsers {
3067
3163
  users {
3068
3164
  ...UserFields
@@ -3070,7 +3166,7 @@ var GET_USERS = import_client16.gql`
3070
3166
  }
3071
3167
  ${USER_FIELDS_FRAGMENT}
3072
3168
  `;
3073
- var GET_USER = import_client16.gql`
3169
+ var GET_USER = import_client17.gql`
3074
3170
  query getUser($_id: ID!) {
3075
3171
  user(_id: $_id) {
3076
3172
  ...UserFields
@@ -3078,7 +3174,7 @@ var GET_USER = import_client16.gql`
3078
3174
  }
3079
3175
  ${USER_FIELDS_FRAGMENT}
3080
3176
  `;
3081
- var GET_USER_EVENTS = import_client16.gql`
3177
+ var GET_USER_EVENTS = import_client17.gql`
3082
3178
  query getUserEvents {
3083
3179
  userEvents {
3084
3180
  ...EventFields
@@ -3086,7 +3182,7 @@ var GET_USER_EVENTS = import_client16.gql`
3086
3182
  }
3087
3183
  ${EVENT}
3088
3184
  `;
3089
- var GET_USER_VENDORS = import_client16.gql`
3185
+ var GET_USER_VENDORS = import_client17.gql`
3090
3186
  query getUserVendors {
3091
3187
  userVendors {
3092
3188
  ...VendorFields
@@ -3094,7 +3190,7 @@ var GET_USER_VENDORS = import_client16.gql`
3094
3190
  }
3095
3191
  ${VENDOR}
3096
3192
  `;
3097
- var GET_USER_FAVOURITES = import_client16.gql`
3193
+ var GET_USER_FAVOURITES = import_client17.gql`
3098
3194
  query getUserFavourites {
3099
3195
  userFavourites {
3100
3196
  events {
@@ -3111,28 +3207,28 @@ var GET_USER_FAVOURITES = import_client16.gql`
3111
3207
 
3112
3208
  // src/graphql/hooks/event/hooksMutation.ts
3113
3209
  var useCreateEvent = () => {
3114
- const [createEvent, { loading, error }] = (0, import_client17.useMutation)(CREATE_EVENT_MUTATION, {
3210
+ const [createEvent, { loading, error }] = (0, import_client18.useMutation)(CREATE_EVENT_MUTATION, {
3115
3211
  awaitRefetchQueries: true,
3116
3212
  refetchQueries: [{ fetchPolicy: "no-cache", query: GET_USER_EVENTS }]
3117
3213
  });
3118
3214
  return { createEvent, error, loading };
3119
3215
  };
3120
3216
  var useUpdateEvent = () => {
3121
- const [updateEvent, { loading, error }] = (0, import_client17.useMutation)(UPDATE_EVENT_MUTATION, {
3217
+ const [updateEvent, { loading, error }] = (0, import_client18.useMutation)(UPDATE_EVENT_MUTATION, {
3122
3218
  awaitRefetchQueries: true,
3123
3219
  refetchQueries: [{ fetchPolicy: "no-cache", query: GET_USER_EVENTS }]
3124
3220
  });
3125
3221
  return { error, loading, updateEvent };
3126
3222
  };
3127
3223
  var useDeleteEvent = () => {
3128
- const [deleteEvent, { loading, error }] = (0, import_client17.useMutation)(DELETE_EVENT_MUTATION, {
3224
+ const [deleteEvent, { loading, error }] = (0, import_client18.useMutation)(DELETE_EVENT_MUTATION, {
3129
3225
  awaitRefetchQueries: true,
3130
3226
  refetchQueries: [{ fetchPolicy: "no-cache", query: GET_USER_EVENTS }]
3131
3227
  });
3132
3228
  return { deleteEvent, error, loading };
3133
3229
  };
3134
3230
  var useCreateEventInfo = () => {
3135
- const [createEventInfo, { loading, error }] = (0, import_client17.useMutation)(
3231
+ const [createEventInfo, { loading, error }] = (0, import_client18.useMutation)(
3136
3232
  CREATE_EVENT_INFO_MUTATION,
3137
3233
  {
3138
3234
  awaitRefetchQueries: true,
@@ -3161,7 +3257,7 @@ var useCreateEventInfo = () => {
3161
3257
  return { createEventInfo, error, loading };
3162
3258
  };
3163
3259
  var useUpdateEventInfo = () => {
3164
- const [updateEventInfo, { loading, error }] = (0, import_client17.useMutation)(
3260
+ const [updateEventInfo, { loading, error }] = (0, import_client18.useMutation)(
3165
3261
  UPDATE_EVENT_INFO_MUTATION,
3166
3262
  {
3167
3263
  awaitRefetchQueries: true,
@@ -3187,16 +3283,16 @@ var useUpdateEventInfo = () => {
3187
3283
  };
3188
3284
 
3189
3285
  // src/graphql/hooks/event/hooksQuery.ts
3190
- var import_client18 = require("@apollo/client");
3286
+ var import_client19 = require("@apollo/client");
3191
3287
  var useGetEvents = () => {
3192
- const { loading, error, data, refetch } = (0, import_client18.useQuery)(GET_EVENTS, {
3288
+ const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_EVENTS, {
3193
3289
  fetchPolicy: "network-only"
3194
3290
  });
3195
3291
  const events = data?.events;
3196
3292
  return { error, events, loading, refetch };
3197
3293
  };
3198
3294
  var useGetEvent = (_id) => {
3199
- const { loading, error, data, refetch } = (0, import_client18.useQuery)(GET_EVENT, {
3295
+ const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_EVENT, {
3200
3296
  fetchPolicy: "network-only",
3201
3297
  skip: !_id,
3202
3298
  variables: { _id }
@@ -3205,7 +3301,7 @@ var useGetEvent = (_id) => {
3205
3301
  return { error, event, loading, refetch };
3206
3302
  };
3207
3303
  var useGetEventsByRegion = (region) => {
3208
- const { loading, error, data, refetch } = (0, import_client18.useQuery)(GET_EVENTS_BY_REGION, {
3304
+ const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_EVENTS_BY_REGION, {
3209
3305
  fetchPolicy: "no-cache",
3210
3306
  skip: !region,
3211
3307
  variables: { region }
@@ -3214,7 +3310,7 @@ var useGetEventsByRegion = (region) => {
3214
3310
  return { error, eventsByRegion, loading, refetch };
3215
3311
  };
3216
3312
  var useSearchEvents = (search, region) => {
3217
- const { loading, error, data, refetch } = (0, import_client18.useQuery)(SEARCH_EVENTS, {
3313
+ const { loading, error, data, refetch } = (0, import_client19.useQuery)(SEARCH_EVENTS, {
3218
3314
  fetchPolicy: "network-only",
3219
3315
  skip: search.length < 3,
3220
3316
  variables: { region, search }
@@ -3223,7 +3319,7 @@ var useSearchEvents = (search, region) => {
3223
3319
  return { error, eventsSearch, loading, refetch };
3224
3320
  };
3225
3321
  var useGetEventsNearMe = (location) => {
3226
- const { loading, error, data, refetch } = (0, import_client18.useQuery)(GET_EVENTS_NEAR_ME, {
3322
+ const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_EVENTS_NEAR_ME, {
3227
3323
  fetchPolicy: "network-only",
3228
3324
  skip: !location.latitude || !location.longitude,
3229
3325
  variables: {
@@ -3237,7 +3333,7 @@ var useGetEventsNearMe = (location) => {
3237
3333
  return { error, eventsNearMe, loading, refetch };
3238
3334
  };
3239
3335
  var useGetEventInfo = (eventId) => {
3240
- const { loading, error, data, refetch } = (0, import_client18.useQuery)(GET_EVENT_INFO, {
3336
+ const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_EVENT_INFO, {
3241
3337
  fetchPolicy: "network-only",
3242
3338
  skip: !eventId,
3243
3339
  variables: { eventId }
@@ -3247,14 +3343,14 @@ var useGetEventInfo = (eventId) => {
3247
3343
  };
3248
3344
 
3249
3345
  // src/graphql/hooks/notifications/hooksMutation.ts
3250
- var import_client21 = require("@apollo/client");
3346
+ var import_client22 = require("@apollo/client");
3251
3347
 
3252
3348
  // src/graphql/mutations/notification.ts
3253
- var import_client20 = require("@apollo/client");
3349
+ var import_client21 = require("@apollo/client");
3254
3350
 
3255
3351
  // src/graphql/queries/notification.ts
3256
- var import_client19 = require("@apollo/client");
3257
- var NOTIFICATION_FRAGMENT = import_client19.gql`
3352
+ var import_client20 = require("@apollo/client");
3353
+ var NOTIFICATION_FRAGMENT = import_client20.gql`
3258
3354
  fragment NotificationFields on Notification {
3259
3355
  _id
3260
3356
  userId
@@ -3271,7 +3367,7 @@ var NOTIFICATION_FRAGMENT = import_client19.gql`
3271
3367
  updatedAt
3272
3368
  }
3273
3369
  `;
3274
- var GET_USER_NOTIFICATIONS = import_client19.gql`
3370
+ var GET_USER_NOTIFICATIONS = import_client20.gql`
3275
3371
  query getUserNotifications($limit: Int, $offset: Int) {
3276
3372
  userNotifications(limit: $limit, offset: $offset) {
3277
3373
  ...NotificationFields
@@ -3279,7 +3375,7 @@ var GET_USER_NOTIFICATIONS = import_client19.gql`
3279
3375
  }
3280
3376
  ${NOTIFICATION_FRAGMENT}
3281
3377
  `;
3282
- var GET_NOTIFICATION_COUNT = import_client19.gql`
3378
+ var GET_NOTIFICATION_COUNT = import_client20.gql`
3283
3379
  query getNotificationCount {
3284
3380
  notificationCount {
3285
3381
  total
@@ -3289,7 +3385,7 @@ var GET_NOTIFICATION_COUNT = import_client19.gql`
3289
3385
  `;
3290
3386
 
3291
3387
  // src/graphql/mutations/notification.ts
3292
- var CREATE_BULK_NOTIFICATIONS = import_client20.gql`
3388
+ var CREATE_BULK_NOTIFICATIONS = import_client21.gql`
3293
3389
  mutation createBulkNotifications($input: CreateBulkNotificationInput!) {
3294
3390
  createBulkNotifications(input: $input) {
3295
3391
  ...NotificationFields
@@ -3297,7 +3393,7 @@ var CREATE_BULK_NOTIFICATIONS = import_client20.gql`
3297
3393
  }
3298
3394
  ${NOTIFICATION_FRAGMENT}
3299
3395
  `;
3300
- var MARK_NOTIFICATION_READ = import_client20.gql`
3396
+ var MARK_NOTIFICATION_READ = import_client21.gql`
3301
3397
  mutation markNotificationRead($_id: ID!) {
3302
3398
  markNotificationRead(_id: $_id) {
3303
3399
  ...NotificationFields
@@ -3305,17 +3401,17 @@ var MARK_NOTIFICATION_READ = import_client20.gql`
3305
3401
  }
3306
3402
  ${NOTIFICATION_FRAGMENT}
3307
3403
  `;
3308
- var MARK_ALL_NOTIFICATIONS_READ = import_client20.gql`
3404
+ var MARK_ALL_NOTIFICATIONS_READ = import_client21.gql`
3309
3405
  mutation markAllNotificationsRead {
3310
3406
  markAllNotificationsRead
3311
3407
  }
3312
3408
  `;
3313
- var DELETE_NOTIFICATION = import_client20.gql`
3409
+ var DELETE_NOTIFICATION = import_client21.gql`
3314
3410
  mutation deleteNotification($_id: ID!) {
3315
3411
  deleteNotification(_id: $_id)
3316
3412
  }
3317
3413
  `;
3318
- var DELETE_ALL_NOTIFICATIONS = import_client20.gql`
3414
+ var DELETE_ALL_NOTIFICATIONS = import_client21.gql`
3319
3415
  mutation deleteAllNotifications {
3320
3416
  deleteAllNotifications
3321
3417
  }
@@ -3323,13 +3419,13 @@ var DELETE_ALL_NOTIFICATIONS = import_client20.gql`
3323
3419
 
3324
3420
  // src/graphql/hooks/notifications/hooksMutation.ts
3325
3421
  var useCreateBulkNotifications = () => {
3326
- const [createBulkNotifications, { loading, error }] = (0, import_client21.useMutation)(
3422
+ const [createBulkNotifications, { loading, error }] = (0, import_client22.useMutation)(
3327
3423
  CREATE_BULK_NOTIFICATIONS
3328
3424
  );
3329
3425
  return { createBulkNotifications, error, loading };
3330
3426
  };
3331
3427
  var useMarkNotificationRead = () => {
3332
- const [markNotificationRead, { loading, error }] = (0, import_client21.useMutation)(
3428
+ const [markNotificationRead, { loading, error }] = (0, import_client22.useMutation)(
3333
3429
  MARK_NOTIFICATION_READ,
3334
3430
  {
3335
3431
  fetchPolicy: "no-cache",
@@ -3346,7 +3442,7 @@ var useMarkNotificationRead = () => {
3346
3442
  return { error, loading, markNotificationRead };
3347
3443
  };
3348
3444
  var useMarkAllNotificationsRead = () => {
3349
- const [markAllNotificationsRead, { loading, error }] = (0, import_client21.useMutation)(
3445
+ const [markAllNotificationsRead, { loading, error }] = (0, import_client22.useMutation)(
3350
3446
  MARK_ALL_NOTIFICATIONS_READ,
3351
3447
  {
3352
3448
  fetchPolicy: "no-cache",
@@ -3363,7 +3459,7 @@ var useMarkAllNotificationsRead = () => {
3363
3459
  return { error, loading, markAllNotificationsRead };
3364
3460
  };
3365
3461
  var useDeleteNotification = () => {
3366
- const [deleteNotification, { loading, error }] = (0, import_client21.useMutation)(
3462
+ const [deleteNotification, { loading, error }] = (0, import_client22.useMutation)(
3367
3463
  DELETE_NOTIFICATION,
3368
3464
  {
3369
3465
  fetchPolicy: "no-cache",
@@ -3380,7 +3476,7 @@ var useDeleteNotification = () => {
3380
3476
  return { deleteNotification, error, loading };
3381
3477
  };
3382
3478
  var useDeleteAllNotifications = () => {
3383
- const [deleteAllNotifications, { loading, error }] = (0, import_client21.useMutation)(
3479
+ const [deleteAllNotifications, { loading, error }] = (0, import_client22.useMutation)(
3384
3480
  DELETE_ALL_NOTIFICATIONS,
3385
3481
  {
3386
3482
  fetchPolicy: "no-cache",
@@ -3398,9 +3494,9 @@ var useDeleteAllNotifications = () => {
3398
3494
  };
3399
3495
 
3400
3496
  // src/graphql/hooks/notifications/hooksQuery.ts
3401
- var import_client22 = require("@apollo/client");
3497
+ var import_client23 = require("@apollo/client");
3402
3498
  var useGetUserNotifications = (limit, offset) => {
3403
- const { data, loading, error, refetch } = (0, import_client22.useQuery)(GET_USER_NOTIFICATIONS, {
3499
+ const { data, loading, error, refetch } = (0, import_client23.useQuery)(GET_USER_NOTIFICATIONS, {
3404
3500
  fetchPolicy: "no-cache",
3405
3501
  variables: { limit, offset }
3406
3502
  });
@@ -3412,7 +3508,7 @@ var useGetUserNotifications = (limit, offset) => {
3412
3508
  };
3413
3509
  };
3414
3510
  var useGetNotificationCount = () => {
3415
- const { data, loading, error, refetch } = (0, import_client22.useQuery)(GET_NOTIFICATION_COUNT, {
3511
+ const { data, loading, error, refetch } = (0, import_client23.useQuery)(GET_NOTIFICATION_COUNT, {
3416
3512
  fetchPolicy: "no-cache"
3417
3513
  });
3418
3514
  return {
@@ -3424,11 +3520,11 @@ var useGetNotificationCount = () => {
3424
3520
  };
3425
3521
 
3426
3522
  // src/graphql/hooks/notifications/hooksSubscription.ts
3427
- var import_client24 = require("@apollo/client");
3523
+ var import_client25 = require("@apollo/client");
3428
3524
 
3429
3525
  // src/graphql/subscriptions/notification.ts
3430
- var import_client23 = require("@apollo/client");
3431
- var GET_NOTIFICATIONS_SUBSCRIPTION = import_client23.gql`
3526
+ var import_client24 = require("@apollo/client");
3527
+ var GET_NOTIFICATIONS_SUBSCRIPTION = import_client24.gql`
3432
3528
  subscription {
3433
3529
  getUserNotifications {
3434
3530
  ...NotificationFields
@@ -3436,7 +3532,7 @@ var GET_NOTIFICATIONS_SUBSCRIPTION = import_client23.gql`
3436
3532
  }
3437
3533
  ${NOTIFICATION_FRAGMENT}
3438
3534
  `;
3439
- var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client23.gql`
3535
+ var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client24.gql`
3440
3536
  subscription {
3441
3537
  getNotificationCount {
3442
3538
  total
@@ -3447,7 +3543,7 @@ var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client23.gql`
3447
3543
 
3448
3544
  // src/graphql/hooks/notifications/hooksSubscription.ts
3449
3545
  var useGetUserNotificationsSubscription = () => {
3450
- const { data, loading, error } = (0, import_client24.useSubscription)(GET_NOTIFICATIONS_SUBSCRIPTION, {
3546
+ const { data, loading, error } = (0, import_client25.useSubscription)(GET_NOTIFICATIONS_SUBSCRIPTION, {
3451
3547
  fetchPolicy: "no-cache",
3452
3548
  shouldResubscribe: true
3453
3549
  });
@@ -3458,7 +3554,7 @@ var useGetUserNotificationsSubscription = () => {
3458
3554
  };
3459
3555
  };
3460
3556
  var useGetNotificationCountSubscription = () => {
3461
- const { data, loading, error } = (0, import_client24.useSubscription)(GET_NOTIFICATION_COUNT_SUBSCRIPTION, {
3557
+ const { data, loading, error } = (0, import_client25.useSubscription)(GET_NOTIFICATION_COUNT_SUBSCRIPTION, {
3462
3558
  fetchPolicy: "no-cache",
3463
3559
  shouldResubscribe: true
3464
3560
  });
@@ -3470,11 +3566,11 @@ var useGetNotificationCountSubscription = () => {
3470
3566
  };
3471
3567
 
3472
3568
  // src/graphql/hooks/poster.ts
3473
- var import_client26 = require("@apollo/client");
3569
+ var import_client27 = require("@apollo/client");
3474
3570
 
3475
3571
  // src/graphql/mutations/poster.ts
3476
- var import_client25 = require("@apollo/client");
3477
- var CREATE_POSTER_MUTATION = import_client25.gql`
3572
+ var import_client26 = require("@apollo/client");
3573
+ var CREATE_POSTER_MUTATION = import_client26.gql`
3478
3574
  mutation createPoster($input: PosterInputType!) {
3479
3575
  createPoster(input: $input) {
3480
3576
  message
@@ -3488,7 +3584,7 @@ var CREATE_POSTER_MUTATION = import_client25.gql`
3488
3584
 
3489
3585
  // src/graphql/hooks/poster.ts
3490
3586
  var useCreatePoster = () => {
3491
- const [createPoster, { loading, error }] = (0, import_client26.useMutation)(
3587
+ const [createPoster, { loading, error }] = (0, import_client27.useMutation)(
3492
3588
  CREATE_POSTER_MUTATION,
3493
3589
  {
3494
3590
  fetchPolicy: "no-cache",
@@ -3499,11 +3595,11 @@ var useCreatePoster = () => {
3499
3595
  };
3500
3596
 
3501
3597
  // src/graphql/hooks/pushToken.ts
3502
- var import_client28 = require("@apollo/client");
3598
+ var import_client29 = require("@apollo/client");
3503
3599
 
3504
3600
  // src/graphql/mutations/pushToken.ts
3505
- var import_client27 = require("@apollo/client");
3506
- var CREATE_PUSH_TOKEN_MUTATION = import_client27.gql`
3601
+ var import_client28 = require("@apollo/client");
3602
+ var CREATE_PUSH_TOKEN_MUTATION = import_client28.gql`
3507
3603
  mutation createPushToken($input: PushTokenInput!) {
3508
3604
  createPushToken(input: $input) {
3509
3605
  success
@@ -3513,7 +3609,7 @@ var CREATE_PUSH_TOKEN_MUTATION = import_client27.gql`
3513
3609
 
3514
3610
  // src/graphql/hooks/pushToken.ts
3515
3611
  var useCreatePushToken = () => {
3516
- const [createPushToken, { loading, error }] = (0, import_client28.useMutation)(
3612
+ const [createPushToken, { loading, error }] = (0, import_client29.useMutation)(
3517
3613
  CREATE_PUSH_TOKEN_MUTATION
3518
3614
  );
3519
3615
  return { createPushToken, error, loading };
@@ -3524,221 +3620,6 @@ var import_client31 = require("@apollo/client");
3524
3620
 
3525
3621
  // src/graphql/mutations/relation.ts
3526
3622
  var import_client30 = require("@apollo/client");
3527
-
3528
- // src/graphql/queries/relation.ts
3529
- var import_client29 = require("@apollo/client");
3530
- var RELATION_DATES_FRAGMENT = import_client29.gql`
3531
- fragment RelationDates on RelationDateType {
3532
- lastUpdateBy {
3533
- resourceId
3534
- userEmail
3535
- }
3536
- paymentReference
3537
- stallType {
3538
- ...StallTypeFields
3539
- }
3540
- startDate
3541
- startTime
3542
- status
3543
- }
3544
- ${STALL_TYPE_FIELDS_FRAGMENT}
3545
- `;
3546
- var RELATION_FIELDS_FRAGMENT = import_client29.gql`
3547
- fragment RelationFields on RelationType {
3548
- _id
3549
- active
3550
- apiMessage
3551
- chatId
3552
- createdAt
3553
- lastUpdateBy
3554
- eventId
3555
- relationDates {
3556
- ...RelationDates
3557
- }
3558
- relationType
3559
- vendorId
3560
- updatedAt
3561
- }
3562
- ${RELATION_DATES_FRAGMENT}
3563
- `;
3564
- var GET_RELATION = import_client29.gql`
3565
- query getRelation($_id: ID!) {
3566
- relation(_id: $_id) {
3567
- ...RelationFields
3568
- }
3569
- }
3570
- ${RELATION_FIELDS_FRAGMENT}
3571
- `;
3572
- var GET_RELATION_BY_EVENT_AND_VENDOR = import_client29.gql`
3573
- query getRelationByEventAndVendor($eventId: ID!, $vendorId: ID!) {
3574
- relationByEventAndVendor(eventId: $eventId, vendorId: $vendorId) {
3575
- ...RelationFields
3576
- }
3577
- }
3578
- ${RELATION_FIELDS_FRAGMENT}
3579
- `;
3580
- var GET_EVENT_RELATIONS = import_client29.gql`
3581
- query getEventRelations($eventId: ID!) {
3582
- eventRelations(eventId: $eventId) {
3583
- ...RelationFields
3584
- }
3585
- }
3586
- ${RELATION_FIELDS_FRAGMENT}
3587
- `;
3588
- var GET_VENDOR_RELATIONS = import_client29.gql`
3589
- query getVendorRelations($vendorId: ID!) {
3590
- vendorRelations(vendorId: $vendorId) {
3591
- ...RelationFields
3592
- }
3593
- }
3594
- ${RELATION_FIELDS_FRAGMENT}
3595
- `;
3596
- var GET_RESOURCE_CONNECTIONS = import_client29.gql`
3597
- query getResourceConnections(
3598
- $resourceId: ID!
3599
- $resourceType: ResourceTypeEnum!
3600
- ) {
3601
- resourceConnections(resourceId: $resourceId, resourceType: $resourceType) {
3602
- events {
3603
- _id
3604
- active
3605
- adIds
3606
- cover {
3607
- ...ResourceImageFields
3608
- }
3609
- contactDetails {
3610
- ...ContactDetailsFields
3611
- }
3612
- createdAt
3613
- dateTime {
3614
- ...EventDateTimeFields
3615
- }
3616
- description
3617
- deletedAt
3618
- images {
3619
- ...ResourceImageFields
3620
- }
3621
- eventType
3622
- location {
3623
- ...EventLocationFields
3624
- }
3625
- logo {
3626
- ...ResourceImageFields
3627
- }
3628
- eventInfoId
3629
- name
3630
- nzbn
3631
- owner {
3632
- ...OwnerFields
3633
- }
3634
- partners {
3635
- ...PartnerFields
3636
- }
3637
- promoCodes
3638
- provider
3639
- posterUsage {
3640
- ...PosterUsageFields
3641
- }
3642
- region
3643
- relationIds
3644
- socialMedia {
3645
- ...SocialMediaFields
3646
- }
3647
- rainOrShine
3648
- tags
3649
- termsAgreement {
3650
- ...TermsAgreementFields
3651
- }
3652
- updatedAt
3653
- relationDates {
3654
- ...RelationDates
3655
- }
3656
- }
3657
- vendors {
3658
- _id
3659
- active
3660
- adIds
3661
- availability {
3662
- corporate
3663
- private
3664
- school
3665
- }
3666
- vendorInfoId
3667
- categories {
3668
- ...CategoryFields
3669
- }
3670
- contactDetails {
3671
- ...ContactDetailsFields
3672
- }
3673
- cover {
3674
- ...ResourceImageFields
3675
- }
3676
- createdAt
3677
- description
3678
- deletedAt
3679
- images {
3680
- ...ResourceImageFields
3681
- }
3682
- locations {
3683
- dateTime {
3684
- ...VendorDateTimeFields
3685
- }
3686
- description
3687
- location {
3688
- ...VendorLocationFields
3689
- }
3690
- }
3691
- logo {
3692
- ...ResourceImageFields
3693
- }
3694
- multiLocation
3695
- name
3696
- owner {
3697
- ...OwnerFields
3698
- }
3699
- partners {
3700
- ...PartnerFields
3701
- }
3702
- products {
3703
- ...VendorMenuFields
3704
- }
3705
- promoCodes
3706
- posterUsage {
3707
- ...PosterUsageFields
3708
- }
3709
- region
3710
- relationIds
3711
- socialMedia {
3712
- ...SocialMediaFields
3713
- }
3714
- updatedAt
3715
- relationDates {
3716
- ...RelationDates
3717
- }
3718
- termsAgreement {
3719
- ...TermsAgreementFields
3720
- }
3721
- vendorType
3722
- }
3723
- }
3724
- }
3725
- ${EVENT_DATETIME_FIELDS_FRAGMENT}
3726
- ${EVENT_LOCATION_FIELDS_FRAGMENT}
3727
- ${OWNER_FIELDS_FRAGMENT}
3728
- ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
3729
- ${CATEGORY_FIELDS_FRAGMENT}
3730
- ${VENDOR_DATETIME_FIELDS_FRAGMENT}
3731
- ${VENDOR_LOCATION_FIELDS_FRAGMENT}
3732
- ${RELATION_DATES_FRAGMENT}
3733
- ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
3734
- ${POSTER_USAGE_FIELDS_FRAGMENT}
3735
- ${PARTNER_FIELDS_FRAGMENT}
3736
- ${VENDOR_MENU_FIELDS_FRAGMENT}
3737
- ${CONTACT_DETAILS_FIELDS_FRAGMENT}
3738
- ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
3739
- `;
3740
-
3741
- // src/graphql/mutations/relation.ts
3742
3623
  var CREATE_RELATION_MUTATION = import_client30.gql`
3743
3624
  mutation createRelation($input: RelationInputType!) {
3744
3625
  createRelation(input: $input) {
@@ -5368,6 +5249,7 @@ function useVendorForm(data) {
5368
5249
  promoCodes,
5369
5250
  region,
5370
5251
  socialMedia: socialMedia2,
5252
+ termsAgreement,
5371
5253
  vendorType
5372
5254
  } = getValues();
5373
5255
  return {
@@ -5393,6 +5275,7 @@ function useVendorForm(data) {
5393
5275
  promoCodes,
5394
5276
  region,
5395
5277
  socialMedia: socialMedia2,
5278
+ termsAgreement,
5396
5279
  vendorType
5397
5280
  },
5398
5281
  formState: { errors },
@@ -5521,7 +5404,8 @@ function useEventForm(data) {
5521
5404
  rainOrShine,
5522
5405
  region,
5523
5406
  socialMedia: socialMedia2,
5524
- tags
5407
+ tags,
5408
+ termsAgreement
5525
5409
  } = getValues();
5526
5410
  return {
5527
5411
  control,
@@ -5547,7 +5431,8 @@ function useEventForm(data) {
5547
5431
  rainOrShine,
5548
5432
  region,
5549
5433
  socialMedia: socialMedia2,
5550
- tags
5434
+ tags,
5435
+ termsAgreement
5551
5436
  },
5552
5437
  formState: { errors },
5553
5438
  handleSubmit,