@constructive-io/react 0.8.0 → 0.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -8
- package/admin/orm/input-types.d.ts +33 -127
- package/admin/schema-types.d.ts +20 -110
- package/admin/types.d.ts +0 -19
- package/auth/hooks/index.d.ts +1 -1
- package/auth/hooks/index.js +1 -1
- package/auth/hooks/invalidation.d.ts +16 -16
- package/auth/hooks/invalidation.js +33 -33
- package/auth/hooks/mutation-keys.d.ts +32 -32
- package/auth/hooks/mutation-keys.js +20 -20
- package/auth/hooks/mutations/index.d.ts +9 -9
- package/auth/hooks/mutations/index.js +9 -9
- package/auth/hooks/queries/index.d.ts +6 -6
- package/auth/hooks/queries/index.js +6 -6
- package/auth/hooks/query-keys.d.ts +38 -38
- package/auth/hooks/query-keys.js +23 -23
- package/auth/orm/index.d.ts +6 -6
- package/auth/orm/index.js +6 -6
- package/auth/orm/input-types.d.ts +279 -327
- package/auth/orm/input-types.js +9 -1
- package/auth/orm/models/index.d.ts +3 -3
- package/auth/orm/models/index.js +7 -7
- package/auth/schema-types.d.ts +276 -188
- package/auth/types.d.ts +14 -24
- package/esm/admin/orm/input-types.d.ts +33 -127
- package/esm/admin/schema-types.d.ts +20 -110
- package/esm/admin/types.d.ts +0 -19
- package/esm/auth/hooks/index.d.ts +1 -1
- package/esm/auth/hooks/index.js +1 -1
- package/esm/auth/hooks/invalidation.d.ts +16 -16
- package/esm/auth/hooks/invalidation.js +34 -34
- package/esm/auth/hooks/mutation-keys.d.ts +32 -32
- package/esm/auth/hooks/mutation-keys.js +19 -19
- package/esm/auth/hooks/mutations/index.d.ts +9 -9
- package/esm/auth/hooks/mutations/index.js +9 -9
- package/esm/auth/hooks/queries/index.d.ts +6 -6
- package/esm/auth/hooks/queries/index.js +6 -6
- package/esm/auth/hooks/query-keys.d.ts +38 -38
- package/esm/auth/hooks/query-keys.js +22 -22
- package/esm/auth/orm/index.d.ts +6 -6
- package/esm/auth/orm/index.js +6 -6
- package/esm/auth/orm/input-types.d.ts +279 -327
- package/esm/auth/orm/input-types.js +9 -1
- package/esm/auth/orm/models/index.d.ts +3 -3
- package/esm/auth/orm/models/index.js +3 -3
- package/esm/auth/schema-types.d.ts +276 -188
- package/esm/auth/types.d.ts +14 -24
- package/esm/index.d.ts +5 -1
- package/esm/index.js +5 -1
- package/esm/objects/orm/input-types.d.ts +17 -48
- package/esm/objects/schema-types.d.ts +3 -37
- package/esm/objects/types.d.ts +0 -6
- package/esm/public/hooks/index.d.ts +1 -1
- package/esm/public/hooks/index.js +1 -1
- package/esm/public/hooks/invalidation.d.ts +77 -53
- package/esm/public/hooks/invalidation.js +202 -138
- package/esm/public/hooks/mutation-keys.d.ts +180 -122
- package/esm/public/hooks/mutation-keys.js +129 -86
- package/esm/public/hooks/mutations/index.d.ts +50 -33
- package/esm/public/hooks/mutations/index.js +50 -33
- package/esm/public/hooks/mutations/useAcceptDatabaseTransferMutation.d.ts +20 -0
- package/esm/public/hooks/mutations/useAcceptDatabaseTransferMutation.js +23 -0
- package/esm/public/hooks/mutations/useCancelDatabaseTransferMutation.d.ts +20 -0
- package/esm/public/hooks/mutations/useCancelDatabaseTransferMutation.js +23 -0
- package/esm/public/hooks/mutations/useConstructBlueprintMutation.d.ts +20 -0
- package/esm/public/hooks/mutations/useConstructBlueprintMutation.js +23 -0
- package/esm/public/hooks/mutations/useCopyTemplateToBlueprintMutation.d.ts +20 -0
- package/esm/public/hooks/mutations/useCopyTemplateToBlueprintMutation.js +23 -0
- package/esm/public/hooks/mutations/useCreateBlueprintMutation.d.ts +34 -0
- package/esm/public/hooks/mutations/useCreateBlueprintMutation.js +31 -0
- package/esm/public/hooks/mutations/useCreateBlueprintTemplateMutation.d.ts +34 -0
- package/esm/public/hooks/mutations/useCreateBlueprintTemplateMutation.js +31 -0
- package/esm/public/hooks/mutations/useCreateDatabaseTransferMutation.d.ts +34 -0
- package/esm/public/hooks/mutations/useCreateDatabaseTransferMutation.js +31 -0
- package/esm/public/hooks/mutations/useCreateEmbeddingChunkMutation.d.ts +34 -0
- package/esm/public/hooks/mutations/useCreateEmbeddingChunkMutation.js +31 -0
- package/esm/public/hooks/mutations/useCreateEnumMutation.d.ts +34 -0
- package/esm/public/hooks/mutations/{useCreateUuidModuleMutation.js → useCreateEnumMutation.js} +7 -7
- package/esm/public/hooks/mutations/useDeleteBlueprintMutation.d.ts +38 -0
- package/esm/public/hooks/mutations/useDeleteBlueprintMutation.js +36 -0
- package/esm/public/hooks/mutations/useDeleteBlueprintTemplateMutation.d.ts +38 -0
- package/esm/public/hooks/mutations/useDeleteBlueprintTemplateMutation.js +36 -0
- package/esm/public/hooks/mutations/useDeleteDatabaseTransferMutation.d.ts +38 -0
- package/esm/public/hooks/mutations/useDeleteDatabaseTransferMutation.js +36 -0
- package/esm/public/hooks/mutations/useDeleteEmbeddingChunkMutation.d.ts +38 -0
- package/esm/public/hooks/mutations/useDeleteEmbeddingChunkMutation.js +36 -0
- package/esm/public/hooks/mutations/useDeleteEnumMutation.d.ts +38 -0
- package/esm/public/hooks/mutations/{useDeleteUuidModuleMutation.js → useDeleteEnumMutation.js} +8 -8
- package/esm/public/hooks/mutations/useRejectDatabaseTransferMutation.d.ts +20 -0
- package/esm/public/hooks/mutations/useRejectDatabaseTransferMutation.js +23 -0
- package/esm/public/hooks/mutations/useUpdateBlueprintMutation.d.ts +40 -0
- package/esm/public/hooks/mutations/useUpdateBlueprintMutation.js +37 -0
- package/esm/public/hooks/mutations/useUpdateBlueprintTemplateMutation.d.ts +40 -0
- package/esm/public/hooks/mutations/useUpdateBlueprintTemplateMutation.js +37 -0
- package/esm/public/hooks/mutations/useUpdateDatabaseTransferMutation.d.ts +40 -0
- package/esm/public/hooks/mutations/useUpdateDatabaseTransferMutation.js +37 -0
- package/esm/public/hooks/mutations/useUpdateEmbeddingChunkMutation.d.ts +40 -0
- package/esm/public/hooks/mutations/useUpdateEmbeddingChunkMutation.js +37 -0
- package/esm/public/hooks/mutations/useUpdateEnumMutation.d.ts +40 -0
- package/esm/public/hooks/mutations/{useUpdateUuidModuleMutation.js → useUpdateEnumMutation.js} +10 -10
- package/esm/public/hooks/queries/index.d.ts +25 -17
- package/esm/public/hooks/queries/index.js +25 -17
- package/esm/public/hooks/queries/useBlueprintQuery.d.ts +65 -0
- package/esm/public/hooks/queries/useBlueprintQuery.js +47 -0
- package/esm/public/hooks/queries/useBlueprintTemplateQuery.d.ts +65 -0
- package/esm/public/hooks/queries/useBlueprintTemplateQuery.js +47 -0
- package/esm/public/hooks/queries/useBlueprintTemplatesQuery.d.ts +69 -0
- package/esm/public/hooks/queries/useBlueprintTemplatesQuery.js +32 -0
- package/esm/public/hooks/queries/useBlueprintsQuery.d.ts +69 -0
- package/esm/public/hooks/queries/useBlueprintsQuery.js +32 -0
- package/esm/public/hooks/queries/useDatabaseTransferQuery.d.ts +65 -0
- package/esm/public/hooks/queries/useDatabaseTransferQuery.js +47 -0
- package/esm/public/hooks/queries/useDatabaseTransfersQuery.d.ts +69 -0
- package/esm/public/hooks/queries/useDatabaseTransfersQuery.js +32 -0
- package/esm/public/hooks/queries/useEmbeddingChunkQuery.d.ts +65 -0
- package/esm/public/hooks/queries/useEmbeddingChunkQuery.js +47 -0
- package/esm/public/hooks/queries/useEmbeddingChunksQuery.d.ts +69 -0
- package/esm/public/hooks/queries/useEmbeddingChunksQuery.js +32 -0
- package/esm/public/hooks/queries/useEnumQuery.d.ts +65 -0
- package/esm/public/hooks/queries/{useUuidModuleQuery.js → useEnumQuery.js} +11 -11
- package/esm/public/hooks/queries/useEnumsQuery.d.ts +69 -0
- package/esm/public/hooks/queries/{useUuidModulesQuery.js → useEnumsQuery.js} +11 -11
- package/esm/public/hooks/query-keys.d.ts +180 -124
- package/esm/public/hooks/query-keys.js +103 -71
- package/esm/public/orm/index.d.ts +81 -48
- package/esm/public/orm/index.js +26 -18
- package/esm/public/orm/input-types.d.ts +2447 -2980
- package/esm/public/orm/input-types.js +26 -1
- package/esm/public/orm/models/blueprint.d.ts +56 -0
- package/esm/public/orm/models/blueprint.js +94 -0
- package/esm/public/orm/models/blueprintTemplate.d.ts +56 -0
- package/esm/public/orm/models/blueprintTemplate.js +94 -0
- package/esm/public/orm/models/databaseTransfer.d.ts +56 -0
- package/esm/public/orm/models/databaseTransfer.js +94 -0
- package/esm/public/orm/models/embeddingChunk.d.ts +56 -0
- package/esm/public/orm/models/embeddingChunk.js +94 -0
- package/esm/public/orm/models/enum.d.ts +56 -0
- package/esm/public/orm/models/{uuidModule.js → enum.js} +23 -23
- package/esm/public/orm/models/index.d.ts +13 -9
- package/esm/public/orm/models/index.js +13 -9
- package/esm/public/orm/mutation/index.d.ts +98 -50
- package/esm/public/orm/mutation/index.js +126 -66
- package/esm/public/schema-types.d.ts +2328 -2206
- package/esm/public/types.d.ts +161 -379
- package/index.d.ts +5 -1
- package/index.js +5 -1
- package/objects/orm/input-types.d.ts +17 -48
- package/objects/schema-types.d.ts +3 -37
- package/objects/types.d.ts +0 -6
- package/package.json +3 -3
- package/public/hooks/index.d.ts +1 -1
- package/public/hooks/index.js +1 -1
- package/public/hooks/invalidation.d.ts +77 -53
- package/public/hooks/invalidation.js +201 -137
- package/public/hooks/mutation-keys.d.ts +180 -122
- package/public/hooks/mutation-keys.js +132 -89
- package/public/hooks/mutations/index.d.ts +50 -33
- package/public/hooks/mutations/index.js +50 -33
- package/public/hooks/mutations/useAcceptDatabaseTransferMutation.d.ts +20 -0
- package/public/hooks/mutations/useAcceptDatabaseTransferMutation.js +26 -0
- package/public/hooks/mutations/useCancelDatabaseTransferMutation.d.ts +20 -0
- package/public/hooks/mutations/useCancelDatabaseTransferMutation.js +26 -0
- package/public/hooks/mutations/useConstructBlueprintMutation.d.ts +20 -0
- package/public/hooks/mutations/useConstructBlueprintMutation.js +26 -0
- package/public/hooks/mutations/useCopyTemplateToBlueprintMutation.d.ts +20 -0
- package/public/hooks/mutations/useCopyTemplateToBlueprintMutation.js +26 -0
- package/public/hooks/mutations/useCreateBlueprintMutation.d.ts +34 -0
- package/public/hooks/mutations/useCreateBlueprintMutation.js +34 -0
- package/public/hooks/mutations/useCreateBlueprintTemplateMutation.d.ts +34 -0
- package/public/hooks/mutations/useCreateBlueprintTemplateMutation.js +34 -0
- package/public/hooks/mutations/useCreateDatabaseTransferMutation.d.ts +34 -0
- package/public/hooks/mutations/useCreateDatabaseTransferMutation.js +34 -0
- package/public/hooks/mutations/useCreateEmbeddingChunkMutation.d.ts +34 -0
- package/public/hooks/mutations/useCreateEmbeddingChunkMutation.js +34 -0
- package/public/hooks/mutations/useCreateEnumMutation.d.ts +34 -0
- package/public/hooks/mutations/{useCreateUuidModuleMutation.js → useCreateEnumMutation.js} +6 -6
- package/public/hooks/mutations/useDeleteBlueprintMutation.d.ts +38 -0
- package/public/hooks/mutations/useDeleteBlueprintMutation.js +39 -0
- package/public/hooks/mutations/useDeleteBlueprintTemplateMutation.d.ts +38 -0
- package/public/hooks/mutations/useDeleteBlueprintTemplateMutation.js +39 -0
- package/public/hooks/mutations/useDeleteDatabaseTransferMutation.d.ts +38 -0
- package/public/hooks/mutations/useDeleteDatabaseTransferMutation.js +39 -0
- package/public/hooks/mutations/useDeleteEmbeddingChunkMutation.d.ts +38 -0
- package/public/hooks/mutations/useDeleteEmbeddingChunkMutation.js +39 -0
- package/public/hooks/mutations/useDeleteEnumMutation.d.ts +38 -0
- package/public/hooks/mutations/{useDeleteUuidModuleMutation.js → useDeleteEnumMutation.js} +7 -7
- package/public/hooks/mutations/useRejectDatabaseTransferMutation.d.ts +20 -0
- package/public/hooks/mutations/useRejectDatabaseTransferMutation.js +26 -0
- package/public/hooks/mutations/useUpdateBlueprintMutation.d.ts +40 -0
- package/public/hooks/mutations/useUpdateBlueprintMutation.js +40 -0
- package/public/hooks/mutations/useUpdateBlueprintTemplateMutation.d.ts +40 -0
- package/public/hooks/mutations/useUpdateBlueprintTemplateMutation.js +40 -0
- package/public/hooks/mutations/useUpdateDatabaseTransferMutation.d.ts +40 -0
- package/public/hooks/mutations/useUpdateDatabaseTransferMutation.js +40 -0
- package/public/hooks/mutations/useUpdateEmbeddingChunkMutation.d.ts +40 -0
- package/public/hooks/mutations/useUpdateEmbeddingChunkMutation.js +40 -0
- package/public/hooks/mutations/useUpdateEnumMutation.d.ts +40 -0
- package/public/hooks/mutations/{useUpdateUuidModuleMutation.js → useUpdateEnumMutation.js} +9 -9
- package/public/hooks/queries/index.d.ts +25 -17
- package/public/hooks/queries/index.js +25 -17
- package/public/hooks/queries/useBlueprintQuery.d.ts +65 -0
- package/public/hooks/queries/useBlueprintQuery.js +53 -0
- package/public/hooks/queries/useBlueprintTemplateQuery.d.ts +65 -0
- package/public/hooks/queries/useBlueprintTemplateQuery.js +53 -0
- package/public/hooks/queries/useBlueprintTemplatesQuery.d.ts +69 -0
- package/public/hooks/queries/useBlueprintTemplatesQuery.js +38 -0
- package/public/hooks/queries/useBlueprintsQuery.d.ts +69 -0
- package/public/hooks/queries/useBlueprintsQuery.js +38 -0
- package/public/hooks/queries/useDatabaseTransferQuery.d.ts +65 -0
- package/public/hooks/queries/useDatabaseTransferQuery.js +53 -0
- package/public/hooks/queries/useDatabaseTransfersQuery.d.ts +69 -0
- package/public/hooks/queries/useDatabaseTransfersQuery.js +38 -0
- package/public/hooks/queries/useEmbeddingChunkQuery.d.ts +65 -0
- package/public/hooks/queries/useEmbeddingChunkQuery.js +53 -0
- package/public/hooks/queries/useEmbeddingChunksQuery.d.ts +69 -0
- package/public/hooks/queries/useEmbeddingChunksQuery.js +38 -0
- package/public/hooks/queries/useEnumQuery.d.ts +65 -0
- package/public/hooks/queries/{useUuidModuleQuery.js → useEnumQuery.js} +14 -14
- package/public/hooks/queries/useEnumsQuery.d.ts +69 -0
- package/public/hooks/queries/{useUuidModulesQuery.js → useEnumsQuery.js} +14 -14
- package/public/hooks/query-keys.d.ts +180 -124
- package/public/hooks/query-keys.js +106 -74
- package/public/orm/index.d.ts +81 -48
- package/public/orm/index.js +26 -18
- package/public/orm/input-types.d.ts +2447 -2980
- package/public/orm/input-types.js +26 -1
- package/public/orm/models/blueprint.d.ts +56 -0
- package/public/orm/models/blueprint.js +98 -0
- package/public/orm/models/blueprintTemplate.d.ts +56 -0
- package/public/orm/models/blueprintTemplate.js +98 -0
- package/public/orm/models/databaseTransfer.d.ts +56 -0
- package/public/orm/models/databaseTransfer.js +98 -0
- package/public/orm/models/embeddingChunk.d.ts +56 -0
- package/public/orm/models/embeddingChunk.js +98 -0
- package/public/orm/models/enum.d.ts +56 -0
- package/public/orm/models/{uuidModule.js → enum.js} +25 -25
- package/public/orm/models/index.d.ts +13 -9
- package/public/orm/models/index.js +29 -21
- package/public/orm/mutation/index.d.ts +98 -50
- package/public/orm/mutation/index.js +126 -66
- package/public/schema-types.d.ts +2328 -2206
- package/public/types.d.ts +161 -379
- package/esm/public/hooks/mutations/useCreateUuidModuleMutation.d.ts +0 -34
- package/esm/public/hooks/mutations/useDeleteUuidModuleMutation.d.ts +0 -38
- package/esm/public/hooks/mutations/useUpdateUuidModuleMutation.d.ts +0 -40
- package/esm/public/hooks/queries/useUuidModuleQuery.d.ts +0 -65
- package/esm/public/hooks/queries/useUuidModulesQuery.d.ts +0 -69
- package/esm/public/orm/models/uuidModule.d.ts +0 -56
- package/public/hooks/mutations/useCreateUuidModuleMutation.d.ts +0 -34
- package/public/hooks/mutations/useDeleteUuidModuleMutation.d.ts +0 -38
- package/public/hooks/mutations/useUpdateUuidModuleMutation.d.ts +0 -40
- package/public/hooks/queries/useUuidModuleQuery.d.ts +0 -65
- package/public/hooks/queries/useUuidModulesQuery.d.ts +0 -69
- package/public/orm/models/uuidModule.d.ts +0 -56
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A shareable, versioned schema recipe for the blueprint marketplace. Templates define arrays of secure_table_provision + relation_provision inputs that together describe a complete domain schema (e.g. e-commerce, telemedicine, habit tracker). Templates are never executed directly — they are copied into a blueprint first via copy_template_to_blueprint(). Can be private (owner-only) or public (marketplace-visible).
|
|
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 { BlueprintTemplateSelect, BlueprintTemplateWithRelations, BlueprintTemplatePatch } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { BlueprintTemplateSelect, BlueprintTemplateWithRelations, BlueprintTemplatePatch, } from '../../orm/input-types';
|
|
10
|
+
/**
|
|
11
|
+
* A shareable, versioned schema recipe for the blueprint marketplace. Templates define arrays of secure_table_provision + relation_provision inputs that together describe a complete domain schema (e.g. e-commerce, telemedicine, habit tracker). Templates are never executed directly — they are copied into a blueprint first via copy_template_to_blueprint(). Can be private (owner-only) or public (marketplace-visible).
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* const { mutate, isPending } = useUpdateBlueprintTemplateMutation({
|
|
16
|
+
* selection: { fields: { id: true, name: true } },
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* mutate({ id: 'value-here', blueprintTemplatePatch: { name: 'Updated' } });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function useUpdateBlueprintTemplateMutation<S extends BlueprintTemplateSelect>(params: {
|
|
23
|
+
selection: {
|
|
24
|
+
fields: S & BlueprintTemplateSelect;
|
|
25
|
+
} & HookStrictSelect<NoInfer<S>, BlueprintTemplateSelect>;
|
|
26
|
+
} & Omit<UseMutationOptions<{
|
|
27
|
+
updateBlueprintTemplate: {
|
|
28
|
+
blueprintTemplate: InferSelectResult<BlueprintTemplateWithRelations, S>;
|
|
29
|
+
};
|
|
30
|
+
}, Error, {
|
|
31
|
+
id: string;
|
|
32
|
+
blueprintTemplatePatch: BlueprintTemplatePatch;
|
|
33
|
+
}>, 'mutationFn'>): UseMutationResult<{
|
|
34
|
+
updateBlueprintTemplate: {
|
|
35
|
+
blueprintTemplate: InferSelectResult<BlueprintTemplateWithRelations, S>;
|
|
36
|
+
};
|
|
37
|
+
}, Error, {
|
|
38
|
+
id: string;
|
|
39
|
+
blueprintTemplatePatch: BlueprintTemplatePatch;
|
|
40
|
+
}>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* A shareable, versioned schema recipe for the blueprint marketplace. Templates define arrays of secure_table_provision + relation_provision inputs that together describe a complete domain schema (e.g. e-commerce, telemedicine, habit tracker). Templates are never executed directly — they are copied into a blueprint first via copy_template_to_blueprint(). Can be private (owner-only) or public (marketplace-visible).
|
|
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.useUpdateBlueprintTemplateMutation = useUpdateBlueprintTemplateMutation;
|
|
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 useUpdateBlueprintTemplateMutation(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.blueprintTemplateMutationKeys.all,
|
|
21
|
+
mutationFn: ({ id, blueprintTemplatePatch, }) => (0, client_1.getClient)()
|
|
22
|
+
.blueprintTemplate.update({
|
|
23
|
+
where: {
|
|
24
|
+
id,
|
|
25
|
+
},
|
|
26
|
+
data: blueprintTemplatePatch,
|
|
27
|
+
select: args.select,
|
|
28
|
+
})
|
|
29
|
+
.unwrap(),
|
|
30
|
+
onSuccess: (_, variables) => {
|
|
31
|
+
queryClient.invalidateQueries({
|
|
32
|
+
queryKey: query_keys_1.blueprintTemplateKeys.detail(variables.id),
|
|
33
|
+
});
|
|
34
|
+
queryClient.invalidateQueries({
|
|
35
|
+
queryKey: query_keys_1.blueprintTemplateKeys.lists(),
|
|
36
|
+
});
|
|
37
|
+
},
|
|
38
|
+
...mutationOptions,
|
|
39
|
+
});
|
|
40
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Update mutation hook for DatabaseTransfer
|
|
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 { DatabaseTransferSelect, DatabaseTransferWithRelations, DatabaseTransferPatch } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { DatabaseTransferSelect, DatabaseTransferWithRelations, DatabaseTransferPatch, } from '../../orm/input-types';
|
|
10
|
+
/**
|
|
11
|
+
* Mutation hook for updating a DatabaseTransfer
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* const { mutate, isPending } = useUpdateDatabaseTransferMutation({
|
|
16
|
+
* selection: { fields: { id: true, name: true } },
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* mutate({ id: 'value-here', databaseTransferPatch: { name: 'Updated' } });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function useUpdateDatabaseTransferMutation<S extends DatabaseTransferSelect>(params: {
|
|
23
|
+
selection: {
|
|
24
|
+
fields: S & DatabaseTransferSelect;
|
|
25
|
+
} & HookStrictSelect<NoInfer<S>, DatabaseTransferSelect>;
|
|
26
|
+
} & Omit<UseMutationOptions<{
|
|
27
|
+
updateDatabaseTransfer: {
|
|
28
|
+
databaseTransfer: InferSelectResult<DatabaseTransferWithRelations, S>;
|
|
29
|
+
};
|
|
30
|
+
}, Error, {
|
|
31
|
+
id: string;
|
|
32
|
+
databaseTransferPatch: DatabaseTransferPatch;
|
|
33
|
+
}>, 'mutationFn'>): UseMutationResult<{
|
|
34
|
+
updateDatabaseTransfer: {
|
|
35
|
+
databaseTransfer: InferSelectResult<DatabaseTransferWithRelations, S>;
|
|
36
|
+
};
|
|
37
|
+
}, Error, {
|
|
38
|
+
id: string;
|
|
39
|
+
databaseTransferPatch: DatabaseTransferPatch;
|
|
40
|
+
}>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Update mutation hook for DatabaseTransfer
|
|
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.useUpdateDatabaseTransferMutation = useUpdateDatabaseTransferMutation;
|
|
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 useUpdateDatabaseTransferMutation(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.databaseTransferMutationKeys.all,
|
|
21
|
+
mutationFn: ({ id, databaseTransferPatch, }) => (0, client_1.getClient)()
|
|
22
|
+
.databaseTransfer.update({
|
|
23
|
+
where: {
|
|
24
|
+
id,
|
|
25
|
+
},
|
|
26
|
+
data: databaseTransferPatch,
|
|
27
|
+
select: args.select,
|
|
28
|
+
})
|
|
29
|
+
.unwrap(),
|
|
30
|
+
onSuccess: (_, variables) => {
|
|
31
|
+
queryClient.invalidateQueries({
|
|
32
|
+
queryKey: query_keys_1.databaseTransferKeys.detail(variables.id),
|
|
33
|
+
});
|
|
34
|
+
queryClient.invalidateQueries({
|
|
35
|
+
queryKey: query_keys_1.databaseTransferKeys.lists(),
|
|
36
|
+
});
|
|
37
|
+
},
|
|
38
|
+
...mutationOptions,
|
|
39
|
+
});
|
|
40
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Update mutation hook for EmbeddingChunk
|
|
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 { EmbeddingChunkSelect, EmbeddingChunkWithRelations, EmbeddingChunkPatch } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { EmbeddingChunkSelect, EmbeddingChunkWithRelations, EmbeddingChunkPatch, } from '../../orm/input-types';
|
|
10
|
+
/**
|
|
11
|
+
* Mutation hook for updating a EmbeddingChunk
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* const { mutate, isPending } = useUpdateEmbeddingChunkMutation({
|
|
16
|
+
* selection: { fields: { id: true, name: true } },
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* mutate({ id: 'value-here', embeddingChunkPatch: { name: 'Updated' } });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function useUpdateEmbeddingChunkMutation<S extends EmbeddingChunkSelect>(params: {
|
|
23
|
+
selection: {
|
|
24
|
+
fields: S & EmbeddingChunkSelect;
|
|
25
|
+
} & HookStrictSelect<NoInfer<S>, EmbeddingChunkSelect>;
|
|
26
|
+
} & Omit<UseMutationOptions<{
|
|
27
|
+
updateEmbeddingChunk: {
|
|
28
|
+
embeddingChunk: InferSelectResult<EmbeddingChunkWithRelations, S>;
|
|
29
|
+
};
|
|
30
|
+
}, Error, {
|
|
31
|
+
id: string;
|
|
32
|
+
embeddingChunkPatch: EmbeddingChunkPatch;
|
|
33
|
+
}>, 'mutationFn'>): UseMutationResult<{
|
|
34
|
+
updateEmbeddingChunk: {
|
|
35
|
+
embeddingChunk: InferSelectResult<EmbeddingChunkWithRelations, S>;
|
|
36
|
+
};
|
|
37
|
+
}, Error, {
|
|
38
|
+
id: string;
|
|
39
|
+
embeddingChunkPatch: EmbeddingChunkPatch;
|
|
40
|
+
}>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Update mutation hook for EmbeddingChunk
|
|
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.useUpdateEmbeddingChunkMutation = useUpdateEmbeddingChunkMutation;
|
|
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 useUpdateEmbeddingChunkMutation(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.embeddingChunkMutationKeys.all,
|
|
21
|
+
mutationFn: ({ id, embeddingChunkPatch, }) => (0, client_1.getClient)()
|
|
22
|
+
.embeddingChunk.update({
|
|
23
|
+
where: {
|
|
24
|
+
id,
|
|
25
|
+
},
|
|
26
|
+
data: embeddingChunkPatch,
|
|
27
|
+
select: args.select,
|
|
28
|
+
})
|
|
29
|
+
.unwrap(),
|
|
30
|
+
onSuccess: (_, variables) => {
|
|
31
|
+
queryClient.invalidateQueries({
|
|
32
|
+
queryKey: query_keys_1.embeddingChunkKeys.detail(variables.id),
|
|
33
|
+
});
|
|
34
|
+
queryClient.invalidateQueries({
|
|
35
|
+
queryKey: query_keys_1.embeddingChunkKeys.lists(),
|
|
36
|
+
});
|
|
37
|
+
},
|
|
38
|
+
...mutationOptions,
|
|
39
|
+
});
|
|
40
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Update mutation hook for Enum
|
|
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 { EnumSelect, EnumWithRelations, EnumPatch } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { EnumSelect, EnumWithRelations, EnumPatch } from '../../orm/input-types';
|
|
10
|
+
/**
|
|
11
|
+
* Mutation hook for updating a Enum
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* const { mutate, isPending } = useUpdateEnumMutation({
|
|
16
|
+
* selection: { fields: { id: true, name: true } },
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* mutate({ id: 'value-here', enumPatch: { name: 'Updated' } });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function useUpdateEnumMutation<S extends EnumSelect>(params: {
|
|
23
|
+
selection: {
|
|
24
|
+
fields: S & EnumSelect;
|
|
25
|
+
} & HookStrictSelect<NoInfer<S>, EnumSelect>;
|
|
26
|
+
} & Omit<UseMutationOptions<{
|
|
27
|
+
updateEnum: {
|
|
28
|
+
enum: InferSelectResult<EnumWithRelations, S>;
|
|
29
|
+
};
|
|
30
|
+
}, Error, {
|
|
31
|
+
id: string;
|
|
32
|
+
enumPatch: EnumPatch;
|
|
33
|
+
}>, 'mutationFn'>): UseMutationResult<{
|
|
34
|
+
updateEnum: {
|
|
35
|
+
enum: InferSelectResult<EnumWithRelations, S>;
|
|
36
|
+
};
|
|
37
|
+
}, Error, {
|
|
38
|
+
id: string;
|
|
39
|
+
enumPatch: EnumPatch;
|
|
40
|
+
}>;
|
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Update mutation hook for
|
|
3
|
+
* Update mutation hook for Enum
|
|
4
4
|
* @generated by @constructive-io/graphql-codegen
|
|
5
5
|
* DO NOT EDIT - changes will be overwritten
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.
|
|
8
|
+
exports.useUpdateEnumMutation = useUpdateEnumMutation;
|
|
9
9
|
const react_query_1 = require("@tanstack/react-query");
|
|
10
10
|
const client_1 = require("../client");
|
|
11
11
|
const selection_1 = require("../selection");
|
|
12
12
|
const query_keys_1 = require("../query-keys");
|
|
13
13
|
const mutation_keys_1 = require("../mutation-keys");
|
|
14
|
-
function
|
|
14
|
+
function useUpdateEnumMutation(params) {
|
|
15
15
|
const args = (0, selection_1.buildSelectionArgs)(params.selection);
|
|
16
16
|
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
17
17
|
void _selection;
|
|
18
18
|
const queryClient = (0, react_query_1.useQueryClient)();
|
|
19
19
|
return (0, react_query_1.useMutation)({
|
|
20
|
-
mutationKey: mutation_keys_1.
|
|
21
|
-
mutationFn: ({ id,
|
|
22
|
-
.
|
|
20
|
+
mutationKey: mutation_keys_1.enumMutationKeys.all,
|
|
21
|
+
mutationFn: ({ id, enumPatch }) => (0, client_1.getClient)()
|
|
22
|
+
.enum.update({
|
|
23
23
|
where: {
|
|
24
24
|
id,
|
|
25
25
|
},
|
|
26
|
-
data:
|
|
26
|
+
data: enumPatch,
|
|
27
27
|
select: args.select,
|
|
28
28
|
})
|
|
29
29
|
.unwrap(),
|
|
30
30
|
onSuccess: (_, variables) => {
|
|
31
31
|
queryClient.invalidateQueries({
|
|
32
|
-
queryKey: query_keys_1.
|
|
32
|
+
queryKey: query_keys_1.enumKeys.detail(variables.id),
|
|
33
33
|
});
|
|
34
34
|
queryClient.invalidateQueries({
|
|
35
|
-
queryKey: query_keys_1.
|
|
35
|
+
queryKey: query_keys_1.enumKeys.lists(),
|
|
36
36
|
});
|
|
37
37
|
},
|
|
38
38
|
...mutationOptions,
|
|
@@ -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';
|
|
6
7
|
export * from './useOrgGetManagersQuery';
|
|
7
8
|
export * from './useOrgGetSubordinatesQuery';
|
|
8
|
-
export * from './useGetAllQuery';
|
|
9
9
|
export * from './useObjectsQuery';
|
|
10
10
|
export * from './useObjectQuery';
|
|
11
11
|
export * from './useAppPermissionsQuery';
|
|
@@ -48,6 +48,8 @@ export * from './useViewGrantsQuery';
|
|
|
48
48
|
export * from './useViewGrantQuery';
|
|
49
49
|
export * from './useViewRulesQuery';
|
|
50
50
|
export * from './useViewRuleQuery';
|
|
51
|
+
export * from './useEmbeddingChunksQuery';
|
|
52
|
+
export * from './useEmbeddingChunkQuery';
|
|
51
53
|
export * from './useTableTemplateModulesQuery';
|
|
52
54
|
export * from './useTableTemplateModuleQuery';
|
|
53
55
|
export * from './useSecureTableProvisionsQuery';
|
|
@@ -58,6 +60,8 @@ export * from './useSchemaGrantsQuery';
|
|
|
58
60
|
export * from './useSchemaGrantQuery';
|
|
59
61
|
export * from './useDefaultPrivilegesQuery';
|
|
60
62
|
export * from './useDefaultPrivilegeQuery';
|
|
63
|
+
export * from './useEnumsQuery';
|
|
64
|
+
export * from './useEnumQuery';
|
|
61
65
|
export * from './useApiSchemasQuery';
|
|
62
66
|
export * from './useApiSchemaQuery';
|
|
63
67
|
export * from './useApiModulesQuery';
|
|
@@ -72,6 +76,8 @@ export * from './useSiteThemesQuery';
|
|
|
72
76
|
export * from './useSiteThemeQuery';
|
|
73
77
|
export * from './useTriggerFunctionsQuery';
|
|
74
78
|
export * from './useTriggerFunctionQuery';
|
|
79
|
+
export * from './useDatabaseTransfersQuery';
|
|
80
|
+
export * from './useDatabaseTransferQuery';
|
|
75
81
|
export * from './useApisQuery';
|
|
76
82
|
export * from './useApiQuery';
|
|
77
83
|
export * from './useSitesQuery';
|
|
@@ -118,8 +124,10 @@ export * from './useUserAuthModulesQuery';
|
|
|
118
124
|
export * from './useUserAuthModuleQuery';
|
|
119
125
|
export * from './useUsersModulesQuery';
|
|
120
126
|
export * from './useUsersModuleQuery';
|
|
121
|
-
export * from './
|
|
122
|
-
export * from './
|
|
127
|
+
export * from './useBlueprintsQuery';
|
|
128
|
+
export * from './useBlueprintQuery';
|
|
129
|
+
export * from './useBlueprintTemplatesQuery';
|
|
130
|
+
export * from './useBlueprintTemplateQuery';
|
|
123
131
|
export * from './useDatabaseProvisionModulesQuery';
|
|
124
132
|
export * from './useDatabaseProvisionModuleQuery';
|
|
125
133
|
export * from './useAppAdminGrantsQuery';
|
|
@@ -142,6 +150,8 @@ export * from './useOrgChartEdgesQuery';
|
|
|
142
150
|
export * from './useOrgChartEdgeQuery';
|
|
143
151
|
export * from './useOrgChartEdgeGrantsQuery';
|
|
144
152
|
export * from './useOrgChartEdgeGrantQuery';
|
|
153
|
+
export * from './useOrgPermissionDefaultsQuery';
|
|
154
|
+
export * from './useOrgPermissionDefaultQuery';
|
|
145
155
|
export * from './useAppLimitsQuery';
|
|
146
156
|
export * from './useAppLimitQuery';
|
|
147
157
|
export * from './useOrgLimitsQuery';
|
|
@@ -150,6 +160,16 @@ export * from './useAppStepsQuery';
|
|
|
150
160
|
export * from './useAppStepQuery';
|
|
151
161
|
export * from './useAppAchievementsQuery';
|
|
152
162
|
export * from './useAppAchievementQuery';
|
|
163
|
+
export * from './useAppLevelsQuery';
|
|
164
|
+
export * from './useAppLevelQuery';
|
|
165
|
+
export * from './useEmailsQuery';
|
|
166
|
+
export * from './useEmailQuery';
|
|
167
|
+
export * from './usePhoneNumbersQuery';
|
|
168
|
+
export * from './usePhoneNumberQuery';
|
|
169
|
+
export * from './useCryptoAddressesQuery';
|
|
170
|
+
export * from './useCryptoAddressQuery';
|
|
171
|
+
export * from './useConnectedAccountsQuery';
|
|
172
|
+
export * from './useConnectedAccountQuery';
|
|
153
173
|
export * from './useInvitesQuery';
|
|
154
174
|
export * from './useInviteQuery';
|
|
155
175
|
export * from './useClaimedInvitesQuery';
|
|
@@ -158,26 +178,20 @@ export * from './useOrgInvitesQuery';
|
|
|
158
178
|
export * from './useOrgInviteQuery';
|
|
159
179
|
export * from './useOrgClaimedInvitesQuery';
|
|
160
180
|
export * from './useOrgClaimedInviteQuery';
|
|
181
|
+
export * from './useAuditLogsQuery';
|
|
182
|
+
export * from './useAuditLogQuery';
|
|
161
183
|
export * from './useRefsQuery';
|
|
162
184
|
export * from './useRefQuery';
|
|
163
185
|
export * from './useStoresQuery';
|
|
164
186
|
export * from './useStoreQuery';
|
|
165
187
|
export * from './useAppPermissionDefaultsQuery';
|
|
166
188
|
export * from './useAppPermissionDefaultQuery';
|
|
167
|
-
export * from './useCryptoAddressesQuery';
|
|
168
|
-
export * from './useCryptoAddressQuery';
|
|
169
189
|
export * from './useRoleTypesQuery';
|
|
170
190
|
export * from './useRoleTypeQuery';
|
|
171
|
-
export * from './useOrgPermissionDefaultsQuery';
|
|
172
|
-
export * from './useOrgPermissionDefaultQuery';
|
|
173
|
-
export * from './usePhoneNumbersQuery';
|
|
174
|
-
export * from './usePhoneNumberQuery';
|
|
175
191
|
export * from './useAppLimitDefaultsQuery';
|
|
176
192
|
export * from './useAppLimitDefaultQuery';
|
|
177
193
|
export * from './useOrgLimitDefaultsQuery';
|
|
178
194
|
export * from './useOrgLimitDefaultQuery';
|
|
179
|
-
export * from './useConnectedAccountsQuery';
|
|
180
|
-
export * from './useConnectedAccountQuery';
|
|
181
195
|
export * from './useNodeTypeRegistriesQuery';
|
|
182
196
|
export * from './useNodeTypeRegistryQuery';
|
|
183
197
|
export * from './useMembershipTypesQuery';
|
|
@@ -190,14 +204,8 @@ export * from './useRlsModulesQuery';
|
|
|
190
204
|
export * from './useRlsModuleQuery';
|
|
191
205
|
export * from './useOrgMembershipDefaultsQuery';
|
|
192
206
|
export * from './useOrgMembershipDefaultQuery';
|
|
193
|
-
export * from './useAuditLogsQuery';
|
|
194
|
-
export * from './useAuditLogQuery';
|
|
195
|
-
export * from './useAppLevelsQuery';
|
|
196
|
-
export * from './useAppLevelQuery';
|
|
197
207
|
export * from './useSqlMigrationsQuery';
|
|
198
208
|
export * from './useSqlMigrationQuery';
|
|
199
|
-
export * from './useEmailsQuery';
|
|
200
|
-
export * from './useEmailQuery';
|
|
201
209
|
export * from './useUsersQuery';
|
|
202
210
|
export * from './useUserQuery';
|
|
203
211
|
export * from './useAstMigrationsQuery';
|
|
@@ -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);
|
|
22
23
|
__exportStar(require("./useOrgGetManagersQuery"), exports);
|
|
23
24
|
__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);
|
|
@@ -64,6 +64,8 @@ __exportStar(require("./useViewGrantsQuery"), exports);
|
|
|
64
64
|
__exportStar(require("./useViewGrantQuery"), exports);
|
|
65
65
|
__exportStar(require("./useViewRulesQuery"), exports);
|
|
66
66
|
__exportStar(require("./useViewRuleQuery"), exports);
|
|
67
|
+
__exportStar(require("./useEmbeddingChunksQuery"), exports);
|
|
68
|
+
__exportStar(require("./useEmbeddingChunkQuery"), exports);
|
|
67
69
|
__exportStar(require("./useTableTemplateModulesQuery"), exports);
|
|
68
70
|
__exportStar(require("./useTableTemplateModuleQuery"), exports);
|
|
69
71
|
__exportStar(require("./useSecureTableProvisionsQuery"), exports);
|
|
@@ -74,6 +76,8 @@ __exportStar(require("./useSchemaGrantsQuery"), exports);
|
|
|
74
76
|
__exportStar(require("./useSchemaGrantQuery"), exports);
|
|
75
77
|
__exportStar(require("./useDefaultPrivilegesQuery"), exports);
|
|
76
78
|
__exportStar(require("./useDefaultPrivilegeQuery"), exports);
|
|
79
|
+
__exportStar(require("./useEnumsQuery"), exports);
|
|
80
|
+
__exportStar(require("./useEnumQuery"), exports);
|
|
77
81
|
__exportStar(require("./useApiSchemasQuery"), exports);
|
|
78
82
|
__exportStar(require("./useApiSchemaQuery"), exports);
|
|
79
83
|
__exportStar(require("./useApiModulesQuery"), exports);
|
|
@@ -88,6 +92,8 @@ __exportStar(require("./useSiteThemesQuery"), exports);
|
|
|
88
92
|
__exportStar(require("./useSiteThemeQuery"), exports);
|
|
89
93
|
__exportStar(require("./useTriggerFunctionsQuery"), exports);
|
|
90
94
|
__exportStar(require("./useTriggerFunctionQuery"), exports);
|
|
95
|
+
__exportStar(require("./useDatabaseTransfersQuery"), exports);
|
|
96
|
+
__exportStar(require("./useDatabaseTransferQuery"), exports);
|
|
91
97
|
__exportStar(require("./useApisQuery"), exports);
|
|
92
98
|
__exportStar(require("./useApiQuery"), exports);
|
|
93
99
|
__exportStar(require("./useSitesQuery"), exports);
|
|
@@ -134,8 +140,10 @@ __exportStar(require("./useUserAuthModulesQuery"), exports);
|
|
|
134
140
|
__exportStar(require("./useUserAuthModuleQuery"), exports);
|
|
135
141
|
__exportStar(require("./useUsersModulesQuery"), exports);
|
|
136
142
|
__exportStar(require("./useUsersModuleQuery"), exports);
|
|
137
|
-
__exportStar(require("./
|
|
138
|
-
__exportStar(require("./
|
|
143
|
+
__exportStar(require("./useBlueprintsQuery"), exports);
|
|
144
|
+
__exportStar(require("./useBlueprintQuery"), exports);
|
|
145
|
+
__exportStar(require("./useBlueprintTemplatesQuery"), exports);
|
|
146
|
+
__exportStar(require("./useBlueprintTemplateQuery"), exports);
|
|
139
147
|
__exportStar(require("./useDatabaseProvisionModulesQuery"), exports);
|
|
140
148
|
__exportStar(require("./useDatabaseProvisionModuleQuery"), exports);
|
|
141
149
|
__exportStar(require("./useAppAdminGrantsQuery"), exports);
|
|
@@ -158,6 +166,8 @@ __exportStar(require("./useOrgChartEdgesQuery"), exports);
|
|
|
158
166
|
__exportStar(require("./useOrgChartEdgeQuery"), exports);
|
|
159
167
|
__exportStar(require("./useOrgChartEdgeGrantsQuery"), exports);
|
|
160
168
|
__exportStar(require("./useOrgChartEdgeGrantQuery"), exports);
|
|
169
|
+
__exportStar(require("./useOrgPermissionDefaultsQuery"), exports);
|
|
170
|
+
__exportStar(require("./useOrgPermissionDefaultQuery"), exports);
|
|
161
171
|
__exportStar(require("./useAppLimitsQuery"), exports);
|
|
162
172
|
__exportStar(require("./useAppLimitQuery"), exports);
|
|
163
173
|
__exportStar(require("./useOrgLimitsQuery"), exports);
|
|
@@ -166,6 +176,16 @@ __exportStar(require("./useAppStepsQuery"), exports);
|
|
|
166
176
|
__exportStar(require("./useAppStepQuery"), exports);
|
|
167
177
|
__exportStar(require("./useAppAchievementsQuery"), exports);
|
|
168
178
|
__exportStar(require("./useAppAchievementQuery"), exports);
|
|
179
|
+
__exportStar(require("./useAppLevelsQuery"), exports);
|
|
180
|
+
__exportStar(require("./useAppLevelQuery"), exports);
|
|
181
|
+
__exportStar(require("./useEmailsQuery"), exports);
|
|
182
|
+
__exportStar(require("./useEmailQuery"), exports);
|
|
183
|
+
__exportStar(require("./usePhoneNumbersQuery"), exports);
|
|
184
|
+
__exportStar(require("./usePhoneNumberQuery"), exports);
|
|
185
|
+
__exportStar(require("./useCryptoAddressesQuery"), exports);
|
|
186
|
+
__exportStar(require("./useCryptoAddressQuery"), exports);
|
|
187
|
+
__exportStar(require("./useConnectedAccountsQuery"), exports);
|
|
188
|
+
__exportStar(require("./useConnectedAccountQuery"), exports);
|
|
169
189
|
__exportStar(require("./useInvitesQuery"), exports);
|
|
170
190
|
__exportStar(require("./useInviteQuery"), exports);
|
|
171
191
|
__exportStar(require("./useClaimedInvitesQuery"), exports);
|
|
@@ -174,26 +194,20 @@ __exportStar(require("./useOrgInvitesQuery"), exports);
|
|
|
174
194
|
__exportStar(require("./useOrgInviteQuery"), exports);
|
|
175
195
|
__exportStar(require("./useOrgClaimedInvitesQuery"), exports);
|
|
176
196
|
__exportStar(require("./useOrgClaimedInviteQuery"), exports);
|
|
197
|
+
__exportStar(require("./useAuditLogsQuery"), exports);
|
|
198
|
+
__exportStar(require("./useAuditLogQuery"), exports);
|
|
177
199
|
__exportStar(require("./useRefsQuery"), exports);
|
|
178
200
|
__exportStar(require("./useRefQuery"), exports);
|
|
179
201
|
__exportStar(require("./useStoresQuery"), exports);
|
|
180
202
|
__exportStar(require("./useStoreQuery"), exports);
|
|
181
203
|
__exportStar(require("./useAppPermissionDefaultsQuery"), exports);
|
|
182
204
|
__exportStar(require("./useAppPermissionDefaultQuery"), exports);
|
|
183
|
-
__exportStar(require("./useCryptoAddressesQuery"), exports);
|
|
184
|
-
__exportStar(require("./useCryptoAddressQuery"), exports);
|
|
185
205
|
__exportStar(require("./useRoleTypesQuery"), exports);
|
|
186
206
|
__exportStar(require("./useRoleTypeQuery"), exports);
|
|
187
|
-
__exportStar(require("./useOrgPermissionDefaultsQuery"), exports);
|
|
188
|
-
__exportStar(require("./useOrgPermissionDefaultQuery"), exports);
|
|
189
|
-
__exportStar(require("./usePhoneNumbersQuery"), exports);
|
|
190
|
-
__exportStar(require("./usePhoneNumberQuery"), exports);
|
|
191
207
|
__exportStar(require("./useAppLimitDefaultsQuery"), exports);
|
|
192
208
|
__exportStar(require("./useAppLimitDefaultQuery"), exports);
|
|
193
209
|
__exportStar(require("./useOrgLimitDefaultsQuery"), exports);
|
|
194
210
|
__exportStar(require("./useOrgLimitDefaultQuery"), exports);
|
|
195
|
-
__exportStar(require("./useConnectedAccountsQuery"), exports);
|
|
196
|
-
__exportStar(require("./useConnectedAccountQuery"), exports);
|
|
197
211
|
__exportStar(require("./useNodeTypeRegistriesQuery"), exports);
|
|
198
212
|
__exportStar(require("./useNodeTypeRegistryQuery"), exports);
|
|
199
213
|
__exportStar(require("./useMembershipTypesQuery"), exports);
|
|
@@ -206,14 +220,8 @@ __exportStar(require("./useRlsModulesQuery"), exports);
|
|
|
206
220
|
__exportStar(require("./useRlsModuleQuery"), exports);
|
|
207
221
|
__exportStar(require("./useOrgMembershipDefaultsQuery"), exports);
|
|
208
222
|
__exportStar(require("./useOrgMembershipDefaultQuery"), exports);
|
|
209
|
-
__exportStar(require("./useAuditLogsQuery"), exports);
|
|
210
|
-
__exportStar(require("./useAuditLogQuery"), exports);
|
|
211
|
-
__exportStar(require("./useAppLevelsQuery"), exports);
|
|
212
|
-
__exportStar(require("./useAppLevelQuery"), exports);
|
|
213
223
|
__exportStar(require("./useSqlMigrationsQuery"), exports);
|
|
214
224
|
__exportStar(require("./useSqlMigrationQuery"), exports);
|
|
215
|
-
__exportStar(require("./useEmailsQuery"), exports);
|
|
216
|
-
__exportStar(require("./useEmailQuery"), exports);
|
|
217
225
|
__exportStar(require("./useUsersQuery"), exports);
|
|
218
226
|
__exportStar(require("./useUserQuery"), exports);
|
|
219
227
|
__exportStar(require("./useAstMigrationsQuery"), exports);
|
|
@@ -0,0 +1,65 @@
|
|
|
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.
|
|
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 { BlueprintSelect, BlueprintWithRelations } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { BlueprintSelect, BlueprintWithRelations } from '../../orm/input-types';
|
|
10
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
+
export declare const blueprintQueryKey: (id: string | number) => readonly ["blueprint", "detail", string | number];
|
|
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.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* const { data, isLoading } = useBlueprintQuery({
|
|
18
|
+
* id: 'some-id',
|
|
19
|
+
* selection: { fields: { id: true, name: true } },
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare function useBlueprintQuery<S extends BlueprintSelect, TData = {
|
|
24
|
+
blueprint: InferSelectResult<BlueprintWithRelations, S> | null;
|
|
25
|
+
}>(params: {
|
|
26
|
+
id: string;
|
|
27
|
+
selection: {
|
|
28
|
+
fields: S;
|
|
29
|
+
} & HookStrictSelect<NoInfer<S>, BlueprintSelect>;
|
|
30
|
+
} & Omit<UseQueryOptions<{
|
|
31
|
+
blueprint: InferSelectResult<BlueprintWithRelations, S> | null;
|
|
32
|
+
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
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.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* const data = await fetchBlueprintQuery({
|
|
39
|
+
* id: 'some-id',
|
|
40
|
+
* selection: { fields: { id: true } },
|
|
41
|
+
* });
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
export declare function fetchBlueprintQuery<S extends BlueprintSelect>(params: {
|
|
45
|
+
id: string;
|
|
46
|
+
selection: {
|
|
47
|
+
fields: S;
|
|
48
|
+
} & HookStrictSelect<NoInfer<S>, BlueprintSelect>;
|
|
49
|
+
}): Promise<{
|
|
50
|
+
blueprint: InferSelectResult<BlueprintWithRelations, S> | null;
|
|
51
|
+
}>;
|
|
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.
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* await prefetchBlueprintQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
export declare function prefetchBlueprintQuery<S extends BlueprintSelect>(queryClient: QueryClient, params: {
|
|
61
|
+
id: string;
|
|
62
|
+
selection: {
|
|
63
|
+
fields: S;
|
|
64
|
+
} & HookStrictSelect<NoInfer<S>, BlueprintSelect>;
|
|
65
|
+
}): Promise<void>;
|