@timardex/cluemart-shared 2.2.12 → 2.2.14

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 (36) hide show
  1. package/dist/auth/index.mjs +1 -1
  2. package/dist/{chunk-4DFWOUOT.mjs → chunk-NX5E6VQO.mjs} +3 -3
  3. package/dist/{chunk-YPWBK4WU.mjs → chunk-Q2WLLXTA.mjs} +2 -1
  4. package/dist/chunk-Q2WLLXTA.mjs.map +1 -0
  5. package/dist/{chunk-GOWIY4NZ.mjs → chunk-QSBAN3V5.mjs} +9 -1
  6. package/dist/chunk-QSBAN3V5.mjs.map +1 -0
  7. package/dist/{chunk-KGYLNZQW.mjs → chunk-TJF64MYL.mjs} +2 -2
  8. package/dist/enums/index.cjs +1 -0
  9. package/dist/enums/index.cjs.map +1 -1
  10. package/dist/enums/index.d.mts +1 -0
  11. package/dist/enums/index.d.ts +1 -0
  12. package/dist/enums/index.mjs +1 -1
  13. package/dist/formFields/index.cjs.map +1 -1
  14. package/dist/formFields/index.mjs +3 -3
  15. package/dist/graphql/index.cjs +8 -0
  16. package/dist/graphql/index.cjs.map +1 -1
  17. package/dist/graphql/index.mjs +2 -2
  18. package/dist/hooks/index.cjs.map +1 -1
  19. package/dist/hooks/index.mjs +4 -4
  20. package/dist/index.cjs +9 -0
  21. package/dist/index.cjs.map +1 -1
  22. package/dist/index.d.mts +1 -0
  23. package/dist/index.d.ts +1 -0
  24. package/dist/index.mjs +9 -0
  25. package/dist/index.mjs.map +1 -1
  26. package/dist/region/index.cjs.map +1 -1
  27. package/dist/region/index.mjs +1 -1
  28. package/dist/sharing/index.mjs +1 -1
  29. package/dist/types/index.mjs +1 -1
  30. package/dist/utils/index.cjs.map +1 -1
  31. package/dist/utils/index.mjs +2 -2
  32. package/package.json +1 -1
  33. package/dist/chunk-GOWIY4NZ.mjs.map +0 -1
  34. package/dist/chunk-YPWBK4WU.mjs.map +0 -1
  35. /package/dist/{chunk-4DFWOUOT.mjs.map → chunk-NX5E6VQO.mjs.map} +0 -0
  36. /package/dist/{chunk-KGYLNZQW.mjs.map → chunk-TJF64MYL.mjs.map} +0 -0
@@ -2,12 +2,12 @@ import "../chunk-YKJAOTF7.mjs";
2
2
  import "../chunk-VA5YN2K3.mjs";
3
3
  import "../chunk-VPANTTZI.mjs";
4
4
  import "../chunk-DWO35OY4.mjs";
5
- import "../chunk-4DFWOUOT.mjs";
5
+ import "../chunk-NX5E6VQO.mjs";
6
6
  import {
7
7
  SCHOOL_MIN_STUDENT_COUNT,
8
8
  isValidIrdNumber,
9
9
  normalizeUrl
10
- } from "../chunk-KGYLNZQW.mjs";
10
+ } from "../chunk-TJF64MYL.mjs";
11
11
  import "../chunk-RE4NZPYY.mjs";
12
12
  import {
13
13
  dateFormat,
@@ -24,7 +24,7 @@ import {
24
24
  } from "../chunk-MRBTCICB.mjs";
25
25
  import "../chunk-RAYUJODN.mjs";
26
26
  import "../chunk-DQ7ZHIXW.mjs";
27
- import "../chunk-GOWIY4NZ.mjs";
27
+ import "../chunk-QSBAN3V5.mjs";
28
28
  import "../chunk-OSSBKFNH.mjs";
29
29
  import "../chunk-7DQBUZXY.mjs";
30
30
  import {
@@ -36,7 +36,7 @@ import {
36
36
  EnumResourceType,
37
37
  EnumSocialMedia,
38
38
  EnumVendorType
39
- } from "../chunk-YPWBK4WU.mjs";
39
+ } from "../chunk-Q2WLLXTA.mjs";
40
40
  import "../chunk-NPFJ2CN2.mjs";
41
41
 
42
42
  // src/hooks/useLocationSearch.ts
package/dist/index.cjs CHANGED
@@ -670,6 +670,7 @@ var EnumNotificationResourceType = /* @__PURE__ */ ((EnumNotificationResourceTyp
670
670
  EnumNotificationResourceType2["CREATED_EVENT"] = "created_event";
671
671
  EnumNotificationResourceType2["CREATED_PARTNER"] = "created_partner";
672
672
  EnumNotificationResourceType2["CREATED_VENDOR"] = "created_vendor";
673
+ EnumNotificationResourceType2["CREATED_COUPON"] = "created_coupon";
673
674
  EnumNotificationResourceType2["DAILY_CLUE_GAME"] = "daily_clue_game";
674
675
  EnumNotificationResourceType2["DEACTIVATED_EVENT"] = "deactivated_event";
675
676
  EnumNotificationResourceType2["DEACTIVATED_PARTNER"] = "deactivated_partner";
@@ -6276,14 +6277,22 @@ var UPDATE_EVENT_INFO_MUTATION = import_client23.gql`
6276
6277
  // src/graphql/hooks/event/hooksMutation.ts
6277
6278
  var useCreateEvent = () => {
6278
6279
  const [createEvent, { loading, error }] = (0, import_client24.useMutation)(CREATE_EVENT_MUTATION, {
6280
+ // The mutation response is a live-only view of EventType. Don't write it
6281
+ // into the normalized EventType cache, where it would overwrite the full
6282
+ // (live + archived) `dateTime` that `getEvent` fetches for the detail page.
6279
6283
  awaitRefetchQueries: true,
6284
+ fetchPolicy: "no-cache",
6280
6285
  refetchQueries: [{ query: GET_USER_EVENTS }]
6281
6286
  });
6282
6287
  return { createEvent, error, loading };
6283
6288
  };
6284
6289
  var useUpdateEvent = () => {
6285
6290
  const [updateEvent, { loading, error }] = (0, import_client24.useMutation)(UPDATE_EVENT_MUTATION, {
6291
+ // See useCreateEvent: the update response only carries the live schedule,
6292
+ // so keep it out of the normalized EventType cache to avoid clobbering the
6293
+ // archived dates merged by `getEvent`.
6286
6294
  awaitRefetchQueries: true,
6295
+ fetchPolicy: "no-cache",
6287
6296
  refetchQueries: (mutationResult) => {
6288
6297
  const eventId = mutationResult?.data?.updateEvent?.data?._id;
6289
6298
  if (!eventId) return [];