@connectedxm/client 1.0.29 → 1.0.31

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
@@ -788,7 +788,7 @@ interface BaseFaq {
788
788
  id: string;
789
789
  slug: string;
790
790
  question: string;
791
- answer: string;
791
+ answer?: string;
792
792
  }
793
793
  interface Faq extends BaseFaq {
794
794
  section: BaseFaqSection | null;
@@ -1914,7 +1914,7 @@ declare const SET_ACCOUNTS_QUERY_DATA: (client: QueryClient, keyParams: Paramete
1914
1914
  interface GetAccountsProps extends InfiniteQueryParams {
1915
1915
  accountType?: keyof typeof AccountType;
1916
1916
  }
1917
- declare const GetAccounts: ({ pageSize, orderBy, search, accountType, queryClient, clientApiParams, locale, }: GetAccountsProps) => Promise<ConnectedXMResponse<Account[]>>;
1917
+ declare const GetAccounts: ({ pageParam, pageSize, orderBy, search, accountType, queryClient, clientApiParams, locale, }: GetAccountsProps) => Promise<ConnectedXMResponse<Account[]>>;
1918
1918
  declare const useGetAccounts: (accountType?: keyof typeof AccountType, params?: Omit<InfiniteQueryParams, "pageParam" | "queryClient" | "clientApiParams">, options?: InfiniteQueryOptions<Awaited<ReturnType<typeof GetAccounts>>>) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<ConnectedXMResponse<Account[]>, number>, axios.AxiosError<ConnectedXMResponse<null>, any>>;
1919
1919
 
1920
1920
  declare const ACCOUNT_MEDIA_QUERY_KEY: (accountId: string, type?: "images" | "videos") => QueryKey;
package/dist/index.d.ts CHANGED
@@ -788,7 +788,7 @@ interface BaseFaq {
788
788
  id: string;
789
789
  slug: string;
790
790
  question: string;
791
- answer: string;
791
+ answer?: string;
792
792
  }
793
793
  interface Faq extends BaseFaq {
794
794
  section: BaseFaqSection | null;
@@ -1914,7 +1914,7 @@ declare const SET_ACCOUNTS_QUERY_DATA: (client: QueryClient, keyParams: Paramete
1914
1914
  interface GetAccountsProps extends InfiniteQueryParams {
1915
1915
  accountType?: keyof typeof AccountType;
1916
1916
  }
1917
- declare const GetAccounts: ({ pageSize, orderBy, search, accountType, queryClient, clientApiParams, locale, }: GetAccountsProps) => Promise<ConnectedXMResponse<Account[]>>;
1917
+ declare const GetAccounts: ({ pageParam, pageSize, orderBy, search, accountType, queryClient, clientApiParams, locale, }: GetAccountsProps) => Promise<ConnectedXMResponse<Account[]>>;
1918
1918
  declare const useGetAccounts: (accountType?: keyof typeof AccountType, params?: Omit<InfiniteQueryParams, "pageParam" | "queryClient" | "clientApiParams">, options?: InfiniteQueryOptions<Awaited<ReturnType<typeof GetAccounts>>>) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<ConnectedXMResponse<Account[]>, number>, axios.AxiosError<ConnectedXMResponse<null>, any>>;
1919
1919
 
1920
1920
  declare const ACCOUNT_MEDIA_QUERY_KEY: (accountId: string, type?: "images" | "videos") => QueryKey;
package/dist/index.js CHANGED
@@ -1693,6 +1693,7 @@ var SET_ACCOUNTS_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) =
1693
1693
  );
1694
1694
  };
1695
1695
  var GetAccounts = async ({
1696
+ pageParam,
1696
1697
  pageSize,
1697
1698
  orderBy,
1698
1699
  search,
@@ -1705,6 +1706,7 @@ var GetAccounts = async ({
1705
1706
  const { data } = await clientApi.get(`/accounts`, {
1706
1707
  params: {
1707
1708
  accountType: accountType || void 0,
1709
+ page: pageParam || void 0,
1708
1710
  pageSize: pageSize || void 0,
1709
1711
  orderBy: orderBy || void 0,
1710
1712
  search: search || void 0
package/dist/index.mjs CHANGED
@@ -728,6 +728,7 @@ var SET_ACCOUNTS_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) =
728
728
  );
729
729
  };
730
730
  var GetAccounts = async ({
731
+ pageParam,
731
732
  pageSize,
732
733
  orderBy,
733
734
  search,
@@ -740,6 +741,7 @@ var GetAccounts = async ({
740
741
  const { data } = await clientApi.get(`/accounts`, {
741
742
  params: {
742
743
  accountType: accountType || void 0,
744
+ page: pageParam || void 0,
743
745
  pageSize: pageSize || void 0,
744
746
  orderBy: orderBy || void 0,
745
747
  search: search || void 0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@connectedxm/client",
3
- "version": "1.0.29",
3
+ "version": "1.0.31",
4
4
  "description": "Client API javascript SDK",
5
5
  "author": "ConnectedXM Inc.",
6
6
  "repository": {