@connectedxm/client 5.0.3 → 5.0.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.ts +9 -3
- package/dist/index.js +10 -5
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -368,6 +368,11 @@ interface RegistrationEventDetails extends BaseEvent {
|
|
|
368
368
|
registrationLimit: number;
|
|
369
369
|
registrationStart: string;
|
|
370
370
|
registrationEnd: string;
|
|
371
|
+
allowMultipleRegistrations: boolean;
|
|
372
|
+
allowSplitPayment: boolean;
|
|
373
|
+
splitPaymentPercentage: number;
|
|
374
|
+
splitPaymentNetDays: number | null;
|
|
375
|
+
splitPaymentDueDate: string | null;
|
|
371
376
|
tickets: {
|
|
372
377
|
enableCoupons: boolean;
|
|
373
378
|
}[];
|
|
@@ -4683,13 +4688,14 @@ interface GetSelfEventTicketCouponIntentProps extends SingleQueryParams {
|
|
|
4683
4688
|
declare const GetSelfEventTicketCouponIntent: ({ eventId, ticketId, quantity, addressId, clientApiParams, }: GetSelfEventTicketCouponIntentProps) => Promise<Awaited<ConnectedXMResponse<PaymentIntent>>>;
|
|
4684
4689
|
declare const useGetSelfEventTicketCouponIntent: (eventId?: string, ticketId?: string, quantity?: number, addressId?: string, options?: SingleQueryOptions<ReturnType<typeof GetSelfEventTicketCouponIntent>>) => _tanstack_react_query.UseQueryResult<ConnectedXMResponse<PaymentIntent>, axios.AxiosError<ConnectedXMResponse<any>, any>>;
|
|
4685
4690
|
|
|
4686
|
-
declare const SELF_EVENT_REGISTRATION_INTENT_QUERY_KEY: (eventId: string, addressId?: string) => unknown[];
|
|
4691
|
+
declare const SELF_EVENT_REGISTRATION_INTENT_QUERY_KEY: (eventId: string, addressId?: string, split?: boolean) => unknown[];
|
|
4687
4692
|
interface GetSelfEventRegistrationIntentProps extends SingleQueryParams {
|
|
4688
4693
|
eventId: string;
|
|
4689
4694
|
addressId: string;
|
|
4695
|
+
split: boolean;
|
|
4690
4696
|
}
|
|
4691
|
-
declare const GetSelfEventRegistrationIntent: ({ eventId, addressId, clientApiParams, }: GetSelfEventRegistrationIntentProps) => Promise<Awaited<ConnectedXMResponse<PaymentIntent>>>;
|
|
4692
|
-
declare const useGetSelfEventRegistrationIntent: (eventId?: string, addressId?: string, options?: SingleQueryOptions<ReturnType<typeof GetSelfEventRegistrationIntent>>) => _tanstack_react_query.UseQueryResult<ConnectedXMResponse<PaymentIntent>, axios.AxiosError<ConnectedXMResponse<any>, any>>;
|
|
4697
|
+
declare const GetSelfEventRegistrationIntent: ({ eventId, addressId, split, clientApiParams, }: GetSelfEventRegistrationIntentProps) => Promise<Awaited<ConnectedXMResponse<PaymentIntent>>>;
|
|
4698
|
+
declare const useGetSelfEventRegistrationIntent: (eventId?: string, addressId?: string, split?: boolean, options?: SingleQueryOptions<ReturnType<typeof GetSelfEventRegistrationIntent>>) => _tanstack_react_query.UseQueryResult<ConnectedXMResponse<PaymentIntent>, axios.AxiosError<ConnectedXMResponse<any>, any>>;
|
|
4693
4699
|
|
|
4694
4700
|
declare const SELF_EVENT_SESSION_REGISTRATION_QUERY_KEY: (eventId: string, sessionId: string) => QueryKey;
|
|
4695
4701
|
declare const SET_SELF_EVENT_SESSION_REGISTRATION_QUERY_DATA: (client: QueryClient, keyParams: Parameters<typeof SELF_EVENT_SESSION_REGISTRATION_QUERY_KEY>, response: Awaited<ReturnType<typeof GetSelfEventSessionRegistration>>, baseKeys?: Parameters<typeof GetBaseSingleQueryKeys>) => void;
|
package/dist/index.js
CHANGED
|
@@ -4144,16 +4144,20 @@ var useGetSelfEventTicketCouponIntent = (eventId = "", ticketId = "", quantity =
|
|
|
4144
4144
|
};
|
|
4145
4145
|
|
|
4146
4146
|
// src/queries/self/registration/useGetSelfEventRegistrationIntent.ts
|
|
4147
|
-
var SELF_EVENT_REGISTRATION_INTENT_QUERY_KEY = (eventId, addressId) => {
|
|
4147
|
+
var SELF_EVENT_REGISTRATION_INTENT_QUERY_KEY = (eventId, addressId, split) => {
|
|
4148
4148
|
const key = [...SELF_EVENT_REGISTRATION_QUERY_KEY(eventId), "INTENT"];
|
|
4149
4149
|
if (addressId) {
|
|
4150
4150
|
key.push(addressId);
|
|
4151
4151
|
}
|
|
4152
|
+
if (split) {
|
|
4153
|
+
key.push("SPLIT");
|
|
4154
|
+
}
|
|
4152
4155
|
return key;
|
|
4153
4156
|
};
|
|
4154
4157
|
var GetSelfEventRegistrationIntent = async ({
|
|
4155
4158
|
eventId,
|
|
4156
4159
|
addressId,
|
|
4160
|
+
split,
|
|
4157
4161
|
clientApiParams
|
|
4158
4162
|
}) => {
|
|
4159
4163
|
const clientApi = await GetClientAPI(clientApiParams);
|
|
@@ -4161,17 +4165,18 @@ var GetSelfEventRegistrationIntent = async ({
|
|
|
4161
4165
|
`/self/events/${eventId}/registration/intent`,
|
|
4162
4166
|
{
|
|
4163
4167
|
params: {
|
|
4164
|
-
addressId
|
|
4168
|
+
addressId,
|
|
4169
|
+
split: split ? "true" : "false"
|
|
4165
4170
|
}
|
|
4166
4171
|
}
|
|
4167
4172
|
);
|
|
4168
4173
|
return data;
|
|
4169
4174
|
};
|
|
4170
|
-
var useGetSelfEventRegistrationIntent = (eventId = "", addressId = "", options = {}) => {
|
|
4175
|
+
var useGetSelfEventRegistrationIntent = (eventId = "", addressId = "", split = false, options = {}) => {
|
|
4171
4176
|
const { authenticated } = useConnected();
|
|
4172
4177
|
return useConnectedSingleQuery_default(
|
|
4173
|
-
SELF_EVENT_REGISTRATION_INTENT_QUERY_KEY(eventId, addressId),
|
|
4174
|
-
(params) => GetSelfEventRegistrationIntent({ eventId, addressId, ...params }),
|
|
4178
|
+
SELF_EVENT_REGISTRATION_INTENT_QUERY_KEY(eventId, addressId, split),
|
|
4179
|
+
(params) => GetSelfEventRegistrationIntent({ eventId, addressId, split, ...params }),
|
|
4175
4180
|
{
|
|
4176
4181
|
staleTime: Infinity,
|
|
4177
4182
|
retry: false,
|