@connectedxm/admin 6.7.7 → 6.8.0

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
@@ -88,6 +88,7 @@ __export(index_exports, {
88
88
  AddEventAddOnPassType: () => AddEventAddOnPassType,
89
89
  AddEventAddOnTier: () => AddEventAddOnTier,
90
90
  AddEventBenefit: () => AddEventBenefit,
91
+ AddEventBlockSession: () => AddEventBlockSession,
91
92
  AddEventCoHost: () => AddEventCoHost,
92
93
  AddEventFollowupAddOn: () => AddEventFollowupAddOn,
93
94
  AddEventFollowupPassType: () => AddEventFollowupPassType,
@@ -108,6 +109,7 @@ __export(index_exports, {
108
109
  AddEventSectionQuestion: () => AddEventSectionQuestion,
109
110
  AddEventSectionTier: () => AddEventSectionTier,
110
111
  AddEventSessionAccount: () => AddEventSessionAccount,
112
+ AddEventSessionBlock: () => AddEventSessionBlock,
111
113
  AddEventSessionLocationSession: () => AddEventSessionLocationSession,
112
114
  AddEventSessionMatchPass: () => AddEventSessionMatchPass,
113
115
  AddEventSessionPassType: () => AddEventSessionPassType,
@@ -236,6 +238,7 @@ __export(index_exports, {
236
238
  CreateEventAddOn: () => CreateEventAddOn,
237
239
  CreateEventAttendee: () => CreateEventAttendee,
238
240
  CreateEventAttendeePackage: () => CreateEventAttendeePackage,
241
+ CreateEventBlock: () => CreateEventBlock,
239
242
  CreateEventCoupon: () => CreateEventCoupon,
240
243
  CreateEventCouponVariants: () => CreateEventCouponVariants,
241
244
  CreateEventFaqSection: () => CreateEventFaqSection,
@@ -356,6 +359,7 @@ __export(index_exports, {
356
359
  DeleteEventAddOnTranslation: () => DeleteEventAddOnTranslation,
357
360
  DeleteEventAttendee: () => DeleteEventAttendee,
358
361
  DeleteEventAttendeePackage: () => DeleteEventAttendeePackage,
362
+ DeleteEventBlock: () => DeleteEventBlock,
359
363
  DeleteEventCoupon: () => DeleteEventCoupon,
360
364
  DeleteEventCouponVariants: () => DeleteEventCouponVariants,
361
365
  DeleteEventEmailTranslation: () => DeleteEventEmailTranslation,
@@ -500,6 +504,9 @@ __export(index_exports, {
500
504
  EVENT_ATTENDEE_QUERY_KEY: () => EVENT_ATTENDEE_QUERY_KEY,
501
505
  EVENT_ATTENDEE_RESERVATIONS_QUERY_KEY: () => EVENT_ATTENDEE_RESERVATIONS_QUERY_KEY,
502
506
  EVENT_ATTENDEE_TRANSFER_LOGS_QUERY_KEY: () => EVENT_ATTENDEE_TRANSFER_LOGS_QUERY_KEY,
507
+ EVENT_BLOCKS_QUERY_KEY: () => EVENT_BLOCKS_QUERY_KEY,
508
+ EVENT_BLOCK_QUERY_KEY: () => EVENT_BLOCK_QUERY_KEY,
509
+ EVENT_BLOCK_SESSIONS_QUERY_KEY: () => EVENT_BLOCK_SESSIONS_QUERY_KEY,
503
510
  EVENT_COUPONS_QUERY_KEY: () => EVENT_COUPONS_QUERY_KEY,
504
511
  EVENT_COUPON_PASSES_QUERY_KEY: () => EVENT_COUPON_PASSES_QUERY_KEY,
505
512
  EVENT_COUPON_PAYMENTS_QUERY_KEY: () => EVENT_COUPON_PAYMENTS_QUERY_KEY,
@@ -619,6 +626,7 @@ __export(index_exports, {
619
626
  EVENT_SESSION_ACCESS_RESPONSE_CHANGES_QUERY_KEY: () => EVENT_SESSION_ACCESS_RESPONSE_CHANGES_QUERY_KEY,
620
627
  EVENT_SESSION_ACCESS_SESSION_QUESTION_SECTIONS_QUERY_KEY: () => EVENT_SESSION_ACCESS_SESSION_QUESTION_SECTIONS_QUERY_KEY,
621
628
  EVENT_SESSION_ACCOUNTS_QUERY_KEY: () => EVENT_SESSION_ACCOUNTS_QUERY_KEY,
629
+ EVENT_SESSION_BLOCKS_QUERY_KEY: () => EVENT_SESSION_BLOCKS_QUERY_KEY,
622
630
  EVENT_SESSION_LOCATIONS_QUERY_KEY: () => EVENT_SESSION_LOCATIONS_QUERY_KEY,
623
631
  EVENT_SESSION_LOCATION_QUERY_KEY: () => EVENT_SESSION_LOCATION_QUERY_KEY,
624
632
  EVENT_SESSION_LOCATION_SESSIONS_QUERY_KEY: () => EVENT_SESSION_LOCATION_SESSIONS_QUERY_KEY,
@@ -841,6 +849,9 @@ __export(index_exports, {
841
849
  GetEventAttendeeReservations: () => GetEventAttendeeReservations,
842
850
  GetEventAttendeeTransfersLogs: () => GetEventAttendeeTransfersLogs,
843
851
  GetEventAttendees: () => GetEventAttendees,
852
+ GetEventBlock: () => GetEventBlock,
853
+ GetEventBlockSessions: () => GetEventBlockSessions,
854
+ GetEventBlocks: () => GetEventBlocks,
844
855
  GetEventCoHosts: () => GetEventCoHosts,
845
856
  GetEventCoupon: () => GetEventCoupon,
846
857
  GetEventCouponPasses: () => GetEventCouponPasses,
@@ -954,6 +965,7 @@ __export(index_exports, {
954
965
  GetEventSessionAccessResponseChanges: () => GetEventSessionAccessResponseChanges,
955
966
  GetEventSessionAccesses: () => GetEventSessionAccesses,
956
967
  GetEventSessionAccounts: () => GetEventSessionAccounts,
968
+ GetEventSessionBlocks: () => GetEventSessionBlocks,
957
969
  GetEventSessionLocation: () => GetEventSessionLocation,
958
970
  GetEventSessionLocationSessions: () => GetEventSessionLocationSessions,
959
971
  GetEventSessionLocationTranslation: () => GetEventSessionLocationTranslation,
@@ -1348,6 +1360,7 @@ __export(index_exports, {
1348
1360
  RemoveEventAddOnPassType: () => RemoveEventAddOnPassType,
1349
1361
  RemoveEventAddOnTier: () => RemoveEventAddOnTier,
1350
1362
  RemoveEventBenefit: () => RemoveEventBenefit,
1363
+ RemoveEventBlockSession: () => RemoveEventBlockSession,
1351
1364
  RemoveEventCoHost: () => RemoveEventCoHost,
1352
1365
  RemoveEventFollowupAddOn: () => RemoveEventFollowupAddOn,
1353
1366
  RemoveEventFollowupPassType: () => RemoveEventFollowupPassType,
@@ -1368,6 +1381,7 @@ __export(index_exports, {
1368
1381
  RemoveEventSectionQuestion: () => RemoveEventSectionQuestion,
1369
1382
  RemoveEventSectionTier: () => RemoveEventSectionTier,
1370
1383
  RemoveEventSessionAccount: () => RemoveEventSessionAccount,
1384
+ RemoveEventSessionBlock: () => RemoveEventSessionBlock,
1371
1385
  RemoveEventSessionLocationSession: () => RemoveEventSessionLocationSession,
1372
1386
  RemoveEventSessionMatchPass: () => RemoveEventSessionMatchPass,
1373
1387
  RemoveEventSessionPassType: () => RemoveEventSessionPassType,
@@ -1545,6 +1559,9 @@ __export(index_exports, {
1545
1559
  SET_EVENT_ATTENDEE_QUERY_DATA: () => SET_EVENT_ATTENDEE_QUERY_DATA,
1546
1560
  SET_EVENT_ATTENDEE_RESERVATIONS_QUERY_DATA: () => SET_EVENT_ATTENDEE_RESERVATIONS_QUERY_DATA,
1547
1561
  SET_EVENT_ATTENDEE_TRANSFER_LOGS_QUERY_DATA: () => SET_EVENT_ATTENDEE_TRANSFER_LOGS_QUERY_DATA,
1562
+ SET_EVENT_BLOCKS_QUERY_DATA: () => SET_EVENT_BLOCKS_QUERY_DATA,
1563
+ SET_EVENT_BLOCK_QUERY_DATA: () => SET_EVENT_BLOCK_QUERY_DATA,
1564
+ SET_EVENT_BLOCK_SESSIONS_QUERY_DATA: () => SET_EVENT_BLOCK_SESSIONS_QUERY_DATA,
1548
1565
  SET_EVENT_COUPONS_QUERY_DATA: () => SET_EVENT_COUPONS_QUERY_DATA,
1549
1566
  SET_EVENT_COUPON_PASSES_QUERY_DATA: () => SET_EVENT_COUPON_PASSES_QUERY_DATA,
1550
1567
  SET_EVENT_COUPON_PAYMENTS_QUERY_DATA: () => SET_EVENT_COUPON_PAYMENTS_QUERY_DATA,
@@ -1662,6 +1679,7 @@ __export(index_exports, {
1662
1679
  SET_EVENT_SESSION_ACCESS_RESPONSE_CHANGES_QUERY_DATA: () => SET_EVENT_SESSION_ACCESS_RESPONSE_CHANGES_QUERY_DATA,
1663
1680
  SET_EVENT_SESSION_ACCESS_SESSION_QUESTION_SECTIONS_QUERY_DATA: () => SET_EVENT_SESSION_ACCESS_SESSION_QUESTION_SECTIONS_QUERY_DATA,
1664
1681
  SET_EVENT_SESSION_ACCOUNTS_QUERY_DATA: () => SET_EVENT_SESSION_ACCOUNTS_QUERY_DATA,
1682
+ SET_EVENT_SESSION_BLOCKS_QUERY_DATA: () => SET_EVENT_SESSION_BLOCKS_QUERY_DATA,
1665
1683
  SET_EVENT_SESSION_LOCATIONS_QUERY_DATA: () => SET_EVENT_SESSION_LOCATIONS_QUERY_DATA,
1666
1684
  SET_EVENT_SESSION_LOCATION_QUERY_DATA: () => SET_EVENT_SESSION_LOCATION_QUERY_DATA,
1667
1685
  SET_EVENT_SESSION_LOCATION_SESSIONS_QUERY_DATA: () => SET_EVENT_SESSION_LOCATION_SESSIONS_QUERY_DATA,
@@ -2040,6 +2058,7 @@ __export(index_exports, {
2040
2058
  UpdateEventAddOnTranslation: () => UpdateEventAddOnTranslation,
2041
2059
  UpdateEventAttendee: () => UpdateEventAttendee,
2042
2060
  UpdateEventAttendeePackage: () => UpdateEventAttendeePackage,
2061
+ UpdateEventBlock: () => UpdateEventBlock,
2043
2062
  UpdateEventCheckinCode: () => UpdateEventCheckinCode,
2044
2063
  UpdateEventCoupon: () => UpdateEventCoupon,
2045
2064
  UpdateEventEmail: () => UpdateEventEmail,
@@ -2198,6 +2217,7 @@ __export(index_exports, {
2198
2217
  useAddEventAddOnPassType: () => useAddEventAddOnPassType,
2199
2218
  useAddEventAddOnTier: () => useAddEventAddOnTier,
2200
2219
  useAddEventBenefit: () => useAddEventBenefit,
2220
+ useAddEventBlockSession: () => useAddEventBlockSession,
2201
2221
  useAddEventCoHost: () => useAddEventCoHost,
2202
2222
  useAddEventFollowupAddOn: () => useAddEventFollowupAddOn,
2203
2223
  useAddEventFollowupPassType: () => useAddEventFollowupPassType,
@@ -2218,6 +2238,7 @@ __export(index_exports, {
2218
2238
  useAddEventSectionQuestion: () => useAddEventSectionQuestion,
2219
2239
  useAddEventSectionTier: () => useAddEventSectionTier,
2220
2240
  useAddEventSessionAccount: () => useAddEventSessionAccount,
2241
+ useAddEventSessionBlock: () => useAddEventSessionBlock,
2221
2242
  useAddEventSessionLocationSession: () => useAddEventSessionLocationSession,
2222
2243
  useAddEventSessionMatchPass: () => useAddEventSessionMatchPass,
2223
2244
  useAddEventSessionPassType: () => useAddEventSessionPassType,
@@ -2290,6 +2311,7 @@ __export(index_exports, {
2290
2311
  useCreateEventAddOn: () => useCreateEventAddOn,
2291
2312
  useCreateEventAttendee: () => useCreateEventAttendee,
2292
2313
  useCreateEventAttendeePackage: () => useCreateEventAttendeePackage,
2314
+ useCreateEventBlock: () => useCreateEventBlock,
2293
2315
  useCreateEventCoupon: () => useCreateEventCoupon,
2294
2316
  useCreateEventCouponVariants: () => useCreateEventCouponVariants,
2295
2317
  useCreateEventFaqSection: () => useCreateEventFaqSection,
@@ -2401,6 +2423,7 @@ __export(index_exports, {
2401
2423
  useDeleteEventAddOnTranslation: () => useDeleteEventAddOnTranslation,
2402
2424
  useDeleteEventAttendee: () => useDeleteEventAttendee,
2403
2425
  useDeleteEventAttendeePackage: () => useDeleteEventAttendeePackage,
2426
+ useDeleteEventBlock: () => useDeleteEventBlock,
2404
2427
  useDeleteEventCoupon: () => useDeleteEventCoupon,
2405
2428
  useDeleteEventCouponVariants: () => useDeleteEventCouponVariants,
2406
2429
  useDeleteEventEmailTranslation: () => useDeleteEventEmailTranslation,
@@ -2645,6 +2668,9 @@ __export(index_exports, {
2645
2668
  useGetEventAttendeeReservations: () => useGetEventAttendeeReservations,
2646
2669
  useGetEventAttendeeTransfersLogs: () => useGetEventAttendeeTransfersLogs,
2647
2670
  useGetEventAttendees: () => useGetEventAttendees,
2671
+ useGetEventBlock: () => useGetEventBlock,
2672
+ useGetEventBlockSessions: () => useGetEventBlockSessions,
2673
+ useGetEventBlocks: () => useGetEventBlocks,
2648
2674
  useGetEventCoHosts: () => useGetEventCoHosts,
2649
2675
  useGetEventCoupon: () => useGetEventCoupon,
2650
2676
  useGetEventCouponPasses: () => useGetEventCouponPasses,
@@ -2758,6 +2784,7 @@ __export(index_exports, {
2758
2784
  useGetEventSessionAccessResponseChanges: () => useGetEventSessionAccessResponseChanges,
2759
2785
  useGetEventSessionAccesses: () => useGetEventSessionAccesses,
2760
2786
  useGetEventSessionAccounts: () => useGetEventSessionAccounts,
2787
+ useGetEventSessionBlocks: () => useGetEventSessionBlocks,
2761
2788
  useGetEventSessionLocation: () => useGetEventSessionLocation,
2762
2789
  useGetEventSessionLocationSessions: () => useGetEventSessionLocationSessions,
2763
2790
  useGetEventSessionLocationTranslation: () => useGetEventSessionLocationTranslation,
@@ -3036,6 +3063,7 @@ __export(index_exports, {
3036
3063
  useRemoveEventAddOnPassType: () => useRemoveEventAddOnPassType,
3037
3064
  useRemoveEventAddOnTier: () => useRemoveEventAddOnTier,
3038
3065
  useRemoveEventBenefit: () => useRemoveEventBenefit,
3066
+ useRemoveEventBlockSession: () => useRemoveEventBlockSession,
3039
3067
  useRemoveEventCoHost: () => useRemoveEventCoHost,
3040
3068
  useRemoveEventFollowupAddOn: () => useRemoveEventFollowupAddOn,
3041
3069
  useRemoveEventFollowupPassType: () => useRemoveEventFollowupPassType,
@@ -3056,6 +3084,7 @@ __export(index_exports, {
3056
3084
  useRemoveEventSectionQuestion: () => useRemoveEventSectionQuestion,
3057
3085
  useRemoveEventSectionTier: () => useRemoveEventSectionTier,
3058
3086
  useRemoveEventSessionAccount: () => useRemoveEventSessionAccount,
3087
+ useRemoveEventSessionBlock: () => useRemoveEventSessionBlock,
3059
3088
  useRemoveEventSessionLocationSession: () => useRemoveEventSessionLocationSession,
3060
3089
  useRemoveEventSessionMatchPass: () => useRemoveEventSessionMatchPass,
3061
3090
  useRemoveEventSessionPassType: () => useRemoveEventSessionPassType,
@@ -3151,6 +3180,7 @@ __export(index_exports, {
3151
3180
  useUpdateEventAddOnTranslation: () => useUpdateEventAddOnTranslation,
3152
3181
  useUpdateEventAttendee: () => useUpdateEventAttendee,
3153
3182
  useUpdateEventAttendeePackage: () => useUpdateEventAttendeePackage,
3183
+ useUpdateEventBlock: () => useUpdateEventBlock,
3154
3184
  useUpdateEventCheckinCode: () => useUpdateEventCheckinCode,
3155
3185
  useUpdateEventCoupon: () => useUpdateEventCoupon,
3156
3186
  useUpdateEventEmail: () => useUpdateEventEmail,
@@ -9471,6 +9501,120 @@ var useGetEventPassAttendeePasses = (eventId = "", passId = "", status, params =
9471
9501
  );
9472
9502
  };
9473
9503
 
9504
+ // src/queries/events/blocks/useGetEventBlocks.ts
9505
+ var EVENT_BLOCKS_QUERY_KEY = (eventId) => [
9506
+ ...EVENT_QUERY_KEY(eventId),
9507
+ "BLOCKS"
9508
+ ];
9509
+ var SET_EVENT_BLOCKS_QUERY_DATA = (client, keyParams, response) => {
9510
+ client.setQueryData(EVENT_BLOCKS_QUERY_KEY(...keyParams), response);
9511
+ };
9512
+ var GetEventBlocks = async ({
9513
+ eventId,
9514
+ pageParam,
9515
+ pageSize,
9516
+ orderBy,
9517
+ search,
9518
+ adminApiParams
9519
+ }) => {
9520
+ const adminApi = await GetAdminAPI(adminApiParams);
9521
+ const { data } = await adminApi.get(`/events/${eventId}/blocks`, {
9522
+ params: {
9523
+ page: pageParam || void 0,
9524
+ pageSize: pageSize || void 0,
9525
+ orderBy: orderBy || void 0,
9526
+ search: search || void 0
9527
+ }
9528
+ });
9529
+ return data;
9530
+ };
9531
+ var useGetEventBlocks = (eventId = "", params = {}, options = {}) => {
9532
+ return useConnectedInfiniteQuery(
9533
+ EVENT_BLOCKS_QUERY_KEY(eventId),
9534
+ (params2) => GetEventBlocks({
9535
+ ...params2,
9536
+ eventId
9537
+ }),
9538
+ params,
9539
+ {
9540
+ ...options,
9541
+ enabled: !!eventId && (options.enabled ?? true)
9542
+ }
9543
+ );
9544
+ };
9545
+
9546
+ // src/queries/events/blocks/useGetEventBlock.ts
9547
+ var EVENT_BLOCK_QUERY_KEY = (eventId, blockId) => [
9548
+ ...EVENT_BLOCKS_QUERY_KEY(eventId),
9549
+ blockId
9550
+ ];
9551
+ var SET_EVENT_BLOCK_QUERY_DATA = (client, keyParams, response) => {
9552
+ client.setQueryData(EVENT_BLOCK_QUERY_KEY(...keyParams), response);
9553
+ };
9554
+ var GetEventBlock = async ({
9555
+ eventId,
9556
+ blockId,
9557
+ adminApiParams
9558
+ }) => {
9559
+ const adminApi = await GetAdminAPI(adminApiParams);
9560
+ const { data } = await adminApi.get(`/events/${eventId}/blocks/${blockId}`);
9561
+ return data;
9562
+ };
9563
+ var useGetEventBlock = (eventId = "", blockId = "", options = {}) => {
9564
+ return useConnectedSingleQuery(
9565
+ EVENT_BLOCK_QUERY_KEY(eventId, blockId),
9566
+ (params) => GetEventBlock({ eventId, blockId, ...params }),
9567
+ {
9568
+ ...options,
9569
+ enabled: !!eventId && !!blockId && (options?.enabled ?? true)
9570
+ }
9571
+ );
9572
+ };
9573
+
9574
+ // src/queries/events/blocks/useGetEventBlockSessions.ts
9575
+ var EVENT_BLOCK_SESSIONS_QUERY_KEY = (eventId, blockId) => [...EVENT_BLOCK_QUERY_KEY(eventId, blockId), "SESSIONS"];
9576
+ var SET_EVENT_BLOCK_SESSIONS_QUERY_DATA = (client, keyParams, response) => {
9577
+ client.setQueryData(EVENT_BLOCK_SESSIONS_QUERY_KEY(...keyParams), response);
9578
+ };
9579
+ var GetEventBlockSessions = async ({
9580
+ eventId,
9581
+ blockId,
9582
+ pageParam,
9583
+ pageSize,
9584
+ orderBy,
9585
+ search,
9586
+ adminApiParams
9587
+ }) => {
9588
+ const adminApi = await GetAdminAPI(adminApiParams);
9589
+ const { data } = await adminApi.get(
9590
+ `/events/${eventId}/blocks/${blockId}/sessions`,
9591
+ {
9592
+ params: {
9593
+ page: pageParam || void 0,
9594
+ pageSize: pageSize || void 0,
9595
+ orderBy: orderBy || void 0,
9596
+ search: search || void 0
9597
+ }
9598
+ }
9599
+ );
9600
+ return data;
9601
+ };
9602
+ var useGetEventBlockSessions = (eventId = "", blockId = "", params = {}, options = {}) => {
9603
+ return useConnectedInfiniteQuery(
9604
+ EVENT_BLOCK_SESSIONS_QUERY_KEY(eventId, blockId),
9605
+ (params2) => GetEventBlockSessions({
9606
+ ...params2,
9607
+ eventId,
9608
+ blockId
9609
+ }),
9610
+ params,
9611
+ {
9612
+ ...options,
9613
+ enabled: !!eventId && !!blockId && (options.enabled ?? true)
9614
+ }
9615
+ );
9616
+ };
9617
+
9474
9618
  // src/queries/events/bypass/useGetEventRegistrationBypassList.ts
9475
9619
  var EVENT_REGISTRATION_BYPASS_LIST_QUERY_KEY = (eventId) => [
9476
9620
  ...EVENT_QUERY_KEY(eventId),
@@ -9581,11 +9725,14 @@ var useGetEventCoHosts = (eventId, params = {}, options = {}) => {
9581
9725
  };
9582
9726
 
9583
9727
  // src/queries/events/coupons/useGetEventCoupons.ts
9584
- var EVENT_COUPONS_QUERY_KEY = (eventId, prePaid) => {
9728
+ var EVENT_COUPONS_QUERY_KEY = (eventId, prePaid, includeVariants) => {
9585
9729
  const key = [...EVENT_QUERY_KEY(eventId), "COUPONS"];
9586
9730
  if (typeof prePaid === "boolean") {
9587
9731
  key.push(prePaid ? "GROUP" : "STANDARD");
9588
9732
  }
9733
+ if (includeVariants === true) {
9734
+ key.push("VARIANTS");
9735
+ }
9589
9736
  return key;
9590
9737
  };
9591
9738
  var SET_EVENT_COUPONS_QUERY_DATA = (client, keyParams, response) => {
@@ -9598,7 +9745,8 @@ var GetEventCoupons = async ({
9598
9745
  orderBy,
9599
9746
  search,
9600
9747
  adminApiParams,
9601
- prePaid
9748
+ prePaid,
9749
+ includeVariants
9602
9750
  }) => {
9603
9751
  const adminApi = await GetAdminAPI(adminApiParams);
9604
9752
  const { data } = await adminApi.get(`/events/${eventId}/coupons`, {
@@ -9607,18 +9755,20 @@ var GetEventCoupons = async ({
9607
9755
  pageSize: pageSize || void 0,
9608
9756
  orderBy: orderBy || void 0,
9609
9757
  search: search || void 0,
9610
- prePaid: typeof prePaid === "boolean" ? prePaid ? "true" : "false" : void 0
9758
+ prePaid: typeof prePaid === "boolean" ? prePaid ? "true" : "false" : void 0,
9759
+ includeVariants: includeVariants === true ? "true" : void 0
9611
9760
  }
9612
9761
  });
9613
9762
  return data;
9614
9763
  };
9615
- var useGetEventCoupons = (eventId = "", prePaid, params = {}, options = {}) => {
9764
+ var useGetEventCoupons = (eventId = "", prePaid, includeVariants, params = {}, options = {}) => {
9616
9765
  return useConnectedInfiniteQuery(
9617
- EVENT_COUPONS_QUERY_KEY(eventId, prePaid),
9766
+ EVENT_COUPONS_QUERY_KEY(eventId, prePaid, includeVariants),
9618
9767
  (params2) => GetEventCoupons({
9619
9768
  ...params2,
9620
9769
  eventId,
9621
- prePaid
9770
+ prePaid,
9771
+ includeVariants
9622
9772
  }),
9623
9773
  params,
9624
9774
  {
@@ -15143,6 +15293,50 @@ var useGetEventSessionAccounts = (eventId = "", sessionId = "", params = {}, opt
15143
15293
  );
15144
15294
  };
15145
15295
 
15296
+ // src/queries/events/sessions/useGetEventSessionBlocks.ts
15297
+ var EVENT_SESSION_BLOCKS_QUERY_KEY = (eventId, sessionId) => [...EVENT_SESSION_QUERY_KEY(eventId, sessionId), "BLOCKS"];
15298
+ var SET_EVENT_SESSION_BLOCKS_QUERY_DATA = (client, keyParams, response) => {
15299
+ client.setQueryData(EVENT_SESSION_BLOCKS_QUERY_KEY(...keyParams), response);
15300
+ };
15301
+ var GetEventSessionBlocks = async ({
15302
+ eventId,
15303
+ sessionId,
15304
+ pageParam,
15305
+ pageSize,
15306
+ orderBy,
15307
+ search,
15308
+ adminApiParams
15309
+ }) => {
15310
+ const adminApi = await GetAdminAPI(adminApiParams);
15311
+ const { data } = await adminApi.get(
15312
+ `/events/${eventId}/sessions/${sessionId}/blocks`,
15313
+ {
15314
+ params: {
15315
+ page: pageParam || void 0,
15316
+ pageSize: pageSize || void 0,
15317
+ orderBy: orderBy || void 0,
15318
+ search: search || void 0
15319
+ }
15320
+ }
15321
+ );
15322
+ return data;
15323
+ };
15324
+ var useGetEventSessionBlocks = (eventId = "", sessionId = "", params = {}, options = {}) => {
15325
+ return useConnectedInfiniteQuery(
15326
+ EVENT_SESSION_BLOCKS_QUERY_KEY(eventId, sessionId),
15327
+ (params2) => GetEventSessionBlocks({
15328
+ ...params2,
15329
+ eventId,
15330
+ sessionId
15331
+ }),
15332
+ params,
15333
+ {
15334
+ ...options,
15335
+ enabled: !!eventId && !!sessionId && (options.enabled ?? true)
15336
+ }
15337
+ );
15338
+ };
15339
+
15146
15340
  // src/queries/events/sessions/useGetEventSessionPassTypes.ts
15147
15341
  var EVENT_SESSION_PASS_TYPES_QUERY_KEY = (eventId, sessionId) => [...EVENT_SESSION_QUERY_KEY(eventId, sessionId), "PASS_TYPES"];
15148
15342
  var SET_EVENT_SESSION_PASS_TYPES_QUERY_DATA = (client, keyParams, response) => {
@@ -26692,6 +26886,138 @@ var useRemoveEventBenefit = (options = {}) => {
26692
26886
  return useConnectedMutation(RemoveEventBenefit, options);
26693
26887
  };
26694
26888
 
26889
+ // src/mutations/events/blocks/useCreateEventBlock.ts
26890
+ var CreateEventBlock = async ({
26891
+ eventId,
26892
+ block,
26893
+ adminApiParams,
26894
+ queryClient
26895
+ }) => {
26896
+ const connectedXM = await GetAdminAPI(adminApiParams);
26897
+ const { data } = await connectedXM.post(
26898
+ `/events/${eventId}/blocks`,
26899
+ block
26900
+ );
26901
+ if (queryClient && data.status === "ok") {
26902
+ queryClient.invalidateQueries({
26903
+ queryKey: EVENT_BLOCKS_QUERY_KEY(eventId)
26904
+ });
26905
+ SET_EVENT_BLOCK_QUERY_DATA(queryClient, [eventId, data.data.id], data);
26906
+ }
26907
+ return data;
26908
+ };
26909
+ var useCreateEventBlock = (options = {}) => {
26910
+ return useConnectedMutation(CreateEventBlock, options);
26911
+ };
26912
+
26913
+ // src/mutations/events/blocks/useUpdateEventBlock.ts
26914
+ var UpdateEventBlock = async ({
26915
+ eventId,
26916
+ blockId,
26917
+ block,
26918
+ adminApiParams,
26919
+ queryClient
26920
+ }) => {
26921
+ if (!blockId) throw new Error("Block ID Undefined");
26922
+ const connectedXM = await GetAdminAPI(adminApiParams);
26923
+ const { data } = await connectedXM.put(
26924
+ `/events/${eventId}/blocks/${blockId}`,
26925
+ block
26926
+ );
26927
+ if (queryClient && data.status === "ok") {
26928
+ queryClient.invalidateQueries({
26929
+ queryKey: EVENT_BLOCKS_QUERY_KEY(eventId)
26930
+ });
26931
+ SET_EVENT_BLOCK_QUERY_DATA(
26932
+ queryClient,
26933
+ [eventId, blockId || data.data?.id],
26934
+ data
26935
+ );
26936
+ }
26937
+ return data;
26938
+ };
26939
+ var useUpdateEventBlock = (options = {}) => {
26940
+ return useConnectedMutation(UpdateEventBlock, options);
26941
+ };
26942
+
26943
+ // src/mutations/events/blocks/useDeleteEventBlock.ts
26944
+ var DeleteEventBlock = async ({
26945
+ eventId,
26946
+ blockId,
26947
+ adminApiParams,
26948
+ queryClient
26949
+ }) => {
26950
+ const connectedXM = await GetAdminAPI(adminApiParams);
26951
+ const { data } = await connectedXM.delete(
26952
+ `/events/${eventId}/blocks/${blockId}`
26953
+ );
26954
+ if (queryClient && data.status === "ok") {
26955
+ queryClient.invalidateQueries({
26956
+ queryKey: EVENT_BLOCKS_QUERY_KEY(eventId)
26957
+ });
26958
+ queryClient.removeQueries({
26959
+ queryKey: EVENT_BLOCK_QUERY_KEY(eventId, blockId)
26960
+ });
26961
+ }
26962
+ return data;
26963
+ };
26964
+ var useDeleteEventBlock = (options = {}) => {
26965
+ return useConnectedMutation(DeleteEventBlock, options);
26966
+ };
26967
+
26968
+ // src/mutations/events/blocks/useAddEventBlockSession.ts
26969
+ var AddEventBlockSession = async ({
26970
+ eventId,
26971
+ blockId,
26972
+ sessionId,
26973
+ adminApiParams,
26974
+ queryClient
26975
+ }) => {
26976
+ if (!blockId) throw new Error("Block ID Undefined");
26977
+ const connectedXM = await GetAdminAPI(adminApiParams);
26978
+ const { data } = await connectedXM.post(
26979
+ `/events/${eventId}/blocks/${blockId}/sessions/${sessionId}`
26980
+ );
26981
+ if (queryClient && data.status === "ok") {
26982
+ queryClient.invalidateQueries({
26983
+ queryKey: EVENT_BLOCK_SESSIONS_QUERY_KEY(eventId, blockId)
26984
+ });
26985
+ SET_EVENT_BLOCK_QUERY_DATA(
26986
+ queryClient,
26987
+ [eventId, blockId || data.data.id],
26988
+ data
26989
+ );
26990
+ }
26991
+ return data;
26992
+ };
26993
+ var useAddEventBlockSession = (options = {}) => {
26994
+ return useConnectedMutation(AddEventBlockSession, options);
26995
+ };
26996
+
26997
+ // src/mutations/events/blocks/useRemoveEventBlockSession.ts
26998
+ var RemoveEventBlockSession = async ({
26999
+ eventId,
27000
+ blockId,
27001
+ sessionId,
27002
+ adminApiParams,
27003
+ queryClient
27004
+ }) => {
27005
+ const connectedXM = await GetAdminAPI(adminApiParams);
27006
+ const { data } = await connectedXM.delete(
27007
+ `/events/${eventId}/blocks/${blockId}/sessions/${sessionId}`
27008
+ );
27009
+ if (queryClient && data.status === "ok") {
27010
+ queryClient.invalidateQueries({
27011
+ queryKey: EVENT_BLOCK_SESSIONS_QUERY_KEY(eventId, blockId)
27012
+ });
27013
+ SET_EVENT_BLOCK_QUERY_DATA(queryClient, [eventId, blockId], data);
27014
+ }
27015
+ return data;
27016
+ };
27017
+ var useRemoveEventBlockSession = (options = {}) => {
27018
+ return useConnectedMutation(RemoveEventBlockSession, options);
27019
+ };
27020
+
26695
27021
  // src/mutations/events/bypass/useCreateEventRegistrationBypass.ts
26696
27022
  var CreateEventRegistrationBypass = async ({
26697
27023
  eventId,
@@ -32582,6 +32908,30 @@ var useAddEventSessionAccount = (options = {}) => {
32582
32908
  return useConnectedMutation(AddEventSessionAccount, options);
32583
32909
  };
32584
32910
 
32911
+ // src/mutations/events/sessions/useAddEventSessionBlock.ts
32912
+ var AddEventSessionBlock = async ({
32913
+ eventId,
32914
+ sessionId,
32915
+ blockId,
32916
+ adminApiParams,
32917
+ queryClient
32918
+ }) => {
32919
+ const connectedXM = await GetAdminAPI(adminApiParams);
32920
+ const { data } = await connectedXM.post(
32921
+ `/events/${eventId}/sessions/${sessionId}/blocks/${blockId}`
32922
+ );
32923
+ if (queryClient && data.status === "ok") {
32924
+ queryClient.invalidateQueries({
32925
+ queryKey: EVENT_SESSION_BLOCKS_QUERY_KEY(eventId, sessionId)
32926
+ });
32927
+ SET_EVENT_SESSION_QUERY_DATA(queryClient, [eventId, sessionId], data);
32928
+ }
32929
+ return data;
32930
+ };
32931
+ var useAddEventSessionBlock = (options = {}) => {
32932
+ return useConnectedMutation(AddEventSessionBlock, options);
32933
+ };
32934
+
32585
32935
  // src/mutations/events/sessions/useAddEventSessionPassType.ts
32586
32936
  var AddEventSessionPassType = async ({
32587
32937
  eventId,
@@ -32750,6 +33100,30 @@ var useRemoveEventSessionAccount = (options = {}) => {
32750
33100
  return useConnectedMutation(RemoveEventSessionAccount, options);
32751
33101
  };
32752
33102
 
33103
+ // src/mutations/events/sessions/useRemoveEventSessionBlock.ts
33104
+ var RemoveEventSessionBlock = async ({
33105
+ eventId,
33106
+ sessionId,
33107
+ blockId,
33108
+ adminApiParams,
33109
+ queryClient
33110
+ }) => {
33111
+ const connectedXM = await GetAdminAPI(adminApiParams);
33112
+ const { data } = await connectedXM.delete(
33113
+ `/events/${eventId}/sessions/${sessionId}/blocks/${blockId}`
33114
+ );
33115
+ if (queryClient && data.status === "ok") {
33116
+ queryClient.invalidateQueries({
33117
+ queryKey: EVENT_SESSION_BLOCKS_QUERY_KEY(eventId, sessionId)
33118
+ });
33119
+ SET_EVENT_SESSION_QUERY_DATA(queryClient, [eventId, sessionId], data);
33120
+ }
33121
+ return data;
33122
+ };
33123
+ var useRemoveEventSessionBlock = (options = {}) => {
33124
+ return useConnectedMutation(RemoveEventSessionBlock, options);
33125
+ };
33126
+
32753
33127
  // src/mutations/events/sessions/useRemoveEventSessionPassType.ts
32754
33128
  var RemoveEventSessionPassType = async ({
32755
33129
  eventId,
@@ -39479,6 +39853,7 @@ var useUpdateTier = (options = {}) => {
39479
39853
  AddEventAddOnPassType,
39480
39854
  AddEventAddOnTier,
39481
39855
  AddEventBenefit,
39856
+ AddEventBlockSession,
39482
39857
  AddEventCoHost,
39483
39858
  AddEventFollowupAddOn,
39484
39859
  AddEventFollowupPassType,
@@ -39499,6 +39874,7 @@ var useUpdateTier = (options = {}) => {
39499
39874
  AddEventSectionQuestion,
39500
39875
  AddEventSectionTier,
39501
39876
  AddEventSessionAccount,
39877
+ AddEventSessionBlock,
39502
39878
  AddEventSessionLocationSession,
39503
39879
  AddEventSessionMatchPass,
39504
39880
  AddEventSessionPassType,
@@ -39627,6 +40003,7 @@ var useUpdateTier = (options = {}) => {
39627
40003
  CreateEventAddOn,
39628
40004
  CreateEventAttendee,
39629
40005
  CreateEventAttendeePackage,
40006
+ CreateEventBlock,
39630
40007
  CreateEventCoupon,
39631
40008
  CreateEventCouponVariants,
39632
40009
  CreateEventFaqSection,
@@ -39747,6 +40124,7 @@ var useUpdateTier = (options = {}) => {
39747
40124
  DeleteEventAddOnTranslation,
39748
40125
  DeleteEventAttendee,
39749
40126
  DeleteEventAttendeePackage,
40127
+ DeleteEventBlock,
39750
40128
  DeleteEventCoupon,
39751
40129
  DeleteEventCouponVariants,
39752
40130
  DeleteEventEmailTranslation,
@@ -39891,6 +40269,9 @@ var useUpdateTier = (options = {}) => {
39891
40269
  EVENT_ATTENDEE_QUERY_KEY,
39892
40270
  EVENT_ATTENDEE_RESERVATIONS_QUERY_KEY,
39893
40271
  EVENT_ATTENDEE_TRANSFER_LOGS_QUERY_KEY,
40272
+ EVENT_BLOCKS_QUERY_KEY,
40273
+ EVENT_BLOCK_QUERY_KEY,
40274
+ EVENT_BLOCK_SESSIONS_QUERY_KEY,
39894
40275
  EVENT_COUPONS_QUERY_KEY,
39895
40276
  EVENT_COUPON_PASSES_QUERY_KEY,
39896
40277
  EVENT_COUPON_PAYMENTS_QUERY_KEY,
@@ -40010,6 +40391,7 @@ var useUpdateTier = (options = {}) => {
40010
40391
  EVENT_SESSION_ACCESS_RESPONSE_CHANGES_QUERY_KEY,
40011
40392
  EVENT_SESSION_ACCESS_SESSION_QUESTION_SECTIONS_QUERY_KEY,
40012
40393
  EVENT_SESSION_ACCOUNTS_QUERY_KEY,
40394
+ EVENT_SESSION_BLOCKS_QUERY_KEY,
40013
40395
  EVENT_SESSION_LOCATIONS_QUERY_KEY,
40014
40396
  EVENT_SESSION_LOCATION_QUERY_KEY,
40015
40397
  EVENT_SESSION_LOCATION_SESSIONS_QUERY_KEY,
@@ -40232,6 +40614,9 @@ var useUpdateTier = (options = {}) => {
40232
40614
  GetEventAttendeeReservations,
40233
40615
  GetEventAttendeeTransfersLogs,
40234
40616
  GetEventAttendees,
40617
+ GetEventBlock,
40618
+ GetEventBlockSessions,
40619
+ GetEventBlocks,
40235
40620
  GetEventCoHosts,
40236
40621
  GetEventCoupon,
40237
40622
  GetEventCouponPasses,
@@ -40345,6 +40730,7 @@ var useUpdateTier = (options = {}) => {
40345
40730
  GetEventSessionAccessResponseChanges,
40346
40731
  GetEventSessionAccesses,
40347
40732
  GetEventSessionAccounts,
40733
+ GetEventSessionBlocks,
40348
40734
  GetEventSessionLocation,
40349
40735
  GetEventSessionLocationSessions,
40350
40736
  GetEventSessionLocationTranslation,
@@ -40739,6 +41125,7 @@ var useUpdateTier = (options = {}) => {
40739
41125
  RemoveEventAddOnPassType,
40740
41126
  RemoveEventAddOnTier,
40741
41127
  RemoveEventBenefit,
41128
+ RemoveEventBlockSession,
40742
41129
  RemoveEventCoHost,
40743
41130
  RemoveEventFollowupAddOn,
40744
41131
  RemoveEventFollowupPassType,
@@ -40759,6 +41146,7 @@ var useUpdateTier = (options = {}) => {
40759
41146
  RemoveEventSectionQuestion,
40760
41147
  RemoveEventSectionTier,
40761
41148
  RemoveEventSessionAccount,
41149
+ RemoveEventSessionBlock,
40762
41150
  RemoveEventSessionLocationSession,
40763
41151
  RemoveEventSessionMatchPass,
40764
41152
  RemoveEventSessionPassType,
@@ -40936,6 +41324,9 @@ var useUpdateTier = (options = {}) => {
40936
41324
  SET_EVENT_ATTENDEE_QUERY_DATA,
40937
41325
  SET_EVENT_ATTENDEE_RESERVATIONS_QUERY_DATA,
40938
41326
  SET_EVENT_ATTENDEE_TRANSFER_LOGS_QUERY_DATA,
41327
+ SET_EVENT_BLOCKS_QUERY_DATA,
41328
+ SET_EVENT_BLOCK_QUERY_DATA,
41329
+ SET_EVENT_BLOCK_SESSIONS_QUERY_DATA,
40939
41330
  SET_EVENT_COUPONS_QUERY_DATA,
40940
41331
  SET_EVENT_COUPON_PASSES_QUERY_DATA,
40941
41332
  SET_EVENT_COUPON_PAYMENTS_QUERY_DATA,
@@ -41053,6 +41444,7 @@ var useUpdateTier = (options = {}) => {
41053
41444
  SET_EVENT_SESSION_ACCESS_RESPONSE_CHANGES_QUERY_DATA,
41054
41445
  SET_EVENT_SESSION_ACCESS_SESSION_QUESTION_SECTIONS_QUERY_DATA,
41055
41446
  SET_EVENT_SESSION_ACCOUNTS_QUERY_DATA,
41447
+ SET_EVENT_SESSION_BLOCKS_QUERY_DATA,
41056
41448
  SET_EVENT_SESSION_LOCATIONS_QUERY_DATA,
41057
41449
  SET_EVENT_SESSION_LOCATION_QUERY_DATA,
41058
41450
  SET_EVENT_SESSION_LOCATION_SESSIONS_QUERY_DATA,
@@ -41431,6 +41823,7 @@ var useUpdateTier = (options = {}) => {
41431
41823
  UpdateEventAddOnTranslation,
41432
41824
  UpdateEventAttendee,
41433
41825
  UpdateEventAttendeePackage,
41826
+ UpdateEventBlock,
41434
41827
  UpdateEventCheckinCode,
41435
41828
  UpdateEventCoupon,
41436
41829
  UpdateEventEmail,
@@ -41589,6 +41982,7 @@ var useUpdateTier = (options = {}) => {
41589
41982
  useAddEventAddOnPassType,
41590
41983
  useAddEventAddOnTier,
41591
41984
  useAddEventBenefit,
41985
+ useAddEventBlockSession,
41592
41986
  useAddEventCoHost,
41593
41987
  useAddEventFollowupAddOn,
41594
41988
  useAddEventFollowupPassType,
@@ -41609,6 +42003,7 @@ var useUpdateTier = (options = {}) => {
41609
42003
  useAddEventSectionQuestion,
41610
42004
  useAddEventSectionTier,
41611
42005
  useAddEventSessionAccount,
42006
+ useAddEventSessionBlock,
41612
42007
  useAddEventSessionLocationSession,
41613
42008
  useAddEventSessionMatchPass,
41614
42009
  useAddEventSessionPassType,
@@ -41681,6 +42076,7 @@ var useUpdateTier = (options = {}) => {
41681
42076
  useCreateEventAddOn,
41682
42077
  useCreateEventAttendee,
41683
42078
  useCreateEventAttendeePackage,
42079
+ useCreateEventBlock,
41684
42080
  useCreateEventCoupon,
41685
42081
  useCreateEventCouponVariants,
41686
42082
  useCreateEventFaqSection,
@@ -41792,6 +42188,7 @@ var useUpdateTier = (options = {}) => {
41792
42188
  useDeleteEventAddOnTranslation,
41793
42189
  useDeleteEventAttendee,
41794
42190
  useDeleteEventAttendeePackage,
42191
+ useDeleteEventBlock,
41795
42192
  useDeleteEventCoupon,
41796
42193
  useDeleteEventCouponVariants,
41797
42194
  useDeleteEventEmailTranslation,
@@ -42036,6 +42433,9 @@ var useUpdateTier = (options = {}) => {
42036
42433
  useGetEventAttendeeReservations,
42037
42434
  useGetEventAttendeeTransfersLogs,
42038
42435
  useGetEventAttendees,
42436
+ useGetEventBlock,
42437
+ useGetEventBlockSessions,
42438
+ useGetEventBlocks,
42039
42439
  useGetEventCoHosts,
42040
42440
  useGetEventCoupon,
42041
42441
  useGetEventCouponPasses,
@@ -42149,6 +42549,7 @@ var useUpdateTier = (options = {}) => {
42149
42549
  useGetEventSessionAccessResponseChanges,
42150
42550
  useGetEventSessionAccesses,
42151
42551
  useGetEventSessionAccounts,
42552
+ useGetEventSessionBlocks,
42152
42553
  useGetEventSessionLocation,
42153
42554
  useGetEventSessionLocationSessions,
42154
42555
  useGetEventSessionLocationTranslation,
@@ -42427,6 +42828,7 @@ var useUpdateTier = (options = {}) => {
42427
42828
  useRemoveEventAddOnPassType,
42428
42829
  useRemoveEventAddOnTier,
42429
42830
  useRemoveEventBenefit,
42831
+ useRemoveEventBlockSession,
42430
42832
  useRemoveEventCoHost,
42431
42833
  useRemoveEventFollowupAddOn,
42432
42834
  useRemoveEventFollowupPassType,
@@ -42447,6 +42849,7 @@ var useUpdateTier = (options = {}) => {
42447
42849
  useRemoveEventSectionQuestion,
42448
42850
  useRemoveEventSectionTier,
42449
42851
  useRemoveEventSessionAccount,
42852
+ useRemoveEventSessionBlock,
42450
42853
  useRemoveEventSessionLocationSession,
42451
42854
  useRemoveEventSessionMatchPass,
42452
42855
  useRemoveEventSessionPassType,
@@ -42542,6 +42945,7 @@ var useUpdateTier = (options = {}) => {
42542
42945
  useUpdateEventAddOnTranslation,
42543
42946
  useUpdateEventAttendee,
42544
42947
  useUpdateEventAttendeePackage,
42948
+ useUpdateEventBlock,
42545
42949
  useUpdateEventCheckinCode,
42546
42950
  useUpdateEventCoupon,
42547
42951
  useUpdateEventEmail,