@timardex/cluemart-shared 1.7.86 → 1.7.88

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.
@@ -23,8 +23,8 @@ import {
23
23
  } from "../chunk-364EX22V.mjs";
24
24
  import "../chunk-RAYUJODN.mjs";
25
25
  import "../chunk-DQ7ZHIXW.mjs";
26
- import "../chunk-HPHI5IVL.mjs";
27
- import "../chunk-MWLKYOBK.mjs";
26
+ import "../chunk-M3R2UY5Z.mjs";
27
+ import "../chunk-GA6E5NK3.mjs";
28
28
  import {
29
29
  EnumEventDateStatus,
30
30
  EnumEventType,
package/dist/index.cjs CHANGED
@@ -83,6 +83,7 @@ __export(index_exports, {
83
83
  GET_EVENT: () => GET_EVENT,
84
84
  GET_EVENT_BY_SLUG: () => GET_EVENT_BY_SLUG,
85
85
  GET_EVENT_INFO: () => GET_EVENT_INFO,
86
+ GET_OWNED_EVENT: () => GET_OWNED_EVENT,
86
87
  GET_PARTNER: () => GET_PARTNER,
87
88
  GET_PARTNER_BY_SLUG: () => GET_PARTNER_BY_SLUG,
88
89
  GET_POST: () => GET_POST,
@@ -390,6 +391,7 @@ __export(index_exports, {
390
391
  useGetGames: () => useGetGames,
391
392
  useGetNotificationCount: () => useGetNotificationCount,
392
393
  useGetNotificationCountSubscription: () => useGetNotificationCountSubscription,
394
+ useGetOwnedEvent: () => useGetOwnedEvent,
393
395
  useGetPartner: () => useGetPartner,
394
396
  useGetPartners: () => useGetPartners,
395
397
  useGetPartnersByRegion: () => useGetPartnersByRegion,
@@ -4250,6 +4252,14 @@ var GET_EVENT = import_client2.gql`
4250
4252
  }
4251
4253
  ${EVENT}
4252
4254
  `;
4255
+ var GET_OWNED_EVENT = import_client2.gql`
4256
+ query getOwnedEvent($_id: ID!) {
4257
+ ownedEvent(_id: $_id) {
4258
+ ...EventFields
4259
+ }
4260
+ }
4261
+ ${EVENT}
4262
+ `;
4253
4263
  var GET_EVENT_BY_PLACE_ID = import_client2.gql`
4254
4264
  query getEventByPlaceId($googlePlaceId: String!) {
4255
4265
  eventByPlaceId(googlePlaceId: $googlePlaceId) {
@@ -5974,6 +5984,15 @@ var useGetEvent = (_id) => {
5974
5984
  const event = data?.event || null;
5975
5985
  return { error, event, loading, refetch };
5976
5986
  };
5987
+ var useGetOwnedEvent = (_id) => {
5988
+ const { loading, error, data, refetch } = (0, import_client25.useQuery)(GET_OWNED_EVENT, {
5989
+ fetchPolicy: "network-only",
5990
+ skip: !_id,
5991
+ variables: { _id }
5992
+ });
5993
+ const event = data?.ownedEvent || null;
5994
+ return { error, event, loading, refetch };
5995
+ };
5977
5996
  var useGetEventByPlaceId = (googlePlaceId) => {
5978
5997
  const { loading, error, data, refetch } = (0, import_client25.useQuery)(GET_EVENT_BY_PLACE_ID, {
5979
5998
  fetchPolicy: "network-only",
@@ -6525,6 +6544,7 @@ var useGetVendorRelations = (vendorId) => {
6525
6544
  var useGetResourceConnections = (resourceId, resourceType) => {
6526
6545
  const { loading, error, data, refetch } = (0, import_client38.useQuery)(GET_RESOURCE_CONNECTIONS, {
6527
6546
  fetchPolicy: "network-only",
6547
+ notifyOnNetworkStatusChange: true,
6528
6548
  skip: !resourceId || resourceId === "" || !resourceType,
6529
6549
  variables: { resourceId, resourceType }
6530
6550
  });
@@ -6709,6 +6729,7 @@ var useGetUnregisteredVendors = () => {
6709
6729
  var useGetUnregisteredVendorsByInviterId = (inviterId) => {
6710
6730
  const { loading, error, data, refetch } = (0, import_client40.useQuery)(GET_UNREGISTERED_VENDORS_BY_INVITER_ID, {
6711
6731
  fetchPolicy: "network-only",
6732
+ notifyOnNetworkStatusChange: true,
6712
6733
  skip: !inviterId || inviterId === "",
6713
6734
  variables: { inviterId }
6714
6735
  });
@@ -9435,6 +9456,7 @@ function canAccessAdminPath(roles, pathname) {
9435
9456
  GET_EVENT,
9436
9457
  GET_EVENT_BY_SLUG,
9437
9458
  GET_EVENT_INFO,
9459
+ GET_OWNED_EVENT,
9438
9460
  GET_PARTNER,
9439
9461
  GET_PARTNER_BY_SLUG,
9440
9462
  GET_POST,
@@ -9742,6 +9764,7 @@ function canAccessAdminPath(roles, pathname) {
9742
9764
  useGetGames,
9743
9765
  useGetNotificationCount,
9744
9766
  useGetNotificationCountSubscription,
9767
+ useGetOwnedEvent,
9745
9768
  useGetPartner,
9746
9769
  useGetPartners,
9747
9770
  useGetPartnersByRegion,