@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
@@ -104,7 +104,7 @@ __export(graphql_exports, {
104
104
  module.exports = __toCommonJS(graphql_exports);
105
105
 
106
106
  // src/graphql/hooks/admin/hooksMutation.ts
107
- var import_client5 = require("@apollo/client");
107
+ var import_client6 = require("@apollo/client");
108
108
 
109
109
  // src/graphql/mutations/admin.ts
110
110
  var import_client = require("@apollo/client");
@@ -119,7 +119,7 @@ var ADMIN_UPDATE_RESOURCE_TYPE_MUTATION = import_client.gql`
119
119
  `;
120
120
 
121
121
  // src/graphql/queries/event.ts
122
- var import_client3 = require("@apollo/client");
122
+ var import_client5 = require("@apollo/client");
123
123
 
124
124
  // src/graphql/queries/global.ts
125
125
  var import_client2 = require("@apollo/client");
@@ -240,17 +240,13 @@ var CONTACT_DETAILS_FIELDS_FRAGMENT = import_client2.gql`
240
240
  }
241
241
  `;
242
242
 
243
- // src/graphql/queries/event.ts
244
- var EVENT_DATETIME_FIELDS_FRAGMENT = import_client3.gql`
245
- fragment EventDateTimeFields on EventDateTimeType {
246
- endDate
247
- endTime
248
- startDate
249
- startTime
250
- }
251
- `;
252
- var EVENT_LOCATION_FIELDS_FRAGMENT = import_client3.gql`
253
- fragment EventLocationFields on EventLocationType {
243
+ // src/graphql/queries/relation.ts
244
+ var import_client4 = require("@apollo/client");
245
+
246
+ // src/graphql/queries/vendor.ts
247
+ var import_client3 = require("@apollo/client");
248
+ var VENDOR_LOCATION_FIELDS_FRAGMENT = import_client3.gql`
249
+ fragment VendorLocationFields on VendorLocationType {
254
250
  city
255
251
  coordinates
256
252
  country
@@ -261,152 +257,286 @@ var EVENT_LOCATION_FIELDS_FRAGMENT = import_client3.gql`
261
257
  type
262
258
  }
263
259
  `;
264
- var EVENT_INFO = import_client3.gql`
265
- fragment EventInfoFields on EventInfoType {
266
- _id
267
- applicationDeadlineHours
268
- dateTime {
269
- endDate
270
- endTime
271
- stallTypes {
272
- ...StallTypeFields
273
- }
274
- startDate
275
- startTime
276
- }
277
- eventId
278
- packInTime
279
- paymentDueHours
280
- paymentInfo {
281
- accountHolderName
282
- accountNumber
283
- link
284
- paymentMethod
285
- }
286
- requirements {
287
- category
288
- label
289
- value
290
- }
260
+ var VENDOR_DATETIME_FIELDS_FRAGMENT = import_client3.gql`
261
+ fragment VendorDateTimeFields on VendorDateTimeType {
262
+ endDate
263
+ endTime
264
+ startDate
265
+ startTime
291
266
  }
292
- ${STALL_TYPE_FIELDS_FRAGMENT}
293
267
  `;
294
- var EVENT = import_client3.gql`
295
- fragment EventFields on EventType {
268
+ var VENDOR_MENU_FIELDS_FRAGMENT = import_client3.gql`
269
+ fragment VendorMenuFields on VendorMenuType {
270
+ description
271
+ name
272
+ price
273
+ productGroups
274
+ }
275
+ `;
276
+ var VENDOR = import_client3.gql`
277
+ fragment VendorFields on VendorType {
296
278
  _id
297
279
  active
298
280
  adIds
299
- cover {
300
- ...ResourceImageFields
281
+ availability {
282
+ corporate
283
+ private
284
+ school
285
+ }
286
+ vendorInfoId
287
+ categories {
288
+ ...CategoryFields
301
289
  }
302
- createdAt
303
290
  contactDetails {
304
291
  ...ContactDetailsFields
305
292
  }
306
- dateTime {
307
- ...EventDateTimeFields
293
+ cover {
294
+ ...ResourceImageFields
308
295
  }
296
+ createdAt
309
297
  description
310
298
  deletedAt
311
299
  images {
312
300
  ...ResourceImageFields
313
301
  }
314
- eventType
315
- location {
316
- ...EventLocationFields
302
+ locations {
303
+ dateTime {
304
+ ...VendorDateTimeFields
305
+ }
306
+ description
307
+ location {
308
+ ...VendorLocationFields
309
+ }
317
310
  }
318
311
  logo {
319
312
  ...ResourceImageFields
320
313
  }
321
- eventInfoId
314
+ multiLocation
322
315
  name
323
- nzbn
324
316
  owner {
325
317
  ...OwnerFields
326
318
  }
327
319
  partners {
328
320
  ...PartnerFields
329
321
  }
322
+ products {
323
+ ...VendorMenuFields
324
+ }
330
325
  promoCodes
331
- provider
332
326
  posterUsage {
333
327
  ...PosterUsageFields
334
328
  }
335
329
  region
336
330
  relationIds
331
+ relationDates {
332
+ ...RelationDates
333
+ }
337
334
  socialMedia {
338
335
  ...SocialMediaFields
339
336
  }
340
- rainOrShine
341
- tags
342
337
  termsAgreement {
343
338
  ...TermsAgreementFields
344
339
  }
345
340
  updatedAt
341
+ vendorType
346
342
  }
347
- ${EVENT_DATETIME_FIELDS_FRAGMENT}
348
- ${EVENT_LOCATION_FIELDS_FRAGMENT}
343
+ ${CATEGORY_FIELDS_FRAGMENT}
344
+ ${VENDOR_DATETIME_FIELDS_FRAGMENT}
345
+ ${VENDOR_LOCATION_FIELDS_FRAGMENT}
349
346
  ${OWNER_FIELDS_FRAGMENT}
350
347
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
351
348
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
352
349
  ${POSTER_USAGE_FIELDS_FRAGMENT}
353
350
  ${PARTNER_FIELDS_FRAGMENT}
351
+ ${VENDOR_MENU_FIELDS_FRAGMENT}
354
352
  ${CONTACT_DETAILS_FIELDS_FRAGMENT}
355
353
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
354
+ ${RELATION_DATES_FRAGMENT}
356
355
  `;
357
- var GET_EVENTS = import_client3.gql`
358
- query getEvents {
359
- events {
360
- ...EventFields
356
+ var VENDOR_ATTRIBUTES_FRAGMENT = import_client3.gql`
357
+ fragment VendorAttributesFields on VendorAttributesType {
358
+ details
359
+ isRequired
360
+ }
361
+ `;
362
+ var VENDOR_INFO = import_client3.gql`
363
+ fragment VendorInfoFields on VendorInfoType {
364
+ _id
365
+ compliance {
366
+ foodBeverageLicense
367
+ liabilityInsurance
368
+ }
369
+ documents {
370
+ ...ResourceImageFields
371
+ }
372
+ requirements {
373
+ electricity {
374
+ ...VendorAttributesFields
375
+ }
376
+ gazebo {
377
+ ...VendorAttributesFields
378
+ }
379
+ table {
380
+ ...VendorAttributesFields
381
+ }
382
+ }
383
+ product {
384
+ foodFlavors
385
+ packaging
386
+ priceRange {
387
+ max
388
+ min
389
+ }
390
+ producedIn
391
+ }
392
+ stallInfo {
393
+ size {
394
+ depth
395
+ width
396
+ }
361
397
  }
398
+ vendorId
362
399
  }
363
- ${EVENT}
400
+ ${VENDOR_ATTRIBUTES_FRAGMENT}
401
+ ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
364
402
  `;
365
- var GET_EVENT = import_client3.gql`
366
- query getEvent($_id: ID!) {
367
- event(_id: $_id) {
368
- ...EventFields
403
+ var GET_VENDORS = import_client3.gql`
404
+ query getVendors {
405
+ vendors {
406
+ ...VendorFields
369
407
  }
370
408
  }
371
- ${EVENT}
409
+ ${VENDOR}
372
410
  `;
373
- var GET_EVENTS_BY_REGION = import_client3.gql`
374
- query getEventsByRegion($region: String!) {
375
- eventsByRegion(region: $region) {
376
- ...EventFields
411
+ var GET_VENDOR = import_client3.gql`
412
+ query getVendor($_id: ID!) {
413
+ vendor(_id: $_id) {
414
+ ...VendorFields
377
415
  }
378
416
  }
379
- ${EVENT}
417
+ ${VENDOR}
380
418
  `;
381
- var SEARCH_EVENTS = import_client3.gql`
382
- query searchEvents($search: String!, $region: String) {
383
- eventsSearch(search: $search, region: $region) {
384
- ...EventFields
419
+ var GET_VENDORS_BY_REGION = import_client3.gql`
420
+ query getVendorsByRegion($region: String!) {
421
+ vendorsByRegion(region: $region) {
422
+ ...VendorFields
385
423
  }
386
424
  }
387
- ${EVENT}
425
+ ${VENDOR}
388
426
  `;
389
- var GET_EVENTS_NEAR_ME = import_client3.gql`
390
- query getEventsNearMe($latitude: Float!, $longitude: Float!, $radius: Int) {
391
- eventsNearMe(latitude: $latitude, longitude: $longitude, radius: $radius) {
392
- ...EventFields
427
+ var SEARCH_VENDORS = import_client3.gql`
428
+ query searchVendors($search: String!, $region: String) {
429
+ vendorSearch(search: $search, region: $region) {
430
+ ...VendorFields
393
431
  }
394
432
  }
395
- ${EVENT}
433
+ ${VENDOR}
396
434
  `;
397
- var GET_EVENT_INFO = import_client3.gql`
398
- query getEventInfo($eventId: ID!) {
399
- eventInfo(eventId: $eventId) {
400
- ...EventInfoFields
435
+ var GET_VENDOR_INFO = import_client3.gql`
436
+ query getVendorInfo($vendorId: ID!) {
437
+ vendorInfo(vendorId: $vendorId) {
438
+ ...VendorInfoFields
401
439
  }
402
440
  }
403
- ${EVENT_INFO}
441
+ ${VENDOR_INFO}
404
442
  `;
405
443
 
406
- // src/graphql/queries/vendor.ts
407
- var import_client4 = require("@apollo/client");
408
- var VENDOR_LOCATION_FIELDS_FRAGMENT = import_client4.gql`
409
- fragment VendorLocationFields on VendorLocationType {
444
+ // src/graphql/queries/relation.ts
445
+ var RELATION_DATES_FRAGMENT = import_client4.gql`
446
+ fragment RelationDates on RelationDateType {
447
+ lastUpdateBy {
448
+ resourceId
449
+ userEmail
450
+ }
451
+ paymentReference
452
+ stallType {
453
+ ...StallTypeFields
454
+ }
455
+ startDate
456
+ startTime
457
+ status
458
+ }
459
+ ${STALL_TYPE_FIELDS_FRAGMENT}
460
+ `;
461
+ var RELATION_FIELDS_FRAGMENT = import_client4.gql`
462
+ fragment RelationFields on RelationType {
463
+ _id
464
+ active
465
+ apiMessage
466
+ chatId
467
+ createdAt
468
+ lastUpdateBy
469
+ eventId
470
+ relationDates {
471
+ ...RelationDates
472
+ }
473
+ relationType
474
+ vendorId
475
+ updatedAt
476
+ }
477
+ ${RELATION_DATES_FRAGMENT}
478
+ `;
479
+ var GET_RELATION = import_client4.gql`
480
+ query getRelation($_id: ID!) {
481
+ relation(_id: $_id) {
482
+ ...RelationFields
483
+ }
484
+ }
485
+ ${RELATION_FIELDS_FRAGMENT}
486
+ `;
487
+ var GET_RELATION_BY_EVENT_AND_VENDOR = import_client4.gql`
488
+ query getRelationByEventAndVendor($eventId: ID!, $vendorId: ID!) {
489
+ relationByEventAndVendor(eventId: $eventId, vendorId: $vendorId) {
490
+ ...RelationFields
491
+ }
492
+ }
493
+ ${RELATION_FIELDS_FRAGMENT}
494
+ `;
495
+ var GET_EVENT_RELATIONS = import_client4.gql`
496
+ query getEventRelations($eventId: ID!) {
497
+ eventRelations(eventId: $eventId) {
498
+ ...RelationFields
499
+ }
500
+ }
501
+ ${RELATION_FIELDS_FRAGMENT}
502
+ `;
503
+ var GET_VENDOR_RELATIONS = import_client4.gql`
504
+ query getVendorRelations($vendorId: ID!) {
505
+ vendorRelations(vendorId: $vendorId) {
506
+ ...RelationFields
507
+ }
508
+ }
509
+ ${RELATION_FIELDS_FRAGMENT}
510
+ `;
511
+ var GET_RESOURCE_CONNECTIONS = import_client4.gql`
512
+ query getResourceConnections(
513
+ $resourceId: ID!
514
+ $resourceType: ResourceTypeEnum!
515
+ ) {
516
+ resourceConnections(resourceId: $resourceId, resourceType: $resourceType) {
517
+ events {
518
+ ...EventFields
519
+ }
520
+ vendors {
521
+ ...VendorFields
522
+ }
523
+ }
524
+ }
525
+ ${VENDOR}
526
+ ${EVENT}
527
+ `;
528
+
529
+ // src/graphql/queries/event.ts
530
+ var EVENT_DATETIME_FIELDS_FRAGMENT2 = import_client5.gql`
531
+ fragment EventDateTimeFields on EventDateTimeType {
532
+ endDate
533
+ endTime
534
+ startDate
535
+ startTime
536
+ }
537
+ `;
538
+ var EVENT_LOCATION_FIELDS_FRAGMENT2 = import_client5.gql`
539
+ fragment EventLocationFields on EventLocationType {
410
540
  city
411
541
  coordinates
412
542
  country
@@ -417,189 +547,155 @@ var VENDOR_LOCATION_FIELDS_FRAGMENT = import_client4.gql`
417
547
  type
418
548
  }
419
549
  `;
420
- var VENDOR_DATETIME_FIELDS_FRAGMENT = import_client4.gql`
421
- fragment VendorDateTimeFields on VendorDateTimeType {
422
- endDate
423
- endTime
424
- startDate
425
- startTime
426
- }
427
- `;
428
- var VENDOR_MENU_FIELDS_FRAGMENT = import_client4.gql`
429
- fragment VendorMenuFields on VendorMenuType {
430
- description
431
- name
432
- price
433
- productGroups
550
+ var EVENT_INFO = import_client5.gql`
551
+ fragment EventInfoFields on EventInfoType {
552
+ _id
553
+ applicationDeadlineHours
554
+ dateTime {
555
+ endDate
556
+ endTime
557
+ stallTypes {
558
+ ...StallTypeFields
559
+ }
560
+ startDate
561
+ startTime
562
+ }
563
+ eventId
564
+ packInTime
565
+ paymentDueHours
566
+ paymentInfo {
567
+ accountHolderName
568
+ accountNumber
569
+ link
570
+ paymentMethod
571
+ }
572
+ requirements {
573
+ category
574
+ label
575
+ value
576
+ }
434
577
  }
578
+ ${STALL_TYPE_FIELDS_FRAGMENT}
435
579
  `;
436
- var VENDOR = import_client4.gql`
437
- fragment VendorFields on VendorType {
580
+ var EVENT = import_client5.gql`
581
+ fragment EventFields on EventType {
438
582
  _id
439
583
  active
440
584
  adIds
441
- availability {
442
- corporate
443
- private
444
- school
445
- }
446
- vendorInfoId
447
- categories {
448
- ...CategoryFields
585
+ cover {
586
+ ...ResourceImageFields
449
587
  }
588
+ createdAt
450
589
  contactDetails {
451
590
  ...ContactDetailsFields
452
591
  }
453
- cover {
454
- ...ResourceImageFields
592
+ dateTime {
593
+ ...EventDateTimeFields
455
594
  }
456
- createdAt
457
595
  description
458
596
  deletedAt
459
597
  images {
460
598
  ...ResourceImageFields
461
599
  }
462
- locations {
463
- dateTime {
464
- ...VendorDateTimeFields
465
- }
466
- description
467
- location {
468
- ...VendorLocationFields
469
- }
600
+ eventType
601
+ location {
602
+ ...EventLocationFields
470
603
  }
471
604
  logo {
472
605
  ...ResourceImageFields
473
606
  }
474
- multiLocation
607
+ eventInfoId
475
608
  name
609
+ nzbn
476
610
  owner {
477
611
  ...OwnerFields
478
612
  }
479
613
  partners {
480
614
  ...PartnerFields
481
615
  }
482
- products {
483
- ...VendorMenuFields
484
- }
485
616
  promoCodes
617
+ provider
486
618
  posterUsage {
487
619
  ...PosterUsageFields
488
620
  }
489
621
  region
490
622
  relationIds
623
+ relationDates {
624
+ ...RelationDates
625
+ }
491
626
  socialMedia {
492
627
  ...SocialMediaFields
493
628
  }
629
+ rainOrShine
630
+ tags
494
631
  termsAgreement {
495
632
  ...TermsAgreementFields
496
633
  }
497
634
  updatedAt
498
- vendorType
499
635
  }
500
- ${CATEGORY_FIELDS_FRAGMENT}
501
- ${VENDOR_DATETIME_FIELDS_FRAGMENT}
502
- ${VENDOR_LOCATION_FIELDS_FRAGMENT}
636
+ ${EVENT_DATETIME_FIELDS_FRAGMENT2}
637
+ ${EVENT_LOCATION_FIELDS_FRAGMENT2}
503
638
  ${OWNER_FIELDS_FRAGMENT}
504
639
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
505
640
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
506
641
  ${POSTER_USAGE_FIELDS_FRAGMENT}
507
642
  ${PARTNER_FIELDS_FRAGMENT}
508
- ${VENDOR_MENU_FIELDS_FRAGMENT}
509
643
  ${CONTACT_DETAILS_FIELDS_FRAGMENT}
510
644
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
645
+ ${RELATION_DATES_FRAGMENT}
511
646
  `;
512
- var VENDOR_ATTRIBUTES_FRAGMENT = import_client4.gql`
513
- fragment VendorAttributesFields on VendorAttributesType {
514
- details
515
- isRequired
516
- }
517
- `;
518
- var VENDOR_INFO = import_client4.gql`
519
- fragment VendorInfoFields on VendorInfoType {
520
- _id
521
- compliance {
522
- foodBeverageLicense
523
- liabilityInsurance
524
- }
525
- documents {
526
- ...ResourceImageFields
527
- }
528
- requirements {
529
- electricity {
530
- ...VendorAttributesFields
531
- }
532
- gazebo {
533
- ...VendorAttributesFields
534
- }
535
- table {
536
- ...VendorAttributesFields
537
- }
538
- }
539
- product {
540
- foodFlavors
541
- packaging
542
- priceRange {
543
- max
544
- min
545
- }
546
- producedIn
547
- }
548
- stallInfo {
549
- size {
550
- depth
551
- width
552
- }
647
+ var GET_EVENTS = import_client5.gql`
648
+ query getEvents {
649
+ events {
650
+ ...EventFields
553
651
  }
554
- vendorId
555
652
  }
556
- ${VENDOR_ATTRIBUTES_FRAGMENT}
557
- ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
653
+ ${EVENT}
558
654
  `;
559
- var GET_VENDORS = import_client4.gql`
560
- query getVendors {
561
- vendors {
562
- ...VendorFields
655
+ var GET_EVENT = import_client5.gql`
656
+ query getEvent($_id: ID!) {
657
+ event(_id: $_id) {
658
+ ...EventFields
563
659
  }
564
660
  }
565
- ${VENDOR}
661
+ ${EVENT}
566
662
  `;
567
- var GET_VENDOR = import_client4.gql`
568
- query getVendor($_id: ID!) {
569
- vendor(_id: $_id) {
570
- ...VendorFields
663
+ var GET_EVENTS_BY_REGION = import_client5.gql`
664
+ query getEventsByRegion($region: String!) {
665
+ eventsByRegion(region: $region) {
666
+ ...EventFields
571
667
  }
572
668
  }
573
- ${VENDOR}
669
+ ${EVENT}
574
670
  `;
575
- var GET_VENDORS_BY_REGION = import_client4.gql`
576
- query getVendorsByRegion($region: String!) {
577
- vendorsByRegion(region: $region) {
578
- ...VendorFields
671
+ var SEARCH_EVENTS = import_client5.gql`
672
+ query searchEvents($search: String!, $region: String) {
673
+ eventsSearch(search: $search, region: $region) {
674
+ ...EventFields
579
675
  }
580
676
  }
581
- ${VENDOR}
677
+ ${EVENT}
582
678
  `;
583
- var SEARCH_VENDORS = import_client4.gql`
584
- query searchVendors($search: String!, $region: String) {
585
- vendorSearch(search: $search, region: $region) {
586
- ...VendorFields
679
+ var GET_EVENTS_NEAR_ME = import_client5.gql`
680
+ query getEventsNearMe($latitude: Float!, $longitude: Float!, $radius: Int) {
681
+ eventsNearMe(latitude: $latitude, longitude: $longitude, radius: $radius) {
682
+ ...EventFields
587
683
  }
588
684
  }
589
- ${VENDOR}
685
+ ${EVENT}
590
686
  `;
591
- var GET_VENDOR_INFO = import_client4.gql`
592
- query getVendorInfo($vendorId: ID!) {
593
- vendorInfo(vendorId: $vendorId) {
594
- ...VendorInfoFields
687
+ var GET_EVENT_INFO = import_client5.gql`
688
+ query getEventInfo($eventId: ID!) {
689
+ eventInfo(eventId: $eventId) {
690
+ ...EventInfoFields
595
691
  }
596
692
  }
597
- ${VENDOR_INFO}
693
+ ${EVENT_INFO}
598
694
  `;
599
695
 
600
696
  // src/graphql/hooks/admin/hooksMutation.ts
601
697
  var useAdminUpdateResourceType = () => {
602
- const [adminUpdateResourceType, { loading, error }] = (0, import_client5.useMutation)(
698
+ const [adminUpdateResourceType, { loading, error }] = (0, import_client6.useMutation)(
603
699
  ADMIN_UPDATE_RESOURCE_TYPE_MUTATION,
604
700
  {
605
701
  awaitRefetchQueries: true,
@@ -626,11 +722,11 @@ var useAdminUpdateResourceType = () => {
626
722
  };
627
723
 
628
724
  // src/graphql/hooks/auth.ts
629
- var import_client7 = require("@apollo/client");
725
+ var import_client8 = require("@apollo/client");
630
726
 
631
727
  // src/graphql/mutations/auth.ts
632
- var import_client6 = require("@apollo/client");
633
- var REGISTER_MUTATION = import_client6.gql`
728
+ var import_client7 = require("@apollo/client");
729
+ var REGISTER_MUTATION = import_client7.gql`
634
730
  mutation register($input: RegisterInputType!) {
635
731
  register(input: $input) {
636
732
  message
@@ -643,7 +739,7 @@ var REGISTER_MUTATION = import_client6.gql`
643
739
  }
644
740
  ${USER_FIELDS_FRAGMENT}
645
741
  `;
646
- var LOGIN_MUTATION = import_client6.gql`
742
+ var LOGIN_MUTATION = import_client7.gql`
647
743
  mutation login($input: LoginInputType!) {
648
744
  login(input: $input) {
649
745
  message
@@ -656,14 +752,14 @@ var LOGIN_MUTATION = import_client6.gql`
656
752
  }
657
753
  ${USER_FIELDS_FRAGMENT}
658
754
  `;
659
- var LOGOUT_MUTATION = import_client6.gql`
755
+ var LOGOUT_MUTATION = import_client7.gql`
660
756
  mutation logout {
661
757
  logout {
662
758
  message
663
759
  }
664
760
  }
665
761
  `;
666
- var REFRESH_TOKEN_MUTATION = import_client6.gql`
762
+ var REFRESH_TOKEN_MUTATION = import_client7.gql`
667
763
  mutation refreshToken($input: RefreshTokenInputType!) {
668
764
  refreshToken(input: $input) {
669
765
  refreshToken
@@ -671,21 +767,21 @@ var REFRESH_TOKEN_MUTATION = import_client6.gql`
671
767
  }
672
768
  }
673
769
  `;
674
- var RESET_PASSWORD_MUTATION = import_client6.gql`
770
+ var RESET_PASSWORD_MUTATION = import_client7.gql`
675
771
  mutation resetPassword($input: ResetPasswordInputType!) {
676
772
  resetPassword(input: $input) {
677
773
  message
678
774
  }
679
775
  }
680
776
  `;
681
- var REQUEST_PASSWORD_RESET_MUTATION = import_client6.gql`
777
+ var REQUEST_PASSWORD_RESET_MUTATION = import_client7.gql`
682
778
  mutation requestPasswordReset($input: RequestPasswordResetInputType!) {
683
779
  requestPasswordReset(input: $input) {
684
780
  message
685
781
  }
686
782
  }
687
783
  `;
688
- var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client6.gql`
784
+ var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client7.gql`
689
785
  mutation validateVerificationToken(
690
786
  $input: ValidateVerificationTokenInputType!
691
787
  ) {
@@ -697,51 +793,51 @@ var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client6.gql`
697
793
 
698
794
  // src/graphql/hooks/auth.ts
699
795
  var useRegister = () => {
700
- const [register, { loading, error }] = (0, import_client7.useMutation)(REGISTER_MUTATION);
796
+ const [register, { loading, error }] = (0, import_client8.useMutation)(REGISTER_MUTATION);
701
797
  return { error, loading, register };
702
798
  };
703
799
  var useLogin = () => {
704
- const [login, { loading, error }] = (0, import_client7.useMutation)(LOGIN_MUTATION);
800
+ const [login, { loading, error }] = (0, import_client8.useMutation)(LOGIN_MUTATION);
705
801
  return { error, loading, login };
706
802
  };
707
803
  var useLogout = () => {
708
- const [logout, { loading, error }] = (0, import_client7.useMutation)(LOGOUT_MUTATION);
804
+ const [logout, { loading, error }] = (0, import_client8.useMutation)(LOGOUT_MUTATION);
709
805
  return { error, loading, logout };
710
806
  };
711
807
  var useRefreshToken = () => {
712
- const [refreshToken, { loading, error }] = (0, import_client7.useMutation)(
808
+ const [refreshToken, { loading, error }] = (0, import_client8.useMutation)(
713
809
  REFRESH_TOKEN_MUTATION
714
810
  );
715
811
  return { error, loading, refreshToken };
716
812
  };
717
813
  var useRequestPasswordReset = () => {
718
- const [requestPasswordReset, { loading, error }] = (0, import_client7.useMutation)(
814
+ const [requestPasswordReset, { loading, error }] = (0, import_client8.useMutation)(
719
815
  REQUEST_PASSWORD_RESET_MUTATION
720
816
  );
721
817
  return { error, loading, requestPasswordReset };
722
818
  };
723
819
  var useValidateVerificationToken = () => {
724
- const [validateVerificationToken, { loading, error }] = (0, import_client7.useMutation)(
820
+ const [validateVerificationToken, { loading, error }] = (0, import_client8.useMutation)(
725
821
  VALIDATE_VERIFICATION_TOKEN_MUTATION
726
822
  );
727
823
  return { error, loading, validateVerificationToken };
728
824
  };
729
825
  var useResetPassword = () => {
730
- const [resetPassword, { loading, error }] = (0, import_client7.useMutation)(
826
+ const [resetPassword, { loading, error }] = (0, import_client8.useMutation)(
731
827
  RESET_PASSWORD_MUTATION
732
828
  );
733
829
  return { error, loading, resetPassword };
734
830
  };
735
831
 
736
832
  // src/graphql/hooks/chat/hooksMutation.ts
737
- var import_client10 = require("@apollo/client");
833
+ var import_client11 = require("@apollo/client");
738
834
 
739
835
  // src/graphql/mutations/chat.ts
740
- var import_client9 = require("@apollo/client");
836
+ var import_client10 = require("@apollo/client");
741
837
 
742
838
  // src/graphql/queries/chat.ts
743
- var import_client8 = require("@apollo/client");
744
- var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client8.gql`
839
+ var import_client9 = require("@apollo/client");
840
+ var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client9.gql`
745
841
  fragment ChatMessageFields on ChatMessageType {
746
842
  _id
747
843
  content
@@ -752,14 +848,14 @@ var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client8.gql`
752
848
  updatedAt
753
849
  }
754
850
  `;
755
- var CHAT_PARTICIPANT = import_client8.gql`
851
+ var CHAT_PARTICIPANT = import_client9.gql`
756
852
  fragment ChatParticipantFields on ChatParticipantType {
757
853
  active
758
854
  email
759
855
  userId
760
856
  }
761
857
  `;
762
- var CHAT_FIELDS_FRAGMENT = import_client8.gql`
858
+ var CHAT_FIELDS_FRAGMENT = import_client9.gql`
763
859
  fragment ChatFields on ChatType {
764
860
  _id
765
861
  active
@@ -782,7 +878,7 @@ var CHAT_FIELDS_FRAGMENT = import_client8.gql`
782
878
  ${CHAT_MESSAGE_FIELDS_FRAGMENT}
783
879
  ${CHAT_PARTICIPANT}
784
880
  `;
785
- var CHAT = import_client8.gql`
881
+ var CHAT = import_client9.gql`
786
882
  query chat($_id: ID!) {
787
883
  chat(_id: $_id) {
788
884
  ...ChatFields
@@ -790,7 +886,7 @@ var CHAT = import_client8.gql`
790
886
  }
791
887
  ${CHAT_FIELDS_FRAGMENT}
792
888
  `;
793
- var USER_CHATS = import_client8.gql`
889
+ var USER_CHATS = import_client9.gql`
794
890
  query userChats {
795
891
  userChats {
796
892
  ...ChatFields
@@ -800,7 +896,7 @@ var USER_CHATS = import_client8.gql`
800
896
  `;
801
897
 
802
898
  // src/graphql/mutations/chat.ts
803
- var SEND_CHAT_MESSAGE_MUTATION = import_client9.gql`
899
+ var SEND_CHAT_MESSAGE_MUTATION = import_client10.gql`
804
900
  mutation sendChatMessage($_id: ID!, $input: ChatMessageInputType!) {
805
901
  sendChatMessage(_id: $_id, input: $input) {
806
902
  ...ChatFields
@@ -808,12 +904,12 @@ var SEND_CHAT_MESSAGE_MUTATION = import_client9.gql`
808
904
  }
809
905
  ${CHAT_FIELDS_FRAGMENT}
810
906
  `;
811
- var DELETE_CHAT_MUTATION = import_client9.gql`
907
+ var DELETE_CHAT_MUTATION = import_client10.gql`
812
908
  mutation deleteChat($_id: ID!) {
813
909
  deleteChat(_id: $_id)
814
910
  }
815
911
  `;
816
- var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client9.gql`
912
+ var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client10.gql`
817
913
  mutation addParticipantToChat($chatId: ID!, $userId: ID!) {
818
914
  addParticipantToChat(chatId: $chatId, userId: $userId) {
819
915
  ...ChatFields
@@ -821,7 +917,7 @@ var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client9.gql`
821
917
  }
822
918
  ${CHAT_FIELDS_FRAGMENT}
823
919
  `;
824
- var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client9.gql`
920
+ var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client10.gql`
825
921
  mutation removeParticipantFromChat($chatId: ID!, $userId: ID!) {
826
922
  removeParticipantFromChat(chatId: $chatId, userId: $userId) {
827
923
  ...ChatFields
@@ -832,7 +928,7 @@ var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client9.gql`
832
928
 
833
929
  // src/graphql/hooks/chat/hooksMutation.ts
834
930
  var useSendChatMessage = () => {
835
- const [sendChatMessage, { loading, error }] = (0, import_client10.useMutation)(
931
+ const [sendChatMessage, { loading, error }] = (0, import_client11.useMutation)(
836
932
  SEND_CHAT_MESSAGE_MUTATION,
837
933
  {
838
934
  awaitRefetchQueries: true,
@@ -850,14 +946,14 @@ var useSendChatMessage = () => {
850
946
  return { error, loading, sendChatMessage };
851
947
  };
852
948
  var useDeleteChat = () => {
853
- const [deleteChat, { loading, error }] = (0, import_client10.useMutation)(DELETE_CHAT_MUTATION, {
949
+ const [deleteChat, { loading, error }] = (0, import_client11.useMutation)(DELETE_CHAT_MUTATION, {
854
950
  awaitRefetchQueries: true,
855
951
  refetchQueries: [{ query: USER_CHATS }]
856
952
  });
857
953
  return { deleteChat, error, loading };
858
954
  };
859
955
  var useAddParticipantToChat = () => {
860
- const [addParticipantToChat, { loading, error }] = (0, import_client10.useMutation)(
956
+ const [addParticipantToChat, { loading, error }] = (0, import_client11.useMutation)(
861
957
  ADD_PARTICIPANT_TO_CHAT_MUTATION,
862
958
  {
863
959
  awaitRefetchQueries: true,
@@ -878,7 +974,7 @@ var useAddParticipantToChat = () => {
878
974
  return { addParticipantToChat, error, loading };
879
975
  };
880
976
  var useRemoveParticipantFromChat = () => {
881
- const [removeParticipantFromChat, { loading, error }] = (0, import_client10.useMutation)(
977
+ const [removeParticipantFromChat, { loading, error }] = (0, import_client11.useMutation)(
882
978
  REMOVE_PARTICIPANT_FROM_CHAT_MUTATION,
883
979
  {
884
980
  awaitRefetchQueries: true,
@@ -900,11 +996,11 @@ var useRemoveParticipantFromChat = () => {
900
996
  };
901
997
 
902
998
  // src/graphql/hooks/chat/hooksQuery.ts
903
- var import_client12 = require("@apollo/client");
999
+ var import_client13 = require("@apollo/client");
904
1000
 
905
1001
  // src/graphql/subscriptions/chat.ts
906
- var import_client11 = require("@apollo/client");
907
- var GET_CHAT_MESSAGE = import_client11.gql`
1002
+ var import_client12 = require("@apollo/client");
1003
+ var GET_CHAT_MESSAGE = import_client12.gql`
908
1004
  subscription {
909
1005
  getChatMessage {
910
1006
  ...ChatFields
@@ -915,7 +1011,7 @@ var GET_CHAT_MESSAGE = import_client11.gql`
915
1011
 
916
1012
  // src/graphql/hooks/chat/hooksQuery.ts
917
1013
  var useGetChat = (_id) => {
918
- const { loading, error, data, refetch } = (0, import_client12.useQuery)(CHAT, {
1014
+ const { loading, error, data, refetch } = (0, import_client13.useQuery)(CHAT, {
919
1015
  fetchPolicy: "network-only",
920
1016
  skip: !_id,
921
1017
  variables: { _id }
@@ -924,24 +1020,24 @@ var useGetChat = (_id) => {
924
1020
  return { chat, error, loading, refetch };
925
1021
  };
926
1022
  var useGetUserChats = () => {
927
- const { loading, error, data, refetch } = (0, import_client12.useQuery)(USER_CHATS, {
1023
+ const { loading, error, data, refetch } = (0, import_client13.useQuery)(USER_CHATS, {
928
1024
  fetchPolicy: "network-only"
929
1025
  });
930
1026
  const userChats = data?.userChats;
931
1027
  return { error, loading, refetch, userChats };
932
1028
  };
933
1029
  var useGetChatSubscription = () => {
934
- const { data, loading, error } = (0, import_client12.useSubscription)(GET_CHAT_MESSAGE);
1030
+ const { data, loading, error } = (0, import_client13.useSubscription)(GET_CHAT_MESSAGE);
935
1031
  const chat = data?.getChat;
936
1032
  return { chat, error, loading };
937
1033
  };
938
1034
 
939
1035
  // src/graphql/hooks/contactUs.ts
940
- var import_client14 = require("@apollo/client");
1036
+ var import_client15 = require("@apollo/client");
941
1037
 
942
1038
  // src/graphql/mutations/contactUs.ts
943
- var import_client13 = require("@apollo/client");
944
- var CONTACT_US_MUTATION = import_client13.gql`
1039
+ var import_client14 = require("@apollo/client");
1040
+ var CONTACT_US_MUTATION = import_client14.gql`
945
1041
  mutation contactUs($input: ContactUsInputType!) {
946
1042
  contactUs(input: $input) {
947
1043
  message
@@ -951,16 +1047,16 @@ var CONTACT_US_MUTATION = import_client13.gql`
951
1047
 
952
1048
  // src/graphql/hooks/contactUs.ts
953
1049
  var useContactUs = () => {
954
- const [contactUs, { loading, error }] = (0, import_client14.useMutation)(CONTACT_US_MUTATION);
1050
+ const [contactUs, { loading, error }] = (0, import_client15.useMutation)(CONTACT_US_MUTATION);
955
1051
  return { contactUs, error, loading };
956
1052
  };
957
1053
 
958
1054
  // src/graphql/hooks/event/hooksMutation.ts
959
- var import_client17 = require("@apollo/client");
1055
+ var import_client18 = require("@apollo/client");
960
1056
 
961
1057
  // src/graphql/mutations/event.ts
962
- var import_client15 = require("@apollo/client");
963
- var CREATE_EVENT_MUTATION = import_client15.gql`
1058
+ var import_client16 = require("@apollo/client");
1059
+ var CREATE_EVENT_MUTATION = import_client16.gql`
964
1060
  mutation createEvent($input: EventInputType!) {
965
1061
  createEvent(input: $input) {
966
1062
  ...EventFields
@@ -968,7 +1064,7 @@ var CREATE_EVENT_MUTATION = import_client15.gql`
968
1064
  }
969
1065
  ${EVENT}
970
1066
  `;
971
- var UPDATE_EVENT_MUTATION = import_client15.gql`
1067
+ var UPDATE_EVENT_MUTATION = import_client16.gql`
972
1068
  mutation updateEvent($_id: ID!, $input: EventInputType!) {
973
1069
  updateEvent(_id: $_id, input: $input) {
974
1070
  ...EventFields
@@ -976,12 +1072,12 @@ var UPDATE_EVENT_MUTATION = import_client15.gql`
976
1072
  }
977
1073
  ${EVENT}
978
1074
  `;
979
- var DELETE_EVENT_MUTATION = import_client15.gql`
1075
+ var DELETE_EVENT_MUTATION = import_client16.gql`
980
1076
  mutation deleteEvent($_id: ID!) {
981
1077
  deleteEvent(_id: $_id)
982
1078
  }
983
1079
  `;
984
- var CREATE_EVENT_INFO_MUTATION = import_client15.gql`
1080
+ var CREATE_EVENT_INFO_MUTATION = import_client16.gql`
985
1081
  mutation createEventInfo($input: EventInfoInputType!) {
986
1082
  createEventInfo(input: $input) {
987
1083
  ...EventInfoFields
@@ -989,7 +1085,7 @@ var CREATE_EVENT_INFO_MUTATION = import_client15.gql`
989
1085
  }
990
1086
  ${EVENT_INFO}
991
1087
  `;
992
- var UPDATE_EVENT_INFO_MUTATION = import_client15.gql`
1088
+ var UPDATE_EVENT_INFO_MUTATION = import_client16.gql`
993
1089
  mutation updateEventInfo($_id: ID!, $input: EventInfoInputType!) {
994
1090
  updateEventInfo(_id: $_id, input: $input) {
995
1091
  ...EventInfoFields
@@ -999,8 +1095,8 @@ var UPDATE_EVENT_INFO_MUTATION = import_client15.gql`
999
1095
  `;
1000
1096
 
1001
1097
  // src/graphql/queries/user.ts
1002
- var import_client16 = require("@apollo/client");
1003
- var GET_USERS = import_client16.gql`
1098
+ var import_client17 = require("@apollo/client");
1099
+ var GET_USERS = import_client17.gql`
1004
1100
  query getUsers {
1005
1101
  users {
1006
1102
  ...UserFields
@@ -1008,7 +1104,7 @@ var GET_USERS = import_client16.gql`
1008
1104
  }
1009
1105
  ${USER_FIELDS_FRAGMENT}
1010
1106
  `;
1011
- var GET_USER = import_client16.gql`
1107
+ var GET_USER = import_client17.gql`
1012
1108
  query getUser($_id: ID!) {
1013
1109
  user(_id: $_id) {
1014
1110
  ...UserFields
@@ -1016,7 +1112,7 @@ var GET_USER = import_client16.gql`
1016
1112
  }
1017
1113
  ${USER_FIELDS_FRAGMENT}
1018
1114
  `;
1019
- var GET_USER_EVENTS = import_client16.gql`
1115
+ var GET_USER_EVENTS = import_client17.gql`
1020
1116
  query getUserEvents {
1021
1117
  userEvents {
1022
1118
  ...EventFields
@@ -1024,7 +1120,7 @@ var GET_USER_EVENTS = import_client16.gql`
1024
1120
  }
1025
1121
  ${EVENT}
1026
1122
  `;
1027
- var GET_USER_VENDORS = import_client16.gql`
1123
+ var GET_USER_VENDORS = import_client17.gql`
1028
1124
  query getUserVendors {
1029
1125
  userVendors {
1030
1126
  ...VendorFields
@@ -1032,7 +1128,7 @@ var GET_USER_VENDORS = import_client16.gql`
1032
1128
  }
1033
1129
  ${VENDOR}
1034
1130
  `;
1035
- var GET_USER_FAVOURITES = import_client16.gql`
1131
+ var GET_USER_FAVOURITES = import_client17.gql`
1036
1132
  query getUserFavourites {
1037
1133
  userFavourites {
1038
1134
  events {
@@ -1049,28 +1145,28 @@ var GET_USER_FAVOURITES = import_client16.gql`
1049
1145
 
1050
1146
  // src/graphql/hooks/event/hooksMutation.ts
1051
1147
  var useCreateEvent = () => {
1052
- const [createEvent, { loading, error }] = (0, import_client17.useMutation)(CREATE_EVENT_MUTATION, {
1148
+ const [createEvent, { loading, error }] = (0, import_client18.useMutation)(CREATE_EVENT_MUTATION, {
1053
1149
  awaitRefetchQueries: true,
1054
1150
  refetchQueries: [{ fetchPolicy: "no-cache", query: GET_USER_EVENTS }]
1055
1151
  });
1056
1152
  return { createEvent, error, loading };
1057
1153
  };
1058
1154
  var useUpdateEvent = () => {
1059
- const [updateEvent, { loading, error }] = (0, import_client17.useMutation)(UPDATE_EVENT_MUTATION, {
1155
+ const [updateEvent, { loading, error }] = (0, import_client18.useMutation)(UPDATE_EVENT_MUTATION, {
1060
1156
  awaitRefetchQueries: true,
1061
1157
  refetchQueries: [{ fetchPolicy: "no-cache", query: GET_USER_EVENTS }]
1062
1158
  });
1063
1159
  return { error, loading, updateEvent };
1064
1160
  };
1065
1161
  var useDeleteEvent = () => {
1066
- const [deleteEvent, { loading, error }] = (0, import_client17.useMutation)(DELETE_EVENT_MUTATION, {
1162
+ const [deleteEvent, { loading, error }] = (0, import_client18.useMutation)(DELETE_EVENT_MUTATION, {
1067
1163
  awaitRefetchQueries: true,
1068
1164
  refetchQueries: [{ fetchPolicy: "no-cache", query: GET_USER_EVENTS }]
1069
1165
  });
1070
1166
  return { deleteEvent, error, loading };
1071
1167
  };
1072
1168
  var useCreateEventInfo = () => {
1073
- const [createEventInfo, { loading, error }] = (0, import_client17.useMutation)(
1169
+ const [createEventInfo, { loading, error }] = (0, import_client18.useMutation)(
1074
1170
  CREATE_EVENT_INFO_MUTATION,
1075
1171
  {
1076
1172
  awaitRefetchQueries: true,
@@ -1099,7 +1195,7 @@ var useCreateEventInfo = () => {
1099
1195
  return { createEventInfo, error, loading };
1100
1196
  };
1101
1197
  var useUpdateEventInfo = () => {
1102
- const [updateEventInfo, { loading, error }] = (0, import_client17.useMutation)(
1198
+ const [updateEventInfo, { loading, error }] = (0, import_client18.useMutation)(
1103
1199
  UPDATE_EVENT_INFO_MUTATION,
1104
1200
  {
1105
1201
  awaitRefetchQueries: true,
@@ -1125,16 +1221,16 @@ var useUpdateEventInfo = () => {
1125
1221
  };
1126
1222
 
1127
1223
  // src/graphql/hooks/event/hooksQuery.ts
1128
- var import_client18 = require("@apollo/client");
1224
+ var import_client19 = require("@apollo/client");
1129
1225
  var useGetEvents = () => {
1130
- const { loading, error, data, refetch } = (0, import_client18.useQuery)(GET_EVENTS, {
1226
+ const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_EVENTS, {
1131
1227
  fetchPolicy: "network-only"
1132
1228
  });
1133
1229
  const events = data?.events;
1134
1230
  return { error, events, loading, refetch };
1135
1231
  };
1136
1232
  var useGetEvent = (_id) => {
1137
- const { loading, error, data, refetch } = (0, import_client18.useQuery)(GET_EVENT, {
1233
+ const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_EVENT, {
1138
1234
  fetchPolicy: "network-only",
1139
1235
  skip: !_id,
1140
1236
  variables: { _id }
@@ -1143,7 +1239,7 @@ var useGetEvent = (_id) => {
1143
1239
  return { error, event, loading, refetch };
1144
1240
  };
1145
1241
  var useGetEventsByRegion = (region) => {
1146
- const { loading, error, data, refetch } = (0, import_client18.useQuery)(GET_EVENTS_BY_REGION, {
1242
+ const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_EVENTS_BY_REGION, {
1147
1243
  fetchPolicy: "no-cache",
1148
1244
  skip: !region,
1149
1245
  variables: { region }
@@ -1152,7 +1248,7 @@ var useGetEventsByRegion = (region) => {
1152
1248
  return { error, eventsByRegion, loading, refetch };
1153
1249
  };
1154
1250
  var useSearchEvents = (search, region) => {
1155
- const { loading, error, data, refetch } = (0, import_client18.useQuery)(SEARCH_EVENTS, {
1251
+ const { loading, error, data, refetch } = (0, import_client19.useQuery)(SEARCH_EVENTS, {
1156
1252
  fetchPolicy: "network-only",
1157
1253
  skip: search.length < 3,
1158
1254
  variables: { region, search }
@@ -1161,7 +1257,7 @@ var useSearchEvents = (search, region) => {
1161
1257
  return { error, eventsSearch, loading, refetch };
1162
1258
  };
1163
1259
  var useGetEventsNearMe = (location) => {
1164
- const { loading, error, data, refetch } = (0, import_client18.useQuery)(GET_EVENTS_NEAR_ME, {
1260
+ const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_EVENTS_NEAR_ME, {
1165
1261
  fetchPolicy: "network-only",
1166
1262
  skip: !location.latitude || !location.longitude,
1167
1263
  variables: {
@@ -1175,7 +1271,7 @@ var useGetEventsNearMe = (location) => {
1175
1271
  return { error, eventsNearMe, loading, refetch };
1176
1272
  };
1177
1273
  var useGetEventInfo = (eventId) => {
1178
- const { loading, error, data, refetch } = (0, import_client18.useQuery)(GET_EVENT_INFO, {
1274
+ const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_EVENT_INFO, {
1179
1275
  fetchPolicy: "network-only",
1180
1276
  skip: !eventId,
1181
1277
  variables: { eventId }
@@ -1185,14 +1281,14 @@ var useGetEventInfo = (eventId) => {
1185
1281
  };
1186
1282
 
1187
1283
  // src/graphql/hooks/notifications/hooksMutation.ts
1188
- var import_client21 = require("@apollo/client");
1284
+ var import_client22 = require("@apollo/client");
1189
1285
 
1190
1286
  // src/graphql/mutations/notification.ts
1191
- var import_client20 = require("@apollo/client");
1287
+ var import_client21 = require("@apollo/client");
1192
1288
 
1193
1289
  // src/graphql/queries/notification.ts
1194
- var import_client19 = require("@apollo/client");
1195
- var NOTIFICATION_FRAGMENT = import_client19.gql`
1290
+ var import_client20 = require("@apollo/client");
1291
+ var NOTIFICATION_FRAGMENT = import_client20.gql`
1196
1292
  fragment NotificationFields on Notification {
1197
1293
  _id
1198
1294
  userId
@@ -1209,7 +1305,7 @@ var NOTIFICATION_FRAGMENT = import_client19.gql`
1209
1305
  updatedAt
1210
1306
  }
1211
1307
  `;
1212
- var GET_USER_NOTIFICATIONS = import_client19.gql`
1308
+ var GET_USER_NOTIFICATIONS = import_client20.gql`
1213
1309
  query getUserNotifications($limit: Int, $offset: Int) {
1214
1310
  userNotifications(limit: $limit, offset: $offset) {
1215
1311
  ...NotificationFields
@@ -1217,7 +1313,7 @@ var GET_USER_NOTIFICATIONS = import_client19.gql`
1217
1313
  }
1218
1314
  ${NOTIFICATION_FRAGMENT}
1219
1315
  `;
1220
- var GET_NOTIFICATION_COUNT = import_client19.gql`
1316
+ var GET_NOTIFICATION_COUNT = import_client20.gql`
1221
1317
  query getNotificationCount {
1222
1318
  notificationCount {
1223
1319
  total
@@ -1227,7 +1323,7 @@ var GET_NOTIFICATION_COUNT = import_client19.gql`
1227
1323
  `;
1228
1324
 
1229
1325
  // src/graphql/mutations/notification.ts
1230
- var CREATE_BULK_NOTIFICATIONS = import_client20.gql`
1326
+ var CREATE_BULK_NOTIFICATIONS = import_client21.gql`
1231
1327
  mutation createBulkNotifications($input: CreateBulkNotificationInput!) {
1232
1328
  createBulkNotifications(input: $input) {
1233
1329
  ...NotificationFields
@@ -1235,7 +1331,7 @@ var CREATE_BULK_NOTIFICATIONS = import_client20.gql`
1235
1331
  }
1236
1332
  ${NOTIFICATION_FRAGMENT}
1237
1333
  `;
1238
- var MARK_NOTIFICATION_READ = import_client20.gql`
1334
+ var MARK_NOTIFICATION_READ = import_client21.gql`
1239
1335
  mutation markNotificationRead($_id: ID!) {
1240
1336
  markNotificationRead(_id: $_id) {
1241
1337
  ...NotificationFields
@@ -1243,17 +1339,17 @@ var MARK_NOTIFICATION_READ = import_client20.gql`
1243
1339
  }
1244
1340
  ${NOTIFICATION_FRAGMENT}
1245
1341
  `;
1246
- var MARK_ALL_NOTIFICATIONS_READ = import_client20.gql`
1342
+ var MARK_ALL_NOTIFICATIONS_READ = import_client21.gql`
1247
1343
  mutation markAllNotificationsRead {
1248
1344
  markAllNotificationsRead
1249
1345
  }
1250
1346
  `;
1251
- var DELETE_NOTIFICATION = import_client20.gql`
1347
+ var DELETE_NOTIFICATION = import_client21.gql`
1252
1348
  mutation deleteNotification($_id: ID!) {
1253
1349
  deleteNotification(_id: $_id)
1254
1350
  }
1255
1351
  `;
1256
- var DELETE_ALL_NOTIFICATIONS = import_client20.gql`
1352
+ var DELETE_ALL_NOTIFICATIONS = import_client21.gql`
1257
1353
  mutation deleteAllNotifications {
1258
1354
  deleteAllNotifications
1259
1355
  }
@@ -1261,13 +1357,13 @@ var DELETE_ALL_NOTIFICATIONS = import_client20.gql`
1261
1357
 
1262
1358
  // src/graphql/hooks/notifications/hooksMutation.ts
1263
1359
  var useCreateBulkNotifications = () => {
1264
- const [createBulkNotifications, { loading, error }] = (0, import_client21.useMutation)(
1360
+ const [createBulkNotifications, { loading, error }] = (0, import_client22.useMutation)(
1265
1361
  CREATE_BULK_NOTIFICATIONS
1266
1362
  );
1267
1363
  return { createBulkNotifications, error, loading };
1268
1364
  };
1269
1365
  var useMarkNotificationRead = () => {
1270
- const [markNotificationRead, { loading, error }] = (0, import_client21.useMutation)(
1366
+ const [markNotificationRead, { loading, error }] = (0, import_client22.useMutation)(
1271
1367
  MARK_NOTIFICATION_READ,
1272
1368
  {
1273
1369
  fetchPolicy: "no-cache",
@@ -1284,7 +1380,7 @@ var useMarkNotificationRead = () => {
1284
1380
  return { error, loading, markNotificationRead };
1285
1381
  };
1286
1382
  var useMarkAllNotificationsRead = () => {
1287
- const [markAllNotificationsRead, { loading, error }] = (0, import_client21.useMutation)(
1383
+ const [markAllNotificationsRead, { loading, error }] = (0, import_client22.useMutation)(
1288
1384
  MARK_ALL_NOTIFICATIONS_READ,
1289
1385
  {
1290
1386
  fetchPolicy: "no-cache",
@@ -1301,7 +1397,7 @@ var useMarkAllNotificationsRead = () => {
1301
1397
  return { error, loading, markAllNotificationsRead };
1302
1398
  };
1303
1399
  var useDeleteNotification = () => {
1304
- const [deleteNotification, { loading, error }] = (0, import_client21.useMutation)(
1400
+ const [deleteNotification, { loading, error }] = (0, import_client22.useMutation)(
1305
1401
  DELETE_NOTIFICATION,
1306
1402
  {
1307
1403
  fetchPolicy: "no-cache",
@@ -1318,7 +1414,7 @@ var useDeleteNotification = () => {
1318
1414
  return { deleteNotification, error, loading };
1319
1415
  };
1320
1416
  var useDeleteAllNotifications = () => {
1321
- const [deleteAllNotifications, { loading, error }] = (0, import_client21.useMutation)(
1417
+ const [deleteAllNotifications, { loading, error }] = (0, import_client22.useMutation)(
1322
1418
  DELETE_ALL_NOTIFICATIONS,
1323
1419
  {
1324
1420
  fetchPolicy: "no-cache",
@@ -1336,9 +1432,9 @@ var useDeleteAllNotifications = () => {
1336
1432
  };
1337
1433
 
1338
1434
  // src/graphql/hooks/notifications/hooksQuery.ts
1339
- var import_client22 = require("@apollo/client");
1435
+ var import_client23 = require("@apollo/client");
1340
1436
  var useGetUserNotifications = (limit, offset) => {
1341
- const { data, loading, error, refetch } = (0, import_client22.useQuery)(GET_USER_NOTIFICATIONS, {
1437
+ const { data, loading, error, refetch } = (0, import_client23.useQuery)(GET_USER_NOTIFICATIONS, {
1342
1438
  fetchPolicy: "no-cache",
1343
1439
  variables: { limit, offset }
1344
1440
  });
@@ -1350,7 +1446,7 @@ var useGetUserNotifications = (limit, offset) => {
1350
1446
  };
1351
1447
  };
1352
1448
  var useGetNotificationCount = () => {
1353
- const { data, loading, error, refetch } = (0, import_client22.useQuery)(GET_NOTIFICATION_COUNT, {
1449
+ const { data, loading, error, refetch } = (0, import_client23.useQuery)(GET_NOTIFICATION_COUNT, {
1354
1450
  fetchPolicy: "no-cache"
1355
1451
  });
1356
1452
  return {
@@ -1362,11 +1458,11 @@ var useGetNotificationCount = () => {
1362
1458
  };
1363
1459
 
1364
1460
  // src/graphql/hooks/notifications/hooksSubscription.ts
1365
- var import_client24 = require("@apollo/client");
1461
+ var import_client25 = require("@apollo/client");
1366
1462
 
1367
1463
  // src/graphql/subscriptions/notification.ts
1368
- var import_client23 = require("@apollo/client");
1369
- var GET_NOTIFICATIONS_SUBSCRIPTION = import_client23.gql`
1464
+ var import_client24 = require("@apollo/client");
1465
+ var GET_NOTIFICATIONS_SUBSCRIPTION = import_client24.gql`
1370
1466
  subscription {
1371
1467
  getUserNotifications {
1372
1468
  ...NotificationFields
@@ -1374,7 +1470,7 @@ var GET_NOTIFICATIONS_SUBSCRIPTION = import_client23.gql`
1374
1470
  }
1375
1471
  ${NOTIFICATION_FRAGMENT}
1376
1472
  `;
1377
- var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client23.gql`
1473
+ var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client24.gql`
1378
1474
  subscription {
1379
1475
  getNotificationCount {
1380
1476
  total
@@ -1385,7 +1481,7 @@ var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client23.gql`
1385
1481
 
1386
1482
  // src/graphql/hooks/notifications/hooksSubscription.ts
1387
1483
  var useGetUserNotificationsSubscription = () => {
1388
- const { data, loading, error } = (0, import_client24.useSubscription)(GET_NOTIFICATIONS_SUBSCRIPTION, {
1484
+ const { data, loading, error } = (0, import_client25.useSubscription)(GET_NOTIFICATIONS_SUBSCRIPTION, {
1389
1485
  fetchPolicy: "no-cache",
1390
1486
  shouldResubscribe: true
1391
1487
  });
@@ -1396,7 +1492,7 @@ var useGetUserNotificationsSubscription = () => {
1396
1492
  };
1397
1493
  };
1398
1494
  var useGetNotificationCountSubscription = () => {
1399
- const { data, loading, error } = (0, import_client24.useSubscription)(GET_NOTIFICATION_COUNT_SUBSCRIPTION, {
1495
+ const { data, loading, error } = (0, import_client25.useSubscription)(GET_NOTIFICATION_COUNT_SUBSCRIPTION, {
1400
1496
  fetchPolicy: "no-cache",
1401
1497
  shouldResubscribe: true
1402
1498
  });
@@ -1408,11 +1504,11 @@ var useGetNotificationCountSubscription = () => {
1408
1504
  };
1409
1505
 
1410
1506
  // src/graphql/hooks/poster.ts
1411
- var import_client26 = require("@apollo/client");
1507
+ var import_client27 = require("@apollo/client");
1412
1508
 
1413
1509
  // src/graphql/mutations/poster.ts
1414
- var import_client25 = require("@apollo/client");
1415
- var CREATE_POSTER_MUTATION = import_client25.gql`
1510
+ var import_client26 = require("@apollo/client");
1511
+ var CREATE_POSTER_MUTATION = import_client26.gql`
1416
1512
  mutation createPoster($input: PosterInputType!) {
1417
1513
  createPoster(input: $input) {
1418
1514
  message
@@ -1426,7 +1522,7 @@ var CREATE_POSTER_MUTATION = import_client25.gql`
1426
1522
 
1427
1523
  // src/graphql/hooks/poster.ts
1428
1524
  var useCreatePoster = () => {
1429
- const [createPoster, { loading, error }] = (0, import_client26.useMutation)(
1525
+ const [createPoster, { loading, error }] = (0, import_client27.useMutation)(
1430
1526
  CREATE_POSTER_MUTATION,
1431
1527
  {
1432
1528
  fetchPolicy: "no-cache",
@@ -1437,11 +1533,11 @@ var useCreatePoster = () => {
1437
1533
  };
1438
1534
 
1439
1535
  // src/graphql/hooks/pushToken.ts
1440
- var import_client28 = require("@apollo/client");
1536
+ var import_client29 = require("@apollo/client");
1441
1537
 
1442
1538
  // src/graphql/mutations/pushToken.ts
1443
- var import_client27 = require("@apollo/client");
1444
- var CREATE_PUSH_TOKEN_MUTATION = import_client27.gql`
1539
+ var import_client28 = require("@apollo/client");
1540
+ var CREATE_PUSH_TOKEN_MUTATION = import_client28.gql`
1445
1541
  mutation createPushToken($input: PushTokenInput!) {
1446
1542
  createPushToken(input: $input) {
1447
1543
  success
@@ -1451,7 +1547,7 @@ var CREATE_PUSH_TOKEN_MUTATION = import_client27.gql`
1451
1547
 
1452
1548
  // src/graphql/hooks/pushToken.ts
1453
1549
  var useCreatePushToken = () => {
1454
- const [createPushToken, { loading, error }] = (0, import_client28.useMutation)(
1550
+ const [createPushToken, { loading, error }] = (0, import_client29.useMutation)(
1455
1551
  CREATE_PUSH_TOKEN_MUTATION
1456
1552
  );
1457
1553
  return { createPushToken, error, loading };
@@ -1462,221 +1558,6 @@ var import_client31 = require("@apollo/client");
1462
1558
 
1463
1559
  // src/graphql/mutations/relation.ts
1464
1560
  var import_client30 = require("@apollo/client");
1465
-
1466
- // src/graphql/queries/relation.ts
1467
- var import_client29 = require("@apollo/client");
1468
- var RELATION_DATES_FRAGMENT = import_client29.gql`
1469
- fragment RelationDates on RelationDateType {
1470
- lastUpdateBy {
1471
- resourceId
1472
- userEmail
1473
- }
1474
- paymentReference
1475
- stallType {
1476
- ...StallTypeFields
1477
- }
1478
- startDate
1479
- startTime
1480
- status
1481
- }
1482
- ${STALL_TYPE_FIELDS_FRAGMENT}
1483
- `;
1484
- var RELATION_FIELDS_FRAGMENT = import_client29.gql`
1485
- fragment RelationFields on RelationType {
1486
- _id
1487
- active
1488
- apiMessage
1489
- chatId
1490
- createdAt
1491
- lastUpdateBy
1492
- eventId
1493
- relationDates {
1494
- ...RelationDates
1495
- }
1496
- relationType
1497
- vendorId
1498
- updatedAt
1499
- }
1500
- ${RELATION_DATES_FRAGMENT}
1501
- `;
1502
- var GET_RELATION = import_client29.gql`
1503
- query getRelation($_id: ID!) {
1504
- relation(_id: $_id) {
1505
- ...RelationFields
1506
- }
1507
- }
1508
- ${RELATION_FIELDS_FRAGMENT}
1509
- `;
1510
- var GET_RELATION_BY_EVENT_AND_VENDOR = import_client29.gql`
1511
- query getRelationByEventAndVendor($eventId: ID!, $vendorId: ID!) {
1512
- relationByEventAndVendor(eventId: $eventId, vendorId: $vendorId) {
1513
- ...RelationFields
1514
- }
1515
- }
1516
- ${RELATION_FIELDS_FRAGMENT}
1517
- `;
1518
- var GET_EVENT_RELATIONS = import_client29.gql`
1519
- query getEventRelations($eventId: ID!) {
1520
- eventRelations(eventId: $eventId) {
1521
- ...RelationFields
1522
- }
1523
- }
1524
- ${RELATION_FIELDS_FRAGMENT}
1525
- `;
1526
- var GET_VENDOR_RELATIONS = import_client29.gql`
1527
- query getVendorRelations($vendorId: ID!) {
1528
- vendorRelations(vendorId: $vendorId) {
1529
- ...RelationFields
1530
- }
1531
- }
1532
- ${RELATION_FIELDS_FRAGMENT}
1533
- `;
1534
- var GET_RESOURCE_CONNECTIONS = import_client29.gql`
1535
- query getResourceConnections(
1536
- $resourceId: ID!
1537
- $resourceType: ResourceTypeEnum!
1538
- ) {
1539
- resourceConnections(resourceId: $resourceId, resourceType: $resourceType) {
1540
- events {
1541
- _id
1542
- active
1543
- adIds
1544
- cover {
1545
- ...ResourceImageFields
1546
- }
1547
- contactDetails {
1548
- ...ContactDetailsFields
1549
- }
1550
- createdAt
1551
- dateTime {
1552
- ...EventDateTimeFields
1553
- }
1554
- description
1555
- deletedAt
1556
- images {
1557
- ...ResourceImageFields
1558
- }
1559
- eventType
1560
- location {
1561
- ...EventLocationFields
1562
- }
1563
- logo {
1564
- ...ResourceImageFields
1565
- }
1566
- eventInfoId
1567
- name
1568
- nzbn
1569
- owner {
1570
- ...OwnerFields
1571
- }
1572
- partners {
1573
- ...PartnerFields
1574
- }
1575
- promoCodes
1576
- provider
1577
- posterUsage {
1578
- ...PosterUsageFields
1579
- }
1580
- region
1581
- relationIds
1582
- socialMedia {
1583
- ...SocialMediaFields
1584
- }
1585
- rainOrShine
1586
- tags
1587
- termsAgreement {
1588
- ...TermsAgreementFields
1589
- }
1590
- updatedAt
1591
- relationDates {
1592
- ...RelationDates
1593
- }
1594
- }
1595
- vendors {
1596
- _id
1597
- active
1598
- adIds
1599
- availability {
1600
- corporate
1601
- private
1602
- school
1603
- }
1604
- vendorInfoId
1605
- categories {
1606
- ...CategoryFields
1607
- }
1608
- contactDetails {
1609
- ...ContactDetailsFields
1610
- }
1611
- cover {
1612
- ...ResourceImageFields
1613
- }
1614
- createdAt
1615
- description
1616
- deletedAt
1617
- images {
1618
- ...ResourceImageFields
1619
- }
1620
- locations {
1621
- dateTime {
1622
- ...VendorDateTimeFields
1623
- }
1624
- description
1625
- location {
1626
- ...VendorLocationFields
1627
- }
1628
- }
1629
- logo {
1630
- ...ResourceImageFields
1631
- }
1632
- multiLocation
1633
- name
1634
- owner {
1635
- ...OwnerFields
1636
- }
1637
- partners {
1638
- ...PartnerFields
1639
- }
1640
- products {
1641
- ...VendorMenuFields
1642
- }
1643
- promoCodes
1644
- posterUsage {
1645
- ...PosterUsageFields
1646
- }
1647
- region
1648
- relationIds
1649
- socialMedia {
1650
- ...SocialMediaFields
1651
- }
1652
- updatedAt
1653
- relationDates {
1654
- ...RelationDates
1655
- }
1656
- termsAgreement {
1657
- ...TermsAgreementFields
1658
- }
1659
- vendorType
1660
- }
1661
- }
1662
- }
1663
- ${EVENT_DATETIME_FIELDS_FRAGMENT}
1664
- ${EVENT_LOCATION_FIELDS_FRAGMENT}
1665
- ${OWNER_FIELDS_FRAGMENT}
1666
- ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
1667
- ${CATEGORY_FIELDS_FRAGMENT}
1668
- ${VENDOR_DATETIME_FIELDS_FRAGMENT}
1669
- ${VENDOR_LOCATION_FIELDS_FRAGMENT}
1670
- ${RELATION_DATES_FRAGMENT}
1671
- ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
1672
- ${POSTER_USAGE_FIELDS_FRAGMENT}
1673
- ${PARTNER_FIELDS_FRAGMENT}
1674
- ${VENDOR_MENU_FIELDS_FRAGMENT}
1675
- ${CONTACT_DETAILS_FIELDS_FRAGMENT}
1676
- ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
1677
- `;
1678
-
1679
- // src/graphql/mutations/relation.ts
1680
1561
  var CREATE_RELATION_MUTATION = import_client30.gql`
1681
1562
  mutation createRelation($input: RelationInputType!) {
1682
1563
  createRelation(input: $input) {