@timardex/cluemart-shared 1.3.91 → 1.3.93
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/index.cjs
CHANGED
|
@@ -177,6 +177,7 @@ __export(index_exports, {
|
|
|
177
177
|
useGetChat: () => useGetChat,
|
|
178
178
|
useGetChatSubscription: () => useGetChatSubscription,
|
|
179
179
|
useGetEvent: () => useGetEvent,
|
|
180
|
+
useGetEventByPlaceId: () => useGetEventByPlaceId,
|
|
180
181
|
useGetEventInfo: () => useGetEventInfo,
|
|
181
182
|
useGetEventRelations: () => useGetEventRelations,
|
|
182
183
|
useGetEvents: () => useGetEvents,
|
|
@@ -2900,6 +2901,14 @@ var GET_EVENT = import_client3.gql`
|
|
|
2900
2901
|
}
|
|
2901
2902
|
${EVENT}
|
|
2902
2903
|
`;
|
|
2904
|
+
var GET_EVENT_BY_PLACE_ID = import_client3.gql`
|
|
2905
|
+
query getEventByPlaceId($googlePlaceId: String!) {
|
|
2906
|
+
eventByPlaceId(googlePlaceId: $googlePlaceId) {
|
|
2907
|
+
...EventListItemFields
|
|
2908
|
+
}
|
|
2909
|
+
}
|
|
2910
|
+
${EVENT_LIST_ITEM}
|
|
2911
|
+
`;
|
|
2903
2912
|
var GET_EVENTS_BY_REGION = import_client3.gql`
|
|
2904
2913
|
query getEventsByRegion($region: String!, $onlyClaimed: Boolean) {
|
|
2905
2914
|
eventsByRegion(region: $region, onlyClaimed: $onlyClaimed) {
|
|
@@ -3947,17 +3956,23 @@ var useGetEvents = () => {
|
|
|
3947
3956
|
return { error, events, loading, refetch };
|
|
3948
3957
|
};
|
|
3949
3958
|
var useGetEvent = (_id) => {
|
|
3950
|
-
const { loading, error, data, refetch } = (0, import_client20.useQuery)(
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
}
|
|
3957
|
-
);
|
|
3958
|
-
const event = data?.event;
|
|
3959
|
+
const { loading, error, data, refetch } = (0, import_client20.useQuery)(GET_EVENT, {
|
|
3960
|
+
fetchPolicy: "network-only",
|
|
3961
|
+
skip: !_id,
|
|
3962
|
+
variables: { _id }
|
|
3963
|
+
});
|
|
3964
|
+
const event = data?.event || null;
|
|
3959
3965
|
return { error, event, loading, refetch };
|
|
3960
3966
|
};
|
|
3967
|
+
var useGetEventByPlaceId = (googlePlaceId) => {
|
|
3968
|
+
const { loading, error, data, refetch } = (0, import_client20.useQuery)(GET_EVENT_BY_PLACE_ID, {
|
|
3969
|
+
fetchPolicy: "network-only",
|
|
3970
|
+
skip: !googlePlaceId,
|
|
3971
|
+
variables: { googlePlaceId }
|
|
3972
|
+
});
|
|
3973
|
+
const eventByPlaceId = data?.eventByPlaceId || null;
|
|
3974
|
+
return { error, eventByPlaceId, loading, refetch };
|
|
3975
|
+
};
|
|
3961
3976
|
var useGetEventsByRegion = (region, onlyClaimed) => {
|
|
3962
3977
|
const { loading, error, data, refetch } = (0, import_client20.useQuery)(GET_EVENTS_BY_REGION, {
|
|
3963
3978
|
fetchPolicy: "no-cache",
|
|
@@ -8014,6 +8029,7 @@ var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
|
|
|
8014
8029
|
useGetChat,
|
|
8015
8030
|
useGetChatSubscription,
|
|
8016
8031
|
useGetEvent,
|
|
8032
|
+
useGetEventByPlaceId,
|
|
8017
8033
|
useGetEventInfo,
|
|
8018
8034
|
useGetEventRelations,
|
|
8019
8035
|
useGetEvents,
|