@connectedxm/client 3.0.4 → 3.0.6

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.ts CHANGED
@@ -2288,7 +2288,7 @@ interface SingleQueryOptions<TQueryData = unknown> extends Omit<UseQueryOptions<
2288
2288
  shouldRedirect?: boolean;
2289
2289
  }
2290
2290
  declare const GetBaseSingleQueryKeys: (locale: string) => QueryKey;
2291
- declare const useConnectedSingleQuery: <TQueryData = unknown>(queryKeys: QueryKey, queryFn: (params: SingleQueryParams) => TQueryData, options?: SingleQueryOptions<TQueryData>) => _tanstack_react_query.UseQueryResult<Awaited<TQueryData>, AxiosError<ConnectedXMResponse<any>, any>>;
2291
+ declare const useConnectedSingleQuery: <TQueryData = unknown>(queryKeys: QueryKey, queryFn: (params: SingleQueryParams) => TQueryData, options?: SingleQueryOptions<TQueryData>) => _tanstack_react_query.UseQueryResult<_tanstack_react_query.NoInfer<Awaited<TQueryData>>, AxiosError<ConnectedXMResponse<any>, any>>;
2292
2292
 
2293
2293
  declare const ACCOUNT_QUERY_KEY: (accountId: string) => QueryKey;
2294
2294
  declare const SET_ACCOUNT_QUERY_DATA: (client: QueryClient, keyParams: Parameters<typeof ACCOUNT_QUERY_KEY>, response: Awaited<ReturnType<typeof GetAccount>>, baseKeys?: Parameters<typeof GetBaseSingleQueryKeys>) => void;
@@ -2321,7 +2321,7 @@ interface InfiniteQueryParams {
2321
2321
  locale?: string;
2322
2322
  queryClient?: QueryClient;
2323
2323
  }
2324
- interface InfiniteQueryOptions<TQueryData extends ConnectedXMResponse<any> = ConnectedXMResponse<unknown>> extends Omit<UseInfiniteQueryOptions<TQueryData, AxiosError<ConnectedXMResponse<null>>, InfiniteData<TQueryData, number>, TQueryData, QueryKey, number>, "queryKey" | "queryFn" | "getNextPageParam" | "initialPageParam"> {
2324
+ interface InfiniteQueryOptions<TQueryData extends ConnectedXMResponse<any> = ConnectedXMResponse<unknown>> extends Omit<UseInfiniteQueryOptions<TQueryData, AxiosError<ConnectedXMResponse<null>>, InfiniteData<TQueryData, number>, QueryKey, number>, "queryKey" | "queryFn" | "getNextPageParam" | "initialPageParam"> {
2325
2325
  shouldRedirect?: boolean;
2326
2326
  }
2327
2327
  declare const GetBaseInfiniteQueryKeys: (locale: string, search?: string) => string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@connectedxm/client",
3
- "version": "3.0.4",
3
+ "version": "3.0.6",
4
4
  "description": "Client API javascript SDK",
5
5
  "author": "ConnectedXM Inc.",
6
6
  "type": "module",
@@ -10,20 +10,20 @@
10
10
  },
11
11
  "license": "MIT",
12
12
  "private": false,
13
- "main": "dist/index.cjs",
13
+ "main": "dist/index.js",
14
14
  "module": "dist/index.js",
15
15
  "types": "dist/index.d.ts",
16
16
  "scripts": {
17
17
  "dev": "vitest",
18
18
  "lint": "npx tsc && eslint src/**/*.ts",
19
19
  "test": "vitest run",
20
- "build": "tsup src/index.ts --format cjs,esm --dts",
20
+ "build": "tsup src/index.ts --format esm --dts",
21
21
  "release": "npm run lint && npm run test && npm run build",
22
22
  "local": "npm run release && npm pack",
23
23
  "upgrade": "ncu -i --format group"
24
24
  },
25
25
  "dependencies": {
26
- "axios": "^1.9.0",
26
+ "axios": "^1.10.0",
27
27
  "immer": "^10.1.1"
28
28
  },
29
29
  "peerDependencies": {
@@ -43,20 +43,20 @@
43
43
  }
44
44
  },
45
45
  "devDependencies": {
46
- "@swc/core": "^1.11.24",
47
- "@tanstack/react-query": "^5.75.1",
48
- "@types/react": "^19.1.2",
49
- "@typescript-eslint/eslint-plugin": "^8.31.1",
50
- "@typescript-eslint/parser": "^8.31.1",
51
- "eslint": "^9.26.0",
46
+ "@swc/core": "^1.12.6",
47
+ "@tanstack/react-query": "^5.81.2",
48
+ "@types/react": "^19.1.8",
49
+ "@typescript-eslint/eslint-plugin": "^8.35.0",
50
+ "@typescript-eslint/parser": "^8.35.0",
51
+ "eslint": "^9.29.0",
52
52
  "eslint-plugin-react": "^7.37.5",
53
53
  "eslint-plugin-react-hooks": "^5.2.0",
54
54
  "react": "^19.1.0",
55
- "tsup": "^8.4.0",
55
+ "tsup": "^8.5.0",
56
56
  "typescript": "^5.8.3",
57
- "vitest": "^3.1.2"
57
+ "vitest": "^3.2.4"
58
58
  },
59
59
  "optionalDependencies": {
60
- "@rollup/rollup-linux-x64-gnu": "4.40.1"
60
+ "@rollup/rollup-linux-x64-gnu": "4.44.0"
61
61
  }
62
62
  }