@connectedxm/admin 6.29.0 → 6.30.1

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
@@ -519,6 +519,7 @@ __export(index_exports, {
519
519
  DetachEventQuestionSearchList: () => DetachEventQuestionSearchList,
520
520
  DetachEventSessionQuestionSearchList: () => DetachEventSessionQuestionSearchList,
521
521
  DetachSurveyQuestionSearchList: () => DetachSurveyQuestionSearchList,
522
+ DisableEventBuildMode: () => DisableEventBuildMode,
522
523
  DisableLivestream: () => DisableLivestream,
523
524
  DownloadVideoCaption: () => DownloadVideoCaption,
524
525
  EMAIL_RECEIPTS_QUERY_KEY: () => EMAIL_RECEIPTS_QUERY_KEY,
@@ -749,6 +750,7 @@ __export(index_exports, {
749
750
  EVENT_TRANSLATIONS_QUERY_KEY: () => EVENT_TRANSLATIONS_QUERY_KEY,
750
751
  EVENT_TRANSLATION_QUERY_KEY: () => EVENT_TRANSLATION_QUERY_KEY,
751
752
  EmailReceiptStatus: () => EmailReceiptStatus,
753
+ EnableEventBuildMode: () => EnableEventBuildMode,
752
754
  EnableLivestream: () => EnableLivestream,
753
755
  EventActivationType: () => EventActivationType,
754
756
  EventAgendaVisibility: () => EventAgendaVisibility,
@@ -2745,8 +2747,10 @@ __export(index_exports, {
2745
2747
  useDetachEventQuestionSearchList: () => useDetachEventQuestionSearchList,
2746
2748
  useDetachEventSessionQuestionSearchList: () => useDetachEventSessionQuestionSearchList,
2747
2749
  useDetachSurveyQuestionSearchList: () => useDetachSurveyQuestionSearchList,
2750
+ useDisableEventBuildMode: () => useDisableEventBuildMode,
2748
2751
  useDisableLivestream: () => useDisableLivestream,
2749
2752
  useDownloadVideoCaption: () => useDownloadVideoCaption,
2753
+ useEnableEventBuildMode: () => useEnableEventBuildMode,
2750
2754
  useEnableLivestream: () => useEnableLivestream,
2751
2755
  useEventGetPassTypeCoupons: () => useEventGetPassTypeCoupons,
2752
2756
  useExportAccount: () => useExportAccount,
@@ -3818,11 +3822,12 @@ var AdvertisementType = /* @__PURE__ */ ((AdvertisementType2) => {
3818
3822
  })(AdvertisementType || {});
3819
3823
  var ImageType = /* @__PURE__ */ ((ImageType2) => {
3820
3824
  ImageType2["admin"] = "admin";
3821
- ImageType2["people"] = "people";
3822
- ImageType2["activity"] = "activity";
3823
- ImageType2["banner"] = "banner";
3824
- ImageType2["chat"] = "chat";
3825
+ ImageType2["account"] = "account";
3826
+ ImageType2["thread"] = "thread";
3825
3827
  ImageType2["content"] = "content";
3828
+ ImageType2["activity"] = "activity";
3829
+ ImageType2["event"] = "event";
3830
+ ImageType2["activation"] = "activation";
3826
3831
  return ImageType2;
3827
3832
  })(ImageType || {});
3828
3833
  var SupportTicketType = /* @__PURE__ */ ((SupportTicketType2) => {
@@ -37377,6 +37382,40 @@ var useDeleteEvent = (options = {}) => {
37377
37382
  return useConnectedMutation(DeleteEvent, options);
37378
37383
  };
37379
37384
 
37385
+ // src/mutations/events/useDisableEventBuildMode.ts
37386
+ var DisableEventBuildMode = async ({
37387
+ eventId,
37388
+ adminApiParams,
37389
+ queryClient
37390
+ }) => {
37391
+ const connectedXM = await GetAdminAPI(adminApiParams);
37392
+ const { data } = await connectedXM.delete(`/events/${eventId}/build-mode`);
37393
+ if (queryClient && data.status === "ok") {
37394
+ queryClient.invalidateQueries({ queryKey: EVENT_QUERY_KEY(eventId) });
37395
+ }
37396
+ return data;
37397
+ };
37398
+ var useDisableEventBuildMode = (options = {}) => {
37399
+ return useConnectedMutation(DisableEventBuildMode, options);
37400
+ };
37401
+
37402
+ // src/mutations/events/useEnableEventBuildMode.ts
37403
+ var EnableEventBuildMode = async ({
37404
+ eventId,
37405
+ adminApiParams,
37406
+ queryClient
37407
+ }) => {
37408
+ const connectedXM = await GetAdminAPI(adminApiParams);
37409
+ const { data } = await connectedXM.post(`/events/${eventId}/build-mode`);
37410
+ if (queryClient && data.status === "ok") {
37411
+ queryClient.invalidateQueries({ queryKey: EVENT_QUERY_KEY(eventId) });
37412
+ }
37413
+ return data;
37414
+ };
37415
+ var useEnableEventBuildMode = (options = {}) => {
37416
+ return useConnectedMutation(EnableEventBuildMode, options);
37417
+ };
37418
+
37380
37419
  // src/mutations/events/useUpdateEvent.ts
37381
37420
  var UpdateEvent = async ({
37382
37421
  eventId,
@@ -43963,6 +44002,7 @@ var useUpdateTier = (options = {}) => {
43963
44002
  DetachEventQuestionSearchList,
43964
44003
  DetachEventSessionQuestionSearchList,
43965
44004
  DetachSurveyQuestionSearchList,
44005
+ DisableEventBuildMode,
43966
44006
  DisableLivestream,
43967
44007
  DownloadVideoCaption,
43968
44008
  EMAIL_RECEIPTS_QUERY_KEY,
@@ -44193,6 +44233,7 @@ var useUpdateTier = (options = {}) => {
44193
44233
  EVENT_TRANSLATIONS_QUERY_KEY,
44194
44234
  EVENT_TRANSLATION_QUERY_KEY,
44195
44235
  EmailReceiptStatus,
44236
+ EnableEventBuildMode,
44196
44237
  EnableLivestream,
44197
44238
  EventActivationType,
44198
44239
  EventAgendaVisibility,
@@ -46189,8 +46230,10 @@ var useUpdateTier = (options = {}) => {
46189
46230
  useDetachEventQuestionSearchList,
46190
46231
  useDetachEventSessionQuestionSearchList,
46191
46232
  useDetachSurveyQuestionSearchList,
46233
+ useDisableEventBuildMode,
46192
46234
  useDisableLivestream,
46193
46235
  useDownloadVideoCaption,
46236
+ useEnableEventBuildMode,
46194
46237
  useEnableLivestream,
46195
46238
  useEventGetPassTypeCoupons,
46196
46239
  useExportAccount,