@timardex/cluemart-shared 2.1.0 → 2.1.2

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 (56) hide show
  1. package/dist/auth/index.cjs +2 -2
  2. package/dist/auth/index.cjs.map +1 -1
  3. package/dist/auth/index.mjs +2 -2
  4. package/dist/{chunk-3DYFIY72.mjs → chunk-7TZDJXYL.mjs} +1 -2
  5. package/dist/chunk-7TZDJXYL.mjs.map +1 -0
  6. package/dist/{chunk-ZUXHEXJU.mjs → chunk-B22YRNRF.mjs} +3 -3
  7. package/dist/{chunk-PNKTKJ47.mjs → chunk-BTZIWVSF.mjs} +2 -2
  8. package/dist/{chunk-YPT2VOTM.mjs → chunk-HFN6KXX2.mjs} +10 -36
  9. package/dist/chunk-HFN6KXX2.mjs.map +1 -0
  10. package/dist/{chunk-KUC252SN.mjs → chunk-MX3L6DSE.mjs} +8 -30
  11. package/dist/chunk-MX3L6DSE.mjs.map +1 -0
  12. package/dist/{chunk-ZSSVU6GY.mjs → chunk-OSSBKFNH.mjs} +3 -3
  13. package/dist/chunk-OSSBKFNH.mjs.map +1 -0
  14. package/dist/{chunk-UH6POK3Y.mjs → chunk-T7A7ZG55.mjs} +54 -18
  15. package/dist/chunk-T7A7ZG55.mjs.map +1 -0
  16. package/dist/enums/index.cjs +0 -1
  17. package/dist/enums/index.cjs.map +1 -1
  18. package/dist/enums/index.d.mts +1 -2
  19. package/dist/enums/index.d.ts +1 -2
  20. package/dist/enums/index.mjs +1 -1
  21. package/dist/formFields/index.cjs +34 -42
  22. package/dist/formFields/index.cjs.map +1 -1
  23. package/dist/formFields/index.mjs +4 -4
  24. package/dist/graphql/index.cjs +8 -31
  25. package/dist/graphql/index.cjs.map +1 -1
  26. package/dist/graphql/index.d.mts +4 -10
  27. package/dist/graphql/index.d.ts +4 -10
  28. package/dist/graphql/index.mjs +3 -5
  29. package/dist/hooks/index.cjs +36 -38
  30. package/dist/hooks/index.cjs.map +1 -1
  31. package/dist/hooks/index.mjs +7 -7
  32. package/dist/index.cjs +66 -72
  33. package/dist/index.cjs.map +1 -1
  34. package/dist/index.d.mts +25 -13
  35. package/dist/index.d.ts +25 -13
  36. package/dist/index.mjs +63 -71
  37. package/dist/index.mjs.map +1 -1
  38. package/dist/region/index.cjs.map +1 -1
  39. package/dist/region/index.mjs +1 -1
  40. package/dist/sharing/index.cjs +28 -28
  41. package/dist/sharing/index.cjs.map +1 -1
  42. package/dist/sharing/index.mjs +3 -3
  43. package/dist/types/index.mjs +1 -1
  44. package/dist/utils/index.cjs +58 -54
  45. package/dist/utils/index.cjs.map +1 -1
  46. package/dist/utils/index.d.mts +22 -3
  47. package/dist/utils/index.d.ts +22 -3
  48. package/dist/utils/index.mjs +14 -8
  49. package/package.json +1 -1
  50. package/dist/chunk-3DYFIY72.mjs.map +0 -1
  51. package/dist/chunk-KUC252SN.mjs.map +0 -1
  52. package/dist/chunk-UH6POK3Y.mjs.map +0 -1
  53. package/dist/chunk-YPT2VOTM.mjs.map +0 -1
  54. package/dist/chunk-ZSSVU6GY.mjs.map +0 -1
  55. /package/dist/{chunk-ZUXHEXJU.mjs.map → chunk-B22YRNRF.mjs.map} +0 -0
  56. /package/dist/{chunk-PNKTKJ47.mjs.map → chunk-BTZIWVSF.mjs.map} +0 -0
@@ -42,18 +42,18 @@ import {
42
42
  vendorStallSize,
43
43
  vendorStartDateFields,
44
44
  vendorTable
45
- } from "../chunk-ZUXHEXJU.mjs";
45
+ } from "../chunk-B22YRNRF.mjs";
46
46
  import {
47
47
  availableCategories,
48
48
  categoryColors
49
- } from "../chunk-YPT2VOTM.mjs";
49
+ } from "../chunk-HFN6KXX2.mjs";
50
50
  import "../chunk-RE4NZPYY.mjs";
51
- import "../chunk-UH6POK3Y.mjs";
51
+ import "../chunk-T7A7ZG55.mjs";
52
52
  import "../chunk-PIEXGXTD.mjs";
53
53
  import "../chunk-RAYUJODN.mjs";
54
54
  import "../chunk-DQ7ZHIXW.mjs";
55
55
  import "../chunk-7DQBUZXY.mjs";
56
- import "../chunk-3DYFIY72.mjs";
56
+ import "../chunk-7TZDJXYL.mjs";
57
57
  export {
58
58
  availableCategories,
59
59
  availableTagTypes,
@@ -133,7 +133,6 @@ __export(graphql_exports, {
133
133
  useGetPrivateChats: () => useGetPrivateChats,
134
134
  useGetRelation: () => useGetRelation,
135
135
  useGetRelationByEventAndVendor: () => useGetRelationByEventAndVendor,
136
- useGetRelationChats: () => useGetRelationChats,
137
136
  useGetReportedChatUsers: () => useGetReportedChatUsers,
138
137
  useGetResourceActivity: () => useGetResourceActivity,
139
138
  useGetResourceConnections: () => useGetResourceConnections,
@@ -671,8 +670,8 @@ var GET_EVENT = import_client2.gql`
671
670
  ${EVENT}
672
671
  `;
673
672
  var GET_OWNED_EVENT = import_client2.gql`
674
- query getOwnedEvent($_id: ID!) {
675
- ownedEvent(_id: $_id) {
673
+ query getOwnedEvent($_id: ID!, $futureOnly: Boolean = false) {
674
+ ownedEvent(_id: $_id, futureOnly: $futureOnly) {
676
675
  ...EventFields
677
676
  }
678
677
  }
@@ -1947,14 +1946,6 @@ var PRIVATE_CHATS = import_client16.gql`
1947
1946
  }
1948
1947
  ${CHAT_FIELDS_FRAGMENT}
1949
1948
  `;
1950
- var RELATION_CHATS = import_client16.gql`
1951
- query relationChats {
1952
- relationChats {
1953
- ...ChatFields
1954
- }
1955
- }
1956
- ${CHAT_FIELDS_FRAGMENT}
1957
- `;
1958
1949
  var GET_CHATS_BY_REGION = import_client16.gql`
1959
1950
  query getChatsByRegion($region: String!) {
1960
1951
  chatsByRegion(region: $region) {
@@ -2100,7 +2091,7 @@ var useSendChatMessage = () => {
2100
2091
  var useDeleteChat = () => {
2101
2092
  const [deleteChat, { loading, error }] = (0, import_client18.useMutation)(DELETE_CHAT_MUTATION, {
2102
2093
  awaitRefetchQueries: true,
2103
- refetchQueries: [{ query: PRIVATE_CHATS }, { query: RELATION_CHATS }]
2094
+ refetchQueries: [{ query: PRIVATE_CHATS }]
2104
2095
  });
2105
2096
  return { deleteChat, error, loading };
2106
2097
  };
@@ -2116,9 +2107,6 @@ var useAddParticipantToChat = () => {
2116
2107
  },
2117
2108
  {
2118
2109
  query: PRIVATE_CHATS
2119
- },
2120
- {
2121
- query: RELATION_CHATS
2122
2110
  }
2123
2111
  ];
2124
2112
  }
@@ -2130,10 +2118,7 @@ var useRemoveParticipantFromChat = () => {
2130
2118
  awaitRefetchQueries: true,
2131
2119
  refetchQueries: (mutationResult) => {
2132
2120
  const region = mutationResult?.data?.removeParticipantFromChat?.data?.region;
2133
- const queries = [
2134
- { query: PRIVATE_CHATS },
2135
- { query: RELATION_CHATS }
2136
- ];
2121
+ const queries = [{ query: PRIVATE_CHATS }];
2137
2122
  if (region && region.trim() !== "") {
2138
2123
  queries.push({
2139
2124
  query: GET_CHATS_BY_REGION,
@@ -2211,13 +2196,6 @@ var useGetPrivateChats = () => {
2211
2196
  const privateChats = data?.privateChats || [];
2212
2197
  return { error, loading, privateChats, refetch };
2213
2198
  };
2214
- var useGetRelationChats = () => {
2215
- const { loading, error, data, refetch } = (0, import_client20.useQuery)(RELATION_CHATS, {
2216
- fetchPolicy: "network-only"
2217
- });
2218
- const relationChats = data?.relationChats || [];
2219
- return { error, loading, refetch, relationChats };
2220
- };
2221
2199
  var useGetChatSubscription = () => {
2222
2200
  const { data, loading, error } = (0, import_client20.useSubscription)(
2223
2201
  GET_CHAT_MESSAGE
@@ -2416,11 +2394,11 @@ var useGetEvent = (_id) => {
2416
2394
  const event = data?.event || null;
2417
2395
  return { error, event, loading, refetch };
2418
2396
  };
2419
- var useGetOwnedEvent = (_id) => {
2397
+ var useGetOwnedEvent = (_id, options) => {
2420
2398
  const { loading, error, data, refetch } = (0, import_client25.useQuery)(GET_OWNED_EVENT, {
2421
2399
  fetchPolicy: "network-only",
2422
2400
  skip: !_id,
2423
- variables: { _id }
2401
+ variables: { _id, futureOnly: options?.futureOnly ?? false }
2424
2402
  });
2425
2403
  const event = data?.ownedEvent || null;
2426
2404
  return { error, event, loading, refetch };
@@ -2848,7 +2826,7 @@ var useCreateRelation = () => {
2848
2826
  variables: { resourceId, resourceType }
2849
2827
  },
2850
2828
  {
2851
- query: RELATION_CHATS
2829
+ query: PRIVATE_CHATS
2852
2830
  }
2853
2831
  ];
2854
2832
  }
@@ -2929,7 +2907,7 @@ var useDeleteRelation = () => {
2929
2907
  variables: { resourceId, resourceType }
2930
2908
  },
2931
2909
  {
2932
- query: RELATION_CHATS
2910
+ query: PRIVATE_CHATS
2933
2911
  }
2934
2912
  ];
2935
2913
  }
@@ -5726,7 +5704,6 @@ function usePaginatedList({
5726
5704
  useGetPrivateChats,
5727
5705
  useGetRelation,
5728
5706
  useGetRelationByEventAndVendor,
5729
- useGetRelationChats,
5730
5707
  useGetReportedChatUsers,
5731
5708
  useGetResourceActivity,
5732
5709
  useGetResourceConnections,