@timardex/cluemart-shared 1.0.79 → 1.0.80
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/chunk-SCXVJDGI.mjs +114 -0
- package/dist/chunk-SCXVJDGI.mjs.map +1 -0
- package/dist/formFields/index.d.mts +1 -1
- package/dist/formFields/index.d.ts +1 -1
- package/dist/{global-Drk9CYfv.d.ts → global-Bieh1fh8.d.mts} +2 -10
- package/dist/{global-2TLPFthS.d.mts → global-By7aHQ1y.d.ts} +2 -10
- package/dist/graphql/index.cjs +152 -104
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +11 -13
- package/dist/graphql/index.d.ts +11 -13
- package/dist/graphql/index.mjs +32 -84
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.cjs +202 -0
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +26 -3
- package/dist/hooks/index.d.ts +26 -3
- package/dist/hooks/index.mjs +104 -0
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +248 -104
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +69 -20
- package/dist/index.d.ts +69 -20
- package/dist/index.mjs +220 -82
- package/dist/index.mjs.map +1 -1
- package/dist/{contactUs-CQ9xTjlE.d.mts → notification-H4hE5cdq.d.mts} +38 -1
- package/dist/{contactUs-CQ9xTjlE.d.ts → notification-H4hE5cdq.d.ts} +38 -1
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/utils/index.d.mts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -401,14 +401,6 @@ type ImageObjectType = {
|
|
|
401
401
|
type: string;
|
|
402
402
|
name: string;
|
|
403
403
|
};
|
|
404
|
-
type NotificationType = {
|
|
405
|
-
createdBy: string;
|
|
406
|
-
important: boolean;
|
|
407
|
-
message: string;
|
|
408
|
-
notifyUser: string | null;
|
|
409
|
-
resourceId: string;
|
|
410
|
-
resourceType: EnumNotification;
|
|
411
|
-
};
|
|
412
404
|
interface ResourceConnectionsType {
|
|
413
405
|
markets: MarketWithConnectionDatesType[] | null;
|
|
414
406
|
stallholders: SatllholderWithConnectionDatesType[] | null;
|
|
@@ -552,6 +544,43 @@ interface CreateContactUsFormData {
|
|
|
552
544
|
watch: UseFormWatch<ContactUsFormData>;
|
|
553
545
|
}
|
|
554
546
|
|
|
547
|
+
type NotificationType = "market" | "stallholder" | "relation" | "chat" | "system";
|
|
548
|
+
interface Notification {
|
|
549
|
+
id: string;
|
|
550
|
+
userId: string;
|
|
551
|
+
title: string;
|
|
552
|
+
message: string;
|
|
553
|
+
type: NotificationType;
|
|
554
|
+
isRead: boolean;
|
|
555
|
+
data?: Record<string, unknown>;
|
|
556
|
+
createdAt: string;
|
|
557
|
+
updatedAt: string;
|
|
558
|
+
}
|
|
559
|
+
interface NotificationCount {
|
|
560
|
+
total: number;
|
|
561
|
+
unread: number;
|
|
562
|
+
}
|
|
563
|
+
interface CreateNotificationInput {
|
|
564
|
+
userId: string;
|
|
565
|
+
title: string;
|
|
566
|
+
message: string;
|
|
567
|
+
type?: NotificationType;
|
|
568
|
+
data?: Record<string, unknown>;
|
|
569
|
+
}
|
|
570
|
+
interface CreateBulkNotificationInput {
|
|
571
|
+
userIds: string[];
|
|
572
|
+
title: string;
|
|
573
|
+
message: string;
|
|
574
|
+
type?: NotificationType;
|
|
575
|
+
data?: Record<string, unknown>;
|
|
576
|
+
}
|
|
577
|
+
interface MarkNotificationReadInput {
|
|
578
|
+
notificationIds: string[];
|
|
579
|
+
}
|
|
580
|
+
interface MarkAllNotificationsReadInput {
|
|
581
|
+
userId: string;
|
|
582
|
+
}
|
|
583
|
+
|
|
555
584
|
interface PosterInputType {
|
|
556
585
|
resourceId: string;
|
|
557
586
|
resourceType: EnumResourceType;
|
|
@@ -914,17 +943,6 @@ declare const useGetStallholderInfo: (stallholderId: string) => {
|
|
|
914
943
|
stallholderInfo: StallholderInfoType;
|
|
915
944
|
};
|
|
916
945
|
|
|
917
|
-
declare const useGetNotification: () => {
|
|
918
|
-
error: _apollo_client.ApolloError | undefined;
|
|
919
|
-
loading: boolean;
|
|
920
|
-
notification: NotificationType;
|
|
921
|
-
};
|
|
922
|
-
declare const useGetChatSubscription: () => {
|
|
923
|
-
chat: ChatType;
|
|
924
|
-
error: _apollo_client.ApolloError | undefined;
|
|
925
|
-
loading: boolean;
|
|
926
|
-
};
|
|
927
|
-
|
|
928
946
|
declare const useCreateTester: () => {
|
|
929
947
|
createTester: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
930
948
|
data: any;
|
|
@@ -1022,6 +1040,15 @@ declare const useGetUserNotifications: () => {
|
|
|
1022
1040
|
userNotifications: boolean;
|
|
1023
1041
|
};
|
|
1024
1042
|
|
|
1043
|
+
declare const GET_USER_NOTIFICATIONS: _apollo_client.DocumentNode;
|
|
1044
|
+
declare const GET_NOTIFICATION_COUNT: _apollo_client.DocumentNode;
|
|
1045
|
+
declare const GET_UNREAD_NOTIFICATIONS: _apollo_client.DocumentNode;
|
|
1046
|
+
|
|
1047
|
+
declare const CREATE_NOTIFICATION: _apollo_client.DocumentNode;
|
|
1048
|
+
declare const CREATE_BULK_NOTIFICATIONS: _apollo_client.DocumentNode;
|
|
1049
|
+
declare const MARK_NOTIFICATION_READ: _apollo_client.DocumentNode;
|
|
1050
|
+
declare const MARK_ALL_NOTIFICATIONS_READ: _apollo_client.DocumentNode;
|
|
1051
|
+
|
|
1025
1052
|
interface PlacePrediction {
|
|
1026
1053
|
place_id: string;
|
|
1027
1054
|
description: string;
|
|
@@ -1108,6 +1135,28 @@ declare function useTestersForm(data?: TestersFormData): CreateTestersFormData;
|
|
|
1108
1135
|
|
|
1109
1136
|
declare function useContactUsForm(data?: ContactUsFormData): CreateContactUsFormData;
|
|
1110
1137
|
|
|
1138
|
+
declare const useNotifications: (userId: string) => {
|
|
1139
|
+
notifications: any;
|
|
1140
|
+
count: any;
|
|
1141
|
+
unreadNotifications: any;
|
|
1142
|
+
notificationsLoading: boolean;
|
|
1143
|
+
countLoading: boolean;
|
|
1144
|
+
unreadLoading: boolean;
|
|
1145
|
+
createLoading: boolean;
|
|
1146
|
+
createBulkLoading: boolean;
|
|
1147
|
+
markReadLoading: boolean;
|
|
1148
|
+
markAllReadLoading: boolean;
|
|
1149
|
+
notificationsError: _apollo_client.ApolloError | undefined;
|
|
1150
|
+
countError: _apollo_client.ApolloError | undefined;
|
|
1151
|
+
unreadError: _apollo_client.ApolloError | undefined;
|
|
1152
|
+
createNotification: (input: CreateNotificationInput) => Promise<_apollo_client.FetchResult<any>>;
|
|
1153
|
+
createBulkNotifications: (input: CreateBulkNotificationInput) => Promise<_apollo_client.FetchResult<any>>;
|
|
1154
|
+
markNotificationRead: (input: MarkNotificationReadInput) => Promise<_apollo_client.FetchResult<any>>;
|
|
1155
|
+
markAllNotificationsRead: (input: MarkAllNotificationsReadInput) => Promise<_apollo_client.FetchResult<any>>;
|
|
1156
|
+
refetchAll: () => void;
|
|
1157
|
+
invalidateCache: () => void;
|
|
1158
|
+
};
|
|
1159
|
+
|
|
1111
1160
|
declare const SAVED_PASSWORD_KEY = "savedPassword";
|
|
1112
1161
|
declare const SAVED_EMAIL_KEY = "savedEmail";
|
|
1113
1162
|
declare const SAVED_TOKEN_KEY = "savedToken";
|
|
@@ -1210,4 +1259,4 @@ declare const availableRegionOptions: OptionItem[];
|
|
|
1210
1259
|
declare const paymentMethodOptions: OptionItem[];
|
|
1211
1260
|
declare function normalizeUrl(url: string): string;
|
|
1212
1261
|
|
|
1213
|
-
export { type AdminUpdateResourceType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatInput, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, 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, EnumOSType, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, EnumResourceTypeIcon, 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 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, useCreateChat, useCreateMarket, useCreateMarketInfo, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateStallholder, useCreateStallholderInfo, useCreateTester, useCreateUser, useDeleteChat, useDeleteMarket, useDeleteRelation, useDeleteStallholder, useDeleteTester, useDeleteUser, useGetChat,
|
|
1262
|
+
export { type AdminUpdateResourceType, type BaseResourceType, type BaseResourceTypeFormData, CREATE_BULK_NOTIFICATIONS, CREATE_NOTIFICATION, 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_NOTIFICATION_COUNT, GET_UNREAD_NOTIFICATIONS, GET_USER_NOTIFICATIONS, type GeocodeLocation, type ImageObjectType, ImageTypeEnum, type LocationType, type LoginFormData, MARK_ALL_NOTIFICATIONS_READ, MARK_NOTIFICATION_READ, type MapMultiLocation, type MarkAllNotificationsReadInput, type MarkNotificationReadInput, type MarketFormData, type MarketInfoFormData, type MarketInfoType, type MarketType, type MarketWithConnectionDatesType, type Notification, 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, useCreateChat, useCreateMarket, useCreateMarketInfo, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateStallholder, useCreateStallholderInfo, useCreateTester, useCreateUser, useDeleteChat, useDeleteMarket, useDeleteRelation, useDeleteStallholder, useDeleteTester, useDeleteUser, useGetChat, 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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -401,14 +401,6 @@ type ImageObjectType = {
|
|
|
401
401
|
type: string;
|
|
402
402
|
name: string;
|
|
403
403
|
};
|
|
404
|
-
type NotificationType = {
|
|
405
|
-
createdBy: string;
|
|
406
|
-
important: boolean;
|
|
407
|
-
message: string;
|
|
408
|
-
notifyUser: string | null;
|
|
409
|
-
resourceId: string;
|
|
410
|
-
resourceType: EnumNotification;
|
|
411
|
-
};
|
|
412
404
|
interface ResourceConnectionsType {
|
|
413
405
|
markets: MarketWithConnectionDatesType[] | null;
|
|
414
406
|
stallholders: SatllholderWithConnectionDatesType[] | null;
|
|
@@ -552,6 +544,43 @@ interface CreateContactUsFormData {
|
|
|
552
544
|
watch: UseFormWatch<ContactUsFormData>;
|
|
553
545
|
}
|
|
554
546
|
|
|
547
|
+
type NotificationType = "market" | "stallholder" | "relation" | "chat" | "system";
|
|
548
|
+
interface Notification {
|
|
549
|
+
id: string;
|
|
550
|
+
userId: string;
|
|
551
|
+
title: string;
|
|
552
|
+
message: string;
|
|
553
|
+
type: NotificationType;
|
|
554
|
+
isRead: boolean;
|
|
555
|
+
data?: Record<string, unknown>;
|
|
556
|
+
createdAt: string;
|
|
557
|
+
updatedAt: string;
|
|
558
|
+
}
|
|
559
|
+
interface NotificationCount {
|
|
560
|
+
total: number;
|
|
561
|
+
unread: number;
|
|
562
|
+
}
|
|
563
|
+
interface CreateNotificationInput {
|
|
564
|
+
userId: string;
|
|
565
|
+
title: string;
|
|
566
|
+
message: string;
|
|
567
|
+
type?: NotificationType;
|
|
568
|
+
data?: Record<string, unknown>;
|
|
569
|
+
}
|
|
570
|
+
interface CreateBulkNotificationInput {
|
|
571
|
+
userIds: string[];
|
|
572
|
+
title: string;
|
|
573
|
+
message: string;
|
|
574
|
+
type?: NotificationType;
|
|
575
|
+
data?: Record<string, unknown>;
|
|
576
|
+
}
|
|
577
|
+
interface MarkNotificationReadInput {
|
|
578
|
+
notificationIds: string[];
|
|
579
|
+
}
|
|
580
|
+
interface MarkAllNotificationsReadInput {
|
|
581
|
+
userId: string;
|
|
582
|
+
}
|
|
583
|
+
|
|
555
584
|
interface PosterInputType {
|
|
556
585
|
resourceId: string;
|
|
557
586
|
resourceType: EnumResourceType;
|
|
@@ -914,17 +943,6 @@ declare const useGetStallholderInfo: (stallholderId: string) => {
|
|
|
914
943
|
stallholderInfo: StallholderInfoType;
|
|
915
944
|
};
|
|
916
945
|
|
|
917
|
-
declare const useGetNotification: () => {
|
|
918
|
-
error: _apollo_client.ApolloError | undefined;
|
|
919
|
-
loading: boolean;
|
|
920
|
-
notification: NotificationType;
|
|
921
|
-
};
|
|
922
|
-
declare const useGetChatSubscription: () => {
|
|
923
|
-
chat: ChatType;
|
|
924
|
-
error: _apollo_client.ApolloError | undefined;
|
|
925
|
-
loading: boolean;
|
|
926
|
-
};
|
|
927
|
-
|
|
928
946
|
declare const useCreateTester: () => {
|
|
929
947
|
createTester: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
930
948
|
data: any;
|
|
@@ -1022,6 +1040,15 @@ declare const useGetUserNotifications: () => {
|
|
|
1022
1040
|
userNotifications: boolean;
|
|
1023
1041
|
};
|
|
1024
1042
|
|
|
1043
|
+
declare const GET_USER_NOTIFICATIONS: _apollo_client.DocumentNode;
|
|
1044
|
+
declare const GET_NOTIFICATION_COUNT: _apollo_client.DocumentNode;
|
|
1045
|
+
declare const GET_UNREAD_NOTIFICATIONS: _apollo_client.DocumentNode;
|
|
1046
|
+
|
|
1047
|
+
declare const CREATE_NOTIFICATION: _apollo_client.DocumentNode;
|
|
1048
|
+
declare const CREATE_BULK_NOTIFICATIONS: _apollo_client.DocumentNode;
|
|
1049
|
+
declare const MARK_NOTIFICATION_READ: _apollo_client.DocumentNode;
|
|
1050
|
+
declare const MARK_ALL_NOTIFICATIONS_READ: _apollo_client.DocumentNode;
|
|
1051
|
+
|
|
1025
1052
|
interface PlacePrediction {
|
|
1026
1053
|
place_id: string;
|
|
1027
1054
|
description: string;
|
|
@@ -1108,6 +1135,28 @@ declare function useTestersForm(data?: TestersFormData): CreateTestersFormData;
|
|
|
1108
1135
|
|
|
1109
1136
|
declare function useContactUsForm(data?: ContactUsFormData): CreateContactUsFormData;
|
|
1110
1137
|
|
|
1138
|
+
declare const useNotifications: (userId: string) => {
|
|
1139
|
+
notifications: any;
|
|
1140
|
+
count: any;
|
|
1141
|
+
unreadNotifications: any;
|
|
1142
|
+
notificationsLoading: boolean;
|
|
1143
|
+
countLoading: boolean;
|
|
1144
|
+
unreadLoading: boolean;
|
|
1145
|
+
createLoading: boolean;
|
|
1146
|
+
createBulkLoading: boolean;
|
|
1147
|
+
markReadLoading: boolean;
|
|
1148
|
+
markAllReadLoading: boolean;
|
|
1149
|
+
notificationsError: _apollo_client.ApolloError | undefined;
|
|
1150
|
+
countError: _apollo_client.ApolloError | undefined;
|
|
1151
|
+
unreadError: _apollo_client.ApolloError | undefined;
|
|
1152
|
+
createNotification: (input: CreateNotificationInput) => Promise<_apollo_client.FetchResult<any>>;
|
|
1153
|
+
createBulkNotifications: (input: CreateBulkNotificationInput) => Promise<_apollo_client.FetchResult<any>>;
|
|
1154
|
+
markNotificationRead: (input: MarkNotificationReadInput) => Promise<_apollo_client.FetchResult<any>>;
|
|
1155
|
+
markAllNotificationsRead: (input: MarkAllNotificationsReadInput) => Promise<_apollo_client.FetchResult<any>>;
|
|
1156
|
+
refetchAll: () => void;
|
|
1157
|
+
invalidateCache: () => void;
|
|
1158
|
+
};
|
|
1159
|
+
|
|
1111
1160
|
declare const SAVED_PASSWORD_KEY = "savedPassword";
|
|
1112
1161
|
declare const SAVED_EMAIL_KEY = "savedEmail";
|
|
1113
1162
|
declare const SAVED_TOKEN_KEY = "savedToken";
|
|
@@ -1210,4 +1259,4 @@ declare const availableRegionOptions: OptionItem[];
|
|
|
1210
1259
|
declare const paymentMethodOptions: OptionItem[];
|
|
1211
1260
|
declare function normalizeUrl(url: string): string;
|
|
1212
1261
|
|
|
1213
|
-
export { type AdminUpdateResourceType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatInput, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, 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, EnumOSType, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, EnumResourceTypeIcon, 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 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, useCreateChat, useCreateMarket, useCreateMarketInfo, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateStallholder, useCreateStallholderInfo, useCreateTester, useCreateUser, useDeleteChat, useDeleteMarket, useDeleteRelation, useDeleteStallholder, useDeleteTester, useDeleteUser, useGetChat,
|
|
1262
|
+
export { type AdminUpdateResourceType, type BaseResourceType, type BaseResourceTypeFormData, CREATE_BULK_NOTIFICATIONS, CREATE_NOTIFICATION, 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_NOTIFICATION_COUNT, GET_UNREAD_NOTIFICATIONS, GET_USER_NOTIFICATIONS, type GeocodeLocation, type ImageObjectType, ImageTypeEnum, type LocationType, type LoginFormData, MARK_ALL_NOTIFICATIONS_READ, MARK_NOTIFICATION_READ, type MapMultiLocation, type MarkAllNotificationsReadInput, type MarkNotificationReadInput, type MarketFormData, type MarketInfoFormData, type MarketInfoType, type MarketType, type MarketWithConnectionDatesType, type Notification, 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, useCreateChat, useCreateMarket, useCreateMarketInfo, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateStallholder, useCreateStallholderInfo, useCreateTester, useCreateUser, useDeleteChat, useDeleteMarket, useDeleteRelation, useDeleteStallholder, useDeleteTester, useDeleteUser, useGetChat, 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 };
|