@connectedxm/admin 1.2.2 → 1.2.4

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.js CHANGED
@@ -425,6 +425,7 @@ __export(src_exports, {
425
425
  EVENT_RESERVATION_SECTION_LOCATION_QUERY_KEY: () => EVENT_RESERVATION_SECTION_LOCATION_QUERY_KEY,
426
426
  EVENT_RESERVATION_SECTION_LOCATION_TRANSLATIONS_QUERY_KEY: () => EVENT_RESERVATION_SECTION_LOCATION_TRANSLATIONS_QUERY_KEY,
427
427
  EVENT_RESERVATION_SECTION_LOCATION_TRANSLATION_QUERY_KEY: () => EVENT_RESERVATION_SECTION_LOCATION_TRANSLATION_QUERY_KEY,
428
+ EVENT_RESERVATION_SECTION_PASSES_QUERY_KEY: () => EVENT_RESERVATION_SECTION_PASSES_QUERY_KEY,
428
429
  EVENT_RESERVATION_SECTION_PASS_TYPES_QUERY_KEY: () => EVENT_RESERVATION_SECTION_PASS_TYPES_QUERY_KEY,
429
430
  EVENT_RESERVATION_SECTION_QUERY_KEY: () => EVENT_RESERVATION_SECTION_QUERY_KEY,
430
431
  EVENT_RESERVATION_SECTION_TIERS_QUERY_KEY: () => EVENT_RESERVATION_SECTION_TIERS_QUERY_KEY,
@@ -767,6 +768,7 @@ __export(src_exports, {
767
768
  GetReservationSectionLocationTranslations: () => GetReservationSectionLocationTranslations,
768
769
  GetReservationSectionLocations: () => GetReservationSectionLocations,
769
770
  GetReservationSectionPassTypes: () => GetReservationSectionPassTypes,
771
+ GetReservationSectionPasses: () => GetReservationSectionPasses,
770
772
  GetReservationSectionTiers: () => GetReservationSectionTiers,
771
773
  GetReservationSectionTranslation: () => GetReservationSectionTranslation,
772
774
  GetReservationSectionTranslations: () => GetReservationSectionTranslations,
@@ -1099,6 +1101,7 @@ __export(src_exports, {
1099
1101
  SET_EVENT_RESERVATION_SECTION_LOCATION_QUERY_DATA: () => SET_EVENT_RESERVATION_SECTION_LOCATION_QUERY_DATA,
1100
1102
  SET_EVENT_RESERVATION_SECTION_LOCATION_TRANSLATIONS_QUERY_DATA: () => SET_EVENT_RESERVATION_SECTION_LOCATION_TRANSLATIONS_QUERY_DATA,
1101
1103
  SET_EVENT_RESERVATION_SECTION_LOCATION_TRANSLATION_QUERY_DATA: () => SET_EVENT_RESERVATION_SECTION_LOCATION_TRANSLATION_QUERY_DATA,
1104
+ SET_EVENT_RESERVATION_SECTION_PASSES_QUERY_DATA: () => SET_EVENT_RESERVATION_SECTION_PASSES_QUERY_DATA,
1102
1105
  SET_EVENT_RESERVATION_SECTION_PASS_TYPES_QUERY_DATA: () => SET_EVENT_RESERVATION_SECTION_PASS_TYPES_QUERY_DATA,
1103
1106
  SET_EVENT_RESERVATION_SECTION_QUERY_DATA: () => SET_EVENT_RESERVATION_SECTION_QUERY_DATA,
1104
1107
  SET_EVENT_RESERVATION_SECTION_TIERS_QUERY_DATA: () => SET_EVENT_RESERVATION_SECTION_TIERS_QUERY_DATA,
@@ -1907,6 +1910,7 @@ __export(src_exports, {
1907
1910
  useGetReservationSectionLocationTranslations: () => useGetReservationSectionLocationTranslations,
1908
1911
  useGetReservationSectionLocations: () => useGetReservationSectionLocations,
1909
1912
  useGetReservationSectionPassTypes: () => useGetReservationSectionPassTypes,
1913
+ useGetReservationSectionPasses: () => useGetReservationSectionPasses,
1910
1914
  useGetReservationSectionTiers: () => useGetReservationSectionTiers,
1911
1915
  useGetReservationSectionTranslation: () => useGetReservationSectionTranslation,
1912
1916
  useGetReservationSectionTranslations: () => useGetReservationSectionTranslations,
@@ -5573,11 +5577,16 @@ var useGetEventAddOnPasses = (eventId = "", addOnId = "", params = {}, options =
5573
5577
  };
5574
5578
 
5575
5579
  // src/queries/events/addOns/useGetEventAddOnTiers.ts
5576
- var EVENT_ADD_ON_TIERS_QUERY_KEY = (eventId, addOnId) => [...EVENT_ADD_ON_QUERY_KEY(eventId, addOnId), "TIERS"];
5580
+ var EVENT_ADD_ON_TIERS_QUERY_KEY = (allowed, eventId, addOnId) => [
5581
+ ...EVENT_ADD_ON_QUERY_KEY(eventId, addOnId),
5582
+ "TIERS",
5583
+ allowed ? "ALLOWED" : "DISALLOWED"
5584
+ ];
5577
5585
  var SET_EVENT_ADD_ON_TIERS_QUERY_DATA = (client, keyParams, response) => {
5578
5586
  client.setQueryData(EVENT_ADD_ON_TIERS_QUERY_KEY(...keyParams), response);
5579
5587
  };
5580
5588
  var GetEventAddOnTiers = async ({
5589
+ allowed,
5581
5590
  eventId,
5582
5591
  addOnId,
5583
5592
  pageParam,
@@ -5591,6 +5600,7 @@ var GetEventAddOnTiers = async ({
5591
5600
  `/events/${eventId}/addOns/${addOnId}/tiers`,
5592
5601
  {
5593
5602
  params: {
5603
+ allowed,
5594
5604
  page: pageParam || void 0,
5595
5605
  pageSize: pageSize || void 0,
5596
5606
  orderBy: orderBy || void 0,
@@ -5600,18 +5610,19 @@ var GetEventAddOnTiers = async ({
5600
5610
  );
5601
5611
  return data;
5602
5612
  };
5603
- var useGetEventAddOnTiers = (eventId = "", addOnId = "", params = {}, options = {}) => {
5613
+ var useGetEventAddOnTiers = (allowed, eventId = "", addOnId = "", params = {}, options = {}) => {
5604
5614
  return useConnectedInfiniteQuery(
5605
- EVENT_ADD_ON_TIERS_QUERY_KEY(eventId, addOnId),
5615
+ EVENT_ADD_ON_TIERS_QUERY_KEY(allowed, eventId, addOnId),
5606
5616
  (params2) => GetEventAddOnTiers({
5607
5617
  ...params2,
5618
+ allowed,
5608
5619
  eventId,
5609
5620
  addOnId
5610
5621
  }),
5611
5622
  params,
5612
5623
  {
5613
5624
  ...options,
5614
- enabled: !!eventId && !!addOnId && (options.enabled ?? true)
5625
+ enabled: typeof allowed === "boolean" && !!eventId && !!addOnId && (options.enabled ?? true)
5615
5626
  },
5616
5627
  "events"
5617
5628
  );
@@ -7754,11 +7765,16 @@ var useGetEventPassTypePasses = (eventId = "", passTypeId = "", checkedIn, param
7754
7765
  };
7755
7766
 
7756
7767
  // src/queries/events/passTypes/useGetEventPassTypeTiers.ts
7757
- var EVENT_PASS_TYPE_TIERS_QUERY_KEY = (eventId, passTypeId) => [...EVENT_PASS_TYPE_QUERY_KEY(eventId, passTypeId), "TIERS"];
7768
+ var EVENT_PASS_TYPE_TIERS_QUERY_KEY = (allowed, eventId, passTypeId) => [
7769
+ ...EVENT_PASS_TYPE_QUERY_KEY(eventId, passTypeId),
7770
+ "TIERS",
7771
+ allowed ? "ALLOWED" : "DISALLOWED"
7772
+ ];
7758
7773
  var SET_EVENT_PASS_TYPE_TIERS_QUERY_DATA = (client, keyParams, response) => {
7759
7774
  client.setQueryData(EVENT_PASS_TYPE_TIERS_QUERY_KEY(...keyParams), response);
7760
7775
  };
7761
7776
  var GetEventPassTypeTiers = async ({
7777
+ allowed,
7762
7778
  eventId,
7763
7779
  passTypeId,
7764
7780
  pageParam,
@@ -7772,6 +7788,7 @@ var GetEventPassTypeTiers = async ({
7772
7788
  `/events/${eventId}/passTypes/${passTypeId}/tiers`,
7773
7789
  {
7774
7790
  params: {
7791
+ allowed,
7775
7792
  page: pageParam || void 0,
7776
7793
  pageSize: pageSize || void 0,
7777
7794
  orderBy: orderBy || void 0,
@@ -7781,18 +7798,19 @@ var GetEventPassTypeTiers = async ({
7781
7798
  );
7782
7799
  return data;
7783
7800
  };
7784
- var useGetEventPassTypeTiers = (eventId = "", passTypeId = "", params = {}, options = {}) => {
7801
+ var useGetEventPassTypeTiers = (allowed, eventId = "", passTypeId = "", params = {}, options = {}) => {
7785
7802
  return useConnectedInfiniteQuery(
7786
- EVENT_PASS_TYPE_TIERS_QUERY_KEY(eventId, passTypeId),
7803
+ EVENT_PASS_TYPE_TIERS_QUERY_KEY(allowed, eventId, passTypeId),
7787
7804
  (params2) => GetEventPassTypeTiers({
7788
7805
  ...params2,
7806
+ allowed,
7789
7807
  eventId,
7790
7808
  passTypeId
7791
7809
  }),
7792
7810
  params,
7793
7811
  {
7794
7812
  ...options,
7795
- enabled: !!eventId && !!passTypeId && (options.enabled ?? true)
7813
+ enabled: typeof allowed === "boolean" && !!eventId && !!passTypeId && (options.enabled ?? true)
7796
7814
  },
7797
7815
  "events"
7798
7816
  );
@@ -8849,10 +8867,62 @@ var useGetReservationSectionPassTypes = (eventId = "", reservationSectionId = ""
8849
8867
  );
8850
8868
  };
8851
8869
 
8870
+ // src/queries/events/reservations/useGetReservationSectionPasses.ts
8871
+ var EVENT_RESERVATION_SECTION_PASSES_QUERY_KEY = (eventId, reservationSectionId) => [
8872
+ ...EVENT_RESERVATION_SECTION_QUERY_KEY(eventId, reservationSectionId),
8873
+ "PASSES"
8874
+ ];
8875
+ var SET_EVENT_RESERVATION_SECTION_PASSES_QUERY_DATA = (client, keyParams, response) => {
8876
+ client.setQueryData(
8877
+ EVENT_RESERVATION_SECTION_PASSES_QUERY_KEY(...keyParams),
8878
+ response
8879
+ );
8880
+ };
8881
+ var GetReservationSectionPasses = async ({
8882
+ eventId,
8883
+ reservationSectionId,
8884
+ pageParam,
8885
+ pageSize,
8886
+ orderBy,
8887
+ search,
8888
+ adminApiParams
8889
+ }) => {
8890
+ const adminApi = await GetAdminAPI(adminApiParams);
8891
+ const { data } = await adminApi.get(
8892
+ `/events/${eventId}/reservationSections/${reservationSectionId}/passes`,
8893
+ {
8894
+ params: {
8895
+ page: pageParam || void 0,
8896
+ pageSize: pageSize || void 0,
8897
+ orderBy: orderBy || void 0,
8898
+ search: search || void 0
8899
+ }
8900
+ }
8901
+ );
8902
+ return data;
8903
+ };
8904
+ var useGetReservationSectionPasses = (eventId = "", reservationSectionId = "", params = {}, options = {}) => {
8905
+ return useConnectedInfiniteQuery(
8906
+ EVENT_RESERVATION_SECTION_PASSES_QUERY_KEY(eventId, reservationSectionId),
8907
+ (params2) => GetReservationSectionPasses({
8908
+ ...params2,
8909
+ eventId,
8910
+ reservationSectionId
8911
+ }),
8912
+ params,
8913
+ {
8914
+ ...options,
8915
+ enabled: !!reservationSectionId && (options.enabled ?? true)
8916
+ },
8917
+ "events"
8918
+ );
8919
+ };
8920
+
8852
8921
  // src/queries/events/reservations/useGetReservationSectionTiers.ts
8853
- var EVENT_RESERVATION_SECTION_TIERS_QUERY_KEY = (eventId, reservationSectionId) => [
8922
+ var EVENT_RESERVATION_SECTION_TIERS_QUERY_KEY = (allowed, eventId, reservationSectionId) => [
8854
8923
  ...EVENT_RESERVATION_SECTION_QUERY_KEY(eventId, reservationSectionId),
8855
- "TIERS"
8924
+ "TIERS",
8925
+ allowed ? "ALLOWED" : "DISALLOWED"
8856
8926
  ];
8857
8927
  var SET_EVENT_RESERVATION_SECTION_TIERS_QUERY_DATA = (client, keyParams, response) => {
8858
8928
  client.setQueryData(
@@ -8861,6 +8931,7 @@ var SET_EVENT_RESERVATION_SECTION_TIERS_QUERY_DATA = (client, keyParams, respons
8861
8931
  );
8862
8932
  };
8863
8933
  var GetReservationSectionTiers = async ({
8934
+ allowed,
8864
8935
  eventId,
8865
8936
  reservationSectionId,
8866
8937
  pageParam,
@@ -8874,6 +8945,7 @@ var GetReservationSectionTiers = async ({
8874
8945
  `/events/${eventId}/reservationSections/${reservationSectionId}/tiers`,
8875
8946
  {
8876
8947
  params: {
8948
+ allowed,
8877
8949
  page: pageParam || void 0,
8878
8950
  pageSize: pageSize || void 0,
8879
8951
  orderBy: orderBy || void 0,
@@ -8883,18 +8955,23 @@ var GetReservationSectionTiers = async ({
8883
8955
  );
8884
8956
  return data;
8885
8957
  };
8886
- var useGetReservationSectionTiers = (eventId = "", reservationSectionId = "", params = {}, options = {}) => {
8958
+ var useGetReservationSectionTiers = (allowed, eventId = "", reservationSectionId = "", params = {}, options = {}) => {
8887
8959
  return useConnectedInfiniteQuery(
8888
- EVENT_RESERVATION_SECTION_TIERS_QUERY_KEY(eventId, reservationSectionId),
8960
+ EVENT_RESERVATION_SECTION_TIERS_QUERY_KEY(
8961
+ allowed,
8962
+ eventId,
8963
+ reservationSectionId
8964
+ ),
8889
8965
  (params2) => GetReservationSectionTiers({
8890
8966
  ...params2,
8967
+ allowed,
8891
8968
  eventId,
8892
8969
  reservationSectionId
8893
8970
  }),
8894
8971
  params,
8895
8972
  {
8896
8973
  ...options,
8897
- enabled: !!eventId && !!reservationSectionId && (options.enabled ?? true)
8974
+ enabled: typeof allowed === "boolean" && !!eventId && !!reservationSectionId && (options.enabled ?? true)
8898
8975
  },
8899
8976
  "events"
8900
8977
  );
@@ -9208,11 +9285,16 @@ var useGetEventSectionQuestions = (eventId = "", sectionId = "", params = {}, op
9208
9285
  };
9209
9286
 
9210
9287
  // src/queries/events/sections/useGetEventSectionTiers.ts
9211
- var EVENT_SECTION_TIERS_QUERY_KEY = (eventId, sectionId) => [...EVENT_SECTION_QUERY_KEY(eventId, sectionId), "TIERS"];
9288
+ var EVENT_SECTION_TIERS_QUERY_KEY = (allowed, eventId, sectionId) => [
9289
+ ...EVENT_SECTION_QUERY_KEY(eventId, sectionId),
9290
+ "TIERS",
9291
+ allowed ? "ALLOWED" : "DISALLOWED"
9292
+ ];
9212
9293
  var SET_EVENT_SECTION_TIERS_QUERY_DATA = (client, keyParams, response) => {
9213
9294
  client.setQueryData(EVENT_SECTION_TIERS_QUERY_KEY(...keyParams), response);
9214
9295
  };
9215
9296
  var GetEventSectionTiers = async ({
9297
+ allowed,
9216
9298
  eventId,
9217
9299
  sectionId,
9218
9300
  pageParam,
@@ -9226,6 +9308,7 @@ var GetEventSectionTiers = async ({
9226
9308
  `/events/${eventId}/sections/${sectionId}/tiers`,
9227
9309
  {
9228
9310
  params: {
9311
+ allowed,
9229
9312
  page: pageParam || void 0,
9230
9313
  pageSize: pageSize || void 0,
9231
9314
  orderBy: orderBy || void 0,
@@ -9235,18 +9318,19 @@ var GetEventSectionTiers = async ({
9235
9318
  );
9236
9319
  return data;
9237
9320
  };
9238
- var useGetEventSectionTiers = (eventId = "", sectionId = "", params = {}, options = {}) => {
9321
+ var useGetEventSectionTiers = (allowed, eventId = "", sectionId = "", params = {}, options = {}) => {
9239
9322
  return useConnectedInfiniteQuery(
9240
- EVENT_SECTION_TIERS_QUERY_KEY(eventId, sectionId),
9323
+ EVENT_SECTION_TIERS_QUERY_KEY(allowed, eventId, sectionId),
9241
9324
  (params2) => GetEventSectionTiers({
9242
9325
  ...params2,
9326
+ allowed,
9243
9327
  eventId,
9244
9328
  sectionId
9245
9329
  }),
9246
9330
  params,
9247
9331
  {
9248
9332
  ...options,
9249
- enabled: !!eventId && !!sectionId && (options.enabled ?? true)
9333
+ enabled: typeof allowed === "boolean" && !!eventId && !!sectionId && (options.enabled ?? true)
9250
9334
  },
9251
9335
  "events"
9252
9336
  );
@@ -17407,6 +17491,7 @@ var useAddEventAddOnPassType = (options = {}) => {
17407
17491
 
17408
17492
  // src/mutations/event/addOns/useAddEventAddOnTier.ts
17409
17493
  var AddEventAddOnTier = async ({
17494
+ allowed,
17410
17495
  eventId,
17411
17496
  addOnId,
17412
17497
  tierId,
@@ -17415,11 +17500,14 @@ var AddEventAddOnTier = async ({
17415
17500
  }) => {
17416
17501
  const connectedXM = await GetAdminAPI(adminApiParams);
17417
17502
  const { data } = await connectedXM.post(
17418
- `/events/${eventId}/addOns/${addOnId}/tiers/${tierId}`
17503
+ `/events/${eventId}/addOns/${addOnId}/tiers/${tierId}`,
17504
+ {
17505
+ allowed
17506
+ }
17419
17507
  );
17420
17508
  if (queryClient && data.status === "ok") {
17421
17509
  queryClient.invalidateQueries({
17422
- queryKey: EVENT_ADD_ON_TIERS_QUERY_KEY(eventId, addOnId)
17510
+ queryKey: EVENT_ADD_ON_TIERS_QUERY_KEY(allowed, eventId, addOnId)
17423
17511
  });
17424
17512
  SET_EVENT_ADD_ON_QUERY_DATA(queryClient, [eventId, addOnId], data);
17425
17513
  }
@@ -17516,6 +17604,7 @@ var useRemoveEventAddOnPassType = (options = {}) => {
17516
17604
 
17517
17605
  // src/mutations/event/addOns/useRemoveEventAddOnTier.ts
17518
17606
  var RemoveEventAddOnTier = async ({
17607
+ allowed,
17519
17608
  eventId,
17520
17609
  addOnId,
17521
17610
  tierId,
@@ -17524,11 +17613,16 @@ var RemoveEventAddOnTier = async ({
17524
17613
  }) => {
17525
17614
  const connectedXM = await GetAdminAPI(adminApiParams);
17526
17615
  const { data } = await connectedXM.delete(
17527
- `/events/${eventId}/addOns/${addOnId}/tiers/${tierId}`
17616
+ `/events/${eventId}/addOns/${addOnId}/tiers/${tierId}`,
17617
+ {
17618
+ params: {
17619
+ allowed
17620
+ }
17621
+ }
17528
17622
  );
17529
17623
  if (queryClient && data.status === "ok") {
17530
17624
  queryClient.invalidateQueries({
17531
- queryKey: EVENT_ADD_ON_TIERS_QUERY_KEY(eventId, addOnId)
17625
+ queryKey: EVENT_ADD_ON_TIERS_QUERY_KEY(allowed, eventId, addOnId)
17532
17626
  });
17533
17627
  SET_EVENT_ADD_ON_QUERY_DATA(queryClient, [eventId, addOnId], data);
17534
17628
  }
@@ -19196,6 +19290,7 @@ var useAddEventPassTypeAddOn = (options = {}) => {
19196
19290
 
19197
19291
  // src/mutations/event/passTypes/useAddEventPassTypeTier.ts
19198
19292
  var AddEventPassTypeTier = async ({
19293
+ allowed,
19199
19294
  eventId,
19200
19295
  passTypeId,
19201
19296
  tierId,
@@ -19204,11 +19299,14 @@ var AddEventPassTypeTier = async ({
19204
19299
  }) => {
19205
19300
  const connectedXM = await GetAdminAPI(adminApiParams);
19206
19301
  const { data } = await connectedXM.post(
19207
- `/events/${eventId}/passTypes/${passTypeId}/tiers/${tierId}`
19302
+ `/events/${eventId}/passTypes/${passTypeId}/tiers/${tierId}`,
19303
+ {
19304
+ allowed
19305
+ }
19208
19306
  );
19209
19307
  if (queryClient && data.status === "ok") {
19210
19308
  queryClient.invalidateQueries({
19211
- queryKey: EVENT_PASS_TYPE_TIERS_QUERY_KEY(eventId, passTypeId)
19309
+ queryKey: EVENT_PASS_TYPE_TIERS_QUERY_KEY(allowed, eventId, passTypeId)
19212
19310
  });
19213
19311
  SET_EVENT_PASS_TYPE_QUERY_DATA(queryClient, [eventId, passTypeId], data);
19214
19312
  }
@@ -19305,6 +19403,7 @@ var useRemoveEventPassTypeAddOn = (options = {}) => {
19305
19403
 
19306
19404
  // src/mutations/event/passTypes/useRemoveEventPassTypeTier.ts
19307
19405
  var RemoveEventPassTypeTier = async ({
19406
+ allowed,
19308
19407
  eventId,
19309
19408
  passTypeId,
19310
19409
  tierId,
@@ -19313,11 +19412,16 @@ var RemoveEventPassTypeTier = async ({
19313
19412
  }) => {
19314
19413
  const connectedXM = await GetAdminAPI(adminApiParams);
19315
19414
  const { data } = await connectedXM.delete(
19316
- `/events/${eventId}/passTypes/${passTypeId}/tiers/${tierId}`
19415
+ `/events/${eventId}/passTypes/${passTypeId}/tiers/${tierId}`,
19416
+ {
19417
+ params: {
19418
+ allowed
19419
+ }
19420
+ }
19317
19421
  );
19318
19422
  if (queryClient && data.status === "ok") {
19319
19423
  queryClient.invalidateQueries({
19320
- queryKey: EVENT_PASS_TYPE_TIERS_QUERY_KEY(eventId, passTypeId)
19424
+ queryKey: EVENT_PASS_TYPE_TIERS_QUERY_KEY(allowed, eventId, passTypeId)
19321
19425
  });
19322
19426
  SET_EVENT_PASS_TYPE_QUERY_DATA(queryClient, [eventId, passTypeId], data);
19323
19427
  }
@@ -20846,6 +20950,7 @@ var useAddEventReservationSectionPassType = (options = {}) => {
20846
20950
 
20847
20951
  // src/mutations/event/reservations/useAddEventReservationSectionTier.ts
20848
20952
  var AddEventReservationSectionTier = async ({
20953
+ allowed,
20849
20954
  eventId,
20850
20955
  reservationSectionId,
20851
20956
  tierId,
@@ -20854,11 +20959,15 @@ var AddEventReservationSectionTier = async ({
20854
20959
  }) => {
20855
20960
  const connectedXM = await GetAdminAPI(adminApiParams);
20856
20961
  const { data } = await connectedXM.post(
20857
- `/events/${eventId}/reservationSections/${reservationSectionId}/tiers/${tierId}`
20962
+ `/events/${eventId}/reservationSections/${reservationSectionId}/tiers/${tierId}`,
20963
+ {
20964
+ allowed
20965
+ }
20858
20966
  );
20859
20967
  if (queryClient && data.status === "ok") {
20860
20968
  queryClient.invalidateQueries({
20861
20969
  queryKey: EVENT_RESERVATION_SECTION_TIERS_QUERY_KEY(
20970
+ allowed,
20862
20971
  eventId,
20863
20972
  reservationSectionId
20864
20973
  )
@@ -20976,6 +21085,7 @@ var useRemoveEventReservationSectionPassType = (options = {}) => {
20976
21085
 
20977
21086
  // src/mutations/event/reservations/useRemoveEventReservationSectionTier.ts
20978
21087
  var RemoveEventReservationSectionTier = async ({
21088
+ allowed,
20979
21089
  eventId,
20980
21090
  reservationSectionId,
20981
21091
  tierId,
@@ -20984,11 +21094,17 @@ var RemoveEventReservationSectionTier = async ({
20984
21094
  }) => {
20985
21095
  const connectedXM = await GetAdminAPI(adminApiParams);
20986
21096
  const { data } = await connectedXM.delete(
20987
- `/events/${eventId}/reservationSections/${reservationSectionId}/tiers/${tierId}`
21097
+ `/events/${eventId}/reservationSections/${reservationSectionId}/tiers/${tierId}`,
21098
+ {
21099
+ params: {
21100
+ allowed
21101
+ }
21102
+ }
20988
21103
  );
20989
21104
  if (queryClient && data.status === "ok") {
20990
21105
  queryClient.invalidateQueries({
20991
21106
  queryKey: EVENT_RESERVATION_SECTION_TIERS_QUERY_KEY(
21107
+ allowed,
20992
21108
  eventId,
20993
21109
  reservationSectionId
20994
21110
  )
@@ -21224,6 +21340,7 @@ var useAddEventSectionQuestion = (options = {}) => {
21224
21340
 
21225
21341
  // src/mutations/event/sections/useAddEventSectionTier.ts
21226
21342
  var AddEventSectionTier = async ({
21343
+ allowed,
21227
21344
  eventId,
21228
21345
  sectionId,
21229
21346
  tierId,
@@ -21232,11 +21349,14 @@ var AddEventSectionTier = async ({
21232
21349
  }) => {
21233
21350
  const connectedXM = await GetAdminAPI(adminApiParams);
21234
21351
  const { data } = await connectedXM.post(
21235
- `/events/${eventId}/sections/${sectionId}/tiers/${tierId}`
21352
+ `/events/${eventId}/sections/${sectionId}/tiers/${tierId}`,
21353
+ {
21354
+ allowed
21355
+ }
21236
21356
  );
21237
21357
  if (queryClient && data.status === "ok") {
21238
21358
  queryClient.invalidateQueries({
21239
- queryKey: EVENT_SECTION_TIERS_QUERY_KEY(eventId, sectionId)
21359
+ queryKey: EVENT_SECTION_TIERS_QUERY_KEY(allowed, eventId, sectionId)
21240
21360
  });
21241
21361
  SET_EVENT_SECTION_QUERY_DATA(queryClient, [eventId, sectionId], data);
21242
21362
  }
@@ -21382,6 +21502,7 @@ var useRemoveEventSectionQuestion = (options = {}) => {
21382
21502
 
21383
21503
  // src/mutations/event/sections/useRemoveEventSectionTier.ts
21384
21504
  var RemoveEventSectionTier = async ({
21505
+ allowed,
21385
21506
  eventId,
21386
21507
  sectionId,
21387
21508
  tierId,
@@ -21389,10 +21510,14 @@ var RemoveEventSectionTier = async ({
21389
21510
  queryClient
21390
21511
  }) => {
21391
21512
  const connectedXM = await GetAdminAPI(adminApiParams);
21392
- const { data } = await connectedXM.delete(`/events/${eventId}/sections/${sectionId}/tiers/${tierId}`);
21513
+ const { data } = await connectedXM.delete(`/events/${eventId}/sections/${sectionId}/tiers/${tierId}`, {
21514
+ params: {
21515
+ allowed
21516
+ }
21517
+ });
21393
21518
  if (queryClient && data.status === "ok") {
21394
21519
  queryClient.invalidateQueries({
21395
- queryKey: EVENT_SECTION_TIERS_QUERY_KEY(eventId, sectionId)
21520
+ queryKey: EVENT_SECTION_TIERS_QUERY_KEY(allowed, eventId, sectionId)
21396
21521
  });
21397
21522
  SET_EVENT_SECTION_QUERY_DATA(queryClient, [eventId, sectionId], data);
21398
21523
  }
@@ -26997,6 +27122,7 @@ var useUpdateVideo = (options = {}) => {
26997
27122
  EVENT_RESERVATION_SECTION_LOCATION_QUERY_KEY,
26998
27123
  EVENT_RESERVATION_SECTION_LOCATION_TRANSLATIONS_QUERY_KEY,
26999
27124
  EVENT_RESERVATION_SECTION_LOCATION_TRANSLATION_QUERY_KEY,
27125
+ EVENT_RESERVATION_SECTION_PASSES_QUERY_KEY,
27000
27126
  EVENT_RESERVATION_SECTION_PASS_TYPES_QUERY_KEY,
27001
27127
  EVENT_RESERVATION_SECTION_QUERY_KEY,
27002
27128
  EVENT_RESERVATION_SECTION_TIERS_QUERY_KEY,
@@ -27339,6 +27465,7 @@ var useUpdateVideo = (options = {}) => {
27339
27465
  GetReservationSectionLocationTranslations,
27340
27466
  GetReservationSectionLocations,
27341
27467
  GetReservationSectionPassTypes,
27468
+ GetReservationSectionPasses,
27342
27469
  GetReservationSectionTiers,
27343
27470
  GetReservationSectionTranslation,
27344
27471
  GetReservationSectionTranslations,
@@ -27671,6 +27798,7 @@ var useUpdateVideo = (options = {}) => {
27671
27798
  SET_EVENT_RESERVATION_SECTION_LOCATION_QUERY_DATA,
27672
27799
  SET_EVENT_RESERVATION_SECTION_LOCATION_TRANSLATIONS_QUERY_DATA,
27673
27800
  SET_EVENT_RESERVATION_SECTION_LOCATION_TRANSLATION_QUERY_DATA,
27801
+ SET_EVENT_RESERVATION_SECTION_PASSES_QUERY_DATA,
27674
27802
  SET_EVENT_RESERVATION_SECTION_PASS_TYPES_QUERY_DATA,
27675
27803
  SET_EVENT_RESERVATION_SECTION_QUERY_DATA,
27676
27804
  SET_EVENT_RESERVATION_SECTION_TIERS_QUERY_DATA,
@@ -28479,6 +28607,7 @@ var useUpdateVideo = (options = {}) => {
28479
28607
  useGetReservationSectionLocationTranslations,
28480
28608
  useGetReservationSectionLocations,
28481
28609
  useGetReservationSectionPassTypes,
28610
+ useGetReservationSectionPasses,
28482
28611
  useGetReservationSectionTiers,
28483
28612
  useGetReservationSectionTranslation,
28484
28613
  useGetReservationSectionTranslations,