@connectedxm/client 0.1.27 → 0.1.28

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
@@ -1786,13 +1786,13 @@ interface GetSelfEventListingProps extends SingleQueryParams {
1786
1786
  declare const GetSelfEventListing: ({ eventId, clientApiParams, }: GetSelfEventListingProps) => Promise<ConnectedXMResponse<EventListing>>;
1787
1787
  declare const useGetSelfEventListing: (eventId: string, options?: SingleQueryOptions<ReturnType<typeof GetSelfEventListing>>) => _tanstack_react_query.UseQueryResult<ConnectedXMResponse<EventListing>, axios.AxiosError<ConnectedXMResponse<any>, any>>;
1788
1788
 
1789
- declare const SELF_EVENT_LISTING_REGISTRATIONS_QUERY_KEY: (eventId: string, checkedIn: boolean) => unknown[];
1789
+ declare const SELF_EVENT_LISTING_REGISTRATIONS_QUERY_KEY: (eventId: string, status?: keyof typeof RegistrationStatus) => unknown[];
1790
1790
  interface GetSelfEventListingRegistrationsProps extends InfiniteQueryParams {
1791
1791
  eventId: string;
1792
- checkedIn?: boolean;
1792
+ status?: keyof typeof RegistrationStatus;
1793
1793
  }
1794
- declare const GetSelfEventListingRegistrations: ({ eventId, pageParam, pageSize, orderBy, search, checkedIn, clientApiParams, }: GetSelfEventListingRegistrationsProps) => Promise<ConnectedXMResponse<Registration[]>>;
1795
- declare const useGetSelfEventListingsRegistrations: (eventId: string, checkedIn?: boolean, params?: Omit<InfiniteQueryParams, "pageParam" | "queryClient" | "clientApiParams">, options?: InfiniteQueryOptions<Awaited<ReturnType<typeof GetSelfEventListingRegistrations>>>) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_query_core.InfiniteData<ConnectedXMResponse<Registration[]>, number>, axios.AxiosError<ConnectedXMResponse<null>, any>>;
1794
+ declare const GetSelfEventListingRegistrations: ({ eventId, pageParam, pageSize, orderBy, search, status, clientApiParams, }: GetSelfEventListingRegistrationsProps) => Promise<ConnectedXMResponse<Registration[]>>;
1795
+ declare const useGetSelfEventListingsRegistrations: (eventId: string, status?: keyof typeof RegistrationStatus, params?: Omit<InfiniteQueryParams, "pageParam" | "queryClient" | "clientApiParams">, options?: InfiniteQueryOptions<Awaited<ReturnType<typeof GetSelfEventListingRegistrations>>>) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_query_core.InfiniteData<ConnectedXMResponse<Registration[]>, number>, axios.AxiosError<ConnectedXMResponse<null>, any>>;
1796
1796
 
1797
1797
  declare const SELF_EVENT_LISTINGS_QUERY_KEY: (past: boolean) => QueryKey;
1798
1798
  interface GetSelfEventListingsProps extends InfiniteQueryParams {
@@ -2426,10 +2426,10 @@ declare const RemoveSelfEventSession: ({ eventId, sessionId, clientApiParams, qu
2426
2426
  declare const useRemoveSelfEventSession: (options?: Omit<MutationOptions<Awaited<ReturnType<typeof RemoveSelfEventSession>>, Omit<RemoveSelfEventSessionParams, "queryClient" | "clientApiParams">>, "mutationFn">) => _tanstack_react_query.UseMutationResult<ConnectedXMResponse<Account>, axios.AxiosError<ConnectedXMResponse<Account>, any>, Omit<RemoveSelfEventSessionParams, "queryClient" | "clientApiParams">, unknown>;
2427
2427
 
2428
2428
  interface SelfCheckinRegistrationParams extends MutationParams {
2429
- accountId: string;
2430
2429
  eventId: string;
2430
+ registrationId: string;
2431
2431
  }
2432
- declare const SelfCheckinRegistration: ({ accountId, eventId, clientApiParams, queryClient, }: SelfCheckinRegistrationParams) => Promise<any>;
2432
+ declare const SelfCheckinRegistration: ({ eventId, registrationId, clientApiParams, queryClient, }: SelfCheckinRegistrationParams) => Promise<any>;
2433
2433
  declare const useSelfCheckinRegistration: (options?: Omit<MutationOptions<Awaited<ReturnType<typeof SelfCheckinRegistration>>, Omit<SelfCheckinRegistrationParams, "queryClient" | "clientApiParams">>, "mutationFn">) => _tanstack_react_query.UseMutationResult<any, axios.AxiosError<any, any>, Omit<SelfCheckinRegistrationParams, "queryClient" | "clientApiParams">, unknown>;
2434
2434
 
2435
2435
  interface CreateActivity {
package/dist/index.d.ts CHANGED
@@ -1786,13 +1786,13 @@ interface GetSelfEventListingProps extends SingleQueryParams {
1786
1786
  declare const GetSelfEventListing: ({ eventId, clientApiParams, }: GetSelfEventListingProps) => Promise<ConnectedXMResponse<EventListing>>;
1787
1787
  declare const useGetSelfEventListing: (eventId: string, options?: SingleQueryOptions<ReturnType<typeof GetSelfEventListing>>) => _tanstack_react_query.UseQueryResult<ConnectedXMResponse<EventListing>, axios.AxiosError<ConnectedXMResponse<any>, any>>;
1788
1788
 
1789
- declare const SELF_EVENT_LISTING_REGISTRATIONS_QUERY_KEY: (eventId: string, checkedIn: boolean) => unknown[];
1789
+ declare const SELF_EVENT_LISTING_REGISTRATIONS_QUERY_KEY: (eventId: string, status?: keyof typeof RegistrationStatus) => unknown[];
1790
1790
  interface GetSelfEventListingRegistrationsProps extends InfiniteQueryParams {
1791
1791
  eventId: string;
1792
- checkedIn?: boolean;
1792
+ status?: keyof typeof RegistrationStatus;
1793
1793
  }
1794
- declare const GetSelfEventListingRegistrations: ({ eventId, pageParam, pageSize, orderBy, search, checkedIn, clientApiParams, }: GetSelfEventListingRegistrationsProps) => Promise<ConnectedXMResponse<Registration[]>>;
1795
- declare const useGetSelfEventListingsRegistrations: (eventId: string, checkedIn?: boolean, params?: Omit<InfiniteQueryParams, "pageParam" | "queryClient" | "clientApiParams">, options?: InfiniteQueryOptions<Awaited<ReturnType<typeof GetSelfEventListingRegistrations>>>) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_query_core.InfiniteData<ConnectedXMResponse<Registration[]>, number>, axios.AxiosError<ConnectedXMResponse<null>, any>>;
1794
+ declare const GetSelfEventListingRegistrations: ({ eventId, pageParam, pageSize, orderBy, search, status, clientApiParams, }: GetSelfEventListingRegistrationsProps) => Promise<ConnectedXMResponse<Registration[]>>;
1795
+ declare const useGetSelfEventListingsRegistrations: (eventId: string, status?: keyof typeof RegistrationStatus, params?: Omit<InfiniteQueryParams, "pageParam" | "queryClient" | "clientApiParams">, options?: InfiniteQueryOptions<Awaited<ReturnType<typeof GetSelfEventListingRegistrations>>>) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_query_core.InfiniteData<ConnectedXMResponse<Registration[]>, number>, axios.AxiosError<ConnectedXMResponse<null>, any>>;
1796
1796
 
1797
1797
  declare const SELF_EVENT_LISTINGS_QUERY_KEY: (past: boolean) => QueryKey;
1798
1798
  interface GetSelfEventListingsProps extends InfiniteQueryParams {
@@ -2426,10 +2426,10 @@ declare const RemoveSelfEventSession: ({ eventId, sessionId, clientApiParams, qu
2426
2426
  declare const useRemoveSelfEventSession: (options?: Omit<MutationOptions<Awaited<ReturnType<typeof RemoveSelfEventSession>>, Omit<RemoveSelfEventSessionParams, "queryClient" | "clientApiParams">>, "mutationFn">) => _tanstack_react_query.UseMutationResult<ConnectedXMResponse<Account>, axios.AxiosError<ConnectedXMResponse<Account>, any>, Omit<RemoveSelfEventSessionParams, "queryClient" | "clientApiParams">, unknown>;
2427
2427
 
2428
2428
  interface SelfCheckinRegistrationParams extends MutationParams {
2429
- accountId: string;
2430
2429
  eventId: string;
2430
+ registrationId: string;
2431
2431
  }
2432
- declare const SelfCheckinRegistration: ({ accountId, eventId, clientApiParams, queryClient, }: SelfCheckinRegistrationParams) => Promise<any>;
2432
+ declare const SelfCheckinRegistration: ({ eventId, registrationId, clientApiParams, queryClient, }: SelfCheckinRegistrationParams) => Promise<any>;
2433
2433
  declare const useSelfCheckinRegistration: (options?: Omit<MutationOptions<Awaited<ReturnType<typeof SelfCheckinRegistration>>, Omit<SelfCheckinRegistrationParams, "queryClient" | "clientApiParams">>, "mutationFn">) => _tanstack_react_query.UseMutationResult<any, axios.AxiosError<any, any>, Omit<SelfCheckinRegistrationParams, "queryClient" | "clientApiParams">, unknown>;
2434
2434
 
2435
2435
  interface CreateActivity {
package/dist/index.js CHANGED
@@ -4056,10 +4056,10 @@ var useGetSelfEventListing = (eventId, options = {}) => {
4056
4056
  };
4057
4057
 
4058
4058
  // src/queries/self/useGetSelfEventListingRegistrations.ts
4059
- var SELF_EVENT_LISTING_REGISTRATIONS_QUERY_KEY = (eventId, checkedIn) => [
4059
+ var SELF_EVENT_LISTING_REGISTRATIONS_QUERY_KEY = (eventId, status) => [
4060
4060
  ...SELF_EVENT_LISTING_QUERY_KEY(eventId),
4061
4061
  "REGISTRATIONS",
4062
- checkedIn ? "CHECKED_IN" : "ALL"
4062
+ status ?? "ALL"
4063
4063
  ];
4064
4064
  var GetSelfEventListingRegistrations = async ({
4065
4065
  eventId,
@@ -4067,7 +4067,7 @@ var GetSelfEventListingRegistrations = async ({
4067
4067
  pageSize,
4068
4068
  orderBy,
4069
4069
  search,
4070
- checkedIn,
4070
+ status,
4071
4071
  clientApiParams
4072
4072
  }) => {
4073
4073
  const clientApi = await GetClientAPI(clientApiParams);
@@ -4079,16 +4079,16 @@ var GetSelfEventListingRegistrations = async ({
4079
4079
  pageSize: pageSize || void 0,
4080
4080
  orderBy: orderBy || void 0,
4081
4081
  search: search || void 0,
4082
- checkedIn: checkedIn ? "true" : void 0
4082
+ status: status || void 0
4083
4083
  }
4084
4084
  }
4085
4085
  );
4086
4086
  return data;
4087
4087
  };
4088
- var useGetSelfEventListingsRegistrations = (eventId, checkedIn = false, params = {}, options = {}) => {
4088
+ var useGetSelfEventListingsRegistrations = (eventId, status, params = {}, options = {}) => {
4089
4089
  return useConnectedInfiniteQuery(
4090
- SELF_EVENT_LISTING_REGISTRATIONS_QUERY_KEY(eventId, checkedIn),
4091
- (params2) => GetSelfEventListingRegistrations({ eventId, checkedIn, ...params2 }),
4090
+ SELF_EVENT_LISTING_REGISTRATIONS_QUERY_KEY(eventId, status),
4091
+ (params2) => GetSelfEventListingRegistrations({ eventId, status, ...params2 }),
4092
4092
  params,
4093
4093
  {
4094
4094
  ...options,
@@ -6429,21 +6429,21 @@ var useRemoveSelfEventSession = (options = {}) => {
6429
6429
 
6430
6430
  // src/mutations/self/useSelfCheckinRegistration.tsx
6431
6431
  var SelfCheckinRegistration = async ({
6432
- accountId,
6433
6432
  eventId,
6433
+ registrationId,
6434
6434
  clientApiParams,
6435
6435
  queryClient
6436
6436
  }) => {
6437
6437
  const clientApi = await GetClientAPI(clientApiParams);
6438
6438
  const { data } = await clientApi.post(
6439
- `/self/events/listings/${eventId}/registrations/${accountId}`
6439
+ `/self/events/listings/${eventId}/registrations/${registrationId}`
6440
6440
  );
6441
6441
  if (queryClient && data.status === "ok") {
6442
6442
  queryClient.invalidateQueries({
6443
- queryKey: SELF_EVENT_LISTING_REGISTRATIONS_QUERY_KEY(eventId, true)
6443
+ queryKey: SELF_EVENT_LISTING_REGISTRATIONS_QUERY_KEY(eventId)
6444
6444
  });
6445
6445
  queryClient.invalidateQueries({
6446
- queryKey: SELF_EVENT_LISTING_REGISTRATIONS_QUERY_KEY(eventId, false)
6446
+ queryKey: SELF_EVENT_LISTING_REGISTRATIONS_QUERY_KEY(eventId)
6447
6447
  });
6448
6448
  }
6449
6449
  return data;
package/dist/index.mjs CHANGED
@@ -3483,10 +3483,10 @@ var useGetSelfEventListing = (eventId, options = {}) => {
3483
3483
  };
3484
3484
 
3485
3485
  // src/queries/self/useGetSelfEventListingRegistrations.ts
3486
- var SELF_EVENT_LISTING_REGISTRATIONS_QUERY_KEY = (eventId, checkedIn) => [
3486
+ var SELF_EVENT_LISTING_REGISTRATIONS_QUERY_KEY = (eventId, status) => [
3487
3487
  ...SELF_EVENT_LISTING_QUERY_KEY(eventId),
3488
3488
  "REGISTRATIONS",
3489
- checkedIn ? "CHECKED_IN" : "ALL"
3489
+ status ?? "ALL"
3490
3490
  ];
3491
3491
  var GetSelfEventListingRegistrations = async ({
3492
3492
  eventId,
@@ -3494,7 +3494,7 @@ var GetSelfEventListingRegistrations = async ({
3494
3494
  pageSize,
3495
3495
  orderBy,
3496
3496
  search,
3497
- checkedIn,
3497
+ status,
3498
3498
  clientApiParams
3499
3499
  }) => {
3500
3500
  const clientApi = await GetClientAPI(clientApiParams);
@@ -3506,16 +3506,16 @@ var GetSelfEventListingRegistrations = async ({
3506
3506
  pageSize: pageSize || void 0,
3507
3507
  orderBy: orderBy || void 0,
3508
3508
  search: search || void 0,
3509
- checkedIn: checkedIn ? "true" : void 0
3509
+ status: status || void 0
3510
3510
  }
3511
3511
  }
3512
3512
  );
3513
3513
  return data;
3514
3514
  };
3515
- var useGetSelfEventListingsRegistrations = (eventId, checkedIn = false, params = {}, options = {}) => {
3515
+ var useGetSelfEventListingsRegistrations = (eventId, status, params = {}, options = {}) => {
3516
3516
  return useConnectedInfiniteQuery(
3517
- SELF_EVENT_LISTING_REGISTRATIONS_QUERY_KEY(eventId, checkedIn),
3518
- (params2) => GetSelfEventListingRegistrations({ eventId, checkedIn, ...params2 }),
3517
+ SELF_EVENT_LISTING_REGISTRATIONS_QUERY_KEY(eventId, status),
3518
+ (params2) => GetSelfEventListingRegistrations({ eventId, status, ...params2 }),
3519
3519
  params,
3520
3520
  {
3521
3521
  ...options,
@@ -5859,21 +5859,21 @@ var useRemoveSelfEventSession = (options = {}) => {
5859
5859
 
5860
5860
  // src/mutations/self/useSelfCheckinRegistration.tsx
5861
5861
  var SelfCheckinRegistration = async ({
5862
- accountId,
5863
5862
  eventId,
5863
+ registrationId,
5864
5864
  clientApiParams,
5865
5865
  queryClient
5866
5866
  }) => {
5867
5867
  const clientApi = await GetClientAPI(clientApiParams);
5868
5868
  const { data } = await clientApi.post(
5869
- `/self/events/listings/${eventId}/registrations/${accountId}`
5869
+ `/self/events/listings/${eventId}/registrations/${registrationId}`
5870
5870
  );
5871
5871
  if (queryClient && data.status === "ok") {
5872
5872
  queryClient.invalidateQueries({
5873
- queryKey: SELF_EVENT_LISTING_REGISTRATIONS_QUERY_KEY(eventId, true)
5873
+ queryKey: SELF_EVENT_LISTING_REGISTRATIONS_QUERY_KEY(eventId)
5874
5874
  });
5875
5875
  queryClient.invalidateQueries({
5876
- queryKey: SELF_EVENT_LISTING_REGISTRATIONS_QUERY_KEY(eventId, false)
5876
+ queryKey: SELF_EVENT_LISTING_REGISTRATIONS_QUERY_KEY(eventId)
5877
5877
  });
5878
5878
  }
5879
5879
  return data;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@connectedxm/client",
3
- "version": "0.1.27",
3
+ "version": "0.1.28",
4
4
  "description": "Client API javascript SDK",
5
5
  "author": "ConnectedXM Inc.",
6
6
  "repository": {