@connectedxm/admin 0.0.10 → 0.0.12

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
@@ -151,6 +151,7 @@ __export(src_exports, {
151
151
  CreateChannelTranslation: () => CreateChannelTranslation,
152
152
  CreateEvent: () => CreateEvent,
153
153
  CreateEventActivation: () => CreateEventActivation,
154
+ CreateEventActivationCompletion: () => CreateEventActivationCompletion,
154
155
  CreateEventActivationTranslation: () => CreateEventActivationTranslation,
155
156
  CreateEventAddOn: () => CreateEventAddOn,
156
157
  CreateEventAddOnTranslation: () => CreateEventAddOnTranslation,
@@ -219,6 +220,7 @@ __export(src_exports, {
219
220
  DeleteChannelTranslation: () => DeleteChannelTranslation,
220
221
  DeleteEvent: () => DeleteEvent,
221
222
  DeleteEventActivation: () => DeleteEventActivation,
223
+ DeleteEventActivationCompletion: () => DeleteEventActivationCompletion,
222
224
  DeleteEventActivationTranslation: () => DeleteEventActivationTranslation,
223
225
  DeleteEventAddOn: () => DeleteEventAddOn,
224
226
  DeleteEventAddOnTranslation: () => DeleteEventAddOnTranslation,
@@ -313,6 +315,8 @@ __export(src_exports, {
313
315
  EVENT_PAGE_QUERY_KEY: () => EVENT_PAGE_QUERY_KEY,
314
316
  EVENT_PAGE_TRANSLATIONS_QUERY_KEY: () => EVENT_PAGE_TRANSLATIONS_QUERY_KEY,
315
317
  EVENT_PAGE_TRANSLATION_QUERY_KEY: () => EVENT_PAGE_TRANSLATION_QUERY_KEY,
318
+ EVENT_PURCHASES_QUERY_KEY: () => EVENT_PURCHASES_QUERY_KEY,
319
+ EVENT_PURCHASE_QUERY_KEY: () => EVENT_PURCHASE_QUERY_KEY,
316
320
  EVENT_QUERY_KEY: () => EVENT_QUERY_KEY,
317
321
  EVENT_QUESTIONS_QUERY_KEY: () => EVENT_QUESTIONS_QUERY_KEY,
318
322
  EVENT_QUESTION_CHOICES_QUERY_KEY: () => EVENT_QUESTION_CHOICES_QUERY_KEY,
@@ -453,7 +457,6 @@ __export(src_exports, {
453
457
  GetAnnouncementEmailReceipts: () => GetAnnouncementEmailReceipts,
454
458
  GetAnnouncements: () => GetAnnouncements,
455
459
  GetBaseInfiniteQueryKeys: () => GetBaseInfiniteQueryKeys,
456
- GetBaseSingleQueryKeys: () => GetBaseSingleQueryKeys,
457
460
  GetBenefit: () => GetBenefit,
458
461
  GetBenefitClicks: () => GetBenefitClicks,
459
462
  GetBenefitTranslation: () => GetBenefitTranslation,
@@ -510,6 +513,8 @@ __export(src_exports, {
510
513
  GetEventPageTranslation: () => GetEventPageTranslation,
511
514
  GetEventPageTranslations: () => GetEventPageTranslations,
512
515
  GetEventPages: () => GetEventPages,
516
+ GetEventPurchase: () => GetEventPurchase,
517
+ GetEventPurchases: () => GetEventPurchases,
513
518
  GetEventQuestion: () => GetEventQuestion,
514
519
  GetEventQuestionChoice: () => GetEventQuestionChoice,
515
520
  GetEventQuestionChoiceSubQuestions: () => GetEventQuestionChoiceSubQuestions,
@@ -782,6 +787,8 @@ __export(src_exports, {
782
787
  RemoveSeriesEvent: () => RemoveSeriesEvent,
783
788
  RemoveSubscriptionProductTier: () => RemoveSubscriptionProductTier,
784
789
  RemoveTierAccount: () => RemoveTierAccount,
790
+ ReorderEventQuestionChoices: () => ReorderEventQuestionChoices,
791
+ ReorderEventSectionQuestions: () => ReorderEventSectionQuestions,
785
792
  ReportType: () => ReportType,
786
793
  ResendEventRegistrationConfirmationEmail: () => ResendEventRegistrationConfirmationEmail,
787
794
  SEARCH_ORGANIZATION_QUERY_KEY: () => SEARCH_ORGANIZATION_QUERY_KEY,
@@ -877,6 +884,7 @@ __export(src_exports, {
877
884
  SET_EVENT_PAGE_QUERY_DATA: () => SET_EVENT_PAGE_QUERY_DATA,
878
885
  SET_EVENT_PAGE_TRANSLATIONS_QUERY_DATA: () => SET_EVENT_PAGE_TRANSLATIONS_QUERY_DATA,
879
886
  SET_EVENT_PAGE_TRANSLATION_QUERY_DATA: () => SET_EVENT_PAGE_TRANSLATION_QUERY_DATA,
887
+ SET_EVENT_PURCHASE_QUERY_DATA: () => SET_EVENT_PURCHASE_QUERY_DATA,
880
888
  SET_EVENT_QUERY_DATA: () => SET_EVENT_QUERY_DATA,
881
889
  SET_EVENT_QUESTIONS_QUERY_DATA: () => SET_EVENT_QUESTIONS_QUERY_DATA,
882
890
  SET_EVENT_QUESTION_CHOICES_QUERY_DATA: () => SET_EVENT_QUESTION_CHOICES_QUERY_DATA,
@@ -1060,6 +1068,7 @@ __export(src_exports, {
1060
1068
  SUPPORT_TICKETS_QUERY_KEY: () => SUPPORT_TICKETS_QUERY_KEY,
1061
1069
  SUPPORT_TICKET_QUERY_KEY: () => SUPPORT_TICKET_QUERY_KEY,
1062
1070
  SearchOrganization: () => SearchOrganization,
1071
+ SelectEventRegistrationPurchaseReservation: () => SelectEventRegistrationPurchaseReservation,
1063
1072
  SelfLeaveOrganization: () => SelfLeaveOrganization,
1064
1073
  SubscriptionProductPriceInterval: () => SubscriptionProductPriceInterval,
1065
1074
  SubscriptionProductPriceType: () => SubscriptionProductPriceType,
@@ -1091,6 +1100,7 @@ __export(src_exports, {
1091
1100
  UpdateChannelTranslation: () => UpdateChannelTranslation,
1092
1101
  UpdateEvent: () => UpdateEvent,
1093
1102
  UpdateEventActivation: () => UpdateEventActivation,
1103
+ UpdateEventActivationCompletion: () => UpdateEventActivationCompletion,
1094
1104
  UpdateEventActivationTranslation: () => UpdateEventActivationTranslation,
1095
1105
  UpdateEventAddOn: () => UpdateEventAddOn,
1096
1106
  UpdateEventAddOnTranslation: () => UpdateEventAddOnTranslation,
@@ -1230,6 +1240,7 @@ __export(src_exports, {
1230
1240
  useCreateChannelTranslation: () => useCreateChannelTranslation,
1231
1241
  useCreateEvent: () => useCreateEvent,
1232
1242
  useCreateEventActivation: () => useCreateEventActivation,
1243
+ useCreateEventActivationCompletion: () => useCreateEventActivationCompletion,
1233
1244
  useCreateEventActivationTranslation: () => useCreateEventActivationTranslation,
1234
1245
  useCreateEventAddOn: () => useCreateEventAddOn,
1235
1246
  useCreateEventAddOnTranslation: () => useCreateEventAddOnTranslation,
@@ -1296,6 +1307,7 @@ __export(src_exports, {
1296
1307
  useDeleteChannelTranslation: () => useDeleteChannelTranslation,
1297
1308
  useDeleteEvent: () => useDeleteEvent,
1298
1309
  useDeleteEventActivation: () => useDeleteEventActivation,
1310
+ useDeleteEventActivationCompletion: () => useDeleteEventActivationCompletion,
1299
1311
  useDeleteEventActivationTranslation: () => useDeleteEventActivationTranslation,
1300
1312
  useDeleteEventAddOn: () => useDeleteEventAddOn,
1301
1313
  useDeleteEventAddOnTranslation: () => useDeleteEventAddOnTranslation,
@@ -1442,6 +1454,8 @@ __export(src_exports, {
1442
1454
  useGetEventPageTranslation: () => useGetEventPageTranslation,
1443
1455
  useGetEventPageTranslations: () => useGetEventPageTranslations,
1444
1456
  useGetEventPages: () => useGetEventPages,
1457
+ useGetEventPurchase: () => useGetEventPurchase,
1458
+ useGetEventPurchases: () => useGetEventPurchases,
1445
1459
  useGetEventQuestion: () => useGetEventQuestion,
1446
1460
  useGetEventQuestionChoice: () => useGetEventQuestionChoice,
1447
1461
  useGetEventQuestionChoiceSubQuestions: () => useGetEventQuestionChoiceSubQuestions,
@@ -1655,8 +1669,11 @@ __export(src_exports, {
1655
1669
  useRemoveSeriesEvent: () => useRemoveSeriesEvent,
1656
1670
  useRemoveSubscriptionProductTier: () => useRemoveSubscriptionProductTier,
1657
1671
  useRemoveTierAccount: () => useRemoveTierAccount,
1672
+ useReorderEventQuestionChoices: () => useReorderEventQuestionChoices,
1673
+ useReorderEventSectionQuestions: () => useReorderEventSectionQuestions,
1658
1674
  useResendEventRegistrationConfirmationEmail: () => useResendEventRegistrationConfirmationEmail,
1659
1675
  useSearchOrganization: () => useSearchOrganization,
1676
+ useSelectEventRegistrationPurchaseReservation: () => useSelectEventRegistrationPurchaseReservation,
1660
1677
  useSelfLeaveOrganization: () => useSelfLeaveOrganization,
1661
1678
  useSwitchImage: () => useSwitchImage,
1662
1679
  useToggleOrganizationPaymentIntegration: () => useToggleOrganizationPaymentIntegration,
@@ -1675,6 +1692,7 @@ __export(src_exports, {
1675
1692
  useUpdateChannelTranslation: () => useUpdateChannelTranslation,
1676
1693
  useUpdateEvent: () => useUpdateEvent,
1677
1694
  useUpdateEventActivation: () => useUpdateEventActivation,
1695
+ useUpdateEventActivationCompletion: () => useUpdateEventActivationCompletion,
1678
1696
  useUpdateEventActivationTranslation: () => useUpdateEventActivationTranslation,
1679
1697
  useUpdateEventAddOn: () => useUpdateEventAddOn,
1680
1698
  useUpdateEventAddOnTranslation: () => useUpdateEventAddOnTranslation,
@@ -2101,57 +2119,8 @@ var AppendInfiniteQuery = (queryClient, key, newData) => {
2101
2119
  );
2102
2120
  };
2103
2121
 
2104
- // src/queries/useConnectedSingleQuery.ts
2105
- var import_react_query2 = require("@tanstack/react-query");
2106
- var GetBaseSingleQueryKeys = (locale) => {
2107
- return [locale];
2108
- };
2109
- var useConnectedSingleQuery = (queryKeys, queryFn, options = {}) => {
2110
- const {
2111
- locale,
2112
- onModuleForbidden,
2113
- onNotAuthorized,
2114
- onNotFound,
2115
- apiUrl,
2116
- organizationId,
2117
- getToken,
2118
- getExecuteAs
2119
- } = useConnectedXM();
2120
- return (0, import_react_query2.useQuery)({
2121
- staleTime: 60 * 1e3,
2122
- // 60 Seconds
2123
- retry: (failureCount, error) => {
2124
- if (error.response?.status === 404) {
2125
- if (onNotFound) onNotFound(error, queryKeys, options.shouldRedirect || false);
2126
- return false;
2127
- }
2128
- if (error.response?.status === 403 || error.response?.status === 453) {
2129
- if (onModuleForbidden) onModuleForbidden(error, queryKeys, options.shouldRedirect || false);
2130
- return false;
2131
- }
2132
- if (error.response?.status === 401) {
2133
- if (onNotAuthorized) onNotAuthorized(error, queryKeys, options.shouldRedirect || false);
2134
- return false;
2135
- }
2136
- if (failureCount < 3) return true;
2137
- return false;
2138
- },
2139
- ...options,
2140
- queryKey: [...queryKeys, ...GetBaseSingleQueryKeys(locale)],
2141
- queryFn: () => queryFn({
2142
- adminApiParams: {
2143
- apiUrl,
2144
- organizationId,
2145
- getToken,
2146
- getExecuteAs,
2147
- locale
2148
- }
2149
- })
2150
- });
2151
- };
2152
-
2153
2122
  // src/utilities/CacheIndividualQueries.ts
2154
- var CacheIndividualQueries = (page, queryClient, queryKeyFn, locale = "en", itemMap) => {
2123
+ var CacheIndividualQueries = (page, queryClient, queryKeyFn, itemMap) => {
2155
2124
  page.data.forEach((item) => {
2156
2125
  item = itemMap ? itemMap(item) : item;
2157
2126
  if (item.id) {
@@ -2160,55 +2129,32 @@ var CacheIndividualQueries = (page, queryClient, queryKeyFn, locale = "en", item
2160
2129
  message: `Cached From: ${page.message}`,
2161
2130
  data: item
2162
2131
  };
2163
- queryClient.setQueryData(
2164
- [...queryKeyFn(item.id), ...GetBaseSingleQueryKeys(locale)],
2165
- SudoResponse,
2166
- {
2167
- updatedAt: Date.now() - 1e3 * 60
2168
- }
2169
- );
2132
+ queryClient.setQueryData([...queryKeyFn(item.id)], SudoResponse, {
2133
+ updatedAt: Date.now() - 1e3 * 60
2134
+ });
2170
2135
  if (item.slug) {
2171
- queryClient.setQueryData(
2172
- [...queryKeyFn(item.slug), ...GetBaseSingleQueryKeys(locale)],
2173
- SudoResponse,
2174
- {
2175
- updatedAt: Date.now() - 1e3 * 60
2176
- }
2177
- );
2136
+ queryClient.setQueryData([...queryKeyFn(item.slug)], SudoResponse, {
2137
+ updatedAt: Date.now() - 1e3 * 60
2138
+ });
2178
2139
  }
2179
2140
  if (item.username) {
2180
- queryClient.setQueryData(
2181
- [...queryKeyFn(item.username), ...GetBaseSingleQueryKeys(locale)],
2182
- SudoResponse,
2183
- {
2184
- updatedAt: Date.now() - 1e3 * 60
2185
- }
2186
- );
2141
+ queryClient.setQueryData([...queryKeyFn(item.username)], SudoResponse, {
2142
+ updatedAt: Date.now() - 1e3 * 60
2143
+ });
2187
2144
  }
2188
2145
  if (item.code) {
2189
- queryClient.setQueryData(
2190
- [...queryKeyFn(item.code), ...GetBaseSingleQueryKeys(locale)],
2191
- SudoResponse,
2192
- {
2193
- updatedAt: Date.now() - 1e3 * 60
2194
- }
2195
- );
2146
+ queryClient.setQueryData([...queryKeyFn(item.code)], SudoResponse, {
2147
+ updatedAt: Date.now() - 1e3 * 60
2148
+ });
2196
2149
  }
2197
2150
  if (item.name) {
2198
- queryClient.setQueryData(
2199
- [...queryKeyFn(item.name), ...GetBaseSingleQueryKeys(locale)],
2200
- SudoResponse,
2201
- {
2202
- updatedAt: Date.now() - 1e3 * 60
2203
- }
2204
- );
2151
+ queryClient.setQueryData([...queryKeyFn(item.name)], SudoResponse, {
2152
+ updatedAt: Date.now() - 1e3 * 60
2153
+ });
2205
2154
  }
2206
2155
  if (item.alternateId) {
2207
2156
  queryClient.setQueryData(
2208
- [
2209
- ...queryKeyFn(item.alternateId.toString()),
2210
- ...GetBaseSingleQueryKeys(locale)
2211
- ],
2157
+ [...queryKeyFn(item.alternateId.toString())],
2212
2158
  SudoResponse,
2213
2159
  {
2214
2160
  updatedAt: Date.now() - 1e3 * 60
@@ -2281,17 +2227,60 @@ var GetAdminAPI = async (params) => {
2281
2227
  baseURL: params.apiUrl,
2282
2228
  headers: {
2283
2229
  organization: params.organizationId,
2284
- // locale: params.locale,
2285
2230
  authorization: token,
2286
2231
  executeAs
2287
2232
  }
2288
2233
  });
2289
2234
  };
2290
2235
 
2236
+ // src/queries/useConnectedSingleQuery.ts
2237
+ var import_react_query2 = require("@tanstack/react-query");
2238
+ var useConnectedSingleQuery = (queryKeys, queryFn, options = {}) => {
2239
+ const {
2240
+ onModuleForbidden,
2241
+ onNotAuthorized,
2242
+ onNotFound,
2243
+ apiUrl,
2244
+ organizationId,
2245
+ getToken,
2246
+ getExecuteAs
2247
+ } = useConnectedXM();
2248
+ return (0, import_react_query2.useQuery)({
2249
+ staleTime: 60 * 1e3,
2250
+ // 60 Seconds
2251
+ retry: (failureCount, error) => {
2252
+ if (error.response?.status === 404) {
2253
+ if (onNotFound) onNotFound(error, queryKeys, options.shouldRedirect || false);
2254
+ return false;
2255
+ }
2256
+ if (error.response?.status === 403 || error.response?.status === 453) {
2257
+ if (onModuleForbidden) onModuleForbidden(error, queryKeys, options.shouldRedirect || false);
2258
+ return false;
2259
+ }
2260
+ if (error.response?.status === 401) {
2261
+ if (onNotAuthorized) onNotAuthorized(error, queryKeys, options.shouldRedirect || false);
2262
+ return false;
2263
+ }
2264
+ if (failureCount < 3) return true;
2265
+ return false;
2266
+ },
2267
+ ...options,
2268
+ queryKey: [...queryKeys],
2269
+ queryFn: () => queryFn({
2270
+ adminApiParams: {
2271
+ apiUrl,
2272
+ organizationId,
2273
+ getToken,
2274
+ getExecuteAs
2275
+ }
2276
+ })
2277
+ });
2278
+ };
2279
+
2291
2280
  // src/queries/useConnectedInfiniteQuery.ts
2292
2281
  var import_react_query3 = require("@tanstack/react-query");
2293
- var GetBaseInfiniteQueryKeys = (locale, search = "") => {
2294
- return [locale, search];
2282
+ var GetBaseInfiniteQueryKeys = (search = "") => {
2283
+ return [search];
2295
2284
  };
2296
2285
  var setFirstPageData = (response) => {
2297
2286
  return {
@@ -2304,7 +2293,6 @@ var useConnectedInfiniteQuery = (queryKeys, queryFn, params = {}, options = {
2304
2293
  }) => {
2305
2294
  if (typeof params.pageSize === "undefined") params.pageSize = 25;
2306
2295
  const {
2307
- locale,
2308
2296
  onModuleForbidden,
2309
2297
  onNotAuthorized,
2310
2298
  onNotFound,
@@ -2325,32 +2313,37 @@ var useConnectedInfiniteQuery = (queryKeys, queryFn, params = {}, options = {
2325
2313
  // 60 Seconds
2326
2314
  retry: (failureCount, error) => {
2327
2315
  if (error.response?.status === 404) {
2328
- if (onNotFound) onNotFound(error, queryKeys, options.shouldRedirect || false);
2316
+ if (onNotFound)
2317
+ onNotFound(error, queryKeys, options.shouldRedirect || false);
2329
2318
  return false;
2330
2319
  }
2331
2320
  if (error.response?.status === 403 || error.response?.status === 453) {
2332
- if (onModuleForbidden) onModuleForbidden(error, queryKeys, options.shouldRedirect || false);
2321
+ if (onModuleForbidden)
2322
+ onModuleForbidden(error, queryKeys, options.shouldRedirect || false);
2333
2323
  return false;
2334
2324
  }
2335
2325
  if (error.response?.status === 401) {
2336
- if (onNotAuthorized) onNotAuthorized(error, queryKeys, options.shouldRedirect || false);
2326
+ if (onNotAuthorized)
2327
+ onNotAuthorized(error, queryKeys, options.shouldRedirect || false);
2337
2328
  return false;
2338
2329
  }
2339
2330
  if (failureCount < 3) return true;
2340
2331
  return false;
2341
2332
  },
2342
2333
  ...options,
2343
- queryKey: [
2344
- ...queryKeys,
2345
- ...GetBaseInfiniteQueryKeys(params?.locale || locale, params?.search)
2346
- ],
2347
- queryFn: ({ pageParam }) => queryFn({ ...params, pageSize: params.pageSize || 25, locale: params.locale || locale, pageParam, queryClient, adminApiParams: {
2348
- apiUrl,
2349
- getToken,
2350
- organizationId,
2351
- getExecuteAs,
2352
- locale
2353
- } }),
2334
+ queryKey: [...queryKeys, ...GetBaseInfiniteQueryKeys(params?.search)],
2335
+ queryFn: ({ pageParam }) => queryFn({
2336
+ ...params,
2337
+ pageSize: params.pageSize || 25,
2338
+ pageParam,
2339
+ queryClient,
2340
+ adminApiParams: {
2341
+ apiUrl,
2342
+ getToken,
2343
+ organizationId,
2344
+ getExecuteAs
2345
+ }
2346
+ }),
2354
2347
  initialPageParam: 1,
2355
2348
  getNextPageParam
2356
2349
  });
@@ -5878,7 +5871,16 @@ var useGetEventQuestion = (eventId = "", questionId = "", options = {}) => {
5878
5871
  // src/queries/events/questions/useGetEventQuestionChoices.ts
5879
5872
  var EVENT_QUESTION_CHOICES_QUERY_KEY = (eventId, questionId) => [...EVENT_QUESTION_QUERY_KEY(eventId, questionId), "CHOICES"];
5880
5873
  var SET_EVENT_QUESTION_CHOICES_QUERY_DATA = (client, keyParams, response) => {
5881
- client.setQueryData(EVENT_QUESTION_CHOICES_QUERY_KEY(...keyParams), response);
5874
+ client.setQueryData(
5875
+ [
5876
+ ...EVENT_QUESTION_CHOICES_QUERY_KEY(...keyParams),
5877
+ ...GetBaseInfiniteQueryKeys("")
5878
+ ],
5879
+ {
5880
+ pages: [response],
5881
+ pageParams: [null]
5882
+ }
5883
+ );
5882
5884
  };
5883
5885
  var GetEventQuestionChoices = async ({
5884
5886
  eventId,
@@ -6797,6 +6799,50 @@ var useGetEventRegistrationPurchaseResponse = (eventId = "", registrationId = ""
6797
6799
  );
6798
6800
  };
6799
6801
 
6802
+ // src/queries/events/registrations/purchases/useGetEventRegistrationPurchaseSections.ts
6803
+ var EVENT_REGISTRATION_PURCHASE_SECTIONS_QUERY_KEY = (eventId, registrationId, purchaseId) => [
6804
+ ...EVENT_REGISTRATION_PURCHASE_QUERY_KEY(eventId, registrationId, purchaseId),
6805
+ "SECTIONS"
6806
+ ];
6807
+ var SET_EVENT_REGISTRATION_PURCHASE_SECTIONS_QUERY_DATA = (client, keyParams, response) => {
6808
+ client.setQueryData(
6809
+ EVENT_REGISTRATION_PURCHASE_SECTIONS_QUERY_KEY(...keyParams),
6810
+ response
6811
+ );
6812
+ };
6813
+ var GetEventRegistrationPurchaseSections = async ({
6814
+ eventId,
6815
+ registrationId,
6816
+ purchaseId,
6817
+ adminApiParams
6818
+ }) => {
6819
+ const connectedXM = await GetAdminAPI(adminApiParams);
6820
+ const { data } = await connectedXM.get(
6821
+ `/events/${eventId}/registrations/${registrationId}/purchases/${purchaseId}/sections`
6822
+ );
6823
+ return data;
6824
+ };
6825
+ var useGetEventRegistrationPurchaseSections = (eventId = "", registrationId = "", purchaseId = "", params = {}, options = {}) => {
6826
+ return useConnectedInfiniteQuery(
6827
+ EVENT_REGISTRATION_PURCHASE_SECTIONS_QUERY_KEY(
6828
+ eventId,
6829
+ registrationId,
6830
+ purchaseId
6831
+ ),
6832
+ (params2) => GetEventRegistrationPurchaseSections({
6833
+ ...params2,
6834
+ eventId,
6835
+ registrationId,
6836
+ purchaseId
6837
+ }),
6838
+ params,
6839
+ {
6840
+ ...options,
6841
+ enabled: !!eventId && !!registrationId && !!purchaseId
6842
+ }
6843
+ );
6844
+ };
6845
+
6800
6846
  // src/queries/events/registrations/purchases/useGetEventRegistrationPurchaseTransferLogs.ts
6801
6847
  var EVENT_REGISTRATION_PURCHASE_TRANSFER_LOGS_QUERY_KEY = (eventId, registrationId, purchaseId) => [
6802
6848
  ...EVENT_REGISTRATION_PURCHASE_QUERY_KEY(eventId, registrationId, purchaseId),
@@ -6917,50 +6963,6 @@ var useGetEventRegistrationPurchaseResponseChanges = (eventId = "", registration
6917
6963
  );
6918
6964
  };
6919
6965
 
6920
- // src/queries/events/registrations/purchases/useGetEventRegistrationPurchaseSections.ts
6921
- var EVENT_REGISTRATION_PURCHASE_SECTIONS_QUERY_KEY = (eventId, registrationId, purchaseId) => [
6922
- ...EVENT_REGISTRATION_PURCHASE_QUERY_KEY(eventId, registrationId, purchaseId),
6923
- "SECTIONS"
6924
- ];
6925
- var SET_EVENT_REGISTRATION_PURCHASE_SECTIONS_QUERY_DATA = (client, keyParams, response) => {
6926
- client.setQueryData(
6927
- EVENT_REGISTRATION_PURCHASE_SECTIONS_QUERY_KEY(...keyParams),
6928
- response
6929
- );
6930
- };
6931
- var GetEventRegistrationPurchaseSections = async ({
6932
- eventId,
6933
- registrationId,
6934
- purchaseId,
6935
- adminApiParams
6936
- }) => {
6937
- const connectedXM = await GetAdminAPI(adminApiParams);
6938
- const { data } = await connectedXM.get(
6939
- `/events/${eventId}/registrations/${registrationId}/purchases/${purchaseId}/sections`
6940
- );
6941
- return data;
6942
- };
6943
- var useGetEventRegistrationPurchaseSections = (eventId = "", registrationId = "", purchaseId = "", params = {}, options = {}) => {
6944
- return useConnectedInfiniteQuery(
6945
- EVENT_REGISTRATION_PURCHASE_SECTIONS_QUERY_KEY(
6946
- eventId,
6947
- registrationId,
6948
- purchaseId
6949
- ),
6950
- (params2) => GetEventRegistrationPurchaseSections({
6951
- ...params2,
6952
- eventId,
6953
- registrationId,
6954
- purchaseId
6955
- }),
6956
- params,
6957
- {
6958
- ...options,
6959
- enabled: !!eventId && !!registrationId && !!purchaseId
6960
- }
6961
- );
6962
- };
6963
-
6964
6966
  // src/queries/events/registrations/useGetEventRegistrationByAccountId.ts
6965
6967
  var EVENT_ACCOUNT_REGISTRATION_QUERY_KEY = (eventId, accountId) => [...EVENT_QUERY_KEY(eventId), "REGISTRATION", accountId];
6966
6968
  var SET_EVENT_ACCOUNT_REGISTRATION_QUERY_DATA = (client, keyParams, response) => {
@@ -7777,8 +7779,14 @@ var useGetEventSectionAddOns = (eventId = "", sectionId = "", params = {}, optio
7777
7779
  var EVENT_SECTION_QUESTIONS_QUERY_KEY = (eventId, sectionId) => [...EVENT_SECTION_QUERY_KEY(eventId, sectionId), "QUESTIONS"];
7778
7780
  var SET_EVENT_SECTION_QUESTIONS_QUERY_DATA = (client, keyParams, response) => {
7779
7781
  client.setQueryData(
7780
- EVENT_SECTION_QUESTIONS_QUERY_KEY(...keyParams),
7781
- response
7782
+ [
7783
+ ...EVENT_SECTION_QUESTIONS_QUERY_KEY(...keyParams),
7784
+ ...GetBaseInfiniteQueryKeys("")
7785
+ ],
7786
+ {
7787
+ pages: [response],
7788
+ pageParams: [null]
7789
+ }
7782
7790
  );
7783
7791
  };
7784
7792
  var GetEventSectionQuestions = async ({
@@ -9207,6 +9215,75 @@ var useGetEventActivities = (eventId = "", params = {}, options = {}) => {
9207
9215
  );
9208
9216
  };
9209
9217
 
9218
+ // src/queries/events/useGetEventPurchases.ts
9219
+ var EVENT_PURCHASES_QUERY_KEY = (eventId) => {
9220
+ return [...EVENT_QUERY_KEY(eventId), "PURCHASES"];
9221
+ };
9222
+ var GetEventPurchases = async ({
9223
+ eventId,
9224
+ pageParam,
9225
+ pageSize,
9226
+ orderBy,
9227
+ search,
9228
+ adminApiParams
9229
+ }) => {
9230
+ const adminApi = await GetAdminAPI(adminApiParams);
9231
+ const { data } = await adminApi.get(`/events/${eventId}/purchases`, {
9232
+ params: {
9233
+ page: pageParam || void 0,
9234
+ pageSize: pageSize || void 0,
9235
+ orderBy: orderBy || void 0,
9236
+ search: search || void 0
9237
+ }
9238
+ });
9239
+ return data;
9240
+ };
9241
+ var useGetEventPurchases = (eventId = "", params = {}, options = {}) => {
9242
+ return useConnectedInfiniteQuery(
9243
+ EVENT_PURCHASES_QUERY_KEY(eventId),
9244
+ (params2) => GetEventPurchases({
9245
+ ...params2,
9246
+ eventId
9247
+ }),
9248
+ params,
9249
+ {
9250
+ ...options,
9251
+ enabled: !!eventId && (options.enabled ?? true)
9252
+ }
9253
+ );
9254
+ };
9255
+
9256
+ // src/queries/events/useGetEventPurchase.ts
9257
+ var EVENT_PURCHASE_QUERY_KEY = (eventId, purchaseId) => [...EVENT_PURCHASES_QUERY_KEY(eventId), purchaseId];
9258
+ var SET_EVENT_PURCHASE_QUERY_DATA = (client, keyParams, response) => {
9259
+ client.setQueryData(EVENT_PURCHASE_QUERY_KEY(...keyParams), response);
9260
+ };
9261
+ var GetEventPurchase = async ({
9262
+ eventId,
9263
+ purchaseId,
9264
+ adminApiParams
9265
+ }) => {
9266
+ const adminApi = await GetAdminAPI(adminApiParams);
9267
+ const { data } = await adminApi.get(
9268
+ `/events/${eventId}/purchases/${purchaseId}`
9269
+ );
9270
+ return data;
9271
+ };
9272
+ var useGetEventPurchase = (eventId = "", purchaseId = "", options = {}) => {
9273
+ return useConnectedSingleQuery(
9274
+ EVENT_PURCHASE_QUERY_KEY(eventId, purchaseId),
9275
+ (params) => GetEventPurchase({
9276
+ eventId,
9277
+ purchaseId,
9278
+ ...params
9279
+ }),
9280
+ {
9281
+ ...options,
9282
+ enabled: !!eventId && !!purchaseId && (options.enabled ?? true)
9283
+ }
9284
+ );
9285
+ };
9286
+
9210
9287
  // src/queries/events/useGetFeaturedEvents.ts
9211
9288
  var FEATURED_EVENTS_QUERY_KEY = () => [
9212
9289
  ...EVENTS_QUERY_KEY(),
@@ -9277,6 +9354,71 @@ var useGetUnapprovedEvents = (params = {}, options = {}) => {
9277
9354
  );
9278
9355
  };
9279
9356
 
9357
+ // src/queries/files/useGetFiles.ts
9358
+ var FILES_QUERY_KEY = (source) => {
9359
+ const keys = ["FILES"];
9360
+ if (source) keys.push(source);
9361
+ return keys;
9362
+ };
9363
+ var SET_FILES_QUERY_DATA = (client, keyParams, response) => {
9364
+ client.setQueryData(FILES_QUERY_KEY(...keyParams), response);
9365
+ };
9366
+ var GetFiles = async ({
9367
+ pageParam,
9368
+ pageSize,
9369
+ orderBy,
9370
+ search,
9371
+ source,
9372
+ adminApiParams
9373
+ }) => {
9374
+ const adminApi = await GetAdminAPI(adminApiParams);
9375
+ const { data } = await adminApi.get(`/files`, {
9376
+ params: {
9377
+ page: pageParam || void 0,
9378
+ pageSize: pageSize || void 0,
9379
+ orderBy: orderBy || void 0,
9380
+ search: search || void 0,
9381
+ source: source || void 0
9382
+ }
9383
+ });
9384
+ return data;
9385
+ };
9386
+ var useGetFiles = (source, params = {}, options = {}) => {
9387
+ return useConnectedInfiniteQuery(
9388
+ FILES_QUERY_KEY(source || "all"),
9389
+ (params2) => GetFiles({ ...params2, source }),
9390
+ params,
9391
+ options
9392
+ );
9393
+ };
9394
+
9395
+ // src/queries/files/useGetFile.ts
9396
+ var FILE_QUERY_KEY = (fileId) => [
9397
+ ...FILES_QUERY_KEY(),
9398
+ fileId
9399
+ ];
9400
+ var SET_FILE_QUERY_DATA = (client, keyParams, response) => {
9401
+ client.setQueryData(FILE_QUERY_KEY(...keyParams), response);
9402
+ };
9403
+ var GetFile = async ({
9404
+ fileId,
9405
+ adminApiParams
9406
+ }) => {
9407
+ const adminApi = await GetAdminAPI(adminApiParams);
9408
+ const { data } = await adminApi.get(`/files/${fileId}`);
9409
+ return data;
9410
+ };
9411
+ var useGetFile = (fileId = "", options = {}) => {
9412
+ return useConnectedSingleQuery(
9413
+ FILE_QUERY_KEY(fileId),
9414
+ (params) => GetFile({ fileId, ...params }),
9415
+ {
9416
+ ...options,
9417
+ enabled: !!fileId && (options?.enabled ?? true)
9418
+ }
9419
+ );
9420
+ };
9421
+
9280
9422
  // src/queries/groups/useGetGroups.ts
9281
9423
  var GROUPS_QUERY_KEY = (access, featured) => {
9282
9424
  const keys = ["GROUPS"];
@@ -12127,86 +12269,21 @@ var useGetTierSubscribers = (tierId = "", params = {}, options = {}) => {
12127
12269
  params,
12128
12270
  {
12129
12271
  ...options,
12130
- enabled: !!tierId && (options.enabled ?? true)
12131
- }
12132
- );
12133
- };
12134
-
12135
- // src/queries/videos/useGetVideos.ts
12136
- var VIDEOS_QUERY_KEY = (source) => {
12137
- const keys = ["VIDEOS"];
12138
- if (source) keys.push(source);
12139
- return keys;
12140
- };
12141
- var SET_VIDEOS_QUERY_DATA = (client, keyParams, response) => {
12142
- client.setQueryData(VIDEOS_QUERY_KEY(...keyParams), response);
12143
- };
12144
- var GetVideos = async ({
12145
- pageParam,
12146
- pageSize,
12147
- orderBy,
12148
- search,
12149
- source,
12150
- adminApiParams
12151
- }) => {
12152
- const adminApi = await GetAdminAPI(adminApiParams);
12153
- const { data } = await adminApi.get(`/videos`, {
12154
- params: {
12155
- page: pageParam || void 0,
12156
- pageSize: pageSize || void 0,
12157
- orderBy: orderBy || void 0,
12158
- search: search || void 0,
12159
- source: source || void 0
12160
- }
12161
- });
12162
- return data;
12163
- };
12164
- var useGetVideos = (source, params = {}, options = {}) => {
12165
- return useConnectedInfiniteQuery(
12166
- VIDEOS_QUERY_KEY(source || "all"),
12167
- (params2) => GetVideos({ ...params2, source }),
12168
- params,
12169
- options
12170
- );
12171
- };
12172
-
12173
- // src/queries/videos/useGetVideo.ts
12174
- var VIDEO_QUERY_KEY = (videoId) => [
12175
- ...VIDEOS_QUERY_KEY(""),
12176
- videoId
12177
- ];
12178
- var SET_VIDEO_QUERY_DATA = (client, keyParams, response) => {
12179
- client.setQueryData(VIDEO_QUERY_KEY(...keyParams), response);
12180
- };
12181
- var GetVideo = async ({
12182
- videoId,
12183
- adminApiParams
12184
- }) => {
12185
- const adminApi = await GetAdminAPI(adminApiParams);
12186
- const { data } = await adminApi.get(`/videos/${videoId}`);
12187
- return data;
12188
- };
12189
- var useGetVideo = (videoId = "", options = {}) => {
12190
- return useConnectedSingleQuery(
12191
- VIDEO_QUERY_KEY(videoId),
12192
- (params) => GetVideo({ videoId, ...params }),
12193
- {
12194
- ...options,
12195
- enabled: !!videoId && (options?.enabled ?? true)
12272
+ enabled: !!tierId && (options.enabled ?? true)
12196
12273
  }
12197
12274
  );
12198
12275
  };
12199
12276
 
12200
- // src/queries/files/useGetFiles.ts
12201
- var FILES_QUERY_KEY = (source) => {
12202
- const keys = ["FILES"];
12277
+ // src/queries/videos/useGetVideos.ts
12278
+ var VIDEOS_QUERY_KEY = (source) => {
12279
+ const keys = ["VIDEOS"];
12203
12280
  if (source) keys.push(source);
12204
12281
  return keys;
12205
12282
  };
12206
- var SET_FILES_QUERY_DATA = (client, keyParams, response) => {
12207
- client.setQueryData(FILES_QUERY_KEY(...keyParams), response);
12283
+ var SET_VIDEOS_QUERY_DATA = (client, keyParams, response) => {
12284
+ client.setQueryData(VIDEOS_QUERY_KEY(...keyParams), response);
12208
12285
  };
12209
- var GetFiles = async ({
12286
+ var GetVideos = async ({
12210
12287
  pageParam,
12211
12288
  pageSize,
12212
12289
  orderBy,
@@ -12215,7 +12292,7 @@ var GetFiles = async ({
12215
12292
  adminApiParams
12216
12293
  }) => {
12217
12294
  const adminApi = await GetAdminAPI(adminApiParams);
12218
- const { data } = await adminApi.get(`/files`, {
12295
+ const { data } = await adminApi.get(`/videos`, {
12219
12296
  params: {
12220
12297
  page: pageParam || void 0,
12221
12298
  pageSize: pageSize || void 0,
@@ -12226,38 +12303,38 @@ var GetFiles = async ({
12226
12303
  });
12227
12304
  return data;
12228
12305
  };
12229
- var useGetFiles = (source, params = {}, options = {}) => {
12306
+ var useGetVideos = (source, params = {}, options = {}) => {
12230
12307
  return useConnectedInfiniteQuery(
12231
- FILES_QUERY_KEY(source || "all"),
12232
- (params2) => GetFiles({ ...params2, source }),
12308
+ VIDEOS_QUERY_KEY(source || "all"),
12309
+ (params2) => GetVideos({ ...params2, source }),
12233
12310
  params,
12234
12311
  options
12235
12312
  );
12236
12313
  };
12237
12314
 
12238
- // src/queries/files/useGetFile.ts
12239
- var FILE_QUERY_KEY = (fileId) => [
12240
- ...FILES_QUERY_KEY(),
12241
- fileId
12315
+ // src/queries/videos/useGetVideo.ts
12316
+ var VIDEO_QUERY_KEY = (videoId) => [
12317
+ ...VIDEOS_QUERY_KEY(""),
12318
+ videoId
12242
12319
  ];
12243
- var SET_FILE_QUERY_DATA = (client, keyParams, response) => {
12244
- client.setQueryData(FILE_QUERY_KEY(...keyParams), response);
12320
+ var SET_VIDEO_QUERY_DATA = (client, keyParams, response) => {
12321
+ client.setQueryData(VIDEO_QUERY_KEY(...keyParams), response);
12245
12322
  };
12246
- var GetFile = async ({
12247
- fileId,
12323
+ var GetVideo = async ({
12324
+ videoId,
12248
12325
  adminApiParams
12249
12326
  }) => {
12250
12327
  const adminApi = await GetAdminAPI(adminApiParams);
12251
- const { data } = await adminApi.get(`/files/${fileId}`);
12328
+ const { data } = await adminApi.get(`/videos/${videoId}`);
12252
12329
  return data;
12253
12330
  };
12254
- var useGetFile = (fileId = "", options = {}) => {
12331
+ var useGetVideo = (videoId = "", options = {}) => {
12255
12332
  return useConnectedSingleQuery(
12256
- FILE_QUERY_KEY(fileId),
12257
- (params) => GetFile({ fileId, ...params }),
12333
+ VIDEO_QUERY_KEY(videoId),
12334
+ (params) => GetVideo({ videoId, ...params }),
12258
12335
  {
12259
12336
  ...options,
12260
- enabled: !!fileId && (options?.enabled ?? true)
12337
+ enabled: !!videoId && (options?.enabled ?? true)
12261
12338
  }
12262
12339
  );
12263
12340
  };
@@ -12265,14 +12342,7 @@ var useGetFile = (fileId = "", options = {}) => {
12265
12342
  // src/mutations/useConnectedMutation.ts
12266
12343
  var import_react_query4 = require("@tanstack/react-query");
12267
12344
  var useConnectedMutation = (mutation, options) => {
12268
- const {
12269
- locale,
12270
- apiUrl,
12271
- getToken,
12272
- organizationId,
12273
- getExecuteAs,
12274
- onMutationError
12275
- } = useConnectedXM();
12345
+ const { apiUrl, getToken, organizationId, getExecuteAs, onMutationError } = useConnectedXM();
12276
12346
  const queryClient = (0, import_react_query4.useQueryClient)();
12277
12347
  return (0, import_react_query4.useMutation)({
12278
12348
  mutationFn: (data) => mutation({
@@ -12281,8 +12351,7 @@ var useConnectedMutation = (mutation, options) => {
12281
12351
  apiUrl,
12282
12352
  getToken,
12283
12353
  organizationId,
12284
- getExecuteAs,
12285
- locale
12354
+ getExecuteAs
12286
12355
  },
12287
12356
  ...data
12288
12357
  }),
@@ -13621,6 +13690,31 @@ var useCreateEventActivation = (options = {}) => {
13621
13690
  return useConnectedMutation(CreateEventActivation, options);
13622
13691
  };
13623
13692
 
13693
+ // src/mutations/event/activations/useCreateEventActivationCompletion.ts
13694
+ var CreateEventActivationCompletion = async ({
13695
+ eventId,
13696
+ activationId,
13697
+ completion,
13698
+ adminApiParams,
13699
+ queryClient
13700
+ }) => {
13701
+ const connectedXM = await GetAdminAPI(adminApiParams);
13702
+ const { data } = await connectedXM.post(
13703
+ `/events/${eventId}/activations/${activationId}/completions`,
13704
+ completion
13705
+ );
13706
+ if (queryClient && data.status === "ok") {
13707
+ queryClient.invalidateQueries({
13708
+ queryKey: EVENT_ACTIVATIONS_QUERY_KEY(eventId)
13709
+ });
13710
+ SET_EVENT_ACTIVATION_QUERY_DATA(queryClient, [eventId, data.data.id], data);
13711
+ }
13712
+ return data;
13713
+ };
13714
+ var useCreateEventActivationCompletion = (options = {}) => {
13715
+ return useConnectedMutation(CreateEventActivationCompletion, options);
13716
+ };
13717
+
13624
13718
  // src/mutations/event/activations/useDeleteEventActivation.ts
13625
13719
  var DeleteEventActivation = async ({
13626
13720
  eventId,
@@ -13646,6 +13740,32 @@ var useDeleteEventActivation = (options = {}) => {
13646
13740
  return useConnectedMutation(DeleteEventActivation, options);
13647
13741
  };
13648
13742
 
13743
+ // src/mutations/event/activations/useDeleteEventActivationCompletion.ts
13744
+ var DeleteEventActivationCompletion = async ({
13745
+ eventId,
13746
+ activationId,
13747
+ completionId,
13748
+ adminApiParams,
13749
+ queryClient
13750
+ }) => {
13751
+ const connectedXM = await GetAdminAPI(adminApiParams);
13752
+ const { data } = await connectedXM.delete(
13753
+ `/events/${eventId}/activations/${activationId}/completions/${completionId}`
13754
+ );
13755
+ if (queryClient && data.status === "ok") {
13756
+ queryClient.invalidateQueries({
13757
+ queryKey: EVENT_ACTIVATIONS_QUERY_KEY(eventId)
13758
+ });
13759
+ queryClient.removeQueries({
13760
+ queryKey: EVENT_ACTIVATION_QUERY_KEY(eventId, activationId)
13761
+ });
13762
+ }
13763
+ return data;
13764
+ };
13765
+ var useDeleteEventActivationCompletion = (options = {}) => {
13766
+ return useConnectedMutation(DeleteEventActivationCompletion, options);
13767
+ };
13768
+
13649
13769
  // src/mutations/event/activations/useUpdateEventActivation.ts
13650
13770
  var UpdateEventActivation = async ({
13651
13771
  eventId,
@@ -13671,6 +13791,32 @@ var useUpdateEventActivation = (options = {}) => {
13671
13791
  return useConnectedMutation(UpdateEventActivation, options);
13672
13792
  };
13673
13793
 
13794
+ // src/mutations/event/activations/useUpdateEventActivationCompletion.ts
13795
+ var UpdateEventActivationCompletion = async ({
13796
+ eventId,
13797
+ activationId,
13798
+ completionId,
13799
+ completion,
13800
+ adminApiParams,
13801
+ queryClient
13802
+ }) => {
13803
+ const connectedXM = await GetAdminAPI(adminApiParams);
13804
+ const { data } = await connectedXM.put(
13805
+ `/events/${eventId}/activations/${activationId}/completions/${completionId}`,
13806
+ completion
13807
+ );
13808
+ if (queryClient && data.status === "ok") {
13809
+ queryClient.invalidateQueries({
13810
+ queryKey: EVENT_ACTIVATIONS_QUERY_KEY(eventId)
13811
+ });
13812
+ SET_EVENT_ACTIVATION_QUERY_DATA(queryClient, [eventId, data.data.id], data);
13813
+ }
13814
+ return data;
13815
+ };
13816
+ var useUpdateEventActivationCompletion = (options = {}) => {
13817
+ return useConnectedMutation(UpdateEventActivationCompletion, options);
13818
+ };
13819
+
13674
13820
  // src/mutations/event/addOns/translations/useCreateEventAddOnTranslation.ts
13675
13821
  var CreateEventAddOnTranslation = async ({
13676
13822
  eventId,
@@ -15324,6 +15470,32 @@ var useRemoveEventQuestionChoiceSubQuestion = (options = {}) => {
15324
15470
  return useConnectedMutation(RemoveEventQuestionChoiceSubQuestion, options);
15325
15471
  };
15326
15472
 
15473
+ // src/mutations/event/questions/useReorderEventQuestionChoices.ts
15474
+ var ReorderEventQuestionChoices = async ({
15475
+ eventId,
15476
+ questionId,
15477
+ choicesIds,
15478
+ adminApiParams,
15479
+ queryClient
15480
+ }) => {
15481
+ if (!questionId) throw new Error("Question ID is undefined");
15482
+ const connectedXM = await GetAdminAPI(adminApiParams);
15483
+ const { data } = await connectedXM.put(`/events/${eventId}/questions/${questionId}/choices/reorder`, {
15484
+ choicesIds
15485
+ });
15486
+ if (queryClient && data.status === "ok") {
15487
+ SET_EVENT_QUESTION_CHOICES_QUERY_DATA(
15488
+ queryClient,
15489
+ [eventId, questionId],
15490
+ data
15491
+ );
15492
+ }
15493
+ return data;
15494
+ };
15495
+ var useReorderEventQuestionChoices = (options = {}) => {
15496
+ return useConnectedMutation(ReorderEventQuestionChoices, options);
15497
+ };
15498
+
15327
15499
  // src/mutations/event/questions/useUpdateEventQuestion.ts
15328
15500
  var UpdateEventQuestion = async ({
15329
15501
  eventId,
@@ -15684,6 +15856,39 @@ var useRemoveEventRegistrationPurchaseAddOn = (options = {}) => {
15684
15856
  return useConnectedMutation(RemoveEventRegistrationPurchaseAddOn, options);
15685
15857
  };
15686
15858
 
15859
+ // src/mutations/event/registrations/purchases/useSelectEventRegistrationPurchaseReservationSectionLocation.ts
15860
+ var SelectEventRegistrationPurchaseReservation = async ({
15861
+ eventId,
15862
+ registrationId,
15863
+ purchaseId,
15864
+ locationId,
15865
+ reservation,
15866
+ adminApiParams,
15867
+ queryClient
15868
+ }) => {
15869
+ const connectedXM = await GetAdminAPI(adminApiParams);
15870
+ const { data } = await connectedXM.post(
15871
+ `/events/${eventId}/registrations/${registrationId}/purchases/${purchaseId}/reservations/${locationId}`,
15872
+ reservation
15873
+ );
15874
+ if (queryClient && data.status === "ok") {
15875
+ queryClient.invalidateQueries({
15876
+ queryKey: EVENT_RESERVATION_SECTIONS_QUERY_KEY(eventId)
15877
+ });
15878
+ queryClient.invalidateQueries({
15879
+ queryKey: EVENT_REGISTRATION_PURCHASE_QUERY_KEY(
15880
+ eventId,
15881
+ registrationId,
15882
+ purchaseId
15883
+ )
15884
+ });
15885
+ }
15886
+ return data;
15887
+ };
15888
+ var useSelectEventRegistrationPurchaseReservation = (options = {}) => {
15889
+ return useConnectedMutation(SelectEventRegistrationPurchaseReservation, options);
15890
+ };
15891
+
15687
15892
  // src/mutations/event/registrations/purchases/useTransferEventRegistrationPurchase.ts
15688
15893
  var TransferEventRegistrationPurchase = async ({
15689
15894
  eventId,
@@ -15742,6 +15947,7 @@ var UpdateEventRegistrationPurchase = async ({
15742
15947
  [eventId, registrationId, purchaseId],
15743
15948
  data
15744
15949
  );
15950
+ SET_EVENT_PURCHASE_QUERY_DATA(queryClient, [eventId, purchaseId], data);
15745
15951
  }
15746
15952
  return data;
15747
15953
  };
@@ -16814,6 +17020,32 @@ var useRemoveEventSectionTier = (options = {}) => {
16814
17020
  return useConnectedMutation(RemoveEventSectionTier, options);
16815
17021
  };
16816
17022
 
17023
+ // src/mutations/event/sections/useReorderEventSectionQuestions.ts
17024
+ var ReorderEventSectionQuestions = async ({
17025
+ eventId,
17026
+ sectionId,
17027
+ questionIds,
17028
+ adminApiParams,
17029
+ queryClient
17030
+ }) => {
17031
+ if (!sectionId) throw new Error("Section ID Undefined");
17032
+ const connectedXM = await GetAdminAPI(adminApiParams);
17033
+ const { data } = await connectedXM.put(`/events/${eventId}/sections/${sectionId}/questions/reorder`, {
17034
+ questionIds
17035
+ });
17036
+ if (queryClient && data.status === "ok") {
17037
+ SET_EVENT_SECTION_QUESTIONS_QUERY_DATA(
17038
+ queryClient,
17039
+ [eventId, sectionId],
17040
+ data
17041
+ );
17042
+ }
17043
+ return data;
17044
+ };
17045
+ var useReorderEventSectionQuestions = (options = {}) => {
17046
+ return useConnectedMutation(ReorderEventSectionQuestions, options);
17047
+ };
17048
+
16817
17049
  // src/mutations/event/sections/useUpdateEventSection.ts
16818
17050
  var UpdateEventSection = async ({
16819
17051
  eventId,
@@ -18205,6 +18437,48 @@ var useUpdateEvent = (options = {}) => {
18205
18437
  return useConnectedMutation(UpdateEvent, options);
18206
18438
  };
18207
18439
 
18440
+ // src/mutations/files/useDeleteFile.ts
18441
+ var DeleteFile = async ({
18442
+ fileId,
18443
+ adminApiParams,
18444
+ queryClient
18445
+ }) => {
18446
+ const connectedXM = await GetAdminAPI(adminApiParams);
18447
+ const { data } = await connectedXM.delete(
18448
+ `/files/${fileId}`
18449
+ );
18450
+ if (queryClient && data.status === "ok") {
18451
+ queryClient.invalidateQueries({ queryKey: FILES_QUERY_KEY() });
18452
+ queryClient.removeQueries({ queryKey: FILE_QUERY_KEY(fileId) });
18453
+ }
18454
+ return data;
18455
+ };
18456
+ var useDeleteFile = (options = {}) => {
18457
+ return useConnectedMutation(DeleteFile, options);
18458
+ };
18459
+
18460
+ // src/mutations/files/useUpdateFile.ts
18461
+ var UpdateFile = async ({
18462
+ fileId,
18463
+ file,
18464
+ adminApiParams,
18465
+ queryClient
18466
+ }) => {
18467
+ const connectedXM = await GetAdminAPI(adminApiParams);
18468
+ const { data } = await connectedXM.put(
18469
+ `/files/${fileId}`,
18470
+ file
18471
+ );
18472
+ if (queryClient && data.status === "ok") {
18473
+ queryClient.invalidateQueries({ queryKey: FILES_QUERY_KEY() });
18474
+ SET_FILE_QUERY_DATA(queryClient, [data?.data?.id.toString()], data);
18475
+ }
18476
+ return data;
18477
+ };
18478
+ var useUpdateFile = (options = {}) => {
18479
+ return useConnectedMutation(UpdateFile, options);
18480
+ };
18481
+
18208
18482
  // src/mutations/group/translations/useCreateGroupTranslation.ts
18209
18483
  var CreateGroupTranslation = async ({
18210
18484
  groupId,
@@ -20447,48 +20721,6 @@ var UpdateVideo = async ({
20447
20721
  var useUpdateVideo = (options = {}) => {
20448
20722
  return useConnectedMutation(UpdateVideo, options);
20449
20723
  };
20450
-
20451
- // src/mutations/files/useUpdateFile.ts
20452
- var UpdateFile = async ({
20453
- fileId,
20454
- file,
20455
- adminApiParams,
20456
- queryClient
20457
- }) => {
20458
- const connectedXM = await GetAdminAPI(adminApiParams);
20459
- const { data } = await connectedXM.put(
20460
- `/files/${fileId}`,
20461
- file
20462
- );
20463
- if (queryClient && data.status === "ok") {
20464
- queryClient.invalidateQueries({ queryKey: FILES_QUERY_KEY() });
20465
- SET_FILE_QUERY_DATA(queryClient, [data?.data?.id.toString()], data);
20466
- }
20467
- return data;
20468
- };
20469
- var useUpdateFile = (options = {}) => {
20470
- return useConnectedMutation(UpdateFile, options);
20471
- };
20472
-
20473
- // src/mutations/files/useDeleteFile.ts
20474
- var DeleteFile = async ({
20475
- fileId,
20476
- adminApiParams,
20477
- queryClient
20478
- }) => {
20479
- const connectedXM = await GetAdminAPI(adminApiParams);
20480
- const { data } = await connectedXM.delete(
20481
- `/files/${fileId}`
20482
- );
20483
- if (queryClient && data.status === "ok") {
20484
- queryClient.invalidateQueries({ queryKey: FILES_QUERY_KEY() });
20485
- queryClient.removeQueries({ queryKey: FILE_QUERY_KEY(fileId) });
20486
- }
20487
- return data;
20488
- };
20489
- var useDeleteFile = (options = {}) => {
20490
- return useConnectedMutation(DeleteFile, options);
20491
- };
20492
20724
  // Annotate the CommonJS export names for ESM import in node:
20493
20725
  0 && (module.exports = {
20494
20726
  ACCOUNTS_QUERY_KEY,
@@ -20612,6 +20844,7 @@ var useDeleteFile = (options = {}) => {
20612
20844
  CreateChannelTranslation,
20613
20845
  CreateEvent,
20614
20846
  CreateEventActivation,
20847
+ CreateEventActivationCompletion,
20615
20848
  CreateEventActivationTranslation,
20616
20849
  CreateEventAddOn,
20617
20850
  CreateEventAddOnTranslation,
@@ -20680,6 +20913,7 @@ var useDeleteFile = (options = {}) => {
20680
20913
  DeleteChannelTranslation,
20681
20914
  DeleteEvent,
20682
20915
  DeleteEventActivation,
20916
+ DeleteEventActivationCompletion,
20683
20917
  DeleteEventActivationTranslation,
20684
20918
  DeleteEventAddOn,
20685
20919
  DeleteEventAddOnTranslation,
@@ -20774,6 +21008,8 @@ var useDeleteFile = (options = {}) => {
20774
21008
  EVENT_PAGE_QUERY_KEY,
20775
21009
  EVENT_PAGE_TRANSLATIONS_QUERY_KEY,
20776
21010
  EVENT_PAGE_TRANSLATION_QUERY_KEY,
21011
+ EVENT_PURCHASES_QUERY_KEY,
21012
+ EVENT_PURCHASE_QUERY_KEY,
20777
21013
  EVENT_QUERY_KEY,
20778
21014
  EVENT_QUESTIONS_QUERY_KEY,
20779
21015
  EVENT_QUESTION_CHOICES_QUERY_KEY,
@@ -20914,7 +21150,6 @@ var useDeleteFile = (options = {}) => {
20914
21150
  GetAnnouncementEmailReceipts,
20915
21151
  GetAnnouncements,
20916
21152
  GetBaseInfiniteQueryKeys,
20917
- GetBaseSingleQueryKeys,
20918
21153
  GetBenefit,
20919
21154
  GetBenefitClicks,
20920
21155
  GetBenefitTranslation,
@@ -20971,6 +21206,8 @@ var useDeleteFile = (options = {}) => {
20971
21206
  GetEventPageTranslation,
20972
21207
  GetEventPageTranslations,
20973
21208
  GetEventPages,
21209
+ GetEventPurchase,
21210
+ GetEventPurchases,
20974
21211
  GetEventQuestion,
20975
21212
  GetEventQuestionChoice,
20976
21213
  GetEventQuestionChoiceSubQuestions,
@@ -21243,6 +21480,8 @@ var useDeleteFile = (options = {}) => {
21243
21480
  RemoveSeriesEvent,
21244
21481
  RemoveSubscriptionProductTier,
21245
21482
  RemoveTierAccount,
21483
+ ReorderEventQuestionChoices,
21484
+ ReorderEventSectionQuestions,
21246
21485
  ReportType,
21247
21486
  ResendEventRegistrationConfirmationEmail,
21248
21487
  SEARCH_ORGANIZATION_QUERY_KEY,
@@ -21338,6 +21577,7 @@ var useDeleteFile = (options = {}) => {
21338
21577
  SET_EVENT_PAGE_QUERY_DATA,
21339
21578
  SET_EVENT_PAGE_TRANSLATIONS_QUERY_DATA,
21340
21579
  SET_EVENT_PAGE_TRANSLATION_QUERY_DATA,
21580
+ SET_EVENT_PURCHASE_QUERY_DATA,
21341
21581
  SET_EVENT_QUERY_DATA,
21342
21582
  SET_EVENT_QUESTIONS_QUERY_DATA,
21343
21583
  SET_EVENT_QUESTION_CHOICES_QUERY_DATA,
@@ -21521,6 +21761,7 @@ var useDeleteFile = (options = {}) => {
21521
21761
  SUPPORT_TICKETS_QUERY_KEY,
21522
21762
  SUPPORT_TICKET_QUERY_KEY,
21523
21763
  SearchOrganization,
21764
+ SelectEventRegistrationPurchaseReservation,
21524
21765
  SelfLeaveOrganization,
21525
21766
  SubscriptionProductPriceInterval,
21526
21767
  SubscriptionProductPriceType,
@@ -21552,6 +21793,7 @@ var useDeleteFile = (options = {}) => {
21552
21793
  UpdateChannelTranslation,
21553
21794
  UpdateEvent,
21554
21795
  UpdateEventActivation,
21796
+ UpdateEventActivationCompletion,
21555
21797
  UpdateEventActivationTranslation,
21556
21798
  UpdateEventAddOn,
21557
21799
  UpdateEventAddOnTranslation,
@@ -21691,6 +21933,7 @@ var useDeleteFile = (options = {}) => {
21691
21933
  useCreateChannelTranslation,
21692
21934
  useCreateEvent,
21693
21935
  useCreateEventActivation,
21936
+ useCreateEventActivationCompletion,
21694
21937
  useCreateEventActivationTranslation,
21695
21938
  useCreateEventAddOn,
21696
21939
  useCreateEventAddOnTranslation,
@@ -21757,6 +22000,7 @@ var useDeleteFile = (options = {}) => {
21757
22000
  useDeleteChannelTranslation,
21758
22001
  useDeleteEvent,
21759
22002
  useDeleteEventActivation,
22003
+ useDeleteEventActivationCompletion,
21760
22004
  useDeleteEventActivationTranslation,
21761
22005
  useDeleteEventAddOn,
21762
22006
  useDeleteEventAddOnTranslation,
@@ -21903,6 +22147,8 @@ var useDeleteFile = (options = {}) => {
21903
22147
  useGetEventPageTranslation,
21904
22148
  useGetEventPageTranslations,
21905
22149
  useGetEventPages,
22150
+ useGetEventPurchase,
22151
+ useGetEventPurchases,
21906
22152
  useGetEventQuestion,
21907
22153
  useGetEventQuestionChoice,
21908
22154
  useGetEventQuestionChoiceSubQuestions,
@@ -22116,8 +22362,11 @@ var useDeleteFile = (options = {}) => {
22116
22362
  useRemoveSeriesEvent,
22117
22363
  useRemoveSubscriptionProductTier,
22118
22364
  useRemoveTierAccount,
22365
+ useReorderEventQuestionChoices,
22366
+ useReorderEventSectionQuestions,
22119
22367
  useResendEventRegistrationConfirmationEmail,
22120
22368
  useSearchOrganization,
22369
+ useSelectEventRegistrationPurchaseReservation,
22121
22370
  useSelfLeaveOrganization,
22122
22371
  useSwitchImage,
22123
22372
  useToggleOrganizationPaymentIntegration,
@@ -22136,6 +22385,7 @@ var useDeleteFile = (options = {}) => {
22136
22385
  useUpdateChannelTranslation,
22137
22386
  useUpdateEvent,
22138
22387
  useUpdateEventActivation,
22388
+ useUpdateEventActivationCompletion,
22139
22389
  useUpdateEventActivationTranslation,
22140
22390
  useUpdateEventAddOn,
22141
22391
  useUpdateEventAddOnTranslation,