@connectedxm/admin 6.23.1 → 6.23.2
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 +148 -0
- package/dist/index.d.cts +65 -1
- package/dist/index.d.ts +65 -1
- package/dist/index.js +141 -0
- package/openapi.json +265 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -146,6 +146,7 @@ __export(index_exports, {
|
|
|
146
146
|
AdminNotificationType: () => AdminNotificationType,
|
|
147
147
|
AdvertisementType: () => AdvertisementType,
|
|
148
148
|
AppendInfiniteQuery: () => AppendInfiniteQuery,
|
|
149
|
+
ApproveEventPass: () => ApproveEventPass,
|
|
149
150
|
ArchiveActivity: () => ArchiveActivity,
|
|
150
151
|
AttachBookingSpaceQuestionSearchList: () => AttachBookingSpaceQuestionSearchList,
|
|
151
152
|
AttachEventQuestionSearchList: () => AttachEventQuestionSearchList,
|
|
@@ -503,6 +504,7 @@ __export(index_exports, {
|
|
|
503
504
|
DeleteUserImage: () => DeleteUserImage,
|
|
504
505
|
DeleteVideo: () => DeleteVideo,
|
|
505
506
|
DeleteVideoCaption: () => DeleteVideoCaption,
|
|
507
|
+
DenyEventPass: () => DenyEventPass,
|
|
506
508
|
DetachBookingSpaceQuestionSearchList: () => DetachBookingSpaceQuestionSearchList,
|
|
507
509
|
DetachEventQuestionSearchList: () => DetachEventQuestionSearchList,
|
|
508
510
|
DetachEventSessionQuestionSearchList: () => DetachEventSessionQuestionSearchList,
|
|
@@ -615,6 +617,7 @@ __export(index_exports, {
|
|
|
615
617
|
EVENT_PASS_TYPE_TRANSLATIONS_QUERY_KEY: () => EVENT_PASS_TYPE_TRANSLATIONS_QUERY_KEY,
|
|
616
618
|
EVENT_PASS_TYPE_TRANSLATION_QUERY_KEY: () => EVENT_PASS_TYPE_TRANSLATION_QUERY_KEY,
|
|
617
619
|
EVENT_PAYMENTS_QUERY_KEY: () => EVENT_PAYMENTS_QUERY_KEY,
|
|
620
|
+
EVENT_PENDING_PASSES_QUERY_KEY: () => EVENT_PENDING_PASSES_QUERY_KEY,
|
|
618
621
|
EVENT_QUERY_KEY: () => EVENT_QUERY_KEY,
|
|
619
622
|
EVENT_QUESTIONS_QUERY_KEY: () => EVENT_QUESTIONS_QUERY_KEY,
|
|
620
623
|
EVENT_QUESTION_CHOICES_QUERY_KEY: () => EVENT_QUESTION_CHOICES_QUERY_KEY,
|
|
@@ -975,6 +978,7 @@ __export(index_exports, {
|
|
|
975
978
|
GetEventPassTypes: () => GetEventPassTypes,
|
|
976
979
|
GetEventPasses: () => GetEventPasses,
|
|
977
980
|
GetEventPayments: () => GetEventPayments,
|
|
981
|
+
GetEventPendingPasses: () => GetEventPendingPasses,
|
|
978
982
|
GetEventQuestion: () => GetEventQuestion,
|
|
979
983
|
GetEventQuestionChoice: () => GetEventQuestionChoice,
|
|
980
984
|
GetEventQuestionChoiceSubQuestions: () => GetEventQuestionChoiceSubQuestions,
|
|
@@ -2397,6 +2401,7 @@ __export(index_exports, {
|
|
|
2397
2401
|
useAddSurveyQuestionChoiceSubQuestion: () => useAddSurveyQuestionChoiceSubQuestion,
|
|
2398
2402
|
useAddSurveySectionQuestion: () => useAddSurveySectionQuestion,
|
|
2399
2403
|
useAddSurveySession: () => useAddSurveySession,
|
|
2404
|
+
useApproveEventPass: () => useApproveEventPass,
|
|
2400
2405
|
useArchiveActivity: () => useArchiveActivity,
|
|
2401
2406
|
useAttachBookingSpaceQuestionSearchList: () => useAttachBookingSpaceQuestionSearchList,
|
|
2402
2407
|
useAttachEventQuestionSearchList: () => useAttachEventQuestionSearchList,
|
|
@@ -2685,6 +2690,7 @@ __export(index_exports, {
|
|
|
2685
2690
|
useDeleteUserImage: () => useDeleteUserImage,
|
|
2686
2691
|
useDeleteVideo: () => useDeleteVideo,
|
|
2687
2692
|
useDeleteVideoCaption: () => useDeleteVideoCaption,
|
|
2693
|
+
useDenyEventPass: () => useDenyEventPass,
|
|
2688
2694
|
useDetachBookingSpaceQuestionSearchList: () => useDetachBookingSpaceQuestionSearchList,
|
|
2689
2695
|
useDetachEventQuestionSearchList: () => useDetachEventQuestionSearchList,
|
|
2690
2696
|
useDetachEventSessionQuestionSearchList: () => useDetachEventSessionQuestionSearchList,
|
|
@@ -2906,6 +2912,7 @@ __export(index_exports, {
|
|
|
2906
2912
|
useGetEventPassTypes: () => useGetEventPassTypes,
|
|
2907
2913
|
useGetEventPasses: () => useGetEventPasses,
|
|
2908
2914
|
useGetEventPayments: () => useGetEventPayments,
|
|
2915
|
+
useGetEventPendingPasses: () => useGetEventPendingPasses,
|
|
2909
2916
|
useGetEventQuestion: () => useGetEventQuestion,
|
|
2910
2917
|
useGetEventQuestionChoice: () => useGetEventQuestionChoice,
|
|
2911
2918
|
useGetEventQuestionChoiceSubQuestions: () => useGetEventQuestionChoiceSubQuestions,
|
|
@@ -4005,6 +4012,7 @@ var InvoiceStatus = /* @__PURE__ */ ((InvoiceStatus2) => {
|
|
|
4005
4012
|
var PurchaseStatus = /* @__PURE__ */ ((PurchaseStatus2) => {
|
|
4006
4013
|
PurchaseStatus2["draft"] = "draft";
|
|
4007
4014
|
PurchaseStatus2["canceled"] = "canceled";
|
|
4015
|
+
PurchaseStatus2["pending"] = "pending";
|
|
4008
4016
|
PurchaseStatus2["needsInfo"] = "needsInfo";
|
|
4009
4017
|
PurchaseStatus2["ready"] = "ready";
|
|
4010
4018
|
return PurchaseStatus2;
|
|
@@ -10218,6 +10226,44 @@ var useGetEventPassTransferLogs = (eventId = "", passId = "", params = {}, optio
|
|
|
10218
10226
|
);
|
|
10219
10227
|
};
|
|
10220
10228
|
|
|
10229
|
+
// src/queries/events/passes/useGetEventPendingPasses.ts
|
|
10230
|
+
var EVENT_PENDING_PASSES_QUERY_KEY = (eventId) => {
|
|
10231
|
+
return [...EVENT_QUERY_KEY(eventId), "PASSES", "PENDING"];
|
|
10232
|
+
};
|
|
10233
|
+
var GetEventPendingPasses = async ({
|
|
10234
|
+
eventId,
|
|
10235
|
+
pageParam,
|
|
10236
|
+
pageSize,
|
|
10237
|
+
orderBy,
|
|
10238
|
+
search,
|
|
10239
|
+
adminApiParams
|
|
10240
|
+
}) => {
|
|
10241
|
+
const adminApi = await GetAdminAPI(adminApiParams);
|
|
10242
|
+
const { data } = await adminApi.get(`/events/${eventId}/passes/pending`, {
|
|
10243
|
+
params: {
|
|
10244
|
+
page: pageParam || void 0,
|
|
10245
|
+
pageSize: pageSize || void 0,
|
|
10246
|
+
orderBy: orderBy || void 0,
|
|
10247
|
+
search: search || void 0
|
|
10248
|
+
}
|
|
10249
|
+
});
|
|
10250
|
+
return data;
|
|
10251
|
+
};
|
|
10252
|
+
var useGetEventPendingPasses = (eventId = "", params = {}, options = {}) => {
|
|
10253
|
+
return useConnectedInfiniteQuery(
|
|
10254
|
+
EVENT_PENDING_PASSES_QUERY_KEY(eventId),
|
|
10255
|
+
(params2) => GetEventPendingPasses({
|
|
10256
|
+
...params2,
|
|
10257
|
+
eventId
|
|
10258
|
+
}),
|
|
10259
|
+
params,
|
|
10260
|
+
{
|
|
10261
|
+
...options,
|
|
10262
|
+
enabled: !!eventId && (options.enabled ?? true)
|
|
10263
|
+
}
|
|
10264
|
+
);
|
|
10265
|
+
};
|
|
10266
|
+
|
|
10221
10267
|
// src/queries/events/attendees/useGetEventPassAttendeePasses.ts
|
|
10222
10268
|
var EVENT_PASS_ATTENDEE_PASSES_QUERY_KEY = (eventId, passId, status) => {
|
|
10223
10269
|
const key = [...EVENT_PASSES_QUERY_KEY(eventId), passId, "ATTENDEE_PASSES"];
|
|
@@ -31840,6 +31886,53 @@ var useUpdateEventPassResponses = (options = {}) => {
|
|
|
31840
31886
|
return useConnectedMutation(UpdateEventPassResponses, options);
|
|
31841
31887
|
};
|
|
31842
31888
|
|
|
31889
|
+
// src/mutations/events/passes/useApproveEventPass.ts
|
|
31890
|
+
var ApproveEventPass = async ({
|
|
31891
|
+
eventId,
|
|
31892
|
+
passId,
|
|
31893
|
+
sendEmail,
|
|
31894
|
+
adminApiParams,
|
|
31895
|
+
queryClient
|
|
31896
|
+
}) => {
|
|
31897
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
31898
|
+
const { data } = await connectedXM.put(
|
|
31899
|
+
`/events/${eventId}/passes/${passId}/approve`,
|
|
31900
|
+
{ sendEmail }
|
|
31901
|
+
);
|
|
31902
|
+
if (queryClient && data.status === "ok") {
|
|
31903
|
+
if (data.data.ticketId) {
|
|
31904
|
+
queryClient.invalidateQueries({
|
|
31905
|
+
queryKey: EVENT_PASS_TYPE_PASSES_QUERY_KEY(eventId, data.data.ticketId)
|
|
31906
|
+
});
|
|
31907
|
+
}
|
|
31908
|
+
if (data.data.attendee) {
|
|
31909
|
+
queryClient.invalidateQueries({
|
|
31910
|
+
queryKey: EVENT_ATTENDEE_QUERY_KEY(
|
|
31911
|
+
eventId,
|
|
31912
|
+
data.data.attendee.accountId
|
|
31913
|
+
)
|
|
31914
|
+
});
|
|
31915
|
+
queryClient.invalidateQueries({
|
|
31916
|
+
queryKey: EVENT_ATTENDEE_PASSES_QUERY_KEY(
|
|
31917
|
+
eventId,
|
|
31918
|
+
data.data.attendee.accountId
|
|
31919
|
+
)
|
|
31920
|
+
});
|
|
31921
|
+
}
|
|
31922
|
+
queryClient.invalidateQueries({
|
|
31923
|
+
queryKey: EVENT_PASSES_QUERY_KEY(eventId)
|
|
31924
|
+
});
|
|
31925
|
+
queryClient.invalidateQueries({
|
|
31926
|
+
queryKey: EVENT_PENDING_PASSES_QUERY_KEY(eventId)
|
|
31927
|
+
});
|
|
31928
|
+
SET_EVENT_PASS_QUERY_DATA(queryClient, [eventId, passId], data);
|
|
31929
|
+
}
|
|
31930
|
+
return data;
|
|
31931
|
+
};
|
|
31932
|
+
var useApproveEventPass = (options = {}) => {
|
|
31933
|
+
return useConnectedMutation(ApproveEventPass, options);
|
|
31934
|
+
};
|
|
31935
|
+
|
|
31843
31936
|
// src/mutations/events/passes/useCancelEventPass.ts
|
|
31844
31937
|
var CancelEventPass = async ({
|
|
31845
31938
|
eventId,
|
|
@@ -31988,6 +32081,54 @@ var useDeleteEventPass = (options = {}) => {
|
|
|
31988
32081
|
return useConnectedMutation(DeleteEventPass, options);
|
|
31989
32082
|
};
|
|
31990
32083
|
|
|
32084
|
+
// src/mutations/events/passes/useDenyEventPass.ts
|
|
32085
|
+
var DenyEventPass = async ({
|
|
32086
|
+
eventId,
|
|
32087
|
+
passId,
|
|
32088
|
+
sendEmail,
|
|
32089
|
+
refund,
|
|
32090
|
+
adminApiParams,
|
|
32091
|
+
queryClient
|
|
32092
|
+
}) => {
|
|
32093
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
32094
|
+
const { data } = await connectedXM.put(
|
|
32095
|
+
`/events/${eventId}/passes/${passId}/deny`,
|
|
32096
|
+
{ sendEmail, refund }
|
|
32097
|
+
);
|
|
32098
|
+
if (queryClient && data.status === "ok") {
|
|
32099
|
+
if (data.data.ticketId) {
|
|
32100
|
+
queryClient.invalidateQueries({
|
|
32101
|
+
queryKey: EVENT_PASS_TYPE_PASSES_QUERY_KEY(eventId, data.data.ticketId)
|
|
32102
|
+
});
|
|
32103
|
+
}
|
|
32104
|
+
if (data.data.attendee) {
|
|
32105
|
+
queryClient.invalidateQueries({
|
|
32106
|
+
queryKey: EVENT_ATTENDEE_QUERY_KEY(
|
|
32107
|
+
eventId,
|
|
32108
|
+
data.data.attendee.accountId
|
|
32109
|
+
)
|
|
32110
|
+
});
|
|
32111
|
+
queryClient.invalidateQueries({
|
|
32112
|
+
queryKey: EVENT_ATTENDEE_PASSES_QUERY_KEY(
|
|
32113
|
+
eventId,
|
|
32114
|
+
data.data.attendee.accountId
|
|
32115
|
+
)
|
|
32116
|
+
});
|
|
32117
|
+
}
|
|
32118
|
+
queryClient.invalidateQueries({
|
|
32119
|
+
queryKey: EVENT_PASSES_QUERY_KEY(eventId)
|
|
32120
|
+
});
|
|
32121
|
+
queryClient.invalidateQueries({
|
|
32122
|
+
queryKey: EVENT_PENDING_PASSES_QUERY_KEY(eventId)
|
|
32123
|
+
});
|
|
32124
|
+
SET_EVENT_PASS_QUERY_DATA(queryClient, [eventId, passId], data);
|
|
32125
|
+
}
|
|
32126
|
+
return data;
|
|
32127
|
+
};
|
|
32128
|
+
var useDenyEventPass = (options = {}) => {
|
|
32129
|
+
return useConnectedMutation(DenyEventPass, options);
|
|
32130
|
+
};
|
|
32131
|
+
|
|
31991
32132
|
// src/mutations/events/passes/useIndexEventPasses.ts
|
|
31992
32133
|
var IndexEventPasses = async ({
|
|
31993
32134
|
eventId,
|
|
@@ -42579,6 +42720,7 @@ var useUpdateTier = (options = {}) => {
|
|
|
42579
42720
|
AdminNotificationType,
|
|
42580
42721
|
AdvertisementType,
|
|
42581
42722
|
AppendInfiniteQuery,
|
|
42723
|
+
ApproveEventPass,
|
|
42582
42724
|
ArchiveActivity,
|
|
42583
42725
|
AttachBookingSpaceQuestionSearchList,
|
|
42584
42726
|
AttachEventQuestionSearchList,
|
|
@@ -42936,6 +43078,7 @@ var useUpdateTier = (options = {}) => {
|
|
|
42936
43078
|
DeleteUserImage,
|
|
42937
43079
|
DeleteVideo,
|
|
42938
43080
|
DeleteVideoCaption,
|
|
43081
|
+
DenyEventPass,
|
|
42939
43082
|
DetachBookingSpaceQuestionSearchList,
|
|
42940
43083
|
DetachEventQuestionSearchList,
|
|
42941
43084
|
DetachEventSessionQuestionSearchList,
|
|
@@ -43048,6 +43191,7 @@ var useUpdateTier = (options = {}) => {
|
|
|
43048
43191
|
EVENT_PASS_TYPE_TRANSLATIONS_QUERY_KEY,
|
|
43049
43192
|
EVENT_PASS_TYPE_TRANSLATION_QUERY_KEY,
|
|
43050
43193
|
EVENT_PAYMENTS_QUERY_KEY,
|
|
43194
|
+
EVENT_PENDING_PASSES_QUERY_KEY,
|
|
43051
43195
|
EVENT_QUERY_KEY,
|
|
43052
43196
|
EVENT_QUESTIONS_QUERY_KEY,
|
|
43053
43197
|
EVENT_QUESTION_CHOICES_QUERY_KEY,
|
|
@@ -43408,6 +43552,7 @@ var useUpdateTier = (options = {}) => {
|
|
|
43408
43552
|
GetEventPassTypes,
|
|
43409
43553
|
GetEventPasses,
|
|
43410
43554
|
GetEventPayments,
|
|
43555
|
+
GetEventPendingPasses,
|
|
43411
43556
|
GetEventQuestion,
|
|
43412
43557
|
GetEventQuestionChoice,
|
|
43413
43558
|
GetEventQuestionChoiceSubQuestions,
|
|
@@ -44830,6 +44975,7 @@ var useUpdateTier = (options = {}) => {
|
|
|
44830
44975
|
useAddSurveyQuestionChoiceSubQuestion,
|
|
44831
44976
|
useAddSurveySectionQuestion,
|
|
44832
44977
|
useAddSurveySession,
|
|
44978
|
+
useApproveEventPass,
|
|
44833
44979
|
useArchiveActivity,
|
|
44834
44980
|
useAttachBookingSpaceQuestionSearchList,
|
|
44835
44981
|
useAttachEventQuestionSearchList,
|
|
@@ -45118,6 +45264,7 @@ var useUpdateTier = (options = {}) => {
|
|
|
45118
45264
|
useDeleteUserImage,
|
|
45119
45265
|
useDeleteVideo,
|
|
45120
45266
|
useDeleteVideoCaption,
|
|
45267
|
+
useDenyEventPass,
|
|
45121
45268
|
useDetachBookingSpaceQuestionSearchList,
|
|
45122
45269
|
useDetachEventQuestionSearchList,
|
|
45123
45270
|
useDetachEventSessionQuestionSearchList,
|
|
@@ -45339,6 +45486,7 @@ var useUpdateTier = (options = {}) => {
|
|
|
45339
45486
|
useGetEventPassTypes,
|
|
45340
45487
|
useGetEventPasses,
|
|
45341
45488
|
useGetEventPayments,
|
|
45489
|
+
useGetEventPendingPasses,
|
|
45342
45490
|
useGetEventQuestion,
|
|
45343
45491
|
useGetEventQuestionChoice,
|
|
45344
45492
|
useGetEventQuestionChoiceSubQuestions,
|