@connectedxm/admin 6.19.0 → 6.21.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 +43 -8
- package/dist/index.d.cts +31 -8
- package/dist/index.d.ts +31 -8
- package/dist/index.js +40 -8
- package/openapi.json +71 -10
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2049,6 +2049,7 @@ __export(index_exports, {
|
|
|
2049
2049
|
SupportTicketType: () => SupportTicketType,
|
|
2050
2050
|
SupportedLocale: () => SupportedLocale,
|
|
2051
2051
|
SurveyQuestionType: () => SurveyQuestionType,
|
|
2052
|
+
SurveyStatus: () => SurveyStatus,
|
|
2052
2053
|
SwitchImage: () => SwitchImage,
|
|
2053
2054
|
SyncEventCouponToVariants: () => SyncEventCouponToVariants,
|
|
2054
2055
|
SystemEventLogStatus: () => SystemEventLogStatus,
|
|
@@ -2166,6 +2167,7 @@ __export(index_exports, {
|
|
|
2166
2167
|
UpdateEventPassTypePriceSchedule: () => UpdateEventPassTypePriceSchedule,
|
|
2167
2168
|
UpdateEventPassTypeRefundSchedule: () => UpdateEventPassTypeRefundSchedule,
|
|
2168
2169
|
UpdateEventPassTypeTranslation: () => UpdateEventPassTypeTranslation,
|
|
2170
|
+
UpdateEventPassesReady: () => UpdateEventPassesReady,
|
|
2169
2171
|
UpdateEventQuestion: () => UpdateEventQuestion,
|
|
2170
2172
|
UpdateEventQuestionChoice: () => UpdateEventQuestionChoice,
|
|
2171
2173
|
UpdateEventQuestionChoiceSubQuestion: () => UpdateEventQuestionChoiceSubQuestion,
|
|
@@ -3336,6 +3338,7 @@ __export(index_exports, {
|
|
|
3336
3338
|
useUpdateEventPassTypePriceSchedule: () => useUpdateEventPassTypePriceSchedule,
|
|
3337
3339
|
useUpdateEventPassTypeRefundSchedule: () => useUpdateEventPassTypeRefundSchedule,
|
|
3338
3340
|
useUpdateEventPassTypeTranslation: () => useUpdateEventPassTypeTranslation,
|
|
3341
|
+
useUpdateEventPassesReady: () => useUpdateEventPassesReady,
|
|
3339
3342
|
useUpdateEventQuestion: () => useUpdateEventQuestion,
|
|
3340
3343
|
useUpdateEventQuestionChoice: () => useUpdateEventQuestionChoice,
|
|
3341
3344
|
useUpdateEventQuestionChoiceSubQuestion: () => useUpdateEventQuestionChoiceSubQuestion,
|
|
@@ -4124,6 +4127,12 @@ var WidgetType = /* @__PURE__ */ ((WidgetType2) => {
|
|
|
4124
4127
|
WidgetType2["line"] = "line";
|
|
4125
4128
|
return WidgetType2;
|
|
4126
4129
|
})(WidgetType || {});
|
|
4130
|
+
var SurveyStatus = /* @__PURE__ */ ((SurveyStatus2) => {
|
|
4131
|
+
SurveyStatus2["draft"] = "draft";
|
|
4132
|
+
SurveyStatus2["published"] = "published";
|
|
4133
|
+
SurveyStatus2["archived"] = "archived";
|
|
4134
|
+
return SurveyStatus2;
|
|
4135
|
+
})(SurveyStatus || {});
|
|
4127
4136
|
var SurveyQuestionType = /* @__PURE__ */ ((SurveyQuestionType2) => {
|
|
4128
4137
|
SurveyQuestionType2["text"] = "text";
|
|
4129
4138
|
SurveyQuestionType2["textarea"] = "textarea";
|
|
@@ -22829,11 +22838,10 @@ var useGetSupportTickets = (type, state, assignment, params = {}, options = {})
|
|
|
22829
22838
|
};
|
|
22830
22839
|
|
|
22831
22840
|
// src/queries/surveys/useGetSurveys.ts
|
|
22832
|
-
var SURVEYS_QUERY_KEY = (eventId,
|
|
22841
|
+
var SURVEYS_QUERY_KEY = (eventId, status) => {
|
|
22833
22842
|
const keys = ["SURVEYS"];
|
|
22834
22843
|
if (eventId) keys.push(eventId);
|
|
22835
|
-
if (
|
|
22836
|
-
if (activationId) keys.push(activationId);
|
|
22844
|
+
if (status) keys.push(status);
|
|
22837
22845
|
return keys;
|
|
22838
22846
|
};
|
|
22839
22847
|
var SET_SURVEYS_QUERY_DATA = (client, keyParams, response) => {
|
|
@@ -22841,7 +22849,7 @@ var SET_SURVEYS_QUERY_DATA = (client, keyParams, response) => {
|
|
|
22841
22849
|
};
|
|
22842
22850
|
var GetSurveys = async ({
|
|
22843
22851
|
eventId,
|
|
22844
|
-
|
|
22852
|
+
status,
|
|
22845
22853
|
pageParam,
|
|
22846
22854
|
pageSize,
|
|
22847
22855
|
orderBy,
|
|
@@ -22856,18 +22864,18 @@ var GetSurveys = async ({
|
|
|
22856
22864
|
orderBy: orderBy || void 0,
|
|
22857
22865
|
search: search || void 0,
|
|
22858
22866
|
eventId: eventId || void 0,
|
|
22859
|
-
|
|
22867
|
+
status: status || void 0
|
|
22860
22868
|
}
|
|
22861
22869
|
});
|
|
22862
22870
|
return data;
|
|
22863
22871
|
};
|
|
22864
|
-
var useGetSurveys = (eventId,
|
|
22872
|
+
var useGetSurveys = (eventId, status, params = {}, options = {}) => {
|
|
22865
22873
|
return useConnectedInfiniteQuery(
|
|
22866
|
-
SURVEYS_QUERY_KEY(eventId,
|
|
22874
|
+
SURVEYS_QUERY_KEY(eventId, status),
|
|
22867
22875
|
(params2) => GetSurveys({
|
|
22868
22876
|
...params2,
|
|
22869
22877
|
eventId,
|
|
22870
|
-
|
|
22878
|
+
status
|
|
22871
22879
|
}),
|
|
22872
22880
|
params,
|
|
22873
22881
|
options
|
|
@@ -31165,6 +31173,30 @@ var useUpdateEventPass = (options = {}) => {
|
|
|
31165
31173
|
return useConnectedMutation(UpdateEventPass, options);
|
|
31166
31174
|
};
|
|
31167
31175
|
|
|
31176
|
+
// src/mutations/events/passes/useUpdateEventPassesReady.ts
|
|
31177
|
+
var UpdateEventPassesReady = async ({
|
|
31178
|
+
eventId,
|
|
31179
|
+
adminApiParams,
|
|
31180
|
+
queryClient
|
|
31181
|
+
}) => {
|
|
31182
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
31183
|
+
const { data } = await connectedXM.post(
|
|
31184
|
+
`/events/${eventId}/passes/ready`
|
|
31185
|
+
);
|
|
31186
|
+
if (queryClient && data.status === "ok") {
|
|
31187
|
+
queryClient.invalidateQueries({
|
|
31188
|
+
queryKey: EVENT_PASSES_QUERY_KEY(eventId)
|
|
31189
|
+
});
|
|
31190
|
+
queryClient.invalidateQueries({
|
|
31191
|
+
queryKey: EVENT_PASSES_QUERY_KEY(eventId, true)
|
|
31192
|
+
});
|
|
31193
|
+
}
|
|
31194
|
+
return data;
|
|
31195
|
+
};
|
|
31196
|
+
var useUpdateEventPassesReady = (options = {}) => {
|
|
31197
|
+
return useConnectedMutation(UpdateEventPassesReady, options);
|
|
31198
|
+
};
|
|
31199
|
+
|
|
31168
31200
|
// src/mutations/events/questions/translations/useDeleteEventQuestionChoiceTranslation.ts
|
|
31169
31201
|
var DeleteEventQuestionChoiceTranslation = async ({
|
|
31170
31202
|
eventId,
|
|
@@ -43487,6 +43519,7 @@ var useUpdateTier = (options = {}) => {
|
|
|
43487
43519
|
SupportTicketType,
|
|
43488
43520
|
SupportedLocale,
|
|
43489
43521
|
SurveyQuestionType,
|
|
43522
|
+
SurveyStatus,
|
|
43490
43523
|
SwitchImage,
|
|
43491
43524
|
SyncEventCouponToVariants,
|
|
43492
43525
|
SystemEventLogStatus,
|
|
@@ -43604,6 +43637,7 @@ var useUpdateTier = (options = {}) => {
|
|
|
43604
43637
|
UpdateEventPassTypePriceSchedule,
|
|
43605
43638
|
UpdateEventPassTypeRefundSchedule,
|
|
43606
43639
|
UpdateEventPassTypeTranslation,
|
|
43640
|
+
UpdateEventPassesReady,
|
|
43607
43641
|
UpdateEventQuestion,
|
|
43608
43642
|
UpdateEventQuestionChoice,
|
|
43609
43643
|
UpdateEventQuestionChoiceSubQuestion,
|
|
@@ -44774,6 +44808,7 @@ var useUpdateTier = (options = {}) => {
|
|
|
44774
44808
|
useUpdateEventPassTypePriceSchedule,
|
|
44775
44809
|
useUpdateEventPassTypeRefundSchedule,
|
|
44776
44810
|
useUpdateEventPassTypeTranslation,
|
|
44811
|
+
useUpdateEventPassesReady,
|
|
44777
44812
|
useUpdateEventQuestion,
|
|
44778
44813
|
useUpdateEventQuestionChoice,
|
|
44779
44814
|
useUpdateEventQuestionChoiceSubQuestion,
|