@constructive-io/react 0.10.16 → 0.10.18

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 (161) hide show
  1. package/esm/public/hooks/index.d.ts +1 -1
  2. package/esm/public/hooks/index.js +1 -1
  3. package/esm/public/hooks/invalidation.d.ts +24 -12
  4. package/esm/public/hooks/invalidation.js +65 -33
  5. package/esm/public/hooks/mutation-keys.d.ts +64 -30
  6. package/esm/public/hooks/mutation-keys.js +55 -23
  7. package/esm/public/hooks/mutations/index.d.ts +16 -5
  8. package/esm/public/hooks/mutations/index.js +16 -5
  9. package/esm/public/hooks/mutations/useCreateBlueprintConstructionMutation.d.ts +34 -0
  10. package/esm/public/hooks/mutations/useCreateBlueprintConstructionMutation.js +31 -0
  11. package/esm/public/hooks/mutations/useCreateBlueprintMutation.d.ts +2 -2
  12. package/esm/public/hooks/mutations/useCreateBlueprintMutation.js +1 -1
  13. package/esm/public/hooks/mutations/useCreateSecureTableProvisionMutation.d.ts +2 -2
  14. package/esm/public/hooks/mutations/useCreateSecureTableProvisionMutation.js +1 -1
  15. package/esm/public/hooks/mutations/useCreateStorageModuleMutation.d.ts +34 -0
  16. package/esm/public/hooks/mutations/useCreateStorageModuleMutation.js +31 -0
  17. package/esm/public/hooks/mutations/useDeleteBlueprintConstructionMutation.d.ts +38 -0
  18. package/esm/public/hooks/mutations/useDeleteBlueprintConstructionMutation.js +36 -0
  19. package/esm/public/hooks/mutations/useDeleteBlueprintMutation.d.ts +2 -2
  20. package/esm/public/hooks/mutations/useDeleteBlueprintMutation.js +1 -1
  21. package/esm/public/hooks/mutations/useDeleteSecureTableProvisionMutation.d.ts +2 -2
  22. package/esm/public/hooks/mutations/useDeleteSecureTableProvisionMutation.js +1 -1
  23. package/esm/public/hooks/mutations/useDeleteStorageModuleMutation.d.ts +38 -0
  24. package/esm/public/hooks/mutations/useDeleteStorageModuleMutation.js +36 -0
  25. package/esm/public/hooks/mutations/useProvisionFullTextSearchMutation.d.ts +20 -0
  26. package/esm/public/hooks/mutations/useProvisionFullTextSearchMutation.js +23 -0
  27. package/esm/public/hooks/mutations/useProvisionIndexMutation.d.ts +20 -0
  28. package/esm/public/hooks/mutations/useProvisionIndexMutation.js +23 -0
  29. package/esm/public/hooks/mutations/useProvisionRelationMutation.d.ts +20 -0
  30. package/esm/public/hooks/mutations/useProvisionRelationMutation.js +23 -0
  31. package/esm/public/hooks/mutations/useProvisionTableMutation.d.ts +20 -0
  32. package/esm/public/hooks/mutations/useProvisionTableMutation.js +23 -0
  33. package/esm/public/hooks/mutations/useProvisionUniqueConstraintMutation.d.ts +20 -0
  34. package/esm/public/hooks/mutations/useProvisionUniqueConstraintMutation.js +23 -0
  35. package/esm/public/hooks/mutations/useUpdateBlueprintConstructionMutation.d.ts +40 -0
  36. package/esm/public/hooks/mutations/useUpdateBlueprintConstructionMutation.js +37 -0
  37. package/esm/public/hooks/mutations/useUpdateBlueprintMutation.d.ts +2 -2
  38. package/esm/public/hooks/mutations/useUpdateBlueprintMutation.js +1 -1
  39. package/esm/public/hooks/mutations/useUpdateSecureTableProvisionMutation.d.ts +2 -2
  40. package/esm/public/hooks/mutations/useUpdateSecureTableProvisionMutation.js +1 -1
  41. package/esm/public/hooks/mutations/useUpdateStorageModuleMutation.d.ts +40 -0
  42. package/esm/public/hooks/mutations/useUpdateStorageModuleMutation.js +37 -0
  43. package/esm/public/hooks/queries/index.d.ts +8 -3
  44. package/esm/public/hooks/queries/index.js +8 -3
  45. package/esm/public/hooks/queries/useBlueprintConstructionQuery.d.ts +65 -0
  46. package/esm/public/hooks/queries/useBlueprintConstructionQuery.js +47 -0
  47. package/esm/public/hooks/queries/useBlueprintConstructionsQuery.d.ts +69 -0
  48. package/esm/public/hooks/queries/useBlueprintConstructionsQuery.js +32 -0
  49. package/esm/public/hooks/queries/useBlueprintQuery.d.ts +4 -4
  50. package/esm/public/hooks/queries/useBlueprintQuery.js +1 -1
  51. package/esm/public/hooks/queries/useBlueprintsQuery.d.ts +4 -4
  52. package/esm/public/hooks/queries/useBlueprintsQuery.js +1 -1
  53. package/esm/public/hooks/queries/useResolveBlueprintTableQuery.d.ts +53 -0
  54. package/esm/public/hooks/queries/useResolveBlueprintTableQuery.js +47 -0
  55. package/esm/public/hooks/queries/useSecureTableProvisionQuery.d.ts +4 -4
  56. package/esm/public/hooks/queries/useSecureTableProvisionQuery.js +1 -1
  57. package/esm/public/hooks/queries/useSecureTableProvisionsQuery.d.ts +4 -4
  58. package/esm/public/hooks/queries/useSecureTableProvisionsQuery.js +1 -1
  59. package/esm/public/hooks/queries/useStorageModuleQuery.d.ts +65 -0
  60. package/esm/public/hooks/queries/useStorageModuleQuery.js +47 -0
  61. package/esm/public/hooks/queries/useStorageModulesQuery.d.ts +69 -0
  62. package/esm/public/hooks/queries/useStorageModulesQuery.js +32 -0
  63. package/esm/public/hooks/query-keys.d.ts +58 -28
  64. package/esm/public/hooks/query-keys.js +33 -16
  65. package/esm/public/orm/index.d.ts +53 -19
  66. package/esm/public/orm/index.js +8 -4
  67. package/esm/public/orm/input-types.d.ts +886 -249
  68. package/esm/public/orm/input-types.js +5 -0
  69. package/esm/public/orm/models/blueprintConstruction.d.ts +56 -0
  70. package/esm/public/orm/models/blueprintConstruction.js +96 -0
  71. package/esm/public/orm/models/index.d.ts +4 -2
  72. package/esm/public/orm/models/index.js +4 -2
  73. package/esm/public/orm/models/storageModule.d.ts +56 -0
  74. package/esm/public/orm/models/storageModule.js +96 -0
  75. package/esm/public/orm/mutation/index.d.ts +86 -26
  76. package/esm/public/orm/mutation/index.js +96 -36
  77. package/esm/public/orm/query/index.d.ts +16 -0
  78. package/esm/public/orm/query/index.js +28 -0
  79. package/esm/public/schema-types.d.ts +990 -645
  80. package/esm/public/types.d.ts +42 -18
  81. package/package.json +3 -3
  82. package/public/hooks/index.d.ts +1 -1
  83. package/public/hooks/index.js +1 -1
  84. package/public/hooks/invalidation.d.ts +24 -12
  85. package/public/hooks/invalidation.js +64 -32
  86. package/public/hooks/mutation-keys.d.ts +64 -30
  87. package/public/hooks/mutation-keys.js +58 -26
  88. package/public/hooks/mutations/index.d.ts +16 -5
  89. package/public/hooks/mutations/index.js +16 -5
  90. package/public/hooks/mutations/useCreateBlueprintConstructionMutation.d.ts +34 -0
  91. package/public/hooks/mutations/useCreateBlueprintConstructionMutation.js +34 -0
  92. package/public/hooks/mutations/useCreateBlueprintMutation.d.ts +2 -2
  93. package/public/hooks/mutations/useCreateBlueprintMutation.js +1 -1
  94. package/public/hooks/mutations/useCreateSecureTableProvisionMutation.d.ts +2 -2
  95. package/public/hooks/mutations/useCreateSecureTableProvisionMutation.js +1 -1
  96. package/public/hooks/mutations/useCreateStorageModuleMutation.d.ts +34 -0
  97. package/public/hooks/mutations/useCreateStorageModuleMutation.js +34 -0
  98. package/public/hooks/mutations/useDeleteBlueprintConstructionMutation.d.ts +38 -0
  99. package/public/hooks/mutations/useDeleteBlueprintConstructionMutation.js +39 -0
  100. package/public/hooks/mutations/useDeleteBlueprintMutation.d.ts +2 -2
  101. package/public/hooks/mutations/useDeleteBlueprintMutation.js +1 -1
  102. package/public/hooks/mutations/useDeleteSecureTableProvisionMutation.d.ts +2 -2
  103. package/public/hooks/mutations/useDeleteSecureTableProvisionMutation.js +1 -1
  104. package/public/hooks/mutations/useDeleteStorageModuleMutation.d.ts +38 -0
  105. package/public/hooks/mutations/useDeleteStorageModuleMutation.js +39 -0
  106. package/public/hooks/mutations/useProvisionFullTextSearchMutation.d.ts +20 -0
  107. package/public/hooks/mutations/useProvisionFullTextSearchMutation.js +26 -0
  108. package/public/hooks/mutations/useProvisionIndexMutation.d.ts +20 -0
  109. package/public/hooks/mutations/useProvisionIndexMutation.js +26 -0
  110. package/public/hooks/mutations/useProvisionRelationMutation.d.ts +20 -0
  111. package/public/hooks/mutations/useProvisionRelationMutation.js +26 -0
  112. package/public/hooks/mutations/useProvisionTableMutation.d.ts +20 -0
  113. package/public/hooks/mutations/useProvisionTableMutation.js +26 -0
  114. package/public/hooks/mutations/useProvisionUniqueConstraintMutation.d.ts +20 -0
  115. package/public/hooks/mutations/useProvisionUniqueConstraintMutation.js +26 -0
  116. package/public/hooks/mutations/useUpdateBlueprintConstructionMutation.d.ts +40 -0
  117. package/public/hooks/mutations/useUpdateBlueprintConstructionMutation.js +40 -0
  118. package/public/hooks/mutations/useUpdateBlueprintMutation.d.ts +2 -2
  119. package/public/hooks/mutations/useUpdateBlueprintMutation.js +1 -1
  120. package/public/hooks/mutations/useUpdateSecureTableProvisionMutation.d.ts +2 -2
  121. package/public/hooks/mutations/useUpdateSecureTableProvisionMutation.js +1 -1
  122. package/public/hooks/mutations/useUpdateStorageModuleMutation.d.ts +40 -0
  123. package/public/hooks/mutations/useUpdateStorageModuleMutation.js +40 -0
  124. package/public/hooks/queries/index.d.ts +8 -3
  125. package/public/hooks/queries/index.js +8 -3
  126. package/public/hooks/queries/useBlueprintConstructionQuery.d.ts +65 -0
  127. package/public/hooks/queries/useBlueprintConstructionQuery.js +53 -0
  128. package/public/hooks/queries/useBlueprintConstructionsQuery.d.ts +69 -0
  129. package/public/hooks/queries/useBlueprintConstructionsQuery.js +38 -0
  130. package/public/hooks/queries/useBlueprintQuery.d.ts +4 -4
  131. package/public/hooks/queries/useBlueprintQuery.js +1 -1
  132. package/public/hooks/queries/useBlueprintsQuery.d.ts +4 -4
  133. package/public/hooks/queries/useBlueprintsQuery.js +1 -1
  134. package/public/hooks/queries/useResolveBlueprintTableQuery.d.ts +53 -0
  135. package/public/hooks/queries/useResolveBlueprintTableQuery.js +53 -0
  136. package/public/hooks/queries/useSecureTableProvisionQuery.d.ts +4 -4
  137. package/public/hooks/queries/useSecureTableProvisionQuery.js +1 -1
  138. package/public/hooks/queries/useSecureTableProvisionsQuery.d.ts +4 -4
  139. package/public/hooks/queries/useSecureTableProvisionsQuery.js +1 -1
  140. package/public/hooks/queries/useStorageModuleQuery.d.ts +65 -0
  141. package/public/hooks/queries/useStorageModuleQuery.js +53 -0
  142. package/public/hooks/queries/useStorageModulesQuery.d.ts +69 -0
  143. package/public/hooks/queries/useStorageModulesQuery.js +38 -0
  144. package/public/hooks/query-keys.d.ts +58 -28
  145. package/public/hooks/query-keys.js +36 -19
  146. package/public/orm/index.d.ts +53 -19
  147. package/public/orm/index.js +8 -4
  148. package/public/orm/input-types.d.ts +886 -249
  149. package/public/orm/input-types.js +5 -0
  150. package/public/orm/models/blueprintConstruction.d.ts +56 -0
  151. package/public/orm/models/blueprintConstruction.js +100 -0
  152. package/public/orm/models/index.d.ts +4 -2
  153. package/public/orm/models/index.js +11 -7
  154. package/public/orm/models/storageModule.d.ts +56 -0
  155. package/public/orm/models/storageModule.js +100 -0
  156. package/public/orm/mutation/index.d.ts +86 -26
  157. package/public/orm/mutation/index.js +96 -36
  158. package/public/orm/query/index.d.ts +16 -0
  159. package/public/orm/query/index.js +28 -0
  160. package/public/schema-types.d.ts +990 -645
  161. package/public/types.d.ts +42 -18
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts.
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 { BlueprintConstructionSelect, BlueprintConstructionWithRelations, BlueprintConstructionPatch } from '../../orm/input-types';
8
+ import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
9
+ export type { BlueprintConstructionSelect, BlueprintConstructionWithRelations, BlueprintConstructionPatch, } from '../../orm/input-types';
10
+ /**
11
+ * Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts.
12
+ *
13
+ * @example
14
+ * ```tsx
15
+ * const { mutate, isPending } = useUpdateBlueprintConstructionMutation({
16
+ * selection: { fields: { id: true, name: true } },
17
+ * });
18
+ *
19
+ * mutate({ id: 'value-here', blueprintConstructionPatch: { name: 'Updated' } });
20
+ * ```
21
+ */
22
+ export declare function useUpdateBlueprintConstructionMutation<S extends BlueprintConstructionSelect>(params: {
23
+ selection: {
24
+ fields: S & BlueprintConstructionSelect;
25
+ } & HookStrictSelect<NoInfer<S>, BlueprintConstructionSelect>;
26
+ } & Omit<UseMutationOptions<{
27
+ updateBlueprintConstruction: {
28
+ blueprintConstruction: InferSelectResult<BlueprintConstructionWithRelations, S>;
29
+ };
30
+ }, Error, {
31
+ id: string;
32
+ blueprintConstructionPatch: BlueprintConstructionPatch;
33
+ }>, 'mutationFn'>): UseMutationResult<{
34
+ updateBlueprintConstruction: {
35
+ blueprintConstruction: InferSelectResult<BlueprintConstructionWithRelations, S>;
36
+ };
37
+ }, Error, {
38
+ id: string;
39
+ blueprintConstructionPatch: BlueprintConstructionPatch;
40
+ }>;
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ /**
3
+ * Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts.
4
+ * @generated by @constructive-io/graphql-codegen
5
+ * DO NOT EDIT - changes will be overwritten
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.useUpdateBlueprintConstructionMutation = useUpdateBlueprintConstructionMutation;
9
+ const react_query_1 = require("@tanstack/react-query");
10
+ const client_1 = require("../client");
11
+ const selection_1 = require("../selection");
12
+ const query_keys_1 = require("../query-keys");
13
+ const mutation_keys_1 = require("../mutation-keys");
14
+ function useUpdateBlueprintConstructionMutation(params) {
15
+ const args = (0, selection_1.buildSelectionArgs)(params.selection);
16
+ const { selection: _selection, ...mutationOptions } = params ?? {};
17
+ void _selection;
18
+ const queryClient = (0, react_query_1.useQueryClient)();
19
+ return (0, react_query_1.useMutation)({
20
+ mutationKey: mutation_keys_1.blueprintConstructionMutationKeys.all,
21
+ mutationFn: ({ id, blueprintConstructionPatch, }) => (0, client_1.getClient)()
22
+ .blueprintConstruction.update({
23
+ where: {
24
+ id,
25
+ },
26
+ data: blueprintConstructionPatch,
27
+ select: args.select,
28
+ })
29
+ .unwrap(),
30
+ onSuccess: (_, variables) => {
31
+ queryClient.invalidateQueries({
32
+ queryKey: query_keys_1.blueprintConstructionKeys.detail(variables.id),
33
+ });
34
+ queryClient.invalidateQueries({
35
+ queryKey: query_keys_1.blueprintConstructionKeys.lists(),
36
+ });
37
+ },
38
+ ...mutationOptions,
39
+ });
40
+ }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * An owned, executable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition before executing it with construct_blueprint(). Each blueprint tracks its execution status (draft/constructed/failed) and stores the ref_map of created table IDs after construction.
2
+ * An owned, editable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition at any time. Execute it with construct_blueprint() which creates a separate blueprint_construction record to track the build.
3
3
  * @generated by @constructive-io/graphql-codegen
4
4
  * DO NOT EDIT - changes will be overwritten
5
5
  */
@@ -8,7 +8,7 @@ import type { BlueprintSelect, BlueprintWithRelations, BlueprintPatch } from '..
8
8
  import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
9
9
  export type { BlueprintSelect, BlueprintWithRelations, BlueprintPatch, } from '../../orm/input-types';
10
10
  /**
11
- * An owned, executable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition before executing it with construct_blueprint(). Each blueprint tracks its execution status (draft/constructed/failed) and stores the ref_map of created table IDs after construction.
11
+ * An owned, editable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition at any time. Execute it with construct_blueprint() which creates a separate blueprint_construction record to track the build.
12
12
  *
13
13
  * @example
14
14
  * ```tsx
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * An owned, executable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition before executing it with construct_blueprint(). Each blueprint tracks its execution status (draft/constructed/failed) and stores the ref_map of created table IDs after construction.
3
+ * An owned, editable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition at any time. Execute it with construct_blueprint() which creates a separate blueprint_construction record to track the build.
4
4
  * @generated by @constructive-io/graphql-codegen
5
5
  * DO NOT EDIT - changes will be overwritten
6
6
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via node_type, (2) grant privileges via grant_privileges, (3) create RLS policies via policy_type. Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent.
2
+ * Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via grant_privileges, (3) create RLS policies via policy_type. Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent.
3
3
  * @generated by @constructive-io/graphql-codegen
4
4
  * DO NOT EDIT - changes will be overwritten
5
5
  */
@@ -8,7 +8,7 @@ import type { SecureTableProvisionSelect, SecureTableProvisionWithRelations, Sec
8
8
  import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
9
9
  export type { SecureTableProvisionSelect, SecureTableProvisionWithRelations, SecureTableProvisionPatch, } from '../../orm/input-types';
10
10
  /**
11
- * Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via node_type, (2) grant privileges via grant_privileges, (3) create RLS policies via policy_type. Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent.
11
+ * Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via grant_privileges, (3) create RLS policies via policy_type. Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent.
12
12
  *
13
13
  * @example
14
14
  * ```tsx
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via node_type, (2) grant privileges via grant_privileges, (3) create RLS policies via policy_type. Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent.
3
+ * Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via grant_privileges, (3) create RLS policies via policy_type. Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent.
4
4
  * @generated by @constructive-io/graphql-codegen
5
5
  * DO NOT EDIT - changes will be overwritten
6
6
  */
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Update mutation hook for StorageModule
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 { StorageModuleSelect, StorageModuleWithRelations, StorageModulePatch } from '../../orm/input-types';
8
+ import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
9
+ export type { StorageModuleSelect, StorageModuleWithRelations, StorageModulePatch, } from '../../orm/input-types';
10
+ /**
11
+ * Mutation hook for updating a StorageModule
12
+ *
13
+ * @example
14
+ * ```tsx
15
+ * const { mutate, isPending } = useUpdateStorageModuleMutation({
16
+ * selection: { fields: { id: true, name: true } },
17
+ * });
18
+ *
19
+ * mutate({ id: 'value-here', storageModulePatch: { name: 'Updated' } });
20
+ * ```
21
+ */
22
+ export declare function useUpdateStorageModuleMutation<S extends StorageModuleSelect>(params: {
23
+ selection: {
24
+ fields: S & StorageModuleSelect;
25
+ } & HookStrictSelect<NoInfer<S>, StorageModuleSelect>;
26
+ } & Omit<UseMutationOptions<{
27
+ updateStorageModule: {
28
+ storageModule: InferSelectResult<StorageModuleWithRelations, S>;
29
+ };
30
+ }, Error, {
31
+ id: string;
32
+ storageModulePatch: StorageModulePatch;
33
+ }>, 'mutationFn'>): UseMutationResult<{
34
+ updateStorageModule: {
35
+ storageModule: InferSelectResult<StorageModuleWithRelations, S>;
36
+ };
37
+ }, Error, {
38
+ id: string;
39
+ storageModulePatch: StorageModulePatch;
40
+ }>;
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ /**
3
+ * Update mutation hook for StorageModule
4
+ * @generated by @constructive-io/graphql-codegen
5
+ * DO NOT EDIT - changes will be overwritten
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.useUpdateStorageModuleMutation = useUpdateStorageModuleMutation;
9
+ const react_query_1 = require("@tanstack/react-query");
10
+ const client_1 = require("../client");
11
+ const selection_1 = require("../selection");
12
+ const query_keys_1 = require("../query-keys");
13
+ const mutation_keys_1 = require("../mutation-keys");
14
+ function useUpdateStorageModuleMutation(params) {
15
+ const args = (0, selection_1.buildSelectionArgs)(params.selection);
16
+ const { selection: _selection, ...mutationOptions } = params ?? {};
17
+ void _selection;
18
+ const queryClient = (0, react_query_1.useQueryClient)();
19
+ return (0, react_query_1.useMutation)({
20
+ mutationKey: mutation_keys_1.storageModuleMutationKeys.all,
21
+ mutationFn: ({ id, storageModulePatch, }) => (0, client_1.getClient)()
22
+ .storageModule.update({
23
+ where: {
24
+ id,
25
+ },
26
+ data: storageModulePatch,
27
+ select: args.select,
28
+ })
29
+ .unwrap(),
30
+ onSuccess: (_, variables) => {
31
+ queryClient.invalidateQueries({
32
+ queryKey: query_keys_1.storageModuleKeys.detail(variables.id),
33
+ });
34
+ queryClient.invalidateQueries({
35
+ queryKey: query_keys_1.storageModuleKeys.lists(),
36
+ });
37
+ },
38
+ ...mutationOptions,
39
+ });
40
+ }
@@ -3,9 +3,9 @@
3
3
  * @generated by @constructive-io/graphql-codegen
4
4
  * DO NOT EDIT - changes will be overwritten
5
5
  */
6
- export * from './useGetAllQuery';
7
6
  export * from './useOrgGetManagersQuery';
8
7
  export * from './useOrgGetSubordinatesQuery';
8
+ export * from './useGetAllQuery';
9
9
  export * from './useObjectsQuery';
10
10
  export * from './useObjectQuery';
11
11
  export * from './useAppPermissionsQuery';
@@ -126,6 +126,10 @@ export * from './useBlueprintsQuery';
126
126
  export * from './useBlueprintQuery';
127
127
  export * from './useBlueprintTemplatesQuery';
128
128
  export * from './useBlueprintTemplateQuery';
129
+ export * from './useBlueprintConstructionsQuery';
130
+ export * from './useBlueprintConstructionQuery';
131
+ export * from './useStorageModulesQuery';
132
+ export * from './useStorageModuleQuery';
129
133
  export * from './useDatabaseProvisionModulesQuery';
130
134
  export * from './useDatabaseProvisionModuleQuery';
131
135
  export * from './useAppAdminGrantsQuery';
@@ -186,12 +190,12 @@ export * from './useAppPermissionDefaultsQuery';
186
190
  export * from './useAppPermissionDefaultQuery';
187
191
  export * from './useRoleTypesQuery';
188
192
  export * from './useRoleTypeQuery';
189
- export * from './useMigrateFilesQuery';
190
- export * from './useMigrateFileQuery';
191
193
  export * from './useAppLimitDefaultsQuery';
192
194
  export * from './useAppLimitDefaultQuery';
193
195
  export * from './useOrgLimitDefaultsQuery';
194
196
  export * from './useOrgLimitDefaultQuery';
197
+ export * from './useMigrateFilesQuery';
198
+ export * from './useMigrateFileQuery';
195
199
  export * from './useMembershipTypesQuery';
196
200
  export * from './useMembershipTypeQuery';
197
201
  export * from './useCommitsQuery';
@@ -224,6 +228,7 @@ export * from './useRevParseQuery';
224
228
  export * from './useOrgIsManagerOfQuery';
225
229
  export * from './useAppPermissionsGetMaskQuery';
226
230
  export * from './useOrgPermissionsGetMaskQuery';
231
+ export * from './useResolveBlueprintTableQuery';
227
232
  export * from './useAppPermissionsGetMaskByNamesQuery';
228
233
  export * from './useOrgPermissionsGetMaskByNamesQuery';
229
234
  export * from './useGetAllObjectsFromRootQuery';
@@ -19,9 +19,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
19
19
  * @generated by @constructive-io/graphql-codegen
20
20
  * DO NOT EDIT - changes will be overwritten
21
21
  */
22
- __exportStar(require("./useGetAllQuery"), exports);
23
22
  __exportStar(require("./useOrgGetManagersQuery"), exports);
24
23
  __exportStar(require("./useOrgGetSubordinatesQuery"), exports);
24
+ __exportStar(require("./useGetAllQuery"), exports);
25
25
  __exportStar(require("./useObjectsQuery"), exports);
26
26
  __exportStar(require("./useObjectQuery"), exports);
27
27
  __exportStar(require("./useAppPermissionsQuery"), exports);
@@ -142,6 +142,10 @@ __exportStar(require("./useBlueprintsQuery"), exports);
142
142
  __exportStar(require("./useBlueprintQuery"), exports);
143
143
  __exportStar(require("./useBlueprintTemplatesQuery"), exports);
144
144
  __exportStar(require("./useBlueprintTemplateQuery"), exports);
145
+ __exportStar(require("./useBlueprintConstructionsQuery"), exports);
146
+ __exportStar(require("./useBlueprintConstructionQuery"), exports);
147
+ __exportStar(require("./useStorageModulesQuery"), exports);
148
+ __exportStar(require("./useStorageModuleQuery"), exports);
145
149
  __exportStar(require("./useDatabaseProvisionModulesQuery"), exports);
146
150
  __exportStar(require("./useDatabaseProvisionModuleQuery"), exports);
147
151
  __exportStar(require("./useAppAdminGrantsQuery"), exports);
@@ -202,12 +206,12 @@ __exportStar(require("./useAppPermissionDefaultsQuery"), exports);
202
206
  __exportStar(require("./useAppPermissionDefaultQuery"), exports);
203
207
  __exportStar(require("./useRoleTypesQuery"), exports);
204
208
  __exportStar(require("./useRoleTypeQuery"), exports);
205
- __exportStar(require("./useMigrateFilesQuery"), exports);
206
- __exportStar(require("./useMigrateFileQuery"), exports);
207
209
  __exportStar(require("./useAppLimitDefaultsQuery"), exports);
208
210
  __exportStar(require("./useAppLimitDefaultQuery"), exports);
209
211
  __exportStar(require("./useOrgLimitDefaultsQuery"), exports);
210
212
  __exportStar(require("./useOrgLimitDefaultQuery"), exports);
213
+ __exportStar(require("./useMigrateFilesQuery"), exports);
214
+ __exportStar(require("./useMigrateFileQuery"), exports);
211
215
  __exportStar(require("./useMembershipTypesQuery"), exports);
212
216
  __exportStar(require("./useMembershipTypeQuery"), exports);
213
217
  __exportStar(require("./useCommitsQuery"), exports);
@@ -240,6 +244,7 @@ __exportStar(require("./useRevParseQuery"), exports);
240
244
  __exportStar(require("./useOrgIsManagerOfQuery"), exports);
241
245
  __exportStar(require("./useAppPermissionsGetMaskQuery"), exports);
242
246
  __exportStar(require("./useOrgPermissionsGetMaskQuery"), exports);
247
+ __exportStar(require("./useResolveBlueprintTableQuery"), exports);
243
248
  __exportStar(require("./useAppPermissionsGetMaskByNamesQuery"), exports);
244
249
  __exportStar(require("./useOrgPermissionsGetMaskByNamesQuery"), exports);
245
250
  __exportStar(require("./useGetAllObjectsFromRootQuery"), exports);
@@ -0,0 +1,65 @@
1
+ /**
2
+ * Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts.
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 { BlueprintConstructionSelect, BlueprintConstructionWithRelations } from '../../orm/input-types';
8
+ import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
9
+ export type { BlueprintConstructionSelect, BlueprintConstructionWithRelations, } from '../../orm/input-types';
10
+ /** Query key factory - re-exported from query-keys.ts */
11
+ export declare const blueprintConstructionQueryKey: (id: string | number) => readonly ["blueprintconstruction", "detail", string | number];
12
+ /**
13
+ * Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts.
14
+ *
15
+ * @example
16
+ * ```tsx
17
+ * const { data, isLoading } = useBlueprintConstructionQuery({
18
+ * id: 'some-id',
19
+ * selection: { fields: { id: true, name: true } },
20
+ * });
21
+ * ```
22
+ */
23
+ export declare function useBlueprintConstructionQuery<S extends BlueprintConstructionSelect, TData = {
24
+ blueprintConstruction: InferSelectResult<BlueprintConstructionWithRelations, S> | null;
25
+ }>(params: {
26
+ id: string;
27
+ selection: {
28
+ fields: S;
29
+ } & HookStrictSelect<NoInfer<S>, BlueprintConstructionSelect>;
30
+ } & Omit<UseQueryOptions<{
31
+ blueprintConstruction: InferSelectResult<BlueprintConstructionWithRelations, S> | null;
32
+ }, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
33
+ /**
34
+ * Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts.
35
+ *
36
+ * @example
37
+ * ```ts
38
+ * const data = await fetchBlueprintConstructionQuery({
39
+ * id: 'some-id',
40
+ * selection: { fields: { id: true } },
41
+ * });
42
+ * ```
43
+ */
44
+ export declare function fetchBlueprintConstructionQuery<S extends BlueprintConstructionSelect>(params: {
45
+ id: string;
46
+ selection: {
47
+ fields: S;
48
+ } & HookStrictSelect<NoInfer<S>, BlueprintConstructionSelect>;
49
+ }): Promise<{
50
+ blueprintConstruction: InferSelectResult<BlueprintConstructionWithRelations, S> | null;
51
+ }>;
52
+ /**
53
+ * Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts.
54
+ *
55
+ * @example
56
+ * ```ts
57
+ * await prefetchBlueprintConstructionQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
58
+ * ```
59
+ */
60
+ export declare function prefetchBlueprintConstructionQuery<S extends BlueprintConstructionSelect>(queryClient: QueryClient, params: {
61
+ id: string;
62
+ selection: {
63
+ fields: S;
64
+ } & HookStrictSelect<NoInfer<S>, BlueprintConstructionSelect>;
65
+ }): Promise<void>;
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ /**
3
+ * Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts.
4
+ * @generated by @constructive-io/graphql-codegen
5
+ * DO NOT EDIT - changes will be overwritten
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.blueprintConstructionQueryKey = void 0;
9
+ exports.useBlueprintConstructionQuery = useBlueprintConstructionQuery;
10
+ exports.fetchBlueprintConstructionQuery = fetchBlueprintConstructionQuery;
11
+ exports.prefetchBlueprintConstructionQuery = prefetchBlueprintConstructionQuery;
12
+ const react_query_1 = require("@tanstack/react-query");
13
+ const client_1 = require("../client");
14
+ const selection_1 = require("../selection");
15
+ const query_keys_1 = require("../query-keys");
16
+ /** Query key factory - re-exported from query-keys.ts */
17
+ exports.blueprintConstructionQueryKey = query_keys_1.blueprintConstructionKeys.detail;
18
+ function useBlueprintConstructionQuery(params) {
19
+ const args = (0, selection_1.buildSelectionArgs)(params.selection);
20
+ const { selection: _selection, ...queryOptions } = params ?? {};
21
+ void _selection;
22
+ return (0, react_query_1.useQuery)({
23
+ queryKey: query_keys_1.blueprintConstructionKeys.detail(params.id),
24
+ queryFn: () => (0, client_1.getClient)()
25
+ .blueprintConstruction.findOne({
26
+ id: params.id,
27
+ select: args.select,
28
+ })
29
+ .unwrap(),
30
+ ...queryOptions,
31
+ });
32
+ }
33
+ async function fetchBlueprintConstructionQuery(params) {
34
+ const args = (0, selection_1.buildSelectionArgs)(params.selection);
35
+ return (0, client_1.getClient)()
36
+ .blueprintConstruction.findOne({
37
+ id: params.id,
38
+ select: args.select,
39
+ })
40
+ .unwrap();
41
+ }
42
+ async function prefetchBlueprintConstructionQuery(queryClient, params) {
43
+ const args = (0, selection_1.buildSelectionArgs)(params.selection);
44
+ await queryClient.prefetchQuery({
45
+ queryKey: query_keys_1.blueprintConstructionKeys.detail(params.id),
46
+ queryFn: () => (0, client_1.getClient)()
47
+ .blueprintConstruction.findOne({
48
+ id: params.id,
49
+ select: args.select,
50
+ })
51
+ .unwrap(),
52
+ });
53
+ }
@@ -0,0 +1,69 @@
1
+ /**
2
+ * Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts.
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 { BlueprintConstructionSelect, BlueprintConstructionWithRelations, BlueprintConstructionFilter, BlueprintConstructionOrderBy } from '../../orm/input-types';
9
+ import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
10
+ export type { BlueprintConstructionSelect, BlueprintConstructionWithRelations, BlueprintConstructionFilter, BlueprintConstructionOrderBy, } from '../../orm/input-types';
11
+ /** Query key factory - re-exported from query-keys.ts */
12
+ export declare const blueprintConstructionsQueryKey: (variables?: object) => readonly ["blueprintconstruction", "list", object];
13
+ /**
14
+ * Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts.
15
+ *
16
+ * @example
17
+ * ```tsx
18
+ * const { data, isLoading } = useBlueprintConstructionsQuery({
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 useBlueprintConstructionsQuery<S extends BlueprintConstructionSelect, TData = {
29
+ blueprintConstructions: ConnectionResult<InferSelectResult<BlueprintConstructionWithRelations, S>>;
30
+ }>(params: {
31
+ selection: {
32
+ fields: S;
33
+ } & Omit<ListSelectionConfig<S, BlueprintConstructionFilter, BlueprintConstructionOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, BlueprintConstructionSelect>;
34
+ } & Omit<UseQueryOptions<{
35
+ blueprintConstructions: ConnectionResult<InferSelectResult<BlueprintConstructionWithRelations, S>>;
36
+ }, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
37
+ /**
38
+ * Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts.
39
+ *
40
+ * @example
41
+ * ```ts
42
+ * const data = await fetchBlueprintConstructionsQuery({
43
+ * selection: {
44
+ * fields: { id: true },
45
+ * first: 10,
46
+ * },
47
+ * });
48
+ * ```
49
+ */
50
+ export declare function fetchBlueprintConstructionsQuery<S extends BlueprintConstructionSelect>(params: {
51
+ selection: {
52
+ fields: S;
53
+ } & Omit<ListSelectionConfig<S, BlueprintConstructionFilter, BlueprintConstructionOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, BlueprintConstructionSelect>;
54
+ }): Promise<{
55
+ blueprintConstructions: ConnectionResult<InferSelectResult<BlueprintConstructionWithRelations, S>>;
56
+ }>;
57
+ /**
58
+ * Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts.
59
+ *
60
+ * @example
61
+ * ```ts
62
+ * await prefetchBlueprintConstructionsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
63
+ * ```
64
+ */
65
+ export declare function prefetchBlueprintConstructionsQuery<S extends BlueprintConstructionSelect>(queryClient: QueryClient, params: {
66
+ selection: {
67
+ fields: S;
68
+ } & Omit<ListSelectionConfig<S, BlueprintConstructionFilter, BlueprintConstructionOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, BlueprintConstructionSelect>;
69
+ }): Promise<void>;
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ /**
3
+ * Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts.
4
+ * @generated by @constructive-io/graphql-codegen
5
+ * DO NOT EDIT - changes will be overwritten
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.blueprintConstructionsQueryKey = void 0;
9
+ exports.useBlueprintConstructionsQuery = useBlueprintConstructionsQuery;
10
+ exports.fetchBlueprintConstructionsQuery = fetchBlueprintConstructionsQuery;
11
+ exports.prefetchBlueprintConstructionsQuery = prefetchBlueprintConstructionsQuery;
12
+ const react_query_1 = require("@tanstack/react-query");
13
+ const client_1 = require("../client");
14
+ const selection_1 = require("../selection");
15
+ const query_keys_1 = require("../query-keys");
16
+ /** Query key factory - re-exported from query-keys.ts */
17
+ exports.blueprintConstructionsQueryKey = query_keys_1.blueprintConstructionKeys.list;
18
+ function useBlueprintConstructionsQuery(params) {
19
+ const args = (0, selection_1.buildListSelectionArgs)(params.selection);
20
+ const { selection: _selection, ...queryOptions } = params ?? {};
21
+ void _selection;
22
+ return (0, react_query_1.useQuery)({
23
+ queryKey: query_keys_1.blueprintConstructionKeys.list(args),
24
+ queryFn: () => (0, client_1.getClient)().blueprintConstruction.findMany(args).unwrap(),
25
+ ...queryOptions,
26
+ });
27
+ }
28
+ async function fetchBlueprintConstructionsQuery(params) {
29
+ const args = (0, selection_1.buildListSelectionArgs)(params.selection);
30
+ return (0, client_1.getClient)().blueprintConstruction.findMany(args).unwrap();
31
+ }
32
+ async function prefetchBlueprintConstructionsQuery(queryClient, params) {
33
+ const args = (0, selection_1.buildListSelectionArgs)(params.selection);
34
+ await queryClient.prefetchQuery({
35
+ queryKey: query_keys_1.blueprintConstructionKeys.list(args),
36
+ queryFn: () => (0, client_1.getClient)().blueprintConstruction.findMany(args).unwrap(),
37
+ });
38
+ }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * An owned, executable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition before executing it with construct_blueprint(). Each blueprint tracks its execution status (draft/constructed/failed) and stores the ref_map of created table IDs after construction.
2
+ * An owned, editable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition at any time. Execute it with construct_blueprint() which creates a separate blueprint_construction record to track the build.
3
3
  * @generated by @constructive-io/graphql-codegen
4
4
  * DO NOT EDIT - changes will be overwritten
5
5
  */
@@ -10,7 +10,7 @@ export type { BlueprintSelect, BlueprintWithRelations } from '../../orm/input-ty
10
10
  /** Query key factory - re-exported from query-keys.ts */
11
11
  export declare const blueprintQueryKey: (id: string | number) => readonly ["blueprint", "detail", string | number];
12
12
  /**
13
- * An owned, executable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition before executing it with construct_blueprint(). Each blueprint tracks its execution status (draft/constructed/failed) and stores the ref_map of created table IDs after construction.
13
+ * An owned, editable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition at any time. Execute it with construct_blueprint() which creates a separate blueprint_construction record to track the build.
14
14
  *
15
15
  * @example
16
16
  * ```tsx
@@ -31,7 +31,7 @@ export declare function useBlueprintQuery<S extends BlueprintSelect, TData = {
31
31
  blueprint: InferSelectResult<BlueprintWithRelations, S> | null;
32
32
  }, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
33
33
  /**
34
- * An owned, executable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition before executing it with construct_blueprint(). Each blueprint tracks its execution status (draft/constructed/failed) and stores the ref_map of created table IDs after construction.
34
+ * An owned, editable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition at any time. Execute it with construct_blueprint() which creates a separate blueprint_construction record to track the build.
35
35
  *
36
36
  * @example
37
37
  * ```ts
@@ -50,7 +50,7 @@ export declare function fetchBlueprintQuery<S extends BlueprintSelect>(params: {
50
50
  blueprint: InferSelectResult<BlueprintWithRelations, S> | null;
51
51
  }>;
52
52
  /**
53
- * An owned, executable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition before executing it with construct_blueprint(). Each blueprint tracks its execution status (draft/constructed/failed) and stores the ref_map of created table IDs after construction.
53
+ * An owned, editable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition at any time. Execute it with construct_blueprint() which creates a separate blueprint_construction record to track the build.
54
54
  *
55
55
  * @example
56
56
  * ```ts
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * An owned, executable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition before executing it with construct_blueprint(). Each blueprint tracks its execution status (draft/constructed/failed) and stores the ref_map of created table IDs after construction.
3
+ * An owned, editable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition at any time. Execute it with construct_blueprint() which creates a separate blueprint_construction record to track the build.
4
4
  * @generated by @constructive-io/graphql-codegen
5
5
  * DO NOT EDIT - changes will be overwritten
6
6
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * An owned, executable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition before executing it with construct_blueprint(). Each blueprint tracks its execution status (draft/constructed/failed) and stores the ref_map of created table IDs after construction.
2
+ * An owned, editable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition at any time. Execute it with construct_blueprint() which creates a separate blueprint_construction record to track the build.
3
3
  * @generated by @constructive-io/graphql-codegen
4
4
  * DO NOT EDIT - changes will be overwritten
5
5
  */
@@ -11,7 +11,7 @@ export type { BlueprintSelect, BlueprintWithRelations, BlueprintFilter, Blueprin
11
11
  /** Query key factory - re-exported from query-keys.ts */
12
12
  export declare const blueprintsQueryKey: (variables?: object) => readonly ["blueprint", "list", object];
13
13
  /**
14
- * An owned, executable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition before executing it with construct_blueprint(). Each blueprint tracks its execution status (draft/constructed/failed) and stores the ref_map of created table IDs after construction.
14
+ * An owned, editable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition at any time. Execute it with construct_blueprint() which creates a separate blueprint_construction record to track the build.
15
15
  *
16
16
  * @example
17
17
  * ```tsx
@@ -35,7 +35,7 @@ export declare function useBlueprintsQuery<S extends BlueprintSelect, TData = {
35
35
  blueprints: ConnectionResult<InferSelectResult<BlueprintWithRelations, S>>;
36
36
  }, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
37
37
  /**
38
- * An owned, executable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition before executing it with construct_blueprint(). Each blueprint tracks its execution status (draft/constructed/failed) and stores the ref_map of created table IDs after construction.
38
+ * An owned, editable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition at any time. Execute it with construct_blueprint() which creates a separate blueprint_construction record to track the build.
39
39
  *
40
40
  * @example
41
41
  * ```ts
@@ -55,7 +55,7 @@ export declare function fetchBlueprintsQuery<S extends BlueprintSelect>(params:
55
55
  blueprints: ConnectionResult<InferSelectResult<BlueprintWithRelations, S>>;
56
56
  }>;
57
57
  /**
58
- * An owned, executable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition before executing it with construct_blueprint(). Each blueprint tracks its execution status (draft/constructed/failed) and stores the ref_map of created table IDs after construction.
58
+ * An owned, editable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition at any time. Execute it with construct_blueprint() which creates a separate blueprint_construction record to track the build.
59
59
  *
60
60
  * @example
61
61
  * ```ts
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * An owned, executable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition before executing it with construct_blueprint(). Each blueprint tracks its execution status (draft/constructed/failed) and stores the ref_map of created table IDs after construction.
3
+ * An owned, editable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition at any time. Execute it with construct_blueprint() which creates a separate blueprint_construction record to track the build.
4
4
  * @generated by @constructive-io/graphql-codegen
5
5
  * DO NOT EDIT - changes will be overwritten
6
6
  */