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