@timardex/cluemart-shared 1.0.91 → 1.0.92
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/graphql/index.cjs +9 -25
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.mjs +9 -25
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/index.cjs +9 -25
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +9 -25
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2824,38 +2824,18 @@ var useCreateBulkNotifications = () => {
|
|
|
2824
2824
|
};
|
|
2825
2825
|
var useMarkNotificationRead = () => {
|
|
2826
2826
|
const [markNotificationRead, { loading, error }] = useMutation6(
|
|
2827
|
-
MARK_NOTIFICATION_READ
|
|
2828
|
-
{
|
|
2829
|
-
refetchQueries: [
|
|
2830
|
-
{ query: GET_USER_NOTIFICATIONS },
|
|
2831
|
-
{ query: GET_NOTIFICATION_COUNT }
|
|
2832
|
-
]
|
|
2833
|
-
}
|
|
2827
|
+
MARK_NOTIFICATION_READ
|
|
2834
2828
|
);
|
|
2835
2829
|
return { error, loading, markNotificationRead };
|
|
2836
2830
|
};
|
|
2837
2831
|
var useMarkAllNotificationsRead = () => {
|
|
2838
2832
|
const [markAllNotificationsRead, { loading, error }] = useMutation6(
|
|
2839
|
-
MARK_ALL_NOTIFICATIONS_READ
|
|
2840
|
-
{
|
|
2841
|
-
refetchQueries: [
|
|
2842
|
-
{ query: GET_USER_NOTIFICATIONS },
|
|
2843
|
-
{ query: GET_NOTIFICATION_COUNT }
|
|
2844
|
-
]
|
|
2845
|
-
}
|
|
2833
|
+
MARK_ALL_NOTIFICATIONS_READ
|
|
2846
2834
|
);
|
|
2847
2835
|
return { error, loading, markAllNotificationsRead };
|
|
2848
2836
|
};
|
|
2849
2837
|
var useDeleteNotification = () => {
|
|
2850
|
-
const [deleteNotification, { loading, error }] = useMutation6(
|
|
2851
|
-
DELETE_NOTIFICATION,
|
|
2852
|
-
{
|
|
2853
|
-
refetchQueries: [
|
|
2854
|
-
{ query: GET_USER_NOTIFICATIONS },
|
|
2855
|
-
{ query: GET_NOTIFICATION_COUNT }
|
|
2856
|
-
]
|
|
2857
|
-
}
|
|
2858
|
-
);
|
|
2838
|
+
const [deleteNotification, { loading, error }] = useMutation6(DELETE_NOTIFICATION);
|
|
2859
2839
|
return { deleteNotification, error, loading };
|
|
2860
2840
|
};
|
|
2861
2841
|
|
|
@@ -2922,7 +2902,9 @@ var GET_NOTIFICATION_COUNT_SUBSCRIPTION = gql13`
|
|
|
2922
2902
|
|
|
2923
2903
|
// src/graphql/hooks/notifications/hooksSubscription.ts
|
|
2924
2904
|
var useGetUserNotificationsSubscription = () => {
|
|
2925
|
-
const { data, loading, error } = useSubscription2(GET_USER_NOTIFICATIONS_SUBSCRIPTION
|
|
2905
|
+
const { data, loading, error } = useSubscription2(GET_USER_NOTIFICATIONS_SUBSCRIPTION, {
|
|
2906
|
+
shouldResubscribe: true
|
|
2907
|
+
});
|
|
2926
2908
|
return {
|
|
2927
2909
|
error,
|
|
2928
2910
|
loading,
|
|
@@ -2930,7 +2912,9 @@ var useGetUserNotificationsSubscription = () => {
|
|
|
2930
2912
|
};
|
|
2931
2913
|
};
|
|
2932
2914
|
var useGetNotificationCountSubscription = () => {
|
|
2933
|
-
const { data, loading, error } = useSubscription2(GET_NOTIFICATION_COUNT_SUBSCRIPTION
|
|
2915
|
+
const { data, loading, error } = useSubscription2(GET_NOTIFICATION_COUNT_SUBSCRIPTION, {
|
|
2916
|
+
shouldResubscribe: true
|
|
2917
|
+
});
|
|
2934
2918
|
return {
|
|
2935
2919
|
error,
|
|
2936
2920
|
loading,
|