@connectedxm/admin 1.7.10 → 1.7.11
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.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +5 -20
- package/dist/index.mjs +5 -20
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -8047,19 +8047,19 @@ declare const EVENT_GALLERY_IMAGES_QUERY_KEY: (eventId: string) => string[];
|
|
|
8047
8047
|
* @group Events
|
|
8048
8048
|
*/
|
|
8049
8049
|
declare const SET_EVENT_GALLERY_IMAGES_QUERY_DATA: (client: any, keyParams: Parameters<typeof EVENT_GALLERY_IMAGES_QUERY_KEY>, response: Awaited<ReturnType<typeof GetEventGalleryImages>>) => void;
|
|
8050
|
-
interface GetEventGalleryImagesProps extends
|
|
8050
|
+
interface GetEventGalleryImagesProps extends SingleQueryParams {
|
|
8051
8051
|
eventId: string;
|
|
8052
8052
|
}
|
|
8053
8053
|
/**
|
|
8054
8054
|
* @category Queries
|
|
8055
8055
|
* @group Events
|
|
8056
8056
|
*/
|
|
8057
|
-
declare const GetEventGalleryImages: ({ eventId,
|
|
8057
|
+
declare const GetEventGalleryImages: ({ eventId, adminApiParams, }: GetEventGalleryImagesProps) => Promise<ConnectedXMResponse<EventGalleryImage[]>>;
|
|
8058
8058
|
/**
|
|
8059
8059
|
* @category Hooks
|
|
8060
8060
|
* @group Events
|
|
8061
8061
|
*/
|
|
8062
|
-
declare const useGetEventGalleryImages: (eventId?: string,
|
|
8062
|
+
declare const useGetEventGalleryImages: (eventId?: string, options?: SingleQueryOptions<ReturnType<typeof GetEventGalleryImages>>) => _tanstack_react_query.UseQueryResult<ConnectedXMResponse<EventGalleryImage[]>, axios.AxiosError<ConnectedXMResponse<any>, any>>;
|
|
8063
8063
|
|
|
8064
8064
|
/**
|
|
8065
8065
|
* @category Keys
|
package/dist/index.d.ts
CHANGED
|
@@ -8047,19 +8047,19 @@ declare const EVENT_GALLERY_IMAGES_QUERY_KEY: (eventId: string) => string[];
|
|
|
8047
8047
|
* @group Events
|
|
8048
8048
|
*/
|
|
8049
8049
|
declare const SET_EVENT_GALLERY_IMAGES_QUERY_DATA: (client: any, keyParams: Parameters<typeof EVENT_GALLERY_IMAGES_QUERY_KEY>, response: Awaited<ReturnType<typeof GetEventGalleryImages>>) => void;
|
|
8050
|
-
interface GetEventGalleryImagesProps extends
|
|
8050
|
+
interface GetEventGalleryImagesProps extends SingleQueryParams {
|
|
8051
8051
|
eventId: string;
|
|
8052
8052
|
}
|
|
8053
8053
|
/**
|
|
8054
8054
|
* @category Queries
|
|
8055
8055
|
* @group Events
|
|
8056
8056
|
*/
|
|
8057
|
-
declare const GetEventGalleryImages: ({ eventId,
|
|
8057
|
+
declare const GetEventGalleryImages: ({ eventId, adminApiParams, }: GetEventGalleryImagesProps) => Promise<ConnectedXMResponse<EventGalleryImage[]>>;
|
|
8058
8058
|
/**
|
|
8059
8059
|
* @category Hooks
|
|
8060
8060
|
* @group Events
|
|
8061
8061
|
*/
|
|
8062
|
-
declare const useGetEventGalleryImages: (eventId?: string,
|
|
8062
|
+
declare const useGetEventGalleryImages: (eventId?: string, options?: SingleQueryOptions<ReturnType<typeof GetEventGalleryImages>>) => _tanstack_react_query.UseQueryResult<ConnectedXMResponse<EventGalleryImage[]>, axios.AxiosError<ConnectedXMResponse<any>, any>>;
|
|
8063
8063
|
|
|
8064
8064
|
/**
|
|
8065
8065
|
* @category Keys
|
package/dist/index.js
CHANGED
|
@@ -8493,34 +8493,19 @@ var SET_EVENT_GALLERY_IMAGES_QUERY_DATA = (client, keyParams, response) => {
|
|
|
8493
8493
|
};
|
|
8494
8494
|
var GetEventGalleryImages = async ({
|
|
8495
8495
|
eventId,
|
|
8496
|
-
pageParam,
|
|
8497
|
-
pageSize,
|
|
8498
|
-
orderBy,
|
|
8499
|
-
search,
|
|
8500
8496
|
adminApiParams
|
|
8501
8497
|
}) => {
|
|
8502
8498
|
const adminApi = await GetAdminAPI(adminApiParams);
|
|
8503
|
-
const { data } = await adminApi.get(`/events/${eventId}/images
|
|
8504
|
-
params: {
|
|
8505
|
-
page: pageParam || void 0,
|
|
8506
|
-
pageSize: pageSize || void 0,
|
|
8507
|
-
orderBy: orderBy || void 0,
|
|
8508
|
-
search: search || void 0
|
|
8509
|
-
}
|
|
8510
|
-
});
|
|
8499
|
+
const { data } = await adminApi.get(`/events/${eventId}/images`);
|
|
8511
8500
|
return data;
|
|
8512
8501
|
};
|
|
8513
|
-
var useGetEventGalleryImages = (eventId = "",
|
|
8514
|
-
return
|
|
8502
|
+
var useGetEventGalleryImages = (eventId = "", options = {}) => {
|
|
8503
|
+
return useConnectedSingleQuery(
|
|
8515
8504
|
EVENT_GALLERY_IMAGES_QUERY_KEY(eventId),
|
|
8516
|
-
(
|
|
8517
|
-
...params2,
|
|
8518
|
-
eventId
|
|
8519
|
-
}),
|
|
8520
|
-
params,
|
|
8505
|
+
(params) => GetEventGalleryImages({ eventId, ...params }),
|
|
8521
8506
|
{
|
|
8522
8507
|
...options,
|
|
8523
|
-
enabled: !!eventId && (options
|
|
8508
|
+
enabled: !!eventId && (options?.enabled ?? true)
|
|
8524
8509
|
},
|
|
8525
8510
|
"events"
|
|
8526
8511
|
);
|
package/dist/index.mjs
CHANGED
|
@@ -6068,34 +6068,19 @@ var SET_EVENT_GALLERY_IMAGES_QUERY_DATA = (client, keyParams, response) => {
|
|
|
6068
6068
|
};
|
|
6069
6069
|
var GetEventGalleryImages = async ({
|
|
6070
6070
|
eventId,
|
|
6071
|
-
pageParam,
|
|
6072
|
-
pageSize,
|
|
6073
|
-
orderBy,
|
|
6074
|
-
search,
|
|
6075
6071
|
adminApiParams
|
|
6076
6072
|
}) => {
|
|
6077
6073
|
const adminApi = await GetAdminAPI(adminApiParams);
|
|
6078
|
-
const { data } = await adminApi.get(`/events/${eventId}/images
|
|
6079
|
-
params: {
|
|
6080
|
-
page: pageParam || void 0,
|
|
6081
|
-
pageSize: pageSize || void 0,
|
|
6082
|
-
orderBy: orderBy || void 0,
|
|
6083
|
-
search: search || void 0
|
|
6084
|
-
}
|
|
6085
|
-
});
|
|
6074
|
+
const { data } = await adminApi.get(`/events/${eventId}/images`);
|
|
6086
6075
|
return data;
|
|
6087
6076
|
};
|
|
6088
|
-
var useGetEventGalleryImages = (eventId = "",
|
|
6089
|
-
return
|
|
6077
|
+
var useGetEventGalleryImages = (eventId = "", options = {}) => {
|
|
6078
|
+
return useConnectedSingleQuery(
|
|
6090
6079
|
EVENT_GALLERY_IMAGES_QUERY_KEY(eventId),
|
|
6091
|
-
(
|
|
6092
|
-
...params2,
|
|
6093
|
-
eventId
|
|
6094
|
-
}),
|
|
6095
|
-
params,
|
|
6080
|
+
(params) => GetEventGalleryImages({ eventId, ...params }),
|
|
6096
6081
|
{
|
|
6097
6082
|
...options,
|
|
6098
|
-
enabled: !!eventId && (options
|
|
6083
|
+
enabled: !!eventId && (options?.enabled ?? true)
|
|
6099
6084
|
},
|
|
6100
6085
|
"events"
|
|
6101
6086
|
);
|