@connectedxm/client 0.5.26 → 0.5.27

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
@@ -2345,7 +2345,7 @@ interface GetSelfEventRegistrationCouponsProps extends InfiniteQueryParams {
2345
2345
  declare const GetSelfEventRegistrationCoupons: ({ eventId, registrationId, clientApiParams, queryClient, locale, }: GetSelfEventRegistrationCouponsProps) => Promise<ConnectedXMResponse<Coupon[]>>;
2346
2346
  declare const useGetSelfEventRegistrationCoupons: (eventId: string, registrationId: string, params?: Omit<InfiniteQueryParams, "pageParam" | "queryClient" | "clientApiParams">, options?: InfiniteQueryOptions<Awaited<ReturnType<typeof GetSelfEventRegistrationCoupons>>>) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<ConnectedXMResponse<Coupon[]>, number>, axios.AxiosError<ConnectedXMResponse<null>, any>>;
2347
2347
 
2348
- declare const SELF_EVENT_REGISTRATION_COUPON_REGISTRATIONS_QUERY_KEY: (eventId: string, registrationId: string) => QueryKey;
2348
+ declare const SELF_EVENT_REGISTRATION_COUPON_REGISTRATIONS_QUERY_KEY: (eventId: string, registrationId: string, couponId: string) => QueryKey;
2349
2349
  interface GetSelfEventRegistrationCouponRegistrationsProps extends InfiniteQueryParams {
2350
2350
  eventId: string;
2351
2351
  registrationId: string;
package/dist/index.d.ts CHANGED
@@ -2345,7 +2345,7 @@ interface GetSelfEventRegistrationCouponsProps extends InfiniteQueryParams {
2345
2345
  declare const GetSelfEventRegistrationCoupons: ({ eventId, registrationId, clientApiParams, queryClient, locale, }: GetSelfEventRegistrationCouponsProps) => Promise<ConnectedXMResponse<Coupon[]>>;
2346
2346
  declare const useGetSelfEventRegistrationCoupons: (eventId: string, registrationId: string, params?: Omit<InfiniteQueryParams, "pageParam" | "queryClient" | "clientApiParams">, options?: InfiniteQueryOptions<Awaited<ReturnType<typeof GetSelfEventRegistrationCoupons>>>) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<ConnectedXMResponse<Coupon[]>, number>, axios.AxiosError<ConnectedXMResponse<null>, any>>;
2347
2347
 
2348
- declare const SELF_EVENT_REGISTRATION_COUPON_REGISTRATIONS_QUERY_KEY: (eventId: string, registrationId: string) => QueryKey;
2348
+ declare const SELF_EVENT_REGISTRATION_COUPON_REGISTRATIONS_QUERY_KEY: (eventId: string, registrationId: string, couponId: string) => QueryKey;
2349
2349
  interface GetSelfEventRegistrationCouponRegistrationsProps extends InfiniteQueryParams {
2350
2350
  eventId: string;
2351
2351
  registrationId: string;
package/dist/index.js CHANGED
@@ -4980,9 +4980,13 @@ var useGetSelfEventRegistrationCoupon = (eventId = "", registrationId = "", coup
4980
4980
  };
4981
4981
 
4982
4982
  // src/queries/self/registration/useGetSelfEventRegistrationCouponRegistrations.ts
4983
- var SELF_EVENT_REGISTRATION_COUPON_REGISTRATIONS_QUERY_KEY = (eventId, registrationId) => [
4984
- ...SELF_EVENT_REGISTRATION_QUERY_KEY(eventId, registrationId),
4985
- "COUPONS"
4983
+ var SELF_EVENT_REGISTRATION_COUPON_REGISTRATIONS_QUERY_KEY = (eventId, registrationId, couponId) => [
4984
+ ...SELF_EVENT_REGISTRATION_COUPON_QUERY_KEY(
4985
+ eventId,
4986
+ registrationId,
4987
+ couponId
4988
+ ),
4989
+ "REGISTRATIONS"
4986
4990
  ];
4987
4991
  var GetSelfEventRegistrationCouponRegistrations = async ({
4988
4992
  eventId,
@@ -5002,7 +5006,8 @@ var useGetSelfEventRegistrationCouponRegistrations = (eventId = "", registration
5002
5006
  return useConnectedInfiniteQuery(
5003
5007
  SELF_EVENT_REGISTRATION_COUPON_REGISTRATIONS_QUERY_KEY(
5004
5008
  eventId,
5005
- registrationId
5009
+ registrationId,
5010
+ couponId
5006
5011
  ),
5007
5012
  (params2) => GetSelfEventRegistrationCouponRegistrations({
5008
5013
  eventId,
package/dist/index.mjs CHANGED
@@ -4218,9 +4218,13 @@ var useGetSelfEventRegistrationCoupon = (eventId = "", registrationId = "", coup
4218
4218
  };
4219
4219
 
4220
4220
  // src/queries/self/registration/useGetSelfEventRegistrationCouponRegistrations.ts
4221
- var SELF_EVENT_REGISTRATION_COUPON_REGISTRATIONS_QUERY_KEY = (eventId, registrationId) => [
4222
- ...SELF_EVENT_REGISTRATION_QUERY_KEY(eventId, registrationId),
4223
- "COUPONS"
4221
+ var SELF_EVENT_REGISTRATION_COUPON_REGISTRATIONS_QUERY_KEY = (eventId, registrationId, couponId) => [
4222
+ ...SELF_EVENT_REGISTRATION_COUPON_QUERY_KEY(
4223
+ eventId,
4224
+ registrationId,
4225
+ couponId
4226
+ ),
4227
+ "REGISTRATIONS"
4224
4228
  ];
4225
4229
  var GetSelfEventRegistrationCouponRegistrations = async ({
4226
4230
  eventId,
@@ -4240,7 +4244,8 @@ var useGetSelfEventRegistrationCouponRegistrations = (eventId = "", registration
4240
4244
  return useConnectedInfiniteQuery(
4241
4245
  SELF_EVENT_REGISTRATION_COUPON_REGISTRATIONS_QUERY_KEY(
4242
4246
  eventId,
4243
- registrationId
4247
+ registrationId,
4248
+ couponId
4244
4249
  ),
4245
4250
  (params2) => GetSelfEventRegistrationCouponRegistrations({
4246
4251
  eventId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@connectedxm/client",
3
- "version": "0.5.26",
3
+ "version": "0.5.27",
4
4
  "description": "Client API javascript SDK",
5
5
  "author": "ConnectedXM Inc.",
6
6
  "repository": {