@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
package/dist/index.cjs CHANGED
@@ -36,6 +36,7 @@ __export(index_exports, {
36
36
  EnumAdStyle: () => EnumAdStyle,
37
37
  EnumAdType: () => EnumAdType,
38
38
  EnumBillingPeriod: () => EnumBillingPeriod,
39
+ EnumChatReportReason: () => EnumChatReportReason,
39
40
  EnumChatType: () => EnumChatType,
40
41
  EnumEventDateStatus: () => EnumEventDateStatus,
41
42
  EnumEventType: () => EnumEventType,
@@ -194,6 +195,7 @@ __export(index_exports, {
194
195
  useGetPostsByType: () => useGetPostsByType,
195
196
  useGetRelation: () => useGetRelation,
196
197
  useGetRelationByEventAndVendor: () => useGetRelationByEventAndVendor,
198
+ useGetReportedChatUsers: () => useGetReportedChatUsers,
197
199
  useGetResourceActivity: () => useGetResourceActivity,
198
200
  useGetResourceConnections: () => useGetResourceConnections,
199
201
  useGetSubscriptionPlans: () => useGetSubscriptionPlans,
@@ -233,6 +235,7 @@ __export(index_exports, {
233
235
  useRemoveUserGoingResource: () => useRemoveUserGoingResource,
234
236
  useRemoveUserInterestResource: () => useRemoveUserInterestResource,
235
237
  useRemoveUserPresentResource: () => useRemoveUserPresentResource,
238
+ useReportChatUser: () => useReportChatUser,
236
239
  useRequestPasswordReset: () => useRequestPasswordReset,
237
240
  useRequestPasswordResetForm: () => useRequestPasswordResetForm,
238
241
  useResetPassword: () => useResetPassword,
@@ -297,6 +300,15 @@ var EnumInviteStatus = /* @__PURE__ */ ((EnumInviteStatus2) => {
297
300
  EnumInviteStatus2["WAITING"] = "Waiting";
298
301
  return EnumInviteStatus2;
299
302
  })(EnumInviteStatus || {});
303
+ var EnumChatReportReason = /* @__PURE__ */ ((EnumChatReportReason2) => {
304
+ EnumChatReportReason2["INAPPROPRIATE_CONTENT"] = "Inappropriate_Content";
305
+ EnumChatReportReason2["HARASSMENT_OR_BULLYING"] = "Harassment_or_Bullying";
306
+ EnumChatReportReason2["HATE_SPEECH"] = "Hate_Speech";
307
+ EnumChatReportReason2["SPAM_OR_SCAM"] = "Spam_or_Scam";
308
+ EnumChatReportReason2["VIOLENCE_OR_DANGEROUS_BEHAVIOR"] = "Violence_or_Dangerous_Behavior";
309
+ EnumChatReportReason2["OTHER"] = "Other";
310
+ return EnumChatReportReason2;
311
+ })(EnumChatReportReason || {});
300
312
  var EnumChatType = /* @__PURE__ */ ((EnumChatType2) => {
301
313
  EnumChatType2["GROUP"] = "group";
302
314
  EnumChatType2["PRIVATE"] = "private";
@@ -3565,6 +3577,23 @@ var GET_CHATS_BY_REGION = import_client9.gql`
3565
3577
  }
3566
3578
  ${CHAT_FIELDS_FRAGMENT}
3567
3579
  `;
3580
+ var GET_REPORTED_CHAT_USERS = import_client9.gql`
3581
+ query getReportedChatUsers {
3582
+ reportedChatUsers {
3583
+ _id
3584
+ chatId
3585
+ createdAt
3586
+ reason {
3587
+ reasonType
3588
+ details
3589
+ }
3590
+ reportedUserId
3591
+ reporterUserId
3592
+ resolved
3593
+ updatedAt
3594
+ }
3595
+ }
3596
+ `;
3568
3597
 
3569
3598
  // src/graphql/mutations/chat.ts
3570
3599
  var SEND_CHAT_MESSAGE_MUTATION = import_client10.gql`
@@ -3612,6 +3641,13 @@ var MARK_CHAT_MESSAGES_SEEN_MUTATION = import_client10.gql`
3612
3641
  }
3613
3642
  ${CHAT_FIELDS_FRAGMENT}
3614
3643
  `;
3644
+ var REPORT_CHAT_USER_MUTATION = import_client10.gql`
3645
+ mutation reportChatUser($input: ReportChatUserInputType!) {
3646
+ reportChatUser(input: $input) {
3647
+ success
3648
+ }
3649
+ }
3650
+ `;
3615
3651
 
3616
3652
  // src/graphql/hooks/chat/hooksMutation.ts
3617
3653
  var useSendChatMessage = () => {
@@ -3697,6 +3733,12 @@ var useMarkChatMessagesSeen = () => {
3697
3733
  });
3698
3734
  return { error, loading, markChatMessagesSeen };
3699
3735
  };
3736
+ var useReportChatUser = () => {
3737
+ const [reportChatUser, { loading, error }] = (0, import_client11.useMutation)(
3738
+ REPORT_CHAT_USER_MUTATION
3739
+ );
3740
+ return { error, loading, reportChatUser };
3741
+ };
3700
3742
 
3701
3743
  // src/graphql/hooks/chat/hooksQuery.ts
3702
3744
  var import_client13 = require("@apollo/client");
@@ -3748,6 +3790,13 @@ var useGetChatsByRegion = (region) => {
3748
3790
  const chatsByRegion = data?.chatsByRegion || [];
3749
3791
  return { chatsByRegion, error, loading, refetch };
3750
3792
  };
3793
+ var useGetReportedChatUsers = () => {
3794
+ const { loading, error, data, refetch } = (0, import_client13.useQuery)(GET_REPORTED_CHAT_USERS, {
3795
+ fetchPolicy: "network-only"
3796
+ });
3797
+ const reportedChatUsers = data?.reportedChatUsers || [];
3798
+ return { error, loading, refetch, reportedChatUsers };
3799
+ };
3751
3800
 
3752
3801
  // src/graphql/hooks/contactUs.ts
3753
3802
  var import_client15 = require("@apollo/client");
@@ -6023,7 +6072,7 @@ var useLocationSearch = (googleApi) => {
6023
6072
  "https://places.googleapis.com/v1/places:autocomplete",
6024
6073
  {
6025
6074
  body: JSON.stringify({
6026
- input: text,
6075
+ input: `${text} New Zealand`,
6027
6076
  languageCode: "en",
6028
6077
  regionCode: "nz"
6029
6078
  }),
@@ -8034,6 +8083,7 @@ var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
8034
8083
  EnumAdStyle,
8035
8084
  EnumAdType,
8036
8085
  EnumBillingPeriod,
8086
+ EnumChatReportReason,
8037
8087
  EnumChatType,
8038
8088
  EnumEventDateStatus,
8039
8089
  EnumEventType,
@@ -8192,6 +8242,7 @@ var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
8192
8242
  useGetPostsByType,
8193
8243
  useGetRelation,
8194
8244
  useGetRelationByEventAndVendor,
8245
+ useGetReportedChatUsers,
8195
8246
  useGetResourceActivity,
8196
8247
  useGetResourceConnections,
8197
8248
  useGetSubscriptionPlans,
@@ -8231,6 +8282,7 @@ var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
8231
8282
  useRemoveUserGoingResource,
8232
8283
  useRemoveUserInterestResource,
8233
8284
  useRemoveUserPresentResource,
8285
+ useReportChatUser,
8234
8286
  useRequestPasswordReset,
8235
8287
  useRequestPasswordResetForm,
8236
8288
  useResetPassword,