@timardex/cluemart-shared 1.2.8 → 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 (48) hide show
  1. package/dist/{auth-DNveddIQ.d.mts → ad-DIIPz6Cg.d.mts} +2 -51
  2. package/dist/{auth-Cp4zKr5d.d.ts → ad-iOu_E7DP.d.ts} +2 -51
  3. package/dist/auth-b59uXZAI.d.ts +45 -0
  4. package/dist/auth-zj4ldAg5.d.mts +45 -0
  5. package/dist/{chunk-JUZHLSQK.mjs → chunk-GATAI5T6.mjs} +3 -3
  6. package/dist/{chunk-JUZHLSQK.mjs.map → chunk-GATAI5T6.mjs.map} +1 -1
  7. package/dist/{chunk-4RWXISXJ.mjs → chunk-U6WFPNBJ.mjs} +8 -8
  8. package/dist/{chunk-4RWXISXJ.mjs.map → chunk-U6WFPNBJ.mjs.map} +1 -1
  9. package/dist/enums/index.cjs +7 -7
  10. package/dist/enums/index.cjs.map +1 -1
  11. package/dist/enums/index.d.mts +7 -7
  12. package/dist/enums/index.d.ts +7 -7
  13. package/dist/enums/index.mjs +1 -1
  14. package/dist/formFields/index.cjs +1 -1
  15. package/dist/formFields/index.cjs.map +1 -1
  16. package/dist/formFields/index.d.mts +1 -1
  17. package/dist/formFields/index.d.ts +1 -1
  18. package/dist/formFields/index.mjs +2 -2
  19. package/dist/{global-B42Tds9R.d.ts → global-B0ogdRmU.d.ts} +20 -2
  20. package/dist/{global-B87BDXpD.d.mts → global-CAQkxPc3.d.mts} +20 -2
  21. package/dist/graphql/index.cjs +440 -530
  22. package/dist/graphql/index.cjs.map +1 -1
  23. package/dist/graphql/index.d.mts +2 -2
  24. package/dist/graphql/index.d.ts +2 -2
  25. package/dist/graphql/index.mjs +389 -479
  26. package/dist/graphql/index.mjs.map +1 -1
  27. package/dist/hooks/index.cjs +18 -13
  28. package/dist/hooks/index.cjs.map +1 -1
  29. package/dist/hooks/index.d.mts +3 -3
  30. package/dist/hooks/index.d.ts +3 -3
  31. package/dist/hooks/index.mjs +12 -7
  32. package/dist/hooks/index.mjs.map +1 -1
  33. package/dist/index.cjs +458 -543
  34. package/dist/index.cjs.map +1 -1
  35. package/dist/index.d.mts +25 -23
  36. package/dist/index.d.ts +25 -23
  37. package/dist/index.mjs +406 -491
  38. package/dist/index.mjs.map +1 -1
  39. package/dist/types/index.d.mts +3 -3
  40. package/dist/types/index.d.ts +3 -3
  41. package/dist/utils/index.cjs +1 -1
  42. package/dist/utils/index.cjs.map +1 -1
  43. package/dist/utils/index.d.mts +1 -1
  44. package/dist/utils/index.d.ts +1 -1
  45. package/dist/utils/index.mjs +2 -2
  46. package/package.json +1 -1
  47. package/dist/contactUs-D4YMyStC.d.mts +0 -11
  48. package/dist/contactUs-gQtGXo7i.d.ts +0 -11
package/dist/index.cjs CHANGED
@@ -261,16 +261,16 @@ var EnumResourceType = /* @__PURE__ */ ((EnumResourceType2) => {
261
261
  return EnumResourceType2;
262
262
  })(EnumResourceType || {});
263
263
  var EnumEventType = /* @__PURE__ */ ((EnumEventType2) => {
264
- EnumEventType2["EXPO"] = "expo";
265
- EnumEventType2["FAIR"] = "fair";
266
- EnumEventType2["FESTIVAL"] = "festival";
267
- EnumEventType2["MARKET"] = "market";
264
+ EnumEventType2["EXPO"] = "Expo";
265
+ EnumEventType2["FAIR"] = "Fair";
266
+ EnumEventType2["FESTIVAL"] = "Festival";
267
+ EnumEventType2["MARKET"] = "Market";
268
268
  return EnumEventType2;
269
269
  })(EnumEventType || {});
270
270
  var EnumVendorType = /* @__PURE__ */ ((EnumVendorType2) => {
271
- EnumVendorType2["STALLHOLDER"] = "stallholder";
272
- EnumVendorType2["SHOP"] = "shop";
273
- EnumVendorType2["CHARITY"] = "charity";
271
+ EnumVendorType2["STALLHOLDER"] = "Stallholder";
272
+ EnumVendorType2["SHOP"] = "Shop";
273
+ EnumVendorType2["CHARITY"] = "Charity";
274
274
  return EnumVendorType2;
275
275
  })(EnumVendorType || {});
276
276
  var EnumOSPlatform = /* @__PURE__ */ ((EnumOSPlatform2) => {
@@ -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");
@@ -2231,6 +2231,22 @@ var PARTNER_FIELDS_FRAGMENT = import_client2.gql`
2231
2231
  licence
2232
2232
  }
2233
2233
  `;
2234
+ var TERMS_AGREEMENT_FIELDS_FRAGMENT = import_client2.gql`
2235
+ fragment TermsAgreementFields on TermsAgreementType {
2236
+ appBuildNumber
2237
+ appId
2238
+ appVersion
2239
+ brand
2240
+ deviceName
2241
+ installationId
2242
+ manufacturer
2243
+ modelName
2244
+ osName
2245
+ osVersion
2246
+ termVersion
2247
+ timestamp
2248
+ }
2249
+ `;
2234
2250
  var USER_FIELDS_FRAGMENT = import_client2.gql`
2235
2251
  fragment UserFields on UserType {
2236
2252
  _id
@@ -2258,24 +2274,14 @@ var USER_FIELDS_FRAGMENT = import_client2.gql`
2258
2274
  refreshToken
2259
2275
  role
2260
2276
  termsAgreement {
2261
- appBuildNumber
2262
- appId
2263
- appVersion
2264
- brand
2265
- deviceName
2266
- installationId
2267
- manufacturer
2268
- modelName
2269
- osName
2270
- osVersion
2271
- termVersion
2272
- timestamp
2277
+ ...TermsAgreementFields
2273
2278
  }
2274
2279
  vendor
2275
2280
  updatedAt
2276
2281
  }
2277
2282
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
2278
2283
  ${PARTNER_FIELDS_FRAGMENT}
2284
+ ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
2279
2285
  `;
2280
2286
  var STALL_TYPE_FIELDS_FRAGMENT = import_client2.gql`
2281
2287
  fragment StallTypeFields on StallTypeType {
@@ -2296,168 +2302,12 @@ var CONTACT_DETAILS_FIELDS_FRAGMENT = import_client2.gql`
2296
2302
  }
2297
2303
  `;
2298
2304
 
2299
- // src/graphql/queries/event.ts
2300
- var EVENT_DATETIME_FIELDS_FRAGMENT = import_client3.gql`
2301
- fragment EventDateTimeFields on EventDateTimeType {
2302
- endDate
2303
- endTime
2304
- startDate
2305
- startTime
2306
- }
2307
- `;
2308
- var EVENT_LOCATION_FIELDS_FRAGMENT = import_client3.gql`
2309
- fragment EventLocationFields on EventLocationType {
2310
- city
2311
- coordinates
2312
- country
2313
- fullAddress
2314
- latitude
2315
- longitude
2316
- region
2317
- type
2318
- }
2319
- `;
2320
- var EVENT_INFO = import_client3.gql`
2321
- fragment EventInfoFields on EventInfoType {
2322
- _id
2323
- applicationDeadlineHours
2324
- dateTime {
2325
- endDate
2326
- endTime
2327
- stallTypes {
2328
- ...StallTypeFields
2329
- }
2330
- startDate
2331
- startTime
2332
- }
2333
- eventId
2334
- packInTime
2335
- paymentDueHours
2336
- paymentInfo {
2337
- accountHolderName
2338
- accountNumber
2339
- link
2340
- paymentMethod
2341
- }
2342
- requirements {
2343
- category
2344
- label
2345
- value
2346
- }
2347
- }
2348
- ${STALL_TYPE_FIELDS_FRAGMENT}
2349
- `;
2350
- var EVENT = import_client3.gql`
2351
- fragment EventFields on EventType {
2352
- _id
2353
- active
2354
- adIds
2355
- cover {
2356
- ...ResourceImageFields
2357
- }
2358
- createdAt
2359
- contactDetails {
2360
- ...ContactDetailsFields
2361
- }
2362
- dateTime {
2363
- ...EventDateTimeFields
2364
- }
2365
- description
2366
- deletedAt
2367
- images {
2368
- ...ResourceImageFields
2369
- }
2370
- eventType
2371
- location {
2372
- ...EventLocationFields
2373
- }
2374
- logo {
2375
- ...ResourceImageFields
2376
- }
2377
- eventInfoId
2378
- name
2379
- nzbn
2380
- owner {
2381
- ...OwnerFields
2382
- }
2383
- partners {
2384
- ...PartnerFields
2385
- }
2386
- promoCodes
2387
- provider
2388
- posterUsage {
2389
- ...PosterUsageFields
2390
- }
2391
- region
2392
- relationIds
2393
- socialMedia {
2394
- ...SocialMediaFields
2395
- }
2396
- rainOrShine
2397
- tags
2398
- updatedAt
2399
- }
2400
- ${EVENT_DATETIME_FIELDS_FRAGMENT}
2401
- ${EVENT_LOCATION_FIELDS_FRAGMENT}
2402
- ${OWNER_FIELDS_FRAGMENT}
2403
- ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
2404
- ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
2405
- ${POSTER_USAGE_FIELDS_FRAGMENT}
2406
- ${PARTNER_FIELDS_FRAGMENT}
2407
- ${CONTACT_DETAILS_FIELDS_FRAGMENT}
2408
- `;
2409
- var GET_EVENTS = import_client3.gql`
2410
- query getEvents {
2411
- events {
2412
- ...EventFields
2413
- }
2414
- }
2415
- ${EVENT}
2416
- `;
2417
- var GET_EVENT = import_client3.gql`
2418
- query getEvent($_id: ID!) {
2419
- event(_id: $_id) {
2420
- ...EventFields
2421
- }
2422
- }
2423
- ${EVENT}
2424
- `;
2425
- var GET_EVENTS_BY_REGION = import_client3.gql`
2426
- query getEventsByRegion($region: String!) {
2427
- eventsByRegion(region: $region) {
2428
- ...EventFields
2429
- }
2430
- }
2431
- ${EVENT}
2432
- `;
2433
- var SEARCH_EVENTS = import_client3.gql`
2434
- query searchEvents($search: String!, $region: String) {
2435
- eventsSearch(search: $search, region: $region) {
2436
- ...EventFields
2437
- }
2438
- }
2439
- ${EVENT}
2440
- `;
2441
- var GET_EVENTS_NEAR_ME = import_client3.gql`
2442
- query getEventsNearMe($latitude: Float!, $longitude: Float!, $radius: Int) {
2443
- eventsNearMe(latitude: $latitude, longitude: $longitude, radius: $radius) {
2444
- ...EventFields
2445
- }
2446
- }
2447
- ${EVENT}
2448
- `;
2449
- var GET_EVENT_INFO = import_client3.gql`
2450
- query getEventInfo($eventId: ID!) {
2451
- eventInfo(eventId: $eventId) {
2452
- ...EventInfoFields
2453
- }
2454
- }
2455
- ${EVENT_INFO}
2456
- `;
2305
+ // src/graphql/queries/relation.ts
2306
+ var import_client4 = require("@apollo/client");
2457
2307
 
2458
2308
  // src/graphql/queries/vendor.ts
2459
- var import_client4 = require("@apollo/client");
2460
- var VENDOR_LOCATION_FIELDS_FRAGMENT = import_client4.gql`
2309
+ var import_client3 = require("@apollo/client");
2310
+ var VENDOR_LOCATION_FIELDS_FRAGMENT = import_client3.gql`
2461
2311
  fragment VendorLocationFields on VendorLocationType {
2462
2312
  city
2463
2313
  coordinates
@@ -2469,7 +2319,7 @@ var VENDOR_LOCATION_FIELDS_FRAGMENT = import_client4.gql`
2469
2319
  type
2470
2320
  }
2471
2321
  `;
2472
- var VENDOR_DATETIME_FIELDS_FRAGMENT = import_client4.gql`
2322
+ var VENDOR_DATETIME_FIELDS_FRAGMENT = import_client3.gql`
2473
2323
  fragment VendorDateTimeFields on VendorDateTimeType {
2474
2324
  endDate
2475
2325
  endTime
@@ -2477,7 +2327,7 @@ var VENDOR_DATETIME_FIELDS_FRAGMENT = import_client4.gql`
2477
2327
  startTime
2478
2328
  }
2479
2329
  `;
2480
- var VENDOR_MENU_FIELDS_FRAGMENT = import_client4.gql`
2330
+ var VENDOR_MENU_FIELDS_FRAGMENT = import_client3.gql`
2481
2331
  fragment VendorMenuFields on VendorMenuType {
2482
2332
  description
2483
2333
  name
@@ -2485,7 +2335,7 @@ var VENDOR_MENU_FIELDS_FRAGMENT = import_client4.gql`
2485
2335
  productGroups
2486
2336
  }
2487
2337
  `;
2488
- var VENDOR = import_client4.gql`
2338
+ var VENDOR = import_client3.gql`
2489
2339
  fragment VendorFields on VendorType {
2490
2340
  _id
2491
2341
  active
@@ -2540,9 +2390,15 @@ var VENDOR = import_client4.gql`
2540
2390
  }
2541
2391
  region
2542
2392
  relationIds
2393
+ relationDates {
2394
+ ...RelationDates
2395
+ }
2543
2396
  socialMedia {
2544
2397
  ...SocialMediaFields
2545
2398
  }
2399
+ termsAgreement {
2400
+ ...TermsAgreementFields
2401
+ }
2546
2402
  updatedAt
2547
2403
  vendorType
2548
2404
  }
@@ -2556,14 +2412,16 @@ var VENDOR = import_client4.gql`
2556
2412
  ${PARTNER_FIELDS_FRAGMENT}
2557
2413
  ${VENDOR_MENU_FIELDS_FRAGMENT}
2558
2414
  ${CONTACT_DETAILS_FIELDS_FRAGMENT}
2415
+ ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
2416
+ ${RELATION_DATES_FRAGMENT}
2559
2417
  `;
2560
- var VENDOR_ATTRIBUTES_FRAGMENT = import_client4.gql`
2418
+ var VENDOR_ATTRIBUTES_FRAGMENT = import_client3.gql`
2561
2419
  fragment VendorAttributesFields on VendorAttributesType {
2562
2420
  details
2563
2421
  isRequired
2564
2422
  }
2565
2423
  `;
2566
- var VENDOR_INFO = import_client4.gql`
2424
+ var VENDOR_INFO = import_client3.gql`
2567
2425
  fragment VendorInfoFields on VendorInfoType {
2568
2426
  _id
2569
2427
  compliance {
@@ -2584,70 +2442,322 @@ var VENDOR_INFO = import_client4.gql`
2584
2442
  ...VendorAttributesFields
2585
2443
  }
2586
2444
  }
2587
- product {
2588
- foodFlavors
2589
- packaging
2590
- priceRange {
2591
- max
2592
- min
2593
- }
2594
- producedIn
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
2461
+ }
2462
+ ${VENDOR_ATTRIBUTES_FRAGMENT}
2463
+ ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
2464
+ `;
2465
+ var GET_VENDORS = import_client3.gql`
2466
+ query getVendors {
2467
+ vendors {
2468
+ ...VendorFields
2469
+ }
2470
+ }
2471
+ ${VENDOR}
2472
+ `;
2473
+ var GET_VENDOR = import_client3.gql`
2474
+ query getVendor($_id: ID!) {
2475
+ vendor(_id: $_id) {
2476
+ ...VendorFields
2477
+ }
2478
+ }
2479
+ ${VENDOR}
2480
+ `;
2481
+ var GET_VENDORS_BY_REGION = import_client3.gql`
2482
+ query getVendorsByRegion($region: String!) {
2483
+ vendorsByRegion(region: $region) {
2484
+ ...VendorFields
2485
+ }
2486
+ }
2487
+ ${VENDOR}
2488
+ `;
2489
+ var SEARCH_VENDORS = import_client3.gql`
2490
+ query searchVendors($search: String!, $region: String) {
2491
+ vendorSearch(search: $search, region: $region) {
2492
+ ...VendorFields
2493
+ }
2494
+ }
2495
+ ${VENDOR}
2496
+ `;
2497
+ var GET_VENDOR_INFO = import_client3.gql`
2498
+ query getVendorInfo($vendorId: ID!) {
2499
+ vendorInfo(vendorId: $vendorId) {
2500
+ ...VendorInfoFields
2501
+ }
2502
+ }
2503
+ ${VENDOR_INFO}
2504
+ `;
2505
+
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 {
2602
+ city
2603
+ coordinates
2604
+ country
2605
+ fullAddress
2606
+ latitude
2607
+ longitude
2608
+ region
2609
+ type
2610
+ }
2611
+ `;
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
+ }
2639
+ }
2640
+ ${STALL_TYPE_FIELDS_FRAGMENT}
2641
+ `;
2642
+ var EVENT = import_client5.gql`
2643
+ fragment EventFields on EventType {
2644
+ _id
2645
+ active
2646
+ adIds
2647
+ cover {
2648
+ ...ResourceImageFields
2649
+ }
2650
+ createdAt
2651
+ contactDetails {
2652
+ ...ContactDetailsFields
2653
+ }
2654
+ dateTime {
2655
+ ...EventDateTimeFields
2656
+ }
2657
+ description
2658
+ deletedAt
2659
+ images {
2660
+ ...ResourceImageFields
2661
+ }
2662
+ eventType
2663
+ location {
2664
+ ...EventLocationFields
2665
+ }
2666
+ logo {
2667
+ ...ResourceImageFields
2668
+ }
2669
+ eventInfoId
2670
+ name
2671
+ nzbn
2672
+ owner {
2673
+ ...OwnerFields
2674
+ }
2675
+ partners {
2676
+ ...PartnerFields
2677
+ }
2678
+ promoCodes
2679
+ provider
2680
+ posterUsage {
2681
+ ...PosterUsageFields
2682
+ }
2683
+ region
2684
+ relationIds
2685
+ relationDates {
2686
+ ...RelationDates
2595
2687
  }
2596
- stallInfo {
2597
- size {
2598
- depth
2599
- width
2600
- }
2688
+ socialMedia {
2689
+ ...SocialMediaFields
2601
2690
  }
2602
- vendorId
2691
+ rainOrShine
2692
+ tags
2693
+ termsAgreement {
2694
+ ...TermsAgreementFields
2695
+ }
2696
+ updatedAt
2603
2697
  }
2604
- ${VENDOR_ATTRIBUTES_FRAGMENT}
2698
+ ${EVENT_DATETIME_FIELDS_FRAGMENT2}
2699
+ ${EVENT_LOCATION_FIELDS_FRAGMENT2}
2700
+ ${OWNER_FIELDS_FRAGMENT}
2605
2701
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
2702
+ ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
2703
+ ${POSTER_USAGE_FIELDS_FRAGMENT}
2704
+ ${PARTNER_FIELDS_FRAGMENT}
2705
+ ${CONTACT_DETAILS_FIELDS_FRAGMENT}
2706
+ ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
2707
+ ${RELATION_DATES_FRAGMENT}
2606
2708
  `;
2607
- var GET_VENDORS = import_client4.gql`
2608
- query getVendors {
2609
- vendors {
2610
- ...VendorFields
2709
+ var GET_EVENTS = import_client5.gql`
2710
+ query getEvents {
2711
+ events {
2712
+ ...EventFields
2611
2713
  }
2612
2714
  }
2613
- ${VENDOR}
2715
+ ${EVENT}
2614
2716
  `;
2615
- var GET_VENDOR = import_client4.gql`
2616
- query getVendor($_id: ID!) {
2617
- vendor(_id: $_id) {
2618
- ...VendorFields
2717
+ var GET_EVENT = import_client5.gql`
2718
+ query getEvent($_id: ID!) {
2719
+ event(_id: $_id) {
2720
+ ...EventFields
2619
2721
  }
2620
2722
  }
2621
- ${VENDOR}
2723
+ ${EVENT}
2622
2724
  `;
2623
- var GET_VENDORS_BY_REGION = import_client4.gql`
2624
- query getVendorsByRegion($region: String!) {
2625
- vendorsByRegion(region: $region) {
2626
- ...VendorFields
2725
+ var GET_EVENTS_BY_REGION = import_client5.gql`
2726
+ query getEventsByRegion($region: String!) {
2727
+ eventsByRegion(region: $region) {
2728
+ ...EventFields
2627
2729
  }
2628
2730
  }
2629
- ${VENDOR}
2731
+ ${EVENT}
2630
2732
  `;
2631
- var SEARCH_VENDORS = import_client4.gql`
2632
- query searchVendors($search: String!, $region: String) {
2633
- vendorSearch(search: $search, region: $region) {
2634
- ...VendorFields
2733
+ var SEARCH_EVENTS = import_client5.gql`
2734
+ query searchEvents($search: String!, $region: String) {
2735
+ eventsSearch(search: $search, region: $region) {
2736
+ ...EventFields
2635
2737
  }
2636
2738
  }
2637
- ${VENDOR}
2739
+ ${EVENT}
2638
2740
  `;
2639
- var GET_VENDOR_INFO = import_client4.gql`
2640
- query getVendorInfo($vendorId: ID!) {
2641
- vendorInfo(vendorId: $vendorId) {
2642
- ...VendorInfoFields
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
2643
2745
  }
2644
2746
  }
2645
- ${VENDOR_INFO}
2747
+ ${EVENT}
2748
+ `;
2749
+ var GET_EVENT_INFO = import_client5.gql`
2750
+ query getEventInfo($eventId: ID!) {
2751
+ eventInfo(eventId: $eventId) {
2752
+ ...EventInfoFields
2753
+ }
2754
+ }
2755
+ ${EVENT_INFO}
2646
2756
  `;
2647
2757
 
2648
2758
  // src/graphql/hooks/admin/hooksMutation.ts
2649
2759
  var useAdminUpdateResourceType = () => {
2650
- const [adminUpdateResourceType, { loading, error }] = (0, import_client5.useMutation)(
2760
+ const [adminUpdateResourceType, { loading, error }] = (0, import_client6.useMutation)(
2651
2761
  ADMIN_UPDATE_RESOURCE_TYPE_MUTATION,
2652
2762
  {
2653
2763
  awaitRefetchQueries: true,
@@ -2674,11 +2784,11 @@ var useAdminUpdateResourceType = () => {
2674
2784
  };
2675
2785
 
2676
2786
  // src/graphql/hooks/auth.ts
2677
- var import_client7 = require("@apollo/client");
2787
+ var import_client8 = require("@apollo/client");
2678
2788
 
2679
2789
  // src/graphql/mutations/auth.ts
2680
- var import_client6 = require("@apollo/client");
2681
- var REGISTER_MUTATION = import_client6.gql`
2790
+ var import_client7 = require("@apollo/client");
2791
+ var REGISTER_MUTATION = import_client7.gql`
2682
2792
  mutation register($input: RegisterInputType!) {
2683
2793
  register(input: $input) {
2684
2794
  message
@@ -2691,7 +2801,7 @@ var REGISTER_MUTATION = import_client6.gql`
2691
2801
  }
2692
2802
  ${USER_FIELDS_FRAGMENT}
2693
2803
  `;
2694
- var LOGIN_MUTATION = import_client6.gql`
2804
+ var LOGIN_MUTATION = import_client7.gql`
2695
2805
  mutation login($input: LoginInputType!) {
2696
2806
  login(input: $input) {
2697
2807
  message
@@ -2704,14 +2814,14 @@ var LOGIN_MUTATION = import_client6.gql`
2704
2814
  }
2705
2815
  ${USER_FIELDS_FRAGMENT}
2706
2816
  `;
2707
- var LOGOUT_MUTATION = import_client6.gql`
2817
+ var LOGOUT_MUTATION = import_client7.gql`
2708
2818
  mutation logout {
2709
2819
  logout {
2710
2820
  message
2711
2821
  }
2712
2822
  }
2713
2823
  `;
2714
- var REFRESH_TOKEN_MUTATION = import_client6.gql`
2824
+ var REFRESH_TOKEN_MUTATION = import_client7.gql`
2715
2825
  mutation refreshToken($input: RefreshTokenInputType!) {
2716
2826
  refreshToken(input: $input) {
2717
2827
  refreshToken
@@ -2719,21 +2829,21 @@ var REFRESH_TOKEN_MUTATION = import_client6.gql`
2719
2829
  }
2720
2830
  }
2721
2831
  `;
2722
- var RESET_PASSWORD_MUTATION = import_client6.gql`
2832
+ var RESET_PASSWORD_MUTATION = import_client7.gql`
2723
2833
  mutation resetPassword($input: ResetPasswordInputType!) {
2724
2834
  resetPassword(input: $input) {
2725
2835
  message
2726
2836
  }
2727
2837
  }
2728
2838
  `;
2729
- var REQUEST_PASSWORD_RESET_MUTATION = import_client6.gql`
2839
+ var REQUEST_PASSWORD_RESET_MUTATION = import_client7.gql`
2730
2840
  mutation requestPasswordReset($input: RequestPasswordResetInputType!) {
2731
2841
  requestPasswordReset(input: $input) {
2732
2842
  message
2733
2843
  }
2734
2844
  }
2735
2845
  `;
2736
- var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client6.gql`
2846
+ var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client7.gql`
2737
2847
  mutation validateVerificationToken(
2738
2848
  $input: ValidateVerificationTokenInputType!
2739
2849
  ) {
@@ -2745,51 +2855,51 @@ var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client6.gql`
2745
2855
 
2746
2856
  // src/graphql/hooks/auth.ts
2747
2857
  var useRegister = () => {
2748
- const [register, { loading, error }] = (0, import_client7.useMutation)(REGISTER_MUTATION);
2858
+ const [register, { loading, error }] = (0, import_client8.useMutation)(REGISTER_MUTATION);
2749
2859
  return { error, loading, register };
2750
2860
  };
2751
2861
  var useLogin = () => {
2752
- const [login, { loading, error }] = (0, import_client7.useMutation)(LOGIN_MUTATION);
2862
+ const [login, { loading, error }] = (0, import_client8.useMutation)(LOGIN_MUTATION);
2753
2863
  return { error, loading, login };
2754
2864
  };
2755
2865
  var useLogout = () => {
2756
- const [logout, { loading, error }] = (0, import_client7.useMutation)(LOGOUT_MUTATION);
2866
+ const [logout, { loading, error }] = (0, import_client8.useMutation)(LOGOUT_MUTATION);
2757
2867
  return { error, loading, logout };
2758
2868
  };
2759
2869
  var useRefreshToken = () => {
2760
- const [refreshToken, { loading, error }] = (0, import_client7.useMutation)(
2870
+ const [refreshToken, { loading, error }] = (0, import_client8.useMutation)(
2761
2871
  REFRESH_TOKEN_MUTATION
2762
2872
  );
2763
2873
  return { error, loading, refreshToken };
2764
2874
  };
2765
2875
  var useRequestPasswordReset = () => {
2766
- const [requestPasswordReset, { loading, error }] = (0, import_client7.useMutation)(
2876
+ const [requestPasswordReset, { loading, error }] = (0, import_client8.useMutation)(
2767
2877
  REQUEST_PASSWORD_RESET_MUTATION
2768
2878
  );
2769
2879
  return { error, loading, requestPasswordReset };
2770
2880
  };
2771
2881
  var useValidateVerificationToken = () => {
2772
- const [validateVerificationToken, { loading, error }] = (0, import_client7.useMutation)(
2882
+ const [validateVerificationToken, { loading, error }] = (0, import_client8.useMutation)(
2773
2883
  VALIDATE_VERIFICATION_TOKEN_MUTATION
2774
2884
  );
2775
2885
  return { error, loading, validateVerificationToken };
2776
2886
  };
2777
2887
  var useResetPassword = () => {
2778
- const [resetPassword, { loading, error }] = (0, import_client7.useMutation)(
2888
+ const [resetPassword, { loading, error }] = (0, import_client8.useMutation)(
2779
2889
  RESET_PASSWORD_MUTATION
2780
2890
  );
2781
2891
  return { error, loading, resetPassword };
2782
2892
  };
2783
2893
 
2784
2894
  // src/graphql/hooks/chat/hooksMutation.ts
2785
- var import_client10 = require("@apollo/client");
2895
+ var import_client11 = require("@apollo/client");
2786
2896
 
2787
2897
  // src/graphql/mutations/chat.ts
2788
- var import_client9 = require("@apollo/client");
2898
+ var import_client10 = require("@apollo/client");
2789
2899
 
2790
2900
  // src/graphql/queries/chat.ts
2791
- var import_client8 = require("@apollo/client");
2792
- var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client8.gql`
2901
+ var import_client9 = require("@apollo/client");
2902
+ var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client9.gql`
2793
2903
  fragment ChatMessageFields on ChatMessageType {
2794
2904
  _id
2795
2905
  content
@@ -2800,14 +2910,14 @@ var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client8.gql`
2800
2910
  updatedAt
2801
2911
  }
2802
2912
  `;
2803
- var CHAT_PARTICIPANT = import_client8.gql`
2913
+ var CHAT_PARTICIPANT = import_client9.gql`
2804
2914
  fragment ChatParticipantFields on ChatParticipantType {
2805
2915
  active
2806
2916
  email
2807
2917
  userId
2808
2918
  }
2809
2919
  `;
2810
- var CHAT_FIELDS_FRAGMENT = import_client8.gql`
2920
+ var CHAT_FIELDS_FRAGMENT = import_client9.gql`
2811
2921
  fragment ChatFields on ChatType {
2812
2922
  _id
2813
2923
  active
@@ -2830,7 +2940,7 @@ var CHAT_FIELDS_FRAGMENT = import_client8.gql`
2830
2940
  ${CHAT_MESSAGE_FIELDS_FRAGMENT}
2831
2941
  ${CHAT_PARTICIPANT}
2832
2942
  `;
2833
- var CHAT = import_client8.gql`
2943
+ var CHAT = import_client9.gql`
2834
2944
  query chat($_id: ID!) {
2835
2945
  chat(_id: $_id) {
2836
2946
  ...ChatFields
@@ -2838,7 +2948,7 @@ var CHAT = import_client8.gql`
2838
2948
  }
2839
2949
  ${CHAT_FIELDS_FRAGMENT}
2840
2950
  `;
2841
- var USER_CHATS = import_client8.gql`
2951
+ var USER_CHATS = import_client9.gql`
2842
2952
  query userChats {
2843
2953
  userChats {
2844
2954
  ...ChatFields
@@ -2848,7 +2958,7 @@ var USER_CHATS = import_client8.gql`
2848
2958
  `;
2849
2959
 
2850
2960
  // src/graphql/mutations/chat.ts
2851
- var SEND_CHAT_MESSAGE_MUTATION = import_client9.gql`
2961
+ var SEND_CHAT_MESSAGE_MUTATION = import_client10.gql`
2852
2962
  mutation sendChatMessage($_id: ID!, $input: ChatMessageInputType!) {
2853
2963
  sendChatMessage(_id: $_id, input: $input) {
2854
2964
  ...ChatFields
@@ -2856,12 +2966,12 @@ var SEND_CHAT_MESSAGE_MUTATION = import_client9.gql`
2856
2966
  }
2857
2967
  ${CHAT_FIELDS_FRAGMENT}
2858
2968
  `;
2859
- var DELETE_CHAT_MUTATION = import_client9.gql`
2969
+ var DELETE_CHAT_MUTATION = import_client10.gql`
2860
2970
  mutation deleteChat($_id: ID!) {
2861
2971
  deleteChat(_id: $_id)
2862
2972
  }
2863
2973
  `;
2864
- var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client9.gql`
2974
+ var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client10.gql`
2865
2975
  mutation addParticipantToChat($chatId: ID!, $userId: ID!) {
2866
2976
  addParticipantToChat(chatId: $chatId, userId: $userId) {
2867
2977
  ...ChatFields
@@ -2869,7 +2979,7 @@ var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client9.gql`
2869
2979
  }
2870
2980
  ${CHAT_FIELDS_FRAGMENT}
2871
2981
  `;
2872
- var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client9.gql`
2982
+ var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client10.gql`
2873
2983
  mutation removeParticipantFromChat($chatId: ID!, $userId: ID!) {
2874
2984
  removeParticipantFromChat(chatId: $chatId, userId: $userId) {
2875
2985
  ...ChatFields
@@ -2880,7 +2990,7 @@ var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client9.gql`
2880
2990
 
2881
2991
  // src/graphql/hooks/chat/hooksMutation.ts
2882
2992
  var useSendChatMessage = () => {
2883
- const [sendChatMessage, { loading, error }] = (0, import_client10.useMutation)(
2993
+ const [sendChatMessage, { loading, error }] = (0, import_client11.useMutation)(
2884
2994
  SEND_CHAT_MESSAGE_MUTATION,
2885
2995
  {
2886
2996
  awaitRefetchQueries: true,
@@ -2898,14 +3008,14 @@ var useSendChatMessage = () => {
2898
3008
  return { error, loading, sendChatMessage };
2899
3009
  };
2900
3010
  var useDeleteChat = () => {
2901
- const [deleteChat, { loading, error }] = (0, import_client10.useMutation)(DELETE_CHAT_MUTATION, {
3011
+ const [deleteChat, { loading, error }] = (0, import_client11.useMutation)(DELETE_CHAT_MUTATION, {
2902
3012
  awaitRefetchQueries: true,
2903
3013
  refetchQueries: [{ query: USER_CHATS }]
2904
3014
  });
2905
3015
  return { deleteChat, error, loading };
2906
3016
  };
2907
3017
  var useAddParticipantToChat = () => {
2908
- const [addParticipantToChat, { loading, error }] = (0, import_client10.useMutation)(
3018
+ const [addParticipantToChat, { loading, error }] = (0, import_client11.useMutation)(
2909
3019
  ADD_PARTICIPANT_TO_CHAT_MUTATION,
2910
3020
  {
2911
3021
  awaitRefetchQueries: true,
@@ -2926,7 +3036,7 @@ var useAddParticipantToChat = () => {
2926
3036
  return { addParticipantToChat, error, loading };
2927
3037
  };
2928
3038
  var useRemoveParticipantFromChat = () => {
2929
- const [removeParticipantFromChat, { loading, error }] = (0, import_client10.useMutation)(
3039
+ const [removeParticipantFromChat, { loading, error }] = (0, import_client11.useMutation)(
2930
3040
  REMOVE_PARTICIPANT_FROM_CHAT_MUTATION,
2931
3041
  {
2932
3042
  awaitRefetchQueries: true,
@@ -2948,11 +3058,11 @@ var useRemoveParticipantFromChat = () => {
2948
3058
  };
2949
3059
 
2950
3060
  // src/graphql/hooks/chat/hooksQuery.ts
2951
- var import_client12 = require("@apollo/client");
3061
+ var import_client13 = require("@apollo/client");
2952
3062
 
2953
3063
  // src/graphql/subscriptions/chat.ts
2954
- var import_client11 = require("@apollo/client");
2955
- var GET_CHAT_MESSAGE = import_client11.gql`
3064
+ var import_client12 = require("@apollo/client");
3065
+ var GET_CHAT_MESSAGE = import_client12.gql`
2956
3066
  subscription {
2957
3067
  getChatMessage {
2958
3068
  ...ChatFields
@@ -2963,7 +3073,7 @@ var GET_CHAT_MESSAGE = import_client11.gql`
2963
3073
 
2964
3074
  // src/graphql/hooks/chat/hooksQuery.ts
2965
3075
  var useGetChat = (_id) => {
2966
- const { loading, error, data, refetch } = (0, import_client12.useQuery)(CHAT, {
3076
+ const { loading, error, data, refetch } = (0, import_client13.useQuery)(CHAT, {
2967
3077
  fetchPolicy: "network-only",
2968
3078
  skip: !_id,
2969
3079
  variables: { _id }
@@ -2972,24 +3082,24 @@ var useGetChat = (_id) => {
2972
3082
  return { chat, error, loading, refetch };
2973
3083
  };
2974
3084
  var useGetUserChats = () => {
2975
- const { loading, error, data, refetch } = (0, import_client12.useQuery)(USER_CHATS, {
3085
+ const { loading, error, data, refetch } = (0, import_client13.useQuery)(USER_CHATS, {
2976
3086
  fetchPolicy: "network-only"
2977
3087
  });
2978
3088
  const userChats = data?.userChats;
2979
3089
  return { error, loading, refetch, userChats };
2980
3090
  };
2981
3091
  var useGetChatSubscription = () => {
2982
- const { data, loading, error } = (0, import_client12.useSubscription)(GET_CHAT_MESSAGE);
3092
+ const { data, loading, error } = (0, import_client13.useSubscription)(GET_CHAT_MESSAGE);
2983
3093
  const chat = data?.getChat;
2984
3094
  return { chat, error, loading };
2985
3095
  };
2986
3096
 
2987
3097
  // src/graphql/hooks/contactUs.ts
2988
- var import_client14 = require("@apollo/client");
3098
+ var import_client15 = require("@apollo/client");
2989
3099
 
2990
3100
  // src/graphql/mutations/contactUs.ts
2991
- var import_client13 = require("@apollo/client");
2992
- var CONTACT_US_MUTATION = import_client13.gql`
3101
+ var import_client14 = require("@apollo/client");
3102
+ var CONTACT_US_MUTATION = import_client14.gql`
2993
3103
  mutation contactUs($input: ContactUsInputType!) {
2994
3104
  contactUs(input: $input) {
2995
3105
  message
@@ -2999,16 +3109,16 @@ var CONTACT_US_MUTATION = import_client13.gql`
2999
3109
 
3000
3110
  // src/graphql/hooks/contactUs.ts
3001
3111
  var useContactUs = () => {
3002
- const [contactUs, { loading, error }] = (0, import_client14.useMutation)(CONTACT_US_MUTATION);
3112
+ const [contactUs, { loading, error }] = (0, import_client15.useMutation)(CONTACT_US_MUTATION);
3003
3113
  return { contactUs, error, loading };
3004
3114
  };
3005
3115
 
3006
3116
  // src/graphql/hooks/event/hooksMutation.ts
3007
- var import_client17 = require("@apollo/client");
3117
+ var import_client18 = require("@apollo/client");
3008
3118
 
3009
3119
  // src/graphql/mutations/event.ts
3010
- var import_client15 = require("@apollo/client");
3011
- var CREATE_EVENT_MUTATION = import_client15.gql`
3120
+ var import_client16 = require("@apollo/client");
3121
+ var CREATE_EVENT_MUTATION = import_client16.gql`
3012
3122
  mutation createEvent($input: EventInputType!) {
3013
3123
  createEvent(input: $input) {
3014
3124
  ...EventFields
@@ -3016,7 +3126,7 @@ var CREATE_EVENT_MUTATION = import_client15.gql`
3016
3126
  }
3017
3127
  ${EVENT}
3018
3128
  `;
3019
- var UPDATE_EVENT_MUTATION = import_client15.gql`
3129
+ var UPDATE_EVENT_MUTATION = import_client16.gql`
3020
3130
  mutation updateEvent($_id: ID!, $input: EventInputType!) {
3021
3131
  updateEvent(_id: $_id, input: $input) {
3022
3132
  ...EventFields
@@ -3024,12 +3134,12 @@ var UPDATE_EVENT_MUTATION = import_client15.gql`
3024
3134
  }
3025
3135
  ${EVENT}
3026
3136
  `;
3027
- var DELETE_EVENT_MUTATION = import_client15.gql`
3137
+ var DELETE_EVENT_MUTATION = import_client16.gql`
3028
3138
  mutation deleteEvent($_id: ID!) {
3029
3139
  deleteEvent(_id: $_id)
3030
3140
  }
3031
3141
  `;
3032
- var CREATE_EVENT_INFO_MUTATION = import_client15.gql`
3142
+ var CREATE_EVENT_INFO_MUTATION = import_client16.gql`
3033
3143
  mutation createEventInfo($input: EventInfoInputType!) {
3034
3144
  createEventInfo(input: $input) {
3035
3145
  ...EventInfoFields
@@ -3037,7 +3147,7 @@ var CREATE_EVENT_INFO_MUTATION = import_client15.gql`
3037
3147
  }
3038
3148
  ${EVENT_INFO}
3039
3149
  `;
3040
- var UPDATE_EVENT_INFO_MUTATION = import_client15.gql`
3150
+ var UPDATE_EVENT_INFO_MUTATION = import_client16.gql`
3041
3151
  mutation updateEventInfo($_id: ID!, $input: EventInfoInputType!) {
3042
3152
  updateEventInfo(_id: $_id, input: $input) {
3043
3153
  ...EventInfoFields
@@ -3047,8 +3157,8 @@ var UPDATE_EVENT_INFO_MUTATION = import_client15.gql`
3047
3157
  `;
3048
3158
 
3049
3159
  // src/graphql/queries/user.ts
3050
- var import_client16 = require("@apollo/client");
3051
- var GET_USERS = import_client16.gql`
3160
+ var import_client17 = require("@apollo/client");
3161
+ var GET_USERS = import_client17.gql`
3052
3162
  query getUsers {
3053
3163
  users {
3054
3164
  ...UserFields
@@ -3056,7 +3166,7 @@ var GET_USERS = import_client16.gql`
3056
3166
  }
3057
3167
  ${USER_FIELDS_FRAGMENT}
3058
3168
  `;
3059
- var GET_USER = import_client16.gql`
3169
+ var GET_USER = import_client17.gql`
3060
3170
  query getUser($_id: ID!) {
3061
3171
  user(_id: $_id) {
3062
3172
  ...UserFields
@@ -3064,7 +3174,7 @@ var GET_USER = import_client16.gql`
3064
3174
  }
3065
3175
  ${USER_FIELDS_FRAGMENT}
3066
3176
  `;
3067
- var GET_USER_EVENTS = import_client16.gql`
3177
+ var GET_USER_EVENTS = import_client17.gql`
3068
3178
  query getUserEvents {
3069
3179
  userEvents {
3070
3180
  ...EventFields
@@ -3072,7 +3182,7 @@ var GET_USER_EVENTS = import_client16.gql`
3072
3182
  }
3073
3183
  ${EVENT}
3074
3184
  `;
3075
- var GET_USER_VENDORS = import_client16.gql`
3185
+ var GET_USER_VENDORS = import_client17.gql`
3076
3186
  query getUserVendors {
3077
3187
  userVendors {
3078
3188
  ...VendorFields
@@ -3080,7 +3190,7 @@ var GET_USER_VENDORS = import_client16.gql`
3080
3190
  }
3081
3191
  ${VENDOR}
3082
3192
  `;
3083
- var GET_USER_FAVOURITES = import_client16.gql`
3193
+ var GET_USER_FAVOURITES = import_client17.gql`
3084
3194
  query getUserFavourites {
3085
3195
  userFavourites {
3086
3196
  events {
@@ -3097,28 +3207,28 @@ var GET_USER_FAVOURITES = import_client16.gql`
3097
3207
 
3098
3208
  // src/graphql/hooks/event/hooksMutation.ts
3099
3209
  var useCreateEvent = () => {
3100
- const [createEvent, { loading, error }] = (0, import_client17.useMutation)(CREATE_EVENT_MUTATION, {
3210
+ const [createEvent, { loading, error }] = (0, import_client18.useMutation)(CREATE_EVENT_MUTATION, {
3101
3211
  awaitRefetchQueries: true,
3102
3212
  refetchQueries: [{ fetchPolicy: "no-cache", query: GET_USER_EVENTS }]
3103
3213
  });
3104
3214
  return { createEvent, error, loading };
3105
3215
  };
3106
3216
  var useUpdateEvent = () => {
3107
- const [updateEvent, { loading, error }] = (0, import_client17.useMutation)(UPDATE_EVENT_MUTATION, {
3217
+ const [updateEvent, { loading, error }] = (0, import_client18.useMutation)(UPDATE_EVENT_MUTATION, {
3108
3218
  awaitRefetchQueries: true,
3109
3219
  refetchQueries: [{ fetchPolicy: "no-cache", query: GET_USER_EVENTS }]
3110
3220
  });
3111
3221
  return { error, loading, updateEvent };
3112
3222
  };
3113
3223
  var useDeleteEvent = () => {
3114
- const [deleteEvent, { loading, error }] = (0, import_client17.useMutation)(DELETE_EVENT_MUTATION, {
3224
+ const [deleteEvent, { loading, error }] = (0, import_client18.useMutation)(DELETE_EVENT_MUTATION, {
3115
3225
  awaitRefetchQueries: true,
3116
3226
  refetchQueries: [{ fetchPolicy: "no-cache", query: GET_USER_EVENTS }]
3117
3227
  });
3118
3228
  return { deleteEvent, error, loading };
3119
3229
  };
3120
3230
  var useCreateEventInfo = () => {
3121
- const [createEventInfo, { loading, error }] = (0, import_client17.useMutation)(
3231
+ const [createEventInfo, { loading, error }] = (0, import_client18.useMutation)(
3122
3232
  CREATE_EVENT_INFO_MUTATION,
3123
3233
  {
3124
3234
  awaitRefetchQueries: true,
@@ -3131,11 +3241,14 @@ var useCreateEventInfo = () => {
3131
3241
  variables: { eventId }
3132
3242
  // Pass the eventId for refetching
3133
3243
  },
3244
+ {
3245
+ fetchPolicy: "network-only",
3246
+ query: GET_USER_EVENTS
3247
+ },
3134
3248
  {
3135
3249
  fetchPolicy: "no-cache",
3136
3250
  query: GET_EVENT,
3137
3251
  variables: { _id: eventId }
3138
- // Pass the eventId for refetching
3139
3252
  }
3140
3253
  ];
3141
3254
  }
@@ -3144,7 +3257,7 @@ var useCreateEventInfo = () => {
3144
3257
  return { createEventInfo, error, loading };
3145
3258
  };
3146
3259
  var useUpdateEventInfo = () => {
3147
- const [updateEventInfo, { loading, error }] = (0, import_client17.useMutation)(
3260
+ const [updateEventInfo, { loading, error }] = (0, import_client18.useMutation)(
3148
3261
  UPDATE_EVENT_INFO_MUTATION,
3149
3262
  {
3150
3263
  awaitRefetchQueries: true,
@@ -3170,16 +3283,16 @@ var useUpdateEventInfo = () => {
3170
3283
  };
3171
3284
 
3172
3285
  // src/graphql/hooks/event/hooksQuery.ts
3173
- var import_client18 = require("@apollo/client");
3286
+ var import_client19 = require("@apollo/client");
3174
3287
  var useGetEvents = () => {
3175
- const { loading, error, data, refetch } = (0, import_client18.useQuery)(GET_EVENTS, {
3288
+ const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_EVENTS, {
3176
3289
  fetchPolicy: "network-only"
3177
3290
  });
3178
3291
  const events = data?.events;
3179
3292
  return { error, events, loading, refetch };
3180
3293
  };
3181
3294
  var useGetEvent = (_id) => {
3182
- const { loading, error, data, refetch } = (0, import_client18.useQuery)(GET_EVENT, {
3295
+ const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_EVENT, {
3183
3296
  fetchPolicy: "network-only",
3184
3297
  skip: !_id,
3185
3298
  variables: { _id }
@@ -3188,7 +3301,7 @@ var useGetEvent = (_id) => {
3188
3301
  return { error, event, loading, refetch };
3189
3302
  };
3190
3303
  var useGetEventsByRegion = (region) => {
3191
- 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, {
3192
3305
  fetchPolicy: "no-cache",
3193
3306
  skip: !region,
3194
3307
  variables: { region }
@@ -3197,7 +3310,7 @@ var useGetEventsByRegion = (region) => {
3197
3310
  return { error, eventsByRegion, loading, refetch };
3198
3311
  };
3199
3312
  var useSearchEvents = (search, region) => {
3200
- const { loading, error, data, refetch } = (0, import_client18.useQuery)(SEARCH_EVENTS, {
3313
+ const { loading, error, data, refetch } = (0, import_client19.useQuery)(SEARCH_EVENTS, {
3201
3314
  fetchPolicy: "network-only",
3202
3315
  skip: search.length < 3,
3203
3316
  variables: { region, search }
@@ -3206,7 +3319,7 @@ var useSearchEvents = (search, region) => {
3206
3319
  return { error, eventsSearch, loading, refetch };
3207
3320
  };
3208
3321
  var useGetEventsNearMe = (location) => {
3209
- 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, {
3210
3323
  fetchPolicy: "network-only",
3211
3324
  skip: !location.latitude || !location.longitude,
3212
3325
  variables: {
@@ -3220,7 +3333,7 @@ var useGetEventsNearMe = (location) => {
3220
3333
  return { error, eventsNearMe, loading, refetch };
3221
3334
  };
3222
3335
  var useGetEventInfo = (eventId) => {
3223
- 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, {
3224
3337
  fetchPolicy: "network-only",
3225
3338
  skip: !eventId,
3226
3339
  variables: { eventId }
@@ -3230,14 +3343,14 @@ var useGetEventInfo = (eventId) => {
3230
3343
  };
3231
3344
 
3232
3345
  // src/graphql/hooks/notifications/hooksMutation.ts
3233
- var import_client21 = require("@apollo/client");
3346
+ var import_client22 = require("@apollo/client");
3234
3347
 
3235
3348
  // src/graphql/mutations/notification.ts
3236
- var import_client20 = require("@apollo/client");
3349
+ var import_client21 = require("@apollo/client");
3237
3350
 
3238
3351
  // src/graphql/queries/notification.ts
3239
- var import_client19 = require("@apollo/client");
3240
- var NOTIFICATION_FRAGMENT = import_client19.gql`
3352
+ var import_client20 = require("@apollo/client");
3353
+ var NOTIFICATION_FRAGMENT = import_client20.gql`
3241
3354
  fragment NotificationFields on Notification {
3242
3355
  _id
3243
3356
  userId
@@ -3254,7 +3367,7 @@ var NOTIFICATION_FRAGMENT = import_client19.gql`
3254
3367
  updatedAt
3255
3368
  }
3256
3369
  `;
3257
- var GET_USER_NOTIFICATIONS = import_client19.gql`
3370
+ var GET_USER_NOTIFICATIONS = import_client20.gql`
3258
3371
  query getUserNotifications($limit: Int, $offset: Int) {
3259
3372
  userNotifications(limit: $limit, offset: $offset) {
3260
3373
  ...NotificationFields
@@ -3262,7 +3375,7 @@ var GET_USER_NOTIFICATIONS = import_client19.gql`
3262
3375
  }
3263
3376
  ${NOTIFICATION_FRAGMENT}
3264
3377
  `;
3265
- var GET_NOTIFICATION_COUNT = import_client19.gql`
3378
+ var GET_NOTIFICATION_COUNT = import_client20.gql`
3266
3379
  query getNotificationCount {
3267
3380
  notificationCount {
3268
3381
  total
@@ -3272,7 +3385,7 @@ var GET_NOTIFICATION_COUNT = import_client19.gql`
3272
3385
  `;
3273
3386
 
3274
3387
  // src/graphql/mutations/notification.ts
3275
- var CREATE_BULK_NOTIFICATIONS = import_client20.gql`
3388
+ var CREATE_BULK_NOTIFICATIONS = import_client21.gql`
3276
3389
  mutation createBulkNotifications($input: CreateBulkNotificationInput!) {
3277
3390
  createBulkNotifications(input: $input) {
3278
3391
  ...NotificationFields
@@ -3280,7 +3393,7 @@ var CREATE_BULK_NOTIFICATIONS = import_client20.gql`
3280
3393
  }
3281
3394
  ${NOTIFICATION_FRAGMENT}
3282
3395
  `;
3283
- var MARK_NOTIFICATION_READ = import_client20.gql`
3396
+ var MARK_NOTIFICATION_READ = import_client21.gql`
3284
3397
  mutation markNotificationRead($_id: ID!) {
3285
3398
  markNotificationRead(_id: $_id) {
3286
3399
  ...NotificationFields
@@ -3288,17 +3401,17 @@ var MARK_NOTIFICATION_READ = import_client20.gql`
3288
3401
  }
3289
3402
  ${NOTIFICATION_FRAGMENT}
3290
3403
  `;
3291
- var MARK_ALL_NOTIFICATIONS_READ = import_client20.gql`
3404
+ var MARK_ALL_NOTIFICATIONS_READ = import_client21.gql`
3292
3405
  mutation markAllNotificationsRead {
3293
3406
  markAllNotificationsRead
3294
3407
  }
3295
3408
  `;
3296
- var DELETE_NOTIFICATION = import_client20.gql`
3409
+ var DELETE_NOTIFICATION = import_client21.gql`
3297
3410
  mutation deleteNotification($_id: ID!) {
3298
3411
  deleteNotification(_id: $_id)
3299
3412
  }
3300
3413
  `;
3301
- var DELETE_ALL_NOTIFICATIONS = import_client20.gql`
3414
+ var DELETE_ALL_NOTIFICATIONS = import_client21.gql`
3302
3415
  mutation deleteAllNotifications {
3303
3416
  deleteAllNotifications
3304
3417
  }
@@ -3306,13 +3419,13 @@ var DELETE_ALL_NOTIFICATIONS = import_client20.gql`
3306
3419
 
3307
3420
  // src/graphql/hooks/notifications/hooksMutation.ts
3308
3421
  var useCreateBulkNotifications = () => {
3309
- const [createBulkNotifications, { loading, error }] = (0, import_client21.useMutation)(
3422
+ const [createBulkNotifications, { loading, error }] = (0, import_client22.useMutation)(
3310
3423
  CREATE_BULK_NOTIFICATIONS
3311
3424
  );
3312
3425
  return { createBulkNotifications, error, loading };
3313
3426
  };
3314
3427
  var useMarkNotificationRead = () => {
3315
- const [markNotificationRead, { loading, error }] = (0, import_client21.useMutation)(
3428
+ const [markNotificationRead, { loading, error }] = (0, import_client22.useMutation)(
3316
3429
  MARK_NOTIFICATION_READ,
3317
3430
  {
3318
3431
  fetchPolicy: "no-cache",
@@ -3329,7 +3442,7 @@ var useMarkNotificationRead = () => {
3329
3442
  return { error, loading, markNotificationRead };
3330
3443
  };
3331
3444
  var useMarkAllNotificationsRead = () => {
3332
- const [markAllNotificationsRead, { loading, error }] = (0, import_client21.useMutation)(
3445
+ const [markAllNotificationsRead, { loading, error }] = (0, import_client22.useMutation)(
3333
3446
  MARK_ALL_NOTIFICATIONS_READ,
3334
3447
  {
3335
3448
  fetchPolicy: "no-cache",
@@ -3346,7 +3459,7 @@ var useMarkAllNotificationsRead = () => {
3346
3459
  return { error, loading, markAllNotificationsRead };
3347
3460
  };
3348
3461
  var useDeleteNotification = () => {
3349
- const [deleteNotification, { loading, error }] = (0, import_client21.useMutation)(
3462
+ const [deleteNotification, { loading, error }] = (0, import_client22.useMutation)(
3350
3463
  DELETE_NOTIFICATION,
3351
3464
  {
3352
3465
  fetchPolicy: "no-cache",
@@ -3363,7 +3476,7 @@ var useDeleteNotification = () => {
3363
3476
  return { deleteNotification, error, loading };
3364
3477
  };
3365
3478
  var useDeleteAllNotifications = () => {
3366
- const [deleteAllNotifications, { loading, error }] = (0, import_client21.useMutation)(
3479
+ const [deleteAllNotifications, { loading, error }] = (0, import_client22.useMutation)(
3367
3480
  DELETE_ALL_NOTIFICATIONS,
3368
3481
  {
3369
3482
  fetchPolicy: "no-cache",
@@ -3381,9 +3494,9 @@ var useDeleteAllNotifications = () => {
3381
3494
  };
3382
3495
 
3383
3496
  // src/graphql/hooks/notifications/hooksQuery.ts
3384
- var import_client22 = require("@apollo/client");
3497
+ var import_client23 = require("@apollo/client");
3385
3498
  var useGetUserNotifications = (limit, offset) => {
3386
- 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, {
3387
3500
  fetchPolicy: "no-cache",
3388
3501
  variables: { limit, offset }
3389
3502
  });
@@ -3395,7 +3508,7 @@ var useGetUserNotifications = (limit, offset) => {
3395
3508
  };
3396
3509
  };
3397
3510
  var useGetNotificationCount = () => {
3398
- 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, {
3399
3512
  fetchPolicy: "no-cache"
3400
3513
  });
3401
3514
  return {
@@ -3407,11 +3520,11 @@ var useGetNotificationCount = () => {
3407
3520
  };
3408
3521
 
3409
3522
  // src/graphql/hooks/notifications/hooksSubscription.ts
3410
- var import_client24 = require("@apollo/client");
3523
+ var import_client25 = require("@apollo/client");
3411
3524
 
3412
3525
  // src/graphql/subscriptions/notification.ts
3413
- var import_client23 = require("@apollo/client");
3414
- var GET_NOTIFICATIONS_SUBSCRIPTION = import_client23.gql`
3526
+ var import_client24 = require("@apollo/client");
3527
+ var GET_NOTIFICATIONS_SUBSCRIPTION = import_client24.gql`
3415
3528
  subscription {
3416
3529
  getUserNotifications {
3417
3530
  ...NotificationFields
@@ -3419,7 +3532,7 @@ var GET_NOTIFICATIONS_SUBSCRIPTION = import_client23.gql`
3419
3532
  }
3420
3533
  ${NOTIFICATION_FRAGMENT}
3421
3534
  `;
3422
- var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client23.gql`
3535
+ var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client24.gql`
3423
3536
  subscription {
3424
3537
  getNotificationCount {
3425
3538
  total
@@ -3430,7 +3543,7 @@ var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client23.gql`
3430
3543
 
3431
3544
  // src/graphql/hooks/notifications/hooksSubscription.ts
3432
3545
  var useGetUserNotificationsSubscription = () => {
3433
- const { data, loading, error } = (0, import_client24.useSubscription)(GET_NOTIFICATIONS_SUBSCRIPTION, {
3546
+ const { data, loading, error } = (0, import_client25.useSubscription)(GET_NOTIFICATIONS_SUBSCRIPTION, {
3434
3547
  fetchPolicy: "no-cache",
3435
3548
  shouldResubscribe: true
3436
3549
  });
@@ -3441,7 +3554,7 @@ var useGetUserNotificationsSubscription = () => {
3441
3554
  };
3442
3555
  };
3443
3556
  var useGetNotificationCountSubscription = () => {
3444
- 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, {
3445
3558
  fetchPolicy: "no-cache",
3446
3559
  shouldResubscribe: true
3447
3560
  });
@@ -3453,11 +3566,11 @@ var useGetNotificationCountSubscription = () => {
3453
3566
  };
3454
3567
 
3455
3568
  // src/graphql/hooks/poster.ts
3456
- var import_client26 = require("@apollo/client");
3569
+ var import_client27 = require("@apollo/client");
3457
3570
 
3458
3571
  // src/graphql/mutations/poster.ts
3459
- var import_client25 = require("@apollo/client");
3460
- var CREATE_POSTER_MUTATION = import_client25.gql`
3572
+ var import_client26 = require("@apollo/client");
3573
+ var CREATE_POSTER_MUTATION = import_client26.gql`
3461
3574
  mutation createPoster($input: PosterInputType!) {
3462
3575
  createPoster(input: $input) {
3463
3576
  message
@@ -3471,7 +3584,7 @@ var CREATE_POSTER_MUTATION = import_client25.gql`
3471
3584
 
3472
3585
  // src/graphql/hooks/poster.ts
3473
3586
  var useCreatePoster = () => {
3474
- const [createPoster, { loading, error }] = (0, import_client26.useMutation)(
3587
+ const [createPoster, { loading, error }] = (0, import_client27.useMutation)(
3475
3588
  CREATE_POSTER_MUTATION,
3476
3589
  {
3477
3590
  fetchPolicy: "no-cache",
@@ -3482,11 +3595,11 @@ var useCreatePoster = () => {
3482
3595
  };
3483
3596
 
3484
3597
  // src/graphql/hooks/pushToken.ts
3485
- var import_client28 = require("@apollo/client");
3598
+ var import_client29 = require("@apollo/client");
3486
3599
 
3487
3600
  // src/graphql/mutations/pushToken.ts
3488
- var import_client27 = require("@apollo/client");
3489
- var CREATE_PUSH_TOKEN_MUTATION = import_client27.gql`
3601
+ var import_client28 = require("@apollo/client");
3602
+ var CREATE_PUSH_TOKEN_MUTATION = import_client28.gql`
3490
3603
  mutation createPushToken($input: PushTokenInput!) {
3491
3604
  createPushToken(input: $input) {
3492
3605
  success
@@ -3496,7 +3609,7 @@ var CREATE_PUSH_TOKEN_MUTATION = import_client27.gql`
3496
3609
 
3497
3610
  // src/graphql/hooks/pushToken.ts
3498
3611
  var useCreatePushToken = () => {
3499
- const [createPushToken, { loading, error }] = (0, import_client28.useMutation)(
3612
+ const [createPushToken, { loading, error }] = (0, import_client29.useMutation)(
3500
3613
  CREATE_PUSH_TOKEN_MUTATION
3501
3614
  );
3502
3615
  return { createPushToken, error, loading };
@@ -3507,214 +3620,6 @@ var import_client31 = require("@apollo/client");
3507
3620
 
3508
3621
  // src/graphql/mutations/relation.ts
3509
3622
  var import_client30 = require("@apollo/client");
3510
-
3511
- // src/graphql/queries/relation.ts
3512
- var import_client29 = require("@apollo/client");
3513
- var RELATION_DATES_FRAGMENT = import_client29.gql`
3514
- fragment RelationDates on RelationDateType {
3515
- lastUpdateBy {
3516
- resourceId
3517
- userEmail
3518
- }
3519
- paymentReference
3520
- stallType {
3521
- ...StallTypeFields
3522
- }
3523
- startDate
3524
- startTime
3525
- status
3526
- }
3527
- ${STALL_TYPE_FIELDS_FRAGMENT}
3528
- `;
3529
- var RELATION_FIELDS_FRAGMENT = import_client29.gql`
3530
- fragment RelationFields on RelationType {
3531
- _id
3532
- active
3533
- apiMessage
3534
- chatId
3535
- createdAt
3536
- lastUpdateBy
3537
- eventId
3538
- relationDates {
3539
- ...RelationDates
3540
- }
3541
- relationType
3542
- vendorId
3543
- updatedAt
3544
- }
3545
- ${RELATION_DATES_FRAGMENT}
3546
- `;
3547
- var GET_RELATION = import_client29.gql`
3548
- query getRelation($_id: ID!) {
3549
- relation(_id: $_id) {
3550
- ...RelationFields
3551
- }
3552
- }
3553
- ${RELATION_FIELDS_FRAGMENT}
3554
- `;
3555
- var GET_RELATION_BY_EVENT_AND_VENDOR = import_client29.gql`
3556
- query getRelationByEventAndVendor($eventId: ID!, $vendorId: ID!) {
3557
- relationByEventAndVendor(eventId: $eventId, vendorId: $vendorId) {
3558
- ...RelationFields
3559
- }
3560
- }
3561
- ${RELATION_FIELDS_FRAGMENT}
3562
- `;
3563
- var GET_EVENT_RELATIONS = import_client29.gql`
3564
- query getEventRelations($eventId: ID!) {
3565
- eventRelations(eventId: $eventId) {
3566
- ...RelationFields
3567
- }
3568
- }
3569
- ${RELATION_FIELDS_FRAGMENT}
3570
- `;
3571
- var GET_VENDOR_RELATIONS = import_client29.gql`
3572
- query getVendorRelations($vendorId: ID!) {
3573
- vendorRelations(vendorId: $vendorId) {
3574
- ...RelationFields
3575
- }
3576
- }
3577
- ${RELATION_FIELDS_FRAGMENT}
3578
- `;
3579
- var GET_RESOURCE_CONNECTIONS = import_client29.gql`
3580
- query getResourceConnections(
3581
- $resourceId: ID!
3582
- $resourceType: ResourceTypeEnum!
3583
- ) {
3584
- resourceConnections(resourceId: $resourceId, resourceType: $resourceType) {
3585
- events {
3586
- _id
3587
- active
3588
- adIds
3589
- cover {
3590
- ...ResourceImageFields
3591
- }
3592
- contactDetails {
3593
- ...ContactDetailsFields
3594
- }
3595
- createdAt
3596
- dateTime {
3597
- ...EventDateTimeFields
3598
- }
3599
- description
3600
- deletedAt
3601
- images {
3602
- ...ResourceImageFields
3603
- }
3604
- eventType
3605
- location {
3606
- ...EventLocationFields
3607
- }
3608
- logo {
3609
- ...ResourceImageFields
3610
- }
3611
- eventInfoId
3612
- name
3613
- nzbn
3614
- owner {
3615
- ...OwnerFields
3616
- }
3617
- partners {
3618
- ...PartnerFields
3619
- }
3620
- promoCodes
3621
- provider
3622
- posterUsage {
3623
- ...PosterUsageFields
3624
- }
3625
- region
3626
- relationIds
3627
- socialMedia {
3628
- ...SocialMediaFields
3629
- }
3630
- rainOrShine
3631
- tags
3632
- updatedAt
3633
- relationDates {
3634
- ...RelationDates
3635
- }
3636
- }
3637
- vendors {
3638
- _id
3639
- active
3640
- adIds
3641
- availability {
3642
- corporate
3643
- private
3644
- school
3645
- }
3646
- vendorInfoId
3647
- categories {
3648
- ...CategoryFields
3649
- }
3650
- contactDetails {
3651
- ...ContactDetailsFields
3652
- }
3653
- cover {
3654
- ...ResourceImageFields
3655
- }
3656
- createdAt
3657
- description
3658
- deletedAt
3659
- images {
3660
- ...ResourceImageFields
3661
- }
3662
- locations {
3663
- dateTime {
3664
- ...VendorDateTimeFields
3665
- }
3666
- description
3667
- location {
3668
- ...VendorLocationFields
3669
- }
3670
- }
3671
- logo {
3672
- ...ResourceImageFields
3673
- }
3674
- multiLocation
3675
- name
3676
- owner {
3677
- ...OwnerFields
3678
- }
3679
- partners {
3680
- ...PartnerFields
3681
- }
3682
- products {
3683
- ...VendorMenuFields
3684
- }
3685
- promoCodes
3686
- posterUsage {
3687
- ...PosterUsageFields
3688
- }
3689
- region
3690
- relationIds
3691
- socialMedia {
3692
- ...SocialMediaFields
3693
- }
3694
- updatedAt
3695
- relationDates {
3696
- ...RelationDates
3697
- }
3698
- vendorType
3699
- }
3700
- }
3701
- }
3702
- ${EVENT_DATETIME_FIELDS_FRAGMENT}
3703
- ${EVENT_LOCATION_FIELDS_FRAGMENT}
3704
- ${OWNER_FIELDS_FRAGMENT}
3705
- ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
3706
- ${CATEGORY_FIELDS_FRAGMENT}
3707
- ${VENDOR_DATETIME_FIELDS_FRAGMENT}
3708
- ${VENDOR_LOCATION_FIELDS_FRAGMENT}
3709
- ${RELATION_DATES_FRAGMENT}
3710
- ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
3711
- ${POSTER_USAGE_FIELDS_FRAGMENT}
3712
- ${PARTNER_FIELDS_FRAGMENT}
3713
- ${VENDOR_MENU_FIELDS_FRAGMENT}
3714
- ${CONTACT_DETAILS_FIELDS_FRAGMENT}
3715
- `;
3716
-
3717
- // src/graphql/mutations/relation.ts
3718
3623
  var CREATE_RELATION_MUTATION = import_client30.gql`
3719
3624
  mutation createRelation($input: RelationInputType!) {
3720
3625
  createRelation(input: $input) {
@@ -4039,8 +3944,13 @@ var useCreateVendorInfo = () => {
4039
3944
  // Pass the vendorId for refetching
4040
3945
  },
4041
3946
  {
4042
- fetchPolicy: "no-cache",
3947
+ fetchPolicy: "network-only",
4043
3948
  query: GET_USER_VENDORS
3949
+ },
3950
+ {
3951
+ fetchPolicy: "no-cache",
3952
+ query: GET_VENDOR,
3953
+ variables: { _id: vendorId }
4044
3954
  }
4045
3955
  ];
4046
3956
  }
@@ -5206,7 +5116,7 @@ var globalDefaultValues = {
5206
5116
  var defaultEventFormValues = {
5207
5117
  ...globalDefaultValues,
5208
5118
  dateTime: [],
5209
- eventType: "market" /* MARKET */,
5119
+ eventType: "Market" /* MARKET */,
5210
5120
  location: {
5211
5121
  city: "",
5212
5122
  coordinates: [0, 0],
@@ -5245,7 +5155,7 @@ var defaultVendorFormValues = {
5245
5155
  locations: null,
5246
5156
  multiLocation: false,
5247
5157
  products: null,
5248
- vendorType: "stallholder" /* STALLHOLDER */
5158
+ vendorType: "Stallholder" /* STALLHOLDER */
5249
5159
  };
5250
5160
  var defaultVendorInfoFormValues = {
5251
5161
  compliance: { foodBeverageLicense: false, liabilityInsurance: false },
@@ -5284,7 +5194,8 @@ function mapBaseResourceTypeToFormData(data) {
5284
5194
  partners: data.partners,
5285
5195
  promoCodes: data.promoCodes,
5286
5196
  region: data.region,
5287
- socialMedia: data.socialMedia
5197
+ socialMedia: data.socialMedia,
5198
+ termsAgreement: data.termsAgreement
5288
5199
  };
5289
5200
  }
5290
5201
 
@@ -5338,6 +5249,7 @@ function useVendorForm(data) {
5338
5249
  promoCodes,
5339
5250
  region,
5340
5251
  socialMedia: socialMedia2,
5252
+ termsAgreement,
5341
5253
  vendorType
5342
5254
  } = getValues();
5343
5255
  return {
@@ -5363,6 +5275,7 @@ function useVendorForm(data) {
5363
5275
  promoCodes,
5364
5276
  region,
5365
5277
  socialMedia: socialMedia2,
5278
+ termsAgreement,
5366
5279
  vendorType
5367
5280
  },
5368
5281
  formState: { errors },
@@ -5491,7 +5404,8 @@ function useEventForm(data) {
5491
5404
  rainOrShine,
5492
5405
  region,
5493
5406
  socialMedia: socialMedia2,
5494
- tags
5407
+ tags,
5408
+ termsAgreement
5495
5409
  } = getValues();
5496
5410
  return {
5497
5411
  control,
@@ -5517,7 +5431,8 @@ function useEventForm(data) {
5517
5431
  rainOrShine,
5518
5432
  region,
5519
5433
  socialMedia: socialMedia2,
5520
- tags
5434
+ tags,
5435
+ termsAgreement
5521
5436
  },
5522
5437
  formState: { errors },
5523
5438
  handleSubmit,