@timardex/cluemart-shared 1.0.81 → 1.0.82
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 +282 -171
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +29 -9
- package/dist/graphql/index.d.ts +29 -9
- package/dist/graphql/index.mjs +279 -69
- 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 +280 -265
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +28 -30
- package/dist/index.d.ts +28 -30
- package/dist/index.mjs +216 -196
- package/dist/index.mjs.map +1 -1
- package/dist/notification-P3Vnadx_.d.mts +64 -0
- package/dist/notification-P3Vnadx_.d.ts +64 -0
- package/dist/types/index.d.mts +2 -2
- package/dist/types/index.d.ts +2 -2
- 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
|
@@ -753,6 +753,11 @@ declare const useGetUserChats: () => {
|
|
|
753
753
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
754
754
|
userChats: ChatType[];
|
|
755
755
|
};
|
|
756
|
+
declare const useGetChatSubscription: () => {
|
|
757
|
+
chat: ChatType;
|
|
758
|
+
error: _apollo_client.ApolloError | undefined;
|
|
759
|
+
loading: boolean;
|
|
760
|
+
};
|
|
756
761
|
|
|
757
762
|
declare const useContactUs: () => {
|
|
758
763
|
contactUs: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
@@ -1040,14 +1045,29 @@ declare const useGetUserNotifications: () => {
|
|
|
1040
1045
|
userNotifications: boolean;
|
|
1041
1046
|
};
|
|
1042
1047
|
|
|
1043
|
-
declare const
|
|
1044
|
-
|
|
1045
|
-
|
|
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
|
+
};
|
|
1046
1069
|
|
|
1047
|
-
declare const
|
|
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;
|
|
1070
|
+
declare const GET_CHAT_MESSAGE: _apollo_client.DocumentNode;
|
|
1051
1071
|
|
|
1052
1072
|
interface PlacePrediction {
|
|
1053
1073
|
place_id: string;
|
|
@@ -1135,28 +1155,6 @@ declare function useTestersForm(data?: TestersFormData): CreateTestersFormData;
|
|
|
1135
1155
|
|
|
1136
1156
|
declare function useContactUsForm(data?: ContactUsFormData): CreateContactUsFormData;
|
|
1137
1157
|
|
|
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
1158
|
declare const SAVED_PASSWORD_KEY = "savedPassword";
|
|
1161
1159
|
declare const SAVED_EMAIL_KEY = "savedEmail";
|
|
1162
1160
|
declare const SAVED_TOKEN_KEY = "savedToken";
|
|
@@ -1259,4 +1257,4 @@ declare const availableRegionOptions: OptionItem[];
|
|
|
1259
1257
|
declare const paymentMethodOptions: OptionItem[];
|
|
1260
1258
|
declare function normalizeUrl(url: string): string;
|
|
1261
1259
|
|
|
1262
|
-
export { type AdminUpdateResourceType, type BaseResourceType, type BaseResourceTypeFormData,
|
|
1260
|
+
export { type AdminUpdateResourceType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatInput, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateLoginFormData, type CreateMarketFormData, type CreateMarketInfoFormData, type CreateNotificationInput, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateStallholderFormData, type CreateStallholderInfoFormData, type CreateTestersFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type DateTimeType, type DateTimeWithPriceType, EnumInviteStatus, EnumNotification, EnumOSType, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, EnumResourceTypeIcon, EnumSocialMedia, EnumUserLicence, EnumUserRole, type FormDateField, type FormField, GET_CHAT_MESSAGE, type GeocodeLocation, type ImageObjectType, ImageTypeEnum, type LocationType, type LoginFormData, type MapMultiLocation, type MarkAllNotificationsReadInput, type MarkNotificationReadInput, type MarketFormData, type MarketInfoFormData, type MarketInfoType, type MarketType, type MarketWithConnectionDatesType, type NotificationCount, type NotificationType, type NotificationTypeMap, type Nullable, type OptionItem, type PaymentInfoType, type PlacePrediction, type PosterInputType, type Region, type RegisterFormData, type RelationDate, type RelationType, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceConnectionsType, type ResourceImageType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, type SatllholderWithConnectionDatesType, type SocialMediaType, type StallType, type StallholderAttributes, type StallholderFormData, type StallholderInfoFormData, type StallholderInfoType, type StallholderLocation, type StallholderType, type Subcategory, type SubcategoryItems, type TesterType, type TestersFormData, USER_STORAGE_KEY, type UserFormData, type UserType, type ValidateVerificationTokenFormData, availableCategories, availableCityOptions, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, contactUsFields, darkColors, dateFormat, defaultMarketFormValues, defaultMarketInfoFormValues, defaultRegion, defaultStallholderFormValues, defaultStallholderInfoFormValues, fonts, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, marketBasicInfoFields, marketEndDateFields, marketInfo, marketInfoPaymentInfo, marketStartDateFields, normalizeUrl, packagingOptions, paymentMethodOptions, producedIngOptions, profileFields, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, sortDatesChronologically, stallTypeOptions, stallholderBasicInfoFields, stallholderElectricity, stallholderEndDateFields, stallholderFullAddress, stallholderGazebo, stallholderLocationDescription, stallholderMultiLocation, stallholderPackaging, stallholderPaymentMethod, stallholderPriceRange, stallholderProducedIn, stallholderStallSize, stallholderStartDateFields, stallholderTable, statusOptions, tagOptions, testersFields, timeFormat, truncateText, useAddParticipantToChat, useAddUserFavouriteResource, useAdminUpdateResourceType, useContactUs, useContactUsForm, useCreateChat, useCreateMarket, useCreateMarketInfo, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateStallholder, useCreateStallholderInfo, useCreateTester, useCreateUser, useDeleteChat, useDeleteMarket, useDeleteRelation, useDeleteStallholder, useDeleteTester, useDeleteUser, useGetChat, useGetChatSubscription, useGetMarket, useGetMarketInfo, useGetMarketRelations, useGetMarkets, useGetMarketsByRegion, useGetMarketsNearMe, useGetRelation, useGetRelationByMarketAndStallholder, useGetResourceConnections, useGetStallholder, useGetStallholderInfo, useGetStallholderRelations, useGetStallholders, useGetStallholdersByRegion, useGetTester, useGetTesters, useGetUser, useGetUserChats, useGetUserFavourites, useGetUserMarkets, useGetUserNotifications, useGetUserStallholder, useGetUsers, useLocationSearch, useLogin, useLoginForm, useLogout, useMarketForm, useMarketInfoForm, useNotifications, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchMarkets, useSearchStallholders, useSendChatMessage, useStallholderForm, useStallholderInfoForm, useTestersForm, useUpdateMarket, useUpdateMarketInfo, useUpdateRelation, useUpdateStallholder, useUpdateStallholderInfo, useUpdateTester, useUpdateUser, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, validateVerificationTokenFields };
|
package/dist/index.d.ts
CHANGED
|
@@ -753,6 +753,11 @@ declare const useGetUserChats: () => {
|
|
|
753
753
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
754
754
|
userChats: ChatType[];
|
|
755
755
|
};
|
|
756
|
+
declare const useGetChatSubscription: () => {
|
|
757
|
+
chat: ChatType;
|
|
758
|
+
error: _apollo_client.ApolloError | undefined;
|
|
759
|
+
loading: boolean;
|
|
760
|
+
};
|
|
756
761
|
|
|
757
762
|
declare const useContactUs: () => {
|
|
758
763
|
contactUs: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
@@ -1040,14 +1045,29 @@ declare const useGetUserNotifications: () => {
|
|
|
1040
1045
|
userNotifications: boolean;
|
|
1041
1046
|
};
|
|
1042
1047
|
|
|
1043
|
-
declare const
|
|
1044
|
-
|
|
1045
|
-
|
|
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
|
+
};
|
|
1046
1069
|
|
|
1047
|
-
declare const
|
|
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;
|
|
1070
|
+
declare const GET_CHAT_MESSAGE: _apollo_client.DocumentNode;
|
|
1051
1071
|
|
|
1052
1072
|
interface PlacePrediction {
|
|
1053
1073
|
place_id: string;
|
|
@@ -1135,28 +1155,6 @@ declare function useTestersForm(data?: TestersFormData): CreateTestersFormData;
|
|
|
1135
1155
|
|
|
1136
1156
|
declare function useContactUsForm(data?: ContactUsFormData): CreateContactUsFormData;
|
|
1137
1157
|
|
|
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
1158
|
declare const SAVED_PASSWORD_KEY = "savedPassword";
|
|
1161
1159
|
declare const SAVED_EMAIL_KEY = "savedEmail";
|
|
1162
1160
|
declare const SAVED_TOKEN_KEY = "savedToken";
|
|
@@ -1259,4 +1257,4 @@ declare const availableRegionOptions: OptionItem[];
|
|
|
1259
1257
|
declare const paymentMethodOptions: OptionItem[];
|
|
1260
1258
|
declare function normalizeUrl(url: string): string;
|
|
1261
1259
|
|
|
1262
|
-
export { type AdminUpdateResourceType, type BaseResourceType, type BaseResourceTypeFormData,
|
|
1260
|
+
export { type AdminUpdateResourceType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatInput, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateLoginFormData, type CreateMarketFormData, type CreateMarketInfoFormData, type CreateNotificationInput, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateStallholderFormData, type CreateStallholderInfoFormData, type CreateTestersFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type DateTimeType, type DateTimeWithPriceType, EnumInviteStatus, EnumNotification, EnumOSType, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, EnumResourceTypeIcon, EnumSocialMedia, EnumUserLicence, EnumUserRole, type FormDateField, type FormField, GET_CHAT_MESSAGE, type GeocodeLocation, type ImageObjectType, ImageTypeEnum, type LocationType, type LoginFormData, type MapMultiLocation, type MarkAllNotificationsReadInput, type MarkNotificationReadInput, type MarketFormData, type MarketInfoFormData, type MarketInfoType, type MarketType, type MarketWithConnectionDatesType, type NotificationCount, type NotificationType, type NotificationTypeMap, type Nullable, type OptionItem, type PaymentInfoType, type PlacePrediction, type PosterInputType, type Region, type RegisterFormData, type RelationDate, type RelationType, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceConnectionsType, type ResourceImageType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, type SatllholderWithConnectionDatesType, type SocialMediaType, type StallType, type StallholderAttributes, type StallholderFormData, type StallholderInfoFormData, type StallholderInfoType, type StallholderLocation, type StallholderType, type Subcategory, type SubcategoryItems, type TesterType, type TestersFormData, USER_STORAGE_KEY, type UserFormData, type UserType, type ValidateVerificationTokenFormData, availableCategories, availableCityOptions, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, contactUsFields, darkColors, dateFormat, defaultMarketFormValues, defaultMarketInfoFormValues, defaultRegion, defaultStallholderFormValues, defaultStallholderInfoFormValues, fonts, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, marketBasicInfoFields, marketEndDateFields, marketInfo, marketInfoPaymentInfo, marketStartDateFields, normalizeUrl, packagingOptions, paymentMethodOptions, producedIngOptions, profileFields, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, sortDatesChronologically, stallTypeOptions, stallholderBasicInfoFields, stallholderElectricity, stallholderEndDateFields, stallholderFullAddress, stallholderGazebo, stallholderLocationDescription, stallholderMultiLocation, stallholderPackaging, stallholderPaymentMethod, stallholderPriceRange, stallholderProducedIn, stallholderStallSize, stallholderStartDateFields, stallholderTable, statusOptions, tagOptions, testersFields, timeFormat, truncateText, useAddParticipantToChat, useAddUserFavouriteResource, useAdminUpdateResourceType, useContactUs, useContactUsForm, useCreateChat, useCreateMarket, useCreateMarketInfo, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateStallholder, useCreateStallholderInfo, useCreateTester, useCreateUser, useDeleteChat, useDeleteMarket, useDeleteRelation, useDeleteStallholder, useDeleteTester, useDeleteUser, useGetChat, useGetChatSubscription, useGetMarket, useGetMarketInfo, useGetMarketRelations, useGetMarkets, useGetMarketsByRegion, useGetMarketsNearMe, useGetRelation, useGetRelationByMarketAndStallholder, useGetResourceConnections, useGetStallholder, useGetStallholderInfo, useGetStallholderRelations, useGetStallholders, useGetStallholdersByRegion, useGetTester, useGetTesters, useGetUser, useGetUserChats, useGetUserFavourites, useGetUserMarkets, useGetUserNotifications, useGetUserStallholder, useGetUsers, useLocationSearch, useLogin, useLoginForm, useLogout, useMarketForm, useMarketInfoForm, useNotifications, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchMarkets, useSearchStallholders, useSendChatMessage, useStallholderForm, useStallholderInfoForm, useTestersForm, useUpdateMarket, useUpdateMarketInfo, useUpdateRelation, useUpdateStallholder, useUpdateStallholderInfo, useUpdateTester, useUpdateUser, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, validateVerificationTokenFields };
|