@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 CHANGED
@@ -1233,6 +1233,7 @@ __export(index_exports, {
1233
1233
  ImportItemStatus: () => ImportItemStatus,
1234
1234
  ImportRooms: () => ImportRooms,
1235
1235
  ImportType: () => ImportType,
1236
+ IndexEventPasses: () => IndexEventPasses,
1236
1237
  InitiateVideoDownload: () => InitiateVideoDownload,
1237
1238
  IntegrationType: () => IntegrationType,
1238
1239
  InvoiceStatus: () => InvoiceStatus,
@@ -2066,6 +2067,7 @@ __export(index_exports, {
2066
2067
  UpdateOrganizationTeamMember: () => UpdateOrganizationTeamMember,
2067
2068
  UpdateOrganizationWebhook: () => UpdateOrganizationWebhook,
2068
2069
  UpdatePayment: () => UpdatePayment,
2070
+ UpdateRoom: () => UpdateRoom,
2069
2071
  UpdateSearchList: () => UpdateSearchList,
2070
2072
  UpdateSearchListValue: () => UpdateSearchListValue,
2071
2073
  UpdateSelf: () => UpdateSelf,
@@ -2938,6 +2940,7 @@ __export(index_exports, {
2938
2940
  useGetVideos: () => useGetVideos,
2939
2941
  useImpersonateAccount: () => useImpersonateAccount,
2940
2942
  useImportRooms: () => useImportRooms,
2943
+ useIndexEventPasses: () => useIndexEventPasses,
2941
2944
  useInitiateVideoDownload: () => useInitiateVideoDownload,
2942
2945
  usePublishActivity: () => usePublishActivity,
2943
2946
  useRefundOrganizationPayment: () => useRefundOrganizationPayment,
@@ -3159,6 +3162,7 @@ __export(index_exports, {
3159
3162
  useUpdateOrganizationTeamMember: () => useUpdateOrganizationTeamMember,
3160
3163
  useUpdateOrganizationWebhook: () => useUpdateOrganizationWebhook,
3161
3164
  useUpdatePayment: () => useUpdatePayment,
3165
+ useUpdateRoom: () => useUpdateRoom,
3162
3166
  useUpdateSearchList: () => useUpdateSearchList,
3163
3167
  useUpdateSearchListValue: () => useUpdateSearchListValue,
3164
3168
  useUpdateSelf: () => useUpdateSelf,
@@ -28566,6 +28570,27 @@ var useDeleteEventSessionAccess = (options = {}) => {
28566
28570
  return useConnectedMutation(DeleteEventSessionAccess, options);
28567
28571
  };
28568
28572
 
28573
+ // src/mutations/event/passes/useIndexEventPasses.ts
28574
+ var IndexEventPasses = async ({
28575
+ eventId,
28576
+ adminApiParams,
28577
+ queryClient
28578
+ }) => {
28579
+ const connectedXM = await GetAdminAPI(adminApiParams);
28580
+ const { data } = await connectedXM.post(
28581
+ `/events/${eventId}/index-passes`
28582
+ );
28583
+ if (queryClient && data.status === "ok") {
28584
+ queryClient.invalidateQueries({
28585
+ queryKey: EVENT_PASSES_QUERY_KEY(eventId)
28586
+ });
28587
+ }
28588
+ return data;
28589
+ };
28590
+ var useIndexEventPasses = (options = {}) => {
28591
+ return useConnectedMutation(IndexEventPasses, options);
28592
+ };
28593
+
28569
28594
  // src/mutations/event/passes/useRemoveEventPassAddOn.ts
28570
28595
  var RemoveEventPassAddOn = async ({
28571
28596
  addOnId,
@@ -29627,6 +29652,40 @@ var useRemoveRoomFromRoomType = (options = {}) => {
29627
29652
  return useConnectedMutation(RemoveRoomFromRoomType, options);
29628
29653
  };
29629
29654
 
29655
+ // src/mutations/event/rooms/useUpdateRoom.ts
29656
+ var UpdateRoom = async ({
29657
+ eventId,
29658
+ roomName,
29659
+ room,
29660
+ adminApiParams,
29661
+ queryClient
29662
+ }) => {
29663
+ const connectedXM = await GetAdminAPI(adminApiParams);
29664
+ const { data } = await connectedXM.put(
29665
+ `/events/${eventId}/rooms/${roomName}`,
29666
+ room
29667
+ );
29668
+ if (queryClient && data.status === "ok") {
29669
+ queryClient.invalidateQueries({
29670
+ queryKey: EVENT_ROOMS_QUERY_KEY(eventId)
29671
+ });
29672
+ const updatedRoomName = data.data.roomName ?? roomName;
29673
+ SET_EVENT_ROOM_QUERY_DATA(queryClient, [eventId, updatedRoomName], data);
29674
+ if (updatedRoomName !== roomName) {
29675
+ queryClient.removeQueries({
29676
+ queryKey: EVENT_ROOM_QUERY_KEY(eventId, roomName)
29677
+ });
29678
+ }
29679
+ queryClient.invalidateQueries({
29680
+ queryKey: EVENT_ROOM_TYPES_QUERY_KEY(eventId)
29681
+ });
29682
+ }
29683
+ return data;
29684
+ };
29685
+ var useUpdateRoom = (options = {}) => {
29686
+ return useConnectedMutation(UpdateRoom, options);
29687
+ };
29688
+
29630
29689
  // src/mutations/event/roomTypes/translations/useCreateEventRoomTypeTranslation.ts
29631
29690
  var CreateEventRoomTypeTranslation = async ({
29632
29691
  eventId,
@@ -40062,6 +40121,7 @@ var useUploadVideoCaptions = (options = {}) => {
40062
40121
  ImportItemStatus,
40063
40122
  ImportRooms,
40064
40123
  ImportType,
40124
+ IndexEventPasses,
40065
40125
  InitiateVideoDownload,
40066
40126
  IntegrationType,
40067
40127
  InvoiceStatus,
@@ -40895,6 +40955,7 @@ var useUploadVideoCaptions = (options = {}) => {
40895
40955
  UpdateOrganizationTeamMember,
40896
40956
  UpdateOrganizationWebhook,
40897
40957
  UpdatePayment,
40958
+ UpdateRoom,
40898
40959
  UpdateSearchList,
40899
40960
  UpdateSearchListValue,
40900
40961
  UpdateSelf,
@@ -41767,6 +41828,7 @@ var useUploadVideoCaptions = (options = {}) => {
41767
41828
  useGetVideos,
41768
41829
  useImpersonateAccount,
41769
41830
  useImportRooms,
41831
+ useIndexEventPasses,
41770
41832
  useInitiateVideoDownload,
41771
41833
  usePublishActivity,
41772
41834
  useRefundOrganizationPayment,
@@ -41988,6 +42050,7 @@ var useUploadVideoCaptions = (options = {}) => {
41988
42050
  useUpdateOrganizationTeamMember,
41989
42051
  useUpdateOrganizationWebhook,
41990
42052
  useUpdatePayment,
42053
+ useUpdateRoom,
41991
42054
  useUpdateSearchList,
41992
42055
  useUpdateSearchListValue,
41993
42056
  useUpdateSelf,