@connectedxm/admin 7.5.1 → 7.8.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 +50 -0
- package/dist/index.d.cts +71 -15
- package/dist/index.d.ts +71 -15
- package/dist/index.js +46 -0
- package/openapi.json +236 -56
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -410,6 +410,7 @@ __export(index_exports, {
|
|
|
410
410
|
DeleteEventFaqSectionTranslation: () => DeleteEventFaqSectionTranslation,
|
|
411
411
|
DeleteEventFollowup: () => DeleteEventFollowup,
|
|
412
412
|
DeleteEventFollowupTranslation: () => DeleteEventFollowupTranslation,
|
|
413
|
+
DeleteEventLocation: () => DeleteEventLocation,
|
|
413
414
|
DeleteEventMatch: () => DeleteEventMatch,
|
|
414
415
|
DeleteEventMediaItem: () => DeleteEventMediaItem,
|
|
415
416
|
DeleteEventMediaItemTranslation: () => DeleteEventMediaItemTranslation,
|
|
@@ -2132,6 +2133,7 @@ __export(index_exports, {
|
|
|
2132
2133
|
SendAnnouncementPreview: () => SendAnnouncementPreview,
|
|
2133
2134
|
SendInvoice: () => SendInvoice,
|
|
2134
2135
|
SeriesQuestionType: () => SeriesQuestionType,
|
|
2136
|
+
SetEventLocation: () => SetEventLocation,
|
|
2135
2137
|
SideEffectActionType: () => SideEffectActionType,
|
|
2136
2138
|
SideEffectTriggerType: () => SideEffectTriggerType,
|
|
2137
2139
|
StartEventRoundMatchmaking: () => StartEventRoundMatchmaking,
|
|
@@ -2643,6 +2645,7 @@ __export(index_exports, {
|
|
|
2643
2645
|
useDeleteEventFaqSectionTranslation: () => useDeleteEventFaqSectionTranslation,
|
|
2644
2646
|
useDeleteEventFollowup: () => useDeleteEventFollowup,
|
|
2645
2647
|
useDeleteEventFollowupTranslation: () => useDeleteEventFollowupTranslation,
|
|
2648
|
+
useDeleteEventLocation: () => useDeleteEventLocation,
|
|
2646
2649
|
useDeleteEventMatch: () => useDeleteEventMatch,
|
|
2647
2650
|
useDeleteEventMediaItem: () => useDeleteEventMediaItem,
|
|
2648
2651
|
useDeleteEventMediaItemTranslation: () => useDeleteEventMediaItemTranslation,
|
|
@@ -3405,6 +3408,7 @@ __export(index_exports, {
|
|
|
3405
3408
|
useSelfLeaveOrganization: () => useSelfLeaveOrganization,
|
|
3406
3409
|
useSendAnnouncementPreview: () => useSendAnnouncementPreview,
|
|
3407
3410
|
useSendInvoice: () => useSendInvoice,
|
|
3411
|
+
useSetEventLocation: () => useSetEventLocation,
|
|
3408
3412
|
useStartEventRoundMatchmaking: () => useStartEventRoundMatchmaking,
|
|
3409
3413
|
useStartEventSessionRoundMatchmaking: () => useStartEventSessionRoundMatchmaking,
|
|
3410
3414
|
useSwitchImage: () => useSwitchImage,
|
|
@@ -37707,6 +37711,26 @@ var useDeleteEvent = (options = {}) => {
|
|
|
37707
37711
|
return useConnectedMutation(DeleteEvent, options);
|
|
37708
37712
|
};
|
|
37709
37713
|
|
|
37714
|
+
// src/mutations/events/useDeleteEventLocation.ts
|
|
37715
|
+
var DeleteEventLocation = async ({
|
|
37716
|
+
eventId,
|
|
37717
|
+
adminApiParams,
|
|
37718
|
+
queryClient
|
|
37719
|
+
}) => {
|
|
37720
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
37721
|
+
const { data } = await connectedXM.delete(
|
|
37722
|
+
`/events/${eventId}/location`
|
|
37723
|
+
);
|
|
37724
|
+
if (queryClient && data.status === "ok") {
|
|
37725
|
+
queryClient.invalidateQueries({ queryKey: EVENTS_QUERY_KEY() });
|
|
37726
|
+
SET_EVENT_QUERY_DATA(queryClient, [data.data?.id], data);
|
|
37727
|
+
}
|
|
37728
|
+
return data;
|
|
37729
|
+
};
|
|
37730
|
+
var useDeleteEventLocation = (options = {}) => {
|
|
37731
|
+
return useConnectedMutation(DeleteEventLocation, options);
|
|
37732
|
+
};
|
|
37733
|
+
|
|
37710
37734
|
// src/mutations/events/useDisableEventBuildMode.ts
|
|
37711
37735
|
var DisableEventBuildMode = async ({
|
|
37712
37736
|
eventId,
|
|
@@ -37741,6 +37765,28 @@ var useEnableEventBuildMode = (options = {}) => {
|
|
|
37741
37765
|
return useConnectedMutation(EnableEventBuildMode, options);
|
|
37742
37766
|
};
|
|
37743
37767
|
|
|
37768
|
+
// src/mutations/events/useSetEventLocation.ts
|
|
37769
|
+
var SetEventLocation = async ({
|
|
37770
|
+
eventId,
|
|
37771
|
+
location,
|
|
37772
|
+
adminApiParams,
|
|
37773
|
+
queryClient
|
|
37774
|
+
}) => {
|
|
37775
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
37776
|
+
const { data } = await connectedXM.put(
|
|
37777
|
+
`/events/${eventId}/location`,
|
|
37778
|
+
location
|
|
37779
|
+
);
|
|
37780
|
+
if (queryClient && data.status === "ok") {
|
|
37781
|
+
queryClient.invalidateQueries({ queryKey: EVENTS_QUERY_KEY() });
|
|
37782
|
+
SET_EVENT_QUERY_DATA(queryClient, [data.data?.id], data);
|
|
37783
|
+
}
|
|
37784
|
+
return data;
|
|
37785
|
+
};
|
|
37786
|
+
var useSetEventLocation = (options = {}) => {
|
|
37787
|
+
return useConnectedMutation(SetEventLocation, options);
|
|
37788
|
+
};
|
|
37789
|
+
|
|
37744
37790
|
// src/mutations/events/useUpdateEvent.ts
|
|
37745
37791
|
var UpdateEvent = async ({
|
|
37746
37792
|
eventId,
|
|
@@ -44129,6 +44175,7 @@ var useUpdateTier = (options = {}) => {
|
|
|
44129
44175
|
DeleteEventFaqSectionTranslation,
|
|
44130
44176
|
DeleteEventFollowup,
|
|
44131
44177
|
DeleteEventFollowupTranslation,
|
|
44178
|
+
DeleteEventLocation,
|
|
44132
44179
|
DeleteEventMatch,
|
|
44133
44180
|
DeleteEventMediaItem,
|
|
44134
44181
|
DeleteEventMediaItemTranslation,
|
|
@@ -45851,6 +45898,7 @@ var useUpdateTier = (options = {}) => {
|
|
|
45851
45898
|
SendAnnouncementPreview,
|
|
45852
45899
|
SendInvoice,
|
|
45853
45900
|
SeriesQuestionType,
|
|
45901
|
+
SetEventLocation,
|
|
45854
45902
|
SideEffectActionType,
|
|
45855
45903
|
SideEffectTriggerType,
|
|
45856
45904
|
StartEventRoundMatchmaking,
|
|
@@ -46362,6 +46410,7 @@ var useUpdateTier = (options = {}) => {
|
|
|
46362
46410
|
useDeleteEventFaqSectionTranslation,
|
|
46363
46411
|
useDeleteEventFollowup,
|
|
46364
46412
|
useDeleteEventFollowupTranslation,
|
|
46413
|
+
useDeleteEventLocation,
|
|
46365
46414
|
useDeleteEventMatch,
|
|
46366
46415
|
useDeleteEventMediaItem,
|
|
46367
46416
|
useDeleteEventMediaItemTranslation,
|
|
@@ -47124,6 +47173,7 @@ var useUpdateTier = (options = {}) => {
|
|
|
47124
47173
|
useSelfLeaveOrganization,
|
|
47125
47174
|
useSendAnnouncementPreview,
|
|
47126
47175
|
useSendInvoice,
|
|
47176
|
+
useSetEventLocation,
|
|
47127
47177
|
useStartEventRoundMatchmaking,
|
|
47128
47178
|
useStartEventSessionRoundMatchmaking,
|
|
47129
47179
|
useSwitchImage,
|