@timardex/cluemart-shared 1.0.82 → 1.0.83

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
@@ -544,42 +544,44 @@ interface CreateContactUsFormData {
544
544
  watch: UseFormWatch<ContactUsFormData>;
545
545
  }
546
546
 
547
- type NotificationTypeMap = "market" | "stallholder" | "relation" | "chat" | "system";
548
- interface NotificationType {
547
+ declare enum EnumNotificationType {
548
+ MARKET = "market",
549
+ STALLHOLDER = "stallholder",
550
+ RELATION = "relation",
551
+ CHAT = "chat",
552
+ SYSTEM = "system"
553
+ }
554
+ type NotificationType = {
549
555
  id: string;
550
556
  userId: string;
551
557
  title: string;
552
558
  message: string;
553
- type: NotificationTypeMap;
559
+ type: EnumNotificationType;
554
560
  isRead: boolean;
555
561
  data?: Record<string, unknown>;
556
562
  createdAt: string;
557
563
  updatedAt: string;
558
- }
559
- interface NotificationCount {
564
+ };
565
+ type NotificationCount = {
560
566
  total: number;
561
567
  unread: number;
562
- }
563
- interface CreateNotificationInput {
568
+ };
569
+ type CreateNotificationInput = {
564
570
  userId: string;
565
571
  title: string;
566
572
  message: string;
567
- type?: NotificationTypeMap;
573
+ type?: EnumNotificationType;
568
574
  data?: Record<string, unknown>;
569
- }
570
- interface CreateBulkNotificationInput {
575
+ };
576
+ type CreateBulkNotificationInput = Omit<CreateNotificationInput, "userId"> & {
571
577
  userIds: string[];
572
- title: string;
573
- message: string;
574
- type?: NotificationTypeMap;
575
- data?: Record<string, unknown>;
576
- }
577
- interface MarkNotificationReadInput {
578
+ };
579
+ type MarkNotificationReadInput = {
578
580
  notificationIds: string[];
579
- }
580
- interface MarkAllNotificationsReadInput {
581
+ };
582
+ type MarkAllNotificationsReadInput = {
581
583
  userId: string;
582
- }
584
+ };
583
585
 
584
586
  interface PosterInputType {
585
587
  resourceId: string;
@@ -832,6 +834,46 @@ declare const useGetMarketInfo: (marketId: string) => {
832
834
  refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
833
835
  };
834
836
 
837
+ declare const useCreateNotification: () => {
838
+ createNotification: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
839
+ error: _apollo_client.ApolloError | undefined;
840
+ loading: boolean;
841
+ };
842
+ declare const useCreateBulkNotifications: () => {
843
+ createBulkNotifications: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
844
+ error: _apollo_client.ApolloError | undefined;
845
+ loading: boolean;
846
+ };
847
+ declare const useMarkNotificationRead: () => {
848
+ error: _apollo_client.ApolloError | undefined;
849
+ loading: boolean;
850
+ markNotificationRead: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
851
+ };
852
+ declare const useMarkAllNotificationsRead: () => {
853
+ error: _apollo_client.ApolloError | undefined;
854
+ loading: boolean;
855
+ markAllNotificationsRead: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
856
+ };
857
+
858
+ declare const useGetUserNotifications: (userId: string, limit?: number, offset?: number, isRead?: boolean) => {
859
+ error: _apollo_client.ApolloError | undefined;
860
+ loading: boolean;
861
+ notifications: NotificationType[];
862
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
863
+ };
864
+ declare const useGetUnreadNotifications: (userId: string, limit?: number) => {
865
+ error: _apollo_client.ApolloError | undefined;
866
+ loading: boolean;
867
+ notifications: NotificationType[];
868
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
869
+ };
870
+ declare const useGetNotificationCount: (userId: string) => {
871
+ error: _apollo_client.ApolloError | undefined;
872
+ loading: boolean;
873
+ notificationCount: NotificationCount;
874
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
875
+ };
876
+
835
877
  declare const useCreatePoster: () => {
836
878
  createPoster: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
837
879
  error: _apollo_client.ApolloError | undefined;
@@ -1038,34 +1080,6 @@ declare const useGetUserFavourites: () => {
1038
1080
  stallholders: StallholderType[];
1039
1081
  };
1040
1082
  };
1041
- declare const useGetUserNotifications: () => {
1042
- error: _apollo_client.ApolloError | undefined;
1043
- loading: boolean;
1044
- refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
1045
- userNotifications: boolean;
1046
- };
1047
-
1048
- declare const useNotifications: (userId: string) => {
1049
- notifications: any;
1050
- count: any;
1051
- unreadNotifications: any;
1052
- notificationsLoading: boolean;
1053
- countLoading: boolean;
1054
- unreadLoading: boolean;
1055
- createLoading: boolean;
1056
- createBulkLoading: boolean;
1057
- markReadLoading: boolean;
1058
- markAllReadLoading: boolean;
1059
- notificationsError: _apollo_client.ApolloError | undefined;
1060
- countError: _apollo_client.ApolloError | undefined;
1061
- unreadError: _apollo_client.ApolloError | undefined;
1062
- createNotification: (input: CreateNotificationInput) => Promise<_apollo_client.FetchResult<any>>;
1063
- createBulkNotifications: (input: CreateBulkNotificationInput) => Promise<_apollo_client.FetchResult<any>>;
1064
- markNotificationRead: (input: MarkNotificationReadInput) => Promise<_apollo_client.FetchResult<any>>;
1065
- markAllNotificationsRead: (input: MarkAllNotificationsReadInput) => Promise<_apollo_client.FetchResult<any>>;
1066
- refetchAll: () => void;
1067
- invalidateCache: () => void;
1068
- };
1069
1083
 
1070
1084
  declare const GET_CHAT_MESSAGE: _apollo_client.DocumentNode;
1071
1085
 
@@ -1257,4 +1271,4 @@ declare const availableRegionOptions: OptionItem[];
1257
1271
  declare const paymentMethodOptions: OptionItem[];
1258
1272
  declare function normalizeUrl(url: string): string;
1259
1273
 
1260
- 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 CreateNotificationInput, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateStallholderFormData, type CreateStallholderInfoFormData, type CreateTestersFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type DateTimeType, type DateTimeWithPriceType, EnumInviteStatus, EnumNotification, EnumOSType, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, EnumResourceTypeIcon, EnumSocialMedia, EnumUserLicence, EnumUserRole, type FormDateField, type FormField, GET_CHAT_MESSAGE, 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 NotificationTypeMap, 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, useCreateChat, useCreateMarket, useCreateMarketInfo, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateStallholder, useCreateStallholderInfo, useCreateTester, useCreateUser, useDeleteChat, useDeleteMarket, useDeleteRelation, useDeleteStallholder, useDeleteTester, useDeleteUser, useGetChat, useGetChatSubscription, useGetMarket, useGetMarketInfo, useGetMarketRelations, useGetMarkets, useGetMarketsByRegion, useGetMarketsNearMe, useGetRelation, useGetRelationByMarketAndStallholder, useGetResourceConnections, useGetStallholder, useGetStallholderInfo, useGetStallholderRelations, useGetStallholders, useGetStallholdersByRegion, useGetTester, useGetTesters, useGetUser, useGetUserChats, useGetUserFavourites, useGetUserMarkets, useGetUserNotifications, useGetUserStallholder, useGetUsers, useLocationSearch, useLogin, useLoginForm, useLogout, useMarketForm, useMarketInfoForm, useNotifications, 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 CreateNotificationInput, 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, EnumResourceTypeIcon, EnumSocialMedia, EnumUserLicence, EnumUserRole, type FormDateField, type FormField, GET_CHAT_MESSAGE, 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, useCreateNotification, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateStallholder, useCreateStallholderInfo, useCreateTester, useCreateUser, useDeleteChat, useDeleteMarket, useDeleteRelation, useDeleteStallholder, useDeleteTester, useDeleteUser, useGetChat, useGetChatSubscription, useGetMarket, useGetMarketInfo, useGetMarketRelations, useGetMarkets, useGetMarketsByRegion, useGetMarketsNearMe, useGetNotificationCount, useGetRelation, useGetRelationByMarketAndStallholder, useGetResourceConnections, useGetStallholder, useGetStallholderInfo, useGetStallholderRelations, useGetStallholders, useGetStallholdersByRegion, useGetTester, useGetTesters, useGetUnreadNotifications, useGetUser, useGetUserChats, useGetUserFavourites, useGetUserMarkets, useGetUserNotifications, 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
@@ -544,42 +544,44 @@ interface CreateContactUsFormData {
544
544
  watch: UseFormWatch<ContactUsFormData>;
545
545
  }
546
546
 
547
- type NotificationTypeMap = "market" | "stallholder" | "relation" | "chat" | "system";
548
- interface NotificationType {
547
+ declare enum EnumNotificationType {
548
+ MARKET = "market",
549
+ STALLHOLDER = "stallholder",
550
+ RELATION = "relation",
551
+ CHAT = "chat",
552
+ SYSTEM = "system"
553
+ }
554
+ type NotificationType = {
549
555
  id: string;
550
556
  userId: string;
551
557
  title: string;
552
558
  message: string;
553
- type: NotificationTypeMap;
559
+ type: EnumNotificationType;
554
560
  isRead: boolean;
555
561
  data?: Record<string, unknown>;
556
562
  createdAt: string;
557
563
  updatedAt: string;
558
- }
559
- interface NotificationCount {
564
+ };
565
+ type NotificationCount = {
560
566
  total: number;
561
567
  unread: number;
562
- }
563
- interface CreateNotificationInput {
568
+ };
569
+ type CreateNotificationInput = {
564
570
  userId: string;
565
571
  title: string;
566
572
  message: string;
567
- type?: NotificationTypeMap;
573
+ type?: EnumNotificationType;
568
574
  data?: Record<string, unknown>;
569
- }
570
- interface CreateBulkNotificationInput {
575
+ };
576
+ type CreateBulkNotificationInput = Omit<CreateNotificationInput, "userId"> & {
571
577
  userIds: string[];
572
- title: string;
573
- message: string;
574
- type?: NotificationTypeMap;
575
- data?: Record<string, unknown>;
576
- }
577
- interface MarkNotificationReadInput {
578
+ };
579
+ type MarkNotificationReadInput = {
578
580
  notificationIds: string[];
579
- }
580
- interface MarkAllNotificationsReadInput {
581
+ };
582
+ type MarkAllNotificationsReadInput = {
581
583
  userId: string;
582
- }
584
+ };
583
585
 
584
586
  interface PosterInputType {
585
587
  resourceId: string;
@@ -832,6 +834,46 @@ declare const useGetMarketInfo: (marketId: string) => {
832
834
  refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
833
835
  };
834
836
 
837
+ declare const useCreateNotification: () => {
838
+ createNotification: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
839
+ error: _apollo_client.ApolloError | undefined;
840
+ loading: boolean;
841
+ };
842
+ declare const useCreateBulkNotifications: () => {
843
+ createBulkNotifications: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
844
+ error: _apollo_client.ApolloError | undefined;
845
+ loading: boolean;
846
+ };
847
+ declare const useMarkNotificationRead: () => {
848
+ error: _apollo_client.ApolloError | undefined;
849
+ loading: boolean;
850
+ markNotificationRead: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
851
+ };
852
+ declare const useMarkAllNotificationsRead: () => {
853
+ error: _apollo_client.ApolloError | undefined;
854
+ loading: boolean;
855
+ markAllNotificationsRead: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
856
+ };
857
+
858
+ declare const useGetUserNotifications: (userId: string, limit?: number, offset?: number, isRead?: boolean) => {
859
+ error: _apollo_client.ApolloError | undefined;
860
+ loading: boolean;
861
+ notifications: NotificationType[];
862
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
863
+ };
864
+ declare const useGetUnreadNotifications: (userId: string, limit?: number) => {
865
+ error: _apollo_client.ApolloError | undefined;
866
+ loading: boolean;
867
+ notifications: NotificationType[];
868
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
869
+ };
870
+ declare const useGetNotificationCount: (userId: string) => {
871
+ error: _apollo_client.ApolloError | undefined;
872
+ loading: boolean;
873
+ notificationCount: NotificationCount;
874
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
875
+ };
876
+
835
877
  declare const useCreatePoster: () => {
836
878
  createPoster: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
837
879
  error: _apollo_client.ApolloError | undefined;
@@ -1038,34 +1080,6 @@ declare const useGetUserFavourites: () => {
1038
1080
  stallholders: StallholderType[];
1039
1081
  };
1040
1082
  };
1041
- declare const useGetUserNotifications: () => {
1042
- error: _apollo_client.ApolloError | undefined;
1043
- loading: boolean;
1044
- refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
1045
- userNotifications: boolean;
1046
- };
1047
-
1048
- declare const useNotifications: (userId: string) => {
1049
- notifications: any;
1050
- count: any;
1051
- unreadNotifications: any;
1052
- notificationsLoading: boolean;
1053
- countLoading: boolean;
1054
- unreadLoading: boolean;
1055
- createLoading: boolean;
1056
- createBulkLoading: boolean;
1057
- markReadLoading: boolean;
1058
- markAllReadLoading: boolean;
1059
- notificationsError: _apollo_client.ApolloError | undefined;
1060
- countError: _apollo_client.ApolloError | undefined;
1061
- unreadError: _apollo_client.ApolloError | undefined;
1062
- createNotification: (input: CreateNotificationInput) => Promise<_apollo_client.FetchResult<any>>;
1063
- createBulkNotifications: (input: CreateBulkNotificationInput) => Promise<_apollo_client.FetchResult<any>>;
1064
- markNotificationRead: (input: MarkNotificationReadInput) => Promise<_apollo_client.FetchResult<any>>;
1065
- markAllNotificationsRead: (input: MarkAllNotificationsReadInput) => Promise<_apollo_client.FetchResult<any>>;
1066
- refetchAll: () => void;
1067
- invalidateCache: () => void;
1068
- };
1069
1083
 
1070
1084
  declare const GET_CHAT_MESSAGE: _apollo_client.DocumentNode;
1071
1085
 
@@ -1257,4 +1271,4 @@ declare const availableRegionOptions: OptionItem[];
1257
1271
  declare const paymentMethodOptions: OptionItem[];
1258
1272
  declare function normalizeUrl(url: string): string;
1259
1273
 
1260
- 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 CreateNotificationInput, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateStallholderFormData, type CreateStallholderInfoFormData, type CreateTestersFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type DateTimeType, type DateTimeWithPriceType, EnumInviteStatus, EnumNotification, EnumOSType, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, EnumResourceTypeIcon, EnumSocialMedia, EnumUserLicence, EnumUserRole, type FormDateField, type FormField, GET_CHAT_MESSAGE, 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 NotificationTypeMap, 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, useCreateChat, useCreateMarket, useCreateMarketInfo, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateStallholder, useCreateStallholderInfo, useCreateTester, useCreateUser, useDeleteChat, useDeleteMarket, useDeleteRelation, useDeleteStallholder, useDeleteTester, useDeleteUser, useGetChat, useGetChatSubscription, useGetMarket, useGetMarketInfo, useGetMarketRelations, useGetMarkets, useGetMarketsByRegion, useGetMarketsNearMe, useGetRelation, useGetRelationByMarketAndStallholder, useGetResourceConnections, useGetStallholder, useGetStallholderInfo, useGetStallholderRelations, useGetStallholders, useGetStallholdersByRegion, useGetTester, useGetTesters, useGetUser, useGetUserChats, useGetUserFavourites, useGetUserMarkets, useGetUserNotifications, useGetUserStallholder, useGetUsers, useLocationSearch, useLogin, useLoginForm, useLogout, useMarketForm, useMarketInfoForm, useNotifications, 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 CreateNotificationInput, 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, EnumResourceTypeIcon, EnumSocialMedia, EnumUserLicence, EnumUserRole, type FormDateField, type FormField, GET_CHAT_MESSAGE, 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, useCreateNotification, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateStallholder, useCreateStallholderInfo, useCreateTester, useCreateUser, useDeleteChat, useDeleteMarket, useDeleteRelation, useDeleteStallholder, useDeleteTester, useDeleteUser, useGetChat, useGetChatSubscription, useGetMarket, useGetMarketInfo, useGetMarketRelations, useGetMarkets, useGetMarketsByRegion, useGetMarketsNearMe, useGetNotificationCount, useGetRelation, useGetRelationByMarketAndStallholder, useGetResourceConnections, useGetStallholder, useGetStallholderInfo, useGetStallholderRelations, useGetStallholders, useGetStallholdersByRegion, useGetTester, useGetTesters, useGetUnreadNotifications, useGetUser, useGetUserChats, useGetUserFavourites, useGetUserMarkets, useGetUserNotifications, 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 };