@connectedxm/client 3.0.4 → 3.0.5
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.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/package.json +13 -13
package/dist/index.d.cts
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
|
|
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>,
|
|
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/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
|
|
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>,
|
|
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.
|
|
3
|
+
"version": "3.0.5",
|
|
4
4
|
"description": "Client API javascript SDK",
|
|
5
5
|
"author": "ConnectedXM Inc.",
|
|
6
6
|
"type": "module",
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
},
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"private": false,
|
|
13
|
-
"main": "dist/index.
|
|
14
|
-
"module": "dist/index.
|
|
13
|
+
"main": "dist/index.js",
|
|
14
|
+
"module": "dist/index.mjs",
|
|
15
15
|
"types": "dist/index.d.ts",
|
|
16
16
|
"scripts": {
|
|
17
17
|
"dev": "vitest",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"upgrade": "ncu -i --format group"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"axios": "^1.
|
|
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.
|
|
47
|
-
"@tanstack/react-query": "^5.
|
|
48
|
-
"@types/react": "^19.1.
|
|
49
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
50
|
-
"@typescript-eslint/parser": "^8.
|
|
51
|
-
"eslint": "^9.
|
|
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.
|
|
55
|
+
"tsup": "^8.5.0",
|
|
56
56
|
"typescript": "^5.8.3",
|
|
57
|
-
"vitest": "^3.
|
|
57
|
+
"vitest": "^3.2.4"
|
|
58
58
|
},
|
|
59
59
|
"optionalDependencies": {
|
|
60
|
-
"@rollup/rollup-linux-x64-gnu": "4.
|
|
60
|
+
"@rollup/rollup-linux-x64-gnu": "4.44.0"
|
|
61
61
|
}
|
|
62
62
|
}
|