@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
@@ -85,6 +85,7 @@ __export(graphql_exports, {
85
85
  useGetPostsByType: () => useGetPostsByType,
86
86
  useGetRelation: () => useGetRelation,
87
87
  useGetRelationByEventAndVendor: () => useGetRelationByEventAndVendor,
88
+ useGetReportedChatUsers: () => useGetReportedChatUsers,
88
89
  useGetResourceActivity: () => useGetResourceActivity,
89
90
  useGetResourceConnections: () => useGetResourceConnections,
90
91
  useGetSubscriptionPlans: () => useGetSubscriptionPlans,
@@ -119,6 +120,7 @@ __export(graphql_exports, {
119
120
  useRemoveUserGoingResource: () => useRemoveUserGoingResource,
120
121
  useRemoveUserInterestResource: () => useRemoveUserInterestResource,
121
122
  useRemoveUserPresentResource: () => useRemoveUserPresentResource,
123
+ useReportChatUser: () => useReportChatUser,
122
124
  useRequestPasswordReset: () => useRequestPasswordReset,
123
125
  useResetPassword: () => useResetPassword,
124
126
  useSearchEvents: () => useSearchEvents,
@@ -1198,6 +1200,23 @@ var GET_CHATS_BY_REGION = import_client9.gql`
1198
1200
  }
1199
1201
  ${CHAT_FIELDS_FRAGMENT}
1200
1202
  `;
1203
+ var GET_REPORTED_CHAT_USERS = import_client9.gql`
1204
+ query getReportedChatUsers {
1205
+ reportedChatUsers {
1206
+ _id
1207
+ chatId
1208
+ createdAt
1209
+ reason {
1210
+ reasonType
1211
+ details
1212
+ }
1213
+ reportedUserId
1214
+ reporterUserId
1215
+ resolved
1216
+ updatedAt
1217
+ }
1218
+ }
1219
+ `;
1201
1220
 
1202
1221
  // src/graphql/mutations/chat.ts
1203
1222
  var SEND_CHAT_MESSAGE_MUTATION = import_client10.gql`
@@ -1245,6 +1264,13 @@ var MARK_CHAT_MESSAGES_SEEN_MUTATION = import_client10.gql`
1245
1264
  }
1246
1265
  ${CHAT_FIELDS_FRAGMENT}
1247
1266
  `;
1267
+ var REPORT_CHAT_USER_MUTATION = import_client10.gql`
1268
+ mutation reportChatUser($input: ReportChatUserInputType!) {
1269
+ reportChatUser(input: $input) {
1270
+ success
1271
+ }
1272
+ }
1273
+ `;
1248
1274
 
1249
1275
  // src/graphql/hooks/chat/hooksMutation.ts
1250
1276
  var useSendChatMessage = () => {
@@ -1330,6 +1356,12 @@ var useMarkChatMessagesSeen = () => {
1330
1356
  });
1331
1357
  return { error, loading, markChatMessagesSeen };
1332
1358
  };
1359
+ var useReportChatUser = () => {
1360
+ const [reportChatUser, { loading, error }] = (0, import_client11.useMutation)(
1361
+ REPORT_CHAT_USER_MUTATION
1362
+ );
1363
+ return { error, loading, reportChatUser };
1364
+ };
1333
1365
 
1334
1366
  // src/graphql/hooks/chat/hooksQuery.ts
1335
1367
  var import_client13 = require("@apollo/client");
@@ -1381,6 +1413,13 @@ var useGetChatsByRegion = (region) => {
1381
1413
  const chatsByRegion = data?.chatsByRegion || [];
1382
1414
  return { chatsByRegion, error, loading, refetch };
1383
1415
  };
1416
+ var useGetReportedChatUsers = () => {
1417
+ const { loading, error, data, refetch } = (0, import_client13.useQuery)(GET_REPORTED_CHAT_USERS, {
1418
+ fetchPolicy: "network-only"
1419
+ });
1420
+ const reportedChatUsers = data?.reportedChatUsers || [];
1421
+ return { error, loading, refetch, reportedChatUsers };
1422
+ };
1384
1423
 
1385
1424
  // src/graphql/hooks/contactUs.ts
1386
1425
  var import_client15 = require("@apollo/client");
@@ -3711,6 +3750,7 @@ var useGetAppSettings = () => {
3711
3750
  useGetPostsByType,
3712
3751
  useGetRelation,
3713
3752
  useGetRelationByEventAndVendor,
3753
+ useGetReportedChatUsers,
3714
3754
  useGetResourceActivity,
3715
3755
  useGetResourceConnections,
3716
3756
  useGetSubscriptionPlans,
@@ -3745,6 +3785,7 @@ var useGetAppSettings = () => {
3745
3785
  useRemoveUserGoingResource,
3746
3786
  useRemoveUserInterestResource,
3747
3787
  useRemoveUserPresentResource,
3788
+ useReportChatUser,
3748
3789
  useRequestPasswordReset,
3749
3790
  useResetPassword,
3750
3791
  useSearchEvents,