@timardex/cluemart-shared 1.0.82 → 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.
@@ -1,5 +1,5 @@
1
1
  import * as _apollo_client from '@apollo/client';
2
- import { C as ChatType, a as CreateNotificationInput, b as CreateBulkNotificationInput, M as MarkNotificationReadInput, c as MarkAllNotificationsReadInput } from '../notification-P3Vnadx_.js';
2
+ import { C as ChatType, N as NotificationType, a as NotificationCount } from '../notification-Dy46qobo.js';
3
3
  import { M as MarketType, b as MarketInfoType, c as RelationType, d as ResourceConnectionsType, e as StallholderType, f as StallholderInfoType, U as UserType } from '../global-By7aHQ1y.js';
4
4
  import { EnumResourceType } from '../enums/index.js';
5
5
  import { T as TesterType } from '../testers-CqYqJvlZ.js';
@@ -164,6 +164,46 @@ declare const useGetMarketInfo: (marketId: string) => {
164
164
  refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
165
165
  };
166
166
 
167
+ declare const useCreateNotification: () => {
168
+ createNotification: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
169
+ error: _apollo_client.ApolloError | undefined;
170
+ loading: boolean;
171
+ };
172
+ declare const useCreateBulkNotifications: () => {
173
+ createBulkNotifications: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
174
+ error: _apollo_client.ApolloError | undefined;
175
+ loading: boolean;
176
+ };
177
+ declare const useMarkNotificationRead: () => {
178
+ error: _apollo_client.ApolloError | undefined;
179
+ loading: boolean;
180
+ markNotificationRead: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
181
+ };
182
+ declare const useMarkAllNotificationsRead: () => {
183
+ error: _apollo_client.ApolloError | undefined;
184
+ loading: boolean;
185
+ markAllNotificationsRead: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
186
+ };
187
+
188
+ declare const useGetUserNotifications: (userId: string, limit?: number, offset?: number, isRead?: boolean) => {
189
+ error: _apollo_client.ApolloError | undefined;
190
+ loading: boolean;
191
+ notifications: NotificationType[];
192
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
193
+ };
194
+ declare const useGetUnreadNotifications: (userId: string, limit?: number) => {
195
+ error: _apollo_client.ApolloError | undefined;
196
+ loading: boolean;
197
+ notifications: NotificationType[];
198
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
199
+ };
200
+ declare const useGetNotificationCount: (userId: string) => {
201
+ error: _apollo_client.ApolloError | undefined;
202
+ loading: boolean;
203
+ notificationCount: NotificationCount;
204
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
205
+ };
206
+
167
207
  declare const useCreatePoster: () => {
168
208
  createPoster: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
169
209
  error: _apollo_client.ApolloError | undefined;
@@ -370,35 +410,7 @@ declare const useGetUserFavourites: () => {
370
410
  stallholders: StallholderType[];
371
411
  };
372
412
  };
373
- declare const useGetUserNotifications: () => {
374
- error: _apollo_client.ApolloError | undefined;
375
- loading: boolean;
376
- refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
377
- userNotifications: boolean;
378
- };
379
-
380
- declare const useNotifications: (userId: string) => {
381
- notifications: any;
382
- count: any;
383
- unreadNotifications: any;
384
- notificationsLoading: boolean;
385
- countLoading: boolean;
386
- unreadLoading: boolean;
387
- createLoading: boolean;
388
- createBulkLoading: boolean;
389
- markReadLoading: boolean;
390
- markAllReadLoading: boolean;
391
- notificationsError: _apollo_client.ApolloError | undefined;
392
- countError: _apollo_client.ApolloError | undefined;
393
- unreadError: _apollo_client.ApolloError | undefined;
394
- createNotification: (input: CreateNotificationInput) => Promise<_apollo_client.FetchResult<any>>;
395
- createBulkNotifications: (input: CreateBulkNotificationInput) => Promise<_apollo_client.FetchResult<any>>;
396
- markNotificationRead: (input: MarkNotificationReadInput) => Promise<_apollo_client.FetchResult<any>>;
397
- markAllNotificationsRead: (input: MarkAllNotificationsReadInput) => Promise<_apollo_client.FetchResult<any>>;
398
- refetchAll: () => void;
399
- invalidateCache: () => void;
400
- };
401
413
 
402
414
  declare const GET_CHAT_MESSAGE: _apollo_client.DocumentNode;
403
415
 
404
- export { GET_CHAT_MESSAGE, useAddParticipantToChat, useAddUserFavouriteResource, useAdminUpdateResourceType, useContactUs, 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, useLogin, useLogout, useNotifications, useRefreshToken, useRegister, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRequestPasswordReset, useResetPassword, useSearchMarkets, useSearchStallholders, useSendChatMessage, useUpdateMarket, useUpdateMarketInfo, useUpdateRelation, useUpdateStallholder, useUpdateStallholderInfo, useUpdateTester, useUpdateUser, useValidateVerificationToken };
416
+ export { GET_CHAT_MESSAGE, useAddParticipantToChat, useAddUserFavouriteResource, useAdminUpdateResourceType, useContactUs, 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, useLogin, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, useRefreshToken, useRegister, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRequestPasswordReset, useResetPassword, useSearchMarkets, useSearchStallholders, useSendChatMessage, useUpdateMarket, useUpdateMarketInfo, useUpdateRelation, useUpdateStallholder, useUpdateStallholderInfo, useUpdateTester, useUpdateUser, useValidateVerificationToken };