@constructive-io/react 0.7.2 → 0.8.1
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
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Create mutation hook for UuidModule
|
|
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 { UuidModuleSelect, UuidModuleWithRelations, CreateUuidModuleInput } from '../../orm/input-types';
|
|
8
|
-
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
-
export type { UuidModuleSelect, UuidModuleWithRelations, CreateUuidModuleInput, } from '../../orm/input-types';
|
|
10
|
-
/**
|
|
11
|
-
* Mutation hook for creating a UuidModule
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```tsx
|
|
15
|
-
* const { mutate, isPending } = useCreateUuidModuleMutation({
|
|
16
|
-
* selection: { fields: { id: true, name: true } },
|
|
17
|
-
* });
|
|
18
|
-
*
|
|
19
|
-
* mutate({ name: 'New item' });
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
export declare function useCreateUuidModuleMutation<S extends UuidModuleSelect>(params: {
|
|
23
|
-
selection: {
|
|
24
|
-
fields: S & UuidModuleSelect;
|
|
25
|
-
} & HookStrictSelect<NoInfer<S>, UuidModuleSelect>;
|
|
26
|
-
} & Omit<UseMutationOptions<{
|
|
27
|
-
createUuidModule: {
|
|
28
|
-
uuidModule: InferSelectResult<UuidModuleWithRelations, S>;
|
|
29
|
-
};
|
|
30
|
-
}, Error, CreateUuidModuleInput['uuidModule']>, 'mutationFn'>): UseMutationResult<{
|
|
31
|
-
createUuidModule: {
|
|
32
|
-
uuidModule: InferSelectResult<UuidModuleWithRelations, S>;
|
|
33
|
-
};
|
|
34
|
-
}, Error, CreateUuidModuleInput['uuidModule']>;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Delete mutation hook for UuidModule
|
|
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 { UuidModuleSelect, UuidModuleWithRelations } from '../../orm/input-types';
|
|
8
|
-
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
-
export type { UuidModuleSelect, UuidModuleWithRelations } from '../../orm/input-types';
|
|
10
|
-
/**
|
|
11
|
-
* Mutation hook for deleting a UuidModule with typed selection
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```tsx
|
|
15
|
-
* const { mutate, isPending } = useDeleteUuidModuleMutation({
|
|
16
|
-
* selection: { fields: { id: true } },
|
|
17
|
-
* });
|
|
18
|
-
*
|
|
19
|
-
* mutate({ id: 'value-to-delete' });
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
export declare function useDeleteUuidModuleMutation<S extends UuidModuleSelect>(params: {
|
|
23
|
-
selection: {
|
|
24
|
-
fields: S & UuidModuleSelect;
|
|
25
|
-
} & HookStrictSelect<NoInfer<S>, UuidModuleSelect>;
|
|
26
|
-
} & Omit<UseMutationOptions<{
|
|
27
|
-
deleteUuidModule: {
|
|
28
|
-
uuidModule: InferSelectResult<UuidModuleWithRelations, S>;
|
|
29
|
-
};
|
|
30
|
-
}, Error, {
|
|
31
|
-
id: string;
|
|
32
|
-
}>, 'mutationFn'>): UseMutationResult<{
|
|
33
|
-
deleteUuidModule: {
|
|
34
|
-
uuidModule: InferSelectResult<UuidModuleWithRelations, S>;
|
|
35
|
-
};
|
|
36
|
-
}, Error, {
|
|
37
|
-
id: string;
|
|
38
|
-
}>;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Update mutation hook for UuidModule
|
|
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 { UuidModuleSelect, UuidModuleWithRelations, UuidModulePatch } from '../../orm/input-types';
|
|
8
|
-
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
-
export type { UuidModuleSelect, UuidModuleWithRelations, UuidModulePatch, } from '../../orm/input-types';
|
|
10
|
-
/**
|
|
11
|
-
* Mutation hook for updating a UuidModule
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```tsx
|
|
15
|
-
* const { mutate, isPending } = useUpdateUuidModuleMutation({
|
|
16
|
-
* selection: { fields: { id: true, name: true } },
|
|
17
|
-
* });
|
|
18
|
-
*
|
|
19
|
-
* mutate({ id: 'value-here', uuidModulePatch: { name: 'Updated' } });
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
export declare function useUpdateUuidModuleMutation<S extends UuidModuleSelect>(params: {
|
|
23
|
-
selection: {
|
|
24
|
-
fields: S & UuidModuleSelect;
|
|
25
|
-
} & HookStrictSelect<NoInfer<S>, UuidModuleSelect>;
|
|
26
|
-
} & Omit<UseMutationOptions<{
|
|
27
|
-
updateUuidModule: {
|
|
28
|
-
uuidModule: InferSelectResult<UuidModuleWithRelations, S>;
|
|
29
|
-
};
|
|
30
|
-
}, Error, {
|
|
31
|
-
id: string;
|
|
32
|
-
uuidModulePatch: UuidModulePatch;
|
|
33
|
-
}>, 'mutationFn'>): UseMutationResult<{
|
|
34
|
-
updateUuidModule: {
|
|
35
|
-
uuidModule: InferSelectResult<UuidModuleWithRelations, S>;
|
|
36
|
-
};
|
|
37
|
-
}, Error, {
|
|
38
|
-
id: string;
|
|
39
|
-
uuidModulePatch: UuidModulePatch;
|
|
40
|
-
}>;
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Single item query hook for UuidModule
|
|
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 { UuidModuleSelect, UuidModuleWithRelations } from '../../orm/input-types';
|
|
8
|
-
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
-
export type { UuidModuleSelect, UuidModuleWithRelations } from '../../orm/input-types';
|
|
10
|
-
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
-
export declare const uuidModuleQueryKey: (id: string | number) => readonly ["uuidmodule", "detail", string | number];
|
|
12
|
-
/**
|
|
13
|
-
* Query hook for fetching a single UuidModule
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* ```tsx
|
|
17
|
-
* const { data, isLoading } = useUuidModuleQuery({
|
|
18
|
-
* id: 'some-id',
|
|
19
|
-
* selection: { fields: { id: true, name: true } },
|
|
20
|
-
* });
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
export declare function useUuidModuleQuery<S extends UuidModuleSelect, TData = {
|
|
24
|
-
uuidModule: InferSelectResult<UuidModuleWithRelations, S> | null;
|
|
25
|
-
}>(params: {
|
|
26
|
-
id: string;
|
|
27
|
-
selection: {
|
|
28
|
-
fields: S;
|
|
29
|
-
} & HookStrictSelect<NoInfer<S>, UuidModuleSelect>;
|
|
30
|
-
} & Omit<UseQueryOptions<{
|
|
31
|
-
uuidModule: InferSelectResult<UuidModuleWithRelations, S> | null;
|
|
32
|
-
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
33
|
-
/**
|
|
34
|
-
* Fetch a single UuidModule without React hooks
|
|
35
|
-
*
|
|
36
|
-
* @example
|
|
37
|
-
* ```ts
|
|
38
|
-
* const data = await fetchUuidModuleQuery({
|
|
39
|
-
* id: 'some-id',
|
|
40
|
-
* selection: { fields: { id: true } },
|
|
41
|
-
* });
|
|
42
|
-
* ```
|
|
43
|
-
*/
|
|
44
|
-
export declare function fetchUuidModuleQuery<S extends UuidModuleSelect>(params: {
|
|
45
|
-
id: string;
|
|
46
|
-
selection: {
|
|
47
|
-
fields: S;
|
|
48
|
-
} & HookStrictSelect<NoInfer<S>, UuidModuleSelect>;
|
|
49
|
-
}): Promise<{
|
|
50
|
-
uuidModule: InferSelectResult<UuidModuleWithRelations, S> | null;
|
|
51
|
-
}>;
|
|
52
|
-
/**
|
|
53
|
-
* Prefetch a single UuidModule for SSR or cache warming
|
|
54
|
-
*
|
|
55
|
-
* @example
|
|
56
|
-
* ```ts
|
|
57
|
-
* await prefetchUuidModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
|
|
58
|
-
* ```
|
|
59
|
-
*/
|
|
60
|
-
export declare function prefetchUuidModuleQuery<S extends UuidModuleSelect>(queryClient: QueryClient, params: {
|
|
61
|
-
id: string;
|
|
62
|
-
selection: {
|
|
63
|
-
fields: S;
|
|
64
|
-
} & HookStrictSelect<NoInfer<S>, UuidModuleSelect>;
|
|
65
|
-
}): Promise<void>;
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* List query hook for UuidModule
|
|
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 { UuidModuleSelect, UuidModuleWithRelations, UuidModuleFilter, UuidModuleOrderBy } from '../../orm/input-types';
|
|
9
|
-
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
|
|
10
|
-
export type { UuidModuleSelect, UuidModuleWithRelations, UuidModuleFilter, UuidModuleOrderBy, } from '../../orm/input-types';
|
|
11
|
-
/** Query key factory - re-exported from query-keys.ts */
|
|
12
|
-
export declare const uuidModulesQueryKey: (variables?: object) => readonly ["uuidmodule", "list", object];
|
|
13
|
-
/**
|
|
14
|
-
* Query hook for fetching UuidModule list
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* ```tsx
|
|
18
|
-
* const { data, isLoading } = useUuidModulesQuery({
|
|
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 useUuidModulesQuery<S extends UuidModuleSelect, TData = {
|
|
29
|
-
uuidModules: ConnectionResult<InferSelectResult<UuidModuleWithRelations, S>>;
|
|
30
|
-
}>(params: {
|
|
31
|
-
selection: {
|
|
32
|
-
fields: S;
|
|
33
|
-
} & Omit<ListSelectionConfig<S, UuidModuleFilter, UuidModuleOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, UuidModuleSelect>;
|
|
34
|
-
} & Omit<UseQueryOptions<{
|
|
35
|
-
uuidModules: ConnectionResult<InferSelectResult<UuidModuleWithRelations, S>>;
|
|
36
|
-
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
37
|
-
/**
|
|
38
|
-
* Fetch UuidModule list without React hooks
|
|
39
|
-
*
|
|
40
|
-
* @example
|
|
41
|
-
* ```ts
|
|
42
|
-
* const data = await fetchUuidModulesQuery({
|
|
43
|
-
* selection: {
|
|
44
|
-
* fields: { id: true },
|
|
45
|
-
* first: 10,
|
|
46
|
-
* },
|
|
47
|
-
* });
|
|
48
|
-
* ```
|
|
49
|
-
*/
|
|
50
|
-
export declare function fetchUuidModulesQuery<S extends UuidModuleSelect>(params: {
|
|
51
|
-
selection: {
|
|
52
|
-
fields: S;
|
|
53
|
-
} & Omit<ListSelectionConfig<S, UuidModuleFilter, UuidModuleOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, UuidModuleSelect>;
|
|
54
|
-
}): Promise<{
|
|
55
|
-
uuidModules: ConnectionResult<InferSelectResult<UuidModuleWithRelations, S>>;
|
|
56
|
-
}>;
|
|
57
|
-
/**
|
|
58
|
-
* Prefetch UuidModule list for SSR or cache warming
|
|
59
|
-
*
|
|
60
|
-
* @example
|
|
61
|
-
* ```ts
|
|
62
|
-
* await prefetchUuidModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
|
|
63
|
-
* ```
|
|
64
|
-
*/
|
|
65
|
-
export declare function prefetchUuidModulesQuery<S extends UuidModuleSelect>(queryClient: QueryClient, params: {
|
|
66
|
-
selection: {
|
|
67
|
-
fields: S;
|
|
68
|
-
} & Omit<ListSelectionConfig<S, UuidModuleFilter, UuidModuleOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, UuidModuleSelect>;
|
|
69
|
-
}): Promise<void>;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* UuidModule model for ORM client
|
|
3
|
-
* @generated by @constructive-io/graphql-codegen
|
|
4
|
-
* DO NOT EDIT - changes will be overwritten
|
|
5
|
-
*/
|
|
6
|
-
import { OrmClient } from '../client';
|
|
7
|
-
import { QueryBuilder } from '../query-builder';
|
|
8
|
-
import type { ConnectionResult, FindManyArgs, FindFirstArgs, CreateArgs, UpdateArgs, DeleteArgs, InferSelectResult, StrictSelect } from '../select-types';
|
|
9
|
-
import type { UuidModuleWithRelations, UuidModuleSelect, UuidModuleFilter, UuidModuleOrderBy, CreateUuidModuleInput, UuidModulePatch } from '../input-types';
|
|
10
|
-
export declare class UuidModuleModel {
|
|
11
|
-
private client;
|
|
12
|
-
constructor(client: OrmClient);
|
|
13
|
-
findMany<S extends UuidModuleSelect>(args: FindManyArgs<S, UuidModuleFilter, never, UuidModuleOrderBy> & {
|
|
14
|
-
select: S;
|
|
15
|
-
} & StrictSelect<S, UuidModuleSelect>): QueryBuilder<{
|
|
16
|
-
uuidModules: ConnectionResult<InferSelectResult<UuidModuleWithRelations, S>>;
|
|
17
|
-
}>;
|
|
18
|
-
findFirst<S extends UuidModuleSelect>(args: FindFirstArgs<S, UuidModuleFilter> & {
|
|
19
|
-
select: S;
|
|
20
|
-
} & StrictSelect<S, UuidModuleSelect>): QueryBuilder<{
|
|
21
|
-
uuidModules: {
|
|
22
|
-
nodes: InferSelectResult<UuidModuleWithRelations, S>[];
|
|
23
|
-
};
|
|
24
|
-
}>;
|
|
25
|
-
findOne<S extends UuidModuleSelect>(args: {
|
|
26
|
-
id: string;
|
|
27
|
-
select: S;
|
|
28
|
-
} & StrictSelect<S, UuidModuleSelect>): QueryBuilder<{
|
|
29
|
-
uuidModule: InferSelectResult<UuidModuleWithRelations, S> | null;
|
|
30
|
-
}>;
|
|
31
|
-
create<S extends UuidModuleSelect>(args: CreateArgs<S, CreateUuidModuleInput['uuidModule']> & {
|
|
32
|
-
select: S;
|
|
33
|
-
} & StrictSelect<S, UuidModuleSelect>): QueryBuilder<{
|
|
34
|
-
createUuidModule: {
|
|
35
|
-
uuidModule: InferSelectResult<UuidModuleWithRelations, S>;
|
|
36
|
-
};
|
|
37
|
-
}>;
|
|
38
|
-
update<S extends UuidModuleSelect>(args: UpdateArgs<S, {
|
|
39
|
-
id: string;
|
|
40
|
-
}, UuidModulePatch> & {
|
|
41
|
-
select: S;
|
|
42
|
-
} & StrictSelect<S, UuidModuleSelect>): QueryBuilder<{
|
|
43
|
-
updateUuidModule: {
|
|
44
|
-
uuidModule: InferSelectResult<UuidModuleWithRelations, S>;
|
|
45
|
-
};
|
|
46
|
-
}>;
|
|
47
|
-
delete<S extends UuidModuleSelect>(args: DeleteArgs<{
|
|
48
|
-
id: string;
|
|
49
|
-
}, S> & {
|
|
50
|
-
select: S;
|
|
51
|
-
} & StrictSelect<S, UuidModuleSelect>): QueryBuilder<{
|
|
52
|
-
deleteUuidModule: {
|
|
53
|
-
uuidModule: InferSelectResult<UuidModuleWithRelations, S>;
|
|
54
|
-
};
|
|
55
|
-
}>;
|
|
56
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Create mutation hook for UuidModule
|
|
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 { UuidModuleSelect, UuidModuleWithRelations, CreateUuidModuleInput } from '../../orm/input-types';
|
|
8
|
-
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
-
export type { UuidModuleSelect, UuidModuleWithRelations, CreateUuidModuleInput, } from '../../orm/input-types';
|
|
10
|
-
/**
|
|
11
|
-
* Mutation hook for creating a UuidModule
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```tsx
|
|
15
|
-
* const { mutate, isPending } = useCreateUuidModuleMutation({
|
|
16
|
-
* selection: { fields: { id: true, name: true } },
|
|
17
|
-
* });
|
|
18
|
-
*
|
|
19
|
-
* mutate({ name: 'New item' });
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
export declare function useCreateUuidModuleMutation<S extends UuidModuleSelect>(params: {
|
|
23
|
-
selection: {
|
|
24
|
-
fields: S & UuidModuleSelect;
|
|
25
|
-
} & HookStrictSelect<NoInfer<S>, UuidModuleSelect>;
|
|
26
|
-
} & Omit<UseMutationOptions<{
|
|
27
|
-
createUuidModule: {
|
|
28
|
-
uuidModule: InferSelectResult<UuidModuleWithRelations, S>;
|
|
29
|
-
};
|
|
30
|
-
}, Error, CreateUuidModuleInput['uuidModule']>, 'mutationFn'>): UseMutationResult<{
|
|
31
|
-
createUuidModule: {
|
|
32
|
-
uuidModule: InferSelectResult<UuidModuleWithRelations, S>;
|
|
33
|
-
};
|
|
34
|
-
}, Error, CreateUuidModuleInput['uuidModule']>;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Delete mutation hook for UuidModule
|
|
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 { UuidModuleSelect, UuidModuleWithRelations } from '../../orm/input-types';
|
|
8
|
-
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
-
export type { UuidModuleSelect, UuidModuleWithRelations } from '../../orm/input-types';
|
|
10
|
-
/**
|
|
11
|
-
* Mutation hook for deleting a UuidModule with typed selection
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```tsx
|
|
15
|
-
* const { mutate, isPending } = useDeleteUuidModuleMutation({
|
|
16
|
-
* selection: { fields: { id: true } },
|
|
17
|
-
* });
|
|
18
|
-
*
|
|
19
|
-
* mutate({ id: 'value-to-delete' });
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
export declare function useDeleteUuidModuleMutation<S extends UuidModuleSelect>(params: {
|
|
23
|
-
selection: {
|
|
24
|
-
fields: S & UuidModuleSelect;
|
|
25
|
-
} & HookStrictSelect<NoInfer<S>, UuidModuleSelect>;
|
|
26
|
-
} & Omit<UseMutationOptions<{
|
|
27
|
-
deleteUuidModule: {
|
|
28
|
-
uuidModule: InferSelectResult<UuidModuleWithRelations, S>;
|
|
29
|
-
};
|
|
30
|
-
}, Error, {
|
|
31
|
-
id: string;
|
|
32
|
-
}>, 'mutationFn'>): UseMutationResult<{
|
|
33
|
-
deleteUuidModule: {
|
|
34
|
-
uuidModule: InferSelectResult<UuidModuleWithRelations, S>;
|
|
35
|
-
};
|
|
36
|
-
}, Error, {
|
|
37
|
-
id: string;
|
|
38
|
-
}>;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Update mutation hook for UuidModule
|
|
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 { UuidModuleSelect, UuidModuleWithRelations, UuidModulePatch } from '../../orm/input-types';
|
|
8
|
-
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
-
export type { UuidModuleSelect, UuidModuleWithRelations, UuidModulePatch, } from '../../orm/input-types';
|
|
10
|
-
/**
|
|
11
|
-
* Mutation hook for updating a UuidModule
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```tsx
|
|
15
|
-
* const { mutate, isPending } = useUpdateUuidModuleMutation({
|
|
16
|
-
* selection: { fields: { id: true, name: true } },
|
|
17
|
-
* });
|
|
18
|
-
*
|
|
19
|
-
* mutate({ id: 'value-here', uuidModulePatch: { name: 'Updated' } });
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
export declare function useUpdateUuidModuleMutation<S extends UuidModuleSelect>(params: {
|
|
23
|
-
selection: {
|
|
24
|
-
fields: S & UuidModuleSelect;
|
|
25
|
-
} & HookStrictSelect<NoInfer<S>, UuidModuleSelect>;
|
|
26
|
-
} & Omit<UseMutationOptions<{
|
|
27
|
-
updateUuidModule: {
|
|
28
|
-
uuidModule: InferSelectResult<UuidModuleWithRelations, S>;
|
|
29
|
-
};
|
|
30
|
-
}, Error, {
|
|
31
|
-
id: string;
|
|
32
|
-
uuidModulePatch: UuidModulePatch;
|
|
33
|
-
}>, 'mutationFn'>): UseMutationResult<{
|
|
34
|
-
updateUuidModule: {
|
|
35
|
-
uuidModule: InferSelectResult<UuidModuleWithRelations, S>;
|
|
36
|
-
};
|
|
37
|
-
}, Error, {
|
|
38
|
-
id: string;
|
|
39
|
-
uuidModulePatch: UuidModulePatch;
|
|
40
|
-
}>;
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Single item query hook for UuidModule
|
|
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 { UuidModuleSelect, UuidModuleWithRelations } from '../../orm/input-types';
|
|
8
|
-
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
-
export type { UuidModuleSelect, UuidModuleWithRelations } from '../../orm/input-types';
|
|
10
|
-
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
-
export declare const uuidModuleQueryKey: (id: string | number) => readonly ["uuidmodule", "detail", string | number];
|
|
12
|
-
/**
|
|
13
|
-
* Query hook for fetching a single UuidModule
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* ```tsx
|
|
17
|
-
* const { data, isLoading } = useUuidModuleQuery({
|
|
18
|
-
* id: 'some-id',
|
|
19
|
-
* selection: { fields: { id: true, name: true } },
|
|
20
|
-
* });
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
export declare function useUuidModuleQuery<S extends UuidModuleSelect, TData = {
|
|
24
|
-
uuidModule: InferSelectResult<UuidModuleWithRelations, S> | null;
|
|
25
|
-
}>(params: {
|
|
26
|
-
id: string;
|
|
27
|
-
selection: {
|
|
28
|
-
fields: S;
|
|
29
|
-
} & HookStrictSelect<NoInfer<S>, UuidModuleSelect>;
|
|
30
|
-
} & Omit<UseQueryOptions<{
|
|
31
|
-
uuidModule: InferSelectResult<UuidModuleWithRelations, S> | null;
|
|
32
|
-
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
33
|
-
/**
|
|
34
|
-
* Fetch a single UuidModule without React hooks
|
|
35
|
-
*
|
|
36
|
-
* @example
|
|
37
|
-
* ```ts
|
|
38
|
-
* const data = await fetchUuidModuleQuery({
|
|
39
|
-
* id: 'some-id',
|
|
40
|
-
* selection: { fields: { id: true } },
|
|
41
|
-
* });
|
|
42
|
-
* ```
|
|
43
|
-
*/
|
|
44
|
-
export declare function fetchUuidModuleQuery<S extends UuidModuleSelect>(params: {
|
|
45
|
-
id: string;
|
|
46
|
-
selection: {
|
|
47
|
-
fields: S;
|
|
48
|
-
} & HookStrictSelect<NoInfer<S>, UuidModuleSelect>;
|
|
49
|
-
}): Promise<{
|
|
50
|
-
uuidModule: InferSelectResult<UuidModuleWithRelations, S> | null;
|
|
51
|
-
}>;
|
|
52
|
-
/**
|
|
53
|
-
* Prefetch a single UuidModule for SSR or cache warming
|
|
54
|
-
*
|
|
55
|
-
* @example
|
|
56
|
-
* ```ts
|
|
57
|
-
* await prefetchUuidModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
|
|
58
|
-
* ```
|
|
59
|
-
*/
|
|
60
|
-
export declare function prefetchUuidModuleQuery<S extends UuidModuleSelect>(queryClient: QueryClient, params: {
|
|
61
|
-
id: string;
|
|
62
|
-
selection: {
|
|
63
|
-
fields: S;
|
|
64
|
-
} & HookStrictSelect<NoInfer<S>, UuidModuleSelect>;
|
|
65
|
-
}): Promise<void>;
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* List query hook for UuidModule
|
|
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 { UuidModuleSelect, UuidModuleWithRelations, UuidModuleFilter, UuidModuleOrderBy } from '../../orm/input-types';
|
|
9
|
-
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
|
|
10
|
-
export type { UuidModuleSelect, UuidModuleWithRelations, UuidModuleFilter, UuidModuleOrderBy, } from '../../orm/input-types';
|
|
11
|
-
/** Query key factory - re-exported from query-keys.ts */
|
|
12
|
-
export declare const uuidModulesQueryKey: (variables?: object) => readonly ["uuidmodule", "list", object];
|
|
13
|
-
/**
|
|
14
|
-
* Query hook for fetching UuidModule list
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* ```tsx
|
|
18
|
-
* const { data, isLoading } = useUuidModulesQuery({
|
|
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 useUuidModulesQuery<S extends UuidModuleSelect, TData = {
|
|
29
|
-
uuidModules: ConnectionResult<InferSelectResult<UuidModuleWithRelations, S>>;
|
|
30
|
-
}>(params: {
|
|
31
|
-
selection: {
|
|
32
|
-
fields: S;
|
|
33
|
-
} & Omit<ListSelectionConfig<S, UuidModuleFilter, UuidModuleOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, UuidModuleSelect>;
|
|
34
|
-
} & Omit<UseQueryOptions<{
|
|
35
|
-
uuidModules: ConnectionResult<InferSelectResult<UuidModuleWithRelations, S>>;
|
|
36
|
-
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
37
|
-
/**
|
|
38
|
-
* Fetch UuidModule list without React hooks
|
|
39
|
-
*
|
|
40
|
-
* @example
|
|
41
|
-
* ```ts
|
|
42
|
-
* const data = await fetchUuidModulesQuery({
|
|
43
|
-
* selection: {
|
|
44
|
-
* fields: { id: true },
|
|
45
|
-
* first: 10,
|
|
46
|
-
* },
|
|
47
|
-
* });
|
|
48
|
-
* ```
|
|
49
|
-
*/
|
|
50
|
-
export declare function fetchUuidModulesQuery<S extends UuidModuleSelect>(params: {
|
|
51
|
-
selection: {
|
|
52
|
-
fields: S;
|
|
53
|
-
} & Omit<ListSelectionConfig<S, UuidModuleFilter, UuidModuleOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, UuidModuleSelect>;
|
|
54
|
-
}): Promise<{
|
|
55
|
-
uuidModules: ConnectionResult<InferSelectResult<UuidModuleWithRelations, S>>;
|
|
56
|
-
}>;
|
|
57
|
-
/**
|
|
58
|
-
* Prefetch UuidModule list for SSR or cache warming
|
|
59
|
-
*
|
|
60
|
-
* @example
|
|
61
|
-
* ```ts
|
|
62
|
-
* await prefetchUuidModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
|
|
63
|
-
* ```
|
|
64
|
-
*/
|
|
65
|
-
export declare function prefetchUuidModulesQuery<S extends UuidModuleSelect>(queryClient: QueryClient, params: {
|
|
66
|
-
selection: {
|
|
67
|
-
fields: S;
|
|
68
|
-
} & Omit<ListSelectionConfig<S, UuidModuleFilter, UuidModuleOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, UuidModuleSelect>;
|
|
69
|
-
}): Promise<void>;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* UuidModule model for ORM client
|
|
3
|
-
* @generated by @constructive-io/graphql-codegen
|
|
4
|
-
* DO NOT EDIT - changes will be overwritten
|
|
5
|
-
*/
|
|
6
|
-
import { OrmClient } from '../client';
|
|
7
|
-
import { QueryBuilder } from '../query-builder';
|
|
8
|
-
import type { ConnectionResult, FindManyArgs, FindFirstArgs, CreateArgs, UpdateArgs, DeleteArgs, InferSelectResult, StrictSelect } from '../select-types';
|
|
9
|
-
import type { UuidModuleWithRelations, UuidModuleSelect, UuidModuleFilter, UuidModuleOrderBy, CreateUuidModuleInput, UuidModulePatch } from '../input-types';
|
|
10
|
-
export declare class UuidModuleModel {
|
|
11
|
-
private client;
|
|
12
|
-
constructor(client: OrmClient);
|
|
13
|
-
findMany<S extends UuidModuleSelect>(args: FindManyArgs<S, UuidModuleFilter, never, UuidModuleOrderBy> & {
|
|
14
|
-
select: S;
|
|
15
|
-
} & StrictSelect<S, UuidModuleSelect>): QueryBuilder<{
|
|
16
|
-
uuidModules: ConnectionResult<InferSelectResult<UuidModuleWithRelations, S>>;
|
|
17
|
-
}>;
|
|
18
|
-
findFirst<S extends UuidModuleSelect>(args: FindFirstArgs<S, UuidModuleFilter> & {
|
|
19
|
-
select: S;
|
|
20
|
-
} & StrictSelect<S, UuidModuleSelect>): QueryBuilder<{
|
|
21
|
-
uuidModules: {
|
|
22
|
-
nodes: InferSelectResult<UuidModuleWithRelations, S>[];
|
|
23
|
-
};
|
|
24
|
-
}>;
|
|
25
|
-
findOne<S extends UuidModuleSelect>(args: {
|
|
26
|
-
id: string;
|
|
27
|
-
select: S;
|
|
28
|
-
} & StrictSelect<S, UuidModuleSelect>): QueryBuilder<{
|
|
29
|
-
uuidModule: InferSelectResult<UuidModuleWithRelations, S> | null;
|
|
30
|
-
}>;
|
|
31
|
-
create<S extends UuidModuleSelect>(args: CreateArgs<S, CreateUuidModuleInput['uuidModule']> & {
|
|
32
|
-
select: S;
|
|
33
|
-
} & StrictSelect<S, UuidModuleSelect>): QueryBuilder<{
|
|
34
|
-
createUuidModule: {
|
|
35
|
-
uuidModule: InferSelectResult<UuidModuleWithRelations, S>;
|
|
36
|
-
};
|
|
37
|
-
}>;
|
|
38
|
-
update<S extends UuidModuleSelect>(args: UpdateArgs<S, {
|
|
39
|
-
id: string;
|
|
40
|
-
}, UuidModulePatch> & {
|
|
41
|
-
select: S;
|
|
42
|
-
} & StrictSelect<S, UuidModuleSelect>): QueryBuilder<{
|
|
43
|
-
updateUuidModule: {
|
|
44
|
-
uuidModule: InferSelectResult<UuidModuleWithRelations, S>;
|
|
45
|
-
};
|
|
46
|
-
}>;
|
|
47
|
-
delete<S extends UuidModuleSelect>(args: DeleteArgs<{
|
|
48
|
-
id: string;
|
|
49
|
-
}, S> & {
|
|
50
|
-
select: S;
|
|
51
|
-
} & StrictSelect<S, UuidModuleSelect>): QueryBuilder<{
|
|
52
|
-
deleteUuidModule: {
|
|
53
|
-
uuidModule: InferSelectResult<UuidModuleWithRelations, S>;
|
|
54
|
-
};
|
|
55
|
-
}>;
|
|
56
|
-
}
|