@timardex/cluemart-shared 1.7.85 → 1.7.87

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.
@@ -46,7 +46,7 @@ import {
46
46
  import {
47
47
  availableCategories,
48
48
  categoryColors
49
- } from "../chunk-5RXL62LO.mjs";
49
+ } from "../chunk-RCARDOVS.mjs";
50
50
  import "../chunk-2UNNIQIK.mjs";
51
51
  import "../chunk-364EX22V.mjs";
52
52
  import "../chunk-RAYUJODN.mjs";
@@ -24,6 +24,7 @@ __export(graphql_exports, {
24
24
  GET_EVENT: () => GET_EVENT,
25
25
  GET_EVENT_BY_SLUG: () => GET_EVENT_BY_SLUG,
26
26
  GET_EVENT_INFO: () => GET_EVENT_INFO,
27
+ GET_OWNED_EVENT: () => GET_OWNED_EVENT,
27
28
  GET_PARTNER: () => GET_PARTNER,
28
29
  GET_PARTNER_BY_SLUG: () => GET_PARTNER_BY_SLUG,
29
30
  GET_POST: () => GET_POST,
@@ -105,6 +106,7 @@ __export(graphql_exports, {
105
106
  useGetGames: () => useGetGames,
106
107
  useGetNotificationCount: () => useGetNotificationCount,
107
108
  useGetNotificationCountSubscription: () => useGetNotificationCountSubscription,
109
+ useGetOwnedEvent: () => useGetOwnedEvent,
108
110
  useGetPartner: () => useGetPartner,
109
111
  useGetPartners: () => useGetPartners,
110
112
  useGetPartnersByRegion: () => useGetPartnersByRegion,
@@ -638,6 +640,14 @@ var GET_EVENT = import_client2.gql`
638
640
  }
639
641
  ${EVENT}
640
642
  `;
643
+ var GET_OWNED_EVENT = import_client2.gql`
644
+ query getOwnedEvent($_id: ID!) {
645
+ ownedEvent(_id: $_id) {
646
+ ...EventFields
647
+ }
648
+ }
649
+ ${EVENT}
650
+ `;
641
651
  var GET_EVENT_BY_PLACE_ID = import_client2.gql`
642
652
  query getEventByPlaceId($googlePlaceId: String!) {
643
653
  eventByPlaceId(googlePlaceId: $googlePlaceId) {
@@ -2362,6 +2372,15 @@ var useGetEvent = (_id) => {
2362
2372
  const event = data?.event || null;
2363
2373
  return { error, event, loading, refetch };
2364
2374
  };
2375
+ var useGetOwnedEvent = (_id) => {
2376
+ const { loading, error, data, refetch } = (0, import_client25.useQuery)(GET_OWNED_EVENT, {
2377
+ fetchPolicy: "network-only",
2378
+ skip: !_id,
2379
+ variables: { _id }
2380
+ });
2381
+ const event = data?.ownedEvent || null;
2382
+ return { error, event, loading, refetch };
2383
+ };
2365
2384
  var useGetEventByPlaceId = (googlePlaceId) => {
2366
2385
  const { loading, error, data, refetch } = (0, import_client25.useQuery)(GET_EVENT_BY_PLACE_ID, {
2367
2386
  fetchPolicy: "network-only",
@@ -5220,6 +5239,7 @@ var useGetCoupon = (_id) => {
5220
5239
  GET_EVENT,
5221
5240
  GET_EVENT_BY_SLUG,
5222
5241
  GET_EVENT_INFO,
5242
+ GET_OWNED_EVENT,
5223
5243
  GET_PARTNER,
5224
5244
  GET_PARTNER_BY_SLUG,
5225
5245
  GET_POST,
@@ -5301,6 +5321,7 @@ var useGetCoupon = (_id) => {
5301
5321
  useGetGames,
5302
5322
  useGetNotificationCount,
5303
5323
  useGetNotificationCountSubscription,
5324
+ useGetOwnedEvent,
5304
5325
  useGetPartner,
5305
5326
  useGetPartners,
5306
5327
  useGetPartnersByRegion,