@timardex/cluemart-shared 1.5.585 → 1.5.587

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.
Files changed (35) hide show
  1. package/dist/{auth-C-w7_HaC.d.mts → auth-Bdlg8CzV.d.mts} +1 -1
  2. package/dist/{auth-Bgci_PFG.d.ts → auth-rRdVyjfK.d.ts} +1 -1
  3. package/dist/{chunk-HBGUKVG7.mjs → chunk-P52HS2NB.mjs} +16 -2
  4. package/dist/chunk-P52HS2NB.mjs.map +1 -0
  5. package/dist/formFields/index.d.mts +1 -1
  6. package/dist/formFields/index.d.ts +1 -1
  7. package/dist/{global-CwKI9H5n.d.ts → global-BRdgk2kj.d.ts} +2 -0
  8. package/dist/{global-Dh8O63uS.d.mts → global-BWpDbvVZ.d.mts} +2 -0
  9. package/dist/graphql/index.cjs +15 -1
  10. package/dist/graphql/index.cjs.map +1 -1
  11. package/dist/graphql/index.d.mts +12 -4
  12. package/dist/graphql/index.d.ts +12 -4
  13. package/dist/graphql/index.mjs +1 -1
  14. package/dist/hooks/index.cjs +7 -2
  15. package/dist/hooks/index.cjs.map +1 -1
  16. package/dist/hooks/index.d.mts +3 -3
  17. package/dist/hooks/index.d.ts +3 -3
  18. package/dist/hooks/index.mjs +7 -3
  19. package/dist/hooks/index.mjs.map +1 -1
  20. package/dist/index.cjs +21 -3
  21. package/dist/index.cjs.map +1 -1
  22. package/dist/index.d.mts +11 -1
  23. package/dist/index.d.ts +11 -1
  24. package/dist/index.mjs +21 -3
  25. package/dist/index.mjs.map +1 -1
  26. package/dist/{post-BOHCYOqP.d.mts → post-C1eNwXYI.d.mts} +1 -1
  27. package/dist/{post-BeDD_6yt.d.ts → post-CO3A1l3d.d.ts} +1 -1
  28. package/dist/{resourceActivities-DZlvP79x.d.ts → resourceActivities-D5KjDO8i.d.ts} +1 -1
  29. package/dist/{resourceActivities-yWctfwLn.d.mts → resourceActivities-Ik5hB71G.d.mts} +1 -1
  30. package/dist/types/index.d.mts +5 -5
  31. package/dist/types/index.d.ts +5 -5
  32. package/dist/utils/index.d.mts +1 -1
  33. package/dist/utils/index.d.ts +1 -1
  34. package/package.json +1 -1
  35. package/dist/chunk-HBGUKVG7.mjs.map +0 -1
package/dist/index.d.mts CHANGED
@@ -324,6 +324,7 @@ interface VendorFormData extends BaseResourceTypeFormData {
324
324
  private: boolean;
325
325
  corporate: boolean;
326
326
  };
327
+ claimed?: boolean;
327
328
  calendar?: {
328
329
  active?: boolean | null;
329
330
  calendarData?: VendorCalendarData[] | null;
@@ -379,6 +380,7 @@ interface VendorType extends BaseResourceType {
379
380
  private: boolean;
380
381
  corporate: boolean;
381
382
  };
383
+ claimed: boolean;
382
384
  calendar: VendorFormData["calendar"] | null;
383
385
  categories: VendorFormData["categories"];
384
386
  foodTruck: boolean;
@@ -1628,7 +1630,15 @@ declare const useCreateEvent: () => {
1628
1630
  declare const useUpdateEvent: () => {
1629
1631
  error: _apollo_client.ApolloError | undefined;
1630
1632
  loading: boolean;
1631
- updateEvent: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
1633
+ updateEvent: (options?: _apollo_client.MutationFunctionOptions<{
1634
+ updateEvent: {
1635
+ _id: string;
1636
+ };
1637
+ }, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
1638
+ updateEvent: {
1639
+ _id: string;
1640
+ };
1641
+ }>>;
1632
1642
  };
1633
1643
  declare const useDeleteEvent: () => {
1634
1644
  deleteEvent: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
package/dist/index.d.ts CHANGED
@@ -324,6 +324,7 @@ interface VendorFormData extends BaseResourceTypeFormData {
324
324
  private: boolean;
325
325
  corporate: boolean;
326
326
  };
327
+ claimed?: boolean;
327
328
  calendar?: {
328
329
  active?: boolean | null;
329
330
  calendarData?: VendorCalendarData[] | null;
@@ -379,6 +380,7 @@ interface VendorType extends BaseResourceType {
379
380
  private: boolean;
380
381
  corporate: boolean;
381
382
  };
383
+ claimed: boolean;
382
384
  calendar: VendorFormData["calendar"] | null;
383
385
  categories: VendorFormData["categories"];
384
386
  foodTruck: boolean;
@@ -1628,7 +1630,15 @@ declare const useCreateEvent: () => {
1628
1630
  declare const useUpdateEvent: () => {
1629
1631
  error: _apollo_client.ApolloError | undefined;
1630
1632
  loading: boolean;
1631
- updateEvent: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
1633
+ updateEvent: (options?: _apollo_client.MutationFunctionOptions<{
1634
+ updateEvent: {
1635
+ _id: string;
1636
+ };
1637
+ }, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
1638
+ updateEvent: {
1639
+ _id: string;
1640
+ };
1641
+ }>>;
1632
1642
  };
1633
1643
  declare const useDeleteEvent: () => {
1634
1644
  deleteEvent: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
package/dist/index.mjs CHANGED
@@ -2981,6 +2981,7 @@ var VENDOR = gql4`
2981
2981
  ...ResourceImageFields
2982
2982
  }
2983
2983
  createdAt
2984
+ claimed
2984
2985
  description
2985
2986
  deletedAt
2986
2987
  foodTruck
@@ -3915,7 +3916,20 @@ var useCreateEvent = () => {
3915
3916
  var useUpdateEvent = () => {
3916
3917
  const [updateEvent, { loading, error }] = useMutation5(UPDATE_EVENT_MUTATION, {
3917
3918
  awaitRefetchQueries: true,
3918
- refetchQueries: [{ query: GET_USER_EVENTS }]
3919
+ refetchQueries: (mutationResult) => {
3920
+ const eventId = mutationResult?.data?.updateEvent?._id;
3921
+ if (!eventId) return [];
3922
+ return [
3923
+ {
3924
+ query: GET_USER_EVENTS
3925
+ },
3926
+ {
3927
+ query: GET_EVENT,
3928
+ variables: { _id: eventId }
3929
+ // Pass the eventId for refetching
3930
+ }
3931
+ ];
3932
+ }
3919
3933
  });
3920
3934
  return { error, loading, updateEvent };
3921
3935
  };
@@ -7194,6 +7208,7 @@ var defaultVendorFormValues = {
7194
7208
  school: false
7195
7209
  },
7196
7210
  categories: [],
7211
+ claimed: true,
7197
7212
  foodTruck: false,
7198
7213
  products: null,
7199
7214
  unregisteredVendorId: null,
@@ -7269,6 +7284,7 @@ function useVendorForm(data) {
7269
7284
  availability: data.availability,
7270
7285
  calendar: data.calendar,
7271
7286
  categories: data.categories,
7287
+ claimed: data.claimed ?? false,
7272
7288
  foodTruck: data.foodTruck,
7273
7289
  products: data.products,
7274
7290
  unregisteredVendorId: data.unregisteredVendorId,
@@ -7283,13 +7299,14 @@ function useVendorForm(data) {
7283
7299
  active,
7284
7300
  associates,
7285
7301
  availability,
7286
- categories,
7287
7302
  calendar,
7303
+ categories,
7304
+ claimed,
7288
7305
  contactDetails,
7289
7306
  cover,
7290
7307
  coverUpload,
7291
- foodTruck,
7292
7308
  description,
7309
+ foodTruck,
7293
7310
  images,
7294
7311
  imagesUpload,
7295
7312
  logo,
@@ -7313,6 +7330,7 @@ function useVendorForm(data) {
7313
7330
  availability,
7314
7331
  calendar,
7315
7332
  categories,
7333
+ claimed,
7316
7334
  contactDetails,
7317
7335
  cover,
7318
7336
  coverUpload,