@constructive-io/react 0.27.1 → 0.27.3
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 +5 -5
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* DO NOT EDIT - changes will be overwritten
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.
|
|
9
|
-
exports.mutationKeys = exports.customMutationKeys = exports.eventsModuleMutationKeys = exports.storageModuleMutationKeys = exports.entityTypeProvisionMutationKeys = exports.membershipsModuleMutationKeys = exports.limitsModuleMutationKeys = exports.agentModuleMutationKeys = exports.userAuthModuleMutationKeys = exports.relationProvisionMutationKeys = exports.billingModuleMutationKeys = void 0;
|
|
8
|
+
exports.permissionsModuleMutationKeys = exports.hierarchyModuleMutationKeys = exports.graphExecutionModuleMutationKeys = exports.dbUsageModuleMutationKeys = exports.billingProviderModuleMutationKeys = exports.plansModuleMutationKeys = exports.functionDeploymentModuleMutationKeys = exports.transferLogModuleMutationKeys = exports.storageLogModuleMutationKeys = exports.resourceModuleMutationKeys = exports.namespaceModuleMutationKeys = exports.inferenceLogModuleMutationKeys = exports.computeLogModuleMutationKeys = exports.principalAuthModuleMutationKeys = exports.invitesModuleMutationKeys = exports.functionModuleMutationKeys = exports.functionInvocationModuleMutationKeys = exports.webauthnAuthModuleMutationKeys = exports.realtimeModuleMutationKeys = exports.rateLimitMetersModuleMutationKeys = exports.merkleStoreModuleMutationKeys = exports.graphModuleMutationKeys = exports.configSecretsModuleMutationKeys = exports.databaseProvisionModuleMutationKeys = exports.secureTableProvisionMutationKeys = exports.sessionsModuleMutationKeys = exports.cryptoAuthModuleMutationKeys = exports.blueprintConstructionMutationKeys = exports.blueprintTemplateMutationKeys = exports.blueprintMutationKeys = exports.rlsModuleMutationKeys = exports.identityProvidersModuleMutationKeys = exports.denormalizedTableFieldMutationKeys = exports.cryptoAddressesModuleMutationKeys = exports.webauthnCredentialsModuleMutationKeys = exports.usersModuleMutationKeys = exports.rateLimitsModuleMutationKeys = exports.phoneNumbersModuleMutationKeys = exports.emailsModuleMutationKeys = exports.connectedAccountsModuleMutationKeys = exports.configSecretsUserModuleMutationKeys = exports.userSettingsModuleMutationKeys = exports.userCredentialsModuleMutationKeys = exports.i18NModuleMutationKeys = exports.devicesModuleMutationKeys = exports.configSecretsOrgModuleMutationKeys = exports.sessionSecretsModuleMutationKeys = exports.userStateModuleMutationKeys = exports.membershipTypesModuleMutationKeys = exports.defaultIdsModuleMutationKeys = void 0;
|
|
9
|
+
exports.mutationKeys = exports.customMutationKeys = exports.eventsModuleMutationKeys = exports.storageModuleMutationKeys = exports.entityTypeProvisionMutationKeys = exports.membershipsModuleMutationKeys = exports.limitsModuleMutationKeys = exports.agentModuleMutationKeys = exports.userAuthModuleMutationKeys = exports.relationProvisionMutationKeys = exports.billingModuleMutationKeys = exports.profilesModuleMutationKeys = exports.notificationsModuleMutationKeys = void 0;
|
|
10
10
|
// ============================================================================
|
|
11
11
|
// Mutation keys for tracking in-flight mutations
|
|
12
12
|
//
|
|
@@ -205,18 +205,6 @@ exports.secureTableProvisionMutationKeys = {
|
|
|
205
205
|
/** Update secureTableProvision mutation key */ update: (id) => ['mutation', 'securetableprovision', 'update', id],
|
|
206
206
|
/** Delete secureTableProvision mutation key */ delete: (id) => ['mutation', 'securetableprovision', 'delete', id],
|
|
207
207
|
};
|
|
208
|
-
exports.merkleStoreModuleMutationKeys = {
|
|
209
|
-
/** All merkleStoreModule mutation keys */ all: ['mutation', 'merklestoremodule'],
|
|
210
|
-
/** Create merkleStoreModule mutation key */ create: () => ['mutation', 'merklestoremodule', 'create'],
|
|
211
|
-
/** Update merkleStoreModule mutation key */ update: (id) => ['mutation', 'merklestoremodule', 'update', id],
|
|
212
|
-
/** Delete merkleStoreModule mutation key */ delete: (id) => ['mutation', 'merklestoremodule', 'delete', id],
|
|
213
|
-
};
|
|
214
|
-
exports.graphModuleMutationKeys = {
|
|
215
|
-
/** All graphModule mutation keys */ all: ['mutation', 'graphmodule'],
|
|
216
|
-
/** Create graphModule mutation key */ create: () => ['mutation', 'graphmodule', 'create'],
|
|
217
|
-
/** Update graphModule mutation key */ update: (id) => ['mutation', 'graphmodule', 'update', id],
|
|
218
|
-
/** Delete graphModule mutation key */ delete: (id) => ['mutation', 'graphmodule', 'delete', id],
|
|
219
|
-
};
|
|
220
208
|
exports.databaseProvisionModuleMutationKeys = {
|
|
221
209
|
/** All databaseProvisionModule mutation keys */ all: [
|
|
222
210
|
'mutation',
|
|
@@ -232,6 +220,18 @@ exports.configSecretsModuleMutationKeys = {
|
|
|
232
220
|
/** Update configSecretsModule mutation key */ update: (id) => ['mutation', 'configsecretsmodule', 'update', id],
|
|
233
221
|
/** Delete configSecretsModule mutation key */ delete: (id) => ['mutation', 'configsecretsmodule', 'delete', id],
|
|
234
222
|
};
|
|
223
|
+
exports.graphModuleMutationKeys = {
|
|
224
|
+
/** All graphModule mutation keys */ all: ['mutation', 'graphmodule'],
|
|
225
|
+
/** Create graphModule mutation key */ create: () => ['mutation', 'graphmodule', 'create'],
|
|
226
|
+
/** Update graphModule mutation key */ update: (id) => ['mutation', 'graphmodule', 'update', id],
|
|
227
|
+
/** Delete graphModule mutation key */ delete: (id) => ['mutation', 'graphmodule', 'delete', id],
|
|
228
|
+
};
|
|
229
|
+
exports.merkleStoreModuleMutationKeys = {
|
|
230
|
+
/** All merkleStoreModule mutation keys */ all: ['mutation', 'merklestoremodule'],
|
|
231
|
+
/** Create merkleStoreModule mutation key */ create: () => ['mutation', 'merklestoremodule', 'create'],
|
|
232
|
+
/** Update merkleStoreModule mutation key */ update: (id) => ['mutation', 'merklestoremodule', 'update', id],
|
|
233
|
+
/** Delete merkleStoreModule mutation key */ delete: (id) => ['mutation', 'merklestoremodule', 'delete', id],
|
|
234
|
+
};
|
|
235
235
|
exports.rateLimitMetersModuleMutationKeys = {
|
|
236
236
|
/** All rateLimitMetersModule mutation keys */ all: [
|
|
237
237
|
'mutation',
|
|
@@ -274,6 +274,12 @@ exports.invitesModuleMutationKeys = {
|
|
|
274
274
|
/** Update invitesModule mutation key */ update: (id) => ['mutation', 'invitesmodule', 'update', id],
|
|
275
275
|
/** Delete invitesModule mutation key */ delete: (id) => ['mutation', 'invitesmodule', 'delete', id],
|
|
276
276
|
};
|
|
277
|
+
exports.principalAuthModuleMutationKeys = {
|
|
278
|
+
/** All principalAuthModule mutation keys */ all: ['mutation', 'principalauthmodule'],
|
|
279
|
+
/** Create principalAuthModule mutation key */ create: () => ['mutation', 'principalauthmodule', 'create'],
|
|
280
|
+
/** Update principalAuthModule mutation key */ update: (id) => ['mutation', 'principalauthmodule', 'update', id],
|
|
281
|
+
/** Delete principalAuthModule mutation key */ delete: (id) => ['mutation', 'principalauthmodule', 'delete', id],
|
|
282
|
+
};
|
|
277
283
|
exports.computeLogModuleMutationKeys = {
|
|
278
284
|
/** All computeLogModule mutation keys */ all: ['mutation', 'computelogmodule'],
|
|
279
285
|
/** Create computeLogModule mutation key */ create: () => ['mutation', 'computelogmodule', 'create'],
|
|
@@ -292,6 +298,12 @@ exports.namespaceModuleMutationKeys = {
|
|
|
292
298
|
/** Update namespaceModule mutation key */ update: (id) => ['mutation', 'namespacemodule', 'update', id],
|
|
293
299
|
/** Delete namespaceModule mutation key */ delete: (id) => ['mutation', 'namespacemodule', 'delete', id],
|
|
294
300
|
};
|
|
301
|
+
exports.resourceModuleMutationKeys = {
|
|
302
|
+
/** All resourceModule mutation keys */ all: ['mutation', 'resourcemodule'],
|
|
303
|
+
/** Create resourceModule mutation key */ create: () => ['mutation', 'resourcemodule', 'create'],
|
|
304
|
+
/** Update resourceModule mutation key */ update: (id) => ['mutation', 'resourcemodule', 'update', id],
|
|
305
|
+
/** Delete resourceModule mutation key */ delete: (id) => ['mutation', 'resourcemodule', 'delete', id],
|
|
306
|
+
};
|
|
295
307
|
exports.storageLogModuleMutationKeys = {
|
|
296
308
|
/** All storageLogModule mutation keys */ all: ['mutation', 'storagelogmodule'],
|
|
297
309
|
/** Create storageLogModule mutation key */ create: () => ['mutation', 'storagelogmodule', 'create'],
|
|
@@ -502,19 +514,21 @@ exports.mutationKeys = {
|
|
|
502
514
|
cryptoAuthModule: exports.cryptoAuthModuleMutationKeys,
|
|
503
515
|
sessionsModule: exports.sessionsModuleMutationKeys,
|
|
504
516
|
secureTableProvision: exports.secureTableProvisionMutationKeys,
|
|
505
|
-
merkleStoreModule: exports.merkleStoreModuleMutationKeys,
|
|
506
|
-
graphModule: exports.graphModuleMutationKeys,
|
|
507
517
|
databaseProvisionModule: exports.databaseProvisionModuleMutationKeys,
|
|
508
518
|
configSecretsModule: exports.configSecretsModuleMutationKeys,
|
|
519
|
+
graphModule: exports.graphModuleMutationKeys,
|
|
520
|
+
merkleStoreModule: exports.merkleStoreModuleMutationKeys,
|
|
509
521
|
rateLimitMetersModule: exports.rateLimitMetersModuleMutationKeys,
|
|
510
522
|
realtimeModule: exports.realtimeModuleMutationKeys,
|
|
511
523
|
webauthnAuthModule: exports.webauthnAuthModuleMutationKeys,
|
|
512
524
|
functionInvocationModule: exports.functionInvocationModuleMutationKeys,
|
|
513
525
|
functionModule: exports.functionModuleMutationKeys,
|
|
514
526
|
invitesModule: exports.invitesModuleMutationKeys,
|
|
527
|
+
principalAuthModule: exports.principalAuthModuleMutationKeys,
|
|
515
528
|
computeLogModule: exports.computeLogModuleMutationKeys,
|
|
516
529
|
inferenceLogModule: exports.inferenceLogModuleMutationKeys,
|
|
517
530
|
namespaceModule: exports.namespaceModuleMutationKeys,
|
|
531
|
+
resourceModule: exports.resourceModuleMutationKeys,
|
|
518
532
|
storageLogModule: exports.storageLogModuleMutationKeys,
|
|
519
533
|
transferLogModule: exports.transferLogModuleMutationKeys,
|
|
520
534
|
functionDeploymentModule: exports.functionDeploymentModuleMutationKeys,
|
|
@@ -81,18 +81,18 @@ export * from './useDeleteSessionsModuleMutation';
|
|
|
81
81
|
export * from './useCreateSecureTableProvisionMutation';
|
|
82
82
|
export * from './useUpdateSecureTableProvisionMutation';
|
|
83
83
|
export * from './useDeleteSecureTableProvisionMutation';
|
|
84
|
-
export * from './useCreateMerkleStoreModuleMutation';
|
|
85
|
-
export * from './useUpdateMerkleStoreModuleMutation';
|
|
86
|
-
export * from './useDeleteMerkleStoreModuleMutation';
|
|
87
|
-
export * from './useCreateGraphModuleMutation';
|
|
88
|
-
export * from './useUpdateGraphModuleMutation';
|
|
89
|
-
export * from './useDeleteGraphModuleMutation';
|
|
90
84
|
export * from './useCreateDatabaseProvisionModuleMutation';
|
|
91
85
|
export * from './useUpdateDatabaseProvisionModuleMutation';
|
|
92
86
|
export * from './useDeleteDatabaseProvisionModuleMutation';
|
|
93
87
|
export * from './useCreateConfigSecretsModuleMutation';
|
|
94
88
|
export * from './useUpdateConfigSecretsModuleMutation';
|
|
95
89
|
export * from './useDeleteConfigSecretsModuleMutation';
|
|
90
|
+
export * from './useCreateGraphModuleMutation';
|
|
91
|
+
export * from './useUpdateGraphModuleMutation';
|
|
92
|
+
export * from './useDeleteGraphModuleMutation';
|
|
93
|
+
export * from './useCreateMerkleStoreModuleMutation';
|
|
94
|
+
export * from './useUpdateMerkleStoreModuleMutation';
|
|
95
|
+
export * from './useDeleteMerkleStoreModuleMutation';
|
|
96
96
|
export * from './useCreateRateLimitMetersModuleMutation';
|
|
97
97
|
export * from './useUpdateRateLimitMetersModuleMutation';
|
|
98
98
|
export * from './useDeleteRateLimitMetersModuleMutation';
|
|
@@ -111,6 +111,9 @@ export * from './useDeleteFunctionModuleMutation';
|
|
|
111
111
|
export * from './useCreateInvitesModuleMutation';
|
|
112
112
|
export * from './useUpdateInvitesModuleMutation';
|
|
113
113
|
export * from './useDeleteInvitesModuleMutation';
|
|
114
|
+
export * from './useCreatePrincipalAuthModuleMutation';
|
|
115
|
+
export * from './useUpdatePrincipalAuthModuleMutation';
|
|
116
|
+
export * from './useDeletePrincipalAuthModuleMutation';
|
|
114
117
|
export * from './useCreateComputeLogModuleMutation';
|
|
115
118
|
export * from './useUpdateComputeLogModuleMutation';
|
|
116
119
|
export * from './useDeleteComputeLogModuleMutation';
|
|
@@ -120,6 +123,9 @@ export * from './useDeleteInferenceLogModuleMutation';
|
|
|
120
123
|
export * from './useCreateNamespaceModuleMutation';
|
|
121
124
|
export * from './useUpdateNamespaceModuleMutation';
|
|
122
125
|
export * from './useDeleteNamespaceModuleMutation';
|
|
126
|
+
export * from './useCreateResourceModuleMutation';
|
|
127
|
+
export * from './useUpdateResourceModuleMutation';
|
|
128
|
+
export * from './useDeleteResourceModuleMutation';
|
|
123
129
|
export * from './useCreateStorageLogModuleMutation';
|
|
124
130
|
export * from './useUpdateStorageLogModuleMutation';
|
|
125
131
|
export * from './useDeleteStorageLogModuleMutation';
|
|
@@ -97,18 +97,18 @@ __exportStar(require("./useDeleteSessionsModuleMutation"), exports);
|
|
|
97
97
|
__exportStar(require("./useCreateSecureTableProvisionMutation"), exports);
|
|
98
98
|
__exportStar(require("./useUpdateSecureTableProvisionMutation"), exports);
|
|
99
99
|
__exportStar(require("./useDeleteSecureTableProvisionMutation"), exports);
|
|
100
|
-
__exportStar(require("./useCreateMerkleStoreModuleMutation"), exports);
|
|
101
|
-
__exportStar(require("./useUpdateMerkleStoreModuleMutation"), exports);
|
|
102
|
-
__exportStar(require("./useDeleteMerkleStoreModuleMutation"), exports);
|
|
103
|
-
__exportStar(require("./useCreateGraphModuleMutation"), exports);
|
|
104
|
-
__exportStar(require("./useUpdateGraphModuleMutation"), exports);
|
|
105
|
-
__exportStar(require("./useDeleteGraphModuleMutation"), exports);
|
|
106
100
|
__exportStar(require("./useCreateDatabaseProvisionModuleMutation"), exports);
|
|
107
101
|
__exportStar(require("./useUpdateDatabaseProvisionModuleMutation"), exports);
|
|
108
102
|
__exportStar(require("./useDeleteDatabaseProvisionModuleMutation"), exports);
|
|
109
103
|
__exportStar(require("./useCreateConfigSecretsModuleMutation"), exports);
|
|
110
104
|
__exportStar(require("./useUpdateConfigSecretsModuleMutation"), exports);
|
|
111
105
|
__exportStar(require("./useDeleteConfigSecretsModuleMutation"), exports);
|
|
106
|
+
__exportStar(require("./useCreateGraphModuleMutation"), exports);
|
|
107
|
+
__exportStar(require("./useUpdateGraphModuleMutation"), exports);
|
|
108
|
+
__exportStar(require("./useDeleteGraphModuleMutation"), exports);
|
|
109
|
+
__exportStar(require("./useCreateMerkleStoreModuleMutation"), exports);
|
|
110
|
+
__exportStar(require("./useUpdateMerkleStoreModuleMutation"), exports);
|
|
111
|
+
__exportStar(require("./useDeleteMerkleStoreModuleMutation"), exports);
|
|
112
112
|
__exportStar(require("./useCreateRateLimitMetersModuleMutation"), exports);
|
|
113
113
|
__exportStar(require("./useUpdateRateLimitMetersModuleMutation"), exports);
|
|
114
114
|
__exportStar(require("./useDeleteRateLimitMetersModuleMutation"), exports);
|
|
@@ -127,6 +127,9 @@ __exportStar(require("./useDeleteFunctionModuleMutation"), exports);
|
|
|
127
127
|
__exportStar(require("./useCreateInvitesModuleMutation"), exports);
|
|
128
128
|
__exportStar(require("./useUpdateInvitesModuleMutation"), exports);
|
|
129
129
|
__exportStar(require("./useDeleteInvitesModuleMutation"), exports);
|
|
130
|
+
__exportStar(require("./useCreatePrincipalAuthModuleMutation"), exports);
|
|
131
|
+
__exportStar(require("./useUpdatePrincipalAuthModuleMutation"), exports);
|
|
132
|
+
__exportStar(require("./useDeletePrincipalAuthModuleMutation"), exports);
|
|
130
133
|
__exportStar(require("./useCreateComputeLogModuleMutation"), exports);
|
|
131
134
|
__exportStar(require("./useUpdateComputeLogModuleMutation"), exports);
|
|
132
135
|
__exportStar(require("./useDeleteComputeLogModuleMutation"), exports);
|
|
@@ -136,6 +139,9 @@ __exportStar(require("./useDeleteInferenceLogModuleMutation"), exports);
|
|
|
136
139
|
__exportStar(require("./useCreateNamespaceModuleMutation"), exports);
|
|
137
140
|
__exportStar(require("./useUpdateNamespaceModuleMutation"), exports);
|
|
138
141
|
__exportStar(require("./useDeleteNamespaceModuleMutation"), exports);
|
|
142
|
+
__exportStar(require("./useCreateResourceModuleMutation"), exports);
|
|
143
|
+
__exportStar(require("./useUpdateResourceModuleMutation"), exports);
|
|
144
|
+
__exportStar(require("./useDeleteResourceModuleMutation"), exports);
|
|
139
145
|
__exportStar(require("./useCreateStorageLogModuleMutation"), exports);
|
|
140
146
|
__exportStar(require("./useUpdateStorageLogModuleMutation"), exports);
|
|
141
147
|
__exportStar(require("./useDeleteStorageLogModuleMutation"), exports);
|
|
@@ -0,0 +1,34 @@
|
|
|
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 { UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
|
|
7
|
+
import type { PrincipalAuthModuleSelect, PrincipalAuthModuleWithRelations, CreatePrincipalAuthModuleInput } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { PrincipalAuthModuleSelect, PrincipalAuthModuleWithRelations, CreatePrincipalAuthModuleInput, } from '../../orm/input-types';
|
|
10
|
+
/**
|
|
11
|
+
* 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.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* const { mutate, isPending } = useCreatePrincipalAuthModuleMutation({
|
|
16
|
+
* selection: { fields: { id: true, name: true } },
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* mutate({ name: 'New item' });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function useCreatePrincipalAuthModuleMutation<S extends PrincipalAuthModuleSelect>(params: {
|
|
23
|
+
selection: {
|
|
24
|
+
fields: S & PrincipalAuthModuleSelect;
|
|
25
|
+
} & HookStrictSelect<NoInfer<S>, PrincipalAuthModuleSelect>;
|
|
26
|
+
} & Omit<UseMutationOptions<{
|
|
27
|
+
createPrincipalAuthModule: {
|
|
28
|
+
principalAuthModule: InferSelectResult<PrincipalAuthModuleWithRelations, S>;
|
|
29
|
+
};
|
|
30
|
+
}, Error, CreatePrincipalAuthModuleInput['principalAuthModule']>, 'mutationFn'>): UseMutationResult<{
|
|
31
|
+
createPrincipalAuthModule: {
|
|
32
|
+
principalAuthModule: InferSelectResult<PrincipalAuthModuleWithRelations, S>;
|
|
33
|
+
};
|
|
34
|
+
}, Error, CreatePrincipalAuthModuleInput['principalAuthModule']>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* 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.
|
|
4
|
+
* @generated by @constructive-io/graphql-codegen
|
|
5
|
+
* DO NOT EDIT - changes will be overwritten
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.useCreatePrincipalAuthModuleMutation = useCreatePrincipalAuthModuleMutation;
|
|
9
|
+
const react_query_1 = require("@tanstack/react-query");
|
|
10
|
+
const client_1 = require("../client");
|
|
11
|
+
const selection_1 = require("../selection");
|
|
12
|
+
const query_keys_1 = require("../query-keys");
|
|
13
|
+
const mutation_keys_1 = require("../mutation-keys");
|
|
14
|
+
function useCreatePrincipalAuthModuleMutation(params) {
|
|
15
|
+
const args = (0, selection_1.buildSelectionArgs)(params.selection);
|
|
16
|
+
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
17
|
+
void _selection;
|
|
18
|
+
const queryClient = (0, react_query_1.useQueryClient)();
|
|
19
|
+
return (0, react_query_1.useMutation)({
|
|
20
|
+
mutationKey: mutation_keys_1.principalAuthModuleMutationKeys.create(),
|
|
21
|
+
mutationFn: (data) => (0, client_1.getClient)()
|
|
22
|
+
.principalAuthModule.create({
|
|
23
|
+
data,
|
|
24
|
+
select: args.select,
|
|
25
|
+
})
|
|
26
|
+
.unwrap(),
|
|
27
|
+
onSuccess: () => {
|
|
28
|
+
queryClient.invalidateQueries({
|
|
29
|
+
queryKey: query_keys_1.principalAuthModuleKeys.lists(),
|
|
30
|
+
});
|
|
31
|
+
},
|
|
32
|
+
...mutationOptions,
|
|
33
|
+
});
|
|
34
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Create mutation hook for ResourceModule
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
|
|
7
|
+
import type { ResourceModuleSelect, ResourceModuleWithRelations, CreateResourceModuleInput } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { ResourceModuleSelect, ResourceModuleWithRelations, CreateResourceModuleInput, } from '../../orm/input-types';
|
|
10
|
+
/**
|
|
11
|
+
* Mutation hook for creating a ResourceModule
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* const { mutate, isPending } = useCreateResourceModuleMutation({
|
|
16
|
+
* selection: { fields: { id: true, name: true } },
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* mutate({ name: 'New item' });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function useCreateResourceModuleMutation<S extends ResourceModuleSelect>(params: {
|
|
23
|
+
selection: {
|
|
24
|
+
fields: S & ResourceModuleSelect;
|
|
25
|
+
} & HookStrictSelect<NoInfer<S>, ResourceModuleSelect>;
|
|
26
|
+
} & Omit<UseMutationOptions<{
|
|
27
|
+
createResourceModule: {
|
|
28
|
+
resourceModule: InferSelectResult<ResourceModuleWithRelations, S>;
|
|
29
|
+
};
|
|
30
|
+
}, Error, CreateResourceModuleInput['resourceModule']>, 'mutationFn'>): UseMutationResult<{
|
|
31
|
+
createResourceModule: {
|
|
32
|
+
resourceModule: InferSelectResult<ResourceModuleWithRelations, S>;
|
|
33
|
+
};
|
|
34
|
+
}, Error, CreateResourceModuleInput['resourceModule']>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Create mutation hook for ResourceModule
|
|
4
|
+
* @generated by @constructive-io/graphql-codegen
|
|
5
|
+
* DO NOT EDIT - changes will be overwritten
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.useCreateResourceModuleMutation = useCreateResourceModuleMutation;
|
|
9
|
+
const react_query_1 = require("@tanstack/react-query");
|
|
10
|
+
const client_1 = require("../client");
|
|
11
|
+
const selection_1 = require("../selection");
|
|
12
|
+
const query_keys_1 = require("../query-keys");
|
|
13
|
+
const mutation_keys_1 = require("../mutation-keys");
|
|
14
|
+
function useCreateResourceModuleMutation(params) {
|
|
15
|
+
const args = (0, selection_1.buildSelectionArgs)(params.selection);
|
|
16
|
+
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
17
|
+
void _selection;
|
|
18
|
+
const queryClient = (0, react_query_1.useQueryClient)();
|
|
19
|
+
return (0, react_query_1.useMutation)({
|
|
20
|
+
mutationKey: mutation_keys_1.resourceModuleMutationKeys.create(),
|
|
21
|
+
mutationFn: (data) => (0, client_1.getClient)()
|
|
22
|
+
.resourceModule.create({
|
|
23
|
+
data,
|
|
24
|
+
select: args.select,
|
|
25
|
+
})
|
|
26
|
+
.unwrap(),
|
|
27
|
+
onSuccess: () => {
|
|
28
|
+
queryClient.invalidateQueries({
|
|
29
|
+
queryKey: query_keys_1.resourceModuleKeys.lists(),
|
|
30
|
+
});
|
|
31
|
+
},
|
|
32
|
+
...mutationOptions,
|
|
33
|
+
});
|
|
34
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 { UseMutationOptions, UseMutationResult } 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
|
+
/**
|
|
11
|
+
* 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.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* const { mutate, isPending } = useDeletePrincipalAuthModuleMutation({
|
|
16
|
+
* selection: { fields: { id: true } },
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* mutate({ id: 'value-to-delete' });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function useDeletePrincipalAuthModuleMutation<S extends PrincipalAuthModuleSelect>(params: {
|
|
23
|
+
selection: {
|
|
24
|
+
fields: S & PrincipalAuthModuleSelect;
|
|
25
|
+
} & HookStrictSelect<NoInfer<S>, PrincipalAuthModuleSelect>;
|
|
26
|
+
} & Omit<UseMutationOptions<{
|
|
27
|
+
deletePrincipalAuthModule: {
|
|
28
|
+
principalAuthModule: InferSelectResult<PrincipalAuthModuleWithRelations, S>;
|
|
29
|
+
};
|
|
30
|
+
}, Error, {
|
|
31
|
+
id: string;
|
|
32
|
+
}>, 'mutationFn'>): UseMutationResult<{
|
|
33
|
+
deletePrincipalAuthModule: {
|
|
34
|
+
principalAuthModule: InferSelectResult<PrincipalAuthModuleWithRelations, S>;
|
|
35
|
+
};
|
|
36
|
+
}, Error, {
|
|
37
|
+
id: string;
|
|
38
|
+
}>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* 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.
|
|
4
|
+
* @generated by @constructive-io/graphql-codegen
|
|
5
|
+
* DO NOT EDIT - changes will be overwritten
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.useDeletePrincipalAuthModuleMutation = useDeletePrincipalAuthModuleMutation;
|
|
9
|
+
const react_query_1 = require("@tanstack/react-query");
|
|
10
|
+
const client_1 = require("../client");
|
|
11
|
+
const selection_1 = require("../selection");
|
|
12
|
+
const query_keys_1 = require("../query-keys");
|
|
13
|
+
const mutation_keys_1 = require("../mutation-keys");
|
|
14
|
+
function useDeletePrincipalAuthModuleMutation(params) {
|
|
15
|
+
const args = (0, selection_1.buildSelectionArgs)(params.selection);
|
|
16
|
+
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
17
|
+
void _selection;
|
|
18
|
+
const queryClient = (0, react_query_1.useQueryClient)();
|
|
19
|
+
return (0, react_query_1.useMutation)({
|
|
20
|
+
mutationKey: mutation_keys_1.principalAuthModuleMutationKeys.all,
|
|
21
|
+
mutationFn: ({ id }) => (0, client_1.getClient)()
|
|
22
|
+
.principalAuthModule.delete({
|
|
23
|
+
where: {
|
|
24
|
+
id,
|
|
25
|
+
},
|
|
26
|
+
select: args.select,
|
|
27
|
+
})
|
|
28
|
+
.unwrap(),
|
|
29
|
+
onSuccess: (_, variables) => {
|
|
30
|
+
queryClient.removeQueries({
|
|
31
|
+
queryKey: query_keys_1.principalAuthModuleKeys.detail(variables.id),
|
|
32
|
+
});
|
|
33
|
+
queryClient.invalidateQueries({
|
|
34
|
+
queryKey: query_keys_1.principalAuthModuleKeys.lists(),
|
|
35
|
+
});
|
|
36
|
+
},
|
|
37
|
+
...mutationOptions,
|
|
38
|
+
});
|
|
39
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Delete mutation hook for ResourceModule
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
|
|
7
|
+
import type { 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
|
+
/**
|
|
11
|
+
* Mutation hook for deleting a ResourceModule with typed selection
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* const { mutate, isPending } = useDeleteResourceModuleMutation({
|
|
16
|
+
* selection: { fields: { id: true } },
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* mutate({ id: 'value-to-delete' });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function useDeleteResourceModuleMutation<S extends ResourceModuleSelect>(params: {
|
|
23
|
+
selection: {
|
|
24
|
+
fields: S & ResourceModuleSelect;
|
|
25
|
+
} & HookStrictSelect<NoInfer<S>, ResourceModuleSelect>;
|
|
26
|
+
} & Omit<UseMutationOptions<{
|
|
27
|
+
deleteResourceModule: {
|
|
28
|
+
resourceModule: InferSelectResult<ResourceModuleWithRelations, S>;
|
|
29
|
+
};
|
|
30
|
+
}, Error, {
|
|
31
|
+
id: string;
|
|
32
|
+
}>, 'mutationFn'>): UseMutationResult<{
|
|
33
|
+
deleteResourceModule: {
|
|
34
|
+
resourceModule: InferSelectResult<ResourceModuleWithRelations, S>;
|
|
35
|
+
};
|
|
36
|
+
}, Error, {
|
|
37
|
+
id: string;
|
|
38
|
+
}>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Delete mutation hook for ResourceModule
|
|
4
|
+
* @generated by @constructive-io/graphql-codegen
|
|
5
|
+
* DO NOT EDIT - changes will be overwritten
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.useDeleteResourceModuleMutation = useDeleteResourceModuleMutation;
|
|
9
|
+
const react_query_1 = require("@tanstack/react-query");
|
|
10
|
+
const client_1 = require("../client");
|
|
11
|
+
const selection_1 = require("../selection");
|
|
12
|
+
const query_keys_1 = require("../query-keys");
|
|
13
|
+
const mutation_keys_1 = require("../mutation-keys");
|
|
14
|
+
function useDeleteResourceModuleMutation(params) {
|
|
15
|
+
const args = (0, selection_1.buildSelectionArgs)(params.selection);
|
|
16
|
+
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
17
|
+
void _selection;
|
|
18
|
+
const queryClient = (0, react_query_1.useQueryClient)();
|
|
19
|
+
return (0, react_query_1.useMutation)({
|
|
20
|
+
mutationKey: mutation_keys_1.resourceModuleMutationKeys.all,
|
|
21
|
+
mutationFn: ({ id }) => (0, client_1.getClient)()
|
|
22
|
+
.resourceModule.delete({
|
|
23
|
+
where: {
|
|
24
|
+
id,
|
|
25
|
+
},
|
|
26
|
+
select: args.select,
|
|
27
|
+
})
|
|
28
|
+
.unwrap(),
|
|
29
|
+
onSuccess: (_, variables) => {
|
|
30
|
+
queryClient.removeQueries({
|
|
31
|
+
queryKey: query_keys_1.resourceModuleKeys.detail(variables.id),
|
|
32
|
+
});
|
|
33
|
+
queryClient.invalidateQueries({
|
|
34
|
+
queryKey: query_keys_1.resourceModuleKeys.lists(),
|
|
35
|
+
});
|
|
36
|
+
},
|
|
37
|
+
...mutationOptions,
|
|
38
|
+
});
|
|
39
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 { UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
|
|
7
|
+
import type { PrincipalAuthModuleSelect, PrincipalAuthModuleWithRelations, PrincipalAuthModulePatch } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { PrincipalAuthModuleSelect, PrincipalAuthModuleWithRelations, PrincipalAuthModulePatch, } from '../../orm/input-types';
|
|
10
|
+
/**
|
|
11
|
+
* 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.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* const { mutate, isPending } = useUpdatePrincipalAuthModuleMutation({
|
|
16
|
+
* selection: { fields: { id: true, name: true } },
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* mutate({ id: 'value-here', principalAuthModulePatch: { name: 'Updated' } });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function useUpdatePrincipalAuthModuleMutation<S extends PrincipalAuthModuleSelect>(params: {
|
|
23
|
+
selection: {
|
|
24
|
+
fields: S & PrincipalAuthModuleSelect;
|
|
25
|
+
} & HookStrictSelect<NoInfer<S>, PrincipalAuthModuleSelect>;
|
|
26
|
+
} & Omit<UseMutationOptions<{
|
|
27
|
+
updatePrincipalAuthModule: {
|
|
28
|
+
principalAuthModule: InferSelectResult<PrincipalAuthModuleWithRelations, S>;
|
|
29
|
+
};
|
|
30
|
+
}, Error, {
|
|
31
|
+
id: string;
|
|
32
|
+
principalAuthModulePatch: PrincipalAuthModulePatch;
|
|
33
|
+
}>, 'mutationFn'>): UseMutationResult<{
|
|
34
|
+
updatePrincipalAuthModule: {
|
|
35
|
+
principalAuthModule: InferSelectResult<PrincipalAuthModuleWithRelations, S>;
|
|
36
|
+
};
|
|
37
|
+
}, Error, {
|
|
38
|
+
id: string;
|
|
39
|
+
principalAuthModulePatch: PrincipalAuthModulePatch;
|
|
40
|
+
}>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* 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.
|
|
4
|
+
* @generated by @constructive-io/graphql-codegen
|
|
5
|
+
* DO NOT EDIT - changes will be overwritten
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.useUpdatePrincipalAuthModuleMutation = useUpdatePrincipalAuthModuleMutation;
|
|
9
|
+
const react_query_1 = require("@tanstack/react-query");
|
|
10
|
+
const client_1 = require("../client");
|
|
11
|
+
const selection_1 = require("../selection");
|
|
12
|
+
const query_keys_1 = require("../query-keys");
|
|
13
|
+
const mutation_keys_1 = require("../mutation-keys");
|
|
14
|
+
function useUpdatePrincipalAuthModuleMutation(params) {
|
|
15
|
+
const args = (0, selection_1.buildSelectionArgs)(params.selection);
|
|
16
|
+
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
17
|
+
void _selection;
|
|
18
|
+
const queryClient = (0, react_query_1.useQueryClient)();
|
|
19
|
+
return (0, react_query_1.useMutation)({
|
|
20
|
+
mutationKey: mutation_keys_1.principalAuthModuleMutationKeys.all,
|
|
21
|
+
mutationFn: ({ id, principalAuthModulePatch, }) => (0, client_1.getClient)()
|
|
22
|
+
.principalAuthModule.update({
|
|
23
|
+
where: {
|
|
24
|
+
id,
|
|
25
|
+
},
|
|
26
|
+
data: principalAuthModulePatch,
|
|
27
|
+
select: args.select,
|
|
28
|
+
})
|
|
29
|
+
.unwrap(),
|
|
30
|
+
onSuccess: (_, variables) => {
|
|
31
|
+
queryClient.invalidateQueries({
|
|
32
|
+
queryKey: query_keys_1.principalAuthModuleKeys.detail(variables.id),
|
|
33
|
+
});
|
|
34
|
+
queryClient.invalidateQueries({
|
|
35
|
+
queryKey: query_keys_1.principalAuthModuleKeys.lists(),
|
|
36
|
+
});
|
|
37
|
+
},
|
|
38
|
+
...mutationOptions,
|
|
39
|
+
});
|
|
40
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Update mutation hook for ResourceModule
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
|
|
7
|
+
import type { ResourceModuleSelect, ResourceModuleWithRelations, ResourceModulePatch } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { ResourceModuleSelect, ResourceModuleWithRelations, ResourceModulePatch, } from '../../orm/input-types';
|
|
10
|
+
/**
|
|
11
|
+
* Mutation hook for updating a ResourceModule
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* const { mutate, isPending } = useUpdateResourceModuleMutation({
|
|
16
|
+
* selection: { fields: { id: true, name: true } },
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* mutate({ id: 'value-here', resourceModulePatch: { name: 'Updated' } });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function useUpdateResourceModuleMutation<S extends ResourceModuleSelect>(params: {
|
|
23
|
+
selection: {
|
|
24
|
+
fields: S & ResourceModuleSelect;
|
|
25
|
+
} & HookStrictSelect<NoInfer<S>, ResourceModuleSelect>;
|
|
26
|
+
} & Omit<UseMutationOptions<{
|
|
27
|
+
updateResourceModule: {
|
|
28
|
+
resourceModule: InferSelectResult<ResourceModuleWithRelations, S>;
|
|
29
|
+
};
|
|
30
|
+
}, Error, {
|
|
31
|
+
id: string;
|
|
32
|
+
resourceModulePatch: ResourceModulePatch;
|
|
33
|
+
}>, 'mutationFn'>): UseMutationResult<{
|
|
34
|
+
updateResourceModule: {
|
|
35
|
+
resourceModule: InferSelectResult<ResourceModuleWithRelations, S>;
|
|
36
|
+
};
|
|
37
|
+
}, Error, {
|
|
38
|
+
id: string;
|
|
39
|
+
resourceModulePatch: ResourceModulePatch;
|
|
40
|
+
}>;
|