@constructive-io/react 1.19.9 → 1.19.11
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/auth/hooks/mutation-keys.d.ts +4 -0
- package/auth/hooks/mutation-keys.js +6 -0
- package/auth/hooks/mutations/index.d.ts +2 -0
- package/auth/hooks/mutations/index.js +2 -0
- package/auth/hooks/mutations/useSendStepUpCodeMutation.d.ts +20 -0
- package/auth/hooks/mutations/useSendStepUpCodeMutation.js +26 -0
- package/auth/hooks/mutations/useVerifyStepUpCodeMutation.d.ts +20 -0
- package/auth/hooks/mutations/useVerifyStepUpCodeMutation.js +26 -0
- package/auth/orm/index.d.ts +10 -0
- package/auth/orm/input-types.d.ts +26 -0
- package/auth/orm/mutation/index.d.ts +17 -1
- package/auth/orm/mutation/index.js +24 -0
- package/auth/schema-types.d.ts +17 -0
- 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/auth/hooks/mutation-keys.d.ts +4 -0
- package/esm/auth/hooks/mutation-keys.js +6 -0
- package/esm/auth/hooks/mutations/index.d.ts +2 -0
- package/esm/auth/hooks/mutations/index.js +2 -0
- package/esm/auth/hooks/mutations/useSendStepUpCodeMutation.d.ts +20 -0
- package/esm/auth/hooks/mutations/useSendStepUpCodeMutation.js +23 -0
- package/esm/auth/hooks/mutations/useVerifyStepUpCodeMutation.d.ts +20 -0
- package/esm/auth/hooks/mutations/useVerifyStepUpCodeMutation.js +23 -0
- package/esm/auth/orm/index.d.ts +10 -0
- package/esm/auth/orm/input-types.d.ts +26 -0
- package/esm/auth/orm/mutation/index.d.ts +17 -1
- package/esm/auth/orm/mutation/index.js +24 -0
- package/esm/auth/schema-types.d.ts +17 -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 +2 -2
|
@@ -18,6 +18,9 @@ export * from './useDeleteContentPresetMutation';
|
|
|
18
18
|
export * from './useCreateDatabaseFunctionGraphMutation';
|
|
19
19
|
export * from './useUpdateDatabaseFunctionGraphMutation';
|
|
20
20
|
export * from './useDeleteDatabaseFunctionGraphMutation';
|
|
21
|
+
export * from './useCreateDatabaseFunctionGraphExecutionCancelRequestMutation';
|
|
22
|
+
export * from './useUpdateDatabaseFunctionGraphExecutionCancelRequestMutation';
|
|
23
|
+
export * from './useDeleteDatabaseFunctionGraphExecutionCancelRequestMutation';
|
|
21
24
|
export * from './useCreateDatabaseFunctionGraphExecutionMutation';
|
|
22
25
|
export * from './useUpdateDatabaseFunctionGraphExecutionMutation';
|
|
23
26
|
export * from './useDeleteDatabaseFunctionGraphExecutionMutation';
|
|
@@ -67,6 +70,9 @@ export * from './useDeleteFunctionGraphCommitMutation';
|
|
|
67
70
|
export * from './useCreateFunctionGraphMutation';
|
|
68
71
|
export * from './useUpdateFunctionGraphMutation';
|
|
69
72
|
export * from './useDeleteFunctionGraphMutation';
|
|
73
|
+
export * from './useCreateFunctionGraphExecutionCancelRequestMutation';
|
|
74
|
+
export * from './useUpdateFunctionGraphExecutionCancelRequestMutation';
|
|
75
|
+
export * from './useDeleteFunctionGraphExecutionCancelRequestMutation';
|
|
70
76
|
export * from './useCreateFunctionGraphExecutionMutation';
|
|
71
77
|
export * from './useUpdateFunctionGraphExecutionMutation';
|
|
72
78
|
export * from './useDeleteFunctionGraphExecutionMutation';
|
|
@@ -359,6 +365,7 @@ export * from './useDatabaseSaveGraphMutation';
|
|
|
359
365
|
export * from './useDatabaseStartExecutionMutation';
|
|
360
366
|
export * from './useDatabaseValidateFunctionGraphMutation';
|
|
361
367
|
export * from './useFunctionExecutionLogsAppendMutation';
|
|
368
|
+
export * from './useFunctionInvocationsCreatePageMutation';
|
|
362
369
|
export * from './useFunctionInvocationsCreateSyncMutation';
|
|
363
370
|
export * from './useImportDefinitionsMutation';
|
|
364
371
|
export * from './useImportGraphJsonMutation';
|
|
@@ -372,6 +379,7 @@ export * from './useInitEmptyRepoMutation';
|
|
|
372
379
|
export * from './useInsertNodeAtPathMutation';
|
|
373
380
|
export * from './useInsertNodesAtPathsMutation';
|
|
374
381
|
export * from './usePlatformFunctionExecutionLogsAppendMutation';
|
|
382
|
+
export * from './usePlatformFunctionInvocationsCreatePageMutation';
|
|
375
383
|
export * from './usePlatformFunctionInvocationsCreateSyncMutation';
|
|
376
384
|
export * from './usePlatformInfraInitEmptyRepoMutation';
|
|
377
385
|
export * from './usePlatformInfraInsertNodeAtPathMutation';
|
|
@@ -0,0 +1,34 @@
|
|
|
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, CreateDatabaseFunctionGraphExecutionCancelRequestInput } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { DatabaseFunctionGraphExecutionCancelRequestSelect, DatabaseFunctionGraphExecutionCancelRequestWithRelations, CreateDatabaseFunctionGraphExecutionCancelRequestInput, } 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 } = useCreateDatabaseFunctionGraphExecutionCancelRequestMutation({
|
|
16
|
+
* selection: { fields: { id: true, name: true } },
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* mutate({ name: 'New item' });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function useCreateDatabaseFunctionGraphExecutionCancelRequestMutation<S extends DatabaseFunctionGraphExecutionCancelRequestSelect>(params: {
|
|
23
|
+
selection: {
|
|
24
|
+
fields: S & DatabaseFunctionGraphExecutionCancelRequestSelect;
|
|
25
|
+
} & HookStrictSelect<NoInfer<S>, DatabaseFunctionGraphExecutionCancelRequestSelect>;
|
|
26
|
+
} & Omit<UseMutationOptions<{
|
|
27
|
+
createDatabaseFunctionGraphExecutionCancelRequest: {
|
|
28
|
+
databaseFunctionGraphExecutionCancelRequest: InferSelectResult<DatabaseFunctionGraphExecutionCancelRequestWithRelations, S>;
|
|
29
|
+
};
|
|
30
|
+
}, Error, CreateDatabaseFunctionGraphExecutionCancelRequestInput['databaseFunctionGraphExecutionCancelRequest']>, 'mutationFn'>): UseMutationResult<{
|
|
31
|
+
createDatabaseFunctionGraphExecutionCancelRequest: {
|
|
32
|
+
databaseFunctionGraphExecutionCancelRequest: InferSelectResult<DatabaseFunctionGraphExecutionCancelRequestWithRelations, S>;
|
|
33
|
+
};
|
|
34
|
+
}, Error, CreateDatabaseFunctionGraphExecutionCancelRequestInput['databaseFunctionGraphExecutionCancelRequest']>;
|
package/esm/compute/hooks/mutations/useCreateDatabaseFunctionGraphExecutionCancelRequestMutation.js
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
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 { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
7
|
+
import { getClient } from '../client';
|
|
8
|
+
import { buildSelectionArgs } from '../selection';
|
|
9
|
+
import { databaseFunctionGraphExecutionCancelRequestKeys } from '../query-keys';
|
|
10
|
+
import { databaseFunctionGraphExecutionCancelRequestMutationKeys } from '../mutation-keys';
|
|
11
|
+
export function useCreateDatabaseFunctionGraphExecutionCancelRequestMutation(params) {
|
|
12
|
+
const args = buildSelectionArgs(params.selection);
|
|
13
|
+
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
14
|
+
void _selection;
|
|
15
|
+
const queryClient = useQueryClient();
|
|
16
|
+
return useMutation({
|
|
17
|
+
mutationKey: databaseFunctionGraphExecutionCancelRequestMutationKeys.create(),
|
|
18
|
+
mutationFn: (data) => getClient()
|
|
19
|
+
.databaseFunctionGraphExecutionCancelRequest.create({
|
|
20
|
+
data,
|
|
21
|
+
select: args.select,
|
|
22
|
+
})
|
|
23
|
+
.unwrap(),
|
|
24
|
+
onSuccess: () => {
|
|
25
|
+
queryClient.invalidateQueries({
|
|
26
|
+
queryKey: databaseFunctionGraphExecutionCancelRequestKeys.lists(),
|
|
27
|
+
});
|
|
28
|
+
},
|
|
29
|
+
...mutationOptions,
|
|
30
|
+
});
|
|
31
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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, CreateFunctionGraphExecutionCancelRequestInput } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { FunctionGraphExecutionCancelRequestSelect, FunctionGraphExecutionCancelRequestWithRelations, CreateFunctionGraphExecutionCancelRequestInput, } 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 } = useCreateFunctionGraphExecutionCancelRequestMutation({
|
|
16
|
+
* selection: { fields: { id: true, name: true } },
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* mutate({ name: 'New item' });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function useCreateFunctionGraphExecutionCancelRequestMutation<S extends FunctionGraphExecutionCancelRequestSelect>(params: {
|
|
23
|
+
selection: {
|
|
24
|
+
fields: S & FunctionGraphExecutionCancelRequestSelect;
|
|
25
|
+
} & HookStrictSelect<NoInfer<S>, FunctionGraphExecutionCancelRequestSelect>;
|
|
26
|
+
} & Omit<UseMutationOptions<{
|
|
27
|
+
createFunctionGraphExecutionCancelRequest: {
|
|
28
|
+
functionGraphExecutionCancelRequest: InferSelectResult<FunctionGraphExecutionCancelRequestWithRelations, S>;
|
|
29
|
+
};
|
|
30
|
+
}, Error, CreateFunctionGraphExecutionCancelRequestInput['functionGraphExecutionCancelRequest']>, 'mutationFn'>): UseMutationResult<{
|
|
31
|
+
createFunctionGraphExecutionCancelRequest: {
|
|
32
|
+
functionGraphExecutionCancelRequest: InferSelectResult<FunctionGraphExecutionCancelRequestWithRelations, S>;
|
|
33
|
+
};
|
|
34
|
+
}, Error, CreateFunctionGraphExecutionCancelRequestInput['functionGraphExecutionCancelRequest']>;
|
|
@@ -0,0 +1,31 @@
|
|
|
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 { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
7
|
+
import { getClient } from '../client';
|
|
8
|
+
import { buildSelectionArgs } from '../selection';
|
|
9
|
+
import { functionGraphExecutionCancelRequestKeys } from '../query-keys';
|
|
10
|
+
import { functionGraphExecutionCancelRequestMutationKeys } from '../mutation-keys';
|
|
11
|
+
export function useCreateFunctionGraphExecutionCancelRequestMutation(params) {
|
|
12
|
+
const args = buildSelectionArgs(params.selection);
|
|
13
|
+
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
14
|
+
void _selection;
|
|
15
|
+
const queryClient = useQueryClient();
|
|
16
|
+
return useMutation({
|
|
17
|
+
mutationKey: functionGraphExecutionCancelRequestMutationKeys.create(),
|
|
18
|
+
mutationFn: (data) => getClient()
|
|
19
|
+
.functionGraphExecutionCancelRequest.create({
|
|
20
|
+
data,
|
|
21
|
+
select: args.select,
|
|
22
|
+
})
|
|
23
|
+
.unwrap(),
|
|
24
|
+
onSuccess: () => {
|
|
25
|
+
queryClient.invalidateQueries({
|
|
26
|
+
queryKey: functionGraphExecutionCancelRequestKeys.lists(),
|
|
27
|
+
});
|
|
28
|
+
},
|
|
29
|
+
...mutationOptions,
|
|
30
|
+
});
|
|
31
|
+
}
|
|
@@ -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 { 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
|
+
/**
|
|
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 } = useDeleteDatabaseFunctionGraphExecutionCancelRequestMutation({
|
|
16
|
+
* selection: { fields: { id: true } },
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* mutate({ id: 'value-to-delete' });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function useDeleteDatabaseFunctionGraphExecutionCancelRequestMutation<S extends DatabaseFunctionGraphExecutionCancelRequestSelect>(params: {
|
|
23
|
+
selection: {
|
|
24
|
+
fields: S & DatabaseFunctionGraphExecutionCancelRequestSelect;
|
|
25
|
+
} & HookStrictSelect<NoInfer<S>, DatabaseFunctionGraphExecutionCancelRequestSelect>;
|
|
26
|
+
} & Omit<UseMutationOptions<{
|
|
27
|
+
deleteDatabaseFunctionGraphExecutionCancelRequest: {
|
|
28
|
+
databaseFunctionGraphExecutionCancelRequest: InferSelectResult<DatabaseFunctionGraphExecutionCancelRequestWithRelations, S>;
|
|
29
|
+
};
|
|
30
|
+
}, Error, {
|
|
31
|
+
id: string;
|
|
32
|
+
}>, 'mutationFn'>): UseMutationResult<{
|
|
33
|
+
deleteDatabaseFunctionGraphExecutionCancelRequest: {
|
|
34
|
+
databaseFunctionGraphExecutionCancelRequest: InferSelectResult<DatabaseFunctionGraphExecutionCancelRequestWithRelations, S>;
|
|
35
|
+
};
|
|
36
|
+
}, Error, {
|
|
37
|
+
id: string;
|
|
38
|
+
}>;
|
package/esm/compute/hooks/mutations/useDeleteDatabaseFunctionGraphExecutionCancelRequestMutation.js
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
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 { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
7
|
+
import { getClient } from '../client';
|
|
8
|
+
import { buildSelectionArgs } from '../selection';
|
|
9
|
+
import { databaseFunctionGraphExecutionCancelRequestKeys } from '../query-keys';
|
|
10
|
+
import { databaseFunctionGraphExecutionCancelRequestMutationKeys } from '../mutation-keys';
|
|
11
|
+
export function useDeleteDatabaseFunctionGraphExecutionCancelRequestMutation(params) {
|
|
12
|
+
const args = buildSelectionArgs(params.selection);
|
|
13
|
+
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
14
|
+
void _selection;
|
|
15
|
+
const queryClient = useQueryClient();
|
|
16
|
+
return useMutation({
|
|
17
|
+
mutationKey: databaseFunctionGraphExecutionCancelRequestMutationKeys.all,
|
|
18
|
+
mutationFn: ({ id }) => getClient()
|
|
19
|
+
.databaseFunctionGraphExecutionCancelRequest.delete({
|
|
20
|
+
where: {
|
|
21
|
+
id,
|
|
22
|
+
},
|
|
23
|
+
select: args.select,
|
|
24
|
+
})
|
|
25
|
+
.unwrap(),
|
|
26
|
+
onSuccess: (_, variables) => {
|
|
27
|
+
queryClient.removeQueries({
|
|
28
|
+
queryKey: databaseFunctionGraphExecutionCancelRequestKeys.detail(variables.id),
|
|
29
|
+
});
|
|
30
|
+
queryClient.invalidateQueries({
|
|
31
|
+
queryKey: databaseFunctionGraphExecutionCancelRequestKeys.lists(),
|
|
32
|
+
});
|
|
33
|
+
},
|
|
34
|
+
...mutationOptions,
|
|
35
|
+
});
|
|
36
|
+
}
|
|
@@ -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,36 @@
|
|
|
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 { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
7
|
+
import { getClient } from '../client';
|
|
8
|
+
import { buildSelectionArgs } from '../selection';
|
|
9
|
+
import { functionGraphExecutionCancelRequestKeys } from '../query-keys';
|
|
10
|
+
import { functionGraphExecutionCancelRequestMutationKeys } from '../mutation-keys';
|
|
11
|
+
export function useDeleteFunctionGraphExecutionCancelRequestMutation(params) {
|
|
12
|
+
const args = buildSelectionArgs(params.selection);
|
|
13
|
+
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
14
|
+
void _selection;
|
|
15
|
+
const queryClient = useQueryClient();
|
|
16
|
+
return useMutation({
|
|
17
|
+
mutationKey: functionGraphExecutionCancelRequestMutationKeys.all,
|
|
18
|
+
mutationFn: ({ id }) => getClient()
|
|
19
|
+
.functionGraphExecutionCancelRequest.delete({
|
|
20
|
+
where: {
|
|
21
|
+
id,
|
|
22
|
+
},
|
|
23
|
+
select: args.select,
|
|
24
|
+
})
|
|
25
|
+
.unwrap(),
|
|
26
|
+
onSuccess: (_, variables) => {
|
|
27
|
+
queryClient.removeQueries({
|
|
28
|
+
queryKey: functionGraphExecutionCancelRequestKeys.detail(variables.id),
|
|
29
|
+
});
|
|
30
|
+
queryClient.invalidateQueries({
|
|
31
|
+
queryKey: functionGraphExecutionCancelRequestKeys.lists(),
|
|
32
|
+
});
|
|
33
|
+
},
|
|
34
|
+
...mutationOptions,
|
|
35
|
+
});
|
|
36
|
+
}
|
|
@@ -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,23 @@
|
|
|
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 { useMutation } from '@tanstack/react-query';
|
|
7
|
+
import { getClient } from '../client';
|
|
8
|
+
import { buildSelectionArgs } from '../selection';
|
|
9
|
+
import { customMutationKeys } from '../mutation-keys';
|
|
10
|
+
export function useFunctionInvocationsCreatePageMutation(params) {
|
|
11
|
+
const args = buildSelectionArgs(params.selection);
|
|
12
|
+
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
13
|
+
void _selection;
|
|
14
|
+
return useMutation({
|
|
15
|
+
mutationKey: customMutationKeys.functionInvocationsCreatePage(),
|
|
16
|
+
mutationFn: (variables) => getClient()
|
|
17
|
+
.mutation.functionInvocationsCreatePage(variables, {
|
|
18
|
+
select: args.select,
|
|
19
|
+
})
|
|
20
|
+
.unwrap(),
|
|
21
|
+
...mutationOptions,
|
|
22
|
+
});
|
|
23
|
+
}
|
|
@@ -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,23 @@
|
|
|
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 { useMutation } from '@tanstack/react-query';
|
|
7
|
+
import { getClient } from '../client';
|
|
8
|
+
import { buildSelectionArgs } from '../selection';
|
|
9
|
+
import { customMutationKeys } from '../mutation-keys';
|
|
10
|
+
export function usePlatformFunctionInvocationsCreatePageMutation(params) {
|
|
11
|
+
const args = buildSelectionArgs(params.selection);
|
|
12
|
+
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
13
|
+
void _selection;
|
|
14
|
+
return useMutation({
|
|
15
|
+
mutationKey: customMutationKeys.platformFunctionInvocationsCreatePage(),
|
|
16
|
+
mutationFn: (variables) => getClient()
|
|
17
|
+
.mutation.platformFunctionInvocationsCreatePage(variables, {
|
|
18
|
+
select: args.select,
|
|
19
|
+
})
|
|
20
|
+
.unwrap(),
|
|
21
|
+
...mutationOptions,
|
|
22
|
+
});
|
|
23
|
+
}
|
|
@@ -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/esm/compute/hooks/mutations/useUpdateDatabaseFunctionGraphExecutionCancelRequestMutation.js
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
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 { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
7
|
+
import { getClient } from '../client';
|
|
8
|
+
import { buildSelectionArgs } from '../selection';
|
|
9
|
+
import { databaseFunctionGraphExecutionCancelRequestKeys } from '../query-keys';
|
|
10
|
+
import { databaseFunctionGraphExecutionCancelRequestMutationKeys } from '../mutation-keys';
|
|
11
|
+
export function useUpdateDatabaseFunctionGraphExecutionCancelRequestMutation(params) {
|
|
12
|
+
const args = buildSelectionArgs(params.selection);
|
|
13
|
+
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
14
|
+
void _selection;
|
|
15
|
+
const queryClient = useQueryClient();
|
|
16
|
+
return useMutation({
|
|
17
|
+
mutationKey: databaseFunctionGraphExecutionCancelRequestMutationKeys.all,
|
|
18
|
+
mutationFn: ({ id, databaseFunctionGraphExecutionCancelRequestPatch, }) => getClient()
|
|
19
|
+
.databaseFunctionGraphExecutionCancelRequest.update({
|
|
20
|
+
where: {
|
|
21
|
+
id,
|
|
22
|
+
},
|
|
23
|
+
data: databaseFunctionGraphExecutionCancelRequestPatch,
|
|
24
|
+
select: args.select,
|
|
25
|
+
})
|
|
26
|
+
.unwrap(),
|
|
27
|
+
onSuccess: (_, variables) => {
|
|
28
|
+
queryClient.invalidateQueries({
|
|
29
|
+
queryKey: databaseFunctionGraphExecutionCancelRequestKeys.detail(variables.id),
|
|
30
|
+
});
|
|
31
|
+
queryClient.invalidateQueries({
|
|
32
|
+
queryKey: databaseFunctionGraphExecutionCancelRequestKeys.lists(),
|
|
33
|
+
});
|
|
34
|
+
},
|
|
35
|
+
...mutationOptions,
|
|
36
|
+
});
|
|
37
|
+
}
|
|
@@ -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,37 @@
|
|
|
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 { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
7
|
+
import { getClient } from '../client';
|
|
8
|
+
import { buildSelectionArgs } from '../selection';
|
|
9
|
+
import { functionGraphExecutionCancelRequestKeys } from '../query-keys';
|
|
10
|
+
import { functionGraphExecutionCancelRequestMutationKeys } from '../mutation-keys';
|
|
11
|
+
export function useUpdateFunctionGraphExecutionCancelRequestMutation(params) {
|
|
12
|
+
const args = buildSelectionArgs(params.selection);
|
|
13
|
+
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
14
|
+
void _selection;
|
|
15
|
+
const queryClient = useQueryClient();
|
|
16
|
+
return useMutation({
|
|
17
|
+
mutationKey: functionGraphExecutionCancelRequestMutationKeys.all,
|
|
18
|
+
mutationFn: ({ id, functionGraphExecutionCancelRequestPatch, }) => getClient()
|
|
19
|
+
.functionGraphExecutionCancelRequest.update({
|
|
20
|
+
where: {
|
|
21
|
+
id,
|
|
22
|
+
},
|
|
23
|
+
data: functionGraphExecutionCancelRequestPatch,
|
|
24
|
+
select: args.select,
|
|
25
|
+
})
|
|
26
|
+
.unwrap(),
|
|
27
|
+
onSuccess: (_, variables) => {
|
|
28
|
+
queryClient.invalidateQueries({
|
|
29
|
+
queryKey: functionGraphExecutionCancelRequestKeys.detail(variables.id),
|
|
30
|
+
});
|
|
31
|
+
queryClient.invalidateQueries({
|
|
32
|
+
queryKey: functionGraphExecutionCancelRequestKeys.lists(),
|
|
33
|
+
});
|
|
34
|
+
},
|
|
35
|
+
...mutationOptions,
|
|
36
|
+
});
|
|
37
|
+
}
|
|
@@ -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';
|
|
@@ -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';
|