@timardex/cluemart-shared 1.0.86 → 1.0.87

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.d.mts CHANGED
@@ -848,6 +848,23 @@ declare const useDeleteNotification: () => {
848
848
  loading: boolean;
849
849
  };
850
850
 
851
+ declare const useGetUserNotifications: (userId: string, limit?: number, offset?: number) => {
852
+ error: _apollo_client.ApolloError | undefined;
853
+ loading: boolean;
854
+ notifications: NotificationType[];
855
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
856
+ userNotifications: NotificationType[];
857
+ }>>;
858
+ };
859
+ declare const useGetNotificationCount: (userId: string) => {
860
+ error: _apollo_client.ApolloError | undefined;
861
+ loading: boolean;
862
+ notificationCount: NotificationCount;
863
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
864
+ notificationCount: NotificationCount;
865
+ }>>;
866
+ };
867
+
851
868
  declare const useGetUserNotificationsSubscription: (userId: string) => {
852
869
  error: _apollo_client.ApolloError | undefined;
853
870
  loading: boolean;
@@ -1254,4 +1271,4 @@ declare const availableRegionOptions: OptionItem[];
1254
1271
  declare const paymentMethodOptions: OptionItem[];
1255
1272
  declare function normalizeUrl(url: string): string;
1256
1273
 
1257
- 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 MarkAllNotificationsReadInput, type MarkNotificationReadInput, 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, useGetNotificationCountSubscription, useGetRelation, useGetRelationByMarketAndStallholder, useGetResourceConnections, useGetStallholder, useGetStallholderInfo, useGetStallholderRelations, useGetStallholders, useGetStallholdersByRegion, useGetTester, useGetTesters, useGetUser, useGetUserChats, useGetUserFavourites, useGetUserMarkets, 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 };
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 MarkAllNotificationsReadInput, type MarkNotificationReadInput, 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
@@ -848,6 +848,23 @@ declare const useDeleteNotification: () => {
848
848
  loading: boolean;
849
849
  };
850
850
 
851
+ declare const useGetUserNotifications: (userId: string, limit?: number, offset?: number) => {
852
+ error: _apollo_client.ApolloError | undefined;
853
+ loading: boolean;
854
+ notifications: NotificationType[];
855
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
856
+ userNotifications: NotificationType[];
857
+ }>>;
858
+ };
859
+ declare const useGetNotificationCount: (userId: string) => {
860
+ error: _apollo_client.ApolloError | undefined;
861
+ loading: boolean;
862
+ notificationCount: NotificationCount;
863
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
864
+ notificationCount: NotificationCount;
865
+ }>>;
866
+ };
867
+
851
868
  declare const useGetUserNotificationsSubscription: (userId: string) => {
852
869
  error: _apollo_client.ApolloError | undefined;
853
870
  loading: boolean;
@@ -1254,4 +1271,4 @@ declare const availableRegionOptions: OptionItem[];
1254
1271
  declare const paymentMethodOptions: OptionItem[];
1255
1272
  declare function normalizeUrl(url: string): string;
1256
1273
 
1257
- 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 MarkAllNotificationsReadInput, type MarkNotificationReadInput, 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, useGetNotificationCountSubscription, useGetRelation, useGetRelationByMarketAndStallholder, useGetResourceConnections, useGetStallholder, useGetStallholderInfo, useGetStallholderRelations, useGetStallholders, useGetStallholdersByRegion, useGetTester, useGetTesters, useGetUser, useGetUserChats, useGetUserFavourites, useGetUserMarkets, 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 };
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 MarkAllNotificationsReadInput, type MarkNotificationReadInput, 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
@@ -2771,7 +2771,7 @@ var USER_NOTIFICATION_FRAGMENT = gql11`
2771
2771
  }
2772
2772
  `;
2773
2773
  var GET_USER_NOTIFICATIONS = gql11`
2774
- query getUserNotifications($userId: String!, $limit: Int, $offset: Int) {
2774
+ query getUserNotifications($userId: ID!, $limit: Int, $offset: Int) {
2775
2775
  userNotifications(userId: $userId, limit: $limit, offset: $offset) {
2776
2776
  ...UserNotificationFields
2777
2777
  }
@@ -2779,7 +2779,7 @@ var GET_USER_NOTIFICATIONS = gql11`
2779
2779
  ${USER_NOTIFICATION_FRAGMENT}
2780
2780
  `;
2781
2781
  var GET_NOTIFICATION_COUNT = gql11`
2782
- query getNotificationCount($userId: String!) {
2782
+ query getNotificationCount($userId: ID!) {
2783
2783
  notificationCount(userId: $userId) {
2784
2784
  total
2785
2785
  unread
@@ -2810,8 +2810,8 @@ var MARK_ALL_NOTIFICATIONS_READ = gql12`
2810
2810
  }
2811
2811
  `;
2812
2812
  var DELETE_NOTIFICATION = gql12`
2813
- mutation deleteNotification($_id: ID!) {
2814
- deleteNotification(_id: $_id)
2813
+ mutation deleteNotification($input: DeleteNotificationInput!) {
2814
+ deleteNotification(input: $input)
2815
2815
  }
2816
2816
  `;
2817
2817
 
@@ -2850,6 +2850,35 @@ var useDeleteNotification = () => {
2850
2850
  return { deleteNotification, error, loading };
2851
2851
  };
2852
2852
 
2853
+ // src/graphql/hooks/notifications/hooksQuery.ts
2854
+ import { useQuery as useQuery3 } from "@apollo/client";
2855
+ var useGetUserNotifications = (userId, limit, offset) => {
2856
+ const { data, loading, error, refetch } = useQuery3(GET_USER_NOTIFICATIONS, {
2857
+ fetchPolicy: "cache-and-network",
2858
+ skip: !userId,
2859
+ variables: { limit, offset, userId }
2860
+ });
2861
+ return {
2862
+ error,
2863
+ loading,
2864
+ notifications: data?.userNotifications || [],
2865
+ refetch
2866
+ };
2867
+ };
2868
+ var useGetNotificationCount = (userId) => {
2869
+ const { data, loading, error, refetch } = useQuery3(GET_NOTIFICATION_COUNT, {
2870
+ fetchPolicy: "cache-and-network",
2871
+ skip: !userId,
2872
+ variables: { userId }
2873
+ });
2874
+ return {
2875
+ error,
2876
+ loading,
2877
+ notificationCount: data?.notificationCount || { total: 0, unread: 0 },
2878
+ refetch
2879
+ };
2880
+ };
2881
+
2853
2882
  // src/graphql/hooks/notifications/hooksSubscription.ts
2854
2883
  import { useSubscription as useSubscription2 } from "@apollo/client";
2855
2884
 
@@ -2869,7 +2898,7 @@ var USER_NOTIFICATION_FRAGMENT2 = gql13`
2869
2898
  }
2870
2899
  `;
2871
2900
  var GET_USER_NOTIFICATIONS_SUBSCRIPTION = gql13`
2872
- subscription getUserNotifications($userId: String!) {
2901
+ subscription getUserNotifications($userId: ID!) {
2873
2902
  getUserNotifications(userId: $userId) {
2874
2903
  ...UserNotificationFields
2875
2904
  }
@@ -2877,7 +2906,7 @@ var GET_USER_NOTIFICATIONS_SUBSCRIPTION = gql13`
2877
2906
  ${USER_NOTIFICATION_FRAGMENT2}
2878
2907
  `;
2879
2908
  var GET_NOTIFICATION_COUNT_SUBSCRIPTION = gql13`
2880
- subscription getNotificationCount($userId: String!) {
2909
+ subscription getNotificationCount($userId: ID!) {
2881
2910
  getNotificationCount(userId: $userId) {
2882
2911
  total
2883
2912
  unread
@@ -3304,9 +3333,9 @@ var useDeleteRelation = () => {
3304
3333
  };
3305
3334
 
3306
3335
  // src/graphql/hooks/relation/hooksQuery.ts
3307
- import { useQuery as useQuery3 } from "@apollo/client";
3336
+ import { useQuery as useQuery4 } from "@apollo/client";
3308
3337
  var useGetRelation = (id) => {
3309
- const { loading, error, data, refetch } = useQuery3(GET_RELATION, {
3338
+ const { loading, error, data, refetch } = useQuery4(GET_RELATION, {
3310
3339
  fetchPolicy: "network-only",
3311
3340
  skip: id === "",
3312
3341
  variables: { id }
@@ -3315,7 +3344,7 @@ var useGetRelation = (id) => {
3315
3344
  return { error, loading, refetch, relation };
3316
3345
  };
3317
3346
  var useGetRelationByMarketAndStallholder = (marketId, stallholderId) => {
3318
- const { loading, error, data, refetch } = useQuery3(
3347
+ const { loading, error, data, refetch } = useQuery4(
3319
3348
  GET_RELATION_BY_MARKET_AND_STALLHOLDER,
3320
3349
  {
3321
3350
  fetchPolicy: "network-only",
@@ -3327,7 +3356,7 @@ var useGetRelationByMarketAndStallholder = (marketId, stallholderId) => {
3327
3356
  return { error, loading, refetch, relationByMarketAndStallholder };
3328
3357
  };
3329
3358
  var useGetMarketRelations = (marketId) => {
3330
- const { loading, error, data, refetch } = useQuery3(GET_MARKET_RELATIONS, {
3359
+ const { loading, error, data, refetch } = useQuery4(GET_MARKET_RELATIONS, {
3331
3360
  fetchPolicy: "network-only",
3332
3361
  skip: marketId === "",
3333
3362
  variables: { marketId }
@@ -3336,7 +3365,7 @@ var useGetMarketRelations = (marketId) => {
3336
3365
  return { error, loading, marketRelations, refetch };
3337
3366
  };
3338
3367
  var useGetStallholderRelations = (stallholderId) => {
3339
- const { loading, error, data, refetch } = useQuery3(
3368
+ const { loading, error, data, refetch } = useQuery4(
3340
3369
  GET_STALLHOLDER_RELATIONS,
3341
3370
  {
3342
3371
  fetchPolicy: "network-only",
@@ -3348,7 +3377,7 @@ var useGetStallholderRelations = (stallholderId) => {
3348
3377
  return { error, loading, refetch, stallholderRelations };
3349
3378
  };
3350
3379
  var useGetResourceConnections = (resourceId, resourceType) => {
3351
- const { loading, error, data, refetch } = useQuery3(GET_RESOURCE_CONNECTIONS, {
3380
+ const { loading, error, data, refetch } = useQuery4(GET_RESOURCE_CONNECTIONS, {
3352
3381
  fetchPolicy: "network-only",
3353
3382
  variables: { resourceId, resourceType }
3354
3383
  });
@@ -3482,9 +3511,9 @@ var useUpdateStallholderInfo = () => {
3482
3511
  };
3483
3512
 
3484
3513
  // src/graphql/hooks/stallholder/hooksQuery.ts
3485
- import { useQuery as useQuery4 } from "@apollo/client";
3514
+ import { useQuery as useQuery5 } from "@apollo/client";
3486
3515
  var useGetStallholders = () => {
3487
- const { loading, error, data, refetch } = useQuery4(GET_STALLHOLDERS, {
3516
+ const { loading, error, data, refetch } = useQuery5(GET_STALLHOLDERS, {
3488
3517
  fetchPolicy: "network-only"
3489
3518
  });
3490
3519
  const stallholders = data?.stallholders;
@@ -3496,7 +3525,7 @@ var useGetStallholders = () => {
3496
3525
  };
3497
3526
  };
3498
3527
  var useGetStallholder = (_id) => {
3499
- const { loading, error, data, refetch } = useQuery4(GET_STALLHOLDER, {
3528
+ const { loading, error, data, refetch } = useQuery5(GET_STALLHOLDER, {
3500
3529
  fetchPolicy: "network-only",
3501
3530
  skip: !_id,
3502
3531
  variables: { _id }
@@ -3505,7 +3534,7 @@ var useGetStallholder = (_id) => {
3505
3534
  return { error, loading, refetch, stallholder };
3506
3535
  };
3507
3536
  var useGetStallholdersByRegion = (region) => {
3508
- const { loading, error, data, refetch } = useQuery4(
3537
+ const { loading, error, data, refetch } = useQuery5(
3509
3538
  GET_STALLHOLDERS_BY_REGION,
3510
3539
  {
3511
3540
  fetchPolicy: "no-cache",
@@ -3517,7 +3546,7 @@ var useGetStallholdersByRegion = (region) => {
3517
3546
  return { error, loading, refetch, stallholdersByRegion };
3518
3547
  };
3519
3548
  var useSearchStallholders = (search, region) => {
3520
- const { loading, error, data, refetch } = useQuery4(SEARCH_STALLHOLDERS, {
3549
+ const { loading, error, data, refetch } = useQuery5(SEARCH_STALLHOLDERS, {
3521
3550
  fetchPolicy: "network-only",
3522
3551
  skip: search.length < 3,
3523
3552
  variables: { region, search }
@@ -3526,7 +3555,7 @@ var useSearchStallholders = (search, region) => {
3526
3555
  return { error, loading, refetch, stallholderSearch };
3527
3556
  };
3528
3557
  var useGetStallholderInfo = (stallholderId) => {
3529
- const { loading, error, data, refetch } = useQuery4(GET_STALLHOLDER_INFO, {
3558
+ const { loading, error, data, refetch } = useQuery5(GET_STALLHOLDER_INFO, {
3530
3559
  fetchPolicy: "network-only",
3531
3560
  skip: !stallholderId,
3532
3561
  variables: { stallholderId }
@@ -3632,9 +3661,9 @@ var useDeleteTester = () => {
3632
3661
  };
3633
3662
 
3634
3663
  // src/graphql/hooks/testers/hooksQuery.ts
3635
- import { useQuery as useQuery5 } from "@apollo/client";
3664
+ import { useQuery as useQuery6 } from "@apollo/client";
3636
3665
  var useGetTesters = () => {
3637
- const { data, loading, error, refetch } = useQuery5(GET_TESTERS);
3666
+ const { data, loading, error, refetch } = useQuery6(GET_TESTERS);
3638
3667
  const testers = data?.testers;
3639
3668
  return {
3640
3669
  error,
@@ -3644,7 +3673,7 @@ var useGetTesters = () => {
3644
3673
  };
3645
3674
  };
3646
3675
  var useGetTester = (_id) => {
3647
- const { data, loading, error, refetch } = useQuery5(GET_TESTER, {
3676
+ const { data, loading, error, refetch } = useQuery6(GET_TESTER, {
3648
3677
  skip: !_id,
3649
3678
  variables: { _id }
3650
3679
  });
@@ -3753,37 +3782,37 @@ var useRemoveUserFavouriteResource = () => {
3753
3782
  };
3754
3783
 
3755
3784
  // src/graphql/hooks/user/hooksQuery.ts
3756
- import { useQuery as useQuery6 } from "@apollo/client";
3785
+ import { useQuery as useQuery7 } from "@apollo/client";
3757
3786
  var useGetUsers = () => {
3758
- const { loading, error, data, refetch } = useQuery6(GET_USERS, {
3787
+ const { loading, error, data, refetch } = useQuery7(GET_USERS, {
3759
3788
  fetchPolicy: "network-only"
3760
3789
  });
3761
3790
  const users = data?.users;
3762
3791
  return { error, loading, refetch, users };
3763
3792
  };
3764
3793
  var useGetUser = (_id) => {
3765
- const { loading, error, data, refetch } = useQuery6(GET_USER, {
3794
+ const { loading, error, data, refetch } = useQuery7(GET_USER, {
3766
3795
  variables: { _id }
3767
3796
  });
3768
3797
  const user = data?.user;
3769
3798
  return { error, loading, refetch, user };
3770
3799
  };
3771
3800
  var useGetUserMarkets = () => {
3772
- const { loading, error, data, refetch } = useQuery6(GET_USER_MARKETS, {
3801
+ const { loading, error, data, refetch } = useQuery7(GET_USER_MARKETS, {
3773
3802
  fetchPolicy: "network-only"
3774
3803
  });
3775
3804
  const userMarkets = data?.userMarkets;
3776
3805
  return { error, loading, refetch, userMarkets };
3777
3806
  };
3778
3807
  var useGetUserStallholder = () => {
3779
- const { loading, error, data, refetch } = useQuery6(GET_USER_STALLHOLDER, {
3808
+ const { loading, error, data, refetch } = useQuery7(GET_USER_STALLHOLDER, {
3780
3809
  fetchPolicy: "network-only"
3781
3810
  });
3782
3811
  const userStallholder = data?.userStallholder;
3783
3812
  return { error, loading, refetch, userStallholder };
3784
3813
  };
3785
3814
  var useGetUserFavourites = () => {
3786
- const { loading, error, data, refetch } = useQuery6(GET_USER_FAVOURITES, {
3815
+ const { loading, error, data, refetch } = useQuery7(GET_USER_FAVOURITES, {
3787
3816
  fetchPolicy: "network-only"
3788
3817
  });
3789
3818
  const markets = data?.userFavourites.markets;
@@ -5140,6 +5169,7 @@ export {
5140
5169
  useGetMarkets,
5141
5170
  useGetMarketsByRegion,
5142
5171
  useGetMarketsNearMe,
5172
+ useGetNotificationCount,
5143
5173
  useGetNotificationCountSubscription,
5144
5174
  useGetRelation,
5145
5175
  useGetRelationByMarketAndStallholder,
@@ -5155,6 +5185,7 @@ export {
5155
5185
  useGetUserChats,
5156
5186
  useGetUserFavourites,
5157
5187
  useGetUserMarkets,
5188
+ useGetUserNotifications,
5158
5189
  useGetUserNotificationsSubscription,
5159
5190
  useGetUserStallholder,
5160
5191
  useGetUsers,