@geekmidas/client 10.0.0-alpha.1 → 10.0.0-alpha.3
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 +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/{infer-DfRq5kIb.d.cts → infer-CPRqfabW.d.cts} +4 -4
- package/dist/{infer-DfRq5kIb.d.cts.map → infer-CPRqfabW.d.cts.map} +1 -1
- package/dist/{infer-bTirNeNW.d.mts → infer-D9CgpOuc.d.mts} +4 -4
- package/dist/{infer-bTirNeNW.d.mts.map → infer-D9CgpOuc.d.mts.map} +1 -1
- package/dist/infer.d.cts +1 -1
- package/dist/infer.d.mts +1 -1
- package/dist/openapi-hooks.d.mts +3 -3
- package/dist/react-query.d.mts +7 -7
- package/package.json +5 -5
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EndpointString, ErrorTransformer, ExtractEndpointConfig, ExtractEndpointResponse, ExtractMethod, ExtractPathParams, ExtractQueryParams, ExtractRequestBody, ExtractResponse, FetcherOptions, FilterEndpointByMethod, FilteredRequestConfig, IsConfigRequired, MutationEndpoint, OpenAPIRoutes, ParseEndpoint, QueryEndpoint, RequestConfig, TypedApiFunction, TypedEndpoint, ValidEndpoint, WrappedApiFunction, WrappedResult } from "./types-DMQMHePI.cjs";
|
|
2
2
|
import { ApiKeyProvider, AuthFetcherOptions, AuthStrategy, AuthenticatedEndpoints, AwsSigner, GetEndpointAuth, PublicEndpoints, SecuritySchemeObject, TokenProvider, UsedSecuritySchemes, createAuthAwareFetcher } from "./auth-fetcher-CBYuL6rx.cjs";
|
|
3
3
|
import { FetchFn, TypedFetcher, createTypedFetcher } from "./fetcher-cDrfwN-Y.cjs";
|
|
4
|
-
import { InferOpenApi, InferOpenApiFromEndpoint } from "./infer-
|
|
4
|
+
import { InferOpenApi, InferOpenApiFromEndpoint } from "./infer-CPRqfabW.cjs";
|
|
5
5
|
export { ApiKeyProvider, AuthFetcherOptions, AuthStrategy, AuthenticatedEndpoints, AwsSigner, EndpointString, ErrorTransformer, ExtractEndpointConfig, ExtractEndpointResponse, ExtractMethod, ExtractPathParams, ExtractQueryParams, ExtractRequestBody, ExtractResponse, FetchFn, FetcherOptions, FilterEndpointByMethod, FilteredRequestConfig, GetEndpointAuth, InferOpenApi, InferOpenApiFromEndpoint, IsConfigRequired, MutationEndpoint, OpenAPIRoutes, ParseEndpoint, PublicEndpoints, QueryEndpoint, RequestConfig, SecuritySchemeObject, TokenProvider, TypedApiFunction, TypedEndpoint, TypedFetcher, UsedSecuritySchemes, ValidEndpoint, WrappedApiFunction, WrappedResult, createAuthAwareFetcher, createTypedFetcher };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EndpointString, ErrorTransformer, ExtractEndpointConfig, ExtractEndpointResponse, ExtractMethod, ExtractPathParams, ExtractQueryParams, ExtractRequestBody, ExtractResponse, FetcherOptions, FilterEndpointByMethod, FilteredRequestConfig, IsConfigRequired, MutationEndpoint, OpenAPIRoutes, ParseEndpoint, QueryEndpoint, RequestConfig, TypedApiFunction, TypedEndpoint, ValidEndpoint, WrappedApiFunction, WrappedResult } from "./types-BMGM6sZc.mjs";
|
|
2
2
|
import { ApiKeyProvider, AuthFetcherOptions, AuthStrategy, AuthenticatedEndpoints, AwsSigner, GetEndpointAuth, PublicEndpoints, SecuritySchemeObject, TokenProvider, UsedSecuritySchemes, createAuthAwareFetcher } from "./auth-fetcher-DxS8zOLc.mjs";
|
|
3
3
|
import { FetchFn, TypedFetcher, createTypedFetcher } from "./fetcher-C1xtCKpT.mjs";
|
|
4
|
-
import { InferOpenApi, InferOpenApiFromEndpoint } from "./infer-
|
|
4
|
+
import { InferOpenApi, InferOpenApiFromEndpoint } from "./infer-D9CgpOuc.mjs";
|
|
5
5
|
export { ApiKeyProvider, AuthFetcherOptions, AuthStrategy, AuthenticatedEndpoints, AwsSigner, EndpointString, ErrorTransformer, ExtractEndpointConfig, ExtractEndpointResponse, ExtractMethod, ExtractPathParams, ExtractQueryParams, ExtractRequestBody, ExtractResponse, FetchFn, FetcherOptions, FilterEndpointByMethod, FilteredRequestConfig, GetEndpointAuth, InferOpenApi, InferOpenApiFromEndpoint, IsConfigRequired, MutationEndpoint, OpenAPIRoutes, ParseEndpoint, PublicEndpoints, QueryEndpoint, RequestConfig, SecuritySchemeObject, TokenProvider, TypedApiFunction, TypedEndpoint, TypedFetcher, UsedSecuritySchemes, ValidEndpoint, WrappedApiFunction, WrappedResult, createAuthAwareFetcher, createTypedFetcher };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Endpoint, EndpointSchemas } from "@geekmidas/constructs/endpoints";
|
|
2
2
|
import { HttpMethod } from "@geekmidas/constructs/types";
|
|
3
|
-
import { InferStandardSchema } from "@geekmidas/schema";
|
|
3
|
+
import { InferStandardSchema, InferStandardSchemaInput } from "@geekmidas/schema";
|
|
4
4
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
5
5
|
|
|
6
6
|
//#region src/infer.d.ts
|
|
@@ -29,7 +29,7 @@ type InferOperationParameters<TInput extends EndpointSchemas> = TInput extends {
|
|
|
29
29
|
query: infer Q;
|
|
30
30
|
} ? {
|
|
31
31
|
parameters: {
|
|
32
|
-
query:
|
|
32
|
+
query: InferStandardSchemaInput<Q>;
|
|
33
33
|
};
|
|
34
34
|
} : {};
|
|
35
35
|
/**
|
|
@@ -40,7 +40,7 @@ type InferOperation<TInput extends EndpointSchemas, TOutput extends StandardSche
|
|
|
40
40
|
body: infer B;
|
|
41
41
|
} ? {
|
|
42
42
|
content: {
|
|
43
|
-
'application/json':
|
|
43
|
+
'application/json': InferStandardSchemaInput<B>;
|
|
44
44
|
};
|
|
45
45
|
} : never;
|
|
46
46
|
responses: {
|
|
@@ -130,4 +130,4 @@ type InferOpenApi<TEndpoints extends readonly any[]> = TEndpoints extends readon
|
|
|
130
130
|
};
|
|
131
131
|
//#endregion
|
|
132
132
|
export { InferOpenApi, InferOpenApiFromEndpoint };
|
|
133
|
-
//# sourceMappingURL=infer-
|
|
133
|
+
//# sourceMappingURL=infer-CPRqfabW.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"infer-
|
|
1
|
+
{"version":3,"file":"infer-CPRqfabW.d.cts","names":[],"sources":["../src/infer.ts"],"sourcesContent":[],"mappings":";;;;;;;;;AAS8D;;KAMzD,eACJ,CAAA,eAAA,MAAA,CAAA,GAAA,MAAA,SAAA,GAAA,MAAA,IAAA,KAAA,MAAA,IAAA,KAAA,KAAA,EAAA,GAAA,QACW,KAAA,GAAA,MAAA,EAAK,GAAc,eAAgB,CAAA,IAAA,CAAA,GAAA,CAAA,CAAA;;AAAD;AAAA;KAMzC,eAAe,CAAA,UAAW,UAAX,CAAA,GAAyB,SAAzB,CAAmC,CAAnC,CAAA;;;;AAAkC,KAKjD,oBALiD,CAAA,eAAA,MAAA,CAAA,GAMrD,eANqD,CAMrC,MANqC,CAAA,SAMrB,MANqB,CAAA,MAAA,EAAA,KAAA,CAAA,GAAA,CAAA,CAAA,GAAA;EAKjD,UAAA,EAAA;IAAoB,IAAA,EAKd,eALc,CAKE,MALF,CAAA;EAAA,CAAA;CACF;;;;AAIG,KAOrB,wBAPqB,CAAA,eAOmB,eAPnB,CAAA,GAOsC,MAPtC,SAAA;EAOrB,KAAA,EAAA,KAAA,EAAA;CAAwB,GAAA;EAAA,UAAgB,EAAA;IAAmB,KAAA,EAUrD,wBAVqD,CAU5B,CAV4B,CAAA;EAAM,CAAA;CAUjC,GAAA,CAAA,CAAA;AAAF;AAAA;;KAQ9B,cACW,CAAA,eAAA,eAAA,EAAA,gBACC,gBADD,GAAA,SAAA,CAAA,GAEZ,wBAFY,CAEa,MAFb,CAAA,GAAA;EAAe,WACd,CAAA,EAEF,MAFE,SAAA;IACY,IAAA,EAAA,KAAA,EAAA;EAAM,CAAA,GAA/B;IACW,OAAA,EAAA;MAOmC,kBAAA,EAAzB,wBAAyB,CAAA,CAAA,CAAA;IAAzB,CAAA;EAAwB,CAAA,GAMrC,KAAA;EAAO,SAAS,EAAA;IAEkB,GAAA,EAAA;MAApB,OAAA,EAFd,OAEc,SAFE,gBAEF,GAAA;QAAmB,kBAAA,EAAnB,mBAAmB,CAAC,OAAD,CAAA;MA+BjC,CAAA,GAAA,KAAA;IAAwB,CAAA;EAAA,CAAA;CAClC;;;;;;;;;AAYmD;AA2CrD;;;;;;;;;;;;;;AAQiB;KAhEL,8BACX,UAAU;iBAWA,SAAS,qBAAqB,kBAC7B,gBAAgB,WAAW,eAAe,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA2ClD,kDACX,2DACG,yBAAyB;;IACxB;SACU;IACT,aAAa;;;SACH,KAAK;;SACL;IACX,aAAa"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Endpoint, EndpointSchemas } from "@geekmidas/constructs/endpoints";
|
|
2
2
|
import { HttpMethod } from "@geekmidas/constructs/types";
|
|
3
|
-
import { InferStandardSchema } from "@geekmidas/schema";
|
|
3
|
+
import { InferStandardSchema, InferStandardSchemaInput } from "@geekmidas/schema";
|
|
4
4
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
5
5
|
|
|
6
6
|
//#region src/infer.d.ts
|
|
@@ -29,7 +29,7 @@ type InferOperationParameters<TInput extends EndpointSchemas> = TInput extends {
|
|
|
29
29
|
query: infer Q;
|
|
30
30
|
} ? {
|
|
31
31
|
parameters: {
|
|
32
|
-
query:
|
|
32
|
+
query: InferStandardSchemaInput<Q>;
|
|
33
33
|
};
|
|
34
34
|
} : {};
|
|
35
35
|
/**
|
|
@@ -40,7 +40,7 @@ type InferOperation<TInput extends EndpointSchemas, TOutput extends StandardSche
|
|
|
40
40
|
body: infer B;
|
|
41
41
|
} ? {
|
|
42
42
|
content: {
|
|
43
|
-
'application/json':
|
|
43
|
+
'application/json': InferStandardSchemaInput<B>;
|
|
44
44
|
};
|
|
45
45
|
} : never;
|
|
46
46
|
responses: {
|
|
@@ -130,4 +130,4 @@ type InferOpenApi<TEndpoints extends readonly any[]> = TEndpoints extends readon
|
|
|
130
130
|
};
|
|
131
131
|
//#endregion
|
|
132
132
|
export { InferOpenApi, InferOpenApiFromEndpoint };
|
|
133
|
-
//# sourceMappingURL=infer-
|
|
133
|
+
//# sourceMappingURL=infer-D9CgpOuc.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"infer-
|
|
1
|
+
{"version":3,"file":"infer-D9CgpOuc.d.mts","names":[],"sources":["../src/infer.ts"],"sourcesContent":[],"mappings":";;;;;;;;;AAS8D;;KAMzD,eACJ,CAAA,eAAA,MAAA,CAAA,GAAA,MAAA,SAAA,GAAA,MAAA,IAAA,KAAA,MAAA,IAAA,KAAA,KAAA,EAAA,GAAA,QACW,KAAA,GAAA,MAAA,EAAK,GAAc,eAAgB,CAAA,IAAA,CAAA,GAAA,CAAA,CAAA;;AAAD;AAAA;KAMzC,eAAe,CAAA,UAAW,UAAX,CAAA,GAAyB,SAAzB,CAAmC,CAAnC,CAAA;;;;AAAkC,KAKjD,oBALiD,CAAA,eAAA,MAAA,CAAA,GAMrD,eANqD,CAMrC,MANqC,CAAA,SAMrB,MANqB,CAAA,MAAA,EAAA,KAAA,CAAA,GAAA,CAAA,CAAA,GAAA;EAKjD,UAAA,EAAA;IAAoB,IAAA,EAKd,eALc,CAKE,MALF,CAAA;EAAA,CAAA;CACF;;;;AAIG,KAOrB,wBAPqB,CAAA,eAOmB,eAPnB,CAAA,GAOsC,MAPtC,SAAA;EAOrB,KAAA,EAAA,KAAA,EAAA;CAAwB,GAAA;EAAA,UAAgB,EAAA;IAAmB,KAAA,EAUrD,wBAVqD,CAU5B,CAV4B,CAAA;EAAM,CAAA;CAUjC,GAAA,CAAA,CAAA;AAAF;AAAA;;KAQ9B,cACW,CAAA,eAAA,eAAA,EAAA,gBACC,gBADD,GAAA,SAAA,CAAA,GAEZ,wBAFY,CAEa,MAFb,CAAA,GAAA;EAAe,WACd,CAAA,EAEF,MAFE,SAAA;IACY,IAAA,EAAA,KAAA,EAAA;EAAM,CAAA,GAA/B;IACW,OAAA,EAAA;MAOmC,kBAAA,EAAzB,wBAAyB,CAAA,CAAA,CAAA;IAAzB,CAAA;EAAwB,CAAA,GAMrC,KAAA;EAAO,SAAS,EAAA;IAEkB,GAAA,EAAA;MAApB,OAAA,EAFd,OAEc,SAFE,gBAEF,GAAA;QAAmB,kBAAA,EAAnB,mBAAmB,CAAC,OAAD,CAAA;MA+BjC,CAAA,GAAA,KAAA;IAAwB,CAAA;EAAA,CAAA;CAClC;;;;;;;;;AAYmD;AA2CrD;;;;;;;;;;;;;;AAQiB;KAhEL,8BACX,UAAU;iBAWA,SAAS,qBAAqB,kBAC7B,gBAAgB,WAAW,eAAe,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA2ClD,kDACX,2DACG,yBAAyB;;IACxB;SACU;IACT,aAAa;;;SACH,KAAK;;SACL;IACX,aAAa"}
|
package/dist/infer.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { InferOpenApi, InferOpenApiFromEndpoint } from "./infer-
|
|
1
|
+
import { InferOpenApi, InferOpenApiFromEndpoint } from "./infer-CPRqfabW.cjs";
|
|
2
2
|
export { InferOpenApi, InferOpenApiFromEndpoint };
|
package/dist/infer.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { InferOpenApi, InferOpenApiFromEndpoint } from "./infer-
|
|
1
|
+
import { InferOpenApi, InferOpenApiFromEndpoint } from "./infer-D9CgpOuc.mjs";
|
|
2
2
|
export { InferOpenApi, InferOpenApiFromEndpoint };
|
package/dist/openapi-hooks.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FetcherOptions } from "./types-BMGM6sZc.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _tanstack_react_query8 from "@tanstack/react-query";
|
|
3
3
|
import { UseMutationOptions, UseQueryOptions } from "@tanstack/react-query";
|
|
4
4
|
|
|
5
5
|
//#region src/openapi-hooks.d.ts
|
|
@@ -91,8 +91,8 @@ interface OperationRegistry {
|
|
|
91
91
|
declare function createOpenAPIHooks<Paths>(options?: FetcherOptions & {
|
|
92
92
|
operations?: OperationRegistry;
|
|
93
93
|
}): {
|
|
94
|
-
useQuery: <OpId extends OperationsByMethod<Paths, "get">>(operationId: OpId, config?: RemoveNever<OperationParams<Paths, OpId>>, options?: Omit<UseQueryOptions<OperationResponse<Paths, OpId>, Error>, "queryKey" | "queryFn">) =>
|
|
95
|
-
useMutation: <OpId extends Exclude<OperationId<Paths>, OperationsByMethod<Paths, "get">>>(operationId: OpId, options?: Omit<UseMutationOptions<OperationResponse<Paths, OpId>, Error, RemoveNever<OperationParams<Paths, OpId>>>, "mutationFn">) =>
|
|
94
|
+
useQuery: <OpId extends OperationsByMethod<Paths, "get">>(operationId: OpId, config?: RemoveNever<OperationParams<Paths, OpId>>, options?: Omit<UseQueryOptions<OperationResponse<Paths, OpId>, Error>, "queryKey" | "queryFn">) => _tanstack_react_query8.UseQueryResult<_tanstack_react_query8.NoInfer<OperationResponse<Paths, OpId>>, Error>;
|
|
95
|
+
useMutation: <OpId extends Exclude<OperationId<Paths>, OperationsByMethod<Paths, "get">>>(operationId: OpId, options?: Omit<UseMutationOptions<OperationResponse<Paths, OpId>, Error, RemoveNever<OperationParams<Paths, OpId>>>, "mutationFn">) => _tanstack_react_query8.UseMutationResult<OperationResponse<Paths, OpId>, Error, RemoveNever<OperationParams<Paths, OpId>>, unknown>;
|
|
96
96
|
};
|
|
97
97
|
//#endregion
|
|
98
98
|
export { createOpenAPIHooks };
|
package/dist/react-query.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ExtractEndpointResponse, FetcherOptions, FilteredRequestConfig, MutationEndpoint, QueryEndpoint, TypedEndpoint } from "./types-BMGM6sZc.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _tanstack_react_query0 from "@tanstack/react-query";
|
|
3
3
|
import { QueryClient, UseInfiniteQueryOptions, UseMutationOptions, UseQueryOptions } from "@tanstack/react-query";
|
|
4
4
|
|
|
5
5
|
//#region src/react-query.d.ts
|
|
@@ -10,15 +10,15 @@ declare class TypedQueryClient<Paths> {
|
|
|
10
10
|
private fetcher;
|
|
11
11
|
private queryClient?;
|
|
12
12
|
constructor(options?: TypedQueryClientOptions);
|
|
13
|
-
useQuery<T extends QueryEndpoint<Paths>>(endpoint: T, config?: FilteredRequestConfig<Paths, T>, options?: Omit<UseQueryOptions<ExtractEndpointResponse<Paths, T>, Response>, 'queryKey' | 'queryFn'>):
|
|
14
|
-
useMutation<T extends MutationEndpoint<Paths>>(endpoint: T, options?: Omit<UseMutationOptions<ExtractEndpointResponse<Paths, T>, Response, FilteredRequestConfig<Paths, T>>, 'mutationFn'>):
|
|
13
|
+
useQuery<T extends QueryEndpoint<Paths>>(endpoint: T, config?: FilteredRequestConfig<Paths, T>, options?: Omit<UseQueryOptions<ExtractEndpointResponse<Paths, T>, Response>, 'queryKey' | 'queryFn'>): _tanstack_react_query0.UseQueryResult<_tanstack_react_query0.NoInfer<ExtractEndpointResponse<Paths, T>>, Response>;
|
|
14
|
+
useMutation<T extends MutationEndpoint<Paths>>(endpoint: T, options?: Omit<UseMutationOptions<ExtractEndpointResponse<Paths, T>, Response, FilteredRequestConfig<Paths, T>>, 'mutationFn'>): _tanstack_react_query0.UseMutationResult<ExtractEndpointResponse<Paths, T>, Response, FilteredRequestConfig<Paths, T>, unknown>;
|
|
15
15
|
useInfiniteQuery<T extends QueryEndpoint<Paths>, TPageData = ExtractEndpointResponse<Paths, T>, TPageParam = unknown>(endpoint: T, options: Omit<UseInfiniteQueryOptions<TPageData, Response, {
|
|
16
16
|
pages: TPageData[];
|
|
17
17
|
pageParams: TPageParam[];
|
|
18
18
|
}, unknown[], TPageParam>, 'queryKey' | 'queryFn' | 'getNextPageParam' | 'initialPageParam'> & {
|
|
19
19
|
getNextPageParam: (lastPage: TPageData, allPages: TPageData[], lastPageParam: TPageParam, allPageParams: TPageParam[]) => TPageParam | undefined;
|
|
20
20
|
initialPageParam: TPageParam;
|
|
21
|
-
}, config?: FilteredRequestConfig<Paths, T>):
|
|
21
|
+
}, config?: FilteredRequestConfig<Paths, T>): _tanstack_react_query0.UseInfiniteQueryResult<{
|
|
22
22
|
pages: TPageData[];
|
|
23
23
|
pageParams: TPageParam[];
|
|
24
24
|
}, Response>;
|
|
@@ -47,15 +47,15 @@ declare class TypedQueryClient<Paths> {
|
|
|
47
47
|
setQueryClient(queryClient: QueryClient): void;
|
|
48
48
|
}
|
|
49
49
|
declare function createTypedQueryClient<Paths>(options?: TypedQueryClientOptions): TypedQueryClient<Paths>;
|
|
50
|
-
declare function useTypedQuery<Paths, T extends QueryEndpoint<Paths>>(client: TypedQueryClient<Paths>, endpoint: T, config?: FilteredRequestConfig<Paths, T>, options?: Omit<UseQueryOptions<ExtractEndpointResponse<Paths, T>, Response>, 'queryKey' | 'queryFn'>):
|
|
51
|
-
declare function useTypedMutation<Paths, T extends MutationEndpoint<Paths>>(client: TypedQueryClient<Paths>, endpoint: T, options?: Omit<UseMutationOptions<ExtractEndpointResponse<Paths, T>, Response, FilteredRequestConfig<Paths, T>>, 'mutationFn'>):
|
|
50
|
+
declare function useTypedQuery<Paths, T extends QueryEndpoint<Paths>>(client: TypedQueryClient<Paths>, endpoint: T, config?: FilteredRequestConfig<Paths, T>, options?: Omit<UseQueryOptions<ExtractEndpointResponse<Paths, T>, Response>, 'queryKey' | 'queryFn'>): _tanstack_react_query0.UseQueryResult<_tanstack_react_query0.NoInfer<ExtractEndpointResponse<Paths, T>>, Response>;
|
|
51
|
+
declare function useTypedMutation<Paths, T extends MutationEndpoint<Paths>>(client: TypedQueryClient<Paths>, endpoint: T, options?: Omit<UseMutationOptions<ExtractEndpointResponse<Paths, T>, Response, FilteredRequestConfig<Paths, T>>, 'mutationFn'>): _tanstack_react_query0.UseMutationResult<ExtractEndpointResponse<Paths, T>, Response, FilteredRequestConfig<Paths, T>, unknown>;
|
|
52
52
|
declare function useTypedInfiniteQuery<Paths, T extends QueryEndpoint<Paths>, TPageData = ExtractEndpointResponse<Paths, T>, TPageParam = unknown>(client: TypedQueryClient<Paths>, endpoint: T, options: Omit<UseInfiniteQueryOptions<TPageData, Response, {
|
|
53
53
|
pages: TPageData[];
|
|
54
54
|
pageParams: TPageParam[];
|
|
55
55
|
}, unknown[], TPageParam>, 'queryKey' | 'queryFn' | 'getNextPageParam' | 'initialPageParam'> & {
|
|
56
56
|
getNextPageParam: (lastPage: TPageData, allPages: TPageData[], lastPageParam: TPageParam, allPageParams: TPageParam[]) => TPageParam | undefined;
|
|
57
57
|
initialPageParam: TPageParam;
|
|
58
|
-
}, config?: FilteredRequestConfig<Paths, T>):
|
|
58
|
+
}, config?: FilteredRequestConfig<Paths, T>): _tanstack_react_query0.UseInfiniteQueryResult<{
|
|
59
59
|
pages: TPageData[];
|
|
60
60
|
pageParams: TPageParam[];
|
|
61
61
|
}, Response>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@geekmidas/client",
|
|
3
|
-
"version": "10.0.0-alpha.
|
|
3
|
+
"version": "10.0.0-alpha.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -111,16 +111,16 @@
|
|
|
111
111
|
"@types/react-dom": "~19.1.6",
|
|
112
112
|
"jsdom": "~26.1.0",
|
|
113
113
|
"msw": "~2.10.3",
|
|
114
|
-
"@geekmidas/constructs": "^10.0.0-alpha.
|
|
115
|
-
"@geekmidas/schema": "^10.0.0-alpha.
|
|
114
|
+
"@geekmidas/constructs": "^10.0.0-alpha.3",
|
|
115
|
+
"@geekmidas/schema": "^10.0.0-alpha.3"
|
|
116
116
|
},
|
|
117
117
|
"peerDependencies": {
|
|
118
118
|
"@tanstack/react-query": ">=5.0.0",
|
|
119
119
|
"react": ">=18.0.0",
|
|
120
120
|
"react-dom": ">=18.0.0",
|
|
121
121
|
"zod": "~4.1.13",
|
|
122
|
-
"@geekmidas/constructs": "^10.0.0-alpha.
|
|
123
|
-
"@geekmidas/schema": "^10.0.0-alpha.
|
|
122
|
+
"@geekmidas/constructs": "^10.0.0-alpha.3",
|
|
123
|
+
"@geekmidas/schema": "^10.0.0-alpha.3"
|
|
124
124
|
},
|
|
125
125
|
"peerDependenciesMeta": {
|
|
126
126
|
"@geekmidas/constructs": {
|