@constructive-io/react 0.12.0 → 0.12.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +3 -3
- 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,40 @@
|
|
|
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 { UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
|
|
7
|
+
import type { SessionSecretsModuleSelect, SessionSecretsModuleWithRelations, SessionSecretsModulePatch } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { SessionSecretsModuleSelect, SessionSecretsModuleWithRelations, SessionSecretsModulePatch, } from '../../orm/input-types';
|
|
10
|
+
/**
|
|
11
|
+
* 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.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* const { mutate, isPending } = useUpdateSessionSecretsModuleMutation({
|
|
16
|
+
* selection: { fields: { id: true, name: true } },
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* mutate({ id: 'value-here', sessionSecretsModulePatch: { name: 'Updated' } });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function useUpdateSessionSecretsModuleMutation<S extends SessionSecretsModuleSelect>(params: {
|
|
23
|
+
selection: {
|
|
24
|
+
fields: S & SessionSecretsModuleSelect;
|
|
25
|
+
} & HookStrictSelect<NoInfer<S>, SessionSecretsModuleSelect>;
|
|
26
|
+
} & Omit<UseMutationOptions<{
|
|
27
|
+
updateSessionSecretsModule: {
|
|
28
|
+
sessionSecretsModule: InferSelectResult<SessionSecretsModuleWithRelations, S>;
|
|
29
|
+
};
|
|
30
|
+
}, Error, {
|
|
31
|
+
id: string;
|
|
32
|
+
sessionSecretsModulePatch: SessionSecretsModulePatch;
|
|
33
|
+
}>, 'mutationFn'>): UseMutationResult<{
|
|
34
|
+
updateSessionSecretsModule: {
|
|
35
|
+
sessionSecretsModule: InferSelectResult<SessionSecretsModuleWithRelations, S>;
|
|
36
|
+
};
|
|
37
|
+
}, Error, {
|
|
38
|
+
id: string;
|
|
39
|
+
sessionSecretsModulePatch: SessionSecretsModulePatch;
|
|
40
|
+
}>;
|
|
@@ -0,0 +1,37 @@
|
|
|
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 { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
7
|
+
import { getClient } from '../client';
|
|
8
|
+
import { buildSelectionArgs } from '../selection';
|
|
9
|
+
import { sessionSecretsModuleKeys } from '../query-keys';
|
|
10
|
+
import { sessionSecretsModuleMutationKeys } from '../mutation-keys';
|
|
11
|
+
export function useUpdateSessionSecretsModuleMutation(params) {
|
|
12
|
+
const args = buildSelectionArgs(params.selection);
|
|
13
|
+
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
14
|
+
void _selection;
|
|
15
|
+
const queryClient = useQueryClient();
|
|
16
|
+
return useMutation({
|
|
17
|
+
mutationKey: sessionSecretsModuleMutationKeys.all,
|
|
18
|
+
mutationFn: ({ id, sessionSecretsModulePatch, }) => getClient()
|
|
19
|
+
.sessionSecretsModule.update({
|
|
20
|
+
where: {
|
|
21
|
+
id,
|
|
22
|
+
},
|
|
23
|
+
data: sessionSecretsModulePatch,
|
|
24
|
+
select: args.select,
|
|
25
|
+
})
|
|
26
|
+
.unwrap(),
|
|
27
|
+
onSuccess: (_, variables) => {
|
|
28
|
+
queryClient.invalidateQueries({
|
|
29
|
+
queryKey: sessionSecretsModuleKeys.detail(variables.id),
|
|
30
|
+
});
|
|
31
|
+
queryClient.invalidateQueries({
|
|
32
|
+
queryKey: sessionSecretsModuleKeys.lists(),
|
|
33
|
+
});
|
|
34
|
+
},
|
|
35
|
+
...mutationOptions,
|
|
36
|
+
});
|
|
37
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Update mutation hook for SpatialRelation
|
|
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 { SpatialRelationSelect, SpatialRelationWithRelations, SpatialRelationPatch } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { SpatialRelationSelect, SpatialRelationWithRelations, SpatialRelationPatch, } from '../../orm/input-types';
|
|
10
|
+
/**
|
|
11
|
+
* Mutation hook for updating a SpatialRelation
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* const { mutate, isPending } = useUpdateSpatialRelationMutation({
|
|
16
|
+
* selection: { fields: { id: true, name: true } },
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* mutate({ id: 'value-here', spatialRelationPatch: { name: 'Updated' } });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function useUpdateSpatialRelationMutation<S extends SpatialRelationSelect>(params: {
|
|
23
|
+
selection: {
|
|
24
|
+
fields: S & SpatialRelationSelect;
|
|
25
|
+
} & HookStrictSelect<NoInfer<S>, SpatialRelationSelect>;
|
|
26
|
+
} & Omit<UseMutationOptions<{
|
|
27
|
+
updateSpatialRelation: {
|
|
28
|
+
spatialRelation: InferSelectResult<SpatialRelationWithRelations, S>;
|
|
29
|
+
};
|
|
30
|
+
}, Error, {
|
|
31
|
+
id: string;
|
|
32
|
+
spatialRelationPatch: SpatialRelationPatch;
|
|
33
|
+
}>, 'mutationFn'>): UseMutationResult<{
|
|
34
|
+
updateSpatialRelation: {
|
|
35
|
+
spatialRelation: InferSelectResult<SpatialRelationWithRelations, S>;
|
|
36
|
+
};
|
|
37
|
+
}, Error, {
|
|
38
|
+
id: string;
|
|
39
|
+
spatialRelationPatch: SpatialRelationPatch;
|
|
40
|
+
}>;
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Update mutation 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 { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
7
7
|
import { getClient } from '../client';
|
|
8
8
|
import { buildSelectionArgs } from '../selection';
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
export function
|
|
9
|
+
import { spatialRelationKeys } from '../query-keys';
|
|
10
|
+
import { spatialRelationMutationKeys } from '../mutation-keys';
|
|
11
|
+
export function useUpdateSpatialRelationMutation(params) {
|
|
12
12
|
const args = buildSelectionArgs(params.selection);
|
|
13
13
|
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
14
14
|
void _selection;
|
|
15
15
|
const queryClient = useQueryClient();
|
|
16
16
|
return useMutation({
|
|
17
|
-
mutationKey:
|
|
18
|
-
mutationFn: ({ id,
|
|
19
|
-
.
|
|
17
|
+
mutationKey: spatialRelationMutationKeys.all,
|
|
18
|
+
mutationFn: ({ id, spatialRelationPatch, }) => getClient()
|
|
19
|
+
.spatialRelation.update({
|
|
20
20
|
where: {
|
|
21
21
|
id,
|
|
22
22
|
},
|
|
23
|
-
data:
|
|
23
|
+
data: spatialRelationPatch,
|
|
24
24
|
select: args.select,
|
|
25
25
|
})
|
|
26
26
|
.unwrap(),
|
|
27
27
|
onSuccess: (_, variables) => {
|
|
28
28
|
queryClient.invalidateQueries({
|
|
29
|
-
queryKey:
|
|
29
|
+
queryKey: spatialRelationKeys.detail(variables.id),
|
|
30
30
|
});
|
|
31
31
|
queryClient.invalidateQueries({
|
|
32
|
-
queryKey:
|
|
32
|
+
queryKey: spatialRelationKeys.lists(),
|
|
33
33
|
});
|
|
34
34
|
},
|
|
35
35
|
...mutationOptions,
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Config row for the webauthn_credentials_module, which provisions the per-user WebAuthn/passkey credentials table (public key, counter, transports, device type, backup state) mirroring crypto_addresses_module. The sibling webauthn_auth_module (RP config, sign-in/sign-up function names) lands later; Phase 11a is credentials only.
|
|
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 { WebauthnCredentialsModuleSelect, WebauthnCredentialsModuleWithRelations, WebauthnCredentialsModulePatch } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { WebauthnCredentialsModuleSelect, WebauthnCredentialsModuleWithRelations, WebauthnCredentialsModulePatch, } from '../../orm/input-types';
|
|
10
|
+
/**
|
|
11
|
+
* Config row for the webauthn_credentials_module, which provisions the per-user WebAuthn/passkey credentials table (public key, counter, transports, device type, backup state) mirroring crypto_addresses_module. The sibling webauthn_auth_module (RP config, sign-in/sign-up function names) lands later; Phase 11a is credentials only.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* const { mutate, isPending } = useUpdateWebauthnCredentialsModuleMutation({
|
|
16
|
+
* selection: { fields: { id: true, name: true } },
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* mutate({ id: 'value-here', webauthnCredentialsModulePatch: { name: 'Updated' } });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function useUpdateWebauthnCredentialsModuleMutation<S extends WebauthnCredentialsModuleSelect>(params: {
|
|
23
|
+
selection: {
|
|
24
|
+
fields: S & WebauthnCredentialsModuleSelect;
|
|
25
|
+
} & HookStrictSelect<NoInfer<S>, WebauthnCredentialsModuleSelect>;
|
|
26
|
+
} & Omit<UseMutationOptions<{
|
|
27
|
+
updateWebauthnCredentialsModule: {
|
|
28
|
+
webauthnCredentialsModule: InferSelectResult<WebauthnCredentialsModuleWithRelations, S>;
|
|
29
|
+
};
|
|
30
|
+
}, Error, {
|
|
31
|
+
id: string;
|
|
32
|
+
webauthnCredentialsModulePatch: WebauthnCredentialsModulePatch;
|
|
33
|
+
}>, 'mutationFn'>): UseMutationResult<{
|
|
34
|
+
updateWebauthnCredentialsModule: {
|
|
35
|
+
webauthnCredentialsModule: InferSelectResult<WebauthnCredentialsModuleWithRelations, S>;
|
|
36
|
+
};
|
|
37
|
+
}, Error, {
|
|
38
|
+
id: string;
|
|
39
|
+
webauthnCredentialsModulePatch: WebauthnCredentialsModulePatch;
|
|
40
|
+
}>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Config row for the webauthn_credentials_module, which provisions the per-user WebAuthn/passkey credentials table (public key, counter, transports, device type, backup state) mirroring crypto_addresses_module. The sibling webauthn_auth_module (RP config, sign-in/sign-up function names) lands later; Phase 11a is credentials only.
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
7
|
+
import { getClient } from '../client';
|
|
8
|
+
import { buildSelectionArgs } from '../selection';
|
|
9
|
+
import { webauthnCredentialsModuleKeys } from '../query-keys';
|
|
10
|
+
import { webauthnCredentialsModuleMutationKeys } from '../mutation-keys';
|
|
11
|
+
export function useUpdateWebauthnCredentialsModuleMutation(params) {
|
|
12
|
+
const args = buildSelectionArgs(params.selection);
|
|
13
|
+
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
14
|
+
void _selection;
|
|
15
|
+
const queryClient = useQueryClient();
|
|
16
|
+
return useMutation({
|
|
17
|
+
mutationKey: webauthnCredentialsModuleMutationKeys.all,
|
|
18
|
+
mutationFn: ({ id, webauthnCredentialsModulePatch, }) => getClient()
|
|
19
|
+
.webauthnCredentialsModule.update({
|
|
20
|
+
where: {
|
|
21
|
+
id,
|
|
22
|
+
},
|
|
23
|
+
data: webauthnCredentialsModulePatch,
|
|
24
|
+
select: args.select,
|
|
25
|
+
})
|
|
26
|
+
.unwrap(),
|
|
27
|
+
onSuccess: (_, variables) => {
|
|
28
|
+
queryClient.invalidateQueries({
|
|
29
|
+
queryKey: webauthnCredentialsModuleKeys.detail(variables.id),
|
|
30
|
+
});
|
|
31
|
+
queryClient.invalidateQueries({
|
|
32
|
+
queryKey: webauthnCredentialsModuleKeys.lists(),
|
|
33
|
+
});
|
|
34
|
+
},
|
|
35
|
+
...mutationOptions,
|
|
36
|
+
});
|
|
37
|
+
}
|
|
@@ -24,6 +24,8 @@ export * from './useCheckConstraintsQuery';
|
|
|
24
24
|
export * from './useCheckConstraintQuery';
|
|
25
25
|
export * from './useFieldsQuery';
|
|
26
26
|
export * from './useFieldQuery';
|
|
27
|
+
export * from './useSpatialRelationsQuery';
|
|
28
|
+
export * from './useSpatialRelationQuery';
|
|
27
29
|
export * from './useForeignKeyConstraintsQuery';
|
|
28
30
|
export * from './useForeignKeyConstraintQuery';
|
|
29
31
|
export * from './useFullTextSearchesQuery';
|
|
@@ -50,12 +52,12 @@ export * from './useViewRulesQuery';
|
|
|
50
52
|
export * from './useViewRuleQuery';
|
|
51
53
|
export * from './useEmbeddingChunksQuery';
|
|
52
54
|
export * from './useEmbeddingChunkQuery';
|
|
53
|
-
export * from './useTableTemplateModulesQuery';
|
|
54
|
-
export * from './useTableTemplateModuleQuery';
|
|
55
55
|
export * from './useSecureTableProvisionsQuery';
|
|
56
56
|
export * from './useSecureTableProvisionQuery';
|
|
57
57
|
export * from './useRelationProvisionsQuery';
|
|
58
58
|
export * from './useRelationProvisionQuery';
|
|
59
|
+
export * from './useSessionSecretsModulesQuery';
|
|
60
|
+
export * from './useSessionSecretsModuleQuery';
|
|
59
61
|
export * from './useSchemaGrantsQuery';
|
|
60
62
|
export * from './useSchemaGrantQuery';
|
|
61
63
|
export * from './useDefaultPrivilegesQuery';
|
|
@@ -130,6 +132,10 @@ export * from './useBlueprintConstructionsQuery';
|
|
|
130
132
|
export * from './useBlueprintConstructionQuery';
|
|
131
133
|
export * from './useStorageModulesQuery';
|
|
132
134
|
export * from './useStorageModuleQuery';
|
|
135
|
+
export * from './useEntityTypeProvisionsQuery';
|
|
136
|
+
export * from './useEntityTypeProvisionQuery';
|
|
137
|
+
export * from './useWebauthnCredentialsModulesQuery';
|
|
138
|
+
export * from './useWebauthnCredentialsModuleQuery';
|
|
133
139
|
export * from './useDatabaseProvisionModulesQuery';
|
|
134
140
|
export * from './useDatabaseProvisionModuleQuery';
|
|
135
141
|
export * from './useAppAdminGrantsQuery';
|
|
@@ -146,6 +152,8 @@ export * from './useOrgAdminGrantsQuery';
|
|
|
146
152
|
export * from './useOrgAdminGrantQuery';
|
|
147
153
|
export * from './useOrgOwnerGrantsQuery';
|
|
148
154
|
export * from './useOrgOwnerGrantQuery';
|
|
155
|
+
export * from './useOrgMemberProfilesQuery';
|
|
156
|
+
export * from './useOrgMemberProfileQuery';
|
|
149
157
|
export * from './useOrgGrantsQuery';
|
|
150
158
|
export * from './useOrgGrantQuery';
|
|
151
159
|
export * from './useOrgChartEdgesQuery';
|
|
@@ -170,8 +178,6 @@ export * from './usePhoneNumbersQuery';
|
|
|
170
178
|
export * from './usePhoneNumberQuery';
|
|
171
179
|
export * from './useCryptoAddressesQuery';
|
|
172
180
|
export * from './useCryptoAddressQuery';
|
|
173
|
-
export * from './useConnectedAccountsQuery';
|
|
174
|
-
export * from './useConnectedAccountQuery';
|
|
175
181
|
export * from './useAppInvitesQuery';
|
|
176
182
|
export * from './useAppInviteQuery';
|
|
177
183
|
export * from './useAppClaimedInvitesQuery';
|
|
@@ -196,14 +202,18 @@ export * from './useAppLimitDefaultsQuery';
|
|
|
196
202
|
export * from './useAppLimitDefaultQuery';
|
|
197
203
|
export * from './useOrgLimitDefaultsQuery';
|
|
198
204
|
export * from './useOrgLimitDefaultQuery';
|
|
199
|
-
export * from './
|
|
200
|
-
export * from './
|
|
205
|
+
export * from './useDevicesModulesQuery';
|
|
206
|
+
export * from './useDevicesModuleQuery';
|
|
207
|
+
export * from './useUserConnectedAccountsQuery';
|
|
208
|
+
export * from './useUserConnectedAccountQuery';
|
|
201
209
|
export * from './useAppMembershipDefaultsQuery';
|
|
202
210
|
export * from './useAppMembershipDefaultQuery';
|
|
203
211
|
export * from './useCommitsQuery';
|
|
204
212
|
export * from './useCommitQuery';
|
|
205
213
|
export * from './useRateLimitsModulesQuery';
|
|
206
214
|
export * from './useRateLimitsModuleQuery';
|
|
215
|
+
export * from './useMembershipTypesQuery';
|
|
216
|
+
export * from './useMembershipTypeQuery';
|
|
207
217
|
export * from './useOrgMembershipDefaultsQuery';
|
|
208
218
|
export * from './useOrgMembershipDefaultQuery';
|
|
209
219
|
export * from './useRlsModulesQuery';
|
|
@@ -219,12 +229,14 @@ export * from './useAppMembershipQuery';
|
|
|
219
229
|
export * from './useHierarchyModulesQuery';
|
|
220
230
|
export * from './useHierarchyModuleQuery';
|
|
221
231
|
export * from './useCurrentUserIdQuery';
|
|
222
|
-
export * from './useCurrentIpAddressQuery';
|
|
223
232
|
export * from './useCurrentUserAgentQuery';
|
|
233
|
+
export * from './useCurrentIpAddressQuery';
|
|
234
|
+
export * from './useRequireStepUpQuery';
|
|
224
235
|
export * from './useAppPermissionsGetPaddedMaskQuery';
|
|
225
236
|
export * from './useOrgPermissionsGetPaddedMaskQuery';
|
|
226
237
|
export * from './useStepsAchievedQuery';
|
|
227
238
|
export * from './useRevParseQuery';
|
|
239
|
+
export * from './useResolveBlueprintFieldQuery';
|
|
228
240
|
export * from './useOrgIsManagerOfQuery';
|
|
229
241
|
export * from './useAppPermissionsGetMaskQuery';
|
|
230
242
|
export * from './useOrgPermissionsGetMaskQuery';
|
|
@@ -24,6 +24,8 @@ export * from './useCheckConstraintsQuery';
|
|
|
24
24
|
export * from './useCheckConstraintQuery';
|
|
25
25
|
export * from './useFieldsQuery';
|
|
26
26
|
export * from './useFieldQuery';
|
|
27
|
+
export * from './useSpatialRelationsQuery';
|
|
28
|
+
export * from './useSpatialRelationQuery';
|
|
27
29
|
export * from './useForeignKeyConstraintsQuery';
|
|
28
30
|
export * from './useForeignKeyConstraintQuery';
|
|
29
31
|
export * from './useFullTextSearchesQuery';
|
|
@@ -50,12 +52,12 @@ export * from './useViewRulesQuery';
|
|
|
50
52
|
export * from './useViewRuleQuery';
|
|
51
53
|
export * from './useEmbeddingChunksQuery';
|
|
52
54
|
export * from './useEmbeddingChunkQuery';
|
|
53
|
-
export * from './useTableTemplateModulesQuery';
|
|
54
|
-
export * from './useTableTemplateModuleQuery';
|
|
55
55
|
export * from './useSecureTableProvisionsQuery';
|
|
56
56
|
export * from './useSecureTableProvisionQuery';
|
|
57
57
|
export * from './useRelationProvisionsQuery';
|
|
58
58
|
export * from './useRelationProvisionQuery';
|
|
59
|
+
export * from './useSessionSecretsModulesQuery';
|
|
60
|
+
export * from './useSessionSecretsModuleQuery';
|
|
59
61
|
export * from './useSchemaGrantsQuery';
|
|
60
62
|
export * from './useSchemaGrantQuery';
|
|
61
63
|
export * from './useDefaultPrivilegesQuery';
|
|
@@ -130,6 +132,10 @@ export * from './useBlueprintConstructionsQuery';
|
|
|
130
132
|
export * from './useBlueprintConstructionQuery';
|
|
131
133
|
export * from './useStorageModulesQuery';
|
|
132
134
|
export * from './useStorageModuleQuery';
|
|
135
|
+
export * from './useEntityTypeProvisionsQuery';
|
|
136
|
+
export * from './useEntityTypeProvisionQuery';
|
|
137
|
+
export * from './useWebauthnCredentialsModulesQuery';
|
|
138
|
+
export * from './useWebauthnCredentialsModuleQuery';
|
|
133
139
|
export * from './useDatabaseProvisionModulesQuery';
|
|
134
140
|
export * from './useDatabaseProvisionModuleQuery';
|
|
135
141
|
export * from './useAppAdminGrantsQuery';
|
|
@@ -146,6 +152,8 @@ export * from './useOrgAdminGrantsQuery';
|
|
|
146
152
|
export * from './useOrgAdminGrantQuery';
|
|
147
153
|
export * from './useOrgOwnerGrantsQuery';
|
|
148
154
|
export * from './useOrgOwnerGrantQuery';
|
|
155
|
+
export * from './useOrgMemberProfilesQuery';
|
|
156
|
+
export * from './useOrgMemberProfileQuery';
|
|
149
157
|
export * from './useOrgGrantsQuery';
|
|
150
158
|
export * from './useOrgGrantQuery';
|
|
151
159
|
export * from './useOrgChartEdgesQuery';
|
|
@@ -170,8 +178,6 @@ export * from './usePhoneNumbersQuery';
|
|
|
170
178
|
export * from './usePhoneNumberQuery';
|
|
171
179
|
export * from './useCryptoAddressesQuery';
|
|
172
180
|
export * from './useCryptoAddressQuery';
|
|
173
|
-
export * from './useConnectedAccountsQuery';
|
|
174
|
-
export * from './useConnectedAccountQuery';
|
|
175
181
|
export * from './useAppInvitesQuery';
|
|
176
182
|
export * from './useAppInviteQuery';
|
|
177
183
|
export * from './useAppClaimedInvitesQuery';
|
|
@@ -196,14 +202,18 @@ export * from './useAppLimitDefaultsQuery';
|
|
|
196
202
|
export * from './useAppLimitDefaultQuery';
|
|
197
203
|
export * from './useOrgLimitDefaultsQuery';
|
|
198
204
|
export * from './useOrgLimitDefaultQuery';
|
|
199
|
-
export * from './
|
|
200
|
-
export * from './
|
|
205
|
+
export * from './useDevicesModulesQuery';
|
|
206
|
+
export * from './useDevicesModuleQuery';
|
|
207
|
+
export * from './useUserConnectedAccountsQuery';
|
|
208
|
+
export * from './useUserConnectedAccountQuery';
|
|
201
209
|
export * from './useAppMembershipDefaultsQuery';
|
|
202
210
|
export * from './useAppMembershipDefaultQuery';
|
|
203
211
|
export * from './useCommitsQuery';
|
|
204
212
|
export * from './useCommitQuery';
|
|
205
213
|
export * from './useRateLimitsModulesQuery';
|
|
206
214
|
export * from './useRateLimitsModuleQuery';
|
|
215
|
+
export * from './useMembershipTypesQuery';
|
|
216
|
+
export * from './useMembershipTypeQuery';
|
|
207
217
|
export * from './useOrgMembershipDefaultsQuery';
|
|
208
218
|
export * from './useOrgMembershipDefaultQuery';
|
|
209
219
|
export * from './useRlsModulesQuery';
|
|
@@ -219,12 +229,14 @@ export * from './useAppMembershipQuery';
|
|
|
219
229
|
export * from './useHierarchyModulesQuery';
|
|
220
230
|
export * from './useHierarchyModuleQuery';
|
|
221
231
|
export * from './useCurrentUserIdQuery';
|
|
222
|
-
export * from './useCurrentIpAddressQuery';
|
|
223
232
|
export * from './useCurrentUserAgentQuery';
|
|
233
|
+
export * from './useCurrentIpAddressQuery';
|
|
234
|
+
export * from './useRequireStepUpQuery';
|
|
224
235
|
export * from './useAppPermissionsGetPaddedMaskQuery';
|
|
225
236
|
export * from './useOrgPermissionsGetPaddedMaskQuery';
|
|
226
237
|
export * from './useStepsAchievedQuery';
|
|
227
238
|
export * from './useRevParseQuery';
|
|
239
|
+
export * from './useResolveBlueprintFieldQuery';
|
|
228
240
|
export * from './useOrgIsManagerOfQuery';
|
|
229
241
|
export * from './useAppPermissionsGetMaskQuery';
|
|
230
242
|
export * from './useOrgPermissionsGetMaskQuery';
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Single item query hook for DevicesModule
|
|
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 { DevicesModuleSelect, DevicesModuleWithRelations } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { DevicesModuleSelect, DevicesModuleWithRelations } from '../../orm/input-types';
|
|
10
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
+
export declare const devicesModuleQueryKey: (id: string | number) => readonly ["devicesmodule", "detail", string | number];
|
|
12
|
+
/**
|
|
13
|
+
* Query hook for fetching a single DevicesModule
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* const { data, isLoading } = useDevicesModuleQuery({
|
|
18
|
+
* id: 'some-id',
|
|
19
|
+
* selection: { fields: { id: true, name: true } },
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare function useDevicesModuleQuery<S extends DevicesModuleSelect, TData = {
|
|
24
|
+
devicesModule: InferSelectResult<DevicesModuleWithRelations, S> | null;
|
|
25
|
+
}>(params: {
|
|
26
|
+
id: string;
|
|
27
|
+
selection: {
|
|
28
|
+
fields: S;
|
|
29
|
+
} & HookStrictSelect<NoInfer<S>, DevicesModuleSelect>;
|
|
30
|
+
} & Omit<UseQueryOptions<{
|
|
31
|
+
devicesModule: InferSelectResult<DevicesModuleWithRelations, S> | null;
|
|
32
|
+
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
33
|
+
/**
|
|
34
|
+
* Fetch a single DevicesModule without React hooks
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* const data = await fetchDevicesModuleQuery({
|
|
39
|
+
* id: 'some-id',
|
|
40
|
+
* selection: { fields: { id: true } },
|
|
41
|
+
* });
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
export declare function fetchDevicesModuleQuery<S extends DevicesModuleSelect>(params: {
|
|
45
|
+
id: string;
|
|
46
|
+
selection: {
|
|
47
|
+
fields: S;
|
|
48
|
+
} & HookStrictSelect<NoInfer<S>, DevicesModuleSelect>;
|
|
49
|
+
}): Promise<{
|
|
50
|
+
devicesModule: InferSelectResult<DevicesModuleWithRelations, S> | null;
|
|
51
|
+
}>;
|
|
52
|
+
/**
|
|
53
|
+
* Prefetch a single DevicesModule for SSR or cache warming
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* await prefetchDevicesModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
export declare function prefetchDevicesModuleQuery<S extends DevicesModuleSelect>(queryClient: QueryClient, params: {
|
|
61
|
+
id: string;
|
|
62
|
+
selection: {
|
|
63
|
+
fields: S;
|
|
64
|
+
} & HookStrictSelect<NoInfer<S>, DevicesModuleSelect>;
|
|
65
|
+
}): Promise<void>;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Single item query hook for DevicesModule
|
|
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 { devicesModuleKeys } from '../query-keys';
|
|
10
10
|
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
-
export const
|
|
12
|
-
export function
|
|
11
|
+
export const devicesModuleQueryKey = devicesModuleKeys.detail;
|
|
12
|
+
export function useDevicesModuleQuery(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: devicesModuleKeys.detail(params.id),
|
|
18
18
|
queryFn: () => getClient()
|
|
19
|
-
.
|
|
19
|
+
.devicesModule.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 fetchDevicesModuleQuery(params) {
|
|
28
28
|
const args = buildSelectionArgs(params.selection);
|
|
29
29
|
return getClient()
|
|
30
|
-
.
|
|
30
|
+
.devicesModule.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 prefetchDevicesModuleQuery(queryClient, params) {
|
|
37
37
|
const args = buildSelectionArgs(params.selection);
|
|
38
38
|
await queryClient.prefetchQuery({
|
|
39
|
-
queryKey:
|
|
39
|
+
queryKey: devicesModuleKeys.detail(params.id),
|
|
40
40
|
queryFn: () => getClient()
|
|
41
|
-
.
|
|
41
|
+
.devicesModule.findOne({
|
|
42
42
|
id: params.id,
|
|
43
43
|
select: args.select,
|
|
44
44
|
})
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* List query hook for DevicesModule
|
|
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 { DevicesModuleSelect, DevicesModuleWithRelations, DevicesModuleFilter, DevicesModuleOrderBy } from '../../orm/input-types';
|
|
9
|
+
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
|
|
10
|
+
export type { DevicesModuleSelect, DevicesModuleWithRelations, DevicesModuleFilter, DevicesModuleOrderBy, } from '../../orm/input-types';
|
|
11
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
12
|
+
export declare const devicesModulesQueryKey: (variables?: object) => readonly ["devicesmodule", "list", object];
|
|
13
|
+
/**
|
|
14
|
+
* Query hook for fetching DevicesModule list
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```tsx
|
|
18
|
+
* const { data, isLoading } = useDevicesModulesQuery({
|
|
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 useDevicesModulesQuery<S extends DevicesModuleSelect, TData = {
|
|
29
|
+
devicesModules: ConnectionResult<InferSelectResult<DevicesModuleWithRelations, S>>;
|
|
30
|
+
}>(params: {
|
|
31
|
+
selection: {
|
|
32
|
+
fields: S;
|
|
33
|
+
} & Omit<ListSelectionConfig<S, DevicesModuleFilter, DevicesModuleOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, DevicesModuleSelect>;
|
|
34
|
+
} & Omit<UseQueryOptions<{
|
|
35
|
+
devicesModules: ConnectionResult<InferSelectResult<DevicesModuleWithRelations, S>>;
|
|
36
|
+
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
37
|
+
/**
|
|
38
|
+
* Fetch DevicesModule list without React hooks
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```ts
|
|
42
|
+
* const data = await fetchDevicesModulesQuery({
|
|
43
|
+
* selection: {
|
|
44
|
+
* fields: { id: true },
|
|
45
|
+
* first: 10,
|
|
46
|
+
* },
|
|
47
|
+
* });
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
export declare function fetchDevicesModulesQuery<S extends DevicesModuleSelect>(params: {
|
|
51
|
+
selection: {
|
|
52
|
+
fields: S;
|
|
53
|
+
} & Omit<ListSelectionConfig<S, DevicesModuleFilter, DevicesModuleOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, DevicesModuleSelect>;
|
|
54
|
+
}): Promise<{
|
|
55
|
+
devicesModules: ConnectionResult<InferSelectResult<DevicesModuleWithRelations, S>>;
|
|
56
|
+
}>;
|
|
57
|
+
/**
|
|
58
|
+
* Prefetch DevicesModule list for SSR or cache warming
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* ```ts
|
|
62
|
+
* await prefetchDevicesModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
export declare function prefetchDevicesModulesQuery<S extends DevicesModuleSelect>(queryClient: QueryClient, params: {
|
|
66
|
+
selection: {
|
|
67
|
+
fields: S;
|
|
68
|
+
} & Omit<ListSelectionConfig<S, DevicesModuleFilter, DevicesModuleOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, DevicesModuleSelect>;
|
|
69
|
+
}): Promise<void>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* List query hook for DevicesModule
|
|
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 { devicesModuleKeys } from '../query-keys';
|
|
10
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
+
export const devicesModulesQueryKey = devicesModuleKeys.list;
|
|
12
|
+
export function useDevicesModulesQuery(params) {
|
|
13
|
+
const args = buildListSelectionArgs(params.selection);
|
|
14
|
+
const { selection: _selection, ...queryOptions } = params ?? {};
|
|
15
|
+
void _selection;
|
|
16
|
+
return useQuery({
|
|
17
|
+
queryKey: devicesModuleKeys.list(args),
|
|
18
|
+
queryFn: () => getClient().devicesModule.findMany(args).unwrap(),
|
|
19
|
+
...queryOptions,
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
export async function fetchDevicesModulesQuery(params) {
|
|
23
|
+
const args = buildListSelectionArgs(params.selection);
|
|
24
|
+
return getClient().devicesModule.findMany(args).unwrap();
|
|
25
|
+
}
|
|
26
|
+
export async function prefetchDevicesModulesQuery(queryClient, params) {
|
|
27
|
+
const args = buildListSelectionArgs(params.selection);
|
|
28
|
+
await queryClient.prefetchQuery({
|
|
29
|
+
queryKey: devicesModuleKeys.list(args),
|
|
30
|
+
queryFn: () => getClient().devicesModule.findMany(args).unwrap(),
|
|
31
|
+
});
|
|
32
|
+
}
|