@timardex/cluemart-shared 1.1.95 → 1.1.97

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.
@@ -409,11 +409,11 @@ declare const useGetUserEvents: () => {
409
409
  refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
410
410
  userEvents: EventType[];
411
411
  };
412
- declare const useGetUserVendor: () => {
412
+ declare const useGetUserVendors: () => {
413
413
  error: _apollo_client.ApolloError | undefined;
414
414
  loading: boolean;
415
415
  refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
416
- userVendor: VendorType;
416
+ userVendors: VendorType[];
417
417
  };
418
418
  declare const useGetUserFavourites: () => {
419
419
  error: _apollo_client.ApolloError | undefined;
@@ -424,30 +424,6 @@ declare const useGetUserFavourites: () => {
424
424
  vendors: VendorType[];
425
425
  };
426
426
  };
427
- declare const useGetPartnerVendor: (resourceId: string) => {
428
- error: _apollo_client.ApolloError | undefined;
429
- loading: boolean;
430
- partnerVendor: VendorType;
431
- refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
432
- };
433
- declare const useGetAllPartnerVendors: (resourceIds: string[]) => {
434
- error: _apollo_client.ApolloError | undefined;
435
- loading: boolean;
436
- partnerVendors: VendorType[];
437
- refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
438
- };
439
- declare const useGetPartnerEvent: (resourceId: string) => {
440
- error: _apollo_client.ApolloError | undefined;
441
- loading: boolean;
442
- partnerEvent: EventType;
443
- refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
444
- };
445
- declare const useGetAllPartnerEvents: (resourceIds: string[]) => {
446
- error: _apollo_client.ApolloError | undefined;
447
- loading: boolean;
448
- partnerEvents: EventType[];
449
- refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
450
- };
451
427
 
452
428
  declare const useCreateAd: () => {
453
429
  createAd: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
@@ -503,4 +479,4 @@ declare const useGetResourceViews: (resourceId: string, resourceType: EnumResour
503
479
  resourceViews: ResourceViewsType[];
504
480
  };
505
481
 
506
- export { useAddParticipantToChat, useAddUserFavouriteResource, 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, useGetAllPartnerEvents, useGetAllPartnerVendors, useGetChat, useGetChatSubscription, useGetEvent, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetPartnerEvent, useGetPartnerVendor, useGetRelation, useGetRelationByEventAndVendor, useGetResourceConnections, useGetResourceViews, useGetTester, useGetTesters, useGetUser, useGetUserChats, useGetUserEvents, useGetUserFavourites, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserVendor, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLogin, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, useRefreshToken, useRegister, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRequestPasswordReset, useResetPassword, useSearchEvents, useSearchVendors, useSelectPackage, useSendChatMessage, useUpdateAd, useUpdateEvent, useUpdateEventInfo, useUpdateRelation, useUpdateTester, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useValidateVerificationToken };
482
+ export { useAddParticipantToChat, useAddUserFavouriteResource, 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, useGetUserChats, useGetUserEvents, useGetUserFavourites, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLogin, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, useRefreshToken, useRegister, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRequestPasswordReset, useResetPassword, useSearchEvents, useSearchVendors, useSelectPackage, useSendChatMessage, useUpdateAd, useUpdateEvent, useUpdateEventInfo, useUpdateRelation, useUpdateTester, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useValidateVerificationToken };
@@ -269,22 +269,6 @@ var GET_EVENT_INFO = gql3`
269
269
  }
270
270
  ${EVENT_INFO}
271
271
  `;
272
- var GET_PARTNER_EVENTS = gql3`
273
- query getPartnerEvents($resourceIds: [ID!]!) {
274
- partnerEvents(resourceIds: $resourceIds) {
275
- ...EventFields
276
- }
277
- }
278
- ${EVENT}
279
- `;
280
- var GET_PARTNER_EVENT = gql3`
281
- query getPartnerEvent($resourceId: ID!) {
282
- partnerEvent(resourceId: $resourceId) {
283
- ...EventFields
284
- }
285
- }
286
- ${EVENT}
287
- `;
288
272
 
289
273
  // src/graphql/queries/vendor.ts
290
274
  import { gql as gql4 } from "@apollo/client";
@@ -443,22 +427,6 @@ var GET_VENDOR_INFO = gql4`
443
427
  }
444
428
  ${VENDOR_INFO}
445
429
  `;
446
- var GET_PARTNER_VENDORS = gql4`
447
- query getPartnerVendors($resourceIds: [ID!]!) {
448
- partnerVendors(resourceIds: $resourceIds) {
449
- ...VendorFields
450
- }
451
- }
452
- ${VENDOR}
453
- `;
454
- var GET_PARTNER_VENDOR = gql4`
455
- query getPartnerVendor($resourceId: ID!) {
456
- partnerVendor(resourceId: $resourceId) {
457
- ...VendorFields
458
- }
459
- }
460
- ${VENDOR}
461
- `;
462
430
 
463
431
  // src/graphql/hooks/admin/hooksMutation.ts
464
432
  var useAdminUpdateResourceType = () => {
@@ -887,9 +855,9 @@ var GET_USER_EVENTS = gql11`
887
855
  }
888
856
  ${EVENT}
889
857
  `;
890
- var GET_USER_VENDOR = gql11`
891
- query getUserVendor {
892
- userVendor {
858
+ var GET_USER_VENDORS = gql11`
859
+ query getUserVendors {
860
+ userVendors {
893
861
  ...VendorFields
894
862
  }
895
863
  }
@@ -1290,10 +1258,7 @@ var useCreatePoster = () => {
1290
1258
  CREATE_POSTER_MUTATION,
1291
1259
  {
1292
1260
  fetchPolicy: "no-cache",
1293
- refetchQueries: [
1294
- { query: GET_USER_EVENTS },
1295
- { query: GET_USER_VENDOR }
1296
- ]
1261
+ refetchQueries: [{ query: GET_USER_EVENTS }, { query: GET_USER_VENDORS }]
1297
1262
  }
1298
1263
  );
1299
1264
  return { createPoster, error, loading };
@@ -1803,7 +1768,7 @@ var useCreateVendor = () => {
1803
1768
  CREATE_VENDOR_MUTATION,
1804
1769
  {
1805
1770
  awaitRefetchQueries: true,
1806
- refetchQueries: [{ fetchPolicy: "no-cache", query: GET_USER_VENDOR }]
1771
+ refetchQueries: [{ fetchPolicy: "no-cache", query: GET_USER_VENDORS }]
1807
1772
  }
1808
1773
  );
1809
1774
  return { createVendor, error, loading };
@@ -1813,7 +1778,7 @@ var useUpdateVendor = () => {
1813
1778
  UPDATE_VENDOR_MUTATION,
1814
1779
  {
1815
1780
  awaitRefetchQueries: true,
1816
- refetchQueries: [{ fetchPolicy: "no-cache", query: GET_USER_VENDOR }]
1781
+ refetchQueries: [{ fetchPolicy: "no-cache", query: GET_USER_VENDORS }]
1817
1782
  }
1818
1783
  );
1819
1784
  return { error, loading, updateVendor };
@@ -1823,7 +1788,7 @@ var useDeleteVendor = () => {
1823
1788
  DELETE_VENDOR_MUTATION,
1824
1789
  {
1825
1790
  awaitRefetchQueries: true,
1826
- refetchQueries: [{ fetchPolicy: "no-cache", query: GET_USER_VENDOR }]
1791
+ refetchQueries: [{ fetchPolicy: "no-cache", query: GET_USER_VENDORS }]
1827
1792
  }
1828
1793
  );
1829
1794
  return { deleteVendor, error, loading };
@@ -1844,7 +1809,7 @@ var useCreateVendorInfo = () => {
1844
1809
  },
1845
1810
  {
1846
1811
  fetchPolicy: "no-cache",
1847
- query: GET_USER_VENDOR
1812
+ query: GET_USER_VENDORS
1848
1813
  }
1849
1814
  ];
1850
1815
  }
@@ -2173,7 +2138,7 @@ var useSelectPackage = () => {
2173
2138
  return [
2174
2139
  { query: GET_USER, variables: { _id: userId } },
2175
2140
  { query: GET_USER_EVENTS },
2176
- { query: GET_USER_VENDOR }
2141
+ { query: GET_USER_VENDORS }
2177
2142
  ];
2178
2143
  }
2179
2144
  }
@@ -2204,12 +2169,12 @@ var useGetUserEvents = () => {
2204
2169
  const userEvents = data?.userEvents;
2205
2170
  return { error, loading, refetch, userEvents };
2206
2171
  };
2207
- var useGetUserVendor = () => {
2208
- const { loading, error, data, refetch } = useQuery7(GET_USER_VENDOR, {
2172
+ var useGetUserVendors = () => {
2173
+ const { loading, error, data, refetch } = useQuery7(GET_USER_VENDORS, {
2209
2174
  fetchPolicy: "network-only"
2210
2175
  });
2211
- const userVendor = data?.userVendor;
2212
- return { error, loading, refetch, userVendor };
2176
+ const userVendors = data?.userVendors;
2177
+ return { error, loading, refetch, userVendors };
2213
2178
  };
2214
2179
  var useGetUserFavourites = () => {
2215
2180
  const { loading, error, data, refetch } = useQuery7(GET_USER_FAVOURITES, {
@@ -2223,38 +2188,6 @@ var useGetUserFavourites = () => {
2223
2188
  };
2224
2189
  return { error, loading, refetch, userFavourites };
2225
2190
  };
2226
- var useGetPartnerVendor = (resourceId) => {
2227
- const { loading, error, data, refetch } = useQuery7(GET_PARTNER_VENDOR, {
2228
- fetchPolicy: "network-only",
2229
- variables: { resourceId }
2230
- });
2231
- const partnerVendor = data?.partnerVendor;
2232
- return { error, loading, partnerVendor, refetch };
2233
- };
2234
- var useGetAllPartnerVendors = (resourceIds) => {
2235
- const { loading, error, data, refetch } = useQuery7(GET_PARTNER_VENDORS, {
2236
- fetchPolicy: "network-only",
2237
- variables: { resourceIds }
2238
- });
2239
- const partnerVendors = data?.partnerVendors;
2240
- return { error, loading, partnerVendors, refetch };
2241
- };
2242
- var useGetPartnerEvent = (resourceId) => {
2243
- const { loading, error, data, refetch } = useQuery7(GET_PARTNER_EVENT, {
2244
- fetchPolicy: "network-only",
2245
- variables: { resourceId }
2246
- });
2247
- const partnerEvent = data?.partnerEvent;
2248
- return { error, loading, partnerEvent, refetch };
2249
- };
2250
- var useGetAllPartnerEvents = (resourceIds) => {
2251
- const { loading, error, data, refetch } = useQuery7(GET_PARTNER_EVENTS, {
2252
- fetchPolicy: "network-only",
2253
- variables: { resourceIds }
2254
- });
2255
- const partnerEvents = data?.partnerEvents;
2256
- return { error, loading, partnerEvents, refetch };
2257
- };
2258
2191
 
2259
2192
  // src/graphql/hooks/ad/hooksMutation.ts
2260
2193
  import { useMutation as useMutation13 } from "@apollo/client";
@@ -2507,8 +2440,6 @@ export {
2507
2440
  useGetAd,
2508
2441
  useGetAds,
2509
2442
  useGetAdsByRegion,
2510
- useGetAllPartnerEvents,
2511
- useGetAllPartnerVendors,
2512
2443
  useGetChat,
2513
2444
  useGetChatSubscription,
2514
2445
  useGetEvent,
@@ -2519,8 +2450,6 @@ export {
2519
2450
  useGetEventsNearMe,
2520
2451
  useGetNotificationCount,
2521
2452
  useGetNotificationCountSubscription,
2522
- useGetPartnerEvent,
2523
- useGetPartnerVendor,
2524
2453
  useGetRelation,
2525
2454
  useGetRelationByEventAndVendor,
2526
2455
  useGetResourceConnections,
@@ -2533,7 +2462,7 @@ export {
2533
2462
  useGetUserFavourites,
2534
2463
  useGetUserNotifications,
2535
2464
  useGetUserNotificationsSubscription,
2536
- useGetUserVendor,
2465
+ useGetUserVendors,
2537
2466
  useGetUsers,
2538
2467
  useGetVendor,
2539
2468
  useGetVendorInfo,