@connectedxm/client 4.3.0 → 4.3.1
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/index.d.ts +3 -4
- package/dist/index.js +5 -10
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2961,15 +2961,14 @@ interface GetEventActivationProps extends SingleQueryParams {
|
|
|
2961
2961
|
declare const GetEventActivation: ({ eventId, passId, activationId, clientApiParams, }: GetEventActivationProps) => Promise<ConnectedXMResponse<EventActivation>>;
|
|
2962
2962
|
declare const useGetEventActivation: (eventId: string | undefined, passId: string | undefined, activationId: string, options?: SingleQueryOptions<ReturnType<typeof GetEventActivation>>) => _tanstack_react_query.UseQueryResult<ConnectedXMResponse<EventActivation>, axios.AxiosError<ConnectedXMResponse<any>, any>>;
|
|
2963
2963
|
|
|
2964
|
-
declare const EVENT_ACTIVATIONS_QUERY_KEY: (eventId: string, passId: string
|
|
2964
|
+
declare const EVENT_ACTIVATIONS_QUERY_KEY: (eventId: string, passId: string) => QueryKey;
|
|
2965
2965
|
declare const SET_EVENT_ACTIVATIONS_QUERY_DATA: (client: QueryClient, keyParams: Parameters<typeof EVENT_ACTIVATIONS_QUERY_KEY>, response: Awaited<ReturnType<typeof GetEventActivations>>, baseKeys?: Parameters<typeof GetBaseInfiniteQueryKeys>) => void;
|
|
2966
2966
|
interface GetEventActivationsProps extends InfiniteQueryParams {
|
|
2967
2967
|
eventId: string;
|
|
2968
2968
|
passId: string;
|
|
2969
|
-
accessLevel?: keyof typeof TicketEventAccessLevel;
|
|
2970
2969
|
}
|
|
2971
|
-
declare const GetEventActivations: ({ eventId, passId,
|
|
2972
|
-
declare const useGetEventActivations: (eventId?: string, passId?: string,
|
|
2970
|
+
declare const GetEventActivations: ({ eventId, passId, pageParam, pageSize, orderBy, search, clientApiParams, }: GetEventActivationsProps) => Promise<ConnectedXMResponse<EventActivation[]>>;
|
|
2971
|
+
declare const useGetEventActivations: (eventId?: string, passId?: string, params?: Omit<InfiniteQueryParams, "pageParam" | "queryClient" | "clientApiParams">, options?: InfiniteQueryOptions<Awaited<ReturnType<typeof GetEventActivations>>>) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<ConnectedXMResponse<EventActivation[]>, number>, axios.AxiosError<ConnectedXMResponse<null>, any>>;
|
|
2973
2972
|
|
|
2974
2973
|
declare const EVENT_ACTIVATION_SUMMARY_QUERY_KEY: (eventId: string, passId: string) => QueryKey;
|
|
2975
2974
|
interface GetEventActivationSummaryProps extends SingleQueryParams {
|
package/dist/index.js
CHANGED
|
@@ -2966,11 +2966,8 @@ var useGetFeaturedEvents = (params = {}, options = {}) => {
|
|
|
2966
2966
|
};
|
|
2967
2967
|
|
|
2968
2968
|
// src/queries/events/useGetEventActivations.ts
|
|
2969
|
-
var EVENT_ACTIVATIONS_QUERY_KEY = (eventId, passId
|
|
2969
|
+
var EVENT_ACTIVATIONS_QUERY_KEY = (eventId, passId) => {
|
|
2970
2970
|
const key = [...EVENT_QUERY_KEY(eventId), "ACTIVATIONS", passId];
|
|
2971
|
-
if (accessLevel) {
|
|
2972
|
-
key.push(accessLevel);
|
|
2973
|
-
}
|
|
2974
2971
|
return key;
|
|
2975
2972
|
};
|
|
2976
2973
|
var SET_EVENT_ACTIVATIONS_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
|
|
@@ -2985,7 +2982,6 @@ var SET_EVENT_ACTIVATIONS_QUERY_DATA = (client, keyParams, response, baseKeys =
|
|
|
2985
2982
|
var GetEventActivations = async ({
|
|
2986
2983
|
eventId,
|
|
2987
2984
|
passId,
|
|
2988
|
-
accessLevel,
|
|
2989
2985
|
pageParam,
|
|
2990
2986
|
pageSize,
|
|
2991
2987
|
orderBy,
|
|
@@ -3000,17 +2996,16 @@ var GetEventActivations = async ({
|
|
|
3000
2996
|
page: pageParam || void 0,
|
|
3001
2997
|
pageSize: pageSize || void 0,
|
|
3002
2998
|
orderBy: orderBy || void 0,
|
|
3003
|
-
search: search || void 0
|
|
3004
|
-
accessLevel: accessLevel || void 0
|
|
2999
|
+
search: search || void 0
|
|
3005
3000
|
}
|
|
3006
3001
|
}
|
|
3007
3002
|
);
|
|
3008
3003
|
return data;
|
|
3009
3004
|
};
|
|
3010
|
-
var useGetEventActivations = (eventId = "", passId = "",
|
|
3005
|
+
var useGetEventActivations = (eventId = "", passId = "", params = {}, options = {}) => {
|
|
3011
3006
|
return useConnectedInfiniteQuery(
|
|
3012
|
-
EVENT_ACTIVATIONS_QUERY_KEY(eventId, passId
|
|
3013
|
-
(params2) => GetEventActivations({ eventId, passId,
|
|
3007
|
+
EVENT_ACTIVATIONS_QUERY_KEY(eventId, passId),
|
|
3008
|
+
(params2) => GetEventActivations({ eventId, passId, ...params2 }),
|
|
3014
3009
|
params,
|
|
3015
3010
|
{
|
|
3016
3011
|
...options,
|