@timardex/cluemart-shared 1.0.89 → 1.0.91

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.
package/dist/index.mjs CHANGED
@@ -2826,7 +2826,10 @@ var useMarkNotificationRead = () => {
2826
2826
  const [markNotificationRead, { loading, error }] = useMutation6(
2827
2827
  MARK_NOTIFICATION_READ,
2828
2828
  {
2829
- refetchQueries: [{ query: GET_USER_NOTIFICATIONS }]
2829
+ refetchQueries: [
2830
+ { query: GET_USER_NOTIFICATIONS },
2831
+ { query: GET_NOTIFICATION_COUNT }
2832
+ ]
2830
2833
  }
2831
2834
  );
2832
2835
  return { error, loading, markNotificationRead };
@@ -2835,7 +2838,10 @@ var useMarkAllNotificationsRead = () => {
2835
2838
  const [markAllNotificationsRead, { loading, error }] = useMutation6(
2836
2839
  MARK_ALL_NOTIFICATIONS_READ,
2837
2840
  {
2838
- refetchQueries: [{ query: GET_USER_NOTIFICATIONS }]
2841
+ refetchQueries: [
2842
+ { query: GET_USER_NOTIFICATIONS },
2843
+ { query: GET_NOTIFICATION_COUNT }
2844
+ ]
2839
2845
  }
2840
2846
  );
2841
2847
  return { error, loading, markAllNotificationsRead };
@@ -2844,7 +2850,10 @@ var useDeleteNotification = () => {
2844
2850
  const [deleteNotification, { loading, error }] = useMutation6(
2845
2851
  DELETE_NOTIFICATION,
2846
2852
  {
2847
- refetchQueries: [{ query: GET_USER_NOTIFICATIONS }]
2853
+ refetchQueries: [
2854
+ { query: GET_USER_NOTIFICATIONS },
2855
+ { query: GET_NOTIFICATION_COUNT }
2856
+ ]
2848
2857
  }
2849
2858
  );
2850
2859
  return { deleteNotification, error, loading };
@@ -2895,7 +2904,7 @@ var USER_NOTIFICATION_FRAGMENT2 = gql13`
2895
2904
  }
2896
2905
  `;
2897
2906
  var GET_USER_NOTIFICATIONS_SUBSCRIPTION = gql13`
2898
- subscription getUserNotifications() {
2907
+ subscription {
2899
2908
  getUserNotifications {
2900
2909
  ...UserNotificationFields
2901
2910
  }
@@ -2903,8 +2912,8 @@ var GET_USER_NOTIFICATIONS_SUBSCRIPTION = gql13`
2903
2912
  ${USER_NOTIFICATION_FRAGMENT2}
2904
2913
  `;
2905
2914
  var GET_NOTIFICATION_COUNT_SUBSCRIPTION = gql13`
2906
- subscription getNotificationCount() {
2907
- getNotificationCount{
2915
+ subscription {
2916
+ getNotificationCount {
2908
2917
  total
2909
2918
  unread
2910
2919
  }