@constructive-io/react 1.19.10 → 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.
Files changed (99) hide show
  1. package/compute/hooks/index.d.ts +1 -1
  2. package/compute/hooks/index.js +1 -1
  3. package/compute/hooks/invalidation.d.ts +12 -0
  4. package/compute/hooks/invalidation.js +32 -0
  5. package/compute/hooks/mutation-keys.d.ts +28 -0
  6. package/compute/hooks/mutation-keys.js +29 -3
  7. package/compute/hooks/mutations/index.d.ts +8 -0
  8. package/compute/hooks/mutations/index.js +8 -0
  9. package/compute/hooks/mutations/useCreateDatabaseFunctionGraphExecutionCancelRequestMutation.d.ts +34 -0
  10. package/compute/hooks/mutations/useCreateDatabaseFunctionGraphExecutionCancelRequestMutation.js +34 -0
  11. package/compute/hooks/mutations/useCreateFunctionGraphExecutionCancelRequestMutation.d.ts +34 -0
  12. package/compute/hooks/mutations/useCreateFunctionGraphExecutionCancelRequestMutation.js +34 -0
  13. package/compute/hooks/mutations/useDeleteDatabaseFunctionGraphExecutionCancelRequestMutation.d.ts +38 -0
  14. package/compute/hooks/mutations/useDeleteDatabaseFunctionGraphExecutionCancelRequestMutation.js +39 -0
  15. package/compute/hooks/mutations/useDeleteFunctionGraphExecutionCancelRequestMutation.d.ts +38 -0
  16. package/compute/hooks/mutations/useDeleteFunctionGraphExecutionCancelRequestMutation.js +39 -0
  17. package/compute/hooks/mutations/useFunctionInvocationsCreatePageMutation.d.ts +20 -0
  18. package/compute/hooks/mutations/useFunctionInvocationsCreatePageMutation.js +26 -0
  19. package/compute/hooks/mutations/usePlatformFunctionInvocationsCreatePageMutation.d.ts +20 -0
  20. package/compute/hooks/mutations/usePlatformFunctionInvocationsCreatePageMutation.js +26 -0
  21. package/compute/hooks/mutations/useUpdateDatabaseFunctionGraphExecutionCancelRequestMutation.d.ts +40 -0
  22. package/compute/hooks/mutations/useUpdateDatabaseFunctionGraphExecutionCancelRequestMutation.js +40 -0
  23. package/compute/hooks/mutations/useUpdateFunctionGraphExecutionCancelRequestMutation.d.ts +40 -0
  24. package/compute/hooks/mutations/useUpdateFunctionGraphExecutionCancelRequestMutation.js +40 -0
  25. package/compute/hooks/queries/index.d.ts +4 -0
  26. package/compute/hooks/queries/index.js +4 -0
  27. package/compute/hooks/queries/useDatabaseFunctionGraphExecutionCancelRequestQuery.d.ts +65 -0
  28. package/compute/hooks/queries/useDatabaseFunctionGraphExecutionCancelRequestQuery.js +53 -0
  29. package/compute/hooks/queries/useDatabaseFunctionGraphExecutionCancelRequestsQuery.d.ts +69 -0
  30. package/compute/hooks/queries/useDatabaseFunctionGraphExecutionCancelRequestsQuery.js +38 -0
  31. package/compute/hooks/queries/useFunctionGraphExecutionCancelRequestQuery.d.ts +65 -0
  32. package/compute/hooks/queries/useFunctionGraphExecutionCancelRequestQuery.js +53 -0
  33. package/compute/hooks/queries/useFunctionGraphExecutionCancelRequestsQuery.d.ts +69 -0
  34. package/compute/hooks/queries/useFunctionGraphExecutionCancelRequestsQuery.js +38 -0
  35. package/compute/hooks/query-keys.d.ts +28 -0
  36. package/compute/hooks/query-keys.js +23 -3
  37. package/compute/orm/index.d.ts +14 -0
  38. package/compute/orm/index.js +4 -0
  39. package/compute/orm/input-types.d.ts +298 -4
  40. package/compute/orm/models/databaseFunctionGraphExecutionCancelRequest.d.ts +54 -0
  41. package/compute/orm/models/databaseFunctionGraphExecutionCancelRequest.js +104 -0
  42. package/compute/orm/models/functionGraphExecutionCancelRequest.d.ts +54 -0
  43. package/compute/orm/models/functionGraphExecutionCancelRequest.js +104 -0
  44. package/compute/orm/models/index.d.ts +2 -0
  45. package/compute/orm/models/index.js +7 -3
  46. package/compute/orm/mutation/index.d.ts +17 -1
  47. package/compute/orm/mutation/index.js +24 -0
  48. package/compute/schema-types.d.ts +209 -5
  49. package/compute/types.d.ts +12 -0
  50. package/esm/compute/hooks/index.d.ts +1 -1
  51. package/esm/compute/hooks/index.js +1 -1
  52. package/esm/compute/hooks/invalidation.d.ts +12 -0
  53. package/esm/compute/hooks/invalidation.js +33 -1
  54. package/esm/compute/hooks/mutation-keys.d.ts +28 -0
  55. package/esm/compute/hooks/mutation-keys.js +26 -0
  56. package/esm/compute/hooks/mutations/index.d.ts +8 -0
  57. package/esm/compute/hooks/mutations/index.js +8 -0
  58. package/esm/compute/hooks/mutations/useCreateDatabaseFunctionGraphExecutionCancelRequestMutation.d.ts +34 -0
  59. package/esm/compute/hooks/mutations/useCreateDatabaseFunctionGraphExecutionCancelRequestMutation.js +31 -0
  60. package/esm/compute/hooks/mutations/useCreateFunctionGraphExecutionCancelRequestMutation.d.ts +34 -0
  61. package/esm/compute/hooks/mutations/useCreateFunctionGraphExecutionCancelRequestMutation.js +31 -0
  62. package/esm/compute/hooks/mutations/useDeleteDatabaseFunctionGraphExecutionCancelRequestMutation.d.ts +38 -0
  63. package/esm/compute/hooks/mutations/useDeleteDatabaseFunctionGraphExecutionCancelRequestMutation.js +36 -0
  64. package/esm/compute/hooks/mutations/useDeleteFunctionGraphExecutionCancelRequestMutation.d.ts +38 -0
  65. package/esm/compute/hooks/mutations/useDeleteFunctionGraphExecutionCancelRequestMutation.js +36 -0
  66. package/esm/compute/hooks/mutations/useFunctionInvocationsCreatePageMutation.d.ts +20 -0
  67. package/esm/compute/hooks/mutations/useFunctionInvocationsCreatePageMutation.js +23 -0
  68. package/esm/compute/hooks/mutations/usePlatformFunctionInvocationsCreatePageMutation.d.ts +20 -0
  69. package/esm/compute/hooks/mutations/usePlatformFunctionInvocationsCreatePageMutation.js +23 -0
  70. package/esm/compute/hooks/mutations/useUpdateDatabaseFunctionGraphExecutionCancelRequestMutation.d.ts +40 -0
  71. package/esm/compute/hooks/mutations/useUpdateDatabaseFunctionGraphExecutionCancelRequestMutation.js +37 -0
  72. package/esm/compute/hooks/mutations/useUpdateFunctionGraphExecutionCancelRequestMutation.d.ts +40 -0
  73. package/esm/compute/hooks/mutations/useUpdateFunctionGraphExecutionCancelRequestMutation.js +37 -0
  74. package/esm/compute/hooks/queries/index.d.ts +4 -0
  75. package/esm/compute/hooks/queries/index.js +4 -0
  76. package/esm/compute/hooks/queries/useDatabaseFunctionGraphExecutionCancelRequestQuery.d.ts +65 -0
  77. package/esm/compute/hooks/queries/useDatabaseFunctionGraphExecutionCancelRequestQuery.js +47 -0
  78. package/esm/compute/hooks/queries/useDatabaseFunctionGraphExecutionCancelRequestsQuery.d.ts +69 -0
  79. package/esm/compute/hooks/queries/useDatabaseFunctionGraphExecutionCancelRequestsQuery.js +32 -0
  80. package/esm/compute/hooks/queries/useFunctionGraphExecutionCancelRequestQuery.d.ts +65 -0
  81. package/esm/compute/hooks/queries/useFunctionGraphExecutionCancelRequestQuery.js +47 -0
  82. package/esm/compute/hooks/queries/useFunctionGraphExecutionCancelRequestsQuery.d.ts +69 -0
  83. package/esm/compute/hooks/queries/useFunctionGraphExecutionCancelRequestsQuery.js +32 -0
  84. package/esm/compute/hooks/query-keys.d.ts +28 -0
  85. package/esm/compute/hooks/query-keys.js +20 -0
  86. package/esm/compute/orm/index.d.ts +14 -0
  87. package/esm/compute/orm/index.js +4 -0
  88. package/esm/compute/orm/input-types.d.ts +298 -4
  89. package/esm/compute/orm/models/databaseFunctionGraphExecutionCancelRequest.d.ts +54 -0
  90. package/esm/compute/orm/models/databaseFunctionGraphExecutionCancelRequest.js +100 -0
  91. package/esm/compute/orm/models/functionGraphExecutionCancelRequest.d.ts +54 -0
  92. package/esm/compute/orm/models/functionGraphExecutionCancelRequest.js +100 -0
  93. package/esm/compute/orm/models/index.d.ts +2 -0
  94. package/esm/compute/orm/models/index.js +2 -0
  95. package/esm/compute/orm/mutation/index.d.ts +17 -1
  96. package/esm/compute/orm/mutation/index.js +24 -0
  97. package/esm/compute/schema-types.d.ts +209 -5
  98. package/esm/compute/types.d.ts +12 -0
  99. package/package.json +2 -2
@@ -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
+ }>;
@@ -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';
@@ -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,47 @@
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 { useQuery } from '@tanstack/react-query';
7
+ import { getClient } from '../client';
8
+ import { buildSelectionArgs } from '../selection';
9
+ import { databaseFunctionGraphExecutionCancelRequestKeys } from '../query-keys';
10
+ /** Query key factory - re-exported from query-keys.ts */
11
+ export const databaseFunctionGraphExecutionCancelRequestQueryKey = databaseFunctionGraphExecutionCancelRequestKeys.detail;
12
+ export function useDatabaseFunctionGraphExecutionCancelRequestQuery(params) {
13
+ const args = buildSelectionArgs(params.selection);
14
+ const { selection: _selection, ...queryOptions } = params ?? {};
15
+ void _selection;
16
+ return useQuery({
17
+ queryKey: databaseFunctionGraphExecutionCancelRequestKeys.detail(params.id),
18
+ queryFn: () => getClient()
19
+ .databaseFunctionGraphExecutionCancelRequest.findOne({
20
+ id: params.id,
21
+ select: args.select,
22
+ })
23
+ .unwrap(),
24
+ ...queryOptions,
25
+ });
26
+ }
27
+ export async function fetchDatabaseFunctionGraphExecutionCancelRequestQuery(params) {
28
+ const args = buildSelectionArgs(params.selection);
29
+ return getClient()
30
+ .databaseFunctionGraphExecutionCancelRequest.findOne({
31
+ id: params.id,
32
+ select: args.select,
33
+ })
34
+ .unwrap();
35
+ }
36
+ export async function prefetchDatabaseFunctionGraphExecutionCancelRequestQuery(queryClient, params) {
37
+ const args = buildSelectionArgs(params.selection);
38
+ await queryClient.prefetchQuery({
39
+ queryKey: databaseFunctionGraphExecutionCancelRequestKeys.detail(params.id),
40
+ queryFn: () => getClient()
41
+ .databaseFunctionGraphExecutionCancelRequest.findOne({
42
+ id: params.id,
43
+ select: args.select,
44
+ })
45
+ .unwrap(),
46
+ });
47
+ }
@@ -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,32 @@
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 { useQuery } from '@tanstack/react-query';
7
+ import { getClient } from '../client';
8
+ import { buildListSelectionArgs } from '../selection';
9
+ import { databaseFunctionGraphExecutionCancelRequestKeys } from '../query-keys';
10
+ /** Query key factory - re-exported from query-keys.ts */
11
+ export const databaseFunctionGraphExecutionCancelRequestsQueryKey = databaseFunctionGraphExecutionCancelRequestKeys.list;
12
+ export function useDatabaseFunctionGraphExecutionCancelRequestsQuery(params) {
13
+ const args = buildListSelectionArgs(params.selection);
14
+ const { selection: _selection, ...queryOptions } = params ?? {};
15
+ void _selection;
16
+ return useQuery({
17
+ queryKey: databaseFunctionGraphExecutionCancelRequestKeys.list(args),
18
+ queryFn: () => getClient().databaseFunctionGraphExecutionCancelRequest.findMany(args).unwrap(),
19
+ ...queryOptions,
20
+ });
21
+ }
22
+ export async function fetchDatabaseFunctionGraphExecutionCancelRequestsQuery(params) {
23
+ const args = buildListSelectionArgs(params.selection);
24
+ return getClient().databaseFunctionGraphExecutionCancelRequest.findMany(args).unwrap();
25
+ }
26
+ export async function prefetchDatabaseFunctionGraphExecutionCancelRequestsQuery(queryClient, params) {
27
+ const args = buildListSelectionArgs(params.selection);
28
+ await queryClient.prefetchQuery({
29
+ queryKey: databaseFunctionGraphExecutionCancelRequestKeys.list(args),
30
+ queryFn: () => getClient().databaseFunctionGraphExecutionCancelRequest.findMany(args).unwrap(),
31
+ });
32
+ }
@@ -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 { 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
+ /** Query key factory - re-exported from query-keys.ts */
11
+ export declare const functionGraphExecutionCancelRequestQueryKey: (id: string | number) => readonly ["functiongraphexecutioncancelrequest", "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 } = useFunctionGraphExecutionCancelRequestQuery({
18
+ * id: 'some-id',
19
+ * selection: { fields: { id: true, name: true } },
20
+ * });
21
+ * ```
22
+ */
23
+ export declare function useFunctionGraphExecutionCancelRequestQuery<S extends FunctionGraphExecutionCancelRequestSelect, TData = {
24
+ functionGraphExecutionCancelRequest: InferSelectResult<FunctionGraphExecutionCancelRequestWithRelations, S> | null;
25
+ }>(params: {
26
+ id: string;
27
+ selection: {
28
+ fields: S;
29
+ } & HookStrictSelect<NoInfer<S>, FunctionGraphExecutionCancelRequestSelect>;
30
+ } & Omit<UseQueryOptions<{
31
+ functionGraphExecutionCancelRequest: InferSelectResult<FunctionGraphExecutionCancelRequestWithRelations, 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 fetchFunctionGraphExecutionCancelRequestQuery({
39
+ * id: 'some-id',
40
+ * selection: { fields: { id: true } },
41
+ * });
42
+ * ```
43
+ */
44
+ export declare function fetchFunctionGraphExecutionCancelRequestQuery<S extends FunctionGraphExecutionCancelRequestSelect>(params: {
45
+ id: string;
46
+ selection: {
47
+ fields: S;
48
+ } & HookStrictSelect<NoInfer<S>, FunctionGraphExecutionCancelRequestSelect>;
49
+ }): Promise<{
50
+ functionGraphExecutionCancelRequest: InferSelectResult<FunctionGraphExecutionCancelRequestWithRelations, 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 prefetchFunctionGraphExecutionCancelRequestQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
58
+ * ```
59
+ */
60
+ export declare function prefetchFunctionGraphExecutionCancelRequestQuery<S extends FunctionGraphExecutionCancelRequestSelect>(queryClient: QueryClient, params: {
61
+ id: string;
62
+ selection: {
63
+ fields: S;
64
+ } & HookStrictSelect<NoInfer<S>, FunctionGraphExecutionCancelRequestSelect>;
65
+ }): Promise<void>;
@@ -0,0 +1,47 @@
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 { useQuery } from '@tanstack/react-query';
7
+ import { getClient } from '../client';
8
+ import { buildSelectionArgs } from '../selection';
9
+ import { functionGraphExecutionCancelRequestKeys } from '../query-keys';
10
+ /** Query key factory - re-exported from query-keys.ts */
11
+ export const functionGraphExecutionCancelRequestQueryKey = functionGraphExecutionCancelRequestKeys.detail;
12
+ export function useFunctionGraphExecutionCancelRequestQuery(params) {
13
+ const args = buildSelectionArgs(params.selection);
14
+ const { selection: _selection, ...queryOptions } = params ?? {};
15
+ void _selection;
16
+ return useQuery({
17
+ queryKey: functionGraphExecutionCancelRequestKeys.detail(params.id),
18
+ queryFn: () => getClient()
19
+ .functionGraphExecutionCancelRequest.findOne({
20
+ id: params.id,
21
+ select: args.select,
22
+ })
23
+ .unwrap(),
24
+ ...queryOptions,
25
+ });
26
+ }
27
+ export async function fetchFunctionGraphExecutionCancelRequestQuery(params) {
28
+ const args = buildSelectionArgs(params.selection);
29
+ return getClient()
30
+ .functionGraphExecutionCancelRequest.findOne({
31
+ id: params.id,
32
+ select: args.select,
33
+ })
34
+ .unwrap();
35
+ }
36
+ export async function prefetchFunctionGraphExecutionCancelRequestQuery(queryClient, params) {
37
+ const args = buildSelectionArgs(params.selection);
38
+ await queryClient.prefetchQuery({
39
+ queryKey: functionGraphExecutionCancelRequestKeys.detail(params.id),
40
+ queryFn: () => getClient()
41
+ .functionGraphExecutionCancelRequest.findOne({
42
+ id: params.id,
43
+ select: args.select,
44
+ })
45
+ .unwrap(),
46
+ });
47
+ }
@@ -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 { FunctionGraphExecutionCancelRequestSelect, FunctionGraphExecutionCancelRequestWithRelations, FunctionGraphExecutionCancelRequestFilter, FunctionGraphExecutionCancelRequestOrderBy } from '../../orm/input-types';
9
+ import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
10
+ export type { FunctionGraphExecutionCancelRequestSelect, FunctionGraphExecutionCancelRequestWithRelations, FunctionGraphExecutionCancelRequestFilter, FunctionGraphExecutionCancelRequestOrderBy, } from '../../orm/input-types';
11
+ /** Query key factory - re-exported from query-keys.ts */
12
+ export declare const functionGraphExecutionCancelRequestsQueryKey: (variables?: object) => readonly ["functiongraphexecutioncancelrequest", "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 } = useFunctionGraphExecutionCancelRequestsQuery({
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 useFunctionGraphExecutionCancelRequestsQuery<S extends FunctionGraphExecutionCancelRequestSelect, TData = {
29
+ functionGraphExecutionCancelRequests: ConnectionResult<InferSelectResult<FunctionGraphExecutionCancelRequestWithRelations, S>>;
30
+ }>(params: {
31
+ selection: {
32
+ fields: S;
33
+ } & Omit<ListSelectionConfig<S, FunctionGraphExecutionCancelRequestFilter, FunctionGraphExecutionCancelRequestOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, FunctionGraphExecutionCancelRequestSelect>;
34
+ } & Omit<UseQueryOptions<{
35
+ functionGraphExecutionCancelRequests: ConnectionResult<InferSelectResult<FunctionGraphExecutionCancelRequestWithRelations, 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 fetchFunctionGraphExecutionCancelRequestsQuery({
43
+ * selection: {
44
+ * fields: { id: true },
45
+ * first: 10,
46
+ * },
47
+ * });
48
+ * ```
49
+ */
50
+ export declare function fetchFunctionGraphExecutionCancelRequestsQuery<S extends FunctionGraphExecutionCancelRequestSelect>(params: {
51
+ selection: {
52
+ fields: S;
53
+ } & Omit<ListSelectionConfig<S, FunctionGraphExecutionCancelRequestFilter, FunctionGraphExecutionCancelRequestOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, FunctionGraphExecutionCancelRequestSelect>;
54
+ }): Promise<{
55
+ functionGraphExecutionCancelRequests: ConnectionResult<InferSelectResult<FunctionGraphExecutionCancelRequestWithRelations, 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 prefetchFunctionGraphExecutionCancelRequestsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
63
+ * ```
64
+ */
65
+ export declare function prefetchFunctionGraphExecutionCancelRequestsQuery<S extends FunctionGraphExecutionCancelRequestSelect>(queryClient: QueryClient, params: {
66
+ selection: {
67
+ fields: S;
68
+ } & Omit<ListSelectionConfig<S, FunctionGraphExecutionCancelRequestFilter, FunctionGraphExecutionCancelRequestOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, FunctionGraphExecutionCancelRequestSelect>;
69
+ }): Promise<void>;
@@ -0,0 +1,32 @@
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 { useQuery } from '@tanstack/react-query';
7
+ import { getClient } from '../client';
8
+ import { buildListSelectionArgs } from '../selection';
9
+ import { functionGraphExecutionCancelRequestKeys } from '../query-keys';
10
+ /** Query key factory - re-exported from query-keys.ts */
11
+ export const functionGraphExecutionCancelRequestsQueryKey = functionGraphExecutionCancelRequestKeys.list;
12
+ export function useFunctionGraphExecutionCancelRequestsQuery(params) {
13
+ const args = buildListSelectionArgs(params.selection);
14
+ const { selection: _selection, ...queryOptions } = params ?? {};
15
+ void _selection;
16
+ return useQuery({
17
+ queryKey: functionGraphExecutionCancelRequestKeys.list(args),
18
+ queryFn: () => getClient().functionGraphExecutionCancelRequest.findMany(args).unwrap(),
19
+ ...queryOptions,
20
+ });
21
+ }
22
+ export async function fetchFunctionGraphExecutionCancelRequestsQuery(params) {
23
+ const args = buildListSelectionArgs(params.selection);
24
+ return getClient().functionGraphExecutionCancelRequest.findMany(args).unwrap();
25
+ }
26
+ export async function prefetchFunctionGraphExecutionCancelRequestsQuery(queryClient, params) {
27
+ const args = buildListSelectionArgs(params.selection);
28
+ await queryClient.prefetchQuery({
29
+ queryKey: functionGraphExecutionCancelRequestKeys.list(args),
30
+ queryFn: () => getClient().functionGraphExecutionCancelRequest.findMany(args).unwrap(),
31
+ });
32
+ }