@timardex/cluemart-shared 1.4.52 → 1.4.53
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/{chunk-TF7EJMWK.mjs → chunk-DLRHVMT7.mjs} +19 -7
- package/dist/chunk-DLRHVMT7.mjs.map +1 -0
- package/dist/graphql/index.cjs +18 -6
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +17 -1
- package/dist/graphql/index.d.ts +17 -1
- package/dist/graphql/index.mjs +1 -1
- package/dist/hooks/index.cjs +2 -2
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.mjs +1 -1
- package/dist/index.cjs +18 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +17 -1
- package/dist/index.d.ts +17 -1
- package/dist/index.mjs +18 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-TF7EJMWK.mjs.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -1417,9 +1417,25 @@ declare const useGetEventByPlaceId: (googlePlaceId: string) => {
|
|
|
1417
1417
|
eventByPlaceId: EventListItemType | null;
|
|
1418
1418
|
}>>;
|
|
1419
1419
|
};
|
|
1420
|
-
declare const useGetEventsByRegion: (region: string,
|
|
1420
|
+
declare const useGetEventsByRegion: (region: string, options?: {
|
|
1421
|
+
onlyClaimed?: boolean;
|
|
1422
|
+
limit?: number;
|
|
1423
|
+
offset?: number;
|
|
1424
|
+
}) => {
|
|
1421
1425
|
error: _apollo_client.ApolloError | undefined;
|
|
1422
1426
|
eventsByRegion: EventListItemType[];
|
|
1427
|
+
fetchMore: <TFetchData = {
|
|
1428
|
+
eventsByRegion: EventListItemType[];
|
|
1429
|
+
}, TFetchVars extends _apollo_client.OperationVariables = _apollo_client.OperationVariables>(fetchMoreOptions: _apollo_client.FetchMoreQueryOptions<TFetchVars, TFetchData> & {
|
|
1430
|
+
updateQuery?: ((previousQueryResult: {
|
|
1431
|
+
eventsByRegion: EventListItemType[];
|
|
1432
|
+
}, options: {
|
|
1433
|
+
fetchMoreResult: _apollo_client.Unmasked<TFetchData>;
|
|
1434
|
+
variables: TFetchVars;
|
|
1435
|
+
}) => {
|
|
1436
|
+
eventsByRegion: EventListItemType[];
|
|
1437
|
+
}) | undefined;
|
|
1438
|
+
}) => Promise<_apollo_client.ApolloQueryResult<TFetchData>>;
|
|
1423
1439
|
loading: boolean;
|
|
1424
1440
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
1425
1441
|
eventsByRegion: EventListItemType[];
|
package/dist/index.d.ts
CHANGED
|
@@ -1417,9 +1417,25 @@ declare const useGetEventByPlaceId: (googlePlaceId: string) => {
|
|
|
1417
1417
|
eventByPlaceId: EventListItemType | null;
|
|
1418
1418
|
}>>;
|
|
1419
1419
|
};
|
|
1420
|
-
declare const useGetEventsByRegion: (region: string,
|
|
1420
|
+
declare const useGetEventsByRegion: (region: string, options?: {
|
|
1421
|
+
onlyClaimed?: boolean;
|
|
1422
|
+
limit?: number;
|
|
1423
|
+
offset?: number;
|
|
1424
|
+
}) => {
|
|
1421
1425
|
error: _apollo_client.ApolloError | undefined;
|
|
1422
1426
|
eventsByRegion: EventListItemType[];
|
|
1427
|
+
fetchMore: <TFetchData = {
|
|
1428
|
+
eventsByRegion: EventListItemType[];
|
|
1429
|
+
}, TFetchVars extends _apollo_client.OperationVariables = _apollo_client.OperationVariables>(fetchMoreOptions: _apollo_client.FetchMoreQueryOptions<TFetchVars, TFetchData> & {
|
|
1430
|
+
updateQuery?: ((previousQueryResult: {
|
|
1431
|
+
eventsByRegion: EventListItemType[];
|
|
1432
|
+
}, options: {
|
|
1433
|
+
fetchMoreResult: _apollo_client.Unmasked<TFetchData>;
|
|
1434
|
+
variables: TFetchVars;
|
|
1435
|
+
}) => {
|
|
1436
|
+
eventsByRegion: EventListItemType[];
|
|
1437
|
+
}) | undefined;
|
|
1438
|
+
}) => Promise<_apollo_client.ApolloQueryResult<TFetchData>>;
|
|
1423
1439
|
loading: boolean;
|
|
1424
1440
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
1425
1441
|
eventsByRegion: EventListItemType[];
|
package/dist/index.mjs
CHANGED
|
@@ -2674,8 +2674,8 @@ var GET_EVENT_BY_PLACE_ID = gql3`
|
|
|
2674
2674
|
${EVENT_LIST_ITEM}
|
|
2675
2675
|
`;
|
|
2676
2676
|
var GET_EVENTS_BY_REGION = gql3`
|
|
2677
|
-
query getEventsByRegion($region: String!, $
|
|
2678
|
-
eventsByRegion(region: $region,
|
|
2677
|
+
query getEventsByRegion($region: String!, $options: EventsByRegionOptions) {
|
|
2678
|
+
eventsByRegion(region: $region, options: $options) {
|
|
2679
2679
|
...EventListItemFields
|
|
2680
2680
|
}
|
|
2681
2681
|
}
|
|
@@ -3741,14 +3741,26 @@ var useGetEventByPlaceId = (googlePlaceId) => {
|
|
|
3741
3741
|
const eventByPlaceId = data?.eventByPlaceId || null;
|
|
3742
3742
|
return { error, eventByPlaceId, loading, refetch };
|
|
3743
3743
|
};
|
|
3744
|
-
var useGetEventsByRegion = (region,
|
|
3745
|
-
const {
|
|
3744
|
+
var useGetEventsByRegion = (region, options) => {
|
|
3745
|
+
const { onlyClaimed, limit, offset } = options || {};
|
|
3746
|
+
const { loading, error, data, refetch, fetchMore } = useQuery2(GET_EVENTS_BY_REGION, {
|
|
3746
3747
|
fetchPolicy: "no-cache",
|
|
3747
3748
|
skip: !region,
|
|
3748
|
-
variables: {
|
|
3749
|
+
variables: {
|
|
3750
|
+
limit,
|
|
3751
|
+
offset,
|
|
3752
|
+
onlyClaimed,
|
|
3753
|
+
region
|
|
3754
|
+
}
|
|
3749
3755
|
});
|
|
3750
3756
|
const eventsByRegion = data?.eventsByRegion || [];
|
|
3751
|
-
return {
|
|
3757
|
+
return {
|
|
3758
|
+
error,
|
|
3759
|
+
eventsByRegion,
|
|
3760
|
+
fetchMore,
|
|
3761
|
+
loading,
|
|
3762
|
+
refetch
|
|
3763
|
+
};
|
|
3752
3764
|
};
|
|
3753
3765
|
var useSearchEvents = (search, region) => {
|
|
3754
3766
|
const { loading, error, data, refetch } = useQuery2(SEARCH_EVENTS, {
|