@constructive-io/react 0.11.4 → 0.12.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/admin/hooks/index.d.ts +1 -1
- package/admin/hooks/index.js +1 -1
- package/admin/hooks/invalidation.d.ts +18 -12
- package/admin/hooks/invalidation.js +48 -32
- package/admin/hooks/mutation-keys.d.ts +36 -24
- package/admin/hooks/mutation-keys.js +22 -15
- package/admin/hooks/mutations/index.d.ts +9 -6
- package/admin/hooks/mutations/index.js +9 -6
- package/admin/hooks/mutations/useCreateOrgMemberProfileMutation.d.ts +34 -0
- package/admin/hooks/mutations/useCreateOrgMemberProfileMutation.js +34 -0
- package/admin/hooks/mutations/useDeleteOrgMemberProfileMutation.d.ts +38 -0
- package/{public/hooks/mutations/useDeleteConnectedAccountMutation.js → admin/hooks/mutations/useDeleteOrgMemberProfileMutation.js} +7 -7
- package/admin/hooks/mutations/useUpdateOrgMemberProfileMutation.d.ts +40 -0
- package/{auth/hooks/mutations/useUpdateConnectedAccountMutation.js → admin/hooks/mutations/useUpdateOrgMemberProfileMutation.js} +9 -9
- package/admin/hooks/queries/index.d.ts +6 -4
- package/admin/hooks/queries/index.js +6 -4
- package/admin/hooks/queries/useOrgMemberProfileQuery.d.ts +65 -0
- package/{public/hooks/queries/useConnectedAccountQuery.js → admin/hooks/queries/useOrgMemberProfileQuery.js} +14 -14
- package/admin/hooks/queries/useOrgMemberProfilesQuery.d.ts +69 -0
- package/admin/hooks/queries/useOrgMemberProfilesQuery.js +38 -0
- package/admin/hooks/query-keys.d.ts +42 -28
- package/admin/hooks/query-keys.js +25 -17
- package/admin/orm/index.d.ts +6 -4
- package/admin/orm/index.js +6 -4
- package/admin/orm/input-types.d.ts +503 -295
- package/admin/orm/models/index.d.ts +3 -2
- package/admin/orm/models/index.js +7 -5
- package/admin/orm/models/orgMemberProfile.d.ts +56 -0
- package/{auth/orm/models/connectedAccount.js → admin/orm/models/orgMemberProfile.js} +26 -26
- package/admin/schema-types.d.ts +449 -288
- package/admin/types.d.ts +40 -22
- package/auth/hooks/index.d.ts +1 -1
- package/auth/hooks/index.js +1 -1
- package/auth/hooks/invalidation.d.ts +6 -6
- package/auth/hooks/invalidation.js +16 -16
- package/auth/hooks/mutation-keys.d.ts +28 -18
- package/auth/hooks/mutation-keys.js +30 -15
- package/auth/hooks/mutations/index.d.ts +9 -6
- package/auth/hooks/mutations/index.js +9 -6
- package/auth/hooks/mutations/useCreateApiKeyMutation.d.ts +20 -0
- package/auth/hooks/mutations/{useOneTimeTokenMutation.js → useCreateApiKeyMutation.js} +5 -5
- package/auth/hooks/mutations/useCreateUserConnectedAccountMutation.d.ts +34 -0
- package/auth/hooks/mutations/{useCreateConnectedAccountMutation.js → useCreateUserConnectedAccountMutation.js} +6 -6
- package/auth/hooks/mutations/useDisconnectAccountMutation.d.ts +20 -0
- package/auth/hooks/mutations/{useSignInOneTimeTokenMutation.js → useDisconnectAccountMutation.js} +5 -5
- package/auth/hooks/mutations/useProvisionNewUserMutation.d.ts +20 -0
- package/{public/hooks/mutations/useSignInOneTimeTokenMutation.js → auth/hooks/mutations/useProvisionNewUserMutation.js} +5 -5
- package/auth/hooks/mutations/useRequestCrossOriginTokenMutation.d.ts +20 -0
- package/auth/hooks/mutations/useRequestCrossOriginTokenMutation.js +26 -0
- package/auth/hooks/mutations/useRevokeApiKeyMutation.d.ts +20 -0
- package/{public/hooks/mutations/useOneTimeTokenMutation.js → auth/hooks/mutations/useRevokeApiKeyMutation.js} +5 -5
- package/auth/hooks/mutations/useRevokeSessionMutation.d.ts +20 -0
- package/auth/hooks/mutations/useRevokeSessionMutation.js +26 -0
- package/auth/hooks/mutations/useSignInCrossOriginMutation.d.ts +20 -0
- package/auth/hooks/mutations/useSignInCrossOriginMutation.js +26 -0
- package/auth/hooks/queries/index.d.ts +4 -3
- package/auth/hooks/queries/index.js +4 -3
- package/auth/hooks/queries/useRequireStepUpQuery.d.ts +53 -0
- package/auth/hooks/queries/useRequireStepUpQuery.js +53 -0
- package/auth/hooks/queries/useUserConnectedAccountQuery.d.ts +65 -0
- package/auth/hooks/queries/useUserConnectedAccountQuery.js +53 -0
- package/auth/hooks/queries/useUserConnectedAccountsQuery.d.ts +69 -0
- package/auth/hooks/queries/useUserConnectedAccountsQuery.js +38 -0
- package/auth/hooks/query-keys.d.ts +18 -16
- package/auth/hooks/query-keys.js +11 -10
- package/auth/orm/index.d.ts +45 -15
- package/auth/orm/index.js +2 -2
- package/auth/orm/input-types.d.ts +186 -251
- package/auth/orm/input-types.js +0 -1
- package/auth/orm/models/index.d.ts +1 -1
- package/auth/orm/models/index.js +3 -3
- package/auth/orm/models/userConnectedAccount.d.ts +38 -0
- package/auth/orm/models/userConnectedAccount.js +76 -0
- package/auth/orm/mutation/index.d.ts +56 -16
- package/auth/orm/mutation/index.js +78 -18
- package/auth/orm/query/index.d.ts +12 -4
- package/auth/orm/query/index.js +19 -7
- package/auth/schema-types.d.ts +112 -119
- package/auth/types.d.ts +10 -10
- package/esm/admin/hooks/index.d.ts +1 -1
- package/esm/admin/hooks/index.js +1 -1
- package/esm/admin/hooks/invalidation.d.ts +18 -12
- package/esm/admin/hooks/invalidation.js +49 -33
- package/esm/admin/hooks/mutation-keys.d.ts +36 -24
- package/esm/admin/hooks/mutation-keys.js +21 -14
- package/esm/admin/hooks/mutations/index.d.ts +9 -6
- package/esm/admin/hooks/mutations/index.js +9 -6
- package/esm/admin/hooks/mutations/useCreateOrgMemberProfileMutation.d.ts +34 -0
- package/esm/admin/hooks/mutations/useCreateOrgMemberProfileMutation.js +31 -0
- package/esm/admin/hooks/mutations/useDeleteOrgMemberProfileMutation.d.ts +38 -0
- package/esm/{public/hooks/mutations/useDeleteConnectedAccountMutation.js → admin/hooks/mutations/useDeleteOrgMemberProfileMutation.js} +8 -8
- package/esm/admin/hooks/mutations/useUpdateOrgMemberProfileMutation.d.ts +40 -0
- package/esm/{public/hooks/mutations/useUpdateConnectedAccountMutation.js → admin/hooks/mutations/useUpdateOrgMemberProfileMutation.js} +10 -10
- package/esm/admin/hooks/queries/index.d.ts +6 -4
- package/esm/admin/hooks/queries/index.js +6 -4
- package/esm/admin/hooks/queries/useOrgMemberProfileQuery.d.ts +65 -0
- package/esm/admin/hooks/queries/useOrgMemberProfileQuery.js +47 -0
- package/esm/admin/hooks/queries/useOrgMemberProfilesQuery.d.ts +69 -0
- package/esm/{public/hooks/queries/useConnectedAccountsQuery.js → admin/hooks/queries/useOrgMemberProfilesQuery.js} +11 -11
- package/esm/admin/hooks/query-keys.d.ts +42 -28
- package/esm/admin/hooks/query-keys.js +24 -16
- package/esm/admin/orm/index.d.ts +6 -4
- package/esm/admin/orm/index.js +6 -4
- package/esm/admin/orm/input-types.d.ts +503 -295
- package/esm/admin/orm/models/index.d.ts +3 -2
- package/esm/admin/orm/models/index.js +3 -2
- package/esm/admin/orm/models/orgMemberProfile.d.ts +56 -0
- package/esm/{auth/orm/models/connectedAccount.js → admin/orm/models/orgMemberProfile.js} +24 -24
- package/esm/admin/schema-types.d.ts +449 -288
- package/esm/admin/types.d.ts +40 -22
- package/esm/auth/hooks/index.d.ts +1 -1
- package/esm/auth/hooks/index.js +1 -1
- package/esm/auth/hooks/invalidation.d.ts +6 -6
- package/esm/auth/hooks/invalidation.js +17 -17
- package/esm/auth/hooks/mutation-keys.d.ts +28 -18
- package/esm/auth/hooks/mutation-keys.js +29 -14
- package/esm/auth/hooks/mutations/index.d.ts +9 -6
- package/esm/auth/hooks/mutations/index.js +9 -6
- package/esm/auth/hooks/mutations/useCreateApiKeyMutation.d.ts +20 -0
- package/esm/auth/hooks/mutations/{useOneTimeTokenMutation.js → useCreateApiKeyMutation.js} +4 -4
- package/esm/auth/hooks/mutations/useCreateUserConnectedAccountMutation.d.ts +34 -0
- package/esm/{public/hooks/mutations/useCreateConnectedAccountMutation.js → auth/hooks/mutations/useCreateUserConnectedAccountMutation.js} +7 -7
- package/esm/auth/hooks/mutations/useDisconnectAccountMutation.d.ts +20 -0
- package/esm/{public/hooks/mutations/useSignInOneTimeTokenMutation.js → auth/hooks/mutations/useDisconnectAccountMutation.js} +4 -4
- package/esm/auth/hooks/mutations/useProvisionNewUserMutation.d.ts +20 -0
- package/esm/auth/hooks/mutations/{useSignInOneTimeTokenMutation.js → useProvisionNewUserMutation.js} +4 -4
- package/esm/auth/hooks/mutations/useRequestCrossOriginTokenMutation.d.ts +20 -0
- package/esm/auth/hooks/mutations/useRequestCrossOriginTokenMutation.js +23 -0
- package/esm/auth/hooks/mutations/useRevokeApiKeyMutation.d.ts +20 -0
- package/esm/{public/hooks/mutations/useOneTimeTokenMutation.js → auth/hooks/mutations/useRevokeApiKeyMutation.js} +4 -4
- package/esm/auth/hooks/mutations/useRevokeSessionMutation.d.ts +20 -0
- package/esm/auth/hooks/mutations/useRevokeSessionMutation.js +23 -0
- package/esm/auth/hooks/mutations/useSignInCrossOriginMutation.d.ts +20 -0
- package/esm/auth/hooks/mutations/useSignInCrossOriginMutation.js +23 -0
- package/esm/auth/hooks/queries/index.d.ts +4 -3
- package/esm/auth/hooks/queries/index.js +4 -3
- package/esm/auth/hooks/queries/useRequireStepUpQuery.d.ts +53 -0
- package/esm/auth/hooks/queries/useRequireStepUpQuery.js +47 -0
- package/esm/auth/hooks/queries/useUserConnectedAccountQuery.d.ts +65 -0
- package/esm/{public/hooks/queries/useTableTemplateModuleQuery.js → auth/hooks/queries/useUserConnectedAccountQuery.js} +11 -11
- package/esm/auth/hooks/queries/useUserConnectedAccountsQuery.d.ts +69 -0
- package/esm/auth/hooks/queries/useUserConnectedAccountsQuery.js +32 -0
- package/esm/auth/hooks/query-keys.d.ts +18 -16
- package/esm/auth/hooks/query-keys.js +10 -9
- package/esm/auth/orm/index.d.ts +45 -15
- package/esm/auth/orm/index.js +2 -2
- package/esm/auth/orm/input-types.d.ts +186 -251
- package/esm/auth/orm/input-types.js +0 -1
- package/esm/auth/orm/models/index.d.ts +1 -1
- package/esm/auth/orm/models/index.js +1 -1
- package/esm/auth/orm/models/userConnectedAccount.d.ts +38 -0
- package/esm/auth/orm/models/userConnectedAccount.js +72 -0
- package/esm/auth/orm/mutation/index.d.ts +56 -16
- package/esm/auth/orm/mutation/index.js +78 -18
- package/esm/auth/orm/query/index.d.ts +12 -4
- package/esm/auth/orm/query/index.js +19 -7
- package/esm/auth/schema-types.d.ts +112 -119
- package/esm/auth/types.d.ts +10 -10
- package/esm/public/hooks/index.d.ts +1 -1
- package/esm/public/hooks/index.js +1 -1
- package/esm/public/hooks/invalidation.d.ts +47 -17
- package/esm/public/hooks/invalidation.js +122 -42
- package/esm/public/hooks/mutation-keys.d.ts +112 -40
- package/esm/public/hooks/mutation-keys.js +83 -27
- package/esm/public/hooks/mutations/index.d.ts +31 -12
- package/esm/public/hooks/mutations/index.js +31 -12
- package/esm/public/hooks/mutations/useCreateApiKeyMutation.d.ts +20 -0
- package/esm/public/hooks/mutations/useCreateApiKeyMutation.js +23 -0
- package/esm/public/hooks/mutations/useCreateDevicesModuleMutation.d.ts +34 -0
- package/esm/public/hooks/mutations/{useCreateTableTemplateModuleMutation.js → useCreateDevicesModuleMutation.js} +7 -7
- package/esm/public/hooks/mutations/useCreateEntityTypeProvisionMutation.d.ts +48 -0
- package/esm/public/hooks/mutations/useCreateEntityTypeProvisionMutation.js +38 -0
- package/esm/public/hooks/mutations/useCreateOrgMemberProfileMutation.d.ts +34 -0
- package/esm/public/hooks/mutations/useCreateOrgMemberProfileMutation.js +31 -0
- package/esm/public/hooks/mutations/useCreateSessionSecretsModuleMutation.d.ts +34 -0
- package/esm/public/hooks/mutations/useCreateSessionSecretsModuleMutation.js +31 -0
- package/esm/public/hooks/mutations/useCreateSpatialRelationMutation.d.ts +34 -0
- package/esm/{auth/hooks/mutations/useCreateConnectedAccountMutation.js → public/hooks/mutations/useCreateSpatialRelationMutation.js} +7 -7
- package/esm/public/hooks/mutations/useCreateUserConnectedAccountMutation.d.ts +34 -0
- package/esm/public/hooks/mutations/useCreateUserConnectedAccountMutation.js +31 -0
- package/esm/public/hooks/mutations/useCreateWebauthnCredentialsModuleMutation.d.ts +34 -0
- package/esm/public/hooks/mutations/useCreateWebauthnCredentialsModuleMutation.js +31 -0
- package/esm/public/hooks/mutations/useDeleteDevicesModuleMutation.d.ts +38 -0
- package/esm/public/hooks/mutations/{useDeleteTableTemplateModuleMutation.js → useDeleteDevicesModuleMutation.js} +8 -8
- package/esm/public/hooks/mutations/useDeleteEntityTypeProvisionMutation.d.ts +52 -0
- package/esm/public/hooks/mutations/useDeleteEntityTypeProvisionMutation.js +43 -0
- package/esm/public/hooks/mutations/useDeleteOrgMemberProfileMutation.d.ts +38 -0
- package/esm/public/hooks/mutations/useDeleteOrgMemberProfileMutation.js +36 -0
- package/esm/public/hooks/mutations/useDeleteSessionSecretsModuleMutation.d.ts +38 -0
- package/esm/public/hooks/mutations/useDeleteSessionSecretsModuleMutation.js +36 -0
- package/esm/public/hooks/mutations/useDeleteSpatialRelationMutation.d.ts +38 -0
- package/esm/{auth/hooks/mutations/useDeleteConnectedAccountMutation.js → public/hooks/mutations/useDeleteSpatialRelationMutation.js} +8 -8
- package/esm/public/hooks/mutations/useDeleteWebauthnCredentialsModuleMutation.d.ts +38 -0
- package/esm/public/hooks/mutations/useDeleteWebauthnCredentialsModuleMutation.js +36 -0
- package/esm/public/hooks/mutations/useDisconnectAccountMutation.d.ts +20 -0
- package/esm/public/hooks/mutations/useDisconnectAccountMutation.js +23 -0
- package/esm/public/hooks/mutations/useProvisionNewUserMutation.d.ts +20 -0
- package/esm/public/hooks/mutations/useProvisionNewUserMutation.js +23 -0
- package/esm/public/hooks/mutations/useProvisionSpatialRelationMutation.d.ts +20 -0
- package/esm/public/hooks/mutations/useProvisionSpatialRelationMutation.js +23 -0
- package/esm/public/hooks/mutations/useRequestCrossOriginTokenMutation.d.ts +20 -0
- package/esm/public/hooks/mutations/useRequestCrossOriginTokenMutation.js +23 -0
- package/esm/public/hooks/mutations/useRevokeApiKeyMutation.d.ts +20 -0
- package/esm/public/hooks/mutations/useRevokeApiKeyMutation.js +23 -0
- package/esm/public/hooks/mutations/useRevokeSessionMutation.d.ts +20 -0
- package/esm/public/hooks/mutations/useRevokeSessionMutation.js +23 -0
- package/esm/public/hooks/mutations/useSignInCrossOriginMutation.d.ts +20 -0
- package/esm/public/hooks/mutations/useSignInCrossOriginMutation.js +23 -0
- package/esm/public/hooks/mutations/useUpdateDevicesModuleMutation.d.ts +40 -0
- package/esm/public/hooks/mutations/{useUpdateTableTemplateModuleMutation.js → useUpdateDevicesModuleMutation.js} +10 -10
- package/esm/public/hooks/mutations/useUpdateEntityTypeProvisionMutation.d.ts +54 -0
- package/esm/public/hooks/mutations/useUpdateEntityTypeProvisionMutation.js +44 -0
- package/esm/public/hooks/mutations/useUpdateOrgMemberProfileMutation.d.ts +40 -0
- package/esm/public/hooks/mutations/useUpdateOrgMemberProfileMutation.js +37 -0
- package/esm/public/hooks/mutations/useUpdateSessionSecretsModuleMutation.d.ts +40 -0
- package/esm/public/hooks/mutations/useUpdateSessionSecretsModuleMutation.js +37 -0
- package/esm/public/hooks/mutations/useUpdateSpatialRelationMutation.d.ts +40 -0
- package/esm/{auth/hooks/mutations/useUpdateConnectedAccountMutation.js → public/hooks/mutations/useUpdateSpatialRelationMutation.js} +10 -10
- package/esm/public/hooks/mutations/useUpdateWebauthnCredentialsModuleMutation.d.ts +40 -0
- package/esm/public/hooks/mutations/useUpdateWebauthnCredentialsModuleMutation.js +37 -0
- package/esm/public/hooks/queries/index.d.ts +19 -7
- package/esm/public/hooks/queries/index.js +19 -7
- package/esm/public/hooks/queries/useDevicesModuleQuery.d.ts +65 -0
- package/esm/{auth/hooks/queries/useConnectedAccountQuery.js → public/hooks/queries/useDevicesModuleQuery.js} +11 -11
- package/esm/public/hooks/queries/useDevicesModulesQuery.d.ts +69 -0
- package/esm/public/hooks/queries/useDevicesModulesQuery.js +32 -0
- package/esm/public/hooks/queries/useEntityTypeProvisionQuery.d.ts +93 -0
- package/esm/public/hooks/queries/useEntityTypeProvisionQuery.js +54 -0
- package/esm/public/hooks/queries/useEntityTypeProvisionsQuery.d.ts +97 -0
- package/esm/public/hooks/queries/useEntityTypeProvisionsQuery.js +39 -0
- package/esm/public/hooks/queries/useOrgMemberProfileQuery.d.ts +65 -0
- package/esm/public/hooks/queries/useOrgMemberProfileQuery.js +47 -0
- package/esm/public/hooks/queries/useOrgMemberProfilesQuery.d.ts +69 -0
- package/esm/{auth/hooks/queries/useConnectedAccountsQuery.js → public/hooks/queries/useOrgMemberProfilesQuery.js} +11 -11
- package/esm/public/hooks/queries/useRequireStepUpQuery.d.ts +53 -0
- package/esm/public/hooks/queries/useRequireStepUpQuery.js +47 -0
- package/esm/public/hooks/queries/useResolveBlueprintFieldQuery.d.ts +53 -0
- package/esm/public/hooks/queries/useResolveBlueprintFieldQuery.js +47 -0
- package/esm/public/hooks/queries/useSessionSecretsModuleQuery.d.ts +65 -0
- package/esm/public/hooks/queries/useSessionSecretsModuleQuery.js +47 -0
- package/esm/public/hooks/queries/useSessionSecretsModulesQuery.d.ts +69 -0
- package/esm/public/hooks/queries/useSessionSecretsModulesQuery.js +32 -0
- package/esm/public/hooks/queries/useSpatialRelationQuery.d.ts +65 -0
- package/esm/public/hooks/queries/{useConnectedAccountQuery.js → useSpatialRelationQuery.js} +11 -11
- package/esm/public/hooks/queries/useSpatialRelationsQuery.d.ts +69 -0
- package/esm/public/hooks/queries/useSpatialRelationsQuery.js +32 -0
- package/esm/public/hooks/queries/useUserConnectedAccountQuery.d.ts +65 -0
- package/esm/public/hooks/queries/useUserConnectedAccountQuery.js +47 -0
- package/esm/public/hooks/queries/useUserConnectedAccountsQuery.d.ts +69 -0
- package/esm/public/hooks/queries/useUserConnectedAccountsQuery.js +32 -0
- package/esm/public/hooks/queries/useWebauthnCredentialsModuleQuery.d.ts +65 -0
- package/esm/public/hooks/queries/useWebauthnCredentialsModuleQuery.js +47 -0
- package/esm/public/hooks/queries/useWebauthnCredentialsModulesQuery.d.ts +69 -0
- package/esm/public/hooks/queries/useWebauthnCredentialsModulesQuery.js +32 -0
- package/esm/public/hooks/query-keys.d.ts +116 -42
- package/esm/public/hooks/query-keys.js +66 -24
- package/esm/public/orm/index.d.ts +69 -19
- package/esm/public/orm/index.js +16 -6
- package/esm/public/orm/input-types.d.ts +2047 -640
- package/esm/public/orm/input-types.js +15 -6
- package/esm/public/orm/models/devicesModule.d.ts +56 -0
- package/esm/public/orm/models/devicesModule.js +96 -0
- package/esm/public/orm/models/entityTypeProvision.d.ts +56 -0
- package/esm/public/orm/models/{tableTemplateModule.js → entityTypeProvision.js} +24 -24
- package/esm/public/orm/models/index.d.ts +8 -3
- package/esm/public/orm/models/index.js +8 -3
- package/esm/public/orm/models/orgMemberProfile.d.ts +56 -0
- package/esm/public/orm/models/{connectedAccount.js → orgMemberProfile.js} +24 -24
- package/esm/public/orm/models/sessionSecretsModule.d.ts +56 -0
- package/esm/public/orm/models/sessionSecretsModule.js +96 -0
- package/esm/public/orm/models/spatialRelation.d.ts +56 -0
- package/esm/public/orm/models/spatialRelation.js +96 -0
- package/esm/public/orm/models/userConnectedAccount.d.ts +38 -0
- package/esm/public/orm/models/userConnectedAccount.js +72 -0
- package/esm/public/orm/models/webauthnCredentialsModule.d.ts +56 -0
- package/esm/public/orm/models/webauthnCredentialsModule.js +96 -0
- package/esm/public/orm/mutation/index.d.ts +72 -20
- package/esm/public/orm/mutation/index.js +96 -24
- package/esm/public/orm/query/index.d.ts +24 -2
- package/esm/public/orm/query/index.js +36 -4
- package/esm/public/schema-types.d.ts +1550 -611
- package/esm/public/types.d.ts +98 -28
- package/package.json +5 -5
- package/public/hooks/index.d.ts +1 -1
- package/public/hooks/index.js +1 -1
- package/public/hooks/invalidation.d.ts +47 -17
- package/public/hooks/invalidation.js +121 -41
- package/public/hooks/mutation-keys.d.ts +112 -40
- package/public/hooks/mutation-keys.js +86 -30
- package/public/hooks/mutations/index.d.ts +31 -12
- package/public/hooks/mutations/index.js +31 -12
- package/public/hooks/mutations/useCreateApiKeyMutation.d.ts +20 -0
- package/public/hooks/mutations/useCreateApiKeyMutation.js +26 -0
- package/public/hooks/mutations/useCreateDevicesModuleMutation.d.ts +34 -0
- package/public/hooks/mutations/{useCreateTableTemplateModuleMutation.js → useCreateDevicesModuleMutation.js} +6 -6
- package/public/hooks/mutations/useCreateEntityTypeProvisionMutation.d.ts +48 -0
- package/public/hooks/mutations/useCreateEntityTypeProvisionMutation.js +41 -0
- package/public/hooks/mutations/useCreateOrgMemberProfileMutation.d.ts +34 -0
- package/public/hooks/mutations/useCreateOrgMemberProfileMutation.js +34 -0
- package/public/hooks/mutations/useCreateSessionSecretsModuleMutation.d.ts +34 -0
- package/public/hooks/mutations/useCreateSessionSecretsModuleMutation.js +34 -0
- package/public/hooks/mutations/useCreateSpatialRelationMutation.d.ts +34 -0
- package/public/hooks/mutations/{useCreateConnectedAccountMutation.js → useCreateSpatialRelationMutation.js} +6 -6
- package/public/hooks/mutations/useCreateUserConnectedAccountMutation.d.ts +34 -0
- package/public/hooks/mutations/useCreateUserConnectedAccountMutation.js +34 -0
- package/public/hooks/mutations/useCreateWebauthnCredentialsModuleMutation.d.ts +34 -0
- package/public/hooks/mutations/useCreateWebauthnCredentialsModuleMutation.js +34 -0
- package/public/hooks/mutations/useDeleteDevicesModuleMutation.d.ts +38 -0
- package/public/hooks/mutations/{useDeleteTableTemplateModuleMutation.js → useDeleteDevicesModuleMutation.js} +7 -7
- package/public/hooks/mutations/useDeleteEntityTypeProvisionMutation.d.ts +52 -0
- package/public/hooks/mutations/useDeleteEntityTypeProvisionMutation.js +46 -0
- package/public/hooks/mutations/useDeleteOrgMemberProfileMutation.d.ts +38 -0
- package/{auth/hooks/mutations/useDeleteConnectedAccountMutation.js → public/hooks/mutations/useDeleteOrgMemberProfileMutation.js} +7 -7
- package/public/hooks/mutations/useDeleteSessionSecretsModuleMutation.d.ts +38 -0
- package/public/hooks/mutations/useDeleteSessionSecretsModuleMutation.js +39 -0
- package/public/hooks/mutations/useDeleteSpatialRelationMutation.d.ts +38 -0
- package/public/hooks/mutations/useDeleteSpatialRelationMutation.js +39 -0
- package/public/hooks/mutations/useDeleteWebauthnCredentialsModuleMutation.d.ts +38 -0
- package/public/hooks/mutations/useDeleteWebauthnCredentialsModuleMutation.js +39 -0
- package/public/hooks/mutations/useDisconnectAccountMutation.d.ts +20 -0
- package/public/hooks/mutations/useDisconnectAccountMutation.js +26 -0
- package/public/hooks/mutations/useProvisionNewUserMutation.d.ts +20 -0
- package/public/hooks/mutations/useProvisionNewUserMutation.js +26 -0
- package/public/hooks/mutations/useProvisionSpatialRelationMutation.d.ts +20 -0
- package/public/hooks/mutations/useProvisionSpatialRelationMutation.js +26 -0
- package/public/hooks/mutations/useRequestCrossOriginTokenMutation.d.ts +20 -0
- package/public/hooks/mutations/useRequestCrossOriginTokenMutation.js +26 -0
- package/public/hooks/mutations/useRevokeApiKeyMutation.d.ts +20 -0
- package/public/hooks/mutations/useRevokeApiKeyMutation.js +26 -0
- package/public/hooks/mutations/useRevokeSessionMutation.d.ts +20 -0
- package/public/hooks/mutations/useRevokeSessionMutation.js +26 -0
- package/public/hooks/mutations/useSignInCrossOriginMutation.d.ts +20 -0
- package/public/hooks/mutations/useSignInCrossOriginMutation.js +26 -0
- package/public/hooks/mutations/useUpdateDevicesModuleMutation.d.ts +40 -0
- package/public/hooks/mutations/{useUpdateTableTemplateModuleMutation.js → useUpdateDevicesModuleMutation.js} +9 -9
- package/public/hooks/mutations/useUpdateEntityTypeProvisionMutation.d.ts +54 -0
- package/public/hooks/mutations/useUpdateEntityTypeProvisionMutation.js +47 -0
- package/public/hooks/mutations/useUpdateOrgMemberProfileMutation.d.ts +40 -0
- package/public/hooks/mutations/{useUpdateConnectedAccountMutation.js → useUpdateOrgMemberProfileMutation.js} +9 -9
- package/public/hooks/mutations/useUpdateSessionSecretsModuleMutation.d.ts +40 -0
- package/public/hooks/mutations/useUpdateSessionSecretsModuleMutation.js +40 -0
- package/public/hooks/mutations/useUpdateSpatialRelationMutation.d.ts +40 -0
- package/public/hooks/mutations/useUpdateSpatialRelationMutation.js +40 -0
- package/public/hooks/mutations/useUpdateWebauthnCredentialsModuleMutation.d.ts +40 -0
- package/public/hooks/mutations/useUpdateWebauthnCredentialsModuleMutation.js +40 -0
- package/public/hooks/queries/index.d.ts +19 -7
- package/public/hooks/queries/index.js +19 -7
- package/public/hooks/queries/useDevicesModuleQuery.d.ts +65 -0
- package/public/hooks/queries/{useTableTemplateModuleQuery.js → useDevicesModuleQuery.js} +14 -14
- package/public/hooks/queries/useDevicesModulesQuery.d.ts +69 -0
- package/public/hooks/queries/useDevicesModulesQuery.js +38 -0
- package/public/hooks/queries/useEntityTypeProvisionQuery.d.ts +93 -0
- package/public/hooks/queries/useEntityTypeProvisionQuery.js +60 -0
- package/public/hooks/queries/useEntityTypeProvisionsQuery.d.ts +97 -0
- package/public/hooks/queries/useEntityTypeProvisionsQuery.js +45 -0
- package/public/hooks/queries/useOrgMemberProfileQuery.d.ts +65 -0
- package/{auth/hooks/queries/useConnectedAccountQuery.js → public/hooks/queries/useOrgMemberProfileQuery.js} +14 -14
- package/public/hooks/queries/useOrgMemberProfilesQuery.d.ts +69 -0
- package/public/hooks/queries/useOrgMemberProfilesQuery.js +38 -0
- package/public/hooks/queries/useRequireStepUpQuery.d.ts +53 -0
- package/public/hooks/queries/useRequireStepUpQuery.js +53 -0
- package/public/hooks/queries/useResolveBlueprintFieldQuery.d.ts +53 -0
- package/public/hooks/queries/useResolveBlueprintFieldQuery.js +53 -0
- package/public/hooks/queries/useSessionSecretsModuleQuery.d.ts +65 -0
- package/public/hooks/queries/useSessionSecretsModuleQuery.js +53 -0
- package/public/hooks/queries/useSessionSecretsModulesQuery.d.ts +69 -0
- package/public/hooks/queries/useSessionSecretsModulesQuery.js +38 -0
- package/public/hooks/queries/useSpatialRelationQuery.d.ts +65 -0
- package/public/hooks/queries/useSpatialRelationQuery.js +53 -0
- package/public/hooks/queries/useSpatialRelationsQuery.d.ts +69 -0
- package/public/hooks/queries/useSpatialRelationsQuery.js +38 -0
- package/public/hooks/queries/useUserConnectedAccountQuery.d.ts +65 -0
- package/public/hooks/queries/useUserConnectedAccountQuery.js +53 -0
- package/public/hooks/queries/useUserConnectedAccountsQuery.d.ts +69 -0
- package/public/hooks/queries/useUserConnectedAccountsQuery.js +38 -0
- package/public/hooks/queries/useWebauthnCredentialsModuleQuery.d.ts +65 -0
- package/public/hooks/queries/useWebauthnCredentialsModuleQuery.js +53 -0
- package/public/hooks/queries/useWebauthnCredentialsModulesQuery.d.ts +69 -0
- package/public/hooks/queries/useWebauthnCredentialsModulesQuery.js +38 -0
- package/public/hooks/query-keys.d.ts +116 -42
- package/public/hooks/query-keys.js +69 -27
- package/public/orm/index.d.ts +69 -19
- package/public/orm/index.js +16 -6
- package/public/orm/input-types.d.ts +2047 -640
- package/public/orm/input-types.js +15 -6
- package/public/orm/models/devicesModule.d.ts +56 -0
- package/public/orm/models/devicesModule.js +100 -0
- package/public/orm/models/entityTypeProvision.d.ts +56 -0
- package/public/orm/models/{tableTemplateModule.js → entityTypeProvision.js} +26 -26
- package/public/orm/models/index.d.ts +8 -3
- package/public/orm/models/index.js +19 -9
- package/public/orm/models/orgMemberProfile.d.ts +56 -0
- package/public/orm/models/{connectedAccount.js → orgMemberProfile.js} +26 -26
- package/public/orm/models/sessionSecretsModule.d.ts +56 -0
- package/public/orm/models/sessionSecretsModule.js +100 -0
- package/public/orm/models/spatialRelation.d.ts +56 -0
- package/public/orm/models/spatialRelation.js +100 -0
- package/public/orm/models/userConnectedAccount.d.ts +38 -0
- package/public/orm/models/userConnectedAccount.js +76 -0
- package/public/orm/models/webauthnCredentialsModule.d.ts +56 -0
- package/public/orm/models/webauthnCredentialsModule.js +100 -0
- package/public/orm/mutation/index.d.ts +72 -20
- package/public/orm/mutation/index.js +96 -24
- package/public/orm/query/index.d.ts +24 -2
- package/public/orm/query/index.js +36 -4
- package/public/schema-types.d.ts +1550 -611
- package/public/types.d.ts +98 -28
- package/auth/hooks/mutations/useCreateConnectedAccountMutation.d.ts +0 -34
- package/auth/hooks/mutations/useDeleteConnectedAccountMutation.d.ts +0 -38
- package/auth/hooks/mutations/useOneTimeTokenMutation.d.ts +0 -20
- package/auth/hooks/mutations/useSignInOneTimeTokenMutation.d.ts +0 -20
- package/auth/hooks/mutations/useUpdateConnectedAccountMutation.d.ts +0 -40
- package/auth/hooks/queries/useConnectedAccountQuery.d.ts +0 -65
- package/auth/hooks/queries/useConnectedAccountsQuery.d.ts +0 -69
- package/auth/hooks/queries/useConnectedAccountsQuery.js +0 -38
- package/auth/orm/models/connectedAccount.d.ts +0 -56
- package/esm/auth/hooks/mutations/useCreateConnectedAccountMutation.d.ts +0 -34
- package/esm/auth/hooks/mutations/useDeleteConnectedAccountMutation.d.ts +0 -38
- package/esm/auth/hooks/mutations/useOneTimeTokenMutation.d.ts +0 -20
- package/esm/auth/hooks/mutations/useSignInOneTimeTokenMutation.d.ts +0 -20
- package/esm/auth/hooks/mutations/useUpdateConnectedAccountMutation.d.ts +0 -40
- package/esm/auth/hooks/queries/useConnectedAccountQuery.d.ts +0 -65
- package/esm/auth/hooks/queries/useConnectedAccountsQuery.d.ts +0 -69
- package/esm/auth/orm/models/connectedAccount.d.ts +0 -56
- package/esm/public/hooks/mutations/useCreateConnectedAccountMutation.d.ts +0 -34
- package/esm/public/hooks/mutations/useCreateTableTemplateModuleMutation.d.ts +0 -34
- package/esm/public/hooks/mutations/useDeleteConnectedAccountMutation.d.ts +0 -38
- package/esm/public/hooks/mutations/useDeleteTableTemplateModuleMutation.d.ts +0 -38
- package/esm/public/hooks/mutations/useOneTimeTokenMutation.d.ts +0 -20
- package/esm/public/hooks/mutations/useSignInOneTimeTokenMutation.d.ts +0 -20
- package/esm/public/hooks/mutations/useUpdateConnectedAccountMutation.d.ts +0 -40
- package/esm/public/hooks/mutations/useUpdateTableTemplateModuleMutation.d.ts +0 -40
- package/esm/public/hooks/queries/useConnectedAccountQuery.d.ts +0 -65
- package/esm/public/hooks/queries/useConnectedAccountsQuery.d.ts +0 -69
- package/esm/public/hooks/queries/useTableTemplateModuleQuery.d.ts +0 -65
- package/esm/public/hooks/queries/useTableTemplateModulesQuery.d.ts +0 -69
- package/esm/public/hooks/queries/useTableTemplateModulesQuery.js +0 -32
- package/esm/public/orm/models/connectedAccount.d.ts +0 -56
- package/esm/public/orm/models/tableTemplateModule.d.ts +0 -56
- package/public/hooks/mutations/useCreateConnectedAccountMutation.d.ts +0 -34
- package/public/hooks/mutations/useCreateTableTemplateModuleMutation.d.ts +0 -34
- package/public/hooks/mutations/useDeleteConnectedAccountMutation.d.ts +0 -38
- package/public/hooks/mutations/useDeleteTableTemplateModuleMutation.d.ts +0 -38
- package/public/hooks/mutations/useOneTimeTokenMutation.d.ts +0 -20
- package/public/hooks/mutations/useSignInOneTimeTokenMutation.d.ts +0 -20
- package/public/hooks/mutations/useUpdateConnectedAccountMutation.d.ts +0 -40
- package/public/hooks/mutations/useUpdateTableTemplateModuleMutation.d.ts +0 -40
- package/public/hooks/queries/useConnectedAccountQuery.d.ts +0 -65
- package/public/hooks/queries/useConnectedAccountsQuery.d.ts +0 -69
- package/public/hooks/queries/useConnectedAccountsQuery.js +0 -38
- package/public/hooks/queries/useTableTemplateModuleQuery.d.ts +0 -65
- package/public/hooks/queries/useTableTemplateModulesQuery.d.ts +0 -69
- package/public/hooks/queries/useTableTemplateModulesQuery.js +0 -38
- package/public/orm/models/connectedAccount.d.ts +0 -56
- package/public/orm/models/tableTemplateModule.d.ts +0 -56
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Custom query hook for resolveBlueprintField
|
|
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 { ResolveBlueprintFieldVariables } from '../../orm/query';
|
|
8
|
+
export type { ResolveBlueprintFieldVariables } from '../../orm/query';
|
|
9
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
10
|
+
export declare const resolveBlueprintFieldQueryKey: (variables?: object) => readonly ["resolveBlueprintField", object];
|
|
11
|
+
/**
|
|
12
|
+
* Resolves a field_name within a given table_id to a field_id. Throws if no match is found. Used by construct_blueprint to translate user-authored field names (e.g. "location") into field UUIDs for downstream provisioning procedures. table_id must already be resolved (via resolve_blueprint_table) before calling this.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```tsx
|
|
16
|
+
* const { data, isLoading } = useResolveBlueprintFieldQuery({ variables: { databaseId, tableId, fieldName } });
|
|
17
|
+
*
|
|
18
|
+
* if (data?.resolveBlueprintField) {
|
|
19
|
+
* console.log(data.resolveBlueprintField);
|
|
20
|
+
* }
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare function useResolveBlueprintFieldQuery<TData = {
|
|
24
|
+
resolveBlueprintField: string | null;
|
|
25
|
+
}>(params?: {
|
|
26
|
+
variables?: ResolveBlueprintFieldVariables;
|
|
27
|
+
} & Omit<UseQueryOptions<{
|
|
28
|
+
resolveBlueprintField: string | null;
|
|
29
|
+
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
30
|
+
/**
|
|
31
|
+
* Fetch resolveBlueprintField without React hooks
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```ts
|
|
35
|
+
* const data = await fetchResolveBlueprintFieldQuery({ variables: { databaseId, tableId, fieldName } });
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
export declare function fetchResolveBlueprintFieldQuery(params?: {
|
|
39
|
+
variables?: ResolveBlueprintFieldVariables;
|
|
40
|
+
}): Promise<{
|
|
41
|
+
resolveBlueprintField: string | null;
|
|
42
|
+
}>;
|
|
43
|
+
/**
|
|
44
|
+
* Prefetch resolveBlueprintField for SSR or cache warming
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* ```ts
|
|
48
|
+
* await prefetchResolveBlueprintFieldQuery(queryClient, { variables: { databaseId, tableId, fieldName } });
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
export declare function prefetchResolveBlueprintFieldQuery(queryClient: QueryClient, params?: {
|
|
52
|
+
variables?: ResolveBlueprintFieldVariables;
|
|
53
|
+
}): Promise<void>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Custom query hook for resolveBlueprintField
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { useQuery } from '@tanstack/react-query';
|
|
7
|
+
import { getClient } from '../client';
|
|
8
|
+
import { customQueryKeys } from '../query-keys';
|
|
9
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
10
|
+
export const resolveBlueprintFieldQueryKey = customQueryKeys.resolveBlueprintField;
|
|
11
|
+
export function useResolveBlueprintFieldQuery(params) {
|
|
12
|
+
const variables = params?.variables ?? {};
|
|
13
|
+
const { variables: _variables, ...queryOptions } = params ?? {};
|
|
14
|
+
void _variables;
|
|
15
|
+
return useQuery({
|
|
16
|
+
queryKey: resolveBlueprintFieldQueryKey(variables),
|
|
17
|
+
queryFn: () => getClient().query.resolveBlueprintField(variables).unwrap(),
|
|
18
|
+
...queryOptions,
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Fetch resolveBlueprintField without React hooks
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```ts
|
|
26
|
+
* const data = await fetchResolveBlueprintFieldQuery({ variables: { databaseId, tableId, fieldName } });
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
export async function fetchResolveBlueprintFieldQuery(params) {
|
|
30
|
+
const variables = params?.variables ?? {};
|
|
31
|
+
return getClient().query.resolveBlueprintField(variables).unwrap();
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Prefetch resolveBlueprintField for SSR or cache warming
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* await prefetchResolveBlueprintFieldQuery(queryClient, { variables: { databaseId, tableId, fieldName } });
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
export async function prefetchResolveBlueprintFieldQuery(queryClient, params) {
|
|
42
|
+
const variables = params?.variables ?? {};
|
|
43
|
+
await queryClient.prefetchQuery({
|
|
44
|
+
queryKey: resolveBlueprintFieldQueryKey(variables),
|
|
45
|
+
queryFn: () => getClient().query.resolveBlueprintField(variables).unwrap(),
|
|
46
|
+
});
|
|
47
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Config row for the session_secrets_module, which provisions a DB-private, session-scoped ephemeral key-value store for challenges, nonces, and one-time tokens that must never be readable by end users.
|
|
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 { SessionSecretsModuleSelect, SessionSecretsModuleWithRelations } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { SessionSecretsModuleSelect, SessionSecretsModuleWithRelations, } from '../../orm/input-types';
|
|
10
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
+
export declare const sessionSecretsModuleQueryKey: (id: string | number) => readonly ["sessionsecretsmodule", "detail", string | number];
|
|
12
|
+
/**
|
|
13
|
+
* Config row for the session_secrets_module, which provisions a DB-private, session-scoped ephemeral key-value store for challenges, nonces, and one-time tokens that must never be readable by end users.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* const { data, isLoading } = useSessionSecretsModuleQuery({
|
|
18
|
+
* id: 'some-id',
|
|
19
|
+
* selection: { fields: { id: true, name: true } },
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare function useSessionSecretsModuleQuery<S extends SessionSecretsModuleSelect, TData = {
|
|
24
|
+
sessionSecretsModule: InferSelectResult<SessionSecretsModuleWithRelations, S> | null;
|
|
25
|
+
}>(params: {
|
|
26
|
+
id: string;
|
|
27
|
+
selection: {
|
|
28
|
+
fields: S;
|
|
29
|
+
} & HookStrictSelect<NoInfer<S>, SessionSecretsModuleSelect>;
|
|
30
|
+
} & Omit<UseQueryOptions<{
|
|
31
|
+
sessionSecretsModule: InferSelectResult<SessionSecretsModuleWithRelations, S> | null;
|
|
32
|
+
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
33
|
+
/**
|
|
34
|
+
* Config row for the session_secrets_module, which provisions a DB-private, session-scoped ephemeral key-value store for challenges, nonces, and one-time tokens that must never be readable by end users.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* const data = await fetchSessionSecretsModuleQuery({
|
|
39
|
+
* id: 'some-id',
|
|
40
|
+
* selection: { fields: { id: true } },
|
|
41
|
+
* });
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
export declare function fetchSessionSecretsModuleQuery<S extends SessionSecretsModuleSelect>(params: {
|
|
45
|
+
id: string;
|
|
46
|
+
selection: {
|
|
47
|
+
fields: S;
|
|
48
|
+
} & HookStrictSelect<NoInfer<S>, SessionSecretsModuleSelect>;
|
|
49
|
+
}): Promise<{
|
|
50
|
+
sessionSecretsModule: InferSelectResult<SessionSecretsModuleWithRelations, S> | null;
|
|
51
|
+
}>;
|
|
52
|
+
/**
|
|
53
|
+
* Config row for the session_secrets_module, which provisions a DB-private, session-scoped ephemeral key-value store for challenges, nonces, and one-time tokens that must never be readable by end users.
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* await prefetchSessionSecretsModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
export declare function prefetchSessionSecretsModuleQuery<S extends SessionSecretsModuleSelect>(queryClient: QueryClient, params: {
|
|
61
|
+
id: string;
|
|
62
|
+
selection: {
|
|
63
|
+
fields: S;
|
|
64
|
+
} & HookStrictSelect<NoInfer<S>, SessionSecretsModuleSelect>;
|
|
65
|
+
}): Promise<void>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Config row for the session_secrets_module, which provisions a DB-private, session-scoped ephemeral key-value store for challenges, nonces, and one-time tokens that must never be readable by end users.
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { useQuery } from '@tanstack/react-query';
|
|
7
|
+
import { getClient } from '../client';
|
|
8
|
+
import { buildSelectionArgs } from '../selection';
|
|
9
|
+
import { sessionSecretsModuleKeys } from '../query-keys';
|
|
10
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
+
export const sessionSecretsModuleQueryKey = sessionSecretsModuleKeys.detail;
|
|
12
|
+
export function useSessionSecretsModuleQuery(params) {
|
|
13
|
+
const args = buildSelectionArgs(params.selection);
|
|
14
|
+
const { selection: _selection, ...queryOptions } = params ?? {};
|
|
15
|
+
void _selection;
|
|
16
|
+
return useQuery({
|
|
17
|
+
queryKey: sessionSecretsModuleKeys.detail(params.id),
|
|
18
|
+
queryFn: () => getClient()
|
|
19
|
+
.sessionSecretsModule.findOne({
|
|
20
|
+
id: params.id,
|
|
21
|
+
select: args.select,
|
|
22
|
+
})
|
|
23
|
+
.unwrap(),
|
|
24
|
+
...queryOptions,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
export async function fetchSessionSecretsModuleQuery(params) {
|
|
28
|
+
const args = buildSelectionArgs(params.selection);
|
|
29
|
+
return getClient()
|
|
30
|
+
.sessionSecretsModule.findOne({
|
|
31
|
+
id: params.id,
|
|
32
|
+
select: args.select,
|
|
33
|
+
})
|
|
34
|
+
.unwrap();
|
|
35
|
+
}
|
|
36
|
+
export async function prefetchSessionSecretsModuleQuery(queryClient, params) {
|
|
37
|
+
const args = buildSelectionArgs(params.selection);
|
|
38
|
+
await queryClient.prefetchQuery({
|
|
39
|
+
queryKey: sessionSecretsModuleKeys.detail(params.id),
|
|
40
|
+
queryFn: () => getClient()
|
|
41
|
+
.sessionSecretsModule.findOne({
|
|
42
|
+
id: params.id,
|
|
43
|
+
select: args.select,
|
|
44
|
+
})
|
|
45
|
+
.unwrap(),
|
|
46
|
+
});
|
|
47
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Config row for the session_secrets_module, which provisions a DB-private, session-scoped ephemeral key-value store for challenges, nonces, and one-time tokens that must never be readable by end users.
|
|
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 { SessionSecretsModuleSelect, SessionSecretsModuleWithRelations, SessionSecretsModuleFilter, SessionSecretsModuleOrderBy } from '../../orm/input-types';
|
|
9
|
+
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
|
|
10
|
+
export type { SessionSecretsModuleSelect, SessionSecretsModuleWithRelations, SessionSecretsModuleFilter, SessionSecretsModuleOrderBy, } from '../../orm/input-types';
|
|
11
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
12
|
+
export declare const sessionSecretsModulesQueryKey: (variables?: object) => readonly ["sessionsecretsmodule", "list", object];
|
|
13
|
+
/**
|
|
14
|
+
* Config row for the session_secrets_module, which provisions a DB-private, session-scoped ephemeral key-value store for challenges, nonces, and one-time tokens that must never be readable by end users.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```tsx
|
|
18
|
+
* const { data, isLoading } = useSessionSecretsModulesQuery({
|
|
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 useSessionSecretsModulesQuery<S extends SessionSecretsModuleSelect, TData = {
|
|
29
|
+
sessionSecretsModules: ConnectionResult<InferSelectResult<SessionSecretsModuleWithRelations, S>>;
|
|
30
|
+
}>(params: {
|
|
31
|
+
selection: {
|
|
32
|
+
fields: S;
|
|
33
|
+
} & Omit<ListSelectionConfig<S, SessionSecretsModuleFilter, SessionSecretsModuleOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, SessionSecretsModuleSelect>;
|
|
34
|
+
} & Omit<UseQueryOptions<{
|
|
35
|
+
sessionSecretsModules: ConnectionResult<InferSelectResult<SessionSecretsModuleWithRelations, S>>;
|
|
36
|
+
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
37
|
+
/**
|
|
38
|
+
* Config row for the session_secrets_module, which provisions a DB-private, session-scoped ephemeral key-value store for challenges, nonces, and one-time tokens that must never be readable by end users.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```ts
|
|
42
|
+
* const data = await fetchSessionSecretsModulesQuery({
|
|
43
|
+
* selection: {
|
|
44
|
+
* fields: { id: true },
|
|
45
|
+
* first: 10,
|
|
46
|
+
* },
|
|
47
|
+
* });
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
export declare function fetchSessionSecretsModulesQuery<S extends SessionSecretsModuleSelect>(params: {
|
|
51
|
+
selection: {
|
|
52
|
+
fields: S;
|
|
53
|
+
} & Omit<ListSelectionConfig<S, SessionSecretsModuleFilter, SessionSecretsModuleOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, SessionSecretsModuleSelect>;
|
|
54
|
+
}): Promise<{
|
|
55
|
+
sessionSecretsModules: ConnectionResult<InferSelectResult<SessionSecretsModuleWithRelations, S>>;
|
|
56
|
+
}>;
|
|
57
|
+
/**
|
|
58
|
+
* Config row for the session_secrets_module, which provisions a DB-private, session-scoped ephemeral key-value store for challenges, nonces, and one-time tokens that must never be readable by end users.
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* ```ts
|
|
62
|
+
* await prefetchSessionSecretsModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
export declare function prefetchSessionSecretsModulesQuery<S extends SessionSecretsModuleSelect>(queryClient: QueryClient, params: {
|
|
66
|
+
selection: {
|
|
67
|
+
fields: S;
|
|
68
|
+
} & Omit<ListSelectionConfig<S, SessionSecretsModuleFilter, SessionSecretsModuleOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, SessionSecretsModuleSelect>;
|
|
69
|
+
}): Promise<void>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Config row for the session_secrets_module, which provisions a DB-private, session-scoped ephemeral key-value store for challenges, nonces, and one-time tokens that must never be readable by end users.
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { useQuery } from '@tanstack/react-query';
|
|
7
|
+
import { getClient } from '../client';
|
|
8
|
+
import { buildListSelectionArgs } from '../selection';
|
|
9
|
+
import { sessionSecretsModuleKeys } from '../query-keys';
|
|
10
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
+
export const sessionSecretsModulesQueryKey = sessionSecretsModuleKeys.list;
|
|
12
|
+
export function useSessionSecretsModulesQuery(params) {
|
|
13
|
+
const args = buildListSelectionArgs(params.selection);
|
|
14
|
+
const { selection: _selection, ...queryOptions } = params ?? {};
|
|
15
|
+
void _selection;
|
|
16
|
+
return useQuery({
|
|
17
|
+
queryKey: sessionSecretsModuleKeys.list(args),
|
|
18
|
+
queryFn: () => getClient().sessionSecretsModule.findMany(args).unwrap(),
|
|
19
|
+
...queryOptions,
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
export async function fetchSessionSecretsModulesQuery(params) {
|
|
23
|
+
const args = buildListSelectionArgs(params.selection);
|
|
24
|
+
return getClient().sessionSecretsModule.findMany(args).unwrap();
|
|
25
|
+
}
|
|
26
|
+
export async function prefetchSessionSecretsModulesQuery(queryClient, params) {
|
|
27
|
+
const args = buildListSelectionArgs(params.selection);
|
|
28
|
+
await queryClient.prefetchQuery({
|
|
29
|
+
queryKey: sessionSecretsModuleKeys.list(args),
|
|
30
|
+
queryFn: () => getClient().sessionSecretsModule.findMany(args).unwrap(),
|
|
31
|
+
});
|
|
32
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Single item query hook for SpatialRelation
|
|
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 { SpatialRelationSelect, SpatialRelationWithRelations } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { SpatialRelationSelect, SpatialRelationWithRelations } from '../../orm/input-types';
|
|
10
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
+
export declare const spatialRelationQueryKey: (id: string | number) => readonly ["spatialrelation", "detail", string | number];
|
|
12
|
+
/**
|
|
13
|
+
* Query hook for fetching a single SpatialRelation
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* const { data, isLoading } = useSpatialRelationQuery({
|
|
18
|
+
* id: 'some-id',
|
|
19
|
+
* selection: { fields: { id: true, name: true } },
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare function useSpatialRelationQuery<S extends SpatialRelationSelect, TData = {
|
|
24
|
+
spatialRelation: InferSelectResult<SpatialRelationWithRelations, S> | null;
|
|
25
|
+
}>(params: {
|
|
26
|
+
id: string;
|
|
27
|
+
selection: {
|
|
28
|
+
fields: S;
|
|
29
|
+
} & HookStrictSelect<NoInfer<S>, SpatialRelationSelect>;
|
|
30
|
+
} & Omit<UseQueryOptions<{
|
|
31
|
+
spatialRelation: InferSelectResult<SpatialRelationWithRelations, S> | null;
|
|
32
|
+
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
33
|
+
/**
|
|
34
|
+
* Fetch a single SpatialRelation without React hooks
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* const data = await fetchSpatialRelationQuery({
|
|
39
|
+
* id: 'some-id',
|
|
40
|
+
* selection: { fields: { id: true } },
|
|
41
|
+
* });
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
export declare function fetchSpatialRelationQuery<S extends SpatialRelationSelect>(params: {
|
|
45
|
+
id: string;
|
|
46
|
+
selection: {
|
|
47
|
+
fields: S;
|
|
48
|
+
} & HookStrictSelect<NoInfer<S>, SpatialRelationSelect>;
|
|
49
|
+
}): Promise<{
|
|
50
|
+
spatialRelation: InferSelectResult<SpatialRelationWithRelations, S> | null;
|
|
51
|
+
}>;
|
|
52
|
+
/**
|
|
53
|
+
* Prefetch a single SpatialRelation for SSR or cache warming
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* await prefetchSpatialRelationQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
export declare function prefetchSpatialRelationQuery<S extends SpatialRelationSelect>(queryClient: QueryClient, params: {
|
|
61
|
+
id: string;
|
|
62
|
+
selection: {
|
|
63
|
+
fields: S;
|
|
64
|
+
} & HookStrictSelect<NoInfer<S>, SpatialRelationSelect>;
|
|
65
|
+
}): Promise<void>;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Single item query hook for SpatialRelation
|
|
3
3
|
* @generated by @constructive-io/graphql-codegen
|
|
4
4
|
* DO NOT EDIT - changes will be overwritten
|
|
5
5
|
*/
|
|
6
6
|
import { useQuery } from '@tanstack/react-query';
|
|
7
7
|
import { getClient } from '../client';
|
|
8
8
|
import { buildSelectionArgs } from '../selection';
|
|
9
|
-
import {
|
|
9
|
+
import { spatialRelationKeys } from '../query-keys';
|
|
10
10
|
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
-
export const
|
|
12
|
-
export function
|
|
11
|
+
export const spatialRelationQueryKey = spatialRelationKeys.detail;
|
|
12
|
+
export function useSpatialRelationQuery(params) {
|
|
13
13
|
const args = buildSelectionArgs(params.selection);
|
|
14
14
|
const { selection: _selection, ...queryOptions } = params ?? {};
|
|
15
15
|
void _selection;
|
|
16
16
|
return useQuery({
|
|
17
|
-
queryKey:
|
|
17
|
+
queryKey: spatialRelationKeys.detail(params.id),
|
|
18
18
|
queryFn: () => getClient()
|
|
19
|
-
.
|
|
19
|
+
.spatialRelation.findOne({
|
|
20
20
|
id: params.id,
|
|
21
21
|
select: args.select,
|
|
22
22
|
})
|
|
@@ -24,21 +24,21 @@ export function useConnectedAccountQuery(params) {
|
|
|
24
24
|
...queryOptions,
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
|
-
export async function
|
|
27
|
+
export async function fetchSpatialRelationQuery(params) {
|
|
28
28
|
const args = buildSelectionArgs(params.selection);
|
|
29
29
|
return getClient()
|
|
30
|
-
.
|
|
30
|
+
.spatialRelation.findOne({
|
|
31
31
|
id: params.id,
|
|
32
32
|
select: args.select,
|
|
33
33
|
})
|
|
34
34
|
.unwrap();
|
|
35
35
|
}
|
|
36
|
-
export async function
|
|
36
|
+
export async function prefetchSpatialRelationQuery(queryClient, params) {
|
|
37
37
|
const args = buildSelectionArgs(params.selection);
|
|
38
38
|
await queryClient.prefetchQuery({
|
|
39
|
-
queryKey:
|
|
39
|
+
queryKey: spatialRelationKeys.detail(params.id),
|
|
40
40
|
queryFn: () => getClient()
|
|
41
|
-
.
|
|
41
|
+
.spatialRelation.findOne({
|
|
42
42
|
id: params.id,
|
|
43
43
|
select: args.select,
|
|
44
44
|
})
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* List query hook for SpatialRelation
|
|
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 { SpatialRelationSelect, SpatialRelationWithRelations, SpatialRelationFilter, SpatialRelationOrderBy } from '../../orm/input-types';
|
|
9
|
+
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
|
|
10
|
+
export type { SpatialRelationSelect, SpatialRelationWithRelations, SpatialRelationFilter, SpatialRelationOrderBy, } from '../../orm/input-types';
|
|
11
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
12
|
+
export declare const spatialRelationsQueryKey: (variables?: object) => readonly ["spatialrelation", "list", object];
|
|
13
|
+
/**
|
|
14
|
+
* Query hook for fetching SpatialRelation list
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```tsx
|
|
18
|
+
* const { data, isLoading } = useSpatialRelationsQuery({
|
|
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 useSpatialRelationsQuery<S extends SpatialRelationSelect, TData = {
|
|
29
|
+
spatialRelations: ConnectionResult<InferSelectResult<SpatialRelationWithRelations, S>>;
|
|
30
|
+
}>(params: {
|
|
31
|
+
selection: {
|
|
32
|
+
fields: S;
|
|
33
|
+
} & Omit<ListSelectionConfig<S, SpatialRelationFilter, SpatialRelationOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, SpatialRelationSelect>;
|
|
34
|
+
} & Omit<UseQueryOptions<{
|
|
35
|
+
spatialRelations: ConnectionResult<InferSelectResult<SpatialRelationWithRelations, S>>;
|
|
36
|
+
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
37
|
+
/**
|
|
38
|
+
* Fetch SpatialRelation list without React hooks
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```ts
|
|
42
|
+
* const data = await fetchSpatialRelationsQuery({
|
|
43
|
+
* selection: {
|
|
44
|
+
* fields: { id: true },
|
|
45
|
+
* first: 10,
|
|
46
|
+
* },
|
|
47
|
+
* });
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
export declare function fetchSpatialRelationsQuery<S extends SpatialRelationSelect>(params: {
|
|
51
|
+
selection: {
|
|
52
|
+
fields: S;
|
|
53
|
+
} & Omit<ListSelectionConfig<S, SpatialRelationFilter, SpatialRelationOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, SpatialRelationSelect>;
|
|
54
|
+
}): Promise<{
|
|
55
|
+
spatialRelations: ConnectionResult<InferSelectResult<SpatialRelationWithRelations, S>>;
|
|
56
|
+
}>;
|
|
57
|
+
/**
|
|
58
|
+
* Prefetch SpatialRelation list for SSR or cache warming
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* ```ts
|
|
62
|
+
* await prefetchSpatialRelationsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
export declare function prefetchSpatialRelationsQuery<S extends SpatialRelationSelect>(queryClient: QueryClient, params: {
|
|
66
|
+
selection: {
|
|
67
|
+
fields: S;
|
|
68
|
+
} & Omit<ListSelectionConfig<S, SpatialRelationFilter, SpatialRelationOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, SpatialRelationSelect>;
|
|
69
|
+
}): Promise<void>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* List query hook for SpatialRelation
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { useQuery } from '@tanstack/react-query';
|
|
7
|
+
import { getClient } from '../client';
|
|
8
|
+
import { buildListSelectionArgs } from '../selection';
|
|
9
|
+
import { spatialRelationKeys } from '../query-keys';
|
|
10
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
+
export const spatialRelationsQueryKey = spatialRelationKeys.list;
|
|
12
|
+
export function useSpatialRelationsQuery(params) {
|
|
13
|
+
const args = buildListSelectionArgs(params.selection);
|
|
14
|
+
const { selection: _selection, ...queryOptions } = params ?? {};
|
|
15
|
+
void _selection;
|
|
16
|
+
return useQuery({
|
|
17
|
+
queryKey: spatialRelationKeys.list(args),
|
|
18
|
+
queryFn: () => getClient().spatialRelation.findMany(args).unwrap(),
|
|
19
|
+
...queryOptions,
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
export async function fetchSpatialRelationsQuery(params) {
|
|
23
|
+
const args = buildListSelectionArgs(params.selection);
|
|
24
|
+
return getClient().spatialRelation.findMany(args).unwrap();
|
|
25
|
+
}
|
|
26
|
+
export async function prefetchSpatialRelationsQuery(queryClient, params) {
|
|
27
|
+
const args = buildListSelectionArgs(params.selection);
|
|
28
|
+
await queryClient.prefetchQuery({
|
|
29
|
+
queryKey: spatialRelationKeys.list(args),
|
|
30
|
+
queryFn: () => getClient().spatialRelation.findMany(args).unwrap(),
|
|
31
|
+
});
|
|
32
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Single item query hook for UserConnectedAccount
|
|
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 { UserConnectedAccountSelect, UserConnectedAccountWithRelations } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { UserConnectedAccountSelect, UserConnectedAccountWithRelations, } from '../../orm/input-types';
|
|
10
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
+
export declare const userConnectedAccountQueryKey: (id: string | number) => readonly ["userconnectedaccount", "detail", string | number];
|
|
12
|
+
/**
|
|
13
|
+
* Query hook for fetching a single UserConnectedAccount
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* const { data, isLoading } = useUserConnectedAccountQuery({
|
|
18
|
+
* id: 'some-id',
|
|
19
|
+
* selection: { fields: { id: true, name: true } },
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare function useUserConnectedAccountQuery<S extends UserConnectedAccountSelect, TData = {
|
|
24
|
+
userConnectedAccount: InferSelectResult<UserConnectedAccountWithRelations, S> | null;
|
|
25
|
+
}>(params: {
|
|
26
|
+
id: string;
|
|
27
|
+
selection: {
|
|
28
|
+
fields: S;
|
|
29
|
+
} & HookStrictSelect<NoInfer<S>, UserConnectedAccountSelect>;
|
|
30
|
+
} & Omit<UseQueryOptions<{
|
|
31
|
+
userConnectedAccount: InferSelectResult<UserConnectedAccountWithRelations, S> | null;
|
|
32
|
+
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
33
|
+
/**
|
|
34
|
+
* Fetch a single UserConnectedAccount without React hooks
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* const data = await fetchUserConnectedAccountQuery({
|
|
39
|
+
* id: 'some-id',
|
|
40
|
+
* selection: { fields: { id: true } },
|
|
41
|
+
* });
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
export declare function fetchUserConnectedAccountQuery<S extends UserConnectedAccountSelect>(params: {
|
|
45
|
+
id: string;
|
|
46
|
+
selection: {
|
|
47
|
+
fields: S;
|
|
48
|
+
} & HookStrictSelect<NoInfer<S>, UserConnectedAccountSelect>;
|
|
49
|
+
}): Promise<{
|
|
50
|
+
userConnectedAccount: InferSelectResult<UserConnectedAccountWithRelations, S> | null;
|
|
51
|
+
}>;
|
|
52
|
+
/**
|
|
53
|
+
* Prefetch a single UserConnectedAccount for SSR or cache warming
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* await prefetchUserConnectedAccountQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
export declare function prefetchUserConnectedAccountQuery<S extends UserConnectedAccountSelect>(queryClient: QueryClient, params: {
|
|
61
|
+
id: string;
|
|
62
|
+
selection: {
|
|
63
|
+
fields: S;
|
|
64
|
+
} & HookStrictSelect<NoInfer<S>, UserConnectedAccountSelect>;
|
|
65
|
+
}): Promise<void>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Single item query hook for UserConnectedAccount
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { useQuery } from '@tanstack/react-query';
|
|
7
|
+
import { getClient } from '../client';
|
|
8
|
+
import { buildSelectionArgs } from '../selection';
|
|
9
|
+
import { userConnectedAccountKeys } from '../query-keys';
|
|
10
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
+
export const userConnectedAccountQueryKey = userConnectedAccountKeys.detail;
|
|
12
|
+
export function useUserConnectedAccountQuery(params) {
|
|
13
|
+
const args = buildSelectionArgs(params.selection);
|
|
14
|
+
const { selection: _selection, ...queryOptions } = params ?? {};
|
|
15
|
+
void _selection;
|
|
16
|
+
return useQuery({
|
|
17
|
+
queryKey: userConnectedAccountKeys.detail(params.id),
|
|
18
|
+
queryFn: () => getClient()
|
|
19
|
+
.userConnectedAccount.findOne({
|
|
20
|
+
id: params.id,
|
|
21
|
+
select: args.select,
|
|
22
|
+
})
|
|
23
|
+
.unwrap(),
|
|
24
|
+
...queryOptions,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
export async function fetchUserConnectedAccountQuery(params) {
|
|
28
|
+
const args = buildSelectionArgs(params.selection);
|
|
29
|
+
return getClient()
|
|
30
|
+
.userConnectedAccount.findOne({
|
|
31
|
+
id: params.id,
|
|
32
|
+
select: args.select,
|
|
33
|
+
})
|
|
34
|
+
.unwrap();
|
|
35
|
+
}
|
|
36
|
+
export async function prefetchUserConnectedAccountQuery(queryClient, params) {
|
|
37
|
+
const args = buildSelectionArgs(params.selection);
|
|
38
|
+
await queryClient.prefetchQuery({
|
|
39
|
+
queryKey: userConnectedAccountKeys.detail(params.id),
|
|
40
|
+
queryFn: () => getClient()
|
|
41
|
+
.userConnectedAccount.findOne({
|
|
42
|
+
id: params.id,
|
|
43
|
+
select: args.select,
|
|
44
|
+
})
|
|
45
|
+
.unwrap(),
|
|
46
|
+
});
|
|
47
|
+
}
|