@constructive-io/react 0.27.0 → 0.27.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/api/orm/input-types.d.ts +144 -171
- package/api/schema-types.d.ts +676 -678
- package/api/types.d.ts +9 -14
- package/auth/hooks/index.d.ts +1 -1
- package/auth/hooks/index.js +1 -1
- package/auth/hooks/invalidation.d.ts +24 -0
- package/auth/hooks/invalidation.js +64 -0
- package/auth/hooks/mutation-keys.d.ts +56 -0
- package/auth/hooks/mutation-keys.js +44 -1
- package/auth/hooks/mutations/index.d.ts +11 -0
- package/auth/hooks/mutations/index.js +11 -0
- package/auth/hooks/mutations/useCreateOrgApiKeyListMutation.d.ts +34 -0
- package/auth/hooks/mutations/useCreateOrgApiKeyListMutation.js +34 -0
- package/auth/hooks/mutations/useCreateOrgApiKeyMutation.d.ts +20 -0
- package/auth/hooks/mutations/useCreateOrgApiKeyMutation.js +26 -0
- package/auth/hooks/mutations/useCreateOrgPrincipalMutation.d.ts +20 -0
- package/auth/hooks/mutations/useCreateOrgPrincipalMutation.js +26 -0
- package/auth/hooks/mutations/useCreatePrincipalEntityMutation.d.ts +34 -0
- package/auth/hooks/mutations/useCreatePrincipalEntityMutation.js +34 -0
- package/auth/hooks/mutations/useCreatePrincipalMutation.d.ts +34 -0
- package/auth/hooks/mutations/useCreatePrincipalMutation.js +34 -0
- package/auth/hooks/mutations/useCreatePrincipalScopeOverrideMutation.d.ts +34 -0
- package/auth/hooks/mutations/useCreatePrincipalScopeOverrideMutation.js +34 -0
- package/auth/hooks/mutations/useDeleteOrgPrincipalMutation.d.ts +20 -0
- package/auth/hooks/mutations/useDeleteOrgPrincipalMutation.js +26 -0
- package/auth/hooks/mutations/useDeletePrincipalEntityMutation.d.ts +38 -0
- package/auth/hooks/mutations/useDeletePrincipalEntityMutation.js +39 -0
- package/auth/hooks/mutations/useDeletePrincipalMutation.d.ts +38 -0
- package/auth/hooks/mutations/useDeletePrincipalMutation.js +39 -0
- package/auth/hooks/mutations/useRevokeOrgApiKeyMutation.d.ts +20 -0
- package/auth/hooks/mutations/useRevokeOrgApiKeyMutation.js +26 -0
- package/auth/hooks/mutations/useUpdatePrincipalEntityMutation.d.ts +40 -0
- package/auth/hooks/mutations/useUpdatePrincipalEntityMutation.js +40 -0
- package/auth/hooks/queries/index.d.ts +9 -1
- package/auth/hooks/queries/index.js +9 -1
- package/auth/hooks/queries/useOrgApiKeyListQuery.d.ts +65 -0
- package/auth/hooks/queries/useOrgApiKeyListQuery.js +53 -0
- package/auth/hooks/queries/useOrgApiKeyListsQuery.d.ts +69 -0
- package/auth/hooks/queries/useOrgApiKeyListsQuery.js +38 -0
- package/auth/hooks/queries/usePrincipalEntitiesQuery.d.ts +69 -0
- package/auth/hooks/queries/usePrincipalEntitiesQuery.js +38 -0
- package/auth/hooks/queries/usePrincipalEntityQuery.d.ts +65 -0
- package/auth/hooks/queries/usePrincipalEntityQuery.js +53 -0
- package/auth/hooks/queries/usePrincipalQuery.d.ts +65 -0
- package/auth/hooks/queries/usePrincipalQuery.js +53 -0
- package/auth/hooks/queries/usePrincipalScopeOverrideQuery.d.ts +65 -0
- package/auth/hooks/queries/usePrincipalScopeOverrideQuery.js +53 -0
- package/auth/hooks/queries/usePrincipalScopeOverridesQuery.d.ts +69 -0
- package/auth/hooks/queries/usePrincipalScopeOverridesQuery.js +38 -0
- package/auth/hooks/queries/usePrincipalsQuery.d.ts +69 -0
- package/auth/hooks/queries/usePrincipalsQuery.js +38 -0
- package/auth/hooks/query-keys.d.ts +58 -2
- package/auth/hooks/query-keys.js +34 -2
- package/auth/orm/index.d.ts +32 -4
- package/auth/orm/index.js +8 -0
- package/auth/orm/input-types.d.ts +915 -145
- package/auth/orm/input-types.js +7 -0
- package/auth/orm/models/index.d.ts +4 -0
- package/auth/orm/models/index.js +9 -1
- package/auth/orm/models/orgApiKeyList.d.ts +36 -0
- package/auth/orm/models/orgApiKeyList.js +80 -0
- package/auth/orm/models/principal.d.ts +45 -0
- package/auth/orm/models/principal.js +93 -0
- package/auth/orm/models/principalEntity.d.ts +54 -0
- package/auth/orm/models/principalEntity.js +104 -0
- package/auth/orm/models/principalScopeOverride.d.ts +36 -0
- package/auth/orm/models/principalScopeOverride.js +80 -0
- package/auth/orm/mutation/index.d.ts +33 -1
- package/auth/orm/mutation/index.js +48 -0
- package/auth/orm/query/index.d.ts +4 -4
- package/auth/orm/query/index.js +7 -7
- package/auth/schema-types.d.ts +477 -93
- package/auth/types.d.ts +43 -0
- package/compute/hooks/index.d.ts +1 -1
- package/compute/hooks/index.js +1 -1
- package/compute/hooks/invalidation.d.ts +29 -5
- package/compute/hooks/invalidation.js +73 -9
- package/compute/hooks/mutation-keys.d.ts +60 -12
- package/compute/hooks/mutation-keys.js +41 -10
- package/compute/hooks/mutations/index.d.ts +16 -4
- package/compute/hooks/mutations/index.js +16 -4
- package/compute/hooks/mutations/useCreatePlatformNamespaceEventMutation.d.ts +34 -0
- package/compute/hooks/mutations/useCreatePlatformNamespaceEventMutation.js +34 -0
- package/compute/hooks/mutations/useCreatePlatformNamespaceMutation.d.ts +34 -0
- package/compute/hooks/mutations/useCreatePlatformNamespaceMutation.js +34 -0
- package/compute/hooks/mutations/useCreateResourceEventMutation.d.ts +34 -0
- package/compute/hooks/mutations/useCreateResourceEventMutation.js +34 -0
- package/compute/hooks/mutations/useCreateResourceMutation.d.ts +34 -0
- package/compute/hooks/mutations/useCreateResourceMutation.js +34 -0
- package/compute/hooks/mutations/useDeletePlatformNamespaceEventMutation.d.ts +40 -0
- package/compute/hooks/mutations/useDeletePlatformNamespaceEventMutation.js +40 -0
- package/compute/hooks/mutations/useDeletePlatformNamespaceMutation.d.ts +38 -0
- package/compute/hooks/mutations/useDeletePlatformNamespaceMutation.js +39 -0
- package/compute/hooks/mutations/useDeleteResourceEventMutation.d.ts +40 -0
- package/compute/hooks/mutations/useDeleteResourceEventMutation.js +40 -0
- package/compute/hooks/mutations/useDeleteResourceMutation.d.ts +38 -0
- package/compute/hooks/mutations/useDeleteResourceMutation.js +39 -0
- package/compute/hooks/mutations/useUpdatePlatformNamespaceEventMutation.d.ts +42 -0
- package/compute/hooks/mutations/useUpdatePlatformNamespaceEventMutation.js +41 -0
- package/compute/hooks/mutations/useUpdatePlatformNamespaceMutation.d.ts +40 -0
- package/compute/hooks/mutations/useUpdatePlatformNamespaceMutation.js +40 -0
- package/compute/hooks/mutations/useUpdateResourceEventMutation.d.ts +42 -0
- package/compute/hooks/mutations/useUpdateResourceEventMutation.js +41 -0
- package/compute/hooks/mutations/useUpdateResourceMutation.d.ts +40 -0
- package/compute/hooks/mutations/useUpdateResourceMutation.js +40 -0
- package/compute/hooks/queries/index.d.ts +10 -2
- package/compute/hooks/queries/index.js +10 -2
- package/compute/hooks/queries/usePlatformNamespaceEventQuery.d.ts +65 -0
- package/compute/hooks/queries/usePlatformNamespaceEventQuery.js +53 -0
- package/compute/hooks/queries/usePlatformNamespaceEventsQuery.d.ts +69 -0
- package/compute/hooks/queries/usePlatformNamespaceEventsQuery.js +38 -0
- package/compute/hooks/queries/usePlatformNamespaceQuery.d.ts +65 -0
- package/compute/hooks/queries/usePlatformNamespaceQuery.js +53 -0
- package/compute/hooks/queries/usePlatformNamespacesQuery.d.ts +69 -0
- package/compute/hooks/queries/usePlatformNamespacesQuery.js +38 -0
- package/compute/hooks/queries/useResourceEventQuery.d.ts +65 -0
- package/compute/hooks/queries/useResourceEventQuery.js +53 -0
- package/compute/hooks/queries/useResourceEventsQuery.d.ts +69 -0
- package/compute/hooks/queries/useResourceEventsQuery.js +38 -0
- package/compute/hooks/queries/useResourceQuery.d.ts +65 -0
- package/compute/hooks/queries/useResourceQuery.js +53 -0
- package/compute/hooks/queries/useResourcesQuery.d.ts +69 -0
- package/compute/hooks/queries/useResourcesQuery.js +38 -0
- package/compute/hooks/query-keys.d.ts +68 -12
- package/compute/hooks/query-keys.js +40 -8
- package/compute/orm/index.d.ts +15 -7
- package/compute/orm/index.js +10 -2
- package/compute/orm/input-types.d.ts +1159 -221
- package/compute/orm/input-types.js +4 -0
- package/compute/orm/models/index.d.ts +5 -1
- package/compute/orm/models/index.js +11 -3
- package/compute/orm/models/platformNamespace.d.ts +54 -0
- package/compute/orm/models/platformNamespace.js +104 -0
- package/compute/orm/models/platformNamespaceEvent.d.ts +56 -0
- package/compute/orm/models/platformNamespaceEvent.js +107 -0
- package/compute/orm/models/resource.d.ts +54 -0
- package/compute/orm/models/resource.js +104 -0
- package/compute/orm/models/resourceEvent.d.ts +56 -0
- package/compute/orm/models/resourceEvent.js +107 -0
- package/compute/orm/mutation/index.d.ts +9 -9
- package/compute/orm/mutation/index.js +12 -12
- package/compute/schema-types.d.ts +691 -107
- package/compute/types.d.ts +71 -12
- package/esm/api/orm/input-types.d.ts +144 -171
- package/esm/api/schema-types.d.ts +676 -678
- package/esm/api/types.d.ts +9 -14
- package/esm/auth/hooks/index.d.ts +1 -1
- package/esm/auth/hooks/index.js +1 -1
- package/esm/auth/hooks/invalidation.d.ts +24 -0
- package/esm/auth/hooks/invalidation.js +65 -1
- package/esm/auth/hooks/mutation-keys.d.ts +56 -0
- package/esm/auth/hooks/mutation-keys.js +43 -0
- package/esm/auth/hooks/mutations/index.d.ts +11 -0
- package/esm/auth/hooks/mutations/index.js +11 -0
- package/esm/auth/hooks/mutations/useCreateOrgApiKeyListMutation.d.ts +34 -0
- package/esm/auth/hooks/mutations/useCreateOrgApiKeyListMutation.js +31 -0
- package/esm/auth/hooks/mutations/useCreateOrgApiKeyMutation.d.ts +20 -0
- package/esm/auth/hooks/mutations/useCreateOrgApiKeyMutation.js +23 -0
- package/esm/auth/hooks/mutations/useCreateOrgPrincipalMutation.d.ts +20 -0
- package/esm/auth/hooks/mutations/useCreateOrgPrincipalMutation.js +23 -0
- package/esm/auth/hooks/mutations/useCreatePrincipalEntityMutation.d.ts +34 -0
- package/esm/auth/hooks/mutations/useCreatePrincipalEntityMutation.js +31 -0
- package/esm/auth/hooks/mutations/useCreatePrincipalMutation.d.ts +34 -0
- package/esm/auth/hooks/mutations/useCreatePrincipalMutation.js +31 -0
- package/esm/auth/hooks/mutations/useCreatePrincipalScopeOverrideMutation.d.ts +34 -0
- package/esm/auth/hooks/mutations/useCreatePrincipalScopeOverrideMutation.js +31 -0
- package/esm/auth/hooks/mutations/useDeleteOrgPrincipalMutation.d.ts +20 -0
- package/esm/auth/hooks/mutations/useDeleteOrgPrincipalMutation.js +23 -0
- package/esm/auth/hooks/mutations/useDeletePrincipalEntityMutation.d.ts +38 -0
- package/esm/auth/hooks/mutations/useDeletePrincipalEntityMutation.js +36 -0
- package/esm/auth/hooks/mutations/useDeletePrincipalMutation.d.ts +38 -0
- package/esm/auth/hooks/mutations/useDeletePrincipalMutation.js +36 -0
- package/esm/auth/hooks/mutations/useRevokeOrgApiKeyMutation.d.ts +20 -0
- package/esm/auth/hooks/mutations/useRevokeOrgApiKeyMutation.js +23 -0
- package/esm/auth/hooks/mutations/useUpdatePrincipalEntityMutation.d.ts +40 -0
- package/esm/auth/hooks/mutations/useUpdatePrincipalEntityMutation.js +37 -0
- package/esm/auth/hooks/queries/index.d.ts +9 -1
- package/esm/auth/hooks/queries/index.js +9 -1
- package/esm/auth/hooks/queries/useOrgApiKeyListQuery.d.ts +65 -0
- package/esm/auth/hooks/queries/useOrgApiKeyListQuery.js +47 -0
- package/esm/auth/hooks/queries/useOrgApiKeyListsQuery.d.ts +69 -0
- package/esm/auth/hooks/queries/useOrgApiKeyListsQuery.js +32 -0
- package/esm/auth/hooks/queries/usePrincipalEntitiesQuery.d.ts +69 -0
- package/esm/auth/hooks/queries/usePrincipalEntitiesQuery.js +32 -0
- package/esm/auth/hooks/queries/usePrincipalEntityQuery.d.ts +65 -0
- package/esm/auth/hooks/queries/usePrincipalEntityQuery.js +47 -0
- package/esm/auth/hooks/queries/usePrincipalQuery.d.ts +65 -0
- package/esm/auth/hooks/queries/usePrincipalQuery.js +47 -0
- package/esm/auth/hooks/queries/usePrincipalScopeOverrideQuery.d.ts +65 -0
- package/esm/auth/hooks/queries/usePrincipalScopeOverrideQuery.js +47 -0
- package/esm/auth/hooks/queries/usePrincipalScopeOverridesQuery.d.ts +69 -0
- package/esm/auth/hooks/queries/usePrincipalScopeOverridesQuery.js +32 -0
- package/esm/auth/hooks/queries/usePrincipalsQuery.d.ts +69 -0
- package/esm/auth/hooks/queries/usePrincipalsQuery.js +32 -0
- package/esm/auth/hooks/query-keys.d.ts +58 -2
- package/esm/auth/hooks/query-keys.js +33 -1
- package/esm/auth/orm/index.d.ts +32 -4
- package/esm/auth/orm/index.js +8 -0
- package/esm/auth/orm/input-types.d.ts +915 -145
- package/esm/auth/orm/input-types.js +7 -0
- package/esm/auth/orm/models/index.d.ts +4 -0
- package/esm/auth/orm/models/index.js +4 -0
- package/esm/auth/orm/models/orgApiKeyList.d.ts +36 -0
- package/esm/auth/orm/models/orgApiKeyList.js +76 -0
- package/esm/auth/orm/models/principal.d.ts +45 -0
- package/esm/auth/orm/models/principal.js +89 -0
- package/esm/auth/orm/models/principalEntity.d.ts +54 -0
- package/esm/auth/orm/models/principalEntity.js +100 -0
- package/esm/auth/orm/models/principalScopeOverride.d.ts +36 -0
- package/esm/auth/orm/models/principalScopeOverride.js +76 -0
- package/esm/auth/orm/mutation/index.d.ts +33 -1
- package/esm/auth/orm/mutation/index.js +48 -0
- package/esm/auth/orm/query/index.d.ts +4 -4
- package/esm/auth/orm/query/index.js +7 -7
- package/esm/auth/schema-types.d.ts +477 -93
- package/esm/auth/types.d.ts +43 -0
- package/esm/compute/hooks/index.d.ts +1 -1
- package/esm/compute/hooks/index.js +1 -1
- package/esm/compute/hooks/invalidation.d.ts +29 -5
- package/esm/compute/hooks/invalidation.js +74 -10
- package/esm/compute/hooks/mutation-keys.d.ts +60 -12
- package/esm/compute/hooks/mutation-keys.js +40 -9
- package/esm/compute/hooks/mutations/index.d.ts +16 -4
- package/esm/compute/hooks/mutations/index.js +16 -4
- package/esm/compute/hooks/mutations/useCreatePlatformNamespaceEventMutation.d.ts +34 -0
- package/esm/compute/hooks/mutations/useCreatePlatformNamespaceEventMutation.js +31 -0
- package/esm/compute/hooks/mutations/useCreatePlatformNamespaceMutation.d.ts +34 -0
- package/esm/compute/hooks/mutations/useCreatePlatformNamespaceMutation.js +31 -0
- package/esm/compute/hooks/mutations/useCreateResourceEventMutation.d.ts +34 -0
- package/esm/compute/hooks/mutations/useCreateResourceEventMutation.js +31 -0
- package/esm/compute/hooks/mutations/useCreateResourceMutation.d.ts +34 -0
- package/esm/compute/hooks/mutations/useCreateResourceMutation.js +31 -0
- package/esm/compute/hooks/mutations/useDeletePlatformNamespaceEventMutation.d.ts +40 -0
- package/esm/compute/hooks/mutations/useDeletePlatformNamespaceEventMutation.js +37 -0
- package/esm/compute/hooks/mutations/useDeletePlatformNamespaceMutation.d.ts +38 -0
- package/esm/compute/hooks/mutations/useDeletePlatformNamespaceMutation.js +36 -0
- package/esm/compute/hooks/mutations/useDeleteResourceEventMutation.d.ts +40 -0
- package/esm/compute/hooks/mutations/useDeleteResourceEventMutation.js +37 -0
- package/esm/compute/hooks/mutations/useDeleteResourceMutation.d.ts +38 -0
- package/esm/compute/hooks/mutations/useDeleteResourceMutation.js +36 -0
- package/esm/compute/hooks/mutations/useUpdatePlatformNamespaceEventMutation.d.ts +42 -0
- package/esm/compute/hooks/mutations/useUpdatePlatformNamespaceEventMutation.js +38 -0
- package/esm/compute/hooks/mutations/useUpdatePlatformNamespaceMutation.d.ts +40 -0
- package/esm/compute/hooks/mutations/useUpdatePlatformNamespaceMutation.js +37 -0
- package/esm/compute/hooks/mutations/useUpdateResourceEventMutation.d.ts +42 -0
- package/esm/compute/hooks/mutations/useUpdateResourceEventMutation.js +38 -0
- package/esm/compute/hooks/mutations/useUpdateResourceMutation.d.ts +40 -0
- package/esm/compute/hooks/mutations/useUpdateResourceMutation.js +37 -0
- package/esm/compute/hooks/queries/index.d.ts +10 -2
- package/esm/compute/hooks/queries/index.js +10 -2
- package/esm/compute/hooks/queries/usePlatformNamespaceEventQuery.d.ts +65 -0
- package/esm/compute/hooks/queries/usePlatformNamespaceEventQuery.js +47 -0
- package/esm/compute/hooks/queries/usePlatformNamespaceEventsQuery.d.ts +69 -0
- package/esm/compute/hooks/queries/usePlatformNamespaceEventsQuery.js +32 -0
- package/esm/compute/hooks/queries/usePlatformNamespaceQuery.d.ts +65 -0
- package/esm/compute/hooks/queries/usePlatformNamespaceQuery.js +47 -0
- package/esm/compute/hooks/queries/usePlatformNamespacesQuery.d.ts +69 -0
- package/esm/compute/hooks/queries/usePlatformNamespacesQuery.js +32 -0
- package/esm/compute/hooks/queries/useResourceEventQuery.d.ts +65 -0
- package/esm/compute/hooks/queries/useResourceEventQuery.js +47 -0
- package/esm/compute/hooks/queries/useResourceEventsQuery.d.ts +69 -0
- package/esm/compute/hooks/queries/useResourceEventsQuery.js +32 -0
- package/esm/compute/hooks/queries/useResourceQuery.d.ts +65 -0
- package/esm/compute/hooks/queries/useResourceQuery.js +47 -0
- package/esm/compute/hooks/queries/useResourcesQuery.d.ts +69 -0
- package/esm/compute/hooks/queries/useResourcesQuery.js +32 -0
- package/esm/compute/hooks/query-keys.d.ts +68 -12
- package/esm/compute/hooks/query-keys.js +39 -7
- package/esm/compute/orm/index.d.ts +15 -7
- package/esm/compute/orm/index.js +10 -2
- package/esm/compute/orm/input-types.d.ts +1159 -221
- package/esm/compute/orm/input-types.js +4 -0
- package/esm/compute/orm/models/index.d.ts +5 -1
- package/esm/compute/orm/models/index.js +5 -1
- package/esm/compute/orm/models/platformNamespace.d.ts +54 -0
- package/esm/compute/orm/models/platformNamespace.js +100 -0
- package/esm/compute/orm/models/platformNamespaceEvent.d.ts +56 -0
- package/esm/compute/orm/models/platformNamespaceEvent.js +103 -0
- package/esm/compute/orm/models/resource.d.ts +54 -0
- package/esm/compute/orm/models/resource.js +100 -0
- package/esm/compute/orm/models/resourceEvent.d.ts +56 -0
- package/esm/compute/orm/models/resourceEvent.js +103 -0
- package/esm/compute/orm/mutation/index.d.ts +9 -9
- package/esm/compute/orm/mutation/index.js +12 -12
- package/esm/compute/schema-types.d.ts +691 -107
- package/esm/compute/types.d.ts +71 -12
- package/esm/modules/hooks/index.d.ts +1 -1
- package/esm/modules/hooks/index.js +1 -1
- package/esm/modules/hooks/invalidation.d.ts +24 -12
- package/esm/modules/hooks/invalidation.js +63 -31
- package/esm/modules/hooks/mutation-keys.d.ts +48 -24
- package/esm/modules/hooks/mutation-keys.js +28 -14
- package/esm/modules/hooks/mutations/index.d.ts +12 -6
- package/esm/modules/hooks/mutations/index.js +12 -6
- package/esm/modules/hooks/mutations/useCreatePrincipalAuthModuleMutation.d.ts +34 -0
- package/esm/modules/hooks/mutations/useCreatePrincipalAuthModuleMutation.js +31 -0
- package/esm/modules/hooks/mutations/useCreateResourceModuleMutation.d.ts +34 -0
- package/esm/modules/hooks/mutations/useCreateResourceModuleMutation.js +31 -0
- package/esm/modules/hooks/mutations/useDeletePrincipalAuthModuleMutation.d.ts +38 -0
- package/esm/modules/hooks/mutations/useDeletePrincipalAuthModuleMutation.js +36 -0
- package/esm/modules/hooks/mutations/useDeleteResourceModuleMutation.d.ts +38 -0
- package/esm/modules/hooks/mutations/useDeleteResourceModuleMutation.js +36 -0
- package/esm/modules/hooks/mutations/useUpdatePrincipalAuthModuleMutation.d.ts +40 -0
- package/esm/modules/hooks/mutations/useUpdatePrincipalAuthModuleMutation.js +37 -0
- package/esm/modules/hooks/mutations/useUpdateResourceModuleMutation.d.ts +40 -0
- package/esm/modules/hooks/mutations/useUpdateResourceModuleMutation.js +37 -0
- package/esm/modules/hooks/queries/index.d.ts +8 -4
- package/esm/modules/hooks/queries/index.js +8 -4
- package/esm/modules/hooks/queries/usePrincipalAuthModuleQuery.d.ts +65 -0
- package/esm/modules/hooks/queries/usePrincipalAuthModuleQuery.js +47 -0
- package/esm/modules/hooks/queries/usePrincipalAuthModulesQuery.d.ts +69 -0
- package/esm/modules/hooks/queries/usePrincipalAuthModulesQuery.js +32 -0
- package/esm/modules/hooks/queries/useResourceModuleQuery.d.ts +65 -0
- package/esm/modules/hooks/queries/useResourceModuleQuery.js +47 -0
- package/esm/modules/hooks/queries/useResourceModulesQuery.d.ts +69 -0
- package/esm/modules/hooks/queries/useResourceModulesQuery.js +32 -0
- package/esm/modules/hooks/query-keys.d.ts +56 -28
- package/esm/modules/hooks/query-keys.js +32 -16
- package/esm/modules/orm/index.d.ts +8 -4
- package/esm/modules/orm/index.js +8 -4
- package/esm/modules/orm/input-types.d.ts +868 -411
- package/esm/modules/orm/models/index.d.ts +4 -2
- package/esm/modules/orm/models/index.js +4 -2
- package/esm/modules/orm/models/principalAuthModule.d.ts +54 -0
- package/esm/modules/orm/models/principalAuthModule.js +100 -0
- package/esm/modules/orm/models/resourceModule.d.ts +54 -0
- package/esm/modules/orm/models/resourceModule.js +100 -0
- package/esm/modules/schema-types.d.ts +451 -169
- package/esm/modules/types.d.ts +75 -33
- package/modules/hooks/index.d.ts +1 -1
- package/modules/hooks/index.js +1 -1
- package/modules/hooks/invalidation.d.ts +24 -12
- package/modules/hooks/invalidation.js +62 -30
- package/modules/hooks/mutation-keys.d.ts +48 -24
- package/modules/hooks/mutation-keys.js +30 -16
- package/modules/hooks/mutations/index.d.ts +12 -6
- package/modules/hooks/mutations/index.js +12 -6
- package/modules/hooks/mutations/useCreatePrincipalAuthModuleMutation.d.ts +34 -0
- package/modules/hooks/mutations/useCreatePrincipalAuthModuleMutation.js +34 -0
- package/modules/hooks/mutations/useCreateResourceModuleMutation.d.ts +34 -0
- package/modules/hooks/mutations/useCreateResourceModuleMutation.js +34 -0
- package/modules/hooks/mutations/useDeletePrincipalAuthModuleMutation.d.ts +38 -0
- package/modules/hooks/mutations/useDeletePrincipalAuthModuleMutation.js +39 -0
- package/modules/hooks/mutations/useDeleteResourceModuleMutation.d.ts +38 -0
- package/modules/hooks/mutations/useDeleteResourceModuleMutation.js +39 -0
- package/modules/hooks/mutations/useUpdatePrincipalAuthModuleMutation.d.ts +40 -0
- package/modules/hooks/mutations/useUpdatePrincipalAuthModuleMutation.js +40 -0
- package/modules/hooks/mutations/useUpdateResourceModuleMutation.d.ts +40 -0
- package/modules/hooks/mutations/useUpdateResourceModuleMutation.js +40 -0
- package/modules/hooks/queries/index.d.ts +8 -4
- package/modules/hooks/queries/index.js +8 -4
- package/modules/hooks/queries/usePrincipalAuthModuleQuery.d.ts +65 -0
- package/modules/hooks/queries/usePrincipalAuthModuleQuery.js +53 -0
- package/modules/hooks/queries/usePrincipalAuthModulesQuery.d.ts +69 -0
- package/modules/hooks/queries/usePrincipalAuthModulesQuery.js +38 -0
- package/modules/hooks/queries/useResourceModuleQuery.d.ts +65 -0
- package/modules/hooks/queries/useResourceModuleQuery.js +53 -0
- package/modules/hooks/queries/useResourceModulesQuery.d.ts +69 -0
- package/modules/hooks/queries/useResourceModulesQuery.js +38 -0
- package/modules/hooks/query-keys.d.ts +56 -28
- package/modules/hooks/query-keys.js +34 -18
- package/modules/orm/index.d.ts +8 -4
- package/modules/orm/index.js +8 -4
- package/modules/orm/input-types.d.ts +868 -411
- package/modules/orm/models/index.d.ts +4 -2
- package/modules/orm/models/index.js +10 -6
- package/modules/orm/models/principalAuthModule.d.ts +54 -0
- package/modules/orm/models/principalAuthModule.js +104 -0
- package/modules/orm/models/resourceModule.d.ts +54 -0
- package/modules/orm/models/resourceModule.js +104 -0
- package/modules/schema-types.d.ts +451 -169
- package/modules/types.d.ts +75 -33
- package/package.json +4 -4
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Provisions the principals subsystem: a principals table, a principal_entities junction table, create/delete mutations, and org API key management. Supports both human-owned principals (AuthzDirectOwner, AuthzHumanOnly) and org-owned principals (AuthzEntityMembership with is_admin). Org principal and org API key functions are only generated when an org-scoped memberships_module exists for the database.
|
|
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 { PrincipalAuthModuleSelect, PrincipalAuthModuleWithRelations } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { PrincipalAuthModuleSelect, PrincipalAuthModuleWithRelations, } from '../../orm/input-types';
|
|
10
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
+
export declare const principalAuthModuleQueryKey: (id: string | number) => readonly ["principalauthmodule", "detail", string | number];
|
|
12
|
+
/**
|
|
13
|
+
* Provisions the principals subsystem: a principals table, a principal_entities junction table, create/delete mutations, and org API key management. Supports both human-owned principals (AuthzDirectOwner, AuthzHumanOnly) and org-owned principals (AuthzEntityMembership with is_admin). Org principal and org API key functions are only generated when an org-scoped memberships_module exists for the database.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* const { data, isLoading } = usePrincipalAuthModuleQuery({
|
|
18
|
+
* id: 'some-id',
|
|
19
|
+
* selection: { fields: { id: true, name: true } },
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare function usePrincipalAuthModuleQuery<S extends PrincipalAuthModuleSelect, TData = {
|
|
24
|
+
principalAuthModule: InferSelectResult<PrincipalAuthModuleWithRelations, S> | null;
|
|
25
|
+
}>(params: {
|
|
26
|
+
id: string;
|
|
27
|
+
selection: {
|
|
28
|
+
fields: S;
|
|
29
|
+
} & HookStrictSelect<NoInfer<S>, PrincipalAuthModuleSelect>;
|
|
30
|
+
} & Omit<UseQueryOptions<{
|
|
31
|
+
principalAuthModule: InferSelectResult<PrincipalAuthModuleWithRelations, S> | null;
|
|
32
|
+
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
33
|
+
/**
|
|
34
|
+
* Provisions the principals subsystem: a principals table, a principal_entities junction table, create/delete mutations, and org API key management. Supports both human-owned principals (AuthzDirectOwner, AuthzHumanOnly) and org-owned principals (AuthzEntityMembership with is_admin). Org principal and org API key functions are only generated when an org-scoped memberships_module exists for the database.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* const data = await fetchPrincipalAuthModuleQuery({
|
|
39
|
+
* id: 'some-id',
|
|
40
|
+
* selection: { fields: { id: true } },
|
|
41
|
+
* });
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
export declare function fetchPrincipalAuthModuleQuery<S extends PrincipalAuthModuleSelect>(params: {
|
|
45
|
+
id: string;
|
|
46
|
+
selection: {
|
|
47
|
+
fields: S;
|
|
48
|
+
} & HookStrictSelect<NoInfer<S>, PrincipalAuthModuleSelect>;
|
|
49
|
+
}): Promise<{
|
|
50
|
+
principalAuthModule: InferSelectResult<PrincipalAuthModuleWithRelations, S> | null;
|
|
51
|
+
}>;
|
|
52
|
+
/**
|
|
53
|
+
* Provisions the principals subsystem: a principals table, a principal_entities junction table, create/delete mutations, and org API key management. Supports both human-owned principals (AuthzDirectOwner, AuthzHumanOnly) and org-owned principals (AuthzEntityMembership with is_admin). Org principal and org API key functions are only generated when an org-scoped memberships_module exists for the database.
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* await prefetchPrincipalAuthModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
export declare function prefetchPrincipalAuthModuleQuery<S extends PrincipalAuthModuleSelect>(queryClient: QueryClient, params: {
|
|
61
|
+
id: string;
|
|
62
|
+
selection: {
|
|
63
|
+
fields: S;
|
|
64
|
+
} & HookStrictSelect<NoInfer<S>, PrincipalAuthModuleSelect>;
|
|
65
|
+
}): Promise<void>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Provisions the principals subsystem: a principals table, a principal_entities junction table, create/delete mutations, and org API key management. Supports both human-owned principals (AuthzDirectOwner, AuthzHumanOnly) and org-owned principals (AuthzEntityMembership with is_admin). Org principal and org API key functions are only generated when an org-scoped memberships_module exists for the database.
|
|
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 { principalAuthModuleKeys } from '../query-keys';
|
|
10
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
+
export const principalAuthModuleQueryKey = principalAuthModuleKeys.detail;
|
|
12
|
+
export function usePrincipalAuthModuleQuery(params) {
|
|
13
|
+
const args = buildSelectionArgs(params.selection);
|
|
14
|
+
const { selection: _selection, ...queryOptions } = params ?? {};
|
|
15
|
+
void _selection;
|
|
16
|
+
return useQuery({
|
|
17
|
+
queryKey: principalAuthModuleKeys.detail(params.id),
|
|
18
|
+
queryFn: () => getClient()
|
|
19
|
+
.principalAuthModule.findOne({
|
|
20
|
+
id: params.id,
|
|
21
|
+
select: args.select,
|
|
22
|
+
})
|
|
23
|
+
.unwrap(),
|
|
24
|
+
...queryOptions,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
export async function fetchPrincipalAuthModuleQuery(params) {
|
|
28
|
+
const args = buildSelectionArgs(params.selection);
|
|
29
|
+
return getClient()
|
|
30
|
+
.principalAuthModule.findOne({
|
|
31
|
+
id: params.id,
|
|
32
|
+
select: args.select,
|
|
33
|
+
})
|
|
34
|
+
.unwrap();
|
|
35
|
+
}
|
|
36
|
+
export async function prefetchPrincipalAuthModuleQuery(queryClient, params) {
|
|
37
|
+
const args = buildSelectionArgs(params.selection);
|
|
38
|
+
await queryClient.prefetchQuery({
|
|
39
|
+
queryKey: principalAuthModuleKeys.detail(params.id),
|
|
40
|
+
queryFn: () => getClient()
|
|
41
|
+
.principalAuthModule.findOne({
|
|
42
|
+
id: params.id,
|
|
43
|
+
select: args.select,
|
|
44
|
+
})
|
|
45
|
+
.unwrap(),
|
|
46
|
+
});
|
|
47
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Provisions the principals subsystem: a principals table, a principal_entities junction table, create/delete mutations, and org API key management. Supports both human-owned principals (AuthzDirectOwner, AuthzHumanOnly) and org-owned principals (AuthzEntityMembership with is_admin). Org principal and org API key functions are only generated when an org-scoped memberships_module exists for the database.
|
|
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 { PrincipalAuthModuleSelect, PrincipalAuthModuleWithRelations, PrincipalAuthModuleFilter, PrincipalAuthModuleOrderBy } from '../../orm/input-types';
|
|
9
|
+
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
|
|
10
|
+
export type { PrincipalAuthModuleSelect, PrincipalAuthModuleWithRelations, PrincipalAuthModuleFilter, PrincipalAuthModuleOrderBy, } from '../../orm/input-types';
|
|
11
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
12
|
+
export declare const principalAuthModulesQueryKey: (variables?: object) => readonly ["principalauthmodule", "list", object];
|
|
13
|
+
/**
|
|
14
|
+
* Provisions the principals subsystem: a principals table, a principal_entities junction table, create/delete mutations, and org API key management. Supports both human-owned principals (AuthzDirectOwner, AuthzHumanOnly) and org-owned principals (AuthzEntityMembership with is_admin). Org principal and org API key functions are only generated when an org-scoped memberships_module exists for the database.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```tsx
|
|
18
|
+
* const { data, isLoading } = usePrincipalAuthModulesQuery({
|
|
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 usePrincipalAuthModulesQuery<S extends PrincipalAuthModuleSelect, TData = {
|
|
29
|
+
principalAuthModules: ConnectionResult<InferSelectResult<PrincipalAuthModuleWithRelations, S>>;
|
|
30
|
+
}>(params: {
|
|
31
|
+
selection: {
|
|
32
|
+
fields: S;
|
|
33
|
+
} & Omit<ListSelectionConfig<S, PrincipalAuthModuleFilter, PrincipalAuthModuleOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, PrincipalAuthModuleSelect>;
|
|
34
|
+
} & Omit<UseQueryOptions<{
|
|
35
|
+
principalAuthModules: ConnectionResult<InferSelectResult<PrincipalAuthModuleWithRelations, S>>;
|
|
36
|
+
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
37
|
+
/**
|
|
38
|
+
* Provisions the principals subsystem: a principals table, a principal_entities junction table, create/delete mutations, and org API key management. Supports both human-owned principals (AuthzDirectOwner, AuthzHumanOnly) and org-owned principals (AuthzEntityMembership with is_admin). Org principal and org API key functions are only generated when an org-scoped memberships_module exists for the database.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```ts
|
|
42
|
+
* const data = await fetchPrincipalAuthModulesQuery({
|
|
43
|
+
* selection: {
|
|
44
|
+
* fields: { id: true },
|
|
45
|
+
* first: 10,
|
|
46
|
+
* },
|
|
47
|
+
* });
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
export declare function fetchPrincipalAuthModulesQuery<S extends PrincipalAuthModuleSelect>(params: {
|
|
51
|
+
selection: {
|
|
52
|
+
fields: S;
|
|
53
|
+
} & Omit<ListSelectionConfig<S, PrincipalAuthModuleFilter, PrincipalAuthModuleOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, PrincipalAuthModuleSelect>;
|
|
54
|
+
}): Promise<{
|
|
55
|
+
principalAuthModules: ConnectionResult<InferSelectResult<PrincipalAuthModuleWithRelations, S>>;
|
|
56
|
+
}>;
|
|
57
|
+
/**
|
|
58
|
+
* Provisions the principals subsystem: a principals table, a principal_entities junction table, create/delete mutations, and org API key management. Supports both human-owned principals (AuthzDirectOwner, AuthzHumanOnly) and org-owned principals (AuthzEntityMembership with is_admin). Org principal and org API key functions are only generated when an org-scoped memberships_module exists for the database.
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* ```ts
|
|
62
|
+
* await prefetchPrincipalAuthModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
export declare function prefetchPrincipalAuthModulesQuery<S extends PrincipalAuthModuleSelect>(queryClient: QueryClient, params: {
|
|
66
|
+
selection: {
|
|
67
|
+
fields: S;
|
|
68
|
+
} & Omit<ListSelectionConfig<S, PrincipalAuthModuleFilter, PrincipalAuthModuleOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, PrincipalAuthModuleSelect>;
|
|
69
|
+
}): Promise<void>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Provisions the principals subsystem: a principals table, a principal_entities junction table, create/delete mutations, and org API key management. Supports both human-owned principals (AuthzDirectOwner, AuthzHumanOnly) and org-owned principals (AuthzEntityMembership with is_admin). Org principal and org API key functions are only generated when an org-scoped memberships_module exists for the database.
|
|
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 { principalAuthModuleKeys } from '../query-keys';
|
|
10
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
+
export const principalAuthModulesQueryKey = principalAuthModuleKeys.list;
|
|
12
|
+
export function usePrincipalAuthModulesQuery(params) {
|
|
13
|
+
const args = buildListSelectionArgs(params.selection);
|
|
14
|
+
const { selection: _selection, ...queryOptions } = params ?? {};
|
|
15
|
+
void _selection;
|
|
16
|
+
return useQuery({
|
|
17
|
+
queryKey: principalAuthModuleKeys.list(args),
|
|
18
|
+
queryFn: () => getClient().principalAuthModule.findMany(args).unwrap(),
|
|
19
|
+
...queryOptions,
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
export async function fetchPrincipalAuthModulesQuery(params) {
|
|
23
|
+
const args = buildListSelectionArgs(params.selection);
|
|
24
|
+
return getClient().principalAuthModule.findMany(args).unwrap();
|
|
25
|
+
}
|
|
26
|
+
export async function prefetchPrincipalAuthModulesQuery(queryClient, params) {
|
|
27
|
+
const args = buildListSelectionArgs(params.selection);
|
|
28
|
+
await queryClient.prefetchQuery({
|
|
29
|
+
queryKey: principalAuthModuleKeys.list(args),
|
|
30
|
+
queryFn: () => getClient().principalAuthModule.findMany(args).unwrap(),
|
|
31
|
+
});
|
|
32
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Single item query hook for ResourceModule
|
|
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 { ResourceModuleSelect, ResourceModuleWithRelations } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { ResourceModuleSelect, ResourceModuleWithRelations } from '../../orm/input-types';
|
|
10
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
+
export declare const resourceModuleQueryKey: (id: string | number) => readonly ["resourcemodule", "detail", string | number];
|
|
12
|
+
/**
|
|
13
|
+
* Query hook for fetching a single ResourceModule
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* const { data, isLoading } = useResourceModuleQuery({
|
|
18
|
+
* id: 'some-id',
|
|
19
|
+
* selection: { fields: { id: true, name: true } },
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare function useResourceModuleQuery<S extends ResourceModuleSelect, TData = {
|
|
24
|
+
resourceModule: InferSelectResult<ResourceModuleWithRelations, S> | null;
|
|
25
|
+
}>(params: {
|
|
26
|
+
id: string;
|
|
27
|
+
selection: {
|
|
28
|
+
fields: S;
|
|
29
|
+
} & HookStrictSelect<NoInfer<S>, ResourceModuleSelect>;
|
|
30
|
+
} & Omit<UseQueryOptions<{
|
|
31
|
+
resourceModule: InferSelectResult<ResourceModuleWithRelations, S> | null;
|
|
32
|
+
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
33
|
+
/**
|
|
34
|
+
* Fetch a single ResourceModule without React hooks
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* const data = await fetchResourceModuleQuery({
|
|
39
|
+
* id: 'some-id',
|
|
40
|
+
* selection: { fields: { id: true } },
|
|
41
|
+
* });
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
export declare function fetchResourceModuleQuery<S extends ResourceModuleSelect>(params: {
|
|
45
|
+
id: string;
|
|
46
|
+
selection: {
|
|
47
|
+
fields: S;
|
|
48
|
+
} & HookStrictSelect<NoInfer<S>, ResourceModuleSelect>;
|
|
49
|
+
}): Promise<{
|
|
50
|
+
resourceModule: InferSelectResult<ResourceModuleWithRelations, S> | null;
|
|
51
|
+
}>;
|
|
52
|
+
/**
|
|
53
|
+
* Prefetch a single ResourceModule for SSR or cache warming
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* await prefetchResourceModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
export declare function prefetchResourceModuleQuery<S extends ResourceModuleSelect>(queryClient: QueryClient, params: {
|
|
61
|
+
id: string;
|
|
62
|
+
selection: {
|
|
63
|
+
fields: S;
|
|
64
|
+
} & HookStrictSelect<NoInfer<S>, ResourceModuleSelect>;
|
|
65
|
+
}): Promise<void>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Single item query hook for ResourceModule
|
|
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 { resourceModuleKeys } from '../query-keys';
|
|
10
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
+
export const resourceModuleQueryKey = resourceModuleKeys.detail;
|
|
12
|
+
export function useResourceModuleQuery(params) {
|
|
13
|
+
const args = buildSelectionArgs(params.selection);
|
|
14
|
+
const { selection: _selection, ...queryOptions } = params ?? {};
|
|
15
|
+
void _selection;
|
|
16
|
+
return useQuery({
|
|
17
|
+
queryKey: resourceModuleKeys.detail(params.id),
|
|
18
|
+
queryFn: () => getClient()
|
|
19
|
+
.resourceModule.findOne({
|
|
20
|
+
id: params.id,
|
|
21
|
+
select: args.select,
|
|
22
|
+
})
|
|
23
|
+
.unwrap(),
|
|
24
|
+
...queryOptions,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
export async function fetchResourceModuleQuery(params) {
|
|
28
|
+
const args = buildSelectionArgs(params.selection);
|
|
29
|
+
return getClient()
|
|
30
|
+
.resourceModule.findOne({
|
|
31
|
+
id: params.id,
|
|
32
|
+
select: args.select,
|
|
33
|
+
})
|
|
34
|
+
.unwrap();
|
|
35
|
+
}
|
|
36
|
+
export async function prefetchResourceModuleQuery(queryClient, params) {
|
|
37
|
+
const args = buildSelectionArgs(params.selection);
|
|
38
|
+
await queryClient.prefetchQuery({
|
|
39
|
+
queryKey: resourceModuleKeys.detail(params.id),
|
|
40
|
+
queryFn: () => getClient()
|
|
41
|
+
.resourceModule.findOne({
|
|
42
|
+
id: params.id,
|
|
43
|
+
select: args.select,
|
|
44
|
+
})
|
|
45
|
+
.unwrap(),
|
|
46
|
+
});
|
|
47
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* List query hook for ResourceModule
|
|
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 { ResourceModuleSelect, ResourceModuleWithRelations, ResourceModuleFilter, ResourceModuleOrderBy } from '../../orm/input-types';
|
|
9
|
+
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
|
|
10
|
+
export type { ResourceModuleSelect, ResourceModuleWithRelations, ResourceModuleFilter, ResourceModuleOrderBy, } from '../../orm/input-types';
|
|
11
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
12
|
+
export declare const resourceModulesQueryKey: (variables?: object) => readonly ["resourcemodule", "list", object];
|
|
13
|
+
/**
|
|
14
|
+
* Query hook for fetching ResourceModule list
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```tsx
|
|
18
|
+
* const { data, isLoading } = useResourceModulesQuery({
|
|
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 useResourceModulesQuery<S extends ResourceModuleSelect, TData = {
|
|
29
|
+
resourceModules: ConnectionResult<InferSelectResult<ResourceModuleWithRelations, S>>;
|
|
30
|
+
}>(params: {
|
|
31
|
+
selection: {
|
|
32
|
+
fields: S;
|
|
33
|
+
} & Omit<ListSelectionConfig<S, ResourceModuleFilter, ResourceModuleOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, ResourceModuleSelect>;
|
|
34
|
+
} & Omit<UseQueryOptions<{
|
|
35
|
+
resourceModules: ConnectionResult<InferSelectResult<ResourceModuleWithRelations, S>>;
|
|
36
|
+
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
37
|
+
/**
|
|
38
|
+
* Fetch ResourceModule list without React hooks
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```ts
|
|
42
|
+
* const data = await fetchResourceModulesQuery({
|
|
43
|
+
* selection: {
|
|
44
|
+
* fields: { id: true },
|
|
45
|
+
* first: 10,
|
|
46
|
+
* },
|
|
47
|
+
* });
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
export declare function fetchResourceModulesQuery<S extends ResourceModuleSelect>(params: {
|
|
51
|
+
selection: {
|
|
52
|
+
fields: S;
|
|
53
|
+
} & Omit<ListSelectionConfig<S, ResourceModuleFilter, ResourceModuleOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, ResourceModuleSelect>;
|
|
54
|
+
}): Promise<{
|
|
55
|
+
resourceModules: ConnectionResult<InferSelectResult<ResourceModuleWithRelations, S>>;
|
|
56
|
+
}>;
|
|
57
|
+
/**
|
|
58
|
+
* Prefetch ResourceModule list for SSR or cache warming
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* ```ts
|
|
62
|
+
* await prefetchResourceModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
export declare function prefetchResourceModulesQuery<S extends ResourceModuleSelect>(queryClient: QueryClient, params: {
|
|
66
|
+
selection: {
|
|
67
|
+
fields: S;
|
|
68
|
+
} & Omit<ListSelectionConfig<S, ResourceModuleFilter, ResourceModuleOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, ResourceModuleSelect>;
|
|
69
|
+
}): Promise<void>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* List query hook for ResourceModule
|
|
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 { resourceModuleKeys } from '../query-keys';
|
|
10
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
+
export const resourceModulesQueryKey = resourceModuleKeys.list;
|
|
12
|
+
export function useResourceModulesQuery(params) {
|
|
13
|
+
const args = buildListSelectionArgs(params.selection);
|
|
14
|
+
const { selection: _selection, ...queryOptions } = params ?? {};
|
|
15
|
+
void _selection;
|
|
16
|
+
return useQuery({
|
|
17
|
+
queryKey: resourceModuleKeys.list(args),
|
|
18
|
+
queryFn: () => getClient().resourceModule.findMany(args).unwrap(),
|
|
19
|
+
...queryOptions,
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
export async function fetchResourceModulesQuery(params) {
|
|
23
|
+
const args = buildListSelectionArgs(params.selection);
|
|
24
|
+
return getClient().resourceModule.findMany(args).unwrap();
|
|
25
|
+
}
|
|
26
|
+
export async function prefetchResourceModulesQuery(queryClient, params) {
|
|
27
|
+
const args = buildListSelectionArgs(params.selection);
|
|
28
|
+
await queryClient.prefetchQuery({
|
|
29
|
+
queryKey: resourceModuleKeys.list(args),
|
|
30
|
+
queryFn: () => getClient().resourceModule.findMany(args).unwrap(),
|
|
31
|
+
});
|
|
32
|
+
}
|
|
@@ -185,20 +185,6 @@ export declare const secureTableProvisionKeys: {
|
|
|
185
185
|
/** Detail query keys */ readonly details: () => readonly ["securetableprovision", "detail"];
|
|
186
186
|
/** Detail query key for specific item */ readonly detail: (id: string | number) => readonly ["securetableprovision", "detail", string | number];
|
|
187
187
|
};
|
|
188
|
-
export declare const merkleStoreModuleKeys: {
|
|
189
|
-
/** All merkleStoreModule queries */ readonly all: readonly ["merklestoremodule"];
|
|
190
|
-
/** List query keys */ readonly lists: () => readonly ["merklestoremodule", "list"];
|
|
191
|
-
/** List query key with variables */ readonly list: (variables?: object) => readonly ["merklestoremodule", "list", object];
|
|
192
|
-
/** Detail query keys */ readonly details: () => readonly ["merklestoremodule", "detail"];
|
|
193
|
-
/** Detail query key for specific item */ readonly detail: (id: string | number) => readonly ["merklestoremodule", "detail", string | number];
|
|
194
|
-
};
|
|
195
|
-
export declare const graphModuleKeys: {
|
|
196
|
-
/** All graphModule queries */ readonly all: readonly ["graphmodule"];
|
|
197
|
-
/** List query keys */ readonly lists: () => readonly ["graphmodule", "list"];
|
|
198
|
-
/** List query key with variables */ readonly list: (variables?: object) => readonly ["graphmodule", "list", object];
|
|
199
|
-
/** Detail query keys */ readonly details: () => readonly ["graphmodule", "detail"];
|
|
200
|
-
/** Detail query key for specific item */ readonly detail: (id: string | number) => readonly ["graphmodule", "detail", string | number];
|
|
201
|
-
};
|
|
202
188
|
export declare const databaseProvisionModuleKeys: {
|
|
203
189
|
/** All databaseProvisionModule queries */ readonly all: readonly ["databaseprovisionmodule"];
|
|
204
190
|
/** List query keys */ readonly lists: () => readonly ["databaseprovisionmodule", "list"];
|
|
@@ -213,6 +199,20 @@ export declare const configSecretsModuleKeys: {
|
|
|
213
199
|
/** Detail query keys */ readonly details: () => readonly ["configsecretsmodule", "detail"];
|
|
214
200
|
/** Detail query key for specific item */ readonly detail: (id: string | number) => readonly ["configsecretsmodule", "detail", string | number];
|
|
215
201
|
};
|
|
202
|
+
export declare const graphModuleKeys: {
|
|
203
|
+
/** All graphModule queries */ readonly all: readonly ["graphmodule"];
|
|
204
|
+
/** List query keys */ readonly lists: () => readonly ["graphmodule", "list"];
|
|
205
|
+
/** List query key with variables */ readonly list: (variables?: object) => readonly ["graphmodule", "list", object];
|
|
206
|
+
/** Detail query keys */ readonly details: () => readonly ["graphmodule", "detail"];
|
|
207
|
+
/** Detail query key for specific item */ readonly detail: (id: string | number) => readonly ["graphmodule", "detail", string | number];
|
|
208
|
+
};
|
|
209
|
+
export declare const merkleStoreModuleKeys: {
|
|
210
|
+
/** All merkleStoreModule queries */ readonly all: readonly ["merklestoremodule"];
|
|
211
|
+
/** List query keys */ readonly lists: () => readonly ["merklestoremodule", "list"];
|
|
212
|
+
/** List query key with variables */ readonly list: (variables?: object) => readonly ["merklestoremodule", "list", object];
|
|
213
|
+
/** Detail query keys */ readonly details: () => readonly ["merklestoremodule", "detail"];
|
|
214
|
+
/** Detail query key for specific item */ readonly detail: (id: string | number) => readonly ["merklestoremodule", "detail", string | number];
|
|
215
|
+
};
|
|
216
216
|
export declare const rateLimitMetersModuleKeys: {
|
|
217
217
|
/** All rateLimitMetersModule queries */ readonly all: readonly ["ratelimitmetersmodule"];
|
|
218
218
|
/** List query keys */ readonly lists: () => readonly ["ratelimitmetersmodule", "list"];
|
|
@@ -255,6 +255,13 @@ export declare const invitesModuleKeys: {
|
|
|
255
255
|
/** Detail query keys */ readonly details: () => readonly ["invitesmodule", "detail"];
|
|
256
256
|
/** Detail query key for specific item */ readonly detail: (id: string | number) => readonly ["invitesmodule", "detail", string | number];
|
|
257
257
|
};
|
|
258
|
+
export declare const principalAuthModuleKeys: {
|
|
259
|
+
/** All principalAuthModule queries */ readonly all: readonly ["principalauthmodule"];
|
|
260
|
+
/** List query keys */ readonly lists: () => readonly ["principalauthmodule", "list"];
|
|
261
|
+
/** List query key with variables */ readonly list: (variables?: object) => readonly ["principalauthmodule", "list", object];
|
|
262
|
+
/** Detail query keys */ readonly details: () => readonly ["principalauthmodule", "detail"];
|
|
263
|
+
/** Detail query key for specific item */ readonly detail: (id: string | number) => readonly ["principalauthmodule", "detail", string | number];
|
|
264
|
+
};
|
|
258
265
|
export declare const computeLogModuleKeys: {
|
|
259
266
|
/** All computeLogModule queries */ readonly all: readonly ["computelogmodule"];
|
|
260
267
|
/** List query keys */ readonly lists: () => readonly ["computelogmodule", "list"];
|
|
@@ -276,6 +283,13 @@ export declare const namespaceModuleKeys: {
|
|
|
276
283
|
/** Detail query keys */ readonly details: () => readonly ["namespacemodule", "detail"];
|
|
277
284
|
/** Detail query key for specific item */ readonly detail: (id: string | number) => readonly ["namespacemodule", "detail", string | number];
|
|
278
285
|
};
|
|
286
|
+
export declare const resourceModuleKeys: {
|
|
287
|
+
/** All resourceModule queries */ readonly all: readonly ["resourcemodule"];
|
|
288
|
+
/** List query keys */ readonly lists: () => readonly ["resourcemodule", "list"];
|
|
289
|
+
/** List query key with variables */ readonly list: (variables?: object) => readonly ["resourcemodule", "list", object];
|
|
290
|
+
/** Detail query keys */ readonly details: () => readonly ["resourcemodule", "detail"];
|
|
291
|
+
/** Detail query key for specific item */ readonly detail: (id: string | number) => readonly ["resourcemodule", "detail", string | number];
|
|
292
|
+
};
|
|
279
293
|
export declare const storageLogModuleKeys: {
|
|
280
294
|
/** All storageLogModule queries */ readonly all: readonly ["storagelogmodule"];
|
|
281
295
|
/** List query keys */ readonly lists: () => readonly ["storagelogmodule", "list"];
|
|
@@ -625,20 +639,6 @@ export declare const queryKeys: {
|
|
|
625
639
|
/** Detail query keys */ readonly details: () => readonly ["securetableprovision", "detail"];
|
|
626
640
|
/** Detail query key for specific item */ readonly detail: (id: string | number) => readonly ["securetableprovision", "detail", string | number];
|
|
627
641
|
};
|
|
628
|
-
readonly merkleStoreModule: {
|
|
629
|
-
/** All merkleStoreModule queries */ readonly all: readonly ["merklestoremodule"];
|
|
630
|
-
/** List query keys */ readonly lists: () => readonly ["merklestoremodule", "list"];
|
|
631
|
-
/** List query key with variables */ readonly list: (variables?: object) => readonly ["merklestoremodule", "list", object];
|
|
632
|
-
/** Detail query keys */ readonly details: () => readonly ["merklestoremodule", "detail"];
|
|
633
|
-
/** Detail query key for specific item */ readonly detail: (id: string | number) => readonly ["merklestoremodule", "detail", string | number];
|
|
634
|
-
};
|
|
635
|
-
readonly graphModule: {
|
|
636
|
-
/** All graphModule queries */ readonly all: readonly ["graphmodule"];
|
|
637
|
-
/** List query keys */ readonly lists: () => readonly ["graphmodule", "list"];
|
|
638
|
-
/** List query key with variables */ readonly list: (variables?: object) => readonly ["graphmodule", "list", object];
|
|
639
|
-
/** Detail query keys */ readonly details: () => readonly ["graphmodule", "detail"];
|
|
640
|
-
/** Detail query key for specific item */ readonly detail: (id: string | number) => readonly ["graphmodule", "detail", string | number];
|
|
641
|
-
};
|
|
642
642
|
readonly databaseProvisionModule: {
|
|
643
643
|
/** All databaseProvisionModule queries */ readonly all: readonly ["databaseprovisionmodule"];
|
|
644
644
|
/** List query keys */ readonly lists: () => readonly ["databaseprovisionmodule", "list"];
|
|
@@ -653,6 +653,20 @@ export declare const queryKeys: {
|
|
|
653
653
|
/** Detail query keys */ readonly details: () => readonly ["configsecretsmodule", "detail"];
|
|
654
654
|
/** Detail query key for specific item */ readonly detail: (id: string | number) => readonly ["configsecretsmodule", "detail", string | number];
|
|
655
655
|
};
|
|
656
|
+
readonly graphModule: {
|
|
657
|
+
/** All graphModule queries */ readonly all: readonly ["graphmodule"];
|
|
658
|
+
/** List query keys */ readonly lists: () => readonly ["graphmodule", "list"];
|
|
659
|
+
/** List query key with variables */ readonly list: (variables?: object) => readonly ["graphmodule", "list", object];
|
|
660
|
+
/** Detail query keys */ readonly details: () => readonly ["graphmodule", "detail"];
|
|
661
|
+
/** Detail query key for specific item */ readonly detail: (id: string | number) => readonly ["graphmodule", "detail", string | number];
|
|
662
|
+
};
|
|
663
|
+
readonly merkleStoreModule: {
|
|
664
|
+
/** All merkleStoreModule queries */ readonly all: readonly ["merklestoremodule"];
|
|
665
|
+
/** List query keys */ readonly lists: () => readonly ["merklestoremodule", "list"];
|
|
666
|
+
/** List query key with variables */ readonly list: (variables?: object) => readonly ["merklestoremodule", "list", object];
|
|
667
|
+
/** Detail query keys */ readonly details: () => readonly ["merklestoremodule", "detail"];
|
|
668
|
+
/** Detail query key for specific item */ readonly detail: (id: string | number) => readonly ["merklestoremodule", "detail", string | number];
|
|
669
|
+
};
|
|
656
670
|
readonly rateLimitMetersModule: {
|
|
657
671
|
/** All rateLimitMetersModule queries */ readonly all: readonly ["ratelimitmetersmodule"];
|
|
658
672
|
/** List query keys */ readonly lists: () => readonly ["ratelimitmetersmodule", "list"];
|
|
@@ -695,6 +709,13 @@ export declare const queryKeys: {
|
|
|
695
709
|
/** Detail query keys */ readonly details: () => readonly ["invitesmodule", "detail"];
|
|
696
710
|
/** Detail query key for specific item */ readonly detail: (id: string | number) => readonly ["invitesmodule", "detail", string | number];
|
|
697
711
|
};
|
|
712
|
+
readonly principalAuthModule: {
|
|
713
|
+
/** All principalAuthModule queries */ readonly all: readonly ["principalauthmodule"];
|
|
714
|
+
/** List query keys */ readonly lists: () => readonly ["principalauthmodule", "list"];
|
|
715
|
+
/** List query key with variables */ readonly list: (variables?: object) => readonly ["principalauthmodule", "list", object];
|
|
716
|
+
/** Detail query keys */ readonly details: () => readonly ["principalauthmodule", "detail"];
|
|
717
|
+
/** Detail query key for specific item */ readonly detail: (id: string | number) => readonly ["principalauthmodule", "detail", string | number];
|
|
718
|
+
};
|
|
698
719
|
readonly computeLogModule: {
|
|
699
720
|
/** All computeLogModule queries */ readonly all: readonly ["computelogmodule"];
|
|
700
721
|
/** List query keys */ readonly lists: () => readonly ["computelogmodule", "list"];
|
|
@@ -716,6 +737,13 @@ export declare const queryKeys: {
|
|
|
716
737
|
/** Detail query keys */ readonly details: () => readonly ["namespacemodule", "detail"];
|
|
717
738
|
/** Detail query key for specific item */ readonly detail: (id: string | number) => readonly ["namespacemodule", "detail", string | number];
|
|
718
739
|
};
|
|
740
|
+
readonly resourceModule: {
|
|
741
|
+
/** All resourceModule queries */ readonly all: readonly ["resourcemodule"];
|
|
742
|
+
/** List query keys */ readonly lists: () => readonly ["resourcemodule", "list"];
|
|
743
|
+
/** List query key with variables */ readonly list: (variables?: object) => readonly ["resourcemodule", "list", object];
|
|
744
|
+
/** Detail query keys */ readonly details: () => readonly ["resourcemodule", "detail"];
|
|
745
|
+
/** Detail query key for specific item */ readonly detail: (id: string | number) => readonly ["resourcemodule", "detail", string | number];
|
|
746
|
+
};
|
|
719
747
|
readonly storageLogModule: {
|
|
720
748
|
/** All storageLogModule queries */ readonly all: readonly ["storagelogmodule"];
|
|
721
749
|
/** List query keys */ readonly lists: () => readonly ["storagelogmodule", "list"];
|