@connectedxm/admin 4.3.1 → 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,
@@ -2939,6 +2940,7 @@ __export(index_exports, {
2939
2940
  useGetVideos: () => useGetVideos,
2940
2941
  useImpersonateAccount: () => useImpersonateAccount,
2941
2942
  useImportRooms: () => useImportRooms,
2943
+ useIndexEventPasses: () => useIndexEventPasses,
2942
2944
  useInitiateVideoDownload: () => useInitiateVideoDownload,
2943
2945
  usePublishActivity: () => usePublishActivity,
2944
2946
  useRefundOrganizationPayment: () => useRefundOrganizationPayment,
@@ -28568,6 +28570,27 @@ var useDeleteEventSessionAccess = (options = {}) => {
28568
28570
  return useConnectedMutation(DeleteEventSessionAccess, options);
28569
28571
  };
28570
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
+
28571
28594
  // src/mutations/event/passes/useRemoveEventPassAddOn.ts
28572
28595
  var RemoveEventPassAddOn = async ({
28573
28596
  addOnId,
@@ -40098,6 +40121,7 @@ var useUploadVideoCaptions = (options = {}) => {
40098
40121
  ImportItemStatus,
40099
40122
  ImportRooms,
40100
40123
  ImportType,
40124
+ IndexEventPasses,
40101
40125
  InitiateVideoDownload,
40102
40126
  IntegrationType,
40103
40127
  InvoiceStatus,
@@ -41804,6 +41828,7 @@ var useUploadVideoCaptions = (options = {}) => {
41804
41828
  useGetVideos,
41805
41829
  useImpersonateAccount,
41806
41830
  useImportRooms,
41831
+ useIndexEventPasses,
41807
41832
  useInitiateVideoDownload,
41808
41833
  usePublishActivity,
41809
41834
  useRefundOrganizationPayment,