@constructive-io/react 1.19.10 → 1.19.12
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/compute/hooks/index.d.ts +1 -1
- package/compute/hooks/index.js +1 -1
- package/compute/hooks/invalidation.d.ts +12 -0
- package/compute/hooks/invalidation.js +32 -0
- package/compute/hooks/mutation-keys.d.ts +28 -0
- package/compute/hooks/mutation-keys.js +29 -3
- package/compute/hooks/mutations/index.d.ts +8 -0
- package/compute/hooks/mutations/index.js +8 -0
- package/compute/hooks/mutations/useCreateDatabaseFunctionGraphExecutionCancelRequestMutation.d.ts +34 -0
- package/compute/hooks/mutations/useCreateDatabaseFunctionGraphExecutionCancelRequestMutation.js +34 -0
- package/compute/hooks/mutations/useCreateFunctionGraphExecutionCancelRequestMutation.d.ts +34 -0
- package/compute/hooks/mutations/useCreateFunctionGraphExecutionCancelRequestMutation.js +34 -0
- package/compute/hooks/mutations/useDeleteDatabaseFunctionGraphExecutionCancelRequestMutation.d.ts +38 -0
- package/compute/hooks/mutations/useDeleteDatabaseFunctionGraphExecutionCancelRequestMutation.js +39 -0
- package/compute/hooks/mutations/useDeleteFunctionGraphExecutionCancelRequestMutation.d.ts +38 -0
- package/compute/hooks/mutations/useDeleteFunctionGraphExecutionCancelRequestMutation.js +39 -0
- package/compute/hooks/mutations/useFunctionInvocationsCreatePageMutation.d.ts +20 -0
- package/compute/hooks/mutations/useFunctionInvocationsCreatePageMutation.js +26 -0
- package/compute/hooks/mutations/usePlatformFunctionInvocationsCreatePageMutation.d.ts +20 -0
- package/compute/hooks/mutations/usePlatformFunctionInvocationsCreatePageMutation.js +26 -0
- package/compute/hooks/mutations/useUpdateDatabaseFunctionGraphExecutionCancelRequestMutation.d.ts +40 -0
- package/compute/hooks/mutations/useUpdateDatabaseFunctionGraphExecutionCancelRequestMutation.js +40 -0
- package/compute/hooks/mutations/useUpdateFunctionGraphExecutionCancelRequestMutation.d.ts +40 -0
- package/compute/hooks/mutations/useUpdateFunctionGraphExecutionCancelRequestMutation.js +40 -0
- package/compute/hooks/queries/index.d.ts +4 -0
- package/compute/hooks/queries/index.js +4 -0
- package/compute/hooks/queries/useDatabaseFunctionGraphExecutionCancelRequestQuery.d.ts +65 -0
- package/compute/hooks/queries/useDatabaseFunctionGraphExecutionCancelRequestQuery.js +53 -0
- package/compute/hooks/queries/useDatabaseFunctionGraphExecutionCancelRequestsQuery.d.ts +69 -0
- package/compute/hooks/queries/useDatabaseFunctionGraphExecutionCancelRequestsQuery.js +38 -0
- package/compute/hooks/queries/useFunctionGraphExecutionCancelRequestQuery.d.ts +65 -0
- package/compute/hooks/queries/useFunctionGraphExecutionCancelRequestQuery.js +53 -0
- package/compute/hooks/queries/useFunctionGraphExecutionCancelRequestsQuery.d.ts +69 -0
- package/compute/hooks/queries/useFunctionGraphExecutionCancelRequestsQuery.js +38 -0
- package/compute/hooks/query-keys.d.ts +28 -0
- package/compute/hooks/query-keys.js +23 -3
- package/compute/orm/index.d.ts +14 -0
- package/compute/orm/index.js +4 -0
- package/compute/orm/input-types.d.ts +298 -4
- package/compute/orm/models/databaseFunctionGraphExecutionCancelRequest.d.ts +54 -0
- package/compute/orm/models/databaseFunctionGraphExecutionCancelRequest.js +104 -0
- package/compute/orm/models/functionGraphExecutionCancelRequest.d.ts +54 -0
- package/compute/orm/models/functionGraphExecutionCancelRequest.js +104 -0
- package/compute/orm/models/index.d.ts +2 -0
- package/compute/orm/models/index.js +7 -3
- package/compute/orm/mutation/index.d.ts +17 -1
- package/compute/orm/mutation/index.js +24 -0
- package/compute/schema-types.d.ts +209 -5
- package/compute/types.d.ts +12 -0
- package/esm/compute/hooks/index.d.ts +1 -1
- package/esm/compute/hooks/index.js +1 -1
- package/esm/compute/hooks/invalidation.d.ts +12 -0
- package/esm/compute/hooks/invalidation.js +33 -1
- package/esm/compute/hooks/mutation-keys.d.ts +28 -0
- package/esm/compute/hooks/mutation-keys.js +26 -0
- package/esm/compute/hooks/mutations/index.d.ts +8 -0
- package/esm/compute/hooks/mutations/index.js +8 -0
- package/esm/compute/hooks/mutations/useCreateDatabaseFunctionGraphExecutionCancelRequestMutation.d.ts +34 -0
- package/esm/compute/hooks/mutations/useCreateDatabaseFunctionGraphExecutionCancelRequestMutation.js +31 -0
- package/esm/compute/hooks/mutations/useCreateFunctionGraphExecutionCancelRequestMutation.d.ts +34 -0
- package/esm/compute/hooks/mutations/useCreateFunctionGraphExecutionCancelRequestMutation.js +31 -0
- package/esm/compute/hooks/mutations/useDeleteDatabaseFunctionGraphExecutionCancelRequestMutation.d.ts +38 -0
- package/esm/compute/hooks/mutations/useDeleteDatabaseFunctionGraphExecutionCancelRequestMutation.js +36 -0
- package/esm/compute/hooks/mutations/useDeleteFunctionGraphExecutionCancelRequestMutation.d.ts +38 -0
- package/esm/compute/hooks/mutations/useDeleteFunctionGraphExecutionCancelRequestMutation.js +36 -0
- package/esm/compute/hooks/mutations/useFunctionInvocationsCreatePageMutation.d.ts +20 -0
- package/esm/compute/hooks/mutations/useFunctionInvocationsCreatePageMutation.js +23 -0
- package/esm/compute/hooks/mutations/usePlatformFunctionInvocationsCreatePageMutation.d.ts +20 -0
- package/esm/compute/hooks/mutations/usePlatformFunctionInvocationsCreatePageMutation.js +23 -0
- package/esm/compute/hooks/mutations/useUpdateDatabaseFunctionGraphExecutionCancelRequestMutation.d.ts +40 -0
- package/esm/compute/hooks/mutations/useUpdateDatabaseFunctionGraphExecutionCancelRequestMutation.js +37 -0
- package/esm/compute/hooks/mutations/useUpdateFunctionGraphExecutionCancelRequestMutation.d.ts +40 -0
- package/esm/compute/hooks/mutations/useUpdateFunctionGraphExecutionCancelRequestMutation.js +37 -0
- package/esm/compute/hooks/queries/index.d.ts +4 -0
- package/esm/compute/hooks/queries/index.js +4 -0
- package/esm/compute/hooks/queries/useDatabaseFunctionGraphExecutionCancelRequestQuery.d.ts +65 -0
- package/esm/compute/hooks/queries/useDatabaseFunctionGraphExecutionCancelRequestQuery.js +47 -0
- package/esm/compute/hooks/queries/useDatabaseFunctionGraphExecutionCancelRequestsQuery.d.ts +69 -0
- package/esm/compute/hooks/queries/useDatabaseFunctionGraphExecutionCancelRequestsQuery.js +32 -0
- package/esm/compute/hooks/queries/useFunctionGraphExecutionCancelRequestQuery.d.ts +65 -0
- package/esm/compute/hooks/queries/useFunctionGraphExecutionCancelRequestQuery.js +47 -0
- package/esm/compute/hooks/queries/useFunctionGraphExecutionCancelRequestsQuery.d.ts +69 -0
- package/esm/compute/hooks/queries/useFunctionGraphExecutionCancelRequestsQuery.js +32 -0
- package/esm/compute/hooks/query-keys.d.ts +28 -0
- package/esm/compute/hooks/query-keys.js +20 -0
- package/esm/compute/orm/index.d.ts +14 -0
- package/esm/compute/orm/index.js +4 -0
- package/esm/compute/orm/input-types.d.ts +298 -4
- package/esm/compute/orm/models/databaseFunctionGraphExecutionCancelRequest.d.ts +54 -0
- package/esm/compute/orm/models/databaseFunctionGraphExecutionCancelRequest.js +100 -0
- package/esm/compute/orm/models/functionGraphExecutionCancelRequest.d.ts +54 -0
- package/esm/compute/orm/models/functionGraphExecutionCancelRequest.js +100 -0
- package/esm/compute/orm/models/index.d.ts +2 -0
- package/esm/compute/orm/models/index.js +2 -0
- package/esm/compute/orm/mutation/index.d.ts +17 -1
- package/esm/compute/orm/mutation/index.js +24 -0
- package/esm/compute/schema-types.d.ts +209 -5
- package/esm/compute/types.d.ts +12 -0
- package/package.json +5 -5
package/compute/hooks/mutations/useDeleteDatabaseFunctionGraphExecutionCancelRequestMutation.js
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Requests to stop a graph execution; each insert settles it cancelled and tears down the Jobs its nodes dispatched
|
|
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.useDeleteDatabaseFunctionGraphExecutionCancelRequestMutation = useDeleteDatabaseFunctionGraphExecutionCancelRequestMutation;
|
|
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 useDeleteDatabaseFunctionGraphExecutionCancelRequestMutation(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.databaseFunctionGraphExecutionCancelRequestMutationKeys.all,
|
|
21
|
+
mutationFn: ({ id }) => (0, client_1.getClient)()
|
|
22
|
+
.databaseFunctionGraphExecutionCancelRequest.delete({
|
|
23
|
+
where: {
|
|
24
|
+
id,
|
|
25
|
+
},
|
|
26
|
+
select: args.select,
|
|
27
|
+
})
|
|
28
|
+
.unwrap(),
|
|
29
|
+
onSuccess: (_, variables) => {
|
|
30
|
+
queryClient.removeQueries({
|
|
31
|
+
queryKey: query_keys_1.databaseFunctionGraphExecutionCancelRequestKeys.detail(variables.id),
|
|
32
|
+
});
|
|
33
|
+
queryClient.invalidateQueries({
|
|
34
|
+
queryKey: query_keys_1.databaseFunctionGraphExecutionCancelRequestKeys.lists(),
|
|
35
|
+
});
|
|
36
|
+
},
|
|
37
|
+
...mutationOptions,
|
|
38
|
+
});
|
|
39
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Requests to stop a graph execution; each insert settles it cancelled and tears down the Jobs its nodes dispatched
|
|
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 { FunctionGraphExecutionCancelRequestSelect, FunctionGraphExecutionCancelRequestWithRelations } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { FunctionGraphExecutionCancelRequestSelect, FunctionGraphExecutionCancelRequestWithRelations, } from '../../orm/input-types';
|
|
10
|
+
/**
|
|
11
|
+
* Requests to stop a graph execution; each insert settles it cancelled and tears down the Jobs its nodes dispatched
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* const { mutate, isPending } = useDeleteFunctionGraphExecutionCancelRequestMutation({
|
|
16
|
+
* selection: { fields: { id: true } },
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* mutate({ id: 'value-to-delete' });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function useDeleteFunctionGraphExecutionCancelRequestMutation<S extends FunctionGraphExecutionCancelRequestSelect>(params: {
|
|
23
|
+
selection: {
|
|
24
|
+
fields: S & FunctionGraphExecutionCancelRequestSelect;
|
|
25
|
+
} & HookStrictSelect<NoInfer<S>, FunctionGraphExecutionCancelRequestSelect>;
|
|
26
|
+
} & Omit<UseMutationOptions<{
|
|
27
|
+
deleteFunctionGraphExecutionCancelRequest: {
|
|
28
|
+
functionGraphExecutionCancelRequest: InferSelectResult<FunctionGraphExecutionCancelRequestWithRelations, S>;
|
|
29
|
+
};
|
|
30
|
+
}, Error, {
|
|
31
|
+
id: string;
|
|
32
|
+
}>, 'mutationFn'>): UseMutationResult<{
|
|
33
|
+
deleteFunctionGraphExecutionCancelRequest: {
|
|
34
|
+
functionGraphExecutionCancelRequest: InferSelectResult<FunctionGraphExecutionCancelRequestWithRelations, S>;
|
|
35
|
+
};
|
|
36
|
+
}, Error, {
|
|
37
|
+
id: string;
|
|
38
|
+
}>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Requests to stop a graph execution; each insert settles it cancelled and tears down the Jobs its nodes dispatched
|
|
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.useDeleteFunctionGraphExecutionCancelRequestMutation = useDeleteFunctionGraphExecutionCancelRequestMutation;
|
|
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 useDeleteFunctionGraphExecutionCancelRequestMutation(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.functionGraphExecutionCancelRequestMutationKeys.all,
|
|
21
|
+
mutationFn: ({ id }) => (0, client_1.getClient)()
|
|
22
|
+
.functionGraphExecutionCancelRequest.delete({
|
|
23
|
+
where: {
|
|
24
|
+
id,
|
|
25
|
+
},
|
|
26
|
+
select: args.select,
|
|
27
|
+
})
|
|
28
|
+
.unwrap(),
|
|
29
|
+
onSuccess: (_, variables) => {
|
|
30
|
+
queryClient.removeQueries({
|
|
31
|
+
queryKey: query_keys_1.functionGraphExecutionCancelRequestKeys.detail(variables.id),
|
|
32
|
+
});
|
|
33
|
+
queryClient.invalidateQueries({
|
|
34
|
+
queryKey: query_keys_1.functionGraphExecutionCancelRequestKeys.lists(),
|
|
35
|
+
});
|
|
36
|
+
},
|
|
37
|
+
...mutationOptions,
|
|
38
|
+
});
|
|
39
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Custom mutation hook for functionInvocationsCreatePage
|
|
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 { FunctionInvocationsCreatePageVariables } from '../../orm/mutation';
|
|
8
|
+
import type { FunctionInvocationsCreatePagePayloadSelect, FunctionInvocationsCreatePagePayload } from '../../orm/input-types';
|
|
9
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
10
|
+
export type { FunctionInvocationsCreatePageVariables } from '../../orm/mutation';
|
|
11
|
+
export type { FunctionInvocationsCreatePagePayloadSelect } from '../../orm/input-types';
|
|
12
|
+
export declare function useFunctionInvocationsCreatePageMutation<S extends FunctionInvocationsCreatePagePayloadSelect>(params: {
|
|
13
|
+
selection: {
|
|
14
|
+
fields: S & FunctionInvocationsCreatePagePayloadSelect;
|
|
15
|
+
} & HookStrictSelect<NoInfer<S>, FunctionInvocationsCreatePagePayloadSelect>;
|
|
16
|
+
} & Omit<UseMutationOptions<{
|
|
17
|
+
functionInvocationsCreatePage: InferSelectResult<FunctionInvocationsCreatePagePayload, S> | null;
|
|
18
|
+
}, Error, FunctionInvocationsCreatePageVariables>, 'mutationFn'>): UseMutationResult<{
|
|
19
|
+
functionInvocationsCreatePage: InferSelectResult<FunctionInvocationsCreatePagePayload, S> | null;
|
|
20
|
+
}, Error, FunctionInvocationsCreatePageVariables>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Custom mutation hook for functionInvocationsCreatePage
|
|
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.useFunctionInvocationsCreatePageMutation = useFunctionInvocationsCreatePageMutation;
|
|
9
|
+
const react_query_1 = require("@tanstack/react-query");
|
|
10
|
+
const client_1 = require("../client");
|
|
11
|
+
const selection_1 = require("../selection");
|
|
12
|
+
const mutation_keys_1 = require("../mutation-keys");
|
|
13
|
+
function useFunctionInvocationsCreatePageMutation(params) {
|
|
14
|
+
const args = (0, selection_1.buildSelectionArgs)(params.selection);
|
|
15
|
+
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
16
|
+
void _selection;
|
|
17
|
+
return (0, react_query_1.useMutation)({
|
|
18
|
+
mutationKey: mutation_keys_1.customMutationKeys.functionInvocationsCreatePage(),
|
|
19
|
+
mutationFn: (variables) => (0, client_1.getClient)()
|
|
20
|
+
.mutation.functionInvocationsCreatePage(variables, {
|
|
21
|
+
select: args.select,
|
|
22
|
+
})
|
|
23
|
+
.unwrap(),
|
|
24
|
+
...mutationOptions,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Custom mutation hook for platformFunctionInvocationsCreatePage
|
|
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 { PlatformFunctionInvocationsCreatePageVariables } from '../../orm/mutation';
|
|
8
|
+
import type { PlatformFunctionInvocationsCreatePagePayloadSelect, PlatformFunctionInvocationsCreatePagePayload } from '../../orm/input-types';
|
|
9
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
10
|
+
export type { PlatformFunctionInvocationsCreatePageVariables } from '../../orm/mutation';
|
|
11
|
+
export type { PlatformFunctionInvocationsCreatePagePayloadSelect } from '../../orm/input-types';
|
|
12
|
+
export declare function usePlatformFunctionInvocationsCreatePageMutation<S extends PlatformFunctionInvocationsCreatePagePayloadSelect>(params: {
|
|
13
|
+
selection: {
|
|
14
|
+
fields: S & PlatformFunctionInvocationsCreatePagePayloadSelect;
|
|
15
|
+
} & HookStrictSelect<NoInfer<S>, PlatformFunctionInvocationsCreatePagePayloadSelect>;
|
|
16
|
+
} & Omit<UseMutationOptions<{
|
|
17
|
+
platformFunctionInvocationsCreatePage: InferSelectResult<PlatformFunctionInvocationsCreatePagePayload, S> | null;
|
|
18
|
+
}, Error, PlatformFunctionInvocationsCreatePageVariables>, 'mutationFn'>): UseMutationResult<{
|
|
19
|
+
platformFunctionInvocationsCreatePage: InferSelectResult<PlatformFunctionInvocationsCreatePagePayload, S> | null;
|
|
20
|
+
}, Error, PlatformFunctionInvocationsCreatePageVariables>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Custom mutation hook for platformFunctionInvocationsCreatePage
|
|
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.usePlatformFunctionInvocationsCreatePageMutation = usePlatformFunctionInvocationsCreatePageMutation;
|
|
9
|
+
const react_query_1 = require("@tanstack/react-query");
|
|
10
|
+
const client_1 = require("../client");
|
|
11
|
+
const selection_1 = require("../selection");
|
|
12
|
+
const mutation_keys_1 = require("../mutation-keys");
|
|
13
|
+
function usePlatformFunctionInvocationsCreatePageMutation(params) {
|
|
14
|
+
const args = (0, selection_1.buildSelectionArgs)(params.selection);
|
|
15
|
+
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
16
|
+
void _selection;
|
|
17
|
+
return (0, react_query_1.useMutation)({
|
|
18
|
+
mutationKey: mutation_keys_1.customMutationKeys.platformFunctionInvocationsCreatePage(),
|
|
19
|
+
mutationFn: (variables) => (0, client_1.getClient)()
|
|
20
|
+
.mutation.platformFunctionInvocationsCreatePage(variables, {
|
|
21
|
+
select: args.select,
|
|
22
|
+
})
|
|
23
|
+
.unwrap(),
|
|
24
|
+
...mutationOptions,
|
|
25
|
+
});
|
|
26
|
+
}
|
package/compute/hooks/mutations/useUpdateDatabaseFunctionGraphExecutionCancelRequestMutation.d.ts
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Requests to stop a graph execution; each insert settles it cancelled and tears down the Jobs its nodes dispatched
|
|
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 { DatabaseFunctionGraphExecutionCancelRequestSelect, DatabaseFunctionGraphExecutionCancelRequestWithRelations, DatabaseFunctionGraphExecutionCancelRequestPatch } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { DatabaseFunctionGraphExecutionCancelRequestSelect, DatabaseFunctionGraphExecutionCancelRequestWithRelations, DatabaseFunctionGraphExecutionCancelRequestPatch, } from '../../orm/input-types';
|
|
10
|
+
/**
|
|
11
|
+
* Requests to stop a graph execution; each insert settles it cancelled and tears down the Jobs its nodes dispatched
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* const { mutate, isPending } = useUpdateDatabaseFunctionGraphExecutionCancelRequestMutation({
|
|
16
|
+
* selection: { fields: { id: true, name: true } },
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* mutate({ id: 'value-here', databaseFunctionGraphExecutionCancelRequestPatch: { name: 'Updated' } });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function useUpdateDatabaseFunctionGraphExecutionCancelRequestMutation<S extends DatabaseFunctionGraphExecutionCancelRequestSelect>(params: {
|
|
23
|
+
selection: {
|
|
24
|
+
fields: S & DatabaseFunctionGraphExecutionCancelRequestSelect;
|
|
25
|
+
} & HookStrictSelect<NoInfer<S>, DatabaseFunctionGraphExecutionCancelRequestSelect>;
|
|
26
|
+
} & Omit<UseMutationOptions<{
|
|
27
|
+
updateDatabaseFunctionGraphExecutionCancelRequest: {
|
|
28
|
+
databaseFunctionGraphExecutionCancelRequest: InferSelectResult<DatabaseFunctionGraphExecutionCancelRequestWithRelations, S>;
|
|
29
|
+
};
|
|
30
|
+
}, Error, {
|
|
31
|
+
id: string;
|
|
32
|
+
databaseFunctionGraphExecutionCancelRequestPatch: DatabaseFunctionGraphExecutionCancelRequestPatch;
|
|
33
|
+
}>, 'mutationFn'>): UseMutationResult<{
|
|
34
|
+
updateDatabaseFunctionGraphExecutionCancelRequest: {
|
|
35
|
+
databaseFunctionGraphExecutionCancelRequest: InferSelectResult<DatabaseFunctionGraphExecutionCancelRequestWithRelations, S>;
|
|
36
|
+
};
|
|
37
|
+
}, Error, {
|
|
38
|
+
id: string;
|
|
39
|
+
databaseFunctionGraphExecutionCancelRequestPatch: DatabaseFunctionGraphExecutionCancelRequestPatch;
|
|
40
|
+
}>;
|
package/compute/hooks/mutations/useUpdateDatabaseFunctionGraphExecutionCancelRequestMutation.js
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Requests to stop a graph execution; each insert settles it cancelled and tears down the Jobs its nodes dispatched
|
|
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.useUpdateDatabaseFunctionGraphExecutionCancelRequestMutation = useUpdateDatabaseFunctionGraphExecutionCancelRequestMutation;
|
|
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 useUpdateDatabaseFunctionGraphExecutionCancelRequestMutation(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.databaseFunctionGraphExecutionCancelRequestMutationKeys.all,
|
|
21
|
+
mutationFn: ({ id, databaseFunctionGraphExecutionCancelRequestPatch, }) => (0, client_1.getClient)()
|
|
22
|
+
.databaseFunctionGraphExecutionCancelRequest.update({
|
|
23
|
+
where: {
|
|
24
|
+
id,
|
|
25
|
+
},
|
|
26
|
+
data: databaseFunctionGraphExecutionCancelRequestPatch,
|
|
27
|
+
select: args.select,
|
|
28
|
+
})
|
|
29
|
+
.unwrap(),
|
|
30
|
+
onSuccess: (_, variables) => {
|
|
31
|
+
queryClient.invalidateQueries({
|
|
32
|
+
queryKey: query_keys_1.databaseFunctionGraphExecutionCancelRequestKeys.detail(variables.id),
|
|
33
|
+
});
|
|
34
|
+
queryClient.invalidateQueries({
|
|
35
|
+
queryKey: query_keys_1.databaseFunctionGraphExecutionCancelRequestKeys.lists(),
|
|
36
|
+
});
|
|
37
|
+
},
|
|
38
|
+
...mutationOptions,
|
|
39
|
+
});
|
|
40
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Requests to stop a graph execution; each insert settles it cancelled and tears down the Jobs its nodes dispatched
|
|
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 { FunctionGraphExecutionCancelRequestSelect, FunctionGraphExecutionCancelRequestWithRelations, FunctionGraphExecutionCancelRequestPatch } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { FunctionGraphExecutionCancelRequestSelect, FunctionGraphExecutionCancelRequestWithRelations, FunctionGraphExecutionCancelRequestPatch, } from '../../orm/input-types';
|
|
10
|
+
/**
|
|
11
|
+
* Requests to stop a graph execution; each insert settles it cancelled and tears down the Jobs its nodes dispatched
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* const { mutate, isPending } = useUpdateFunctionGraphExecutionCancelRequestMutation({
|
|
16
|
+
* selection: { fields: { id: true, name: true } },
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* mutate({ id: 'value-here', functionGraphExecutionCancelRequestPatch: { name: 'Updated' } });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function useUpdateFunctionGraphExecutionCancelRequestMutation<S extends FunctionGraphExecutionCancelRequestSelect>(params: {
|
|
23
|
+
selection: {
|
|
24
|
+
fields: S & FunctionGraphExecutionCancelRequestSelect;
|
|
25
|
+
} & HookStrictSelect<NoInfer<S>, FunctionGraphExecutionCancelRequestSelect>;
|
|
26
|
+
} & Omit<UseMutationOptions<{
|
|
27
|
+
updateFunctionGraphExecutionCancelRequest: {
|
|
28
|
+
functionGraphExecutionCancelRequest: InferSelectResult<FunctionGraphExecutionCancelRequestWithRelations, S>;
|
|
29
|
+
};
|
|
30
|
+
}, Error, {
|
|
31
|
+
id: string;
|
|
32
|
+
functionGraphExecutionCancelRequestPatch: FunctionGraphExecutionCancelRequestPatch;
|
|
33
|
+
}>, 'mutationFn'>): UseMutationResult<{
|
|
34
|
+
updateFunctionGraphExecutionCancelRequest: {
|
|
35
|
+
functionGraphExecutionCancelRequest: InferSelectResult<FunctionGraphExecutionCancelRequestWithRelations, S>;
|
|
36
|
+
};
|
|
37
|
+
}, Error, {
|
|
38
|
+
id: string;
|
|
39
|
+
functionGraphExecutionCancelRequestPatch: FunctionGraphExecutionCancelRequestPatch;
|
|
40
|
+
}>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Requests to stop a graph execution; each insert settles it cancelled and tears down the Jobs its nodes dispatched
|
|
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.useUpdateFunctionGraphExecutionCancelRequestMutation = useUpdateFunctionGraphExecutionCancelRequestMutation;
|
|
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 useUpdateFunctionGraphExecutionCancelRequestMutation(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.functionGraphExecutionCancelRequestMutationKeys.all,
|
|
21
|
+
mutationFn: ({ id, functionGraphExecutionCancelRequestPatch, }) => (0, client_1.getClient)()
|
|
22
|
+
.functionGraphExecutionCancelRequest.update({
|
|
23
|
+
where: {
|
|
24
|
+
id,
|
|
25
|
+
},
|
|
26
|
+
data: functionGraphExecutionCancelRequestPatch,
|
|
27
|
+
select: args.select,
|
|
28
|
+
})
|
|
29
|
+
.unwrap(),
|
|
30
|
+
onSuccess: (_, variables) => {
|
|
31
|
+
queryClient.invalidateQueries({
|
|
32
|
+
queryKey: query_keys_1.functionGraphExecutionCancelRequestKeys.detail(variables.id),
|
|
33
|
+
});
|
|
34
|
+
queryClient.invalidateQueries({
|
|
35
|
+
queryKey: query_keys_1.functionGraphExecutionCancelRequestKeys.lists(),
|
|
36
|
+
});
|
|
37
|
+
},
|
|
38
|
+
...mutationOptions,
|
|
39
|
+
});
|
|
40
|
+
}
|
|
@@ -13,6 +13,8 @@ export * from './useContentPresetsQuery';
|
|
|
13
13
|
export * from './useContentPresetQuery';
|
|
14
14
|
export * from './useDatabaseFunctionGraphsQuery';
|
|
15
15
|
export * from './useDatabaseFunctionGraphQuery';
|
|
16
|
+
export * from './useDatabaseFunctionGraphExecutionCancelRequestsQuery';
|
|
17
|
+
export * from './useDatabaseFunctionGraphExecutionCancelRequestQuery';
|
|
16
18
|
export * from './useDatabaseFunctionGraphExecutionsQuery';
|
|
17
19
|
export * from './useDatabaseFunctionGraphExecutionQuery';
|
|
18
20
|
export * from './useDatabaseFunctionGraphExecutionNodeStatesQuery';
|
|
@@ -46,6 +48,8 @@ export * from './useFunctionGraphCommitsQuery';
|
|
|
46
48
|
export * from './useFunctionGraphCommitQuery';
|
|
47
49
|
export * from './useFunctionGraphsQuery';
|
|
48
50
|
export * from './useFunctionGraphQuery';
|
|
51
|
+
export * from './useFunctionGraphExecutionCancelRequestsQuery';
|
|
52
|
+
export * from './useFunctionGraphExecutionCancelRequestQuery';
|
|
49
53
|
export * from './useFunctionGraphExecutionsQuery';
|
|
50
54
|
export * from './useFunctionGraphExecutionQuery';
|
|
51
55
|
export * from './useFunctionGraphExecutionNodeStatesQuery';
|
|
@@ -29,6 +29,8 @@ __exportStar(require("./useContentPresetsQuery"), exports);
|
|
|
29
29
|
__exportStar(require("./useContentPresetQuery"), exports);
|
|
30
30
|
__exportStar(require("./useDatabaseFunctionGraphsQuery"), exports);
|
|
31
31
|
__exportStar(require("./useDatabaseFunctionGraphQuery"), exports);
|
|
32
|
+
__exportStar(require("./useDatabaseFunctionGraphExecutionCancelRequestsQuery"), exports);
|
|
33
|
+
__exportStar(require("./useDatabaseFunctionGraphExecutionCancelRequestQuery"), exports);
|
|
32
34
|
__exportStar(require("./useDatabaseFunctionGraphExecutionsQuery"), exports);
|
|
33
35
|
__exportStar(require("./useDatabaseFunctionGraphExecutionQuery"), exports);
|
|
34
36
|
__exportStar(require("./useDatabaseFunctionGraphExecutionNodeStatesQuery"), exports);
|
|
@@ -62,6 +64,8 @@ __exportStar(require("./useFunctionGraphCommitsQuery"), exports);
|
|
|
62
64
|
__exportStar(require("./useFunctionGraphCommitQuery"), exports);
|
|
63
65
|
__exportStar(require("./useFunctionGraphsQuery"), exports);
|
|
64
66
|
__exportStar(require("./useFunctionGraphQuery"), exports);
|
|
67
|
+
__exportStar(require("./useFunctionGraphExecutionCancelRequestsQuery"), exports);
|
|
68
|
+
__exportStar(require("./useFunctionGraphExecutionCancelRequestQuery"), exports);
|
|
65
69
|
__exportStar(require("./useFunctionGraphExecutionsQuery"), exports);
|
|
66
70
|
__exportStar(require("./useFunctionGraphExecutionQuery"), exports);
|
|
67
71
|
__exportStar(require("./useFunctionGraphExecutionNodeStatesQuery"), exports);
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Requests to stop a graph execution; each insert settles it cancelled and tears down the Jobs its nodes dispatched
|
|
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 { DatabaseFunctionGraphExecutionCancelRequestSelect, DatabaseFunctionGraphExecutionCancelRequestWithRelations } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { DatabaseFunctionGraphExecutionCancelRequestSelect, DatabaseFunctionGraphExecutionCancelRequestWithRelations, } from '../../orm/input-types';
|
|
10
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
+
export declare const databaseFunctionGraphExecutionCancelRequestQueryKey: (id: string | number) => readonly ["databasefunctiongraphexecutioncancelrequest", "detail", string | number];
|
|
12
|
+
/**
|
|
13
|
+
* Requests to stop a graph execution; each insert settles it cancelled and tears down the Jobs its nodes dispatched
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* const { data, isLoading } = useDatabaseFunctionGraphExecutionCancelRequestQuery({
|
|
18
|
+
* id: 'some-id',
|
|
19
|
+
* selection: { fields: { id: true, name: true } },
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare function useDatabaseFunctionGraphExecutionCancelRequestQuery<S extends DatabaseFunctionGraphExecutionCancelRequestSelect, TData = {
|
|
24
|
+
databaseFunctionGraphExecutionCancelRequest: InferSelectResult<DatabaseFunctionGraphExecutionCancelRequestWithRelations, S> | null;
|
|
25
|
+
}>(params: {
|
|
26
|
+
id: string;
|
|
27
|
+
selection: {
|
|
28
|
+
fields: S;
|
|
29
|
+
} & HookStrictSelect<NoInfer<S>, DatabaseFunctionGraphExecutionCancelRequestSelect>;
|
|
30
|
+
} & Omit<UseQueryOptions<{
|
|
31
|
+
databaseFunctionGraphExecutionCancelRequest: InferSelectResult<DatabaseFunctionGraphExecutionCancelRequestWithRelations, S> | null;
|
|
32
|
+
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
33
|
+
/**
|
|
34
|
+
* Requests to stop a graph execution; each insert settles it cancelled and tears down the Jobs its nodes dispatched
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* const data = await fetchDatabaseFunctionGraphExecutionCancelRequestQuery({
|
|
39
|
+
* id: 'some-id',
|
|
40
|
+
* selection: { fields: { id: true } },
|
|
41
|
+
* });
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
export declare function fetchDatabaseFunctionGraphExecutionCancelRequestQuery<S extends DatabaseFunctionGraphExecutionCancelRequestSelect>(params: {
|
|
45
|
+
id: string;
|
|
46
|
+
selection: {
|
|
47
|
+
fields: S;
|
|
48
|
+
} & HookStrictSelect<NoInfer<S>, DatabaseFunctionGraphExecutionCancelRequestSelect>;
|
|
49
|
+
}): Promise<{
|
|
50
|
+
databaseFunctionGraphExecutionCancelRequest: InferSelectResult<DatabaseFunctionGraphExecutionCancelRequestWithRelations, S> | null;
|
|
51
|
+
}>;
|
|
52
|
+
/**
|
|
53
|
+
* Requests to stop a graph execution; each insert settles it cancelled and tears down the Jobs its nodes dispatched
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* await prefetchDatabaseFunctionGraphExecutionCancelRequestQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
export declare function prefetchDatabaseFunctionGraphExecutionCancelRequestQuery<S extends DatabaseFunctionGraphExecutionCancelRequestSelect>(queryClient: QueryClient, params: {
|
|
61
|
+
id: string;
|
|
62
|
+
selection: {
|
|
63
|
+
fields: S;
|
|
64
|
+
} & HookStrictSelect<NoInfer<S>, DatabaseFunctionGraphExecutionCancelRequestSelect>;
|
|
65
|
+
}): Promise<void>;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Requests to stop a graph execution; each insert settles it cancelled and tears down the Jobs its nodes dispatched
|
|
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.databaseFunctionGraphExecutionCancelRequestQueryKey = void 0;
|
|
9
|
+
exports.useDatabaseFunctionGraphExecutionCancelRequestQuery = useDatabaseFunctionGraphExecutionCancelRequestQuery;
|
|
10
|
+
exports.fetchDatabaseFunctionGraphExecutionCancelRequestQuery = fetchDatabaseFunctionGraphExecutionCancelRequestQuery;
|
|
11
|
+
exports.prefetchDatabaseFunctionGraphExecutionCancelRequestQuery = prefetchDatabaseFunctionGraphExecutionCancelRequestQuery;
|
|
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.databaseFunctionGraphExecutionCancelRequestQueryKey = query_keys_1.databaseFunctionGraphExecutionCancelRequestKeys.detail;
|
|
18
|
+
function useDatabaseFunctionGraphExecutionCancelRequestQuery(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.databaseFunctionGraphExecutionCancelRequestKeys.detail(params.id),
|
|
24
|
+
queryFn: () => (0, client_1.getClient)()
|
|
25
|
+
.databaseFunctionGraphExecutionCancelRequest.findOne({
|
|
26
|
+
id: params.id,
|
|
27
|
+
select: args.select,
|
|
28
|
+
})
|
|
29
|
+
.unwrap(),
|
|
30
|
+
...queryOptions,
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
async function fetchDatabaseFunctionGraphExecutionCancelRequestQuery(params) {
|
|
34
|
+
const args = (0, selection_1.buildSelectionArgs)(params.selection);
|
|
35
|
+
return (0, client_1.getClient)()
|
|
36
|
+
.databaseFunctionGraphExecutionCancelRequest.findOne({
|
|
37
|
+
id: params.id,
|
|
38
|
+
select: args.select,
|
|
39
|
+
})
|
|
40
|
+
.unwrap();
|
|
41
|
+
}
|
|
42
|
+
async function prefetchDatabaseFunctionGraphExecutionCancelRequestQuery(queryClient, params) {
|
|
43
|
+
const args = (0, selection_1.buildSelectionArgs)(params.selection);
|
|
44
|
+
await queryClient.prefetchQuery({
|
|
45
|
+
queryKey: query_keys_1.databaseFunctionGraphExecutionCancelRequestKeys.detail(params.id),
|
|
46
|
+
queryFn: () => (0, client_1.getClient)()
|
|
47
|
+
.databaseFunctionGraphExecutionCancelRequest.findOne({
|
|
48
|
+
id: params.id,
|
|
49
|
+
select: args.select,
|
|
50
|
+
})
|
|
51
|
+
.unwrap(),
|
|
52
|
+
});
|
|
53
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Requests to stop a graph execution; each insert settles it cancelled and tears down the Jobs its nodes dispatched
|
|
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 { DatabaseFunctionGraphExecutionCancelRequestSelect, DatabaseFunctionGraphExecutionCancelRequestWithRelations, DatabaseFunctionGraphExecutionCancelRequestFilter, DatabaseFunctionGraphExecutionCancelRequestOrderBy } from '../../orm/input-types';
|
|
9
|
+
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
|
|
10
|
+
export type { DatabaseFunctionGraphExecutionCancelRequestSelect, DatabaseFunctionGraphExecutionCancelRequestWithRelations, DatabaseFunctionGraphExecutionCancelRequestFilter, DatabaseFunctionGraphExecutionCancelRequestOrderBy, } from '../../orm/input-types';
|
|
11
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
12
|
+
export declare const databaseFunctionGraphExecutionCancelRequestsQueryKey: (variables?: object) => readonly ["databasefunctiongraphexecutioncancelrequest", "list", object];
|
|
13
|
+
/**
|
|
14
|
+
* Requests to stop a graph execution; each insert settles it cancelled and tears down the Jobs its nodes dispatched
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```tsx
|
|
18
|
+
* const { data, isLoading } = useDatabaseFunctionGraphExecutionCancelRequestsQuery({
|
|
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 useDatabaseFunctionGraphExecutionCancelRequestsQuery<S extends DatabaseFunctionGraphExecutionCancelRequestSelect, TData = {
|
|
29
|
+
databaseFunctionGraphExecutionCancelRequests: ConnectionResult<InferSelectResult<DatabaseFunctionGraphExecutionCancelRequestWithRelations, S>>;
|
|
30
|
+
}>(params: {
|
|
31
|
+
selection: {
|
|
32
|
+
fields: S;
|
|
33
|
+
} & Omit<ListSelectionConfig<S, DatabaseFunctionGraphExecutionCancelRequestFilter, DatabaseFunctionGraphExecutionCancelRequestOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, DatabaseFunctionGraphExecutionCancelRequestSelect>;
|
|
34
|
+
} & Omit<UseQueryOptions<{
|
|
35
|
+
databaseFunctionGraphExecutionCancelRequests: ConnectionResult<InferSelectResult<DatabaseFunctionGraphExecutionCancelRequestWithRelations, S>>;
|
|
36
|
+
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
37
|
+
/**
|
|
38
|
+
* Requests to stop a graph execution; each insert settles it cancelled and tears down the Jobs its nodes dispatched
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```ts
|
|
42
|
+
* const data = await fetchDatabaseFunctionGraphExecutionCancelRequestsQuery({
|
|
43
|
+
* selection: {
|
|
44
|
+
* fields: { id: true },
|
|
45
|
+
* first: 10,
|
|
46
|
+
* },
|
|
47
|
+
* });
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
export declare function fetchDatabaseFunctionGraphExecutionCancelRequestsQuery<S extends DatabaseFunctionGraphExecutionCancelRequestSelect>(params: {
|
|
51
|
+
selection: {
|
|
52
|
+
fields: S;
|
|
53
|
+
} & Omit<ListSelectionConfig<S, DatabaseFunctionGraphExecutionCancelRequestFilter, DatabaseFunctionGraphExecutionCancelRequestOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, DatabaseFunctionGraphExecutionCancelRequestSelect>;
|
|
54
|
+
}): Promise<{
|
|
55
|
+
databaseFunctionGraphExecutionCancelRequests: ConnectionResult<InferSelectResult<DatabaseFunctionGraphExecutionCancelRequestWithRelations, S>>;
|
|
56
|
+
}>;
|
|
57
|
+
/**
|
|
58
|
+
* Requests to stop a graph execution; each insert settles it cancelled and tears down the Jobs its nodes dispatched
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* ```ts
|
|
62
|
+
* await prefetchDatabaseFunctionGraphExecutionCancelRequestsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
export declare function prefetchDatabaseFunctionGraphExecutionCancelRequestsQuery<S extends DatabaseFunctionGraphExecutionCancelRequestSelect>(queryClient: QueryClient, params: {
|
|
66
|
+
selection: {
|
|
67
|
+
fields: S;
|
|
68
|
+
} & Omit<ListSelectionConfig<S, DatabaseFunctionGraphExecutionCancelRequestFilter, DatabaseFunctionGraphExecutionCancelRequestOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, DatabaseFunctionGraphExecutionCancelRequestSelect>;
|
|
69
|
+
}): Promise<void>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Requests to stop a graph execution; each insert settles it cancelled and tears down the Jobs its nodes dispatched
|
|
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.databaseFunctionGraphExecutionCancelRequestsQueryKey = void 0;
|
|
9
|
+
exports.useDatabaseFunctionGraphExecutionCancelRequestsQuery = useDatabaseFunctionGraphExecutionCancelRequestsQuery;
|
|
10
|
+
exports.fetchDatabaseFunctionGraphExecutionCancelRequestsQuery = fetchDatabaseFunctionGraphExecutionCancelRequestsQuery;
|
|
11
|
+
exports.prefetchDatabaseFunctionGraphExecutionCancelRequestsQuery = prefetchDatabaseFunctionGraphExecutionCancelRequestsQuery;
|
|
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.databaseFunctionGraphExecutionCancelRequestsQueryKey = query_keys_1.databaseFunctionGraphExecutionCancelRequestKeys.list;
|
|
18
|
+
function useDatabaseFunctionGraphExecutionCancelRequestsQuery(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.databaseFunctionGraphExecutionCancelRequestKeys.list(args),
|
|
24
|
+
queryFn: () => (0, client_1.getClient)().databaseFunctionGraphExecutionCancelRequest.findMany(args).unwrap(),
|
|
25
|
+
...queryOptions,
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
async function fetchDatabaseFunctionGraphExecutionCancelRequestsQuery(params) {
|
|
29
|
+
const args = (0, selection_1.buildListSelectionArgs)(params.selection);
|
|
30
|
+
return (0, client_1.getClient)().databaseFunctionGraphExecutionCancelRequest.findMany(args).unwrap();
|
|
31
|
+
}
|
|
32
|
+
async function prefetchDatabaseFunctionGraphExecutionCancelRequestsQuery(queryClient, params) {
|
|
33
|
+
const args = (0, selection_1.buildListSelectionArgs)(params.selection);
|
|
34
|
+
await queryClient.prefetchQuery({
|
|
35
|
+
queryKey: query_keys_1.databaseFunctionGraphExecutionCancelRequestKeys.list(args),
|
|
36
|
+
queryFn: () => (0, client_1.getClient)().databaseFunctionGraphExecutionCancelRequest.findMany(args).unwrap(),
|
|
37
|
+
});
|
|
38
|
+
}
|