@constructive-io/react 1.20.4 → 1.20.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (178) hide show
  1. package/admin/orm/input-types.d.ts +4 -4
  2. package/admin/orm/mutation/index.d.ts +5 -4
  3. package/admin/schema-types.d.ts +3 -3
  4. package/agent/orm/input-types.d.ts +4 -4
  5. package/agent/orm/mutation/index.d.ts +5 -4
  6. package/agent/schema-types.d.ts +3 -3
  7. package/api/hooks/index.d.ts +1 -1
  8. package/api/hooks/index.js +1 -1
  9. package/api/hooks/invalidation.d.ts +0 -12
  10. package/api/hooks/invalidation.js +0 -32
  11. package/api/hooks/mutation-keys.d.ts +4 -24
  12. package/api/hooks/mutation-keys.js +8 -16
  13. package/api/hooks/mutations/index.d.ts +2 -6
  14. package/api/hooks/mutations/index.js +2 -6
  15. package/api/hooks/mutations/useCreateFunctionFromSourceMutation.d.ts +20 -0
  16. package/api/hooks/mutations/{useCreateHostnameBindingMutation.js → useCreateFunctionFromSourceMutation.js} +6 -14
  17. package/api/hooks/mutations/useUpdateFunctionFromSourceMutation.d.ts +20 -0
  18. package/api/hooks/mutations/useUpdateFunctionFromSourceMutation.js +26 -0
  19. package/api/hooks/queries/index.d.ts +1 -4
  20. package/api/hooks/queries/index.js +1 -4
  21. package/api/hooks/queries/useEmailSharedAccountQuery.d.ts +45 -0
  22. package/api/hooks/queries/useEmailSharedAccountQuery.js +49 -0
  23. package/api/hooks/query-keys.d.ts +2 -28
  24. package/api/hooks/query-keys.js +3 -18
  25. package/api/orm/index.d.ts +15 -4
  26. package/api/orm/index.js +0 -4
  27. package/api/orm/input-types.d.ts +96 -439
  28. package/api/orm/models/index.d.ts +0 -2
  29. package/api/orm/models/index.js +2 -6
  30. package/api/orm/mutation/index.d.ts +30 -5
  31. package/api/orm/mutation/index.js +24 -0
  32. package/api/orm/query/index.d.ts +5 -0
  33. package/api/orm/query/index.js +7 -0
  34. package/api/schema-types.d.ts +39 -273
  35. package/api/types.d.ts +3 -28
  36. package/auth/orm/input-types.d.ts +5 -29
  37. package/auth/orm/mutation/index.d.ts +5 -4
  38. package/auth/schema-types.d.ts +4 -16
  39. package/compute/orm/input-types.d.ts +50 -6
  40. package/compute/orm/mutation/index.d.ts +5 -4
  41. package/compute/schema-types.d.ts +29 -5
  42. package/compute/types.d.ts +4 -0
  43. package/config/orm/input-types.d.ts +4 -4
  44. package/config/orm/mutation/index.d.ts +5 -4
  45. package/config/schema-types.d.ts +3 -3
  46. package/esm/admin/orm/input-types.d.ts +4 -4
  47. package/esm/admin/orm/mutation/index.d.ts +5 -4
  48. package/esm/admin/schema-types.d.ts +3 -3
  49. package/esm/agent/orm/input-types.d.ts +4 -4
  50. package/esm/agent/orm/mutation/index.d.ts +5 -4
  51. package/esm/agent/schema-types.d.ts +3 -3
  52. package/esm/api/hooks/index.d.ts +1 -1
  53. package/esm/api/hooks/index.js +1 -1
  54. package/esm/api/hooks/invalidation.d.ts +0 -12
  55. package/esm/api/hooks/invalidation.js +1 -33
  56. package/esm/api/hooks/mutation-keys.d.ts +4 -24
  57. package/esm/api/hooks/mutation-keys.js +6 -14
  58. package/esm/api/hooks/mutations/index.d.ts +2 -6
  59. package/esm/api/hooks/mutations/index.js +2 -6
  60. package/esm/api/hooks/mutations/useCreateFunctionFromSourceMutation.d.ts +20 -0
  61. package/esm/api/hooks/mutations/useCreateFunctionFromSourceMutation.js +23 -0
  62. package/esm/api/hooks/mutations/useUpdateFunctionFromSourceMutation.d.ts +20 -0
  63. package/esm/api/hooks/mutations/useUpdateFunctionFromSourceMutation.js +23 -0
  64. package/esm/api/hooks/queries/index.d.ts +1 -4
  65. package/esm/api/hooks/queries/index.js +1 -4
  66. package/esm/api/hooks/queries/useEmailSharedAccountQuery.d.ts +45 -0
  67. package/esm/api/hooks/queries/useEmailSharedAccountQuery.js +43 -0
  68. package/esm/api/hooks/query-keys.d.ts +2 -28
  69. package/esm/api/hooks/query-keys.js +1 -16
  70. package/esm/api/orm/index.d.ts +15 -4
  71. package/esm/api/orm/index.js +0 -4
  72. package/esm/api/orm/input-types.d.ts +96 -439
  73. package/esm/api/orm/models/index.d.ts +0 -2
  74. package/esm/api/orm/models/index.js +0 -2
  75. package/esm/api/orm/mutation/index.d.ts +30 -5
  76. package/esm/api/orm/mutation/index.js +24 -0
  77. package/esm/api/orm/query/index.d.ts +5 -0
  78. package/esm/api/orm/query/index.js +7 -0
  79. package/esm/api/schema-types.d.ts +39 -273
  80. package/esm/api/types.d.ts +3 -28
  81. package/esm/auth/orm/input-types.d.ts +5 -29
  82. package/esm/auth/orm/mutation/index.d.ts +5 -4
  83. package/esm/auth/schema-types.d.ts +4 -16
  84. package/esm/compute/orm/input-types.d.ts +50 -6
  85. package/esm/compute/orm/mutation/index.d.ts +5 -4
  86. package/esm/compute/schema-types.d.ts +29 -5
  87. package/esm/compute/types.d.ts +4 -0
  88. package/esm/config/orm/input-types.d.ts +4 -4
  89. package/esm/config/orm/mutation/index.d.ts +5 -4
  90. package/esm/config/schema-types.d.ts +3 -3
  91. package/esm/infra/orm/input-types.d.ts +4 -4
  92. package/esm/infra/orm/mutation/index.d.ts +5 -4
  93. package/esm/infra/schema-types.d.ts +3 -3
  94. package/esm/modules/orm/input-types.d.ts +72 -21
  95. package/esm/modules/orm/mutation/index.d.ts +6 -5
  96. package/esm/modules/schema-types.d.ts +41 -15
  97. package/esm/modules/types.d.ts +8 -1
  98. package/esm/objects/orm/input-types.d.ts +4 -4
  99. package/esm/objects/orm/mutation/index.d.ts +5 -4
  100. package/esm/objects/schema-types.d.ts +3 -3
  101. package/esm/remote/orm/input-types.d.ts +4 -4
  102. package/esm/remote/orm/mutation/index.d.ts +5 -4
  103. package/esm/remote/schema-types.d.ts +3 -3
  104. package/esm/storage/orm/input-types.d.ts +34 -6
  105. package/esm/storage/orm/mutation/index.d.ts +7 -6
  106. package/esm/storage/schema-types.d.ts +17 -5
  107. package/esm/storage/types.d.ts +4 -0
  108. package/esm/usage/orm/input-types.d.ts +4 -4
  109. package/esm/usage/orm/mutation/index.d.ts +5 -4
  110. package/esm/usage/schema-types.d.ts +3 -3
  111. package/infra/orm/input-types.d.ts +4 -4
  112. package/infra/orm/mutation/index.d.ts +5 -4
  113. package/infra/schema-types.d.ts +3 -3
  114. package/modules/orm/input-types.d.ts +72 -21
  115. package/modules/orm/mutation/index.d.ts +6 -5
  116. package/modules/schema-types.d.ts +41 -15
  117. package/modules/types.d.ts +8 -1
  118. package/objects/orm/input-types.d.ts +4 -4
  119. package/objects/orm/mutation/index.d.ts +5 -4
  120. package/objects/schema-types.d.ts +3 -3
  121. package/package.json +4 -4
  122. package/remote/orm/input-types.d.ts +4 -4
  123. package/remote/orm/mutation/index.d.ts +5 -4
  124. package/remote/schema-types.d.ts +3 -3
  125. package/storage/orm/input-types.d.ts +34 -6
  126. package/storage/orm/mutation/index.d.ts +7 -6
  127. package/storage/schema-types.d.ts +17 -5
  128. package/storage/types.d.ts +4 -0
  129. package/usage/orm/input-types.d.ts +4 -4
  130. package/usage/orm/mutation/index.d.ts +5 -4
  131. package/usage/schema-types.d.ts +3 -3
  132. package/api/hooks/mutations/useCreateHostnameBindingMutation.d.ts +0 -34
  133. package/api/hooks/mutations/useCreateRouteBindingMutation.d.ts +0 -34
  134. package/api/hooks/mutations/useCreateRouteBindingMutation.js +0 -34
  135. package/api/hooks/mutations/useDeleteHostnameBindingMutation.d.ts +0 -38
  136. package/api/hooks/mutations/useDeleteHostnameBindingMutation.js +0 -39
  137. package/api/hooks/mutations/useDeleteRouteBindingMutation.d.ts +0 -38
  138. package/api/hooks/mutations/useDeleteRouteBindingMutation.js +0 -39
  139. package/api/hooks/mutations/useUpdateHostnameBindingMutation.d.ts +0 -40
  140. package/api/hooks/mutations/useUpdateHostnameBindingMutation.js +0 -40
  141. package/api/hooks/mutations/useUpdateRouteBindingMutation.d.ts +0 -40
  142. package/api/hooks/mutations/useUpdateRouteBindingMutation.js +0 -40
  143. package/api/hooks/queries/useHostnameBindingQuery.d.ts +0 -65
  144. package/api/hooks/queries/useHostnameBindingQuery.js +0 -53
  145. package/api/hooks/queries/useHostnameBindingsQuery.d.ts +0 -69
  146. package/api/hooks/queries/useHostnameBindingsQuery.js +0 -38
  147. package/api/hooks/queries/useRouteBindingQuery.d.ts +0 -65
  148. package/api/hooks/queries/useRouteBindingQuery.js +0 -53
  149. package/api/hooks/queries/useRouteBindingsQuery.d.ts +0 -69
  150. package/api/hooks/queries/useRouteBindingsQuery.js +0 -38
  151. package/api/orm/models/hostnameBinding.d.ts +0 -54
  152. package/api/orm/models/hostnameBinding.js +0 -104
  153. package/api/orm/models/routeBinding.d.ts +0 -54
  154. package/api/orm/models/routeBinding.js +0 -104
  155. package/esm/api/hooks/mutations/useCreateHostnameBindingMutation.d.ts +0 -34
  156. package/esm/api/hooks/mutations/useCreateHostnameBindingMutation.js +0 -31
  157. package/esm/api/hooks/mutations/useCreateRouteBindingMutation.d.ts +0 -34
  158. package/esm/api/hooks/mutations/useCreateRouteBindingMutation.js +0 -31
  159. package/esm/api/hooks/mutations/useDeleteHostnameBindingMutation.d.ts +0 -38
  160. package/esm/api/hooks/mutations/useDeleteHostnameBindingMutation.js +0 -36
  161. package/esm/api/hooks/mutations/useDeleteRouteBindingMutation.d.ts +0 -38
  162. package/esm/api/hooks/mutations/useDeleteRouteBindingMutation.js +0 -36
  163. package/esm/api/hooks/mutations/useUpdateHostnameBindingMutation.d.ts +0 -40
  164. package/esm/api/hooks/mutations/useUpdateHostnameBindingMutation.js +0 -37
  165. package/esm/api/hooks/mutations/useUpdateRouteBindingMutation.d.ts +0 -40
  166. package/esm/api/hooks/mutations/useUpdateRouteBindingMutation.js +0 -37
  167. package/esm/api/hooks/queries/useHostnameBindingQuery.d.ts +0 -65
  168. package/esm/api/hooks/queries/useHostnameBindingQuery.js +0 -47
  169. package/esm/api/hooks/queries/useHostnameBindingsQuery.d.ts +0 -69
  170. package/esm/api/hooks/queries/useHostnameBindingsQuery.js +0 -32
  171. package/esm/api/hooks/queries/useRouteBindingQuery.d.ts +0 -65
  172. package/esm/api/hooks/queries/useRouteBindingQuery.js +0 -47
  173. package/esm/api/hooks/queries/useRouteBindingsQuery.d.ts +0 -69
  174. package/esm/api/hooks/queries/useRouteBindingsQuery.js +0 -32
  175. package/esm/api/orm/models/hostnameBinding.d.ts +0 -54
  176. package/esm/api/orm/models/hostnameBinding.js +0 -100
  177. package/esm/api/orm/models/routeBinding.d.ts +0 -54
  178. package/esm/api/orm/models/routeBinding.js +0 -100
@@ -1,37 +0,0 @@
1
- /**
2
- * Compiled hostname index maintained by domain sync triggers; read only through the resolver
3
- * @generated by @constructive-io/graphql-codegen
4
- * DO NOT EDIT - changes will be overwritten
5
- */
6
- import { useMutation, useQueryClient } from '@tanstack/react-query';
7
- import { getClient } from '../client';
8
- import { buildSelectionArgs } from '../selection';
9
- import { hostnameBindingKeys } from '../query-keys';
10
- import { hostnameBindingMutationKeys } from '../mutation-keys';
11
- export function useUpdateHostnameBindingMutation(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: hostnameBindingMutationKeys.all,
18
- mutationFn: ({ id, hostnameBindingPatch, }) => getClient()
19
- .hostnameBinding.update({
20
- where: {
21
- id,
22
- },
23
- data: hostnameBindingPatch,
24
- select: args.select,
25
- })
26
- .unwrap(),
27
- onSuccess: (_, variables) => {
28
- queryClient.invalidateQueries({
29
- queryKey: hostnameBindingKeys.detail(variables.id),
30
- });
31
- queryClient.invalidateQueries({
32
- queryKey: hostnameBindingKeys.lists(),
33
- });
34
- },
35
- ...mutationOptions,
36
- });
37
- }
@@ -1,40 +0,0 @@
1
- /**
2
- * Compiled route precedence index maintained by route sync triggers; carries typed target ids only, read through the resolver
3
- * @generated by @constructive-io/graphql-codegen
4
- * DO NOT EDIT - changes will be overwritten
5
- */
6
- import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
7
- import type { RouteBindingSelect, RouteBindingWithRelations, RouteBindingPatch } from '../../orm/input-types';
8
- import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
9
- export type { RouteBindingSelect, RouteBindingWithRelations, RouteBindingPatch, } from '../../orm/input-types';
10
- /**
11
- * Compiled route precedence index maintained by route sync triggers; carries typed target ids only, read through the resolver
12
- *
13
- * @example
14
- * ```tsx
15
- * const { mutate, isPending } = useUpdateRouteBindingMutation({
16
- * selection: { fields: { id: true, name: true } },
17
- * });
18
- *
19
- * mutate({ id: 'value-here', routeBindingPatch: { name: 'Updated' } });
20
- * ```
21
- */
22
- export declare function useUpdateRouteBindingMutation<S extends RouteBindingSelect>(params: {
23
- selection: {
24
- fields: S & RouteBindingSelect;
25
- } & HookStrictSelect<NoInfer<S>, RouteBindingSelect>;
26
- } & Omit<UseMutationOptions<{
27
- updateRouteBinding: {
28
- routeBinding: InferSelectResult<RouteBindingWithRelations, S>;
29
- };
30
- }, Error, {
31
- id: string;
32
- routeBindingPatch: RouteBindingPatch;
33
- }>, 'mutationFn'>): UseMutationResult<{
34
- updateRouteBinding: {
35
- routeBinding: InferSelectResult<RouteBindingWithRelations, S>;
36
- };
37
- }, Error, {
38
- id: string;
39
- routeBindingPatch: RouteBindingPatch;
40
- }>;
@@ -1,37 +0,0 @@
1
- /**
2
- * Compiled route precedence index maintained by route sync triggers; carries typed target ids only, read through the resolver
3
- * @generated by @constructive-io/graphql-codegen
4
- * DO NOT EDIT - changes will be overwritten
5
- */
6
- import { useMutation, useQueryClient } from '@tanstack/react-query';
7
- import { getClient } from '../client';
8
- import { buildSelectionArgs } from '../selection';
9
- import { routeBindingKeys } from '../query-keys';
10
- import { routeBindingMutationKeys } from '../mutation-keys';
11
- export function useUpdateRouteBindingMutation(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: routeBindingMutationKeys.all,
18
- mutationFn: ({ id, routeBindingPatch }) => getClient()
19
- .routeBinding.update({
20
- where: {
21
- id,
22
- },
23
- data: routeBindingPatch,
24
- select: args.select,
25
- })
26
- .unwrap(),
27
- onSuccess: (_, variables) => {
28
- queryClient.invalidateQueries({
29
- queryKey: routeBindingKeys.detail(variables.id),
30
- });
31
- queryClient.invalidateQueries({
32
- queryKey: routeBindingKeys.lists(),
33
- });
34
- },
35
- ...mutationOptions,
36
- });
37
- }
@@ -1,65 +0,0 @@
1
- /**
2
- * Compiled hostname index maintained by domain sync triggers; read only through the resolver
3
- * @generated by @constructive-io/graphql-codegen
4
- * DO NOT EDIT - changes will be overwritten
5
- */
6
- import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
7
- import type { HostnameBindingSelect, HostnameBindingWithRelations } from '../../orm/input-types';
8
- import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
9
- export type { HostnameBindingSelect, HostnameBindingWithRelations } from '../../orm/input-types';
10
- /** Query key factory - re-exported from query-keys.ts */
11
- export declare const hostnameBindingQueryKey: (id: string | number) => readonly ["hostnamebinding", "detail", string | number];
12
- /**
13
- * Compiled hostname index maintained by domain sync triggers; read only through the resolver
14
- *
15
- * @example
16
- * ```tsx
17
- * const { data, isLoading } = useHostnameBindingQuery({
18
- * id: 'some-id',
19
- * selection: { fields: { id: true, name: true } },
20
- * });
21
- * ```
22
- */
23
- export declare function useHostnameBindingQuery<S extends HostnameBindingSelect, TData = {
24
- hostnameBinding: InferSelectResult<HostnameBindingWithRelations, S> | null;
25
- }>(params: {
26
- id: string;
27
- selection: {
28
- fields: S;
29
- } & HookStrictSelect<NoInfer<S>, HostnameBindingSelect>;
30
- } & Omit<UseQueryOptions<{
31
- hostnameBinding: InferSelectResult<HostnameBindingWithRelations, S> | null;
32
- }, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
33
- /**
34
- * Compiled hostname index maintained by domain sync triggers; read only through the resolver
35
- *
36
- * @example
37
- * ```ts
38
- * const data = await fetchHostnameBindingQuery({
39
- * id: 'some-id',
40
- * selection: { fields: { id: true } },
41
- * });
42
- * ```
43
- */
44
- export declare function fetchHostnameBindingQuery<S extends HostnameBindingSelect>(params: {
45
- id: string;
46
- selection: {
47
- fields: S;
48
- } & HookStrictSelect<NoInfer<S>, HostnameBindingSelect>;
49
- }): Promise<{
50
- hostnameBinding: InferSelectResult<HostnameBindingWithRelations, S> | null;
51
- }>;
52
- /**
53
- * Compiled hostname index maintained by domain sync triggers; read only through the resolver
54
- *
55
- * @example
56
- * ```ts
57
- * await prefetchHostnameBindingQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
58
- * ```
59
- */
60
- export declare function prefetchHostnameBindingQuery<S extends HostnameBindingSelect>(queryClient: QueryClient, params: {
61
- id: string;
62
- selection: {
63
- fields: S;
64
- } & HookStrictSelect<NoInfer<S>, HostnameBindingSelect>;
65
- }): Promise<void>;
@@ -1,47 +0,0 @@
1
- /**
2
- * Compiled hostname index maintained by domain sync triggers; read only through the resolver
3
- * @generated by @constructive-io/graphql-codegen
4
- * DO NOT EDIT - changes will be overwritten
5
- */
6
- import { useQuery } from '@tanstack/react-query';
7
- import { getClient } from '../client';
8
- import { buildSelectionArgs } from '../selection';
9
- import { hostnameBindingKeys } from '../query-keys';
10
- /** Query key factory - re-exported from query-keys.ts */
11
- export const hostnameBindingQueryKey = hostnameBindingKeys.detail;
12
- export function useHostnameBindingQuery(params) {
13
- const args = buildSelectionArgs(params.selection);
14
- const { selection: _selection, ...queryOptions } = params ?? {};
15
- void _selection;
16
- return useQuery({
17
- queryKey: hostnameBindingKeys.detail(params.id),
18
- queryFn: () => getClient()
19
- .hostnameBinding.findOne({
20
- id: params.id,
21
- select: args.select,
22
- })
23
- .unwrap(),
24
- ...queryOptions,
25
- });
26
- }
27
- export async function fetchHostnameBindingQuery(params) {
28
- const args = buildSelectionArgs(params.selection);
29
- return getClient()
30
- .hostnameBinding.findOne({
31
- id: params.id,
32
- select: args.select,
33
- })
34
- .unwrap();
35
- }
36
- export async function prefetchHostnameBindingQuery(queryClient, params) {
37
- const args = buildSelectionArgs(params.selection);
38
- await queryClient.prefetchQuery({
39
- queryKey: hostnameBindingKeys.detail(params.id),
40
- queryFn: () => getClient()
41
- .hostnameBinding.findOne({
42
- id: params.id,
43
- select: args.select,
44
- })
45
- .unwrap(),
46
- });
47
- }
@@ -1,69 +0,0 @@
1
- /**
2
- * Compiled hostname index maintained by domain sync triggers; read only through the resolver
3
- * @generated by @constructive-io/graphql-codegen
4
- * DO NOT EDIT - changes will be overwritten
5
- */
6
- import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
7
- import type { ListSelectionConfig } from '../selection';
8
- import type { HostnameBindingSelect, HostnameBindingWithRelations, HostnameBindingFilter, HostnameBindingOrderBy } from '../../orm/input-types';
9
- import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
10
- export type { HostnameBindingSelect, HostnameBindingWithRelations, HostnameBindingFilter, HostnameBindingOrderBy, } from '../../orm/input-types';
11
- /** Query key factory - re-exported from query-keys.ts */
12
- export declare const hostnameBindingsQueryKey: (variables?: object) => readonly ["hostnamebinding", "list", object];
13
- /**
14
- * Compiled hostname index maintained by domain sync triggers; read only through the resolver
15
- *
16
- * @example
17
- * ```tsx
18
- * const { data, isLoading } = useHostnameBindingsQuery({
19
- * selection: {
20
- * fields: { id: true, name: true },
21
- * where: { name: { equalTo: "example" } },
22
- * orderBy: ['CREATED_AT_DESC'],
23
- * first: 10,
24
- * },
25
- * });
26
- * ```
27
- */
28
- export declare function useHostnameBindingsQuery<S extends HostnameBindingSelect, TData = {
29
- hostnameBindings: ConnectionResult<InferSelectResult<HostnameBindingWithRelations, S>>;
30
- }>(params: {
31
- selection: {
32
- fields: S;
33
- } & Omit<ListSelectionConfig<S, HostnameBindingFilter, HostnameBindingOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, HostnameBindingSelect>;
34
- } & Omit<UseQueryOptions<{
35
- hostnameBindings: ConnectionResult<InferSelectResult<HostnameBindingWithRelations, S>>;
36
- }, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
37
- /**
38
- * Compiled hostname index maintained by domain sync triggers; read only through the resolver
39
- *
40
- * @example
41
- * ```ts
42
- * const data = await fetchHostnameBindingsQuery({
43
- * selection: {
44
- * fields: { id: true },
45
- * first: 10,
46
- * },
47
- * });
48
- * ```
49
- */
50
- export declare function fetchHostnameBindingsQuery<S extends HostnameBindingSelect>(params: {
51
- selection: {
52
- fields: S;
53
- } & Omit<ListSelectionConfig<S, HostnameBindingFilter, HostnameBindingOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, HostnameBindingSelect>;
54
- }): Promise<{
55
- hostnameBindings: ConnectionResult<InferSelectResult<HostnameBindingWithRelations, S>>;
56
- }>;
57
- /**
58
- * Compiled hostname index maintained by domain sync triggers; read only through the resolver
59
- *
60
- * @example
61
- * ```ts
62
- * await prefetchHostnameBindingsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
63
- * ```
64
- */
65
- export declare function prefetchHostnameBindingsQuery<S extends HostnameBindingSelect>(queryClient: QueryClient, params: {
66
- selection: {
67
- fields: S;
68
- } & Omit<ListSelectionConfig<S, HostnameBindingFilter, HostnameBindingOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, HostnameBindingSelect>;
69
- }): Promise<void>;
@@ -1,32 +0,0 @@
1
- /**
2
- * Compiled hostname index maintained by domain sync triggers; read only through the resolver
3
- * @generated by @constructive-io/graphql-codegen
4
- * DO NOT EDIT - changes will be overwritten
5
- */
6
- import { useQuery } from '@tanstack/react-query';
7
- import { getClient } from '../client';
8
- import { buildListSelectionArgs } from '../selection';
9
- import { hostnameBindingKeys } from '../query-keys';
10
- /** Query key factory - re-exported from query-keys.ts */
11
- export const hostnameBindingsQueryKey = hostnameBindingKeys.list;
12
- export function useHostnameBindingsQuery(params) {
13
- const args = buildListSelectionArgs(params.selection);
14
- const { selection: _selection, ...queryOptions } = params ?? {};
15
- void _selection;
16
- return useQuery({
17
- queryKey: hostnameBindingKeys.list(args),
18
- queryFn: () => getClient().hostnameBinding.findMany(args).unwrap(),
19
- ...queryOptions,
20
- });
21
- }
22
- export async function fetchHostnameBindingsQuery(params) {
23
- const args = buildListSelectionArgs(params.selection);
24
- return getClient().hostnameBinding.findMany(args).unwrap();
25
- }
26
- export async function prefetchHostnameBindingsQuery(queryClient, params) {
27
- const args = buildListSelectionArgs(params.selection);
28
- await queryClient.prefetchQuery({
29
- queryKey: hostnameBindingKeys.list(args),
30
- queryFn: () => getClient().hostnameBinding.findMany(args).unwrap(),
31
- });
32
- }
@@ -1,65 +0,0 @@
1
- /**
2
- * Compiled route precedence index maintained by route sync triggers; carries typed target ids only, read through the resolver
3
- * @generated by @constructive-io/graphql-codegen
4
- * DO NOT EDIT - changes will be overwritten
5
- */
6
- import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
7
- import type { RouteBindingSelect, RouteBindingWithRelations } from '../../orm/input-types';
8
- import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
9
- export type { RouteBindingSelect, RouteBindingWithRelations } from '../../orm/input-types';
10
- /** Query key factory - re-exported from query-keys.ts */
11
- export declare const routeBindingQueryKey: (id: string | number) => readonly ["routebinding", "detail", string | number];
12
- /**
13
- * Compiled route precedence index maintained by route sync triggers; carries typed target ids only, read through the resolver
14
- *
15
- * @example
16
- * ```tsx
17
- * const { data, isLoading } = useRouteBindingQuery({
18
- * id: 'some-id',
19
- * selection: { fields: { id: true, name: true } },
20
- * });
21
- * ```
22
- */
23
- export declare function useRouteBindingQuery<S extends RouteBindingSelect, TData = {
24
- routeBinding: InferSelectResult<RouteBindingWithRelations, S> | null;
25
- }>(params: {
26
- id: string;
27
- selection: {
28
- fields: S;
29
- } & HookStrictSelect<NoInfer<S>, RouteBindingSelect>;
30
- } & Omit<UseQueryOptions<{
31
- routeBinding: InferSelectResult<RouteBindingWithRelations, S> | null;
32
- }, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
33
- /**
34
- * Compiled route precedence index maintained by route sync triggers; carries typed target ids only, read through the resolver
35
- *
36
- * @example
37
- * ```ts
38
- * const data = await fetchRouteBindingQuery({
39
- * id: 'some-id',
40
- * selection: { fields: { id: true } },
41
- * });
42
- * ```
43
- */
44
- export declare function fetchRouteBindingQuery<S extends RouteBindingSelect>(params: {
45
- id: string;
46
- selection: {
47
- fields: S;
48
- } & HookStrictSelect<NoInfer<S>, RouteBindingSelect>;
49
- }): Promise<{
50
- routeBinding: InferSelectResult<RouteBindingWithRelations, S> | null;
51
- }>;
52
- /**
53
- * Compiled route precedence index maintained by route sync triggers; carries typed target ids only, read through the resolver
54
- *
55
- * @example
56
- * ```ts
57
- * await prefetchRouteBindingQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
58
- * ```
59
- */
60
- export declare function prefetchRouteBindingQuery<S extends RouteBindingSelect>(queryClient: QueryClient, params: {
61
- id: string;
62
- selection: {
63
- fields: S;
64
- } & HookStrictSelect<NoInfer<S>, RouteBindingSelect>;
65
- }): Promise<void>;
@@ -1,47 +0,0 @@
1
- /**
2
- * Compiled route precedence index maintained by route sync triggers; carries typed target ids only, read through the resolver
3
- * @generated by @constructive-io/graphql-codegen
4
- * DO NOT EDIT - changes will be overwritten
5
- */
6
- import { useQuery } from '@tanstack/react-query';
7
- import { getClient } from '../client';
8
- import { buildSelectionArgs } from '../selection';
9
- import { routeBindingKeys } from '../query-keys';
10
- /** Query key factory - re-exported from query-keys.ts */
11
- export const routeBindingQueryKey = routeBindingKeys.detail;
12
- export function useRouteBindingQuery(params) {
13
- const args = buildSelectionArgs(params.selection);
14
- const { selection: _selection, ...queryOptions } = params ?? {};
15
- void _selection;
16
- return useQuery({
17
- queryKey: routeBindingKeys.detail(params.id),
18
- queryFn: () => getClient()
19
- .routeBinding.findOne({
20
- id: params.id,
21
- select: args.select,
22
- })
23
- .unwrap(),
24
- ...queryOptions,
25
- });
26
- }
27
- export async function fetchRouteBindingQuery(params) {
28
- const args = buildSelectionArgs(params.selection);
29
- return getClient()
30
- .routeBinding.findOne({
31
- id: params.id,
32
- select: args.select,
33
- })
34
- .unwrap();
35
- }
36
- export async function prefetchRouteBindingQuery(queryClient, params) {
37
- const args = buildSelectionArgs(params.selection);
38
- await queryClient.prefetchQuery({
39
- queryKey: routeBindingKeys.detail(params.id),
40
- queryFn: () => getClient()
41
- .routeBinding.findOne({
42
- id: params.id,
43
- select: args.select,
44
- })
45
- .unwrap(),
46
- });
47
- }
@@ -1,69 +0,0 @@
1
- /**
2
- * Compiled route precedence index maintained by route sync triggers; carries typed target ids only, read through the resolver
3
- * @generated by @constructive-io/graphql-codegen
4
- * DO NOT EDIT - changes will be overwritten
5
- */
6
- import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
7
- import type { ListSelectionConfig } from '../selection';
8
- import type { RouteBindingSelect, RouteBindingWithRelations, RouteBindingFilter, RouteBindingOrderBy } from '../../orm/input-types';
9
- import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
10
- export type { RouteBindingSelect, RouteBindingWithRelations, RouteBindingFilter, RouteBindingOrderBy, } from '../../orm/input-types';
11
- /** Query key factory - re-exported from query-keys.ts */
12
- export declare const routeBindingsQueryKey: (variables?: object) => readonly ["routebinding", "list", object];
13
- /**
14
- * Compiled route precedence index maintained by route sync triggers; carries typed target ids only, read through the resolver
15
- *
16
- * @example
17
- * ```tsx
18
- * const { data, isLoading } = useRouteBindingsQuery({
19
- * selection: {
20
- * fields: { id: true, name: true },
21
- * where: { name: { equalTo: "example" } },
22
- * orderBy: ['CREATED_AT_DESC'],
23
- * first: 10,
24
- * },
25
- * });
26
- * ```
27
- */
28
- export declare function useRouteBindingsQuery<S extends RouteBindingSelect, TData = {
29
- routeBindings: ConnectionResult<InferSelectResult<RouteBindingWithRelations, S>>;
30
- }>(params: {
31
- selection: {
32
- fields: S;
33
- } & Omit<ListSelectionConfig<S, RouteBindingFilter, RouteBindingOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, RouteBindingSelect>;
34
- } & Omit<UseQueryOptions<{
35
- routeBindings: ConnectionResult<InferSelectResult<RouteBindingWithRelations, S>>;
36
- }, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
37
- /**
38
- * Compiled route precedence index maintained by route sync triggers; carries typed target ids only, read through the resolver
39
- *
40
- * @example
41
- * ```ts
42
- * const data = await fetchRouteBindingsQuery({
43
- * selection: {
44
- * fields: { id: true },
45
- * first: 10,
46
- * },
47
- * });
48
- * ```
49
- */
50
- export declare function fetchRouteBindingsQuery<S extends RouteBindingSelect>(params: {
51
- selection: {
52
- fields: S;
53
- } & Omit<ListSelectionConfig<S, RouteBindingFilter, RouteBindingOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, RouteBindingSelect>;
54
- }): Promise<{
55
- routeBindings: ConnectionResult<InferSelectResult<RouteBindingWithRelations, S>>;
56
- }>;
57
- /**
58
- * Compiled route precedence index maintained by route sync triggers; carries typed target ids only, read through the resolver
59
- *
60
- * @example
61
- * ```ts
62
- * await prefetchRouteBindingsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
63
- * ```
64
- */
65
- export declare function prefetchRouteBindingsQuery<S extends RouteBindingSelect>(queryClient: QueryClient, params: {
66
- selection: {
67
- fields: S;
68
- } & Omit<ListSelectionConfig<S, RouteBindingFilter, RouteBindingOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, RouteBindingSelect>;
69
- }): Promise<void>;
@@ -1,32 +0,0 @@
1
- /**
2
- * Compiled route precedence index maintained by route sync triggers; carries typed target ids only, read through the resolver
3
- * @generated by @constructive-io/graphql-codegen
4
- * DO NOT EDIT - changes will be overwritten
5
- */
6
- import { useQuery } from '@tanstack/react-query';
7
- import { getClient } from '../client';
8
- import { buildListSelectionArgs } from '../selection';
9
- import { routeBindingKeys } from '../query-keys';
10
- /** Query key factory - re-exported from query-keys.ts */
11
- export const routeBindingsQueryKey = routeBindingKeys.list;
12
- export function useRouteBindingsQuery(params) {
13
- const args = buildListSelectionArgs(params.selection);
14
- const { selection: _selection, ...queryOptions } = params ?? {};
15
- void _selection;
16
- return useQuery({
17
- queryKey: routeBindingKeys.list(args),
18
- queryFn: () => getClient().routeBinding.findMany(args).unwrap(),
19
- ...queryOptions,
20
- });
21
- }
22
- export async function fetchRouteBindingsQuery(params) {
23
- const args = buildListSelectionArgs(params.selection);
24
- return getClient().routeBinding.findMany(args).unwrap();
25
- }
26
- export async function prefetchRouteBindingsQuery(queryClient, params) {
27
- const args = buildListSelectionArgs(params.selection);
28
- await queryClient.prefetchQuery({
29
- queryKey: routeBindingKeys.list(args),
30
- queryFn: () => getClient().routeBinding.findMany(args).unwrap(),
31
- });
32
- }
@@ -1,54 +0,0 @@
1
- /**
2
- * HostnameBinding model for ORM client
3
- * @generated by @constructive-io/graphql-codegen
4
- * DO NOT EDIT - changes will be overwritten
5
- */
6
- import { OrmClient } from '../client';
7
- import { QueryBuilder } from '../query-builder';
8
- import type { ConnectionResult, FindManyArgs, FindFirstArgs, CreateArgs, UpdateArgs, DeleteArgs, InferSelectResult, StrictSelect } from '../select-types';
9
- import type { HostnameBindingWithRelations, HostnameBindingSelect, HostnameBindingFilter, HostnameBindingOrderBy, CreateHostnameBindingInput, HostnameBindingPatch } from '../input-types';
10
- export declare class HostnameBindingModel {
11
- private client;
12
- constructor(client: OrmClient);
13
- findMany<S extends HostnameBindingSelect>(args: FindManyArgs<S, HostnameBindingFilter, HostnameBindingOrderBy> & {
14
- select: S;
15
- } & StrictSelect<S, HostnameBindingSelect>): QueryBuilder<{
16
- hostnameBindings: ConnectionResult<InferSelectResult<HostnameBindingWithRelations, S>>;
17
- }>;
18
- findFirst<S extends HostnameBindingSelect>(args: FindFirstArgs<S, HostnameBindingFilter, HostnameBindingOrderBy> & {
19
- select: S;
20
- } & StrictSelect<S, HostnameBindingSelect>): QueryBuilder<{
21
- hostnameBinding: InferSelectResult<HostnameBindingWithRelations, S> | null;
22
- }>;
23
- findOne<S extends HostnameBindingSelect>(args: {
24
- id: string;
25
- select: S;
26
- } & StrictSelect<S, HostnameBindingSelect>): QueryBuilder<{
27
- hostnameBinding: InferSelectResult<HostnameBindingWithRelations, S> | null;
28
- }>;
29
- create<S extends HostnameBindingSelect>(args: CreateArgs<S, CreateHostnameBindingInput['hostnameBinding']> & {
30
- select: S;
31
- } & StrictSelect<S, HostnameBindingSelect>): QueryBuilder<{
32
- createHostnameBinding: {
33
- hostnameBinding: InferSelectResult<HostnameBindingWithRelations, S>;
34
- };
35
- }>;
36
- update<S extends HostnameBindingSelect>(args: UpdateArgs<S, {
37
- id: string;
38
- }, HostnameBindingPatch> & {
39
- select: S;
40
- } & StrictSelect<S, HostnameBindingSelect>): QueryBuilder<{
41
- updateHostnameBinding: {
42
- hostnameBinding: InferSelectResult<HostnameBindingWithRelations, S>;
43
- };
44
- }>;
45
- delete<S extends HostnameBindingSelect>(args: DeleteArgs<{
46
- id: string;
47
- }, S> & {
48
- select: S;
49
- } & StrictSelect<S, HostnameBindingSelect>): QueryBuilder<{
50
- deleteHostnameBinding: {
51
- hostnameBinding: InferSelectResult<HostnameBindingWithRelations, S>;
52
- };
53
- }>;
54
- }