@connectedxm/client 0.3.4 → 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 CHANGED
@@ -422,7 +422,12 @@ interface BaseTicket {
422
422
  minQuantityPerSale: number;
423
423
  maxQuantityPerSale: number;
424
424
  supply: number | null;
425
- reservationDays: number;
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
- reservationDays: number;
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
- reservationDays: number;
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
- reservationDays: number;
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
@@ -6088,12 +6088,18 @@ var SelectSelfEventRegistrationPurchaseReservation = async ({
6088
6088
  registrationId,
6089
6089
  purchaseId,
6090
6090
  locationId,
6091
+ reservationStart,
6092
+ reservationEnd,
6091
6093
  clientApiParams,
6092
6094
  queryClient
6093
6095
  }) => {
6094
6096
  const clientApi = await GetClientAPI(clientApiParams);
6095
6097
  const { data } = await clientApi.post(
6096
- `/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
+ }
6097
6103
  );
6098
6104
  if (queryClient && data.status === "ok") {
6099
6105
  SET_SELF_EVENT_REGISTRATION_QUERY_DATA(queryClient, [eventId], data, [
package/dist/index.mjs CHANGED
@@ -5508,12 +5508,18 @@ var SelectSelfEventRegistrationPurchaseReservation = async ({
5508
5508
  registrationId,
5509
5509
  purchaseId,
5510
5510
  locationId,
5511
+ reservationStart,
5512
+ reservationEnd,
5511
5513
  clientApiParams,
5512
5514
  queryClient
5513
5515
  }) => {
5514
5516
  const clientApi = await GetClientAPI(clientApiParams);
5515
5517
  const { data } = await clientApi.post(
5516
- `/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
+ }
5517
5523
  );
5518
5524
  if (queryClient && data.status === "ok") {
5519
5525
  SET_SELF_EVENT_REGISTRATION_QUERY_DATA(queryClient, [eventId], data, [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@connectedxm/client",
3
- "version": "0.3.4",
3
+ "version": "0.3.5",
4
4
  "description": "Client API javascript SDK",
5
5
  "author": "ConnectedXM Inc.",
6
6
  "repository": {