@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.d.mts
CHANGED
|
@@ -2089,7 +2089,7 @@ declare const useGetEventByPlaceId: (googlePlaceId: string) => {
|
|
|
2089
2089
|
eventByPlaceId: EventListItemType | null;
|
|
2090
2090
|
}>>;
|
|
2091
2091
|
};
|
|
2092
|
-
declare const useGetEventsByRegion: (region: string, options?: UseGetResourcesByRegionOptions, dateStatus?: EnumEventDateStatus) => {
|
|
2092
|
+
declare const useGetEventsByRegion: (region: string, options?: UseGetResourcesByRegionOptions, dateStatus?: EnumEventDateStatus, tags?: string[]) => {
|
|
2093
2093
|
error: _apollo_client.ApolloError | undefined;
|
|
2094
2094
|
eventsByRegion: EventListItemType[];
|
|
2095
2095
|
fetchMore: <TFetchData = {
|
package/dist/index.d.ts
CHANGED
|
@@ -2089,7 +2089,7 @@ declare const useGetEventByPlaceId: (googlePlaceId: string) => {
|
|
|
2089
2089
|
eventByPlaceId: EventListItemType | null;
|
|
2090
2090
|
}>>;
|
|
2091
2091
|
};
|
|
2092
|
-
declare const useGetEventsByRegion: (region: string, options?: UseGetResourcesByRegionOptions, dateStatus?: EnumEventDateStatus) => {
|
|
2092
|
+
declare const useGetEventsByRegion: (region: string, options?: UseGetResourcesByRegionOptions, dateStatus?: EnumEventDateStatus, tags?: string[]) => {
|
|
2093
2093
|
error: _apollo_client.ApolloError | undefined;
|
|
2094
2094
|
eventsByRegion: EventListItemType[];
|
|
2095
2095
|
fetchMore: <TFetchData = {
|
package/dist/index.mjs
CHANGED
|
@@ -3749,11 +3749,13 @@ var GET_EVENTS_BY_REGION = gql2`
|
|
|
3749
3749
|
$region: String!
|
|
3750
3750
|
$options: ResourcesByRegionOptions
|
|
3751
3751
|
$dateStatus: EventDateStatusEnumType
|
|
3752
|
+
$tags: [String]
|
|
3752
3753
|
) {
|
|
3753
3754
|
eventsByRegion(
|
|
3754
3755
|
region: $region
|
|
3755
3756
|
options: $options
|
|
3756
3757
|
dateStatus: $dateStatus
|
|
3758
|
+
tags: $tags
|
|
3757
3759
|
) {
|
|
3758
3760
|
...EventListItemFields
|
|
3759
3761
|
}
|
|
@@ -5453,11 +5455,12 @@ var useGetEventByPlaceId = (googlePlaceId) => {
|
|
|
5453
5455
|
const eventByPlaceId = data?.eventByPlaceId || null;
|
|
5454
5456
|
return { error, eventByPlaceId, loading, refetch };
|
|
5455
5457
|
};
|
|
5456
|
-
var useGetEventsByRegion = (region, options, dateStatus) => {
|
|
5458
|
+
var useGetEventsByRegion = (region, options, dateStatus, tags) => {
|
|
5457
5459
|
const variables = {
|
|
5458
5460
|
dateStatus,
|
|
5459
5461
|
options,
|
|
5460
|
-
region
|
|
5462
|
+
region,
|
|
5463
|
+
tags: (tags ?? []).filter(Boolean)
|
|
5461
5464
|
};
|
|
5462
5465
|
const { loading, error, data, refetch, fetchMore } = useQuery2(GET_EVENTS_BY_REGION, {
|
|
5463
5466
|
fetchPolicy: "network-only",
|
|
@@ -8214,35 +8217,35 @@ var REWARD_COUPON_MUTATION = gql43`
|
|
|
8214
8217
|
var useCreateCoupon = () => {
|
|
8215
8218
|
const [createCoupon, { loading, error }] = useMutation21(CREATE_COUPON_MUTATION, {
|
|
8216
8219
|
awaitRefetchQueries: true,
|
|
8217
|
-
refetchQueries: [
|
|
8220
|
+
refetchQueries: [GET_COUPONS]
|
|
8218
8221
|
});
|
|
8219
8222
|
return { createCoupon, error, loading };
|
|
8220
8223
|
};
|
|
8221
8224
|
var useUpdateCoupon = () => {
|
|
8222
8225
|
const [updateCoupon, { loading, error }] = useMutation21(UPDATE_COUPON_MUTATION, {
|
|
8223
8226
|
awaitRefetchQueries: true,
|
|
8224
|
-
refetchQueries: [
|
|
8227
|
+
refetchQueries: [GET_COUPONS]
|
|
8225
8228
|
});
|
|
8226
8229
|
return { error, loading, updateCoupon };
|
|
8227
8230
|
};
|
|
8228
8231
|
var useDeleteCoupon = () => {
|
|
8229
8232
|
const [deleteCoupon, { loading, error }] = useMutation21(DELETE_COUPON_MUTATION, {
|
|
8230
8233
|
awaitRefetchQueries: true,
|
|
8231
|
-
refetchQueries: [
|
|
8234
|
+
refetchQueries: [GET_COUPONS]
|
|
8232
8235
|
});
|
|
8233
8236
|
return { deleteCoupon, error, loading };
|
|
8234
8237
|
};
|
|
8235
8238
|
var useScanCoupon = () => {
|
|
8236
8239
|
const [scanCoupon, { loading, error }] = useMutation21(SCAN_COUPON_MUTATION, {
|
|
8237
8240
|
awaitRefetchQueries: true,
|
|
8238
|
-
refetchQueries: [
|
|
8241
|
+
refetchQueries: [GET_COUPONS]
|
|
8239
8242
|
});
|
|
8240
8243
|
return { error, loading, scanCoupon };
|
|
8241
8244
|
};
|
|
8242
8245
|
var useRewardCoupon = () => {
|
|
8243
8246
|
const [rewardCoupon, { loading, error }] = useMutation21(REWARD_COUPON_MUTATION, {
|
|
8244
8247
|
awaitRefetchQueries: true,
|
|
8245
|
-
refetchQueries: [
|
|
8248
|
+
refetchQueries: [GET_COUPONS]
|
|
8246
8249
|
});
|
|
8247
8250
|
return { error, loading, rewardCoupon };
|
|
8248
8251
|
};
|