@timardex/cluemart-shared 1.0.82 → 1.0.84
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-3LHMZDI4.mjs → chunk-JIL6JFWC.mjs} +1 -7
- package/dist/chunk-JIL6JFWC.mjs.map +1 -0
- package/dist/{chunk-ZDTBLK7U.mjs → chunk-ORGSRTC4.mjs} +2 -2
- package/dist/enums/index.cjs +0 -7
- package/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.d.mts +1 -5
- package/dist/enums/index.d.ts +1 -5
- package/dist/enums/index.mjs +1 -3
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.mjs +2 -2
- package/dist/graphql/index.cjs +243 -300
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +41 -30
- package/dist/graphql/index.d.ts +41 -30
- package/dist/graphql/index.mjs +238 -300
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.mjs +2 -2
- package/dist/index.cjs +255 -307
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +62 -53
- package/dist/index.d.ts +62 -53
- package/dist/index.mjs +248 -305
- package/dist/index.mjs.map +1 -1
- package/dist/{notification-P3Vnadx_.d.mts → notification-DDVH6HnE.d.mts} +23 -21
- package/dist/{notification-P3Vnadx_.d.ts → notification-DDVH6HnE.d.ts} +23 -21
- package/dist/types/index.cjs +21 -0
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.mjs +14 -0
- package/dist/types/index.mjs.map +1 -1
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunk-3LHMZDI4.mjs.map +0 -1
- /package/dist/{chunk-ZDTBLK7U.mjs.map → chunk-ORGSRTC4.mjs.map} +0 -0
package/dist/index.d.mts
CHANGED
|
@@ -38,10 +38,6 @@ declare enum EnumNotification {
|
|
|
38
38
|
MARKET_INVITE_STALLHOLDER = "market_invite_stallholder",
|
|
39
39
|
STALLHOLDER_APPLICATION_TO_MARKET = "stallholder_application_to_market"
|
|
40
40
|
}
|
|
41
|
-
declare enum EnumResourceTypeIcon {
|
|
42
|
-
MARKET = "compass",
|
|
43
|
-
STALLHOLDER = "store"
|
|
44
|
-
}
|
|
45
41
|
declare enum EnumRegions {
|
|
46
42
|
Auckland = "Auckland",
|
|
47
43
|
BayOfPlentyGisborne = "Bay of Plenty & Gisborne",
|
|
@@ -544,42 +540,44 @@ interface CreateContactUsFormData {
|
|
|
544
540
|
watch: UseFormWatch<ContactUsFormData>;
|
|
545
541
|
}
|
|
546
542
|
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
543
|
+
declare enum EnumNotificationType {
|
|
544
|
+
MARKET = "market",
|
|
545
|
+
STALLHOLDER = "stallholder",
|
|
546
|
+
RELATION = "relation",
|
|
547
|
+
CHAT = "chat",
|
|
548
|
+
SYSTEM = "system"
|
|
549
|
+
}
|
|
550
|
+
type NotificationType = {
|
|
551
|
+
_id: string;
|
|
550
552
|
userId: string;
|
|
551
553
|
title: string;
|
|
552
554
|
message: string;
|
|
553
|
-
type:
|
|
555
|
+
type: EnumNotificationType;
|
|
554
556
|
isRead: boolean;
|
|
555
557
|
data?: Record<string, unknown>;
|
|
556
558
|
createdAt: string;
|
|
557
559
|
updatedAt: string;
|
|
558
|
-
}
|
|
559
|
-
|
|
560
|
+
};
|
|
561
|
+
type NotificationCount = {
|
|
560
562
|
total: number;
|
|
561
563
|
unread: number;
|
|
562
|
-
}
|
|
563
|
-
|
|
564
|
+
};
|
|
565
|
+
type CreateNotificationInput = {
|
|
564
566
|
userId: string;
|
|
565
567
|
title: string;
|
|
566
568
|
message: string;
|
|
567
|
-
type?:
|
|
569
|
+
type?: EnumNotificationType;
|
|
568
570
|
data?: Record<string, unknown>;
|
|
569
|
-
}
|
|
570
|
-
|
|
571
|
+
};
|
|
572
|
+
type CreateBulkNotificationInput = Omit<CreateNotificationInput, "userId"> & {
|
|
571
573
|
userIds: string[];
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
type?: NotificationTypeMap;
|
|
575
|
-
data?: Record<string, unknown>;
|
|
576
|
-
}
|
|
577
|
-
interface MarkNotificationReadInput {
|
|
574
|
+
};
|
|
575
|
+
type MarkNotificationReadInput = {
|
|
578
576
|
notificationIds: string[];
|
|
579
|
-
}
|
|
580
|
-
|
|
577
|
+
};
|
|
578
|
+
type MarkAllNotificationsReadInput = {
|
|
581
579
|
userId: string;
|
|
582
|
-
}
|
|
580
|
+
};
|
|
583
581
|
|
|
584
582
|
interface PosterInputType {
|
|
585
583
|
resourceId: string;
|
|
@@ -832,6 +830,45 @@ declare const useGetMarketInfo: (marketId: string) => {
|
|
|
832
830
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
833
831
|
};
|
|
834
832
|
|
|
833
|
+
declare const useCreateNotification: () => {
|
|
834
|
+
createNotification: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
835
|
+
error: _apollo_client.ApolloError | undefined;
|
|
836
|
+
loading: boolean;
|
|
837
|
+
};
|
|
838
|
+
declare const useCreateBulkNotifications: () => {
|
|
839
|
+
createBulkNotifications: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
840
|
+
error: _apollo_client.ApolloError | undefined;
|
|
841
|
+
loading: boolean;
|
|
842
|
+
};
|
|
843
|
+
declare const useMarkNotificationRead: () => {
|
|
844
|
+
error: _apollo_client.ApolloError | undefined;
|
|
845
|
+
loading: boolean;
|
|
846
|
+
markNotificationRead: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
847
|
+
};
|
|
848
|
+
declare const useMarkAllNotificationsRead: () => {
|
|
849
|
+
error: _apollo_client.ApolloError | undefined;
|
|
850
|
+
loading: boolean;
|
|
851
|
+
markAllNotificationsRead: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
852
|
+
};
|
|
853
|
+
declare const useDeleteNotification: () => {
|
|
854
|
+
deleteNotification: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
855
|
+
error: _apollo_client.ApolloError | undefined;
|
|
856
|
+
loading: boolean;
|
|
857
|
+
};
|
|
858
|
+
|
|
859
|
+
declare const useGetUserNotifications: (userId: string, limit?: number, offset?: number) => {
|
|
860
|
+
error: _apollo_client.ApolloError | undefined;
|
|
861
|
+
loading: boolean;
|
|
862
|
+
notifications: NotificationType[];
|
|
863
|
+
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
864
|
+
};
|
|
865
|
+
declare const useGetNotificationCount: (userId: string) => {
|
|
866
|
+
error: _apollo_client.ApolloError | undefined;
|
|
867
|
+
loading: boolean;
|
|
868
|
+
notificationCount: NotificationCount;
|
|
869
|
+
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
870
|
+
};
|
|
871
|
+
|
|
835
872
|
declare const useCreatePoster: () => {
|
|
836
873
|
createPoster: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
837
874
|
error: _apollo_client.ApolloError | undefined;
|
|
@@ -1038,34 +1075,6 @@ declare const useGetUserFavourites: () => {
|
|
|
1038
1075
|
stallholders: StallholderType[];
|
|
1039
1076
|
};
|
|
1040
1077
|
};
|
|
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
1078
|
|
|
1070
1079
|
declare const GET_CHAT_MESSAGE: _apollo_client.DocumentNode;
|
|
1071
1080
|
|
|
@@ -1257,4 +1266,4 @@ declare const availableRegionOptions: OptionItem[];
|
|
|
1257
1266
|
declare const paymentMethodOptions: OptionItem[];
|
|
1258
1267
|
declare function normalizeUrl(url: string): string;
|
|
1259
1268
|
|
|
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,
|
|
1269
|
+
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, 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, useDeleteNotification, useDeleteRelation, useDeleteStallholder, useDeleteTester, useDeleteUser, useGetChat, useGetChatSubscription, useGetMarket, useGetMarketInfo, useGetMarketRelations, useGetMarkets, useGetMarketsByRegion, useGetMarketsNearMe, useGetNotificationCount, useGetRelation, useGetRelationByMarketAndStallholder, useGetResourceConnections, useGetStallholder, useGetStallholderInfo, useGetStallholderRelations, useGetStallholders, useGetStallholdersByRegion, useGetTester, useGetTesters, 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
|
@@ -38,10 +38,6 @@ declare enum EnumNotification {
|
|
|
38
38
|
MARKET_INVITE_STALLHOLDER = "market_invite_stallholder",
|
|
39
39
|
STALLHOLDER_APPLICATION_TO_MARKET = "stallholder_application_to_market"
|
|
40
40
|
}
|
|
41
|
-
declare enum EnumResourceTypeIcon {
|
|
42
|
-
MARKET = "compass",
|
|
43
|
-
STALLHOLDER = "store"
|
|
44
|
-
}
|
|
45
41
|
declare enum EnumRegions {
|
|
46
42
|
Auckland = "Auckland",
|
|
47
43
|
BayOfPlentyGisborne = "Bay of Plenty & Gisborne",
|
|
@@ -544,42 +540,44 @@ interface CreateContactUsFormData {
|
|
|
544
540
|
watch: UseFormWatch<ContactUsFormData>;
|
|
545
541
|
}
|
|
546
542
|
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
543
|
+
declare enum EnumNotificationType {
|
|
544
|
+
MARKET = "market",
|
|
545
|
+
STALLHOLDER = "stallholder",
|
|
546
|
+
RELATION = "relation",
|
|
547
|
+
CHAT = "chat",
|
|
548
|
+
SYSTEM = "system"
|
|
549
|
+
}
|
|
550
|
+
type NotificationType = {
|
|
551
|
+
_id: string;
|
|
550
552
|
userId: string;
|
|
551
553
|
title: string;
|
|
552
554
|
message: string;
|
|
553
|
-
type:
|
|
555
|
+
type: EnumNotificationType;
|
|
554
556
|
isRead: boolean;
|
|
555
557
|
data?: Record<string, unknown>;
|
|
556
558
|
createdAt: string;
|
|
557
559
|
updatedAt: string;
|
|
558
|
-
}
|
|
559
|
-
|
|
560
|
+
};
|
|
561
|
+
type NotificationCount = {
|
|
560
562
|
total: number;
|
|
561
563
|
unread: number;
|
|
562
|
-
}
|
|
563
|
-
|
|
564
|
+
};
|
|
565
|
+
type CreateNotificationInput = {
|
|
564
566
|
userId: string;
|
|
565
567
|
title: string;
|
|
566
568
|
message: string;
|
|
567
|
-
type?:
|
|
569
|
+
type?: EnumNotificationType;
|
|
568
570
|
data?: Record<string, unknown>;
|
|
569
|
-
}
|
|
570
|
-
|
|
571
|
+
};
|
|
572
|
+
type CreateBulkNotificationInput = Omit<CreateNotificationInput, "userId"> & {
|
|
571
573
|
userIds: string[];
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
type?: NotificationTypeMap;
|
|
575
|
-
data?: Record<string, unknown>;
|
|
576
|
-
}
|
|
577
|
-
interface MarkNotificationReadInput {
|
|
574
|
+
};
|
|
575
|
+
type MarkNotificationReadInput = {
|
|
578
576
|
notificationIds: string[];
|
|
579
|
-
}
|
|
580
|
-
|
|
577
|
+
};
|
|
578
|
+
type MarkAllNotificationsReadInput = {
|
|
581
579
|
userId: string;
|
|
582
|
-
}
|
|
580
|
+
};
|
|
583
581
|
|
|
584
582
|
interface PosterInputType {
|
|
585
583
|
resourceId: string;
|
|
@@ -832,6 +830,45 @@ declare const useGetMarketInfo: (marketId: string) => {
|
|
|
832
830
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
833
831
|
};
|
|
834
832
|
|
|
833
|
+
declare const useCreateNotification: () => {
|
|
834
|
+
createNotification: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
835
|
+
error: _apollo_client.ApolloError | undefined;
|
|
836
|
+
loading: boolean;
|
|
837
|
+
};
|
|
838
|
+
declare const useCreateBulkNotifications: () => {
|
|
839
|
+
createBulkNotifications: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
840
|
+
error: _apollo_client.ApolloError | undefined;
|
|
841
|
+
loading: boolean;
|
|
842
|
+
};
|
|
843
|
+
declare const useMarkNotificationRead: () => {
|
|
844
|
+
error: _apollo_client.ApolloError | undefined;
|
|
845
|
+
loading: boolean;
|
|
846
|
+
markNotificationRead: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
847
|
+
};
|
|
848
|
+
declare const useMarkAllNotificationsRead: () => {
|
|
849
|
+
error: _apollo_client.ApolloError | undefined;
|
|
850
|
+
loading: boolean;
|
|
851
|
+
markAllNotificationsRead: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
852
|
+
};
|
|
853
|
+
declare const useDeleteNotification: () => {
|
|
854
|
+
deleteNotification: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
855
|
+
error: _apollo_client.ApolloError | undefined;
|
|
856
|
+
loading: boolean;
|
|
857
|
+
};
|
|
858
|
+
|
|
859
|
+
declare const useGetUserNotifications: (userId: string, limit?: number, offset?: number) => {
|
|
860
|
+
error: _apollo_client.ApolloError | undefined;
|
|
861
|
+
loading: boolean;
|
|
862
|
+
notifications: NotificationType[];
|
|
863
|
+
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
864
|
+
};
|
|
865
|
+
declare const useGetNotificationCount: (userId: string) => {
|
|
866
|
+
error: _apollo_client.ApolloError | undefined;
|
|
867
|
+
loading: boolean;
|
|
868
|
+
notificationCount: NotificationCount;
|
|
869
|
+
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
870
|
+
};
|
|
871
|
+
|
|
835
872
|
declare const useCreatePoster: () => {
|
|
836
873
|
createPoster: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
837
874
|
error: _apollo_client.ApolloError | undefined;
|
|
@@ -1038,34 +1075,6 @@ declare const useGetUserFavourites: () => {
|
|
|
1038
1075
|
stallholders: StallholderType[];
|
|
1039
1076
|
};
|
|
1040
1077
|
};
|
|
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
1078
|
|
|
1070
1079
|
declare const GET_CHAT_MESSAGE: _apollo_client.DocumentNode;
|
|
1071
1080
|
|
|
@@ -1257,4 +1266,4 @@ declare const availableRegionOptions: OptionItem[];
|
|
|
1257
1266
|
declare const paymentMethodOptions: OptionItem[];
|
|
1258
1267
|
declare function normalizeUrl(url: string): string;
|
|
1259
1268
|
|
|
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,
|
|
1269
|
+
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, 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, useDeleteNotification, useDeleteRelation, useDeleteStallholder, useDeleteTester, useDeleteUser, useGetChat, useGetChatSubscription, useGetMarket, useGetMarketInfo, useGetMarketRelations, useGetMarkets, useGetMarketsByRegion, useGetMarketsNearMe, useGetNotificationCount, useGetRelation, useGetRelationByMarketAndStallholder, useGetResourceConnections, useGetStallholder, useGetStallholderInfo, useGetStallholderRelations, useGetStallholders, useGetStallholdersByRegion, useGetTester, useGetTesters, 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 };
|