@connectedxm/admin 4.3.0 → 4.3.2
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 +63 -0
- package/dist/index.d.cts +42 -1
- package/dist/index.d.ts +42 -1
- package/dist/index.js +59 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -25377,6 +25377,27 @@ var useDeleteEventSessionAccess = (options = {}) => {
|
|
|
25377
25377
|
return useConnectedMutation(DeleteEventSessionAccess, options);
|
|
25378
25378
|
};
|
|
25379
25379
|
|
|
25380
|
+
// src/mutations/event/passes/useIndexEventPasses.ts
|
|
25381
|
+
var IndexEventPasses = async ({
|
|
25382
|
+
eventId,
|
|
25383
|
+
adminApiParams,
|
|
25384
|
+
queryClient
|
|
25385
|
+
}) => {
|
|
25386
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
25387
|
+
const { data } = await connectedXM.post(
|
|
25388
|
+
`/events/${eventId}/index-passes`
|
|
25389
|
+
);
|
|
25390
|
+
if (queryClient && data.status === "ok") {
|
|
25391
|
+
queryClient.invalidateQueries({
|
|
25392
|
+
queryKey: EVENT_PASSES_QUERY_KEY(eventId)
|
|
25393
|
+
});
|
|
25394
|
+
}
|
|
25395
|
+
return data;
|
|
25396
|
+
};
|
|
25397
|
+
var useIndexEventPasses = (options = {}) => {
|
|
25398
|
+
return useConnectedMutation(IndexEventPasses, options);
|
|
25399
|
+
};
|
|
25400
|
+
|
|
25380
25401
|
// src/mutations/event/passes/useRemoveEventPassAddOn.ts
|
|
25381
25402
|
var RemoveEventPassAddOn = async ({
|
|
25382
25403
|
addOnId,
|
|
@@ -26438,6 +26459,40 @@ var useRemoveRoomFromRoomType = (options = {}) => {
|
|
|
26438
26459
|
return useConnectedMutation(RemoveRoomFromRoomType, options);
|
|
26439
26460
|
};
|
|
26440
26461
|
|
|
26462
|
+
// src/mutations/event/rooms/useUpdateRoom.ts
|
|
26463
|
+
var UpdateRoom = async ({
|
|
26464
|
+
eventId,
|
|
26465
|
+
roomName,
|
|
26466
|
+
room,
|
|
26467
|
+
adminApiParams,
|
|
26468
|
+
queryClient
|
|
26469
|
+
}) => {
|
|
26470
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
26471
|
+
const { data } = await connectedXM.put(
|
|
26472
|
+
`/events/${eventId}/rooms/${roomName}`,
|
|
26473
|
+
room
|
|
26474
|
+
);
|
|
26475
|
+
if (queryClient && data.status === "ok") {
|
|
26476
|
+
queryClient.invalidateQueries({
|
|
26477
|
+
queryKey: EVENT_ROOMS_QUERY_KEY(eventId)
|
|
26478
|
+
});
|
|
26479
|
+
const updatedRoomName = data.data.roomName ?? roomName;
|
|
26480
|
+
SET_EVENT_ROOM_QUERY_DATA(queryClient, [eventId, updatedRoomName], data);
|
|
26481
|
+
if (updatedRoomName !== roomName) {
|
|
26482
|
+
queryClient.removeQueries({
|
|
26483
|
+
queryKey: EVENT_ROOM_QUERY_KEY(eventId, roomName)
|
|
26484
|
+
});
|
|
26485
|
+
}
|
|
26486
|
+
queryClient.invalidateQueries({
|
|
26487
|
+
queryKey: EVENT_ROOM_TYPES_QUERY_KEY(eventId)
|
|
26488
|
+
});
|
|
26489
|
+
}
|
|
26490
|
+
return data;
|
|
26491
|
+
};
|
|
26492
|
+
var useUpdateRoom = (options = {}) => {
|
|
26493
|
+
return useConnectedMutation(UpdateRoom, options);
|
|
26494
|
+
};
|
|
26495
|
+
|
|
26441
26496
|
// src/mutations/event/roomTypes/translations/useCreateEventRoomTypeTranslation.ts
|
|
26442
26497
|
var CreateEventRoomTypeTranslation = async ({
|
|
26443
26498
|
eventId,
|
|
@@ -36872,6 +36927,7 @@ export {
|
|
|
36872
36927
|
ImportItemStatus,
|
|
36873
36928
|
ImportRooms,
|
|
36874
36929
|
ImportType,
|
|
36930
|
+
IndexEventPasses,
|
|
36875
36931
|
InitiateVideoDownload,
|
|
36876
36932
|
IntegrationType,
|
|
36877
36933
|
InvoiceStatus,
|
|
@@ -37705,6 +37761,7 @@ export {
|
|
|
37705
37761
|
UpdateOrganizationTeamMember,
|
|
37706
37762
|
UpdateOrganizationWebhook,
|
|
37707
37763
|
UpdatePayment,
|
|
37764
|
+
UpdateRoom,
|
|
37708
37765
|
UpdateSearchList,
|
|
37709
37766
|
UpdateSearchListValue,
|
|
37710
37767
|
UpdateSelf,
|
|
@@ -38577,6 +38634,7 @@ export {
|
|
|
38577
38634
|
useGetVideos,
|
|
38578
38635
|
useImpersonateAccount,
|
|
38579
38636
|
useImportRooms,
|
|
38637
|
+
useIndexEventPasses,
|
|
38580
38638
|
useInitiateVideoDownload,
|
|
38581
38639
|
usePublishActivity,
|
|
38582
38640
|
useRefundOrganizationPayment,
|
|
@@ -38798,6 +38856,7 @@ export {
|
|
|
38798
38856
|
useUpdateOrganizationTeamMember,
|
|
38799
38857
|
useUpdateOrganizationWebhook,
|
|
38800
38858
|
useUpdatePayment,
|
|
38859
|
+
useUpdateRoom,
|
|
38801
38860
|
useUpdateSearchList,
|
|
38802
38861
|
useUpdateSearchListValue,
|
|
38803
38862
|
useUpdateSelf,
|