@connectedxm/client 1.4.29 → 1.5.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.d.mts +25 -9
- package/dist/index.d.ts +25 -9
- package/dist/index.js +4 -2
- package/dist/index.mjs +4 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -539,7 +539,7 @@ interface BasePass {
|
|
|
539
539
|
createdAt: string;
|
|
540
540
|
}
|
|
541
541
|
interface Pass extends BasePass {
|
|
542
|
-
package:
|
|
542
|
+
package: BaseAttendeePackage | null;
|
|
543
543
|
updatedAt: string;
|
|
544
544
|
amtPaid: number;
|
|
545
545
|
amtRefunded: number;
|
|
@@ -1997,9 +1997,9 @@ interface BaseEventPackage {
|
|
|
1997
1997
|
description: string;
|
|
1998
1998
|
price: number;
|
|
1999
1999
|
isActive: boolean;
|
|
2000
|
+
passes: BaseEventPackagePass[];
|
|
2000
2001
|
}
|
|
2001
2002
|
interface EventPackage extends BaseEventPackage {
|
|
2002
|
-
passes: BasePass[];
|
|
2003
2003
|
createdAt: string;
|
|
2004
2004
|
updatedAt: string;
|
|
2005
2005
|
}
|
|
@@ -2019,12 +2019,10 @@ interface BaseAttendeePackage {
|
|
|
2019
2019
|
packageId: string;
|
|
2020
2020
|
package: BaseEventPackage;
|
|
2021
2021
|
status: keyof typeof PurchaseStatus;
|
|
2022
|
-
|
|
2023
|
-
amtRefunded: number;
|
|
2022
|
+
createdAt: string;
|
|
2024
2023
|
}
|
|
2025
2024
|
interface AttendeePackage extends BaseAttendeePackage {
|
|
2026
2025
|
passes: BasePass[];
|
|
2027
|
-
createdAt: string;
|
|
2028
2026
|
updatedAt: string;
|
|
2029
2027
|
}
|
|
2030
2028
|
|
|
@@ -2966,8 +2964,14 @@ interface GetSelfEventRegistrationPassTypesProps extends SingleQueryParams {
|
|
|
2966
2964
|
eventId: string;
|
|
2967
2965
|
passTypeId?: string;
|
|
2968
2966
|
}
|
|
2969
|
-
declare const GetSelfEventRegistrationPassTypes: ({ eventId, passTypeId, clientApiParams, }: GetSelfEventRegistrationPassTypesProps) => Promise<ConnectedXMResponse<
|
|
2970
|
-
|
|
2967
|
+
declare const GetSelfEventRegistrationPassTypes: ({ eventId, passTypeId, clientApiParams, }: GetSelfEventRegistrationPassTypesProps) => Promise<ConnectedXMResponse<{
|
|
2968
|
+
passTypes: PassType[];
|
|
2969
|
+
packages: EventPackage[];
|
|
2970
|
+
}>>;
|
|
2971
|
+
declare const useGetSelfEventRegistrationPassTypes: (eventId?: string, passTypeId?: string, options?: SingleQueryOptions<ReturnType<typeof GetSelfEventRegistrationPassTypes>>) => _tanstack_react_query.UseQueryResult<ConnectedXMResponse<{
|
|
2972
|
+
passTypes: PassType[];
|
|
2973
|
+
packages: EventPackage[];
|
|
2974
|
+
}>, axios.AxiosError<ConnectedXMResponse<any>, any>>;
|
|
2971
2975
|
|
|
2972
2976
|
interface PassTypeWithAddOns extends BasePassType {
|
|
2973
2977
|
addOns: EventAddOn[];
|
|
@@ -4057,9 +4061,15 @@ interface SelectSelfEventRegistrationCouponParams extends MutationParams {
|
|
|
4057
4061
|
passes: {
|
|
4058
4062
|
id: string;
|
|
4059
4063
|
ticketId: string;
|
|
4064
|
+
couponId?: string;
|
|
4065
|
+
packageId?: string;
|
|
4066
|
+
}[];
|
|
4067
|
+
packages: {
|
|
4068
|
+
id: string;
|
|
4069
|
+
packageId: string;
|
|
4060
4070
|
}[];
|
|
4061
4071
|
}
|
|
4062
|
-
declare const SelectSelfEventRegistrationCoupon: ({ eventId, passes, couponCode, clientApiParams, queryClient, }: SelectSelfEventRegistrationCouponParams) => Promise<ConnectedXMResponse<BaseCoupon>>;
|
|
4072
|
+
declare const SelectSelfEventRegistrationCoupon: ({ eventId, passes, packages, couponCode, clientApiParams, queryClient, }: SelectSelfEventRegistrationCouponParams) => Promise<ConnectedXMResponse<BaseCoupon>>;
|
|
4063
4073
|
declare const useSelectSelfEventRegistrationCoupon: (options?: Omit<MutationOptions<Awaited<ReturnType<typeof SelectSelfEventRegistrationCoupon>>, Omit<SelectSelfEventRegistrationCouponParams, "queryClient" | "clientApiParams">>, "mutationFn">) => _tanstack_react_query.UseMutationResult<ConnectedXMResponse<BaseCoupon>, axios.AxiosError<ConnectedXMResponse<BaseCoupon>, any>, Omit<SelectSelfEventRegistrationCouponParams, "queryClient" | "clientApiParams">, unknown>;
|
|
4064
4074
|
|
|
4065
4075
|
interface RemoveSelfEventRegistrationCouponParams extends MutationParams {
|
|
@@ -4082,9 +4092,15 @@ interface UpdateSelfEventRegistrationPassesParams extends MutationParams {
|
|
|
4082
4092
|
passes: {
|
|
4083
4093
|
id: string;
|
|
4084
4094
|
ticketId: string;
|
|
4095
|
+
couponId?: string;
|
|
4096
|
+
packageId?: string;
|
|
4097
|
+
}[];
|
|
4098
|
+
packages: {
|
|
4099
|
+
id: string;
|
|
4100
|
+
packageId: string;
|
|
4085
4101
|
}[];
|
|
4086
4102
|
}
|
|
4087
|
-
declare const UpdateSelfEventRegistrationPasses: ({ eventId, passes, clientApiParams, queryClient, }: UpdateSelfEventRegistrationPassesParams) => Promise<ConnectedXMResponse<null>>;
|
|
4103
|
+
declare const UpdateSelfEventRegistrationPasses: ({ eventId, passes, packages, clientApiParams, queryClient, }: UpdateSelfEventRegistrationPassesParams) => Promise<ConnectedXMResponse<null>>;
|
|
4088
4104
|
declare const useUpdateSelfEventRegistrationPasses: (options?: Omit<MutationOptions<Awaited<ReturnType<typeof UpdateSelfEventRegistrationPasses>>, Omit<UpdateSelfEventRegistrationPassesParams, "queryClient" | "clientApiParams">>, "mutationFn">) => _tanstack_react_query.UseMutationResult<ConnectedXMResponse<null>, axios.AxiosError<ConnectedXMResponse<null>, any>, Omit<UpdateSelfEventRegistrationPassesParams, "queryClient" | "clientApiParams">, unknown>;
|
|
4089
4105
|
|
|
4090
4106
|
interface UpdateSelfEventRegistrationPurchaseAddOnParams extends MutationParams {
|
package/dist/index.d.ts
CHANGED
|
@@ -539,7 +539,7 @@ interface BasePass {
|
|
|
539
539
|
createdAt: string;
|
|
540
540
|
}
|
|
541
541
|
interface Pass extends BasePass {
|
|
542
|
-
package:
|
|
542
|
+
package: BaseAttendeePackage | null;
|
|
543
543
|
updatedAt: string;
|
|
544
544
|
amtPaid: number;
|
|
545
545
|
amtRefunded: number;
|
|
@@ -1997,9 +1997,9 @@ interface BaseEventPackage {
|
|
|
1997
1997
|
description: string;
|
|
1998
1998
|
price: number;
|
|
1999
1999
|
isActive: boolean;
|
|
2000
|
+
passes: BaseEventPackagePass[];
|
|
2000
2001
|
}
|
|
2001
2002
|
interface EventPackage extends BaseEventPackage {
|
|
2002
|
-
passes: BasePass[];
|
|
2003
2003
|
createdAt: string;
|
|
2004
2004
|
updatedAt: string;
|
|
2005
2005
|
}
|
|
@@ -2019,12 +2019,10 @@ interface BaseAttendeePackage {
|
|
|
2019
2019
|
packageId: string;
|
|
2020
2020
|
package: BaseEventPackage;
|
|
2021
2021
|
status: keyof typeof PurchaseStatus;
|
|
2022
|
-
|
|
2023
|
-
amtRefunded: number;
|
|
2022
|
+
createdAt: string;
|
|
2024
2023
|
}
|
|
2025
2024
|
interface AttendeePackage extends BaseAttendeePackage {
|
|
2026
2025
|
passes: BasePass[];
|
|
2027
|
-
createdAt: string;
|
|
2028
2026
|
updatedAt: string;
|
|
2029
2027
|
}
|
|
2030
2028
|
|
|
@@ -2966,8 +2964,14 @@ interface GetSelfEventRegistrationPassTypesProps extends SingleQueryParams {
|
|
|
2966
2964
|
eventId: string;
|
|
2967
2965
|
passTypeId?: string;
|
|
2968
2966
|
}
|
|
2969
|
-
declare const GetSelfEventRegistrationPassTypes: ({ eventId, passTypeId, clientApiParams, }: GetSelfEventRegistrationPassTypesProps) => Promise<ConnectedXMResponse<
|
|
2970
|
-
|
|
2967
|
+
declare const GetSelfEventRegistrationPassTypes: ({ eventId, passTypeId, clientApiParams, }: GetSelfEventRegistrationPassTypesProps) => Promise<ConnectedXMResponse<{
|
|
2968
|
+
passTypes: PassType[];
|
|
2969
|
+
packages: EventPackage[];
|
|
2970
|
+
}>>;
|
|
2971
|
+
declare const useGetSelfEventRegistrationPassTypes: (eventId?: string, passTypeId?: string, options?: SingleQueryOptions<ReturnType<typeof GetSelfEventRegistrationPassTypes>>) => _tanstack_react_query.UseQueryResult<ConnectedXMResponse<{
|
|
2972
|
+
passTypes: PassType[];
|
|
2973
|
+
packages: EventPackage[];
|
|
2974
|
+
}>, axios.AxiosError<ConnectedXMResponse<any>, any>>;
|
|
2971
2975
|
|
|
2972
2976
|
interface PassTypeWithAddOns extends BasePassType {
|
|
2973
2977
|
addOns: EventAddOn[];
|
|
@@ -4057,9 +4061,15 @@ interface SelectSelfEventRegistrationCouponParams extends MutationParams {
|
|
|
4057
4061
|
passes: {
|
|
4058
4062
|
id: string;
|
|
4059
4063
|
ticketId: string;
|
|
4064
|
+
couponId?: string;
|
|
4065
|
+
packageId?: string;
|
|
4066
|
+
}[];
|
|
4067
|
+
packages: {
|
|
4068
|
+
id: string;
|
|
4069
|
+
packageId: string;
|
|
4060
4070
|
}[];
|
|
4061
4071
|
}
|
|
4062
|
-
declare const SelectSelfEventRegistrationCoupon: ({ eventId, passes, couponCode, clientApiParams, queryClient, }: SelectSelfEventRegistrationCouponParams) => Promise<ConnectedXMResponse<BaseCoupon>>;
|
|
4072
|
+
declare const SelectSelfEventRegistrationCoupon: ({ eventId, passes, packages, couponCode, clientApiParams, queryClient, }: SelectSelfEventRegistrationCouponParams) => Promise<ConnectedXMResponse<BaseCoupon>>;
|
|
4063
4073
|
declare const useSelectSelfEventRegistrationCoupon: (options?: Omit<MutationOptions<Awaited<ReturnType<typeof SelectSelfEventRegistrationCoupon>>, Omit<SelectSelfEventRegistrationCouponParams, "queryClient" | "clientApiParams">>, "mutationFn">) => _tanstack_react_query.UseMutationResult<ConnectedXMResponse<BaseCoupon>, axios.AxiosError<ConnectedXMResponse<BaseCoupon>, any>, Omit<SelectSelfEventRegistrationCouponParams, "queryClient" | "clientApiParams">, unknown>;
|
|
4064
4074
|
|
|
4065
4075
|
interface RemoveSelfEventRegistrationCouponParams extends MutationParams {
|
|
@@ -4082,9 +4092,15 @@ interface UpdateSelfEventRegistrationPassesParams extends MutationParams {
|
|
|
4082
4092
|
passes: {
|
|
4083
4093
|
id: string;
|
|
4084
4094
|
ticketId: string;
|
|
4095
|
+
couponId?: string;
|
|
4096
|
+
packageId?: string;
|
|
4097
|
+
}[];
|
|
4098
|
+
packages: {
|
|
4099
|
+
id: string;
|
|
4100
|
+
packageId: string;
|
|
4085
4101
|
}[];
|
|
4086
4102
|
}
|
|
4087
|
-
declare const UpdateSelfEventRegistrationPasses: ({ eventId, passes, clientApiParams, queryClient, }: UpdateSelfEventRegistrationPassesParams) => Promise<ConnectedXMResponse<null>>;
|
|
4103
|
+
declare const UpdateSelfEventRegistrationPasses: ({ eventId, passes, packages, clientApiParams, queryClient, }: UpdateSelfEventRegistrationPassesParams) => Promise<ConnectedXMResponse<null>>;
|
|
4088
4104
|
declare const useUpdateSelfEventRegistrationPasses: (options?: Omit<MutationOptions<Awaited<ReturnType<typeof UpdateSelfEventRegistrationPasses>>, Omit<UpdateSelfEventRegistrationPassesParams, "queryClient" | "clientApiParams">>, "mutationFn">) => _tanstack_react_query.UseMutationResult<ConnectedXMResponse<null>, axios.AxiosError<ConnectedXMResponse<null>, any>, Omit<UpdateSelfEventRegistrationPassesParams, "queryClient" | "clientApiParams">, unknown>;
|
|
4089
4105
|
|
|
4090
4106
|
interface UpdateSelfEventRegistrationPurchaseAddOnParams extends MutationParams {
|
package/dist/index.js
CHANGED
|
@@ -10617,6 +10617,7 @@ var useUpdateSelfChatChannelNotifications = (options = {}) => {
|
|
|
10617
10617
|
var SelectSelfEventRegistrationCoupon = async ({
|
|
10618
10618
|
eventId,
|
|
10619
10619
|
passes,
|
|
10620
|
+
packages,
|
|
10620
10621
|
couponCode,
|
|
10621
10622
|
clientApiParams,
|
|
10622
10623
|
queryClient
|
|
@@ -10624,7 +10625,7 @@ var SelectSelfEventRegistrationCoupon = async ({
|
|
|
10624
10625
|
const clientApi = await GetClientAPI(clientApiParams);
|
|
10625
10626
|
const { data } = await clientApi.post(
|
|
10626
10627
|
`/self/events/${eventId}/registration/coupon`,
|
|
10627
|
-
{ passes, couponCode }
|
|
10628
|
+
{ passes, packages, couponCode }
|
|
10628
10629
|
);
|
|
10629
10630
|
if (queryClient && data.status === "ok") {
|
|
10630
10631
|
queryClient.removeQueries({
|
|
@@ -10698,13 +10699,14 @@ var useUpdateSelfEventRegistrationPassResponse = (options = {}) => {
|
|
|
10698
10699
|
var UpdateSelfEventRegistrationPasses = async ({
|
|
10699
10700
|
eventId,
|
|
10700
10701
|
passes,
|
|
10702
|
+
packages,
|
|
10701
10703
|
clientApiParams,
|
|
10702
10704
|
queryClient
|
|
10703
10705
|
}) => {
|
|
10704
10706
|
const clientApi = await GetClientAPI(clientApiParams);
|
|
10705
10707
|
const { data } = await clientApi.post(
|
|
10706
10708
|
`/self/events/${eventId}/registration/passes`,
|
|
10707
|
-
passes
|
|
10709
|
+
{ passes, packages }
|
|
10708
10710
|
);
|
|
10709
10711
|
if (queryClient && data.status === "ok") {
|
|
10710
10712
|
queryClient.removeQueries({
|
package/dist/index.mjs
CHANGED
|
@@ -9565,6 +9565,7 @@ var useUpdateSelfChatChannelNotifications = (options = {}) => {
|
|
|
9565
9565
|
var SelectSelfEventRegistrationCoupon = async ({
|
|
9566
9566
|
eventId,
|
|
9567
9567
|
passes,
|
|
9568
|
+
packages,
|
|
9568
9569
|
couponCode,
|
|
9569
9570
|
clientApiParams,
|
|
9570
9571
|
queryClient
|
|
@@ -9572,7 +9573,7 @@ var SelectSelfEventRegistrationCoupon = async ({
|
|
|
9572
9573
|
const clientApi = await GetClientAPI(clientApiParams);
|
|
9573
9574
|
const { data } = await clientApi.post(
|
|
9574
9575
|
`/self/events/${eventId}/registration/coupon`,
|
|
9575
|
-
{ passes, couponCode }
|
|
9576
|
+
{ passes, packages, couponCode }
|
|
9576
9577
|
);
|
|
9577
9578
|
if (queryClient && data.status === "ok") {
|
|
9578
9579
|
queryClient.removeQueries({
|
|
@@ -9646,13 +9647,14 @@ var useUpdateSelfEventRegistrationPassResponse = (options = {}) => {
|
|
|
9646
9647
|
var UpdateSelfEventRegistrationPasses = async ({
|
|
9647
9648
|
eventId,
|
|
9648
9649
|
passes,
|
|
9650
|
+
packages,
|
|
9649
9651
|
clientApiParams,
|
|
9650
9652
|
queryClient
|
|
9651
9653
|
}) => {
|
|
9652
9654
|
const clientApi = await GetClientAPI(clientApiParams);
|
|
9653
9655
|
const { data } = await clientApi.post(
|
|
9654
9656
|
`/self/events/${eventId}/registration/passes`,
|
|
9655
|
-
passes
|
|
9657
|
+
{ passes, packages }
|
|
9656
9658
|
);
|
|
9657
9659
|
if (queryClient && data.status === "ok") {
|
|
9658
9660
|
queryClient.removeQueries({
|