@timardex/cluemart-shared 1.2.60 → 1.2.62

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,8 +1,8 @@
1
1
  import * as _apollo_client from '@apollo/client';
2
2
  import { C as ChatType, N as NotificationType, a as NotificationCount, R as ResourceActivityType } from '../resourceActivities-BkGGnxjl.js';
3
- import { E as EventType, b as EventInfoType, c as RelationType, d as ResourceConnectionsType, V as VendorType, e as VendorInfoType } from '../global-Fgweq_ct.js';
3
+ import { E as EventType, b as EventInfoType, c as RelationType, d as ResourceConnectionsType, V as VendorType, e as VendorInfoType } from '../global-BY8seqWN.js';
4
4
  import { EnumResourceType } from '../enums/index.js';
5
- import { T as TesterType, U as UserType, A as AdType, E as EnumAdStatus, S as SubscriptionStatusData, P as PartnerType } from '../ad-CZPQz-Bx.js';
5
+ import { T as TesterType, U as UserType, A as AdType, E as EnumAdStatus, S as SubscriptionStatusData, P as PartnerType } from '../ad-CBydPYq0.js';
6
6
  import 'react-hook-form';
7
7
 
8
8
  declare const useAdminUpdateResourceType: () => {
@@ -420,6 +420,7 @@ var VENDOR = gql4`
420
420
  createdAt
421
421
  description
422
422
  deletedAt
423
+ foodTruck
423
424
  images {
424
425
  ...ResourceImageFields
425
426
  }
@@ -791,11 +792,8 @@ var ADD_PARTICIPANT_TO_CHAT_MUTATION = gql7`
791
792
  `;
792
793
  var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = gql7`
793
794
  mutation removeParticipantFromChat($chatId: ID!, $userId: ID!) {
794
- removeParticipantFromChat(chatId: $chatId, userId: $userId) {
795
- ...ChatFields
796
- }
795
+ removeParticipantFromChat(chatId: $chatId, userId: $userId)
797
796
  }
798
- ${CHAT_FIELDS_FRAGMENT}
799
797
  `;
800
798
 
801
799
  // src/graphql/hooks/chat/hooksMutation.ts
@@ -850,18 +848,7 @@ var useRemoveParticipantFromChat = () => {
850
848
  REMOVE_PARTICIPANT_FROM_CHAT_MUTATION,
851
849
  {
852
850
  awaitRefetchQueries: true,
853
- refetchQueries: (mutationResult) => {
854
- const chatId = mutationResult?.data?.removeParticipantFromChat?._id;
855
- return [
856
- {
857
- query: CHAT,
858
- variables: { _id: chatId }
859
- },
860
- {
861
- query: USER_CHATS
862
- }
863
- ];
864
- }
851
+ refetchQueries: [{ query: USER_CHATS }]
865
852
  }
866
853
  );
867
854
  return { error, loading, removeParticipantFromChat };