@connectedxm/admin 3.0.2 → 3.0.4
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 +2 -4
- package/dist/index.d.cts +4 -6
- package/dist/index.d.ts +4 -6
- package/dist/index.js +2 -4
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -16345,6 +16345,7 @@ var PaymentLineItemType = /* @__PURE__ */ ((PaymentLineItemType2) => {
|
|
|
16345
16345
|
PaymentLineItemType2["booking"] = "booking";
|
|
16346
16346
|
PaymentLineItemType2["coupon"] = "coupon";
|
|
16347
16347
|
PaymentLineItemType2["subscription"] = "subscription";
|
|
16348
|
+
PaymentLineItemType2["refund"] = "refund";
|
|
16348
16349
|
return PaymentLineItemType2;
|
|
16349
16350
|
})(PaymentLineItemType || {});
|
|
16350
16351
|
var TaxIntegrationType = /* @__PURE__ */ ((TaxIntegrationType2) => {
|
|
@@ -28916,16 +28917,13 @@ var CancelEventPass = async ({
|
|
|
28916
28917
|
eventId,
|
|
28917
28918
|
passId,
|
|
28918
28919
|
sendEmail,
|
|
28919
|
-
issueRefund,
|
|
28920
|
-
adminRefundAmt,
|
|
28921
|
-
removeReservation,
|
|
28922
28920
|
adminApiParams,
|
|
28923
28921
|
queryClient
|
|
28924
28922
|
}) => {
|
|
28925
28923
|
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
28926
28924
|
const { data } = await connectedXM.put(
|
|
28927
28925
|
`/events/${eventId}/passes/${passId}/cancel`,
|
|
28928
|
-
{ sendEmail
|
|
28926
|
+
{ sendEmail }
|
|
28929
28927
|
);
|
|
28930
28928
|
if (queryClient && data.status === "ok") {
|
|
28931
28929
|
if (data.data.ticketId) {
|
package/dist/index.d.cts
CHANGED
|
@@ -1647,7 +1647,8 @@ declare enum PaymentLineItemType {
|
|
|
1647
1647
|
invoice = "invoice",
|
|
1648
1648
|
booking = "booking",
|
|
1649
1649
|
coupon = "coupon",
|
|
1650
|
-
subscription = "subscription"
|
|
1650
|
+
subscription = "subscription",
|
|
1651
|
+
refund = "refund"
|
|
1651
1652
|
}
|
|
1652
1653
|
interface BasePaymentLineItem {
|
|
1653
1654
|
id: string;
|
|
@@ -21339,15 +21340,12 @@ interface CancelEventPassParams extends MutationParams {
|
|
|
21339
21340
|
eventId: string;
|
|
21340
21341
|
passId: string;
|
|
21341
21342
|
sendEmail?: boolean;
|
|
21342
|
-
issueRefund?: boolean;
|
|
21343
|
-
adminRefundAmt?: number;
|
|
21344
|
-
removeReservation?: boolean;
|
|
21345
21343
|
}
|
|
21346
21344
|
/**
|
|
21347
21345
|
* @category Methods
|
|
21348
21346
|
* @group Event-Attendee-Passes
|
|
21349
21347
|
*/
|
|
21350
|
-
declare const CancelEventPass: ({ eventId, passId, sendEmail,
|
|
21348
|
+
declare const CancelEventPass: ({ eventId, passId, sendEmail, adminApiParams, queryClient, }: CancelEventPassParams) => Promise<ConnectedXMResponse<EventPass>>;
|
|
21351
21349
|
/**
|
|
21352
21350
|
* @category Mutations
|
|
21353
21351
|
* @group Event-Attendee-Passes
|
|
@@ -26530,7 +26528,7 @@ declare const DeleteOrganizationWebhook: ({ webhookId, adminApiParams, queryClie
|
|
|
26530
26528
|
declare const useDeleteOrganizationWebhook: (options?: Omit<ConnectedXMMutationOptions<Awaited<ReturnType<typeof DeleteOrganizationWebhook>>, Omit<DeleteOrganizationWebhookParams, "queryClient" | "adminApiParams">>, "mutationFn">) => _tanstack_react_query.UseMutationResult<ConnectedXMResponse<null>, axios.AxiosError<ConnectedXMResponse<null>, any>, Omit<DeleteOrganizationWebhookParams, "queryClient" | "adminApiParams">, unknown>;
|
|
26531
26529
|
|
|
26532
26530
|
interface RefundLineItem {
|
|
26533
|
-
|
|
26531
|
+
id: string;
|
|
26534
26532
|
amount: number;
|
|
26535
26533
|
}
|
|
26536
26534
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1647,7 +1647,8 @@ declare enum PaymentLineItemType {
|
|
|
1647
1647
|
invoice = "invoice",
|
|
1648
1648
|
booking = "booking",
|
|
1649
1649
|
coupon = "coupon",
|
|
1650
|
-
subscription = "subscription"
|
|
1650
|
+
subscription = "subscription",
|
|
1651
|
+
refund = "refund"
|
|
1651
1652
|
}
|
|
1652
1653
|
interface BasePaymentLineItem {
|
|
1653
1654
|
id: string;
|
|
@@ -21339,15 +21340,12 @@ interface CancelEventPassParams extends MutationParams {
|
|
|
21339
21340
|
eventId: string;
|
|
21340
21341
|
passId: string;
|
|
21341
21342
|
sendEmail?: boolean;
|
|
21342
|
-
issueRefund?: boolean;
|
|
21343
|
-
adminRefundAmt?: number;
|
|
21344
|
-
removeReservation?: boolean;
|
|
21345
21343
|
}
|
|
21346
21344
|
/**
|
|
21347
21345
|
* @category Methods
|
|
21348
21346
|
* @group Event-Attendee-Passes
|
|
21349
21347
|
*/
|
|
21350
|
-
declare const CancelEventPass: ({ eventId, passId, sendEmail,
|
|
21348
|
+
declare const CancelEventPass: ({ eventId, passId, sendEmail, adminApiParams, queryClient, }: CancelEventPassParams) => Promise<ConnectedXMResponse<EventPass>>;
|
|
21351
21349
|
/**
|
|
21352
21350
|
* @category Mutations
|
|
21353
21351
|
* @group Event-Attendee-Passes
|
|
@@ -26530,7 +26528,7 @@ declare const DeleteOrganizationWebhook: ({ webhookId, adminApiParams, queryClie
|
|
|
26530
26528
|
declare const useDeleteOrganizationWebhook: (options?: Omit<ConnectedXMMutationOptions<Awaited<ReturnType<typeof DeleteOrganizationWebhook>>, Omit<DeleteOrganizationWebhookParams, "queryClient" | "adminApiParams">>, "mutationFn">) => _tanstack_react_query.UseMutationResult<ConnectedXMResponse<null>, axios.AxiosError<ConnectedXMResponse<null>, any>, Omit<DeleteOrganizationWebhookParams, "queryClient" | "adminApiParams">, unknown>;
|
|
26531
26529
|
|
|
26532
26530
|
interface RefundLineItem {
|
|
26533
|
-
|
|
26531
|
+
id: string;
|
|
26534
26532
|
amount: number;
|
|
26535
26533
|
}
|
|
26536
26534
|
/**
|
package/dist/index.js
CHANGED
|
@@ -13240,6 +13240,7 @@ var PaymentLineItemType = /* @__PURE__ */ ((PaymentLineItemType2) => {
|
|
|
13240
13240
|
PaymentLineItemType2["booking"] = "booking";
|
|
13241
13241
|
PaymentLineItemType2["coupon"] = "coupon";
|
|
13242
13242
|
PaymentLineItemType2["subscription"] = "subscription";
|
|
13243
|
+
PaymentLineItemType2["refund"] = "refund";
|
|
13243
13244
|
return PaymentLineItemType2;
|
|
13244
13245
|
})(PaymentLineItemType || {});
|
|
13245
13246
|
var TaxIntegrationType = /* @__PURE__ */ ((TaxIntegrationType2) => {
|
|
@@ -25816,16 +25817,13 @@ var CancelEventPass = async ({
|
|
|
25816
25817
|
eventId,
|
|
25817
25818
|
passId,
|
|
25818
25819
|
sendEmail,
|
|
25819
|
-
issueRefund,
|
|
25820
|
-
adminRefundAmt,
|
|
25821
|
-
removeReservation,
|
|
25822
25820
|
adminApiParams,
|
|
25823
25821
|
queryClient
|
|
25824
25822
|
}) => {
|
|
25825
25823
|
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
25826
25824
|
const { data } = await connectedXM.put(
|
|
25827
25825
|
`/events/${eventId}/passes/${passId}/cancel`,
|
|
25828
|
-
{ sendEmail
|
|
25826
|
+
{ sendEmail }
|
|
25829
25827
|
);
|
|
25830
25828
|
if (queryClient && data.status === "ok") {
|
|
25831
25829
|
if (data.data.ticketId) {
|