@timardex/cluemart-shared 1.5.752 → 1.5.753

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.
@@ -20,6 +20,13 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // src/graphql/index.ts
21
21
  var graphql_exports = {};
22
22
  __export(graphql_exports, {
23
+ GET_EVENT: () => GET_EVENT,
24
+ GET_EVENT_INFO: () => GET_EVENT_INFO,
25
+ GET_PARTNER: () => GET_PARTNER,
26
+ GET_POST: () => GET_POST,
27
+ GET_VENDOR: () => GET_VENDOR,
28
+ GET_VENDOR_INFO: () => GET_VENDOR_INFO,
29
+ toGraphqlQueryString: () => toGraphqlQueryString,
23
30
  useAddParticipantToChat: () => useAddParticipantToChat,
24
31
  useAddUserFavouriteResource: () => useAddUserFavouriteResource,
25
32
  useAddUserGoingResource: () => useAddUserGoingResource,
@@ -160,68 +167,37 @@ __export(graphql_exports, {
160
167
  });
161
168
  module.exports = __toCommonJS(graphql_exports);
162
169
 
163
- // src/graphql/hooks/admin/hooksMutation.ts
164
- var import_client5 = require("@apollo/client");
165
-
166
- // src/graphql/mutations/admin.ts
167
- var import_client = require("@apollo/client");
168
- var ADMIN_UPDATE_RESOURCE_TYPE_MUTATION = import_client.gql`
169
- mutation adminUpdateResourceType($input: AdminUpdateResourceInputType!) {
170
- adminUpdateResourceType(input: $input) {
171
- active
172
- resourceId
173
- resourceType
174
- }
175
- }
176
- `;
177
- var ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION = import_client.gql`
178
- mutation adminResendUserVerificationEmail($userId: ID!) {
179
- adminResendUserVerificationEmail(userId: $userId)
180
- }
181
- `;
182
- var ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION = import_client.gql`
183
- mutation adminPermanentlyDeleteResource(
184
- $resourceId: ID!
185
- $resourceType: ResourceTypeEnum!
186
- ) {
187
- adminPermanentlyDeleteResource(
188
- resourceId: $resourceId
189
- resourceType: $resourceType
190
- )
191
- }
192
- `;
193
-
194
170
  // src/graphql/queries/event.ts
195
- var import_client3 = require("@apollo/client");
171
+ var import_client2 = require("@apollo/client");
196
172
 
197
173
  // src/graphql/queries/global.ts
198
- var import_client2 = require("@apollo/client");
199
- var POSTER_USAGE_FIELDS_FRAGMENT = import_client2.gql`
174
+ var import_client = require("@apollo/client");
175
+ var POSTER_USAGE_FIELDS_FRAGMENT = import_client.gql`
200
176
  fragment PosterUsageFields on PosterUsageType {
201
177
  month
202
178
  count
203
179
  }
204
180
  `;
205
- var SOCIAL_MEDIA_FIELDS_FRAGMENT = import_client2.gql`
181
+ var SOCIAL_MEDIA_FIELDS_FRAGMENT = import_client.gql`
206
182
  fragment SocialMediaFields on SocialMediaType {
207
183
  name
208
184
  link
209
185
  }
210
186
  `;
211
- var RESOURCE_IMAGE_FIELDS_FRAGMENT = import_client2.gql`
187
+ var RESOURCE_IMAGE_FIELDS_FRAGMENT = import_client.gql`
212
188
  fragment ResourceImageFields on ResourceImageType {
213
189
  active
214
190
  source
215
191
  title
216
192
  }
217
193
  `;
218
- var OWNER_FIELDS_FRAGMENT = import_client2.gql`
194
+ var OWNER_FIELDS_FRAGMENT = import_client.gql`
219
195
  fragment OwnerFields on OwnerType {
220
196
  email
221
197
  userId
222
198
  }
223
199
  `;
224
- var CATEGORY_FIELDS_FRAGMENT = import_client2.gql`
200
+ var CATEGORY_FIELDS_FRAGMENT = import_client.gql`
225
201
  fragment CategoryFields on CategoryType {
226
202
  id
227
203
  name
@@ -235,7 +211,7 @@ var CATEGORY_FIELDS_FRAGMENT = import_client2.gql`
235
211
  }
236
212
  }
237
213
  `;
238
- var LICENCE_FIELDS_FRAGMENT = import_client2.gql`
214
+ var LICENCE_FIELDS_FRAGMENT = import_client.gql`
239
215
  fragment LicenceFields on UserLicenceType {
240
216
  expiryDate
241
217
  issuedDate
@@ -243,7 +219,7 @@ var LICENCE_FIELDS_FRAGMENT = import_client2.gql`
243
219
  prevLicenceType
244
220
  }
245
221
  `;
246
- var ASSOCIATES_FIELDS_FRAGMENT = import_client2.gql`
222
+ var ASSOCIATES_FIELDS_FRAGMENT = import_client.gql`
247
223
  fragment AssociatesFields on AssociateType {
248
224
  email
249
225
  resourceId
@@ -254,7 +230,7 @@ var ASSOCIATES_FIELDS_FRAGMENT = import_client2.gql`
254
230
  }
255
231
  ${LICENCE_FIELDS_FRAGMENT}
256
232
  `;
257
- var TERMS_AGREEMENT_FIELDS_FRAGMENT = import_client2.gql`
233
+ var TERMS_AGREEMENT_FIELDS_FRAGMENT = import_client.gql`
258
234
  fragment TermsAgreementFields on TermsAgreementType {
259
235
  appBuildNumber
260
236
  appId
@@ -270,7 +246,7 @@ var TERMS_AGREEMENT_FIELDS_FRAGMENT = import_client2.gql`
270
246
  timestamp
271
247
  }
272
248
  `;
273
- var DATETIME_FIELDS_FRAGMENT = import_client2.gql`
249
+ var DATETIME_FIELDS_FRAGMENT = import_client.gql`
274
250
  fragment DateTimeFields on DateTimeType {
275
251
  dateStatus
276
252
  endDate
@@ -279,13 +255,13 @@ var DATETIME_FIELDS_FRAGMENT = import_client2.gql`
279
255
  startTime
280
256
  }
281
257
  `;
282
- var LOCATION_GEO_FIELDS_FRAGMENT = import_client2.gql`
258
+ var LOCATION_GEO_FIELDS_FRAGMENT = import_client.gql`
283
259
  fragment LocationGeoFields on LocationGeoType {
284
260
  coordinates
285
261
  type
286
262
  }
287
263
  `;
288
- var LOCATION_FIELDS_FRAGMENT = import_client2.gql`
264
+ var LOCATION_FIELDS_FRAGMENT = import_client.gql`
289
265
  fragment LocationFields on LocationType {
290
266
  city
291
267
  country
@@ -299,7 +275,7 @@ var LOCATION_FIELDS_FRAGMENT = import_client2.gql`
299
275
  }
300
276
  ${LOCATION_GEO_FIELDS_FRAGMENT}
301
277
  `;
302
- var USER_ACTIVITY_FIELDS_FRAGMENT = import_client2.gql`
278
+ var USER_ACTIVITY_FIELDS_FRAGMENT = import_client.gql`
303
279
  fragment UserActivityFields on UserActivityType {
304
280
  favourites {
305
281
  events
@@ -333,14 +309,14 @@ var USER_ACTIVITY_FIELDS_FRAGMENT = import_client2.gql`
333
309
  }
334
310
  ${DATETIME_FIELDS_FRAGMENT}
335
311
  `;
336
- var REDEEMED_REWARD_FIELDS_FRAGMENT = import_client2.gql`
312
+ var REDEEMED_REWARD_FIELDS_FRAGMENT = import_client.gql`
337
313
  fragment RedeemedRewardFields on RedeemedRewardType {
338
314
  name
339
315
  pointsUsed
340
316
  redeemedAt
341
317
  }
342
318
  `;
343
- var USER_FIELDS_FRAGMENT = import_client2.gql`
319
+ var USER_FIELDS_FRAGMENT = import_client.gql`
344
320
  fragment UserFields on UserType {
345
321
  _id
346
322
  active
@@ -391,14 +367,14 @@ var USER_FIELDS_FRAGMENT = import_client2.gql`
391
367
  ${LOCATION_FIELDS_FRAGMENT}
392
368
  ${REDEEMED_REWARD_FIELDS_FRAGMENT}
393
369
  `;
394
- var STALL_TYPE_FIELDS_FRAGMENT = import_client2.gql`
370
+ var STALL_TYPE_FIELDS_FRAGMENT = import_client.gql`
395
371
  fragment StallTypeFields on StallTypeType {
396
372
  label
397
373
  price
398
374
  stallCapacity
399
375
  }
400
376
  `;
401
- var RELATION_DATES_FRAGMENT = import_client2.gql`
377
+ var RELATION_DATES_FRAGMENT = import_client.gql`
402
378
  fragment RelationDates on RelationDateType {
403
379
  dateTime {
404
380
  dateStatus
@@ -419,14 +395,14 @@ var RELATION_DATES_FRAGMENT = import_client2.gql`
419
395
  }
420
396
  ${STALL_TYPE_FIELDS_FRAGMENT}
421
397
  `;
422
- var CONTACT_DETAILS_FIELDS_FRAGMENT = import_client2.gql`
398
+ var CONTACT_DETAILS_FIELDS_FRAGMENT = import_client.gql`
423
399
  fragment ContactDetailsFields on ContactDetailsType {
424
400
  email
425
401
  landlinePhone
426
402
  mobilePhone
427
403
  }
428
404
  `;
429
- var EVENT_LIST_ITEM = import_client2.gql`
405
+ var EVENT_LIST_ITEM = import_client.gql`
430
406
  fragment EventListItemFields on EventListItemType {
431
407
  _id
432
408
  active
@@ -469,7 +445,7 @@ var EVENT_LIST_ITEM = import_client2.gql`
469
445
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
470
446
  ${RELATION_DATES_FRAGMENT}
471
447
  `;
472
- var RELATED_POST_FIELDS_FRAGMENT = import_client2.gql`
448
+ var RELATED_POST_FIELDS_FRAGMENT = import_client.gql`
473
449
  fragment RelatedPostFields on RelatedPostType {
474
450
  postId
475
451
  postType
@@ -477,7 +453,7 @@ var RELATED_POST_FIELDS_FRAGMENT = import_client2.gql`
477
453
  `;
478
454
 
479
455
  // src/graphql/queries/event.ts
480
- var EVENT_INFO = import_client3.gql`
456
+ var EVENT_INFO = import_client2.gql`
481
457
  fragment EventInfoFields on EventInfoType {
482
458
  _id
483
459
  applicationDeadlineHours
@@ -513,7 +489,7 @@ var EVENT_INFO = import_client3.gql`
513
489
  }
514
490
  ${STALL_TYPE_FIELDS_FRAGMENT}
515
491
  `;
516
- var EVENT = import_client3.gql`
492
+ var EVENT = import_client2.gql`
517
493
  fragment EventFields on EventType {
518
494
  _id
519
495
  active
@@ -590,7 +566,7 @@ var EVENT = import_client3.gql`
590
566
  ${RELATION_DATES_FRAGMENT}
591
567
  ${RELATED_POST_FIELDS_FRAGMENT}
592
568
  `;
593
- var GET_EVENTS = import_client3.gql`
569
+ var GET_EVENTS = import_client2.gql`
594
570
  query getEvents($dateStatus: EventDateStatusEnumType) {
595
571
  events(dateStatus: $dateStatus) {
596
572
  ...EventListItemFields
@@ -598,7 +574,7 @@ var GET_EVENTS = import_client3.gql`
598
574
  }
599
575
  ${EVENT_LIST_ITEM}
600
576
  `;
601
- var GET_EVENT = import_client3.gql`
577
+ var GET_EVENT = import_client2.gql`
602
578
  query getEvent($_id: ID!) {
603
579
  event(_id: $_id) {
604
580
  ...EventFields
@@ -606,7 +582,7 @@ var GET_EVENT = import_client3.gql`
606
582
  }
607
583
  ${EVENT}
608
584
  `;
609
- var GET_EVENT_BY_PLACE_ID = import_client3.gql`
585
+ var GET_EVENT_BY_PLACE_ID = import_client2.gql`
610
586
  query getEventByPlaceId($googlePlaceId: String!) {
611
587
  eventByPlaceId(googlePlaceId: $googlePlaceId) {
612
588
  ...EventListItemFields
@@ -614,7 +590,7 @@ var GET_EVENT_BY_PLACE_ID = import_client3.gql`
614
590
  }
615
591
  ${EVENT_LIST_ITEM}
616
592
  `;
617
- var GET_EVENTS_BY_REGION = import_client3.gql`
593
+ var GET_EVENTS_BY_REGION = import_client2.gql`
618
594
  query getEventsByRegion(
619
595
  $region: String!
620
596
  $options: ResourcesByRegionOptions
@@ -630,7 +606,7 @@ var GET_EVENTS_BY_REGION = import_client3.gql`
630
606
  }
631
607
  ${EVENT_LIST_ITEM}
632
608
  `;
633
- var SEARCH_EVENTS = import_client3.gql`
609
+ var SEARCH_EVENTS = import_client2.gql`
634
610
  query searchEvents(
635
611
  $region: String
636
612
  $search: String
@@ -648,7 +624,7 @@ var SEARCH_EVENTS = import_client3.gql`
648
624
  }
649
625
  ${EVENT_LIST_ITEM}
650
626
  `;
651
- var GET_EVENTS_NEAR_ME = import_client3.gql`
627
+ var GET_EVENTS_NEAR_ME = import_client2.gql`
652
628
  query getEventsNearMe(
653
629
  $latitude: Float!
654
630
  $longitude: Float!
@@ -666,7 +642,7 @@ var GET_EVENTS_NEAR_ME = import_client3.gql`
666
642
  }
667
643
  ${EVENT_LIST_ITEM}
668
644
  `;
669
- var GET_EVENT_INFO = import_client3.gql`
645
+ var GET_EVENT_INFO = import_client2.gql`
670
646
  query getEventInfo($eventId: ID!) {
671
647
  eventInfo(eventId: $eventId) {
672
648
  ...EventInfoFields
@@ -676,8 +652,8 @@ var GET_EVENT_INFO = import_client3.gql`
676
652
  `;
677
653
 
678
654
  // src/graphql/queries/vendor.ts
679
- var import_client4 = require("@apollo/client");
680
- var VENDOR_DATETIME_FIELDS_FRAGMENT = import_client4.gql`
655
+ var import_client3 = require("@apollo/client");
656
+ var VENDOR_DATETIME_FIELDS_FRAGMENT = import_client3.gql`
681
657
  fragment VendorDateTimeFields on VendorDateTimeType {
682
658
  dateStatus
683
659
  endDate
@@ -686,7 +662,7 @@ var VENDOR_DATETIME_FIELDS_FRAGMENT = import_client4.gql`
686
662
  startTime
687
663
  }
688
664
  `;
689
- var VENDOR_PRODUCT_LIST_FIELDS_FRAGMENT = import_client4.gql`
665
+ var VENDOR_PRODUCT_LIST_FIELDS_FRAGMENT = import_client3.gql`
690
666
  fragment VendorProductListFields on VendorProductListType {
691
667
  description
692
668
  name
@@ -695,7 +671,7 @@ var VENDOR_PRODUCT_LIST_FIELDS_FRAGMENT = import_client4.gql`
695
671
  productGroups
696
672
  }
697
673
  `;
698
- var VENDOR = import_client4.gql`
674
+ var VENDOR = import_client3.gql`
699
675
  fragment VendorFields on VendorType {
700
676
  _id
701
677
  active
@@ -791,13 +767,13 @@ var VENDOR = import_client4.gql`
791
767
  ${RELATION_DATES_FRAGMENT}
792
768
  ${RELATED_POST_FIELDS_FRAGMENT}
793
769
  `;
794
- var VENDOR_ATTRIBUTES_FRAGMENT = import_client4.gql`
770
+ var VENDOR_ATTRIBUTES_FRAGMENT = import_client3.gql`
795
771
  fragment VendorAttributesFields on VendorAttributesType {
796
772
  details
797
773
  isRequired
798
774
  }
799
775
  `;
800
- var VENDOR_INFO = import_client4.gql`
776
+ var VENDOR_INFO = import_client3.gql`
801
777
  fragment VendorInfoFields on VendorInfoType {
802
778
  _id
803
779
  compliance {
@@ -838,7 +814,7 @@ var VENDOR_INFO = import_client4.gql`
838
814
  ${VENDOR_ATTRIBUTES_FRAGMENT}
839
815
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
840
816
  `;
841
- var UNREGISTERED_VENDOR_INVITATION_FRAGMENT = import_client4.gql`
817
+ var UNREGISTERED_VENDOR_INVITATION_FRAGMENT = import_client3.gql`
842
818
  fragment UnregisteredVendorInvitationFields on UnregisteredVendorInvitationType {
843
819
  dateTime {
844
820
  ...DateTimeFields
@@ -847,7 +823,7 @@ var UNREGISTERED_VENDOR_INVITATION_FRAGMENT = import_client4.gql`
847
823
  }
848
824
  ${DATETIME_FIELDS_FRAGMENT}
849
825
  `;
850
- var UNREGISTERED_VENDOR = import_client4.gql`
826
+ var UNREGISTERED_VENDOR = import_client3.gql`
851
827
  fragment UnregisteredVendorFields on UnregisteredVendorType {
852
828
  _id
853
829
  active
@@ -865,7 +841,7 @@ var UNREGISTERED_VENDOR = import_client4.gql`
865
841
  }
866
842
  ${UNREGISTERED_VENDOR_INVITATION_FRAGMENT}
867
843
  `;
868
- var GET_VENDORS = import_client4.gql`
844
+ var GET_VENDORS = import_client3.gql`
869
845
  query getVendors {
870
846
  vendors {
871
847
  ...VendorFields
@@ -873,7 +849,7 @@ var GET_VENDORS = import_client4.gql`
873
849
  }
874
850
  ${VENDOR}
875
851
  `;
876
- var GET_VENDOR = import_client4.gql`
852
+ var GET_VENDOR = import_client3.gql`
877
853
  query getVendor($_id: ID!) {
878
854
  vendor(_id: $_id) {
879
855
  ...VendorFields
@@ -881,7 +857,7 @@ var GET_VENDOR = import_client4.gql`
881
857
  }
882
858
  ${VENDOR}
883
859
  `;
884
- var GET_VENDORS_BY_REGION = import_client4.gql`
860
+ var GET_VENDORS_BY_REGION = import_client3.gql`
885
861
  query getVendorsByRegion(
886
862
  $region: String!
887
863
  $options: ResourcesByRegionOptions
@@ -892,7 +868,7 @@ var GET_VENDORS_BY_REGION = import_client4.gql`
892
868
  }
893
869
  ${VENDOR}
894
870
  `;
895
- var SEARCH_VENDORS = import_client4.gql`
871
+ var SEARCH_VENDORS = import_client3.gql`
896
872
  query searchVendors($search: String!, $region: String) {
897
873
  vendorSearch(search: $search, region: $region) {
898
874
  ...VendorFields
@@ -900,7 +876,7 @@ var SEARCH_VENDORS = import_client4.gql`
900
876
  }
901
877
  ${VENDOR}
902
878
  `;
903
- var GET_VENDOR_INFO = import_client4.gql`
879
+ var GET_VENDOR_INFO = import_client3.gql`
904
880
  query getVendorInfo($vendorId: ID!) {
905
881
  vendorInfo(vendorId: $vendorId) {
906
882
  ...VendorInfoFields
@@ -908,7 +884,7 @@ var GET_VENDOR_INFO = import_client4.gql`
908
884
  }
909
885
  ${VENDOR_INFO}
910
886
  `;
911
- var GET_UNREGISTERED_VENDORS = import_client4.gql`
887
+ var GET_UNREGISTERED_VENDORS = import_client3.gql`
912
888
  query getUnregisteredVendors {
913
889
  unregisteredVendors {
914
890
  ...UnregisteredVendorFields
@@ -916,7 +892,7 @@ var GET_UNREGISTERED_VENDORS = import_client4.gql`
916
892
  }
917
893
  ${UNREGISTERED_VENDOR}
918
894
  `;
919
- var GET_UNREGISTERED_VENDORS_BY_INVITER_ID = import_client4.gql`
895
+ var GET_UNREGISTERED_VENDORS_BY_INVITER_ID = import_client3.gql`
920
896
  query getUnregisteredVendorsByInviterId($inviterId: ID!) {
921
897
  unregisteredVendorsByInviterId(inviterId: $inviterId) {
922
898
  ...UnregisteredVendorFields
@@ -924,7 +900,7 @@ var GET_UNREGISTERED_VENDORS_BY_INVITER_ID = import_client4.gql`
924
900
  }
925
901
  ${UNREGISTERED_VENDOR}
926
902
  `;
927
- var GET_UNREGISTERED_VENDOR = import_client4.gql`
903
+ var GET_UNREGISTERED_VENDOR = import_client3.gql`
928
904
  query getUnregisteredVendor($_id: ID!) {
929
905
  unregisteredVendor(_id: $_id) {
930
906
  ...UnregisteredVendorFields
@@ -933,9 +909,1178 @@ var GET_UNREGISTERED_VENDOR = import_client4.gql`
933
909
  ${UNREGISTERED_VENDOR}
934
910
  `;
935
911
 
912
+ // src/graphql/queries/partner.ts
913
+ var import_client4 = require("@apollo/client");
914
+ var PARTNER = import_client4.gql`
915
+ fragment PartnerFields on PartnerType {
916
+ _id
917
+ active
918
+ associates {
919
+ ...AssociatesFields
920
+ }
921
+ adIds
922
+ cover {
923
+ ...ResourceImageFields
924
+ }
925
+ createdAt
926
+ contactDetails {
927
+ ...ContactDetailsFields
928
+ }
929
+ description
930
+ deletedAt
931
+ images {
932
+ ...ResourceImageFields
933
+ }
934
+ location {
935
+ ...LocationFields
936
+ }
937
+ logo {
938
+ ...ResourceImageFields
939
+ }
940
+ name
941
+ nzbn
942
+ owner {
943
+ ...OwnerFields
944
+ }
945
+ partnerType
946
+ posterUsage {
947
+ ...PosterUsageFields
948
+ }
949
+ rating
950
+ region
951
+ reviewCount
952
+ relatedPost {
953
+ ...RelatedPostFields
954
+ }
955
+ socialMedia {
956
+ ...SocialMediaFields
957
+ }
958
+ termsAgreement {
959
+ ...TermsAgreementFields
960
+ }
961
+ updatedAt
962
+ }
963
+ ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
964
+ ${LOCATION_FIELDS_FRAGMENT}
965
+ ${OWNER_FIELDS_FRAGMENT}
966
+ ${ASSOCIATES_FIELDS_FRAGMENT}
967
+ ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
968
+ ${POSTER_USAGE_FIELDS_FRAGMENT}
969
+ ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
970
+ ${CONTACT_DETAILS_FIELDS_FRAGMENT}
971
+ ${RELATED_POST_FIELDS_FRAGMENT}
972
+ `;
973
+ var GET_PARTNERS = import_client4.gql`
974
+ query getPartners {
975
+ partners {
976
+ ...PartnerFields
977
+ }
978
+ }
979
+ ${PARTNER}
980
+ `;
981
+ var GET_PARTNER = import_client4.gql`
982
+ query getPartner($_id: ID!) {
983
+ partner(_id: $_id) {
984
+ ...PartnerFields
985
+ }
986
+ }
987
+ ${PARTNER}
988
+ `;
989
+ var GET_PARTNERS_BY_REGION = import_client4.gql`
990
+ query getPartnersByRegion(
991
+ $region: String!
992
+ $options: ResourcesByRegionOptions
993
+ ) {
994
+ partnersByRegion(region: $region, options: $options) {
995
+ ...PartnerFields
996
+ }
997
+ }
998
+ ${PARTNER}
999
+ `;
1000
+ var SEARCH_PARTNERS = import_client4.gql`
1001
+ query searchPartners($search: String!, $region: String) {
1002
+ partnersSearch(search: $search, region: $region) {
1003
+ ...PartnerFields
1004
+ }
1005
+ }
1006
+ ${PARTNER}
1007
+ `;
1008
+
1009
+ // src/graphql/queries/post.ts
1010
+ var import_client7 = require("@apollo/client");
1011
+
1012
+ // src/graphql/queries/game/dailyClue.ts
1013
+ var import_client5 = require("@apollo/client");
1014
+ var GAME_DATE_FIELDS_FRAGMENT = import_client5.gql`
1015
+ fragment GameDateFields on GameDateType {
1016
+ startDate
1017
+ endDate
1018
+ }
1019
+ `;
1020
+ var DAILY_CLUE_BASE_GAME_FIELDS_FRAGMENT = import_client5.gql`
1021
+ fragment DailyClueBaseGameFields on DailyClueBaseGameType {
1022
+ gameDate {
1023
+ ...GameDateFields
1024
+ }
1025
+ gameSolution
1026
+ }
1027
+ ${GAME_DATE_FIELDS_FRAGMENT}
1028
+ `;
1029
+ var DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT = import_client5.gql`
1030
+ fragment DailyClueGameDataFields on DailyClueGameDataType {
1031
+ gameFields {
1032
+ ...DailyClueBaseGameFields
1033
+ }
1034
+ lastFoundDate
1035
+ points
1036
+ letterInfo {
1037
+ collected
1038
+ solutionShuffled
1039
+ todaysClue
1040
+ todaysLetter
1041
+ todaysPlacement
1042
+ }
1043
+ streak
1044
+ }
1045
+ ${DAILY_CLUE_BASE_GAME_FIELDS_FRAGMENT}
1046
+ `;
1047
+
1048
+ // src/graphql/queries/game/puzzleGame.ts
1049
+ var import_client6 = require("@apollo/client");
1050
+ var PUZZLE_ANSWER_FIELDS_FRAGMENT = import_client6.gql`
1051
+ fragment PuzzleAnswerFields on PuzzleAnswerType {
1052
+ answer
1053
+ answerId
1054
+ correct
1055
+ }
1056
+ `;
1057
+ var PUZZLE_QUESTION_FIELDS_FRAGMENT = import_client6.gql`
1058
+ fragment PuzzleQuestionFields on PuzzleQuestionType {
1059
+ answers {
1060
+ ...PuzzleAnswerFields
1061
+ }
1062
+ question
1063
+ questionId
1064
+ }
1065
+ ${PUZZLE_ANSWER_FIELDS_FRAGMENT}
1066
+ `;
1067
+ var PUZZLE_ANSWERED_QUESTION_FIELDS_FRAGMENT = import_client6.gql`
1068
+ fragment PuzzleAnsweredQuestionFields on PuzzleAnsweredQuestionType {
1069
+ questionId
1070
+ selectedAnswerId
1071
+ }
1072
+ `;
1073
+ var PUZZLE_BASE_GAME_FIELDS_FRAGMENT = import_client6.gql`
1074
+ fragment PuzzleBaseGameFields on PuzzleBaseGameType {
1075
+ questions {
1076
+ ...PuzzleQuestionFields
1077
+ }
1078
+ }
1079
+ ${PUZZLE_QUESTION_FIELDS_FRAGMENT}
1080
+ `;
1081
+ var PUZZLE_GAME_DATA_FIELDS_FRAGMENT = import_client6.gql`
1082
+ fragment PuzzleGameDataFields on PuzzleGameDataType {
1083
+ gameFields {
1084
+ ...PuzzleBaseGameFields
1085
+ }
1086
+ answeredQuestions {
1087
+ ...PuzzleAnsweredQuestionFields
1088
+ }
1089
+ points
1090
+ streak
1091
+ }
1092
+ ${PUZZLE_BASE_GAME_FIELDS_FRAGMENT}
1093
+ ${PUZZLE_ANSWERED_QUESTION_FIELDS_FRAGMENT}
1094
+ `;
1095
+
1096
+ // src/graphql/queries/post.ts
1097
+ var BASE_GAME_FIELDS_FRAGMENT = import_client7.gql`
1098
+ fragment BaseGameFields on BaseGameType {
1099
+ gameTypeId
1100
+ gameTitle
1101
+ gameType
1102
+ dailyClue {
1103
+ ...DailyClueBaseGameFields
1104
+ }
1105
+ miniQuiz {
1106
+ ...PuzzleBaseGameFields
1107
+ }
1108
+ oddOneOut {
1109
+ ...PuzzleBaseGameFields
1110
+ }
1111
+ }
1112
+ ${DAILY_CLUE_BASE_GAME_FIELDS_FRAGMENT}
1113
+ ${PUZZLE_BASE_GAME_FIELDS_FRAGMENT}
1114
+ `;
1115
+ var POST_CONTENT_DATA_FIELDS_FRAGMENT = import_client7.gql`
1116
+ fragment PostContentDataFields on PostContentData {
1117
+ game {
1118
+ ...BaseGameFields
1119
+ }
1120
+ textarea {
1121
+ title
1122
+ data
1123
+ }
1124
+ images {
1125
+ ...ResourceImageFields
1126
+ }
1127
+ video {
1128
+ source
1129
+ title
1130
+ }
1131
+ list {
1132
+ title
1133
+ items {
1134
+ text
1135
+ }
1136
+ }
1137
+ }
1138
+ ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
1139
+ ${BASE_GAME_FIELDS_FRAGMENT}
1140
+ `;
1141
+ var POST_CONTENT_FIELDS_FRAGMENT = import_client7.gql`
1142
+ fragment PostContentFields on PostContentType {
1143
+ contentData {
1144
+ ...PostContentDataFields
1145
+ }
1146
+ contentOrder
1147
+ contentType
1148
+ }
1149
+ ${POST_CONTENT_DATA_FIELDS_FRAGMENT}
1150
+ `;
1151
+ var POST_FIELDS_FRAGMENT = import_client7.gql`
1152
+ fragment PostFields on PostType {
1153
+ _id
1154
+ active
1155
+ caption
1156
+ content {
1157
+ ...PostContentFields
1158
+ }
1159
+ cover {
1160
+ ...ResourceImageFields
1161
+ }
1162
+ createdAt
1163
+ deletedAt
1164
+ postType
1165
+ resource {
1166
+ resourceId
1167
+ resourceRegion
1168
+ resourceType
1169
+ }
1170
+ tags
1171
+ title
1172
+ updatedAt
1173
+ }
1174
+ ${POST_CONTENT_FIELDS_FRAGMENT}
1175
+ ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
1176
+ `;
1177
+ var GET_POSTS = import_client7.gql`
1178
+ query getPosts {
1179
+ posts {
1180
+ ...PostFields
1181
+ }
1182
+ }
1183
+ ${POST_FIELDS_FRAGMENT}
1184
+ `;
1185
+ var GET_POST = import_client7.gql`
1186
+ query getPost($_id: ID!) {
1187
+ post(_id: $_id) {
1188
+ ...PostFields
1189
+ }
1190
+ }
1191
+ ${POST_FIELDS_FRAGMENT}
1192
+ `;
1193
+ var GET_POSTS_BY_TYPE = import_client7.gql`
1194
+ query getPostsByType($postType: PostTypeEnum!) {
1195
+ postsByType(postType: $postType) {
1196
+ ...PostFields
1197
+ }
1198
+ }
1199
+ ${POST_FIELDS_FRAGMENT}
1200
+ `;
1201
+
1202
+ // node_modules/graphql/jsutils/devAssert.mjs
1203
+ function devAssert(condition, message) {
1204
+ const booleanCondition = Boolean(condition);
1205
+ if (!booleanCondition) {
1206
+ throw new Error(message);
1207
+ }
1208
+ }
1209
+
1210
+ // node_modules/graphql/language/ast.mjs
1211
+ var QueryDocumentKeys = {
1212
+ Name: [],
1213
+ Document: ["definitions"],
1214
+ OperationDefinition: [
1215
+ "description",
1216
+ "name",
1217
+ "variableDefinitions",
1218
+ "directives",
1219
+ "selectionSet"
1220
+ ],
1221
+ VariableDefinition: [
1222
+ "description",
1223
+ "variable",
1224
+ "type",
1225
+ "defaultValue",
1226
+ "directives"
1227
+ ],
1228
+ Variable: ["name"],
1229
+ SelectionSet: ["selections"],
1230
+ Field: ["alias", "name", "arguments", "directives", "selectionSet"],
1231
+ Argument: ["name", "value"],
1232
+ FragmentSpread: ["name", "directives"],
1233
+ InlineFragment: ["typeCondition", "directives", "selectionSet"],
1234
+ FragmentDefinition: [
1235
+ "description",
1236
+ "name",
1237
+ // Note: fragment variable definitions are deprecated and will removed in v17.0.0
1238
+ "variableDefinitions",
1239
+ "typeCondition",
1240
+ "directives",
1241
+ "selectionSet"
1242
+ ],
1243
+ IntValue: [],
1244
+ FloatValue: [],
1245
+ StringValue: [],
1246
+ BooleanValue: [],
1247
+ NullValue: [],
1248
+ EnumValue: [],
1249
+ ListValue: ["values"],
1250
+ ObjectValue: ["fields"],
1251
+ ObjectField: ["name", "value"],
1252
+ Directive: ["name", "arguments"],
1253
+ NamedType: ["name"],
1254
+ ListType: ["type"],
1255
+ NonNullType: ["type"],
1256
+ SchemaDefinition: ["description", "directives", "operationTypes"],
1257
+ OperationTypeDefinition: ["type"],
1258
+ ScalarTypeDefinition: ["description", "name", "directives"],
1259
+ ObjectTypeDefinition: [
1260
+ "description",
1261
+ "name",
1262
+ "interfaces",
1263
+ "directives",
1264
+ "fields"
1265
+ ],
1266
+ FieldDefinition: ["description", "name", "arguments", "type", "directives"],
1267
+ InputValueDefinition: [
1268
+ "description",
1269
+ "name",
1270
+ "type",
1271
+ "defaultValue",
1272
+ "directives"
1273
+ ],
1274
+ InterfaceTypeDefinition: [
1275
+ "description",
1276
+ "name",
1277
+ "interfaces",
1278
+ "directives",
1279
+ "fields"
1280
+ ],
1281
+ UnionTypeDefinition: ["description", "name", "directives", "types"],
1282
+ EnumTypeDefinition: ["description", "name", "directives", "values"],
1283
+ EnumValueDefinition: ["description", "name", "directives"],
1284
+ InputObjectTypeDefinition: ["description", "name", "directives", "fields"],
1285
+ DirectiveDefinition: ["description", "name", "arguments", "locations"],
1286
+ SchemaExtension: ["directives", "operationTypes"],
1287
+ ScalarTypeExtension: ["name", "directives"],
1288
+ ObjectTypeExtension: ["name", "interfaces", "directives", "fields"],
1289
+ InterfaceTypeExtension: ["name", "interfaces", "directives", "fields"],
1290
+ UnionTypeExtension: ["name", "directives", "types"],
1291
+ EnumTypeExtension: ["name", "directives", "values"],
1292
+ InputObjectTypeExtension: ["name", "directives", "fields"],
1293
+ TypeCoordinate: ["name"],
1294
+ MemberCoordinate: ["name", "memberName"],
1295
+ ArgumentCoordinate: ["name", "fieldName", "argumentName"],
1296
+ DirectiveCoordinate: ["name"],
1297
+ DirectiveArgumentCoordinate: ["name", "argumentName"]
1298
+ };
1299
+ var kindValues = new Set(Object.keys(QueryDocumentKeys));
1300
+ function isNode(maybeNode) {
1301
+ const maybeKind = maybeNode === null || maybeNode === void 0 ? void 0 : maybeNode.kind;
1302
+ return typeof maybeKind === "string" && kindValues.has(maybeKind);
1303
+ }
1304
+ var OperationTypeNode;
1305
+ (function(OperationTypeNode2) {
1306
+ OperationTypeNode2["QUERY"] = "query";
1307
+ OperationTypeNode2["MUTATION"] = "mutation";
1308
+ OperationTypeNode2["SUBSCRIPTION"] = "subscription";
1309
+ })(OperationTypeNode || (OperationTypeNode = {}));
1310
+
1311
+ // node_modules/graphql/language/kinds.mjs
1312
+ var Kind;
1313
+ (function(Kind2) {
1314
+ Kind2["NAME"] = "Name";
1315
+ Kind2["DOCUMENT"] = "Document";
1316
+ Kind2["OPERATION_DEFINITION"] = "OperationDefinition";
1317
+ Kind2["VARIABLE_DEFINITION"] = "VariableDefinition";
1318
+ Kind2["SELECTION_SET"] = "SelectionSet";
1319
+ Kind2["FIELD"] = "Field";
1320
+ Kind2["ARGUMENT"] = "Argument";
1321
+ Kind2["FRAGMENT_SPREAD"] = "FragmentSpread";
1322
+ Kind2["INLINE_FRAGMENT"] = "InlineFragment";
1323
+ Kind2["FRAGMENT_DEFINITION"] = "FragmentDefinition";
1324
+ Kind2["VARIABLE"] = "Variable";
1325
+ Kind2["INT"] = "IntValue";
1326
+ Kind2["FLOAT"] = "FloatValue";
1327
+ Kind2["STRING"] = "StringValue";
1328
+ Kind2["BOOLEAN"] = "BooleanValue";
1329
+ Kind2["NULL"] = "NullValue";
1330
+ Kind2["ENUM"] = "EnumValue";
1331
+ Kind2["LIST"] = "ListValue";
1332
+ Kind2["OBJECT"] = "ObjectValue";
1333
+ Kind2["OBJECT_FIELD"] = "ObjectField";
1334
+ Kind2["DIRECTIVE"] = "Directive";
1335
+ Kind2["NAMED_TYPE"] = "NamedType";
1336
+ Kind2["LIST_TYPE"] = "ListType";
1337
+ Kind2["NON_NULL_TYPE"] = "NonNullType";
1338
+ Kind2["SCHEMA_DEFINITION"] = "SchemaDefinition";
1339
+ Kind2["OPERATION_TYPE_DEFINITION"] = "OperationTypeDefinition";
1340
+ Kind2["SCALAR_TYPE_DEFINITION"] = "ScalarTypeDefinition";
1341
+ Kind2["OBJECT_TYPE_DEFINITION"] = "ObjectTypeDefinition";
1342
+ Kind2["FIELD_DEFINITION"] = "FieldDefinition";
1343
+ Kind2["INPUT_VALUE_DEFINITION"] = "InputValueDefinition";
1344
+ Kind2["INTERFACE_TYPE_DEFINITION"] = "InterfaceTypeDefinition";
1345
+ Kind2["UNION_TYPE_DEFINITION"] = "UnionTypeDefinition";
1346
+ Kind2["ENUM_TYPE_DEFINITION"] = "EnumTypeDefinition";
1347
+ Kind2["ENUM_VALUE_DEFINITION"] = "EnumValueDefinition";
1348
+ Kind2["INPUT_OBJECT_TYPE_DEFINITION"] = "InputObjectTypeDefinition";
1349
+ Kind2["DIRECTIVE_DEFINITION"] = "DirectiveDefinition";
1350
+ Kind2["SCHEMA_EXTENSION"] = "SchemaExtension";
1351
+ Kind2["SCALAR_TYPE_EXTENSION"] = "ScalarTypeExtension";
1352
+ Kind2["OBJECT_TYPE_EXTENSION"] = "ObjectTypeExtension";
1353
+ Kind2["INTERFACE_TYPE_EXTENSION"] = "InterfaceTypeExtension";
1354
+ Kind2["UNION_TYPE_EXTENSION"] = "UnionTypeExtension";
1355
+ Kind2["ENUM_TYPE_EXTENSION"] = "EnumTypeExtension";
1356
+ Kind2["INPUT_OBJECT_TYPE_EXTENSION"] = "InputObjectTypeExtension";
1357
+ Kind2["TYPE_COORDINATE"] = "TypeCoordinate";
1358
+ Kind2["MEMBER_COORDINATE"] = "MemberCoordinate";
1359
+ Kind2["ARGUMENT_COORDINATE"] = "ArgumentCoordinate";
1360
+ Kind2["DIRECTIVE_COORDINATE"] = "DirectiveCoordinate";
1361
+ Kind2["DIRECTIVE_ARGUMENT_COORDINATE"] = "DirectiveArgumentCoordinate";
1362
+ })(Kind || (Kind = {}));
1363
+
1364
+ // node_modules/graphql/language/characterClasses.mjs
1365
+ function isWhiteSpace(code) {
1366
+ return code === 9 || code === 32;
1367
+ }
1368
+
1369
+ // node_modules/graphql/language/blockString.mjs
1370
+ function printBlockString(value, options) {
1371
+ const escapedValue = value.replace(/"""/g, '\\"""');
1372
+ const lines = escapedValue.split(/\r\n|[\n\r]/g);
1373
+ const isSingleLine = lines.length === 1;
1374
+ const forceLeadingNewLine = lines.length > 1 && lines.slice(1).every((line) => line.length === 0 || isWhiteSpace(line.charCodeAt(0)));
1375
+ const hasTrailingTripleQuotes = escapedValue.endsWith('\\"""');
1376
+ const hasTrailingQuote = value.endsWith('"') && !hasTrailingTripleQuotes;
1377
+ const hasTrailingSlash = value.endsWith("\\");
1378
+ const forceTrailingNewline = hasTrailingQuote || hasTrailingSlash;
1379
+ const printAsMultipleLines = !(options !== null && options !== void 0 && options.minimize) && // add leading and trailing new lines only if it improves readability
1380
+ (!isSingleLine || value.length > 70 || forceTrailingNewline || forceLeadingNewLine || hasTrailingTripleQuotes);
1381
+ let result = "";
1382
+ const skipLeadingNewLine = isSingleLine && isWhiteSpace(value.charCodeAt(0));
1383
+ if (printAsMultipleLines && !skipLeadingNewLine || forceLeadingNewLine) {
1384
+ result += "\n";
1385
+ }
1386
+ result += escapedValue;
1387
+ if (printAsMultipleLines || forceTrailingNewline) {
1388
+ result += "\n";
1389
+ }
1390
+ return '"""' + result + '"""';
1391
+ }
1392
+
1393
+ // node_modules/graphql/jsutils/inspect.mjs
1394
+ var MAX_ARRAY_LENGTH = 10;
1395
+ var MAX_RECURSIVE_DEPTH = 2;
1396
+ function inspect(value) {
1397
+ return formatValue(value, []);
1398
+ }
1399
+ function formatValue(value, seenValues) {
1400
+ switch (typeof value) {
1401
+ case "string":
1402
+ return JSON.stringify(value);
1403
+ case "function":
1404
+ return value.name ? `[function ${value.name}]` : "[function]";
1405
+ case "object":
1406
+ return formatObjectValue(value, seenValues);
1407
+ default:
1408
+ return String(value);
1409
+ }
1410
+ }
1411
+ function formatObjectValue(value, previouslySeenValues) {
1412
+ if (value === null) {
1413
+ return "null";
1414
+ }
1415
+ if (previouslySeenValues.includes(value)) {
1416
+ return "[Circular]";
1417
+ }
1418
+ const seenValues = [...previouslySeenValues, value];
1419
+ if (isJSONable(value)) {
1420
+ const jsonValue = value.toJSON();
1421
+ if (jsonValue !== value) {
1422
+ return typeof jsonValue === "string" ? jsonValue : formatValue(jsonValue, seenValues);
1423
+ }
1424
+ } else if (Array.isArray(value)) {
1425
+ return formatArray(value, seenValues);
1426
+ }
1427
+ return formatObject(value, seenValues);
1428
+ }
1429
+ function isJSONable(value) {
1430
+ return typeof value.toJSON === "function";
1431
+ }
1432
+ function formatObject(object, seenValues) {
1433
+ const entries = Object.entries(object);
1434
+ if (entries.length === 0) {
1435
+ return "{}";
1436
+ }
1437
+ if (seenValues.length > MAX_RECURSIVE_DEPTH) {
1438
+ return "[" + getObjectTag(object) + "]";
1439
+ }
1440
+ const properties = entries.map(
1441
+ ([key, value]) => key + ": " + formatValue(value, seenValues)
1442
+ );
1443
+ return "{ " + properties.join(", ") + " }";
1444
+ }
1445
+ function formatArray(array, seenValues) {
1446
+ if (array.length === 0) {
1447
+ return "[]";
1448
+ }
1449
+ if (seenValues.length > MAX_RECURSIVE_DEPTH) {
1450
+ return "[Array]";
1451
+ }
1452
+ const len = Math.min(MAX_ARRAY_LENGTH, array.length);
1453
+ const remaining = array.length - len;
1454
+ const items = [];
1455
+ for (let i = 0; i < len; ++i) {
1456
+ items.push(formatValue(array[i], seenValues));
1457
+ }
1458
+ if (remaining === 1) {
1459
+ items.push("... 1 more item");
1460
+ } else if (remaining > 1) {
1461
+ items.push(`... ${remaining} more items`);
1462
+ }
1463
+ return "[" + items.join(", ") + "]";
1464
+ }
1465
+ function getObjectTag(object) {
1466
+ const tag = Object.prototype.toString.call(object).replace(/^\[object /, "").replace(/]$/, "");
1467
+ if (tag === "Object" && typeof object.constructor === "function") {
1468
+ const name = object.constructor.name;
1469
+ if (typeof name === "string" && name !== "") {
1470
+ return name;
1471
+ }
1472
+ }
1473
+ return tag;
1474
+ }
1475
+
1476
+ // node_modules/graphql/language/printString.mjs
1477
+ function printString(str) {
1478
+ return `"${str.replace(escapedRegExp, escapedReplacer)}"`;
1479
+ }
1480
+ var escapedRegExp = /[\x00-\x1f\x22\x5c\x7f-\x9f]/g;
1481
+ function escapedReplacer(str) {
1482
+ return escapeSequences[str.charCodeAt(0)];
1483
+ }
1484
+ var escapeSequences = [
1485
+ "\\u0000",
1486
+ "\\u0001",
1487
+ "\\u0002",
1488
+ "\\u0003",
1489
+ "\\u0004",
1490
+ "\\u0005",
1491
+ "\\u0006",
1492
+ "\\u0007",
1493
+ "\\b",
1494
+ "\\t",
1495
+ "\\n",
1496
+ "\\u000B",
1497
+ "\\f",
1498
+ "\\r",
1499
+ "\\u000E",
1500
+ "\\u000F",
1501
+ "\\u0010",
1502
+ "\\u0011",
1503
+ "\\u0012",
1504
+ "\\u0013",
1505
+ "\\u0014",
1506
+ "\\u0015",
1507
+ "\\u0016",
1508
+ "\\u0017",
1509
+ "\\u0018",
1510
+ "\\u0019",
1511
+ "\\u001A",
1512
+ "\\u001B",
1513
+ "\\u001C",
1514
+ "\\u001D",
1515
+ "\\u001E",
1516
+ "\\u001F",
1517
+ "",
1518
+ "",
1519
+ '\\"',
1520
+ "",
1521
+ "",
1522
+ "",
1523
+ "",
1524
+ "",
1525
+ "",
1526
+ "",
1527
+ "",
1528
+ "",
1529
+ "",
1530
+ "",
1531
+ "",
1532
+ "",
1533
+ // 2F
1534
+ "",
1535
+ "",
1536
+ "",
1537
+ "",
1538
+ "",
1539
+ "",
1540
+ "",
1541
+ "",
1542
+ "",
1543
+ "",
1544
+ "",
1545
+ "",
1546
+ "",
1547
+ "",
1548
+ "",
1549
+ "",
1550
+ // 3F
1551
+ "",
1552
+ "",
1553
+ "",
1554
+ "",
1555
+ "",
1556
+ "",
1557
+ "",
1558
+ "",
1559
+ "",
1560
+ "",
1561
+ "",
1562
+ "",
1563
+ "",
1564
+ "",
1565
+ "",
1566
+ "",
1567
+ // 4F
1568
+ "",
1569
+ "",
1570
+ "",
1571
+ "",
1572
+ "",
1573
+ "",
1574
+ "",
1575
+ "",
1576
+ "",
1577
+ "",
1578
+ "",
1579
+ "",
1580
+ "\\\\",
1581
+ "",
1582
+ "",
1583
+ "",
1584
+ // 5F
1585
+ "",
1586
+ "",
1587
+ "",
1588
+ "",
1589
+ "",
1590
+ "",
1591
+ "",
1592
+ "",
1593
+ "",
1594
+ "",
1595
+ "",
1596
+ "",
1597
+ "",
1598
+ "",
1599
+ "",
1600
+ "",
1601
+ // 6F
1602
+ "",
1603
+ "",
1604
+ "",
1605
+ "",
1606
+ "",
1607
+ "",
1608
+ "",
1609
+ "",
1610
+ "",
1611
+ "",
1612
+ "",
1613
+ "",
1614
+ "",
1615
+ "",
1616
+ "",
1617
+ "\\u007F",
1618
+ "\\u0080",
1619
+ "\\u0081",
1620
+ "\\u0082",
1621
+ "\\u0083",
1622
+ "\\u0084",
1623
+ "\\u0085",
1624
+ "\\u0086",
1625
+ "\\u0087",
1626
+ "\\u0088",
1627
+ "\\u0089",
1628
+ "\\u008A",
1629
+ "\\u008B",
1630
+ "\\u008C",
1631
+ "\\u008D",
1632
+ "\\u008E",
1633
+ "\\u008F",
1634
+ "\\u0090",
1635
+ "\\u0091",
1636
+ "\\u0092",
1637
+ "\\u0093",
1638
+ "\\u0094",
1639
+ "\\u0095",
1640
+ "\\u0096",
1641
+ "\\u0097",
1642
+ "\\u0098",
1643
+ "\\u0099",
1644
+ "\\u009A",
1645
+ "\\u009B",
1646
+ "\\u009C",
1647
+ "\\u009D",
1648
+ "\\u009E",
1649
+ "\\u009F"
1650
+ ];
1651
+
1652
+ // node_modules/graphql/language/visitor.mjs
1653
+ var BREAK = Object.freeze({});
1654
+ function visit(root, visitor, visitorKeys = QueryDocumentKeys) {
1655
+ const enterLeaveMap = /* @__PURE__ */ new Map();
1656
+ for (const kind of Object.values(Kind)) {
1657
+ enterLeaveMap.set(kind, getEnterLeaveForKind(visitor, kind));
1658
+ }
1659
+ let stack = void 0;
1660
+ let inArray = Array.isArray(root);
1661
+ let keys = [root];
1662
+ let index = -1;
1663
+ let edits = [];
1664
+ let node = root;
1665
+ let key = void 0;
1666
+ let parent = void 0;
1667
+ const path = [];
1668
+ const ancestors = [];
1669
+ do {
1670
+ index++;
1671
+ const isLeaving = index === keys.length;
1672
+ const isEdited = isLeaving && edits.length !== 0;
1673
+ if (isLeaving) {
1674
+ key = ancestors.length === 0 ? void 0 : path[path.length - 1];
1675
+ node = parent;
1676
+ parent = ancestors.pop();
1677
+ if (isEdited) {
1678
+ if (inArray) {
1679
+ node = node.slice();
1680
+ let editOffset = 0;
1681
+ for (const [editKey, editValue] of edits) {
1682
+ const arrayKey = editKey - editOffset;
1683
+ if (editValue === null) {
1684
+ node.splice(arrayKey, 1);
1685
+ editOffset++;
1686
+ } else {
1687
+ node[arrayKey] = editValue;
1688
+ }
1689
+ }
1690
+ } else {
1691
+ node = { ...node };
1692
+ for (const [editKey, editValue] of edits) {
1693
+ node[editKey] = editValue;
1694
+ }
1695
+ }
1696
+ }
1697
+ index = stack.index;
1698
+ keys = stack.keys;
1699
+ edits = stack.edits;
1700
+ inArray = stack.inArray;
1701
+ stack = stack.prev;
1702
+ } else if (parent) {
1703
+ key = inArray ? index : keys[index];
1704
+ node = parent[key];
1705
+ if (node === null || node === void 0) {
1706
+ continue;
1707
+ }
1708
+ path.push(key);
1709
+ }
1710
+ let result;
1711
+ if (!Array.isArray(node)) {
1712
+ var _enterLeaveMap$get, _enterLeaveMap$get2;
1713
+ isNode(node) || devAssert(false, `Invalid AST Node: ${inspect(node)}.`);
1714
+ const visitFn = isLeaving ? (_enterLeaveMap$get = enterLeaveMap.get(node.kind)) === null || _enterLeaveMap$get === void 0 ? void 0 : _enterLeaveMap$get.leave : (_enterLeaveMap$get2 = enterLeaveMap.get(node.kind)) === null || _enterLeaveMap$get2 === void 0 ? void 0 : _enterLeaveMap$get2.enter;
1715
+ result = visitFn === null || visitFn === void 0 ? void 0 : visitFn.call(visitor, node, key, parent, path, ancestors);
1716
+ if (result === BREAK) {
1717
+ break;
1718
+ }
1719
+ if (result === false) {
1720
+ if (!isLeaving) {
1721
+ path.pop();
1722
+ continue;
1723
+ }
1724
+ } else if (result !== void 0) {
1725
+ edits.push([key, result]);
1726
+ if (!isLeaving) {
1727
+ if (isNode(result)) {
1728
+ node = result;
1729
+ } else {
1730
+ path.pop();
1731
+ continue;
1732
+ }
1733
+ }
1734
+ }
1735
+ }
1736
+ if (result === void 0 && isEdited) {
1737
+ edits.push([key, node]);
1738
+ }
1739
+ if (isLeaving) {
1740
+ path.pop();
1741
+ } else {
1742
+ var _node$kind;
1743
+ stack = {
1744
+ inArray,
1745
+ index,
1746
+ keys,
1747
+ edits,
1748
+ prev: stack
1749
+ };
1750
+ inArray = Array.isArray(node);
1751
+ keys = inArray ? node : (_node$kind = visitorKeys[node.kind]) !== null && _node$kind !== void 0 ? _node$kind : [];
1752
+ index = -1;
1753
+ edits = [];
1754
+ if (parent) {
1755
+ ancestors.push(parent);
1756
+ }
1757
+ parent = node;
1758
+ }
1759
+ } while (stack !== void 0);
1760
+ if (edits.length !== 0) {
1761
+ return edits[edits.length - 1][1];
1762
+ }
1763
+ return root;
1764
+ }
1765
+ function getEnterLeaveForKind(visitor, kind) {
1766
+ const kindVisitor = visitor[kind];
1767
+ if (typeof kindVisitor === "object") {
1768
+ return kindVisitor;
1769
+ } else if (typeof kindVisitor === "function") {
1770
+ return {
1771
+ enter: kindVisitor,
1772
+ leave: void 0
1773
+ };
1774
+ }
1775
+ return {
1776
+ enter: visitor.enter,
1777
+ leave: visitor.leave
1778
+ };
1779
+ }
1780
+
1781
+ // node_modules/graphql/language/printer.mjs
1782
+ function print(ast) {
1783
+ return visit(ast, printDocASTReducer);
1784
+ }
1785
+ var MAX_LINE_LENGTH = 80;
1786
+ var printDocASTReducer = {
1787
+ Name: {
1788
+ leave: (node) => node.value
1789
+ },
1790
+ Variable: {
1791
+ leave: (node) => "$" + node.name
1792
+ },
1793
+ // Document
1794
+ Document: {
1795
+ leave: (node) => join(node.definitions, "\n\n")
1796
+ },
1797
+ OperationDefinition: {
1798
+ leave(node) {
1799
+ const varDefs = hasMultilineItems(node.variableDefinitions) ? wrap("(\n", join(node.variableDefinitions, "\n"), "\n)") : wrap("(", join(node.variableDefinitions, ", "), ")");
1800
+ const prefix = wrap("", node.description, "\n") + join(
1801
+ [
1802
+ node.operation,
1803
+ join([node.name, varDefs]),
1804
+ join(node.directives, " ")
1805
+ ],
1806
+ " "
1807
+ );
1808
+ return (prefix === "query" ? "" : prefix + " ") + node.selectionSet;
1809
+ }
1810
+ },
1811
+ VariableDefinition: {
1812
+ leave: ({ variable, type, defaultValue, directives, description }) => wrap("", description, "\n") + variable + ": " + type + wrap(" = ", defaultValue) + wrap(" ", join(directives, " "))
1813
+ },
1814
+ SelectionSet: {
1815
+ leave: ({ selections }) => block(selections)
1816
+ },
1817
+ Field: {
1818
+ leave({ alias, name, arguments: args, directives, selectionSet }) {
1819
+ const prefix = wrap("", alias, ": ") + name;
1820
+ let argsLine = prefix + wrap("(", join(args, ", "), ")");
1821
+ if (argsLine.length > MAX_LINE_LENGTH) {
1822
+ argsLine = prefix + wrap("(\n", indent(join(args, "\n")), "\n)");
1823
+ }
1824
+ return join([argsLine, join(directives, " "), selectionSet], " ");
1825
+ }
1826
+ },
1827
+ Argument: {
1828
+ leave: ({ name, value }) => name + ": " + value
1829
+ },
1830
+ // Fragments
1831
+ FragmentSpread: {
1832
+ leave: ({ name, directives }) => "..." + name + wrap(" ", join(directives, " "))
1833
+ },
1834
+ InlineFragment: {
1835
+ leave: ({ typeCondition, directives, selectionSet }) => join(
1836
+ [
1837
+ "...",
1838
+ wrap("on ", typeCondition),
1839
+ join(directives, " "),
1840
+ selectionSet
1841
+ ],
1842
+ " "
1843
+ )
1844
+ },
1845
+ FragmentDefinition: {
1846
+ leave: ({
1847
+ name,
1848
+ typeCondition,
1849
+ variableDefinitions,
1850
+ directives,
1851
+ selectionSet,
1852
+ description
1853
+ }) => wrap("", description, "\n") + // Note: fragment variable definitions are experimental and may be changed
1854
+ // or removed in the future.
1855
+ `fragment ${name}${wrap("(", join(variableDefinitions, ", "), ")")} on ${typeCondition} ${wrap("", join(directives, " "), " ")}` + selectionSet
1856
+ },
1857
+ // Value
1858
+ IntValue: {
1859
+ leave: ({ value }) => value
1860
+ },
1861
+ FloatValue: {
1862
+ leave: ({ value }) => value
1863
+ },
1864
+ StringValue: {
1865
+ leave: ({ value, block: isBlockString }) => isBlockString ? printBlockString(value) : printString(value)
1866
+ },
1867
+ BooleanValue: {
1868
+ leave: ({ value }) => value ? "true" : "false"
1869
+ },
1870
+ NullValue: {
1871
+ leave: () => "null"
1872
+ },
1873
+ EnumValue: {
1874
+ leave: ({ value }) => value
1875
+ },
1876
+ ListValue: {
1877
+ leave: ({ values }) => "[" + join(values, ", ") + "]"
1878
+ },
1879
+ ObjectValue: {
1880
+ leave: ({ fields }) => "{" + join(fields, ", ") + "}"
1881
+ },
1882
+ ObjectField: {
1883
+ leave: ({ name, value }) => name + ": " + value
1884
+ },
1885
+ // Directive
1886
+ Directive: {
1887
+ leave: ({ name, arguments: args }) => "@" + name + wrap("(", join(args, ", "), ")")
1888
+ },
1889
+ // Type
1890
+ NamedType: {
1891
+ leave: ({ name }) => name
1892
+ },
1893
+ ListType: {
1894
+ leave: ({ type }) => "[" + type + "]"
1895
+ },
1896
+ NonNullType: {
1897
+ leave: ({ type }) => type + "!"
1898
+ },
1899
+ // Type System Definitions
1900
+ SchemaDefinition: {
1901
+ leave: ({ description, directives, operationTypes }) => wrap("", description, "\n") + join(["schema", join(directives, " "), block(operationTypes)], " ")
1902
+ },
1903
+ OperationTypeDefinition: {
1904
+ leave: ({ operation, type }) => operation + ": " + type
1905
+ },
1906
+ ScalarTypeDefinition: {
1907
+ leave: ({ description, name, directives }) => wrap("", description, "\n") + join(["scalar", name, join(directives, " ")], " ")
1908
+ },
1909
+ ObjectTypeDefinition: {
1910
+ leave: ({ description, name, interfaces, directives, fields }) => wrap("", description, "\n") + join(
1911
+ [
1912
+ "type",
1913
+ name,
1914
+ wrap("implements ", join(interfaces, " & ")),
1915
+ join(directives, " "),
1916
+ block(fields)
1917
+ ],
1918
+ " "
1919
+ )
1920
+ },
1921
+ FieldDefinition: {
1922
+ leave: ({ description, name, arguments: args, type, directives }) => wrap("", description, "\n") + name + (hasMultilineItems(args) ? wrap("(\n", indent(join(args, "\n")), "\n)") : wrap("(", join(args, ", "), ")")) + ": " + type + wrap(" ", join(directives, " "))
1923
+ },
1924
+ InputValueDefinition: {
1925
+ leave: ({ description, name, type, defaultValue, directives }) => wrap("", description, "\n") + join(
1926
+ [name + ": " + type, wrap("= ", defaultValue), join(directives, " ")],
1927
+ " "
1928
+ )
1929
+ },
1930
+ InterfaceTypeDefinition: {
1931
+ leave: ({ description, name, interfaces, directives, fields }) => wrap("", description, "\n") + join(
1932
+ [
1933
+ "interface",
1934
+ name,
1935
+ wrap("implements ", join(interfaces, " & ")),
1936
+ join(directives, " "),
1937
+ block(fields)
1938
+ ],
1939
+ " "
1940
+ )
1941
+ },
1942
+ UnionTypeDefinition: {
1943
+ leave: ({ description, name, directives, types }) => wrap("", description, "\n") + join(
1944
+ ["union", name, join(directives, " "), wrap("= ", join(types, " | "))],
1945
+ " "
1946
+ )
1947
+ },
1948
+ EnumTypeDefinition: {
1949
+ leave: ({ description, name, directives, values }) => wrap("", description, "\n") + join(["enum", name, join(directives, " "), block(values)], " ")
1950
+ },
1951
+ EnumValueDefinition: {
1952
+ leave: ({ description, name, directives }) => wrap("", description, "\n") + join([name, join(directives, " ")], " ")
1953
+ },
1954
+ InputObjectTypeDefinition: {
1955
+ leave: ({ description, name, directives, fields }) => wrap("", description, "\n") + join(["input", name, join(directives, " "), block(fields)], " ")
1956
+ },
1957
+ DirectiveDefinition: {
1958
+ leave: ({ description, name, arguments: args, repeatable, locations }) => wrap("", description, "\n") + "directive @" + name + (hasMultilineItems(args) ? wrap("(\n", indent(join(args, "\n")), "\n)") : wrap("(", join(args, ", "), ")")) + (repeatable ? " repeatable" : "") + " on " + join(locations, " | ")
1959
+ },
1960
+ SchemaExtension: {
1961
+ leave: ({ directives, operationTypes }) => join(
1962
+ ["extend schema", join(directives, " "), block(operationTypes)],
1963
+ " "
1964
+ )
1965
+ },
1966
+ ScalarTypeExtension: {
1967
+ leave: ({ name, directives }) => join(["extend scalar", name, join(directives, " ")], " ")
1968
+ },
1969
+ ObjectTypeExtension: {
1970
+ leave: ({ name, interfaces, directives, fields }) => join(
1971
+ [
1972
+ "extend type",
1973
+ name,
1974
+ wrap("implements ", join(interfaces, " & ")),
1975
+ join(directives, " "),
1976
+ block(fields)
1977
+ ],
1978
+ " "
1979
+ )
1980
+ },
1981
+ InterfaceTypeExtension: {
1982
+ leave: ({ name, interfaces, directives, fields }) => join(
1983
+ [
1984
+ "extend interface",
1985
+ name,
1986
+ wrap("implements ", join(interfaces, " & ")),
1987
+ join(directives, " "),
1988
+ block(fields)
1989
+ ],
1990
+ " "
1991
+ )
1992
+ },
1993
+ UnionTypeExtension: {
1994
+ leave: ({ name, directives, types }) => join(
1995
+ [
1996
+ "extend union",
1997
+ name,
1998
+ join(directives, " "),
1999
+ wrap("= ", join(types, " | "))
2000
+ ],
2001
+ " "
2002
+ )
2003
+ },
2004
+ EnumTypeExtension: {
2005
+ leave: ({ name, directives, values }) => join(["extend enum", name, join(directives, " "), block(values)], " ")
2006
+ },
2007
+ InputObjectTypeExtension: {
2008
+ leave: ({ name, directives, fields }) => join(["extend input", name, join(directives, " "), block(fields)], " ")
2009
+ },
2010
+ // Schema Coordinates
2011
+ TypeCoordinate: {
2012
+ leave: ({ name }) => name
2013
+ },
2014
+ MemberCoordinate: {
2015
+ leave: ({ name, memberName }) => join([name, wrap(".", memberName)])
2016
+ },
2017
+ ArgumentCoordinate: {
2018
+ leave: ({ name, fieldName, argumentName }) => join([name, wrap(".", fieldName), wrap("(", argumentName, ":)")])
2019
+ },
2020
+ DirectiveCoordinate: {
2021
+ leave: ({ name }) => join(["@", name])
2022
+ },
2023
+ DirectiveArgumentCoordinate: {
2024
+ leave: ({ name, argumentName }) => join(["@", name, wrap("(", argumentName, ":)")])
2025
+ }
2026
+ };
2027
+ function join(maybeArray, separator = "") {
2028
+ var _maybeArray$filter$jo;
2029
+ return (_maybeArray$filter$jo = maybeArray === null || maybeArray === void 0 ? void 0 : maybeArray.filter((x) => x).join(separator)) !== null && _maybeArray$filter$jo !== void 0 ? _maybeArray$filter$jo : "";
2030
+ }
2031
+ function block(array) {
2032
+ return wrap("{\n", indent(join(array, "\n")), "\n}");
2033
+ }
2034
+ function wrap(start, maybeString, end = "") {
2035
+ return maybeString != null && maybeString !== "" ? start + maybeString + end : "";
2036
+ }
2037
+ function indent(str) {
2038
+ return wrap(" ", str.replace(/\n/g, "\n "));
2039
+ }
2040
+ function hasMultilineItems(maybeArray) {
2041
+ var _maybeArray$some;
2042
+ return (_maybeArray$some = maybeArray === null || maybeArray === void 0 ? void 0 : maybeArray.some((str) => str.includes("\n"))) !== null && _maybeArray$some !== void 0 ? _maybeArray$some : false;
2043
+ }
2044
+
2045
+ // src/graphql/toGraphqlQueryString.ts
2046
+ function toGraphqlQueryString(query) {
2047
+ return print(query);
2048
+ }
2049
+
2050
+ // src/graphql/hooks/admin/hooksMutation.ts
2051
+ var import_client9 = require("@apollo/client");
2052
+
2053
+ // src/graphql/mutations/admin.ts
2054
+ var import_client8 = require("@apollo/client");
2055
+ var ADMIN_UPDATE_RESOURCE_TYPE_MUTATION = import_client8.gql`
2056
+ mutation adminUpdateResourceType($input: AdminUpdateResourceInputType!) {
2057
+ adminUpdateResourceType(input: $input) {
2058
+ active
2059
+ resourceId
2060
+ resourceType
2061
+ }
2062
+ }
2063
+ `;
2064
+ var ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION = import_client8.gql`
2065
+ mutation adminResendUserVerificationEmail($userId: ID!) {
2066
+ adminResendUserVerificationEmail(userId: $userId)
2067
+ }
2068
+ `;
2069
+ var ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION = import_client8.gql`
2070
+ mutation adminPermanentlyDeleteResource(
2071
+ $resourceId: ID!
2072
+ $resourceType: ResourceTypeEnum!
2073
+ ) {
2074
+ adminPermanentlyDeleteResource(
2075
+ resourceId: $resourceId
2076
+ resourceType: $resourceType
2077
+ )
2078
+ }
2079
+ `;
2080
+
936
2081
  // src/graphql/hooks/admin/hooksMutation.ts
937
2082
  var useAdminUpdateResourceType = () => {
938
- const [adminUpdateResourceType, { loading, error }] = (0, import_client5.useMutation)(ADMIN_UPDATE_RESOURCE_TYPE_MUTATION, {
2083
+ const [adminUpdateResourceType, { loading, error }] = (0, import_client9.useMutation)(ADMIN_UPDATE_RESOURCE_TYPE_MUTATION, {
939
2084
  awaitRefetchQueries: true,
940
2085
  refetchQueries: (mutationResult) => {
941
2086
  const adminUpdateResourceType2 = mutationResult?.data?.adminUpdateResourceType;
@@ -958,7 +2103,7 @@ var useAdminUpdateResourceType = () => {
958
2103
  };
959
2104
  };
960
2105
  var useAdminResendUserVerificationEmail = () => {
961
- const [adminResendUserVerificationEmail, { loading, error }] = (0, import_client5.useMutation)(
2106
+ const [adminResendUserVerificationEmail, { loading, error }] = (0, import_client9.useMutation)(
962
2107
  ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION
963
2108
  );
964
2109
  return {
@@ -968,7 +2113,7 @@ var useAdminResendUserVerificationEmail = () => {
968
2113
  };
969
2114
  };
970
2115
  var useAdminPermanentlyDeleteResource = () => {
971
- const [adminPermanentlyDeleteResource, { loading, error }] = (0, import_client5.useMutation)(
2116
+ const [adminPermanentlyDeleteResource, { loading, error }] = (0, import_client9.useMutation)(
972
2117
  ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION
973
2118
  );
974
2119
  return {
@@ -979,11 +2124,11 @@ var useAdminPermanentlyDeleteResource = () => {
979
2124
  };
980
2125
 
981
2126
  // src/graphql/hooks/auth.ts
982
- var import_client7 = require("@apollo/client");
2127
+ var import_client11 = require("@apollo/client");
983
2128
 
984
2129
  // src/graphql/mutations/auth.ts
985
- var import_client6 = require("@apollo/client");
986
- var REGISTER_MUTATION = import_client6.gql`
2130
+ var import_client10 = require("@apollo/client");
2131
+ var REGISTER_MUTATION = import_client10.gql`
987
2132
  mutation register($input: RegisterInputType!) {
988
2133
  register(input: $input) {
989
2134
  message
@@ -996,7 +2141,7 @@ var REGISTER_MUTATION = import_client6.gql`
996
2141
  }
997
2142
  ${USER_FIELDS_FRAGMENT}
998
2143
  `;
999
- var LOGIN_MUTATION = import_client6.gql`
2144
+ var LOGIN_MUTATION = import_client10.gql`
1000
2145
  mutation login($input: LoginInputType!) {
1001
2146
  login(input: $input) {
1002
2147
  message
@@ -1009,14 +2154,14 @@ var LOGIN_MUTATION = import_client6.gql`
1009
2154
  }
1010
2155
  ${USER_FIELDS_FRAGMENT}
1011
2156
  `;
1012
- var LOGOUT_MUTATION = import_client6.gql`
2157
+ var LOGOUT_MUTATION = import_client10.gql`
1013
2158
  mutation logout {
1014
2159
  logout {
1015
2160
  message
1016
2161
  }
1017
2162
  }
1018
2163
  `;
1019
- var REFRESH_TOKEN_MUTATION = import_client6.gql`
2164
+ var REFRESH_TOKEN_MUTATION = import_client10.gql`
1020
2165
  mutation refreshToken($input: RefreshTokenInputType!) {
1021
2166
  refreshToken(input: $input) {
1022
2167
  refreshToken
@@ -1024,21 +2169,21 @@ var REFRESH_TOKEN_MUTATION = import_client6.gql`
1024
2169
  }
1025
2170
  }
1026
2171
  `;
1027
- var RESET_PASSWORD_MUTATION = import_client6.gql`
2172
+ var RESET_PASSWORD_MUTATION = import_client10.gql`
1028
2173
  mutation resetPassword($input: ResetPasswordInputType!) {
1029
2174
  resetPassword(input: $input) {
1030
2175
  message
1031
2176
  }
1032
2177
  }
1033
2178
  `;
1034
- var REQUEST_PASSWORD_RESET_MUTATION = import_client6.gql`
2179
+ var REQUEST_PASSWORD_RESET_MUTATION = import_client10.gql`
1035
2180
  mutation requestPasswordReset($input: RequestPasswordResetInputType!) {
1036
2181
  requestPasswordReset(input: $input) {
1037
2182
  message
1038
2183
  }
1039
2184
  }
1040
2185
  `;
1041
- var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client6.gql`
2186
+ var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client10.gql`
1042
2187
  mutation validateVerificationToken(
1043
2188
  $input: ValidateVerificationTokenInputType!
1044
2189
  ) {
@@ -1050,49 +2195,49 @@ var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client6.gql`
1050
2195
 
1051
2196
  // src/graphql/hooks/auth.ts
1052
2197
  var useRegister = () => {
1053
- const [register, { loading, error }] = (0, import_client7.useMutation)(REGISTER_MUTATION);
2198
+ const [register, { loading, error }] = (0, import_client11.useMutation)(REGISTER_MUTATION);
1054
2199
  return { error, loading, register };
1055
2200
  };
1056
2201
  var useLogin = () => {
1057
- const [login, { loading, error }] = (0, import_client7.useMutation)(LOGIN_MUTATION);
2202
+ const [login, { loading, error }] = (0, import_client11.useMutation)(LOGIN_MUTATION);
1058
2203
  return { error, loading, login };
1059
2204
  };
1060
2205
  var useLogout = () => {
1061
- const [logout, { loading, error }] = (0, import_client7.useMutation)(LOGOUT_MUTATION);
2206
+ const [logout, { loading, error }] = (0, import_client11.useMutation)(LOGOUT_MUTATION);
1062
2207
  return { error, loading, logout };
1063
2208
  };
1064
2209
  var useRefreshToken = () => {
1065
- const [refreshToken, { loading, error }] = (0, import_client7.useMutation)(REFRESH_TOKEN_MUTATION);
2210
+ const [refreshToken, { loading, error }] = (0, import_client11.useMutation)(REFRESH_TOKEN_MUTATION);
1066
2211
  return { error, loading, refreshToken };
1067
2212
  };
1068
2213
  var useRequestPasswordReset = () => {
1069
- const [requestPasswordReset, { loading, error }] = (0, import_client7.useMutation)(
2214
+ const [requestPasswordReset, { loading, error }] = (0, import_client11.useMutation)(
1070
2215
  REQUEST_PASSWORD_RESET_MUTATION
1071
2216
  );
1072
2217
  return { error, loading, requestPasswordReset };
1073
2218
  };
1074
2219
  var useValidateVerificationToken = () => {
1075
- const [validateVerificationToken, { loading, error }] = (0, import_client7.useMutation)(
2220
+ const [validateVerificationToken, { loading, error }] = (0, import_client11.useMutation)(
1076
2221
  VALIDATE_VERIFICATION_TOKEN_MUTATION
1077
2222
  );
1078
2223
  return { error, loading, validateVerificationToken };
1079
2224
  };
1080
2225
  var useResetPassword = () => {
1081
- const [resetPassword, { loading, error }] = (0, import_client7.useMutation)(
2226
+ const [resetPassword, { loading, error }] = (0, import_client11.useMutation)(
1082
2227
  RESET_PASSWORD_MUTATION
1083
2228
  );
1084
2229
  return { error, loading, resetPassword };
1085
2230
  };
1086
2231
 
1087
2232
  // src/graphql/hooks/chat/hooksMutation.ts
1088
- var import_client10 = require("@apollo/client");
2233
+ var import_client14 = require("@apollo/client");
1089
2234
 
1090
2235
  // src/graphql/mutations/chat.ts
1091
- var import_client9 = require("@apollo/client");
2236
+ var import_client13 = require("@apollo/client");
1092
2237
 
1093
2238
  // src/graphql/queries/chat.ts
1094
- var import_client8 = require("@apollo/client");
1095
- var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client8.gql`
2239
+ var import_client12 = require("@apollo/client");
2240
+ var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client12.gql`
1096
2241
  fragment ChatMessageFields on ChatMessageType {
1097
2242
  _id
1098
2243
  content
@@ -1115,7 +2260,7 @@ var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client8.gql`
1115
2260
  updatedAt
1116
2261
  }
1117
2262
  `;
1118
- var CHAT_PARTICIPANT = import_client8.gql`
2263
+ var CHAT_PARTICIPANT = import_client12.gql`
1119
2264
  fragment ChatParticipantFields on ChatParticipantType {
1120
2265
  active
1121
2266
  isAssociate
@@ -1125,7 +2270,7 @@ var CHAT_PARTICIPANT = import_client8.gql`
1125
2270
  userName
1126
2271
  }
1127
2272
  `;
1128
- var CHAT_FIELDS_FRAGMENT = import_client8.gql`
2273
+ var CHAT_FIELDS_FRAGMENT = import_client12.gql`
1129
2274
  fragment ChatFields on ChatType {
1130
2275
  _id
1131
2276
  active
@@ -1146,7 +2291,7 @@ var CHAT_FIELDS_FRAGMENT = import_client8.gql`
1146
2291
  ${CHAT_MESSAGE_FIELDS_FRAGMENT}
1147
2292
  ${CHAT_PARTICIPANT}
1148
2293
  `;
1149
- var CHAT = import_client8.gql`
2294
+ var CHAT = import_client12.gql`
1150
2295
  query chat($_id: ID!) {
1151
2296
  chat(_id: $_id) {
1152
2297
  ...ChatFields
@@ -1154,7 +2299,7 @@ var CHAT = import_client8.gql`
1154
2299
  }
1155
2300
  ${CHAT_FIELDS_FRAGMENT}
1156
2301
  `;
1157
- var USER_CHATS = import_client8.gql`
2302
+ var USER_CHATS = import_client12.gql`
1158
2303
  query userChats {
1159
2304
  userChats {
1160
2305
  ...ChatFields
@@ -1162,7 +2307,7 @@ var USER_CHATS = import_client8.gql`
1162
2307
  }
1163
2308
  ${CHAT_FIELDS_FRAGMENT}
1164
2309
  `;
1165
- var GET_CHATS_BY_REGION = import_client8.gql`
2310
+ var GET_CHATS_BY_REGION = import_client12.gql`
1166
2311
  query getChatsByRegion($region: String!) {
1167
2312
  chatsByRegion(region: $region) {
1168
2313
  ...ChatFields
@@ -1170,7 +2315,7 @@ var GET_CHATS_BY_REGION = import_client8.gql`
1170
2315
  }
1171
2316
  ${CHAT_FIELDS_FRAGMENT}
1172
2317
  `;
1173
- var CHAT_REPORT_FIELDS_FRAGMENT = import_client8.gql`
2318
+ var CHAT_REPORT_FIELDS_FRAGMENT = import_client12.gql`
1174
2319
  fragment ChatReportFields on ReportChatUserType {
1175
2320
  _id
1176
2321
  chatId
@@ -1185,7 +2330,7 @@ var CHAT_REPORT_FIELDS_FRAGMENT = import_client8.gql`
1185
2330
  updatedAt
1186
2331
  }
1187
2332
  `;
1188
- var GET_REPORTED_CHAT_USERS = import_client8.gql`
2333
+ var GET_REPORTED_CHAT_USERS = import_client12.gql`
1189
2334
  query getReportedChatUsers {
1190
2335
  reportedChatUsers {
1191
2336
  ...ChatReportFields
@@ -1195,7 +2340,7 @@ var GET_REPORTED_CHAT_USERS = import_client8.gql`
1195
2340
  `;
1196
2341
 
1197
2342
  // src/graphql/mutations/chat.ts
1198
- var CREATE_PRIVATE_CHAT_MUTATION = import_client9.gql`
2343
+ var CREATE_PRIVATE_CHAT_MUTATION = import_client13.gql`
1199
2344
  mutation createPrivateChat($userId: ID!) {
1200
2345
  createPrivateChat(userId: $userId) {
1201
2346
  ...ChatFields
@@ -1203,7 +2348,7 @@ var CREATE_PRIVATE_CHAT_MUTATION = import_client9.gql`
1203
2348
  }
1204
2349
  ${CHAT_FIELDS_FRAGMENT}
1205
2350
  `;
1206
- var SEND_CHAT_MESSAGE_MUTATION = import_client9.gql`
2351
+ var SEND_CHAT_MESSAGE_MUTATION = import_client13.gql`
1207
2352
  mutation sendChatMessage($_id: ID!, $input: ChatMessageInputType!) {
1208
2353
  sendChatMessage(_id: $_id, input: $input) {
1209
2354
  ...ChatFields
@@ -1211,12 +2356,12 @@ var SEND_CHAT_MESSAGE_MUTATION = import_client9.gql`
1211
2356
  }
1212
2357
  ${CHAT_FIELDS_FRAGMENT}
1213
2358
  `;
1214
- var DELETE_CHAT_MUTATION = import_client9.gql`
2359
+ var DELETE_CHAT_MUTATION = import_client13.gql`
1215
2360
  mutation deleteChat($_id: ID!) {
1216
2361
  deleteChat(_id: $_id)
1217
2362
  }
1218
2363
  `;
1219
- var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client9.gql`
2364
+ var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client13.gql`
1220
2365
  mutation addParticipantToChat($chatId: ID!, $userId: ID!) {
1221
2366
  addParticipantToChat(chatId: $chatId, userId: $userId) {
1222
2367
  ...ChatFields
@@ -1224,7 +2369,7 @@ var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client9.gql`
1224
2369
  }
1225
2370
  ${CHAT_FIELDS_FRAGMENT}
1226
2371
  `;
1227
- var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client9.gql`
2372
+ var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client13.gql`
1228
2373
  mutation removeParticipantFromChat($chatId: ID!, $userId: ID!) {
1229
2374
  removeParticipantFromChat(chatId: $chatId, userId: $userId) {
1230
2375
  success
@@ -1232,7 +2377,7 @@ var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client9.gql`
1232
2377
  }
1233
2378
  }
1234
2379
  `;
1235
- var TOGGLE_CHAT_MESSAGE_LIKE_MUTATION = import_client9.gql`
2380
+ var TOGGLE_CHAT_MESSAGE_LIKE_MUTATION = import_client13.gql`
1236
2381
  mutation toggleChatMessageLike($chatId: ID!, $messageId: ID!) {
1237
2382
  toggleChatMessageLike(chatId: $chatId, messageId: $messageId) {
1238
2383
  ...ChatFields
@@ -1240,7 +2385,7 @@ var TOGGLE_CHAT_MESSAGE_LIKE_MUTATION = import_client9.gql`
1240
2385
  }
1241
2386
  ${CHAT_FIELDS_FRAGMENT}
1242
2387
  `;
1243
- var MARK_CHAT_MESSAGES_SEEN_MUTATION = import_client9.gql`
2388
+ var MARK_CHAT_MESSAGES_SEEN_MUTATION = import_client13.gql`
1244
2389
  mutation markChatMessagesSeen($chatId: ID!, $messageIds: [ID!]!) {
1245
2390
  markChatMessagesSeen(chatId: $chatId, messageIds: $messageIds) {
1246
2391
  ...ChatFields
@@ -1248,7 +2393,7 @@ var MARK_CHAT_MESSAGES_SEEN_MUTATION = import_client9.gql`
1248
2393
  }
1249
2394
  ${CHAT_FIELDS_FRAGMENT}
1250
2395
  `;
1251
- var REPORT_CHAT_USER_MUTATION = import_client9.gql`
2396
+ var REPORT_CHAT_USER_MUTATION = import_client13.gql`
1252
2397
  mutation reportChatUser($input: ReportChatUserInputType!) {
1253
2398
  reportChatUser(input: $input) {
1254
2399
  ...ChatReportFields
@@ -1259,14 +2404,14 @@ var REPORT_CHAT_USER_MUTATION = import_client9.gql`
1259
2404
 
1260
2405
  // src/graphql/hooks/chat/hooksMutation.ts
1261
2406
  var useCreatePrivateChat = () => {
1262
- const [createPrivateChat, { loading, error }] = (0, import_client10.useMutation)(CREATE_PRIVATE_CHAT_MUTATION, {
2407
+ const [createPrivateChat, { loading, error }] = (0, import_client14.useMutation)(CREATE_PRIVATE_CHAT_MUTATION, {
1263
2408
  awaitRefetchQueries: true,
1264
2409
  refetchQueries: [{ query: USER_CHATS }]
1265
2410
  });
1266
2411
  return { createPrivateChat, error, loading };
1267
2412
  };
1268
2413
  var useSendChatMessage = () => {
1269
- const [sendChatMessage, { loading, error }] = (0, import_client10.useMutation)(SEND_CHAT_MESSAGE_MUTATION, {
2414
+ const [sendChatMessage, { loading, error }] = (0, import_client14.useMutation)(SEND_CHAT_MESSAGE_MUTATION, {
1270
2415
  awaitRefetchQueries: true,
1271
2416
  refetchQueries: (mutationResult) => {
1272
2417
  const chatId = mutationResult?.data?.sendChatMessage?._id;
@@ -1281,14 +2426,14 @@ var useSendChatMessage = () => {
1281
2426
  return { error, loading, sendChatMessage };
1282
2427
  };
1283
2428
  var useDeleteChat = () => {
1284
- const [deleteChat, { loading, error }] = (0, import_client10.useMutation)(DELETE_CHAT_MUTATION, {
2429
+ const [deleteChat, { loading, error }] = (0, import_client14.useMutation)(DELETE_CHAT_MUTATION, {
1285
2430
  awaitRefetchQueries: true,
1286
2431
  refetchQueries: [{ query: USER_CHATS }]
1287
2432
  });
1288
2433
  return { deleteChat, error, loading };
1289
2434
  };
1290
2435
  var useAddParticipantToChat = () => {
1291
- const [addParticipantToChat, { loading, error }] = (0, import_client10.useMutation)(ADD_PARTICIPANT_TO_CHAT_MUTATION, {
2436
+ const [addParticipantToChat, { loading, error }] = (0, import_client14.useMutation)(ADD_PARTICIPANT_TO_CHAT_MUTATION, {
1292
2437
  awaitRefetchQueries: true,
1293
2438
  refetchQueries: (mutationResult) => {
1294
2439
  const chatId = mutationResult?.data?.addParticipantToChat?._id;
@@ -1306,7 +2451,7 @@ var useAddParticipantToChat = () => {
1306
2451
  return { addParticipantToChat, error, loading };
1307
2452
  };
1308
2453
  var useRemoveParticipantFromChat = () => {
1309
- const [removeParticipantFromChat, { loading, error }] = (0, import_client10.useMutation)(REMOVE_PARTICIPANT_FROM_CHAT_MUTATION, {
2454
+ const [removeParticipantFromChat, { loading, error }] = (0, import_client14.useMutation)(REMOVE_PARTICIPANT_FROM_CHAT_MUTATION, {
1310
2455
  awaitRefetchQueries: true,
1311
2456
  refetchQueries: (mutationResult) => {
1312
2457
  const region = mutationResult?.data?.removeParticipantFromChat?.region;
@@ -1323,7 +2468,7 @@ var useRemoveParticipantFromChat = () => {
1323
2468
  return { error, loading, removeParticipantFromChat };
1324
2469
  };
1325
2470
  var useToggleChatMessageLike = () => {
1326
- const [toggleChatMessageLike, { loading, error }] = (0, import_client10.useMutation)(TOGGLE_CHAT_MESSAGE_LIKE_MUTATION, {
2471
+ const [toggleChatMessageLike, { loading, error }] = (0, import_client14.useMutation)(TOGGLE_CHAT_MESSAGE_LIKE_MUTATION, {
1327
2472
  awaitRefetchQueries: true,
1328
2473
  refetchQueries: (mutationResult) => {
1329
2474
  const chatId = mutationResult?.data?.toggleChatMessageLike?._id;
@@ -1338,7 +2483,7 @@ var useToggleChatMessageLike = () => {
1338
2483
  return { error, loading, toggleChatMessageLike };
1339
2484
  };
1340
2485
  var useMarkChatMessagesSeen = () => {
1341
- const [markChatMessagesSeen, { loading, error }] = (0, import_client10.useMutation)(MARK_CHAT_MESSAGES_SEEN_MUTATION, {
2486
+ const [markChatMessagesSeen, { loading, error }] = (0, import_client14.useMutation)(MARK_CHAT_MESSAGES_SEEN_MUTATION, {
1342
2487
  awaitRefetchQueries: true,
1343
2488
  refetchQueries: (mutationResult) => {
1344
2489
  const chatId = mutationResult?.data?.markChatMessagesSeen?._id;
@@ -1353,18 +2498,18 @@ var useMarkChatMessagesSeen = () => {
1353
2498
  return { error, loading, markChatMessagesSeen };
1354
2499
  };
1355
2500
  var useReportChatUser = () => {
1356
- const [reportChatUser, { loading, error }] = (0, import_client10.useMutation)(
2501
+ const [reportChatUser, { loading, error }] = (0, import_client14.useMutation)(
1357
2502
  REPORT_CHAT_USER_MUTATION
1358
2503
  );
1359
2504
  return { error, loading, reportChatUser };
1360
2505
  };
1361
2506
 
1362
2507
  // src/graphql/hooks/chat/hooksQuery.ts
1363
- var import_client12 = require("@apollo/client");
2508
+ var import_client16 = require("@apollo/client");
1364
2509
 
1365
2510
  // src/graphql/subscriptions/chat.ts
1366
- var import_client11 = require("@apollo/client");
1367
- var GET_CHAT_MESSAGE = import_client11.gql`
2511
+ var import_client15 = require("@apollo/client");
2512
+ var GET_CHAT_MESSAGE = import_client15.gql`
1368
2513
  subscription {
1369
2514
  getChatMessage {
1370
2515
  ...ChatFields
@@ -1375,7 +2520,7 @@ var GET_CHAT_MESSAGE = import_client11.gql`
1375
2520
 
1376
2521
  // src/graphql/hooks/chat/hooksQuery.ts
1377
2522
  var useGetChat = (_id) => {
1378
- const { loading, error, data, refetch } = (0, import_client12.useQuery)(CHAT, {
2523
+ const { loading, error, data, refetch } = (0, import_client16.useQuery)(CHAT, {
1379
2524
  fetchPolicy: "network-only",
1380
2525
  skip: !_id || _id === "",
1381
2526
  variables: { _id }
@@ -1384,7 +2529,7 @@ var useGetChat = (_id) => {
1384
2529
  return { chat, error, loading, refetch };
1385
2530
  };
1386
2531
  var useGetUserChats = () => {
1387
- const { loading, error, data, refetch } = (0, import_client12.useQuery)(
2532
+ const { loading, error, data, refetch } = (0, import_client16.useQuery)(
1388
2533
  USER_CHATS,
1389
2534
  {
1390
2535
  fetchPolicy: "network-only"
@@ -1394,14 +2539,14 @@ var useGetUserChats = () => {
1394
2539
  return { error, loading, refetch, userChats };
1395
2540
  };
1396
2541
  var useGetChatSubscription = () => {
1397
- const { data, loading, error } = (0, import_client12.useSubscription)(
2542
+ const { data, loading, error } = (0, import_client16.useSubscription)(
1398
2543
  GET_CHAT_MESSAGE
1399
2544
  );
1400
2545
  const chat = data?.getChat;
1401
2546
  return { chat, error, loading };
1402
2547
  };
1403
2548
  var useGetChatsByRegion = (region) => {
1404
- const { loading, error, data, refetch } = (0, import_client12.useQuery)(GET_CHATS_BY_REGION, {
2549
+ const { loading, error, data, refetch } = (0, import_client16.useQuery)(GET_CHATS_BY_REGION, {
1405
2550
  fetchPolicy: "network-only",
1406
2551
  skip: !region || region === "",
1407
2552
  variables: { region }
@@ -1410,7 +2555,7 @@ var useGetChatsByRegion = (region) => {
1410
2555
  return { chatsByRegion, error, loading, refetch };
1411
2556
  };
1412
2557
  var useGetReportedChatUsers = () => {
1413
- const { loading, error, data, refetch } = (0, import_client12.useQuery)(GET_REPORTED_CHAT_USERS, {
2558
+ const { loading, error, data, refetch } = (0, import_client16.useQuery)(GET_REPORTED_CHAT_USERS, {
1414
2559
  fetchPolicy: "network-only"
1415
2560
  });
1416
2561
  const reportedChatUsers = data?.reportedChatUsers || [];
@@ -1418,11 +2563,11 @@ var useGetReportedChatUsers = () => {
1418
2563
  };
1419
2564
 
1420
2565
  // src/graphql/hooks/contactUs.ts
1421
- var import_client14 = require("@apollo/client");
2566
+ var import_client18 = require("@apollo/client");
1422
2567
 
1423
2568
  // src/graphql/mutations/contactUs.ts
1424
- var import_client13 = require("@apollo/client");
1425
- var CONTACT_US_MUTATION = import_client13.gql`
2569
+ var import_client17 = require("@apollo/client");
2570
+ var CONTACT_US_MUTATION = import_client17.gql`
1426
2571
  mutation contactUs($input: ContactUsInputType!) {
1427
2572
  contactUs(input: $input) {
1428
2573
  message
@@ -1432,16 +2577,16 @@ var CONTACT_US_MUTATION = import_client13.gql`
1432
2577
 
1433
2578
  // src/graphql/hooks/contactUs.ts
1434
2579
  var useContactUs = () => {
1435
- const [contactUs, { loading, error }] = (0, import_client14.useMutation)(CONTACT_US_MUTATION);
2580
+ const [contactUs, { loading, error }] = (0, import_client18.useMutation)(CONTACT_US_MUTATION);
1436
2581
  return { contactUs, error, loading };
1437
2582
  };
1438
2583
 
1439
2584
  // src/graphql/hooks/event/hooksMutation.ts
1440
- var import_client18 = require("@apollo/client");
2585
+ var import_client21 = require("@apollo/client");
1441
2586
 
1442
2587
  // src/graphql/mutations/event.ts
1443
- var import_client15 = require("@apollo/client");
1444
- var CREATE_EVENT_MUTATION = import_client15.gql`
2588
+ var import_client19 = require("@apollo/client");
2589
+ var CREATE_EVENT_MUTATION = import_client19.gql`
1445
2590
  mutation createEvent($input: EventInputType!) {
1446
2591
  createEvent(input: $input) {
1447
2592
  ...EventFields
@@ -1449,7 +2594,7 @@ var CREATE_EVENT_MUTATION = import_client15.gql`
1449
2594
  }
1450
2595
  ${EVENT}
1451
2596
  `;
1452
- var UPDATE_EVENT_MUTATION = import_client15.gql`
2597
+ var UPDATE_EVENT_MUTATION = import_client19.gql`
1453
2598
  mutation updateEvent($_id: ID!, $input: EventInputType!) {
1454
2599
  updateEvent(_id: $_id, input: $input) {
1455
2600
  ...EventFields
@@ -1457,12 +2602,12 @@ var UPDATE_EVENT_MUTATION = import_client15.gql`
1457
2602
  }
1458
2603
  ${EVENT}
1459
2604
  `;
1460
- var DELETE_EVENT_MUTATION = import_client15.gql`
2605
+ var DELETE_EVENT_MUTATION = import_client19.gql`
1461
2606
  mutation deleteEvent($_id: ID!) {
1462
2607
  deleteEvent(_id: $_id)
1463
2608
  }
1464
2609
  `;
1465
- var CREATE_EVENT_INFO_MUTATION = import_client15.gql`
2610
+ var CREATE_EVENT_INFO_MUTATION = import_client19.gql`
1466
2611
  mutation createEventInfo($input: EventInfoInputType!) {
1467
2612
  createEventInfo(input: $input) {
1468
2613
  ...EventInfoFields
@@ -1470,7 +2615,7 @@ var CREATE_EVENT_INFO_MUTATION = import_client15.gql`
1470
2615
  }
1471
2616
  ${EVENT_INFO}
1472
2617
  `;
1473
- var UPDATE_EVENT_INFO_MUTATION = import_client15.gql`
2618
+ var UPDATE_EVENT_INFO_MUTATION = import_client19.gql`
1474
2619
  mutation updateEventInfo($_id: ID!, $input: EventInfoInputType!) {
1475
2620
  updateEventInfo(_id: $_id, input: $input) {
1476
2621
  ...EventInfoFields
@@ -1480,107 +2625,8 @@ var UPDATE_EVENT_INFO_MUTATION = import_client15.gql`
1480
2625
  `;
1481
2626
 
1482
2627
  // src/graphql/queries/user.ts
1483
- var import_client17 = require("@apollo/client");
1484
-
1485
- // src/graphql/queries/partner.ts
1486
- var import_client16 = require("@apollo/client");
1487
- var PARTNER = import_client16.gql`
1488
- fragment PartnerFields on PartnerType {
1489
- _id
1490
- active
1491
- associates {
1492
- ...AssociatesFields
1493
- }
1494
- adIds
1495
- cover {
1496
- ...ResourceImageFields
1497
- }
1498
- createdAt
1499
- contactDetails {
1500
- ...ContactDetailsFields
1501
- }
1502
- description
1503
- deletedAt
1504
- images {
1505
- ...ResourceImageFields
1506
- }
1507
- location {
1508
- ...LocationFields
1509
- }
1510
- logo {
1511
- ...ResourceImageFields
1512
- }
1513
- name
1514
- nzbn
1515
- owner {
1516
- ...OwnerFields
1517
- }
1518
- partnerType
1519
- posterUsage {
1520
- ...PosterUsageFields
1521
- }
1522
- rating
1523
- region
1524
- reviewCount
1525
- relatedPost {
1526
- ...RelatedPostFields
1527
- }
1528
- socialMedia {
1529
- ...SocialMediaFields
1530
- }
1531
- termsAgreement {
1532
- ...TermsAgreementFields
1533
- }
1534
- updatedAt
1535
- }
1536
- ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
1537
- ${LOCATION_FIELDS_FRAGMENT}
1538
- ${OWNER_FIELDS_FRAGMENT}
1539
- ${ASSOCIATES_FIELDS_FRAGMENT}
1540
- ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
1541
- ${POSTER_USAGE_FIELDS_FRAGMENT}
1542
- ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
1543
- ${CONTACT_DETAILS_FIELDS_FRAGMENT}
1544
- ${RELATED_POST_FIELDS_FRAGMENT}
1545
- `;
1546
- var GET_PARTNERS = import_client16.gql`
1547
- query getPartners {
1548
- partners {
1549
- ...PartnerFields
1550
- }
1551
- }
1552
- ${PARTNER}
1553
- `;
1554
- var GET_PARTNER = import_client16.gql`
1555
- query getPartner($_id: ID!) {
1556
- partner(_id: $_id) {
1557
- ...PartnerFields
1558
- }
1559
- }
1560
- ${PARTNER}
1561
- `;
1562
- var GET_PARTNERS_BY_REGION = import_client16.gql`
1563
- query getPartnersByRegion(
1564
- $region: String!
1565
- $options: ResourcesByRegionOptions
1566
- ) {
1567
- partnersByRegion(region: $region, options: $options) {
1568
- ...PartnerFields
1569
- }
1570
- }
1571
- ${PARTNER}
1572
- `;
1573
- var SEARCH_PARTNERS = import_client16.gql`
1574
- query searchPartners($search: String!, $region: String) {
1575
- partnersSearch(search: $search, region: $region) {
1576
- ...PartnerFields
1577
- }
1578
- }
1579
- ${PARTNER}
1580
- `;
1581
-
1582
- // src/graphql/queries/user.ts
1583
- var GET_USERS = import_client17.gql`
2628
+ var import_client20 = require("@apollo/client");
2629
+ var GET_USERS = import_client20.gql`
1584
2630
  query getUsers {
1585
2631
  users {
1586
2632
  ...UserFields
@@ -1588,7 +2634,7 @@ var GET_USERS = import_client17.gql`
1588
2634
  }
1589
2635
  ${USER_FIELDS_FRAGMENT}
1590
2636
  `;
1591
- var GET_USER = import_client17.gql`
2637
+ var GET_USER = import_client20.gql`
1592
2638
  query getUser($_id: ID!) {
1593
2639
  user(_id: $_id) {
1594
2640
  ...UserFields
@@ -1596,7 +2642,7 @@ var GET_USER = import_client17.gql`
1596
2642
  }
1597
2643
  ${USER_FIELDS_FRAGMENT}
1598
2644
  `;
1599
- var GET_USER_EVENTS = import_client17.gql`
2645
+ var GET_USER_EVENTS = import_client20.gql`
1600
2646
  query getUserEvents {
1601
2647
  userEvents {
1602
2648
  ...EventFields
@@ -1604,7 +2650,7 @@ var GET_USER_EVENTS = import_client17.gql`
1604
2650
  }
1605
2651
  ${EVENT}
1606
2652
  `;
1607
- var GET_USER_VENDORS = import_client17.gql`
2653
+ var GET_USER_VENDORS = import_client20.gql`
1608
2654
  query getUserVendors {
1609
2655
  userVendors {
1610
2656
  ...VendorFields
@@ -1612,7 +2658,7 @@ var GET_USER_VENDORS = import_client17.gql`
1612
2658
  }
1613
2659
  ${VENDOR}
1614
2660
  `;
1615
- var GET_USER_PARTNERS = import_client17.gql`
2661
+ var GET_USER_PARTNERS = import_client20.gql`
1616
2662
  query getUserPartners {
1617
2663
  userPartners {
1618
2664
  ...PartnerFields
@@ -1620,7 +2666,7 @@ var GET_USER_PARTNERS = import_client17.gql`
1620
2666
  }
1621
2667
  ${PARTNER}
1622
2668
  `;
1623
- var GET_USER_ACTIVITIES = import_client17.gql`
2669
+ var GET_USER_ACTIVITIES = import_client20.gql`
1624
2670
  query getUserActivities {
1625
2671
  userActivities {
1626
2672
  favourites {
@@ -1655,7 +2701,7 @@ var GET_USER_ACTIVITIES = import_client17.gql`
1655
2701
  ${VENDOR}
1656
2702
  ${PARTNER}
1657
2703
  `;
1658
- var GET_USER_RESOURCES = import_client17.gql`
2704
+ var GET_USER_RESOURCES = import_client20.gql`
1659
2705
  query getUserResources($userId: ID!) {
1660
2706
  userResources(userId: $userId) {
1661
2707
  resources {
@@ -1670,14 +2716,14 @@ var GET_USER_RESOURCES = import_client17.gql`
1670
2716
 
1671
2717
  // src/graphql/hooks/event/hooksMutation.ts
1672
2718
  var useCreateEvent = () => {
1673
- const [createEvent, { loading, error }] = (0, import_client18.useMutation)(CREATE_EVENT_MUTATION, {
2719
+ const [createEvent, { loading, error }] = (0, import_client21.useMutation)(CREATE_EVENT_MUTATION, {
1674
2720
  awaitRefetchQueries: true,
1675
2721
  refetchQueries: [{ query: GET_USER_EVENTS }]
1676
2722
  });
1677
2723
  return { createEvent, error, loading };
1678
2724
  };
1679
2725
  var useUpdateEvent = () => {
1680
- const [updateEvent, { loading, error }] = (0, import_client18.useMutation)(UPDATE_EVENT_MUTATION, {
2726
+ const [updateEvent, { loading, error }] = (0, import_client21.useMutation)(UPDATE_EVENT_MUTATION, {
1681
2727
  awaitRefetchQueries: true,
1682
2728
  refetchQueries: (mutationResult) => {
1683
2729
  const eventId = mutationResult?.data?.updateEvent?._id;
@@ -1700,14 +2746,14 @@ var useUpdateEvent = () => {
1700
2746
  return { error, loading, updateEvent };
1701
2747
  };
1702
2748
  var useDeleteEvent = () => {
1703
- const [deleteEvent, { loading, error }] = (0, import_client18.useMutation)(DELETE_EVENT_MUTATION, {
2749
+ const [deleteEvent, { loading, error }] = (0, import_client21.useMutation)(DELETE_EVENT_MUTATION, {
1704
2750
  awaitRefetchQueries: true,
1705
2751
  refetchQueries: [{ query: GET_USER_EVENTS }]
1706
2752
  });
1707
2753
  return { deleteEvent, error, loading };
1708
2754
  };
1709
2755
  var useCreateEventInfo = () => {
1710
- const [createEventInfo, { loading, error }] = (0, import_client18.useMutation)(CREATE_EVENT_INFO_MUTATION, {
2756
+ const [createEventInfo, { loading, error }] = (0, import_client21.useMutation)(CREATE_EVENT_INFO_MUTATION, {
1711
2757
  awaitRefetchQueries: true,
1712
2758
  refetchQueries: (mutationResult) => {
1713
2759
  const eventId = mutationResult?.data?.createEventInfo?.eventId;
@@ -1731,7 +2777,7 @@ var useCreateEventInfo = () => {
1731
2777
  return { createEventInfo, error, loading };
1732
2778
  };
1733
2779
  var useUpdateEventInfo = () => {
1734
- const [updateEventInfo, { loading, error }] = (0, import_client18.useMutation)(UPDATE_EVENT_INFO_MUTATION, {
2780
+ const [updateEventInfo, { loading, error }] = (0, import_client21.useMutation)(UPDATE_EVENT_INFO_MUTATION, {
1735
2781
  awaitRefetchQueries: true,
1736
2782
  refetchQueries: (mutationResult) => {
1737
2783
  const eventId = mutationResult?.data?.updateEventInfo?.eventId;
@@ -1755,9 +2801,9 @@ var useUpdateEventInfo = () => {
1755
2801
  };
1756
2802
 
1757
2803
  // src/graphql/hooks/event/hooksQuery.ts
1758
- var import_client19 = require("@apollo/client");
2804
+ var import_client22 = require("@apollo/client");
1759
2805
  var useGetEvents = (dateStatus) => {
1760
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_EVENTS, {
2806
+ const { loading, error, data, refetch } = (0, import_client22.useQuery)(GET_EVENTS, {
1761
2807
  fetchPolicy: "network-only",
1762
2808
  variables: { dateStatus }
1763
2809
  });
@@ -1765,7 +2811,7 @@ var useGetEvents = (dateStatus) => {
1765
2811
  return { error, events, loading, refetch };
1766
2812
  };
1767
2813
  var useGetEvent = (_id) => {
1768
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_EVENT, {
2814
+ const { loading, error, data, refetch } = (0, import_client22.useQuery)(GET_EVENT, {
1769
2815
  fetchPolicy: "network-only",
1770
2816
  skip: !_id,
1771
2817
  variables: { _id }
@@ -1774,7 +2820,7 @@ var useGetEvent = (_id) => {
1774
2820
  return { error, event, loading, refetch };
1775
2821
  };
1776
2822
  var useGetEventByPlaceId = (googlePlaceId) => {
1777
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_EVENT_BY_PLACE_ID, {
2823
+ const { loading, error, data, refetch } = (0, import_client22.useQuery)(GET_EVENT_BY_PLACE_ID, {
1778
2824
  fetchPolicy: "network-only",
1779
2825
  skip: !googlePlaceId,
1780
2826
  variables: { googlePlaceId }
@@ -1788,7 +2834,7 @@ var useGetEventsByRegion = (region, options, dateStatus) => {
1788
2834
  options,
1789
2835
  region
1790
2836
  };
1791
- const { loading, error, data, refetch, fetchMore } = (0, import_client19.useQuery)(GET_EVENTS_BY_REGION, {
2837
+ const { loading, error, data, refetch, fetchMore } = (0, import_client22.useQuery)(GET_EVENTS_BY_REGION, {
1792
2838
  fetchPolicy: "network-only",
1793
2839
  skip: !region || region === "",
1794
2840
  variables
@@ -1806,7 +2852,7 @@ var useSearchEvents = (region, searchQuery, tags, dateStatus) => {
1806
2852
  const normalizedSearch = searchQuery?.trim() ?? "";
1807
2853
  const normalizedTags = (tags ?? []).filter(Boolean);
1808
2854
  const shouldRunQuery = Boolean(region?.trim()) && (normalizedSearch.length > 3 || normalizedTags.length > 0);
1809
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(SEARCH_EVENTS, {
2855
+ const { loading, error, data, refetch } = (0, import_client22.useQuery)(SEARCH_EVENTS, {
1810
2856
  fetchPolicy: "network-only",
1811
2857
  skip: !shouldRunQuery,
1812
2858
  variables: {
@@ -1824,7 +2870,7 @@ var useSearchEvents = (region, searchQuery, tags, dateStatus) => {
1824
2870
  };
1825
2871
  };
1826
2872
  var useGetEventsNearMe = (location, dateStatus) => {
1827
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_EVENTS_NEAR_ME, {
2873
+ const { loading, error, data, refetch } = (0, import_client22.useQuery)(GET_EVENTS_NEAR_ME, {
1828
2874
  fetchPolicy: "network-only",
1829
2875
  skip: !location.latitude || !location.longitude,
1830
2876
  variables: {
@@ -1839,7 +2885,7 @@ var useGetEventsNearMe = (location, dateStatus) => {
1839
2885
  return { error, eventsNearMe, loading, refetch };
1840
2886
  };
1841
2887
  var useGetEventInfo = (eventId) => {
1842
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_EVENT_INFO, {
2888
+ const { loading, error, data, refetch } = (0, import_client22.useQuery)(GET_EVENT_INFO, {
1843
2889
  fetchPolicy: "network-only",
1844
2890
  skip: !eventId || eventId === "",
1845
2891
  variables: { eventId }
@@ -1849,14 +2895,14 @@ var useGetEventInfo = (eventId) => {
1849
2895
  };
1850
2896
 
1851
2897
  // src/graphql/hooks/notifications/hooksMutation.ts
1852
- var import_client22 = require("@apollo/client");
2898
+ var import_client25 = require("@apollo/client");
1853
2899
 
1854
2900
  // src/graphql/mutations/notification.ts
1855
- var import_client21 = require("@apollo/client");
2901
+ var import_client24 = require("@apollo/client");
1856
2902
 
1857
2903
  // src/graphql/queries/notification.ts
1858
- var import_client20 = require("@apollo/client");
1859
- var NOTIFICATION_FRAGMENT = import_client20.gql`
2904
+ var import_client23 = require("@apollo/client");
2905
+ var NOTIFICATION_FRAGMENT = import_client23.gql`
1860
2906
  fragment NotificationFields on Notification {
1861
2907
  _id
1862
2908
  userId
@@ -1873,7 +2919,7 @@ var NOTIFICATION_FRAGMENT = import_client20.gql`
1873
2919
  updatedAt
1874
2920
  }
1875
2921
  `;
1876
- var GET_USER_NOTIFICATIONS = import_client20.gql`
2922
+ var GET_USER_NOTIFICATIONS = import_client23.gql`
1877
2923
  query getUserNotifications($limit: Int, $offset: Int) {
1878
2924
  userNotifications(limit: $limit, offset: $offset) {
1879
2925
  ...NotificationFields
@@ -1881,7 +2927,7 @@ var GET_USER_NOTIFICATIONS = import_client20.gql`
1881
2927
  }
1882
2928
  ${NOTIFICATION_FRAGMENT}
1883
2929
  `;
1884
- var GET_NOTIFICATION_COUNT = import_client20.gql`
2930
+ var GET_NOTIFICATION_COUNT = import_client23.gql`
1885
2931
  query getNotificationCount {
1886
2932
  notificationCount {
1887
2933
  total
@@ -1891,7 +2937,7 @@ var GET_NOTIFICATION_COUNT = import_client20.gql`
1891
2937
  `;
1892
2938
 
1893
2939
  // src/graphql/mutations/notification.ts
1894
- var CREATE_BULK_NOTIFICATIONS = import_client21.gql`
2940
+ var CREATE_BULK_NOTIFICATIONS = import_client24.gql`
1895
2941
  mutation createBulkNotifications($input: CreateBulkNotificationInput!) {
1896
2942
  createBulkNotifications(input: $input) {
1897
2943
  ...NotificationFields
@@ -1899,7 +2945,7 @@ var CREATE_BULK_NOTIFICATIONS = import_client21.gql`
1899
2945
  }
1900
2946
  ${NOTIFICATION_FRAGMENT}
1901
2947
  `;
1902
- var MARK_NOTIFICATION_READ = import_client21.gql`
2948
+ var MARK_NOTIFICATION_READ = import_client24.gql`
1903
2949
  mutation markNotificationRead($_id: ID!) {
1904
2950
  markNotificationRead(_id: $_id) {
1905
2951
  ...NotificationFields
@@ -1907,17 +2953,17 @@ var MARK_NOTIFICATION_READ = import_client21.gql`
1907
2953
  }
1908
2954
  ${NOTIFICATION_FRAGMENT}
1909
2955
  `;
1910
- var MARK_ALL_NOTIFICATIONS_READ = import_client21.gql`
2956
+ var MARK_ALL_NOTIFICATIONS_READ = import_client24.gql`
1911
2957
  mutation markAllNotificationsRead {
1912
2958
  markAllNotificationsRead
1913
2959
  }
1914
2960
  `;
1915
- var DELETE_NOTIFICATION = import_client21.gql`
2961
+ var DELETE_NOTIFICATION = import_client24.gql`
1916
2962
  mutation deleteNotification($_id: ID!) {
1917
2963
  deleteNotification(_id: $_id)
1918
2964
  }
1919
2965
  `;
1920
- var DELETE_ALL_NOTIFICATIONS = import_client21.gql`
2966
+ var DELETE_ALL_NOTIFICATIONS = import_client24.gql`
1921
2967
  mutation deleteAllNotifications {
1922
2968
  deleteAllNotifications
1923
2969
  }
@@ -1925,13 +2971,13 @@ var DELETE_ALL_NOTIFICATIONS = import_client21.gql`
1925
2971
 
1926
2972
  // src/graphql/hooks/notifications/hooksMutation.ts
1927
2973
  var useCreateBulkNotifications = () => {
1928
- const [createBulkNotifications, { loading, error }] = (0, import_client22.useMutation)(
2974
+ const [createBulkNotifications, { loading, error }] = (0, import_client25.useMutation)(
1929
2975
  CREATE_BULK_NOTIFICATIONS
1930
2976
  );
1931
2977
  return { createBulkNotifications, error, loading };
1932
2978
  };
1933
2979
  var useMarkNotificationRead = () => {
1934
- const [markNotificationRead, { loading, error }] = (0, import_client22.useMutation)(
2980
+ const [markNotificationRead, { loading, error }] = (0, import_client25.useMutation)(
1935
2981
  MARK_NOTIFICATION_READ,
1936
2982
  {
1937
2983
  refetchQueries: [
@@ -1947,7 +2993,7 @@ var useMarkNotificationRead = () => {
1947
2993
  return { error, loading, markNotificationRead };
1948
2994
  };
1949
2995
  var useMarkAllNotificationsRead = () => {
1950
- const [markAllNotificationsRead, { loading, error }] = (0, import_client22.useMutation)(
2996
+ const [markAllNotificationsRead, { loading, error }] = (0, import_client25.useMutation)(
1951
2997
  MARK_ALL_NOTIFICATIONS_READ,
1952
2998
  {
1953
2999
  refetchQueries: [
@@ -1963,7 +3009,7 @@ var useMarkAllNotificationsRead = () => {
1963
3009
  return { error, loading, markAllNotificationsRead };
1964
3010
  };
1965
3011
  var useDeleteNotification = () => {
1966
- const [deleteNotification, { loading, error }] = (0, import_client22.useMutation)(
3012
+ const [deleteNotification, { loading, error }] = (0, import_client25.useMutation)(
1967
3013
  DELETE_NOTIFICATION,
1968
3014
  {
1969
3015
  refetchQueries: [
@@ -1979,7 +3025,7 @@ var useDeleteNotification = () => {
1979
3025
  return { deleteNotification, error, loading };
1980
3026
  };
1981
3027
  var useDeleteAllNotifications = () => {
1982
- const [deleteAllNotifications, { loading, error }] = (0, import_client22.useMutation)(
3028
+ const [deleteAllNotifications, { loading, error }] = (0, import_client25.useMutation)(
1983
3029
  DELETE_ALL_NOTIFICATIONS,
1984
3030
  {
1985
3031
  refetchQueries: [
@@ -1996,9 +3042,9 @@ var useDeleteAllNotifications = () => {
1996
3042
  };
1997
3043
 
1998
3044
  // src/graphql/hooks/notifications/hooksQuery.ts
1999
- var import_client23 = require("@apollo/client");
3045
+ var import_client26 = require("@apollo/client");
2000
3046
  var useGetUserNotifications = (limit, offset) => {
2001
- const { data, loading, error, refetch } = (0, import_client23.useQuery)(GET_USER_NOTIFICATIONS, {
3047
+ const { data, loading, error, refetch } = (0, import_client26.useQuery)(GET_USER_NOTIFICATIONS, {
2002
3048
  fetchPolicy: "no-cache",
2003
3049
  variables: { limit, offset }
2004
3050
  });
@@ -2010,7 +3056,7 @@ var useGetUserNotifications = (limit, offset) => {
2010
3056
  };
2011
3057
  };
2012
3058
  var useGetNotificationCount = () => {
2013
- const { data, loading, error, refetch } = (0, import_client23.useQuery)(GET_NOTIFICATION_COUNT, {
3059
+ const { data, loading, error, refetch } = (0, import_client26.useQuery)(GET_NOTIFICATION_COUNT, {
2014
3060
  fetchPolicy: "no-cache"
2015
3061
  });
2016
3062
  return {
@@ -2022,11 +3068,11 @@ var useGetNotificationCount = () => {
2022
3068
  };
2023
3069
 
2024
3070
  // src/graphql/hooks/notifications/hooksSubscription.ts
2025
- var import_client25 = require("@apollo/client");
3071
+ var import_client28 = require("@apollo/client");
2026
3072
 
2027
3073
  // src/graphql/subscriptions/notification.ts
2028
- var import_client24 = require("@apollo/client");
2029
- var GET_NOTIFICATIONS_SUBSCRIPTION = import_client24.gql`
3074
+ var import_client27 = require("@apollo/client");
3075
+ var GET_NOTIFICATIONS_SUBSCRIPTION = import_client27.gql`
2030
3076
  subscription {
2031
3077
  getUserNotifications {
2032
3078
  ...NotificationFields
@@ -2034,7 +3080,7 @@ var GET_NOTIFICATIONS_SUBSCRIPTION = import_client24.gql`
2034
3080
  }
2035
3081
  ${NOTIFICATION_FRAGMENT}
2036
3082
  `;
2037
- var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client24.gql`
3083
+ var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client27.gql`
2038
3084
  subscription {
2039
3085
  getNotificationCount {
2040
3086
  total
@@ -2045,7 +3091,7 @@ var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client24.gql`
2045
3091
 
2046
3092
  // src/graphql/hooks/notifications/hooksSubscription.ts
2047
3093
  var useGetUserNotificationsSubscription = () => {
2048
- const { data, loading, error } = (0, import_client25.useSubscription)(GET_NOTIFICATIONS_SUBSCRIPTION, {
3094
+ const { data, loading, error } = (0, import_client28.useSubscription)(GET_NOTIFICATIONS_SUBSCRIPTION, {
2049
3095
  fetchPolicy: "no-cache",
2050
3096
  shouldResubscribe: true
2051
3097
  });
@@ -2056,7 +3102,7 @@ var useGetUserNotificationsSubscription = () => {
2056
3102
  };
2057
3103
  };
2058
3104
  var useGetNotificationCountSubscription = () => {
2059
- const { data, loading, error } = (0, import_client25.useSubscription)(GET_NOTIFICATION_COUNT_SUBSCRIPTION, {
3105
+ const { data, loading, error } = (0, import_client28.useSubscription)(GET_NOTIFICATION_COUNT_SUBSCRIPTION, {
2060
3106
  fetchPolicy: "no-cache",
2061
3107
  shouldResubscribe: true
2062
3108
  });
@@ -2068,11 +3114,11 @@ var useGetNotificationCountSubscription = () => {
2068
3114
  };
2069
3115
 
2070
3116
  // src/graphql/hooks/poster.ts
2071
- var import_client27 = require("@apollo/client");
3117
+ var import_client30 = require("@apollo/client");
2072
3118
 
2073
3119
  // src/graphql/mutations/poster.ts
2074
- var import_client26 = require("@apollo/client");
2075
- var CREATE_POSTER_MUTATION = import_client26.gql`
3120
+ var import_client29 = require("@apollo/client");
3121
+ var CREATE_POSTER_MUTATION = import_client29.gql`
2076
3122
  mutation createPoster($input: PosterInputType!) {
2077
3123
  createPoster(input: $input) {
2078
3124
  message
@@ -2086,7 +3132,7 @@ var CREATE_POSTER_MUTATION = import_client26.gql`
2086
3132
 
2087
3133
  // src/graphql/hooks/poster.ts
2088
3134
  var useCreatePoster = () => {
2089
- const [createPoster, { loading, error }] = (0, import_client27.useMutation)(
3135
+ const [createPoster, { loading, error }] = (0, import_client30.useMutation)(
2090
3136
  CREATE_POSTER_MUTATION,
2091
3137
  {
2092
3138
  refetchQueries: [{ query: GET_USER_EVENTS }, { query: GET_USER_VENDORS }]
@@ -2096,11 +3142,11 @@ var useCreatePoster = () => {
2096
3142
  };
2097
3143
 
2098
3144
  // src/graphql/hooks/pushToken.ts
2099
- var import_client29 = require("@apollo/client");
3145
+ var import_client32 = require("@apollo/client");
2100
3146
 
2101
3147
  // src/graphql/mutations/pushToken.ts
2102
- var import_client28 = require("@apollo/client");
2103
- var CREATE_PUSH_TOKEN_MUTATION = import_client28.gql`
3148
+ var import_client31 = require("@apollo/client");
3149
+ var CREATE_PUSH_TOKEN_MUTATION = import_client31.gql`
2104
3150
  mutation createPushToken($input: PushTokenInput!) {
2105
3151
  createPushToken(input: $input) {
2106
3152
  success
@@ -2110,21 +3156,21 @@ var CREATE_PUSH_TOKEN_MUTATION = import_client28.gql`
2110
3156
 
2111
3157
  // src/graphql/hooks/pushToken.ts
2112
3158
  var useCreatePushToken = () => {
2113
- const [createPushToken, { loading, error }] = (0, import_client29.useMutation)(
3159
+ const [createPushToken, { loading, error }] = (0, import_client32.useMutation)(
2114
3160
  CREATE_PUSH_TOKEN_MUTATION
2115
3161
  );
2116
3162
  return { createPushToken, error, loading };
2117
3163
  };
2118
3164
 
2119
3165
  // src/graphql/hooks/relation/hooksMutation.ts
2120
- var import_client32 = require("@apollo/client");
3166
+ var import_client35 = require("@apollo/client");
2121
3167
 
2122
3168
  // src/graphql/mutations/relation.ts
2123
- var import_client31 = require("@apollo/client");
3169
+ var import_client34 = require("@apollo/client");
2124
3170
 
2125
3171
  // src/graphql/queries/relation.ts
2126
- var import_client30 = require("@apollo/client");
2127
- var RELATION_FIELDS_FRAGMENT = import_client30.gql`
3172
+ var import_client33 = require("@apollo/client");
3173
+ var RELATION_FIELDS_FRAGMENT = import_client33.gql`
2128
3174
  fragment RelationFields on RelationType {
2129
3175
  _id
2130
3176
  active
@@ -2141,7 +3187,7 @@ var RELATION_FIELDS_FRAGMENT = import_client30.gql`
2141
3187
  }
2142
3188
  ${RELATION_DATES_FRAGMENT}
2143
3189
  `;
2144
- var GET_RELATION = import_client30.gql`
3190
+ var GET_RELATION = import_client33.gql`
2145
3191
  query getRelation($_id: ID!) {
2146
3192
  relation(_id: $_id) {
2147
3193
  ...RelationFields
@@ -2149,7 +3195,7 @@ var GET_RELATION = import_client30.gql`
2149
3195
  }
2150
3196
  ${RELATION_FIELDS_FRAGMENT}
2151
3197
  `;
2152
- var GET_RELATION_BY_EVENT_AND_VENDOR = import_client30.gql`
3198
+ var GET_RELATION_BY_EVENT_AND_VENDOR = import_client33.gql`
2153
3199
  query getRelationByEventAndVendor($eventId: ID!, $vendorId: ID!) {
2154
3200
  relationByEventAndVendor(eventId: $eventId, vendorId: $vendorId) {
2155
3201
  ...RelationFields
@@ -2157,7 +3203,7 @@ var GET_RELATION_BY_EVENT_AND_VENDOR = import_client30.gql`
2157
3203
  }
2158
3204
  ${RELATION_FIELDS_FRAGMENT}
2159
3205
  `;
2160
- var GET_EVENT_RELATIONS = import_client30.gql`
3206
+ var GET_EVENT_RELATIONS = import_client33.gql`
2161
3207
  query getEventRelations($eventId: ID!) {
2162
3208
  eventRelations(eventId: $eventId) {
2163
3209
  ...RelationFields
@@ -2165,7 +3211,7 @@ var GET_EVENT_RELATIONS = import_client30.gql`
2165
3211
  }
2166
3212
  ${RELATION_FIELDS_FRAGMENT}
2167
3213
  `;
2168
- var GET_VENDOR_RELATIONS = import_client30.gql`
3214
+ var GET_VENDOR_RELATIONS = import_client33.gql`
2169
3215
  query getVendorRelations($vendorId: ID!) {
2170
3216
  vendorRelations(vendorId: $vendorId) {
2171
3217
  ...RelationFields
@@ -2173,7 +3219,7 @@ var GET_VENDOR_RELATIONS = import_client30.gql`
2173
3219
  }
2174
3220
  ${RELATION_FIELDS_FRAGMENT}
2175
3221
  `;
2176
- var GET_RESOURCE_CONNECTIONS = import_client30.gql`
3222
+ var GET_RESOURCE_CONNECTIONS = import_client33.gql`
2177
3223
  query getResourceConnections(
2178
3224
  $resourceId: ID!
2179
3225
  $resourceType: ResourceTypeEnum!
@@ -2192,7 +3238,7 @@ var GET_RESOURCE_CONNECTIONS = import_client30.gql`
2192
3238
  `;
2193
3239
 
2194
3240
  // src/graphql/mutations/relation.ts
2195
- var CREATE_RELATION_MUTATION = import_client31.gql`
3241
+ var CREATE_RELATION_MUTATION = import_client34.gql`
2196
3242
  mutation createRelation($input: RelationInputType!) {
2197
3243
  createRelation(input: $input) {
2198
3244
  ...RelationFields
@@ -2200,7 +3246,7 @@ var CREATE_RELATION_MUTATION = import_client31.gql`
2200
3246
  }
2201
3247
  ${RELATION_FIELDS_FRAGMENT}
2202
3248
  `;
2203
- var UPDATE_RELATION_MUTATION = import_client31.gql`
3249
+ var UPDATE_RELATION_MUTATION = import_client34.gql`
2204
3250
  mutation updateRelation($_id: ID!, $input: RelationInputType!) {
2205
3251
  updateRelation(_id: $_id, input: $input) {
2206
3252
  ...RelationFields
@@ -2208,7 +3254,7 @@ var UPDATE_RELATION_MUTATION = import_client31.gql`
2208
3254
  }
2209
3255
  ${RELATION_FIELDS_FRAGMENT}
2210
3256
  `;
2211
- var DELETE_RELATION_MUTATION = import_client31.gql`
3257
+ var DELETE_RELATION_MUTATION = import_client34.gql`
2212
3258
  mutation deleteRelation($_id: ID!) {
2213
3259
  deleteRelation(_id: $_id) {
2214
3260
  ...RelationFields
@@ -2219,7 +3265,7 @@ var DELETE_RELATION_MUTATION = import_client31.gql`
2219
3265
 
2220
3266
  // src/graphql/hooks/relation/hooksMutation.ts
2221
3267
  var useCreateRelation = () => {
2222
- const [createRelation, { loading, error }] = (0, import_client32.useMutation)(CREATE_RELATION_MUTATION, {
3268
+ const [createRelation, { loading, error }] = (0, import_client35.useMutation)(CREATE_RELATION_MUTATION, {
2223
3269
  awaitRefetchQueries: true,
2224
3270
  refetchQueries: (mutationResult) => {
2225
3271
  const createRelation2 = mutationResult?.data?.createRelation;
@@ -2265,7 +3311,7 @@ var useCreateRelation = () => {
2265
3311
  return { createRelation, error, loading };
2266
3312
  };
2267
3313
  var useUpdateRelation = () => {
2268
- const [updateRelation, { loading, error }] = (0, import_client32.useMutation)(UPDATE_RELATION_MUTATION, {
3314
+ const [updateRelation, { loading, error }] = (0, import_client35.useMutation)(UPDATE_RELATION_MUTATION, {
2269
3315
  awaitRefetchQueries: true,
2270
3316
  refetchQueries: (mutationResult) => {
2271
3317
  const updateRelation2 = mutationResult?.data?.updateRelation;
@@ -2308,7 +3354,7 @@ var useUpdateRelation = () => {
2308
3354
  return { error, loading, updateRelation };
2309
3355
  };
2310
3356
  var useDeleteRelation = () => {
2311
- const [deleteRelation, { loading, error }] = (0, import_client32.useMutation)(DELETE_RELATION_MUTATION, {
3357
+ const [deleteRelation, { loading, error }] = (0, import_client35.useMutation)(DELETE_RELATION_MUTATION, {
2312
3358
  awaitRefetchQueries: true,
2313
3359
  refetchQueries: (mutationResult) => {
2314
3360
  const deleteRelation2 = mutationResult?.data?.deleteRelation;
@@ -2347,9 +3393,9 @@ var useDeleteRelation = () => {
2347
3393
  };
2348
3394
 
2349
3395
  // src/graphql/hooks/relation/hooksQuery.ts
2350
- var import_client33 = require("@apollo/client");
3396
+ var import_client36 = require("@apollo/client");
2351
3397
  var useGetRelation = (_id) => {
2352
- const { loading, error, data, refetch } = (0, import_client33.useQuery)(GET_RELATION, {
3398
+ const { loading, error, data, refetch } = (0, import_client36.useQuery)(GET_RELATION, {
2353
3399
  fetchPolicy: "network-only",
2354
3400
  skip: !_id,
2355
3401
  variables: _id ? { _id } : void 0
@@ -2358,7 +3404,7 @@ var useGetRelation = (_id) => {
2358
3404
  return { error, loading, refetch, relation };
2359
3405
  };
2360
3406
  var useGetRelationByEventAndVendor = (eventId, vendorId) => {
2361
- const { loading, error, data, refetch } = (0, import_client33.useQuery)(GET_RELATION_BY_EVENT_AND_VENDOR, {
3407
+ const { loading, error, data, refetch } = (0, import_client36.useQuery)(GET_RELATION_BY_EVENT_AND_VENDOR, {
2362
3408
  fetchPolicy: "network-only",
2363
3409
  skip: !eventId || eventId === "" || !vendorId || vendorId === "",
2364
3410
  variables: { eventId, vendorId }
@@ -2367,7 +3413,7 @@ var useGetRelationByEventAndVendor = (eventId, vendorId) => {
2367
3413
  return { error, loading, refetch, relationByEventAndVendor };
2368
3414
  };
2369
3415
  var useGetEventRelations = (eventId) => {
2370
- const { loading, error, data, refetch } = (0, import_client33.useQuery)(GET_EVENT_RELATIONS, {
3416
+ const { loading, error, data, refetch } = (0, import_client36.useQuery)(GET_EVENT_RELATIONS, {
2371
3417
  fetchPolicy: "network-only",
2372
3418
  skip: !eventId || eventId === "",
2373
3419
  variables: { eventId }
@@ -2376,7 +3422,7 @@ var useGetEventRelations = (eventId) => {
2376
3422
  return { error, eventRelations, loading, refetch };
2377
3423
  };
2378
3424
  var useGetVendorRelations = (vendorId) => {
2379
- const { loading, error, data, refetch } = (0, import_client33.useQuery)(GET_VENDOR_RELATIONS, {
3425
+ const { loading, error, data, refetch } = (0, import_client36.useQuery)(GET_VENDOR_RELATIONS, {
2380
3426
  fetchPolicy: "network-only",
2381
3427
  skip: !vendorId || vendorId === "",
2382
3428
  variables: { vendorId }
@@ -2385,7 +3431,7 @@ var useGetVendorRelations = (vendorId) => {
2385
3431
  return { error, loading, refetch, vendorRelations };
2386
3432
  };
2387
3433
  var useGetResourceConnections = (resourceId, resourceType) => {
2388
- const { loading, error, data, refetch } = (0, import_client33.useQuery)(GET_RESOURCE_CONNECTIONS, {
3434
+ const { loading, error, data, refetch } = (0, import_client36.useQuery)(GET_RESOURCE_CONNECTIONS, {
2389
3435
  fetchPolicy: "network-only",
2390
3436
  skip: !resourceId || resourceId === "" || !resourceType,
2391
3437
  variables: { resourceId, resourceType }
@@ -2395,11 +3441,11 @@ var useGetResourceConnections = (resourceId, resourceType) => {
2395
3441
  };
2396
3442
 
2397
3443
  // src/graphql/hooks/vendor/hooksMutation.ts
2398
- var import_client35 = require("@apollo/client");
3444
+ var import_client38 = require("@apollo/client");
2399
3445
 
2400
3446
  // src/graphql/mutations/vendor.ts
2401
- var import_client34 = require("@apollo/client");
2402
- var CREATE_VENDOR_MUTATION = import_client34.gql`
3447
+ var import_client37 = require("@apollo/client");
3448
+ var CREATE_VENDOR_MUTATION = import_client37.gql`
2403
3449
  mutation createVendor($input: VendorInputType!) {
2404
3450
  createVendor(input: $input) {
2405
3451
  ...VendorFields
@@ -2407,7 +3453,7 @@ var CREATE_VENDOR_MUTATION = import_client34.gql`
2407
3453
  }
2408
3454
  ${VENDOR}
2409
3455
  `;
2410
- var UPDATE_VENDOR_MUTATION = import_client34.gql`
3456
+ var UPDATE_VENDOR_MUTATION = import_client37.gql`
2411
3457
  mutation updateVendor($_id: ID!, $input: VendorInputType!) {
2412
3458
  updateVendor(_id: $_id, input: $input) {
2413
3459
  ...VendorFields
@@ -2415,12 +3461,12 @@ var UPDATE_VENDOR_MUTATION = import_client34.gql`
2415
3461
  }
2416
3462
  ${VENDOR}
2417
3463
  `;
2418
- var DELETE_VENDOR_MUTATION = import_client34.gql`
3464
+ var DELETE_VENDOR_MUTATION = import_client37.gql`
2419
3465
  mutation deleteVendor($_id: ID!) {
2420
3466
  deleteVendor(_id: $_id)
2421
3467
  }
2422
3468
  `;
2423
- var CREATE_VENDOR_INFO_MUTATION = import_client34.gql`
3469
+ var CREATE_VENDOR_INFO_MUTATION = import_client37.gql`
2424
3470
  mutation createVendorInfo($input: VendorInfoInputType!) {
2425
3471
  createVendorInfo(input: $input) {
2426
3472
  ...VendorInfoFields
@@ -2428,7 +3474,7 @@ var CREATE_VENDOR_INFO_MUTATION = import_client34.gql`
2428
3474
  }
2429
3475
  ${VENDOR_INFO}
2430
3476
  `;
2431
- var UPDATE_VENDOR_INFO_MUTATION = import_client34.gql`
3477
+ var UPDATE_VENDOR_INFO_MUTATION = import_client37.gql`
2432
3478
  mutation updateVendorInfo($_id: ID!, $input: VendorInfoInputType!) {
2433
3479
  updateVendorInfo(_id: $_id, input: $input) {
2434
3480
  ...VendorInfoFields
@@ -2436,7 +3482,7 @@ var UPDATE_VENDOR_INFO_MUTATION = import_client34.gql`
2436
3482
  }
2437
3483
  ${VENDOR_INFO}
2438
3484
  `;
2439
- var CREATE_UNREGISTERED_VENDOR_MUTATION = import_client34.gql`
3485
+ var CREATE_UNREGISTERED_VENDOR_MUTATION = import_client37.gql`
2440
3486
  mutation createUnregisteredVendor($input: UnregisteredVendorInputType!) {
2441
3487
  createUnregisteredVendor(input: $input) {
2442
3488
  ...UnregisteredVendorFields
@@ -2444,7 +3490,7 @@ var CREATE_UNREGISTERED_VENDOR_MUTATION = import_client34.gql`
2444
3490
  }
2445
3491
  ${UNREGISTERED_VENDOR}
2446
3492
  `;
2447
- var UPDATE_UNREGISTERED_VENDOR_MUTATION = import_client34.gql`
3493
+ var UPDATE_UNREGISTERED_VENDOR_MUTATION = import_client37.gql`
2448
3494
  mutation updateUnregisteredVendor(
2449
3495
  $_id: ID!
2450
3496
  $input: UnregisteredVendorInputType!
@@ -2455,12 +3501,12 @@ var UPDATE_UNREGISTERED_VENDOR_MUTATION = import_client34.gql`
2455
3501
  }
2456
3502
  ${UNREGISTERED_VENDOR}
2457
3503
  `;
2458
- var DELETE_UNREGISTERED_VENDOR_MUTATION = import_client34.gql`
3504
+ var DELETE_UNREGISTERED_VENDOR_MUTATION = import_client37.gql`
2459
3505
  mutation deleteUnregisteredVendor($_id: ID!) {
2460
3506
  deleteUnregisteredVendor(_id: $_id)
2461
3507
  }
2462
3508
  `;
2463
- var UNLINK_UNREGISTERED_VENDOR_BY_INVITER_ID_MUTATION = import_client34.gql`
3509
+ var UNLINK_UNREGISTERED_VENDOR_BY_INVITER_ID_MUTATION = import_client37.gql`
2464
3510
  mutation unlinkUnregisteredVendorByInviterId($_id: ID!, $inviterId: ID!) {
2465
3511
  unlinkUnregisteredVendorByInviterId(_id: $_id, inviterId: $inviterId)
2466
3512
  }
@@ -2468,7 +3514,7 @@ var UNLINK_UNREGISTERED_VENDOR_BY_INVITER_ID_MUTATION = import_client34.gql`
2468
3514
 
2469
3515
  // src/graphql/hooks/vendor/hooksMutation.ts
2470
3516
  var useCreateVendor = () => {
2471
- const [createVendor, { loading, error }] = (0, import_client35.useMutation)(
3517
+ const [createVendor, { loading, error }] = (0, import_client38.useMutation)(
2472
3518
  CREATE_VENDOR_MUTATION,
2473
3519
  {
2474
3520
  awaitRefetchQueries: true,
@@ -2478,7 +3524,7 @@ var useCreateVendor = () => {
2478
3524
  return { createVendor, error, loading };
2479
3525
  };
2480
3526
  var useUpdateVendor = () => {
2481
- const [updateVendor, { loading, error }] = (0, import_client35.useMutation)(
3527
+ const [updateVendor, { loading, error }] = (0, import_client38.useMutation)(
2482
3528
  UPDATE_VENDOR_MUTATION,
2483
3529
  {
2484
3530
  awaitRefetchQueries: true,
@@ -2488,7 +3534,7 @@ var useUpdateVendor = () => {
2488
3534
  return { error, loading, updateVendor };
2489
3535
  };
2490
3536
  var useDeleteVendor = () => {
2491
- const [deleteVendor, { loading, error }] = (0, import_client35.useMutation)(
3537
+ const [deleteVendor, { loading, error }] = (0, import_client38.useMutation)(
2492
3538
  DELETE_VENDOR_MUTATION,
2493
3539
  {
2494
3540
  awaitRefetchQueries: true,
@@ -2498,7 +3544,7 @@ var useDeleteVendor = () => {
2498
3544
  return { deleteVendor, error, loading };
2499
3545
  };
2500
3546
  var useCreateVendorInfo = () => {
2501
- const [createVendorInfo, { loading, error }] = (0, import_client35.useMutation)(CREATE_VENDOR_INFO_MUTATION, {
3547
+ const [createVendorInfo, { loading, error }] = (0, import_client38.useMutation)(CREATE_VENDOR_INFO_MUTATION, {
2502
3548
  awaitRefetchQueries: true,
2503
3549
  refetchQueries: (mutationResult) => {
2504
3550
  const vendorId = mutationResult?.data?.createVendorInfo?.vendorId;
@@ -2522,7 +3568,7 @@ var useCreateVendorInfo = () => {
2522
3568
  return { createVendorInfo, error, loading };
2523
3569
  };
2524
3570
  var useUpdateVendorInfo = () => {
2525
- const [updateVendorInfo, { loading, error }] = (0, import_client35.useMutation)(UPDATE_VENDOR_INFO_MUTATION, {
3571
+ const [updateVendorInfo, { loading, error }] = (0, import_client38.useMutation)(UPDATE_VENDOR_INFO_MUTATION, {
2526
3572
  awaitRefetchQueries: true,
2527
3573
  refetchQueries: (mutationResult) => {
2528
3574
  const vendorId = mutationResult?.data?.updateVendorInfo?.vendorId;
@@ -2539,34 +3585,34 @@ var useUpdateVendorInfo = () => {
2539
3585
  return { error, loading, updateVendorInfo };
2540
3586
  };
2541
3587
  var useCreateUnregisteredVendor = () => {
2542
- const [createUnregisteredVendor, { loading, error }] = (0, import_client35.useMutation)(
3588
+ const [createUnregisteredVendor, { loading, error }] = (0, import_client38.useMutation)(
2543
3589
  CREATE_UNREGISTERED_VENDOR_MUTATION
2544
3590
  );
2545
3591
  return { createUnregisteredVendor, error, loading };
2546
3592
  };
2547
3593
  var useUpdateUnregisteredVendor = () => {
2548
- const [updateUnregisteredVendor, { loading, error }] = (0, import_client35.useMutation)(
3594
+ const [updateUnregisteredVendor, { loading, error }] = (0, import_client38.useMutation)(
2549
3595
  UPDATE_UNREGISTERED_VENDOR_MUTATION
2550
3596
  );
2551
3597
  return { error, loading, updateUnregisteredVendor };
2552
3598
  };
2553
3599
  var useDeleteUnregisteredVendor = () => {
2554
- const [deleteUnregisteredVendor, { loading, error }] = (0, import_client35.useMutation)(
3600
+ const [deleteUnregisteredVendor, { loading, error }] = (0, import_client38.useMutation)(
2555
3601
  DELETE_UNREGISTERED_VENDOR_MUTATION
2556
3602
  );
2557
3603
  return { deleteUnregisteredVendor, error, loading };
2558
3604
  };
2559
3605
  var useUnlinkUnregisteredVendorByInviterId = () => {
2560
- const [unlinkUnregisteredVendorByInviterId, { loading, error }] = (0, import_client35.useMutation)(
3606
+ const [unlinkUnregisteredVendorByInviterId, { loading, error }] = (0, import_client38.useMutation)(
2561
3607
  UNLINK_UNREGISTERED_VENDOR_BY_INVITER_ID_MUTATION
2562
3608
  );
2563
3609
  return { error, loading, unlinkUnregisteredVendorByInviterId };
2564
3610
  };
2565
3611
 
2566
3612
  // src/graphql/hooks/vendor/hooksQuery.ts
2567
- var import_client36 = require("@apollo/client");
3613
+ var import_client39 = require("@apollo/client");
2568
3614
  var useGetVendors = () => {
2569
- const { loading, error, data, refetch } = (0, import_client36.useQuery)(
3615
+ const { loading, error, data, refetch } = (0, import_client39.useQuery)(
2570
3616
  GET_VENDORS,
2571
3617
  {
2572
3618
  fetchPolicy: "network-only"
@@ -2581,7 +3627,7 @@ var useGetVendors = () => {
2581
3627
  };
2582
3628
  };
2583
3629
  var useGetVendor = (_id) => {
2584
- const { loading, error, data, refetch } = (0, import_client36.useQuery)(
3630
+ const { loading, error, data, refetch } = (0, import_client39.useQuery)(
2585
3631
  GET_VENDOR,
2586
3632
  {
2587
3633
  fetchPolicy: "network-only",
@@ -2597,7 +3643,7 @@ var useGetVendorsByRegion = (region, options) => {
2597
3643
  options,
2598
3644
  region
2599
3645
  };
2600
- const { loading, error, data, refetch, fetchMore } = (0, import_client36.useQuery)(GET_VENDORS_BY_REGION, {
3646
+ const { loading, error, data, refetch, fetchMore } = (0, import_client39.useQuery)(GET_VENDORS_BY_REGION, {
2601
3647
  fetchPolicy: "network-only",
2602
3648
  skip: !region || region === "",
2603
3649
  variables
@@ -2612,7 +3658,7 @@ var useGetVendorsByRegion = (region, options) => {
2612
3658
  };
2613
3659
  };
2614
3660
  var useSearchVendors = (search, region) => {
2615
- const { loading, error, data, refetch } = (0, import_client36.useQuery)(SEARCH_VENDORS, {
3661
+ const { loading, error, data, refetch } = (0, import_client39.useQuery)(SEARCH_VENDORS, {
2616
3662
  fetchPolicy: "network-only",
2617
3663
  skip: search.length < 3 || !region || region === "",
2618
3664
  variables: { region, search }
@@ -2621,7 +3667,7 @@ var useSearchVendors = (search, region) => {
2621
3667
  return { error, loading, refetch, vendorSearch };
2622
3668
  };
2623
3669
  var useGetVendorInfo = (vendorId) => {
2624
- const { loading, error, data, refetch } = (0, import_client36.useQuery)(GET_VENDOR_INFO, {
3670
+ const { loading, error, data, refetch } = (0, import_client39.useQuery)(GET_VENDOR_INFO, {
2625
3671
  fetchPolicy: "network-only",
2626
3672
  skip: !vendorId || vendorId === "",
2627
3673
  variables: { vendorId }
@@ -2635,7 +3681,7 @@ var useGetVendorInfo = (vendorId) => {
2635
3681
  };
2636
3682
  };
2637
3683
  var useGetUnregisteredVendors = () => {
2638
- const { loading, error, data, refetch } = (0, import_client36.useQuery)(GET_UNREGISTERED_VENDORS, {
3684
+ const { loading, error, data, refetch } = (0, import_client39.useQuery)(GET_UNREGISTERED_VENDORS, {
2639
3685
  fetchPolicy: "network-only"
2640
3686
  });
2641
3687
  const unregisteredVendors = data?.unregisteredVendors || [];
@@ -2647,7 +3693,7 @@ var useGetUnregisteredVendors = () => {
2647
3693
  };
2648
3694
  };
2649
3695
  var useGetUnregisteredVendorsByInviterId = (inviterId) => {
2650
- const { loading, error, data, refetch } = (0, import_client36.useQuery)(GET_UNREGISTERED_VENDORS_BY_INVITER_ID, {
3696
+ const { loading, error, data, refetch } = (0, import_client39.useQuery)(GET_UNREGISTERED_VENDORS_BY_INVITER_ID, {
2651
3697
  fetchPolicy: "network-only",
2652
3698
  skip: !inviterId || inviterId === "",
2653
3699
  variables: { inviterId }
@@ -2656,7 +3702,7 @@ var useGetUnregisteredVendorsByInviterId = (inviterId) => {
2656
3702
  return { error, loading, refetch, unregisteredVendorsByInviterId };
2657
3703
  };
2658
3704
  var useGetUnregisteredVendor = (_id) => {
2659
- const { loading, error, data, refetch } = (0, import_client36.useQuery)(GET_UNREGISTERED_VENDOR, {
3705
+ const { loading, error, data, refetch } = (0, import_client39.useQuery)(GET_UNREGISTERED_VENDOR, {
2660
3706
  fetchPolicy: "network-only",
2661
3707
  skip: !_id || _id === "",
2662
3708
  variables: { _id }
@@ -2666,11 +3712,11 @@ var useGetUnregisteredVendor = (_id) => {
2666
3712
  };
2667
3713
 
2668
3714
  // src/graphql/hooks/user/hooksMutation.ts
2669
- var import_client38 = require("@apollo/client");
3715
+ var import_client41 = require("@apollo/client");
2670
3716
 
2671
3717
  // src/graphql/mutations/user.ts
2672
- var import_client37 = require("@apollo/client");
2673
- var CREATE_USER_MUTATION = import_client37.gql`
3718
+ var import_client40 = require("@apollo/client");
3719
+ var CREATE_USER_MUTATION = import_client40.gql`
2674
3720
  mutation createUser($input: UserInputType!) {
2675
3721
  createUser(input: $input) {
2676
3722
  ...UserFields
@@ -2678,7 +3724,7 @@ var CREATE_USER_MUTATION = import_client37.gql`
2678
3724
  }
2679
3725
  ${USER_FIELDS_FRAGMENT}
2680
3726
  `;
2681
- var UPDATE_USER_MUTATION = import_client37.gql`
3727
+ var UPDATE_USER_MUTATION = import_client40.gql`
2682
3728
  mutation updateUser($_id: ID!, $input: UserInputType!) {
2683
3729
  updateUser(_id: $_id, input: $input) {
2684
3730
  ...UserFields
@@ -2686,12 +3732,12 @@ var UPDATE_USER_MUTATION = import_client37.gql`
2686
3732
  }
2687
3733
  ${USER_FIELDS_FRAGMENT}
2688
3734
  `;
2689
- var DELETE_USER_MUTATION = import_client37.gql`
3735
+ var DELETE_USER_MUTATION = import_client40.gql`
2690
3736
  mutation deleteUser($email: String!) {
2691
3737
  deleteUser(email: $email)
2692
3738
  }
2693
3739
  `;
2694
- var REDEEM_REWARD_MUTATION = import_client37.gql`
3740
+ var REDEEM_REWARD_MUTATION = import_client40.gql`
2695
3741
  mutation redeemReward($input: RedeemRewardInputType!) {
2696
3742
  redeemReward(input: $input) {
2697
3743
  message
@@ -2699,7 +3745,7 @@ var REDEEM_REWARD_MUTATION = import_client37.gql`
2699
3745
  }
2700
3746
  }
2701
3747
  `;
2702
- var ADD_USER_FAVOURITE_RESOURCE_MUTATION = import_client37.gql`
3748
+ var ADD_USER_FAVOURITE_RESOURCE_MUTATION = import_client40.gql`
2703
3749
  mutation addUserFavouriteResource(
2704
3750
  $resourceId: ID!
2705
3751
  $resourceType: ResourceTypeEnum!
@@ -2713,7 +3759,7 @@ var ADD_USER_FAVOURITE_RESOURCE_MUTATION = import_client37.gql`
2713
3759
  }
2714
3760
  ${USER_FIELDS_FRAGMENT}
2715
3761
  `;
2716
- var REMOVE_USER_FAVOURITE_RESOURCE_MUTATION = import_client37.gql`
3762
+ var REMOVE_USER_FAVOURITE_RESOURCE_MUTATION = import_client40.gql`
2717
3763
  mutation removeUserFavouriteResource(
2718
3764
  $resourceId: ID!
2719
3765
  $resourceType: ResourceTypeEnum!
@@ -2727,7 +3773,7 @@ var REMOVE_USER_FAVOURITE_RESOURCE_MUTATION = import_client37.gql`
2727
3773
  }
2728
3774
  ${USER_FIELDS_FRAGMENT}
2729
3775
  `;
2730
- var ADD_USER_INTEREST_RESOURCE_MUTATION = import_client37.gql`
3776
+ var ADD_USER_INTEREST_RESOURCE_MUTATION = import_client40.gql`
2731
3777
  mutation addUserInterestResource($input: UserActivityInputType!) {
2732
3778
  addUserInterestResource(input: $input) {
2733
3779
  ...UserFields
@@ -2735,7 +3781,7 @@ var ADD_USER_INTEREST_RESOURCE_MUTATION = import_client37.gql`
2735
3781
  }
2736
3782
  ${USER_FIELDS_FRAGMENT}
2737
3783
  `;
2738
- var REMOVE_USER_INTEREST_RESOURCE_MUTATION = import_client37.gql`
3784
+ var REMOVE_USER_INTEREST_RESOURCE_MUTATION = import_client40.gql`
2739
3785
  mutation removeUserInterestResource($input: UserActivityInputType!) {
2740
3786
  removeUserInterestResource(input: $input) {
2741
3787
  ...UserFields
@@ -2743,7 +3789,7 @@ var REMOVE_USER_INTEREST_RESOURCE_MUTATION = import_client37.gql`
2743
3789
  }
2744
3790
  ${USER_FIELDS_FRAGMENT}
2745
3791
  `;
2746
- var ADD_USER_GOING_RESOURCE_MUTATION = import_client37.gql`
3792
+ var ADD_USER_GOING_RESOURCE_MUTATION = import_client40.gql`
2747
3793
  mutation addUserGoingResource($input: UserActivityInputType!) {
2748
3794
  addUserGoingResource(input: $input) {
2749
3795
  ...UserFields
@@ -2751,7 +3797,7 @@ var ADD_USER_GOING_RESOURCE_MUTATION = import_client37.gql`
2751
3797
  }
2752
3798
  ${USER_FIELDS_FRAGMENT}
2753
3799
  `;
2754
- var REMOVE_USER_GOING_RESOURCE_MUTATION = import_client37.gql`
3800
+ var REMOVE_USER_GOING_RESOURCE_MUTATION = import_client40.gql`
2755
3801
  mutation removeUserGoingResource($input: UserActivityInputType!) {
2756
3802
  removeUserGoingResource(input: $input) {
2757
3803
  ...UserFields
@@ -2759,7 +3805,7 @@ var REMOVE_USER_GOING_RESOURCE_MUTATION = import_client37.gql`
2759
3805
  }
2760
3806
  ${USER_FIELDS_FRAGMENT}
2761
3807
  `;
2762
- var ADD_USER_PRESENT_RESOURCE_MUTATION = import_client37.gql`
3808
+ var ADD_USER_PRESENT_RESOURCE_MUTATION = import_client40.gql`
2763
3809
  mutation addUserPresentResource($input: UserActivityInputType!) {
2764
3810
  addUserPresentResource(input: $input) {
2765
3811
  ...UserFields
@@ -2767,7 +3813,7 @@ var ADD_USER_PRESENT_RESOURCE_MUTATION = import_client37.gql`
2767
3813
  }
2768
3814
  ${USER_FIELDS_FRAGMENT}
2769
3815
  `;
2770
- var REMOVE_USER_PRESENT_RESOURCE_MUTATION = import_client37.gql`
3816
+ var REMOVE_USER_PRESENT_RESOURCE_MUTATION = import_client40.gql`
2771
3817
  mutation removeUserPresentResource($input: UserActivityInputType!) {
2772
3818
  removeUserPresentResource(input: $input) {
2773
3819
  ...UserFields
@@ -2775,7 +3821,7 @@ var REMOVE_USER_PRESENT_RESOURCE_MUTATION = import_client37.gql`
2775
3821
  }
2776
3822
  ${USER_FIELDS_FRAGMENT}
2777
3823
  `;
2778
- var SELECT_STANDARD_PACKAGE_MUTATION = import_client37.gql`
3824
+ var SELECT_STANDARD_PACKAGE_MUTATION = import_client40.gql`
2779
3825
  mutation selectStandardPackage($selectedLicence: LicencesEnumType!) {
2780
3826
  selectStandardPackage(selectedLicence: $selectedLicence) {
2781
3827
  licences {
@@ -2790,11 +3836,11 @@ var SELECT_STANDARD_PACKAGE_MUTATION = import_client37.gql`
2790
3836
 
2791
3837
  // src/graphql/hooks/user/hooksMutation.ts
2792
3838
  var useCreateUser = () => {
2793
- const [createUser, { loading, error }] = (0, import_client38.useMutation)(CREATE_USER_MUTATION);
3839
+ const [createUser, { loading, error }] = (0, import_client41.useMutation)(CREATE_USER_MUTATION);
2794
3840
  return { createUser, error, loading };
2795
3841
  };
2796
3842
  var useUpdateUser = () => {
2797
- const [updateUser, { loading, error }] = (0, import_client38.useMutation)(UPDATE_USER_MUTATION, {
3843
+ const [updateUser, { loading, error }] = (0, import_client41.useMutation)(UPDATE_USER_MUTATION, {
2798
3844
  awaitRefetchQueries: true,
2799
3845
  refetchQueries: (mutationResult) => {
2800
3846
  const userId = mutationResult?.data?.updateUser?._id;
@@ -2805,11 +3851,11 @@ var useUpdateUser = () => {
2805
3851
  return { error, loading, updateUser };
2806
3852
  };
2807
3853
  var useDeleteUser = () => {
2808
- const [deleteUser, { loading, error }] = (0, import_client38.useMutation)(DELETE_USER_MUTATION);
3854
+ const [deleteUser, { loading, error }] = (0, import_client41.useMutation)(DELETE_USER_MUTATION);
2809
3855
  return { deleteUser, error, loading };
2810
3856
  };
2811
3857
  var useRedeemReward = () => {
2812
- const [redeemReward, { loading, error }] = (0, import_client38.useMutation)(REDEEM_REWARD_MUTATION, {
3858
+ const [redeemReward, { loading, error }] = (0, import_client41.useMutation)(REDEEM_REWARD_MUTATION, {
2813
3859
  awaitRefetchQueries: true,
2814
3860
  refetchQueries: (mutationResult) => {
2815
3861
  const userId = mutationResult?.data?.redeemReward?.userId;
@@ -2826,7 +3872,7 @@ var useRedeemReward = () => {
2826
3872
  return { error, loading, redeemReward };
2827
3873
  };
2828
3874
  var useAddUserFavouriteResource = () => {
2829
- const [addUserFavouriteResource, { loading, error }] = (0, import_client38.useMutation)(
3875
+ const [addUserFavouriteResource, { loading, error }] = (0, import_client41.useMutation)(
2830
3876
  ADD_USER_FAVOURITE_RESOURCE_MUTATION,
2831
3877
  {
2832
3878
  awaitRefetchQueries: true,
@@ -2836,7 +3882,7 @@ var useAddUserFavouriteResource = () => {
2836
3882
  return { addUserFavouriteResource, error, loading };
2837
3883
  };
2838
3884
  var useRemoveUserFavouriteResource = () => {
2839
- const [removeUserFavouriteResource, { loading, error }] = (0, import_client38.useMutation)(
3885
+ const [removeUserFavouriteResource, { loading, error }] = (0, import_client41.useMutation)(
2840
3886
  REMOVE_USER_FAVOURITE_RESOURCE_MUTATION,
2841
3887
  {
2842
3888
  awaitRefetchQueries: true,
@@ -2846,7 +3892,7 @@ var useRemoveUserFavouriteResource = () => {
2846
3892
  return { error, loading, removeUserFavouriteResource };
2847
3893
  };
2848
3894
  var useAddUserInterestResource = () => {
2849
- const [addUserInterestResource, { loading, error }] = (0, import_client38.useMutation)(
3895
+ const [addUserInterestResource, { loading, error }] = (0, import_client41.useMutation)(
2850
3896
  ADD_USER_INTEREST_RESOURCE_MUTATION,
2851
3897
  {
2852
3898
  awaitRefetchQueries: true,
@@ -2856,7 +3902,7 @@ var useAddUserInterestResource = () => {
2856
3902
  return { addUserInterestResource, error, loading };
2857
3903
  };
2858
3904
  var useRemoveUserInterestResource = () => {
2859
- const [removeUserInterestResource, { loading, error }] = (0, import_client38.useMutation)(
3905
+ const [removeUserInterestResource, { loading, error }] = (0, import_client41.useMutation)(
2860
3906
  REMOVE_USER_INTEREST_RESOURCE_MUTATION,
2861
3907
  {
2862
3908
  awaitRefetchQueries: true,
@@ -2866,7 +3912,7 @@ var useRemoveUserInterestResource = () => {
2866
3912
  return { error, loading, removeUserInterestResource };
2867
3913
  };
2868
3914
  var useAddUserGoingResource = () => {
2869
- const [addUserGoingResource, { loading, error }] = (0, import_client38.useMutation)(
3915
+ const [addUserGoingResource, { loading, error }] = (0, import_client41.useMutation)(
2870
3916
  ADD_USER_GOING_RESOURCE_MUTATION,
2871
3917
  {
2872
3918
  awaitRefetchQueries: true,
@@ -2876,7 +3922,7 @@ var useAddUserGoingResource = () => {
2876
3922
  return { addUserGoingResource, error, loading };
2877
3923
  };
2878
3924
  var useRemoveUserGoingResource = () => {
2879
- const [removeUserGoingResource, { loading, error }] = (0, import_client38.useMutation)(
3925
+ const [removeUserGoingResource, { loading, error }] = (0, import_client41.useMutation)(
2880
3926
  REMOVE_USER_GOING_RESOURCE_MUTATION,
2881
3927
  {
2882
3928
  awaitRefetchQueries: true,
@@ -2886,7 +3932,7 @@ var useRemoveUserGoingResource = () => {
2886
3932
  return { error, loading, removeUserGoingResource };
2887
3933
  };
2888
3934
  var useAddUserPresentResource = () => {
2889
- const [addUserPresentResource, { loading, error }] = (0, import_client38.useMutation)(
3935
+ const [addUserPresentResource, { loading, error }] = (0, import_client41.useMutation)(
2890
3936
  ADD_USER_PRESENT_RESOURCE_MUTATION,
2891
3937
  {
2892
3938
  awaitRefetchQueries: true,
@@ -2896,7 +3942,7 @@ var useAddUserPresentResource = () => {
2896
3942
  return { addUserPresentResource, error, loading };
2897
3943
  };
2898
3944
  var useRemoveUserPresentResource = () => {
2899
- const [removeUserPresentResource, { loading, error }] = (0, import_client38.useMutation)(
3945
+ const [removeUserPresentResource, { loading, error }] = (0, import_client41.useMutation)(
2900
3946
  REMOVE_USER_PRESENT_RESOURCE_MUTATION,
2901
3947
  {
2902
3948
  awaitRefetchQueries: true,
@@ -2906,7 +3952,7 @@ var useRemoveUserPresentResource = () => {
2906
3952
  return { error, loading, removeUserPresentResource };
2907
3953
  };
2908
3954
  var useSelectStandardPackage = () => {
2909
- const [selectStandardPackage, { loading, error }] = (0, import_client38.useMutation)(SELECT_STANDARD_PACKAGE_MUTATION, {
3955
+ const [selectStandardPackage, { loading, error }] = (0, import_client41.useMutation)(SELECT_STANDARD_PACKAGE_MUTATION, {
2910
3956
  awaitRefetchQueries: true,
2911
3957
  refetchQueries: (mutationResult) => {
2912
3958
  const userId = mutationResult?.data?.selectStandardPackage?.userId;
@@ -2922,9 +3968,9 @@ var useSelectStandardPackage = () => {
2922
3968
  };
2923
3969
 
2924
3970
  // src/graphql/hooks/user/hooksQuery.ts
2925
- var import_client39 = require("@apollo/client");
3971
+ var import_client42 = require("@apollo/client");
2926
3972
  var useGetUsers = () => {
2927
- const { loading, error, data, refetch } = (0, import_client39.useQuery)(
3973
+ const { loading, error, data, refetch } = (0, import_client42.useQuery)(
2928
3974
  GET_USERS,
2929
3975
  {
2930
3976
  fetchPolicy: "network-only"
@@ -2934,7 +3980,7 @@ var useGetUsers = () => {
2934
3980
  return { error, loading, refetch, users };
2935
3981
  };
2936
3982
  var useGetUser = (_id) => {
2937
- const { loading, error, data, refetch } = (0, import_client39.useQuery)(
3983
+ const { loading, error, data, refetch } = (0, import_client42.useQuery)(
2938
3984
  GET_USER,
2939
3985
  {
2940
3986
  fetchPolicy: "network-only",
@@ -2946,28 +3992,28 @@ var useGetUser = (_id) => {
2946
3992
  return { error, loading, refetch, user };
2947
3993
  };
2948
3994
  var useGetUserEvents = () => {
2949
- const { loading, error, data, refetch } = (0, import_client39.useQuery)(GET_USER_EVENTS, {
3995
+ const { loading, error, data, refetch } = (0, import_client42.useQuery)(GET_USER_EVENTS, {
2950
3996
  fetchPolicy: "network-only"
2951
3997
  });
2952
3998
  const userEvents = data?.userEvents || [];
2953
3999
  return { error, loading, refetch, userEvents };
2954
4000
  };
2955
4001
  var useGetUserVendors = () => {
2956
- const { loading, error, data, refetch } = (0, import_client39.useQuery)(GET_USER_VENDORS, {
4002
+ const { loading, error, data, refetch } = (0, import_client42.useQuery)(GET_USER_VENDORS, {
2957
4003
  fetchPolicy: "network-only"
2958
4004
  });
2959
4005
  const userVendors = data?.userVendors || [];
2960
4006
  return { error, loading, refetch, userVendors };
2961
4007
  };
2962
4008
  var useGetUserPartners = () => {
2963
- const { loading, error, data, refetch } = (0, import_client39.useQuery)(GET_USER_PARTNERS, {
4009
+ const { loading, error, data, refetch } = (0, import_client42.useQuery)(GET_USER_PARTNERS, {
2964
4010
  fetchPolicy: "network-only"
2965
4011
  });
2966
4012
  const userPartners = data?.userPartners || [];
2967
4013
  return { error, loading, refetch, userPartners };
2968
4014
  };
2969
4015
  var useGetUserActivities = () => {
2970
- const { loading, error, data, refetch } = (0, import_client39.useQuery)(GET_USER_ACTIVITIES, {
4016
+ const { loading, error, data, refetch } = (0, import_client42.useQuery)(GET_USER_ACTIVITIES, {
2971
4017
  fetchPolicy: "network-only"
2972
4018
  });
2973
4019
  const userActivities = {
@@ -2989,7 +4035,7 @@ var useGetUserActivities = () => {
2989
4035
  return { error, loading, refetch, userActivities };
2990
4036
  };
2991
4037
  var useGetUserResources = (userId) => {
2992
- const { loading, error, data, refetch } = (0, import_client39.useQuery)(GET_USER_RESOURCES, {
4038
+ const { loading, error, data, refetch } = (0, import_client42.useQuery)(GET_USER_RESOURCES, {
2993
4039
  fetchPolicy: "network-only",
2994
4040
  skip: !userId || userId === "",
2995
4041
  variables: { userId }
@@ -2999,14 +4045,14 @@ var useGetUserResources = (userId) => {
2999
4045
  };
3000
4046
 
3001
4047
  // src/graphql/hooks/ad/hooksMutation.ts
3002
- var import_client42 = require("@apollo/client");
4048
+ var import_client45 = require("@apollo/client");
3003
4049
 
3004
4050
  // src/graphql/mutations/ad.ts
3005
- var import_client41 = require("@apollo/client");
4051
+ var import_client44 = require("@apollo/client");
3006
4052
 
3007
4053
  // src/graphql/queries/ad.ts
3008
- var import_client40 = require("@apollo/client");
3009
- var AD_FIELDS_FRAGMENT = import_client40.gql`
4054
+ var import_client43 = require("@apollo/client");
4055
+ var AD_FIELDS_FRAGMENT = import_client43.gql`
3010
4056
  fragment AdFields on AdType {
3011
4057
  _id
3012
4058
  active
@@ -3032,7 +4078,7 @@ var AD_FIELDS_FRAGMENT = import_client40.gql`
3032
4078
  updatedAt
3033
4079
  }
3034
4080
  `;
3035
- var GET_ADS = import_client40.gql`
4081
+ var GET_ADS = import_client43.gql`
3036
4082
  query getAds {
3037
4083
  ads {
3038
4084
  ...AdFields
@@ -3040,7 +4086,7 @@ var GET_ADS = import_client40.gql`
3040
4086
  }
3041
4087
  ${AD_FIELDS_FRAGMENT}
3042
4088
  `;
3043
- var GET_AD = import_client40.gql`
4089
+ var GET_AD = import_client43.gql`
3044
4090
  query getAd($_id: ID!) {
3045
4091
  ad(_id: $_id) {
3046
4092
  ...AdFields
@@ -3048,7 +4094,7 @@ var GET_AD = import_client40.gql`
3048
4094
  }
3049
4095
  ${AD_FIELDS_FRAGMENT}
3050
4096
  `;
3051
- var GET_ADS_BY_REGION = import_client40.gql`
4097
+ var GET_ADS_BY_REGION = import_client43.gql`
3052
4098
  query getAdsByRegion($region: String!, $status: AdStatusTypeEnum) {
3053
4099
  adsByRegion(region: $region, status: $status) {
3054
4100
  ...AdFields
@@ -3058,7 +4104,7 @@ var GET_ADS_BY_REGION = import_client40.gql`
3058
4104
  `;
3059
4105
 
3060
4106
  // src/graphql/mutations/ad.ts
3061
- var CREATE_AD_MUTATION = import_client41.gql`
4107
+ var CREATE_AD_MUTATION = import_client44.gql`
3062
4108
  mutation createAd($input: AdInputType!) {
3063
4109
  createAd(input: $input) {
3064
4110
  ...AdFields
@@ -3066,7 +4112,7 @@ var CREATE_AD_MUTATION = import_client41.gql`
3066
4112
  }
3067
4113
  ${AD_FIELDS_FRAGMENT}
3068
4114
  `;
3069
- var UPDATE_AD_MUTATION = import_client41.gql`
4115
+ var UPDATE_AD_MUTATION = import_client44.gql`
3070
4116
  mutation updateAd($_id: ID!, $input: AdInputType!) {
3071
4117
  updateAd(_id: $_id, input: $input) {
3072
4118
  ...AdFields
@@ -3074,7 +4120,7 @@ var UPDATE_AD_MUTATION = import_client41.gql`
3074
4120
  }
3075
4121
  ${AD_FIELDS_FRAGMENT}
3076
4122
  `;
3077
- var DELETE_AD_MUTATION = import_client41.gql`
4123
+ var DELETE_AD_MUTATION = import_client44.gql`
3078
4124
  mutation deleteAd($_id: ID!) {
3079
4125
  deleteAd(_id: $_id)
3080
4126
  }
@@ -3082,7 +4128,7 @@ var DELETE_AD_MUTATION = import_client41.gql`
3082
4128
 
3083
4129
  // src/graphql/hooks/ad/hooksMutation.ts
3084
4130
  var useCreateAd = () => {
3085
- const [createAd, { loading, error }] = (0, import_client42.useMutation)(CREATE_AD_MUTATION, {
4131
+ const [createAd, { loading, error }] = (0, import_client45.useMutation)(CREATE_AD_MUTATION, {
3086
4132
  awaitRefetchQueries: true,
3087
4133
  refetchQueries: [{ query: GET_ADS }]
3088
4134
  });
@@ -3093,7 +4139,7 @@ var useCreateAd = () => {
3093
4139
  };
3094
4140
  };
3095
4141
  var useUpdateAd = () => {
3096
- const [updateAd, { loading, error }] = (0, import_client42.useMutation)(UPDATE_AD_MUTATION, {
4142
+ const [updateAd, { loading, error }] = (0, import_client45.useMutation)(UPDATE_AD_MUTATION, {
3097
4143
  awaitRefetchQueries: true,
3098
4144
  refetchQueries: [{ query: GET_ADS }]
3099
4145
  });
@@ -3104,7 +4150,7 @@ var useUpdateAd = () => {
3104
4150
  };
3105
4151
  };
3106
4152
  var useDeleteAd = () => {
3107
- const [deleteAd, { loading, error }] = (0, import_client42.useMutation)(DELETE_AD_MUTATION, {
4153
+ const [deleteAd, { loading, error }] = (0, import_client45.useMutation)(DELETE_AD_MUTATION, {
3108
4154
  awaitRefetchQueries: true,
3109
4155
  refetchQueries: [{ query: GET_ADS }]
3110
4156
  });
@@ -3116,9 +4162,9 @@ var useDeleteAd = () => {
3116
4162
  };
3117
4163
 
3118
4164
  // src/graphql/hooks/ad/hooksQuery.ts
3119
- var import_client43 = require("@apollo/client");
4165
+ var import_client46 = require("@apollo/client");
3120
4166
  var useGetAds = () => {
3121
- const { data, loading, error, refetch } = (0, import_client43.useQuery)(
4167
+ const { data, loading, error, refetch } = (0, import_client46.useQuery)(
3122
4168
  GET_ADS,
3123
4169
  {
3124
4170
  fetchPolicy: "no-cache"
@@ -3132,7 +4178,7 @@ var useGetAds = () => {
3132
4178
  };
3133
4179
  };
3134
4180
  var useGetAd = (_id) => {
3135
- const { data, loading, error, refetch } = (0, import_client43.useQuery)(GET_AD, {
4181
+ const { data, loading, error, refetch } = (0, import_client46.useQuery)(GET_AD, {
3136
4182
  fetchPolicy: "no-cache",
3137
4183
  skip: !_id || _id === "",
3138
4184
  variables: { _id }
@@ -3145,7 +4191,7 @@ var useGetAd = (_id) => {
3145
4191
  };
3146
4192
  };
3147
4193
  var useGetAdsByRegion = (region, status) => {
3148
- const { data, loading, error, refetch } = (0, import_client43.useQuery)(GET_ADS_BY_REGION, {
4194
+ const { data, loading, error, refetch } = (0, import_client46.useQuery)(GET_ADS_BY_REGION, {
3149
4195
  fetchPolicy: "no-cache",
3150
4196
  skip: !region || region === "",
3151
4197
  variables: { region, status }
@@ -3159,11 +4205,11 @@ var useGetAdsByRegion = (region, status) => {
3159
4205
  };
3160
4206
 
3161
4207
  // src/graphql/hooks/resourceActivities/hooksMutation.ts
3162
- var import_client45 = require("@apollo/client");
4208
+ var import_client48 = require("@apollo/client");
3163
4209
 
3164
4210
  // src/graphql/mutations/resourceActivities.ts
3165
- var import_client44 = require("@apollo/client");
3166
- var CREATE_RESOURCE_ACTIVITY_MUTATION = import_client44.gql`
4211
+ var import_client47 = require("@apollo/client");
4212
+ var CREATE_RESOURCE_ACTIVITY_MUTATION = import_client47.gql`
3167
4213
  mutation createResourceActivity($input: ResourceActivityInputType!) {
3168
4214
  createResourceActivity(input: $input)
3169
4215
  }
@@ -3171,18 +4217,18 @@ var CREATE_RESOURCE_ACTIVITY_MUTATION = import_client44.gql`
3171
4217
 
3172
4218
  // src/graphql/hooks/resourceActivities/hooksMutation.ts
3173
4219
  var useCreateResourceActivity = () => {
3174
- const [createResourceActivity, { loading, error }] = (0, import_client45.useMutation)(
4220
+ const [createResourceActivity, { loading, error }] = (0, import_client48.useMutation)(
3175
4221
  CREATE_RESOURCE_ACTIVITY_MUTATION
3176
4222
  );
3177
4223
  return { createResourceActivity, error, loading };
3178
4224
  };
3179
4225
 
3180
4226
  // src/graphql/hooks/resourceActivities/hooksQuery.ts
3181
- var import_client47 = require("@apollo/client");
4227
+ var import_client50 = require("@apollo/client");
3182
4228
 
3183
4229
  // src/graphql/queries/resourceActivities.ts
3184
- var import_client46 = require("@apollo/client");
3185
- var RESOURCE_ACTIVITY_FIELDS_FRAGMENT = import_client46.gql`
4230
+ var import_client49 = require("@apollo/client");
4231
+ var RESOURCE_ACTIVITY_FIELDS_FRAGMENT = import_client49.gql`
3186
4232
  fragment ResourceActivityFields on ResourceActivityType {
3187
4233
  resourceId
3188
4234
  resourceType
@@ -3201,7 +4247,7 @@ var RESOURCE_ACTIVITY_FIELDS_FRAGMENT = import_client46.gql`
3201
4247
  }
3202
4248
  ${LOCATION_GEO_FIELDS_FRAGMENT}
3203
4249
  `;
3204
- var GET_RESOURCE_ACTIVITY = import_client46.gql`
4250
+ var GET_RESOURCE_ACTIVITY = import_client49.gql`
3205
4251
  query getResourceActivity(
3206
4252
  $resourceType: ResourceTypeEnum!
3207
4253
  $resourceId: ID!
@@ -3215,7 +4261,7 @@ var GET_RESOURCE_ACTIVITY = import_client46.gql`
3215
4261
 
3216
4262
  // src/graphql/hooks/resourceActivities/hooksQuery.ts
3217
4263
  var useGetResourceActivity = (resourceId, resourceType) => {
3218
- const { data, loading, error, refetch } = (0, import_client47.useQuery)(GET_RESOURCE_ACTIVITY, {
4264
+ const { data, loading, error, refetch } = (0, import_client50.useQuery)(GET_RESOURCE_ACTIVITY, {
3219
4265
  fetchPolicy: "network-only",
3220
4266
  variables: { resourceId, resourceType }
3221
4267
  });
@@ -3228,11 +4274,11 @@ var useGetResourceActivity = (resourceId, resourceType) => {
3228
4274
  };
3229
4275
 
3230
4276
  // src/graphql/hooks/stripe/hooksMutation.ts
3231
- var import_client49 = require("@apollo/client");
4277
+ var import_client52 = require("@apollo/client");
3232
4278
 
3233
4279
  // src/graphql/mutations/stripe.ts
3234
- var import_client48 = require("@apollo/client");
3235
- var CREATE_CHECKOUT_SESSION_MUTATION = import_client48.gql`
4280
+ var import_client51 = require("@apollo/client");
4281
+ var CREATE_CHECKOUT_SESSION_MUTATION = import_client51.gql`
3236
4282
  mutation createCheckoutSession(
3237
4283
  $planId: LicencesEnumType!
3238
4284
  $billingPeriod: BillingPeriodEnumType
@@ -3243,12 +4289,12 @@ var CREATE_CHECKOUT_SESSION_MUTATION = import_client48.gql`
3243
4289
  }
3244
4290
  }
3245
4291
  `;
3246
- var CANCEL_SUBSCRIPTION_MUTATION = import_client48.gql`
4292
+ var CANCEL_SUBSCRIPTION_MUTATION = import_client51.gql`
3247
4293
  mutation cancelSubscription {
3248
4294
  cancelSubscription
3249
4295
  }
3250
4296
  `;
3251
- var UPDATE_SUBSCRIPTION_PLAN_MUTATION = import_client48.gql`
4297
+ var UPDATE_SUBSCRIPTION_PLAN_MUTATION = import_client51.gql`
3252
4298
  mutation updateSubscriptionPlan(
3253
4299
  $newPlanId: LicencesEnumType!
3254
4300
  $billingPeriod: BillingPeriodEnumType
@@ -3264,14 +4310,14 @@ var UPDATE_SUBSCRIPTION_PLAN_MUTATION = import_client48.gql`
3264
4310
  }
3265
4311
  }
3266
4312
  `;
3267
- var CREATE_CUSTOMER_PORTAL = import_client48.gql`
4313
+ var CREATE_CUSTOMER_PORTAL = import_client51.gql`
3268
4314
  mutation createCustomerPortal($returnUrl: String) {
3269
4315
  createCustomerPortal(returnUrl: $returnUrl) {
3270
4316
  portalUrl
3271
4317
  }
3272
4318
  }
3273
4319
  `;
3274
- var SELECT_PACKAGE_MUTATION = import_client48.gql`
4320
+ var SELECT_PACKAGE_MUTATION = import_client51.gql`
3275
4321
  mutation selectPackage(
3276
4322
  $billingPeriod: BillingPeriodEnumType
3277
4323
  $selectedLicence: LicencesEnumType!
@@ -3295,31 +4341,31 @@ var SELECT_PACKAGE_MUTATION = import_client48.gql`
3295
4341
 
3296
4342
  // src/graphql/hooks/stripe/hooksMutation.ts
3297
4343
  var useCreateCheckoutSession = () => {
3298
- const [createCheckoutSession, { loading, error }] = (0, import_client49.useMutation)(
4344
+ const [createCheckoutSession, { loading, error }] = (0, import_client52.useMutation)(
3299
4345
  CREATE_CHECKOUT_SESSION_MUTATION
3300
4346
  );
3301
4347
  return { createCheckoutSession, error, loading };
3302
4348
  };
3303
4349
  var useCancelSubscription = () => {
3304
- const [cancelSubscription, { loading, error }] = (0, import_client49.useMutation)(
4350
+ const [cancelSubscription, { loading, error }] = (0, import_client52.useMutation)(
3305
4351
  CANCEL_SUBSCRIPTION_MUTATION
3306
4352
  );
3307
4353
  return { cancelSubscription, error, loading };
3308
4354
  };
3309
4355
  var useUpdateSubscriptionPlan = () => {
3310
- const [updateSubscriptionPlan, { loading, error }] = (0, import_client49.useMutation)(
4356
+ const [updateSubscriptionPlan, { loading, error }] = (0, import_client52.useMutation)(
3311
4357
  UPDATE_SUBSCRIPTION_PLAN_MUTATION
3312
4358
  );
3313
4359
  return { error, loading, updateSubscriptionPlan };
3314
4360
  };
3315
4361
  var useCreateCustomerPortal = () => {
3316
- const [createCustomerPortal, { loading, error }] = (0, import_client49.useMutation)(
4362
+ const [createCustomerPortal, { loading, error }] = (0, import_client52.useMutation)(
3317
4363
  CREATE_CUSTOMER_PORTAL
3318
4364
  );
3319
4365
  return { createCustomerPortal, error, loading };
3320
4366
  };
3321
4367
  var useSelectPackage = () => {
3322
- const [selectPackage, { loading, error }] = (0, import_client49.useMutation)(SELECT_PACKAGE_MUTATION, {
4368
+ const [selectPackage, { loading, error }] = (0, import_client52.useMutation)(SELECT_PACKAGE_MUTATION, {
3323
4369
  awaitRefetchQueries: true,
3324
4370
  refetchQueries: (mutationResult) => {
3325
4371
  const userId = mutationResult?.data?.selectPackage?.userId;
@@ -3335,11 +4381,11 @@ var useSelectPackage = () => {
3335
4381
  };
3336
4382
 
3337
4383
  // src/graphql/hooks/stripe/hooksQuery.ts
3338
- var import_client51 = require("@apollo/client");
4384
+ var import_client54 = require("@apollo/client");
3339
4385
 
3340
4386
  // src/graphql/queries/stripe.ts
3341
- var import_client50 = require("@apollo/client");
3342
- var GET_SUBSCRIPTION_STATUS = import_client50.gql`
4387
+ var import_client53 = require("@apollo/client");
4388
+ var GET_SUBSCRIPTION_STATUS = import_client53.gql`
3343
4389
  query getSubscriptionStatus {
3344
4390
  getSubscriptionStatus {
3345
4391
  subscriptionId
@@ -3349,7 +4395,7 @@ var GET_SUBSCRIPTION_STATUS = import_client50.gql`
3349
4395
  }
3350
4396
  }
3351
4397
  `;
3352
- var GET_SUBSCRIPTION_PLANS = import_client50.gql`
4398
+ var GET_SUBSCRIPTION_PLANS = import_client53.gql`
3353
4399
  query getSubscriptionPlans {
3354
4400
  getSubscriptionPlans {
3355
4401
  plans {
@@ -3380,7 +4426,7 @@ var GET_SUBSCRIPTION_PLANS = import_client50.gql`
3380
4426
 
3381
4427
  // src/graphql/hooks/stripe/hooksQuery.ts
3382
4428
  var useGetSubscriptionStatus = () => {
3383
- const { data, loading, error, refetch } = (0, import_client51.useQuery)(GET_SUBSCRIPTION_STATUS);
4429
+ const { data, loading, error, refetch } = (0, import_client54.useQuery)(GET_SUBSCRIPTION_STATUS);
3384
4430
  return {
3385
4431
  data: data?.getSubscriptionStatus,
3386
4432
  error,
@@ -3389,7 +4435,7 @@ var useGetSubscriptionStatus = () => {
3389
4435
  };
3390
4436
  };
3391
4437
  var useGetSubscriptionPlans = () => {
3392
- const { data, loading, error, refetch } = (0, import_client51.useQuery)(GET_SUBSCRIPTION_PLANS);
4438
+ const { data, loading, error, refetch } = (0, import_client54.useQuery)(GET_SUBSCRIPTION_PLANS);
3393
4439
  return {
3394
4440
  data: data?.getSubscriptionPlans,
3395
4441
  error,
@@ -3399,11 +4445,11 @@ var useGetSubscriptionPlans = () => {
3399
4445
  };
3400
4446
 
3401
4447
  // src/graphql/hooks/partner/hooksMutation.ts
3402
- var import_client53 = require("@apollo/client");
4448
+ var import_client56 = require("@apollo/client");
3403
4449
 
3404
4450
  // src/graphql/mutations/partner.ts
3405
- var import_client52 = require("@apollo/client");
3406
- var CREATE_PARTNER_MUTATION = import_client52.gql`
4451
+ var import_client55 = require("@apollo/client");
4452
+ var CREATE_PARTNER_MUTATION = import_client55.gql`
3407
4453
  mutation createPartner($input: PartnerInputType!) {
3408
4454
  createPartner(input: $input) {
3409
4455
  ...PartnerFields
@@ -3411,7 +4457,7 @@ var CREATE_PARTNER_MUTATION = import_client52.gql`
3411
4457
  }
3412
4458
  ${PARTNER}
3413
4459
  `;
3414
- var UPDATE_PARTNER_MUTATION = import_client52.gql`
4460
+ var UPDATE_PARTNER_MUTATION = import_client55.gql`
3415
4461
  mutation updatePartner($_id: ID!, $input: PartnerInputType!) {
3416
4462
  updatePartner(_id: $_id, input: $input) {
3417
4463
  ...PartnerFields
@@ -3419,7 +4465,7 @@ var UPDATE_PARTNER_MUTATION = import_client52.gql`
3419
4465
  }
3420
4466
  ${PARTNER}
3421
4467
  `;
3422
- var DELETE_PARTNER_MUTATION = import_client52.gql`
4468
+ var DELETE_PARTNER_MUTATION = import_client55.gql`
3423
4469
  mutation deletePartner($_id: ID!) {
3424
4470
  deletePartner(_id: $_id)
3425
4471
  }
@@ -3427,7 +4473,7 @@ var DELETE_PARTNER_MUTATION = import_client52.gql`
3427
4473
 
3428
4474
  // src/graphql/hooks/partner/hooksMutation.ts
3429
4475
  var useCreatePartner = () => {
3430
- const [createPartner, { loading, error }] = (0, import_client53.useMutation)(
4476
+ const [createPartner, { loading, error }] = (0, import_client56.useMutation)(
3431
4477
  CREATE_PARTNER_MUTATION,
3432
4478
  {
3433
4479
  awaitRefetchQueries: true,
@@ -3437,7 +4483,7 @@ var useCreatePartner = () => {
3437
4483
  return { createPartner, error, loading };
3438
4484
  };
3439
4485
  var useUpdatePartner = () => {
3440
- const [updatePartner, { loading, error }] = (0, import_client53.useMutation)(
4486
+ const [updatePartner, { loading, error }] = (0, import_client56.useMutation)(
3441
4487
  UPDATE_PARTNER_MUTATION,
3442
4488
  {
3443
4489
  awaitRefetchQueries: true,
@@ -3447,7 +4493,7 @@ var useUpdatePartner = () => {
3447
4493
  return { error, loading, updatePartner };
3448
4494
  };
3449
4495
  var useDeletePartner = () => {
3450
- const [deletePartner, { loading, error }] = (0, import_client53.useMutation)(
4496
+ const [deletePartner, { loading, error }] = (0, import_client56.useMutation)(
3451
4497
  DELETE_PARTNER_MUTATION,
3452
4498
  {
3453
4499
  awaitRefetchQueries: true,
@@ -3458,9 +4504,9 @@ var useDeletePartner = () => {
3458
4504
  };
3459
4505
 
3460
4506
  // src/graphql/hooks/partner/hooksQuery.ts
3461
- var import_client54 = require("@apollo/client");
4507
+ var import_client57 = require("@apollo/client");
3462
4508
  var useGetPartners = () => {
3463
- const { loading, error, data, refetch } = (0, import_client54.useQuery)(GET_PARTNERS, {
4509
+ const { loading, error, data, refetch } = (0, import_client57.useQuery)(GET_PARTNERS, {
3464
4510
  fetchPolicy: "network-only"
3465
4511
  });
3466
4512
  const partners = data?.partners || [];
@@ -3472,7 +4518,7 @@ var useGetPartners = () => {
3472
4518
  };
3473
4519
  };
3474
4520
  var useGetPartner = (_id) => {
3475
- const { loading, error, data, refetch } = (0, import_client54.useQuery)(
4521
+ const { loading, error, data, refetch } = (0, import_client57.useQuery)(
3476
4522
  GET_PARTNER,
3477
4523
  {
3478
4524
  fetchPolicy: "network-only",
@@ -3488,7 +4534,7 @@ var useGetPartnersByRegion = (region, options) => {
3488
4534
  options,
3489
4535
  region
3490
4536
  };
3491
- const { loading, error, data, refetch, fetchMore } = (0, import_client54.useQuery)(GET_PARTNERS_BY_REGION, {
4537
+ const { loading, error, data, refetch, fetchMore } = (0, import_client57.useQuery)(GET_PARTNERS_BY_REGION, {
3492
4538
  fetchPolicy: "network-only",
3493
4539
  skip: !region || region === "",
3494
4540
  variables
@@ -3503,7 +4549,7 @@ var useGetPartnersByRegion = (region, options) => {
3503
4549
  };
3504
4550
  };
3505
4551
  var useSearchPartners = (search, region) => {
3506
- const { loading, error, data, refetch } = (0, import_client54.useQuery)(SEARCH_PARTNERS, {
4552
+ const { loading, error, data, refetch } = (0, import_client57.useQuery)(SEARCH_PARTNERS, {
3507
4553
  fetchPolicy: "network-only",
3508
4554
  skip: search.length < 3 || !region || region === "",
3509
4555
  variables: { region, search }
@@ -3517,201 +4563,6 @@ var import_client59 = require("@apollo/client");
3517
4563
 
3518
4564
  // src/graphql/mutations/post.ts
3519
4565
  var import_client58 = require("@apollo/client");
3520
-
3521
- // src/graphql/queries/post.ts
3522
- var import_client57 = require("@apollo/client");
3523
-
3524
- // src/graphql/queries/game/dailyClue.ts
3525
- var import_client55 = require("@apollo/client");
3526
- var GAME_DATE_FIELDS_FRAGMENT = import_client55.gql`
3527
- fragment GameDateFields on GameDateType {
3528
- startDate
3529
- endDate
3530
- }
3531
- `;
3532
- var DAILY_CLUE_BASE_GAME_FIELDS_FRAGMENT = import_client55.gql`
3533
- fragment DailyClueBaseGameFields on DailyClueBaseGameType {
3534
- gameDate {
3535
- ...GameDateFields
3536
- }
3537
- gameSolution
3538
- }
3539
- ${GAME_DATE_FIELDS_FRAGMENT}
3540
- `;
3541
- var DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT = import_client55.gql`
3542
- fragment DailyClueGameDataFields on DailyClueGameDataType {
3543
- gameFields {
3544
- ...DailyClueBaseGameFields
3545
- }
3546
- lastFoundDate
3547
- points
3548
- letterInfo {
3549
- collected
3550
- solutionShuffled
3551
- todaysClue
3552
- todaysLetter
3553
- todaysPlacement
3554
- }
3555
- streak
3556
- }
3557
- ${DAILY_CLUE_BASE_GAME_FIELDS_FRAGMENT}
3558
- `;
3559
-
3560
- // src/graphql/queries/game/puzzleGame.ts
3561
- var import_client56 = require("@apollo/client");
3562
- var PUZZLE_ANSWER_FIELDS_FRAGMENT = import_client56.gql`
3563
- fragment PuzzleAnswerFields on PuzzleAnswerType {
3564
- answer
3565
- answerId
3566
- correct
3567
- }
3568
- `;
3569
- var PUZZLE_QUESTION_FIELDS_FRAGMENT = import_client56.gql`
3570
- fragment PuzzleQuestionFields on PuzzleQuestionType {
3571
- answers {
3572
- ...PuzzleAnswerFields
3573
- }
3574
- question
3575
- questionId
3576
- }
3577
- ${PUZZLE_ANSWER_FIELDS_FRAGMENT}
3578
- `;
3579
- var PUZZLE_ANSWERED_QUESTION_FIELDS_FRAGMENT = import_client56.gql`
3580
- fragment PuzzleAnsweredQuestionFields on PuzzleAnsweredQuestionType {
3581
- questionId
3582
- selectedAnswerId
3583
- }
3584
- `;
3585
- var PUZZLE_BASE_GAME_FIELDS_FRAGMENT = import_client56.gql`
3586
- fragment PuzzleBaseGameFields on PuzzleBaseGameType {
3587
- questions {
3588
- ...PuzzleQuestionFields
3589
- }
3590
- }
3591
- ${PUZZLE_QUESTION_FIELDS_FRAGMENT}
3592
- `;
3593
- var PUZZLE_GAME_DATA_FIELDS_FRAGMENT = import_client56.gql`
3594
- fragment PuzzleGameDataFields on PuzzleGameDataType {
3595
- gameFields {
3596
- ...PuzzleBaseGameFields
3597
- }
3598
- answeredQuestions {
3599
- ...PuzzleAnsweredQuestionFields
3600
- }
3601
- points
3602
- streak
3603
- }
3604
- ${PUZZLE_BASE_GAME_FIELDS_FRAGMENT}
3605
- ${PUZZLE_ANSWERED_QUESTION_FIELDS_FRAGMENT}
3606
- `;
3607
-
3608
- // src/graphql/queries/post.ts
3609
- var BASE_GAME_FIELDS_FRAGMENT = import_client57.gql`
3610
- fragment BaseGameFields on BaseGameType {
3611
- gameTypeId
3612
- gameTitle
3613
- gameType
3614
- dailyClue {
3615
- ...DailyClueBaseGameFields
3616
- }
3617
- miniQuiz {
3618
- ...PuzzleBaseGameFields
3619
- }
3620
- oddOneOut {
3621
- ...PuzzleBaseGameFields
3622
- }
3623
- }
3624
- ${DAILY_CLUE_BASE_GAME_FIELDS_FRAGMENT}
3625
- ${PUZZLE_BASE_GAME_FIELDS_FRAGMENT}
3626
- `;
3627
- var POST_CONTENT_DATA_FIELDS_FRAGMENT = import_client57.gql`
3628
- fragment PostContentDataFields on PostContentData {
3629
- game {
3630
- ...BaseGameFields
3631
- }
3632
- textarea {
3633
- title
3634
- data
3635
- }
3636
- images {
3637
- ...ResourceImageFields
3638
- }
3639
- video {
3640
- source
3641
- title
3642
- }
3643
- list {
3644
- title
3645
- items {
3646
- text
3647
- }
3648
- }
3649
- }
3650
- ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
3651
- ${BASE_GAME_FIELDS_FRAGMENT}
3652
- `;
3653
- var POST_CONTENT_FIELDS_FRAGMENT = import_client57.gql`
3654
- fragment PostContentFields on PostContentType {
3655
- contentData {
3656
- ...PostContentDataFields
3657
- }
3658
- contentOrder
3659
- contentType
3660
- }
3661
- ${POST_CONTENT_DATA_FIELDS_FRAGMENT}
3662
- `;
3663
- var POST_FIELDS_FRAGMENT = import_client57.gql`
3664
- fragment PostFields on PostType {
3665
- _id
3666
- active
3667
- caption
3668
- content {
3669
- ...PostContentFields
3670
- }
3671
- cover {
3672
- ...ResourceImageFields
3673
- }
3674
- createdAt
3675
- deletedAt
3676
- postType
3677
- resource {
3678
- resourceId
3679
- resourceRegion
3680
- resourceType
3681
- }
3682
- tags
3683
- title
3684
- updatedAt
3685
- }
3686
- ${POST_CONTENT_FIELDS_FRAGMENT}
3687
- ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
3688
- `;
3689
- var GET_POSTS = import_client57.gql`
3690
- query getPosts {
3691
- posts {
3692
- ...PostFields
3693
- }
3694
- }
3695
- ${POST_FIELDS_FRAGMENT}
3696
- `;
3697
- var GET_POST = import_client57.gql`
3698
- query getPost($_id: ID!) {
3699
- post(_id: $_id) {
3700
- ...PostFields
3701
- }
3702
- }
3703
- ${POST_FIELDS_FRAGMENT}
3704
- `;
3705
- var GET_POSTS_BY_TYPE = import_client57.gql`
3706
- query getPostsByType($postType: PostTypeEnum!) {
3707
- postsByType(postType: $postType) {
3708
- ...PostFields
3709
- }
3710
- }
3711
- ${POST_FIELDS_FRAGMENT}
3712
- `;
3713
-
3714
- // src/graphql/mutations/post.ts
3715
4566
  var CREATE_POST_MUTATION = import_client58.gql`
3716
4567
  mutation createPost($input: PostInputType!) {
3717
4568
  createPost(input: $input) {
@@ -4311,6 +5162,13 @@ var useGetSchool = (_id) => {
4311
5162
  };
4312
5163
  // Annotate the CommonJS export names for ESM import in node:
4313
5164
  0 && (module.exports = {
5165
+ GET_EVENT,
5166
+ GET_EVENT_INFO,
5167
+ GET_PARTNER,
5168
+ GET_POST,
5169
+ GET_VENDOR,
5170
+ GET_VENDOR_INFO,
5171
+ toGraphqlQueryString,
4314
5172
  useAddParticipantToChat,
4315
5173
  useAddUserFavouriteResource,
4316
5174
  useAddUserGoingResource,