@timardex/cluemart-shared 1.4.22 → 1.4.24

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 (35) hide show
  1. package/dist/{chunk-QA3VXTNQ.mjs → chunk-S6G7DNEV.mjs} +2 -2
  2. package/dist/{chunk-BD4OOWBW.mjs → chunk-Z6FJKHRH.mjs} +11 -1
  3. package/dist/chunk-Z6FJKHRH.mjs.map +1 -0
  4. package/dist/enums/index.cjs +11 -0
  5. package/dist/enums/index.cjs.map +1 -1
  6. package/dist/enums/index.d.mts +9 -1
  7. package/dist/enums/index.d.ts +9 -1
  8. package/dist/enums/index.mjs +3 -1
  9. package/dist/formFields/index.cjs.map +1 -1
  10. package/dist/formFields/index.mjs +2 -2
  11. package/dist/graphql/index.cjs +41 -0
  12. package/dist/graphql/index.cjs.map +1 -1
  13. package/dist/graphql/index.d.mts +15 -2
  14. package/dist/graphql/index.d.ts +15 -2
  15. package/dist/graphql/index.mjs +40 -1
  16. package/dist/graphql/index.mjs.map +1 -1
  17. package/dist/hooks/index.cjs +1 -1
  18. package/dist/hooks/index.cjs.map +1 -1
  19. package/dist/hooks/index.mjs +3 -3
  20. package/dist/hooks/index.mjs.map +1 -1
  21. package/dist/index.cjs +53 -1
  22. package/dist/index.cjs.map +1 -1
  23. package/dist/index.d.mts +35 -1
  24. package/dist/index.d.ts +35 -1
  25. package/dist/index.mjs +50 -1
  26. package/dist/index.mjs.map +1 -1
  27. package/dist/{resourceActivities-oEQN2jZg.d.ts → resourceActivities-23xD5-eJ.d.ts} +15 -2
  28. package/dist/{resourceActivities-C97X-AAZ.d.mts → resourceActivities-B2B9oP6v.d.mts} +15 -2
  29. package/dist/types/index.d.mts +1 -1
  30. package/dist/types/index.d.ts +1 -1
  31. package/dist/utils/index.cjs.map +1 -1
  32. package/dist/utils/index.mjs +2 -2
  33. package/package.json +1 -1
  34. package/dist/chunk-BD4OOWBW.mjs.map +0 -1
  35. /package/dist/{chunk-QA3VXTNQ.mjs.map → chunk-S6G7DNEV.mjs.map} +0 -0
@@ -1,6 +1,6 @@
1
1
  import * as _apollo_client from '@apollo/client';
2
2
  import { EnumResourceType } from '../enums/index.mjs';
3
- import { C as ChatType, N as NotificationType, a as NotificationCount, R as ResourceActivityType } from '../resourceActivities-C97X-AAZ.mjs';
3
+ import { C as ChatType, R as ReportChatUser, N as NotificationType, a as NotificationCount, b as ResourceActivityType } from '../resourceActivities-B2B9oP6v.mjs';
4
4
  import { E as EventListItemType, b as EventType, c as EventInfoType, d as RelationType, e as ResourceConnectionsType, V as VendorType, f as VendorInfoType, U as UnregisteredVendorType, g as UserLicenceType } from '../global-D5dNxa5e.mjs';
5
5
  import { T as TesterType, U as UserType, P as PartnerType, A as AdType, E as EnumAdStatus, S as SubscriptionStatusData, a as SubscriptionPlansResponse, b as PostType, c as EnumPostType, d as AppSettingsType } from '../post-BnXA5t_U.mjs';
6
6
  import 'react-hook-form';
@@ -154,6 +154,11 @@ declare const useMarkChatMessagesSeen: () => {
154
154
  };
155
155
  }>>;
156
156
  };
157
+ declare const useReportChatUser: () => {
158
+ error: _apollo_client.ApolloError | undefined;
159
+ loading: boolean;
160
+ reportChatUser: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
161
+ };
157
162
 
158
163
  declare const useGetChat: (_id: string) => {
159
164
  chat: ChatType | undefined;
@@ -184,6 +189,14 @@ declare const useGetChatsByRegion: (region: string) => {
184
189
  chatsByRegion: ChatType[];
185
190
  }>>;
186
191
  };
192
+ declare const useGetReportedChatUsers: () => {
193
+ error: _apollo_client.ApolloError | undefined;
194
+ loading: boolean;
195
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
196
+ reportedChatUsers: ReportChatUser[];
197
+ }>>;
198
+ reportedChatUsers: ReportChatUser[];
199
+ };
187
200
 
188
201
  declare const useContactUs: () => {
189
202
  contactUs: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
@@ -975,4 +988,4 @@ declare const useGetAppSettings: () => {
975
988
  }>>;
976
989
  };
977
990
 
978
- export { useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminResendTesterVerificationEmail, useAdminResendUserVerificationEmail, useAdminUpdateResourceType, useAdminUpdateTester, useCancelSubscription, useContactUs, useCrawlGoogleMarkets, useCreateAd, useCreateBulkNotifications, useCreateCheckoutSession, useCreateCustomerPortal, useCreateEvent, useCreateEventInfo, useCreatePartner, useCreatePost, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateTester, useCreateUnregisteredVendor, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeletePost, useDeleteRelation, useDeleteTester, useDeleteUnregisteredVendor, useDeleteUser, useDeleteVendor, useGetAd, useGetAds, useGetAdsByRegion, useGetAppSettings, useGetChat, useGetChatSubscription, useGetChatsByRegion, useGetEvent, useGetEventByPlaceId, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetPartner, useGetPartners, useGetPartnersByRegion, useGetPost, useGetPosts, useGetPostsByType, useGetRelation, useGetRelationByEventAndVendor, useGetResourceActivity, useGetResourceConnections, useGetSubscriptionPlans, useGetSubscriptionStatus, useGetTester, useGetTesters, useGetUnregisteredVendor, useGetUnregisteredVendors, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserPartners, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLogin, useLogout, useMarkAllNotificationsRead, useMarkChatMessagesSeen, useMarkNotificationRead, useRefreshToken, useRegister, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useRequestPasswordReset, useResetPassword, useSearchEvents, useSearchPartners, useSearchVendors, useSelectPackage, useSelectStandardPackage, useSendChatMessage, useToggleChatMessageLike, useUpdateAd, useUpdateAppSettings, useUpdateEvent, useUpdateEventInfo, useUpdatePartner, useUpdatePost, useUpdateRelation, useUpdateSubscriptionPlan, useUpdateTester, useUpdateUnregisteredVendor, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useValidateVerificationToken };
991
+ export { useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminResendTesterVerificationEmail, useAdminResendUserVerificationEmail, useAdminUpdateResourceType, useAdminUpdateTester, useCancelSubscription, useContactUs, useCrawlGoogleMarkets, useCreateAd, useCreateBulkNotifications, useCreateCheckoutSession, useCreateCustomerPortal, useCreateEvent, useCreateEventInfo, useCreatePartner, useCreatePost, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateTester, useCreateUnregisteredVendor, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeletePost, useDeleteRelation, useDeleteTester, useDeleteUnregisteredVendor, useDeleteUser, useDeleteVendor, useGetAd, useGetAds, useGetAdsByRegion, useGetAppSettings, useGetChat, useGetChatSubscription, useGetChatsByRegion, useGetEvent, useGetEventByPlaceId, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetPartner, useGetPartners, useGetPartnersByRegion, useGetPost, useGetPosts, useGetPostsByType, useGetRelation, useGetRelationByEventAndVendor, useGetReportedChatUsers, useGetResourceActivity, useGetResourceConnections, useGetSubscriptionPlans, useGetSubscriptionStatus, useGetTester, useGetTesters, useGetUnregisteredVendor, useGetUnregisteredVendors, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserPartners, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLogin, useLogout, useMarkAllNotificationsRead, useMarkChatMessagesSeen, useMarkNotificationRead, useRefreshToken, useRegister, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useReportChatUser, useRequestPasswordReset, useResetPassword, useSearchEvents, useSearchPartners, useSearchVendors, useSelectPackage, useSelectStandardPackage, useSendChatMessage, useToggleChatMessageLike, useUpdateAd, useUpdateAppSettings, useUpdateEvent, useUpdateEventInfo, useUpdatePartner, useUpdatePost, useUpdateRelation, useUpdateSubscriptionPlan, useUpdateTester, useUpdateUnregisteredVendor, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useValidateVerificationToken };
@@ -1,6 +1,6 @@
1
1
  import * as _apollo_client from '@apollo/client';
2
2
  import { EnumResourceType } from '../enums/index.js';
3
- import { C as ChatType, N as NotificationType, a as NotificationCount, R as ResourceActivityType } from '../resourceActivities-oEQN2jZg.js';
3
+ import { C as ChatType, R as ReportChatUser, N as NotificationType, a as NotificationCount, b as ResourceActivityType } from '../resourceActivities-23xD5-eJ.js';
4
4
  import { E as EventListItemType, b as EventType, c as EventInfoType, d as RelationType, e as ResourceConnectionsType, V as VendorType, f as VendorInfoType, U as UnregisteredVendorType, g as UserLicenceType } from '../global-x5DE08tD.js';
5
5
  import { T as TesterType, U as UserType, P as PartnerType, A as AdType, E as EnumAdStatus, S as SubscriptionStatusData, a as SubscriptionPlansResponse, b as PostType, c as EnumPostType, d as AppSettingsType } from '../post-DDDWdbHZ.js';
6
6
  import 'react-hook-form';
@@ -154,6 +154,11 @@ declare const useMarkChatMessagesSeen: () => {
154
154
  };
155
155
  }>>;
156
156
  };
157
+ declare const useReportChatUser: () => {
158
+ error: _apollo_client.ApolloError | undefined;
159
+ loading: boolean;
160
+ reportChatUser: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
161
+ };
157
162
 
158
163
  declare const useGetChat: (_id: string) => {
159
164
  chat: ChatType | undefined;
@@ -184,6 +189,14 @@ declare const useGetChatsByRegion: (region: string) => {
184
189
  chatsByRegion: ChatType[];
185
190
  }>>;
186
191
  };
192
+ declare const useGetReportedChatUsers: () => {
193
+ error: _apollo_client.ApolloError | undefined;
194
+ loading: boolean;
195
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
196
+ reportedChatUsers: ReportChatUser[];
197
+ }>>;
198
+ reportedChatUsers: ReportChatUser[];
199
+ };
187
200
 
188
201
  declare const useContactUs: () => {
189
202
  contactUs: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
@@ -975,4 +988,4 @@ declare const useGetAppSettings: () => {
975
988
  }>>;
976
989
  };
977
990
 
978
- export { useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminResendTesterVerificationEmail, useAdminResendUserVerificationEmail, useAdminUpdateResourceType, useAdminUpdateTester, useCancelSubscription, useContactUs, useCrawlGoogleMarkets, useCreateAd, useCreateBulkNotifications, useCreateCheckoutSession, useCreateCustomerPortal, useCreateEvent, useCreateEventInfo, useCreatePartner, useCreatePost, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateTester, useCreateUnregisteredVendor, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeletePost, useDeleteRelation, useDeleteTester, useDeleteUnregisteredVendor, useDeleteUser, useDeleteVendor, useGetAd, useGetAds, useGetAdsByRegion, useGetAppSettings, useGetChat, useGetChatSubscription, useGetChatsByRegion, useGetEvent, useGetEventByPlaceId, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetPartner, useGetPartners, useGetPartnersByRegion, useGetPost, useGetPosts, useGetPostsByType, useGetRelation, useGetRelationByEventAndVendor, useGetResourceActivity, useGetResourceConnections, useGetSubscriptionPlans, useGetSubscriptionStatus, useGetTester, useGetTesters, useGetUnregisteredVendor, useGetUnregisteredVendors, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserPartners, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLogin, useLogout, useMarkAllNotificationsRead, useMarkChatMessagesSeen, useMarkNotificationRead, useRefreshToken, useRegister, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useRequestPasswordReset, useResetPassword, useSearchEvents, useSearchPartners, useSearchVendors, useSelectPackage, useSelectStandardPackage, useSendChatMessage, useToggleChatMessageLike, useUpdateAd, useUpdateAppSettings, useUpdateEvent, useUpdateEventInfo, useUpdatePartner, useUpdatePost, useUpdateRelation, useUpdateSubscriptionPlan, useUpdateTester, useUpdateUnregisteredVendor, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useValidateVerificationToken };
991
+ export { useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminResendTesterVerificationEmail, useAdminResendUserVerificationEmail, useAdminUpdateResourceType, useAdminUpdateTester, useCancelSubscription, useContactUs, useCrawlGoogleMarkets, useCreateAd, useCreateBulkNotifications, useCreateCheckoutSession, useCreateCustomerPortal, useCreateEvent, useCreateEventInfo, useCreatePartner, useCreatePost, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateTester, useCreateUnregisteredVendor, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeletePost, useDeleteRelation, useDeleteTester, useDeleteUnregisteredVendor, useDeleteUser, useDeleteVendor, useGetAd, useGetAds, useGetAdsByRegion, useGetAppSettings, useGetChat, useGetChatSubscription, useGetChatsByRegion, useGetEvent, useGetEventByPlaceId, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetPartner, useGetPartners, useGetPartnersByRegion, useGetPost, useGetPosts, useGetPostsByType, useGetRelation, useGetRelationByEventAndVendor, useGetReportedChatUsers, useGetResourceActivity, useGetResourceConnections, useGetSubscriptionPlans, useGetSubscriptionStatus, useGetTester, useGetTesters, useGetUnregisteredVendor, useGetUnregisteredVendors, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserPartners, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLogin, useLogout, useMarkAllNotificationsRead, useMarkChatMessagesSeen, useMarkNotificationRead, useRefreshToken, useRegister, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useReportChatUser, useRequestPasswordReset, useResetPassword, useSearchEvents, useSearchPartners, useSearchVendors, useSelectPackage, useSelectStandardPackage, useSendChatMessage, useToggleChatMessageLike, useUpdateAd, useUpdateAppSettings, useUpdateEvent, useUpdateEventInfo, useUpdatePartner, useUpdatePost, useUpdateRelation, useUpdateSubscriptionPlan, useUpdateTester, useUpdateUnregisteredVendor, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useValidateVerificationToken };
@@ -1,4 +1,4 @@
1
- import "../chunk-BD4OOWBW.mjs";
1
+ import "../chunk-Z6FJKHRH.mjs";
2
2
 
3
3
  // src/graphql/hooks/admin/hooksMutation.ts
4
4
  import { useMutation } from "@apollo/client";
@@ -1053,6 +1053,23 @@ var GET_CHATS_BY_REGION = gql7`
1053
1053
  }
1054
1054
  ${CHAT_FIELDS_FRAGMENT}
1055
1055
  `;
1056
+ var GET_REPORTED_CHAT_USERS = gql7`
1057
+ query getReportedChatUsers {
1058
+ reportedChatUsers {
1059
+ _id
1060
+ chatId
1061
+ createdAt
1062
+ reason {
1063
+ reasonType
1064
+ details
1065
+ }
1066
+ reportedUserId
1067
+ reporterUserId
1068
+ resolved
1069
+ updatedAt
1070
+ }
1071
+ }
1072
+ `;
1056
1073
 
1057
1074
  // src/graphql/mutations/chat.ts
1058
1075
  var SEND_CHAT_MESSAGE_MUTATION = gql8`
@@ -1100,6 +1117,13 @@ var MARK_CHAT_MESSAGES_SEEN_MUTATION = gql8`
1100
1117
  }
1101
1118
  ${CHAT_FIELDS_FRAGMENT}
1102
1119
  `;
1120
+ var REPORT_CHAT_USER_MUTATION = gql8`
1121
+ mutation reportChatUser($input: ReportChatUserInputType!) {
1122
+ reportChatUser(input: $input) {
1123
+ success
1124
+ }
1125
+ }
1126
+ `;
1103
1127
 
1104
1128
  // src/graphql/hooks/chat/hooksMutation.ts
1105
1129
  var useSendChatMessage = () => {
@@ -1185,6 +1209,12 @@ var useMarkChatMessagesSeen = () => {
1185
1209
  });
1186
1210
  return { error, loading, markChatMessagesSeen };
1187
1211
  };
1212
+ var useReportChatUser = () => {
1213
+ const [reportChatUser, { loading, error }] = useMutation3(
1214
+ REPORT_CHAT_USER_MUTATION
1215
+ );
1216
+ return { error, loading, reportChatUser };
1217
+ };
1188
1218
 
1189
1219
  // src/graphql/hooks/chat/hooksQuery.ts
1190
1220
  import { useQuery, useSubscription } from "@apollo/client";
@@ -1236,6 +1266,13 @@ var useGetChatsByRegion = (region) => {
1236
1266
  const chatsByRegion = data?.chatsByRegion || [];
1237
1267
  return { chatsByRegion, error, loading, refetch };
1238
1268
  };
1269
+ var useGetReportedChatUsers = () => {
1270
+ const { loading, error, data, refetch } = useQuery(GET_REPORTED_CHAT_USERS, {
1271
+ fetchPolicy: "network-only"
1272
+ });
1273
+ const reportedChatUsers = data?.reportedChatUsers || [];
1274
+ return { error, loading, refetch, reportedChatUsers };
1275
+ };
1239
1276
 
1240
1277
  // src/graphql/hooks/contactUs.ts
1241
1278
  import { useMutation as useMutation4 } from "@apollo/client";
@@ -3565,6 +3602,7 @@ export {
3565
3602
  useGetPostsByType,
3566
3603
  useGetRelation,
3567
3604
  useGetRelationByEventAndVendor,
3605
+ useGetReportedChatUsers,
3568
3606
  useGetResourceActivity,
3569
3607
  useGetResourceConnections,
3570
3608
  useGetSubscriptionPlans,
@@ -3599,6 +3637,7 @@ export {
3599
3637
  useRemoveUserGoingResource,
3600
3638
  useRemoveUserInterestResource,
3601
3639
  useRemoveUserPresentResource,
3640
+ useReportChatUser,
3602
3641
  useRequestPasswordReset,
3603
3642
  useResetPassword,
3604
3643
  useSearchEvents,