@timardex/cluemart-shared 1.0.84 → 1.0.86
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/graphql/index.cjs +101 -100
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +4 -13
- package/dist/graphql/index.d.ts +4 -13
- package/dist/graphql/index.mjs +98 -95
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/index.cjs +101 -100
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +5 -17
- package/dist/index.d.ts +5 -17
- package/dist/index.mjs +98 -95
- package/dist/index.mjs.map +1 -1
- package/dist/{notification-DDVH6HnE.d.mts → notification-CmjfP3gD.d.mts} +3 -6
- package/dist/{notification-DDVH6HnE.d.ts → notification-CmjfP3gD.d.ts} +3 -6
- 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.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -562,16 +562,13 @@ type NotificationCount = {
|
|
|
562
562
|
total: number;
|
|
563
563
|
unread: number;
|
|
564
564
|
};
|
|
565
|
-
type
|
|
566
|
-
|
|
565
|
+
type CreateBulkNotificationInput = {
|
|
566
|
+
userIds: string[];
|
|
567
567
|
title: string;
|
|
568
568
|
message: string;
|
|
569
569
|
type?: EnumNotificationType;
|
|
570
570
|
data?: Record<string, unknown>;
|
|
571
571
|
};
|
|
572
|
-
type CreateBulkNotificationInput = Omit<CreateNotificationInput, "userId"> & {
|
|
573
|
-
userIds: string[];
|
|
574
|
-
};
|
|
575
572
|
type MarkNotificationReadInput = {
|
|
576
573
|
notificationIds: string[];
|
|
577
574
|
};
|
|
@@ -830,11 +827,6 @@ declare const useGetMarketInfo: (marketId: string) => {
|
|
|
830
827
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
831
828
|
};
|
|
832
829
|
|
|
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
830
|
declare const useCreateBulkNotifications: () => {
|
|
839
831
|
createBulkNotifications: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
840
832
|
error: _apollo_client.ApolloError | undefined;
|
|
@@ -856,17 +848,15 @@ declare const useDeleteNotification: () => {
|
|
|
856
848
|
loading: boolean;
|
|
857
849
|
};
|
|
858
850
|
|
|
859
|
-
declare const
|
|
851
|
+
declare const useGetUserNotificationsSubscription: (userId: string) => {
|
|
860
852
|
error: _apollo_client.ApolloError | undefined;
|
|
861
853
|
loading: boolean;
|
|
862
854
|
notifications: NotificationType[];
|
|
863
|
-
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
864
855
|
};
|
|
865
|
-
declare const
|
|
856
|
+
declare const useGetNotificationCountSubscription: (userId: string) => {
|
|
866
857
|
error: _apollo_client.ApolloError | undefined;
|
|
867
858
|
loading: boolean;
|
|
868
859
|
notificationCount: NotificationCount;
|
|
869
|
-
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
870
860
|
};
|
|
871
861
|
|
|
872
862
|
declare const useCreatePoster: () => {
|
|
@@ -1076,8 +1066,6 @@ declare const useGetUserFavourites: () => {
|
|
|
1076
1066
|
};
|
|
1077
1067
|
};
|
|
1078
1068
|
|
|
1079
|
-
declare const GET_CHAT_MESSAGE: _apollo_client.DocumentNode;
|
|
1080
|
-
|
|
1081
1069
|
interface PlacePrediction {
|
|
1082
1070
|
place_id: string;
|
|
1083
1071
|
description: string;
|
|
@@ -1266,4 +1254,4 @@ declare const availableRegionOptions: OptionItem[];
|
|
|
1266
1254
|
declare const paymentMethodOptions: OptionItem[];
|
|
1267
1255
|
declare function normalizeUrl(url: string): string;
|
|
1268
1256
|
|
|
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
|
|
1257
|
+
export { type AdminUpdateResourceType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatInput, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateLoginFormData, type CreateMarketFormData, type CreateMarketInfoFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateStallholderFormData, type CreateStallholderInfoFormData, type CreateTestersFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type DateTimeType, type DateTimeWithPriceType, EnumInviteStatus, EnumNotification, EnumNotificationType, EnumOSType, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumUserLicence, EnumUserRole, type FormDateField, type FormField, type GeocodeLocation, type ImageObjectType, ImageTypeEnum, type LocationType, type LoginFormData, type MapMultiLocation, type MarkAllNotificationsReadInput, type MarkNotificationReadInput, type MarketFormData, type MarketInfoFormData, type MarketInfoType, type MarketType, type MarketWithConnectionDatesType, type NotificationCount, type NotificationType, type Nullable, type OptionItem, type PaymentInfoType, type PlacePrediction, type PosterInputType, type Region, type RegisterFormData, type RelationDate, type RelationType, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceConnectionsType, type ResourceImageType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, type SatllholderWithConnectionDatesType, type SocialMediaType, type StallType, type StallholderAttributes, type StallholderFormData, type StallholderInfoFormData, type StallholderInfoType, type StallholderLocation, type StallholderType, type Subcategory, type SubcategoryItems, type TesterType, type TestersFormData, USER_STORAGE_KEY, type UserFormData, type UserType, type ValidateVerificationTokenFormData, availableCategories, availableCityOptions, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, contactUsFields, darkColors, dateFormat, defaultMarketFormValues, defaultMarketInfoFormValues, defaultRegion, defaultStallholderFormValues, defaultStallholderInfoFormValues, fonts, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, marketBasicInfoFields, marketEndDateFields, marketInfo, marketInfoPaymentInfo, marketStartDateFields, normalizeUrl, packagingOptions, paymentMethodOptions, producedIngOptions, profileFields, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, sortDatesChronologically, stallTypeOptions, stallholderBasicInfoFields, stallholderElectricity, stallholderEndDateFields, stallholderFullAddress, stallholderGazebo, stallholderLocationDescription, stallholderMultiLocation, stallholderPackaging, stallholderPaymentMethod, stallholderPriceRange, stallholderProducedIn, stallholderStallSize, stallholderStartDateFields, stallholderTable, statusOptions, tagOptions, testersFields, timeFormat, truncateText, useAddParticipantToChat, useAddUserFavouriteResource, useAdminUpdateResourceType, useContactUs, useContactUsForm, useCreateBulkNotifications, useCreateChat, useCreateMarket, useCreateMarketInfo, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateStallholder, useCreateStallholderInfo, useCreateTester, useCreateUser, useDeleteChat, useDeleteMarket, useDeleteNotification, useDeleteRelation, useDeleteStallholder, useDeleteTester, useDeleteUser, useGetChat, useGetChatSubscription, useGetMarket, useGetMarketInfo, useGetMarketRelations, useGetMarkets, useGetMarketsByRegion, useGetMarketsNearMe, useGetNotificationCountSubscription, useGetRelation, useGetRelationByMarketAndStallholder, useGetResourceConnections, useGetStallholder, useGetStallholderInfo, useGetStallholderRelations, useGetStallholders, useGetStallholdersByRegion, useGetTester, useGetTesters, useGetUser, useGetUserChats, useGetUserFavourites, useGetUserMarkets, useGetUserNotificationsSubscription, useGetUserStallholder, useGetUsers, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, useMarketForm, useMarketInfoForm, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchMarkets, useSearchStallholders, useSendChatMessage, useStallholderForm, useStallholderInfoForm, useTestersForm, useUpdateMarket, useUpdateMarketInfo, useUpdateRelation, useUpdateStallholder, useUpdateStallholderInfo, useUpdateTester, useUpdateUser, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, validateVerificationTokenFields };
|
package/dist/index.d.ts
CHANGED
|
@@ -562,16 +562,13 @@ type NotificationCount = {
|
|
|
562
562
|
total: number;
|
|
563
563
|
unread: number;
|
|
564
564
|
};
|
|
565
|
-
type
|
|
566
|
-
|
|
565
|
+
type CreateBulkNotificationInput = {
|
|
566
|
+
userIds: string[];
|
|
567
567
|
title: string;
|
|
568
568
|
message: string;
|
|
569
569
|
type?: EnumNotificationType;
|
|
570
570
|
data?: Record<string, unknown>;
|
|
571
571
|
};
|
|
572
|
-
type CreateBulkNotificationInput = Omit<CreateNotificationInput, "userId"> & {
|
|
573
|
-
userIds: string[];
|
|
574
|
-
};
|
|
575
572
|
type MarkNotificationReadInput = {
|
|
576
573
|
notificationIds: string[];
|
|
577
574
|
};
|
|
@@ -830,11 +827,6 @@ declare const useGetMarketInfo: (marketId: string) => {
|
|
|
830
827
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
831
828
|
};
|
|
832
829
|
|
|
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
830
|
declare const useCreateBulkNotifications: () => {
|
|
839
831
|
createBulkNotifications: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
840
832
|
error: _apollo_client.ApolloError | undefined;
|
|
@@ -856,17 +848,15 @@ declare const useDeleteNotification: () => {
|
|
|
856
848
|
loading: boolean;
|
|
857
849
|
};
|
|
858
850
|
|
|
859
|
-
declare const
|
|
851
|
+
declare const useGetUserNotificationsSubscription: (userId: string) => {
|
|
860
852
|
error: _apollo_client.ApolloError | undefined;
|
|
861
853
|
loading: boolean;
|
|
862
854
|
notifications: NotificationType[];
|
|
863
|
-
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
864
855
|
};
|
|
865
|
-
declare const
|
|
856
|
+
declare const useGetNotificationCountSubscription: (userId: string) => {
|
|
866
857
|
error: _apollo_client.ApolloError | undefined;
|
|
867
858
|
loading: boolean;
|
|
868
859
|
notificationCount: NotificationCount;
|
|
869
|
-
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
870
860
|
};
|
|
871
861
|
|
|
872
862
|
declare const useCreatePoster: () => {
|
|
@@ -1076,8 +1066,6 @@ declare const useGetUserFavourites: () => {
|
|
|
1076
1066
|
};
|
|
1077
1067
|
};
|
|
1078
1068
|
|
|
1079
|
-
declare const GET_CHAT_MESSAGE: _apollo_client.DocumentNode;
|
|
1080
|
-
|
|
1081
1069
|
interface PlacePrediction {
|
|
1082
1070
|
place_id: string;
|
|
1083
1071
|
description: string;
|
|
@@ -1266,4 +1254,4 @@ declare const availableRegionOptions: OptionItem[];
|
|
|
1266
1254
|
declare const paymentMethodOptions: OptionItem[];
|
|
1267
1255
|
declare function normalizeUrl(url: string): string;
|
|
1268
1256
|
|
|
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
|
|
1257
|
+
export { type AdminUpdateResourceType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatInput, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateLoginFormData, type CreateMarketFormData, type CreateMarketInfoFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateStallholderFormData, type CreateStallholderInfoFormData, type CreateTestersFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type DateTimeType, type DateTimeWithPriceType, EnumInviteStatus, EnumNotification, EnumNotificationType, EnumOSType, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumUserLicence, EnumUserRole, type FormDateField, type FormField, type GeocodeLocation, type ImageObjectType, ImageTypeEnum, type LocationType, type LoginFormData, type MapMultiLocation, type MarkAllNotificationsReadInput, type MarkNotificationReadInput, type MarketFormData, type MarketInfoFormData, type MarketInfoType, type MarketType, type MarketWithConnectionDatesType, type NotificationCount, type NotificationType, type Nullable, type OptionItem, type PaymentInfoType, type PlacePrediction, type PosterInputType, type Region, type RegisterFormData, type RelationDate, type RelationType, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceConnectionsType, type ResourceImageType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, type SatllholderWithConnectionDatesType, type SocialMediaType, type StallType, type StallholderAttributes, type StallholderFormData, type StallholderInfoFormData, type StallholderInfoType, type StallholderLocation, type StallholderType, type Subcategory, type SubcategoryItems, type TesterType, type TestersFormData, USER_STORAGE_KEY, type UserFormData, type UserType, type ValidateVerificationTokenFormData, availableCategories, availableCityOptions, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, contactUsFields, darkColors, dateFormat, defaultMarketFormValues, defaultMarketInfoFormValues, defaultRegion, defaultStallholderFormValues, defaultStallholderInfoFormValues, fonts, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, marketBasicInfoFields, marketEndDateFields, marketInfo, marketInfoPaymentInfo, marketStartDateFields, normalizeUrl, packagingOptions, paymentMethodOptions, producedIngOptions, profileFields, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, sortDatesChronologically, stallTypeOptions, stallholderBasicInfoFields, stallholderElectricity, stallholderEndDateFields, stallholderFullAddress, stallholderGazebo, stallholderLocationDescription, stallholderMultiLocation, stallholderPackaging, stallholderPaymentMethod, stallholderPriceRange, stallholderProducedIn, stallholderStallSize, stallholderStartDateFields, stallholderTable, statusOptions, tagOptions, testersFields, timeFormat, truncateText, useAddParticipantToChat, useAddUserFavouriteResource, useAdminUpdateResourceType, useContactUs, useContactUsForm, useCreateBulkNotifications, useCreateChat, useCreateMarket, useCreateMarketInfo, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateStallholder, useCreateStallholderInfo, useCreateTester, useCreateUser, useDeleteChat, useDeleteMarket, useDeleteNotification, useDeleteRelation, useDeleteStallholder, useDeleteTester, useDeleteUser, useGetChat, useGetChatSubscription, useGetMarket, useGetMarketInfo, useGetMarketRelations, useGetMarkets, useGetMarketsByRegion, useGetMarketsNearMe, useGetNotificationCountSubscription, useGetRelation, useGetRelationByMarketAndStallholder, useGetResourceConnections, useGetStallholder, useGetStallholderInfo, useGetStallholderRelations, useGetStallholders, useGetStallholdersByRegion, useGetTester, useGetTesters, useGetUser, useGetUserChats, useGetUserFavourites, useGetUserMarkets, useGetUserNotificationsSubscription, useGetUserStallholder, useGetUsers, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, useMarketForm, useMarketInfoForm, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchMarkets, useSearchStallholders, useSendChatMessage, useStallholderForm, useStallholderInfoForm, useTestersForm, useUpdateMarket, useUpdateMarketInfo, useUpdateRelation, useUpdateStallholder, useUpdateStallholderInfo, useUpdateTester, useUpdateUser, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, validateVerificationTokenFields };
|
package/dist/index.mjs
CHANGED
|
@@ -2341,6 +2341,14 @@ var USER_CHATS = gql6`
|
|
|
2341
2341
|
}
|
|
2342
2342
|
${CHAT_FIELDS_FRAGMENT}
|
|
2343
2343
|
`;
|
|
2344
|
+
var GET_CHAT_MESSAGE = gql6`
|
|
2345
|
+
subscription {
|
|
2346
|
+
getChatMessage {
|
|
2347
|
+
...ChatFields
|
|
2348
|
+
}
|
|
2349
|
+
}
|
|
2350
|
+
${CHAT_FIELDS_FRAGMENT}
|
|
2351
|
+
`;
|
|
2344
2352
|
|
|
2345
2353
|
// src/graphql/mutations/chat.ts
|
|
2346
2354
|
var CREATE_CHAT_MUTATION = gql7`
|
|
@@ -2465,19 +2473,6 @@ var useRemoveParticipantFromChat = () => {
|
|
|
2465
2473
|
|
|
2466
2474
|
// src/graphql/hooks/chat/hooksQuery.ts
|
|
2467
2475
|
import { useQuery, useSubscription } from "@apollo/client";
|
|
2468
|
-
|
|
2469
|
-
// src/graphql/subscriptions/chat.ts
|
|
2470
|
-
import { gql as gql8 } from "@apollo/client";
|
|
2471
|
-
var GET_CHAT_MESSAGE = gql8`
|
|
2472
|
-
subscription {
|
|
2473
|
-
getChatMessage {
|
|
2474
|
-
...ChatFields
|
|
2475
|
-
}
|
|
2476
|
-
}
|
|
2477
|
-
${CHAT_FIELDS_FRAGMENT}
|
|
2478
|
-
`;
|
|
2479
|
-
|
|
2480
|
-
// src/graphql/hooks/chat/hooksQuery.ts
|
|
2481
2476
|
var useGetChat = (_id) => {
|
|
2482
2477
|
const { loading, error, data, refetch } = useQuery(CHAT, {
|
|
2483
2478
|
fetchPolicy: "network-only",
|
|
@@ -2504,8 +2499,8 @@ var useGetChatSubscription = () => {
|
|
|
2504
2499
|
import { useMutation as useMutation4 } from "@apollo/client";
|
|
2505
2500
|
|
|
2506
2501
|
// src/graphql/mutations/contactUs.ts
|
|
2507
|
-
import { gql as
|
|
2508
|
-
var CONTACT_US_MUTATION =
|
|
2502
|
+
import { gql as gql8 } from "@apollo/client";
|
|
2503
|
+
var CONTACT_US_MUTATION = gql8`
|
|
2509
2504
|
mutation contactUs($input: ContactUsInputType!) {
|
|
2510
2505
|
contactUs(input: $input) {
|
|
2511
2506
|
message
|
|
@@ -2523,8 +2518,8 @@ var useContactUs = () => {
|
|
|
2523
2518
|
import { useMutation as useMutation5 } from "@apollo/client";
|
|
2524
2519
|
|
|
2525
2520
|
// src/graphql/mutations/market.ts
|
|
2526
|
-
import { gql as
|
|
2527
|
-
var CREATE_MARKET_MUTATION =
|
|
2521
|
+
import { gql as gql9 } from "@apollo/client";
|
|
2522
|
+
var CREATE_MARKET_MUTATION = gql9`
|
|
2528
2523
|
mutation createMarket($input: MarketInputType!) {
|
|
2529
2524
|
createMarket(input: $input) {
|
|
2530
2525
|
...MarketFields
|
|
@@ -2532,7 +2527,7 @@ var CREATE_MARKET_MUTATION = gql10`
|
|
|
2532
2527
|
}
|
|
2533
2528
|
${MARKET}
|
|
2534
2529
|
`;
|
|
2535
|
-
var UPDATE_MARKET_MUTATION =
|
|
2530
|
+
var UPDATE_MARKET_MUTATION = gql9`
|
|
2536
2531
|
mutation updateMarket($_id: ID!, $input: MarketInputType!) {
|
|
2537
2532
|
updateMarket(_id: $_id, input: $input) {
|
|
2538
2533
|
...MarketFields
|
|
@@ -2540,12 +2535,12 @@ var UPDATE_MARKET_MUTATION = gql10`
|
|
|
2540
2535
|
}
|
|
2541
2536
|
${MARKET}
|
|
2542
2537
|
`;
|
|
2543
|
-
var DELETE_MARKET_MUTATION =
|
|
2538
|
+
var DELETE_MARKET_MUTATION = gql9`
|
|
2544
2539
|
mutation deleteMarket($_id: ID!) {
|
|
2545
2540
|
deleteMarket(_id: $_id)
|
|
2546
2541
|
}
|
|
2547
2542
|
`;
|
|
2548
|
-
var CREATE_MARKET_INFO_MUTATION =
|
|
2543
|
+
var CREATE_MARKET_INFO_MUTATION = gql9`
|
|
2549
2544
|
mutation createMarketInfo($input: MarketInfoInputType!) {
|
|
2550
2545
|
createMarketInfo(input: $input) {
|
|
2551
2546
|
...MarketInfoFields
|
|
@@ -2553,7 +2548,7 @@ var CREATE_MARKET_INFO_MUTATION = gql10`
|
|
|
2553
2548
|
}
|
|
2554
2549
|
${MARKET_INFO}
|
|
2555
2550
|
`;
|
|
2556
|
-
var UPDATE_MARKET_INFO_MUTATION =
|
|
2551
|
+
var UPDATE_MARKET_INFO_MUTATION = gql9`
|
|
2557
2552
|
mutation updateMarketInfo($_id: ID!, $input: MarketInfoInputType!) {
|
|
2558
2553
|
updateMarketInfo(_id: $_id, input: $input) {
|
|
2559
2554
|
...MarketInfoFields
|
|
@@ -2563,8 +2558,8 @@ var UPDATE_MARKET_INFO_MUTATION = gql10`
|
|
|
2563
2558
|
`;
|
|
2564
2559
|
|
|
2565
2560
|
// src/graphql/queries/user.ts
|
|
2566
|
-
import { gql as
|
|
2567
|
-
var GET_USERS =
|
|
2561
|
+
import { gql as gql10 } from "@apollo/client";
|
|
2562
|
+
var GET_USERS = gql10`
|
|
2568
2563
|
query getUsers {
|
|
2569
2564
|
users {
|
|
2570
2565
|
...UserFields
|
|
@@ -2572,7 +2567,7 @@ var GET_USERS = gql11`
|
|
|
2572
2567
|
}
|
|
2573
2568
|
${USER_FIELDS_FRAGMENT}
|
|
2574
2569
|
`;
|
|
2575
|
-
var GET_USER =
|
|
2570
|
+
var GET_USER = gql10`
|
|
2576
2571
|
query getUser($_id: ID!) {
|
|
2577
2572
|
user(_id: $_id) {
|
|
2578
2573
|
...UserFields
|
|
@@ -2580,7 +2575,7 @@ var GET_USER = gql11`
|
|
|
2580
2575
|
}
|
|
2581
2576
|
${USER_FIELDS_FRAGMENT}
|
|
2582
2577
|
`;
|
|
2583
|
-
var GET_USER_MARKETS =
|
|
2578
|
+
var GET_USER_MARKETS = gql10`
|
|
2584
2579
|
query getUserMarkets {
|
|
2585
2580
|
userMarkets {
|
|
2586
2581
|
...MarketFields
|
|
@@ -2588,7 +2583,7 @@ var GET_USER_MARKETS = gql11`
|
|
|
2588
2583
|
}
|
|
2589
2584
|
${MARKET}
|
|
2590
2585
|
`;
|
|
2591
|
-
var GET_USER_STALLHOLDER =
|
|
2586
|
+
var GET_USER_STALLHOLDER = gql10`
|
|
2592
2587
|
query getUserStallholder {
|
|
2593
2588
|
userStallholder {
|
|
2594
2589
|
...StallholderFields
|
|
@@ -2596,7 +2591,7 @@ var GET_USER_STALLHOLDER = gql11`
|
|
|
2596
2591
|
}
|
|
2597
2592
|
${STALLHOLDER}
|
|
2598
2593
|
`;
|
|
2599
|
-
var GET_USER_FAVOURITES =
|
|
2594
|
+
var GET_USER_FAVOURITES = gql10`
|
|
2600
2595
|
query getUserFavourites {
|
|
2601
2596
|
userFavourites {
|
|
2602
2597
|
markets {
|
|
@@ -2758,11 +2753,11 @@ var useGetMarketInfo = (marketId) => {
|
|
|
2758
2753
|
import { useMutation as useMutation6 } from "@apollo/client";
|
|
2759
2754
|
|
|
2760
2755
|
// src/graphql/mutations/notification.ts
|
|
2761
|
-
import { gql as
|
|
2756
|
+
import { gql as gql12 } from "@apollo/client";
|
|
2762
2757
|
|
|
2763
2758
|
// src/graphql/queries/notification.ts
|
|
2764
|
-
import { gql as
|
|
2765
|
-
var USER_NOTIFICATION_FRAGMENT =
|
|
2759
|
+
import { gql as gql11 } from "@apollo/client";
|
|
2760
|
+
var USER_NOTIFICATION_FRAGMENT = gql11`
|
|
2766
2761
|
fragment UserNotificationFields on Notification {
|
|
2767
2762
|
_id
|
|
2768
2763
|
userId
|
|
@@ -2775,7 +2770,7 @@ var USER_NOTIFICATION_FRAGMENT = gql12`
|
|
|
2775
2770
|
updatedAt
|
|
2776
2771
|
}
|
|
2777
2772
|
`;
|
|
2778
|
-
var GET_USER_NOTIFICATIONS =
|
|
2773
|
+
var GET_USER_NOTIFICATIONS = gql11`
|
|
2779
2774
|
query getUserNotifications($userId: String!, $limit: Int, $offset: Int) {
|
|
2780
2775
|
userNotifications(userId: $userId, limit: $limit, offset: $offset) {
|
|
2781
2776
|
...UserNotificationFields
|
|
@@ -2783,7 +2778,7 @@ var GET_USER_NOTIFICATIONS = gql12`
|
|
|
2783
2778
|
}
|
|
2784
2779
|
${USER_NOTIFICATION_FRAGMENT}
|
|
2785
2780
|
`;
|
|
2786
|
-
var GET_NOTIFICATION_COUNT =
|
|
2781
|
+
var GET_NOTIFICATION_COUNT = gql11`
|
|
2787
2782
|
query getNotificationCount($userId: String!) {
|
|
2788
2783
|
notificationCount(userId: $userId) {
|
|
2789
2784
|
total
|
|
@@ -2793,15 +2788,7 @@ var GET_NOTIFICATION_COUNT = gql12`
|
|
|
2793
2788
|
`;
|
|
2794
2789
|
|
|
2795
2790
|
// src/graphql/mutations/notification.ts
|
|
2796
|
-
var
|
|
2797
|
-
mutation createNotification($input: CreateNotificationInput!) {
|
|
2798
|
-
createNotification(input: $input) {
|
|
2799
|
-
...UserNotificationFields
|
|
2800
|
-
}
|
|
2801
|
-
}
|
|
2802
|
-
${USER_NOTIFICATION_FRAGMENT}
|
|
2803
|
-
`;
|
|
2804
|
-
var CREATE_BULK_NOTIFICATIONS = gql13`
|
|
2791
|
+
var CREATE_BULK_NOTIFICATIONS = gql12`
|
|
2805
2792
|
mutation createBulkNotifications($input: CreateBulkNotificationInput!) {
|
|
2806
2793
|
createBulkNotifications(input: $input) {
|
|
2807
2794
|
...UserNotificationFields
|
|
@@ -2809,7 +2796,7 @@ var CREATE_BULK_NOTIFICATIONS = gql13`
|
|
|
2809
2796
|
}
|
|
2810
2797
|
${USER_NOTIFICATION_FRAGMENT}
|
|
2811
2798
|
`;
|
|
2812
|
-
var MARK_NOTIFICATION_READ =
|
|
2799
|
+
var MARK_NOTIFICATION_READ = gql12`
|
|
2813
2800
|
mutation markNotificationRead($input: MarkNotificationReadInput!) {
|
|
2814
2801
|
markNotificationRead(input: $input) {
|
|
2815
2802
|
...UserNotificationFields
|
|
@@ -2817,22 +2804,18 @@ var MARK_NOTIFICATION_READ = gql13`
|
|
|
2817
2804
|
}
|
|
2818
2805
|
${USER_NOTIFICATION_FRAGMENT}
|
|
2819
2806
|
`;
|
|
2820
|
-
var MARK_ALL_NOTIFICATIONS_READ =
|
|
2807
|
+
var MARK_ALL_NOTIFICATIONS_READ = gql12`
|
|
2821
2808
|
mutation markAllNotificationsRead($input: MarkAllNotificationsReadInput!) {
|
|
2822
2809
|
markAllNotificationsRead(input: $input)
|
|
2823
2810
|
}
|
|
2824
2811
|
`;
|
|
2825
|
-
var DELETE_NOTIFICATION =
|
|
2812
|
+
var DELETE_NOTIFICATION = gql12`
|
|
2826
2813
|
mutation deleteNotification($_id: ID!) {
|
|
2827
2814
|
deleteNotification(_id: $_id)
|
|
2828
2815
|
}
|
|
2829
2816
|
`;
|
|
2830
2817
|
|
|
2831
2818
|
// src/graphql/hooks/notifications/hooksMutation.ts
|
|
2832
|
-
var useCreateNotification = () => {
|
|
2833
|
-
const [createNotification, { loading, error }] = useMutation6(CREATE_NOTIFICATION);
|
|
2834
|
-
return { createNotification, error, loading };
|
|
2835
|
-
};
|
|
2836
2819
|
var useCreateBulkNotifications = () => {
|
|
2837
2820
|
const [createBulkNotifications, { loading, error }] = useMutation6(
|
|
2838
2821
|
CREATE_BULK_NOTIFICATIONS
|
|
@@ -2867,40 +2850,62 @@ var useDeleteNotification = () => {
|
|
|
2867
2850
|
return { deleteNotification, error, loading };
|
|
2868
2851
|
};
|
|
2869
2852
|
|
|
2870
|
-
// src/graphql/hooks/notifications/
|
|
2871
|
-
import {
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2853
|
+
// src/graphql/hooks/notifications/hooksSubscription.ts
|
|
2854
|
+
import { useSubscription as useSubscription2 } from "@apollo/client";
|
|
2855
|
+
|
|
2856
|
+
// src/graphql/subscriptions/notification.ts
|
|
2857
|
+
import { gql as gql13 } from "@apollo/client";
|
|
2858
|
+
var USER_NOTIFICATION_FRAGMENT2 = gql13`
|
|
2859
|
+
fragment UserNotificationFields on Notification {
|
|
2860
|
+
_id
|
|
2861
|
+
userId
|
|
2862
|
+
title
|
|
2863
|
+
message
|
|
2864
|
+
type
|
|
2865
|
+
isRead
|
|
2866
|
+
data
|
|
2867
|
+
createdAt
|
|
2868
|
+
updatedAt
|
|
2869
|
+
}
|
|
2870
|
+
`;
|
|
2871
|
+
var GET_USER_NOTIFICATIONS_SUBSCRIPTION = gql13`
|
|
2872
|
+
subscription getUserNotifications($userId: String!) {
|
|
2873
|
+
getUserNotifications(userId: $userId) {
|
|
2874
|
+
...UserNotificationFields
|
|
2880
2875
|
}
|
|
2876
|
+
}
|
|
2877
|
+
${USER_NOTIFICATION_FRAGMENT2}
|
|
2878
|
+
`;
|
|
2879
|
+
var GET_NOTIFICATION_COUNT_SUBSCRIPTION = gql13`
|
|
2880
|
+
subscription getNotificationCount($userId: String!) {
|
|
2881
|
+
getNotificationCount(userId: $userId) {
|
|
2882
|
+
total
|
|
2883
|
+
unread
|
|
2884
|
+
}
|
|
2885
|
+
}
|
|
2886
|
+
`;
|
|
2887
|
+
|
|
2888
|
+
// src/graphql/hooks/notifications/hooksSubscription.ts
|
|
2889
|
+
var useGetUserNotificationsSubscription = (userId) => {
|
|
2890
|
+
const { data, loading, error } = useSubscription2(GET_USER_NOTIFICATIONS_SUBSCRIPTION, {
|
|
2891
|
+
skip: !userId,
|
|
2892
|
+
variables: { userId }
|
|
2881
2893
|
});
|
|
2882
|
-
const notifications = data?.userNotifications;
|
|
2883
2894
|
return {
|
|
2884
2895
|
error,
|
|
2885
2896
|
loading,
|
|
2886
|
-
notifications
|
|
2887
|
-
refetch
|
|
2897
|
+
notifications: data?.getUserNotifications || []
|
|
2888
2898
|
};
|
|
2889
2899
|
};
|
|
2890
|
-
var
|
|
2891
|
-
const { data,
|
|
2892
|
-
fetchPolicy: "no-cache",
|
|
2900
|
+
var useGetNotificationCountSubscription = (userId) => {
|
|
2901
|
+
const { data, loading, error } = useSubscription2(GET_NOTIFICATION_COUNT_SUBSCRIPTION, {
|
|
2893
2902
|
skip: !userId,
|
|
2894
|
-
variables: {
|
|
2895
|
-
userId
|
|
2896
|
-
}
|
|
2903
|
+
variables: { userId }
|
|
2897
2904
|
});
|
|
2898
|
-
const notificationCount = data?.notificationCount;
|
|
2899
2905
|
return {
|
|
2900
2906
|
error,
|
|
2901
2907
|
loading,
|
|
2902
|
-
notificationCount,
|
|
2903
|
-
refetch
|
|
2908
|
+
notificationCount: data?.getNotificationCount || { total: 0, unread: 0 }
|
|
2904
2909
|
};
|
|
2905
2910
|
};
|
|
2906
2911
|
|
|
@@ -3299,9 +3304,9 @@ var useDeleteRelation = () => {
|
|
|
3299
3304
|
};
|
|
3300
3305
|
|
|
3301
3306
|
// src/graphql/hooks/relation/hooksQuery.ts
|
|
3302
|
-
import { useQuery as
|
|
3307
|
+
import { useQuery as useQuery3 } from "@apollo/client";
|
|
3303
3308
|
var useGetRelation = (id) => {
|
|
3304
|
-
const { loading, error, data, refetch } =
|
|
3309
|
+
const { loading, error, data, refetch } = useQuery3(GET_RELATION, {
|
|
3305
3310
|
fetchPolicy: "network-only",
|
|
3306
3311
|
skip: id === "",
|
|
3307
3312
|
variables: { id }
|
|
@@ -3310,7 +3315,7 @@ var useGetRelation = (id) => {
|
|
|
3310
3315
|
return { error, loading, refetch, relation };
|
|
3311
3316
|
};
|
|
3312
3317
|
var useGetRelationByMarketAndStallholder = (marketId, stallholderId) => {
|
|
3313
|
-
const { loading, error, data, refetch } =
|
|
3318
|
+
const { loading, error, data, refetch } = useQuery3(
|
|
3314
3319
|
GET_RELATION_BY_MARKET_AND_STALLHOLDER,
|
|
3315
3320
|
{
|
|
3316
3321
|
fetchPolicy: "network-only",
|
|
@@ -3322,7 +3327,7 @@ var useGetRelationByMarketAndStallholder = (marketId, stallholderId) => {
|
|
|
3322
3327
|
return { error, loading, refetch, relationByMarketAndStallholder };
|
|
3323
3328
|
};
|
|
3324
3329
|
var useGetMarketRelations = (marketId) => {
|
|
3325
|
-
const { loading, error, data, refetch } =
|
|
3330
|
+
const { loading, error, data, refetch } = useQuery3(GET_MARKET_RELATIONS, {
|
|
3326
3331
|
fetchPolicy: "network-only",
|
|
3327
3332
|
skip: marketId === "",
|
|
3328
3333
|
variables: { marketId }
|
|
@@ -3331,7 +3336,7 @@ var useGetMarketRelations = (marketId) => {
|
|
|
3331
3336
|
return { error, loading, marketRelations, refetch };
|
|
3332
3337
|
};
|
|
3333
3338
|
var useGetStallholderRelations = (stallholderId) => {
|
|
3334
|
-
const { loading, error, data, refetch } =
|
|
3339
|
+
const { loading, error, data, refetch } = useQuery3(
|
|
3335
3340
|
GET_STALLHOLDER_RELATIONS,
|
|
3336
3341
|
{
|
|
3337
3342
|
fetchPolicy: "network-only",
|
|
@@ -3343,7 +3348,7 @@ var useGetStallholderRelations = (stallholderId) => {
|
|
|
3343
3348
|
return { error, loading, refetch, stallholderRelations };
|
|
3344
3349
|
};
|
|
3345
3350
|
var useGetResourceConnections = (resourceId, resourceType) => {
|
|
3346
|
-
const { loading, error, data, refetch } =
|
|
3351
|
+
const { loading, error, data, refetch } = useQuery3(GET_RESOURCE_CONNECTIONS, {
|
|
3347
3352
|
fetchPolicy: "network-only",
|
|
3348
3353
|
variables: { resourceId, resourceType }
|
|
3349
3354
|
});
|
|
@@ -3477,9 +3482,9 @@ var useUpdateStallholderInfo = () => {
|
|
|
3477
3482
|
};
|
|
3478
3483
|
|
|
3479
3484
|
// src/graphql/hooks/stallholder/hooksQuery.ts
|
|
3480
|
-
import { useQuery as
|
|
3485
|
+
import { useQuery as useQuery4 } from "@apollo/client";
|
|
3481
3486
|
var useGetStallholders = () => {
|
|
3482
|
-
const { loading, error, data, refetch } =
|
|
3487
|
+
const { loading, error, data, refetch } = useQuery4(GET_STALLHOLDERS, {
|
|
3483
3488
|
fetchPolicy: "network-only"
|
|
3484
3489
|
});
|
|
3485
3490
|
const stallholders = data?.stallholders;
|
|
@@ -3491,7 +3496,7 @@ var useGetStallholders = () => {
|
|
|
3491
3496
|
};
|
|
3492
3497
|
};
|
|
3493
3498
|
var useGetStallholder = (_id) => {
|
|
3494
|
-
const { loading, error, data, refetch } =
|
|
3499
|
+
const { loading, error, data, refetch } = useQuery4(GET_STALLHOLDER, {
|
|
3495
3500
|
fetchPolicy: "network-only",
|
|
3496
3501
|
skip: !_id,
|
|
3497
3502
|
variables: { _id }
|
|
@@ -3500,7 +3505,7 @@ var useGetStallholder = (_id) => {
|
|
|
3500
3505
|
return { error, loading, refetch, stallholder };
|
|
3501
3506
|
};
|
|
3502
3507
|
var useGetStallholdersByRegion = (region) => {
|
|
3503
|
-
const { loading, error, data, refetch } =
|
|
3508
|
+
const { loading, error, data, refetch } = useQuery4(
|
|
3504
3509
|
GET_STALLHOLDERS_BY_REGION,
|
|
3505
3510
|
{
|
|
3506
3511
|
fetchPolicy: "no-cache",
|
|
@@ -3512,7 +3517,7 @@ var useGetStallholdersByRegion = (region) => {
|
|
|
3512
3517
|
return { error, loading, refetch, stallholdersByRegion };
|
|
3513
3518
|
};
|
|
3514
3519
|
var useSearchStallholders = (search, region) => {
|
|
3515
|
-
const { loading, error, data, refetch } =
|
|
3520
|
+
const { loading, error, data, refetch } = useQuery4(SEARCH_STALLHOLDERS, {
|
|
3516
3521
|
fetchPolicy: "network-only",
|
|
3517
3522
|
skip: search.length < 3,
|
|
3518
3523
|
variables: { region, search }
|
|
@@ -3521,7 +3526,7 @@ var useSearchStallholders = (search, region) => {
|
|
|
3521
3526
|
return { error, loading, refetch, stallholderSearch };
|
|
3522
3527
|
};
|
|
3523
3528
|
var useGetStallholderInfo = (stallholderId) => {
|
|
3524
|
-
const { loading, error, data, refetch } =
|
|
3529
|
+
const { loading, error, data, refetch } = useQuery4(GET_STALLHOLDER_INFO, {
|
|
3525
3530
|
fetchPolicy: "network-only",
|
|
3526
3531
|
skip: !stallholderId,
|
|
3527
3532
|
variables: { stallholderId }
|
|
@@ -3627,9 +3632,9 @@ var useDeleteTester = () => {
|
|
|
3627
3632
|
};
|
|
3628
3633
|
|
|
3629
3634
|
// src/graphql/hooks/testers/hooksQuery.ts
|
|
3630
|
-
import { useQuery as
|
|
3635
|
+
import { useQuery as useQuery5 } from "@apollo/client";
|
|
3631
3636
|
var useGetTesters = () => {
|
|
3632
|
-
const { data, loading, error, refetch } =
|
|
3637
|
+
const { data, loading, error, refetch } = useQuery5(GET_TESTERS);
|
|
3633
3638
|
const testers = data?.testers;
|
|
3634
3639
|
return {
|
|
3635
3640
|
error,
|
|
@@ -3639,7 +3644,7 @@ var useGetTesters = () => {
|
|
|
3639
3644
|
};
|
|
3640
3645
|
};
|
|
3641
3646
|
var useGetTester = (_id) => {
|
|
3642
|
-
const { data, loading, error, refetch } =
|
|
3647
|
+
const { data, loading, error, refetch } = useQuery5(GET_TESTER, {
|
|
3643
3648
|
skip: !_id,
|
|
3644
3649
|
variables: { _id }
|
|
3645
3650
|
});
|
|
@@ -3748,37 +3753,37 @@ var useRemoveUserFavouriteResource = () => {
|
|
|
3748
3753
|
};
|
|
3749
3754
|
|
|
3750
3755
|
// src/graphql/hooks/user/hooksQuery.ts
|
|
3751
|
-
import { useQuery as
|
|
3756
|
+
import { useQuery as useQuery6 } from "@apollo/client";
|
|
3752
3757
|
var useGetUsers = () => {
|
|
3753
|
-
const { loading, error, data, refetch } =
|
|
3758
|
+
const { loading, error, data, refetch } = useQuery6(GET_USERS, {
|
|
3754
3759
|
fetchPolicy: "network-only"
|
|
3755
3760
|
});
|
|
3756
3761
|
const users = data?.users;
|
|
3757
3762
|
return { error, loading, refetch, users };
|
|
3758
3763
|
};
|
|
3759
3764
|
var useGetUser = (_id) => {
|
|
3760
|
-
const { loading, error, data, refetch } =
|
|
3765
|
+
const { loading, error, data, refetch } = useQuery6(GET_USER, {
|
|
3761
3766
|
variables: { _id }
|
|
3762
3767
|
});
|
|
3763
3768
|
const user = data?.user;
|
|
3764
3769
|
return { error, loading, refetch, user };
|
|
3765
3770
|
};
|
|
3766
3771
|
var useGetUserMarkets = () => {
|
|
3767
|
-
const { loading, error, data, refetch } =
|
|
3772
|
+
const { loading, error, data, refetch } = useQuery6(GET_USER_MARKETS, {
|
|
3768
3773
|
fetchPolicy: "network-only"
|
|
3769
3774
|
});
|
|
3770
3775
|
const userMarkets = data?.userMarkets;
|
|
3771
3776
|
return { error, loading, refetch, userMarkets };
|
|
3772
3777
|
};
|
|
3773
3778
|
var useGetUserStallholder = () => {
|
|
3774
|
-
const { loading, error, data, refetch } =
|
|
3779
|
+
const { loading, error, data, refetch } = useQuery6(GET_USER_STALLHOLDER, {
|
|
3775
3780
|
fetchPolicy: "network-only"
|
|
3776
3781
|
});
|
|
3777
3782
|
const userStallholder = data?.userStallholder;
|
|
3778
3783
|
return { error, loading, refetch, userStallholder };
|
|
3779
3784
|
};
|
|
3780
3785
|
var useGetUserFavourites = () => {
|
|
3781
|
-
const { loading, error, data, refetch } =
|
|
3786
|
+
const { loading, error, data, refetch } = useQuery6(GET_USER_FAVOURITES, {
|
|
3782
3787
|
fetchPolicy: "network-only"
|
|
3783
3788
|
});
|
|
3784
3789
|
const markets = data?.userFavourites.markets;
|
|
@@ -5036,7 +5041,6 @@ export {
|
|
|
5036
5041
|
EnumSocialMedia,
|
|
5037
5042
|
EnumUserLicence,
|
|
5038
5043
|
EnumUserRole,
|
|
5039
|
-
GET_CHAT_MESSAGE,
|
|
5040
5044
|
ImageTypeEnum,
|
|
5041
5045
|
SAVED_EMAIL_KEY,
|
|
5042
5046
|
SAVED_PASSWORD_KEY,
|
|
@@ -5114,7 +5118,6 @@ export {
|
|
|
5114
5118
|
useCreateChat,
|
|
5115
5119
|
useCreateMarket,
|
|
5116
5120
|
useCreateMarketInfo,
|
|
5117
|
-
useCreateNotification,
|
|
5118
5121
|
useCreatePoster,
|
|
5119
5122
|
useCreatePushToken,
|
|
5120
5123
|
useCreateRelation,
|
|
@@ -5137,7 +5140,7 @@ export {
|
|
|
5137
5140
|
useGetMarkets,
|
|
5138
5141
|
useGetMarketsByRegion,
|
|
5139
5142
|
useGetMarketsNearMe,
|
|
5140
|
-
|
|
5143
|
+
useGetNotificationCountSubscription,
|
|
5141
5144
|
useGetRelation,
|
|
5142
5145
|
useGetRelationByMarketAndStallholder,
|
|
5143
5146
|
useGetResourceConnections,
|
|
@@ -5152,7 +5155,7 @@ export {
|
|
|
5152
5155
|
useGetUserChats,
|
|
5153
5156
|
useGetUserFavourites,
|
|
5154
5157
|
useGetUserMarkets,
|
|
5155
|
-
|
|
5158
|
+
useGetUserNotificationsSubscription,
|
|
5156
5159
|
useGetUserStallholder,
|
|
5157
5160
|
useGetUsers,
|
|
5158
5161
|
useLocationSearch,
|