@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
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Create mutation hook for OrgApiKeyList
|
|
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 { OrgApiKeyListSelect, OrgApiKeyListWithRelations, CreateOrgApiKeyListInput } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { OrgApiKeyListSelect, OrgApiKeyListWithRelations, CreateOrgApiKeyListInput, } from '../../orm/input-types';
|
|
10
|
+
/**
|
|
11
|
+
* Mutation hook for creating a OrgApiKeyList
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* const { mutate, isPending } = useCreateOrgApiKeyListMutation({
|
|
16
|
+
* selection: { fields: { id: true, name: true } },
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* mutate({ name: 'New item' });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function useCreateOrgApiKeyListMutation<S extends OrgApiKeyListSelect>(params: {
|
|
23
|
+
selection: {
|
|
24
|
+
fields: S & OrgApiKeyListSelect;
|
|
25
|
+
} & HookStrictSelect<NoInfer<S>, OrgApiKeyListSelect>;
|
|
26
|
+
} & Omit<UseMutationOptions<{
|
|
27
|
+
createOrgApiKeyList: {
|
|
28
|
+
orgApiKeyList: InferSelectResult<OrgApiKeyListWithRelations, S>;
|
|
29
|
+
};
|
|
30
|
+
}, Error, CreateOrgApiKeyListInput['orgApiKeyList']>, 'mutationFn'>): UseMutationResult<{
|
|
31
|
+
createOrgApiKeyList: {
|
|
32
|
+
orgApiKeyList: InferSelectResult<OrgApiKeyListWithRelations, S>;
|
|
33
|
+
};
|
|
34
|
+
}, Error, CreateOrgApiKeyListInput['orgApiKeyList']>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Create mutation hook for OrgApiKeyList
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
7
|
+
import { getClient } from '../client';
|
|
8
|
+
import { buildSelectionArgs } from '../selection';
|
|
9
|
+
import { orgApiKeyListKeys } from '../query-keys';
|
|
10
|
+
import { orgApiKeyListMutationKeys } from '../mutation-keys';
|
|
11
|
+
export function useCreateOrgApiKeyListMutation(params) {
|
|
12
|
+
const args = buildSelectionArgs(params.selection);
|
|
13
|
+
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
14
|
+
void _selection;
|
|
15
|
+
const queryClient = useQueryClient();
|
|
16
|
+
return useMutation({
|
|
17
|
+
mutationKey: orgApiKeyListMutationKeys.create(),
|
|
18
|
+
mutationFn: (data) => getClient()
|
|
19
|
+
.orgApiKeyList.create({
|
|
20
|
+
data,
|
|
21
|
+
select: args.select,
|
|
22
|
+
})
|
|
23
|
+
.unwrap(),
|
|
24
|
+
onSuccess: () => {
|
|
25
|
+
queryClient.invalidateQueries({
|
|
26
|
+
queryKey: orgApiKeyListKeys.lists(),
|
|
27
|
+
});
|
|
28
|
+
},
|
|
29
|
+
...mutationOptions,
|
|
30
|
+
});
|
|
31
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Custom mutation hook for createOrgApiKey
|
|
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 { CreateOrgApiKeyVariables } from '../../orm/mutation';
|
|
8
|
+
import type { CreateOrgApiKeyPayloadSelect, CreateOrgApiKeyPayload } from '../../orm/input-types';
|
|
9
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
10
|
+
export type { CreateOrgApiKeyVariables } from '../../orm/mutation';
|
|
11
|
+
export type { CreateOrgApiKeyPayloadSelect } from '../../orm/input-types';
|
|
12
|
+
export declare function useCreateOrgApiKeyMutation<S extends CreateOrgApiKeyPayloadSelect>(params: {
|
|
13
|
+
selection: {
|
|
14
|
+
fields: S & CreateOrgApiKeyPayloadSelect;
|
|
15
|
+
} & HookStrictSelect<NoInfer<S>, CreateOrgApiKeyPayloadSelect>;
|
|
16
|
+
} & Omit<UseMutationOptions<{
|
|
17
|
+
createOrgApiKey: InferSelectResult<CreateOrgApiKeyPayload, S> | null;
|
|
18
|
+
}, Error, CreateOrgApiKeyVariables>, 'mutationFn'>): UseMutationResult<{
|
|
19
|
+
createOrgApiKey: InferSelectResult<CreateOrgApiKeyPayload, S> | null;
|
|
20
|
+
}, Error, CreateOrgApiKeyVariables>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Custom mutation hook for createOrgApiKey
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { useMutation } from '@tanstack/react-query';
|
|
7
|
+
import { getClient } from '../client';
|
|
8
|
+
import { buildSelectionArgs } from '../selection';
|
|
9
|
+
import { customMutationKeys } from '../mutation-keys';
|
|
10
|
+
export function useCreateOrgApiKeyMutation(params) {
|
|
11
|
+
const args = buildSelectionArgs(params.selection);
|
|
12
|
+
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
13
|
+
void _selection;
|
|
14
|
+
return useMutation({
|
|
15
|
+
mutationKey: customMutationKeys.createOrgApiKey(),
|
|
16
|
+
mutationFn: (variables) => getClient()
|
|
17
|
+
.mutation.createOrgApiKey(variables, {
|
|
18
|
+
select: args.select,
|
|
19
|
+
})
|
|
20
|
+
.unwrap(),
|
|
21
|
+
...mutationOptions,
|
|
22
|
+
});
|
|
23
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Custom mutation hook for createOrgPrincipal
|
|
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 { CreateOrgPrincipalVariables } from '../../orm/mutation';
|
|
8
|
+
import type { CreateOrgPrincipalPayloadSelect, CreateOrgPrincipalPayload } from '../../orm/input-types';
|
|
9
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
10
|
+
export type { CreateOrgPrincipalVariables } from '../../orm/mutation';
|
|
11
|
+
export type { CreateOrgPrincipalPayloadSelect } from '../../orm/input-types';
|
|
12
|
+
export declare function useCreateOrgPrincipalMutation<S extends CreateOrgPrincipalPayloadSelect>(params: {
|
|
13
|
+
selection: {
|
|
14
|
+
fields: S & CreateOrgPrincipalPayloadSelect;
|
|
15
|
+
} & HookStrictSelect<NoInfer<S>, CreateOrgPrincipalPayloadSelect>;
|
|
16
|
+
} & Omit<UseMutationOptions<{
|
|
17
|
+
createOrgPrincipal: InferSelectResult<CreateOrgPrincipalPayload, S> | null;
|
|
18
|
+
}, Error, CreateOrgPrincipalVariables>, 'mutationFn'>): UseMutationResult<{
|
|
19
|
+
createOrgPrincipal: InferSelectResult<CreateOrgPrincipalPayload, S> | null;
|
|
20
|
+
}, Error, CreateOrgPrincipalVariables>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Custom mutation hook for createOrgPrincipal
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { useMutation } from '@tanstack/react-query';
|
|
7
|
+
import { getClient } from '../client';
|
|
8
|
+
import { buildSelectionArgs } from '../selection';
|
|
9
|
+
import { customMutationKeys } from '../mutation-keys';
|
|
10
|
+
export function useCreateOrgPrincipalMutation(params) {
|
|
11
|
+
const args = buildSelectionArgs(params.selection);
|
|
12
|
+
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
13
|
+
void _selection;
|
|
14
|
+
return useMutation({
|
|
15
|
+
mutationKey: customMutationKeys.createOrgPrincipal(),
|
|
16
|
+
mutationFn: (variables) => getClient()
|
|
17
|
+
.mutation.createOrgPrincipal(variables, {
|
|
18
|
+
select: args.select,
|
|
19
|
+
})
|
|
20
|
+
.unwrap(),
|
|
21
|
+
...mutationOptions,
|
|
22
|
+
});
|
|
23
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Association table scoping principals to specific organizations
|
|
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 { PrincipalEntitySelect, PrincipalEntityWithRelations, CreatePrincipalEntityInput } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { PrincipalEntitySelect, PrincipalEntityWithRelations, CreatePrincipalEntityInput, } from '../../orm/input-types';
|
|
10
|
+
/**
|
|
11
|
+
* Association table scoping principals to specific organizations
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* const { mutate, isPending } = useCreatePrincipalEntityMutation({
|
|
16
|
+
* selection: { fields: { id: true, name: true } },
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* mutate({ name: 'New item' });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function useCreatePrincipalEntityMutation<S extends PrincipalEntitySelect>(params: {
|
|
23
|
+
selection: {
|
|
24
|
+
fields: S & PrincipalEntitySelect;
|
|
25
|
+
} & HookStrictSelect<NoInfer<S>, PrincipalEntitySelect>;
|
|
26
|
+
} & Omit<UseMutationOptions<{
|
|
27
|
+
createPrincipalEntity: {
|
|
28
|
+
principalEntity: InferSelectResult<PrincipalEntityWithRelations, S>;
|
|
29
|
+
};
|
|
30
|
+
}, Error, CreatePrincipalEntityInput['principalEntity']>, 'mutationFn'>): UseMutationResult<{
|
|
31
|
+
createPrincipalEntity: {
|
|
32
|
+
principalEntity: InferSelectResult<PrincipalEntityWithRelations, S>;
|
|
33
|
+
};
|
|
34
|
+
}, Error, CreatePrincipalEntityInput['principalEntity']>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Association table scoping principals to specific organizations
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
7
|
+
import { getClient } from '../client';
|
|
8
|
+
import { buildSelectionArgs } from '../selection';
|
|
9
|
+
import { principalEntityKeys } from '../query-keys';
|
|
10
|
+
import { principalEntityMutationKeys } from '../mutation-keys';
|
|
11
|
+
export function useCreatePrincipalEntityMutation(params) {
|
|
12
|
+
const args = buildSelectionArgs(params.selection);
|
|
13
|
+
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
14
|
+
void _selection;
|
|
15
|
+
const queryClient = useQueryClient();
|
|
16
|
+
return useMutation({
|
|
17
|
+
mutationKey: principalEntityMutationKeys.create(),
|
|
18
|
+
mutationFn: (data) => getClient()
|
|
19
|
+
.principalEntity.create({
|
|
20
|
+
data,
|
|
21
|
+
select: args.select,
|
|
22
|
+
})
|
|
23
|
+
.unwrap(),
|
|
24
|
+
onSuccess: () => {
|
|
25
|
+
queryClient.invalidateQueries({
|
|
26
|
+
queryKey: principalEntityKeys.lists(),
|
|
27
|
+
});
|
|
28
|
+
},
|
|
29
|
+
...mutationOptions,
|
|
30
|
+
});
|
|
31
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Scoped sub-identities (API keys and agents) with precomputed SPRT
|
|
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 { PrincipalSelect, PrincipalWithRelations, CreatePrincipalInput } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { PrincipalSelect, PrincipalWithRelations, CreatePrincipalInput, } from '../../orm/input-types';
|
|
10
|
+
/**
|
|
11
|
+
* Scoped sub-identities (API keys and agents) with precomputed SPRT
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* const { mutate, isPending } = useCreatePrincipalMutation({
|
|
16
|
+
* selection: { fields: { id: true, name: true } },
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* mutate({ name: 'New item' });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function useCreatePrincipalMutation<S extends PrincipalSelect>(params: {
|
|
23
|
+
selection: {
|
|
24
|
+
fields: S & PrincipalSelect;
|
|
25
|
+
} & HookStrictSelect<NoInfer<S>, PrincipalSelect>;
|
|
26
|
+
} & Omit<UseMutationOptions<{
|
|
27
|
+
createPrincipal: {
|
|
28
|
+
principal: InferSelectResult<PrincipalWithRelations, S>;
|
|
29
|
+
};
|
|
30
|
+
}, Error, CreatePrincipalInput['principal']>, 'mutationFn'>): UseMutationResult<{
|
|
31
|
+
createPrincipal: {
|
|
32
|
+
principal: InferSelectResult<PrincipalWithRelations, S>;
|
|
33
|
+
};
|
|
34
|
+
}, Error, CreatePrincipalInput['principal']>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Scoped sub-identities (API keys and agents) with precomputed SPRT
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
7
|
+
import { getClient } from '../client';
|
|
8
|
+
import { buildSelectionArgs } from '../selection';
|
|
9
|
+
import { principalKeys } from '../query-keys';
|
|
10
|
+
import { principalMutationKeys } from '../mutation-keys';
|
|
11
|
+
export function useCreatePrincipalMutation(params) {
|
|
12
|
+
const args = buildSelectionArgs(params.selection);
|
|
13
|
+
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
14
|
+
void _selection;
|
|
15
|
+
const queryClient = useQueryClient();
|
|
16
|
+
return useMutation({
|
|
17
|
+
mutationKey: principalMutationKeys.create(),
|
|
18
|
+
mutationFn: (data) => getClient()
|
|
19
|
+
.principal.create({
|
|
20
|
+
data,
|
|
21
|
+
select: args.select,
|
|
22
|
+
})
|
|
23
|
+
.unwrap(),
|
|
24
|
+
onSuccess: () => {
|
|
25
|
+
queryClient.invalidateQueries({
|
|
26
|
+
queryKey: principalKeys.lists(),
|
|
27
|
+
});
|
|
28
|
+
},
|
|
29
|
+
...mutationOptions,
|
|
30
|
+
});
|
|
31
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Per-scope permission overrides for principals. No row = full access; row exists = apply restrictions.
|
|
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 { PrincipalScopeOverrideSelect, PrincipalScopeOverrideWithRelations, CreatePrincipalScopeOverrideInput } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { PrincipalScopeOverrideSelect, PrincipalScopeOverrideWithRelations, CreatePrincipalScopeOverrideInput, } from '../../orm/input-types';
|
|
10
|
+
/**
|
|
11
|
+
* Per-scope permission overrides for principals. No row = full access; row exists = apply restrictions.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* const { mutate, isPending } = useCreatePrincipalScopeOverrideMutation({
|
|
16
|
+
* selection: { fields: { id: true, name: true } },
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* mutate({ name: 'New item' });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function useCreatePrincipalScopeOverrideMutation<S extends PrincipalScopeOverrideSelect>(params: {
|
|
23
|
+
selection: {
|
|
24
|
+
fields: S & PrincipalScopeOverrideSelect;
|
|
25
|
+
} & HookStrictSelect<NoInfer<S>, PrincipalScopeOverrideSelect>;
|
|
26
|
+
} & Omit<UseMutationOptions<{
|
|
27
|
+
createPrincipalScopeOverride: {
|
|
28
|
+
principalScopeOverride: InferSelectResult<PrincipalScopeOverrideWithRelations, S>;
|
|
29
|
+
};
|
|
30
|
+
}, Error, CreatePrincipalScopeOverrideInput['principalScopeOverride']>, 'mutationFn'>): UseMutationResult<{
|
|
31
|
+
createPrincipalScopeOverride: {
|
|
32
|
+
principalScopeOverride: InferSelectResult<PrincipalScopeOverrideWithRelations, S>;
|
|
33
|
+
};
|
|
34
|
+
}, Error, CreatePrincipalScopeOverrideInput['principalScopeOverride']>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Per-scope permission overrides for principals. No row = full access; row exists = apply restrictions.
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
7
|
+
import { getClient } from '../client';
|
|
8
|
+
import { buildSelectionArgs } from '../selection';
|
|
9
|
+
import { principalScopeOverrideKeys } from '../query-keys';
|
|
10
|
+
import { principalScopeOverrideMutationKeys } from '../mutation-keys';
|
|
11
|
+
export function useCreatePrincipalScopeOverrideMutation(params) {
|
|
12
|
+
const args = buildSelectionArgs(params.selection);
|
|
13
|
+
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
14
|
+
void _selection;
|
|
15
|
+
const queryClient = useQueryClient();
|
|
16
|
+
return useMutation({
|
|
17
|
+
mutationKey: principalScopeOverrideMutationKeys.create(),
|
|
18
|
+
mutationFn: (data) => getClient()
|
|
19
|
+
.principalScopeOverride.create({
|
|
20
|
+
data,
|
|
21
|
+
select: args.select,
|
|
22
|
+
})
|
|
23
|
+
.unwrap(),
|
|
24
|
+
onSuccess: () => {
|
|
25
|
+
queryClient.invalidateQueries({
|
|
26
|
+
queryKey: principalScopeOverrideKeys.lists(),
|
|
27
|
+
});
|
|
28
|
+
},
|
|
29
|
+
...mutationOptions,
|
|
30
|
+
});
|
|
31
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Custom mutation hook for deleteOrgPrincipal
|
|
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 { DeleteOrgPrincipalVariables } from '../../orm/mutation';
|
|
8
|
+
import type { DeleteOrgPrincipalPayloadSelect, DeleteOrgPrincipalPayload } from '../../orm/input-types';
|
|
9
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
10
|
+
export type { DeleteOrgPrincipalVariables } from '../../orm/mutation';
|
|
11
|
+
export type { DeleteOrgPrincipalPayloadSelect } from '../../orm/input-types';
|
|
12
|
+
export declare function useDeleteOrgPrincipalMutation<S extends DeleteOrgPrincipalPayloadSelect>(params: {
|
|
13
|
+
selection: {
|
|
14
|
+
fields: S & DeleteOrgPrincipalPayloadSelect;
|
|
15
|
+
} & HookStrictSelect<NoInfer<S>, DeleteOrgPrincipalPayloadSelect>;
|
|
16
|
+
} & Omit<UseMutationOptions<{
|
|
17
|
+
deleteOrgPrincipal: InferSelectResult<DeleteOrgPrincipalPayload, S> | null;
|
|
18
|
+
}, Error, DeleteOrgPrincipalVariables>, 'mutationFn'>): UseMutationResult<{
|
|
19
|
+
deleteOrgPrincipal: InferSelectResult<DeleteOrgPrincipalPayload, S> | null;
|
|
20
|
+
}, Error, DeleteOrgPrincipalVariables>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Custom mutation hook for deleteOrgPrincipal
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { useMutation } from '@tanstack/react-query';
|
|
7
|
+
import { getClient } from '../client';
|
|
8
|
+
import { buildSelectionArgs } from '../selection';
|
|
9
|
+
import { customMutationKeys } from '../mutation-keys';
|
|
10
|
+
export function useDeleteOrgPrincipalMutation(params) {
|
|
11
|
+
const args = buildSelectionArgs(params.selection);
|
|
12
|
+
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
13
|
+
void _selection;
|
|
14
|
+
return useMutation({
|
|
15
|
+
mutationKey: customMutationKeys.deleteOrgPrincipal(),
|
|
16
|
+
mutationFn: (variables) => getClient()
|
|
17
|
+
.mutation.deleteOrgPrincipal(variables, {
|
|
18
|
+
select: args.select,
|
|
19
|
+
})
|
|
20
|
+
.unwrap(),
|
|
21
|
+
...mutationOptions,
|
|
22
|
+
});
|
|
23
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Association table scoping principals to specific organizations
|
|
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 { PrincipalEntitySelect, PrincipalEntityWithRelations } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { PrincipalEntitySelect, PrincipalEntityWithRelations } from '../../orm/input-types';
|
|
10
|
+
/**
|
|
11
|
+
* Association table scoping principals to specific organizations
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* const { mutate, isPending } = useDeletePrincipalEntityMutation({
|
|
16
|
+
* selection: { fields: { id: true } },
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* mutate({ id: 'value-to-delete' });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function useDeletePrincipalEntityMutation<S extends PrincipalEntitySelect>(params: {
|
|
23
|
+
selection: {
|
|
24
|
+
fields: S & PrincipalEntitySelect;
|
|
25
|
+
} & HookStrictSelect<NoInfer<S>, PrincipalEntitySelect>;
|
|
26
|
+
} & Omit<UseMutationOptions<{
|
|
27
|
+
deletePrincipalEntity: {
|
|
28
|
+
principalEntity: InferSelectResult<PrincipalEntityWithRelations, S>;
|
|
29
|
+
};
|
|
30
|
+
}, Error, {
|
|
31
|
+
id: string;
|
|
32
|
+
}>, 'mutationFn'>): UseMutationResult<{
|
|
33
|
+
deletePrincipalEntity: {
|
|
34
|
+
principalEntity: InferSelectResult<PrincipalEntityWithRelations, S>;
|
|
35
|
+
};
|
|
36
|
+
}, Error, {
|
|
37
|
+
id: string;
|
|
38
|
+
}>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Association table scoping principals to specific organizations
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
7
|
+
import { getClient } from '../client';
|
|
8
|
+
import { buildSelectionArgs } from '../selection';
|
|
9
|
+
import { principalEntityKeys } from '../query-keys';
|
|
10
|
+
import { principalEntityMutationKeys } from '../mutation-keys';
|
|
11
|
+
export function useDeletePrincipalEntityMutation(params) {
|
|
12
|
+
const args = buildSelectionArgs(params.selection);
|
|
13
|
+
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
14
|
+
void _selection;
|
|
15
|
+
const queryClient = useQueryClient();
|
|
16
|
+
return useMutation({
|
|
17
|
+
mutationKey: principalEntityMutationKeys.all,
|
|
18
|
+
mutationFn: ({ id }) => getClient()
|
|
19
|
+
.principalEntity.delete({
|
|
20
|
+
where: {
|
|
21
|
+
id,
|
|
22
|
+
},
|
|
23
|
+
select: args.select,
|
|
24
|
+
})
|
|
25
|
+
.unwrap(),
|
|
26
|
+
onSuccess: (_, variables) => {
|
|
27
|
+
queryClient.removeQueries({
|
|
28
|
+
queryKey: principalEntityKeys.detail(variables.id),
|
|
29
|
+
});
|
|
30
|
+
queryClient.invalidateQueries({
|
|
31
|
+
queryKey: principalEntityKeys.lists(),
|
|
32
|
+
});
|
|
33
|
+
},
|
|
34
|
+
...mutationOptions,
|
|
35
|
+
});
|
|
36
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Scoped sub-identities (API keys and agents) with precomputed SPRT
|
|
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 { PrincipalSelect, PrincipalWithRelations } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { PrincipalSelect, PrincipalWithRelations } from '../../orm/input-types';
|
|
10
|
+
/**
|
|
11
|
+
* Scoped sub-identities (API keys and agents) with precomputed SPRT
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* const { mutate, isPending } = useDeletePrincipalMutation({
|
|
16
|
+
* selection: { fields: { id: true } },
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* mutate({ principalId: 'value-to-delete' });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function useDeletePrincipalMutation<S extends PrincipalSelect>(params: {
|
|
23
|
+
selection: {
|
|
24
|
+
fields: S & PrincipalSelect;
|
|
25
|
+
} & HookStrictSelect<NoInfer<S>, PrincipalSelect>;
|
|
26
|
+
} & Omit<UseMutationOptions<{
|
|
27
|
+
deletePrincipal: {
|
|
28
|
+
principal: InferSelectResult<PrincipalWithRelations, S>;
|
|
29
|
+
};
|
|
30
|
+
}, Error, {
|
|
31
|
+
principalId: string;
|
|
32
|
+
}>, 'mutationFn'>): UseMutationResult<{
|
|
33
|
+
deletePrincipal: {
|
|
34
|
+
principal: InferSelectResult<PrincipalWithRelations, S>;
|
|
35
|
+
};
|
|
36
|
+
}, Error, {
|
|
37
|
+
principalId: string;
|
|
38
|
+
}>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Scoped sub-identities (API keys and agents) with precomputed SPRT
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
7
|
+
import { getClient } from '../client';
|
|
8
|
+
import { buildSelectionArgs } from '../selection';
|
|
9
|
+
import { principalKeys } from '../query-keys';
|
|
10
|
+
import { principalMutationKeys } from '../mutation-keys';
|
|
11
|
+
export function useDeletePrincipalMutation(params) {
|
|
12
|
+
const args = buildSelectionArgs(params.selection);
|
|
13
|
+
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
14
|
+
void _selection;
|
|
15
|
+
const queryClient = useQueryClient();
|
|
16
|
+
return useMutation({
|
|
17
|
+
mutationKey: principalMutationKeys.all,
|
|
18
|
+
mutationFn: ({ principalId }) => getClient()
|
|
19
|
+
.principal.delete({
|
|
20
|
+
where: {
|
|
21
|
+
principalId,
|
|
22
|
+
},
|
|
23
|
+
select: args.select,
|
|
24
|
+
})
|
|
25
|
+
.unwrap(),
|
|
26
|
+
onSuccess: (_, variables) => {
|
|
27
|
+
queryClient.removeQueries({
|
|
28
|
+
queryKey: principalKeys.detail(variables.principalId),
|
|
29
|
+
});
|
|
30
|
+
queryClient.invalidateQueries({
|
|
31
|
+
queryKey: principalKeys.lists(),
|
|
32
|
+
});
|
|
33
|
+
},
|
|
34
|
+
...mutationOptions,
|
|
35
|
+
});
|
|
36
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Custom mutation hook for revokeOrgApiKey
|
|
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 { RevokeOrgApiKeyVariables } from '../../orm/mutation';
|
|
8
|
+
import type { RevokeOrgApiKeyPayloadSelect, RevokeOrgApiKeyPayload } from '../../orm/input-types';
|
|
9
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
10
|
+
export type { RevokeOrgApiKeyVariables } from '../../orm/mutation';
|
|
11
|
+
export type { RevokeOrgApiKeyPayloadSelect } from '../../orm/input-types';
|
|
12
|
+
export declare function useRevokeOrgApiKeyMutation<S extends RevokeOrgApiKeyPayloadSelect>(params: {
|
|
13
|
+
selection: {
|
|
14
|
+
fields: S & RevokeOrgApiKeyPayloadSelect;
|
|
15
|
+
} & HookStrictSelect<NoInfer<S>, RevokeOrgApiKeyPayloadSelect>;
|
|
16
|
+
} & Omit<UseMutationOptions<{
|
|
17
|
+
revokeOrgApiKey: InferSelectResult<RevokeOrgApiKeyPayload, S> | null;
|
|
18
|
+
}, Error, RevokeOrgApiKeyVariables>, 'mutationFn'>): UseMutationResult<{
|
|
19
|
+
revokeOrgApiKey: InferSelectResult<RevokeOrgApiKeyPayload, S> | null;
|
|
20
|
+
}, Error, RevokeOrgApiKeyVariables>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Custom mutation hook for revokeOrgApiKey
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { useMutation } from '@tanstack/react-query';
|
|
7
|
+
import { getClient } from '../client';
|
|
8
|
+
import { buildSelectionArgs } from '../selection';
|
|
9
|
+
import { customMutationKeys } from '../mutation-keys';
|
|
10
|
+
export function useRevokeOrgApiKeyMutation(params) {
|
|
11
|
+
const args = buildSelectionArgs(params.selection);
|
|
12
|
+
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
13
|
+
void _selection;
|
|
14
|
+
return useMutation({
|
|
15
|
+
mutationKey: customMutationKeys.revokeOrgApiKey(),
|
|
16
|
+
mutationFn: (variables) => getClient()
|
|
17
|
+
.mutation.revokeOrgApiKey(variables, {
|
|
18
|
+
select: args.select,
|
|
19
|
+
})
|
|
20
|
+
.unwrap(),
|
|
21
|
+
...mutationOptions,
|
|
22
|
+
});
|
|
23
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Association table scoping principals to specific organizations
|
|
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 { PrincipalEntitySelect, PrincipalEntityWithRelations, PrincipalEntityPatch } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { PrincipalEntitySelect, PrincipalEntityWithRelations, PrincipalEntityPatch, } from '../../orm/input-types';
|
|
10
|
+
/**
|
|
11
|
+
* Association table scoping principals to specific organizations
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* const { mutate, isPending } = useUpdatePrincipalEntityMutation({
|
|
16
|
+
* selection: { fields: { id: true, name: true } },
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* mutate({ id: 'value-here', principalEntityPatch: { name: 'Updated' } });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function useUpdatePrincipalEntityMutation<S extends PrincipalEntitySelect>(params: {
|
|
23
|
+
selection: {
|
|
24
|
+
fields: S & PrincipalEntitySelect;
|
|
25
|
+
} & HookStrictSelect<NoInfer<S>, PrincipalEntitySelect>;
|
|
26
|
+
} & Omit<UseMutationOptions<{
|
|
27
|
+
updatePrincipalEntity: {
|
|
28
|
+
principalEntity: InferSelectResult<PrincipalEntityWithRelations, S>;
|
|
29
|
+
};
|
|
30
|
+
}, Error, {
|
|
31
|
+
id: string;
|
|
32
|
+
principalEntityPatch: PrincipalEntityPatch;
|
|
33
|
+
}>, 'mutationFn'>): UseMutationResult<{
|
|
34
|
+
updatePrincipalEntity: {
|
|
35
|
+
principalEntity: InferSelectResult<PrincipalEntityWithRelations, S>;
|
|
36
|
+
};
|
|
37
|
+
}, Error, {
|
|
38
|
+
id: string;
|
|
39
|
+
principalEntityPatch: PrincipalEntityPatch;
|
|
40
|
+
}>;
|