@connectedxm/client 1.4.4 → 1.4.5
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 +6 -39
- package/dist/index.mjs +6 -39
- 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
|
@@ -9818,36 +9818,19 @@ var useUpdateSelfChatChannelNotifications = (options = {}) => {
|
|
|
9818
9818
|
// src/mutations/self/events/registration/useApplySelfEventRegistrationCoupon.ts
|
|
9819
9819
|
var SelectSelfEventRegistrationCoupon = async ({
|
|
9820
9820
|
eventId,
|
|
9821
|
-
|
|
9821
|
+
passes,
|
|
9822
|
+
couponCode,
|
|
9822
9823
|
clientApiParams,
|
|
9823
9824
|
queryClient
|
|
9824
9825
|
}) => {
|
|
9825
9826
|
const clientApi = await GetClientAPI(clientApiParams);
|
|
9826
9827
|
const { data } = await clientApi.post(
|
|
9827
9828
|
`/self/events/${eventId}/registration/coupon`,
|
|
9828
|
-
{
|
|
9829
|
-
couponId
|
|
9830
|
-
}
|
|
9829
|
+
{ passes, couponCode }
|
|
9831
9830
|
);
|
|
9832
9831
|
if (queryClient && data.status === "ok") {
|
|
9833
|
-
SET_SELF_EVENT_REGISTRATION_QUERY_DATA(queryClient, [eventId], data, [
|
|
9834
|
-
clientApiParams.locale
|
|
9835
|
-
]);
|
|
9836
9832
|
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)
|
|
9833
|
+
queryKey: SELF_EVENT_REGISTRATION_QUERY_KEY(eventId)
|
|
9851
9834
|
});
|
|
9852
9835
|
}
|
|
9853
9836
|
return data;
|
|
@@ -9864,27 +9847,11 @@ var RemoveSelfEventRegistrationCoupon = async ({
|
|
|
9864
9847
|
}) => {
|
|
9865
9848
|
const clientApi = await GetClientAPI(clientApiParams);
|
|
9866
9849
|
const { data } = await clientApi.delete(
|
|
9867
|
-
`/self/events/${eventId}/registration/
|
|
9850
|
+
`/self/events/${eventId}/registration/coupon`
|
|
9868
9851
|
);
|
|
9869
9852
|
if (queryClient && data.status === "ok") {
|
|
9870
9853
|
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)
|
|
9854
|
+
queryKey: SELF_EVENT_REGISTRATION_QUERY_KEY(eventId)
|
|
9888
9855
|
});
|
|
9889
9856
|
}
|
|
9890
9857
|
return data;
|
package/dist/index.mjs
CHANGED
|
@@ -8827,36 +8827,19 @@ var useUpdateSelfChatChannelNotifications = (options = {}) => {
|
|
|
8827
8827
|
// src/mutations/self/events/registration/useApplySelfEventRegistrationCoupon.ts
|
|
8828
8828
|
var SelectSelfEventRegistrationCoupon = async ({
|
|
8829
8829
|
eventId,
|
|
8830
|
-
|
|
8830
|
+
passes,
|
|
8831
|
+
couponCode,
|
|
8831
8832
|
clientApiParams,
|
|
8832
8833
|
queryClient
|
|
8833
8834
|
}) => {
|
|
8834
8835
|
const clientApi = await GetClientAPI(clientApiParams);
|
|
8835
8836
|
const { data } = await clientApi.post(
|
|
8836
8837
|
`/self/events/${eventId}/registration/coupon`,
|
|
8837
|
-
{
|
|
8838
|
-
couponId
|
|
8839
|
-
}
|
|
8838
|
+
{ passes, couponCode }
|
|
8840
8839
|
);
|
|
8841
8840
|
if (queryClient && data.status === "ok") {
|
|
8842
|
-
SET_SELF_EVENT_REGISTRATION_QUERY_DATA(queryClient, [eventId], data, [
|
|
8843
|
-
clientApiParams.locale
|
|
8844
|
-
]);
|
|
8845
8841
|
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)
|
|
8842
|
+
queryKey: SELF_EVENT_REGISTRATION_QUERY_KEY(eventId)
|
|
8860
8843
|
});
|
|
8861
8844
|
}
|
|
8862
8845
|
return data;
|
|
@@ -8873,27 +8856,11 @@ var RemoveSelfEventRegistrationCoupon = async ({
|
|
|
8873
8856
|
}) => {
|
|
8874
8857
|
const clientApi = await GetClientAPI(clientApiParams);
|
|
8875
8858
|
const { data } = await clientApi.delete(
|
|
8876
|
-
`/self/events/${eventId}/registration/
|
|
8859
|
+
`/self/events/${eventId}/registration/coupon`
|
|
8877
8860
|
);
|
|
8878
8861
|
if (queryClient && data.status === "ok") {
|
|
8879
8862
|
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)
|
|
8863
|
+
queryKey: SELF_EVENT_REGISTRATION_QUERY_KEY(eventId)
|
|
8897
8864
|
});
|
|
8898
8865
|
}
|
|
8899
8866
|
return data;
|