@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
package/dist/index.d.mts CHANGED
@@ -124,6 +124,7 @@ declare enum EnumNotificationResourceType {
124
124
  CREATED_EVENT = "created_event",
125
125
  CREATED_PARTNER = "created_partner",
126
126
  CREATED_VENDOR = "created_vendor",
127
+ CREATED_COUPON = "created_coupon",
127
128
  DAILY_CLUE_GAME = "daily_clue_game",
128
129
  DEACTIVATED_EVENT = "deactivated_event",
129
130
  DEACTIVATED_PARTNER = "deactivated_partner",
package/dist/index.d.ts CHANGED
@@ -124,6 +124,7 @@ declare enum EnumNotificationResourceType {
124
124
  CREATED_EVENT = "created_event",
125
125
  CREATED_PARTNER = "created_partner",
126
126
  CREATED_VENDOR = "created_vendor",
127
+ CREATED_COUPON = "created_coupon",
127
128
  DAILY_CLUE_GAME = "daily_clue_game",
128
129
  DEACTIVATED_EVENT = "deactivated_event",
129
130
  DEACTIVATED_PARTNER = "deactivated_partner",
package/dist/index.mjs CHANGED
@@ -130,6 +130,7 @@ var EnumNotificationResourceType = /* @__PURE__ */ ((EnumNotificationResourceTyp
130
130
  EnumNotificationResourceType2["CREATED_EVENT"] = "created_event";
131
131
  EnumNotificationResourceType2["CREATED_PARTNER"] = "created_partner";
132
132
  EnumNotificationResourceType2["CREATED_VENDOR"] = "created_vendor";
133
+ EnumNotificationResourceType2["CREATED_COUPON"] = "created_coupon";
133
134
  EnumNotificationResourceType2["DAILY_CLUE_GAME"] = "daily_clue_game";
134
135
  EnumNotificationResourceType2["DEACTIVATED_EVENT"] = "deactivated_event";
135
136
  EnumNotificationResourceType2["DEACTIVATED_PARTNER"] = "deactivated_partner";
@@ -5736,14 +5737,22 @@ var UPDATE_EVENT_INFO_MUTATION = gql18`
5736
5737
  // src/graphql/hooks/event/hooksMutation.ts
5737
5738
  var useCreateEvent = () => {
5738
5739
  const [createEvent, { loading, error }] = useMutation5(CREATE_EVENT_MUTATION, {
5740
+ // The mutation response is a live-only view of EventType. Don't write it
5741
+ // into the normalized EventType cache, where it would overwrite the full
5742
+ // (live + archived) `dateTime` that `getEvent` fetches for the detail page.
5739
5743
  awaitRefetchQueries: true,
5744
+ fetchPolicy: "no-cache",
5740
5745
  refetchQueries: [{ query: GET_USER_EVENTS }]
5741
5746
  });
5742
5747
  return { createEvent, error, loading };
5743
5748
  };
5744
5749
  var useUpdateEvent = () => {
5745
5750
  const [updateEvent, { loading, error }] = useMutation5(UPDATE_EVENT_MUTATION, {
5751
+ // See useCreateEvent: the update response only carries the live schedule,
5752
+ // so keep it out of the normalized EventType cache to avoid clobbering the
5753
+ // archived dates merged by `getEvent`.
5746
5754
  awaitRefetchQueries: true,
5755
+ fetchPolicy: "no-cache",
5747
5756
  refetchQueries: (mutationResult) => {
5748
5757
  const eventId = mutationResult?.data?.updateEvent?.data?._id;
5749
5758
  if (!eventId) return [];