@connectedxm/admin 2.10.0 → 2.10.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.cjs +11 -5
- package/dist/index.d.cts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +11 -5
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -13816,7 +13816,10 @@ var useGetEventSessionTranslation = (eventId = "", sessionId = "", locale = "",
|
|
|
13816
13816
|
};
|
|
13817
13817
|
|
|
13818
13818
|
// src/queries/events/sessions/useGetEventSessionAccesses.ts
|
|
13819
|
-
var EVENT_SESSION_ACCESSES_QUERY_KEY = (eventId, sessionId) =>
|
|
13819
|
+
var EVENT_SESSION_ACCESSES_QUERY_KEY = (eventId, sessionId, purchaseStatus) => {
|
|
13820
|
+
const baseKey = [...EVENT_SESSION_QUERY_KEY(eventId, sessionId), "PASSES"];
|
|
13821
|
+
return purchaseStatus !== void 0 ? [...baseKey, purchaseStatus] : baseKey;
|
|
13822
|
+
};
|
|
13820
13823
|
var SET_EVENT_SESSION_ACCESSES_QUERY_DATA = (client, keyParams, response) => {
|
|
13821
13824
|
client.setQueryData(EVENT_SESSION_ACCESSES_QUERY_KEY(...keyParams), response);
|
|
13822
13825
|
};
|
|
@@ -13827,6 +13830,7 @@ var GetEventSessionAccesses = async ({
|
|
|
13827
13830
|
pageSize,
|
|
13828
13831
|
orderBy,
|
|
13829
13832
|
search,
|
|
13833
|
+
purchaseStatus,
|
|
13830
13834
|
adminApiParams
|
|
13831
13835
|
}) => {
|
|
13832
13836
|
const adminApi = await GetAdminAPI(adminApiParams);
|
|
@@ -13837,19 +13841,21 @@ var GetEventSessionAccesses = async ({
|
|
|
13837
13841
|
page: pageParam || void 0,
|
|
13838
13842
|
pageSize: pageSize || void 0,
|
|
13839
13843
|
orderBy: orderBy || void 0,
|
|
13840
|
-
search: search || void 0
|
|
13844
|
+
search: search || void 0,
|
|
13845
|
+
purchaseStatus: purchaseStatus || void 0
|
|
13841
13846
|
}
|
|
13842
13847
|
}
|
|
13843
13848
|
);
|
|
13844
13849
|
return data;
|
|
13845
13850
|
};
|
|
13846
|
-
var useGetEventSessionAccesses = (eventId = "", sessionId = "", params = {}, options = {}) => {
|
|
13851
|
+
var useGetEventSessionAccesses = (eventId = "", sessionId = "", purchaseStatus, params = {}, options = {}) => {
|
|
13847
13852
|
return useConnectedInfiniteQuery(
|
|
13848
|
-
EVENT_SESSION_ACCESSES_QUERY_KEY(eventId, sessionId),
|
|
13853
|
+
EVENT_SESSION_ACCESSES_QUERY_KEY(eventId, sessionId, purchaseStatus),
|
|
13849
13854
|
(params2) => GetEventSessionAccesses({
|
|
13850
13855
|
...params2,
|
|
13851
13856
|
eventId,
|
|
13852
|
-
sessionId
|
|
13857
|
+
sessionId,
|
|
13858
|
+
purchaseStatus
|
|
13853
13859
|
}),
|
|
13854
13860
|
params,
|
|
13855
13861
|
{
|
package/dist/index.d.cts
CHANGED
|
@@ -11896,7 +11896,7 @@ declare const useGetEventSession: (eventId?: string, sessionId?: string, options
|
|
|
11896
11896
|
* @category Keys
|
|
11897
11897
|
* @group Events
|
|
11898
11898
|
*/
|
|
11899
|
-
declare const EVENT_SESSION_ACCESSES_QUERY_KEY: (eventId: string, sessionId: string) => string[];
|
|
11899
|
+
declare const EVENT_SESSION_ACCESSES_QUERY_KEY: (eventId: string, sessionId: string, purchaseStatus?: keyof typeof PurchaseStatus) => string[];
|
|
11900
11900
|
/**
|
|
11901
11901
|
* @category Setters
|
|
11902
11902
|
* @group Events
|
|
@@ -11905,17 +11905,18 @@ declare const SET_EVENT_SESSION_ACCESSES_QUERY_DATA: (client: any, keyParams: Pa
|
|
|
11905
11905
|
interface GetEventSessionAccessesProps extends InfiniteQueryParams {
|
|
11906
11906
|
eventId: string;
|
|
11907
11907
|
sessionId: string;
|
|
11908
|
+
purchaseStatus?: keyof typeof PurchaseStatus;
|
|
11908
11909
|
}
|
|
11909
11910
|
/**
|
|
11910
11911
|
* @category Queries
|
|
11911
11912
|
* @group Events
|
|
11912
11913
|
*/
|
|
11913
|
-
declare const GetEventSessionAccesses: ({ eventId, sessionId, pageParam, pageSize, orderBy, search, adminApiParams, }: GetEventSessionAccessesProps) => Promise<ConnectedXMResponse<EventSessionAccess[]>>;
|
|
11914
|
+
declare const GetEventSessionAccesses: ({ eventId, sessionId, pageParam, pageSize, orderBy, search, purchaseStatus, adminApiParams, }: GetEventSessionAccessesProps) => Promise<ConnectedXMResponse<EventSessionAccess[]>>;
|
|
11914
11915
|
/**
|
|
11915
11916
|
* @category Hooks
|
|
11916
11917
|
* @group Events
|
|
11917
11918
|
*/
|
|
11918
|
-
declare const useGetEventSessionAccesses: (eventId?: string, sessionId?: string, params?: Omit<InfiniteQueryParams, "pageParam" | "queryClient" | "adminApiParams">, options?: InfiniteQueryOptions<Awaited<ReturnType<typeof GetEventSessionAccesses>>>) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_query_core.InfiniteData<ConnectedXMResponse<EventSessionAccess[]>, number>, axios.AxiosError<ConnectedXMResponse<null>, any>>;
|
|
11919
|
+
declare const useGetEventSessionAccesses: (eventId?: string, sessionId?: string, purchaseStatus?: keyof typeof PurchaseStatus, params?: Omit<InfiniteQueryParams, "pageParam" | "queryClient" | "adminApiParams">, options?: InfiniteQueryOptions<Awaited<ReturnType<typeof GetEventSessionAccesses>>>) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_query_core.InfiniteData<ConnectedXMResponse<EventSessionAccess[]>, number>, axios.AxiosError<ConnectedXMResponse<null>, any>>;
|
|
11919
11920
|
|
|
11920
11921
|
/**
|
|
11921
11922
|
* @category Keys
|
package/dist/index.d.ts
CHANGED
|
@@ -11896,7 +11896,7 @@ declare const useGetEventSession: (eventId?: string, sessionId?: string, options
|
|
|
11896
11896
|
* @category Keys
|
|
11897
11897
|
* @group Events
|
|
11898
11898
|
*/
|
|
11899
|
-
declare const EVENT_SESSION_ACCESSES_QUERY_KEY: (eventId: string, sessionId: string) => string[];
|
|
11899
|
+
declare const EVENT_SESSION_ACCESSES_QUERY_KEY: (eventId: string, sessionId: string, purchaseStatus?: keyof typeof PurchaseStatus) => string[];
|
|
11900
11900
|
/**
|
|
11901
11901
|
* @category Setters
|
|
11902
11902
|
* @group Events
|
|
@@ -11905,17 +11905,18 @@ declare const SET_EVENT_SESSION_ACCESSES_QUERY_DATA: (client: any, keyParams: Pa
|
|
|
11905
11905
|
interface GetEventSessionAccessesProps extends InfiniteQueryParams {
|
|
11906
11906
|
eventId: string;
|
|
11907
11907
|
sessionId: string;
|
|
11908
|
+
purchaseStatus?: keyof typeof PurchaseStatus;
|
|
11908
11909
|
}
|
|
11909
11910
|
/**
|
|
11910
11911
|
* @category Queries
|
|
11911
11912
|
* @group Events
|
|
11912
11913
|
*/
|
|
11913
|
-
declare const GetEventSessionAccesses: ({ eventId, sessionId, pageParam, pageSize, orderBy, search, adminApiParams, }: GetEventSessionAccessesProps) => Promise<ConnectedXMResponse<EventSessionAccess[]>>;
|
|
11914
|
+
declare const GetEventSessionAccesses: ({ eventId, sessionId, pageParam, pageSize, orderBy, search, purchaseStatus, adminApiParams, }: GetEventSessionAccessesProps) => Promise<ConnectedXMResponse<EventSessionAccess[]>>;
|
|
11914
11915
|
/**
|
|
11915
11916
|
* @category Hooks
|
|
11916
11917
|
* @group Events
|
|
11917
11918
|
*/
|
|
11918
|
-
declare const useGetEventSessionAccesses: (eventId?: string, sessionId?: string, params?: Omit<InfiniteQueryParams, "pageParam" | "queryClient" | "adminApiParams">, options?: InfiniteQueryOptions<Awaited<ReturnType<typeof GetEventSessionAccesses>>>) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_query_core.InfiniteData<ConnectedXMResponse<EventSessionAccess[]>, number>, axios.AxiosError<ConnectedXMResponse<null>, any>>;
|
|
11919
|
+
declare const useGetEventSessionAccesses: (eventId?: string, sessionId?: string, purchaseStatus?: keyof typeof PurchaseStatus, params?: Omit<InfiniteQueryParams, "pageParam" | "queryClient" | "adminApiParams">, options?: InfiniteQueryOptions<Awaited<ReturnType<typeof GetEventSessionAccesses>>>) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_query_core.InfiniteData<ConnectedXMResponse<EventSessionAccess[]>, number>, axios.AxiosError<ConnectedXMResponse<null>, any>>;
|
|
11919
11920
|
|
|
11920
11921
|
/**
|
|
11921
11922
|
* @category Keys
|
package/dist/index.js
CHANGED
|
@@ -10773,7 +10773,10 @@ var useGetEventSessionTranslation = (eventId = "", sessionId = "", locale = "",
|
|
|
10773
10773
|
};
|
|
10774
10774
|
|
|
10775
10775
|
// src/queries/events/sessions/useGetEventSessionAccesses.ts
|
|
10776
|
-
var EVENT_SESSION_ACCESSES_QUERY_KEY = (eventId, sessionId) =>
|
|
10776
|
+
var EVENT_SESSION_ACCESSES_QUERY_KEY = (eventId, sessionId, purchaseStatus) => {
|
|
10777
|
+
const baseKey = [...EVENT_SESSION_QUERY_KEY(eventId, sessionId), "PASSES"];
|
|
10778
|
+
return purchaseStatus !== void 0 ? [...baseKey, purchaseStatus] : baseKey;
|
|
10779
|
+
};
|
|
10777
10780
|
var SET_EVENT_SESSION_ACCESSES_QUERY_DATA = (client, keyParams, response) => {
|
|
10778
10781
|
client.setQueryData(EVENT_SESSION_ACCESSES_QUERY_KEY(...keyParams), response);
|
|
10779
10782
|
};
|
|
@@ -10784,6 +10787,7 @@ var GetEventSessionAccesses = async ({
|
|
|
10784
10787
|
pageSize,
|
|
10785
10788
|
orderBy,
|
|
10786
10789
|
search,
|
|
10790
|
+
purchaseStatus,
|
|
10787
10791
|
adminApiParams
|
|
10788
10792
|
}) => {
|
|
10789
10793
|
const adminApi = await GetAdminAPI(adminApiParams);
|
|
@@ -10794,19 +10798,21 @@ var GetEventSessionAccesses = async ({
|
|
|
10794
10798
|
page: pageParam || void 0,
|
|
10795
10799
|
pageSize: pageSize || void 0,
|
|
10796
10800
|
orderBy: orderBy || void 0,
|
|
10797
|
-
search: search || void 0
|
|
10801
|
+
search: search || void 0,
|
|
10802
|
+
purchaseStatus: purchaseStatus || void 0
|
|
10798
10803
|
}
|
|
10799
10804
|
}
|
|
10800
10805
|
);
|
|
10801
10806
|
return data;
|
|
10802
10807
|
};
|
|
10803
|
-
var useGetEventSessionAccesses = (eventId = "", sessionId = "", params = {}, options = {}) => {
|
|
10808
|
+
var useGetEventSessionAccesses = (eventId = "", sessionId = "", purchaseStatus, params = {}, options = {}) => {
|
|
10804
10809
|
return useConnectedInfiniteQuery(
|
|
10805
|
-
EVENT_SESSION_ACCESSES_QUERY_KEY(eventId, sessionId),
|
|
10810
|
+
EVENT_SESSION_ACCESSES_QUERY_KEY(eventId, sessionId, purchaseStatus),
|
|
10806
10811
|
(params2) => GetEventSessionAccesses({
|
|
10807
10812
|
...params2,
|
|
10808
10813
|
eventId,
|
|
10809
|
-
sessionId
|
|
10814
|
+
sessionId,
|
|
10815
|
+
purchaseStatus
|
|
10810
10816
|
}),
|
|
10811
10817
|
params,
|
|
10812
10818
|
{
|