@timardex/cluemart-shared 1.3.91 → 1.3.92
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.
- package/dist/graphql/index.cjs +25 -9
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +11 -3
- package/dist/graphql/index.d.ts +11 -3
- package/dist/graphql/index.mjs +24 -9
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/index.cjs +25 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +11 -3
- package/dist/index.d.ts +11 -3
- package/dist/index.mjs +24 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/graphql/index.cjs
CHANGED
|
@@ -68,6 +68,7 @@ __export(graphql_exports, {
|
|
|
68
68
|
useGetChat: () => useGetChat,
|
|
69
69
|
useGetChatSubscription: () => useGetChatSubscription,
|
|
70
70
|
useGetEvent: () => useGetEvent,
|
|
71
|
+
useGetEventByPlaceId: () => useGetEventByPlaceId,
|
|
71
72
|
useGetEventInfo: () => useGetEventInfo,
|
|
72
73
|
useGetEventRelations: () => useGetEventRelations,
|
|
73
74
|
useGetEvents: () => useGetEvents,
|
|
@@ -546,6 +547,14 @@ var GET_EVENT = import_client3.gql`
|
|
|
546
547
|
}
|
|
547
548
|
${EVENT}
|
|
548
549
|
`;
|
|
550
|
+
var GET_EVENT_BY_PLACE_ID = import_client3.gql`
|
|
551
|
+
query getEventByPlaceId($googlePlaceId: String!) {
|
|
552
|
+
eventByPlaceId(googlePlaceId: $googlePlaceId) {
|
|
553
|
+
...EventFields
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
${EVENT}
|
|
557
|
+
`;
|
|
549
558
|
var GET_EVENTS_BY_REGION = import_client3.gql`
|
|
550
559
|
query getEventsByRegion($region: String!, $onlyClaimed: Boolean) {
|
|
551
560
|
eventsByRegion(region: $region, onlyClaimed: $onlyClaimed) {
|
|
@@ -1593,17 +1602,23 @@ var useGetEvents = () => {
|
|
|
1593
1602
|
return { error, events, loading, refetch };
|
|
1594
1603
|
};
|
|
1595
1604
|
var useGetEvent = (_id) => {
|
|
1596
|
-
const { loading, error, data, refetch } = (0, import_client20.useQuery)(
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
}
|
|
1603
|
-
);
|
|
1604
|
-
const event = data?.event;
|
|
1605
|
+
const { loading, error, data, refetch } = (0, import_client20.useQuery)(GET_EVENT, {
|
|
1606
|
+
fetchPolicy: "network-only",
|
|
1607
|
+
skip: !_id,
|
|
1608
|
+
variables: { _id }
|
|
1609
|
+
});
|
|
1610
|
+
const event = data?.event || null;
|
|
1605
1611
|
return { error, event, loading, refetch };
|
|
1606
1612
|
};
|
|
1613
|
+
var useGetEventByPlaceId = (googlePlaceId) => {
|
|
1614
|
+
const { loading, error, data, refetch } = (0, import_client20.useQuery)(GET_EVENT_BY_PLACE_ID, {
|
|
1615
|
+
fetchPolicy: "network-only",
|
|
1616
|
+
skip: !googlePlaceId,
|
|
1617
|
+
variables: { googlePlaceId }
|
|
1618
|
+
});
|
|
1619
|
+
const eventByPlaceId = data?.eventByPlaceId || null;
|
|
1620
|
+
return { error, eventByPlaceId, loading, refetch };
|
|
1621
|
+
};
|
|
1607
1622
|
var useGetEventsByRegion = (region, onlyClaimed) => {
|
|
1608
1623
|
const { loading, error, data, refetch } = (0, import_client20.useQuery)(GET_EVENTS_BY_REGION, {
|
|
1609
1624
|
fetchPolicy: "no-cache",
|
|
@@ -3559,6 +3574,7 @@ var useGetAppSettings = () => {
|
|
|
3559
3574
|
useGetChat,
|
|
3560
3575
|
useGetChatSubscription,
|
|
3561
3576
|
useGetEvent,
|
|
3577
|
+
useGetEventByPlaceId,
|
|
3562
3578
|
useGetEventInfo,
|
|
3563
3579
|
useGetEventRelations,
|
|
3564
3580
|
useGetEvents,
|