@connectedxm/client 0.3.2 → 0.3.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 +17 -3
- package/dist/index.d.ts +17 -3
- package/dist/index.js +7 -4
- package/dist/index.mjs +7 -4
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -422,7 +422,12 @@ interface BaseTicket {
|
|
|
422
422
|
minQuantityPerSale: number;
|
|
423
423
|
maxQuantityPerSale: number;
|
|
424
424
|
supply: number | null;
|
|
425
|
-
|
|
425
|
+
minReservationStart: string | null;
|
|
426
|
+
reservationStart: string | null;
|
|
427
|
+
maxReservationStart: string | null;
|
|
428
|
+
minReservationEnd: string | null;
|
|
429
|
+
reservationEnd: string | null;
|
|
430
|
+
maxReservationEnd: string | null;
|
|
426
431
|
}
|
|
427
432
|
interface Ticket extends BaseTicket {
|
|
428
433
|
visibility: TicketVisibility;
|
|
@@ -448,6 +453,8 @@ interface BasePurchase {
|
|
|
448
453
|
ticketId: string | null;
|
|
449
454
|
ticket: BaseTicket | null;
|
|
450
455
|
addOns: BaseEventAddOn[];
|
|
456
|
+
reservationStart: string | null;
|
|
457
|
+
reservationEnd: string | null;
|
|
451
458
|
reservationSectionLocation: BaseEventReservationSectionLocation | null;
|
|
452
459
|
responses: BaseRegistrationQuestionResponse[];
|
|
453
460
|
}
|
|
@@ -1198,7 +1205,12 @@ interface BaseEventAddOn {
|
|
|
1198
1205
|
price: number;
|
|
1199
1206
|
sortOrder: number;
|
|
1200
1207
|
eventId: string;
|
|
1201
|
-
|
|
1208
|
+
minReservationStart: string | null;
|
|
1209
|
+
reservationStart: string | null;
|
|
1210
|
+
maxReservationStart: string | null;
|
|
1211
|
+
minReservationEnd: string | null;
|
|
1212
|
+
reservationEnd: string | null;
|
|
1213
|
+
maxReservationEnd: string | null;
|
|
1202
1214
|
image: BaseImage | null;
|
|
1203
1215
|
createdAt: string;
|
|
1204
1216
|
updatedAt: string;
|
|
@@ -2308,8 +2320,10 @@ interface SelectSelfEventRegistrationPurchaseReservationParams extends MutationP
|
|
|
2308
2320
|
registrationId: string;
|
|
2309
2321
|
purchaseId: string;
|
|
2310
2322
|
locationId: string;
|
|
2323
|
+
reservationStart?: string;
|
|
2324
|
+
reservationEnd?: string;
|
|
2311
2325
|
}
|
|
2312
|
-
declare const SelectSelfEventRegistrationPurchaseReservation: ({ eventId, registrationId, purchaseId, locationId, clientApiParams, queryClient, }: SelectSelfEventRegistrationPurchaseReservationParams) => Promise<ConnectedXMResponse<Registration>>;
|
|
2326
|
+
declare const SelectSelfEventRegistrationPurchaseReservation: ({ eventId, registrationId, purchaseId, locationId, reservationStart, reservationEnd, clientApiParams, queryClient, }: SelectSelfEventRegistrationPurchaseReservationParams) => Promise<ConnectedXMResponse<Registration>>;
|
|
2313
2327
|
declare const useSelectSelfEventRegistrationPurchaseReservation: (options?: Omit<MutationOptions<Awaited<ReturnType<typeof SelectSelfEventRegistrationPurchaseReservation>>, Omit<SelectSelfEventRegistrationPurchaseReservationParams, "queryClient" | "clientApiParams">>, "mutationFn">) => _tanstack_react_query.UseMutationResult<ConnectedXMResponse<Registration>, axios.AxiosError<ConnectedXMResponse<Registration>, any>, Omit<SelectSelfEventRegistrationPurchaseReservationParams, "queryClient" | "clientApiParams">, unknown>;
|
|
2314
2328
|
|
|
2315
2329
|
interface CancelEventRegistrationParams extends MutationParams {
|
package/dist/index.d.ts
CHANGED
|
@@ -422,7 +422,12 @@ interface BaseTicket {
|
|
|
422
422
|
minQuantityPerSale: number;
|
|
423
423
|
maxQuantityPerSale: number;
|
|
424
424
|
supply: number | null;
|
|
425
|
-
|
|
425
|
+
minReservationStart: string | null;
|
|
426
|
+
reservationStart: string | null;
|
|
427
|
+
maxReservationStart: string | null;
|
|
428
|
+
minReservationEnd: string | null;
|
|
429
|
+
reservationEnd: string | null;
|
|
430
|
+
maxReservationEnd: string | null;
|
|
426
431
|
}
|
|
427
432
|
interface Ticket extends BaseTicket {
|
|
428
433
|
visibility: TicketVisibility;
|
|
@@ -448,6 +453,8 @@ interface BasePurchase {
|
|
|
448
453
|
ticketId: string | null;
|
|
449
454
|
ticket: BaseTicket | null;
|
|
450
455
|
addOns: BaseEventAddOn[];
|
|
456
|
+
reservationStart: string | null;
|
|
457
|
+
reservationEnd: string | null;
|
|
451
458
|
reservationSectionLocation: BaseEventReservationSectionLocation | null;
|
|
452
459
|
responses: BaseRegistrationQuestionResponse[];
|
|
453
460
|
}
|
|
@@ -1198,7 +1205,12 @@ interface BaseEventAddOn {
|
|
|
1198
1205
|
price: number;
|
|
1199
1206
|
sortOrder: number;
|
|
1200
1207
|
eventId: string;
|
|
1201
|
-
|
|
1208
|
+
minReservationStart: string | null;
|
|
1209
|
+
reservationStart: string | null;
|
|
1210
|
+
maxReservationStart: string | null;
|
|
1211
|
+
minReservationEnd: string | null;
|
|
1212
|
+
reservationEnd: string | null;
|
|
1213
|
+
maxReservationEnd: string | null;
|
|
1202
1214
|
image: BaseImage | null;
|
|
1203
1215
|
createdAt: string;
|
|
1204
1216
|
updatedAt: string;
|
|
@@ -2308,8 +2320,10 @@ interface SelectSelfEventRegistrationPurchaseReservationParams extends MutationP
|
|
|
2308
2320
|
registrationId: string;
|
|
2309
2321
|
purchaseId: string;
|
|
2310
2322
|
locationId: string;
|
|
2323
|
+
reservationStart?: string;
|
|
2324
|
+
reservationEnd?: string;
|
|
2311
2325
|
}
|
|
2312
|
-
declare const SelectSelfEventRegistrationPurchaseReservation: ({ eventId, registrationId, purchaseId, locationId, clientApiParams, queryClient, }: SelectSelfEventRegistrationPurchaseReservationParams) => Promise<ConnectedXMResponse<Registration>>;
|
|
2326
|
+
declare const SelectSelfEventRegistrationPurchaseReservation: ({ eventId, registrationId, purchaseId, locationId, reservationStart, reservationEnd, clientApiParams, queryClient, }: SelectSelfEventRegistrationPurchaseReservationParams) => Promise<ConnectedXMResponse<Registration>>;
|
|
2313
2327
|
declare const useSelectSelfEventRegistrationPurchaseReservation: (options?: Omit<MutationOptions<Awaited<ReturnType<typeof SelectSelfEventRegistrationPurchaseReservation>>, Omit<SelectSelfEventRegistrationPurchaseReservationParams, "queryClient" | "clientApiParams">>, "mutationFn">) => _tanstack_react_query.UseMutationResult<ConnectedXMResponse<Registration>, axios.AxiosError<ConnectedXMResponse<Registration>, any>, Omit<SelectSelfEventRegistrationPurchaseReservationParams, "queryClient" | "clientApiParams">, unknown>;
|
|
2314
2328
|
|
|
2315
2329
|
interface CancelEventRegistrationParams extends MutationParams {
|
package/dist/index.js
CHANGED
|
@@ -3620,9 +3620,6 @@ var useGetSelfEventRegistration = (eventId, options = {}) => {
|
|
|
3620
3620
|
...params
|
|
3621
3621
|
}),
|
|
3622
3622
|
{
|
|
3623
|
-
retry: false,
|
|
3624
|
-
staleTime: Infinity,
|
|
3625
|
-
refetchOnMount: false,
|
|
3626
3623
|
...options,
|
|
3627
3624
|
enabled: !!eventId && (options?.enabled ?? true)
|
|
3628
3625
|
}
|
|
@@ -6091,12 +6088,18 @@ var SelectSelfEventRegistrationPurchaseReservation = async ({
|
|
|
6091
6088
|
registrationId,
|
|
6092
6089
|
purchaseId,
|
|
6093
6090
|
locationId,
|
|
6091
|
+
reservationStart,
|
|
6092
|
+
reservationEnd,
|
|
6094
6093
|
clientApiParams,
|
|
6095
6094
|
queryClient
|
|
6096
6095
|
}) => {
|
|
6097
6096
|
const clientApi = await GetClientAPI(clientApiParams);
|
|
6098
6097
|
const { data } = await clientApi.post(
|
|
6099
|
-
`/self/events/${eventId}/registration/${registrationId}/draft/purchases/${purchaseId}/reservations/${locationId}
|
|
6098
|
+
`/self/events/${eventId}/registration/${registrationId}/draft/purchases/${purchaseId}/reservations/${locationId}`,
|
|
6099
|
+
{
|
|
6100
|
+
reservationStart,
|
|
6101
|
+
reservationEnd
|
|
6102
|
+
}
|
|
6100
6103
|
);
|
|
6101
6104
|
if (queryClient && data.status === "ok") {
|
|
6102
6105
|
SET_SELF_EVENT_REGISTRATION_QUERY_DATA(queryClient, [eventId], data, [
|
package/dist/index.mjs
CHANGED
|
@@ -3037,9 +3037,6 @@ var useGetSelfEventRegistration = (eventId, options = {}) => {
|
|
|
3037
3037
|
...params
|
|
3038
3038
|
}),
|
|
3039
3039
|
{
|
|
3040
|
-
retry: false,
|
|
3041
|
-
staleTime: Infinity,
|
|
3042
|
-
refetchOnMount: false,
|
|
3043
3040
|
...options,
|
|
3044
3041
|
enabled: !!eventId && (options?.enabled ?? true)
|
|
3045
3042
|
}
|
|
@@ -5511,12 +5508,18 @@ var SelectSelfEventRegistrationPurchaseReservation = async ({
|
|
|
5511
5508
|
registrationId,
|
|
5512
5509
|
purchaseId,
|
|
5513
5510
|
locationId,
|
|
5511
|
+
reservationStart,
|
|
5512
|
+
reservationEnd,
|
|
5514
5513
|
clientApiParams,
|
|
5515
5514
|
queryClient
|
|
5516
5515
|
}) => {
|
|
5517
5516
|
const clientApi = await GetClientAPI(clientApiParams);
|
|
5518
5517
|
const { data } = await clientApi.post(
|
|
5519
|
-
`/self/events/${eventId}/registration/${registrationId}/draft/purchases/${purchaseId}/reservations/${locationId}
|
|
5518
|
+
`/self/events/${eventId}/registration/${registrationId}/draft/purchases/${purchaseId}/reservations/${locationId}`,
|
|
5519
|
+
{
|
|
5520
|
+
reservationStart,
|
|
5521
|
+
reservationEnd
|
|
5522
|
+
}
|
|
5520
5523
|
);
|
|
5521
5524
|
if (queryClient && data.status === "ok") {
|
|
5522
5525
|
SET_SELF_EVENT_REGISTRATION_QUERY_DATA(queryClient, [eventId], data, [
|