@timardex/cluemart-shared 1.0.87 → 1.0.88
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 +19 -28
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +5 -5
- package/dist/graphql/index.d.ts +5 -5
- package/dist/graphql/index.mjs +19 -28
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/index.cjs +19 -28
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +5 -11
- package/dist/index.d.ts +5 -11
- package/dist/index.mjs +19 -28
- package/dist/index.mjs.map +1 -1
- package/dist/{notification-CmjfP3gD.d.mts → notification-Xc4qk09g.d.mts} +1 -7
- package/dist/{notification-CmjfP3gD.d.ts → notification-Xc4qk09g.d.ts} +1 -7
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -569,12 +569,6 @@ type CreateBulkNotificationInput = {
|
|
|
569
569
|
type?: EnumNotificationType;
|
|
570
570
|
data?: Record<string, unknown>;
|
|
571
571
|
};
|
|
572
|
-
type MarkNotificationReadInput = {
|
|
573
|
-
notificationIds: string[];
|
|
574
|
-
};
|
|
575
|
-
type MarkAllNotificationsReadInput = {
|
|
576
|
-
userId: string;
|
|
577
|
-
};
|
|
578
572
|
|
|
579
573
|
interface PosterInputType {
|
|
580
574
|
resourceId: string;
|
|
@@ -848,7 +842,7 @@ declare const useDeleteNotification: () => {
|
|
|
848
842
|
loading: boolean;
|
|
849
843
|
};
|
|
850
844
|
|
|
851
|
-
declare const useGetUserNotifications: (
|
|
845
|
+
declare const useGetUserNotifications: (limit?: number, offset?: number) => {
|
|
852
846
|
error: _apollo_client.ApolloError | undefined;
|
|
853
847
|
loading: boolean;
|
|
854
848
|
notifications: NotificationType[];
|
|
@@ -856,7 +850,7 @@ declare const useGetUserNotifications: (userId: string, limit?: number, offset?:
|
|
|
856
850
|
userNotifications: NotificationType[];
|
|
857
851
|
}>>;
|
|
858
852
|
};
|
|
859
|
-
declare const useGetNotificationCount: (
|
|
853
|
+
declare const useGetNotificationCount: () => {
|
|
860
854
|
error: _apollo_client.ApolloError | undefined;
|
|
861
855
|
loading: boolean;
|
|
862
856
|
notificationCount: NotificationCount;
|
|
@@ -865,12 +859,12 @@ declare const useGetNotificationCount: (userId: string) => {
|
|
|
865
859
|
}>>;
|
|
866
860
|
};
|
|
867
861
|
|
|
868
|
-
declare const useGetUserNotificationsSubscription: (
|
|
862
|
+
declare const useGetUserNotificationsSubscription: () => {
|
|
869
863
|
error: _apollo_client.ApolloError | undefined;
|
|
870
864
|
loading: boolean;
|
|
871
865
|
notifications: NotificationType[];
|
|
872
866
|
};
|
|
873
|
-
declare const useGetNotificationCountSubscription: (
|
|
867
|
+
declare const useGetNotificationCountSubscription: () => {
|
|
874
868
|
error: _apollo_client.ApolloError | undefined;
|
|
875
869
|
loading: boolean;
|
|
876
870
|
notificationCount: NotificationCount;
|
|
@@ -1271,4 +1265,4 @@ declare const availableRegionOptions: OptionItem[];
|
|
|
1271
1265
|
declare const paymentMethodOptions: OptionItem[];
|
|
1272
1266
|
declare function normalizeUrl(url: string): string;
|
|
1273
1267
|
|
|
1274
|
-
export { type AdminUpdateResourceType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatInput, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateLoginFormData, type CreateMarketFormData, type CreateMarketInfoFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateStallholderFormData, type CreateStallholderInfoFormData, type CreateTestersFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type DateTimeType, type DateTimeWithPriceType, EnumInviteStatus, EnumNotification, EnumNotificationType, EnumOSType, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumUserLicence, EnumUserRole, type FormDateField, type FormField, type GeocodeLocation, type ImageObjectType, ImageTypeEnum, type LocationType, type LoginFormData, type MapMultiLocation, type
|
|
1268
|
+
export { type AdminUpdateResourceType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatInput, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateLoginFormData, type CreateMarketFormData, type CreateMarketInfoFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateStallholderFormData, type CreateStallholderInfoFormData, type CreateTestersFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type DateTimeType, type DateTimeWithPriceType, EnumInviteStatus, EnumNotification, EnumNotificationType, EnumOSType, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumUserLicence, EnumUserRole, type FormDateField, type FormField, type GeocodeLocation, type ImageObjectType, ImageTypeEnum, type LocationType, type LoginFormData, type MapMultiLocation, type MarketFormData, type MarketInfoFormData, type MarketInfoType, type MarketType, type MarketWithConnectionDatesType, type NotificationCount, type NotificationType, type Nullable, type OptionItem, type PaymentInfoType, type PlacePrediction, type PosterInputType, type Region, type RegisterFormData, type RelationDate, type RelationType, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceConnectionsType, type ResourceImageType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, type SatllholderWithConnectionDatesType, type SocialMediaType, type StallType, type StallholderAttributes, type StallholderFormData, type StallholderInfoFormData, type StallholderInfoType, type StallholderLocation, type StallholderType, type Subcategory, type SubcategoryItems, type TesterType, type TestersFormData, USER_STORAGE_KEY, type UserFormData, type UserType, type ValidateVerificationTokenFormData, availableCategories, availableCityOptions, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, contactUsFields, darkColors, dateFormat, defaultMarketFormValues, defaultMarketInfoFormValues, defaultRegion, defaultStallholderFormValues, defaultStallholderInfoFormValues, fonts, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, marketBasicInfoFields, marketEndDateFields, marketInfo, marketInfoPaymentInfo, marketStartDateFields, normalizeUrl, packagingOptions, paymentMethodOptions, producedIngOptions, profileFields, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, sortDatesChronologically, stallTypeOptions, stallholderBasicInfoFields, stallholderElectricity, stallholderEndDateFields, stallholderFullAddress, stallholderGazebo, stallholderLocationDescription, stallholderMultiLocation, stallholderPackaging, stallholderPaymentMethod, stallholderPriceRange, stallholderProducedIn, stallholderStallSize, stallholderStartDateFields, stallholderTable, statusOptions, tagOptions, testersFields, timeFormat, truncateText, useAddParticipantToChat, useAddUserFavouriteResource, useAdminUpdateResourceType, useContactUs, useContactUsForm, useCreateBulkNotifications, useCreateChat, useCreateMarket, useCreateMarketInfo, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateStallholder, useCreateStallholderInfo, useCreateTester, useCreateUser, useDeleteChat, useDeleteMarket, useDeleteNotification, useDeleteRelation, useDeleteStallholder, useDeleteTester, useDeleteUser, useGetChat, useGetChatSubscription, useGetMarket, useGetMarketInfo, useGetMarketRelations, useGetMarkets, useGetMarketsByRegion, useGetMarketsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetRelation, useGetRelationByMarketAndStallholder, useGetResourceConnections, useGetStallholder, useGetStallholderInfo, useGetStallholderRelations, useGetStallholders, useGetStallholdersByRegion, useGetTester, useGetTesters, useGetUser, useGetUserChats, useGetUserFavourites, useGetUserMarkets, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserStallholder, useGetUsers, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, useMarketForm, useMarketInfoForm, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchMarkets, useSearchStallholders, useSendChatMessage, useStallholderForm, useStallholderInfoForm, useTestersForm, useUpdateMarket, useUpdateMarketInfo, useUpdateRelation, useUpdateStallholder, useUpdateStallholderInfo, useUpdateTester, useUpdateUser, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, validateVerificationTokenFields };
|
package/dist/index.d.ts
CHANGED
|
@@ -569,12 +569,6 @@ type CreateBulkNotificationInput = {
|
|
|
569
569
|
type?: EnumNotificationType;
|
|
570
570
|
data?: Record<string, unknown>;
|
|
571
571
|
};
|
|
572
|
-
type MarkNotificationReadInput = {
|
|
573
|
-
notificationIds: string[];
|
|
574
|
-
};
|
|
575
|
-
type MarkAllNotificationsReadInput = {
|
|
576
|
-
userId: string;
|
|
577
|
-
};
|
|
578
572
|
|
|
579
573
|
interface PosterInputType {
|
|
580
574
|
resourceId: string;
|
|
@@ -848,7 +842,7 @@ declare const useDeleteNotification: () => {
|
|
|
848
842
|
loading: boolean;
|
|
849
843
|
};
|
|
850
844
|
|
|
851
|
-
declare const useGetUserNotifications: (
|
|
845
|
+
declare const useGetUserNotifications: (limit?: number, offset?: number) => {
|
|
852
846
|
error: _apollo_client.ApolloError | undefined;
|
|
853
847
|
loading: boolean;
|
|
854
848
|
notifications: NotificationType[];
|
|
@@ -856,7 +850,7 @@ declare const useGetUserNotifications: (userId: string, limit?: number, offset?:
|
|
|
856
850
|
userNotifications: NotificationType[];
|
|
857
851
|
}>>;
|
|
858
852
|
};
|
|
859
|
-
declare const useGetNotificationCount: (
|
|
853
|
+
declare const useGetNotificationCount: () => {
|
|
860
854
|
error: _apollo_client.ApolloError | undefined;
|
|
861
855
|
loading: boolean;
|
|
862
856
|
notificationCount: NotificationCount;
|
|
@@ -865,12 +859,12 @@ declare const useGetNotificationCount: (userId: string) => {
|
|
|
865
859
|
}>>;
|
|
866
860
|
};
|
|
867
861
|
|
|
868
|
-
declare const useGetUserNotificationsSubscription: (
|
|
862
|
+
declare const useGetUserNotificationsSubscription: () => {
|
|
869
863
|
error: _apollo_client.ApolloError | undefined;
|
|
870
864
|
loading: boolean;
|
|
871
865
|
notifications: NotificationType[];
|
|
872
866
|
};
|
|
873
|
-
declare const useGetNotificationCountSubscription: (
|
|
867
|
+
declare const useGetNotificationCountSubscription: () => {
|
|
874
868
|
error: _apollo_client.ApolloError | undefined;
|
|
875
869
|
loading: boolean;
|
|
876
870
|
notificationCount: NotificationCount;
|
|
@@ -1271,4 +1265,4 @@ declare const availableRegionOptions: OptionItem[];
|
|
|
1271
1265
|
declare const paymentMethodOptions: OptionItem[];
|
|
1272
1266
|
declare function normalizeUrl(url: string): string;
|
|
1273
1267
|
|
|
1274
|
-
export { type AdminUpdateResourceType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatInput, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateLoginFormData, type CreateMarketFormData, type CreateMarketInfoFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateStallholderFormData, type CreateStallholderInfoFormData, type CreateTestersFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type DateTimeType, type DateTimeWithPriceType, EnumInviteStatus, EnumNotification, EnumNotificationType, EnumOSType, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumUserLicence, EnumUserRole, type FormDateField, type FormField, type GeocodeLocation, type ImageObjectType, ImageTypeEnum, type LocationType, type LoginFormData, type MapMultiLocation, type
|
|
1268
|
+
export { type AdminUpdateResourceType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatInput, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateLoginFormData, type CreateMarketFormData, type CreateMarketInfoFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateStallholderFormData, type CreateStallholderInfoFormData, type CreateTestersFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type DateTimeType, type DateTimeWithPriceType, EnumInviteStatus, EnumNotification, EnumNotificationType, EnumOSType, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumUserLicence, EnumUserRole, type FormDateField, type FormField, type GeocodeLocation, type ImageObjectType, ImageTypeEnum, type LocationType, type LoginFormData, type MapMultiLocation, type MarketFormData, type MarketInfoFormData, type MarketInfoType, type MarketType, type MarketWithConnectionDatesType, type NotificationCount, type NotificationType, type Nullable, type OptionItem, type PaymentInfoType, type PlacePrediction, type PosterInputType, type Region, type RegisterFormData, type RelationDate, type RelationType, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceConnectionsType, type ResourceImageType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, type SatllholderWithConnectionDatesType, type SocialMediaType, type StallType, type StallholderAttributes, type StallholderFormData, type StallholderInfoFormData, type StallholderInfoType, type StallholderLocation, type StallholderType, type Subcategory, type SubcategoryItems, type TesterType, type TestersFormData, USER_STORAGE_KEY, type UserFormData, type UserType, type ValidateVerificationTokenFormData, availableCategories, availableCityOptions, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, contactUsFields, darkColors, dateFormat, defaultMarketFormValues, defaultMarketInfoFormValues, defaultRegion, defaultStallholderFormValues, defaultStallholderInfoFormValues, fonts, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, marketBasicInfoFields, marketEndDateFields, marketInfo, marketInfoPaymentInfo, marketStartDateFields, normalizeUrl, packagingOptions, paymentMethodOptions, producedIngOptions, profileFields, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, sortDatesChronologically, stallTypeOptions, stallholderBasicInfoFields, stallholderElectricity, stallholderEndDateFields, stallholderFullAddress, stallholderGazebo, stallholderLocationDescription, stallholderMultiLocation, stallholderPackaging, stallholderPaymentMethod, stallholderPriceRange, stallholderProducedIn, stallholderStallSize, stallholderStartDateFields, stallholderTable, statusOptions, tagOptions, testersFields, timeFormat, truncateText, useAddParticipantToChat, useAddUserFavouriteResource, useAdminUpdateResourceType, useContactUs, useContactUsForm, useCreateBulkNotifications, useCreateChat, useCreateMarket, useCreateMarketInfo, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateStallholder, useCreateStallholderInfo, useCreateTester, useCreateUser, useDeleteChat, useDeleteMarket, useDeleteNotification, useDeleteRelation, useDeleteStallholder, useDeleteTester, useDeleteUser, useGetChat, useGetChatSubscription, useGetMarket, useGetMarketInfo, useGetMarketRelations, useGetMarkets, useGetMarketsByRegion, useGetMarketsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetRelation, useGetRelationByMarketAndStallholder, useGetResourceConnections, useGetStallholder, useGetStallholderInfo, useGetStallholderRelations, useGetStallholders, useGetStallholdersByRegion, useGetTester, useGetTesters, useGetUser, useGetUserChats, useGetUserFavourites, useGetUserMarkets, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserStallholder, useGetUsers, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, useMarketForm, useMarketInfoForm, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchMarkets, useSearchStallholders, useSendChatMessage, useStallholderForm, useStallholderInfoForm, useTestersForm, useUpdateMarket, useUpdateMarketInfo, useUpdateRelation, useUpdateStallholder, useUpdateStallholderInfo, useUpdateTester, useUpdateUser, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, validateVerificationTokenFields };
|
package/dist/index.mjs
CHANGED
|
@@ -2377,8 +2377,8 @@ var ADD_PARTICIPANT_TO_CHAT_MUTATION = gql7`
|
|
|
2377
2377
|
addParticipantToChat(_id: $_id, input: $input) {
|
|
2378
2378
|
...ChatFields
|
|
2379
2379
|
}
|
|
2380
|
-
${CHAT_FIELDS_FRAGMENT}
|
|
2381
2380
|
}
|
|
2381
|
+
${CHAT_FIELDS_FRAGMENT}
|
|
2382
2382
|
`;
|
|
2383
2383
|
var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = gql7`
|
|
2384
2384
|
mutation removeParticipantFromChat($_id: ID!, $input: ID!) {
|
|
@@ -2771,16 +2771,16 @@ var USER_NOTIFICATION_FRAGMENT = gql11`
|
|
|
2771
2771
|
}
|
|
2772
2772
|
`;
|
|
2773
2773
|
var GET_USER_NOTIFICATIONS = gql11`
|
|
2774
|
-
query getUserNotifications($
|
|
2775
|
-
userNotifications(
|
|
2774
|
+
query getUserNotifications($limit: Int, $offset: Int) {
|
|
2775
|
+
userNotifications(limit: $limit, offset: $offset) {
|
|
2776
2776
|
...UserNotificationFields
|
|
2777
2777
|
}
|
|
2778
2778
|
}
|
|
2779
2779
|
${USER_NOTIFICATION_FRAGMENT}
|
|
2780
2780
|
`;
|
|
2781
2781
|
var GET_NOTIFICATION_COUNT = gql11`
|
|
2782
|
-
query getNotificationCount
|
|
2783
|
-
notificationCount
|
|
2782
|
+
query getNotificationCount {
|
|
2783
|
+
notificationCount {
|
|
2784
2784
|
total
|
|
2785
2785
|
unread
|
|
2786
2786
|
}
|
|
@@ -2797,21 +2797,21 @@ var CREATE_BULK_NOTIFICATIONS = gql12`
|
|
|
2797
2797
|
${USER_NOTIFICATION_FRAGMENT}
|
|
2798
2798
|
`;
|
|
2799
2799
|
var MARK_NOTIFICATION_READ = gql12`
|
|
2800
|
-
mutation markNotificationRead($
|
|
2801
|
-
markNotificationRead(
|
|
2800
|
+
mutation markNotificationRead($_id: ID!) {
|
|
2801
|
+
markNotificationRead(_id: $_id) {
|
|
2802
2802
|
...UserNotificationFields
|
|
2803
2803
|
}
|
|
2804
2804
|
}
|
|
2805
2805
|
${USER_NOTIFICATION_FRAGMENT}
|
|
2806
2806
|
`;
|
|
2807
2807
|
var MARK_ALL_NOTIFICATIONS_READ = gql12`
|
|
2808
|
-
mutation markAllNotificationsRead
|
|
2809
|
-
markAllNotificationsRead
|
|
2808
|
+
mutation markAllNotificationsRead {
|
|
2809
|
+
markAllNotificationsRead
|
|
2810
2810
|
}
|
|
2811
2811
|
`;
|
|
2812
2812
|
var DELETE_NOTIFICATION = gql12`
|
|
2813
|
-
mutation deleteNotification($
|
|
2814
|
-
deleteNotification(
|
|
2813
|
+
mutation deleteNotification($_id: ID!) {
|
|
2814
|
+
deleteNotification(_id: $_id)
|
|
2815
2815
|
}
|
|
2816
2816
|
`;
|
|
2817
2817
|
|
|
@@ -2852,11 +2852,10 @@ var useDeleteNotification = () => {
|
|
|
2852
2852
|
|
|
2853
2853
|
// src/graphql/hooks/notifications/hooksQuery.ts
|
|
2854
2854
|
import { useQuery as useQuery3 } from "@apollo/client";
|
|
2855
|
-
var useGetUserNotifications = (
|
|
2855
|
+
var useGetUserNotifications = (limit, offset) => {
|
|
2856
2856
|
const { data, loading, error, refetch } = useQuery3(GET_USER_NOTIFICATIONS, {
|
|
2857
2857
|
fetchPolicy: "cache-and-network",
|
|
2858
|
-
|
|
2859
|
-
variables: { limit, offset, userId }
|
|
2858
|
+
variables: { limit, offset }
|
|
2860
2859
|
});
|
|
2861
2860
|
return {
|
|
2862
2861
|
error,
|
|
@@ -2865,11 +2864,9 @@ var useGetUserNotifications = (userId, limit, offset) => {
|
|
|
2865
2864
|
refetch
|
|
2866
2865
|
};
|
|
2867
2866
|
};
|
|
2868
|
-
var useGetNotificationCount = (
|
|
2867
|
+
var useGetNotificationCount = () => {
|
|
2869
2868
|
const { data, loading, error, refetch } = useQuery3(GET_NOTIFICATION_COUNT, {
|
|
2870
|
-
fetchPolicy: "cache-and-network"
|
|
2871
|
-
skip: !userId,
|
|
2872
|
-
variables: { userId }
|
|
2869
|
+
fetchPolicy: "cache-and-network"
|
|
2873
2870
|
});
|
|
2874
2871
|
return {
|
|
2875
2872
|
error,
|
|
@@ -2915,22 +2912,16 @@ var GET_NOTIFICATION_COUNT_SUBSCRIPTION = gql13`
|
|
|
2915
2912
|
`;
|
|
2916
2913
|
|
|
2917
2914
|
// src/graphql/hooks/notifications/hooksSubscription.ts
|
|
2918
|
-
var useGetUserNotificationsSubscription = (
|
|
2919
|
-
const { data, loading, error } = useSubscription2(GET_USER_NOTIFICATIONS_SUBSCRIPTION
|
|
2920
|
-
skip: !userId,
|
|
2921
|
-
variables: { userId }
|
|
2922
|
-
});
|
|
2915
|
+
var useGetUserNotificationsSubscription = () => {
|
|
2916
|
+
const { data, loading, error } = useSubscription2(GET_USER_NOTIFICATIONS_SUBSCRIPTION);
|
|
2923
2917
|
return {
|
|
2924
2918
|
error,
|
|
2925
2919
|
loading,
|
|
2926
2920
|
notifications: data?.getUserNotifications || []
|
|
2927
2921
|
};
|
|
2928
2922
|
};
|
|
2929
|
-
var useGetNotificationCountSubscription = (
|
|
2930
|
-
const { data, loading, error } = useSubscription2(GET_NOTIFICATION_COUNT_SUBSCRIPTION
|
|
2931
|
-
skip: !userId,
|
|
2932
|
-
variables: { userId }
|
|
2933
|
-
});
|
|
2923
|
+
var useGetNotificationCountSubscription = () => {
|
|
2924
|
+
const { data, loading, error } = useSubscription2(GET_NOTIFICATION_COUNT_SUBSCRIPTION);
|
|
2934
2925
|
return {
|
|
2935
2926
|
error,
|
|
2936
2927
|
loading,
|