@connectedxm/admin 6.18.1 → 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 +41 -7
- package/dist/index.d.cts +23 -4
- package/dist/index.d.ts +23 -4
- package/dist/index.js +39 -7
- package/openapi.json +62 -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,
|
|
@@ -23545,12 +23547,16 @@ var useGetSurveySectionQuestions = (surveyId = "", sectionId = "", params = {},
|
|
|
23545
23547
|
};
|
|
23546
23548
|
|
|
23547
23549
|
// src/queries/surveys/submissions/useGetSurveySubmissions.ts
|
|
23548
|
-
var SURVEY_SUBMISSIONS_QUERY_KEY = (surveyId) =>
|
|
23549
|
-
...SURVEY_QUERY_KEY(surveyId),
|
|
23550
|
-
|
|
23551
|
-
|
|
23550
|
+
var SURVEY_SUBMISSIONS_QUERY_KEY = (surveyId, status) => {
|
|
23551
|
+
const key = [...SURVEY_QUERY_KEY(surveyId), "SUBMISSIONS"];
|
|
23552
|
+
if (status) {
|
|
23553
|
+
key.push(status);
|
|
23554
|
+
}
|
|
23555
|
+
return key;
|
|
23556
|
+
};
|
|
23552
23557
|
var GetSurveySubmissions = async ({
|
|
23553
23558
|
surveyId,
|
|
23559
|
+
status,
|
|
23554
23560
|
pageParam,
|
|
23555
23561
|
pageSize,
|
|
23556
23562
|
orderBy,
|
|
@@ -23560,6 +23566,7 @@ var GetSurveySubmissions = async ({
|
|
|
23560
23566
|
const adminApi = await GetAdminAPI(adminApiParams);
|
|
23561
23567
|
const { data } = await adminApi.get(`/surveys/${surveyId}/submissions`, {
|
|
23562
23568
|
params: {
|
|
23569
|
+
status: status || void 0,
|
|
23563
23570
|
page: pageParam || void 0,
|
|
23564
23571
|
pageSize: pageSize || void 0,
|
|
23565
23572
|
orderBy: orderBy || void 0,
|
|
@@ -23568,12 +23575,13 @@ var GetSurveySubmissions = async ({
|
|
|
23568
23575
|
});
|
|
23569
23576
|
return data;
|
|
23570
23577
|
};
|
|
23571
|
-
var useGetSurveySubmissions = (surveyId = "", params = {}, options = {}) => {
|
|
23578
|
+
var useGetSurveySubmissions = (surveyId = "", status, params = {}, options = {}) => {
|
|
23572
23579
|
return useConnectedInfiniteQuery(
|
|
23573
|
-
SURVEY_SUBMISSIONS_QUERY_KEY(surveyId),
|
|
23580
|
+
SURVEY_SUBMISSIONS_QUERY_KEY(surveyId, status),
|
|
23574
23581
|
(params2) => GetSurveySubmissions({
|
|
23575
23582
|
...params2,
|
|
23576
|
-
surveyId
|
|
23583
|
+
surveyId,
|
|
23584
|
+
status
|
|
23577
23585
|
}),
|
|
23578
23586
|
params,
|
|
23579
23587
|
{
|
|
@@ -31159,6 +31167,30 @@ var useUpdateEventPass = (options = {}) => {
|
|
|
31159
31167
|
return useConnectedMutation(UpdateEventPass, options);
|
|
31160
31168
|
};
|
|
31161
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
|
+
|
|
31162
31194
|
// src/mutations/events/questions/translations/useDeleteEventQuestionChoiceTranslation.ts
|
|
31163
31195
|
var DeleteEventQuestionChoiceTranslation = async ({
|
|
31164
31196
|
eventId,
|
|
@@ -43598,6 +43630,7 @@ var useUpdateTier = (options = {}) => {
|
|
|
43598
43630
|
UpdateEventPassTypePriceSchedule,
|
|
43599
43631
|
UpdateEventPassTypeRefundSchedule,
|
|
43600
43632
|
UpdateEventPassTypeTranslation,
|
|
43633
|
+
UpdateEventPassesReady,
|
|
43601
43634
|
UpdateEventQuestion,
|
|
43602
43635
|
UpdateEventQuestionChoice,
|
|
43603
43636
|
UpdateEventQuestionChoiceSubQuestion,
|
|
@@ -44768,6 +44801,7 @@ var useUpdateTier = (options = {}) => {
|
|
|
44768
44801
|
useUpdateEventPassTypePriceSchedule,
|
|
44769
44802
|
useUpdateEventPassTypeRefundSchedule,
|
|
44770
44803
|
useUpdateEventPassTypeTranslation,
|
|
44804
|
+
useUpdateEventPassesReady,
|
|
44771
44805
|
useUpdateEventQuestion,
|
|
44772
44806
|
useUpdateEventQuestionChoice,
|
|
44773
44807
|
useUpdateEventQuestionChoiceSubQuestion,
|