@connectedxm/client 0.5.0 → 0.5.1

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
@@ -1842,7 +1842,7 @@ interface GetSelfChatChannelProps extends SingleQueryParams {
1842
1842
  channelId: string;
1843
1843
  }
1844
1844
  declare const GetSelfChatChannel: ({ channelId, clientApiParams, }: GetSelfChatChannelProps) => Promise<ConnectedXMResponse<ChatChannelMember>>;
1845
- declare const useGetSelfChatChannel: (channelId: string, options?: SingleQueryOptions<ReturnType<typeof GetSelfChatChannel>>) => _tanstack_react_query.UseQueryResult<ConnectedXMResponse<ChatChannelMember>, axios.AxiosError<ConnectedXMResponse<any>, any>>;
1845
+ declare const useGetSelfChatChannel: (channelId?: string, options?: SingleQueryOptions<ReturnType<typeof GetSelfChatChannel>>) => _tanstack_react_query.UseQueryResult<ConnectedXMResponse<ChatChannelMember>, axios.AxiosError<ConnectedXMResponse<any>, any>>;
1846
1846
 
1847
1847
  declare const SELF_CHAT_CHANNEL_MEMBERS_QUERY_KEY: (channelId: string) => QueryKey;
1848
1848
  declare const SET_SELF_CHAT_CHANNEL_MEMBERS_QUERY_DATA: (client: QueryClient, keyParams: Parameters<typeof SELF_CHAT_CHANNEL_MEMBERS_QUERY_KEY>, response: Awaited<ReturnType<typeof GetSelfChatChannelMembers>>, baseKeys?: [locale: string, search?: string | undefined]) => void;
@@ -1850,7 +1850,7 @@ interface GetSelfChatChannelMembersProps extends InfiniteQueryParams {
1850
1850
  channelId: string;
1851
1851
  }
1852
1852
  declare const GetSelfChatChannelMembers: ({ channelId, pageParam, pageSize, orderBy, search, clientApiParams, }: GetSelfChatChannelMembersProps) => Promise<ConnectedXMResponse<ChatChannelMember[]>>;
1853
- declare const useGetSelfChatChannelMembers: (channelId: string, params?: Omit<InfiniteQueryParams, "pageParam" | "queryClient" | "clientApiParams">, options?: InfiniteQueryOptions<Awaited<ReturnType<typeof GetSelfChatChannelMembers>>>) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<ConnectedXMResponse<ChatChannelMember[]>, number>, axios.AxiosError<ConnectedXMResponse<null>, any>>;
1853
+ declare const useGetSelfChatChannelMembers: (channelId?: string, params?: Omit<InfiniteQueryParams, "pageParam" | "queryClient" | "clientApiParams">, options?: InfiniteQueryOptions<Awaited<ReturnType<typeof GetSelfChatChannelMembers>>>) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<ConnectedXMResponse<ChatChannelMember[]>, number>, axios.AxiosError<ConnectedXMResponse<null>, any>>;
1854
1854
 
1855
1855
  declare const SELF_CHAT_CHANNEL_MESSAGES_QUERY_KEY: (channelId: string) => QueryKey;
1856
1856
  declare const SET_SELF_CHAT_CHANNEL_MESSAGES_QUERY_DATA: (client: QueryClient, keyParams: Parameters<typeof SELF_CHAT_CHANNEL_MESSAGES_QUERY_KEY>, response: Awaited<ReturnType<typeof GetSelfChatChannelMessages>>, baseKeys?: [locale: string, search?: string | undefined]) => void;
@@ -1858,7 +1858,7 @@ interface GetSelfChatChannelMessagesProps extends InfiniteQueryParams {
1858
1858
  channelId: string;
1859
1859
  }
1860
1860
  declare const GetSelfChatChannelMessages: ({ channelId, pageParam, pageSize, orderBy, search, queryClient, clientApiParams, }: GetSelfChatChannelMessagesProps) => Promise<ConnectedXMResponse<ChatChannelMessage[]>>;
1861
- declare const useGetSelfChatChannelMessages: (channelId: string, params?: Omit<InfiniteQueryParams, "pageParam" | "queryClient" | "clientApiParams">, options?: InfiniteQueryOptions<Awaited<ReturnType<typeof GetSelfChatChannelMessages>>>) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<ConnectedXMResponse<ChatChannelMessage[]>, number>, axios.AxiosError<ConnectedXMResponse<null>, any>>;
1861
+ declare const useGetSelfChatChannelMessages: (channelId?: string, params?: Omit<InfiniteQueryParams, "pageParam" | "queryClient" | "clientApiParams">, options?: InfiniteQueryOptions<Awaited<ReturnType<typeof GetSelfChatChannelMessages>>>) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<ConnectedXMResponse<ChatChannelMessage[]>, number>, axios.AxiosError<ConnectedXMResponse<null>, any>>;
1862
1862
 
1863
1863
  declare const SELF_CHAT_CHANNELS_QUERY_KEY: () => QueryKey;
1864
1864
  declare const SET_SELF_CHAT_CHANNELS_QUERY_DATA: (client: QueryClient, keyParams: Parameters<typeof SELF_CHAT_CHANNELS_QUERY_KEY>, response: Awaited<ReturnType<typeof GetSelfChatChannels>>, baseKeys?: [locale: string, search?: string | undefined]) => void;
@@ -2976,6 +2976,7 @@ interface UpdateListing {
2976
2976
  registrationLimit?: number | null;
2977
2977
  newActivityCreatorEmailNotification: boolean;
2978
2978
  newActivityCreatorPushNotification: boolean;
2979
+ slug?: string;
2979
2980
  }
2980
2981
  declare const UpdateListing: ({ eventId, event, base64, clientApiParams, queryClient, }: UpdateListingParams) => Promise<ConnectedXMResponse<EventListing>>;
2981
2982
  declare const useUpdateListing: (options?: Omit<MutationOptions<Awaited<ReturnType<typeof UpdateListing>>, Omit<UpdateListingParams, "queryClient" | "clientApiParams">>, "mutationFn">) => _tanstack_react_query.UseMutationResult<ConnectedXMResponse<EventListing>, axios.AxiosError<ConnectedXMResponse<EventListing>, any>, Omit<UpdateListingParams, "queryClient" | "clientApiParams">, unknown>;
package/dist/index.d.ts CHANGED
@@ -1842,7 +1842,7 @@ interface GetSelfChatChannelProps extends SingleQueryParams {
1842
1842
  channelId: string;
1843
1843
  }
1844
1844
  declare const GetSelfChatChannel: ({ channelId, clientApiParams, }: GetSelfChatChannelProps) => Promise<ConnectedXMResponse<ChatChannelMember>>;
1845
- declare const useGetSelfChatChannel: (channelId: string, options?: SingleQueryOptions<ReturnType<typeof GetSelfChatChannel>>) => _tanstack_react_query.UseQueryResult<ConnectedXMResponse<ChatChannelMember>, axios.AxiosError<ConnectedXMResponse<any>, any>>;
1845
+ declare const useGetSelfChatChannel: (channelId?: string, options?: SingleQueryOptions<ReturnType<typeof GetSelfChatChannel>>) => _tanstack_react_query.UseQueryResult<ConnectedXMResponse<ChatChannelMember>, axios.AxiosError<ConnectedXMResponse<any>, any>>;
1846
1846
 
1847
1847
  declare const SELF_CHAT_CHANNEL_MEMBERS_QUERY_KEY: (channelId: string) => QueryKey;
1848
1848
  declare const SET_SELF_CHAT_CHANNEL_MEMBERS_QUERY_DATA: (client: QueryClient, keyParams: Parameters<typeof SELF_CHAT_CHANNEL_MEMBERS_QUERY_KEY>, response: Awaited<ReturnType<typeof GetSelfChatChannelMembers>>, baseKeys?: [locale: string, search?: string | undefined]) => void;
@@ -1850,7 +1850,7 @@ interface GetSelfChatChannelMembersProps extends InfiniteQueryParams {
1850
1850
  channelId: string;
1851
1851
  }
1852
1852
  declare const GetSelfChatChannelMembers: ({ channelId, pageParam, pageSize, orderBy, search, clientApiParams, }: GetSelfChatChannelMembersProps) => Promise<ConnectedXMResponse<ChatChannelMember[]>>;
1853
- declare const useGetSelfChatChannelMembers: (channelId: string, params?: Omit<InfiniteQueryParams, "pageParam" | "queryClient" | "clientApiParams">, options?: InfiniteQueryOptions<Awaited<ReturnType<typeof GetSelfChatChannelMembers>>>) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<ConnectedXMResponse<ChatChannelMember[]>, number>, axios.AxiosError<ConnectedXMResponse<null>, any>>;
1853
+ declare const useGetSelfChatChannelMembers: (channelId?: string, params?: Omit<InfiniteQueryParams, "pageParam" | "queryClient" | "clientApiParams">, options?: InfiniteQueryOptions<Awaited<ReturnType<typeof GetSelfChatChannelMembers>>>) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<ConnectedXMResponse<ChatChannelMember[]>, number>, axios.AxiosError<ConnectedXMResponse<null>, any>>;
1854
1854
 
1855
1855
  declare const SELF_CHAT_CHANNEL_MESSAGES_QUERY_KEY: (channelId: string) => QueryKey;
1856
1856
  declare const SET_SELF_CHAT_CHANNEL_MESSAGES_QUERY_DATA: (client: QueryClient, keyParams: Parameters<typeof SELF_CHAT_CHANNEL_MESSAGES_QUERY_KEY>, response: Awaited<ReturnType<typeof GetSelfChatChannelMessages>>, baseKeys?: [locale: string, search?: string | undefined]) => void;
@@ -1858,7 +1858,7 @@ interface GetSelfChatChannelMessagesProps extends InfiniteQueryParams {
1858
1858
  channelId: string;
1859
1859
  }
1860
1860
  declare const GetSelfChatChannelMessages: ({ channelId, pageParam, pageSize, orderBy, search, queryClient, clientApiParams, }: GetSelfChatChannelMessagesProps) => Promise<ConnectedXMResponse<ChatChannelMessage[]>>;
1861
- declare const useGetSelfChatChannelMessages: (channelId: string, params?: Omit<InfiniteQueryParams, "pageParam" | "queryClient" | "clientApiParams">, options?: InfiniteQueryOptions<Awaited<ReturnType<typeof GetSelfChatChannelMessages>>>) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<ConnectedXMResponse<ChatChannelMessage[]>, number>, axios.AxiosError<ConnectedXMResponse<null>, any>>;
1861
+ declare const useGetSelfChatChannelMessages: (channelId?: string, params?: Omit<InfiniteQueryParams, "pageParam" | "queryClient" | "clientApiParams">, options?: InfiniteQueryOptions<Awaited<ReturnType<typeof GetSelfChatChannelMessages>>>) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<ConnectedXMResponse<ChatChannelMessage[]>, number>, axios.AxiosError<ConnectedXMResponse<null>, any>>;
1862
1862
 
1863
1863
  declare const SELF_CHAT_CHANNELS_QUERY_KEY: () => QueryKey;
1864
1864
  declare const SET_SELF_CHAT_CHANNELS_QUERY_DATA: (client: QueryClient, keyParams: Parameters<typeof SELF_CHAT_CHANNELS_QUERY_KEY>, response: Awaited<ReturnType<typeof GetSelfChatChannels>>, baseKeys?: [locale: string, search?: string | undefined]) => void;
@@ -2976,6 +2976,7 @@ interface UpdateListing {
2976
2976
  registrationLimit?: number | null;
2977
2977
  newActivityCreatorEmailNotification: boolean;
2978
2978
  newActivityCreatorPushNotification: boolean;
2979
+ slug?: string;
2979
2980
  }
2980
2981
  declare const UpdateListing: ({ eventId, event, base64, clientApiParams, queryClient, }: UpdateListingParams) => Promise<ConnectedXMResponse<EventListing>>;
2981
2982
  declare const useUpdateListing: (options?: Omit<MutationOptions<Awaited<ReturnType<typeof UpdateListing>>, Omit<UpdateListingParams, "queryClient" | "clientApiParams">>, "mutationFn">) => _tanstack_react_query.UseMutationResult<ConnectedXMResponse<EventListing>, axios.AxiosError<ConnectedXMResponse<EventListing>, any>, Omit<UpdateListingParams, "queryClient" | "clientApiParams">, unknown>;
package/dist/index.js CHANGED
@@ -3705,7 +3705,7 @@ var GetSelfChatChannel = async ({
3705
3705
  const { data } = await clientApi.get(`/self/chat/channels/${channelId}`);
3706
3706
  return data;
3707
3707
  };
3708
- var useGetSelfChatChannel = (channelId, options = {}) => {
3708
+ var useGetSelfChatChannel = (channelId = "", options = {}) => {
3709
3709
  const { authenticated } = useConnectedXM();
3710
3710
  return useConnectedSingleQuery(
3711
3711
  SELF_CHAT_CHANNEL_QUERY_KEY(channelId),
@@ -3754,7 +3754,7 @@ var GetSelfChatChannelMembers = async ({
3754
3754
  );
3755
3755
  return data;
3756
3756
  };
3757
- var useGetSelfChatChannelMembers = (channelId, params = {}, options = {}) => {
3757
+ var useGetSelfChatChannelMembers = (channelId = "", params = {}, options = {}) => {
3758
3758
  const { authenticated } = useConnectedXM();
3759
3759
  return useConnectedInfiniteQuery(
3760
3760
  SELF_CHAT_CHANNEL_MEMBERS_QUERY_KEY(channelId),
@@ -3810,7 +3810,7 @@ var GetSelfChatChannelMessages = async ({
3810
3810
  }
3811
3811
  return data;
3812
3812
  };
3813
- var useGetSelfChatChannelMessages = (channelId, params = {}, options = {}) => {
3813
+ var useGetSelfChatChannelMessages = (channelId = "", params = {}, options = {}) => {
3814
3814
  const { authenticated } = useConnectedXM();
3815
3815
  return useConnectedInfiniteQuery(
3816
3816
  SELF_CHAT_CHANNEL_MESSAGES_QUERY_KEY(channelId),
package/dist/index.mjs CHANGED
@@ -3047,7 +3047,7 @@ var GetSelfChatChannel = async ({
3047
3047
  const { data } = await clientApi.get(`/self/chat/channels/${channelId}`);
3048
3048
  return data;
3049
3049
  };
3050
- var useGetSelfChatChannel = (channelId, options = {}) => {
3050
+ var useGetSelfChatChannel = (channelId = "", options = {}) => {
3051
3051
  const { authenticated } = useConnectedXM();
3052
3052
  return useConnectedSingleQuery(
3053
3053
  SELF_CHAT_CHANNEL_QUERY_KEY(channelId),
@@ -3096,7 +3096,7 @@ var GetSelfChatChannelMembers = async ({
3096
3096
  );
3097
3097
  return data;
3098
3098
  };
3099
- var useGetSelfChatChannelMembers = (channelId, params = {}, options = {}) => {
3099
+ var useGetSelfChatChannelMembers = (channelId = "", params = {}, options = {}) => {
3100
3100
  const { authenticated } = useConnectedXM();
3101
3101
  return useConnectedInfiniteQuery(
3102
3102
  SELF_CHAT_CHANNEL_MEMBERS_QUERY_KEY(channelId),
@@ -3152,7 +3152,7 @@ var GetSelfChatChannelMessages = async ({
3152
3152
  }
3153
3153
  return data;
3154
3154
  };
3155
- var useGetSelfChatChannelMessages = (channelId, params = {}, options = {}) => {
3155
+ var useGetSelfChatChannelMessages = (channelId = "", params = {}, options = {}) => {
3156
3156
  const { authenticated } = useConnectedXM();
3157
3157
  return useConnectedInfiniteQuery(
3158
3158
  SELF_CHAT_CHANNEL_MESSAGES_QUERY_KEY(channelId),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@connectedxm/client",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Client API javascript SDK",
5
5
  "author": "ConnectedXM Inc.",
6
6
  "repository": {