@timardex/cluemart-shared 1.7.66 → 1.7.68
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/auth/index.cjs +2 -0
- package/dist/auth/index.cjs.map +1 -1
- package/dist/auth/index.mjs +1 -1
- package/dist/{chunk-6ALUN6LP.mjs → chunk-LMWIDQZ6.mjs} +3 -1
- package/dist/chunk-LMWIDQZ6.mjs.map +1 -0
- package/dist/{chunk-62LFTHUM.mjs → chunk-LZG5WM4M.mjs} +10 -9
- package/dist/chunk-LZG5WM4M.mjs.map +1 -0
- package/dist/graphql/index.cjs +10 -7
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +1 -1
- package/dist/graphql/index.d.ts +1 -1
- package/dist/graphql/index.mjs +2 -2
- package/dist/hooks/index.cjs +3 -1
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.mjs +3 -3
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +10 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +10 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-62LFTHUM.mjs.map +0 -1
- package/dist/chunk-6ALUN6LP.mjs.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -4244,11 +4244,13 @@ var GET_EVENTS_BY_REGION = import_client2.gql`
|
|
|
4244
4244
|
$region: String!
|
|
4245
4245
|
$options: ResourcesByRegionOptions
|
|
4246
4246
|
$dateStatus: EventDateStatusEnumType
|
|
4247
|
+
$tags: [String]
|
|
4247
4248
|
) {
|
|
4248
4249
|
eventsByRegion(
|
|
4249
4250
|
region: $region
|
|
4250
4251
|
options: $options
|
|
4251
4252
|
dateStatus: $dateStatus
|
|
4253
|
+
tags: $tags
|
|
4252
4254
|
) {
|
|
4253
4255
|
...EventListItemFields
|
|
4254
4256
|
}
|
|
@@ -5948,11 +5950,12 @@ var useGetEventByPlaceId = (googlePlaceId) => {
|
|
|
5948
5950
|
const eventByPlaceId = data?.eventByPlaceId || null;
|
|
5949
5951
|
return { error, eventByPlaceId, loading, refetch };
|
|
5950
5952
|
};
|
|
5951
|
-
var useGetEventsByRegion = (region, options, dateStatus) => {
|
|
5953
|
+
var useGetEventsByRegion = (region, options, dateStatus, tags) => {
|
|
5952
5954
|
const variables = {
|
|
5953
5955
|
dateStatus,
|
|
5954
5956
|
options,
|
|
5955
|
-
region
|
|
5957
|
+
region,
|
|
5958
|
+
tags: (tags ?? []).filter(Boolean)
|
|
5956
5959
|
};
|
|
5957
5960
|
const { loading, error, data, refetch, fetchMore } = (0, import_client25.useQuery)(GET_EVENTS_BY_REGION, {
|
|
5958
5961
|
fetchPolicy: "network-only",
|
|
@@ -8709,35 +8712,35 @@ var REWARD_COUPON_MUTATION = import_client79.gql`
|
|
|
8709
8712
|
var useCreateCoupon = () => {
|
|
8710
8713
|
const [createCoupon, { loading, error }] = (0, import_client80.useMutation)(CREATE_COUPON_MUTATION, {
|
|
8711
8714
|
awaitRefetchQueries: true,
|
|
8712
|
-
refetchQueries: [
|
|
8715
|
+
refetchQueries: [GET_COUPONS]
|
|
8713
8716
|
});
|
|
8714
8717
|
return { createCoupon, error, loading };
|
|
8715
8718
|
};
|
|
8716
8719
|
var useUpdateCoupon = () => {
|
|
8717
8720
|
const [updateCoupon, { loading, error }] = (0, import_client80.useMutation)(UPDATE_COUPON_MUTATION, {
|
|
8718
8721
|
awaitRefetchQueries: true,
|
|
8719
|
-
refetchQueries: [
|
|
8722
|
+
refetchQueries: [GET_COUPONS]
|
|
8720
8723
|
});
|
|
8721
8724
|
return { error, loading, updateCoupon };
|
|
8722
8725
|
};
|
|
8723
8726
|
var useDeleteCoupon = () => {
|
|
8724
8727
|
const [deleteCoupon, { loading, error }] = (0, import_client80.useMutation)(DELETE_COUPON_MUTATION, {
|
|
8725
8728
|
awaitRefetchQueries: true,
|
|
8726
|
-
refetchQueries: [
|
|
8729
|
+
refetchQueries: [GET_COUPONS]
|
|
8727
8730
|
});
|
|
8728
8731
|
return { deleteCoupon, error, loading };
|
|
8729
8732
|
};
|
|
8730
8733
|
var useScanCoupon = () => {
|
|
8731
8734
|
const [scanCoupon, { loading, error }] = (0, import_client80.useMutation)(SCAN_COUPON_MUTATION, {
|
|
8732
8735
|
awaitRefetchQueries: true,
|
|
8733
|
-
refetchQueries: [
|
|
8736
|
+
refetchQueries: [GET_COUPONS]
|
|
8734
8737
|
});
|
|
8735
8738
|
return { error, loading, scanCoupon };
|
|
8736
8739
|
};
|
|
8737
8740
|
var useRewardCoupon = () => {
|
|
8738
8741
|
const [rewardCoupon, { loading, error }] = (0, import_client80.useMutation)(REWARD_COUPON_MUTATION, {
|
|
8739
8742
|
awaitRefetchQueries: true,
|
|
8740
|
-
refetchQueries: [
|
|
8743
|
+
refetchQueries: [GET_COUPONS]
|
|
8741
8744
|
});
|
|
8742
8745
|
return { error, loading, rewardCoupon };
|
|
8743
8746
|
};
|