@timardex/cluemart-shared 1.7.91 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/dist/{ad-DzAxJcWT.d.ts → ad-C7jlZyUd.d.ts} +2 -2
  2. package/dist/{ad-DjHlreUH.d.mts → ad-tNoTBv3n.d.mts} +2 -2
  3. package/dist/{affiliate-BpjRWPUA.d.mts → affiliate-BL1ZN-4t.d.mts} +2 -2
  4. package/dist/{affiliate-BVLyYY70.d.ts → affiliate-DStyY84o.d.ts} +2 -2
  5. package/dist/auth/index.cjs +11 -8
  6. package/dist/auth/index.cjs.map +1 -1
  7. package/dist/auth/index.d.mts +3 -3
  8. package/dist/auth/index.d.ts +3 -3
  9. package/dist/auth/index.mjs +1 -1
  10. package/dist/chunk-7DQBUZXY.mjs +41 -0
  11. package/dist/chunk-7DQBUZXY.mjs.map +1 -0
  12. package/dist/{chunk-STNE7PMX.mjs → chunk-D45RNLV2.mjs} +1 -1
  13. package/dist/chunk-D45RNLV2.mjs.map +1 -0
  14. package/dist/{chunk-ZW4M5EGZ.mjs → chunk-GRP7XQNB.mjs} +119 -71
  15. package/dist/chunk-GRP7XQNB.mjs.map +1 -0
  16. package/dist/{chunk-PSKWWPLY.mjs → chunk-OUWKLNHZ.mjs} +14 -23
  17. package/dist/chunk-OUWKLNHZ.mjs.map +1 -0
  18. package/dist/{chunk-3ZPHXVUT.mjs → chunk-XED54CPG.mjs} +2 -2
  19. package/dist/{contactUs-TEAbhwp9.d.mts → contactUs-BYm-iDIH.d.mts} +1 -1
  20. package/dist/{contactUs-Dm-0Qua3.d.ts → contactUs-_BHRXUrv.d.ts} +1 -1
  21. package/dist/formFields/index.cjs.map +1 -1
  22. package/dist/formFields/index.d.mts +1 -1
  23. package/dist/formFields/index.d.ts +1 -1
  24. package/dist/formFields/index.mjs +3 -2
  25. package/dist/{global-CDYmiqmd.d.mts → global-C7-KDYqg.d.mts} +6 -3
  26. package/dist/{global-DTXnm4Ok.d.ts → global-D_et_d2Y.d.ts} +6 -3
  27. package/dist/graphql/index.cjs +351 -275
  28. package/dist/graphql/index.cjs.map +1 -1
  29. package/dist/graphql/index.d.mts +54 -55
  30. package/dist/graphql/index.d.ts +54 -55
  31. package/dist/graphql/index.mjs +17 -14
  32. package/dist/hooks/index.cjs +191 -184
  33. package/dist/hooks/index.cjs.map +1 -1
  34. package/dist/hooks/index.d.mts +5 -5
  35. package/dist/hooks/index.d.ts +5 -5
  36. package/dist/hooks/index.mjs +5 -4
  37. package/dist/hooks/index.mjs.map +1 -1
  38. package/dist/index.cjs +360 -275
  39. package/dist/index.cjs.map +1 -1
  40. package/dist/index.d.mts +71 -53
  41. package/dist/index.d.ts +71 -53
  42. package/dist/index.mjs +319 -239
  43. package/dist/index.mjs.map +1 -1
  44. package/dist/map/index.d.mts +1 -1
  45. package/dist/map/index.d.ts +1 -1
  46. package/dist/{resourceActivities-BDp-h5yH.d.mts → resourceActivities-BJAI4jf-.d.mts} +2 -2
  47. package/dist/{resourceActivities-C14qOL7_.d.ts → resourceActivities-BW648M1v.d.ts} +2 -2
  48. package/dist/sharing/index.d.mts +1 -1
  49. package/dist/sharing/index.d.ts +1 -1
  50. package/dist/types/index.cjs.map +1 -1
  51. package/dist/types/index.d.mts +7 -7
  52. package/dist/types/index.d.ts +7 -7
  53. package/dist/types/index.mjs +1 -1
  54. package/dist/{user-DCpVFB6K.d.mts → user-BA7TT2yB.d.mts} +1 -1
  55. package/dist/{user-C1yYa8oa.d.ts → user-nHjaLZoG.d.ts} +1 -1
  56. package/dist/utils/index.cjs +42 -0
  57. package/dist/utils/index.cjs.map +1 -1
  58. package/dist/utils/index.d.mts +20 -4
  59. package/dist/utils/index.d.ts +20 -4
  60. package/dist/utils/index.mjs +12 -2
  61. package/package.json +4 -1
  62. package/dist/chunk-PSKWWPLY.mjs.map +0 -1
  63. package/dist/chunk-STNE7PMX.mjs.map +0 -1
  64. package/dist/chunk-ZW4M5EGZ.mjs.map +0 -1
  65. /package/dist/{chunk-3ZPHXVUT.mjs.map → chunk-XED54CPG.mjs.map} +0 -0
package/dist/index.cjs CHANGED
@@ -42,6 +42,7 @@ __export(index_exports, {
42
42
  CLUEMART_MAIN_DOMAIN_URL: () => CLUEMART_MAIN_DOMAIN_URL,
43
43
  CM_AFFILIATE_PROMO_CODE: () => CM_AFFILIATE_PROMO_CODE,
44
44
  CM_SCHOOL_PROMO_CODE: () => CM_SCHOOL_PROMO_CODE,
45
+ DEFAULT_PAGE_SIZE: () => DEFAULT_PAGE_SIZE,
45
46
  DEFAULT_RESOURCES_RETURN_LIMIT: () => DEFAULT_RESOURCES_RETURN_LIMIT,
46
47
  DEFAULT_RESOURCES_RETURN_OFFSET: () => DEFAULT_RESOURCES_RETURN_OFFSET,
47
48
  DEFAULT_SHARE_OG_IMAGE: () => DEFAULT_SHARE_OG_IMAGE,
@@ -84,15 +85,21 @@ __export(index_exports, {
84
85
  EnumVendorType: () => EnumVendorType,
85
86
  EnumVerificationType: () => EnumVerificationType,
86
87
  GET_EVENT: () => GET_EVENT,
88
+ GET_EVENTS: () => GET_EVENTS,
87
89
  GET_EVENT_BY_SLUG: () => GET_EVENT_BY_SLUG,
88
90
  GET_EVENT_INFO: () => GET_EVENT_INFO,
89
91
  GET_OWNED_EVENT: () => GET_OWNED_EVENT,
90
92
  GET_PARTNER: () => GET_PARTNER,
93
+ GET_PARTNERS: () => GET_PARTNERS,
91
94
  GET_PARTNER_BY_SLUG: () => GET_PARTNER_BY_SLUG,
92
95
  GET_POST: () => GET_POST,
96
+ GET_POSTS: () => GET_POSTS,
97
+ GET_POSTS_BY_TYPE: () => GET_POSTS_BY_TYPE,
93
98
  GET_POST_BY_SLUG: () => GET_POST_BY_SLUG,
94
99
  GET_RESOURCE_CONNECTIONS: () => GET_RESOURCE_CONNECTIONS,
100
+ GET_USERS: () => GET_USERS,
95
101
  GET_VENDOR: () => GET_VENDOR,
102
+ GET_VENDORS: () => GET_VENDORS,
96
103
  GET_VENDOR_BY_SLUG: () => GET_VENDOR_BY_SLUG,
97
104
  GET_VENDOR_INFO: () => GET_VENDOR_INFO,
98
105
  IMAGE_EXTENSION: () => IMAGE_EXTENSION,
@@ -149,6 +156,7 @@ __export(index_exports, {
149
156
  TIER_FROM_LICENCE: () => TIER_FROM_LICENCE,
150
157
  USER_STORAGE_KEY: () => USER_STORAGE_KEY,
151
158
  WILDCARD_PERMISSION: () => WILDCARD_PERMISSION,
159
+ accumulateItems: () => accumulateItems,
152
160
  appendShareMoreInfoLine: () => appendShareMoreInfoLine,
153
161
  availableCategories: () => availableCategories,
154
162
  availableRegionOptions: () => availableRegionOptions,
@@ -182,10 +190,12 @@ __export(index_exports, {
182
190
  collectVendorEventRelationDateTimes: () => collectVendorEventRelationDateTimes,
183
191
  companyContactFields: () => companyContactFields,
184
192
  computeDailyClueState: () => computeDailyClueState,
193
+ computeHasMore: () => computeHasMore,
185
194
  contactUsFields: () => contactUsFields,
186
195
  createAffiliateReward: () => createAffiliateReward,
187
196
  darkColors: () => darkColors,
188
197
  dateFormat: () => dateFormat,
198
+ defaultGetId: () => defaultGetId,
189
199
  emailField: () => emailField,
190
200
  eventBasicInfoFields: () => eventBasicInfoFields,
191
201
  eventEndDateFields: () => eventEndDateFields,
@@ -390,7 +400,6 @@ __export(index_exports, {
390
400
  useGetEventByPlaceId: () => useGetEventByPlaceId,
391
401
  useGetEventInfo: () => useGetEventInfo,
392
402
  useGetEventRelations: () => useGetEventRelations,
393
- useGetEvents: () => useGetEvents,
394
403
  useGetEventsByRegion: () => useGetEventsByRegion,
395
404
  useGetEventsNearMe: () => useGetEventsNearMe,
396
405
  useGetGame: () => useGetGame,
@@ -400,11 +409,8 @@ __export(index_exports, {
400
409
  useGetNotificationCountSubscription: () => useGetNotificationCountSubscription,
401
410
  useGetOwnedEvent: () => useGetOwnedEvent,
402
411
  useGetPartner: () => useGetPartner,
403
- useGetPartners: () => useGetPartners,
404
412
  useGetPartnersByRegion: () => useGetPartnersByRegion,
405
413
  useGetPost: () => useGetPost,
406
- useGetPosts: () => useGetPosts,
407
- useGetPostsByType: () => useGetPostsByType,
408
414
  useGetPrivateChats: () => useGetPrivateChats,
409
415
  useGetRelation: () => useGetRelation,
410
416
  useGetRelationByEventAndVendor: () => useGetRelationByEventAndVendor,
@@ -427,12 +433,10 @@ __export(index_exports, {
427
433
  useGetUserPartners: () => useGetUserPartners,
428
434
  useGetUserResources: () => useGetUserResources,
429
435
  useGetUserVendors: () => useGetUserVendors,
430
- useGetUsers: () => useGetUsers,
431
436
  useGetUsersByPromoCode: () => useGetUsersByPromoCode,
432
437
  useGetVendor: () => useGetVendor,
433
438
  useGetVendorInfo: () => useGetVendorInfo,
434
439
  useGetVendorRelations: () => useGetVendorRelations,
435
- useGetVendors: () => useGetVendors,
436
440
  useGetVendorsByRegion: () => useGetVendorsByRegion,
437
441
  useLeaveGame: () => useLeaveGame,
438
442
  useLogin: () => useLogin,
@@ -441,6 +445,7 @@ __export(index_exports, {
441
445
  useMarkChatMessagesSeen: () => useMarkChatMessagesSeen,
442
446
  useMarkNotificationRead: () => useMarkNotificationRead,
443
447
  useMyPendingVendorClaim: () => useMyPendingVendorClaim,
448
+ usePaginatedList: () => usePaginatedList,
444
449
  useRedeemAffiliateReward: () => useRedeemAffiliateReward,
445
450
  useRedeemReward: () => useRedeemReward,
446
451
  useRefreshToken: () => useRefreshToken,
@@ -1249,6 +1254,40 @@ function computeDailyClueState(dailyClue) {
1249
1254
  };
1250
1255
  }
1251
1256
 
1257
+ // src/utils/pagination.ts
1258
+ var DEFAULT_PAGE_SIZE = 50;
1259
+ function defaultGetId(item) {
1260
+ const id = item?._id;
1261
+ return id != null ? String(id) : "";
1262
+ }
1263
+ function accumulateItems(items, page, getId) {
1264
+ if (page.length === 0) {
1265
+ return items;
1266
+ }
1267
+ const seen = /* @__PURE__ */ new Set();
1268
+ for (const item of items) {
1269
+ const id = getId(item);
1270
+ if (id !== "") {
1271
+ seen.add(id);
1272
+ }
1273
+ }
1274
+ const fresh = page.filter((item) => {
1275
+ const id = getId(item);
1276
+ if (id === "") {
1277
+ return true;
1278
+ }
1279
+ if (seen.has(id)) {
1280
+ return false;
1281
+ }
1282
+ seen.add(id);
1283
+ return true;
1284
+ });
1285
+ return fresh.length === 0 ? items : [...items, ...fresh];
1286
+ }
1287
+ function computeHasMore(pageLength, pageSize) {
1288
+ return pageLength === pageSize;
1289
+ }
1290
+
1252
1291
  // src/sharing/relationShareTypes.ts
1253
1292
  var RELATION_SHARE_INVITATION = "invitation";
1254
1293
  var RELATION_SHARE_APPLICATION = "application";
@@ -4330,8 +4369,11 @@ var EVENT = import_client2.gql`
4330
4369
  ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
4331
4370
  `;
4332
4371
  var GET_EVENTS = import_client2.gql`
4333
- query getEvents($dateStatus: EventDateStatusEnumType) {
4334
- events(dateStatus: $dateStatus) {
4372
+ query getEvents(
4373
+ $dateStatus: EventDateStatusEnumType
4374
+ $options: PaginationOptions
4375
+ ) {
4376
+ events(dateStatus: $dateStatus, options: $options) {
4335
4377
  ...EventListItemFields
4336
4378
  }
4337
4379
  }
@@ -4636,8 +4678,8 @@ var UNREGISTERED_VENDOR = import_client3.gql`
4636
4678
  ${UNREGISTERED_VENDOR_INVITATION_FRAGMENT}
4637
4679
  `;
4638
4680
  var GET_VENDORS = import_client3.gql`
4639
- query getVendors {
4640
- vendors {
4681
+ query getVendors($options: PaginationOptions) {
4682
+ vendors(options: $options) {
4641
4683
  ...VendorFields
4642
4684
  }
4643
4685
  }
@@ -4880,8 +4922,8 @@ var PARTNER = import_client5.gql`
4880
4922
  ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
4881
4923
  `;
4882
4924
  var GET_PARTNERS = import_client5.gql`
4883
- query getPartners {
4884
- partners {
4925
+ query getPartners($options: PaginationOptions) {
4926
+ partners(options: $options) {
4885
4927
  ...PartnerFields
4886
4928
  }
4887
4929
  }
@@ -5097,8 +5139,8 @@ var POST_FIELDS_FRAGMENT = import_client8.gql`
5097
5139
  ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
5098
5140
  `;
5099
5141
  var GET_POSTS = import_client8.gql`
5100
- query getPosts {
5101
- posts {
5142
+ query getPosts($options: PaginationOptions) {
5143
+ posts(options: $options) {
5102
5144
  ...PostFields
5103
5145
  }
5104
5146
  }
@@ -5113,38 +5155,142 @@ var GET_POST = import_client8.gql`
5113
5155
  ${POST_FIELDS_FRAGMENT}
5114
5156
  `;
5115
5157
  var GET_POSTS_BY_TYPE = import_client8.gql`
5116
- query getPostsByType($postType: PostTypeEnum!) {
5117
- postsByType(postType: $postType) {
5158
+ query getPostsByType($postType: PostTypeEnum!, $options: PaginationOptions) {
5159
+ postsByType(postType: $postType, options: $options) {
5118
5160
  ...PostFields
5119
5161
  }
5120
5162
  }
5121
5163
  ${POST_FIELDS_FRAGMENT}
5122
5164
  `;
5123
5165
 
5124
- // src/graphql/queries/shareSlug.ts
5166
+ // src/graphql/queries/user.ts
5125
5167
  var import_client9 = require("@apollo/client");
5126
- var GET_EVENT_BY_SLUG = import_client9.gql`
5168
+ var GET_USERS = import_client9.gql`
5169
+ query getUsers($options: PaginationOptions) {
5170
+ users(options: $options) {
5171
+ ...UserFields
5172
+ }
5173
+ }
5174
+ ${USER_FIELDS_FRAGMENT}
5175
+ `;
5176
+ var GET_USER = import_client9.gql`
5177
+ query getUser($_id: ID!) {
5178
+ user(_id: $_id) {
5179
+ ...UserFields
5180
+ }
5181
+ }
5182
+ ${USER_FIELDS_FRAGMENT}
5183
+ `;
5184
+ var GET_USER_EVENTS = import_client9.gql`
5185
+ query getUserEvents {
5186
+ userEvents {
5187
+ ...EventFields
5188
+ }
5189
+ }
5190
+ ${EVENT}
5191
+ `;
5192
+ var GET_USER_VENDORS = import_client9.gql`
5193
+ query getUserVendors {
5194
+ userVendors {
5195
+ ...VendorFields
5196
+ }
5197
+ }
5198
+ ${VENDOR}
5199
+ `;
5200
+ var GET_USER_PARTNERS = import_client9.gql`
5201
+ query getUserPartners {
5202
+ userPartners {
5203
+ ...PartnerFields
5204
+ }
5205
+ }
5206
+ ${PARTNER}
5207
+ `;
5208
+ var GET_USER_ACTIVITIES = import_client9.gql`
5209
+ query getUserActivities {
5210
+ userActivities {
5211
+ favourites {
5212
+ events {
5213
+ ...EventListItemFields
5214
+ }
5215
+ partners {
5216
+ ...PartnerFields
5217
+ }
5218
+ vendors {
5219
+ ...VendorFields
5220
+ }
5221
+ }
5222
+ going {
5223
+ events {
5224
+ ...EventListItemFields
5225
+ }
5226
+ }
5227
+ interested {
5228
+ events {
5229
+ ...EventListItemFields
5230
+ }
5231
+ }
5232
+ present {
5233
+ events {
5234
+ ...EventListItemFields
5235
+ }
5236
+ }
5237
+ }
5238
+ }
5239
+ ${EVENT_LIST_ITEM}
5240
+ ${VENDOR}
5241
+ ${PARTNER}
5242
+ `;
5243
+ var GET_USER_RESOURCES = import_client9.gql`
5244
+ query getUserResources($userId: ID!) {
5245
+ userResources(userId: $userId) {
5246
+ resources {
5247
+ _id
5248
+ logo
5249
+ name
5250
+ resourceType
5251
+ }
5252
+ }
5253
+ }
5254
+ `;
5255
+ var GET_USERS_BY_PROMO_CODE = import_client9.gql`
5256
+ query getUsersByPromoCode($promoCode: String!, $limit: Int, $offset: Int) {
5257
+ usersByPromoCode(promoCode: $promoCode, limit: $limit, offset: $offset) {
5258
+ active
5259
+ avatar {
5260
+ ...ResourceImageFields
5261
+ }
5262
+ deletedAt
5263
+ nickName
5264
+ userId
5265
+ }
5266
+ }
5267
+ ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
5268
+ `;
5269
+
5270
+ // src/graphql/queries/shareSlug.ts
5271
+ var import_client10 = require("@apollo/client");
5272
+ var GET_EVENT_BY_SLUG = import_client10.gql`
5127
5273
  query getEventBySlug($slug: String!) {
5128
5274
  eventBySlug(slug: $slug) {
5129
5275
  _id
5130
5276
  }
5131
5277
  }
5132
5278
  `;
5133
- var GET_VENDOR_BY_SLUG = import_client9.gql`
5279
+ var GET_VENDOR_BY_SLUG = import_client10.gql`
5134
5280
  query getVendorBySlug($slug: String!) {
5135
5281
  vendorBySlug(slug: $slug) {
5136
5282
  _id
5137
5283
  }
5138
5284
  }
5139
5285
  `;
5140
- var GET_PARTNER_BY_SLUG = import_client9.gql`
5286
+ var GET_PARTNER_BY_SLUG = import_client10.gql`
5141
5287
  query getPartnerBySlug($slug: String!) {
5142
5288
  partnerBySlug(slug: $slug) {
5143
5289
  _id
5144
5290
  }
5145
5291
  }
5146
5292
  `;
5147
- var GET_POST_BY_SLUG = import_client9.gql`
5293
+ var GET_POST_BY_SLUG = import_client10.gql`
5148
5294
  query getPostBySlug($slug: String!, $postType: PostTypeEnum!) {
5149
5295
  postBySlug(slug: $slug, postType: $postType) {
5150
5296
  _id
@@ -5153,8 +5299,8 @@ var GET_POST_BY_SLUG = import_client9.gql`
5153
5299
  `;
5154
5300
 
5155
5301
  // src/graphql/queries/relation.ts
5156
- var import_client10 = require("@apollo/client");
5157
- var RELATION_FIELDS_FRAGMENT = import_client10.gql`
5302
+ var import_client11 = require("@apollo/client");
5303
+ var RELATION_FIELDS_FRAGMENT = import_client11.gql`
5158
5304
  fragment RelationFields on RelationType {
5159
5305
  _id
5160
5306
  active
@@ -5171,7 +5317,7 @@ var RELATION_FIELDS_FRAGMENT = import_client10.gql`
5171
5317
  }
5172
5318
  ${RELATION_DATES_FRAGMENT}
5173
5319
  `;
5174
- var GET_RELATION = import_client10.gql`
5320
+ var GET_RELATION = import_client11.gql`
5175
5321
  query getRelation($_id: ID!) {
5176
5322
  relation(_id: $_id) {
5177
5323
  ...RelationFields
@@ -5179,7 +5325,7 @@ var GET_RELATION = import_client10.gql`
5179
5325
  }
5180
5326
  ${RELATION_FIELDS_FRAGMENT}
5181
5327
  `;
5182
- var GET_RELATION_BY_EVENT_AND_VENDOR = import_client10.gql`
5328
+ var GET_RELATION_BY_EVENT_AND_VENDOR = import_client11.gql`
5183
5329
  query getRelationByEventAndVendor($eventId: ID!, $vendorId: ID!) {
5184
5330
  relationByEventAndVendor(eventId: $eventId, vendorId: $vendorId) {
5185
5331
  ...RelationFields
@@ -5187,7 +5333,7 @@ var GET_RELATION_BY_EVENT_AND_VENDOR = import_client10.gql`
5187
5333
  }
5188
5334
  ${RELATION_FIELDS_FRAGMENT}
5189
5335
  `;
5190
- var GET_EVENT_RELATIONS = import_client10.gql`
5336
+ var GET_EVENT_RELATIONS = import_client11.gql`
5191
5337
  query getEventRelations($eventId: ID!) {
5192
5338
  eventRelations(eventId: $eventId) {
5193
5339
  ...RelationFields
@@ -5195,7 +5341,7 @@ var GET_EVENT_RELATIONS = import_client10.gql`
5195
5341
  }
5196
5342
  ${RELATION_FIELDS_FRAGMENT}
5197
5343
  `;
5198
- var GET_VENDOR_RELATIONS = import_client10.gql`
5344
+ var GET_VENDOR_RELATIONS = import_client11.gql`
5199
5345
  query getVendorRelations($vendorId: ID!) {
5200
5346
  vendorRelations(vendorId: $vendorId) {
5201
5347
  ...RelationFields
@@ -5203,7 +5349,7 @@ var GET_VENDOR_RELATIONS = import_client10.gql`
5203
5349
  }
5204
5350
  ${RELATION_FIELDS_FRAGMENT}
5205
5351
  `;
5206
- var GET_RESOURCE_CONNECTIONS = import_client10.gql`
5352
+ var GET_RESOURCE_CONNECTIONS = import_client11.gql`
5207
5353
  query getResourceConnections(
5208
5354
  $resourceId: ID!
5209
5355
  $resourceType: ResourceTypeEnum!
@@ -5228,11 +5374,11 @@ function toGraphqlQueryString(query) {
5228
5374
  }
5229
5375
 
5230
5376
  // src/graphql/hooks/admin/hooksMutation.ts
5231
- var import_client12 = require("@apollo/client");
5377
+ var import_client13 = require("@apollo/client");
5232
5378
 
5233
5379
  // src/graphql/mutations/admin.ts
5234
- var import_client11 = require("@apollo/client");
5235
- var ADMIN_UPDATE_RESOURCE_TYPE_MUTATION = import_client11.gql`
5380
+ var import_client12 = require("@apollo/client");
5381
+ var ADMIN_UPDATE_RESOURCE_TYPE_MUTATION = import_client12.gql`
5236
5382
  mutation adminUpdateResourceType($input: AdminUpdateResourceInputType!) {
5237
5383
  adminUpdateResourceType(input: $input) {
5238
5384
  data {
@@ -5244,7 +5390,7 @@ var ADMIN_UPDATE_RESOURCE_TYPE_MUTATION = import_client11.gql`
5244
5390
  }
5245
5391
  }
5246
5392
  `;
5247
- var ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION = import_client11.gql`
5393
+ var ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION = import_client12.gql`
5248
5394
  mutation adminResendUserVerificationEmail($userId: ID!) {
5249
5395
  adminResendUserVerificationEmail(userId: $userId) {
5250
5396
  data
@@ -5252,7 +5398,7 @@ var ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION = import_client11.gql`
5252
5398
  }
5253
5399
  }
5254
5400
  `;
5255
- var ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION = import_client11.gql`
5401
+ var ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION = import_client12.gql`
5256
5402
  mutation adminPermanentlyDeleteResource(
5257
5403
  $resourceId: ID!
5258
5404
  $resourceType: ResourceTypeEnum!
@@ -5269,7 +5415,7 @@ var ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION = import_client11.gql`
5269
5415
 
5270
5416
  // src/graphql/hooks/admin/hooksMutation.ts
5271
5417
  var useAdminUpdateResourceType = () => {
5272
- const [adminUpdateResourceType, { loading, error }] = (0, import_client12.useMutation)(ADMIN_UPDATE_RESOURCE_TYPE_MUTATION, {
5418
+ const [adminUpdateResourceType, { loading, error }] = (0, import_client13.useMutation)(ADMIN_UPDATE_RESOURCE_TYPE_MUTATION, {
5273
5419
  awaitRefetchQueries: true,
5274
5420
  refetchQueries: (mutationResult) => {
5275
5421
  const adminUpdateResourceType2 = mutationResult?.data?.adminUpdateResourceType?.data;
@@ -5292,7 +5438,7 @@ var useAdminUpdateResourceType = () => {
5292
5438
  };
5293
5439
  };
5294
5440
  var useAdminResendUserVerificationEmail = () => {
5295
- const [adminResendUserVerificationEmail, { loading, error }] = (0, import_client12.useMutation)(ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION);
5441
+ const [adminResendUserVerificationEmail, { loading, error }] = (0, import_client13.useMutation)(ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION);
5296
5442
  return {
5297
5443
  adminResendUserVerificationEmail,
5298
5444
  error,
@@ -5300,7 +5446,7 @@ var useAdminResendUserVerificationEmail = () => {
5300
5446
  };
5301
5447
  };
5302
5448
  var useAdminPermanentlyDeleteResource = () => {
5303
- const [adminPermanentlyDeleteResource, { loading, error }] = (0, import_client12.useMutation)(ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION);
5449
+ const [adminPermanentlyDeleteResource, { loading, error }] = (0, import_client13.useMutation)(ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION);
5304
5450
  return {
5305
5451
  adminPermanentlyDeleteResource,
5306
5452
  error,
@@ -5309,11 +5455,11 @@ var useAdminPermanentlyDeleteResource = () => {
5309
5455
  };
5310
5456
 
5311
5457
  // src/graphql/hooks/auth.ts
5312
- var import_client14 = require("@apollo/client");
5458
+ var import_client15 = require("@apollo/client");
5313
5459
 
5314
5460
  // src/graphql/mutations/auth.ts
5315
- var import_client13 = require("@apollo/client");
5316
- var REGISTER_MUTATION = import_client13.gql`
5461
+ var import_client14 = require("@apollo/client");
5462
+ var REGISTER_MUTATION = import_client14.gql`
5317
5463
  mutation register($input: RegisterInputType!) {
5318
5464
  register(input: $input) {
5319
5465
  data {
@@ -5328,7 +5474,7 @@ var REGISTER_MUTATION = import_client13.gql`
5328
5474
  }
5329
5475
  ${USER_FIELDS_FRAGMENT}
5330
5476
  `;
5331
- var LOGIN_MUTATION = import_client13.gql`
5477
+ var LOGIN_MUTATION = import_client14.gql`
5332
5478
  mutation login($input: LoginInputType!) {
5333
5479
  login(input: $input) {
5334
5480
  data {
@@ -5343,7 +5489,7 @@ var LOGIN_MUTATION = import_client13.gql`
5343
5489
  }
5344
5490
  ${USER_FIELDS_FRAGMENT}
5345
5491
  `;
5346
- var LOGOUT_MUTATION = import_client13.gql`
5492
+ var LOGOUT_MUTATION = import_client14.gql`
5347
5493
  mutation logout {
5348
5494
  logout {
5349
5495
  data
@@ -5351,7 +5497,7 @@ var LOGOUT_MUTATION = import_client13.gql`
5351
5497
  }
5352
5498
  }
5353
5499
  `;
5354
- var REFRESH_TOKEN_MUTATION = import_client13.gql`
5500
+ var REFRESH_TOKEN_MUTATION = import_client14.gql`
5355
5501
  mutation refreshToken($input: RefreshTokenInputType!) {
5356
5502
  refreshToken(input: $input) {
5357
5503
  data {
@@ -5362,7 +5508,7 @@ var REFRESH_TOKEN_MUTATION = import_client13.gql`
5362
5508
  }
5363
5509
  }
5364
5510
  `;
5365
- var RESET_PASSWORD_MUTATION = import_client13.gql`
5511
+ var RESET_PASSWORD_MUTATION = import_client14.gql`
5366
5512
  mutation resetPassword($input: ResetPasswordInputType!) {
5367
5513
  resetPassword(input: $input) {
5368
5514
  data
@@ -5370,7 +5516,7 @@ var RESET_PASSWORD_MUTATION = import_client13.gql`
5370
5516
  }
5371
5517
  }
5372
5518
  `;
5373
- var REQUEST_PASSWORD_RESET_MUTATION = import_client13.gql`
5519
+ var REQUEST_PASSWORD_RESET_MUTATION = import_client14.gql`
5374
5520
  mutation requestPasswordReset($input: RequestPasswordResetInputType!) {
5375
5521
  requestPasswordReset(input: $input) {
5376
5522
  data
@@ -5378,7 +5524,7 @@ var REQUEST_PASSWORD_RESET_MUTATION = import_client13.gql`
5378
5524
  }
5379
5525
  }
5380
5526
  `;
5381
- var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client13.gql`
5527
+ var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client14.gql`
5382
5528
  mutation validateVerificationToken(
5383
5529
  $input: ValidateVerificationTokenInputType!
5384
5530
  ) {
@@ -5391,43 +5537,43 @@ var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client13.gql`
5391
5537
 
5392
5538
  // src/graphql/hooks/auth.ts
5393
5539
  var useRegister = () => {
5394
- const [register, { loading, error }] = (0, import_client14.useMutation)(REGISTER_MUTATION);
5540
+ const [register, { loading, error }] = (0, import_client15.useMutation)(REGISTER_MUTATION);
5395
5541
  return { error, loading, register };
5396
5542
  };
5397
5543
  var useLogin = () => {
5398
- const [login, { loading, error }] = (0, import_client14.useMutation)(LOGIN_MUTATION);
5544
+ const [login, { loading, error }] = (0, import_client15.useMutation)(LOGIN_MUTATION);
5399
5545
  return { error, loading, login };
5400
5546
  };
5401
5547
  var useLogout = () => {
5402
- const [logout, { loading, error }] = (0, import_client14.useMutation)(LOGOUT_MUTATION);
5548
+ const [logout, { loading, error }] = (0, import_client15.useMutation)(LOGOUT_MUTATION);
5403
5549
  return { error, loading, logout };
5404
5550
  };
5405
5551
  var useRefreshToken = () => {
5406
- const [refreshToken, { loading, error }] = (0, import_client14.useMutation)(REFRESH_TOKEN_MUTATION);
5552
+ const [refreshToken, { loading, error }] = (0, import_client15.useMutation)(REFRESH_TOKEN_MUTATION);
5407
5553
  return { error, loading, refreshToken };
5408
5554
  };
5409
5555
  var useRequestPasswordReset = () => {
5410
- const [requestPasswordReset, { loading, error }] = (0, import_client14.useMutation)(REQUEST_PASSWORD_RESET_MUTATION);
5556
+ const [requestPasswordReset, { loading, error }] = (0, import_client15.useMutation)(REQUEST_PASSWORD_RESET_MUTATION);
5411
5557
  return { error, loading, requestPasswordReset };
5412
5558
  };
5413
5559
  var useValidateVerificationToken = () => {
5414
- const [validateVerificationToken, { loading, error }] = (0, import_client14.useMutation)(VALIDATE_VERIFICATION_TOKEN_MUTATION);
5560
+ const [validateVerificationToken, { loading, error }] = (0, import_client15.useMutation)(VALIDATE_VERIFICATION_TOKEN_MUTATION);
5415
5561
  return { error, loading, validateVerificationToken };
5416
5562
  };
5417
5563
  var useResetPassword = () => {
5418
- const [resetPassword, { loading, error }] = (0, import_client14.useMutation)(RESET_PASSWORD_MUTATION);
5564
+ const [resetPassword, { loading, error }] = (0, import_client15.useMutation)(RESET_PASSWORD_MUTATION);
5419
5565
  return { error, loading, resetPassword };
5420
5566
  };
5421
5567
 
5422
5568
  // src/graphql/hooks/chat/hooksMutation.ts
5423
- var import_client17 = require("@apollo/client");
5569
+ var import_client18 = require("@apollo/client");
5424
5570
 
5425
5571
  // src/graphql/mutations/chat.ts
5426
- var import_client16 = require("@apollo/client");
5572
+ var import_client17 = require("@apollo/client");
5427
5573
 
5428
5574
  // src/graphql/queries/chat.ts
5429
- var import_client15 = require("@apollo/client");
5430
- var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client15.gql`
5575
+ var import_client16 = require("@apollo/client");
5576
+ var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client16.gql`
5431
5577
  fragment ChatMessageFields on ChatMessageType {
5432
5578
  _id
5433
5579
  content
@@ -5450,7 +5596,7 @@ var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client15.gql`
5450
5596
  updatedAt
5451
5597
  }
5452
5598
  `;
5453
- var CHAT_PARTICIPANT = import_client15.gql`
5599
+ var CHAT_PARTICIPANT = import_client16.gql`
5454
5600
  fragment ChatParticipantFields on ChatParticipantType {
5455
5601
  active
5456
5602
  userAvatar
@@ -5459,7 +5605,7 @@ var CHAT_PARTICIPANT = import_client15.gql`
5459
5605
  userName
5460
5606
  }
5461
5607
  `;
5462
- var CHAT_FIELDS_FRAGMENT = import_client15.gql`
5608
+ var CHAT_FIELDS_FRAGMENT = import_client16.gql`
5463
5609
  fragment ChatFields on ChatType {
5464
5610
  _id
5465
5611
  active
@@ -5480,7 +5626,7 @@ var CHAT_FIELDS_FRAGMENT = import_client15.gql`
5480
5626
  ${CHAT_MESSAGE_FIELDS_FRAGMENT}
5481
5627
  ${CHAT_PARTICIPANT}
5482
5628
  `;
5483
- var CHAT = import_client15.gql`
5629
+ var CHAT = import_client16.gql`
5484
5630
  query chat($_id: ID!) {
5485
5631
  chat(_id: $_id) {
5486
5632
  ...ChatFields
@@ -5488,7 +5634,7 @@ var CHAT = import_client15.gql`
5488
5634
  }
5489
5635
  ${CHAT_FIELDS_FRAGMENT}
5490
5636
  `;
5491
- var PRIVATE_CHATS = import_client15.gql`
5637
+ var PRIVATE_CHATS = import_client16.gql`
5492
5638
  query privateChats {
5493
5639
  privateChats {
5494
5640
  ...ChatFields
@@ -5496,7 +5642,7 @@ var PRIVATE_CHATS = import_client15.gql`
5496
5642
  }
5497
5643
  ${CHAT_FIELDS_FRAGMENT}
5498
5644
  `;
5499
- var RELATION_CHATS = import_client15.gql`
5645
+ var RELATION_CHATS = import_client16.gql`
5500
5646
  query relationChats {
5501
5647
  relationChats {
5502
5648
  ...ChatFields
@@ -5504,7 +5650,7 @@ var RELATION_CHATS = import_client15.gql`
5504
5650
  }
5505
5651
  ${CHAT_FIELDS_FRAGMENT}
5506
5652
  `;
5507
- var GET_CHATS_BY_REGION = import_client15.gql`
5653
+ var GET_CHATS_BY_REGION = import_client16.gql`
5508
5654
  query getChatsByRegion($region: String!) {
5509
5655
  chatsByRegion(region: $region) {
5510
5656
  ...ChatFields
@@ -5512,7 +5658,7 @@ var GET_CHATS_BY_REGION = import_client15.gql`
5512
5658
  }
5513
5659
  ${CHAT_FIELDS_FRAGMENT}
5514
5660
  `;
5515
- var CHAT_REPORT_FIELDS_FRAGMENT = import_client15.gql`
5661
+ var CHAT_REPORT_FIELDS_FRAGMENT = import_client16.gql`
5516
5662
  fragment ChatReportFields on ReportChatUserType {
5517
5663
  _id
5518
5664
  chatId
@@ -5527,7 +5673,7 @@ var CHAT_REPORT_FIELDS_FRAGMENT = import_client15.gql`
5527
5673
  updatedAt
5528
5674
  }
5529
5675
  `;
5530
- var GET_REPORTED_CHAT_USERS = import_client15.gql`
5676
+ var GET_REPORTED_CHAT_USERS = import_client16.gql`
5531
5677
  query getReportedChatUsers {
5532
5678
  reportedChatUsers {
5533
5679
  ...ChatReportFields
@@ -5537,7 +5683,7 @@ var GET_REPORTED_CHAT_USERS = import_client15.gql`
5537
5683
  `;
5538
5684
 
5539
5685
  // src/graphql/mutations/chat.ts
5540
- var CREATE_PRIVATE_CHAT_MUTATION = import_client16.gql`
5686
+ var CREATE_PRIVATE_CHAT_MUTATION = import_client17.gql`
5541
5687
  mutation createPrivateChat($userId: ID!) {
5542
5688
  createPrivateChat(userId: $userId) {
5543
5689
  data {
@@ -5548,7 +5694,7 @@ var CREATE_PRIVATE_CHAT_MUTATION = import_client16.gql`
5548
5694
  }
5549
5695
  ${CHAT_FIELDS_FRAGMENT}
5550
5696
  `;
5551
- var SEND_CHAT_MESSAGE_MUTATION = import_client16.gql`
5697
+ var SEND_CHAT_MESSAGE_MUTATION = import_client17.gql`
5552
5698
  mutation sendChatMessage($_id: ID!, $input: ChatMessageInputType!) {
5553
5699
  sendChatMessage(_id: $_id, input: $input) {
5554
5700
  data {
@@ -5559,7 +5705,7 @@ var SEND_CHAT_MESSAGE_MUTATION = import_client16.gql`
5559
5705
  }
5560
5706
  ${CHAT_FIELDS_FRAGMENT}
5561
5707
  `;
5562
- var DELETE_CHAT_MUTATION = import_client16.gql`
5708
+ var DELETE_CHAT_MUTATION = import_client17.gql`
5563
5709
  mutation deleteChat($_id: ID!) {
5564
5710
  deleteChat(_id: $_id) {
5565
5711
  data
@@ -5567,7 +5713,7 @@ var DELETE_CHAT_MUTATION = import_client16.gql`
5567
5713
  }
5568
5714
  }
5569
5715
  `;
5570
- var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client16.gql`
5716
+ var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client17.gql`
5571
5717
  mutation addParticipantToChat($chatId: ID!, $userId: ID!) {
5572
5718
  addParticipantToChat(chatId: $chatId, userId: $userId) {
5573
5719
  data {
@@ -5578,7 +5724,7 @@ var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client16.gql`
5578
5724
  }
5579
5725
  ${CHAT_FIELDS_FRAGMENT}
5580
5726
  `;
5581
- var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client16.gql`
5727
+ var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client17.gql`
5582
5728
  mutation removeParticipantFromChat($chatId: ID!, $userId: ID!) {
5583
5729
  removeParticipantFromChat(chatId: $chatId, userId: $userId) {
5584
5730
  data {
@@ -5589,7 +5735,7 @@ var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client16.gql`
5589
5735
  }
5590
5736
  }
5591
5737
  `;
5592
- var TOGGLE_CHAT_MESSAGE_LIKE_MUTATION = import_client16.gql`
5738
+ var TOGGLE_CHAT_MESSAGE_LIKE_MUTATION = import_client17.gql`
5593
5739
  mutation toggleChatMessageLike($chatId: ID!, $messageId: ID!) {
5594
5740
  toggleChatMessageLike(chatId: $chatId, messageId: $messageId) {
5595
5741
  data {
@@ -5600,7 +5746,7 @@ var TOGGLE_CHAT_MESSAGE_LIKE_MUTATION = import_client16.gql`
5600
5746
  }
5601
5747
  ${CHAT_FIELDS_FRAGMENT}
5602
5748
  `;
5603
- var MARK_CHAT_MESSAGES_SEEN_MUTATION = import_client16.gql`
5749
+ var MARK_CHAT_MESSAGES_SEEN_MUTATION = import_client17.gql`
5604
5750
  mutation markChatMessagesSeen($chatId: ID!, $messageIds: [ID!]!) {
5605
5751
  markChatMessagesSeen(chatId: $chatId, messageIds: $messageIds) {
5606
5752
  data {
@@ -5611,7 +5757,7 @@ var MARK_CHAT_MESSAGES_SEEN_MUTATION = import_client16.gql`
5611
5757
  }
5612
5758
  ${CHAT_FIELDS_FRAGMENT}
5613
5759
  `;
5614
- var REPORT_CHAT_USER_MUTATION = import_client16.gql`
5760
+ var REPORT_CHAT_USER_MUTATION = import_client17.gql`
5615
5761
  mutation reportChatUser($input: ReportChatUserInputType!) {
5616
5762
  reportChatUser(input: $input) {
5617
5763
  data {
@@ -5625,14 +5771,14 @@ var REPORT_CHAT_USER_MUTATION = import_client16.gql`
5625
5771
 
5626
5772
  // src/graphql/hooks/chat/hooksMutation.ts
5627
5773
  var useCreatePrivateChat = () => {
5628
- const [createPrivateChat, { loading, error }] = (0, import_client17.useMutation)(CREATE_PRIVATE_CHAT_MUTATION, {
5774
+ const [createPrivateChat, { loading, error }] = (0, import_client18.useMutation)(CREATE_PRIVATE_CHAT_MUTATION, {
5629
5775
  awaitRefetchQueries: true,
5630
5776
  refetchQueries: [{ query: PRIVATE_CHATS }]
5631
5777
  });
5632
5778
  return { createPrivateChat, error, loading };
5633
5779
  };
5634
5780
  var useSendChatMessage = () => {
5635
- const [sendChatMessage, { loading, error }] = (0, import_client17.useMutation)(SEND_CHAT_MESSAGE_MUTATION, {
5781
+ const [sendChatMessage, { loading, error }] = (0, import_client18.useMutation)(SEND_CHAT_MESSAGE_MUTATION, {
5636
5782
  awaitRefetchQueries: true,
5637
5783
  refetchQueries: (mutationResult) => {
5638
5784
  const chatId = mutationResult?.data?.sendChatMessage?.data?._id;
@@ -5647,14 +5793,14 @@ var useSendChatMessage = () => {
5647
5793
  return { error, loading, sendChatMessage };
5648
5794
  };
5649
5795
  var useDeleteChat = () => {
5650
- const [deleteChat, { loading, error }] = (0, import_client17.useMutation)(DELETE_CHAT_MUTATION, {
5796
+ const [deleteChat, { loading, error }] = (0, import_client18.useMutation)(DELETE_CHAT_MUTATION, {
5651
5797
  awaitRefetchQueries: true,
5652
5798
  refetchQueries: [{ query: PRIVATE_CHATS }, { query: RELATION_CHATS }]
5653
5799
  });
5654
5800
  return { deleteChat, error, loading };
5655
5801
  };
5656
5802
  var useAddParticipantToChat = () => {
5657
- const [addParticipantToChat, { loading, error }] = (0, import_client17.useMutation)(ADD_PARTICIPANT_TO_CHAT_MUTATION, {
5803
+ const [addParticipantToChat, { loading, error }] = (0, import_client18.useMutation)(ADD_PARTICIPANT_TO_CHAT_MUTATION, {
5658
5804
  awaitRefetchQueries: true,
5659
5805
  refetchQueries: (mutationResult) => {
5660
5806
  const chatId = mutationResult?.data?.addParticipantToChat?.data?._id;
@@ -5675,7 +5821,7 @@ var useAddParticipantToChat = () => {
5675
5821
  return { addParticipantToChat, error, loading };
5676
5822
  };
5677
5823
  var useRemoveParticipantFromChat = () => {
5678
- const [removeParticipantFromChat, { loading, error }] = (0, import_client17.useMutation)(REMOVE_PARTICIPANT_FROM_CHAT_MUTATION, {
5824
+ const [removeParticipantFromChat, { loading, error }] = (0, import_client18.useMutation)(REMOVE_PARTICIPANT_FROM_CHAT_MUTATION, {
5679
5825
  awaitRefetchQueries: true,
5680
5826
  refetchQueries: (mutationResult) => {
5681
5827
  const region = mutationResult?.data?.removeParticipantFromChat?.data?.region;
@@ -5695,7 +5841,7 @@ var useRemoveParticipantFromChat = () => {
5695
5841
  return { error, loading, removeParticipantFromChat };
5696
5842
  };
5697
5843
  var useToggleChatMessageLike = () => {
5698
- const [toggleChatMessageLike, { loading, error }] = (0, import_client17.useMutation)(TOGGLE_CHAT_MESSAGE_LIKE_MUTATION, {
5844
+ const [toggleChatMessageLike, { loading, error }] = (0, import_client18.useMutation)(TOGGLE_CHAT_MESSAGE_LIKE_MUTATION, {
5699
5845
  awaitRefetchQueries: true,
5700
5846
  refetchQueries: (mutationResult) => {
5701
5847
  const chatId = mutationResult?.data?.toggleChatMessageLike?.data?._id;
@@ -5710,7 +5856,7 @@ var useToggleChatMessageLike = () => {
5710
5856
  return { error, loading, toggleChatMessageLike };
5711
5857
  };
5712
5858
  var useMarkChatMessagesSeen = () => {
5713
- const [markChatMessagesSeen, { loading, error }] = (0, import_client17.useMutation)(MARK_CHAT_MESSAGES_SEEN_MUTATION, {
5859
+ const [markChatMessagesSeen, { loading, error }] = (0, import_client18.useMutation)(MARK_CHAT_MESSAGES_SEEN_MUTATION, {
5714
5860
  awaitRefetchQueries: true,
5715
5861
  refetchQueries: (mutationResult) => {
5716
5862
  const chatId = mutationResult?.data?.markChatMessagesSeen?.data?._id;
@@ -5725,16 +5871,16 @@ var useMarkChatMessagesSeen = () => {
5725
5871
  return { error, loading, markChatMessagesSeen };
5726
5872
  };
5727
5873
  var useReportChatUser = () => {
5728
- const [reportChatUser, { loading, error }] = (0, import_client17.useMutation)(REPORT_CHAT_USER_MUTATION);
5874
+ const [reportChatUser, { loading, error }] = (0, import_client18.useMutation)(REPORT_CHAT_USER_MUTATION);
5729
5875
  return { error, loading, reportChatUser };
5730
5876
  };
5731
5877
 
5732
5878
  // src/graphql/hooks/chat/hooksQuery.ts
5733
- var import_client19 = require("@apollo/client");
5879
+ var import_client20 = require("@apollo/client");
5734
5880
 
5735
5881
  // src/graphql/subscriptions/chat.ts
5736
- var import_client18 = require("@apollo/client");
5737
- var GET_CHAT_MESSAGE = import_client18.gql`
5882
+ var import_client19 = require("@apollo/client");
5883
+ var GET_CHAT_MESSAGE = import_client19.gql`
5738
5884
  subscription {
5739
5885
  getChatMessage {
5740
5886
  ...ChatFields
@@ -5745,7 +5891,7 @@ var GET_CHAT_MESSAGE = import_client18.gql`
5745
5891
 
5746
5892
  // src/graphql/hooks/chat/hooksQuery.ts
5747
5893
  var useGetChat = (_id) => {
5748
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(CHAT, {
5894
+ const { loading, error, data, refetch } = (0, import_client20.useQuery)(CHAT, {
5749
5895
  fetchPolicy: "network-only",
5750
5896
  skip: !_id || _id === "",
5751
5897
  variables: { _id }
@@ -5754,28 +5900,28 @@ var useGetChat = (_id) => {
5754
5900
  return { chat, error, loading, refetch };
5755
5901
  };
5756
5902
  var useGetPrivateChats = () => {
5757
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(PRIVATE_CHATS, {
5903
+ const { loading, error, data, refetch } = (0, import_client20.useQuery)(PRIVATE_CHATS, {
5758
5904
  fetchPolicy: "network-only"
5759
5905
  });
5760
5906
  const privateChats = data?.privateChats || [];
5761
5907
  return { error, loading, privateChats, refetch };
5762
5908
  };
5763
5909
  var useGetRelationChats = () => {
5764
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(RELATION_CHATS, {
5910
+ const { loading, error, data, refetch } = (0, import_client20.useQuery)(RELATION_CHATS, {
5765
5911
  fetchPolicy: "network-only"
5766
5912
  });
5767
5913
  const relationChats = data?.relationChats || [];
5768
5914
  return { error, loading, refetch, relationChats };
5769
5915
  };
5770
5916
  var useGetChatSubscription = () => {
5771
- const { data, loading, error } = (0, import_client19.useSubscription)(
5917
+ const { data, loading, error } = (0, import_client20.useSubscription)(
5772
5918
  GET_CHAT_MESSAGE
5773
5919
  );
5774
5920
  const chat = data?.getChat;
5775
5921
  return { chat, error, loading };
5776
5922
  };
5777
5923
  var useGetChatsByRegion = (region) => {
5778
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_CHATS_BY_REGION, {
5924
+ const { loading, error, data, refetch } = (0, import_client20.useQuery)(GET_CHATS_BY_REGION, {
5779
5925
  fetchPolicy: "network-only",
5780
5926
  variables: { region }
5781
5927
  });
@@ -5783,7 +5929,7 @@ var useGetChatsByRegion = (region) => {
5783
5929
  return { chatsByRegion, error, loading, refetch };
5784
5930
  };
5785
5931
  var useGetReportedChatUsers = () => {
5786
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_REPORTED_CHAT_USERS, {
5932
+ const { loading, error, data, refetch } = (0, import_client20.useQuery)(GET_REPORTED_CHAT_USERS, {
5787
5933
  fetchPolicy: "network-only"
5788
5934
  });
5789
5935
  const reportedChatUsers = data?.reportedChatUsers || [];
@@ -5791,11 +5937,11 @@ var useGetReportedChatUsers = () => {
5791
5937
  };
5792
5938
 
5793
5939
  // src/graphql/hooks/contactUs.ts
5794
- var import_client21 = require("@apollo/client");
5940
+ var import_client22 = require("@apollo/client");
5795
5941
 
5796
5942
  // src/graphql/mutations/contactUs.ts
5797
- var import_client20 = require("@apollo/client");
5798
- var CONTACT_US_MUTATION = import_client20.gql`
5943
+ var import_client21 = require("@apollo/client");
5944
+ var CONTACT_US_MUTATION = import_client21.gql`
5799
5945
  mutation contactUs($input: ContactUsInputType!) {
5800
5946
  contactUs(input: $input) {
5801
5947
  data
@@ -5806,7 +5952,7 @@ var CONTACT_US_MUTATION = import_client20.gql`
5806
5952
 
5807
5953
  // src/graphql/hooks/contactUs.ts
5808
5954
  var useContactUs = () => {
5809
- const [contactUs, { loading, error }] = (0, import_client21.useMutation)(CONTACT_US_MUTATION);
5955
+ const [contactUs, { loading, error }] = (0, import_client22.useMutation)(CONTACT_US_MUTATION);
5810
5956
  return { contactUs, error, loading };
5811
5957
  };
5812
5958
 
@@ -5814,8 +5960,8 @@ var useContactUs = () => {
5814
5960
  var import_client24 = require("@apollo/client");
5815
5961
 
5816
5962
  // src/graphql/mutations/event.ts
5817
- var import_client22 = require("@apollo/client");
5818
- var CREATE_EVENT_MUTATION = import_client22.gql`
5963
+ var import_client23 = require("@apollo/client");
5964
+ var CREATE_EVENT_MUTATION = import_client23.gql`
5819
5965
  mutation createEvent($input: EventInputType!) {
5820
5966
  createEvent(input: $input) {
5821
5967
  data {
@@ -5826,7 +5972,7 @@ var CREATE_EVENT_MUTATION = import_client22.gql`
5826
5972
  }
5827
5973
  ${EVENT}
5828
5974
  `;
5829
- var UPDATE_EVENT_MUTATION = import_client22.gql`
5975
+ var UPDATE_EVENT_MUTATION = import_client23.gql`
5830
5976
  mutation updateEvent($_id: ID!, $input: EventInputType!) {
5831
5977
  updateEvent(_id: $_id, input: $input) {
5832
5978
  data {
@@ -5837,7 +5983,7 @@ var UPDATE_EVENT_MUTATION = import_client22.gql`
5837
5983
  }
5838
5984
  ${EVENT}
5839
5985
  `;
5840
- var DELETE_EVENT_MUTATION = import_client22.gql`
5986
+ var DELETE_EVENT_MUTATION = import_client23.gql`
5841
5987
  mutation deleteEvent($_id: ID!) {
5842
5988
  deleteEvent(_id: $_id) {
5843
5989
  data
@@ -5845,7 +5991,7 @@ var DELETE_EVENT_MUTATION = import_client22.gql`
5845
5991
  }
5846
5992
  }
5847
5993
  `;
5848
- var CREATE_EVENT_INFO_MUTATION = import_client22.gql`
5994
+ var CREATE_EVENT_INFO_MUTATION = import_client23.gql`
5849
5995
  mutation createEventInfo($input: EventInfoInputType!) {
5850
5996
  createEventInfo(input: $input) {
5851
5997
  data {
@@ -5856,7 +6002,7 @@ var CREATE_EVENT_INFO_MUTATION = import_client22.gql`
5856
6002
  }
5857
6003
  ${EVENT_INFO}
5858
6004
  `;
5859
- var UPDATE_EVENT_INFO_MUTATION = import_client22.gql`
6005
+ var UPDATE_EVENT_INFO_MUTATION = import_client23.gql`
5860
6006
  mutation updateEventInfo($_id: ID!, $input: EventInfoInputType!) {
5861
6007
  updateEventInfo(_id: $_id, input: $input) {
5862
6008
  data {
@@ -5868,110 +6014,6 @@ var UPDATE_EVENT_INFO_MUTATION = import_client22.gql`
5868
6014
  ${EVENT_INFO}
5869
6015
  `;
5870
6016
 
5871
- // src/graphql/queries/user.ts
5872
- var import_client23 = require("@apollo/client");
5873
- var GET_USERS = import_client23.gql`
5874
- query getUsers {
5875
- users {
5876
- ...UserFields
5877
- }
5878
- }
5879
- ${USER_FIELDS_FRAGMENT}
5880
- `;
5881
- var GET_USER = import_client23.gql`
5882
- query getUser($_id: ID!) {
5883
- user(_id: $_id) {
5884
- ...UserFields
5885
- }
5886
- }
5887
- ${USER_FIELDS_FRAGMENT}
5888
- `;
5889
- var GET_USER_EVENTS = import_client23.gql`
5890
- query getUserEvents {
5891
- userEvents {
5892
- ...EventFields
5893
- }
5894
- }
5895
- ${EVENT}
5896
- `;
5897
- var GET_USER_VENDORS = import_client23.gql`
5898
- query getUserVendors {
5899
- userVendors {
5900
- ...VendorFields
5901
- }
5902
- }
5903
- ${VENDOR}
5904
- `;
5905
- var GET_USER_PARTNERS = import_client23.gql`
5906
- query getUserPartners {
5907
- userPartners {
5908
- ...PartnerFields
5909
- }
5910
- }
5911
- ${PARTNER}
5912
- `;
5913
- var GET_USER_ACTIVITIES = import_client23.gql`
5914
- query getUserActivities {
5915
- userActivities {
5916
- favourites {
5917
- events {
5918
- ...EventListItemFields
5919
- }
5920
- partners {
5921
- ...PartnerFields
5922
- }
5923
- vendors {
5924
- ...VendorFields
5925
- }
5926
- }
5927
- going {
5928
- events {
5929
- ...EventListItemFields
5930
- }
5931
- }
5932
- interested {
5933
- events {
5934
- ...EventListItemFields
5935
- }
5936
- }
5937
- present {
5938
- events {
5939
- ...EventListItemFields
5940
- }
5941
- }
5942
- }
5943
- }
5944
- ${EVENT_LIST_ITEM}
5945
- ${VENDOR}
5946
- ${PARTNER}
5947
- `;
5948
- var GET_USER_RESOURCES = import_client23.gql`
5949
- query getUserResources($userId: ID!) {
5950
- userResources(userId: $userId) {
5951
- resources {
5952
- _id
5953
- logo
5954
- name
5955
- resourceType
5956
- }
5957
- }
5958
- }
5959
- `;
5960
- var GET_USERS_BY_PROMO_CODE = import_client23.gql`
5961
- query getUsersByPromoCode($promoCode: String!, $limit: Int, $offset: Int) {
5962
- usersByPromoCode(promoCode: $promoCode, limit: $limit, offset: $offset) {
5963
- active
5964
- avatar {
5965
- ...ResourceImageFields
5966
- }
5967
- deletedAt
5968
- nickName
5969
- userId
5970
- }
5971
- }
5972
- ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
5973
- `;
5974
-
5975
6017
  // src/graphql/hooks/event/hooksMutation.ts
5976
6018
  var useCreateEvent = () => {
5977
6019
  const [createEvent, { loading, error }] = (0, import_client24.useMutation)(CREATE_EVENT_MUTATION, {
@@ -6060,14 +6102,6 @@ var useUpdateEventInfo = () => {
6060
6102
 
6061
6103
  // src/graphql/hooks/event/hooksQuery.ts
6062
6104
  var import_client25 = require("@apollo/client");
6063
- var useGetEvents = (dateStatus) => {
6064
- const { loading, error, data, refetch } = (0, import_client25.useQuery)(GET_EVENTS, {
6065
- fetchPolicy: "network-only",
6066
- variables: { dateStatus }
6067
- });
6068
- const events = data?.events || [];
6069
- return { error, events, loading, refetch };
6070
- };
6071
6105
  var useGetEvent = (_id) => {
6072
6106
  const { loading, error, data, refetch } = (0, import_client25.useQuery)(GET_EVENT, {
6073
6107
  fetchPolicy: "network-only",
@@ -6116,10 +6150,10 @@ var useGetEventsByRegion = (region, options, dateStatus, tags) => {
6116
6150
  refetch
6117
6151
  };
6118
6152
  };
6119
- var useSearchEvents = (region, searchQuery, tags, dateStatus) => {
6120
- const normalizedSearch = searchQuery?.trim() ?? "";
6153
+ var useSearchEvents = (search, region, tags, dateStatus) => {
6154
+ const normalizedSearch = search.trim();
6121
6155
  const normalizedTags = (tags ?? []).filter(Boolean);
6122
- const shouldRunQuery = normalizedSearch.length > 3 || normalizedTags.length > 0;
6156
+ const shouldRunQuery = normalizedSearch.length >= 3 || normalizedTags.length > 0;
6123
6157
  const { loading, error, data, refetch } = (0, import_client25.useQuery)(SEARCH_EVENTS, {
6124
6158
  fetchPolicy: "network-only",
6125
6159
  skip: !shouldRunQuery,
@@ -6739,21 +6773,6 @@ var useActivateVendorClaim = () => {
6739
6773
 
6740
6774
  // src/graphql/hooks/vendor/hooksQuery.ts
6741
6775
  var import_client40 = require("@apollo/client");
6742
- var useGetVendors = () => {
6743
- const { loading, error, data, refetch } = (0, import_client40.useQuery)(
6744
- GET_VENDORS,
6745
- {
6746
- fetchPolicy: "network-only"
6747
- }
6748
- );
6749
- const vendors = data?.vendors || [];
6750
- return {
6751
- error,
6752
- loading,
6753
- refetch,
6754
- vendors
6755
- };
6756
- };
6757
6776
  var useGetVendor = (_id) => {
6758
6777
  const { loading, error, data, refetch } = (0, import_client40.useQuery)(
6759
6778
  GET_VENDOR,
@@ -6785,10 +6804,11 @@ var useGetVendorsByRegion = (region, options) => {
6785
6804
  };
6786
6805
  };
6787
6806
  var useSearchVendors = (search, region) => {
6807
+ const normalizedSearch = search.trim();
6788
6808
  const { loading, error, data, refetch } = (0, import_client40.useQuery)(SEARCH_VENDORS, {
6789
6809
  fetchPolicy: "network-only",
6790
- skip: search.length < 3,
6791
- variables: { region, search }
6810
+ skip: normalizedSearch.length < 3,
6811
+ variables: { region, search: normalizedSearch }
6792
6812
  });
6793
6813
  const vendorSearch = data?.vendorSearch || [];
6794
6814
  return { error, loading, refetch, vendorSearch };
@@ -7122,16 +7142,6 @@ var useSelectStandardPackage = () => {
7122
7142
 
7123
7143
  // src/graphql/hooks/user/hooksQuery.ts
7124
7144
  var import_client43 = require("@apollo/client");
7125
- var useGetUsers = () => {
7126
- const { loading, error, data, refetch } = (0, import_client43.useQuery)(
7127
- GET_USERS,
7128
- {
7129
- fetchPolicy: "network-only"
7130
- }
7131
- );
7132
- const users = data?.users || [];
7133
- return { error, loading, refetch, users };
7134
- };
7135
7145
  var useGetUser = (_id) => {
7136
7146
  const { loading, error, data, refetch } = (0, import_client43.useQuery)(
7137
7147
  GET_USER,
@@ -7673,18 +7683,6 @@ var useDeletePartner = () => {
7673
7683
 
7674
7684
  // src/graphql/hooks/partner/hooksQuery.ts
7675
7685
  var import_client58 = require("@apollo/client");
7676
- var useGetPartners = () => {
7677
- const { loading, error, data, refetch } = (0, import_client58.useQuery)(GET_PARTNERS, {
7678
- fetchPolicy: "network-only"
7679
- });
7680
- const partners = data?.partners || [];
7681
- return {
7682
- error,
7683
- loading,
7684
- partners,
7685
- refetch
7686
- };
7687
- };
7688
7686
  var useGetPartner = (_id) => {
7689
7687
  const { loading, error, data, refetch } = (0, import_client58.useQuery)(
7690
7688
  GET_PARTNER,
@@ -7716,10 +7714,11 @@ var useGetPartnersByRegion = (region, options) => {
7716
7714
  };
7717
7715
  };
7718
7716
  var useSearchPartners = (search, region) => {
7717
+ const normalizedSearch = search.trim();
7719
7718
  const { loading, error, data, refetch } = (0, import_client58.useQuery)(SEARCH_PARTNERS, {
7720
7719
  fetchPolicy: "network-only",
7721
- skip: search.length < 3,
7722
- variables: { region, search }
7720
+ skip: normalizedSearch.length < 3,
7721
+ variables: { region, search: normalizedSearch }
7723
7722
  });
7724
7723
  const partnersSearch = data?.partnersSearch || [];
7725
7724
  return { error, loading, partnersSearch, refetch };
@@ -7786,12 +7785,6 @@ var useDeletePost = () => {
7786
7785
 
7787
7786
  // src/graphql/hooks/post/hooksQuery.ts
7788
7787
  var import_client61 = require("@apollo/client");
7789
- var useGetPosts = () => {
7790
- const { data, loading, error, refetch } = (0, import_client61.useQuery)(GET_POSTS, {
7791
- fetchPolicy: "network-only"
7792
- });
7793
- return { error, loading, posts: data?.posts || [], refetch };
7794
- };
7795
7788
  var useGetPost = (_id) => {
7796
7789
  const { data, loading, error, refetch } = (0, import_client61.useQuery)(GET_POST, {
7797
7790
  fetchPolicy: "network-only",
@@ -7800,14 +7793,6 @@ var useGetPost = (_id) => {
7800
7793
  });
7801
7794
  return { error, loading, post: data?.post, refetch };
7802
7795
  };
7803
- var useGetPostsByType = (postType) => {
7804
- const { data, loading, error, refetch } = (0, import_client61.useQuery)(GET_POSTS_BY_TYPE, {
7805
- fetchPolicy: "network-only",
7806
- skip: !postType,
7807
- variables: { postType }
7808
- });
7809
- return { error, loading, postsByType: data?.postsByType || [], refetch };
7810
- };
7811
7796
 
7812
7797
  // src/graphql/hooks/appSettings/hooksMutation.ts
7813
7798
  var import_client64 = require("@apollo/client");
@@ -9011,6 +8996,101 @@ var useGetCoupon = (_id) => {
9011
8996
  return { coupon, error, loading, refetch };
9012
8997
  };
9013
8998
 
8999
+ // src/graphql/hooks/usePaginatedList.ts
9000
+ var import_client86 = require("@apollo/client");
9001
+ var import_react = require("react");
9002
+ function usePaginatedList({
9003
+ document,
9004
+ getItems,
9005
+ variables,
9006
+ skip = false,
9007
+ pageSize = DEFAULT_PAGE_SIZE,
9008
+ getId = defaultGetId
9009
+ }) {
9010
+ if (!Number.isInteger(pageSize) || pageSize <= 0) {
9011
+ throw new Error(
9012
+ `usePaginatedList: pageSize must be a positive integer, received ${String(pageSize)}.`
9013
+ );
9014
+ }
9015
+ const [offset, setOffset] = (0, import_react.useState)(0);
9016
+ const [items, setItems] = (0, import_react.useState)([]);
9017
+ const [hasMore, setHasMore] = (0, import_react.useState)(!skip);
9018
+ const [hasSettled, setHasSettled] = (0, import_react.useState)(false);
9019
+ const variablesKey = JSON.stringify(variables ?? null);
9020
+ (0, import_react.useEffect)(() => {
9021
+ setItems([]);
9022
+ setHasMore(!skip);
9023
+ setHasSettled(false);
9024
+ setOffset(0);
9025
+ }, [variablesKey, pageSize, skip]);
9026
+ const { data, loading, error, refetch } = (0, import_client86.useQuery)(document, {
9027
+ fetchPolicy: "network-only",
9028
+ skip,
9029
+ variables: { ...variables, options: { limit: pageSize + 1, offset } }
9030
+ });
9031
+ const refetchRef = (0, import_react.useRef)(refetch);
9032
+ refetchRef.current = refetch;
9033
+ const variablesRef = (0, import_react.useRef)(variables);
9034
+ variablesRef.current = variables;
9035
+ const rawPage = getItems(data);
9036
+ const page = rawPage.length > pageSize ? rawPage.slice(0, pageSize) : rawPage;
9037
+ const hasMorePage = rawPage.length > pageSize;
9038
+ (0, import_react.useEffect)(() => {
9039
+ if (loading || skip || error) {
9040
+ return;
9041
+ }
9042
+ setItems((prev) => {
9043
+ if (!hasSettled) {
9044
+ if (page.length === 0 && prev.length === 0) {
9045
+ return prev;
9046
+ }
9047
+ return page;
9048
+ }
9049
+ return accumulateItems(prev, page, getId);
9050
+ });
9051
+ setHasSettled(true);
9052
+ setHasMore(hasMorePage);
9053
+ }, [loading, skip, error, page, hasMorePage, hasSettled, pageSize, getId]);
9054
+ const loadMore = (0, import_react.useCallback)(() => {
9055
+ if (loading || skip) {
9056
+ return;
9057
+ }
9058
+ if (error) {
9059
+ void refetchRef.current();
9060
+ return;
9061
+ }
9062
+ if (!hasSettled) {
9063
+ return;
9064
+ }
9065
+ if (!hasMore) {
9066
+ return;
9067
+ }
9068
+ setOffset(offset + pageSize);
9069
+ }, [loading, skip, error, hasSettled, hasMore, offset, pageSize]);
9070
+ const refresh = (0, import_react.useCallback)(() => {
9071
+ setItems([]);
9072
+ setHasMore(!skip);
9073
+ setHasSettled(false);
9074
+ setOffset(0);
9075
+ if (skip) {
9076
+ return Promise.resolve();
9077
+ }
9078
+ return refetchRef.current({
9079
+ ...variablesRef.current,
9080
+ options: { limit: pageSize + 1, offset: 0 }
9081
+ });
9082
+ }, [pageSize, skip]);
9083
+ return {
9084
+ error,
9085
+ hasMore,
9086
+ items,
9087
+ loading: loading && !hasSettled,
9088
+ loadingMore: loading && hasSettled,
9089
+ loadMore,
9090
+ refresh
9091
+ };
9092
+ }
9093
+
9014
9094
  // src/images/index.ts
9015
9095
  var PKG = "@timardex/cluemart-shared";
9016
9096
  var IMAGE_EXTENSION = ".webp";
@@ -9578,6 +9658,7 @@ function canAccessAdminPath(roles, pathname) {
9578
9658
  CLUEMART_MAIN_DOMAIN_URL,
9579
9659
  CM_AFFILIATE_PROMO_CODE,
9580
9660
  CM_SCHOOL_PROMO_CODE,
9661
+ DEFAULT_PAGE_SIZE,
9581
9662
  DEFAULT_RESOURCES_RETURN_LIMIT,
9582
9663
  DEFAULT_RESOURCES_RETURN_OFFSET,
9583
9664
  DEFAULT_SHARE_OG_IMAGE,
@@ -9620,15 +9701,21 @@ function canAccessAdminPath(roles, pathname) {
9620
9701
  EnumVendorType,
9621
9702
  EnumVerificationType,
9622
9703
  GET_EVENT,
9704
+ GET_EVENTS,
9623
9705
  GET_EVENT_BY_SLUG,
9624
9706
  GET_EVENT_INFO,
9625
9707
  GET_OWNED_EVENT,
9626
9708
  GET_PARTNER,
9709
+ GET_PARTNERS,
9627
9710
  GET_PARTNER_BY_SLUG,
9628
9711
  GET_POST,
9712
+ GET_POSTS,
9713
+ GET_POSTS_BY_TYPE,
9629
9714
  GET_POST_BY_SLUG,
9630
9715
  GET_RESOURCE_CONNECTIONS,
9716
+ GET_USERS,
9631
9717
  GET_VENDOR,
9718
+ GET_VENDORS,
9632
9719
  GET_VENDOR_BY_SLUG,
9633
9720
  GET_VENDOR_INFO,
9634
9721
  IMAGE_EXTENSION,
@@ -9685,6 +9772,7 @@ function canAccessAdminPath(roles, pathname) {
9685
9772
  TIER_FROM_LICENCE,
9686
9773
  USER_STORAGE_KEY,
9687
9774
  WILDCARD_PERMISSION,
9775
+ accumulateItems,
9688
9776
  appendShareMoreInfoLine,
9689
9777
  availableCategories,
9690
9778
  availableRegionOptions,
@@ -9718,10 +9806,12 @@ function canAccessAdminPath(roles, pathname) {
9718
9806
  collectVendorEventRelationDateTimes,
9719
9807
  companyContactFields,
9720
9808
  computeDailyClueState,
9809
+ computeHasMore,
9721
9810
  contactUsFields,
9722
9811
  createAffiliateReward,
9723
9812
  darkColors,
9724
9813
  dateFormat,
9814
+ defaultGetId,
9725
9815
  emailField,
9726
9816
  eventBasicInfoFields,
9727
9817
  eventEndDateFields,
@@ -9926,7 +10016,6 @@ function canAccessAdminPath(roles, pathname) {
9926
10016
  useGetEventByPlaceId,
9927
10017
  useGetEventInfo,
9928
10018
  useGetEventRelations,
9929
- useGetEvents,
9930
10019
  useGetEventsByRegion,
9931
10020
  useGetEventsNearMe,
9932
10021
  useGetGame,
@@ -9936,11 +10025,8 @@ function canAccessAdminPath(roles, pathname) {
9936
10025
  useGetNotificationCountSubscription,
9937
10026
  useGetOwnedEvent,
9938
10027
  useGetPartner,
9939
- useGetPartners,
9940
10028
  useGetPartnersByRegion,
9941
10029
  useGetPost,
9942
- useGetPosts,
9943
- useGetPostsByType,
9944
10030
  useGetPrivateChats,
9945
10031
  useGetRelation,
9946
10032
  useGetRelationByEventAndVendor,
@@ -9963,12 +10049,10 @@ function canAccessAdminPath(roles, pathname) {
9963
10049
  useGetUserPartners,
9964
10050
  useGetUserResources,
9965
10051
  useGetUserVendors,
9966
- useGetUsers,
9967
10052
  useGetUsersByPromoCode,
9968
10053
  useGetVendor,
9969
10054
  useGetVendorInfo,
9970
10055
  useGetVendorRelations,
9971
- useGetVendors,
9972
10056
  useGetVendorsByRegion,
9973
10057
  useLeaveGame,
9974
10058
  useLogin,
@@ -9977,6 +10061,7 @@ function canAccessAdminPath(roles, pathname) {
9977
10061
  useMarkChatMessagesSeen,
9978
10062
  useMarkNotificationRead,
9979
10063
  useMyPendingVendorClaim,
10064
+ usePaginatedList,
9980
10065
  useRedeemAffiliateReward,
9981
10066
  useRedeemReward,
9982
10067
  useRefreshToken,