@connectedxm/client 1.4.4 → 1.4.6
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 +9 -5
- package/dist/index.d.ts +9 -5
- package/dist/index.js +8 -40
- package/dist/index.mjs +8 -40
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -3762,16 +3762,20 @@ declare const useUpdateSelfChatChannelNotifications: (options?: Omit<MutationOpt
|
|
|
3762
3762
|
|
|
3763
3763
|
interface SelectSelfEventRegistrationCouponParams extends MutationParams {
|
|
3764
3764
|
eventId: string;
|
|
3765
|
-
|
|
3765
|
+
couponCode: string;
|
|
3766
|
+
passes: {
|
|
3767
|
+
id: string;
|
|
3768
|
+
ticketId: string;
|
|
3769
|
+
}[];
|
|
3766
3770
|
}
|
|
3767
|
-
declare const SelectSelfEventRegistrationCoupon: ({ eventId,
|
|
3768
|
-
declare const useSelectSelfEventRegistrationCoupon: (options?: Omit<MutationOptions<Awaited<ReturnType<typeof SelectSelfEventRegistrationCoupon>>, Omit<SelectSelfEventRegistrationCouponParams, "queryClient" | "clientApiParams">>, "mutationFn">) => _tanstack_react_query.UseMutationResult<ConnectedXMResponse<
|
|
3771
|
+
declare const SelectSelfEventRegistrationCoupon: ({ eventId, passes, couponCode, clientApiParams, queryClient, }: SelectSelfEventRegistrationCouponParams) => Promise<ConnectedXMResponse<BaseCoupon>>;
|
|
3772
|
+
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>;
|
|
3769
3773
|
|
|
3770
3774
|
interface RemoveSelfEventRegistrationCouponParams extends MutationParams {
|
|
3771
3775
|
eventId: string;
|
|
3772
3776
|
}
|
|
3773
|
-
declare const RemoveSelfEventRegistrationCoupon: ({ eventId, clientApiParams, queryClient, }: RemoveSelfEventRegistrationCouponParams) => Promise<ConnectedXMResponse<
|
|
3774
|
-
declare const useRemoveSelfEventRegistrationCoupon: (options?: Omit<MutationOptions<Awaited<ReturnType<typeof RemoveSelfEventRegistrationCoupon>>, Omit<RemoveSelfEventRegistrationCouponParams, "queryClient" | "clientApiParams">>, "mutationFn">) => _tanstack_react_query.UseMutationResult<ConnectedXMResponse<
|
|
3777
|
+
declare const RemoveSelfEventRegistrationCoupon: ({ eventId, clientApiParams, queryClient, }: RemoveSelfEventRegistrationCouponParams) => Promise<ConnectedXMResponse<null>>;
|
|
3778
|
+
declare const useRemoveSelfEventRegistrationCoupon: (options?: Omit<MutationOptions<Awaited<ReturnType<typeof RemoveSelfEventRegistrationCoupon>>, Omit<RemoveSelfEventRegistrationCouponParams, "queryClient" | "clientApiParams">>, "mutationFn">) => _tanstack_react_query.UseMutationResult<ConnectedXMResponse<null>, axios.AxiosError<ConnectedXMResponse<null>, any>, Omit<RemoveSelfEventRegistrationCouponParams, "queryClient" | "clientApiParams">, unknown>;
|
|
3775
3779
|
|
|
3776
3780
|
interface UpdateSelfEventRegistrationPassesParams extends MutationParams {
|
|
3777
3781
|
eventId: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -3762,16 +3762,20 @@ declare const useUpdateSelfChatChannelNotifications: (options?: Omit<MutationOpt
|
|
|
3762
3762
|
|
|
3763
3763
|
interface SelectSelfEventRegistrationCouponParams extends MutationParams {
|
|
3764
3764
|
eventId: string;
|
|
3765
|
-
|
|
3765
|
+
couponCode: string;
|
|
3766
|
+
passes: {
|
|
3767
|
+
id: string;
|
|
3768
|
+
ticketId: string;
|
|
3769
|
+
}[];
|
|
3766
3770
|
}
|
|
3767
|
-
declare const SelectSelfEventRegistrationCoupon: ({ eventId,
|
|
3768
|
-
declare const useSelectSelfEventRegistrationCoupon: (options?: Omit<MutationOptions<Awaited<ReturnType<typeof SelectSelfEventRegistrationCoupon>>, Omit<SelectSelfEventRegistrationCouponParams, "queryClient" | "clientApiParams">>, "mutationFn">) => _tanstack_react_query.UseMutationResult<ConnectedXMResponse<
|
|
3771
|
+
declare const SelectSelfEventRegistrationCoupon: ({ eventId, passes, couponCode, clientApiParams, queryClient, }: SelectSelfEventRegistrationCouponParams) => Promise<ConnectedXMResponse<BaseCoupon>>;
|
|
3772
|
+
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>;
|
|
3769
3773
|
|
|
3770
3774
|
interface RemoveSelfEventRegistrationCouponParams extends MutationParams {
|
|
3771
3775
|
eventId: string;
|
|
3772
3776
|
}
|
|
3773
|
-
declare const RemoveSelfEventRegistrationCoupon: ({ eventId, clientApiParams, queryClient, }: RemoveSelfEventRegistrationCouponParams) => Promise<ConnectedXMResponse<
|
|
3774
|
-
declare const useRemoveSelfEventRegistrationCoupon: (options?: Omit<MutationOptions<Awaited<ReturnType<typeof RemoveSelfEventRegistrationCoupon>>, Omit<RemoveSelfEventRegistrationCouponParams, "queryClient" | "clientApiParams">>, "mutationFn">) => _tanstack_react_query.UseMutationResult<ConnectedXMResponse<
|
|
3777
|
+
declare const RemoveSelfEventRegistrationCoupon: ({ eventId, clientApiParams, queryClient, }: RemoveSelfEventRegistrationCouponParams) => Promise<ConnectedXMResponse<null>>;
|
|
3778
|
+
declare const useRemoveSelfEventRegistrationCoupon: (options?: Omit<MutationOptions<Awaited<ReturnType<typeof RemoveSelfEventRegistrationCoupon>>, Omit<RemoveSelfEventRegistrationCouponParams, "queryClient" | "clientApiParams">>, "mutationFn">) => _tanstack_react_query.UseMutationResult<ConnectedXMResponse<null>, axios.AxiosError<ConnectedXMResponse<null>, any>, Omit<RemoveSelfEventRegistrationCouponParams, "queryClient" | "clientApiParams">, unknown>;
|
|
3775
3779
|
|
|
3776
3780
|
interface UpdateSelfEventRegistrationPassesParams extends MutationParams {
|
|
3777
3781
|
eventId: string;
|
package/dist/index.js
CHANGED
|
@@ -9499,7 +9499,8 @@ var CapturePaymentIntent = async ({
|
|
|
9499
9499
|
exact: false
|
|
9500
9500
|
});
|
|
9501
9501
|
queryClient.invalidateQueries({
|
|
9502
|
-
queryKey:
|
|
9502
|
+
queryKey: ["SELF", "ATTENDEE"],
|
|
9503
|
+
exact: false
|
|
9503
9504
|
});
|
|
9504
9505
|
ADD_SELF_RELATIONSHIP(
|
|
9505
9506
|
queryClient,
|
|
@@ -9818,36 +9819,19 @@ var useUpdateSelfChatChannelNotifications = (options = {}) => {
|
|
|
9818
9819
|
// src/mutations/self/events/registration/useApplySelfEventRegistrationCoupon.ts
|
|
9819
9820
|
var SelectSelfEventRegistrationCoupon = async ({
|
|
9820
9821
|
eventId,
|
|
9821
|
-
|
|
9822
|
+
passes,
|
|
9823
|
+
couponCode,
|
|
9822
9824
|
clientApiParams,
|
|
9823
9825
|
queryClient
|
|
9824
9826
|
}) => {
|
|
9825
9827
|
const clientApi = await GetClientAPI(clientApiParams);
|
|
9826
9828
|
const { data } = await clientApi.post(
|
|
9827
9829
|
`/self/events/${eventId}/registration/coupon`,
|
|
9828
|
-
{
|
|
9829
|
-
couponId
|
|
9830
|
-
}
|
|
9830
|
+
{ passes, couponCode }
|
|
9831
9831
|
);
|
|
9832
9832
|
if (queryClient && data.status === "ok") {
|
|
9833
|
-
SET_SELF_EVENT_REGISTRATION_QUERY_DATA(queryClient, [eventId], data, [
|
|
9834
|
-
clientApiParams.locale
|
|
9835
|
-
]);
|
|
9836
9833
|
queryClient.removeQueries({
|
|
9837
|
-
queryKey:
|
|
9838
|
-
exact: false
|
|
9839
|
-
});
|
|
9840
|
-
queryClient.invalidateQueries({
|
|
9841
|
-
queryKey: SELF_EVENTS_QUERY_KEY(false)
|
|
9842
|
-
});
|
|
9843
|
-
queryClient.invalidateQueries({
|
|
9844
|
-
queryKey: SELF_EVENTS_QUERY_KEY(true)
|
|
9845
|
-
});
|
|
9846
|
-
queryClient.invalidateQueries({
|
|
9847
|
-
queryKey: EVENT_QUERY_KEY(eventId)
|
|
9848
|
-
});
|
|
9849
|
-
queryClient.invalidateQueries({
|
|
9850
|
-
queryKey: EVENT_REGISTRANTS_QUERY_KEY(eventId)
|
|
9834
|
+
queryKey: SELF_EVENT_REGISTRATION_QUERY_KEY(eventId)
|
|
9851
9835
|
});
|
|
9852
9836
|
}
|
|
9853
9837
|
return data;
|
|
@@ -9864,27 +9848,11 @@ var RemoveSelfEventRegistrationCoupon = async ({
|
|
|
9864
9848
|
}) => {
|
|
9865
9849
|
const clientApi = await GetClientAPI(clientApiParams);
|
|
9866
9850
|
const { data } = await clientApi.delete(
|
|
9867
|
-
`/self/events/${eventId}/registration/
|
|
9851
|
+
`/self/events/${eventId}/registration/coupon`
|
|
9868
9852
|
);
|
|
9869
9853
|
if (queryClient && data.status === "ok") {
|
|
9870
9854
|
queryClient.removeQueries({
|
|
9871
|
-
queryKey:
|
|
9872
|
-
exact: false
|
|
9873
|
-
});
|
|
9874
|
-
SET_SELF_EVENT_REGISTRATION_QUERY_DATA(queryClient, [eventId], data, [
|
|
9875
|
-
clientApiParams.locale
|
|
9876
|
-
]);
|
|
9877
|
-
queryClient.invalidateQueries({
|
|
9878
|
-
queryKey: SELF_EVENTS_QUERY_KEY(false)
|
|
9879
|
-
});
|
|
9880
|
-
queryClient.invalidateQueries({
|
|
9881
|
-
queryKey: SELF_EVENTS_QUERY_KEY(true)
|
|
9882
|
-
});
|
|
9883
|
-
queryClient.invalidateQueries({
|
|
9884
|
-
queryKey: EVENT_QUERY_KEY(eventId)
|
|
9885
|
-
});
|
|
9886
|
-
queryClient.invalidateQueries({
|
|
9887
|
-
queryKey: EVENT_REGISTRANTS_QUERY_KEY(eventId)
|
|
9855
|
+
queryKey: SELF_EVENT_REGISTRATION_QUERY_KEY(eventId)
|
|
9888
9856
|
});
|
|
9889
9857
|
}
|
|
9890
9858
|
return data;
|
package/dist/index.mjs
CHANGED
|
@@ -8508,7 +8508,8 @@ var CapturePaymentIntent = async ({
|
|
|
8508
8508
|
exact: false
|
|
8509
8509
|
});
|
|
8510
8510
|
queryClient.invalidateQueries({
|
|
8511
|
-
queryKey:
|
|
8511
|
+
queryKey: ["SELF", "ATTENDEE"],
|
|
8512
|
+
exact: false
|
|
8512
8513
|
});
|
|
8513
8514
|
ADD_SELF_RELATIONSHIP(
|
|
8514
8515
|
queryClient,
|
|
@@ -8827,36 +8828,19 @@ var useUpdateSelfChatChannelNotifications = (options = {}) => {
|
|
|
8827
8828
|
// src/mutations/self/events/registration/useApplySelfEventRegistrationCoupon.ts
|
|
8828
8829
|
var SelectSelfEventRegistrationCoupon = async ({
|
|
8829
8830
|
eventId,
|
|
8830
|
-
|
|
8831
|
+
passes,
|
|
8832
|
+
couponCode,
|
|
8831
8833
|
clientApiParams,
|
|
8832
8834
|
queryClient
|
|
8833
8835
|
}) => {
|
|
8834
8836
|
const clientApi = await GetClientAPI(clientApiParams);
|
|
8835
8837
|
const { data } = await clientApi.post(
|
|
8836
8838
|
`/self/events/${eventId}/registration/coupon`,
|
|
8837
|
-
{
|
|
8838
|
-
couponId
|
|
8839
|
-
}
|
|
8839
|
+
{ passes, couponCode }
|
|
8840
8840
|
);
|
|
8841
8841
|
if (queryClient && data.status === "ok") {
|
|
8842
|
-
SET_SELF_EVENT_REGISTRATION_QUERY_DATA(queryClient, [eventId], data, [
|
|
8843
|
-
clientApiParams.locale
|
|
8844
|
-
]);
|
|
8845
8842
|
queryClient.removeQueries({
|
|
8846
|
-
queryKey:
|
|
8847
|
-
exact: false
|
|
8848
|
-
});
|
|
8849
|
-
queryClient.invalidateQueries({
|
|
8850
|
-
queryKey: SELF_EVENTS_QUERY_KEY(false)
|
|
8851
|
-
});
|
|
8852
|
-
queryClient.invalidateQueries({
|
|
8853
|
-
queryKey: SELF_EVENTS_QUERY_KEY(true)
|
|
8854
|
-
});
|
|
8855
|
-
queryClient.invalidateQueries({
|
|
8856
|
-
queryKey: EVENT_QUERY_KEY(eventId)
|
|
8857
|
-
});
|
|
8858
|
-
queryClient.invalidateQueries({
|
|
8859
|
-
queryKey: EVENT_REGISTRANTS_QUERY_KEY(eventId)
|
|
8843
|
+
queryKey: SELF_EVENT_REGISTRATION_QUERY_KEY(eventId)
|
|
8860
8844
|
});
|
|
8861
8845
|
}
|
|
8862
8846
|
return data;
|
|
@@ -8873,27 +8857,11 @@ var RemoveSelfEventRegistrationCoupon = async ({
|
|
|
8873
8857
|
}) => {
|
|
8874
8858
|
const clientApi = await GetClientAPI(clientApiParams);
|
|
8875
8859
|
const { data } = await clientApi.delete(
|
|
8876
|
-
`/self/events/${eventId}/registration/
|
|
8860
|
+
`/self/events/${eventId}/registration/coupon`
|
|
8877
8861
|
);
|
|
8878
8862
|
if (queryClient && data.status === "ok") {
|
|
8879
8863
|
queryClient.removeQueries({
|
|
8880
|
-
queryKey:
|
|
8881
|
-
exact: false
|
|
8882
|
-
});
|
|
8883
|
-
SET_SELF_EVENT_REGISTRATION_QUERY_DATA(queryClient, [eventId], data, [
|
|
8884
|
-
clientApiParams.locale
|
|
8885
|
-
]);
|
|
8886
|
-
queryClient.invalidateQueries({
|
|
8887
|
-
queryKey: SELF_EVENTS_QUERY_KEY(false)
|
|
8888
|
-
});
|
|
8889
|
-
queryClient.invalidateQueries({
|
|
8890
|
-
queryKey: SELF_EVENTS_QUERY_KEY(true)
|
|
8891
|
-
});
|
|
8892
|
-
queryClient.invalidateQueries({
|
|
8893
|
-
queryKey: EVENT_QUERY_KEY(eventId)
|
|
8894
|
-
});
|
|
8895
|
-
queryClient.invalidateQueries({
|
|
8896
|
-
queryKey: EVENT_REGISTRANTS_QUERY_KEY(eventId)
|
|
8864
|
+
queryKey: SELF_EVENT_REGISTRATION_QUERY_KEY(eventId)
|
|
8897
8865
|
});
|
|
8898
8866
|
}
|
|
8899
8867
|
return data;
|