@constructive-io/react 0.12.7 → 0.12.9
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 +12 -6
- package/admin/hooks/invalidation.js +31 -15
- package/admin/hooks/mutation-keys.d.ts +24 -12
- package/admin/hooks/mutation-keys.js +15 -8
- package/admin/hooks/mutations/index.d.ts +6 -3
- package/admin/hooks/mutations/index.js +6 -3
- package/admin/hooks/mutations/useCreateOrgMembershipSettingMutation.d.ts +34 -0
- package/admin/hooks/mutations/useCreateOrgMembershipSettingMutation.js +34 -0
- package/admin/hooks/mutations/useDeleteOrgMembershipSettingMutation.d.ts +38 -0
- package/admin/hooks/mutations/useDeleteOrgMembershipSettingMutation.js +39 -0
- package/admin/hooks/mutations/useUpdateOrgMembershipSettingMutation.d.ts +40 -0
- package/admin/hooks/mutations/useUpdateOrgMembershipSettingMutation.js +40 -0
- package/admin/hooks/queries/index.d.ts +4 -2
- package/admin/hooks/queries/index.js +4 -2
- package/admin/hooks/queries/useOrgMembershipSettingQuery.d.ts +65 -0
- package/admin/hooks/queries/useOrgMembershipSettingQuery.js +53 -0
- package/admin/hooks/queries/useOrgMembershipSettingsQuery.d.ts +69 -0
- package/admin/hooks/queries/useOrgMembershipSettingsQuery.js +38 -0
- package/admin/hooks/query-keys.d.ts +28 -14
- package/admin/hooks/query-keys.js +17 -9
- package/admin/orm/index.d.ts +4 -2
- package/admin/orm/index.js +4 -2
- package/admin/orm/input-types.d.ts +303 -142
- package/admin/orm/models/index.d.ts +2 -1
- package/admin/orm/models/index.js +5 -3
- package/admin/orm/models/orgMembershipSetting.d.ts +56 -0
- package/admin/orm/models/orgMembershipSetting.js +100 -0
- package/admin/schema-types.d.ts +231 -106
- package/admin/types.d.ts +23 -11
- package/auth/hooks/index.d.ts +1 -1
- package/auth/hooks/index.js +1 -1
- package/auth/hooks/invalidation.d.ts +12 -0
- package/auth/hooks/invalidation.js +32 -0
- package/auth/hooks/mutation-keys.d.ts +26 -2
- package/auth/hooks/mutation-keys.js +18 -4
- package/auth/hooks/mutations/index.d.ts +5 -1
- package/auth/hooks/mutations/index.js +5 -1
- package/auth/hooks/mutations/useCreateIdentityProviderMutation.d.ts +34 -0
- package/auth/hooks/mutations/useCreateIdentityProviderMutation.js +34 -0
- package/auth/hooks/mutations/useCreateWebauthnCredentialMutation.d.ts +34 -0
- package/auth/hooks/mutations/useCreateWebauthnCredentialMutation.js +34 -0
- package/auth/hooks/mutations/useDeleteWebauthnCredentialMutation.d.ts +38 -0
- package/auth/hooks/mutations/useDeleteWebauthnCredentialMutation.js +39 -0
- package/auth/hooks/mutations/useUpdateWebauthnCredentialMutation.d.ts +40 -0
- package/auth/hooks/mutations/useUpdateWebauthnCredentialMutation.js +40 -0
- package/auth/hooks/queries/index.d.ts +3 -0
- package/auth/hooks/queries/index.js +3 -0
- package/auth/hooks/queries/useIdentityProvidersQuery.d.ts +69 -0
- package/auth/hooks/queries/useIdentityProvidersQuery.js +38 -0
- package/auth/hooks/queries/useWebauthnCredentialQuery.d.ts +65 -0
- package/auth/hooks/queries/useWebauthnCredentialQuery.js +53 -0
- package/auth/hooks/queries/useWebauthnCredentialsQuery.d.ts +69 -0
- package/auth/hooks/queries/useWebauthnCredentialsQuery.js +38 -0
- package/auth/hooks/query-keys.d.ts +28 -0
- package/auth/hooks/query-keys.js +17 -1
- package/auth/orm/index.d.ts +9 -5
- package/auth/orm/index.js +4 -0
- package/auth/orm/input-types.d.ts +525 -81
- package/auth/orm/input-types.js +1 -0
- package/auth/orm/models/identityProvider.d.ts +32 -0
- package/auth/orm/models/identityProvider.js +55 -0
- package/auth/orm/models/index.d.ts +2 -0
- package/auth/orm/models/index.js +5 -1
- package/auth/orm/models/webauthnCredential.d.ts +56 -0
- package/auth/orm/models/webauthnCredential.js +100 -0
- package/auth/orm/mutation/index.d.ts +9 -9
- package/auth/orm/mutation/index.js +12 -12
- package/auth/schema-types.d.ts +278 -22
- package/auth/types.d.ts +27 -0
- package/esm/admin/hooks/index.d.ts +1 -1
- package/esm/admin/hooks/index.js +1 -1
- package/esm/admin/hooks/invalidation.d.ts +12 -6
- package/esm/admin/hooks/invalidation.js +32 -16
- package/esm/admin/hooks/mutation-keys.d.ts +24 -12
- package/esm/admin/hooks/mutation-keys.js +14 -7
- package/esm/admin/hooks/mutations/index.d.ts +6 -3
- package/esm/admin/hooks/mutations/index.js +6 -3
- package/esm/admin/hooks/mutations/useCreateOrgMembershipSettingMutation.d.ts +34 -0
- package/esm/admin/hooks/mutations/useCreateOrgMembershipSettingMutation.js +31 -0
- package/esm/admin/hooks/mutations/useDeleteOrgMembershipSettingMutation.d.ts +38 -0
- package/esm/admin/hooks/mutations/useDeleteOrgMembershipSettingMutation.js +36 -0
- package/esm/admin/hooks/mutations/useUpdateOrgMembershipSettingMutation.d.ts +40 -0
- package/esm/admin/hooks/mutations/useUpdateOrgMembershipSettingMutation.js +37 -0
- package/esm/admin/hooks/queries/index.d.ts +4 -2
- package/esm/admin/hooks/queries/index.js +4 -2
- package/esm/admin/hooks/queries/useOrgMembershipSettingQuery.d.ts +65 -0
- package/esm/admin/hooks/queries/useOrgMembershipSettingQuery.js +47 -0
- package/esm/admin/hooks/queries/useOrgMembershipSettingsQuery.d.ts +69 -0
- package/esm/admin/hooks/queries/useOrgMembershipSettingsQuery.js +32 -0
- package/esm/admin/hooks/query-keys.d.ts +28 -14
- package/esm/admin/hooks/query-keys.js +16 -8
- package/esm/admin/orm/index.d.ts +4 -2
- package/esm/admin/orm/index.js +4 -2
- package/esm/admin/orm/input-types.d.ts +303 -142
- package/esm/admin/orm/models/index.d.ts +2 -1
- package/esm/admin/orm/models/index.js +2 -1
- package/esm/admin/orm/models/orgMembershipSetting.d.ts +56 -0
- package/esm/admin/orm/models/orgMembershipSetting.js +96 -0
- package/esm/admin/schema-types.d.ts +231 -106
- package/esm/admin/types.d.ts +23 -11
- package/esm/auth/hooks/index.d.ts +1 -1
- package/esm/auth/hooks/index.js +1 -1
- package/esm/auth/hooks/invalidation.d.ts +12 -0
- package/esm/auth/hooks/invalidation.js +33 -1
- package/esm/auth/hooks/mutation-keys.d.ts +26 -2
- package/esm/auth/hooks/mutation-keys.js +17 -3
- package/esm/auth/hooks/mutations/index.d.ts +5 -1
- package/esm/auth/hooks/mutations/index.js +5 -1
- package/esm/auth/hooks/mutations/useCreateIdentityProviderMutation.d.ts +34 -0
- package/esm/auth/hooks/mutations/useCreateIdentityProviderMutation.js +31 -0
- package/esm/auth/hooks/mutations/useCreateWebauthnCredentialMutation.d.ts +34 -0
- package/esm/auth/hooks/mutations/useCreateWebauthnCredentialMutation.js +31 -0
- package/esm/auth/hooks/mutations/useDeleteWebauthnCredentialMutation.d.ts +38 -0
- package/esm/auth/hooks/mutations/useDeleteWebauthnCredentialMutation.js +36 -0
- package/esm/auth/hooks/mutations/useUpdateWebauthnCredentialMutation.d.ts +40 -0
- package/esm/auth/hooks/mutations/useUpdateWebauthnCredentialMutation.js +37 -0
- package/esm/auth/hooks/queries/index.d.ts +3 -0
- package/esm/auth/hooks/queries/index.js +3 -0
- package/esm/auth/hooks/queries/useIdentityProvidersQuery.d.ts +69 -0
- package/esm/auth/hooks/queries/useIdentityProvidersQuery.js +32 -0
- package/esm/auth/hooks/queries/useWebauthnCredentialQuery.d.ts +65 -0
- package/esm/auth/hooks/queries/useWebauthnCredentialQuery.js +47 -0
- package/esm/auth/hooks/queries/useWebauthnCredentialsQuery.d.ts +69 -0
- package/esm/auth/hooks/queries/useWebauthnCredentialsQuery.js +32 -0
- package/esm/auth/hooks/query-keys.d.ts +28 -0
- package/esm/auth/hooks/query-keys.js +16 -0
- package/esm/auth/orm/index.d.ts +9 -5
- package/esm/auth/orm/index.js +4 -0
- package/esm/auth/orm/input-types.d.ts +525 -81
- package/esm/auth/orm/input-types.js +1 -0
- package/esm/auth/orm/models/identityProvider.d.ts +32 -0
- package/esm/auth/orm/models/identityProvider.js +51 -0
- package/esm/auth/orm/models/index.d.ts +2 -0
- package/esm/auth/orm/models/index.js +2 -0
- package/esm/auth/orm/models/webauthnCredential.d.ts +56 -0
- package/esm/auth/orm/models/webauthnCredential.js +96 -0
- package/esm/auth/orm/mutation/index.d.ts +9 -9
- package/esm/auth/orm/mutation/index.js +12 -12
- package/esm/auth/schema-types.d.ts +278 -22
- package/esm/auth/types.d.ts +27 -0
- package/esm/objects/orm/input-types.d.ts +12 -0
- package/esm/objects/schema-types.d.ts +12 -0
- package/esm/public/hooks/index.d.ts +1 -1
- package/esm/public/hooks/index.js +1 -1
- package/esm/public/hooks/invalidation.d.ts +42 -6
- package/esm/public/hooks/invalidation.js +113 -17
- package/esm/public/hooks/mutation-keys.d.ts +86 -14
- package/esm/public/hooks/mutation-keys.js +55 -10
- package/esm/public/hooks/mutations/index.d.ts +20 -4
- package/esm/public/hooks/mutations/index.js +20 -4
- package/esm/public/hooks/mutations/useCreateIdentityProviderMutation.d.ts +34 -0
- package/esm/public/hooks/mutations/useCreateIdentityProviderMutation.js +31 -0
- package/esm/public/hooks/mutations/useCreateIdentityProvidersModuleMutation.d.ts +34 -0
- package/esm/public/hooks/mutations/useCreateIdentityProvidersModuleMutation.js +31 -0
- package/esm/public/hooks/mutations/useCreateNotificationsModuleMutation.d.ts +34 -0
- package/esm/public/hooks/mutations/useCreateNotificationsModuleMutation.js +31 -0
- package/esm/public/hooks/mutations/useCreateOrgMembershipSettingMutation.d.ts +34 -0
- package/esm/public/hooks/mutations/useCreateOrgMembershipSettingMutation.js +31 -0
- package/esm/public/hooks/mutations/useCreateSecureTableProvisionMutation.d.ts +2 -2
- package/esm/public/hooks/mutations/useCreateSecureTableProvisionMutation.js +1 -1
- package/esm/public/hooks/mutations/useCreateWebauthnAuthModuleMutation.d.ts +34 -0
- package/esm/public/hooks/mutations/useCreateWebauthnAuthModuleMutation.js +31 -0
- package/esm/public/hooks/mutations/useCreateWebauthnCredentialMutation.d.ts +34 -0
- package/esm/public/hooks/mutations/useCreateWebauthnCredentialMutation.js +31 -0
- package/esm/public/hooks/mutations/useCreateWebauthnCredentialsModuleMutation.d.ts +2 -2
- package/esm/public/hooks/mutations/useCreateWebauthnCredentialsModuleMutation.js +1 -1
- package/esm/public/hooks/mutations/useDeleteIdentityProvidersModuleMutation.d.ts +38 -0
- package/esm/public/hooks/mutations/useDeleteIdentityProvidersModuleMutation.js +36 -0
- package/esm/public/hooks/mutations/useDeleteNotificationsModuleMutation.d.ts +38 -0
- package/esm/public/hooks/mutations/useDeleteNotificationsModuleMutation.js +36 -0
- package/esm/public/hooks/mutations/useDeleteOrgMembershipSettingMutation.d.ts +38 -0
- package/esm/public/hooks/mutations/useDeleteOrgMembershipSettingMutation.js +36 -0
- package/esm/public/hooks/mutations/useDeleteSecureTableProvisionMutation.d.ts +2 -2
- package/esm/public/hooks/mutations/useDeleteSecureTableProvisionMutation.js +1 -1
- package/esm/public/hooks/mutations/useDeleteWebauthnAuthModuleMutation.d.ts +38 -0
- package/esm/public/hooks/mutations/useDeleteWebauthnAuthModuleMutation.js +36 -0
- package/esm/public/hooks/mutations/useDeleteWebauthnCredentialMutation.d.ts +38 -0
- package/esm/public/hooks/mutations/useDeleteWebauthnCredentialMutation.js +36 -0
- package/esm/public/hooks/mutations/useDeleteWebauthnCredentialsModuleMutation.d.ts +2 -2
- package/esm/public/hooks/mutations/useDeleteWebauthnCredentialsModuleMutation.js +1 -1
- package/esm/public/hooks/mutations/useUpdateIdentityProvidersModuleMutation.d.ts +40 -0
- package/esm/public/hooks/mutations/useUpdateIdentityProvidersModuleMutation.js +37 -0
- package/esm/public/hooks/mutations/useUpdateNotificationsModuleMutation.d.ts +40 -0
- package/esm/public/hooks/mutations/useUpdateNotificationsModuleMutation.js +37 -0
- package/esm/public/hooks/mutations/useUpdateOrgMembershipSettingMutation.d.ts +40 -0
- package/esm/public/hooks/mutations/useUpdateOrgMembershipSettingMutation.js +37 -0
- package/esm/public/hooks/mutations/useUpdateSecureTableProvisionMutation.d.ts +2 -2
- package/esm/public/hooks/mutations/useUpdateSecureTableProvisionMutation.js +1 -1
- package/esm/public/hooks/mutations/useUpdateWebauthnAuthModuleMutation.d.ts +40 -0
- package/esm/public/hooks/mutations/useUpdateWebauthnAuthModuleMutation.js +37 -0
- package/esm/public/hooks/mutations/useUpdateWebauthnCredentialMutation.d.ts +40 -0
- package/esm/public/hooks/mutations/useUpdateWebauthnCredentialMutation.js +37 -0
- package/esm/public/hooks/mutations/useUpdateWebauthnCredentialsModuleMutation.d.ts +2 -2
- package/esm/public/hooks/mutations/useUpdateWebauthnCredentialsModuleMutation.js +1 -1
- package/esm/public/hooks/queries/index.d.ts +13 -2
- package/esm/public/hooks/queries/index.js +13 -2
- package/esm/public/hooks/queries/useIdentityProvidersModuleQuery.d.ts +65 -0
- package/esm/public/hooks/queries/useIdentityProvidersModuleQuery.js +47 -0
- package/esm/public/hooks/queries/useIdentityProvidersModulesQuery.d.ts +69 -0
- package/esm/public/hooks/queries/useIdentityProvidersModulesQuery.js +32 -0
- package/esm/public/hooks/queries/useIdentityProvidersQuery.d.ts +69 -0
- package/esm/public/hooks/queries/useIdentityProvidersQuery.js +32 -0
- package/esm/public/hooks/queries/useNotificationsModuleQuery.d.ts +65 -0
- package/esm/public/hooks/queries/useNotificationsModuleQuery.js +47 -0
- package/esm/public/hooks/queries/useNotificationsModulesQuery.d.ts +69 -0
- package/esm/public/hooks/queries/useNotificationsModulesQuery.js +32 -0
- package/esm/public/hooks/queries/useOrgMembershipSettingQuery.d.ts +65 -0
- package/esm/public/hooks/queries/useOrgMembershipSettingQuery.js +47 -0
- package/esm/public/hooks/queries/useOrgMembershipSettingsQuery.d.ts +69 -0
- package/esm/public/hooks/queries/useOrgMembershipSettingsQuery.js +32 -0
- package/esm/public/hooks/queries/useSecureTableProvisionQuery.d.ts +4 -4
- package/esm/public/hooks/queries/useSecureTableProvisionQuery.js +1 -1
- package/esm/public/hooks/queries/useSecureTableProvisionsQuery.d.ts +4 -4
- package/esm/public/hooks/queries/useSecureTableProvisionsQuery.js +1 -1
- package/esm/public/hooks/queries/useWebauthnAuthModuleQuery.d.ts +65 -0
- package/esm/public/hooks/queries/useWebauthnAuthModuleQuery.js +47 -0
- package/esm/public/hooks/queries/useWebauthnAuthModulesQuery.d.ts +69 -0
- package/esm/public/hooks/queries/useWebauthnAuthModulesQuery.js +32 -0
- package/esm/public/hooks/queries/useWebauthnCredentialQuery.d.ts +65 -0
- package/esm/public/hooks/queries/useWebauthnCredentialQuery.js +47 -0
- package/esm/public/hooks/queries/useWebauthnCredentialsModuleQuery.d.ts +4 -4
- package/esm/public/hooks/queries/useWebauthnCredentialsModuleQuery.js +1 -1
- package/esm/public/hooks/queries/useWebauthnCredentialsModulesQuery.d.ts +4 -4
- package/esm/public/hooks/queries/useWebauthnCredentialsModulesQuery.js +1 -1
- package/esm/public/hooks/queries/useWebauthnCredentialsQuery.d.ts +69 -0
- package/esm/public/hooks/queries/useWebauthnCredentialsQuery.js +32 -0
- package/esm/public/hooks/query-keys.d.ts +98 -14
- package/esm/public/hooks/query-keys.js +56 -8
- package/esm/public/orm/index.d.ts +19 -7
- package/esm/public/orm/index.js +14 -2
- package/esm/public/orm/input-types.d.ts +1827 -366
- package/esm/public/orm/input-types.js +7 -0
- package/esm/public/orm/models/identityProvider.d.ts +32 -0
- package/esm/public/orm/models/identityProvider.js +51 -0
- package/esm/public/orm/models/identityProvidersModule.d.ts +56 -0
- package/esm/public/orm/models/identityProvidersModule.js +96 -0
- package/esm/public/orm/models/index.d.ts +7 -1
- package/esm/public/orm/models/index.js +7 -1
- package/esm/public/orm/models/notificationsModule.d.ts +56 -0
- package/esm/public/orm/models/notificationsModule.js +96 -0
- package/esm/public/orm/models/orgMembershipSetting.d.ts +56 -0
- package/esm/public/orm/models/orgMembershipSetting.js +96 -0
- package/esm/public/orm/models/webauthnAuthModule.d.ts +56 -0
- package/esm/public/orm/models/webauthnAuthModule.js +96 -0
- package/esm/public/orm/models/webauthnCredential.d.ts +56 -0
- package/esm/public/orm/models/webauthnCredential.js +96 -0
- package/esm/public/orm/mutation/index.d.ts +9 -9
- package/esm/public/orm/mutation/index.js +12 -12
- package/esm/public/schema-types.d.ts +2041 -1214
- package/esm/public/types.d.ts +103 -27
- package/objects/orm/input-types.d.ts +12 -0
- package/objects/schema-types.d.ts +12 -0
- 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 +42 -6
- package/public/hooks/invalidation.js +112 -16
- package/public/hooks/mutation-keys.d.ts +86 -14
- package/public/hooks/mutation-keys.js +58 -13
- package/public/hooks/mutations/index.d.ts +20 -4
- package/public/hooks/mutations/index.js +20 -4
- package/public/hooks/mutations/useCreateIdentityProviderMutation.d.ts +34 -0
- package/public/hooks/mutations/useCreateIdentityProviderMutation.js +34 -0
- package/public/hooks/mutations/useCreateIdentityProvidersModuleMutation.d.ts +34 -0
- package/public/hooks/mutations/useCreateIdentityProvidersModuleMutation.js +34 -0
- package/public/hooks/mutations/useCreateNotificationsModuleMutation.d.ts +34 -0
- package/public/hooks/mutations/useCreateNotificationsModuleMutation.js +34 -0
- package/public/hooks/mutations/useCreateOrgMembershipSettingMutation.d.ts +34 -0
- package/public/hooks/mutations/useCreateOrgMembershipSettingMutation.js +34 -0
- package/public/hooks/mutations/useCreateSecureTableProvisionMutation.d.ts +2 -2
- package/public/hooks/mutations/useCreateSecureTableProvisionMutation.js +1 -1
- package/public/hooks/mutations/useCreateWebauthnAuthModuleMutation.d.ts +34 -0
- package/public/hooks/mutations/useCreateWebauthnAuthModuleMutation.js +34 -0
- package/public/hooks/mutations/useCreateWebauthnCredentialMutation.d.ts +34 -0
- package/public/hooks/mutations/useCreateWebauthnCredentialMutation.js +34 -0
- package/public/hooks/mutations/useCreateWebauthnCredentialsModuleMutation.d.ts +2 -2
- package/public/hooks/mutations/useCreateWebauthnCredentialsModuleMutation.js +1 -1
- package/public/hooks/mutations/useDeleteIdentityProvidersModuleMutation.d.ts +38 -0
- package/public/hooks/mutations/useDeleteIdentityProvidersModuleMutation.js +39 -0
- package/public/hooks/mutations/useDeleteNotificationsModuleMutation.d.ts +38 -0
- package/public/hooks/mutations/useDeleteNotificationsModuleMutation.js +39 -0
- package/public/hooks/mutations/useDeleteOrgMembershipSettingMutation.d.ts +38 -0
- package/public/hooks/mutations/useDeleteOrgMembershipSettingMutation.js +39 -0
- package/public/hooks/mutations/useDeleteSecureTableProvisionMutation.d.ts +2 -2
- package/public/hooks/mutations/useDeleteSecureTableProvisionMutation.js +1 -1
- package/public/hooks/mutations/useDeleteWebauthnAuthModuleMutation.d.ts +38 -0
- package/public/hooks/mutations/useDeleteWebauthnAuthModuleMutation.js +39 -0
- package/public/hooks/mutations/useDeleteWebauthnCredentialMutation.d.ts +38 -0
- package/public/hooks/mutations/useDeleteWebauthnCredentialMutation.js +39 -0
- package/public/hooks/mutations/useDeleteWebauthnCredentialsModuleMutation.d.ts +2 -2
- package/public/hooks/mutations/useDeleteWebauthnCredentialsModuleMutation.js +1 -1
- package/public/hooks/mutations/useUpdateIdentityProvidersModuleMutation.d.ts +40 -0
- package/public/hooks/mutations/useUpdateIdentityProvidersModuleMutation.js +40 -0
- package/public/hooks/mutations/useUpdateNotificationsModuleMutation.d.ts +40 -0
- package/public/hooks/mutations/useUpdateNotificationsModuleMutation.js +40 -0
- package/public/hooks/mutations/useUpdateOrgMembershipSettingMutation.d.ts +40 -0
- package/public/hooks/mutations/useUpdateOrgMembershipSettingMutation.js +40 -0
- package/public/hooks/mutations/useUpdateSecureTableProvisionMutation.d.ts +2 -2
- package/public/hooks/mutations/useUpdateSecureTableProvisionMutation.js +1 -1
- package/public/hooks/mutations/useUpdateWebauthnAuthModuleMutation.d.ts +40 -0
- package/public/hooks/mutations/useUpdateWebauthnAuthModuleMutation.js +40 -0
- package/public/hooks/mutations/useUpdateWebauthnCredentialMutation.d.ts +40 -0
- package/public/hooks/mutations/useUpdateWebauthnCredentialMutation.js +40 -0
- package/public/hooks/mutations/useUpdateWebauthnCredentialsModuleMutation.d.ts +2 -2
- package/public/hooks/mutations/useUpdateWebauthnCredentialsModuleMutation.js +1 -1
- package/public/hooks/queries/index.d.ts +13 -2
- package/public/hooks/queries/index.js +13 -2
- package/public/hooks/queries/useIdentityProvidersModuleQuery.d.ts +65 -0
- package/public/hooks/queries/useIdentityProvidersModuleQuery.js +53 -0
- package/public/hooks/queries/useIdentityProvidersModulesQuery.d.ts +69 -0
- package/public/hooks/queries/useIdentityProvidersModulesQuery.js +38 -0
- package/public/hooks/queries/useIdentityProvidersQuery.d.ts +69 -0
- package/public/hooks/queries/useIdentityProvidersQuery.js +38 -0
- package/public/hooks/queries/useNotificationsModuleQuery.d.ts +65 -0
- package/public/hooks/queries/useNotificationsModuleQuery.js +53 -0
- package/public/hooks/queries/useNotificationsModulesQuery.d.ts +69 -0
- package/public/hooks/queries/useNotificationsModulesQuery.js +38 -0
- package/public/hooks/queries/useOrgMembershipSettingQuery.d.ts +65 -0
- package/public/hooks/queries/useOrgMembershipSettingQuery.js +53 -0
- package/public/hooks/queries/useOrgMembershipSettingsQuery.d.ts +69 -0
- package/public/hooks/queries/useOrgMembershipSettingsQuery.js +38 -0
- package/public/hooks/queries/useSecureTableProvisionQuery.d.ts +4 -4
- package/public/hooks/queries/useSecureTableProvisionQuery.js +1 -1
- package/public/hooks/queries/useSecureTableProvisionsQuery.d.ts +4 -4
- package/public/hooks/queries/useSecureTableProvisionsQuery.js +1 -1
- package/public/hooks/queries/useWebauthnAuthModuleQuery.d.ts +65 -0
- package/public/hooks/queries/useWebauthnAuthModuleQuery.js +53 -0
- package/public/hooks/queries/useWebauthnAuthModulesQuery.d.ts +69 -0
- package/public/hooks/queries/useWebauthnAuthModulesQuery.js +38 -0
- package/public/hooks/queries/useWebauthnCredentialQuery.d.ts +65 -0
- package/public/hooks/queries/useWebauthnCredentialQuery.js +53 -0
- package/public/hooks/queries/useWebauthnCredentialsModuleQuery.d.ts +4 -4
- package/public/hooks/queries/useWebauthnCredentialsModuleQuery.js +1 -1
- package/public/hooks/queries/useWebauthnCredentialsModulesQuery.d.ts +4 -4
- package/public/hooks/queries/useWebauthnCredentialsModulesQuery.js +1 -1
- package/public/hooks/queries/useWebauthnCredentialsQuery.d.ts +69 -0
- package/public/hooks/queries/useWebauthnCredentialsQuery.js +38 -0
- package/public/hooks/query-keys.d.ts +98 -14
- package/public/hooks/query-keys.js +59 -11
- package/public/orm/index.d.ts +19 -7
- package/public/orm/index.js +14 -2
- package/public/orm/input-types.d.ts +1827 -366
- package/public/orm/input-types.js +7 -0
- package/public/orm/models/identityProvider.d.ts +32 -0
- package/public/orm/models/identityProvider.js +55 -0
- package/public/orm/models/identityProvidersModule.d.ts +56 -0
- package/public/orm/models/identityProvidersModule.js +100 -0
- package/public/orm/models/index.d.ts +7 -1
- package/public/orm/models/index.js +17 -5
- package/public/orm/models/notificationsModule.d.ts +56 -0
- package/public/orm/models/notificationsModule.js +100 -0
- package/public/orm/models/orgMembershipSetting.d.ts +56 -0
- package/public/orm/models/orgMembershipSetting.js +100 -0
- package/public/orm/models/webauthnAuthModule.d.ts +56 -0
- package/public/orm/models/webauthnAuthModule.js +100 -0
- package/public/orm/models/webauthnCredential.d.ts +56 -0
- package/public/orm/models/webauthnCredential.js +100 -0
- package/public/orm/mutation/index.d.ts +9 -9
- package/public/orm/mutation/index.js +12 -12
- package/public/schema-types.d.ts +2041 -1214
- package/public/types.d.ts +103 -27
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via
|
|
2
|
+
* Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via grants[] array (supporting per-role privilege targeting), (3) create RLS policies via policies[] array (supporting multiple Authz* policies per row). Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent.
|
|
3
3
|
* @generated by @constructive-io/graphql-codegen
|
|
4
4
|
* DO NOT EDIT - changes will be overwritten
|
|
5
5
|
*/
|
|
@@ -10,7 +10,7 @@ export type { SecureTableProvisionSelect, SecureTableProvisionWithRelations, } f
|
|
|
10
10
|
/** Query key factory - re-exported from query-keys.ts */
|
|
11
11
|
export declare const secureTableProvisionQueryKey: (id: string | number) => readonly ["securetableprovision", "detail", string | number];
|
|
12
12
|
/**
|
|
13
|
-
* Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via
|
|
13
|
+
* Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via grants[] array (supporting per-role privilege targeting), (3) create RLS policies via policies[] array (supporting multiple Authz* policies per row). Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent.
|
|
14
14
|
*
|
|
15
15
|
* @example
|
|
16
16
|
* ```tsx
|
|
@@ -31,7 +31,7 @@ export declare function useSecureTableProvisionQuery<S extends SecureTableProvis
|
|
|
31
31
|
secureTableProvision: InferSelectResult<SecureTableProvisionWithRelations, S> | null;
|
|
32
32
|
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
33
33
|
/**
|
|
34
|
-
* Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via
|
|
34
|
+
* Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via grants[] array (supporting per-role privilege targeting), (3) create RLS policies via policies[] array (supporting multiple Authz* policies per row). Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent.
|
|
35
35
|
*
|
|
36
36
|
* @example
|
|
37
37
|
* ```ts
|
|
@@ -50,7 +50,7 @@ export declare function fetchSecureTableProvisionQuery<S extends SecureTableProv
|
|
|
50
50
|
secureTableProvision: InferSelectResult<SecureTableProvisionWithRelations, S> | null;
|
|
51
51
|
}>;
|
|
52
52
|
/**
|
|
53
|
-
* Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via
|
|
53
|
+
* Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via grants[] array (supporting per-role privilege targeting), (3) create RLS policies via policies[] array (supporting multiple Authz* policies per row). Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent.
|
|
54
54
|
*
|
|
55
55
|
* @example
|
|
56
56
|
* ```ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via
|
|
2
|
+
* Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via grants[] array (supporting per-role privilege targeting), (3) create RLS policies via policies[] array (supporting multiple Authz* policies per row). Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent.
|
|
3
3
|
* @generated by @constructive-io/graphql-codegen
|
|
4
4
|
* DO NOT EDIT - changes will be overwritten
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via
|
|
2
|
+
* Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via grants[] array (supporting per-role privilege targeting), (3) create RLS policies via policies[] array (supporting multiple Authz* policies per row). Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent.
|
|
3
3
|
* @generated by @constructive-io/graphql-codegen
|
|
4
4
|
* DO NOT EDIT - changes will be overwritten
|
|
5
5
|
*/
|
|
@@ -11,7 +11,7 @@ export type { SecureTableProvisionSelect, SecureTableProvisionWithRelations, Sec
|
|
|
11
11
|
/** Query key factory - re-exported from query-keys.ts */
|
|
12
12
|
export declare const secureTableProvisionsQueryKey: (variables?: object) => readonly ["securetableprovision", "list", object];
|
|
13
13
|
/**
|
|
14
|
-
* Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via
|
|
14
|
+
* Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via grants[] array (supporting per-role privilege targeting), (3) create RLS policies via policies[] array (supporting multiple Authz* policies per row). Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent.
|
|
15
15
|
*
|
|
16
16
|
* @example
|
|
17
17
|
* ```tsx
|
|
@@ -35,7 +35,7 @@ export declare function useSecureTableProvisionsQuery<S extends SecureTableProvi
|
|
|
35
35
|
secureTableProvisions: ConnectionResult<InferSelectResult<SecureTableProvisionWithRelations, S>>;
|
|
36
36
|
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
37
37
|
/**
|
|
38
|
-
* Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via
|
|
38
|
+
* Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via grants[] array (supporting per-role privilege targeting), (3) create RLS policies via policies[] array (supporting multiple Authz* policies per row). Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent.
|
|
39
39
|
*
|
|
40
40
|
* @example
|
|
41
41
|
* ```ts
|
|
@@ -55,7 +55,7 @@ export declare function fetchSecureTableProvisionsQuery<S extends SecureTablePro
|
|
|
55
55
|
secureTableProvisions: ConnectionResult<InferSelectResult<SecureTableProvisionWithRelations, S>>;
|
|
56
56
|
}>;
|
|
57
57
|
/**
|
|
58
|
-
* Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via
|
|
58
|
+
* Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via grants[] array (supporting per-role privilege targeting), (3) create RLS policies via policies[] array (supporting multiple Authz* policies per row). Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent.
|
|
59
59
|
*
|
|
60
60
|
* @example
|
|
61
61
|
* ```ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via
|
|
2
|
+
* Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via grants[] array (supporting per-role privilege targeting), (3) create RLS policies via policies[] array (supporting multiple Authz* policies per row). Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent.
|
|
3
3
|
* @generated by @constructive-io/graphql-codegen
|
|
4
4
|
* DO NOT EDIT - changes will be overwritten
|
|
5
5
|
*/
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Single item query hook for WebauthnAuthModule
|
|
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 { WebauthnAuthModuleSelect, WebauthnAuthModuleWithRelations } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { WebauthnAuthModuleSelect, WebauthnAuthModuleWithRelations, } from '../../orm/input-types';
|
|
10
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
+
export declare const webauthnAuthModuleQueryKey: (id: string | number) => readonly ["webauthnauthmodule", "detail", string | number];
|
|
12
|
+
/**
|
|
13
|
+
* Query hook for fetching a single WebauthnAuthModule
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* const { data, isLoading } = useWebauthnAuthModuleQuery({
|
|
18
|
+
* id: 'some-id',
|
|
19
|
+
* selection: { fields: { id: true, name: true } },
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare function useWebauthnAuthModuleQuery<S extends WebauthnAuthModuleSelect, TData = {
|
|
24
|
+
webauthnAuthModule: InferSelectResult<WebauthnAuthModuleWithRelations, S> | null;
|
|
25
|
+
}>(params: {
|
|
26
|
+
id: string;
|
|
27
|
+
selection: {
|
|
28
|
+
fields: S;
|
|
29
|
+
} & HookStrictSelect<NoInfer<S>, WebauthnAuthModuleSelect>;
|
|
30
|
+
} & Omit<UseQueryOptions<{
|
|
31
|
+
webauthnAuthModule: InferSelectResult<WebauthnAuthModuleWithRelations, S> | null;
|
|
32
|
+
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
33
|
+
/**
|
|
34
|
+
* Fetch a single WebauthnAuthModule without React hooks
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* const data = await fetchWebauthnAuthModuleQuery({
|
|
39
|
+
* id: 'some-id',
|
|
40
|
+
* selection: { fields: { id: true } },
|
|
41
|
+
* });
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
export declare function fetchWebauthnAuthModuleQuery<S extends WebauthnAuthModuleSelect>(params: {
|
|
45
|
+
id: string;
|
|
46
|
+
selection: {
|
|
47
|
+
fields: S;
|
|
48
|
+
} & HookStrictSelect<NoInfer<S>, WebauthnAuthModuleSelect>;
|
|
49
|
+
}): Promise<{
|
|
50
|
+
webauthnAuthModule: InferSelectResult<WebauthnAuthModuleWithRelations, S> | null;
|
|
51
|
+
}>;
|
|
52
|
+
/**
|
|
53
|
+
* Prefetch a single WebauthnAuthModule for SSR or cache warming
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* await prefetchWebauthnAuthModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
export declare function prefetchWebauthnAuthModuleQuery<S extends WebauthnAuthModuleSelect>(queryClient: QueryClient, params: {
|
|
61
|
+
id: string;
|
|
62
|
+
selection: {
|
|
63
|
+
fields: S;
|
|
64
|
+
} & HookStrictSelect<NoInfer<S>, WebauthnAuthModuleSelect>;
|
|
65
|
+
}): Promise<void>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Single item query hook for WebauthnAuthModule
|
|
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 { webauthnAuthModuleKeys } from '../query-keys';
|
|
10
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
+
export const webauthnAuthModuleQueryKey = webauthnAuthModuleKeys.detail;
|
|
12
|
+
export function useWebauthnAuthModuleQuery(params) {
|
|
13
|
+
const args = buildSelectionArgs(params.selection);
|
|
14
|
+
const { selection: _selection, ...queryOptions } = params ?? {};
|
|
15
|
+
void _selection;
|
|
16
|
+
return useQuery({
|
|
17
|
+
queryKey: webauthnAuthModuleKeys.detail(params.id),
|
|
18
|
+
queryFn: () => getClient()
|
|
19
|
+
.webauthnAuthModule.findOne({
|
|
20
|
+
id: params.id,
|
|
21
|
+
select: args.select,
|
|
22
|
+
})
|
|
23
|
+
.unwrap(),
|
|
24
|
+
...queryOptions,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
export async function fetchWebauthnAuthModuleQuery(params) {
|
|
28
|
+
const args = buildSelectionArgs(params.selection);
|
|
29
|
+
return getClient()
|
|
30
|
+
.webauthnAuthModule.findOne({
|
|
31
|
+
id: params.id,
|
|
32
|
+
select: args.select,
|
|
33
|
+
})
|
|
34
|
+
.unwrap();
|
|
35
|
+
}
|
|
36
|
+
export async function prefetchWebauthnAuthModuleQuery(queryClient, params) {
|
|
37
|
+
const args = buildSelectionArgs(params.selection);
|
|
38
|
+
await queryClient.prefetchQuery({
|
|
39
|
+
queryKey: webauthnAuthModuleKeys.detail(params.id),
|
|
40
|
+
queryFn: () => getClient()
|
|
41
|
+
.webauthnAuthModule.findOne({
|
|
42
|
+
id: params.id,
|
|
43
|
+
select: args.select,
|
|
44
|
+
})
|
|
45
|
+
.unwrap(),
|
|
46
|
+
});
|
|
47
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* List query hook for WebauthnAuthModule
|
|
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 { WebauthnAuthModuleSelect, WebauthnAuthModuleWithRelations, WebauthnAuthModuleFilter, WebauthnAuthModuleOrderBy } from '../../orm/input-types';
|
|
9
|
+
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
|
|
10
|
+
export type { WebauthnAuthModuleSelect, WebauthnAuthModuleWithRelations, WebauthnAuthModuleFilter, WebauthnAuthModuleOrderBy, } from '../../orm/input-types';
|
|
11
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
12
|
+
export declare const webauthnAuthModulesQueryKey: (variables?: object) => readonly ["webauthnauthmodule", "list", object];
|
|
13
|
+
/**
|
|
14
|
+
* Query hook for fetching WebauthnAuthModule list
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```tsx
|
|
18
|
+
* const { data, isLoading } = useWebauthnAuthModulesQuery({
|
|
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 useWebauthnAuthModulesQuery<S extends WebauthnAuthModuleSelect, TData = {
|
|
29
|
+
webauthnAuthModules: ConnectionResult<InferSelectResult<WebauthnAuthModuleWithRelations, S>>;
|
|
30
|
+
}>(params: {
|
|
31
|
+
selection: {
|
|
32
|
+
fields: S;
|
|
33
|
+
} & Omit<ListSelectionConfig<S, WebauthnAuthModuleFilter, WebauthnAuthModuleOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, WebauthnAuthModuleSelect>;
|
|
34
|
+
} & Omit<UseQueryOptions<{
|
|
35
|
+
webauthnAuthModules: ConnectionResult<InferSelectResult<WebauthnAuthModuleWithRelations, S>>;
|
|
36
|
+
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
37
|
+
/**
|
|
38
|
+
* Fetch WebauthnAuthModule list without React hooks
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```ts
|
|
42
|
+
* const data = await fetchWebauthnAuthModulesQuery({
|
|
43
|
+
* selection: {
|
|
44
|
+
* fields: { id: true },
|
|
45
|
+
* first: 10,
|
|
46
|
+
* },
|
|
47
|
+
* });
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
export declare function fetchWebauthnAuthModulesQuery<S extends WebauthnAuthModuleSelect>(params: {
|
|
51
|
+
selection: {
|
|
52
|
+
fields: S;
|
|
53
|
+
} & Omit<ListSelectionConfig<S, WebauthnAuthModuleFilter, WebauthnAuthModuleOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, WebauthnAuthModuleSelect>;
|
|
54
|
+
}): Promise<{
|
|
55
|
+
webauthnAuthModules: ConnectionResult<InferSelectResult<WebauthnAuthModuleWithRelations, S>>;
|
|
56
|
+
}>;
|
|
57
|
+
/**
|
|
58
|
+
* Prefetch WebauthnAuthModule list for SSR or cache warming
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* ```ts
|
|
62
|
+
* await prefetchWebauthnAuthModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
export declare function prefetchWebauthnAuthModulesQuery<S extends WebauthnAuthModuleSelect>(queryClient: QueryClient, params: {
|
|
66
|
+
selection: {
|
|
67
|
+
fields: S;
|
|
68
|
+
} & Omit<ListSelectionConfig<S, WebauthnAuthModuleFilter, WebauthnAuthModuleOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, WebauthnAuthModuleSelect>;
|
|
69
|
+
}): Promise<void>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* List query hook for WebauthnAuthModule
|
|
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 { webauthnAuthModuleKeys } from '../query-keys';
|
|
10
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
+
export const webauthnAuthModulesQueryKey = webauthnAuthModuleKeys.list;
|
|
12
|
+
export function useWebauthnAuthModulesQuery(params) {
|
|
13
|
+
const args = buildListSelectionArgs(params.selection);
|
|
14
|
+
const { selection: _selection, ...queryOptions } = params ?? {};
|
|
15
|
+
void _selection;
|
|
16
|
+
return useQuery({
|
|
17
|
+
queryKey: webauthnAuthModuleKeys.list(args),
|
|
18
|
+
queryFn: () => getClient().webauthnAuthModule.findMany(args).unwrap(),
|
|
19
|
+
...queryOptions,
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
export async function fetchWebauthnAuthModulesQuery(params) {
|
|
23
|
+
const args = buildListSelectionArgs(params.selection);
|
|
24
|
+
return getClient().webauthnAuthModule.findMany(args).unwrap();
|
|
25
|
+
}
|
|
26
|
+
export async function prefetchWebauthnAuthModulesQuery(queryClient, params) {
|
|
27
|
+
const args = buildListSelectionArgs(params.selection);
|
|
28
|
+
await queryClient.prefetchQuery({
|
|
29
|
+
queryKey: webauthnAuthModuleKeys.list(args),
|
|
30
|
+
queryFn: () => getClient().webauthnAuthModule.findMany(args).unwrap(),
|
|
31
|
+
});
|
|
32
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WebAuthn/passkey credentials owned by users. One row per registered authenticator (security key, device biometric, synced passkey). Schema mirrors SimpleWebAuthn's canonical Passkey object.
|
|
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 { WebauthnCredentialSelect, WebauthnCredentialWithRelations } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { WebauthnCredentialSelect, WebauthnCredentialWithRelations, } from '../../orm/input-types';
|
|
10
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
+
export declare const webauthnCredentialQueryKey: (id: string | number) => readonly ["webauthncredential", "detail", string | number];
|
|
12
|
+
/**
|
|
13
|
+
* WebAuthn/passkey credentials owned by users. One row per registered authenticator (security key, device biometric, synced passkey). Schema mirrors SimpleWebAuthn's canonical Passkey object.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* const { data, isLoading } = useWebauthnCredentialQuery({
|
|
18
|
+
* id: 'some-id',
|
|
19
|
+
* selection: { fields: { id: true, name: true } },
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare function useWebauthnCredentialQuery<S extends WebauthnCredentialSelect, TData = {
|
|
24
|
+
webauthnCredential: InferSelectResult<WebauthnCredentialWithRelations, S> | null;
|
|
25
|
+
}>(params: {
|
|
26
|
+
id: string;
|
|
27
|
+
selection: {
|
|
28
|
+
fields: S;
|
|
29
|
+
} & HookStrictSelect<NoInfer<S>, WebauthnCredentialSelect>;
|
|
30
|
+
} & Omit<UseQueryOptions<{
|
|
31
|
+
webauthnCredential: InferSelectResult<WebauthnCredentialWithRelations, S> | null;
|
|
32
|
+
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
33
|
+
/**
|
|
34
|
+
* WebAuthn/passkey credentials owned by users. One row per registered authenticator (security key, device biometric, synced passkey). Schema mirrors SimpleWebAuthn's canonical Passkey object.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* const data = await fetchWebauthnCredentialQuery({
|
|
39
|
+
* id: 'some-id',
|
|
40
|
+
* selection: { fields: { id: true } },
|
|
41
|
+
* });
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
export declare function fetchWebauthnCredentialQuery<S extends WebauthnCredentialSelect>(params: {
|
|
45
|
+
id: string;
|
|
46
|
+
selection: {
|
|
47
|
+
fields: S;
|
|
48
|
+
} & HookStrictSelect<NoInfer<S>, WebauthnCredentialSelect>;
|
|
49
|
+
}): Promise<{
|
|
50
|
+
webauthnCredential: InferSelectResult<WebauthnCredentialWithRelations, S> | null;
|
|
51
|
+
}>;
|
|
52
|
+
/**
|
|
53
|
+
* WebAuthn/passkey credentials owned by users. One row per registered authenticator (security key, device biometric, synced passkey). Schema mirrors SimpleWebAuthn's canonical Passkey object.
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* await prefetchWebauthnCredentialQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
export declare function prefetchWebauthnCredentialQuery<S extends WebauthnCredentialSelect>(queryClient: QueryClient, params: {
|
|
61
|
+
id: string;
|
|
62
|
+
selection: {
|
|
63
|
+
fields: S;
|
|
64
|
+
} & HookStrictSelect<NoInfer<S>, WebauthnCredentialSelect>;
|
|
65
|
+
}): Promise<void>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WebAuthn/passkey credentials owned by users. One row per registered authenticator (security key, device biometric, synced passkey). Schema mirrors SimpleWebAuthn's canonical Passkey object.
|
|
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 { webauthnCredentialKeys } from '../query-keys';
|
|
10
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
+
export const webauthnCredentialQueryKey = webauthnCredentialKeys.detail;
|
|
12
|
+
export function useWebauthnCredentialQuery(params) {
|
|
13
|
+
const args = buildSelectionArgs(params.selection);
|
|
14
|
+
const { selection: _selection, ...queryOptions } = params ?? {};
|
|
15
|
+
void _selection;
|
|
16
|
+
return useQuery({
|
|
17
|
+
queryKey: webauthnCredentialKeys.detail(params.id),
|
|
18
|
+
queryFn: () => getClient()
|
|
19
|
+
.webauthnCredential.findOne({
|
|
20
|
+
id: params.id,
|
|
21
|
+
select: args.select,
|
|
22
|
+
})
|
|
23
|
+
.unwrap(),
|
|
24
|
+
...queryOptions,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
export async function fetchWebauthnCredentialQuery(params) {
|
|
28
|
+
const args = buildSelectionArgs(params.selection);
|
|
29
|
+
return getClient()
|
|
30
|
+
.webauthnCredential.findOne({
|
|
31
|
+
id: params.id,
|
|
32
|
+
select: args.select,
|
|
33
|
+
})
|
|
34
|
+
.unwrap();
|
|
35
|
+
}
|
|
36
|
+
export async function prefetchWebauthnCredentialQuery(queryClient, params) {
|
|
37
|
+
const args = buildSelectionArgs(params.selection);
|
|
38
|
+
await queryClient.prefetchQuery({
|
|
39
|
+
queryKey: webauthnCredentialKeys.detail(params.id),
|
|
40
|
+
queryFn: () => getClient()
|
|
41
|
+
.webauthnCredential.findOne({
|
|
42
|
+
id: params.id,
|
|
43
|
+
select: args.select,
|
|
44
|
+
})
|
|
45
|
+
.unwrap(),
|
|
46
|
+
});
|
|
47
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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
|
|
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 holds RP config and the registration/sign-in challenge state.
|
|
3
3
|
* @generated by @constructive-io/graphql-codegen
|
|
4
4
|
* DO NOT EDIT - changes will be overwritten
|
|
5
5
|
*/
|
|
@@ -10,7 +10,7 @@ export type { WebauthnCredentialsModuleSelect, WebauthnCredentialsModuleWithRela
|
|
|
10
10
|
/** Query key factory - re-exported from query-keys.ts */
|
|
11
11
|
export declare const webauthnCredentialsModuleQueryKey: (id: string | number) => readonly ["webauthncredentialsmodule", "detail", string | number];
|
|
12
12
|
/**
|
|
13
|
-
* 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
|
|
13
|
+
* 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 holds RP config and the registration/sign-in challenge state.
|
|
14
14
|
*
|
|
15
15
|
* @example
|
|
16
16
|
* ```tsx
|
|
@@ -31,7 +31,7 @@ export declare function useWebauthnCredentialsModuleQuery<S extends WebauthnCred
|
|
|
31
31
|
webauthnCredentialsModule: InferSelectResult<WebauthnCredentialsModuleWithRelations, S> | null;
|
|
32
32
|
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
33
33
|
/**
|
|
34
|
-
* 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
|
|
34
|
+
* 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 holds RP config and the registration/sign-in challenge state.
|
|
35
35
|
*
|
|
36
36
|
* @example
|
|
37
37
|
* ```ts
|
|
@@ -50,7 +50,7 @@ export declare function fetchWebauthnCredentialsModuleQuery<S extends WebauthnCr
|
|
|
50
50
|
webauthnCredentialsModule: InferSelectResult<WebauthnCredentialsModuleWithRelations, S> | null;
|
|
51
51
|
}>;
|
|
52
52
|
/**
|
|
53
|
-
* 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
|
|
53
|
+
* 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 holds RP config and the registration/sign-in challenge state.
|
|
54
54
|
*
|
|
55
55
|
* @example
|
|
56
56
|
* ```ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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
|
|
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 holds RP config and the registration/sign-in challenge state.
|
|
3
3
|
* @generated by @constructive-io/graphql-codegen
|
|
4
4
|
* DO NOT EDIT - changes will be overwritten
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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
|
|
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 holds RP config and the registration/sign-in challenge state.
|
|
3
3
|
* @generated by @constructive-io/graphql-codegen
|
|
4
4
|
* DO NOT EDIT - changes will be overwritten
|
|
5
5
|
*/
|
|
@@ -11,7 +11,7 @@ export type { WebauthnCredentialsModuleSelect, WebauthnCredentialsModuleWithRela
|
|
|
11
11
|
/** Query key factory - re-exported from query-keys.ts */
|
|
12
12
|
export declare const webauthnCredentialsModulesQueryKey: (variables?: object) => readonly ["webauthncredentialsmodule", "list", object];
|
|
13
13
|
/**
|
|
14
|
-
* 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
|
|
14
|
+
* 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 holds RP config and the registration/sign-in challenge state.
|
|
15
15
|
*
|
|
16
16
|
* @example
|
|
17
17
|
* ```tsx
|
|
@@ -35,7 +35,7 @@ export declare function useWebauthnCredentialsModulesQuery<S extends WebauthnCre
|
|
|
35
35
|
webauthnCredentialsModules: ConnectionResult<InferSelectResult<WebauthnCredentialsModuleWithRelations, S>>;
|
|
36
36
|
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
37
37
|
/**
|
|
38
|
-
* 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
|
|
38
|
+
* 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 holds RP config and the registration/sign-in challenge state.
|
|
39
39
|
*
|
|
40
40
|
* @example
|
|
41
41
|
* ```ts
|
|
@@ -55,7 +55,7 @@ export declare function fetchWebauthnCredentialsModulesQuery<S extends WebauthnC
|
|
|
55
55
|
webauthnCredentialsModules: ConnectionResult<InferSelectResult<WebauthnCredentialsModuleWithRelations, S>>;
|
|
56
56
|
}>;
|
|
57
57
|
/**
|
|
58
|
-
* 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
|
|
58
|
+
* 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 holds RP config and the registration/sign-in challenge state.
|
|
59
59
|
*
|
|
60
60
|
* @example
|
|
61
61
|
* ```ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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
|
|
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 holds RP config and the registration/sign-in challenge state.
|
|
3
3
|
* @generated by @constructive-io/graphql-codegen
|
|
4
4
|
* DO NOT EDIT - changes will be overwritten
|
|
5
5
|
*/
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WebAuthn/passkey credentials owned by users. One row per registered authenticator (security key, device biometric, synced passkey). Schema mirrors SimpleWebAuthn's canonical Passkey object.
|
|
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 { WebauthnCredentialSelect, WebauthnCredentialWithRelations, WebauthnCredentialFilter, WebauthnCredentialOrderBy } from '../../orm/input-types';
|
|
9
|
+
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
|
|
10
|
+
export type { WebauthnCredentialSelect, WebauthnCredentialWithRelations, WebauthnCredentialFilter, WebauthnCredentialOrderBy, } from '../../orm/input-types';
|
|
11
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
12
|
+
export declare const webauthnCredentialsQueryKey: (variables?: object) => readonly ["webauthncredential", "list", object];
|
|
13
|
+
/**
|
|
14
|
+
* WebAuthn/passkey credentials owned by users. One row per registered authenticator (security key, device biometric, synced passkey). Schema mirrors SimpleWebAuthn's canonical Passkey object.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```tsx
|
|
18
|
+
* const { data, isLoading } = useWebauthnCredentialsQuery({
|
|
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 useWebauthnCredentialsQuery<S extends WebauthnCredentialSelect, TData = {
|
|
29
|
+
webauthnCredentials: ConnectionResult<InferSelectResult<WebauthnCredentialWithRelations, S>>;
|
|
30
|
+
}>(params: {
|
|
31
|
+
selection: {
|
|
32
|
+
fields: S;
|
|
33
|
+
} & Omit<ListSelectionConfig<S, WebauthnCredentialFilter, WebauthnCredentialOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, WebauthnCredentialSelect>;
|
|
34
|
+
} & Omit<UseQueryOptions<{
|
|
35
|
+
webauthnCredentials: ConnectionResult<InferSelectResult<WebauthnCredentialWithRelations, S>>;
|
|
36
|
+
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
37
|
+
/**
|
|
38
|
+
* WebAuthn/passkey credentials owned by users. One row per registered authenticator (security key, device biometric, synced passkey). Schema mirrors SimpleWebAuthn's canonical Passkey object.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```ts
|
|
42
|
+
* const data = await fetchWebauthnCredentialsQuery({
|
|
43
|
+
* selection: {
|
|
44
|
+
* fields: { id: true },
|
|
45
|
+
* first: 10,
|
|
46
|
+
* },
|
|
47
|
+
* });
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
export declare function fetchWebauthnCredentialsQuery<S extends WebauthnCredentialSelect>(params: {
|
|
51
|
+
selection: {
|
|
52
|
+
fields: S;
|
|
53
|
+
} & Omit<ListSelectionConfig<S, WebauthnCredentialFilter, WebauthnCredentialOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, WebauthnCredentialSelect>;
|
|
54
|
+
}): Promise<{
|
|
55
|
+
webauthnCredentials: ConnectionResult<InferSelectResult<WebauthnCredentialWithRelations, S>>;
|
|
56
|
+
}>;
|
|
57
|
+
/**
|
|
58
|
+
* WebAuthn/passkey credentials owned by users. One row per registered authenticator (security key, device biometric, synced passkey). Schema mirrors SimpleWebAuthn's canonical Passkey object.
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* ```ts
|
|
62
|
+
* await prefetchWebauthnCredentialsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
export declare function prefetchWebauthnCredentialsQuery<S extends WebauthnCredentialSelect>(queryClient: QueryClient, params: {
|
|
66
|
+
selection: {
|
|
67
|
+
fields: S;
|
|
68
|
+
} & Omit<ListSelectionConfig<S, WebauthnCredentialFilter, WebauthnCredentialOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, WebauthnCredentialSelect>;
|
|
69
|
+
}): Promise<void>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WebAuthn/passkey credentials owned by users. One row per registered authenticator (security key, device biometric, synced passkey). Schema mirrors SimpleWebAuthn's canonical Passkey object.
|
|
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 { webauthnCredentialKeys } from '../query-keys';
|
|
10
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
+
export const webauthnCredentialsQueryKey = webauthnCredentialKeys.list;
|
|
12
|
+
export function useWebauthnCredentialsQuery(params) {
|
|
13
|
+
const args = buildListSelectionArgs(params.selection);
|
|
14
|
+
const { selection: _selection, ...queryOptions } = params ?? {};
|
|
15
|
+
void _selection;
|
|
16
|
+
return useQuery({
|
|
17
|
+
queryKey: webauthnCredentialKeys.list(args),
|
|
18
|
+
queryFn: () => getClient().webauthnCredential.findMany(args).unwrap(),
|
|
19
|
+
...queryOptions,
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
export async function fetchWebauthnCredentialsQuery(params) {
|
|
23
|
+
const args = buildListSelectionArgs(params.selection);
|
|
24
|
+
return getClient().webauthnCredential.findMany(args).unwrap();
|
|
25
|
+
}
|
|
26
|
+
export async function prefetchWebauthnCredentialsQuery(queryClient, params) {
|
|
27
|
+
const args = buildListSelectionArgs(params.selection);
|
|
28
|
+
await queryClient.prefetchQuery({
|
|
29
|
+
queryKey: webauthnCredentialKeys.list(args),
|
|
30
|
+
queryFn: () => getClient().webauthnCredential.findMany(args).unwrap(),
|
|
31
|
+
});
|
|
32
|
+
}
|