@timardex/cluemart-shared 1.0.81 → 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/{notification-BVKetNZq.d.mts → contactUs-CQ9xTjlE.d.mts} +1 -38
- package/dist/{notification-BVKetNZq.d.ts → contactUs-CQ9xTjlE.d.ts} +1 -38
- package/dist/graphql/index.cjs +313 -242
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +48 -16
- package/dist/graphql/index.d.ts +48 -16
- package/dist/graphql/index.mjs +289 -124
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.cjs +0 -202
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +2 -25
- package/dist/hooks/index.d.ts +2 -25
- package/dist/hooks/index.mjs +0 -104
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +325 -338
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +68 -56
- package/dist/index.d.ts +68 -56
- package/dist/index.mjs +300 -314
- package/dist/index.mjs.map +1 -1
- package/dist/notification-Dy46qobo.d.mts +66 -0
- package/dist/notification-Dy46qobo.d.ts +66 -0
- package/dist/types/index.cjs +21 -0
- 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/types/index.mjs +14 -0
- package/dist/types/index.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/chat-BUVCf9Tu.d.mts +0 -27
- package/dist/chat-BUVCf9Tu.d.ts +0 -27
- package/dist/chunk-SCXVJDGI.mjs +0 -114
- package/dist/chunk-SCXVJDGI.mjs.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -544,42 +544,44 @@ interface CreateContactUsFormData {
|
|
|
544
544
|
watch: UseFormWatch<ContactUsFormData>;
|
|
545
545
|
}
|
|
546
546
|
|
|
547
|
-
|
|
548
|
-
|
|
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:
|
|
559
|
+
type: EnumNotificationType;
|
|
554
560
|
isRead: boolean;
|
|
555
561
|
data?: Record<string, unknown>;
|
|
556
562
|
createdAt: string;
|
|
557
563
|
updatedAt: string;
|
|
558
|
-
}
|
|
559
|
-
|
|
564
|
+
};
|
|
565
|
+
type NotificationCount = {
|
|
560
566
|
total: number;
|
|
561
567
|
unread: number;
|
|
562
|
-
}
|
|
563
|
-
|
|
568
|
+
};
|
|
569
|
+
type CreateNotificationInput = {
|
|
564
570
|
userId: string;
|
|
565
571
|
title: string;
|
|
566
572
|
message: string;
|
|
567
|
-
type?:
|
|
573
|
+
type?: EnumNotificationType;
|
|
568
574
|
data?: Record<string, unknown>;
|
|
569
|
-
}
|
|
570
|
-
|
|
575
|
+
};
|
|
576
|
+
type CreateBulkNotificationInput = Omit<CreateNotificationInput, "userId"> & {
|
|
571
577
|
userIds: string[];
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
type?: NotificationTypeMap;
|
|
575
|
-
data?: Record<string, unknown>;
|
|
576
|
-
}
|
|
577
|
-
interface MarkNotificationReadInput {
|
|
578
|
+
};
|
|
579
|
+
type MarkNotificationReadInput = {
|
|
578
580
|
notificationIds: string[];
|
|
579
|
-
}
|
|
580
|
-
|
|
581
|
+
};
|
|
582
|
+
type MarkAllNotificationsReadInput = {
|
|
581
583
|
userId: string;
|
|
582
|
-
}
|
|
584
|
+
};
|
|
583
585
|
|
|
584
586
|
interface PosterInputType {
|
|
585
587
|
resourceId: string;
|
|
@@ -753,6 +755,11 @@ declare const useGetUserChats: () => {
|
|
|
753
755
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
754
756
|
userChats: ChatType[];
|
|
755
757
|
};
|
|
758
|
+
declare const useGetChatSubscription: () => {
|
|
759
|
+
chat: ChatType;
|
|
760
|
+
error: _apollo_client.ApolloError | undefined;
|
|
761
|
+
loading: boolean;
|
|
762
|
+
};
|
|
756
763
|
|
|
757
764
|
declare const useContactUs: () => {
|
|
758
765
|
contactUs: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
@@ -827,6 +834,46 @@ declare const useGetMarketInfo: (marketId: string) => {
|
|
|
827
834
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
828
835
|
};
|
|
829
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
|
+
|
|
830
877
|
declare const useCreatePoster: () => {
|
|
831
878
|
createPoster: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
832
879
|
error: _apollo_client.ApolloError | undefined;
|
|
@@ -1033,21 +1080,8 @@ declare const useGetUserFavourites: () => {
|
|
|
1033
1080
|
stallholders: StallholderType[];
|
|
1034
1081
|
};
|
|
1035
1082
|
};
|
|
1036
|
-
declare const useGetUserNotifications: () => {
|
|
1037
|
-
error: _apollo_client.ApolloError | undefined;
|
|
1038
|
-
loading: boolean;
|
|
1039
|
-
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
1040
|
-
userNotifications: boolean;
|
|
1041
|
-
};
|
|
1042
1083
|
|
|
1043
|
-
declare const
|
|
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;
|
|
1084
|
+
declare const GET_CHAT_MESSAGE: _apollo_client.DocumentNode;
|
|
1051
1085
|
|
|
1052
1086
|
interface PlacePrediction {
|
|
1053
1087
|
place_id: string;
|
|
@@ -1135,28 +1169,6 @@ declare function useTestersForm(data?: TestersFormData): CreateTestersFormData;
|
|
|
1135
1169
|
|
|
1136
1170
|
declare function useContactUsForm(data?: ContactUsFormData): CreateContactUsFormData;
|
|
1137
1171
|
|
|
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
|
-
|
|
1160
1172
|
declare const SAVED_PASSWORD_KEY = "savedPassword";
|
|
1161
1173
|
declare const SAVED_EMAIL_KEY = "savedEmail";
|
|
1162
1174
|
declare const SAVED_TOKEN_KEY = "savedToken";
|
|
@@ -1259,4 +1271,4 @@ declare const availableRegionOptions: OptionItem[];
|
|
|
1259
1271
|
declare const paymentMethodOptions: OptionItem[];
|
|
1260
1272
|
declare function normalizeUrl(url: string): string;
|
|
1261
1273
|
|
|
1262
|
-
export { type AdminUpdateResourceType, type BaseResourceType, type BaseResourceTypeFormData,
|
|
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
|
-
|
|
548
|
-
|
|
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:
|
|
559
|
+
type: EnumNotificationType;
|
|
554
560
|
isRead: boolean;
|
|
555
561
|
data?: Record<string, unknown>;
|
|
556
562
|
createdAt: string;
|
|
557
563
|
updatedAt: string;
|
|
558
|
-
}
|
|
559
|
-
|
|
564
|
+
};
|
|
565
|
+
type NotificationCount = {
|
|
560
566
|
total: number;
|
|
561
567
|
unread: number;
|
|
562
|
-
}
|
|
563
|
-
|
|
568
|
+
};
|
|
569
|
+
type CreateNotificationInput = {
|
|
564
570
|
userId: string;
|
|
565
571
|
title: string;
|
|
566
572
|
message: string;
|
|
567
|
-
type?:
|
|
573
|
+
type?: EnumNotificationType;
|
|
568
574
|
data?: Record<string, unknown>;
|
|
569
|
-
}
|
|
570
|
-
|
|
575
|
+
};
|
|
576
|
+
type CreateBulkNotificationInput = Omit<CreateNotificationInput, "userId"> & {
|
|
571
577
|
userIds: string[];
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
type?: NotificationTypeMap;
|
|
575
|
-
data?: Record<string, unknown>;
|
|
576
|
-
}
|
|
577
|
-
interface MarkNotificationReadInput {
|
|
578
|
+
};
|
|
579
|
+
type MarkNotificationReadInput = {
|
|
578
580
|
notificationIds: string[];
|
|
579
|
-
}
|
|
580
|
-
|
|
581
|
+
};
|
|
582
|
+
type MarkAllNotificationsReadInput = {
|
|
581
583
|
userId: string;
|
|
582
|
-
}
|
|
584
|
+
};
|
|
583
585
|
|
|
584
586
|
interface PosterInputType {
|
|
585
587
|
resourceId: string;
|
|
@@ -753,6 +755,11 @@ declare const useGetUserChats: () => {
|
|
|
753
755
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
754
756
|
userChats: ChatType[];
|
|
755
757
|
};
|
|
758
|
+
declare const useGetChatSubscription: () => {
|
|
759
|
+
chat: ChatType;
|
|
760
|
+
error: _apollo_client.ApolloError | undefined;
|
|
761
|
+
loading: boolean;
|
|
762
|
+
};
|
|
756
763
|
|
|
757
764
|
declare const useContactUs: () => {
|
|
758
765
|
contactUs: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
@@ -827,6 +834,46 @@ declare const useGetMarketInfo: (marketId: string) => {
|
|
|
827
834
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
828
835
|
};
|
|
829
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
|
+
|
|
830
877
|
declare const useCreatePoster: () => {
|
|
831
878
|
createPoster: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
832
879
|
error: _apollo_client.ApolloError | undefined;
|
|
@@ -1033,21 +1080,8 @@ declare const useGetUserFavourites: () => {
|
|
|
1033
1080
|
stallholders: StallholderType[];
|
|
1034
1081
|
};
|
|
1035
1082
|
};
|
|
1036
|
-
declare const useGetUserNotifications: () => {
|
|
1037
|
-
error: _apollo_client.ApolloError | undefined;
|
|
1038
|
-
loading: boolean;
|
|
1039
|
-
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
1040
|
-
userNotifications: boolean;
|
|
1041
|
-
};
|
|
1042
1083
|
|
|
1043
|
-
declare const
|
|
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;
|
|
1084
|
+
declare const GET_CHAT_MESSAGE: _apollo_client.DocumentNode;
|
|
1051
1085
|
|
|
1052
1086
|
interface PlacePrediction {
|
|
1053
1087
|
place_id: string;
|
|
@@ -1135,28 +1169,6 @@ declare function useTestersForm(data?: TestersFormData): CreateTestersFormData;
|
|
|
1135
1169
|
|
|
1136
1170
|
declare function useContactUsForm(data?: ContactUsFormData): CreateContactUsFormData;
|
|
1137
1171
|
|
|
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
|
-
|
|
1160
1172
|
declare const SAVED_PASSWORD_KEY = "savedPassword";
|
|
1161
1173
|
declare const SAVED_EMAIL_KEY = "savedEmail";
|
|
1162
1174
|
declare const SAVED_TOKEN_KEY = "savedToken";
|
|
@@ -1259,4 +1271,4 @@ declare const availableRegionOptions: OptionItem[];
|
|
|
1259
1271
|
declare const paymentMethodOptions: OptionItem[];
|
|
1260
1272
|
declare function normalizeUrl(url: string): string;
|
|
1261
1273
|
|
|
1262
|
-
export { type AdminUpdateResourceType, type BaseResourceType, type BaseResourceTypeFormData,
|
|
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 };
|