@constructive-io/react 1.20.4 → 1.20.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/admin/orm/input-types.d.ts +4 -4
- package/admin/orm/mutation/index.d.ts +5 -4
- package/admin/schema-types.d.ts +3 -3
- package/agent/orm/input-types.d.ts +4 -4
- package/agent/orm/mutation/index.d.ts +5 -4
- package/agent/schema-types.d.ts +3 -3
- package/api/hooks/index.d.ts +1 -1
- package/api/hooks/index.js +1 -1
- package/api/hooks/invalidation.d.ts +0 -12
- package/api/hooks/invalidation.js +0 -32
- package/api/hooks/mutation-keys.d.ts +4 -24
- package/api/hooks/mutation-keys.js +8 -16
- package/api/hooks/mutations/index.d.ts +2 -6
- package/api/hooks/mutations/index.js +2 -6
- package/api/hooks/mutations/useCreateFunctionFromSourceMutation.d.ts +20 -0
- package/api/hooks/mutations/{useCreateHostnameBindingMutation.js → useCreateFunctionFromSourceMutation.js} +6 -14
- package/api/hooks/mutations/useUpdateFunctionFromSourceMutation.d.ts +20 -0
- package/api/hooks/mutations/useUpdateFunctionFromSourceMutation.js +26 -0
- package/api/hooks/queries/index.d.ts +1 -4
- package/api/hooks/queries/index.js +1 -4
- package/api/hooks/queries/useEmailSharedAccountQuery.d.ts +45 -0
- package/api/hooks/queries/useEmailSharedAccountQuery.js +49 -0
- package/api/hooks/query-keys.d.ts +2 -28
- package/api/hooks/query-keys.js +3 -18
- package/api/orm/index.d.ts +15 -4
- package/api/orm/index.js +0 -4
- package/api/orm/input-types.d.ts +96 -439
- package/api/orm/models/index.d.ts +0 -2
- package/api/orm/models/index.js +2 -6
- package/api/orm/mutation/index.d.ts +30 -5
- package/api/orm/mutation/index.js +24 -0
- package/api/orm/query/index.d.ts +5 -0
- package/api/orm/query/index.js +7 -0
- package/api/schema-types.d.ts +39 -273
- package/api/types.d.ts +3 -28
- package/auth/orm/input-types.d.ts +5 -29
- package/auth/orm/mutation/index.d.ts +5 -4
- package/auth/schema-types.d.ts +4 -16
- package/compute/orm/input-types.d.ts +50 -6
- package/compute/orm/mutation/index.d.ts +5 -4
- package/compute/schema-types.d.ts +29 -5
- package/compute/types.d.ts +4 -0
- package/config/orm/input-types.d.ts +4 -4
- package/config/orm/mutation/index.d.ts +5 -4
- package/config/schema-types.d.ts +3 -3
- package/esm/admin/orm/input-types.d.ts +4 -4
- package/esm/admin/orm/mutation/index.d.ts +5 -4
- package/esm/admin/schema-types.d.ts +3 -3
- package/esm/agent/orm/input-types.d.ts +4 -4
- package/esm/agent/orm/mutation/index.d.ts +5 -4
- package/esm/agent/schema-types.d.ts +3 -3
- package/esm/api/hooks/index.d.ts +1 -1
- package/esm/api/hooks/index.js +1 -1
- package/esm/api/hooks/invalidation.d.ts +0 -12
- package/esm/api/hooks/invalidation.js +1 -33
- package/esm/api/hooks/mutation-keys.d.ts +4 -24
- package/esm/api/hooks/mutation-keys.js +6 -14
- package/esm/api/hooks/mutations/index.d.ts +2 -6
- package/esm/api/hooks/mutations/index.js +2 -6
- package/esm/api/hooks/mutations/useCreateFunctionFromSourceMutation.d.ts +20 -0
- package/esm/api/hooks/mutations/useCreateFunctionFromSourceMutation.js +23 -0
- package/esm/api/hooks/mutations/useUpdateFunctionFromSourceMutation.d.ts +20 -0
- package/esm/api/hooks/mutations/useUpdateFunctionFromSourceMutation.js +23 -0
- package/esm/api/hooks/queries/index.d.ts +1 -4
- package/esm/api/hooks/queries/index.js +1 -4
- package/esm/api/hooks/queries/useEmailSharedAccountQuery.d.ts +45 -0
- package/esm/api/hooks/queries/useEmailSharedAccountQuery.js +43 -0
- package/esm/api/hooks/query-keys.d.ts +2 -28
- package/esm/api/hooks/query-keys.js +1 -16
- package/esm/api/orm/index.d.ts +15 -4
- package/esm/api/orm/index.js +0 -4
- package/esm/api/orm/input-types.d.ts +96 -439
- package/esm/api/orm/models/index.d.ts +0 -2
- package/esm/api/orm/models/index.js +0 -2
- package/esm/api/orm/mutation/index.d.ts +30 -5
- package/esm/api/orm/mutation/index.js +24 -0
- package/esm/api/orm/query/index.d.ts +5 -0
- package/esm/api/orm/query/index.js +7 -0
- package/esm/api/schema-types.d.ts +39 -273
- package/esm/api/types.d.ts +3 -28
- package/esm/auth/orm/input-types.d.ts +5 -29
- package/esm/auth/orm/mutation/index.d.ts +5 -4
- package/esm/auth/schema-types.d.ts +4 -16
- package/esm/compute/orm/input-types.d.ts +50 -6
- package/esm/compute/orm/mutation/index.d.ts +5 -4
- package/esm/compute/schema-types.d.ts +29 -5
- package/esm/compute/types.d.ts +4 -0
- package/esm/config/orm/input-types.d.ts +4 -4
- package/esm/config/orm/mutation/index.d.ts +5 -4
- package/esm/config/schema-types.d.ts +3 -3
- package/esm/infra/orm/input-types.d.ts +4 -4
- package/esm/infra/orm/mutation/index.d.ts +5 -4
- package/esm/infra/schema-types.d.ts +3 -3
- package/esm/modules/orm/input-types.d.ts +72 -21
- package/esm/modules/orm/mutation/index.d.ts +6 -5
- package/esm/modules/schema-types.d.ts +41 -15
- package/esm/modules/types.d.ts +8 -1
- package/esm/objects/orm/input-types.d.ts +4 -4
- package/esm/objects/orm/mutation/index.d.ts +5 -4
- package/esm/objects/schema-types.d.ts +3 -3
- package/esm/remote/orm/input-types.d.ts +4 -4
- package/esm/remote/orm/mutation/index.d.ts +5 -4
- package/esm/remote/schema-types.d.ts +3 -3
- package/esm/storage/orm/input-types.d.ts +34 -6
- package/esm/storage/orm/mutation/index.d.ts +7 -6
- package/esm/storage/schema-types.d.ts +17 -5
- package/esm/storage/types.d.ts +4 -0
- package/esm/usage/orm/input-types.d.ts +4 -4
- package/esm/usage/orm/mutation/index.d.ts +5 -4
- package/esm/usage/schema-types.d.ts +3 -3
- package/infra/orm/input-types.d.ts +4 -4
- package/infra/orm/mutation/index.d.ts +5 -4
- package/infra/schema-types.d.ts +3 -3
- package/modules/orm/input-types.d.ts +72 -21
- package/modules/orm/mutation/index.d.ts +6 -5
- package/modules/schema-types.d.ts +41 -15
- package/modules/types.d.ts +8 -1
- package/objects/orm/input-types.d.ts +4 -4
- package/objects/orm/mutation/index.d.ts +5 -4
- package/objects/schema-types.d.ts +3 -3
- package/package.json +4 -4
- package/remote/orm/input-types.d.ts +4 -4
- package/remote/orm/mutation/index.d.ts +5 -4
- package/remote/schema-types.d.ts +3 -3
- package/storage/orm/input-types.d.ts +34 -6
- package/storage/orm/mutation/index.d.ts +7 -6
- package/storage/schema-types.d.ts +17 -5
- package/storage/types.d.ts +4 -0
- package/usage/orm/input-types.d.ts +4 -4
- package/usage/orm/mutation/index.d.ts +5 -4
- package/usage/schema-types.d.ts +3 -3
- package/api/hooks/mutations/useCreateHostnameBindingMutation.d.ts +0 -34
- package/api/hooks/mutations/useCreateRouteBindingMutation.d.ts +0 -34
- package/api/hooks/mutations/useCreateRouteBindingMutation.js +0 -34
- package/api/hooks/mutations/useDeleteHostnameBindingMutation.d.ts +0 -38
- package/api/hooks/mutations/useDeleteHostnameBindingMutation.js +0 -39
- package/api/hooks/mutations/useDeleteRouteBindingMutation.d.ts +0 -38
- package/api/hooks/mutations/useDeleteRouteBindingMutation.js +0 -39
- package/api/hooks/mutations/useUpdateHostnameBindingMutation.d.ts +0 -40
- package/api/hooks/mutations/useUpdateHostnameBindingMutation.js +0 -40
- package/api/hooks/mutations/useUpdateRouteBindingMutation.d.ts +0 -40
- package/api/hooks/mutations/useUpdateRouteBindingMutation.js +0 -40
- package/api/hooks/queries/useHostnameBindingQuery.d.ts +0 -65
- package/api/hooks/queries/useHostnameBindingQuery.js +0 -53
- package/api/hooks/queries/useHostnameBindingsQuery.d.ts +0 -69
- package/api/hooks/queries/useHostnameBindingsQuery.js +0 -38
- package/api/hooks/queries/useRouteBindingQuery.d.ts +0 -65
- package/api/hooks/queries/useRouteBindingQuery.js +0 -53
- package/api/hooks/queries/useRouteBindingsQuery.d.ts +0 -69
- package/api/hooks/queries/useRouteBindingsQuery.js +0 -38
- package/api/orm/models/hostnameBinding.d.ts +0 -54
- package/api/orm/models/hostnameBinding.js +0 -104
- package/api/orm/models/routeBinding.d.ts +0 -54
- package/api/orm/models/routeBinding.js +0 -104
- package/esm/api/hooks/mutations/useCreateHostnameBindingMutation.d.ts +0 -34
- package/esm/api/hooks/mutations/useCreateHostnameBindingMutation.js +0 -31
- package/esm/api/hooks/mutations/useCreateRouteBindingMutation.d.ts +0 -34
- package/esm/api/hooks/mutations/useCreateRouteBindingMutation.js +0 -31
- package/esm/api/hooks/mutations/useDeleteHostnameBindingMutation.d.ts +0 -38
- package/esm/api/hooks/mutations/useDeleteHostnameBindingMutation.js +0 -36
- package/esm/api/hooks/mutations/useDeleteRouteBindingMutation.d.ts +0 -38
- package/esm/api/hooks/mutations/useDeleteRouteBindingMutation.js +0 -36
- package/esm/api/hooks/mutations/useUpdateHostnameBindingMutation.d.ts +0 -40
- package/esm/api/hooks/mutations/useUpdateHostnameBindingMutation.js +0 -37
- package/esm/api/hooks/mutations/useUpdateRouteBindingMutation.d.ts +0 -40
- package/esm/api/hooks/mutations/useUpdateRouteBindingMutation.js +0 -37
- package/esm/api/hooks/queries/useHostnameBindingQuery.d.ts +0 -65
- package/esm/api/hooks/queries/useHostnameBindingQuery.js +0 -47
- package/esm/api/hooks/queries/useHostnameBindingsQuery.d.ts +0 -69
- package/esm/api/hooks/queries/useHostnameBindingsQuery.js +0 -32
- package/esm/api/hooks/queries/useRouteBindingQuery.d.ts +0 -65
- package/esm/api/hooks/queries/useRouteBindingQuery.js +0 -47
- package/esm/api/hooks/queries/useRouteBindingsQuery.d.ts +0 -69
- package/esm/api/hooks/queries/useRouteBindingsQuery.js +0 -32
- package/esm/api/orm/models/hostnameBinding.d.ts +0 -54
- package/esm/api/orm/models/hostnameBinding.js +0 -100
- package/esm/api/orm/models/routeBinding.d.ts +0 -54
- package/esm/api/orm/models/routeBinding.js +0 -100
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Compiled route precedence index maintained by route sync triggers; carries typed target ids only, read through the resolver
|
|
4
|
-
* @generated by @constructive-io/graphql-codegen
|
|
5
|
-
* DO NOT EDIT - changes will be overwritten
|
|
6
|
-
*/
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.useDeleteRouteBindingMutation = useDeleteRouteBindingMutation;
|
|
9
|
-
const react_query_1 = require("@tanstack/react-query");
|
|
10
|
-
const client_1 = require("../client");
|
|
11
|
-
const selection_1 = require("../selection");
|
|
12
|
-
const query_keys_1 = require("../query-keys");
|
|
13
|
-
const mutation_keys_1 = require("../mutation-keys");
|
|
14
|
-
function useDeleteRouteBindingMutation(params) {
|
|
15
|
-
const args = (0, selection_1.buildSelectionArgs)(params.selection);
|
|
16
|
-
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
17
|
-
void _selection;
|
|
18
|
-
const queryClient = (0, react_query_1.useQueryClient)();
|
|
19
|
-
return (0, react_query_1.useMutation)({
|
|
20
|
-
mutationKey: mutation_keys_1.routeBindingMutationKeys.all,
|
|
21
|
-
mutationFn: ({ id }) => (0, client_1.getClient)()
|
|
22
|
-
.routeBinding.delete({
|
|
23
|
-
where: {
|
|
24
|
-
id,
|
|
25
|
-
},
|
|
26
|
-
select: args.select,
|
|
27
|
-
})
|
|
28
|
-
.unwrap(),
|
|
29
|
-
onSuccess: (_, variables) => {
|
|
30
|
-
queryClient.removeQueries({
|
|
31
|
-
queryKey: query_keys_1.routeBindingKeys.detail(variables.id),
|
|
32
|
-
});
|
|
33
|
-
queryClient.invalidateQueries({
|
|
34
|
-
queryKey: query_keys_1.routeBindingKeys.lists(),
|
|
35
|
-
});
|
|
36
|
-
},
|
|
37
|
-
...mutationOptions,
|
|
38
|
-
});
|
|
39
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Compiled hostname index maintained by domain sync triggers; read only through the resolver
|
|
3
|
-
* @generated by @constructive-io/graphql-codegen
|
|
4
|
-
* DO NOT EDIT - changes will be overwritten
|
|
5
|
-
*/
|
|
6
|
-
import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
|
|
7
|
-
import type { HostnameBindingSelect, HostnameBindingWithRelations, HostnameBindingPatch } from '../../orm/input-types';
|
|
8
|
-
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
-
export type { HostnameBindingSelect, HostnameBindingWithRelations, HostnameBindingPatch, } from '../../orm/input-types';
|
|
10
|
-
/**
|
|
11
|
-
* Compiled hostname index maintained by domain sync triggers; read only through the resolver
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```tsx
|
|
15
|
-
* const { mutate, isPending } = useUpdateHostnameBindingMutation({
|
|
16
|
-
* selection: { fields: { id: true, name: true } },
|
|
17
|
-
* });
|
|
18
|
-
*
|
|
19
|
-
* mutate({ id: 'value-here', hostnameBindingPatch: { name: 'Updated' } });
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
export declare function useUpdateHostnameBindingMutation<S extends HostnameBindingSelect>(params: {
|
|
23
|
-
selection: {
|
|
24
|
-
fields: S & HostnameBindingSelect;
|
|
25
|
-
} & HookStrictSelect<NoInfer<S>, HostnameBindingSelect>;
|
|
26
|
-
} & Omit<UseMutationOptions<{
|
|
27
|
-
updateHostnameBinding: {
|
|
28
|
-
hostnameBinding: InferSelectResult<HostnameBindingWithRelations, S>;
|
|
29
|
-
};
|
|
30
|
-
}, Error, {
|
|
31
|
-
id: string;
|
|
32
|
-
hostnameBindingPatch: HostnameBindingPatch;
|
|
33
|
-
}>, 'mutationFn'>): UseMutationResult<{
|
|
34
|
-
updateHostnameBinding: {
|
|
35
|
-
hostnameBinding: InferSelectResult<HostnameBindingWithRelations, S>;
|
|
36
|
-
};
|
|
37
|
-
}, Error, {
|
|
38
|
-
id: string;
|
|
39
|
-
hostnameBindingPatch: HostnameBindingPatch;
|
|
40
|
-
}>;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Compiled hostname index maintained by domain sync triggers; read only through the resolver
|
|
4
|
-
* @generated by @constructive-io/graphql-codegen
|
|
5
|
-
* DO NOT EDIT - changes will be overwritten
|
|
6
|
-
*/
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.useUpdateHostnameBindingMutation = useUpdateHostnameBindingMutation;
|
|
9
|
-
const react_query_1 = require("@tanstack/react-query");
|
|
10
|
-
const client_1 = require("../client");
|
|
11
|
-
const selection_1 = require("../selection");
|
|
12
|
-
const query_keys_1 = require("../query-keys");
|
|
13
|
-
const mutation_keys_1 = require("../mutation-keys");
|
|
14
|
-
function useUpdateHostnameBindingMutation(params) {
|
|
15
|
-
const args = (0, selection_1.buildSelectionArgs)(params.selection);
|
|
16
|
-
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
17
|
-
void _selection;
|
|
18
|
-
const queryClient = (0, react_query_1.useQueryClient)();
|
|
19
|
-
return (0, react_query_1.useMutation)({
|
|
20
|
-
mutationKey: mutation_keys_1.hostnameBindingMutationKeys.all,
|
|
21
|
-
mutationFn: ({ id, hostnameBindingPatch, }) => (0, client_1.getClient)()
|
|
22
|
-
.hostnameBinding.update({
|
|
23
|
-
where: {
|
|
24
|
-
id,
|
|
25
|
-
},
|
|
26
|
-
data: hostnameBindingPatch,
|
|
27
|
-
select: args.select,
|
|
28
|
-
})
|
|
29
|
-
.unwrap(),
|
|
30
|
-
onSuccess: (_, variables) => {
|
|
31
|
-
queryClient.invalidateQueries({
|
|
32
|
-
queryKey: query_keys_1.hostnameBindingKeys.detail(variables.id),
|
|
33
|
-
});
|
|
34
|
-
queryClient.invalidateQueries({
|
|
35
|
-
queryKey: query_keys_1.hostnameBindingKeys.lists(),
|
|
36
|
-
});
|
|
37
|
-
},
|
|
38
|
-
...mutationOptions,
|
|
39
|
-
});
|
|
40
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Compiled route precedence index maintained by route sync triggers; carries typed target ids only, read through the resolver
|
|
3
|
-
* @generated by @constructive-io/graphql-codegen
|
|
4
|
-
* DO NOT EDIT - changes will be overwritten
|
|
5
|
-
*/
|
|
6
|
-
import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
|
|
7
|
-
import type { RouteBindingSelect, RouteBindingWithRelations, RouteBindingPatch } from '../../orm/input-types';
|
|
8
|
-
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
-
export type { RouteBindingSelect, RouteBindingWithRelations, RouteBindingPatch, } from '../../orm/input-types';
|
|
10
|
-
/**
|
|
11
|
-
* Compiled route precedence index maintained by route sync triggers; carries typed target ids only, read through the resolver
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```tsx
|
|
15
|
-
* const { mutate, isPending } = useUpdateRouteBindingMutation({
|
|
16
|
-
* selection: { fields: { id: true, name: true } },
|
|
17
|
-
* });
|
|
18
|
-
*
|
|
19
|
-
* mutate({ id: 'value-here', routeBindingPatch: { name: 'Updated' } });
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
export declare function useUpdateRouteBindingMutation<S extends RouteBindingSelect>(params: {
|
|
23
|
-
selection: {
|
|
24
|
-
fields: S & RouteBindingSelect;
|
|
25
|
-
} & HookStrictSelect<NoInfer<S>, RouteBindingSelect>;
|
|
26
|
-
} & Omit<UseMutationOptions<{
|
|
27
|
-
updateRouteBinding: {
|
|
28
|
-
routeBinding: InferSelectResult<RouteBindingWithRelations, S>;
|
|
29
|
-
};
|
|
30
|
-
}, Error, {
|
|
31
|
-
id: string;
|
|
32
|
-
routeBindingPatch: RouteBindingPatch;
|
|
33
|
-
}>, 'mutationFn'>): UseMutationResult<{
|
|
34
|
-
updateRouteBinding: {
|
|
35
|
-
routeBinding: InferSelectResult<RouteBindingWithRelations, S>;
|
|
36
|
-
};
|
|
37
|
-
}, Error, {
|
|
38
|
-
id: string;
|
|
39
|
-
routeBindingPatch: RouteBindingPatch;
|
|
40
|
-
}>;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Compiled route precedence index maintained by route sync triggers; carries typed target ids only, read through the resolver
|
|
4
|
-
* @generated by @constructive-io/graphql-codegen
|
|
5
|
-
* DO NOT EDIT - changes will be overwritten
|
|
6
|
-
*/
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.useUpdateRouteBindingMutation = useUpdateRouteBindingMutation;
|
|
9
|
-
const react_query_1 = require("@tanstack/react-query");
|
|
10
|
-
const client_1 = require("../client");
|
|
11
|
-
const selection_1 = require("../selection");
|
|
12
|
-
const query_keys_1 = require("../query-keys");
|
|
13
|
-
const mutation_keys_1 = require("../mutation-keys");
|
|
14
|
-
function useUpdateRouteBindingMutation(params) {
|
|
15
|
-
const args = (0, selection_1.buildSelectionArgs)(params.selection);
|
|
16
|
-
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
17
|
-
void _selection;
|
|
18
|
-
const queryClient = (0, react_query_1.useQueryClient)();
|
|
19
|
-
return (0, react_query_1.useMutation)({
|
|
20
|
-
mutationKey: mutation_keys_1.routeBindingMutationKeys.all,
|
|
21
|
-
mutationFn: ({ id, routeBindingPatch }) => (0, client_1.getClient)()
|
|
22
|
-
.routeBinding.update({
|
|
23
|
-
where: {
|
|
24
|
-
id,
|
|
25
|
-
},
|
|
26
|
-
data: routeBindingPatch,
|
|
27
|
-
select: args.select,
|
|
28
|
-
})
|
|
29
|
-
.unwrap(),
|
|
30
|
-
onSuccess: (_, variables) => {
|
|
31
|
-
queryClient.invalidateQueries({
|
|
32
|
-
queryKey: query_keys_1.routeBindingKeys.detail(variables.id),
|
|
33
|
-
});
|
|
34
|
-
queryClient.invalidateQueries({
|
|
35
|
-
queryKey: query_keys_1.routeBindingKeys.lists(),
|
|
36
|
-
});
|
|
37
|
-
},
|
|
38
|
-
...mutationOptions,
|
|
39
|
-
});
|
|
40
|
-
}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Compiled hostname index maintained by domain sync triggers; read only through the resolver
|
|
3
|
-
* @generated by @constructive-io/graphql-codegen
|
|
4
|
-
* DO NOT EDIT - changes will be overwritten
|
|
5
|
-
*/
|
|
6
|
-
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
|
|
7
|
-
import type { HostnameBindingSelect, HostnameBindingWithRelations } from '../../orm/input-types';
|
|
8
|
-
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
-
export type { HostnameBindingSelect, HostnameBindingWithRelations } from '../../orm/input-types';
|
|
10
|
-
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
-
export declare const hostnameBindingQueryKey: (id: string | number) => readonly ["hostnamebinding", "detail", string | number];
|
|
12
|
-
/**
|
|
13
|
-
* Compiled hostname index maintained by domain sync triggers; read only through the resolver
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* ```tsx
|
|
17
|
-
* const { data, isLoading } = useHostnameBindingQuery({
|
|
18
|
-
* id: 'some-id',
|
|
19
|
-
* selection: { fields: { id: true, name: true } },
|
|
20
|
-
* });
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
export declare function useHostnameBindingQuery<S extends HostnameBindingSelect, TData = {
|
|
24
|
-
hostnameBinding: InferSelectResult<HostnameBindingWithRelations, S> | null;
|
|
25
|
-
}>(params: {
|
|
26
|
-
id: string;
|
|
27
|
-
selection: {
|
|
28
|
-
fields: S;
|
|
29
|
-
} & HookStrictSelect<NoInfer<S>, HostnameBindingSelect>;
|
|
30
|
-
} & Omit<UseQueryOptions<{
|
|
31
|
-
hostnameBinding: InferSelectResult<HostnameBindingWithRelations, S> | null;
|
|
32
|
-
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
33
|
-
/**
|
|
34
|
-
* Compiled hostname index maintained by domain sync triggers; read only through the resolver
|
|
35
|
-
*
|
|
36
|
-
* @example
|
|
37
|
-
* ```ts
|
|
38
|
-
* const data = await fetchHostnameBindingQuery({
|
|
39
|
-
* id: 'some-id',
|
|
40
|
-
* selection: { fields: { id: true } },
|
|
41
|
-
* });
|
|
42
|
-
* ```
|
|
43
|
-
*/
|
|
44
|
-
export declare function fetchHostnameBindingQuery<S extends HostnameBindingSelect>(params: {
|
|
45
|
-
id: string;
|
|
46
|
-
selection: {
|
|
47
|
-
fields: S;
|
|
48
|
-
} & HookStrictSelect<NoInfer<S>, HostnameBindingSelect>;
|
|
49
|
-
}): Promise<{
|
|
50
|
-
hostnameBinding: InferSelectResult<HostnameBindingWithRelations, S> | null;
|
|
51
|
-
}>;
|
|
52
|
-
/**
|
|
53
|
-
* Compiled hostname index maintained by domain sync triggers; read only through the resolver
|
|
54
|
-
*
|
|
55
|
-
* @example
|
|
56
|
-
* ```ts
|
|
57
|
-
* await prefetchHostnameBindingQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
|
|
58
|
-
* ```
|
|
59
|
-
*/
|
|
60
|
-
export declare function prefetchHostnameBindingQuery<S extends HostnameBindingSelect>(queryClient: QueryClient, params: {
|
|
61
|
-
id: string;
|
|
62
|
-
selection: {
|
|
63
|
-
fields: S;
|
|
64
|
-
} & HookStrictSelect<NoInfer<S>, HostnameBindingSelect>;
|
|
65
|
-
}): Promise<void>;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Compiled hostname index maintained by domain sync triggers; read only through the resolver
|
|
4
|
-
* @generated by @constructive-io/graphql-codegen
|
|
5
|
-
* DO NOT EDIT - changes will be overwritten
|
|
6
|
-
*/
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.hostnameBindingQueryKey = void 0;
|
|
9
|
-
exports.useHostnameBindingQuery = useHostnameBindingQuery;
|
|
10
|
-
exports.fetchHostnameBindingQuery = fetchHostnameBindingQuery;
|
|
11
|
-
exports.prefetchHostnameBindingQuery = prefetchHostnameBindingQuery;
|
|
12
|
-
const react_query_1 = require("@tanstack/react-query");
|
|
13
|
-
const client_1 = require("../client");
|
|
14
|
-
const selection_1 = require("../selection");
|
|
15
|
-
const query_keys_1 = require("../query-keys");
|
|
16
|
-
/** Query key factory - re-exported from query-keys.ts */
|
|
17
|
-
exports.hostnameBindingQueryKey = query_keys_1.hostnameBindingKeys.detail;
|
|
18
|
-
function useHostnameBindingQuery(params) {
|
|
19
|
-
const args = (0, selection_1.buildSelectionArgs)(params.selection);
|
|
20
|
-
const { selection: _selection, ...queryOptions } = params ?? {};
|
|
21
|
-
void _selection;
|
|
22
|
-
return (0, react_query_1.useQuery)({
|
|
23
|
-
queryKey: query_keys_1.hostnameBindingKeys.detail(params.id),
|
|
24
|
-
queryFn: () => (0, client_1.getClient)()
|
|
25
|
-
.hostnameBinding.findOne({
|
|
26
|
-
id: params.id,
|
|
27
|
-
select: args.select,
|
|
28
|
-
})
|
|
29
|
-
.unwrap(),
|
|
30
|
-
...queryOptions,
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
async function fetchHostnameBindingQuery(params) {
|
|
34
|
-
const args = (0, selection_1.buildSelectionArgs)(params.selection);
|
|
35
|
-
return (0, client_1.getClient)()
|
|
36
|
-
.hostnameBinding.findOne({
|
|
37
|
-
id: params.id,
|
|
38
|
-
select: args.select,
|
|
39
|
-
})
|
|
40
|
-
.unwrap();
|
|
41
|
-
}
|
|
42
|
-
async function prefetchHostnameBindingQuery(queryClient, params) {
|
|
43
|
-
const args = (0, selection_1.buildSelectionArgs)(params.selection);
|
|
44
|
-
await queryClient.prefetchQuery({
|
|
45
|
-
queryKey: query_keys_1.hostnameBindingKeys.detail(params.id),
|
|
46
|
-
queryFn: () => (0, client_1.getClient)()
|
|
47
|
-
.hostnameBinding.findOne({
|
|
48
|
-
id: params.id,
|
|
49
|
-
select: args.select,
|
|
50
|
-
})
|
|
51
|
-
.unwrap(),
|
|
52
|
-
});
|
|
53
|
-
}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Compiled hostname index maintained by domain sync triggers; read only through the resolver
|
|
3
|
-
* @generated by @constructive-io/graphql-codegen
|
|
4
|
-
* DO NOT EDIT - changes will be overwritten
|
|
5
|
-
*/
|
|
6
|
-
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
|
|
7
|
-
import type { ListSelectionConfig } from '../selection';
|
|
8
|
-
import type { HostnameBindingSelect, HostnameBindingWithRelations, HostnameBindingFilter, HostnameBindingOrderBy } from '../../orm/input-types';
|
|
9
|
-
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
|
|
10
|
-
export type { HostnameBindingSelect, HostnameBindingWithRelations, HostnameBindingFilter, HostnameBindingOrderBy, } from '../../orm/input-types';
|
|
11
|
-
/** Query key factory - re-exported from query-keys.ts */
|
|
12
|
-
export declare const hostnameBindingsQueryKey: (variables?: object) => readonly ["hostnamebinding", "list", object];
|
|
13
|
-
/**
|
|
14
|
-
* Compiled hostname index maintained by domain sync triggers; read only through the resolver
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* ```tsx
|
|
18
|
-
* const { data, isLoading } = useHostnameBindingsQuery({
|
|
19
|
-
* selection: {
|
|
20
|
-
* fields: { id: true, name: true },
|
|
21
|
-
* where: { name: { equalTo: "example" } },
|
|
22
|
-
* orderBy: ['CREATED_AT_DESC'],
|
|
23
|
-
* first: 10,
|
|
24
|
-
* },
|
|
25
|
-
* });
|
|
26
|
-
* ```
|
|
27
|
-
*/
|
|
28
|
-
export declare function useHostnameBindingsQuery<S extends HostnameBindingSelect, TData = {
|
|
29
|
-
hostnameBindings: ConnectionResult<InferSelectResult<HostnameBindingWithRelations, S>>;
|
|
30
|
-
}>(params: {
|
|
31
|
-
selection: {
|
|
32
|
-
fields: S;
|
|
33
|
-
} & Omit<ListSelectionConfig<S, HostnameBindingFilter, HostnameBindingOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, HostnameBindingSelect>;
|
|
34
|
-
} & Omit<UseQueryOptions<{
|
|
35
|
-
hostnameBindings: ConnectionResult<InferSelectResult<HostnameBindingWithRelations, S>>;
|
|
36
|
-
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
37
|
-
/**
|
|
38
|
-
* Compiled hostname index maintained by domain sync triggers; read only through the resolver
|
|
39
|
-
*
|
|
40
|
-
* @example
|
|
41
|
-
* ```ts
|
|
42
|
-
* const data = await fetchHostnameBindingsQuery({
|
|
43
|
-
* selection: {
|
|
44
|
-
* fields: { id: true },
|
|
45
|
-
* first: 10,
|
|
46
|
-
* },
|
|
47
|
-
* });
|
|
48
|
-
* ```
|
|
49
|
-
*/
|
|
50
|
-
export declare function fetchHostnameBindingsQuery<S extends HostnameBindingSelect>(params: {
|
|
51
|
-
selection: {
|
|
52
|
-
fields: S;
|
|
53
|
-
} & Omit<ListSelectionConfig<S, HostnameBindingFilter, HostnameBindingOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, HostnameBindingSelect>;
|
|
54
|
-
}): Promise<{
|
|
55
|
-
hostnameBindings: ConnectionResult<InferSelectResult<HostnameBindingWithRelations, S>>;
|
|
56
|
-
}>;
|
|
57
|
-
/**
|
|
58
|
-
* Compiled hostname index maintained by domain sync triggers; read only through the resolver
|
|
59
|
-
*
|
|
60
|
-
* @example
|
|
61
|
-
* ```ts
|
|
62
|
-
* await prefetchHostnameBindingsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
|
|
63
|
-
* ```
|
|
64
|
-
*/
|
|
65
|
-
export declare function prefetchHostnameBindingsQuery<S extends HostnameBindingSelect>(queryClient: QueryClient, params: {
|
|
66
|
-
selection: {
|
|
67
|
-
fields: S;
|
|
68
|
-
} & Omit<ListSelectionConfig<S, HostnameBindingFilter, HostnameBindingOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, HostnameBindingSelect>;
|
|
69
|
-
}): Promise<void>;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Compiled hostname index maintained by domain sync triggers; read only through the resolver
|
|
4
|
-
* @generated by @constructive-io/graphql-codegen
|
|
5
|
-
* DO NOT EDIT - changes will be overwritten
|
|
6
|
-
*/
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.hostnameBindingsQueryKey = void 0;
|
|
9
|
-
exports.useHostnameBindingsQuery = useHostnameBindingsQuery;
|
|
10
|
-
exports.fetchHostnameBindingsQuery = fetchHostnameBindingsQuery;
|
|
11
|
-
exports.prefetchHostnameBindingsQuery = prefetchHostnameBindingsQuery;
|
|
12
|
-
const react_query_1 = require("@tanstack/react-query");
|
|
13
|
-
const client_1 = require("../client");
|
|
14
|
-
const selection_1 = require("../selection");
|
|
15
|
-
const query_keys_1 = require("../query-keys");
|
|
16
|
-
/** Query key factory - re-exported from query-keys.ts */
|
|
17
|
-
exports.hostnameBindingsQueryKey = query_keys_1.hostnameBindingKeys.list;
|
|
18
|
-
function useHostnameBindingsQuery(params) {
|
|
19
|
-
const args = (0, selection_1.buildListSelectionArgs)(params.selection);
|
|
20
|
-
const { selection: _selection, ...queryOptions } = params ?? {};
|
|
21
|
-
void _selection;
|
|
22
|
-
return (0, react_query_1.useQuery)({
|
|
23
|
-
queryKey: query_keys_1.hostnameBindingKeys.list(args),
|
|
24
|
-
queryFn: () => (0, client_1.getClient)().hostnameBinding.findMany(args).unwrap(),
|
|
25
|
-
...queryOptions,
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
async function fetchHostnameBindingsQuery(params) {
|
|
29
|
-
const args = (0, selection_1.buildListSelectionArgs)(params.selection);
|
|
30
|
-
return (0, client_1.getClient)().hostnameBinding.findMany(args).unwrap();
|
|
31
|
-
}
|
|
32
|
-
async function prefetchHostnameBindingsQuery(queryClient, params) {
|
|
33
|
-
const args = (0, selection_1.buildListSelectionArgs)(params.selection);
|
|
34
|
-
await queryClient.prefetchQuery({
|
|
35
|
-
queryKey: query_keys_1.hostnameBindingKeys.list(args),
|
|
36
|
-
queryFn: () => (0, client_1.getClient)().hostnameBinding.findMany(args).unwrap(),
|
|
37
|
-
});
|
|
38
|
-
}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Compiled route precedence index maintained by route sync triggers; carries typed target ids only, read through the resolver
|
|
3
|
-
* @generated by @constructive-io/graphql-codegen
|
|
4
|
-
* DO NOT EDIT - changes will be overwritten
|
|
5
|
-
*/
|
|
6
|
-
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
|
|
7
|
-
import type { RouteBindingSelect, RouteBindingWithRelations } from '../../orm/input-types';
|
|
8
|
-
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
-
export type { RouteBindingSelect, RouteBindingWithRelations } from '../../orm/input-types';
|
|
10
|
-
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
-
export declare const routeBindingQueryKey: (id: string | number) => readonly ["routebinding", "detail", string | number];
|
|
12
|
-
/**
|
|
13
|
-
* Compiled route precedence index maintained by route sync triggers; carries typed target ids only, read through the resolver
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* ```tsx
|
|
17
|
-
* const { data, isLoading } = useRouteBindingQuery({
|
|
18
|
-
* id: 'some-id',
|
|
19
|
-
* selection: { fields: { id: true, name: true } },
|
|
20
|
-
* });
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
export declare function useRouteBindingQuery<S extends RouteBindingSelect, TData = {
|
|
24
|
-
routeBinding: InferSelectResult<RouteBindingWithRelations, S> | null;
|
|
25
|
-
}>(params: {
|
|
26
|
-
id: string;
|
|
27
|
-
selection: {
|
|
28
|
-
fields: S;
|
|
29
|
-
} & HookStrictSelect<NoInfer<S>, RouteBindingSelect>;
|
|
30
|
-
} & Omit<UseQueryOptions<{
|
|
31
|
-
routeBinding: InferSelectResult<RouteBindingWithRelations, S> | null;
|
|
32
|
-
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
33
|
-
/**
|
|
34
|
-
* Compiled route precedence index maintained by route sync triggers; carries typed target ids only, read through the resolver
|
|
35
|
-
*
|
|
36
|
-
* @example
|
|
37
|
-
* ```ts
|
|
38
|
-
* const data = await fetchRouteBindingQuery({
|
|
39
|
-
* id: 'some-id',
|
|
40
|
-
* selection: { fields: { id: true } },
|
|
41
|
-
* });
|
|
42
|
-
* ```
|
|
43
|
-
*/
|
|
44
|
-
export declare function fetchRouteBindingQuery<S extends RouteBindingSelect>(params: {
|
|
45
|
-
id: string;
|
|
46
|
-
selection: {
|
|
47
|
-
fields: S;
|
|
48
|
-
} & HookStrictSelect<NoInfer<S>, RouteBindingSelect>;
|
|
49
|
-
}): Promise<{
|
|
50
|
-
routeBinding: InferSelectResult<RouteBindingWithRelations, S> | null;
|
|
51
|
-
}>;
|
|
52
|
-
/**
|
|
53
|
-
* Compiled route precedence index maintained by route sync triggers; carries typed target ids only, read through the resolver
|
|
54
|
-
*
|
|
55
|
-
* @example
|
|
56
|
-
* ```ts
|
|
57
|
-
* await prefetchRouteBindingQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
|
|
58
|
-
* ```
|
|
59
|
-
*/
|
|
60
|
-
export declare function prefetchRouteBindingQuery<S extends RouteBindingSelect>(queryClient: QueryClient, params: {
|
|
61
|
-
id: string;
|
|
62
|
-
selection: {
|
|
63
|
-
fields: S;
|
|
64
|
-
} & HookStrictSelect<NoInfer<S>, RouteBindingSelect>;
|
|
65
|
-
}): Promise<void>;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Compiled route precedence index maintained by route sync triggers; carries typed target ids only, read through the resolver
|
|
4
|
-
* @generated by @constructive-io/graphql-codegen
|
|
5
|
-
* DO NOT EDIT - changes will be overwritten
|
|
6
|
-
*/
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.routeBindingQueryKey = void 0;
|
|
9
|
-
exports.useRouteBindingQuery = useRouteBindingQuery;
|
|
10
|
-
exports.fetchRouteBindingQuery = fetchRouteBindingQuery;
|
|
11
|
-
exports.prefetchRouteBindingQuery = prefetchRouteBindingQuery;
|
|
12
|
-
const react_query_1 = require("@tanstack/react-query");
|
|
13
|
-
const client_1 = require("../client");
|
|
14
|
-
const selection_1 = require("../selection");
|
|
15
|
-
const query_keys_1 = require("../query-keys");
|
|
16
|
-
/** Query key factory - re-exported from query-keys.ts */
|
|
17
|
-
exports.routeBindingQueryKey = query_keys_1.routeBindingKeys.detail;
|
|
18
|
-
function useRouteBindingQuery(params) {
|
|
19
|
-
const args = (0, selection_1.buildSelectionArgs)(params.selection);
|
|
20
|
-
const { selection: _selection, ...queryOptions } = params ?? {};
|
|
21
|
-
void _selection;
|
|
22
|
-
return (0, react_query_1.useQuery)({
|
|
23
|
-
queryKey: query_keys_1.routeBindingKeys.detail(params.id),
|
|
24
|
-
queryFn: () => (0, client_1.getClient)()
|
|
25
|
-
.routeBinding.findOne({
|
|
26
|
-
id: params.id,
|
|
27
|
-
select: args.select,
|
|
28
|
-
})
|
|
29
|
-
.unwrap(),
|
|
30
|
-
...queryOptions,
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
async function fetchRouteBindingQuery(params) {
|
|
34
|
-
const args = (0, selection_1.buildSelectionArgs)(params.selection);
|
|
35
|
-
return (0, client_1.getClient)()
|
|
36
|
-
.routeBinding.findOne({
|
|
37
|
-
id: params.id,
|
|
38
|
-
select: args.select,
|
|
39
|
-
})
|
|
40
|
-
.unwrap();
|
|
41
|
-
}
|
|
42
|
-
async function prefetchRouteBindingQuery(queryClient, params) {
|
|
43
|
-
const args = (0, selection_1.buildSelectionArgs)(params.selection);
|
|
44
|
-
await queryClient.prefetchQuery({
|
|
45
|
-
queryKey: query_keys_1.routeBindingKeys.detail(params.id),
|
|
46
|
-
queryFn: () => (0, client_1.getClient)()
|
|
47
|
-
.routeBinding.findOne({
|
|
48
|
-
id: params.id,
|
|
49
|
-
select: args.select,
|
|
50
|
-
})
|
|
51
|
-
.unwrap(),
|
|
52
|
-
});
|
|
53
|
-
}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Compiled route precedence index maintained by route sync triggers; carries typed target ids only, read through the resolver
|
|
3
|
-
* @generated by @constructive-io/graphql-codegen
|
|
4
|
-
* DO NOT EDIT - changes will be overwritten
|
|
5
|
-
*/
|
|
6
|
-
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
|
|
7
|
-
import type { ListSelectionConfig } from '../selection';
|
|
8
|
-
import type { RouteBindingSelect, RouteBindingWithRelations, RouteBindingFilter, RouteBindingOrderBy } from '../../orm/input-types';
|
|
9
|
-
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
|
|
10
|
-
export type { RouteBindingSelect, RouteBindingWithRelations, RouteBindingFilter, RouteBindingOrderBy, } from '../../orm/input-types';
|
|
11
|
-
/** Query key factory - re-exported from query-keys.ts */
|
|
12
|
-
export declare const routeBindingsQueryKey: (variables?: object) => readonly ["routebinding", "list", object];
|
|
13
|
-
/**
|
|
14
|
-
* Compiled route precedence index maintained by route sync triggers; carries typed target ids only, read through the resolver
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* ```tsx
|
|
18
|
-
* const { data, isLoading } = useRouteBindingsQuery({
|
|
19
|
-
* selection: {
|
|
20
|
-
* fields: { id: true, name: true },
|
|
21
|
-
* where: { name: { equalTo: "example" } },
|
|
22
|
-
* orderBy: ['CREATED_AT_DESC'],
|
|
23
|
-
* first: 10,
|
|
24
|
-
* },
|
|
25
|
-
* });
|
|
26
|
-
* ```
|
|
27
|
-
*/
|
|
28
|
-
export declare function useRouteBindingsQuery<S extends RouteBindingSelect, TData = {
|
|
29
|
-
routeBindings: ConnectionResult<InferSelectResult<RouteBindingWithRelations, S>>;
|
|
30
|
-
}>(params: {
|
|
31
|
-
selection: {
|
|
32
|
-
fields: S;
|
|
33
|
-
} & Omit<ListSelectionConfig<S, RouteBindingFilter, RouteBindingOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, RouteBindingSelect>;
|
|
34
|
-
} & Omit<UseQueryOptions<{
|
|
35
|
-
routeBindings: ConnectionResult<InferSelectResult<RouteBindingWithRelations, S>>;
|
|
36
|
-
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
37
|
-
/**
|
|
38
|
-
* Compiled route precedence index maintained by route sync triggers; carries typed target ids only, read through the resolver
|
|
39
|
-
*
|
|
40
|
-
* @example
|
|
41
|
-
* ```ts
|
|
42
|
-
* const data = await fetchRouteBindingsQuery({
|
|
43
|
-
* selection: {
|
|
44
|
-
* fields: { id: true },
|
|
45
|
-
* first: 10,
|
|
46
|
-
* },
|
|
47
|
-
* });
|
|
48
|
-
* ```
|
|
49
|
-
*/
|
|
50
|
-
export declare function fetchRouteBindingsQuery<S extends RouteBindingSelect>(params: {
|
|
51
|
-
selection: {
|
|
52
|
-
fields: S;
|
|
53
|
-
} & Omit<ListSelectionConfig<S, RouteBindingFilter, RouteBindingOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, RouteBindingSelect>;
|
|
54
|
-
}): Promise<{
|
|
55
|
-
routeBindings: ConnectionResult<InferSelectResult<RouteBindingWithRelations, S>>;
|
|
56
|
-
}>;
|
|
57
|
-
/**
|
|
58
|
-
* Compiled route precedence index maintained by route sync triggers; carries typed target ids only, read through the resolver
|
|
59
|
-
*
|
|
60
|
-
* @example
|
|
61
|
-
* ```ts
|
|
62
|
-
* await prefetchRouteBindingsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
|
|
63
|
-
* ```
|
|
64
|
-
*/
|
|
65
|
-
export declare function prefetchRouteBindingsQuery<S extends RouteBindingSelect>(queryClient: QueryClient, params: {
|
|
66
|
-
selection: {
|
|
67
|
-
fields: S;
|
|
68
|
-
} & Omit<ListSelectionConfig<S, RouteBindingFilter, RouteBindingOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, RouteBindingSelect>;
|
|
69
|
-
}): Promise<void>;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Compiled route precedence index maintained by route sync triggers; carries typed target ids only, read through the resolver
|
|
4
|
-
* @generated by @constructive-io/graphql-codegen
|
|
5
|
-
* DO NOT EDIT - changes will be overwritten
|
|
6
|
-
*/
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.routeBindingsQueryKey = void 0;
|
|
9
|
-
exports.useRouteBindingsQuery = useRouteBindingsQuery;
|
|
10
|
-
exports.fetchRouteBindingsQuery = fetchRouteBindingsQuery;
|
|
11
|
-
exports.prefetchRouteBindingsQuery = prefetchRouteBindingsQuery;
|
|
12
|
-
const react_query_1 = require("@tanstack/react-query");
|
|
13
|
-
const client_1 = require("../client");
|
|
14
|
-
const selection_1 = require("../selection");
|
|
15
|
-
const query_keys_1 = require("../query-keys");
|
|
16
|
-
/** Query key factory - re-exported from query-keys.ts */
|
|
17
|
-
exports.routeBindingsQueryKey = query_keys_1.routeBindingKeys.list;
|
|
18
|
-
function useRouteBindingsQuery(params) {
|
|
19
|
-
const args = (0, selection_1.buildListSelectionArgs)(params.selection);
|
|
20
|
-
const { selection: _selection, ...queryOptions } = params ?? {};
|
|
21
|
-
void _selection;
|
|
22
|
-
return (0, react_query_1.useQuery)({
|
|
23
|
-
queryKey: query_keys_1.routeBindingKeys.list(args),
|
|
24
|
-
queryFn: () => (0, client_1.getClient)().routeBinding.findMany(args).unwrap(),
|
|
25
|
-
...queryOptions,
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
async function fetchRouteBindingsQuery(params) {
|
|
29
|
-
const args = (0, selection_1.buildListSelectionArgs)(params.selection);
|
|
30
|
-
return (0, client_1.getClient)().routeBinding.findMany(args).unwrap();
|
|
31
|
-
}
|
|
32
|
-
async function prefetchRouteBindingsQuery(queryClient, params) {
|
|
33
|
-
const args = (0, selection_1.buildListSelectionArgs)(params.selection);
|
|
34
|
-
await queryClient.prefetchQuery({
|
|
35
|
-
queryKey: query_keys_1.routeBindingKeys.list(args),
|
|
36
|
-
queryFn: () => (0, client_1.getClient)().routeBinding.findMany(args).unwrap(),
|
|
37
|
-
});
|
|
38
|
-
}
|