@connectedxm/admin 6.19.0 → 6.20.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 +28 -0
- package/dist/index.d.cts +19 -1
- package/dist/index.d.ts +19 -1
- package/dist/index.js +26 -0
- package/openapi.json +53 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2166,6 +2166,7 @@ __export(index_exports, {
|
|
|
2166
2166
|
UpdateEventPassTypePriceSchedule: () => UpdateEventPassTypePriceSchedule,
|
|
2167
2167
|
UpdateEventPassTypeRefundSchedule: () => UpdateEventPassTypeRefundSchedule,
|
|
2168
2168
|
UpdateEventPassTypeTranslation: () => UpdateEventPassTypeTranslation,
|
|
2169
|
+
UpdateEventPassesReady: () => UpdateEventPassesReady,
|
|
2169
2170
|
UpdateEventQuestion: () => UpdateEventQuestion,
|
|
2170
2171
|
UpdateEventQuestionChoice: () => UpdateEventQuestionChoice,
|
|
2171
2172
|
UpdateEventQuestionChoiceSubQuestion: () => UpdateEventQuestionChoiceSubQuestion,
|
|
@@ -3336,6 +3337,7 @@ __export(index_exports, {
|
|
|
3336
3337
|
useUpdateEventPassTypePriceSchedule: () => useUpdateEventPassTypePriceSchedule,
|
|
3337
3338
|
useUpdateEventPassTypeRefundSchedule: () => useUpdateEventPassTypeRefundSchedule,
|
|
3338
3339
|
useUpdateEventPassTypeTranslation: () => useUpdateEventPassTypeTranslation,
|
|
3340
|
+
useUpdateEventPassesReady: () => useUpdateEventPassesReady,
|
|
3339
3341
|
useUpdateEventQuestion: () => useUpdateEventQuestion,
|
|
3340
3342
|
useUpdateEventQuestionChoice: () => useUpdateEventQuestionChoice,
|
|
3341
3343
|
useUpdateEventQuestionChoiceSubQuestion: () => useUpdateEventQuestionChoiceSubQuestion,
|
|
@@ -31165,6 +31167,30 @@ var useUpdateEventPass = (options = {}) => {
|
|
|
31165
31167
|
return useConnectedMutation(UpdateEventPass, options);
|
|
31166
31168
|
};
|
|
31167
31169
|
|
|
31170
|
+
// src/mutations/events/passes/useUpdateEventPassesReady.ts
|
|
31171
|
+
var UpdateEventPassesReady = async ({
|
|
31172
|
+
eventId,
|
|
31173
|
+
adminApiParams,
|
|
31174
|
+
queryClient
|
|
31175
|
+
}) => {
|
|
31176
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
31177
|
+
const { data } = await connectedXM.post(
|
|
31178
|
+
`/events/${eventId}/passes/ready`
|
|
31179
|
+
);
|
|
31180
|
+
if (queryClient && data.status === "ok") {
|
|
31181
|
+
queryClient.invalidateQueries({
|
|
31182
|
+
queryKey: EVENT_PASSES_QUERY_KEY(eventId)
|
|
31183
|
+
});
|
|
31184
|
+
queryClient.invalidateQueries({
|
|
31185
|
+
queryKey: EVENT_PASSES_QUERY_KEY(eventId, true)
|
|
31186
|
+
});
|
|
31187
|
+
}
|
|
31188
|
+
return data;
|
|
31189
|
+
};
|
|
31190
|
+
var useUpdateEventPassesReady = (options = {}) => {
|
|
31191
|
+
return useConnectedMutation(UpdateEventPassesReady, options);
|
|
31192
|
+
};
|
|
31193
|
+
|
|
31168
31194
|
// src/mutations/events/questions/translations/useDeleteEventQuestionChoiceTranslation.ts
|
|
31169
31195
|
var DeleteEventQuestionChoiceTranslation = async ({
|
|
31170
31196
|
eventId,
|
|
@@ -43604,6 +43630,7 @@ var useUpdateTier = (options = {}) => {
|
|
|
43604
43630
|
UpdateEventPassTypePriceSchedule,
|
|
43605
43631
|
UpdateEventPassTypeRefundSchedule,
|
|
43606
43632
|
UpdateEventPassTypeTranslation,
|
|
43633
|
+
UpdateEventPassesReady,
|
|
43607
43634
|
UpdateEventQuestion,
|
|
43608
43635
|
UpdateEventQuestionChoice,
|
|
43609
43636
|
UpdateEventQuestionChoiceSubQuestion,
|
|
@@ -44774,6 +44801,7 @@ var useUpdateTier = (options = {}) => {
|
|
|
44774
44801
|
useUpdateEventPassTypePriceSchedule,
|
|
44775
44802
|
useUpdateEventPassTypeRefundSchedule,
|
|
44776
44803
|
useUpdateEventPassTypeTranslation,
|
|
44804
|
+
useUpdateEventPassesReady,
|
|
44777
44805
|
useUpdateEventQuestion,
|
|
44778
44806
|
useUpdateEventQuestionChoice,
|
|
44779
44807
|
useUpdateEventQuestionChoiceSubQuestion,
|