@timardex/cluemart-shared 1.2.17 → 1.2.18

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, N as NotificationType, a as NotificationCount, R as ResourceViewsType } from '../resourceViews-BZZt3kvl.js';
2
+ import { C as ChatType, N as NotificationType, a as NotificationCount, R as ResourceActivityType } from '../resourceActivities-eZ2Rycy_.js';
3
3
  import { E as EventType, b as EventInfoType, c as RelationType, d as ResourceConnectionsType, V as VendorType, e as VendorInfoType } from '../global-BA84KF8J.js';
4
4
  import { EnumResourceType } from '../enums/index.js';
5
5
  import { T as TesterType, U as UserType, A as AdType, E as EnumAdStatus } from '../ad-0fMmeab1.js';
@@ -494,17 +494,17 @@ declare const useGetAdsByRegion: (region: string, status?: EnumAdStatus) => {
494
494
  }>>;
495
495
  };
496
496
 
497
- declare const useCreateResourceViews: () => {
498
- createResourceViews: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
497
+ declare const useCreateResourceActivity: () => {
498
+ createResourceActivity: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
499
499
  error: _apollo_client.ApolloError | undefined;
500
500
  loading: boolean;
501
501
  };
502
502
 
503
- declare const useGetResourceViews: (resourceId: string, resourceType: EnumResourceType) => {
503
+ declare const useGetResourceActivities: (resourceId: string, resourceType: EnumResourceType) => {
504
504
  error: _apollo_client.ApolloError | undefined;
505
505
  loading: boolean;
506
506
  refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
507
- resourceViews: ResourceViewsType[];
507
+ resourceActivities: ResourceActivityType[];
508
508
  };
509
509
 
510
- export { useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAdminUpdateResourceType, useContactUs, useCreateAd, useCreateBulkNotifications, useCreateEvent, useCreateEventInfo, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceViews, useCreateTester, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeleteRelation, useDeleteTester, useDeleteUser, useDeleteVendor, useGetAd, useGetAds, useGetAdsByRegion, useGetChat, useGetChatSubscription, useGetEvent, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetRelation, useGetRelationByEventAndVendor, useGetResourceConnections, useGetResourceViews, useGetTester, useGetTesters, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLogin, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, useRefreshToken, useRegister, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRequestPasswordReset, useResetPassword, useSearchEvents, useSearchVendors, useSelectPackage, useSendChatMessage, useUpdateAd, useUpdateEvent, useUpdateEventInfo, useUpdateRelation, useUpdateTester, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useValidateVerificationToken };
510
+ export { useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAdminUpdateResourceType, useContactUs, useCreateAd, useCreateBulkNotifications, useCreateEvent, useCreateEventInfo, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateTester, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeleteRelation, useDeleteTester, useDeleteUser, useDeleteVendor, useGetAd, useGetAds, useGetAdsByRegion, useGetChat, useGetChatSubscription, useGetEvent, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetRelation, useGetRelationByEventAndVendor, useGetResourceActivities, useGetResourceConnections, useGetTester, useGetTesters, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLogin, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, useRefreshToken, useRegister, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRequestPasswordReset, useResetPassword, useSearchEvents, useSearchVendors, useSelectPackage, useSendChatMessage, useUpdateAd, useUpdateEvent, useUpdateEventInfo, useUpdateRelation, useUpdateTester, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useValidateVerificationToken };
@@ -2474,32 +2474,32 @@ var useGetAdsByRegion = (region, status) => {
2474
2474
  };
2475
2475
  };
2476
2476
 
2477
- // src/graphql/hooks/resourceViews/hooksMutation.ts
2477
+ // src/graphql/hooks/resourceActivities/hooksMutation.ts
2478
2478
  import { useMutation as useMutation14 } from "@apollo/client";
2479
2479
 
2480
- // src/graphql/mutations/resourceViews.ts
2480
+ // src/graphql/mutations/resourceActivities.ts
2481
2481
  import { gql as gql25 } from "@apollo/client";
2482
- var CREATE_RESOURCE_VIEWS_MUTATION = gql25`
2483
- mutation createResourceViews($input: ResourceViewsInputType!) {
2484
- createResourceViews(input: $input)
2482
+ var CREATE_RESOURCE_ACTIVITY_MUTATION = gql25`
2483
+ mutation createResourceActivity($input: ResourceActivityInputType!) {
2484
+ createResourceActivity(input: $input)
2485
2485
  }
2486
2486
  `;
2487
2487
 
2488
- // src/graphql/hooks/resourceViews/hooksMutation.ts
2489
- var useCreateResourceViews = () => {
2490
- const [createResourceViews, { loading, error }] = useMutation14(
2491
- CREATE_RESOURCE_VIEWS_MUTATION
2488
+ // src/graphql/hooks/resourceActivities/hooksMutation.ts
2489
+ var useCreateResourceActivity = () => {
2490
+ const [createResourceActivity, { loading, error }] = useMutation14(
2491
+ CREATE_RESOURCE_ACTIVITY_MUTATION
2492
2492
  );
2493
- return { createResourceViews, error, loading };
2493
+ return { createResourceActivity, error, loading };
2494
2494
  };
2495
2495
 
2496
- // src/graphql/hooks/resourceViews/hooksQuery.ts
2496
+ // src/graphql/hooks/resourceActivities/hooksQuery.ts
2497
2497
  import { useQuery as useQuery9 } from "@apollo/client";
2498
2498
 
2499
- // src/graphql/queries/resourceViews.ts
2499
+ // src/graphql/queries/resourceActivities.ts
2500
2500
  import { gql as gql26 } from "@apollo/client";
2501
- var RESOURCE_VIEWS_FIELDS_FRAGMENT = gql26`
2502
- fragment ResourceViewsFields on ResourceViewsType {
2501
+ var RESOURCE_ACTIVITIES_FIELDS_FRAGMENT = gql26`
2502
+ fragment ResourceActivitiesFields on ResourceActivitiesType {
2503
2503
  resourceId
2504
2504
  resourceType
2505
2505
  views {
@@ -2512,18 +2512,21 @@ var RESOURCE_VIEWS_FIELDS_FRAGMENT = gql26`
2512
2512
  }
2513
2513
  }
2514
2514
  `;
2515
- var GET_RESOURCE_VIEWS = gql26`
2516
- query getResourceViews($resourceType: ResourceTypeEnum!, $resourceId: ID!) {
2517
- resourceViews(resourceType: $resourceType, resourceId: $resourceId) {
2518
- ...ResourceViewsFields
2515
+ var GET_RESOURCE_ACTIVITIES = gql26`
2516
+ query getResourceActivities(
2517
+ $resourceType: ResourceTypeEnum!
2518
+ $resourceId: ID!
2519
+ ) {
2520
+ resourceActivities(resourceType: $resourceType, resourceId: $resourceId) {
2521
+ ...ResourceActivitiesFields
2519
2522
  }
2520
2523
  }
2521
- ${RESOURCE_VIEWS_FIELDS_FRAGMENT}
2524
+ ${RESOURCE_ACTIVITIES_FIELDS_FRAGMENT}
2522
2525
  `;
2523
2526
 
2524
- // src/graphql/hooks/resourceViews/hooksQuery.ts
2525
- var useGetResourceViews = (resourceId, resourceType) => {
2526
- const { data, loading, error, refetch } = useQuery9(GET_RESOURCE_VIEWS, {
2527
+ // src/graphql/hooks/resourceActivities/hooksQuery.ts
2528
+ var useGetResourceActivities = (resourceId, resourceType) => {
2529
+ const { data, loading, error, refetch } = useQuery9(GET_RESOURCE_ACTIVITIES, {
2527
2530
  fetchPolicy: "network-only",
2528
2531
  variables: { resourceId, resourceType }
2529
2532
  });
@@ -2531,7 +2534,7 @@ var useGetResourceViews = (resourceId, resourceType) => {
2531
2534
  error,
2532
2535
  loading,
2533
2536
  refetch,
2534
- resourceViews: data?.resourceViews
2537
+ resourceActivities: data?.resourceActivities
2535
2538
  };
2536
2539
  };
2537
2540
  export {
@@ -2548,7 +2551,7 @@ export {
2548
2551
  useCreatePoster,
2549
2552
  useCreatePushToken,
2550
2553
  useCreateRelation,
2551
- useCreateResourceViews,
2554
+ useCreateResourceActivity,
2552
2555
  useCreateTester,
2553
2556
  useCreateUser,
2554
2557
  useCreateVendor,
@@ -2577,8 +2580,8 @@ export {
2577
2580
  useGetNotificationCountSubscription,
2578
2581
  useGetRelation,
2579
2582
  useGetRelationByEventAndVendor,
2583
+ useGetResourceActivities,
2580
2584
  useGetResourceConnections,
2581
- useGetResourceViews,
2582
2585
  useGetTester,
2583
2586
  useGetTesters,
2584
2587
  useGetUser,