@connectedxm/admin 6.7.6 → 6.7.8
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 +110 -6
- package/dist/index.d.cts +43 -4
- package/dist/index.d.ts +43 -4
- package/dist/index.js +106 -6
- package/openapi.json +135 -2
- package/package.json +13 -13
package/dist/index.cjs
CHANGED
|
@@ -203,6 +203,7 @@ __export(index_exports, {
|
|
|
203
203
|
CancelEventPass: () => CancelEventPass,
|
|
204
204
|
CancelGroupInvitation: () => CancelGroupInvitation,
|
|
205
205
|
ChannelFormat: () => ChannelFormat,
|
|
206
|
+
CheckinEventPass: () => CheckinEventPass,
|
|
206
207
|
CloneEvent: () => CloneEvent,
|
|
207
208
|
CloseStreamSession: () => CloseStreamSession,
|
|
208
209
|
ConfirmLogin: () => ConfirmLogin,
|
|
@@ -1998,6 +1999,7 @@ __export(index_exports, {
|
|
|
1998
1999
|
ToggleTaxIntegration: () => ToggleTaxIntegration,
|
|
1999
2000
|
TransferEventPass: () => TransferEventPass,
|
|
2000
2001
|
TransformPrice: () => TransformPrice,
|
|
2002
|
+
UndoCheckinEventPass: () => UndoCheckinEventPass,
|
|
2001
2003
|
UpdateAccount: () => UpdateAccount,
|
|
2002
2004
|
UpdateAccountAddress: () => UpdateAccountAddress,
|
|
2003
2005
|
UpdateAccountAttribute: () => UpdateAccountAttribute,
|
|
@@ -2253,6 +2255,7 @@ __export(index_exports, {
|
|
|
2253
2255
|
useCancelChannelContentPublishSchedule: () => useCancelChannelContentPublishSchedule,
|
|
2254
2256
|
useCancelEventPass: () => useCancelEventPass,
|
|
2255
2257
|
useCancelGroupInvitation: () => useCancelGroupInvitation,
|
|
2258
|
+
useCheckinEventPass: () => useCheckinEventPass,
|
|
2256
2259
|
useCloneEvent: () => useCloneEvent,
|
|
2257
2260
|
useCloseStreamSession: () => useCloseStreamSession,
|
|
2258
2261
|
useConfirmLogin: () => useConfirmLogin,
|
|
@@ -3107,6 +3110,7 @@ __export(index_exports, {
|
|
|
3107
3110
|
useToggleOrganizationPaymentIntegration: () => useToggleOrganizationPaymentIntegration,
|
|
3108
3111
|
useToggleTaxIntegration: () => useToggleTaxIntegration,
|
|
3109
3112
|
useTransferEventPass: () => useTransferEventPass,
|
|
3113
|
+
useUndoCheckinEventPass: () => useUndoCheckinEventPass,
|
|
3110
3114
|
useUpdateAccount: () => useUpdateAccount,
|
|
3111
3115
|
useUpdateAccountAddress: () => useUpdateAccountAddress,
|
|
3112
3116
|
useUpdateAccountAttribute: () => useUpdateAccountAttribute,
|
|
@@ -9577,11 +9581,14 @@ var useGetEventCoHosts = (eventId, params = {}, options = {}) => {
|
|
|
9577
9581
|
};
|
|
9578
9582
|
|
|
9579
9583
|
// src/queries/events/coupons/useGetEventCoupons.ts
|
|
9580
|
-
var EVENT_COUPONS_QUERY_KEY = (eventId, prePaid) => {
|
|
9584
|
+
var EVENT_COUPONS_QUERY_KEY = (eventId, prePaid, includeVariants) => {
|
|
9581
9585
|
const key = [...EVENT_QUERY_KEY(eventId), "COUPONS"];
|
|
9582
9586
|
if (typeof prePaid === "boolean") {
|
|
9583
9587
|
key.push(prePaid ? "GROUP" : "STANDARD");
|
|
9584
9588
|
}
|
|
9589
|
+
if (includeVariants === true) {
|
|
9590
|
+
key.push("VARIANTS");
|
|
9591
|
+
}
|
|
9585
9592
|
return key;
|
|
9586
9593
|
};
|
|
9587
9594
|
var SET_EVENT_COUPONS_QUERY_DATA = (client, keyParams, response) => {
|
|
@@ -9594,7 +9601,8 @@ var GetEventCoupons = async ({
|
|
|
9594
9601
|
orderBy,
|
|
9595
9602
|
search,
|
|
9596
9603
|
adminApiParams,
|
|
9597
|
-
prePaid
|
|
9604
|
+
prePaid,
|
|
9605
|
+
includeVariants
|
|
9598
9606
|
}) => {
|
|
9599
9607
|
const adminApi = await GetAdminAPI(adminApiParams);
|
|
9600
9608
|
const { data } = await adminApi.get(`/events/${eventId}/coupons`, {
|
|
@@ -9603,18 +9611,20 @@ var GetEventCoupons = async ({
|
|
|
9603
9611
|
pageSize: pageSize || void 0,
|
|
9604
9612
|
orderBy: orderBy || void 0,
|
|
9605
9613
|
search: search || void 0,
|
|
9606
|
-
prePaid: typeof prePaid === "boolean" ? prePaid ? "true" : "false" : void 0
|
|
9614
|
+
prePaid: typeof prePaid === "boolean" ? prePaid ? "true" : "false" : void 0,
|
|
9615
|
+
includeVariants: includeVariants === true ? "true" : void 0
|
|
9607
9616
|
}
|
|
9608
9617
|
});
|
|
9609
9618
|
return data;
|
|
9610
9619
|
};
|
|
9611
|
-
var useGetEventCoupons = (eventId = "", prePaid, params = {}, options = {}) => {
|
|
9620
|
+
var useGetEventCoupons = (eventId = "", prePaid, includeVariants, params = {}, options = {}) => {
|
|
9612
9621
|
return useConnectedInfiniteQuery(
|
|
9613
|
-
EVENT_COUPONS_QUERY_KEY(eventId, prePaid),
|
|
9622
|
+
EVENT_COUPONS_QUERY_KEY(eventId, prePaid, includeVariants),
|
|
9614
9623
|
(params2) => GetEventCoupons({
|
|
9615
9624
|
...params2,
|
|
9616
9625
|
eventId,
|
|
9617
|
-
prePaid
|
|
9626
|
+
prePaid,
|
|
9627
|
+
includeVariants
|
|
9618
9628
|
}),
|
|
9619
9629
|
params,
|
|
9620
9630
|
{
|
|
@@ -29166,6 +29176,51 @@ var useCancelEventPass = (options = {}) => {
|
|
|
29166
29176
|
return useConnectedMutation(CancelEventPass, options);
|
|
29167
29177
|
};
|
|
29168
29178
|
|
|
29179
|
+
// src/mutations/events/passes/useCheckinEventPass.ts
|
|
29180
|
+
var CheckinEventPass = async ({
|
|
29181
|
+
eventId,
|
|
29182
|
+
passId,
|
|
29183
|
+
adminApiParams,
|
|
29184
|
+
queryClient
|
|
29185
|
+
}) => {
|
|
29186
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
29187
|
+
const { data } = await connectedXM.post(
|
|
29188
|
+
`/events/${eventId}/passes/${passId}/checkin`
|
|
29189
|
+
);
|
|
29190
|
+
if (queryClient && data.status === "ok") {
|
|
29191
|
+
if (data.data.ticketId) {
|
|
29192
|
+
queryClient.invalidateQueries({
|
|
29193
|
+
queryKey: EVENT_PASS_TYPE_PASSES_QUERY_KEY(eventId, data.data.ticketId)
|
|
29194
|
+
});
|
|
29195
|
+
}
|
|
29196
|
+
if (data.data.attendee) {
|
|
29197
|
+
queryClient.invalidateQueries({
|
|
29198
|
+
queryKey: EVENT_ATTENDEE_QUERY_KEY(
|
|
29199
|
+
eventId,
|
|
29200
|
+
data.data.attendee.accountId
|
|
29201
|
+
)
|
|
29202
|
+
});
|
|
29203
|
+
queryClient.invalidateQueries({
|
|
29204
|
+
queryKey: EVENT_ATTENDEE_PASSES_QUERY_KEY(
|
|
29205
|
+
eventId,
|
|
29206
|
+
data.data.attendee.accountId
|
|
29207
|
+
)
|
|
29208
|
+
});
|
|
29209
|
+
}
|
|
29210
|
+
queryClient.invalidateQueries({
|
|
29211
|
+
queryKey: EVENT_PASSES_QUERY_KEY(eventId)
|
|
29212
|
+
});
|
|
29213
|
+
queryClient.invalidateQueries({
|
|
29214
|
+
queryKey: EVENT_PASSES_QUERY_KEY(eventId, true)
|
|
29215
|
+
});
|
|
29216
|
+
SET_EVENT_PASS_QUERY_DATA(queryClient, [eventId, passId], data);
|
|
29217
|
+
}
|
|
29218
|
+
return data;
|
|
29219
|
+
};
|
|
29220
|
+
var useCheckinEventPass = (options = {}) => {
|
|
29221
|
+
return useConnectedMutation(CheckinEventPass, options);
|
|
29222
|
+
};
|
|
29223
|
+
|
|
29169
29224
|
// src/mutations/events/passes/useCreateEventPass.ts
|
|
29170
29225
|
var CreateEventPass = async ({
|
|
29171
29226
|
eventId,
|
|
@@ -29366,6 +29421,51 @@ var useTransferEventPass = (options = {}) => {
|
|
|
29366
29421
|
return useConnectedMutation(TransferEventPass, options);
|
|
29367
29422
|
};
|
|
29368
29423
|
|
|
29424
|
+
// src/mutations/events/passes/useUndoCheckinEventPass.ts
|
|
29425
|
+
var UndoCheckinEventPass = async ({
|
|
29426
|
+
eventId,
|
|
29427
|
+
passId,
|
|
29428
|
+
adminApiParams,
|
|
29429
|
+
queryClient
|
|
29430
|
+
}) => {
|
|
29431
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
29432
|
+
const { data } = await connectedXM.post(
|
|
29433
|
+
`/events/${eventId}/passes/${passId}/checkin/undo`
|
|
29434
|
+
);
|
|
29435
|
+
if (queryClient && data.status === "ok") {
|
|
29436
|
+
if (data.data.ticketId) {
|
|
29437
|
+
queryClient.invalidateQueries({
|
|
29438
|
+
queryKey: EVENT_PASS_TYPE_PASSES_QUERY_KEY(eventId, data.data.ticketId)
|
|
29439
|
+
});
|
|
29440
|
+
}
|
|
29441
|
+
if (data.data.attendee) {
|
|
29442
|
+
queryClient.invalidateQueries({
|
|
29443
|
+
queryKey: EVENT_ATTENDEE_QUERY_KEY(
|
|
29444
|
+
eventId,
|
|
29445
|
+
data.data.attendee.accountId
|
|
29446
|
+
)
|
|
29447
|
+
});
|
|
29448
|
+
queryClient.invalidateQueries({
|
|
29449
|
+
queryKey: EVENT_ATTENDEE_PASSES_QUERY_KEY(
|
|
29450
|
+
eventId,
|
|
29451
|
+
data.data.attendee.accountId
|
|
29452
|
+
)
|
|
29453
|
+
});
|
|
29454
|
+
}
|
|
29455
|
+
queryClient.invalidateQueries({
|
|
29456
|
+
queryKey: EVENT_PASSES_QUERY_KEY(eventId)
|
|
29457
|
+
});
|
|
29458
|
+
queryClient.invalidateQueries({
|
|
29459
|
+
queryKey: EVENT_PASSES_QUERY_KEY(eventId, false)
|
|
29460
|
+
});
|
|
29461
|
+
SET_EVENT_PASS_QUERY_DATA(queryClient, [eventId, passId], data);
|
|
29462
|
+
}
|
|
29463
|
+
return data;
|
|
29464
|
+
};
|
|
29465
|
+
var useUndoCheckinEventPass = (options = {}) => {
|
|
29466
|
+
return useConnectedMutation(UndoCheckinEventPass, options);
|
|
29467
|
+
};
|
|
29468
|
+
|
|
29369
29469
|
// src/mutations/events/passes/useUpdateEventPass.ts
|
|
29370
29470
|
var UpdateEventPass = async ({
|
|
29371
29471
|
eventId,
|
|
@@ -39500,6 +39600,7 @@ var useUpdateTier = (options = {}) => {
|
|
|
39500
39600
|
CancelEventPass,
|
|
39501
39601
|
CancelGroupInvitation,
|
|
39502
39602
|
ChannelFormat,
|
|
39603
|
+
CheckinEventPass,
|
|
39503
39604
|
CloneEvent,
|
|
39504
39605
|
CloseStreamSession,
|
|
39505
39606
|
ConfirmLogin,
|
|
@@ -41295,6 +41396,7 @@ var useUpdateTier = (options = {}) => {
|
|
|
41295
41396
|
ToggleTaxIntegration,
|
|
41296
41397
|
TransferEventPass,
|
|
41297
41398
|
TransformPrice,
|
|
41399
|
+
UndoCheckinEventPass,
|
|
41298
41400
|
UpdateAccount,
|
|
41299
41401
|
UpdateAccountAddress,
|
|
41300
41402
|
UpdateAccountAttribute,
|
|
@@ -41550,6 +41652,7 @@ var useUpdateTier = (options = {}) => {
|
|
|
41550
41652
|
useCancelChannelContentPublishSchedule,
|
|
41551
41653
|
useCancelEventPass,
|
|
41552
41654
|
useCancelGroupInvitation,
|
|
41655
|
+
useCheckinEventPass,
|
|
41553
41656
|
useCloneEvent,
|
|
41554
41657
|
useCloseStreamSession,
|
|
41555
41658
|
useConfirmLogin,
|
|
@@ -42404,6 +42507,7 @@ var useUpdateTier = (options = {}) => {
|
|
|
42404
42507
|
useToggleOrganizationPaymentIntegration,
|
|
42405
42508
|
useToggleTaxIntegration,
|
|
42406
42509
|
useTransferEventPass,
|
|
42510
|
+
useUndoCheckinEventPass,
|
|
42407
42511
|
useUpdateAccount,
|
|
42408
42512
|
useUpdateAccountAddress,
|
|
42409
42513
|
useUpdateAccountAttribute,
|