@connectedxm/client 0.2.7 → 0.2.10

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
@@ -441,6 +441,7 @@ interface BasePurchase {
441
441
  email: string;
442
442
  createdAt: string;
443
443
  } | null;
444
+ registrationId: string;
444
445
  ticketId: string | null;
445
446
  ticket: BaseTicket | null;
446
447
  responses: BaseRegistrationQuestionResponse[];
@@ -1591,13 +1592,14 @@ interface GetEventSponsorsProps extends InfiniteQueryParams {
1591
1592
  declare const GetEventSponsors: ({ eventId, pageParam, pageSize, orderBy, search, queryClient, clientApiParams, locale, }: GetEventSponsorsProps) => Promise<ConnectedXMResponse<Account[]>>;
1592
1593
  declare const useGetEventSponsors: (eventId?: string, params?: Omit<InfiniteQueryParams, "pageParam" | "queryClient" | "clientApiParams">, options?: InfiniteQueryOptions<Awaited<ReturnType<typeof GetEventSponsors>>>) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<ConnectedXMResponse<Account[]>, number>, axios.AxiosError<ConnectedXMResponse<null>, any>>;
1593
1594
 
1594
- declare const EVENT_TICKETS_QUERY_KEY: (eventId: string) => QueryKey;
1595
- declare const SET_EVENT_TICKETS_QUERY_DATA: (client: QueryClient, keyParams: Parameters<typeof EVENT_TICKETS_QUERY_KEY>, response: Awaited<ReturnType<typeof GetEventTickets>>, baseKeys?: [locale: string, search?: string | undefined]) => void;
1595
+ declare const EVENT_TICKETS_QUERY_KEY: (eventId: string, ticketId?: string) => QueryKey;
1596
+ declare const SET_EVENT_TICKETS_QUERY_DATA: (client: QueryClient, keyParams: [eventId: string, ticketId?: string | undefined], response: Awaited<ReturnType<typeof GetEventTickets>>, baseKeys?: [locale: string, search?: string | undefined]) => void;
1596
1597
  interface GetEventTicketsProps extends InfiniteQueryParams {
1597
1598
  eventId: string;
1599
+ ticketId?: string;
1598
1600
  }
1599
- declare const GetEventTickets: ({ eventId, pageParam, pageSize, orderBy, search, clientApiParams, }: GetEventTicketsProps) => Promise<ConnectedXMResponse<Ticket[]>>;
1600
- declare const useGetEventTickets: (eventId?: string, params?: Omit<InfiniteQueryParams, "pageParam" | "queryClient" | "clientApiParams">, options?: InfiniteQueryOptions<Awaited<ReturnType<typeof GetEventTickets>>>) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<ConnectedXMResponse<Ticket[]>, number>, axios.AxiosError<ConnectedXMResponse<null>, any>>;
1601
+ declare const GetEventTickets: ({ eventId, ticketId, pageParam, pageSize, orderBy, search, clientApiParams, }: GetEventTicketsProps) => Promise<ConnectedXMResponse<Ticket[]>>;
1602
+ declare const useGetEventTickets: (eventId?: string, ticketId?: string, params?: Omit<InfiniteQueryParams, "pageParam" | "queryClient" | "clientApiParams">, options?: InfiniteQueryOptions<Awaited<ReturnType<typeof GetEventTickets>>>) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<ConnectedXMResponse<Ticket[]>, number>, axios.AxiosError<ConnectedXMResponse<null>, any>>;
1601
1603
 
1602
1604
  declare const EVENTS_FEATURED_QUERY_KEY: () => QueryKey;
1603
1605
  declare const SET_EVENTS_FEATURED_QUERY_DATA: (client: QueryClient, keyParams: Parameters<typeof EVENTS_FEATURED_QUERY_KEY>, response: Awaited<ReturnType<typeof GetFeaturedEvents>>, baseKeys?: [locale: string, search?: string | undefined]) => void;
package/dist/index.d.ts CHANGED
@@ -441,6 +441,7 @@ interface BasePurchase {
441
441
  email: string;
442
442
  createdAt: string;
443
443
  } | null;
444
+ registrationId: string;
444
445
  ticketId: string | null;
445
446
  ticket: BaseTicket | null;
446
447
  responses: BaseRegistrationQuestionResponse[];
@@ -1591,13 +1592,14 @@ interface GetEventSponsorsProps extends InfiniteQueryParams {
1591
1592
  declare const GetEventSponsors: ({ eventId, pageParam, pageSize, orderBy, search, queryClient, clientApiParams, locale, }: GetEventSponsorsProps) => Promise<ConnectedXMResponse<Account[]>>;
1592
1593
  declare const useGetEventSponsors: (eventId?: string, params?: Omit<InfiniteQueryParams, "pageParam" | "queryClient" | "clientApiParams">, options?: InfiniteQueryOptions<Awaited<ReturnType<typeof GetEventSponsors>>>) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<ConnectedXMResponse<Account[]>, number>, axios.AxiosError<ConnectedXMResponse<null>, any>>;
1593
1594
 
1594
- declare const EVENT_TICKETS_QUERY_KEY: (eventId: string) => QueryKey;
1595
- declare const SET_EVENT_TICKETS_QUERY_DATA: (client: QueryClient, keyParams: Parameters<typeof EVENT_TICKETS_QUERY_KEY>, response: Awaited<ReturnType<typeof GetEventTickets>>, baseKeys?: [locale: string, search?: string | undefined]) => void;
1595
+ declare const EVENT_TICKETS_QUERY_KEY: (eventId: string, ticketId?: string) => QueryKey;
1596
+ declare const SET_EVENT_TICKETS_QUERY_DATA: (client: QueryClient, keyParams: [eventId: string, ticketId?: string | undefined], response: Awaited<ReturnType<typeof GetEventTickets>>, baseKeys?: [locale: string, search?: string | undefined]) => void;
1596
1597
  interface GetEventTicketsProps extends InfiniteQueryParams {
1597
1598
  eventId: string;
1599
+ ticketId?: string;
1598
1600
  }
1599
- declare const GetEventTickets: ({ eventId, pageParam, pageSize, orderBy, search, clientApiParams, }: GetEventTicketsProps) => Promise<ConnectedXMResponse<Ticket[]>>;
1600
- declare const useGetEventTickets: (eventId?: string, params?: Omit<InfiniteQueryParams, "pageParam" | "queryClient" | "clientApiParams">, options?: InfiniteQueryOptions<Awaited<ReturnType<typeof GetEventTickets>>>) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<ConnectedXMResponse<Ticket[]>, number>, axios.AxiosError<ConnectedXMResponse<null>, any>>;
1601
+ declare const GetEventTickets: ({ eventId, ticketId, pageParam, pageSize, orderBy, search, clientApiParams, }: GetEventTicketsProps) => Promise<ConnectedXMResponse<Ticket[]>>;
1602
+ declare const useGetEventTickets: (eventId?: string, ticketId?: string, params?: Omit<InfiniteQueryParams, "pageParam" | "queryClient" | "clientApiParams">, options?: InfiniteQueryOptions<Awaited<ReturnType<typeof GetEventTickets>>>) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<ConnectedXMResponse<Ticket[]>, number>, axios.AxiosError<ConnectedXMResponse<null>, any>>;
1601
1603
 
1602
1604
  declare const EVENTS_FEATURED_QUERY_KEY: () => QueryKey;
1603
1605
  declare const SET_EVENTS_FEATURED_QUERY_DATA: (client: QueryClient, keyParams: Parameters<typeof EVENTS_FEATURED_QUERY_KEY>, response: Awaited<ReturnType<typeof GetFeaturedEvents>>, baseKeys?: [locale: string, search?: string | undefined]) => void;
package/dist/index.js CHANGED
@@ -3085,10 +3085,7 @@ var useGetEventSpeaker = (eventId = "", speakerId = "", options = {}) => {
3085
3085
  };
3086
3086
 
3087
3087
  // src/queries/events/useGetEventTickets.ts
3088
- var EVENT_TICKETS_QUERY_KEY = (eventId) => [
3089
- ...EVENT_QUERY_KEY(eventId),
3090
- "TICKETS"
3091
- ];
3088
+ var EVENT_TICKETS_QUERY_KEY = (eventId, ticketId = "") => [...EVENT_QUERY_KEY(eventId), "TICKETS", ticketId];
3092
3089
  var SET_EVENT_TICKETS_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
3093
3090
  client.setQueryData(
3094
3091
  [
@@ -3100,6 +3097,7 @@ var SET_EVENT_TICKETS_QUERY_DATA = (client, keyParams, response, baseKeys = ["en
3100
3097
  };
3101
3098
  var GetEventTickets = async ({
3102
3099
  eventId,
3100
+ ticketId,
3103
3101
  pageParam,
3104
3102
  pageSize,
3105
3103
  orderBy,
@@ -3112,15 +3110,16 @@ var GetEventTickets = async ({
3112
3110
  page: pageParam || void 0,
3113
3111
  pageSize: pageSize || void 0,
3114
3112
  orderBy: orderBy || void 0,
3115
- search: search || void 0
3113
+ search: search || void 0,
3114
+ ticketId: ticketId || void 0
3116
3115
  }
3117
3116
  });
3118
3117
  return data;
3119
3118
  };
3120
- var useGetEventTickets = (eventId = "", params = {}, options = {}) => {
3119
+ var useGetEventTickets = (eventId = "", ticketId = "", params = {}, options = {}) => {
3121
3120
  return useConnectedInfiniteQuery(
3122
3121
  EVENT_TICKETS_QUERY_KEY(eventId),
3123
- (params2) => GetEventTickets({ eventId, ...params2 }),
3122
+ (params2) => GetEventTickets({ eventId, ticketId, ...params2 }),
3124
3123
  params,
3125
3124
  {
3126
3125
  ...options,
package/dist/index.mjs CHANGED
@@ -2516,10 +2516,7 @@ var useGetEventSpeaker = (eventId = "", speakerId = "", options = {}) => {
2516
2516
  };
2517
2517
 
2518
2518
  // src/queries/events/useGetEventTickets.ts
2519
- var EVENT_TICKETS_QUERY_KEY = (eventId) => [
2520
- ...EVENT_QUERY_KEY(eventId),
2521
- "TICKETS"
2522
- ];
2519
+ var EVENT_TICKETS_QUERY_KEY = (eventId, ticketId = "") => [...EVENT_QUERY_KEY(eventId), "TICKETS", ticketId];
2523
2520
  var SET_EVENT_TICKETS_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
2524
2521
  client.setQueryData(
2525
2522
  [
@@ -2531,6 +2528,7 @@ var SET_EVENT_TICKETS_QUERY_DATA = (client, keyParams, response, baseKeys = ["en
2531
2528
  };
2532
2529
  var GetEventTickets = async ({
2533
2530
  eventId,
2531
+ ticketId,
2534
2532
  pageParam,
2535
2533
  pageSize,
2536
2534
  orderBy,
@@ -2543,15 +2541,16 @@ var GetEventTickets = async ({
2543
2541
  page: pageParam || void 0,
2544
2542
  pageSize: pageSize || void 0,
2545
2543
  orderBy: orderBy || void 0,
2546
- search: search || void 0
2544
+ search: search || void 0,
2545
+ ticketId: ticketId || void 0
2547
2546
  }
2548
2547
  });
2549
2548
  return data;
2550
2549
  };
2551
- var useGetEventTickets = (eventId = "", params = {}, options = {}) => {
2550
+ var useGetEventTickets = (eventId = "", ticketId = "", params = {}, options = {}) => {
2552
2551
  return useConnectedInfiniteQuery(
2553
2552
  EVENT_TICKETS_QUERY_KEY(eventId),
2554
- (params2) => GetEventTickets({ eventId, ...params2 }),
2553
+ (params2) => GetEventTickets({ eventId, ticketId, ...params2 }),
2555
2554
  params,
2556
2555
  {
2557
2556
  ...options,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@connectedxm/client",
3
- "version": "0.2.7",
3
+ "version": "0.2.10",
4
4
  "description": "Client API javascript SDK",
5
5
  "author": "ConnectedXM Inc.",
6
6
  "repository": {